@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.
- package/dist/components/BaseBreadcrumb/index.d.ts +17 -0
- package/dist/components/FavoriteMenu/components/MenuItem.d.ts +4 -1
- package/dist/components/index.cjs +18 -22
- package/dist/components/index.js +2056 -1791
- package/dist/components/main.d.ts +1 -0
- package/dist/{index.esm2017-e23bb13e.js → index.esm2017-DDLWZ0Nk.js} +18083 -18035
- package/dist/index.esm2017-w6a00bjk.cjs +1078 -0
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +1 -1
- package/package.json +2 -2
- package/web-components-bundle/access-denied/index.js +2 -3
- package/web-components-bundle/base-breadcrumbs/index.js +5 -0
- package/web-components-bundle/clsx-DB4S2d7J.js +22 -0
- package/web-components-bundle/favorite-menu/index.js +6 -8
- package/web-components-bundle/global-menu/index.js +5 -7
- package/web-components-bundle/global-topbar/index.js +8 -6
- package/web-components-bundle/has-permission/index.js +4 -7
- package/web-components-bundle/index-BSe1av43.js +48 -0
- package/web-components-bundle/index-BziS9Had.js +5410 -0
- package/web-components-bundle/index-DF84iLUH.js +39957 -0
- package/web-components-bundle/{index-a07af468.js → index-T58UE-6b.js} +361 -376
- package/web-components-bundle/page-not-found/index.js +6 -0
- package/web-components-bundle/react-to-web-component-CXwKHjZr.js +6388 -0
- package/web-components-bundle/react-toastify.esm-CrTD7cpE.js +320 -0
- package/web-components-bundle/setPrototypeOf-BVKdEITT.js +14 -0
- package/web-components-bundle/toast-config/index.js +2 -2
- package/web-components-bundle/toast-config-notification/index.js +3 -4
- package/dist/components/FavoriteMenu/data.json.d.ts +0 -2414
- package/dist/index.esm2017-5e128de3.cjs +0 -1101
- package/web-components-bundle/index-4908ae68.js +0 -44773
- package/web-components-bundle/react-to-web-component-d5889290.js +0 -6388
- package/web-components-bundle/react-toastify.esm-d8df41b8.js +0 -339
|
@@ -1,1101 +0,0 @@
|
|
|
1
|
-
var fY=require("./index.css");const $e=require("react/jsx-runtime"),Z=require("react"),GA=require("axios"),qA=require("moment"),la=require("@mui/material"),_d=require("react-query");require("@r2wc/react-to-web-component");const Cp=require("react-router-dom"),jv=require("react-dom");function XA(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 KA(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 _n=XA(Z),ZA=`.modal-overlay{z-index:1300;position:fixed;top:0;right:0;bottom:0;left:0;background:hsla(0,0%,0%,.254);--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:#ffffff;-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}
|
|
2
|
-
`;function N1({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 $e.jsxs($e.Fragment,{children:[$e.jsx("style",{type:"text/css",children:ZA}),$e.jsx("div",{onClick:r,className:"modal-overlay",id:"modal-wrapper",children:$e.jsxs("div",{className:"modal-container",children:[$e.jsx("h3",{className:"modal-title",children:"Log out"}),$e.jsx("p",{className:"text-sm",children:"Are you sure want to log out?"}),$e.jsxs("div",{className:"modal-footer",children:[$e.jsx("button",{className:"modal-button cancel-btn",onClick:e,children:"Cancel"}),$e.jsx("button",{onClick:n,className:"text-white confirm-btn modal-button",children:"Confirm"})]})]})})]})}const Ei={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 ns(t){"@babel/helpers - typeof";return ns=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},ns(t)}function os(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function JA(t,e){if(ns(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(ns(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function j1(t){var e=JA(t,"string");return ns(e)=="symbol"?e:e+""}function s0(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,j1(r.key),r)}}function ss(t,e,n){return e&&s0(t.prototype,e),n&&s0(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ol(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Zh(t,e){return Zh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Zh(t,e)}function Ep(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&&Zh(t,e)}function Yd(t,e){if(e&&(ns(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ol(t)}function Wa(t){return Wa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Wa(t)}function za(t,e,n){return(e=j1(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function B1(t){if(Array.isArray(t))return t}function QA(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function a0(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 $1(t,e){if(t){if(typeof t=="string")return a0(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)?a0(t,e):void 0}}function V1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eI(t){return B1(t)||QA(t)||$1(t)||V1()}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 u0(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){za(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}var tI={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)}},nI=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};os(this,t),this.init(e,n)}return ss(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||tI,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,u0(u0({},{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}(),Ba=new nI,Tu=function(){function t(){os(this,t),this.observers={}}return ss(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(c){c.apply(void 0,i)})}if(this.observers["*"]){var u=[].concat(this.observers["*"]);u.forEach(function(c){c.apply(c,[n].concat(i))})}}}]),t}();function nd(){var t,e,n=new Promise(function(r,i){t=r,e=i});return n.resolve=t,n.reject=e,n}function c0(t){return t==null?"":""+t}function rI(t,e,n){t.forEach(function(r){e[r]&&(n[r]=e[r])})}function Bv(t,e,n){function r(u){return u&&u.indexOf("###")>-1?u.replace(/###/g,"."):u}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 f0(t,e,n){var r=Bv(t,e,Object),i=r.obj,o=r.k;i[o]=n}function iI(t,e,n,r){var i=Bv(t,e,Object),o=i.obj,a=i.k;o[a]=o[a]||[],r&&(o[a]=o[a].concat(n)),r||o[a].push(n)}function Jh(t,e){var n=Bv(t,e),r=n.obj,i=n.k;if(r)return r[i]}function oI(t,e,n){var r=Jh(t,n);return r!==void 0?r:Jh(e,n)}function H1(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]):H1(t[r],e[r],n):t[r]=e[r]);return t}function pf(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var sI={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function aI(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,function(e){return sI[e]}):t}var kp=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,lI=[" ",",","?","!",";"];function uI(t,e,n){e=e||"",n=n||"";var r=lI.filter(function(u){return e.indexOf(u)<0&&n.indexOf(u)<0});if(r.length===0)return!0;var i=new RegExp("(".concat(r.map(function(u){return u==="?"?"\\?":u}).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,u=r.slice(o,o+a).join(n),c=i[u];c===void 0&&r.length>o+a;)a++,u=r.slice(o,o+a).join(n),c=i[u];if(c===void 0)return;if(c===null)return null;if(e.endsWith(u)){if(typeof c=="string")return c;if(u&&typeof c[u]=="string")return c[u]}var d=r.slice(o+a).join(n);return d?Qh(c,d,n):void 0}i=i[r[o]]}return i}}function d0(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 gh(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?d0(Object(n),!0).forEach(function(r){za(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function cI(t){var e=fI();return function(){var r=Wa(t),i;if(e){var o=Wa(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Yd(this,i)}}function fI(){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 dI=function(t){Ep(n,t);var e=cI(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return os(this,n),i=e.call(this),kp&&Tu.call(Ol(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 ss(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 u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},c=u.keySeparator!==void 0?u.keySeparator:this.options.keySeparator,d=u.ignoreJSONStructure!==void 0?u.ignoreJSONStructure:this.options.ignoreJSONStructure,y=[i,o];a&&typeof a!="string"&&(y=y.concat(a)),a&&typeof a=="string"&&(y=y.concat(c?a.split(c):a)),i.indexOf(".")>-1&&(y=i.split("."));var p=Jh(this.data,y);return p||!d||typeof a!="string"?p:Qh(this.data&&this.data[i]&&this.data[i][o],a,c)}},{key:"addResource",value:function(i,o,a,u){var c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},d=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator,y=[i,o];a&&(y=y.concat(d?a.split(d):a)),i.indexOf(".")>-1&&(y=i.split("."),u=o,o=y[1]),this.addNamespaces(o),f0(this.data,y,u),c.silent||this.emit("added",i,o,a,u)}},{key:"addResources",value:function(i,o,a){var u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var c in a)(typeof a[c]=="string"||Object.prototype.toString.apply(a[c])==="[object Array]")&&this.addResource(i,o,c,a[c],{silent:!0});u.silent||this.emit("added",i,o,a)}},{key:"addResourceBundle",value:function(i,o,a,u,c){var d=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},y=[i,o];i.indexOf(".")>-1&&(y=i.split("."),u=a,a=o,o=y[1]),this.addNamespaces(o);var p=Jh(this.data,y)||{};u?H1(p,a,c):p=gh(gh({},p),a),f0(this.data,y,p),d.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"?gh(gh({},{}),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(u){return o[u]&&Object.keys(o[u]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(Tu),U1={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,n,r,i,o){var a=this;return e.forEach(function(u){a.processors[u]&&(n=a.processors[u].process(n,r,i,o))}),n}};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 Ni(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){za(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 hI(t){var e=pI();return function(){var r=Wa(t),i;if(e){var o=Wa(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Yd(this,i)}}function pI(){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 p0={},g0=function(t){Ep(n,t);var e=hI(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return os(this,n),i=e.call(this),kp&&Tu.call(Ol(i)),rI(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,Ol(i)),i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.logger=Ba.create("translator"),i}return ss(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 u=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,c=o.ns||this.options.defaultNS||[],d=a&&i.indexOf(a)>-1,y=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!uI(i,a,u);if(d&&!y){var p=i.match(this.interpolator.nestingRegexp);if(p&&p.length>0)return{key:i,namespaces:c};var S=i.split(a);(a!==u||a===u&&this.options.ns.indexOf(S[0])>-1)&&(c=S.shift()),i=S.join(u)}return typeof c=="string"&&(c=[c]),{key:i,namespaces:c}}},{key:"translate",value:function(i,o,a){var u=this;if(ns(o)!=="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),ns(o)==="object"&&(o=Ni({},o)),o||(o={}),i==null)return"";Array.isArray(i)||(i=[String(i)]);var c=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,d=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,y=this.extractFromKey(i[i.length-1],o),p=y.key,S=y.namespaces,C=S[S.length-1],A=o.lng||this.language,I=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(A&&A.toLowerCase()==="cimode"){if(I){var B=o.nsSeparator||this.options.nsSeparator;return c?{res:"".concat(C).concat(B).concat(p),usedKey:p,exactUsedKey:p,usedLng:A,usedNS:C}:"".concat(C).concat(B).concat(p)}return c?{res:p,usedKey:p,exactUsedKey:p,usedLng:A,usedNS:C}:p}var _=this.resolve(i,o),G=_&&_.res,q=_&&_.usedKey||p,se=_&&_.exactUsedKey||p,Q=Object.prototype.toString.apply(G),ye=["[object Number]","[object Function]","[object RegExp]"],x=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,ae=!this.i18nFormat||this.i18nFormat.handleAsObject,ce=typeof G!="string"&&typeof G!="boolean"&&typeof G!="number";if(ae&&G&&ce&&ye.indexOf(Q)<0&&!(typeof x=="string"&&Q==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var Be=this.options.returnedObjectHandler?this.options.returnedObjectHandler(q,G,Ni(Ni({},o),{},{ns:S})):"key '".concat(p," (").concat(this.language,")' returned an object instead of string.");return c?(_.res=Be,_):Be}if(d){var qe=Q==="[object Array]",Ze=qe?[]:{},ot=qe?se:q;for(var it in G)if(Object.prototype.hasOwnProperty.call(G,it)){var me="".concat(ot).concat(d).concat(it);Ze[it]=this.translate(me,Ni(Ni({},o),{joinArrays:!1,ns:S})),Ze[it]===me&&(Ze[it]=G[it])}G=Ze}}else if(ae&&typeof x=="string"&&Q==="[object Array]")G=G.join(x),G&&(G=this.extendTranslation(G,i,o,a));else{var De=!1,Le=!1,Ye=o.count!==void 0&&typeof o.count!="string",st=n.hasDefaultValue(o),Ce=Ye?this.pluralResolver.getSuffix(A,o.count,o):"",_e=o["defaultValue".concat(Ce)]||o.defaultValue;!this.isValidLookup(G)&&st&&(De=!0,G=_e),this.isValidLookup(G)||(Le=!0,G=p);var Xe=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,Ge=Xe&&Le?void 0:G,tt=st&&_e!==G&&this.options.updateMissing;if(Le||De||tt){if(this.logger.log(tt?"updateKey":"missingKey",A,C,p,tt?_e:G),d){var et=this.resolve(p,Ni(Ni({},o),{},{keySeparator:!1}));et&&et.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 nt=[],lt=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&<&<[0])for(var bt=0;bt<lt.length;bt++)nt.push(lt[bt]);else this.options.saveMissingTo==="all"?nt=this.languageUtils.toResolveHierarchy(o.lng||this.language):nt.push(o.lng||this.language);var xt=function(Ct,rt,Bt){var Vt=st&&Bt!==G?Bt:Ge;u.options.missingKeyHandler?u.options.missingKeyHandler(Ct,C,rt,Vt,tt,o):u.backendConnector&&u.backendConnector.saveMissing&&u.backendConnector.saveMissing(Ct,C,rt,Vt,tt,o),u.emit("missingKey",Ct,C,rt,G)};this.options.saveMissing&&(this.options.saveMissingPlurals&&Ye?nt.forEach(function(gt){u.pluralResolver.getSuffixes(gt,o).forEach(function(Ct){xt([gt],p+Ct,o["defaultValue".concat(Ct)]||_e)})}):xt(nt,p,_e))}G=this.extendTranslation(G,i,o,_,a),Le&&G===p&&this.options.appendNamespaceToMissingKey&&(G="".concat(C,":").concat(p)),(Le||De)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?G=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(C,":").concat(p):p,De?G:void 0):G=this.options.parseMissingKeyHandler(G))}return c?(_.res=G,_):G}},{key:"extendTranslation",value:function(i,o,a,u,c){var d=this;if(this.i18nFormat&&this.i18nFormat.parse)i=this.i18nFormat.parse(i,Ni(Ni({},this.options.interpolation.defaultVariables),a),u.usedLng,u.usedNS,u.usedKey,{resolved:u});else if(!a.skipInterpolation){a.interpolation&&this.interpolator.init(Ni(Ni({},a),{interpolation:Ni(Ni({},this.options.interpolation),a.interpolation)}));var y=typeof i=="string"&&(a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),p;if(y){var S=i.match(this.interpolator.nestingRegexp);p=S&&S.length}var C=a.replace&&typeof a.replace!="string"?a.replace:a;if(this.options.interpolation.defaultVariables&&(C=Ni(Ni({},this.options.interpolation.defaultVariables),C)),i=this.interpolator.interpolate(i,C,a.lng||this.language,a),y){var A=i.match(this.interpolator.nestingRegexp),I=A&&A.length;p<I&&(a.nest=!1)}!a.lng&&this.options.compatibilityAPI!=="v1"&&u&&u.res&&(a.lng=u.usedLng),a.nest!==!1&&(i=this.interpolator.nest(i,function(){for(var G=arguments.length,q=new Array(G),se=0;se<G;se++)q[se]=arguments[se];return c&&c[0]===q[0]&&!a.context?(d.logger.warn("It seems you are nesting recursively key: ".concat(q[0]," in key: ").concat(o[0])),null):d.translate.apply(d,q.concat([o]))},a)),a.interpolation&&this.interpolator.reset()}var B=a.postProcess||this.options.postProcess,_=typeof B=="string"?[B]:B;return i!=null&&_&&_.length&&a.applyPostProcessor!==!1&&(i=U1.handle(_,i,o,this.options&&this.options.postProcessPassResolved?Ni({i18nResolved:u},a):a,this)),i}},{key:"resolve",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u,c,d,y,p;return typeof i=="string"&&(i=[i]),i.forEach(function(S){if(!o.isValidLookup(u)){var C=o.extractFromKey(S,a),A=C.key;c=A;var I=C.namespaces;o.options.fallbackNS&&(I=I.concat(o.options.fallbackNS));var B=a.count!==void 0&&typeof a.count!="string",_=B&&!a.ordinal&&a.count===0&&o.pluralResolver.shouldUseIntlApi(),G=a.context!==void 0&&(typeof a.context=="string"||typeof a.context=="number")&&a.context!=="",q=a.lngs?a.lngs:o.languageUtils.toResolveHierarchy(a.lng||o.language,a.fallbackLng);I.forEach(function(se){o.isValidLookup(u)||(p=se,!p0["".concat(q[0],"-").concat(se)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(p)&&(p0["".concat(q[0],"-").concat(se)]=!0,o.logger.warn('key "'.concat(c,'" for languages "').concat(q.join(", "),`" won't get resolved as namespace "`).concat(p,'" 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!!!")),q.forEach(function(Q){if(!o.isValidLookup(u)){y=Q;var ye=[A];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(ye,A,Q,se,a);else{var x;B&&(x=o.pluralResolver.getSuffix(Q,a.count,a));var ae="".concat(o.options.pluralSeparator,"zero");if(B&&(ye.push(A+x),_&&ye.push(A+ae)),G){var ce="".concat(A).concat(o.options.contextSeparator).concat(a.context);ye.push(ce),B&&(ye.push(ce+x),_&&ye.push(ce+ae))}}for(var Be;Be=ye.pop();)o.isValidLookup(u)||(d=Be,u=o.getResource(Q,se,Be,a))}}))})}}),{res:u,usedKey:c,exactUsedKey:d,usedLng:y,usedNS:p}}},{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 u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,o,a,u):this.resourceStore.getResource(i,o,a,u)}}],[{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}(Tu);function Eg(t){return t.charAt(0).toUpperCase()+t.slice(1)}var m0=function(){function t(e){os(this,t),this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ba.create("languageUtils")}return ss(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]=Eg(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]=Eg(i[1].toLowerCase())),r.indexOf(i[2].toLowerCase())>-1&&(i[2]=Eg(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(u){if(u===a)return u;if(!(u.indexOf("-")<0&&a.indexOf("-")<0)&&u.indexOf(a)===0)return u})}}),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=[],u=function(d){d&&(i.isSupportedCode(d)?a.push(d):i.logger.warn("rejecting language code not found in supportedLngs: ".concat(d)))};return typeof n=="string"&&n.indexOf("-")>-1?(this.options.load!=="languageOnly"&&u(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&u(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&u(this.getLanguagePartFromCode(n))):typeof n=="string"&&u(this.formatLanguageCode(n)),o.forEach(function(c){a.indexOf(c)<0&&u(i.formatLanguageCode(c))}),a}}]),t}(),gI=[{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}],mI={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}},vI=["v1","v2","v3"],v0={zero:0,one:1,two:2,few:3,many:4,other:5};function yI(){var t={};return gI.forEach(function(e){e.lngs.forEach(function(n){t[n]={numbers:e.nr,plurals:mI[e.fc]}})}),t}var bI=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};os(this,t),this.languageUtils=e,this.options=n,this.logger=Ba.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=yI()}return ss(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,u){return v0[a]-v0[u]}).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 u=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()):u():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?u():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}},{key:"shouldUseIntlApi",value:function(){return!vI.includes(this.options.compatibilityJSON)}}]),t}();function y0(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 oa(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?y0(Object(n),!0).forEach(function(r){za(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):y0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function b0(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=oI(t,e,n);return!o&&i&&typeof n=="string"&&(o=Qh(t,n,r),o===void 0&&(o=Qh(e,n,r))),o}var wI=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};os(this,t),this.logger=Ba.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(n){return n},this.init(e)}return ss(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:aI,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?pf(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?pf(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?pf(r.nestingPrefix):r.nestingPrefixEscaped||pf("$t("),this.nestingSuffix=r.nestingSuffix?pf(r.nestingSuffix):r.nestingSuffixEscaped||pf(")"),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,u,c,d,y=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function p(B){return B.replace(/\$/g,"$$$$")}var S=function(_){if(_.indexOf(a.formatSeparator)<0){var G=b0(r,y,_,a.options.keySeparator,a.options.ignoreJSONStructure);return a.alwaysFormat?a.format(G,void 0,i,oa(oa(oa({},o),r),{},{interpolationkey:_})):G}var q=_.split(a.formatSeparator),se=q.shift().trim(),Q=q.join(a.formatSeparator).trim();return a.format(b0(r,y,se,a.options.keySeparator,a.options.ignoreJSONStructure),Q,i,oa(oa(oa({},o),r),{},{interpolationkey:se}))};this.resetRegExp();var C=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 p(_)}},{regex:this.regexp,safeValue:function(_){return a.escapeValue?p(a.escape(_)):p(_)}}];return I.forEach(function(B){for(d=0;u=B.regex.exec(n);){var _=u[1].trim();if(c=S(_),c===void 0)if(typeof C=="function"){var G=C(n,u,o);c=typeof G=="string"?G:""}else if(o&&Object.prototype.hasOwnProperty.call(o,_))c="";else if(A){c=u[0];continue}else a.logger.warn("missed to pass in variable ".concat(_," for interpolating ").concat(n)),c="";else typeof c!="string"&&!a.useRawValueToEscape&&(c=c0(c));var q=B.safeValue(c);if(n=n.replace(u[0],q),A?(B.regex.lastIndex+=c.length,B.regex.lastIndex-=u[0].length):B.regex.lastIndex=0,d++,d>=a.maxReplaces)break}}),n}},{key:"nest",value:function(n,r){var i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,u,c;function d(C,A){var I=this.nestingOptionsSeparator;if(C.indexOf(I)<0)return C;var B=C.split(new RegExp("".concat(I,"[ ]*{"))),_="{".concat(B[1]);C=B[0],_=this.interpolate(_,c);var G=_.match(/'/g),q=_.match(/"/g);(G&&G.length%2===0&&!q||q.length%2!==0)&&(_=_.replace(/'/g,'"'));try{c=JSON.parse(_),A&&(c=oa(oa({},A),c))}catch(se){return this.logger.warn("failed parsing options string in nesting for key ".concat(C),se),"".concat(C).concat(I).concat(_)}return delete c.defaultValue,C}for(;a=this.nestingRegexp.exec(n);){var y=[];c=oa({},o),c=c.replace&&typeof c.replace!="string"?c.replace:c,c.applyPostProcessor=!1,delete c.defaultValue;var p=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){var S=a[1].split(this.formatSeparator).map(function(C){return C.trim()});a[1]=S.shift(),y=S,p=!0}if(u=r(d.call(this,a[1].trim(),c),c),u&&a[0]===n&&typeof u!="string")return u;typeof u!="string"&&(u=c0(u)),u||(this.logger.warn("missed to resolve ".concat(a[1]," for nesting ").concat(n)),u=""),p&&(u=y.reduce(function(C,A){return i.format(C,A,o.lng,oa(oa({},o),{},{interpolationkey:a[1].trim()}))},u.trim())),n=n.replace(a[0],u),this.regexp.lastIndex=0}return n}}]),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 Cl(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){za(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 xI(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 u=a.split(":"),c=eI(u),d=c[0],y=c.slice(1),p=y.join(":").trim().replace(/^'+|'+$/g,"");n[d.trim()]||(n[d.trim()]=p),p==="false"&&(n[d.trim()]=!1),p==="true"&&(n[d.trim()]=!0),isNaN(p)||(n[d.trim()]=parseInt(p,10))}})}}return{formatName:e,formatOptions:n}}function gf(t){var e={};return function(r,i,o){var a=i+JSON.stringify(o),u=e[a];return u||(u=t(i,o),e[a]=u),u(r)}}var SI=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};os(this,t),this.logger=Ba.create("formatter"),this.options=e,this.formats={number:gf(function(n,r){var i=new Intl.NumberFormat(n,Cl({},r));return function(o){return i.format(o)}}),currency:gf(function(n,r){var i=new Intl.NumberFormat(n,Cl(Cl({},r),{},{style:"currency"}));return function(o){return i.format(o)}}),datetime:gf(function(n,r){var i=new Intl.DateTimeFormat(n,Cl({},r));return function(o){return i.format(o)}}),relativetime:gf(function(n,r){var i=new Intl.RelativeTimeFormat(n,Cl({},r));return function(o){return i.format(o,r.range||"day")}}),list:gf(function(n,r){var i=new Intl.ListFormat(n,Cl({},r));return function(o){return i.format(o)}})},this.init(e)}return ss(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()]=gf(r)}},{key:"format",value:function(n,r,i){var o=this,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=r.split(this.formatSeparator),c=u.reduce(function(d,y){var p=xI(y),S=p.formatName,C=p.formatOptions;if(o.formats[S]){var A=d;try{var I=a&&a.formatParams&&a.formatParams[a.interpolationkey]||{},B=I.locale||I.lng||a.locale||a.lng||i;A=o.formats[S](d,B,Cl(Cl(Cl({},C),a),I))}catch(_){o.logger.warn(_)}return A}else o.logger.warn("there was no format function for ".concat(S));return d},n);return c}}]),t}();function x0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function S0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?x0(Object(n),!0).forEach(function(r){za(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):x0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function TI(t){var e=CI();return function(){var r=Wa(t),i;if(e){var o=Wa(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Yd(this,i)}}function CI(){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 EI(t,e){t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)}var kI=function(t){Ep(n,t);var e=TI(n);function n(r,i,o){var a,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return os(this,n),a=e.call(this),kp&&Tu.call(Ol(a)),a.backend=r,a.store=i,a.services=o,a.languageUtils=o.languageUtils,a.options=u,a.logger=Ba.create("backendConnector"),a.waitingReads=[],a.maxParallelReads=u.maxParallelReads||10,a.readingCalls=0,a.maxRetries=u.maxRetries>=0?u.maxRetries:5,a.retryTimeout=u.retryTimeout>=1?u.retryTimeout:350,a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(o,u.backend,u),a}return ss(n,[{key:"queueLoad",value:function(i,o,a,u){var c=this,d={},y={},p={},S={};return i.forEach(function(C){var A=!0;o.forEach(function(I){var B="".concat(C,"|").concat(I);!a.reload&&c.store.hasResourceBundle(C,I)?c.state[B]=2:c.state[B]<0||(c.state[B]===1?y[B]===void 0&&(y[B]=!0):(c.state[B]=1,A=!1,y[B]===void 0&&(y[B]=!0),d[B]===void 0&&(d[B]=!0),S[I]===void 0&&(S[I]=!0)))}),A||(p[C]=!0)}),(Object.keys(d).length||Object.keys(y).length)&&this.queue.push({pending:y,pendingCount:Object.keys(y).length,loaded:{},errors:[],callback:u}),{toLoad:Object.keys(d),pending:Object.keys(y),toLoadLanguages:Object.keys(p),toLoadNamespaces:Object.keys(S)}}},{key:"loaded",value:function(i,o,a){var u=i.split("|"),c=u[0],d=u[1];o&&this.emit("failedLoading",c,d,o),a&&this.store.addResourceBundle(c,d,a),this.state[i]=o?-1:2;var y={};this.queue.forEach(function(p){iI(p.loaded,[c],d),EI(p,i),o&&p.errors.push(o),p.pendingCount===0&&!p.done&&(Object.keys(p.loaded).forEach(function(S){y[S]||(y[S]={});var C=p.loaded[S];C.length&&C.forEach(function(A){y[S][A]===void 0&&(y[S][A]=!0)})}),p.done=!0,p.errors.length?p.callback(p.errors):p.callback())}),this.emit("loaded",y),this.queue=this.queue.filter(function(p){return!p.done})}},{key:"read",value:function(i,o,a){var u=this,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,d=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,y=arguments.length>5?arguments[5]:void 0;if(!i.length)return y(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:o,fcName:a,tried:c,wait:d,callback:y});return}this.readingCalls++;var p=function(I,B){if(u.readingCalls--,u.waitingReads.length>0){var _=u.waitingReads.shift();u.read(_.lng,_.ns,_.fcName,_.tried,_.wait,_.callback)}if(I&&B&&c<u.maxRetries){setTimeout(function(){u.read.call(u,i,o,a,c+1,d*2,y)},d);return}y(I,B)},S=this.backend[a].bind(this.backend);if(S.length===2){try{var C=S(i,o);C&&typeof C.then=="function"?C.then(function(A){return p(null,A)}).catch(p):p(null,C)}catch(A){p(A)}return}return S(i,o,p)}},{key:"prepareLoading",value:function(i,o){var a=this,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c=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."),c&&c();typeof i=="string"&&(i=this.languageUtils.toResolveHierarchy(i)),typeof o=="string"&&(o=[o]);var d=this.queueLoad(i,o,u,c);if(!d.toLoad.length)return d.pending.length||c(),null;d.toLoad.forEach(function(y){a.loadOne(y)})}},{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]:"",u=i.split("|"),c=u[0],d=u[1];this.read(c,d,"read",void 0,void 0,function(y,p){y&&o.logger.warn("".concat(a,"loading namespace ").concat(d," for language ").concat(c," failed"),y),!y&&p&&o.logger.log("".concat(a,"loaded namespace ").concat(d," for language ").concat(c),p),o.loaded(i,y,p)})}},{key:"saveMissing",value:function(i,o,a,u,c){var d=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},y=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 p=S0(S0({},d),{},{isUpdate:c}),S=this.backend.create.bind(this.backend);if(S.length<6)try{var C;S.length===5?C=S(i,o,a,u,p):C=S(i,o,a,u),C&&typeof C.then=="function"?C.then(function(A){return y(null,A)}).catch(y):y(null,C)}catch(A){y(A)}else S(i,o,a,u,y,p)}!i||!i[0]||this.store.addResource(i[0],o,a,u)}}}]),n}(Tu);function T0(){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(ns(e[1])==="object"&&(n=e[1]),typeof e[1]=="string"&&(n.defaultValue=e[1]),typeof e[2]=="string"&&(n.tDescription=e[2]),ns(e[2])==="object"||ns(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 C0(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 E0(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 Fa(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?E0(Object(n),!0).forEach(function(r){za(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):E0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function DI(t){var e=PI();return function(){var r=Wa(t),i;if(e){var o=Wa(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Yd(this,i)}}function PI(){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 mh(){}function OI(t){var e=Object.getOwnPropertyNames(Object.getPrototypeOf(t));e.forEach(function(n){typeof t[n]=="function"&&(t[n]=t[n].bind(t))})}var ep=function(t){Ep(n,t);var e=DI(n);function n(){var r,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(os(this,n),r=e.call(this),kp&&Tu.call(Ol(r)),r.options=C0(i),r.services={},r.logger=Ba,r.modules={external:[]},OI(Ol(r)),o&&!r.isInitialized&&!i.isClone){if(!r.options.initImmediate)return r.init(i,o),Yd(r,Ol(r));setTimeout(function(){r.init(i,o)},0)}return r}return ss(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 u=T0();this.options=Fa(Fa(Fa({},u),this.options),C0(o)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=Fa(Fa({},u.interpolation),this.options.interpolation)),o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);function c(_){return _?typeof _=="function"?new _:_:null}if(!this.options.isClone){this.modules.logger?Ba.init(c(this.modules.logger),this.options):Ba.init(null,this.options);var d;this.modules.formatter?d=this.modules.formatter:typeof Intl<"u"&&(d=SI);var y=new m0(this.options);this.store=new dI(this.options.resources,this.options);var p=this.services;p.logger=Ba,p.resourceStore=this.store,p.languageUtils=y,p.pluralResolver=new bI(y,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===u.interpolation.format)&&(p.formatter=c(d),p.formatter.init(p,this.options),this.options.interpolation.format=p.formatter.format.bind(p.formatter)),p.interpolator=new wI(this.options),p.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},p.backendConnector=new kI(c(this.modules.backend),p.resourceStore,p,this.options),p.backendConnector.on("*",function(_){for(var G=arguments.length,q=new Array(G>1?G-1:0),se=1;se<G;se++)q[se-1]=arguments[se];i.emit.apply(i,[_].concat(q))}),this.modules.languageDetector&&(p.languageDetector=c(this.modules.languageDetector),p.languageDetector.init&&p.languageDetector.init(p,this.options.detection,this.options)),this.modules.i18nFormat&&(p.i18nFormat=c(this.modules.i18nFormat),p.i18nFormat.init&&p.i18nFormat.init(this)),this.translator=new g0(this.services,this.options),this.translator.on("*",function(_){for(var G=arguments.length,q=new Array(G>1?G-1:0),se=1;se<G;se++)q[se-1]=arguments[se];i.emit.apply(i,[_].concat(q))}),this.modules.external.forEach(function(_){_.init&&_.init(i)})}if(this.format=this.options.interpolation.format,a||(a=mh),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var S=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);S.length>0&&S[0]!=="dev"&&(this.options.lng=S[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var C=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];C.forEach(function(_){i[_]=function(){var G;return(G=i.store)[_].apply(G,arguments)}});var A=["addResource","addResources","addResourceBundle","removeResourceBundle"];A.forEach(function(_){i[_]=function(){var G;return(G=i.store)[_].apply(G,arguments),i}});var I=nd(),B=function(){var G=function(se,Q){i.isInitialized&&!i.initializedStoreOnce&&i.logger.warn("init: i18next is already initialized. You should call init just once!"),i.isInitialized=!0,i.options.isClone||i.logger.log("initialized",i.options),i.emit("initialized",i.options),I.resolve(Q),a(se,Q)};if(i.languages&&i.options.compatibilityAPI!=="v1"&&!i.isInitialized)return G(null,i.t.bind(i));i.changeLanguage(i.options.lng,G)};return this.options.resources||!this.options.initImmediate?B():setTimeout(B,0),I}},{key:"loadResources",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:mh,u=a,c=typeof i=="string"?i:this.language;if(typeof i=="function"&&(u=i),!this.options.resources||this.options.partialBundledLanguages){if(c&&c.toLowerCase()==="cimode")return u();var d=[],y=function(C){if(C){var A=o.services.languageUtils.toResolveHierarchy(C);A.forEach(function(I){d.indexOf(I)<0&&d.push(I)})}};if(c)y(c);else{var p=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);p.forEach(function(S){return y(S)})}this.options.preload&&this.options.preload.forEach(function(S){return y(S)}),this.services.backendConnector.load(d,this.options.ns,function(S){!S&&!o.resolvedLanguage&&o.language&&o.setResolvedLanguage(o.language),u(S)})}else u(null)}},{key:"reloadResources",value:function(i,o,a){var u=nd();return i||(i=this.languages),o||(o=this.options.ns),a||(a=mh),this.services.backendConnector.reload(i,o,function(c){u.resolve(),a(c)}),u}},{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"&&U1.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 u=nd();this.emit("languageChanging",i);var c=function(S){a.language=S,a.languages=a.services.languageUtils.toResolveHierarchy(S),a.resolvedLanguage=void 0,a.setResolvedLanguage(S)},d=function(S,C){C?(c(C),a.translator.changeLanguage(C),a.isLanguageChangingTo=void 0,a.emit("languageChanged",C),a.logger.log("languageChanged",C)):a.isLanguageChangingTo=void 0,u.resolve(function(){return a.t.apply(a,arguments)}),o&&o(S,function(){return a.t.apply(a,arguments)})},y=function(S){!i&&!S&&a.services.languageDetector&&(S=[]);var C=typeof S=="string"?S:a.services.languageUtils.getBestMatchFromCodes(S);C&&(a.language||c(C),a.translator.language||a.translator.changeLanguage(C),a.services.languageDetector&&a.services.languageDetector.cacheUserLanguage&&a.services.languageDetector.cacheUserLanguage(C)),a.loadResources(C,function(A){d(A,C)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?y(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(y):this.services.languageDetector.detect(y):y(i),u}},{key:"getFixedT",value:function(i,o,a){var u=this,c=function d(y,p){var S;if(ns(p)!=="object"){for(var C=arguments.length,A=new Array(C>2?C-2:0),I=2;I<C;I++)A[I-2]=arguments[I];S=u.options.overloadTranslationOptionHandler([y,p].concat(A))}else S=Fa({},p);S.lng=S.lng||d.lng,S.lngs=S.lngs||d.lngs,S.ns=S.ns||d.ns,S.keyPrefix=S.keyPrefix||a||d.keyPrefix;var B=u.options.keySeparator||".",_;return S.keyPrefix&&Array.isArray(y)?_=y.map(function(G){return"".concat(S.keyPrefix).concat(B).concat(G)}):_=S.keyPrefix?"".concat(S.keyPrefix).concat(B).concat(y):y,u.t(_,S)};return typeof i=="string"?c.lng=i:c.lngs=i,c.ns=o,c.keyPrefix=a,c}},{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 u=a.lng||this.resolvedLanguage||this.languages[0],c=this.options?this.options.fallbackLng:!1,d=this.languages[this.languages.length-1];if(u.toLowerCase()==="cimode")return!0;var y=function(C,A){var I=o.services.backendConnector.state["".concat(C,"|").concat(A)];return I===-1||I===2};if(a.precheck){var p=a.precheck(this,y);if(p!==void 0)return p}return!!(this.hasResourceBundle(u,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||y(u,i)&&(!c||y(d,i)))}},{key:"loadNamespaces",value:function(i,o){var a=this,u=nd();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(function(c){a.options.ns.indexOf(c)<0&&a.options.ns.push(c)}),this.loadResources(function(c){u.resolve(),o&&o(c)}),u):(o&&o(),Promise.resolve())}},{key:"loadLanguages",value:function(i,o){var a=nd();typeof i=="string"&&(i=[i]);var u=this.options.preload||[],c=i.filter(function(d){return u.indexOf(d)<0});return c.length?(this.options.preload=u.concat(c),this.loadResources(function(d){a.resolve(),o&&o(d)}),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 m0(T0());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]:mh,u=Fa(Fa(Fa({},this.options),o),{isClone:!0}),c=new n(u);(o.debug!==void 0||o.prefix!==void 0)&&(c.logger=c.logger.clone(o));var d=["store","services","language"];return d.forEach(function(y){c[y]=i[y]}),c.services=Fa({},this.services),c.services.utils={hasLoadedNamespace:c.hasLoadedNamespace.bind(c)},c.translator=new g0(c.services,c.options),c.translator.on("*",function(y){for(var p=arguments.length,S=new Array(p>1?p-1:0),C=1;C<p;C++)S[C-1]=arguments[C];c.emit.apply(c,[y].concat(S))}),c.init(u,a),c.translator.options=c.options,c.translator.backendConnector.services.utils={hasLoadedNamespace:c.hasLoadedNamespace.bind(c)},c}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}(Tu);za(ep,"createInstance",function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return new ep(t,e)});var ai=ep.createInstance();ai.createInstance=ep.createInstance;ai.createInstance;ai.dir;ai.init;ai.loadResources;ai.reloadResources;ai.use;ai.changeLanguage;ai.getFixedT;var W1=ai.t;ai.exists;ai.setDefaultNamespace;ai.hasLoadedNamespace;ai.loadNamespaces;ai.loadLanguages;const z1={TOKEN_MALFORMED:"token_malformed",TOKEN_EXPIRED:"token_expired"},Y1=t=>{window.location.href=`${t}/authentication/login`},G1=t=>{window.location.href=`${t}/authentication/logout`},aa=GA.create({withCredentials:!0});let kg=!1,Im=[];const k0=t=>{Im.forEach(e=>{t?e.reject(t):e.resolve()}),Im=[]};function q1(t,e){var o,a,u,c,d,y,p,S,C;const n=t.config,r=((a=(o=t.response)==null?void 0:o.data)==null?void 0:a.errorMessage)||((c=(u=t.response)==null?void 0:u.data)==null?void 0:c.message),i=r===z1.TOKEN_EXPIRED;return((d=t.response)==null?void 0:d.status)===401&&i&&!n._retry?kg?new Promise((A,I)=>{Im.push({resolve:A,reject:I})}).then(()=>aa(n)).catch(A=>Promise.reject(A)):(n._retry=!0,kg=!0,aa.post("/authentication/api/v1/auth/refresh-token",void 0,{baseURL:window.env.AUTHEN_DOMAIN}).then(()=>(k0(null),aa(n))).catch(A=>(k0(A),Promise.reject(A))).finally(()=>{kg=!1})):((y=t.response)==null?void 0:y.status)===401&&!i?Y1(window.env.AUTHEN_DOMAIN):(((p=t.response)==null?void 0:p.status)===403?(S=e==null?void 0:e.handle403)==null||S.call(e,t):(!(e!=null&&e.disabledPushNotify)&&Gd(W1(`${r||"Something went wrong!"}`)),(C=e==null?void 0:e.handleOtherError)==null||C.call(e,t)),r&&t.response&&t.response.data&&(t.response.data.message=r),Promise.reject(t))}const _I=aa.interceptors.response.use(t=>t,async t=>q1(t)),X1=Z.createContext({}),RI=({children:t})=>{const[e,n]=Z.useState(!1),[r,i]=Z.useState({all:{rows:[],total:0},unread:{rows:[],total:0}}),o=()=>{n(!e)},a=()=>{n(!1)};return $e.jsx(X1.Provider,{value:{isOpen:e,toggleOpen:o,setShowModalFalse:a,notidata:r,setNotiData:i},children:t})};var K1={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},D0=Z.createContext&&Z.createContext(K1),AI=["attr","size","title"];function II(t,e){if(t==null)return{};var n=MI(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 MI(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 tp(){return tp=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},tp.apply(this,arguments)}function P0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function np(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?P0(Object(n),!0).forEach(function(r){LI(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):P0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function LI(t,e,n){return e=FI(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function FI(t){var e=NI(t,"string");return typeof e=="symbol"?e:e+""}function NI(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Z1(t){return t&&t.map((e,n)=>Z.createElement(e.tag,np({key:n},e.attr),Z1(e.child)))}function Dp(t){return e=>Z.createElement(jI,tp({attr:np({},t.attr)},e),Z1(t.child))}function jI(t){var e=n=>{var{attr:r,size:i,title:o}=t,a=II(t,AI),u=i||n.size||"1em",c;return n.className&&(c=n.className),t.className&&(c=(c?c+" ":"")+t.className),Z.createElement("svg",tp({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,a,{className:c,style:np(np({color:t.color||n.color},n.style),t.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),o&&Z.createElement("title",null,o),t.children)};return D0!==void 0?Z.createElement(D0.Consumer,null,n=>e(n)):e(K1)}function BI(t){return Dp({tag:"svg",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 $I(t){return Dp({tag:"svg",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 VI={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 Dg(t){return t+" !important"}const J1=t=>{const e={...t.colors};return la.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:VI,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:Dg(e.primary200),"&:hover":{backgroundColor:Dg(e.primary200)}}}}},MuiPaginationItem:{defaultProps:{components:{previous:BI,next:$I}},styleOverrides:{root:{"& svg":{width:"10px"},border:"none",fontSize:"14px",lineHeight:"1.5rem",borderRadius:"7px","&.Mui-selected":{backgroundColor:Dg(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 HI(t,e){const n={...t};return e==null||e.forEach(r=>{r.children&&r.children.forEach(({key:i,color:o})=>{n[i]=o.trim()||Ei[i]})}),n}function Q1(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 UI(t){var u,c,d;const{data:e,isFetching:n}=_d.useQuery(["customTheme"],()=>t!=null&&t.url?fetch(t.url).then(y=>y.json()).then(y=>(["image","favicon","icon"].forEach(p=>{var S;(S=y==null?void 0:y.theme)!=null&&S[p]&&(y.theme[p]+=`?v=${Date.now()}`)}),y)):void 0,{enabled:!!(t!=null&&t.url)&&(t==null?void 0:t.enabled),refetchOnWindowFocus:!1,cacheTime:0,onSuccess(y){var p;Q1((p=y==null?void 0:y.theme)==null?void 0:p.favicon)}}),r=HI(Ei,(u=e==null?void 0:e.theme)==null?void 0:u.keyColor),i=J1({colors:r}),o=(c=e==null?void 0:e.theme)==null?void 0:c.image,a=(d=e==null?void 0:e.theme)==null?void 0:d.icon;return{colors:r,theme:i,logo:o,icon:a,isFetching:n,themeDto:e==null?void 0:e.theme}}const eT=Z.createContext({}),WI=()=>Z.useContext(eT),zI=t=>{var o;const{children:e,brandTheme:n}=t,r=UI(n),i=((o=t.customTheme)==null?void 0:o.call(t,r.colors))||r.theme;return $e.jsx(eT.Provider,{value:r,children:$e.jsx(la.ThemeProvider,{theme:i,children:e})})},YI=t=>{const e=_d.useQueryClient(),n=Z.useMemo(()=>t.axiosInstance||aa,[t.axiosInstance]);window.env||(window.env={}),window.env.AUTHEN_DOMAIN=new URL(t.baseUrl).origin;const r=_d.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 Z.useEffect(()=>{window.onpageshow=function(i){i.persisted&&e.invalidateQueries(["user"])}},[e]),r},GI=t=>{const e=_d.useQueryClient(),n=Z.useMemo(()=>t.axiosInstance||aa,[t.axiosInstance]);window.env||(window.env={}),window.env.AUTHEN_DOMAIN=new URL(t.baseUrl).origin;const r=_d.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 Z.useEffect(()=>{window.onpageshow=function(i){i.persisted&&e.invalidateQueries(["user-permissions"])}},[e]),r},$v=Z.createContext({}),qI=t=>{const{children:e,baseUrl:n,axiosInstance:r}=t,i=new URL(n).origin,o=YI({axiosInstance:r,baseUrl:n}),a=GI({axiosInstance:r,baseUrl:n});function u(){window.location.href=`${i}/authentication/login`}function c(){window.location.href=`${i}/authentication/logout`}return o!=null&&o.isFetching?$e.jsx(la.Grid,{container:!0,justifyContent:"center",alignItems:"center",sx:{minHeight:"100vh"},children:$e.jsx(la.CircularProgress,{})}):$e.jsx($v.Provider,{value:{user:o==null?void 0:o.data,login:u,logout:c,isFetching:o.isFetching,permissions:a==null?void 0:a.data},children:e})},XI=()=>Z.useContext($v);function KI(t,e,n){return n.some(r=>{const i=t[r];return String(i).toLowerCase().includes(e.toLowerCase())})}var tT=[],ZI=tT.forEach,JI=tT.slice;function QI(t){return ZI.call(JI.call(arguments,1),function(e){if(e)for(var n in e)t[n]===void 0&&(t[n]=e[n])}),t}var O0=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,eM=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 u=i.maxAge-0;if(Number.isNaN(u))throw new Error("maxAge should be a Number");a+="; Max-Age=".concat(Math.floor(u))}if(i.domain){if(!O0.test(i.domain))throw new TypeError("option domain is invalid");a+="; Domain=".concat(i.domain)}if(i.path){if(!O0.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 c=typeof i.sameSite=="string"?i.sameSite.toLowerCase():i.sameSite;switch(c){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},_0={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=eM(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)}},tM={name:"cookie",lookup:function(e){var n;if(e.lookupCookie&&typeof document<"u"){var r=_0.read(e.lookupCookie);r&&(n=r)}return n},cacheUserLanguage:function(e,n){n.lookupCookie&&typeof document<"u"&&_0.create(n.lookupCookie,e,n.cookieMinutes,n.cookieDomain,n.cookieOptions)}},nM={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 u=o[a].indexOf("=");if(u>0){var c=o[a].substring(0,u);c===e.lookupQuerystring&&(n=o[a].substring(u+1))}}}return n}},rd=null,R0=function(){if(rd!==null)return rd;try{rd=window!=="undefined"&&window.localStorage!==null;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{rd=!1}return rd},rM={name:"localStorage",lookup:function(e){var n;if(e.lookupLocalStorage&&R0()){var r=window.localStorage.getItem(e.lookupLocalStorage);r&&(n=r)}return n},cacheUserLanguage:function(e,n){n.lookupLocalStorage&&R0()&&window.localStorage.setItem(n.lookupLocalStorage,e)}},id=null,A0=function(){if(id!==null)return id;try{id=window!=="undefined"&&window.sessionStorage!==null;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{id=!1}return id},iM={name:"sessionStorage",lookup:function(e){var n;if(e.lookupSessionStorage&&A0()){var r=window.sessionStorage.getItem(e.lookupSessionStorage);r&&(n=r)}return n},cacheUserLanguage:function(e,n){n.lookupSessionStorage&&A0()&&window.sessionStorage.setItem(n.lookupSessionStorage,e)}},oM={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}},sM={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}},aM={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}},lM={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]}},nT=!1;try{document.cookie,nT=!0}catch{}var rT=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];nT||rT.splice(1,1);function uM(){return{order:rT,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(e){return e}}}var iT=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};os(this,t),this.type="languageDetector",this.detectors={},this.init(e,n)}return ss(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=QI(r,this.options||{},uM()),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(tM),this.addDetector(nM),this.addDetector(rM),this.addDetector(iM),this.addDetector(oM),this.addDetector(sM),this.addDetector(aM),this.addDetector(lM)}},{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)}))}}])}();iT.type="languageDetector";function Vv(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 cM=Object.freeze(Object.defineProperty({__proto__:null,default:Vv},Symbol.toStringTag,{value:"Module"}));var Ci=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bc(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function fM(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}function dM(){if(console&&console.warn){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];typeof n[0]=="string"&&(n[0]="react-i18next:: ".concat(n[0])),(t=console).warn.apply(t,n)}}var I0={};function Mm(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];typeof e[0]=="string"&&I0[e[0]]||(typeof e[0]=="string"&&(I0[e[0]]=new Date),dM.apply(void 0,e))}var oT=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 M0(t,e,n){t.loadNamespaces(e,oT(t,n))}function L0(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,oT(t,r))}function hM(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(c,d){var y=e.services.backendConnector.state["".concat(c,"|").concat(d)];return y===-1||y===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 pM(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!e.languages||!e.languages.length)return Mm("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}}):hM(t,e,n)}var gM=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,mM={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},vM=function(e){return mM[e]},yM=function(e){return e.replace(gM,vM)};function F0(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 N0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?F0(Object(n),!0).forEach(function(r){za(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):F0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Lm={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:yM};function bM(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Lm=N0(N0({},Lm),t)}function wM(){return Lm}var sT;function xM(t){sT=t}function SM(){return sT}var TM={type:"3rdParty",init:function(e){bM(e.options.react),xM(e)}},aT=Z.createContext(),CM=function(){function t(){os(this,t),this.usedNamespaces={}}return ss(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 EM(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,o,a,u=[],c=!0,d=!1;try{if(o=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(u.push(r.value),u.length!==e);c=!0);}catch(y){d=!0,i=y}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw i}}return u}}function kM(t,e){return B1(t)||EM(t,e)||$1(t,e)||V1()}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 Pg(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){za(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):j0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var DM=function(e,n){var r=Z.useRef();return Z.useEffect(function(){r.current=n?r.current:e},[e,n]),r.current};function lT(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.i18n,r=Z.useContext(aT)||{},i=r.i18n,o=r.defaultNS,a=n||i||SM();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new CM),!a){Mm("You will need to pass in an i18next instance by using initReactI18next");var u=function(ce,Be){return typeof Be=="string"?Be:Be&&ns(Be)==="object"&&typeof Be.defaultValue=="string"?Be.defaultValue:Array.isArray(ce)?ce[ce.length-1]:ce},c=[u,{},!1];return c.t=u,c.i18n={},c.ready=!1,c}a.options.react&&a.options.react.wait!==void 0&&Mm("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var d=Pg(Pg(Pg({},wM()),a.options.react),e),y=d.useSuspense,p=d.keyPrefix,S=t||o||a.options&&a.options.defaultNS;S=typeof S=="string"?[S]:S||["translation"],a.reportNamespaces.addUsedNamespaces&&a.reportNamespaces.addUsedNamespaces(S);var C=(a.isInitialized||a.initializedStoreOnce)&&S.every(function(ae){return pM(ae,a,d)});function A(){return a.getFixedT(e.lng||null,d.nsMode==="fallback"?S:S[0],p)}var I=Z.useState(A),B=kM(I,2),_=B[0],G=B[1],q=S.join();e.lng&&(q="".concat(e.lng).concat(q));var se=DM(q),Q=Z.useRef(!0);Z.useEffect(function(){var ae=d.bindI18n,ce=d.bindI18nStore;Q.current=!0,!C&&!y&&(e.lng?L0(a,e.lng,S,function(){Q.current&&G(A)}):M0(a,S,function(){Q.current&&G(A)})),C&&se&&se!==q&&Q.current&&G(A);function Be(){Q.current&&G(A)}return ae&&a&&a.on(ae,Be),ce&&a&&a.store.on(ce,Be),function(){Q.current=!1,ae&&a&&ae.split(" ").forEach(function(qe){return a.off(qe,Be)}),ce&&a&&ce.split(" ").forEach(function(qe){return a.store.off(qe,Be)})}},[a,q]);var ye=Z.useRef(!0);Z.useEffect(function(){Q.current&&!ye.current&&G(A),ye.current=!1},[a,p]);var x=[_,a,C];if(x.t=_,x.i18n=a,x.ready=C,C||!C&&!y)return x;throw new Promise(function(ae){e.lng?L0(a,e.lng,S,function(){return ae()}):M0(a,S,function(){return ae()})})}function PM(t){var e=t.i18n,n=t.defaultNS,r=t.children,i=Z.useMemo(function(){return{i18n:e,defaultNS:n}},[e,n]);return Z.createElement(aT.Provider,{value:i},r)}var uT=[],OM=uT.forEach,_M=uT.slice;function RM(t){return OM.call(_M.call(arguments,1),function(e){if(e)for(var n in e)t[n]===void 0&&(t[n]=e[n])}),t}function AM(t){return t?typeof t=="function"?new t:t:null}function IM(){return{handleEmptyResourcesAsFailed:!0,cacheHitMode:"none"}}function B0(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 cT=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]:{};os(this,t),this.backends=[],this.type="backend",this.allOptions=r,this.init(e,n)}return ss(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=RM(i,this.options||{},IM()),this.allOptions=o,this.options.backends&&this.options.backends.forEach(function(a,u){r.backends[u]=r.backends[u]||AM(a),r.backends[u].init(n,r.options.backendOptions&&r.options.backendOptions[u]||{},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,u=function d(y){if(y>=a)return i(new Error("non of the backend loaded data",!0));var p=y===a-1,S=o.options.handleEmptyResourcesAsFailed&&!p?0:-1,C=o.backends[y];C.read?B0(C,n,r,function(A,I,B){if(!A&&I&&Object.keys(I).length>S){if(i(null,I,y),c(y-1,I),C.save&&o.options.cacheHitMode&&["refresh","refreshAndUpdateStore"].indexOf(o.options.cacheHitMode)>-1){if(B&&o.options.refreshExpirationTime&&B+o.options.refreshExpirationTime>Date.now())return;var _=o.backends[y+1];_&&_.read&&B0(_,n,r,function(G,q){G||q&&(Object.keys(q).length<=S||(c(y,q),o.options.cacheHitMode==="refreshAndUpdateStore"&&o.services&&o.services.resourceStore&&o.services.resourceStore.addResourceBundle(n,r,q)))})}}else d(y+1)}):d(y+1)},c=function d(y,p){if(!(y<0)){var S=o.backends[y];S.save&&S.save(n,r,p),d(y-1,p)}};u(0)}},{key:"create",value:function(n,r,i,o){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){},u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.backends.forEach(function(c){if(c.create){var d=c.create.bind(c);if(d.length<6){try{var y;d.length===5?y=d(n,r,i,o,u):y=d(n,r,i,o),y&&typeof y.then=="function"?y.then(function(p){return a(null,p)}).catch(a):a(null,y)}catch(p){a(p)}return}d(n,r,i,o,a,u)}})}},{key:"reload",value:function(){var n=this,r=this.services,i=r.backendConnector,o=r.languageUtils,a=r.logger,u=i.language;if(!(u&&u.toLowerCase()==="cimode")){var c=[],d=function(p){var S=o.toResolveHierarchy(p);S.forEach(function(C){c.indexOf(C)<0&&c.push(C)})};d(u),this.allOptions.preload&&this.allOptions.preload.forEach(function(y){return d(y)}),c.forEach(function(y){n.allOptions.ns.forEach(function(p){i.read(y,p,"read",null,null,function(S,C){S&&a.warn("loading namespace ".concat(p," for language ").concat(y," failed"),S),!S&&C&&a.log("loaded namespace ".concat(p," for language ").concat(y),C),i.loaded("".concat(y,"|").concat(p),S,C)})})})}}}]),t}();cT.type="backend";function Fm(t){"@babel/helpers - typeof";return Fm=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},Fm(t)}function fT(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":Fm(XMLHttpRequest))==="object"}function MM(t){return!!t&&typeof t.then=="function"}function LM(t){return MM(t)?t:Promise.resolve(t)}function FM(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 Nm={exports:{}},vh={exports:{}},$0;function NM(){return $0||($0=1,function(t,e){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof Ci<"u"&&Ci,r=function(){function o(){this.fetch=!1,this.DOMException=n.DOMException}return o.prototype=n,new o}();(function(o){(function(a){var u=typeof o<"u"&&o||typeof self<"u"&&self||typeof u<"u"&&u,c={searchParams:"URLSearchParams"in u,iterable:"Symbol"in u&&"iterator"in Symbol,blob:"FileReader"in u&&"Blob"in u&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in u,arrayBuffer:"ArrayBuffer"in u};function d(me){return me&&DataView.prototype.isPrototypeOf(me)}if(c.arrayBuffer)var y=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],p=ArrayBuffer.isView||function(me){return me&&y.indexOf(Object.prototype.toString.call(me))>-1};function S(me){if(typeof me!="string"&&(me=String(me)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(me)||me==="")throw new TypeError('Invalid character in header field name: "'+me+'"');return me.toLowerCase()}function C(me){return typeof me!="string"&&(me=String(me)),me}function A(me){var De={next:function(){var Le=me.shift();return{done:Le===void 0,value:Le}}};return c.iterable&&(De[Symbol.iterator]=function(){return De}),De}function I(me){this.map={},me instanceof I?me.forEach(function(De,Le){this.append(Le,De)},this):Array.isArray(me)?me.forEach(function(De){this.append(De[0],De[1])},this):me&&Object.getOwnPropertyNames(me).forEach(function(De){this.append(De,me[De])},this)}I.prototype.append=function(me,De){me=S(me),De=C(De);var Le=this.map[me];this.map[me]=Le?Le+", "+De:De},I.prototype.delete=function(me){delete this.map[S(me)]},I.prototype.get=function(me){return me=S(me),this.has(me)?this.map[me]:null},I.prototype.has=function(me){return this.map.hasOwnProperty(S(me))},I.prototype.set=function(me,De){this.map[S(me)]=C(De)},I.prototype.forEach=function(me,De){for(var Le in this.map)this.map.hasOwnProperty(Le)&&me.call(De,this.map[Le],Le,this)},I.prototype.keys=function(){var me=[];return this.forEach(function(De,Le){me.push(Le)}),A(me)},I.prototype.values=function(){var me=[];return this.forEach(function(De){me.push(De)}),A(me)},I.prototype.entries=function(){var me=[];return this.forEach(function(De,Le){me.push([Le,De])}),A(me)},c.iterable&&(I.prototype[Symbol.iterator]=I.prototype.entries);function B(me){if(me.bodyUsed)return Promise.reject(new TypeError("Already read"));me.bodyUsed=!0}function _(me){return new Promise(function(De,Le){me.onload=function(){De(me.result)},me.onerror=function(){Le(me.error)}})}function G(me){var De=new FileReader,Le=_(De);return De.readAsArrayBuffer(me),Le}function q(me){var De=new FileReader,Le=_(De);return De.readAsText(me),Le}function se(me){for(var De=new Uint8Array(me),Le=new Array(De.length),Ye=0;Ye<De.length;Ye++)Le[Ye]=String.fromCharCode(De[Ye]);return Le.join("")}function Q(me){if(me.slice)return me.slice(0);var De=new Uint8Array(me.byteLength);return De.set(new Uint8Array(me)),De.buffer}function ye(){return this.bodyUsed=!1,this._initBody=function(me){this.bodyUsed=this.bodyUsed,this._bodyInit=me,me?typeof me=="string"?this._bodyText=me:c.blob&&Blob.prototype.isPrototypeOf(me)?this._bodyBlob=me:c.formData&&FormData.prototype.isPrototypeOf(me)?this._bodyFormData=me:c.searchParams&&URLSearchParams.prototype.isPrototypeOf(me)?this._bodyText=me.toString():c.arrayBuffer&&c.blob&&d(me)?(this._bodyArrayBuffer=Q(me.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(me)||p(me))?this._bodyArrayBuffer=Q(me):this._bodyText=me=Object.prototype.toString.call(me):this._bodyText="",this.headers.get("content-type")||(typeof me=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):c.searchParams&&URLSearchParams.prototype.isPrototypeOf(me)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},c.blob&&(this.blob=function(){var me=B(this);if(me)return me;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 me=B(this);return me||(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(G)}),this.text=function(){var me=B(this);if(me)return me;if(this._bodyBlob)return q(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(se(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},c.formData&&(this.formData=function(){return this.text().then(Be)}),this.json=function(){return this.text().then(JSON.parse)},this}var x=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function ae(me){var De=me.toUpperCase();return x.indexOf(De)>-1?De:me}function ce(me,De){if(!(this instanceof ce))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');De=De||{};var Le=De.body;if(me instanceof ce){if(me.bodyUsed)throw new TypeError("Already read");this.url=me.url,this.credentials=me.credentials,De.headers||(this.headers=new I(me.headers)),this.method=me.method,this.mode=me.mode,this.signal=me.signal,!Le&&me._bodyInit!=null&&(Le=me._bodyInit,me.bodyUsed=!0)}else this.url=String(me);if(this.credentials=De.credentials||this.credentials||"same-origin",(De.headers||!this.headers)&&(this.headers=new I(De.headers)),this.method=ae(De.method||this.method||"GET"),this.mode=De.mode||this.mode||null,this.signal=De.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&Le)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(Le),(this.method==="GET"||this.method==="HEAD")&&(De.cache==="no-store"||De.cache==="no-cache")){var Ye=/([?&])_=[^&]*/;if(Ye.test(this.url))this.url=this.url.replace(Ye,"$1_="+new Date().getTime());else{var st=/\?/;this.url+=(st.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}ce.prototype.clone=function(){return new ce(this,{body:this._bodyInit})};function Be(me){var De=new FormData;return me.trim().split("&").forEach(function(Le){if(Le){var Ye=Le.split("="),st=Ye.shift().replace(/\+/g," "),Ce=Ye.join("=").replace(/\+/g," ");De.append(decodeURIComponent(st),decodeURIComponent(Ce))}}),De}function qe(me){var De=new I,Le=me.replace(/\r?\n[\t ]+/g," ");return Le.split("\r").map(function(Ye){return Ye.indexOf(`
|
|
4
|
-
`)===0?Ye.substr(1,Ye.length):Ye}).forEach(function(Ye){var st=Ye.split(":"),Ce=st.shift().trim();if(Ce){var _e=st.join(":").trim();De.append(Ce,_e)}}),De}ye.call(ce.prototype);function Ze(me,De){if(!(this instanceof Ze))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');De||(De={}),this.type="default",this.status=De.status===void 0?200:De.status,this.ok=this.status>=200&&this.status<300,this.statusText=De.statusText===void 0?"":""+De.statusText,this.headers=new I(De.headers),this.url=De.url||"",this._initBody(me)}ye.call(Ze.prototype),Ze.prototype.clone=function(){return new Ze(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new I(this.headers),url:this.url})},Ze.error=function(){var me=new Ze(null,{status:0,statusText:""});return me.type="error",me};var ot=[301,302,303,307,308];Ze.redirect=function(me,De){if(ot.indexOf(De)===-1)throw new RangeError("Invalid status code");return new Ze(null,{status:De,headers:{location:me}})},a.DOMException=u.DOMException;try{new a.DOMException}catch{a.DOMException=function(De,Le){this.message=De,this.name=Le;var Ye=Error(De);this.stack=Ye.stack},a.DOMException.prototype=Object.create(Error.prototype),a.DOMException.prototype.constructor=a.DOMException}function it(me,De){return new Promise(function(Le,Ye){var st=new ce(me,De);if(st.signal&&st.signal.aborted)return Ye(new a.DOMException("Aborted","AbortError"));var Ce=new XMLHttpRequest;function _e(){Ce.abort()}Ce.onload=function(){var Ge={status:Ce.status,statusText:Ce.statusText,headers:qe(Ce.getAllResponseHeaders()||"")};Ge.url="responseURL"in Ce?Ce.responseURL:Ge.headers.get("X-Request-URL");var tt="response"in Ce?Ce.response:Ce.responseText;setTimeout(function(){Le(new Ze(tt,Ge))},0)},Ce.onerror=function(){setTimeout(function(){Ye(new TypeError("Network request failed"))},0)},Ce.ontimeout=function(){setTimeout(function(){Ye(new TypeError("Network request failed"))},0)},Ce.onabort=function(){setTimeout(function(){Ye(new a.DOMException("Aborted","AbortError"))},0)};function Xe(Ge){try{return Ge===""&&u.location.href?u.location.href:Ge}catch{return Ge}}Ce.open(st.method,Xe(st.url),!0),st.credentials==="include"?Ce.withCredentials=!0:st.credentials==="omit"&&(Ce.withCredentials=!1),"responseType"in Ce&&(c.blob?Ce.responseType="blob":c.arrayBuffer&&st.headers.get("Content-Type")&&st.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(Ce.responseType="arraybuffer")),De&&typeof De.headers=="object"&&!(De.headers instanceof I)?Object.getOwnPropertyNames(De.headers).forEach(function(Ge){Ce.setRequestHeader(Ge,C(De.headers[Ge]))}):st.headers.forEach(function(Ge,tt){Ce.setRequestHeader(tt,Ge)}),st.signal&&(st.signal.addEventListener("abort",_e),Ce.onreadystatechange=function(){Ce.readyState===4&&st.signal.removeEventListener("abort",_e)}),Ce.send(typeof st._bodyInit>"u"?null:st._bodyInit)})}return it.polyfill=!0,u.fetch||(u.fetch=it,u.Headers=I,u.Request=ce,u.Response=Ze),a.Headers=I,a.Request=ce,a.Response=Ze,a.fetch=it,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}(vh,vh.exports)),vh.exports}(function(t,e){var n=typeof fetch=="function"?fetch:void 0;if(typeof Ci<"u"&&Ci.fetch?n=Ci.fetch:typeof window<"u"&&window.fetch&&(n=window.fetch),typeof FM<"u"&&typeof window>"u"){var r=n||NM();r.default&&(r=r.default),e.default=r,t.exports=e.default}})(Nm,Nm.exports);var dT=Nm.exports;const hT=Bc(dT),V0=KA({__proto__:null,default:hT},[dT]);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 U0(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){jM(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 jM(t,e,n){return(e=BM(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function BM(t){var e=$M(t,"string");return Ic(e)=="symbol"?e:e+""}function $M(t,e){if(Ic(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Ic(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ic(t){"@babel/helpers - typeof";return Ic=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},Ic(t)}var Cu=typeof fetch=="function"?fetch:void 0;typeof global<"u"&&global.fetch?Cu=global.fetch:typeof window<"u"&&window.fetch&&(Cu=window.fetch);var Rd;fT()&&(typeof global<"u"&&global.XMLHttpRequest?Rd=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(Rd=window.XMLHttpRequest));var rp;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?rp=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(rp=window.ActiveXObject));!Cu&&V0&&!Rd&&!rp&&(Cu=hT||V0);typeof Cu!="function"&&(Cu=void 0);var jm=function(e,n){if(n&&Ic(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},W0=function(e,n,r,i){var o=function(c){if(!c.ok)return r(c.statusText||"Error",{status:c.status});c.text().then(function(d){r(null,{status:c.status,data:d})}).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):Cu(e,n).then(o).catch(r)},z0=!1,VM=function(e,n,r,i){e.queryStringParams&&(n=jm(n,e.queryStringParams));var o=U0({},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,u=U0({method:r?"POST":"GET",body:r?e.stringify(r):void 0,headers:o},z0?{}:a),c=typeof e.alternateFetch=="function"&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{W0(n,u,i,c)}catch(d){if(!a||Object.keys(a).length===0||!d.message||d.message.indexOf("not implemented")<0)return i(d);try{Object.keys(a).forEach(function(y){delete u[y]}),W0(n,u,i,c),z0=!0}catch(y){i(y)}}},HM=function(e,n,r,i){r&&Ic(r)==="object"&&(r=jm("",r).slice(1)),e.queryStringParams&&(n=jm(n,e.queryStringParams));try{var o;Rd?o=new Rd:o=new rp("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 u in a)o.setRequestHeader(u,a[u]);o.onreadystatechange=function(){o.readyState>3&&i(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(r)}catch(c){console&&console.log(c)}},UM=function(e,n,r,i){if(typeof r=="function"&&(i=r,r=void 0),i=i||function(){},Cu&&n.indexOf("file:")!==0)return VM(e,n,r,i);if(fT()||typeof ActiveXObject=="function")return HM(e,n,r,i);i(new Error("No fetch and no xhr implementation found!"))};function Rf(t){"@babel/helpers - typeof";return Rf=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},Rf(t)}function Y0(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 Og(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Y0(Object(n),!0).forEach(function(r){pT(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Y0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function WM(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function G0(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,gT(r.key),r)}}function zM(t,e,n){return e&&G0(t.prototype,e),n&&G0(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function pT(t,e,n){return(e=gT(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function gT(t){var e=YM(t,"string");return Rf(e)=="symbol"?e:e+""}function YM(t,e){if(Rf(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Rf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var GM=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 pT({},r,i||"")},parseLoadPayload:function(n,r){},request:UM,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},mT=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]:{};WM(this,t),this.services=e,this.options=n,this.allOptions=r,this.type="backend",this.init(e,n,r)}return zM(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=Og(Og(Og({},GM()),this.options||{}),i),this.allOptions=o,this.services&&this.options.reloadInterval){var a=setInterval(function(){return r.reload()},this.options.reloadInterval);Rf(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 u=this,c=this.options.loadPath;typeof this.options.loadPath=="function"&&(c=this.options.loadPath(n,i)),c=LM(c),c.then(function(d){if(!d)return a(null,{});var y=u.services.interpolator.interpolate(d,{lng:n.join("+"),ns:i.join("+")});u.loadUrl(y,a,r,o)})}},{key:"loadUrl",value:function(n,r,i,o){var a=this,u=typeof i=="string"?[i]:i,c=typeof o=="string"?[o]:o,d=this.options.parseLoadPayload(u,c);this.options.request(this.options,n,d,function(y,p){if(p&&(p.status>=500&&p.status<600||!p.status))return r("failed loading "+n+"; status code: "+p.status,!0);if(p&&p.status>=400&&p.status<500)return r("failed loading "+n+"; status code: "+p.status,!1);if(!p&&y&&y.message){var S=y.message.toLowerCase(),C=["failed","fetch","network","load"].find(function(B){return S.indexOf(B)>-1});if(C)return r("failed loading "+n+": "+y.message,!0)}if(y)return r(y,!1);var A,I;try{typeof p.data=="string"?A=a.options.parse(p.data,i,o):A=p.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 u=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var c=this.options.parsePayload(r,i,o),d=0,y=[],p=[];n.forEach(function(S){var C=u.options.addPath;typeof u.options.addPath=="function"&&(C=u.options.addPath(S,r));var A=u.services.interpolator.interpolate(C,{lng:S,ns:r});u.options.request(u.options,A,c,function(I,B){d+=1,y.push(I),p.push(B),d===n.length&&typeof a=="function"&&a(y,p)})})}}},{key:"reload",value:function(){var n=this,r=this.services,i=r.backendConnector,o=r.languageUtils,a=r.logger,u=i.language;if(!(u&&u.toLowerCase()==="cimode")){var c=[],d=function(p){var S=o.toResolveHierarchy(p);S.forEach(function(C){c.indexOf(C)<0&&c.push(C)})};d(u),this.allOptions.preload&&this.allOptions.preload.forEach(function(y){return d(y)}),c.forEach(function(y){n.allOptions.ns.forEach(function(p){i.read(y,p,"read",null,null,function(S,C){S&&a.warn("loading namespace ".concat(p," for language ").concat(y," failed"),S),!S&&C&&a.log("loaded namespace ".concat(p," for language ").concat(y),C),i.loaded("".concat(y,"|").concat(p),S,C)})})})}}}])}();mT.type="backend";var Hv=(t=>(t.en="en",t.de="de",t))(Hv||{});const qM={en:"English",de:"German"};ai.use(cT).use(TM).use(iT).init({initImmediate:!0,ns:["translation"],fallbackLng:Object.keys(qM),fallbackNS:"translation",partialBundledLanguages:!0,resources:{},interpolation:{escapeValue:!1},backend:{backends:[mT],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 XM(){const[t,e]=Z.useState();return Z.useEffect(()=>{const n=localStorage.getItem("language");e(n||Hv.en)},[]),{language:t,setLanguage:e}}const vT=Z.createContext({}),KM=()=>Z.useContext(vT),ZM=ai,JM=W1,QM=()=>lT(),eL=({children:t})=>{const e=XM();return $e.jsx(vT.Provider,{value:e,children:$e.jsx(PM,{i18n:ai,children:t})})},tL=`*,: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}
|
|
5
|
-
`;function Uv({children:t,styles:e=[],...n}){return $e.jsxs("div",{...n,children:[[tL,...e].map((r,i)=>$e.jsx("style",{type:"text/css",children:r},i)),t]})}function nL(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Wv=nL,rL=typeof Ci=="object"&&Ci&&Ci.Object===Object&&Ci,iL=rL,oL=iL,sL=typeof self=="object"&&self&&self.Object===Object&&self,aL=oL||sL||Function("return this")(),yT=aL,lL=yT,uL=function(){return lL.Date.now()},cL=uL,fL=/\s/;function dL(t){for(var e=t.length;e--&&fL.test(t.charAt(e)););return e}var hL=dL,pL=hL,gL=/^\s+/;function mL(t){return t&&t.slice(0,pL(t)+1).replace(gL,"")}var vL=mL,yL=yT,bL=yL.Symbol,bT=bL,q0=bT,wT=Object.prototype,wL=wT.hasOwnProperty,xL=wT.toString,od=q0?q0.toStringTag:void 0;function SL(t){var e=wL.call(t,od),n=t[od];try{t[od]=void 0;var r=!0}catch{}var i=xL.call(t);return r&&(e?t[od]=n:delete t[od]),i}var TL=SL,CL=Object.prototype,EL=CL.toString;function kL(t){return EL.call(t)}var DL=kL,X0=bT,PL=TL,OL=DL,_L="[object Null]",RL="[object Undefined]",K0=X0?X0.toStringTag:void 0;function AL(t){return t==null?t===void 0?RL:_L:K0&&K0 in Object(t)?PL(t):OL(t)}var IL=AL;function ML(t){return t!=null&&typeof t=="object"}var LL=ML,FL=IL,NL=LL,jL="[object Symbol]";function BL(t){return typeof t=="symbol"||NL(t)&&FL(t)==jL}var $L=BL,VL=vL,Z0=Wv,HL=$L,J0=0/0,UL=/^[-+]0x[0-9a-f]+$/i,WL=/^0b[01]+$/i,zL=/^0o[0-7]+$/i,YL=parseInt;function GL(t){if(typeof t=="number")return t;if(HL(t))return J0;if(Z0(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Z0(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=VL(t);var n=WL.test(t);return n||zL.test(t)?YL(t.slice(2),n?2:8):UL.test(t)?J0:+t}var qL=GL,XL=Wv,_g=cL,Q0=qL,KL="Expected a function",ZL=Math.max,JL=Math.min;function QL(t,e,n){var r,i,o,a,u,c,d=0,y=!1,p=!1,S=!0;if(typeof t!="function")throw new TypeError(KL);e=Q0(e)||0,XL(n)&&(y=!!n.leading,p="maxWait"in n,o=p?ZL(Q0(n.maxWait)||0,e):o,S="trailing"in n?!!n.trailing:S);function C(ye){var x=r,ae=i;return r=i=void 0,d=ye,a=t.apply(ae,x),a}function A(ye){return d=ye,u=setTimeout(_,e),y?C(ye):a}function I(ye){var x=ye-c,ae=ye-d,ce=e-x;return p?JL(ce,o-ae):ce}function B(ye){var x=ye-c,ae=ye-d;return c===void 0||x>=e||x<0||p&&ae>=o}function _(){var ye=_g();if(B(ye))return G(ye);u=setTimeout(_,I(ye))}function G(ye){return u=void 0,S&&r?C(ye):(r=i=void 0,a)}function q(){u!==void 0&&clearTimeout(u),d=0,r=c=i=u=void 0}function se(){return u===void 0?a:G(_g())}function Q(){var ye=_g(),x=B(ye);if(r=arguments,i=this,c=ye,x){if(u===void 0)return A(c);if(p)return clearTimeout(u),u=setTimeout(_,e),C(c)}return u===void 0&&(u=setTimeout(_,e)),a}return Q.cancel=q,Q.flush=se,Q}var xT=QL;const Rg=Bc(xT);var e2=xT,t2=Wv,n2="Expected a function";function r2(t,e,n){var r=!0,i=!0;if(typeof t!="function")throw new TypeError(n2);return t2(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),e2(t,e,{leading:r,maxWait:e,trailing:i})}var i2=r2;const o2=Bc(i2);var wf=function(){return wf=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},wf.apply(this,arguments)};function ST(t){return!t||!t.ownerDocument||!t.ownerDocument.defaultView?window:t.ownerDocument.defaultView}function TT(t){return!t||!t.ownerDocument?document:t.ownerDocument}var CT=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(u,c){return c.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 ET(t,e){var n;t&&(n=t.classList).add.apply(n,e.split(" "))}function kT(t,e){t&&e.split(" ").forEach(function(n){t.classList.remove(n)})}function DT(t){return".".concat(t.split(" ").join("."))}var zv=!!(typeof window<"u"&&window.document&&window.document.createElement),s2=Object.freeze({__proto__:null,addClasses:ET,canUseDOM:zv,classNamesToQuery:DT,getElementDocument:TT,getElementWindow:ST,getOptions:CT,removeClasses:kT}),yf=null,ew=null;zv&&window.addEventListener("resize",function(){ew!==window.devicePixelRatio&&(ew=window.devicePixelRatio,yf=null)});function tw(){if(yf===null){if(typeof document>"u")return yf=0,yf;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),yf=n}return yf}var cu=ST,Ag=TT,a2=CT,fu=ET,du=kT,Oo=DT,sd=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=cu(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,fu(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(){du(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(fu(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){du(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,u,c,d,y,p,S,C,A,I;if(!(!r.draggedAxis||!r.contentWrapperEl)){var B,_=r.axis[r.draggedAxis].track,G=(a=(o=_.rect)===null||o===void 0?void 0:o[r.axis[r.draggedAxis].sizeAttr])!==null&&a!==void 0?a:0,q=r.axis[r.draggedAxis].scrollbar,se=(c=(u=r.contentWrapperEl)===null||u===void 0?void 0:u[r.axis[r.draggedAxis].scrollSizeAttr])!==null&&c!==void 0?c:0,Q=parseInt((y=(d=r.elStyles)===null||d===void 0?void 0:d[r.axis[r.draggedAxis].sizeAttr])!==null&&y!==void 0?y:"0px",10);i.preventDefault(),i.stopPropagation(),r.draggedAxis==="y"?B=i.pageY:B=i.pageX;var ye=B-((S=(p=_.rect)===null||p===void 0?void 0:p[r.axis[r.draggedAxis].offsetAttr])!==null&&S!==void 0?S:0)-r.axis[r.draggedAxis].dragOffset;ye=r.draggedAxis==="x"&&r.isRtl?((A=(C=_.rect)===null||C===void 0?void 0:C[r.axis[r.draggedAxis].sizeAttr])!==null&&A!==void 0?A:0)-q.size-ye:ye;var x=ye/(G-q.size),ae=x*(se-Q);r.draggedAxis==="x"&&r.isRtl&&(ae=!((I=t.getRtlHelpers())===null||I===void 0)&&I.isScrollingToNegative?-ae:ae),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=ae}},this.onEndDrag=function(i){r.isDragging=!1;var o=Ag(r.el),a=cu(r.el);i.preventDefault(),i.stopPropagation(),du(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=wf(wf({},t.defaultOptions),n),this.classNames=wf(wf({},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=o2(this._onMouseMove,64),this.onWindowResize=Rg(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Rg(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Rg(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:tw()}catch{return tw()}},t.getOffset=function(e){var n=e.getBoundingClientRect(),r=Ag(e),i=cu(e);return{top:n.top+(i.pageYOffset||r.documentElement.scrollTop),left:n.left+(i.pageXOffset||r.documentElement.scrollLeft)}},t.prototype.init=function(){zv&&(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||(fu(this.axis.x.scrollbar.el,this.classNames.visible),fu(this.axis.y.scrollbar.el,this.classNames.visible))},t.prototype.initListeners=function(){var e=this,n,r=cu(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=cu(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,u=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 c=this.contentEl.scrollHeight,d=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=r?"auto":"100%",this.placeholderEl.style.width=i?"".concat(n||d,"px"):"auto",this.placeholderEl.style.height="".concat(c,"px");var y=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&d>n,this.axis.y.isOverflowing=c>y,this.axis.x.isOverflowing=a==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=u==="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 p=this.axis.x.isOverflowing?this.scrollbarWidth:0,S=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&d>o-S,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&c>y-p,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,u;return u=Math.max(~~(a*o),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(u=Math.min(u,this.options.scrollbarMaxSize)),u},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],u=((n=this.axis[e].track.el)===null||n===void 0?void 0:n[this.axis[e].offsetSizeAttr])||0,c=parseInt(this.elStyles[this.axis[e].sizeAttr],10),d=this.contentWrapperEl[this.axis[e].scrollOffsetAttr];d=e==="x"&&this.isRtl&&(!((r=t.getRtlHelpers())===null||r===void 0)&&r.isScrollOriginAtZero)?-d:d,e==="x"&&this.isRtl&&(d=!((i=t.getRtlHelpers())===null||i===void 0)&&i.isScrollingToNegative?d:-d);var y=d/(a-c),p=~~((u-o.size)*y);p=e==="x"&&this.isRtl?-p+(u-o.size):p,o.el.style.transform=e==="x"?"translate3d(".concat(p,"px, 0, 0)"):"translate3d(0, ".concat(p,"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&&(fu(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&&(du(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),fu(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?fu(n.scrollbar.el,this.classNames.hover):du(n.scrollbar.el,this.classNames.hover)):(du(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)))},t.prototype.onMouseLeaveForAxis=function(e){e===void 0&&(e="y"),du(this.axis[e].track.el,this.classNames.hover),du(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=Ag(this.el),o=cu(this.el),a=this.axis[n].scrollbar,u=n==="y"?e.pageY:e.pageX;this.axis[n].dragOffset=u-(((r=a.rect)===null||r===void 0?void 0:r[this.axis[n].offsetAttr])||0),this.draggedAxis=n,fu(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,u;n===void 0&&(n="y");var c=this.axis[n];if(!(!this.options.clickOnTrack||!c.scrollbar.el||!this.contentWrapperEl)){e.preventDefault();var d=cu(this.el);this.axis[n].scrollbar.rect=c.scrollbar.el.getBoundingClientRect();var y=this.axis[n].scrollbar,p=(o=(i=y.rect)===null||i===void 0?void 0:i[this.axis[n].offsetAttr])!==null&&o!==void 0?o:0,S=parseInt((u=(a=this.elStyles)===null||a===void 0?void 0:a[this.axis[n].sizeAttr])!==null&&u!==void 0?u:"0px",10),C=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],A=n==="y"?this.mouseY-p:this.mouseX-p,I=A<0?-1:1,B=I===-1?C-S:C+S,_=40,G=function(){r.contentWrapperEl&&(I===-1?C>B&&(C-=_,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=C,d.requestAnimationFrame(G)):C<B&&(C+=_,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=C,d.requestAnimationFrame(G)))};G()}},t.prototype.getContentElement=function(){return this.contentEl},t.prototype.getScrollElement=function(){return this.contentWrapperEl},t.prototype.removeListeners=function(){var e=cu(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=a2,t.helpers=s2,t}(),es=function(){return es=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},es.apply(this,arguments)};function l2(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 PT=_n.forwardRef(function(t,e){var n=t.children,r=t.scrollableNodeProps,i=r===void 0?{}:r,o=l2(t,["children","scrollableNodeProps"]),a=_n.useRef(),u=_n.useRef(),c=_n.useRef(),d={},y={};Object.keys(o).forEach(function(C){Object.prototype.hasOwnProperty.call(sd.defaultOptions,C)?d[C]=o[C]:y[C]=o[C]});var p=es(es({},sd.defaultOptions.classNames),d.classNames),S=es(es({},i),{className:"".concat(p.contentWrapper).concat(i.className?" ".concat(i.className):""),tabIndex:d.tabIndex||sd.defaultOptions.tabIndex,role:"region","aria-label":d.ariaLabel||sd.defaultOptions.ariaLabel});return _n.useEffect(function(){var C;return u.current=S.ref?S.ref.current:u.current,a.current&&(C=new sd(a.current,es(es(es({},d),u.current&&{scrollableNode:u.current}),c.current&&{contentNode:c.current})),typeof e=="function"?e(C):e&&(e.current=C)),function(){C==null||C.unMount(),C=null,typeof e=="function"&&e(null)}},[]),_n.createElement("div",es({"data-simplebar":"init",ref:a},y),_n.createElement("div",{className:p.wrapper},_n.createElement("div",{className:p.heightAutoObserverWrapperEl},_n.createElement("div",{className:p.heightAutoObserverEl})),_n.createElement("div",{className:p.mask},_n.createElement("div",{className:p.offset},typeof n=="function"?n({scrollableNodeRef:u,scrollableNodeProps:es(es({},S),{ref:u}),contentNodeRef:c,contentNodeProps:{className:p.contentEl,ref:c}}):_n.createElement("div",es({},S),_n.createElement("div",{className:p.contentEl},n)))),_n.createElement("div",{className:p.placeholder})),_n.createElement("div",{className:"".concat(p.track," simplebar-horizontal")},_n.createElement("div",{className:p.scrollbar})),_n.createElement("div",{className:"".concat(p.track," simplebar-vertical")},_n.createElement("div",{className:p.scrollbar})))});PT.displayName="SimpleBar";const OT=`[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}
|
|
6
|
-
`;function _T(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=_T(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Dl(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=_T(t))&&(r&&(r+=" "),r+=e);return r}const Ad=t=>typeof t=="number"&&!isNaN(t),Oc=t=>typeof t=="string",ts=t=>typeof t=="function",jh=t=>Oc(t)||ts(t)?t:null,Bm=t=>Z.isValidElement(t)||Oc(t)||ts(t)||Ad(t);function u2(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 Pp(t){let{enter:e,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:o=300}=t;return function(a){let{children:u,position:c,preventExitTransition:d,done:y,nodeRef:p,isIn:S,playToast:C}=a;const A=r?`${e}--${c}`:e,I=r?`${n}--${c}`:n,B=Z.useRef(0);return Z.useLayoutEffect(()=>{const _=p.current,G=A.split(" "),q=se=>{se.target===p.current&&(C(),_.removeEventListener("animationend",q),_.removeEventListener("animationcancel",q),B.current===0&&se.type!=="animationcancel"&&_.classList.remove(...G))};_.classList.add(...G),_.addEventListener("animationend",q),_.addEventListener("animationcancel",q)},[]),Z.useEffect(()=>{const _=p.current,G=()=>{_.removeEventListener("animationend",G),i?u2(_,y,o):y()};S||(d?G():(B.current=1,_.className+=` ${I}`,_.addEventListener("animationend",G)))},[S]),Z.createElement(Z.Fragment,null,u)}}function nw(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 uo=new Map;let Id=[];const $m=new Set,c2=t=>$m.forEach(e=>e(t)),RT=()=>uo.size>0;function AT(t,e){var n;if(e)return!((n=uo.get(e))==null||!n.isToastActive(t));let r=!1;return uo.forEach(i=>{i.isToastActive(t)&&(r=!0)}),r}function IT(t,e){Bm(t)&&(RT()||Id.push({content:t,options:e}),uo.forEach(n=>{n.buildToast(t,e)}))}function rw(t,e){uo.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 f2(t){const{subscribe:e,getSnapshot:n,setProps:r}=Z.useRef(function(o){const a=o.containerId||1;return{subscribe(u){const c=function(y,p,S){let C=1,A=0,I=[],B=[],_=[],G=p;const q=new Map,se=new Set,Q=()=>{_=Array.from(q.values()),se.forEach(ae=>ae())},ye=ae=>{B=ae==null?[]:B.filter(ce=>ce!==ae),Q()},x=ae=>{const{toastId:ce,onOpen:Be,updateId:qe,children:Ze}=ae.props,ot=qe==null;ae.staleId&&q.delete(ae.staleId),q.set(ce,ae),B=[...B,ae.props.toastId].filter(it=>it!==ae.staleId),Q(),S(nw(ae,ot?"added":"updated")),ot&&ts(Be)&&Be(Z.isValidElement(Ze)&&Ze.props)};return{id:y,props:G,observe:ae=>(se.add(ae),()=>se.delete(ae)),toggle:(ae,ce)=>{q.forEach(Be=>{ce!=null&&ce!==Be.props.toastId||ts(Be.toggle)&&Be.toggle(ae)})},removeToast:ye,toasts:q,clearQueue:()=>{A-=I.length,I=[]},buildToast:(ae,ce)=>{if((Xe=>{let{containerId:Ge,toastId:tt,updateId:et}=Xe;const nt=Ge?Ge!==y:y!==1,lt=q.has(tt)&&et==null;return nt||lt})(ce))return;const{toastId:Be,updateId:qe,data:Ze,staleId:ot,delay:it}=ce,me=()=>{ye(Be)},De=qe==null;De&&A++;const Le={...G,style:G.toastStyle,key:C++,...Object.fromEntries(Object.entries(ce).filter(Xe=>{let[Ge,tt]=Xe;return tt!=null})),toastId:Be,updateId:qe,data:Ze,closeToast:me,isIn:!1,className:jh(ce.className||G.toastClassName),bodyClassName:jh(ce.bodyClassName||G.bodyClassName),progressClassName:jh(ce.progressClassName||G.progressClassName),autoClose:!ce.isLoading&&(Ye=ce.autoClose,st=G.autoClose,Ye===!1||Ad(Ye)&&Ye>0?Ye:st),deleteToast(){const Xe=q.get(Be),{onClose:Ge,children:tt}=Xe.props;ts(Ge)&&Ge(Z.isValidElement(tt)&&tt.props),S(nw(Xe,"removed")),q.delete(Be),A--,A<0&&(A=0),I.length>0?x(I.shift()):Q()}};var Ye,st;Le.closeButton=G.closeButton,ce.closeButton===!1||Bm(ce.closeButton)?Le.closeButton=ce.closeButton:ce.closeButton===!0&&(Le.closeButton=!Bm(G.closeButton)||G.closeButton);let Ce=ae;Z.isValidElement(ae)&&!Oc(ae.type)?Ce=Z.cloneElement(ae,{closeToast:me,toastProps:Le,data:Ze}):ts(ae)&&(Ce=ae({closeToast:me,toastProps:Le,data:Ze}));const _e={content:Ce,props:Le,staleId:ot};G.limit&&G.limit>0&&A>G.limit&&De?I.push(_e):Ad(it)?setTimeout(()=>{x(_e)},it):x(_e)},setProps(ae){G=ae},setToggle:(ae,ce)=>{q.get(ae).toggle=ce},isToastActive:ae=>B.some(ce=>ce===ae),getSnapshot:()=>_}}(a,o,c2);uo.set(a,c);const d=c.observe(u);return Id.forEach(y=>IT(y.content,y.options)),Id=[],()=>{d(),uo.delete(a)}},setProps(u){var c;(c=uo.get(a))==null||c.setProps(u)},getSnapshot(){var u;return(u=uo.get(a))==null?void 0:u.getSnapshot()}}}(t)).current;r(t);const i=Z.useSyncExternalStore(e,n,n);return{getToastToRender:function(o){if(!i)return[];const a=new Map;return t.newestOnTop&&i.reverse(),i.forEach(u=>{const{position:c}=u.props;a.has(c)||a.set(c,[]),a.get(c).push(u)}),Array.from(a,u=>o(u[0],u[1]))},isToastActive:AT,count:i==null?void 0:i.length}}function d2(t){const[e,n]=Z.useState(!1),[r,i]=Z.useState(!1),o=Z.useRef(null),a=Z.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:u,pauseOnHover:c,closeToast:d,onClick:y,closeOnClick:p}=t;var S,C;function A(){n(!0)}function I(){n(!1)}function B(q){const se=o.current;a.canDrag&&se&&(a.didMove=!0,e&&I(),a.delta=t.draggableDirection==="x"?q.clientX-a.start:q.clientY-a.start,a.start!==q.clientX&&(a.canCloseOnClick=!1),se.style.transform=`translate3d(${t.draggableDirection==="x"?`${a.delta}px, var(--y)`:`0, calc(${a.delta}px + var(--y))`},0)`,se.style.opacity=""+(1-Math.abs(a.delta/a.removalDistance)))}function _(){document.removeEventListener("pointermove",B),document.removeEventListener("pointerup",_);const q=o.current;if(a.canDrag&&a.didMove&&q){if(a.canDrag=!1,Math.abs(a.delta)>a.removalDistance)return i(!0),t.closeToast(),void t.collapseAll();q.style.transition="transform 0.2s, opacity 0.2s",q.style.removeProperty("transform"),q.style.removeProperty("opacity")}}(C=uo.get((S={id:t.toastId,containerId:t.containerId,fn:n}).containerId||1))==null||C.setToggle(S.id,S.fn),Z.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 G={onPointerDown:function(q){if(t.draggable===!0||t.draggable===q.pointerType){a.didMove=!1,document.addEventListener("pointermove",B),document.addEventListener("pointerup",_);const se=o.current;a.canCloseOnClick=!0,a.canDrag=!0,se.style.transition="none",t.draggableDirection==="x"?(a.start=q.clientX,a.removalDistance=se.offsetWidth*(t.draggablePercent/100)):(a.start=q.clientY,a.removalDistance=se.offsetHeight*(t.draggablePercent===80?1.5*t.draggablePercent:t.draggablePercent)/100)}},onPointerUp:function(q){const{top:se,bottom:Q,left:ye,right:x}=o.current.getBoundingClientRect();q.nativeEvent.type!=="touchend"&&t.pauseOnHover&&q.clientX>=ye&&q.clientX<=x&&q.clientY>=se&&q.clientY<=Q?I():A()}};return u&&c&&(G.onMouseEnter=I,t.stacked||(G.onMouseLeave=A)),p&&(G.onClick=q=>{y&&y(q),a.canCloseOnClick&&d()}),{playToast:A,pauseToast:I,isRunning:e,preventExitTransition:r,toastRef:o,eventHandlers:G}}function h2(t){let{delay:e,isRunning:n,closeToast:r,type:i="default",hide:o,className:a,style:u,controlledProgress:c,progress:d,rtl:y,isIn:p,theme:S}=t;const C=o||c&&d===0,A={...u,animationDuration:`${e}ms`,animationPlayState:n?"running":"paused"};c&&(A.transform=`scaleX(${d})`);const I=Dl("Toastify__progress-bar",c?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${S}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":y}),B=ts(a)?a({rtl:y,type:i,defaultClassName:I}):Dl(I,a),_={[c&&d>=1?"onTransitionEnd":"onAnimationEnd"]:c&&d<1?null:()=>{p&&r()}};return Z.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":C},Z.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${S} Toastify__progress-bar--${i}`}),Z.createElement("div",{role:"progressbar","aria-hidden":C?"true":"false","aria-label":"notification timer",className:B,style:A,..._}))}let p2=1;const MT=()=>""+p2++;function g2(t){return t&&(Oc(t.toastId)||Ad(t.toastId))?t.toastId:MT()}function yd(t,e){return IT(t,e),e.toastId}function ip(t,e){return{...e,type:e&&e.type||t,toastId:g2(e)}}function yh(t){return(e,n)=>yd(e,ip(t,n))}function kn(t,e){return yd(t,ip("default",e))}kn.loading=(t,e)=>yd(t,ip("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...e})),kn.promise=function(t,e,n){let r,{pending:i,error:o,success:a}=e;i&&(r=Oc(i)?kn.loading(i,n):kn.loading(i.render,{...n,...i}));const u={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},c=(y,p,S)=>{if(p==null)return void kn.dismiss(r);const C={type:y,...u,...n,data:S},A=Oc(p)?{render:p}:p;return r?kn.update(r,{...C,...A}):kn(A.render,{...C,...A}),S},d=ts(t)?t():t;return d.then(y=>c("success",a,y)).catch(y=>c("error",o,y)),d},kn.success=yh("success"),kn.info=yh("info"),kn.error=yh("error"),kn.warning=yh("warning"),kn.warn=kn.warning,kn.dark=(t,e)=>yd(t,ip("default",{theme:"dark",...e})),kn.dismiss=function(t){(function(e){var n;if(RT()){if(e==null||Oc(n=e)||Ad(n))uo.forEach(r=>{r.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){const r=uo.get(e.containerId);r?r.removeToast(e.id):uo.forEach(i=>{i.removeToast(e.id)})}}else Id=Id.filter(r=>e!=null&&r.options.toastId!==e)})(t)},kn.clearWaitingQueue=function(t){t===void 0&&(t={}),uo.forEach(e=>{!e.props.limit||t.containerId&&e.id!==t.containerId||e.clearQueue()})},kn.isActive=AT,kn.update=function(t,e){e===void 0&&(e={});const n=((r,i)=>{var o;let{containerId:a}=i;return(o=uo.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:MT()};o.toastId!==t&&(o.staleId=t);const a=o.render||i;delete o.render,yd(a,o)}},kn.done=t=>{kn.update(t,{progress:1})},kn.onChange=function(t){return $m.add(t),()=>{$m.delete(t)}},kn.play=t=>rw(!0,t),kn.pause=t=>rw(!1,t);const m2=typeof window<"u"?Z.useLayoutEffect:Z.useEffect,bh=t=>{let{theme:e,type:n,isLoading:r,...i}=t;return Z.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:e==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...i})},Ig={info:function(t){return Z.createElement(bh,{...t},Z.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 Z.createElement(bh,{...t},Z.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 Z.createElement(bh,{...t},Z.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 Z.createElement(bh,{...t},Z.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 Z.createElement("div",{className:"Toastify__spinner"})}},v2=t=>{const{isRunning:e,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:o}=d2(t),{closeButton:a,children:u,autoClose:c,onClick:d,type:y,hideProgressBar:p,closeToast:S,transition:C,position:A,className:I,style:B,bodyClassName:_,bodyStyle:G,progressClassName:q,progressStyle:se,updateId:Q,role:ye,progress:x,rtl:ae,toastId:ce,deleteToast:Be,isIn:qe,isLoading:Ze,closeOnClick:ot,theme:it}=t,me=Dl("Toastify__toast",`Toastify__toast-theme--${it}`,`Toastify__toast--${y}`,{"Toastify__toast--rtl":ae},{"Toastify__toast--close-on-click":ot}),De=ts(I)?I({rtl:ae,position:A,type:y,defaultClassName:me}):Dl(me,I),Le=function(_e){let{theme:Xe,type:Ge,isLoading:tt,icon:et}=_e,nt=null;const lt={theme:Xe,type:Ge};return et===!1||(ts(et)?nt=et({...lt,isLoading:tt}):Z.isValidElement(et)?nt=Z.cloneElement(et,lt):tt?nt=Ig.spinner():(bt=>bt in Ig)(Ge)&&(nt=Ig[Ge](lt))),nt}(t),Ye=!!x||!c,st={closeToast:S,type:y,theme:it};let Ce=null;return a===!1||(Ce=ts(a)?a(st):Z.isValidElement(a)?Z.cloneElement(a,st):function(_e){let{closeToast:Xe,theme:Ge,ariaLabel:tt="close"}=_e;return Z.createElement("button",{className:`Toastify__close-button Toastify__close-button--${Ge}`,type:"button",onClick:et=>{et.stopPropagation(),Xe(et)},"aria-label":tt},Z.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},Z.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"})))}(st)),Z.createElement(C,{isIn:qe,done:Be,position:A,preventExitTransition:n,nodeRef:r,playToast:o},Z.createElement("div",{id:ce,onClick:d,"data-in":qe,className:De,...i,style:B,ref:r},Z.createElement("div",{...qe&&{role:ye},className:ts(_)?_({type:y}):Dl("Toastify__toast-body",_),style:G},Le!=null&&Z.createElement("div",{className:Dl("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!Ze})},Le),Z.createElement("div",null,u)),Ce,Z.createElement(h2,{...Q&&!Ye?{key:`pb-${Q}`}:{},rtl:ae,theme:it,delay:c,isRunning:e,isIn:qe,closeToast:S,hide:p,type:y,style:se,className:q,controlledProgress:Ye,progress:x||0})))},Op=function(t,e){return e===void 0&&(e=!1),{enter:`Toastify--animate Toastify__${t}-enter`,exit:`Toastify--animate Toastify__${t}-exit`,appendPosition:e}},y2=Pp(Op("bounce",!0));Pp(Op("slide",!0));Pp(Op("zoom"));Pp(Op("flip"));const b2={position:"top-right",transition:y2,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function w2(t){let e={...b2,...t};const n=t.stacked,[r,i]=Z.useState(!0),o=Z.useRef(null),{getToastToRender:a,isToastActive:u,count:c}=f2(e),{className:d,style:y,rtl:p,containerId:S}=e;function C(I){const B=Dl("Toastify__toast-container",`Toastify__toast-container--${I}`,{"Toastify__toast-container--rtl":p});return ts(d)?d({position:I,rtl:p,defaultClassName:B}):Dl(B,jh(d))}function A(){n&&(i(!0),kn.play())}return m2(()=>{if(n){var I;const B=o.current.querySelectorAll('[data-in="true"]'),_=12,G=(I=e.position)==null?void 0:I.includes("top");let q=0,se=0;Array.from(B).reverse().forEach((Q,ye)=>{const x=Q;x.classList.add("Toastify__toast--stacked"),ye>0&&(x.dataset.collapsed=`${r}`),x.dataset.pos||(x.dataset.pos=G?"top":"bot");const ae=q*(r?.2:1)+(r?0:_*ye);x.style.setProperty("--y",`${G?ae:-1*ae}px`),x.style.setProperty("--g",`${_}`),x.style.setProperty("--s",""+(1-(r?se:0))),q+=x.offsetHeight,se+=.025})}},[r,c,n]),Z.createElement("div",{ref:o,className:"Toastify",id:S,onMouseEnter:()=>{n&&(i(!1),kn.pause())},onMouseLeave:A},a((I,B)=>{const _=B.length?{...y}:{...y,pointerEvents:"none"};return Z.createElement("div",{className:C(I),style:_,key:`container-${I}`},B.map(G=>{let{content:q,props:se}=G;return Z.createElement(v2,{...se,stacked:n,collapseAll:A,isIn:u(se.toastId,se.containerId),style:se.style,key:`toast-${se.key}`},q)}))}))}function x2(){return $e.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[$e.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"}),$e.jsx("path",{d:"M10.9942 6.89636V11.6737",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),$e.jsx("path",{d:"M10.9941 15.1038H11.0049",stroke:"#E01B00",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function S2(){return $e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[$e.jsx("rect",{width:"24",height:"24",rx:"12",fill:"#009D4F"}),$e.jsx("path",{d:"M7.25244 12L10.4174 15.165L16.7474 8.83496",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function T2(){return $e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[$e.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"}),$e.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 Yv={paddingLeft:"16px",borderLeft:"2px solid",boxShadow:"none",fontFamily:"inherit"},C2=({closeToast:t})=>$e.jsx("i",{className:"material-icons",onClick:t,style:{cursor:"pointer"},children:$e.jsx("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:$e.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"})})}),Gv=(t,e)=>{kn.success(t,{icon:$e.jsx(S2,{}),bodyStyle:{},position:"bottom-right",style:{...Yv,background:Ei.successLight,borderColor:Ei.success,color:Ei.success},...e})},Gd=(t,e)=>{kn.error(t,{icon:$e.jsx(x2,{}),position:"bottom-right",style:{...Yv,background:Ei.dangerLight,borderColor:Ei.danger,color:Ei.danger},...e})},E2=(t,e)=>{kn.error(t,{icon:$e.jsx(T2,{}),position:"bottom-right",style:{...Yv,background:Ei.warningLight,borderColor:Ei.warning,color:Ei.warning},...e})},k2=t=>{kn(t,{closeButton:C2,toastId:"notify",position:"top-right",hideProgressBar:!0,containerId:"toastifyNotification",style:{padding:"12px 24px 12px 0",paddingLeft:"16px",fontFamily:"inherit",width:"610px",minHeight:"72px",color:Ei.textPrimary}})};function LT(t){let e=null;return()=>(e==null&&(e=t()),e)}function D2(t,e){return t.filter(n=>n!==e)}function P2(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 O2{enter(e){const n=this.entered.length,r=i=>this.isNodeInDocument(i)&&(!i.contains||i.contains(e));return this.entered=P2(this.entered.filter(r),[e]),n===0&&this.entered.length>0}leave(e){const n=this.entered.length;return this.entered=D2(this.entered.filter(this.isNodeInDocument),e),n>0&&this.entered.length===0}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class _2{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 FT="__NATIVE_FILE__",NT="__NATIVE_URL__",jT="__NATIVE_TEXT__",BT="__NATIVE_HTML__",iw=Object.freeze(Object.defineProperty({__proto__:null,FILE:FT,HTML:BT,TEXT:jT,URL:NT},Symbol.toStringTag,{value:"Module"}));function Mg(t,e,n){const r=e.reduce((i,o)=>i||t.getData(o),"");return r??n}const Vm={[FT]:{exposeProperties:{files:t=>Array.prototype.slice.call(t.files),items:t=>t.items,dataTransfer:t=>t},matchesTypes:["Files"]},[BT]:{exposeProperties:{html:(t,e)=>Mg(t,e,""),dataTransfer:t=>t},matchesTypes:["Html","text/html"]},[NT]:{exposeProperties:{urls:(t,e)=>Mg(t,e,"").split(`
|
|
7
|
-
`),dataTransfer:t=>t},matchesTypes:["Url","text/uri-list"]},[jT]:{exposeProperties:{text:(t,e)=>Mg(t,e,""),dataTransfer:t=>t},matchesTypes:["Text","text/plain"]}};function R2(t,e){const n=Vm[t];if(!n)throw new Error(`native type ${t} has no configuration`);const r=new _2(n);return r.loadDataTransfer(e),r}function Lg(t){if(!t)return null;const e=Array.prototype.slice.call(t.types||[]);return Object.keys(Vm).filter(n=>{const r=Vm[n];return r!=null&&r.matchesTypes?r.matchesTypes.some(i=>e.indexOf(i)>-1):!1})[0]||null}const A2=LT(()=>/firefox/i.test(navigator.userAgent)),$T=LT(()=>!!window.safari);class ow{interpolate(e){const{xs:n,ys:r,c1s:i,c2s:o,c3s:a}=this;let u=n.length-1;if(e===n[u])return r[u];let c=0,d=a.length-1,y;for(;c<=d;){y=Math.floor(.5*(c+d));const C=n[y];if(C<e)c=y+1;else if(C>e)d=y-1;else return r[y]}u=Math.max(0,d);const p=e-n[u],S=p*p;return r[u]+i[u]*p+o[u]*S+a[u]*p*S}constructor(e,n){const{length:r}=e,i=[];for(let C=0;C<r;C++)i.push(C);i.sort((C,A)=>e[C]<e[A]?-1:1);const o=[],a=[];let u,c;for(let C=0;C<r-1;C++)u=e[C+1]-e[C],c=n[C+1]-n[C],o.push(u),a.push(c/u);const d=[a[0]];for(let C=0;C<o.length-1;C++){const A=a[C],I=a[C+1];if(A*I<=0)d.push(0);else{u=o[C];const B=o[C+1],_=u+B;d.push(3*_/((_+B)/A+(_+u)/I))}}d.push(a[a.length-1]);const y=[],p=[];let S;for(let C=0;C<d.length-1;C++){S=a[C];const A=d[C],I=1/o[C],B=A+d[C+1]-S-S;y.push((S-A-B)*I),p.push(B*I*I)}this.xs=e,this.ys=n,this.c1s=d,this.c2s=y,this.c3s=p}}const I2=1;function VT(t){const e=t.nodeType===I2?t:t.parentElement;if(!e)return null;const{top:n,left:r}=e.getBoundingClientRect();return{x:r,y:n}}function wh(t){return{x:t.clientX,y:t.clientY}}function M2(t){var e;return t.nodeName==="IMG"&&(A2()||!(!((e=document.documentElement)===null||e===void 0)&&e.contains(t)))}function L2(t,e,n,r){let i=t?e.width:n,o=t?e.height:r;return $T()&&t&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}function F2(t,e,n,r,i){const o=M2(e),u=VT(o?t:e),c={x:n.x-u.x,y:n.y-u.y},{offsetWidth:d,offsetHeight:y}=t,{anchorX:p,anchorY:S}=r,{dragPreviewWidth:C,dragPreviewHeight:A}=L2(o,e,d,y),I=()=>{let ye=new ow([0,.5,1],[c.y,c.y/y*A,c.y+A-y]).interpolate(S);return $T()&&o&&(ye+=(window.devicePixelRatio-1)*A),ye},B=()=>new ow([0,.5,1],[c.x,c.x/d*C,c.x+C-d]).interpolate(p),{offsetX:_,offsetY:G}=i,q=_===0||_,se=G===0||G;return{x:q?_:B(),y:se?G:I()}}let N2=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 j2(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function sw(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){j2(t,i,n[i])})}return t}class B2{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 sw({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 sw({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(iw).some(n=>iw[n]===e)}beginDragNativeItem(e,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=R2(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&&VT(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=wh(i);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(o||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:a});const{dataTransfer:u}=i,c=Lg(u);if(this.monitor.isDragging()){if(u&&typeof u.setDragImage=="function"){const y=this.monitor.getSourceId(),p=this.sourceNodes.get(y),S=this.sourcePreviewNodes.get(y)||p;if(S){const{anchorX:C,anchorY:A,offsetX:I,offsetY:B}=this.getCurrentSourcePreviewNodeOptions(),q=F2(p,S,a,{anchorX:C,anchorY:A},{offsetX:I,offsetY:B});u.setDragImage(S,q.x,q.y)}}try{u==null||u.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(i.target);const{captureDraggingState:d}=this.getCurrentSourcePreviewNodeOptions();d?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(c)this.beginDragNativeItem(c);else{if(u&&!u.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:u}=i,c=Lg(u);c&&this.beginDragNativeItem(c,u)},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:wh(i)}),o.some(u=>this.monitor.canDropOnTarget(u))&&(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=wh(i),this.scheduleHover(o),(o||[]).some(u=>this.monitor.canDropOnTarget(u))?(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 Lg(i.dataTransfer)&&i.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=i=>{const{dropTargetIds:o}=this;this.dropTargetIds=[],this.actions.hover(o,{clientOffset:wh(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 N2(n,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new O2(this.isNodeInDocument)}}let xh;function $2(){return xh||(xh=new Image,xh.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),xh}const V2=function(e,n,r){return new B2(e,n,r)};var _c=[],H2=function(){return _c.some(function(t){return t.activeTargets.length>0})},U2=function(){return _c.some(function(t){return t.skippedTargets.length>0})},aw="ResizeObserver loop completed with undelivered notifications.",W2=function(){var t;typeof ErrorEvent=="function"?t=new ErrorEvent("error",{message:aw}):(t=document.createEvent("Event"),t.initEvent("error",!1,!1),t.message=aw),window.dispatchEvent(t)},Md;(function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Md||(Md={}));var Rc=function(t){return Object.freeze(t)},z2=function(){function t(e,n){this.inlineSize=e,this.blockSize=n,Rc(this)}return t}(),HT=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,Rc(this)}return t.prototype.toJSON=function(){var e=this,n=e.x,r=e.y,i=e.top,o=e.right,a=e.bottom,u=e.left,c=e.width,d=e.height;return{x:n,y:r,top:i,right:o,bottom:a,left:u,width:c,height:d}},t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t}(),qv=function(t){return t instanceof SVGElement&&"getBBox"in t},UT=function(t){if(qv(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)},lw=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)},Y2=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},bd=typeof window<"u"?window:{},Sh=new WeakMap,uw=/auto|scroll/,G2=/^tb|vertical/,q2=/msie|trident/i.test(bd.navigator&&bd.navigator.userAgent),Na=function(t){return parseFloat(t||"0")},_f=function(t,e,n){return t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=!1),new z2((n?e:t)||0,(n?t:e)||0)},cw=Rc({devicePixelContentBoxSize:_f(),borderBoxSize:_f(),contentBoxSize:_f(),contentRect:new HT(0,0,0,0)}),WT=function(t,e){if(e===void 0&&(e=!1),Sh.has(t)&&!e)return Sh.get(t);if(UT(t))return Sh.set(t,cw),cw;var n=getComputedStyle(t),r=qv(t)&&t.ownerSVGElement&&t.getBBox(),i=!q2&&n.boxSizing==="border-box",o=G2.test(n.writingMode||""),a=!r&&uw.test(n.overflowY||""),u=!r&&uw.test(n.overflowX||""),c=r?0:Na(n.paddingTop),d=r?0:Na(n.paddingRight),y=r?0:Na(n.paddingBottom),p=r?0:Na(n.paddingLeft),S=r?0:Na(n.borderTopWidth),C=r?0:Na(n.borderRightWidth),A=r?0:Na(n.borderBottomWidth),I=r?0:Na(n.borderLeftWidth),B=p+d,_=c+y,G=I+C,q=S+A,se=u?t.offsetHeight-q-t.clientHeight:0,Q=a?t.offsetWidth-G-t.clientWidth:0,ye=i?B+G:0,x=i?_+q:0,ae=r?r.width:Na(n.width)-ye-Q,ce=r?r.height:Na(n.height)-x-se,Be=ae+B+Q+G,qe=ce+_+se+q,Ze=Rc({devicePixelContentBoxSize:_f(Math.round(ae*devicePixelRatio),Math.round(ce*devicePixelRatio),o),borderBoxSize:_f(Be,qe,o),contentBoxSize:_f(ae,ce,o),contentRect:new HT(p,c,ae,ce)});return Sh.set(t,Ze),Ze},zT=function(t,e,n){var r=WT(t,n),i=r.borderBoxSize,o=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(e){case Md.DEVICE_PIXEL_CONTENT_BOX:return a;case Md.BORDER_BOX:return i;default:return o}},X2=function(){function t(e){var n=WT(e);this.target=e,this.contentRect=n.contentRect,this.borderBoxSize=Rc([n.borderBoxSize]),this.contentBoxSize=Rc([n.contentBoxSize]),this.devicePixelContentBoxSize=Rc([n.devicePixelContentBoxSize])}return t}(),YT=function(t){if(UT(t))return 1/0;for(var e=0,n=t.parentNode;n;)e+=1,n=n.parentNode;return e},K2=function(){var t=1/0,e=[];_c.forEach(function(a){if(a.activeTargets.length!==0){var u=[];a.activeTargets.forEach(function(d){var y=new X2(d.target),p=YT(d.target);u.push(y),d.lastReportedSize=zT(d.target,d.observedBox),p<t&&(t=p)}),e.push(function(){a.callback.call(a.observer,u,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},fw=function(t){_c.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(i){i.isActive()&&(YT(i.target)>t?n.activeTargets.push(i):n.skippedTargets.push(i))})})},Z2=function(){var t=0;for(fw(t);H2();)t=K2(),fw(t);return U2()&&W2(),t>0},Fg,GT=[],J2=function(){return GT.splice(0).forEach(function(t){return t()})},Q2=function(t){if(!Fg){var e=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return J2()}).observe(n,r),Fg=function(){n.textContent="".concat(e?e--:e++)}}GT.push(t),Fg()},eF=function(t){Q2(function(){requestAnimationFrame(t)})},Bh=0,tF=function(){return!!Bh},nF=250,rF={attributes:!0,characterData:!0,childList:!0,subtree:!0},dw=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],hw=function(t){return t===void 0&&(t=0),Date.now()+t},Ng=!1,iF=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=nF),!Ng){Ng=!0;var r=hw(e);eF(function(){var i=!1;try{i=Z2()}finally{if(Ng=!1,e=r-hw(),!tF())return;i?n.run(1e3):e>0?n.run(e):n.start()}})}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var e=this,n=function(){return e.observer&&e.observer.observe(document.body,rF)};document.body?n():bd.addEventListener("DOMContentLoaded",n)},t.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),dw.forEach(function(n){return bd.addEventListener(n,e.listener,!0)}))},t.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),dw.forEach(function(n){return bd.removeEventListener(n,e.listener,!0)}),this.stopped=!0)},t}(),Hm=new iF,pw=function(t){!Bh&&t>0&&Hm.start(),Bh+=t,!Bh&&Hm.stop()},oF=function(t){return!qv(t)&&!Y2(t)&&getComputedStyle(t).display==="inline"},sF=function(){function t(e,n){this.target=e,this.observedBox=n||Md.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var e=zT(this.target,this.observedBox,!0);return oF(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t}(),aF=function(){function t(e,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=n}return t}(),Th=new WeakMap,gw=function(t,e){for(var n=0;n<t.length;n+=1)if(t[n].target===e)return n;return-1},Ch=function(){function t(){}return t.connect=function(e,n){var r=new aF(e,n);Th.set(e,r)},t.observe=function(e,n,r){var i=Th.get(e),o=i.observationTargets.length===0;gw(i.observationTargets,n)<0&&(o&&_c.push(i),i.observationTargets.push(new sF(n,r&&r.box)),pw(1),Hm.schedule())},t.unobserve=function(e,n){var r=Th.get(e),i=gw(r.observationTargets,n),o=r.observationTargets.length===1;i>=0&&(o&&_c.splice(_c.indexOf(r),1),r.observationTargets.splice(i,1),pw(-1))},t.disconnect=function(e){var n=this,r=Th.get(e);r.observationTargets.slice().forEach(function(i){return n.unobserve(e,i.target)}),r.activeTargets.splice(0,r.activeTargets.length)},t}(),lF=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.");Ch.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(!lw(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Ch.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(!lw(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Ch.unobserve(this,e)},t.prototype.disconnect=function(){Ch.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t}();const qT=Z.createContext({});function uF(t){const e=Z.useRef(null);return e.current===null&&(e.current=t()),e.current}const Xv=Z.createContext(null),XT=Z.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function cF(t=!0){const e=Z.useContext(Xv);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=e,o=Z.useId();Z.useEffect(()=>{t&&i(o)},[t]);const a=Z.useCallback(()=>t&&r&&r(o),[o,r,t]);return!n&&r?[!1,a]:[!0]}const Kv=typeof window<"u",fF=Kv?Z.useLayoutEffect:Z.useEffect,_o=t=>t;let $f=_o,Eu=_o;process.env.NODE_ENV!=="production"&&($f=(t,e)=>{!t&&typeof console<"u"&&console.warn(e)},Eu=(t,e)=>{if(!t)throw new Error(e)});function Zv(t){let e;return()=>(e===void 0&&(e=t()),e)}const Af=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r},$a=t=>t*1e3,_l=t=>t/1e3,dF={skipAnimations:!1,useManualTiming:!1};function hF(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 u(d){o.has(d)&&(c.schedule(d),t()),d(a)}const c={schedule:(d,y=!1,p=!1)=>{const C=p&&r?e:n;return y&&o.add(d),C.has(d)||C.add(d),d},cancel:d=>{n.delete(d),o.delete(d)},process:d=>{if(a=d,r){i=!0;return}r=!0,[e,n]=[n,e],e.forEach(u),e.clear(),r=!1,i&&(i=!1,c.process(d))}};return c}const Eh=["read","resolveKeyframes","update","preRender","render","postRender"],pF=40;function KT(t,e){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=Eh.reduce((_,G)=>(_[G]=hF(o),_),{}),{read:u,resolveKeyframes:c,update:d,preRender:y,render:p,postRender:S}=a,C=()=>{const _=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(_-i.timestamp,pF),1),i.timestamp=_,i.isProcessing=!0,u.process(i),c.process(i),d.process(i),y.process(i),p.process(i),S.process(i),i.isProcessing=!1,n&&e&&(r=!1,t(C))},A=()=>{n=!0,r=!0,i.isProcessing||t(C)};return{schedule:Eh.reduce((_,G)=>{const q=a[G];return _[G]=(se,Q=!1,ye=!1)=>(n||A(),q.schedule(se,Q,ye)),_},{}),cancel:_=>{for(let G=0;G<Eh.length;G++)a[Eh[G]].cancel(_)},state:i,steps:a}}const{schedule:Hn,cancel:ku,state:Ti,steps:jg}=KT(typeof requestAnimationFrame<"u"?requestAnimationFrame:_o,!0),ZT=Z.createContext({strict:!1}),mw={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"]},If={};for(const t in mw)If[t]={isEnabled:e=>mw[t].some(n=>!!e[n])};function gF(t){for(const e in t)If[e]={...If[e],...t[e]}}const mF=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 op(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||mF.has(t)}let JT=t=>!op(t);function vF(t){t&&(JT=e=>e.startsWith("on")?!op(e):t(e))}try{vF(require("@emotion/is-prop-valid").default)}catch{}function yF(t,e,n){const r={};for(const i in t)i==="values"&&typeof t.values=="object"||(JT(i)||n===!0&&op(i)||!e&&!op(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}const vw=new Set;function _p(t,e,n){t||vw.has(e)||(console.warn(e),n&&console.warn(n),vw.add(e))}function bF(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&_p(!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 Rp=Z.createContext({});function Ld(t){return typeof t=="string"||Array.isArray(t)}function Ap(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const Jv=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Qv=["initial",...Jv];function Ip(t){return Ap(t.animate)||Qv.some(e=>Ld(t[e]))}function QT(t){return!!(Ip(t)||t.variants)}function wF(t,e){if(Ip(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 xF(t){const{initial:e,animate:n}=wF(t,Z.useContext(Rp));return Z.useMemo(()=>({initial:e,animate:n}),[yw(e),yw(n)])}function yw(t){return Array.isArray(t)?t.join(" "):t}const SF=Symbol.for("motionComponentSymbol");function xf(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function TF(t,e,n){return Z.useCallback(r=>{r&&t.onMount&&t.onMount(r),e&&(r?e.mount(r):e.unmount()),n&&(typeof n=="function"?n(r):xf(n)&&(n.current=r))},[e])}const ey=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),CF="framerAppearId",eC="data-"+ey(CF),{schedule:ty,cancel:hY}=KT(queueMicrotask,!1),tC=Z.createContext({});function EF(t,e,n,r,i){var o,a;const{visualElement:u}=Z.useContext(Rp),c=Z.useContext(ZT),d=Z.useContext(Xv),y=Z.useContext(XT).reducedMotion,p=Z.useRef(null);r=r||c.renderer,!p.current&&r&&(p.current=r(t,{visualState:e,parent:u,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:y}));const S=p.current,C=Z.useContext(tC);S&&!S.projection&&i&&(S.type==="html"||S.type==="svg")&&kF(p.current,n,i,C);const A=Z.useRef(!1);Z.useInsertionEffect(()=>{S&&A.current&&S.update(n,d)});const I=n[eC],B=Z.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 fF(()=>{S&&(A.current=!0,window.MotionIsMounted=!0,S.updateFeatures(),ty.render(S.render),B.current&&S.animationState&&S.animationState.animateChanges())}),Z.useEffect(()=>{S&&(!B.current&&S.animationState&&S.animationState.animateChanges(),B.current&&(queueMicrotask(()=>{var _;(_=window.MotionHandoffMarkAsComplete)===null||_===void 0||_.call(window,I)}),B.current=!1))}),S}function kF(t,e,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:u,layoutScroll:c,layoutRoot:d}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:nC(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||u&&xf(u),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:c,layoutRoot:d})}function nC(t){if(t)return t.options.allowProjection!==!1?t.projection:nC(t.parent)}function DF({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:r,Component:i}){var o,a;t&&gF(t);function u(d,y){let p;const S={...Z.useContext(XT),...d,layoutId:PF(d)},{isStatic:C}=S,A=xF(d),I=r(d,C);if(!C&&Kv){OF(S,t);const B=_F(S);p=B.MeasureLayout,A.visualElement=EF(i,I,S,e,B.ProjectionNode)}return $e.jsxs(Rp.Provider,{value:A,children:[p&&A.visualElement?$e.jsx(p,{visualElement:A.visualElement,...S}):null,n(i,d,TF(I,A.visualElement,y),I,C,A.visualElement)]})}u.displayName=`motion.${typeof i=="string"?i:`create(${(a=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&a!==void 0?a:""})`}`;const c=Z.forwardRef(u);return c[SF]=i,c}function PF({layoutId:t}){const e=Z.useContext(qT).id;return e&&t!==void 0?e+"-"+t:t}function OF(t,e){const n=Z.useContext(ZT).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?$f(!1,r):Eu(!1,r)}}function _F(t){const{drag:e,layout:n}=If;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 RF=["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 ny(t){return typeof t!="string"||t.includes("-")?!1:!!(RF.indexOf(t)>-1||/[A-Z]/u.test(t))}function bw(t){const e=[{},{}];return t==null||t.values.forEach((n,r)=>{e[0][r]=n.get(),e[1][r]=n.getVelocity()}),e}function ry(t,e,n,r){if(typeof e=="function"){const[i,o]=bw(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]=bw(r);e=e(n!==void 0?n:t.custom,i,o)}return e}const Um=t=>Array.isArray(t),AF=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),IF=t=>Um(t)?t[t.length-1]||0:t,$i=t=>!!(t&&t.getVelocity);function $h(t){const e=$i(t)?t.get():t;return AF(e)?e.toValue():e}function MF({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:n},r,i,o){const a={latestValues:LF(r,i,o,t),renderState:e()};return n&&(a.onMount=u=>n({props:r,current:u,...a}),a.onUpdate=u=>n(u)),a}const rC=t=>(e,n)=>{const r=Z.useContext(Rp),i=Z.useContext(Xv),o=()=>MF(t,e,r,i);return n?o():uF(o)};function LF(t,e,n,r){const i={},o=r(t,{});for(const S in o)i[S]=$h(o[S]);let{initial:a,animate:u}=t;const c=Ip(t),d=QT(t);e&&d&&!c&&t.inherit!==!1&&(a===void 0&&(a=e.initial),u===void 0&&(u=e.animate));let y=n?n.initial===!1:!1;y=y||a===!1;const p=y?u:a;if(p&&typeof p!="boolean"&&!Ap(p)){const S=Array.isArray(p)?p:[p];for(let C=0;C<S.length;C++){const A=ry(t,S[C]);if(A){const{transitionEnd:I,transition:B,..._}=A;for(const G in _){let q=_[G];if(Array.isArray(q)){const se=y?q.length-1:0;q=q[se]}q!==null&&(i[G]=q)}for(const G in I)i[G]=I[G]}}}return i}const Vf=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],$c=new Set(Vf),iC=t=>e=>typeof e=="string"&&e.startsWith(t),oC=iC("--"),FF=iC("var(--"),iy=t=>FF(t)?NF.test(t.split("/*")[0].trim()):!1,NF=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,sC=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Ml=(t,e,n)=>n>e?e:n<t?t:n,Hf={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Fd={...Hf,transform:t=>Ml(0,1,t)},kh={...Hf,default:1},qd=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),hu=qd("deg"),Va=qd("%"),Ft=qd("px"),jF=qd("vh"),BF=qd("vw"),ww={...Va,parse:t=>Va.parse(t)/100,transform:t=>Va.transform(t*100)},$F={borderWidth:Ft,borderTopWidth:Ft,borderRightWidth:Ft,borderBottomWidth:Ft,borderLeftWidth:Ft,borderRadius:Ft,radius:Ft,borderTopLeftRadius:Ft,borderTopRightRadius:Ft,borderBottomRightRadius:Ft,borderBottomLeftRadius:Ft,width:Ft,maxWidth:Ft,height:Ft,maxHeight:Ft,top:Ft,right:Ft,bottom:Ft,left:Ft,padding:Ft,paddingTop:Ft,paddingRight:Ft,paddingBottom:Ft,paddingLeft:Ft,margin:Ft,marginTop:Ft,marginRight:Ft,marginBottom:Ft,marginLeft:Ft,backgroundPositionX:Ft,backgroundPositionY:Ft},VF={rotate:hu,rotateX:hu,rotateY:hu,rotateZ:hu,scale:kh,scaleX:kh,scaleY:kh,scaleZ:kh,skew:hu,skewX:hu,skewY:hu,distance:Ft,translateX:Ft,translateY:Ft,translateZ:Ft,x:Ft,y:Ft,z:Ft,perspective:Ft,transformPerspective:Ft,opacity:Fd,originX:ww,originY:ww,originZ:Ft},xw={...Hf,transform:Math.round},oy={...$F,...VF,zIndex:xw,size:Ft,fillOpacity:Fd,strokeOpacity:Fd,numOctaves:xw},HF={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},UF=Vf.length;function WF(t,e,n){let r="",i=!0;for(let o=0;o<UF;o++){const a=Vf[o],u=t[a];if(u===void 0)continue;let c=!0;if(typeof u=="number"?c=u===(a.startsWith("scale")?1:0):c=parseFloat(u)===0,!c||n){const d=sC(u,oy[a]);if(!c){i=!1;const y=HF[a]||a;r+=`${y}(${d}) `}n&&(e[a]=d)}}return r=r.trim(),n?r=n(e,i?"":r):i&&(r="none"),r}function sy(t,e,n){const{style:r,vars:i,transformOrigin:o}=t;let a=!1,u=!1;for(const c in e){const d=e[c];if($c.has(c)){a=!0;continue}else if(oC(c)){i[c]=d;continue}else{const y=sC(d,oy[c]);c.startsWith("origin")?(u=!0,o[c]=y):r[c]=y}}if(e.transform||(a||n?r.transform=WF(e,t.transform,n):r.transform&&(r.transform="none")),u){const{originX:c="50%",originY:d="50%",originZ:y=0}=o;r.transformOrigin=`${c} ${d} ${y}`}}const zF={offset:"stroke-dashoffset",array:"stroke-dasharray"},YF={offset:"strokeDashoffset",array:"strokeDasharray"};function GF(t,e,n=1,r=0,i=!0){t.pathLength=1;const o=i?zF:YF;t[o.offset]=Ft.transform(-r);const a=Ft.transform(e),u=Ft.transform(n);t[o.array]=`${a} ${u}`}function Sw(t,e,n){return typeof t=="string"?t:Ft.transform(e+n*t)}function qF(t,e,n){const r=Sw(e,t.x,t.width),i=Sw(n,t.y,t.height);return`${r} ${i}`}function ay(t,{attrX:e,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:u=1,pathOffset:c=0,...d},y,p){if(sy(t,d,p),y){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:S,style:C,dimensions:A}=t;S.transform&&(A&&(C.transform=S.transform),delete S.transform),A&&(i!==void 0||o!==void 0||C.transform)&&(C.transformOrigin=qF(A,i!==void 0?i:.5,o!==void 0?o:.5)),e!==void 0&&(S.x=e),n!==void 0&&(S.y=n),r!==void 0&&(S.scale=r),a!==void 0&&GF(S,a,u,c,!1)}const ly=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),aC=()=>({...ly(),attrs:{}}),uy=t=>typeof t=="string"&&t.toLowerCase()==="svg";function lC(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 uC=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 cC(t,e,n,r){lC(t,e,void 0,r);for(const i in e.attrs)t.setAttribute(uC.has(i)?i:ey(i),e.attrs[i])}const sp={};function XF(t){Object.assign(sp,t)}function fC(t,{layout:e,layoutId:n}){return $c.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!sp[t]||t==="opacity")}function cy(t,e,n){var r;const{style:i}=t,o={};for(const a in i)($i(i[a])||e.style&&$i(e.style[a])||fC(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 dC(t,e,n){const r=cy(t,e,n);for(const i in t)if($i(t[i])||$i(e[i])){const o=Vf.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=t[i]}return r}function KF(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 Tw=["x","y","width","height","cx","cy","r"],ZF={useVisualState:rC({scrapeMotionValuesFromProps:dC,createRenderState:aC,onUpdate:({props:t,prevProps:e,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!t.drag;if(!o){for(const u in i)if($c.has(u)){o=!0;break}}if(!o)return;let a=!e;if(e)for(let u=0;u<Tw.length;u++){const c=Tw[u];t[c]!==e[c]&&(a=!0)}a&&Hn.read(()=>{KF(n,r),Hn.render(()=>{ay(r,i,uy(n.tagName),t.transformTemplate),cC(n,r)})})}})},JF={useVisualState:rC({scrapeMotionValuesFromProps:cy,createRenderState:ly})};function hC(t,e,n){for(const r in e)!$i(e[r])&&!fC(r,n)&&(t[r]=e[r])}function QF({transformTemplate:t},e){return Z.useMemo(()=>{const n=ly();return sy(n,e,t),Object.assign({},n.vars,n.style)},[e])}function eN(t,e){const n=t.style||{},r={};return hC(r,n,t),Object.assign(r,QF(t,e)),r}function tN(t,e){const n={},r=eN(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 nN(t,e,n,r){const i=Z.useMemo(()=>{const o=aC();return ay(o,e,uy(r),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};hC(o,t.style,t),i.style={...o,...i.style}}return i}function rN(t=!1){return(n,r,i,{latestValues:o},a)=>{const c=(ny(n)?nN:tN)(r,o,a,n),d=yF(r,typeof n=="string",t),y=n!==Z.Fragment?{...d,...c,ref:i}:{},{children:p}=r,S=Z.useMemo(()=>$i(p)?p.get():p,[p]);return Z.createElement(n,{...y,children:S})}}function iN(t,e){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...ny(r)?ZF:JF,preloadedFeatures:t,useRender:rN(i),createVisualElement:e,Component:r};return DF(a)}}function pC(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 Mp(t,e,n){const r=t.getProps();return ry(r,e,n!==void 0?n:r.custom,t)}const oN=Zv(()=>window.ScrollTimeline!==void 0);class sN{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(oN()&&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 aN extends sN{then(e,n){return Promise.all(this.animations).then(e).catch(n)}}function fy(t,e){return t?t[e]||t.default||t:void 0}const Wm=2e4;function gC(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e<Wm;)e+=n,r=t.next(e);return e>=Wm?1/0:e}function dy(t){return typeof t=="function"}function Cw(t,e){t.timeline=e,t.onfinish=null}const hy=t=>Array.isArray(t)&&typeof t[0]=="number",lN={linearEasing:void 0};function uN(t,e){const n=Zv(t);return()=>{var r;return(r=lN[e])!==null&&r!==void 0?r:n()}}const ap=uN(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),mC=(t,e,n=10)=>{let r="";const i=Math.max(Math.round(e/n),2);for(let o=0;o<i;o++)r+=t(Af(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function vC(t){return!!(typeof t=="function"&&ap()||!t||typeof t=="string"&&(t in zm||ap())||hy(t)||Array.isArray(t)&&t.every(vC))}const dd=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,zm={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 yC(t,e){if(t)return typeof t=="function"&&ap()?mC(t,e):hy(t)?dd(t):Array.isArray(t)?t.map(n=>yC(n,e)||zm.easeOut):zm[t]}const sa={x:!1,y:!1};function bC(){return sa.x||sa.y}function cN(t,e,n){var r;if(t instanceof Element)return[t];if(typeof t=="string"){let i=document;e&&(i=e.current);const o=(r=n==null?void 0:n[t])!==null&&r!==void 0?r:i.querySelectorAll(t);return o?Array.from(o):[]}return Array.from(t)}function wC(t,e){const n=cN(t),r=new AbortController,i={passive:!0,...e,signal:r.signal};return[n,i,()=>r.abort()]}function Ew(t){return e=>{e.pointerType==="touch"||bC()||t(e)}}function fN(t,e,n={}){const[r,i,o]=wC(t,n),a=Ew(u=>{const{target:c}=u,d=e(u);if(typeof d!="function"||!c)return;const y=Ew(p=>{d(p),c.removeEventListener("pointerleave",y)});c.addEventListener("pointerleave",y,i)});return r.forEach(u=>{u.addEventListener("pointerenter",a,i)}),o}const xC=(t,e)=>e?t===e?!0:xC(t,e.parentElement):!1,py=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,dN=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function hN(t){return dN.has(t.tagName)||t.tabIndex!==-1}const hd=new WeakSet;function kw(t){return e=>{e.key==="Enter"&&t(e)}}function Bg(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const pN=(t,e)=>{const n=t.currentTarget;if(!n)return;const r=kw(()=>{if(hd.has(n))return;Bg(n,"down");const i=kw(()=>{Bg(n,"up")}),o=()=>Bg(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 Dw(t){return py(t)&&!bC()}function gN(t,e,n={}){const[r,i,o]=wC(t,n),a=u=>{const c=u.currentTarget;if(!Dw(u)||hd.has(c))return;hd.add(c);const d=e(u),y=(C,A)=>{window.removeEventListener("pointerup",p),window.removeEventListener("pointercancel",S),!(!Dw(C)||!hd.has(c))&&(hd.delete(c),typeof d=="function"&&d(C,{success:A}))},p=C=>{y(C,n.useGlobalTarget||xC(c,C.target))},S=C=>{y(C,!1)};window.addEventListener("pointerup",p,i),window.addEventListener("pointercancel",S,i)};return r.forEach(u=>{!hN(u)&&u.getAttribute("tabindex")===null&&(u.tabIndex=0),(n.useGlobalTarget?window:u).addEventListener("pointerdown",a,i),u.addEventListener("focus",d=>pN(d,i),i)}),o}function mN(t){return t==="x"||t==="y"?sa[t]?null:(sa[t]=!0,()=>{sa[t]=!1}):sa.x||sa.y?null:(sa.x=sa.y=!0,()=>{sa.x=sa.y=!1})}const SC=new Set(["width","height","top","left","right","bottom",...Vf]);let Vh;function vN(){Vh=void 0}const Ha={now:()=>(Vh===void 0&&Ha.set(Ti.isProcessing||dF.useManualTiming?Ti.timestamp:performance.now()),Vh),set:t=>{Vh=t,queueMicrotask(vN)}};function gy(t,e){t.indexOf(e)===-1&&t.push(e)}function my(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}let vy=class{constructor(){this.subscriptions=[]}add(e){return gy(this.subscriptions,e),()=>my(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 TC(t,e){return e?t*(1e3/e):0}const Pw=30,yN=t=>!isNaN(parseFloat(t));let bN=class{constructor(e,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=Ha.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=Ha.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=yN(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!=="production"&&_p(!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 vy);const r=this.events[e].add(n);return e==="change"?()=>{r(),Hn.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=Ha.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Pw)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Pw);return TC(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 Nd(t,e){return new bN(t,e)}function wN(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Nd(n))}function xN(t,e){const n=Mp(t,e);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const u=IF(o[a]);wN(t,a,u)}}function SN(t){return!!($i(t)&&t.add)}function Ym(t,e){const n=t.getValue("willChange");if(SN(n))return n.add(e)}function CC(t){return t.props[eC]}const EC=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,TN=1e-7,CN=12;function EN(t,e,n,r,i){let o,a,u=0;do a=e+(n-e)/2,o=EC(a,r,i)-t,o>0?n=a:e=a;while(Math.abs(o)>TN&&++u<CN);return a}function Xd(t,e,n,r){if(t===e&&n===r)return _o;const i=o=>EN(o,0,1,t,n);return o=>o===0||o===1?o:EC(i(o),e,r)}const kC=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,DC=t=>e=>1-t(1-e),PC=Xd(.33,1.53,.69,.99),yy=DC(PC),OC=kC(yy),_C=t=>(t*=2)<1?.5*yy(t):.5*(2-Math.pow(2,-10*(t-1))),by=t=>1-Math.sin(Math.acos(t)),RC=DC(by),AC=kC(by),IC=t=>/^0[^.\s]+$/u.test(t);function kN(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||IC(t):!0}const wd=t=>Math.round(t*1e5)/1e5,wy=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function DN(t){return t==null}const PN=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,xy=(t,e)=>n=>!!(typeof n=="string"&&PN.test(n)&&n.startsWith(t)||e&&!DN(n)&&Object.prototype.hasOwnProperty.call(n,e)),MC=(t,e,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,u]=r.match(wy);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(a),alpha:u!==void 0?parseFloat(u):1}},ON=t=>Ml(0,255,t),$g={...Hf,transform:t=>Math.round(ON(t))},kc={test:xy("rgb","red"),parse:MC("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+$g.transform(t)+", "+$g.transform(e)+", "+$g.transform(n)+", "+wd(Fd.transform(r))+")"};function _N(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 Gm={test:xy("#"),parse:_N,transform:kc.transform},Sf={test:xy("hsl","hue"),parse:MC("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+Va.transform(wd(e))+", "+Va.transform(wd(n))+", "+wd(Fd.transform(r))+")"},Bi={test:t=>kc.test(t)||Gm.test(t)||Sf.test(t),parse:t=>kc.test(t)?kc.parse(t):Sf.test(t)?Sf.parse(t):Gm.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?kc.transform(t):Sf.transform(t)},RN=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function AN(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(wy))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(RN))===null||n===void 0?void 0:n.length)||0)>0}const LC="number",FC="color",IN="var",MN="var(",Ow="${}",LN=/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 jd(t){const e=t.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const u=e.replace(LN,c=>(Bi.test(c)?(r.color.push(o),i.push(FC),n.push(Bi.parse(c))):c.startsWith(MN)?(r.var.push(o),i.push(IN),n.push(c)):(r.number.push(o),i.push(LC),n.push(parseFloat(c))),++o,Ow)).split(Ow);return{values:n,split:u,indexes:r,types:i}}function NC(t){return jd(t).values}function jC(t){const{split:e,types:n}=jd(t),r=e.length;return i=>{let o="";for(let a=0;a<r;a++)if(o+=e[a],i[a]!==void 0){const u=n[a];u===LC?o+=wd(i[a]):u===FC?o+=Bi.transform(i[a]):o+=i[a]}return o}}const FN=t=>typeof t=="number"?0:t;function NN(t){const e=NC(t);return jC(t)(e.map(FN))}const Du={test:AN,parse:NC,createTransformer:jC,getAnimatableNone:NN},jN=new Set(["brightness","contrast","saturate","opacity"]);function BN(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(wy)||[];if(!r)return t;const i=n.replace(r,"");let o=jN.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+i+")"}const $N=/\b([a-z-]*)\(.*?\)/gu,qm={...Du,getAnimatableNone:t=>{const e=t.match($N);return e?e.map(BN).join(" "):t}},VN={...oy,color:Bi,backgroundColor:Bi,outlineColor:Bi,fill:Bi,stroke:Bi,borderColor:Bi,borderTopColor:Bi,borderRightColor:Bi,borderBottomColor:Bi,borderLeftColor:Bi,filter:qm,WebkitFilter:qm},Sy=t=>VN[t];function BC(t,e){let n=Sy(t);return n!==qm&&(n=Du),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const HN=new Set(["auto","none","0"]);function UN(t,e,n){let r=0,i;for(;r<t.length&&!i;){const o=t[r];typeof o=="string"&&!HN.has(o)&&jd(o).values.length&&(i=t[r]),r++}if(i&&n)for(const o of e)t[o]=BC(n,i)}const _w=t=>t===Hf||t===Ft,Rw=(t,e)=>parseFloat(t.split(", ")[e]),Aw=(t,e)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return Rw(i[1],e);{const o=r.match(/^matrix\((.+)\)$/u);return o?Rw(o[1],t):0}},WN=new Set(["x","y","z"]),zN=Vf.filter(t=>!WN.has(t));function YN(t){const e=[];return zN.forEach(n=>{const r=t.getValue(n);r!==void 0&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e}const Mf={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:Aw(4,13),y:Aw(5,14)};Mf.translateX=Mf.x;Mf.translateY=Mf.y;const Ac=new Set;let Xm=!1,Km=!1;function $C(){if(Km){const t=Array.from(Ac).filter(r=>r.needsMeasurement),e=new Set(t.map(r=>r.element)),n=new Map;e.forEach(r=>{const i=YN(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 u;(u=r.getValue(o))===null||u===void 0||u.set(a)})}),t.forEach(r=>r.measureEndState()),t.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Km=!1,Xm=!1,Ac.forEach(t=>t.complete()),Ac.clear()}function VC(){Ac.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Km=!0)})}function GN(){VC(),$C()}class Ty{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?(Ac.add(this),Xm||(Xm=!0,Hn.read(VC),Hn.resolveKeyframes($C))):(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(),u=e[e.length-1];if(a!==void 0)e[0]=a;else if(r&&n){const c=r.readValue(n,u);c!=null&&(e[0]=c)}e[0]===void 0&&(e[0]=u),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),Ac.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Ac.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const HC=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),qN=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function XN(t){const e=qN.exec(t);if(!e)return[,];const[,n,r,i]=e;return[`--${n??r}`,i]}const KN=4;function UC(t,e,n=1){Eu(n<=KN,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[r,i]=XN(t);if(!r)return;const o=window.getComputedStyle(e).getPropertyValue(r);if(o){const a=o.trim();return HC(a)?parseFloat(a):a}return iy(i)?UC(i,e,n+1):i}const WC=t=>e=>e.test(t),ZN={test:t=>t==="auto",parse:t=>t},zC=[Hf,Ft,Va,hu,BF,jF,ZN],Iw=t=>zC.find(WC(t));class YC extends Ty{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 c=0;c<e.length;c++){let d=e[c];if(typeof d=="string"&&(d=d.trim(),iy(d))){const y=UC(d,n.current);y!==void 0&&(e[c]=y),c===e.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!SC.has(r)||e.length!==2)return;const[i,o]=e,a=Iw(i),u=Iw(o);if(a!==u)if(_w(a)&&_w(u))for(let c=0;c<e.length;c++){const d=e[c];typeof d=="string"&&(e[c]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,r=[];for(let i=0;i<e.length;i++)kN(e[i])&&r.push(i);r.length&&UN(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=Mf[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,u=i[a];i[a]=Mf[r](n.measureViewportBox(),window.getComputedStyle(n.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([c,d])=>{n.getValue(c).set(d)}),this.resolveNoneKeyframes()}}const Mw=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Du.test(t)||t==="0")&&!t.startsWith("url("));function JN(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 QN(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=Mw(i,e),u=Mw(o,e);return $f(a===u,`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||!u?!1:JN(t)||(n==="spring"||dy(n))&&r}const ej=t=>t!==null;function Lp(t,{repeat:e,repeatType:n="loop"},r){const i=t.filter(ej),o=e&&n!=="loop"&&e%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const tj=40;class GC{constructor({autoplay:e=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...u}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Ha.now(),this.options={autoplay:e,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...u},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>tj?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&GN(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=Ha.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:u,onUpdate:c,isGenerator:d}=this.options;if(!d&&!QN(e,r,i,o))if(a)this.options.duration=0;else{c&&c(Lp(e,this.options,n)),u&&u(),this.resolveFinishedPromise();return}const y=this.initPlayback(e,n);y!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...y},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 nr=(t,e,n)=>t+(e-t)*n;function Vg(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 nj({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 u=n<.5?n*(1+e):n+e-n*e,c=2*n-u;i=Vg(c,u,t+1/3),o=Vg(c,u,t),a=Vg(c,u,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function lp(t,e){return n=>n>0?e:t}const Hg=(t,e,n)=>{const r=t*t,i=n*(e*e-r)+r;return i<0?0:Math.sqrt(i)},rj=[Gm,kc,Sf],ij=t=>rj.find(e=>e.test(t));function Lw(t){const e=ij(t);if($f(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let n=e.parse(t);return e===Sf&&(n=nj(n)),n}const Fw=(t,e)=>{const n=Lw(t),r=Lw(e);if(!n||!r)return lp(t,e);const i={...n};return o=>(i.red=Hg(n.red,r.red,o),i.green=Hg(n.green,r.green,o),i.blue=Hg(n.blue,r.blue,o),i.alpha=nr(n.alpha,r.alpha,o),kc.transform(i))},oj=(t,e)=>n=>e(t(n)),Kd=(...t)=>t.reduce(oj),Zm=new Set(["none","hidden"]);function sj(t,e){return Zm.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function aj(t,e){return n=>nr(t,e,n)}function Cy(t){return typeof t=="number"?aj:typeof t=="string"?iy(t)?lp:Bi.test(t)?Fw:cj:Array.isArray(t)?qC:typeof t=="object"?Bi.test(t)?Fw:lj:lp}function qC(t,e){const n=[...t],r=n.length,i=t.map((o,a)=>Cy(o)(o,e[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function lj(t,e){const n={...t,...e},r={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(r[i]=Cy(t[i])(t[i],e[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function uj(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],u=t.indexes[a][i[a]],c=(n=t.values[u])!==null&&n!==void 0?n:0;r[o]=c,i[a]++}return r}const cj=(t,e)=>{const n=Du.createTransformer(e),r=jd(t),i=jd(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?Zm.has(t)&&!i.values.length||Zm.has(e)&&!r.values.length?sj(t,e):Kd(qC(uj(r,i),i.values),n):($f(!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.`),lp(t,e))};function XC(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?nr(t,e,n):Cy(t)(t,e)}const fj=5;function KC(t,e,n){const r=Math.max(e-fj,0);return TC(n-t(r),e-r)}const tr={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},Ug=.001;function dj({duration:t=tr.duration,bounce:e=tr.bounce,velocity:n=tr.velocity,mass:r=tr.mass}){let i,o;$f(t<=$a(tr.maxDuration),"Spring duration must be 10 seconds or less");let a=1-e;a=Ml(tr.minDamping,tr.maxDamping,a),t=Ml(tr.minDuration,tr.maxDuration,_l(t)),a<1?(i=d=>{const y=d*a,p=y*t,S=y-n,C=Jm(d,a),A=Math.exp(-p);return Ug-S/C*A},o=d=>{const p=d*a*t,S=p*n+n,C=Math.pow(a,2)*Math.pow(d,2)*t,A=Math.exp(-p),I=Jm(Math.pow(d,2),a);return(-i(d)+Ug>0?-1:1)*((S-C)*A)/I}):(i=d=>{const y=Math.exp(-d*t),p=(d-n)*t+1;return-Ug+y*p},o=d=>{const y=Math.exp(-d*t),p=(n-d)*(t*t);return y*p});const u=5/t,c=pj(i,o,u);if(t=$a(t),isNaN(c))return{stiffness:tr.stiffness,damping:tr.damping,duration:t};{const d=Math.pow(c,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:t}}}const hj=12;function pj(t,e,n){let r=n;for(let i=1;i<hj;i++)r=r-t(r)/e(r);return r}function Jm(t,e){return t*Math.sqrt(1-e*e)}const gj=["duration","bounce"],mj=["stiffness","damping","mass"];function Nw(t,e){return e.some(n=>t[n]!==void 0)}function vj(t){let e={velocity:tr.velocity,stiffness:tr.stiffness,damping:tr.damping,mass:tr.mass,isResolvedFromDuration:!1,...t};if(!Nw(t,mj)&&Nw(t,gj))if(t.visualDuration){const n=t.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Ml(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:tr.mass,stiffness:i,damping:o}}else{const n=dj(t);e={...e,...n,mass:tr.mass},e.isResolvedFromDuration=!0}return e}function ZC(t=tr.visualDuration,e=tr.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],u={done:!1,value:o},{stiffness:c,damping:d,mass:y,duration:p,velocity:S,isResolvedFromDuration:C}=vj({...n,velocity:-_l(n.velocity||0)}),A=S||0,I=d/(2*Math.sqrt(c*y)),B=a-o,_=_l(Math.sqrt(c/y)),G=Math.abs(B)<5;r||(r=G?tr.restSpeed.granular:tr.restSpeed.default),i||(i=G?tr.restDelta.granular:tr.restDelta.default);let q;if(I<1){const Q=Jm(_,I);q=ye=>{const x=Math.exp(-I*_*ye);return a-x*((A+I*_*B)/Q*Math.sin(Q*ye)+B*Math.cos(Q*ye))}}else if(I===1)q=Q=>a-Math.exp(-_*Q)*(B+(A+_*B)*Q);else{const Q=_*Math.sqrt(I*I-1);q=ye=>{const x=Math.exp(-I*_*ye),ae=Math.min(Q*ye,300);return a-x*((A+I*_*B)*Math.sinh(ae)+Q*B*Math.cosh(ae))/Q}}const se={calculatedDuration:C&&p||null,next:Q=>{const ye=q(Q);if(C)u.done=Q>=p;else{let x=0;I<1&&(x=Q===0?$a(A):KC(q,Q,ye));const ae=Math.abs(x)<=r,ce=Math.abs(a-ye)<=i;u.done=ae&&ce}return u.value=u.done?a:ye,u},toString:()=>{const Q=Math.min(gC(se),Wm),ye=mC(x=>se.next(Q*x).value,Q,30);return Q+"ms "+ye}};return se}function jw({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:u,max:c,restDelta:d=.5,restSpeed:y}){const p=t[0],S={done:!1,value:p},C=ae=>u!==void 0&&ae<u||c!==void 0&&ae>c,A=ae=>u===void 0?c:c===void 0||Math.abs(u-ae)<Math.abs(c-ae)?u:c;let I=n*e;const B=p+I,_=a===void 0?B:a(B);_!==B&&(I=_-p);const G=ae=>-I*Math.exp(-ae/r),q=ae=>_+G(ae),se=ae=>{const ce=G(ae),Be=q(ae);S.done=Math.abs(ce)<=d,S.value=S.done?_:Be};let Q,ye;const x=ae=>{C(S.value)&&(Q=ae,ye=ZC({keyframes:[S.value,A(S.value)],velocity:KC(q,ae,S.value),damping:i,stiffness:o,restDelta:d,restSpeed:y}))};return x(0),{calculatedDuration:null,next:ae=>{let ce=!1;return!ye&&Q===void 0&&(ce=!0,se(ae),x(ae)),Q!==void 0&&ae>=Q?ye.next(ae-Q):(!ce&&se(ae),S)}}}const yj=Xd(.42,0,1,1),bj=Xd(0,0,.58,1),JC=Xd(.42,0,.58,1),wj=t=>Array.isArray(t)&&typeof t[0]!="number",Bw={linear:_o,easeIn:yj,easeInOut:JC,easeOut:bj,circIn:by,circInOut:AC,circOut:RC,backIn:yy,backInOut:OC,backOut:PC,anticipate:_C},$w=t=>{if(hy(t)){Eu(t.length===4,"Cubic bezier arrays must contain four numerical values.");const[e,n,r,i]=t;return Xd(e,n,r,i)}else if(typeof t=="string")return Eu(Bw[t]!==void 0,`Invalid easing type '${t}'`),Bw[t];return t};function xj(t,e,n){const r=[],i=n||XC,o=t.length-1;for(let a=0;a<o;a++){let u=i(t[a],t[a+1]);if(e){const c=Array.isArray(e)?e[a]||_o:e;u=Kd(c,u)}r.push(u)}return r}function Sj(t,e,{clamp:n=!0,ease:r,mixer:i}={}){const o=t.length;if(Eu(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 u=xj(e,r,i),c=u.length,d=y=>{if(a&&y<t[0])return e[0];let p=0;if(c>1)for(;p<t.length-2&&!(y<t[p+1]);p++);const S=Af(t[p],t[p+1],y);return u[p](S)};return n?y=>d(Ml(t[0],t[o-1],y)):d}function Tj(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const i=Af(0,e,r);t.push(nr(n,1,i))}}function Cj(t){const e=[0];return Tj(e,t.length-1),e}function Ej(t,e){return t.map(n=>n*e)}function kj(t,e){return t.map(()=>e||JC).splice(0,t.length-1)}function up({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const i=wj(r)?r.map($w):$w(r),o={done:!1,value:e[0]},a=Ej(n&&n.length===e.length?n:Cj(e),t),u=Sj(a,e,{ease:Array.isArray(i)?i:kj(e,i)});return{calculatedDuration:t,next:c=>(o.value=u(c),o.done=c>=t,o)}}const Dj=t=>{const e=({timestamp:n})=>t(n);return{start:()=>Hn.update(e,!0),stop:()=>ku(e),now:()=>Ti.isProcessing?Ti.timestamp:Ha.now()}},Pj={decay:jw,inertia:jw,tween:up,keyframes:up,spring:ZC},Oj=t=>t/100;class Ey extends GC{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:c}=this.options;c&&c()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||Ty,u=(c,d)=>this.onKeyframesResolved(c,d);this.resolver=new a(o,u,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,u=dy(n)?n:Pj[n]||up;let c,d;u!==up&&typeof e[0]!="number"&&(process.env.NODE_ENV!=="production"&&Eu(e.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`),c=Kd(Oj,XC(e[0],e[1])),e=[0,100]);const y=u({...this.options,keyframes:e});o==="mirror"&&(d=u({...this.options,keyframes:[...e].reverse(),velocity:-a})),y.calculatedDuration===null&&(y.calculatedDuration=gC(y));const{calculatedDuration:p}=y,S=p+i,C=S*(r+1)-i;return{generator:y,mirroredGenerator:d,mapPercentToKeyframes:c,calculatedDuration:p,resolvedDuration:S,totalDuration:C}}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:ae}=this.options;return{done:!0,value:ae[ae.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:u,keyframes:c,calculatedDuration:d,totalDuration:y,resolvedDuration:p}=r;if(this.startTime===null)return o.next(0);const{delay:S,repeat:C,repeatType:A,repeatDelay:I,onUpdate:B}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-y/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-S*(this.speed>=0?1:-1),G=this.speed>=0?_<0:_>y;this.currentTime=Math.max(_,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=y);let q=this.currentTime,se=o;if(C){const ae=Math.min(this.currentTime,y)/p;let ce=Math.floor(ae),Be=ae%1;!Be&&ae>=1&&(Be=1),Be===1&&ce--,ce=Math.min(ce,C+1),!!(ce%2)&&(A==="reverse"?(Be=1-Be,I&&(Be-=I/p)):A==="mirror"&&(se=a)),q=Ml(0,1,Be)*p}const Q=G?{done:!1,value:c[0]}:se.next(q);u&&(Q.value=u(Q.value));let{done:ye}=Q;!G&&d!==null&&(ye=this.speed>=0?this.currentTime>=y:this.currentTime<=0);const x=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&ye);return x&&i!==void 0&&(Q.value=Lp(c,this.options,i)),B&&B(Q.value),x&&this.finish(),Q}get duration(){const{resolved:e}=this;return e?_l(e.calculatedDuration):0}get time(){return _l(this.currentTime)}set time(e){e=$a(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=_l(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=Dj,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 _j=new Set(["opacity","clipPath","filter","transform"]);function Rj(t,e,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:u="easeInOut",times:c}={}){const d={[e]:n};c&&(d.offset=c);const y=yC(u,i);return Array.isArray(y)&&(d.easing=y),t.animate(d,{delay:r,duration:i,easing:Array.isArray(y)?"linear":y,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const Aj=Zv(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),cp=10,Ij=2e4;function Mj(t){return dy(t.type)||t.type==="spring"||!vC(t.ease)}function Lj(t,e){const n=new Ey({...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<Ij;)r=n.sample(o),i.push(r.value),o+=cp;return{times:void 0,keyframes:i,duration:o-cp,ease:"linear"}}const QC={anticipate:_C,backInOut:OC,circInOut:AC};function Fj(t){return t in QC}class Vw extends GC{constructor(e){super(e);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new YC(o,(a,u)=>this.onKeyframesResolved(a,u),n,r,i),this.resolver.scheduleResolve()}initPlayback(e,n){let{duration:r=300,times:i,ease:o,type:a,motionValue:u,name:c,startTime:d}=this.options;if(!u.owner||!u.owner.current)return!1;if(typeof o=="string"&&ap()&&Fj(o)&&(o=QC[o]),Mj(this.options)){const{onComplete:p,onUpdate:S,motionValue:C,element:A,...I}=this.options,B=Lj(e,I);e=B.keyframes,e.length===1&&(e[1]=e[0]),r=B.duration,i=B.times,o=B.ease,a="keyframes"}const y=Rj(u.owner.current,c,e,{...this.options,duration:r,times:i,ease:o});return y.startTime=d??this.calcStartTime(),this.pendingTimeline?(Cw(y,this.pendingTimeline),this.pendingTimeline=void 0):y.onfinish=()=>{const{onComplete:p}=this.options;u.set(Lp(e,this.options,n)),p&&p(),this.cancel(),this.resolveFinishedPromise()},{animation:y,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 _l(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return _l(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=$a(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;Cw(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:u}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:y,onComplete:p,element:S,...C}=this.options,A=new Ey({...C,keyframes:r,duration:i,type:o,ease:a,times:u,isGenerator:!0}),I=$a(this.time);d.setWithVelocity(A.sample(I-cp).value,A.sample(I).value,cp)}const{onStop:c}=this.options;c&&c(),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:u}=e;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:d}=n.owner.getProps();return Aj()&&r&&_j.has(r)&&!c&&!d&&!i&&o!=="mirror"&&a!==0&&u!=="inertia"}}const Nj={type:"spring",stiffness:500,damping:25,restSpeed:10},jj=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Bj={type:"keyframes",duration:.8},$j={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Vj=(t,{keyframes:e})=>e.length>2?Bj:$c.has(t)?t.startsWith("scale")?jj(e[1]):Nj:$j;function Hj({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:u,from:c,elapsed:d,...y}){return!!Object.keys(y).length}const ky=(t,e,n,r={},i,o)=>a=>{const u=fy(r,t)||{},c=u.delay||r.delay||0;let{elapsed:d=0}=r;d=d-$a(c);let y={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...u,delay:-d,onUpdate:S=>{e.set(S),u.onUpdate&&u.onUpdate(S)},onComplete:()=>{a(),u.onComplete&&u.onComplete()},name:t,motionValue:e,element:o?void 0:i};Hj(u)||(y={...y,...Vj(t,y)}),y.duration&&(y.duration=$a(y.duration)),y.repeatDelay&&(y.repeatDelay=$a(y.repeatDelay)),y.from!==void 0&&(y.keyframes[0]=y.from);let p=!1;if((y.type===!1||y.duration===0&&!y.repeatDelay)&&(y.duration=0,y.delay===0&&(p=!0)),p&&!o&&e.get()!==void 0){const S=Lp(y.keyframes,u);if(S!==void 0)return Hn.update(()=>{y.onUpdate(S),y.onComplete()}),new aN([])}return!o&&Vw.supports(y)?new Vw(y):new Ey(y)};function Uj({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,r}function eE(t,e,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=t.getDefaultTransition(),transitionEnd:u,...c}=e;r&&(a=r);const d=[],y=i&&t.animationState&&t.animationState.getState()[i];for(const p in c){const S=t.getValue(p,(o=t.latestValues[p])!==null&&o!==void 0?o:null),C=c[p];if(C===void 0||y&&Uj(y,p))continue;const A={delay:n,...fy(a||{},p)};let I=!1;if(window.MotionHandoffAnimation){const _=CC(t);if(_){const G=window.MotionHandoffAnimation(_,p,Hn);G!==null&&(A.startTime=G,I=!0)}}Ym(t,p),S.start(ky(p,S,C,t.shouldReduceMotion&&SC.has(p)?{type:!1}:A,t,I));const B=S.animation;B&&d.push(B)}return u&&Promise.all(d).then(()=>{Hn.update(()=>{u&&xN(t,u)})}),d}function Qm(t,e,n={}){var r;const i=Mp(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(eE(t,i,n)):()=>Promise.resolve(),u=t.variantChildren&&t.variantChildren.size?(d=0)=>{const{delayChildren:y=0,staggerChildren:p,staggerDirection:S}=o;return Wj(t,e,y+d,p,S,n)}:()=>Promise.resolve(),{when:c}=o;if(c){const[d,y]=c==="beforeChildren"?[a,u]:[u,a];return d().then(()=>y())}else return Promise.all([a(),u(n.delay)])}function Wj(t,e,n=0,r=0,i=1,o){const a=[],u=(t.variantChildren.size-1)*r,c=i===1?(d=0)=>d*r:(d=0)=>u-d*r;return Array.from(t.variantChildren).sort(zj).forEach((d,y)=>{d.notify("AnimationStart",e),a.push(Qm(d,e,{...o,delay:n+c(y)}).then(()=>d.notify("AnimationComplete",e)))}),Promise.all(a)}function zj(t,e){return t.sortNodePosition(e)}function Yj(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const i=e.map(o=>Qm(t,o,n));r=Promise.all(i)}else if(typeof e=="string")r=Qm(t,e,n);else{const i=typeof e=="function"?Mp(t,e,n.custom):e;r=Promise.all(eE(t,i,n))}return r.then(()=>{t.notify("AnimationComplete",e)})}const Gj=Qv.length;function tE(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?tE(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<Gj;n++){const r=Qv[n],i=t.props[r];(Ld(i)||i===!1)&&(e[r]=i)}return e}const qj=[...Jv].reverse(),Xj=Jv.length;function Kj(t){return e=>Promise.all(e.map(({animation:n,options:r})=>Yj(t,n,r)))}function Zj(t){let e=Kj(t),n=Hw(),r=!0;const i=c=>(d,y)=>{var p;const S=Mp(t,y,c==="exit"?(p=t.presenceContext)===null||p===void 0?void 0:p.custom:void 0);if(S){const{transition:C,transitionEnd:A,...I}=S;d={...d,...I,...A}}return d};function o(c){e=c(t)}function a(c){const{props:d}=t,y=tE(t.parent)||{},p=[],S=new Set;let C={},A=1/0;for(let B=0;B<Xj;B++){const _=qj[B],G=n[_],q=d[_]!==void 0?d[_]:y[_],se=Ld(q),Q=_===c?G.isActive:null;Q===!1&&(A=B);let ye=q===y[_]&&q!==d[_]&&se;if(ye&&r&&t.manuallyAnimateOnMount&&(ye=!1),G.protectedKeys={...C},!G.isActive&&Q===null||!q&&!G.prevProp||Ap(q)||typeof q=="boolean")continue;const x=Jj(G.prevProp,q);let ae=x||_===c&&G.isActive&&!ye&&se||B>A&&se,ce=!1;const Be=Array.isArray(q)?q:[q];let qe=Be.reduce(i(_),{});Q===!1&&(qe={});const{prevResolvedValues:Ze={}}=G,ot={...Ze,...qe},it=Le=>{ae=!0,S.has(Le)&&(ce=!0,S.delete(Le)),G.needsAnimating[Le]=!0;const Ye=t.getValue(Le);Ye&&(Ye.liveStyle=!1)};for(const Le in ot){const Ye=qe[Le],st=Ze[Le];if(C.hasOwnProperty(Le))continue;let Ce=!1;Um(Ye)&&Um(st)?Ce=!pC(Ye,st):Ce=Ye!==st,Ce?Ye!=null?it(Le):S.add(Le):Ye!==void 0&&S.has(Le)?it(Le):G.protectedKeys[Le]=!0}G.prevProp=q,G.prevResolvedValues=qe,G.isActive&&(C={...C,...qe}),r&&t.blockInitialAnimation&&(ae=!1),ae&&(!(ye&&x)||ce)&&p.push(...Be.map(Le=>({animation:Le,options:{type:_}})))}if(S.size){const B={};S.forEach(_=>{const G=t.getBaseTarget(_),q=t.getValue(_);q&&(q.liveStyle=!0),B[_]=G??null}),p.push({animation:B})}let I=!!p.length;return r&&(d.initial===!1||d.initial===d.animate)&&!t.manuallyAnimateOnMount&&(I=!1),r=!1,I?e(p):Promise.resolve()}function u(c,d){var y;if(n[c].isActive===d)return Promise.resolve();(y=t.variantChildren)===null||y===void 0||y.forEach(S=>{var C;return(C=S.animationState)===null||C===void 0?void 0:C.setActive(c,d)}),n[c].isActive=d;const p=a(c);for(const S in n)n[S].protectedKeys={};return p}return{animateChanges:a,setActive:u,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Hw(),r=!0}}}function Jj(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!pC(e,t):!1}function gc(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Hw(){return{animate:gc(!0),whileInView:gc(),whileHover:gc(),whileTap:gc(),whileDrag:gc(),whileFocus:gc(),exit:gc()}}let Au=class{constructor(e){this.isMounted=!1,this.node=e}update(){}},Qj=class extends Au{constructor(e){super(e),e.animationState||(e.animationState=Zj(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Ap(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)}},eB=0,tB=class extends Au{constructor(){super(...arguments),this.id=eB++}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 nB={animation:{Feature:Qj},exit:{Feature:tB}};function Bd(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}function Zd(t){return{point:{x:t.pageX,y:t.pageY}}}const rB=t=>e=>py(e)&&t(e,Zd(e));function xd(t,e,n,r){return Bd(t,e,rB(n),r)}const Uw=(t,e)=>Math.abs(t-e);function iB(t,e){const n=Uw(t.x,e.x),r=Uw(t.y,e.y);return Math.sqrt(n**2+r**2)}let nE=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 p=zg(this.lastMoveEventInfo,this.history),S=this.startEvent!==null,C=iB(p.offset,{x:0,y:0})>=3;if(!S&&!C)return;const{point:A}=p,{timestamp:I}=Ti;this.history.push({...A,timestamp:I});const{onStart:B,onMove:_}=this.handlers;S||(B&&B(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),_&&_(this.lastMoveEvent,p)},this.handlePointerMove=(p,S)=>{this.lastMoveEvent=p,this.lastMoveEventInfo=Wg(S,this.transformPagePoint),Hn.update(this.updatePoint,!0)},this.handlePointerUp=(p,S)=>{this.end();const{onEnd:C,onSessionEnd:A,resumeAnimation:I}=this.handlers;if(this.dragSnapToOrigin&&I&&I(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const B=zg(p.type==="pointercancel"?this.lastMoveEventInfo:Wg(S,this.transformPagePoint),this.history);this.startEvent&&C&&C(p,B),A&&A(p,B)},!py(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=Zd(e),u=Wg(a,this.transformPagePoint),{point:c}=u,{timestamp:d}=Ti;this.history=[{...c,timestamp:d}];const{onSessionStart:y}=n;y&&y(e,zg(u,this.history)),this.removeListeners=Kd(xd(this.contextWindow,"pointermove",this.handlePointerMove),xd(this.contextWindow,"pointerup",this.handlePointerUp),xd(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),ku(this.updatePoint)}};function Wg(t,e){return e?{point:e(t.point)}:t}function Ww(t,e){return{x:t.x-e.x,y:t.y-e.y}}function zg({point:t},e){return{point:t,delta:Ww(t,rE(e)),offset:Ww(t,oB(e)),velocity:sB(e,.1)}}function oB(t){return t[0]}function rE(t){return t[t.length-1]}function sB(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const i=rE(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>$a(e)));)n--;if(!r)return{x:0,y:0};const o=_l(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 iE=1e-4,aB=1-iE,lB=1+iE,oE=.01,uB=0-oE,cB=0+oE;function rs(t){return t.max-t.min}function fB(t,e,n){return Math.abs(t-e)<=n}function zw(t,e,n,r=.5){t.origin=r,t.originPoint=nr(e.min,e.max,t.origin),t.scale=rs(n)/rs(e),t.translate=nr(n.min,n.max,t.origin)-t.originPoint,(t.scale>=aB&&t.scale<=lB||isNaN(t.scale))&&(t.scale=1),(t.translate>=uB&&t.translate<=cB||isNaN(t.translate))&&(t.translate=0)}function Sd(t,e,n,r){zw(t.x,e.x,n.x,r?r.originX:void 0),zw(t.y,e.y,n.y,r?r.originY:void 0)}function Yw(t,e,n){t.min=n.min+e.min,t.max=t.min+rs(e)}function dB(t,e,n){Yw(t.x,e.x,n.x),Yw(t.y,e.y,n.y)}function Gw(t,e,n){t.min=e.min-n.min,t.max=t.min+rs(e)}function Td(t,e,n){Gw(t.x,e.x,n.x),Gw(t.y,e.y,n.y)}function hB(t,{min:e,max:n},r){return e!==void 0&&t<e?t=r?nr(e,t,r.min):Math.max(t,e):n!==void 0&&t>n&&(t=r?nr(n,t,r.max):Math.min(t,n)),t}function qw(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 pB(t,{top:e,left:n,bottom:r,right:i}){return{x:qw(t.x,n,i),y:qw(t.y,e,r)}}function Xw(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 gB(t,e){return{x:Xw(t.x,e.x),y:Xw(t.y,e.y)}}function mB(t,e){let n=.5;const r=rs(t),i=rs(e);return i>r?n=Af(e.min,e.max-r,t.min):r>i&&(n=Af(t.min,t.max-i,e.min)),Ml(0,1,n)}function vB(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 ev=.35;function yB(t=ev){return t===!1?t=0:t===!0&&(t=ev),{x:Kw(t,"left","right"),y:Kw(t,"top","bottom")}}function Kw(t,e,n){return{min:Zw(t,e),max:Zw(t,n)}}function Zw(t,e){return typeof t=="number"?t:t[e]||0}const Jw=()=>({translate:0,scale:1,origin:0,originPoint:0}),Tf=()=>({x:Jw(),y:Jw()}),Qw=()=>({min:0,max:0}),vr=()=>({x:Qw(),y:Qw()});function Os(t){return[t("x"),t("y")]}function sE({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function bB({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function wB(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 Yg(t){return t===void 0||t===1}function tv({scale:t,scaleX:e,scaleY:n}){return!Yg(t)||!Yg(e)||!Yg(n)}function bc(t){return tv(t)||aE(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function aE(t){return ex(t.x)||ex(t.y)}function ex(t){return t&&t!=="0%"}function fp(t,e,n){const r=t-n,i=e*r;return n+i}function tx(t,e,n,r,i){return i!==void 0&&(t=fp(t,i,r)),fp(t,n,r)+e}function nv(t,e=0,n=1,r,i){t.min=tx(t.min,e,n,r,i),t.max=tx(t.max,e,n,r,i)}function lE(t,{x:e,y:n}){nv(t.x,e.translate,e.scale,e.originPoint),nv(t.y,n.translate,n.scale,n.originPoint)}const nx=.999999999999,rx=1.0000000000001;function xB(t,e,n,r=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,a;for(let u=0;u<i;u++){o=n[u],a=o.projectionDelta;const{visualElement:c}=o.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Ef(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(e.x*=a.x.scale,e.y*=a.y.scale,lE(t,a)),r&&bc(o.latestValues)&&Ef(t,o.latestValues))}e.x<rx&&e.x>nx&&(e.x=1),e.y<rx&&e.y>nx&&(e.y=1)}function Cf(t,e){t.min=t.min+e,t.max=t.max+e}function ix(t,e,n,r,i=.5){const o=nr(t.min,t.max,i);nv(t,e,n,o,r)}function Ef(t,e){ix(t.x,e.x,e.scaleX,e.scale,e.originX),ix(t.y,e.y,e.scaleY,e.scale,e.originY)}function uE(t,e){return sE(wB(t.getBoundingClientRect(),e))}function SB(t,e,n){const r=uE(t,n),{scroll:i}=e;return i&&(Cf(r.x,i.offset.x),Cf(r.y,i.offset.y)),r}const cE=({current:t})=>t?t.ownerDocument.defaultView:null,TB=new WeakMap;let CB=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=vr(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=y=>{const{dragSnapToOrigin:p}=this.getProps();p?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Zd(y).point)},o=(y,p)=>{const{drag:S,dragPropagation:C,onDragStart:A}=this.getProps();if(S&&!C&&(this.openDragLock&&this.openDragLock(),this.openDragLock=mN(S),!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),Os(B=>{let _=this.getAxisMotionValue(B).get()||0;if(Va.test(_)){const{projection:G}=this.visualElement;if(G&&G.layout){const q=G.layout.layoutBox[B];q&&(_=rs(q)*(parseFloat(_)/100))}}this.originPoint[B]=_}),A&&Hn.postRender(()=>A(y,p)),Ym(this.visualElement,"transform");const{animationState:I}=this.visualElement;I&&I.setActive("whileDrag",!0)},a=(y,p)=>{const{dragPropagation:S,dragDirectionLock:C,onDirectionLock:A,onDrag:I}=this.getProps();if(!S&&!this.openDragLock)return;const{offset:B}=p;if(C&&this.currentDirection===null){this.currentDirection=EB(B),this.currentDirection!==null&&A&&A(this.currentDirection);return}this.updateAxis("x",p.point,B),this.updateAxis("y",p.point,B),this.visualElement.render(),I&&I(y,p)},u=(y,p)=>this.stop(y,p),c=()=>Os(y=>{var p;return this.getAnimationState(y)==="paused"&&((p=this.getAxisMotionValue(y).animation)===null||p===void 0?void 0:p.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new nE(e,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:u,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:cE(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&&Hn.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||!Dh(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let a=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(a=hB(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&&xf(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=pB(i.layoutBox,n):this.constraints=!1,this.elastic=yB(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Os(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=vB(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!xf(e))return!1;const r=e.current;Eu(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=SB(r,i.root,this.visualElement.getTransformPagePoint());let a=gB(i.layout.layoutBox,o);if(n){const u=n(bB(a));this.hasMutatedConstraints=!!u,u&&(a=sE(u))}return a}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:u}=this.getProps(),c=this.constraints||{},d=Os(y=>{if(!Dh(y,n,this.currentDirection))return;let p=c&&c[y]||{};a&&(p={min:0,max:0});const S=i?200:1e6,C=i?40:1e7,A={type:"inertia",velocity:r?e[y]:0,bounceStiffness:S,bounceDamping:C,timeConstant:750,restDelta:1,restSpeed:10,...o,...p};return this.startAxisValueAnimation(y,A)});return Promise.all(d).then(u)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return Ym(this.visualElement,e),r.start(ky(e,r,0,n,this.visualElement,!1))}stopAnimation(){Os(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Os(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){Os(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:u}=i.layout.layoutBox[n];o.set(e[n]-nr(a,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!xf(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Os(a=>{const u=this.getAxisMotionValue(a);if(u&&this.constraints!==!1){const c=u.get();i[a]=mB({min:c,max:c},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(),Os(a=>{if(!Dh(a,e,null))return;const u=this.getAxisMotionValue(a),{min:c,max:d}=this.constraints[a];u.set(nr(c,d,i[a]))})}addListeners(){if(!this.visualElement.current)return;TB.set(this.visualElement,this);const e=this.visualElement.current,n=xd(e,"pointerdown",c=>{const{drag:d,dragListener:y=!0}=this.getProps();d&&y&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();xf(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Hn.read(r);const a=Bd(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&(Os(y=>{const p=this.getAxisMotionValue(y);p&&(this.originPoint[y]+=c[y].translate,p.set(p.get()+c[y].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),u&&u()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=ev,dragMomentum:u=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:u}}};function Dh(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function EB(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}let kB=class extends Au{constructor(e){super(e),this.removeGroupControls=_o,this.removeListeners=_o,this.controls=new CB(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 ox=t=>(e,n)=>{t&&Hn.postRender(()=>t(e,n))};let DB=class extends Au{constructor(){super(...arguments),this.removePointerDownListener=_o}onPointerDown(e){this.session=new nE(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:cE(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:ox(e),onStart:ox(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&Hn.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=xd(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 Hh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function sx(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const ad={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(Ft.test(t))t=parseFloat(t);else return t;const n=sx(t,e.target.x),r=sx(t,e.target.y);return`${n}% ${r}%`}},PB={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,i=Du.parse(t);if(i.length>5)return r;const o=Du.createTransformer(t),a=typeof i[0]!="number"?1:0,u=n.x.scale*e.x,c=n.y.scale*e.y;i[0+a]/=u,i[1+a]/=c;const d=nr(u,c,.5);return typeof i[2+a]=="number"&&(i[2+a]/=d),typeof i[3+a]=="number"&&(i[3+a]/=d),o(i)}};let OB=class extends Z.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=e;XF(_B),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()})),Hh.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()||Hn.postRender(()=>{const u=a.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),ty.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 fE(t){const[e,n]=cF(),r=Z.useContext(qT);return $e.jsx(OB,{...t,layoutGroup:r,switchLayoutGroup:Z.useContext(tC),isPresent:e,safeToRemove:n})}const _B={borderRadius:{...ad,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ad,borderTopRightRadius:ad,borderBottomLeftRadius:ad,borderBottomRightRadius:ad,boxShadow:PB};function RB(t,e,n){const r=$i(t)?t:Nd(t);return r.start(ky("",r,e,n)),r.animation}function AB(t){return t instanceof SVGElement&&t.tagName!=="svg"}const IB=(t,e)=>t.depth-e.depth;let MB=class{constructor(){this.children=[],this.isDirty=!1}add(e){gy(this.children,e),this.isDirty=!0}remove(e){my(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(IB),this.isDirty=!1,this.children.forEach(e)}};function LB(t,e){const n=Ha.now(),r=({timestamp:i})=>{const o=i-n;o>=e&&(ku(r),t(o-e))};return Hn.read(r,!0),()=>ku(r)}const dE=["TopLeft","TopRight","BottomLeft","BottomRight"],FB=dE.length,ax=t=>typeof t=="string"?parseFloat(t):t,lx=t=>typeof t=="number"||Ft.test(t);function NB(t,e,n,r,i,o){i?(t.opacity=nr(0,n.opacity!==void 0?n.opacity:1,jB(r)),t.opacityExit=nr(e.opacity!==void 0?e.opacity:1,0,BB(r))):o&&(t.opacity=nr(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<FB;a++){const u=`border${dE[a]}Radius`;let c=ux(e,u),d=ux(n,u);if(c===void 0&&d===void 0)continue;c||(c=0),d||(d=0),c===0||d===0||lx(c)===lx(d)?(t[u]=Math.max(nr(ax(c),ax(d),r),0),(Va.test(d)||Va.test(c))&&(t[u]+="%")):t[u]=d}(e.rotate||n.rotate)&&(t.rotate=nr(e.rotate||0,n.rotate||0,r))}function ux(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const jB=hE(0,.5,RC),BB=hE(.5,.95,_o);function hE(t,e,n){return r=>r<t?0:r>e?1:n(Af(t,e,r))}function cx(t,e){t.min=e.min,t.max=e.max}function Es(t,e){cx(t.x,e.x),cx(t.y,e.y)}function fx(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function dx(t,e,n,r,i){return t-=e,t=fp(t,1/n,r),i!==void 0&&(t=fp(t,1/i,r)),t}function $B(t,e=0,n=1,r=.5,i,o=t,a=t){if(Va.test(e)&&(e=parseFloat(e),e=nr(a.min,a.max,e/100)-a.min),typeof e!="number")return;let u=nr(o.min,o.max,r);t===o&&(u-=e),t.min=dx(t.min,e,n,u,i),t.max=dx(t.max,e,n,u,i)}function hx(t,e,[n,r,i],o,a){$B(t,e[n],e[r],e[i],e.scale,o,a)}const VB=["x","scaleX","originX"],HB=["y","scaleY","originY"];function px(t,e,n,r){hx(t.x,e,VB,n?n.x:void 0,r?r.x:void 0),hx(t.y,e,HB,n?n.y:void 0,r?r.y:void 0)}function gx(t){return t.translate===0&&t.scale===1}function pE(t){return gx(t.x)&&gx(t.y)}function mx(t,e){return t.min===e.min&&t.max===e.max}function UB(t,e){return mx(t.x,e.x)&&mx(t.y,e.y)}function vx(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function gE(t,e){return vx(t.x,e.x)&&vx(t.y,e.y)}function yx(t){return rs(t.x)/rs(t.y)}function bx(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}let WB=class{constructor(){this.members=[]}add(e){gy(this.members,e),e.scheduleRender()}remove(e){if(my(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 zB(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:d,rotate:y,rotateX:p,rotateY:S,skewX:C,skewY:A}=n;d&&(r=`perspective(${d}px) ${r}`),y&&(r+=`rotate(${y}deg) `),p&&(r+=`rotateX(${p}deg) `),S&&(r+=`rotateY(${S}deg) `),C&&(r+=`skewX(${C}deg) `),A&&(r+=`skewY(${A}deg) `)}const u=t.x.scale*e.x,c=t.y.scale*e.y;return(u!==1||c!==1)&&(r+=`scale(${u}, ${c})`),r||"none"}const wc={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},pd=typeof window<"u"&&window.MotionDebug!==void 0,Gg=["","X","Y","Z"],YB={visibility:"hidden"},wx=1e3;let GB=0;function qg(t,e,n,r){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),r&&(r[t]=0))}function mE(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=CC(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",Hn,!(i||o))}const{parent:r}=t;r&&!r.hasCheckedOptimisedAppear&&mE(r)}function vE({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},u=e==null?void 0:e()){this.id=GB++,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,pd&&(wc.totalNodes=wc.resolvedTargetDeltas=wc.recalculatedProjection=0),this.nodes.forEach(KB),this.nodes.forEach(t$),this.nodes.forEach(n$),this.nodes.forEach(ZB),pd&&window.MotionDebug.record(wc)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new MB)}addEventListener(a,u){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new vy),this.eventHandlers.get(a).add(u)}notifyListeners(a,...u){const c=this.eventHandlers.get(a);c&&c.notify(...u)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,u=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=AB(a),this.instance=a;const{layoutId:c,layout:d,visualElement:y}=this.options;if(y&&!y.current&&y.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),u&&(d||c)&&(this.isLayoutDirty=!0),t){let p;const S=()=>this.root.updateBlockedByResize=!1;t(a,()=>{this.root.updateBlockedByResize=!0,p&&p(),p=LB(S,250),Hh.hasAnimatedSinceResize&&(Hh.hasAnimatedSinceResize=!1,this.nodes.forEach(Sx))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&y&&(c||d)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:S,hasRelativeTargetChanged:C,layout:A})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const I=this.options.transition||y.getDefaultTransition()||a$,{onLayoutAnimationStart:B,onLayoutAnimationComplete:_}=y.getProps(),G=!this.targetLayout||!gE(this.targetLayout,A)||C,q=!S&&C;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||q||S&&(G||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(p,q);const se={...fy(I,"layout"),onPlay:B,onComplete:_};(y.shouldReduceMotion||this.options.layoutRoot)&&(se.delay=0,se.type=!1),this.startAnimation(se)}else S||Sx(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,ku(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(r$),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&&mE(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y<this.path.length;y++){const p=this.path[y];p.shouldResetTransform=!0,p.updateScroll("snapshot"),p.options.layoutRoot&&p.willUpdate(!1)}const{layoutId:u,layout:c}=this.options;if(u===void 0&&!c)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(xx);return}this.isUpdating||this.nodes.forEach(QB),this.isUpdating=!1,this.nodes.forEach(e$),this.nodes.forEach(qB),this.nodes.forEach(XB),this.clearAllSnapshots();const u=Ha.now();Ti.delta=Ml(0,1e3/60,u-Ti.timestamp),Ti.timestamp=u,Ti.isProcessing=!0,jg.update.process(Ti),jg.preRender.process(Ti),jg.render.process(Ti),Ti.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ty.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(JB),this.sharedNodes.forEach(i$)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Hn.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Hn.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 c=0;c<this.path.length;c++)this.path[c].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=vr(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:u}=this.options;u&&u.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let u=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(u=!1),u){const c=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,u=this.projectionDelta&&!pE(this.projectionDelta),c=this.getTransformTemplate(),d=c?c(this.latestValues,""):void 0,y=d!==this.prevTransformTemplateValue;a&&(u||bc(this.latestValues)||y)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const u=this.measurePageBox();let c=this.removeElementScroll(u);return a&&(c=this.removeTransform(c)),l$(c),{animationId:this.root.animationId,measuredBox:u,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:u}=this.options;if(!u)return vr();const c=u.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(u$))){const{scroll:y}=this.root;y&&(Cf(c.x,y.offset.x),Cf(c.y,y.offset.y))}return c}removeElementScroll(a){var u;const c=vr();if(Es(c,a),!((u=this.scroll)===null||u===void 0)&&u.wasRoot)return c;for(let d=0;d<this.path.length;d++){const y=this.path[d],{scroll:p,options:S}=y;y!==this.root&&p&&S.layoutScroll&&(p.wasRoot&&Es(c,a),Cf(c.x,p.offset.x),Cf(c.y,p.offset.y))}return c}applyTransform(a,u=!1){const c=vr();Es(c,a);for(let d=0;d<this.path.length;d++){const y=this.path[d];!u&&y.options.layoutScroll&&y.scroll&&y!==y.root&&Ef(c,{x:-y.scroll.offset.x,y:-y.scroll.offset.y}),bc(y.latestValues)&&Ef(c,y.latestValues)}return bc(this.latestValues)&&Ef(c,this.latestValues),c}removeTransform(a){const u=vr();Es(u,a);for(let c=0;c<this.path.length;c++){const d=this.path[c];if(!d.instance||!bc(d.latestValues))continue;tv(d.latestValues)&&d.updateSnapshot();const y=vr(),p=d.measurePageBox();Es(y,p),px(u,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,y)}return bc(this.latestValues)&&px(u,this.latestValues),u}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!==Ti.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var u;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==c;if(!(a||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((u=this.parent)===null||u===void 0)&&u.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:p,layoutId:S}=this.options;if(!(!this.layout||!(p||S))){if(this.resolvedRelativeTargetAt=Ti.timestamp,!this.targetDelta&&!this.relativeTarget){const C=this.getClosestProjectingParent();C&&C.layout&&this.animationProgress!==1?(this.relativeParent=C,this.forceRelativeParentToResolveTarget(),this.relativeTarget=vr(),this.relativeTargetOrigin=vr(),Td(this.relativeTargetOrigin,this.layout.layoutBox,C.layout.layoutBox),Es(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=vr(),this.targetWithTransforms=vr()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),dB(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Es(this.target,this.layout.layoutBox),lE(this.target,this.targetDelta)):Es(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const C=this.getClosestProjectingParent();C&&!!C.resumingFrom==!!this.resumingFrom&&!C.options.layoutScroll&&C.target&&this.animationProgress!==1?(this.relativeParent=C,this.forceRelativeParentToResolveTarget(),this.relativeTarget=vr(),this.relativeTargetOrigin=vr(),Td(this.relativeTargetOrigin,this.target,C.target),Es(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}pd&&wc.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||tv(this.parent.latestValues)||aE(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 u=this.getLead(),c=!!this.resumingFrom||this!==u;let d=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(d=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===Ti.timestamp&&(d=!1),d)return;const{layout:y,layoutId:p}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(y||p))return;Es(this.layoutCorrected,this.layout.layoutBox);const S=this.treeScale.x,C=this.treeScale.y;xB(this.layoutCorrected,this.treeScale,this.path,c),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox,u.targetWithTransforms=vr());const{target:A}=u;if(!A){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(fx(this.prevProjectionDelta.x,this.projectionDelta.x),fx(this.prevProjectionDelta.y,this.projectionDelta.y)),Sd(this.projectionDelta,this.layoutCorrected,A,this.latestValues),(this.treeScale.x!==S||this.treeScale.y!==C||!bx(this.projectionDelta.x,this.prevProjectionDelta.x)||!bx(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",A)),pd&&wc.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var u;if((u=this.options.visualElement)===null||u===void 0||u.scheduleRender(),a){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Tf(),this.projectionDelta=Tf(),this.projectionDeltaWithTransform=Tf()}setAnimationOrigin(a,u=!1){const c=this.snapshot,d=c?c.latestValues:{},y={...this.latestValues},p=Tf();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const S=vr(),C=c?c.source:void 0,A=this.layout?this.layout.source:void 0,I=C!==A,B=this.getStack(),_=!B||B.members.length<=1,G=!!(I&&!_&&this.options.crossfade===!0&&!this.path.some(s$));this.animationProgress=0;let q;this.mixTargetDelta=se=>{const Q=se/1e3;Tx(p.x,a.x,Q),Tx(p.y,a.y,Q),this.setTargetDelta(p),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Td(S,this.layout.layoutBox,this.relativeParent.layout.layoutBox),o$(this.relativeTarget,this.relativeTargetOrigin,S,Q),q&&UB(this.relativeTarget,q)&&(this.isProjectionDirty=!1),q||(q=vr()),Es(q,this.relativeTarget)),I&&(this.animationValues=y,NB(y,d,this.latestValues,Q,G,_)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=Q},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(ku(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Hn.update(()=>{Hh.hasAnimatedSinceResize=!0,this.currentAnimation=RB(0,wx,{...a,onUpdate:u=>{this.mixTargetDelta(u),a.onUpdate&&a.onUpdate(u)},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(wx),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:u,target:c,layout:d,latestValues:y}=a;if(!(!u||!c||!d)){if(this!==a&&this.layout&&d&&yE(this.options.animationType,this.layout.layoutBox,d.layoutBox)){c=this.target||vr();const p=rs(this.layout.layoutBox.x);c.x.min=a.target.x.min,c.x.max=c.x.min+p;const S=rs(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+S}Es(u,c),Ef(u,y),Sd(this.projectionDeltaWithTransform,this.layoutCorrected,u,y)}}registerSharedNode(a,u){this.sharedNodes.has(a)||this.sharedNodes.set(a,new WB),this.sharedNodes.get(a).add(u);const d=u.options.initialPromotionConfig;u.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(u):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:u}=this.options;return u?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:u}=this.options;return u?(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:u,preserveFollowOpacity:c}={}){const d=this.getStack();d&&d.promote(this,c),a&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let u=!1;const{latestValues:c}=a;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(u=!0),!u)return;const d={};c.z&&qg("z",a,d,this.animationValues);for(let y=0;y<Gg.length;y++)qg(`rotate${Gg[y]}`,a,d,this.animationValues),qg(`skew${Gg[y]}`,a,d,this.animationValues);a.render();for(const y in d)a.setStaticValue(y,d[y]),this.animationValues&&(this.animationValues[y]=d[y]);a.scheduleRender()}getProjectionStyles(a){var u,c;if(!this.instance||this.isSVG)return;if(!this.isVisible)return YB;const d={visibility:""},y=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=$h(a==null?void 0:a.pointerEvents)||"",d.transform=y?y(this.latestValues,""):"none",d;const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){const I={};return this.options.layoutId&&(I.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,I.pointerEvents=$h(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!bc(this.latestValues)&&(I.transform=y?y({},""):"none",this.hasProjected=!1),I}const S=p.animationValues||p.latestValues;this.applyTransformsToTarget(),d.transform=zB(this.projectionDeltaWithTransform,this.treeScale,S),y&&(d.transform=y(S,d.transform));const{x:C,y:A}=this.projectionDelta;d.transformOrigin=`${C.origin*100}% ${A.origin*100}% 0`,p.animationValues?d.opacity=p===this?(c=(u=S.opacity)!==null&&u!==void 0?u:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:S.opacityExit:d.opacity=p===this?S.opacity!==void 0?S.opacity:"":S.opacityExit!==void 0?S.opacityExit:0;for(const I in sp){if(S[I]===void 0)continue;const{correct:B,applyTo:_}=sp[I],G=d.transform==="none"?S[I]:B(S[I],p);if(_){const q=_.length;for(let se=0;se<q;se++)d[_[se]]=G}else d[I]=G}return this.options.layoutId&&(d.pointerEvents=p===this?$h(a==null?void 0:a.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var u;return(u=a.currentAnimation)===null||u===void 0?void 0:u.stop()}),this.root.nodes.forEach(xx),this.root.sharedNodes.clear()}}}function qB(t){t.updateLayout()}function XB(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"?Os(p=>{const S=a?n.measuredBox[p]:n.layoutBox[p],C=rs(S);S.min=r[p].min,S.max=S.min+C}):yE(o,n.layoutBox,r)&&Os(p=>{const S=a?n.measuredBox[p]:n.layoutBox[p],C=rs(r[p]);S.max=S.min+C,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[p].max=t.relativeTarget[p].min+C)});const u=Tf();Sd(u,r,n.layoutBox);const c=Tf();a?Sd(c,t.applyTransform(i,!0),n.measuredBox):Sd(c,r,n.layoutBox);const d=!pE(u);let y=!1;if(!t.resumeFrom){const p=t.getClosestProjectingParent();if(p&&!p.resumeFrom){const{snapshot:S,layout:C}=p;if(S&&C){const A=vr();Td(A,n.layoutBox,S.layoutBox);const I=vr();Td(I,r,C.layoutBox),gE(A,I)||(y=!0),p.options.layoutRoot&&(t.relativeTarget=I,t.relativeTargetOrigin=A,t.relativeParent=p)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:c,layoutDelta:u,hasLayoutChanged:d,hasRelativeTargetChanged:y})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function KB(t){pd&&wc.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 ZB(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function JB(t){t.clearSnapshot()}function xx(t){t.clearMeasurements()}function QB(t){t.isLayoutDirty=!1}function e$(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Sx(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function t$(t){t.resolveTargetDelta()}function n$(t){t.calcProjection()}function r$(t){t.resetSkewAndRotation()}function i$(t){t.removeLeadSnapshot()}function Tx(t,e,n){t.translate=nr(e.translate,0,n),t.scale=nr(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Cx(t,e,n,r){t.min=nr(e.min,n.min,r),t.max=nr(e.max,n.max,r)}function o$(t,e,n,r){Cx(t.x,e.x,n.x,r),Cx(t.y,e.y,n.y,r)}function s$(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const a$={duration:.45,ease:[.4,0,.1,1]},Ex=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),kx=Ex("applewebkit/")&&!Ex("chrome/")?Math.round:_o;function Dx(t){t.min=kx(t.min),t.max=kx(t.max)}function l$(t){Dx(t.x),Dx(t.y)}function yE(t,e,n){return t==="position"||t==="preserve-aspect"&&!fB(yx(e),yx(n),.2)}function u$(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const c$=vE({attachResizeListener:(t,e)=>Bd(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Xg={current:void 0},bE=vE({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Xg.current){const t=new c$({});t.mount(window),t.setOptions({layoutScroll:!0}),Xg.current=t}return Xg.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),f$={pan:{Feature:DB},drag:{Feature:kB,ProjectionNode:bE,MeasureLayout:fE}};function Px(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&&Hn.postRender(()=>o(e,Zd(e)))}let d$=class extends Au{mount(){const{current:e}=this.node;e&&(this.unmount=fN(e,n=>(Px(this.node,n,"Start"),r=>Px(this.node,r,"End"))))}unmount(){}},h$=class extends Au{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=Kd(Bd(this.node.current,"focus",()=>this.onFocus()),Bd(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function Ox(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&&Hn.postRender(()=>o(e,Zd(e)))}let p$=class extends Au{mount(){const{current:e}=this.node;e&&(this.unmount=gN(e,n=>(Ox(this.node,n,"Start"),(r,{success:i})=>Ox(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const rv=new WeakMap,Kg=new WeakMap,g$=t=>{const e=rv.get(t.target);e&&e(t)},m$=t=>{t.forEach(g$)};function v$({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(m$,{root:t,...e})),r[i]}function y$(t,e,n){const r=v$(e);return rv.set(t,n),r.observe(t),()=>{rv.delete(t),r.unobserve(t)}}const b$={some:0,all:1};let w$=class extends Au{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:b$[i]},u=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:y,onViewportLeave:p}=this.node.getProps(),S=d?y:p;S&&S(c)};return y$(this.node.current,a,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(x$(e,n))&&this.startObserver()}unmount(){}};function x$({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const S$={inView:{Feature:w$},tap:{Feature:p$},focus:{Feature:h$},hover:{Feature:d$}},T$={layout:{ProjectionNode:bE,MeasureLayout:fE}},iv={current:null},wE={current:!1};function C$(){if(wE.current=!0,!!Kv)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>iv.current=t.matches;t.addListener(e),e()}else iv.current=!1}const E$=[...zC,Bi,Du],k$=t=>E$.find(WC(t)),_x=new WeakMap;function D$(t,e,n){for(const r in e){const i=e[r],o=n[r];if($i(i))t.addValue(r,i),process.env.NODE_ENV==="development"&&_p(i.version==="11.18.2",`Attempting to mix Motion versions ${i.version} with 11.18.2 may not work as expected.`);else if($i(o))t.addValue(r,Nd(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,Nd(a!==void 0?a:i,{owner:t}))}}for(const r in n)e[r]===void 0&&t.removeValue(r);return e}const Rx=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let P$=class{scrapeMotionValuesFromProps(e,n,r){return{}}constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ty,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 C=Ha.now();this.renderScheduledAt<C&&(this.renderScheduledAt=C,Hn.render(this.render,!1,!0))};const{latestValues:c,renderState:d,onUpdate:y}=a;this.onUpdate=y,this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=d,this.parent=e,this.props=n,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=u,this.blockInitialAnimation=!!o,this.isControllingVariants=Ip(n),this.isVariantNode=QT(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:p,...S}=this.scrapeMotionValuesFromProps(n,{},this);for(const C in S){const A=S[C];c[C]!==void 0&&$i(A)&&A.set(c[C],!1)}}mount(e){this.current=e,_x.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)),wE.current||C$(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:iv.current,process.env.NODE_ENV!=="production"&&_p(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(){_x.delete(this.current),this.projection&&this.projection.unmount(),ku(this.notifyUpdate),ku(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const r=$c.has(e),i=n.on("change",u=>{this.latestValues[e]=u,this.props.onUpdate&&Hn.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 If){const n=If[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):vr()}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<Rx.length;r++){const i=Rx[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=D$(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=Nd(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"&&(HC(i)||IC(i))?i=parseFloat(i):!k$(i)&&Du.test(n)&&(i=BC(e,n)),this.setBaseTarget(e,$i(i)?i.get():i)),$i(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=ry(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&&!$i(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 vy),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}},xE=class extends P${constructor(){super(...arguments),this.KeyframeResolver=YC}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;$i(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function O$(t){return window.getComputedStyle(t)}let _$=class extends xE{constructor(){super(...arguments),this.type="html",this.renderInstance=lC}readValueFromInstance(e,n){if($c.has(n)){const r=Sy(n);return r&&r.default||0}else{const r=O$(e),i=(oC(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return uE(e,n)}build(e,n,r){sy(e,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,n,r){return cy(e,n,r)}},R$=class extends xE{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=vr}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if($c.has(n)){const r=Sy(n);return r&&r.default||0}return n=uC.has(n)?n:ey(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,r){return dC(e,n,r)}build(e,n,r){ay(e,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,n,r,i){cC(e,n,r,i)}mount(e){this.isSVGTag=uy(e.tagName),super.mount(e)}};const A$=(t,e)=>ny(t)?new R$(e):new _$(e,{allowProjection:t!==Z.Fragment}),I$=iN({...nB,...S$,...f$,...T$},A$),M$=bF(I$);function Ax(t,e){let n;return(...r)=>{window.clearTimeout(n),n=window.setTimeout(()=>t(...r),e)}}function L$({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]=Z.useState({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),u=Z.useRef({element:null,scrollContainers:null,resizeObserver:null,lastBounds:o,orientationHandler:null}),c=t?typeof t=="number"?t:t.scroll:null,d=t?typeof t=="number"?t:t.resize:null,y=Z.useRef(!1);Z.useEffect(()=>(y.current=!0,()=>void(y.current=!1)));const[p,S,C]=Z.useMemo(()=>{const _=()=>{if(!u.current.element)return;const{left:G,top:q,width:se,height:Q,bottom:ye,right:x,x:ae,y:ce}=u.current.element.getBoundingClientRect(),Be={left:G,top:q,width:se,height:Q,bottom:ye,right:x,x:ae,y:ce};u.current.element instanceof HTMLElement&&r&&(Be.height=u.current.element.offsetHeight,Be.width=u.current.element.offsetWidth),Object.freeze(Be),y.current&&!B$(u.current.lastBounds,Be)&&a(u.current.lastBounds=Be)};return[_,d?Ax(_,d):_,c?Ax(_,c):_]},[a,r,c,d]);function A(){u.current.scrollContainers&&(u.current.scrollContainers.forEach(_=>_.removeEventListener("scroll",C,!0)),u.current.scrollContainers=null),u.current.resizeObserver&&(u.current.resizeObserver.disconnect(),u.current.resizeObserver=null),u.current.orientationHandler&&("orientation"in screen&&"removeEventListener"in screen.orientation?screen.orientation.removeEventListener("change",u.current.orientationHandler):"onorientationchange"in window&&window.removeEventListener("orientationchange",u.current.orientationHandler))}function I(){u.current.element&&(u.current.resizeObserver=new i(C),u.current.resizeObserver.observe(u.current.element),e&&u.current.scrollContainers&&u.current.scrollContainers.forEach(_=>_.addEventListener("scroll",C,{capture:!0,passive:!0})),u.current.orientationHandler=()=>{C()},"orientation"in screen&&"addEventListener"in screen.orientation?screen.orientation.addEventListener("change",u.current.orientationHandler):"onorientationchange"in window&&window.addEventListener("orientationchange",u.current.orientationHandler))}const B=_=>{!_||_===u.current.element||(A(),u.current.element=_,u.current.scrollContainers=SE(_),I())};return N$(C,!!e),F$(S),Z.useEffect(()=>{A(),I()},[e,C,S]),Z.useEffect(()=>A,[]),[B,o,p]}function F$(t){Z.useEffect(()=>{const e=t;return window.addEventListener("resize",e),()=>void window.removeEventListener("resize",e)},[t])}function N$(t,e){Z.useEffect(()=>{if(e){const n=t;return window.addEventListener("scroll",n,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",n,!0)}},[t,e])}function SE(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,...SE(t.parentElement)]}const j$=["x","y","top","bottom","left","right","width","height"],B$=(t,e)=>j$.every(n=>t[n]===e[n]),TE=Z.createContext({dragDropManager:void 0});function ks(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 Ix=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Zg=function(){return Math.random().toString(36).substring(7).split("").join(".")},Mx={INIT:"@@redux/INIT"+Zg(),REPLACE:"@@redux/REPLACE"+Zg(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Zg()}};function $$(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 V$(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(W$(t))return"date";if(U$(t))return"error";var n=H$(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 H$(t){return typeof t.constructor=="function"?t.constructor.name:null}function U$(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function W$(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function mf(t){var e=typeof t;return process.env.NODE_ENV!=="production"&&(e=V$(t)),e}function CE(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"?ks(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"?ks(1):"Expected the enhancer to be a function. Instead, received: '"+mf(n)+"'");return n(CE)(t,e)}if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?ks(2):"Expected the root reducer to be a function. Instead, received: '"+mf(t)+"'");var i=t,o=e,a=[],u=a,c=!1;function d(){u===a&&(u=a.slice())}function y(){if(c)throw new Error(process.env.NODE_ENV==="production"?ks(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 p(I){if(typeof I!="function")throw new Error(process.env.NODE_ENV==="production"?ks(4):"Expected the listener to be a function. Instead, received: '"+mf(I)+"'");if(c)throw new Error(process.env.NODE_ENV==="production"?ks(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 B=!0;return d(),u.push(I),function(){if(B){if(c)throw new Error(process.env.NODE_ENV==="production"?ks(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.");B=!1,d();var G=u.indexOf(I);u.splice(G,1),a=null}}}function S(I){if(!$$(I))throw new Error(process.env.NODE_ENV==="production"?ks(7):"Actions must be plain objects. Instead, the actual type was: '"+mf(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"?ks(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(c)throw new Error(process.env.NODE_ENV==="production"?ks(9):"Reducers may not dispatch actions.");try{c=!0,o=i(o,I)}finally{c=!1}for(var B=a=u,_=0;_<B.length;_++){var G=B[_];G()}return I}function C(I){if(typeof I!="function")throw new Error(process.env.NODE_ENV==="production"?ks(10):"Expected the nextReducer to be a function. Instead, received: '"+mf(I));i=I,S({type:Mx.REPLACE})}function A(){var I,B=p;return I={subscribe:function(G){if(typeof G!="object"||G===null)throw new Error(process.env.NODE_ENV==="production"?ks(11):"Expected the observer to be an object. Instead, received: '"+mf(G)+"'");function q(){G.next&&G.next(y())}q();var se=B(q);return{unsubscribe:se}}},I[Ix]=function(){return this},I}return S({type:Mx.INIT}),r={dispatch:S,subscribe:p,getState:y,replaceReducer:C},r[Ix]=A,r}function Kt(t,e,...n){if(z$()&&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 z$(){return typeof process<"u"&&process.env.NODE_ENV==="production"}function Y$(t,e,n){return e.split(".").reduce((r,i)=>r&&r[i]?r[i]:n||null,t)}function G$(t,e){return t.filter(n=>n!==e)}function EE(t){return typeof t=="object"}function q$(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 X$(t,e){return t.filter(n=>e.indexOf(n)>-1)}const Dy="dnd-core/INIT_COORDS",Fp="dnd-core/BEGIN_DRAG",Py="dnd-core/PUBLISH_DRAG_SOURCE",Np="dnd-core/HOVER",jp="dnd-core/DROP",Bp="dnd-core/END_DRAG";function Lx(t,e){return{type:Dy,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}const K$={type:Dy,payload:{clientOffset:null,sourceClientOffset:null}};function Z$(t){return function(n=[],r={publishSource:!0}){const{publishSource:i=!0,clientOffset:o,getSourceClientOffset:a}=r,u=t.getMonitor(),c=t.getRegistry();t.dispatch(Lx(o)),J$(n,u,c);const d=tV(n,u);if(d==null){t.dispatch(K$);return}let y=null;if(o){if(!a)throw new Error("getSourceClientOffset must be defined");Q$(a),y=a(d)}t.dispatch(Lx(o,y));const S=c.getSource(d).beginDrag(u,d);if(S==null)return;eV(S),c.pinSource(d);const C=c.getSourceType(d);return{type:Fp,payload:{itemType:C,item:S,sourceId:d,clientOffset:o||null,sourceClientOffset:y||null,isSourcePublic:!!i}}}}function J$(t,e,n){Kt(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(r){Kt(n.getSource(r),"Expected sourceIds to be registered.")})}function Q$(t){Kt(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function eV(t){Kt(EE(t),"Item must be an object.")}function tV(t,e){let n=null;for(let r=t.length-1;r>=0;r--)if(e.canDragSource(t[r])){n=t[r];break}return n}function nV(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function rV(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){nV(t,i,n[i])})}return t}function iV(t){return function(n={}){const r=t.getMonitor(),i=t.getRegistry();oV(r),lV(r).forEach((a,u)=>{const c=sV(a,u,i,r),d={type:jp,payload:{dropResult:rV({},n,c)}};t.dispatch(d)})}}function oV(t){Kt(t.isDragging(),"Cannot call drop while not dragging."),Kt(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function sV(t,e,n,r){const i=n.getTarget(t);let o=i?i.drop(r,t):void 0;return aV(o),typeof o>"u"&&(o=e===0?{}:r.getDropResult()),o}function aV(t){Kt(typeof t>"u"||EE(t),"Drop result must either be an object or undefined.")}function lV(t){const e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function uV(t){return function(){const n=t.getMonitor(),r=t.getRegistry();cV(n);const i=n.getSourceId();return i!=null&&(r.getSource(i,!0).endDrag(n,i),r.unpinSource()),{type:Bp}}}function cV(t){Kt(t.isDragging(),"Cannot call endDrag while not dragging.")}function ov(t,e){return e===null?t===null:Array.isArray(t)?t.some(n=>n===e):t===e}function fV(t){return function(n,{clientOffset:r}={}){dV(n);const i=n.slice(0),o=t.getMonitor(),a=t.getRegistry(),u=o.getItemType();return pV(i,a,u),hV(i,o,a),gV(i,o,a),{type:Np,payload:{targetIds:i,clientOffset:r||null}}}}function dV(t){Kt(Array.isArray(t),"Expected targetIds to be an array.")}function hV(t,e,n){Kt(e.isDragging(),"Cannot call hover while not dragging."),Kt(!e.didDrop(),"Cannot call hover after drop.");for(let r=0;r<t.length;r++){const i=t[r];Kt(t.lastIndexOf(i)===r,"Expected targetIds to be unique in the passed array.");const o=n.getTarget(i);Kt(o,"Expected targetIds to be registered.")}}function pV(t,e,n){for(let r=t.length-1;r>=0;r--){const i=t[r],o=e.getTargetType(i);ov(o,n)||t.splice(r,1)}}function gV(t,e,n){t.forEach(function(r){n.getTarget(r).hover(e,r)})}function mV(t){return function(){if(t.getMonitor().isDragging())return{type:Py}}}function vV(t){return{beginDrag:Z$(t),publishDragSource:mV(t),hover:fV(t),drop:iV(t),endDrag:uV(t)}}class yV{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 u=o.apply(e,a);typeof u<"u"&&n(u)}}const i=vV(this);return Object.keys(i).reduce((o,a)=>{const u=i[a];return o[a]=r(u),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 bV(t,e){return{x:t.x+e.x,y:t.y+e.y}}function kE(t,e){return{x:t.x-e.x,y:t.y-e.y}}function wV(t){const{clientOffset:e,initialClientOffset:n,initialSourceClientOffset:r}=t;return!e||!n||!r?null:kE(bV(e,r),n)}function xV(t){const{clientOffset:e,initialClientOffset:n}=t;return!e||!n?null:kE(e,n)}const Cd=[],Oy=[];Cd.__IS_NONE__=!0;Oy.__IS_ALL__=!0;function SV(t,e){return t===Cd?!1:t===Oy||typeof e>"u"?!0:X$(e,t).length>0}class TV{subscribeToStateChange(e,n={}){const{handlerIds:r}=n;Kt(typeof e=="function","listener must be a function."),Kt(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(),u=a.stateId;try{u===i||u===i+1&&!SV(a.dirtyHandlerIds,r)||e()}finally{i=u}};return this.store.subscribe(o)}subscribeToOffsetChange(e){Kt(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 Kt(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(Kt(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 ov(r,i)&&n.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;const n=this.registry.getSource(e,!0);if(Kt(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&&!ov(i,o))return!1;const a=this.getTargetIds();if(!a.length)return!1;const u=a.indexOf(e);return r?u===a.length-1:u>-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 wV(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return xV(this.store.getState().dragOffset)}constructor(e,n){this.store=e,this.registry=n}}const Fx=typeof global<"u"?global:self,DE=Fx.MutationObserver||Fx.WebKitMutationObserver;function PE(t){return function(){const n=setTimeout(i,0),r=setInterval(i,50);function i(){clearTimeout(n),clearInterval(r),t()}}}function CV(t){let e=1;const n=new DE(t),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){e=-e,r.data=e}}const EV=typeof DE=="function"?CV:PE;class kV{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=EV(this.flush),this.requestErrorThrow=PE(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class DV{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 PV{create(e){const n=this.freeTasks,r=n.length?n.pop():new DV(this.onError,i=>n[n.length]=i);return r.task=e,r}constructor(e){this.onError=e,this.freeTasks=[]}}const OE=new kV,OV=new PV(OE.registerPendingError);function _V(t){OE.enqueueTask(OV.create(t))}const _y="dnd-core/ADD_SOURCE",Ry="dnd-core/ADD_TARGET",Ay="dnd-core/REMOVE_SOURCE",$p="dnd-core/REMOVE_TARGET";function RV(t){return{type:_y,payload:{sourceId:t}}}function AV(t){return{type:Ry,payload:{targetId:t}}}function IV(t){return{type:Ay,payload:{sourceId:t}}}function MV(t){return{type:$p,payload:{targetId:t}}}function LV(t){Kt(typeof t.canDrag=="function","Expected canDrag to be a function."),Kt(typeof t.beginDrag=="function","Expected beginDrag to be a function."),Kt(typeof t.endDrag=="function","Expected endDrag to be a function.")}function FV(t){Kt(typeof t.canDrop=="function","Expected canDrop to be a function."),Kt(typeof t.hover=="function","Expected hover to be a function."),Kt(typeof t.drop=="function","Expected beginDrag to be a function.")}function sv(t,e){if(e&&Array.isArray(t)){t.forEach(n=>sv(n,!1));return}Kt(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 Rs;(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(Rs||(Rs={}));let NV=0;function jV(){return NV++}function BV(t){const e=jV().toString();switch(t){case Rs.SOURCE:return`S${e}`;case Rs.TARGET:return`T${e}`;default:throw new Error(`Unknown Handler Role: ${t}`)}}function Nx(t){switch(t[0]){case"S":return Rs.SOURCE;case"T":return Rs.TARGET;default:throw new Error(`Cannot parse handler ID: ${t}`)}}function jx(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 $V{addSource(e,n){sv(e),LV(n);const r=this.addHandler(Rs.SOURCE,e,n);return this.store.dispatch(RV(r)),r}addTarget(e,n){sv(e,!0),FV(n);const r=this.addHandler(Rs.TARGET,e,n);return this.store.dispatch(AV(r)),r}containsHandler(e){return jx(this.dragSources,e)||jx(this.dropTargets,e)}getSource(e,n=!1){return Kt(this.isSourceId(e),"Expected a valid source ID."),n&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return Kt(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return Kt(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return Kt(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return Nx(e)===Rs.SOURCE}isTargetId(e){return Nx(e)===Rs.TARGET}removeSource(e){Kt(this.getSource(e),"Expected an existing source."),this.store.dispatch(IV(e)),_V(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){Kt(this.getTarget(e),"Expected an existing target."),this.store.dispatch(MV(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const n=this.getSource(e);Kt(n,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=n}unpinSource(){Kt(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,n,r){const i=BV(e);return this.types.set(i,n),e===Rs.SOURCE?this.dragSources.set(i,r):e===Rs.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 VV=(t,e)=>t===e;function HV(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function UV(t,e,n=VV){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 WV(t=Cd,e){switch(e.type){case Np:break;case _y:case Ry:case $p:case Ay:return Cd;case Fp:case Py:case Bp:case jp:default:return Oy}const{targetIds:n=[],prevTargetIds:r=[]}=e.payload,i=q$(n,r);if(!(i.length>0||!UV(n,r)))return Cd;const a=r[r.length-1],u=n[n.length-1];return a!==u&&(a&&i.push(a),u&&i.push(u)),i}function zV(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function YV(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){zV(t,i,n[i])})}return t}const Bx={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function GV(t=Bx,e){const{payload:n}=e;switch(e.type){case Dy:case Fp:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case Np:return HV(t.clientOffset,n.clientOffset)?t:YV({},t,{clientOffset:n.clientOffset});case Bp:case jp:return Bx;default:return t}}function qV(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function vf(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){qV(t,i,n[i])})}return t}const XV={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function KV(t=XV,e){const{payload:n}=e;switch(e.type){case Fp:return vf({},t,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case Py:return vf({},t,{isSourcePublic:!0});case Np:return vf({},t,{targetIds:n.targetIds});case $p:return t.targetIds.indexOf(n.targetId)===-1?t:vf({},t,{targetIds:G$(t.targetIds,n.targetId)});case jp:return vf({},t,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case Bp:return vf({},t,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function ZV(t=0,e){switch(e.type){case _y:case Ry:return t+1;case Ay:case $p:return t-1;default:return t}}function JV(t=0){return t+1}function QV(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function e3(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){QV(t,i,n[i])})}return t}function t3(t={},e){return{dirtyHandlerIds:WV(t.dirtyHandlerIds,{type:e.type,payload:e3({},e.payload,{prevTargetIds:Y$(t,"dragOperation.targetIds",[])})}),dragOffset:GV(t.dragOffset,e),refCount:ZV(t.refCount,e),dragOperation:KV(t.dragOperation,e),stateId:JV(t.stateId)}}function n3(t,e=void 0,n={},r=!1){const i=r3(r),o=new TV(i,new $V(i)),a=new yV(i,o),u=t(a,e,n);return a.receiveBackend(u),a}function r3(t){const e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return CE(t3,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}function i3(t,e){if(t==null)return{};var n=o3(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 o3(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 $x=0;const Uh=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var s3=Z.memo(function(e){var{children:n}=e,r=i3(e,["children"]);const[i,o]=a3(r);return Z.useEffect(()=>{if(o){const a=_E();return++$x,()=>{--$x===0&&(a[Uh]=null)}}},[]),$e.jsx(TE.Provider,{value:i,children:n})});function a3(t){if("manager"in t)return[{dragDropManager:t.manager},!1];const e=l3(t.backend,t.context,t.options,t.debugMode),n=!t.context;return[e,n]}function l3(t,e=_E(),n,r){const i=e;return i[Uh]||(i[Uh]={dragDropManager:n3(t,e,n,r)}),i[Uh]}function _E(){return typeof global<"u"?global:window}var u3=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(e)){if(r=e.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!t(e[i],n[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(o=Object.keys(e),r=o.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;i--!==0;){var a=o[i];if(!t(e[a],n[a]))return!1}return!0}return e!==e&&n!==n};const c3=Bc(u3),Mc=typeof window<"u"?Z.useLayoutEffect:Z.useEffect;function RE(t,e,n){const[r,i]=Z.useState(()=>e(t)),o=Z.useCallback(()=>{const a=e(t);c3(r,a)||(i(a),n&&n())},[r,t,n]);return Mc(o),[r,o]}function f3(t,e,n){const[r,i]=RE(t,e,n);return Mc(function(){const a=t.getHandlerId();if(a!=null)return t.subscribeToStateChange(i,{handlerIds:[a]})},[t,i]),r}function AE(t,e,n){return f3(e,t||(()=>({})),()=>n.reconnect())}function IE(t,e){const n=[...e||[]];return e==null&&typeof t!="function"&&n.push(t),Z.useMemo(()=>typeof t=="function"?t():t,n)}function d3(t){return Z.useMemo(()=>t.hooks.dragSource(),[t])}function h3(t){return Z.useMemo(()=>t.hooks.dragPreview(),[t])}let Jg=!1,Qg=!1;class p3{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){Kt(!Jg,"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 Jg=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Jg=!1}}isDragging(){if(!this.sourceId)return!1;Kt(!Qg,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Qg=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Qg=!1}}subscribeToStateChange(e,n){return this.internalMonitor.subscribeToStateChange(e,n)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,n){return this.internalMonitor.isOverTarget(e,n)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}let em=!1;class g3{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,n){return this.internalMonitor.subscribeToStateChange(e,n)}canDrop(){if(!this.targetId)return!1;Kt(!em,"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 em=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{em=!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 m3(t,e,n){const r=n.getRegistry(),i=r.addTarget(t,e);return[i,()=>r.removeTarget(i)]}function v3(t,e,n){const r=n.getRegistry(),i=r.addSource(t,e);return[i,()=>r.removeSource(i)]}function av(t,e,n,r){let i=n?n.call(r,t,e):void 0;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 u=Object.prototype.hasOwnProperty.bind(e);for(let c=0;c<o.length;c++){const d=o[c];if(!u(d))return!1;const y=t[d],p=e[d];if(i=n?n.call(r,y,p,d):void 0,i===!1||i===void 0&&y!==p)return!1}return!0}function lv(t){return t!==null&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function y3(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 b3(t){return(e=null,n=null)=>{if(!Z.isValidElement(e)){const o=e;return t(o,n),o}const r=e;return y3(r),w3(r,n?o=>t(o,n):t)}}function ME(t){const e={};return Object.keys(t).forEach(n=>{const r=t[n];if(n.endsWith("Ref"))e[n]=t[n];else{const i=b3(r);e[n]=()=>i}}),e}function Vx(t,e){typeof t=="function"?t(e):t.current=e}function w3(t,e){const n=t.ref;return Kt(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?Z.cloneElement(t,{ref:r=>{Vx(n,r),Vx(e,r)}}):Z.cloneElement(t,{ref:e})}class x3{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!av(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!av(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=ME({dragSource:(n,r)=>{this.clearDragSource(),this.dragSourceOptions=r||null,lv(n)?this.dragSourceRef=n:this.dragSourceNode=n,this.reconnectDragSource()},dragPreview:(n,r)=>{this.clearDragPreview(),this.dragPreviewOptions=r||null,lv(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 S3{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!av(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=ME({dropTarget:(n,r)=>{this.clearDropTarget(),this.dropTargetOptions=r,lv(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 Nl(){const{dragDropManager:t}=Z.useContext(TE);return Kt(t!=null,"Expected drag drop context"),t}function T3(t,e){const n=Nl(),r=Z.useMemo(()=>new x3(n.getBackend()),[n]);return Mc(()=>(r.dragSourceOptions=t||null,r.reconnect(),()=>r.disconnectDragSource()),[r,t]),Mc(()=>(r.dragPreviewOptions=e||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,e]),r}function C3(){const t=Nl();return Z.useMemo(()=>new p3(t),[t])}class E3{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 k3(t,e,n){const r=Z.useMemo(()=>new E3(t,e,n),[e,n]);return Z.useEffect(()=>{r.spec=t},[t]),r}function D3(t){return Z.useMemo(()=>{const e=t.type;return Kt(e!=null,"spec.type must be defined"),e},[t])}function P3(t,e,n){const r=Nl(),i=k3(t,e,n),o=D3(t);Mc(function(){if(o!=null){const[u,c]=v3(o,i,r);return e.receiveHandlerId(u),n.receiveHandlerId(u),c}},[r,e,n,i,o])}function O3(t,e){const n=IE(t,e);Kt(!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=C3(),i=T3(n.options,n.previewOptions);return P3(n,r,i),[AE(n.collect,r,i),d3(i),h3(i)]}function _3(t){const n=Nl().getMonitor(),[r,i]=RE(n,t);return Z.useEffect(()=>n.subscribeToOffsetChange(i)),Z.useEffect(()=>n.subscribeToStateChange(i)),r}function R3(t){return Z.useMemo(()=>t.hooks.dropTarget(),[t])}function A3(t){const e=Nl(),n=Z.useMemo(()=>new S3(e.getBackend()),[e]);return Mc(()=>(n.dropTargetOptions=t||null,n.reconnect(),()=>n.disconnectDropTarget()),[t]),n}function I3(){const t=Nl();return Z.useMemo(()=>new g3(t),[t])}function M3(t){const{accept:e}=t;return Z.useMemo(()=>(Kt(t.accept!=null,"accept must be defined"),Array.isArray(e)?e:[e]),[e])}class L3{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 F3(t,e){const n=Z.useMemo(()=>new L3(t,e),[e]);return Z.useEffect(()=>{n.spec=t},[t]),n}function N3(t,e,n){const r=Nl(),i=F3(t,e),o=M3(t);Mc(function(){const[u,c]=m3(o,i,r);return e.receiveHandlerId(u),n.receiveHandlerId(u),c},[r,e,i,n,o.map(a=>a.toString()).join("|")])}function LE(t,e){const n=IE(t,e),r=I3(),i=A3(n.options);return N3(n,r,i),[AE(n.collect,r,i),R3(i)]}var FE=t=>{throw TypeError(t)},NE=(t,e,n)=>e.has(t)||FE("Cannot "+n),Wt=(t,e,n)=>(NE(t,e,"read from private field"),n?n.call(t):e.get(t)),Ps=(t,e,n)=>e.has(t)?FE("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),xc=(t,e,n,r)=>(NE(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),pu,j3=class{constructor(){Ps(this,pu),this.register=t=>{Wt(this,pu).push(t)},this.unregister=t=>{for(;Wt(this,pu).indexOf(t)!==-1;)Wt(this,pu).splice(Wt(this,pu).indexOf(t),1)},this.backendChanged=t=>{for(let e of Wt(this,pu))e.backendChanged(t)},xc(this,pu,[])}};pu=new WeakMap;var Jo,gd,Qo,El,Sc,uv,cv,fv,Wh,zh,md,jE=class Yh{constructor(e,n,r){if(Ps(this,Jo),Ps(this,gd),Ps(this,Qo),Ps(this,El),Ps(this,Sc),Ps(this,uv,(i,o,a)=>{if(!a.backend)throw new Error(`You must specify a 'backend' property in your Backend entry: ${JSON.stringify(a)}`);let u=a.backend(i,o,a.options),c=a.id,d=!a.id&&u&&u.constructor;if(d&&(c=u.constructor.name),!c)throw new Error(`You must specify an 'id' property in your Backend entry: ${JSON.stringify(a)}
|
|
8
|
-
see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-5xx`);if(d&&console.warn(`Deprecation notice: You are using a pipeline which doesn't include backends' 'id'.
|
|
9
|
-
This might be unsupported in the future, please specify 'id' explicitely for every backend.`),Wt(this,Qo)[c])throw new Error(`You must specify a unique 'id' property in your Backend entry:
|
|
10
|
-
${JSON.stringify(a)} (conflicts with: ${JSON.stringify(Wt(this,Qo)[c])})`);return{id:c,instance:u,preview:a.preview??!1,transition:a.transition,skipDispatchOnTransition:a.skipDispatchOnTransition??!1}}),this.setup=()=>{if(!(typeof window>"u")){if(Yh.isSetUp)throw new Error("Cannot have two MultiBackends at the same time.");Yh.isSetUp=!0,Wt(this,cv).call(this,window),Wt(this,Qo)[Wt(this,Jo)].instance.setup()}},this.teardown=()=>{typeof window>"u"||(Yh.isSetUp=!1,Wt(this,fv).call(this,window),Wt(this,Qo)[Wt(this,Jo)].instance.teardown())},this.connectDragSource=(i,o,a)=>Wt(this,md).call(this,"connectDragSource",i,o,a),this.connectDragPreview=(i,o,a)=>Wt(this,md).call(this,"connectDragPreview",i,o,a),this.connectDropTarget=(i,o,a)=>Wt(this,md).call(this,"connectDropTarget",i,o,a),this.profile=()=>Wt(this,Qo)[Wt(this,Jo)].instance.profile(),this.previewEnabled=()=>Wt(this,Qo)[Wt(this,Jo)].preview,this.previewsList=()=>Wt(this,gd),this.backendsList=()=>Wt(this,El),Ps(this,cv,i=>{for(let o of Wt(this,El))o.transition&&i.addEventListener(o.transition.event,Wt(this,Wh))}),Ps(this,fv,i=>{for(let o of Wt(this,El))o.transition&&i.removeEventListener(o.transition.event,Wt(this,Wh))}),Ps(this,Wh,i=>{var a;let o=Wt(this,Jo);if(Wt(this,El).some(u=>u.id!==Wt(this,Jo)&&u.transition&&u.transition.check(i)?(xc(this,Jo,u.id),!0):!1),Wt(this,Jo)!==o){Wt(this,Qo)[o].instance.teardown();for(let[y,p]of Object.entries(Wt(this,Sc)))p.unsubscribe(),p.unsubscribe=Wt(this,zh).call(this,p.func,...p.args);Wt(this,gd).backendChanged(this);let u=Wt(this,Qo)[Wt(this,Jo)];if(u.instance.setup(),u.skipDispatchOnTransition)return;let c=i.constructor,d=new c(i.type,i);(a=i.target)==null||a.dispatchEvent(d)}}),Ps(this,zh,(i,o,a,u)=>Wt(this,Qo)[Wt(this,Jo)].instance[i](o,a,u)),Ps(this,md,(i,o,a,u)=>{let c=`${i}_${o}`,d=Wt(this,zh).call(this,i,o,a,u);return Wt(this,Sc)[c]={func:i,args:[o,a,u],unsubscribe:d},()=>{Wt(this,Sc)[c].unsubscribe(),delete Wt(this,Sc)[c]}}),!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)
|
|
11
|
-
see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-2xx`);xc(this,gd,new j3),xc(this,Qo,{}),xc(this,El,[]);for(let i of r.backends){let o=Wt(this,uv).call(this,e,n,i);Wt(this,Qo)[o.id]=o,Wt(this,El).push(o)}xc(this,Jo,Wt(this,El)[0].id),xc(this,Sc,{})}};Jo=new WeakMap,gd=new WeakMap,Qo=new WeakMap,El=new WeakMap,Sc=new WeakMap,uv=new WeakMap,cv=new WeakMap,fv=new WeakMap,Wh=new WeakMap,zh=new WeakMap,md=new WeakMap,jE.isSetUp=!1;var B3=jE,$3=(t,e,n)=>new B3(t,e,n),BE=(t,e)=>({event:t,check:e}),V3=BE("touchstart",t=>{let e=t;return e.touches!==null&&e.touches!==void 0}),H3=BE("pointerdown",t=>t.pointerType==="mouse"),yu;(function(t){t.mouse="mouse",t.touch="touch",t.keyboard="keyboard"})(yu||(yu={}));class U3{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 W3(t,e,n,r){return Math.sqrt(Math.pow(Math.abs(n-t),2)+Math.pow(Math.abs(r-e),2))}function z3(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 u=i[a];if(u&&(u.start==null||o>=u.start)&&(u.end==null||o<=u.end))return!0}return!1}const Y3={Left:1,Right:2,Center:4},G3={Left:0,Center:1,Right:2};function tm(t){return t.button===void 0||t.button===G3.Left}function q3(t){return t.buttons===void 0||(t.buttons&Y3.Left)===0}function $E(t){return!!t.targetTouches}const X3=1;function K3(t){const e=t.nodeType===X3?t:t.parentElement;if(!e)return;const{top:n,left:r}=e.getBoundingClientRect();return{x:r,y:n}}function Z3(t,e){if(t.targetTouches.length===1)return dp(t.targetTouches[0]);if(e&&t.touches.length===1&&t.touches[0].target===e.target)return dp(t.touches[0])}function dp(t,e){return $E(t)?Z3(t,e):{x:t.clientX,y:t.clientY}}const Hx=(()=>{let t=!1;try{addEventListener("test",()=>{},Object.defineProperty({},"passive",{get(){return t=!0,!0}}))}catch{}return t})(),ld={[yu.mouse]:{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"},[yu.touch]:{start:"touchstart",move:"touchmove",end:"touchend"},[yu.keyboard]:{keydown:"keydown"}};class Ed{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&&(Kt(!Ed.isSetUp,"Cannot have two Touch backends at the same time."),Ed.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&&(Ed.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=Hx?{capture:i,passive:!1}:i;this.listenerTypes.forEach(function(a){const u=ld[a][n];u&&e.addEventListener(u,r,o)})}removeEventListener(e,n,r,i=!1){const o=Hx?{capture:i,passive:!1}:i;this.listenerTypes.forEach(function(a){const u=ld[a][n];u&&e.removeEventListener(u,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 ld.mouse.move:a={x:o.clientX,y:o.clientY};break;case ld.touch.move:var u,c;a={x:((u=o.touches[0])===null||u===void 0?void 0:u.clientX)||0,y:((c=o.touches[0])===null||c===void 0?void 0:c.clientY)||0};break}const d=a!=null?this.document.elementFromPoint(a.x,a.y):void 0,y=d&&n.contains(d);if(d===n||y)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&&K3(o)},this.handleTopMoveStartCapture=i=>{tm(i)&&(this.moveStartSourceIds=[])},this.handleMoveStart=i=>{Array.isArray(this.moveStartSourceIds)&&this.moveStartSourceIds.unshift(i)},this.handleTopMoveStart=i=>{if(!tm(i))return;const o=dp(i);o&&($E(i)&&(this.lastTargetTouchFallback=i.targetTouches[0]),this._mouseClientOffset=o),this.waitingForDelay=!1},this.handleTopMoveStartDelay=i=>{if(!tm(i))return;const o=i.type===ld.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,u=this.options.enableHoverOutsideTarget,c=dp(i,this.lastTargetTouchFallback);if(!c)return;if(this._isScrolling||!this.monitor.isDragging()&&z3(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,c.x,c.y,this.options.scrollAngleRanges)){this._isScrolling=!0;return}if(!this.monitor.isDragging()&&this._mouseClientOffset.hasOwnProperty("x")&&o&&W3(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,c.x,c.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 d=this.sourceNodes.get(this.monitor.getSourceId());this.installSourceNodeRemovalObserver(d),this.actions.publishDragSource(),i.cancelable&&i.preventDefault();const y=(a||[]).map(A=>this.targetNodes.get(A)).filter(A=>!!A),p=this.options.getDropTargetElementsAtPoint?this.options.getDropTargetElementsAtPoint(c.x,c.y,y):this.document.elementsFromPoint(c.x,c.y),S=[];for(const A in p){if(!p.hasOwnProperty(A))continue;let I=p[A];for(I!=null&&S.push(I);I;)I=I.parentElement,I&&S.indexOf(I)===-1&&S.push(I)}const C=S.filter(A=>y.indexOf(A)>-1).map(A=>this._getDropTargetId(A)).filter(A=>!!A).filter((A,I,B)=>B.indexOf(A)===I);if(u)for(const A in this.targetNodes){const I=this.targetNodes.get(A);if(d&&I&&I.contains(d)&&C.indexOf(A)===-1){C.unshift(A);break}}C.reverse(),this.actions.hover(C,{clientOffset:c})},this._getDropTargetId=i=>{const o=this.targetNodes.keys();let a=o.next();for(;a.done===!1;){const u=a.value;if(i===this.targetNodes.get(u))return u;a=o.next()}},this.handleTopMoveEndCapture=i=>{if(this._isScrolling=!1,this.lastTargetTouchFallback=void 0,!!q3(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 U3(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(yu.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(yu.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(yu.keyboard)}}const J3=function(e,n={},r={}){return new Ed(e,n,r)};var Is=function(){return Is=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Is.apply(this,arguments)};function lo(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 Q3(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,u=t.children,c=L$({polyfill:lF}),d=c[0],y=c[1].height,p=Z.useState(e),S=p[0],C=p[1],A=Z.useState(e),I=A[0],B=A[1],_=Z.useState(!1),G=_[0],q=_[1],se=function(){q(!1),e||C(!1)};Z.useEffect(function(){q(!0),e?C(!0):B(!1)},[e]);var Q=y===0;return Z.useEffect(function(){S&&B(!0)},[Q]),Z.createElement(M$.div,{style:G?{overflow:"hidden"}:void 0,onAnimationComplete:se,initial:I?"open":"close",animate:I?"open":"close",inherit:!1,variants:a,transition:{ease:r,duration:eH(y,i)}},Z.createElement("div",{ref:d},S&&u))}function eH(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=Z.createContext({}),tH={isLock:!1},nH=function(t){var e=Z.useState(tH.isLock),n=e[0],r=e[1];return Z.createElement(VE.Provider,{value:{isLock:n,lock:function(){return r(!0)},unlock:function(){return r(!1)}}},t.children)},Jd=Z.createContext({}),Ph={dropTargetId:void 0,index:void 0},rH=function(t){var e=Z.useState(Ph.dropTargetId),n=e[0],r=e[1],i=Z.useState(Ph.index),o=i[0],a=i[1],u=function(d,y){r(d),a(y)},c=function(){r(Ph.dropTargetId),a(Ph.index)};return Z.createElement(Jd.Provider,{value:{dropTargetId:n,index:o,showPlaceholder:u,hidePlaceholder:c}},t.children)},iH=function(t,e){return t.text>e.text?1:t.text<e.text?-1:0},ud=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)},Iy=function(t){return typeof t=="object"&&t!==null&&"id"in t&&"parent"in t&&"text"in t},Pu=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(y){return y.id===e});return!!(a&&a.droppable)}else{var u=Iy(t)?t.id:null;if(o){var c=o(u,e);if(c!==void 0)return c}if(u===e)return!1;var d=r.find(function(p){return p.id===u}),a=r.find(function(p){return p.id===e});return d===void 0||u===null?e===i||!!(a!=null&&a.droppable):a===void 0?d.parent!==0:d.parent===e||!a.droppable?!1:!HE(r,u,e)}},oH=function(t,e,n){return t.map(function(r){return r.id===e?Is(Is({},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},sH=function(t,e){return t.findIndex(function(n){return n.id===e})},WE=function(t,e,n,r){var i=sH(t,e),o=UE(t,n,r);return o=o>i?o-1:o,[i,o]},aH=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)}},lH=function(t,e,n,r){var i=WE(t,e,n,r),o=i[0],a=i[1],u=lo([],t,!0);return aH(u,o,a),u.map(function(c){return c.id===e?Is(Is({},c),{parent:n}):c})},uH=function(t,e){var n=t.getBoundingClientRect(),r=n.top+n.height/2;return e>r?"down":"up"},dv=function(t,e){var n="",r=0;return t.forEach(function(i,o){var a,u=uH(i,((a=e.getClientOffset())===null||a===void 0?void 0:a.y)||0);n===""?n=u:n!==u&&(n=u,r=o),o===t.length-1&&u==="down"&&(r=o+1)}),r},Ux=function(t,e,n){var r=e.closest('[role="list"]'),i=r==null?void 0:r.querySelectorAll(':scope > [role="listitem"]');return i?dv(i,n):null},cH=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"},hv=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:dv(o,n)}}var a=n.getItem(),u=e.querySelector('[role="list"]'),c=cH(e,((i=n.getClientOffset())===null||i===void 0?void 0:i.y)||0,r);if(u){if(c==="upper")if(Pu(a,t.parent,r)){var d=Ux(t,e,n);return d===null?null:{id:t.parent,index:d}}else return{id:t.id,index:0};var o=u.querySelectorAll(':scope > [role="listitem"]');return{id:t.id,index:dv(o,n)}}else{if(c==="middle")return{id:t.id,index:0};if(Pu(a,t.parent,r)){var d=Ux(t,e,n);return d===null?null:{id:t.parent,index:d}}return null}},fH=function(t){return t===void 0&&(t={}),{backends:[{id:"html5",backend:V2,options:t.html5,transition:H3},{id:"touch",backend:J3,options:t.touch||{enableMouseEvents:!0},preview:!0,transition:V3}]}},Gh=function(t,e){return t.some(function(n){return n.parent===e})},zE=Z.createContext({}),dH=function(t){var e=bH(t.tree,t.initialOpen),n=e[0],r=e[1],i=r.handleToggle,o=r.handleCloseAll,a=r.handleOpenAll,u=r.handleOpen,c=r.handleClose;Z.useImperativeHandle(t.treeRef,function(){return{open:function(C){return u(C,t.onChangeOpen)},close:function(C){return c(C,t.onChangeOpen)},openAll:function(){return a(t.onChangeOpen)},closeAll:function(){return o(t.onChangeOpen)}}});var d=Nl().getMonitor(),y=t.canDrop,p=t.canDrag,S=Is(Is({extraAcceptTypes:[],listComponent:"ul",listItemComponent:"li",placeholderComponent:"li",sort:!0,insertDroppableFirst:!0,enableAnimateExpand:!1,dropTargetOffset:0,initialOpen:!1},t),{openIds:n,onDrop:function(C,A,I){if(C){var B={dragSourceId:C.id,dropTargetId:A,dragSource:C,dropTarget:ud(t.tree,A),monitor:d},_=t.tree;if(ud(_,C.id)||(_=lo(lo([],_,!0),[C],!1)),t.sort===!1){var G=WE(_,C.id,A,I),q=G[1];B.destinationIndex=q,B.relativeIndex=I,t.onDrop(lH(_,C.id,A,I),B);return}t.onDrop(oH(_,C.id,A),B)}else{var B={dropTargetId:A,dropTarget:ud(t.tree,A),monitor:d};t.sort===!1&&(B.destinationIndex=UE(t.tree,A,I),B.relativeIndex=I),t.onDrop(t.tree,B)}},canDrop:y?function(C,A){return y(t.tree,{dragSourceId:C??void 0,dropTargetId:A,dragSource:d.getItem(),dropTarget:ud(t.tree,A),monitor:d})}:void 0,canDrag:p?function(C){return p(ud(t.tree,C))}:void 0,onToggle:function(C){return i(C,t.onChangeOpen)}});return Z.createElement(zE.Provider,{value:S},t.children)},hH=function(t){return Z.createElement(dH,Is({},t),Z.createElement(nH,null,Z.createElement(rH,null,t.children)))},pH=function(t){var e=Z.useContext(VE);Z.useEffect(function(){if(t.current){var n=t.current,r=function(y){var p=y.target;(p instanceof HTMLInputElement||p instanceof HTMLTextAreaElement)&&e.lock()},i=function(y){var p=y.target;(p instanceof HTMLInputElement||p instanceof HTMLTextAreaElement)&&e.unlock()},o=function(y){return r(y)},a=function(y){return i(y)},u=function(y){return r(y)},c=function(y){return i(y)},d=new MutationObserver(function(){document.activeElement===document.body&&e.unlock()});return d.observe(n,{subtree:!0,childList:!0}),n.addEventListener("mouseover",o),n.addEventListener("mouseout",a),n.addEventListener("focusin",u),n.addEventListener("focusout",c),function(){d.disconnect(),n.removeEventListener("mouseover",o),n.removeEventListener("mouseout",a),n.removeEventListener("focusin",u),n.removeEventListener("focusout",c)}}},[t,e]),Z.useEffect(function(){var n;(n=t.current)===null||n===void 0||n.setAttribute("draggable",e.isLock?"false":"true")},[t,e.isLock])},Vp={TREE_ITEM:Symbol()},YE=null,GE=function(t){var e=t.target;if(e instanceof HTMLElement){var n=e.closest('[role="listitem"]');t.currentTarget===n&&(YE=n)}},Wx=function(t){return GE(t)},zx=function(t){return GE(t)},gH=function(t,e){var n=Iu();Z.useEffect(function(){var u=e.current;return u==null||u.addEventListener("dragstart",Wx),u==null||u.addEventListener("touchstart",zx,{passive:!0}),function(){u==null||u.removeEventListener("dragstart",Wx),u==null||u.removeEventListener("touchstart",zx)}},[e]);var r=O3({type:Vp.TREE_ITEM,item:function(u){var c=Is({ref:e},t);return n.onDragStart&&n.onDragStart(c,u),c},end:function(u,c){var d=u;n.onDragEnd&&n.onDragEnd(d,c)},canDrag:function(){var u=n.canDrag;return YE!==e.current?!1:u?u(t.id):!0},collect:function(u){return{isDragging:u.isDragging()}}}),i=r[0].isDragging,o=r[1],a=r[2];return[i,o,a]},mH=function(t,e,n){var r=Z.useRef(0),i=Z.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)},u=function(){i.current>0&&window.clearTimeout(i.current),r.current=0,i.current=0};return{onDragEnter:o,onDragLeave:a,onDrop:u}},vH=function(t){var e=Iu(),n=Z.useContext(Jd),r=LE({accept:lo([Vp.TREE_ITEM],e.extraAcceptTypes,!0),drop:function(c,d){var y=e.rootId,p=e.onDrop,S=n.dropTargetId,C=n.index;d.isOver({shallow:!0})&&S!==void 0&&C!==void 0&&p(Iy(c)?c:null,y,C),n.hidePlaceholder()},canDrop:function(c,d){var y=e.rootId;return d.isOver({shallow:!0})?c===void 0?!1:Pu(c,y,e):!1},hover:function(c,d){if(d.isOver({shallow:!0})){var y=e.rootId,p=n.dropTargetId,S=n.index,C=n.showPlaceholder,A=n.hidePlaceholder,I=hv(null,t.current,d,e);if(I===null||!Pu(c,y,e)){A();return}(I.id!==p||I.index!==S)&&C(I.id,I.index)}},collect:function(c){var d=c.getItem();return{isOver:c.isOver({shallow:!0})&&c.canDrop(),dragSource:d}}}),i=r[0],o=i.isOver,a=i.dragSource,u=r[1];return[o,a,u]},yH=function(t,e){var n=Iu(),r=Z.useContext(Jd),i=LE({accept:lo([Vp.TREE_ITEM],n.extraAcceptTypes,!0),drop:function(d,y){var p=r.dropTargetId,S=r.index;y.isOver({shallow:!0})&&p!==void 0&&S!==void 0&&n.onDrop(Iy(d)?d:null,p,S),r.hidePlaceholder()},canDrop:function(d,y){if(y.isOver({shallow:!0})){var p=hv(t,e.current,y,n);return p===null?!1:Pu(d,p.id,n)}return!1},hover:function(d,y){if(y.isOver({shallow:!0})){var p=r.dropTargetId,S=r.index,C=r.showPlaceholder,A=r.hidePlaceholder,I=hv(t,e.current,y,n);if(I===null||!Pu(d,I.id,n)){A();return}(I.id!==p||I.index!==S)&&C(I.id,I.index)}},collect:function(d){var y=d.getItem();return{isOver:d.isOver({shallow:!0})&&d.canDrop(),dragSource:y}}}),o=i[0],a=o.isOver,u=o.dragSource,c=i[1];return[a,u,c]},bH=function(t,e){var n=Z.useMemo(function(){return e===!0?t.filter(function(p){return Gh(t,p.id)}).map(function(p){return p.id}):Array.isArray(e)?e:[]},[e]),r=Z.useState(n),i=r[0],o=r[1];Z.useEffect(function(){return o(n)},[n]);var a=function(p,S){var C=i.includes(p)?i.filter(function(A){return A!==p}):lo(lo([],i,!0),[p],!1);o(C),S&&S(C)},u=function(p){o([]),p&&p([])},c=function(p){var S=t.filter(function(C){return Gh(t,C.id)}).map(function(C){return C.id});o(S),p&&p(S)},d=function(p,S){var C=[];if(Array.isArray(p)){var A=t.filter(function(I){return p.includes(I.id)&&Gh(t,I.id)});C=lo(lo([],i,!0),A.map(function(I){return I.id}),!0).filter(function(I,B,_){return _.indexOf(I)===B})}else C=i.includes(p)?i:lo(lo([],i,!0),[p],!1);o(C),S&&S(C)},y=function(p,S){var C=i.filter(function(A){return Array.isArray(p)?!p.includes(A):A!==p});o(C),S&&S(C)};return[i,{handleToggle:a,handleCloseAll:u,handleOpenAll:c,handleOpen:d,handleClose:y}]},wH=function(){return _3(function(t){var e=t.getItemType();return{item:t.getItem(),clientOffset:t.getClientOffset(),isDragging:t.isDragging()&&e===Vp.TREE_ITEM}})},Iu=function(){var t=Z.useContext(zE);if(!t)throw new Error("useTreeContext must be used under TreeProvider");return t},xH=function(t,e){var n=Iu(),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},SH=function(t,e,n){e.current?n(e):n(t),Z.useEffect(function(){e.current?n(e):n(t)},[e.current])},TH=function(t){var e=Iu(),n=Z.useContext(Jd),r=Z.useRef(null),i=Z.useRef(null),o=e.tree.find(function(ae){return ae.id===t.id}),a=e.openIds,u=e.classes,c=e.enableAnimateExpand,d=a.includes(t.id),y=gH(o,r),p=y[0],S=y[1],C=y[2],A=yH(o,r),I=A[0],B=A[1],_=A[2];SH(r,i,S),Pu(B,t.id,e)&&_(r),Z.useEffect(function(){e.dragPreviewRender?C($2(),{captureDraggingState:!0}):i.current&&C(r)},[C,e.dragPreviewRender]),pH(r);var G=function(){return e.onToggle(o.id)},q=e.listItemComponent,se=e.canDrag?e.canDrag(t.id):!0,Q=n.dropTargetId===t.id,ye={depth:t.depth,isOpen:d,isDragging:p,isDropTarget:Q,draggable:se,hasChild:Gh(e.tree,t.id),containerRef:r,handleRef:i,onToggle:G},x="";return u!=null&&u.listItem&&(x=typeof u.listItem=="string"?u.listItem:u.listItem(o,ye)),I&&(u!=null&&u.dropTarget)&&(x="".concat(x," ").concat(u.dropTarget)),p&&(u!=null&&u.draggingSource)&&(x="".concat(x," ").concat(u.draggingSource)),Z.createElement(q,{ref:r,className:x,role:"listitem"},e.render(o,ye),c&&ye.hasChild&&Z.createElement(Q3,{isVisible:d},Z.createElement(pv,{parentId:t.id,depth:t.depth+1})),!c&&ye.hasChild&&d&&Z.createElement(pv,{parentId:t.id,depth:t.depth+1}))},Yx=function(t){var e=Iu(),n=e.placeholderRender,r=e.placeholderComponent,i=e.classes,o=Z.useContext(Jd),a=Nl(),u=a.getMonitor(),c=u.getItem();if(!n||!c)return null;var d=t.dropTargetId===o.dropTargetId&&(t.index===o.index||t.index===void 0&&t.listCount===o.index),y=u.getTargetIds();return!d||!y.length?null:Z.createElement(r,{className:(i==null?void 0:i.placeholder)||""},n(c,{depth:t.depth}))},pv=function(t){var e=Iu(),n=Z.useRef(null),r=e.tree.filter(function(I){return I.parent===t.parentId}),i=r,o=typeof e.sort=="function"?e.sort:iH;if(e.insertDroppableFirst){var a=r.filter(function(I){return I.droppable}),u=r.filter(function(I){return!I.droppable});e.sort===!1?i=lo(lo([],a,!0),u,!0):(a=a.sort(o),u=u.sort(o),i=lo(lo([],a,!0),u,!0))}else e.sort!==!1&&(i=r.sort(o));var c=vH(n),d=c[0],y=c[1],p=c[2];t.parentId===e.rootId&&Pu(y,e.rootId,e)&&p(n);var S=xH(t.parentId,d),C=e.rootProps||{},A=e.listComponent;return Z.createElement(A,Is({ref:n,role:"list"},C,{className:S}),i.map(function(I,B){return Z.createElement(Z.Fragment,{key:I.id},Z.createElement(Yx,{depth:t.depth,listCount:i.length,dropTargetId:t.parentId,index:B}),Z.createElement(TH,{id:I.id,depth:t.depth}))}),Z.createElement(Yx,{depth:t.depth,listCount:i.length,dropTargetId:t.parentId}))},CH={height:"100%",left:0,pointerEvents:"none",position:"fixed",top:0,width:"100%",zIndex:100},EH=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}},kH=function(){var t=Iu(),e=wH(),n=e.isDragging,r=e.clientOffset;return!n||!r?null:Z.createElement("div",{style:CH},Z.createElement("div",{style:EH(e)},t.dragPreviewRender&&t.dragPreviewRender(e)))};function DH(t,e){return Z.createElement(hH,Is({},t,{treeRef:e}),t.dragPreviewRender&&Z.createElement(kH,null),Z.createElement(pv,{parentId:t.rootId,depth:0}))}var PH=Z.forwardRef(DH);const qE=Z.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),Hp=Z.createContext({}),My=Z.createContext(null),Up=typeof document<"u",OH=Up?Z.useLayoutEffect:Z.useEffect,XE=Z.createContext({strict:!1}),Ly=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),_H="framerAppearId",KE="data-"+Ly(_H);function RH(t,e,n,r){const{visualElement:i}=Z.useContext(Hp),o=Z.useContext(XE),a=Z.useContext(My),u=Z.useContext(qE).reducedMotion,c=Z.useRef();r=r||o.renderer,!c.current&&r&&(c.current=r(t,{visualState:e,parent:i,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:u}));const d=c.current;Z.useInsertionEffect(()=>{d&&d.update(n,a)});const y=Z.useRef(!!(n[KE]&&!window.HandoffComplete));return OH(()=>{d&&(d.render(),y.current&&d.animationState&&d.animationState.animateChanges())}),Z.useEffect(()=>{d&&(d.updateFeatures(),!y.current&&d.animationState&&d.animationState.animateChanges(),y.current&&(y.current=!1,window.HandoffComplete=!0))}),d}function kf(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function AH(t,e,n){return Z.useCallback(r=>{r&&t.mount&&t.mount(r),e&&(r?e.mount(r):e.unmount()),n&&(typeof n=="function"?n(r):kf(n)&&(n.current=r))},[e])}function $d(t){return typeof t=="string"||Array.isArray(t)}function Wp(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const Fy=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ny=["initial",...Fy];function zp(t){return Wp(t.animate)||Ny.some(e=>$d(t[e]))}function ZE(t){return!!(zp(t)||t.variants)}function IH(t,e){if(zp(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 MH(t){const{initial:e,animate:n}=IH(t,Z.useContext(Hp));return Z.useMemo(()=>({initial:e,animate:n}),[Gx(e),Gx(n)])}function Gx(t){return Array.isArray(t)?t.join(" "):t}const qx={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Vd={};for(const t in qx)Vd[t]={isEnabled:e=>qx[t].some(n=>!!e[n])};function LH(t){for(const e in t)Vd[e]={...Vd[e],...t[e]}}const JE=Z.createContext({}),QE=Z.createContext({}),FH=Symbol.for("motionComponentSymbol");function NH({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:r,Component:i}){t&&LH(t);function o(u,c){let d;const y={...Z.useContext(qE),...u,layoutId:jH(u)},{isStatic:p}=y,S=MH(u),C=r(u,p);if(!p&&Up){S.visualElement=RH(i,C,y,e);const A=Z.useContext(QE),I=Z.useContext(XE).strict;S.visualElement&&(d=S.visualElement.loadFeatures(y,I,t,A))}return _n.createElement(Hp.Provider,{value:S},d&&S.visualElement?_n.createElement(d,{visualElement:S.visualElement,...y}):null,n(i,u,AH(C,S.visualElement,c),C,p,S.visualElement))}const a=Z.forwardRef(o);return a[FH]=i,a}function jH({layoutId:t}){const e=Z.useContext(JE).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 jy(t){return typeof t!="string"||t.includes("-")?!1:!!($H.indexOf(t)>-1||/[A-Z]/.test(t))}const hp={};function VH(t){Object.assign(hp,t)}const Qd=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Vc=new Set(Qd);function ek(t,{layout:e,layoutId:n}){return Vc.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!hp[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 u=Qd[a];if(t[u]!==void 0){const c=HH[u]||u;o+=`${c}(${t[u]}) `}}return e&&!t.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(t,r?"":o):n&&r&&(o="none"),o}const tk=t=>e=>typeof e=="string"&&e.startsWith(t),nk=tk("--"),gv=tk("var(--"),zH=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,YH=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Ou=(t,e,n)=>Math.min(Math.max(n,t),e),Hc={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},kd={...Hc,transform:t=>Ou(0,1,t)},Oh={...Hc,default:1},Dd=t=>Math.round(t*1e5)/1e5,Yp=/(-)?([\d]*\.?[\d])+/g,rk=/(#[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 eh(t){return typeof t=="string"}const th=t=>({test:e=>eh(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),gu=th("deg"),Ua=th("%"),jt=th("px"),qH=th("vh"),XH=th("vw"),Xx={...Ua,parse:t=>Ua.parse(t)/100,transform:t=>Ua.transform(t*100)},Kx={...Hc,transform:Math.round},ik={borderWidth:jt,borderTopWidth:jt,borderRightWidth:jt,borderBottomWidth:jt,borderLeftWidth:jt,borderRadius:jt,radius:jt,borderTopLeftRadius:jt,borderTopRightRadius:jt,borderBottomRightRadius:jt,borderBottomLeftRadius:jt,width:jt,maxWidth:jt,height:jt,maxHeight:jt,size:jt,top:jt,right:jt,bottom:jt,left:jt,padding:jt,paddingTop:jt,paddingRight:jt,paddingBottom:jt,paddingLeft:jt,margin:jt,marginTop:jt,marginRight:jt,marginBottom:jt,marginLeft:jt,rotate:gu,rotateX:gu,rotateY:gu,rotateZ:gu,scale:Oh,scaleX:Oh,scaleY:Oh,scaleZ:Oh,skew:gu,skewX:gu,skewY:gu,distance:jt,translateX:jt,translateY:jt,translateZ:jt,x:jt,y:jt,z:jt,perspective:jt,transformPerspective:jt,opacity:kd,originX:Xx,originY:Xx,originZ:jt,zIndex:Kx,fillOpacity:kd,strokeOpacity:kd,numOctaves:Kx};function By(t,e,n,r){const{style:i,vars:o,transform:a,transformOrigin:u}=t;let c=!1,d=!1,y=!0;for(const p in e){const S=e[p];if(nk(p)){o[p]=S;continue}const C=ik[p],A=YH(S,C);if(Vc.has(p)){if(c=!0,a[p]=A,!y)continue;S!==(C.default||0)&&(y=!1)}else p.startsWith("origin")?(d=!0,u[p]=A):i[p]=A}if(e.transform||(c||r?i.transform=WH(t.transform,n,y,r):i.transform&&(i.transform="none")),d){const{originX:p="50%",originY:S="50%",originZ:C=0}=u;i.transformOrigin=`${p} ${S} ${C}`}}const $y=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ok(t,e,n){for(const r in e)!Ro(e[r])&&!ek(r,n)&&(t[r]=e[r])}function KH({transformTemplate:t},e,n){return Z.useMemo(()=>{const r=$y();return By(r,e,{enableHardwareAcceleration:!n},t),Object.assign({},r.vars,r.style)},[e])}function ZH(t,e,n){const r=t.style||{},i={};return ok(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 pp(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 sk=t=>!pp(t);function eU(t){t&&(sk=e=>e.startsWith("on")?!pp(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"||(sk(i)||n===!0&&pp(i)||!e&&!pp(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}function Zx(t,e,n){return typeof t=="string"?t:jt.transform(e+n*t)}function nU(t,e,n){const r=Zx(e,t.x,t.width),i=Zx(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]=jt.transform(-r);const a=jt.transform(e),u=jt.transform(n);t[o.array]=`${a} ${u}`}function Vy(t,{attrX:e,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:u=1,pathOffset:c=0,...d},y,p,S){if(By(t,d,y,S),p){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:C,style:A,dimensions:I}=t;C.transform&&(I&&(A.transform=C.transform),delete C.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&&(C.x=e),n!==void 0&&(C.y=n),r!==void 0&&(C.scale=r),a!==void 0&&oU(C,a,u,c,!1)}const ak=()=>({...$y(),attrs:{}}),Hy=t=>typeof t=="string"&&t.toLowerCase()==="svg";function sU(t,e,n,r){const i=Z.useMemo(()=>{const o=ak();return Vy(o,e,{enableHardwareAcceleration:!1},Hy(r),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};ok(o,t.style,t),i.style={...o,...i.style}}return i}function aU(t=!1){return(n,r,i,{latestValues:o},a)=>{const c=(jy(n)?sU:JH)(r,o,a,n),y={...tU(r,typeof n=="string",t),...c,ref:i},{children:p}=r,S=Z.useMemo(()=>Ro(p)?p.get():p,[p]);return Z.createElement(n,{...y,children:S})}}function lk(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 uk=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function ck(t,e,n,r){lk(t,e,void 0,r);for(const i in e.attrs)t.setAttribute(uk.has(i)?i:Ly(i),e.attrs[i])}function Uy(t,e){const{style:n}=t,r={};for(const i in n)(Ro(n[i])||e.style&&Ro(e.style[i])||ek(i,t))&&(r[i]=n[i]);return r}function fk(t,e){const n=Uy(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 Wy(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=Z.useRef(null);return e.current===null&&(e.current=t()),e.current}const gp=t=>Array.isArray(t),uU=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),cU=t=>gp(t)?t[t.length-1]||0:t;function qh(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=u=>n(r,u,a)),a}const dk=t=>(e,n)=>{const r=Z.useContext(Hp),i=Z.useContext(My),o=()=>fU(t,e,r,i);return n?o():lU(o)};function dU(t,e,n,r){const i={},o=r(t,{});for(const S in o)i[S]=qh(o[S]);let{initial:a,animate:u}=t;const c=zp(t),d=ZE(t);e&&d&&!c&&t.inherit!==!1&&(a===void 0&&(a=e.initial),u===void 0&&(u=e.animate));let y=n?n.initial===!1:!1;y=y||a===!1;const p=y?u:a;return p&&typeof p!="boolean"&&!Wp(p)&&(Array.isArray(p)?p:[p]).forEach(C=>{const A=Wy(t,C);if(!A)return;const{transitionEnd:I,transition:B,..._}=A;for(const G in _){let q=_[G];if(Array.isArray(q)){const se=y?q.length-1:0;q=q[se]}q!==null&&(i[G]=q)}for(const G in I)i[G]=I[G]}),i}const ur=t=>t;class Jx{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 Jx,n=new Jx,r=0,i=!1,o=!1;const a=new WeakSet,u={schedule:(c,d=!1,y=!1)=>{const p=y&&i,S=p?e:n;return d&&a.add(c),S.add(c)&&p&&i&&(r=e.order.length),c},cancel:c=>{n.remove(c),a.delete(c)},process:c=>{if(i){o=!0;return}if(i=!0,[e,n]=[n,e],n.clear(),r=e.order.length,r)for(let d=0;d<r;d++){const y=e.order[d];y(c),a.has(y)&&(u.schedule(y),t())}i=!1,o&&(o=!1,u.process(c))}};return u}const _h=["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=_h.reduce((p,S)=>(p[S]=hU(()=>n=!0),p),{}),a=p=>o[p].process(i),u=()=>{const p=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(p-i.timestamp,pU),1),i.timestamp=p,i.isProcessing=!0,_h.forEach(a),i.isProcessing=!1,n&&e&&(r=!1,t(u))},c=()=>{n=!0,r=!0,i.isProcessing||t(u)};return{schedule:_h.reduce((p,S)=>{const C=o[S];return p[S]=(A,I=!1,B=!1)=>(n||c(),C.schedule(A,I,B)),p},{}),cancel:p=>_h.forEach(S=>o[S].cancel(p)),state:i,steps:o}}const{schedule:Vn,cancel:Ll,state:ji,steps:nm}=gU(typeof requestAnimationFrame<"u"?requestAnimationFrame:ur,!0),mU={useVisualState:dk({scrapeMotionValuesFromProps:fk,createRenderState:ak,onMount:(t,e,{renderState:n,latestValues:r})=>{Vn.read(()=>{try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Vn.render(()=>{Vy(n,r,{enableHardwareAcceleration:!1},Hy(e.tagName),t.transformTemplate),ck(e,n)})}})},vU={useVisualState:dk({scrapeMotionValuesFromProps:Uy,createRenderState:$y})};function yU(t,{forwardMotionProps:e=!1},n,r){return{...jy(t)?mU:vU,preloadedFeatures:n,useRender:aU(e),createVisualElement:r,Component:t}}function Pl(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}const hk=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function Gp(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const bU=t=>e=>hk(e)&&t(e,Gp(e));function Rl(t,e,n,r){return Pl(t,e,bU(n),r)}const wU=(t,e)=>n=>e(t(n)),bu=(...t)=>t.reduce(wU);function pk(t){let e=null;return()=>{const n=()=>{e=null};return e===null?(e=t,n):!1}}const Qx=pk("dragHorizontal"),eS=pk("dragVertical");function gk(t){let e=!1;if(t==="y")e=eS();else if(t==="x")e=Qx();else{const n=Qx(),r=eS();n&&r?e=()=>{n(),r()}:(n&&n(),r&&r())}return e}function mk(){const t=gk(!0);return t?(t(),!1):!0}class Mu{constructor(e){this.isMounted=!1,this.node=e}update(){}}function tS(t,e){const n="pointer"+(e?"enter":"leave"),r="onHover"+(e?"Start":"End"),i=(o,a)=>{if(o.pointerType==="touch"||mk())return;const u=t.getProps();t.animationState&&u.whileHover&&t.animationState.setActive("whileHover",e),u[r]&&Vn.update(()=>u[r](o,a))};return Rl(t.current,n,i,{passive:!t.getProps()[r]})}class xU extends Mu{mount(){this.unmount=bu(tS(this.node,!0),tS(this.node,!1))}unmount(){}}class SU extends Mu{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=bu(Pl(this.node.current,"focus",()=>this.onFocus()),Pl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const vk=(t,e)=>e?t===e?!0:vk(t,e.parentElement):!1;function rm(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,Gp(n))}class TU extends Mu{constructor(){super(...arguments),this.removeStartListeners=ur,this.removeEndListeners=ur,this.removeAccessibleListeners=ur,this.startPointerPress=(e,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=Rl(window,"pointerup",(u,c)=>{if(!this.checkPressEnd())return;const{onTap:d,onTapCancel:y,globalTapTarget:p}=this.node.getProps();Vn.update(()=>{!p&&!vk(this.node.current,u.target)?y&&y(u,c):d&&d(u,c)})},{passive:!(r.onTap||r.onPointerUp)}),a=Rl(window,"pointercancel",(u,c)=>this.cancelPress(u,c),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=bu(o,a),this.startPress(e,n)},this.startAccessiblePress=()=>{const e=o=>{if(o.key!=="Enter"||this.isPressing)return;const a=u=>{u.key!=="Enter"||!this.checkPressEnd()||rm("up",(c,d)=>{const{onTap:y}=this.node.getProps();y&&Vn.update(()=>y(c,d))})};this.removeEndListeners(),this.removeEndListeners=Pl(this.node.current,"keyup",a),rm("down",(u,c)=>{this.startPress(u,c)})},n=Pl(this.node.current,"keydown",e),r=()=>{this.isPressing&&rm("cancel",(o,a)=>this.cancelPress(o,a))},i=Pl(this.node.current,"blur",r);this.removeAccessibleListeners=bu(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&&Vn.update(()=>r(e,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!mk()}cancelPress(e,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Vn.update(()=>r(e,n))}mount(){const e=this.node.getProps(),n=Rl(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),r=Pl(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=bu(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const mv=new WeakMap,im=new WeakMap,CU=t=>{const e=mv.get(t.target);e&&e(t)},EU=t=>{t.forEach(CU)};function kU({root:t,...e}){const n=t||document;im.has(n)||im.set(n,{});const r=im.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 mv.set(t,n),r.observe(t),()=>{mv.delete(t),r.unobserve(t)}}const PU={some:0,all:1};class OU extends Mu{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]},u=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:y,onViewportLeave:p}=this.node.getProps(),S=d?y:p;S&&S(c)};return DU(this.node.current,a,u)}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 yk(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 qp(t,e,n){const r=t.getProps();return Wy(r,e,n!==void 0?n:r.custom,AU(t),IU(t))}let nh=ur,ua=ur;process.env.NODE_ENV!=="production"&&(nh=(t,e)=>{!t&&typeof console<"u"&&console.warn(e)},ua=(t,e)=>{if(!t)throw new Error(e)});const wu=t=>t*1e3,Al=t=>t/1e3,MU={current:!1},bk=t=>Array.isArray(t)&&typeof t[0]=="number";function wk(t){return!!(!t||typeof t=="string"&&xk[t]||bk(t)||Array.isArray(t)&&t.every(wk))}const vd=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,xk={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:vd([0,.65,.55,1]),circOut:vd([.55,0,1,.45]),backIn:vd([.31,.01,.66,-.59]),backOut:vd([.33,1.53,.69,.99])};function Sk(t){if(t)return bk(t)?vd(t):Array.isArray(t)?t.map(Sk):xk[t]}function LU(t,e,n,{delay:r=0,duration:i,repeat:o=0,repeatType:a="loop",ease:u,times:c}={}){const d={[e]:n};c&&(d.offset=c);const y=Sk(u);return Array.isArray(y)&&(d.easing=y),t.animate(d,{delay:r,duration:i,easing:Array.isArray(y)?"linear":y,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 Tk=(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,u=0;do a=e+(n-e)/2,o=Tk(a,r,i)-t,o>0?n=a:e=a;while(Math.abs(o)>NU&&++u<jU);return a}function rh(t,e,n,r){if(t===e&&n===r)return ur;const i=o=>BU(o,0,1,t,n);return o=>o===0||o===1?o:Tk(i(o),e,r)}const $U=rh(.42,0,1,1),VU=rh(0,0,.58,1),Ck=rh(.42,0,.58,1),HU=t=>Array.isArray(t)&&typeof t[0]!="number",Ek=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,kk=t=>e=>1-t(1-e),zy=t=>1-Math.sin(Math.acos(t)),Dk=kk(zy),UU=Ek(zy),Pk=rh(.33,1.53,.69,.99),Yy=kk(Pk),WU=Ek(Yy),zU=t=>(t*=2)<1?.5*Yy(t):.5*(2-Math.pow(2,-10*(t-1))),nS={linear:ur,easeIn:$U,easeInOut:Ck,easeOut:VU,circIn:zy,circInOut:UU,circOut:Dk,backIn:Yy,backInOut:WU,backOut:Pk,anticipate:zU},rS=t=>{if(Array.isArray(t)){ua(t.length===4,"Cubic bezier arrays must contain four numerical values.");const[e,n,r,i]=t;return rh(e,n,r,i)}else if(typeof t=="string")return ua(nS[t]!==void 0,`Invalid easing type '${t}'`),nS[t];return t},Gy=(t,e)=>n=>!!(eh(n)&&GH.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),Ok=(t,e,n)=>r=>{if(!eh(r))return r;const[i,o,a,u]=r.match(Yp);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(a),alpha:u!==void 0?parseFloat(u):1}},YU=t=>Ou(0,255,t),om={...Hc,transform:t=>Math.round(YU(t))},Dc={test:Gy("rgb","red"),parse:Ok("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+om.transform(t)+", "+om.transform(e)+", "+om.transform(n)+", "+Dd(kd.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 vv={test:Gy("#"),parse:GU,transform:Dc.transform},Df={test:Gy("hsl","hue"),parse:Ok("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+Ua.transform(Dd(e))+", "+Ua.transform(Dd(n))+", "+Dd(kd.transform(r))+")"},ao={test:t=>Dc.test(t)||vv.test(t)||Df.test(t),parse:t=>Dc.test(t)?Dc.parse(t):Df.test(t)?Df.parse(t):vv.parse(t),transform:t=>eh(t)?t:t.hasOwnProperty("red")?Dc.transform(t):Df.transform(t)},rr=(t,e,n)=>-n*t+n*e+t;function sm(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 u=n<.5?n*(1+e):n+e-n*e,c=2*n-u;i=sm(c,u,t+1/3),o=sm(c,u,t),a=sm(c,u,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}const am=(t,e,n)=>{const r=t*t;return Math.sqrt(Math.max(0,n*(e*e-r)+r))},XU=[vv,Dc,Df],KU=t=>XU.find(e=>e.test(t));function iS(t){const e=KU(t);ua(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`);let n=e.parse(t);return e===Df&&(n=qU(n)),n}const _k=(t,e)=>{const n=iS(t),r=iS(e),i={...n};return o=>(i.red=am(n.red,r.red,o),i.green=am(n.green,r.green,o),i.blue=am(n.blue,r.blue,o),i.alpha=rr(n.alpha,r.alpha,o),Dc.transform(i))};function ZU(t){var e,n;return isNaN(t)&&eh(t)&&(((e=t.match(Yp))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(rk))===null||n===void 0?void 0:n.length)||0)>0}const Rk={regex:zH,countKey:"Vars",token:"${v}",parse:ur},Ak={regex:rk,countKey:"Colors",token:"${c}",parse:ao.parse},Ik={regex:Yp,countKey:"Numbers",token:"${n}",parse:Hc.parse};function lm(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 mp(t){const e=t.toString(),n={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&lm(n,Rk),lm(n,Ak),lm(n,Ik),n}function Mk(t){return mp(t).values}function Lk(t){const{values:e,numColors:n,numVars:r,tokenised:i}=mp(t),o=e.length;return a=>{let u=i;for(let c=0;c<o;c++)c<r?u=u.replace(Rk.token,a[c]):c<r+n?u=u.replace(Ak.token,ao.transform(a[c])):u=u.replace(Ik.token,Dd(a[c]));return u}}const JU=t=>typeof t=="number"?0:t;function QU(t){const e=Mk(t);return Lk(t)(e.map(JU))}const _u={test:ZU,parse:Mk,createTransformer:Lk,getAnimatableNone:QU},Fk=(t,e)=>n=>`${n>0?e:t}`;function Nk(t,e){return typeof t=="number"?n=>rr(t,e,n):ao.test(t)?_k(t,e):t.startsWith("var(")?Fk(t,e):Bk(t,e)}const jk=(t,e)=>{const n=[...t],r=n.length,i=t.map((o,a)=>Nk(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]=Nk(t[i],e[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}},Bk=(t,e)=>{const n=_u.createTransformer(e),r=mp(t),i=mp(e);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?bu(jk(r.values,i.values),n):(nh(!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.`),Fk(t,e))},Hd=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r},oS=(t,e)=>n=>rr(t,e,n);function tW(t){return typeof t=="number"?oS:typeof t=="string"?ao.test(t)?_k:Bk:Array.isArray(t)?jk:typeof t=="object"?eW:oS}function nW(t,e,n){const r=[],i=n||tW(t[0]),o=t.length-1;for(let a=0;a<o;a++){let u=i(t[a],t[a+1]);if(e){const c=Array.isArray(e)?e[a]||ur:e;u=bu(c,u)}r.push(u)}return r}function $k(t,e,{clamp:n=!0,ease:r,mixer:i}={}){const o=t.length;if(ua(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),u=a.length,c=d=>{let y=0;if(u>1)for(;y<t.length-2&&!(d<t[y+1]);y++);const p=Hd(t[y],t[y+1],d);return a[y](p)};return n?d=>c(Ou(t[0],t[o-1],d)):c}function rW(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const i=Hd(0,e,r);t.push(rr(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||Ck).splice(0,t.length-1)}function vp({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const i=HU(r)?r.map(rS):rS(r),o={done:!1,value:e[0]},a=oW(n&&n.length===e.length?n:iW(e),t),u=$k(a,e,{ease:Array.isArray(i)?i:sW(e,i)});return{calculatedDuration:t,next:c=>(o.value=u(c),o.done=c>=t,o)}}function Vk(t,e){return e?t*(1e3/e):0}const aW=5;function Hk(t,e,n){const r=Math.max(e-aW,0);return Vk(n-t(r),e-r)}const um=.001,lW=.01,sS=10,uW=.05,cW=1;function fW({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let i,o;nh(t<=wu(sS),"Spring duration must be 10 seconds or less");let a=1-e;a=Ou(uW,cW,a),t=Ou(lW,sS,Al(t)),a<1?(i=d=>{const y=d*a,p=y*t,S=y-n,C=yv(d,a),A=Math.exp(-p);return um-S/C*A},o=d=>{const p=d*a*t,S=p*n+n,C=Math.pow(a,2)*Math.pow(d,2)*t,A=Math.exp(-p),I=yv(Math.pow(d,2),a);return(-i(d)+um>0?-1:1)*((S-C)*A)/I}):(i=d=>{const y=Math.exp(-d*t),p=(d-n)*t+1;return-um+y*p},o=d=>{const y=Math.exp(-d*t),p=(n-d)*(t*t);return y*p});const u=5/t,c=hW(i,o,u);if(t=wu(t),isNaN(c))return{stiffness:100,damping:10,duration:t};{const d=Math.pow(c,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),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 yv(t,e){return t*Math.sqrt(1-e*e)}const pW=["duration","bounce"],gW=["stiffness","damping","mass"];function aS(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(!aS(t,gW)&&aS(t,pW)){const n=fW(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}function Uk({keyframes:t,restDelta:e,restSpeed:n,...r}){const i=t[0],o=t[t.length-1],a={done:!1,value:i},{stiffness:u,damping:c,mass:d,duration:y,velocity:p,isResolvedFromDuration:S}=mW({...r,velocity:-Al(r.velocity||0)}),C=p||0,A=c/(2*Math.sqrt(u*d)),I=o-i,B=Al(Math.sqrt(u/d)),_=Math.abs(I)<5;n||(n=_?.01:2),e||(e=_?.005:.5);let G;if(A<1){const q=yv(B,A);G=se=>{const Q=Math.exp(-A*B*se);return o-Q*((C+A*B*I)/q*Math.sin(q*se)+I*Math.cos(q*se))}}else if(A===1)G=q=>o-Math.exp(-B*q)*(I+(C+B*I)*q);else{const q=B*Math.sqrt(A*A-1);G=se=>{const Q=Math.exp(-A*B*se),ye=Math.min(q*se,300);return o-Q*((C+A*B*I)*Math.sinh(ye)+q*I*Math.cosh(ye))/q}}return{calculatedDuration:S&&y||null,next:q=>{const se=G(q);if(S)a.done=q>=y;else{let Q=C;q!==0&&(A<1?Q=Hk(G,q,se):Q=0);const ye=Math.abs(Q)<=n,x=Math.abs(o-se)<=e;a.done=ye&&x}return a.value=a.done?o:se,a}}}function lS({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:u,max:c,restDelta:d=.5,restSpeed:y}){const p=t[0],S={done:!1,value:p},C=ae=>u!==void 0&&ae<u||c!==void 0&&ae>c,A=ae=>u===void 0?c:c===void 0||Math.abs(u-ae)<Math.abs(c-ae)?u:c;let I=n*e;const B=p+I,_=a===void 0?B:a(B);_!==B&&(I=_-p);const G=ae=>-I*Math.exp(-ae/r),q=ae=>_+G(ae),se=ae=>{const ce=G(ae),Be=q(ae);S.done=Math.abs(ce)<=d,S.value=S.done?_:Be};let Q,ye;const x=ae=>{C(S.value)&&(Q=ae,ye=Uk({keyframes:[S.value,A(S.value)],velocity:Hk(q,ae,S.value),damping:i,stiffness:o,restDelta:d,restSpeed:y}))};return x(0),{calculatedDuration:null,next:ae=>{let ce=!1;return!ye&&Q===void 0&&(ce=!0,se(ae),x(ae)),Q!==void 0&&ae>Q?ye.next(ae-Q):(!ce&&se(ae),S)}}}const vW=t=>{const e=({timestamp:n})=>t(n);return{start:()=>Vn.update(e,!0),stop:()=>Ll(e),now:()=>ji.isProcessing?ji.timestamp:performance.now()}},uS=2e4;function cS(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e<uS;)e+=n,r=t.next(e);return e>=uS?1/0:e}const yW={decay:lS,inertia:lS,tween:vp,keyframes:vp,spring:Uk};function yp({autoplay:t=!0,delay:e=0,driver:n=vW,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:a=0,repeatType:u="loop",onPlay:c,onStop:d,onComplete:y,onUpdate:p,...S}){let C=1,A=!1,I,B;const _=()=>{B=new Promise(_e=>{I=_e})};_();let G;const q=yW[i]||vp;let se;q!==vp&&typeof r[0]!="number"&&(process.env.NODE_ENV!=="production"&&ua(r.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${r}`),se=$k([0,100],r,{clamp:!1}),r=[0,100]);const Q=q({...S,keyframes:r});let ye;u==="mirror"&&(ye=q({...S,keyframes:[...r].reverse(),velocity:-(S.velocity||0)}));let x="idle",ae=null,ce=null,Be=null;Q.calculatedDuration===null&&o&&(Q.calculatedDuration=cS(Q));const{calculatedDuration:qe}=Q;let Ze=1/0,ot=1/0;qe!==null&&(Ze=qe+a,ot=Ze*(o+1)-a);let it=0;const me=_e=>{if(ce===null)return;C>0&&(ce=Math.min(ce,_e)),C<0&&(ce=Math.min(_e-ot/C,ce)),ae!==null?it=ae:it=Math.round(_e-ce)*C;const Xe=it-e*(C>=0?1:-1),Ge=C>=0?Xe<0:Xe>ot;it=Math.max(Xe,0),x==="finished"&&ae===null&&(it=ot);let tt=it,et=Q;if(o){const xt=Math.min(it,ot)/Ze;let gt=Math.floor(xt),Ct=xt%1;!Ct&&xt>=1&&(Ct=1),Ct===1&>--,gt=Math.min(gt,o+1),!!(gt%2)&&(u==="reverse"?(Ct=1-Ct,a&&(Ct-=a/Ze)):u==="mirror"&&(et=ye)),tt=Ou(0,1,Ct)*Ze}const nt=Ge?{done:!1,value:r[0]}:et.next(tt);se&&(nt.value=se(nt.value));let{done:lt}=nt;!Ge&&qe!==null&&(lt=C>=0?it>=ot:it<=0);const bt=ae===null&&(x==="finished"||x==="running"&<);return p&&p(nt.value),bt&&Ye(),nt},De=()=>{G&&G.stop(),G=void 0},Le=()=>{x="idle",De(),I(),_(),ce=Be=null},Ye=()=>{x="finished",y&&y(),De(),I()},st=()=>{if(A)return;G||(G=n(me));const _e=G.now();c&&c(),ae!==null?ce=_e-ae:(!ce||x==="finished")&&(ce=_e),x==="finished"&&_(),Be=ce,ae=null,x="running",G.start()};t&&st();const Ce={then(_e,Xe){return B.then(_e,Xe)},get time(){return Al(it)},set time(_e){_e=wu(_e),it=_e,ae!==null||!G||C===0?ae=_e:ce=G.now()-_e/C},get duration(){const _e=Q.calculatedDuration===null?cS(Q):Q.calculatedDuration;return Al(_e)},get speed(){return C},set speed(_e){_e===C||!G||(C=_e,Ce.time=Al(it))},get state(){return x},play:st,pause:()=>{x="paused",ae=it},stop:()=>{A=!0,x!=="idle"&&(x="idle",d&&d(),Le())},cancel:()=>{Be!==null&&me(Be),Le()},complete:()=>{x="finished"},sample:_e=>(ce=0,me(_e))};return Ce}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"]),Rh=10,SW=2e4,TW=(t,e)=>e.type==="spring"||t==="backgroundColor"||!wk(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,u,c,d=!1;const y=()=>{c=new Promise(q=>{u=q})};y();let{keyframes:p,duration:S=300,ease:C,times:A}=i;if(TW(e,i)){const q=yp({...i,repeat:0,delay:0});let se={done:!1,value:p[0]};const Q=[];let ye=0;for(;!se.done&&ye<SW;)se=q.sample(ye),Q.push(se.value),ye+=Rh;A=void 0,p=Q,S=ye-Rh,C="linear"}const I=LU(t.owner.current,e,p,{...i,duration:S,ease:C,times:A}),B=()=>{d=!1,I.cancel()},_=()=>{d=!0,Vn.update(B),u(),y()};return I.onfinish=()=>{d||(t.set(FU(p,i)),r&&r(),_())},{then(q,se){return c.then(q,se)},attachTimeline(q){return I.timeline=q,I.onfinish=null,ur},get time(){return Al(I.currentTime||0)},set time(q){I.currentTime=wu(q)},get speed(){return I.playbackRate},set speed(q){I.playbackRate=q},get duration(){return Al(S)},play:()=>{a||(I.play(),Ll(B))},pause:()=>I.pause(),stop:()=>{if(a=!0,I.playState==="idle")return;const{currentTime:q}=I;if(q){const se=yp({...i,autoplay:!1});t.setWithVelocity(se.sample(q-Rh).value,se.sample(q).value,Rh)}_()},complete:()=>{d||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:ur,pause:ur,stop:ur,then:o=>(o(),Promise.resolve()),cancel:ur,complete:ur});return e?yp({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:Vc.has(t)?t.startsWith("scale")?DW(e[1]):kW:OW,bv=(t,e)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(_u.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(Yp)||[];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,wv={..._u,getAnimatableNone:t=>{const e=t.match(IW);return e?e.map(AW).join(" "):t}},MW={...ik,color:ao,backgroundColor:ao,outlineColor:ao,fill:ao,stroke:ao,borderColor:ao,borderTopColor:ao,borderRightColor:ao,borderBottomColor:ao,borderLeftColor:ao,filter:wv,WebkitFilter:wv},qy=t=>MW[t];function Wk(t,e){let n=qy(t);return n!==wv&&(n=_u),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const zk=t=>/^0[^.\s]+$/.test(t);function LW(t){if(typeof t=="number")return t===0;if(t!==null)return t==="none"||t==="0"||zk(t)}function FW(t,e,n,r){const i=bv(e,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const a=r.from!==void 0?r.from:t.get();let u;const c=[];for(let d=0;d<o.length;d++)o[d]===null&&(o[d]=d===0?a:o[d-1]),LW(o[d])&&c.push(d),typeof o[d]=="string"&&o[d]!=="none"&&o[d]!=="0"&&(u=o[d]);if(i&&c.length&&u)for(let d=0;d<c.length;d++){const y=c[d];o[y]=Wk(e,u)}return o}function NW({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:u,from:c,elapsed:d,...y}){return!!Object.keys(y).length}function Xy(t,e){return t[e]||t.default||t}const jW={skipAnimations:!1},Ky=(t,e,n,r={})=>i=>{const o=Xy(r,t)||{},a=o.delay||r.delay||0;let{elapsed:u=0}=r;u=u-wu(a);const c=FW(e,t,n,o),d=c[0],y=c[c.length-1],p=bv(t,d),S=bv(t,y);nh(p===S,`You are trying to animate ${t} from "${d}" to "${y}". ${d} is not an animatable value - to enable this animation set ${d} to a value animatable to ${y} via the \`style\` property.`);let C={keyframes:c,velocity:e.getVelocity(),ease:"easeOut",...o,delay:-u,onUpdate:A=>{e.set(A),o.onUpdate&&o.onUpdate(A)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(NW(o)||(C={...C,..._W(t,C)}),C.duration&&(C.duration=wu(C.duration)),C.repeatDelay&&(C.repeatDelay=wu(C.repeatDelay)),!p||!S||MU.current||o.type===!1||jW.skipAnimations)return EW(C);if(!r.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const A=CW(e,t,C);if(A)return A}return yp(C)};function bp(t){return!!(Ro(t)&&t.add)}const Yk=t=>/^\-?\d*\.?\d+$/.test(t);function Zy(t,e){t.indexOf(e)===-1&&t.push(e)}function Jy(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Qy{constructor(){this.subscriptions=[]}add(e){return Zy(this.subscriptions,e),()=>Jy(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 fS=new Set;function eb(t,e,n){t||fS.has(e)||(console.warn(e),n&&console.warn(n),fS.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}=ji;this.lastUpdated!==a&&(this.timeDelta=o,this.lastUpdated=a,Vn.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=()=>Vn.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"&&eb(!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 Qy);const r=this.events[e].add(n);return e==="change"?()=>{r(),Vn.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?Vk(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 Lf(t,e){return new $W(t,e)}const Gk=t=>e=>e.test(t),VW={test:t=>t==="auto",parse:t=>t},qk=[Hc,jt,Ua,gu,XH,qH,VW],cd=t=>qk.find(Gk(t)),HW=[...qk,ao,_u],UW=t=>HW.find(Gk(t));function WW(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Lf(n))}function zW(t,e){const n=qp(t,e);let{transitionEnd:r={},transition:i={},...o}=n?t.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const a in o){const u=cU(o[a]);WW(t,a,u)}}function YW(t,e,n){var r,i;const o=Object.keys(e).filter(u=>!t.hasValue(u)),a=o.length;if(a)for(let u=0;u<a;u++){const c=o[u],d=e[c];let y=null;Array.isArray(d)&&(y=d[0]),y===null&&(y=(i=(r=n[c])!==null&&r!==void 0?r:t.readValue(c))!==null&&i!==void 0?i:e[c]),y!=null&&(typeof y=="string"&&(Yk(y)||zk(y))?y=parseFloat(y):!UW(y)&&_u.test(d)&&(y=Wk(c,d)),t.addValue(c,Lf(y,{owner:t})),n[c]===void 0&&(n[c]=y),y!==null&&t.setBaseTarget(c,y))}}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 Xk(t,e,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:a,...u}=t.makeTargetAnimatable(e);const c=t.getValue("willChange");r&&(o=r);const d=[],y=i&&t.animationState&&t.animationState.getState()[i];for(const p in u){const S=t.getValue(p),C=u[p];if(!S||C===void 0||y&&XW(y,p))continue;const A={delay:n,elapsed:0,...Xy(o||{},p)};if(window.HandoffAppearAnimations){const _=t.getProps()[KE];if(_){const G=window.HandoffAppearAnimations(_,p,S,Vn);G!==null&&(A.elapsed=G,A.isHandoff=!0)}}let I=!A.isHandoff&&!KW(S,C);if(A.type==="spring"&&(S.getVelocity()||A.velocity)&&(I=!1),S.animation&&(I=!1),I)continue;S.start(Ky(p,S,C,t.shouldReduceMotion&&Vc.has(p)?{type:!1}:A));const B=S.animation;bp(c)&&(c.add(p),B.then(()=>c.remove(p))),d.push(B)}return a&&Promise.all(d).then(()=>{a&&zW(t,a)}),d}function xv(t,e,n={}){const r=qp(t,e,n.custom);let{transition:i=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(Xk(t,r,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:y,staggerDirection:p}=i;return ZW(t,e,d+c,y,p,n)}:()=>Promise.resolve(),{when:u}=i;if(u){const[c,d]=u==="beforeChildren"?[o,a]:[a,o];return c().then(()=>d())}else return Promise.all([o(),a(n.delay)])}function ZW(t,e,n=0,r=0,i=1,o){const a=[],u=(t.variantChildren.size-1)*r,c=i===1?(d=0)=>d*r:(d=0)=>u-d*r;return Array.from(t.variantChildren).sort(JW).forEach((d,y)=>{d.notify("AnimationStart",e),a.push(xv(d,e,{...o,delay:n+c(y)}).then(()=>d.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=>xv(t,o,n));r=Promise.all(i)}else if(typeof e=="string")r=xv(t,e,n);else{const i=typeof e=="function"?qp(t,e,n.custom):e;r=Promise.all(Xk(t,i,n))}return r.then(()=>t.notify("AnimationComplete",e))}const ez=[...Fy].reverse(),tz=Fy.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=(c,d)=>{const y=qp(t,d);if(y){const{transition:p,transitionEnd:S,...C}=y;c={...c,...C,...S}}return c};function o(c){e=c(t)}function a(c,d){const y=t.getProps(),p=t.getVariantContext(!0)||{},S=[],C=new Set;let A={},I=1/0;for(let _=0;_<tz;_++){const G=ez[_],q=n[G],se=y[G]!==void 0?y[G]:p[G],Q=$d(se),ye=G===d?q.isActive:null;ye===!1&&(I=_);let x=se===p[G]&&se!==y[G]&&Q;if(x&&r&&t.manuallyAnimateOnMount&&(x=!1),q.protectedKeys={...A},!q.isActive&&ye===null||!se&&!q.prevProp||Wp(se)||typeof se=="boolean")continue;let ce=iz(q.prevProp,se)||G===d&&q.isActive&&!x&&Q||_>I&&Q,Be=!1;const qe=Array.isArray(se)?se:[se];let Ze=qe.reduce(i,{});ye===!1&&(Ze={});const{prevResolvedValues:ot={}}=q,it={...ot,...Ze},me=De=>{ce=!0,C.has(De)&&(Be=!0,C.delete(De)),q.needsAnimating[De]=!0};for(const De in it){const Le=Ze[De],Ye=ot[De];if(A.hasOwnProperty(De))continue;let st=!1;gp(Le)&&gp(Ye)?st=!yk(Le,Ye):st=Le!==Ye,st?Le!==void 0?me(De):C.add(De):Le!==void 0&&C.has(De)?me(De):q.protectedKeys[De]=!0}q.prevProp=se,q.prevResolvedValues=Ze,q.isActive&&(A={...A,...Ze}),r&&t.blockInitialAnimation&&(ce=!1),ce&&(!x||Be)&&S.push(...qe.map(De=>({animation:De,options:{type:G,...c}})))}if(C.size){const _={};C.forEach(G=>{const q=t.getBaseTarget(G);q!==void 0&&(_[G]=q)}),S.push({animation:_})}let B=!!S.length;return r&&(y.initial===!1||y.initial===y.animate)&&!t.manuallyAnimateOnMount&&(B=!1),r=!1,B?e(S):Promise.resolve()}function u(c,d,y){var p;if(n[c].isActive===d)return Promise.resolve();(p=t.variantChildren)===null||p===void 0||p.forEach(C=>{var A;return(A=C.animationState)===null||A===void 0?void 0:A.setActive(c,d)}),n[c].isActive=d;const S=a(y,c);for(const C in n)n[C].protectedKeys={};return S}return{animateChanges:a,setActive:u,setAnimateFunction:o,getState:()=>n}}function iz(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!yk(e,t):!1}function mc(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function oz(){return{animate:mc(!0),whileInView:mc(),whileHover:mc(),whileTap:mc(),whileDrag:mc(),whileFocus:mc(),exit:mc()}}class sz extends Mu{constructor(e){super(e),e.animationState||(e.animationState=rz(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),Wp(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 Mu{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}},dS=(t,e)=>Math.abs(t-e);function cz(t,e){const n=dS(t.x,e.x),r=dS(t.y,e.y);return Math.sqrt(n**2+r**2)}class Kk{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 p=fm(this.lastMoveEventInfo,this.history),S=this.startEvent!==null,C=cz(p.offset,{x:0,y:0})>=3;if(!S&&!C)return;const{point:A}=p,{timestamp:I}=ji;this.history.push({...A,timestamp:I});const{onStart:B,onMove:_}=this.handlers;S||(B&&B(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),_&&_(this.lastMoveEvent,p)},this.handlePointerMove=(p,S)=>{this.lastMoveEvent=p,this.lastMoveEventInfo=cm(S,this.transformPagePoint),Vn.update(this.updatePoint,!0)},this.handlePointerUp=(p,S)=>{this.end();const{onEnd:C,onSessionEnd:A,resumeAnimation:I}=this.handlers;if(this.dragSnapToOrigin&&I&&I(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const B=fm(p.type==="pointercancel"?this.lastMoveEventInfo:cm(S,this.transformPagePoint),this.history);this.startEvent&&C&&C(p,B),A&&A(p,B)},!hk(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=Gp(e),u=cm(a,this.transformPagePoint),{point:c}=u,{timestamp:d}=ji;this.history=[{...c,timestamp:d}];const{onSessionStart:y}=n;y&&y(e,fm(u,this.history)),this.removeListeners=bu(Rl(this.contextWindow,"pointermove",this.handlePointerMove),Rl(this.contextWindow,"pointerup",this.handlePointerUp),Rl(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Ll(this.updatePoint)}}function cm(t,e){return e?{point:e(t.point)}:t}function hS(t,e){return{x:t.x-e.x,y:t.y-e.y}}function fm({point:t},e){return{point:t,delta:hS(t,Zk(e)),offset:hS(t,fz(e)),velocity:dz(e,.1)}}function fz(t){return t[0]}function Zk(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=Zk(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>wu(e)));)n--;if(!r)return{x:0,y:0};const o=Al(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 is(t){return t.max-t.min}function Sv(t,e=0,n=.01){return Math.abs(t-e)<=n}function pS(t,e,n,r=.5){t.origin=r,t.originPoint=rr(e.min,e.max,t.origin),t.scale=is(n)/is(e),(Sv(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=rr(n.min,n.max,t.origin)-t.originPoint,(Sv(t.translate)||isNaN(t.translate))&&(t.translate=0)}function Pd(t,e,n,r){pS(t.x,e.x,n.x,r?r.originX:void 0),pS(t.y,e.y,n.y,r?r.originY:void 0)}function gS(t,e,n){t.min=n.min+e.min,t.max=t.min+is(e)}function hz(t,e,n){gS(t.x,e.x,n.x),gS(t.y,e.y,n.y)}function mS(t,e,n){t.min=e.min-n.min,t.max=t.min+is(e)}function Od(t,e,n){mS(t.x,e.x,n.x),mS(t.y,e.y,n.y)}function pz(t,{min:e,max:n},r){return e!==void 0&&t<e?t=r?rr(e,t,r.min):Math.max(t,e):n!==void 0&&t>n&&(t=r?rr(n,t,r.max):Math.min(t,n)),t}function vS(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:vS(t.x,n,i),y:vS(t.y,e,r)}}function yS(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:yS(t.x,e.x),y:yS(t.y,e.y)}}function vz(t,e){let n=.5;const r=is(t),i=is(e);return i>r?n=Hd(e.min,e.max-r,t.min):r>i&&(n=Hd(t.min,t.max-i,e.min)),Ou(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 Tv=.35;function bz(t=Tv){return t===!1?t=0:t===!0&&(t=Tv),{x:bS(t,"left","right"),y:bS(t,"top","bottom")}}function bS(t,e,n){return{min:wS(t,e),max:wS(t,n)}}function wS(t,e){return typeof t=="number"?t:t[e]||0}const xS=()=>({translate:0,scale:1,origin:0,originPoint:0}),Pf=()=>({x:xS(),y:xS()}),SS=()=>({min:0,max:0}),Pr=()=>({x:SS(),y:SS()});function _s(t){return[t("x"),t("y")]}function Jk({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 dm(t){return t===void 0||t===1}function Cv({scale:t,scaleX:e,scaleY:n}){return!dm(t)||!dm(e)||!dm(n)}function Tc(t){return Cv(t)||Qk(t)||t.z||t.rotate||t.rotateX||t.rotateY}function Qk(t){return TS(t.x)||TS(t.y)}function TS(t){return t&&t!=="0%"}function wp(t,e,n){const r=t-n,i=e*r;return n+i}function CS(t,e,n,r,i){return i!==void 0&&(t=wp(t,i,r)),wp(t,n,r)+e}function Ev(t,e=0,n=1,r,i){t.min=CS(t.min,e,n,r,i),t.max=CS(t.max,e,n,r,i)}function eD(t,{x:e,y:n}){Ev(t.x,e.translate,e.scale,e.originPoint),Ev(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 u=0;u<i;u++){o=n[u],a=o.projectionDelta;const c=o.instance;c&&c.style&&c.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Of(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(e.x*=a.x.scale,e.y*=a.y.scale,eD(t,a)),r&&Tc(o.latestValues)&&Of(t,o.latestValues))}e.x=ES(e.x),e.y=ES(e.y)}function ES(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function mu(t,e){t.min=t.min+e,t.max=t.max+e}function kS(t,e,[n,r,i]){const o=e[i]!==void 0?e[i]:.5,a=rr(t.min,t.max,o);Ev(t,e[n],e[r],a,e.scale)}const Tz=["x","scaleX","originX"],Cz=["y","scaleY","originY"];function Of(t,e){kS(t.x,e,Tz),kS(t.y,e,Cz)}function tD(t,e){return Jk(xz(t.getBoundingClientRect(),e))}function Ez(t,e,n){const r=tD(t,n),{scroll:i}=e;return i&&(mu(r.x,i.offset.x),mu(r.y,i.offset.y)),r}const nD=({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=Pr(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=y=>{const{dragSnapToOrigin:p}=this.getProps();p?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Gp(y,"page").point)},o=(y,p)=>{const{drag:S,dragPropagation:C,onDragStart:A}=this.getProps();if(S&&!C&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=gk(S),!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),_s(B=>{let _=this.getAxisMotionValue(B).get()||0;if(Ua.test(_)){const{projection:G}=this.visualElement;if(G&&G.layout){const q=G.layout.layoutBox[B];q&&(_=is(q)*(parseFloat(_)/100))}}this.originPoint[B]=_}),A&&Vn.update(()=>A(y,p),!1,!0);const{animationState:I}=this.visualElement;I&&I.setActive("whileDrag",!0)},a=(y,p)=>{const{dragPropagation:S,dragDirectionLock:C,onDirectionLock:A,onDrag:I}=this.getProps();if(!S&&!this.openGlobalLock)return;const{offset:B}=p;if(C&&this.currentDirection===null){this.currentDirection=Pz(B),this.currentDirection!==null&&A&&A(this.currentDirection);return}this.updateAxis("x",p.point,B),this.updateAxis("y",p.point,B),this.visualElement.render(),I&&I(y,p)},u=(y,p)=>this.stop(y,p),c=()=>_s(y=>{var p;return this.getAnimationState(y)==="paused"&&((p=this.getAxisMotionValue(y).animation)===null||p===void 0?void 0:p.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new Kk(e,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:u,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:nD(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&&Vn.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||!Ah(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&&kf(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&&_s(a=>{this.getAxisMotionValue(a)&&(this.constraints[a]=yz(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!kf(e))return!1;const r=e.current;ua(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 u=n(wz(a));this.hasMutatedConstraints=!!u,u&&(a=Jk(u))}return a}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:u}=this.getProps(),c=this.constraints||{},d=_s(y=>{if(!Ah(y,n,this.currentDirection))return;let p=c&&c[y]||{};a&&(p={min:0,max:0});const S=i?200:1e6,C=i?40:1e7,A={type:"inertia",velocity:r?e[y]:0,bounceStiffness:S,bounceDamping:C,timeConstant:750,restDelta:1,restSpeed:10,...o,...p};return this.startAxisValueAnimation(y,A)});return Promise.all(d).then(u)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return r.start(Ky(e,r,0,n))}stopAnimation(){_s(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){_s(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){_s(n=>{const{drag:r}=this.getProps();if(!Ah(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:u}=i.layout.layoutBox[n];o.set(e[n]-rr(a,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!kf(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};_s(a=>{const u=this.getAxisMotionValue(a);if(u){const c=u.get();i[a]=vz({min:c,max:c},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(),_s(a=>{if(!Ah(a,e,null))return;const u=this.getAxisMotionValue(a),{min:c,max:d}=this.constraints[a];u.set(rr(c,d,i[a]))})}addListeners(){if(!this.visualElement.current)return;kz.set(this.visualElement,this);const e=this.visualElement.current,n=Rl(e,"pointerdown",c=>{const{drag:d,dragListener:y=!0}=this.getProps();d&&y&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();kf(c)&&(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=Pl(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&(_s(y=>{const p=this.getAxisMotionValue(y);p&&(this.originPoint[y]+=c[y].translate,p.set(p.get()+c[y].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),u&&u()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=Tv,dragMomentum:u=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:u}}}function Ah(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 Mu{constructor(e){super(e),this.removeGroupControls=ur,this.removeListeners=ur,this.controls=new Dz(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ur}unmount(){this.removeGroupControls(),this.removeListeners()}}const DS=t=>(e,n)=>{t&&Vn.update(()=>t(e,n))};class _z extends Mu{constructor(){super(...arguments),this.removePointerDownListener=ur}onPointerDown(e){this.session=new Kk(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:nD(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:DS(e),onStart:DS(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&Vn.update(()=>i(o,a))}}}mount(){this.removePointerDownListener=Rl(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=Z.useContext(My);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:n,register:r}=t,i=Z.useId();return Z.useEffect(()=>r(i),[]),!e&&n?[!1,()=>n&&n(i)]:[!0]}const Xh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function PS(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const fd={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(jt.test(t))t=parseFloat(t);else return t;const n=PS(t,e.target.x),r=PS(t,e.target.y);return`${n}% ${r}%`}},Az={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,i=_u.parse(t);if(i.length>5)return r;const o=_u.createTransformer(t),a=typeof i[0]!="number"?1:0,u=n.x.scale*e.x,c=n.y.scale*e.y;i[0+a]/=u,i[1+a]/=c;const d=rr(u,c,.5);return typeof i[2+a]=="number"&&(i[2+a]/=d),typeof i[3+a]=="number"&&(i[3+a]/=d),o(i)}};class Iz extends Z.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()})),Xh.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()||Vn.postRender(()=>{const u=a.getStack();(!u||!u.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 rD(t){const[e,n]=Rz(),r=Z.useContext(JE);return Z.createElement(Iz,{...t,layoutGroup:r,switchLayoutGroup:Z.useContext(QE),isPresent:e,safeToRemove:n})}const Mz={borderRadius:{...fd,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:fd,borderTopRightRadius:fd,borderBottomLeftRadius:fd,borderBottomRightRadius:fd,boxShadow:Az},iD=["TopLeft","TopRight","BottomLeft","BottomRight"],Lz=iD.length,OS=t=>typeof t=="string"?parseFloat(t):t,_S=t=>typeof t=="number"||jt.test(t);function Fz(t,e,n,r,i,o){i?(t.opacity=rr(0,n.opacity!==void 0?n.opacity:1,Nz(r)),t.opacityExit=rr(e.opacity!==void 0?e.opacity:1,0,jz(r))):o&&(t.opacity=rr(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<Lz;a++){const u=`border${iD[a]}Radius`;let c=RS(e,u),d=RS(n,u);if(c===void 0&&d===void 0)continue;c||(c=0),d||(d=0),c===0||d===0||_S(c)===_S(d)?(t[u]=Math.max(rr(OS(c),OS(d),r),0),(Ua.test(d)||Ua.test(c))&&(t[u]+="%")):t[u]=d}(e.rotate||n.rotate)&&(t.rotate=rr(e.rotate||0,n.rotate||0,r))}function RS(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const Nz=oD(0,.5,Dk),jz=oD(.5,.95,ur);function oD(t,e,n){return r=>r<t?0:r>e?1:n(Hd(t,e,r))}function AS(t,e){t.min=e.min,t.max=e.max}function Ds(t,e){AS(t.x,e.x),AS(t.y,e.y)}function IS(t,e,n,r,i){return t-=e,t=wp(t,1/n,r),i!==void 0&&(t=wp(t,1/i,r)),t}function Bz(t,e=0,n=1,r=.5,i,o=t,a=t){if(Ua.test(e)&&(e=parseFloat(e),e=rr(a.min,a.max,e/100)-a.min),typeof e!="number")return;let u=rr(o.min,o.max,r);t===o&&(u-=e),t.min=IS(t.min,e,n,u,i),t.max=IS(t.max,e,n,u,i)}function MS(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 LS(t,e,n,r){MS(t.x,e,$z,n?n.x:void 0,r?r.x:void 0),MS(t.y,e,Vz,n?n.y:void 0,r?r.y:void 0)}function FS(t){return t.translate===0&&t.scale===1}function sD(t){return FS(t.x)&&FS(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 aD(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 NS(t){return is(t.x)/is(t.y)}class Uz{constructor(){this.members=[]}add(e){Zy(this.members,e),e.scheduleRender()}remove(e){if(Jy(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 jS(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:c,rotateX:d,rotateY:y}=n;c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),y&&(r+=`rotateY(${y}deg) `)}const a=t.x.scale*e.x,u=t.y.scale*e.y;return(a!==1||u!==1)&&(r+=`scale(${a}, ${u})`),r||"none"}const Wz=(t,e)=>t.depth-e.depth;class zz{constructor(){this.children=[],this.isDirty=!1}add(e){Zy(this.children,e),this.isDirty=!0}remove(e){Jy(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&&(Ll(r),t(o-e))};return Vn.read(r,!0),()=>Ll(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:Lf(t);return r.start(Ky("",r,e,n)),r.animation}const BS=["","X","Y","Z"],Kz={visibility:"hidden"},$S=1e3;let Zz=0;const Cc={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function lD({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},u=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,Cc.totalNodes=Cc.resolvedTargetDeltas=Cc.recalculatedProjection=0,this.nodes.forEach(e5),this.nodes.forEach(o5),this.nodes.forEach(s5),this.nodes.forEach(t5),Gz(Cc)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new zz)}addEventListener(a,u){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Qy),this.eventHandlers.get(a).add(u)}notifyListeners(a,...u){const c=this.eventHandlers.get(a);c&&c.notify(...u)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,u=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=qz(a),this.instance=a;const{layoutId:c,layout:d,visualElement:y}=this.options;if(y&&!y.current&&y.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),u&&(d||c)&&(this.isLayoutDirty=!0),t){let p;const S=()=>this.root.updateBlockedByResize=!1;t(a,()=>{this.root.updateBlockedByResize=!0,p&&p(),p=Yz(S,250),Xh.hasAnimatedSinceResize&&(Xh.hasAnimatedSinceResize=!1,this.nodes.forEach(HS))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&y&&(c||d)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:S,hasRelativeTargetChanged:C,layout:A})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const I=this.options.transition||y.getDefaultTransition()||f5,{onLayoutAnimationStart:B,onLayoutAnimationComplete:_}=y.getProps(),G=!this.targetLayout||!aD(this.targetLayout,A)||C,q=!S&&C;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||q||S&&(G||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(p,q);const se={...Xy(I,"layout"),onPlay:B,onComplete:_};(y.shouldReduceMotion||this.options.layoutRoot)&&(se.delay=0,se.type=!1),this.startAnimation(se)}else S||HS(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,Ll(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 y=0;y<this.path.length;y++){const p=this.path[y];p.shouldResetTransform=!0,p.updateScroll("snapshot"),p.options.layoutRoot&&p.willUpdate(!1)}const{layoutId:u,layout:c}=this.options;if(u===void 0&&!c)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(VS);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 u=performance.now();ji.delta=Ou(0,1e3/60,u-ji.timestamp),ji.timestamp=u,ji.isProcessing=!0,nm.update.process(ji),nm.preRender.process(ji),nm.render.process(ji),ji.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,Vn.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Vn.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 c=0;c<this.path.length;c++)this.path[c].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Pr(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:u}=this.options;u&&u.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let u=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(u=!1),u&&(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,u=this.projectionDelta&&!sD(this.projectionDelta),c=this.getTransformTemplate(),d=c?c(this.latestValues,""):void 0,y=d!==this.prevTransformTemplateValue;a&&(u||Tc(this.latestValues)||y)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const u=this.measurePageBox();let c=this.removeElementScroll(u);return a&&(c=this.removeTransform(c)),d5(c),{animationId:this.root.animationId,measuredBox:u,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:a}=this.options;if(!a)return Pr();const u=a.measureViewportBox(),{scroll:c}=this.root;return c&&(mu(u.x,c.offset.x),mu(u.y,c.offset.y)),u}removeElementScroll(a){const u=Pr();Ds(u,a);for(let c=0;c<this.path.length;c++){const d=this.path[c],{scroll:y,options:p}=d;if(d!==this.root&&y&&p.layoutScroll){if(y.isRoot){Ds(u,a);const{scroll:S}=this.root;S&&(mu(u.x,-S.offset.x),mu(u.y,-S.offset.y))}mu(u.x,y.offset.x),mu(u.y,y.offset.y)}}return u}applyTransform(a,u=!1){const c=Pr();Ds(c,a);for(let d=0;d<this.path.length;d++){const y=this.path[d];!u&&y.options.layoutScroll&&y.scroll&&y!==y.root&&Of(c,{x:-y.scroll.offset.x,y:-y.scroll.offset.y}),Tc(y.latestValues)&&Of(c,y.latestValues)}return Tc(this.latestValues)&&Of(c,this.latestValues),c}removeTransform(a){const u=Pr();Ds(u,a);for(let c=0;c<this.path.length;c++){const d=this.path[c];if(!d.instance||!Tc(d.latestValues))continue;Cv(d.latestValues)&&d.updateSnapshot();const y=Pr(),p=d.measurePageBox();Ds(y,p),LS(u,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,y)}return Tc(this.latestValues)&&LS(u,this.latestValues),u}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!==ji.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var u;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==c;if(!(a||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((u=this.parent)===null||u===void 0)&&u.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:p,layoutId:S}=this.options;if(!(!this.layout||!(p||S))){if(this.resolvedRelativeTargetAt=ji.timestamp,!this.targetDelta&&!this.relativeTarget){const C=this.getClosestProjectingParent();C&&C.layout&&this.animationProgress!==1?(this.relativeParent=C,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Pr(),this.relativeTargetOrigin=Pr(),Od(this.relativeTargetOrigin,this.layout.layoutBox,C.layout.layoutBox),Ds(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Pr(),this.targetWithTransforms=Pr()),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):Ds(this.target,this.layout.layoutBox),eD(this.target,this.targetDelta)):Ds(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const C=this.getClosestProjectingParent();C&&!!C.resumingFrom==!!this.resumingFrom&&!C.options.layoutScroll&&C.target&&this.animationProgress!==1?(this.relativeParent=C,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Pr(),this.relativeTargetOrigin=Pr(),Od(this.relativeTargetOrigin,this.target,C.target),Ds(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Cc.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Cv(this.parent.latestValues)||Qk(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 u=this.getLead(),c=!!this.resumingFrom||this!==u;let d=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(d=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===ji.timestamp&&(d=!1),d)return;const{layout:y,layoutId:p}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(y||p))return;Ds(this.layoutCorrected,this.layout.layoutBox);const S=this.treeScale.x,C=this.treeScale.y;Sz(this.layoutCorrected,this.treeScale,this.path,c),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox);const{target:A}=u;if(!A){this.projectionTransform&&(this.projectionDelta=Pf(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Pf(),this.projectionDeltaWithTransform=Pf());const I=this.projectionTransform;Pd(this.projectionDelta,this.layoutCorrected,A,this.latestValues),this.projectionTransform=jS(this.projectionDelta,this.treeScale),(this.projectionTransform!==I||this.treeScale.x!==S||this.treeScale.y!==C)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",A)),Cc.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),a){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(a,u=!1){const c=this.snapshot,d=c?c.latestValues:{},y={...this.latestValues},p=Pf();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const S=Pr(),C=c?c.source:void 0,A=this.layout?this.layout.source:void 0,I=C!==A,B=this.getStack(),_=!B||B.members.length<=1,G=!!(I&&!_&&this.options.crossfade===!0&&!this.path.some(c5));this.animationProgress=0;let q;this.mixTargetDelta=se=>{const Q=se/1e3;US(p.x,a.x,Q),US(p.y,a.y,Q),this.setTargetDelta(p),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Od(S,this.layout.layoutBox,this.relativeParent.layout.layoutBox),u5(this.relativeTarget,this.relativeTargetOrigin,S,Q),q&&Hz(this.relativeTarget,q)&&(this.isProjectionDirty=!1),q||(q=Pr()),Ds(q,this.relativeTarget)),I&&(this.animationValues=y,Fz(y,d,this.latestValues,Q,G,_)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=Q},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ll(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Vn.update(()=>{Xh.hasAnimatedSinceResize=!0,this.currentAnimation=Xz(0,$S,{...a,onUpdate:u=>{this.mixTargetDelta(u),a.onUpdate&&a.onUpdate(u)},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($S),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:u,target:c,layout:d,latestValues:y}=a;if(!(!u||!c||!d)){if(this!==a&&this.layout&&d&&uD(this.options.animationType,this.layout.layoutBox,d.layoutBox)){c=this.target||Pr();const p=is(this.layout.layoutBox.x);c.x.min=a.target.x.min,c.x.max=c.x.min+p;const S=is(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+S}Ds(u,c),Of(u,y),Pd(this.projectionDeltaWithTransform,this.layoutCorrected,u,y)}}registerSharedNode(a,u){this.sharedNodes.has(a)||this.sharedNodes.set(a,new Uz),this.sharedNodes.get(a).add(u);const d=u.options.initialPromotionConfig;u.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(u):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:u}=this.options;return u?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:u}=this.options;return u?(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:u,preserveFollowOpacity:c}={}){const d=this.getStack();d&&d.promote(this,c),a&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetRotation(){const{visualElement:a}=this.options;if(!a)return;let u=!1;const{latestValues:c}=a;if((c.rotate||c.rotateX||c.rotateY||c.rotateZ)&&(u=!0),!u)return;const d={};for(let y=0;y<BS.length;y++){const p="rotate"+BS[y];c[p]&&(d[p]=c[p],a.setStaticValue(p,0))}a.render();for(const y in d)a.setStaticValue(y,d[y]);a.scheduleRender()}getProjectionStyles(a){var u,c;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Kz;const d={visibility:""},y=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=qh(a==null?void 0:a.pointerEvents)||"",d.transform=y?y(this.latestValues,""):"none",d;const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){const I={};return this.options.layoutId&&(I.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,I.pointerEvents=qh(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Tc(this.latestValues)&&(I.transform=y?y({},""):"none",this.hasProjected=!1),I}const S=p.animationValues||p.latestValues;this.applyTransformsToTarget(),d.transform=jS(this.projectionDeltaWithTransform,this.treeScale,S),y&&(d.transform=y(S,d.transform));const{x:C,y:A}=this.projectionDelta;d.transformOrigin=`${C.origin*100}% ${A.origin*100}% 0`,p.animationValues?d.opacity=p===this?(c=(u=S.opacity)!==null&&u!==void 0?u:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:S.opacityExit:d.opacity=p===this?S.opacity!==void 0?S.opacity:"":S.opacityExit!==void 0?S.opacityExit:0;for(const I in hp){if(S[I]===void 0)continue;const{correct:B,applyTo:_}=hp[I],G=d.transform==="none"?S[I]:B(S[I],p);if(_){const q=_.length;for(let se=0;se<q;se++)d[_[se]]=G}else d[I]=G}return this.options.layoutId&&(d.pointerEvents=p===this?qh(a==null?void 0:a.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var u;return(u=a.currentAnimation)===null||u===void 0?void 0:u.stop()}),this.root.nodes.forEach(VS),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"?_s(p=>{const S=a?n.measuredBox[p]:n.layoutBox[p],C=is(S);S.min=r[p].min,S.max=S.min+C}):uD(o,n.layoutBox,r)&&_s(p=>{const S=a?n.measuredBox[p]:n.layoutBox[p],C=is(r[p]);S.max=S.min+C,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[p].max=t.relativeTarget[p].min+C)});const u=Pf();Pd(u,r,n.layoutBox);const c=Pf();a?Pd(c,t.applyTransform(i,!0),n.measuredBox):Pd(c,r,n.layoutBox);const d=!sD(u);let y=!1;if(!t.resumeFrom){const p=t.getClosestProjectingParent();if(p&&!p.resumeFrom){const{snapshot:S,layout:C}=p;if(S&&C){const A=Pr();Od(A,n.layoutBox,S.layoutBox);const I=Pr();Od(I,r,C.layoutBox),aD(A,I)||(y=!0),p.options.layoutRoot&&(t.relativeTarget=I,t.relativeTargetOrigin=A,t.relativeParent=p)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:c,layoutDelta:u,hasLayoutChanged:d,hasRelativeTargetChanged:y})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function e5(t){Cc.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function t5(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function n5(t){t.clearSnapshot()}function VS(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 HS(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 US(t,e,n){t.translate=rr(e.translate,0,n),t.scale=rr(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function WS(t,e,n,r){t.min=rr(e.min,n.min,r),t.max=rr(e.max,n.max,r)}function u5(t,e,n,r){WS(t.x,e.x,n.x,r),WS(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]},zS=t=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(t),YS=zS("applewebkit/")&&!zS("chrome/")?Math.round:ur;function GS(t){t.min=YS(t.min),t.max=YS(t.max)}function d5(t){GS(t.x),GS(t.y)}function uD(t,e,n){return t==="position"||t==="preserve-aspect"&&!Sv(NS(e),NS(n),.2)}const h5=lD({attachResizeListener:(t,e)=>Pl(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),hm={current:void 0},cD=lD({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!hm.current){const t=new h5({});t.mount(window),t.setOptions({layoutScroll:!0}),hm.current=t}return hm.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:cD,MeasureLayout:rD}},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 kv(t,e,n=1){ua(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 Yk(a)?parseFloat(a):a}else return gv(i)?kv(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(!gv(o))return;const a=kv(o,r);a&&i.set(a)});for(const i in e){const o=e[i];if(!gv(o))continue;const a=kv(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"]),fD=t=>b5.has(t),w5=t=>Object.keys(t).some(fD),Ih=t=>t===Hc||t===jt,qS=(t,e)=>parseFloat(t.split(", ")[e]),XS=(t,e)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return qS(i[1],e);{const o=r.match(/^matrix\((.+)\)$/);return o?qS(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 Ff={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:XS(4,13),y:XS(5,14)};Ff.translateX=Ff.x;Ff.translateY=Ff.y;const C5=(t,e,n)=>{const r=e.measureViewportBox(),i=e.current,o=getComputedStyle(i),{display:a}=o,u={};a==="none"&&e.setStaticValue("display",t.display||"block"),n.forEach(d=>{u[d]=Ff[d](r,o)}),e.render();const c=e.measureViewportBox();return n.forEach(d=>{const y=e.getValue(d);y&&y.jump(u[d]),t[d]=Ff[d](c,o)}),t},E5=(t,e,n={},r={})=>{e={...e},r={...r};const i=Object.keys(e).filter(fD);let o=[],a=!1;const u=[];if(i.forEach(c=>{const d=t.getValue(c);if(!t.hasValue(c))return;let y=n[c],p=cd(y);const S=e[c];let C;if(gp(S)){const A=S.length,I=S[0]===null?1:0;y=S[I],p=cd(y);for(let B=I;B<A&&S[B]!==null;B++)C?ua(cd(S[B])===C,"All keyframes must be of the same type"):(C=cd(S[B]),ua(C===p||Ih(p)&&Ih(C),"Keyframes must be of the same dimension as the current value"))}else C=cd(S);if(p!==C)if(Ih(p)&&Ih(C)){const A=d.get();typeof A=="string"&&d.set(parseFloat(A)),typeof S=="string"?e[c]=parseFloat(S):Array.isArray(S)&&C===jt&&(e[c]=S.map(parseFloat))}else p!=null&&p.transform&&(C!=null&&C.transform)&&(y===0||S===0)?y===0?d.set(C.transform(y)):e[c]=p.transform(S):(a||(o=T5(t),a=!0),u.push(c),r[c]=r[c]!==void 0?r[c]:e[c],d.jump(S))}),u.length){const c=u.indexOf("height")>=0?window.pageYOffset:null,d=C5(e,t,u);return o.length&&o.forEach(([y,p])=>{t.getValue(y).set(p)}),t.render(),Up&&c!==null&&window.scrollTo({top:c}),{target:d,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)},Dv={current:null},dD={current:!1};function P5(){if(dD.current=!0,!!Up)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Dv.current=t.matches;t.addListener(e),e()}else Dv.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),bp(r)&&r.add(i),process.env.NODE_ENV==="development"&&eb(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,Lf(o,{owner:t})),bp(r)&&r.remove(i);else if(a!==o)if(t.hasValue(i)){const u=t.getValue(i);!u.hasAnimated&&u.set(o)}else{const u=t.getStaticValue(i);t.addValue(i,Lf(u!==void 0?u:o,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const KS=new WeakMap,hD=Object.keys(Vd),_5=hD.length,ZS=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],R5=Ny.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=()=>Vn.render(this.render,!1,!0);const{latestValues:u,renderState:c}=o;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=c,this.parent=e,this.props=n,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.isControllingVariants=zp(n),this.isVariantNode=ZE(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:d,...y}=this.scrapeMotionValuesFromProps(n,{});for(const p in y){const S=y[p];u[p]!==void 0&&Ro(S)&&(S.set(u[p],!1),bp(d)&&d.add(p))}}scrapeMotionValuesFromProps(e,n){return{}}mount(e){this.current=e,KS.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)),dD.current||P5(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Dv.current,process.env.NODE_ENV!=="production"&&eb(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(){KS.delete(this.current),this.projection&&this.projection.unmount(),Ll(this.notifyUpdate),Ll(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=Vc.has(e),i=n.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&Vn.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,u;if(process.env.NODE_ENV!=="production"&&i&&r){const c="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";n.ignoreStrict?nh(!1,c):ua(!1,c)}for(let c=0;c<_5;c++){const d=hD[c],{isEnabled:y,Feature:p,ProjectionNode:S,MeasureLayout:C}=Vd[d];S&&(a=S),y(n)&&(!this.features[d]&&p&&(this.features[d]=new p(this)),C&&(u=C))}if((this.type==="html"||this.type==="svg")&&!this.projection&&a){this.projection=new a(this.latestValues,this.parent&&this.parent.projection);const{layoutId:c,layout:d,drag:y,dragConstraints:p,layoutScroll:S,layoutRoot:C}=n;this.projection.setOptions({layoutId:c,layout:d,alwaysMeasureLayout:!!y||p&&kf(p),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof d=="string"?d:"both",initialPromotionConfig:o,layoutScroll:S,layoutRoot:C})}return u}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):Pr()}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<ZS.length;r++){const i=ZS[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=Ny[r],o=this.props[i];($d(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=Lf(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=Wy(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 Qy),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class pD 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 u=D5(this,r,a,n);n=u.transitionEnd,r=u.target}return{transition:e,transitionEnd:n,...r}}}function I5(t){return window.getComputedStyle(t)}class M5 extends pD{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,n){if(Vc.has(n)){const r=qy(n);return r&&r.default||0}else{const r=I5(e),i=(nk(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return tD(e,n)}build(e,n,r,i){By(e,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(e,n){return Uy(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){lk(e,n,r,i)}}class L5 extends pD{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Vc.has(n)){const r=qy(n);return r&&r.default||0}return n=uk.has(n)?n:Ly(n),e.getAttribute(n)}measureInstanceViewportBox(){return Pr()}scrapeMotionValuesFromProps(e,n){return fk(e,n)}build(e,n,r,i){Vy(e,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(e,n,r,i){ck(e,n,r,i)}mount(e){this.isSVGTag=Hy(e.tagName),super.mount(e)}}const F5=(t,e)=>jy(t)?new L5(e,{enableHardwareAcceleration:!1}):new M5(e,{enableHardwareAcceleration:!0}),N5={layout:{ProjectionNode:cD,MeasureLayout:rD}},j5={...uz,...RU,...p5,...N5},gD=BH((t,e)=>yU(t,e,j5,F5));function mD(t){return Dp({tag:"svg",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 vD(t){return Dp({tag:"svg",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 tb(t,e){return e?t:void 0}function B5(t){return $e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",...t,children:$e.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]=Z.useState({top:0,left:0}),a=Z.useRef(null),[u,c]=Z.useState("auto");return Z.useLayoutEffect(()=>{if(n.current&&a.current){const d=n.current.getBoundingClientRect(),y=a.current.getBoundingClientRect();let p=d.top;const S=d.left+d.width,C=y.height+(window.innerHeight-d.top)>window.innerHeight;C&&(console.log("overtop"),c(window.innerHeight-d.top-50)),d.top+y.height>window.innerHeight&&!C&&(p=d.top-y.height+d.height),o({top:p,left:S})}},[n,a]),r?e({maxHeight:u}):jv.createPortal($e.jsx("div",{ref:a,style:{position:"fixed",top:i.top,left:i.left,zIndex:1200},onDragStart:d=>{console.log("onDragStart Dropdown",d.target)},children:e({maxHeight:u})}),n.current)}function Nf(){return Nf=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},Nf.apply(null,arguments)}const V5=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Nf}},Symbol.toStringTag,{value:"Module"}));function yD(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Zh(t,e)}function pm(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))}/*!
|
|
12
|
-
* content-type
|
|
13
|
-
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
14
|
-
* MIT Licensed
|
|
15
|
-
*/var JS=/; *([!#$%&'*+.^_`|~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,u;for(JS.lastIndex=n;a=JS.exec(e);){if(a.index!==n)throw new TypeError("invalid parameter format");n+=a[0].length,o=a[1].toLowerCase(),u=a[2],u.charCodeAt(0)===34&&(u=u.slice(1,-1),u.indexOf("\\")!==-1&&(u=u.replace(H5,"$1"))),i.parameters[o]=u}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 bf=new Map,bD=function(e){return e.cloneNode(!0)},QS=function(){return window.location.protocol==="file:"},wD=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(QS()?"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||QS()&&i.status===0)r(null,i);else throw new Error("There was a problem injecting the SVG: "+i.status+" "+i.statusText)}}catch(u){if(i.abort(),u instanceof Error)r(u,i);else throw u}},i.open("GET",e),i.withCredentials=n,i.overrideMimeType&&i.overrideMimeType("text/xml"),i.send()},vu={},e1=function(e,n){vu[e]=vu[e]||[],vu[e].push(n)},q5=function(e){for(var n=function(a,u){setTimeout(function(){if(Array.isArray(vu[e])){var c=bf.get(e),d=vu[e][a];c instanceof SVGSVGElement&&d(null,bD(c)),c instanceof Error&&d(c),a===vu[e].length-1&&delete vu[e]}},0)},r=0,i=vu[e].length;r<i;r++)n(r)},X5=function(e,n,r){if(bf.has(e)){var i=bf.get(e);if(i===void 0){e1(e,r);return}if(i instanceof SVGSVGElement){r(null,bD(i));return}}bf.set(e,void 0),e1(e,r),wD(e,n,function(o,a){var u;o?bf.set(e,o):((u=a.responseXML)===null||u===void 0?void 0:u.documentElement)instanceof SVGSVGElement&&bf.set(e,a.responseXML.documentElement),q5(e)})},K5=function(e,n,r){wD(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},ja=[],t1={},Q5="http://www.w3.org/2000/svg",gm="http://www.w3.org/1999/xlink",n1=function(e,n,r,i,o,a,u){var c=e.getAttribute("data-src")||e.getAttribute("src");if(!c){u(new Error("Invalid data-src or src attribute"));return}if(ja.indexOf(e)!==-1){ja.splice(ja.indexOf(e),1),e=null;return}ja.push(e),e.setAttribute("src","");var d=i?X5:K5;d(c,o,function(y,p){if(!p){ja.splice(ja.indexOf(e),1),e=null,u(y);return}var S=e.getAttribute("id");S&&p.setAttribute("id",S);var C=e.getAttribute("title");C&&p.setAttribute("title",C);var A=e.getAttribute("width");A&&p.setAttribute("width",A);var I=e.getAttribute("height");I&&p.setAttribute("height",I);var B=Array.from(new Set(pm(pm(pm([],(p.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(e.getAttribute("class")||"").split(" "),!0))).join(" ").trim();p.setAttribute("class",B);var _=e.getAttribute("style");_&&p.setAttribute("style",_),p.setAttribute("data-src",c);var G=[].filter.call(e.attributes,function(Ye){return/^data-\w[\w-]*$/.test(Ye.name)});if(Array.prototype.forEach.call(G,function(Ye){Ye.name&&Ye.value&&p.setAttribute(Ye.name,Ye.value)}),r){var q={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"]},se,Q,ye,x,ae;Object.keys(q).forEach(function(Ye){se=Ye,ye=q[Ye],Q=p.querySelectorAll(se+"[id]");for(var st=function(Ge,tt){x=Q[Ge].id,ae=x+"-"+J5();var et;Array.prototype.forEach.call(ye,function(Bt){et=p.querySelectorAll("["+Bt+'*="'+x+'"]');for(var Vt=0,qn=et.length;Vt<qn;Vt++){var yr=et[Vt].getAttribute(Bt);yr&&!yr.match(new RegExp('url\\("?#'+x+'"?\\)'))||et[Vt].setAttribute(Bt,"url(#"+ae+")")}});for(var nt=p.querySelectorAll("[*|href]"),lt=[],bt=0,xt=nt.length;bt<xt;bt++){var gt=nt[bt].getAttributeNS(gm,"href");gt&>.toString()==="#"+Q[Ge].id&<.push(nt[bt])}for(var Ct=0,rt=lt.length;Ct<rt;Ct++)lt[Ct].setAttributeNS(gm,"href","#"+ae);Q[Ge].id=ae},Ce=0,_e=Q.length;Ce<_e;Ce++)st(Ce)})}p.removeAttribute("xmlns:a");for(var ce=p.querySelectorAll("script"),Be=[],qe,Ze,ot=0,it=ce.length;ot<it;ot++)Ze=ce[ot].getAttribute("type"),(!Ze||Ze==="application/ecmascript"||Ze==="application/javascript"||Ze==="text/javascript")&&(qe=ce[ot].innerText||ce[ot].textContent,qe&&Be.push(qe),p.removeChild(ce[ot]));if(Be.length>0&&(n==="always"||n==="once"&&!t1[c])){for(var me=0,De=Be.length;me<De;me++)new Function(Be[me])(window);t1[c]=!0}var Le=p.querySelectorAll("style");if(Array.prototype.forEach.call(Le,function(Ye){Ye.textContent+=""}),p.setAttribute("xmlns",Q5),p.setAttribute("xmlns:xlink",gm),a(p),!e.parentNode){ja.splice(ja.indexOf(e),1),e=null,u(new Error("Parent node is null"));return}e.parentNode.replaceChild(p,e),ja.splice(ja.indexOf(e),1),e=null,u(null,p)})},e4=function(e,n){var r=n===void 0?{}:n,i=r.afterAll,o=i===void 0?function(){}:i,a=r.afterEach,u=a===void 0?function(){}:a,c=r.beforeEach,d=c===void 0?function(){}:c,y=r.cacheRequests,p=y===void 0?!0:y,S=r.evalScripts,C=S===void 0?"never":S,A=r.httpRequestWithCredentials,I=A===void 0?!1:A,B=r.renumerateIRIElements,_=B===void 0?!0:B;if(e&&"length"in e)for(var G=0,q=0,se=e.length;q<se;q++)n1(e[q],C,_,p,I,d,function(Q,ye){u(Q,ye),e&&"length"in e&&e.length===++G&&o(G)});else e?n1(e,C,_,p,I,d,function(Q,ye){u(Q,ye),o(1),e=null}):o(0)},Pv={exports:{}},Mh={exports:{}},wn={};/** @license React v16.13.1
|
|
16
|
-
* react-is.production.min.js
|
|
17
|
-
*
|
|
18
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
19
|
-
*
|
|
20
|
-
* This source code is licensed under the MIT license found in the
|
|
21
|
-
* LICENSE file in the root directory of this source tree.
|
|
22
|
-
*/var r1;function t4(){if(r1)return wn;r1=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,u=t?Symbol.for("react.context"):60110,c=t?Symbol.for("react.async_mode"):60111,d=t?Symbol.for("react.concurrent_mode"):60111,y=t?Symbol.for("react.forward_ref"):60112,p=t?Symbol.for("react.suspense"):60113,S=t?Symbol.for("react.suspense_list"):60120,C=t?Symbol.for("react.memo"):60115,A=t?Symbol.for("react.lazy"):60116,I=t?Symbol.for("react.block"):60121,B=t?Symbol.for("react.fundamental"):60117,_=t?Symbol.for("react.responder"):60118,G=t?Symbol.for("react.scope"):60119;function q(Q){if(typeof Q=="object"&&Q!==null){var ye=Q.$$typeof;switch(ye){case e:switch(Q=Q.type,Q){case c:case d:case r:case o:case i:case p:return Q;default:switch(Q=Q&&Q.$$typeof,Q){case u:case y:case A:case C:case a:return Q;default:return ye}}case n:return ye}}}function se(Q){return q(Q)===d}return wn.AsyncMode=c,wn.ConcurrentMode=d,wn.ContextConsumer=u,wn.ContextProvider=a,wn.Element=e,wn.ForwardRef=y,wn.Fragment=r,wn.Lazy=A,wn.Memo=C,wn.Portal=n,wn.Profiler=o,wn.StrictMode=i,wn.Suspense=p,wn.isAsyncMode=function(Q){return se(Q)||q(Q)===c},wn.isConcurrentMode=se,wn.isContextConsumer=function(Q){return q(Q)===u},wn.isContextProvider=function(Q){return q(Q)===a},wn.isElement=function(Q){return typeof Q=="object"&&Q!==null&&Q.$$typeof===e},wn.isForwardRef=function(Q){return q(Q)===y},wn.isFragment=function(Q){return q(Q)===r},wn.isLazy=function(Q){return q(Q)===A},wn.isMemo=function(Q){return q(Q)===C},wn.isPortal=function(Q){return q(Q)===n},wn.isProfiler=function(Q){return q(Q)===o},wn.isStrictMode=function(Q){return q(Q)===i},wn.isSuspense=function(Q){return q(Q)===p},wn.isValidElementType=function(Q){return typeof Q=="string"||typeof Q=="function"||Q===r||Q===d||Q===o||Q===i||Q===p||Q===S||typeof Q=="object"&&Q!==null&&(Q.$$typeof===A||Q.$$typeof===C||Q.$$typeof===a||Q.$$typeof===u||Q.$$typeof===y||Q.$$typeof===B||Q.$$typeof===_||Q.$$typeof===G||Q.$$typeof===I)},wn.typeOf=q,wn}var xn={};/** @license React v16.13.1
|
|
23
|
-
* react-is.development.js
|
|
24
|
-
*
|
|
25
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
26
|
-
*
|
|
27
|
-
* This source code is licensed under the MIT license found in the
|
|
28
|
-
* LICENSE file in the root directory of this source tree.
|
|
29
|
-
*/var i1;function n4(){return i1||(i1=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,u=t?Symbol.for("react.context"):60110,c=t?Symbol.for("react.async_mode"):60111,d=t?Symbol.for("react.concurrent_mode"):60111,y=t?Symbol.for("react.forward_ref"):60112,p=t?Symbol.for("react.suspense"):60113,S=t?Symbol.for("react.suspense_list"):60120,C=t?Symbol.for("react.memo"):60115,A=t?Symbol.for("react.lazy"):60116,I=t?Symbol.for("react.block"):60121,B=t?Symbol.for("react.fundamental"):60117,_=t?Symbol.for("react.responder"):60118,G=t?Symbol.for("react.scope"):60119;function q(rt){return typeof rt=="string"||typeof rt=="function"||rt===r||rt===d||rt===o||rt===i||rt===p||rt===S||typeof rt=="object"&&rt!==null&&(rt.$$typeof===A||rt.$$typeof===C||rt.$$typeof===a||rt.$$typeof===u||rt.$$typeof===y||rt.$$typeof===B||rt.$$typeof===_||rt.$$typeof===G||rt.$$typeof===I)}function se(rt){if(typeof rt=="object"&&rt!==null){var Bt=rt.$$typeof;switch(Bt){case e:var Vt=rt.type;switch(Vt){case c:case d:case r:case o:case i:case p:return Vt;default:var qn=Vt&&Vt.$$typeof;switch(qn){case u:case y:case A:case C:case a:return qn;default:return Bt}}case n:return Bt}}}var Q=c,ye=d,x=u,ae=a,ce=e,Be=y,qe=r,Ze=A,ot=C,it=n,me=o,De=i,Le=p,Ye=!1;function st(rt){return Ye||(Ye=!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.")),Ce(rt)||se(rt)===c}function Ce(rt){return se(rt)===d}function _e(rt){return se(rt)===u}function Xe(rt){return se(rt)===a}function Ge(rt){return typeof rt=="object"&&rt!==null&&rt.$$typeof===e}function tt(rt){return se(rt)===y}function et(rt){return se(rt)===r}function nt(rt){return se(rt)===A}function lt(rt){return se(rt)===C}function bt(rt){return se(rt)===n}function xt(rt){return se(rt)===o}function gt(rt){return se(rt)===i}function Ct(rt){return se(rt)===p}xn.AsyncMode=Q,xn.ConcurrentMode=ye,xn.ContextConsumer=x,xn.ContextProvider=ae,xn.Element=ce,xn.ForwardRef=Be,xn.Fragment=qe,xn.Lazy=Ze,xn.Memo=ot,xn.Portal=it,xn.Profiler=me,xn.StrictMode=De,xn.Suspense=Le,xn.isAsyncMode=st,xn.isConcurrentMode=Ce,xn.isContextConsumer=_e,xn.isContextProvider=Xe,xn.isElement=Ge,xn.isForwardRef=tt,xn.isFragment=et,xn.isLazy=nt,xn.isMemo=lt,xn.isPortal=bt,xn.isProfiler=xt,xn.isStrictMode=gt,xn.isSuspense=Ct,xn.isValidElementType=q,xn.typeOf=se}()),xn}var o1;function xD(){return o1||(o1=1,process.env.NODE_ENV==="production"?Mh.exports=t4():Mh.exports=n4()),Mh.exports}/*
|
|
30
|
-
object-assign
|
|
31
|
-
(c) Sindre Sorhus
|
|
32
|
-
@license MIT
|
|
33
|
-
*/var mm,s1;function r4(){if(s1)return mm;s1=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={},u=0;u<10;u++)a["_"+String.fromCharCode(u)]=u;var c=Object.getOwnPropertyNames(a).map(function(y){return a[y]});if(c.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(y){d[y]=y}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return mm=i()?Object.assign:function(o,a){for(var u,c=r(o),d,y=1;y<arguments.length;y++){u=Object(arguments[y]);for(var p in u)e.call(u,p)&&(c[p]=u[p]);if(t){d=t(u);for(var S=0;S<d.length;S++)n.call(u,d[S])&&(c[d[S]]=u[d[S]])}}return c},mm}var vm,a1;function nb(){if(a1)return vm;a1=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return vm=t,vm}var ym,l1;function SD(){return l1||(l1=1,ym=Function.call.bind(Object.prototype.hasOwnProperty)),ym}var bm,u1;function i4(){if(u1)return bm;u1=1;var t=function(){};if(process.env.NODE_ENV!=="production"){var e=nb(),n={},r=SD();t=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(o,a,u,c,d){if(process.env.NODE_ENV!=="production"){for(var y in o)if(r(o,y)){var p;try{if(typeof o[y]!="function"){var S=Error((c||"React class")+": "+u+" type `"+y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[y]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw S.name="Invariant Violation",S}p=o[y](a,y,c,u,null,e)}catch(A){p=A}if(p&&!(p instanceof Error)&&t((c||"React class")+": type specification of "+u+" `"+y+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in n)){n[p.message]=!0;var C=d?d():"";t("Failed "+u+" type: "+p.message+(C??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},bm=i,bm}var wm,c1;function o4(){if(c1)return wm;c1=1;var t=xD(),e=r4(),n=nb(),r=SD(),i=i4(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(u){var c="Warning: "+u;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function a(){return null}return wm=function(u,c){var d=typeof Symbol=="function"&&Symbol.iterator,y="@@iterator";function p(Ce){var _e=Ce&&(d&&Ce[d]||Ce[y]);if(typeof _e=="function")return _e}var S="<<anonymous>>",C={array:_("array"),bigint:_("bigint"),bool:_("boolean"),func:_("function"),number:_("number"),object:_("object"),string:_("string"),symbol:_("symbol"),any:G(),arrayOf:q,element:se(),elementType:Q(),instanceOf:ye,node:Be(),objectOf:ae,oneOf:x,oneOfType:ce,shape:Ze,exact:ot};function A(Ce,_e){return Ce===_e?Ce!==0||1/Ce===1/_e:Ce!==Ce&&_e!==_e}function I(Ce,_e){this.message=Ce,this.data=_e&&typeof _e=="object"?_e:{},this.stack=""}I.prototype=Error.prototype;function B(Ce){if(process.env.NODE_ENV!=="production")var _e={},Xe=0;function Ge(et,nt,lt,bt,xt,gt,Ct){if(bt=bt||S,gt=gt||lt,Ct!==n){if(c){var rt=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 rt.name="Invariant Violation",rt}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Bt=bt+":"+lt;!_e[Bt]&&Xe<3&&(o("You are manually calling a React.PropTypes validation function for the `"+gt+"` prop on `"+bt+"`. 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."),_e[Bt]=!0,Xe++)}}return nt[lt]==null?et?nt[lt]===null?new I("The "+xt+" `"+gt+"` is marked as required "+("in `"+bt+"`, but its value is `null`.")):new I("The "+xt+" `"+gt+"` is marked as required in "+("`"+bt+"`, but its value is `undefined`.")):null:Ce(nt,lt,bt,xt,gt)}var tt=Ge.bind(null,!1);return tt.isRequired=Ge.bind(null,!0),tt}function _(Ce){function _e(Xe,Ge,tt,et,nt,lt){var bt=Xe[Ge],xt=De(bt);if(xt!==Ce){var gt=Le(bt);return new I("Invalid "+et+" `"+nt+"` of type "+("`"+gt+"` supplied to `"+tt+"`, expected ")+("`"+Ce+"`."),{expectedType:Ce})}return null}return B(_e)}function G(){return B(a)}function q(Ce){function _e(Xe,Ge,tt,et,nt){if(typeof Ce!="function")return new I("Property `"+nt+"` of component `"+tt+"` has invalid PropType notation inside arrayOf.");var lt=Xe[Ge];if(!Array.isArray(lt)){var bt=De(lt);return new I("Invalid "+et+" `"+nt+"` of type "+("`"+bt+"` supplied to `"+tt+"`, expected an array."))}for(var xt=0;xt<lt.length;xt++){var gt=Ce(lt,xt,tt,et,nt+"["+xt+"]",n);if(gt instanceof Error)return gt}return null}return B(_e)}function se(){function Ce(_e,Xe,Ge,tt,et){var nt=_e[Xe];if(!u(nt)){var lt=De(nt);return new I("Invalid "+tt+" `"+et+"` of type "+("`"+lt+"` supplied to `"+Ge+"`, expected a single ReactElement."))}return null}return B(Ce)}function Q(){function Ce(_e,Xe,Ge,tt,et){var nt=_e[Xe];if(!t.isValidElementType(nt)){var lt=De(nt);return new I("Invalid "+tt+" `"+et+"` of type "+("`"+lt+"` supplied to `"+Ge+"`, expected a single ReactElement type."))}return null}return B(Ce)}function ye(Ce){function _e(Xe,Ge,tt,et,nt){if(!(Xe[Ge]instanceof Ce)){var lt=Ce.name||S,bt=st(Xe[Ge]);return new I("Invalid "+et+" `"+nt+"` of type "+("`"+bt+"` supplied to `"+tt+"`, expected ")+("instance of `"+lt+"`."))}return null}return B(_e)}function x(Ce){if(!Array.isArray(Ce))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 _e(Xe,Ge,tt,et,nt){for(var lt=Xe[Ge],bt=0;bt<Ce.length;bt++)if(A(lt,Ce[bt]))return null;var xt=JSON.stringify(Ce,function(Ct,rt){var Bt=Le(rt);return Bt==="symbol"?String(rt):rt});return new I("Invalid "+et+" `"+nt+"` of value `"+String(lt)+"` "+("supplied to `"+tt+"`, expected one of "+xt+"."))}return B(_e)}function ae(Ce){function _e(Xe,Ge,tt,et,nt){if(typeof Ce!="function")return new I("Property `"+nt+"` of component `"+tt+"` has invalid PropType notation inside objectOf.");var lt=Xe[Ge],bt=De(lt);if(bt!=="object")return new I("Invalid "+et+" `"+nt+"` of type "+("`"+bt+"` supplied to `"+tt+"`, expected an object."));for(var xt in lt)if(r(lt,xt)){var gt=Ce(lt,xt,tt,et,nt+"."+xt,n);if(gt instanceof Error)return gt}return null}return B(_e)}function ce(Ce){if(!Array.isArray(Ce))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var _e=0;_e<Ce.length;_e++){var Xe=Ce[_e];if(typeof Xe!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Ye(Xe)+" at index "+_e+"."),a}function Ge(tt,et,nt,lt,bt){for(var xt=[],gt=0;gt<Ce.length;gt++){var Ct=Ce[gt],rt=Ct(tt,et,nt,lt,bt,n);if(rt==null)return null;rt.data&&r(rt.data,"expectedType")&&xt.push(rt.data.expectedType)}var Bt=xt.length>0?", expected one of type ["+xt.join(", ")+"]":"";return new I("Invalid "+lt+" `"+bt+"` supplied to "+("`"+nt+"`"+Bt+"."))}return B(Ge)}function Be(){function Ce(_e,Xe,Ge,tt,et){return it(_e[Xe])?null:new I("Invalid "+tt+" `"+et+"` supplied to "+("`"+Ge+"`, expected a ReactNode."))}return B(Ce)}function qe(Ce,_e,Xe,Ge,tt){return new I((Ce||"React class")+": "+_e+" type `"+Xe+"."+Ge+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+tt+"`.")}function Ze(Ce){function _e(Xe,Ge,tt,et,nt){var lt=Xe[Ge],bt=De(lt);if(bt!=="object")return new I("Invalid "+et+" `"+nt+"` of type `"+bt+"` "+("supplied to `"+tt+"`, expected `object`."));for(var xt in Ce){var gt=Ce[xt];if(typeof gt!="function")return qe(tt,et,nt,xt,Le(gt));var Ct=gt(lt,xt,tt,et,nt+"."+xt,n);if(Ct)return Ct}return null}return B(_e)}function ot(Ce){function _e(Xe,Ge,tt,et,nt){var lt=Xe[Ge],bt=De(lt);if(bt!=="object")return new I("Invalid "+et+" `"+nt+"` of type `"+bt+"` "+("supplied to `"+tt+"`, expected `object`."));var xt=e({},Xe[Ge],Ce);for(var gt in xt){var Ct=Ce[gt];if(r(Ce,gt)&&typeof Ct!="function")return qe(tt,et,nt,gt,Le(Ct));if(!Ct)return new I("Invalid "+et+" `"+nt+"` key `"+gt+"` supplied to `"+tt+"`.\nBad object: "+JSON.stringify(Xe[Ge],null," ")+`
|
|
34
|
-
Valid keys: `+JSON.stringify(Object.keys(Ce),null," "));var rt=Ct(lt,gt,tt,et,nt+"."+gt,n);if(rt)return rt}return null}return B(_e)}function it(Ce){switch(typeof Ce){case"number":case"string":case"undefined":return!0;case"boolean":return!Ce;case"object":if(Array.isArray(Ce))return Ce.every(it);if(Ce===null||u(Ce))return!0;var _e=p(Ce);if(_e){var Xe=_e.call(Ce),Ge;if(_e!==Ce.entries){for(;!(Ge=Xe.next()).done;)if(!it(Ge.value))return!1}else for(;!(Ge=Xe.next()).done;){var tt=Ge.value;if(tt&&!it(tt[1]))return!1}}else return!1;return!0;default:return!1}}function me(Ce,_e){return Ce==="symbol"?!0:_e?_e["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&_e instanceof Symbol:!1}function De(Ce){var _e=typeof Ce;return Array.isArray(Ce)?"array":Ce instanceof RegExp?"object":me(_e,Ce)?"symbol":_e}function Le(Ce){if(typeof Ce>"u"||Ce===null)return""+Ce;var _e=De(Ce);if(_e==="object"){if(Ce instanceof Date)return"date";if(Ce instanceof RegExp)return"regexp"}return _e}function Ye(Ce){var _e=Le(Ce);switch(_e){case"array":case"object":return"an "+_e;case"boolean":case"date":case"regexp":return"a "+_e;default:return _e}}function st(Ce){return!Ce.constructor||!Ce.constructor.name?S:Ce.constructor.name}return C.checkPropTypes=i,C.resetWarningCache=i.resetWarningCache,C.PropTypes=C,C},wm}var xm,f1;function s4(){if(f1)return xm;f1=1;var t=nb();function e(){}function n(){}return n.resetWarningCache=e,xm=function(){function r(a,u,c,d,y,p){if(p!==t){var S=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 S.name="Invariant Violation",S}}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},xm}if(process.env.NODE_ENV!=="production"){var a4=xD(),l4=!0;Pv.exports=o4()(a4.isElement,l4)}else Pv.exports=s4()();var Dr=Pv.exports;const As=Bc(Dr);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"],Lh="http://www.w3.org/2000/svg",d1="http://www.w3.org/1999/xlink",Xp=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(u){r.reactWrapper=u},r}yD(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,u=o.evalScripts,c=o.httpRequestWithCredentials,d=o.renumerateIRIElements,y=o.src,p=o.title,S=o.useRequestCache,C=this.props.onError,A=this.props.beforeInjection,I=this.props.afterInjection,B=this.props.wrapper,_,G;B==="svg"?(_=document.createElementNS(Lh,B),_.setAttribute("xmlns",Lh),_.setAttribute("xmlns:xlink",d1),G=document.createElementNS(Lh,B)):(_=document.createElement(B),G=document.createElement(B)),_.appendChild(G),G.dataset.src=y,this.nonReactWrapper=this.reactWrapper.appendChild(_);var q=function(x){if(i.removeSVG(),!i._isMounted){C(x);return}i.setState(function(){return{hasError:!0,isLoading:!1}},function(){C(x)})},se=function(x,ae){if(x){q(x);return}i._isMounted&&i.setState(function(){return{isLoading:!1}},function(){try{I(ae)}catch(ce){q(ce)}})},Q=function(x){if(x.setAttribute("role","img"),a){var ae=x.querySelector(":scope > desc");ae&&x.removeChild(ae);var ce=document.createElement("desc");ce.innerHTML=a,x.prepend(ce)}if(p){var Be=x.querySelector(":scope > title");Be&&x.removeChild(Be);var qe=document.createElement("title");qe.innerHTML=p,x.prepend(qe)}try{A(x)}catch(Ze){q(Ze)}};e4(G,{afterEach:se,beforeEach:Q,cacheRequests:S,evalScripts:u,httpRequestWithCredentials:c,renumerateIRIElements:d})}},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(Nf({},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 u=i.wrapper,c=Vv(i,f4),d=u;return _n.createElement(d,Nf({},c,{ref:this.refCallback},u==="svg"?{xmlns:Lh,xmlnsXlink:d1}:{}),this.state.isLoading&&a&&_n.createElement(a,null),this.state.hasError&&o&&_n.createElement(o,null))},e}(_n.Component);Xp.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"};Xp.propTypes={afterInjection:Dr.func,beforeInjection:Dr.func,desc:Dr.string,evalScripts:Dr.oneOf(["always","once","never"]),fallback:Dr.oneOfType([Dr.func,Dr.object,Dr.string]),httpRequestWithCredentials:Dr.bool,loading:Dr.oneOfType([Dr.func,Dr.object,Dr.string]),onError:Dr.func,renumerateIRIElements:Dr.bool,src:Dr.string.isRequired,title:Dr.string,useRequestCache:Dr.bool,wrapper:Dr.oneOf(["div","span","svg"])};const jf=new Map;jf.set("text",t=>{var e;return $e.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center",lineHeight:"24px"},children:(e=t.name.trim().at(0))==null?void 0:e.toUpperCase()})});jf.set("svgHtml",t=>{function e(n){function r(o){const u=new DOMParser().parseFromString(o,"image/svg+xml").querySelector("svg");return u?(u.querySelectorAll("path").forEach(d=>{d.hasAttribute("fill")&&d.setAttribute("fill","currentColor"),d.hasAttribute("stroke")&&d.setAttribute("stroke","currentColor")}),u.outerHTML):""}const i=r(n.svgString);return $e.jsx("div",{dangerouslySetInnerHTML:{__html:i},style:{width:24,height:24,margin:"0 auto"}})}return $e.jsx(e,{svgString:t.icon})});jf.set("svgHttp",t=>$e.jsx(Xp,{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")})}}));jf.set("img",t=>$e.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 TD({item:t}){return(jf.get(d4(t))||jf.get("text"))(t)}function h4(t){return $e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",...t,children:$e.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]=Z.useState({top:0,left:0}),u=Z.useRef(null),[c,d]=Z.useState("auto");return Z.useLayoutEffect(()=>{if(n.current&&u.current){const y=n.current.getBoundingClientRect(),p=u.current.getBoundingClientRect();let S,C;if(i===1)S=y.bottom,C=y.left,p.height+S>window.innerHeight?(d(window.innerHeight-S-50),S=y.bottom-p.height):S=y.bottom;else if(i>1){S=y.top,C=y.left+y.width;const A=p.height+(window.innerHeight-y.top)>window.innerHeight;A&&(console.log("DropDown-fav overtop"),d(window.innerHeight-y.top-50)),y.top+p.height>window.innerHeight&&!A&&(S=y.top-p.height+y.height)}a({top:S-64,left:C})}},[n,u,i]),r?e({maxHeight:c}):jv.createPortal($e.jsx("div",{ref:u,style:{position:"fixed",top:o.top,left:`calc(${o.left}px - var(--global-menu-width))`,zIndex:1200},children:e({maxHeight:c})}),n.current)}const Bf=new Map;Bf.set("text",t=>{var e;return $e.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center",lineHeight:"24px"},children:(e=t.name.trim().at(0))==null?void 0:e.toUpperCase()})});Bf.set("svgHtml",t=>{function e(n){function r(o){const u=new DOMParser().parseFromString(o,"image/svg+xml").querySelector("svg");return u?(u.querySelectorAll("path").forEach(d=>{d.hasAttribute("fill")&&d.setAttribute("fill","currentColor"),d.hasAttribute("stroke")&&d.setAttribute("stroke","currentColor")}),u.outerHTML):""}const i=r(n.svgString);return $e.jsx("div",{dangerouslySetInnerHTML:{__html:i},style:{width:24,height:24,margin:"0 auto"}})}return $e.jsx(e,{svgString:t.icon})});Bf.set("svgHttp",t=>$e.jsx(Xp,{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")})}}));Bf.set("img",t=>$e.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(Bf.get(g4(t))||Bf.get("text"))(t)}function CD({...t}){var Be,qe,Ze,ot,it;const e=t.item,n=t.level||0,r=!!((Be=t.item.children)!=null&&Be.length),{isActive:i}=t,o=`level-${n}`,a=i(e.id)?"active":"",u=(me,De=o)=>`${me} ${De} ${a}`,[c,d]=Z.useState(!1),[y,p]=Z.useState(e.isFavorite||!1),S=Z.useRef(),C=Z.useRef();C!=null&&C.current&&((qe=C==null?void 0:C.current)==null?void 0:qe.scrollWidth)>((Ze=C==null?void 0:C.current)==null?void 0:Ze.clientWidth);const A=window.location.origin,I=e.path&&e.path.includes("http")?new URL(e.path):{origin:"",pathname:""},B=window.location.pathname.split("/")[1],_=I.pathname.split("/")[1],G=t.ssr||!A.includes("local")&&A!==I.origin||_!==B,q=r||n===0?"div":G?"a":Cp.Link,se=e.path||"#",Q=n+1,ye=r&&c&&n>0,x=()=>{d(!0)},ae=()=>{d(!1)},ce="/global-menu-config/api/v1/menu-items/user/set-favorite";return $e.jsxs("div",{ref:S,className:u("menu-item__wrapper tree-node"),style:{borderRadius:"8px",transition:"all 0.3s"},onMouseOver:x,onMouseOut:ae,onDragStart:me=>{n>1&&me.preventDefault()},children:[$e.jsxs(q,{to:se,href:se,draggable:"true",className:u("menu-item__link"),style:{width:"100%",transition:"all 0.3s",color:i(e.id)?((ot=t.brandColors)==null?void 0:ot.primary400)||Ei.primary400:void 0,backgroundColor:i(e.id)&&n===1?(it=t.brandColors)==null?void 0:it.primary200:void 0},onDragStart:me=>{console.log("onDragStart component",me.target)},children:[$e.jsx(v4,{cls:u,item:e}),$e.jsx("span",{className:u("menu-item__label"),ref:C,children:e.name}),$e.jsx(y4,{menuLevel:n,hasChildren:r,isHovered:c,isFavorite:y,onClick:me=>{const De={menuConfigId:e.id,isFavorite:me},Le=t.baseUrl+ce;aa.post(Le,De).then(Ye=>{var st;p(me),Gv("Set favorite menu item successfully"),(st=t.onSetFavoriteSuccess)==null||st.call(t,t.item.id,me)}).catch(Ye=>{var st,Ce;Gd(((Ce=(st=Ye.response)==null?void 0:st.data)==null?void 0:Ce.errorMessage)||"Have error when set favorite menu item")})}}),r&&$e.jsx("div",{className:u("menu-item__icon-arrow__wrapper"),children:$e.jsx(h4,{className:u("menu-item__icon-arrow__icon")})})]}),ye&&$e.jsx(p4,{parentRef:S,onlyChild:Q<2,dropdownLevel:n,renderChildren:({maxHeight:me})=>{var De;return $e.jsx(gD.div,{className:u("menu-item__dropdown dropdown-favorite ? 'menu-item__dropdown--open' : 'menu-item__dropdown--close'}",`level-${Q}`),style:tb({maxHeight:me,overflowY:"auto",paddingRight:3},me!=="auto"&&!!Q),children:(De=e.children)==null?void 0:De.map(Le=>Z.createElement(CD,{...t,key:Le.id,item:Le,level:Q}))})}})]})}function v4({item:t,cls:e}){return $e.jsx("div",{className:e("menu-item__icon"),children:$e.jsx(m4,{item:t})})}function y4(t){const e={marginRight:t.hasChildren?10:0,fontSize:22,fill:Ei.warning,minWidth:16};if(t.menuLevel!==0)return $e.jsxs($e.Fragment,{children:[t.isHovered&&!t.isFavorite&&$e.jsx(la.Tooltip,{title:"Add to favorites",children:$e.jsx(mD,{style:e,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=t.onClick)==null||r.call(t,!0)}})}),t.isFavorite&&$e.jsx(la.Tooltip,{title:"Remove from favorites",children:$e.jsx(vD,{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}}
|
|
35
|
-
`;var vc={};/**
|
|
36
|
-
* @license React
|
|
37
|
-
* react-dom-server-legacy.browser.production.min.js
|
|
38
|
-
*
|
|
39
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
40
|
-
*
|
|
41
|
-
* This source code is licensed under the MIT license found in the
|
|
42
|
-
* LICENSE file in the root directory of this source tree.
|
|
43
|
-
*/var h1;function w4(){if(h1)return vc;h1=1;var t=Z;function e(E){for(var N="https://reactjs.org/docs/error-decoder.html?invariant="+E,Y=1;Y<arguments.length;Y++)N+="&args[]="+encodeURIComponent(arguments[Y]);return"Minified React error #"+E+"; visit "+N+" 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(E){return n.call(o,E)?!0:n.call(i,E)?!1:r.test(E)?o[E]=!0:(i[E]=!0,!1)}function u(E,N,Y,ne,Pe,be,Ie){this.acceptsBooleans=N===2||N===3||N===4,this.attributeName=ne,this.attributeNamespace=Pe,this.mustUseProperty=Y,this.propertyName=E,this.type=N,this.sanitizeURL=be,this.removeEmptyString=Ie}var c={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(E){c[E]=new u(E,0,!1,E,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(E){var N=E[0];c[N]=new u(N,1,!1,E[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(E){c[E]=new u(E,2,!1,E.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(E){c[E]=new u(E,2,!1,E,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(E){c[E]=new u(E,3,!1,E.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(E){c[E]=new u(E,3,!0,E,null,!1,!1)}),["capture","download"].forEach(function(E){c[E]=new u(E,4,!1,E,null,!1,!1)}),["cols","rows","size","span"].forEach(function(E){c[E]=new u(E,6,!1,E,null,!1,!1)}),["rowSpan","start"].forEach(function(E){c[E]=new u(E,5,!1,E.toLowerCase(),null,!1,!1)});var d=/[\-:]([a-z])/g;function y(E){return E[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(E){var N=E.replace(d,y);c[N]=new u(N,1,!1,E,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(E){var N=E.replace(d,y);c[N]=new u(N,1,!1,E,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(E){var N=E.replace(d,y);c[N]=new u(N,1,!1,E,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(E){c[E]=new u(E,1,!1,E.toLowerCase(),null,!1,!1)}),c.xlinkHref=new u("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(E){c[E]=new u(E,1,!1,E.toLowerCase(),null,!0,!0)});var p={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},S=["Webkit","ms","Moz","O"];Object.keys(p).forEach(function(E){S.forEach(function(N){N=N+E.charAt(0).toUpperCase()+E.substring(1),p[N]=p[E]})});var C=/["'&<>]/;function A(E){if(typeof E=="boolean"||typeof E=="number")return""+E;E=""+E;var N=C.exec(E);if(N){var Y="",ne,Pe=0;for(ne=N.index;ne<E.length;ne++){switch(E.charCodeAt(ne)){case 34:N=""";break;case 38:N="&";break;case 39:N="'";break;case 60:N="<";break;case 62:N=">";break;default:continue}Pe!==ne&&(Y+=E.substring(Pe,ne)),Pe=ne+1,Y+=N}E=Pe!==ne?Y+E.substring(Pe,ne):Y}return E}var I=/([A-Z])/g,B=/^ms-/,_=Array.isArray;function G(E,N){return{insertionMode:E,selectedValue:N}}function q(E,N,Y){switch(N){case"select":return G(1,Y.value!=null?Y.value:Y.defaultValue);case"svg":return G(2,null);case"math":return G(3,null);case"foreignObject":return G(1,null);case"table":return G(4,null);case"thead":case"tbody":case"tfoot":return G(5,null);case"colgroup":return G(7,null);case"tr":return G(6,null)}return 4<=E.insertionMode||E.insertionMode===0?G(1,null):E}var se=new Map;function Q(E,N,Y){if(typeof Y!="object")throw Error(e(62));N=!0;for(var ne in Y)if(n.call(Y,ne)){var Pe=Y[ne];if(Pe!=null&&typeof Pe!="boolean"&&Pe!==""){if(ne.indexOf("--")===0){var be=A(ne);Pe=A((""+Pe).trim())}else{be=ne;var Ie=se.get(be);Ie!==void 0||(Ie=A(be.replace(I,"-$1").toLowerCase().replace(B,"-ms-")),se.set(be,Ie)),be=Ie,Pe=typeof Pe=="number"?Pe===0||n.call(p,ne)?""+Pe:Pe+"px":A((""+Pe).trim())}N?(N=!1,E.push(' style="',be,":",Pe)):E.push(";",be,":",Pe)}}N||E.push('"')}function ye(E,N,Y,ne){switch(Y){case"style":Q(E,N,ne);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<Y.length)||Y[0]!=="o"&&Y[0]!=="O"||Y[1]!=="n"&&Y[1]!=="N"){if(N=c.hasOwnProperty(Y)?c[Y]:null,N!==null){switch(typeof ne){case"function":case"symbol":return;case"boolean":if(!N.acceptsBooleans)return}switch(Y=N.attributeName,N.type){case 3:ne&&E.push(" ",Y,'=""');break;case 4:ne===!0?E.push(" ",Y,'=""'):ne!==!1&&E.push(" ",Y,'="',A(ne),'"');break;case 5:isNaN(ne)||E.push(" ",Y,'="',A(ne),'"');break;case 6:!isNaN(ne)&&1<=ne&&E.push(" ",Y,'="',A(ne),'"');break;default:N.sanitizeURL&&(ne=""+ne),E.push(" ",Y,'="',A(ne),'"')}}else if(a(Y)){switch(typeof ne){case"function":case"symbol":return;case"boolean":if(N=Y.toLowerCase().slice(0,5),N!=="data-"&&N!=="aria-")return}E.push(" ",Y,'="',A(ne),'"')}}}function x(E,N,Y){if(N!=null){if(Y!=null)throw Error(e(60));if(typeof N!="object"||!("__html"in N))throw Error(e(61));N=N.__html,N!=null&&E.push(""+N)}}function ae(E){var N="";return t.Children.forEach(E,function(Y){Y!=null&&(N+=Y)}),N}function ce(E,N,Y,ne){E.push(Ze(Y));var Pe=Y=null,be;for(be in N)if(n.call(N,be)){var Ie=N[be];if(Ie!=null)switch(be){case"children":Y=Ie;break;case"dangerouslySetInnerHTML":Pe=Ie;break;default:ye(E,ne,be,Ie)}}return E.push(">"),x(E,Pe,Y),typeof Y=="string"?(E.push(A(Y)),null):Y}var Be=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,qe=new Map;function Ze(E){var N=qe.get(E);if(N===void 0){if(!Be.test(E))throw Error(e(65,E));N="<"+E,qe.set(E,N)}return N}function ot(E,N,Y,ne,Pe){switch(N){case"select":E.push(Ze("select"));var be=null,Ie=null;for(vt in Y)if(n.call(Y,vt)){var Je=Y[vt];if(Je!=null)switch(vt){case"children":be=Je;break;case"dangerouslySetInnerHTML":Ie=Je;break;case"defaultValue":case"value":break;default:ye(E,ne,vt,Je)}}return E.push(">"),x(E,Ie,be),be;case"option":Ie=Pe.selectedValue,E.push(Ze("option"));var mt=Je=null,St=null,vt=null;for(be in Y)if(n.call(Y,be)){var Ht=Y[be];if(Ht!=null)switch(be){case"children":Je=Ht;break;case"selected":St=Ht;break;case"dangerouslySetInnerHTML":vt=Ht;break;case"value":mt=Ht;default:ye(E,ne,be,Ht)}}if(Ie!=null)if(Y=mt!==null?""+mt:ae(Je),_(Ie)){for(ne=0;ne<Ie.length;ne++)if(""+Ie[ne]===Y){E.push(' selected=""');break}}else""+Ie===Y&&E.push(' selected=""');else St&&E.push(' selected=""');return E.push(">"),x(E,vt,Je),Je;case"textarea":E.push(Ze("textarea")),vt=Ie=be=null;for(Je in Y)if(n.call(Y,Je)&&(mt=Y[Je],mt!=null))switch(Je){case"children":vt=mt;break;case"value":be=mt;break;case"defaultValue":Ie=mt;break;case"dangerouslySetInnerHTML":throw Error(e(91));default:ye(E,ne,Je,mt)}if(be===null&&Ie!==null&&(be=Ie),E.push(">"),vt!=null){if(be!=null)throw Error(e(92));if(_(vt)&&1<vt.length)throw Error(e(93));be=""+vt}return typeof be=="string"&&be[0]===`
|
|
44
|
-
`&&E.push(`
|
|
45
|
-
`),be!==null&&E.push(A(""+be)),null;case"input":E.push(Ze("input")),mt=vt=Je=be=null;for(Ie in Y)if(n.call(Y,Ie)&&(St=Y[Ie],St!=null))switch(Ie){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,"input"));case"defaultChecked":mt=St;break;case"defaultValue":Je=St;break;case"checked":vt=St;break;case"value":be=St;break;default:ye(E,ne,Ie,St)}return vt!==null?ye(E,ne,"checked",vt):mt!==null&&ye(E,ne,"checked",mt),be!==null?ye(E,ne,"value",be):Je!==null&&ye(E,ne,"value",Je),E.push("/>"),null;case"menuitem":E.push(Ze("menuitem"));for(var Jn in Y)if(n.call(Y,Jn)&&(be=Y[Jn],be!=null))switch(Jn){case"children":case"dangerouslySetInnerHTML":throw Error(e(400));default:ye(E,ne,Jn,be)}return E.push(">"),null;case"title":E.push(Ze("title")),be=null;for(Ht in Y)if(n.call(Y,Ht)&&(Ie=Y[Ht],Ie!=null))switch(Ht){case"children":be=Ie;break;case"dangerouslySetInnerHTML":throw Error(e(434));default:ye(E,ne,Ht,Ie)}return E.push(">"),be;case"listing":case"pre":E.push(Ze(N)),Ie=be=null;for(mt in Y)if(n.call(Y,mt)&&(Je=Y[mt],Je!=null))switch(mt){case"children":be=Je;break;case"dangerouslySetInnerHTML":Ie=Je;break;default:ye(E,ne,mt,Je)}if(E.push(">"),Ie!=null){if(be!=null)throw Error(e(60));if(typeof Ie!="object"||!("__html"in Ie))throw Error(e(61));Y=Ie.__html,Y!=null&&(typeof Y=="string"&&0<Y.length&&Y[0]===`
|
|
46
|
-
`?E.push(`
|
|
47
|
-
`,Y):E.push(""+Y))}return typeof be=="string"&&be[0]===`
|
|
48
|
-
`&&E.push(`
|
|
49
|
-
`),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":E.push(Ze(N));for(var zn in Y)if(n.call(Y,zn)&&(be=Y[zn],be!=null))switch(zn){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,N));default:ye(E,ne,zn,be)}return E.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 ce(E,Y,N,ne);case"html":return Pe.insertionMode===0&&E.push("<!DOCTYPE html>"),ce(E,Y,N,ne);default:if(N.indexOf("-")===-1&&typeof Y.is!="string")return ce(E,Y,N,ne);E.push(Ze(N)),Ie=be=null;for(St in Y)if(n.call(Y,St)&&(Je=Y[St],Je!=null))switch(St){case"children":be=Je;break;case"dangerouslySetInnerHTML":Ie=Je;break;case"style":Q(E,ne,Je);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:a(St)&&typeof Je!="function"&&typeof Je!="symbol"&&E.push(" ",St,'="',A(Je),'"')}return E.push(">"),x(E,Ie,be),be}}function it(E,N,Y){if(E.push('<!--$?--><template id="'),Y===null)throw Error(e(395));return E.push(Y),E.push('"></template>')}function me(E,N,Y,ne){switch(Y.insertionMode){case 0:case 1:return E.push('<div hidden id="'),E.push(N.segmentPrefix),N=ne.toString(16),E.push(N),E.push('">');case 2:return E.push('<svg aria-hidden="true" style="display:none" id="'),E.push(N.segmentPrefix),N=ne.toString(16),E.push(N),E.push('">');case 3:return E.push('<math aria-hidden="true" style="display:none" id="'),E.push(N.segmentPrefix),N=ne.toString(16),E.push(N),E.push('">');case 4:return E.push('<table hidden id="'),E.push(N.segmentPrefix),N=ne.toString(16),E.push(N),E.push('">');case 5:return E.push('<table hidden><tbody id="'),E.push(N.segmentPrefix),N=ne.toString(16),E.push(N),E.push('">');case 6:return E.push('<table hidden><tr id="'),E.push(N.segmentPrefix),N=ne.toString(16),E.push(N),E.push('">');case 7:return E.push('<table hidden><colgroup id="'),E.push(N.segmentPrefix),N=ne.toString(16),E.push(N),E.push('">');default:throw Error(e(397))}}function De(E,N){switch(N.insertionMode){case 0:case 1:return E.push("</div>");case 2:return E.push("</svg>");case 3:return E.push("</math>");case 4:return E.push("</table>");case 5:return E.push("</tbody></table>");case 6:return E.push("</tr></table>");case 7:return E.push("</colgroup></table>");default:throw Error(e(397))}}var Le=/[<\u2028\u2029]/g;function Ye(E){return JSON.stringify(E).replace(Le,function(N){switch(N){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 st(E,N){return N=N===void 0?"":N,{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:N+"P:",segmentPrefix:N+"S:",boundaryPrefix:N+"B:",idPrefix:N,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:E}}function Ce(E,N,Y,ne){return Y.generateStaticMarkup?(E.push(A(N)),!1):(N===""?E=ne:(ne&&E.push("<!-- -->"),E.push(A(N)),E=!0),E)}var _e=Object.assign,Xe=Symbol.for("react.element"),Ge=Symbol.for("react.portal"),tt=Symbol.for("react.fragment"),et=Symbol.for("react.strict_mode"),nt=Symbol.for("react.profiler"),lt=Symbol.for("react.provider"),bt=Symbol.for("react.context"),xt=Symbol.for("react.forward_ref"),gt=Symbol.for("react.suspense"),Ct=Symbol.for("react.suspense_list"),rt=Symbol.for("react.memo"),Bt=Symbol.for("react.lazy"),Vt=Symbol.for("react.scope"),qn=Symbol.for("react.debug_trace_mode"),yr=Symbol.for("react.legacy_hidden"),Xn=Symbol.for("react.default_value"),Dn=Symbol.iterator;function Hi(E){if(E==null)return null;if(typeof E=="function")return E.displayName||E.name||null;if(typeof E=="string")return E;switch(E){case tt:return"Fragment";case Ge:return"Portal";case nt:return"Profiler";case et:return"StrictMode";case gt:return"Suspense";case Ct:return"SuspenseList"}if(typeof E=="object")switch(E.$$typeof){case bt:return(E.displayName||"Context")+".Consumer";case lt:return(E._context.displayName||"Context")+".Provider";case xt:var N=E.render;return E=E.displayName,E||(E=N.displayName||N.name||"",E=E!==""?"ForwardRef("+E+")":"ForwardRef"),E;case rt:return N=E.displayName||null,N!==null?N:Hi(E.type)||"Memo";case Bt:N=E._payload,E=E._init;try{return Hi(E(N))}catch{}}return null}var Or={};function ir(E,N){if(E=E.contextTypes,!E)return Or;var Y={},ne;for(ne in E)Y[ne]=N[ne];return Y}var un=null;function dn(E,N){if(E!==N){E.context._currentValue2=E.parentValue,E=E.parent;var Y=N.parent;if(E===null){if(Y!==null)throw Error(e(401))}else{if(Y===null)throw Error(e(401));dn(E,Y)}N.context._currentValue2=N.value}}function hn(E){E.context._currentValue2=E.parentValue,E=E.parent,E!==null&&hn(E)}function pt(E){var N=E.parent;N!==null&&pt(N),E.context._currentValue2=E.value}function Rn(E,N){if(E.context._currentValue2=E.parentValue,E=E.parent,E===null)throw Error(e(402));E.depth===N.depth?dn(E,N):Rn(E,N)}function li(E,N){var Y=N.parent;if(Y===null)throw Error(e(402));E.depth===Y.depth?dn(E,Y):li(E,Y),N.context._currentValue2=N.value}function ln(E){var N=un;N!==E&&(N===null?pt(E):E===null?hn(N):N.depth===E.depth?dn(N,E):N.depth>E.depth?Rn(N,E):li(N,E),un=E)}var Ui={isMounted:function(){return!1},enqueueSetState:function(E,N){E=E._reactInternals,E.queue!==null&&E.queue.push(N)},enqueueReplaceState:function(E,N){E=E._reactInternals,E.replace=!0,E.queue=[N]},enqueueForceUpdate:function(){}};function Wi(E,N,Y,ne){var Pe=E.state!==void 0?E.state:null;E.updater=Ui,E.props=Y,E.state=Pe;var be={queue:[],replace:!1};E._reactInternals=be;var Ie=N.contextType;if(E.context=typeof Ie=="object"&&Ie!==null?Ie._currentValue2:ne,Ie=N.getDerivedStateFromProps,typeof Ie=="function"&&(Ie=Ie(Y,Pe),Pe=Ie==null?Pe:_e({},Pe,Ie),E.state=Pe),typeof N.getDerivedStateFromProps!="function"&&typeof E.getSnapshotBeforeUpdate!="function"&&(typeof E.UNSAFE_componentWillMount=="function"||typeof E.componentWillMount=="function"))if(N=E.state,typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount(),N!==E.state&&Ui.enqueueReplaceState(E,E.state,null),be.queue!==null&&0<be.queue.length)if(N=be.queue,Ie=be.replace,be.queue=null,be.replace=!1,Ie&&N.length===1)E.state=N[0];else{for(be=Ie?N[0]:E.state,Pe=!0,Ie=Ie?1:0;Ie<N.length;Ie++){var Je=N[Ie];Je=typeof Je=="function"?Je.call(E,be,Y,ne):Je,Je!=null&&(Pe?(Pe=!1,be=_e({},be,Je)):_e(be,Je))}E.state=be}else be.queue=null}var zi={id:1,overflow:""};function _r(E,N,Y){var ne=E.id;E=E.overflow;var Pe=32-Un(ne)-1;ne&=~(1<<Pe),Y+=1;var be=32-Un(N)+Pe;if(30<be){var Ie=Pe-Pe%5;return be=(ne&(1<<Ie)-1).toString(32),ne>>=Ie,Pe-=Ie,{id:1<<32-Un(N)+Pe|Y<<Pe|ne,overflow:be+E}}return{id:1<<be|Y<<Pe|ne,overflow:E}}var Un=Math.clz32?Math.clz32:qr,Rr=Math.log,br=Math.LN2;function qr(E){return E>>>=0,E===0?32:31-(Rr(E)/br|0)|0}function Xr(E,N){return E===N&&(E!==0||1/E===1/N)||E!==E&&N!==N}var Ao=typeof Object.is=="function"?Object.is:Xr,Kn=null,Kr=null,or=null,Zt=null,ui=!1,Yi=!1,An=0,pn=null,ci=0;function fi(){if(Kn===null)throw Error(e(321));return Kn}function mn(){if(0<ci)throw Error(e(312));return{memoizedState:null,queue:null,next:null}}function co(){return Zt===null?or===null?(ui=!1,or=Zt=mn()):(ui=!0,Zt=or):Zt.next===null?(ui=!1,Zt=Zt.next=mn()):(ui=!0,Zt=Zt.next),Zt}function wr(){Kr=Kn=null,Yi=!1,or=null,ci=0,Zt=pn=null}function di(E,N){return typeof N=="function"?N(E):N}function cn(E,N,Y){if(Kn=fi(),Zt=co(),ui){var ne=Zt.queue;if(N=ne.dispatch,pn!==null&&(Y=pn.get(ne),Y!==void 0)){pn.delete(ne),ne=Zt.memoizedState;do ne=E(ne,Y.action),Y=Y.next;while(Y!==null);return Zt.memoizedState=ne,[ne,N]}return[Zt.memoizedState,N]}return E=E===di?typeof N=="function"?N():N:Y!==void 0?Y(N):N,Zt.memoizedState=E,E=Zt.queue={last:null,dispatch:null},E=E.dispatch=Ms.bind(null,Kn,E),[Zt.memoizedState,E]}function ki(E,N){if(Kn=fi(),Zt=co(),N=N===void 0?null:N,Zt!==null){var Y=Zt.memoizedState;if(Y!==null&&N!==null){var ne=Y[1];e:if(ne===null)ne=!1;else{for(var Pe=0;Pe<ne.length&&Pe<N.length;Pe++)if(!Ao(N[Pe],ne[Pe])){ne=!1;break e}ne=!0}if(ne)return Y[0]}}return E=E(),Zt.memoizedState=[E,N],E}function Ms(E,N,Y){if(25<=ci)throw Error(e(301));if(E===Kn)if(Yi=!0,E={action:Y,next:null},pn===null&&(pn=new Map),Y=pn.get(N),Y===void 0)pn.set(N,E);else{for(N=Y;N.next!==null;)N=N.next;N.next=E}}function Ls(){throw Error(e(394))}function Zr(){}var fo={readContext:function(E){return E._currentValue2},useContext:function(E){return fi(),E._currentValue2},useMemo:ki,useReducer:cn,useRef:function(E){Kn=fi(),Zt=co();var N=Zt.memoizedState;return N===null?(E={current:E},Zt.memoizedState=E):N},useState:function(E){return cn(di,E)},useInsertionEffect:Zr,useLayoutEffect:function(){},useCallback:function(E,N){return ki(function(){return E},N)},useImperativeHandle:Zr,useEffect:Zr,useDebugValue:Zr,useDeferredValue:function(E){return fi(),E},useTransition:function(){return fi(),[!1,Ls]},useId:function(){var E=Kr.treeContext,N=E.overflow;E=E.id,E=(E&~(1<<32-Un(E)-1)).toString(32)+N;var Y=ho;if(Y===null)throw Error(e(404));return N=An++,E=":"+Y.idPrefix+"R"+E,0<N&&(E+="H"+N.toString(32)),E+":"},useMutableSource:function(E,N){return fi(),N(E._source)},useSyncExternalStore:function(E,N,Y){if(Y===void 0)throw Error(e(407));return Y()}},ho=null,Io=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function Di(E){return console.error(E),null}function hi(){}function Pi(E,N,Y,ne,Pe,be,Ie,Je,mt){var St=[],vt=new Set;return N={destination:null,responseState:N,progressiveChunkSize:ne===void 0?12800:ne,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:vt,pingedTasks:St,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:Pe===void 0?Di:Pe,onAllReady:be===void 0?hi:be,onShellReady:Ie===void 0?hi:Ie,onShellError:Je===void 0?hi:Je,onFatalError:mt===void 0?hi:mt},Y=Oi(N,0,null,Y,!1,!1),Y.parentFlushed=!0,E=po(N,E,null,Y,vt,Or,null,zi),St.push(E),N}function po(E,N,Y,ne,Pe,be,Ie,Je){E.allPendingTasks++,Y===null?E.pendingRootTasks++:Y.pendingTasks++;var mt={node:N,ping:function(){var St=E.pingedTasks;St.push(mt),St.length===1&&Zn(E)},blockedBoundary:Y,blockedSegment:ne,abortSet:Pe,legacyContext:be,context:Ie,treeContext:Je};return Pe.add(mt),mt}function Oi(E,N,Y,ne,Pe,be){return{status:0,id:-1,index:N,parentFlushed:!1,chunks:[],children:[],formatContext:ne,boundary:Y,lastPushedText:Pe,textEmbedded:be}}function Jr(E,N){if(E=E.onError(N),E!=null&&typeof E!="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 E+'" instead');return E}function xr(E,N){var Y=E.onShellError;Y(N),Y=E.onFatalError,Y(N),E.destination!==null?(E.status=2,E.destination.destroy(N)):(E.status=1,E.fatalError=N)}function Ar(E,N,Y,ne,Pe){for(Kn={},Kr=N,An=0,E=Y(ne,Pe);Yi;)Yi=!1,An=0,ci+=1,Zt=null,E=Y(ne,Pe);return wr(),E}function Qr(E,N,Y,ne){var Pe=Y.render(),be=ne.childContextTypes;if(be!=null){var Ie=N.legacyContext;if(typeof Y.getChildContext!="function")ne=Ie;else{Y=Y.getChildContext();for(var Je in Y)if(!(Je in be))throw Error(e(108,Hi(ne)||"Unknown",Je));ne=_e({},Ie,Y)}N.legacyContext=ne,gn(E,N,Pe),N.legacyContext=Ie}else gn(E,N,Pe)}function Ir(E,N){if(E&&E.defaultProps){N=_e({},N),E=E.defaultProps;for(var Y in E)N[Y]===void 0&&(N[Y]=E[Y]);return N}return N}function Wn(E,N,Y,ne,Pe){if(typeof Y=="function")if(Y.prototype&&Y.prototype.isReactComponent){Pe=ir(Y,N.legacyContext);var be=Y.contextType;be=new Y(ne,typeof be=="object"&&be!==null?be._currentValue2:Pe),Wi(be,Y,ne,Pe),Qr(E,N,be,Y)}else{be=ir(Y,N.legacyContext),Pe=Ar(E,N,Y,ne,be);var Ie=An!==0;if(typeof Pe=="object"&&Pe!==null&&typeof Pe.render=="function"&&Pe.$$typeof===void 0)Wi(Pe,Y,ne,be),Qr(E,N,Pe,Y);else if(Ie){ne=N.treeContext,N.treeContext=_r(ne,1,0);try{gn(E,N,Pe)}finally{N.treeContext=ne}}else gn(E,N,Pe)}else if(typeof Y=="string"){switch(Pe=N.blockedSegment,be=ot(Pe.chunks,Y,ne,E.responseState,Pe.formatContext),Pe.lastPushedText=!1,Ie=Pe.formatContext,Pe.formatContext=q(Ie,Y,ne),Sr(E,N,be),Pe.formatContext=Ie,Y){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:Pe.chunks.push("</",Y,">")}Pe.lastPushedText=!1}else{switch(Y){case yr:case qn:case et:case nt:case tt:gn(E,N,ne.children);return;case Ct:gn(E,N,ne.children);return;case Vt:throw Error(e(343));case gt:e:{Y=N.blockedBoundary,Pe=N.blockedSegment,be=ne.fallback,ne=ne.children,Ie=new Set;var Je={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:Ie,errorDigest:null},mt=Oi(E,Pe.chunks.length,Je,Pe.formatContext,!1,!1);Pe.children.push(mt),Pe.lastPushedText=!1;var St=Oi(E,0,null,Pe.formatContext,!1,!1);St.parentFlushed=!0,N.blockedBoundary=Je,N.blockedSegment=St;try{if(Sr(E,N,ne),E.responseState.generateStaticMarkup||St.lastPushedText&&St.textEmbedded&&St.chunks.push("<!-- -->"),St.status=1,Lr(Je,St),Je.pendingTasks===0)break e}catch(vt){St.status=4,Je.forceClientRender=!0,Je.errorDigest=Jr(E,vt)}finally{N.blockedBoundary=Y,N.blockedSegment=Pe}N=po(E,be,Y,mt,Ie,N.legacyContext,N.context,N.treeContext),E.pingedTasks.push(N)}return}if(typeof Y=="object"&&Y!==null)switch(Y.$$typeof){case xt:if(ne=Ar(E,N,Y.render,ne,Pe),An!==0){Y=N.treeContext,N.treeContext=_r(Y,1,0);try{gn(E,N,ne)}finally{N.treeContext=Y}}else gn(E,N,ne);return;case rt:Y=Y.type,ne=Ir(Y,ne),Wn(E,N,Y,ne,Pe);return;case lt:if(Pe=ne.children,Y=Y._context,ne=ne.value,be=Y._currentValue2,Y._currentValue2=ne,Ie=un,un=ne={parent:Ie,depth:Ie===null?0:Ie.depth+1,context:Y,parentValue:be,value:ne},N.context=ne,gn(E,N,Pe),E=un,E===null)throw Error(e(403));ne=E.parentValue,E.context._currentValue2=ne===Xn?E.context._defaultValue:ne,E=un=E.parent,N.context=E;return;case bt:ne=ne.children,ne=ne(Y._currentValue2),gn(E,N,ne);return;case Bt:Pe=Y._init,Y=Pe(Y._payload),ne=Ir(Y,ne),Wn(E,N,Y,ne,void 0);return}throw Error(e(130,Y==null?Y:typeof Y,""))}}function gn(E,N,Y){if(N.node=Y,typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case Xe:Wn(E,N,Y.type,Y.props,Y.ref);return;case Ge:throw Error(e(257));case Bt:var ne=Y._init;Y=ne(Y._payload),gn(E,N,Y);return}if(_(Y)){Mr(E,N,Y);return}if(Y===null||typeof Y!="object"?ne=null:(ne=Dn&&Y[Dn]||Y["@@iterator"],ne=typeof ne=="function"?ne:null),ne&&(ne=ne.call(Y))){if(Y=ne.next(),!Y.done){var Pe=[];do Pe.push(Y.value),Y=ne.next();while(!Y.done);Mr(E,N,Pe)}return}throw E=Object.prototype.toString.call(Y),Error(e(31,E==="[object Object]"?"object with keys {"+Object.keys(Y).join(", ")+"}":E))}typeof Y=="string"?(ne=N.blockedSegment,ne.lastPushedText=Ce(N.blockedSegment.chunks,Y,E.responseState,ne.lastPushedText)):typeof Y=="number"&&(ne=N.blockedSegment,ne.lastPushedText=Ce(N.blockedSegment.chunks,""+Y,E.responseState,ne.lastPushedText))}function Mr(E,N,Y){for(var ne=Y.length,Pe=0;Pe<ne;Pe++){var be=N.treeContext;N.treeContext=_r(be,ne,Pe);try{Sr(E,N,Y[Pe])}finally{N.treeContext=be}}}function Sr(E,N,Y){var ne=N.blockedSegment.formatContext,Pe=N.legacyContext,be=N.context;try{return gn(E,N,Y)}catch(mt){if(wr(),typeof mt=="object"&&mt!==null&&typeof mt.then=="function"){Y=mt;var Ie=N.blockedSegment,Je=Oi(E,Ie.chunks.length,null,Ie.formatContext,Ie.lastPushedText,!0);Ie.children.push(Je),Ie.lastPushedText=!1,E=po(E,N.node,N.blockedBoundary,Je,N.abortSet,N.legacyContext,N.context,N.treeContext).ping,Y.then(E,E),N.blockedSegment.formatContext=ne,N.legacyContext=Pe,N.context=be,ln(be)}else throw N.blockedSegment.formatContext=ne,N.legacyContext=Pe,N.context=be,ln(be),mt}}function In(E){var N=E.blockedBoundary;E=E.blockedSegment,E.status=3,ei(this,N,E)}function pi(E,N,Y){var ne=E.blockedBoundary;E.blockedSegment.status=3,ne===null?(N.allPendingTasks--,N.status!==2&&(N.status=2,N.destination!==null&&N.destination.push(null))):(ne.pendingTasks--,ne.forceClientRender||(ne.forceClientRender=!0,E=Y===void 0?Error(e(432)):Y,ne.errorDigest=N.onError(E),ne.parentFlushed&&N.clientRenderedBoundaries.push(ne)),ne.fallbackAbortableTasks.forEach(function(Pe){return pi(Pe,N,Y)}),ne.fallbackAbortableTasks.clear(),N.allPendingTasks--,N.allPendingTasks===0&&(ne=N.onAllReady,ne()))}function Lr(E,N){if(N.chunks.length===0&&N.children.length===1&&N.children[0].boundary===null){var Y=N.children[0];Y.id=N.id,Y.parentFlushed=!0,Y.status===1&&Lr(E,Y)}else E.completedSegments.push(N)}function ei(E,N,Y){if(N===null){if(Y.parentFlushed){if(E.completedRootSegment!==null)throw Error(e(389));E.completedRootSegment=Y}E.pendingRootTasks--,E.pendingRootTasks===0&&(E.onShellError=hi,N=E.onShellReady,N())}else N.pendingTasks--,N.forceClientRender||(N.pendingTasks===0?(Y.parentFlushed&&Y.status===1&&Lr(N,Y),N.parentFlushed&&E.completedBoundaries.push(N),N.fallbackAbortableTasks.forEach(In,E),N.fallbackAbortableTasks.clear()):Y.parentFlushed&&Y.status===1&&(Lr(N,Y),N.completedSegments.length===1&&N.parentFlushed&&E.partialBoundaries.push(N)));E.allPendingTasks--,E.allPendingTasks===0&&(E=E.onAllReady,E())}function Zn(E){if(E.status!==2){var N=un,Y=Io.current;Io.current=fo;var ne=ho;ho=E.responseState;try{var Pe=E.pingedTasks,be;for(be=0;be<Pe.length;be++){var Ie=Pe[be],Je=E,mt=Ie.blockedSegment;if(mt.status===0){ln(Ie.context);try{gn(Je,Ie,Ie.node),Je.responseState.generateStaticMarkup||mt.lastPushedText&&mt.textEmbedded&&mt.chunks.push("<!-- -->"),Ie.abortSet.delete(Ie),mt.status=1,ei(Je,Ie.blockedBoundary,mt)}catch(Pn){if(wr(),typeof Pn=="object"&&Pn!==null&&typeof Pn.then=="function"){var St=Ie.ping;Pn.then(St,St)}else{Ie.abortSet.delete(Ie),mt.status=4;var vt=Ie.blockedBoundary,Ht=Pn,Jn=Jr(Je,Ht);if(vt===null?xr(Je,Ht):(vt.pendingTasks--,vt.forceClientRender||(vt.forceClientRender=!0,vt.errorDigest=Jn,vt.parentFlushed&&Je.clientRenderedBoundaries.push(vt))),Je.allPendingTasks--,Je.allPendingTasks===0){var zn=Je.onAllReady;zn()}}}finally{}}}Pe.splice(0,be),E.destination!==null&&cr(E,E.destination)}catch(Pn){Jr(E,Pn),xr(E,Pn)}finally{ho=ne,Io.current=Y,Y===fo&&ln(N)}}}function ti(E,N,Y){switch(Y.parentFlushed=!0,Y.status){case 0:var ne=Y.id=E.nextSegmentId++;return Y.lastPushedText=!1,Y.textEmbedded=!1,E=E.responseState,N.push('<template id="'),N.push(E.placeholderPrefix),E=ne.toString(16),N.push(E),N.push('"></template>');case 1:Y.status=2;var Pe=!0;ne=Y.chunks;var be=0;Y=Y.children;for(var Ie=0;Ie<Y.length;Ie++){for(Pe=Y[Ie];be<Pe.index;be++)N.push(ne[be]);Pe=ni(E,N,Pe)}for(;be<ne.length-1;be++)N.push(ne[be]);return be<ne.length&&(Pe=N.push(ne[be])),Pe;default:throw Error(e(390))}}function ni(E,N,Y){var ne=Y.boundary;if(ne===null)return ti(E,N,Y);if(ne.parentFlushed=!0,ne.forceClientRender)return E.responseState.generateStaticMarkup||(ne=ne.errorDigest,N.push("<!--$!-->"),N.push("<template"),ne&&(N.push(' data-dgst="'),ne=A(ne),N.push(ne),N.push('"')),N.push("></template>")),ti(E,N,Y),E=E.responseState.generateStaticMarkup?!0:N.push("<!--/$-->"),E;if(0<ne.pendingTasks){ne.rootSegmentID=E.nextSegmentId++,0<ne.completedSegments.length&&E.partialBoundaries.push(ne);var Pe=E.responseState,be=Pe.nextSuspenseID++;return Pe=Pe.boundaryPrefix+be.toString(16),ne=ne.id=Pe,it(N,E.responseState,ne),ti(E,N,Y),N.push("<!--/$-->")}if(ne.byteSize>E.progressiveChunkSize)return ne.rootSegmentID=E.nextSegmentId++,E.completedBoundaries.push(ne),it(N,E.responseState,ne.id),ti(E,N,Y),N.push("<!--/$-->");if(E.responseState.generateStaticMarkup||N.push("<!--$-->"),Y=ne.completedSegments,Y.length!==1)throw Error(e(391));return ni(E,N,Y[0]),E=E.responseState.generateStaticMarkup?!0:N.push("<!--/$-->"),E}function Gi(E,N,Y){return me(N,E.responseState,Y.formatContext,Y.id),ni(E,N,Y),De(N,Y.formatContext)}function On(E,N,Y){for(var ne=Y.completedSegments,Pe=0;Pe<ne.length;Pe++)Tr(E,N,Y,ne[Pe]);if(ne.length=0,E=E.responseState,ne=Y.id,Y=Y.rootSegmentID,N.push(E.startInlineScript),E.sentCompleteBoundaryFunction?N.push('$RC("'):(E.sentCompleteBoundaryFunction=!0,N.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("')),ne===null)throw Error(e(395));return Y=Y.toString(16),N.push(ne),N.push('","'),N.push(E.segmentPrefix),N.push(Y),N.push('")<\/script>')}function Tr(E,N,Y,ne){if(ne.status===2)return!0;var Pe=ne.id;if(Pe===-1){if((ne.id=Y.rootSegmentID)===-1)throw Error(e(392));return Gi(E,N,ne)}return Gi(E,N,ne),E=E.responseState,N.push(E.startInlineScript),E.sentCompleteSegmentFunction?N.push('$RS("'):(E.sentCompleteSegmentFunction=!0,N.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("')),N.push(E.segmentPrefix),Pe=Pe.toString(16),N.push(Pe),N.push('","'),N.push(E.placeholderPrefix),N.push(Pe),N.push('")<\/script>')}function cr(E,N){try{var Y=E.completedRootSegment;if(Y!==null&&E.pendingRootTasks===0){ni(E,N,Y),E.completedRootSegment=null;var ne=E.responseState.bootstrapChunks;for(Y=0;Y<ne.length-1;Y++)N.push(ne[Y]);Y<ne.length&&N.push(ne[Y])}var Pe=E.clientRenderedBoundaries,be;for(be=0;be<Pe.length;be++){var Ie=Pe[be];ne=N;var Je=E.responseState,mt=Ie.id,St=Ie.errorDigest,vt=Ie.errorMessage,Ht=Ie.errorComponentStack;if(ne.push(Je.startInlineScript),Je.sentClientRenderFunction?ne.push('$RX("'):(Je.sentClientRenderFunction=!0,ne.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("')),mt===null)throw Error(e(395));if(ne.push(mt),ne.push('"'),St||vt||Ht){ne.push(",");var Jn=Ye(St||"");ne.push(Jn)}if(vt||Ht){ne.push(",");var zn=Ye(vt||"");ne.push(zn)}if(Ht){ne.push(",");var Pn=Ye(Ht);ne.push(Pn)}if(!ne.push(")<\/script>")){E.destination=null,be++,Pe.splice(0,be);return}}Pe.splice(0,be);var Nr=E.completedBoundaries;for(be=0;be<Nr.length;be++)if(!On(E,N,Nr[be])){E.destination=null,be++,Nr.splice(0,be);return}Nr.splice(0,be);var sr=E.partialBoundaries;for(be=0;be<sr.length;be++){var Xi=sr[be];e:{Pe=E,Ie=N;var gi=Xi.completedSegments;for(Je=0;Je<gi.length;Je++)if(!Tr(Pe,Ie,Xi,gi[Je])){Je++,gi.splice(0,Je);var Ki=!1;break e}gi.splice(0,Je),Ki=!0}if(!Ki){E.destination=null,be++,sr.splice(0,be);return}}sr.splice(0,be);var jr=E.completedBoundaries;for(be=0;be<jr.length;be++)if(!On(E,N,jr[be])){E.destination=null,be++,jr.splice(0,be);return}jr.splice(0,be)}finally{E.allPendingTasks===0&&E.pingedTasks.length===0&&E.clientRenderedBoundaries.length===0&&E.completedBoundaries.length===0&&N.push(null)}}function Mo(E,N){try{var Y=E.abortableTasks;Y.forEach(function(ne){return pi(ne,E,N)}),Y.clear(),E.destination!==null&&cr(E,E.destination)}catch(ne){Jr(E,ne),xr(E,ne)}}function qi(){}function Fr(E,N,Y,ne){var Pe=!1,be=null,Ie="",Je={push:function(St){return St!==null&&(Ie+=St),!0},destroy:function(St){Pe=!0,be=St}},mt=!1;if(E=Pi(E,st(Y,N?N.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,qi,void 0,function(){mt=!0},void 0,void 0),Zn(E),Mo(E,ne),E.status===1)E.status=2,Je.destroy(E.fatalError);else if(E.status!==2&&E.destination===null){E.destination=Je;try{cr(E,Je)}catch(St){Jr(E,St),xr(E,St)}}if(Pe)throw be;if(!mt)throw Error(e(426));return Ie}return vc.renderToNodeStream=function(){throw Error(e(207))},vc.renderToStaticMarkup=function(E,N){return Fr(E,N,!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')},vc.renderToStaticNodeStream=function(){throw Error(e(208))},vc.renderToString=function(E,N){return Fr(E,N,!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')},vc.version="18.3.1",vc}var Fh={};/**
|
|
50
|
-
* @license React
|
|
51
|
-
* react-dom-server.browser.production.min.js
|
|
52
|
-
*
|
|
53
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
54
|
-
*
|
|
55
|
-
* This source code is licensed under the MIT license found in the
|
|
56
|
-
* LICENSE file in the root directory of this source tree.
|
|
57
|
-
*/var p1;function x4(){if(p1)return Fh;p1=1;var t=Z;function e(k){for(var L="https://reactjs.org/docs/error-decoder.html?invariant="+k,U=1;U<arguments.length;U++)L+="&args[]="+encodeURIComponent(arguments[U]);return"Minified React error #"+k+"; visit "+L+" 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(k,L){if(L.length!==0)if(512<L.length)0<r&&(k.enqueue(new Uint8Array(n.buffer,0,r)),n=new Uint8Array(512),r=0),k.enqueue(L);else{var U=n.length-r;U<L.length&&(U===0?k.enqueue(n):(n.set(L.subarray(0,U),r),k.enqueue(n),L=L.subarray(U)),n=new Uint8Array(512),r=0),n.set(L,r),r+=L.length}}function o(k,L){return i(k,L),!0}function a(k){n&&0<r&&(k.enqueue(new Uint8Array(n.buffer,0,r)),n=null,r=0)}var u=new TextEncoder;function c(k){return u.encode(k)}function d(k){return u.encode(k)}function y(k,L){typeof k.error=="function"?k.error(L):k.close()}var p=Object.prototype.hasOwnProperty,S=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,C={},A={};function I(k){return p.call(A,k)?!0:p.call(C,k)?!1:S.test(k)?A[k]=!0:(C[k]=!0,!1)}function B(k,L,U,te,Se,Te,Ne){this.acceptsBooleans=L===2||L===3||L===4,this.attributeName=te,this.attributeNamespace=Se,this.mustUseProperty=U,this.propertyName=k,this.type=L,this.sanitizeURL=Te,this.removeEmptyString=Ne}var _={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(k){_[k]=new B(k,0,!1,k,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(k){var L=k[0];_[L]=new B(L,1,!1,k[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(k){_[k]=new B(k,2,!1,k.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(k){_[k]=new B(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){_[k]=new B(k,3,!1,k.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(k){_[k]=new B(k,3,!0,k,null,!1,!1)}),["capture","download"].forEach(function(k){_[k]=new B(k,4,!1,k,null,!1,!1)}),["cols","rows","size","span"].forEach(function(k){_[k]=new B(k,6,!1,k,null,!1,!1)}),["rowSpan","start"].forEach(function(k){_[k]=new B(k,5,!1,k.toLowerCase(),null,!1,!1)});var G=/[\-:]([a-z])/g;function q(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 L=k.replace(G,q);_[L]=new B(L,1,!1,k,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(k){var L=k.replace(G,q);_[L]=new B(L,1,!1,k,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(k){var L=k.replace(G,q);_[L]=new B(L,1,!1,k,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(k){_[k]=new B(k,1,!1,k.toLowerCase(),null,!1,!1)}),_.xlinkHref=new B("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(k){_[k]=new B(k,1,!1,k.toLowerCase(),null,!0,!0)});var se={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Q=["Webkit","ms","Moz","O"];Object.keys(se).forEach(function(k){Q.forEach(function(L){L=L+k.charAt(0).toUpperCase()+k.substring(1),se[L]=se[k]})});var ye=/["'&<>]/;function x(k){if(typeof k=="boolean"||typeof k=="number")return""+k;k=""+k;var L=ye.exec(k);if(L){var U="",te,Se=0;for(te=L.index;te<k.length;te++){switch(k.charCodeAt(te)){case 34:L=""";break;case 38:L="&";break;case 39:L="'";break;case 60:L="<";break;case 62:L=">";break;default:continue}Se!==te&&(U+=k.substring(Se,te)),Se=te+1,U+=L}k=Se!==te?U+k.substring(Se,te):U}return k}var ae=/([A-Z])/g,ce=/^ms-/,Be=Array.isArray,qe=d("<script>"),Ze=d("<\/script>"),ot=d('<script src="'),it=d('<script type="module" src="'),me=d('" async=""><\/script>'),De=/(<\/|<)(s)(cript)/gi;function Le(k,L,U,te){return""+L+(U==="s"?"\\u0073":"\\u0053")+te}function Ye(k,L,U,te,Se){k=k===void 0?"":k,L=L===void 0?qe:d('<script nonce="'+x(L)+'">');var Te=[];if(U!==void 0&&Te.push(L,c((""+U).replace(De,Le)),Ze),te!==void 0)for(U=0;U<te.length;U++)Te.push(ot,c(x(te[U])),me);if(Se!==void 0)for(te=0;te<Se.length;te++)Te.push(it,c(x(Se[te])),me);return{bootstrapChunks:Te,startInlineScript:L,placeholderPrefix:d(k+"P:"),segmentPrefix:d(k+"S:"),boundaryPrefix:k+"B:",idPrefix:k,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function st(k,L){return{insertionMode:k,selectedValue:L}}function Ce(k){return st(k==="http://www.w3.org/2000/svg"?2:k==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function _e(k,L,U){switch(L){case"select":return st(1,U.value!=null?U.value:U.defaultValue);case"svg":return st(2,null);case"math":return st(3,null);case"foreignObject":return st(1,null);case"table":return st(4,null);case"thead":case"tbody":case"tfoot":return st(5,null);case"colgroup":return st(7,null);case"tr":return st(6,null)}return 4<=k.insertionMode||k.insertionMode===0?st(1,null):k}var Xe=d("<!-- -->");function Ge(k,L,U,te){return L===""?te:(te&&k.push(Xe),k.push(c(x(L))),!0)}var tt=new Map,et=d(' style="'),nt=d(":"),lt=d(";");function bt(k,L,U){if(typeof U!="object")throw Error(e(62));L=!0;for(var te in U)if(p.call(U,te)){var Se=U[te];if(Se!=null&&typeof Se!="boolean"&&Se!==""){if(te.indexOf("--")===0){var Te=c(x(te));Se=c(x((""+Se).trim()))}else{Te=te;var Ne=tt.get(Te);Ne!==void 0||(Ne=d(x(Te.replace(ae,"-$1").toLowerCase().replace(ce,"-ms-"))),tt.set(Te,Ne)),Te=Ne,Se=typeof Se=="number"?Se===0||p.call(se,te)?c(""+Se):c(Se+"px"):c(x((""+Se).trim()))}L?(L=!1,k.push(et,Te,nt,Se)):k.push(lt,Te,nt,Se)}}L||k.push(Ct)}var xt=d(" "),gt=d('="'),Ct=d('"'),rt=d('=""');function Bt(k,L,U,te){switch(U){case"style":bt(k,L,te);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(L=_.hasOwnProperty(U)?_[U]:null,L!==null){switch(typeof te){case"function":case"symbol":return;case"boolean":if(!L.acceptsBooleans)return}switch(U=c(L.attributeName),L.type){case 3:te&&k.push(xt,U,rt);break;case 4:te===!0?k.push(xt,U,rt):te!==!1&&k.push(xt,U,gt,c(x(te)),Ct);break;case 5:isNaN(te)||k.push(xt,U,gt,c(x(te)),Ct);break;case 6:!isNaN(te)&&1<=te&&k.push(xt,U,gt,c(x(te)),Ct);break;default:L.sanitizeURL&&(te=""+te),k.push(xt,U,gt,c(x(te)),Ct)}}else if(I(U)){switch(typeof te){case"function":case"symbol":return;case"boolean":if(L=U.toLowerCase().slice(0,5),L!=="data-"&&L!=="aria-")return}k.push(xt,c(U),gt,c(x(te)),Ct)}}}var Vt=d(">"),qn=d("/>");function yr(k,L,U){if(L!=null){if(U!=null)throw Error(e(60));if(typeof L!="object"||!("__html"in L))throw Error(e(61));L=L.__html,L!=null&&k.push(c(""+L))}}function Xn(k){var L="";return t.Children.forEach(k,function(U){U!=null&&(L+=U)}),L}var Dn=d(' selected=""');function Hi(k,L,U,te){k.push(dn(U));var Se=U=null,Te;for(Te in L)if(p.call(L,Te)){var Ne=L[Te];if(Ne!=null)switch(Te){case"children":U=Ne;break;case"dangerouslySetInnerHTML":Se=Ne;break;default:Bt(k,te,Te,Ne)}}return k.push(Vt),yr(k,Se,U),typeof U=="string"?(k.push(c(x(U))),null):U}var Or=d(`
|
|
58
|
-
`),ir=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,un=new Map;function dn(k){var L=un.get(k);if(L===void 0){if(!ir.test(k))throw Error(e(65,k));L=d("<"+k),un.set(k,L)}return L}var hn=d("<!DOCTYPE html>");function pt(k,L,U,te,Se){switch(L){case"select":k.push(dn("select"));var Te=null,Ne=null;for(Dt in U)if(p.call(U,Dt)){var Ke=U[Dt];if(Ke!=null)switch(Dt){case"children":Te=Ke;break;case"dangerouslySetInnerHTML":Ne=Ke;break;case"defaultValue":case"value":break;default:Bt(k,te,Dt,Ke)}}return k.push(Vt),yr(k,Ne,Te),Te;case"option":Ne=Se.selectedValue,k.push(dn("option"));var yt=Ke=null,Nt=null,Dt=null;for(Te in U)if(p.call(U,Te)){var Tt=U[Te];if(Tt!=null)switch(Te){case"children":Ke=Tt;break;case"selected":Nt=Tt;break;case"dangerouslySetInnerHTML":Dt=Tt;break;case"value":yt=Tt;default:Bt(k,te,Te,Tt)}}if(Ne!=null)if(U=yt!==null?""+yt:Xn(Ke),Be(Ne)){for(te=0;te<Ne.length;te++)if(""+Ne[te]===U){k.push(Dn);break}}else""+Ne===U&&k.push(Dn);else Nt&&k.push(Dn);return k.push(Vt),yr(k,Dt,Ke),Ke;case"textarea":k.push(dn("textarea")),Dt=Ne=Te=null;for(Ke in U)if(p.call(U,Ke)&&(yt=U[Ke],yt!=null))switch(Ke){case"children":Dt=yt;break;case"value":Te=yt;break;case"defaultValue":Ne=yt;break;case"dangerouslySetInnerHTML":throw Error(e(91));default:Bt(k,te,Ke,yt)}if(Te===null&&Ne!==null&&(Te=Ne),k.push(Vt),Dt!=null){if(Te!=null)throw Error(e(92));if(Be(Dt)&&1<Dt.length)throw Error(e(93));Te=""+Dt}return typeof Te=="string"&&Te[0]===`
|
|
59
|
-
`&&k.push(Or),Te!==null&&k.push(c(x(""+Te))),null;case"input":k.push(dn("input")),yt=Dt=Ke=Te=null;for(Ne in U)if(p.call(U,Ne)&&(Nt=U[Ne],Nt!=null))switch(Ne){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,"input"));case"defaultChecked":yt=Nt;break;case"defaultValue":Ke=Nt;break;case"checked":Dt=Nt;break;case"value":Te=Nt;break;default:Bt(k,te,Ne,Nt)}return Dt!==null?Bt(k,te,"checked",Dt):yt!==null&&Bt(k,te,"checked",yt),Te!==null?Bt(k,te,"value",Te):Ke!==null&&Bt(k,te,"value",Ke),k.push(qn),null;case"menuitem":k.push(dn("menuitem"));for(var jn in U)if(p.call(U,jn)&&(Te=U[jn],Te!=null))switch(jn){case"children":case"dangerouslySetInnerHTML":throw Error(e(400));default:Bt(k,te,jn,Te)}return k.push(Vt),null;case"title":k.push(dn("title")),Te=null;for(Tt in U)if(p.call(U,Tt)&&(Ne=U[Tt],Ne!=null))switch(Tt){case"children":Te=Ne;break;case"dangerouslySetInnerHTML":throw Error(e(434));default:Bt(k,te,Tt,Ne)}return k.push(Vt),Te;case"listing":case"pre":k.push(dn(L)),Ne=Te=null;for(yt in U)if(p.call(U,yt)&&(Ke=U[yt],Ke!=null))switch(yt){case"children":Te=Ke;break;case"dangerouslySetInnerHTML":Ne=Ke;break;default:Bt(k,te,yt,Ke)}if(k.push(Vt),Ne!=null){if(Te!=null)throw Error(e(60));if(typeof Ne!="object"||!("__html"in Ne))throw Error(e(61));U=Ne.__html,U!=null&&(typeof U=="string"&&0<U.length&&U[0]===`
|
|
60
|
-
`?k.push(Or,c(U)):k.push(c(""+U)))}return typeof Te=="string"&&Te[0]===`
|
|
61
|
-
`&&k.push(Or),Te;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(dn(L));for(var Sn in U)if(p.call(U,Sn)&&(Te=U[Sn],Te!=null))switch(Sn){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,L));default:Bt(k,te,Sn,Te)}return k.push(qn),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 Hi(k,U,L,te);case"html":return Se.insertionMode===0&&k.push(hn),Hi(k,U,L,te);default:if(L.indexOf("-")===-1&&typeof U.is!="string")return Hi(k,U,L,te);k.push(dn(L)),Ne=Te=null;for(Nt in U)if(p.call(U,Nt)&&(Ke=U[Nt],Ke!=null))switch(Nt){case"children":Te=Ke;break;case"dangerouslySetInnerHTML":Ne=Ke;break;case"style":bt(k,te,Ke);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:I(Nt)&&typeof Ke!="function"&&typeof Ke!="symbol"&&k.push(xt,c(Nt),gt,c(x(Ke)),Ct)}return k.push(Vt),yr(k,Ne,Te),Te}}var Rn=d("</"),li=d(">"),ln=d('<template id="'),Ui=d('"></template>'),Wi=d("<!--$-->"),zi=d('<!--$?--><template id="'),_r=d('"></template>'),Un=d("<!--$!-->"),Rr=d("<!--/$-->"),br=d("<template"),qr=d('"'),Xr=d(' data-dgst="');d(' data-msg="'),d(' data-stck="');var Ao=d("></template>");function Kn(k,L,U){if(i(k,zi),U===null)throw Error(e(395));return i(k,U),o(k,_r)}var Kr=d('<div hidden id="'),or=d('">'),Zt=d("</div>"),ui=d('<svg aria-hidden="true" style="display:none" id="'),Yi=d('">'),An=d("</svg>"),pn=d('<math aria-hidden="true" style="display:none" id="'),ci=d('">'),fi=d("</math>"),mn=d('<table hidden id="'),co=d('">'),wr=d("</table>"),di=d('<table hidden><tbody id="'),cn=d('">'),ki=d("</tbody></table>"),Ms=d('<table hidden><tr id="'),Ls=d('">'),Zr=d("</tr></table>"),fo=d('<table hidden><colgroup id="'),ho=d('">'),Io=d("</colgroup></table>");function Di(k,L,U,te){switch(U.insertionMode){case 0:case 1:return i(k,Kr),i(k,L.segmentPrefix),i(k,c(te.toString(16))),o(k,or);case 2:return i(k,ui),i(k,L.segmentPrefix),i(k,c(te.toString(16))),o(k,Yi);case 3:return i(k,pn),i(k,L.segmentPrefix),i(k,c(te.toString(16))),o(k,ci);case 4:return i(k,mn),i(k,L.segmentPrefix),i(k,c(te.toString(16))),o(k,co);case 5:return i(k,di),i(k,L.segmentPrefix),i(k,c(te.toString(16))),o(k,cn);case 6:return i(k,Ms),i(k,L.segmentPrefix),i(k,c(te.toString(16))),o(k,Ls);case 7:return i(k,fo),i(k,L.segmentPrefix),i(k,c(te.toString(16))),o(k,ho);default:throw Error(e(397))}}function hi(k,L){switch(L.insertionMode){case 0:case 1:return o(k,Zt);case 2:return o(k,An);case 3:return o(k,fi);case 4:return o(k,wr);case 5:return o(k,ki);case 6:return o(k,Zr);case 7:return o(k,Io);default:throw Error(e(397))}}var Pi=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)};$RS("'),po=d('$RS("'),Oi=d('","'),Jr=d('")<\/script>'),xr=d('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("'),Ar=d('$RC("'),Qr=d('","'),Ir=d('")<\/script>'),Wn=d('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("'),gn=d('$RX("'),Mr=d('"'),Sr=d(")<\/script>"),In=d(","),pi=/[<\u2028\u2029]/g;function Lr(k){return JSON.stringify(k).replace(pi,function(L){switch(L){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 ei=Object.assign,Zn=Symbol.for("react.element"),ti=Symbol.for("react.portal"),ni=Symbol.for("react.fragment"),Gi=Symbol.for("react.strict_mode"),On=Symbol.for("react.profiler"),Tr=Symbol.for("react.provider"),cr=Symbol.for("react.context"),Mo=Symbol.for("react.forward_ref"),qi=Symbol.for("react.suspense"),Fr=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),Y=Symbol.for("react.scope"),ne=Symbol.for("react.debug_trace_mode"),Pe=Symbol.for("react.legacy_hidden"),be=Symbol.for("react.default_value"),Ie=Symbol.iterator;function Je(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 ni:return"Fragment";case ti:return"Portal";case On:return"Profiler";case Gi:return"StrictMode";case qi:return"Suspense";case Fr:return"SuspenseList"}if(typeof k=="object")switch(k.$$typeof){case cr:return(k.displayName||"Context")+".Consumer";case Tr:return(k._context.displayName||"Context")+".Provider";case Mo:var L=k.render;return k=k.displayName,k||(k=L.displayName||L.name||"",k=k!==""?"ForwardRef("+k+")":"ForwardRef"),k;case E:return L=k.displayName||null,L!==null?L:Je(k.type)||"Memo";case N:L=k._payload,k=k._init;try{return Je(k(L))}catch{}}return null}var mt={};function St(k,L){if(k=k.contextTypes,!k)return mt;var U={},te;for(te in k)U[te]=L[te];return U}var vt=null;function Ht(k,L){if(k!==L){k.context._currentValue=k.parentValue,k=k.parent;var U=L.parent;if(k===null){if(U!==null)throw Error(e(401))}else{if(U===null)throw Error(e(401));Ht(k,U)}L.context._currentValue=L.value}}function Jn(k){k.context._currentValue=k.parentValue,k=k.parent,k!==null&&Jn(k)}function zn(k){var L=k.parent;L!==null&&zn(L),k.context._currentValue=k.value}function Pn(k,L){if(k.context._currentValue=k.parentValue,k=k.parent,k===null)throw Error(e(402));k.depth===L.depth?Ht(k,L):Pn(k,L)}function Nr(k,L){var U=L.parent;if(U===null)throw Error(e(402));k.depth===U.depth?Ht(k,U):Nr(k,U),L.context._currentValue=L.value}function sr(k){var L=vt;L!==k&&(L===null?zn(k):k===null?Jn(L):L.depth===k.depth?Ht(L,k):L.depth>k.depth?Pn(L,k):Nr(L,k),vt=k)}var Xi={isMounted:function(){return!1},enqueueSetState:function(k,L){k=k._reactInternals,k.queue!==null&&k.queue.push(L)},enqueueReplaceState:function(k,L){k=k._reactInternals,k.replace=!0,k.queue=[L]},enqueueForceUpdate:function(){}};function gi(k,L,U,te){var Se=k.state!==void 0?k.state:null;k.updater=Xi,k.props=U,k.state=Se;var Te={queue:[],replace:!1};k._reactInternals=Te;var Ne=L.contextType;if(k.context=typeof Ne=="object"&&Ne!==null?Ne._currentValue:te,Ne=L.getDerivedStateFromProps,typeof Ne=="function"&&(Ne=Ne(U,Se),Se=Ne==null?Se:ei({},Se,Ne),k.state=Se),typeof L.getDerivedStateFromProps!="function"&&typeof k.getSnapshotBeforeUpdate!="function"&&(typeof k.UNSAFE_componentWillMount=="function"||typeof k.componentWillMount=="function"))if(L=k.state,typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount(),L!==k.state&&Xi.enqueueReplaceState(k,k.state,null),Te.queue!==null&&0<Te.queue.length)if(L=Te.queue,Ne=Te.replace,Te.queue=null,Te.replace=!1,Ne&&L.length===1)k.state=L[0];else{for(Te=Ne?L[0]:k.state,Se=!0,Ne=Ne?1:0;Ne<L.length;Ne++){var Ke=L[Ne];Ke=typeof Ke=="function"?Ke.call(k,Te,U,te):Ke,Ke!=null&&(Se?(Se=!1,Te=ei({},Te,Ke)):ei(Te,Ke))}k.state=Te}else Te.queue=null}var Ki={id:1,overflow:""};function jr(k,L,U){var te=k.id;k=k.overflow;var Se=32-Lo(te)-1;te&=~(1<<Se),U+=1;var Te=32-Lo(L)+Se;if(30<Te){var Ne=Se-Se%5;return Te=(te&(1<<Ne)-1).toString(32),te>>=Ne,Se-=Ne,{id:1<<32-Lo(L)+Se|U<<Se|te,overflow:Te+k}}return{id:1<<Te|U<<Se|te,overflow:k}}var Lo=Math.clz32?Math.clz32:Ns,Ya=Math.log,Fs=Math.LN2;function Ns(k){return k>>>=0,k===0?32:31-(Ya(k)/Fs|0)|0}function js(k,L){return k===L&&(k!==0||1/k===1/L)||k!==k&&L!==L}var Bs=typeof Object.is=="function"?Object.is:js,mi=null,Fo=null,as=null,sn=null,Jt=!1,$t=!1,_i=0,ri=null,No=0;function vi(){if(mi===null)throw Error(e(321));return mi}function fr(){if(0<No)throw Error(e(312));return{memoizedState:null,queue:null,next:null}}function $s(){return sn===null?as===null?(Jt=!1,as=sn=fr()):(Jt=!0,sn=as):sn.next===null?(Jt=!1,sn=sn.next=fr()):(Jt=!0,sn=sn.next),sn}function ls(){Fo=mi=null,$t=!1,as=null,No=0,sn=ri=null}function ca(k,L){return typeof L=="function"?L(k):L}function vn(k,L,U){if(mi=vi(),sn=$s(),Jt){var te=sn.queue;if(L=te.dispatch,ri!==null&&(U=ri.get(te),U!==void 0)){ri.delete(te),te=sn.memoizedState;do te=k(te,U.action),U=U.next;while(U!==null);return sn.memoizedState=te,[te,L]}return[sn.memoizedState,L]}return k=k===ca?typeof L=="function"?L():L:U!==void 0?U(L):L,sn.memoizedState=k,k=sn.queue={last:null,dispatch:null},k=k.dispatch=yi.bind(null,mi,k),[sn.memoizedState,k]}function jo(k,L){if(mi=vi(),sn=$s(),L=L===void 0?null:L,sn!==null){var U=sn.memoizedState;if(U!==null&&L!==null){var te=U[1];e:if(te===null)te=!1;else{for(var Se=0;Se<te.length&&Se<L.length;Se++)if(!Bs(L[Se],te[Se])){te=!1;break e}te=!0}if(te)return U[0]}}return k=k(),sn.memoizedState=[k,L],k}function yi(k,L,U){if(25<=No)throw Error(e(301));if(k===mi)if($t=!0,k={action:U,next:null},ri===null&&(ri=new Map),U=ri.get(L),U===void 0)ri.set(L,k);else{for(L=U;L.next!==null;)L=L.next;L.next=k}}function fa(){throw Error(e(394))}function go(){}var Qn={readContext:function(k){return k._currentValue},useContext:function(k){return vi(),k._currentValue},useMemo:jo,useReducer:vn,useRef:function(k){mi=vi(),sn=$s();var L=sn.memoizedState;return L===null?(k={current:k},sn.memoizedState=k):L},useState:function(k){return vn(ca,k)},useInsertionEffect:go,useLayoutEffect:function(){},useCallback:function(k,L){return jo(function(){return k},L)},useImperativeHandle:go,useEffect:go,useDebugValue:go,useDeferredValue:function(k){return vi(),k},useTransition:function(){return vi(),[!1,fa]},useId:function(){var k=Fo.treeContext,L=k.overflow;k=k.id,k=(k&~(1<<32-Lo(k)-1)).toString(32)+L;var U=f;if(U===null)throw Error(e(404));return L=_i++,k=":"+U.idPrefix+"R"+k,0<L&&(k+="H"+L.toString(32)),k+":"},useMutableSource:function(k,L){return vi(),L(k._source)},useSyncExternalStore:function(k,L,U){if(U===void 0)throw Error(e(407));return U()}},f=null,m=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function T(k){return console.error(k),null}function D(){}function F(k,L,U,te,Se,Te,Ne,Ke,yt){var Nt=[],Dt=new Set;return L={destination:null,responseState:L,progressiveChunkSize:te===void 0?12800:te,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:Dt,pingedTasks:Nt,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:Se===void 0?T:Se,onAllReady:Te===void 0?D:Te,onShellReady:Ne===void 0?D:Ne,onShellError:Ke===void 0?D:Ke,onFatalError:yt===void 0?D:yt},U=H(L,0,null,U,!1,!1),U.parentFlushed=!0,k=j(L,k,null,U,Dt,mt,null,Ki),Nt.push(k),L}function j(k,L,U,te,Se,Te,Ne,Ke){k.allPendingTasks++,U===null?k.pendingRootTasks++:U.pendingTasks++;var yt={node:L,ping:function(){var Nt=k.pingedTasks;Nt.push(yt),Nt.length===1&&$r(k)},blockedBoundary:U,blockedSegment:te,abortSet:Se,legacyContext:Te,context:Ne,treeContext:Ke};return Se.add(yt),yt}function H(k,L,U,te,Se,Te){return{status:0,id:-1,index:L,parentFlushed:!1,chunks:[],children:[],formatContext:te,boundary:U,lastPushedText:Se,textEmbedded:Te}}function ue(k,L){if(k=k.onError(L),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 ie(k,L){var U=k.onShellError;U(L),U=k.onFatalError,U(L),k.destination!==null?(k.status=2,y(k.destination,L)):(k.status=1,k.fatalError=L)}function we(k,L,U,te,Se){for(mi={},Fo=L,_i=0,k=U(te,Se);$t;)$t=!1,_i=0,No+=1,sn=null,k=U(te,Se);return ls(),k}function Me(k,L,U,te){var Se=U.render(),Te=te.childContextTypes;if(Te!=null){var Ne=L.legacyContext;if(typeof U.getChildContext!="function")te=Ne;else{U=U.getChildContext();for(var Ke in U)if(!(Ke in Te))throw Error(e(108,Je(te)||"Unknown",Ke));te=ei({},Ne,U)}L.legacyContext=te,He(k,L,Se),L.legacyContext=Ne}else He(k,L,Se)}function Fe(k,L){if(k&&k.defaultProps){L=ei({},L),k=k.defaultProps;for(var U in k)L[U]===void 0&&(L[U]=k[U]);return L}return L}function Ee(k,L,U,te,Se){if(typeof U=="function")if(U.prototype&&U.prototype.isReactComponent){Se=St(U,L.legacyContext);var Te=U.contextType;Te=new U(te,typeof Te=="object"&&Te!==null?Te._currentValue:Se),gi(Te,U,te,Se),Me(k,L,Te,U)}else{Te=St(U,L.legacyContext),Se=we(k,L,U,te,Te);var Ne=_i!==0;if(typeof Se=="object"&&Se!==null&&typeof Se.render=="function"&&Se.$$typeof===void 0)gi(Se,U,te,Te),Me(k,L,Se,U);else if(Ne){te=L.treeContext,L.treeContext=jr(te,1,0);try{He(k,L,Se)}finally{L.treeContext=te}}else He(k,L,Se)}else if(typeof U=="string"){switch(Se=L.blockedSegment,Te=pt(Se.chunks,U,te,k.responseState,Se.formatContext),Se.lastPushedText=!1,Ne=Se.formatContext,Se.formatContext=_e(Ne,U,te),Pt(k,L,Te),Se.formatContext=Ne,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:Se.chunks.push(Rn,c(U),li)}Se.lastPushedText=!1}else{switch(U){case Pe:case ne:case Gi:case On:case ni:He(k,L,te.children);return;case Fr:He(k,L,te.children);return;case Y:throw Error(e(343));case qi:e:{U=L.blockedBoundary,Se=L.blockedSegment,Te=te.fallback,te=te.children,Ne=new Set;var Ke={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:Ne,errorDigest:null},yt=H(k,Se.chunks.length,Ke,Se.formatContext,!1,!1);Se.children.push(yt),Se.lastPushedText=!1;var Nt=H(k,0,null,Se.formatContext,!1,!1);Nt.parentFlushed=!0,L.blockedBoundary=Ke,L.blockedSegment=Nt;try{if(Pt(k,L,te),Nt.lastPushedText&&Nt.textEmbedded&&Nt.chunks.push(Xe),Nt.status=1,fn(Ke,Nt),Ke.pendingTasks===0)break e}catch(Dt){Nt.status=4,Ke.forceClientRender=!0,Ke.errorDigest=ue(k,Dt)}finally{L.blockedBoundary=U,L.blockedSegment=Se}L=j(k,Te,U,yt,Ne,L.legacyContext,L.context,L.treeContext),k.pingedTasks.push(L)}return}if(typeof U=="object"&&U!==null)switch(U.$$typeof){case Mo:if(te=we(k,L,U.render,te,Se),_i!==0){U=L.treeContext,L.treeContext=jr(U,1,0);try{He(k,L,te)}finally{L.treeContext=U}}else He(k,L,te);return;case E:U=U.type,te=Fe(U,te),Ee(k,L,U,te,Se);return;case Tr:if(Se=te.children,U=U._context,te=te.value,Te=U._currentValue,U._currentValue=te,Ne=vt,vt=te={parent:Ne,depth:Ne===null?0:Ne.depth+1,context:U,parentValue:Te,value:te},L.context=te,He(k,L,Se),k=vt,k===null)throw Error(e(403));te=k.parentValue,k.context._currentValue=te===be?k.context._defaultValue:te,k=vt=k.parent,L.context=k;return;case cr:te=te.children,te=te(U._currentValue),He(k,L,te);return;case N:Se=U._init,U=Se(U._payload),te=Fe(U,te),Ee(k,L,U,te,void 0);return}throw Error(e(130,U==null?U:typeof U,""))}}function He(k,L,U){if(L.node=U,typeof U=="object"&&U!==null){switch(U.$$typeof){case Zn:Ee(k,L,U.type,U.props,U.ref);return;case ti:throw Error(e(257));case N:var te=U._init;U=te(U._payload),He(k,L,U);return}if(Be(U)){ut(k,L,U);return}if(U===null||typeof U!="object"?te=null:(te=Ie&&U[Ie]||U["@@iterator"],te=typeof te=="function"?te:null),te&&(te=te.call(U))){if(U=te.next(),!U.done){var Se=[];do Se.push(U.value),U=te.next();while(!U.done);ut(k,L,Se)}return}throw k=Object.prototype.toString.call(U),Error(e(31,k==="[object Object]"?"object with keys {"+Object.keys(U).join(", ")+"}":k))}typeof U=="string"?(te=L.blockedSegment,te.lastPushedText=Ge(L.blockedSegment.chunks,U,k.responseState,te.lastPushedText)):typeof U=="number"&&(te=L.blockedSegment,te.lastPushedText=Ge(L.blockedSegment.chunks,""+U,k.responseState,te.lastPushedText))}function ut(k,L,U){for(var te=U.length,Se=0;Se<te;Se++){var Te=L.treeContext;L.treeContext=jr(Te,te,Se);try{Pt(k,L,U[Se])}finally{L.treeContext=Te}}}function Pt(k,L,U){var te=L.blockedSegment.formatContext,Se=L.legacyContext,Te=L.context;try{return He(k,L,U)}catch(yt){if(ls(),typeof yt=="object"&&yt!==null&&typeof yt.then=="function"){U=yt;var Ne=L.blockedSegment,Ke=H(k,Ne.chunks.length,null,Ne.formatContext,Ne.lastPushedText,!0);Ne.children.push(Ke),Ne.lastPushedText=!1,k=j(k,L.node,L.blockedBoundary,Ke,L.abortSet,L.legacyContext,L.context,L.treeContext).ping,U.then(k,k),L.blockedSegment.formatContext=te,L.legacyContext=Se,L.context=Te,sr(Te)}else throw L.blockedSegment.formatContext=te,L.legacyContext=Se,L.context=Te,sr(Te),yt}}function _t(k){var L=k.blockedBoundary;k=k.blockedSegment,k.status=3,Br(this,L,k)}function Mn(k,L,U){var te=k.blockedBoundary;k.blockedSegment.status=3,te===null?(L.allPendingTasks--,L.status!==2&&(L.status=2,L.destination!==null&&L.destination.close())):(te.pendingTasks--,te.forceClientRender||(te.forceClientRender=!0,k=U===void 0?Error(e(432)):U,te.errorDigest=L.onError(k),te.parentFlushed&&L.clientRenderedBoundaries.push(te)),te.fallbackAbortableTasks.forEach(function(Se){return Mn(Se,L,U)}),te.fallbackAbortableTasks.clear(),L.allPendingTasks--,L.allPendingTasks===0&&(te=L.onAllReady,te()))}function fn(k,L){if(L.chunks.length===0&&L.children.length===1&&L.children[0].boundary===null){var U=L.children[0];U.id=L.id,U.parentFlushed=!0,U.status===1&&fn(k,U)}else k.completedSegments.push(L)}function Br(k,L,U){if(L===null){if(U.parentFlushed){if(k.completedRootSegment!==null)throw Error(e(389));k.completedRootSegment=U}k.pendingRootTasks--,k.pendingRootTasks===0&&(k.onShellError=D,L=k.onShellReady,L())}else L.pendingTasks--,L.forceClientRender||(L.pendingTasks===0?(U.parentFlushed&&U.status===1&&fn(L,U),L.parentFlushed&&k.completedBoundaries.push(L),L.fallbackAbortableTasks.forEach(_t,k),L.fallbackAbortableTasks.clear()):U.parentFlushed&&U.status===1&&(fn(L,U),L.completedSegments.length===1&&L.parentFlushed&&k.partialBoundaries.push(L)));k.allPendingTasks--,k.allPendingTasks===0&&(k=k.onAllReady,k())}function $r(k){if(k.status!==2){var L=vt,U=m.current;m.current=Qn;var te=f;f=k.responseState;try{var Se=k.pingedTasks,Te;for(Te=0;Te<Se.length;Te++){var Ne=Se[Te],Ke=k,yt=Ne.blockedSegment;if(yt.status===0){sr(Ne.context);try{He(Ke,Ne,Ne.node),yt.lastPushedText&&yt.textEmbedded&&yt.chunks.push(Xe),Ne.abortSet.delete(Ne),yt.status=1,Br(Ke,Ne.blockedBoundary,yt)}catch(Yn){if(ls(),typeof Yn=="object"&&Yn!==null&&typeof Yn.then=="function"){var Nt=Ne.ping;Yn.then(Nt,Nt)}else{Ne.abortSet.delete(Ne),yt.status=4;var Dt=Ne.blockedBoundary,Tt=Yn,jn=ue(Ke,Tt);if(Dt===null?ie(Ke,Tt):(Dt.pendingTasks--,Dt.forceClientRender||(Dt.forceClientRender=!0,Dt.errorDigest=jn,Dt.parentFlushed&&Ke.clientRenderedBoundaries.push(Dt))),Ke.allPendingTasks--,Ke.allPendingTasks===0){var Sn=Ke.onAllReady;Sn()}}}finally{}}}Se.splice(0,Te),k.destination!==null&&vo(k,k.destination)}catch(Yn){ue(k,Yn),ie(k,Yn)}finally{f=te,m.current=U,U===Qn&&sr(L)}}}function Ut(k,L,U){switch(U.parentFlushed=!0,U.status){case 0:var te=U.id=k.nextSegmentId++;return U.lastPushedText=!1,U.textEmbedded=!1,k=k.responseState,i(L,ln),i(L,k.placeholderPrefix),k=c(te.toString(16)),i(L,k),o(L,Ui);case 1:U.status=2;var Se=!0;te=U.chunks;var Te=0;U=U.children;for(var Ne=0;Ne<U.length;Ne++){for(Se=U[Ne];Te<Se.index;Te++)i(L,te[Te]);Se=Vr(k,L,Se)}for(;Te<te.length-1;Te++)i(L,te[Te]);return Te<te.length&&(Se=o(L,te[Te])),Se;default:throw Error(e(390))}}function Vr(k,L,U){var te=U.boundary;if(te===null)return Ut(k,L,U);if(te.parentFlushed=!0,te.forceClientRender)te=te.errorDigest,o(L,Un),i(L,br),te&&(i(L,Xr),i(L,c(x(te))),i(L,qr)),o(L,Ao),Ut(k,L,U);else if(0<te.pendingTasks){te.rootSegmentID=k.nextSegmentId++,0<te.completedSegments.length&&k.partialBoundaries.push(te);var Se=k.responseState,Te=Se.nextSuspenseID++;Se=d(Se.boundaryPrefix+Te.toString(16)),te=te.id=Se,Kn(L,k.responseState,te),Ut(k,L,U)}else if(te.byteSize>k.progressiveChunkSize)te.rootSegmentID=k.nextSegmentId++,k.completedBoundaries.push(te),Kn(L,k.responseState,te.id),Ut(k,L,U);else{if(o(L,Wi),U=te.completedSegments,U.length!==1)throw Error(e(391));Vr(k,L,U[0])}return o(L,Rr)}function zt(k,L,U){return Di(L,k.responseState,U.formatContext,U.id),Vr(k,L,U),hi(L,U.formatContext)}function rn(k,L,U){for(var te=U.completedSegments,Se=0;Se<te.length;Se++)mo(k,L,U,te[Se]);if(te.length=0,k=k.responseState,te=U.id,U=U.rootSegmentID,i(L,k.startInlineScript),k.sentCompleteBoundaryFunction?i(L,Ar):(k.sentCompleteBoundaryFunction=!0,i(L,xr)),te===null)throw Error(e(395));return U=c(U.toString(16)),i(L,te),i(L,Qr),i(L,k.segmentPrefix),i(L,U),o(L,Ir)}function mo(k,L,U,te){if(te.status===2)return!0;var Se=te.id;if(Se===-1){if((te.id=U.rootSegmentID)===-1)throw Error(e(392));return zt(k,L,te)}return zt(k,L,te),k=k.responseState,i(L,k.startInlineScript),k.sentCompleteSegmentFunction?i(L,po):(k.sentCompleteSegmentFunction=!0,i(L,Pi)),i(L,k.segmentPrefix),Se=c(Se.toString(16)),i(L,Se),i(L,Oi),i(L,k.placeholderPrefix),i(L,Se),o(L,Jr)}function vo(k,L){n=new Uint8Array(512),r=0;try{var U=k.completedRootSegment;if(U!==null&&k.pendingRootTasks===0){Vr(k,L,U),k.completedRootSegment=null;var te=k.responseState.bootstrapChunks;for(U=0;U<te.length-1;U++)i(L,te[U]);U<te.length&&o(L,te[U])}var Se=k.clientRenderedBoundaries,Te;for(Te=0;Te<Se.length;Te++){var Ne=Se[Te];te=L;var Ke=k.responseState,yt=Ne.id,Nt=Ne.errorDigest,Dt=Ne.errorMessage,Tt=Ne.errorComponentStack;if(i(te,Ke.startInlineScript),Ke.sentClientRenderFunction?i(te,gn):(Ke.sentClientRenderFunction=!0,i(te,Wn)),yt===null)throw Error(e(395));i(te,yt),i(te,Mr),(Nt||Dt||Tt)&&(i(te,In),i(te,c(Lr(Nt||"")))),(Dt||Tt)&&(i(te,In),i(te,c(Lr(Dt||"")))),Tt&&(i(te,In),i(te,c(Lr(Tt)))),o(te,Sr)}Se.splice(0,Te);var jn=k.completedBoundaries;for(Te=0;Te<jn.length;Te++)rn(k,L,jn[Te]);jn.splice(0,Te),a(L),n=new Uint8Array(512),r=0;var Sn=k.partialBoundaries;for(Te=0;Te<Sn.length;Te++){var Yn=Sn[Te];e:{Se=k,Ne=L;var us=Yn.completedSegments;for(Ke=0;Ke<us.length;Ke++)if(!mo(Se,Ne,Yn,us[Ke])){Ke++,us.splice(0,Ke);var da=!1;break e}us.splice(0,Ke),da=!0}if(!da){k.destination=null,Te++,Sn.splice(0,Te);return}}Sn.splice(0,Te);var cs=k.completedBoundaries;for(Te=0;Te<cs.length;Te++)rn(k,L,cs[Te]);cs.splice(0,Te)}finally{a(L),k.allPendingTasks===0&&k.pingedTasks.length===0&&k.clientRenderedBoundaries.length===0&&k.completedBoundaries.length===0&&L.close()}}function Cr(k,L){try{var U=k.abortableTasks;U.forEach(function(te){return Mn(te,k,L)}),U.clear(),k.destination!==null&&vo(k,k.destination)}catch(te){ue(k,te),ie(k,te)}}return Fh.renderToReadableStream=function(k,L){return new Promise(function(U,te){var Se,Te,Ne=new Promise(function(Dt,Tt){Te=Dt,Se=Tt}),Ke=F(k,Ye(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),Ce(L?L.namespaceURI:void 0),L?L.progressiveChunkSize:void 0,L?L.onError:void 0,Te,function(){var Dt=new ReadableStream({type:"bytes",pull:function(Tt){if(Ke.status===1)Ke.status=2,y(Tt,Ke.fatalError);else if(Ke.status!==2&&Ke.destination===null){Ke.destination=Tt;try{vo(Ke,Tt)}catch(jn){ue(Ke,jn),ie(Ke,jn)}}},cancel:function(){Cr(Ke)}},{highWaterMark:0});Dt.allReady=Ne,U(Dt)},function(Dt){Ne.catch(function(){}),te(Dt)},Se);if(L&&L.signal){var yt=L.signal,Nt=function(){Cr(Ke,yt.reason),yt.removeEventListener("abort",Nt)};yt.addEventListener("abort",Nt)}$r(Ke)})},Fh.version="18.3.1",Fh}var yc={};/**
|
|
62
|
-
* @license React
|
|
63
|
-
* react-dom-server-legacy.browser.development.js
|
|
64
|
-
*
|
|
65
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
66
|
-
*
|
|
67
|
-
* This source code is licensed under the MIT license found in the
|
|
68
|
-
* LICENSE file in the root directory of this source tree.
|
|
69
|
-
*/var g1;function S4(){return g1||(g1=1,process.env.NODE_ENV!=="production"&&function(){var t=Z,e="18.3.1",n=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(h){{for(var b=arguments.length,P=new Array(b>1?b-1:0),M=1;M<b;M++)P[M-1]=arguments[M];o("warn",h,P)}}function i(h){{for(var b=arguments.length,P=new Array(b>1?b-1:0),M=1;M<b;M++)P[M-1]=arguments[M];o("error",h,P)}}function o(h,b,P){{var M=n.ReactDebugCurrentFrame,W=M.getStackAddendum();W!==""&&(b+="%s",P=P.concat([W]));var re=P.map(function(de){return String(de)});re.unshift("Warning: "+b),Function.prototype.apply.call(console[h],console,re)}}function a(h){h()}function u(h){}function c(h,b){d(h,b)}function d(h,b){return h.push(b)}function y(h){}function p(h){h.push(null)}function S(h){return h}function C(h){return h}function A(h,b){h.destroy(b)}function I(h){{var b=typeof Symbol=="function"&&Symbol.toStringTag,P=b&&h[Symbol.toStringTag]||h.constructor.name||"Object";return P}}function B(h){try{return _(h),!1}catch{return!0}}function _(h){return""+h}function G(h,b){if(B(h))return i("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",b,I(h)),_(h)}function q(h,b){if(B(h))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.",b,I(h)),_(h)}function se(h){if(B(h))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(h)),_(h)}var Q=Object.prototype.hasOwnProperty,ye=0,x=1,ae=2,ce=3,Be=4,qe=5,Ze=6,ot=":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",it=ot+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",me=new RegExp("^["+ot+"]["+it+"]*$"),De={},Le={};function Ye(h){return Q.call(Le,h)?!0:Q.call(De,h)?!1:me.test(h)?(Le[h]=!0,!0):(De[h]=!0,i("Invalid attribute name: `%s`",h),!1)}function st(h,b,P,M){if(P!==null&&P.type===ye)return!1;switch(typeof b){case"function":case"symbol":return!0;case"boolean":{if(M)return!1;if(P!==null)return!P.acceptsBooleans;var W=h.toLowerCase().slice(0,5);return W!=="data-"&&W!=="aria-"}default:return!1}}function Ce(h){return Xe.hasOwnProperty(h)?Xe[h]:null}function _e(h,b,P,M,W,re,de){this.acceptsBooleans=b===ae||b===ce||b===Be,this.attributeName=M,this.attributeNamespace=W,this.mustUseProperty=P,this.propertyName=h,this.type=b,this.sanitizeURL=re,this.removeEmptyString=de}var Xe={},Ge=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Ge.forEach(function(h){Xe[h]=new _e(h,ye,!1,h,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(h){var b=h[0],P=h[1];Xe[b]=new _e(b,x,!1,P,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(h){Xe[h]=new _e(h,ae,!1,h.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(h){Xe[h]=new _e(h,ae,!1,h,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(h){Xe[h]=new _e(h,ce,!1,h.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(h){Xe[h]=new _e(h,ce,!0,h,null,!1,!1)}),["capture","download"].forEach(function(h){Xe[h]=new _e(h,Be,!1,h,null,!1,!1)}),["cols","rows","size","span"].forEach(function(h){Xe[h]=new _e(h,Ze,!1,h,null,!1,!1)}),["rowSpan","start"].forEach(function(h){Xe[h]=new _e(h,qe,!1,h.toLowerCase(),null,!1,!1)});var tt=/[\-\:]([a-z])/g,et=function(h){return h[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(h){var b=h.replace(tt,et);Xe[b]=new _e(b,x,!1,h,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(h){var b=h.replace(tt,et);Xe[b]=new _e(b,x,!1,h,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(h){var b=h.replace(tt,et);Xe[b]=new _e(b,x,!1,h,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(h){Xe[h]=new _e(h,x,!1,h.toLowerCase(),null,!1,!1)});var nt="xlinkHref";Xe[nt]=new _e("xlinkHref",x,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(h){Xe[h]=new _e(h,x,!1,h.toLowerCase(),null,!0,!0)});var lt={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 bt(h,b){return h+b.charAt(0).toUpperCase()+b.substring(1)}var xt=["Webkit","ms","Moz","O"];Object.keys(lt).forEach(function(h){xt.forEach(function(b){lt[bt(b,h)]=lt[h]})});var gt={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Ct(h,b){gt[b.type]||b.onChange||b.onInput||b.readOnly||b.disabled||b.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`."),b.onChange||b.readOnly||b.disabled||b.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 rt(h,b){if(h.indexOf("-")===-1)return typeof b.is=="string";switch(h){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 Bt={"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},Vt={},qn=new RegExp("^(aria)-["+it+"]*$"),yr=new RegExp("^(aria)[A-Z]["+it+"]*$");function Xn(h,b){{if(Q.call(Vt,b)&&Vt[b])return!0;if(yr.test(b)){var P="aria-"+b.slice(4).toLowerCase(),M=Bt.hasOwnProperty(P)?P:null;if(M==null)return i("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",b),Vt[b]=!0,!0;if(b!==M)return i("Invalid ARIA attribute `%s`. Did you mean `%s`?",b,M),Vt[b]=!0,!0}if(qn.test(b)){var W=b.toLowerCase(),re=Bt.hasOwnProperty(W)?W:null;if(re==null)return Vt[b]=!0,!1;if(b!==re)return i("Unknown ARIA attribute `%s`. Did you mean `%s`?",b,re),Vt[b]=!0,!0}}return!0}function Dn(h,b){{var P=[];for(var M in b){var W=Xn(h,M);W||P.push(M)}var re=P.map(function(de){return"`"+de+"`"}).join(", ");P.length===1?i("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",re,h):P.length>1&&i("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",re,h)}}function Hi(h,b){rt(h,b)||Dn(h,b)}var Or=!1;function ir(h,b){{if(h!=="input"&&h!=="textarea"&&h!=="select")return;b!=null&&b.value===null&&!Or&&(Or=!0,h==="select"&&b.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.",h):i("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",h))}}var un={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"},dn=function(){};{var hn={},pt=/^on./,Rn=/^on[^A-Z]/,li=new RegExp("^(aria)-["+it+"]*$"),ln=new RegExp("^(aria)[A-Z]["+it+"]*$");dn=function(h,b,P,M){if(Q.call(hn,b)&&hn[b])return!0;var W=b.toLowerCase();if(W==="onfocusin"||W==="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."),hn[b]=!0,!0;if(M!=null){var re=M.registrationNameDependencies,de=M.possibleRegistrationNames;if(re.hasOwnProperty(b))return!0;var Re=de.hasOwnProperty(W)?de[W]:null;if(Re!=null)return i("Invalid event handler property `%s`. Did you mean `%s`?",b,Re),hn[b]=!0,!0;if(pt.test(b))return i("Unknown event handler property `%s`. It will be ignored.",b),hn[b]=!0,!0}else if(pt.test(b))return Rn.test(b)&&i("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",b),hn[b]=!0,!0;if(li.test(b)||ln.test(b))return!0;if(W==="innerhtml")return i("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),hn[b]=!0,!0;if(W==="aria")return i("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),hn[b]=!0,!0;if(W==="is"&&P!==null&&P!==void 0&&typeof P!="string")return i("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof P),hn[b]=!0,!0;if(typeof P=="number"&&isNaN(P))return i("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",b),hn[b]=!0,!0;var We=Ce(b),ht=We!==null&&We.type===ye;if(un.hasOwnProperty(W)){var wt=un[W];if(wt!==b)return i("Invalid DOM property `%s`. Did you mean `%s`?",b,wt),hn[b]=!0,!0}else if(!ht&&b!==W)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.",b,W),hn[b]=!0,!0;return typeof P=="boolean"&&st(b,P,We,!1)?(P?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()}.',P,b,b,P,b):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.',P,b,b,P,b,b,b),hn[b]=!0,!0):ht?!0:st(b,P,We,!1)?(hn[b]=!0,!1):((P==="false"||P==="true")&&We!==null&&We.type===ce&&(i("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",P,b,P==="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".',b,P),hn[b]=!0),!0)}}var Ui=function(h,b,P){{var M=[];for(var W in b){var re=dn(h,W,b[W],P);re||M.push(W)}var de=M.map(function(Re){return"`"+Re+"`"}).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 ",de,h):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 ",de,h)}};function Wi(h,b,P){rt(h,b)||Ui(h,b,P)}var zi=function(){};{var _r=/^(?:webkit|moz|o)[A-Z]/,Un=/^-ms-/,Rr=/-(.)/g,br=/;\s*$/,qr={},Xr={},Ao=!1,Kn=!1,Kr=function(h){return h.replace(Rr,function(b,P){return P.toUpperCase()})},or=function(h){qr.hasOwnProperty(h)&&qr[h]||(qr[h]=!0,i("Unsupported style property %s. Did you mean %s?",h,Kr(h.replace(Un,"ms-"))))},Zt=function(h){qr.hasOwnProperty(h)&&qr[h]||(qr[h]=!0,i("Unsupported vendor-prefixed style property %s. Did you mean %s?",h,h.charAt(0).toUpperCase()+h.slice(1)))},ui=function(h,b){Xr.hasOwnProperty(b)&&Xr[b]||(Xr[b]=!0,i(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,h,b.replace(br,"")))},Yi=function(h,b){Ao||(Ao=!0,i("`NaN` is an invalid value for the `%s` css style property.",h))},An=function(h,b){Kn||(Kn=!0,i("`Infinity` is an invalid value for the `%s` css style property.",h))};zi=function(h,b){h.indexOf("-")>-1?or(h):_r.test(h)?Zt(h):br.test(b)&&ui(h,b),typeof b=="number"&&(isNaN(b)?Yi(h,b):isFinite(b)||An(h,b))}}var pn=zi,ci=/["'&<>]/;function fi(h){se(h);var b=""+h,P=ci.exec(b);if(!P)return b;var M,W="",re,de=0;for(re=P.index;re<b.length;re++){switch(b.charCodeAt(re)){case 34:M=""";break;case 38:M="&";break;case 39:M="'";break;case 60:M="<";break;case 62:M=">";break;default:continue}de!==re&&(W+=b.substring(de,re)),de=re+1,W+=M}return de!==re?W+b.substring(de,re):W}function mn(h){return typeof h=="boolean"||typeof h=="number"?""+h:fi(h)}var co=/([A-Z])/g,wr=/^ms-/;function di(h){return h.replace(co,"-$1").toLowerCase().replace(wr,"-ms-")}var cn=/^[\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,ki=!1;function Ms(h){!ki&&cn.test(h)&&(ki=!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(h)))}var Ls=Array.isArray;function Zr(h){return Ls(h)}var fo="<script>",ho="<\/script>",Io='<script src="',Di='<script type="module" src="',hi='" async=""><\/script>';function Pi(h){return se(h),(""+h).replace(po,Oi)}var po=/(<\/|<)(s)(cript)/gi,Oi=function(h,b,P,M){return""+b+(P==="s"?"\\u0073":"\\u0053")+M};function Jr(h,b,P,M,W){var re=h===void 0?"":h,de=b===void 0?fo:'<script nonce="'+mn(b)+'">',Re=[];if(P!==void 0&&Re.push(de,Pi(P),ho),M!==void 0)for(var We=0;We<M.length;We++)Re.push(Io,mn(M[We]),hi);if(W!==void 0)for(var ht=0;ht<W.length;ht++)Re.push(Di,mn(W[ht]),hi);return{bootstrapChunks:Re,startInlineScript:de,placeholderPrefix:re+"P:",segmentPrefix:re+"S:",boundaryPrefix:re+"B:",idPrefix:re,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var xr=0,Ar=1,Qr=2,Ir=3,Wn=4,gn=5,Mr=6,Sr=7;function In(h,b){return{insertionMode:h,selectedValue:b}}function pi(h,b,P){switch(b){case"select":return In(Ar,P.value!=null?P.value:P.defaultValue);case"svg":return In(Qr,null);case"math":return In(Ir,null);case"foreignObject":return In(Ar,null);case"table":return In(Wn,null);case"thead":case"tbody":case"tfoot":return In(gn,null);case"colgroup":return In(Sr,null);case"tr":return In(Mr,null)}return h.insertionMode>=Wn||h.insertionMode===xr?In(Ar,null):h}var Lr=null;function ei(h){var b=h.nextSuspenseID++;return h.boundaryPrefix+b.toString(16)}function Zn(h,b,P){var M=h.idPrefix,W=":"+M+"R"+b;return P>0&&(W+="H"+P.toString(32)),W+":"}function ti(h){return mn(h)}var ni="<!-- -->";function Gi(h,b,P,M){return b===""?M:(M&&h.push(ni),h.push(ti(b)),!0)}function On(h,b,P,M){P&&M&&h.push(ni)}var Tr=new Map;function cr(h){var b=Tr.get(h);if(b!==void 0)return b;var P=mn(di(h));return Tr.set(h,P),P}var Mo=' style="',qi=":",Fr=";";function E(h,b,P){if(typeof P!="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 W in P)if(Q.call(P,W)){var re=P[W];if(!(re==null||typeof re=="boolean"||re==="")){var de=void 0,Re=void 0,We=W.indexOf("--")===0;We?(de=mn(W),q(re,W),Re=mn((""+re).trim())):(pn(W,re),de=cr(W),typeof re=="number"?re!==0&&!Q.call(lt,W)?Re=re+"px":Re=""+re:(q(re,W),Re=mn((""+re).trim()))),M?(M=!1,h.push(Mo,de,qi,Re)):h.push(Fr,de,qi,Re)}}M||h.push(ne)}var N=" ",Y='="',ne='"',Pe='=""';function be(h,b,P,M){switch(P){case"style":{E(h,b,M);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(P.length>2&&(P[0]==="o"||P[0]==="O")&&(P[1]==="n"||P[1]==="N"))){var W=Ce(P);if(W!==null){switch(typeof M){case"function":case"symbol":return;case"boolean":if(!W.acceptsBooleans)return}var re=W.attributeName,de=re;switch(W.type){case ce:M&&h.push(N,de,Pe);return;case Be:M===!0?h.push(N,de,Pe):M===!1||h.push(N,de,Y,mn(M),ne);return;case qe:isNaN(M)||h.push(N,de,Y,mn(M),ne);break;case Ze:!isNaN(M)&&M>=1&&h.push(N,de,Y,mn(M),ne);break;default:W.sanitizeURL&&(G(M,re),M=""+M,Ms(M)),h.push(N,de,Y,mn(M),ne)}}else if(Ye(P)){switch(typeof M){case"function":case"symbol":return;case"boolean":{var Re=P.toLowerCase().slice(0,5);if(Re!=="data-"&&Re!=="aria-")return}}h.push(N,P,Y,mn(M),ne)}}}var Ie=">",Je="/>";function mt(h,b,P){if(b!=null){if(P!=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 M=b.__html;M!=null&&(se(M),h.push(""+M))}}var St=!1,vt=!1,Ht=!1,Jn=!1,zn=!1,Pn=!1,Nr=!1;function sr(h,b){{var P=h[b];if(P!=null){var M=Zr(P);h.multiple&&!M?i("The `%s` prop supplied to <select> must be an array if `multiple` is true.",b):!h.multiple&&M&&i("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",b)}}}function Xi(h,b,P){Ct("select",b),sr(b,"value"),sr(b,"defaultValue"),b.value!==void 0&&b.defaultValue!==void 0&&!Ht&&(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"),Ht=!0),h.push($t("select"));var M=null,W=null;for(var re in b)if(Q.call(b,re)){var de=b[re];if(de==null)continue;switch(re){case"children":M=de;break;case"dangerouslySetInnerHTML":W=de;break;case"defaultValue":case"value":break;default:be(h,P,re,de);break}}return h.push(Ie),mt(h,W,M),M}function gi(h){var b="";return t.Children.forEach(h,function(P){P!=null&&(b+=P,!zn&&typeof P!="string"&&typeof P!="number"&&(zn=!0,i("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),b}var Ki=' selected=""';function jr(h,b,P,M){var W=M.selectedValue;h.push($t("option"));var re=null,de=null,Re=null,We=null;for(var ht in b)if(Q.call(b,ht)){var wt=b[ht];if(wt==null)continue;switch(ht){case"children":re=wt;break;case"selected":Re=wt,Nr||(i("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Nr=!0);break;case"dangerouslySetInnerHTML":We=wt;break;case"value":de=wt;default:be(h,P,ht,wt);break}}if(W!=null){var It;if(de!==null?(G(de,"value"),It=""+de):(We!==null&&(Pn||(Pn=!0,i("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),It=gi(re)),Zr(W))for(var yn=0;yn<W.length;yn++){G(W[yn],"value");var En=""+W[yn];if(En===It){h.push(Ki);break}}else G(W,"select.value"),""+W===It&&h.push(Ki)}else Re&&h.push(Ki);return h.push(Ie),mt(h,We,re),re}function Lo(h,b,P){Ct("input",b),b.checked!==void 0&&b.defaultChecked!==void 0&&!vt&&(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",b.type),vt=!0),b.value!==void 0&&b.defaultValue!==void 0&&!St&&(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",b.type),St=!0),h.push($t("input"));var M=null,W=null,re=null,de=null;for(var Re in b)if(Q.call(b,Re)){var We=b[Re];if(We==null)continue;switch(Re){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":de=We;break;case"defaultValue":W=We;break;case"checked":re=We;break;case"value":M=We;break;default:be(h,P,Re,We);break}}return re!==null?be(h,P,"checked",re):de!==null&&be(h,P,"checked",de),M!==null?be(h,P,"value",M):W!==null&&be(h,P,"value",W),h.push(Je),null}function Ya(h,b,P){Ct("textarea",b),b.value!==void 0&&b.defaultValue!==void 0&&!Jn&&(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"),Jn=!0),h.push($t("textarea"));var M=null,W=null,re=null;for(var de in b)if(Q.call(b,de)){var Re=b[de];if(Re==null)continue;switch(de){case"children":re=Re;break;case"value":M=Re;break;case"defaultValue":W=Re;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:be(h,P,de,Re);break}}if(M===null&&W!==null&&(M=W),h.push(Ie),re!=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(Zr(re)){if(re.length>1)throw new Error("<textarea> can only have at most one child.");se(re[0]),M=""+re[0]}se(re),M=""+re}return typeof M=="string"&&M[0]===`
|
|
70
|
-
`&&h.push(Fo),M!==null&&(G(M,"value"),h.push(ti(""+M))),null}function Fs(h,b,P,M){h.push($t(P));for(var W in b)if(Q.call(b,W)){var re=b[W];if(re==null)continue;switch(W){case"children":case"dangerouslySetInnerHTML":throw new Error(P+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:be(h,M,W,re);break}}return h.push(Je),null}function Ns(h,b,P){h.push($t("menuitem"));for(var M in b)if(Q.call(b,M)){var W=b[M];if(W==null)continue;switch(M){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:be(h,P,M,W);break}}return h.push(Ie),null}function js(h,b,P){h.push($t("title"));var M=null;for(var W in b)if(Q.call(b,W)){var re=b[W];if(re==null)continue;switch(W){case"children":M=re;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:be(h,P,W,re);break}}h.push(Ie);{var de=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"):de!=null&&de.$$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"):de!=null&&typeof de!="string"&&typeof de!="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 Bs(h,b,P,M){h.push($t(P));var W=null,re=null;for(var de in b)if(Q.call(b,de)){var Re=b[de];if(Re==null)continue;switch(de){case"children":W=Re;break;case"dangerouslySetInnerHTML":re=Re;break;default:be(h,M,de,Re);break}}return h.push(Ie),mt(h,re,W),typeof W=="string"?(h.push(ti(W)),null):W}function mi(h,b,P,M){h.push($t(P));var W=null,re=null;for(var de in b)if(Q.call(b,de)){var Re=b[de];if(Re==null)continue;switch(de){case"children":W=Re;break;case"dangerouslySetInnerHTML":re=Re;break;case"style":E(h,M,Re);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:Ye(de)&&typeof Re!="function"&&typeof Re!="symbol"&&h.push(N,de,Y,mn(Re),ne);break}}return h.push(Ie),mt(h,re,W),W}var Fo=`
|
|
71
|
-
`;function as(h,b,P,M){h.push($t(P));var W=null,re=null;for(var de in b)if(Q.call(b,de)){var Re=b[de];if(Re==null)continue;switch(de){case"children":W=Re;break;case"dangerouslySetInnerHTML":re=Re;break;default:be(h,M,de,Re);break}}if(h.push(Ie),re!=null){if(W!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof re!="object"||!("__html"in re))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=re.__html;We!=null&&(typeof We=="string"&&We.length>0&&We[0]===`
|
|
72
|
-
`?h.push(Fo,We):(se(We),h.push(""+We)))}return typeof W=="string"&&W[0]===`
|
|
73
|
-
`&&h.push(Fo),W}var sn=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Jt=new Map;function $t(h){var b=Jt.get(h);if(b===void 0){if(!sn.test(h))throw new Error("Invalid tag: "+h);b="<"+h,Jt.set(h,b)}return b}var _i="<!DOCTYPE html>";function ri(h,b,P,M,W){switch(Hi(b,P),ir(b,P),Wi(b,P,null),!P.suppressContentEditableWarning&&P.contentEditable&&P.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."),W.insertionMode!==Qr&&W.insertionMode!==Ir&&b.indexOf("-")===-1&&typeof P.is!="string"&&b.toLowerCase()!==b&&i("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",b),b){case"select":return Xi(h,P,M);case"option":return jr(h,P,M,W);case"textarea":return Ya(h,P,M);case"input":return Lo(h,P,M);case"menuitem":return Ns(h,P,M);case"title":return js(h,P,M);case"listing":case"pre":return as(h,P,b,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(h,P,b,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 Bs(h,P,b,M);case"html":return W.insertionMode===xr&&h.push(_i),Bs(h,P,b,M);default:return b.indexOf("-")===-1&&typeof P.is!="string"?Bs(h,P,b,M):mi(h,P,b,M)}}var No="</",vi=">";function fr(h,b,P){switch(b){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:h.push(No,b,vi)}}function $s(h,b){for(var P=b.bootstrapChunks,M=0;M<P.length-1;M++)c(h,P[M]);return M<P.length?d(h,P[M]):!0}var ls='<template id="',ca='"></template>';function vn(h,b,P){c(h,ls),c(h,b.placeholderPrefix);var M=P.toString(16);return c(h,M),d(h,ca)}var jo="<!--$-->",yi='<!--$?--><template id="',fa='"></template>',go="<!--$!-->",Qn="<!--/$-->",f="<template",m='"',T=' data-dgst="',D=' data-msg="',F=' data-stck="',j="></template>";function H(h,b){return d(h,jo)}function ue(h,b,P){if(c(h,yi),P===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return c(h,P),d(h,fa)}function ie(h,b,P,M,W){var re;return re=d(h,go),c(h,f),P&&(c(h,T),c(h,mn(P)),c(h,m)),M&&(c(h,D),c(h,mn(M)),c(h,m)),W&&(c(h,F),c(h,mn(W)),c(h,m)),re=d(h,j),re}function we(h,b){return d(h,Qn)}function Me(h,b){return d(h,Qn)}function Fe(h,b){return d(h,Qn)}var Ee='<div hidden id="',He='">',ut="</div>",Pt='<svg aria-hidden="true" style="display:none" id="',_t='">',Mn="</svg>",fn='<math aria-hidden="true" style="display:none" id="',Br='">',$r="</math>",Ut='<table hidden id="',Vr='">',zt="</table>",rn='<table hidden><tbody id="',mo='">',vo="</tbody></table>",Cr='<table hidden><tr id="',k='">',L="</tr></table>",U='<table hidden><colgroup id="',te='">',Se="</colgroup></table>";function Te(h,b,P,M){switch(P.insertionMode){case xr:case Ar:return c(h,Ee),c(h,b.segmentPrefix),c(h,M.toString(16)),d(h,He);case Qr:return c(h,Pt),c(h,b.segmentPrefix),c(h,M.toString(16)),d(h,_t);case Ir:return c(h,fn),c(h,b.segmentPrefix),c(h,M.toString(16)),d(h,Br);case Wn:return c(h,Ut),c(h,b.segmentPrefix),c(h,M.toString(16)),d(h,Vr);case gn:return c(h,rn),c(h,b.segmentPrefix),c(h,M.toString(16)),d(h,mo);case Mr:return c(h,Cr),c(h,b.segmentPrefix),c(h,M.toString(16)),d(h,k);case Sr:return c(h,U),c(h,b.segmentPrefix),c(h,M.toString(16)),d(h,te);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}function Ne(h,b){switch(b.insertionMode){case xr:case Ar:return d(h,ut);case Qr:return d(h,Mn);case Ir:return d(h,$r);case Wn:return d(h,zt);case gn:return d(h,vo);case Mr:return d(h,L);case Sr:return d(h,Se);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var Ke="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)}",yt='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()}}',Nt='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())}',Dt=Ke+';$RS("',Tt='$RS("',jn='","',Sn='")<\/script>';function Yn(h,b,P){c(h,b.startInlineScript),b.sentCompleteSegmentFunction?c(h,Tt):(b.sentCompleteSegmentFunction=!0,c(h,Dt)),c(h,b.segmentPrefix);var M=P.toString(16);return c(h,M),c(h,jn),c(h,b.placeholderPrefix),c(h,M),d(h,Sn)}var us=yt+';$RC("',da='$RC("',cs='","',ii='")<\/script>';function Ga(h,b,P,M){if(c(h,b.startInlineScript),b.sentCompleteBoundaryFunction?c(h,da):(b.sentCompleteBoundaryFunction=!0,c(h,us)),P===null)throw new Error("An ID must have been assigned before we can complete the boundary.");var W=M.toString(16);return c(h,P),c(h,cs),c(h,b.segmentPrefix),c(h,W),d(h,ii)}var yo=Nt+';$RX("',ha='$RX("',fs='"',bi=")<\/script>",Zi=",";function qa(h,b,P,M,W,re){if(c(h,b.startInlineScript),b.sentClientRenderFunction?c(h,ha):(b.sentClientRenderFunction=!0,c(h,yo)),P===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return c(h,P),c(h,fs),(M||W||re)&&(c(h,Zi),c(h,ds(M||""))),(W||re)&&(c(h,Zi),c(h,ds(W||""))),re&&(c(h,Zi),c(h,ds(re))),d(h,bi)}var Lu=/[<\u2028\u2029]/g;function ds(h){var b=JSON.stringify(h);return b.replace(Lu,function(P){switch(P){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 bo(h,b){var P=Jr(b,void 0);return{bootstrapChunks:P.bootstrapChunks,startInlineScript:P.startInlineScript,placeholderPrefix:P.placeholderPrefix,segmentPrefix:P.segmentPrefix,boundaryPrefix:P.boundaryPrefix,idPrefix:P.idPrefix,nextSuspenseID:P.nextSuspenseID,sentCompleteSegmentFunction:P.sentCompleteSegmentFunction,sentCompleteBoundaryFunction:P.sentCompleteBoundaryFunction,sentClientRenderFunction:P.sentClientRenderFunction,generateStaticMarkup:h}}function dr(){return{insertionMode:Ar,selectedValue:null}}function Xa(h,b,P,M){return P.generateStaticMarkup?(h.push(mn(b)),!1):Gi(h,b,P,M)}function pa(h,b,P,M){if(!b.generateStaticMarkup)return On(h,b,P,M)}function ga(h,b){return b.generateStaticMarkup?!0:H(h)}function ee(h,b,P,M,W){return b.generateStaticMarkup?!0:ie(h,b,P,M,W)}function ge(h,b){return b.generateStaticMarkup?!0:we(h)}function Oe(h,b){return b.generateStaticMarkup?!0:Fe(h)}var ke=Object.assign,J=Symbol.for("react.element"),he=Symbol.for("react.portal"),fe=Symbol.for("react.fragment"),je=Symbol.for("react.strict_mode"),Ve=Symbol.for("react.profiler"),ct=Symbol.for("react.provider"),ft=Symbol.for("react.context"),at=Symbol.for("react.forward_ref"),Rt=Symbol.for("react.suspense"),Et=Symbol.for("react.suspense_list"),Yt=Symbol.for("react.memo"),Ln=Symbol.for("react.lazy"),ar=Symbol.for("react.scope"),Gn=Symbol.for("react.debug_trace_mode"),Hr=Symbol.for("react.legacy_hidden"),Ji=Symbol.for("react.default_value"),At=Symbol.iterator,Uc="@@iterator";function Tn(h){if(h===null||typeof h!="object")return null;var b=At&&h[At]||h[Uc];return typeof b=="function"?b:null}function hs(h,b,P){var M=h.displayName;if(M)return M;var W=b.displayName||b.name||"";return W!==""?P+"("+W+")":P}function Fu(h){return h.displayName||"Context"}function Cn(h){if(h==null)return null;if(typeof h.tag=="number"&&i("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof h=="function")return h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){case fe:return"Fragment";case he:return"Portal";case Ve:return"Profiler";case je:return"StrictMode";case Rt:return"Suspense";case Et:return"SuspenseList"}if(typeof h=="object")switch(h.$$typeof){case ft:var b=h;return Fu(b)+".Consumer";case ct:var P=h;return Fu(P._context)+".Provider";case at:return hs(h,h.render,"ForwardRef");case Yt:var M=h.displayName||null;return M!==null?M:Cn(h.type)||"Memo";case Ln:{var W=h,re=W._payload,de=W._init;try{return Cn(de(re))}catch{return null}}}return null}var ma=0,va,wo,ya,jl,ba,Nu,ju;function Vs(){}Vs.__reactDisabledLog=!0;function Bl(){{if(ma===0){va=console.log,wo=console.info,ya=console.warn,jl=console.error,ba=console.group,Nu=console.groupCollapsed,ju=console.groupEnd;var h={configurable:!0,enumerable:!0,value:Vs,writable:!0};Object.defineProperties(console,{info:h,log:h,warn:h,error:h,group:h,groupCollapsed:h,groupEnd:h})}ma++}}function Bo(){{if(ma--,ma===0){var h={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ke({},h,{value:va}),info:ke({},h,{value:wo}),warn:ke({},h,{value:ya}),error:ke({},h,{value:jl}),group:ke({},h,{value:ba}),groupCollapsed:ke({},h,{value:Nu}),groupEnd:ke({},h,{value:ju})})}ma<0&&i("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Qi=n.ReactCurrentDispatcher,$o;function Ka(h,b,P){{if($o===void 0)try{throw Error()}catch(W){var M=W.stack.trim().match(/\n( *(at )?)/);$o=M&&M[1]||""}return`
|
|
74
|
-
`+$o+h}}var Za=!1,$l;{var Ja=typeof WeakMap=="function"?WeakMap:Map;$l=new Ja}function wa(h,b){if(!h||Za)return"";{var P=$l.get(h);if(P!==void 0)return P}var M;Za=!0;var W=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var re;re=Qi.current,Qi.current=null,Bl();try{if(b){var de=function(){throw Error()};if(Object.defineProperty(de.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(de,[])}catch(Si){M=Si}Reflect.construct(h,[],de)}else{try{de.call()}catch(Si){M=Si}h.call(de.prototype)}}else{try{throw Error()}catch(Si){M=Si}h()}}catch(Si){if(Si&&M&&typeof Si.stack=="string"){for(var Re=Si.stack.split(`
|
|
75
|
-
`),We=M.stack.split(`
|
|
76
|
-
`),ht=Re.length-1,wt=We.length-1;ht>=1&&wt>=0&&Re[ht]!==We[wt];)wt--;for(;ht>=1&&wt>=0;ht--,wt--)if(Re[ht]!==We[wt]){if(ht!==1||wt!==1)do if(ht--,wt--,wt<0||Re[ht]!==We[wt]){var It=`
|
|
77
|
-
`+Re[ht].replace(" at new "," at ");return h.displayName&&It.includes("<anonymous>")&&(It=It.replace("<anonymous>",h.displayName)),typeof h=="function"&&$l.set(h,It),It}while(ht>=1&&wt>=0);break}}}finally{Za=!1,Qi.current=re,Bo(),Error.prepareStackTrace=W}var yn=h?h.displayName||h.name:"",En=yn?Ka(yn):"";return typeof h=="function"&&$l.set(h,En),En}function Qa(h,b,P){return wa(h,!0)}function Bu(h,b,P){return wa(h,!1)}function $u(h){var b=h.prototype;return!!(b&&b.isReactComponent)}function xa(h,b,P){if(h==null)return"";if(typeof h=="function")return wa(h,$u(h));if(typeof h=="string")return Ka(h);switch(h){case Rt:return Ka("Suspense");case Et:return Ka("SuspenseList")}if(typeof h=="object")switch(h.$$typeof){case at:return Bu(h.render);case Yt:return xa(h.type,b,P);case Ln:{var M=h,W=M._payload,re=M._init;try{return xa(re(W),b,P)}catch{}}}return""}var Vu={},Fn=n.ReactDebugCurrentFrame;function Nn(h){if(h){var b=h._owner,P=xa(h.type,h._source,b?b.type:null);Fn.setExtraStackFrame(P)}else Fn.setExtraStackFrame(null)}function Hu(h,b,P,M,W){{var re=Function.call.bind(Q);for(var de in h)if(re(h,de)){var Re=void 0;try{if(typeof h[de]!="function"){var We=Error((M||"React class")+": "+P+" type `"+de+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof h[de]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw We.name="Invariant Violation",We}Re=h[de](b,de,M,P,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ht){Re=ht}Re&&!(Re instanceof Error)&&(Nn(W),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",P,de,typeof Re),Nn(null)),Re instanceof Error&&!(Re.message in Vu)&&(Vu[Re.message]=!0,Nn(W),i("Failed %s type: %s",P,Re.message),Nn(null))}}}var Uu;Uu={};var Vo={};Object.freeze(Vo);function Wc(h,b){{var P=h.contextTypes;if(!P)return Vo;var M={};for(var W in P)M[W]=b[W];{var re=Cn(h)||"Unknown";Hu(P,M,"context",re)}return M}}function Ho(h,b,P,M){{if(typeof h.getChildContext!="function"){{var W=Cn(b)||"Unknown";Uu[W]||(Uu[W]=!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.",W,W))}return P}var re=h.getChildContext();for(var de in re)if(!(de in M))throw new Error((Cn(b)||"Unknown")+'.getChildContext(): key "'+de+'" is not defined in childContextTypes.');{var Re=Cn(b)||"Unknown";Hu(M,re,"child context",Re)}return ke({},P,re)}}var eo;eo={};var el=null,Ur=null;function ps(h){h.context._currentValue2=h.parentValue}function gs(h){h.context._currentValue2=h.value}function ms(h,b){if(h!==b){ps(h);var P=h.parent,M=b.parent;if(P===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.");ms(P,M)}gs(b)}}function vs(h){ps(h);var b=h.parent;b!==null&&vs(b)}function tl(h){var b=h.parent;b!==null&&tl(b),gs(h)}function zc(h,b){ps(h);var P=h.parent;if(P===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");P.depth===b.depth?ms(P,b):zc(P,b)}function Yc(h,b){var P=b.parent;if(P===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");h.depth===P.depth?ms(h,P):Yc(h,P),gs(b)}function Vl(h){var b=Ur,P=h;b!==P&&(b===null?tl(P):P===null?vs(b):b.depth===P.depth?ms(b,P):b.depth>P.depth?zc(b,P):Yc(b,P),Ur=P)}function nl(h,b){var P;P=h._currentValue2,h._currentValue2=b,h._currentRenderer2!==void 0&&h._currentRenderer2!==null&&h._currentRenderer2!==eo&&i("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),h._currentRenderer2=eo;var M=Ur,W={parent:M,depth:M===null?0:M.depth+1,context:h,parentValue:P,value:b};return Ur=W,W}function Sa(h){var b=Ur;if(b===null)throw new Error("Tried to pop a Context at the root of the app. This is a bug in React.");b.context!==h&&i("The parent context is not the expected context. This is probably a bug in React.");{var P=b.parentValue;P===Ji?b.context._currentValue2=b.context._defaultValue:b.context._currentValue2=P,h._currentRenderer2!==void 0&&h._currentRenderer2!==null&&h._currentRenderer2!==eo&&i("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),h._currentRenderer2=eo}return Ur=b.parent}function rl(){return Ur}function Hs(h){var b=h._currentValue2;return b}function z(h){return h._reactInternals}function ys(h,b){h._reactInternals=b}var Us={},Wr={},qt,Hl,Ta,il,xo,Ca,Ul,Wl,zl;{qt=new Set,Hl=new Set,Ta=new Set,Ul=new Set,il=new Set,Wl=new Set,zl=new Set;var Gc=new Set;Ca=function(h,b){if(!(h===null||typeof h=="function")){var P=b+"_"+h;Gc.has(P)||(Gc.add(P),i("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",b,h))}},xo=function(h,b){if(b===void 0){var P=Cn(h)||"Component";il.has(P)||(il.add(P),i("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",P))}}}function So(h,b){{var P=h.constructor,M=P&&Cn(P)||"ReactClass",W=M+"."+b;if(Us[W])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.
|
|
78
|
-
|
|
79
|
-
Please check the code for the %s component.`,b,b,M),Us[W]=!0}}var qc={isMounted:function(h){return!1},enqueueSetState:function(h,b,P){var M=z(h);M.queue===null?So(h,"setState"):(M.queue.push(b),P!=null&&Ca(P,"setState"))},enqueueReplaceState:function(h,b,P){var M=z(h);M.replace=!0,M.queue=[b],P!=null&&Ca(P,"setState")},enqueueForceUpdate:function(h,b){var P=z(h);P.queue===null?So(h,"forceUpdate"):b!=null&&Ca(b,"setState")}};function Wf(h,b,P,M,W){var re=P(W,M);xo(b,re);var de=re==null?M:ke({},M,re);return de}function zf(h,b,P){var M=Vo,W=h.contextType;if("contextType"in h){var re=W===null||W!==void 0&&W.$$typeof===ft&&W._context===void 0;if(!re&&!zl.has(h)){zl.add(h);var de="";W===void 0?de=" 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 W!="object"?de=" However, it is set to a "+typeof W+".":W.$$typeof===ct?de=" Did you accidentally pass the Context.Provider instead?":W._context!==void 0?de=" Did you accidentally pass the Context.Consumer instead?":de=" However, it is set to an object with keys {"+Object.keys(W).join(", ")+"}.",i("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",Cn(h)||"Component",de)}}typeof W=="object"&&W!==null?M=Hs(W):M=P;var Re=new h(b,M);{if(typeof h.getDerivedStateFromProps=="function"&&(Re.state===null||Re.state===void 0)){var We=Cn(h)||"Component";qt.has(We)||(qt.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,Re.state===null?"null":"undefined",We))}if(typeof h.getDerivedStateFromProps=="function"||typeof Re.getSnapshotBeforeUpdate=="function"){var ht=null,wt=null,It=null;if(typeof Re.componentWillMount=="function"&&Re.componentWillMount.__suppressDeprecationWarning!==!0?ht="componentWillMount":typeof Re.UNSAFE_componentWillMount=="function"&&(ht="UNSAFE_componentWillMount"),typeof Re.componentWillReceiveProps=="function"&&Re.componentWillReceiveProps.__suppressDeprecationWarning!==!0?wt="componentWillReceiveProps":typeof Re.UNSAFE_componentWillReceiveProps=="function"&&(wt="UNSAFE_componentWillReceiveProps"),typeof Re.componentWillUpdate=="function"&&Re.componentWillUpdate.__suppressDeprecationWarning!==!0?It="componentWillUpdate":typeof Re.UNSAFE_componentWillUpdate=="function"&&(It="UNSAFE_componentWillUpdate"),ht!==null||wt!==null||It!==null){var yn=Cn(h)||"Component",En=typeof h.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Ta.has(yn)||(Ta.add(yn),i(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
80
|
-
|
|
81
|
-
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
82
|
-
|
|
83
|
-
The above lifecycles should be removed. Learn more about this warning here:
|
|
84
|
-
https://reactjs.org/link/unsafe-component-lifecycles`,yn,En,ht!==null?`
|
|
85
|
-
`+ht:"",wt!==null?`
|
|
86
|
-
`+wt:"",It!==null?`
|
|
87
|
-
`+It:""))}}}return Re}function Xc(h,b,P){{var M=Cn(b)||"Component",W=h.render;W||(b.prototype&&typeof b.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)),h.getInitialState&&!h.getInitialState.isReactClassApproved&&!h.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),h.getDefaultProps&&!h.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),h.propTypes&&i("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",M),h.contextType&&i("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",M),h.contextTypes&&i("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",M),b.contextType&&b.contextTypes&&!Wl.has(b)&&(Wl.add(b),i("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",M)),typeof h.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),b.prototype&&b.prototype.isPureReactComponent&&typeof h.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.",Cn(b)||"A pure component"),typeof h.componentDidUnmount=="function"&&i("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",M),typeof h.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 h.componentWillRecieveProps=="function"&&i("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",M),typeof h.UNSAFE_componentWillRecieveProps=="function"&&i("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",M);var re=h.props!==P;h.props!==void 0&&re&&i("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",M,M),h.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 h.getSnapshotBeforeUpdate=="function"&&typeof h.componentDidUpdate!="function"&&!Hl.has(b)&&(Hl.add(b),i("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Cn(b))),typeof h.getDerivedStateFromProps=="function"&&i("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",M),typeof h.getDerivedStateFromError=="function"&&i("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",M),typeof b.getSnapshotBeforeUpdate=="function"&&i("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",M);var de=h.state;de&&(typeof de!="object"||Zr(de))&&i("%s.state: must be set to an object or null",M),typeof h.getChildContext=="function"&&typeof b.childContextTypes!="object"&&i("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",M)}}function Yf(h,b){var P=b.state;if(typeof b.componentWillMount=="function"){if(b.componentWillMount.__suppressDeprecationWarning!==!0){var M=Cn(h)||"Unknown";Wr[M]||(r(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
88
|
-
|
|
89
|
-
* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.
|
|
90
|
-
|
|
91
|
-
Please update the following components: %s`,M),Wr[M]=!0)}b.componentWillMount()}typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount(),P!==b.state&&(i("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Cn(h)||"Component"),qc.enqueueReplaceState(b,b.state,null))}function Uo(h,b,P,M){if(h.queue!==null&&h.queue.length>0){var W=h.queue,re=h.replace;if(h.queue=null,h.replace=!1,re&&W.length===1)b.state=W[0];else{for(var de=re?W[0]:b.state,Re=!0,We=re?1:0;We<W.length;We++){var ht=W[We],wt=typeof ht=="function"?ht.call(b,de,P,M):ht;wt!=null&&(Re?(Re=!1,de=ke({},de,wt)):ke(de,wt))}b.state=de}}else h.queue=null}function Yl(h,b,P,M){Xc(h,b,P);var W=h.state!==void 0?h.state:null;h.updater=qc,h.props=P,h.state=W;var re={queue:[],replace:!1};ys(h,re);var de=b.contextType;if(typeof de=="object"&&de!==null?h.context=Hs(de):h.context=M,h.state===P){var Re=Cn(b)||"Component";Ul.has(Re)||(Ul.add(Re),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.",Re))}var We=b.getDerivedStateFromProps;typeof We=="function"&&(h.state=Wf(h,b,We,W,P)),typeof b.getDerivedStateFromProps!="function"&&typeof h.getSnapshotBeforeUpdate!="function"&&(typeof h.UNSAFE_componentWillMount=="function"||typeof h.componentWillMount=="function")&&(Yf(b,h),Uo(re,h,P,M))}var Gl={id:1,overflow:""};function Gf(h){var b=h.overflow,P=h.id,M=P&~Ws(P);return M.toString(32)+b}function Wu(h,b,P){var M=h.id,W=h.overflow,re=ql(M)-1,de=M&~(1<<re),Re=P+1,We=ql(b)+re;if(We>30){var ht=re-re%5,wt=(1<<ht)-1,It=(de&wt).toString(32),yn=de>>ht,En=re-ht,Si=ql(b)+En,cc=Re<<En,cf=cc|yn,fc=It+W;return{id:1<<Si|cf,overflow:fc}}else{var lu=Re<<re,eg=lu|de,na=W;return{id:1<<We|eg,overflow:na}}}function ql(h){return 32-qf(h)}function Ws(h){return 1<<ql(h)-1}var qf=Math.clz32?Math.clz32:Wo,Xf=Math.log,to=Math.LN2;function Wo(h){var b=h>>>0;return b===0?32:31-(Xf(b)/to|0)|0}function zu(h,b){return h===b&&(h!==0||1/h===1/b)||h!==h&&b!==b}var Xl=typeof Object.is=="function"?Object.is:zu,tn=null,zs=null,bs=null,an=null,Ri=!1,Ys=!1,Ea=0,Bn=null,Ai=0,Gs=25,no=!1,qs;function hr(){if(tn===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:
|
|
92
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
93
|
-
2. You might be breaking the Rules of Hooks
|
|
94
|
-
3. You might have more than one copy of React in the same app
|
|
95
|
-
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`);return no&&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"),tn}function Yu(h,b){if(b===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.",qs),!1;h.length!==b.length&&i(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
96
|
-
|
|
97
|
-
Previous: %s
|
|
98
|
-
Incoming: %s`,qs,"["+h.join(", ")+"]","["+b.join(", ")+"]");for(var P=0;P<b.length&&P<h.length;P++)if(!Xl(h[P],b[P]))return!1;return!0}function ws(){if(Ai>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function zr(){return an===null?bs===null?(Ri=!1,bs=an=ws()):(Ri=!0,an=bs):an.next===null?(Ri=!1,an=an.next=ws()):(Ri=!0,an=an.next),an}function Gu(h,b){tn=b,zs=h,no=!1,Ea=0}function Kc(h,b,P,M){for(;Ys;)Ys=!1,Ea=0,Ai+=1,an=null,P=h(b,M);return zo(),P}function qu(){var h=Ea!==0;return h}function zo(){no=!1,tn=null,zs=null,Ys=!1,bs=null,Ai=0,Bn=null,an=null}function xs(h){return no&&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()."),Hs(h)}function Xu(h){return qs="useContext",hr(),Hs(h)}function Kl(h,b){return typeof b=="function"?b(h):b}function Zl(h){return qs="useState",Zc(Kl,h)}function Zc(h,b,P){if(h!==Kl&&(qs="useReducer"),tn=hr(),an=zr(),Ri){var M=an.queue,W=M.dispatch;if(Bn!==null){var re=Bn.get(M);if(re!==void 0){Bn.delete(M);var de=an.memoizedState,Re=re;do{var We=Re.action;no=!0,de=h(de,We),no=!1,Re=Re.next}while(Re!==null);return an.memoizedState=de,[de,W]}}return[an.memoizedState,W]}else{no=!0;var ht;h===Kl?ht=typeof b=="function"?b():b:ht=P!==void 0?P(b):b,no=!1,an.memoizedState=ht;var wt=an.queue={last:null,dispatch:null},It=wt.dispatch=Jc.bind(null,tn,wt);return[an.memoizedState,It]}}function Ku(h,b){tn=hr(),an=zr();var P=b===void 0?null:b;if(an!==null){var M=an.memoizedState;if(M!==null&&P!==null){var W=M[1];if(Yu(P,W))return M[0]}}no=!0;var re=h();return no=!1,an.memoizedState=[re,P],re}function pr(h){tn=hr(),an=zr();var b=an.memoizedState;if(b===null){var P={current:h};return Object.seal(P),an.memoizedState=P,P}else return b}function Zu(h,b){qs="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 Jc(h,b,P){if(Ai>=Gs)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(h===tn){Ys=!0;var M={action:P,next:null};Bn===null&&(Bn=new Map);var W=Bn.get(b);if(W===void 0)Bn.set(b,M);else{for(var re=W;re.next!==null;)re=re.next;re.next=M}}}function To(h,b){return Ku(function(){return h},b)}function Ju(h,b,P){return hr(),b(h._source)}function Jl(h,b,P){if(P===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return P()}function Xs(h){return hr(),h}function ol(){throw new Error("startTransition cannot be called during server rendering.")}function Er(){return hr(),[!1,ol]}function sl(){var h=zs,b=Gf(h.treeContext),P=ll;if(P===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var M=Ea++;return Zn(P,b,M)}function al(){}var Qc={readContext:xs,useContext:Xu,useMemo:Ku,useReducer:Zc,useRef:pr,useState:Zl,useInsertionEffect:al,useLayoutEffect:Zu,useCallback:To,useImperativeHandle:al,useEffect:al,useDebugValue:al,useDeferredValue:Xs,useTransition:Er,useId:sl,useMutableSource:Ju,useSyncExternalStore:Jl},ll=null;function ka(h){ll=h}function Qu(h){try{var b="",P=h;do{switch(P.tag){case 0:b+=Ka(P.type,null,null);break;case 1:b+=Bu(P.type,null,null);break;case 2:b+=Qa(P.type,null,null);break}P=P.parent}while(P);return b}catch(M){return`
|
|
99
|
-
Error generating stack: `+M.message+`
|
|
100
|
-
`+M.stack}}var Ii=n.ReactCurrentDispatcher,ul=n.ReactDebugCurrentFrame,Ql=0,Ks=1,Da=2,ec=3,Zs=4,tc=0,nc=1,Co=2,Kf=12800;function Zf(h){return console.error(h),null}function Pa(){}function cl(h,b,P,M,W,re,de,Re,We){var ht=[],wt=new Set,It={destination:null,responseState:b,progressiveChunkSize:M===void 0?Kf:M,status:tc,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:wt,pingedTasks:ht,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:W===void 0?Zf:W,onAllReady:re===void 0?Pa:re,onShellReady:de===void 0?Pa:de,onShellError:Re===void 0?Pa:Re,onFatalError:We===void 0?Pa:We},yn=Yo(It,0,null,P,!1,!1);yn.parentFlushed=!0;var En=Oa(It,h,null,yn,wt,Vo,el,Gl);return ht.push(En),It}function eu(h,b){var P=h.pingedTasks;P.push(b),P.length===1&&a(function(){return uc(h)})}function ro(h,b){return{id:Lr,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:b,errorDigest:null}}function Oa(h,b,P,M,W,re,de,Re){h.allPendingTasks++,P===null?h.pendingRootTasks++:P.pendingTasks++;var We={node:b,ping:function(){return eu(h,We)},blockedBoundary:P,blockedSegment:M,abortSet:W,legacyContext:re,context:de,treeContext:Re};return We.componentStack=null,W.add(We),We}function Yo(h,b,P,M,W,re){return{status:Ql,id:-1,index:b,parentFlushed:!1,chunks:[],children:[],formatContext:M,boundary:P,lastPushedText:W,textEmbedded:re}}var io=null;function _a(){return io===null||io.componentStack===null?"":Qu(io.componentStack)}function Mi(h,b){h.componentStack={tag:0,parent:h.componentStack,type:b}}function Js(h,b){h.componentStack={tag:1,parent:h.componentStack,type:b}}function tu(h,b){h.componentStack={tag:2,parent:h.componentStack,type:b}}function Li(h){h.componentStack===null?i("Unexpectedly popped too many stack frames. This is a bug in React."):h.componentStack=h.componentStack.parent}var Go=null;function rc(h,b){{var P;typeof b=="string"?P=b:b&&typeof b.message=="string"?P=b.message:P=String(b);var M=Go||_a();Go=null,h.errorMessage=P,h.errorComponentStack=M}}function Qs(h,b){var P=h.onError(b);if(P!=null&&typeof P!="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 P+'" instead');return P}function fl(h,b){var P=h.onShellError;P(b);var M=h.onFatalError;M(b),h.destination!==null?(h.status=Co,A(h.destination,b)):(h.status=nc,h.fatalError=b)}function nu(h,b,P){Mi(b,"Suspense");var M=b.blockedBoundary,W=b.blockedSegment,re=P.fallback,de=P.children,Re=new Set,We=ro(h,Re),ht=W.chunks.length,wt=Yo(h,ht,We,W.formatContext,!1,!1);W.children.push(wt),W.lastPushedText=!1;var It=Yo(h,0,null,W.formatContext,!1,!1);It.parentFlushed=!0,b.blockedBoundary=We,b.blockedSegment=It;try{if(pl(h,b,de),pa(It.chunks,h.responseState,It.lastPushedText,It.textEmbedded),It.status=Ks,ml(We,It),We.pendingTasks===0){Li(b);return}}catch(En){It.status=Zs,We.forceClientRender=!0,We.errorDigest=Qs(h,En),rc(We,En)}finally{b.blockedBoundary=M,b.blockedSegment=W}var yn=Oa(h,re,M,wt,Re,b.legacyContext,b.context,b.treeContext);yn.componentStack=b.componentStack,h.pingedTasks.push(yn),Li(b)}function ef(h,b,P,M){Mi(b,P);var W=b.blockedSegment,re=ri(W.chunks,P,M,h.responseState,W.formatContext);W.lastPushedText=!1;var de=W.formatContext;W.formatContext=pi(de,P,M),pl(h,b,re),W.formatContext=de,fr(W.chunks,P),W.lastPushedText=!1,Li(b)}function ic(h){return h.prototype&&h.prototype.isReactComponent}function Gt(h,b,P,M,W){var re={};Gu(b,re);var de=P(M,W);return Kc(P,M,de,W)}function dl(h,b,P,M,W){var re=P.render();P.props!==W&&(oi||i("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Cn(M)||"a component"),oi=!0);{var de=M.childContextTypes;if(de!=null){var Re=b.legacyContext,We=Ho(P,M,Re,de);b.legacyContext=We,Gr(h,b,re),b.legacyContext=Re;return}}Gr(h,b,re)}function tf(h,b,P,M){tu(b,P);var W=Wc(P,b.legacyContext),re=zf(P,M,W);Yl(re,P,M,W),dl(h,b,re,P,M),Li(b)}var ea={},Ra={},oc={},sc={},oi=!1,ac={},hl=!1,ru=!1,iu=!1;function nf(h,b,P,M){var W;if(W=Wc(P,b.legacyContext),Js(b,P),P.prototype&&typeof P.prototype.render=="function"){var re=Cn(P)||"Unknown";ea[re]||(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.",re,re),ea[re]=!0)}var de=Gt(h,b,P,M,W),Re=qu();if(typeof de=="object"&&de!==null&&typeof de.render=="function"&&de.$$typeof===void 0){var We=Cn(P)||"Unknown";Ra[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),Ra[We]=!0)}if(typeof de=="object"&&de!==null&&typeof de.render=="function"&&de.$$typeof===void 0){{var ht=Cn(P)||"Unknown";Ra[ht]||(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.",ht,ht,ht),Ra[ht]=!0)}Yl(de,P,M,W),dl(h,b,de,P,M)}else if(wi(P),Re){var wt=b.treeContext,It=1,yn=0;b.treeContext=Wu(wt,It,yn);try{Gr(h,b,de)}finally{b.treeContext=wt}}else Gr(h,b,de);Li(b)}function wi(h){{if(h&&h.childContextTypes&&i("%s(...): childContextTypes cannot be defined on a function component.",h.displayName||h.name||"Component"),h.defaultProps!==void 0){var b=Cn(h)||"Unknown";ac[b]||(i("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",b),ac[b]=!0)}if(typeof h.getDerivedStateFromProps=="function"){var P=Cn(h)||"Unknown";sc[P]||(i("%s: Function components do not support getDerivedStateFromProps.",P),sc[P]=!0)}if(typeof h.contextType=="object"&&h.contextType!==null){var M=Cn(h)||"Unknown";oc[M]||(i("%s: Function components do not support contextType.",M),oc[M]=!0)}}}function qo(h,b){if(h&&h.defaultProps){var P=ke({},b),M=h.defaultProps;for(var W in M)P[W]===void 0&&(P[W]=M[W]);return P}return b}function lc(h,b,P,M,W){Js(b,P.render);var re=Gt(h,b,P.render,M,W),de=qu();if(de){var Re=b.treeContext,We=1,ht=0;b.treeContext=Wu(Re,We,ht);try{Gr(h,b,re)}finally{b.treeContext=Re}}else Gr(h,b,re);Li(b)}function rf(h,b,P,M,W){var re=P.type,de=qo(re,M);ou(h,b,re,de,W)}function Aa(h,b,P,M){P._context===void 0?P!==P.Consumer&&(iu||(iu=!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?"))):P=P._context;var W=M.children;typeof W!="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 re=Hs(P),de=W(re);Gr(h,b,de)}function of(h,b,P,M){var W=P._context,re=M.value,de=M.children,Re;Re=b.context,b.context=nl(W,re),Gr(h,b,de),b.context=Sa(W),Re!==b.context&&i("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function Yr(h,b,P,M,W){Mi(b,"Lazy");var re=P._payload,de=P._init,Re=de(re),We=qo(Re,M);ou(h,b,Re,We,W),Li(b)}function ou(h,b,P,M,W){if(typeof P=="function")if(ic(P)){tf(h,b,P,M);return}else{nf(h,b,P,M);return}if(typeof P=="string"){ef(h,b,P,M);return}switch(P){case Hr:case Gn:case je:case Ve:case fe:{Gr(h,b,M.children);return}case Et:{Mi(b,"SuspenseList"),Gr(h,b,M.children),Li(b);return}case ar:throw new Error("ReactDOMServer does not yet support scope components.");case Rt:{nu(h,b,M);return}}if(typeof P=="object"&&P!==null)switch(P.$$typeof){case at:{lc(h,b,P,M,W);return}case Yt:{rf(h,b,P,M,W);return}case ct:{of(h,b,P,M);return}case ft:{Aa(h,b,P,M);return}case Ln:{Yr(h,b,P,M);return}}var re="";throw(P===void 0||typeof P=="object"&&P!==null&&Object.keys(P).length===0)&&(re+=" 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: "+(P==null?P:typeof P)+"."+re))}function su(h,b){typeof Symbol=="function"&&h[Symbol.toStringTag]==="Generator"&&(hl||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."),hl=!0),h.entries===b&&(ru||i("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ru=!0)}function Gr(h,b,P){try{return Eo(h,b,P)}catch(M){throw typeof M=="object"&&M!==null&&typeof M.then=="function"||(Go=Go!==null?Go:_a()),M}}function Eo(h,b,P){if(b.node=P,typeof P=="object"&&P!==null){switch(P.$$typeof){case J:{var M=P,W=M.type,re=M.props,de=M.ref;ou(h,b,W,re,de);return}case he: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 Ln:{var Re=P,We=Re._payload,ht=Re._init,wt;try{wt=ht(We)}catch(lu){throw typeof lu=="object"&&lu!==null&&typeof lu.then=="function"&&Mi(b,"Lazy"),lu}Gr(h,b,wt);return}}if(Zr(P)){sf(h,b,P);return}var It=Tn(P);if(It){su(P,It);var yn=It.call(P);if(yn){var En=yn.next();if(!En.done){var Si=[];do Si.push(En.value),En=yn.next();while(!En.done);sf(h,b,Si);return}return}}var cc=Object.prototype.toString.call(P);throw new Error("Objects are not valid as a React child (found: "+(cc==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":cc)+"). If you meant to render a collection of children, use an array instead.")}if(typeof P=="string"){var cf=b.blockedSegment;cf.lastPushedText=Xa(b.blockedSegment.chunks,P,h.responseState,cf.lastPushedText);return}if(typeof P=="number"){var fc=b.blockedSegment;fc.lastPushedText=Xa(b.blockedSegment.chunks,""+P,h.responseState,fc.lastPushedText);return}typeof P=="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 sf(h,b,P){for(var M=P.length,W=0;W<M;W++){var re=b.treeContext;b.treeContext=Wu(re,M,W);try{pl(h,b,P[W])}finally{b.treeContext=re}}}function Ss(h,b,P){var M=b.blockedSegment,W=M.chunks.length,re=Yo(h,W,null,M.formatContext,M.lastPushedText,!0);M.children.push(re),M.lastPushedText=!1;var de=Oa(h,b.node,b.blockedBoundary,re,b.abortSet,b.legacyContext,b.context,b.treeContext);b.componentStack!==null&&(de.componentStack=b.componentStack.parent);var Re=de.ping;P.then(Re,Re)}function pl(h,b,P){var M=b.blockedSegment.formatContext,W=b.legacyContext,re=b.context,de=null;de=b.componentStack;try{return Gr(h,b,P)}catch(Re){if(zo(),typeof Re=="object"&&Re!==null&&typeof Re.then=="function"){Ss(h,b,Re),b.blockedSegment.formatContext=M,b.legacyContext=W,b.context=re,Vl(re),b.componentStack=de;return}else throw b.blockedSegment.formatContext=M,b.legacyContext=W,b.context=re,Vl(re),b.componentStack=de,Re}}function gl(h,b,P,M){var W=Qs(h,M);if(b===null?fl(h,M):(b.pendingTasks--,b.forceClientRender||(b.forceClientRender=!0,b.errorDigest=W,rc(b,M),b.parentFlushed&&h.clientRenderedBoundaries.push(b))),h.allPendingTasks--,h.allPendingTasks===0){var re=h.onAllReady;re()}}function au(h){var b=this,P=h.blockedBoundary,M=h.blockedSegment;M.status=ec,vl(b,P,M)}function af(h,b,P){var M=h.blockedBoundary,W=h.blockedSegment;if(W.status=ec,M===null)b.allPendingTasks--,b.status!==Co&&(b.status=Co,b.destination!==null&&p(b.destination));else{if(M.pendingTasks--,!M.forceClientRender){M.forceClientRender=!0;var re=P===void 0?new Error("The render was aborted by the server without a reason."):P;M.errorDigest=b.onError(re);{var de="The server did not finish this Suspense boundary: ";re&&typeof re.message=="string"?re=de+re.message:re=de+String(re);var Re=io;io=h;try{rc(M,re)}finally{io=Re}}M.parentFlushed&&b.clientRenderedBoundaries.push(M)}if(M.fallbackAbortableTasks.forEach(function(ht){return af(ht,b,P)}),M.fallbackAbortableTasks.clear(),b.allPendingTasks--,b.allPendingTasks===0){var We=b.onAllReady;We()}}}function ml(h,b){if(b.chunks.length===0&&b.children.length===1&&b.children[0].boundary===null){var P=b.children[0];P.id=b.id,P.parentFlushed=!0,P.status===Ks&&ml(h,P)}else{var M=h.completedSegments;M.push(b)}}function vl(h,b,P){if(b===null){if(P.parentFlushed){if(h.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");h.completedRootSegment=P}if(h.pendingRootTasks--,h.pendingRootTasks===0){h.onShellError=Pa;var M=h.onShellReady;M()}}else if(b.pendingTasks--,!b.forceClientRender){if(b.pendingTasks===0)P.parentFlushed&&P.status===Ks&&ml(b,P),b.parentFlushed&&h.completedBoundaries.push(b),b.fallbackAbortableTasks.forEach(au,h),b.fallbackAbortableTasks.clear();else if(P.parentFlushed&&P.status===Ks){ml(b,P);var W=b.completedSegments;W.length===1&&b.parentFlushed&&h.partialBoundaries.push(b)}}if(h.allPendingTasks--,h.allPendingTasks===0){var re=h.onAllReady;re()}}function yl(h,b){var P=b.blockedSegment;if(P.status===Ql){Vl(b.context);var M=null;M=io,io=b;try{Gr(h,b,b.node),pa(P.chunks,h.responseState,P.lastPushedText,P.textEmbedded),b.abortSet.delete(b),P.status=Ks,vl(h,b.blockedBoundary,P)}catch(re){if(zo(),typeof re=="object"&&re!==null&&typeof re.then=="function"){var W=b.ping;re.then(W,W)}else b.abortSet.delete(b),P.status=Zs,gl(h,b.blockedBoundary,P,re)}finally{io=M}}}function uc(h){if(h.status!==Co){var b=rl(),P=Ii.current;Ii.current=Qc;var M;M=ul.getCurrentStack,ul.getCurrentStack=_a;var W=ll;ka(h.responseState);try{var re=h.pingedTasks,de;for(de=0;de<re.length;de++){var Re=re[de];yl(h,Re)}re.splice(0,de),h.destination!==null&&ta(h,h.destination)}catch(We){Qs(h,We),fl(h,We)}finally{ka(W),Ii.current=P,ul.getCurrentStack=M,P===Qc&&Vl(b)}}}function bl(h,b,P){switch(P.parentFlushed=!0,P.status){case Ql:{var M=P.id=h.nextSegmentId++;return P.lastPushedText=!1,P.textEmbedded=!1,vn(b,h.responseState,M)}case Ks:{P.status=Da;for(var W=!0,re=P.chunks,de=0,Re=P.children,We=0;We<Re.length;We++){for(var ht=Re[We];de<ht.index;de++)c(b,re[de]);W=Ia(h,b,ht)}for(;de<re.length-1;de++)c(b,re[de]);return de<re.length&&(W=d(b,re[de])),W}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function Ia(h,b,P){var M=P.boundary;if(M===null)return bl(h,b,P);if(M.parentFlushed=!0,M.forceClientRender)return ee(b,h.responseState,M.errorDigest,M.errorMessage,M.errorComponentStack),bl(h,b,P),Oe(b,h.responseState);if(M.pendingTasks>0){M.rootSegmentID=h.nextSegmentId++,M.completedSegments.length>0&&h.partialBoundaries.push(M);var W=M.id=ei(h.responseState);return ue(b,h.responseState,W),bl(h,b,P),Me(b,h.responseState)}else{if(M.byteSize>h.progressiveChunkSize)return M.rootSegmentID=h.nextSegmentId++,h.completedBoundaries.push(M),ue(b,h.responseState,M.id),bl(h,b,P),Me(b,h.responseState);ga(b,h.responseState);var re=M.completedSegments;if(re.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var de=re[0];return Ia(h,b,de),ge(b,h.responseState)}}function lf(h,b,P){return qa(b,h.responseState,P.id,P.errorDigest,P.errorMessage,P.errorComponentStack)}function kr(h,b,P){return Te(b,h.responseState,P.formatContext,P.id),Ia(h,b,P),Ne(b,P.formatContext)}function xi(h,b,P){for(var M=P.completedSegments,W=0;W<M.length;W++){var re=M[W];uf(h,b,P,re)}return M.length=0,Ga(b,h.responseState,P.id,P.rootSegmentID)}function Jf(h,b,P){for(var M=P.completedSegments,W=0;W<M.length;W++){var re=M[W];if(!uf(h,b,P,re))return W++,M.splice(0,W),!1}return M.splice(0,W),!0}function uf(h,b,P,M){if(M.status===Da)return!0;var W=M.id;if(W===-1){var re=M.id=P.rootSegmentID;if(re===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return kr(h,b,M)}else return kr(h,b,M),Yn(b,h.responseState,W)}function ta(h,b){try{var P=h.completedRootSegment;P!==null&&h.pendingRootTasks===0&&(Ia(h,b,P),h.completedRootSegment=null,$s(b,h.responseState));var M=h.clientRenderedBoundaries,W;for(W=0;W<M.length;W++){var re=M[W];if(!lf(h,b,re)){h.destination=null,W++,M.splice(0,W);return}}M.splice(0,W);var de=h.completedBoundaries;for(W=0;W<de.length;W++){var Re=de[W];if(!xi(h,b,Re)){h.destination=null,W++,de.splice(0,W);return}}de.splice(0,W);var We=h.partialBoundaries;for(W=0;W<We.length;W++){var ht=We[W];if(!Jf(h,b,ht)){h.destination=null,W++,We.splice(0,W);return}}We.splice(0,W);var wt=h.completedBoundaries;for(W=0;W<wt.length;W++){var It=wt[W];if(!xi(h,b,It)){h.destination=null,W++,wt.splice(0,W);return}}wt.splice(0,W)}finally{h.allPendingTasks===0&&h.pingedTasks.length===0&&h.clientRenderedBoundaries.length===0&&h.completedBoundaries.length===0&&(h.abortableTasks.size!==0&&i("There was still abortable task at the root when we closed. This is a bug in React."),p(b))}}function Ma(h){a(function(){return uc(h)})}function g(h,b){if(h.status===nc){h.status=Co,A(b,h.fatalError);return}if(h.status!==Co&&h.destination===null){h.destination=b;try{ta(h,b)}catch(P){Qs(h,P),fl(h,P)}}}function w(h,b){try{var P=h.abortableTasks;P.forEach(function(M){return af(M,h,b)}),P.clear(),h.destination!==null&&ta(h,h.destination)}catch(M){Qs(h,M),fl(h,M)}}function R(){}function $(h,b,P,M){var W=!1,re=null,de="",Re={push:function(It){return It!==null&&(de+=It),!0},destroy:function(It){W=!0,re=It}},We=!1;function ht(){We=!0}var wt=cl(h,bo(P,b?b.identifierPrefix:void 0),dr(),1/0,R,void 0,ht,void 0,void 0);if(Ma(wt),w(wt,M),g(wt,Re),W)throw re;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 de}function X(h,b){return $(h,b,!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 oe(h,b){return $(h,b,!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 ve(){throw new Error("ReactDOMServer.renderToNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToString() instead.")}function Ae(){throw new Error("ReactDOMServer.renderToStaticNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToStaticMarkup() instead.")}yc.renderToNodeStream=ve,yc.renderToStaticMarkup=oe,yc.renderToStaticNodeStream=Ae,yc.renderToString=X,yc.version=e}()),yc}var Nh={};/**
|
|
101
|
-
* @license React
|
|
102
|
-
* react-dom-server.browser.development.js
|
|
103
|
-
*
|
|
104
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
105
|
-
*
|
|
106
|
-
* This source code is licensed under the MIT license found in the
|
|
107
|
-
* LICENSE file in the root directory of this source tree.
|
|
108
|
-
*/var m1;function T4(){return m1||(m1=1,process.env.NODE_ENV!=="production"&&function(){var t=Z,e="18.3.1",n=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(g){{for(var w=arguments.length,R=new Array(w>1?w-1:0),$=1;$<w;$++)R[$-1]=arguments[$];o("warn",g,R)}}function i(g){{for(var w=arguments.length,R=new Array(w>1?w-1:0),$=1;$<w;$++)R[$-1]=arguments[$];o("error",g,R)}}function o(g,w,R){{var $=n.ReactDebugCurrentFrame,X=$.getStackAddendum();X!==""&&(w+="%s",R=R.concat([X]));var oe=R.map(function(ve){return String(ve)});oe.unshift("Warning: "+w),Function.prototype.apply.call(console[g],console,oe)}}function a(g){g()}var u=512,c=null,d=0;function y(g){c=new Uint8Array(u),d=0}function p(g,w){if(w.length!==0){if(w.length>u){d>0&&(g.enqueue(new Uint8Array(c.buffer,0,d)),c=new Uint8Array(u),d=0),g.enqueue(w);return}var R=w,$=c.length-d;$<R.length&&($===0?g.enqueue(c):(c.set(R.subarray(0,$),d),g.enqueue(c),R=R.subarray($)),c=new Uint8Array(u),d=0),c.set(R,d),d+=R.length}}function S(g,w){return p(g,w),!0}function C(g){c&&d>0&&(g.enqueue(new Uint8Array(c.buffer,0,d)),c=null,d=0)}function A(g){g.close()}var I=new TextEncoder;function B(g){return I.encode(g)}function _(g){return I.encode(g)}function G(g,w){typeof g.error=="function"?g.error(w):g.close()}function q(g){{var w=typeof Symbol=="function"&&Symbol.toStringTag,R=w&&g[Symbol.toStringTag]||g.constructor.name||"Object";return R}}function se(g){try{return Q(g),!1}catch{return!0}}function Q(g){return""+g}function ye(g,w){if(se(g))return i("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",w,q(g)),Q(g)}function x(g,w){if(se(g))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.",w,q(g)),Q(g)}function ae(g){if(se(g))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.",q(g)),Q(g)}var ce=Object.prototype.hasOwnProperty,Be=0,qe=1,Ze=2,ot=3,it=4,me=5,De=6,Le=":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",Ye=Le+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",st=new RegExp("^["+Le+"]["+Ye+"]*$"),Ce={},_e={};function Xe(g){return ce.call(_e,g)?!0:ce.call(Ce,g)?!1:st.test(g)?(_e[g]=!0,!0):(Ce[g]=!0,i("Invalid attribute name: `%s`",g),!1)}function Ge(g,w,R,$){if(R!==null&&R.type===Be)return!1;switch(typeof w){case"function":case"symbol":return!0;case"boolean":{if($)return!1;if(R!==null)return!R.acceptsBooleans;var X=g.toLowerCase().slice(0,5);return X!=="data-"&&X!=="aria-"}default:return!1}}function tt(g){return nt.hasOwnProperty(g)?nt[g]:null}function et(g,w,R,$,X,oe,ve){this.acceptsBooleans=w===Ze||w===ot||w===it,this.attributeName=$,this.attributeNamespace=X,this.mustUseProperty=R,this.propertyName=g,this.type=w,this.sanitizeURL=oe,this.removeEmptyString=ve}var nt={},lt=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];lt.forEach(function(g){nt[g]=new et(g,Be,!1,g,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(g){var w=g[0],R=g[1];nt[w]=new et(w,qe,!1,R,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(g){nt[g]=new et(g,Ze,!1,g.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(g){nt[g]=new et(g,Ze,!1,g,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(g){nt[g]=new et(g,ot,!1,g.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(g){nt[g]=new et(g,ot,!0,g,null,!1,!1)}),["capture","download"].forEach(function(g){nt[g]=new et(g,it,!1,g,null,!1,!1)}),["cols","rows","size","span"].forEach(function(g){nt[g]=new et(g,De,!1,g,null,!1,!1)}),["rowSpan","start"].forEach(function(g){nt[g]=new et(g,me,!1,g.toLowerCase(),null,!1,!1)});var bt=/[\-\:]([a-z])/g,xt=function(g){return g[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(g){var w=g.replace(bt,xt);nt[w]=new et(w,qe,!1,g,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(g){var w=g.replace(bt,xt);nt[w]=new et(w,qe,!1,g,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(g){var w=g.replace(bt,xt);nt[w]=new et(w,qe,!1,g,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(g){nt[g]=new et(g,qe,!1,g.toLowerCase(),null,!1,!1)});var gt="xlinkHref";nt[gt]=new et("xlinkHref",qe,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(g){nt[g]=new et(g,qe,!1,g.toLowerCase(),null,!0,!0)});var Ct={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 rt(g,w){return g+w.charAt(0).toUpperCase()+w.substring(1)}var Bt=["Webkit","ms","Moz","O"];Object.keys(Ct).forEach(function(g){Bt.forEach(function(w){Ct[rt(w,g)]=Ct[g]})});var Vt={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function qn(g,w){Vt[w.type]||w.onChange||w.onInput||w.readOnly||w.disabled||w.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`."),w.onChange||w.readOnly||w.disabled||w.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 yr(g,w){if(g.indexOf("-")===-1)return typeof w.is=="string";switch(g){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 Xn={"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},Dn={},Hi=new RegExp("^(aria)-["+Ye+"]*$"),Or=new RegExp("^(aria)[A-Z]["+Ye+"]*$");function ir(g,w){{if(ce.call(Dn,w)&&Dn[w])return!0;if(Or.test(w)){var R="aria-"+w.slice(4).toLowerCase(),$=Xn.hasOwnProperty(R)?R:null;if($==null)return i("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",w),Dn[w]=!0,!0;if(w!==$)return i("Invalid ARIA attribute `%s`. Did you mean `%s`?",w,$),Dn[w]=!0,!0}if(Hi.test(w)){var X=w.toLowerCase(),oe=Xn.hasOwnProperty(X)?X:null;if(oe==null)return Dn[w]=!0,!1;if(w!==oe)return i("Unknown ARIA attribute `%s`. Did you mean `%s`?",w,oe),Dn[w]=!0,!0}}return!0}function un(g,w){{var R=[];for(var $ in w){var X=ir(g,$);X||R.push($)}var oe=R.map(function(ve){return"`"+ve+"`"}).join(", ");R.length===1?i("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",oe,g):R.length>1&&i("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",oe,g)}}function dn(g,w){yr(g,w)||un(g,w)}var hn=!1;function pt(g,w){{if(g!=="input"&&g!=="textarea"&&g!=="select")return;w!=null&&w.value===null&&!hn&&(hn=!0,g==="select"&&w.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.",g):i("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",g))}}var Rn={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"},li=function(){};{var ln={},Ui=/^on./,Wi=/^on[^A-Z]/,zi=new RegExp("^(aria)-["+Ye+"]*$"),_r=new RegExp("^(aria)[A-Z]["+Ye+"]*$");li=function(g,w,R,$){if(ce.call(ln,w)&&ln[w])return!0;var X=w.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."),ln[w]=!0,!0;if($!=null){var oe=$.registrationNameDependencies,ve=$.possibleRegistrationNames;if(oe.hasOwnProperty(w))return!0;var Ae=ve.hasOwnProperty(X)?ve[X]:null;if(Ae!=null)return i("Invalid event handler property `%s`. Did you mean `%s`?",w,Ae),ln[w]=!0,!0;if(Ui.test(w))return i("Unknown event handler property `%s`. It will be ignored.",w),ln[w]=!0,!0}else if(Ui.test(w))return Wi.test(w)&&i("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",w),ln[w]=!0,!0;if(zi.test(w)||_r.test(w))return!0;if(X==="innerhtml")return i("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),ln[w]=!0,!0;if(X==="aria")return i("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),ln[w]=!0,!0;if(X==="is"&&R!==null&&R!==void 0&&typeof R!="string")return i("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof R),ln[w]=!0,!0;if(typeof R=="number"&&isNaN(R))return i("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",w),ln[w]=!0,!0;var h=tt(w),b=h!==null&&h.type===Be;if(Rn.hasOwnProperty(X)){var P=Rn[X];if(P!==w)return i("Invalid DOM property `%s`. Did you mean `%s`?",w,P),ln[w]=!0,!0}else if(!b&&w!==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.",w,X),ln[w]=!0,!0;return typeof R=="boolean"&&Ge(w,R,h,!1)?(R?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()}.',R,w,w,R,w):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.',R,w,w,R,w,w,w),ln[w]=!0,!0):b?!0:Ge(w,R,h,!1)?(ln[w]=!0,!1):((R==="false"||R==="true")&&h!==null&&h.type===ot&&(i("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",R,w,R==="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".',w,R),ln[w]=!0),!0)}}var Un=function(g,w,R){{var $=[];for(var X in w){var oe=li(g,X,w[X],R);oe||$.push(X)}var ve=$.map(function(Ae){return"`"+Ae+"`"}).join(", ");$.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 ",ve,g):$.length>1&&i("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",ve,g)}};function Rr(g,w,R){yr(g,w)||Un(g,w,R)}var br=function(){};{var qr=/^(?:webkit|moz|o)[A-Z]/,Xr=/^-ms-/,Ao=/-(.)/g,Kn=/;\s*$/,Kr={},or={},Zt=!1,ui=!1,Yi=function(g){return g.replace(Ao,function(w,R){return R.toUpperCase()})},An=function(g){Kr.hasOwnProperty(g)&&Kr[g]||(Kr[g]=!0,i("Unsupported style property %s. Did you mean %s?",g,Yi(g.replace(Xr,"ms-"))))},pn=function(g){Kr.hasOwnProperty(g)&&Kr[g]||(Kr[g]=!0,i("Unsupported vendor-prefixed style property %s. Did you mean %s?",g,g.charAt(0).toUpperCase()+g.slice(1)))},ci=function(g,w){or.hasOwnProperty(w)&&or[w]||(or[w]=!0,i(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,g,w.replace(Kn,"")))},fi=function(g,w){Zt||(Zt=!0,i("`NaN` is an invalid value for the `%s` css style property.",g))},mn=function(g,w){ui||(ui=!0,i("`Infinity` is an invalid value for the `%s` css style property.",g))};br=function(g,w){g.indexOf("-")>-1?An(g):qr.test(g)?pn(g):Kn.test(w)&&ci(g,w),typeof w=="number"&&(isNaN(w)?fi(g,w):isFinite(w)||mn(g,w))}}var co=br,wr=/["'&<>]/;function di(g){ae(g);var w=""+g,R=wr.exec(w);if(!R)return w;var $,X="",oe,ve=0;for(oe=R.index;oe<w.length;oe++){switch(w.charCodeAt(oe)){case 34:$=""";break;case 38:$="&";break;case 39:$="'";break;case 60:$="<";break;case 62:$=">";break;default:continue}ve!==oe&&(X+=w.substring(ve,oe)),ve=oe+1,X+=$}return ve!==oe?X+w.substring(ve,oe):X}function cn(g){return typeof g=="boolean"||typeof g=="number"?""+g:di(g)}var ki=/([A-Z])/g,Ms=/^ms-/;function Ls(g){return g.replace(ki,"-$1").toLowerCase().replace(Ms,"-ms-")}var Zr=/^[\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,fo=!1;function ho(g){!fo&&Zr.test(g)&&(fo=!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(g)))}var Io=Array.isArray;function Di(g){return Io(g)}var hi=_("<script>"),Pi=_("<\/script>"),po=_('<script src="'),Oi=_('<script type="module" src="'),Jr=_('" async=""><\/script>');function xr(g){return ae(g),(""+g).replace(Ar,Qr)}var Ar=/(<\/|<)(s)(cript)/gi,Qr=function(g,w,R,$){return""+w+(R==="s"?"\\u0073":"\\u0053")+$};function Ir(g,w,R,$,X){var oe=g===void 0?"":g,ve=w===void 0?hi:_('<script nonce="'+cn(w)+'">'),Ae=[];if(R!==void 0&&Ae.push(ve,B(xr(R)),Pi),$!==void 0)for(var h=0;h<$.length;h++)Ae.push(po,B(cn($[h])),Jr);if(X!==void 0)for(var b=0;b<X.length;b++)Ae.push(Oi,B(cn(X[b])),Jr);return{bootstrapChunks:Ae,startInlineScript:ve,placeholderPrefix:_(oe+"P:"),segmentPrefix:_(oe+"S:"),boundaryPrefix:oe+"B:",idPrefix:oe,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var Wn=0,gn=1,Mr=2,Sr=3,In=4,pi=5,Lr=6,ei=7;function Zn(g,w){return{insertionMode:g,selectedValue:w}}function ti(g){var w=g==="http://www.w3.org/2000/svg"?Mr:g==="http://www.w3.org/1998/Math/MathML"?Sr:Wn;return Zn(w,null)}function ni(g,w,R){switch(w){case"select":return Zn(gn,R.value!=null?R.value:R.defaultValue);case"svg":return Zn(Mr,null);case"math":return Zn(Sr,null);case"foreignObject":return Zn(gn,null);case"table":return Zn(In,null);case"thead":case"tbody":case"tfoot":return Zn(pi,null);case"colgroup":return Zn(ei,null);case"tr":return Zn(Lr,null)}return g.insertionMode>=In||g.insertionMode===Wn?Zn(gn,null):g}var Gi=null;function On(g){var w=g.nextSuspenseID++;return _(g.boundaryPrefix+w.toString(16))}function Tr(g,w,R){var $=g.idPrefix,X=":"+$+"R"+w;return R>0&&(X+="H"+R.toString(32)),X+":"}function cr(g){return cn(g)}var Mo=_("<!-- -->");function qi(g,w,R,$){return w===""?$:($&&g.push(Mo),g.push(B(cr(w))),!0)}function Fr(g,w,R,$){R&&$&&g.push(Mo)}var E=new Map;function N(g){var w=E.get(g);if(w!==void 0)return w;var R=_(cn(Ls(g)));return E.set(g,R),R}var Y=_(' style="'),ne=_(":"),Pe=_(";");function be(g,w,R){if(typeof R!="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 $=!0;for(var X in R)if(ce.call(R,X)){var oe=R[X];if(!(oe==null||typeof oe=="boolean"||oe==="")){var ve=void 0,Ae=void 0,h=X.indexOf("--")===0;h?(ve=B(cn(X)),x(oe,X),Ae=B(cn((""+oe).trim()))):(co(X,oe),ve=N(X),typeof oe=="number"?oe!==0&&!ce.call(Ct,X)?Ae=B(oe+"px"):Ae=B(""+oe):(x(oe,X),Ae=B(cn((""+oe).trim())))),$?($=!1,g.push(Y,ve,ne,Ae)):g.push(Pe,ve,ne,Ae)}}$||g.push(mt)}var Ie=_(" "),Je=_('="'),mt=_('"'),St=_('=""');function vt(g,w,R,$){switch(R){case"style":{be(g,w,$);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(R.length>2&&(R[0]==="o"||R[0]==="O")&&(R[1]==="n"||R[1]==="N"))){var X=tt(R);if(X!==null){switch(typeof $){case"function":case"symbol":return;case"boolean":if(!X.acceptsBooleans)return}var oe=X.attributeName,ve=B(oe);switch(X.type){case ot:$&&g.push(Ie,ve,St);return;case it:$===!0?g.push(Ie,ve,St):$===!1||g.push(Ie,ve,Je,B(cn($)),mt);return;case me:isNaN($)||g.push(Ie,ve,Je,B(cn($)),mt);break;case De:!isNaN($)&&$>=1&&g.push(Ie,ve,Je,B(cn($)),mt);break;default:X.sanitizeURL&&(ye($,oe),$=""+$,ho($)),g.push(Ie,ve,Je,B(cn($)),mt)}}else if(Xe(R)){switch(typeof $){case"function":case"symbol":return;case"boolean":{var Ae=R.toLowerCase().slice(0,5);if(Ae!=="data-"&&Ae!=="aria-")return}}g.push(Ie,B(R),Je,B(cn($)),mt)}}}var Ht=_(">"),Jn=_("/>");function zn(g,w,R){if(w!=null){if(R!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof w!="object"||!("__html"in w))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 $=w.__html;$!=null&&(ae($),g.push(B(""+$)))}}var Pn=!1,Nr=!1,sr=!1,Xi=!1,gi=!1,Ki=!1,jr=!1;function Lo(g,w){{var R=g[w];if(R!=null){var $=Di(R);g.multiple&&!$?i("The `%s` prop supplied to <select> must be an array if `multiple` is true.",w):!g.multiple&&$&&i("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",w)}}}function Ya(g,w,R){qn("select",w),Lo(w,"value"),Lo(w,"defaultValue"),w.value!==void 0&&w.defaultValue!==void 0&&!sr&&(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"),sr=!0),g.push(fr("select"));var $=null,X=null;for(var oe in w)if(ce.call(w,oe)){var ve=w[oe];if(ve==null)continue;switch(oe){case"children":$=ve;break;case"dangerouslySetInnerHTML":X=ve;break;case"defaultValue":case"value":break;default:vt(g,R,oe,ve);break}}return g.push(Ht),zn(g,X,$),$}function Fs(g){var w="";return t.Children.forEach(g,function(R){R!=null&&(w+=R,!gi&&typeof R!="string"&&typeof R!="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>.")))}),w}var Ns=_(' selected=""');function js(g,w,R,$){var X=$.selectedValue;g.push(fr("option"));var oe=null,ve=null,Ae=null,h=null;for(var b in w)if(ce.call(w,b)){var P=w[b];if(P==null)continue;switch(b){case"children":oe=P;break;case"selected":Ae=P,jr||(i("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),jr=!0);break;case"dangerouslySetInnerHTML":h=P;break;case"value":ve=P;default:vt(g,R,b,P);break}}if(X!=null){var M;if(ve!==null?(ye(ve,"value"),M=""+ve):(h!==null&&(Ki||(Ki=!0,i("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),M=Fs(oe)),Di(X))for(var W=0;W<X.length;W++){ye(X[W],"value");var re=""+X[W];if(re===M){g.push(Ns);break}}else ye(X,"select.value"),""+X===M&&g.push(Ns)}else Ae&&g.push(Ns);return g.push(Ht),zn(g,h,oe),oe}function Bs(g,w,R){qn("input",w),w.checked!==void 0&&w.defaultChecked!==void 0&&!Nr&&(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",w.type),Nr=!0),w.value!==void 0&&w.defaultValue!==void 0&&!Pn&&(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",w.type),Pn=!0),g.push(fr("input"));var $=null,X=null,oe=null,ve=null;for(var Ae in w)if(ce.call(w,Ae)){var h=w[Ae];if(h==null)continue;switch(Ae){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":ve=h;break;case"defaultValue":X=h;break;case"checked":oe=h;break;case"value":$=h;break;default:vt(g,R,Ae,h);break}}return oe!==null?vt(g,R,"checked",oe):ve!==null&&vt(g,R,"checked",ve),$!==null?vt(g,R,"value",$):X!==null&&vt(g,R,"value",X),g.push(Jn),null}function mi(g,w,R){qn("textarea",w),w.value!==void 0&&w.defaultValue!==void 0&&!Xi&&(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"),Xi=!0),g.push(fr("textarea"));var $=null,X=null,oe=null;for(var ve in w)if(ce.call(w,ve)){var Ae=w[ve];if(Ae==null)continue;switch(ve){case"children":oe=Ae;break;case"value":$=Ae;break;case"defaultValue":X=Ae;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:vt(g,R,ve,Ae);break}}if($===null&&X!==null&&($=X),g.push(Ht),oe!=null){if(i("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),$!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Di(oe)){if(oe.length>1)throw new Error("<textarea> can only have at most one child.");ae(oe[0]),$=""+oe[0]}ae(oe),$=""+oe}return typeof $=="string"&&$[0]===`
|
|
109
|
-
`&&g.push(_i),$!==null&&(ye($,"value"),g.push(B(cr(""+$)))),null}function Fo(g,w,R,$){g.push(fr(R));for(var X in w)if(ce.call(w,X)){var oe=w[X];if(oe==null)continue;switch(X){case"children":case"dangerouslySetInnerHTML":throw new Error(R+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:vt(g,$,X,oe);break}}return g.push(Jn),null}function as(g,w,R){g.push(fr("menuitem"));for(var $ in w)if(ce.call(w,$)){var X=w[$];if(X==null)continue;switch($){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:vt(g,R,$,X);break}}return g.push(Ht),null}function sn(g,w,R){g.push(fr("title"));var $=null;for(var X in w)if(ce.call(w,X)){var oe=w[X];if(oe==null)continue;switch(X){case"children":$=oe;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:vt(g,R,X,oe);break}}g.push(Ht);{var ve=Array.isArray($)&&$.length<2?$[0]||null:$;Array.isArray($)&&$.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"):ve!=null&&ve.$$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"):ve!=null&&typeof ve!="string"&&typeof ve!="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 $}function Jt(g,w,R,$){g.push(fr(R));var X=null,oe=null;for(var ve in w)if(ce.call(w,ve)){var Ae=w[ve];if(Ae==null)continue;switch(ve){case"children":X=Ae;break;case"dangerouslySetInnerHTML":oe=Ae;break;default:vt(g,$,ve,Ae);break}}return g.push(Ht),zn(g,oe,X),typeof X=="string"?(g.push(B(cr(X))),null):X}function $t(g,w,R,$){g.push(fr(R));var X=null,oe=null;for(var ve in w)if(ce.call(w,ve)){var Ae=w[ve];if(Ae==null)continue;switch(ve){case"children":X=Ae;break;case"dangerouslySetInnerHTML":oe=Ae;break;case"style":be(g,$,Ae);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:Xe(ve)&&typeof Ae!="function"&&typeof Ae!="symbol"&&g.push(Ie,B(ve),Je,B(cn(Ae)),mt);break}}return g.push(Ht),zn(g,oe,X),X}var _i=_(`
|
|
110
|
-
`);function ri(g,w,R,$){g.push(fr(R));var X=null,oe=null;for(var ve in w)if(ce.call(w,ve)){var Ae=w[ve];if(Ae==null)continue;switch(ve){case"children":X=Ae;break;case"dangerouslySetInnerHTML":oe=Ae;break;default:vt(g,$,ve,Ae);break}}if(g.push(Ht),oe!=null){if(X!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof oe!="object"||!("__html"in oe))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 h=oe.__html;h!=null&&(typeof h=="string"&&h.length>0&&h[0]===`
|
|
111
|
-
`?g.push(_i,B(h)):(ae(h),g.push(B(""+h))))}return typeof X=="string"&&X[0]===`
|
|
112
|
-
`&&g.push(_i),X}var No=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,vi=new Map;function fr(g){var w=vi.get(g);if(w===void 0){if(!No.test(g))throw new Error("Invalid tag: "+g);w=_("<"+g),vi.set(g,w)}return w}var $s=_("<!DOCTYPE html>");function ls(g,w,R,$,X){switch(dn(w,R),pt(w,R),Rr(w,R,null),!R.suppressContentEditableWarning&&R.contentEditable&&R.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!==Mr&&X.insertionMode!==Sr&&w.indexOf("-")===-1&&typeof R.is!="string"&&w.toLowerCase()!==w&&i("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",w),w){case"select":return Ya(g,R,$);case"option":return js(g,R,$,X);case"textarea":return mi(g,R,$);case"input":return Bs(g,R,$);case"menuitem":return as(g,R,$);case"title":return sn(g,R,$);case"listing":case"pre":return ri(g,R,w,$);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 Fo(g,R,w,$);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 Jt(g,R,w,$);case"html":return X.insertionMode===Wn&&g.push($s),Jt(g,R,w,$);default:return w.indexOf("-")===-1&&typeof R.is!="string"?Jt(g,R,w,$):$t(g,R,w,$)}}var ca=_("</"),vn=_(">");function jo(g,w,R){switch(w){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:g.push(ca,B(w),vn)}}function yi(g,w){for(var R=w.bootstrapChunks,$=0;$<R.length-1;$++)p(g,R[$]);return $<R.length?S(g,R[$]):!0}var fa=_('<template id="'),go=_('"></template>');function Qn(g,w,R){p(g,fa),p(g,w.placeholderPrefix);var $=B(R.toString(16));return p(g,$),S(g,go)}var f=_("<!--$-->"),m=_('<!--$?--><template id="'),T=_('"></template>'),D=_("<!--$!-->"),F=_("<!--/$-->"),j=_("<template"),H=_('"'),ue=_(' data-dgst="'),ie=_(' data-msg="'),we=_(' data-stck="'),Me=_("></template>");function Fe(g,w){return S(g,f)}function Ee(g,w,R){if(p(g,m),R===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return p(g,R),S(g,T)}function He(g,w,R,$,X){var oe;return oe=S(g,D),p(g,j),R&&(p(g,ue),p(g,B(cn(R))),p(g,H)),$&&(p(g,ie),p(g,B(cn($))),p(g,H)),X&&(p(g,we),p(g,B(cn(X))),p(g,H)),oe=S(g,Me),oe}function ut(g,w){return S(g,F)}function Pt(g,w){return S(g,F)}function _t(g,w){return S(g,F)}var Mn=_('<div hidden id="'),fn=_('">'),Br=_("</div>"),$r=_('<svg aria-hidden="true" style="display:none" id="'),Ut=_('">'),Vr=_("</svg>"),zt=_('<math aria-hidden="true" style="display:none" id="'),rn=_('">'),mo=_("</math>"),vo=_('<table hidden id="'),Cr=_('">'),k=_("</table>"),L=_('<table hidden><tbody id="'),U=_('">'),te=_("</tbody></table>"),Se=_('<table hidden><tr id="'),Te=_('">'),Ne=_("</tr></table>"),Ke=_('<table hidden><colgroup id="'),yt=_('">'),Nt=_("</colgroup></table>");function Dt(g,w,R,$){switch(R.insertionMode){case Wn:case gn:return p(g,Mn),p(g,w.segmentPrefix),p(g,B($.toString(16))),S(g,fn);case Mr:return p(g,$r),p(g,w.segmentPrefix),p(g,B($.toString(16))),S(g,Ut);case Sr:return p(g,zt),p(g,w.segmentPrefix),p(g,B($.toString(16))),S(g,rn);case In:return p(g,vo),p(g,w.segmentPrefix),p(g,B($.toString(16))),S(g,Cr);case pi:return p(g,L),p(g,w.segmentPrefix),p(g,B($.toString(16))),S(g,U);case Lr:return p(g,Se),p(g,w.segmentPrefix),p(g,B($.toString(16))),S(g,Te);case ei:return p(g,Ke),p(g,w.segmentPrefix),p(g,B($.toString(16))),S(g,yt);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}function Tt(g,w){switch(w.insertionMode){case Wn:case gn:return S(g,Br);case Mr:return S(g,Vr);case Sr:return S(g,mo);case In:return S(g,k);case pi:return S(g,te);case Lr:return S(g,Ne);case ei:return S(g,Nt);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var jn="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)}",Sn='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()}}',Yn='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())}',us=_(jn+';$RS("'),da=_('$RS("'),cs=_('","'),ii=_('")<\/script>');function Ga(g,w,R){p(g,w.startInlineScript),w.sentCompleteSegmentFunction?p(g,da):(w.sentCompleteSegmentFunction=!0,p(g,us)),p(g,w.segmentPrefix);var $=B(R.toString(16));return p(g,$),p(g,cs),p(g,w.placeholderPrefix),p(g,$),S(g,ii)}var yo=_(Sn+';$RC("'),ha=_('$RC("'),fs=_('","'),bi=_('")<\/script>');function Zi(g,w,R,$){if(p(g,w.startInlineScript),w.sentCompleteBoundaryFunction?p(g,ha):(w.sentCompleteBoundaryFunction=!0,p(g,yo)),R===null)throw new Error("An ID must have been assigned before we can complete the boundary.");var X=B($.toString(16));return p(g,R),p(g,fs),p(g,w.segmentPrefix),p(g,X),S(g,bi)}var qa=_(Yn+';$RX("'),Lu=_('$RX("'),ds=_('"'),bo=_(")<\/script>"),dr=_(",");function Xa(g,w,R,$,X,oe){if(p(g,w.startInlineScript),w.sentClientRenderFunction?p(g,Lu):(w.sentClientRenderFunction=!0,p(g,qa)),R===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return p(g,R),p(g,ds),($||X||oe)&&(p(g,dr),p(g,B(ga($||"")))),(X||oe)&&(p(g,dr),p(g,B(ga(X||"")))),oe&&(p(g,dr),p(g,B(ga(oe)))),S(g,bo)}var pa=/[<\u2028\u2029]/g;function ga(g){var w=JSON.stringify(g);return w.replace(pa,function(R){switch(R){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 ee=Object.assign,ge=Symbol.for("react.element"),Oe=Symbol.for("react.portal"),ke=Symbol.for("react.fragment"),J=Symbol.for("react.strict_mode"),he=Symbol.for("react.profiler"),fe=Symbol.for("react.provider"),je=Symbol.for("react.context"),Ve=Symbol.for("react.forward_ref"),ct=Symbol.for("react.suspense"),ft=Symbol.for("react.suspense_list"),at=Symbol.for("react.memo"),Rt=Symbol.for("react.lazy"),Et=Symbol.for("react.scope"),Yt=Symbol.for("react.debug_trace_mode"),Ln=Symbol.for("react.legacy_hidden"),ar=Symbol.for("react.default_value"),Gn=Symbol.iterator,Hr="@@iterator";function Ji(g){if(g===null||typeof g!="object")return null;var w=Gn&&g[Gn]||g[Hr];return typeof w=="function"?w:null}function At(g,w,R){var $=g.displayName;if($)return $;var X=w.displayName||w.name||"";return X!==""?R+"("+X+")":R}function Uc(g){return g.displayName||"Context"}function Tn(g){if(g==null)return null;if(typeof g.tag=="number"&&i("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof g=="function")return g.displayName||g.name||null;if(typeof g=="string")return g;switch(g){case ke:return"Fragment";case Oe:return"Portal";case he:return"Profiler";case J:return"StrictMode";case ct:return"Suspense";case ft:return"SuspenseList"}if(typeof g=="object")switch(g.$$typeof){case je:var w=g;return Uc(w)+".Consumer";case fe:var R=g;return Uc(R._context)+".Provider";case Ve:return At(g,g.render,"ForwardRef");case at:var $=g.displayName||null;return $!==null?$:Tn(g.type)||"Memo";case Rt:{var X=g,oe=X._payload,ve=X._init;try{return Tn(ve(oe))}catch{return null}}}return null}var hs=0,Fu,Cn,ma,va,wo,ya,jl;function ba(){}ba.__reactDisabledLog=!0;function Nu(){{if(hs===0){Fu=console.log,Cn=console.info,ma=console.warn,va=console.error,wo=console.group,ya=console.groupCollapsed,jl=console.groupEnd;var g={configurable:!0,enumerable:!0,value:ba,writable:!0};Object.defineProperties(console,{info:g,log:g,warn:g,error:g,group:g,groupCollapsed:g,groupEnd:g})}hs++}}function ju(){{if(hs--,hs===0){var g={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ee({},g,{value:Fu}),info:ee({},g,{value:Cn}),warn:ee({},g,{value:ma}),error:ee({},g,{value:va}),group:ee({},g,{value:wo}),groupCollapsed:ee({},g,{value:ya}),groupEnd:ee({},g,{value:jl})})}hs<0&&i("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Vs=n.ReactCurrentDispatcher,Bl;function Bo(g,w,R){{if(Bl===void 0)try{throw Error()}catch(X){var $=X.stack.trim().match(/\n( *(at )?)/);Bl=$&&$[1]||""}return`
|
|
113
|
-
`+Bl+g}}var Qi=!1,$o;{var Ka=typeof WeakMap=="function"?WeakMap:Map;$o=new Ka}function Za(g,w){if(!g||Qi)return"";{var R=$o.get(g);if(R!==void 0)return R}var $;Qi=!0;var X=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var oe;oe=Vs.current,Vs.current=null,Nu();try{if(w){var ve=function(){throw Error()};if(Object.defineProperty(ve.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ve,[])}catch(de){$=de}Reflect.construct(g,[],ve)}else{try{ve.call()}catch(de){$=de}g.call(ve.prototype)}}else{try{throw Error()}catch(de){$=de}g()}}catch(de){if(de&&$&&typeof de.stack=="string"){for(var Ae=de.stack.split(`
|
|
114
|
-
`),h=$.stack.split(`
|
|
115
|
-
`),b=Ae.length-1,P=h.length-1;b>=1&&P>=0&&Ae[b]!==h[P];)P--;for(;b>=1&&P>=0;b--,P--)if(Ae[b]!==h[P]){if(b!==1||P!==1)do if(b--,P--,P<0||Ae[b]!==h[P]){var M=`
|
|
116
|
-
`+Ae[b].replace(" at new "," at ");return g.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",g.displayName)),typeof g=="function"&&$o.set(g,M),M}while(b>=1&&P>=0);break}}}finally{Qi=!1,Vs.current=oe,ju(),Error.prepareStackTrace=X}var W=g?g.displayName||g.name:"",re=W?Bo(W):"";return typeof g=="function"&&$o.set(g,re),re}function $l(g,w,R){return Za(g,!0)}function Ja(g,w,R){return Za(g,!1)}function wa(g){var w=g.prototype;return!!(w&&w.isReactComponent)}function Qa(g,w,R){if(g==null)return"";if(typeof g=="function")return Za(g,wa(g));if(typeof g=="string")return Bo(g);switch(g){case ct:return Bo("Suspense");case ft:return Bo("SuspenseList")}if(typeof g=="object")switch(g.$$typeof){case Ve:return Ja(g.render);case at:return Qa(g.type,w,R);case Rt:{var $=g,X=$._payload,oe=$._init;try{return Qa(oe(X),w,R)}catch{}}}return""}var Bu={},$u=n.ReactDebugCurrentFrame;function xa(g){if(g){var w=g._owner,R=Qa(g.type,g._source,w?w.type:null);$u.setExtraStackFrame(R)}else $u.setExtraStackFrame(null)}function Vu(g,w,R,$,X){{var oe=Function.call.bind(ce);for(var ve in g)if(oe(g,ve)){var Ae=void 0;try{if(typeof g[ve]!="function"){var h=Error(($||"React class")+": "+R+" type `"+ve+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof g[ve]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}Ae=g[ve](w,ve,$,R,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(b){Ae=b}Ae&&!(Ae 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).",$||"React class",R,ve,typeof Ae),xa(null)),Ae instanceof Error&&!(Ae.message in Bu)&&(Bu[Ae.message]=!0,xa(X),i("Failed %s type: %s",R,Ae.message),xa(null))}}}var Fn;Fn={};var Nn={};Object.freeze(Nn);function Hu(g,w){{var R=g.contextTypes;if(!R)return Nn;var $={};for(var X in R)$[X]=w[X];{var oe=Tn(g)||"Unknown";Vu(R,$,"context",oe)}return $}}function Uu(g,w,R,$){{if(typeof g.getChildContext!="function"){{var X=Tn(w)||"Unknown";Fn[X]||(Fn[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 R}var oe=g.getChildContext();for(var ve in oe)if(!(ve in $))throw new Error((Tn(w)||"Unknown")+'.getChildContext(): key "'+ve+'" is not defined in childContextTypes.');{var Ae=Tn(w)||"Unknown";Vu($,oe,"child context",Ae)}return ee({},R,oe)}}var Vo;Vo={};var Wc=null,Ho=null;function eo(g){g.context._currentValue=g.parentValue}function el(g){g.context._currentValue=g.value}function Ur(g,w){if(g!==w){eo(g);var R=g.parent,$=w.parent;if(R===null){if($!==null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.")}else{if($===null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.");Ur(R,$)}el(w)}}function ps(g){eo(g);var w=g.parent;w!==null&&ps(w)}function gs(g){var w=g.parent;w!==null&&gs(w),el(g)}function ms(g,w){eo(g);var R=g.parent;if(R===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");R.depth===w.depth?Ur(R,w):ms(R,w)}function vs(g,w){var R=w.parent;if(R===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");g.depth===R.depth?Ur(g,R):vs(g,R),el(w)}function tl(g){var w=Ho,R=g;w!==R&&(w===null?gs(R):R===null?ps(w):w.depth===R.depth?Ur(w,R):w.depth>R.depth?ms(w,R):vs(w,R),Ho=R)}function zc(g,w){var R;R=g._currentValue,g._currentValue=w,g._currentRenderer!==void 0&&g._currentRenderer!==null&&g._currentRenderer!==Vo&&i("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),g._currentRenderer=Vo;var $=Ho,X={parent:$,depth:$===null?0:$.depth+1,context:g,parentValue:R,value:w};return Ho=X,X}function Yc(g){var w=Ho;if(w===null)throw new Error("Tried to pop a Context at the root of the app. This is a bug in React.");w.context!==g&&i("The parent context is not the expected context. This is probably a bug in React.");{var R=w.parentValue;R===ar?w.context._currentValue=w.context._defaultValue:w.context._currentValue=R,g._currentRenderer!==void 0&&g._currentRenderer!==null&&g._currentRenderer!==Vo&&i("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),g._currentRenderer=Vo}return Ho=w.parent}function Vl(){return Ho}function nl(g){var w=g._currentValue;return w}function Sa(g){return g._reactInternals}function rl(g,w){g._reactInternals=w}var Hs={},z={},ys,Us,Wr,qt,Hl,Ta,il,xo,Ca;{ys=new Set,Us=new Set,Wr=new Set,il=new Set,qt=new Set,xo=new Set,Ca=new Set;var Ul=new Set;Ta=function(g,w){if(!(g===null||typeof g=="function")){var R=w+"_"+g;Ul.has(R)||(Ul.add(R),i("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",w,g))}},Hl=function(g,w){if(w===void 0){var R=Tn(g)||"Component";qt.has(R)||(qt.add(R),i("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",R))}}}function Wl(g,w){{var R=g.constructor,$=R&&Tn(R)||"ReactClass",X=$+"."+w;if(Hs[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.
|
|
117
|
-
|
|
118
|
-
Please check the code for the %s component.`,w,w,$),Hs[X]=!0}}var zl={isMounted:function(g){return!1},enqueueSetState:function(g,w,R){var $=Sa(g);$.queue===null?Wl(g,"setState"):($.queue.push(w),R!=null&&Ta(R,"setState"))},enqueueReplaceState:function(g,w,R){var $=Sa(g);$.replace=!0,$.queue=[w],R!=null&&Ta(R,"setState")},enqueueForceUpdate:function(g,w){var R=Sa(g);R.queue===null?Wl(g,"forceUpdate"):w!=null&&Ta(w,"setState")}};function Gc(g,w,R,$,X){var oe=R(X,$);Hl(w,oe);var ve=oe==null?$:ee({},$,oe);return ve}function So(g,w,R){var $=Nn,X=g.contextType;if("contextType"in g){var oe=X===null||X!==void 0&&X.$$typeof===je&&X._context===void 0;if(!oe&&!Ca.has(g)){Ca.add(g);var ve="";X===void 0?ve=" 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"?ve=" However, it is set to a "+typeof X+".":X.$$typeof===fe?ve=" Did you accidentally pass the Context.Provider instead?":X._context!==void 0?ve=" Did you accidentally pass the Context.Consumer instead?":ve=" 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",Tn(g)||"Component",ve)}}typeof X=="object"&&X!==null?$=nl(X):$=R;var Ae=new g(w,$);{if(typeof g.getDerivedStateFromProps=="function"&&(Ae.state===null||Ae.state===void 0)){var h=Tn(g)||"Component";ys.has(h)||(ys.add(h),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.",h,Ae.state===null?"null":"undefined",h))}if(typeof g.getDerivedStateFromProps=="function"||typeof Ae.getSnapshotBeforeUpdate=="function"){var b=null,P=null,M=null;if(typeof Ae.componentWillMount=="function"&&Ae.componentWillMount.__suppressDeprecationWarning!==!0?b="componentWillMount":typeof Ae.UNSAFE_componentWillMount=="function"&&(b="UNSAFE_componentWillMount"),typeof Ae.componentWillReceiveProps=="function"&&Ae.componentWillReceiveProps.__suppressDeprecationWarning!==!0?P="componentWillReceiveProps":typeof Ae.UNSAFE_componentWillReceiveProps=="function"&&(P="UNSAFE_componentWillReceiveProps"),typeof Ae.componentWillUpdate=="function"&&Ae.componentWillUpdate.__suppressDeprecationWarning!==!0?M="componentWillUpdate":typeof Ae.UNSAFE_componentWillUpdate=="function"&&(M="UNSAFE_componentWillUpdate"),b!==null||P!==null||M!==null){var W=Tn(g)||"Component",re=typeof g.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Wr.has(W)||(Wr.add(W),i(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
119
|
-
|
|
120
|
-
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
121
|
-
|
|
122
|
-
The above lifecycles should be removed. Learn more about this warning here:
|
|
123
|
-
https://reactjs.org/link/unsafe-component-lifecycles`,W,re,b!==null?`
|
|
124
|
-
`+b:"",P!==null?`
|
|
125
|
-
`+P:"",M!==null?`
|
|
126
|
-
`+M:""))}}}return Ae}function qc(g,w,R){{var $=Tn(w)||"Component",X=g.render;X||(w.prototype&&typeof w.prototype.render=="function"?i("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",$):i("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",$)),g.getInitialState&&!g.getInitialState.isReactClassApproved&&!g.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?",$),g.getDefaultProps&&!g.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.",$),g.propTypes&&i("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",$),g.contextType&&i("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",$),g.contextTypes&&i("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",$),w.contextType&&w.contextTypes&&!xo.has(w)&&(xo.add(w),i("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",$)),typeof g.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.",$),w.prototype&&w.prototype.isPureReactComponent&&typeof g.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.",Tn(w)||"A pure component"),typeof g.componentDidUnmount=="function"&&i("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",$),typeof g.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().",$),typeof g.componentWillRecieveProps=="function"&&i("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",$),typeof g.UNSAFE_componentWillRecieveProps=="function"&&i("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",$);var oe=g.props!==R;g.props!==void 0&&oe&&i("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",$,$),g.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.",$,$),typeof g.getSnapshotBeforeUpdate=="function"&&typeof g.componentDidUpdate!="function"&&!Us.has(w)&&(Us.add(w),i("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Tn(w))),typeof g.getDerivedStateFromProps=="function"&&i("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",$),typeof g.getDerivedStateFromError=="function"&&i("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",$),typeof w.getSnapshotBeforeUpdate=="function"&&i("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",$);var ve=g.state;ve&&(typeof ve!="object"||Di(ve))&&i("%s.state: must be set to an object or null",$),typeof g.getChildContext=="function"&&typeof w.childContextTypes!="object"&&i("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",$)}}function Wf(g,w){var R=w.state;if(typeof w.componentWillMount=="function"){if(w.componentWillMount.__suppressDeprecationWarning!==!0){var $=Tn(g)||"Unknown";z[$]||(r(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
127
|
-
|
|
128
|
-
* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.
|
|
129
|
-
|
|
130
|
-
Please update the following components: %s`,$),z[$]=!0)}w.componentWillMount()}typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount(),R!==w.state&&(i("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Tn(g)||"Component"),zl.enqueueReplaceState(w,w.state,null))}function zf(g,w,R,$){if(g.queue!==null&&g.queue.length>0){var X=g.queue,oe=g.replace;if(g.queue=null,g.replace=!1,oe&&X.length===1)w.state=X[0];else{for(var ve=oe?X[0]:w.state,Ae=!0,h=oe?1:0;h<X.length;h++){var b=X[h],P=typeof b=="function"?b.call(w,ve,R,$):b;P!=null&&(Ae?(Ae=!1,ve=ee({},ve,P)):ee(ve,P))}w.state=ve}}else g.queue=null}function Xc(g,w,R,$){qc(g,w,R);var X=g.state!==void 0?g.state:null;g.updater=zl,g.props=R,g.state=X;var oe={queue:[],replace:!1};rl(g,oe);var ve=w.contextType;if(typeof ve=="object"&&ve!==null?g.context=nl(ve):g.context=$,g.state===R){var Ae=Tn(w)||"Component";il.has(Ae)||(il.add(Ae),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.",Ae))}var h=w.getDerivedStateFromProps;typeof h=="function"&&(g.state=Gc(g,w,h,X,R)),typeof w.getDerivedStateFromProps!="function"&&typeof g.getSnapshotBeforeUpdate!="function"&&(typeof g.UNSAFE_componentWillMount=="function"||typeof g.componentWillMount=="function")&&(Wf(w,g),zf(oe,g,R,$))}var Yf={id:1,overflow:""};function Uo(g){var w=g.overflow,R=g.id,$=R&~Gf(R);return $.toString(32)+w}function Yl(g,w,R){var $=g.id,X=g.overflow,oe=Gl($)-1,ve=$&~(1<<oe),Ae=R+1,h=Gl(w)+oe;if(h>30){var b=oe-oe%5,P=(1<<b)-1,M=(ve&P).toString(32),W=ve>>b,re=oe-b,de=Gl(w)+re,Re=Ae<<re,We=Re|W,ht=M+X;return{id:1<<de|We,overflow:ht}}else{var wt=Ae<<oe,It=wt|ve,yn=X;return{id:1<<h|It,overflow:yn}}}function Gl(g){return 32-Wu(g)}function Gf(g){return 1<<Gl(g)-1}var Wu=Math.clz32?Math.clz32:qf,ql=Math.log,Ws=Math.LN2;function qf(g){var w=g>>>0;return w===0?32:31-(ql(w)/Ws|0)|0}function Xf(g,w){return g===w&&(g!==0||1/g===1/w)||g!==g&&w!==w}var to=typeof Object.is=="function"?Object.is:Xf,Wo=null,zu=null,Xl=null,tn=null,zs=!1,bs=!1,an=0,Ri=null,Ys=0,Ea=25,Bn=!1,Ai;function Gs(){if(Wo===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:
|
|
131
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
132
|
-
2. You might be breaking the Rules of Hooks
|
|
133
|
-
3. You might have more than one copy of React in the same app
|
|
134
|
-
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`);return Bn&&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"),Wo}function no(g,w){if(w===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.",Ai),!1;g.length!==w.length&&i(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
135
|
-
|
|
136
|
-
Previous: %s
|
|
137
|
-
Incoming: %s`,Ai,"["+g.join(", ")+"]","["+w.join(", ")+"]");for(var R=0;R<w.length&&R<g.length;R++)if(!to(g[R],w[R]))return!1;return!0}function qs(){if(Ys>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function hr(){return tn===null?Xl===null?(zs=!1,Xl=tn=qs()):(zs=!0,tn=Xl):tn.next===null?(zs=!1,tn=tn.next=qs()):(zs=!0,tn=tn.next),tn}function Yu(g,w){Wo=w,zu=g,Bn=!1,an=0}function ws(g,w,R,$){for(;bs;)bs=!1,an=0,Ys+=1,tn=null,R=g(w,$);return Gu(),R}function zr(){var g=an!==0;return g}function Gu(){Bn=!1,Wo=null,zu=null,bs=!1,Xl=null,Ys=0,Ri=null,tn=null}function Kc(g){return Bn&&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()."),nl(g)}function qu(g){return Ai="useContext",Gs(),nl(g)}function zo(g,w){return typeof w=="function"?w(g):w}function xs(g){return Ai="useState",Xu(zo,g)}function Xu(g,w,R){if(g!==zo&&(Ai="useReducer"),Wo=Gs(),tn=hr(),zs){var $=tn.queue,X=$.dispatch;if(Ri!==null){var oe=Ri.get($);if(oe!==void 0){Ri.delete($);var ve=tn.memoizedState,Ae=oe;do{var h=Ae.action;Bn=!0,ve=g(ve,h),Bn=!1,Ae=Ae.next}while(Ae!==null);return tn.memoizedState=ve,[ve,X]}}return[tn.memoizedState,X]}else{Bn=!0;var b;g===zo?b=typeof w=="function"?w():w:b=R!==void 0?R(w):w,Bn=!1,tn.memoizedState=b;var P=tn.queue={last:null,dispatch:null},M=P.dispatch=Ku.bind(null,Wo,P);return[tn.memoizedState,M]}}function Kl(g,w){Wo=Gs(),tn=hr();var R=w===void 0?null:w;if(tn!==null){var $=tn.memoizedState;if($!==null&&R!==null){var X=$[1];if(no(R,X))return $[0]}}Bn=!0;var oe=g();return Bn=!1,tn.memoizedState=[oe,R],oe}function Zl(g){Wo=Gs(),tn=hr();var w=tn.memoizedState;if(w===null){var R={current:g};return Object.seal(R),tn.memoizedState=R,R}else return w}function Zc(g,w){Ai="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 Ku(g,w,R){if(Ys>=Ea)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(g===Wo){bs=!0;var $={action:R,next:null};Ri===null&&(Ri=new Map);var X=Ri.get(w);if(X===void 0)Ri.set(w,$);else{for(var oe=X;oe.next!==null;)oe=oe.next;oe.next=$}}}function pr(g,w){return Kl(function(){return g},w)}function Zu(g,w,R){return Gs(),w(g._source)}function Jc(g,w,R){if(R===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return R()}function To(g){return Gs(),g}function Ju(){throw new Error("startTransition cannot be called during server rendering.")}function Jl(){return Gs(),[!1,Ju]}function Xs(){var g=zu,w=Uo(g.treeContext),R=sl;if(R===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var $=an++;return Tr(R,w,$)}function ol(){}var Er={readContext:Kc,useContext:qu,useMemo:Kl,useReducer:Xu,useRef:Zl,useState:xs,useInsertionEffect:ol,useLayoutEffect:Zc,useCallback:pr,useImperativeHandle:ol,useEffect:ol,useDebugValue:ol,useDeferredValue:To,useTransition:Jl,useId:Xs,useMutableSource:Zu,useSyncExternalStore:Jc},sl=null;function al(g){sl=g}function Qc(g){try{var w="",R=g;do{switch(R.tag){case 0:w+=Bo(R.type,null,null);break;case 1:w+=Ja(R.type,null,null);break;case 2:w+=$l(R.type,null,null);break}R=R.parent}while(R);return w}catch($){return`
|
|
138
|
-
Error generating stack: `+$.message+`
|
|
139
|
-
`+$.stack}}var ll=n.ReactCurrentDispatcher,ka=n.ReactDebugCurrentFrame,Qu=0,Ii=1,ul=2,Ql=3,Ks=4,Da=0,ec=1,Zs=2,tc=12800;function nc(g){return console.error(g),null}function Co(){}function Kf(g,w,R,$,X,oe,ve,Ae,h){var b=[],P=new Set,M={destination:null,responseState:w,progressiveChunkSize:$===void 0?tc:$,status:Da,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:P,pingedTasks:b,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:X===void 0?nc:X,onAllReady:oe===void 0?Co:oe,onShellReady:ve===void 0?Co:ve,onShellError:Ae===void 0?Co:Ae,onFatalError:h===void 0?Co:h},W=eu(M,0,null,R,!1,!1);W.parentFlushed=!0;var re=cl(M,g,null,W,P,Nn,Wc,Yf);return b.push(re),M}function Zf(g,w){var R=g.pingedTasks;R.push(w),R.length===1&&a(function(){return ml(g)})}function Pa(g,w){return{id:Gi,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:w,errorDigest:null}}function cl(g,w,R,$,X,oe,ve,Ae){g.allPendingTasks++,R===null?g.pendingRootTasks++:R.pendingTasks++;var h={node:w,ping:function(){return Zf(g,h)},blockedBoundary:R,blockedSegment:$,abortSet:X,legacyContext:oe,context:ve,treeContext:Ae};return h.componentStack=null,X.add(h),h}function eu(g,w,R,$,X,oe){return{status:Qu,id:-1,index:w,parentFlushed:!1,chunks:[],children:[],formatContext:$,boundary:R,lastPushedText:X,textEmbedded:oe}}var ro=null;function Oa(){return ro===null||ro.componentStack===null?"":Qc(ro.componentStack)}function Yo(g,w){g.componentStack={tag:0,parent:g.componentStack,type:w}}function io(g,w){g.componentStack={tag:1,parent:g.componentStack,type:w}}function _a(g,w){g.componentStack={tag:2,parent:g.componentStack,type:w}}function Mi(g){g.componentStack===null?i("Unexpectedly popped too many stack frames. This is a bug in React."):g.componentStack=g.componentStack.parent}var Js=null;function tu(g,w){{var R;typeof w=="string"?R=w:w&&typeof w.message=="string"?R=w.message:R=String(w);var $=Js||Oa();Js=null,g.errorMessage=R,g.errorComponentStack=$}}function Li(g,w){var R=g.onError(w);if(R!=null&&typeof R!="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 R+'" instead');return R}function Go(g,w){var R=g.onShellError;R(w);var $=g.onFatalError;$(w),g.destination!==null?(g.status=Zs,G(g.destination,w)):(g.status=ec,g.fatalError=w)}function rc(g,w,R){Yo(w,"Suspense");var $=w.blockedBoundary,X=w.blockedSegment,oe=R.fallback,ve=R.children,Ae=new Set,h=Pa(g,Ae),b=X.chunks.length,P=eu(g,b,h,X.formatContext,!1,!1);X.children.push(P),X.lastPushedText=!1;var M=eu(g,0,null,X.formatContext,!1,!1);M.parentFlushed=!0,w.blockedBoundary=h,w.blockedSegment=M;try{if(Eo(g,w,ve),Fr(M.chunks,g.responseState,M.lastPushedText,M.textEmbedded),M.status=Ii,gl(h,M),h.pendingTasks===0){Mi(w);return}}catch(re){M.status=Ks,h.forceClientRender=!0,h.errorDigest=Li(g,re),tu(h,re)}finally{w.blockedBoundary=$,w.blockedSegment=X}var W=cl(g,oe,$,P,Ae,w.legacyContext,w.context,w.treeContext);W.componentStack=w.componentStack,g.pingedTasks.push(W),Mi(w)}function Qs(g,w,R,$){Yo(w,R);var X=w.blockedSegment,oe=ls(X.chunks,R,$,g.responseState,X.formatContext);X.lastPushedText=!1;var ve=X.formatContext;X.formatContext=ni(ve,R,$),Eo(g,w,oe),X.formatContext=ve,jo(X.chunks,R),X.lastPushedText=!1,Mi(w)}function fl(g){return g.prototype&&g.prototype.isReactComponent}function nu(g,w,R,$,X){var oe={};Yu(w,oe);var ve=R($,X);return ws(R,$,ve,X)}function ef(g,w,R,$,X){var oe=R.render();R.props!==X&&(Ra||i("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Tn($)||"a component"),Ra=!0);{var ve=$.childContextTypes;if(ve!=null){var Ae=w.legacyContext,h=Uu(R,$,Ae,ve);w.legacyContext=h,Yr(g,w,oe),w.legacyContext=Ae;return}}Yr(g,w,oe)}function ic(g,w,R,$){_a(w,R);var X=Hu(R,w.legacyContext),oe=So(R,$,X);Xc(oe,R,$,X),ef(g,w,oe,R,$),Mi(w)}var Gt={},dl={},tf={},ea={},Ra=!1,oc={},sc=!1,oi=!1,ac=!1;function hl(g,w,R,$){var X;if(X=Hu(R,w.legacyContext),io(w,R),R.prototype&&typeof R.prototype.render=="function"){var oe=Tn(R)||"Unknown";Gt[oe]||(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.",oe,oe),Gt[oe]=!0)}var ve=nu(g,w,R,$,X),Ae=zr();if(typeof ve=="object"&&ve!==null&&typeof ve.render=="function"&&ve.$$typeof===void 0){var h=Tn(R)||"Unknown";dl[h]||(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.",h,h,h),dl[h]=!0)}if(typeof ve=="object"&&ve!==null&&typeof ve.render=="function"&&ve.$$typeof===void 0){{var b=Tn(R)||"Unknown";dl[b]||(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.",b,b,b),dl[b]=!0)}Xc(ve,R,$,X),ef(g,w,ve,R,$)}else if(ru(R),Ae){var P=w.treeContext,M=1,W=0;w.treeContext=Yl(P,M,W);try{Yr(g,w,ve)}finally{w.treeContext=P}}else Yr(g,w,ve);Mi(w)}function ru(g){{if(g&&g.childContextTypes&&i("%s(...): childContextTypes cannot be defined on a function component.",g.displayName||g.name||"Component"),g.defaultProps!==void 0){var w=Tn(g)||"Unknown";oc[w]||(i("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",w),oc[w]=!0)}if(typeof g.getDerivedStateFromProps=="function"){var R=Tn(g)||"Unknown";ea[R]||(i("%s: Function components do not support getDerivedStateFromProps.",R),ea[R]=!0)}if(typeof g.contextType=="object"&&g.contextType!==null){var $=Tn(g)||"Unknown";tf[$]||(i("%s: Function components do not support contextType.",$),tf[$]=!0)}}}function iu(g,w){if(g&&g.defaultProps){var R=ee({},w),$=g.defaultProps;for(var X in $)R[X]===void 0&&(R[X]=$[X]);return R}return w}function nf(g,w,R,$,X){io(w,R.render);var oe=nu(g,w,R.render,$,X),ve=zr();if(ve){var Ae=w.treeContext,h=1,b=0;w.treeContext=Yl(Ae,h,b);try{Yr(g,w,oe)}finally{w.treeContext=Ae}}else Yr(g,w,oe);Mi(w)}function wi(g,w,R,$,X){var oe=R.type,ve=iu(oe,$);Aa(g,w,oe,ve,X)}function qo(g,w,R,$){R._context===void 0?R!==R.Consumer&&(ac||(ac=!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?"))):R=R._context;var X=$.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 oe=nl(R),ve=X(oe);Yr(g,w,ve)}function lc(g,w,R,$){var X=R._context,oe=$.value,ve=$.children,Ae;Ae=w.context,w.context=zc(X,oe),Yr(g,w,ve),w.context=Yc(X),Ae!==w.context&&i("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function rf(g,w,R,$,X){Yo(w,"Lazy");var oe=R._payload,ve=R._init,Ae=ve(oe),h=iu(Ae,$);Aa(g,w,Ae,h,X),Mi(w)}function Aa(g,w,R,$,X){if(typeof R=="function")if(fl(R)){ic(g,w,R,$);return}else{hl(g,w,R,$);return}if(typeof R=="string"){Qs(g,w,R,$);return}switch(R){case Ln:case Yt:case J:case he:case ke:{Yr(g,w,$.children);return}case ft:{Yo(w,"SuspenseList"),Yr(g,w,$.children),Mi(w);return}case Et:throw new Error("ReactDOMServer does not yet support scope components.");case ct:{rc(g,w,$);return}}if(typeof R=="object"&&R!==null)switch(R.$$typeof){case Ve:{nf(g,w,R,$,X);return}case at:{wi(g,w,R,$,X);return}case fe:{lc(g,w,R,$);return}case je:{qo(g,w,R,$);return}case Rt:{rf(g,w,R,$);return}}var oe="";throw(R===void 0||typeof R=="object"&&R!==null&&Object.keys(R).length===0)&&(oe+=" 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: "+(R==null?R:typeof R)+"."+oe))}function of(g,w){typeof Symbol=="function"&&g[Symbol.toStringTag]==="Generator"&&(sc||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."),sc=!0),g.entries===w&&(oi||i("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),oi=!0)}function Yr(g,w,R){try{return ou(g,w,R)}catch($){throw typeof $=="object"&&$!==null&&typeof $.then=="function"||(Js=Js!==null?Js:Oa()),$}}function ou(g,w,R){if(w.node=R,typeof R=="object"&&R!==null){switch(R.$$typeof){case ge:{var $=R,X=$.type,oe=$.props,ve=$.ref;Aa(g,w,X,oe,ve);return}case Oe: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 Rt:{var Ae=R,h=Ae._payload,b=Ae._init,P;try{P=b(h)}catch(wt){throw typeof wt=="object"&&wt!==null&&typeof wt.then=="function"&&Yo(w,"Lazy"),wt}Yr(g,w,P);return}}if(Di(R)){su(g,w,R);return}var M=Ji(R);if(M){of(R,M);var W=M.call(R);if(W){var re=W.next();if(!re.done){var de=[];do de.push(re.value),re=W.next();while(!re.done);su(g,w,de);return}return}}var Re=Object.prototype.toString.call(R);throw new Error("Objects are not valid as a React child (found: "+(Re==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":Re)+"). If you meant to render a collection of children, use an array instead.")}if(typeof R=="string"){var We=w.blockedSegment;We.lastPushedText=qi(w.blockedSegment.chunks,R,g.responseState,We.lastPushedText);return}if(typeof R=="number"){var ht=w.blockedSegment;ht.lastPushedText=qi(w.blockedSegment.chunks,""+R,g.responseState,ht.lastPushedText);return}typeof R=="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 su(g,w,R){for(var $=R.length,X=0;X<$;X++){var oe=w.treeContext;w.treeContext=Yl(oe,$,X);try{Eo(g,w,R[X])}finally{w.treeContext=oe}}}function Gr(g,w,R){var $=w.blockedSegment,X=$.chunks.length,oe=eu(g,X,null,$.formatContext,$.lastPushedText,!0);$.children.push(oe),$.lastPushedText=!1;var ve=cl(g,w.node,w.blockedBoundary,oe,w.abortSet,w.legacyContext,w.context,w.treeContext);w.componentStack!==null&&(ve.componentStack=w.componentStack.parent);var Ae=ve.ping;R.then(Ae,Ae)}function Eo(g,w,R){var $=w.blockedSegment.formatContext,X=w.legacyContext,oe=w.context,ve=null;ve=w.componentStack;try{return Yr(g,w,R)}catch(Ae){if(Gu(),typeof Ae=="object"&&Ae!==null&&typeof Ae.then=="function"){Gr(g,w,Ae),w.blockedSegment.formatContext=$,w.legacyContext=X,w.context=oe,tl(oe),w.componentStack=ve;return}else throw w.blockedSegment.formatContext=$,w.legacyContext=X,w.context=oe,tl(oe),w.componentStack=ve,Ae}}function sf(g,w,R,$){var X=Li(g,$);if(w===null?Go(g,$):(w.pendingTasks--,w.forceClientRender||(w.forceClientRender=!0,w.errorDigest=X,tu(w,$),w.parentFlushed&&g.clientRenderedBoundaries.push(w))),g.allPendingTasks--,g.allPendingTasks===0){var oe=g.onAllReady;oe()}}function Ss(g){var w=this,R=g.blockedBoundary,$=g.blockedSegment;$.status=Ql,au(w,R,$)}function pl(g,w,R){var $=g.blockedBoundary,X=g.blockedSegment;if(X.status=Ql,$===null)w.allPendingTasks--,w.status!==Zs&&(w.status=Zs,w.destination!==null&&A(w.destination));else{if($.pendingTasks--,!$.forceClientRender){$.forceClientRender=!0;var oe=R===void 0?new Error("The render was aborted by the server without a reason."):R;$.errorDigest=w.onError(oe);{var ve="The server did not finish this Suspense boundary: ";oe&&typeof oe.message=="string"?oe=ve+oe.message:oe=ve+String(oe);var Ae=ro;ro=g;try{tu($,oe)}finally{ro=Ae}}$.parentFlushed&&w.clientRenderedBoundaries.push($)}if($.fallbackAbortableTasks.forEach(function(b){return pl(b,w,R)}),$.fallbackAbortableTasks.clear(),w.allPendingTasks--,w.allPendingTasks===0){var h=w.onAllReady;h()}}}function gl(g,w){if(w.chunks.length===0&&w.children.length===1&&w.children[0].boundary===null){var R=w.children[0];R.id=w.id,R.parentFlushed=!0,R.status===Ii&&gl(g,R)}else{var $=g.completedSegments;$.push(w)}}function au(g,w,R){if(w===null){if(R.parentFlushed){if(g.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");g.completedRootSegment=R}if(g.pendingRootTasks--,g.pendingRootTasks===0){g.onShellError=Co;var $=g.onShellReady;$()}}else if(w.pendingTasks--,!w.forceClientRender){if(w.pendingTasks===0)R.parentFlushed&&R.status===Ii&&gl(w,R),w.parentFlushed&&g.completedBoundaries.push(w),w.fallbackAbortableTasks.forEach(Ss,g),w.fallbackAbortableTasks.clear();else if(R.parentFlushed&&R.status===Ii){gl(w,R);var X=w.completedSegments;X.length===1&&w.parentFlushed&&g.partialBoundaries.push(w)}}if(g.allPendingTasks--,g.allPendingTasks===0){var oe=g.onAllReady;oe()}}function af(g,w){var R=w.blockedSegment;if(R.status===Qu){tl(w.context);var $=null;$=ro,ro=w;try{Yr(g,w,w.node),Fr(R.chunks,g.responseState,R.lastPushedText,R.textEmbedded),w.abortSet.delete(w),R.status=Ii,au(g,w.blockedBoundary,R)}catch(oe){if(Gu(),typeof oe=="object"&&oe!==null&&typeof oe.then=="function"){var X=w.ping;oe.then(X,X)}else w.abortSet.delete(w),R.status=Ks,sf(g,w.blockedBoundary,R,oe)}finally{ro=$}}}function ml(g){if(g.status!==Zs){var w=Vl(),R=ll.current;ll.current=Er;var $;$=ka.getCurrentStack,ka.getCurrentStack=Oa;var X=sl;al(g.responseState);try{var oe=g.pingedTasks,ve;for(ve=0;ve<oe.length;ve++){var Ae=oe[ve];af(g,Ae)}oe.splice(0,ve),g.destination!==null&&xi(g,g.destination)}catch(h){Li(g,h),Go(g,h)}finally{al(X),ll.current=R,ka.getCurrentStack=$,R===Er&&tl(w)}}}function vl(g,w,R){switch(R.parentFlushed=!0,R.status){case Qu:{var $=R.id=g.nextSegmentId++;return R.lastPushedText=!1,R.textEmbedded=!1,Qn(w,g.responseState,$)}case Ii:{R.status=ul;for(var X=!0,oe=R.chunks,ve=0,Ae=R.children,h=0;h<Ae.length;h++){for(var b=Ae[h];ve<b.index;ve++)p(w,oe[ve]);X=yl(g,w,b)}for(;ve<oe.length-1;ve++)p(w,oe[ve]);return ve<oe.length&&(X=S(w,oe[ve])),X}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function yl(g,w,R){var $=R.boundary;if($===null)return vl(g,w,R);if($.parentFlushed=!0,$.forceClientRender)return He(w,g.responseState,$.errorDigest,$.errorMessage,$.errorComponentStack),vl(g,w,R),_t(w,g.responseState);if($.pendingTasks>0){$.rootSegmentID=g.nextSegmentId++,$.completedSegments.length>0&&g.partialBoundaries.push($);var X=$.id=On(g.responseState);return Ee(w,g.responseState,X),vl(g,w,R),Pt(w,g.responseState)}else{if($.byteSize>g.progressiveChunkSize)return $.rootSegmentID=g.nextSegmentId++,g.completedBoundaries.push($),Ee(w,g.responseState,$.id),vl(g,w,R),Pt(w,g.responseState);Fe(w,g.responseState);var oe=$.completedSegments;if(oe.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var ve=oe[0];return yl(g,w,ve),ut(w,g.responseState)}}function uc(g,w,R){return Xa(w,g.responseState,R.id,R.errorDigest,R.errorMessage,R.errorComponentStack)}function bl(g,w,R){return Dt(w,g.responseState,R.formatContext,R.id),yl(g,w,R),Tt(w,R.formatContext)}function Ia(g,w,R){for(var $=R.completedSegments,X=0;X<$.length;X++){var oe=$[X];kr(g,w,R,oe)}return $.length=0,Zi(w,g.responseState,R.id,R.rootSegmentID)}function lf(g,w,R){for(var $=R.completedSegments,X=0;X<$.length;X++){var oe=$[X];if(!kr(g,w,R,oe))return X++,$.splice(0,X),!1}return $.splice(0,X),!0}function kr(g,w,R,$){if($.status===ul)return!0;var X=$.id;if(X===-1){var oe=$.id=R.rootSegmentID;if(oe===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return bl(g,w,$)}else return bl(g,w,$),Ga(w,g.responseState,X)}function xi(g,w){y();try{var R=g.completedRootSegment;R!==null&&g.pendingRootTasks===0&&(yl(g,w,R),g.completedRootSegment=null,yi(w,g.responseState));var $=g.clientRenderedBoundaries,X;for(X=0;X<$.length;X++){var oe=$[X];uc(g,w,oe)}$.splice(0,X);var ve=g.completedBoundaries;for(X=0;X<ve.length;X++){var Ae=ve[X];Ia(g,w,Ae)}ve.splice(0,X),C(w),y(w);var h=g.partialBoundaries;for(X=0;X<h.length;X++){var b=h[X];if(!lf(g,w,b)){g.destination=null,X++,h.splice(0,X);return}}h.splice(0,X);var P=g.completedBoundaries;for(X=0;X<P.length;X++){var M=P[X];Ia(g,w,M)}P.splice(0,X)}finally{C(w),g.allPendingTasks===0&&g.pingedTasks.length===0&&g.clientRenderedBoundaries.length===0&&g.completedBoundaries.length===0&&(g.abortableTasks.size!==0&&i("There was still abortable task at the root when we closed. This is a bug in React."),A(w))}}function Jf(g){a(function(){return ml(g)})}function uf(g,w){if(g.status===ec){g.status=Zs,G(w,g.fatalError);return}if(g.status!==Zs&&g.destination===null){g.destination=w;try{xi(g,w)}catch(R){Li(g,R),Go(g,R)}}}function ta(g,w){try{var R=g.abortableTasks;R.forEach(function($){return pl($,g,w)}),R.clear(),g.destination!==null&&xi(g,g.destination)}catch($){Li(g,$),Go(g,$)}}function Ma(g,w){return new Promise(function(R,$){var X,oe,ve=new Promise(function(W,re){oe=W,X=re});function Ae(){var W=new ReadableStream({type:"bytes",pull:function(re){uf(b,re)},cancel:function(re){ta(b)}},{highWaterMark:0});W.allReady=ve,R(W)}function h(W){ve.catch(function(){}),$(W)}var b=Kf(g,Ir(w?w.identifierPrefix:void 0,w?w.nonce:void 0,w?w.bootstrapScriptContent:void 0,w?w.bootstrapScripts:void 0,w?w.bootstrapModules:void 0),ti(w?w.namespaceURI:void 0),w?w.progressiveChunkSize:void 0,w?w.onError:void 0,oe,Ae,h,X);if(w&&w.signal){var P=w.signal,M=function(){ta(b,P.reason),P.removeEventListener("abort",M)};P.addEventListener("abort",M)}Jf(b)})}Nh.renderToReadableStream=Ma,Nh.version=e}()),Nh}var Lc,Ov;process.env.NODE_ENV==="production"?(Lc=w4(),Ov=x4()):(Lc=S4(),Ov=T4());Lc.version;var C4=Lc.renderToString;Lc.renderToStaticMarkup;Lc.renderToNodeStream;Lc.renderToStaticNodeStream;Ov.renderToReadableStream;var E4=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ED(t,e){return t(e={exports:{}},e.exports),e.exports}var k4=ED(function(t){(function(e){var n=function(B,_,G){if(!c(_)||y(_)||p(_)||S(_)||u(_))return _;var q,se=0,Q=0;if(d(_))for(q=[],Q=_.length;se<Q;se++)q.push(n(B,_[se],G));else for(var ye in q={},_)Object.prototype.hasOwnProperty.call(_,ye)&&(q[B(ye,G)]=n(B,_[ye],G));return q},r=function(B){return C(B)?B:(B=B.replace(/[\-_\s]+(.)?/g,function(_,G){return G?G.toUpperCase():""})).substr(0,1).toLowerCase()+B.substr(1)},i=function(B){var _=r(B);return _.substr(0,1).toUpperCase()+_.substr(1)},o=function(B,_){return function(G,q){var se=(q=q||{}).separator||"_",Q=q.split||/(?=[A-Z])/;return G.split(Q).join(se)}(B,_).toLowerCase()},a=Object.prototype.toString,u=function(B){return typeof B=="function"},c=function(B){return B===Object(B)},d=function(B){return a.call(B)=="[object Array]"},y=function(B){return a.call(B)=="[object Date]"},p=function(B){return a.call(B)=="[object RegExp]"},S=function(B){return a.call(B)=="[object Boolean]"},C=function(B){return(B-=0)==B},A=function(B,_){var G=_&&"process"in _?_.process:_;return typeof G!="function"?B:function(q,se){return G(q,B,se)}},I={camelize:r,decamelize:o,pascalize:i,depascalize:o,camelizeKeys:function(B,_){return n(A(r,_),B)},decamelizeKeys:function(B,_){return n(A(o,_),B,_)},pascalizeKeys:function(B,_){return n(A(i,_),B)},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,u=t[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(c){i=!0,o=c}finally{try{r||u.return==null||u.return()}finally{if(i)throw o}}return n}},v1=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 v1(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)?v1(t,e):void 0}},_4=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
140
|
-
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()},kD=ED(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},DD=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=Z.createContext(null);function PD(t){var e=t.children,n=e===void 0?"":e,r=DD(t,["children"]);return typeof n!="string"&&(n=C4(n)),Z.createElement("template",kD({},r,{dangerouslySetInnerHTML:{__html:n}}))}function OD(t){var e=t.root,n=t.children;return jv.createPortal(n===void 0?null:n,e)}function M4(t){var e=Z.forwardRef(function(n,r){var i,o,a=n.mode,u=a===void 0?"open":a,c=n.delegatesFocus,d=c!==void 0&&c,y=n.styleSheets,p=y===void 0?[]:y,S=n.ssr,C=S!==void 0&&S,A=n.children,I=DD(n,["mode","delegatesFocus","styleSheets","ssr","children"]),B=(o=Z.useRef((i=r)&&i.current),Z.useEffect(function(){i&&(i.current=o.current)},[i]),o),_=Z.useState(null),G=R4(_,2),q=G[0],se=G[1],Q="node_".concat(u).concat(d);return Z.useLayoutEffect(function(){if(B.current)try{if(typeof r=="function"&&r(B.current),C){var ye=B.current.shadowRoot;return void se(ye)}var x=B.current.attachShadow({mode:u,delegatesFocus:d});p.length>0&&(x.adoptedStyleSheets=p),se(x)}catch(ae){(function(ce){var Be=ce.error,qe=ce.styleSheets,Ze=ce.root;switch(Be.name){case"NotSupportedError":qe.length>0&&(Ze.adoptedStyleSheets=qe);break;default:throw Be}})({error:ae,styleSheets:p,root:q})}},[r,B,p]),Z.createElement(Z.Fragment,null,Z.createElement(t.tag,kD({key:Q,ref:B},I),(q||C)&&Z.createElement(I4.Provider,{value:q},C?Z.createElement(PD,{shadowroot:u,shadowrootmode:u},t.render({root:q,ssr:C,children:A})):Z.createElement(OD,{root:q},t.render({root:q,ssr:C,children:A})))))});return e.propTypes={mode:As.oneOf(["open","closed"]),delegatesFocus:As.bool,styleSheets:As.arrayOf(As.instanceOf(globalThis.CSSStyleSheet)),ssr:As.bool,children:As.node},e}PD.propTypes={children:As.oneOfType([As.string,As.node])},OD.propTypes={root:As.object.isRequired,children:As.node};var Sm=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 Sm.has(a)||Sm.set(a,M4({tag:o,render:n})),Sm.get(a)}})}var _D=L4();const F4=`.app,.treeRoot{height:100%}.draggingSource{opacity:.3}.placeholderContainer{position:relative}.dropTarget{background-color:#8d878711}
|
|
141
|
-
`,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}
|
|
142
|
-
`;function j4(t){const e=new CustomEvent("updateFavoriteMenu",{detail:{menuItem:t}});window.dispatchEvent(e)}function B4(t){const e=Cp.useLocation(),[n,r]=Z.useState([]),[i,o]=Z.useState(window.location.href);Z.useEffect(()=>{o(window.location.href)},[e]);const a=S=>`${S}`;function u(S,C){for(const A of S){if(A.id===C)return A;if(A.children){const I=u(A.children,C);if(I)return I}}return null}function c(S,C){const A=u(n,S);A?(A.isFavorite=C,j4(A),rb(S,C)):console.error(`Item with id ${S} not found`)}const d=S=>{console.log("Favorite menus changed",S),r(S.detail.favoriteMenus||[])};Z.useEffect(()=>(window.addEventListener("favoriteMenusChange",d),()=>{window.removeEventListener("favoriteMenusChange",d)}),[]),console.log("favoriteItems",n);function y(S,C){return!C||n.indexOf(C)===-1?1:y(C,n.find(I=>I.id===C.parentKey))+1}const p=(S,C,A)=>{const I=B=>A.some(_=>_.id===B);return $e.jsx(CD,{isActive:I,replacePath:t.replacePath,ssr:t.ssr,brandColors:t.brandColors,baseUrl:t.baseUrl,item:S,level:C,onSetFavoriteSuccess:c})};return $e.jsx($e.Fragment,{children:n.length?$e.jsx("div",{className:a("favorite-menu"),children:$e.jsx("div",{className:a("wrap-section favorite-menu__menu"),style:{flex:1,overflow:"auto",width:"100%",overflowY:"hidden",display:"flex",alignItems:"center",scrollbarWidth:"thin"},children:n.map(S=>$e.jsx("div",{children:p(S,y(),[])},S.id))})}):""})}function $4(t=32){const[e,n]=Z.useState(!0),[r,i]=Z.useState(0),o=()=>{const a=window.scrollY;a>r&&a>t?n(!1):a<r&&n(!0),i(a)};return Z.useEffect(()=>(window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)),[r]),{isFavoriteBarVisible:e}}function V4(t){const{isFavoriteBarVisible:e}=$4();return $e.jsxs($e.Fragment,{children:[$e.jsx("style",{children:N4}),$e.jsx("div",{className:`favorite-bar ${e?"favorite-bar--visible":"favorite-bar--hidden"}`,children:$e.jsx(_D.div,{children:$e.jsx(Uv,{styles:[OT,b4,F4],children:$e.jsx(B4,{...t})})})})]})}function rb(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 RD({...t}){var Ce,_e,Xe;const e=t.item,n=t.level||0,r=!!((Ce=t.item.children)!=null&&Ce.length),{isActive:i,isCollapsed:o}=t,a=`level-${n}`,u=o?"collapsed":"expanded",c=i(e.id)?"active":"",d=r?"parent":"child",y=t.params.isOpen?"isOpen":"isClose",p=(Ge,tt=a)=>`${Ge} ${tt} ${u} ${c} ${d} ${y}`,[S,C]=Z.useState(!1),[A,I]=Z.useState(e.isFavorite||!1);Z.useEffect(()=>{I(!!t.item.isFavorite)},[t.item.isFavorite]);const B=Z.useRef(),_=Z.useRef();_!=null&&_.current&&((_e=_==null?void 0:_.current)==null?void 0:_e.scrollWidth)>((Xe=_==null?void 0:_.current)==null?void 0:Xe.clientWidth);const G=window.location.origin,q=e.path&&e.path.includes("http")?new URL(e.path):{origin:"",pathname:""},se=window.location.pathname.split("/")[1],Q=q.pathname.split("/")[1],ye=t.ssr||!G.includes("local")&&G!==q.origin||Q!==se,x=r?"div":ye?"a":Cp.Link,ae=e.path||"#",ce=n+1,Be=r&&o&&S,qe=o||n===0?void 0:`${n+.25}rem`,Ze=()=>{C(!0)},ot=()=>{C(!1)},it="/global-menu-config/api/v1/menu-items/user/set-favorite",me=e.serviceKey==="mn_poms";t.params.depth*20,t.params.depth,mH(e.id,t.params.isOpen,t.params.onToggle);const Le=me||o&&n===0?e.name==="POMs"?"Parking Operations Management":e.description||e.name:null,Ye=Object.entries(t.brandColors||{}).reduce((Ge,[tt,et])=>(et&&(Ge[`--${tt}`]=et),Ge),{}),st=G!==q.origin?"_blank":"_self";return $e.jsxs("div",{ref:B,className:p("menu-item__wrapper tree-node"),style:{borderRadius:"8px",transition:"all 0.3s",...Ye},onMouseOver:Ze,onMouseOut:ot,onDragStart:Ge=>{o&&n>1&&Ge.preventDefault()},children:[$e.jsx(la.Tooltip,{placement:"top",title:Le,disableInteractive:!0,children:$e.jsxs(x,{target:st,to:ae,href:ae,draggable:"true",className:p("menu-item__link"),style:{paddingLeft:qe},onClick:Ge=>{x==="a"&&st==="_blank"||o||t.toggleExpand(Ge)},children:[$e.jsx(H4,{cls:p,item:e}),$e.jsx("span",{className:p("menu-item__label"),ref:_,children:e.name}),$e.jsx(U4,{tooltipPosition:Le?"right":"top",menuLevel:n,hasChildren:r,isHovered:S,isFavorite:A,onClick:Ge=>{const tt={menuConfigId:e.id,isFavorite:Ge},et=t.baseUrl+it;aa.post(et,tt).then(nt=>{var lt;I(Ge),Gv("Set favorite menu item successfully"),(lt=t.onSetFavoriteSuccess)==null||lt.call(t,t.item.id,Ge),rb(t.item.id,Ge)}).catch(nt=>{var lt,bt;Gd(((bt=(lt=nt.response)==null?void 0:lt.data)==null?void 0:bt.errorMessage)||"Have error when set favorite menu item")})}}),r&&$e.jsx("div",{className:p("menu-item__icon-arrow__wrapper"),children:$e.jsx(B5,{className:p(`menu-item__icon-arrow__icon ${t.params.isOpen?"open":"close"}`)})})]})}),Be&&$e.jsx($5,{parentRef:B,onlyChild:!o,renderChildren:({maxHeight:Ge})=>{var tt;return $e.jsx(gD.div,{className:p(`menu-item__dropdown ${t.params.isOpen?"menu-item__dropdown--open":"menu-item__dropdown--close"}`,`level-${ce}`),style:tb({maxHeight:Ge,overflowY:"auto",paddingRight:3},Ge!=="auto"&&!!ce),children:(tt=e.children)==null?void 0:tt.map(et=>Z.createElement(RD,{...t,key:et.id,item:et,level:ce}))})}})]})}function H4({item:t,cls:e}){return $e.jsx("div",{className:e("menu-item__icon"),children:$e.jsx(TD,{item:t})})}function U4(t){const e={marginRight:t.hasChildren?10:0,fontSize:18,fill:Ei.warning};return $e.jsxs($e.Fragment,{children:[t.isHovered&&!t.isFavorite&&$e.jsx(la.Tooltip,{placement:t.tooltipPosition||"top",title:"Add to favorites",disableInteractive:!0,children:$e.jsx("div",{children:$e.jsx(mD,{style:e,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=t.onClick)==null||r.call(t,!0)}})})}),t.isFavorite&&$e.jsx(la.Tooltip,{placement:t.tooltipPosition||"top",title:"Remove from favorites",disableInteractive:!0,children:$e.jsx("div",{children:$e.jsx(vD,{style:e,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=t.onClick)==null||r.call(t,!1)}})})})]})}function W4(){return $e.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:$e.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 z4(){return $e.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:$e.jsx("path",{d:"M3 4h18v2H3V4zm0 7h18v2H3v-2zm0 7h18v2H3v-2z"})})}function Y4(t){return $e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"20",fill:"none",viewBox:"0 0 18 20",...t,children:$e.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 G4=`.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:40px 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}}
|
|
143
|
-
`,q4=t=>{const e=t.isCollapsed?0:t.depth*16;return $e.jsx("div",{style:{backgroundColor:t.color||"#93D500",height:"2px",position:"absolute",right:"0",top:"0",left:e}})},X4=`.app,.treeRoot{height:100%}.draggingSource{opacity:.3}.placeholderContainer{position:relative}.dropTarget{background-color:#8d878711}
|
|
144
|
-
`,K4=t=>{const[e,n]=Z.useState(()=>{const r=localStorage.getItem("openingMenuIds");return r&&r!=="[]"?JSON.parse(r):(t==null?void 0:t.initOpenIds)||[]});return Z.useEffect(()=>{localStorage.setItem("openingMenuIds",JSON.stringify(e))},[e]),[e,n]};function AD(t){document.documentElement.style.setProperty("--global-menu-width",!t||t==="true"?"64px":"17rem")}const Kh=localStorage.getItem("isCollapsed");AD(Kh);function Z4(t){const e=new CustomEvent("favoriteMenusChange",{detail:{favoriteMenus:t}});window.dispatchEvent(e)}function J4(t){const e=Cp.useLocation(),[n,r]=Z.useState([]),i=n.map(ae=>ae.data),[o,a]=Z.useState(!1),[u,c]=Z.useState(Kh===null?!0:Kh==="true"),[d,y]=Z.useState(window.location.href),p=Z.useRef(null);Z.useEffect(()=>{var ae;(ae=t.handleCallback)==null||ae.call(t,i)},[i,t.handleCallback]),Z.useEffect(()=>{y(window.location.href)},[e]);const S=e6(i,d),[C,A]=K4({initOpenIds:t.initOpenIds}),I=()=>{var ae,ce;if(c(!u),localStorage.setItem("isCollapsed",JSON.stringify(!u)),AD(u),u)C&&((ae=p.current)==null||ae.open(C));else{const Be=n.filter(qe=>qe.parent===0).map(qe=>qe.id);console.log("closeIds:",Be),(ce=p.current)==null||ce.close(Be)}},[B,_]=Z.useState(!1),G=u?"collapsed":"expanded",q=ae=>`${ae} ${G}`,se=Z.useRef(null);Z.useLayoutEffect(()=>{(async()=>{var ce,Be;try{const qe=t.menuPath||"/global-menu-config/api/v1/menu-items/user",Ze=t.baseUrl+qe,{data:ot}=await aa.get(Ze);let it=ot.map(De=>({...De,parentKey:De.parentKey||0}));it=MD(it),t.replacePath&&(it=ID(it,t.replacePath));const me=it.map(De=>({id:De.id,parent:De.parentKey,text:De.name,data:De}));r(me)}catch(qe){console.error("Global menu",qe),Gd(((Be=(ce=qe.response)==null?void 0:ce.data)==null?void 0:Be.errorMessage)||"Have error when get menu items")}})()},[t.baseUrl,t.menuPath,t.replacePath]),Z.useEffect(()=>{const ae=i.filter(qe=>qe.isFavorite);function ce(qe){return i.every(Ze=>Ze.parentKey!==qe.id)?qe:{...qe,children:i.filter(Ze=>Ze.parentKey===qe.id).map(Ze=>ce(Ze))}}const Be=ae.map(qe=>ce(qe));Z4(Be)},[i]);function Q(ae){const ce=ae.detail.menuItem;r(Be=>Be.map(qe=>qe.id!==ce.id?qe:{...qe,data:ce}))}Z.useEffect(()=>(window.addEventListener("updateFavoriteMenu",Q),()=>{window.removeEventListener("updateFavoriteMenu",Q)}),[]),Z.useLayoutEffect(()=>{var qe;const ae=localStorage.getItem("scrollPos");ae&&se.current&&setTimeout(()=>{const Ze=se.current.getScrollElement();Ze.scrollTop=parseInt(ae)},0);const ce=()=>{if(se.current){const Ze=se.current.getScrollElement();localStorage.setItem("scrollPos",Ze.scrollTop.toString())}},Be=(qe=se.current)==null?void 0:qe.getScrollElement();return Be==null||Be.addEventListener("scroll",ce),()=>{Be==null||Be.removeEventListener("scroll",ce)}},[i]);function ye(ae){a(!0);const ce=[...n];r(ae);const Be=ae.map((qe,Ze)=>({menuItemId:qe.id,order:Ze}));aa.post("/global-menu-config/api/v1/menu-items/user",Be,{baseURL:t.baseUrl}).then(()=>{}).catch(qe=>{console.error(qe),r(ce)}).finally(()=>{a(!1)})}const x=Z.useMemo(()=>Kh==="false"?C:[],[]);return $e.jsxs("div",{className:q("side-bar"),children:[$e.jsx("div",{className:q("wrap-section side-bar__wrapper-toggle-btn"),children:$e.jsx("button",{className:"icon-btn side-bar__toggle-btn",onClick:I,children:u?$e.jsx(z4,{}):$e.jsx(W4,{})})}),$e.jsx(PT,{ref:se,className:q("wrap-section side-bar__menu"),style:{marginTop:24,flex:1,overflow:"auto",height:"100%",overflowX:"hidden"},children:$e.jsx(s3,{backend:$3,options:fH(),children:$e.jsx(PH,{ref:p,classes:{root:"treeRoot",draggingSource:"draggingSource",placeholder:"placeholderContainer"},tree:n,rootId:0,sort:!1,insertDroppableFirst:!1,enableAnimateExpand:!0,dropTargetOffset:10,onDrop:ye,render:(ae,ce)=>{function Be(it){return n.every(me=>me.parent!==it.id)?it:{...it,children:n.filter(me=>me.parent===it.id).map(me=>Be(me.data))}}const qe=Be(ae.data),Ze=it=>S.some(me=>me.id===it);function ot(it,me){r(De=>De.map(Le=>Le.id===it?{...Le,data:{...Le.data,isFavorite:me}}:Le))}return $e.jsx(RD,{isActive:Ze,isCollapsed:u,replacePath:t.replacePath,ssr:t.ssr,brandColors:t.brandColors,baseUrl:t.baseUrl,node:ae,params:ce,nodes:n,item:qe,expanded:()=>!1,toggleExpand:it=>{var me;if(it.stopPropagation(),ce.isOpen)console.log("open toggleExpand"),ce.onToggle();else{console.log("close toggleExpand");const De=n.filter(Le=>Le.parent===ae.parent&&Le.id!==ae.id).map(Le=>Le.id);console.log(" closeIds:",De),(me=p.current)==null||me.open(ae.id),setTimeout(()=>{var Le;(Le=p.current)==null||Le.close(De)},0)}},level:ce.depth,onSetFavoriteSuccess:ot})},placeholderRender:(ae,{depth:ce})=>{var Be;return $e.jsx(q4,{node:ae,depth:ce,color:(Be=t.brandColors)==null?void 0:Be.primary300,isCollapsed:u})},canDrag:()=>!o,canDrop:(ae,{dragSource:ce,dropTargetId:Be})=>(ce==null?void 0:ce.parent)===Be,onDragStart:ae=>{console.log("onDragStart",ae)},onChangeOpen:ae=>{localStorage.getItem("isCollapsed")==="false"&&(console.log("onChangeOpen:",ae),A(ae))},initialOpen:x})})}),$e.jsxs("div",{className:q("wrap-section side-bar__wrap-btn-logout"),children:[$e.jsxs("button",{className:q("side-bar__logout-btn"),onClick:()=>_(!0),children:[$e.jsx(Y4,{className:q("side-bar__icon-logout")}),$e.jsx("span",{className:q("side-bar__logout-btn__text"),children:"Logout"})]}),$e.jsx(N1,{isOpen:B,onClose:()=>_(!1),onConfirm:()=>t.logout?t.logout():G1(t.baseUrl)})]})]})}function Q4(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 e6(t,e){var c;console.log("menuItems:",t);const n=new URL(e);let r=t.filter(d=>d.path&&d.path.includes("http")).map(d=>({item:d,itemUrl:new URL(d.path),matchingParamsCount:Q4(e,d.path)})).sort((d,y)=>{const p=new URL(d.itemUrl).searchParams,S=new URL(y.itemUrl).searchParams;return Array.from(p).length-Array.from(S).length}).filter(({itemUrl:d})=>n.origin===d.origin);const i=r.filter(({itemUrl:d})=>n.pathname===d.pathname),o=r.filter(({itemUrl:d})=>n.pathname.includes(d.pathname));r=i.length>0?i:o,r=r.sort((d,y)=>y.matchingParamsCount-d.matchingParamsCount);let a=r.length>0?(c=r.find(d=>d.item.parentKey))==null?void 0:c.item:null;console.log("matchingItems:",r);let u=[];for(;a;)u=[a,...u],a=t.find(d=>d.id===(a==null?void 0:a.parentKey))||null;return console.log("parents:",u),u}function ID(t,e){return t.map(n=>{var r;return(r=n.children)!=null&&r.length?(n.path="",n.children=ID(n.children,e)):n.path=e(n.path),n})}function MD(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=MD(n.children)),n))}function t6(t){return $e.jsx(_D.div,{children:$e.jsx(Uv,{styles:[OT,G4,X4],style:{position:"sticky",zIndex:1300},children:$e.jsx(J4,{...t})})})}const n6={"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 xp={exports:{}};/**
|
|
145
|
-
* @license
|
|
146
|
-
* Lodash <https://lodash.com/>
|
|
147
|
-
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
148
|
-
* Released under MIT license <https://lodash.com/license>
|
|
149
|
-
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
150
|
-
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
151
|
-
*/xp.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",u="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",d=500,y="__lodash_placeholder__",p=1,S=2,C=4,A=1,I=2,B=1,_=2,G=4,q=8,se=16,Q=32,ye=64,x=128,ae=256,ce=512,Be=30,qe="...",Ze=800,ot=16,it=1,me=2,De=3,Le=1/0,Ye=9007199254740991,st=17976931348623157e292,Ce=0/0,_e=4294967295,Xe=_e-1,Ge=_e>>>1,tt=[["ary",x],["bind",B],["bindKey",_],["curry",q],["curryRight",se],["flip",ce],["partial",Q],["partialRight",ye],["rearg",ae]],et="[object Arguments]",nt="[object Array]",lt="[object AsyncFunction]",bt="[object Boolean]",xt="[object Date]",gt="[object DOMException]",Ct="[object Error]",rt="[object Function]",Bt="[object GeneratorFunction]",Vt="[object Map]",qn="[object Number]",yr="[object Null]",Xn="[object Object]",Dn="[object Promise]",Hi="[object Proxy]",Or="[object RegExp]",ir="[object Set]",un="[object String]",dn="[object Symbol]",hn="[object Undefined]",pt="[object WeakMap]",Rn="[object WeakSet]",li="[object ArrayBuffer]",ln="[object DataView]",Ui="[object Float32Array]",Wi="[object Float64Array]",zi="[object Int8Array]",_r="[object Int16Array]",Un="[object Int32Array]",Rr="[object Uint8Array]",br="[object Uint8ClampedArray]",qr="[object Uint16Array]",Xr="[object Uint32Array]",Ao=/\b__p \+= '';/g,Kn=/\b(__p \+=) '' \+/g,Kr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,or=/&(?:amp|lt|gt|quot|#39);/g,Zt=/[&<>"']/g,ui=RegExp(or.source),Yi=RegExp(Zt.source),An=/<%-([\s\S]+?)%>/g,pn=/<%([\s\S]+?)%>/g,ci=/<%=([\s\S]+?)%>/g,fi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,mn=/^\w*$/,co=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wr=/[\\^$.*+?()[\]{}|]/g,di=RegExp(wr.source),cn=/^\s+/,ki=/\s/,Ms=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ls=/\{\n\/\* \[wrapped with (.+)\] \*/,Zr=/,? & /,fo=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ho=/[()=,{}\[\]\/\s]/,Io=/\\(\\)?/g,Di=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,hi=/\w*$/,Pi=/^[-+]0x[0-9a-f]+$/i,po=/^0b[01]+$/i,Oi=/^\[object .+?Constructor\]$/,Jr=/^0o[0-7]+$/i,xr=/^(?:0|[1-9]\d*)$/,Ar=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Qr=/($^)/,Ir=/['\n\r\u2028\u2029\\]/g,Wn="\\ud800-\\udfff",gn="\\u0300-\\u036f",Mr="\\ufe20-\\ufe2f",Sr="\\u20d0-\\u20ff",In=gn+Mr+Sr,pi="\\u2700-\\u27bf",Lr="a-z\\xdf-\\xf6\\xf8-\\xff",ei="\\xac\\xb1\\xd7\\xf7",Zn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ti="\\u2000-\\u206f",ni=" \\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",Gi="A-Z\\xc0-\\xd6\\xd8-\\xde",On="\\ufe0e\\ufe0f",Tr=ei+Zn+ti+ni,cr="['’]",Mo="["+Wn+"]",qi="["+Tr+"]",Fr="["+In+"]",E="\\d+",N="["+pi+"]",Y="["+Lr+"]",ne="[^"+Wn+Tr+E+pi+Lr+Gi+"]",Pe="\\ud83c[\\udffb-\\udfff]",be="(?:"+Fr+"|"+Pe+")",Ie="[^"+Wn+"]",Je="(?:\\ud83c[\\udde6-\\uddff]){2}",mt="[\\ud800-\\udbff][\\udc00-\\udfff]",St="["+Gi+"]",vt="\\u200d",Ht="(?:"+Y+"|"+ne+")",Jn="(?:"+St+"|"+ne+")",zn="(?:"+cr+"(?:d|ll|m|re|s|t|ve))?",Pn="(?:"+cr+"(?:D|LL|M|RE|S|T|VE))?",Nr=be+"?",sr="["+On+"]?",Xi="(?:"+vt+"(?:"+[Ie,Je,mt].join("|")+")"+sr+Nr+")*",gi="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ki="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",jr=sr+Nr+Xi,Lo="(?:"+[N,Je,mt].join("|")+")"+jr,Ya="(?:"+[Ie+Fr+"?",Fr,Je,mt,Mo].join("|")+")",Fs=RegExp(cr,"g"),Ns=RegExp(Fr,"g"),js=RegExp(Pe+"(?="+Pe+")|"+Ya+jr,"g"),Bs=RegExp([St+"?"+Y+"+"+zn+"(?="+[qi,St,"$"].join("|")+")",Jn+"+"+Pn+"(?="+[qi,St+Ht,"$"].join("|")+")",St+"?"+Ht+"+"+zn,St+"+"+Pn,Ki,gi,E,Lo].join("|"),"g"),mi=RegExp("["+vt+Wn+In+On+"]"),Fo=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,as=["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"],sn=-1,Jt={};Jt[Ui]=Jt[Wi]=Jt[zi]=Jt[_r]=Jt[Un]=Jt[Rr]=Jt[br]=Jt[qr]=Jt[Xr]=!0,Jt[et]=Jt[nt]=Jt[li]=Jt[bt]=Jt[ln]=Jt[xt]=Jt[Ct]=Jt[rt]=Jt[Vt]=Jt[qn]=Jt[Xn]=Jt[Or]=Jt[ir]=Jt[un]=Jt[pt]=!1;var $t={};$t[et]=$t[nt]=$t[li]=$t[ln]=$t[bt]=$t[xt]=$t[Ui]=$t[Wi]=$t[zi]=$t[_r]=$t[Un]=$t[Vt]=$t[qn]=$t[Xn]=$t[Or]=$t[ir]=$t[un]=$t[dn]=$t[Rr]=$t[br]=$t[qr]=$t[Xr]=!0,$t[Ct]=$t[rt]=$t[pt]=!1;var _i={À:"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"},ri={"&":"&","<":"<",">":">",'"':""","'":"'"},No={"&":"&","<":"<",">":">",""":'"',"'":"'"},vi={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},fr=parseFloat,$s=parseInt,ls=typeof Ci=="object"&&Ci&&Ci.Object===Object&&Ci,ca=typeof self=="object"&&self&&self.Object===Object&&self,vn=ls||ca||Function("return this")(),jo=e&&!e.nodeType&&e,yi=jo&&!0&&t&&!t.nodeType&&t,fa=yi&&yi.exports===jo,go=fa&&ls.process,Qn=function(){try{var J=yi&&yi.require&&yi.require("util").types;return J||go&&go.binding&&go.binding("util")}catch{}}(),f=Qn&&Qn.isArrayBuffer,m=Qn&&Qn.isDate,T=Qn&&Qn.isMap,D=Qn&&Qn.isRegExp,F=Qn&&Qn.isSet,j=Qn&&Qn.isTypedArray;function H(J,he,fe){switch(fe.length){case 0:return J.call(he);case 1:return J.call(he,fe[0]);case 2:return J.call(he,fe[0],fe[1]);case 3:return J.call(he,fe[0],fe[1],fe[2])}return J.apply(he,fe)}function ue(J,he,fe,je){for(var Ve=-1,ct=J==null?0:J.length;++Ve<ct;){var ft=J[Ve];he(je,ft,fe(ft),J)}return je}function ie(J,he){for(var fe=-1,je=J==null?0:J.length;++fe<je&&he(J[fe],fe,J)!==!1;);return J}function we(J,he){for(var fe=J==null?0:J.length;fe--&&he(J[fe],fe,J)!==!1;);return J}function Me(J,he){for(var fe=-1,je=J==null?0:J.length;++fe<je;)if(!he(J[fe],fe,J))return!1;return!0}function Fe(J,he){for(var fe=-1,je=J==null?0:J.length,Ve=0,ct=[];++fe<je;){var ft=J[fe];he(ft,fe,J)&&(ct[Ve++]=ft)}return ct}function Ee(J,he){var fe=J==null?0:J.length;return!!fe&&rn(J,he,0)>-1}function He(J,he,fe){for(var je=-1,Ve=J==null?0:J.length;++je<Ve;)if(fe(he,J[je]))return!0;return!1}function ut(J,he){for(var fe=-1,je=J==null?0:J.length,Ve=Array(je);++fe<je;)Ve[fe]=he(J[fe],fe,J);return Ve}function Pt(J,he){for(var fe=-1,je=he.length,Ve=J.length;++fe<je;)J[Ve+fe]=he[fe];return J}function _t(J,he,fe,je){var Ve=-1,ct=J==null?0:J.length;for(je&&ct&&(fe=J[++Ve]);++Ve<ct;)fe=he(fe,J[Ve],Ve,J);return fe}function Mn(J,he,fe,je){var Ve=J==null?0:J.length;for(je&&Ve&&(fe=J[--Ve]);Ve--;)fe=he(fe,J[Ve],Ve,J);return fe}function fn(J,he){for(var fe=-1,je=J==null?0:J.length;++fe<je;)if(he(J[fe],fe,J))return!0;return!1}var Br=k("length");function $r(J){return J.split("")}function Ut(J){return J.match(fo)||[]}function Vr(J,he,fe){var je;return fe(J,function(Ve,ct,ft){if(he(Ve,ct,ft))return je=ct,!1}),je}function zt(J,he,fe,je){for(var Ve=J.length,ct=fe+(je?1:-1);je?ct--:++ct<Ve;)if(he(J[ct],ct,J))return ct;return-1}function rn(J,he,fe){return he===he?Lu(J,he,fe):zt(J,vo,fe)}function mo(J,he,fe,je){for(var Ve=fe-1,ct=J.length;++Ve<ct;)if(je(J[Ve],he))return Ve;return-1}function vo(J){return J!==J}function Cr(J,he){var fe=J==null?0:J.length;return fe?Se(J,he)/fe:Ce}function k(J){return function(he){return he==null?n:he[J]}}function L(J){return function(he){return J==null?n:J[he]}}function U(J,he,fe,je,Ve){return Ve(J,function(ct,ft,at){fe=je?(je=!1,ct):he(fe,ct,ft,at)}),fe}function te(J,he){var fe=J.length;for(J.sort(he);fe--;)J[fe]=J[fe].value;return J}function Se(J,he){for(var fe,je=-1,Ve=J.length;++je<Ve;){var ct=he(J[je]);ct!==n&&(fe=fe===n?ct:fe+ct)}return fe}function Te(J,he){for(var fe=-1,je=Array(J);++fe<J;)je[fe]=he(fe);return je}function Ne(J,he){return ut(he,function(fe){return[fe,J[fe]]})}function Ke(J){return J&&J.slice(0,Xa(J)+1).replace(cn,"")}function yt(J){return function(he){return J(he)}}function Nt(J,he){return ut(he,function(fe){return J[fe]})}function Dt(J,he){return J.has(he)}function Tt(J,he){for(var fe=-1,je=J.length;++fe<je&&rn(he,J[fe],0)>-1;);return fe}function jn(J,he){for(var fe=J.length;fe--&&rn(he,J[fe],0)>-1;);return fe}function Sn(J,he){for(var fe=J.length,je=0;fe--;)J[fe]===he&&++je;return je}var Yn=L(_i),us=L(ri);function da(J){return"\\"+vi[J]}function cs(J,he){return J==null?n:J[he]}function ii(J){return mi.test(J)}function Ga(J){return Fo.test(J)}function yo(J){for(var he,fe=[];!(he=J.next()).done;)fe.push(he.value);return fe}function ha(J){var he=-1,fe=Array(J.size);return J.forEach(function(je,Ve){fe[++he]=[Ve,je]}),fe}function fs(J,he){return function(fe){return J(he(fe))}}function bi(J,he){for(var fe=-1,je=J.length,Ve=0,ct=[];++fe<je;){var ft=J[fe];(ft===he||ft===y)&&(J[fe]=y,ct[Ve++]=fe)}return ct}function Zi(J){var he=-1,fe=Array(J.size);return J.forEach(function(je){fe[++he]=je}),fe}function qa(J){var he=-1,fe=Array(J.size);return J.forEach(function(je){fe[++he]=[je,je]}),fe}function Lu(J,he,fe){for(var je=fe-1,Ve=J.length;++je<Ve;)if(J[je]===he)return je;return-1}function ds(J,he,fe){for(var je=fe+1;je--;)if(J[je]===he)return je;return je}function bo(J){return ii(J)?ga(J):Br(J)}function dr(J){return ii(J)?ee(J):$r(J)}function Xa(J){for(var he=J.length;he--&&ki.test(J.charAt(he)););return he}var pa=L(No);function ga(J){for(var he=js.lastIndex=0;js.test(J);)++he;return he}function ee(J){return J.match(js)||[]}function ge(J){return J.match(Bs)||[]}var Oe=function J(he){he=he==null?vn:ke.defaults(vn.Object(),he,ke.pick(vn,as));var fe=he.Array,je=he.Date,Ve=he.Error,ct=he.Function,ft=he.Math,at=he.Object,Rt=he.RegExp,Et=he.String,Yt=he.TypeError,Ln=fe.prototype,ar=ct.prototype,Gn=at.prototype,Hr=he["__core-js_shared__"],Ji=ar.toString,At=Gn.hasOwnProperty,Uc=0,Tn=function(){var s=/[^.]+$/.exec(Hr&&Hr.keys&&Hr.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),hs=Gn.toString,Fu=Ji.call(at),Cn=vn._,ma=Rt("^"+Ji.call(At).replace(wr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),va=fa?he.Buffer:n,wo=he.Symbol,ya=he.Uint8Array,jl=va?va.allocUnsafe:n,ba=fs(at.getPrototypeOf,at),Nu=at.create,ju=Gn.propertyIsEnumerable,Vs=Ln.splice,Bl=wo?wo.isConcatSpreadable:n,Bo=wo?wo.iterator:n,Qi=wo?wo.toStringTag:n,$o=function(){try{var s=dc(at,"defineProperty");return s({},"",{}),s}catch{}}(),Ka=he.clearTimeout!==vn.clearTimeout&&he.clearTimeout,Za=je&&je.now!==vn.Date.now&&je.now,$l=he.setTimeout!==vn.setTimeout&&he.setTimeout,Ja=ft.ceil,wa=ft.floor,Qa=at.getOwnPropertySymbols,Bu=va?va.isBuffer:n,$u=he.isFinite,xa=Ln.join,Vu=fs(at.keys,at),Fn=ft.max,Nn=ft.min,Hu=je.now,Uu=he.parseInt,Vo=ft.random,Wc=Ln.reverse,Ho=dc(he,"DataView"),eo=dc(he,"Map"),el=dc(he,"Promise"),Ur=dc(he,"Set"),ps=dc(he,"WeakMap"),gs=dc(at,"create"),ms=ps&&new ps,vs={},tl=hc(Ho),zc=hc(eo),Yc=hc(el),Vl=hc(Ur),nl=hc(ps),Sa=wo?wo.prototype:n,rl=Sa?Sa.valueOf:n,Hs=Sa?Sa.toString:n;function z(s){if(lr(s)&&!Xt(s)&&!(s instanceof qt)){if(s instanceof Wr)return s;if(At.call(s,"__wrapped__"))return Eb(s)}return new Wr(s)}var ys=function(){function s(){}return function(l){if(!er(l))return{};if(Nu)return Nu(l);s.prototype=l;var v=new s;return s.prototype=n,v}}();function Us(){}function Wr(s,l){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=n}z.templateSettings={escape:An,evaluate:pn,interpolate:ci,variable:"",imports:{_:z}},z.prototype=Us.prototype,z.prototype.constructor=z,Wr.prototype=ys(Us.prototype),Wr.prototype.constructor=Wr;function qt(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=_e,this.__views__=[]}function Hl(){var s=new qt(this.__wrapped__);return s.__actions__=kr(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=kr(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=kr(this.__views__),s}function Ta(){if(this.__filtered__){var s=new qt(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function il(){var s=this.__wrapped__.value(),l=this.__dir__,v=Xt(s),O=l<0,V=v?s.length:0,K=wP(0,V,this.__views__),le=K.start,pe=K.end,xe=pe-le,Ue=O?pe:le-1,ze=this.__iteratees__,Qe=ze.length,dt=0,kt=Nn(xe,this.__takeCount__);if(!v||!O&&V==xe&&kt==xe)return of(s,this.__actions__);var Mt=[];e:for(;xe--&&dt<kt;){Ue+=l;for(var en=-1,Lt=s[Ue];++en<Qe;){var nn=ze[en],on=nn.iteratee,Ko=nn.type,so=on(Lt);if(Ko==me)Lt=so;else if(!so){if(Ko==it)continue e;break e}}Mt[dt++]=Lt}return Mt}qt.prototype=ys(Us.prototype),qt.prototype.constructor=qt;function xo(s){var l=-1,v=s==null?0:s.length;for(this.clear();++l<v;){var O=s[l];this.set(O[0],O[1])}}function Ca(){this.__data__=gs?gs(null):{},this.size=0}function Ul(s){var l=this.has(s)&&delete this.__data__[s];return this.size-=l?1:0,l}function Wl(s){var l=this.__data__;if(gs){var v=l[s];return v===c?n:v}return At.call(l,s)?l[s]:n}function zl(s){var l=this.__data__;return gs?l[s]!==n:At.call(l,s)}function Gc(s,l){var v=this.__data__;return this.size+=this.has(s)?0:1,v[s]=gs&&l===n?c:l,this}xo.prototype.clear=Ca,xo.prototype.delete=Ul,xo.prototype.get=Wl,xo.prototype.has=zl,xo.prototype.set=Gc;function So(s){var l=-1,v=s==null?0:s.length;for(this.clear();++l<v;){var O=s[l];this.set(O[0],O[1])}}function qc(){this.__data__=[],this.size=0}function Wf(s){var l=this.__data__,v=Ai(l,s);if(v<0)return!1;var O=l.length-1;return v==O?l.pop():Vs.call(l,v,1),--this.size,!0}function zf(s){var l=this.__data__,v=Ai(l,s);return v<0?n:l[v][1]}function Xc(s){return Ai(this.__data__,s)>-1}function Yf(s,l){var v=this.__data__,O=Ai(v,s);return O<0?(++this.size,v.push([s,l])):v[O][1]=l,this}So.prototype.clear=qc,So.prototype.delete=Wf,So.prototype.get=zf,So.prototype.has=Xc,So.prototype.set=Yf;function Uo(s){var l=-1,v=s==null?0:s.length;for(this.clear();++l<v;){var O=s[l];this.set(O[0],O[1])}}function Yl(){this.size=0,this.__data__={hash:new xo,map:new(eo||So),string:new xo}}function Gl(s){var l=oh(this,s).delete(s);return this.size-=l?1:0,l}function Gf(s){return oh(this,s).get(s)}function Wu(s){return oh(this,s).has(s)}function ql(s,l){var v=oh(this,s),O=v.size;return v.set(s,l),this.size+=v.size==O?0:1,this}Uo.prototype.clear=Yl,Uo.prototype.delete=Gl,Uo.prototype.get=Gf,Uo.prototype.has=Wu,Uo.prototype.set=ql;function Ws(s){var l=-1,v=s==null?0:s.length;for(this.__data__=new Uo;++l<v;)this.add(s[l])}function qf(s){return this.__data__.set(s,c),this}function Xf(s){return this.__data__.has(s)}Ws.prototype.add=Ws.prototype.push=qf,Ws.prototype.has=Xf;function to(s){var l=this.__data__=new So(s);this.size=l.size}function Wo(){this.__data__=new So,this.size=0}function zu(s){var l=this.__data__,v=l.delete(s);return this.size=l.size,v}function Xl(s){return this.__data__.get(s)}function tn(s){return this.__data__.has(s)}function zs(s,l){var v=this.__data__;if(v instanceof So){var O=v.__data__;if(!eo||O.length<i-1)return O.push([s,l]),this.size=++v.size,this;v=this.__data__=new Uo(O)}return v.set(s,l),this.size=v.size,this}to.prototype.clear=Wo,to.prototype.delete=zu,to.prototype.get=Xl,to.prototype.has=tn,to.prototype.set=zs;function bs(s,l){var v=Xt(s),O=!v&&pc(s),V=!v&&!O&&uu(s),K=!v&&!O&&!V&&df(s),le=v||O||V||K,pe=le?Te(s.length,Et):[],xe=pe.length;for(var Ue in s)(l||At.call(s,Ue))&&!(le&&(Ue=="length"||V&&(Ue=="offset"||Ue=="parent")||K&&(Ue=="buffer"||Ue=="byteLength"||Ue=="byteOffset")||wl(Ue,xe)))&&pe.push(Ue);return pe}function an(s){var l=s.length;return l?s[nu(0,l-1)]:n}function Ri(s,l){return sh(kr(s),ws(l,0,s.length))}function Ys(s){return sh(kr(s))}function Ea(s,l,v){(v!==n&&!ra(s[l],v)||v===n&&!(l in s))&&hr(s,l,v)}function Bn(s,l,v){var O=s[l];(!(At.call(s,l)&&ra(O,v))||v===n&&!(l in s))&&hr(s,l,v)}function Ai(s,l){for(var v=s.length;v--;)if(ra(s[v][0],l))return v;return-1}function Gs(s,l,v,O){return xs(s,function(V,K,le){l(O,V,v(V),le)}),O}function no(s,l){return s&&xi(l,si(l),s)}function qs(s,l){return s&&xi(l,Do(l),s)}function hr(s,l,v){l=="__proto__"&&$o?$o(s,l,{configurable:!0,enumerable:!0,value:v,writable:!0}):s[l]=v}function Yu(s,l){for(var v=-1,O=l.length,V=fe(O),K=s==null;++v<O;)V[v]=K?n:mg(s,l[v]);return V}function ws(s,l,v){return s===s&&(v!==n&&(s=s<=v?s:v),l!==n&&(s=s>=l?s:l)),s}function zr(s,l,v,O,V,K){var le,pe=l&p,xe=l&S,Ue=l&C;if(v&&(le=V?v(s,O,V,K):v(s)),le!==n)return le;if(!er(s))return s;var ze=Xt(s);if(ze){if(le=SP(s),!pe)return kr(s,le)}else{var Qe=Fi(s),dt=Qe==rt||Qe==Bt;if(uu(s))return gl(s,pe);if(Qe==Xn||Qe==et||dt&&!V){if(le=xe||dt?{}:mb(s),!pe)return xe?uf(s,qs(le,s)):Jf(s,no(le,s))}else{if(!$t[Qe])return V?s:{};le=TP(s,Qe,pe)}}K||(K=new to);var kt=K.get(s);if(kt)return kt;K.set(s,le),zb(s)?s.forEach(function(Lt){le.add(zr(Lt,l,v,Lt,s,K))}):Ub(s)&&s.forEach(function(Lt,nn){le.set(nn,zr(Lt,l,v,nn,s,K))});var Mt=Ue?xe?ng:tg:xe?Do:si,en=ze?n:Mt(s);return ie(en||s,function(Lt,nn){en&&(nn=Lt,Lt=s[nn]),Bn(le,nn,zr(Lt,l,v,nn,s,K))}),le}function Gu(s){var l=si(s);return function(v){return Kc(v,s,l)}}function Kc(s,l,v){var O=v.length;if(s==null)return!O;for(s=at(s);O--;){var V=v[O],K=l[V],le=s[V];if(le===n&&!(V in s)||!K(le))return!1}return!0}function qu(s,l,v){if(typeof s!="function")throw new Yt(a);return ed(function(){s.apply(n,v)},l)}function zo(s,l,v,O){var V=-1,K=Ee,le=!0,pe=s.length,xe=[],Ue=l.length;if(!pe)return xe;v&&(l=ut(l,yt(v))),O?(K=He,le=!1):l.length>=i&&(K=Dt,le=!1,l=new Ws(l));e:for(;++V<pe;){var ze=s[V],Qe=v==null?ze:v(ze);if(ze=O||ze!==0?ze:0,le&&Qe===Qe){for(var dt=Ue;dt--;)if(l[dt]===Qe)continue e;xe.push(ze)}else K(l,Qe,O)||xe.push(ze)}return xe}var xs=g(To),Xu=g(Ju,!0);function Kl(s,l){var v=!0;return xs(s,function(O,V,K){return v=!!l(O,V,K),v}),v}function Zl(s,l,v){for(var O=-1,V=s.length;++O<V;){var K=s[O],le=l(K);if(le!=null&&(pe===n?le===le&&!Xo(le):v(le,pe)))var pe=le,xe=K}return xe}function Zc(s,l,v,O){var V=s.length;for(v=Qt(v),v<0&&(v=-v>V?0:V+v),O=O===n||O>V?V:Qt(O),O<0&&(O+=V),O=v>O?0:Gb(O);v<O;)s[v++]=l;return s}function Ku(s,l){var v=[];return xs(s,function(O,V,K){l(O,V,K)&&v.push(O)}),v}function pr(s,l,v,O,V){var K=-1,le=s.length;for(v||(v=EP),V||(V=[]);++K<le;){var pe=s[K];l>0&&v(pe)?l>1?pr(pe,l-1,v,O,V):Pt(V,pe):O||(V[V.length]=pe)}return V}var Zu=w(),Jc=w(!0);function To(s,l){return s&&Zu(s,l,si)}function Ju(s,l){return s&&Jc(s,l,si)}function Jl(s,l){return Fe(l,function(v){return xl(s[v])})}function Xs(s,l){l=Eo(l,s);for(var v=0,O=l.length;s!=null&&v<O;)s=s[La(l[v++])];return v&&v==O?s:n}function ol(s,l,v){var O=l(s);return Xt(s)?O:Pt(O,v(s))}function Er(s){return s==null?s===n?hn:yr:Qi&&Qi in at(s)?bP(s):AP(s)}function sl(s,l){return s>l}function al(s,l){return s!=null&&At.call(s,l)}function Qc(s,l){return s!=null&&l in at(s)}function ll(s,l,v){return s>=Nn(l,v)&&s<Fn(l,v)}function ka(s,l,v){for(var O=v?He:Ee,V=s[0].length,K=s.length,le=K,pe=fe(K),xe=1/0,Ue=[];le--;){var ze=s[le];le&&l&&(ze=ut(ze,yt(l))),xe=Nn(ze.length,xe),pe[le]=!v&&(l||V>=120&&ze.length>=120)?new Ws(le&&ze):n}ze=s[0];var Qe=-1,dt=pe[0];e:for(;++Qe<V&&Ue.length<xe;){var kt=ze[Qe],Mt=l?l(kt):kt;if(kt=v||kt!==0?kt:0,!(dt?Dt(dt,Mt):O(Ue,Mt,v))){for(le=K;--le;){var en=pe[le];if(!(en?Dt(en,Mt):O(s[le],Mt,v)))continue e}dt&&dt.push(Mt),Ue.push(kt)}}return Ue}function Qu(s,l,v,O){return To(s,function(V,K,le){l(O,v(V),K,le)}),O}function Ii(s,l,v){l=Eo(l,s),s=wb(s,l);var O=s==null?s:s[La(Ts(l))];return O==null?n:H(O,s,v)}function ul(s){return lr(s)&&Er(s)==et}function Ql(s){return lr(s)&&Er(s)==li}function Ks(s){return lr(s)&&Er(s)==xt}function Da(s,l,v,O,V){return s===l?!0:s==null||l==null||!lr(s)&&!lr(l)?s!==s&&l!==l:ec(s,l,v,O,Da,V)}function ec(s,l,v,O,V,K){var le=Xt(s),pe=Xt(l),xe=le?nt:Fi(s),Ue=pe?nt:Fi(l);xe=xe==et?Xn:xe,Ue=Ue==et?Xn:Ue;var ze=xe==Xn,Qe=Ue==Xn,dt=xe==Ue;if(dt&&uu(s)){if(!uu(l))return!1;le=!0,ze=!1}if(dt&&!ze)return K||(K=new to),le||df(s)?fc(s,l,v,O,V,K):lu(s,l,xe,v,O,V,K);if(!(v&A)){var kt=ze&&At.call(s,"__wrapped__"),Mt=Qe&&At.call(l,"__wrapped__");if(kt||Mt){var en=kt?s.value():s,Lt=Mt?l.value():l;return K||(K=new to),V(en,Lt,v,O,K)}}return dt?(K||(K=new to),eg(s,l,v,O,V,K)):!1}function Zs(s){return lr(s)&&Fi(s)==Vt}function tc(s,l,v,O){var V=v.length,K=V,le=!O;if(s==null)return!K;for(s=at(s);V--;){var pe=v[V];if(le&&pe[2]?pe[1]!==s[pe[0]]:!(pe[0]in s))return!1}for(;++V<K;){pe=v[V];var xe=pe[0],Ue=s[xe],ze=pe[1];if(le&&pe[2]){if(Ue===n&&!(xe in s))return!1}else{var Qe=new to;if(O)var dt=O(Ue,ze,xe,s,l,Qe);if(!(dt===n?Da(ze,Ue,A|I,O,Qe):dt))return!1}}return!0}function nc(s){if(!er(s)||DP(s))return!1;var l=xl(s)?ma:Oi;return l.test(hc(s))}function Co(s){return lr(s)&&Er(s)==Or}function Kf(s){return lr(s)&&Fi(s)==ir}function Zf(s){return lr(s)&&dh(s.length)&&!!Jt[Er(s)]}function Pa(s){return typeof s=="function"?s:s==null?Po:typeof s=="object"?Xt(s)?io(s[0],s[1]):Yo(s):i0(s)}function cl(s){if(!Qf(s))return Vu(s);var l=[];for(var v in at(s))At.call(s,v)&&v!="constructor"&&l.push(v);return l}function eu(s){if(!er(s))return RP(s);var l=Qf(s),v=[];for(var O in s)O=="constructor"&&(l||!At.call(s,O))||v.push(O);return v}function ro(s,l){return s<l}function Oa(s,l){var v=-1,O=ko(s)?fe(s.length):[];return xs(s,function(V,K,le){O[++v]=l(V,K,le)}),O}function Yo(s){var l=ig(s);return l.length==1&&l[0][2]?yb(l[0][0],l[0][1]):function(v){return v===s||tc(v,s,l)}}function io(s,l){return sg(s)&&vb(l)?yb(La(s),l):function(v){var O=mg(v,s);return O===n&&O===l?vg(v,s):Da(l,O,A|I)}}function _a(s,l,v,O,V){s!==l&&Zu(l,function(K,le){if(V||(V=new to),er(K))Mi(s,l,le,v,_a,O,V);else{var pe=O?O(lg(s,le),K,le+"",s,l,V):n;pe===n&&(pe=K),Ea(s,le,pe)}},Do)}function Mi(s,l,v,O,V,K,le){var pe=lg(s,v),xe=lg(l,v),Ue=le.get(xe);if(Ue){Ea(s,v,Ue);return}var ze=K?K(pe,xe,v+"",s,l,le):n,Qe=ze===n;if(Qe){var dt=Xt(xe),kt=!dt&&uu(xe),Mt=!dt&&!kt&&df(xe);ze=xe,dt||kt||Mt?Xt(pe)?ze=pe:gr(pe)?ze=kr(pe):kt?(Qe=!1,ze=gl(xe,!0)):Mt?(Qe=!1,ze=yl(xe,!0)):ze=[]:td(xe)||pc(xe)?(ze=pe,pc(pe)?ze=qb(pe):(!er(pe)||xl(pe))&&(ze=mb(xe))):Qe=!1}Qe&&(le.set(xe,ze),V(ze,xe,O,K,le),le.delete(xe)),Ea(s,v,ze)}function Js(s,l){var v=s.length;if(v)return l+=l<0?v:0,wl(l,v)?s[l]:n}function tu(s,l,v){l.length?l=ut(l,function(K){return Xt(K)?function(le){return Xs(le,K.length===1?K[0]:K)}:K}):l=[Po];var O=-1;l=ut(l,yt(Ot()));var V=Oa(s,function(K,le,pe){var xe=ut(l,function(Ue){return Ue(K)});return{criteria:xe,index:++O,value:K}});return te(V,function(K,le){return bl(K,le,v)})}function Li(s,l){return Go(s,l,function(v,O){return vg(s,O)})}function Go(s,l,v){for(var O=-1,V=l.length,K={};++O<V;){var le=l[O],pe=Xs(s,le);v(pe,le)&&ea(K,Eo(le,s),pe)}return K}function rc(s){return function(l){return Xs(l,s)}}function Qs(s,l,v,O){var V=O?mo:rn,K=-1,le=l.length,pe=s;for(s===l&&(l=kr(l)),v&&(pe=ut(s,yt(v)));++K<le;)for(var xe=0,Ue=l[K],ze=v?v(Ue):Ue;(xe=V(pe,ze,xe,O))>-1;)pe!==s&&Vs.call(pe,xe,1),Vs.call(s,xe,1);return s}function fl(s,l){for(var v=s?l.length:0,O=v-1;v--;){var V=l[v];if(v==O||V!==K){var K=V;wl(V)?Vs.call(s,V,1):lc(s,V)}}return s}function nu(s,l){return s+wa(Vo()*(l-s+1))}function ef(s,l,v,O){for(var V=-1,K=Fn(Ja((l-s)/(v||1)),0),le=fe(K);K--;)le[O?K:++V]=s,s+=v;return le}function ic(s,l){var v="";if(!s||l<1||l>Ye)return v;do l%2&&(v+=s),l=wa(l/2),l&&(s+=s);while(l);return v}function Gt(s,l){return ug(bb(s,l,Po),s+"")}function dl(s){return an(hf(s))}function tf(s,l){var v=hf(s);return sh(v,ws(l,0,v.length))}function ea(s,l,v,O){if(!er(s))return s;l=Eo(l,s);for(var V=-1,K=l.length,le=K-1,pe=s;pe!=null&&++V<K;){var xe=La(l[V]),Ue=v;if(xe==="__proto__"||xe==="constructor"||xe==="prototype")return s;if(V!=le){var ze=pe[xe];Ue=O?O(ze,xe,pe):n,Ue===n&&(Ue=er(ze)?ze:wl(l[V+1])?[]:{})}Bn(pe,xe,Ue),pe=pe[xe]}return s}var Ra=ms?function(s,l){return ms.set(s,l),s}:Po,oc=$o?function(s,l){return $o(s,"toString",{configurable:!0,enumerable:!1,value:bg(l),writable:!0})}:Po;function sc(s){return sh(hf(s))}function oi(s,l,v){var O=-1,V=s.length;l<0&&(l=-l>V?0:V+l),v=v>V?V:v,v<0&&(v+=V),V=l>v?0:v-l>>>0,l>>>=0;for(var K=fe(V);++O<V;)K[O]=s[O+l];return K}function ac(s,l){var v;return xs(s,function(O,V,K){return v=l(O,V,K),!v}),!!v}function hl(s,l,v){var O=0,V=s==null?O:s.length;if(typeof l=="number"&&l===l&&V<=Ge){for(;O<V;){var K=O+V>>>1,le=s[K];le!==null&&!Xo(le)&&(v?le<=l:le<l)?O=K+1:V=K}return V}return ru(s,l,Po,v)}function ru(s,l,v,O){var V=0,K=s==null?0:s.length;if(K===0)return 0;l=v(l);for(var le=l!==l,pe=l===null,xe=Xo(l),Ue=l===n;V<K;){var ze=wa((V+K)/2),Qe=v(s[ze]),dt=Qe!==n,kt=Qe===null,Mt=Qe===Qe,en=Xo(Qe);if(le)var Lt=O||Mt;else Ue?Lt=Mt&&(O||dt):pe?Lt=Mt&&dt&&(O||!kt):xe?Lt=Mt&&dt&&!kt&&(O||!en):kt||en?Lt=!1:Lt=O?Qe<=l:Qe<l;Lt?V=ze+1:K=ze}return Nn(K,Xe)}function iu(s,l){for(var v=-1,O=s.length,V=0,K=[];++v<O;){var le=s[v],pe=l?l(le):le;if(!v||!ra(pe,xe)){var xe=pe;K[V++]=le===0?0:le}}return K}function nf(s){return typeof s=="number"?s:Xo(s)?Ce:+s}function wi(s){if(typeof s=="string")return s;if(Xt(s))return ut(s,wi)+"";if(Xo(s))return Hs?Hs.call(s):"";var l=s+"";return l=="0"&&1/s==-Le?"-0":l}function qo(s,l,v){var O=-1,V=Ee,K=s.length,le=!0,pe=[],xe=pe;if(v)le=!1,V=He;else if(K>=i){var Ue=l?null:It(s);if(Ue)return Zi(Ue);le=!1,V=Dt,xe=new Ws}else xe=l?[]:pe;e:for(;++O<K;){var ze=s[O],Qe=l?l(ze):ze;if(ze=v||ze!==0?ze:0,le&&Qe===Qe){for(var dt=xe.length;dt--;)if(xe[dt]===Qe)continue e;l&&xe.push(Qe),pe.push(ze)}else V(xe,Qe,v)||(xe!==pe&&xe.push(Qe),pe.push(ze))}return pe}function lc(s,l){return l=Eo(l,s),s=wb(s,l),s==null||delete s[La(Ts(l))]}function rf(s,l,v,O){return ea(s,l,v(Xs(s,l)),O)}function Aa(s,l,v,O){for(var V=s.length,K=O?V:-1;(O?K--:++K<V)&&l(s[K],K,s););return v?oi(s,O?0:K,O?K+1:V):oi(s,O?K+1:0,O?V:K)}function of(s,l){var v=s;return v instanceof qt&&(v=v.value()),_t(l,function(O,V){return V.func.apply(V.thisArg,Pt([O],V.args))},v)}function Yr(s,l,v){var O=s.length;if(O<2)return O?qo(s[0]):[];for(var V=-1,K=fe(O);++V<O;)for(var le=s[V],pe=-1;++pe<O;)pe!=V&&(K[V]=zo(K[V]||le,s[pe],l,v));return qo(pr(K,1),l,v)}function ou(s,l,v){for(var O=-1,V=s.length,K=l.length,le={};++O<V;){var pe=O<K?l[O]:n;v(le,s[O],pe)}return le}function su(s){return gr(s)?s:[]}function Gr(s){return typeof s=="function"?s:Po}function Eo(s,l){return Xt(s)?s:sg(s,l)?[s]:Cb(bn(s))}var sf=Gt;function Ss(s,l,v){var O=s.length;return v=v===n?O:v,!l&&v>=O?s:oi(s,l,v)}var pl=Ka||function(s){return vn.clearTimeout(s)};function gl(s,l){if(l)return s.slice();var v=s.length,O=jl?jl(v):new s.constructor(v);return s.copy(O),O}function au(s){var l=new s.constructor(s.byteLength);return new ya(l).set(new ya(s)),l}function af(s,l){var v=l?au(s.buffer):s.buffer;return new s.constructor(v,s.byteOffset,s.byteLength)}function ml(s){var l=new s.constructor(s.source,hi.exec(s));return l.lastIndex=s.lastIndex,l}function vl(s){return rl?at(rl.call(s)):{}}function yl(s,l){var v=l?au(s.buffer):s.buffer;return new s.constructor(v,s.byteOffset,s.length)}function uc(s,l){if(s!==l){var v=s!==n,O=s===null,V=s===s,K=Xo(s),le=l!==n,pe=l===null,xe=l===l,Ue=Xo(l);if(!pe&&!Ue&&!K&&s>l||K&&le&&xe&&!pe&&!Ue||O&&le&&xe||!v&&xe||!V)return 1;if(!O&&!K&&!Ue&&s<l||Ue&&v&&V&&!O&&!K||pe&&v&&V||!le&&V||!xe)return-1}return 0}function bl(s,l,v){for(var O=-1,V=s.criteria,K=l.criteria,le=V.length,pe=v.length;++O<le;){var xe=uc(V[O],K[O]);if(xe){if(O>=pe)return xe;var Ue=v[O];return xe*(Ue=="desc"?-1:1)}}return s.index-l.index}function Ia(s,l,v,O){for(var V=-1,K=s.length,le=v.length,pe=-1,xe=l.length,Ue=Fn(K-le,0),ze=fe(xe+Ue),Qe=!O;++pe<xe;)ze[pe]=l[pe];for(;++V<le;)(Qe||V<K)&&(ze[v[V]]=s[V]);for(;Ue--;)ze[pe++]=s[V++];return ze}function lf(s,l,v,O){for(var V=-1,K=s.length,le=-1,pe=v.length,xe=-1,Ue=l.length,ze=Fn(K-pe,0),Qe=fe(ze+Ue),dt=!O;++V<ze;)Qe[V]=s[V];for(var kt=V;++xe<Ue;)Qe[kt+xe]=l[xe];for(;++le<pe;)(dt||V<K)&&(Qe[kt+v[le]]=s[V++]);return Qe}function kr(s,l){var v=-1,O=s.length;for(l||(l=fe(O));++v<O;)l[v]=s[v];return l}function xi(s,l,v,O){var V=!v;v||(v={});for(var K=-1,le=l.length;++K<le;){var pe=l[K],xe=O?O(v[pe],s[pe],pe,v,s):n;xe===n&&(xe=s[pe]),V?hr(v,pe,xe):Bn(v,pe,xe)}return v}function Jf(s,l){return xi(s,og(s),l)}function uf(s,l){return xi(s,pb(s),l)}function ta(s,l){return function(v,O){var V=Xt(v)?ue:Gs,K=l?l():{};return V(v,s,Ot(O,2),K)}}function Ma(s){return Gt(function(l,v){var O=-1,V=v.length,K=V>1?v[V-1]:n,le=V>2?v[2]:n;for(K=s.length>3&&typeof K=="function"?(V--,K):n,le&&oo(v[0],v[1],le)&&(K=V<3?n:K,V=1),l=at(l);++O<V;){var pe=v[O];pe&&s(l,pe,O,K)}return l})}function g(s,l){return function(v,O){if(v==null)return v;if(!ko(v))return s(v,O);for(var V=v.length,K=l?V:-1,le=at(v);(l?K--:++K<V)&&O(le[K],K,le)!==!1;);return v}}function w(s){return function(l,v,O){for(var V=-1,K=at(l),le=O(l),pe=le.length;pe--;){var xe=le[s?pe:++V];if(v(K[xe],xe,K)===!1)break}return l}}function R(s,l,v){var O=l&B,V=oe(s);function K(){var le=this&&this!==vn&&this instanceof K?V:s;return le.apply(O?v:this,arguments)}return K}function $(s){return function(l){l=bn(l);var v=ii(l)?dr(l):n,O=v?v[0]:l.charAt(0),V=v?Ss(v,1).join(""):l.slice(1);return O[s]()+V}}function X(s){return function(l){return _t(n0(t0(l).replace(Fs,"")),s,"")}}function oe(s){return function(){var l=arguments;switch(l.length){case 0:return new s;case 1:return new s(l[0]);case 2:return new s(l[0],l[1]);case 3:return new s(l[0],l[1],l[2]);case 4:return new s(l[0],l[1],l[2],l[3]);case 5:return new s(l[0],l[1],l[2],l[3],l[4]);case 6:return new s(l[0],l[1],l[2],l[3],l[4],l[5]);case 7:return new s(l[0],l[1],l[2],l[3],l[4],l[5],l[6])}var v=ys(s.prototype),O=s.apply(v,l);return er(O)?O:v}}function ve(s,l,v){var O=oe(s);function V(){for(var K=arguments.length,le=fe(K),pe=K,xe=ff(V);pe--;)le[pe]=arguments[pe];var Ue=K<3&&le[0]!==xe&&le[K-1]!==xe?[]:bi(le,xe);if(K-=Ue.length,K<v)return ht(s,l,b,V.placeholder,n,le,Ue,n,n,v-K);var ze=this&&this!==vn&&this instanceof V?O:s;return H(ze,this,le)}return V}function Ae(s){return function(l,v,O){var V=at(l);if(!ko(l)){var K=Ot(v,3);l=si(l),v=function(pe){return K(V[pe],pe,V)}}var le=s(l,v,O);return le>-1?V[K?l[le]:le]:n}}function h(s){return na(function(l){var v=l.length,O=v,V=Wr.prototype.thru;for(s&&l.reverse();O--;){var K=l[O];if(typeof K!="function")throw new Yt(a);if(V&&!le&&ih(K)=="wrapper")var le=new Wr([],!0)}for(O=le?O:v;++O<v;){K=l[O];var pe=ih(K),xe=pe=="wrapper"?rg(K):n;xe&&ag(xe[0])&&xe[1]==(x|q|Q|ae)&&!xe[4].length&&xe[9]==1?le=le[ih(xe[0])].apply(le,xe[3]):le=K.length==1&&ag(K)?le[pe]():le.thru(K)}return function(){var Ue=arguments,ze=Ue[0];if(le&&Ue.length==1&&Xt(ze))return le.plant(ze).value();for(var Qe=0,dt=v?l[Qe].apply(this,Ue):ze;++Qe<v;)dt=l[Qe].call(this,dt);return dt}})}function b(s,l,v,O,V,K,le,pe,xe,Ue){var ze=l&x,Qe=l&B,dt=l&_,kt=l&(q|se),Mt=l&ce,en=dt?n:oe(s);function Lt(){for(var nn=arguments.length,on=fe(nn),Ko=nn;Ko--;)on[Ko]=arguments[Ko];if(kt)var so=ff(Lt),Zo=Sn(on,so);if(O&&(on=Ia(on,O,V,kt)),K&&(on=lf(on,K,le,kt)),nn-=Zo,kt&&nn<Ue){var mr=bi(on,so);return ht(s,l,b,Lt.placeholder,v,on,mr,pe,xe,Ue-nn)}var ia=Qe?v:this,Tl=dt?ia[s]:s;return nn=on.length,pe?on=IP(on,pe):Mt&&nn>1&&on.reverse(),ze&&xe<nn&&(on.length=xe),this&&this!==vn&&this instanceof Lt&&(Tl=en||oe(Tl)),Tl.apply(ia,on)}return Lt}function P(s,l){return function(v,O){return Qu(v,s,l(O),{})}}function M(s,l){return function(v,O){var V;if(v===n&&O===n)return l;if(v!==n&&(V=v),O!==n){if(V===n)return O;typeof v=="string"||typeof O=="string"?(v=wi(v),O=wi(O)):(v=nf(v),O=nf(O)),V=s(v,O)}return V}}function W(s){return na(function(l){return l=ut(l,yt(Ot())),Gt(function(v){var O=this;return s(l,function(V){return H(V,O,v)})})})}function re(s,l){l=l===n?" ":wi(l);var v=l.length;if(v<2)return v?ic(l,s):l;var O=ic(l,Ja(s/bo(l)));return ii(l)?Ss(dr(O),0,s).join(""):O.slice(0,s)}function de(s,l,v,O){var V=l&B,K=oe(s);function le(){for(var pe=-1,xe=arguments.length,Ue=-1,ze=O.length,Qe=fe(ze+xe),dt=this&&this!==vn&&this instanceof le?K:s;++Ue<ze;)Qe[Ue]=O[Ue];for(;xe--;)Qe[Ue++]=arguments[++pe];return H(dt,V?v:this,Qe)}return le}function Re(s){return function(l,v,O){return O&&typeof O!="number"&&oo(l,v,O)&&(v=O=n),l=Sl(l),v===n?(v=l,l=0):v=Sl(v),O=O===n?l<v?1:-1:Sl(O),ef(l,v,O,s)}}function We(s){return function(l,v){return typeof l=="string"&&typeof v=="string"||(l=Cs(l),v=Cs(v)),s(l,v)}}function ht(s,l,v,O,V,K,le,pe,xe,Ue){var ze=l&q,Qe=ze?le:n,dt=ze?n:le,kt=ze?K:n,Mt=ze?n:K;l|=ze?Q:ye,l&=~(ze?ye:Q),l&G||(l&=~(B|_));var en=[s,l,V,kt,Qe,Mt,dt,pe,xe,Ue],Lt=v.apply(n,en);return ag(s)&&xb(Lt,en),Lt.placeholder=O,Sb(Lt,s,l)}function wt(s){var l=ft[s];return function(v,O){if(v=Cs(v),O=O==null?0:Nn(Qt(O),292),O&&$u(v)){var V=(bn(v)+"e").split("e"),K=l(V[0]+"e"+(+V[1]+O));return V=(bn(K)+"e").split("e"),+(V[0]+"e"+(+V[1]-O))}return l(v)}}var It=Ur&&1/Zi(new Ur([,-0]))[1]==Le?function(s){return new Ur(s)}:Sg;function yn(s){return function(l){var v=Fi(l);return v==Vt?ha(l):v==ir?qa(l):Ne(l,s(l))}}function En(s,l,v,O,V,K,le,pe){var xe=l&_;if(!xe&&typeof s!="function")throw new Yt(a);var Ue=O?O.length:0;if(Ue||(l&=~(Q|ye),O=V=n),le=le===n?le:Fn(Qt(le),0),pe=pe===n?pe:Qt(pe),Ue-=V?V.length:0,l&ye){var ze=O,Qe=V;O=V=n}var dt=xe?n:rg(s),kt=[s,l,v,O,V,ze,Qe,K,le,pe];if(dt&&_P(kt,dt),s=kt[0],l=kt[1],v=kt[2],O=kt[3],V=kt[4],pe=kt[9]=kt[9]===n?xe?0:s.length:Fn(kt[9]-Ue,0),!pe&&l&(q|se)&&(l&=~(q|se)),!l||l==B)var Mt=R(s,l,v);else l==q||l==se?Mt=ve(s,l,pe):(l==Q||l==(B|Q))&&!V.length?Mt=de(s,l,v,O):Mt=b.apply(n,kt);var en=dt?Ra:xb;return Sb(en(Mt,kt),s,l)}function Si(s,l,v,O){return s===n||ra(s,Gn[v])&&!At.call(O,v)?l:s}function cc(s,l,v,O,V,K){return er(s)&&er(l)&&(K.set(l,s),_a(s,l,n,cc,K),K.delete(l)),s}function cf(s){return td(s)?n:s}function fc(s,l,v,O,V,K){var le=v&A,pe=s.length,xe=l.length;if(pe!=xe&&!(le&&xe>pe))return!1;var Ue=K.get(s),ze=K.get(l);if(Ue&&ze)return Ue==l&&ze==s;var Qe=-1,dt=!0,kt=v&I?new Ws:n;for(K.set(s,l),K.set(l,s);++Qe<pe;){var Mt=s[Qe],en=l[Qe];if(O)var Lt=le?O(en,Mt,Qe,l,s,K):O(Mt,en,Qe,s,l,K);if(Lt!==n){if(Lt)continue;dt=!1;break}if(kt){if(!fn(l,function(nn,on){if(!Dt(kt,on)&&(Mt===nn||V(Mt,nn,v,O,K)))return kt.push(on)})){dt=!1;break}}else if(!(Mt===en||V(Mt,en,v,O,K))){dt=!1;break}}return K.delete(s),K.delete(l),dt}function lu(s,l,v,O,V,K,le){switch(v){case ln:if(s.byteLength!=l.byteLength||s.byteOffset!=l.byteOffset)return!1;s=s.buffer,l=l.buffer;case li:return!(s.byteLength!=l.byteLength||!K(new ya(s),new ya(l)));case bt:case xt:case qn:return ra(+s,+l);case Ct:return s.name==l.name&&s.message==l.message;case Or:case un:return s==l+"";case Vt:var pe=ha;case ir:var xe=O&A;if(pe||(pe=Zi),s.size!=l.size&&!xe)return!1;var Ue=le.get(s);if(Ue)return Ue==l;O|=I,le.set(s,l);var ze=fc(pe(s),pe(l),O,V,K,le);return le.delete(s),ze;case dn:if(rl)return rl.call(s)==rl.call(l)}return!1}function eg(s,l,v,O,V,K){var le=v&A,pe=tg(s),xe=pe.length,Ue=tg(l),ze=Ue.length;if(xe!=ze&&!le)return!1;for(var Qe=xe;Qe--;){var dt=pe[Qe];if(!(le?dt in l:At.call(l,dt)))return!1}var kt=K.get(s),Mt=K.get(l);if(kt&&Mt)return kt==l&&Mt==s;var en=!0;K.set(s,l),K.set(l,s);for(var Lt=le;++Qe<xe;){dt=pe[Qe];var nn=s[dt],on=l[dt];if(O)var Ko=le?O(on,nn,dt,l,s,K):O(nn,on,dt,s,l,K);if(!(Ko===n?nn===on||V(nn,on,v,O,K):Ko)){en=!1;break}Lt||(Lt=dt=="constructor")}if(en&&!Lt){var so=s.constructor,Zo=l.constructor;so!=Zo&&"constructor"in s&&"constructor"in l&&!(typeof so=="function"&&so instanceof so&&typeof Zo=="function"&&Zo instanceof Zo)&&(en=!1)}return K.delete(s),K.delete(l),en}function na(s){return ug(bb(s,n,Pb),s+"")}function tg(s){return ol(s,si,og)}function ng(s){return ol(s,Do,pb)}var rg=ms?function(s){return ms.get(s)}:Sg;function ih(s){for(var l=s.name+"",v=vs[l],O=At.call(vs,l)?v.length:0;O--;){var V=v[O],K=V.func;if(K==null||K==s)return V.name}return l}function ff(s){var l=At.call(z,"placeholder")?z:s;return l.placeholder}function Ot(){var s=z.iteratee||wg;return s=s===wg?Pa:s,arguments.length?s(arguments[0],arguments[1]):s}function oh(s,l){var v=s.__data__;return kP(l)?v[typeof l=="string"?"string":"hash"]:v.map}function ig(s){for(var l=si(s),v=l.length;v--;){var O=l[v],V=s[O];l[v]=[O,V,vb(V)]}return l}function dc(s,l){var v=cs(s,l);return nc(v)?v:n}function bP(s){var l=At.call(s,Qi),v=s[Qi];try{s[Qi]=n;var O=!0}catch{}var V=hs.call(s);return O&&(l?s[Qi]=v:delete s[Qi]),V}var og=Qa?function(s){return s==null?[]:(s=at(s),Fe(Qa(s),function(l){return ju.call(s,l)}))}:Tg,pb=Qa?function(s){for(var l=[];s;)Pt(l,og(s)),s=ba(s);return l}:Tg,Fi=Er;(Ho&&Fi(new Ho(new ArrayBuffer(1)))!=ln||eo&&Fi(new eo)!=Vt||el&&Fi(el.resolve())!=Dn||Ur&&Fi(new Ur)!=ir||ps&&Fi(new ps)!=pt)&&(Fi=function(s){var l=Er(s),v=l==Xn?s.constructor:n,O=v?hc(v):"";if(O)switch(O){case tl:return ln;case zc:return Vt;case Yc:return Dn;case Vl:return ir;case nl:return pt}return l});function wP(s,l,v){for(var O=-1,V=v.length;++O<V;){var K=v[O],le=K.size;switch(K.type){case"drop":s+=le;break;case"dropRight":l-=le;break;case"take":l=Nn(l,s+le);break;case"takeRight":s=Fn(s,l-le);break}}return{start:s,end:l}}function xP(s){var l=s.match(Ls);return l?l[1].split(Zr):[]}function gb(s,l,v){l=Eo(l,s);for(var O=-1,V=l.length,K=!1;++O<V;){var le=La(l[O]);if(!(K=s!=null&&v(s,le)))break;s=s[le]}return K||++O!=V?K:(V=s==null?0:s.length,!!V&&dh(V)&&wl(le,V)&&(Xt(s)||pc(s)))}function SP(s){var l=s.length,v=new s.constructor(l);return l&&typeof s[0]=="string"&&At.call(s,"index")&&(v.index=s.index,v.input=s.input),v}function mb(s){return typeof s.constructor=="function"&&!Qf(s)?ys(ba(s)):{}}function TP(s,l,v){var O=s.constructor;switch(l){case li:return au(s);case bt:case xt:return new O(+s);case ln:return af(s,v);case Ui:case Wi:case zi:case _r:case Un:case Rr:case br:case qr:case Xr:return yl(s,v);case Vt:return new O;case qn:case un:return new O(s);case Or:return ml(s);case ir:return new O;case dn:return vl(s)}}function CP(s,l){var v=l.length;if(!v)return s;var O=v-1;return l[O]=(v>1?"& ":"")+l[O],l=l.join(v>2?", ":" "),s.replace(Ms,`{
|
|
152
|
-
/* [wrapped with `+l+`] */
|
|
153
|
-
`)}function EP(s){return Xt(s)||pc(s)||!!(Bl&&s&&s[Bl])}function wl(s,l){var v=typeof s;return l=l??Ye,!!l&&(v=="number"||v!="symbol"&&xr.test(s))&&s>-1&&s%1==0&&s<l}function oo(s,l,v){if(!er(v))return!1;var O=typeof l;return(O=="number"?ko(v)&&wl(l,v.length):O=="string"&&l in v)?ra(v[l],s):!1}function sg(s,l){if(Xt(s))return!1;var v=typeof s;return v=="number"||v=="symbol"||v=="boolean"||s==null||Xo(s)?!0:mn.test(s)||!fi.test(s)||l!=null&&s in at(l)}function kP(s){var l=typeof s;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?s!=="__proto__":s===null}function ag(s){var l=ih(s),v=z[l];if(typeof v!="function"||!(l in qt.prototype))return!1;if(s===v)return!0;var O=rg(v);return!!O&&s===O[0]}function DP(s){return!!Tn&&Tn in s}var PP=Hr?xl:Cg;function Qf(s){var l=s&&s.constructor,v=typeof l=="function"&&l.prototype||Gn;return s===v}function vb(s){return s===s&&!er(s)}function yb(s,l){return function(v){return v==null?!1:v[s]===l&&(l!==n||s in at(v))}}function OP(s){var l=ch(s,function(O){return v.size===d&&v.clear(),O}),v=l.cache;return l}function _P(s,l){var v=s[1],O=l[1],V=v|O,K=V<(B|_|x),le=O==x&&v==q||O==x&&v==ae&&s[7].length<=l[8]||O==(x|ae)&&l[7].length<=l[8]&&v==q;if(!(K||le))return s;O&B&&(s[2]=l[2],V|=v&B?0:G);var pe=l[3];if(pe){var xe=s[3];s[3]=xe?Ia(xe,pe,l[4]):pe,s[4]=xe?bi(s[3],y):l[4]}return pe=l[5],pe&&(xe=s[5],s[5]=xe?lf(xe,pe,l[6]):pe,s[6]=xe?bi(s[5],y):l[6]),pe=l[7],pe&&(s[7]=pe),O&x&&(s[8]=s[8]==null?l[8]:Nn(s[8],l[8])),s[9]==null&&(s[9]=l[9]),s[0]=l[0],s[1]=V,s}function RP(s){var l=[];if(s!=null)for(var v in at(s))l.push(v);return l}function AP(s){return hs.call(s)}function bb(s,l,v){return l=Fn(l===n?s.length-1:l,0),function(){for(var O=arguments,V=-1,K=Fn(O.length-l,0),le=fe(K);++V<K;)le[V]=O[l+V];V=-1;for(var pe=fe(l+1);++V<l;)pe[V]=O[V];return pe[l]=v(le),H(s,this,pe)}}function wb(s,l){return l.length<2?s:Xs(s,oi(l,0,-1))}function IP(s,l){for(var v=s.length,O=Nn(l.length,v),V=kr(s);O--;){var K=l[O];s[O]=wl(K,v)?V[K]:n}return s}function lg(s,l){if(!(l==="constructor"&&typeof s[l]=="function")&&l!="__proto__")return s[l]}var xb=Tb(Ra),ed=$l||function(s,l){return vn.setTimeout(s,l)},ug=Tb(oc);function Sb(s,l,v){var O=l+"";return ug(s,CP(O,MP(xP(O),v)))}function Tb(s){var l=0,v=0;return function(){var O=Hu(),V=ot-(O-v);if(v=O,V>0){if(++l>=Ze)return arguments[0]}else l=0;return s.apply(n,arguments)}}function sh(s,l){var v=-1,O=s.length,V=O-1;for(l=l===n?O:l;++v<l;){var K=nu(v,V),le=s[K];s[K]=s[v],s[v]=le}return s.length=l,s}var Cb=OP(function(s){var l=[];return s.charCodeAt(0)===46&&l.push(""),s.replace(co,function(v,O,V,K){l.push(V?K.replace(Io,"$1"):O||v)}),l});function La(s){if(typeof s=="string"||Xo(s))return s;var l=s+"";return l=="0"&&1/s==-Le?"-0":l}function hc(s){if(s!=null){try{return Ji.call(s)}catch{}try{return s+""}catch{}}return""}function MP(s,l){return ie(tt,function(v){var O="_."+v[0];l&v[1]&&!Ee(s,O)&&s.push(O)}),s.sort()}function Eb(s){if(s instanceof qt)return s.clone();var l=new Wr(s.__wrapped__,s.__chain__);return l.__actions__=kr(s.__actions__),l.__index__=s.__index__,l.__values__=s.__values__,l}function LP(s,l,v){(v?oo(s,l,v):l===n)?l=1:l=Fn(Qt(l),0);var O=s==null?0:s.length;if(!O||l<1)return[];for(var V=0,K=0,le=fe(Ja(O/l));V<O;)le[K++]=oi(s,V,V+=l);return le}function FP(s){for(var l=-1,v=s==null?0:s.length,O=0,V=[];++l<v;){var K=s[l];K&&(V[O++]=K)}return V}function NP(){var s=arguments.length;if(!s)return[];for(var l=fe(s-1),v=arguments[0],O=s;O--;)l[O-1]=arguments[O];return Pt(Xt(v)?kr(v):[v],pr(l,1))}var jP=Gt(function(s,l){return gr(s)?zo(s,pr(l,1,gr,!0)):[]}),BP=Gt(function(s,l){var v=Ts(l);return gr(v)&&(v=n),gr(s)?zo(s,pr(l,1,gr,!0),Ot(v,2)):[]}),$P=Gt(function(s,l){var v=Ts(l);return gr(v)&&(v=n),gr(s)?zo(s,pr(l,1,gr,!0),n,v):[]});function VP(s,l,v){var O=s==null?0:s.length;return O?(l=v||l===n?1:Qt(l),oi(s,l<0?0:l,O)):[]}function HP(s,l,v){var O=s==null?0:s.length;return O?(l=v||l===n?1:Qt(l),l=O-l,oi(s,0,l<0?0:l)):[]}function UP(s,l){return s&&s.length?Aa(s,Ot(l,3),!0,!0):[]}function WP(s,l){return s&&s.length?Aa(s,Ot(l,3),!0):[]}function zP(s,l,v,O){var V=s==null?0:s.length;return V?(v&&typeof v!="number"&&oo(s,l,v)&&(v=0,O=V),Zc(s,l,v,O)):[]}function kb(s,l,v){var O=s==null?0:s.length;if(!O)return-1;var V=v==null?0:Qt(v);return V<0&&(V=Fn(O+V,0)),zt(s,Ot(l,3),V)}function Db(s,l,v){var O=s==null?0:s.length;if(!O)return-1;var V=O-1;return v!==n&&(V=Qt(v),V=v<0?Fn(O+V,0):Nn(V,O-1)),zt(s,Ot(l,3),V,!0)}function Pb(s){var l=s==null?0:s.length;return l?pr(s,1):[]}function YP(s){var l=s==null?0:s.length;return l?pr(s,Le):[]}function GP(s,l){var v=s==null?0:s.length;return v?(l=l===n?1:Qt(l),pr(s,l)):[]}function qP(s){for(var l=-1,v=s==null?0:s.length,O={};++l<v;){var V=s[l];O[V[0]]=V[1]}return O}function Ob(s){return s&&s.length?s[0]:n}function XP(s,l,v){var O=s==null?0:s.length;if(!O)return-1;var V=v==null?0:Qt(v);return V<0&&(V=Fn(O+V,0)),rn(s,l,V)}function KP(s){var l=s==null?0:s.length;return l?oi(s,0,-1):[]}var ZP=Gt(function(s){var l=ut(s,su);return l.length&&l[0]===s[0]?ka(l):[]}),JP=Gt(function(s){var l=Ts(s),v=ut(s,su);return l===Ts(v)?l=n:v.pop(),v.length&&v[0]===s[0]?ka(v,Ot(l,2)):[]}),QP=Gt(function(s){var l=Ts(s),v=ut(s,su);return l=typeof l=="function"?l:n,l&&v.pop(),v.length&&v[0]===s[0]?ka(v,n,l):[]});function eO(s,l){return s==null?"":xa.call(s,l)}function Ts(s){var l=s==null?0:s.length;return l?s[l-1]:n}function tO(s,l,v){var O=s==null?0:s.length;if(!O)return-1;var V=O;return v!==n&&(V=Qt(v),V=V<0?Fn(O+V,0):Nn(V,O-1)),l===l?ds(s,l,V):zt(s,vo,V,!0)}function nO(s,l){return s&&s.length?Js(s,Qt(l)):n}var rO=Gt(_b);function _b(s,l){return s&&s.length&&l&&l.length?Qs(s,l):s}function iO(s,l,v){return s&&s.length&&l&&l.length?Qs(s,l,Ot(v,2)):s}function oO(s,l,v){return s&&s.length&&l&&l.length?Qs(s,l,n,v):s}var sO=na(function(s,l){var v=s==null?0:s.length,O=Yu(s,l);return fl(s,ut(l,function(V){return wl(V,v)?+V:V}).sort(uc)),O});function aO(s,l){var v=[];if(!(s&&s.length))return v;var O=-1,V=[],K=s.length;for(l=Ot(l,3);++O<K;){var le=s[O];l(le,O,s)&&(v.push(le),V.push(O))}return fl(s,V),v}function cg(s){return s==null?s:Wc.call(s)}function lO(s,l,v){var O=s==null?0:s.length;return O?(v&&typeof v!="number"&&oo(s,l,v)?(l=0,v=O):(l=l==null?0:Qt(l),v=v===n?O:Qt(v)),oi(s,l,v)):[]}function uO(s,l){return hl(s,l)}function cO(s,l,v){return ru(s,l,Ot(v,2))}function fO(s,l){var v=s==null?0:s.length;if(v){var O=hl(s,l);if(O<v&&ra(s[O],l))return O}return-1}function dO(s,l){return hl(s,l,!0)}function hO(s,l,v){return ru(s,l,Ot(v,2),!0)}function pO(s,l){var v=s==null?0:s.length;if(v){var O=hl(s,l,!0)-1;if(ra(s[O],l))return O}return-1}function gO(s){return s&&s.length?iu(s):[]}function mO(s,l){return s&&s.length?iu(s,Ot(l,2)):[]}function vO(s){var l=s==null?0:s.length;return l?oi(s,1,l):[]}function yO(s,l,v){return s&&s.length?(l=v||l===n?1:Qt(l),oi(s,0,l<0?0:l)):[]}function bO(s,l,v){var O=s==null?0:s.length;return O?(l=v||l===n?1:Qt(l),l=O-l,oi(s,l<0?0:l,O)):[]}function wO(s,l){return s&&s.length?Aa(s,Ot(l,3),!1,!0):[]}function xO(s,l){return s&&s.length?Aa(s,Ot(l,3)):[]}var SO=Gt(function(s){return qo(pr(s,1,gr,!0))}),TO=Gt(function(s){var l=Ts(s);return gr(l)&&(l=n),qo(pr(s,1,gr,!0),Ot(l,2))}),CO=Gt(function(s){var l=Ts(s);return l=typeof l=="function"?l:n,qo(pr(s,1,gr,!0),n,l)});function EO(s){return s&&s.length?qo(s):[]}function kO(s,l){return s&&s.length?qo(s,Ot(l,2)):[]}function DO(s,l){return l=typeof l=="function"?l:n,s&&s.length?qo(s,n,l):[]}function fg(s){if(!(s&&s.length))return[];var l=0;return s=Fe(s,function(v){if(gr(v))return l=Fn(v.length,l),!0}),Te(l,function(v){return ut(s,k(v))})}function Rb(s,l){if(!(s&&s.length))return[];var v=fg(s);return l==null?v:ut(v,function(O){return H(l,n,O)})}var PO=Gt(function(s,l){return gr(s)?zo(s,l):[]}),OO=Gt(function(s){return Yr(Fe(s,gr))}),_O=Gt(function(s){var l=Ts(s);return gr(l)&&(l=n),Yr(Fe(s,gr),Ot(l,2))}),RO=Gt(function(s){var l=Ts(s);return l=typeof l=="function"?l:n,Yr(Fe(s,gr),n,l)}),AO=Gt(fg);function IO(s,l){return ou(s||[],l||[],Bn)}function MO(s,l){return ou(s||[],l||[],ea)}var LO=Gt(function(s){var l=s.length,v=l>1?s[l-1]:n;return v=typeof v=="function"?(s.pop(),v):n,Rb(s,v)});function Ab(s){var l=z(s);return l.__chain__=!0,l}function FO(s,l){return l(s),s}function ah(s,l){return l(s)}var NO=na(function(s){var l=s.length,v=l?s[0]:0,O=this.__wrapped__,V=function(K){return Yu(K,s)};return l>1||this.__actions__.length||!(O instanceof qt)||!wl(v)?this.thru(V):(O=O.slice(v,+v+(l?1:0)),O.__actions__.push({func:ah,args:[V],thisArg:n}),new Wr(O,this.__chain__).thru(function(K){return l&&!K.length&&K.push(n),K}))});function jO(){return Ab(this)}function BO(){return new Wr(this.value(),this.__chain__)}function $O(){this.__values__===n&&(this.__values__=Yb(this.value()));var s=this.__index__>=this.__values__.length,l=s?n:this.__values__[this.__index__++];return{done:s,value:l}}function VO(){return this}function HO(s){for(var l,v=this;v instanceof Us;){var O=Eb(v);O.__index__=0,O.__values__=n,l?V.__wrapped__=O:l=O;var V=O;v=v.__wrapped__}return V.__wrapped__=s,l}function UO(){var s=this.__wrapped__;if(s instanceof qt){var l=s;return this.__actions__.length&&(l=new qt(this)),l=l.reverse(),l.__actions__.push({func:ah,args:[cg],thisArg:n}),new Wr(l,this.__chain__)}return this.thru(cg)}function WO(){return of(this.__wrapped__,this.__actions__)}var zO=ta(function(s,l,v){At.call(s,v)?++s[v]:hr(s,v,1)});function YO(s,l,v){var O=Xt(s)?Me:Kl;return v&&oo(s,l,v)&&(l=n),O(s,Ot(l,3))}function GO(s,l){var v=Xt(s)?Fe:Ku;return v(s,Ot(l,3))}var qO=Ae(kb),XO=Ae(Db);function KO(s,l){return pr(lh(s,l),1)}function ZO(s,l){return pr(lh(s,l),Le)}function JO(s,l,v){return v=v===n?1:Qt(v),pr(lh(s,l),v)}function Ib(s,l){var v=Xt(s)?ie:xs;return v(s,Ot(l,3))}function Mb(s,l){var v=Xt(s)?we:Xu;return v(s,Ot(l,3))}var QO=ta(function(s,l,v){At.call(s,v)?s[v].push(l):hr(s,v,[l])});function e_(s,l,v,O){s=ko(s)?s:hf(s),v=v&&!O?Qt(v):0;var V=s.length;return v<0&&(v=Fn(V+v,0)),hh(s)?v<=V&&s.indexOf(l,v)>-1:!!V&&rn(s,l,v)>-1}var t_=Gt(function(s,l,v){var O=-1,V=typeof l=="function",K=ko(s)?fe(s.length):[];return xs(s,function(le){K[++O]=V?H(l,le,v):Ii(le,l,v)}),K}),n_=ta(function(s,l,v){hr(s,v,l)});function lh(s,l){var v=Xt(s)?ut:Oa;return v(s,Ot(l,3))}function r_(s,l,v,O){return s==null?[]:(Xt(l)||(l=l==null?[]:[l]),v=O?n:v,Xt(v)||(v=v==null?[]:[v]),tu(s,l,v))}var i_=ta(function(s,l,v){s[v?0:1].push(l)},function(){return[[],[]]});function o_(s,l,v){var O=Xt(s)?_t:U,V=arguments.length<3;return O(s,Ot(l,4),v,V,xs)}function s_(s,l,v){var O=Xt(s)?Mn:U,V=arguments.length<3;return O(s,Ot(l,4),v,V,Xu)}function a_(s,l){var v=Xt(s)?Fe:Ku;return v(s,fh(Ot(l,3)))}function l_(s){var l=Xt(s)?an:dl;return l(s)}function u_(s,l,v){(v?oo(s,l,v):l===n)?l=1:l=Qt(l);var O=Xt(s)?Ri:tf;return O(s,l)}function c_(s){var l=Xt(s)?Ys:sc;return l(s)}function f_(s){if(s==null)return 0;if(ko(s))return hh(s)?bo(s):s.length;var l=Fi(s);return l==Vt||l==ir?s.size:cl(s).length}function d_(s,l,v){var O=Xt(s)?fn:ac;return v&&oo(s,l,v)&&(l=n),O(s,Ot(l,3))}var h_=Gt(function(s,l){if(s==null)return[];var v=l.length;return v>1&&oo(s,l[0],l[1])?l=[]:v>2&&oo(l[0],l[1],l[2])&&(l=[l[0]]),tu(s,pr(l,1),[])}),uh=Za||function(){return vn.Date.now()};function p_(s,l){if(typeof l!="function")throw new Yt(a);return s=Qt(s),function(){if(--s<1)return l.apply(this,arguments)}}function Lb(s,l,v){return l=v?n:l,l=s&&l==null?s.length:l,En(s,x,n,n,n,n,l)}function Fb(s,l){var v;if(typeof l!="function")throw new Yt(a);return s=Qt(s),function(){return--s>0&&(v=l.apply(this,arguments)),s<=1&&(l=n),v}}var dg=Gt(function(s,l,v){var O=B;if(v.length){var V=bi(v,ff(dg));O|=Q}return En(s,O,l,v,V)}),Nb=Gt(function(s,l,v){var O=B|_;if(v.length){var V=bi(v,ff(Nb));O|=Q}return En(l,O,s,v,V)});function jb(s,l,v){l=v?n:l;var O=En(s,q,n,n,n,n,n,l);return O.placeholder=jb.placeholder,O}function Bb(s,l,v){l=v?n:l;var O=En(s,se,n,n,n,n,n,l);return O.placeholder=Bb.placeholder,O}function $b(s,l,v){var O,V,K,le,pe,xe,Ue=0,ze=!1,Qe=!1,dt=!0;if(typeof s!="function")throw new Yt(a);l=Cs(l)||0,er(v)&&(ze=!!v.leading,Qe="maxWait"in v,K=Qe?Fn(Cs(v.maxWait)||0,l):K,dt="trailing"in v?!!v.trailing:dt);function kt(mr){var ia=O,Tl=V;return O=V=n,Ue=mr,le=s.apply(Tl,ia),le}function Mt(mr){return Ue=mr,pe=ed(nn,l),ze?kt(mr):le}function en(mr){var ia=mr-xe,Tl=mr-Ue,o0=l-ia;return Qe?Nn(o0,K-Tl):o0}function Lt(mr){var ia=mr-xe,Tl=mr-Ue;return xe===n||ia>=l||ia<0||Qe&&Tl>=K}function nn(){var mr=uh();if(Lt(mr))return on(mr);pe=ed(nn,en(mr))}function on(mr){return pe=n,dt&&O?kt(mr):(O=V=n,le)}function Ko(){pe!==n&&pl(pe),Ue=0,O=xe=V=pe=n}function so(){return pe===n?le:on(uh())}function Zo(){var mr=uh(),ia=Lt(mr);if(O=arguments,V=this,xe=mr,ia){if(pe===n)return Mt(xe);if(Qe)return pl(pe),pe=ed(nn,l),kt(xe)}return pe===n&&(pe=ed(nn,l)),le}return Zo.cancel=Ko,Zo.flush=so,Zo}var g_=Gt(function(s,l){return qu(s,1,l)}),m_=Gt(function(s,l,v){return qu(s,Cs(l)||0,v)});function v_(s){return En(s,ce)}function ch(s,l){if(typeof s!="function"||l!=null&&typeof l!="function")throw new Yt(a);var v=function(){var O=arguments,V=l?l.apply(this,O):O[0],K=v.cache;if(K.has(V))return K.get(V);var le=s.apply(this,O);return v.cache=K.set(V,le)||K,le};return v.cache=new(ch.Cache||Uo),v}ch.Cache=Uo;function fh(s){if(typeof s!="function")throw new Yt(a);return function(){var l=arguments;switch(l.length){case 0:return!s.call(this);case 1:return!s.call(this,l[0]);case 2:return!s.call(this,l[0],l[1]);case 3:return!s.call(this,l[0],l[1],l[2])}return!s.apply(this,l)}}function y_(s){return Fb(2,s)}var b_=sf(function(s,l){l=l.length==1&&Xt(l[0])?ut(l[0],yt(Ot())):ut(pr(l,1),yt(Ot()));var v=l.length;return Gt(function(O){for(var V=-1,K=Nn(O.length,v);++V<K;)O[V]=l[V].call(this,O[V]);return H(s,this,O)})}),hg=Gt(function(s,l){var v=bi(l,ff(hg));return En(s,Q,n,l,v)}),Vb=Gt(function(s,l){var v=bi(l,ff(Vb));return En(s,ye,n,l,v)}),w_=na(function(s,l){return En(s,ae,n,n,n,l)});function x_(s,l){if(typeof s!="function")throw new Yt(a);return l=l===n?l:Qt(l),Gt(s,l)}function S_(s,l){if(typeof s!="function")throw new Yt(a);return l=l==null?0:Fn(Qt(l),0),Gt(function(v){var O=v[l],V=Ss(v,0,l);return O&&Pt(V,O),H(s,this,V)})}function T_(s,l,v){var O=!0,V=!0;if(typeof s!="function")throw new Yt(a);return er(v)&&(O="leading"in v?!!v.leading:O,V="trailing"in v?!!v.trailing:V),$b(s,l,{leading:O,maxWait:l,trailing:V})}function C_(s){return Lb(s,1)}function E_(s,l){return hg(Gr(l),s)}function k_(){if(!arguments.length)return[];var s=arguments[0];return Xt(s)?s:[s]}function D_(s){return zr(s,C)}function P_(s,l){return l=typeof l=="function"?l:n,zr(s,C,l)}function O_(s){return zr(s,p|C)}function __(s,l){return l=typeof l=="function"?l:n,zr(s,p|C,l)}function R_(s,l){return l==null||Kc(s,l,si(l))}function ra(s,l){return s===l||s!==s&&l!==l}var A_=We(sl),I_=We(function(s,l){return s>=l}),pc=ul(function(){return arguments}())?ul:function(s){return lr(s)&&At.call(s,"callee")&&!ju.call(s,"callee")},Xt=fe.isArray,M_=f?yt(f):Ql;function ko(s){return s!=null&&dh(s.length)&&!xl(s)}function gr(s){return lr(s)&&ko(s)}function L_(s){return s===!0||s===!1||lr(s)&&Er(s)==bt}var uu=Bu||Cg,F_=m?yt(m):Ks;function N_(s){return lr(s)&&s.nodeType===1&&!td(s)}function j_(s){if(s==null)return!0;if(ko(s)&&(Xt(s)||typeof s=="string"||typeof s.splice=="function"||uu(s)||df(s)||pc(s)))return!s.length;var l=Fi(s);if(l==Vt||l==ir)return!s.size;if(Qf(s))return!cl(s).length;for(var v in s)if(At.call(s,v))return!1;return!0}function B_(s,l){return Da(s,l)}function $_(s,l,v){v=typeof v=="function"?v:n;var O=v?v(s,l):n;return O===n?Da(s,l,n,v):!!O}function pg(s){if(!lr(s))return!1;var l=Er(s);return l==Ct||l==gt||typeof s.message=="string"&&typeof s.name=="string"&&!td(s)}function V_(s){return typeof s=="number"&&$u(s)}function xl(s){if(!er(s))return!1;var l=Er(s);return l==rt||l==Bt||l==lt||l==Hi}function Hb(s){return typeof s=="number"&&s==Qt(s)}function dh(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=Ye}function er(s){var l=typeof s;return s!=null&&(l=="object"||l=="function")}function lr(s){return s!=null&&typeof s=="object"}var Ub=T?yt(T):Zs;function H_(s,l){return s===l||tc(s,l,ig(l))}function U_(s,l,v){return v=typeof v=="function"?v:n,tc(s,l,ig(l),v)}function W_(s){return Wb(s)&&s!=+s}function z_(s){if(PP(s))throw new Ve(o);return nc(s)}function Y_(s){return s===null}function G_(s){return s==null}function Wb(s){return typeof s=="number"||lr(s)&&Er(s)==qn}function td(s){if(!lr(s)||Er(s)!=Xn)return!1;var l=ba(s);if(l===null)return!0;var v=At.call(l,"constructor")&&l.constructor;return typeof v=="function"&&v instanceof v&&Ji.call(v)==Fu}var gg=D?yt(D):Co;function q_(s){return Hb(s)&&s>=-Ye&&s<=Ye}var zb=F?yt(F):Kf;function hh(s){return typeof s=="string"||!Xt(s)&&lr(s)&&Er(s)==un}function Xo(s){return typeof s=="symbol"||lr(s)&&Er(s)==dn}var df=j?yt(j):Zf;function X_(s){return s===n}function K_(s){return lr(s)&&Fi(s)==pt}function Z_(s){return lr(s)&&Er(s)==Rn}var J_=We(ro),Q_=We(function(s,l){return s<=l});function Yb(s){if(!s)return[];if(ko(s))return hh(s)?dr(s):kr(s);if(Bo&&s[Bo])return yo(s[Bo]());var l=Fi(s),v=l==Vt?ha:l==ir?Zi:hf;return v(s)}function Sl(s){if(!s)return s===0?s:0;if(s=Cs(s),s===Le||s===-Le){var l=s<0?-1:1;return l*st}return s===s?s:0}function Qt(s){var l=Sl(s),v=l%1;return l===l?v?l-v:l:0}function Gb(s){return s?ws(Qt(s),0,_e):0}function Cs(s){if(typeof s=="number")return s;if(Xo(s))return Ce;if(er(s)){var l=typeof s.valueOf=="function"?s.valueOf():s;s=er(l)?l+"":l}if(typeof s!="string")return s===0?s:+s;s=Ke(s);var v=po.test(s);return v||Jr.test(s)?$s(s.slice(2),v?2:8):Pi.test(s)?Ce:+s}function qb(s){return xi(s,Do(s))}function eR(s){return s?ws(Qt(s),-Ye,Ye):s===0?s:0}function bn(s){return s==null?"":wi(s)}var tR=Ma(function(s,l){if(Qf(l)||ko(l)){xi(l,si(l),s);return}for(var v in l)At.call(l,v)&&Bn(s,v,l[v])}),Xb=Ma(function(s,l){xi(l,Do(l),s)}),ph=Ma(function(s,l,v,O){xi(l,Do(l),s,O)}),nR=Ma(function(s,l,v,O){xi(l,si(l),s,O)}),rR=na(Yu);function iR(s,l){var v=ys(s);return l==null?v:no(v,l)}var oR=Gt(function(s,l){s=at(s);var v=-1,O=l.length,V=O>2?l[2]:n;for(V&&oo(l[0],l[1],V)&&(O=1);++v<O;)for(var K=l[v],le=Do(K),pe=-1,xe=le.length;++pe<xe;){var Ue=le[pe],ze=s[Ue];(ze===n||ra(ze,Gn[Ue])&&!At.call(s,Ue))&&(s[Ue]=K[Ue])}return s}),sR=Gt(function(s){return s.push(n,cc),H(Kb,n,s)});function aR(s,l){return Vr(s,Ot(l,3),To)}function lR(s,l){return Vr(s,Ot(l,3),Ju)}function uR(s,l){return s==null?s:Zu(s,Ot(l,3),Do)}function cR(s,l){return s==null?s:Jc(s,Ot(l,3),Do)}function fR(s,l){return s&&To(s,Ot(l,3))}function dR(s,l){return s&&Ju(s,Ot(l,3))}function hR(s){return s==null?[]:Jl(s,si(s))}function pR(s){return s==null?[]:Jl(s,Do(s))}function mg(s,l,v){var O=s==null?n:Xs(s,l);return O===n?v:O}function gR(s,l){return s!=null&&gb(s,l,al)}function vg(s,l){return s!=null&&gb(s,l,Qc)}var mR=P(function(s,l,v){l!=null&&typeof l.toString!="function"&&(l=hs.call(l)),s[l]=v},bg(Po)),vR=P(function(s,l,v){l!=null&&typeof l.toString!="function"&&(l=hs.call(l)),At.call(s,l)?s[l].push(v):s[l]=[v]},Ot),yR=Gt(Ii);function si(s){return ko(s)?bs(s):cl(s)}function Do(s){return ko(s)?bs(s,!0):eu(s)}function bR(s,l){var v={};return l=Ot(l,3),To(s,function(O,V,K){hr(v,l(O,V,K),O)}),v}function wR(s,l){var v={};return l=Ot(l,3),To(s,function(O,V,K){hr(v,V,l(O,V,K))}),v}var xR=Ma(function(s,l,v){_a(s,l,v)}),Kb=Ma(function(s,l,v,O){_a(s,l,v,O)}),SR=na(function(s,l){var v={};if(s==null)return v;var O=!1;l=ut(l,function(K){return K=Eo(K,s),O||(O=K.length>1),K}),xi(s,ng(s),v),O&&(v=zr(v,p|S|C,cf));for(var V=l.length;V--;)lc(v,l[V]);return v});function TR(s,l){return Zb(s,fh(Ot(l)))}var CR=na(function(s,l){return s==null?{}:Li(s,l)});function Zb(s,l){if(s==null)return{};var v=ut(ng(s),function(O){return[O]});return l=Ot(l),Go(s,v,function(O,V){return l(O,V[0])})}function ER(s,l,v){l=Eo(l,s);var O=-1,V=l.length;for(V||(V=1,s=n);++O<V;){var K=s==null?n:s[La(l[O])];K===n&&(O=V,K=v),s=xl(K)?K.call(s):K}return s}function kR(s,l,v){return s==null?s:ea(s,l,v)}function DR(s,l,v,O){return O=typeof O=="function"?O:n,s==null?s:ea(s,l,v,O)}var Jb=yn(si),Qb=yn(Do);function PR(s,l,v){var O=Xt(s),V=O||uu(s)||df(s);if(l=Ot(l,4),v==null){var K=s&&s.constructor;V?v=O?new K:[]:er(s)?v=xl(K)?ys(ba(s)):{}:v={}}return(V?ie:To)(s,function(le,pe,xe){return l(v,le,pe,xe)}),v}function OR(s,l){return s==null?!0:lc(s,l)}function _R(s,l,v){return s==null?s:rf(s,l,Gr(v))}function RR(s,l,v,O){return O=typeof O=="function"?O:n,s==null?s:rf(s,l,Gr(v),O)}function hf(s){return s==null?[]:Nt(s,si(s))}function AR(s){return s==null?[]:Nt(s,Do(s))}function IR(s,l,v){return v===n&&(v=l,l=n),v!==n&&(v=Cs(v),v=v===v?v:0),l!==n&&(l=Cs(l),l=l===l?l:0),ws(Cs(s),l,v)}function MR(s,l,v){return l=Sl(l),v===n?(v=l,l=0):v=Sl(v),s=Cs(s),ll(s,l,v)}function LR(s,l,v){if(v&&typeof v!="boolean"&&oo(s,l,v)&&(l=v=n),v===n&&(typeof l=="boolean"?(v=l,l=n):typeof s=="boolean"&&(v=s,s=n)),s===n&&l===n?(s=0,l=1):(s=Sl(s),l===n?(l=s,s=0):l=Sl(l)),s>l){var O=s;s=l,l=O}if(v||s%1||l%1){var V=Vo();return Nn(s+V*(l-s+fr("1e-"+((V+"").length-1))),l)}return nu(s,l)}var FR=X(function(s,l,v){return l=l.toLowerCase(),s+(v?e0(l):l)});function e0(s){return yg(bn(s).toLowerCase())}function t0(s){return s=bn(s),s&&s.replace(Ar,Yn).replace(Ns,"")}function NR(s,l,v){s=bn(s),l=wi(l);var O=s.length;v=v===n?O:ws(Qt(v),0,O);var V=v;return v-=l.length,v>=0&&s.slice(v,V)==l}function jR(s){return s=bn(s),s&&Yi.test(s)?s.replace(Zt,us):s}function BR(s){return s=bn(s),s&&di.test(s)?s.replace(wr,"\\$&"):s}var $R=X(function(s,l,v){return s+(v?"-":"")+l.toLowerCase()}),VR=X(function(s,l,v){return s+(v?" ":"")+l.toLowerCase()}),HR=$("toLowerCase");function UR(s,l,v){s=bn(s),l=Qt(l);var O=l?bo(s):0;if(!l||O>=l)return s;var V=(l-O)/2;return re(wa(V),v)+s+re(Ja(V),v)}function WR(s,l,v){s=bn(s),l=Qt(l);var O=l?bo(s):0;return l&&O<l?s+re(l-O,v):s}function zR(s,l,v){s=bn(s),l=Qt(l);var O=l?bo(s):0;return l&&O<l?re(l-O,v)+s:s}function YR(s,l,v){return v||l==null?l=0:l&&(l=+l),Uu(bn(s).replace(cn,""),l||0)}function GR(s,l,v){return(v?oo(s,l,v):l===n)?l=1:l=Qt(l),ic(bn(s),l)}function qR(){var s=arguments,l=bn(s[0]);return s.length<3?l:l.replace(s[1],s[2])}var XR=X(function(s,l,v){return s+(v?"_":"")+l.toLowerCase()});function KR(s,l,v){return v&&typeof v!="number"&&oo(s,l,v)&&(l=v=n),v=v===n?_e:v>>>0,v?(s=bn(s),s&&(typeof l=="string"||l!=null&&!gg(l))&&(l=wi(l),!l&&ii(s))?Ss(dr(s),0,v):s.split(l,v)):[]}var ZR=X(function(s,l,v){return s+(v?" ":"")+yg(l)});function JR(s,l,v){return s=bn(s),v=v==null?0:ws(Qt(v),0,s.length),l=wi(l),s.slice(v,v+l.length)==l}function QR(s,l,v){var O=z.templateSettings;v&&oo(s,l,v)&&(l=n),s=bn(s),l=ph({},l,O,Si);var V=ph({},l.imports,O.imports,Si),K=si(V),le=Nt(V,K),pe,xe,Ue=0,ze=l.interpolate||Qr,Qe="__p += '",dt=Rt((l.escape||Qr).source+"|"+ze.source+"|"+(ze===ci?Di:Qr).source+"|"+(l.evaluate||Qr).source+"|$","g"),kt="//# sourceURL="+(At.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++sn+"]")+`
|
|
154
|
-
`;s.replace(dt,function(Lt,nn,on,Ko,so,Zo){return on||(on=Ko),Qe+=s.slice(Ue,Zo).replace(Ir,da),nn&&(pe=!0,Qe+=`' +
|
|
155
|
-
__e(`+nn+`) +
|
|
156
|
-
'`),so&&(xe=!0,Qe+=`';
|
|
157
|
-
`+so+`;
|
|
158
|
-
__p += '`),on&&(Qe+=`' +
|
|
159
|
-
((__t = (`+on+`)) == null ? '' : __t) +
|
|
160
|
-
'`),Ue=Zo+Lt.length,Lt}),Qe+=`';
|
|
161
|
-
`;var Mt=At.call(l,"variable")&&l.variable;if(!Mt)Qe=`with (obj) {
|
|
162
|
-
`+Qe+`
|
|
163
|
-
}
|
|
164
|
-
`;else if(ho.test(Mt))throw new Ve(u);Qe=(xe?Qe.replace(Ao,""):Qe).replace(Kn,"$1").replace(Kr,"$1;"),Qe="function("+(Mt||"obj")+`) {
|
|
165
|
-
`+(Mt?"":`obj || (obj = {});
|
|
166
|
-
`)+"var __t, __p = ''"+(pe?", __e = _.escape":"")+(xe?`, __j = Array.prototype.join;
|
|
167
|
-
function print() { __p += __j.call(arguments, '') }
|
|
168
|
-
`:`;
|
|
169
|
-
`)+Qe+`return __p
|
|
170
|
-
}`;var en=r0(function(){return ct(K,kt+"return "+Qe).apply(n,le)});if(en.source=Qe,pg(en))throw en;return en}function eA(s){return bn(s).toLowerCase()}function tA(s){return bn(s).toUpperCase()}function nA(s,l,v){if(s=bn(s),s&&(v||l===n))return Ke(s);if(!s||!(l=wi(l)))return s;var O=dr(s),V=dr(l),K=Tt(O,V),le=jn(O,V)+1;return Ss(O,K,le).join("")}function rA(s,l,v){if(s=bn(s),s&&(v||l===n))return s.slice(0,Xa(s)+1);if(!s||!(l=wi(l)))return s;var O=dr(s),V=jn(O,dr(l))+1;return Ss(O,0,V).join("")}function iA(s,l,v){if(s=bn(s),s&&(v||l===n))return s.replace(cn,"");if(!s||!(l=wi(l)))return s;var O=dr(s),V=Tt(O,dr(l));return Ss(O,V).join("")}function oA(s,l){var v=Be,O=qe;if(er(l)){var V="separator"in l?l.separator:V;v="length"in l?Qt(l.length):v,O="omission"in l?wi(l.omission):O}s=bn(s);var K=s.length;if(ii(s)){var le=dr(s);K=le.length}if(v>=K)return s;var pe=v-bo(O);if(pe<1)return O;var xe=le?Ss(le,0,pe).join(""):s.slice(0,pe);if(V===n)return xe+O;if(le&&(pe+=xe.length-pe),gg(V)){if(s.slice(pe).search(V)){var Ue,ze=xe;for(V.global||(V=Rt(V.source,bn(hi.exec(V))+"g")),V.lastIndex=0;Ue=V.exec(ze);)var Qe=Ue.index;xe=xe.slice(0,Qe===n?pe:Qe)}}else if(s.indexOf(wi(V),pe)!=pe){var dt=xe.lastIndexOf(V);dt>-1&&(xe=xe.slice(0,dt))}return xe+O}function sA(s){return s=bn(s),s&&ui.test(s)?s.replace(or,pa):s}var aA=X(function(s,l,v){return s+(v?" ":"")+l.toUpperCase()}),yg=$("toUpperCase");function n0(s,l,v){return s=bn(s),l=v?n:l,l===n?Ga(s)?ge(s):Ut(s):s.match(l)||[]}var r0=Gt(function(s,l){try{return H(s,n,l)}catch(v){return pg(v)?v:new Ve(v)}}),lA=na(function(s,l){return ie(l,function(v){v=La(v),hr(s,v,dg(s[v],s))}),s});function uA(s){var l=s==null?0:s.length,v=Ot();return s=l?ut(s,function(O){if(typeof O[1]!="function")throw new Yt(a);return[v(O[0]),O[1]]}):[],Gt(function(O){for(var V=-1;++V<l;){var K=s[V];if(H(K[0],this,O))return H(K[1],this,O)}})}function cA(s){return Gu(zr(s,p))}function bg(s){return function(){return s}}function fA(s,l){return s==null||s!==s?l:s}var dA=h(),hA=h(!0);function Po(s){return s}function wg(s){return Pa(typeof s=="function"?s:zr(s,p))}function pA(s){return Yo(zr(s,p))}function gA(s,l){return io(s,zr(l,p))}var mA=Gt(function(s,l){return function(v){return Ii(v,s,l)}}),vA=Gt(function(s,l){return function(v){return Ii(s,v,l)}});function xg(s,l,v){var O=si(l),V=Jl(l,O);v==null&&!(er(l)&&(V.length||!O.length))&&(v=l,l=s,s=this,V=Jl(l,si(l)));var K=!(er(v)&&"chain"in v)||!!v.chain,le=xl(s);return ie(V,function(pe){var xe=l[pe];s[pe]=xe,le&&(s.prototype[pe]=function(){var Ue=this.__chain__;if(K||Ue){var ze=s(this.__wrapped__),Qe=ze.__actions__=kr(this.__actions__);return Qe.push({func:xe,args:arguments,thisArg:s}),ze.__chain__=Ue,ze}return xe.apply(s,Pt([this.value()],arguments))})}),s}function yA(){return vn._===this&&(vn._=Cn),this}function Sg(){}function bA(s){return s=Qt(s),Gt(function(l){return Js(l,s)})}var wA=W(ut),xA=W(Me),SA=W(fn);function i0(s){return sg(s)?k(La(s)):rc(s)}function TA(s){return function(l){return s==null?n:Xs(s,l)}}var CA=Re(),EA=Re(!0);function Tg(){return[]}function Cg(){return!1}function kA(){return{}}function DA(){return""}function PA(){return!0}function OA(s,l){if(s=Qt(s),s<1||s>Ye)return[];var v=_e,O=Nn(s,_e);l=Ot(l),s-=_e;for(var V=Te(O,l);++v<s;)l(v);return V}function _A(s){return Xt(s)?ut(s,La):Xo(s)?[s]:kr(Cb(bn(s)))}function RA(s){var l=++Uc;return bn(s)+l}var AA=M(function(s,l){return s+l},0),IA=wt("ceil"),MA=M(function(s,l){return s/l},1),LA=wt("floor");function FA(s){return s&&s.length?Zl(s,Po,sl):n}function NA(s,l){return s&&s.length?Zl(s,Ot(l,2),sl):n}function jA(s){return Cr(s,Po)}function BA(s,l){return Cr(s,Ot(l,2))}function $A(s){return s&&s.length?Zl(s,Po,ro):n}function VA(s,l){return s&&s.length?Zl(s,Ot(l,2),ro):n}var HA=M(function(s,l){return s*l},1),UA=wt("round"),WA=M(function(s,l){return s-l},0);function zA(s){return s&&s.length?Se(s,Po):0}function YA(s,l){return s&&s.length?Se(s,Ot(l,2)):0}return z.after=p_,z.ary=Lb,z.assign=tR,z.assignIn=Xb,z.assignInWith=ph,z.assignWith=nR,z.at=rR,z.before=Fb,z.bind=dg,z.bindAll=lA,z.bindKey=Nb,z.castArray=k_,z.chain=Ab,z.chunk=LP,z.compact=FP,z.concat=NP,z.cond=uA,z.conforms=cA,z.constant=bg,z.countBy=zO,z.create=iR,z.curry=jb,z.curryRight=Bb,z.debounce=$b,z.defaults=oR,z.defaultsDeep=sR,z.defer=g_,z.delay=m_,z.difference=jP,z.differenceBy=BP,z.differenceWith=$P,z.drop=VP,z.dropRight=HP,z.dropRightWhile=UP,z.dropWhile=WP,z.fill=zP,z.filter=GO,z.flatMap=KO,z.flatMapDeep=ZO,z.flatMapDepth=JO,z.flatten=Pb,z.flattenDeep=YP,z.flattenDepth=GP,z.flip=v_,z.flow=dA,z.flowRight=hA,z.fromPairs=qP,z.functions=hR,z.functionsIn=pR,z.groupBy=QO,z.initial=KP,z.intersection=ZP,z.intersectionBy=JP,z.intersectionWith=QP,z.invert=mR,z.invertBy=vR,z.invokeMap=t_,z.iteratee=wg,z.keyBy=n_,z.keys=si,z.keysIn=Do,z.map=lh,z.mapKeys=bR,z.mapValues=wR,z.matches=pA,z.matchesProperty=gA,z.memoize=ch,z.merge=xR,z.mergeWith=Kb,z.method=mA,z.methodOf=vA,z.mixin=xg,z.negate=fh,z.nthArg=bA,z.omit=SR,z.omitBy=TR,z.once=y_,z.orderBy=r_,z.over=wA,z.overArgs=b_,z.overEvery=xA,z.overSome=SA,z.partial=hg,z.partialRight=Vb,z.partition=i_,z.pick=CR,z.pickBy=Zb,z.property=i0,z.propertyOf=TA,z.pull=rO,z.pullAll=_b,z.pullAllBy=iO,z.pullAllWith=oO,z.pullAt=sO,z.range=CA,z.rangeRight=EA,z.rearg=w_,z.reject=a_,z.remove=aO,z.rest=x_,z.reverse=cg,z.sampleSize=u_,z.set=kR,z.setWith=DR,z.shuffle=c_,z.slice=lO,z.sortBy=h_,z.sortedUniq=gO,z.sortedUniqBy=mO,z.split=KR,z.spread=S_,z.tail=vO,z.take=yO,z.takeRight=bO,z.takeRightWhile=wO,z.takeWhile=xO,z.tap=FO,z.throttle=T_,z.thru=ah,z.toArray=Yb,z.toPairs=Jb,z.toPairsIn=Qb,z.toPath=_A,z.toPlainObject=qb,z.transform=PR,z.unary=C_,z.union=SO,z.unionBy=TO,z.unionWith=CO,z.uniq=EO,z.uniqBy=kO,z.uniqWith=DO,z.unset=OR,z.unzip=fg,z.unzipWith=Rb,z.update=_R,z.updateWith=RR,z.values=hf,z.valuesIn=AR,z.without=PO,z.words=n0,z.wrap=E_,z.xor=OO,z.xorBy=_O,z.xorWith=RO,z.zip=AO,z.zipObject=IO,z.zipObjectDeep=MO,z.zipWith=LO,z.entries=Jb,z.entriesIn=Qb,z.extend=Xb,z.extendWith=ph,xg(z,z),z.add=AA,z.attempt=r0,z.camelCase=FR,z.capitalize=e0,z.ceil=IA,z.clamp=IR,z.clone=D_,z.cloneDeep=O_,z.cloneDeepWith=__,z.cloneWith=P_,z.conformsTo=R_,z.deburr=t0,z.defaultTo=fA,z.divide=MA,z.endsWith=NR,z.eq=ra,z.escape=jR,z.escapeRegExp=BR,z.every=YO,z.find=qO,z.findIndex=kb,z.findKey=aR,z.findLast=XO,z.findLastIndex=Db,z.findLastKey=lR,z.floor=LA,z.forEach=Ib,z.forEachRight=Mb,z.forIn=uR,z.forInRight=cR,z.forOwn=fR,z.forOwnRight=dR,z.get=mg,z.gt=A_,z.gte=I_,z.has=gR,z.hasIn=vg,z.head=Ob,z.identity=Po,z.includes=e_,z.indexOf=XP,z.inRange=MR,z.invoke=yR,z.isArguments=pc,z.isArray=Xt,z.isArrayBuffer=M_,z.isArrayLike=ko,z.isArrayLikeObject=gr,z.isBoolean=L_,z.isBuffer=uu,z.isDate=F_,z.isElement=N_,z.isEmpty=j_,z.isEqual=B_,z.isEqualWith=$_,z.isError=pg,z.isFinite=V_,z.isFunction=xl,z.isInteger=Hb,z.isLength=dh,z.isMap=Ub,z.isMatch=H_,z.isMatchWith=U_,z.isNaN=W_,z.isNative=z_,z.isNil=G_,z.isNull=Y_,z.isNumber=Wb,z.isObject=er,z.isObjectLike=lr,z.isPlainObject=td,z.isRegExp=gg,z.isSafeInteger=q_,z.isSet=zb,z.isString=hh,z.isSymbol=Xo,z.isTypedArray=df,z.isUndefined=X_,z.isWeakMap=K_,z.isWeakSet=Z_,z.join=eO,z.kebabCase=$R,z.last=Ts,z.lastIndexOf=tO,z.lowerCase=VR,z.lowerFirst=HR,z.lt=J_,z.lte=Q_,z.max=FA,z.maxBy=NA,z.mean=jA,z.meanBy=BA,z.min=$A,z.minBy=VA,z.stubArray=Tg,z.stubFalse=Cg,z.stubObject=kA,z.stubString=DA,z.stubTrue=PA,z.multiply=HA,z.nth=nO,z.noConflict=yA,z.noop=Sg,z.now=uh,z.pad=UR,z.padEnd=WR,z.padStart=zR,z.parseInt=YR,z.random=LR,z.reduce=o_,z.reduceRight=s_,z.repeat=GR,z.replace=qR,z.result=ER,z.round=UA,z.runInContext=J,z.sample=l_,z.size=f_,z.snakeCase=XR,z.some=d_,z.sortedIndex=uO,z.sortedIndexBy=cO,z.sortedIndexOf=fO,z.sortedLastIndex=dO,z.sortedLastIndexBy=hO,z.sortedLastIndexOf=pO,z.startCase=ZR,z.startsWith=JR,z.subtract=WA,z.sum=zA,z.sumBy=YA,z.template=QR,z.times=OA,z.toFinite=Sl,z.toInteger=Qt,z.toLength=Gb,z.toLower=eA,z.toNumber=Cs,z.toSafeInteger=eR,z.toString=bn,z.toUpper=tA,z.trim=nA,z.trimEnd=rA,z.trimStart=iA,z.truncate=oA,z.unescape=sA,z.uniqueId=RA,z.upperCase=aA,z.upperFirst=yg,z.each=Ib,z.eachRight=Mb,z.first=Ob,xg(z,function(){var s={};return To(z,function(l,v){At.call(z.prototype,v)||(s[v]=l)}),s}(),{chain:!1}),z.VERSION=r,ie(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){z[s].placeholder=z}),ie(["drop","take"],function(s,l){qt.prototype[s]=function(v){v=v===n?1:Fn(Qt(v),0);var O=this.__filtered__&&!l?new qt(this):this.clone();return O.__filtered__?O.__takeCount__=Nn(v,O.__takeCount__):O.__views__.push({size:Nn(v,_e),type:s+(O.__dir__<0?"Right":"")}),O},qt.prototype[s+"Right"]=function(v){return this.reverse()[s](v).reverse()}}),ie(["filter","map","takeWhile"],function(s,l){var v=l+1,O=v==it||v==De;qt.prototype[s]=function(V){var K=this.clone();return K.__iteratees__.push({iteratee:Ot(V,3),type:v}),K.__filtered__=K.__filtered__||O,K}}),ie(["head","last"],function(s,l){var v="take"+(l?"Right":"");qt.prototype[s]=function(){return this[v](1).value()[0]}}),ie(["initial","tail"],function(s,l){var v="drop"+(l?"":"Right");qt.prototype[s]=function(){return this.__filtered__?new qt(this):this[v](1)}}),qt.prototype.compact=function(){return this.filter(Po)},qt.prototype.find=function(s){return this.filter(s).head()},qt.prototype.findLast=function(s){return this.reverse().find(s)},qt.prototype.invokeMap=Gt(function(s,l){return typeof s=="function"?new qt(this):this.map(function(v){return Ii(v,s,l)})}),qt.prototype.reject=function(s){return this.filter(fh(Ot(s)))},qt.prototype.slice=function(s,l){s=Qt(s);var v=this;return v.__filtered__&&(s>0||l<0)?new qt(v):(s<0?v=v.takeRight(-s):s&&(v=v.drop(s)),l!==n&&(l=Qt(l),v=l<0?v.dropRight(-l):v.take(l-s)),v)},qt.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},qt.prototype.toArray=function(){return this.take(_e)},To(qt.prototype,function(s,l){var v=/^(?:filter|find|map|reject)|While$/.test(l),O=/^(?:head|last)$/.test(l),V=z[O?"take"+(l=="last"?"Right":""):l],K=O||/^find/.test(l);V&&(z.prototype[l]=function(){var le=this.__wrapped__,pe=O?[1]:arguments,xe=le instanceof qt,Ue=pe[0],ze=xe||Xt(le),Qe=function(nn){var on=V.apply(z,Pt([nn],pe));return O&&dt?on[0]:on};ze&&v&&typeof Ue=="function"&&Ue.length!=1&&(xe=ze=!1);var dt=this.__chain__,kt=!!this.__actions__.length,Mt=K&&!dt,en=xe&&!kt;if(!K&&ze){le=en?le:new qt(this);var Lt=s.apply(le,pe);return Lt.__actions__.push({func:ah,args:[Qe],thisArg:n}),new Wr(Lt,dt)}return Mt&&en?s.apply(this,pe):(Lt=this.thru(Qe),Mt?O?Lt.value()[0]:Lt.value():Lt)})}),ie(["pop","push","shift","sort","splice","unshift"],function(s){var l=Ln[s],v=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",O=/^(?:pop|shift)$/.test(s);z.prototype[s]=function(){var V=arguments;if(O&&!this.__chain__){var K=this.value();return l.apply(Xt(K)?K:[],V)}return this[v](function(le){return l.apply(Xt(le)?le:[],V)})}}),To(qt.prototype,function(s,l){var v=z[l];if(v){var O=v.name+"";At.call(vs,O)||(vs[O]=[]),vs[O].push({name:l,func:v})}}),vs[b(n,_).name]=[{name:"wrapper",func:n}],qt.prototype.clone=Hl,qt.prototype.reverse=Ta,qt.prototype.value=il,z.prototype.at=NO,z.prototype.chain=jO,z.prototype.commit=BO,z.prototype.next=$O,z.prototype.plant=HO,z.prototype.reverse=UO,z.prototype.toJSON=z.prototype.valueOf=z.prototype.value=WO,z.prototype.first=z.prototype.head,Bo&&(z.prototype[Bo]=VO),z},ke=Oe();yi?((yi.exports=ke)._=ke,jo._=ke):vn._=ke}).call(Ci)})(xp,xp.exports);var LD=xp.exports;const r6=Bc(LD);function y1(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}function i6(t){var e=t.lastRenderedStartIndex,n=t.lastRenderedStopIndex,r=t.startIndex,i=t.stopIndex;return!(r>n||i<e)}function o6(t){for(var e=t.isItemLoaded,n=t.itemCount,r=t.minimumBatchSize,i=t.startIndex,o=t.stopIndex,a=[],u=null,c=null,d=i;d<=o;d++){var y=e(d);y?c!==null&&(a.push(u,c),u=c=null):(c=d,u===null&&(u=d))}if(c!==null){for(var p=Math.min(Math.max(c,u+r-1),n-1),S=c+1;S<=p&&!e(S);S++)c=S;a.push(u,c)}if(a.length)for(;a[1]-a[0]+1<r&&a[0]>0;){var C=a[0]-1;if(!e(C))a[0]=C;else break}return a}var s6=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},a6=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}}(),l6=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)},b1=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},u6=function(t){l6(e,t);function e(){var n,r,i,o;s6(this,e);for(var a=arguments.length,u=Array(a),c=0;c<a;c++)u[c]=arguments[c];return o=(r=(i=b1(this,(n=e.__proto__||Object.getPrototypeOf(e)).call.apply(n,[this].concat(u))),i),i._lastRenderedStartIndex=-1,i._lastRenderedStopIndex=-1,i._memoizedUnloadedRanges=[],i._onItemsRendered=function(d){var y=d.visibleStartIndex,p=d.visibleStopIndex;process.env.NODE_ENV!=="production"&&((!y1(y)||!y1(p))&&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=y,i._lastRenderedStopIndex=p,i._ensureRowsLoaded(y,p)},i._setRef=function(d){i._listRef=d},r),b1(i,o)}return a6(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,u=o.itemCount,c=o.minimumBatchSize,d=c===void 0?10:c,y=o.threshold,p=y===void 0?15:y,S=o6({isItemLoaded:a,itemCount:u,minimumBatchSize:d,startIndex:Math.max(0,r-p),stopIndex:Math.min(u-1,i+p)});(this._memoizedUnloadedRanges.length!==S.length||this._memoizedUnloadedRanges.some(function(C,A){return S[A]!==C}))&&(this._memoizedUnloadedRanges=S,this._loadUnloadedRanges(S))}},{key:"_loadUnloadedRanges",value:function(r){for(var i=this,o=this.props.loadMoreItems||this.props.loadMoreRows,a=function(d){var y=r[d],p=r[d+1],S=o(y,p);S!=null&&S.then(function(){if(i6({lastRenderedStartIndex:i._lastRenderedStartIndex,lastRenderedStopIndex:i._lastRenderedStopIndex,startIndex:y,stopIndex:p})){if(i._listRef==null)return;typeof i._listRef.resetAfterIndex=="function"?i._listRef.resetAfterIndex(y,!0):(typeof i._listRef._getItemStyleCache=="function"&&i._listRef._getItemStyleCache(-1),i._listRef.forceUpdate())}})},u=0;u<r.length;u+=2)a(u)}}]),e}(Z.PureComponent),FD={exports:{}};/*!
|
|
171
|
-
* jQuery JavaScript Library v3.7.1
|
|
172
|
-
* https://jquery.com/
|
|
173
|
-
*
|
|
174
|
-
* Copyright OpenJS Foundation and other contributors
|
|
175
|
-
* Released under the MIT license
|
|
176
|
-
* https://jquery.org/license
|
|
177
|
-
*
|
|
178
|
-
* Date: 2023-08-28T13:37Z
|
|
179
|
-
*/(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:Ci,function(e,n){var r=[],i=Object.getPrototypeOf,o=r.slice,a=r.flat?function(f){return r.flat.call(f)}:function(f){return r.concat.apply([],f)},u=r.push,c=r.indexOf,d={},y=d.toString,p=d.hasOwnProperty,S=p.toString,C=S.call(Object),A={},I=function(m){return typeof m=="function"&&typeof m.nodeType!="number"&&typeof m.item!="function"},B=function(m){return m!=null&&m===m.window},_=e.document,G={type:!0,src:!0,nonce:!0,noModule:!0};function q(f,m,T){T=T||_;var D,F,j=T.createElement("script");if(j.text=f,m)for(D in G)F=m[D]||m.getAttribute&&m.getAttribute(D),F&&j.setAttribute(D,F);T.head.appendChild(j).parentNode.removeChild(j)}function se(f){return f==null?f+"":typeof f=="object"||typeof f=="function"?d[y.call(f)]||"object":typeof f}var Q="3.7.1",ye=/HTML$/i,x=function(f,m){return new x.fn.init(f,m)};x.fn=x.prototype={jquery:Q,constructor:x,length:0,toArray:function(){return o.call(this)},get:function(f){return f==null?o.call(this):f<0?this[f+this.length]:this[f]},pushStack:function(f){var m=x.merge(this.constructor(),f);return m.prevObject=this,m},each:function(f){return x.each(this,f)},map:function(f){return this.pushStack(x.map(this,function(m,T){return f.call(m,T,m)}))},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(x.grep(this,function(f,m){return(m+1)%2}))},odd:function(){return this.pushStack(x.grep(this,function(f,m){return m%2}))},eq:function(f){var m=this.length,T=+f+(f<0?m:0);return this.pushStack(T>=0&&T<m?[this[T]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:r.sort,splice:r.splice},x.extend=x.fn.extend=function(){var f,m,T,D,F,j,H=arguments[0]||{},ue=1,ie=arguments.length,we=!1;for(typeof H=="boolean"&&(we=H,H=arguments[ue]||{},ue++),typeof H!="object"&&!I(H)&&(H={}),ue===ie&&(H=this,ue--);ue<ie;ue++)if((f=arguments[ue])!=null)for(m in f)D=f[m],!(m==="__proto__"||H===D)&&(we&&D&&(x.isPlainObject(D)||(F=Array.isArray(D)))?(T=H[m],F&&!Array.isArray(T)?j=[]:!F&&!x.isPlainObject(T)?j={}:j=T,F=!1,H[m]=x.extend(we,j,D)):D!==void 0&&(H[m]=D));return H},x.extend({expando:"jQuery"+(Q+Math.random()).replace(/\D/g,""),isReady:!0,error:function(f){throw new Error(f)},noop:function(){},isPlainObject:function(f){var m,T;return!f||y.call(f)!=="[object Object]"?!1:(m=i(f),m?(T=p.call(m,"constructor")&&m.constructor,typeof T=="function"&&S.call(T)===C):!0)},isEmptyObject:function(f){var m;for(m in f)return!1;return!0},globalEval:function(f,m,T){q(f,{nonce:m&&m.nonce},T)},each:function(f,m){var T,D=0;if(ae(f))for(T=f.length;D<T&&m.call(f[D],D,f[D])!==!1;D++);else for(D in f)if(m.call(f[D],D,f[D])===!1)break;return f},text:function(f){var m,T="",D=0,F=f.nodeType;if(!F)for(;m=f[D++];)T+=x.text(m);return F===1||F===11?f.textContent:F===9?f.documentElement.textContent:F===3||F===4?f.nodeValue:T},makeArray:function(f,m){var T=m||[];return f!=null&&(ae(Object(f))?x.merge(T,typeof f=="string"?[f]:f):u.call(T,f)),T},inArray:function(f,m,T){return m==null?-1:c.call(m,f,T)},isXMLDoc:function(f){var m=f&&f.namespaceURI,T=f&&(f.ownerDocument||f).documentElement;return!ye.test(m||T&&T.nodeName||"HTML")},merge:function(f,m){for(var T=+m.length,D=0,F=f.length;D<T;D++)f[F++]=m[D];return f.length=F,f},grep:function(f,m,T){for(var D,F=[],j=0,H=f.length,ue=!T;j<H;j++)D=!m(f[j],j),D!==ue&&F.push(f[j]);return F},map:function(f,m,T){var D,F,j=0,H=[];if(ae(f))for(D=f.length;j<D;j++)F=m(f[j],j,T),F!=null&&H.push(F);else for(j in f)F=m(f[j],j,T),F!=null&&H.push(F);return a(H)},guid:1,support:A}),typeof Symbol=="function"&&(x.fn[Symbol.iterator]=r[Symbol.iterator]),x.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(f,m){d["[object "+m+"]"]=m.toLowerCase()});function ae(f){var m=!!f&&"length"in f&&f.length,T=se(f);return I(f)||B(f)?!1:T==="array"||m===0||typeof m=="number"&&m>0&&m-1 in f}function ce(f,m){return f.nodeName&&f.nodeName.toLowerCase()===m.toLowerCase()}var Be=r.pop,qe=r.sort,Ze=r.splice,ot="[\\x20\\t\\r\\n\\f]",it=new RegExp("^"+ot+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ot+"+$","g");x.contains=function(f,m){var T=m&&m.parentNode;return f===T||!!(T&&T.nodeType===1&&(f.contains?f.contains(T):f.compareDocumentPosition&&f.compareDocumentPosition(T)&16))};var me=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function De(f,m){return m?f==="\0"?"�":f.slice(0,-1)+"\\"+f.charCodeAt(f.length-1).toString(16)+" ":"\\"+f}x.escapeSelector=function(f){return(f+"").replace(me,De)};var Le=_,Ye=u;(function(){var f,m,T,D,F,j=Ye,H,ue,ie,we,Me,Fe=x.expando,Ee=0,He=0,ut=jn(),Pt=jn(),_t=jn(),Mn=jn(),fn=function(ee,ge){return ee===ge&&(F=!0),0},Br="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",$r="(?:\\\\[\\da-fA-F]{1,6}"+ot+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Ut="\\["+ot+"*("+$r+")(?:"+ot+"*([*^$|!~]?=)"+ot+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+$r+"))|)"+ot+"*\\]",Vr=":("+$r+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+Ut+")*)|.*)\\)|)",zt=new RegExp(ot+"+","g"),rn=new RegExp("^"+ot+"*,"+ot+"*"),mo=new RegExp("^"+ot+"*([>+~]|"+ot+")"+ot+"*"),vo=new RegExp(ot+"|>"),Cr=new RegExp(Vr),k=new RegExp("^"+$r+"$"),L={ID:new RegExp("^#("+$r+")"),CLASS:new RegExp("^\\.("+$r+")"),TAG:new RegExp("^("+$r+"|[*])"),ATTR:new RegExp("^"+Ut),PSEUDO:new RegExp("^"+Vr),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ot+"*(even|odd|(([+-]|)(\\d*)n|)"+ot+"*(?:([+-]|)"+ot+"*(\\d+)|))"+ot+"*\\)|)","i"),bool:new RegExp("^(?:"+Br+")$","i"),needsContext:new RegExp("^"+ot+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ot+"*((?:-\\d)?\\d*)"+ot+"*\\)|)(?=[^-]|$)","i")},U=/^(?:input|select|textarea|button)$/i,te=/^h\d$/i,Se=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Te=/[+~]/,Ne=new RegExp("\\\\[\\da-fA-F]{1,6}"+ot+"?|\\\\([^\\r\\n\\f])","g"),Ke=function(ee,ge){var Oe="0x"+ee.slice(1)-65536;return ge||(Oe<0?String.fromCharCode(Oe+65536):String.fromCharCode(Oe>>10|55296,Oe&1023|56320))},yt=function(){yo()},Nt=Zi(function(ee){return ee.disabled===!0&&ce(ee,"fieldset")},{dir:"parentNode",next:"legend"});function Dt(){try{return H.activeElement}catch{}}try{j.apply(r=o.call(Le.childNodes),Le.childNodes),r[Le.childNodes.length].nodeType}catch{j={apply:function(ge,Oe){Ye.apply(ge,o.call(Oe))},call:function(ge){Ye.apply(ge,o.call(arguments,1))}}}function Tt(ee,ge,Oe,ke){var J,he,fe,je,Ve,ct,ft,at=ge&&ge.ownerDocument,Rt=ge?ge.nodeType:9;if(Oe=Oe||[],typeof ee!="string"||!ee||Rt!==1&&Rt!==9&&Rt!==11)return Oe;if(!ke&&(yo(ge),ge=ge||H,ie)){if(Rt!==11&&(Ve=Se.exec(ee)))if(J=Ve[1]){if(Rt===9)if(fe=ge.getElementById(J)){if(fe.id===J)return j.call(Oe,fe),Oe}else return Oe;else if(at&&(fe=at.getElementById(J))&&Tt.contains(ge,fe)&&fe.id===J)return j.call(Oe,fe),Oe}else{if(Ve[2])return j.apply(Oe,ge.getElementsByTagName(ee)),Oe;if((J=Ve[3])&&ge.getElementsByClassName)return j.apply(Oe,ge.getElementsByClassName(J)),Oe}if(!Mn[ee+" "]&&(!we||!we.test(ee))){if(ft=ee,at=ge,Rt===1&&(vo.test(ee)||mo.test(ee))){for(at=Te.test(ee)&&Ga(ge.parentNode)||ge,(at!=ge||!A.scope)&&((je=ge.getAttribute("id"))?je=x.escapeSelector(je):ge.setAttribute("id",je=Fe)),ct=fs(ee),he=ct.length;he--;)ct[he]=(je?"#"+je:":scope")+" "+bi(ct[he]);ft=ct.join(",")}try{return j.apply(Oe,at.querySelectorAll(ft)),Oe}catch{Mn(ee,!0)}finally{je===Fe&&ge.removeAttribute("id")}}}return ga(ee.replace(it,"$1"),ge,Oe,ke)}function jn(){var ee=[];function ge(Oe,ke){return ee.push(Oe+" ")>m.cacheLength&&delete ge[ee.shift()],ge[Oe+" "]=ke}return ge}function Sn(ee){return ee[Fe]=!0,ee}function Yn(ee){var ge=H.createElement("fieldset");try{return!!ee(ge)}catch{return!1}finally{ge.parentNode&&ge.parentNode.removeChild(ge),ge=null}}function us(ee){return function(ge){return ce(ge,"input")&&ge.type===ee}}function da(ee){return function(ge){return(ce(ge,"input")||ce(ge,"button"))&&ge.type===ee}}function cs(ee){return function(ge){return"form"in ge?ge.parentNode&&ge.disabled===!1?"label"in ge?"label"in ge.parentNode?ge.parentNode.disabled===ee:ge.disabled===ee:ge.isDisabled===ee||ge.isDisabled!==!ee&&Nt(ge)===ee:ge.disabled===ee:"label"in ge?ge.disabled===ee:!1}}function ii(ee){return Sn(function(ge){return ge=+ge,Sn(function(Oe,ke){for(var J,he=ee([],Oe.length,ge),fe=he.length;fe--;)Oe[J=he[fe]]&&(Oe[J]=!(ke[J]=Oe[J]))})})}function Ga(ee){return ee&&typeof ee.getElementsByTagName<"u"&&ee}function yo(ee){var ge,Oe=ee?ee.ownerDocument||ee:Le;return Oe==H||Oe.nodeType!==9||!Oe.documentElement||(H=Oe,ue=H.documentElement,ie=!x.isXMLDoc(H),Me=ue.matches||ue.webkitMatchesSelector||ue.msMatchesSelector,ue.msMatchesSelector&&Le!=H&&(ge=H.defaultView)&&ge.top!==ge&&ge.addEventListener("unload",yt),A.getById=Yn(function(ke){return ue.appendChild(ke).id=x.expando,!H.getElementsByName||!H.getElementsByName(x.expando).length}),A.disconnectedMatch=Yn(function(ke){return Me.call(ke,"*")}),A.scope=Yn(function(){return H.querySelectorAll(":scope")}),A.cssHas=Yn(function(){try{return H.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),A.getById?(m.filter.ID=function(ke){var J=ke.replace(Ne,Ke);return function(he){return he.getAttribute("id")===J}},m.find.ID=function(ke,J){if(typeof J.getElementById<"u"&&ie){var he=J.getElementById(ke);return he?[he]:[]}}):(m.filter.ID=function(ke){var J=ke.replace(Ne,Ke);return function(he){var fe=typeof he.getAttributeNode<"u"&&he.getAttributeNode("id");return fe&&fe.value===J}},m.find.ID=function(ke,J){if(typeof J.getElementById<"u"&&ie){var he,fe,je,Ve=J.getElementById(ke);if(Ve){if(he=Ve.getAttributeNode("id"),he&&he.value===ke)return[Ve];for(je=J.getElementsByName(ke),fe=0;Ve=je[fe++];)if(he=Ve.getAttributeNode("id"),he&&he.value===ke)return[Ve]}return[]}}),m.find.TAG=function(ke,J){return typeof J.getElementsByTagName<"u"?J.getElementsByTagName(ke):J.querySelectorAll(ke)},m.find.CLASS=function(ke,J){if(typeof J.getElementsByClassName<"u"&&ie)return J.getElementsByClassName(ke)},we=[],Yn(function(ke){var J;ue.appendChild(ke).innerHTML="<a id='"+Fe+"' href='' disabled='disabled'></a><select id='"+Fe+"-\r\\' disabled='disabled'><option selected=''></option></select>",ke.querySelectorAll("[selected]").length||we.push("\\["+ot+"*(?:value|"+Br+")"),ke.querySelectorAll("[id~="+Fe+"-]").length||we.push("~="),ke.querySelectorAll("a#"+Fe+"+*").length||we.push(".#.+[+~]"),ke.querySelectorAll(":checked").length||we.push(":checked"),J=H.createElement("input"),J.setAttribute("type","hidden"),ke.appendChild(J).setAttribute("name","D"),ue.appendChild(ke).disabled=!0,ke.querySelectorAll(":disabled").length!==2&&we.push(":enabled",":disabled"),J=H.createElement("input"),J.setAttribute("name",""),ke.appendChild(J),ke.querySelectorAll("[name='']").length||we.push("\\["+ot+"*name"+ot+"*="+ot+`*(?:''|"")`)}),A.cssHas||we.push(":has"),we=we.length&&new RegExp(we.join("|")),fn=function(ke,J){if(ke===J)return F=!0,0;var he=!ke.compareDocumentPosition-!J.compareDocumentPosition;return he||(he=(ke.ownerDocument||ke)==(J.ownerDocument||J)?ke.compareDocumentPosition(J):1,he&1||!A.sortDetached&&J.compareDocumentPosition(ke)===he?ke===H||ke.ownerDocument==Le&&Tt.contains(Le,ke)?-1:J===H||J.ownerDocument==Le&&Tt.contains(Le,J)?1:D?c.call(D,ke)-c.call(D,J):0:he&4?-1:1)}),H}Tt.matches=function(ee,ge){return Tt(ee,null,null,ge)},Tt.matchesSelector=function(ee,ge){if(yo(ee),ie&&!Mn[ge+" "]&&(!we||!we.test(ge)))try{var Oe=Me.call(ee,ge);if(Oe||A.disconnectedMatch||ee.document&&ee.document.nodeType!==11)return Oe}catch{Mn(ge,!0)}return Tt(ge,H,null,[ee]).length>0},Tt.contains=function(ee,ge){return(ee.ownerDocument||ee)!=H&&yo(ee),x.contains(ee,ge)},Tt.attr=function(ee,ge){(ee.ownerDocument||ee)!=H&&yo(ee);var Oe=m.attrHandle[ge.toLowerCase()],ke=Oe&&p.call(m.attrHandle,ge.toLowerCase())?Oe(ee,ge,!ie):void 0;return ke!==void 0?ke:ee.getAttribute(ge)},Tt.error=function(ee){throw new Error("Syntax error, unrecognized expression: "+ee)},x.uniqueSort=function(ee){var ge,Oe=[],ke=0,J=0;if(F=!A.sortStable,D=!A.sortStable&&o.call(ee,0),qe.call(ee,fn),F){for(;ge=ee[J++];)ge===ee[J]&&(ke=Oe.push(J));for(;ke--;)Ze.call(ee,Oe[ke],1)}return D=null,ee},x.fn.uniqueSort=function(){return this.pushStack(x.uniqueSort(o.apply(this)))},m=x.expr={cacheLength:50,createPseudo:Sn,match:L,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(ee){return ee[1]=ee[1].replace(Ne,Ke),ee[3]=(ee[3]||ee[4]||ee[5]||"").replace(Ne,Ke),ee[2]==="~="&&(ee[3]=" "+ee[3]+" "),ee.slice(0,4)},CHILD:function(ee){return ee[1]=ee[1].toLowerCase(),ee[1].slice(0,3)==="nth"?(ee[3]||Tt.error(ee[0]),ee[4]=+(ee[4]?ee[5]+(ee[6]||1):2*(ee[3]==="even"||ee[3]==="odd")),ee[5]=+(ee[7]+ee[8]||ee[3]==="odd")):ee[3]&&Tt.error(ee[0]),ee},PSEUDO:function(ee){var ge,Oe=!ee[6]&&ee[2];return L.CHILD.test(ee[0])?null:(ee[3]?ee[2]=ee[4]||ee[5]||"":Oe&&Cr.test(Oe)&&(ge=fs(Oe,!0))&&(ge=Oe.indexOf(")",Oe.length-ge)-Oe.length)&&(ee[0]=ee[0].slice(0,ge),ee[2]=Oe.slice(0,ge)),ee.slice(0,3))}},filter:{TAG:function(ee){var ge=ee.replace(Ne,Ke).toLowerCase();return ee==="*"?function(){return!0}:function(Oe){return ce(Oe,ge)}},CLASS:function(ee){var ge=ut[ee+" "];return ge||(ge=new RegExp("(^|"+ot+")"+ee+"("+ot+"|$)"))&&ut(ee,function(Oe){return ge.test(typeof Oe.className=="string"&&Oe.className||typeof Oe.getAttribute<"u"&&Oe.getAttribute("class")||"")})},ATTR:function(ee,ge,Oe){return function(ke){var J=Tt.attr(ke,ee);return J==null?ge==="!=":ge?(J+="",ge==="="?J===Oe:ge==="!="?J!==Oe:ge==="^="?Oe&&J.indexOf(Oe)===0:ge==="*="?Oe&&J.indexOf(Oe)>-1:ge==="$="?Oe&&J.slice(-Oe.length)===Oe:ge==="~="?(" "+J.replace(zt," ")+" ").indexOf(Oe)>-1:ge==="|="?J===Oe||J.slice(0,Oe.length+1)===Oe+"-":!1):!0}},CHILD:function(ee,ge,Oe,ke,J){var he=ee.slice(0,3)!=="nth",fe=ee.slice(-4)!=="last",je=ge==="of-type";return ke===1&&J===0?function(Ve){return!!Ve.parentNode}:function(Ve,ct,ft){var at,Rt,Et,Yt,Ln,ar=he!==fe?"nextSibling":"previousSibling",Gn=Ve.parentNode,Hr=je&&Ve.nodeName.toLowerCase(),Ji=!ft&&!je,At=!1;if(Gn){if(he){for(;ar;){for(Et=Ve;Et=Et[ar];)if(je?ce(Et,Hr):Et.nodeType===1)return!1;Ln=ar=ee==="only"&&!Ln&&"nextSibling"}return!0}if(Ln=[fe?Gn.firstChild:Gn.lastChild],fe&&Ji){for(Rt=Gn[Fe]||(Gn[Fe]={}),at=Rt[ee]||[],Yt=at[0]===Ee&&at[1],At=Yt&&at[2],Et=Yt&&Gn.childNodes[Yt];Et=++Yt&&Et&&Et[ar]||(At=Yt=0)||Ln.pop();)if(Et.nodeType===1&&++At&&Et===Ve){Rt[ee]=[Ee,Yt,At];break}}else if(Ji&&(Rt=Ve[Fe]||(Ve[Fe]={}),at=Rt[ee]||[],Yt=at[0]===Ee&&at[1],At=Yt),At===!1)for(;(Et=++Yt&&Et&&Et[ar]||(At=Yt=0)||Ln.pop())&&!((je?ce(Et,Hr):Et.nodeType===1)&&++At&&(Ji&&(Rt=Et[Fe]||(Et[Fe]={}),Rt[ee]=[Ee,At]),Et===Ve)););return At-=J,At===ke||At%ke===0&&At/ke>=0}}},PSEUDO:function(ee,ge){var Oe,ke=m.pseudos[ee]||m.setFilters[ee.toLowerCase()]||Tt.error("unsupported pseudo: "+ee);return ke[Fe]?ke(ge):ke.length>1?(Oe=[ee,ee,"",ge],m.setFilters.hasOwnProperty(ee.toLowerCase())?Sn(function(J,he){for(var fe,je=ke(J,ge),Ve=je.length;Ve--;)fe=c.call(J,je[Ve]),J[fe]=!(he[fe]=je[Ve])}):function(J){return ke(J,0,Oe)}):ke}},pseudos:{not:Sn(function(ee){var ge=[],Oe=[],ke=pa(ee.replace(it,"$1"));return ke[Fe]?Sn(function(J,he,fe,je){for(var Ve,ct=ke(J,null,je,[]),ft=J.length;ft--;)(Ve=ct[ft])&&(J[ft]=!(he[ft]=Ve))}):function(J,he,fe){return ge[0]=J,ke(ge,null,fe,Oe),ge[0]=null,!Oe.pop()}}),has:Sn(function(ee){return function(ge){return Tt(ee,ge).length>0}}),contains:Sn(function(ee){return ee=ee.replace(Ne,Ke),function(ge){return(ge.textContent||x.text(ge)).indexOf(ee)>-1}}),lang:Sn(function(ee){return k.test(ee||"")||Tt.error("unsupported lang: "+ee),ee=ee.replace(Ne,Ke).toLowerCase(),function(ge){var Oe;do if(Oe=ie?ge.lang:ge.getAttribute("xml:lang")||ge.getAttribute("lang"))return Oe=Oe.toLowerCase(),Oe===ee||Oe.indexOf(ee+"-")===0;while((ge=ge.parentNode)&&ge.nodeType===1);return!1}}),target:function(ee){var ge=e.location&&e.location.hash;return ge&&ge.slice(1)===ee.id},root:function(ee){return ee===ue},focus:function(ee){return ee===Dt()&&H.hasFocus()&&!!(ee.type||ee.href||~ee.tabIndex)},enabled:cs(!1),disabled:cs(!0),checked:function(ee){return ce(ee,"input")&&!!ee.checked||ce(ee,"option")&&!!ee.selected},selected:function(ee){return ee.parentNode&&ee.parentNode.selectedIndex,ee.selected===!0},empty:function(ee){for(ee=ee.firstChild;ee;ee=ee.nextSibling)if(ee.nodeType<6)return!1;return!0},parent:function(ee){return!m.pseudos.empty(ee)},header:function(ee){return te.test(ee.nodeName)},input:function(ee){return U.test(ee.nodeName)},button:function(ee){return ce(ee,"input")&&ee.type==="button"||ce(ee,"button")},text:function(ee){var ge;return ce(ee,"input")&&ee.type==="text"&&((ge=ee.getAttribute("type"))==null||ge.toLowerCase()==="text")},first:ii(function(){return[0]}),last:ii(function(ee,ge){return[ge-1]}),eq:ii(function(ee,ge,Oe){return[Oe<0?Oe+ge:Oe]}),even:ii(function(ee,ge){for(var Oe=0;Oe<ge;Oe+=2)ee.push(Oe);return ee}),odd:ii(function(ee,ge){for(var Oe=1;Oe<ge;Oe+=2)ee.push(Oe);return ee}),lt:ii(function(ee,ge,Oe){var ke;for(Oe<0?ke=Oe+ge:Oe>ge?ke=ge:ke=Oe;--ke>=0;)ee.push(ke);return ee}),gt:ii(function(ee,ge,Oe){for(var ke=Oe<0?Oe+ge:Oe;++ke<ge;)ee.push(ke);return ee})}},m.pseudos.nth=m.pseudos.eq;for(f in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})m.pseudos[f]=us(f);for(f in{submit:!0,reset:!0})m.pseudos[f]=da(f);function ha(){}ha.prototype=m.filters=m.pseudos,m.setFilters=new ha;function fs(ee,ge){var Oe,ke,J,he,fe,je,Ve,ct=Pt[ee+" "];if(ct)return ge?0:ct.slice(0);for(fe=ee,je=[],Ve=m.preFilter;fe;){(!Oe||(ke=rn.exec(fe)))&&(ke&&(fe=fe.slice(ke[0].length)||fe),je.push(J=[])),Oe=!1,(ke=mo.exec(fe))&&(Oe=ke.shift(),J.push({value:Oe,type:ke[0].replace(it," ")}),fe=fe.slice(Oe.length));for(he in m.filter)(ke=L[he].exec(fe))&&(!Ve[he]||(ke=Ve[he](ke)))&&(Oe=ke.shift(),J.push({value:Oe,type:he,matches:ke}),fe=fe.slice(Oe.length));if(!Oe)break}return ge?fe.length:fe?Tt.error(ee):Pt(ee,je).slice(0)}function bi(ee){for(var ge=0,Oe=ee.length,ke="";ge<Oe;ge++)ke+=ee[ge].value;return ke}function Zi(ee,ge,Oe){var ke=ge.dir,J=ge.next,he=J||ke,fe=Oe&&he==="parentNode",je=He++;return ge.first?function(Ve,ct,ft){for(;Ve=Ve[ke];)if(Ve.nodeType===1||fe)return ee(Ve,ct,ft);return!1}:function(Ve,ct,ft){var at,Rt,Et=[Ee,je];if(ft){for(;Ve=Ve[ke];)if((Ve.nodeType===1||fe)&&ee(Ve,ct,ft))return!0}else for(;Ve=Ve[ke];)if(Ve.nodeType===1||fe)if(Rt=Ve[Fe]||(Ve[Fe]={}),J&&ce(Ve,J))Ve=Ve[ke]||Ve;else{if((at=Rt[he])&&at[0]===Ee&&at[1]===je)return Et[2]=at[2];if(Rt[he]=Et,Et[2]=ee(Ve,ct,ft))return!0}return!1}}function qa(ee){return ee.length>1?function(ge,Oe,ke){for(var J=ee.length;J--;)if(!ee[J](ge,Oe,ke))return!1;return!0}:ee[0]}function Lu(ee,ge,Oe){for(var ke=0,J=ge.length;ke<J;ke++)Tt(ee,ge[ke],Oe);return Oe}function ds(ee,ge,Oe,ke,J){for(var he,fe=[],je=0,Ve=ee.length,ct=ge!=null;je<Ve;je++)(he=ee[je])&&(!Oe||Oe(he,ke,J))&&(fe.push(he),ct&&ge.push(je));return fe}function bo(ee,ge,Oe,ke,J,he){return ke&&!ke[Fe]&&(ke=bo(ke)),J&&!J[Fe]&&(J=bo(J,he)),Sn(function(fe,je,Ve,ct){var ft,at,Rt,Et,Yt=[],Ln=[],ar=je.length,Gn=fe||Lu(ge||"*",Ve.nodeType?[Ve]:Ve,[]),Hr=ee&&(fe||!ge)?ds(Gn,Yt,ee,Ve,ct):Gn;if(Oe?(Et=J||(fe?ee:ar||ke)?[]:je,Oe(Hr,Et,Ve,ct)):Et=Hr,ke)for(ft=ds(Et,Ln),ke(ft,[],Ve,ct),at=ft.length;at--;)(Rt=ft[at])&&(Et[Ln[at]]=!(Hr[Ln[at]]=Rt));if(fe){if(J||ee){if(J){for(ft=[],at=Et.length;at--;)(Rt=Et[at])&&ft.push(Hr[at]=Rt);J(null,Et=[],ft,ct)}for(at=Et.length;at--;)(Rt=Et[at])&&(ft=J?c.call(fe,Rt):Yt[at])>-1&&(fe[ft]=!(je[ft]=Rt))}}else Et=ds(Et===je?Et.splice(ar,Et.length):Et),J?J(null,je,Et,ct):j.apply(je,Et)})}function dr(ee){for(var ge,Oe,ke,J=ee.length,he=m.relative[ee[0].type],fe=he||m.relative[" "],je=he?1:0,Ve=Zi(function(at){return at===ge},fe,!0),ct=Zi(function(at){return c.call(ge,at)>-1},fe,!0),ft=[function(at,Rt,Et){var Yt=!he&&(Et||Rt!=T)||((ge=Rt).nodeType?Ve(at,Rt,Et):ct(at,Rt,Et));return ge=null,Yt}];je<J;je++)if(Oe=m.relative[ee[je].type])ft=[Zi(qa(ft),Oe)];else{if(Oe=m.filter[ee[je].type].apply(null,ee[je].matches),Oe[Fe]){for(ke=++je;ke<J&&!m.relative[ee[ke].type];ke++);return bo(je>1&&qa(ft),je>1&&bi(ee.slice(0,je-1).concat({value:ee[je-2].type===" "?"*":""})).replace(it,"$1"),Oe,je<ke&&dr(ee.slice(je,ke)),ke<J&&dr(ee=ee.slice(ke)),ke<J&&bi(ee))}ft.push(Oe)}return qa(ft)}function Xa(ee,ge){var Oe=ge.length>0,ke=ee.length>0,J=function(he,fe,je,Ve,ct){var ft,at,Rt,Et=0,Yt="0",Ln=he&&[],ar=[],Gn=T,Hr=he||ke&&m.find.TAG("*",ct),Ji=Ee+=Gn==null?1:Math.random()||.1,At=Hr.length;for(ct&&(T=fe==H||fe||ct);Yt!==At&&(ft=Hr[Yt])!=null;Yt++){if(ke&&ft){for(at=0,!fe&&ft.ownerDocument!=H&&(yo(ft),je=!ie);Rt=ee[at++];)if(Rt(ft,fe||H,je)){j.call(Ve,ft);break}ct&&(Ee=Ji)}Oe&&((ft=!Rt&&ft)&&Et--,he&&Ln.push(ft))}if(Et+=Yt,Oe&&Yt!==Et){for(at=0;Rt=ge[at++];)Rt(Ln,ar,fe,je);if(he){if(Et>0)for(;Yt--;)Ln[Yt]||ar[Yt]||(ar[Yt]=Be.call(Ve));ar=ds(ar)}j.apply(Ve,ar),ct&&!he&&ar.length>0&&Et+ge.length>1&&x.uniqueSort(Ve)}return ct&&(Ee=Ji,T=Gn),Ln};return Oe?Sn(J):J}function pa(ee,ge){var Oe,ke=[],J=[],he=_t[ee+" "];if(!he){for(ge||(ge=fs(ee)),Oe=ge.length;Oe--;)he=dr(ge[Oe]),he[Fe]?ke.push(he):J.push(he);he=_t(ee,Xa(J,ke)),he.selector=ee}return he}function ga(ee,ge,Oe,ke){var J,he,fe,je,Ve,ct=typeof ee=="function"&&ee,ft=!ke&&fs(ee=ct.selector||ee);if(Oe=Oe||[],ft.length===1){if(he=ft[0]=ft[0].slice(0),he.length>2&&(fe=he[0]).type==="ID"&&ge.nodeType===9&&ie&&m.relative[he[1].type]){if(ge=(m.find.ID(fe.matches[0].replace(Ne,Ke),ge)||[])[0],ge)ct&&(ge=ge.parentNode);else return Oe;ee=ee.slice(he.shift().value.length)}for(J=L.needsContext.test(ee)?0:he.length;J--&&(fe=he[J],!m.relative[je=fe.type]);)if((Ve=m.find[je])&&(ke=Ve(fe.matches[0].replace(Ne,Ke),Te.test(he[0].type)&&Ga(ge.parentNode)||ge))){if(he.splice(J,1),ee=ke.length&&bi(he),!ee)return j.apply(Oe,ke),Oe;break}}return(ct||pa(ee,ft))(ke,ge,!ie,Oe,!ge||Te.test(ee)&&Ga(ge.parentNode)||ge),Oe}A.sortStable=Fe.split("").sort(fn).join("")===Fe,yo(),A.sortDetached=Yn(function(ee){return ee.compareDocumentPosition(H.createElement("fieldset"))&1}),x.find=Tt,x.expr[":"]=x.expr.pseudos,x.unique=x.uniqueSort,Tt.compile=pa,Tt.select=ga,Tt.setDocument=yo,Tt.tokenize=fs,Tt.escape=x.escapeSelector,Tt.getText=x.text,Tt.isXML=x.isXMLDoc,Tt.selectors=x.expr,Tt.support=x.support,Tt.uniqueSort=x.uniqueSort})();var st=function(f,m,T){for(var D=[],F=T!==void 0;(f=f[m])&&f.nodeType!==9;)if(f.nodeType===1){if(F&&x(f).is(T))break;D.push(f)}return D},Ce=function(f,m){for(var T=[];f;f=f.nextSibling)f.nodeType===1&&f!==m&&T.push(f);return T},_e=x.expr.match.needsContext,Xe=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function Ge(f,m,T){return I(m)?x.grep(f,function(D,F){return!!m.call(D,F,D)!==T}):m.nodeType?x.grep(f,function(D){return D===m!==T}):typeof m!="string"?x.grep(f,function(D){return c.call(m,D)>-1!==T}):x.filter(m,f,T)}x.filter=function(f,m,T){var D=m[0];return T&&(f=":not("+f+")"),m.length===1&&D.nodeType===1?x.find.matchesSelector(D,f)?[D]:[]:x.find.matches(f,x.grep(m,function(F){return F.nodeType===1}))},x.fn.extend({find:function(f){var m,T,D=this.length,F=this;if(typeof f!="string")return this.pushStack(x(f).filter(function(){for(m=0;m<D;m++)if(x.contains(F[m],this))return!0}));for(T=this.pushStack([]),m=0;m<D;m++)x.find(f,F[m],T);return D>1?x.uniqueSort(T):T},filter:function(f){return this.pushStack(Ge(this,f||[],!1))},not:function(f){return this.pushStack(Ge(this,f||[],!0))},is:function(f){return!!Ge(this,typeof f=="string"&&_e.test(f)?x(f):f||[],!1).length}});var tt,et=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,nt=x.fn.init=function(f,m,T){var D,F;if(!f)return this;if(T=T||tt,typeof f=="string")if(f[0]==="<"&&f[f.length-1]===">"&&f.length>=3?D=[null,f,null]:D=et.exec(f),D&&(D[1]||!m))if(D[1]){if(m=m instanceof x?m[0]:m,x.merge(this,x.parseHTML(D[1],m&&m.nodeType?m.ownerDocument||m:_,!0)),Xe.test(D[1])&&x.isPlainObject(m))for(D in m)I(this[D])?this[D](m[D]):this.attr(D,m[D]);return this}else return F=_.getElementById(D[2]),F&&(this[0]=F,this.length=1),this;else return!m||m.jquery?(m||T).find(f):this.constructor(m).find(f);else{if(f.nodeType)return this[0]=f,this.length=1,this;if(I(f))return T.ready!==void 0?T.ready(f):f(x)}return x.makeArray(f,this)};nt.prototype=x.fn,tt=x(_);var lt=/^(?:parents|prev(?:Until|All))/,bt={children:!0,contents:!0,next:!0,prev:!0};x.fn.extend({has:function(f){var m=x(f,this),T=m.length;return this.filter(function(){for(var D=0;D<T;D++)if(x.contains(this,m[D]))return!0})},closest:function(f,m){var T,D=0,F=this.length,j=[],H=typeof f!="string"&&x(f);if(!_e.test(f)){for(;D<F;D++)for(T=this[D];T&&T!==m;T=T.parentNode)if(T.nodeType<11&&(H?H.index(T)>-1:T.nodeType===1&&x.find.matchesSelector(T,f))){j.push(T);break}}return this.pushStack(j.length>1?x.uniqueSort(j):j)},index:function(f){return f?typeof f=="string"?c.call(x(f),this[0]):c.call(this,f.jquery?f[0]:f):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(f,m){return this.pushStack(x.uniqueSort(x.merge(this.get(),x(f,m))))},addBack:function(f){return this.add(f==null?this.prevObject:this.prevObject.filter(f))}});function xt(f,m){for(;(f=f[m])&&f.nodeType!==1;);return f}x.each({parent:function(f){var m=f.parentNode;return m&&m.nodeType!==11?m:null},parents:function(f){return st(f,"parentNode")},parentsUntil:function(f,m,T){return st(f,"parentNode",T)},next:function(f){return xt(f,"nextSibling")},prev:function(f){return xt(f,"previousSibling")},nextAll:function(f){return st(f,"nextSibling")},prevAll:function(f){return st(f,"previousSibling")},nextUntil:function(f,m,T){return st(f,"nextSibling",T)},prevUntil:function(f,m,T){return st(f,"previousSibling",T)},siblings:function(f){return Ce((f.parentNode||{}).firstChild,f)},children:function(f){return Ce(f.firstChild)},contents:function(f){return f.contentDocument!=null&&i(f.contentDocument)?f.contentDocument:(ce(f,"template")&&(f=f.content||f),x.merge([],f.childNodes))}},function(f,m){x.fn[f]=function(T,D){var F=x.map(this,m,T);return f.slice(-5)!=="Until"&&(D=T),D&&typeof D=="string"&&(F=x.filter(D,F)),this.length>1&&(bt[f]||x.uniqueSort(F),lt.test(f)&&F.reverse()),this.pushStack(F)}});var gt=/[^\x20\t\r\n\f]+/g;function Ct(f){var m={};return x.each(f.match(gt)||[],function(T,D){m[D]=!0}),m}x.Callbacks=function(f){f=typeof f=="string"?Ct(f):x.extend({},f);var m,T,D,F,j=[],H=[],ue=-1,ie=function(){for(F=F||f.once,D=m=!0;H.length;ue=-1)for(T=H.shift();++ue<j.length;)j[ue].apply(T[0],T[1])===!1&&f.stopOnFalse&&(ue=j.length,T=!1);f.memory||(T=!1),m=!1,F&&(T?j=[]:j="")},we={add:function(){return j&&(T&&!m&&(ue=j.length-1,H.push(T)),function Me(Fe){x.each(Fe,function(Ee,He){I(He)?(!f.unique||!we.has(He))&&j.push(He):He&&He.length&&se(He)!=="string"&&Me(He)})}(arguments),T&&!m&&ie()),this},remove:function(){return x.each(arguments,function(Me,Fe){for(var Ee;(Ee=x.inArray(Fe,j,Ee))>-1;)j.splice(Ee,1),Ee<=ue&&ue--}),this},has:function(Me){return Me?x.inArray(Me,j)>-1:j.length>0},empty:function(){return j&&(j=[]),this},disable:function(){return F=H=[],j=T="",this},disabled:function(){return!j},lock:function(){return F=H=[],!T&&!m&&(j=T=""),this},locked:function(){return!!F},fireWith:function(Me,Fe){return F||(Fe=Fe||[],Fe=[Me,Fe.slice?Fe.slice():Fe],H.push(Fe),m||ie()),this},fire:function(){return we.fireWith(this,arguments),this},fired:function(){return!!D}};return we};function rt(f){return f}function Bt(f){throw f}function Vt(f,m,T,D){var F;try{f&&I(F=f.promise)?F.call(f).done(m).fail(T):f&&I(F=f.then)?F.call(f,m,T):m.apply(void 0,[f].slice(D))}catch(j){T.apply(void 0,[j])}}x.extend({Deferred:function(f){var m=[["notify","progress",x.Callbacks("memory"),x.Callbacks("memory"),2],["resolve","done",x.Callbacks("once memory"),x.Callbacks("once memory"),0,"resolved"],["reject","fail",x.Callbacks("once memory"),x.Callbacks("once memory"),1,"rejected"]],T="pending",D={state:function(){return T},always:function(){return F.done(arguments).fail(arguments),this},catch:function(j){return D.then(null,j)},pipe:function(){var j=arguments;return x.Deferred(function(H){x.each(m,function(ue,ie){var we=I(j[ie[4]])&&j[ie[4]];F[ie[1]](function(){var Me=we&&we.apply(this,arguments);Me&&I(Me.promise)?Me.promise().progress(H.notify).done(H.resolve).fail(H.reject):H[ie[0]+"With"](this,we?[Me]:arguments)})}),j=null}).promise()},then:function(j,H,ue){var ie=0;function we(Me,Fe,Ee,He){return function(){var ut=this,Pt=arguments,_t=function(){var fn,Br;if(!(Me<ie)){if(fn=Ee.apply(ut,Pt),fn===Fe.promise())throw new TypeError("Thenable self-resolution");Br=fn&&(typeof fn=="object"||typeof fn=="function")&&fn.then,I(Br)?He?Br.call(fn,we(ie,Fe,rt,He),we(ie,Fe,Bt,He)):(ie++,Br.call(fn,we(ie,Fe,rt,He),we(ie,Fe,Bt,He),we(ie,Fe,rt,Fe.notifyWith))):(Ee!==rt&&(ut=void 0,Pt=[fn]),(He||Fe.resolveWith)(ut,Pt))}},Mn=He?_t:function(){try{_t()}catch(fn){x.Deferred.exceptionHook&&x.Deferred.exceptionHook(fn,Mn.error),Me+1>=ie&&(Ee!==Bt&&(ut=void 0,Pt=[fn]),Fe.rejectWith(ut,Pt))}};Me?Mn():(x.Deferred.getErrorHook?Mn.error=x.Deferred.getErrorHook():x.Deferred.getStackHook&&(Mn.error=x.Deferred.getStackHook()),e.setTimeout(Mn))}}return x.Deferred(function(Me){m[0][3].add(we(0,Me,I(ue)?ue:rt,Me.notifyWith)),m[1][3].add(we(0,Me,I(j)?j:rt)),m[2][3].add(we(0,Me,I(H)?H:Bt))}).promise()},promise:function(j){return j!=null?x.extend(j,D):D}},F={};return x.each(m,function(j,H){var ue=H[2],ie=H[5];D[H[1]]=ue.add,ie&&ue.add(function(){T=ie},m[3-j][2].disable,m[3-j][3].disable,m[0][2].lock,m[0][3].lock),ue.add(H[3].fire),F[H[0]]=function(){return F[H[0]+"With"](this===F?void 0:this,arguments),this},F[H[0]+"With"]=ue.fireWith}),D.promise(F),f&&f.call(F,F),F},when:function(f){var m=arguments.length,T=m,D=Array(T),F=o.call(arguments),j=x.Deferred(),H=function(ue){return function(ie){D[ue]=this,F[ue]=arguments.length>1?o.call(arguments):ie,--m||j.resolveWith(D,F)}};if(m<=1&&(Vt(f,j.done(H(T)).resolve,j.reject,!m),j.state()==="pending"||I(F[T]&&F[T].then)))return j.then();for(;T--;)Vt(F[T],H(T),j.reject);return j.promise()}});var qn=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;x.Deferred.exceptionHook=function(f,m){e.console&&e.console.warn&&f&&qn.test(f.name)&&e.console.warn("jQuery.Deferred exception: "+f.message,f.stack,m)},x.readyException=function(f){e.setTimeout(function(){throw f})};var yr=x.Deferred();x.fn.ready=function(f){return yr.then(f).catch(function(m){x.readyException(m)}),this},x.extend({isReady:!1,readyWait:1,ready:function(f){(f===!0?--x.readyWait:x.isReady)||(x.isReady=!0,!(f!==!0&&--x.readyWait>0)&&yr.resolveWith(_,[x]))}}),x.ready.then=yr.then;function Xn(){_.removeEventListener("DOMContentLoaded",Xn),e.removeEventListener("load",Xn),x.ready()}_.readyState==="complete"||_.readyState!=="loading"&&!_.documentElement.doScroll?e.setTimeout(x.ready):(_.addEventListener("DOMContentLoaded",Xn),e.addEventListener("load",Xn));var Dn=function(f,m,T,D,F,j,H){var ue=0,ie=f.length,we=T==null;if(se(T)==="object"){F=!0;for(ue in T)Dn(f,m,ue,T[ue],!0,j,H)}else if(D!==void 0&&(F=!0,I(D)||(H=!0),we&&(H?(m.call(f,D),m=null):(we=m,m=function(Me,Fe,Ee){return we.call(x(Me),Ee)})),m))for(;ue<ie;ue++)m(f[ue],T,H?D:D.call(f[ue],ue,m(f[ue],T)));return F?f:we?m.call(f):ie?m(f[0],T):j},Hi=/^-ms-/,Or=/-([a-z])/g;function ir(f,m){return m.toUpperCase()}function un(f){return f.replace(Hi,"ms-").replace(Or,ir)}var dn=function(f){return f.nodeType===1||f.nodeType===9||!+f.nodeType};function hn(){this.expando=x.expando+hn.uid++}hn.uid=1,hn.prototype={cache:function(f){var m=f[this.expando];return m||(m={},dn(f)&&(f.nodeType?f[this.expando]=m:Object.defineProperty(f,this.expando,{value:m,configurable:!0}))),m},set:function(f,m,T){var D,F=this.cache(f);if(typeof m=="string")F[un(m)]=T;else for(D in m)F[un(D)]=m[D];return F},get:function(f,m){return m===void 0?this.cache(f):f[this.expando]&&f[this.expando][un(m)]},access:function(f,m,T){return m===void 0||m&&typeof m=="string"&&T===void 0?this.get(f,m):(this.set(f,m,T),T!==void 0?T:m)},remove:function(f,m){var T,D=f[this.expando];if(D!==void 0){if(m!==void 0)for(Array.isArray(m)?m=m.map(un):(m=un(m),m=m in D?[m]:m.match(gt)||[]),T=m.length;T--;)delete D[m[T]];(m===void 0||x.isEmptyObject(D))&&(f.nodeType?f[this.expando]=void 0:delete f[this.expando])}},hasData:function(f){var m=f[this.expando];return m!==void 0&&!x.isEmptyObject(m)}};var pt=new hn,Rn=new hn,li=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ln=/[A-Z]/g;function Ui(f){return f==="true"?!0:f==="false"?!1:f==="null"?null:f===+f+""?+f:li.test(f)?JSON.parse(f):f}function Wi(f,m,T){var D;if(T===void 0&&f.nodeType===1)if(D="data-"+m.replace(ln,"-$&").toLowerCase(),T=f.getAttribute(D),typeof T=="string"){try{T=Ui(T)}catch{}Rn.set(f,m,T)}else T=void 0;return T}x.extend({hasData:function(f){return Rn.hasData(f)||pt.hasData(f)},data:function(f,m,T){return Rn.access(f,m,T)},removeData:function(f,m){Rn.remove(f,m)},_data:function(f,m,T){return pt.access(f,m,T)},_removeData:function(f,m){pt.remove(f,m)}}),x.fn.extend({data:function(f,m){var T,D,F,j=this[0],H=j&&j.attributes;if(f===void 0){if(this.length&&(F=Rn.get(j),j.nodeType===1&&!pt.get(j,"hasDataAttrs"))){for(T=H.length;T--;)H[T]&&(D=H[T].name,D.indexOf("data-")===0&&(D=un(D.slice(5)),Wi(j,D,F[D])));pt.set(j,"hasDataAttrs",!0)}return F}return typeof f=="object"?this.each(function(){Rn.set(this,f)}):Dn(this,function(ue){var ie;if(j&&ue===void 0)return ie=Rn.get(j,f),ie!==void 0||(ie=Wi(j,f),ie!==void 0)?ie:void 0;this.each(function(){Rn.set(this,f,ue)})},null,m,arguments.length>1,null,!0)},removeData:function(f){return this.each(function(){Rn.remove(this,f)})}}),x.extend({queue:function(f,m,T){var D;if(f)return m=(m||"fx")+"queue",D=pt.get(f,m),T&&(!D||Array.isArray(T)?D=pt.access(f,m,x.makeArray(T)):D.push(T)),D||[]},dequeue:function(f,m){m=m||"fx";var T=x.queue(f,m),D=T.length,F=T.shift(),j=x._queueHooks(f,m),H=function(){x.dequeue(f,m)};F==="inprogress"&&(F=T.shift(),D--),F&&(m==="fx"&&T.unshift("inprogress"),delete j.stop,F.call(f,H,j)),!D&&j&&j.empty.fire()},_queueHooks:function(f,m){var T=m+"queueHooks";return pt.get(f,T)||pt.access(f,T,{empty:x.Callbacks("once memory").add(function(){pt.remove(f,[m+"queue",T])})})}}),x.fn.extend({queue:function(f,m){var T=2;return typeof f!="string"&&(m=f,f="fx",T--),arguments.length<T?x.queue(this[0],f):m===void 0?this:this.each(function(){var D=x.queue(this,f,m);x._queueHooks(this,f),f==="fx"&&D[0]!=="inprogress"&&x.dequeue(this,f)})},dequeue:function(f){return this.each(function(){x.dequeue(this,f)})},clearQueue:function(f){return this.queue(f||"fx",[])},promise:function(f,m){var T,D=1,F=x.Deferred(),j=this,H=this.length,ue=function(){--D||F.resolveWith(j,[j])};for(typeof f!="string"&&(m=f,f=void 0),f=f||"fx";H--;)T=pt.get(j[H],f+"queueHooks"),T&&T.empty&&(D++,T.empty.add(ue));return ue(),F.promise(m)}});var zi=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,_r=new RegExp("^(?:([+-])=|)("+zi+")([a-z%]*)$","i"),Un=["Top","Right","Bottom","Left"],Rr=_.documentElement,br=function(f){return x.contains(f.ownerDocument,f)},qr={composed:!0};Rr.getRootNode&&(br=function(f){return x.contains(f.ownerDocument,f)||f.getRootNode(qr)===f.ownerDocument});var Xr=function(f,m){return f=m||f,f.style.display==="none"||f.style.display===""&&br(f)&&x.css(f,"display")==="none"};function Ao(f,m,T,D){var F,j,H=20,ue=D?function(){return D.cur()}:function(){return x.css(f,m,"")},ie=ue(),we=T&&T[3]||(x.cssNumber[m]?"":"px"),Me=f.nodeType&&(x.cssNumber[m]||we!=="px"&&+ie)&&_r.exec(x.css(f,m));if(Me&&Me[3]!==we){for(ie=ie/2,we=we||Me[3],Me=+ie||1;H--;)x.style(f,m,Me+we),(1-j)*(1-(j=ue()/ie||.5))<=0&&(H=0),Me=Me/j;Me=Me*2,x.style(f,m,Me+we),T=T||[]}return T&&(Me=+Me||+ie||0,F=T[1]?Me+(T[1]+1)*T[2]:+T[2],D&&(D.unit=we,D.start=Me,D.end=F)),F}var Kn={};function Kr(f){var m,T=f.ownerDocument,D=f.nodeName,F=Kn[D];return F||(m=T.body.appendChild(T.createElement(D)),F=x.css(m,"display"),m.parentNode.removeChild(m),F==="none"&&(F="block"),Kn[D]=F,F)}function or(f,m){for(var T,D,F=[],j=0,H=f.length;j<H;j++)D=f[j],D.style&&(T=D.style.display,m?(T==="none"&&(F[j]=pt.get(D,"display")||null,F[j]||(D.style.display="")),D.style.display===""&&Xr(D)&&(F[j]=Kr(D))):T!=="none"&&(F[j]="none",pt.set(D,"display",T)));for(j=0;j<H;j++)F[j]!=null&&(f[j].style.display=F[j]);return f}x.fn.extend({show:function(){return or(this,!0)},hide:function(){return or(this)},toggle:function(f){return typeof f=="boolean"?f?this.show():this.hide():this.each(function(){Xr(this)?x(this).show():x(this).hide()})}});var Zt=/^(?:checkbox|radio)$/i,ui=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Yi=/^$|^module$|\/(?:java|ecma)script/i;(function(){var f=_.createDocumentFragment(),m=f.appendChild(_.createElement("div")),T=_.createElement("input");T.setAttribute("type","radio"),T.setAttribute("checked","checked"),T.setAttribute("name","t"),m.appendChild(T),A.checkClone=m.cloneNode(!0).cloneNode(!0).lastChild.checked,m.innerHTML="<textarea>x</textarea>",A.noCloneChecked=!!m.cloneNode(!0).lastChild.defaultValue,m.innerHTML="<option></option>",A.option=!!m.lastChild})();var An={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,"",""]};An.tbody=An.tfoot=An.colgroup=An.caption=An.thead,An.th=An.td,A.option||(An.optgroup=An.option=[1,"<select multiple='multiple'>","</select>"]);function pn(f,m){var T;return typeof f.getElementsByTagName<"u"?T=f.getElementsByTagName(m||"*"):typeof f.querySelectorAll<"u"?T=f.querySelectorAll(m||"*"):T=[],m===void 0||m&&ce(f,m)?x.merge([f],T):T}function ci(f,m){for(var T=0,D=f.length;T<D;T++)pt.set(f[T],"globalEval",!m||pt.get(m[T],"globalEval"))}var fi=/<|&#?\w+;/;function mn(f,m,T,D,F){for(var j,H,ue,ie,we,Me,Fe=m.createDocumentFragment(),Ee=[],He=0,ut=f.length;He<ut;He++)if(j=f[He],j||j===0)if(se(j)==="object")x.merge(Ee,j.nodeType?[j]:j);else if(!fi.test(j))Ee.push(m.createTextNode(j));else{for(H=H||Fe.appendChild(m.createElement("div")),ue=(ui.exec(j)||["",""])[1].toLowerCase(),ie=An[ue]||An._default,H.innerHTML=ie[1]+x.htmlPrefilter(j)+ie[2],Me=ie[0];Me--;)H=H.lastChild;x.merge(Ee,H.childNodes),H=Fe.firstChild,H.textContent=""}for(Fe.textContent="",He=0;j=Ee[He++];){if(D&&x.inArray(j,D)>-1){F&&F.push(j);continue}if(we=br(j),H=pn(Fe.appendChild(j),"script"),we&&ci(H),T)for(Me=0;j=H[Me++];)Yi.test(j.type||"")&&T.push(j)}return Fe}var co=/^([^.]*)(?:\.(.+)|)/;function wr(){return!0}function di(){return!1}function cn(f,m,T,D,F,j){var H,ue;if(typeof m=="object"){typeof T!="string"&&(D=D||T,T=void 0);for(ue in m)cn(f,ue,T,D,m[ue],j);return f}if(D==null&&F==null?(F=T,D=T=void 0):F==null&&(typeof T=="string"?(F=D,D=void 0):(F=D,D=T,T=void 0)),F===!1)F=di;else if(!F)return f;return j===1&&(H=F,F=function(ie){return x().off(ie),H.apply(this,arguments)},F.guid=H.guid||(H.guid=x.guid++)),f.each(function(){x.event.add(this,m,F,D,T)})}x.event={global:{},add:function(f,m,T,D,F){var j,H,ue,ie,we,Me,Fe,Ee,He,ut,Pt,_t=pt.get(f);if(dn(f))for(T.handler&&(j=T,T=j.handler,F=j.selector),F&&x.find.matchesSelector(Rr,F),T.guid||(T.guid=x.guid++),(ie=_t.events)||(ie=_t.events=Object.create(null)),(H=_t.handle)||(H=_t.handle=function(Mn){return typeof x<"u"&&x.event.triggered!==Mn.type?x.event.dispatch.apply(f,arguments):void 0}),m=(m||"").match(gt)||[""],we=m.length;we--;)ue=co.exec(m[we])||[],He=Pt=ue[1],ut=(ue[2]||"").split(".").sort(),He&&(Fe=x.event.special[He]||{},He=(F?Fe.delegateType:Fe.bindType)||He,Fe=x.event.special[He]||{},Me=x.extend({type:He,origType:Pt,data:D,handler:T,guid:T.guid,selector:F,needsContext:F&&x.expr.match.needsContext.test(F),namespace:ut.join(".")},j),(Ee=ie[He])||(Ee=ie[He]=[],Ee.delegateCount=0,(!Fe.setup||Fe.setup.call(f,D,ut,H)===!1)&&f.addEventListener&&f.addEventListener(He,H)),Fe.add&&(Fe.add.call(f,Me),Me.handler.guid||(Me.handler.guid=T.guid)),F?Ee.splice(Ee.delegateCount++,0,Me):Ee.push(Me),x.event.global[He]=!0)},remove:function(f,m,T,D,F){var j,H,ue,ie,we,Me,Fe,Ee,He,ut,Pt,_t=pt.hasData(f)&&pt.get(f);if(!(!_t||!(ie=_t.events))){for(m=(m||"").match(gt)||[""],we=m.length;we--;){if(ue=co.exec(m[we])||[],He=Pt=ue[1],ut=(ue[2]||"").split(".").sort(),!He){for(He in ie)x.event.remove(f,He+m[we],T,D,!0);continue}for(Fe=x.event.special[He]||{},He=(D?Fe.delegateType:Fe.bindType)||He,Ee=ie[He]||[],ue=ue[2]&&new RegExp("(^|\\.)"+ut.join("\\.(?:.*\\.|)")+"(\\.|$)"),H=j=Ee.length;j--;)Me=Ee[j],(F||Pt===Me.origType)&&(!T||T.guid===Me.guid)&&(!ue||ue.test(Me.namespace))&&(!D||D===Me.selector||D==="**"&&Me.selector)&&(Ee.splice(j,1),Me.selector&&Ee.delegateCount--,Fe.remove&&Fe.remove.call(f,Me));H&&!Ee.length&&((!Fe.teardown||Fe.teardown.call(f,ut,_t.handle)===!1)&&x.removeEvent(f,He,_t.handle),delete ie[He])}x.isEmptyObject(ie)&&pt.remove(f,"handle events")}},dispatch:function(f){var m,T,D,F,j,H,ue=new Array(arguments.length),ie=x.event.fix(f),we=(pt.get(this,"events")||Object.create(null))[ie.type]||[],Me=x.event.special[ie.type]||{};for(ue[0]=ie,m=1;m<arguments.length;m++)ue[m]=arguments[m];if(ie.delegateTarget=this,!(Me.preDispatch&&Me.preDispatch.call(this,ie)===!1)){for(H=x.event.handlers.call(this,ie,we),m=0;(F=H[m++])&&!ie.isPropagationStopped();)for(ie.currentTarget=F.elem,T=0;(j=F.handlers[T++])&&!ie.isImmediatePropagationStopped();)(!ie.rnamespace||j.namespace===!1||ie.rnamespace.test(j.namespace))&&(ie.handleObj=j,ie.data=j.data,D=((x.event.special[j.origType]||{}).handle||j.handler).apply(F.elem,ue),D!==void 0&&(ie.result=D)===!1&&(ie.preventDefault(),ie.stopPropagation()));return Me.postDispatch&&Me.postDispatch.call(this,ie),ie.result}},handlers:function(f,m){var T,D,F,j,H,ue=[],ie=m.delegateCount,we=f.target;if(ie&&we.nodeType&&!(f.type==="click"&&f.button>=1)){for(;we!==this;we=we.parentNode||this)if(we.nodeType===1&&!(f.type==="click"&&we.disabled===!0)){for(j=[],H={},T=0;T<ie;T++)D=m[T],F=D.selector+" ",H[F]===void 0&&(H[F]=D.needsContext?x(F,this).index(we)>-1:x.find(F,this,null,[we]).length),H[F]&&j.push(D);j.length&&ue.push({elem:we,handlers:j})}}return we=this,ie<m.length&&ue.push({elem:we,handlers:m.slice(ie)}),ue},addProp:function(f,m){Object.defineProperty(x.Event.prototype,f,{enumerable:!0,configurable:!0,get:I(m)?function(){if(this.originalEvent)return m(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[f]},set:function(T){Object.defineProperty(this,f,{enumerable:!0,configurable:!0,writable:!0,value:T})}})},fix:function(f){return f[x.expando]?f:new x.Event(f)},special:{load:{noBubble:!0},click:{setup:function(f){var m=this||f;return Zt.test(m.type)&&m.click&&ce(m,"input")&&ki(m,"click",!0),!1},trigger:function(f){var m=this||f;return Zt.test(m.type)&&m.click&&ce(m,"input")&&ki(m,"click"),!0},_default:function(f){var m=f.target;return Zt.test(m.type)&&m.click&&ce(m,"input")&&pt.get(m,"click")||ce(m,"a")}},beforeunload:{postDispatch:function(f){f.result!==void 0&&f.originalEvent&&(f.originalEvent.returnValue=f.result)}}}};function ki(f,m,T){if(!T){pt.get(f,m)===void 0&&x.event.add(f,m,wr);return}pt.set(f,m,!1),x.event.add(f,m,{namespace:!1,handler:function(D){var F,j=pt.get(this,m);if(D.isTrigger&1&&this[m]){if(j)(x.event.special[m]||{}).delegateType&&D.stopPropagation();else if(j=o.call(arguments),pt.set(this,m,j),this[m](),F=pt.get(this,m),pt.set(this,m,!1),j!==F)return D.stopImmediatePropagation(),D.preventDefault(),F}else j&&(pt.set(this,m,x.event.trigger(j[0],j.slice(1),this)),D.stopPropagation(),D.isImmediatePropagationStopped=wr)}})}x.removeEvent=function(f,m,T){f.removeEventListener&&f.removeEventListener(m,T)},x.Event=function(f,m){if(!(this instanceof x.Event))return new x.Event(f,m);f&&f.type?(this.originalEvent=f,this.type=f.type,this.isDefaultPrevented=f.defaultPrevented||f.defaultPrevented===void 0&&f.returnValue===!1?wr:di,this.target=f.target&&f.target.nodeType===3?f.target.parentNode:f.target,this.currentTarget=f.currentTarget,this.relatedTarget=f.relatedTarget):this.type=f,m&&x.extend(this,m),this.timeStamp=f&&f.timeStamp||Date.now(),this[x.expando]=!0},x.Event.prototype={constructor:x.Event,isDefaultPrevented:di,isPropagationStopped:di,isImmediatePropagationStopped:di,isSimulated:!1,preventDefault:function(){var f=this.originalEvent;this.isDefaultPrevented=wr,f&&!this.isSimulated&&f.preventDefault()},stopPropagation:function(){var f=this.originalEvent;this.isPropagationStopped=wr,f&&!this.isSimulated&&f.stopPropagation()},stopImmediatePropagation:function(){var f=this.originalEvent;this.isImmediatePropagationStopped=wr,f&&!this.isSimulated&&f.stopImmediatePropagation(),this.stopPropagation()}},x.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},x.event.addProp),x.each({focus:"focusin",blur:"focusout"},function(f,m){function T(D){if(_.documentMode){var F=pt.get(this,"handle"),j=x.event.fix(D);j.type=D.type==="focusin"?"focus":"blur",j.isSimulated=!0,F(D),j.target===j.currentTarget&&F(j)}else x.event.simulate(m,D.target,x.event.fix(D))}x.event.special[f]={setup:function(){var D;if(ki(this,f,!0),_.documentMode)D=pt.get(this,m),D||this.addEventListener(m,T),pt.set(this,m,(D||0)+1);else return!1},trigger:function(){return ki(this,f),!0},teardown:function(){var D;if(_.documentMode)D=pt.get(this,m)-1,D?pt.set(this,m,D):(this.removeEventListener(m,T),pt.remove(this,m));else return!1},_default:function(D){return pt.get(D.target,f)},delegateType:m},x.event.special[m]={setup:function(){var D=this.ownerDocument||this.document||this,F=_.documentMode?this:D,j=pt.get(F,m);j||(_.documentMode?this.addEventListener(m,T):D.addEventListener(f,T,!0)),pt.set(F,m,(j||0)+1)},teardown:function(){var D=this.ownerDocument||this.document||this,F=_.documentMode?this:D,j=pt.get(F,m)-1;j?pt.set(F,m,j):(_.documentMode?this.removeEventListener(m,T):D.removeEventListener(f,T,!0),pt.remove(F,m))}}}),x.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(f,m){x.event.special[f]={delegateType:m,bindType:m,handle:function(T){var D,F=this,j=T.relatedTarget,H=T.handleObj;return(!j||j!==F&&!x.contains(F,j))&&(T.type=H.origType,D=H.handler.apply(this,arguments),T.type=m),D}}}),x.fn.extend({on:function(f,m,T,D){return cn(this,f,m,T,D)},one:function(f,m,T,D){return cn(this,f,m,T,D,1)},off:function(f,m,T){var D,F;if(f&&f.preventDefault&&f.handleObj)return D=f.handleObj,x(f.delegateTarget).off(D.namespace?D.origType+"."+D.namespace:D.origType,D.selector,D.handler),this;if(typeof f=="object"){for(F in f)this.off(F,m,f[F]);return this}return(m===!1||typeof m=="function")&&(T=m,m=void 0),T===!1&&(T=di),this.each(function(){x.event.remove(this,f,T,m)})}});var Ms=/<script|<style|<link/i,Ls=/checked\s*(?:[^=]|=\s*.checked.)/i,Zr=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function fo(f,m){return ce(f,"table")&&ce(m.nodeType!==11?m:m.firstChild,"tr")&&x(f).children("tbody")[0]||f}function ho(f){return f.type=(f.getAttribute("type")!==null)+"/"+f.type,f}function Io(f){return(f.type||"").slice(0,5)==="true/"?f.type=f.type.slice(5):f.removeAttribute("type"),f}function Di(f,m){var T,D,F,j,H,ue,ie;if(m.nodeType===1){if(pt.hasData(f)&&(j=pt.get(f),ie=j.events,ie)){pt.remove(m,"handle events");for(F in ie)for(T=0,D=ie[F].length;T<D;T++)x.event.add(m,F,ie[F][T])}Rn.hasData(f)&&(H=Rn.access(f),ue=x.extend({},H),Rn.set(m,ue))}}function hi(f,m){var T=m.nodeName.toLowerCase();T==="input"&&Zt.test(f.type)?m.checked=f.checked:(T==="input"||T==="textarea")&&(m.defaultValue=f.defaultValue)}function Pi(f,m,T,D){m=a(m);var F,j,H,ue,ie,we,Me=0,Fe=f.length,Ee=Fe-1,He=m[0],ut=I(He);if(ut||Fe>1&&typeof He=="string"&&!A.checkClone&&Ls.test(He))return f.each(function(Pt){var _t=f.eq(Pt);ut&&(m[0]=He.call(this,Pt,_t.html())),Pi(_t,m,T,D)});if(Fe&&(F=mn(m,f[0].ownerDocument,!1,f,D),j=F.firstChild,F.childNodes.length===1&&(F=j),j||D)){for(H=x.map(pn(F,"script"),ho),ue=H.length;Me<Fe;Me++)ie=F,Me!==Ee&&(ie=x.clone(ie,!0,!0),ue&&x.merge(H,pn(ie,"script"))),T.call(f[Me],ie,Me);if(ue)for(we=H[H.length-1].ownerDocument,x.map(H,Io),Me=0;Me<ue;Me++)ie=H[Me],Yi.test(ie.type||"")&&!pt.access(ie,"globalEval")&&x.contains(we,ie)&&(ie.src&&(ie.type||"").toLowerCase()!=="module"?x._evalUrl&&!ie.noModule&&x._evalUrl(ie.src,{nonce:ie.nonce||ie.getAttribute("nonce")},we):q(ie.textContent.replace(Zr,""),ie,we))}return f}function po(f,m,T){for(var D,F=m?x.filter(m,f):f,j=0;(D=F[j])!=null;j++)!T&&D.nodeType===1&&x.cleanData(pn(D)),D.parentNode&&(T&&br(D)&&ci(pn(D,"script")),D.parentNode.removeChild(D));return f}x.extend({htmlPrefilter:function(f){return f},clone:function(f,m,T){var D,F,j,H,ue=f.cloneNode(!0),ie=br(f);if(!A.noCloneChecked&&(f.nodeType===1||f.nodeType===11)&&!x.isXMLDoc(f))for(H=pn(ue),j=pn(f),D=0,F=j.length;D<F;D++)hi(j[D],H[D]);if(m)if(T)for(j=j||pn(f),H=H||pn(ue),D=0,F=j.length;D<F;D++)Di(j[D],H[D]);else Di(f,ue);return H=pn(ue,"script"),H.length>0&&ci(H,!ie&&pn(f,"script")),ue},cleanData:function(f){for(var m,T,D,F=x.event.special,j=0;(T=f[j])!==void 0;j++)if(dn(T)){if(m=T[pt.expando]){if(m.events)for(D in m.events)F[D]?x.event.remove(T,D):x.removeEvent(T,D,m.handle);T[pt.expando]=void 0}T[Rn.expando]&&(T[Rn.expando]=void 0)}}}),x.fn.extend({detach:function(f){return po(this,f,!0)},remove:function(f){return po(this,f)},text:function(f){return Dn(this,function(m){return m===void 0?x.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=m)})},null,f,arguments.length)},append:function(){return Pi(this,arguments,function(f){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var m=fo(this,f);m.appendChild(f)}})},prepend:function(){return Pi(this,arguments,function(f){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var m=fo(this,f);m.insertBefore(f,m.firstChild)}})},before:function(){return Pi(this,arguments,function(f){this.parentNode&&this.parentNode.insertBefore(f,this)})},after:function(){return Pi(this,arguments,function(f){this.parentNode&&this.parentNode.insertBefore(f,this.nextSibling)})},empty:function(){for(var f,m=0;(f=this[m])!=null;m++)f.nodeType===1&&(x.cleanData(pn(f,!1)),f.textContent="");return this},clone:function(f,m){return f=f??!1,m=m??f,this.map(function(){return x.clone(this,f,m)})},html:function(f){return Dn(this,function(m){var T=this[0]||{},D=0,F=this.length;if(m===void 0&&T.nodeType===1)return T.innerHTML;if(typeof m=="string"&&!Ms.test(m)&&!An[(ui.exec(m)||["",""])[1].toLowerCase()]){m=x.htmlPrefilter(m);try{for(;D<F;D++)T=this[D]||{},T.nodeType===1&&(x.cleanData(pn(T,!1)),T.innerHTML=m);T=0}catch{}}T&&this.empty().append(m)},null,f,arguments.length)},replaceWith:function(){var f=[];return Pi(this,arguments,function(m){var T=this.parentNode;x.inArray(this,f)<0&&(x.cleanData(pn(this)),T&&T.replaceChild(m,this))},f)}}),x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(f,m){x.fn[f]=function(T){for(var D,F=[],j=x(T),H=j.length-1,ue=0;ue<=H;ue++)D=ue===H?this:this.clone(!0),x(j[ue])[m](D),u.apply(F,D.get());return this.pushStack(F)}});var Oi=new RegExp("^("+zi+")(?!px)[a-z%]+$","i"),Jr=/^--/,xr=function(f){var m=f.ownerDocument.defaultView;return(!m||!m.opener)&&(m=e),m.getComputedStyle(f)},Ar=function(f,m,T){var D,F,j={};for(F in m)j[F]=f.style[F],f.style[F]=m[F];D=T.call(f);for(F in m)f.style[F]=j[F];return D},Qr=new RegExp(Un.join("|"),"i");(function(){function f(){if(we){ie.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",we.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",Rr.appendChild(ie).appendChild(we);var Me=e.getComputedStyle(we);T=Me.top!=="1%",ue=m(Me.marginLeft)===12,we.style.right="60%",j=m(Me.right)===36,D=m(Me.width)===36,we.style.position="absolute",F=m(we.offsetWidth/3)===12,Rr.removeChild(ie),we=null}}function m(Me){return Math.round(parseFloat(Me))}var T,D,F,j,H,ue,ie=_.createElement("div"),we=_.createElement("div");we.style&&(we.style.backgroundClip="content-box",we.cloneNode(!0).style.backgroundClip="",A.clearCloneStyle=we.style.backgroundClip==="content-box",x.extend(A,{boxSizingReliable:function(){return f(),D},pixelBoxStyles:function(){return f(),j},pixelPosition:function(){return f(),T},reliableMarginLeft:function(){return f(),ue},scrollboxSize:function(){return f(),F},reliableTrDimensions:function(){var Me,Fe,Ee,He;return H==null&&(Me=_.createElement("table"),Fe=_.createElement("tr"),Ee=_.createElement("div"),Me.style.cssText="position:absolute;left:-11111px;border-collapse:separate",Fe.style.cssText="box-sizing:content-box;border:1px solid",Fe.style.height="1px",Ee.style.height="9px",Ee.style.display="block",Rr.appendChild(Me).appendChild(Fe).appendChild(Ee),He=e.getComputedStyle(Fe),H=parseInt(He.height,10)+parseInt(He.borderTopWidth,10)+parseInt(He.borderBottomWidth,10)===Fe.offsetHeight,Rr.removeChild(Me)),H}}))})();function Ir(f,m,T){var D,F,j,H,ue=Jr.test(m),ie=f.style;return T=T||xr(f),T&&(H=T.getPropertyValue(m)||T[m],ue&&H&&(H=H.replace(it,"$1")||void 0),H===""&&!br(f)&&(H=x.style(f,m)),!A.pixelBoxStyles()&&Oi.test(H)&&Qr.test(m)&&(D=ie.width,F=ie.minWidth,j=ie.maxWidth,ie.minWidth=ie.maxWidth=ie.width=H,H=T.width,ie.width=D,ie.minWidth=F,ie.maxWidth=j)),H!==void 0?H+"":H}function Wn(f,m){return{get:function(){if(f()){delete this.get;return}return(this.get=m).apply(this,arguments)}}}var gn=["Webkit","Moz","ms"],Mr=_.createElement("div").style,Sr={};function In(f){for(var m=f[0].toUpperCase()+f.slice(1),T=gn.length;T--;)if(f=gn[T]+m,f in Mr)return f}function pi(f){var m=x.cssProps[f]||Sr[f];return m||(f in Mr?f:Sr[f]=In(f)||f)}var Lr=/^(none|table(?!-c[ea]).+)/,ei={position:"absolute",visibility:"hidden",display:"block"},Zn={letterSpacing:"0",fontWeight:"400"};function ti(f,m,T){var D=_r.exec(m);return D?Math.max(0,D[2]-(T||0))+(D[3]||"px"):m}function ni(f,m,T,D,F,j){var H=m==="width"?1:0,ue=0,ie=0,we=0;if(T===(D?"border":"content"))return 0;for(;H<4;H+=2)T==="margin"&&(we+=x.css(f,T+Un[H],!0,F)),D?(T==="content"&&(ie-=x.css(f,"padding"+Un[H],!0,F)),T!=="margin"&&(ie-=x.css(f,"border"+Un[H]+"Width",!0,F))):(ie+=x.css(f,"padding"+Un[H],!0,F),T!=="padding"?ie+=x.css(f,"border"+Un[H]+"Width",!0,F):ue+=x.css(f,"border"+Un[H]+"Width",!0,F));return!D&&j>=0&&(ie+=Math.max(0,Math.ceil(f["offset"+m[0].toUpperCase()+m.slice(1)]-j-ie-ue-.5))||0),ie+we}function Gi(f,m,T){var D=xr(f),F=!A.boxSizingReliable()||T,j=F&&x.css(f,"boxSizing",!1,D)==="border-box",H=j,ue=Ir(f,m,D),ie="offset"+m[0].toUpperCase()+m.slice(1);if(Oi.test(ue)){if(!T)return ue;ue="auto"}return(!A.boxSizingReliable()&&j||!A.reliableTrDimensions()&&ce(f,"tr")||ue==="auto"||!parseFloat(ue)&&x.css(f,"display",!1,D)==="inline")&&f.getClientRects().length&&(j=x.css(f,"boxSizing",!1,D)==="border-box",H=ie in f,H&&(ue=f[ie])),ue=parseFloat(ue)||0,ue+ni(f,m,T||(j?"border":"content"),H,D,ue)+"px"}x.extend({cssHooks:{opacity:{get:function(f,m){if(m){var T=Ir(f,"opacity");return T===""?"1":T}}}},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(f,m,T,D){if(!(!f||f.nodeType===3||f.nodeType===8||!f.style)){var F,j,H,ue=un(m),ie=Jr.test(m),we=f.style;if(ie||(m=pi(ue)),H=x.cssHooks[m]||x.cssHooks[ue],T!==void 0){if(j=typeof T,j==="string"&&(F=_r.exec(T))&&F[1]&&(T=Ao(f,m,F),j="number"),T==null||T!==T)return;j==="number"&&!ie&&(T+=F&&F[3]||(x.cssNumber[ue]?"":"px")),!A.clearCloneStyle&&T===""&&m.indexOf("background")===0&&(we[m]="inherit"),(!H||!("set"in H)||(T=H.set(f,T,D))!==void 0)&&(ie?we.setProperty(m,T):we[m]=T)}else return H&&"get"in H&&(F=H.get(f,!1,D))!==void 0?F:we[m]}},css:function(f,m,T,D){var F,j,H,ue=un(m),ie=Jr.test(m);return ie||(m=pi(ue)),H=x.cssHooks[m]||x.cssHooks[ue],H&&"get"in H&&(F=H.get(f,!0,T)),F===void 0&&(F=Ir(f,m,D)),F==="normal"&&m in Zn&&(F=Zn[m]),T===""||T?(j=parseFloat(F),T===!0||isFinite(j)?j||0:F):F}}),x.each(["height","width"],function(f,m){x.cssHooks[m]={get:function(T,D,F){if(D)return Lr.test(x.css(T,"display"))&&(!T.getClientRects().length||!T.getBoundingClientRect().width)?Ar(T,ei,function(){return Gi(T,m,F)}):Gi(T,m,F)},set:function(T,D,F){var j,H=xr(T),ue=!A.scrollboxSize()&&H.position==="absolute",ie=ue||F,we=ie&&x.css(T,"boxSizing",!1,H)==="border-box",Me=F?ni(T,m,F,we,H):0;return we&&ue&&(Me-=Math.ceil(T["offset"+m[0].toUpperCase()+m.slice(1)]-parseFloat(H[m])-ni(T,m,"border",!1,H)-.5)),Me&&(j=_r.exec(D))&&(j[3]||"px")!=="px"&&(T.style[m]=D,D=x.css(T,m)),ti(T,D,Me)}}}),x.cssHooks.marginLeft=Wn(A.reliableMarginLeft,function(f,m){if(m)return(parseFloat(Ir(f,"marginLeft"))||f.getBoundingClientRect().left-Ar(f,{marginLeft:0},function(){return f.getBoundingClientRect().left}))+"px"}),x.each({margin:"",padding:"",border:"Width"},function(f,m){x.cssHooks[f+m]={expand:function(T){for(var D=0,F={},j=typeof T=="string"?T.split(" "):[T];D<4;D++)F[f+Un[D]+m]=j[D]||j[D-2]||j[0];return F}},f!=="margin"&&(x.cssHooks[f+m].set=ti)}),x.fn.extend({css:function(f,m){return Dn(this,function(T,D,F){var j,H,ue={},ie=0;if(Array.isArray(D)){for(j=xr(T),H=D.length;ie<H;ie++)ue[D[ie]]=x.css(T,D[ie],!1,j);return ue}return F!==void 0?x.style(T,D,F):x.css(T,D)},f,m,arguments.length>1)}});function On(f,m,T,D,F){return new On.prototype.init(f,m,T,D,F)}x.Tween=On,On.prototype={constructor:On,init:function(f,m,T,D,F,j){this.elem=f,this.prop=T,this.easing=F||x.easing._default,this.options=m,this.start=this.now=this.cur(),this.end=D,this.unit=j||(x.cssNumber[T]?"":"px")},cur:function(){var f=On.propHooks[this.prop];return f&&f.get?f.get(this):On.propHooks._default.get(this)},run:function(f){var m,T=On.propHooks[this.prop];return this.options.duration?this.pos=m=x.easing[this.easing](f,this.options.duration*f,0,1,this.options.duration):this.pos=m=f,this.now=(this.end-this.start)*m+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),T&&T.set?T.set(this):On.propHooks._default.set(this),this}},On.prototype.init.prototype=On.prototype,On.propHooks={_default:{get:function(f){var m;return f.elem.nodeType!==1||f.elem[f.prop]!=null&&f.elem.style[f.prop]==null?f.elem[f.prop]:(m=x.css(f.elem,f.prop,""),!m||m==="auto"?0:m)},set:function(f){x.fx.step[f.prop]?x.fx.step[f.prop](f):f.elem.nodeType===1&&(x.cssHooks[f.prop]||f.elem.style[pi(f.prop)]!=null)?x.style(f.elem,f.prop,f.now+f.unit):f.elem[f.prop]=f.now}}},On.propHooks.scrollTop=On.propHooks.scrollLeft={set:function(f){f.elem.nodeType&&f.elem.parentNode&&(f.elem[f.prop]=f.now)}},x.easing={linear:function(f){return f},swing:function(f){return .5-Math.cos(f*Math.PI)/2},_default:"swing"},x.fx=On.prototype.init,x.fx.step={};var Tr,cr,Mo=/^(?:toggle|show|hide)$/,qi=/queueHooks$/;function Fr(){cr&&(_.hidden===!1&&e.requestAnimationFrame?e.requestAnimationFrame(Fr):e.setTimeout(Fr,x.fx.interval),x.fx.tick())}function E(){return e.setTimeout(function(){Tr=void 0}),Tr=Date.now()}function N(f,m){var T,D=0,F={height:f};for(m=m?1:0;D<4;D+=2-m)T=Un[D],F["margin"+T]=F["padding"+T]=f;return m&&(F.opacity=F.width=f),F}function Y(f,m,T){for(var D,F=(be.tweeners[m]||[]).concat(be.tweeners["*"]),j=0,H=F.length;j<H;j++)if(D=F[j].call(T,m,f))return D}function ne(f,m,T){var D,F,j,H,ue,ie,we,Me,Fe="width"in m||"height"in m,Ee=this,He={},ut=f.style,Pt=f.nodeType&&Xr(f),_t=pt.get(f,"fxshow");T.queue||(H=x._queueHooks(f,"fx"),H.unqueued==null&&(H.unqueued=0,ue=H.empty.fire,H.empty.fire=function(){H.unqueued||ue()}),H.unqueued++,Ee.always(function(){Ee.always(function(){H.unqueued--,x.queue(f,"fx").length||H.empty.fire()})}));for(D in m)if(F=m[D],Mo.test(F)){if(delete m[D],j=j||F==="toggle",F===(Pt?"hide":"show"))if(F==="show"&&_t&&_t[D]!==void 0)Pt=!0;else continue;He[D]=_t&&_t[D]||x.style(f,D)}if(ie=!x.isEmptyObject(m),!(!ie&&x.isEmptyObject(He))){Fe&&f.nodeType===1&&(T.overflow=[ut.overflow,ut.overflowX,ut.overflowY],we=_t&&_t.display,we==null&&(we=pt.get(f,"display")),Me=x.css(f,"display"),Me==="none"&&(we?Me=we:(or([f],!0),we=f.style.display||we,Me=x.css(f,"display"),or([f]))),(Me==="inline"||Me==="inline-block"&&we!=null)&&x.css(f,"float")==="none"&&(ie||(Ee.done(function(){ut.display=we}),we==null&&(Me=ut.display,we=Me==="none"?"":Me)),ut.display="inline-block")),T.overflow&&(ut.overflow="hidden",Ee.always(function(){ut.overflow=T.overflow[0],ut.overflowX=T.overflow[1],ut.overflowY=T.overflow[2]})),ie=!1;for(D in He)ie||(_t?"hidden"in _t&&(Pt=_t.hidden):_t=pt.access(f,"fxshow",{display:we}),j&&(_t.hidden=!Pt),Pt&&or([f],!0),Ee.done(function(){Pt||or([f]),pt.remove(f,"fxshow");for(D in He)x.style(f,D,He[D])})),ie=Y(Pt?_t[D]:0,D,Ee),D in _t||(_t[D]=ie.start,Pt&&(ie.end=ie.start,ie.start=0))}}function Pe(f,m){var T,D,F,j,H;for(T in f)if(D=un(T),F=m[D],j=f[T],Array.isArray(j)&&(F=j[1],j=f[T]=j[0]),T!==D&&(f[D]=j,delete f[T]),H=x.cssHooks[D],H&&"expand"in H){j=H.expand(j),delete f[D];for(T in j)T in f||(f[T]=j[T],m[T]=F)}else m[D]=F}function be(f,m,T){var D,F,j=0,H=be.prefilters.length,ue=x.Deferred().always(function(){delete ie.elem}),ie=function(){if(F)return!1;for(var Fe=Tr||E(),Ee=Math.max(0,we.startTime+we.duration-Fe),He=Ee/we.duration||0,ut=1-He,Pt=0,_t=we.tweens.length;Pt<_t;Pt++)we.tweens[Pt].run(ut);return ue.notifyWith(f,[we,ut,Ee]),ut<1&&_t?Ee:(_t||ue.notifyWith(f,[we,1,0]),ue.resolveWith(f,[we]),!1)},we=ue.promise({elem:f,props:x.extend({},m),opts:x.extend(!0,{specialEasing:{},easing:x.easing._default},T),originalProperties:m,originalOptions:T,startTime:Tr||E(),duration:T.duration,tweens:[],createTween:function(Fe,Ee){var He=x.Tween(f,we.opts,Fe,Ee,we.opts.specialEasing[Fe]||we.opts.easing);return we.tweens.push(He),He},stop:function(Fe){var Ee=0,He=Fe?we.tweens.length:0;if(F)return this;for(F=!0;Ee<He;Ee++)we.tweens[Ee].run(1);return Fe?(ue.notifyWith(f,[we,1,0]),ue.resolveWith(f,[we,Fe])):ue.rejectWith(f,[we,Fe]),this}}),Me=we.props;for(Pe(Me,we.opts.specialEasing);j<H;j++)if(D=be.prefilters[j].call(we,f,Me,we.opts),D)return I(D.stop)&&(x._queueHooks(we.elem,we.opts.queue).stop=D.stop.bind(D)),D;return x.map(Me,Y,we),I(we.opts.start)&&we.opts.start.call(f,we),we.progress(we.opts.progress).done(we.opts.done,we.opts.complete).fail(we.opts.fail).always(we.opts.always),x.fx.timer(x.extend(ie,{elem:f,anim:we,queue:we.opts.queue})),we}x.Animation=x.extend(be,{tweeners:{"*":[function(f,m){var T=this.createTween(f,m);return Ao(T.elem,f,_r.exec(m),T),T}]},tweener:function(f,m){I(f)?(m=f,f=["*"]):f=f.match(gt);for(var T,D=0,F=f.length;D<F;D++)T=f[D],be.tweeners[T]=be.tweeners[T]||[],be.tweeners[T].unshift(m)},prefilters:[ne],prefilter:function(f,m){m?be.prefilters.unshift(f):be.prefilters.push(f)}}),x.speed=function(f,m,T){var D=f&&typeof f=="object"?x.extend({},f):{complete:T||!T&&m||I(f)&&f,duration:f,easing:T&&m||m&&!I(m)&&m};return x.fx.off?D.duration=0:typeof D.duration!="number"&&(D.duration in x.fx.speeds?D.duration=x.fx.speeds[D.duration]:D.duration=x.fx.speeds._default),(D.queue==null||D.queue===!0)&&(D.queue="fx"),D.old=D.complete,D.complete=function(){I(D.old)&&D.old.call(this),D.queue&&x.dequeue(this,D.queue)},D},x.fn.extend({fadeTo:function(f,m,T,D){return this.filter(Xr).css("opacity",0).show().end().animate({opacity:m},f,T,D)},animate:function(f,m,T,D){var F=x.isEmptyObject(f),j=x.speed(m,T,D),H=function(){var ue=be(this,x.extend({},f),j);(F||pt.get(this,"finish"))&&ue.stop(!0)};return H.finish=H,F||j.queue===!1?this.each(H):this.queue(j.queue,H)},stop:function(f,m,T){var D=function(F){var j=F.stop;delete F.stop,j(T)};return typeof f!="string"&&(T=m,m=f,f=void 0),m&&this.queue(f||"fx",[]),this.each(function(){var F=!0,j=f!=null&&f+"queueHooks",H=x.timers,ue=pt.get(this);if(j)ue[j]&&ue[j].stop&&D(ue[j]);else for(j in ue)ue[j]&&ue[j].stop&&qi.test(j)&&D(ue[j]);for(j=H.length;j--;)H[j].elem===this&&(f==null||H[j].queue===f)&&(H[j].anim.stop(T),F=!1,H.splice(j,1));(F||!T)&&x.dequeue(this,f)})},finish:function(f){return f!==!1&&(f=f||"fx"),this.each(function(){var m,T=pt.get(this),D=T[f+"queue"],F=T[f+"queueHooks"],j=x.timers,H=D?D.length:0;for(T.finish=!0,x.queue(this,f,[]),F&&F.stop&&F.stop.call(this,!0),m=j.length;m--;)j[m].elem===this&&j[m].queue===f&&(j[m].anim.stop(!0),j.splice(m,1));for(m=0;m<H;m++)D[m]&&D[m].finish&&D[m].finish.call(this);delete T.finish})}}),x.each(["toggle","show","hide"],function(f,m){var T=x.fn[m];x.fn[m]=function(D,F,j){return D==null||typeof D=="boolean"?T.apply(this,arguments):this.animate(N(m,!0),D,F,j)}}),x.each({slideDown:N("show"),slideUp:N("hide"),slideToggle:N("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(f,m){x.fn[f]=function(T,D,F){return this.animate(m,T,D,F)}}),x.timers=[],x.fx.tick=function(){var f,m=0,T=x.timers;for(Tr=Date.now();m<T.length;m++)f=T[m],!f()&&T[m]===f&&T.splice(m--,1);T.length||x.fx.stop(),Tr=void 0},x.fx.timer=function(f){x.timers.push(f),x.fx.start()},x.fx.interval=13,x.fx.start=function(){cr||(cr=!0,Fr())},x.fx.stop=function(){cr=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fn.delay=function(f,m){return f=x.fx&&x.fx.speeds[f]||f,m=m||"fx",this.queue(m,function(T,D){var F=e.setTimeout(T,f);D.stop=function(){e.clearTimeout(F)}})},function(){var f=_.createElement("input"),m=_.createElement("select"),T=m.appendChild(_.createElement("option"));f.type="checkbox",A.checkOn=f.value!=="",A.optSelected=T.selected,f=_.createElement("input"),f.value="t",f.type="radio",A.radioValue=f.value==="t"}();var Ie,Je=x.expr.attrHandle;x.fn.extend({attr:function(f,m){return Dn(this,x.attr,f,m,arguments.length>1)},removeAttr:function(f){return this.each(function(){x.removeAttr(this,f)})}}),x.extend({attr:function(f,m,T){var D,F,j=f.nodeType;if(!(j===3||j===8||j===2)){if(typeof f.getAttribute>"u")return x.prop(f,m,T);if((j!==1||!x.isXMLDoc(f))&&(F=x.attrHooks[m.toLowerCase()]||(x.expr.match.bool.test(m)?Ie:void 0)),T!==void 0){if(T===null){x.removeAttr(f,m);return}return F&&"set"in F&&(D=F.set(f,T,m))!==void 0?D:(f.setAttribute(m,T+""),T)}return F&&"get"in F&&(D=F.get(f,m))!==null?D:(D=x.find.attr(f,m),D??void 0)}},attrHooks:{type:{set:function(f,m){if(!A.radioValue&&m==="radio"&&ce(f,"input")){var T=f.value;return f.setAttribute("type",m),T&&(f.value=T),m}}}},removeAttr:function(f,m){var T,D=0,F=m&&m.match(gt);if(F&&f.nodeType===1)for(;T=F[D++];)f.removeAttribute(T)}}),Ie={set:function(f,m,T){return m===!1?x.removeAttr(f,T):f.setAttribute(T,T),T}},x.each(x.expr.match.bool.source.match(/\w+/g),function(f,m){var T=Je[m]||x.find.attr;Je[m]=function(D,F,j){var H,ue,ie=F.toLowerCase();return j||(ue=Je[ie],Je[ie]=H,H=T(D,F,j)!=null?ie:null,Je[ie]=ue),H}});var mt=/^(?:input|select|textarea|button)$/i,St=/^(?:a|area)$/i;x.fn.extend({prop:function(f,m){return Dn(this,x.prop,f,m,arguments.length>1)},removeProp:function(f){return this.each(function(){delete this[x.propFix[f]||f]})}}),x.extend({prop:function(f,m,T){var D,F,j=f.nodeType;if(!(j===3||j===8||j===2))return(j!==1||!x.isXMLDoc(f))&&(m=x.propFix[m]||m,F=x.propHooks[m]),T!==void 0?F&&"set"in F&&(D=F.set(f,T,m))!==void 0?D:f[m]=T:F&&"get"in F&&(D=F.get(f,m))!==null?D:f[m]},propHooks:{tabIndex:{get:function(f){var m=x.find.attr(f,"tabindex");return m?parseInt(m,10):mt.test(f.nodeName)||St.test(f.nodeName)&&f.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),A.optSelected||(x.propHooks.selected={get:function(f){var m=f.parentNode;return m&&m.parentNode&&m.parentNode.selectedIndex,null},set:function(f){var m=f.parentNode;m&&(m.selectedIndex,m.parentNode&&m.parentNode.selectedIndex)}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this});function vt(f){var m=f.match(gt)||[];return m.join(" ")}function Ht(f){return f.getAttribute&&f.getAttribute("class")||""}function Jn(f){return Array.isArray(f)?f:typeof f=="string"?f.match(gt)||[]:[]}x.fn.extend({addClass:function(f){var m,T,D,F,j,H;return I(f)?this.each(function(ue){x(this).addClass(f.call(this,ue,Ht(this)))}):(m=Jn(f),m.length?this.each(function(){if(D=Ht(this),T=this.nodeType===1&&" "+vt(D)+" ",T){for(j=0;j<m.length;j++)F=m[j],T.indexOf(" "+F+" ")<0&&(T+=F+" ");H=vt(T),D!==H&&this.setAttribute("class",H)}}):this)},removeClass:function(f){var m,T,D,F,j,H;return I(f)?this.each(function(ue){x(this).removeClass(f.call(this,ue,Ht(this)))}):arguments.length?(m=Jn(f),m.length?this.each(function(){if(D=Ht(this),T=this.nodeType===1&&" "+vt(D)+" ",T){for(j=0;j<m.length;j++)for(F=m[j];T.indexOf(" "+F+" ")>-1;)T=T.replace(" "+F+" "," ");H=vt(T),D!==H&&this.setAttribute("class",H)}}):this):this.attr("class","")},toggleClass:function(f,m){var T,D,F,j,H=typeof f,ue=H==="string"||Array.isArray(f);return I(f)?this.each(function(ie){x(this).toggleClass(f.call(this,ie,Ht(this),m),m)}):typeof m=="boolean"&&ue?m?this.addClass(f):this.removeClass(f):(T=Jn(f),this.each(function(){if(ue)for(j=x(this),F=0;F<T.length;F++)D=T[F],j.hasClass(D)?j.removeClass(D):j.addClass(D);else(f===void 0||H==="boolean")&&(D=Ht(this),D&&pt.set(this,"__className__",D),this.setAttribute&&this.setAttribute("class",D||f===!1?"":pt.get(this,"__className__")||""))}))},hasClass:function(f){var m,T,D=0;for(m=" "+f+" ";T=this[D++];)if(T.nodeType===1&&(" "+vt(Ht(T))+" ").indexOf(m)>-1)return!0;return!1}});var zn=/\r/g;x.fn.extend({val:function(f){var m,T,D,F=this[0];return arguments.length?(D=I(f),this.each(function(j){var H;this.nodeType===1&&(D?H=f.call(this,j,x(this).val()):H=f,H==null?H="":typeof H=="number"?H+="":Array.isArray(H)&&(H=x.map(H,function(ue){return ue==null?"":ue+""})),m=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()],(!m||!("set"in m)||m.set(this,H,"value")===void 0)&&(this.value=H))})):F?(m=x.valHooks[F.type]||x.valHooks[F.nodeName.toLowerCase()],m&&"get"in m&&(T=m.get(F,"value"))!==void 0?T:(T=F.value,typeof T=="string"?T.replace(zn,""):T??"")):void 0}}),x.extend({valHooks:{option:{get:function(f){var m=x.find.attr(f,"value");return m??vt(x.text(f))}},select:{get:function(f){var m,T,D,F=f.options,j=f.selectedIndex,H=f.type==="select-one",ue=H?null:[],ie=H?j+1:F.length;for(j<0?D=ie:D=H?j:0;D<ie;D++)if(T=F[D],(T.selected||D===j)&&!T.disabled&&(!T.parentNode.disabled||!ce(T.parentNode,"optgroup"))){if(m=x(T).val(),H)return m;ue.push(m)}return ue},set:function(f,m){for(var T,D,F=f.options,j=x.makeArray(m),H=F.length;H--;)D=F[H],(D.selected=x.inArray(x.valHooks.option.get(D),j)>-1)&&(T=!0);return T||(f.selectedIndex=-1),j}}}}),x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(f,m){if(Array.isArray(m))return f.checked=x.inArray(x(f).val(),m)>-1}},A.checkOn||(x.valHooks[this].get=function(f){return f.getAttribute("value")===null?"on":f.value})});var Pn=e.location,Nr={guid:Date.now()},sr=/\?/;x.parseXML=function(f){var m,T;if(!f||typeof f!="string")return null;try{m=new e.DOMParser().parseFromString(f,"text/xml")}catch{}return T=m&&m.getElementsByTagName("parsererror")[0],(!m||T)&&x.error("Invalid XML: "+(T?x.map(T.childNodes,function(D){return D.textContent}).join(`
|
|
180
|
-
`):f)),m};var Xi=/^(?:focusinfocus|focusoutblur)$/,gi=function(f){f.stopPropagation()};x.extend(x.event,{trigger:function(f,m,T,D){var F,j,H,ue,ie,we,Me,Fe,Ee=[T||_],He=p.call(f,"type")?f.type:f,ut=p.call(f,"namespace")?f.namespace.split("."):[];if(j=Fe=H=T=T||_,!(T.nodeType===3||T.nodeType===8)&&!Xi.test(He+x.event.triggered)&&(He.indexOf(".")>-1&&(ut=He.split("."),He=ut.shift(),ut.sort()),ie=He.indexOf(":")<0&&"on"+He,f=f[x.expando]?f:new x.Event(He,typeof f=="object"&&f),f.isTrigger=D?2:3,f.namespace=ut.join("."),f.rnamespace=f.namespace?new RegExp("(^|\\.)"+ut.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,f.result=void 0,f.target||(f.target=T),m=m==null?[f]:x.makeArray(m,[f]),Me=x.event.special[He]||{},!(!D&&Me.trigger&&Me.trigger.apply(T,m)===!1))){if(!D&&!Me.noBubble&&!B(T)){for(ue=Me.delegateType||He,Xi.test(ue+He)||(j=j.parentNode);j;j=j.parentNode)Ee.push(j),H=j;H===(T.ownerDocument||_)&&Ee.push(H.defaultView||H.parentWindow||e)}for(F=0;(j=Ee[F++])&&!f.isPropagationStopped();)Fe=j,f.type=F>1?ue:Me.bindType||He,we=(pt.get(j,"events")||Object.create(null))[f.type]&&pt.get(j,"handle"),we&&we.apply(j,m),we=ie&&j[ie],we&&we.apply&&dn(j)&&(f.result=we.apply(j,m),f.result===!1&&f.preventDefault());return f.type=He,!D&&!f.isDefaultPrevented()&&(!Me._default||Me._default.apply(Ee.pop(),m)===!1)&&dn(T)&&ie&&I(T[He])&&!B(T)&&(H=T[ie],H&&(T[ie]=null),x.event.triggered=He,f.isPropagationStopped()&&Fe.addEventListener(He,gi),T[He](),f.isPropagationStopped()&&Fe.removeEventListener(He,gi),x.event.triggered=void 0,H&&(T[ie]=H)),f.result}},simulate:function(f,m,T){var D=x.extend(new x.Event,T,{type:f,isSimulated:!0});x.event.trigger(D,null,m)}}),x.fn.extend({trigger:function(f,m){return this.each(function(){x.event.trigger(f,m,this)})},triggerHandler:function(f,m){var T=this[0];if(T)return x.event.trigger(f,m,T,!0)}});var Ki=/\[\]$/,jr=/\r?\n/g,Lo=/^(?:submit|button|image|reset|file)$/i,Ya=/^(?:input|select|textarea|keygen)/i;function Fs(f,m,T,D){var F;if(Array.isArray(m))x.each(m,function(j,H){T||Ki.test(f)?D(f,H):Fs(f+"["+(typeof H=="object"&&H!=null?j:"")+"]",H,T,D)});else if(!T&&se(m)==="object")for(F in m)Fs(f+"["+F+"]",m[F],T,D);else D(f,m)}x.param=function(f,m){var T,D=[],F=function(j,H){var ue=I(H)?H():H;D[D.length]=encodeURIComponent(j)+"="+encodeURIComponent(ue??"")};if(f==null)return"";if(Array.isArray(f)||f.jquery&&!x.isPlainObject(f))x.each(f,function(){F(this.name,this.value)});else for(T in f)Fs(T,f[T],m,F);return D.join("&")},x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var f=x.prop(this,"elements");return f?x.makeArray(f):this}).filter(function(){var f=this.type;return this.name&&!x(this).is(":disabled")&&Ya.test(this.nodeName)&&!Lo.test(f)&&(this.checked||!Zt.test(f))}).map(function(f,m){var T=x(this).val();return T==null?null:Array.isArray(T)?x.map(T,function(D){return{name:m.name,value:D.replace(jr,`\r
|
|
181
|
-
`)}}):{name:m.name,value:T.replace(jr,`\r
|
|
182
|
-
`)}}).get()}});var Ns=/%20/g,js=/#.*$/,Bs=/([?&])_=[^&]*/,mi=/^(.*?):[ \t]*([^\r\n]*)$/mg,Fo=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,as=/^(?:GET|HEAD)$/,sn=/^\/\//,Jt={},$t={},_i="*/".concat("*"),ri=_.createElement("a");ri.href=Pn.href;function No(f){return function(m,T){typeof m!="string"&&(T=m,m="*");var D,F=0,j=m.toLowerCase().match(gt)||[];if(I(T))for(;D=j[F++];)D[0]==="+"?(D=D.slice(1)||"*",(f[D]=f[D]||[]).unshift(T)):(f[D]=f[D]||[]).push(T)}}function vi(f,m,T,D){var F={},j=f===$t;function H(ue){var ie;return F[ue]=!0,x.each(f[ue]||[],function(we,Me){var Fe=Me(m,T,D);if(typeof Fe=="string"&&!j&&!F[Fe])return m.dataTypes.unshift(Fe),H(Fe),!1;if(j)return!(ie=Fe)}),ie}return H(m.dataTypes[0])||!F["*"]&&H("*")}function fr(f,m){var T,D,F=x.ajaxSettings.flatOptions||{};for(T in m)m[T]!==void 0&&((F[T]?f:D||(D={}))[T]=m[T]);return D&&x.extend(!0,f,D),f}function $s(f,m,T){for(var D,F,j,H,ue=f.contents,ie=f.dataTypes;ie[0]==="*";)ie.shift(),D===void 0&&(D=f.mimeType||m.getResponseHeader("Content-Type"));if(D){for(F in ue)if(ue[F]&&ue[F].test(D)){ie.unshift(F);break}}if(ie[0]in T)j=ie[0];else{for(F in T){if(!ie[0]||f.converters[F+" "+ie[0]]){j=F;break}H||(H=F)}j=j||H}if(j)return j!==ie[0]&&ie.unshift(j),T[j]}function ls(f,m,T,D){var F,j,H,ue,ie,we={},Me=f.dataTypes.slice();if(Me[1])for(H in f.converters)we[H.toLowerCase()]=f.converters[H];for(j=Me.shift();j;)if(f.responseFields[j]&&(T[f.responseFields[j]]=m),!ie&&D&&f.dataFilter&&(m=f.dataFilter(m,f.dataType)),ie=j,j=Me.shift(),j){if(j==="*")j=ie;else if(ie!=="*"&&ie!==j){if(H=we[ie+" "+j]||we["* "+j],!H){for(F in we)if(ue=F.split(" "),ue[1]===j&&(H=we[ie+" "+ue[0]]||we["* "+ue[0]],H)){H===!0?H=we[F]:we[F]!==!0&&(j=ue[0],Me.unshift(ue[1]));break}}if(H!==!0)if(H&&f.throws)m=H(m);else try{m=H(m)}catch(Fe){return{state:"parsererror",error:H?Fe:"No conversion from "+ie+" to "+j}}}}return{state:"success",data:m}}x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Pn.href,type:"GET",isLocal:Fo.test(Pn.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":_i,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":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(f,m){return m?fr(fr(f,x.ajaxSettings),m):fr(x.ajaxSettings,f)},ajaxPrefilter:No(Jt),ajaxTransport:No($t),ajax:function(f,m){typeof f=="object"&&(m=f,f=void 0),m=m||{};var T,D,F,j,H,ue,ie,we,Me,Fe,Ee=x.ajaxSetup({},m),He=Ee.context||Ee,ut=Ee.context&&(He.nodeType||He.jquery)?x(He):x.event,Pt=x.Deferred(),_t=x.Callbacks("once memory"),Mn=Ee.statusCode||{},fn={},Br={},$r="canceled",Ut={readyState:0,getResponseHeader:function(zt){var rn;if(ie){if(!j)for(j={};rn=mi.exec(F);)j[rn[1].toLowerCase()+" "]=(j[rn[1].toLowerCase()+" "]||[]).concat(rn[2]);rn=j[zt.toLowerCase()+" "]}return rn==null?null:rn.join(", ")},getAllResponseHeaders:function(){return ie?F:null},setRequestHeader:function(zt,rn){return ie==null&&(zt=Br[zt.toLowerCase()]=Br[zt.toLowerCase()]||zt,fn[zt]=rn),this},overrideMimeType:function(zt){return ie==null&&(Ee.mimeType=zt),this},statusCode:function(zt){var rn;if(zt)if(ie)Ut.always(zt[Ut.status]);else for(rn in zt)Mn[rn]=[Mn[rn],zt[rn]];return this},abort:function(zt){var rn=zt||$r;return T&&T.abort(rn),Vr(0,rn),this}};if(Pt.promise(Ut),Ee.url=((f||Ee.url||Pn.href)+"").replace(sn,Pn.protocol+"//"),Ee.type=m.method||m.type||Ee.method||Ee.type,Ee.dataTypes=(Ee.dataType||"*").toLowerCase().match(gt)||[""],Ee.crossDomain==null){ue=_.createElement("a");try{ue.href=Ee.url,ue.href=ue.href,Ee.crossDomain=ri.protocol+"//"+ri.host!=ue.protocol+"//"+ue.host}catch{Ee.crossDomain=!0}}if(Ee.data&&Ee.processData&&typeof Ee.data!="string"&&(Ee.data=x.param(Ee.data,Ee.traditional)),vi(Jt,Ee,m,Ut),ie)return Ut;we=x.event&&Ee.global,we&&x.active++===0&&x.event.trigger("ajaxStart"),Ee.type=Ee.type.toUpperCase(),Ee.hasContent=!as.test(Ee.type),D=Ee.url.replace(js,""),Ee.hasContent?Ee.data&&Ee.processData&&(Ee.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(Ee.data=Ee.data.replace(Ns,"+")):(Fe=Ee.url.slice(D.length),Ee.data&&(Ee.processData||typeof Ee.data=="string")&&(D+=(sr.test(D)?"&":"?")+Ee.data,delete Ee.data),Ee.cache===!1&&(D=D.replace(Bs,"$1"),Fe=(sr.test(D)?"&":"?")+"_="+Nr.guid+++Fe),Ee.url=D+Fe),Ee.ifModified&&(x.lastModified[D]&&Ut.setRequestHeader("If-Modified-Since",x.lastModified[D]),x.etag[D]&&Ut.setRequestHeader("If-None-Match",x.etag[D])),(Ee.data&&Ee.hasContent&&Ee.contentType!==!1||m.contentType)&&Ut.setRequestHeader("Content-Type",Ee.contentType),Ut.setRequestHeader("Accept",Ee.dataTypes[0]&&Ee.accepts[Ee.dataTypes[0]]?Ee.accepts[Ee.dataTypes[0]]+(Ee.dataTypes[0]!=="*"?", "+_i+"; q=0.01":""):Ee.accepts["*"]);for(Me in Ee.headers)Ut.setRequestHeader(Me,Ee.headers[Me]);if(Ee.beforeSend&&(Ee.beforeSend.call(He,Ut,Ee)===!1||ie))return Ut.abort();if($r="abort",_t.add(Ee.complete),Ut.done(Ee.success),Ut.fail(Ee.error),T=vi($t,Ee,m,Ut),!T)Vr(-1,"No Transport");else{if(Ut.readyState=1,we&&ut.trigger("ajaxSend",[Ut,Ee]),ie)return Ut;Ee.async&&Ee.timeout>0&&(H=e.setTimeout(function(){Ut.abort("timeout")},Ee.timeout));try{ie=!1,T.send(fn,Vr)}catch(zt){if(ie)throw zt;Vr(-1,zt)}}function Vr(zt,rn,mo,vo){var Cr,k,L,U,te,Se=rn;ie||(ie=!0,H&&e.clearTimeout(H),T=void 0,F=vo||"",Ut.readyState=zt>0?4:0,Cr=zt>=200&&zt<300||zt===304,mo&&(U=$s(Ee,Ut,mo)),!Cr&&x.inArray("script",Ee.dataTypes)>-1&&x.inArray("json",Ee.dataTypes)<0&&(Ee.converters["text script"]=function(){}),U=ls(Ee,U,Ut,Cr),Cr?(Ee.ifModified&&(te=Ut.getResponseHeader("Last-Modified"),te&&(x.lastModified[D]=te),te=Ut.getResponseHeader("etag"),te&&(x.etag[D]=te)),zt===204||Ee.type==="HEAD"?Se="nocontent":zt===304?Se="notmodified":(Se=U.state,k=U.data,L=U.error,Cr=!L)):(L=Se,(zt||!Se)&&(Se="error",zt<0&&(zt=0))),Ut.status=zt,Ut.statusText=(rn||Se)+"",Cr?Pt.resolveWith(He,[k,Se,Ut]):Pt.rejectWith(He,[Ut,Se,L]),Ut.statusCode(Mn),Mn=void 0,we&&ut.trigger(Cr?"ajaxSuccess":"ajaxError",[Ut,Ee,Cr?k:L]),_t.fireWith(He,[Ut,Se]),we&&(ut.trigger("ajaxComplete",[Ut,Ee]),--x.active||x.event.trigger("ajaxStop")))}return Ut},getJSON:function(f,m,T){return x.get(f,m,T,"json")},getScript:function(f,m){return x.get(f,void 0,m,"script")}}),x.each(["get","post"],function(f,m){x[m]=function(T,D,F,j){return I(D)&&(j=j||F,F=D,D=void 0),x.ajax(x.extend({url:T,type:m,dataType:j,data:D,success:F},x.isPlainObject(T)&&T))}}),x.ajaxPrefilter(function(f){var m;for(m in f.headers)m.toLowerCase()==="content-type"&&(f.contentType=f.headers[m]||"")}),x._evalUrl=function(f,m,T){return x.ajax({url:f,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(D){x.globalEval(D,m,T)}})},x.fn.extend({wrapAll:function(f){var m;return this[0]&&(I(f)&&(f=f.call(this[0])),m=x(f,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&m.insertBefore(this[0]),m.map(function(){for(var T=this;T.firstElementChild;)T=T.firstElementChild;return T}).append(this)),this},wrapInner:function(f){return I(f)?this.each(function(m){x(this).wrapInner(f.call(this,m))}):this.each(function(){var m=x(this),T=m.contents();T.length?T.wrapAll(f):m.append(f)})},wrap:function(f){var m=I(f);return this.each(function(T){x(this).wrapAll(m?f.call(this,T):f)})},unwrap:function(f){return this.parent(f).not("body").each(function(){x(this).replaceWith(this.childNodes)}),this}}),x.expr.pseudos.hidden=function(f){return!x.expr.pseudos.visible(f)},x.expr.pseudos.visible=function(f){return!!(f.offsetWidth||f.offsetHeight||f.getClientRects().length)},x.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch{}};var ca={0:200,1223:204},vn=x.ajaxSettings.xhr();A.cors=!!vn&&"withCredentials"in vn,A.ajax=vn=!!vn,x.ajaxTransport(function(f){var m,T;if(A.cors||vn&&!f.crossDomain)return{send:function(D,F){var j,H=f.xhr();if(H.open(f.type,f.url,f.async,f.username,f.password),f.xhrFields)for(j in f.xhrFields)H[j]=f.xhrFields[j];f.mimeType&&H.overrideMimeType&&H.overrideMimeType(f.mimeType),!f.crossDomain&&!D["X-Requested-With"]&&(D["X-Requested-With"]="XMLHttpRequest");for(j in D)H.setRequestHeader(j,D[j]);m=function(ue){return function(){m&&(m=T=H.onload=H.onerror=H.onabort=H.ontimeout=H.onreadystatechange=null,ue==="abort"?H.abort():ue==="error"?typeof H.status!="number"?F(0,"error"):F(H.status,H.statusText):F(ca[H.status]||H.status,H.statusText,(H.responseType||"text")!=="text"||typeof H.responseText!="string"?{binary:H.response}:{text:H.responseText},H.getAllResponseHeaders()))}},H.onload=m(),T=H.onerror=H.ontimeout=m("error"),H.onabort!==void 0?H.onabort=T:H.onreadystatechange=function(){H.readyState===4&&e.setTimeout(function(){m&&T()})},m=m("abort");try{H.send(f.hasContent&&f.data||null)}catch(ue){if(m)throw ue}},abort:function(){m&&m()}}}),x.ajaxPrefilter(function(f){f.crossDomain&&(f.contents.script=!1)}),x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(f){return x.globalEval(f),f}}}),x.ajaxPrefilter("script",function(f){f.cache===void 0&&(f.cache=!1),f.crossDomain&&(f.type="GET")}),x.ajaxTransport("script",function(f){if(f.crossDomain||f.scriptAttrs){var m,T;return{send:function(D,F){m=x("<script>").attr(f.scriptAttrs||{}).prop({charset:f.scriptCharset,src:f.url}).on("load error",T=function(j){m.remove(),T=null,j&&F(j.type==="error"?404:200,j.type)}),_.head.appendChild(m[0])},abort:function(){T&&T()}}}});var jo=[],yi=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var f=jo.pop()||x.expando+"_"+Nr.guid++;return this[f]=!0,f}}),x.ajaxPrefilter("json jsonp",function(f,m,T){var D,F,j,H=f.jsonp!==!1&&(yi.test(f.url)?"url":typeof f.data=="string"&&(f.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&yi.test(f.data)&&"data");if(H||f.dataTypes[0]==="jsonp")return D=f.jsonpCallback=I(f.jsonpCallback)?f.jsonpCallback():f.jsonpCallback,H?f[H]=f[H].replace(yi,"$1"+D):f.jsonp!==!1&&(f.url+=(sr.test(f.url)?"&":"?")+f.jsonp+"="+D),f.converters["script json"]=function(){return j||x.error(D+" was not called"),j[0]},f.dataTypes[0]="json",F=e[D],e[D]=function(){j=arguments},T.always(function(){F===void 0?x(e).removeProp(D):e[D]=F,f[D]&&(f.jsonpCallback=m.jsonpCallback,jo.push(D)),j&&I(F)&&F(j[0]),j=F=void 0}),"script"}),A.createHTMLDocument=function(){var f=_.implementation.createHTMLDocument("").body;return f.innerHTML="<form></form><form></form>",f.childNodes.length===2}(),x.parseHTML=function(f,m,T){if(typeof f!="string")return[];typeof m=="boolean"&&(T=m,m=!1);var D,F,j;return m||(A.createHTMLDocument?(m=_.implementation.createHTMLDocument(""),D=m.createElement("base"),D.href=_.location.href,m.head.appendChild(D)):m=_),F=Xe.exec(f),j=!T&&[],F?[m.createElement(F[1])]:(F=mn([f],m,j),j&&j.length&&x(j).remove(),x.merge([],F.childNodes))},x.fn.load=function(f,m,T){var D,F,j,H=this,ue=f.indexOf(" ");return ue>-1&&(D=vt(f.slice(ue)),f=f.slice(0,ue)),I(m)?(T=m,m=void 0):m&&typeof m=="object"&&(F="POST"),H.length>0&&x.ajax({url:f,type:F||"GET",dataType:"html",data:m}).done(function(ie){j=arguments,H.html(D?x("<div>").append(x.parseHTML(ie)).find(D):ie)}).always(T&&function(ie,we){H.each(function(){T.apply(this,j||[ie.responseText,we,ie])})}),this},x.expr.pseudos.animated=function(f){return x.grep(x.timers,function(m){return f===m.elem}).length},x.offset={setOffset:function(f,m,T){var D,F,j,H,ue,ie,we,Me=x.css(f,"position"),Fe=x(f),Ee={};Me==="static"&&(f.style.position="relative"),ue=Fe.offset(),j=x.css(f,"top"),ie=x.css(f,"left"),we=(Me==="absolute"||Me==="fixed")&&(j+ie).indexOf("auto")>-1,we?(D=Fe.position(),H=D.top,F=D.left):(H=parseFloat(j)||0,F=parseFloat(ie)||0),I(m)&&(m=m.call(f,T,x.extend({},ue))),m.top!=null&&(Ee.top=m.top-ue.top+H),m.left!=null&&(Ee.left=m.left-ue.left+F),"using"in m?m.using.call(f,Ee):Fe.css(Ee)}},x.fn.extend({offset:function(f){if(arguments.length)return f===void 0?this:this.each(function(F){x.offset.setOffset(this,f,F)});var m,T,D=this[0];if(D)return D.getClientRects().length?(m=D.getBoundingClientRect(),T=D.ownerDocument.defaultView,{top:m.top+T.pageYOffset,left:m.left+T.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var f,m,T,D=this[0],F={top:0,left:0};if(x.css(D,"position")==="fixed")m=D.getBoundingClientRect();else{for(m=this.offset(),T=D.ownerDocument,f=D.offsetParent||T.documentElement;f&&(f===T.body||f===T.documentElement)&&x.css(f,"position")==="static";)f=f.parentNode;f&&f!==D&&f.nodeType===1&&(F=x(f).offset(),F.top+=x.css(f,"borderTopWidth",!0),F.left+=x.css(f,"borderLeftWidth",!0))}return{top:m.top-F.top-x.css(D,"marginTop",!0),left:m.left-F.left-x.css(D,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var f=this.offsetParent;f&&x.css(f,"position")==="static";)f=f.offsetParent;return f||Rr})}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(f,m){var T=m==="pageYOffset";x.fn[f]=function(D){return Dn(this,function(F,j,H){var ue;if(B(F)?ue=F:F.nodeType===9&&(ue=F.defaultView),H===void 0)return ue?ue[m]:F[j];ue?ue.scrollTo(T?ue.pageXOffset:H,T?H:ue.pageYOffset):F[j]=H},f,D,arguments.length)}}),x.each(["top","left"],function(f,m){x.cssHooks[m]=Wn(A.pixelPosition,function(T,D){if(D)return D=Ir(T,m),Oi.test(D)?x(T).position()[m]+"px":D})}),x.each({Height:"height",Width:"width"},function(f,m){x.each({padding:"inner"+f,content:m,"":"outer"+f},function(T,D){x.fn[D]=function(F,j){var H=arguments.length&&(T||typeof F!="boolean"),ue=T||(F===!0||j===!0?"margin":"border");return Dn(this,function(ie,we,Me){var Fe;return B(ie)?D.indexOf("outer")===0?ie["inner"+f]:ie.document.documentElement["client"+f]:ie.nodeType===9?(Fe=ie.documentElement,Math.max(ie.body["scroll"+f],Fe["scroll"+f],ie.body["offset"+f],Fe["offset"+f],Fe["client"+f])):Me===void 0?x.css(ie,we,ue):x.style(ie,we,Me,ue)},m,H?F:void 0,H)}})}),x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(f,m){x.fn[m]=function(T){return this.on(m,T)}}),x.fn.extend({bind:function(f,m,T){return this.on(f,null,m,T)},unbind:function(f,m){return this.off(f,null,m)},delegate:function(f,m,T,D){return this.on(m,f,T,D)},undelegate:function(f,m,T){return arguments.length===1?this.off(f,"**"):this.off(m,f||"**",T)},hover:function(f,m){return this.on("mouseenter",f).on("mouseleave",m||f)}}),x.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(f,m){x.fn[m]=function(T,D){return arguments.length>0?this.on(m,null,T,D):this.trigger(m)}});var fa=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;x.proxy=function(f,m){var T,D,F;if(typeof m=="string"&&(T=f[m],m=f,f=T),!!I(f))return D=o.call(arguments,2),F=function(){return f.apply(m||this,D.concat(o.call(arguments)))},F.guid=f.guid=f.guid||x.guid++,F},x.holdReady=function(f){f?x.readyWait++:x.ready(!0)},x.isArray=Array.isArray,x.parseJSON=JSON.parse,x.nodeName=ce,x.isFunction=I,x.isWindow=B,x.camelCase=un,x.type=se,x.now=Date.now,x.isNumeric=function(f){var m=x.type(f);return(m==="number"||m==="string")&&!isNaN(f-parseFloat(f))},x.trim=function(f){return f==null?"":(f+"").replace(fa,"$1")};var go=e.jQuery,Qn=e.$;return x.noConflict=function(f){return e.$===x&&(e.$=Qn),f&&e.jQuery===x&&(e.jQuery=go),x},typeof n>"u"&&(e.jQuery=e.$=x),x})})(FD);var ND=FD.exports;const c6=Bc(ND);var f6={exports:{}};/**
|
|
183
|
-
* @version: 3.1
|
|
184
|
-
* @author: Dan Grossman http://www.dangrossman.info/
|
|
185
|
-
* @copyright: Copyright (c) 2012-2019 Dan Grossman. All rights reserved.
|
|
186
|
-
* @license: Licensed under the MIT license. See http://www.opensource.org/licenses/mit-license.php
|
|
187
|
-
* @website: http://www.daterangepicker.com/
|
|
188
|
-
*/(function(t){(function(e,n){if(t.exports){var r=typeof window<"u"?window.jQuery:void 0;r||(r=ND,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)})(Ci,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 u=document.createElement("textarea");u.innerHTML=o.locale.customRangeLabel;var c=u.value;this.locale.customRangeLabel=c}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 d=this.locale.firstDay;d>0;)this.locale.daysOfWeek.push(this.locale.daysOfWeek.shift()),d--;var y,p,S;if(typeof o.startDate>"u"&&typeof o.endDate>"u"&&n(this.element).is(":text")){var C=n(this.element).val(),A=C.split(this.locale.separator);y=p=null,A.length==2?(y=e(A[0],this.locale.format),p=e(A[1],this.locale.format)):this.singleDatePicker&&C!==""&&(y=e(C,this.locale.format),p=e(C,this.locale.format)),y!==null&&p!==null&&(this.setStartDate(y),this.setEndDate(p))}if(typeof o.ranges=="object"){for(S in o.ranges){typeof o.ranges[S][0]=="string"?y=e(o.ranges[S][0],this.locale.format):y=e(o.ranges[S][0]),typeof o.ranges[S][1]=="string"?p=e(o.ranges[S][1],this.locale.format):p=e(o.ranges[S][1]),this.minDate&&y.isBefore(this.minDate)&&(y=this.minDate.clone());var I=this.maxDate;if(this.maxSpan&&I&&y.clone().add(this.maxSpan).isAfter(I)&&(I=y.clone().add(this.maxSpan)),I&&p.isAfter(I)&&(p=I.clone()),!(this.minDate&&p.isBefore(this.minDate,this.timepicker?"minute":"day")||I&&y.isAfter(I,this.timepicker?"minute":"day"))){var u=document.createElement("textarea");u.innerHTML=S;var c=u.value;this.ranges[c]=[y,p]}}var B="<ul>";for(S in this.ranges)B+='<li data-range-key="'+S+'">'+S+"</li>";this.showCustomRangeLabel&&(B+='<li data-range-key="'+this.locale.customRangeLabel+'">'+this.locale.customRangeLabel+"</li>"),B+="</ul>",this.container.find(".ranges").prepend(B)}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 u=this.container.find(".left .ampmselect").val();u==="PM"&&i<12&&(i+=12),u==="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 u=this.container.find(".right .ampmselect").val();u==="PM"&&i<12&&(i+=12),u==="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(),u=_.month.hour(),c=_.month.minute(),d=_.month.second(),y=e([a,o]).daysInMonth(),p=e([a,o,1]),S=e([a,o,y]),C=e(p).subtract(1,"month").month(),A=e(p).subtract(1,"month").year(),I=e([A,C]).daysInMonth(),B=p.day(),_=[];_.firstDay=p,_.lastDay=S;for(var G=0;G<6;G++)_[G]=[];var q=I-B+this.locale.firstDay+1;q>I&&(q-=7),B==this.locale.firstDay&&(q=I-6);for(var se=e([A,C,q,12,c,d]),Q,ye,G=0,Q=0,ye=0;G<42;G++,Q++,se=e(se).add(24,"hour"))G>0&&Q%7===0&&(Q=0,ye++),_[ye][Q]=se.clone().hour(u).minute(c).second(d),se.hour(12),this.minDate&&_[ye][Q].format("YYYY-MM-DD")==this.minDate.format("YYYY-MM-DD")&&_[ye][Q].isBefore(this.minDate)&&i=="left"&&(_[ye][Q]=this.minDate.clone()),this.maxDate&&_[ye][Q].format("YYYY-MM-DD")==this.maxDate.format("YYYY-MM-DD")&&_[ye][Q].isAfter(this.maxDate)&&i=="right"&&(_[ye][Q]=this.maxDate.clone());i=="left"?this.leftCalendar.calendar=_:this.rightCalendar.calendar=_;var x=i=="left"?this.minDate:this.startDate,ae=this.maxDate;i=="left"?this.startDate:this.endDate,this.locale.direction=="ltr";var ce='<table class="table-condensed">';ce+="<thead>",ce+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(ce+="<th></th>"),(!x||x.isBefore(_.firstDay))&&(!this.linkedCalendars||i=="left")?ce+='<th class="prev available"><span></span></th>':ce+="<th></th>";var Be=this.locale.monthNames[_[1][1].month()]+_[1][1].format(" YYYY");if(this.showDropdowns){for(var qe=_[1][1].month(),Ze=_[1][1].year(),ot=ae&&ae.year()||this.maxYear,it=x&&x.year()||this.minYear,me=Ze==it,De=Ze==ot,Le='<select class="monthselect">',Ye=0;Ye<12;Ye++)(!me||x&&Ye>=x.month())&&(!De||ae&&Ye<=ae.month())?Le+="<option value='"+Ye+"'"+(Ye===qe?" selected='selected'":"")+">"+this.locale.monthNames[Ye]+"</option>":Le+="<option value='"+Ye+"'"+(Ye===qe?" selected='selected'":"")+" disabled='disabled'>"+this.locale.monthNames[Ye]+"</option>";Le+="</select>";for(var st='<select class="yearselect">',Ce=it;Ce<=ot;Ce++)st+='<option value="'+Ce+'"'+(Ce===Ze?' selected="selected"':"")+">"+Ce+"</option>";st+="</select>",Be=Le+st}if(ce+='<th colspan="5" class="month">'+Be+"</th>",(!ae||ae.isAfter(_.lastDay))&&(!this.linkedCalendars||i=="right"||this.singleDatePicker)?ce+='<th class="next available"><span></span></th>':ce+="<th></th>",ce+="</tr>",ce+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(ce+='<th class="week">'+this.locale.weekLabel+"</th>"),n.each(this.locale.daysOfWeek,function(nt,lt){ce+="<th>"+lt+"</th>"}),ce+="</tr>",ce+="</thead>",ce+="<tbody>",this.endDate==null&&this.maxSpan){var _e=this.startDate.clone().add(this.maxSpan).endOf("day");(!ae||_e.isBefore(ae))&&(ae=_e)}for(var ye=0;ye<6;ye++){ce+="<tr>",this.showWeekNumbers?ce+='<td class="week">'+_[ye][0].week()+"</td>":this.showISOWeekNumbers&&(ce+='<td class="week">'+_[ye][0].isoWeek()+"</td>");for(var Q=0;Q<7;Q++){var Xe=[];_[ye][Q].isSame(new Date,"day")&&Xe.push("today"),_[ye][Q].isoWeekday()>5&&Xe.push("weekend"),_[ye][Q].month()!=_[1][1].month()&&Xe.push("off","ends"),this.minDate&&_[ye][Q].isBefore(this.minDate,"day")&&Xe.push("off","disabled"),ae&&_[ye][Q].isAfter(ae,"day")&&Xe.push("off","disabled"),this.isInvalidDate(_[ye][Q])&&Xe.push("off","disabled"),_[ye][Q].format("YYYY-MM-DD")==this.startDate.format("YYYY-MM-DD")&&Xe.push("active","start-date"),this.endDate!=null&&_[ye][Q].format("YYYY-MM-DD")==this.endDate.format("YYYY-MM-DD")&&Xe.push("active","end-date"),this.endDate!=null&&_[ye][Q]>this.startDate&&_[ye][Q]<this.endDate&&Xe.push("in-range");var Ge=this.isCustomDate(_[ye][Q]);Ge!==!1&&(typeof Ge=="string"?Xe.push(Ge):Array.prototype.push.apply(Xe,Ge));for(var tt="",et=!1,G=0;G<Xe.length;G++)tt+=Xe[G]+" ",Xe[G]=="disabled"&&(et=!0);et||(tt+="available"),ce+='<td class="'+tt.replace(/^\s+|\s+$/g,"")+'" data-title="r'+ye+"c"+Q+'">'+_[ye][Q].date()+"</td>"}ce+="</tr>"}ce+="</tbody>",ce+="</table>",this.container.find(".drp-calendar."+i+" .calendar-table").html(ce)},renderTimePicker:function(i){if(!(i=="right"&&!this.endDate)){var o,a,u,c=this.maxDate;if(this.maxSpan&&(!this.maxDate||this.startDate.clone().add(this.maxSpan).isBefore(this.maxDate))&&(c=this.startDate.clone().add(this.maxSpan)),i=="left")a=this.startDate.clone(),u=this.minDate;else if(i=="right"){a=this.endDate.clone(),u=this.startDate;var d=this.container.find(".drp-calendar.right .calendar-time");if(d.html()!=""&&(a.hour(isNaN(a.hour())?d.find(".hourselect option:selected").val():a.hour()),a.minute(isNaN(a.minute())?d.find(".minuteselect option:selected").val():a.minute()),a.second(isNaN(a.second())?d.find(".secondselect option:selected").val():a.second()),!this.timePicker24Hour)){var y=d.find(".ampmselect option:selected").val();y==="PM"&&a.hour()<12&&a.hour(a.hour()+12),y==="AM"&&a.hour()===12&&a.hour(0)}a.isBefore(this.startDate)&&(a=this.startDate.clone()),c&&a.isAfter(c)&&(a=c.clone())}o='<select class="hourselect">';for(var p=this.timePicker24Hour?0:1,S=this.timePicker24Hour?23:12,C=p;C<=S;C++){var A=C;this.timePicker24Hour||(A=a.hour()>=12?C==12?12:C+12:C==12?0:C);var I=a.clone().hour(A),B=!1;u&&I.minute(59).isBefore(u)&&(B=!0),c&&I.minute(0).isAfter(c)&&(B=!0),A==a.hour()&&!B?o+='<option value="'+C+'" selected="selected">'+C+"</option>":B?o+='<option value="'+C+'" disabled="disabled" class="disabled">'+C+"</option>":o+='<option value="'+C+'">'+C+"</option>"}o+="</select> ",o+=': <select class="minuteselect">';for(var C=0;C<60;C+=this.timePickerIncrement){var _=C<10?"0"+C:C,I=a.clone().minute(C),B=!1;u&&I.second(59).isBefore(u)&&(B=!0),c&&I.second(0).isAfter(c)&&(B=!0),a.minute()==C&&!B?o+='<option value="'+C+'" selected="selected">'+_+"</option>":B?o+='<option value="'+C+'" disabled="disabled" class="disabled">'+_+"</option>":o+='<option value="'+C+'">'+_+"</option>"}if(o+="</select> ",this.timePickerSeconds){o+=': <select class="secondselect">';for(var C=0;C<60;C++){var _=C<10?"0"+C:C,I=a.clone().second(C),B=!1;u&&I.isBefore(u)&&(B=!0),c&&I.isAfter(c)&&(B=!0),a.second()==C&&!B?o+='<option value="'+C+'" selected="selected">'+_+"</option>":B?o+='<option value="'+C+'" disabled="disabled" class="disabled">'+_+"</option>":o+='<option value="'+C+'">'+_+"</option>"}o+="</select> "}if(!this.timePicker24Hour){o+='<select class="ampmselect">';var G="",q="";u&&a.clone().hour(12).minute(0).second(0).isBefore(u)&&(G=' disabled="disabled" class="disabled"'),c&&a.clone().hour(0).minute(0).second(0).isAfter(c)&&(q=' disabled="disabled" class="disabled"'),a.hour()>=12?o+='<option value="AM"'+G+'>AM</option><option value="PM" selected="selected"'+q+">PM</option>":o+='<option value="AM" selected="selected"'+G+'>AM</option><option value="PM"'+q+">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,u=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()},u=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 c=this.container.outerWidth();if(this.container.toggleClass("drop-up",a=="up"),this.opens=="left"){var d=u-this.element.offset().left-this.element.outerWidth();c+d>n(window).width()?this.container.css({top:o,right:"auto",left:9}):this.container.css({top:o,right:d,left:"auto"})}else if(this.opens=="center"){var y=this.element.offset().left-i.left+this.element.outerWidth()/2-c/2;y<0?this.container.css({top:o,right:"auto",left:9}):y+c>n(window).width()?this.container.css({top:o,left:"auto",right:0}):this.container.css({top:o,left:y,right:"auto"})}else{var y=this.element.offset().left-i.left;y+c>n(window).width()?this.container.css({top:o,left:"auto",right:0}):this.container.css({top:o,left:y,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),u=o.substr(3,1),c=n(i.target).parents(".drp-calendar"),d=c.hasClass("left")?this.leftCalendar.calendar[a][u]:this.rightCalendar.calendar[a][u],y=this.leftCalendar,p=this.rightCalendar,S=this.startDate;this.endDate||this.container.find(".drp-calendar tbody td").each(function(C,A){if(!n(A).hasClass("week")){var I=n(A).attr("data-title"),B=I.substr(1,1),_=I.substr(3,1),G=n(A).parents(".drp-calendar"),q=G.hasClass("left")?y.calendar[B][_]:p.calendar[B][_];q.isAfter(S)&&q.isBefore(d)||q.isSame(d,"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),u=o.substr(3,1),c=n(i.target).parents(".drp-calendar"),d=c.hasClass("left")?this.leftCalendar.calendar[a][u]:this.rightCalendar.calendar[a][u];if(this.endDate||d.isBefore(this.startDate,"day")){if(this.timePicker){var y=parseInt(this.container.find(".left .hourselect").val(),10);if(!this.timePicker24Hour){var p=this.container.find(".left .ampmselect").val();p==="PM"&&y<12&&(y+=12),p==="AM"&&y===12&&(y=0)}var S=parseInt(this.container.find(".left .minuteselect").val(),10);isNaN(S)&&(S=parseInt(this.container.find(".left .minuteselect option:last").val(),10));var C=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0;d=d.clone().hour(y).minute(S).second(C)}this.endDate=null,this.setStartDate(d.clone())}else if(!this.endDate&&d.isBefore(this.startDate))this.setEndDate(this.startDate.clone());else{if(this.timePicker){var y=parseInt(this.container.find(".right .hourselect").val(),10);if(!this.timePicker24Hour){var p=this.container.find(".right .ampmselect").val();p==="PM"&&y<12&&(y+=12),p==="AM"&&y===12&&(y=0)}var S=parseInt(this.container.find(".right .minuteselect").val(),10);isNaN(S)&&(S=parseInt(this.container.find(".right .minuteselect option:last").val(),10));var C=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0;d=d.clone().hour(y).minute(S).second(C)}this.setEndDate(d.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 u=this.timePickerSeconds?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD HH:mm";if(this.startDate.format(u)==this.ranges[a][0].format(u)&&this.endDate.format(u)==this.ranges[a][1].format(u)){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",u=this.container.find(".drp-calendar."+a),c=parseInt(u.find(".monthselect").val(),10),d=u.find(".yearselect").val();o||(d<this.startDate.year()||d==this.startDate.year()&&c<this.startDate.month())&&(c=this.startDate.month(),d=this.startDate.year()),this.minDate&&(d<this.minDate.year()||d==this.minDate.year()&&c<this.minDate.month())&&(c=this.minDate.month(),d=this.minDate.year()),this.maxDate&&(d>this.maxDate.year()||d==this.maxDate.year()&&c>this.maxDate.month())&&(c=this.maxDate.month(),d=this.maxDate.year()),o?(this.leftCalendar.month.month(c).year(d),this.linkedCalendars&&(this.rightCalendar.month=this.leftCalendar.month.clone().add(1,"month"))):(this.rightCalendar.month.month(c).year(d),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"),u=parseInt(o.find(".hourselect").val(),10),c=parseInt(o.find(".minuteselect").val(),10);isNaN(c)&&(c=parseInt(o.find(".minuteselect option:last").val(),10));var d=this.timePickerSeconds?parseInt(o.find(".secondselect").val(),10):0;if(!this.timePicker24Hour){var y=o.find(".ampmselect").val();y==="PM"&&u<12&&(u+=12),y==="AM"&&u===12&&(u=0)}if(a){var p=this.startDate.clone();p.hour(u),p.minute(c),p.second(d),this.setStartDate(p),this.singleDatePicker?this.endDate=this.startDate.clone():this.endDate&&this.endDate.format("YYYY-MM-DD")==p.format("YYYY-MM-DD")&&this.endDate.isBefore(p)&&this.setEndDate(p.clone())}else if(this.endDate){var S=this.endDate.clone();S.hour(u),S.minute(c),S.second(d),this.setEndDate(S)}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 u=n(this);u.data("daterangepicker")&&u.data("daterangepicker").remove(),u.data("daterangepicker",new r(u,a,o))}),this},r})})(f6);var _v=function(t,e){return _v=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])},_v(t,e)};function d6(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");_v(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var h6=function(t){d6(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=c6(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=_n.Children.only(this.props.children);return _n.cloneElement(r,{ref:function(i){return n.ref=i}})},e}(_n.Component);la.styled(t=>$e.jsx(la.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:Ei.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}}));/**
|
|
189
|
-
* @license
|
|
190
|
-
* Copyright 2017 Google LLC
|
|
191
|
-
*
|
|
192
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
-
* you may not use this file except in compliance with the License.
|
|
194
|
-
* You may obtain a copy of the License at
|
|
195
|
-
*
|
|
196
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
-
*
|
|
198
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
199
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
-
* See the License for the specific language governing permissions and
|
|
202
|
-
* limitations under the License.
|
|
203
|
-
*//**
|
|
204
|
-
* @license
|
|
205
|
-
* Copyright 2017 Google LLC
|
|
206
|
-
*
|
|
207
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
208
|
-
* you may not use this file except in compliance with the License.
|
|
209
|
-
* You may obtain a copy of the License at
|
|
210
|
-
*
|
|
211
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
212
|
-
*
|
|
213
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
214
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
215
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
216
|
-
* See the License for the specific language governing permissions and
|
|
217
|
-
* limitations under the License.
|
|
218
|
-
*/const jD=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},p6=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++],u=t[n++],c=((i&7)<<18|(o&63)<<12|(a&63)<<6|u&63)-65536;e[r++]=String.fromCharCode(55296+(c>>10)),e[r++]=String.fromCharCode(56320+(c&1023))}else{const o=t[n++],a=t[n++];e[r++]=String.fromCharCode((i&15)<<12|(o&63)<<6|a&63)}}return e.join("")},BD={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,u=a?t[i+1]:0,c=i+2<t.length,d=c?t[i+2]:0,y=o>>2,p=(o&3)<<4|u>>4;let S=(u&15)<<2|d>>6,C=d&63;c||(C=64,a||(S=64)),r.push(n[y],n[p],n[S],n[C])}return r.join("")},encodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(jD(t),e)},decodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):p6(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++)],u=i<t.length?n[t.charAt(i)]:0;++i;const d=i<t.length?n[t.charAt(i)]:64;++i;const p=i<t.length?n[t.charAt(i)]:64;if(++i,o==null||u==null||d==null||p==null)throw new g6;const S=o<<2|u>>4;if(r.push(S),d!==64){const C=u<<4&240|d>>2;if(r.push(C),p!==64){const A=d<<6&192|p;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 g6 extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const m6=function(t){const e=jD(t);return BD.encodeByteArray(e,!0)},$D=function(t){return m6(t).replace(/\./g,"")},v6=function(t){try{return BD.decodeString(t,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};/**
|
|
219
|
-
* @license
|
|
220
|
-
* Copyright 2022 Google LLC
|
|
221
|
-
*
|
|
222
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
223
|
-
* you may not use this file except in compliance with the License.
|
|
224
|
-
* You may obtain a copy of the License at
|
|
225
|
-
*
|
|
226
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
227
|
-
*
|
|
228
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
229
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
230
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
231
|
-
* See the License for the specific language governing permissions and
|
|
232
|
-
* limitations under the License.
|
|
233
|
-
*/function y6(){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.")}/**
|
|
234
|
-
* @license
|
|
235
|
-
* Copyright 2022 Google LLC
|
|
236
|
-
*
|
|
237
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
238
|
-
* you may not use this file except in compliance with the License.
|
|
239
|
-
* You may obtain a copy of the License at
|
|
240
|
-
*
|
|
241
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
242
|
-
*
|
|
243
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
244
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
245
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
246
|
-
* See the License for the specific language governing permissions and
|
|
247
|
-
* limitations under the License.
|
|
248
|
-
*/const b6=()=>y6().__FIREBASE_DEFAULTS__,w6=()=>{if(typeof process>"u"||typeof process.env>"u")return;const t=process.env.__FIREBASE_DEFAULTS__;if(t)return JSON.parse(t)},x6=()=>{if(typeof document>"u")return;let t;try{t=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const e=t&&v6(t[1]);return e&&JSON.parse(e)},S6=()=>{try{return b6()||w6()||x6()}catch(t){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${t}`);return}},VD=()=>{var t;return(t=S6())===null||t===void 0?void 0:t.config};/**
|
|
249
|
-
* @license
|
|
250
|
-
* Copyright 2017 Google LLC
|
|
251
|
-
*
|
|
252
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
253
|
-
* you may not use this file except in compliance with the License.
|
|
254
|
-
* You may obtain a copy of the License at
|
|
255
|
-
*
|
|
256
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
257
|
-
*
|
|
258
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
259
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
260
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
261
|
-
* See the License for the specific language governing permissions and
|
|
262
|
-
* limitations under the License.
|
|
263
|
-
*/class T6{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 HD(){try{return typeof indexedDB=="object"}catch{return!1}}function UD(){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 C6(){return!(typeof navigator>"u"||!navigator.cookieEnabled)}/**
|
|
264
|
-
* @license
|
|
265
|
-
* Copyright 2017 Google LLC
|
|
266
|
-
*
|
|
267
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
268
|
-
* you may not use this file except in compliance with the License.
|
|
269
|
-
* You may obtain a copy of the License at
|
|
270
|
-
*
|
|
271
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
272
|
-
*
|
|
273
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
274
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
275
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
276
|
-
* See the License for the specific language governing permissions and
|
|
277
|
-
* limitations under the License.
|
|
278
|
-
*/const E6="FirebaseError";class Uf extends Error{constructor(e,n,r){super(n),this.code=e,this.customData=r,this.name=E6,Object.setPrototypeOf(this,Uf.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,Kp.prototype.create)}}class Kp{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?k6(o,r):"Error",u=`${this.serviceName}: ${a} (${i}).`;return new Uf(i,u,r)}}function k6(t,e){return t.replace(D6,(n,r)=>{const i=e[r];return i!=null?String(i):`<${r}?>`})}const D6=/\{\$([^}]+)}/g;function Rv(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(w1(o)&&w1(a)){if(!Rv(o,a))return!1}else if(o!==a)return!1}for(const i of r)if(!n.includes(i))return!1;return!0}function w1(t){return t!==null&&typeof t=="object"}/**
|
|
279
|
-
* @license
|
|
280
|
-
* Copyright 2021 Google LLC
|
|
281
|
-
*
|
|
282
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
283
|
-
* you may not use this file except in compliance with the License.
|
|
284
|
-
* You may obtain a copy of the License at
|
|
285
|
-
*
|
|
286
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
287
|
-
*
|
|
288
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
289
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
290
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
291
|
-
* See the License for the specific language governing permissions and
|
|
292
|
-
* limitations under the License.
|
|
293
|
-
*/function ib(t){return t&&t._delegate?t._delegate:t}class Ru{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}}/**
|
|
294
|
-
* @license
|
|
295
|
-
* Copyright 2019 Google LLC
|
|
296
|
-
*
|
|
297
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
298
|
-
* you may not use this file except in compliance with the License.
|
|
299
|
-
* You may obtain a copy of the License at
|
|
300
|
-
*
|
|
301
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
302
|
-
*
|
|
303
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
304
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
305
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
306
|
-
* See the License for the specific language governing permissions and
|
|
307
|
-
* limitations under the License.
|
|
308
|
-
*/const Ec="[DEFAULT]";/**
|
|
309
|
-
* @license
|
|
310
|
-
* Copyright 2019 Google LLC
|
|
311
|
-
*
|
|
312
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
313
|
-
* you may not use this file except in compliance with the License.
|
|
314
|
-
* You may obtain a copy of the License at
|
|
315
|
-
*
|
|
316
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
317
|
-
*
|
|
318
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
319
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
320
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
321
|
-
* See the License for the specific language governing permissions and
|
|
322
|
-
* limitations under the License.
|
|
323
|
-
*/class P6{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 T6;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(_6(e))try{this.getOrInitializeService({instanceIdentifier:Ec})}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=Ec){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=Ec){return this.instances.has(e)}getOptions(e=Ec){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 u=this.normalizeInstanceIdentifier(o);r===u&&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:O6(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=Ec){return this.component?this.component.multipleInstances?e:Ec:e}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function O6(t){return t===Ec?void 0:t}function _6(t){return t.instantiationMode==="EAGER"}/**
|
|
324
|
-
* @license
|
|
325
|
-
* Copyright 2019 Google LLC
|
|
326
|
-
*
|
|
327
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
328
|
-
* you may not use this file except in compliance with the License.
|
|
329
|
-
* You may obtain a copy of the License at
|
|
330
|
-
*
|
|
331
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
332
|
-
*
|
|
333
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
334
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
335
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
336
|
-
* See the License for the specific language governing permissions and
|
|
337
|
-
* limitations under the License.
|
|
338
|
-
*/class R6{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 P6(e,this);return this.providers.set(e,n),n}getProviders(){return Array.from(this.providers.values())}}/**
|
|
339
|
-
* @license
|
|
340
|
-
* Copyright 2017 Google LLC
|
|
341
|
-
*
|
|
342
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
343
|
-
* you may not use this file except in compliance with the License.
|
|
344
|
-
* You may obtain a copy of the License at
|
|
345
|
-
*
|
|
346
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
347
|
-
*
|
|
348
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
349
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
350
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
351
|
-
* See the License for the specific language governing permissions and
|
|
352
|
-
* limitations under the License.
|
|
353
|
-
*/var $n;(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"})($n||($n={}));const A6={debug:$n.DEBUG,verbose:$n.VERBOSE,info:$n.INFO,warn:$n.WARN,error:$n.ERROR,silent:$n.SILENT},I6=$n.INFO,M6={[$n.DEBUG]:"log",[$n.VERBOSE]:"log",[$n.INFO]:"info",[$n.WARN]:"warn",[$n.ERROR]:"error"},L6=(t,e,...n)=>{if(e<t.logLevel)return;const r=new Date().toISOString(),i=M6[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 F6{constructor(e){this.name=e,this._logLevel=I6,this._logHandler=L6,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in $n))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel=typeof e=="string"?A6[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,$n.DEBUG,...e),this._logHandler(this,$n.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,$n.VERBOSE,...e),this._logHandler(this,$n.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,$n.INFO,...e),this._logHandler(this,$n.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,$n.WARN,...e),this._logHandler(this,$n.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,$n.ERROR,...e),this._logHandler(this,$n.ERROR,...e)}}const N6=(t,e)=>e.some(n=>t instanceof n);let x1,S1;function j6(){return x1||(x1=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function B6(){return S1||(S1=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const WD=new WeakMap,Av=new WeakMap,zD=new WeakMap,Tm=new WeakMap,ob=new WeakMap;function $6(t){const e=new Promise((n,r)=>{const i=()=>{t.removeEventListener("success",o),t.removeEventListener("error",a)},o=()=>{n(Il(t.result)),i()},a=()=>{r(t.error),i()};t.addEventListener("success",o),t.addEventListener("error",a)});return e.then(n=>{n instanceof IDBCursor&&WD.set(n,t)}).catch(()=>{}),ob.set(e,t),e}function V6(t){if(Av.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)});Av.set(t,e)}let Iv={get(t,e,n){if(t instanceof IDBTransaction){if(e==="done")return Av.get(t);if(e==="objectStoreNames")return t.objectStoreNames||zD.get(t);if(e==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Il(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 H6(t){Iv=t(Iv)}function U6(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...n){const r=t.call(Cm(this),e,...n);return zD.set(r,e.sort?e.sort():[e]),Il(r)}:B6().includes(t)?function(...e){return t.apply(Cm(this),e),Il(WD.get(this))}:function(...e){return Il(t.apply(Cm(this),e))}}function W6(t){return typeof t=="function"?U6(t):(t instanceof IDBTransaction&&V6(t),N6(t,j6())?new Proxy(t,Iv):t)}function Il(t){if(t instanceof IDBRequest)return $6(t);if(Tm.has(t))return Tm.get(t);const e=W6(t);return e!==t&&(Tm.set(t,e),ob.set(e,t)),e}const Cm=t=>ob.get(t);function Zp(t,e,{blocked:n,upgrade:r,blocking:i,terminated:o}={}){const a=indexedDB.open(t,e),u=Il(a);return r&&a.addEventListener("upgradeneeded",c=>{r(Il(a.result),c.oldVersion,c.newVersion,Il(a.transaction),c)}),n&&a.addEventListener("blocked",c=>n(c.oldVersion,c.newVersion,c)),u.then(c=>{o&&c.addEventListener("close",()=>o()),i&&c.addEventListener("versionchange",d=>i(d.oldVersion,d.newVersion,d))}).catch(()=>{}),u}function Em(t,{blocked:e}={}){const n=indexedDB.deleteDatabase(t);return e&&n.addEventListener("blocked",r=>e(r.oldVersion,r)),Il(n).then(()=>{})}const z6=["get","getKey","getAll","getAllKeys","count"],Y6=["put","add","delete","clear"],km=new Map;function T1(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(km.get(e))return km.get(e);const n=e.replace(/FromIndex$/,""),r=e!==n,i=Y6.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||z6.includes(n)))return;const o=async function(a,...u){const c=this.transaction(a,i?"readwrite":"readonly");let d=c.store;return r&&(d=d.index(u.shift())),(await Promise.all([d[n](...u),i&&c.done]))[0]};return km.set(e,o),o}H6(t=>({...t,get:(e,n,r)=>T1(e,n)||t.get(e,n,r),has:(e,n)=>!!T1(e,n)||t.has(e,n)}));/**
|
|
354
|
-
* @license
|
|
355
|
-
* Copyright 2019 Google LLC
|
|
356
|
-
*
|
|
357
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
358
|
-
* you may not use this file except in compliance with the License.
|
|
359
|
-
* You may obtain a copy of the License at
|
|
360
|
-
*
|
|
361
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
362
|
-
*
|
|
363
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
364
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
365
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
366
|
-
* See the License for the specific language governing permissions and
|
|
367
|
-
* limitations under the License.
|
|
368
|
-
*/class G6{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(q6(n)){const r=n.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(n=>n).join(" ")}}function q6(t){const e=t.getComponent();return(e==null?void 0:e.type)==="VERSION"}const Mv="@firebase/app",C1="0.10.13";/**
|
|
369
|
-
* @license
|
|
370
|
-
* Copyright 2019 Google LLC
|
|
371
|
-
*
|
|
372
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
373
|
-
* you may not use this file except in compliance with the License.
|
|
374
|
-
* You may obtain a copy of the License at
|
|
375
|
-
*
|
|
376
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
377
|
-
*
|
|
378
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
379
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
380
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
381
|
-
* See the License for the specific language governing permissions and
|
|
382
|
-
* limitations under the License.
|
|
383
|
-
*/const Fl=new F6("@firebase/app"),X6="@firebase/app-compat",K6="@firebase/analytics-compat",Z6="@firebase/analytics",J6="@firebase/app-check-compat",Q6="@firebase/app-check",e8="@firebase/auth",t8="@firebase/auth-compat",n8="@firebase/database",r8="@firebase/data-connect",i8="@firebase/database-compat",o8="@firebase/functions",s8="@firebase/functions-compat",a8="@firebase/installations",l8="@firebase/installations-compat",u8="@firebase/messaging",c8="@firebase/messaging-compat",f8="@firebase/performance",d8="@firebase/performance-compat",h8="@firebase/remote-config",p8="@firebase/remote-config-compat",g8="@firebase/storage",m8="@firebase/storage-compat",v8="@firebase/firestore",y8="@firebase/vertexai-preview",b8="@firebase/firestore-compat",w8="firebase";/**
|
|
384
|
-
* @license
|
|
385
|
-
* Copyright 2019 Google LLC
|
|
386
|
-
*
|
|
387
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
388
|
-
* you may not use this file except in compliance with the License.
|
|
389
|
-
* You may obtain a copy of the License at
|
|
390
|
-
*
|
|
391
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
392
|
-
*
|
|
393
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
394
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
395
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
396
|
-
* See the License for the specific language governing permissions and
|
|
397
|
-
* limitations under the License.
|
|
398
|
-
*/const Lv="[DEFAULT]",x8={[Mv]:"fire-core",[X6]:"fire-core-compat",[Z6]:"fire-analytics",[K6]:"fire-analytics-compat",[Q6]:"fire-app-check",[J6]:"fire-app-check-compat",[e8]:"fire-auth",[t8]:"fire-auth-compat",[n8]:"fire-rtdb",[r8]:"fire-data-connect",[i8]:"fire-rtdb-compat",[o8]:"fire-fn",[s8]:"fire-fn-compat",[a8]:"fire-iid",[l8]:"fire-iid-compat",[u8]:"fire-fcm",[c8]:"fire-fcm-compat",[f8]:"fire-perf",[d8]:"fire-perf-compat",[h8]:"fire-rc",[p8]:"fire-rc-compat",[g8]:"fire-gcs",[m8]:"fire-gcs-compat",[v8]:"fire-fst",[b8]:"fire-fst-compat",[y8]:"fire-vertex","fire-js":"fire-js",[w8]:"fire-js-all"};/**
|
|
399
|
-
* @license
|
|
400
|
-
* Copyright 2019 Google LLC
|
|
401
|
-
*
|
|
402
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
403
|
-
* you may not use this file except in compliance with the License.
|
|
404
|
-
* You may obtain a copy of the License at
|
|
405
|
-
*
|
|
406
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
407
|
-
*
|
|
408
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
409
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
410
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
411
|
-
* See the License for the specific language governing permissions and
|
|
412
|
-
* limitations under the License.
|
|
413
|
-
*/const Sp=new Map,S8=new Map,Fv=new Map;function E1(t,e){try{t.container.addComponent(e)}catch(n){Fl.debug(`Component ${e.name} failed to register with FirebaseApp ${t.name}`,n)}}function Fc(t){const e=t.name;if(Fv.has(e))return Fl.debug(`There were multiple attempts to register component ${e}.`),!1;Fv.set(e,t);for(const n of Sp.values())E1(n,t);for(const n of S8.values())E1(n,t);return!0}function sb(t,e){const n=t.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),t.container.getProvider(e)}/**
|
|
414
|
-
* @license
|
|
415
|
-
* Copyright 2019 Google LLC
|
|
416
|
-
*
|
|
417
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
418
|
-
* you may not use this file except in compliance with the License.
|
|
419
|
-
* You may obtain a copy of the License at
|
|
420
|
-
*
|
|
421
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
422
|
-
*
|
|
423
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
424
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
425
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
426
|
-
* See the License for the specific language governing permissions and
|
|
427
|
-
* limitations under the License.
|
|
428
|
-
*/const T8={"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."},xu=new Kp("app","Firebase",T8);/**
|
|
429
|
-
* @license
|
|
430
|
-
* Copyright 2019 Google LLC
|
|
431
|
-
*
|
|
432
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
433
|
-
* you may not use this file except in compliance with the License.
|
|
434
|
-
* You may obtain a copy of the License at
|
|
435
|
-
*
|
|
436
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
437
|
-
*
|
|
438
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
439
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
440
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
441
|
-
* See the License for the specific language governing permissions and
|
|
442
|
-
* limitations under the License.
|
|
443
|
-
*/class C8{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 Ru("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 xu.create("app-deleted",{appName:this._name})}}function YD(t,e={}){let n=t;typeof e!="object"&&(e={name:e});const r=Object.assign({name:Lv,automaticDataCollectionEnabled:!1},e),i=r.name;if(typeof i!="string"||!i)throw xu.create("bad-app-name",{appName:String(i)});if(n||(n=VD()),!n)throw xu.create("no-options");const o=Sp.get(i);if(o){if(Rv(n,o.options)&&Rv(r,o.config))return o;throw xu.create("duplicate-app",{appName:i})}const a=new R6(i);for(const c of Fv.values())a.addComponent(c);const u=new C8(n,r,a);return Sp.set(i,u),u}function E8(t=Lv){const e=Sp.get(t);if(!e&&t===Lv&&VD())return YD();if(!e)throw xu.create("no-app",{appName:t});return e}function Su(t,e,n){var r;let i=(r=x8[t])!==null&&r!==void 0?r:t;n&&(i+=`-${n}`);const o=i.match(/\s|\//),a=e.match(/\s|\//);if(o||a){const u=[`Unable to register library "${i}" with version "${e}":`];o&&u.push(`library name "${i}" contains illegal characters (whitespace or "/")`),o&&a&&u.push("and"),a&&u.push(`version name "${e}" contains illegal characters (whitespace or "/")`),Fl.warn(u.join(" "));return}Fc(new Ru(`${i}-version`,()=>({library:i,version:e}),"VERSION"))}/**
|
|
444
|
-
* @license
|
|
445
|
-
* Copyright 2021 Google LLC
|
|
446
|
-
*
|
|
447
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
448
|
-
* you may not use this file except in compliance with the License.
|
|
449
|
-
* You may obtain a copy of the License at
|
|
450
|
-
*
|
|
451
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
452
|
-
*
|
|
453
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
454
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
455
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
456
|
-
* See the License for the specific language governing permissions and
|
|
457
|
-
* limitations under the License.
|
|
458
|
-
*/const k8="firebase-heartbeat-database",D8=1,Ud="firebase-heartbeat-store";let Dm=null;function GD(){return Dm||(Dm=Zp(k8,D8,{upgrade:(t,e)=>{switch(e){case 0:try{t.createObjectStore(Ud)}catch(n){console.warn(n)}}}}).catch(t=>{throw xu.create("idb-open",{originalErrorMessage:t.message})})),Dm}async function P8(t){try{const n=(await GD()).transaction(Ud),r=await n.objectStore(Ud).get(qD(t));return await n.done,r}catch(e){if(e instanceof Uf)Fl.warn(e.message);else{const n=xu.create("idb-get",{originalErrorMessage:e==null?void 0:e.message});Fl.warn(n.message)}}}async function k1(t,e){try{const r=(await GD()).transaction(Ud,"readwrite");await r.objectStore(Ud).put(e,qD(t)),await r.done}catch(n){if(n instanceof Uf)Fl.warn(n.message);else{const r=xu.create("idb-set",{originalErrorMessage:n==null?void 0:n.message});Fl.warn(r.message)}}}function qD(t){return`${t.name}!${t.options.appId}`}/**
|
|
459
|
-
* @license
|
|
460
|
-
* Copyright 2021 Google LLC
|
|
461
|
-
*
|
|
462
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
463
|
-
* you may not use this file except in compliance with the License.
|
|
464
|
-
* You may obtain a copy of the License at
|
|
465
|
-
*
|
|
466
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
467
|
-
*
|
|
468
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
469
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
470
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
471
|
-
* See the License for the specific language governing permissions and
|
|
472
|
-
* limitations under the License.
|
|
473
|
-
*/const O8=1024,_8=30*24*60*60*1e3;class R8{constructor(e){this.container=e,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new I8(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=D1();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 u=new Date(a.date).valueOf();return Date.now()-u<=_8}),this._storage.overwrite(this._heartbeatsCache))}catch(r){Fl.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=D1(),{heartbeatsToSend:r,unsentEntries:i}=A8(this._heartbeatsCache.heartbeats),o=$D(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 Fl.warn(n),""}}}function D1(){return new Date().toISOString().substring(0,10)}function A8(t,e=O8){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),P1(n)>e){o.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),P1(n)>e){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}class I8{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return HD()?UD().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const n=await P8(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 k1(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 k1(this.app,{lastSentHeartbeatDate:(n=e.lastSentHeartbeatDate)!==null&&n!==void 0?n:i.lastSentHeartbeatDate,heartbeats:[...i.heartbeats,...e.heartbeats]})}else return}}function P1(t){return $D(JSON.stringify({version:2,heartbeats:t})).length}/**
|
|
474
|
-
* @license
|
|
475
|
-
* Copyright 2019 Google LLC
|
|
476
|
-
*
|
|
477
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
478
|
-
* you may not use this file except in compliance with the License.
|
|
479
|
-
* You may obtain a copy of the License at
|
|
480
|
-
*
|
|
481
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
482
|
-
*
|
|
483
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
484
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
485
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
486
|
-
* See the License for the specific language governing permissions and
|
|
487
|
-
* limitations under the License.
|
|
488
|
-
*/function M8(t){Fc(new Ru("platform-logger",e=>new G6(e),"PRIVATE")),Fc(new Ru("heartbeat",e=>new R8(e),"PRIVATE")),Su(Mv,C1,t),Su(Mv,C1,"esm2017"),Su("fire-js","")}M8("");var L8="firebase",F8="10.14.1";/**
|
|
489
|
-
* @license
|
|
490
|
-
* Copyright 2020 Google LLC
|
|
491
|
-
*
|
|
492
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
493
|
-
* you may not use this file except in compliance with the License.
|
|
494
|
-
* You may obtain a copy of the License at
|
|
495
|
-
*
|
|
496
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
497
|
-
*
|
|
498
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
499
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
500
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
501
|
-
* See the License for the specific language governing permissions and
|
|
502
|
-
* limitations under the License.
|
|
503
|
-
*/Su(L8,F8,"app");const XD="@firebase/installations",ab="0.6.9";/**
|
|
504
|
-
* @license
|
|
505
|
-
* Copyright 2019 Google LLC
|
|
506
|
-
*
|
|
507
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
508
|
-
* you may not use this file except in compliance with the License.
|
|
509
|
-
* You may obtain a copy of the License at
|
|
510
|
-
*
|
|
511
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
512
|
-
*
|
|
513
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
514
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
515
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
516
|
-
* See the License for the specific language governing permissions and
|
|
517
|
-
* limitations under the License.
|
|
518
|
-
*/const KD=1e4,ZD=`w:${ab}`,JD="FIS_v2",N8="https://firebaseinstallations.googleapis.com/v1",j8=60*60*1e3,B8="installations",$8="Installations";/**
|
|
519
|
-
* @license
|
|
520
|
-
* Copyright 2019 Google LLC
|
|
521
|
-
*
|
|
522
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
523
|
-
* you may not use this file except in compliance with the License.
|
|
524
|
-
* You may obtain a copy of the License at
|
|
525
|
-
*
|
|
526
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
527
|
-
*
|
|
528
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
529
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
530
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
531
|
-
* See the License for the specific language governing permissions and
|
|
532
|
-
* limitations under the License.
|
|
533
|
-
*/const V8={"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."},Nc=new Kp(B8,$8,V8);function QD(t){return t instanceof Uf&&t.code.includes("request-failed")}/**
|
|
534
|
-
* @license
|
|
535
|
-
* Copyright 2019 Google LLC
|
|
536
|
-
*
|
|
537
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
538
|
-
* you may not use this file except in compliance with the License.
|
|
539
|
-
* You may obtain a copy of the License at
|
|
540
|
-
*
|
|
541
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
542
|
-
*
|
|
543
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
544
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
545
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
546
|
-
* See the License for the specific language governing permissions and
|
|
547
|
-
* limitations under the License.
|
|
548
|
-
*/function eP({projectId:t}){return`${N8}/projects/${t}/installations`}function tP(t){return{token:t.token,requestStatus:2,expiresIn:U8(t.expiresIn),creationTime:Date.now()}}async function nP(t,e){const r=(await e.json()).error;return Nc.create("request-failed",{requestName:t,serverCode:r.code,serverMessage:r.message,serverStatus:r.status})}function rP({apiKey:t}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":t})}function H8(t,{refreshToken:e}){const n=rP(t);return n.append("Authorization",W8(e)),n}async function iP(t){const e=await t();return e.status>=500&&e.status<600?t():e}function U8(t){return Number(t.replace("s","000"))}function W8(t){return`${JD} ${t}`}/**
|
|
549
|
-
* @license
|
|
550
|
-
* Copyright 2019 Google LLC
|
|
551
|
-
*
|
|
552
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
553
|
-
* you may not use this file except in compliance with the License.
|
|
554
|
-
* You may obtain a copy of the License at
|
|
555
|
-
*
|
|
556
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
557
|
-
*
|
|
558
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
559
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
560
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
561
|
-
* See the License for the specific language governing permissions and
|
|
562
|
-
* limitations under the License.
|
|
563
|
-
*/async function z8({appConfig:t,heartbeatServiceProvider:e},{fid:n}){const r=eP(t),i=rP(t),o=e.getImmediate({optional:!0});if(o){const d=await o.getHeartbeatsHeader();d&&i.append("x-firebase-client",d)}const a={fid:n,authVersion:JD,appId:t.appId,sdkVersion:ZD},u={method:"POST",headers:i,body:JSON.stringify(a)},c=await iP(()=>fetch(r,u));if(c.ok){const d=await c.json();return{fid:d.fid||n,registrationStatus:2,refreshToken:d.refreshToken,authToken:tP(d.authToken)}}else throw await nP("Create Installation",c)}/**
|
|
564
|
-
* @license
|
|
565
|
-
* Copyright 2019 Google LLC
|
|
566
|
-
*
|
|
567
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
568
|
-
* you may not use this file except in compliance with the License.
|
|
569
|
-
* You may obtain a copy of the License at
|
|
570
|
-
*
|
|
571
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
572
|
-
*
|
|
573
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
574
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
575
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
576
|
-
* See the License for the specific language governing permissions and
|
|
577
|
-
* limitations under the License.
|
|
578
|
-
*/function oP(t){return new Promise(e=>{setTimeout(e,t)})}/**
|
|
579
|
-
* @license
|
|
580
|
-
* Copyright 2019 Google LLC
|
|
581
|
-
*
|
|
582
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
583
|
-
* you may not use this file except in compliance with the License.
|
|
584
|
-
* You may obtain a copy of the License at
|
|
585
|
-
*
|
|
586
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
587
|
-
*
|
|
588
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
589
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
590
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
591
|
-
* See the License for the specific language governing permissions and
|
|
592
|
-
* limitations under the License.
|
|
593
|
-
*/function Y8(t){return btoa(String.fromCharCode(...t)).replace(/\+/g,"-").replace(/\//g,"_")}/**
|
|
594
|
-
* @license
|
|
595
|
-
* Copyright 2019 Google LLC
|
|
596
|
-
*
|
|
597
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
598
|
-
* you may not use this file except in compliance with the License.
|
|
599
|
-
* You may obtain a copy of the License at
|
|
600
|
-
*
|
|
601
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
602
|
-
*
|
|
603
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
604
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
605
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
606
|
-
* See the License for the specific language governing permissions and
|
|
607
|
-
* limitations under the License.
|
|
608
|
-
*/const G8=/^[cdef][\w-]{21}$/,Nv="";function q8(){try{const t=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(t),t[0]=112+t[0]%16;const n=X8(t);return G8.test(n)?n:Nv}catch{return Nv}}function X8(t){return Y8(t).substr(0,22)}/**
|
|
609
|
-
* @license
|
|
610
|
-
* Copyright 2019 Google LLC
|
|
611
|
-
*
|
|
612
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
613
|
-
* you may not use this file except in compliance with the License.
|
|
614
|
-
* You may obtain a copy of the License at
|
|
615
|
-
*
|
|
616
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
617
|
-
*
|
|
618
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
619
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
620
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
621
|
-
* See the License for the specific language governing permissions and
|
|
622
|
-
* limitations under the License.
|
|
623
|
-
*/function Jp(t){return`${t.appName}!${t.appId}`}/**
|
|
624
|
-
* @license
|
|
625
|
-
* Copyright 2019 Google LLC
|
|
626
|
-
*
|
|
627
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
628
|
-
* you may not use this file except in compliance with the License.
|
|
629
|
-
* You may obtain a copy of the License at
|
|
630
|
-
*
|
|
631
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
632
|
-
*
|
|
633
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
634
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
635
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
636
|
-
* See the License for the specific language governing permissions and
|
|
637
|
-
* limitations under the License.
|
|
638
|
-
*/const sP=new Map;function aP(t,e){const n=Jp(t);lP(n,e),K8(n,e)}function lP(t,e){const n=sP.get(t);if(n)for(const r of n)r(e)}function K8(t,e){const n=Z8();n&&n.postMessage({key:t,fid:e}),J8()}let Pc=null;function Z8(){return!Pc&&"BroadcastChannel"in self&&(Pc=new BroadcastChannel("[Firebase] FID Change"),Pc.onmessage=t=>{lP(t.data.key,t.data.fid)}),Pc}function J8(){sP.size===0&&Pc&&(Pc.close(),Pc=null)}/**
|
|
639
|
-
* @license
|
|
640
|
-
* Copyright 2019 Google LLC
|
|
641
|
-
*
|
|
642
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
643
|
-
* you may not use this file except in compliance with the License.
|
|
644
|
-
* You may obtain a copy of the License at
|
|
645
|
-
*
|
|
646
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
647
|
-
*
|
|
648
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
649
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
650
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
651
|
-
* See the License for the specific language governing permissions and
|
|
652
|
-
* limitations under the License.
|
|
653
|
-
*/const Q8="firebase-installations-database",e9=1,jc="firebase-installations-store";let Pm=null;function lb(){return Pm||(Pm=Zp(Q8,e9,{upgrade:(t,e)=>{switch(e){case 0:t.createObjectStore(jc)}}})),Pm}async function Tp(t,e){const n=Jp(t),i=(await lb()).transaction(jc,"readwrite"),o=i.objectStore(jc),a=await o.get(n);return await o.put(e,n),await i.done,(!a||a.fid!==e.fid)&&aP(t,e.fid),e}async function uP(t){const e=Jp(t),r=(await lb()).transaction(jc,"readwrite");await r.objectStore(jc).delete(e),await r.done}async function Qp(t,e){const n=Jp(t),i=(await lb()).transaction(jc,"readwrite"),o=i.objectStore(jc),a=await o.get(n),u=e(a);return u===void 0?await o.delete(n):await o.put(u,n),await i.done,u&&(!a||a.fid!==u.fid)&&aP(t,u.fid),u}/**
|
|
654
|
-
* @license
|
|
655
|
-
* Copyright 2019 Google LLC
|
|
656
|
-
*
|
|
657
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
658
|
-
* you may not use this file except in compliance with the License.
|
|
659
|
-
* You may obtain a copy of the License at
|
|
660
|
-
*
|
|
661
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
662
|
-
*
|
|
663
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
664
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
665
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
666
|
-
* See the License for the specific language governing permissions and
|
|
667
|
-
* limitations under the License.
|
|
668
|
-
*/async function ub(t){let e;const n=await Qp(t.appConfig,r=>{const i=t9(r),o=n9(t,i);return e=o.registrationPromise,o.installationEntry});return n.fid===Nv?{installationEntry:await e}:{installationEntry:n,registrationPromise:e}}function t9(t){const e=t||{fid:q8(),registrationStatus:0};return cP(e)}function n9(t,e){if(e.registrationStatus===0){if(!navigator.onLine){const i=Promise.reject(Nc.create("app-offline"));return{installationEntry:e,registrationPromise:i}}const n={fid:e.fid,registrationStatus:1,registrationTime:Date.now()},r=r9(t,n);return{installationEntry:n,registrationPromise:r}}else return e.registrationStatus===1?{installationEntry:e,registrationPromise:i9(t)}:{installationEntry:e}}async function r9(t,e){try{const n=await z8(t,e);return Tp(t.appConfig,n)}catch(n){throw QD(n)&&n.customData.serverCode===409?await uP(t.appConfig):await Tp(t.appConfig,{fid:e.fid,registrationStatus:0}),n}}async function i9(t){let e=await O1(t.appConfig);for(;e.registrationStatus===1;)await oP(100),e=await O1(t.appConfig);if(e.registrationStatus===0){const{installationEntry:n,registrationPromise:r}=await ub(t);return r||n}return e}function O1(t){return Qp(t,e=>{if(!e)throw Nc.create("installation-not-found");return cP(e)})}function cP(t){return o9(t)?{fid:t.fid,registrationStatus:0}:t}function o9(t){return t.registrationStatus===1&&t.registrationTime+KD<Date.now()}/**
|
|
669
|
-
* @license
|
|
670
|
-
* Copyright 2019 Google LLC
|
|
671
|
-
*
|
|
672
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
673
|
-
* you may not use this file except in compliance with the License.
|
|
674
|
-
* You may obtain a copy of the License at
|
|
675
|
-
*
|
|
676
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
677
|
-
*
|
|
678
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
679
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
680
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
681
|
-
* See the License for the specific language governing permissions and
|
|
682
|
-
* limitations under the License.
|
|
683
|
-
*/async function s9({appConfig:t,heartbeatServiceProvider:e},n){const r=a9(t,n),i=H8(t,n),o=e.getImmediate({optional:!0});if(o){const d=await o.getHeartbeatsHeader();d&&i.append("x-firebase-client",d)}const a={installation:{sdkVersion:ZD,appId:t.appId}},u={method:"POST",headers:i,body:JSON.stringify(a)},c=await iP(()=>fetch(r,u));if(c.ok){const d=await c.json();return tP(d)}else throw await nP("Generate Auth Token",c)}function a9(t,{fid:e}){return`${eP(t)}/${e}/authTokens:generate`}/**
|
|
684
|
-
* @license
|
|
685
|
-
* Copyright 2019 Google LLC
|
|
686
|
-
*
|
|
687
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
688
|
-
* you may not use this file except in compliance with the License.
|
|
689
|
-
* You may obtain a copy of the License at
|
|
690
|
-
*
|
|
691
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
692
|
-
*
|
|
693
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
694
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
695
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
696
|
-
* See the License for the specific language governing permissions and
|
|
697
|
-
* limitations under the License.
|
|
698
|
-
*/async function cb(t,e=!1){let n;const r=await Qp(t.appConfig,o=>{if(!fP(o))throw Nc.create("not-registered");const a=o.authToken;if(!e&&c9(a))return o;if(a.requestStatus===1)return n=l9(t,e),o;{if(!navigator.onLine)throw Nc.create("app-offline");const u=d9(o);return n=u9(t,u),u}});return n?await n:r.authToken}async function l9(t,e){let n=await _1(t.appConfig);for(;n.authToken.requestStatus===1;)await oP(100),n=await _1(t.appConfig);const r=n.authToken;return r.requestStatus===0?cb(t,e):r}function _1(t){return Qp(t,e=>{if(!fP(e))throw Nc.create("not-registered");const n=e.authToken;return h9(n)?Object.assign(Object.assign({},e),{authToken:{requestStatus:0}}):e})}async function u9(t,e){try{const n=await s9(t,e),r=Object.assign(Object.assign({},e),{authToken:n});return await Tp(t.appConfig,r),n}catch(n){if(QD(n)&&(n.customData.serverCode===401||n.customData.serverCode===404))await uP(t.appConfig);else{const r=Object.assign(Object.assign({},e),{authToken:{requestStatus:0}});await Tp(t.appConfig,r)}throw n}}function fP(t){return t!==void 0&&t.registrationStatus===2}function c9(t){return t.requestStatus===2&&!f9(t)}function f9(t){const e=Date.now();return e<t.creationTime||t.creationTime+t.expiresIn<e+j8}function d9(t){const e={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},t),{authToken:e})}function h9(t){return t.requestStatus===1&&t.requestTime+KD<Date.now()}/**
|
|
699
|
-
* @license
|
|
700
|
-
* Copyright 2019 Google LLC
|
|
701
|
-
*
|
|
702
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
703
|
-
* you may not use this file except in compliance with the License.
|
|
704
|
-
* You may obtain a copy of the License at
|
|
705
|
-
*
|
|
706
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
707
|
-
*
|
|
708
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
709
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
710
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
711
|
-
* See the License for the specific language governing permissions and
|
|
712
|
-
* limitations under the License.
|
|
713
|
-
*/async function p9(t){const e=t,{installationEntry:n,registrationPromise:r}=await ub(e);return r?r.catch(console.error):cb(e).catch(console.error),n.fid}/**
|
|
714
|
-
* @license
|
|
715
|
-
* Copyright 2019 Google LLC
|
|
716
|
-
*
|
|
717
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
718
|
-
* you may not use this file except in compliance with the License.
|
|
719
|
-
* You may obtain a copy of the License at
|
|
720
|
-
*
|
|
721
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
722
|
-
*
|
|
723
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
724
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
725
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
726
|
-
* See the License for the specific language governing permissions and
|
|
727
|
-
* limitations under the License.
|
|
728
|
-
*/async function g9(t,e=!1){const n=t;return await m9(n),(await cb(n,e)).token}async function m9(t){const{registrationPromise:e}=await ub(t);e&&await e}/**
|
|
729
|
-
* @license
|
|
730
|
-
* Copyright 2019 Google LLC
|
|
731
|
-
*
|
|
732
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
733
|
-
* you may not use this file except in compliance with the License.
|
|
734
|
-
* You may obtain a copy of the License at
|
|
735
|
-
*
|
|
736
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
737
|
-
*
|
|
738
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
739
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
740
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
741
|
-
* See the License for the specific language governing permissions and
|
|
742
|
-
* limitations under the License.
|
|
743
|
-
*/function v9(t){if(!t||!t.options)throw Om("App Configuration");if(!t.name)throw Om("App Name");const e=["projectId","apiKey","appId"];for(const n of e)if(!t.options[n])throw Om(n);return{appName:t.name,projectId:t.options.projectId,apiKey:t.options.apiKey,appId:t.options.appId}}function Om(t){return Nc.create("missing-app-config-values",{valueName:t})}/**
|
|
744
|
-
* @license
|
|
745
|
-
* Copyright 2020 Google LLC
|
|
746
|
-
*
|
|
747
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
748
|
-
* you may not use this file except in compliance with the License.
|
|
749
|
-
* You may obtain a copy of the License at
|
|
750
|
-
*
|
|
751
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
752
|
-
*
|
|
753
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
754
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
755
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
756
|
-
* See the License for the specific language governing permissions and
|
|
757
|
-
* limitations under the License.
|
|
758
|
-
*/const dP="installations",y9="installations-internal",b9=t=>{const e=t.getProvider("app").getImmediate(),n=v9(e),r=sb(e,"heartbeat");return{app:e,appConfig:n,heartbeatServiceProvider:r,_delete:()=>Promise.resolve()}},w9=t=>{const e=t.getProvider("app").getImmediate(),n=sb(e,dP).getImmediate();return{getId:()=>p9(n),getToken:i=>g9(n,i)}};function x9(){Fc(new Ru(dP,b9,"PUBLIC")),Fc(new Ru(y9,w9,"PRIVATE"))}x9();Su(XD,ab);Su(XD,ab,"esm2017");/**
|
|
759
|
-
* @license
|
|
760
|
-
* Copyright 2019 Google LLC
|
|
761
|
-
*
|
|
762
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
763
|
-
* you may not use this file except in compliance with the License.
|
|
764
|
-
* You may obtain a copy of the License at
|
|
765
|
-
*
|
|
766
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
767
|
-
*
|
|
768
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
769
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
770
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
771
|
-
* See the License for the specific language governing permissions and
|
|
772
|
-
* limitations under the License.
|
|
773
|
-
*/const S9="/firebase-messaging-sw.js",T9="/firebase-cloud-messaging-push-scope",hP="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",C9="https://fcmregistrations.googleapis.com/v1",pP="google.c.a.c_id",E9="google.c.a.c_l",k9="google.c.a.ts",D9="google.c.a.e";var R1;(function(t){t[t.DATA_MESSAGE=1]="DATA_MESSAGE",t[t.DISPLAY_NOTIFICATION=3]="DISPLAY_NOTIFICATION"})(R1||(R1={}));/**
|
|
774
|
-
* @license
|
|
775
|
-
* Copyright 2018 Google LLC
|
|
776
|
-
*
|
|
777
|
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
|
|
778
|
-
* in compliance with the License. You may obtain a copy of the License at
|
|
779
|
-
*
|
|
780
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
781
|
-
*
|
|
782
|
-
* Unless required by applicable law or agreed to in writing, software distributed under the License
|
|
783
|
-
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
|
784
|
-
* or implied. See the License for the specific language governing permissions and limitations under
|
|
785
|
-
* the License.
|
|
786
|
-
*/var Wd;(function(t){t.PUSH_RECEIVED="push-received",t.NOTIFICATION_CLICKED="notification-clicked"})(Wd||(Wd={}));/**
|
|
787
|
-
* @license
|
|
788
|
-
* Copyright 2017 Google LLC
|
|
789
|
-
*
|
|
790
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
791
|
-
* you may not use this file except in compliance with the License.
|
|
792
|
-
* You may obtain a copy of the License at
|
|
793
|
-
*
|
|
794
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
795
|
-
*
|
|
796
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
797
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
798
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
799
|
-
* See the License for the specific language governing permissions and
|
|
800
|
-
* limitations under the License.
|
|
801
|
-
*/function kl(t){const e=new Uint8Array(t);return btoa(String.fromCharCode(...e)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function P9(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}/**
|
|
802
|
-
* @license
|
|
803
|
-
* Copyright 2019 Google LLC
|
|
804
|
-
*
|
|
805
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
806
|
-
* you may not use this file except in compliance with the License.
|
|
807
|
-
* You may obtain a copy of the License at
|
|
808
|
-
*
|
|
809
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
810
|
-
*
|
|
811
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
812
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
813
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
814
|
-
* See the License for the specific language governing permissions and
|
|
815
|
-
* limitations under the License.
|
|
816
|
-
*/const _m="fcm_token_details_db",O9=5,A1="fcm_token_object_Store";async function _9(t){if("databases"in indexedDB&&!(await indexedDB.databases()).map(o=>o.name).includes(_m))return null;let e=null;return(await Zp(_m,O9,{upgrade:async(r,i,o,a)=>{var u;if(i<2||!r.objectStoreNames.contains(A1))return;const c=a.objectStore(A1),d=await c.index("fcmSenderId").get(t);if(await c.clear(),!!d){if(i===2){const y=d;if(!y.auth||!y.p256dh||!y.endpoint)return;e={token:y.fcmToken,createTime:(u=y.createTime)!==null&&u!==void 0?u:Date.now(),subscriptionOptions:{auth:y.auth,p256dh:y.p256dh,endpoint:y.endpoint,swScope:y.swScope,vapidKey:typeof y.vapidKey=="string"?y.vapidKey:kl(y.vapidKey)}}}else if(i===3){const y=d;e={token:y.fcmToken,createTime:y.createTime,subscriptionOptions:{auth:kl(y.auth),p256dh:kl(y.p256dh),endpoint:y.endpoint,swScope:y.swScope,vapidKey:kl(y.vapidKey)}}}else if(i===4){const y=d;e={token:y.fcmToken,createTime:y.createTime,subscriptionOptions:{auth:kl(y.auth),p256dh:kl(y.p256dh),endpoint:y.endpoint,swScope:y.swScope,vapidKey:kl(y.vapidKey)}}}}}})).close(),await Em(_m),await Em("fcm_vapid_details_db"),await Em("undefined"),R9(e)?e:null}function R9(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}/**
|
|
817
|
-
* @license
|
|
818
|
-
* Copyright 2019 Google LLC
|
|
819
|
-
*
|
|
820
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
821
|
-
* you may not use this file except in compliance with the License.
|
|
822
|
-
* You may obtain a copy of the License at
|
|
823
|
-
*
|
|
824
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
825
|
-
*
|
|
826
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
827
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
828
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
829
|
-
* See the License for the specific language governing permissions and
|
|
830
|
-
* limitations under the License.
|
|
831
|
-
*/const A9="firebase-messaging-database",I9=1,zd="firebase-messaging-store";let Rm=null;function gP(){return Rm||(Rm=Zp(A9,I9,{upgrade:(t,e)=>{switch(e){case 0:t.createObjectStore(zd)}}})),Rm}async function M9(t){const e=mP(t),r=await(await gP()).transaction(zd).objectStore(zd).get(e);if(r)return r;{const i=await _9(t.appConfig.senderId);if(i)return await fb(t,i),i}}async function fb(t,e){const n=mP(t),i=(await gP()).transaction(zd,"readwrite");return await i.objectStore(zd).put(e,n),await i.done,e}function mP({appConfig:t}){return t.appId}/**
|
|
832
|
-
* @license
|
|
833
|
-
* Copyright 2017 Google LLC
|
|
834
|
-
*
|
|
835
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
836
|
-
* you may not use this file except in compliance with the License.
|
|
837
|
-
* You may obtain a copy of the License at
|
|
838
|
-
*
|
|
839
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
840
|
-
*
|
|
841
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
842
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
843
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
844
|
-
* See the License for the specific language governing permissions and
|
|
845
|
-
* limitations under the License.
|
|
846
|
-
*/const L9={"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."},Vi=new Kp("messaging","Messaging",L9);/**
|
|
847
|
-
* @license
|
|
848
|
-
* Copyright 2019 Google LLC
|
|
849
|
-
*
|
|
850
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
851
|
-
* you may not use this file except in compliance with the License.
|
|
852
|
-
* You may obtain a copy of the License at
|
|
853
|
-
*
|
|
854
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
855
|
-
*
|
|
856
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
857
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
858
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
859
|
-
* See the License for the specific language governing permissions and
|
|
860
|
-
* limitations under the License.
|
|
861
|
-
*/async function F9(t,e){const n=await hb(t),r=vP(e),i={method:"POST",headers:n,body:JSON.stringify(r)};let o;try{o=await(await fetch(db(t.appConfig),i)).json()}catch(a){throw Vi.create("token-subscribe-failed",{errorInfo:a==null?void 0:a.toString()})}if(o.error){const a=o.error.message;throw Vi.create("token-subscribe-failed",{errorInfo:a})}if(!o.token)throw Vi.create("token-subscribe-no-token");return o.token}async function N9(t,e){const n=await hb(t),r=vP(e.subscriptionOptions),i={method:"PATCH",headers:n,body:JSON.stringify(r)};let o;try{o=await(await fetch(`${db(t.appConfig)}/${e.token}`,i)).json()}catch(a){throw Vi.create("token-update-failed",{errorInfo:a==null?void 0:a.toString()})}if(o.error){const a=o.error.message;throw Vi.create("token-update-failed",{errorInfo:a})}if(!o.token)throw Vi.create("token-update-no-token");return o.token}async function j9(t,e){const r={method:"DELETE",headers:await hb(t)};try{const o=await(await fetch(`${db(t.appConfig)}/${e}`,r)).json();if(o.error){const a=o.error.message;throw Vi.create("token-unsubscribe-failed",{errorInfo:a})}}catch(i){throw Vi.create("token-unsubscribe-failed",{errorInfo:i==null?void 0:i.toString()})}}function db({projectId:t}){return`${C9}/projects/${t}/registrations`}async function hb({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 vP({p256dh:t,auth:e,endpoint:n,vapidKey:r}){const i={web:{endpoint:n,auth:e,p256dh:t}};return r!==hP&&(i.web.applicationPubKey=r),i}/**
|
|
862
|
-
* @license
|
|
863
|
-
* Copyright 2019 Google LLC
|
|
864
|
-
*
|
|
865
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
866
|
-
* you may not use this file except in compliance with the License.
|
|
867
|
-
* You may obtain a copy of the License at
|
|
868
|
-
*
|
|
869
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
870
|
-
*
|
|
871
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
872
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
873
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
874
|
-
* See the License for the specific language governing permissions and
|
|
875
|
-
* limitations under the License.
|
|
876
|
-
*/const B9=7*24*60*60*1e3;async function $9(t){const e=await H9(t.swRegistration,t.vapidKey),n={vapidKey:t.vapidKey,swScope:t.swRegistration.scope,endpoint:e.endpoint,auth:kl(e.getKey("auth")),p256dh:kl(e.getKey("p256dh"))},r=await M9(t.firebaseDependencies);if(r){if(U9(r.subscriptionOptions,n))return Date.now()>=r.createTime+B9?V9(t,{token:r.token,createTime:Date.now(),subscriptionOptions:n}):r.token;try{await j9(t.firebaseDependencies,r.token)}catch(i){console.warn(i)}return I1(t.firebaseDependencies,n)}else return I1(t.firebaseDependencies,n)}async function V9(t,e){try{const n=await N9(t.firebaseDependencies,e),r=Object.assign(Object.assign({},e),{token:n,createTime:Date.now()});return await fb(t.firebaseDependencies,r),n}catch(n){throw n}}async function I1(t,e){const r={token:await F9(t,e),createTime:Date.now(),subscriptionOptions:e};return await fb(t,r),r.token}async function H9(t,e){const n=await t.pushManager.getSubscription();return n||t.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:P9(e)})}function U9(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}/**
|
|
877
|
-
* @license
|
|
878
|
-
* Copyright 2020 Google LLC
|
|
879
|
-
*
|
|
880
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
881
|
-
* you may not use this file except in compliance with the License.
|
|
882
|
-
* You may obtain a copy of the License at
|
|
883
|
-
*
|
|
884
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
885
|
-
*
|
|
886
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
887
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
888
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
889
|
-
* See the License for the specific language governing permissions and
|
|
890
|
-
* limitations under the License.
|
|
891
|
-
*/function M1(t){const e={from:t.from,collapseKey:t.collapse_key,messageId:t.fcmMessageId};return W9(e,t),z9(e,t),Y9(e,t),e}function W9(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 z9(t,e){e.data&&(t.data=e.data)}function Y9(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 u=(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;u&&(t.fcmOptions.link=u);const c=(a=e.fcmOptions)===null||a===void 0?void 0:a.analytics_label;c&&(t.fcmOptions.analyticsLabel=c)}/**
|
|
892
|
-
* @license
|
|
893
|
-
* Copyright 2019 Google LLC
|
|
894
|
-
*
|
|
895
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
896
|
-
* you may not use this file except in compliance with the License.
|
|
897
|
-
* You may obtain a copy of the License at
|
|
898
|
-
*
|
|
899
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
900
|
-
*
|
|
901
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
902
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
903
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
904
|
-
* See the License for the specific language governing permissions and
|
|
905
|
-
* limitations under the License.
|
|
906
|
-
*/function G9(t){return typeof t=="object"&&!!t&&pP in t}/**
|
|
907
|
-
* @license
|
|
908
|
-
* Copyright 2019 Google LLC
|
|
909
|
-
*
|
|
910
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
911
|
-
* you may not use this file except in compliance with the License.
|
|
912
|
-
* You may obtain a copy of the License at
|
|
913
|
-
*
|
|
914
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
915
|
-
*
|
|
916
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
917
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
918
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
919
|
-
* See the License for the specific language governing permissions and
|
|
920
|
-
* limitations under the License.
|
|
921
|
-
*/q9("AzSCbw63g1R0nCw85jG8","Iaya3yLKwmgvh7cF0q4");function q9(t,e){const n=[];for(let r=0;r<t.length;r++)n.push(t.charAt(r)),r<e.length&&n.push(e.charAt(r));return n.join("")}/**
|
|
922
|
-
* @license
|
|
923
|
-
* Copyright 2019 Google LLC
|
|
924
|
-
*
|
|
925
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
926
|
-
* you may not use this file except in compliance with the License.
|
|
927
|
-
* You may obtain a copy of the License at
|
|
928
|
-
*
|
|
929
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
930
|
-
*
|
|
931
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
932
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
933
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
934
|
-
* See the License for the specific language governing permissions and
|
|
935
|
-
* limitations under the License.
|
|
936
|
-
*/function X9(t){if(!t||!t.options)throw Am("App Configuration Object");if(!t.name)throw Am("App Name");const e=["projectId","apiKey","appId","messagingSenderId"],{options:n}=t;for(const r of e)if(!n[r])throw Am(r);return{appName:t.name,projectId:n.projectId,apiKey:n.apiKey,appId:n.appId,senderId:n.messagingSenderId}}function Am(t){return Vi.create("missing-app-config-values",{valueName:t})}/**
|
|
937
|
-
* @license
|
|
938
|
-
* Copyright 2020 Google LLC
|
|
939
|
-
*
|
|
940
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
941
|
-
* you may not use this file except in compliance with the License.
|
|
942
|
-
* You may obtain a copy of the License at
|
|
943
|
-
*
|
|
944
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
945
|
-
*
|
|
946
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
947
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
948
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
949
|
-
* See the License for the specific language governing permissions and
|
|
950
|
-
* limitations under the License.
|
|
951
|
-
*/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()}}/**
|
|
952
|
-
* @license
|
|
953
|
-
* Copyright 2020 Google LLC
|
|
954
|
-
*
|
|
955
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
956
|
-
* you may not use this file except in compliance with the License.
|
|
957
|
-
* You may obtain a copy of the License at
|
|
958
|
-
*
|
|
959
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
960
|
-
*
|
|
961
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
962
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
963
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
964
|
-
* See the License for the specific language governing permissions and
|
|
965
|
-
* limitations under the License.
|
|
966
|
-
*/async function Z9(t){try{t.swRegistration=await navigator.serviceWorker.register(S9,{scope:T9}),t.swRegistration.update().catch(()=>{})}catch(e){throw Vi.create("failed-service-worker-registration",{browserErrorMessage:e==null?void 0:e.message})}}/**
|
|
967
|
-
* @license
|
|
968
|
-
* Copyright 2020 Google LLC
|
|
969
|
-
*
|
|
970
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
971
|
-
* you may not use this file except in compliance with the License.
|
|
972
|
-
* You may obtain a copy of the License at
|
|
973
|
-
*
|
|
974
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
975
|
-
*
|
|
976
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
977
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
978
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
979
|
-
* See the License for the specific language governing permissions and
|
|
980
|
-
* limitations under the License.
|
|
981
|
-
*/async function J9(t,e){if(!e&&!t.swRegistration&&await Z9(t),!(!e&&t.swRegistration)){if(!(e instanceof ServiceWorkerRegistration))throw Vi.create("invalid-sw-registration");t.swRegistration=e}}/**
|
|
982
|
-
* @license
|
|
983
|
-
* Copyright 2020 Google LLC
|
|
984
|
-
*
|
|
985
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
986
|
-
* you may not use this file except in compliance with the License.
|
|
987
|
-
* You may obtain a copy of the License at
|
|
988
|
-
*
|
|
989
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
990
|
-
*
|
|
991
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
992
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
993
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
994
|
-
* See the License for the specific language governing permissions and
|
|
995
|
-
* limitations under the License.
|
|
996
|
-
*/async function Q9(t,e){e?t.vapidKey=e:t.vapidKey||(t.vapidKey=hP)}/**
|
|
997
|
-
* @license
|
|
998
|
-
* Copyright 2020 Google LLC
|
|
999
|
-
*
|
|
1000
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1001
|
-
* you may not use this file except in compliance with the License.
|
|
1002
|
-
* You may obtain a copy of the License at
|
|
1003
|
-
*
|
|
1004
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1005
|
-
*
|
|
1006
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1007
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1008
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1009
|
-
* See the License for the specific language governing permissions and
|
|
1010
|
-
* limitations under the License.
|
|
1011
|
-
*/async function yP(t,e){if(!navigator)throw Vi.create("only-available-in-window");if(Notification.permission==="default"&&await Notification.requestPermission(),Notification.permission!=="granted")throw Vi.create("permission-blocked");return await Q9(t,e==null?void 0:e.vapidKey),await J9(t,e==null?void 0:e.serviceWorkerRegistration),$9(t)}/**
|
|
1012
|
-
* @license
|
|
1013
|
-
* Copyright 2019 Google LLC
|
|
1014
|
-
*
|
|
1015
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1016
|
-
* you may not use this file except in compliance with the License.
|
|
1017
|
-
* You may obtain a copy of the License at
|
|
1018
|
-
*
|
|
1019
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1020
|
-
*
|
|
1021
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1022
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1023
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1024
|
-
* See the License for the specific language governing permissions and
|
|
1025
|
-
* limitations under the License.
|
|
1026
|
-
*/async function eY(t,e,n){const r=tY(e);(await t.firebaseDependencies.analyticsProvider.get()).logEvent(r,{message_id:n[pP],message_name:n[E9],message_time:n[k9],message_device_time:Math.floor(Date.now()/1e3)})}function tY(t){switch(t){case Wd.NOTIFICATION_CLICKED:return"notification_open";case Wd.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}/**
|
|
1027
|
-
* @license
|
|
1028
|
-
* Copyright 2017 Google LLC
|
|
1029
|
-
*
|
|
1030
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1031
|
-
* you may not use this file except in compliance with the License.
|
|
1032
|
-
* You may obtain a copy of the License at
|
|
1033
|
-
*
|
|
1034
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1035
|
-
*
|
|
1036
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1037
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1038
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1039
|
-
* See the License for the specific language governing permissions and
|
|
1040
|
-
* limitations under the License.
|
|
1041
|
-
*/async function nY(t,e){const n=e.data;if(!n.isFirebaseMessaging)return;t.onMessageHandler&&n.messageType===Wd.PUSH_RECEIVED&&(typeof t.onMessageHandler=="function"?t.onMessageHandler(M1(n)):t.onMessageHandler.next(M1(n)));const r=n.data;G9(r)&&r[D9]==="1"&&await eY(t,n.messageType,r)}const L1="@firebase/messaging",F1="0.12.12";/**
|
|
1042
|
-
* @license
|
|
1043
|
-
* Copyright 2020 Google LLC
|
|
1044
|
-
*
|
|
1045
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1046
|
-
* you may not use this file except in compliance with the License.
|
|
1047
|
-
* You may obtain a copy of the License at
|
|
1048
|
-
*
|
|
1049
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1050
|
-
*
|
|
1051
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1052
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1053
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1054
|
-
* See the License for the specific language governing permissions and
|
|
1055
|
-
* limitations under the License.
|
|
1056
|
-
*/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=>yP(e,r)}};function oY(){Fc(new Ru("messaging",rY,"PUBLIC")),Fc(new Ru("messaging-internal",iY,"PRIVATE")),Su(L1,F1),Su(L1,F1,"esm2017")}/**
|
|
1057
|
-
* @license
|
|
1058
|
-
* Copyright 2020 Google LLC
|
|
1059
|
-
*
|
|
1060
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1061
|
-
* you may not use this file except in compliance with the License.
|
|
1062
|
-
* You may obtain a copy of the License at
|
|
1063
|
-
*
|
|
1064
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1065
|
-
*
|
|
1066
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1067
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1068
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1069
|
-
* See the License for the specific language governing permissions and
|
|
1070
|
-
* limitations under the License.
|
|
1071
|
-
*/async function sY(){try{await UD()}catch{return!1}return typeof window<"u"&&HD()&&C6()&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}/**
|
|
1072
|
-
* @license
|
|
1073
|
-
* Copyright 2020 Google LLC
|
|
1074
|
-
*
|
|
1075
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1076
|
-
* you may not use this file except in compliance with the License.
|
|
1077
|
-
* You may obtain a copy of the License at
|
|
1078
|
-
*
|
|
1079
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1080
|
-
*
|
|
1081
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1082
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1083
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1084
|
-
* See the License for the specific language governing permissions and
|
|
1085
|
-
* limitations under the License.
|
|
1086
|
-
*/function aY(t,e){if(!navigator)throw Vi.create("only-available-in-window");return t.onMessageHandler=e,()=>{t.onMessageHandler=null}}/**
|
|
1087
|
-
* @license
|
|
1088
|
-
* Copyright 2017 Google LLC
|
|
1089
|
-
*
|
|
1090
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1091
|
-
* you may not use this file except in compliance with the License.
|
|
1092
|
-
* You may obtain a copy of the License at
|
|
1093
|
-
*
|
|
1094
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1095
|
-
*
|
|
1096
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1097
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1098
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1099
|
-
* See the License for the specific language governing permissions and
|
|
1100
|
-
* limitations under the License.
|
|
1101
|
-
*/function lY(t=E8()){return sY().then(e=>{if(!e)throw Vi.create("unsupported-browser")},e=>{throw Vi.create("indexed-db-unsupported")}),sb(ib(t),"messaging").getImmediate()}async function uY(t,e){return t=ib(t),yP(t,e)}function cY(t,e){return t=ib(t),aY(t,e)}oY();exports.AuthContext=$v;exports.AuthProvider=qI;exports.CustomOpenList=X1;exports.CustomOpenListProvider=RI;exports.DateRangePicker=h6;exports.ERROR_MESSAGE=z1;exports.FavoriteMenu=V4;exports.GlobalMenu=t6;exports.IconComponent=TD;exports.InfiniteLoader=u6;exports.Language=Hv;exports.LogoutConfirmModal=N1;exports.PropTypes=As;exports.Q=w2;exports.SaasThemeProvider=zI;exports.StyleWrapper=Uv;exports.TranslationProvider=eL;exports._=r6;exports._assertThisInitialized=Ol;exports._extends=Nf;exports._extends$1=V5;exports._inheritsLoose=yD;exports._objectWithoutPropertiesLoose=Vv;exports.activeStyles=tb;exports.axiosInstance=aa;exports.clsx=Dl;exports.color=Ei;exports.commonjsGlobal=Ci;exports.createCustomTheme=J1;exports.getAugmentedNamespace=fM;exports.getMessagingInWindow=lY;exports.getToken=uY;exports.handleErrorAxios=q1;exports.initializeApp=YD;exports.lodashExports=LD;exports.login=Y1;exports.logout=G1;exports.notify=k2;exports.objectWithoutPropertiesLoose=cM;exports.onMessage=cY;exports.pushError=Gd;exports.pushSuccess=Gv;exports.pushWarning=E2;exports.responseInterceptor=_I;exports.search=KI;exports.setFavicon=Q1;exports.styles=n6;exports.translate=JM;exports.translationConfig=ZM;exports.updateFavoriteItems=rb;exports.useAuth=XI;exports.useCustomTranslation=KM;exports.useTheme=WI;exports.useTranslation=lT;exports.useTranslation$1=QM;
|