@ukpc-lib/react 0.10.29-dev.2 → 0.10.29-dev.3

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.
@@ -0,0 +1,1101 @@
1
+ var vY=require("./index.css");const We=require("react/jsx-runtime"),X=require("react"),UI=require("axios"),WI=require("moment"),ss=require("@mui/material"),kd=require("react-query");require("@r2wc/react-to-web-component");const Dp=require("react-router-dom"),zm=require("react-dom");function zI(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}function YI(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const Tn=zI(X),GI=`.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 R1({isOpen:e,onClose:t,onConfirm:n}){if(!e)return null;function r(i){var o;((o=i.target)==null?void 0:o.id)==="modal-wrapper"&&t()}return We.jsxs(We.Fragment,{children:[We.jsx("style",{type:"text/css",children:GI}),We.jsx("div",{onClick:r,className:"modal-overlay",id:"modal-wrapper",children:We.jsxs("div",{className:"modal-container",children:[We.jsx("h3",{className:"modal-title",children:"Log out"}),We.jsx("p",{className:"text-sm",children:"Are you sure want to log out?"}),We.jsxs("div",{className:"modal-footer",children:[We.jsx("button",{className:"modal-button cancel-btn",onClick:t,children:"Cancel"}),We.jsx("button",{onClick:n,className:"text-white confirm-btn modal-button",children:"Confirm"})]})]})})]})}const Ci={primary:"#93D500",primary100:"#F0F6E1",primary200:"#E5F5ED",primary300:"#93D500",primary400:"#009D4F",primary500:"#2E7D32",secondary:"#CC0066",secondaryDark:"#AE1857",textPrimary:"#292929",white:"#FFFFFF",grey100:"#FAFAFA",grey200:"#EEEEEE",grey300:"#DDDDDD",grey400:"#C5C5C5",grey500:"#BFBFBF",grey600:"#85858A",success:"#009D4F",successLight:"#E5F5ED",warning:"#FFB600",warningLight:"#FFF8E5",danger:"#E01B00",dangerLight:"#FCE8E5",dangerDark:"#BE1700",linkPrimary:"#007BFF",linkLight:"#007BFF10",headerBgColor:"#292929",headerTextColor:"#FFF",buttonText:"#292929",buttonHover:"#2E7D32"};function Jo(e){"@babel/helpers - typeof";return Jo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jo(e)}function ta(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qI(e,t){if(Jo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Jo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function I1(e){var t=qI(e,"string");return Jo(t)=="symbol"?t:t+""}function i0(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,I1(r.key),r)}}function na(e,t,n){return t&&i0(e.prototype,t),n&&i0(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _l(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qh(e,t){return Qh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Qh(e,t)}function _p(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qh(e,t)}function Ud(e,t){if(t&&(Jo(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _l(e)}function Ws(e){return Ws=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ws(e)}function zs(e,t,n){return(t=I1(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A1(e){if(Array.isArray(e))return e}function XI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function o0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function M1(e,t){if(e){if(typeof e=="string")return o0(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o0(e,t):void 0}}function L1(){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 KI(e){return A1(e)||XI(e)||M1(e)||L1()}function a0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function s0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?a0(Object(n),!0).forEach(function(r){zs(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var ZI={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,n){console&&console[t]&&console[t].apply(console,n)}},JI=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ta(this,e),this.init(t,n)}return na(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=n||ZI,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 e(this.logger,s0(s0({},{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 e(this.logger,n)}}]),e}(),$s=new JI,_u=function(){function e(){ta(this,e),this.observers={}}return na(e,[{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 s=[].concat(this.observers[n]);s.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))})}}}]),e}();function Qf(){var e,t,n=new Promise(function(r,i){e=r,t=i});return n.resolve=e,n.reject=t,n}function l0(e){return e==null?"":""+e}function QI(e,t,n){e.forEach(function(r){t[r]&&(n[r]=t[r])})}function Ym(e,t,n){function r(u){return u&&u.indexOf("###")>-1?u.replace(/###/g,"."):u}function i(){return!e||typeof e=="string"}for(var o=typeof t!="string"?[].concat(t):t.split(".");o.length>1;){if(i())return{};var s=r(o.shift());!e[s]&&n&&(e[s]=new n),Object.prototype.hasOwnProperty.call(e,s)?e=e[s]:e={}}return i()?{}:{obj:e,k:r(o.shift())}}function u0(e,t,n){var r=Ym(e,t,Object),i=r.obj,o=r.k;i[o]=n}function eA(e,t,n,r){var i=Ym(e,t,Object),o=i.obj,s=i.k;o[s]=o[s]||[],r&&(o[s]=o[s].concat(n)),r||o[s].push(n)}function ep(e,t){var n=Ym(e,t),r=n.obj,i=n.k;if(r)return r[i]}function tA(e,t,n){var r=ep(e,n);return r!==void 0?r:ep(t,n)}function F1(e,t,n){for(var r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):F1(e[r],t[r],n):e[r]=t[r]);return e}function df(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var nA={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function rA(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return nA[t]}):e}var Pp=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,iA=[" ",",","?","!",";"];function oA(e,t,n){t=t||"",n=n||"";var r=iA.filter(function(u){return t.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(e);if(!o){var s=e.indexOf(n);s>0&&!i.test(e.substring(0,s))&&(o=!0)}return o}function tp(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),i=e,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 s=2,u=r.slice(o,o+s).join(n),c=i[u];c===void 0&&r.length>o+s;)s++,u=r.slice(o,o+s).join(n),c=i[u];if(c===void 0)return;if(c===null)return null;if(t.endsWith(u)){if(typeof c=="string")return c;if(u&&typeof c[u]=="string")return c[u]}var d=r.slice(o+s).join(n);return d?tp(c,d,n):void 0}i=i[r[o]]}return i}}function c0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function hh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?c0(Object(n),!0).forEach(function(r){zs(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function aA(e){var t=sA();return function(){var r=Ws(e),i;if(t){var o=Ws(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Ud(this,i)}}function sA(){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 lA=function(e){_p(n,e);var t=aA(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return ta(this,n),i=t.call(this),Pp&&_u.call(_l(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 na(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,s){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,v=[i,o];s&&typeof s!="string"&&(v=v.concat(s)),s&&typeof s=="string"&&(v=v.concat(c?s.split(c):s)),i.indexOf(".")>-1&&(v=i.split("."));var p=ep(this.data,v);return p||!d||typeof s!="string"?p:tp(this.data&&this.data[i]&&this.data[i][o],s,c)}},{key:"addResource",value:function(i,o,s,u){var c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},d=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator,v=[i,o];s&&(v=v.concat(d?s.split(d):s)),i.indexOf(".")>-1&&(v=i.split("."),u=o,o=v[1]),this.addNamespaces(o),u0(this.data,v,u),c.silent||this.emit("added",i,o,s,u)}},{key:"addResources",value:function(i,o,s){var u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var c in s)(typeof s[c]=="string"||Object.prototype.toString.apply(s[c])==="[object Array]")&&this.addResource(i,o,c,s[c],{silent:!0});u.silent||this.emit("added",i,o,s)}},{key:"addResourceBundle",value:function(i,o,s,u,c){var d=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},v=[i,o];i.indexOf(".")>-1&&(v=i.split("."),u=s,s=o,o=v[1]),this.addNamespaces(o);var p=ep(this.data,v)||{};u?F1(p,s,c):p=hh(hh({},p),s),u0(this.data,v,p),d.silent||this.emit("added",i,o,s)}},{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"?hh(hh({},{}),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),s=o&&Object.keys(o)||[];return!!s.find(function(u){return o[u]&&Object.keys(o[u]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(_u),N1={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,n,r,i,o){var s=this;return t.forEach(function(u){s.processors[u]&&(n=s.processors[u].process(n,r,i,o))}),n}};function f0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Fi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?f0(Object(n),!0).forEach(function(r){zs(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function uA(e){var t=cA();return function(){var r=Ws(e),i;if(t){var o=Ws(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Ud(this,i)}}function cA(){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 d0={},h0=function(e){_p(n,e);var t=uA(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return ta(this,n),i=t.call(this),Pp&&_u.call(_l(i)),QI(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,_l(i)),i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.logger=$s.create("translator"),i}return na(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 s=this.resolve(i,o);return s&&s.res!==void 0}},{key:"extractFromKey",value:function(i,o){var s=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;s===void 0&&(s=":");var u=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,c=o.ns||this.options.defaultNS||[],d=s&&i.indexOf(s)>-1,v=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!oA(i,s,u);if(d&&!v){var p=i.match(this.interpolator.nestingRegexp);if(p&&p.length>0)return{key:i,namespaces:c};var S=i.split(s);(s!==u||s===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,s){var u=this;if(Jo(o)!=="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),Jo(o)==="object"&&(o=Fi({},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,v=this.extractFromKey(i[i.length-1],o),p=v.key,S=v.namespaces,T=S[S.length-1],P=o.lng||this.language,I=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(P&&P.toLowerCase()==="cimode"){if(I){var L=o.nsSeparator||this.options.nsSeparator;return c?{res:"".concat(T).concat(L).concat(p),usedKey:p,exactUsedKey:p,usedLng:P,usedNS:T}:"".concat(T).concat(L).concat(p)}return c?{res:p,usedKey:p,exactUsedKey:p,usedLng:P,usedNS:T}:p}var R=this.resolve(i,o),H=R&&R.res,W=R&&R.usedKey||p,te=R&&R.exactUsedKey||p,J=Object.prototype.toString.apply(H),de=["[object Number]","[object Function]","[object RegExp]"],x=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,ye=!this.i18nFormat||this.i18nFormat.handleAsObject,ue=typeof H!="string"&&typeof H!="boolean"&&typeof H!="number";if(ye&&H&&ue&&de.indexOf(J)<0&&!(typeof x=="string"&&J==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var Je=this.options.returnedObjectHandler?this.options.returnedObjectHandler(W,H,Fi(Fi({},o),{},{ns:S})):"key '".concat(p," (").concat(this.language,")' returned an object instead of string.");return c?(R.res=Je,R):Je}if(d){var Ne=J==="[object Array]",$e=Ne?[]:{},Ye=Ne?te:W;for(var qe in H)if(Object.prototype.hasOwnProperty.call(H,qe)){var pe="".concat(Ye).concat(d).concat(qe);$e[qe]=this.translate(pe,Fi(Fi({},o),{joinArrays:!1,ns:S})),$e[qe]===pe&&($e[qe]=H[qe])}H=$e}}else if(ye&&typeof x=="string"&&J==="[object Array]")H=H.join(x),H&&(H=this.extendTranslation(H,i,o,s));else{var Oe=!1,je=!1,Xe=o.count!==void 0&&typeof o.count!="string",at=n.hasDefaultValue(o),Ce=Xe?this.pluralResolver.getSuffix(P,o.count,o):"",Pe=o["defaultValue".concat(Ce)]||o.defaultValue;!this.isValidLookup(H)&&at&&(Oe=!0,H=Pe),this.isValidLookup(H)||(je=!0,H=p);var Ve=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,ze=Ve&&je?void 0:H,Re=at&&Pe!==H&&this.options.updateMissing;if(je||Oe||Re){if(this.logger.log(Re?"updateKey":"missingKey",P,T,p,Re?Pe:H),d){var Fe=this.resolve(p,Fi(Fi({},o),{},{keySeparator:!1}));Fe&&Fe.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 Ke=[],lt=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&lt&&lt[0])for(var mt=0;mt<lt.length;mt++)Ke.push(lt[mt]);else this.options.saveMissingTo==="all"?Ke=this.languageUtils.toResolveHierarchy(o.lng||this.language):Ke.push(o.lng||this.language);var wt=function(Et,ot,$t){var Ht=at&&$t!==H?$t:ze;u.options.missingKeyHandler?u.options.missingKeyHandler(Et,T,ot,Ht,Re,o):u.backendConnector&&u.backendConnector.saveMissing&&u.backendConnector.saveMissing(Et,T,ot,Ht,Re,o),u.emit("missingKey",Et,T,ot,H)};this.options.saveMissing&&(this.options.saveMissingPlurals&&Xe?Ke.forEach(function(vt){u.pluralResolver.getSuffixes(vt,o).forEach(function(Et){wt([vt],p+Et,o["defaultValue".concat(Et)]||Pe)})}):wt(Ke,p,Pe))}H=this.extendTranslation(H,i,o,R,s),je&&H===p&&this.options.appendNamespaceToMissingKey&&(H="".concat(T,":").concat(p)),(je||Oe)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?H=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(T,":").concat(p):p,Oe?H:void 0):H=this.options.parseMissingKeyHandler(H))}return c?(R.res=H,R):H}},{key:"extendTranslation",value:function(i,o,s,u,c){var d=this;if(this.i18nFormat&&this.i18nFormat.parse)i=this.i18nFormat.parse(i,Fi(Fi({},this.options.interpolation.defaultVariables),s),u.usedLng,u.usedNS,u.usedKey,{resolved:u});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init(Fi(Fi({},s),{interpolation:Fi(Fi({},this.options.interpolation),s.interpolation)}));var v=typeof i=="string"&&(s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),p;if(v){var S=i.match(this.interpolator.nestingRegexp);p=S&&S.length}var T=s.replace&&typeof s.replace!="string"?s.replace:s;if(this.options.interpolation.defaultVariables&&(T=Fi(Fi({},this.options.interpolation.defaultVariables),T)),i=this.interpolator.interpolate(i,T,s.lng||this.language,s),v){var P=i.match(this.interpolator.nestingRegexp),I=P&&P.length;p<I&&(s.nest=!1)}!s.lng&&this.options.compatibilityAPI!=="v1"&&u&&u.res&&(s.lng=u.usedLng),s.nest!==!1&&(i=this.interpolator.nest(i,function(){for(var H=arguments.length,W=new Array(H),te=0;te<H;te++)W[te]=arguments[te];return c&&c[0]===W[0]&&!s.context?(d.logger.warn("It seems you are nesting recursively key: ".concat(W[0]," in key: ").concat(o[0])),null):d.translate.apply(d,W.concat([o]))},s)),s.interpolation&&this.interpolator.reset()}var L=s.postProcess||this.options.postProcess,R=typeof L=="string"?[L]:L;return i!=null&&R&&R.length&&s.applyPostProcessor!==!1&&(i=N1.handle(R,i,o,this.options&&this.options.postProcessPassResolved?Fi({i18nResolved:u},s):s,this)),i}},{key:"resolve",value:function(i){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u,c,d,v,p;return typeof i=="string"&&(i=[i]),i.forEach(function(S){if(!o.isValidLookup(u)){var T=o.extractFromKey(S,s),P=T.key;c=P;var I=T.namespaces;o.options.fallbackNS&&(I=I.concat(o.options.fallbackNS));var L=s.count!==void 0&&typeof s.count!="string",R=L&&!s.ordinal&&s.count===0&&o.pluralResolver.shouldUseIntlApi(),H=s.context!==void 0&&(typeof s.context=="string"||typeof s.context=="number")&&s.context!=="",W=s.lngs?s.lngs:o.languageUtils.toResolveHierarchy(s.lng||o.language,s.fallbackLng);I.forEach(function(te){o.isValidLookup(u)||(p=te,!d0["".concat(W[0],"-").concat(te)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(p)&&(d0["".concat(W[0],"-").concat(te)]=!0,o.logger.warn('key "'.concat(c,'" for languages "').concat(W.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!!!")),W.forEach(function(J){if(!o.isValidLookup(u)){v=J;var de=[P];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(de,P,J,te,s);else{var x;L&&(x=o.pluralResolver.getSuffix(J,s.count,s));var ye="".concat(o.options.pluralSeparator,"zero");if(L&&(de.push(P+x),R&&de.push(P+ye)),H){var ue="".concat(P).concat(o.options.contextSeparator).concat(s.context);de.push(ue),L&&(de.push(ue+x),R&&de.push(ue+ye))}}for(var Je;Je=de.pop();)o.isValidLookup(u)||(d=Je,u=o.getResource(J,te,Je,s))}}))})}}),{res:u,usedKey:c,exactUsedKey:d,usedLng:v,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,s){var u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,o,s,u):this.resourceStore.getResource(i,o,s,u)}}],[{key:"hasDefaultValue",value:function(i){var o="defaultValue";for(var s in i)if(Object.prototype.hasOwnProperty.call(i,s)&&o===s.substring(0,o.length)&&i[s]!==void 0)return!0;return!1}}]),n}(_u);function Ig(e){return e.charAt(0).toUpperCase()+e.slice(1)}var p0=function(){function e(t){ta(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=$s.create("languageUtils")}return na(e,[{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]=Ig(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]=Ig(i[1].toLowerCase())),r.indexOf(i[2].toLowerCase())>-1&&(i[2]=Ig(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 s=r.formatLanguageCode(o);(!r.options.supportedLngs||r.isSupportedCode(s))&&(i=s)}}),!i&&this.options.supportedLngs&&n.forEach(function(o){if(!i){var s=r.getLanguagePartFromCode(o);if(r.isSupportedCode(s))return i=s;i=r.options.supportedLngs.find(function(u){if(u===s)return u;if(!(u.indexOf("-")<0&&s.indexOf("-")<0)&&u.indexOf(s)===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),s=[],u=function(d){d&&(i.isSupportedCode(d)?s.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){s.indexOf(c)<0&&u(i.formatLanguageCode(c))}),s}}]),e}(),fA=[{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}],dA={1:function(t){return+(t>1)},2:function(t){return+(t!=1)},3:function(t){return 0},4:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},5:function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},6:function(t){return t==1?0:t>=2&&t<=4?1:2},7:function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},8:function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},9:function(t){return+(t>=2)},10:function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},11:function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},12:function(t){return+(t%10!=1||t%100==11)},13:function(t){return+(t!==0)},14:function(t){return t==1?0:t==2?1:t==3?2:3},15:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},16:function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},17:function(t){return t==1||t%10==1&&t%100!=11?0:1},18:function(t){return t==0?0:t==1?1:2},19:function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},20:function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},21:function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},22:function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3}},hA=["v1","v2","v3"],g0={zero:0,one:1,two:2,few:3,many:4,other:5};function pA(){var e={};return fA.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:dA[t.fc]}})}),e}var gA=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ta(this,e),this.languageUtils=t,this.options=n,this.logger=$s.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=pA()}return na(e,[{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(s,u){return g0[s]-g0[u]}).map(function(s){return"".concat(r.options.prepend).concat(s)}):o.numbers.map(function(s){return r.getSuffix(n,s,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)),s=n.numbers[o];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(s===2?s="plural":s===1&&(s=""));var u=function(){return i.options.prepend&&s.toString()?i.options.prepend+s.toString():s.toString()};return this.options.compatibilityJSON==="v1"?s===1?"":typeof s=="number"?"_plural_".concat(s.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!hA.includes(this.options.compatibilityJSON)}}]),e}();function v0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function rs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?v0(Object(n),!0).forEach(function(r){zs(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function m0(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=tA(e,t,n);return!o&&i&&typeof n=="string"&&(o=tp(e,n,r),o===void 0&&(o=tp(t,n,r))),o}var vA=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ta(this,e),this.logger=$s.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(n){return n},this.init(t)}return na(e,[{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:rA,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?df(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?df(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?df(r.nestingPrefix):r.nestingPrefixEscaped||df("$t("),this.nestingSuffix=r.nestingSuffix?df(r.nestingSuffix):r.nestingSuffixEscaped||df(")"),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 s=this,u,c,d,v=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function p(L){return L.replace(/\$/g,"$$$$")}var S=function(R){if(R.indexOf(s.formatSeparator)<0){var H=m0(r,v,R,s.options.keySeparator,s.options.ignoreJSONStructure);return s.alwaysFormat?s.format(H,void 0,i,rs(rs(rs({},o),r),{},{interpolationkey:R})):H}var W=R.split(s.formatSeparator),te=W.shift().trim(),J=W.join(s.formatSeparator).trim();return s.format(m0(r,v,te,s.options.keySeparator,s.options.ignoreJSONStructure),J,i,rs(rs(rs({},o),r),{},{interpolationkey:te}))};this.resetRegExp();var T=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,P=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,I=[{regex:this.regexpUnescape,safeValue:function(R){return p(R)}},{regex:this.regexp,safeValue:function(R){return s.escapeValue?p(s.escape(R)):p(R)}}];return I.forEach(function(L){for(d=0;u=L.regex.exec(n);){var R=u[1].trim();if(c=S(R),c===void 0)if(typeof T=="function"){var H=T(n,u,o);c=typeof H=="string"?H:""}else if(o&&Object.prototype.hasOwnProperty.call(o,R))c="";else if(P){c=u[0];continue}else s.logger.warn("missed to pass in variable ".concat(R," for interpolating ").concat(n)),c="";else typeof c!="string"&&!s.useRawValueToEscape&&(c=l0(c));var W=L.safeValue(c);if(n=n.replace(u[0],W),P?(L.regex.lastIndex+=c.length,L.regex.lastIndex-=u[0].length):L.regex.lastIndex=0,d++,d>=s.maxReplaces)break}}),n}},{key:"nest",value:function(n,r){var i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,u,c;function d(T,P){var I=this.nestingOptionsSeparator;if(T.indexOf(I)<0)return T;var L=T.split(new RegExp("".concat(I,"[ ]*{"))),R="{".concat(L[1]);T=L[0],R=this.interpolate(R,c);var H=R.match(/'/g),W=R.match(/"/g);(H&&H.length%2===0&&!W||W.length%2!==0)&&(R=R.replace(/'/g,'"'));try{c=JSON.parse(R),P&&(c=rs(rs({},P),c))}catch(te){return this.logger.warn("failed parsing options string in nesting for key ".concat(T),te),"".concat(T).concat(I).concat(R)}return delete c.defaultValue,T}for(;s=this.nestingRegexp.exec(n);){var v=[];c=rs({},o),c=c.replace&&typeof c.replace!="string"?c.replace:c,c.applyPostProcessor=!1,delete c.defaultValue;var p=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){var S=s[1].split(this.formatSeparator).map(function(T){return T.trim()});s[1]=S.shift(),v=S,p=!0}if(u=r(d.call(this,s[1].trim(),c),c),u&&s[0]===n&&typeof u!="string")return u;typeof u!="string"&&(u=l0(u)),u||(this.logger.warn("missed to resolve ".concat(s[1]," for nesting ").concat(n)),u=""),p&&(u=v.reduce(function(T,P){return i.format(T,P,o.lng,rs(rs({},o),{},{interpolationkey:s[1].trim()}))},u.trim())),n=n.replace(s[0],u),this.regexp.lastIndex=0}return n}}]),e}();function y0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Cl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?y0(Object(n),!0).forEach(function(r){zs(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mA(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var r=e.split("(");t=r[0].toLowerCase().trim();var i=r[1].substring(0,r[1].length-1);if(t==="currency"&&i.indexOf(":")<0)n.currency||(n.currency=i.trim());else if(t==="relativetime"&&i.indexOf(":")<0)n.range||(n.range=i.trim());else{var o=i.split(";");o.forEach(function(s){if(s){var u=s.split(":"),c=KI(u),d=c[0],v=c.slice(1),p=v.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:t,formatOptions:n}}function hf(e){var t={};return function(r,i,o){var s=i+JSON.stringify(o),u=t[s];return u||(u=e(i,o),t[s]=u),u(r)}}var yA=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ta(this,e),this.logger=$s.create("formatter"),this.options=t,this.formats={number:hf(function(n,r){var i=new Intl.NumberFormat(n,Cl({},r));return function(o){return i.format(o)}}),currency:hf(function(n,r){var i=new Intl.NumberFormat(n,Cl(Cl({},r),{},{style:"currency"}));return function(o){return i.format(o)}}),datetime:hf(function(n,r){var i=new Intl.DateTimeFormat(n,Cl({},r));return function(o){return i.format(o)}}),relativetime:hf(function(n,r){var i=new Intl.RelativeTimeFormat(n,Cl({},r));return function(o){return i.format(o,r.range||"day")}}),list:hf(function(n,r){var i=new Intl.ListFormat(n,Cl({},r));return function(o){return i.format(o)}})},this.init(t)}return na(e,[{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()]=hf(r)}},{key:"format",value:function(n,r,i){var o=this,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=r.split(this.formatSeparator),c=u.reduce(function(d,v){var p=mA(v),S=p.formatName,T=p.formatOptions;if(o.formats[S]){var P=d;try{var I=s&&s.formatParams&&s.formatParams[s.interpolationkey]||{},L=I.locale||I.lng||s.locale||s.lng||i;P=o.formats[S](d,L,Cl(Cl(Cl({},T),s),I))}catch(R){o.logger.warn(R)}return P}else o.logger.warn("there was no format function for ".concat(S));return d},n);return c}}]),e}();function b0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function w0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?b0(Object(n),!0).forEach(function(r){zs(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bA(e){var t=wA();return function(){var r=Ws(e),i;if(t){var o=Ws(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Ud(this,i)}}function wA(){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 xA(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}var SA=function(e){_p(n,e);var t=bA(n);function n(r,i,o){var s,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return ta(this,n),s=t.call(this),Pp&&_u.call(_l(s)),s.backend=r,s.store=i,s.services=o,s.languageUtils=o.languageUtils,s.options=u,s.logger=$s.create("backendConnector"),s.waitingReads=[],s.maxParallelReads=u.maxParallelReads||10,s.readingCalls=0,s.maxRetries=u.maxRetries>=0?u.maxRetries:5,s.retryTimeout=u.retryTimeout>=1?u.retryTimeout:350,s.state={},s.queue=[],s.backend&&s.backend.init&&s.backend.init(o,u.backend,u),s}return na(n,[{key:"queueLoad",value:function(i,o,s,u){var c=this,d={},v={},p={},S={};return i.forEach(function(T){var P=!0;o.forEach(function(I){var L="".concat(T,"|").concat(I);!s.reload&&c.store.hasResourceBundle(T,I)?c.state[L]=2:c.state[L]<0||(c.state[L]===1?v[L]===void 0&&(v[L]=!0):(c.state[L]=1,P=!1,v[L]===void 0&&(v[L]=!0),d[L]===void 0&&(d[L]=!0),S[I]===void 0&&(S[I]=!0)))}),P||(p[T]=!0)}),(Object.keys(d).length||Object.keys(v).length)&&this.queue.push({pending:v,pendingCount:Object.keys(v).length,loaded:{},errors:[],callback:u}),{toLoad:Object.keys(d),pending:Object.keys(v),toLoadLanguages:Object.keys(p),toLoadNamespaces:Object.keys(S)}}},{key:"loaded",value:function(i,o,s){var u=i.split("|"),c=u[0],d=u[1];o&&this.emit("failedLoading",c,d,o),s&&this.store.addResourceBundle(c,d,s),this.state[i]=o?-1:2;var v={};this.queue.forEach(function(p){eA(p.loaded,[c],d),xA(p,i),o&&p.errors.push(o),p.pendingCount===0&&!p.done&&(Object.keys(p.loaded).forEach(function(S){v[S]||(v[S]={});var T=p.loaded[S];T.length&&T.forEach(function(P){v[S][P]===void 0&&(v[S][P]=!0)})}),p.done=!0,p.errors.length?p.callback(p.errors):p.callback())}),this.emit("loaded",v),this.queue=this.queue.filter(function(p){return!p.done})}},{key:"read",value:function(i,o,s){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,v=arguments.length>5?arguments[5]:void 0;if(!i.length)return v(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:o,fcName:s,tried:c,wait:d,callback:v});return}this.readingCalls++;var p=function(I,L){if(u.readingCalls--,u.waitingReads.length>0){var R=u.waitingReads.shift();u.read(R.lng,R.ns,R.fcName,R.tried,R.wait,R.callback)}if(I&&L&&c<u.maxRetries){setTimeout(function(){u.read.call(u,i,o,s,c+1,d*2,v)},d);return}v(I,L)},S=this.backend[s].bind(this.backend);if(S.length===2){try{var T=S(i,o);T&&typeof T.then=="function"?T.then(function(P){return p(null,P)}).catch(p):p(null,T)}catch(P){p(P)}return}return S(i,o,p)}},{key:"prepareLoading",value:function(i,o){var s=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(v){s.loadOne(v)})}},{key:"load",value:function(i,o,s){this.prepareLoading(i,o,{},s)}},{key:"reload",value:function(i,o,s){this.prepareLoading(i,o,{reload:!0},s)}},{key:"loadOne",value:function(i){var o=this,s=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(v,p){v&&o.logger.warn("".concat(s,"loading namespace ").concat(d," for language ").concat(c," failed"),v),!v&&p&&o.logger.log("".concat(s,"loaded namespace ").concat(d," for language ").concat(c),p),o.loaded(i,v,p)})}},{key:"saveMissing",value:function(i,o,s,u,c){var d=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},v=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(s,'" 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(!(s==null||s==="")){if(this.backend&&this.backend.create){var p=w0(w0({},d),{},{isUpdate:c}),S=this.backend.create.bind(this.backend);if(S.length<6)try{var T;S.length===5?T=S(i,o,s,u,p):T=S(i,o,s,u),T&&typeof T.then=="function"?T.then(function(P){return v(null,P)}).catch(v):v(null,T)}catch(P){v(P)}else S(i,o,s,u,v,p)}!i||!i[0]||this.store.addResource(i[0],o,s,u)}}}]),n}(_u);function x0(){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(t){var n={};if(Jo(t[1])==="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),Jo(t[2])==="object"||Jo(t[3])==="object"){var r=t[3]||t[2];Object.keys(r).forEach(function(i){n[i]=r[i]})}return n},interpolation:{escapeValue:!0,format:function(t,n,r,i){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function S0(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function T0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ls(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?T0(Object(n),!0).forEach(function(r){zs(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function TA(e){var t=CA();return function(){var r=Ws(e),i;if(t){var o=Ws(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Ud(this,i)}}function CA(){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 ph(){}function EA(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(n){typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}var np=function(e){_p(n,e);var t=TA(n);function n(){var r,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(ta(this,n),r=t.call(this),Pp&&_u.call(_l(r)),r.options=S0(i),r.services={},r.logger=$s,r.modules={external:[]},EA(_l(r)),o&&!r.isInitialized&&!i.isClone){if(!r.options.initImmediate)return r.init(i,o),Ud(r,_l(r));setTimeout(function(){r.init(i,o)},0)}return r}return na(n,[{key:"init",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;typeof o=="function"&&(s=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=x0();this.options=Ls(Ls(Ls({},u),this.options),S0(o)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=Ls(Ls({},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(R){return R?typeof R=="function"?new R:R:null}if(!this.options.isClone){this.modules.logger?$s.init(c(this.modules.logger),this.options):$s.init(null,this.options);var d;this.modules.formatter?d=this.modules.formatter:typeof Intl<"u"&&(d=yA);var v=new p0(this.options);this.store=new lA(this.options.resources,this.options);var p=this.services;p.logger=$s,p.resourceStore=this.store,p.languageUtils=v,p.pluralResolver=new gA(v,{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 vA(this.options),p.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},p.backendConnector=new SA(c(this.modules.backend),p.resourceStore,p,this.options),p.backendConnector.on("*",function(R){for(var H=arguments.length,W=new Array(H>1?H-1:0),te=1;te<H;te++)W[te-1]=arguments[te];i.emit.apply(i,[R].concat(W))}),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 h0(this.services,this.options),this.translator.on("*",function(R){for(var H=arguments.length,W=new Array(H>1?H-1:0),te=1;te<H;te++)W[te-1]=arguments[te];i.emit.apply(i,[R].concat(W))}),this.modules.external.forEach(function(R){R.init&&R.init(i)})}if(this.format=this.options.interpolation.format,s||(s=ph),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 T=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];T.forEach(function(R){i[R]=function(){var H;return(H=i.store)[R].apply(H,arguments)}});var P=["addResource","addResources","addResourceBundle","removeResourceBundle"];P.forEach(function(R){i[R]=function(){var H;return(H=i.store)[R].apply(H,arguments),i}});var I=Qf(),L=function(){var H=function(te,J){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(J),s(te,J)};if(i.languages&&i.options.compatibilityAPI!=="v1"&&!i.isInitialized)return H(null,i.t.bind(i));i.changeLanguage(i.options.lng,H)};return this.options.resources||!this.options.initImmediate?L():setTimeout(L,0),I}},{key:"loadResources",value:function(i){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ph,u=s,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=[],v=function(T){if(T){var P=o.services.languageUtils.toResolveHierarchy(T);P.forEach(function(I){d.indexOf(I)<0&&d.push(I)})}};if(c)v(c);else{var p=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);p.forEach(function(S){return v(S)})}this.options.preload&&this.options.preload.forEach(function(S){return v(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,s){var u=Qf();return i||(i=this.languages),o||(o=this.options.ns),s||(s=ph),this.services.backendConnector.reload(i,o,function(c){u.resolve(),s(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"&&N1.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 s=this.languages[o];if(!(["cimode","dev"].indexOf(s)>-1)&&this.store.hasLanguageSomeTranslations(s)){this.resolvedLanguage=s;break}}}},{key:"changeLanguage",value:function(i,o){var s=this;this.isLanguageChangingTo=i;var u=Qf();this.emit("languageChanging",i);var c=function(S){s.language=S,s.languages=s.services.languageUtils.toResolveHierarchy(S),s.resolvedLanguage=void 0,s.setResolvedLanguage(S)},d=function(S,T){T?(c(T),s.translator.changeLanguage(T),s.isLanguageChangingTo=void 0,s.emit("languageChanged",T),s.logger.log("languageChanged",T)):s.isLanguageChangingTo=void 0,u.resolve(function(){return s.t.apply(s,arguments)}),o&&o(S,function(){return s.t.apply(s,arguments)})},v=function(S){!i&&!S&&s.services.languageDetector&&(S=[]);var T=typeof S=="string"?S:s.services.languageUtils.getBestMatchFromCodes(S);T&&(s.language||c(T),s.translator.language||s.translator.changeLanguage(T),s.services.languageDetector&&s.services.languageDetector.cacheUserLanguage&&s.services.languageDetector.cacheUserLanguage(T)),s.loadResources(T,function(P){d(P,T)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?v(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(v):this.services.languageDetector.detect(v):v(i),u}},{key:"getFixedT",value:function(i,o,s){var u=this,c=function d(v,p){var S;if(Jo(p)!=="object"){for(var T=arguments.length,P=new Array(T>2?T-2:0),I=2;I<T;I++)P[I-2]=arguments[I];S=u.options.overloadTranslationOptionHandler([v,p].concat(P))}else S=Ls({},p);S.lng=S.lng||d.lng,S.lngs=S.lngs||d.lngs,S.ns=S.ns||d.ns,S.keyPrefix=S.keyPrefix||s||d.keyPrefix;var L=u.options.keySeparator||".",R;return S.keyPrefix&&Array.isArray(v)?R=v.map(function(H){return"".concat(S.keyPrefix).concat(L).concat(H)}):R=S.keyPrefix?"".concat(S.keyPrefix).concat(L).concat(v):v,u.t(R,S)};return typeof i=="string"?c.lng=i:c.lngs=i,c.ns=o,c.keyPrefix=s,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,s=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=s.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 v=function(T,P){var I=o.services.backendConnector.state["".concat(T,"|").concat(P)];return I===-1||I===2};if(s.precheck){var p=s.precheck(this,v);if(p!==void 0)return p}return!!(this.hasResourceBundle(u,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||v(u,i)&&(!c||v(d,i)))}},{key:"loadNamespaces",value:function(i,o){var s=this,u=Qf();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(function(c){s.options.ns.indexOf(c)<0&&s.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 s=Qf();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){s.resolve(),o&&o(d)}),s):(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"],s=this.services&&this.services.languageUtils||new p0(x0());return o.indexOf(s.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]:{},s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ph,u=Ls(Ls(Ls({},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(v){c[v]=i[v]}),c.services=Ls({},this.services),c.services.utils={hasLoadedNamespace:c.hasLoadedNamespace.bind(c)},c.translator=new h0(c.services,c.options),c.translator.on("*",function(v){for(var p=arguments.length,S=new Array(p>1?p-1:0),T=1;T<p;T++)S[T-1]=arguments[T];c.emit.apply(c,[v].concat(S))}),c.init(u,s),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}(_u);zs(np,"createInstance",function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new np(e,t)});var si=np.createInstance();si.createInstance=np.createInstance;si.createInstance;si.dir;si.init;si.loadResources;si.reloadResources;si.use;si.changeLanguage;si.getFixedT;var j1=si.t;si.exists;si.setDefaultNamespace;si.hasLoadedNamespace;si.loadNamespaces;si.loadLanguages;const B1={TOKEN_MALFORMED:"token_malformed",TOKEN_EXPIRED:"token_expired"},$1=e=>{window.location.href=`${e}/authentication/login`},V1=e=>{window.location.href=`${e}/authentication/logout`},Da=UI.create({withCredentials:!0});let Ag=!1,$v=[];const C0=e=>{$v.forEach(t=>{e?t.reject(e):t.resolve()}),$v=[]};function H1(e,t){var o,s,u,c,d,v,p,S,T;const n=e.config,r=((s=(o=e.response)==null?void 0:o.data)==null?void 0:s.errorMessage)||((c=(u=e.response)==null?void 0:u.data)==null?void 0:c.message),i=r===B1.TOKEN_EXPIRED;return((d=e.response)==null?void 0:d.status)===401&&i&&!n._retry?Ag?new Promise((P,I)=>{$v.push({resolve:P,reject:I})}).then(()=>Da(n)).catch(P=>Promise.reject(P)):(n._retry=!0,Ag=!0,Da.post("/authentication/api/v1/auth/refresh-token",void 0,{baseURL:window.env.AUTHEN_DOMAIN}).then(()=>(C0(null),Da(n))).catch(P=>(C0(P),Promise.reject(P))).finally(()=>{Ag=!1})):((v=e.response)==null?void 0:v.status)===401&&!i?$1(window.env.AUTHEN_DOMAIN):(((p=e.response)==null?void 0:p.status)===403?(S=t==null?void 0:t.handle403)==null||S.call(t,e):(!(t!=null&&t.disabledPushNotify)&&Wd(j1(`${r||"Something went wrong!"}`)),(T=t==null?void 0:t.handleOtherError)==null||T.call(t,e)),r&&e.response&&e.response.data&&(e.response.data.message=r),Promise.reject(e))}const kA=Da.interceptors.response.use(e=>e,async e=>H1(e)),U1=X.createContext({}),OA=({children:e})=>{const[t,n]=X.useState(!1),[r,i]=X.useState({all:{rows:[],total:0},unread:{rows:[],total:0}}),o=()=>{n(!t)},s=()=>{n(!1)};return We.jsx(U1.Provider,{value:{isOpen:t,toggleOpen:o,setShowModalFalse:s,notidata:r,setNotiData:i},children:e})};var W1={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},E0=X.createContext&&X.createContext(W1),DA=["attr","size","title"];function _A(e,t){if(e==null)return{};var n=PA(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function PA(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function rp(){return rp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rp.apply(this,arguments)}function k0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ip(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?k0(Object(n),!0).forEach(function(r){RA(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function RA(e,t,n){return t=IA(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IA(e){var t=AA(e,"string");return typeof t=="symbol"?t:t+""}function AA(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function z1(e){return e&&e.map((t,n)=>X.createElement(t.tag,ip({key:n},t.attr),z1(t.child)))}function Rp(e){return t=>X.createElement(MA,rp({attr:ip({},e.attr)},t),z1(e.child))}function MA(e){var t=n=>{var{attr:r,size:i,title:o}=e,s=_A(e,DA),u=i||n.size||"1em",c;return n.className&&(c=n.className),e.className&&(c=(c?c+" ":"")+e.className),X.createElement("svg",rp({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,s,{className:c,style:ip(ip({color:e.color||n.color},n.style),e.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),o&&X.createElement("title",null,o),e.children)};return E0!==void 0?X.createElement(E0.Consumer,null,n=>t(n)):t(W1)}function LA(e){return Rp({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:[]}]})(e)}function FA(e){return Rp({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:[]}]})(e)}const NA={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 Mg(e){return e+" !important"}const Y1=e=>{const t={...e.colors};return ss.createTheme({palette:{primary:{main:t.primary300,contrastText:t.textPrimary},secondary:{main:t.secondary,contrastText:t.textPrimary},warning:{main:t.warning,contrastText:t.textPrimary},error:{main:t.danger,contrastText:t.textPrimary}},typography:NA,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:t.primary300,color:t.buttonText,"&:hover":{backgroundColor:t.buttonHover||t.primary300},"&.Mui-disabled":{backgroundColor:t.grey200}}},{props:{variant:"contained",color:"error"},style:{color:t.white}},{props:{variant:"confirm"},style:{backgroundColor:t.danger,color:t.white,"&:hover":{backgroundColor:t.dangerDark},"&.Mui-disabled":{backgroundColor:t.grey200}}},{props:{variant:"cancel"},style:{backgroundColor:t.grey300,color:t.textPrimary,"&:hover":{backgroundColor:t.grey400}}},{props:{variant:"outlinedPrimary"},style:{color:t.primary500,border:"1px solid",borderColor:t.primary500,"&:hover":{backgroundColor:"inherit"}}},{props:{variant:"outLinedDanger"},style:{color:t.danger,border:"1px solid",borderColor:t.danger,"&:hover":{backgroundColor:"inherit"}}},{props:{size:"small"},style:{fontSize:"12px",lineHeight:"normal",borderRadius:"3px",padding:"4px 16px"}}]},MuiAppBar:{styleOverrides:{root:{backgroundColor:t.appBarBgColor,color:t.appBarColor}}},MuiSelect:{defaultProps:{MenuProps:{PaperProps:{sx:{boxShadow:"none",border:1,borderStyle:"solid",borderColor:t.grey300,mt:"5px"}},MenuListProps:{sx:{padding:"5px","& .MuiMenuItem-root":{fontWeight:400,minHeight:0,borderRadius:"5px","&:hover":{backgroundColor:t.grey100},"&.Mui-selected":{backgroundColor:t.primary200}}}}}},styleOverrides:{select:{padding:"9.94px 5px 9.94px 15px"}}},MuiMenuItem:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Mg(t.primary200),"&:hover":{backgroundColor:Mg(t.primary200)}}}}},MuiPaginationItem:{defaultProps:{components:{previous:LA,next:FA}},styleOverrides:{root:{"& svg":{width:"10px"},border:"none",fontSize:"14px",lineHeight:"1.5rem",borderRadius:"7px","&.Mui-selected":{backgroundColor:Mg(t.primary300+"1a")},"&.MuiPaginationItem-previousNext":{backgroundColor:t.grey200}}}},MuiChip:{styleOverrides:{root:{borderRadius:"5px",fontSize:"14px","& .MuiChip-label":{lineHeight:"normal"}},avatar:{width:"10px"},colorSuccess:{color:t.success,backgroundColor:t.successLight},colorWarning:{color:t.warning,backgroundColor:t.warningLight},colorError:{color:t.danger,backgroundColor:t.dangerLight},colorSecondary:{color:t.linkPrimary,backgroundColor:t.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:t.grey600},"& .detail-icon":{stroke:t.grey600},color:t.grey400,"&.Mui-selected":{color:t.primary400}}}},MuiTabs:{styleOverrides:{indicator:{backgroundColor:t.primary400}}},MuiDrawer:{defaultProps:{},styleOverrides:{root:{"&.MuiDrawer-paper":{overflowY:"unset"},"& .MuiDrawer-paper":{zIndex:9},"&.MuiPaper-root":{border:"none",background:t.grey100,pt:12,zIndex:9}}}},MuiTextField:{defaultProps:{InputProps:{sx:{"& .Mui-disabled":{background:t.grey200}}},InputLabelProps:{shrink:!0}},styleOverrides:{root:{backgroundColor:t.white,"& .MuiOutlinedInput-input":{padding:"0px 16px 0px 12px",fontWeight:400,height:40,fontSize:"14px",border:1,borderRadius:4,"&::placeholder":{color:t.grey600}},"& .MuiFormLabel-asterisk":{color:t.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 ${t.grey300}`}}}},MuiRadio:{defaultProps:{sx:{"&.MuiButtonBase-root":{padding:"5px"}}},styleOverrides:{root:{"& .MuiSvgIcon-root":{fontSize:16},color:t.grey600,"&.Mui-checked":{color:t.success},"&.Mui-disabled":{color:t.grey600}}}},MuiTooltip:{defaultProps:{placement:"top"},styleOverrides:{tooltip:{fontSize:"10px",backgroundColor:t.grey600,color:t.white,"& .MuiTooltip-arrow":{color:t.grey600}}}}}})};function jA(e,t){const n={...e};return t==null||t.forEach(r=>{r.children&&r.children.forEach(({key:i,color:o})=>{n[i]=o.trim()||Ci[i]})}),n}function G1(e){if(!e)return;let t=document.querySelector("link[rel*='icon']");t||(t=document.createElement("link"),t.rel="icon",document.head.appendChild(t)),t.href=e}function BA(e){var u,c,d;const{data:t,isFetching:n}=kd.useQuery(["customTheme"],()=>e!=null&&e.url?fetch(e.url).then(v=>v.json()).then(v=>(["image","favicon","icon"].forEach(p=>{var S;(S=v==null?void 0:v.theme)!=null&&S[p]&&(v.theme[p]+=`?v=${Date.now()}`)}),v)):void 0,{enabled:!!(e!=null&&e.url)&&(e==null?void 0:e.enabled),refetchOnWindowFocus:!1,cacheTime:0,onSuccess(v){var p;G1((p=v==null?void 0:v.theme)==null?void 0:p.favicon)}}),r=jA(Ci,(u=t==null?void 0:t.theme)==null?void 0:u.keyColor),i=Y1({colors:r}),o=(c=t==null?void 0:t.theme)==null?void 0:c.image,s=(d=t==null?void 0:t.theme)==null?void 0:d.icon;return{colors:r,theme:i,logo:o,icon:s,isFetching:n,themeDto:t==null?void 0:t.theme}}const q1=X.createContext({}),$A=()=>X.useContext(q1),VA=e=>{var o;const{children:t,brandTheme:n}=e,r=BA(n),i=((o=e.customTheme)==null?void 0:o.call(e,r.colors))||r.theme;return We.jsx(q1.Provider,{value:r,children:We.jsx(ss.ThemeProvider,{theme:i,children:t})})},HA=e=>{const t=kd.useQueryClient(),n=X.useMemo(()=>e.axiosInstance||Da,[e.axiosInstance]);window.env||(window.env={}),window.env.AUTHEN_DOMAIN=new URL(e.baseUrl).origin;const r=kd.useQuery({queryKey:["user"],refetchOnWindowFocus:!1,retry:!1,queryFn:()=>n.get(e.baseUrl+"/user-management/api/v1/users/my-account").then(i=>(window.user=i.data,i.data))});return X.useEffect(()=>{window.onpageshow=function(i){i.persisted&&t.invalidateQueries(["user"])}},[t]),r},UA=e=>{const t=kd.useQueryClient(),n=X.useMemo(()=>e.axiosInstance||Da,[e.axiosInstance]);window.env||(window.env={}),window.env.AUTHEN_DOMAIN=new URL(e.baseUrl).origin;const r=kd.useQuery({queryKey:["user-permissions"],refetchOnWindowFocus:!1,retry:!1,queryFn:()=>n.get(e.baseUrl+"/user-management/api/v1/users/my-account/permissions").then(i=>i.data)});return X.useEffect(()=>{window.onpageshow=function(i){i.persisted&&t.invalidateQueries(["user-permissions"])}},[t]),r},Gm=X.createContext({}),WA=e=>{const{children:t,baseUrl:n,axiosInstance:r}=e,i=new URL(n).origin,o=HA({axiosInstance:r,baseUrl:n}),s=UA({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?We.jsx(ss.Grid,{container:!0,justifyContent:"center",alignItems:"center",sx:{minHeight:"100vh"},children:We.jsx(ss.CircularProgress,{})}):We.jsx(Gm.Provider,{value:{user:o==null?void 0:o.data,login:u,logout:c,isFetching:o.isFetching,permissions:s==null?void 0:s.data},children:t})},zA=()=>X.useContext(Gm);function YA(e,t,n){return n.some(r=>{const i=e[r];return String(i).toLowerCase().includes(t.toLowerCase())})}var X1=[],GA=X1.forEach,qA=X1.slice;function XA(e){return GA.call(qA.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}var O0=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,KA=function(t,n,r){var i=r||{};i.path=i.path||"/";var o=encodeURIComponent(n),s="".concat(t,"=").concat(o);if(i.maxAge>0){var u=i.maxAge-0;if(Number.isNaN(u))throw new Error("maxAge should be a Number");s+="; Max-Age=".concat(Math.floor(u))}if(i.domain){if(!O0.test(i.domain))throw new TypeError("option domain is invalid");s+="; Domain=".concat(i.domain)}if(i.path){if(!O0.test(i.path))throw new TypeError("option path is invalid");s+="; Path=".concat(i.path)}if(i.expires){if(typeof i.expires.toUTCString!="function")throw new TypeError("option expires is invalid");s+="; Expires=".concat(i.expires.toUTCString())}if(i.httpOnly&&(s+="; HttpOnly"),i.secure&&(s+="; Secure"),i.sameSite){var c=typeof i.sameSite=="string"?i.sameSite.toLowerCase():i.sameSite;switch(c){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return s},D0={create:function(t,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=KA(t,encodeURIComponent(n),o)},read:function(t){for(var n="".concat(t,"="),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(t){this.create(t,"",-1)}},ZA={name:"cookie",lookup:function(t){var n;if(t.lookupCookie&&typeof document<"u"){var r=D0.read(t.lookupCookie);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupCookie&&typeof document<"u"&&D0.create(n.lookupCookie,t,n.cookieMinutes,n.cookieDomain,n.cookieOptions)}},JA={name:"querystring",lookup:function(t){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("&"),s=0;s<o.length;s++){var u=o[s].indexOf("=");if(u>0){var c=o[s].substring(0,u);c===t.lookupQuerystring&&(n=o[s].substring(u+1))}}}return n}},ed=null,_0=function(){if(ed!==null)return ed;try{ed=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{ed=!1}return ed},QA={name:"localStorage",lookup:function(t){var n;if(t.lookupLocalStorage&&_0()){var r=window.localStorage.getItem(t.lookupLocalStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupLocalStorage&&_0()&&window.localStorage.setItem(n.lookupLocalStorage,t)}},td=null,P0=function(){if(td!==null)return td;try{td=window!=="undefined"&&window.sessionStorage!==null;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{td=!1}return td},eM={name:"sessionStorage",lookup:function(t){var n;if(t.lookupSessionStorage&&P0()){var r=window.sessionStorage.getItem(t.lookupSessionStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupSessionStorage&&P0()&&window.sessionStorage.setItem(n.lookupSessionStorage,t)}},tM={name:"navigator",lookup:function(t){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}},nM={name:"htmlTag",lookup:function(t){var n,r=t.htmlTag||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},rM={name:"path",lookup:function(t){var n;if(typeof window<"u"){var r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(r instanceof Array)if(typeof t.lookupFromPathIndex=="number"){if(typeof r[t.lookupFromPathIndex]!="string")return;n=r[t.lookupFromPathIndex].replace("/","")}else n=r[0].replace("/","")}return n}},iM={name:"subdomain",lookup:function(t){var n=typeof t.lookupFromSubdomainIndex=="number"?t.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]}},K1=!1;try{document.cookie,K1=!0}catch{}var Z1=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];K1||Z1.splice(1,1);function oM(){return{order:Z1,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(t){return t}}}var J1=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ta(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return na(e,[{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=XA(r,this.options||{},oM()),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(ZA),this.addDetector(JA),this.addDetector(QA),this.addDetector(eM),this.addDetector(tM),this.addDetector(nM),this.addDetector(rM),this.addDetector(iM)}},{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 s=r.detectors[o].lookup(r.options);s&&typeof s=="string"&&(s=[s]),s&&(i=i.concat(s))}}),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)}))}}])}();J1.type="languageDetector";function qm(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}const aM=Object.freeze(Object.defineProperty({__proto__:null,default:qm},Symbol.toStringTag,{value:"Module"}));var Ti=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Mu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function sM(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}function lM(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];typeof n[0]=="string"&&(n[0]="react-i18next:: ".concat(n[0])),(e=console).warn.apply(e,n)}}var R0={};function Vv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&R0[t[0]]||(typeof t[0]=="string"&&(R0[t[0]]=new Date),lM.apply(void 0,t))}var Q1=function(t,n){return function(){if(t.isInitialized)n();else{var r=function i(){setTimeout(function(){t.off("initialized",i)},0),n()};t.on("initialized",r)}}};function I0(e,t,n){e.loadNamespaces(t,Q1(e,n))}function A0(e,t,n,r){typeof n=="string"&&(n=[n]),n.forEach(function(i){e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,Q1(e,r))}function uM(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=t.languages[0],i=t.options?t.options.fallbackLng:!1,o=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;var s=function(c,d){var v=t.services.backendConnector.state["".concat(c,"|").concat(d)];return v===-1||v===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!s(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||s(r,e)&&(!i||s(o,e)))}function cM(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!t.languages||!t.languages.length)return Vv("i18n.languages were undefined or empty",t.languages),!0;var r=t.options.ignoreJSONStructure!==void 0;return r?t.hasLoadedNamespace(e,{lng:n.lng,precheck:function(o,s){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&o.services.backendConnector.backend&&o.isLanguageChangingTo&&!s(o.isLanguageChangingTo,e))return!1}}):uM(e,t,n)}var fM=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,dM={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},hM=function(t){return dM[t]},pM=function(t){return t.replace(fM,hM)};function M0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function L0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?M0(Object(n),!0).forEach(function(r){zs(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Hv={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:pM};function gM(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Hv=L0(L0({},Hv),e)}function vM(){return Hv}var eT;function mM(e){eT=e}function yM(){return eT}var bM={type:"3rdParty",init:function(t){gM(t.options.react),mM(t)}},tT=X.createContext(),wM=function(){function e(){ta(this,e),this.usedNamespaces={}}return na(e,[{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)}}]),e}();function xM(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,u=[],c=!0,d=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(u.push(r.value),u.length!==t);c=!0);}catch(v){d=!0,i=v}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw i}}return u}}function SM(e,t){return A1(e)||xM(e,t)||M1(e,t)||L1()}function F0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Lg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?F0(Object(n),!0).forEach(function(r){zs(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var TM=function(t,n){var r=X.useRef();return X.useEffect(function(){r.current=n?r.current:t},[t,n]),r.current};function nT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.i18n,r=X.useContext(tT)||{},i=r.i18n,o=r.defaultNS,s=n||i||yM();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new wM),!s){Vv("You will need to pass in an i18next instance by using initReactI18next");var u=function(ue,Je){return typeof Je=="string"?Je:Je&&Jo(Je)==="object"&&typeof Je.defaultValue=="string"?Je.defaultValue:Array.isArray(ue)?ue[ue.length-1]:ue},c=[u,{},!1];return c.t=u,c.i18n={},c.ready=!1,c}s.options.react&&s.options.react.wait!==void 0&&Vv("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var d=Lg(Lg(Lg({},vM()),s.options.react),t),v=d.useSuspense,p=d.keyPrefix,S=e||o||s.options&&s.options.defaultNS;S=typeof S=="string"?[S]:S||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(S);var T=(s.isInitialized||s.initializedStoreOnce)&&S.every(function(ye){return cM(ye,s,d)});function P(){return s.getFixedT(t.lng||null,d.nsMode==="fallback"?S:S[0],p)}var I=X.useState(P),L=SM(I,2),R=L[0],H=L[1],W=S.join();t.lng&&(W="".concat(t.lng).concat(W));var te=TM(W),J=X.useRef(!0);X.useEffect(function(){var ye=d.bindI18n,ue=d.bindI18nStore;J.current=!0,!T&&!v&&(t.lng?A0(s,t.lng,S,function(){J.current&&H(P)}):I0(s,S,function(){J.current&&H(P)})),T&&te&&te!==W&&J.current&&H(P);function Je(){J.current&&H(P)}return ye&&s&&s.on(ye,Je),ue&&s&&s.store.on(ue,Je),function(){J.current=!1,ye&&s&&ye.split(" ").forEach(function(Ne){return s.off(Ne,Je)}),ue&&s&&ue.split(" ").forEach(function(Ne){return s.store.off(Ne,Je)})}},[s,W]);var de=X.useRef(!0);X.useEffect(function(){J.current&&!de.current&&H(P),de.current=!1},[s,p]);var x=[R,s,T];if(x.t=R,x.i18n=s,x.ready=T,T||!T&&!v)return x;throw new Promise(function(ye){t.lng?A0(s,t.lng,S,function(){return ye()}):I0(s,S,function(){return ye()})})}function CM(e){var t=e.i18n,n=e.defaultNS,r=e.children,i=X.useMemo(function(){return{i18n:t,defaultNS:n}},[t,n]);return X.createElement(tT.Provider,{value:i},r)}var rT=[],EM=rT.forEach,kM=rT.slice;function OM(e){return EM.call(kM.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}function DM(e){return e?typeof e=="function"?new e:e:null}function _M(){return{handleEmptyResourcesAsFailed:!0,cacheHitMode:"none"}}function N0(e,t,n,r){var i=e.read.bind(e);if(i.length===2){try{var o=i(t,n);o&&typeof o.then=="function"?o.then(function(s){return r(null,s)}).catch(r):r(null,o)}catch(s){r(s)}return}i(t,n,r)}var iT=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};ta(this,e),this.backends=[],this.type="backend",this.allOptions=r,this.init(t,n)}return na(e,[{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=OM(i,this.options||{},_M()),this.allOptions=o,this.options.backends&&this.options.backends.forEach(function(s,u){r.backends[u]=r.backends[u]||DM(s),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,s=this.backends.length,u=function d(v){if(v>=s)return i(new Error("non of the backend loaded data",!0));var p=v===s-1,S=o.options.handleEmptyResourcesAsFailed&&!p?0:-1,T=o.backends[v];T.read?N0(T,n,r,function(P,I,L){if(!P&&I&&Object.keys(I).length>S){if(i(null,I,v),c(v-1,I),T.save&&o.options.cacheHitMode&&["refresh","refreshAndUpdateStore"].indexOf(o.options.cacheHitMode)>-1){if(L&&o.options.refreshExpirationTime&&L+o.options.refreshExpirationTime>Date.now())return;var R=o.backends[v+1];R&&R.read&&N0(R,n,r,function(H,W){H||W&&(Object.keys(W).length<=S||(c(v,W),o.options.cacheHitMode==="refreshAndUpdateStore"&&o.services&&o.services.resourceStore&&o.services.resourceStore.addResourceBundle(n,r,W)))})}}else d(v+1)}):d(v+1)},c=function d(v,p){if(!(v<0)){var S=o.backends[v];S.save&&S.save(n,r,p),d(v-1,p)}};u(0)}},{key:"create",value:function(n,r,i,o){var s=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 v;d.length===5?v=d(n,r,i,o,u):v=d(n,r,i,o),v&&typeof v.then=="function"?v.then(function(p){return s(null,p)}).catch(s):s(null,v)}catch(p){s(p)}return}d(n,r,i,o,s,u)}})}},{key:"reload",value:function(){var n=this,r=this.services,i=r.backendConnector,o=r.languageUtils,s=r.logger,u=i.language;if(!(u&&u.toLowerCase()==="cimode")){var c=[],d=function(p){var S=o.toResolveHierarchy(p);S.forEach(function(T){c.indexOf(T)<0&&c.push(T)})};d(u),this.allOptions.preload&&this.allOptions.preload.forEach(function(v){return d(v)}),c.forEach(function(v){n.allOptions.ns.forEach(function(p){i.read(v,p,"read",null,null,function(S,T){S&&s.warn("loading namespace ".concat(p," for language ").concat(v," failed"),S),!S&&T&&s.log("loaded namespace ".concat(p," for language ").concat(v),T),i.loaded("".concat(v,"|").concat(p),S,T)})})})}}}]),e}();iT.type="backend";function Uv(e){"@babel/helpers - typeof";return Uv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uv(e)}function oT(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":Uv(XMLHttpRequest))==="object"}function PM(e){return!!e&&typeof e.then=="function"}function RM(e){return PM(e)?e:Promise.resolve(e)}function IM(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Wv={exports:{}},gh={exports:{}},j0;function AM(){return j0||(j0=1,function(e,t){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof Ti<"u"&&Ti,r=function(){function o(){this.fetch=!1,this.DOMException=n.DOMException}return o.prototype=n,new o}();(function(o){(function(s){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(pe){return pe&&DataView.prototype.isPrototypeOf(pe)}if(c.arrayBuffer)var v=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],p=ArrayBuffer.isView||function(pe){return pe&&v.indexOf(Object.prototype.toString.call(pe))>-1};function S(pe){if(typeof pe!="string"&&(pe=String(pe)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(pe)||pe==="")throw new TypeError('Invalid character in header field name: "'+pe+'"');return pe.toLowerCase()}function T(pe){return typeof pe!="string"&&(pe=String(pe)),pe}function P(pe){var Oe={next:function(){var je=pe.shift();return{done:je===void 0,value:je}}};return c.iterable&&(Oe[Symbol.iterator]=function(){return Oe}),Oe}function I(pe){this.map={},pe instanceof I?pe.forEach(function(Oe,je){this.append(je,Oe)},this):Array.isArray(pe)?pe.forEach(function(Oe){this.append(Oe[0],Oe[1])},this):pe&&Object.getOwnPropertyNames(pe).forEach(function(Oe){this.append(Oe,pe[Oe])},this)}I.prototype.append=function(pe,Oe){pe=S(pe),Oe=T(Oe);var je=this.map[pe];this.map[pe]=je?je+", "+Oe:Oe},I.prototype.delete=function(pe){delete this.map[S(pe)]},I.prototype.get=function(pe){return pe=S(pe),this.has(pe)?this.map[pe]:null},I.prototype.has=function(pe){return this.map.hasOwnProperty(S(pe))},I.prototype.set=function(pe,Oe){this.map[S(pe)]=T(Oe)},I.prototype.forEach=function(pe,Oe){for(var je in this.map)this.map.hasOwnProperty(je)&&pe.call(Oe,this.map[je],je,this)},I.prototype.keys=function(){var pe=[];return this.forEach(function(Oe,je){pe.push(je)}),P(pe)},I.prototype.values=function(){var pe=[];return this.forEach(function(Oe){pe.push(Oe)}),P(pe)},I.prototype.entries=function(){var pe=[];return this.forEach(function(Oe,je){pe.push([je,Oe])}),P(pe)},c.iterable&&(I.prototype[Symbol.iterator]=I.prototype.entries);function L(pe){if(pe.bodyUsed)return Promise.reject(new TypeError("Already read"));pe.bodyUsed=!0}function R(pe){return new Promise(function(Oe,je){pe.onload=function(){Oe(pe.result)},pe.onerror=function(){je(pe.error)}})}function H(pe){var Oe=new FileReader,je=R(Oe);return Oe.readAsArrayBuffer(pe),je}function W(pe){var Oe=new FileReader,je=R(Oe);return Oe.readAsText(pe),je}function te(pe){for(var Oe=new Uint8Array(pe),je=new Array(Oe.length),Xe=0;Xe<Oe.length;Xe++)je[Xe]=String.fromCharCode(Oe[Xe]);return je.join("")}function J(pe){if(pe.slice)return pe.slice(0);var Oe=new Uint8Array(pe.byteLength);return Oe.set(new Uint8Array(pe)),Oe.buffer}function de(){return this.bodyUsed=!1,this._initBody=function(pe){this.bodyUsed=this.bodyUsed,this._bodyInit=pe,pe?typeof pe=="string"?this._bodyText=pe:c.blob&&Blob.prototype.isPrototypeOf(pe)?this._bodyBlob=pe:c.formData&&FormData.prototype.isPrototypeOf(pe)?this._bodyFormData=pe:c.searchParams&&URLSearchParams.prototype.isPrototypeOf(pe)?this._bodyText=pe.toString():c.arrayBuffer&&c.blob&&d(pe)?(this._bodyArrayBuffer=J(pe.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(pe)||p(pe))?this._bodyArrayBuffer=J(pe):this._bodyText=pe=Object.prototype.toString.call(pe):this._bodyText="",this.headers.get("content-type")||(typeof pe=="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(pe)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},c.blob&&(this.blob=function(){var pe=L(this);if(pe)return pe;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 pe=L(this);return pe||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else return this.blob().then(H)}),this.text=function(){var pe=L(this);if(pe)return pe;if(this._bodyBlob)return W(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(te(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(Je)}),this.json=function(){return this.text().then(JSON.parse)},this}var x=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function ye(pe){var Oe=pe.toUpperCase();return x.indexOf(Oe)>-1?Oe:pe}function ue(pe,Oe){if(!(this instanceof ue))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');Oe=Oe||{};var je=Oe.body;if(pe instanceof ue){if(pe.bodyUsed)throw new TypeError("Already read");this.url=pe.url,this.credentials=pe.credentials,Oe.headers||(this.headers=new I(pe.headers)),this.method=pe.method,this.mode=pe.mode,this.signal=pe.signal,!je&&pe._bodyInit!=null&&(je=pe._bodyInit,pe.bodyUsed=!0)}else this.url=String(pe);if(this.credentials=Oe.credentials||this.credentials||"same-origin",(Oe.headers||!this.headers)&&(this.headers=new I(Oe.headers)),this.method=ye(Oe.method||this.method||"GET"),this.mode=Oe.mode||this.mode||null,this.signal=Oe.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&je)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(je),(this.method==="GET"||this.method==="HEAD")&&(Oe.cache==="no-store"||Oe.cache==="no-cache")){var Xe=/([?&])_=[^&]*/;if(Xe.test(this.url))this.url=this.url.replace(Xe,"$1_="+new Date().getTime());else{var at=/\?/;this.url+=(at.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}ue.prototype.clone=function(){return new ue(this,{body:this._bodyInit})};function Je(pe){var Oe=new FormData;return pe.trim().split("&").forEach(function(je){if(je){var Xe=je.split("="),at=Xe.shift().replace(/\+/g," "),Ce=Xe.join("=").replace(/\+/g," ");Oe.append(decodeURIComponent(at),decodeURIComponent(Ce))}}),Oe}function Ne(pe){var Oe=new I,je=pe.replace(/\r?\n[\t ]+/g," ");return je.split("\r").map(function(Xe){return Xe.indexOf(`
4
+ `)===0?Xe.substr(1,Xe.length):Xe}).forEach(function(Xe){var at=Xe.split(":"),Ce=at.shift().trim();if(Ce){var Pe=at.join(":").trim();Oe.append(Ce,Pe)}}),Oe}de.call(ue.prototype);function $e(pe,Oe){if(!(this instanceof $e))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');Oe||(Oe={}),this.type="default",this.status=Oe.status===void 0?200:Oe.status,this.ok=this.status>=200&&this.status<300,this.statusText=Oe.statusText===void 0?"":""+Oe.statusText,this.headers=new I(Oe.headers),this.url=Oe.url||"",this._initBody(pe)}de.call($e.prototype),$e.prototype.clone=function(){return new $e(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new I(this.headers),url:this.url})},$e.error=function(){var pe=new $e(null,{status:0,statusText:""});return pe.type="error",pe};var Ye=[301,302,303,307,308];$e.redirect=function(pe,Oe){if(Ye.indexOf(Oe)===-1)throw new RangeError("Invalid status code");return new $e(null,{status:Oe,headers:{location:pe}})},s.DOMException=u.DOMException;try{new s.DOMException}catch{s.DOMException=function(Oe,je){this.message=Oe,this.name=je;var Xe=Error(Oe);this.stack=Xe.stack},s.DOMException.prototype=Object.create(Error.prototype),s.DOMException.prototype.constructor=s.DOMException}function qe(pe,Oe){return new Promise(function(je,Xe){var at=new ue(pe,Oe);if(at.signal&&at.signal.aborted)return Xe(new s.DOMException("Aborted","AbortError"));var Ce=new XMLHttpRequest;function Pe(){Ce.abort()}Ce.onload=function(){var ze={status:Ce.status,statusText:Ce.statusText,headers:Ne(Ce.getAllResponseHeaders()||"")};ze.url="responseURL"in Ce?Ce.responseURL:ze.headers.get("X-Request-URL");var Re="response"in Ce?Ce.response:Ce.responseText;setTimeout(function(){je(new $e(Re,ze))},0)},Ce.onerror=function(){setTimeout(function(){Xe(new TypeError("Network request failed"))},0)},Ce.ontimeout=function(){setTimeout(function(){Xe(new TypeError("Network request failed"))},0)},Ce.onabort=function(){setTimeout(function(){Xe(new s.DOMException("Aborted","AbortError"))},0)};function Ve(ze){try{return ze===""&&u.location.href?u.location.href:ze}catch{return ze}}Ce.open(at.method,Ve(at.url),!0),at.credentials==="include"?Ce.withCredentials=!0:at.credentials==="omit"&&(Ce.withCredentials=!1),"responseType"in Ce&&(c.blob?Ce.responseType="blob":c.arrayBuffer&&at.headers.get("Content-Type")&&at.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(Ce.responseType="arraybuffer")),Oe&&typeof Oe.headers=="object"&&!(Oe.headers instanceof I)?Object.getOwnPropertyNames(Oe.headers).forEach(function(ze){Ce.setRequestHeader(ze,T(Oe.headers[ze]))}):at.headers.forEach(function(ze,Re){Ce.setRequestHeader(Re,ze)}),at.signal&&(at.signal.addEventListener("abort",Pe),Ce.onreadystatechange=function(){Ce.readyState===4&&at.signal.removeEventListener("abort",Pe)}),Ce.send(typeof at._bodyInit>"u"?null:at._bodyInit)})}return qe.polyfill=!0,u.fetch||(u.fetch=qe,u.Headers=I,u.Request=ue,u.Response=$e),s.Headers=I,s.Request=ue,s.Response=$e,s.fetch=qe,s})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=n.fetch?n:r;t=i.fetch,t.default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t}(gh,gh.exports)),gh.exports}(function(e,t){var n;if(typeof fetch=="function"&&(typeof Ti<"u"&&Ti.fetch?n=Ti.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof IM<"u"&&typeof window>"u"){var r=n||AM();r.default&&(r=r.default),t.default=r,e.exports=t.default}})(Wv,Wv.exports);var aT=Wv.exports;const sT=Mu(aT),B0=YI({__proto__:null,default:sT},[aT]);function $0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function V0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$0(Object(n),!0).forEach(function(r){MM(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function MM(e,t,n){return(t=LM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LM(e){var t=FM(e,"string");return Ic(t)=="symbol"?t:t+""}function FM(e,t){if(Ic(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ic(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ic(e){"@babel/helpers - typeof";return Ic=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ic(e)}var Pl;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?Pl=global.fetch:typeof window<"u"&&window.fetch?Pl=window.fetch:Pl=fetch);var Od;oT()&&(typeof global<"u"&&global.XMLHttpRequest?Od=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(Od=window.XMLHttpRequest));var op;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?op=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(op=window.ActiveXObject));!Pl&&B0&&!Od&&!op&&(Pl=sT||B0);typeof Pl!="function"&&(Pl=void 0);var zv=function(t,n){if(n&&Ic(n)==="object"){var r="";for(var i in n)r+="&"+encodeURIComponent(i)+"="+encodeURIComponent(n[i]);if(!r)return t;t=t+(t.indexOf("?")!==-1?"&":"?")+r.slice(1)}return t},H0=function(t,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 s=i(t,n);if(s instanceof Promise){s.then(o).catch(r);return}}typeof fetch=="function"?fetch(t,n).then(o).catch(r):Pl(t,n).then(o).catch(r)},U0=!1,NM=function(t,n,r,i){t.queryStringParams&&(n=zv(n,t.queryStringParams));var o=V0({},typeof t.customHeaders=="function"?t.customHeaders():t.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 s=typeof t.requestOptions=="function"?t.requestOptions(r):t.requestOptions,u=V0({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:o},U0?{}:s),c=typeof t.alternateFetch=="function"&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{H0(n,u,i,c)}catch(d){if(!s||Object.keys(s).length===0||!d.message||d.message.indexOf("not implemented")<0)return i(d);try{Object.keys(s).forEach(function(v){delete u[v]}),H0(n,u,i,c),U0=!0}catch(v){i(v)}}},jM=function(t,n,r,i){r&&Ic(r)==="object"&&(r=zv("",r).slice(1)),t.queryStringParams&&(n=zv(n,t.queryStringParams));try{var o;Od?o=new Od:o=new op("MSXML2.XMLHTTP.3.0"),o.open(r?"POST":"GET",n,1),t.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!t.withCredentials,r&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var s=t.customHeaders;if(s=typeof s=="function"?s():s,s)for(var u in s)o.setRequestHeader(u,s[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)}},BM=function(t,n,r,i){if(typeof r=="function"&&(i=r,r=void 0),i=i||function(){},Pl&&n.indexOf("file:")!==0)return NM(t,n,r,i);if(oT()||typeof ActiveXObject=="function")return jM(t,n,r,i);i(new Error("No fetch and no xhr implementation found!"))};function Rf(e){"@babel/helpers - typeof";return Rf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rf(e)}function W0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Fg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?W0(Object(n),!0).forEach(function(r){lT(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $M(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function z0(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,uT(r.key),r)}}function VM(e,t,n){return t&&z0(e.prototype,t),n&&z0(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function lT(e,t,n){return(t=uT(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uT(e){var t=HM(e,"string");return Rf(t)=="symbol"?t:t+""}function HM(e,t){if(Rf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Rf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var UM=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 lT({},r,i||"")},parseLoadPayload:function(n,r){},request:BM,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},cT=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};$M(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}return VM(e,[{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=Fg(Fg(Fg({},UM()),this.options||{}),i),this.allOptions=o,this.services&&this.options.reloadInterval){var s=setInterval(function(){return r.reload()},this.options.reloadInterval);Rf(s)==="object"&&typeof s.unref=="function"&&s.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,s){var u=this,c=this.options.loadPath;typeof this.options.loadPath=="function"&&(c=this.options.loadPath(n,i)),c=RM(c),c.then(function(d){if(!d)return s(null,{});var v=u.services.interpolator.interpolate(d,{lng:n.join("+"),ns:i.join("+")});u.loadUrl(v,s,r,o)})}},{key:"loadUrl",value:function(n,r,i,o){var s=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(v,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&&v&&v.message){var S=v.message.toLowerCase(),T=["failed","fetch","network","load"].find(function(L){return S.indexOf(L)>-1});if(T)return r("failed loading "+n+": "+v.message,!0)}if(v)return r(v,!1);var P,I;try{typeof p.data=="string"?P=s.options.parse(p.data,i,o):P=p.data}catch{I="failed parsing "+n+" to json"}if(I)return r(I,!1);r(null,P)})}},{key:"create",value:function(n,r,i,o,s){var u=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var c=this.options.parsePayload(r,i,o),d=0,v=[],p=[];n.forEach(function(S){var T=u.options.addPath;typeof u.options.addPath=="function"&&(T=u.options.addPath(S,r));var P=u.services.interpolator.interpolate(T,{lng:S,ns:r});u.options.request(u.options,P,c,function(I,L){d+=1,v.push(I),p.push(L),d===n.length&&typeof s=="function"&&s(v,p)})})}}},{key:"reload",value:function(){var n=this,r=this.services,i=r.backendConnector,o=r.languageUtils,s=r.logger,u=i.language;if(!(u&&u.toLowerCase()==="cimode")){var c=[],d=function(p){var S=o.toResolveHierarchy(p);S.forEach(function(T){c.indexOf(T)<0&&c.push(T)})};d(u),this.allOptions.preload&&this.allOptions.preload.forEach(function(v){return d(v)}),c.forEach(function(v){n.allOptions.ns.forEach(function(p){i.read(v,p,"read",null,null,function(S,T){S&&s.warn("loading namespace ".concat(p," for language ").concat(v," failed"),S),!S&&T&&s.log("loaded namespace ".concat(p," for language ").concat(v),T),i.loaded("".concat(v,"|").concat(p),S,T)})})})}}}])}();cT.type="backend";var Xm=(e=>(e.en="en",e.de="de",e))(Xm||{});const WM={en:"English",de:"German"};si.use(iT).use(bM).use(J1).init({initImmediate:!0,ns:["translation"],fallbackLng:Object.keys(WM),fallbackNS:"translation",partialBundledLanguages:!0,resources:{},interpolation:{escapeValue:!1},backend:{backends:[cT],backendOptions:[{loadPath:()=>{var t,n,r;if((t=window==null?void 0:window.env)!=null&&t.TRANSLATION_URL)return`${window.env.TRANSLATION_URL}/{{lng}}`;const e=((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",e),`${e}/translations/{{lng}}`},crossDomain:!0,cacheHitMode:"refresh"}]}});function zM(){const[e,t]=X.useState();return X.useEffect(()=>{const n=localStorage.getItem("language");t(n||Xm.en)},[]),{language:e,setLanguage:t}}const fT=X.createContext({}),YM=()=>X.useContext(fT),GM=si,qM=j1,XM=()=>nT(),KM=({children:e})=>{const t=zM();return We.jsx(fT.Provider,{value:t,children:We.jsx(CM,{i18n:si,children:e})})},ZM=`*,: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 Km({children:e,styles:t=[],...n}){return We.jsxs("div",{...n,children:[[ZM,...t].map((r,i)=>We.jsx("style",{type:"text/css",children:r},i)),e]})}function JM(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Zm=JM,QM=typeof Ti=="object"&&Ti&&Ti.Object===Object&&Ti,eL=QM,tL=eL,nL=typeof self=="object"&&self&&self.Object===Object&&self,rL=tL||nL||Function("return this")(),dT=rL,iL=dT,oL=function(){return iL.Date.now()},aL=oL,sL=/\s/;function lL(e){for(var t=e.length;t--&&sL.test(e.charAt(t)););return t}var uL=lL,cL=uL,fL=/^\s+/;function dL(e){return e&&e.slice(0,cL(e)+1).replace(fL,"")}var hL=dL,pL=dT,gL=pL.Symbol,hT=gL,Y0=hT,pT=Object.prototype,vL=pT.hasOwnProperty,mL=pT.toString,nd=Y0?Y0.toStringTag:void 0;function yL(e){var t=vL.call(e,nd),n=e[nd];try{e[nd]=void 0;var r=!0}catch{}var i=mL.call(e);return r&&(t?e[nd]=n:delete e[nd]),i}var bL=yL,wL=Object.prototype,xL=wL.toString;function SL(e){return xL.call(e)}var TL=SL,G0=hT,CL=bL,EL=TL,kL="[object Null]",OL="[object Undefined]",q0=G0?G0.toStringTag:void 0;function DL(e){return e==null?e===void 0?OL:kL:q0&&q0 in Object(e)?CL(e):EL(e)}var _L=DL;function PL(e){return e!=null&&typeof e=="object"}var RL=PL,IL=_L,AL=RL,ML="[object Symbol]";function LL(e){return typeof e=="symbol"||AL(e)&&IL(e)==ML}var FL=LL,NL=hL,X0=Zm,jL=FL,K0=0/0,BL=/^[-+]0x[0-9a-f]+$/i,$L=/^0b[01]+$/i,VL=/^0o[0-7]+$/i,HL=parseInt;function UL(e){if(typeof e=="number")return e;if(jL(e))return K0;if(X0(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=X0(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=NL(e);var n=$L.test(e);return n||VL.test(e)?HL(e.slice(2),n?2:8):BL.test(e)?K0:+e}var WL=UL,zL=Zm,Ng=aL,Z0=WL,YL="Expected a function",GL=Math.max,qL=Math.min;function XL(e,t,n){var r,i,o,s,u,c,d=0,v=!1,p=!1,S=!0;if(typeof e!="function")throw new TypeError(YL);t=Z0(t)||0,zL(n)&&(v=!!n.leading,p="maxWait"in n,o=p?GL(Z0(n.maxWait)||0,t):o,S="trailing"in n?!!n.trailing:S);function T(de){var x=r,ye=i;return r=i=void 0,d=de,s=e.apply(ye,x),s}function P(de){return d=de,u=setTimeout(R,t),v?T(de):s}function I(de){var x=de-c,ye=de-d,ue=t-x;return p?qL(ue,o-ye):ue}function L(de){var x=de-c,ye=de-d;return c===void 0||x>=t||x<0||p&&ye>=o}function R(){var de=Ng();if(L(de))return H(de);u=setTimeout(R,I(de))}function H(de){return u=void 0,S&&r?T(de):(r=i=void 0,s)}function W(){u!==void 0&&clearTimeout(u),d=0,r=c=i=u=void 0}function te(){return u===void 0?s:H(Ng())}function J(){var de=Ng(),x=L(de);if(r=arguments,i=this,c=de,x){if(u===void 0)return P(c);if(p)return clearTimeout(u),u=setTimeout(R,t),T(c)}return u===void 0&&(u=setTimeout(R,t)),s}return J.cancel=W,J.flush=te,J}var gT=XL;const jg=Mu(gT);var KL=gT,ZL=Zm,JL="Expected a function";function QL(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(JL);return ZL(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),KL(e,t,{leading:r,maxWait:t,trailing:i})}var e2=QL;const t2=Mu(e2);var wf=function(){return wf=Object.assign||function(t){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)&&(t[o]=n[o])}return t},wf.apply(this,arguments)};function vT(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function mT(e){return!e||!e.ownerDocument?document:e.ownerDocument}var yT=function(e){var t={},n=Array.prototype.reduce.call(e,function(r,i){var o=i.name.match(/data-simplebar-(.+)/);if(o){var s=o[1].replace(/\W+(.)/g,function(u,c){return c.toUpperCase()});switch(i.value){case"true":r[s]=!0;break;case"false":r[s]=!1;break;case void 0:r[s]=!0;break;default:r[s]=i.value}}return r},t);return n};function bT(e,t){var n;e&&(n=e.classList).add.apply(n,t.split(" "))}function wT(e,t){e&&t.split(" ").forEach(function(n){e.classList.remove(n)})}function xT(e){return".".concat(e.split(" ").join("."))}var Jm=!!(typeof window<"u"&&window.document&&window.document.createElement),n2=Object.freeze({__proto__:null,addClasses:bT,canUseDOM:Jm,classNamesToQuery:xT,getElementDocument:mT,getElementWindow:vT,getOptions:yT,removeClasses:wT}),yf=null,J0=null;Jm&&window.addEventListener("resize",function(){J0!==window.devicePixelRatio&&(J0=window.devicePixelRatio,yf=null)});function Q0(){if(yf===null){if(typeof document>"u")return yf=0,yf;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var n=t.getBoundingClientRect().right;e.removeChild(t),yf=n}return yf}var du=vT,Bg=mT,r2=yT,hu=bT,pu=wT,Do=xT,rd=function(){function e(t,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=du(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,hu(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(){pu(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(hu(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){pu(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,s;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)&&(s=r.isWithinBounds(r.axis.y.track.rect)),(o||s)&&(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")),s&&(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,s,u,c,d,v,p,S,T,P,I;if(!(!r.draggedAxis||!r.contentWrapperEl)){var L,R=r.axis[r.draggedAxis].track,H=(s=(o=R.rect)===null||o===void 0?void 0:o[r.axis[r.draggedAxis].sizeAttr])!==null&&s!==void 0?s:0,W=r.axis[r.draggedAxis].scrollbar,te=(c=(u=r.contentWrapperEl)===null||u===void 0?void 0:u[r.axis[r.draggedAxis].scrollSizeAttr])!==null&&c!==void 0?c:0,J=parseInt((v=(d=r.elStyles)===null||d===void 0?void 0:d[r.axis[r.draggedAxis].sizeAttr])!==null&&v!==void 0?v:"0px",10);i.preventDefault(),i.stopPropagation(),r.draggedAxis==="y"?L=i.pageY:L=i.pageX;var de=L-((S=(p=R.rect)===null||p===void 0?void 0:p[r.axis[r.draggedAxis].offsetAttr])!==null&&S!==void 0?S:0)-r.axis[r.draggedAxis].dragOffset;de=r.draggedAxis==="x"&&r.isRtl?((P=(T=R.rect)===null||T===void 0?void 0:T[r.axis[r.draggedAxis].sizeAttr])!==null&&P!==void 0?P:0)-W.size-de:de;var x=de/(H-W.size),ye=x*(te-J);r.draggedAxis==="x"&&r.isRtl&&(ye=!((I=e.getRtlHelpers())===null||I===void 0)&&I.isScrollingToNegative?-ye:ye),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=ye}},this.onEndDrag=function(i){r.isDragging=!1;var o=Bg(r.el),s=du(r.el);i.preventDefault(),i.stopPropagation(),pu(r.el,r.classNames.dragging),r.onStopScrolling(),o.removeEventListener("mousemove",r.drag,!0),o.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=s.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=t,this.options=wf(wf({},e.defaultOptions),n),this.classNames=wf(wf({},e.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=t2(this._onMouseMove,64),this.onWindowResize=jg(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=jg(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=jg(this._onMouseEntered,this.stopScrollDelay),this.init()}return e.getRtlHelpers=function(){if(e.rtlHelpers)return e.rtlHelpers;var t=document.createElement("div");t.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var n=t.firstElementChild,r=n==null?void 0:n.firstElementChild;if(!r)return null;document.body.appendChild(n),n.scrollLeft=0;var i=e.getOffset(n),o=e.getOffset(r);n.scrollLeft=-999;var s=e.getOffset(r);return document.body.removeChild(n),e.rtlHelpers={isScrollOriginAtZero:i.left!==o.left,isScrollingToNegative:o.left!==s.left},e.rtlHelpers},e.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:Q0()}catch{return Q0()}},e.getOffset=function(t){var n=t.getBoundingClientRect(),r=Bg(t),i=du(t);return{top:n.top+(i.pageYOffset||r.documentElement.scrollTop),left:n.left+(i.pageXOffset||r.documentElement.scrollLeft)}},e.prototype.init=function(){Jm&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var t,n;this.wrapperEl=this.el.querySelector(Do(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(Do(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(Do(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(Do(this.classNames.offset)),this.maskEl=this.el.querySelector(Do(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,Do(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(Do(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(Do(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(Do(this.classNames.track)).concat(Do(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(Do(this.classNames.track)).concat(Do(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(Do(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(Do(this.classNames.scrollbar)))||null,this.options.autoHide||(hu(this.axis.x.scrollbar.el,this.classNames.visible),hu(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,n,r=du(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(){t.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(){t.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},e.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var t=du(this.el);this.elStyles=t.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,s=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 v=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&d>n,this.axis.y.isOverflowing=c>v,this.axis.x.isOverflowing=s==="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>v-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")}},e.prototype.getScrollbarSize=function(t){var n,r;if(t===void 0&&(t="y"),!this.axis[t].isOverflowing||!this.contentEl)return 0;var i=this.contentEl[this.axis[t].scrollSizeAttr],o=(r=(n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])!==null&&r!==void 0?r:0,s=o/i,u;return u=Math.max(~~(s*o),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(u=Math.min(u,this.options.scrollbarMaxSize)),u},e.prototype.positionScrollbar=function(t){var n,r,i;t===void 0&&(t="y");var o=this.axis[t].scrollbar;if(!(!this.axis[t].isOverflowing||!this.contentWrapperEl||!o.el||!this.elStyles)){var s=this.contentWrapperEl[this.axis[t].scrollSizeAttr],u=((n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])||0,c=parseInt(this.elStyles[this.axis[t].sizeAttr],10),d=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];d=t==="x"&&this.isRtl&&(!((r=e.getRtlHelpers())===null||r===void 0)&&r.isScrollOriginAtZero)?-d:d,t==="x"&&this.isRtl&&(d=!((i=e.getRtlHelpers())===null||i===void 0)&&i.isScrollingToNegative?d:-d);var v=d/(s-c),p=~~((u-o.size)*v);p=t==="x"&&this.isRtl?-p+(u-o.size):p,o.el.style.transform=t==="x"?"translate3d(".concat(p,"px, 0, 0)"):"translate3d(0, ".concat(p,"px, 0)")}},e.prototype.toggleTrackVisibility=function(t){t===void 0&&(t="y");var n=this.axis[t].track.el,r=this.axis[t].scrollbar.el;!n||!r||!this.contentWrapperEl||(this.axis[t].isOverflowing||this.axis[t].forceVisible?(n.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(t))):(n.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(t))),this.axis[t].isOverflowing?r.style.display="block":r.style.display="none")},e.prototype.showScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&!this.axis[t].scrollbar.isVisible&&(hu(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(t){t===void 0&&(t="y"),!this.isDragging&&this.axis[t].isOverflowing&&this.axis[t].scrollbar.isVisible&&(pu(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!1)},e.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")},e.prototype.onMouseMoveForAxis=function(t){t===void 0&&(t="y");var n=this.axis[t];!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(t),hu(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?hu(n.scrollbar.el,this.classNames.hover):pu(n.scrollbar.el,this.classNames.hover)):(pu(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),pu(this.axis[t].track.el,this.classNames.hover),pu(this.axis[t].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)},e.prototype.onDragStart=function(t,n){var r;n===void 0&&(n="y"),this.isDragging=!0;var i=Bg(this.el),o=du(this.el),s=this.axis[n].scrollbar,u=n==="y"?t.pageY:t.pageX;this.axis[n].dragOffset=u-(((r=s.rect)===null||r===void 0?void 0:r[this.axis[n].offsetAttr])||0),this.draggedAxis=n,hu(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)},e.prototype.onTrackClick=function(t,n){var r=this,i,o,s,u;n===void 0&&(n="y");var c=this.axis[n];if(!(!this.options.clickOnTrack||!c.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var d=du(this.el);this.axis[n].scrollbar.rect=c.scrollbar.el.getBoundingClientRect();var v=this.axis[n].scrollbar,p=(o=(i=v.rect)===null||i===void 0?void 0:i[this.axis[n].offsetAttr])!==null&&o!==void 0?o:0,S=parseInt((u=(s=this.elStyles)===null||s===void 0?void 0:s[this.axis[n].sizeAttr])!==null&&u!==void 0?u:"0px",10),T=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],P=n==="y"?this.mouseY-p:this.mouseX-p,I=P<0?-1:1,L=I===-1?T-S:T+S,R=40,H=function(){r.contentWrapperEl&&(I===-1?T>L&&(T-=R,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=T,d.requestAnimationFrame(H)):T<L&&(T+=R,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=T,d.requestAnimationFrame(H)))};H()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var t=du(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),t.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()},e.prototype.unMount=function(){this.removeListeners()},e.prototype.isWithinBounds=function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height},e.prototype.findChild=function(t,n){var r=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,function(i){return r.call(i,n)})[0]},e.rtlHelpers=null,e.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},e.getOptions=r2,e.helpers=n2,e}(),Ko=function(){return Ko=Object.assign||function(t){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)&&(t[o]=n[o])}return t},Ko.apply(this,arguments)};function i2(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var Qm=Tn.forwardRef(function(e,t){var n=e.children,r=e.scrollableNodeProps,i=r===void 0?{}:r,o=i2(e,["children","scrollableNodeProps"]),s=Tn.useRef(),u=Tn.useRef(),c=Tn.useRef(),d={},v={};Object.keys(o).forEach(function(T){Object.prototype.hasOwnProperty.call(rd.defaultOptions,T)?d[T]=o[T]:v[T]=o[T]});var p=Ko(Ko({},rd.defaultOptions.classNames),d.classNames),S=Ko(Ko({},i),{className:"".concat(p.contentWrapper).concat(i.className?" ".concat(i.className):""),tabIndex:d.tabIndex||rd.defaultOptions.tabIndex,role:"region","aria-label":d.ariaLabel||rd.defaultOptions.ariaLabel});return Tn.useEffect(function(){var T;return u.current=S.ref?S.ref.current:u.current,s.current&&(T=new rd(s.current,Ko(Ko(Ko({},d),u.current&&{scrollableNode:u.current}),c.current&&{contentNode:c.current})),typeof t=="function"?t(T):t&&(t.current=T)),function(){T==null||T.unMount(),T=null,typeof t=="function"&&t(null)}},[]),Tn.createElement("div",Ko({"data-simplebar":"init",ref:s},v),Tn.createElement("div",{className:p.wrapper},Tn.createElement("div",{className:p.heightAutoObserverWrapperEl},Tn.createElement("div",{className:p.heightAutoObserverEl})),Tn.createElement("div",{className:p.mask},Tn.createElement("div",{className:p.offset},typeof n=="function"?n({scrollableNodeRef:u,scrollableNodeProps:Ko(Ko({},S),{ref:u}),contentNodeRef:c,contentNodeProps:{className:p.contentEl,ref:c}}):Tn.createElement("div",Ko({},S),Tn.createElement("div",{className:p.contentEl},n)))),Tn.createElement("div",{className:p.placeholder})),Tn.createElement("div",{className:"".concat(p.track," simplebar-horizontal")},Tn.createElement("div",{className:p.scrollbar})),Tn.createElement("div",{className:"".concat(p.track," simplebar-vertical")},Tn.createElement("div",{className:p.scrollbar})))});Qm.displayName="SimpleBar";const ST=`[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 TT(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=TT(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ol(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=TT(e))&&(r&&(r+=" "),r+=t);return r}const Dd=e=>typeof e=="number"&&!isNaN(e),_c=e=>typeof e=="string",Zo=e=>typeof e=="function",Uh=e=>_c(e)||Zo(e)?e:null,Yv=e=>X.isValidElement(e)||_c(e)||Zo(e)||Dd(e);function o2(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}function Ip(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:o=300}=e;return function(s){let{children:u,position:c,preventExitTransition:d,done:v,nodeRef:p,isIn:S,playToast:T}=s;const P=r?`${t}--${c}`:t,I=r?`${n}--${c}`:n,L=X.useRef(0);return X.useLayoutEffect(()=>{const R=p.current,H=P.split(" "),W=te=>{te.target===p.current&&(T(),R.removeEventListener("animationend",W),R.removeEventListener("animationcancel",W),L.current===0&&te.type!=="animationcancel"&&R.classList.remove(...H))};R.classList.add(...H),R.addEventListener("animationend",W),R.addEventListener("animationcancel",W)},[]),X.useEffect(()=>{const R=p.current,H=()=>{R.removeEventListener("animationend",H),i?o2(R,v,o):v()};S||(d?H():(L.current=1,R.className+=` ${I}`,R.addEventListener("animationend",H)))},[S]),X.createElement(X.Fragment,null,u)}}function ew(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const lo=new Map;let _d=[];const Gv=new Set,a2=e=>Gv.forEach(t=>t(e)),CT=()=>lo.size>0;function ET(e,t){var n;if(t)return!((n=lo.get(t))==null||!n.isToastActive(e));let r=!1;return lo.forEach(i=>{i.isToastActive(e)&&(r=!0)}),r}function kT(e,t){Yv(e)&&(CT()||_d.push({content:e,options:t}),lo.forEach(n=>{n.buildToast(e,t)}))}function tw(e,t){lo.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}function s2(e){const{subscribe:t,getSnapshot:n,setProps:r}=X.useRef(function(o){const s=o.containerId||1;return{subscribe(u){const c=function(v,p,S){let T=1,P=0,I=[],L=[],R=[],H=p;const W=new Map,te=new Set,J=()=>{R=Array.from(W.values()),te.forEach(ye=>ye())},de=ye=>{L=ye==null?[]:L.filter(ue=>ue!==ye),J()},x=ye=>{const{toastId:ue,onOpen:Je,updateId:Ne,children:$e}=ye.props,Ye=Ne==null;ye.staleId&&W.delete(ye.staleId),W.set(ue,ye),L=[...L,ye.props.toastId].filter(qe=>qe!==ye.staleId),J(),S(ew(ye,Ye?"added":"updated")),Ye&&Zo(Je)&&Je(X.isValidElement($e)&&$e.props)};return{id:v,props:H,observe:ye=>(te.add(ye),()=>te.delete(ye)),toggle:(ye,ue)=>{W.forEach(Je=>{ue!=null&&ue!==Je.props.toastId||Zo(Je.toggle)&&Je.toggle(ye)})},removeToast:de,toasts:W,clearQueue:()=>{P-=I.length,I=[]},buildToast:(ye,ue)=>{if((Ve=>{let{containerId:ze,toastId:Re,updateId:Fe}=Ve;const Ke=ze?ze!==v:v!==1,lt=W.has(Re)&&Fe==null;return Ke||lt})(ue))return;const{toastId:Je,updateId:Ne,data:$e,staleId:Ye,delay:qe}=ue,pe=()=>{de(Je)},Oe=Ne==null;Oe&&P++;const je={...H,style:H.toastStyle,key:T++,...Object.fromEntries(Object.entries(ue).filter(Ve=>{let[ze,Re]=Ve;return Re!=null})),toastId:Je,updateId:Ne,data:$e,closeToast:pe,isIn:!1,className:Uh(ue.className||H.toastClassName),bodyClassName:Uh(ue.bodyClassName||H.bodyClassName),progressClassName:Uh(ue.progressClassName||H.progressClassName),autoClose:!ue.isLoading&&(Xe=ue.autoClose,at=H.autoClose,Xe===!1||Dd(Xe)&&Xe>0?Xe:at),deleteToast(){const Ve=W.get(Je),{onClose:ze,children:Re}=Ve.props;Zo(ze)&&ze(X.isValidElement(Re)&&Re.props),S(ew(Ve,"removed")),W.delete(Je),P--,P<0&&(P=0),I.length>0?x(I.shift()):J()}};var Xe,at;je.closeButton=H.closeButton,ue.closeButton===!1||Yv(ue.closeButton)?je.closeButton=ue.closeButton:ue.closeButton===!0&&(je.closeButton=!Yv(H.closeButton)||H.closeButton);let Ce=ye;X.isValidElement(ye)&&!_c(ye.type)?Ce=X.cloneElement(ye,{closeToast:pe,toastProps:je,data:$e}):Zo(ye)&&(Ce=ye({closeToast:pe,toastProps:je,data:$e}));const Pe={content:Ce,props:je,staleId:Ye};H.limit&&H.limit>0&&P>H.limit&&Oe?I.push(Pe):Dd(qe)?setTimeout(()=>{x(Pe)},qe):x(Pe)},setProps(ye){H=ye},setToggle:(ye,ue)=>{W.get(ye).toggle=ue},isToastActive:ye=>L.some(ue=>ue===ye),getSnapshot:()=>R}}(s,o,a2);lo.set(s,c);const d=c.observe(u);return _d.forEach(v=>kT(v.content,v.options)),_d=[],()=>{d(),lo.delete(s)}},setProps(u){var c;(c=lo.get(s))==null||c.setProps(u)},getSnapshot(){var u;return(u=lo.get(s))==null?void 0:u.getSnapshot()}}}(e)).current;r(e);const i=X.useSyncExternalStore(t,n,n);return{getToastToRender:function(o){if(!i)return[];const s=new Map;return e.newestOnTop&&i.reverse(),i.forEach(u=>{const{position:c}=u.props;s.has(c)||s.set(c,[]),s.get(c).push(u)}),Array.from(s,u=>o(u[0],u[1]))},isToastActive:ET,count:i==null?void 0:i.length}}function l2(e){const[t,n]=X.useState(!1),[r,i]=X.useState(!1),o=X.useRef(null),s=X.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:u,pauseOnHover:c,closeToast:d,onClick:v,closeOnClick:p}=e;var S,T;function P(){n(!0)}function I(){n(!1)}function L(W){const te=o.current;s.canDrag&&te&&(s.didMove=!0,t&&I(),s.delta=e.draggableDirection==="x"?W.clientX-s.start:W.clientY-s.start,s.start!==W.clientX&&(s.canCloseOnClick=!1),te.style.transform=`translate3d(${e.draggableDirection==="x"?`${s.delta}px, var(--y)`:`0, calc(${s.delta}px + var(--y))`},0)`,te.style.opacity=""+(1-Math.abs(s.delta/s.removalDistance)))}function R(){document.removeEventListener("pointermove",L),document.removeEventListener("pointerup",R);const W=o.current;if(s.canDrag&&s.didMove&&W){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance)return i(!0),e.closeToast(),void e.collapseAll();W.style.transition="transform 0.2s, opacity 0.2s",W.style.removeProperty("transform"),W.style.removeProperty("opacity")}}(T=lo.get((S={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||T.setToggle(S.id,S.fn),X.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||I(),window.addEventListener("focus",P),window.addEventListener("blur",I),()=>{window.removeEventListener("focus",P),window.removeEventListener("blur",I)}},[e.pauseOnFocusLoss]);const H={onPointerDown:function(W){if(e.draggable===!0||e.draggable===W.pointerType){s.didMove=!1,document.addEventListener("pointermove",L),document.addEventListener("pointerup",R);const te=o.current;s.canCloseOnClick=!0,s.canDrag=!0,te.style.transition="none",e.draggableDirection==="x"?(s.start=W.clientX,s.removalDistance=te.offsetWidth*(e.draggablePercent/100)):(s.start=W.clientY,s.removalDistance=te.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(W){const{top:te,bottom:J,left:de,right:x}=o.current.getBoundingClientRect();W.nativeEvent.type!=="touchend"&&e.pauseOnHover&&W.clientX>=de&&W.clientX<=x&&W.clientY>=te&&W.clientY<=J?I():P()}};return u&&c&&(H.onMouseEnter=I,e.stacked||(H.onMouseLeave=P)),p&&(H.onClick=W=>{v&&v(W),s.canCloseOnClick&&d()}),{playToast:P,pauseToast:I,isRunning:t,preventExitTransition:r,toastRef:o,eventHandlers:H}}function u2(e){let{delay:t,isRunning:n,closeToast:r,type:i="default",hide:o,className:s,style:u,controlledProgress:c,progress:d,rtl:v,isIn:p,theme:S}=e;const T=o||c&&d===0,P={...u,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};c&&(P.transform=`scaleX(${d})`);const I=Ol("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":v}),L=Zo(s)?s({rtl:v,type:i,defaultClassName:I}):Ol(I,s),R={[c&&d>=1?"onTransitionEnd":"onAnimationEnd"]:c&&d<1?null:()=>{p&&r()}};return X.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":T},X.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${S} Toastify__progress-bar--${i}`}),X.createElement("div",{role:"progressbar","aria-hidden":T?"true":"false","aria-label":"notification timer",className:L,style:P,...R}))}let c2=1;const OT=()=>""+c2++;function f2(e){return e&&(_c(e.toastId)||Dd(e.toastId))?e.toastId:OT()}function fd(e,t){return kT(e,t),t.toastId}function ap(e,t){return{...t,type:t&&t.type||e,toastId:f2(t)}}function vh(e){return(t,n)=>fd(t,ap(e,n))}function Dn(e,t){return fd(e,ap("default",t))}Dn.loading=(e,t)=>fd(e,ap("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),Dn.promise=function(e,t,n){let r,{pending:i,error:o,success:s}=t;i&&(r=_c(i)?Dn.loading(i,n):Dn.loading(i.render,{...n,...i}));const u={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},c=(v,p,S)=>{if(p==null)return void Dn.dismiss(r);const T={type:v,...u,...n,data:S},P=_c(p)?{render:p}:p;return r?Dn.update(r,{...T,...P}):Dn(P.render,{...T,...P}),S},d=Zo(e)?e():e;return d.then(v=>c("success",s,v)).catch(v=>c("error",o,v)),d},Dn.success=vh("success"),Dn.info=vh("info"),Dn.error=vh("error"),Dn.warning=vh("warning"),Dn.warn=Dn.warning,Dn.dark=(e,t)=>fd(e,ap("default",{theme:"dark",...t})),Dn.dismiss=function(e){(function(t){var n;if(CT()){if(t==null||_c(n=t)||Dd(n))lo.forEach(r=>{r.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const r=lo.get(t.containerId);r?r.removeToast(t.id):lo.forEach(i=>{i.removeToast(t.id)})}}else _d=_d.filter(r=>t!=null&&r.options.toastId!==t)})(e)},Dn.clearWaitingQueue=function(e){e===void 0&&(e={}),lo.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},Dn.isActive=ET,Dn.update=function(e,t){t===void 0&&(t={});const n=((r,i)=>{var o;let{containerId:s}=i;return(o=lo.get(s||1))==null?void 0:o.toasts.get(r)})(e,t);if(n){const{props:r,content:i}=n,o={delay:100,...r,...t,toastId:t.toastId||e,updateId:OT()};o.toastId!==e&&(o.staleId=e);const s=o.render||i;delete o.render,fd(s,o)}},Dn.done=e=>{Dn.update(e,{progress:1})},Dn.onChange=function(e){return Gv.add(e),()=>{Gv.delete(e)}},Dn.play=e=>tw(!0,e),Dn.pause=e=>tw(!1,e);const d2=typeof window<"u"?X.useLayoutEffect:X.useEffect,mh=e=>{let{theme:t,type:n,isLoading:r,...i}=e;return X.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...i})},$g={info:function(e){return X.createElement(mh,{...e},X.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return X.createElement(mh,{...e},X.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return X.createElement(mh,{...e},X.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return X.createElement(mh,{...e},X.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return X.createElement("div",{className:"Toastify__spinner"})}},h2=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:o}=l2(e),{closeButton:s,children:u,autoClose:c,onClick:d,type:v,hideProgressBar:p,closeToast:S,transition:T,position:P,className:I,style:L,bodyClassName:R,bodyStyle:H,progressClassName:W,progressStyle:te,updateId:J,role:de,progress:x,rtl:ye,toastId:ue,deleteToast:Je,isIn:Ne,isLoading:$e,closeOnClick:Ye,theme:qe}=e,pe=Ol("Toastify__toast",`Toastify__toast-theme--${qe}`,`Toastify__toast--${v}`,{"Toastify__toast--rtl":ye},{"Toastify__toast--close-on-click":Ye}),Oe=Zo(I)?I({rtl:ye,position:P,type:v,defaultClassName:pe}):Ol(pe,I),je=function(Pe){let{theme:Ve,type:ze,isLoading:Re,icon:Fe}=Pe,Ke=null;const lt={theme:Ve,type:ze};return Fe===!1||(Zo(Fe)?Ke=Fe({...lt,isLoading:Re}):X.isValidElement(Fe)?Ke=X.cloneElement(Fe,lt):Re?Ke=$g.spinner():(mt=>mt in $g)(ze)&&(Ke=$g[ze](lt))),Ke}(e),Xe=!!x||!c,at={closeToast:S,type:v,theme:qe};let Ce=null;return s===!1||(Ce=Zo(s)?s(at):X.isValidElement(s)?X.cloneElement(s,at):function(Pe){let{closeToast:Ve,theme:ze,ariaLabel:Re="close"}=Pe;return X.createElement("button",{className:`Toastify__close-button Toastify__close-button--${ze}`,type:"button",onClick:Fe=>{Fe.stopPropagation(),Ve(Fe)},"aria-label":Re},X.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},X.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(at)),X.createElement(T,{isIn:Ne,done:Je,position:P,preventExitTransition:n,nodeRef:r,playToast:o},X.createElement("div",{id:ue,onClick:d,"data-in":Ne,className:Oe,...i,style:L,ref:r},X.createElement("div",{...Ne&&{role:de},className:Zo(R)?R({type:v}):Ol("Toastify__toast-body",R),style:H},je!=null&&X.createElement("div",{className:Ol("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!$e})},je),X.createElement("div",null,u)),Ce,X.createElement(u2,{...J&&!Xe?{key:`pb-${J}`}:{},rtl:ye,theme:qe,delay:c,isRunning:t,isIn:Ne,closeToast:S,hide:p,type:v,style:te,className:W,controlledProgress:Xe,progress:x||0})))},Ap=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},p2=Ip(Ap("bounce",!0));Ip(Ap("slide",!0));Ip(Ap("zoom"));Ip(Ap("flip"));const g2={position:"top-right",transition:p2,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function v2(e){let t={...g2,...e};const n=e.stacked,[r,i]=X.useState(!0),o=X.useRef(null),{getToastToRender:s,isToastActive:u,count:c}=s2(t),{className:d,style:v,rtl:p,containerId:S}=t;function T(I){const L=Ol("Toastify__toast-container",`Toastify__toast-container--${I}`,{"Toastify__toast-container--rtl":p});return Zo(d)?d({position:I,rtl:p,defaultClassName:L}):Ol(L,Uh(d))}function P(){n&&(i(!0),Dn.play())}return d2(()=>{if(n){var I;const L=o.current.querySelectorAll('[data-in="true"]'),R=12,H=(I=t.position)==null?void 0:I.includes("top");let W=0,te=0;Array.from(L).reverse().forEach((J,de)=>{const x=J;x.classList.add("Toastify__toast--stacked"),de>0&&(x.dataset.collapsed=`${r}`),x.dataset.pos||(x.dataset.pos=H?"top":"bot");const ye=W*(r?.2:1)+(r?0:R*de);x.style.setProperty("--y",`${H?ye:-1*ye}px`),x.style.setProperty("--g",`${R}`),x.style.setProperty("--s",""+(1-(r?te:0))),W+=x.offsetHeight,te+=.025})}},[r,c,n]),X.createElement("div",{ref:o,className:"Toastify",id:S,onMouseEnter:()=>{n&&(i(!1),Dn.pause())},onMouseLeave:P},s((I,L)=>{const R=L.length?{...v}:{...v,pointerEvents:"none"};return X.createElement("div",{className:T(I),style:R,key:`container-${I}`},L.map(H=>{let{content:W,props:te}=H;return X.createElement(h2,{...te,stacked:n,collapseAll:P,isIn:u(te.toastId,te.containerId),style:te.style,key:`toast-${te.key}`},W)}))}))}function m2(){return We.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[We.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"}),We.jsx("path",{d:"M10.9942 6.89636V11.6737",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),We.jsx("path",{d:"M10.9941 15.1038H11.0049",stroke:"#E01B00",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function y2(){return We.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[We.jsx("rect",{width:"24",height:"24",rx:"12",fill:"#009D4F"}),We.jsx("path",{d:"M7.25244 12L10.4174 15.165L16.7474 8.83496",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function b2(){return We.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[We.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"}),We.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 ey={paddingLeft:"16px",borderLeft:"2px solid",boxShadow:"none",fontFamily:"inherit"},w2=({closeToast:e})=>We.jsx("i",{className:"material-icons",onClick:e,style:{cursor:"pointer"},children:We.jsx("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:We.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"})})}),ty=(e,t)=>{Dn.success(e,{icon:We.jsx(y2,{}),bodyStyle:{},position:"bottom-right",style:{...ey,background:Ci.successLight,borderColor:Ci.success,color:Ci.success},...t})},Wd=(e,t)=>{Dn.error(e,{icon:We.jsx(m2,{}),position:"bottom-right",style:{...ey,background:Ci.dangerLight,borderColor:Ci.danger,color:Ci.danger},...t})},x2=(e,t)=>{Dn.error(e,{icon:We.jsx(b2,{}),position:"bottom-right",style:{...ey,background:Ci.warningLight,borderColor:Ci.warning,color:Ci.warning},...t})},S2=e=>{Dn(e,{closeButton:w2,toastId:"notify",position:"top-right",hideProgressBar:!0,containerId:"toastifyNotification",style:{padding:"12px 24px 12px 0",paddingLeft:"16px",fontFamily:"inherit",width:"610px",minHeight:"72px",color:Ci.textPrimary}})};function DT(e){let t=null;return()=>(t==null&&(t=e()),t)}function T2(e,t){return e.filter(n=>n!==t)}function C2(e,t){const n=new Set,r=o=>n.add(o);e.forEach(r),t.forEach(r);const i=[];return n.forEach(o=>i.push(o)),i}class E2{enter(t){const n=this.entered.length,r=i=>this.isNodeInDocument(i)&&(!i.contains||i.contains(t));return this.entered=C2(this.entered.filter(r),[t]),n===0&&this.entered.length>0}leave(t){const n=this.entered.length;return this.entered=T2(this.entered.filter(this.isNodeInDocument),t),n>0&&this.entered.length===0}reset(){this.entered=[]}constructor(t){this.entered=[],this.isNodeInDocument=t}}class k2{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(t=>{Object.defineProperty(this.item,t,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${t}" until the drop event.`),null}})})}loadDataTransfer(t){if(t){const n={};Object.keys(this.config.exposeProperties).forEach(r=>{const i=this.config.exposeProperties[r];i!=null&&(n[r]={value:i(t,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,n)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(t,n){return n===t.getSourceId()}endDrag(){}constructor(t){this.config=t,this.item={},this.initializeExposedProperties()}}const _T="__NATIVE_FILE__",PT="__NATIVE_URL__",RT="__NATIVE_TEXT__",IT="__NATIVE_HTML__",nw=Object.freeze(Object.defineProperty({__proto__:null,FILE:_T,HTML:IT,TEXT:RT,URL:PT},Symbol.toStringTag,{value:"Module"}));function Vg(e,t,n){const r=t.reduce((i,o)=>i||e.getData(o),"");return r??n}const qv={[_T]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[IT]:{exposeProperties:{html:(e,t)=>Vg(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[PT]:{exposeProperties:{urls:(e,t)=>Vg(e,t,"").split(`
7
+ `),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[RT]:{exposeProperties:{text:(e,t)=>Vg(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function O2(e,t){const n=qv[e];if(!n)throw new Error(`native type ${e} has no configuration`);const r=new k2(n);return r.loadDataTransfer(t),r}function Hg(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(qv).filter(n=>{const r=qv[n];return r!=null&&r.matchesTypes?r.matchesTypes.some(i=>t.indexOf(i)>-1):!1})[0]||null}const D2=DT(()=>/firefox/i.test(navigator.userAgent)),AT=DT(()=>!!window.safari);class rw{interpolate(t){const{xs:n,ys:r,c1s:i,c2s:o,c3s:s}=this;let u=n.length-1;if(t===n[u])return r[u];let c=0,d=s.length-1,v;for(;c<=d;){v=Math.floor(.5*(c+d));const T=n[v];if(T<t)c=v+1;else if(T>t)d=v-1;else return r[v]}u=Math.max(0,d);const p=t-n[u],S=p*p;return r[u]+i[u]*p+o[u]*S+s[u]*p*S}constructor(t,n){const{length:r}=t,i=[];for(let T=0;T<r;T++)i.push(T);i.sort((T,P)=>t[T]<t[P]?-1:1);const o=[],s=[];let u,c;for(let T=0;T<r-1;T++)u=t[T+1]-t[T],c=n[T+1]-n[T],o.push(u),s.push(c/u);const d=[s[0]];for(let T=0;T<o.length-1;T++){const P=s[T],I=s[T+1];if(P*I<=0)d.push(0);else{u=o[T];const L=o[T+1],R=u+L;d.push(3*R/((R+L)/P+(R+u)/I))}}d.push(s[s.length-1]);const v=[],p=[];let S;for(let T=0;T<d.length-1;T++){S=s[T];const P=d[T],I=1/o[T],L=P+d[T+1]-S-S;v.push((S-P-L)*I),p.push(L*I*I)}this.xs=t,this.ys=n,this.c1s=d,this.c2s=v,this.c3s=p}}const _2=1;function MT(e){const t=e.nodeType===_2?e:e.parentElement;if(!t)return null;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function yh(e){return{x:e.clientX,y:e.clientY}}function P2(e){var t;return e.nodeName==="IMG"&&(D2()||!(!((t=document.documentElement)===null||t===void 0)&&t.contains(e)))}function R2(e,t,n,r){let i=e?t.width:n,o=e?t.height:r;return AT()&&e&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}function I2(e,t,n,r,i){const o=P2(t),u=MT(o?e:t),c={x:n.x-u.x,y:n.y-u.y},{offsetWidth:d,offsetHeight:v}=e,{anchorX:p,anchorY:S}=r,{dragPreviewWidth:T,dragPreviewHeight:P}=R2(o,t,d,v),I=()=>{let de=new rw([0,.5,1],[c.y,c.y/v*P,c.y+P-v]).interpolate(S);return AT()&&o&&(de+=(window.devicePixelRatio-1)*P),de},L=()=>new rw([0,.5,1],[c.x,c.x/d*T,c.x+T-d]).interpolate(p),{offsetX:R,offsetY:H}=i,W=R===0||R,te=H===0||H;return{x:W?R:L(),y:te?H:I()}}let A2=class{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var t;return!((t=this.globalContext)===null||t===void 0)&&t.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var t;return((t=this.optionsArgs)===null||t===void 0?void 0:t.rootElement)||this.window}constructor(t,n){this.ownerDocument=null,this.globalContext=t,this.optionsArgs=n}};function M2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},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){M2(e,i,n[i])})}return e}class L2{profile(){var t,n;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((t=this.dragStartSourceIds)===null||t===void 0?void 0:t.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 t=this.rootElement;if(t!==void 0){if(t.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");t.__isReactDndBackendSetUp=!0,this.addEventListeners(t)}}teardown(){const t=this.rootElement;if(t!==void 0&&(t.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var n;(n=this.window)===null||n===void 0||n.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(t,n,r){return this.sourcePreviewNodeOptions.set(t,r),this.sourcePreviewNodes.set(t,n),()=>{this.sourcePreviewNodes.delete(t),this.sourcePreviewNodeOptions.delete(t)}}connectDragSource(t,n,r){this.sourceNodes.set(t,n),this.sourceNodeOptions.set(t,r);const i=s=>this.handleDragStart(s,t),o=s=>this.handleSelectStart(s);return n.setAttribute("draggable","true"),n.addEventListener("dragstart",i),n.addEventListener("selectstart",o),()=>{this.sourceNodes.delete(t),this.sourceNodeOptions.delete(t),n.removeEventListener("dragstart",i),n.removeEventListener("selectstart",o),n.setAttribute("draggable","false")}}connectDropTarget(t,n){const r=s=>this.handleDragEnter(s,t),i=s=>this.handleDragOver(s,t),o=s=>this.handleDrop(s,t);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(t){t.addEventListener&&(t.addEventListener("dragstart",this.handleTopDragStart),t.addEventListener("dragstart",this.handleTopDragStartCapture,!0),t.addEventListener("dragend",this.handleTopDragEndCapture,!0),t.addEventListener("dragenter",this.handleTopDragEnter),t.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.addEventListener("dragover",this.handleTopDragOver),t.addEventListener("dragover",this.handleTopDragOverCapture,!0),t.addEventListener("drop",this.handleTopDrop),t.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(t){t.removeEventListener&&(t.removeEventListener("dragstart",this.handleTopDragStart),t.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),t.removeEventListener("dragend",this.handleTopDragEndCapture,!0),t.removeEventListener("dragenter",this.handleTopDragEnter),t.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.removeEventListener("dragover",this.handleTopDragOver),t.removeEventListener("dragover",this.handleTopDragOverCapture,!0),t.removeEventListener("drop",this.handleTopDrop),t.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const t=this.monitor.getSourceId(),n=this.sourceNodeOptions.get(t);return iw({dropEffect:this.altKeyPressed?"copy":"move"},n||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const t=this.monitor.getSourceId(),n=this.sourcePreviewNodeOptions.get(t);return iw({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}isDraggingNativeItem(){const t=this.monitor.getItemType();return Object.keys(nw).some(n=>nw[n]===t)}beginDragNativeItem(t,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=O2(t,n),this.currentNativeHandle=this.registry.addSource(t,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(t){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=t;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 t;(t=this.window)===null||t===void 0||t.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(t,n){t.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(n))}handleDragEnter(t,n){this.dragEnterTargetIds.unshift(n)}handleDragOver(t,n){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(n)}handleDrop(t,n){this.dropTargetIds.unshift(n)}constructor(t,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&&MT(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 s=yh(i);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(o||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:s});const{dataTransfer:u}=i,c=Hg(u);if(this.monitor.isDragging()){if(u&&typeof u.setDragImage=="function"){const v=this.monitor.getSourceId(),p=this.sourceNodes.get(v),S=this.sourcePreviewNodes.get(v)||p;if(S){const{anchorX:T,anchorY:P,offsetX:I,offsetY:L}=this.getCurrentSourcePreviewNodeOptions(),W=I2(p,S,s,{anchorX:T,anchorY:P},{offsetX:I,offsetY:L});u.setDragImage(S,W.x,W.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=Hg(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:yh(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=yh(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 Hg(i.dataTransfer)&&i.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=i=>{const{dropTargetIds:o}=this;this.dropTargetIds=[],this.actions.hover(o,{clientOffset:yh(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 A2(n,r),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new E2(this.isNodeInDocument)}}let bh;function F2(){return bh||(bh=new Image,bh.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),bh}const N2=function(t,n,r){return new L2(t,n,r)};var Pc=[],j2=function(){return Pc.some(function(e){return e.activeTargets.length>0})},B2=function(){return Pc.some(function(e){return e.skippedTargets.length>0})},ow="ResizeObserver loop completed with undelivered notifications.",$2=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:ow}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=ow),window.dispatchEvent(e)},Pd;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Pd||(Pd={}));var Rc=function(e){return Object.freeze(e)},V2=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,Rc(this)}return e}(),LT=function(){function e(t,n,r,i){return this.x=t,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 e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,i=t.top,o=t.right,s=t.bottom,u=t.left,c=t.width,d=t.height;return{x:n,y:r,top:i,right:o,bottom:s,left:u,width:c,height:d}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),ny=function(e){return e instanceof SVGElement&&"getBBox"in e},FT=function(e){if(ny(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,o=i.offsetWidth,s=i.offsetHeight;return!(o||s||e.getClientRects().length)},aw=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},H2=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},dd=typeof window<"u"?window:{},wh=new WeakMap,sw=/auto|scroll/,U2=/^tb|vertical/,W2=/msie|trident/i.test(dd.navigator&&dd.navigator.userAgent),Fs=function(e){return parseFloat(e||"0")},Of=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new V2((n?t:e)||0,(n?e:t)||0)},lw=Rc({devicePixelContentBoxSize:Of(),borderBoxSize:Of(),contentBoxSize:Of(),contentRect:new LT(0,0,0,0)}),NT=function(e,t){if(t===void 0&&(t=!1),wh.has(e)&&!t)return wh.get(e);if(FT(e))return wh.set(e,lw),lw;var n=getComputedStyle(e),r=ny(e)&&e.ownerSVGElement&&e.getBBox(),i=!W2&&n.boxSizing==="border-box",o=U2.test(n.writingMode||""),s=!r&&sw.test(n.overflowY||""),u=!r&&sw.test(n.overflowX||""),c=r?0:Fs(n.paddingTop),d=r?0:Fs(n.paddingRight),v=r?0:Fs(n.paddingBottom),p=r?0:Fs(n.paddingLeft),S=r?0:Fs(n.borderTopWidth),T=r?0:Fs(n.borderRightWidth),P=r?0:Fs(n.borderBottomWidth),I=r?0:Fs(n.borderLeftWidth),L=p+d,R=c+v,H=I+T,W=S+P,te=u?e.offsetHeight-W-e.clientHeight:0,J=s?e.offsetWidth-H-e.clientWidth:0,de=i?L+H:0,x=i?R+W:0,ye=r?r.width:Fs(n.width)-de-J,ue=r?r.height:Fs(n.height)-x-te,Je=ye+L+J+H,Ne=ue+R+te+W,$e=Rc({devicePixelContentBoxSize:Of(Math.round(ye*devicePixelRatio),Math.round(ue*devicePixelRatio),o),borderBoxSize:Of(Je,Ne,o),contentBoxSize:Of(ye,ue,o),contentRect:new LT(p,c,ye,ue)});return wh.set(e,$e),$e},jT=function(e,t,n){var r=NT(e,n),i=r.borderBoxSize,o=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(t){case Pd.DEVICE_PIXEL_CONTENT_BOX:return s;case Pd.BORDER_BOX:return i;default:return o}},z2=function(){function e(t){var n=NT(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=Rc([n.borderBoxSize]),this.contentBoxSize=Rc([n.contentBoxSize]),this.devicePixelContentBoxSize=Rc([n.devicePixelContentBoxSize])}return e}(),BT=function(e){if(FT(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},Y2=function(){var e=1/0,t=[];Pc.forEach(function(s){if(s.activeTargets.length!==0){var u=[];s.activeTargets.forEach(function(d){var v=new z2(d.target),p=BT(d.target);u.push(v),d.lastReportedSize=jT(d.target,d.observedBox),p<e&&(e=p)}),t.push(function(){s.callback.call(s.observer,u,s.observer)}),s.activeTargets.splice(0,s.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var i=r[n];i()}return e},uw=function(e){Pc.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(i){i.isActive()&&(BT(i.target)>e?n.activeTargets.push(i):n.skippedTargets.push(i))})})},G2=function(){var e=0;for(uw(e);j2();)e=Y2(),uw(e);return B2()&&$2(),e>0},Ug,$T=[],q2=function(){return $T.splice(0).forEach(function(e){return e()})},X2=function(e){if(!Ug){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return q2()}).observe(n,r),Ug=function(){n.textContent="".concat(t?t--:t++)}}$T.push(e),Ug()},K2=function(e){X2(function(){requestAnimationFrame(e)})},Wh=0,Z2=function(){return!!Wh},J2=250,Q2={attributes:!0,characterData:!0,childList:!0,subtree:!0},cw=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],fw=function(e){return e===void 0&&(e=0),Date.now()+e},Wg=!1,eF=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=J2),!Wg){Wg=!0;var r=fw(t);K2(function(){var i=!1;try{i=G2()}finally{if(Wg=!1,t=r-fw(),!Z2())return;i?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,Q2)};document.body?n():dd.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),cw.forEach(function(n){return dd.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),cw.forEach(function(n){return dd.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),Xv=new eF,dw=function(e){!Wh&&e>0&&Xv.start(),Wh+=e,!Wh&&Xv.stop()},tF=function(e){return!ny(e)&&!H2(e)&&getComputedStyle(e).display==="inline"},nF=function(){function e(t,n){this.target=t,this.observedBox=n||Pd.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=jT(this.target,this.observedBox,!0);return tF(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),rF=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),xh=new WeakMap,hw=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},Sh=function(){function e(){}return e.connect=function(t,n){var r=new rF(t,n);xh.set(t,r)},e.observe=function(t,n,r){var i=xh.get(t),o=i.observationTargets.length===0;hw(i.observationTargets,n)<0&&(o&&Pc.push(i),i.observationTargets.push(new nF(n,r&&r.box)),dw(1),Xv.schedule())},e.unobserve=function(t,n){var r=xh.get(t),i=hw(r.observationTargets,n),o=r.observationTargets.length===1;i>=0&&(o&&Pc.splice(Pc.indexOf(r),1),r.observationTargets.splice(i,1),dw(-1))},e.disconnect=function(t){var n=this,r=xh.get(t);r.observationTargets.slice().forEach(function(i){return n.unobserve(t,i.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),iF=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Sh.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!aw(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Sh.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!aw(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Sh.unobserve(this,t)},e.prototype.disconnect=function(){Sh.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}(),Kv=function(e,t){return Kv=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])},Kv(e,t)};function VT(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Kv(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var st=function(){return st=Object.assign||function(t){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)&&(t[o]=n[o])}return t},st.apply(this,arguments)};function Ra(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Gr(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(u){s={error:u}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o}function Qo(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var pw="production",HT=typeof process>"u"||process.env===void 0?pw:process.env.NODE_ENV||pw,El=function(e){return{isEnabled:function(t){return e.some(function(n){return!!t[n]})}}},Rd={measureLayout:El(["layout","layoutId","drag"]),animation:El(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:El(["exit"]),drag:El(["drag","dragControls"]),focus:El(["whileFocus"]),hover:El(["whileHover","onHoverStart","onHoverEnd"]),tap:El(["whileTap","onTap","onTapStart","onTapCancel"]),pan:El(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:El(["whileInView","onViewportEnter","onViewportLeave"])};function oF(e){for(var t in e)e[t]!==null&&(t==="projectionNodeConstructor"?Rd.projectionNodeConstructor=e[t]:Rd[t].Component=e[t])}var zd=function(){},_a=function(){};process.env.NODE_ENV!=="production"&&(zd=function(e,t){!e&&typeof console<"u"&&console.warn(t)},_a=function(e,t){if(!e)throw new Error(t)});var UT=X.createContext({strict:!1}),WT=Object.keys(Rd),aF=WT.length;function sF(e,t,n){var r=[],i=X.useContext(UT);if(!t)return null;HT!=="production"&&n&&i.strict&&_a(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(var o=0;o<aF;o++){var s=WT[o],u=Rd[s],c=u.isEnabled,d=u.Component;c(e)&&d&&r.push(Tn.createElement(d,st({key:s},e,{visualElement:t})))}return r}var ry=X.createContext({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),Mp=X.createContext({});function lF(){return X.useContext(Mp).visualElement}var Lp=X.createContext(null),Bf=typeof document<"u",gw=Bf?X.useLayoutEffect:X.useEffect,Zv={current:null},zT=!1;function uF(){if(zT=!0,!!Bf)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return Zv.current=e.matches};e.addListener(t),t()}else Zv.current=!1}function cF(){!zT&&uF();var e=Gr(X.useState(Zv.current),1),t=e[0];return t}function fF(){var e=cF(),t=X.useContext(ry).reducedMotion;return t==="never"?!1:t==="always"?!0:e}function dF(e,t,n,r){var i=X.useContext(UT),o=lF(),s=X.useContext(Lp),u=fF(),c=X.useRef(void 0);r||(r=i.renderer),!c.current&&r&&(c.current=r(e,{visualState:t,parent:o,props:n,presenceId:s==null?void 0:s.id,blockInitialAnimation:(s==null?void 0:s.initial)===!1,shouldReduceMotion:u}));var d=c.current;return gw(function(){d==null||d.syncRender()}),X.useEffect(function(){var v;(v=d==null?void 0:d.animationState)===null||v===void 0||v.animateChanges()}),gw(function(){return function(){return d==null?void 0:d.notifyUnmount()}},[]),d}function xf(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function hF(e,t,n){return X.useCallback(function(r){var i;r&&((i=e.mount)===null||i===void 0||i.call(e,r)),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):xf(n)&&(n.current=r))},[t])}function YT(e){return Array.isArray(e)}function as(e){return typeof e=="string"||YT(e)}function pF(e){var t={};return e.forEachValue(function(n,r){return t[r]=n.get()}),t}function gF(e){var t={};return e.forEachValue(function(n,r){return t[r]=n.getVelocity()}),t}function GT(e,t,n,r,i){var o;return r===void 0&&(r={}),i===void 0&&(i={}),typeof t=="function"&&(t=t(n??e.custom,r,i)),typeof t=="string"&&(t=(o=e.variants)===null||o===void 0?void 0:o[t]),typeof t=="function"&&(t=t(n??e.custom,r,i)),t}function Fp(e,t,n){var r=e.getProps();return GT(r,t,n??r.custom,pF(e),gF(e))}function Np(e){var t;return typeof((t=e.animate)===null||t===void 0?void 0:t.start)=="function"||as(e.initial)||as(e.animate)||as(e.whileHover)||as(e.whileDrag)||as(e.whileTap)||as(e.whileFocus)||as(e.exit)}function qT(e){return!!(Np(e)||e.variants)}function vF(e,t){if(Np(e)){var n=e.initial,r=e.animate;return{initial:n===!1||as(n)?n:void 0,animate:as(r)?r:void 0}}return e.inherit!==!1?t:{}}function mF(e){var t=vF(e,X.useContext(Mp)),n=t.initial,r=t.animate;return X.useMemo(function(){return{initial:n,animate:r}},[vw(n),vw(r)])}function vw(e){return Array.isArray(e)?e.join(" "):e}function jp(e){var t=X.useRef(null);return t.current===null&&(t.current=e()),t.current}var hd={hasAnimatedSinceResize:!0,hasEverUpdated:!1},yF=1;function bF(){return jp(function(){if(hd.hasEverUpdated)return yF++})}var XT=X.createContext({}),KT=X.createContext({});function wF(e,t,n,r){var i,o=t.layoutId,s=t.layout,u=t.drag,c=t.dragConstraints,d=t.layoutScroll,v=X.useContext(KT);!r||!n||n!=null&&n.projection||(n.projection=new r(e,n.getLatestValues(),(i=n.parent)===null||i===void 0?void 0:i.projection),n.projection.setOptions({layoutId:o,layout:s,alwaysMeasureLayout:!!u||c&&xf(c),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:typeof s=="string"?s:"both",initialPromotionConfig:v,layoutScroll:d}))}var xF=function(e){VT(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var n=this.props,r=n.visualElement,i=n.props;r&&r.setProps(i)},t.prototype.render=function(){return this.props.children},t}(X.Component);function SF(e){var t=e.preloadedFeatures,n=e.createVisualElement,r=e.projectionNodeConstructor,i=e.useRender,o=e.useVisualState,s=e.Component;t&&oF(t);function u(c,d){var v=TF(c);c=st(st({},c),{layoutId:v});var p=X.useContext(ry),S=null,T=mF(c),P=p.isStatic?void 0:bF(),I=o(c,p.isStatic);return!p.isStatic&&Bf&&(T.visualElement=dF(s,I,st(st({},p),c),n),wF(P,c,T.visualElement,r||Rd.projectionNodeConstructor),S=sF(c,T.visualElement,t)),Tn.createElement(xF,{visualElement:T.visualElement,props:st(st({},p),c)},S,Tn.createElement(Mp.Provider,{value:T},i(s,c,P,hF(I,T.visualElement,d),I,p.isStatic,T.visualElement)))}return X.forwardRef(u)}function TF(e){var t,n=e.layoutId,r=(t=X.useContext(XT))===null||t===void 0?void 0:t.id;return r&&n!==void 0?r+"-"+n:n}function CF(e){function t(r,i){return i===void 0&&(i={}),SF(e(r,i))}if(typeof Proxy>"u")return t;var n=new Map;return new Proxy(t,{get:function(r,i){return n.has(i)||n.set(i,t(i)),n.get(i)}})}var EF=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function iy(e){return typeof e!="string"||e.includes("-")?!1:!!(EF.indexOf(e)>-1||/[A-Z]/.test(e))}var sp={};function kF(e){Object.assign(sp,e)}var Jv=["","X","Y","Z"],OF=["translate","scale","rotate","skew"],Id=["transformPerspective","x","y","z"];OF.forEach(function(e){return Jv.forEach(function(t){return Id.push(e+t)})});function DF(e,t){return Id.indexOf(e)-Id.indexOf(t)}var _F=new Set(Id);function Yd(e){return _F.has(e)}var PF=new Set(["originX","originY","originZ"]);function ZT(e){return PF.has(e)}function JT(e,t){var n=t.layout,r=t.layoutId;return Yd(e)||ZT(e)||(n||r!==void 0)&&(!!sp[e]||e==="opacity")}var Ml=function(e){return!!(e!==null&&typeof e=="object"&&e.getVelocity)},RF={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function IF(e,t,n,r){var i=e.transform,o=e.transformKeys,s=t.enableHardwareAcceleration,u=s===void 0?!0:s,c=t.allowTransformNone,d=c===void 0?!0:c,v="";o.sort(DF);for(var p=!1,S=o.length,T=0;T<S;T++){var P=o[T];v+="".concat(RF[P]||P,"(").concat(i[P],") "),P==="z"&&(p=!0)}return!p&&u?v+="translateZ(0)":v=v.trim(),r?v=r(i,n?"":v):d&&n&&(v="none"),v}function AF(e){var t=e.originX,n=t===void 0?"50%":t,r=e.originY,i=r===void 0?"50%":r,o=e.originZ,s=o===void 0?0:o;return"".concat(n," ").concat(i," ").concat(s)}function QT(e){return e.startsWith("--")}var MF=function(e,t){return t&&typeof e=="number"?t.transform(e):e};const eC=(e,t)=>n=>Math.max(Math.min(n,t),e),pd=e=>e%1?Number(e.toFixed(5)):e,Ad=/(-)?([\d]*\.?[\d])+/g,Qv=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,LF=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Gd(e){return typeof e=="string"}const jc={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},gd=Object.assign(Object.assign({},jc),{transform:eC(0,1)}),Th=Object.assign(Object.assign({},jc),{default:1}),qd=e=>({test:t=>Gd(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),vu=qd("deg"),Vs=qd("%"),jt=qd("px"),FF=qd("vh"),NF=qd("vw"),mw=Object.assign(Object.assign({},Vs),{parse:e=>Vs.parse(e)/100,transform:e=>Vs.transform(e*100)}),oy=(e,t)=>n=>!!(Gd(n)&&LF.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),tC=(e,t,n)=>r=>{if(!Gd(r))return r;const[i,o,s,u]=r.match(Ad);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:u!==void 0?parseFloat(u):1}},kc={test:oy("hsl","hue"),parse:tC("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Vs.transform(pd(t))+", "+Vs.transform(pd(n))+", "+pd(gd.transform(r))+")"},jF=eC(0,255),zg=Object.assign(Object.assign({},jc),{transform:e=>Math.round(jF(e))}),Su={test:oy("rgb","red"),parse:tC("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+zg.transform(e)+", "+zg.transform(t)+", "+zg.transform(n)+", "+pd(gd.transform(r))+")"};function BF(e){let t="",n="",r="",i="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const em={test:oy("#"),parse:BF,transform:Su.transform},oo={test:e=>Su.test(e)||em.test(e)||kc.test(e),parse:e=>Su.test(e)?Su.parse(e):kc.test(e)?kc.parse(e):em.parse(e),transform:e=>Gd(e)?e:e.hasOwnProperty("red")?Su.transform(e):kc.transform(e)},nC="${c}",rC="${n}";function $F(e){var t,n,r,i;return isNaN(e)&&Gd(e)&&((n=(t=e.match(Ad))===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0)+((i=(r=e.match(Qv))===null||r===void 0?void 0:r.length)!==null&&i!==void 0?i:0)>0}function iC(e){typeof e=="number"&&(e=`${e}`);const t=[];let n=0;const r=e.match(Qv);r&&(n=r.length,e=e.replace(Qv,nC),t.push(...r.map(oo.parse)));const i=e.match(Ad);return i&&(e=e.replace(Ad,rC),t.push(...i.map(jc.parse))),{values:t,numColors:n,tokenised:e}}function oC(e){return iC(e).values}function aC(e){const{values:t,numColors:n,tokenised:r}=iC(e),i=t.length;return o=>{let s=r;for(let u=0;u<i;u++)s=s.replace(u<n?nC:rC,u<n?oo.transform(o[u]):pd(o[u]));return s}}const VF=e=>typeof e=="number"?0:e;function HF(e){const t=oC(e);return aC(e)(t.map(VF))}const Ll={test:$F,parse:oC,createTransformer:aC,getAnimatableNone:HF},UF=new Set(["brightness","contrast","saturate","opacity"]);function WF(e){let[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Ad)||[];if(!r)return e;const i=n.replace(r,"");let o=UF.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const zF=/([a-z-]*)\(.*?\)/g,tm=Object.assign(Object.assign({},Ll),{getAnimatableNone:e=>{const t=e.match(zF);return t?t.map(WF).join(" "):e}});var yw=st(st({},jc),{transform:Math.round}),sC={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:vu,rotateX:vu,rotateY:vu,rotateZ:vu,scale:Th,scaleX:Th,scaleY:Th,scaleZ:Th,skew:vu,skewX:vu,skewY:vu,distance:jt,translateX:jt,translateY:jt,translateZ:jt,x:jt,y:jt,z:jt,perspective:jt,transformPerspective:jt,opacity:gd,originX:mw,originY:mw,originZ:jt,zIndex:yw,fillOpacity:gd,strokeOpacity:gd,numOctaves:yw};function ay(e,t,n,r){var i,o=e.style,s=e.vars,u=e.transform,c=e.transformKeys,d=e.transformOrigin;c.length=0;var v=!1,p=!1,S=!0;for(var T in t){var P=t[T];if(QT(T)){s[T]=P;continue}var I=sC[T],L=MF(P,I);if(Yd(T)){if(v=!0,u[T]=L,c.push(T),!S)continue;P!==((i=I.default)!==null&&i!==void 0?i:0)&&(S=!1)}else ZT(T)?(d[T]=L,p=!0):o[T]=L}v?o.transform=IF(e,n,S,r):r?o.transform=r({},""):!t.transform&&o.transform&&(o.transform="none"),p&&(o.transformOrigin=AF(d))}var sy=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function lC(e,t,n){for(var r in t)!Ml(t[r])&&!JT(r,n)&&(e[r]=t[r])}function YF(e,t,n){var r=e.transformTemplate;return X.useMemo(function(){var i=sy();ay(i,t,{enableHardwareAcceleration:!n},r);var o=i.vars,s=i.style;return st(st({},o),s)},[t])}function GF(e,t,n){var r=e.style||{},i={};return lC(i,r,e),Object.assign(i,YF(e,t,n)),e.transformValues&&(i=e.transformValues(i)),i}function qF(e,t,n){var r={},i=GF(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":"pan-".concat(e.drag==="x"?"y":"x")),r.style=i,r}var XF=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function lp(e){return XF.has(e)}var uC=function(e){return!lp(e)};function KF(e){e&&(uC=function(t){return t.startsWith("on")?!lp(t):e(t)})}try{KF(require("@emotion/is-prop-valid").default)}catch{}function ZF(e,t,n){var r={};for(var i in e)(uC(i)||n===!0&&lp(i)||!t&&!lp(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function bw(e,t,n){return typeof e=="string"?e:jt.transform(t+n*e)}function JF(e,t,n){var r=bw(t,e.x,e.width),i=bw(n,e.y,e.height);return"".concat(r," ").concat(i)}var QF={offset:"stroke-dashoffset",array:"stroke-dasharray"},eN={offset:"strokeDashoffset",array:"strokeDasharray"};function tN(e,t,n,r,i){n===void 0&&(n=1),r===void 0&&(r=0),i===void 0&&(i=!0),e.pathLength=1;var o=i?QF:eN;e[o.offset]=jt.transform(-r);var s=jt.transform(t),u=jt.transform(n);e[o.array]="".concat(s," ").concat(u)}function ly(e,t,n,r){var i=t.attrX,o=t.attrY,s=t.originX,u=t.originY,c=t.pathLength,d=t.pathSpacing,v=d===void 0?1:d,p=t.pathOffset,S=p===void 0?0:p,T=Ra(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]);ay(e,T,n,r),e.attrs=e.style,e.style={};var P=e.attrs,I=e.style,L=e.dimensions;P.transform&&(L&&(I.transform=P.transform),delete P.transform),L&&(s!==void 0||u!==void 0||I.transform)&&(I.transformOrigin=JF(L,s!==void 0?s:.5,u!==void 0?u:.5)),i!==void 0&&(P.x=i),o!==void 0&&(P.y=o),c!==void 0&&tN(P,c,v,S,!1)}var cC=function(){return st(st({},sy()),{attrs:{}})};function nN(e,t){var n=X.useMemo(function(){var i=cC();return ly(i,t,{enableHardwareAcceleration:!1},e.transformTemplate),st(st({},i.attrs),{style:st({},i.style)})},[t]);if(e.style){var r={};lC(r,e.style,e),n.style=st(st({},r),n.style)}return n}function rN(e){e===void 0&&(e=!1);var t=function(n,r,i,o,s,u){var c=s.latestValues,d=iy(n)?nN:qF,v=d(r,c,u),p=ZF(r,typeof n=="string",e),S=st(st(st({},p),v),{ref:o});return i&&(S["data-projection-id"]=i),X.createElement(n,S)};return t}var iN=/([a-z])([A-Z])/g,oN="$1-$2",fC=function(e){return e.replace(iN,oN).toLowerCase()};function dC(e,t,n,r){var i=t.style,o=t.vars;Object.assign(e.style,i,r&&r.getProjectionStyles(n));for(var s in o)e.style.setProperty(s,o[s])}var hC=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function pC(e,t,n,r){dC(e,t,void 0,r);for(var i in t.attrs)e.setAttribute(hC.has(i)?i:fC(i),t.attrs[i])}function uy(e){var t=e.style,n={};for(var r in t)(Ml(t[r])||JT(r,e))&&(n[r]=t[r]);return n}function gC(e){var t=uy(e);for(var n in e)if(Ml(e[n])){var r=n==="x"||n==="y"?"attr"+n.toUpperCase():n;t[r]=e[n]}return t}function cy(e){return typeof e=="object"&&typeof e.start=="function"}var Md=function(e){return Array.isArray(e)},aN=function(e){return!!(e&&typeof e=="object"&&e.mix&&e.toValue)},vC=function(e){return Md(e)?e[e.length-1]||0:e};function zh(e){var t=Ml(e)?e.get():e;return aN(t)?t.toValue():t}function ww(e,t,n,r){var i=e.scrapeMotionValuesFromProps,o=e.createRenderState,s=e.onMount,u={latestValues:sN(t,n,r,i),renderState:o()};return s&&(u.mount=function(c){return s(t,c,u)}),u}var mC=function(e){return function(t,n){var r=X.useContext(Mp),i=X.useContext(Lp);return n?ww(e,t,r,i):jp(function(){return ww(e,t,r,i)})}};function sN(e,t,n,r){var i={},o=(n==null?void 0:n.initial)===!1,s=r(e);for(var u in s)i[u]=zh(s[u]);var c=e.initial,d=e.animate,v=Np(e),p=qT(e);t&&p&&!v&&e.inherit!==!1&&(c??(c=t.initial),d??(d=t.animate));var S=o||c===!1,T=S?d:c;if(T&&typeof T!="boolean"&&!cy(T)){var P=Array.isArray(T)?T:[T];P.forEach(function(I){var L=GT(e,I);if(L){var R=L.transitionEnd;L.transition;var H=Ra(L,["transitionEnd","transition"]);for(var W in H){var te=H[W];if(Array.isArray(te)){var J=S?te.length-1:0;te=te[J]}te!==null&&(i[W]=te)}for(var W in R)i[W]=R[W]}})}return i}var lN={useVisualState:mC({scrapeMotionValuesFromProps:gC,createRenderState:cC,onMount:function(e,t,n){var r=n.renderState,i=n.latestValues;try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}ly(r,i,{enableHardwareAcceleration:!1},e.transformTemplate),pC(t,r)}})},uN={useVisualState:mC({scrapeMotionValuesFromProps:uy,createRenderState:sy})};function cN(e,t,n,r,i){var o=t.forwardMotionProps,s=o===void 0?!1:o,u=iy(e)?lN:uN;return st(st({},u),{preloadedFeatures:n,useRender:rN(s),createVisualElement:r,projectionNodeConstructor:i,Component:e})}var Bn;(function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"})(Bn||(Bn={}));function Bp(e,t,n,r){return r===void 0&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function nm(e,t,n,r){X.useEffect(function(){var i=e.current;if(n&&i)return Bp(i,t,n,r)},[e,t,n,r])}function fN(e){var t=e.whileFocus,n=e.visualElement,r=function(){var o;(o=n.animationState)===null||o===void 0||o.setActive(Bn.Focus,!0)},i=function(){var o;(o=n.animationState)===null||o===void 0||o.setActive(Bn.Focus,!1)};nm(n,"focus",t?r:void 0),nm(n,"blur",t?i:void 0)}function yC(e){return typeof PointerEvent<"u"&&e instanceof PointerEvent?e.pointerType==="mouse":e instanceof MouseEvent}function bC(e){var t=!!e.touches;return t}function dN(e){return function(t){var n=t instanceof MouseEvent,r=!n||n&&t.button===0;r&&e(t)}}var hN={pageX:0,pageY:0};function pN(e,t){t===void 0&&(t="page");var n=e.touches[0]||e.changedTouches[0],r=n||hN;return{x:r[t+"X"],y:r[t+"Y"]}}function gN(e,t){return t===void 0&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function fy(e,t){return t===void 0&&(t="page"),{point:bC(e)?pN(e,t):gN(e,t)}}var wC=function(e,t){t===void 0&&(t=!1);var n=function(r){return e(r,fy(r))};return t?dN(n):n},vN=function(){return Bf&&window.onpointerdown===null},mN=function(){return Bf&&window.ontouchstart===null},yN=function(){return Bf&&window.onmousedown===null},bN={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},wN={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function xC(e){return vN()?e:mN()?wN[e]:yN()?bN[e]:e}function Df(e,t,n,r){return Bp(e,xC(t),wC(n,t==="pointerdown"),r)}function up(e,t,n,r){return nm(e,xC(t),n&&wC(n,t==="pointerdown"),r)}function SC(e){var t=null;return function(){var n=function(){t=null};return t===null?(t=e,n):!1}}var xw=SC("dragHorizontal"),Sw=SC("dragVertical");function TC(e){var t=!1;if(e==="y")t=Sw();else if(e==="x")t=xw();else{var n=xw(),r=Sw();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function CC(){var e=TC(!0);return e?(e(),!1):!0}function Tw(e,t,n){return function(r,i){var o;!yC(r)||CC()||((o=e.animationState)===null||o===void 0||o.setActive(Bn.Hover,t),n==null||n(r,i))}}function xN(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,i=e.visualElement;up(i,"pointerenter",t||r?Tw(i,!0,t):void 0,{passive:!t}),up(i,"pointerleave",n||r?Tw(i,!1,n):void 0,{passive:!n})}var EC=function(e,t){return t?e===t?!0:EC(e,t.parentElement):!1};function kC(e){return X.useEffect(function(){return function(){return e()}},[])}const cp=(e,t,n)=>Math.min(Math.max(n,e),t),Yg=.001,SN=.01,Cw=10,TN=.05,CN=1;function EN({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;zd(e<=Cw*1e3,"Spring duration must be 10 seconds or less");let s=1-t;s=cp(TN,CN,s),e=cp(SN,Cw,e/1e3),s<1?(i=d=>{const v=d*s,p=v*e,S=v-n,T=rm(d,s),P=Math.exp(-p);return Yg-S/T*P},o=d=>{const p=d*s*e,S=p*n+n,T=Math.pow(s,2)*Math.pow(d,2)*e,P=Math.exp(-p),I=rm(Math.pow(d,2),s);return(-i(d)+Yg>0?-1:1)*((S-T)*P)/I}):(i=d=>{const v=Math.exp(-d*e),p=(d-n)*e+1;return-Yg+v*p},o=d=>{const v=Math.exp(-d*e),p=(n-d)*(e*e);return v*p});const u=5/e,c=ON(i,o,u);if(e=e*1e3,isNaN(c))return{stiffness:100,damping:10,duration:e};{const d=Math.pow(c,2)*r;return{stiffness:d,damping:s*2*Math.sqrt(r*d),duration:e}}}const kN=12;function ON(e,t,n){let r=n;for(let i=1;i<kN;i++)r=r-e(r)/t(r);return r}function rm(e,t){return e*Math.sqrt(1-t*t)}const DN=["duration","bounce"],_N=["stiffness","damping","mass"];function Ew(e,t){return t.some(n=>e[n]!==void 0)}function PN(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Ew(e,_N)&&Ew(e,DN)){const n=EN(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function dy(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,o=Ra(e,["from","to","restSpeed","restDelta"]);const s={done:!1,value:t};let{stiffness:u,damping:c,mass:d,velocity:v,duration:p,isResolvedFromDuration:S}=PN(o),T=kw,P=kw;function I(){const L=v?-(v/1e3):0,R=n-t,H=c/(2*Math.sqrt(u*d)),W=Math.sqrt(u/d)/1e3;if(i===void 0&&(i=Math.min(Math.abs(n-t)/100,.4)),H<1){const te=rm(W,H);T=J=>{const de=Math.exp(-H*W*J);return n-de*((L+H*W*R)/te*Math.sin(te*J)+R*Math.cos(te*J))},P=J=>{const de=Math.exp(-H*W*J);return H*W*de*(Math.sin(te*J)*(L+H*W*R)/te+R*Math.cos(te*J))-de*(Math.cos(te*J)*(L+H*W*R)-te*R*Math.sin(te*J))}}else if(H===1)T=te=>n-Math.exp(-W*te)*(R+(L+W*R)*te);else{const te=W*Math.sqrt(H*H-1);T=J=>{const de=Math.exp(-H*W*J),x=Math.min(te*J,300);return n-de*((L+H*W*R)*Math.sinh(x)+te*R*Math.cosh(x))/te}}}return I(),{next:L=>{const R=T(L);if(S)s.done=L>=p;else{const H=P(L)*1e3,W=Math.abs(H)<=r,te=Math.abs(n-R)<=i;s.done=W&&te}return s.value=s.done?n:R,s},flipTarget:()=>{v=-v,[t,n]=[n,t],I()}}}dy.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const kw=e=>0,Ld=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},lr=(e,t,n)=>-n*e+n*t+e;function Gg(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Ow({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const u=n<.5?n*(1+t):n+t-n*t,c=2*n-u;i=Gg(c,u,e+1/3),o=Gg(c,u,e),s=Gg(c,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const RN=(e,t,n)=>{const r=e*e,i=t*t;return Math.sqrt(Math.max(0,n*(i-r)+r))},IN=[em,Su,kc],Dw=e=>IN.find(t=>t.test(e)),_w=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,OC=(e,t)=>{let n=Dw(e),r=Dw(t);_a(!!n,_w(e)),_a(!!r,_w(t));let i=n.parse(e),o=r.parse(t);n===kc&&(i=Ow(i),n=Su),r===kc&&(o=Ow(o),r=Su);const s=Object.assign({},i);return u=>{for(const c in s)c!=="alpha"&&(s[c]=RN(i[c],o[c],u));return s.alpha=lr(i.alpha,o.alpha,u),n.transform(s)}},im=e=>typeof e=="number",AN=(e,t)=>n=>t(e(n)),$p=(...e)=>e.reduce(AN);function DC(e,t){return im(e)?n=>lr(e,t,n):oo.test(e)?OC(e,t):PC(e,t)}const _C=(e,t)=>{const n=[...e],r=n.length,i=e.map((o,s)=>DC(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}},MN=(e,t)=>{const n=Object.assign(Object.assign({},e),t),r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=DC(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}};function Pw(e){const t=Ll.parse(e),n=t.length;let r=0,i=0,o=0;for(let s=0;s<n;s++)r||typeof t[s]=="number"?r++:t[s].hue!==void 0?o++:i++;return{parsed:t,numNumbers:r,numRGB:i,numHSL:o}}const PC=(e,t)=>{const n=Ll.createTransformer(t),r=Pw(e),i=Pw(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?$p(_C(r.parsed,i.parsed),n):(zd(!0,`Complex values '${e}' and '${t}' 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.`),s=>`${s>0?t:e}`)},LN=(e,t)=>n=>lr(e,t,n);function FN(e){if(typeof e=="number")return LN;if(typeof e=="string")return oo.test(e)?OC:PC;if(Array.isArray(e))return _C;if(typeof e=="object")return MN}function NN(e,t,n){const r=[],i=n||FN(e[0]),o=e.length-1;for(let s=0;s<o;s++){let u=i(e[s],e[s+1]);if(t){const c=Array.isArray(t)?t[s]:t;u=$p(c,u)}r.push(u)}return r}function jN([e,t],[n]){return r=>n(Ld(e,t,r))}function BN(e,t){const n=e.length,r=n-1;return i=>{let o=0,s=!1;if(i<=e[0]?s=!0:i>=e[r]&&(o=r-1,s=!0),!s){let c=1;for(;c<n&&!(e[c]>i||c===r);c++);o=c-1}const u=Ld(e[o],e[o+1],i);return t[o](u)}}function RC(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;_a(o===t.length,"Both input and output ranges must be the same length"),_a(!r||!Array.isArray(r)||r.length===o-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const s=NN(t,r,i),u=o===2?jN(e,s):BN(e,s);return n?c=>u(cp(e[0],e[o-1],c)):u}const Vp=e=>t=>1-e(1-t),hy=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,$N=e=>t=>Math.pow(t,e),IC=e=>t=>t*t*((e+1)*t-e),VN=e=>{const t=IC(e);return n=>(n*=2)<1?.5*t(n):.5*(2-Math.pow(2,-10*(n-1)))},AC=1.525,HN=4/11,UN=8/11,WN=9/10,py=e=>e,gy=$N(2),zN=Vp(gy),MC=hy(gy),LC=e=>1-Math.sin(Math.acos(e)),vy=Vp(LC),YN=hy(vy),my=IC(AC),GN=Vp(my),qN=hy(my),XN=VN(AC),KN=4356/361,ZN=35442/1805,JN=16061/1805,fp=e=>{if(e===1||e===0)return e;const t=e*e;return e<HN?7.5625*t:e<UN?9.075*t-9.9*e+3.4:e<WN?KN*t-ZN*e+JN:10.8*e*e-20.52*e+10.72},QN=Vp(fp),ej=e=>e<.5?.5*(1-fp(1-e*2)):.5*fp(e*2-1)+.5;function tj(e,t){return e.map(()=>t||MC).splice(0,e.length-1)}function nj(e){const t=e.length;return e.map((n,r)=>r!==0?r/(t-1):0)}function rj(e,t){return e.map(n=>n*t)}function Yh({from:e=0,to:t=1,ease:n,offset:r,duration:i=300}){const o={done:!1,value:e},s=Array.isArray(t)?t:[e,t],u=rj(r&&r.length===s.length?r:nj(s),i);function c(){return RC(u,s,{ease:Array.isArray(n)?n:tj(s,n)})}let d=c();return{next:v=>(o.value=d(v),o.done=v>=i,o),flipTarget:()=>{s.reverse(),d=c()}}}function ij({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:o}){const s={done:!1,value:t};let u=n*e;const c=t+u,d=o===void 0?c:o(c);return d!==c&&(u=d-t),{next:v=>{const p=-u*Math.exp(-v/r);return s.done=!(p>i||p<-i),s.value=s.done?d:d+p,s},flipTarget:()=>{}}}const Rw={keyframes:Yh,spring:dy,decay:ij};function oj(e){if(Array.isArray(e.to))return Yh;if(Rw[e.type])return Rw[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Yh:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?dy:Yh}const FC=1/60*1e3,aj=typeof performance<"u"?()=>performance.now():()=>Date.now(),NC=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(aj()),FC);function sj(e){let t=[],n=[],r=0,i=!1,o=!1;const s=new WeakSet,u={schedule:(c,d=!1,v=!1)=>{const p=v&&i,S=p?t:n;return d&&s.add(c),S.indexOf(c)===-1&&(S.push(c),p&&i&&(r=t.length)),c},cancel:c=>{const d=n.indexOf(c);d!==-1&&n.splice(d,1),s.delete(c)},process:c=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let d=0;d<r;d++){const v=t[d];v(c),s.has(v)&&(u.schedule(v),e())}i=!1,o&&(o=!1,u.process(c))}};return u}const lj=40;let om=!0,Fd=!1,am=!1;const _f={delta:0,timestamp:0},Xd=["read","update","preRender","render","postRender"],Hp=Xd.reduce((e,t)=>(e[t]=sj(()=>Fd=!0),e),{}),Hs=Xd.reduce((e,t)=>{const n=Hp[t];return e[t]=(r,i=!1,o=!1)=>(Fd||cj(),n.schedule(r,i,o)),e},{}),If=Xd.reduce((e,t)=>(e[t]=Hp[t].cancel,e),{}),qg=Xd.reduce((e,t)=>(e[t]=()=>Hp[t].process(_f),e),{}),uj=e=>Hp[e].process(_f),jC=e=>{Fd=!1,_f.delta=om?FC:Math.max(Math.min(e-_f.timestamp,lj),1),_f.timestamp=e,am=!0,Xd.forEach(uj),am=!1,Fd&&(om=!1,NC(jC))},cj=()=>{Fd=!0,om=!0,am||NC(jC)},dp=()=>_f;function BC(e,t,n=0){return e-t-n}function fj(e,t,n=0,r=!0){return r?BC(t+-e,t,n):t-(e-t)+n}function dj(e,t,n,r){return r?e>=t+n:e<=-n}const hj=e=>{const t=({delta:n})=>e(n);return{start:()=>Hs.update(t,!0),stop:()=>If.update(t)}};function $C(e){var t,n,{from:r,autoplay:i=!0,driver:o=hj,elapsed:s=0,repeat:u=0,repeatType:c="loop",repeatDelay:d=0,onPlay:v,onStop:p,onComplete:S,onRepeat:T,onUpdate:P}=e,I=Ra(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:L}=I,R,H=0,W=I.duration,te,J=!1,de=!0,x;const ye=oj(I);!((n=(t=ye).needsInterpolation)===null||n===void 0)&&n.call(t,r,L)&&(x=RC([0,100],[r,L],{clamp:!1}),r=0,L=100);const ue=ye(Object.assign(Object.assign({},I),{from:r,to:L}));function Je(){H++,c==="reverse"?(de=H%2===0,s=fj(s,W,d,de)):(s=BC(s,W,d),c==="mirror"&&ue.flipTarget()),J=!1,T&&T()}function Ne(){R.stop(),S&&S()}function $e(qe){if(de||(qe=-qe),s+=qe,!J){const pe=ue.next(Math.max(0,s));te=pe.value,x&&(te=x(te)),J=de?pe.done:s<=0}P==null||P(te),J&&(H===0&&(W??(W=s)),H<u?dj(s,W,d,de)&&Je():Ne())}function Ye(){v==null||v(),R=o($e),R.start()}return i&&Ye(),{stop:()=>{p==null||p(),R.stop()}}}function VC(e,t){return t?e*(1e3/t):0}function pj({from:e=0,velocity:t=0,min:n,max:r,power:i=.8,timeConstant:o=750,bounceStiffness:s=500,bounceDamping:u=10,restDelta:c=1,modifyTarget:d,driver:v,onUpdate:p,onComplete:S,onStop:T}){let P;function I(W){return n!==void 0&&W<n||r!==void 0&&W>r}function L(W){return n===void 0?r:r===void 0||Math.abs(n-W)<Math.abs(r-W)?n:r}function R(W){P==null||P.stop(),P=$C(Object.assign(Object.assign({},W),{driver:v,onUpdate:te=>{var J;p==null||p(te),(J=W.onUpdate)===null||J===void 0||J.call(W,te)},onComplete:S,onStop:T}))}function H(W){R(Object.assign({type:"spring",stiffness:s,damping:u,restDelta:c},W))}if(I(e))H({from:e,velocity:t,to:L(e)});else{let W=i*t+e;typeof d<"u"&&(W=d(W));const te=L(W),J=te===n?-1:1;let de,x;const ye=ue=>{de=x,x=ue,t=VC(ue-de,dp().delta),(J===1&&ue>te||J===-1&&ue<te)&&H({from:ue,to:te,velocity:t})};R({type:"decay",from:e,velocity:t,timeConstant:o,power:i,restDelta:c,modifyTarget:d,onUpdate:I(W)?ye:void 0})}return{stop:()=>P==null?void 0:P.stop()}}const sm=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),Iw=e=>sm(e)&&e.hasOwnProperty("z"),Ch=(e,t)=>Math.abs(e-t);function HC(e,t){if(im(e)&&im(t))return Ch(e,t);if(sm(e)&&sm(t)){const n=Ch(e.x,t.x),r=Ch(e.y,t.y),i=Iw(e)&&Iw(t)?Ch(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}const UC=(e,t)=>1-3*t+3*e,WC=(e,t)=>3*t-6*e,zC=e=>3*e,hp=(e,t,n)=>((UC(t,n)*e+WC(t,n))*e+zC(t))*e,YC=(e,t,n)=>3*UC(t,n)*e*e+2*WC(t,n)*e+zC(t),gj=1e-7,vj=10;function mj(e,t,n,r,i){let o,s,u=0;do s=t+(n-t)/2,o=hp(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>gj&&++u<vj);return s}const yj=8,bj=.001;function wj(e,t,n,r){for(let i=0;i<yj;++i){const o=YC(t,n,r);if(o===0)return t;const s=hp(t,n,r)-e;t-=s/o}return t}const Gh=11,Eh=1/(Gh-1);function xj(e,t,n,r){if(e===t&&n===r)return py;const i=new Float32Array(Gh);for(let s=0;s<Gh;++s)i[s]=hp(s*Eh,e,n);function o(s){let u=0,c=1;const d=Gh-1;for(;c!==d&&i[c]<=s;++c)u+=Eh;--c;const v=(s-i[c])/(i[c+1]-i[c]),p=u+v*Eh,S=YC(p,e,n);return S>=bj?wj(s,p,e,n):S===0?p:mj(s,u,u+Eh,e,n)}return s=>s===0||s===1?s:hp(o(s),t,r)}function Sj(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,i=e.whileTap,o=e.visualElement,s=t||n||r||i,u=X.useRef(!1),c=X.useRef(null),d={passive:!(n||t||r||P)};function v(){var I;(I=c.current)===null||I===void 0||I.call(c),c.current=null}function p(){var I;return v(),u.current=!1,(I=o.animationState)===null||I===void 0||I.setActive(Bn.Tap,!1),!CC()}function S(I,L){p()&&(EC(o.getInstance(),I.target)?t==null||t(I,L):r==null||r(I,L))}function T(I,L){p()&&(r==null||r(I,L))}function P(I,L){var R;v(),!u.current&&(u.current=!0,c.current=$p(Df(window,"pointerup",S,d),Df(window,"pointercancel",T,d)),(R=o.animationState)===null||R===void 0||R.setActive(Bn.Tap,!0),n==null||n(I,L))}up(o,"pointerdown",s?P:void 0,d),kC(v)}var Aw=new Set;function GC(e,t,n){e||Aw.has(t)||(console.warn(t),n&&console.warn(n),Aw.add(t))}var lm=new WeakMap,Xg=new WeakMap,Tj=function(e){var t;(t=lm.get(e.target))===null||t===void 0||t(e)},Cj=function(e){e.forEach(Tj)};function Ej(e){var t=e.root,n=Ra(e,["root"]),r=t||document;Xg.has(r)||Xg.set(r,{});var i=Xg.get(r),o=JSON.stringify(n);return i[o]||(i[o]=new IntersectionObserver(Cj,st({root:t},n))),i[o]}function kj(e,t,n){var r=Ej(t);return lm.set(e,n),r.observe(e),function(){lm.delete(e),r.unobserve(e)}}function Oj(e){var t=e.visualElement,n=e.whileInView,r=e.onViewportEnter,i=e.onViewportLeave,o=e.viewport,s=o===void 0?{}:o,u=X.useRef({hasEnteredView:!1,isInView:!1}),c=!!(n||r||i);s.once&&u.current.hasEnteredView&&(c=!1);var d=typeof IntersectionObserver>"u"?Pj:_j;d(c,u.current,t,s)}var Dj={some:0,all:1};function _j(e,t,n,r){var i=r.root,o=r.margin,s=r.amount,u=s===void 0?"some":s,c=r.once;X.useEffect(function(){if(e){var d={root:i==null?void 0:i.current,rootMargin:o,threshold:typeof u=="number"?u:Dj[u]},v=function(p){var S,T=p.isIntersecting;if(t.isInView!==T&&(t.isInView=T,!(c&&!T&&t.hasEnteredView))){T&&(t.hasEnteredView=!0),(S=n.animationState)===null||S===void 0||S.setActive(Bn.InView,T);var P=n.getProps(),I=T?P.onViewportEnter:P.onViewportLeave;I==null||I(p)}};return kj(n.getInstance(),d,v)}},[e,i,o,u])}function Pj(e,t,n,r){var i=r.fallback,o=i===void 0?!0:i;X.useEffect(function(){!e||!o||(HT!=="production"&&GC(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(function(){var s;t.hasEnteredView=!0;var u=n.getProps().onViewportEnter;u==null||u(null),(s=n.animationState)===null||s===void 0||s.setActive(Bn.InView,!0)}))},[e])}var Tu=function(e){return function(t){return e(t),null}},Rj={inView:Tu(Oj),tap:Tu(Sj),focus:Tu(fN),hover:Tu(xN)},Ij=0,Aj=function(){return Ij++},Mj=function(){return jp(Aj)};function qC(){var e=X.useContext(Lp);if(e===null)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,i=Mj();X.useEffect(function(){return r(i)},[]);var o=function(){return n==null?void 0:n(i)};return!t&&n?[!1,o]:[!0]}function XC(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var pp=function(e){return e*1e3},Mw={linear:py,easeIn:gy,easeInOut:MC,easeOut:zN,circIn:LC,circInOut:YN,circOut:vy,backIn:my,backInOut:qN,backOut:GN,anticipate:XN,bounceIn:QN,bounceInOut:ej,bounceOut:fp},Lw=function(e){if(Array.isArray(e)){_a(e.length===4,"Cubic bezier arrays must contain four numerical values.");var t=Gr(e,4),n=t[0],r=t[1],i=t[2],o=t[3];return xj(n,r,i,o)}else if(typeof e=="string")return _a(Mw[e]!==void 0,"Invalid easing type '".concat(e,"'")),Mw[e];return e},Lj=function(e){return Array.isArray(e)&&typeof e[0]!="number"},Fw=function(e,t){return e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&Ll.test(t)&&!t.startsWith("url("))},mc=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},kh=function(e){return{type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}},Kg=function(){return{type:"keyframes",ease:"linear",duration:.3}},Fj=function(e){return{type:"keyframes",duration:.8,values:e}},Nw={x:mc,y:mc,z:mc,rotate:mc,rotateX:mc,rotateY:mc,rotateZ:mc,scaleX:kh,scaleY:kh,scale:kh,opacity:Kg,backgroundColor:Kg,color:Kg,default:kh},Nj=function(e,t){var n;return Md(t)?n=Fj:n=Nw[e]||Nw.default,st({to:t},n(t))},jj=st(st({},sC),{color:oo,backgroundColor:oo,outlineColor:oo,fill:oo,stroke:oo,borderColor:oo,borderTopColor:oo,borderRightColor:oo,borderBottomColor:oo,borderLeftColor:oo,filter:tm,WebkitFilter:tm}),yy=function(e){return jj[e]};function by(e,t){var n,r=yy(e);return r!==tm&&(r=Ll),(n=r.getAnimatableNone)===null||n===void 0?void 0:n.call(r,t)}function Bj(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=Ra(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}var jw=!1;function $j(e){var t=e.ease,n=e.times,r=e.yoyo,i=e.flip,o=e.loop,s=Ra(e,["ease","times","yoyo","flip","loop"]),u=st({},s);return n&&(u.offset=n),s.duration&&(u.duration=pp(s.duration)),s.repeatDelay&&(u.repeatDelay=pp(s.repeatDelay)),t&&(u.ease=Lj(t)?t.map(Lw):Lw(t)),s.type==="tween"&&(u.type="keyframes"),(r||o||i)&&(zd(!jw,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),jw=!0,r?u.repeatType="reverse":o?u.repeatType="loop":i&&(u.repeatType="mirror"),u.repeat=o||r||i||s.repeat),s.type!=="spring"&&(u.type="keyframes"),u}function Vj(e,t){var n,r,i=wy(e,t)||{};return(r=(n=i.delay)!==null&&n!==void 0?n:e.delay)!==null&&r!==void 0?r:0}function Hj(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=Qo([],Gr(e.to),!1),e.to[0]=e.from),e}function Uj(e,t,n){var r;return Array.isArray(t.to)&&((r=e.duration)!==null&&r!==void 0||(e.duration=.8)),Hj(t),Bj(e)||(e=st(st({},e),Nj(n,t.to))),st(st({},t),$j(e))}function Wj(e,t,n,r,i){var o,s=wy(r,e),u=(o=s.from)!==null&&o!==void 0?o:t.get(),c=Fw(e,n);u==="none"&&c&&typeof n=="string"?u=by(e,n):Bw(u)&&typeof n=="string"?u=$w(n):!Array.isArray(n)&&Bw(n)&&typeof u=="string"&&(n=$w(u));var d=Fw(e,u);zd(d===c,"You are trying to animate ".concat(e,' from "').concat(u,'" to "').concat(n,'". ').concat(u," is not an animatable value - to enable this animation set ").concat(u," to a value animatable to ").concat(n," via the `style` property."));function v(){var S={from:u,to:n,velocity:t.getVelocity(),onComplete:i,onUpdate:function(T){return t.set(T)}};return s.type==="inertia"||s.type==="decay"?pj(st(st({},S),s)):$C(st(st({},Uj(s,S,e)),{onUpdate:function(T){var P;S.onUpdate(T),(P=s.onUpdate)===null||P===void 0||P.call(s,T)},onComplete:function(){var T;S.onComplete(),(T=s.onComplete)===null||T===void 0||T.call(s)}}))}function p(){var S,T,P=vC(n);return t.set(P),i(),(S=s==null?void 0:s.onUpdate)===null||S===void 0||S.call(s,P),(T=s==null?void 0:s.onComplete)===null||T===void 0||T.call(s),{stop:function(){}}}return!d||!c||s.type===!1?p:v}function Bw(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function $w(e){return typeof e=="number"?0:by("",e)}function wy(e,t){return e[t]||e.default||e}function xy(e,t,n,r){return r===void 0&&(r={}),t.start(function(i){var o,s,u=Wj(e,t,n,r,i),c=Vj(r,e),d=function(){return s=u()};return c?o=window.setTimeout(d,pp(c)):d(),function(){clearTimeout(o),s==null||s.stop()}})}var zj=function(e){return/^\-?\d*\.?\d+$/.test(e)},Yj=function(e){return/^0[^.\s]+$/.test(e)};function Sy(e,t){e.indexOf(t)===-1&&e.push(t)}function Ty(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var vd=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(t){var n=this;return Sy(this.subscriptions,t),function(){return Ty(n.subscriptions,t)}},e.prototype.notify=function(t,n,r){var i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(var o=0;o<i;o++){var s=this.subscriptions[o];s&&s(t,n,r)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),Gj=function(e){return!isNaN(parseFloat(e))},qj=function(){function e(t){var n=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new vd,this.velocityUpdateSubscribers=new vd,this.renderSubscribers=new vd,this.canTrackVelocity=!1,this.updateAndNotify=function(r,i){i===void 0&&(i=!0),n.prev=n.current,n.current=r;var o=dp(),s=o.delta,u=o.timestamp;n.lastUpdated!==u&&(n.timeDelta=s,n.lastUpdated=u,Hs.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.updateSubscribers.notify(n.current),n.velocityUpdateSubscribers.getSize()&&n.velocityUpdateSubscribers.notify(n.getVelocity()),i&&n.renderSubscribers.notify(n.current)},this.scheduleVelocityCheck=function(){return Hs.postRender(n.velocityCheck)},this.velocityCheck=function(r){var i=r.timestamp;i!==n.lastUpdated&&(n.prev=n.current,n.velocityUpdateSubscribers.notify(n.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=Gj(this.current)}return e.prototype.onChange=function(t){return this.updateSubscribers.add(t)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(t){return t(this.get()),this.renderSubscribers.add(t)},e.prototype.attach=function(t){this.passiveEffect=t},e.prototype.set=function(t,n){n===void 0&&(n=!0),!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?VC(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(t){var n=this;return this.stop(),new Promise(function(r){n.hasAnimated=!0,n.stopAnimation=t(r)}).then(function(){return n.clearAnimation()})},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function Af(e){return new qj(e)}var KC=function(e){return function(t){return t.test(e)}},Xj={test:function(e){return e==="auto"},parse:function(e){return e}},ZC=[jc,jt,Vs,vu,NF,FF,Xj],id=function(e){return ZC.find(KC(e))},Kj=Qo(Qo([],Gr(ZC),!1),[oo,Ll],!1),Zj=function(e){return Kj.find(KC(e))};function Jj(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Af(n))}function Qj(e,t){var n=Fp(e,t),r=n?e.makeTargetAnimatable(n,!1):{},i=r.transitionEnd,o=i===void 0?{}:i;r.transition;var s=Ra(r,["transitionEnd","transition"]);s=st(st({},s),o);for(var u in s){var c=vC(s[u]);Jj(e,u,c)}}function eB(e,t,n){var r,i,o,s,u=Object.keys(t).filter(function(T){return!e.hasValue(T)}),c=u.length;if(c)for(var d=0;d<c;d++){var v=u[d],p=t[v],S=null;Array.isArray(p)&&(S=p[0]),S===null&&(S=(i=(r=n[v])!==null&&r!==void 0?r:e.readValue(v))!==null&&i!==void 0?i:t[v]),S!=null&&(typeof S=="string"&&(zj(S)||Yj(S))?S=parseFloat(S):!Zj(S)&&Ll.test(p)&&(S=by(v,p)),e.addValue(v,Af(S)),(o=(s=n)[v])!==null&&o!==void 0||(s[v]=S),e.setBaseTarget(v,S))}}function tB(e,t){if(t){var n=t[e]||t.default||t;return n.from}}function nB(e,t,n){var r,i,o={};for(var s in e)o[s]=(r=tB(s,t))!==null&&r!==void 0?r:(i=n.getValue(s))===null||i===void 0?void 0:i.get();return o}function rB(e,t,n){n===void 0&&(n={}),e.notifyAnimationStart(t);var r;if(Array.isArray(t)){var i=t.map(function(s){return um(e,s,n)});r=Promise.all(i)}else if(typeof t=="string")r=um(e,t,n);else{var o=typeof t=="function"?Fp(e,t,n.custom):t;r=JC(e,o,n)}return r.then(function(){return e.notifyAnimationComplete(t)})}function um(e,t,n){var r;n===void 0&&(n={});var i=Fp(e,t,n.custom),o=(i||{}).transition,s=o===void 0?e.getDefaultTransition()||{}:o;n.transitionOverride&&(s=n.transitionOverride);var u=i?function(){return JC(e,i,n)}:function(){return Promise.resolve()},c=!((r=e.variantChildren)===null||r===void 0)&&r.size?function(T){T===void 0&&(T=0);var P=s.delayChildren,I=P===void 0?0:P,L=s.staggerChildren,R=s.staggerDirection;return iB(e,t,I+T,L,R,n)}:function(){return Promise.resolve()},d=s.when;if(d){var v=Gr(d==="beforeChildren"?[u,c]:[c,u],2),p=v[0],S=v[1];return p().then(S)}else return Promise.all([u(),c(n.delay)])}function JC(e,t,n){var r,i=n===void 0?{}:n,o=i.delay,s=o===void 0?0:o,u=i.transitionOverride,c=i.type,d=e.makeTargetAnimatable(t),v=d.transition,p=v===void 0?e.getDefaultTransition():v,S=d.transitionEnd,T=Ra(d,["transition","transitionEnd"]);u&&(p=u);var P=[],I=c&&((r=e.animationState)===null||r===void 0?void 0:r.getState()[c]);for(var L in T){var R=e.getValue(L),H=T[L];if(!(!R||H===void 0||I&&aB(I,L))){var W=st({delay:s},p);e.shouldReduceMotion&&Yd(L)&&(W=st(st({},W),{type:!1,delay:0}));var te=xy(L,R,H,W);P.push(te)}}return Promise.all(P).then(function(){S&&Qj(e,S)})}function iB(e,t,n,r,i,o){n===void 0&&(n=0),r===void 0&&(r=0),i===void 0&&(i=1);var s=[],u=(e.variantChildren.size-1)*r,c=i===1?function(d){return d===void 0&&(d=0),d*r}:function(d){return d===void 0&&(d=0),u-d*r};return Array.from(e.variantChildren).sort(oB).forEach(function(d,v){s.push(um(d,t,st(st({},o),{delay:n+c(v)})).then(function(){return d.notifyAnimationComplete(t)}))}),Promise.all(s)}function oB(e,t){return e.sortNodePosition(t)}function aB(e,t){var n=e.protectedKeys,r=e.needsAnimating,i=n.hasOwnProperty(t)&&r[t]!==!0;return r[t]=!1,i}var Cy=[Bn.Animate,Bn.InView,Bn.Focus,Bn.Hover,Bn.Tap,Bn.Drag,Bn.Exit],sB=Qo([],Gr(Cy),!1).reverse(),lB=Cy.length;function uB(e){return function(t){return Promise.all(t.map(function(n){var r=n.animation,i=n.options;return rB(e,r,i)}))}}function cB(e){var t=uB(e),n=dB(),r={},i=!0,o=function(v,p){var S=Fp(e,p);if(S){S.transition;var T=S.transitionEnd,P=Ra(S,["transition","transitionEnd"]);v=st(st(st({},v),P),T)}return v};function s(v){return r[v]!==void 0}function u(v){t=v(e)}function c(v,p){for(var S,T=e.getProps(),P=e.getVariantContext(!0)||{},I=[],L=new Set,R={},H=1/0,W=function(x){var ye=sB[x],ue=n[ye],Je=(S=T[ye])!==null&&S!==void 0?S:P[ye],Ne=as(Je),$e=ye===p?ue.isActive:null;$e===!1&&(H=x);var Ye=Je===P[ye]&&Je!==T[ye]&&Ne;if(Ye&&i&&e.manuallyAnimateOnMount&&(Ye=!1),ue.protectedKeys=st({},R),!ue.isActive&&$e===null||!Je&&!ue.prevProp||cy(Je)||typeof Je=="boolean")return"continue";var qe=fB(ue.prevProp,Je),pe=qe||ye===p&&ue.isActive&&!Ye&&Ne||x>H&&Ne,Oe=Array.isArray(Je)?Je:[Je],je=Oe.reduce(o,{});$e===!1&&(je={});var Xe=ue.prevResolvedValues,at=Xe===void 0?{}:Xe,Ce=st(st({},at),je),Pe=function(Fe){pe=!0,L.delete(Fe),ue.needsAnimating[Fe]=!0};for(var Ve in Ce){var ze=je[Ve],Re=at[Ve];R.hasOwnProperty(Ve)||(ze!==Re?Md(ze)&&Md(Re)?!XC(ze,Re)||qe?Pe(Ve):ue.protectedKeys[Ve]=!0:ze!==void 0?Pe(Ve):L.add(Ve):ze!==void 0&&L.has(Ve)?Pe(Ve):ue.protectedKeys[Ve]=!0)}ue.prevProp=Je,ue.prevResolvedValues=je,ue.isActive&&(R=st(st({},R),je)),i&&e.blockInitialAnimation&&(pe=!1),pe&&!Ye&&I.push.apply(I,Qo([],Gr(Oe.map(function(Fe){return{animation:Fe,options:st({type:ye},v)}})),!1))},te=0;te<lB;te++)W(te);if(r=st({},R),L.size){var J={};L.forEach(function(x){var ye=e.getBaseTarget(x);ye!==void 0&&(J[x]=ye)}),I.push({animation:J})}var de=!!I.length;return i&&T.initial===!1&&!e.manuallyAnimateOnMount&&(de=!1),i=!1,de?t(I):Promise.resolve()}function d(v,p,S){var T;if(n[v].isActive===p)return Promise.resolve();(T=e.variantChildren)===null||T===void 0||T.forEach(function(L){var R;return(R=L.animationState)===null||R===void 0?void 0:R.setActive(v,p)}),n[v].isActive=p;var P=c(S,v);for(var I in n)n[I].protectedKeys={};return P}return{isAnimated:s,animateChanges:c,setActive:d,setAnimateFunction:u,getState:function(){return n}}}function fB(e,t){return typeof t=="string"?t!==e:YT(t)?!XC(t,e):!1}function yc(e){return e===void 0&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function dB(){var e;return e={},e[Bn.Animate]=yc(!0),e[Bn.InView]=yc(),e[Bn.Hover]=yc(),e[Bn.Tap]=yc(),e[Bn.Drag]=yc(),e[Bn.Focus]=yc(),e[Bn.Exit]=yc(),e}var hB={animation:Tu(function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=cB(t)),cy(n)&&X.useEffect(function(){return n.subscribe(t)},[n])}),exit:Tu(function(e){var t=e.custom,n=e.visualElement,r=Gr(qC(),2),i=r[0],o=r[1],s=X.useContext(Lp);X.useEffect(function(){var u,c;n.isPresent=i;var d=(u=n.animationState)===null||u===void 0?void 0:u.setActive(Bn.Exit,!i,{custom:(c=s==null?void 0:s.custom)!==null&&c!==void 0?c:t});!i&&(d==null||d.then(o))},[i])})},QC=function(){function e(t,n,r){var i=this,o=r===void 0?{}:r,s=o.transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(i.lastMoveEvent&&i.lastMoveEventInfo){var S=Jg(i.lastMoveEventInfo,i.history),T=i.startEvent!==null,P=HC(S.offset,{x:0,y:0})>=3;if(!(!T&&!P)){var I=S.point,L=dp().timestamp;i.history.push(st(st({},I),{timestamp:L}));var R=i.handlers,H=R.onStart,W=R.onMove;T||(H&&H(i.lastMoveEvent,S),i.startEvent=i.lastMoveEvent),W&&W(i.lastMoveEvent,S)}}},this.handlePointerMove=function(S,T){if(i.lastMoveEvent=S,i.lastMoveEventInfo=Zg(T,i.transformPagePoint),yC(S)&&S.buttons===0){i.handlePointerUp(S,T);return}Hs.update(i.updatePoint,!0)},this.handlePointerUp=function(S,T){i.end();var P=i.handlers,I=P.onEnd,L=P.onSessionEnd,R=Jg(Zg(T,i.transformPagePoint),i.history);i.startEvent&&I&&I(S,R),L&&L(S,R)},!(bC(t)&&t.touches.length>1)){this.handlers=n,this.transformPagePoint=s;var u=fy(t),c=Zg(u,this.transformPagePoint),d=c.point,v=dp().timestamp;this.history=[st(st({},d),{timestamp:v})];var p=n.onSessionStart;p&&p(t,Jg(c,this.history)),this.removeListeners=$p(Df(window,"pointermove",this.handlePointerMove),Df(window,"pointerup",this.handlePointerUp),Df(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(t){this.handlers=t},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),If.update(this.updatePoint)},e}();function Zg(e,t){return t?{point:t(e.point)}:e}function Vw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Jg(e,t){var n=e.point;return{point:n,delta:Vw(n,eE(t)),offset:Vw(n,pB(t)),velocity:gB(t,.1)}}function pB(e){return e[0]}function eE(e){return e[e.length-1]}function gB(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,i=eE(e);n>=0&&(r=e[n],!(i.timestamp-r.timestamp>pp(t)));)n--;if(!r)return{x:0,y:0};var o=(i.timestamp-r.timestamp)/1e3;if(o===0)return{x:0,y:0};var s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Fl(e){return e.max-e.min}function Hw(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=.01),HC(e,t)<n}function Uw(e,t,n,r){r===void 0&&(r=.5),e.origin=r,e.originPoint=lr(t.min,t.max,e.origin),e.scale=Fl(n)/Fl(t),(Hw(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=lr(n.min,n.max,e.origin)-e.originPoint,(Hw(e.translate)||isNaN(e.translate))&&(e.translate=0)}function md(e,t,n,r){Uw(e.x,t.x,n.x,r==null?void 0:r.originX),Uw(e.y,t.y,n.y,r==null?void 0:r.originY)}function Ww(e,t,n){e.min=n.min+t.min,e.max=e.min+Fl(t)}function vB(e,t,n){Ww(e.x,t.x,n.x),Ww(e.y,t.y,n.y)}function zw(e,t,n){e.min=t.min-n.min,e.max=e.min+Fl(t)}function yd(e,t,n){zw(e.x,t.x,n.x),zw(e.y,t.y,n.y)}function mB(e,t,n){var r=t.min,i=t.max;return r!==void 0&&e<r?e=n?lr(r,e,n.min):Math.max(e,r):i!==void 0&&e>i&&(e=n?lr(i,e,n.max):Math.min(e,i)),e}function Yw(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function yB(e,t){var n=t.top,r=t.left,i=t.bottom,o=t.right;return{x:Yw(e.x,r,o),y:Yw(e.y,n,i)}}function Gw(e,t){var n,r=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&(n=Gr([i,r],2),r=n[0],i=n[1]),{min:r,max:i}}function bB(e,t){return{x:Gw(e.x,t.x),y:Gw(e.y,t.y)}}function wB(e,t){var n=.5,r=Fl(e),i=Fl(t);return i>r?n=Ld(t.min,t.max-r,e.min):r>i&&(n=Ld(e.min,e.max-i,t.min)),cp(0,1,n)}function xB(e,t){var n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var cm=.35;function SB(e){return e===void 0&&(e=cm),e===!1?e=0:e===!0&&(e=cm),{x:qw(e,"left","right"),y:qw(e,"top","bottom")}}function qw(e,t,n){return{min:Xw(e,t),max:Xw(e,n)}}function Xw(e,t){var n;return typeof e=="number"?e:(n=e[t])!==null&&n!==void 0?n:0}var Kw=function(){return{translate:0,scale:1,origin:0,originPoint:0}},bd=function(){return{x:Kw(),y:Kw()}},Zw=function(){return{min:0,max:0}},Ni=function(){return{x:Zw(),y:Zw()}};function Bs(e){return[e("x"),e("y")]}function tE(e){var t=e.top,n=e.left,r=e.right,i=e.bottom;return{x:{min:n,max:r},y:{min:t,max:i}}}function TB(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}function CB(e,t){if(!t)return e;var n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Qg(e){return e===void 0||e===1}function nE(e){var t=e.scale,n=e.scaleX,r=e.scaleY;return!Qg(t)||!Qg(n)||!Qg(r)}function mu(e){return nE(e)||Jw(e.x)||Jw(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function Jw(e){return e&&e!=="0%"}function gp(e,t,n){var r=e-n,i=t*r;return n+i}function Qw(e,t,n,r,i){return i!==void 0&&(e=gp(e,i,r)),gp(e,n,r)+t}function fm(e,t,n,r,i){t===void 0&&(t=0),n===void 0&&(n=1),e.min=Qw(e.min,t,n,r,i),e.max=Qw(e.max,t,n,r,i)}function rE(e,t){var n=t.x,r=t.y;fm(e.x,n.translate,n.scale,n.originPoint),fm(e.y,r.translate,r.scale,r.originPoint)}function EB(e,t,n,r){var i,o;r===void 0&&(r=!1);var s=n.length;if(s){t.x=t.y=1;for(var u,c,d=0;d<s;d++)u=n[d],c=u.projectionDelta,((o=(i=u.instance)===null||i===void 0?void 0:i.style)===null||o===void 0?void 0:o.display)!=="contents"&&(r&&u.options.layoutScroll&&u.scroll&&u!==u.root&&Sf(e,{x:-u.scroll.x,y:-u.scroll.y}),c&&(t.x*=c.x.scale,t.y*=c.y.scale,rE(e,c)),r&&mu(u.latestValues)&&Sf(e,u.latestValues))}}function bu(e,t){e.min=e.min+t,e.max=e.max+t}function ex(e,t,n){var r=Gr(n,3),i=r[0],o=r[1],s=r[2],u=t[s]!==void 0?t[s]:.5,c=lr(e.min,e.max,u);fm(e,t[i],t[o],c,t.scale)}var kB=["x","scaleX","originX"],OB=["y","scaleY","originY"];function Sf(e,t){ex(e.x,t,kB),ex(e.y,t,OB)}function iE(e,t){return tE(CB(e.getBoundingClientRect(),t))}function DB(e,t,n){var r=iE(e,n),i=t.scroll;return i&&(bu(r.x,i.x),bu(r.y,i.y)),r}var _B=new WeakMap,PB=function(){function e(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ni(),this.visualElement=t}return e.prototype.start=function(t,n){var r=this,i=n===void 0?{}:n,o=i.snapToCursor,s=o===void 0?!1:o;if(this.visualElement.isPresent!==!1){var u=function(p){r.stopAnimation(),s&&r.snapToCursor(fy(p,"page").point)},c=function(p,S){var T,P=r.getProps(),I=P.drag,L=P.dragPropagation,R=P.onDragStart;I&&!L&&(r.openGlobalLock&&r.openGlobalLock(),r.openGlobalLock=TC(I),!r.openGlobalLock)||(r.isDragging=!0,r.currentDirection=null,r.resolveConstraints(),r.visualElement.projection&&(r.visualElement.projection.isAnimationBlocked=!0,r.visualElement.projection.target=void 0),Bs(function(H){var W,te,J=r.getAxisMotionValue(H).get()||0;if(Vs.test(J)){var de=(te=(W=r.visualElement.projection)===null||W===void 0?void 0:W.layout)===null||te===void 0?void 0:te.actual[H];if(de){var x=Fl(de);J=x*(parseFloat(J)/100)}}r.originPoint[H]=J}),R==null||R(p,S),(T=r.visualElement.animationState)===null||T===void 0||T.setActive(Bn.Drag,!0))},d=function(p,S){var T=r.getProps(),P=T.dragPropagation,I=T.dragDirectionLock,L=T.onDirectionLock,R=T.onDrag;if(!(!P&&!r.openGlobalLock)){var H=S.offset;if(I&&r.currentDirection===null){r.currentDirection=RB(H),r.currentDirection!==null&&(L==null||L(r.currentDirection));return}r.updateAxis("x",S.point,H),r.updateAxis("y",S.point,H),r.visualElement.syncRender(),R==null||R(p,S)}},v=function(p,S){return r.stop(p,S)};this.panSession=new QC(t,{onSessionStart:u,onStart:c,onMove:d,onSessionEnd:v},{transformPagePoint:this.visualElement.getTransformPagePoint()})}},e.prototype.stop=function(t,n){var r=this.isDragging;if(this.cancel(),!!r){var i=n.velocity;this.startAnimation(i);var o=this.getProps().onDragEnd;o==null||o(t,n)}},e.prototype.cancel=function(){var t,n;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),(t=this.panSession)===null||t===void 0||t.end(),this.panSession=void 0;var r=this.getProps().dragPropagation;!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),(n=this.visualElement.animationState)===null||n===void 0||n.setActive(Bn.Drag,!1)},e.prototype.updateAxis=function(t,n,r){var i=this.getProps().drag;if(!(!r||!Oh(t,i,this.currentDirection))){var o=this.getAxisMotionValue(t),s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=mB(s,this.constraints[t],this.elastic[t])),o.set(s)}},e.prototype.resolveConstraints=function(){var t=this,n=this.getProps(),r=n.dragConstraints,i=n.dragElastic,o=(this.visualElement.projection||{}).layout,s=this.constraints;r&&xf(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&o?this.constraints=yB(o.actual,r):this.constraints=!1,this.elastic=SB(i),s!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Bs(function(u){t.getAxisMotionValue(u)&&(t.constraints[u]=xB(o.actual[u],t.constraints[u]))})},e.prototype.resolveRefConstraints=function(){var t=this.getProps(),n=t.dragConstraints,r=t.onMeasureDragConstraints;if(!n||!xf(n))return!1;var i=n.current;_a(i!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");var o=this.visualElement.projection;if(!o||!o.layout)return!1;var s=DB(i,o.root,this.visualElement.getTransformPagePoint()),u=bB(o.layout.actual,s);if(r){var c=r(TB(u));this.hasMutatedConstraints=!!c,c&&(u=tE(c))}return u},e.prototype.startAnimation=function(t){var n=this,r=this.getProps(),i=r.drag,o=r.dragMomentum,s=r.dragElastic,u=r.dragTransition,c=r.dragSnapToOrigin,d=r.onDragTransitionEnd,v=this.constraints||{},p=Bs(function(S){var T;if(Oh(S,i,n.currentDirection)){var P=(T=v==null?void 0:v[S])!==null&&T!==void 0?T:{};c&&(P={min:0,max:0});var I=s?200:1e6,L=s?40:1e7,R=st(st({type:"inertia",velocity:o?t[S]:0,bounceStiffness:I,bounceDamping:L,timeConstant:750,restDelta:1,restSpeed:10},u),P);return n.startAxisValueAnimation(S,R)}});return Promise.all(p).then(d)},e.prototype.startAxisValueAnimation=function(t,n){var r=this.getAxisMotionValue(t);return xy(t,r,0,n)},e.prototype.stopAnimation=function(){var t=this;Bs(function(n){return t.getAxisMotionValue(n).stop()})},e.prototype.getAxisMotionValue=function(t){var n,r,i="_drag"+t.toUpperCase(),o=this.visualElement.getProps()[i];return o||this.visualElement.getValue(t,(r=(n=this.visualElement.getProps().initial)===null||n===void 0?void 0:n[t])!==null&&r!==void 0?r:0)},e.prototype.snapToCursor=function(t){var n=this;Bs(function(r){var i=n.getProps().drag;if(Oh(r,i,n.currentDirection)){var o=n.visualElement.projection,s=n.getAxisMotionValue(r);if(o&&o.layout){var u=o.layout.actual[r],c=u.min,d=u.max;s.set(t[r]-lr(c,d,.5))}}})},e.prototype.scalePositionWithinConstraints=function(){var t=this,n,r=this.getProps(),i=r.drag,o=r.dragConstraints,s=this.visualElement.projection;if(!(!xf(o)||!s||!this.constraints)){this.stopAnimation();var u={x:0,y:0};Bs(function(d){var v=t.getAxisMotionValue(d);if(v){var p=v.get();u[d]=wB({min:p,max:p},t.constraints[d])}});var c=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=c?c({},""):"none",(n=s.root)===null||n===void 0||n.updateScroll(),s.updateLayout(),this.resolveConstraints(),Bs(function(d){if(Oh(d,i,null)){var v=t.getAxisMotionValue(d),p=t.constraints[d],S=p.min,T=p.max;v.set(lr(S,T,u[d]))}})}},e.prototype.addListeners=function(){var t=this,n;_B.set(this.visualElement,this);var r=this.visualElement.getInstance(),i=Df(r,"pointerdown",function(d){var v=t.getProps(),p=v.drag,S=v.dragListener,T=S===void 0?!0:S;p&&T&&t.start(d)}),o=function(){var d=t.getProps().dragConstraints;xf(d)&&(t.constraints=t.resolveRefConstraints())},s=this.visualElement.projection,u=s.addEventListener("measure",o);s&&!s.layout&&((n=s.root)===null||n===void 0||n.updateScroll(),s.updateLayout()),o();var c=Bp(window,"resize",function(){return t.scalePositionWithinConstraints()});return s.addEventListener("didUpdate",function(d){var v=d.delta,p=d.hasLayoutChanged;t.isDragging&&p&&(Bs(function(S){var T=t.getAxisMotionValue(S);T&&(t.originPoint[S]+=v[S].translate,T.set(T.get()+v[S].translate))}),t.visualElement.syncRender())}),function(){c(),i(),u()}},e.prototype.getProps=function(){var t=this.visualElement.getProps(),n=t.drag,r=n===void 0?!1:n,i=t.dragDirectionLock,o=i===void 0?!1:i,s=t.dragPropagation,u=s===void 0?!1:s,c=t.dragConstraints,d=c===void 0?!1:c,v=t.dragElastic,p=v===void 0?cm:v,S=t.dragMomentum,T=S===void 0?!0:S;return st(st({},t),{drag:r,dragDirectionLock:o,dragPropagation:u,dragConstraints:d,dragElastic:p,dragMomentum:T})},e}();function Oh(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function RB(e,t){t===void 0&&(t=10);var n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}function IB(e){var t=e.dragControls,n=e.visualElement,r=jp(function(){return new PB(n)});X.useEffect(function(){return t&&t.subscribe(r)},[r,t]),X.useEffect(function(){return r.addListeners()},[r])}function AB(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,i=e.onPanSessionStart,o=e.visualElement,s=t||n||r||i,u=X.useRef(null),c=X.useContext(ry).transformPagePoint,d={onSessionStart:i,onStart:n,onMove:t,onEnd:function(p,S){u.current=null,r&&r(p,S)}};X.useEffect(function(){u.current!==null&&u.current.updateHandlers(d)});function v(p){u.current=new QC(p,d,{transformPagePoint:c})}up(o,"pointerdown",s&&v),kC(function(){return u.current&&u.current.end()})}var MB={pan:Tu(AB),drag:Tu(IB)},Dh=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];function LB(){var e=Dh.map(function(){return new vd}),t={},n={clearAllListeners:function(){return e.forEach(function(r){return r.clear()})},updatePropListeners:function(r){Dh.forEach(function(i){var o,s="on"+i,u=r[s];(o=t[i])===null||o===void 0||o.call(t),u&&(t[i]=n[s](u))})}};return e.forEach(function(r,i){n["on"+Dh[i]]=function(o){return r.add(o)},n["notify"+Dh[i]]=function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];return r.notify.apply(r,Qo([],Gr(o),!1))}}),n}function FB(e,t,n){var r;for(var i in t){var o=t[i],s=n[i];if(Ml(o))e.addValue(i,o),process.env.NODE_ENV==="development"&&GC(o.version==="6.5.1","Attempting to mix Framer Motion versions ".concat(o.version," with 6.5.1 may not work as expected."));else if(Ml(s))e.addValue(i,Af(o));else if(s!==o)if(e.hasValue(i)){var u=e.getValue(i);!u.hasAnimated&&u.set(o)}else e.addValue(i,Af((r=e.getStaticValue(i))!==null&&r!==void 0?r:o))}for(var i in n)t[i]===void 0&&e.removeValue(i);return t}var oE=function(e){var t=e.treeType,n=t===void 0?"":t,r=e.build,i=e.getBaseTarget,o=e.makeTargetAnimatable,s=e.measureViewportBox,u=e.render,c=e.readValueFromInstance,d=e.removeValueFromRenderState,v=e.sortNodePosition,p=e.scrapeMotionValuesFromProps;return function(S,T){var P=S.parent,I=S.props,L=S.presenceId,R=S.blockInitialAnimation,H=S.visualState,W=S.shouldReduceMotion;T===void 0&&(T={});var te=!1,J=H.latestValues,de=H.renderState,x,ye=LB(),ue=new Map,Je=new Map,Ne={},$e=st({},J),Ye;function qe(){!x||!te||(pe(),u(x,de,I.style,ze.projection))}function pe(){r(ze,de,J,T,I)}function Oe(){ye.notifyUpdate(J)}function je(Re,Fe){var Ke=Fe.onChange(function(mt){J[Re]=mt,I.onUpdate&&Hs.update(Oe,!1,!0)}),lt=Fe.onRenderRequest(ze.scheduleRender);Je.set(Re,function(){Ke(),lt()})}var Xe=p(I);for(var at in Xe){var Ce=Xe[at];J[at]!==void 0&&Ml(Ce)&&Ce.set(J[at],!1)}var Pe=Np(I),Ve=qT(I),ze=st(st({treeType:n,current:null,depth:P?P.depth+1:0,parent:P,children:new Set,presenceId:L,shouldReduceMotion:W,variantChildren:Ve?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:!!(P!=null&&P.isMounted()),blockInitialAnimation:R,isMounted:function(){return!!x},mount:function(Re){te=!0,x=ze.current=Re,ze.projection&&ze.projection.mount(Re),Ve&&P&&!Pe&&(Ye=P==null?void 0:P.addVariantChild(ze)),ue.forEach(function(Fe,Ke){return je(Ke,Fe)}),P==null||P.children.add(ze),ze.setProps(I)},unmount:function(){var Re;(Re=ze.projection)===null||Re===void 0||Re.unmount(),If.update(Oe),If.render(qe),Je.forEach(function(Fe){return Fe()}),Ye==null||Ye(),P==null||P.children.delete(ze),ye.clearAllListeners(),x=void 0,te=!1},addVariantChild:function(Re){var Fe,Ke=ze.getClosestVariantNode();if(Ke)return(Fe=Ke.variantChildren)===null||Fe===void 0||Fe.add(Re),function(){return Ke.variantChildren.delete(Re)}},sortNodePosition:function(Re){return!v||n!==Re.treeType?0:v(ze.getInstance(),Re.getInstance())},getClosestVariantNode:function(){return Ve?ze:P==null?void 0:P.getClosestVariantNode()},getLayoutId:function(){return I.layoutId},getInstance:function(){return x},getStaticValue:function(Re){return J[Re]},setStaticValue:function(Re,Fe){return J[Re]=Fe},getLatestValues:function(){return J},setVisibility:function(Re){ze.isVisible!==Re&&(ze.isVisible=Re,ze.scheduleRender())},makeTargetAnimatable:function(Re,Fe){return Fe===void 0&&(Fe=!0),o(ze,Re,I,Fe)},measureViewportBox:function(){return s(x,I)},addValue:function(Re,Fe){ze.hasValue(Re)&&ze.removeValue(Re),ue.set(Re,Fe),J[Re]=Fe.get(),je(Re,Fe)},removeValue:function(Re){var Fe;ue.delete(Re),(Fe=Je.get(Re))===null||Fe===void 0||Fe(),Je.delete(Re),delete J[Re],d(Re,de)},hasValue:function(Re){return ue.has(Re)},getValue:function(Re,Fe){var Ke=ue.get(Re);return Ke===void 0&&Fe!==void 0&&(Ke=Af(Fe),ze.addValue(Re,Ke)),Ke},forEachValue:function(Re){return ue.forEach(Re)},readValue:function(Re){var Fe;return(Fe=J[Re])!==null&&Fe!==void 0?Fe:c(x,Re,T)},setBaseTarget:function(Re,Fe){$e[Re]=Fe},getBaseTarget:function(Re){if(i){var Fe=i(I,Re);if(Fe!==void 0&&!Ml(Fe))return Fe}return $e[Re]}},ye),{build:function(){return pe(),de},scheduleRender:function(){Hs.render(qe,!1,!0)},syncRender:qe,setProps:function(Re){(Re.transformTemplate||I.transformTemplate)&&ze.scheduleRender(),I=Re,ye.updatePropListeners(Re),Ne=FB(ze,p(I),Ne)},getProps:function(){return I},getVariant:function(Re){var Fe;return(Fe=I.variants)===null||Fe===void 0?void 0:Fe[Re]},getDefaultTransition:function(){return I.transition},getTransformPagePoint:function(){return I.transformPagePoint},getVariantContext:function(Re){if(Re===void 0&&(Re=!1),Re)return P==null?void 0:P.getVariantContext();if(!Pe){var Fe=(P==null?void 0:P.getVariantContext())||{};return I.initial!==void 0&&(Fe.initial=I.initial),Fe}for(var Ke={},lt=0;lt<NB;lt++){var mt=aE[lt],wt=I[mt];(as(wt)||wt===!1)&&(Ke[mt]=wt)}return Ke}});return ze}},aE=Qo(["initial"],Gr(Cy),!1),NB=aE.length;function dm(e){return typeof e=="string"&&e.startsWith("var(--")}var sE=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function jB(e){var t=sE.exec(e);if(!t)return[,];var n=Gr(t,3),r=n[1],i=n[2];return[r,i]}var BB=4;function hm(e,t,n){n===void 0&&(n=1),_a(n<=BB,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'));var r=Gr(jB(e),2),i=r[0],o=r[1];if(i){var s=window.getComputedStyle(t).getPropertyValue(i);return s?s.trim():dm(o)?hm(o,t,n+1):o}}function $B(e,t,n){var r,i=Ra(t,[]),o=e.getInstance();if(!(o instanceof Element))return{target:i,transitionEnd:n};n&&(n=st({},n)),e.forEachValue(function(d){var v=d.get();if(dm(v)){var p=hm(v,o);p&&d.set(p)}});for(var s in i){var u=i[s];if(dm(u)){var c=hm(u,o);c&&(i[s]=c,n&&((r=n[s])!==null&&r!==void 0||(n[s]=u)))}}return{target:i,transitionEnd:n}}var VB=new Set(["width","height","top","left","right","bottom","x","y"]),lE=function(e){return VB.has(e)},HB=function(e){return Object.keys(e).some(lE)},uE=function(e,t){e.set(t,!1),e.set(t)},_h=function(e){return e===jc||e===jt},tx;(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"})(tx||(tx={}));var nx=function(e,t){return parseFloat(e.split(", ")[t])},rx=function(e,t){return function(n,r){var i=r.transform;if(i==="none"||!i)return 0;var o=i.match(/^matrix3d\((.+)\)$/);if(o)return nx(o[1],t);var s=i.match(/^matrix\((.+)\)$/);return s?nx(s[1],e):0}},UB=new Set(["x","y","z"]),WB=Id.filter(function(e){return!UB.has(e)});function zB(e){var t=[];return WB.forEach(function(n){var r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.syncRender(),t}var ix={width:function(e,t){var n=e.x,r=t.paddingLeft,i=r===void 0?"0":r,o=t.paddingRight,s=o===void 0?"0":o;return n.max-n.min-parseFloat(i)-parseFloat(s)},height:function(e,t){var n=e.y,r=t.paddingTop,i=r===void 0?"0":r,o=t.paddingBottom,s=o===void 0?"0":o;return n.max-n.min-parseFloat(i)-parseFloat(s)},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.y,r=t.top;return parseFloat(r)+(n.max-n.min)},right:function(e,t){var n=e.x,r=t.left;return parseFloat(r)+(n.max-n.min)},x:rx(4,13),y:rx(5,14)},YB=function(e,t,n){var r=t.measureViewportBox(),i=t.getInstance(),o=getComputedStyle(i),s=o.display,u={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(function(d){u[d]=ix[d](r,o)}),t.syncRender();var c=t.measureViewportBox();return n.forEach(function(d){var v=t.getValue(d);uE(v,u[d]),e[d]=ix[d](c,o)}),e},GB=function(e,t,n,r){n===void 0&&(n={}),r===void 0&&(r={}),t=st({},t),r=st({},r);var i=Object.keys(t).filter(lE),o=[],s=!1,u=[];if(i.forEach(function(v){var p=e.getValue(v);if(e.hasValue(v)){var S=n[v],T=id(S),P=t[v],I;if(Md(P)){var L=P.length,R=P[0]===null?1:0;S=P[R],T=id(S);for(var H=R;H<L;H++)I?_a(id(P[H])===I,"All keyframes must be of the same type"):(I=id(P[H]),_a(I===T||_h(T)&&_h(I),"Keyframes must be of the same dimension as the current value"))}else I=id(P);if(T!==I)if(_h(T)&&_h(I)){var W=p.get();typeof W=="string"&&p.set(parseFloat(W)),typeof P=="string"?t[v]=parseFloat(P):Array.isArray(P)&&I===jt&&(t[v]=P.map(parseFloat))}else T!=null&&T.transform&&(I!=null&&I.transform)&&(S===0||P===0)?S===0?p.set(I.transform(S)):t[v]=T.transform(P):(s||(o=zB(e),s=!0),u.push(v),r[v]=r[v]!==void 0?r[v]:t[v],uE(p,P))}}),u.length){var c=u.indexOf("height")>=0?window.pageYOffset:null,d=YB(t,e,u);return o.length&&o.forEach(function(v){var p=Gr(v,2),S=p[0],T=p[1];e.getValue(S).set(T)}),e.syncRender(),c!==null&&window.scrollTo({top:c}),{target:d,transitionEnd:r}}else return{target:t,transitionEnd:r}};function qB(e,t,n,r){return HB(t)?GB(e,t,n,r):{target:t,transitionEnd:r}}var XB=function(e,t,n,r){var i=$B(e,t,r);return t=i.target,r=i.transitionEnd,qB(e,t,n,r)};function KB(e){return window.getComputedStyle(e)}var cE={treeType:"dom",readValueFromInstance:function(e,t){if(Yd(t)){var n=yy(t);return n&&n.default||0}else{var r=KB(e);return(QT(t)?r.getPropertyValue(t):r[t])||0}},sortNodePosition:function(e,t){return e.compareDocumentPosition(t)&2?1:-1},getBaseTarget:function(e,t){var n;return(n=e.style)===null||n===void 0?void 0:n[t]},measureViewportBox:function(e,t){var n=t.transformPagePoint;return iE(e,n)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,r=t.style;delete n[e],delete r[e]},makeTargetAnimatable:function(e,t,n,r){var i=n.transformValues;r===void 0&&(r=!0);var o=t.transition,s=t.transitionEnd,u=Ra(t,["transition","transitionEnd"]),c=nB(u,o||{},e);if(i&&(s&&(s=i(s)),u&&(u=i(u)),c&&(c=i(c))),r){eB(e,u,c);var d=XB(e,u,c,s);s=d.transitionEnd,u=d.target}return st({transition:o,transitionEnd:s},u)},scrapeMotionValuesFromProps:uy,build:function(e,t,n,r,i){e.isVisible!==void 0&&(t.style.visibility=e.isVisible?"visible":"hidden"),ay(t,n,r,i.transformTemplate)},render:dC},ZB=oE(cE),JB=oE(st(st({},cE),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return Yd(t)?((n=yy(t))===null||n===void 0?void 0:n.default)||0:(t=hC.has(t)?t:fC(t),e.getAttribute(t))},scrapeMotionValuesFromProps:gC,build:function(e,t,n,r,i){ly(t,n,r,i.transformTemplate)},render:pC})),QB=function(e,t){return iy(e)?JB(t,{enableHardwareAcceleration:!1}):ZB(t,{enableHardwareAcceleration:!0})};function ox(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var od={correct:function(e,t){if(!t.target)return e;if(typeof e=="string")if(jt.test(e))e=parseFloat(e);else return e;var n=ox(e,t.target.x),r=ox(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},ax="_$css",e$={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,i=e,o=e.includes("var("),s=[];o&&(e=e.replace(sE,function(I){return s.push(I),ax}));var u=Ll.parse(e);if(u.length>5)return i;var c=Ll.createTransformer(e),d=typeof u[0]!="number"?1:0,v=r.x.scale*n.x,p=r.y.scale*n.y;u[0+d]/=v,u[1+d]/=p;var S=lr(v,p,.5);typeof u[2+d]=="number"&&(u[2+d]/=S),typeof u[3+d]=="number"&&(u[3+d]/=S);var T=c(u);if(o){var P=0;T=T.replace(ax,function(){var I=s[P];return P++,I})}return T}},t$=function(e){VT(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.componentDidMount=function(){var n=this,r=this.props,i=r.visualElement,o=r.layoutGroup,s=r.switchLayoutGroup,u=r.layoutId,c=i.projection;kF(r$),c&&(o!=null&&o.group&&o.group.add(c),s!=null&&s.register&&u&&s.register(c),c.root.didUpdate(),c.addEventListener("animationComplete",function(){n.safeToRemove()}),c.setOptions(st(st({},c.options),{onExitComplete:function(){return n.safeToRemove()}}))),hd.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(n){var r=this,i=this.props,o=i.layoutDependency,s=i.visualElement,u=i.drag,c=i.isPresent,d=s.projection;return d&&(d.isPresent=c,u||n.layoutDependency!==o||o===void 0?d.willUpdate():this.safeToRemove(),n.isPresent!==c&&(c?d.promote():d.relegate()||Hs.postRender(function(){var v;!((v=d.getStack())===null||v===void 0)&&v.members.length||r.safeToRemove()}))),null},t.prototype.componentDidUpdate=function(){var n=this.props.visualElement.projection;n&&(n.root.didUpdate(),!n.currentAnimation&&n.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var n=this.props,r=n.visualElement,i=n.layoutGroup,o=n.switchLayoutGroup,s=r.projection;s&&(s.scheduleCheckAfterUnmount(),i!=null&&i.group&&i.group.remove(s),o!=null&&o.deregister&&o.deregister(s))},t.prototype.safeToRemove=function(){var n=this.props.safeToRemove;n==null||n()},t.prototype.render=function(){return null},t}(X.Component);function n$(e){var t=Gr(qC(),2),n=t[0],r=t[1],i=X.useContext(XT);return X.createElement(t$,st({},e,{layoutGroup:i,switchLayoutGroup:X.useContext(KT),isPresent:n,safeToRemove:r}))}var r$={borderRadius:st(st({},od),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:od,borderTopRightRadius:od,borderBottomLeftRadius:od,borderBottomRightRadius:od,boxShadow:e$},i$={measureLayout:n$};function o$(e,t,n){n===void 0&&(n={});var r=Ml(e)?e:Af(e);return xy("",r,t,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}var fE=["TopLeft","TopRight","BottomLeft","BottomRight"],a$=fE.length,sx=function(e){return typeof e=="string"?parseFloat(e):e},lx=function(e){return typeof e=="number"||jt.test(e)};function s$(e,t,n,r,i,o){var s,u,c,d;i?(e.opacity=lr(0,(s=n.opacity)!==null&&s!==void 0?s:1,l$(r)),e.opacityExit=lr((u=t.opacity)!==null&&u!==void 0?u:1,0,u$(r))):o&&(e.opacity=lr((c=t.opacity)!==null&&c!==void 0?c:1,(d=n.opacity)!==null&&d!==void 0?d:1,r));for(var v=0;v<a$;v++){var p="border".concat(fE[v],"Radius"),S=ux(t,p),T=ux(n,p);if(!(S===void 0&&T===void 0)){S||(S=0),T||(T=0);var P=S===0||T===0||lx(S)===lx(T);P?(e[p]=Math.max(lr(sx(S),sx(T),r),0),(Vs.test(T)||Vs.test(S))&&(e[p]+="%")):e[p]=T}}(t.rotate||n.rotate)&&(e.rotate=lr(t.rotate||0,n.rotate||0,r))}function ux(e,t){var n;return(n=e[t])!==null&&n!==void 0?n:e.borderRadius}var l$=dE(0,.5,vy),u$=dE(.5,.95,py);function dE(e,t,n){return function(r){return r<e?0:r>t?1:n(Ld(e,t,r))}}function cx(e,t){e.min=t.min,e.max=t.max}function is(e,t){cx(e.x,t.x),cx(e.y,t.y)}function fx(e,t,n,r,i){return e-=t,e=gp(e,1/n,r),i!==void 0&&(e=gp(e,1/i,r)),e}function c$(e,t,n,r,i,o,s){if(t===void 0&&(t=0),n===void 0&&(n=1),r===void 0&&(r=.5),o===void 0&&(o=e),s===void 0&&(s=e),Vs.test(t)){t=parseFloat(t);var u=lr(s.min,s.max,t/100);t=u-s.min}if(typeof t=="number"){var c=lr(o.min,o.max,r);e===o&&(c-=t),e.min=fx(e.min,t,n,c,i),e.max=fx(e.max,t,n,c,i)}}function dx(e,t,n,r,i){var o=Gr(n,3),s=o[0],u=o[1],c=o[2];c$(e,t[s],t[u],t[c],t.scale,r,i)}var f$=["x","scaleX","originX"],d$=["y","scaleY","originY"];function hx(e,t,n,r){dx(e.x,t,f$,n==null?void 0:n.x,r==null?void 0:r.x),dx(e.y,t,d$,n==null?void 0:n.y,r==null?void 0:r.y)}function px(e){return e.translate===0&&e.scale===1}function hE(e){return px(e.x)&&px(e.y)}function pE(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}var h$=function(){function e(){this.members=[]}return e.prototype.add=function(t){Sy(this.members,t),t.scheduleRender()},e.prototype.remove=function(t){if(Ty(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){var n=this.members[this.members.length-1];n&&this.promote(n)}},e.prototype.relegate=function(t){var n=this.members.findIndex(function(s){return t===s});if(n===0)return!1;for(var r,i=n;i>=0;i--){var o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1},e.prototype.promote=function(t,n){var r,i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,n&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues,t.snapshot.isShared=!0),!((r=t.root)===null||r===void 0)&&r.isUpdating&&(t.isLayoutDirty=!0);var o=t.options.crossfade;o===!1&&i.hide()}},e.prototype.exitAnimationComplete=function(){this.members.forEach(function(t){var n,r,i,o,s;(r=(n=t.options).onExitComplete)===null||r===void 0||r.call(n),(s=(i=t.resumingFrom)===null||i===void 0?void 0:(o=i.options).onExitComplete)===null||s===void 0||s.call(o)})},e.prototype.scheduleRender=function(){this.members.forEach(function(t){t.instance&&t.scheduleRender(!1)})},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}(),p$="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function gx(e,t,n){var r=e.x.translate/t.x,i=e.y.translate/t.y,o="translate3d(".concat(r,"px, ").concat(i,"px, 0) ");if(o+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),n){var s=n.rotate,u=n.rotateX,c=n.rotateY;s&&(o+="rotate(".concat(s,"deg) ")),u&&(o+="rotateX(".concat(u,"deg) ")),c&&(o+="rotateY(".concat(c,"deg) "))}var d=e.x.scale*t.x,v=e.y.scale*t.y;return o+="scale(".concat(d,", ").concat(v,")"),o===p$?"none":o}var g$=function(e,t){return e.depth-t.depth},v$=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(t){Sy(this.children,t),this.isDirty=!0},e.prototype.remove=function(t){Ty(this.children,t),this.isDirty=!0},e.prototype.forEach=function(t){this.isDirty&&this.children.sort(g$),this.isDirty=!1,this.children.forEach(t)},e}(),vx=1e3;function gE(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,i=e.checkIsScrollRoot,o=e.resetTransform;return function(){function s(u,c,d){var v=this;c===void 0&&(c={}),d===void 0&&(d=n==null?void 0:n()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!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.potentialNodes=new Map,this.checkUpdateFailed=function(){v.isUpdating&&(v.isUpdating=!1,v.clearAllSnapshots())},this.updateProjection=function(){v.nodes.forEach(S$),v.nodes.forEach(T$)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=u,this.latestValues=c,this.root=d?d.root||d:this,this.path=d?Qo(Qo([],Gr(d.path),!1),[d],!1):[],this.parent=d,this.depth=d?d.depth+1:0,u&&this.root.registerPotentialNode(u,this);for(var p=0;p<this.path.length;p++)this.path[p].shouldResetTransform=!0;this.root===this&&(this.nodes=new v$)}return s.prototype.addEventListener=function(u,c){return this.eventHandlers.has(u)||this.eventHandlers.set(u,new vd),this.eventHandlers.get(u).add(c)},s.prototype.notifyListeners=function(u){for(var c=[],d=1;d<arguments.length;d++)c[d-1]=arguments[d];var v=this.eventHandlers.get(u);v==null||v.notify.apply(v,Qo([],Gr(c),!1))},s.prototype.hasListeners=function(u){return this.eventHandlers.has(u)},s.prototype.registerPotentialNode=function(u,c){this.potentialNodes.set(u,c)},s.prototype.mount=function(u,c){var d=this,v;if(c===void 0&&(c=!1),!this.instance){this.isSVG=u instanceof SVGElement&&u.tagName!=="svg",this.instance=u;var p=this.options,S=p.layoutId,T=p.layout,P=p.visualElement;if(P&&!P.getInstance()&&P.mount(u),this.root.nodes.add(this),(v=this.parent)===null||v===void 0||v.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),c&&(T||S)&&(this.isLayoutDirty=!0),t){var I,L=function(){return d.root.updateBlockedByResize=!1};t(u,function(){d.root.updateBlockedByResize=!0,clearTimeout(I),I=window.setTimeout(L,250),hd.hasAnimatedSinceResize&&(hd.hasAnimatedSinceResize=!1,d.nodes.forEach(x$))})}S&&this.root.registerSharedNode(S,this),this.options.animate!==!1&&P&&(S||T)&&this.addEventListener("didUpdate",function(R){var H,W,te,J,de,x=R.delta,ye=R.hasLayoutChanged,ue=R.hasRelativeTargetChanged,Je=R.layout;if(d.isTreeAnimationBlocked()){d.target=void 0,d.relativeTarget=void 0;return}var Ne=(W=(H=d.options.transition)!==null&&H!==void 0?H:P.getDefaultTransition())!==null&&W!==void 0?W:D$,$e=P.getProps(),Ye=$e.onLayoutAnimationStart,qe=$e.onLayoutAnimationComplete,pe=!d.targetLayout||!pE(d.targetLayout,Je)||ue,Oe=!ye&&ue;if(!((te=d.resumeFrom)===null||te===void 0)&&te.instance||Oe||ye&&(pe||!d.currentAnimation)){d.resumeFrom&&(d.resumingFrom=d.resumeFrom,d.resumingFrom.resumingFrom=void 0),d.setAnimationOrigin(x,Oe);var je=st(st({},wy(Ne,"layout")),{onPlay:Ye,onComplete:qe});P.shouldReduceMotion&&(je.delay=0,je.type=!1),d.startAnimation(je)}else!ye&&d.animationProgress===0&&d.finishAnimation(),d.isLead()&&((de=(J=d.options).onExitComplete)===null||de===void 0||de.call(J));d.targetLayout=Je})}},s.prototype.unmount=function(){var u,c;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(u=this.getStack())===null||u===void 0||u.remove(this),(c=this.parent)===null||c===void 0||c.children.delete(this),this.instance=void 0,If.preRender(this.updateProjection)},s.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},s.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},s.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},s.prototype.isTreeAnimationBlocked=function(){var u;return this.isAnimationBlocked||((u=this.parent)===null||u===void 0?void 0:u.isTreeAnimationBlocked())||!1},s.prototype.startUpdate=function(){var u;this.isUpdateBlocked()||(this.isUpdating=!0,(u=this.nodes)===null||u===void 0||u.forEach(C$))},s.prototype.willUpdate=function(u){var c,d,v;if(u===void 0&&(u=!0),this.root.isUpdateBlocked()){(d=(c=this.options).onExitComplete)===null||d===void 0||d.call(c);return}if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var p=0;p<this.path.length;p++){var S=this.path[p];S.shouldResetTransform=!0,S.updateScroll()}var T=this.options,P=T.layoutId,I=T.layout;if(!(P===void 0&&!I)){var L=(v=this.options.visualElement)===null||v===void 0?void 0:v.getProps().transformTemplate;this.prevTransformTemplateValue=L==null?void 0:L(this.latestValues,""),this.updateSnapshot(),u&&this.notifyListeners("willUpdate")}}},s.prototype.didUpdate=function(){var u=this.isUpdateBlocked();if(u){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(mx);return}this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(_$),this.potentialNodes.clear()),this.nodes.forEach(w$),this.nodes.forEach(m$),this.nodes.forEach(y$),this.clearAllSnapshots(),qg.update(),qg.preRender(),qg.render())},s.prototype.clearAllSnapshots=function(){this.nodes.forEach(b$),this.sharedNodes.forEach(E$)},s.prototype.scheduleUpdateProjection=function(){Hs.preRender(this.updateProjection,!1,!0)},s.prototype.scheduleCheckAfterUnmount=function(){var u=this;Hs.postRender(function(){u.isLayoutDirty?u.root.didUpdate():u.root.checkUpdateFailed()})},s.prototype.updateSnapshot=function(){if(!(this.snapshot||!this.instance)){var u=this.measure(),c=this.removeTransform(this.removeElementScroll(u));xx(c),this.snapshot={measured:u,layout:c,latestValues:{}}}},s.prototype.updateLayout=function(){var u;if(this.instance&&(this.updateScroll(),!(!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))){if(this.resumeFrom&&!this.resumeFrom.instance)for(var c=0;c<this.path.length;c++){var d=this.path[c];d.updateScroll()}var v=this.measure();xx(v);var p=this.layout;this.layout={measured:v,actual:this.removeElementScroll(v)},this.layoutCorrected=Ni(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),(u=this.options.visualElement)===null||u===void 0||u.notifyLayoutMeasure(this.layout.actual,p==null?void 0:p.actual)}},s.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=i(this.instance),this.scroll=r(this.instance))},s.prototype.resetTransform=function(){var u;if(o){var c=this.isLayoutDirty||this.shouldResetTransform,d=this.projectionDelta&&!hE(this.projectionDelta),v=(u=this.options.visualElement)===null||u===void 0?void 0:u.getProps().transformTemplate,p=v==null?void 0:v(this.latestValues,""),S=p!==this.prevTransformTemplateValue;c&&(d||mu(this.latestValues)||S)&&(o(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}},s.prototype.measure=function(){var u=this.options.visualElement;if(!u)return Ni();var c=u.measureViewportBox(),d=this.root.scroll;return d&&(bu(c.x,d.x),bu(c.y,d.y)),c},s.prototype.removeElementScroll=function(u){var c=Ni();is(c,u);for(var d=0;d<this.path.length;d++){var v=this.path[d],p=v.scroll,S=v.options,T=v.isScrollRoot;if(v!==this.root&&p&&S.layoutScroll){if(T){is(c,u);var P=this.root.scroll;P&&(bu(c.x,-P.x),bu(c.y,-P.y))}bu(c.x,p.x),bu(c.y,p.y)}}return c},s.prototype.applyTransform=function(u,c){c===void 0&&(c=!1);var d=Ni();is(d,u);for(var v=0;v<this.path.length;v++){var p=this.path[v];!c&&p.options.layoutScroll&&p.scroll&&p!==p.root&&Sf(d,{x:-p.scroll.x,y:-p.scroll.y}),mu(p.latestValues)&&Sf(d,p.latestValues)}return mu(this.latestValues)&&Sf(d,this.latestValues),d},s.prototype.removeTransform=function(u){var c,d=Ni();is(d,u);for(var v=0;v<this.path.length;v++){var p=this.path[v];if(p.instance&&mu(p.latestValues)){nE(p.latestValues)&&p.updateSnapshot();var S=Ni(),T=p.measure();is(S,T),hx(d,p.latestValues,(c=p.snapshot)===null||c===void 0?void 0:c.layout,S)}}return mu(this.latestValues)&&hx(d,this.latestValues),d},s.prototype.setTargetDelta=function(u){this.targetDelta=u,this.root.scheduleUpdateProjection()},s.prototype.setOptions=function(u){var c;this.options=st(st(st({},this.options),u),{crossfade:(c=u.crossfade)!==null&&c!==void 0?c:!0})},s.prototype.clearMeasurements=function(){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},s.prototype.resolveTargetDelta=function(){var u,c=this.options,d=c.layout,v=c.layoutId;!this.layout||!(d||v)||(!this.targetDelta&&!this.relativeTarget&&(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget=Ni(),this.relativeTargetOrigin=Ni(),yd(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),is(this.relativeTarget,this.relativeTargetOrigin))),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Ni(),this.targetWithTransforms=Ni()),this.relativeTarget&&this.relativeTargetOrigin&&(!((u=this.relativeParent)===null||u===void 0)&&u.target)?vB(this.target,this.relativeTarget,this.relativeParent.target):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.actual):is(this.target,this.layout.actual),rE(this.target,this.targetDelta)):is(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&!!this.relativeParent.resumingFrom==!!this.resumingFrom&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget=Ni(),this.relativeTargetOrigin=Ni(),yd(this.relativeTargetOrigin,this.target,this.relativeParent.target),is(this.relativeTarget,this.relativeTargetOrigin)))))},s.prototype.getClosestProjectingParent=function(){if(!(!this.parent||mu(this.parent.latestValues)))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},s.prototype.calcProjection=function(){var u,c=this.options,d=c.layout,v=c.layoutId;if(this.isTreeAnimating=!!(!((u=this.parent)===null||u===void 0)&&u.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!(!this.layout||!(d||v))){var p=this.getLead();is(this.layoutCorrected,this.layout.actual),EB(this.layoutCorrected,this.treeScale,this.path,!!this.resumingFrom||this!==p);var S=p.target;if(S){this.projectionDelta||(this.projectionDelta=bd(),this.projectionDeltaWithTransform=bd());var T=this.treeScale.x,P=this.treeScale.y,I=this.projectionTransform;md(this.projectionDelta,this.layoutCorrected,S,this.latestValues),this.projectionTransform=gx(this.projectionDelta,this.treeScale),(this.projectionTransform!==I||this.treeScale.x!==T||this.treeScale.y!==P)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S))}}},s.prototype.hide=function(){this.isVisible=!1},s.prototype.show=function(){this.isVisible=!0},s.prototype.scheduleRender=function(u){var c,d,v;u===void 0&&(u=!0),(d=(c=this.options).scheduleRender)===null||d===void 0||d.call(c),u&&((v=this.getStack())===null||v===void 0||v.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},s.prototype.setAnimationOrigin=function(u,c){var d=this,v;c===void 0&&(c=!1);var p=this.snapshot,S=(p==null?void 0:p.latestValues)||{},T=st({},this.latestValues),P=bd();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!c;var I=Ni(),L=p==null?void 0:p.isShared,R=(((v=this.getStack())===null||v===void 0?void 0:v.members.length)||0)<=1,H=!!(L&&!R&&this.options.crossfade===!0&&!this.path.some(O$));this.animationProgress=0,this.mixTargetDelta=function(W){var te,J=W/1e3;yx(P.x,u.x,J),yx(P.y,u.y,J),d.setTargetDelta(P),d.relativeTarget&&d.relativeTargetOrigin&&d.layout&&(!((te=d.relativeParent)===null||te===void 0)&&te.layout)&&(yd(I,d.layout.actual,d.relativeParent.layout.actual),k$(d.relativeTarget,d.relativeTargetOrigin,I,J)),L&&(d.animationValues=T,s$(T,S,d.latestValues,J,H,R)),d.root.scheduleUpdateProjection(),d.scheduleRender(),d.animationProgress=J},this.mixTargetDelta(0)},s.prototype.startAnimation=function(u){var c=this,d,v;this.notifyListeners("animationStart"),(d=this.currentAnimation)===null||d===void 0||d.stop(),this.resumingFrom&&((v=this.resumingFrom.currentAnimation)===null||v===void 0||v.stop()),this.pendingAnimation&&(If.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Hs.update(function(){hd.hasAnimatedSinceResize=!0,c.currentAnimation=o$(0,vx,st(st({},u),{onUpdate:function(p){var S;c.mixTargetDelta(p),(S=u.onUpdate)===null||S===void 0||S.call(u,p)},onComplete:function(){var p;(p=u.onComplete)===null||p===void 0||p.call(u),c.completeAnimation()}})),c.resumingFrom&&(c.resumingFrom.currentAnimation=c.currentAnimation),c.pendingAnimation=void 0})},s.prototype.completeAnimation=function(){var u;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),(u=this.getStack())===null||u===void 0||u.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},s.prototype.finishAnimation=function(){var u;this.currentAnimation&&((u=this.mixTargetDelta)===null||u===void 0||u.call(this,vx),this.currentAnimation.stop()),this.completeAnimation()},s.prototype.applyTransformsToTarget=function(){var u=this.getLead(),c=u.targetWithTransforms,d=u.target,v=u.layout,p=u.latestValues;!c||!d||!v||(is(c,d),Sf(c,p),md(this.projectionDeltaWithTransform,this.layoutCorrected,c,p))},s.prototype.registerSharedNode=function(u,c){var d,v,p;this.sharedNodes.has(u)||this.sharedNodes.set(u,new h$);var S=this.sharedNodes.get(u);S.add(c),c.promote({transition:(d=c.options.initialPromotionConfig)===null||d===void 0?void 0:d.transition,preserveFollowOpacity:(p=(v=c.options.initialPromotionConfig)===null||v===void 0?void 0:v.shouldPreserveFollowOpacity)===null||p===void 0?void 0:p.call(v,c)})},s.prototype.isLead=function(){var u=this.getStack();return u?u.lead===this:!0},s.prototype.getLead=function(){var u,c=this.options.layoutId;return c?((u=this.getStack())===null||u===void 0?void 0:u.lead)||this:this},s.prototype.getPrevLead=function(){var u,c=this.options.layoutId;return c?(u=this.getStack())===null||u===void 0?void 0:u.prevLead:void 0},s.prototype.getStack=function(){var u=this.options.layoutId;if(u)return this.root.sharedNodes.get(u)},s.prototype.promote=function(u){var c=u===void 0?{}:u,d=c.needsReset,v=c.transition,p=c.preserveFollowOpacity,S=this.getStack();S&&S.promote(this,p),d&&(this.projectionDelta=void 0,this.needsReset=!0),v&&this.setOptions({transition:v})},s.prototype.relegate=function(){var u=this.getStack();return u?u.relegate(this):!1},s.prototype.resetRotation=function(){var u=this.options.visualElement;if(u){for(var c=!1,d={},v=0;v<Jv.length;v++){var p=Jv[v],S="rotate"+p;u.getStaticValue(S)&&(c=!0,d[S]=u.getStaticValue(S),u.setStaticValue(S,0))}if(c){u==null||u.syncRender();for(var S in d)u.setStaticValue(S,d[S]);u.scheduleRender()}}},s.prototype.getProjectionStyles=function(u){var c,d,v,p,S,T;u===void 0&&(u={});var P={};if(!this.instance||this.isSVG)return P;if(this.isVisible)P.visibility="";else return{visibility:"hidden"};var I=(c=this.options.visualElement)===null||c===void 0?void 0:c.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,P.opacity="",P.pointerEvents=zh(u.pointerEvents)||"",P.transform=I?I(this.latestValues,""):"none",P;var L=this.getLead();if(!this.projectionDelta||!this.layout||!L.target){var R={};return this.options.layoutId&&(R.opacity=(d=this.latestValues.opacity)!==null&&d!==void 0?d:1,R.pointerEvents=zh(u.pointerEvents)||""),this.hasProjected&&!mu(this.latestValues)&&(R.transform=I?I({},""):"none",this.hasProjected=!1),R}var H=L.animationValues||L.latestValues;this.applyTransformsToTarget(),P.transform=gx(this.projectionDeltaWithTransform,this.treeScale,H),I&&(P.transform=I(H,P.transform));var W=this.projectionDelta,te=W.x,J=W.y;P.transformOrigin="".concat(te.origin*100,"% ").concat(J.origin*100,"% 0"),L.animationValues?P.opacity=L===this?(p=(v=H.opacity)!==null&&v!==void 0?v:this.latestValues.opacity)!==null&&p!==void 0?p:1:this.preserveOpacity?this.latestValues.opacity:H.opacityExit:P.opacity=L===this?(S=H.opacity)!==null&&S!==void 0?S:"":(T=H.opacityExit)!==null&&T!==void 0?T:0;for(var de in sp)if(H[de]!==void 0){var x=sp[de],ye=x.correct,ue=x.applyTo,Je=ye(H[de],L);if(ue)for(var Ne=ue.length,$e=0;$e<Ne;$e++)P[ue[$e]]=Je;else P[de]=Je}return this.options.layoutId&&(P.pointerEvents=L===this?zh(u.pointerEvents)||"":"none"),P},s.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},s.prototype.resetTree=function(){this.root.nodes.forEach(function(u){var c;return(c=u.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(mx),this.root.sharedNodes.clear()},s}()}function m$(e){e.updateLayout()}function y$(e){var t,n,r,i,o=(n=(t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)!==null&&n!==void 0?n:e.snapshot;if(e.isLead()&&e.layout&&o&&e.hasListeners("didUpdate")){var s=e.layout,u=s.actual,c=s.measured;e.options.animationType==="size"?Bs(function(H){var W=o.isShared?o.measured[H]:o.layout[H],te=Fl(W);W.min=u[H].min,W.max=W.min+te}):e.options.animationType==="position"&&Bs(function(H){var W=o.isShared?o.measured[H]:o.layout[H],te=Fl(u[H]);W.max=W.min+te});var d=bd();md(d,u,o.layout);var v=bd();o.isShared?md(v,e.applyTransform(c,!0),o.measured):md(v,u,o.layout);var p=!hE(d),S=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var T=e.relativeParent,P=T.snapshot,I=T.layout;if(P&&I){var L=Ni();yd(L,o.layout,P.layout);var R=Ni();yd(R,u,I.actual),pE(L,R)||(S=!0)}}e.notifyListeners("didUpdate",{layout:u,snapshot:o,delta:v,layoutDelta:d,hasLayoutChanged:p,hasRelativeTargetChanged:S})}else e.isLead()&&((i=(r=e.options).onExitComplete)===null||i===void 0||i.call(r));e.options.transition=void 0}function b$(e){e.clearSnapshot()}function mx(e){e.clearMeasurements()}function w$(e){var t=e.options.visualElement;t!=null&&t.getProps().onBeforeLayoutMeasure&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function x$(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function S$(e){e.resolveTargetDelta()}function T$(e){e.calcProjection()}function C$(e){e.resetRotation()}function E$(e){e.removeLeadSnapshot()}function yx(e,t,n){e.translate=lr(t.translate,0,n),e.scale=lr(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function bx(e,t,n,r){e.min=lr(t.min,n.min,r),e.max=lr(t.max,n.max,r)}function k$(e,t,n,r){bx(e.x,t.x,n.x,r),bx(e.y,t.y,n.y,r)}function O$(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var D$={duration:.45,ease:[.4,0,.1,1]};function _$(e,t){for(var n=e.root,r=e.path.length-1;r>=0;r--)if(e.path[r].instance){n=e.path[r];break}var i=n&&n!==e.root?n.instance:document,o=i.querySelector('[data-projection-id="'.concat(t,'"]'));o&&e.mount(o,!0)}function wx(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function xx(e){wx(e.x),wx(e.y)}var P$=gE({attachResizeListener:function(e,t){return Bp(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),ev={current:void 0},R$=gE({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!ev.current){var e=new P$(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),ev.current=e}return ev.current},resetTransform:function(e,t){e.style.transform=t??"none"},checkIsScrollRoot:function(e){return window.getComputedStyle(e).position==="fixed"}}),I$=st(st(st(st({},hB),Rj),MB),i$),A$=CF(function(e,t){return cN(e,t,I$,QB,R$)});function pm(e,t,n){var r,i,o,s,u;t==null&&(t=100);function c(){var v=Date.now()-s;v<t&&v>=0?r=setTimeout(c,t-v):(r=null,n||(u=e.apply(o,i),o=i=null))}var d=function(){o=this,i=arguments,s=Date.now();var v=n&&!r;return r||(r=setTimeout(c,t)),v&&(u=e.apply(o,i),o=i=null),u};return d.clear=function(){r&&(clearTimeout(r),r=null)},d.flush=function(){r&&(u=e.apply(o,i),o=i=null,clearTimeout(r),r=null)},d}pm.debounce=pm;var M$=pm;const Sx=Mu(M$);function L$(e){let{debounce:t,scroll:n,polyfill:r,offsetSize:i}=e===void 0?{debounce:0,scroll:!1,offsetSize:!1}:e;const o=r||(typeof window>"u"?class{}:window.ResizeObserver);if(!o)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[s,u]=X.useState({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),c=X.useRef({element:null,scrollContainers:null,resizeObserver:null,lastBounds:s}),d=t?typeof t=="number"?t:t.scroll:null,v=t?typeof t=="number"?t:t.resize:null,p=X.useRef(!1);X.useEffect(()=>(p.current=!0,()=>void(p.current=!1)));const[S,T,P]=X.useMemo(()=>{const H=()=>{if(!c.current.element)return;const{left:W,top:te,width:J,height:de,bottom:x,right:ye,x:ue,y:Je}=c.current.element.getBoundingClientRect(),Ne={left:W,top:te,width:J,height:de,bottom:x,right:ye,x:ue,y:Je};c.current.element instanceof HTMLElement&&i&&(Ne.height=c.current.element.offsetHeight,Ne.width=c.current.element.offsetWidth),Object.freeze(Ne),p.current&&!B$(c.current.lastBounds,Ne)&&u(c.current.lastBounds=Ne)};return[H,v?Sx(H,v):H,d?Sx(H,d):H]},[u,i,d,v]);function I(){c.current.scrollContainers&&(c.current.scrollContainers.forEach(H=>H.removeEventListener("scroll",P,!0)),c.current.scrollContainers=null),c.current.resizeObserver&&(c.current.resizeObserver.disconnect(),c.current.resizeObserver=null)}function L(){c.current.element&&(c.current.resizeObserver=new o(P),c.current.resizeObserver.observe(c.current.element),n&&c.current.scrollContainers&&c.current.scrollContainers.forEach(H=>H.addEventListener("scroll",P,{capture:!0,passive:!0})))}const R=H=>{!H||H===c.current.element||(I(),c.current.element=H,c.current.scrollContainers=vE(H),L())};return N$(P,!!n),F$(T),X.useEffect(()=>{I(),L()},[n,P,T]),X.useEffect(()=>I,[]),[R,s,S]}function F$(e){X.useEffect(()=>{const t=e;return window.addEventListener("resize",t),()=>void window.removeEventListener("resize",t)},[e])}function N$(e,t){X.useEffect(()=>{if(t){const n=e;return window.addEventListener("scroll",n,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",n,!0)}},[e,t])}function vE(e){const t=[];if(!e||e===document.body)return t;const{overflow:n,overflowX:r,overflowY:i}=window.getComputedStyle(e);return[n,r,i].some(o=>o==="auto"||o==="scroll")&&t.push(e),[...t,...vE(e.parentElement)]}const j$=["x","y","top","bottom","left","right","width","height"],B$=(e,t)=>j$.every(n=>e[n]===t[n]),mE=X.createContext({dragDropManager:void 0});function xa(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Tx=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),tv=function(){return Math.random().toString(36).substring(7).split("").join(".")},Cx={INIT:"@@redux/INIT"+tv(),REPLACE:"@@redux/REPLACE"+tv(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+tv()}};function $$(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function V$(e){if(e===void 0)return"undefined";if(e===null)return"null";var t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(W$(e))return"date";if(U$(e))return"error";var n=H$(e);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function H$(e){return typeof e.constructor=="function"?e.constructor.name:null}function U$(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function W$(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function pf(e){var t=typeof e;return process.env.NODE_ENV!=="production"&&(t=V$(e)),t}function yE(e,t,n){var r;if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?xa(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 t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?xa(1):"Expected the enhancer to be a function. Instead, received: '"+pf(n)+"'");return n(yE)(e,t)}if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?xa(2):"Expected the root reducer to be a function. Instead, received: '"+pf(e)+"'");var i=e,o=t,s=[],u=s,c=!1;function d(){u===s&&(u=s.slice())}function v(){if(c)throw new Error(process.env.NODE_ENV==="production"?xa(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"?xa(4):"Expected the listener to be a function. Instead, received: '"+pf(I)+"'");if(c)throw new Error(process.env.NODE_ENV==="production"?xa(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 L=!0;return d(),u.push(I),function(){if(L){if(c)throw new Error(process.env.NODE_ENV==="production"?xa(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.");L=!1,d();var H=u.indexOf(I);u.splice(H,1),s=null}}}function S(I){if(!$$(I))throw new Error(process.env.NODE_ENV==="production"?xa(7):"Actions must be plain objects. Instead, the actual type was: '"+pf(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"?xa(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"?xa(9):"Reducers may not dispatch actions.");try{c=!0,o=i(o,I)}finally{c=!1}for(var L=s=u,R=0;R<L.length;R++){var H=L[R];H()}return I}function T(I){if(typeof I!="function")throw new Error(process.env.NODE_ENV==="production"?xa(10):"Expected the nextReducer to be a function. Instead, received: '"+pf(I));i=I,S({type:Cx.REPLACE})}function P(){var I,L=p;return I={subscribe:function(H){if(typeof H!="object"||H===null)throw new Error(process.env.NODE_ENV==="production"?xa(11):"Expected the observer to be an object. Instead, received: '"+pf(H)+"'");function W(){H.next&&H.next(v())}W();var te=L(W);return{unsubscribe:te}}},I[Tx]=function(){return this},I}return S({type:Cx.INIT}),r={dispatch:S,subscribe:p,getState:v,replaceReducer:T},r[Tx]=P,r}function Kt(e,t,...n){if(z$()&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){let r;if(t===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(t.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$(e,t,n){return t.split(".").reduce((r,i)=>r&&r[i]?r[i]:n||null,e)}function G$(e,t){return e.filter(n=>n!==t)}function bE(e){return typeof e=="object"}function q$(e,t){const n=new Map,r=o=>{n.set(o,n.has(o)?n.get(o)+1:1)};e.forEach(r),t.forEach(r);const i=[];return n.forEach((o,s)=>{o===1&&i.push(s)}),i}function X$(e,t){return e.filter(n=>t.indexOf(n)>-1)}const Ey="dnd-core/INIT_COORDS",Up="dnd-core/BEGIN_DRAG",ky="dnd-core/PUBLISH_DRAG_SOURCE",Wp="dnd-core/HOVER",zp="dnd-core/DROP",Yp="dnd-core/END_DRAG";function Ex(e,t){return{type:Ey,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const K$={type:Ey,payload:{clientOffset:null,sourceClientOffset:null}};function Z$(e){return function(n=[],r={publishSource:!0}){const{publishSource:i=!0,clientOffset:o,getSourceClientOffset:s}=r,u=e.getMonitor(),c=e.getRegistry();e.dispatch(Ex(o)),J$(n,u,c);const d=tV(n,u);if(d==null){e.dispatch(K$);return}let v=null;if(o){if(!s)throw new Error("getSourceClientOffset must be defined");Q$(s),v=s(d)}e.dispatch(Ex(o,v));const S=c.getSource(d).beginDrag(u,d);if(S==null)return;eV(S),c.pinSource(d);const T=c.getSourceType(d);return{type:Up,payload:{itemType:T,item:S,sourceId:d,clientOffset:o||null,sourceClientOffset:v||null,isSourcePublic:!!i}}}}function J$(e,t,n){Kt(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(r){Kt(n.getSource(r),"Expected sourceIds to be registered.")})}function Q$(e){Kt(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function eV(e){Kt(bE(e),"Item must be an object.")}function tV(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}function nV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rV(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},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(e,i,n[i])})}return e}function iV(e){return function(n={}){const r=e.getMonitor(),i=e.getRegistry();oV(r),lV(r).forEach((s,u)=>{const c=aV(s,u,i,r),d={type:zp,payload:{dropResult:rV({},n,c)}};e.dispatch(d)})}}function oV(e){Kt(e.isDragging(),"Cannot call drop while not dragging."),Kt(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function aV(e,t,n,r){const i=n.getTarget(e);let o=i?i.drop(r,e):void 0;return sV(o),typeof o>"u"&&(o=t===0?{}:r.getDropResult()),o}function sV(e){Kt(typeof e>"u"||bE(e),"Drop result must either be an object or undefined.")}function lV(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function uV(e){return function(){const n=e.getMonitor(),r=e.getRegistry();cV(n);const i=n.getSourceId();return i!=null&&(r.getSource(i,!0).endDrag(n,i),r.unpinSource()),{type:Yp}}}function cV(e){Kt(e.isDragging(),"Cannot call endDrag while not dragging.")}function gm(e,t){return t===null?e===null:Array.isArray(e)?e.some(n=>n===t):e===t}function fV(e){return function(n,{clientOffset:r}={}){dV(n);const i=n.slice(0),o=e.getMonitor(),s=e.getRegistry(),u=o.getItemType();return pV(i,s,u),hV(i,o,s),gV(i,o,s),{type:Wp,payload:{targetIds:i,clientOffset:r||null}}}}function dV(e){Kt(Array.isArray(e),"Expected targetIds to be an array.")}function hV(e,t,n){Kt(t.isDragging(),"Cannot call hover while not dragging."),Kt(!t.didDrop(),"Cannot call hover after drop.");for(let r=0;r<e.length;r++){const i=e[r];Kt(e.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(e,t,n){for(let r=e.length-1;r>=0;r--){const i=e[r],o=t.getTargetType(i);gm(o,n)||e.splice(r,1)}}function gV(e,t,n){e.forEach(function(r){n.getTarget(r).hover(t,r)})}function vV(e){return function(){if(e.getMonitor().isDragging())return{type:ky}}}function mV(e){return{beginDrag:Z$(e),publishDragSource:vV(e),hover:fV(e),drop:iV(e),endDrag:uV(e)}}class yV{receiveBackend(t){this.backend=t}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const t=this,{dispatch:n}=this.store;function r(o){return(...s)=>{const u=o.apply(t,s);typeof u<"u"&&n(u)}}const i=mV(this);return Object.keys(i).reduce((o,s)=>{const u=i[s];return o[s]=r(u),o},{})}dispatch(t){this.store.dispatch(t)}constructor(t,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=t,this.monitor=n,t.subscribe(this.handleRefCountChange)}}function bV(e,t){return{x:e.x+t.x,y:e.y+t.y}}function wE(e,t){return{x:e.x-t.x,y:e.y-t.y}}function wV(e){const{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return!t||!n||!r?null:wE(bV(t,r),n)}function xV(e){const{clientOffset:t,initialClientOffset:n}=e;return!t||!n?null:wE(t,n)}const wd=[],Oy=[];wd.__IS_NONE__=!0;Oy.__IS_ALL__=!0;function SV(e,t){return e===wd?!1:e===Oy||typeof t>"u"?!0:X$(t,e).length>0}class TV{subscribeToStateChange(t,n={}){const{handlerIds:r}=n;Kt(typeof t=="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 s=this.store.getState(),u=s.stateId;try{u===i||u===i+1&&!SV(s.dirtyHandlerIds,r)||t()}finally{i=u}};return this.store.subscribe(o)}subscribeToOffsetChange(t){Kt(typeof t=="function","listener must be a function.");let n=this.store.getState().dragOffset;const r=()=>{const i=this.store.getState().dragOffset;i!==n&&(n=i,t())};return this.store.subscribe(r)}canDragSource(t){if(!t)return!1;const n=this.registry.getSource(t);return Kt(n,`Expected to find a valid source. sourceId=${t}`),this.isDragging()?!1:n.canDrag(this,t)}canDropOnTarget(t){if(!t)return!1;const n=this.registry.getTarget(t);if(Kt(n,`Expected to find a valid target. targetId=${t}`),!this.isDragging()||this.didDrop())return!1;const r=this.registry.getTargetType(t),i=this.getItemType();return gm(r,i)&&n.canDrop(this,t)}isDragging(){return!!this.getItemType()}isDraggingSource(t){if(!t)return!1;const n=this.registry.getSource(t,!0);if(Kt(n,`Expected to find a valid source. sourceId=${t}`),!this.isDragging()||!this.isSourcePublic())return!1;const r=this.registry.getSourceType(t),i=this.getItemType();return r!==i?!1:n.isDragging(this,t)}isOverTarget(t,n={shallow:!1}){if(!t)return!1;const{shallow:r}=n;if(!this.isDragging())return!1;const i=this.registry.getTargetType(t),o=this.getItemType();if(o&&!gm(i,o))return!1;const s=this.getTargetIds();if(!s.length)return!1;const u=s.indexOf(t);return r?u===s.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(t,n){this.store=t,this.registry=n}}const kx=typeof global<"u"?global:self,xE=kx.MutationObserver||kx.WebKitMutationObserver;function SE(e){return function(){const n=setTimeout(i,0),r=setInterval(i,50);function i(){clearTimeout(n),clearInterval(r),e()}}}function CV(e){let t=1;const n=new xE(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}const EV=typeof xE=="function"?CV:SE;class kV{enqueueTask(t){const{queue:n,requestFlush:r}=this;n.length||(r(),this.flushing=!0),n[n.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.index<t.length;){const n=this.index;if(this.index++,t[n].call(),this.index>this.capacity){for(let r=0,i=t.length-this.index;r<i;r++)t[r]=t[r+this.index];t.length-=this.index,this.index=0}}t.length=0,this.index=0,this.flushing=!1},this.registerPendingError=t=>{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=EV(this.flush),this.requestErrorThrow=SE(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class OV{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,n){this.onError=t,this.release=n,this.task=null}}class DV{create(t){const n=this.freeTasks,r=n.length?n.pop():new OV(this.onError,i=>n[n.length]=i);return r.task=t,r}constructor(t){this.onError=t,this.freeTasks=[]}}const TE=new kV,_V=new DV(TE.registerPendingError);function PV(e){TE.enqueueTask(_V.create(e))}const Dy="dnd-core/ADD_SOURCE",_y="dnd-core/ADD_TARGET",Py="dnd-core/REMOVE_SOURCE",Gp="dnd-core/REMOVE_TARGET";function RV(e){return{type:Dy,payload:{sourceId:e}}}function IV(e){return{type:_y,payload:{targetId:e}}}function AV(e){return{type:Py,payload:{sourceId:e}}}function MV(e){return{type:Gp,payload:{targetId:e}}}function LV(e){Kt(typeof e.canDrag=="function","Expected canDrag to be a function."),Kt(typeof e.beginDrag=="function","Expected beginDrag to be a function."),Kt(typeof e.endDrag=="function","Expected endDrag to be a function.")}function FV(e){Kt(typeof e.canDrop=="function","Expected canDrop to be a function."),Kt(typeof e.hover=="function","Expected hover to be a function."),Kt(typeof e.drop=="function","Expected beginDrag to be a function.")}function vm(e,t){if(t&&Array.isArray(e)){e.forEach(n=>vm(n,!1));return}Kt(typeof e=="string"||typeof e=="symbol",t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var ka;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(ka||(ka={}));let NV=0;function jV(){return NV++}function BV(e){const t=jV().toString();switch(e){case ka.SOURCE:return`S${t}`;case ka.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function Ox(e){switch(e[0]){case"S":return ka.SOURCE;case"T":return ka.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function Dx(e,t){const n=e.entries();let r=!1;do{const{done:i,value:[,o]}=n.next();if(o===t)return!0;r=!!i}while(!r);return!1}class $V{addSource(t,n){vm(t),LV(n);const r=this.addHandler(ka.SOURCE,t,n);return this.store.dispatch(RV(r)),r}addTarget(t,n){vm(t,!0),FV(n);const r=this.addHandler(ka.TARGET,t,n);return this.store.dispatch(IV(r)),r}containsHandler(t){return Dx(this.dragSources,t)||Dx(this.dropTargets,t)}getSource(t,n=!1){return Kt(this.isSourceId(t),"Expected a valid source ID."),n&&t===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(t)}getTarget(t){return Kt(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}getSourceType(t){return Kt(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}getTargetType(t){return Kt(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}isSourceId(t){return Ox(t)===ka.SOURCE}isTargetId(t){return Ox(t)===ka.TARGET}removeSource(t){Kt(this.getSource(t),"Expected an existing source."),this.store.dispatch(AV(t)),PV(()=>{this.dragSources.delete(t),this.types.delete(t)})}removeTarget(t){Kt(this.getTarget(t),"Expected an existing target."),this.store.dispatch(MV(t)),this.dropTargets.delete(t),this.types.delete(t)}pinSource(t){const n=this.getSource(t);Kt(n,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=n}unpinSource(){Kt(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(t,n,r){const i=BV(t);return this.types.set(i,n),t===ka.SOURCE?this.dragSources.set(i,r):t===ka.TARGET&&this.dropTargets.set(i,r),i}constructor(t){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}}const VV=(e,t)=>e===t;function HV(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function UV(e,t,n=VV){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}function WV(e=wd,t){switch(t.type){case Wp:break;case Dy:case _y:case Gp:case Py:return wd;case Up:case ky:case Yp:case zp:default:return Oy}const{targetIds:n=[],prevTargetIds:r=[]}=t.payload,i=q$(n,r);if(!(i.length>0||!UV(n,r)))return wd;const s=r[r.length-1],u=n[n.length-1];return s!==u&&(s&&i.push(s),u&&i.push(u)),i}function zV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YV(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},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(e,i,n[i])})}return e}const _x={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function GV(e=_x,t){const{payload:n}=t;switch(t.type){case Ey:case Up:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case Wp:return HV(e.clientOffset,n.clientOffset)?e:YV({},e,{clientOffset:n.clientOffset});case Yp:case zp:return _x;default:return e}}function qV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},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(e,i,n[i])})}return e}const XV={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function KV(e=XV,t){const{payload:n}=t;switch(t.type){case Up:return gf({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case ky:return gf({},e,{isSourcePublic:!0});case Wp:return gf({},e,{targetIds:n.targetIds});case Gp:return e.targetIds.indexOf(n.targetId)===-1?e:gf({},e,{targetIds:G$(e.targetIds,n.targetId)});case zp:return gf({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case Yp:return gf({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function ZV(e=0,t){switch(t.type){case Dy:case _y:return e+1;case Py:case Gp:return e-1;default:return e}}function JV(e=0){return e+1}function QV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function e3(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},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(e,i,n[i])})}return e}function t3(e={},t){return{dirtyHandlerIds:WV(e.dirtyHandlerIds,{type:t.type,payload:e3({},t.payload,{prevTargetIds:Y$(e,"dragOperation.targetIds",[])})}),dragOffset:GV(e.dragOffset,t),refCount:ZV(e.refCount,t),dragOperation:KV(e.dragOperation,t),stateId:JV(e.stateId)}}function n3(e,t=void 0,n={},r=!1){const i=r3(r),o=new TV(i,new $V(i)),s=new yV(i,o),u=e(s,t,n);return s.receiveBackend(u),s}function r3(e){const t=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return yE(t3,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}function i3(e,t){if(e==null)return{};var n=o3(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function o3(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}let Px=0;const qh=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var CE=X.memo(function(t){var{children:n}=t,r=i3(t,["children"]);const[i,o]=a3(r);return X.useEffect(()=>{if(o){const s=EE();return++Px,()=>{--Px===0&&(s[qh]=null)}}},[]),We.jsx(mE.Provider,{value:i,children:n})});function a3(e){if("manager"in e)return[{dragDropManager:e.manager},!1];const t=s3(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}function s3(e,t=EE(),n,r){const i=t;return i[qh]||(i[qh]={dragDropManager:n3(e,t,n,r)}),i[qh]}function EE(){return typeof global<"u"?global:window}var l3=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(o=Object.keys(t),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 s=o[i];if(!e(t[s],n[s]))return!1}return!0}return t!==t&&n!==n};const u3=Mu(l3),Ac=typeof window<"u"?X.useLayoutEffect:X.useEffect;function kE(e,t,n){const[r,i]=X.useState(()=>t(e)),o=X.useCallback(()=>{const s=t(e);u3(r,s)||(i(s),n&&n())},[r,e,n]);return Ac(o),[r,o]}function c3(e,t,n){const[r,i]=kE(e,t,n);return Ac(function(){const s=e.getHandlerId();if(s!=null)return e.subscribeToStateChange(i,{handlerIds:[s]})},[e,i]),r}function OE(e,t,n){return c3(t,e||(()=>({})),()=>n.reconnect())}function DE(e,t){const n=[...t||[]];return t==null&&typeof e!="function"&&n.push(e),X.useMemo(()=>typeof e=="function"?e():e,n)}function f3(e){return X.useMemo(()=>e.hooks.dragSource(),[e])}function d3(e){return X.useMemo(()=>e.hooks.dragPreview(),[e])}let nv=!1,rv=!1;class h3{receiveHandlerId(t){this.sourceId=t}getHandlerId(){return this.sourceId}canDrag(){Kt(!nv,"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 nv=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{nv=!1}}isDragging(){if(!this.sourceId)return!1;Kt(!rv,"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 rv=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{rv=!1}}subscribeToStateChange(t,n){return this.internalMonitor.subscribeToStateChange(t,n)}isDraggingSource(t){return this.internalMonitor.isDraggingSource(t)}isOverTarget(t,n){return this.internalMonitor.isOverTarget(t,n)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(t){return this.internalMonitor.subscribeToOffsetChange(t)}canDragSource(t){return this.internalMonitor.canDragSource(t)}canDropOnTarget(t){return this.internalMonitor.canDropOnTarget(t)}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(t){this.sourceId=null,this.internalMonitor=t.getMonitor()}}let iv=!1;class p3{receiveHandlerId(t){this.targetId=t}getHandlerId(){return this.targetId}subscribeToStateChange(t,n){return this.internalMonitor.subscribeToStateChange(t,n)}canDrop(){if(!this.targetId)return!1;Kt(!iv,"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 iv=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{iv=!1}}isOver(t){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,t):!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(t){this.targetId=null,this.internalMonitor=t.getMonitor()}}function g3(e,t,n){const r=n.getRegistry(),i=r.addTarget(e,t);return[i,()=>r.removeTarget(i)]}function v3(e,t,n){const r=n.getRegistry(),i=r.addSource(e,t);return[i,()=>r.removeSource(i)]}function mm(e,t,n,r){let i=n?n.call(r,e,t):void 0;if(i!==void 0)return!!i;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;const o=Object.keys(e),s=Object.keys(t);if(o.length!==s.length)return!1;const u=Object.prototype.hasOwnProperty.bind(t);for(let c=0;c<o.length;c++){const d=o[c];if(!u(d))return!1;const v=e[d],p=t[d];if(i=n?n.call(r,v,p,d):void 0,i===!1||i===void 0&&v!==p)return!1}return!0}function ym(e){return e!==null&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function m3(e){if(typeof e.type=="string")return;const t=e.type.displayName||e.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}function y3(e){return(t=null,n=null)=>{if(!X.isValidElement(t)){const o=t;return e(o,n),o}const r=t;return m3(r),b3(r,n?o=>e(o,n):e)}}function _E(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{const i=y3(r);t[n]=()=>i}}),t}function Rx(e,t){typeof e=="function"?e(t):e.current=t}function b3(e,t){const n=e.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?X.cloneElement(e,{ref:r=>{Rx(n,r),Rx(t,r)}}):X.cloneElement(e,{ref:t})}class w3{receiveHandlerId(t){this.handlerId!==t&&(this.handlerId=t,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(t){this.dragSourceOptionsInternal=t}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(t){this.dragPreviewOptionsInternal=t}reconnect(){const t=this.reconnectDragSource();this.reconnectDragPreview(t)}reconnectDragSource(){const t=this.dragSource,n=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return n&&this.disconnectDragSource(),this.handlerId?t?(n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)),n):(this.lastConnectedDragSource=t,n):n}reconnectDragPreview(t=!1){const n=this.dragPreview,r=t||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!mm(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!mm(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(t){this.hooks=_E({dragSource:(n,r)=>{this.clearDragSource(),this.dragSourceOptions=r||null,ym(n)?this.dragSourceRef=n:this.dragSourceNode=n,this.reconnectDragSource()},dragPreview:(n,r)=>{this.clearDragPreview(),this.dragPreviewOptions=r||null,ym(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=t}}class x3{get connectTarget(){return this.dropTarget}reconnect(){const t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();t&&this.disconnectDropTarget();const n=this.dropTarget;if(this.handlerId){if(!n){this.lastConnectedDropTarget=n;return}t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=n,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,n,this.dropTargetOptions))}}receiveHandlerId(t){t!==this.handlerId&&(this.handlerId=t,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(t){this.dropTargetOptionsInternal=t}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!mm(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(t){this.hooks=_E({dropTarget:(n,r)=>{this.clearDropTarget(),this.dropTargetOptions=r,ym(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=t}}function Bl(){const{dragDropManager:e}=X.useContext(mE);return Kt(e!=null,"Expected drag drop context"),e}function S3(e,t){const n=Bl(),r=X.useMemo(()=>new w3(n.getBackend()),[n]);return Ac(()=>(r.dragSourceOptions=e||null,r.reconnect(),()=>r.disconnectDragSource()),[r,e]),Ac(()=>(r.dragPreviewOptions=t||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,t]),r}function T3(){const e=Bl();return X.useMemo(()=>new h3(e),[e])}class C3{beginDrag(){const t=this.spec,n=this.monitor;let r=null;return typeof t.item=="object"?r=t.item:typeof t.item=="function"?r=t.item(n):r={},r??null}canDrag(){const t=this.spec,n=this.monitor;return typeof t.canDrag=="boolean"?t.canDrag:typeof t.canDrag=="function"?t.canDrag(n):!0}isDragging(t,n){const r=this.spec,i=this.monitor,{isDragging:o}=r;return o?o(i):n===t.getSourceId()}endDrag(){const t=this.spec,n=this.monitor,r=this.connector,{end:i}=t;i&&i(n.getItem(),n),r.reconnect()}constructor(t,n,r){this.spec=t,this.monitor=n,this.connector=r}}function E3(e,t,n){const r=X.useMemo(()=>new C3(e,t,n),[t,n]);return X.useEffect(()=>{r.spec=e},[e]),r}function k3(e){return X.useMemo(()=>{const t=e.type;return Kt(t!=null,"spec.type must be defined"),t},[e])}function O3(e,t,n){const r=Bl(),i=E3(e,t,n),o=k3(e);Ac(function(){if(o!=null){const[u,c]=v3(o,i,r);return t.receiveHandlerId(u),n.receiveHandlerId(u),c}},[r,t,n,i,o])}function D3(e,t){const n=DE(e,t);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=T3(),i=S3(n.options,n.previewOptions);return O3(n,r,i),[OE(n.collect,r,i),f3(i),d3(i)]}function _3(e){const n=Bl().getMonitor(),[r,i]=kE(n,e);return X.useEffect(()=>n.subscribeToOffsetChange(i)),X.useEffect(()=>n.subscribeToStateChange(i)),r}function P3(e){return X.useMemo(()=>e.hooks.dropTarget(),[e])}function R3(e){const t=Bl(),n=X.useMemo(()=>new x3(t.getBackend()),[t]);return Ac(()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget()),[e]),n}function I3(){const e=Bl();return X.useMemo(()=>new p3(e),[e])}function A3(e){const{accept:t}=e;return X.useMemo(()=>(Kt(e.accept!=null,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}class M3{canDrop(){const t=this.spec,n=this.monitor;return t.canDrop?t.canDrop(n.getItem(),n):!0}hover(){const t=this.spec,n=this.monitor;t.hover&&t.hover(n.getItem(),n)}drop(){const t=this.spec,n=this.monitor;if(t.drop)return t.drop(n.getItem(),n)}constructor(t,n){this.spec=t,this.monitor=n}}function L3(e,t){const n=X.useMemo(()=>new M3(e,t),[t]);return X.useEffect(()=>{n.spec=e},[e]),n}function F3(e,t,n){const r=Bl(),i=L3(e,t),o=A3(e);Ac(function(){const[u,c]=g3(o,i,r);return t.receiveHandlerId(u),n.receiveHandlerId(u),c},[r,t,i,n,o.map(s=>s.toString()).join("|")])}function PE(e,t){const n=DE(e,t),r=I3(),i=R3(n.options);return F3(n,r,i),[OE(n.collect,r,i),P3(i)]}function ov(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N3(e,t,n){j3(e,t),t.set(e,n)}function j3(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ph(e,t){var n=RE(e,t,"get");return B3(e,n)}function B3(e,t){return t.get?t.get.call(e):t.value}function $3(e,t,n){var r=RE(e,t,"set");return V3(e,r,n),n}function RE(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function V3(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}var vf=new WeakMap;class H3{constructor(){N3(this,vf,{writable:!0,value:void 0}),ov(this,"register",t=>{Ph(this,vf).push(t)}),ov(this,"unregister",t=>{let n;for(;(n=Ph(this,vf).indexOf(t))!==-1;)Ph(this,vf).splice(n,1)}),ov(this,"backendChanged",t=>{for(const n of Ph(this,vf))n.backendChanged(t)}),$3(this,vf,[])}}function os(e,t,n){U3(e,t),t.set(e,n)}function U3(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function js(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jt(e,t){var n=IE(e,t,"get");return W3(e,n)}function W3(e,t){return t.get?t.get.call(e):t.value}function mf(e,t,n){var r=IE(e,t,"set");return z3(e,r,n),n}function IE(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function z3(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}var Sa=new WeakMap,Rh=new WeakMap,Ta=new WeakMap,gu=new WeakMap,bc=new WeakMap,Ix=new WeakMap,Ax=new WeakMap,Mx=new WeakMap,av=new WeakMap,sv=new WeakMap,Ih=new WeakMap;class Pf{constructor(t,n,r){if(os(this,Sa,{writable:!0,value:void 0}),os(this,Rh,{writable:!0,value:void 0}),os(this,Ta,{writable:!0,value:void 0}),os(this,gu,{writable:!0,value:void 0}),os(this,bc,{writable:!0,value:void 0}),os(this,Ix,{writable:!0,value:(i,o,s)=>{var u,c;if(!s.backend)throw new Error("You must specify a 'backend' property in your Backend entry: ".concat(JSON.stringify(s)));const d=s.backend(i,o,s.options);let v=s.id;const p=!s.id&&d&&d.constructor;if(p&&(v=d.constructor.name),v)p&&console.warn(`Deprecation notice: You are using a pipeline which doesn't include backends' 'id'.
8
+ This might be unsupported in the future, please specify 'id' explicitely for every backend.`);else throw new Error("You must specify an 'id' property in your Backend entry: ".concat(JSON.stringify(s),`
9
+ see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-5xx`));if(Jt(this,Ta)[v])throw new Error(`You must specify a unique 'id' property in your Backend entry:
10
+ `.concat(JSON.stringify(s)," (conflicts with: ").concat(JSON.stringify(Jt(this,Ta)[v]),")"));return{id:v,instance:d,preview:(u=s.preview)!==null&&u!==void 0?u:!1,transition:s.transition,skipDispatchOnTransition:(c=s.skipDispatchOnTransition)!==null&&c!==void 0?c:!1}}}),js(this,"setup",()=>{if(!(typeof window>"u")){if(Pf.isSetUp)throw new Error("Cannot have two MultiBackends at the same time.");Pf.isSetUp=!0,Jt(this,Ax).call(this,window),Jt(this,Ta)[Jt(this,Sa)].instance.setup()}}),js(this,"teardown",()=>{typeof window>"u"||(Pf.isSetUp=!1,Jt(this,Mx).call(this,window),Jt(this,Ta)[Jt(this,Sa)].instance.teardown())}),js(this,"connectDragSource",(i,o,s)=>Jt(this,Ih).call(this,"connectDragSource",i,o,s)),js(this,"connectDragPreview",(i,o,s)=>Jt(this,Ih).call(this,"connectDragPreview",i,o,s)),js(this,"connectDropTarget",(i,o,s)=>Jt(this,Ih).call(this,"connectDropTarget",i,o,s)),js(this,"profile",()=>Jt(this,Ta)[Jt(this,Sa)].instance.profile()),js(this,"previewEnabled",()=>Jt(this,Ta)[Jt(this,Sa)].preview),js(this,"previewsList",()=>Jt(this,Rh)),js(this,"backendsList",()=>Jt(this,gu)),os(this,Ax,{writable:!0,value:i=>{Jt(this,gu).forEach(o=>{o.transition&&i.addEventListener(o.transition.event,Jt(this,av))})}}),os(this,Mx,{writable:!0,value:i=>{Jt(this,gu).forEach(o=>{o.transition&&i.removeEventListener(o.transition.event,Jt(this,av))})}}),os(this,av,{writable:!0,value:i=>{const o=Jt(this,Sa);if(Jt(this,gu).some(u=>u.id!==Jt(this,Sa)&&u.transition&&u.transition.check(i)?(mf(this,Sa,u.id),!0):!1),Jt(this,Sa)!==o){var s;Jt(this,Ta)[o].instance.teardown(),Object.keys(Jt(this,bc)).forEach(v=>{const p=Jt(this,bc)[v];p.unsubscribe(),p.unsubscribe=Jt(this,sv).call(this,p.func,...p.args)}),Jt(this,Rh).backendChanged(this);const u=Jt(this,Ta)[Jt(this,Sa)];if(u.instance.setup(),u.skipDispatchOnTransition)return;const c=i.constructor,d=new c(i.type,i);(s=i.target)===null||s===void 0||s.dispatchEvent(d)}}}),os(this,sv,{writable:!0,value:(i,o,s,u)=>Jt(this,Ta)[Jt(this,Sa)].instance[i](o,s,u)}),os(this,Ih,{writable:!0,value:(i,o,s,u)=>{const c="".concat(i,"_").concat(o),d=Jt(this,sv).call(this,i,o,s,u);return Jt(this,bc)[c]={func:i,args:[o,s,u],unsubscribe:d},()=>{Jt(this,bc)[c].unsubscribe(),delete Jt(this,bc)[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`);mf(this,Rh,new H3),mf(this,Ta,{}),mf(this,gu,[]),r.backends.forEach(i=>{const o=Jt(this,Ix).call(this,t,n,i);Jt(this,Ta)[o.id]=o,Jt(this,gu).push(o)}),mf(this,Sa,Jt(this,gu)[0].id),mf(this,bc,{})}}js(Pf,"isSetUp",!1);const AE=(e,t,n)=>new Pf(e,t,n),ME=(e,t)=>({event:e,check:t}),Y3=ME("touchstart",e=>{const t=e;return t.touches!==null&&t.touches!==void 0}),G3=ME("pointerdown",e=>e.pointerType=="mouse");var Cu;(function(e){e.mouse="mouse",e.touch="touch",e.keyboard="keyboard"})(Cu||(Cu={}));class q3{get delay(){var t;return(t=this.args.delay)!==null&&t!==void 0?t:0}get scrollAngleRanges(){return this.args.scrollAngleRanges}get getDropTargetElementsAtPoint(){return this.args.getDropTargetElementsAtPoint}get ignoreContextMenu(){var t;return(t=this.args.ignoreContextMenu)!==null&&t!==void 0?t:!1}get enableHoverOutsideTarget(){var t;return(t=this.args.enableHoverOutsideTarget)!==null&&t!==void 0?t:!1}get enableKeyboardEvents(){var t;return(t=this.args.enableKeyboardEvents)!==null&&t!==void 0?t:!1}get enableMouseEvents(){var t;return(t=this.args.enableMouseEvents)!==null&&t!==void 0?t:!1}get enableTouchEvents(){var t;return(t=this.args.enableTouchEvents)!==null&&t!==void 0?t:!0}get touchSlop(){return this.args.touchSlop||0}get delayTouchStart(){var t,n,r,i;return(i=(r=(t=this.args)===null||t===void 0?void 0:t.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 t,n,r,i;return(i=(r=(t=this.args)===null||t===void 0?void 0:t.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 t;if(!((t=this.context)===null||t===void 0)&&t.document)return this.context.document;if(this.window)return this.window.document}get rootElement(){var t;return((t=this.args)===null||t===void 0?void 0:t.rootElement)||this.document}constructor(t,n){this.args=t,this.context=n}}function X3(e,t,n,r){return Math.sqrt(Math.pow(Math.abs(n-e),2)+Math.pow(Math.abs(r-t),2))}function K3(e,t,n,r,i){if(!i)return!1;const o=Math.atan2(r-t,n-e)*180/Math.PI+180;for(let s=0;s<i.length;++s){const u=i[s];if(u&&(u.start==null||o>=u.start)&&(u.end==null||o<=u.end))return!0}return!1}const Z3={Left:1,Right:2,Center:4},J3={Left:0,Center:1,Right:2};function lv(e){return e.button===void 0||e.button===J3.Left}function Q3(e){return e.buttons===void 0||(e.buttons&Z3.Left)===0}function LE(e){return!!e.targetTouches}const eH=1;function tH(e){const t=e.nodeType===eH?e:e.parentElement;if(!t)return;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function nH(e,t){if(e.targetTouches.length===1)return vp(e.targetTouches[0]);if(t&&e.touches.length===1&&e.touches[0].target===t.target)return vp(e.touches[0])}function vp(e,t){return LE(e)?nH(e,t):{x:e.clientX,y:e.clientY}}const Lx=(()=>{let e=!1;try{addEventListener("test",()=>{},Object.defineProperty({},"passive",{get(){return e=!0,!0}}))}catch{}return e})(),ad={[Cu.mouse]:{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"},[Cu.touch]:{start:"touchstart",move:"touchmove",end:"touchend"},[Cu.keyboard]:{keydown:"keydown"}};class xd{profile(){var t;return{sourceNodes:this.sourceNodes.size,sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,targetNodes:this.targetNodes.size,dragOverTargetIds:((t=this.dragOverTargetIds)===null||t===void 0?void 0:t.length)||0}}get document(){return this.options.document}setup(){const t=this.options.rootElement;t&&(Kt(!xd.isSetUp,"Cannot have two Touch backends at the same time."),xd.isSetUp=!0,this.addEventListener(t,"start",this.getTopMoveStartHandler()),this.addEventListener(t,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(t,"move",this.handleTopMove),this.addEventListener(t,"move",this.handleTopMoveCapture,!0),this.addEventListener(t,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(t,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(t,"keydown",this.handleCancelOnEscape,!0))}teardown(){const t=this.options.rootElement;t&&(xd.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(t,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(t,"start",this.handleTopMoveStart),this.removeEventListener(t,"move",this.handleTopMoveCapture,!0),this.removeEventListener(t,"move",this.handleTopMove),this.removeEventListener(t,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(t,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(t,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}addEventListener(t,n,r,i=!1){const o=Lx?{capture:i,passive:!1}:i;this.listenerTypes.forEach(function(s){const u=ad[s][n];u&&t.addEventListener(u,r,o)})}removeEventListener(t,n,r,i=!1){const o=Lx?{capture:i,passive:!1}:i;this.listenerTypes.forEach(function(s){const u=ad[s][n];u&&t.removeEventListener(u,r,o)})}connectDragSource(t,n){const r=this.handleMoveStart.bind(this,t);return this.sourceNodes.set(t,n),this.addEventListener(n,"start",r),()=>{this.sourceNodes.delete(t),this.removeEventListener(n,"start",r)}}connectDragPreview(t,n,r){return this.sourcePreviewNodeOptions.set(t,r),this.sourcePreviewNodes.set(t,n),()=>{this.sourcePreviewNodes.delete(t),this.sourcePreviewNodeOptions.delete(t)}}connectDropTarget(t,n){const r=this.options.rootElement;if(!this.document||!r)return()=>{};const i=o=>{if(!this.document||!r||!this.monitor.isDragging())return;let s;switch(o.type){case ad.mouse.move:s={x:o.clientX,y:o.clientY};break;case ad.touch.move:var u,c;s={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=s!=null?this.document.elementFromPoint(s.x,s.y):void 0,v=d&&n.contains(d);if(d===n||v)return this.handleMove(o,t)};return this.addEventListener(this.document.body,"move",i),this.targetNodes.set(t,n),()=>{this.document&&(this.targetNodes.delete(t),this.removeEventListener(this.document.body,"move",i))}}getTopMoveStartHandler(){return!this.options.delayTouchStart&&!this.options.delayMouseStart?this.handleTopMoveStart:this.handleTopMoveStartDelay}installSourceNodeRemovalObserver(t){this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=t,this.draggedSourceNodeRemovalObserver=new MutationObserver(()=>{t&&!t.parentElement&&(this.resurrectSourceNode(),this.uninstallSourceNodeRemovalObserver())}),!(!t||!t.parentElement)&&this.draggedSourceNodeRemovalObserver.observe(t.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(t,n,r){this.getSourceClientOffset=i=>{const o=this.sourceNodes.get(i);return o&&tH(o)},this.handleTopMoveStartCapture=i=>{lv(i)&&(this.moveStartSourceIds=[])},this.handleMoveStart=i=>{Array.isArray(this.moveStartSourceIds)&&this.moveStartSourceIds.unshift(i)},this.handleTopMoveStart=i=>{if(!lv(i))return;const o=vp(i);o&&(LE(i)&&(this.lastTargetTouchFallback=i.targetTouches[0]),this._mouseClientOffset=o),this.waitingForDelay=!1},this.handleTopMoveStartDelay=i=>{if(!lv(i))return;const o=i.type===ad.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:s}=this,u=this.options.enableHoverOutsideTarget,c=vp(i,this.lastTargetTouchFallback);if(!c)return;if(this._isScrolling||!this.monitor.isDragging()&&K3(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&&X3(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 v=(s||[]).map(P=>this.targetNodes.get(P)).filter(P=>!!P),p=this.options.getDropTargetElementsAtPoint?this.options.getDropTargetElementsAtPoint(c.x,c.y,v):this.document.elementsFromPoint(c.x,c.y),S=[];for(const P in p){if(!p.hasOwnProperty(P))continue;let I=p[P];for(I!=null&&S.push(I);I;)I=I.parentElement,I&&S.indexOf(I)===-1&&S.push(I)}const T=S.filter(P=>v.indexOf(P)>-1).map(P=>this._getDropTargetId(P)).filter(P=>!!P).filter((P,I,L)=>L.indexOf(P)===I);if(u)for(const P in this.targetNodes){const I=this.targetNodes.get(P);if(d&&I&&I.contains(d)&&T.indexOf(P)===-1){T.unshift(P);break}}T.reverse(),this.actions.hover(T,{clientOffset:c})},this._getDropTargetId=i=>{const o=this.targetNodes.keys();let s=o.next();for(;s.done===!1;){const u=s.value;if(i===this.targetNodes.get(u))return u;s=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 q3(r,n),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.sourceNodes=new Map,this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.targetNodes=new Map,this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(Cu.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(Cu.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(Cu.keyboard)}}const rH=function(t,n={},r={}){return new xd(t,n,r)};var Pa=function(){return Pa=Object.assign||function(t){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)&&(t[o]=n[o])}return t},Pa.apply(this,arguments)};function so(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function iH(e){var t=e.isVisible,n=e.ease,r=n===void 0?"easeIn":n,i=e.duration,o=e.variants,s=o===void 0?{open:{opacity:1,height:"auto"},close:{opacity:0,height:0}}:o,u=e.children,c=L$({polyfill:iF}),d=c[0],v=c[1].height,p=X.useState(t),S=p[0],T=p[1],P=X.useState(t),I=P[0],L=P[1],R=X.useState(!1),H=R[0],W=R[1],te=function(){W(!1),t||T(!1)};return X.useEffect(function(){W(!0),t?T(!0):L(!1)},[t]),X.useEffect(function(){S&&L(!0)},[v]),X.createElement(A$.div,{style:H?{overflow:"hidden"}:void 0,onAnimationComplete:te,initial:I?"open":"close",animate:I?"open":"close",inherit:!1,variants:s,transition:{ease:r,duration:oH(v,i)}},X.createElement("div",{ref:d},S&&u))}function oH(e,t){if(t)return t;if(!e)return 0;var n=e/36;return Math.round((4+10*Math.pow(n,.25)+n/5)*10)/1500}var aH=function(e,t){return e.text>t.text?1:e.text<t.text?-1:0},sd=function(e,t){return e.find(function(n){return n.id===t})},FE=function(e,t,n){if(n===0)return!1;var r=e.find(function(i){return i.id===n});return r===void 0?!1:r.parent===t?!0:FE(e,t,r.parent)},Ry=function(e){return e.id!==void 0&&e.parent!==void 0&&e.text!==void 0},Pu=function(e,t,n){var r=n.tree,i=n.rootId,o=n.canDrop;if(e===null){if(t===i)return!0;var s=r.find(function(v){return v.id===t});return!!(s&&s.droppable)}else{var u=Ry(e)?e.id:null;if(o){var c=o(u,t);if(c!==void 0)return c}if(u===t)return!1;var d=r.find(function(p){return p.id===u}),s=r.find(function(p){return p.id===t});return d===void 0||u===null?t===i||!!(s!=null&&s.droppable):s===void 0?d.parent!==0:d.parent===t||!s.droppable?!1:!FE(r,u,t)}},sH=function(e,t,n){return e.map(function(r){return r.id===t?Pa(Pa({},r),{parent:n}):r})},NE=function(e,t,n){if(n===0)return 0;var r=e.filter(function(i){return i.parent===t});return r[n]?e.findIndex(function(i){return i.id===r[n].id}):e.findIndex(function(i){return i.id===r[n-1].id})+1},lH=function(e,t){return e.findIndex(function(n){return n.id===t})},jE=function(e,t,n,r){var i=lH(e,t),o=NE(e,n,r);return o=o>i?o-1:o,[i,o]},uH=function(e,t,n){var r=t<0?e.length+t:t;if(r>=0&&r<e.length){var i=n<0?e.length+n:n,o=e.splice(t,1)[0];e.splice(i,0,o)}},cH=function(e,t,n,r){var i=jE(e,t,n,r),o=i[0],s=i[1],u=so([],e,!0);return uH(u,o,s),u.map(function(c){return c.id===t?Pa(Pa({},c),{parent:n}):c})},fH=function(e,t){var n=e.getBoundingClientRect(),r=n.top+n.height/2;return t>r?"down":"up"},bm=function(e,t){var n="",r=0;return e.forEach(function(i,o){var s,u=fH(i,((s=t.getClientOffset())===null||s===void 0?void 0:s.y)||0);n===""?n=u:n!==u&&(n=u,r=o),o===e.length-1&&u==="down"&&(r=o+1)}),r},Fx=function(e,t,n){var r=t.closest('[role="list"]'),i=r==null?void 0:r.querySelectorAll(':scope > [role="listitem"]');return i?bm(i,n):null},dH=function(e,t,n){var r=e.getBoundingClientRect(),i=n.dropTargetOffset,o=r.top+i,s=r.bottom-i;return t>s?"lower":t<o?"upper":"middle"},wm=function(e,t,n,r){var i;if(!t)return null;if(e===null){var o=t.querySelectorAll(':scope > [role="listitem"]');return{id:r.rootId,index:bm(o,n)}}var s=n.getItem(),u=t.querySelector('[role="list"]'),c=dH(t,((i=n.getClientOffset())===null||i===void 0?void 0:i.y)||0,r);if(u){if(c==="upper")if(Pu(s,e.parent,r)){var d=Fx(e,t,n);return d===null?null:{id:e.parent,index:d}}else return{id:e.id,index:0};var o=u.querySelectorAll(':scope > [role="listitem"]');return{id:e.id,index:bm(o,n)}}else{if(c==="middle")return{id:e.id,index:0};if(Pu(s,e.parent,r)){var d=Fx(e,t,n);return d===null?null:{id:e.parent,index:d}}return null}},BE=function(e){return e===void 0&&(e={}),{backends:[{id:"html5",backend:N2,options:e.html5,transition:G3},{id:"touch",backend:rH,options:e.touch||{enableMouseEvents:!0},preview:!0,transition:Y3}]}},Xh=function(e,t){return e.some(function(n){return n.parent===t})},$E=X.createContext({}),hH=function(e){var t=TH(e.tree,e.initialOpen),n=t[0],r=t[1],i=r.handleToggle,o=r.handleCloseAll,s=r.handleOpenAll,u=r.handleOpen,c=r.handleClose;X.useImperativeHandle(e.treeRef,function(){return{open:function(T){return u(T,e.onChangeOpen)},close:function(T){return c(T,e.onChangeOpen)},openAll:function(){return s(e.onChangeOpen)},closeAll:function(){return o(e.onChangeOpen)}}});var d=Bl().getMonitor(),v=e.canDrop,p=e.canDrag,S=Pa(Pa({extraAcceptTypes:[],listComponent:"ul",listItemComponent:"li",placeholderComponent:"li",sort:!0,insertDroppableFirst:!0,enableAnimateExpand:!1,dropTargetOffset:0,initialOpen:!1},e),{openIds:n,onDrop:function(T,P,I){if(T){var L={dragSourceId:T.id,dropTargetId:P,dragSource:T,dropTarget:sd(e.tree,P),monitor:d},R=e.tree;if(sd(R,T.id)||(R=so(so([],R,!0),[T],!1)),e.sort===!1){var H=jE(R,T.id,P,I),W=H[1];L.destinationIndex=W,L.relativeIndex=I,e.onDrop(cH(R,T.id,P,I),L);return}e.onDrop(sH(R,T.id,P),L)}else{var L={dropTargetId:P,dropTarget:sd(e.tree,P),monitor:d};e.sort===!1&&(L.destinationIndex=NE(e.tree,P,I),L.relativeIndex=I),e.onDrop(e.tree,L)}},canDrop:v?function(T,P){return v(e.tree,{dragSourceId:T??void 0,dropTargetId:P,dragSource:d.getItem(),dropTarget:sd(e.tree,P),monitor:d})}:void 0,canDrag:p?function(T){return p(sd(e.tree,T))}:void 0,onToggle:function(T){return i(T,e.onChangeOpen)}});return X.createElement($E.Provider,{value:S},e.children)},VE=X.createContext({}),pH={isLock:!1},gH=function(e){var t=X.useState(pH.isLock),n=t[0],r=t[1];return X.createElement(VE.Provider,{value:{isLock:n,lock:function(){return r(!0)},unlock:function(){return r(!1)}}},e.children)},Kd=X.createContext({}),Ah={dropTargetId:void 0,index:void 0},vH=function(e){var t=X.useState(Ah.dropTargetId),n=t[0],r=t[1],i=X.useState(Ah.index),o=i[0],s=i[1],u=function(d,v){r(d),s(v)},c=function(){r(Ah.dropTargetId),s(Ah.index)};return X.createElement(Kd.Provider,{value:{dropTargetId:n,index:o,showPlaceholder:u,hidePlaceholder:c}},e.children)},mH=function(e){return X.createElement(hH,Pa({},e),X.createElement(gH,null,X.createElement(vH,null,e.children)))},yH=function(e){var t=X.useContext(VE);X.useEffect(function(){if(e.current){var n=e.current,r=function(v){var p=v.target;(p instanceof HTMLInputElement||p instanceof HTMLTextAreaElement)&&t.lock()},i=function(v){var p=v.target;(p instanceof HTMLInputElement||p instanceof HTMLTextAreaElement)&&t.unlock()},o=function(v){return r(v)},s=function(v){return i(v)},u=function(v){return r(v)},c=function(v){return i(v)},d=new MutationObserver(function(){document.activeElement===document.body&&t.unlock()});return d.observe(n,{subtree:!0,childList:!0}),n.addEventListener("mouseover",o),n.addEventListener("mouseout",s),n.addEventListener("focusin",u),n.addEventListener("focusout",c),function(){d.disconnect(),n.removeEventListener("mouseover",o),n.removeEventListener("mouseout",s),n.removeEventListener("focusin",u),n.removeEventListener("focusout",c)}}},[e,t]),X.useEffect(function(){var n;(n=e.current)===null||n===void 0||n.setAttribute("draggable",t.isLock?"false":"true")},[e,t.isLock])},qp={TREE_ITEM:Symbol()},HE=null,UE=function(e){var t=e.target;if(t instanceof HTMLElement){var n=t.closest('[role="listitem"]');e.currentTarget===n&&(HE=n)}},Nx=function(e){return UE(e)},jx=function(e){return UE(e)},bH=function(e,t){var n=Lu();X.useEffect(function(){var u=t.current;return u==null||u.addEventListener("dragstart",Nx),u==null||u.addEventListener("touchstart",jx,{passive:!0}),function(){u==null||u.removeEventListener("dragstart",Nx),u==null||u.removeEventListener("touchstart",jx)}},[t]);var r=D3({type:qp.TREE_ITEM,item:function(u){var c=Pa({ref:t},e);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 HE!==t.current?!1:u?u(e.id):!0},collect:function(u){return{isDragging:u.isDragging()}}}),i=r[0].isDragging,o=r[1],s=r[2];return[i,o,s]},wH=function(e,t,n){var r=X.useRef(0),i=X.useRef(0),o=function(){r.current+=1,r.current===1&&!t&&(i.current=window.setTimeout(function(){return n(e)},500))},s=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:s,onDrop:u}},xH=function(e){var t=Lu(),n=X.useContext(Kd),r=PE({accept:so([qp.TREE_ITEM],t.extraAcceptTypes,!0),drop:function(c,d){var v=t.rootId,p=t.onDrop,S=n.dropTargetId,T=n.index;d.isOver({shallow:!0})&&S!==void 0&&T!==void 0&&p(Ry(c)?c:null,v,T),n.hidePlaceholder()},canDrop:function(c,d){var v=t.rootId;return d.isOver({shallow:!0})?c===void 0?!1:Pu(c,v,t):!1},hover:function(c,d){if(d.isOver({shallow:!0})){var v=t.rootId,p=n.dropTargetId,S=n.index,T=n.showPlaceholder,P=n.hidePlaceholder,I=wm(null,e.current,d,t);if(I===null||!Pu(c,v,t)){P();return}(I.id!==p||I.index!==S)&&T(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,s=i.dragSource,u=r[1];return[o,s,u]},SH=function(e,t){var n=Lu(),r=X.useContext(Kd),i=PE({accept:so([qp.TREE_ITEM],n.extraAcceptTypes,!0),drop:function(d,v){var p=r.dropTargetId,S=r.index;v.isOver({shallow:!0})&&p!==void 0&&S!==void 0&&n.onDrop(Ry(d)?d:null,p,S),r.hidePlaceholder()},canDrop:function(d,v){if(v.isOver({shallow:!0})){var p=wm(e,t.current,v,n);return p===null?!1:Pu(d,p.id,n)}return!1},hover:function(d,v){if(v.isOver({shallow:!0})){var p=r.dropTargetId,S=r.index,T=r.showPlaceholder,P=r.hidePlaceholder,I=wm(e,t.current,v,n);if(I===null||!Pu(d,I.id,n)){P();return}(I.id!==p||I.index!==S)&&T(I.id,I.index)}},collect:function(d){var v=d.getItem();return{isOver:d.isOver({shallow:!0})&&d.canDrop(),dragSource:v}}}),o=i[0],s=o.isOver,u=o.dragSource,c=i[1];return[s,u,c]},TH=function(e,t){var n=X.useMemo(function(){return t===!0?e.filter(function(p){return Xh(e,p.id)}).map(function(p){return p.id}):Array.isArray(t)?t:[]},[t]),r=X.useState(n),i=r[0],o=r[1];X.useEffect(function(){return o(n)},[t]);var s=function(p,S){var T=i.includes(p)?i.filter(function(P){return P!==p}):so(so([],i,!0),[p],!1);o(T),S&&S(T)},u=function(p){o([]),p&&p([])},c=function(p){var S=e.filter(function(T){return Xh(e,T.id)}).map(function(T){return T.id});o(S),p&&p(S)},d=function(p,S){var T=[];if(Array.isArray(p)){var P=e.filter(function(I){return p.includes(I.id)&&Xh(e,I.id)});T=so(so([],i,!0),P.map(function(I){return I.id}),!0).filter(function(I,L,R){return R.indexOf(I)===L})}else T=i.includes(p)?i:so(so([],i,!0),[p],!1);o(T),S&&S(T)},v=function(p,S){var T=i.filter(function(P){return Array.isArray(p)?!p.includes(P):P!==p});o(T),S&&S(T)};return[i,{handleToggle:s,handleCloseAll:u,handleOpenAll:c,handleOpen:d,handleClose:v}]},CH=function(){return _3(function(e){var t=e.getItemType();return{item:e.getItem(),clientOffset:e.getClientOffset(),isDragging:e.isDragging()&&t===qp.TREE_ITEM}})},Lu=function(){var e=X.useContext($E);if(!e)throw new Error("useTreeContext must be used under TreeProvider");return e},EH=function(e,t){var n=Lu(),r=n.rootId,i=n.rootProps,o=n.classes,s=(o==null?void 0:o.container)||"";return t&&(o!=null&&o.dropTarget)&&(s="".concat(s," ").concat(o.dropTarget)),e===r&&(o!=null&&o.root)&&(s="".concat(s," ").concat(o.root)),e===r&&(i!=null&&i.className)&&(s="".concat(s," ").concat(i.className)),s=s.trim(),s},kH=function(e,t,n){t.current?n(t):n(e),X.useEffect(function(){t.current?n(t):n(e)},[t.current])},OH=function(e){var t=Lu(),n=X.useContext(Kd),r=X.useRef(null),i=X.useRef(null),o=t.tree.find(function(ye){return ye.id===e.id}),s=t.openIds,u=t.classes,c=t.enableAnimateExpand,d=s.includes(e.id),v=bH(o,r),p=v[0],S=v[1],T=v[2],P=SH(o,r),I=P[0],L=P[1],R=P[2];kH(r,i,S),Pu(L,e.id,t)&&R(r),X.useEffect(function(){t.dragPreviewRender?T(F2(),{captureDraggingState:!0}):i.current&&T(r)},[T,t.dragPreviewRender]),yH(r);var H=function(){return t.onToggle(o.id)},W=t.listItemComponent,te=(u==null?void 0:u.listItem)||"";I&&(u!=null&&u.dropTarget)&&(te="".concat(te," ").concat(u.dropTarget)),p&&(u!=null&&u.draggingSource)&&(te="".concat(te," ").concat(u.draggingSource));var J=t.canDrag?t.canDrag(e.id):!0,de=n.dropTargetId===e.id,x={depth:e.depth,isOpen:d,isDragging:p,isDropTarget:de,draggable:J,hasChild:Xh(t.tree,e.id),containerRef:r,handleRef:i,onToggle:H};return X.createElement(W,{ref:r,className:te,role:"listitem"},t.render(o,x),c&&x.hasChild&&X.createElement(iH,{isVisible:d},X.createElement(xm,{parentId:e.id,depth:e.depth+1})),!c&&x.hasChild&&d&&X.createElement(xm,{parentId:e.id,depth:e.depth+1}))},Bx=function(e){var t=Lu(),n=t.placeholderRender,r=t.placeholderComponent,i=t.classes,o=X.useContext(Kd),s=Bl(),u=s.getMonitor(),c=u.getItem();if(!n||!c)return null;var d=e.dropTargetId===o.dropTargetId&&(e.index===o.index||e.index===void 0&&e.listCount===o.index);return d?X.createElement(r,{className:(i==null?void 0:i.placeholder)||""},n(c,{depth:e.depth})):null},xm=function(e){var t=Lu(),n=X.useRef(null),r=t.tree.filter(function(I){return I.parent===e.parentId}),i=r,o=typeof t.sort=="function"?t.sort:aH;if(t.insertDroppableFirst){var s=r.filter(function(I){return I.droppable}),u=r.filter(function(I){return!I.droppable});t.sort===!1?i=so(so([],s,!0),u,!0):(s=s.sort(o),u=u.sort(o),i=so(so([],s,!0),u,!0))}else t.sort!==!1&&(i=r.sort(o));var c=xH(n),d=c[0],v=c[1],p=c[2];e.parentId===t.rootId&&Pu(v,t.rootId,t)&&p(n);var S=EH(e.parentId,d),T=t.rootProps||{},P=t.listComponent;return X.createElement(P,Pa({ref:n,role:"list"},T,{className:S}),i.map(function(I,L){return X.createElement(X.Fragment,{key:I.id},X.createElement(Bx,{depth:e.depth,listCount:i.length,dropTargetId:e.parentId,index:L}),X.createElement(OH,{id:I.id,depth:e.depth}))}),X.createElement(Bx,{depth:e.depth,listCount:i.length,dropTargetId:e.parentId}))},DH={height:"100%",left:0,pointerEvents:"none",position:"fixed",top:0,width:"100%",zIndex:100},_H=function(e){var t=e.clientOffset;if(!t)return{};var n=t.x,r=t.y,i="translate(".concat(n,"px, ").concat(r,"px)");return{pointerEvents:"none",transform:i}},PH=function(){var e=Lu(),t=CH(),n=t.isDragging,r=t.clientOffset;return!n||!r?null:X.createElement("div",{style:DH},X.createElement("div",{style:_H(t)},e.dragPreviewRender&&e.dragPreviewRender(t)))};function RH(e,t){return X.createElement(mH,Pa({},e,{treeRef:t}),e.dragPreviewRender&&X.createElement(PH,null),X.createElement(xm,{parentId:e.rootId,depth:0}))}var WE=X.forwardRef(RH);const zE=X.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Xp=X.createContext({}),Iy=X.createContext(null),Kp=typeof document<"u",IH=Kp?X.useLayoutEffect:X.useEffect,YE=X.createContext({strict:!1}),Ay=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),AH="framerAppearId",GE="data-"+Ay(AH);function MH(e,t,n,r){const{visualElement:i}=X.useContext(Xp),o=X.useContext(YE),s=X.useContext(Iy),u=X.useContext(zE).reducedMotion,c=X.useRef();r=r||o.renderer,!c.current&&r&&(c.current=r(e,{visualState:t,parent:i,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:u}));const d=c.current;X.useInsertionEffect(()=>{d&&d.update(n,s)});const v=X.useRef(!!(n[GE]&&!window.HandoffComplete));return IH(()=>{d&&(d.render(),v.current&&d.animationState&&d.animationState.animateChanges())}),X.useEffect(()=>{d&&(d.updateFeatures(),!v.current&&d.animationState&&d.animationState.animateChanges(),v.current&&(v.current=!1,window.HandoffComplete=!0))}),d}function Tf(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function LH(e,t,n){return X.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Tf(n)&&(n.current=r))},[t])}function Nd(e){return typeof e=="string"||Array.isArray(e)}function Zp(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const My=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ly=["initial",...My];function Jp(e){return Zp(e.animate)||Ly.some(t=>Nd(e[t]))}function qE(e){return!!(Jp(e)||e.variants)}function FH(e,t){if(Jp(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Nd(n)?n:void 0,animate:Nd(r)?r:void 0}}return e.inherit!==!1?t:{}}function NH(e){const{initial:t,animate:n}=FH(e,X.useContext(Xp));return X.useMemo(()=>({initial:t,animate:n}),[$x(t),$x(n)])}function $x(e){return Array.isArray(e)?e.join(" "):e}const Vx={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},jd={};for(const e in Vx)jd[e]={isEnabled:t=>Vx[e].some(n=>!!t[n])};function jH(e){for(const t in e)jd[t]={...jd[t],...e[t]}}const XE=X.createContext({}),KE=X.createContext({}),BH=Symbol.for("motionComponentSymbol");function $H({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&jH(e);function o(u,c){let d;const v={...X.useContext(zE),...u,layoutId:VH(u)},{isStatic:p}=v,S=NH(u),T=r(u,p);if(!p&&Kp){S.visualElement=MH(i,T,v,t);const P=X.useContext(KE),I=X.useContext(YE).strict;S.visualElement&&(d=S.visualElement.loadFeatures(v,I,e,P))}return Tn.createElement(Xp.Provider,{value:S},d&&S.visualElement?Tn.createElement(d,{visualElement:S.visualElement,...v}):null,n(i,u,LH(T,S.visualElement,c),T,p,S.visualElement))}const s=X.forwardRef(o);return s[BH]=i,s}function VH({layoutId:e}){const t=X.useContext(XE).id;return t&&e!==void 0?t+"-"+e:e}function HH(e){function t(r,i={}){return $H(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const UH=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Fy(e){return typeof e!="string"||e.includes("-")?!1:!!(UH.indexOf(e)>-1||/[A-Z]/.test(e))}const mp={};function WH(e){Object.assign(mp,e)}const Zd=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Bc=new Set(Zd);function ZE(e,{layout:t,layoutId:n}){return Bc.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!mp[e]||e==="opacity")}const _o=e=>!!(e&&e.getVelocity),zH={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},YH=Zd.length;function GH(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let s=0;s<YH;s++){const u=Zd[s];if(e[u]!==void 0){const c=zH[u]||u;o+=`${c}(${e[u]}) `}}return t&&!e.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(e,r?"":o):n&&r&&(o="none"),o}const JE=e=>t=>typeof t=="string"&&t.startsWith(e),QE=JE("--"),Sm=JE("var(--"),qH=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,XH=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Ru=(e,t,n)=>Math.min(Math.max(n,e),t),$c={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Sd={...$c,transform:e=>Ru(0,1,e)},Mh={...$c,default:1},Td=e=>Math.round(e*1e5)/1e5,Qp=/(-)?([\d]*\.?[\d])+/g,ek=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,KH=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Jd(e){return typeof e=="string"}const Qd=e=>({test:t=>Jd(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),yu=Qd("deg"),Us=Qd("%"),Bt=Qd("px"),ZH=Qd("vh"),JH=Qd("vw"),Hx={...Us,parse:e=>Us.parse(e)/100,transform:e=>Us.transform(e*100)},Ux={...$c,transform:Math.round},tk={borderWidth:Bt,borderTopWidth:Bt,borderRightWidth:Bt,borderBottomWidth:Bt,borderLeftWidth:Bt,borderRadius:Bt,radius:Bt,borderTopLeftRadius:Bt,borderTopRightRadius:Bt,borderBottomRightRadius:Bt,borderBottomLeftRadius:Bt,width:Bt,maxWidth:Bt,height:Bt,maxHeight:Bt,size:Bt,top:Bt,right:Bt,bottom:Bt,left:Bt,padding:Bt,paddingTop:Bt,paddingRight:Bt,paddingBottom:Bt,paddingLeft:Bt,margin:Bt,marginTop:Bt,marginRight:Bt,marginBottom:Bt,marginLeft:Bt,rotate:yu,rotateX:yu,rotateY:yu,rotateZ:yu,scale:Mh,scaleX:Mh,scaleY:Mh,scaleZ:Mh,skew:yu,skewX:yu,skewY:yu,distance:Bt,translateX:Bt,translateY:Bt,translateZ:Bt,x:Bt,y:Bt,z:Bt,perspective:Bt,transformPerspective:Bt,opacity:Sd,originX:Hx,originY:Hx,originZ:Bt,zIndex:Ux,fillOpacity:Sd,strokeOpacity:Sd,numOctaves:Ux};function Ny(e,t,n,r){const{style:i,vars:o,transform:s,transformOrigin:u}=e;let c=!1,d=!1,v=!0;for(const p in t){const S=t[p];if(QE(p)){o[p]=S;continue}const T=tk[p],P=XH(S,T);if(Bc.has(p)){if(c=!0,s[p]=P,!v)continue;S!==(T.default||0)&&(v=!1)}else p.startsWith("origin")?(d=!0,u[p]=P):i[p]=P}if(t.transform||(c||r?i.transform=GH(e.transform,n,v,r):i.transform&&(i.transform="none")),d){const{originX:p="50%",originY:S="50%",originZ:T=0}=u;i.transformOrigin=`${p} ${S} ${T}`}}const jy=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function nk(e,t,n){for(const r in t)!_o(t[r])&&!ZE(r,n)&&(e[r]=t[r])}function QH({transformTemplate:e},t,n){return X.useMemo(()=>{const r=jy();return Ny(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function eU(e,t,n){const r=e.style||{},i={};return nk(i,r,e),Object.assign(i,QH(e,t,n)),e.transformValues?e.transformValues(i):i}function tU(e,t,n){const r={},i=eU(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const nU=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 yp(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||nU.has(e)}let rk=e=>!yp(e);function rU(e){e&&(rk=t=>t.startsWith("on")?!yp(t):e(t))}try{rU(require("@emotion/is-prop-valid").default)}catch{}function iU(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(rk(i)||n===!0&&yp(i)||!t&&!yp(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function Wx(e,t,n){return typeof e=="string"?e:Bt.transform(t+n*e)}function oU(e,t,n){const r=Wx(t,e.x,e.width),i=Wx(n,e.y,e.height);return`${r} ${i}`}const aU={offset:"stroke-dashoffset",array:"stroke-dasharray"},sU={offset:"strokeDashoffset",array:"strokeDasharray"};function lU(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?aU:sU;e[o.offset]=Bt.transform(-r);const s=Bt.transform(t),u=Bt.transform(n);e[o.array]=`${s} ${u}`}function By(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:u=1,pathOffset:c=0,...d},v,p,S){if(Ny(e,d,v,S),p){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:T,style:P,dimensions:I}=e;T.transform&&(I&&(P.transform=T.transform),delete T.transform),I&&(i!==void 0||o!==void 0||P.transform)&&(P.transformOrigin=oU(I,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(T.x=t),n!==void 0&&(T.y=n),r!==void 0&&(T.scale=r),s!==void 0&&lU(T,s,u,c,!1)}const ik=()=>({...jy(),attrs:{}}),$y=e=>typeof e=="string"&&e.toLowerCase()==="svg";function uU(e,t,n,r){const i=X.useMemo(()=>{const o=ik();return By(o,t,{enableHardwareAcceleration:!1},$y(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};nk(o,e.style,e),i.style={...o,...i.style}}return i}function cU(e=!1){return(n,r,i,{latestValues:o},s)=>{const c=(Fy(n)?uU:tU)(r,o,s,n),v={...iU(r,typeof n=="string",e),...c,ref:i},{children:p}=r,S=X.useMemo(()=>_o(p)?p.get():p,[p]);return X.createElement(n,{...v,children:S})}}function ok(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const ak=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 sk(e,t,n,r){ok(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(ak.has(i)?i:Ay(i),t.attrs[i])}function Vy(e,t){const{style:n}=e,r={};for(const i in n)(_o(n[i])||t.style&&_o(t.style[i])||ZE(i,e))&&(r[i]=n[i]);return r}function lk(e,t){const n=Vy(e,t);for(const r in e)if(_o(e[r])||_o(t[r])){const i=Zd.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}function Hy(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}function fU(e){const t=X.useRef(null);return t.current===null&&(t.current=e()),t.current}const bp=e=>Array.isArray(e),dU=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),hU=e=>bp(e)?e[e.length-1]||0:e;function Kh(e){const t=_o(e)?e.get():e;return dU(t)?t.toValue():t}function pU({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const s={latestValues:gU(r,i,o,e),renderState:t()};return n&&(s.mount=u=>n(r,u,s)),s}const uk=e=>(t,n)=>{const r=X.useContext(Xp),i=X.useContext(Iy),o=()=>pU(e,t,r,i);return n?o():fU(o)};function gU(e,t,n,r){const i={},o=r(e,{});for(const S in o)i[S]=Kh(o[S]);let{initial:s,animate:u}=e;const c=Jp(e),d=qE(e);t&&d&&!c&&e.inherit!==!1&&(s===void 0&&(s=t.initial),u===void 0&&(u=t.animate));let v=n?n.initial===!1:!1;v=v||s===!1;const p=v?u:s;return p&&typeof p!="boolean"&&!Zp(p)&&(Array.isArray(p)?p:[p]).forEach(T=>{const P=Hy(e,T);if(!P)return;const{transitionEnd:I,transition:L,...R}=P;for(const H in R){let W=R[H];if(Array.isArray(W)){const te=v?W.length-1:0;W=W[te]}W!==null&&(i[H]=W)}for(const H in I)i[H]=I[H]}),i}const ur=e=>e;class zx{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function vU(e){let t=new zx,n=new zx,r=0,i=!1,o=!1;const s=new WeakSet,u={schedule:(c,d=!1,v=!1)=>{const p=v&&i,S=p?t:n;return d&&s.add(c),S.add(c)&&p&&i&&(r=t.order.length),c},cancel:c=>{n.remove(c),s.delete(c)},process:c=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let d=0;d<r;d++){const v=t.order[d];v(c),s.has(v)&&(u.schedule(v),e())}i=!1,o&&(o=!1,u.process(c))}};return u}const Lh=["prepare","read","update","preRender","render","postRender"],mU=40;function yU(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=Lh.reduce((p,S)=>(p[S]=vU(()=>n=!0),p),{}),s=p=>o[p].process(i),u=()=>{const p=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(p-i.timestamp,mU),1),i.timestamp=p,i.isProcessing=!0,Lh.forEach(s),i.isProcessing=!1,n&&t&&(r=!1,e(u))},c=()=>{n=!0,r=!0,i.isProcessing||e(u)};return{schedule:Lh.reduce((p,S)=>{const T=o[S];return p[S]=(P,I=!1,L=!1)=>(n||c(),T.schedule(P,I,L)),p},{}),cancel:p=>Lh.forEach(S=>o[S].cancel(p)),state:i,steps:o}}const{schedule:Un,cancel:Nl,state:ji,steps:uv}=yU(typeof requestAnimationFrame<"u"?requestAnimationFrame:ur,!0),bU={useVisualState:uk({scrapeMotionValuesFromProps:lk,createRenderState:ik,onMount:(e,t,{renderState:n,latestValues:r})=>{Un.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Un.render(()=>{By(n,r,{enableHardwareAcceleration:!1},$y(t.tagName),e.transformTemplate),sk(t,n)})}})},wU={useVisualState:uk({scrapeMotionValuesFromProps:Vy,createRenderState:jy})};function xU(e,{forwardMotionProps:t=!1},n,r){return{...Fy(e)?bU:wU,preloadedFeatures:n,useRender:cU(t),createVisualElement:r,Component:e}}function Dl(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const ck=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function eg(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const SU=e=>t=>ck(t)&&e(t,eg(t));function Rl(e,t,n,r){return Dl(e,t,SU(n),r)}const TU=(e,t)=>n=>t(e(n)),Eu=(...e)=>e.reduce(TU);function fk(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Yx=fk("dragHorizontal"),Gx=fk("dragVertical");function dk(e){let t=!1;if(e==="y")t=Gx();else if(e==="x")t=Yx();else{const n=Yx(),r=Gx();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function hk(){const e=dk(!0);return e?(e(),!1):!0}class Fu{constructor(t){this.isMounted=!1,this.node=t}update(){}}function qx(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(o,s)=>{if(o.pointerType==="touch"||hk())return;const u=e.getProps();e.animationState&&u.whileHover&&e.animationState.setActive("whileHover",t),u[r]&&Un.update(()=>u[r](o,s))};return Rl(e.current,n,i,{passive:!e.getProps()[r]})}class CU extends Fu{mount(){this.unmount=Eu(qx(this.node,!0),qx(this.node,!1))}unmount(){}}class EU extends Fu{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=Eu(Dl(this.node.current,"focus",()=>this.onFocus()),Dl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const pk=(e,t)=>t?e===t?!0:pk(e,t.parentElement):!1;function cv(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,eg(n))}class kU extends Fu{constructor(){super(...arguments),this.removeStartListeners=ur,this.removeEndListeners=ur,this.removeAccessibleListeners=ur,this.startPointerPress=(t,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:v,globalTapTarget:p}=this.node.getProps();Un.update(()=>{!p&&!pk(this.node.current,u.target)?v&&v(u,c):d&&d(u,c)})},{passive:!(r.onTap||r.onPointerUp)}),s=Rl(window,"pointercancel",(u,c)=>this.cancelPress(u,c),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Eu(o,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=u=>{u.key!=="Enter"||!this.checkPressEnd()||cv("up",(c,d)=>{const{onTap:v}=this.node.getProps();v&&Un.update(()=>v(c,d))})};this.removeEndListeners(),this.removeEndListeners=Dl(this.node.current,"keyup",s),cv("down",(u,c)=>{this.startPress(u,c)})},n=Dl(this.node.current,"keydown",t),r=()=>{this.isPressing&&cv("cancel",(o,s)=>this.cancelPress(o,s))},i=Dl(this.node.current,"blur",r);this.removeAccessibleListeners=Eu(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Un.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!hk()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Un.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=Rl(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=Dl(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Eu(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Tm=new WeakMap,fv=new WeakMap,OU=e=>{const t=Tm.get(e.target);t&&t(e)},DU=e=>{e.forEach(OU)};function _U({root:e,...t}){const n=e||document;fv.has(n)||fv.set(n,{});const r=fv.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(DU,{root:e,...t})),r[i]}function PU(e,t,n){const r=_U(t);return Tm.set(e,n),r.observe(e),()=>{Tm.delete(e),r.unobserve(e)}}const RU={some:0,all:1};class IU extends Fu{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:RU[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:v,onViewportLeave:p}=this.node.getProps(),S=d?v:p;S&&S(c)};return PU(this.node.current,s,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(AU(t,n))&&this.startObserver()}unmount(){}}function AU({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const MU={inView:{Feature:IU},tap:{Feature:kU},focus:{Feature:EU},hover:{Feature:CU}};function gk(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function LU(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function FU(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function tg(e,t,n){const r=e.getProps();return Hy(r,t,n!==void 0?n:r.custom,LU(e),FU(e))}let eh=ur,ls=ur;process.env.NODE_ENV!=="production"&&(eh=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},ls=(e,t)=>{if(!e)throw new Error(t)});const ku=e=>e*1e3,Il=e=>e/1e3,NU={current:!1},vk=e=>Array.isArray(e)&&typeof e[0]=="number";function mk(e){return!!(!e||typeof e=="string"&&yk[e]||vk(e)||Array.isArray(e)&&e.every(mk))}const cd=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,yk={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:cd([0,.65,.55,1]),circOut:cd([.55,0,1,.45]),backIn:cd([.31,.01,.66,-.59]),backOut:cd([.33,1.53,.69,.99])};function bk(e){if(e)return vk(e)?cd(e):Array.isArray(e)?e.map(bk):yk[e]}function jU(e,t,n,{delay:r=0,duration:i,repeat:o=0,repeatType:s="loop",ease:u,times:c}={}){const d={[t]:n};c&&(d.offset=c);const v=bk(u);return Array.isArray(v)&&(d.easing=v),e.animate(d,{delay:r,duration:i,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}function BU(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const wk=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,$U=1e-7,VU=12;function HU(e,t,n,r,i){let o,s,u=0;do s=t+(n-t)/2,o=wk(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>$U&&++u<VU);return s}function th(e,t,n,r){if(e===t&&n===r)return ur;const i=o=>HU(o,0,1,e,n);return o=>o===0||o===1?o:wk(i(o),t,r)}const UU=th(.42,0,1,1),WU=th(0,0,.58,1),xk=th(.42,0,.58,1),zU=e=>Array.isArray(e)&&typeof e[0]!="number",Sk=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Tk=e=>t=>1-e(1-t),Uy=e=>1-Math.sin(Math.acos(e)),Ck=Tk(Uy),YU=Sk(Uy),Ek=th(.33,1.53,.69,.99),Wy=Tk(Ek),GU=Sk(Wy),qU=e=>(e*=2)<1?.5*Wy(e):.5*(2-Math.pow(2,-10*(e-1))),Xx={linear:ur,easeIn:UU,easeInOut:xk,easeOut:WU,circIn:Uy,circInOut:YU,circOut:Ck,backIn:Wy,backInOut:GU,backOut:Ek,anticipate:qU},Kx=e=>{if(Array.isArray(e)){ls(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return th(t,n,r,i)}else if(typeof e=="string")return ls(Xx[e]!==void 0,`Invalid easing type '${e}'`),Xx[e];return e},zy=(e,t)=>n=>!!(Jd(n)&&KH.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),kk=(e,t,n)=>r=>{if(!Jd(r))return r;const[i,o,s,u]=r.match(Qp);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:u!==void 0?parseFloat(u):1}},XU=e=>Ru(0,255,e),dv={...$c,transform:e=>Math.round(XU(e))},Oc={test:zy("rgb","red"),parse:kk("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+dv.transform(e)+", "+dv.transform(t)+", "+dv.transform(n)+", "+Td(Sd.transform(r))+")"};function KU(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Cm={test:zy("#"),parse:KU,transform:Oc.transform},Cf={test:zy("hsl","hue"),parse:kk("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Us.transform(Td(t))+", "+Us.transform(Td(n))+", "+Td(Sd.transform(r))+")"},ao={test:e=>Oc.test(e)||Cm.test(e)||Cf.test(e),parse:e=>Oc.test(e)?Oc.parse(e):Cf.test(e)?Cf.parse(e):Cm.parse(e),transform:e=>Jd(e)?e:e.hasOwnProperty("red")?Oc.transform(e):Cf.transform(e)},nr=(e,t,n)=>-n*e+n*t+e;function hv(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ZU({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const u=n<.5?n*(1+t):n+t-n*t,c=2*n-u;i=hv(c,u,e+1/3),o=hv(c,u,e),s=hv(c,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const pv=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},JU=[Cm,Oc,Cf],QU=e=>JU.find(t=>t.test(e));function Zx(e){const t=QU(e);ls(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===Cf&&(n=ZU(n)),n}const Ok=(e,t)=>{const n=Zx(e),r=Zx(t),i={...n};return o=>(i.red=pv(n.red,r.red,o),i.green=pv(n.green,r.green,o),i.blue=pv(n.blue,r.blue,o),i.alpha=nr(n.alpha,r.alpha,o),Oc.transform(i))};function eW(e){var t,n;return isNaN(e)&&Jd(e)&&(((t=e.match(Qp))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(ek))===null||n===void 0?void 0:n.length)||0)>0}const Dk={regex:qH,countKey:"Vars",token:"${v}",parse:ur},_k={regex:ek,countKey:"Colors",token:"${c}",parse:ao.parse},Pk={regex:Qp,countKey:"Numbers",token:"${n}",parse:$c.parse};function gv(e,{regex:t,countKey:n,token:r,parse:i}){const o=e.tokenised.match(t);o&&(e["num"+n]=o.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...o.map(i)))}function wp(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&gv(n,Dk),gv(n,_k),gv(n,Pk),n}function Rk(e){return wp(e).values}function Ik(e){const{values:t,numColors:n,numVars:r,tokenised:i}=wp(e),o=t.length;return s=>{let u=i;for(let c=0;c<o;c++)c<r?u=u.replace(Dk.token,s[c]):c<r+n?u=u.replace(_k.token,ao.transform(s[c])):u=u.replace(Pk.token,Td(s[c]));return u}}const tW=e=>typeof e=="number"?0:e;function nW(e){const t=Rk(e);return Ik(e)(t.map(tW))}const Iu={test:eW,parse:Rk,createTransformer:Ik,getAnimatableNone:nW},Ak=(e,t)=>n=>`${n>0?t:e}`;function Mk(e,t){return typeof e=="number"?n=>nr(e,t,n):ao.test(e)?Ok(e,t):e.startsWith("var(")?Ak(e,t):Fk(e,t)}const Lk=(e,t)=>{const n=[...e],r=n.length,i=e.map((o,s)=>Mk(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}},rW=(e,t)=>{const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Mk(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}},Fk=(e,t)=>{const n=Iu.createTransformer(t),r=wp(e),i=wp(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?Eu(Lk(r.values,i.values),n):(eh(!0,`Complex values '${e}' and '${t}' 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.`),Ak(e,t))},Bd=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Jx=(e,t)=>n=>nr(e,t,n);function iW(e){return typeof e=="number"?Jx:typeof e=="string"?ao.test(e)?Ok:Fk:Array.isArray(e)?Lk:typeof e=="object"?rW:Jx}function oW(e,t,n){const r=[],i=n||iW(e[0]),o=e.length-1;for(let s=0;s<o;s++){let u=i(e[s],e[s+1]);if(t){const c=Array.isArray(t)?t[s]||ur:t;u=Eu(c,u)}r.push(u)}return r}function Nk(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(ls(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=oW(t,r,i),u=s.length,c=d=>{let v=0;if(u>1)for(;v<e.length-2&&!(d<e[v+1]);v++);const p=Bd(e[v],e[v+1],d);return s[v](p)};return n?d=>c(Ru(e[0],e[o-1],d)):c}function aW(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Bd(0,t,r);e.push(nr(n,1,i))}}function sW(e){const t=[0];return aW(t,e.length-1),t}function lW(e,t){return e.map(n=>n*t)}function uW(e,t){return e.map(()=>t||xk).splice(0,e.length-1)}function xp({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=zU(r)?r.map(Kx):Kx(r),o={done:!1,value:t[0]},s=lW(n&&n.length===t.length?n:sW(t),e),u=Nk(s,t,{ease:Array.isArray(i)?i:uW(t,i)});return{calculatedDuration:e,next:c=>(o.value=u(c),o.done=c>=e,o)}}function jk(e,t){return t?e*(1e3/t):0}const cW=5;function Bk(e,t,n){const r=Math.max(t-cW,0);return jk(n-e(r),t-r)}const vv=.001,fW=.01,Qx=10,dW=.05,hW=1;function pW({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;eh(e<=ku(Qx),"Spring duration must be 10 seconds or less");let s=1-t;s=Ru(dW,hW,s),e=Ru(fW,Qx,Il(e)),s<1?(i=d=>{const v=d*s,p=v*e,S=v-n,T=Em(d,s),P=Math.exp(-p);return vv-S/T*P},o=d=>{const p=d*s*e,S=p*n+n,T=Math.pow(s,2)*Math.pow(d,2)*e,P=Math.exp(-p),I=Em(Math.pow(d,2),s);return(-i(d)+vv>0?-1:1)*((S-T)*P)/I}):(i=d=>{const v=Math.exp(-d*e),p=(d-n)*e+1;return-vv+v*p},o=d=>{const v=Math.exp(-d*e),p=(n-d)*(e*e);return v*p});const u=5/e,c=vW(i,o,u);if(e=ku(e),isNaN(c))return{stiffness:100,damping:10,duration:e};{const d=Math.pow(c,2)*r;return{stiffness:d,damping:s*2*Math.sqrt(r*d),duration:e}}}const gW=12;function vW(e,t,n){let r=n;for(let i=1;i<gW;i++)r=r-e(r)/t(r);return r}function Em(e,t){return e*Math.sqrt(1-t*t)}const mW=["duration","bounce"],yW=["stiffness","damping","mass"];function eS(e,t){return t.some(n=>e[n]!==void 0)}function bW(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!eS(e,yW)&&eS(e,mW)){const n=pW(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function $k({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],o=e[e.length-1],s={done:!1,value:i},{stiffness:u,damping:c,mass:d,duration:v,velocity:p,isResolvedFromDuration:S}=bW({...r,velocity:-Il(r.velocity||0)}),T=p||0,P=c/(2*Math.sqrt(u*d)),I=o-i,L=Il(Math.sqrt(u/d)),R=Math.abs(I)<5;n||(n=R?.01:2),t||(t=R?.005:.5);let H;if(P<1){const W=Em(L,P);H=te=>{const J=Math.exp(-P*L*te);return o-J*((T+P*L*I)/W*Math.sin(W*te)+I*Math.cos(W*te))}}else if(P===1)H=W=>o-Math.exp(-L*W)*(I+(T+L*I)*W);else{const W=L*Math.sqrt(P*P-1);H=te=>{const J=Math.exp(-P*L*te),de=Math.min(W*te,300);return o-J*((T+P*L*I)*Math.sinh(de)+W*I*Math.cosh(de))/W}}return{calculatedDuration:S&&v||null,next:W=>{const te=H(W);if(S)s.done=W>=v;else{let J=T;W!==0&&(P<1?J=Bk(H,W,te):J=0);const de=Math.abs(J)<=n,x=Math.abs(o-te)<=t;s.done=de&&x}return s.value=s.done?o:te,s}}}function tS({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:u,max:c,restDelta:d=.5,restSpeed:v}){const p=e[0],S={done:!1,value:p},T=ye=>u!==void 0&&ye<u||c!==void 0&&ye>c,P=ye=>u===void 0?c:c===void 0||Math.abs(u-ye)<Math.abs(c-ye)?u:c;let I=n*t;const L=p+I,R=s===void 0?L:s(L);R!==L&&(I=R-p);const H=ye=>-I*Math.exp(-ye/r),W=ye=>R+H(ye),te=ye=>{const ue=H(ye),Je=W(ye);S.done=Math.abs(ue)<=d,S.value=S.done?R:Je};let J,de;const x=ye=>{T(S.value)&&(J=ye,de=$k({keyframes:[S.value,P(S.value)],velocity:Bk(W,ye,S.value),damping:i,stiffness:o,restDelta:d,restSpeed:v}))};return x(0),{calculatedDuration:null,next:ye=>{let ue=!1;return!de&&J===void 0&&(ue=!0,te(ye),x(ye)),J!==void 0&&ye>J?de.next(ye-J):(!ue&&te(ye),S)}}}const wW=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Un.update(t,!0),stop:()=>Nl(t),now:()=>ji.isProcessing?ji.timestamp:performance.now()}},nS=2e4;function rS(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<nS;)t+=n,r=e.next(t);return t>=nS?1/0:t}const xW={decay:tS,inertia:tS,tween:xp,keyframes:xp,spring:$k};function Sp({autoplay:e=!0,delay:t=0,driver:n=wW,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:u="loop",onPlay:c,onStop:d,onComplete:v,onUpdate:p,...S}){let T=1,P=!1,I,L;const R=()=>{L=new Promise(Pe=>{I=Pe})};R();let H;const W=xW[i]||xp;let te;W!==xp&&typeof r[0]!="number"&&(process.env.NODE_ENV!=="production"&&ls(r.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${r}`),te=Nk([0,100],r,{clamp:!1}),r=[0,100]);const J=W({...S,keyframes:r});let de;u==="mirror"&&(de=W({...S,keyframes:[...r].reverse(),velocity:-(S.velocity||0)}));let x="idle",ye=null,ue=null,Je=null;J.calculatedDuration===null&&o&&(J.calculatedDuration=rS(J));const{calculatedDuration:Ne}=J;let $e=1/0,Ye=1/0;Ne!==null&&($e=Ne+s,Ye=$e*(o+1)-s);let qe=0;const pe=Pe=>{if(ue===null)return;T>0&&(ue=Math.min(ue,Pe)),T<0&&(ue=Math.min(Pe-Ye/T,ue)),ye!==null?qe=ye:qe=Math.round(Pe-ue)*T;const Ve=qe-t*(T>=0?1:-1),ze=T>=0?Ve<0:Ve>Ye;qe=Math.max(Ve,0),x==="finished"&&ye===null&&(qe=Ye);let Re=qe,Fe=J;if(o){const wt=Math.min(qe,Ye)/$e;let vt=Math.floor(wt),Et=wt%1;!Et&&wt>=1&&(Et=1),Et===1&&vt--,vt=Math.min(vt,o+1),!!(vt%2)&&(u==="reverse"?(Et=1-Et,s&&(Et-=s/$e)):u==="mirror"&&(Fe=de)),Re=Ru(0,1,Et)*$e}const Ke=ze?{done:!1,value:r[0]}:Fe.next(Re);te&&(Ke.value=te(Ke.value));let{done:lt}=Ke;!ze&&Ne!==null&&(lt=T>=0?qe>=Ye:qe<=0);const mt=ye===null&&(x==="finished"||x==="running"&&lt);return p&&p(Ke.value),mt&&Xe(),Ke},Oe=()=>{H&&H.stop(),H=void 0},je=()=>{x="idle",Oe(),I(),R(),ue=Je=null},Xe=()=>{x="finished",v&&v(),Oe(),I()},at=()=>{if(P)return;H||(H=n(pe));const Pe=H.now();c&&c(),ye!==null?ue=Pe-ye:(!ue||x==="finished")&&(ue=Pe),x==="finished"&&R(),Je=ue,ye=null,x="running",H.start()};e&&at();const Ce={then(Pe,Ve){return L.then(Pe,Ve)},get time(){return Il(qe)},set time(Pe){Pe=ku(Pe),qe=Pe,ye!==null||!H||T===0?ye=Pe:ue=H.now()-Pe/T},get duration(){const Pe=J.calculatedDuration===null?rS(J):J.calculatedDuration;return Il(Pe)},get speed(){return T},set speed(Pe){Pe===T||!H||(T=Pe,Ce.time=Il(qe))},get state(){return x},play:at,pause:()=>{x="paused",ye=qe},stop:()=>{P=!0,x!=="idle"&&(x="idle",d&&d(),je())},cancel:()=>{Je!==null&&pe(Je),je()},complete:()=>{x="finished"},sample:Pe=>(ue=0,pe(Pe))};return Ce}function SW(e){let t;return()=>(t===void 0&&(t=e()),t)}const TW=SW(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),CW=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Fh=10,EW=2e4,kW=(e,t)=>t.type==="spring"||e==="backgroundColor"||!mk(t.ease);function OW(e,t,{onUpdate:n,onComplete:r,...i}){if(!(TW()&&CW.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let s=!1,u,c,d=!1;const v=()=>{c=new Promise(W=>{u=W})};v();let{keyframes:p,duration:S=300,ease:T,times:P}=i;if(kW(t,i)){const W=Sp({...i,repeat:0,delay:0});let te={done:!1,value:p[0]};const J=[];let de=0;for(;!te.done&&de<EW;)te=W.sample(de),J.push(te.value),de+=Fh;P=void 0,p=J,S=de-Fh,T="linear"}const I=jU(e.owner.current,t,p,{...i,duration:S,ease:T,times:P}),L=()=>{d=!1,I.cancel()},R=()=>{d=!0,Un.update(L),u(),v()};return I.onfinish=()=>{d||(e.set(BU(p,i)),r&&r(),R())},{then(W,te){return c.then(W,te)},attachTimeline(W){return I.timeline=W,I.onfinish=null,ur},get time(){return Il(I.currentTime||0)},set time(W){I.currentTime=ku(W)},get speed(){return I.playbackRate},set speed(W){I.playbackRate=W},get duration(){return Il(S)},play:()=>{s||(I.play(),Nl(L))},pause:()=>I.pause(),stop:()=>{if(s=!0,I.playState==="idle")return;const{currentTime:W}=I;if(W){const te=Sp({...i,autoplay:!1});e.setWithVelocity(te.sample(W-Fh).value,te.sample(W).value,Fh)}R()},complete:()=>{d||I.finish()},cancel:R}}function DW({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const i=()=>(n&&n(e[e.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 t?Sp({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const _W={type:"spring",stiffness:500,damping:25,restSpeed:10},PW=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),RW={type:"keyframes",duration:.8},IW={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},AW=(e,{keyframes:t})=>t.length>2?RW:Bc.has(e)?e.startsWith("scale")?PW(t[1]):_W:IW,km=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Iu.test(t)||t==="0")&&!t.startsWith("url(")),MW=new Set(["brightness","contrast","saturate","opacity"]);function LW(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Qp)||[];if(!r)return e;const i=n.replace(r,"");let o=MW.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const FW=/([a-z-]*)\(.*?\)/g,Om={...Iu,getAnimatableNone:e=>{const t=e.match(FW);return t?t.map(LW).join(" "):e}},NW={...tk,color:ao,backgroundColor:ao,outlineColor:ao,fill:ao,stroke:ao,borderColor:ao,borderTopColor:ao,borderRightColor:ao,borderBottomColor:ao,borderLeftColor:ao,filter:Om,WebkitFilter:Om},Yy=e=>NW[e];function Vk(e,t){let n=Yy(e);return n!==Om&&(n=Iu),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Hk=e=>/^0[^.\s]+$/.test(e);function jW(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||Hk(e)}function BW(e,t,n,r){const i=km(t,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const s=r.from!==void 0?r.from:e.get();let u;const c=[];for(let d=0;d<o.length;d++)o[d]===null&&(o[d]=d===0?s:o[d-1]),jW(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 v=c[d];o[v]=Vk(t,u)}return o}function $W({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:u,from:c,elapsed:d,...v}){return!!Object.keys(v).length}function Gy(e,t){return e[t]||e.default||e}const VW={skipAnimations:!1},qy=(e,t,n,r={})=>i=>{const o=Gy(r,e)||{},s=o.delay||r.delay||0;let{elapsed:u=0}=r;u=u-ku(s);const c=BW(t,e,n,o),d=c[0],v=c[c.length-1],p=km(e,d),S=km(e,v);eh(p===S,`You are trying to animate ${e} from "${d}" to "${v}". ${d} is not an animatable value - to enable this animation set ${d} to a value animatable to ${v} via the \`style\` property.`);let T={keyframes:c,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-u,onUpdate:P=>{t.set(P),o.onUpdate&&o.onUpdate(P)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if($W(o)||(T={...T,...AW(e,T)}),T.duration&&(T.duration=ku(T.duration)),T.repeatDelay&&(T.repeatDelay=ku(T.repeatDelay)),!p||!S||NU.current||o.type===!1||VW.skipAnimations)return DW(T);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const P=OW(t,e,T);if(P)return P}return Sp(T)};function Tp(e){return!!(_o(e)&&e.add)}const Uk=e=>/^\-?\d*\.?\d+$/.test(e);function Xy(e,t){e.indexOf(t)===-1&&e.push(t)}function Ky(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Zy{constructor(){this.subscriptions=[]}add(t){return Xy(this.subscriptions,t),()=>Ky(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const s=this.subscriptions[o];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const iS=new Set;function Jy(e,t,n){e||iS.has(t)||(console.warn(t),n&&console.warn(n),iS.add(t))}const HW=e=>!isNaN(parseFloat(e));class UW{constructor(t,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:s}=ji;this.lastUpdated!==s&&(this.timeDelta=o,this.lastUpdated=s,Un.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=()=>Un.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=t,this.canTrackVelocity=HW(this.current),this.owner=n.owner}onChange(t){return process.env.NODE_ENV!=="production"&&Jy(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Zy);const r=this.events[t].add(n);return t==="change"?()=>{r(),Un.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?jk(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(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 Mf(e,t){return new UW(e,t)}const Wk=e=>t=>t.test(e),WW={test:e=>e==="auto",parse:e=>e},zk=[$c,Bt,Us,yu,JH,ZH,WW],ld=e=>zk.find(Wk(e)),zW=[...zk,ao,Iu],YW=e=>zW.find(Wk(e));function GW(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Mf(n))}function qW(e,t){const n=tg(e,t);let{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const s in o){const u=hU(o[s]);GW(e,s,u)}}function XW(e,t,n){var r,i;const o=Object.keys(t).filter(u=>!e.hasValue(u)),s=o.length;if(s)for(let u=0;u<s;u++){const c=o[u],d=t[c];let v=null;Array.isArray(d)&&(v=d[0]),v===null&&(v=(i=(r=n[c])!==null&&r!==void 0?r:e.readValue(c))!==null&&i!==void 0?i:t[c]),v!=null&&(typeof v=="string"&&(Uk(v)||Hk(v))?v=parseFloat(v):!YW(v)&&Iu.test(d)&&(v=Vk(c,d)),e.addValue(c,Mf(v,{owner:e})),n[c]===void 0&&(n[c]=v),v!==null&&e.setBaseTarget(c,v))}}function KW(e,t){return t?(t[e]||t.default||t).from:void 0}function ZW(e,t,n){const r={};for(const i in e){const o=KW(i,t);if(o!==void 0)r[i]=o;else{const s=n.getValue(i);s&&(r[i]=s.get())}}return r}function JW({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function QW(e,t){const n=e.get();if(Array.isArray(t)){for(let r=0;r<t.length;r++)if(t[r]!==n)return!0}else return n!==t}function Yk(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:s,...u}=e.makeTargetAnimatable(t);const c=e.getValue("willChange");r&&(o=r);const d=[],v=i&&e.animationState&&e.animationState.getState()[i];for(const p in u){const S=e.getValue(p),T=u[p];if(!S||T===void 0||v&&JW(v,p))continue;const P={delay:n,elapsed:0,...Gy(o||{},p)};if(window.HandoffAppearAnimations){const R=e.getProps()[GE];if(R){const H=window.HandoffAppearAnimations(R,p,S,Un);H!==null&&(P.elapsed=H,P.isHandoff=!0)}}let I=!P.isHandoff&&!QW(S,T);if(P.type==="spring"&&(S.getVelocity()||P.velocity)&&(I=!1),S.animation&&(I=!1),I)continue;S.start(qy(p,S,T,e.shouldReduceMotion&&Bc.has(p)?{type:!1}:P));const L=S.animation;Tp(c)&&(c.add(p),L.then(()=>c.remove(p))),d.push(L)}return s&&Promise.all(d).then(()=>{s&&qW(e,s)}),d}function Dm(e,t,n={}){const r=tg(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(Yk(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:v,staggerDirection:p}=i;return ez(e,t,d+c,v,p,n)}:()=>Promise.resolve(),{when:u}=i;if(u){const[c,d]=u==="beforeChildren"?[o,s]:[s,o];return c().then(()=>d())}else return Promise.all([o(),s(n.delay)])}function ez(e,t,n=0,r=0,i=1,o){const s=[],u=(e.variantChildren.size-1)*r,c=i===1?(d=0)=>d*r:(d=0)=>u-d*r;return Array.from(e.variantChildren).sort(tz).forEach((d,v)=>{d.notify("AnimationStart",t),s.push(Dm(d,t,{...o,delay:n+c(v)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(s)}function tz(e,t){return e.sortNodePosition(t)}function nz(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>Dm(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=Dm(e,t,n);else{const i=typeof t=="function"?tg(e,t,n.custom):t;r=Promise.all(Yk(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}const rz=[...My].reverse(),iz=My.length;function oz(e){return t=>Promise.all(t.map(({animation:n,options:r})=>nz(e,n,r)))}function az(e){let t=oz(e);const n=lz();let r=!0;const i=(c,d)=>{const v=tg(e,d);if(v){const{transition:p,transitionEnd:S,...T}=v;c={...c,...T,...S}}return c};function o(c){t=c(e)}function s(c,d){const v=e.getProps(),p=e.getVariantContext(!0)||{},S=[],T=new Set;let P={},I=1/0;for(let R=0;R<iz;R++){const H=rz[R],W=n[H],te=v[H]!==void 0?v[H]:p[H],J=Nd(te),de=H===d?W.isActive:null;de===!1&&(I=R);let x=te===p[H]&&te!==v[H]&&J;if(x&&r&&e.manuallyAnimateOnMount&&(x=!1),W.protectedKeys={...P},!W.isActive&&de===null||!te&&!W.prevProp||Zp(te)||typeof te=="boolean")continue;let ue=sz(W.prevProp,te)||H===d&&W.isActive&&!x&&J||R>I&&J,Je=!1;const Ne=Array.isArray(te)?te:[te];let $e=Ne.reduce(i,{});de===!1&&($e={});const{prevResolvedValues:Ye={}}=W,qe={...Ye,...$e},pe=Oe=>{ue=!0,T.has(Oe)&&(Je=!0,T.delete(Oe)),W.needsAnimating[Oe]=!0};for(const Oe in qe){const je=$e[Oe],Xe=Ye[Oe];if(P.hasOwnProperty(Oe))continue;let at=!1;bp(je)&&bp(Xe)?at=!gk(je,Xe):at=je!==Xe,at?je!==void 0?pe(Oe):T.add(Oe):je!==void 0&&T.has(Oe)?pe(Oe):W.protectedKeys[Oe]=!0}W.prevProp=te,W.prevResolvedValues=$e,W.isActive&&(P={...P,...$e}),r&&e.blockInitialAnimation&&(ue=!1),ue&&(!x||Je)&&S.push(...Ne.map(Oe=>({animation:Oe,options:{type:H,...c}})))}if(T.size){const R={};T.forEach(H=>{const W=e.getBaseTarget(H);W!==void 0&&(R[H]=W)}),S.push({animation:R})}let L=!!S.length;return r&&(v.initial===!1||v.initial===v.animate)&&!e.manuallyAnimateOnMount&&(L=!1),r=!1,L?t(S):Promise.resolve()}function u(c,d,v){var p;if(n[c].isActive===d)return Promise.resolve();(p=e.variantChildren)===null||p===void 0||p.forEach(T=>{var P;return(P=T.animationState)===null||P===void 0?void 0:P.setActive(c,d)}),n[c].isActive=d;const S=s(v,c);for(const T in n)n[T].protectedKeys={};return S}return{animateChanges:s,setActive:u,setAnimateFunction:o,getState:()=>n}}function sz(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!gk(t,e):!1}function wc(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function lz(){return{animate:wc(!0),whileInView:wc(),whileHover:wc(),whileTap:wc(),whileDrag:wc(),whileFocus:wc(),exit:wc()}}class uz extends Fu{constructor(t){super(t),t.animationState||(t.animationState=az(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Zp(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let cz=0;class fz extends Fu{constructor(){super(...arguments),this.id=cz++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const o=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const dz={animation:{Feature:uz},exit:{Feature:fz}},oS=(e,t)=>Math.abs(e-t);function hz(e,t){const n=oS(e.x,t.x),r=oS(e.y,t.y);return Math.sqrt(n**2+r**2)}class Gk{constructor(t,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=yv(this.lastMoveEventInfo,this.history),S=this.startEvent!==null,T=hz(p.offset,{x:0,y:0})>=3;if(!S&&!T)return;const{point:P}=p,{timestamp:I}=ji;this.history.push({...P,timestamp:I});const{onStart:L,onMove:R}=this.handlers;S||(L&&L(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),R&&R(this.lastMoveEvent,p)},this.handlePointerMove=(p,S)=>{this.lastMoveEvent=p,this.lastMoveEventInfo=mv(S,this.transformPagePoint),Un.update(this.updatePoint,!0)},this.handlePointerUp=(p,S)=>{this.end();const{onEnd:T,onSessionEnd:P,resumeAnimation:I}=this.handlers;if(this.dragSnapToOrigin&&I&&I(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const L=yv(p.type==="pointercancel"?this.lastMoveEventInfo:mv(S,this.transformPagePoint),this.history);this.startEvent&&T&&T(p,L),P&&P(p,L)},!ck(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=eg(t),u=mv(s,this.transformPagePoint),{point:c}=u,{timestamp:d}=ji;this.history=[{...c,timestamp:d}];const{onSessionStart:v}=n;v&&v(t,yv(u,this.history)),this.removeListeners=Eu(Rl(this.contextWindow,"pointermove",this.handlePointerMove),Rl(this.contextWindow,"pointerup",this.handlePointerUp),Rl(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Nl(this.updatePoint)}}function mv(e,t){return t?{point:t(e.point)}:e}function aS(e,t){return{x:e.x-t.x,y:e.y-t.y}}function yv({point:e},t){return{point:e,delta:aS(e,qk(t)),offset:aS(e,pz(t)),velocity:gz(t,.1)}}function pz(e){return e[0]}function qk(e){return e[e.length-1]}function gz(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=qk(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>ku(t)));)n--;if(!r)return{x:0,y:0};const o=Il(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function ea(e){return e.max-e.min}function _m(e,t=0,n=.01){return Math.abs(e-t)<=n}function sS(e,t,n,r=.5){e.origin=r,e.originPoint=nr(t.min,t.max,e.origin),e.scale=ea(n)/ea(t),(_m(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=nr(n.min,n.max,e.origin)-e.originPoint,(_m(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Cd(e,t,n,r){sS(e.x,t.x,n.x,r?r.originX:void 0),sS(e.y,t.y,n.y,r?r.originY:void 0)}function lS(e,t,n){e.min=n.min+t.min,e.max=e.min+ea(t)}function vz(e,t,n){lS(e.x,t.x,n.x),lS(e.y,t.y,n.y)}function uS(e,t,n){e.min=t.min-n.min,e.max=e.min+ea(t)}function Ed(e,t,n){uS(e.x,t.x,n.x),uS(e.y,t.y,n.y)}function mz(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?nr(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?nr(n,e,r.max):Math.min(e,n)),e}function cS(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function yz(e,{top:t,left:n,bottom:r,right:i}){return{x:cS(e.x,n,i),y:cS(e.y,t,r)}}function fS(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function bz(e,t){return{x:fS(e.x,t.x),y:fS(e.y,t.y)}}function wz(e,t){let n=.5;const r=ea(e),i=ea(t);return i>r?n=Bd(t.min,t.max-r,e.min):r>i&&(n=Bd(e.min,e.max-i,t.min)),Ru(0,1,n)}function xz(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Pm=.35;function Sz(e=Pm){return e===!1?e=0:e===!0&&(e=Pm),{x:dS(e,"left","right"),y:dS(e,"top","bottom")}}function dS(e,t,n){return{min:hS(e,t),max:hS(e,n)}}function hS(e,t){return typeof e=="number"?e:e[t]||0}const pS=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ef=()=>({x:pS(),y:pS()}),gS=()=>({min:0,max:0}),Or=()=>({x:gS(),y:gS()});function Ea(e){return[e("x"),e("y")]}function Xk({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Tz({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Cz(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function bv(e){return e===void 0||e===1}function Rm({scale:e,scaleX:t,scaleY:n}){return!bv(e)||!bv(t)||!bv(n)}function Tc(e){return Rm(e)||Kk(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Kk(e){return vS(e.x)||vS(e.y)}function vS(e){return e&&e!=="0%"}function Cp(e,t,n){const r=e-n,i=t*r;return n+i}function mS(e,t,n,r,i){return i!==void 0&&(e=Cp(e,i,r)),Cp(e,n,r)+t}function Im(e,t=0,n=1,r,i){e.min=mS(e.min,t,n,r,i),e.max=mS(e.max,t,n,r,i)}function Zk(e,{x:t,y:n}){Im(e.x,t.translate,t.scale,t.originPoint),Im(e.y,n.translate,n.scale,n.originPoint)}function Ez(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let u=0;u<i;u++){o=n[u],s=o.projectionDelta;const c=o.instance;c&&c.style&&c.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&kf(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Zk(e,s)),r&&Tc(o.latestValues)&&kf(e,o.latestValues))}t.x=yS(t.x),t.y=yS(t.y)}function yS(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function wu(e,t){e.min=e.min+t,e.max=e.max+t}function bS(e,t,[n,r,i]){const o=t[i]!==void 0?t[i]:.5,s=nr(e.min,e.max,o);Im(e,t[n],t[r],s,t.scale)}const kz=["x","scaleX","originX"],Oz=["y","scaleY","originY"];function kf(e,t){bS(e.x,t,kz),bS(e.y,t,Oz)}function Jk(e,t){return Xk(Cz(e.getBoundingClientRect(),t))}function Dz(e,t,n){const r=Jk(e,n),{scroll:i}=t;return i&&(wu(r.x,i.offset.x),wu(r.y,i.offset.y)),r}const Qk=({current:e})=>e?e.ownerDocument.defaultView:null,_z=new WeakMap;class Pz{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Or(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=v=>{const{dragSnapToOrigin:p}=this.getProps();p?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(eg(v,"page").point)},o=(v,p)=>{const{drag:S,dragPropagation:T,onDragStart:P}=this.getProps();if(S&&!T&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=dk(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),Ea(L=>{let R=this.getAxisMotionValue(L).get()||0;if(Us.test(R)){const{projection:H}=this.visualElement;if(H&&H.layout){const W=H.layout.layoutBox[L];W&&(R=ea(W)*(parseFloat(R)/100))}}this.originPoint[L]=R}),P&&Un.update(()=>P(v,p),!1,!0);const{animationState:I}=this.visualElement;I&&I.setActive("whileDrag",!0)},s=(v,p)=>{const{dragPropagation:S,dragDirectionLock:T,onDirectionLock:P,onDrag:I}=this.getProps();if(!S&&!this.openGlobalLock)return;const{offset:L}=p;if(T&&this.currentDirection===null){this.currentDirection=Rz(L),this.currentDirection!==null&&P&&P(this.currentDirection);return}this.updateAxis("x",p.point,L),this.updateAxis("y",p.point,L),this.visualElement.render(),I&&I(v,p)},u=(v,p)=>this.stop(v,p),c=()=>Ea(v=>{var p;return this.getAnimationState(v)==="paused"&&((p=this.getAxisMotionValue(v).animation)===null||p===void 0?void 0:p.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new Gk(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:u,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:Qk(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Un.update(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.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(t,n,r){const{drag:i}=this.getProps();if(!r||!Nh(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=mz(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&Tf(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=yz(i.layoutBox,n):this.constraints=!1,this.elastic=Sz(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Ea(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=xz(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Tf(t))return!1;const r=t.current;ls(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=Dz(r,i.root,this.visualElement.getTransformPagePoint());let s=bz(i.layout.layoutBox,o);if(n){const u=n(Tz(s));this.hasMutatedConstraints=!!u,u&&(s=Xk(u))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:u}=this.getProps(),c=this.constraints||{},d=Ea(v=>{if(!Nh(v,n,this.currentDirection))return;let p=c&&c[v]||{};s&&(p={min:0,max:0});const S=i?200:1e6,T=i?40:1e7,P={type:"inertia",velocity:r?t[v]:0,bounceStiffness:S,bounceDamping:T,timeConstant:750,restDelta:1,restSpeed:10,...o,...p};return this.startAxisValueAnimation(v,P)});return Promise.all(d).then(u)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(qy(t,r,0,n))}stopAnimation(){Ea(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ea(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Ea(n=>{const{drag:r}=this.getProps();if(!Nh(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:u}=i.layout.layoutBox[n];o.set(t[n]-nr(s,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Tf(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Ea(s=>{const u=this.getAxisMotionValue(s);if(u){const c=u.get();i[s]=wz({min:c,max:c},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ea(s=>{if(!Nh(s,t,null))return;const u=this.getAxisMotionValue(s),{min:c,max:d}=this.constraints[s];u.set(nr(c,d,i[s]))})}addListeners(){if(!this.visualElement.current)return;_z.set(this.visualElement,this);const t=this.visualElement.current,n=Rl(t,"pointerdown",c=>{const{drag:d,dragListener:v=!0}=this.getProps();d&&v&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();Tf(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 s=Dl(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&(Ea(v=>{const p=this.getAxisMotionValue(v);p&&(this.originPoint[v]+=c[v].translate,p.set(p.get()+c[v].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),u&&u()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=Pm,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:u}}}function Nh(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Rz(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Iz extends Fu{constructor(t){super(t),this.removeGroupControls=ur,this.removeListeners=ur,this.controls=new Pz(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ur}unmount(){this.removeGroupControls(),this.removeListeners()}}const wS=e=>(t,n)=>{e&&Un.update(()=>e(t,n))};class Az extends Fu{constructor(){super(...arguments),this.removePointerDownListener=ur}onPointerDown(t){this.session=new Gk(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Qk(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:wS(t),onStart:wS(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&Un.update(()=>i(o,s))}}}mount(){this.removePointerDownListener=Rl(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function Mz(){const e=X.useContext(Iy);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=X.useId();return X.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}const Zh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function xS(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ud={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Bt.test(e))e=parseFloat(e);else return e;const n=xS(e,t.target.x),r=xS(e,t.target.y);return`${n}% ${r}%`}},Lz={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Iu.parse(e);if(i.length>5)return r;const o=Iu.createTransformer(e),s=typeof i[0]!="number"?1:0,u=n.x.scale*t.x,c=n.y.scale*t.y;i[0+s]/=u,i[1+s]/=c;const d=nr(u,c,.5);return typeof i[2+s]=="number"&&(i[2+s]/=d),typeof i[3+s]=="number"&&(i[3+s]/=d),o(i)}};class Fz extends X.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;WH(Nz),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()})),Zh.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,s=r.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||Un.postRender(()=>{const u=s.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function eO(e){const[t,n]=Mz(),r=X.useContext(XE);return X.createElement(Fz,{...e,layoutGroup:r,switchLayoutGroup:X.useContext(KE),isPresent:t,safeToRemove:n})}const Nz={borderRadius:{...ud,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ud,borderTopRightRadius:ud,borderBottomLeftRadius:ud,borderBottomRightRadius:ud,boxShadow:Lz},tO=["TopLeft","TopRight","BottomLeft","BottomRight"],jz=tO.length,SS=e=>typeof e=="string"?parseFloat(e):e,TS=e=>typeof e=="number"||Bt.test(e);function Bz(e,t,n,r,i,o){i?(e.opacity=nr(0,n.opacity!==void 0?n.opacity:1,$z(r)),e.opacityExit=nr(t.opacity!==void 0?t.opacity:1,0,Vz(r))):o&&(e.opacity=nr(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<jz;s++){const u=`border${tO[s]}Radius`;let c=CS(t,u),d=CS(n,u);if(c===void 0&&d===void 0)continue;c||(c=0),d||(d=0),c===0||d===0||TS(c)===TS(d)?(e[u]=Math.max(nr(SS(c),SS(d),r),0),(Us.test(d)||Us.test(c))&&(e[u]+="%")):e[u]=d}(t.rotate||n.rotate)&&(e.rotate=nr(t.rotate||0,n.rotate||0,r))}function CS(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const $z=nO(0,.5,Ck),Vz=nO(.5,.95,ur);function nO(e,t,n){return r=>r<e?0:r>t?1:n(Bd(e,t,r))}function ES(e,t){e.min=t.min,e.max=t.max}function Ca(e,t){ES(e.x,t.x),ES(e.y,t.y)}function kS(e,t,n,r,i){return e-=t,e=Cp(e,1/n,r),i!==void 0&&(e=Cp(e,1/i,r)),e}function Hz(e,t=0,n=1,r=.5,i,o=e,s=e){if(Us.test(t)&&(t=parseFloat(t),t=nr(s.min,s.max,t/100)-s.min),typeof t!="number")return;let u=nr(o.min,o.max,r);e===o&&(u-=t),e.min=kS(e.min,t,n,u,i),e.max=kS(e.max,t,n,u,i)}function OS(e,t,[n,r,i],o,s){Hz(e,t[n],t[r],t[i],t.scale,o,s)}const Uz=["x","scaleX","originX"],Wz=["y","scaleY","originY"];function DS(e,t,n,r){OS(e.x,t,Uz,n?n.x:void 0,r?r.x:void 0),OS(e.y,t,Wz,n?n.y:void 0,r?r.y:void 0)}function _S(e){return e.translate===0&&e.scale===1}function rO(e){return _S(e.x)&&_S(e.y)}function zz(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function iO(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function PS(e){return ea(e.x)/ea(e.y)}class Yz{constructor(){this.members=[]}add(t){Xy(this.members,t),t.scheduleRender()}remove(t){if(Ky(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===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(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function RS(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:c,rotateX:d,rotateY:v}=n;c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),v&&(r+=`rotateY(${v}deg) `)}const s=e.x.scale*t.x,u=e.y.scale*t.y;return(s!==1||u!==1)&&(r+=`scale(${s}, ${u})`),r||"none"}const Gz=(e,t)=>e.depth-t.depth;class qz{constructor(){this.children=[],this.isDirty=!1}add(t){Xy(this.children,t),this.isDirty=!0}remove(t){Ky(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Gz),this.isDirty=!1,this.children.forEach(t)}}function Xz(e,t){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Nl(r),e(o-t))};return Un.read(r,!0),()=>Nl(r)}function Kz(e){window.MotionDebug&&window.MotionDebug.record(e)}function Zz(e){return e instanceof SVGElement&&e.tagName!=="svg"}function Jz(e,t,n){const r=_o(e)?e:Mf(e);return r.start(qy("",r,t,n)),r.animation}const IS=["","X","Y","Z"],Qz={visibility:"hidden"},AS=1e3;let e5=0;const Cc={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function oO({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},u=t==null?void 0:t()){this.id=e5++,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(r5),this.nodes.forEach(l5),this.nodes.forEach(u5),this.nodes.forEach(i5),Kz(Cc)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,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 qz)}addEventListener(s,u){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Zy),this.eventHandlers.get(s).add(u)}notifyListeners(s,...u){const c=this.eventHandlers.get(s);c&&c.notify(...u)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,u=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Zz(s),this.instance=s;const{layoutId:c,layout:d,visualElement:v}=this.options;if(v&&!v.current&&v.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),u&&(d||c)&&(this.isLayoutDirty=!0),e){let p;const S=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,p&&p(),p=Xz(S,250),Zh.hasAnimatedSinceResize&&(Zh.hasAnimatedSinceResize=!1,this.nodes.forEach(LS))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&v&&(c||d)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:S,hasRelativeTargetChanged:T,layout:P})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const I=this.options.transition||v.getDefaultTransition()||p5,{onLayoutAnimationStart:L,onLayoutAnimationComplete:R}=v.getProps(),H=!this.targetLayout||!iO(this.targetLayout,P)||T,W=!S&&T;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||W||S&&(H||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(p,W);const te={...Gy(I,"layout"),onPlay:L,onComplete:R};(v.shouldReduceMotion||this.options.layoutRoot)&&(te.delay=0,te.type=!1),this.startAnimation(te)}else S||LS(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=P})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Nl(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(c5),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!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 v=0;v<this.path.length;v++){const p=this.path[v];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(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(MS);return}this.isUpdating||this.nodes.forEach(a5),this.isUpdating=!1,this.nodes.forEach(s5),this.nodes.forEach(t5),this.nodes.forEach(n5),this.clearAllSnapshots();const u=performance.now();ji.delta=Ru(0,1e3/60,u-ji.timestamp),ji.timestamp=u,ji.isProcessing=!0,uv.update.process(ji),uv.preRender.process(ji),uv.render.process(ji),ji.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(o5),this.sharedNodes.forEach(f5)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Un.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Un.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 s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Or(),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,s?s.layoutBox:void 0)}updateScroll(s="measure"){let u=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(u=!1),u&&(this.scroll={animationId:this.root.animationId,phase:s,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform,u=this.projectionDelta&&!rO(this.projectionDelta),c=this.getTransformTemplate(),d=c?c(this.latestValues,""):void 0,v=d!==this.prevTransformTemplateValue;s&&(u||Tc(this.latestValues)||v)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const u=this.measurePageBox();let c=this.removeElementScroll(u);return s&&(c=this.removeTransform(c)),g5(c),{animationId:this.root.animationId,measuredBox:u,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return Or();const u=s.measureViewportBox(),{scroll:c}=this.root;return c&&(wu(u.x,c.offset.x),wu(u.y,c.offset.y)),u}removeElementScroll(s){const u=Or();Ca(u,s);for(let c=0;c<this.path.length;c++){const d=this.path[c],{scroll:v,options:p}=d;if(d!==this.root&&v&&p.layoutScroll){if(v.isRoot){Ca(u,s);const{scroll:S}=this.root;S&&(wu(u.x,-S.offset.x),wu(u.y,-S.offset.y))}wu(u.x,v.offset.x),wu(u.y,v.offset.y)}}return u}applyTransform(s,u=!1){const c=Or();Ca(c,s);for(let d=0;d<this.path.length;d++){const v=this.path[d];!u&&v.options.layoutScroll&&v.scroll&&v!==v.root&&kf(c,{x:-v.scroll.offset.x,y:-v.scroll.offset.y}),Tc(v.latestValues)&&kf(c,v.latestValues)}return Tc(this.latestValues)&&kf(c,this.latestValues),c}removeTransform(s){const u=Or();Ca(u,s);for(let c=0;c<this.path.length;c++){const d=this.path[c];if(!d.instance||!Tc(d.latestValues))continue;Rm(d.latestValues)&&d.updateSnapshot();const v=Or(),p=d.measurePageBox();Ca(v,p),DS(u,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,v)}return Tc(this.latestValues)&&DS(u,this.latestValues),u}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.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(s=!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(!(s||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 T=this.getClosestProjectingParent();T&&T.layout&&this.animationProgress!==1?(this.relativeParent=T,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Or(),this.relativeTargetOrigin=Or(),Ed(this.relativeTargetOrigin,this.layout.layoutBox,T.layout.layoutBox),Ca(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Or(),this.targetWithTransforms=Or()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),vz(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ca(this.target,this.layout.layoutBox),Zk(this.target,this.targetDelta)):Ca(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const T=this.getClosestProjectingParent();T&&!!T.resumingFrom==!!this.resumingFrom&&!T.options.layoutScroll&&T.target&&this.animationProgress!==1?(this.relativeParent=T,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Or(),this.relativeTargetOrigin=Or(),Ed(this.relativeTargetOrigin,this.target,T.target),Ca(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Cc.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Rm(this.parent.latestValues)||Kk(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 s;const u=this.getLead(),c=!!this.resumingFrom||this!==u;let d=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(d=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===ji.timestamp&&(d=!1),d)return;const{layout:v,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||!(v||p))return;Ca(this.layoutCorrected,this.layout.layoutBox);const S=this.treeScale.x,T=this.treeScale.y;Ez(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:P}=u;if(!P){this.projectionTransform&&(this.projectionDelta=Ef(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Ef(),this.projectionDeltaWithTransform=Ef());const I=this.projectionTransform;Cd(this.projectionDelta,this.layoutCorrected,P,this.latestValues),this.projectionTransform=RS(this.projectionDelta,this.treeScale),(this.projectionTransform!==I||this.treeScale.x!==S||this.treeScale.y!==T)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",P)),Cc.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),s){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(s,u=!1){const c=this.snapshot,d=c?c.latestValues:{},v={...this.latestValues},p=Ef();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const S=Or(),T=c?c.source:void 0,P=this.layout?this.layout.source:void 0,I=T!==P,L=this.getStack(),R=!L||L.members.length<=1,H=!!(I&&!R&&this.options.crossfade===!0&&!this.path.some(h5));this.animationProgress=0;let W;this.mixTargetDelta=te=>{const J=te/1e3;FS(p.x,s.x,J),FS(p.y,s.y,J),this.setTargetDelta(p),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ed(S,this.layout.layoutBox,this.relativeParent.layout.layoutBox),d5(this.relativeTarget,this.relativeTargetOrigin,S,J),W&&zz(this.relativeTarget,W)&&(this.isProjectionDirty=!1),W||(W=Or()),Ca(W,this.relativeTarget)),I&&(this.animationValues=v,Bz(v,d,this.latestValues,J,H,R)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=J},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Nl(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Un.update(()=>{Zh.hasAnimatedSinceResize=!0,this.currentAnimation=Jz(0,AS,{...s,onUpdate:u=>{this.mixTargetDelta(u),s.onUpdate&&s.onUpdate(u)},onComplete:()=>{s.onComplete&&s.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 s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(AS),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:u,target:c,layout:d,latestValues:v}=s;if(!(!u||!c||!d)){if(this!==s&&this.layout&&d&&aO(this.options.animationType,this.layout.layoutBox,d.layoutBox)){c=this.target||Or();const p=ea(this.layout.layoutBox.x);c.x.min=s.target.x.min,c.x.max=c.x.min+p;const S=ea(this.layout.layoutBox.y);c.y.min=s.target.y.min,c.y.max=c.y.min+S}Ca(u,c),kf(u,v),Cd(this.projectionDeltaWithTransform,this.layoutCorrected,u,v)}}registerSharedNode(s,u){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Yz),this.sharedNodes.get(s).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 s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:u}=this.options;return u?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:u}=this.options;return u?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:u,preserveFollowOpacity:c}={}){const d=this.getStack();d&&d.promote(this,c),s&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let u=!1;const{latestValues:c}=s;if((c.rotate||c.rotateX||c.rotateY||c.rotateZ)&&(u=!0),!u)return;const d={};for(let v=0;v<IS.length;v++){const p="rotate"+IS[v];c[p]&&(d[p]=c[p],s.setStaticValue(p,0))}s.render();for(const v in d)s.setStaticValue(v,d[v]);s.scheduleRender()}getProjectionStyles(s){var u,c;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Qz;const d={visibility:""},v=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=Kh(s==null?void 0:s.pointerEvents)||"",d.transform=v?v(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=Kh(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!Tc(this.latestValues)&&(I.transform=v?v({},""):"none",this.hasProjected=!1),I}const S=p.animationValues||p.latestValues;this.applyTransformsToTarget(),d.transform=RS(this.projectionDeltaWithTransform,this.treeScale,S),v&&(d.transform=v(S,d.transform));const{x:T,y:P}=this.projectionDelta;d.transformOrigin=`${T.origin*100}% ${P.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 mp){if(S[I]===void 0)continue;const{correct:L,applyTo:R}=mp[I],H=d.transform==="none"?S[I]:L(S[I],p);if(R){const W=R.length;for(let te=0;te<W;te++)d[R[te]]=H}else d[I]=H}return this.options.layoutId&&(d.pointerEvents=p===this?Kh(s==null?void 0:s.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var u;return(u=s.currentAnimation)===null||u===void 0?void 0:u.stop()}),this.root.nodes.forEach(MS),this.root.sharedNodes.clear()}}}function t5(e){e.updateLayout()}function n5(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,s=n.source!==e.layout.source;o==="size"?Ea(p=>{const S=s?n.measuredBox[p]:n.layoutBox[p],T=ea(S);S.min=r[p].min,S.max=S.min+T}):aO(o,n.layoutBox,r)&&Ea(p=>{const S=s?n.measuredBox[p]:n.layoutBox[p],T=ea(r[p]);S.max=S.min+T,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[p].max=e.relativeTarget[p].min+T)});const u=Ef();Cd(u,r,n.layoutBox);const c=Ef();s?Cd(c,e.applyTransform(i,!0),n.measuredBox):Cd(c,r,n.layoutBox);const d=!rO(u);let v=!1;if(!e.resumeFrom){const p=e.getClosestProjectingParent();if(p&&!p.resumeFrom){const{snapshot:S,layout:T}=p;if(S&&T){const P=Or();Ed(P,n.layoutBox,S.layoutBox);const I=Or();Ed(I,r,T.layoutBox),iO(P,I)||(v=!0),p.options.layoutRoot&&(e.relativeTarget=I,e.relativeTargetOrigin=P,e.relativeParent=p)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:c,layoutDelta:u,hasLayoutChanged:d,hasRelativeTargetChanged:v})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function r5(e){Cc.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function i5(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function o5(e){e.clearSnapshot()}function MS(e){e.clearMeasurements()}function a5(e){e.isLayoutDirty=!1}function s5(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function LS(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function l5(e){e.resolveTargetDelta()}function u5(e){e.calcProjection()}function c5(e){e.resetRotation()}function f5(e){e.removeLeadSnapshot()}function FS(e,t,n){e.translate=nr(t.translate,0,n),e.scale=nr(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function NS(e,t,n,r){e.min=nr(t.min,n.min,r),e.max=nr(t.max,n.max,r)}function d5(e,t,n,r){NS(e.x,t.x,n.x,r),NS(e.y,t.y,n.y,r)}function h5(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const p5={duration:.45,ease:[.4,0,.1,1]},jS=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),BS=jS("applewebkit/")&&!jS("chrome/")?Math.round:ur;function $S(e){e.min=BS(e.min),e.max=BS(e.max)}function g5(e){$S(e.x),$S(e.y)}function aO(e,t,n){return e==="position"||e==="preserve-aspect"&&!_m(PS(t),PS(n),.2)}const v5=oO({attachResizeListener:(e,t)=>Dl(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),wv={current:void 0},sO=oO({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!wv.current){const e=new v5({});e.mount(window),e.setOptions({layoutScroll:!0}),wv.current=e}return wv.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),m5={pan:{Feature:Az},drag:{Feature:Iz,ProjectionNode:sO,MeasureLayout:eO}},y5=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function b5(e){const t=y5.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}const w5=4;function Am(e,t,n=1){ls(n<=w5,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=b5(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return Uk(s)?parseFloat(s):s}else return Sm(i)?Am(i,t,n+1):i}function x5(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(i=>{const o=i.get();if(!Sm(o))return;const s=Am(o,r);s&&i.set(s)});for(const i in t){const o=t[i];if(!Sm(o))continue;const s=Am(o,r);s&&(t[i]=s,n||(n={}),n[i]===void 0&&(n[i]=o))}return{target:t,transitionEnd:n}}const S5=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),lO=e=>S5.has(e),T5=e=>Object.keys(e).some(lO),jh=e=>e===$c||e===Bt,VS=(e,t)=>parseFloat(e.split(", ")[t]),HS=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return VS(i[1],t);{const o=r.match(/^matrix\((.+)\)$/);return o?VS(o[1],e):0}},C5=new Set(["x","y","z"]),E5=Zd.filter(e=>!C5.has(e));function k5(e){const t=[];return E5.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const Lf={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:HS(4,13),y:HS(5,14)};Lf.translateX=Lf.x;Lf.translateY=Lf.y;const O5=(e,t,n)=>{const r=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:s}=o,u={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(d=>{u[d]=Lf[d](r,o)}),t.render();const c=t.measureViewportBox();return n.forEach(d=>{const v=t.getValue(d);v&&v.jump(u[d]),e[d]=Lf[d](c,o)}),e},D5=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(lO);let o=[],s=!1;const u=[];if(i.forEach(c=>{const d=e.getValue(c);if(!e.hasValue(c))return;let v=n[c],p=ld(v);const S=t[c];let T;if(bp(S)){const P=S.length,I=S[0]===null?1:0;v=S[I],p=ld(v);for(let L=I;L<P&&S[L]!==null;L++)T?ls(ld(S[L])===T,"All keyframes must be of the same type"):(T=ld(S[L]),ls(T===p||jh(p)&&jh(T),"Keyframes must be of the same dimension as the current value"))}else T=ld(S);if(p!==T)if(jh(p)&&jh(T)){const P=d.get();typeof P=="string"&&d.set(parseFloat(P)),typeof S=="string"?t[c]=parseFloat(S):Array.isArray(S)&&T===Bt&&(t[c]=S.map(parseFloat))}else p!=null&&p.transform&&(T!=null&&T.transform)&&(v===0||S===0)?v===0?d.set(T.transform(v)):t[c]=p.transform(S):(s||(o=k5(e),s=!0),u.push(c),r[c]=r[c]!==void 0?r[c]:t[c],d.jump(S))}),u.length){const c=u.indexOf("height")>=0?window.pageYOffset:null,d=O5(t,e,u);return o.length&&o.forEach(([v,p])=>{e.getValue(v).set(p)}),e.render(),Kp&&c!==null&&window.scrollTo({top:c}),{target:d,transitionEnd:r}}else return{target:t,transitionEnd:r}};function _5(e,t,n,r){return T5(t)?D5(e,t,n,r):{target:t,transitionEnd:r}}const P5=(e,t,n,r)=>{const i=x5(e,t,r);return t=i.target,r=i.transitionEnd,_5(e,t,n,r)},Mm={current:null},uO={current:!1};function R5(){if(uO.current=!0,!!Kp)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Mm.current=e.matches;e.addListener(t),t()}else Mm.current=!1}function I5(e,t,n){const{willChange:r}=t;for(const i in t){const o=t[i],s=n[i];if(_o(o))e.addValue(i,o),Tp(r)&&r.add(i),process.env.NODE_ENV==="development"&&Jy(o.version==="10.18.0",`Attempting to mix Framer Motion versions ${o.version} with 10.18.0 may not work as expected.`);else if(_o(s))e.addValue(i,Mf(o,{owner:e})),Tp(r)&&r.remove(i);else if(s!==o)if(e.hasValue(i)){const u=e.getValue(i);!u.hasAnimated&&u.set(o)}else{const u=e.getStaticValue(i);e.addValue(i,Mf(u!==void 0?u:o,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const US=new WeakMap,cO=Object.keys(jd),A5=cO.length,WS=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],M5=Ly.length;class L5{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,visualState:o},s={}){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=()=>Un.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=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.isControllingVariants=Jp(n),this.isVariantNode=qE(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...v}=this.scrapeMotionValuesFromProps(n,{});for(const p in v){const S=v[p];u[p]!==void 0&&_o(S)&&(S.set(u[p],!1),Tp(d)&&d.add(p))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,US.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),uO.current||R5(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Mm.current,process.env.NODE_ENV!=="production"&&Jy(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){US.delete(this.current),this.projection&&this.projection.unmount(),Nl(this.notifyUpdate),Nl(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=Bc.has(t),i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Un.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,i,o){let s,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?eh(!1,c):ls(!1,c)}for(let c=0;c<A5;c++){const d=cO[c],{isEnabled:v,Feature:p,ProjectionNode:S,MeasureLayout:T}=jd[d];S&&(s=S),v(n)&&(!this.features[d]&&p&&(this.features[d]=new p(this)),T&&(u=T))}if((this.type==="html"||this.type==="svg")&&!this.projection&&s){this.projection=new s(this.latestValues,this.parent&&this.parent.projection);const{layoutId:c,layout:d,drag:v,dragConstraints:p,layoutScroll:S,layoutRoot:T}=n;this.projection.setOptions({layoutId:c,layout:d,alwaysMeasureLayout:!!v||p&&Tf(p),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof d=="string"?d:"both",initialPromotionConfig:o,layoutScroll:S,layoutRoot:T})}return u}updateFeatures(){for(const t in this.features){const n=this.features[t];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):Or()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<WS.length;r++){const i=WS[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o=t["on"+i];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=I5(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t=!1){if(t)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<M5;r++){const i=Ly[r],o=this.props[i];(Nd(o)||o===!1)&&(n[i]=o)}return n}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Mf(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=Hy(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!_o(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Zy),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class fO extends L5{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:i},o){let s=ZW(r,t||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),s&&(s=i(s))),o){XW(this,r,s);const u=P5(this,r,s,n);n=u.transitionEnd,r=u.target}return{transition:t,transitionEnd:n,...r}}}function F5(e){return window.getComputedStyle(e)}class N5 extends fO{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(Bc.has(n)){const r=Yy(n);return r&&r.default||0}else{const r=F5(t),i=(QE(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Jk(t,n)}build(t,n,r,i){Ny(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return Vy(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;_o(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){ok(t,n,r,i)}}class j5 extends fO{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Bc.has(n)){const r=Yy(n);return r&&r.default||0}return n=ak.has(n)?n:Ay(n),t.getAttribute(n)}measureInstanceViewportBox(){return Or()}scrapeMotionValuesFromProps(t,n){return lk(t,n)}build(t,n,r,i){By(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){sk(t,n,r,i)}mount(t){this.isSVGTag=$y(t.tagName),super.mount(t)}}const B5=(e,t)=>Fy(e)?new j5(t,{enableHardwareAcceleration:!1}):new N5(t,{enableHardwareAcceleration:!0}),$5={layout:{ProjectionNode:sO,MeasureLayout:eO}},V5={...dz,...MU,...m5,...$5},dO=HH((e,t)=>xU(e,t,V5,B5));function hO(e){return Rp({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:[]}]})(e)}function pO(e){return Rp({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:[]}]})(e)}function Qy(e,t){return t?e:void 0}function H5(e){return We.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",...e,children:We.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 U5(e){const{renderChildren:t,parentRef:n,onlyChild:r}=e,[i,o]=X.useState({top:0,left:0}),s=X.useRef(null),[u,c]=X.useState("auto");return X.useLayoutEffect(()=>{if(n.current&&s.current){const d=n.current.getBoundingClientRect(),v=s.current.getBoundingClientRect();let p=d.top;const S=d.left+d.width,T=v.height+(window.innerHeight-d.top)>window.innerHeight;T&&(console.log("overtop"),c(window.innerHeight-d.top-50)),d.top+v.height>window.innerHeight&&!T&&(p=d.top-v.height+d.height),o({top:p,left:S})}},[n,s]),r?t({maxHeight:u}):zm.createPortal(We.jsx("div",{ref:s,style:{position:"fixed",top:i.top,left:i.left,zIndex:1200},onDragStart:d=>{console.log("onDragStart Dropdown",d.target)},children:t({maxHeight:u})}),n.current)}function Ff(){return Ff=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ff.apply(null,arguments)}const W5=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Ff}},Symbol.toStringTag,{value:"Module"}));function gO(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Qh(e,t)}/*!
12
+ * content-type
13
+ * Copyright(c) 2015 Douglas Christopher Wilson
14
+ * MIT Licensed
15
+ */var zS=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,z5=/\\([\u000b\u0020-\u00ff])/g,Y5=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,G5=q5;function q5(e){if(!e)throw new TypeError("argument string is required");var t=typeof e=="object"?X5(e):e;if(typeof t!="string")throw new TypeError("argument string is required to be a string");var n=t.indexOf(";"),r=n!==-1?t.slice(0,n).trim():t.trim();if(!Y5.test(r))throw new TypeError("invalid media type");var i=new K5(r.toLowerCase());if(n!==-1){var o,s,u;for(zS.lastIndex=n;s=zS.exec(t);){if(s.index!==n)throw new TypeError("invalid parameter format");n+=s[0].length,o=s[1].toLowerCase(),u=s[2],u.charCodeAt(0)===34&&(u=u.slice(1,-1),u.indexOf("\\")!==-1&&(u=u.replace(z5,"$1"))),i.parameters[o]=u}if(n!==t.length)throw new TypeError("invalid parameter format")}return i}function X5(e){var t;if(typeof e.getHeader=="function"?t=e.getHeader("content-type"):typeof e.headers=="object"&&(t=e.headers&&e.headers["content-type"]),typeof t!="string")throw new TypeError("content-type header is missing from object");return t}function K5(e){this.parameters=Object.create(null),this.type=e}var bf=new Map,vO=function(t){return t.cloneNode(!0)},YS=function(){return window.location.protocol==="file:"},mO=function(t,n,r){var i=new XMLHttpRequest;i.onreadystatechange=function(){try{if(!/\.svg/i.test(t)&&i.readyState===2){var o=i.getResponseHeader("Content-Type");if(!o)throw new Error("Content type not found");var s=G5(o).type;if(!(s==="image/svg+xml"||s==="text/plain"))throw new Error("Invalid content type: ".concat(s))}if(i.readyState===4){if(i.status===404||i.responseXML===null)throw new Error(YS()?"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: "+t);if(i.status===200||YS()&&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",t),i.withCredentials=n,i.overrideMimeType&&i.overrideMimeType("text/xml"),i.send()},xu={},GS=function(t,n){xu[t]=xu[t]||[],xu[t].push(n)},Z5=function(t){for(var n=function(s,u){setTimeout(function(){if(Array.isArray(xu[t])){var c=bf.get(t),d=xu[t][s];c instanceof SVGSVGElement&&d(null,vO(c)),c instanceof Error&&d(c),s===xu[t].length-1&&delete xu[t]}},0)},r=0,i=xu[t].length;r<i;r++)n(r)},J5=function(t,n,r){if(bf.has(t)){var i=bf.get(t);if(i===void 0){GS(t,r);return}if(i instanceof SVGSVGElement){r(null,vO(i));return}}bf.set(t,void 0),GS(t,r),mO(t,n,function(o,s){var u;o?bf.set(t,o):((u=s.responseXML)===null||u===void 0?void 0:u.documentElement)instanceof SVGSVGElement&&bf.set(t,s.responseXML.documentElement),Z5(t)})},Q5=function(t,n,r){mO(t,n,function(i,o){var s;i?r(i):((s=o.responseXML)===null||s===void 0?void 0:s.documentElement)instanceof SVGSVGElement&&r(null,o.responseXML.documentElement)})},e4=0,t4=function(){return++e4},Ns=[],qS={},n4="http://www.w3.org/2000/svg",xv="http://www.w3.org/1999/xlink",XS=function(t,n,r,i,o,s,u){var c=t.getAttribute("data-src")||t.getAttribute("src");if(!c){u(new Error("Invalid data-src or src attribute"));return}if(Ns.indexOf(t)!==-1){Ns.splice(Ns.indexOf(t),1),t=null;return}Ns.push(t),t.setAttribute("src","");var d=i?J5:Q5;d(c,o,function(v,p){if(!p){Ns.splice(Ns.indexOf(t),1),t=null,u(v);return}var S=t.getAttribute("id");S&&p.setAttribute("id",S);var T=t.getAttribute("title");T&&p.setAttribute("title",T);var P=t.getAttribute("width");P&&p.setAttribute("width",P);var I=t.getAttribute("height");I&&p.setAttribute("height",I);var L=Array.from(new Set(Qo(Qo(Qo([],(p.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(t.getAttribute("class")||"").split(" "),!0))).join(" ").trim();p.setAttribute("class",L);var R=t.getAttribute("style");R&&p.setAttribute("style",R),p.setAttribute("data-src",c);var H=[].filter.call(t.attributes,function(Xe){return/^data-\w[\w-]*$/.test(Xe.name)});if(Array.prototype.forEach.call(H,function(Xe){Xe.name&&Xe.value&&p.setAttribute(Xe.name,Xe.value)}),r){var W={clipPath:["clip-path"],"color-profile":["color-profile"],cursor:["cursor"],filter:["filter"],linearGradient:["fill","stroke"],marker:["marker","marker-start","marker-mid","marker-end"],mask:["mask"],path:[],pattern:["fill","stroke"],radialGradient:["fill","stroke"]},te,J,de,x,ye;Object.keys(W).forEach(function(Xe){te=Xe,de=W[Xe],J=p.querySelectorAll(te+"[id]");for(var at=function(ze,Re){x=J[ze].id,ye=x+"-"+t4();var Fe;Array.prototype.forEach.call(de,function($t){Fe=p.querySelectorAll("["+$t+'*="'+x+'"]');for(var Ht=0,Xn=Fe.length;Ht<Xn;Ht++){var mr=Fe[Ht].getAttribute($t);mr&&!mr.match(new RegExp('url\\("?#'+x+'"?\\)'))||Fe[Ht].setAttribute($t,"url(#"+ye+")")}});for(var Ke=p.querySelectorAll("[*|href]"),lt=[],mt=0,wt=Ke.length;mt<wt;mt++){var vt=Ke[mt].getAttributeNS(xv,"href");vt&&vt.toString()==="#"+J[ze].id&&lt.push(Ke[mt])}for(var Et=0,ot=lt.length;Et<ot;Et++)lt[Et].setAttributeNS(xv,"href","#"+ye);J[ze].id=ye},Ce=0,Pe=J.length;Ce<Pe;Ce++)at(Ce)})}p.removeAttribute("xmlns:a");for(var ue=p.querySelectorAll("script"),Je=[],Ne,$e,Ye=0,qe=ue.length;Ye<qe;Ye++)$e=ue[Ye].getAttribute("type"),(!$e||$e==="application/ecmascript"||$e==="application/javascript"||$e==="text/javascript")&&(Ne=ue[Ye].innerText||ue[Ye].textContent,Ne&&Je.push(Ne),p.removeChild(ue[Ye]));if(Je.length>0&&(n==="always"||n==="once"&&!qS[c])){for(var pe=0,Oe=Je.length;pe<Oe;pe++)new Function(Je[pe])(window);qS[c]=!0}var je=p.querySelectorAll("style");if(Array.prototype.forEach.call(je,function(Xe){Xe.textContent+=""}),p.setAttribute("xmlns",n4),p.setAttribute("xmlns:xlink",xv),s(p),!t.parentNode){Ns.splice(Ns.indexOf(t),1),t=null,u(new Error("Parent node is null"));return}t.parentNode.replaceChild(p,t),Ns.splice(Ns.indexOf(t),1),t=null,u(null,p)})},r4=function(t,n){var r=n===void 0?{}:n,i=r.afterAll,o=i===void 0?function(){}:i,s=r.afterEach,u=s===void 0?function(){}:s,c=r.beforeEach,d=c===void 0?function(){}:c,v=r.cacheRequests,p=v===void 0?!0:v,S=r.evalScripts,T=S===void 0?"never":S,P=r.httpRequestWithCredentials,I=P===void 0?!1:P,L=r.renumerateIRIElements,R=L===void 0?!0:L;if(t&&"length"in t)for(var H=0,W=0,te=t.length;W<te;W++)XS(t[W],T,R,p,I,d,function(J,de){u(J,de),t&&"length"in t&&t.length===++H&&o(H)});else t?XS(t,T,R,p,I,d,function(J,de){u(J,de),o(1),t=null}):o(0)},Lm={exports:{}},Bh={exports:{}},xn={};/** @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 KS;function i4(){if(KS)return xn;KS=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,v=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,S=e?Symbol.for("react.suspense_list"):60120,T=e?Symbol.for("react.memo"):60115,P=e?Symbol.for("react.lazy"):60116,I=e?Symbol.for("react.block"):60121,L=e?Symbol.for("react.fundamental"):60117,R=e?Symbol.for("react.responder"):60118,H=e?Symbol.for("react.scope"):60119;function W(J){if(typeof J=="object"&&J!==null){var de=J.$$typeof;switch(de){case t:switch(J=J.type,J){case c:case d:case r:case o:case i:case p:return J;default:switch(J=J&&J.$$typeof,J){case u:case v:case P:case T:case s:return J;default:return de}}case n:return de}}}function te(J){return W(J)===d}return xn.AsyncMode=c,xn.ConcurrentMode=d,xn.ContextConsumer=u,xn.ContextProvider=s,xn.Element=t,xn.ForwardRef=v,xn.Fragment=r,xn.Lazy=P,xn.Memo=T,xn.Portal=n,xn.Profiler=o,xn.StrictMode=i,xn.Suspense=p,xn.isAsyncMode=function(J){return te(J)||W(J)===c},xn.isConcurrentMode=te,xn.isContextConsumer=function(J){return W(J)===u},xn.isContextProvider=function(J){return W(J)===s},xn.isElement=function(J){return typeof J=="object"&&J!==null&&J.$$typeof===t},xn.isForwardRef=function(J){return W(J)===v},xn.isFragment=function(J){return W(J)===r},xn.isLazy=function(J){return W(J)===P},xn.isMemo=function(J){return W(J)===T},xn.isPortal=function(J){return W(J)===n},xn.isProfiler=function(J){return W(J)===o},xn.isStrictMode=function(J){return W(J)===i},xn.isSuspense=function(J){return W(J)===p},xn.isValidElementType=function(J){return typeof J=="string"||typeof J=="function"||J===r||J===d||J===o||J===i||J===p||J===S||typeof J=="object"&&J!==null&&(J.$$typeof===P||J.$$typeof===T||J.$$typeof===s||J.$$typeof===u||J.$$typeof===v||J.$$typeof===L||J.$$typeof===R||J.$$typeof===H||J.$$typeof===I)},xn.typeOf=W,xn}var Sn={};/** @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 ZS;function o4(){return ZS||(ZS=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,v=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,S=e?Symbol.for("react.suspense_list"):60120,T=e?Symbol.for("react.memo"):60115,P=e?Symbol.for("react.lazy"):60116,I=e?Symbol.for("react.block"):60121,L=e?Symbol.for("react.fundamental"):60117,R=e?Symbol.for("react.responder"):60118,H=e?Symbol.for("react.scope"):60119;function W(ot){return typeof ot=="string"||typeof ot=="function"||ot===r||ot===d||ot===o||ot===i||ot===p||ot===S||typeof ot=="object"&&ot!==null&&(ot.$$typeof===P||ot.$$typeof===T||ot.$$typeof===s||ot.$$typeof===u||ot.$$typeof===v||ot.$$typeof===L||ot.$$typeof===R||ot.$$typeof===H||ot.$$typeof===I)}function te(ot){if(typeof ot=="object"&&ot!==null){var $t=ot.$$typeof;switch($t){case t:var Ht=ot.type;switch(Ht){case c:case d:case r:case o:case i:case p:return Ht;default:var Xn=Ht&&Ht.$$typeof;switch(Xn){case u:case v:case P:case T:case s:return Xn;default:return $t}}case n:return $t}}}var J=c,de=d,x=u,ye=s,ue=t,Je=v,Ne=r,$e=P,Ye=T,qe=n,pe=o,Oe=i,je=p,Xe=!1;function at(ot){return Xe||(Xe=!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(ot)||te(ot)===c}function Ce(ot){return te(ot)===d}function Pe(ot){return te(ot)===u}function Ve(ot){return te(ot)===s}function ze(ot){return typeof ot=="object"&&ot!==null&&ot.$$typeof===t}function Re(ot){return te(ot)===v}function Fe(ot){return te(ot)===r}function Ke(ot){return te(ot)===P}function lt(ot){return te(ot)===T}function mt(ot){return te(ot)===n}function wt(ot){return te(ot)===o}function vt(ot){return te(ot)===i}function Et(ot){return te(ot)===p}Sn.AsyncMode=J,Sn.ConcurrentMode=de,Sn.ContextConsumer=x,Sn.ContextProvider=ye,Sn.Element=ue,Sn.ForwardRef=Je,Sn.Fragment=Ne,Sn.Lazy=$e,Sn.Memo=Ye,Sn.Portal=qe,Sn.Profiler=pe,Sn.StrictMode=Oe,Sn.Suspense=je,Sn.isAsyncMode=at,Sn.isConcurrentMode=Ce,Sn.isContextConsumer=Pe,Sn.isContextProvider=Ve,Sn.isElement=ze,Sn.isForwardRef=Re,Sn.isFragment=Fe,Sn.isLazy=Ke,Sn.isMemo=lt,Sn.isPortal=mt,Sn.isProfiler=wt,Sn.isStrictMode=vt,Sn.isSuspense=Et,Sn.isValidElementType=W,Sn.typeOf=te}()),Sn}var JS;function yO(){return JS||(JS=1,process.env.NODE_ENV==="production"?Bh.exports=i4():Bh.exports=o4()),Bh.exports}/*
30
+ object-assign
31
+ (c) Sindre Sorhus
32
+ @license MIT
33
+ */var Sv,QS;function a4(){if(QS)return Sv;QS=1;var e=Object.getOwnPropertySymbols,t=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 s={},u=0;u<10;u++)s["_"+String.fromCharCode(u)]=u;var c=Object.getOwnPropertyNames(s).map(function(v){return s[v]});if(c.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(v){d[v]=v}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Sv=i()?Object.assign:function(o,s){for(var u,c=r(o),d,v=1;v<arguments.length;v++){u=Object(arguments[v]);for(var p in u)t.call(u,p)&&(c[p]=u[p]);if(e){d=e(u);for(var S=0;S<d.length;S++)n.call(u,d[S])&&(c[d[S]]=u[d[S]])}}return c},Sv}var Tv,e1;function eb(){if(e1)return Tv;e1=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Tv=e,Tv}var Cv,t1;function bO(){return t1||(t1=1,Cv=Function.call.bind(Object.prototype.hasOwnProperty)),Cv}var Ev,n1;function s4(){if(n1)return Ev;n1=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=eb(),n={},r=bO();e=function(o){var s="Warning: "+o;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function i(o,s,u,c,d){if(process.env.NODE_ENV!=="production"){for(var v in o)if(r(o,v)){var p;try{if(typeof o[v]!="function"){var S=Error((c||"React class")+": "+u+" type `"+v+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[v]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw S.name="Invariant Violation",S}p=o[v](s,v,c,u,null,t)}catch(P){p=P}if(p&&!(p instanceof Error)&&e((c||"React class")+": type specification of "+u+" `"+v+"` 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 T=d?d():"";e("Failed "+u+" type: "+p.message+(T??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Ev=i,Ev}var kv,r1;function l4(){if(r1)return kv;r1=1;var e=yO(),t=a4(),n=eb(),r=bO(),i=s4(),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 s(){return null}return kv=function(u,c){var d=typeof Symbol=="function"&&Symbol.iterator,v="@@iterator";function p(Ce){var Pe=Ce&&(d&&Ce[d]||Ce[v]);if(typeof Pe=="function")return Pe}var S="<<anonymous>>",T={array:R("array"),bigint:R("bigint"),bool:R("boolean"),func:R("function"),number:R("number"),object:R("object"),string:R("string"),symbol:R("symbol"),any:H(),arrayOf:W,element:te(),elementType:J(),instanceOf:de,node:Je(),objectOf:ye,oneOf:x,oneOfType:ue,shape:$e,exact:Ye};function P(Ce,Pe){return Ce===Pe?Ce!==0||1/Ce===1/Pe:Ce!==Ce&&Pe!==Pe}function I(Ce,Pe){this.message=Ce,this.data=Pe&&typeof Pe=="object"?Pe:{},this.stack=""}I.prototype=Error.prototype;function L(Ce){if(process.env.NODE_ENV!=="production")var Pe={},Ve=0;function ze(Fe,Ke,lt,mt,wt,vt,Et){if(mt=mt||S,vt=vt||lt,Et!==n){if(c){var ot=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 ot.name="Invariant Violation",ot}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var $t=mt+":"+lt;!Pe[$t]&&Ve<3&&(o("You are manually calling a React.PropTypes validation function for the `"+vt+"` prop on `"+mt+"`. 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."),Pe[$t]=!0,Ve++)}}return Ke[lt]==null?Fe?Ke[lt]===null?new I("The "+wt+" `"+vt+"` is marked as required "+("in `"+mt+"`, but its value is `null`.")):new I("The "+wt+" `"+vt+"` is marked as required in "+("`"+mt+"`, but its value is `undefined`.")):null:Ce(Ke,lt,mt,wt,vt)}var Re=ze.bind(null,!1);return Re.isRequired=ze.bind(null,!0),Re}function R(Ce){function Pe(Ve,ze,Re,Fe,Ke,lt){var mt=Ve[ze],wt=Oe(mt);if(wt!==Ce){var vt=je(mt);return new I("Invalid "+Fe+" `"+Ke+"` of type "+("`"+vt+"` supplied to `"+Re+"`, expected ")+("`"+Ce+"`."),{expectedType:Ce})}return null}return L(Pe)}function H(){return L(s)}function W(Ce){function Pe(Ve,ze,Re,Fe,Ke){if(typeof Ce!="function")return new I("Property `"+Ke+"` of component `"+Re+"` has invalid PropType notation inside arrayOf.");var lt=Ve[ze];if(!Array.isArray(lt)){var mt=Oe(lt);return new I("Invalid "+Fe+" `"+Ke+"` of type "+("`"+mt+"` supplied to `"+Re+"`, expected an array."))}for(var wt=0;wt<lt.length;wt++){var vt=Ce(lt,wt,Re,Fe,Ke+"["+wt+"]",n);if(vt instanceof Error)return vt}return null}return L(Pe)}function te(){function Ce(Pe,Ve,ze,Re,Fe){var Ke=Pe[Ve];if(!u(Ke)){var lt=Oe(Ke);return new I("Invalid "+Re+" `"+Fe+"` of type "+("`"+lt+"` supplied to `"+ze+"`, expected a single ReactElement."))}return null}return L(Ce)}function J(){function Ce(Pe,Ve,ze,Re,Fe){var Ke=Pe[Ve];if(!e.isValidElementType(Ke)){var lt=Oe(Ke);return new I("Invalid "+Re+" `"+Fe+"` of type "+("`"+lt+"` supplied to `"+ze+"`, expected a single ReactElement type."))}return null}return L(Ce)}function de(Ce){function Pe(Ve,ze,Re,Fe,Ke){if(!(Ve[ze]instanceof Ce)){var lt=Ce.name||S,mt=at(Ve[ze]);return new I("Invalid "+Fe+" `"+Ke+"` of type "+("`"+mt+"` supplied to `"+Re+"`, expected ")+("instance of `"+lt+"`."))}return null}return L(Pe)}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.")),s;function Pe(Ve,ze,Re,Fe,Ke){for(var lt=Ve[ze],mt=0;mt<Ce.length;mt++)if(P(lt,Ce[mt]))return null;var wt=JSON.stringify(Ce,function(Et,ot){var $t=je(ot);return $t==="symbol"?String(ot):ot});return new I("Invalid "+Fe+" `"+Ke+"` of value `"+String(lt)+"` "+("supplied to `"+Re+"`, expected one of "+wt+"."))}return L(Pe)}function ye(Ce){function Pe(Ve,ze,Re,Fe,Ke){if(typeof Ce!="function")return new I("Property `"+Ke+"` of component `"+Re+"` has invalid PropType notation inside objectOf.");var lt=Ve[ze],mt=Oe(lt);if(mt!=="object")return new I("Invalid "+Fe+" `"+Ke+"` of type "+("`"+mt+"` supplied to `"+Re+"`, expected an object."));for(var wt in lt)if(r(lt,wt)){var vt=Ce(lt,wt,Re,Fe,Ke+"."+wt,n);if(vt instanceof Error)return vt}return null}return L(Pe)}function ue(Ce){if(!Array.isArray(Ce))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var Pe=0;Pe<Ce.length;Pe++){var Ve=Ce[Pe];if(typeof Ve!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Xe(Ve)+" at index "+Pe+"."),s}function ze(Re,Fe,Ke,lt,mt){for(var wt=[],vt=0;vt<Ce.length;vt++){var Et=Ce[vt],ot=Et(Re,Fe,Ke,lt,mt,n);if(ot==null)return null;ot.data&&r(ot.data,"expectedType")&&wt.push(ot.data.expectedType)}var $t=wt.length>0?", expected one of type ["+wt.join(", ")+"]":"";return new I("Invalid "+lt+" `"+mt+"` supplied to "+("`"+Ke+"`"+$t+"."))}return L(ze)}function Je(){function Ce(Pe,Ve,ze,Re,Fe){return qe(Pe[Ve])?null:new I("Invalid "+Re+" `"+Fe+"` supplied to "+("`"+ze+"`, expected a ReactNode."))}return L(Ce)}function Ne(Ce,Pe,Ve,ze,Re){return new I((Ce||"React class")+": "+Pe+" type `"+Ve+"."+ze+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Re+"`.")}function $e(Ce){function Pe(Ve,ze,Re,Fe,Ke){var lt=Ve[ze],mt=Oe(lt);if(mt!=="object")return new I("Invalid "+Fe+" `"+Ke+"` of type `"+mt+"` "+("supplied to `"+Re+"`, expected `object`."));for(var wt in Ce){var vt=Ce[wt];if(typeof vt!="function")return Ne(Re,Fe,Ke,wt,je(vt));var Et=vt(lt,wt,Re,Fe,Ke+"."+wt,n);if(Et)return Et}return null}return L(Pe)}function Ye(Ce){function Pe(Ve,ze,Re,Fe,Ke){var lt=Ve[ze],mt=Oe(lt);if(mt!=="object")return new I("Invalid "+Fe+" `"+Ke+"` of type `"+mt+"` "+("supplied to `"+Re+"`, expected `object`."));var wt=t({},Ve[ze],Ce);for(var vt in wt){var Et=Ce[vt];if(r(Ce,vt)&&typeof Et!="function")return Ne(Re,Fe,Ke,vt,je(Et));if(!Et)return new I("Invalid "+Fe+" `"+Ke+"` key `"+vt+"` supplied to `"+Re+"`.\nBad object: "+JSON.stringify(Ve[ze],null," ")+`
34
+ Valid keys: `+JSON.stringify(Object.keys(Ce),null," "));var ot=Et(lt,vt,Re,Fe,Ke+"."+vt,n);if(ot)return ot}return null}return L(Pe)}function qe(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(qe);if(Ce===null||u(Ce))return!0;var Pe=p(Ce);if(Pe){var Ve=Pe.call(Ce),ze;if(Pe!==Ce.entries){for(;!(ze=Ve.next()).done;)if(!qe(ze.value))return!1}else for(;!(ze=Ve.next()).done;){var Re=ze.value;if(Re&&!qe(Re[1]))return!1}}else return!1;return!0;default:return!1}}function pe(Ce,Pe){return Ce==="symbol"?!0:Pe?Pe["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&Pe instanceof Symbol:!1}function Oe(Ce){var Pe=typeof Ce;return Array.isArray(Ce)?"array":Ce instanceof RegExp?"object":pe(Pe,Ce)?"symbol":Pe}function je(Ce){if(typeof Ce>"u"||Ce===null)return""+Ce;var Pe=Oe(Ce);if(Pe==="object"){if(Ce instanceof Date)return"date";if(Ce instanceof RegExp)return"regexp"}return Pe}function Xe(Ce){var Pe=je(Ce);switch(Pe){case"array":case"object":return"an "+Pe;case"boolean":case"date":case"regexp":return"a "+Pe;default:return Pe}}function at(Ce){return!Ce.constructor||!Ce.constructor.name?S:Ce.constructor.name}return T.checkPropTypes=i,T.resetWarningCache=i.resetWarningCache,T.PropTypes=T,T},kv}var Ov,i1;function u4(){if(i1)return Ov;i1=1;var e=eb();function t(){}function n(){}return n.resetWarningCache=t,Ov=function(){function r(s,u,c,d,v,p){if(p!==e){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:t};return o.PropTypes=o,o},Ov}if(process.env.NODE_ENV!=="production"){var c4=yO(),f4=!0;Lm.exports=l4()(c4.isElement,f4)}else Lm.exports=u4()();var kr=Lm.exports;const Oa=Mu(kr);var d4=function(t){var n=(t==null?void 0:t.ownerDocument)||document;return n.defaultView||window},h4=function(t,n){for(var r in t)if(!(r in n))return!0;for(var i in n)if(t[i]!==n[i])return!0;return!1},p4=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],$h="http://www.w3.org/2000/svg",o1="http://www.w3.org/1999/xlink",ng=function(e){function t(){for(var r,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=e.call.apply(e,[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}gO(t,e);var n=t.prototype;return n.renderSVG=function(){var i=this;if(this.reactWrapper instanceof d4(this.reactWrapper).Node){var o=this.props,s=o.desc,u=o.evalScripts,c=o.httpRequestWithCredentials,d=o.renumerateIRIElements,v=o.src,p=o.title,S=o.useRequestCache,T=this.props.onError,P=this.props.beforeInjection,I=this.props.afterInjection,L=this.props.wrapper,R,H;L==="svg"?(R=document.createElementNS($h,L),R.setAttribute("xmlns",$h),R.setAttribute("xmlns:xlink",o1),H=document.createElementNS($h,L)):(R=document.createElement(L),H=document.createElement(L)),R.appendChild(H),H.dataset.src=v,this.nonReactWrapper=this.reactWrapper.appendChild(R);var W=function(x){if(i.removeSVG(),!i._isMounted){T(x);return}i.setState(function(){return{hasError:!0,isLoading:!1}},function(){T(x)})},te=function(x,ye){if(x){W(x);return}i._isMounted&&i.setState(function(){return{isLoading:!1}},function(){try{I(ye)}catch(ue){W(ue)}})},J=function(x){if(x.setAttribute("role","img"),s){var ye=x.querySelector(":scope > desc");ye&&x.removeChild(ye);var ue=document.createElement("desc");ue.innerHTML=s,x.prepend(ue)}if(p){var Je=x.querySelector(":scope > title");Je&&x.removeChild(Je);var Ne=document.createElement("title");Ne.innerHTML=p,x.prepend(Ne)}try{P(x)}catch($e){W($e)}};r4(H,{afterEach:te,beforeEach:J,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;h4(Ff({},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 s=i.loading;i.renumerateIRIElements,i.src,i.title,i.useRequestCache;var u=i.wrapper,c=qm(i,p4),d=u;return Tn.createElement(d,Ff({},c,{ref:this.refCallback},u==="svg"?{xmlns:$h,xmlnsXlink:o1}:{}),this.state.isLoading&&s&&Tn.createElement(s,null),this.state.hasError&&o&&Tn.createElement(o,null))},t}(Tn.Component);ng.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"};ng.propTypes={afterInjection:kr.func,beforeInjection:kr.func,desc:kr.string,evalScripts:kr.oneOf(["always","once","never"]),fallback:kr.oneOfType([kr.func,kr.object,kr.string]),httpRequestWithCredentials:kr.bool,loading:kr.oneOfType([kr.func,kr.object,kr.string]),onError:kr.func,renumerateIRIElements:kr.bool,src:kr.string.isRequired,title:kr.string,useRequestCache:kr.bool,wrapper:kr.oneOf(["div","span","svg"])};const Nf=new Map;Nf.set("text",e=>{var t,n;return We.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center",lineHeight:"24px"},children:(n=(t=e==null?void 0:e.name)==null?void 0:t.trim().at(0))==null?void 0:n.toUpperCase()})});Nf.set("svgHtml",e=>{function t(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 We.jsx("div",{dangerouslySetInnerHTML:{__html:i},style:{width:24,height:24,margin:"0 auto"}})}return We.jsx(t,{svgString:e.icon})});Nf.set("svgHttp",e=>We.jsx(ng,{src:e.icon,beforeInjection:t=>{t.setAttribute("style","margin: 0 auto;"),t.querySelectorAll("path").forEach(r=>{r.hasAttribute("fill")&&r.setAttribute("fill","currentColor"),r.hasAttribute("stroke")&&r.setAttribute("stroke","currentColor")})}}));Nf.set("img",e=>We.jsx("img",{src:e.icon||"/",alt:e.name,style:{height:24,maxHeight:24,maxWidth:24}}));function g4(e){return e.icon=(e.icon||"").trim(),e.icon?e.icon.startsWith("<svg")?"svgHtml":e.icon.endsWith(".svg")?"svgHttp":"img":"text"}function wO({item:e}){return(Nf.get(g4(e))||Nf.get("text"))(e)}function v4(e){return We.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",...e,children:We.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 m4(e){const{renderChildren:t,parentRef:n,onlyChild:r,dropdownLevel:i}=e,[o,s]=X.useState({top:0,left:0}),u=X.useRef(null),[c,d]=X.useState("auto");return X.useLayoutEffect(()=>{if(n.current&&u.current){const v=n.current.getBoundingClientRect(),p=u.current.getBoundingClientRect();let S,T;if(i===1)S=v.bottom,T=v.left,p.height+S>window.innerHeight?(d(window.innerHeight-S-50),S=v.bottom-p.height):S=v.bottom;else if(i>1){S=v.top,T=v.left+v.width;const P=p.height+(window.innerHeight-v.top)>window.innerHeight;P&&(console.log("DropDown-fav overtop"),d(window.innerHeight-v.top-50)),v.top+p.height>window.innerHeight&&!P&&(S=v.top-p.height+v.height)}s({top:S-64,left:T})}},[n,u,i]),r?t({maxHeight:c}):zm.createPortal(We.jsx("div",{ref:u,style:{position:"fixed",top:o.top,left:`calc(${o.left}px - var(--global-menu-width))`,zIndex:1200},children:t({maxHeight:c})}),n.current)}const jf=new Map;jf.set("text",e=>{var t,n;return We.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center",lineHeight:"24px"},children:(n=(t=e==null?void 0:e.name)==null?void 0:t.trim().at(0))==null?void 0:n.toUpperCase()})});jf.set("svgHtml",e=>{function t(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 We.jsx("div",{dangerouslySetInnerHTML:{__html:i},style:{width:24,height:24,margin:"0 auto"}})}return We.jsx(t,{svgString:e.icon})});jf.set("svgHttp",e=>We.jsx(ng,{src:e.icon,beforeInjection:t=>{t.setAttribute("style","margin: 0 auto;"),t.querySelectorAll("path").forEach(r=>{r.hasAttribute("fill")&&r.setAttribute("fill","currentColor"),r.hasAttribute("stroke")&&r.setAttribute("stroke","currentColor")})}}));jf.set("img",e=>We.jsx("img",{src:e.icon||"/",alt:e.name,style:{height:24,maxHeight:24,maxWidth:24}}));function y4(e){return e.icon=(e.icon||"").trim(),e.icon?e.icon.startsWith("<svg")?"svgHtml":e.icon.endsWith(".svg")?"svgHttp":"img":"text"}function b4({item:e}){return(jf.get(y4(e))||jf.get("text"))(e)}function xO({...e}){var ye,ue,Je;const t=e.item,n=e.level||0,r=!!((ye=e.item.children)!=null&&ye.length),i=`level-${n}`,o=(Ne,$e=i)=>`${Ne} ${$e} `,[s,u]=X.useState(!1),[c,d]=X.useState(t.isFavorite||!1),v=X.useRef(),p=X.useRef();p!=null&&p.current&&((ue=p==null?void 0:p.current)==null?void 0:ue.scrollWidth)>((Je=p==null?void 0:p.current)==null?void 0:Je.clientWidth);const S=window.location.origin,T=t.path&&t.path.includes("http")?new URL(t.path):{origin:"",pathname:""},P=window.location.pathname.split("/")[1],I=T.pathname.split("/")[1],L=e.ssr||!S.includes("local")&&S!==T.origin||I!==P,R=r||n===0?"div":L?"a":Dp.Link,H=t.path||"#",W=n+1,te=r&&s&&n>0,J=()=>{u(!0)},de=()=>{u(!1)},x="/global-menu-config/api/v1/menu-items/user/set-favorite";return We.jsxs("div",{ref:v,className:o("menu-item__wrapper tree-node"),style:{borderRadius:"8px",transition:"all 0.3s"},onMouseOver:J,onMouseOut:de,onDragStart:Ne=>{n>1&&Ne.preventDefault()},children:[We.jsxs(R,{to:H,href:H,draggable:"true",className:o("menu-item__link"),style:{width:"100%",transition:"all 0.3s"},onDragStart:Ne=>{console.log("onDragStart component",Ne.target)},children:[We.jsx(w4,{cls:o,item:t}),We.jsx("span",{className:o("menu-item__label"),ref:p,children:t.name}),We.jsx(x4,{menuLevel:n,hasChildren:r,isHovered:s,isFavorite:c,onClick:Ne=>{const $e={menuConfigId:t.id,isFavorite:Ne},Ye=e.baseUrl+x;Da.post(Ye,$e).then(qe=>{var pe;d(Ne),ty("Set favorite menu item successfully"),(pe=e.onSetFavoriteSuccess)==null||pe.call(e,e.item.id,Ne)}).catch(qe=>{var pe,Oe;Wd(((Oe=(pe=qe.response)==null?void 0:pe.data)==null?void 0:Oe.errorMessage)||"Have error when set favorite menu item")})}}),r&&We.jsx("div",{className:o("menu-item__icon-arrow__wrapper"),children:We.jsx(v4,{className:o("menu-item__icon-arrow__icon")})})]}),te&&We.jsx(m4,{parentRef:v,onlyChild:W<2,dropdownLevel:n,renderChildren:({maxHeight:Ne})=>{var $e;return We.jsx(dO.div,{className:o("menu-item__dropdown dropdown-favorite ? 'menu-item__dropdown--open' : 'menu-item__dropdown--close'}",`level-${W}`),style:Qy({maxHeight:Ne,overflowY:"auto",paddingRight:3},Ne!=="auto"&&!!W),children:($e=t.children)==null?void 0:$e.map(Ye=>X.createElement(xO,{...e,key:Ye.id,item:Ye,level:W}))})}})]})}function w4({item:e,cls:t}){return We.jsx("div",{className:t("menu-item__icon"),children:We.jsx(b4,{item:e})})}function x4(e){const t={marginRight:e.hasChildren?10:0,fontSize:22,fill:Ci.warning,minWidth:16};if(e.menuLevel!==0)return We.jsxs(We.Fragment,{children:[e.isHovered&&!e.isFavorite&&We.jsx(ss.Tooltip,{title:"Add to favorites",children:We.jsx(hO,{style:t,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=e.onClick)==null||r.call(e,!0)}})}),e.isFavorite&&We.jsx(ss.Tooltip,{title:"Remove from favorites",children:We.jsx(pO,{style:t,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=e.onClick)==null||r.call(e,!1)}})})]})}const S4=`.flex-col-center{display:flex;flex-direction:column;justify-content:center}.wrap-section{transition:all .3s;padding:0 4px}.favorite-menu{display:flex;height:56px;border-right:1px solid #ddd;background-color:#fafafa;transition:all .3s;width:100%}.scrollbar-hidden::-webkit-scrollbar{width:2px;background:transparent}.favorite-menu__wrap-btn-logout,.favorite-menu__btn-logout{margin:40px 0}.favorite-menu__logout-btn__text{margin-left:12px;font-size:.875rem;opacity:0;transition:ease-in-out .2s;transition-delay:.15s}.favorite-menu__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px;justify-content:center;width:100%}.favorite-menu__toggle-btn{margin-top:-6px;color:#85858a}.favorite-menu__logout-btn{width:100%;text-align:left;display:flex;flex-direction:row;align-items:center;padding:8px 16px 8px 18.6665px;min-height:48px;border-radius:.375rem;overflow:hidden;transition:all .3s ease-in-out;background-color:initial}.favorite-menu__logout-btn:hover{background-color:#919eab14}.favorite-menu__icon-logout{flex-shrink:0}.menu-item__wrapper{display:flex;position:relative;width:100%}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer;color:#85858a}.menu-item__link:hover{background-color:#919eab14}.menu-item__link.active{background-color:#009d4f1a;color:inherit}.menu-item__link.active.level-2,.menu-item__link.active.level-3,.menu-item__link.active.level-4,.menu-item__link.active.level-5,.menu-item__link.active.level-6,.menu-item__link.active.level-7,.menu-item__link.active.level-8,.menu-item__link.active.level-9,.menu-item__link.active.level-10{background-color:inherit;color:inherit}.menu-item__link.active.level-2:hover,.menu-item__link.active.level-3:hover,.menu-item__link.active.level-4:hover,.menu-item__link.active.level-5:hover,.menu-item__link.active.level-6:hover,.menu-item__link.active.level-7:hover,.menu-item__link.active.level-8:hover,.menu-item__link.active.level-9:hover,.menu-item__link.active.level-10:hover{background-color:#919eab14}.menu-item__link.menu-item__link.level-0{padding:0;background-color:#919eab14;transition:all .15s}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0;display:grid;place-items:center}.menu-item__icon.level-1>*{margin:0 auto}.menu-item__label{font-size:.875rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;flex-shrink:1;margin-left:12px;padding-right:12px;color:#292929;opacity:1}.menu-item__label.level-1{text-overflow:unset}.menu-item__label.active{color:inherit}.menu-item__label{margin-left:8px;font-size:.75rem;line-height:1rem}.menu-item__label.level-0,.menu-item__label.level-1{font-size:.875rem;transition-delay:.15s}.menu-item__label.level-0{color:#85858a;margin-left:8px}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:0}.menu-item__icon-arrow__wrapper.level-0{display:none}.menu-item__icon-arrow__icon{transition:all .3s!important;transform:rotate(-90deg)!important}.menu-item__icon-arrow__icon.active{color:inherit}.menu-item__icon-arrow__icon.open{transform:rotate(0)!important}.menu-item__dropdown{background-color:#fafafa;border:1px solid #ddd;box-shadow:#0000001a 0 10px 15px -3px,#0000000d 0 4px 6px -2px;border-radius:4px;width:210px;max-width:210px;padding:4px;z-index:1200}.menu-item__dropdown.dropdown-favorite{width:auto;min-width:180px;max-width:350px}.menu-item__dropdown::-webkit-scrollbar{width:4px}.menu-item__dropdown::-webkit-scrollbar-thumb{background-color:#9b9b9b99;border-radius:2px}.menu-item__dropdown,.menu-item__dropdown>*{margin-top:4px}.menu-item__dropdown:first-of-type{margin-top:0}.menu-item__dropdown>*:first-child{margin-top:0}.menu-item__dropdown .menu-item__link{height:40px}.menu-item__dropdown .menu-item__link.level-1{height:48px}.menu-item__dropdown.level-1{width:auto;max-width:unset;box-shadow:none;border:none;padding:0;background-color:unset}.icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;background-color:transparent;transition:background-color .3s ease;border:none}.icon-btn:hover{background-color:var(--btn-bg-hover)}.simplebar-scrollbar:before{background-color:#0000002d}.favorite-menu__menu .simplebar-track.simplebar-vertical{display:none}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.treeFavorited{display:flex;align-items:center;margin:0 -5px}.treeFavorited li{margin:0 5px}
35
+ `;var xc={};/**
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 a1;function T4(){if(a1)return xc;a1=1;var e=X;function t(E){for(var j="https://reactjs.org/docs/error-decoder.html?invariant="+E,q=1;q<arguments.length;q++)j+="&args[]="+encodeURIComponent(arguments[q]);return"Minified React error #"+E+"; visit "+j+" 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 s(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,j,q,re,De,be,Me){this.acceptsBooleans=j===2||j===3||j===4,this.attributeName=re,this.attributeNamespace=De,this.mustUseProperty=q,this.propertyName=E,this.type=j,this.sanitizeURL=be,this.removeEmptyString=Me}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 j=E[0];c[j]=new u(j,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 v(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 j=E.replace(d,v);c[j]=new u(j,1,!1,E,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(E){var j=E.replace(d,v);c[j]=new u(j,1,!1,E,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(E){var j=E.replace(d,v);c[j]=new u(j,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(j){j=j+E.charAt(0).toUpperCase()+E.substring(1),p[j]=p[E]})});var T=/["'&<>]/;function P(E){if(typeof E=="boolean"||typeof E=="number")return""+E;E=""+E;var j=T.exec(E);if(j){var q="",re,De=0;for(re=j.index;re<E.length;re++){switch(E.charCodeAt(re)){case 34:j="&quot;";break;case 38:j="&amp;";break;case 39:j="&#x27;";break;case 60:j="&lt;";break;case 62:j="&gt;";break;default:continue}De!==re&&(q+=E.substring(De,re)),De=re+1,q+=j}E=De!==re?q+E.substring(De,re):q}return E}var I=/([A-Z])/g,L=/^ms-/,R=Array.isArray;function H(E,j){return{insertionMode:E,selectedValue:j}}function W(E,j,q){switch(j){case"select":return H(1,q.value!=null?q.value:q.defaultValue);case"svg":return H(2,null);case"math":return H(3,null);case"foreignObject":return H(1,null);case"table":return H(4,null);case"thead":case"tbody":case"tfoot":return H(5,null);case"colgroup":return H(7,null);case"tr":return H(6,null)}return 4<=E.insertionMode||E.insertionMode===0?H(1,null):E}var te=new Map;function J(E,j,q){if(typeof q!="object")throw Error(t(62));j=!0;for(var re in q)if(n.call(q,re)){var De=q[re];if(De!=null&&typeof De!="boolean"&&De!==""){if(re.indexOf("--")===0){var be=P(re);De=P((""+De).trim())}else{be=re;var Me=te.get(be);Me!==void 0||(Me=P(be.replace(I,"-$1").toLowerCase().replace(L,"-ms-")),te.set(be,Me)),be=Me,De=typeof De=="number"?De===0||n.call(p,re)?""+De:De+"px":P((""+De).trim())}j?(j=!1,E.push(' style="',be,":",De)):E.push(";",be,":",De)}}j||E.push('"')}function de(E,j,q,re){switch(q){case"style":J(E,j,re);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<q.length)||q[0]!=="o"&&q[0]!=="O"||q[1]!=="n"&&q[1]!=="N"){if(j=c.hasOwnProperty(q)?c[q]:null,j!==null){switch(typeof re){case"function":case"symbol":return;case"boolean":if(!j.acceptsBooleans)return}switch(q=j.attributeName,j.type){case 3:re&&E.push(" ",q,'=""');break;case 4:re===!0?E.push(" ",q,'=""'):re!==!1&&E.push(" ",q,'="',P(re),'"');break;case 5:isNaN(re)||E.push(" ",q,'="',P(re),'"');break;case 6:!isNaN(re)&&1<=re&&E.push(" ",q,'="',P(re),'"');break;default:j.sanitizeURL&&(re=""+re),E.push(" ",q,'="',P(re),'"')}}else if(s(q)){switch(typeof re){case"function":case"symbol":return;case"boolean":if(j=q.toLowerCase().slice(0,5),j!=="data-"&&j!=="aria-")return}E.push(" ",q,'="',P(re),'"')}}}function x(E,j,q){if(j!=null){if(q!=null)throw Error(t(60));if(typeof j!="object"||!("__html"in j))throw Error(t(61));j=j.__html,j!=null&&E.push(""+j)}}function ye(E){var j="";return e.Children.forEach(E,function(q){q!=null&&(j+=q)}),j}function ue(E,j,q,re){E.push($e(q));var De=q=null,be;for(be in j)if(n.call(j,be)){var Me=j[be];if(Me!=null)switch(be){case"children":q=Me;break;case"dangerouslySetInnerHTML":De=Me;break;default:de(E,re,be,Me)}}return E.push(">"),x(E,De,q),typeof q=="string"?(E.push(P(q)),null):q}var Je=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Ne=new Map;function $e(E){var j=Ne.get(E);if(j===void 0){if(!Je.test(E))throw Error(t(65,E));j="<"+E,Ne.set(E,j)}return j}function Ye(E,j,q,re,De){switch(j){case"select":E.push($e("select"));var be=null,Me=null;for(bt in q)if(n.call(q,bt)){var rt=q[bt];if(rt!=null)switch(bt){case"children":be=rt;break;case"dangerouslySetInnerHTML":Me=rt;break;case"defaultValue":case"value":break;default:de(E,re,bt,rt)}}return E.push(">"),x(E,Me,be),be;case"option":Me=De.selectedValue,E.push($e("option"));var yt=rt=null,Tt=null,bt=null;for(be in q)if(n.call(q,be)){var Ut=q[be];if(Ut!=null)switch(be){case"children":rt=Ut;break;case"selected":Tt=Ut;break;case"dangerouslySetInnerHTML":bt=Ut;break;case"value":yt=Ut;default:de(E,re,be,Ut)}}if(Me!=null)if(q=yt!==null?""+yt:ye(rt),R(Me)){for(re=0;re<Me.length;re++)if(""+Me[re]===q){E.push(' selected=""');break}}else""+Me===q&&E.push(' selected=""');else Tt&&E.push(' selected=""');return E.push(">"),x(E,bt,rt),rt;case"textarea":E.push($e("textarea")),bt=Me=be=null;for(rt in q)if(n.call(q,rt)&&(yt=q[rt],yt!=null))switch(rt){case"children":bt=yt;break;case"value":be=yt;break;case"defaultValue":Me=yt;break;case"dangerouslySetInnerHTML":throw Error(t(91));default:de(E,re,rt,yt)}if(be===null&&Me!==null&&(be=Me),E.push(">"),bt!=null){if(be!=null)throw Error(t(92));if(R(bt)&&1<bt.length)throw Error(t(93));be=""+bt}return typeof be=="string"&&be[0]===`
44
+ `&&E.push(`
45
+ `),be!==null&&E.push(P(""+be)),null;case"input":E.push($e("input")),yt=bt=rt=be=null;for(Me in q)if(n.call(q,Me)&&(Tt=q[Me],Tt!=null))switch(Me){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,"input"));case"defaultChecked":yt=Tt;break;case"defaultValue":rt=Tt;break;case"checked":bt=Tt;break;case"value":be=Tt;break;default:de(E,re,Me,Tt)}return bt!==null?de(E,re,"checked",bt):yt!==null&&de(E,re,"checked",yt),be!==null?de(E,re,"value",be):rt!==null&&de(E,re,"value",rt),E.push("/>"),null;case"menuitem":E.push($e("menuitem"));for(var Qn in q)if(n.call(q,Qn)&&(be=q[Qn],be!=null))switch(Qn){case"children":case"dangerouslySetInnerHTML":throw Error(t(400));default:de(E,re,Qn,be)}return E.push(">"),null;case"title":E.push($e("title")),be=null;for(Ut in q)if(n.call(q,Ut)&&(Me=q[Ut],Me!=null))switch(Ut){case"children":be=Me;break;case"dangerouslySetInnerHTML":throw Error(t(434));default:de(E,re,Ut,Me)}return E.push(">"),be;case"listing":case"pre":E.push($e(j)),Me=be=null;for(yt in q)if(n.call(q,yt)&&(rt=q[yt],rt!=null))switch(yt){case"children":be=rt;break;case"dangerouslySetInnerHTML":Me=rt;break;default:de(E,re,yt,rt)}if(E.push(">"),Me!=null){if(be!=null)throw Error(t(60));if(typeof Me!="object"||!("__html"in Me))throw Error(t(61));q=Me.__html,q!=null&&(typeof q=="string"&&0<q.length&&q[0]===`
46
+ `?E.push(`
47
+ `,q):E.push(""+q))}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($e(j));for(var Yn in q)if(n.call(q,Yn)&&(be=q[Yn],be!=null))switch(Yn){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,j));default:de(E,re,Yn,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 ue(E,q,j,re);case"html":return De.insertionMode===0&&E.push("<!DOCTYPE html>"),ue(E,q,j,re);default:if(j.indexOf("-")===-1&&typeof q.is!="string")return ue(E,q,j,re);E.push($e(j)),Me=be=null;for(Tt in q)if(n.call(q,Tt)&&(rt=q[Tt],rt!=null))switch(Tt){case"children":be=rt;break;case"dangerouslySetInnerHTML":Me=rt;break;case"style":J(E,re,rt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:s(Tt)&&typeof rt!="function"&&typeof rt!="symbol"&&E.push(" ",Tt,'="',P(rt),'"')}return E.push(">"),x(E,Me,be),be}}function qe(E,j,q){if(E.push('<!--$?--><template id="'),q===null)throw Error(t(395));return E.push(q),E.push('"></template>')}function pe(E,j,q,re){switch(q.insertionMode){case 0:case 1:return E.push('<div hidden id="'),E.push(j.segmentPrefix),j=re.toString(16),E.push(j),E.push('">');case 2:return E.push('<svg aria-hidden="true" style="display:none" id="'),E.push(j.segmentPrefix),j=re.toString(16),E.push(j),E.push('">');case 3:return E.push('<math aria-hidden="true" style="display:none" id="'),E.push(j.segmentPrefix),j=re.toString(16),E.push(j),E.push('">');case 4:return E.push('<table hidden id="'),E.push(j.segmentPrefix),j=re.toString(16),E.push(j),E.push('">');case 5:return E.push('<table hidden><tbody id="'),E.push(j.segmentPrefix),j=re.toString(16),E.push(j),E.push('">');case 6:return E.push('<table hidden><tr id="'),E.push(j.segmentPrefix),j=re.toString(16),E.push(j),E.push('">');case 7:return E.push('<table hidden><colgroup id="'),E.push(j.segmentPrefix),j=re.toString(16),E.push(j),E.push('">');default:throw Error(t(397))}}function Oe(E,j){switch(j.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(t(397))}}var je=/[<\u2028\u2029]/g;function Xe(E){return JSON.stringify(E).replace(je,function(j){switch(j){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 at(E,j){return j=j===void 0?"":j,{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:j+"P:",segmentPrefix:j+"S:",boundaryPrefix:j+"B:",idPrefix:j,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:E}}function Ce(E,j,q,re){return q.generateStaticMarkup?(E.push(P(j)),!1):(j===""?E=re:(re&&E.push("<!-- -->"),E.push(P(j)),E=!0),E)}var Pe=Object.assign,Ve=Symbol.for("react.element"),ze=Symbol.for("react.portal"),Re=Symbol.for("react.fragment"),Fe=Symbol.for("react.strict_mode"),Ke=Symbol.for("react.profiler"),lt=Symbol.for("react.provider"),mt=Symbol.for("react.context"),wt=Symbol.for("react.forward_ref"),vt=Symbol.for("react.suspense"),Et=Symbol.for("react.suspense_list"),ot=Symbol.for("react.memo"),$t=Symbol.for("react.lazy"),Ht=Symbol.for("react.scope"),Xn=Symbol.for("react.debug_trace_mode"),mr=Symbol.for("react.legacy_hidden"),Kn=Symbol.for("react.default_value"),_n=Symbol.iterator;function $i(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 Re:return"Fragment";case ze:return"Portal";case Ke:return"Profiler";case Fe:return"StrictMode";case vt:return"Suspense";case Et:return"SuspenseList"}if(typeof E=="object")switch(E.$$typeof){case mt:return(E.displayName||"Context")+".Consumer";case lt:return(E._context.displayName||"Context")+".Provider";case wt:var j=E.render;return E=E.displayName,E||(E=j.displayName||j.name||"",E=E!==""?"ForwardRef("+E+")":"ForwardRef"),E;case ot:return j=E.displayName||null,j!==null?j:$i(E.type)||"Memo";case $t:j=E._payload,E=E._init;try{return $i(E(j))}catch{}}return null}var Dr={};function rr(E,j){if(E=E.contextTypes,!E)return Dr;var q={},re;for(re in E)q[re]=j[re];return q}var cn=null;function hn(E,j){if(E!==j){E.context._currentValue2=E.parentValue,E=E.parent;var q=j.parent;if(E===null){if(q!==null)throw Error(t(401))}else{if(q===null)throw Error(t(401));hn(E,q)}j.context._currentValue2=j.value}}function pn(E){E.context._currentValue2=E.parentValue,E=E.parent,E!==null&&pn(E)}function gt(E){var j=E.parent;j!==null&&gt(j),E.context._currentValue2=E.value}function In(E,j){if(E.context._currentValue2=E.parentValue,E=E.parent,E===null)throw Error(t(402));E.depth===j.depth?hn(E,j):In(E,j)}function li(E,j){var q=j.parent;if(q===null)throw Error(t(402));E.depth===q.depth?hn(E,q):li(E,q),j.context._currentValue2=j.value}function un(E){var j=cn;j!==E&&(j===null?gt(E):E===null?pn(j):j.depth===E.depth?hn(j,E):j.depth>E.depth?In(j,E):li(j,E),cn=E)}var Vi={isMounted:function(){return!1},enqueueSetState:function(E,j){E=E._reactInternals,E.queue!==null&&E.queue.push(j)},enqueueReplaceState:function(E,j){E=E._reactInternals,E.replace=!0,E.queue=[j]},enqueueForceUpdate:function(){}};function Hi(E,j,q,re){var De=E.state!==void 0?E.state:null;E.updater=Vi,E.props=q,E.state=De;var be={queue:[],replace:!1};E._reactInternals=be;var Me=j.contextType;if(E.context=typeof Me=="object"&&Me!==null?Me._currentValue2:re,Me=j.getDerivedStateFromProps,typeof Me=="function"&&(Me=Me(q,De),De=Me==null?De:Pe({},De,Me),E.state=De),typeof j.getDerivedStateFromProps!="function"&&typeof E.getSnapshotBeforeUpdate!="function"&&(typeof E.UNSAFE_componentWillMount=="function"||typeof E.componentWillMount=="function"))if(j=E.state,typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount(),j!==E.state&&Vi.enqueueReplaceState(E,E.state,null),be.queue!==null&&0<be.queue.length)if(j=be.queue,Me=be.replace,be.queue=null,be.replace=!1,Me&&j.length===1)E.state=j[0];else{for(be=Me?j[0]:E.state,De=!0,Me=Me?1:0;Me<j.length;Me++){var rt=j[Me];rt=typeof rt=="function"?rt.call(E,be,q,re):rt,rt!=null&&(De?(De=!1,be=Pe({},be,rt)):Pe(be,rt))}E.state=be}else be.queue=null}var Ui={id:1,overflow:""};function _r(E,j,q){var re=E.id;E=E.overflow;var De=32-Wn(re)-1;re&=~(1<<De),q+=1;var be=32-Wn(j)+De;if(30<be){var Me=De-De%5;return be=(re&(1<<Me)-1).toString(32),re>>=Me,De-=Me,{id:1<<32-Wn(j)+De|q<<De|re,overflow:be+E}}return{id:1<<be|q<<De|re,overflow:E}}var Wn=Math.clz32?Math.clz32:qr,Pr=Math.log,yr=Math.LN2;function qr(E){return E>>>=0,E===0?32:31-(Pr(E)/yr|0)|0}function Xr(E,j){return E===j&&(E!==0||1/E===1/j)||E!==E&&j!==j}var Po=typeof Object.is=="function"?Object.is:Xr,Zn=null,Kr=null,ir=null,Zt=null,ui=!1,Wi=!1,An=0,gn=null,ci=0;function fi(){if(Zn===null)throw Error(t(321));return Zn}function mn(){if(0<ci)throw Error(t(312));return{memoizedState:null,queue:null,next:null}}function uo(){return Zt===null?ir===null?(ui=!1,ir=Zt=mn()):(ui=!0,Zt=ir):Zt.next===null?(ui=!1,Zt=Zt.next=mn()):(ui=!0,Zt=Zt.next),Zt}function br(){Kr=Zn=null,Wi=!1,ir=null,ci=0,Zt=gn=null}function di(E,j){return typeof j=="function"?j(E):j}function fn(E,j,q){if(Zn=fi(),Zt=uo(),ui){var re=Zt.queue;if(j=re.dispatch,gn!==null&&(q=gn.get(re),q!==void 0)){gn.delete(re),re=Zt.memoizedState;do re=E(re,q.action),q=q.next;while(q!==null);return Zt.memoizedState=re,[re,j]}return[Zt.memoizedState,j]}return E=E===di?typeof j=="function"?j():j:q!==void 0?q(j):j,Zt.memoizedState=E,E=Zt.queue={last:null,dispatch:null},E=E.dispatch=Ia.bind(null,Zn,E),[Zt.memoizedState,E]}function Ei(E,j){if(Zn=fi(),Zt=uo(),j=j===void 0?null:j,Zt!==null){var q=Zt.memoizedState;if(q!==null&&j!==null){var re=q[1];e:if(re===null)re=!1;else{for(var De=0;De<re.length&&De<j.length;De++)if(!Po(j[De],re[De])){re=!1;break e}re=!0}if(re)return q[0]}}return E=E(),Zt.memoizedState=[E,j],E}function Ia(E,j,q){if(25<=ci)throw Error(t(301));if(E===Zn)if(Wi=!0,E={action:q,next:null},gn===null&&(gn=new Map),q=gn.get(j),q===void 0)gn.set(j,E);else{for(j=q;j.next!==null;)j=j.next;j.next=E}}function Aa(){throw Error(t(394))}function Zr(){}var co={readContext:function(E){return E._currentValue2},useContext:function(E){return fi(),E._currentValue2},useMemo:Ei,useReducer:fn,useRef:function(E){Zn=fi(),Zt=uo();var j=Zt.memoizedState;return j===null?(E={current:E},Zt.memoizedState=E):j},useState:function(E){return fn(di,E)},useInsertionEffect:Zr,useLayoutEffect:function(){},useCallback:function(E,j){return Ei(function(){return E},j)},useImperativeHandle:Zr,useEffect:Zr,useDebugValue:Zr,useDeferredValue:function(E){return fi(),E},useTransition:function(){return fi(),[!1,Aa]},useId:function(){var E=Kr.treeContext,j=E.overflow;E=E.id,E=(E&~(1<<32-Wn(E)-1)).toString(32)+j;var q=fo;if(q===null)throw Error(t(404));return j=An++,E=":"+q.idPrefix+"R"+E,0<j&&(E+="H"+j.toString(32)),E+":"},useMutableSource:function(E,j){return fi(),j(E._source)},useSyncExternalStore:function(E,j,q){if(q===void 0)throw Error(t(407));return q()}},fo=null,Ro=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function ki(E){return console.error(E),null}function hi(){}function Oi(E,j,q,re,De,be,Me,rt,yt){var Tt=[],bt=new Set;return j={destination:null,responseState:j,progressiveChunkSize:re===void 0?12800:re,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:bt,pingedTasks:Tt,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:De===void 0?ki:De,onAllReady:be===void 0?hi:be,onShellReady:Me===void 0?hi:Me,onShellError:rt===void 0?hi:rt,onFatalError:yt===void 0?hi:yt},q=Di(j,0,null,q,!1,!1),q.parentFlushed=!0,E=ho(j,E,null,q,bt,Dr,null,Ui),Tt.push(E),j}function ho(E,j,q,re,De,be,Me,rt){E.allPendingTasks++,q===null?E.pendingRootTasks++:q.pendingTasks++;var yt={node:j,ping:function(){var Tt=E.pingedTasks;Tt.push(yt),Tt.length===1&&Jn(E)},blockedBoundary:q,blockedSegment:re,abortSet:De,legacyContext:be,context:Me,treeContext:rt};return De.add(yt),yt}function Di(E,j,q,re,De,be){return{status:0,id:-1,index:j,parentFlushed:!1,chunks:[],children:[],formatContext:re,boundary:q,lastPushedText:De,textEmbedded:be}}function Jr(E,j){if(E=E.onError(j),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 wr(E,j){var q=E.onShellError;q(j),q=E.onFatalError,q(j),E.destination!==null?(E.status=2,E.destination.destroy(j)):(E.status=1,E.fatalError=j)}function Rr(E,j,q,re,De){for(Zn={},Kr=j,An=0,E=q(re,De);Wi;)Wi=!1,An=0,ci+=1,Zt=null,E=q(re,De);return br(),E}function Qr(E,j,q,re){var De=q.render(),be=re.childContextTypes;if(be!=null){var Me=j.legacyContext;if(typeof q.getChildContext!="function")re=Me;else{q=q.getChildContext();for(var rt in q)if(!(rt in be))throw Error(t(108,$i(re)||"Unknown",rt));re=Pe({},Me,q)}j.legacyContext=re,vn(E,j,De),j.legacyContext=Me}else vn(E,j,De)}function Ir(E,j){if(E&&E.defaultProps){j=Pe({},j),E=E.defaultProps;for(var q in E)j[q]===void 0&&(j[q]=E[q]);return j}return j}function zn(E,j,q,re,De){if(typeof q=="function")if(q.prototype&&q.prototype.isReactComponent){De=rr(q,j.legacyContext);var be=q.contextType;be=new q(re,typeof be=="object"&&be!==null?be._currentValue2:De),Hi(be,q,re,De),Qr(E,j,be,q)}else{be=rr(q,j.legacyContext),De=Rr(E,j,q,re,be);var Me=An!==0;if(typeof De=="object"&&De!==null&&typeof De.render=="function"&&De.$$typeof===void 0)Hi(De,q,re,be),Qr(E,j,De,q);else if(Me){re=j.treeContext,j.treeContext=_r(re,1,0);try{vn(E,j,De)}finally{j.treeContext=re}}else vn(E,j,De)}else if(typeof q=="string"){switch(De=j.blockedSegment,be=Ye(De.chunks,q,re,E.responseState,De.formatContext),De.lastPushedText=!1,Me=De.formatContext,De.formatContext=W(Me,q,re),xr(E,j,be),De.formatContext=Me,q){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:De.chunks.push("</",q,">")}De.lastPushedText=!1}else{switch(q){case mr:case Xn:case Fe:case Ke:case Re:vn(E,j,re.children);return;case Et:vn(E,j,re.children);return;case Ht:throw Error(t(343));case vt:e:{q=j.blockedBoundary,De=j.blockedSegment,be=re.fallback,re=re.children,Me=new Set;var rt={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:Me,errorDigest:null},yt=Di(E,De.chunks.length,rt,De.formatContext,!1,!1);De.children.push(yt),De.lastPushedText=!1;var Tt=Di(E,0,null,De.formatContext,!1,!1);Tt.parentFlushed=!0,j.blockedBoundary=rt,j.blockedSegment=Tt;try{if(xr(E,j,re),E.responseState.generateStaticMarkup||Tt.lastPushedText&&Tt.textEmbedded&&Tt.chunks.push("<!-- -->"),Tt.status=1,Mr(rt,Tt),rt.pendingTasks===0)break e}catch(bt){Tt.status=4,rt.forceClientRender=!0,rt.errorDigest=Jr(E,bt)}finally{j.blockedBoundary=q,j.blockedSegment=De}j=ho(E,be,q,yt,Me,j.legacyContext,j.context,j.treeContext),E.pingedTasks.push(j)}return}if(typeof q=="object"&&q!==null)switch(q.$$typeof){case wt:if(re=Rr(E,j,q.render,re,De),An!==0){q=j.treeContext,j.treeContext=_r(q,1,0);try{vn(E,j,re)}finally{j.treeContext=q}}else vn(E,j,re);return;case ot:q=q.type,re=Ir(q,re),zn(E,j,q,re,De);return;case lt:if(De=re.children,q=q._context,re=re.value,be=q._currentValue2,q._currentValue2=re,Me=cn,cn=re={parent:Me,depth:Me===null?0:Me.depth+1,context:q,parentValue:be,value:re},j.context=re,vn(E,j,De),E=cn,E===null)throw Error(t(403));re=E.parentValue,E.context._currentValue2=re===Kn?E.context._defaultValue:re,E=cn=E.parent,j.context=E;return;case mt:re=re.children,re=re(q._currentValue2),vn(E,j,re);return;case $t:De=q._init,q=De(q._payload),re=Ir(q,re),zn(E,j,q,re,void 0);return}throw Error(t(130,q==null?q:typeof q,""))}}function vn(E,j,q){if(j.node=q,typeof q=="object"&&q!==null){switch(q.$$typeof){case Ve:zn(E,j,q.type,q.props,q.ref);return;case ze:throw Error(t(257));case $t:var re=q._init;q=re(q._payload),vn(E,j,q);return}if(R(q)){Ar(E,j,q);return}if(q===null||typeof q!="object"?re=null:(re=_n&&q[_n]||q["@@iterator"],re=typeof re=="function"?re:null),re&&(re=re.call(q))){if(q=re.next(),!q.done){var De=[];do De.push(q.value),q=re.next();while(!q.done);Ar(E,j,De)}return}throw E=Object.prototype.toString.call(q),Error(t(31,E==="[object Object]"?"object with keys {"+Object.keys(q).join(", ")+"}":E))}typeof q=="string"?(re=j.blockedSegment,re.lastPushedText=Ce(j.blockedSegment.chunks,q,E.responseState,re.lastPushedText)):typeof q=="number"&&(re=j.blockedSegment,re.lastPushedText=Ce(j.blockedSegment.chunks,""+q,E.responseState,re.lastPushedText))}function Ar(E,j,q){for(var re=q.length,De=0;De<re;De++){var be=j.treeContext;j.treeContext=_r(be,re,De);try{xr(E,j,q[De])}finally{j.treeContext=be}}}function xr(E,j,q){var re=j.blockedSegment.formatContext,De=j.legacyContext,be=j.context;try{return vn(E,j,q)}catch(yt){if(br(),typeof yt=="object"&&yt!==null&&typeof yt.then=="function"){q=yt;var Me=j.blockedSegment,rt=Di(E,Me.chunks.length,null,Me.formatContext,Me.lastPushedText,!0);Me.children.push(rt),Me.lastPushedText=!1,E=ho(E,j.node,j.blockedBoundary,rt,j.abortSet,j.legacyContext,j.context,j.treeContext).ping,q.then(E,E),j.blockedSegment.formatContext=re,j.legacyContext=De,j.context=be,un(be)}else throw j.blockedSegment.formatContext=re,j.legacyContext=De,j.context=be,un(be),yt}}function Mn(E){var j=E.blockedBoundary;E=E.blockedSegment,E.status=3,ei(this,j,E)}function pi(E,j,q){var re=E.blockedBoundary;E.blockedSegment.status=3,re===null?(j.allPendingTasks--,j.status!==2&&(j.status=2,j.destination!==null&&j.destination.push(null))):(re.pendingTasks--,re.forceClientRender||(re.forceClientRender=!0,E=q===void 0?Error(t(432)):q,re.errorDigest=j.onError(E),re.parentFlushed&&j.clientRenderedBoundaries.push(re)),re.fallbackAbortableTasks.forEach(function(De){return pi(De,j,q)}),re.fallbackAbortableTasks.clear(),j.allPendingTasks--,j.allPendingTasks===0&&(re=j.onAllReady,re()))}function Mr(E,j){if(j.chunks.length===0&&j.children.length===1&&j.children[0].boundary===null){var q=j.children[0];q.id=j.id,q.parentFlushed=!0,q.status===1&&Mr(E,q)}else E.completedSegments.push(j)}function ei(E,j,q){if(j===null){if(q.parentFlushed){if(E.completedRootSegment!==null)throw Error(t(389));E.completedRootSegment=q}E.pendingRootTasks--,E.pendingRootTasks===0&&(E.onShellError=hi,j=E.onShellReady,j())}else j.pendingTasks--,j.forceClientRender||(j.pendingTasks===0?(q.parentFlushed&&q.status===1&&Mr(j,q),j.parentFlushed&&E.completedBoundaries.push(j),j.fallbackAbortableTasks.forEach(Mn,E),j.fallbackAbortableTasks.clear()):q.parentFlushed&&q.status===1&&(Mr(j,q),j.completedSegments.length===1&&j.parentFlushed&&E.partialBoundaries.push(j)));E.allPendingTasks--,E.allPendingTasks===0&&(E=E.onAllReady,E())}function Jn(E){if(E.status!==2){var j=cn,q=Ro.current;Ro.current=co;var re=fo;fo=E.responseState;try{var De=E.pingedTasks,be;for(be=0;be<De.length;be++){var Me=De[be],rt=E,yt=Me.blockedSegment;if(yt.status===0){un(Me.context);try{vn(rt,Me,Me.node),rt.responseState.generateStaticMarkup||yt.lastPushedText&&yt.textEmbedded&&yt.chunks.push("<!-- -->"),Me.abortSet.delete(Me),yt.status=1,ei(rt,Me.blockedBoundary,yt)}catch(Pn){if(br(),typeof Pn=="object"&&Pn!==null&&typeof Pn.then=="function"){var Tt=Me.ping;Pn.then(Tt,Tt)}else{Me.abortSet.delete(Me),yt.status=4;var bt=Me.blockedBoundary,Ut=Pn,Qn=Jr(rt,Ut);if(bt===null?wr(rt,Ut):(bt.pendingTasks--,bt.forceClientRender||(bt.forceClientRender=!0,bt.errorDigest=Qn,bt.parentFlushed&&rt.clientRenderedBoundaries.push(bt))),rt.allPendingTasks--,rt.allPendingTasks===0){var Yn=rt.onAllReady;Yn()}}}finally{}}}De.splice(0,be),E.destination!==null&&cr(E,E.destination)}catch(Pn){Jr(E,Pn),wr(E,Pn)}finally{fo=re,Ro.current=q,q===co&&un(j)}}}function ti(E,j,q){switch(q.parentFlushed=!0,q.status){case 0:var re=q.id=E.nextSegmentId++;return q.lastPushedText=!1,q.textEmbedded=!1,E=E.responseState,j.push('<template id="'),j.push(E.placeholderPrefix),E=re.toString(16),j.push(E),j.push('"></template>');case 1:q.status=2;var De=!0;re=q.chunks;var be=0;q=q.children;for(var Me=0;Me<q.length;Me++){for(De=q[Me];be<De.index;be++)j.push(re[be]);De=ni(E,j,De)}for(;be<re.length-1;be++)j.push(re[be]);return be<re.length&&(De=j.push(re[be])),De;default:throw Error(t(390))}}function ni(E,j,q){var re=q.boundary;if(re===null)return ti(E,j,q);if(re.parentFlushed=!0,re.forceClientRender)return E.responseState.generateStaticMarkup||(re=re.errorDigest,j.push("<!--$!-->"),j.push("<template"),re&&(j.push(' data-dgst="'),re=P(re),j.push(re),j.push('"')),j.push("></template>")),ti(E,j,q),E=E.responseState.generateStaticMarkup?!0:j.push("<!--/$-->"),E;if(0<re.pendingTasks){re.rootSegmentID=E.nextSegmentId++,0<re.completedSegments.length&&E.partialBoundaries.push(re);var De=E.responseState,be=De.nextSuspenseID++;return De=De.boundaryPrefix+be.toString(16),re=re.id=De,qe(j,E.responseState,re),ti(E,j,q),j.push("<!--/$-->")}if(re.byteSize>E.progressiveChunkSize)return re.rootSegmentID=E.nextSegmentId++,E.completedBoundaries.push(re),qe(j,E.responseState,re.id),ti(E,j,q),j.push("<!--/$-->");if(E.responseState.generateStaticMarkup||j.push("<!--$-->"),q=re.completedSegments,q.length!==1)throw Error(t(391));return ni(E,j,q[0]),E=E.responseState.generateStaticMarkup?!0:j.push("<!--/$-->"),E}function zi(E,j,q){return pe(j,E.responseState,q.formatContext,q.id),ni(E,j,q),Oe(j,q.formatContext)}function Rn(E,j,q){for(var re=q.completedSegments,De=0;De<re.length;De++)Sr(E,j,q,re[De]);if(re.length=0,E=E.responseState,re=q.id,q=q.rootSegmentID,j.push(E.startInlineScript),E.sentCompleteBoundaryFunction?j.push('$RC("'):(E.sentCompleteBoundaryFunction=!0,j.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("')),re===null)throw Error(t(395));return q=q.toString(16),j.push(re),j.push('","'),j.push(E.segmentPrefix),j.push(q),j.push('")<\/script>')}function Sr(E,j,q,re){if(re.status===2)return!0;var De=re.id;if(De===-1){if((re.id=q.rootSegmentID)===-1)throw Error(t(392));return zi(E,j,re)}return zi(E,j,re),E=E.responseState,j.push(E.startInlineScript),E.sentCompleteSegmentFunction?j.push('$RS("'):(E.sentCompleteSegmentFunction=!0,j.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("')),j.push(E.segmentPrefix),De=De.toString(16),j.push(De),j.push('","'),j.push(E.placeholderPrefix),j.push(De),j.push('")<\/script>')}function cr(E,j){try{var q=E.completedRootSegment;if(q!==null&&E.pendingRootTasks===0){ni(E,j,q),E.completedRootSegment=null;var re=E.responseState.bootstrapChunks;for(q=0;q<re.length-1;q++)j.push(re[q]);q<re.length&&j.push(re[q])}var De=E.clientRenderedBoundaries,be;for(be=0;be<De.length;be++){var Me=De[be];re=j;var rt=E.responseState,yt=Me.id,Tt=Me.errorDigest,bt=Me.errorMessage,Ut=Me.errorComponentStack;if(re.push(rt.startInlineScript),rt.sentClientRenderFunction?re.push('$RX("'):(rt.sentClientRenderFunction=!0,re.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("')),yt===null)throw Error(t(395));if(re.push(yt),re.push('"'),Tt||bt||Ut){re.push(",");var Qn=Xe(Tt||"");re.push(Qn)}if(bt||Ut){re.push(",");var Yn=Xe(bt||"");re.push(Yn)}if(Ut){re.push(",");var Pn=Xe(Ut);re.push(Pn)}if(!re.push(")<\/script>")){E.destination=null,be++,De.splice(0,be);return}}De.splice(0,be);var Fr=E.completedBoundaries;for(be=0;be<Fr.length;be++)if(!Rn(E,j,Fr[be])){E.destination=null,be++,Fr.splice(0,be);return}Fr.splice(0,be);var or=E.partialBoundaries;for(be=0;be<or.length;be++){var Gi=or[be];e:{De=E,Me=j;var gi=Gi.completedSegments;for(rt=0;rt<gi.length;rt++)if(!Sr(De,Me,Gi,gi[rt])){rt++,gi.splice(0,rt);var qi=!1;break e}gi.splice(0,rt),qi=!0}if(!qi){E.destination=null,be++,or.splice(0,be);return}}or.splice(0,be);var Nr=E.completedBoundaries;for(be=0;be<Nr.length;be++)if(!Rn(E,j,Nr[be])){E.destination=null,be++,Nr.splice(0,be);return}Nr.splice(0,be)}finally{E.allPendingTasks===0&&E.pingedTasks.length===0&&E.clientRenderedBoundaries.length===0&&E.completedBoundaries.length===0&&j.push(null)}}function Io(E,j){try{var q=E.abortableTasks;q.forEach(function(re){return pi(re,E,j)}),q.clear(),E.destination!==null&&cr(E,E.destination)}catch(re){Jr(E,re),wr(E,re)}}function Yi(){}function Lr(E,j,q,re){var De=!1,be=null,Me="",rt={push:function(Tt){return Tt!==null&&(Me+=Tt),!0},destroy:function(Tt){De=!0,be=Tt}},yt=!1;if(E=Oi(E,at(q,j?j.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,Yi,void 0,function(){yt=!0},void 0,void 0),Jn(E),Io(E,re),E.status===1)E.status=2,rt.destroy(E.fatalError);else if(E.status!==2&&E.destination===null){E.destination=rt;try{cr(E,rt)}catch(Tt){Jr(E,Tt),wr(E,Tt)}}if(De)throw be;if(!yt)throw Error(t(426));return Me}return xc.renderToNodeStream=function(){throw Error(t(207))},xc.renderToStaticMarkup=function(E,j){return Lr(E,j,!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')},xc.renderToStaticNodeStream=function(){throw Error(t(208))},xc.renderToString=function(E,j){return Lr(E,j,!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')},xc.version="18.3.1",xc}var Vh={};/**
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 s1;function C4(){if(s1)return Vh;s1=1;var e=X;function t(k){for(var F="https://reactjs.org/docs/error-decoder.html?invariant="+k,z=1;z<arguments.length;z++)F+="&args[]="+encodeURIComponent(arguments[z]);return"Minified React error #"+k+"; visit "+F+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=null,r=0;function i(k,F){if(F.length!==0)if(512<F.length)0<r&&(k.enqueue(new Uint8Array(n.buffer,0,r)),n=new Uint8Array(512),r=0),k.enqueue(F);else{var z=n.length-r;z<F.length&&(z===0?k.enqueue(n):(n.set(F.subarray(0,z),r),k.enqueue(n),F=F.subarray(z)),n=new Uint8Array(512),r=0),n.set(F,r),r+=F.length}}function o(k,F){return i(k,F),!0}function s(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 v(k,F){typeof k.error=="function"?k.error(F):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]*$/,T={},P={};function I(k){return p.call(P,k)?!0:p.call(T,k)?!1:S.test(k)?P[k]=!0:(T[k]=!0,!1)}function L(k,F,z,ne,Se,Te,He){this.acceptsBooleans=F===2||F===3||F===4,this.attributeName=ne,this.attributeNamespace=Se,this.mustUseProperty=z,this.propertyName=k,this.type=F,this.sanitizeURL=Te,this.removeEmptyString=He}var R={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(k){R[k]=new L(k,0,!1,k,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(k){var F=k[0];R[F]=new L(F,1,!1,k[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(k){R[k]=new L(k,2,!1,k.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(k){R[k]=new L(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){R[k]=new L(k,3,!1,k.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(k){R[k]=new L(k,3,!0,k,null,!1,!1)}),["capture","download"].forEach(function(k){R[k]=new L(k,4,!1,k,null,!1,!1)}),["cols","rows","size","span"].forEach(function(k){R[k]=new L(k,6,!1,k,null,!1,!1)}),["rowSpan","start"].forEach(function(k){R[k]=new L(k,5,!1,k.toLowerCase(),null,!1,!1)});var H=/[\-:]([a-z])/g;function W(k){return k[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(k){var F=k.replace(H,W);R[F]=new L(F,1,!1,k,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(k){var F=k.replace(H,W);R[F]=new L(F,1,!1,k,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(k){var F=k.replace(H,W);R[F]=new L(F,1,!1,k,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(k){R[k]=new L(k,1,!1,k.toLowerCase(),null,!1,!1)}),R.xlinkHref=new L("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(k){R[k]=new L(k,1,!1,k.toLowerCase(),null,!0,!0)});var te={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},J=["Webkit","ms","Moz","O"];Object.keys(te).forEach(function(k){J.forEach(function(F){F=F+k.charAt(0).toUpperCase()+k.substring(1),te[F]=te[k]})});var de=/["'&<>]/;function x(k){if(typeof k=="boolean"||typeof k=="number")return""+k;k=""+k;var F=de.exec(k);if(F){var z="",ne,Se=0;for(ne=F.index;ne<k.length;ne++){switch(k.charCodeAt(ne)){case 34:F="&quot;";break;case 38:F="&amp;";break;case 39:F="&#x27;";break;case 60:F="&lt;";break;case 62:F="&gt;";break;default:continue}Se!==ne&&(z+=k.substring(Se,ne)),Se=ne+1,z+=F}k=Se!==ne?z+k.substring(Se,ne):z}return k}var ye=/([A-Z])/g,ue=/^ms-/,Je=Array.isArray,Ne=d("<script>"),$e=d("<\/script>"),Ye=d('<script src="'),qe=d('<script type="module" src="'),pe=d('" async=""><\/script>'),Oe=/(<\/|<)(s)(cript)/gi;function je(k,F,z,ne){return""+F+(z==="s"?"\\u0073":"\\u0053")+ne}function Xe(k,F,z,ne,Se){k=k===void 0?"":k,F=F===void 0?Ne:d('<script nonce="'+x(F)+'">');var Te=[];if(z!==void 0&&Te.push(F,c((""+z).replace(Oe,je)),$e),ne!==void 0)for(z=0;z<ne.length;z++)Te.push(Ye,c(x(ne[z])),pe);if(Se!==void 0)for(ne=0;ne<Se.length;ne++)Te.push(qe,c(x(Se[ne])),pe);return{bootstrapChunks:Te,startInlineScript:F,placeholderPrefix:d(k+"P:"),segmentPrefix:d(k+"S:"),boundaryPrefix:k+"B:",idPrefix:k,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function at(k,F){return{insertionMode:k,selectedValue:F}}function Ce(k){return at(k==="http://www.w3.org/2000/svg"?2:k==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function Pe(k,F,z){switch(F){case"select":return at(1,z.value!=null?z.value:z.defaultValue);case"svg":return at(2,null);case"math":return at(3,null);case"foreignObject":return at(1,null);case"table":return at(4,null);case"thead":case"tbody":case"tfoot":return at(5,null);case"colgroup":return at(7,null);case"tr":return at(6,null)}return 4<=k.insertionMode||k.insertionMode===0?at(1,null):k}var Ve=d("<!-- -->");function ze(k,F,z,ne){return F===""?ne:(ne&&k.push(Ve),k.push(c(x(F))),!0)}var Re=new Map,Fe=d(' style="'),Ke=d(":"),lt=d(";");function mt(k,F,z){if(typeof z!="object")throw Error(t(62));F=!0;for(var ne in z)if(p.call(z,ne)){var Se=z[ne];if(Se!=null&&typeof Se!="boolean"&&Se!==""){if(ne.indexOf("--")===0){var Te=c(x(ne));Se=c(x((""+Se).trim()))}else{Te=ne;var He=Re.get(Te);He!==void 0||(He=d(x(Te.replace(ye,"-$1").toLowerCase().replace(ue,"-ms-"))),Re.set(Te,He)),Te=He,Se=typeof Se=="number"?Se===0||p.call(te,ne)?c(""+Se):c(Se+"px"):c(x((""+Se).trim()))}F?(F=!1,k.push(Fe,Te,Ke,Se)):k.push(lt,Te,Ke,Se)}}F||k.push(Et)}var wt=d(" "),vt=d('="'),Et=d('"'),ot=d('=""');function $t(k,F,z,ne){switch(z){case"style":mt(k,F,ne);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<z.length)||z[0]!=="o"&&z[0]!=="O"||z[1]!=="n"&&z[1]!=="N"){if(F=R.hasOwnProperty(z)?R[z]:null,F!==null){switch(typeof ne){case"function":case"symbol":return;case"boolean":if(!F.acceptsBooleans)return}switch(z=c(F.attributeName),F.type){case 3:ne&&k.push(wt,z,ot);break;case 4:ne===!0?k.push(wt,z,ot):ne!==!1&&k.push(wt,z,vt,c(x(ne)),Et);break;case 5:isNaN(ne)||k.push(wt,z,vt,c(x(ne)),Et);break;case 6:!isNaN(ne)&&1<=ne&&k.push(wt,z,vt,c(x(ne)),Et);break;default:F.sanitizeURL&&(ne=""+ne),k.push(wt,z,vt,c(x(ne)),Et)}}else if(I(z)){switch(typeof ne){case"function":case"symbol":return;case"boolean":if(F=z.toLowerCase().slice(0,5),F!=="data-"&&F!=="aria-")return}k.push(wt,c(z),vt,c(x(ne)),Et)}}}var Ht=d(">"),Xn=d("/>");function mr(k,F,z){if(F!=null){if(z!=null)throw Error(t(60));if(typeof F!="object"||!("__html"in F))throw Error(t(61));F=F.__html,F!=null&&k.push(c(""+F))}}function Kn(k){var F="";return e.Children.forEach(k,function(z){z!=null&&(F+=z)}),F}var _n=d(' selected=""');function $i(k,F,z,ne){k.push(hn(z));var Se=z=null,Te;for(Te in F)if(p.call(F,Te)){var He=F[Te];if(He!=null)switch(Te){case"children":z=He;break;case"dangerouslySetInnerHTML":Se=He;break;default:$t(k,ne,Te,He)}}return k.push(Ht),mr(k,Se,z),typeof z=="string"?(k.push(c(x(z))),null):z}var Dr=d(`
58
+ `),rr=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,cn=new Map;function hn(k){var F=cn.get(k);if(F===void 0){if(!rr.test(k))throw Error(t(65,k));F=d("<"+k),cn.set(k,F)}return F}var pn=d("<!DOCTYPE html>");function gt(k,F,z,ne,Se){switch(F){case"select":k.push(hn("select"));var Te=null,He=null;for(Dt in z)if(p.call(z,Dt)){var nt=z[Dt];if(nt!=null)switch(Dt){case"children":Te=nt;break;case"dangerouslySetInnerHTML":He=nt;break;case"defaultValue":case"value":break;default:$t(k,ne,Dt,nt)}}return k.push(Ht),mr(k,He,Te),Te;case"option":He=Se.selectedValue,k.push(hn("option"));var xt=nt=null,Nt=null,Dt=null;for(Te in z)if(p.call(z,Te)){var Ct=z[Te];if(Ct!=null)switch(Te){case"children":nt=Ct;break;case"selected":Nt=Ct;break;case"dangerouslySetInnerHTML":Dt=Ct;break;case"value":xt=Ct;default:$t(k,ne,Te,Ct)}}if(He!=null)if(z=xt!==null?""+xt:Kn(nt),Je(He)){for(ne=0;ne<He.length;ne++)if(""+He[ne]===z){k.push(_n);break}}else""+He===z&&k.push(_n);else Nt&&k.push(_n);return k.push(Ht),mr(k,Dt,nt),nt;case"textarea":k.push(hn("textarea")),Dt=He=Te=null;for(nt in z)if(p.call(z,nt)&&(xt=z[nt],xt!=null))switch(nt){case"children":Dt=xt;break;case"value":Te=xt;break;case"defaultValue":He=xt;break;case"dangerouslySetInnerHTML":throw Error(t(91));default:$t(k,ne,nt,xt)}if(Te===null&&He!==null&&(Te=He),k.push(Ht),Dt!=null){if(Te!=null)throw Error(t(92));if(Je(Dt)&&1<Dt.length)throw Error(t(93));Te=""+Dt}return typeof Te=="string"&&Te[0]===`
59
+ `&&k.push(Dr),Te!==null&&k.push(c(x(""+Te))),null;case"input":k.push(hn("input")),xt=Dt=nt=Te=null;for(He in z)if(p.call(z,He)&&(Nt=z[He],Nt!=null))switch(He){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,"input"));case"defaultChecked":xt=Nt;break;case"defaultValue":nt=Nt;break;case"checked":Dt=Nt;break;case"value":Te=Nt;break;default:$t(k,ne,He,Nt)}return Dt!==null?$t(k,ne,"checked",Dt):xt!==null&&$t(k,ne,"checked",xt),Te!==null?$t(k,ne,"value",Te):nt!==null&&$t(k,ne,"value",nt),k.push(Xn),null;case"menuitem":k.push(hn("menuitem"));for(var $n in z)if(p.call(z,$n)&&(Te=z[$n],Te!=null))switch($n){case"children":case"dangerouslySetInnerHTML":throw Error(t(400));default:$t(k,ne,$n,Te)}return k.push(Ht),null;case"title":k.push(hn("title")),Te=null;for(Ct in z)if(p.call(z,Ct)&&(He=z[Ct],He!=null))switch(Ct){case"children":Te=He;break;case"dangerouslySetInnerHTML":throw Error(t(434));default:$t(k,ne,Ct,He)}return k.push(Ht),Te;case"listing":case"pre":k.push(hn(F)),He=Te=null;for(xt in z)if(p.call(z,xt)&&(nt=z[xt],nt!=null))switch(xt){case"children":Te=nt;break;case"dangerouslySetInnerHTML":He=nt;break;default:$t(k,ne,xt,nt)}if(k.push(Ht),He!=null){if(Te!=null)throw Error(t(60));if(typeof He!="object"||!("__html"in He))throw Error(t(61));z=He.__html,z!=null&&(typeof z=="string"&&0<z.length&&z[0]===`
60
+ `?k.push(Dr,c(z)):k.push(c(""+z)))}return typeof Te=="string"&&Te[0]===`
61
+ `&&k.push(Dr),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(hn(F));for(var Cn in z)if(p.call(z,Cn)&&(Te=z[Cn],Te!=null))switch(Cn){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,F));default:$t(k,ne,Cn,Te)}return k.push(Xn),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return $i(k,z,F,ne);case"html":return Se.insertionMode===0&&k.push(pn),$i(k,z,F,ne);default:if(F.indexOf("-")===-1&&typeof z.is!="string")return $i(k,z,F,ne);k.push(hn(F)),He=Te=null;for(Nt in z)if(p.call(z,Nt)&&(nt=z[Nt],nt!=null))switch(Nt){case"children":Te=nt;break;case"dangerouslySetInnerHTML":He=nt;break;case"style":mt(k,ne,nt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:I(Nt)&&typeof nt!="function"&&typeof nt!="symbol"&&k.push(wt,c(Nt),vt,c(x(nt)),Et)}return k.push(Ht),mr(k,He,Te),Te}}var In=d("</"),li=d(">"),un=d('<template id="'),Vi=d('"></template>'),Hi=d("<!--$-->"),Ui=d('<!--$?--><template id="'),_r=d('"></template>'),Wn=d("<!--$!-->"),Pr=d("<!--/$-->"),yr=d("<template"),qr=d('"'),Xr=d(' data-dgst="');d(' data-msg="'),d(' data-stck="');var Po=d("></template>");function Zn(k,F,z){if(i(k,Ui),z===null)throw Error(t(395));return i(k,z),o(k,_r)}var Kr=d('<div hidden id="'),ir=d('">'),Zt=d("</div>"),ui=d('<svg aria-hidden="true" style="display:none" id="'),Wi=d('">'),An=d("</svg>"),gn=d('<math aria-hidden="true" style="display:none" id="'),ci=d('">'),fi=d("</math>"),mn=d('<table hidden id="'),uo=d('">'),br=d("</table>"),di=d('<table hidden><tbody id="'),fn=d('">'),Ei=d("</tbody></table>"),Ia=d('<table hidden><tr id="'),Aa=d('">'),Zr=d("</tr></table>"),co=d('<table hidden><colgroup id="'),fo=d('">'),Ro=d("</colgroup></table>");function ki(k,F,z,ne){switch(z.insertionMode){case 0:case 1:return i(k,Kr),i(k,F.segmentPrefix),i(k,c(ne.toString(16))),o(k,ir);case 2:return i(k,ui),i(k,F.segmentPrefix),i(k,c(ne.toString(16))),o(k,Wi);case 3:return i(k,gn),i(k,F.segmentPrefix),i(k,c(ne.toString(16))),o(k,ci);case 4:return i(k,mn),i(k,F.segmentPrefix),i(k,c(ne.toString(16))),o(k,uo);case 5:return i(k,di),i(k,F.segmentPrefix),i(k,c(ne.toString(16))),o(k,fn);case 6:return i(k,Ia),i(k,F.segmentPrefix),i(k,c(ne.toString(16))),o(k,Aa);case 7:return i(k,co),i(k,F.segmentPrefix),i(k,c(ne.toString(16))),o(k,fo);default:throw Error(t(397))}}function hi(k,F){switch(F.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,br);case 5:return o(k,Ei);case 6:return o(k,Zr);case 7:return o(k,Ro);default:throw Error(t(397))}}var Oi=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("'),ho=d('$RS("'),Di=d('","'),Jr=d('")<\/script>'),wr=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("'),Rr=d('$RC("'),Qr=d('","'),Ir=d('")<\/script>'),zn=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("'),vn=d('$RX("'),Ar=d('"'),xr=d(")<\/script>"),Mn=d(","),pi=/[<\u2028\u2029]/g;function Mr(k){return JSON.stringify(k).replace(pi,function(F){switch(F){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var ei=Object.assign,Jn=Symbol.for("react.element"),ti=Symbol.for("react.portal"),ni=Symbol.for("react.fragment"),zi=Symbol.for("react.strict_mode"),Rn=Symbol.for("react.profiler"),Sr=Symbol.for("react.provider"),cr=Symbol.for("react.context"),Io=Symbol.for("react.forward_ref"),Yi=Symbol.for("react.suspense"),Lr=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),q=Symbol.for("react.scope"),re=Symbol.for("react.debug_trace_mode"),De=Symbol.for("react.legacy_hidden"),be=Symbol.for("react.default_value"),Me=Symbol.iterator;function rt(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 Rn:return"Profiler";case zi:return"StrictMode";case Yi:return"Suspense";case Lr:return"SuspenseList"}if(typeof k=="object")switch(k.$$typeof){case cr:return(k.displayName||"Context")+".Consumer";case Sr:return(k._context.displayName||"Context")+".Provider";case Io:var F=k.render;return k=k.displayName,k||(k=F.displayName||F.name||"",k=k!==""?"ForwardRef("+k+")":"ForwardRef"),k;case E:return F=k.displayName||null,F!==null?F:rt(k.type)||"Memo";case j:F=k._payload,k=k._init;try{return rt(k(F))}catch{}}return null}var yt={};function Tt(k,F){if(k=k.contextTypes,!k)return yt;var z={},ne;for(ne in k)z[ne]=F[ne];return z}var bt=null;function Ut(k,F){if(k!==F){k.context._currentValue=k.parentValue,k=k.parent;var z=F.parent;if(k===null){if(z!==null)throw Error(t(401))}else{if(z===null)throw Error(t(401));Ut(k,z)}F.context._currentValue=F.value}}function Qn(k){k.context._currentValue=k.parentValue,k=k.parent,k!==null&&Qn(k)}function Yn(k){var F=k.parent;F!==null&&Yn(F),k.context._currentValue=k.value}function Pn(k,F){if(k.context._currentValue=k.parentValue,k=k.parent,k===null)throw Error(t(402));k.depth===F.depth?Ut(k,F):Pn(k,F)}function Fr(k,F){var z=F.parent;if(z===null)throw Error(t(402));k.depth===z.depth?Ut(k,z):Fr(k,z),F.context._currentValue=F.value}function or(k){var F=bt;F!==k&&(F===null?Yn(k):k===null?Qn(F):F.depth===k.depth?Ut(F,k):F.depth>k.depth?Pn(F,k):Fr(F,k),bt=k)}var Gi={isMounted:function(){return!1},enqueueSetState:function(k,F){k=k._reactInternals,k.queue!==null&&k.queue.push(F)},enqueueReplaceState:function(k,F){k=k._reactInternals,k.replace=!0,k.queue=[F]},enqueueForceUpdate:function(){}};function gi(k,F,z,ne){var Se=k.state!==void 0?k.state:null;k.updater=Gi,k.props=z,k.state=Se;var Te={queue:[],replace:!1};k._reactInternals=Te;var He=F.contextType;if(k.context=typeof He=="object"&&He!==null?He._currentValue:ne,He=F.getDerivedStateFromProps,typeof He=="function"&&(He=He(z,Se),Se=He==null?Se:ei({},Se,He),k.state=Se),typeof F.getDerivedStateFromProps!="function"&&typeof k.getSnapshotBeforeUpdate!="function"&&(typeof k.UNSAFE_componentWillMount=="function"||typeof k.componentWillMount=="function"))if(F=k.state,typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount(),F!==k.state&&Gi.enqueueReplaceState(k,k.state,null),Te.queue!==null&&0<Te.queue.length)if(F=Te.queue,He=Te.replace,Te.queue=null,Te.replace=!1,He&&F.length===1)k.state=F[0];else{for(Te=He?F[0]:k.state,Se=!0,He=He?1:0;He<F.length;He++){var nt=F[He];nt=typeof nt=="function"?nt.call(k,Te,z,ne):nt,nt!=null&&(Se?(Se=!1,Te=ei({},Te,nt)):ei(Te,nt))}k.state=Te}else Te.queue=null}var qi={id:1,overflow:""};function Nr(k,F,z){var ne=k.id;k=k.overflow;var Se=32-Ao(ne)-1;ne&=~(1<<Se),z+=1;var Te=32-Ao(F)+Se;if(30<Te){var He=Se-Se%5;return Te=(ne&(1<<He)-1).toString(32),ne>>=He,Se-=He,{id:1<<32-Ao(F)+Se|z<<Se|ne,overflow:Te+k}}return{id:1<<Te|z<<Se|ne,overflow:k}}var Ao=Math.clz32?Math.clz32:La,Ys=Math.log,Ma=Math.LN2;function La(k){return k>>>=0,k===0?32:31-(Ys(k)/Ma|0)|0}function Fa(k,F){return k===F&&(k!==0||1/k===1/F)||k!==k&&F!==F}var Na=typeof Object.is=="function"?Object.is:Fa,vi=null,Mo=null,ra=null,sn=null,Qt=!1,Vt=!1,_i=0,ri=null,Lo=0;function mi(){if(vi===null)throw Error(t(321));return vi}function fr(){if(0<Lo)throw Error(t(312));return{memoizedState:null,queue:null,next:null}}function ja(){return sn===null?ra===null?(Qt=!1,ra=sn=fr()):(Qt=!0,sn=ra):sn.next===null?(Qt=!1,sn=sn.next=fr()):(Qt=!0,sn=sn.next),sn}function ia(){Mo=vi=null,Vt=!1,ra=null,Lo=0,sn=ri=null}function us(k,F){return typeof F=="function"?F(k):F}function yn(k,F,z){if(vi=mi(),sn=ja(),Qt){var ne=sn.queue;if(F=ne.dispatch,ri!==null&&(z=ri.get(ne),z!==void 0)){ri.delete(ne),ne=sn.memoizedState;do ne=k(ne,z.action),z=z.next;while(z!==null);return sn.memoizedState=ne,[ne,F]}return[sn.memoizedState,F]}return k=k===us?typeof F=="function"?F():F:z!==void 0?z(F):F,sn.memoizedState=k,k=sn.queue={last:null,dispatch:null},k=k.dispatch=yi.bind(null,vi,k),[sn.memoizedState,k]}function Fo(k,F){if(vi=mi(),sn=ja(),F=F===void 0?null:F,sn!==null){var z=sn.memoizedState;if(z!==null&&F!==null){var ne=z[1];e:if(ne===null)ne=!1;else{for(var Se=0;Se<ne.length&&Se<F.length;Se++)if(!Na(F[Se],ne[Se])){ne=!1;break e}ne=!0}if(ne)return z[0]}}return k=k(),sn.memoizedState=[k,F],k}function yi(k,F,z){if(25<=Lo)throw Error(t(301));if(k===vi)if(Vt=!0,k={action:z,next:null},ri===null&&(ri=new Map),z=ri.get(F),z===void 0)ri.set(F,k);else{for(F=z;F.next!==null;)F=F.next;F.next=k}}function cs(){throw Error(t(394))}function po(){}var er={readContext:function(k){return k._currentValue},useContext:function(k){return mi(),k._currentValue},useMemo:Fo,useReducer:yn,useRef:function(k){vi=mi(),sn=ja();var F=sn.memoizedState;return F===null?(k={current:k},sn.memoizedState=k):F},useState:function(k){return yn(us,k)},useInsertionEffect:po,useLayoutEffect:function(){},useCallback:function(k,F){return Fo(function(){return k},F)},useImperativeHandle:po,useEffect:po,useDebugValue:po,useDeferredValue:function(k){return mi(),k},useTransition:function(){return mi(),[!1,cs]},useId:function(){var k=Mo.treeContext,F=k.overflow;k=k.id,k=(k&~(1<<32-Ao(k)-1)).toString(32)+F;var z=f;if(z===null)throw Error(t(404));return F=_i++,k=":"+z.idPrefix+"R"+k,0<F&&(k+="H"+F.toString(32)),k+":"},useMutableSource:function(k,F){return mi(),F(k._source)},useSyncExternalStore:function(k,F,z){if(z===void 0)throw Error(t(407));return z()}},f=null,m=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function C(k){return console.error(k),null}function O(){}function N(k,F,z,ne,Se,Te,He,nt,xt){var Nt=[],Dt=new Set;return F={destination:null,responseState:F,progressiveChunkSize:ne===void 0?12800:ne,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:Dt,pingedTasks:Nt,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:Se===void 0?C:Se,onAllReady:Te===void 0?O:Te,onShellReady:He===void 0?O:He,onShellError:nt===void 0?O:nt,onFatalError:xt===void 0?O:xt},z=U(F,0,null,z,!1,!1),z.parentFlushed=!0,k=B(F,k,null,z,Dt,yt,null,qi),Nt.push(k),F}function B(k,F,z,ne,Se,Te,He,nt){k.allPendingTasks++,z===null?k.pendingRootTasks++:z.pendingTasks++;var xt={node:F,ping:function(){var Nt=k.pingedTasks;Nt.push(xt),Nt.length===1&&Br(k)},blockedBoundary:z,blockedSegment:ne,abortSet:Se,legacyContext:Te,context:He,treeContext:nt};return Se.add(xt),xt}function U(k,F,z,ne,Se,Te){return{status:0,id:-1,index:F,parentFlushed:!1,chunks:[],children:[],formatContext:ne,boundary:z,lastPushedText:Se,textEmbedded:Te}}function le(k,F){if(k=k.onError(F),k!=null&&typeof k!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof k+'" instead');return k}function oe(k,F){var z=k.onShellError;z(F),z=k.onFatalError,z(F),k.destination!==null?(k.status=2,v(k.destination,F)):(k.status=1,k.fatalError=F)}function we(k,F,z,ne,Se){for(vi={},Mo=F,_i=0,k=z(ne,Se);Vt;)Vt=!1,_i=0,Lo+=1,sn=null,k=z(ne,Se);return ia(),k}function Le(k,F,z,ne){var Se=z.render(),Te=ne.childContextTypes;if(Te!=null){var He=F.legacyContext;if(typeof z.getChildContext!="function")ne=He;else{z=z.getChildContext();for(var nt in z)if(!(nt in Te))throw Error(t(108,rt(ne)||"Unknown",nt));ne=ei({},He,z)}F.legacyContext=ne,Ze(k,F,Se),F.legacyContext=He}else Ze(k,F,Se)}function Be(k,F){if(k&&k.defaultProps){F=ei({},F),k=k.defaultProps;for(var z in k)F[z]===void 0&&(F[z]=k[z]);return F}return F}function Ee(k,F,z,ne,Se){if(typeof z=="function")if(z.prototype&&z.prototype.isReactComponent){Se=Tt(z,F.legacyContext);var Te=z.contextType;Te=new z(ne,typeof Te=="object"&&Te!==null?Te._currentValue:Se),gi(Te,z,ne,Se),Le(k,F,Te,z)}else{Te=Tt(z,F.legacyContext),Se=we(k,F,z,ne,Te);var He=_i!==0;if(typeof Se=="object"&&Se!==null&&typeof Se.render=="function"&&Se.$$typeof===void 0)gi(Se,z,ne,Te),Le(k,F,Se,z);else if(He){ne=F.treeContext,F.treeContext=Nr(ne,1,0);try{Ze(k,F,Se)}finally{F.treeContext=ne}}else Ze(k,F,Se)}else if(typeof z=="string"){switch(Se=F.blockedSegment,Te=gt(Se.chunks,z,ne,k.responseState,Se.formatContext),Se.lastPushedText=!1,He=Se.formatContext,Se.formatContext=Pe(He,z,ne),_t(k,F,Te),Se.formatContext=He,z){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(In,c(z),li)}Se.lastPushedText=!1}else{switch(z){case De:case re:case zi:case Rn:case ni:Ze(k,F,ne.children);return;case Lr:Ze(k,F,ne.children);return;case q:throw Error(t(343));case Yi:e:{z=F.blockedBoundary,Se=F.blockedSegment,Te=ne.fallback,ne=ne.children,He=new Set;var nt={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:He,errorDigest:null},xt=U(k,Se.chunks.length,nt,Se.formatContext,!1,!1);Se.children.push(xt),Se.lastPushedText=!1;var Nt=U(k,0,null,Se.formatContext,!1,!1);Nt.parentFlushed=!0,F.blockedBoundary=nt,F.blockedSegment=Nt;try{if(_t(k,F,ne),Nt.lastPushedText&&Nt.textEmbedded&&Nt.chunks.push(Ve),Nt.status=1,dn(nt,Nt),nt.pendingTasks===0)break e}catch(Dt){Nt.status=4,nt.forceClientRender=!0,nt.errorDigest=le(k,Dt)}finally{F.blockedBoundary=z,F.blockedSegment=Se}F=B(k,Te,z,xt,He,F.legacyContext,F.context,F.treeContext),k.pingedTasks.push(F)}return}if(typeof z=="object"&&z!==null)switch(z.$$typeof){case Io:if(ne=we(k,F,z.render,ne,Se),_i!==0){z=F.treeContext,F.treeContext=Nr(z,1,0);try{Ze(k,F,ne)}finally{F.treeContext=z}}else Ze(k,F,ne);return;case E:z=z.type,ne=Be(z,ne),Ee(k,F,z,ne,Se);return;case Sr:if(Se=ne.children,z=z._context,ne=ne.value,Te=z._currentValue,z._currentValue=ne,He=bt,bt=ne={parent:He,depth:He===null?0:He.depth+1,context:z,parentValue:Te,value:ne},F.context=ne,Ze(k,F,Se),k=bt,k===null)throw Error(t(403));ne=k.parentValue,k.context._currentValue=ne===be?k.context._defaultValue:ne,k=bt=k.parent,F.context=k;return;case cr:ne=ne.children,ne=ne(z._currentValue),Ze(k,F,ne);return;case j:Se=z._init,z=Se(z._payload),ne=Be(z,ne),Ee(k,F,z,ne,void 0);return}throw Error(t(130,z==null?z:typeof z,""))}}function Ze(k,F,z){if(F.node=z,typeof z=="object"&&z!==null){switch(z.$$typeof){case Jn:Ee(k,F,z.type,z.props,z.ref);return;case ti:throw Error(t(257));case j:var ne=z._init;z=ne(z._payload),Ze(k,F,z);return}if(Je(z)){ct(k,F,z);return}if(z===null||typeof z!="object"?ne=null:(ne=Me&&z[Me]||z["@@iterator"],ne=typeof ne=="function"?ne:null),ne&&(ne=ne.call(z))){if(z=ne.next(),!z.done){var Se=[];do Se.push(z.value),z=ne.next();while(!z.done);ct(k,F,Se)}return}throw k=Object.prototype.toString.call(z),Error(t(31,k==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":k))}typeof z=="string"?(ne=F.blockedSegment,ne.lastPushedText=ze(F.blockedSegment.chunks,z,k.responseState,ne.lastPushedText)):typeof z=="number"&&(ne=F.blockedSegment,ne.lastPushedText=ze(F.blockedSegment.chunks,""+z,k.responseState,ne.lastPushedText))}function ct(k,F,z){for(var ne=z.length,Se=0;Se<ne;Se++){var Te=F.treeContext;F.treeContext=Nr(Te,ne,Se);try{_t(k,F,z[Se])}finally{F.treeContext=Te}}}function _t(k,F,z){var ne=F.blockedSegment.formatContext,Se=F.legacyContext,Te=F.context;try{return Ze(k,F,z)}catch(xt){if(ia(),typeof xt=="object"&&xt!==null&&typeof xt.then=="function"){z=xt;var He=F.blockedSegment,nt=U(k,He.chunks.length,null,He.formatContext,He.lastPushedText,!0);He.children.push(nt),He.lastPushedText=!1,k=B(k,F.node,F.blockedBoundary,nt,F.abortSet,F.legacyContext,F.context,F.treeContext).ping,z.then(k,k),F.blockedSegment.formatContext=ne,F.legacyContext=Se,F.context=Te,or(Te)}else throw F.blockedSegment.formatContext=ne,F.legacyContext=Se,F.context=Te,or(Te),xt}}function Rt(k){var F=k.blockedBoundary;k=k.blockedSegment,k.status=3,jr(this,F,k)}function Ln(k,F,z){var ne=k.blockedBoundary;k.blockedSegment.status=3,ne===null?(F.allPendingTasks--,F.status!==2&&(F.status=2,F.destination!==null&&F.destination.close())):(ne.pendingTasks--,ne.forceClientRender||(ne.forceClientRender=!0,k=z===void 0?Error(t(432)):z,ne.errorDigest=F.onError(k),ne.parentFlushed&&F.clientRenderedBoundaries.push(ne)),ne.fallbackAbortableTasks.forEach(function(Se){return Ln(Se,F,z)}),ne.fallbackAbortableTasks.clear(),F.allPendingTasks--,F.allPendingTasks===0&&(ne=F.onAllReady,ne()))}function dn(k,F){if(F.chunks.length===0&&F.children.length===1&&F.children[0].boundary===null){var z=F.children[0];z.id=F.id,z.parentFlushed=!0,z.status===1&&dn(k,z)}else k.completedSegments.push(F)}function jr(k,F,z){if(F===null){if(z.parentFlushed){if(k.completedRootSegment!==null)throw Error(t(389));k.completedRootSegment=z}k.pendingRootTasks--,k.pendingRootTasks===0&&(k.onShellError=O,F=k.onShellReady,F())}else F.pendingTasks--,F.forceClientRender||(F.pendingTasks===0?(z.parentFlushed&&z.status===1&&dn(F,z),F.parentFlushed&&k.completedBoundaries.push(F),F.fallbackAbortableTasks.forEach(Rt,k),F.fallbackAbortableTasks.clear()):z.parentFlushed&&z.status===1&&(dn(F,z),F.completedSegments.length===1&&F.parentFlushed&&k.partialBoundaries.push(F)));k.allPendingTasks--,k.allPendingTasks===0&&(k=k.onAllReady,k())}function Br(k){if(k.status!==2){var F=bt,z=m.current;m.current=er;var ne=f;f=k.responseState;try{var Se=k.pingedTasks,Te;for(Te=0;Te<Se.length;Te++){var He=Se[Te],nt=k,xt=He.blockedSegment;if(xt.status===0){or(He.context);try{Ze(nt,He,He.node),xt.lastPushedText&&xt.textEmbedded&&xt.chunks.push(Ve),He.abortSet.delete(He),xt.status=1,jr(nt,He.blockedBoundary,xt)}catch(Gn){if(ia(),typeof Gn=="object"&&Gn!==null&&typeof Gn.then=="function"){var Nt=He.ping;Gn.then(Nt,Nt)}else{He.abortSet.delete(He),xt.status=4;var Dt=He.blockedBoundary,Ct=Gn,$n=le(nt,Ct);if(Dt===null?oe(nt,Ct):(Dt.pendingTasks--,Dt.forceClientRender||(Dt.forceClientRender=!0,Dt.errorDigest=$n,Dt.parentFlushed&&nt.clientRenderedBoundaries.push(Dt))),nt.allPendingTasks--,nt.allPendingTasks===0){var Cn=nt.onAllReady;Cn()}}}finally{}}}Se.splice(0,Te),k.destination!==null&&vo(k,k.destination)}catch(Gn){le(k,Gn),oe(k,Gn)}finally{f=ne,m.current=z,z===er&&or(F)}}}function Wt(k,F,z){switch(z.parentFlushed=!0,z.status){case 0:var ne=z.id=k.nextSegmentId++;return z.lastPushedText=!1,z.textEmbedded=!1,k=k.responseState,i(F,un),i(F,k.placeholderPrefix),k=c(ne.toString(16)),i(F,k),o(F,Vi);case 1:z.status=2;var Se=!0;ne=z.chunks;var Te=0;z=z.children;for(var He=0;He<z.length;He++){for(Se=z[He];Te<Se.index;Te++)i(F,ne[Te]);Se=$r(k,F,Se)}for(;Te<ne.length-1;Te++)i(F,ne[Te]);return Te<ne.length&&(Se=o(F,ne[Te])),Se;default:throw Error(t(390))}}function $r(k,F,z){var ne=z.boundary;if(ne===null)return Wt(k,F,z);if(ne.parentFlushed=!0,ne.forceClientRender)ne=ne.errorDigest,o(F,Wn),i(F,yr),ne&&(i(F,Xr),i(F,c(x(ne))),i(F,qr)),o(F,Po),Wt(k,F,z);else if(0<ne.pendingTasks){ne.rootSegmentID=k.nextSegmentId++,0<ne.completedSegments.length&&k.partialBoundaries.push(ne);var Se=k.responseState,Te=Se.nextSuspenseID++;Se=d(Se.boundaryPrefix+Te.toString(16)),ne=ne.id=Se,Zn(F,k.responseState,ne),Wt(k,F,z)}else if(ne.byteSize>k.progressiveChunkSize)ne.rootSegmentID=k.nextSegmentId++,k.completedBoundaries.push(ne),Zn(F,k.responseState,ne.id),Wt(k,F,z);else{if(o(F,Hi),z=ne.completedSegments,z.length!==1)throw Error(t(391));$r(k,F,z[0])}return o(F,Pr)}function zt(k,F,z){return ki(F,k.responseState,z.formatContext,z.id),$r(k,F,z),hi(F,z.formatContext)}function on(k,F,z){for(var ne=z.completedSegments,Se=0;Se<ne.length;Se++)go(k,F,z,ne[Se]);if(ne.length=0,k=k.responseState,ne=z.id,z=z.rootSegmentID,i(F,k.startInlineScript),k.sentCompleteBoundaryFunction?i(F,Rr):(k.sentCompleteBoundaryFunction=!0,i(F,wr)),ne===null)throw Error(t(395));return z=c(z.toString(16)),i(F,ne),i(F,Qr),i(F,k.segmentPrefix),i(F,z),o(F,Ir)}function go(k,F,z,ne){if(ne.status===2)return!0;var Se=ne.id;if(Se===-1){if((ne.id=z.rootSegmentID)===-1)throw Error(t(392));return zt(k,F,ne)}return zt(k,F,ne),k=k.responseState,i(F,k.startInlineScript),k.sentCompleteSegmentFunction?i(F,ho):(k.sentCompleteSegmentFunction=!0,i(F,Oi)),i(F,k.segmentPrefix),Se=c(Se.toString(16)),i(F,Se),i(F,Di),i(F,k.placeholderPrefix),i(F,Se),o(F,Jr)}function vo(k,F){n=new Uint8Array(512),r=0;try{var z=k.completedRootSegment;if(z!==null&&k.pendingRootTasks===0){$r(k,F,z),k.completedRootSegment=null;var ne=k.responseState.bootstrapChunks;for(z=0;z<ne.length-1;z++)i(F,ne[z]);z<ne.length&&o(F,ne[z])}var Se=k.clientRenderedBoundaries,Te;for(Te=0;Te<Se.length;Te++){var He=Se[Te];ne=F;var nt=k.responseState,xt=He.id,Nt=He.errorDigest,Dt=He.errorMessage,Ct=He.errorComponentStack;if(i(ne,nt.startInlineScript),nt.sentClientRenderFunction?i(ne,vn):(nt.sentClientRenderFunction=!0,i(ne,zn)),xt===null)throw Error(t(395));i(ne,xt),i(ne,Ar),(Nt||Dt||Ct)&&(i(ne,Mn),i(ne,c(Mr(Nt||"")))),(Dt||Ct)&&(i(ne,Mn),i(ne,c(Mr(Dt||"")))),Ct&&(i(ne,Mn),i(ne,c(Mr(Ct)))),o(ne,xr)}Se.splice(0,Te);var $n=k.completedBoundaries;for(Te=0;Te<$n.length;Te++)on(k,F,$n[Te]);$n.splice(0,Te),s(F),n=new Uint8Array(512),r=0;var Cn=k.partialBoundaries;for(Te=0;Te<Cn.length;Te++){var Gn=Cn[Te];e:{Se=k,He=F;var oa=Gn.completedSegments;for(nt=0;nt<oa.length;nt++)if(!go(Se,He,Gn,oa[nt])){nt++,oa.splice(0,nt);var fs=!1;break e}oa.splice(0,nt),fs=!0}if(!fs){k.destination=null,Te++,Cn.splice(0,Te);return}}Cn.splice(0,Te);var aa=k.completedBoundaries;for(Te=0;Te<aa.length;Te++)on(k,F,aa[Te]);aa.splice(0,Te)}finally{s(F),k.allPendingTasks===0&&k.pingedTasks.length===0&&k.clientRenderedBoundaries.length===0&&k.completedBoundaries.length===0&&F.close()}}function Tr(k,F){try{var z=k.abortableTasks;z.forEach(function(ne){return Ln(ne,k,F)}),z.clear(),k.destination!==null&&vo(k,k.destination)}catch(ne){le(k,ne),oe(k,ne)}}return Vh.renderToReadableStream=function(k,F){return new Promise(function(z,ne){var Se,Te,He=new Promise(function(Dt,Ct){Te=Dt,Se=Ct}),nt=N(k,Xe(F?F.identifierPrefix:void 0,F?F.nonce:void 0,F?F.bootstrapScriptContent:void 0,F?F.bootstrapScripts:void 0,F?F.bootstrapModules:void 0),Ce(F?F.namespaceURI:void 0),F?F.progressiveChunkSize:void 0,F?F.onError:void 0,Te,function(){var Dt=new ReadableStream({type:"bytes",pull:function(Ct){if(nt.status===1)nt.status=2,v(Ct,nt.fatalError);else if(nt.status!==2&&nt.destination===null){nt.destination=Ct;try{vo(nt,Ct)}catch($n){le(nt,$n),oe(nt,$n)}}},cancel:function(){Tr(nt)}},{highWaterMark:0});Dt.allReady=He,z(Dt)},function(Dt){He.catch(function(){}),ne(Dt)},Se);if(F&&F.signal){var xt=F.signal,Nt=function(){Tr(nt,xt.reason),xt.removeEventListener("abort",Nt)};xt.addEventListener("abort",Nt)}Br(nt)})},Vh.version="18.3.1",Vh}var Sc={};/**
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 l1;function E4(){return l1||(l1=1,process.env.NODE_ENV!=="production"&&function(){var e=X,t="18.3.1",n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(h){{for(var b=arguments.length,D=new Array(b>1?b-1:0),M=1;M<b;M++)D[M-1]=arguments[M];o("warn",h,D)}}function i(h){{for(var b=arguments.length,D=new Array(b>1?b-1:0),M=1;M<b;M++)D[M-1]=arguments[M];o("error",h,D)}}function o(h,b,D){{var M=n.ReactDebugCurrentFrame,Y=M.getStackAddendum();Y!==""&&(b+="%s",D=D.concat([Y]));var ie=D.map(function(fe){return String(fe)});ie.unshift("Warning: "+b),Function.prototype.apply.call(console[h],console,ie)}}function s(h){h()}function u(h){}function c(h,b){d(h,b)}function d(h,b){return h.push(b)}function v(h){}function p(h){h.push(null)}function S(h){return h}function T(h){return h}function P(h,b){h.destroy(b)}function I(h){{var b=typeof Symbol=="function"&&Symbol.toStringTag,D=b&&h[Symbol.toStringTag]||h.constructor.name||"Object";return D}}function L(h){try{return R(h),!1}catch{return!0}}function R(h){return""+h}function H(h,b){if(L(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)),R(h)}function W(h,b){if(L(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)),R(h)}function te(h){if(L(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)),R(h)}var J=Object.prototype.hasOwnProperty,de=0,x=1,ye=2,ue=3,Je=4,Ne=5,$e=6,Ye=":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",qe=Ye+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",pe=new RegExp("^["+Ye+"]["+qe+"]*$"),Oe={},je={};function Xe(h){return J.call(je,h)?!0:J.call(Oe,h)?!1:pe.test(h)?(je[h]=!0,!0):(Oe[h]=!0,i("Invalid attribute name: `%s`",h),!1)}function at(h,b,D,M){if(D!==null&&D.type===de)return!1;switch(typeof b){case"function":case"symbol":return!0;case"boolean":{if(M)return!1;if(D!==null)return!D.acceptsBooleans;var Y=h.toLowerCase().slice(0,5);return Y!=="data-"&&Y!=="aria-"}default:return!1}}function Ce(h){return Ve.hasOwnProperty(h)?Ve[h]:null}function Pe(h,b,D,M,Y,ie,fe){this.acceptsBooleans=b===ye||b===ue||b===Je,this.attributeName=M,this.attributeNamespace=Y,this.mustUseProperty=D,this.propertyName=h,this.type=b,this.sanitizeURL=ie,this.removeEmptyString=fe}var Ve={},ze=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];ze.forEach(function(h){Ve[h]=new Pe(h,de,!1,h,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(h){var b=h[0],D=h[1];Ve[b]=new Pe(b,x,!1,D,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(h){Ve[h]=new Pe(h,ye,!1,h.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(h){Ve[h]=new Pe(h,ye,!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){Ve[h]=new Pe(h,ue,!1,h.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(h){Ve[h]=new Pe(h,ue,!0,h,null,!1,!1)}),["capture","download"].forEach(function(h){Ve[h]=new Pe(h,Je,!1,h,null,!1,!1)}),["cols","rows","size","span"].forEach(function(h){Ve[h]=new Pe(h,$e,!1,h,null,!1,!1)}),["rowSpan","start"].forEach(function(h){Ve[h]=new Pe(h,Ne,!1,h.toLowerCase(),null,!1,!1)});var Re=/[\-\:]([a-z])/g,Fe=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(Re,Fe);Ve[b]=new Pe(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(Re,Fe);Ve[b]=new Pe(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(Re,Fe);Ve[b]=new Pe(b,x,!1,h,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(h){Ve[h]=new Pe(h,x,!1,h.toLowerCase(),null,!1,!1)});var Ke="xlinkHref";Ve[Ke]=new Pe("xlinkHref",x,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(h){Ve[h]=new Pe(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 mt(h,b){return h+b.charAt(0).toUpperCase()+b.substring(1)}var wt=["Webkit","ms","Moz","O"];Object.keys(lt).forEach(function(h){wt.forEach(function(b){lt[mt(b,h)]=lt[h]})});var vt={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Et(h,b){vt[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 ot(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 $t={"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},Ht={},Xn=new RegExp("^(aria)-["+qe+"]*$"),mr=new RegExp("^(aria)[A-Z]["+qe+"]*$");function Kn(h,b){{if(J.call(Ht,b)&&Ht[b])return!0;if(mr.test(b)){var D="aria-"+b.slice(4).toLowerCase(),M=$t.hasOwnProperty(D)?D:null;if(M==null)return i("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",b),Ht[b]=!0,!0;if(b!==M)return i("Invalid ARIA attribute `%s`. Did you mean `%s`?",b,M),Ht[b]=!0,!0}if(Xn.test(b)){var Y=b.toLowerCase(),ie=$t.hasOwnProperty(Y)?Y:null;if(ie==null)return Ht[b]=!0,!1;if(b!==ie)return i("Unknown ARIA attribute `%s`. Did you mean `%s`?",b,ie),Ht[b]=!0,!0}}return!0}function _n(h,b){{var D=[];for(var M in b){var Y=Kn(h,M);Y||D.push(M)}var ie=D.map(function(fe){return"`"+fe+"`"}).join(", ");D.length===1?i("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",ie,h):D.length>1&&i("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",ie,h)}}function $i(h,b){ot(h,b)||_n(h,b)}var Dr=!1;function rr(h,b){{if(h!=="input"&&h!=="textarea"&&h!=="select")return;b!=null&&b.value===null&&!Dr&&(Dr=!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 cn={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"},hn=function(){};{var pn={},gt=/^on./,In=/^on[^A-Z]/,li=new RegExp("^(aria)-["+qe+"]*$"),un=new RegExp("^(aria)[A-Z]["+qe+"]*$");hn=function(h,b,D,M){if(J.call(pn,b)&&pn[b])return!0;var Y=b.toLowerCase();if(Y==="onfocusin"||Y==="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."),pn[b]=!0,!0;if(M!=null){var ie=M.registrationNameDependencies,fe=M.possibleRegistrationNames;if(ie.hasOwnProperty(b))return!0;var Ie=fe.hasOwnProperty(Y)?fe[Y]:null;if(Ie!=null)return i("Invalid event handler property `%s`. Did you mean `%s`?",b,Ie),pn[b]=!0,!0;if(gt.test(b))return i("Unknown event handler property `%s`. It will be ignored.",b),pn[b]=!0,!0}else if(gt.test(b))return In.test(b)&&i("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",b),pn[b]=!0,!0;if(li.test(b)||un.test(b))return!0;if(Y==="innerhtml")return i("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),pn[b]=!0,!0;if(Y==="aria")return i("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),pn[b]=!0,!0;if(Y==="is"&&D!==null&&D!==void 0&&typeof D!="string")return i("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof D),pn[b]=!0,!0;if(typeof D=="number"&&isNaN(D))return i("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",b),pn[b]=!0,!0;var et=Ce(b),pt=et!==null&&et.type===de;if(cn.hasOwnProperty(Y)){var St=cn[Y];if(St!==b)return i("Invalid DOM property `%s`. Did you mean `%s`?",b,St),pn[b]=!0,!0}else if(!pt&&b!==Y)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,Y),pn[b]=!0,!0;return typeof D=="boolean"&&at(b,D,et,!1)?(D?i('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',D,b,b,D,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.',D,b,b,D,b,b,b),pn[b]=!0,!0):pt?!0:at(b,D,et,!1)?(pn[b]=!0,!1):((D==="false"||D==="true")&&et!==null&&et.type===ue&&(i("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",D,b,D==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',b,D),pn[b]=!0),!0)}}var Vi=function(h,b,D){{var M=[];for(var Y in b){var ie=hn(h,Y,b[Y],D);ie||M.push(Y)}var fe=M.map(function(Ie){return"`"+Ie+"`"}).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 ",fe,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 ",fe,h)}};function Hi(h,b,D){ot(h,b)||Vi(h,b,D)}var Ui=function(){};{var _r=/^(?:webkit|moz|o)[A-Z]/,Wn=/^-ms-/,Pr=/-(.)/g,yr=/;\s*$/,qr={},Xr={},Po=!1,Zn=!1,Kr=function(h){return h.replace(Pr,function(b,D){return D.toUpperCase()})},ir=function(h){qr.hasOwnProperty(h)&&qr[h]||(qr[h]=!0,i("Unsupported style property %s. Did you mean %s?",h,Kr(h.replace(Wn,"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(yr,"")))},Wi=function(h,b){Po||(Po=!0,i("`NaN` is an invalid value for the `%s` css style property.",h))},An=function(h,b){Zn||(Zn=!0,i("`Infinity` is an invalid value for the `%s` css style property.",h))};Ui=function(h,b){h.indexOf("-")>-1?ir(h):_r.test(h)?Zt(h):yr.test(b)&&ui(h,b),typeof b=="number"&&(isNaN(b)?Wi(h,b):isFinite(b)||An(h,b))}}var gn=Ui,ci=/["'&<>]/;function fi(h){te(h);var b=""+h,D=ci.exec(b);if(!D)return b;var M,Y="",ie,fe=0;for(ie=D.index;ie<b.length;ie++){switch(b.charCodeAt(ie)){case 34:M="&quot;";break;case 38:M="&amp;";break;case 39:M="&#x27;";break;case 60:M="&lt;";break;case 62:M="&gt;";break;default:continue}fe!==ie&&(Y+=b.substring(fe,ie)),fe=ie+1,Y+=M}return fe!==ie?Y+b.substring(fe,ie):Y}function mn(h){return typeof h=="boolean"||typeof h=="number"?""+h:fi(h)}var uo=/([A-Z])/g,br=/^ms-/;function di(h){return h.replace(uo,"-$1").toLowerCase().replace(br,"-ms-")}var fn=/^[\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,Ei=!1;function Ia(h){!Ei&&fn.test(h)&&(Ei=!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 Aa=Array.isArray;function Zr(h){return Aa(h)}var co="<script>",fo="<\/script>",Ro='<script src="',ki='<script type="module" src="',hi='" async=""><\/script>';function Oi(h){return te(h),(""+h).replace(ho,Di)}var ho=/(<\/|<)(s)(cript)/gi,Di=function(h,b,D,M){return""+b+(D==="s"?"\\u0073":"\\u0053")+M};function Jr(h,b,D,M,Y){var ie=h===void 0?"":h,fe=b===void 0?co:'<script nonce="'+mn(b)+'">',Ie=[];if(D!==void 0&&Ie.push(fe,Oi(D),fo),M!==void 0)for(var et=0;et<M.length;et++)Ie.push(Ro,mn(M[et]),hi);if(Y!==void 0)for(var pt=0;pt<Y.length;pt++)Ie.push(ki,mn(Y[pt]),hi);return{bootstrapChunks:Ie,startInlineScript:fe,placeholderPrefix:ie+"P:",segmentPrefix:ie+"S:",boundaryPrefix:ie+"B:",idPrefix:ie,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var wr=0,Rr=1,Qr=2,Ir=3,zn=4,vn=5,Ar=6,xr=7;function Mn(h,b){return{insertionMode:h,selectedValue:b}}function pi(h,b,D){switch(b){case"select":return Mn(Rr,D.value!=null?D.value:D.defaultValue);case"svg":return Mn(Qr,null);case"math":return Mn(Ir,null);case"foreignObject":return Mn(Rr,null);case"table":return Mn(zn,null);case"thead":case"tbody":case"tfoot":return Mn(vn,null);case"colgroup":return Mn(xr,null);case"tr":return Mn(Ar,null)}return h.insertionMode>=zn||h.insertionMode===wr?Mn(Rr,null):h}var Mr=null;function ei(h){var b=h.nextSuspenseID++;return h.boundaryPrefix+b.toString(16)}function Jn(h,b,D){var M=h.idPrefix,Y=":"+M+"R"+b;return D>0&&(Y+="H"+D.toString(32)),Y+":"}function ti(h){return mn(h)}var ni="<!-- -->";function zi(h,b,D,M){return b===""?M:(M&&h.push(ni),h.push(ti(b)),!0)}function Rn(h,b,D,M){D&&M&&h.push(ni)}var Sr=new Map;function cr(h){var b=Sr.get(h);if(b!==void 0)return b;var D=mn(di(h));return Sr.set(h,D),D}var Io=' style="',Yi=":",Lr=";";function E(h,b,D){if(typeof D!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var M=!0;for(var Y in D)if(J.call(D,Y)){var ie=D[Y];if(!(ie==null||typeof ie=="boolean"||ie==="")){var fe=void 0,Ie=void 0,et=Y.indexOf("--")===0;et?(fe=mn(Y),W(ie,Y),Ie=mn((""+ie).trim())):(gn(Y,ie),fe=cr(Y),typeof ie=="number"?ie!==0&&!J.call(lt,Y)?Ie=ie+"px":Ie=""+ie:(W(ie,Y),Ie=mn((""+ie).trim()))),M?(M=!1,h.push(Io,fe,Yi,Ie)):h.push(Lr,fe,Yi,Ie)}}M||h.push(re)}var j=" ",q='="',re='"',De='=""';function be(h,b,D,M){switch(D){case"style":{E(h,b,M);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(D.length>2&&(D[0]==="o"||D[0]==="O")&&(D[1]==="n"||D[1]==="N"))){var Y=Ce(D);if(Y!==null){switch(typeof M){case"function":case"symbol":return;case"boolean":if(!Y.acceptsBooleans)return}var ie=Y.attributeName,fe=ie;switch(Y.type){case ue:M&&h.push(j,fe,De);return;case Je:M===!0?h.push(j,fe,De):M===!1||h.push(j,fe,q,mn(M),re);return;case Ne:isNaN(M)||h.push(j,fe,q,mn(M),re);break;case $e:!isNaN(M)&&M>=1&&h.push(j,fe,q,mn(M),re);break;default:Y.sanitizeURL&&(H(M,ie),M=""+M,Ia(M)),h.push(j,fe,q,mn(M),re)}}else if(Xe(D)){switch(typeof M){case"function":case"symbol":return;case"boolean":{var Ie=D.toLowerCase().slice(0,5);if(Ie!=="data-"&&Ie!=="aria-")return}}h.push(j,D,q,mn(M),re)}}}var Me=">",rt="/>";function yt(h,b,D){if(b!=null){if(D!=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&&(te(M),h.push(""+M))}}var Tt=!1,bt=!1,Ut=!1,Qn=!1,Yn=!1,Pn=!1,Fr=!1;function or(h,b){{var D=h[b];if(D!=null){var M=Zr(D);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 Gi(h,b,D){Et("select",b),or(b,"value"),or(b,"defaultValue"),b.value!==void 0&&b.defaultValue!==void 0&&!Ut&&(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"),Ut=!0),h.push(Vt("select"));var M=null,Y=null;for(var ie in b)if(J.call(b,ie)){var fe=b[ie];if(fe==null)continue;switch(ie){case"children":M=fe;break;case"dangerouslySetInnerHTML":Y=fe;break;case"defaultValue":case"value":break;default:be(h,D,ie,fe);break}}return h.push(Me),yt(h,Y,M),M}function gi(h){var b="";return e.Children.forEach(h,function(D){D!=null&&(b+=D,!Yn&&typeof D!="string"&&typeof D!="number"&&(Yn=!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 qi=' selected=""';function Nr(h,b,D,M){var Y=M.selectedValue;h.push(Vt("option"));var ie=null,fe=null,Ie=null,et=null;for(var pt in b)if(J.call(b,pt)){var St=b[pt];if(St==null)continue;switch(pt){case"children":ie=St;break;case"selected":Ie=St,Fr||(i("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Fr=!0);break;case"dangerouslySetInnerHTML":et=St;break;case"value":fe=St;default:be(h,D,pt,St);break}}if(Y!=null){var Mt;if(fe!==null?(H(fe,"value"),Mt=""+fe):(et!==null&&(Pn||(Pn=!0,i("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),Mt=gi(ie)),Zr(Y))for(var bn=0;bn<Y.length;bn++){H(Y[bn],"value");var On=""+Y[bn];if(On===Mt){h.push(qi);break}}else H(Y,"select.value"),""+Y===Mt&&h.push(qi)}else Ie&&h.push(qi);return h.push(Me),yt(h,et,ie),ie}function Ao(h,b,D){Et("input",b),b.checked!==void 0&&b.defaultChecked!==void 0&&!bt&&(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),bt=!0),b.value!==void 0&&b.defaultValue!==void 0&&!Tt&&(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),Tt=!0),h.push(Vt("input"));var M=null,Y=null,ie=null,fe=null;for(var Ie in b)if(J.call(b,Ie)){var et=b[Ie];if(et==null)continue;switch(Ie){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":fe=et;break;case"defaultValue":Y=et;break;case"checked":ie=et;break;case"value":M=et;break;default:be(h,D,Ie,et);break}}return ie!==null?be(h,D,"checked",ie):fe!==null&&be(h,D,"checked",fe),M!==null?be(h,D,"value",M):Y!==null&&be(h,D,"value",Y),h.push(rt),null}function Ys(h,b,D){Et("textarea",b),b.value!==void 0&&b.defaultValue!==void 0&&!Qn&&(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"),Qn=!0),h.push(Vt("textarea"));var M=null,Y=null,ie=null;for(var fe in b)if(J.call(b,fe)){var Ie=b[fe];if(Ie==null)continue;switch(fe){case"children":ie=Ie;break;case"value":M=Ie;break;case"defaultValue":Y=Ie;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:be(h,D,fe,Ie);break}}if(M===null&&Y!==null&&(M=Y),h.push(Me),ie!=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(ie)){if(ie.length>1)throw new Error("<textarea> can only have at most one child.");te(ie[0]),M=""+ie[0]}te(ie),M=""+ie}return typeof M=="string"&&M[0]===`
70
+ `&&h.push(Mo),M!==null&&(H(M,"value"),h.push(ti(""+M))),null}function Ma(h,b,D,M){h.push(Vt(D));for(var Y in b)if(J.call(b,Y)){var ie=b[Y];if(ie==null)continue;switch(Y){case"children":case"dangerouslySetInnerHTML":throw new Error(D+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:be(h,M,Y,ie);break}}return h.push(rt),null}function La(h,b,D){h.push(Vt("menuitem"));for(var M in b)if(J.call(b,M)){var Y=b[M];if(Y==null)continue;switch(M){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:be(h,D,M,Y);break}}return h.push(Me),null}function Fa(h,b,D){h.push(Vt("title"));var M=null;for(var Y in b)if(J.call(b,Y)){var ie=b[Y];if(ie==null)continue;switch(Y){case"children":M=ie;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:be(h,D,Y,ie);break}}h.push(Me);{var fe=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"):fe!=null&&fe.$$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"):fe!=null&&typeof fe!="string"&&typeof fe!="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 Na(h,b,D,M){h.push(Vt(D));var Y=null,ie=null;for(var fe in b)if(J.call(b,fe)){var Ie=b[fe];if(Ie==null)continue;switch(fe){case"children":Y=Ie;break;case"dangerouslySetInnerHTML":ie=Ie;break;default:be(h,M,fe,Ie);break}}return h.push(Me),yt(h,ie,Y),typeof Y=="string"?(h.push(ti(Y)),null):Y}function vi(h,b,D,M){h.push(Vt(D));var Y=null,ie=null;for(var fe in b)if(J.call(b,fe)){var Ie=b[fe];if(Ie==null)continue;switch(fe){case"children":Y=Ie;break;case"dangerouslySetInnerHTML":ie=Ie;break;case"style":E(h,M,Ie);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:Xe(fe)&&typeof Ie!="function"&&typeof Ie!="symbol"&&h.push(j,fe,q,mn(Ie),re);break}}return h.push(Me),yt(h,ie,Y),Y}var Mo=`
71
+ `;function ra(h,b,D,M){h.push(Vt(D));var Y=null,ie=null;for(var fe in b)if(J.call(b,fe)){var Ie=b[fe];if(Ie==null)continue;switch(fe){case"children":Y=Ie;break;case"dangerouslySetInnerHTML":ie=Ie;break;default:be(h,M,fe,Ie);break}}if(h.push(Me),ie!=null){if(Y!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof ie!="object"||!("__html"in ie))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 et=ie.__html;et!=null&&(typeof et=="string"&&et.length>0&&et[0]===`
72
+ `?h.push(Mo,et):(te(et),h.push(""+et)))}return typeof Y=="string"&&Y[0]===`
73
+ `&&h.push(Mo),Y}var sn=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Qt=new Map;function Vt(h){var b=Qt.get(h);if(b===void 0){if(!sn.test(h))throw new Error("Invalid tag: "+h);b="<"+h,Qt.set(h,b)}return b}var _i="<!DOCTYPE html>";function ri(h,b,D,M,Y){switch($i(b,D),rr(b,D),Hi(b,D,null),!D.suppressContentEditableWarning&&D.contentEditable&&D.children!=null&&i("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),Y.insertionMode!==Qr&&Y.insertionMode!==Ir&&b.indexOf("-")===-1&&typeof D.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 Gi(h,D,M);case"option":return Nr(h,D,M,Y);case"textarea":return Ys(h,D,M);case"input":return Ao(h,D,M);case"menuitem":return La(h,D,M);case"title":return Fa(h,D,M);case"listing":case"pre":return ra(h,D,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 Ma(h,D,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 Na(h,D,b,M);case"html":return Y.insertionMode===wr&&h.push(_i),Na(h,D,b,M);default:return b.indexOf("-")===-1&&typeof D.is!="string"?Na(h,D,b,M):vi(h,D,b,M)}}var Lo="</",mi=">";function fr(h,b,D){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(Lo,b,mi)}}function ja(h,b){for(var D=b.bootstrapChunks,M=0;M<D.length-1;M++)c(h,D[M]);return M<D.length?d(h,D[M]):!0}var ia='<template id="',us='"></template>';function yn(h,b,D){c(h,ia),c(h,b.placeholderPrefix);var M=D.toString(16);return c(h,M),d(h,us)}var Fo="<!--$-->",yi='<!--$?--><template id="',cs='"></template>',po="<!--$!-->",er="<!--/$-->",f="<template",m='"',C=' data-dgst="',O=' data-msg="',N=' data-stck="',B="></template>";function U(h,b){return d(h,Fo)}function le(h,b,D){if(c(h,yi),D===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return c(h,D),d(h,cs)}function oe(h,b,D,M,Y){var ie;return ie=d(h,po),c(h,f),D&&(c(h,C),c(h,mn(D)),c(h,m)),M&&(c(h,O),c(h,mn(M)),c(h,m)),Y&&(c(h,N),c(h,mn(Y)),c(h,m)),ie=d(h,B),ie}function we(h,b){return d(h,er)}function Le(h,b){return d(h,er)}function Be(h,b){return d(h,er)}var Ee='<div hidden id="',Ze='">',ct="</div>",_t='<svg aria-hidden="true" style="display:none" id="',Rt='">',Ln="</svg>",dn='<math aria-hidden="true" style="display:none" id="',jr='">',Br="</math>",Wt='<table hidden id="',$r='">',zt="</table>",on='<table hidden><tbody id="',go='">',vo="</tbody></table>",Tr='<table hidden><tr id="',k='">',F="</tr></table>",z='<table hidden><colgroup id="',ne='">',Se="</colgroup></table>";function Te(h,b,D,M){switch(D.insertionMode){case wr:case Rr:return c(h,Ee),c(h,b.segmentPrefix),c(h,M.toString(16)),d(h,Ze);case Qr:return c(h,_t),c(h,b.segmentPrefix),c(h,M.toString(16)),d(h,Rt);case Ir:return c(h,dn),c(h,b.segmentPrefix),c(h,M.toString(16)),d(h,jr);case zn:return c(h,Wt),c(h,b.segmentPrefix),c(h,M.toString(16)),d(h,$r);case vn:return c(h,on),c(h,b.segmentPrefix),c(h,M.toString(16)),d(h,go);case Ar:return c(h,Tr),c(h,b.segmentPrefix),c(h,M.toString(16)),d(h,k);case xr:return c(h,z),c(h,b.segmentPrefix),c(h,M.toString(16)),d(h,ne);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}function He(h,b){switch(b.insertionMode){case wr:case Rr:return d(h,ct);case Qr:return d(h,Ln);case Ir:return d(h,Br);case zn:return d(h,zt);case vn:return d(h,vo);case Ar:return d(h,F);case xr:return d(h,Se);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var nt="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)}",xt='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=nt+';$RS("',Ct='$RS("',$n='","',Cn='")<\/script>';function Gn(h,b,D){c(h,b.startInlineScript),b.sentCompleteSegmentFunction?c(h,Ct):(b.sentCompleteSegmentFunction=!0,c(h,Dt)),c(h,b.segmentPrefix);var M=D.toString(16);return c(h,M),c(h,$n),c(h,b.placeholderPrefix),c(h,M),d(h,Cn)}var oa=xt+';$RC("',fs='$RC("',aa='","',ii='")<\/script>';function Gs(h,b,D,M){if(c(h,b.startInlineScript),b.sentCompleteBoundaryFunction?c(h,fs):(b.sentCompleteBoundaryFunction=!0,c(h,oa)),D===null)throw new Error("An ID must have been assigned before we can complete the boundary.");var Y=M.toString(16);return c(h,D),c(h,aa),c(h,b.segmentPrefix),c(h,Y),d(h,ii)}var mo=Nt+';$RX("',ds='$RX("',sa='"',bi=")<\/script>",Xi=",";function qs(h,b,D,M,Y,ie){if(c(h,b.startInlineScript),b.sentClientRenderFunction?c(h,ds):(b.sentClientRenderFunction=!0,c(h,mo)),D===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return c(h,D),c(h,sa),(M||Y||ie)&&(c(h,Xi),c(h,la(M||""))),(Y||ie)&&(c(h,Xi),c(h,la(Y||""))),ie&&(c(h,Xi),c(h,la(ie))),d(h,bi)}var Nu=/[<\u2028\u2029]/g;function la(h){var b=JSON.stringify(h);return b.replace(Nu,function(D){switch(D){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function yo(h,b){var D=Jr(b,void 0);return{bootstrapChunks:D.bootstrapChunks,startInlineScript:D.startInlineScript,placeholderPrefix:D.placeholderPrefix,segmentPrefix:D.segmentPrefix,boundaryPrefix:D.boundaryPrefix,idPrefix:D.idPrefix,nextSuspenseID:D.nextSuspenseID,sentCompleteSegmentFunction:D.sentCompleteSegmentFunction,sentCompleteBoundaryFunction:D.sentCompleteBoundaryFunction,sentClientRenderFunction:D.sentClientRenderFunction,generateStaticMarkup:h}}function dr(){return{insertionMode:Rr,selectedValue:null}}function Xs(h,b,D,M){return D.generateStaticMarkup?(h.push(mn(b)),!1):zi(h,b,D,M)}function hs(h,b,D,M){if(!b.generateStaticMarkup)return Rn(h,b,D,M)}function ps(h,b){return b.generateStaticMarkup?!0:U(h)}function ee(h,b,D,M,Y){return b.generateStaticMarkup?!0:oe(h,b,D,M,Y)}function ve(h,b){return b.generateStaticMarkup?!0:we(h)}function _e(h,b){return b.generateStaticMarkup?!0:Be(h)}var ke=Object.assign,Q=Symbol.for("react.element"),he=Symbol.for("react.portal"),ce=Symbol.for("react.fragment"),Ue=Symbol.for("react.strict_mode"),Ge=Symbol.for("react.profiler"),ft=Symbol.for("react.provider"),dt=Symbol.for("react.context"),ut=Symbol.for("react.forward_ref"),It=Symbol.for("react.suspense"),kt=Symbol.for("react.suspense_list"),Yt=Symbol.for("react.memo"),Fn=Symbol.for("react.lazy"),ar=Symbol.for("react.scope"),qn=Symbol.for("react.debug_trace_mode"),Vr=Symbol.for("react.legacy_hidden"),Ki=Symbol.for("react.default_value"),At=Symbol.iterator,Vc="@@iterator";function En(h){if(h===null||typeof h!="object")return null;var b=At&&h[At]||h[Vc];return typeof b=="function"?b:null}function ua(h,b,D){var M=h.displayName;if(M)return M;var Y=b.displayName||b.name||"";return Y!==""?D+"("+Y+")":D}function ju(h){return h.displayName||"Context"}function kn(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 ce:return"Fragment";case he:return"Portal";case Ge:return"Profiler";case Ue:return"StrictMode";case It:return"Suspense";case kt:return"SuspenseList"}if(typeof h=="object")switch(h.$$typeof){case dt:var b=h;return ju(b)+".Consumer";case ft:var D=h;return ju(D._context)+".Provider";case ut:return ua(h,h.render,"ForwardRef");case Yt:var M=h.displayName||null;return M!==null?M:kn(h.type)||"Memo";case Fn:{var Y=h,ie=Y._payload,fe=Y._init;try{return kn(fe(ie))}catch{return null}}}return null}var gs=0,vs,bo,ms,$l,ys,Bu,$u;function Ba(){}Ba.__reactDisabledLog=!0;function Vl(){{if(gs===0){vs=console.log,bo=console.info,ms=console.warn,$l=console.error,ys=console.group,Bu=console.groupCollapsed,$u=console.groupEnd;var h={configurable:!0,enumerable:!0,value:Ba,writable:!0};Object.defineProperties(console,{info:h,log:h,warn:h,error:h,group:h,groupCollapsed:h,groupEnd:h})}gs++}}function No(){{if(gs--,gs===0){var h={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ke({},h,{value:vs}),info:ke({},h,{value:bo}),warn:ke({},h,{value:ms}),error:ke({},h,{value:$l}),group:ke({},h,{value:ys}),groupCollapsed:ke({},h,{value:Bu}),groupEnd:ke({},h,{value:$u})})}gs<0&&i("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Zi=n.ReactCurrentDispatcher,jo;function Ks(h,b,D){{if(jo===void 0)try{throw Error()}catch(Y){var M=Y.stack.trim().match(/\n( *(at )?)/);jo=M&&M[1]||""}return`
74
+ `+jo+h}}var Zs=!1,Hl;{var Js=typeof WeakMap=="function"?WeakMap:Map;Hl=new Js}function bs(h,b){if(!h||Zs)return"";{var D=Hl.get(h);if(D!==void 0)return D}var M;Zs=!0;var Y=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ie;ie=Zi.current,Zi.current=null,Vl();try{if(b){var fe=function(){throw Error()};if(Object.defineProperty(fe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(fe,[])}catch(Si){M=Si}Reflect.construct(h,[],fe)}else{try{fe.call()}catch(Si){M=Si}h.call(fe.prototype)}}else{try{throw Error()}catch(Si){M=Si}h()}}catch(Si){if(Si&&M&&typeof Si.stack=="string"){for(var Ie=Si.stack.split(`
75
+ `),et=M.stack.split(`
76
+ `),pt=Ie.length-1,St=et.length-1;pt>=1&&St>=0&&Ie[pt]!==et[St];)St--;for(;pt>=1&&St>=0;pt--,St--)if(Ie[pt]!==et[St]){if(pt!==1||St!==1)do if(pt--,St--,St<0||Ie[pt]!==et[St]){var Mt=`
77
+ `+Ie[pt].replace(" at new "," at ");return h.displayName&&Mt.includes("<anonymous>")&&(Mt=Mt.replace("<anonymous>",h.displayName)),typeof h=="function"&&Hl.set(h,Mt),Mt}while(pt>=1&&St>=0);break}}}finally{Zs=!1,Zi.current=ie,No(),Error.prepareStackTrace=Y}var bn=h?h.displayName||h.name:"",On=bn?Ks(bn):"";return typeof h=="function"&&Hl.set(h,On),On}function Qs(h,b,D){return bs(h,!0)}function Vu(h,b,D){return bs(h,!1)}function Hu(h){var b=h.prototype;return!!(b&&b.isReactComponent)}function ws(h,b,D){if(h==null)return"";if(typeof h=="function")return bs(h,Hu(h));if(typeof h=="string")return Ks(h);switch(h){case It:return Ks("Suspense");case kt:return Ks("SuspenseList")}if(typeof h=="object")switch(h.$$typeof){case ut:return Vu(h.render);case Yt:return ws(h.type,b,D);case Fn:{var M=h,Y=M._payload,ie=M._init;try{return ws(ie(Y),b,D)}catch{}}}return""}var Uu={},Nn=n.ReactDebugCurrentFrame;function jn(h){if(h){var b=h._owner,D=ws(h.type,h._source,b?b.type:null);Nn.setExtraStackFrame(D)}else Nn.setExtraStackFrame(null)}function Wu(h,b,D,M,Y){{var ie=Function.call.bind(J);for(var fe in h)if(ie(h,fe)){var Ie=void 0;try{if(typeof h[fe]!="function"){var et=Error((M||"React class")+": "+D+" type `"+fe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof h[fe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw et.name="Invariant Violation",et}Ie=h[fe](b,fe,M,D,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(pt){Ie=pt}Ie&&!(Ie instanceof Error)&&(jn(Y),i("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",M||"React class",D,fe,typeof Ie),jn(null)),Ie instanceof Error&&!(Ie.message in Uu)&&(Uu[Ie.message]=!0,jn(Y),i("Failed %s type: %s",D,Ie.message),jn(null))}}}var zu;zu={};var Bo={};Object.freeze(Bo);function Hc(h,b){{var D=h.contextTypes;if(!D)return Bo;var M={};for(var Y in D)M[Y]=b[Y];{var ie=kn(h)||"Unknown";Wu(D,M,"context",ie)}return M}}function $o(h,b,D,M){{if(typeof h.getChildContext!="function"){{var Y=kn(b)||"Unknown";zu[Y]||(zu[Y]=!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.",Y,Y))}return D}var ie=h.getChildContext();for(var fe in ie)if(!(fe in M))throw new Error((kn(b)||"Unknown")+'.getChildContext(): key "'+fe+'" is not defined in childContextTypes.');{var Ie=kn(b)||"Unknown";Wu(M,ie,"child context",Ie)}return ke({},D,ie)}}var Ji;Ji={};var el=null,Hr=null;function ca(h){h.context._currentValue2=h.parentValue}function fa(h){h.context._currentValue2=h.value}function da(h,b){if(h!==b){ca(h);var D=h.parent,M=b.parent;if(D===null){if(M!==null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.")}else{if(M===null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.");da(D,M)}fa(b)}}function ha(h){ca(h);var b=h.parent;b!==null&&ha(b)}function tl(h){var b=h.parent;b!==null&&tl(b),fa(h)}function Uc(h,b){ca(h);var D=h.parent;if(D===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");D.depth===b.depth?da(D,b):Uc(D,b)}function Wc(h,b){var D=b.parent;if(D===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");h.depth===D.depth?da(h,D):Wc(h,D),fa(b)}function Ul(h){var b=Hr,D=h;b!==D&&(b===null?tl(D):D===null?ha(b):b.depth===D.depth?da(b,D):b.depth>D.depth?Uc(b,D):Wc(b,D),Hr=D)}function nl(h,b){var D;D=h._currentValue2,h._currentValue2=b,h._currentRenderer2!==void 0&&h._currentRenderer2!==null&&h._currentRenderer2!==Ji&&i("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),h._currentRenderer2=Ji;var M=Hr,Y={parent:M,depth:M===null?0:M.depth+1,context:h,parentValue:D,value:b};return Hr=Y,Y}function xs(h){var b=Hr;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 D=b.parentValue;D===Ki?b.context._currentValue2=b.context._defaultValue:b.context._currentValue2=D,h._currentRenderer2!==void 0&&h._currentRenderer2!==null&&h._currentRenderer2!==Ji&&i("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),h._currentRenderer2=Ji}return Hr=b.parent}function rl(){return Hr}function $a(h){var b=h._currentValue2;return b}function G(h){return h._reactInternals}function pa(h,b){h._reactInternals=b}var Va={},Ur={},qt,Wl,Ss,il,wo,Ts,zl,Yl,Gl;{qt=new Set,Wl=new Set,Ss=new Set,zl=new Set,il=new Set,Yl=new Set,Gl=new Set;var zc=new Set;Ts=function(h,b){if(!(h===null||typeof h=="function")){var D=b+"_"+h;zc.has(D)||(zc.add(D),i("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",b,h))}},wo=function(h,b){if(b===void 0){var D=kn(h)||"Component";il.has(D)||(il.add(D),i("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",D))}}}function xo(h,b){{var D=h.constructor,M=D&&kn(D)||"ReactClass",Y=M+"."+b;if(Va[Y])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),Va[Y]=!0}}var Yc={isMounted:function(h){return!1},enqueueSetState:function(h,b,D){var M=G(h);M.queue===null?xo(h,"setState"):(M.queue.push(b),D!=null&&Ts(D,"setState"))},enqueueReplaceState:function(h,b,D){var M=G(h);M.replace=!0,M.queue=[b],D!=null&&Ts(D,"setState")},enqueueForceUpdate:function(h,b){var D=G(h);D.queue===null?xo(h,"forceUpdate"):b!=null&&Ts(b,"setState")}};function Vf(h,b,D,M,Y){var ie=D(Y,M);wo(b,ie);var fe=ie==null?M:ke({},M,ie);return fe}function Hf(h,b,D){var M=Bo,Y=h.contextType;if("contextType"in h){var ie=Y===null||Y!==void 0&&Y.$$typeof===dt&&Y._context===void 0;if(!ie&&!Gl.has(h)){Gl.add(h);var fe="";Y===void 0?fe=" 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 Y!="object"?fe=" However, it is set to a "+typeof Y+".":Y.$$typeof===ft?fe=" Did you accidentally pass the Context.Provider instead?":Y._context!==void 0?fe=" Did you accidentally pass the Context.Consumer instead?":fe=" However, it is set to an object with keys {"+Object.keys(Y).join(", ")+"}.",i("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",kn(h)||"Component",fe)}}typeof Y=="object"&&Y!==null?M=$a(Y):M=D;var Ie=new h(b,M);{if(typeof h.getDerivedStateFromProps=="function"&&(Ie.state===null||Ie.state===void 0)){var et=kn(h)||"Component";qt.has(et)||(qt.add(et),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.",et,Ie.state===null?"null":"undefined",et))}if(typeof h.getDerivedStateFromProps=="function"||typeof Ie.getSnapshotBeforeUpdate=="function"){var pt=null,St=null,Mt=null;if(typeof Ie.componentWillMount=="function"&&Ie.componentWillMount.__suppressDeprecationWarning!==!0?pt="componentWillMount":typeof Ie.UNSAFE_componentWillMount=="function"&&(pt="UNSAFE_componentWillMount"),typeof Ie.componentWillReceiveProps=="function"&&Ie.componentWillReceiveProps.__suppressDeprecationWarning!==!0?St="componentWillReceiveProps":typeof Ie.UNSAFE_componentWillReceiveProps=="function"&&(St="UNSAFE_componentWillReceiveProps"),typeof Ie.componentWillUpdate=="function"&&Ie.componentWillUpdate.__suppressDeprecationWarning!==!0?Mt="componentWillUpdate":typeof Ie.UNSAFE_componentWillUpdate=="function"&&(Mt="UNSAFE_componentWillUpdate"),pt!==null||St!==null||Mt!==null){var bn=kn(h)||"Component",On=typeof h.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Ss.has(bn)||(Ss.add(bn),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`,bn,On,pt!==null?`
85
+ `+pt:"",St!==null?`
86
+ `+St:"",Mt!==null?`
87
+ `+Mt:""))}}}return Ie}function Gc(h,b,D){{var M=kn(b)||"Component",Y=h.render;Y||(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&&!Yl.has(b)&&(Yl.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.",kn(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 ie=h.props!==D;h.props!==void 0&&ie&&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"&&!Wl.has(b)&&(Wl.add(b),i("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",kn(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 fe=h.state;fe&&(typeof fe!="object"||Zr(fe))&&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 Uf(h,b){var D=b.state;if(typeof b.componentWillMount=="function"){if(b.componentWillMount.__suppressDeprecationWarning!==!0){var M=kn(h)||"Unknown";Ur[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),Ur[M]=!0)}b.componentWillMount()}typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount(),D!==b.state&&(i("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",kn(h)||"Component"),Yc.enqueueReplaceState(b,b.state,null))}function Vo(h,b,D,M){if(h.queue!==null&&h.queue.length>0){var Y=h.queue,ie=h.replace;if(h.queue=null,h.replace=!1,ie&&Y.length===1)b.state=Y[0];else{for(var fe=ie?Y[0]:b.state,Ie=!0,et=ie?1:0;et<Y.length;et++){var pt=Y[et],St=typeof pt=="function"?pt.call(b,fe,D,M):pt;St!=null&&(Ie?(Ie=!1,fe=ke({},fe,St)):ke(fe,St))}b.state=fe}}else h.queue=null}function ql(h,b,D,M){Gc(h,b,D);var Y=h.state!==void 0?h.state:null;h.updater=Yc,h.props=D,h.state=Y;var ie={queue:[],replace:!1};pa(h,ie);var fe=b.contextType;if(typeof fe=="object"&&fe!==null?h.context=$a(fe):h.context=M,h.state===D){var Ie=kn(b)||"Component";zl.has(Ie)||(zl.add(Ie),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.",Ie))}var et=b.getDerivedStateFromProps;typeof et=="function"&&(h.state=Vf(h,b,et,Y,D)),typeof b.getDerivedStateFromProps!="function"&&typeof h.getSnapshotBeforeUpdate!="function"&&(typeof h.UNSAFE_componentWillMount=="function"||typeof h.componentWillMount=="function")&&(Uf(b,h),Vo(ie,h,D,M))}var Xl={id:1,overflow:""};function Wf(h){var b=h.overflow,D=h.id,M=D&~Ha(D);return M.toString(32)+b}function Yu(h,b,D){var M=h.id,Y=h.overflow,ie=Kl(M)-1,fe=M&~(1<<ie),Ie=D+1,et=Kl(b)+ie;if(et>30){var pt=ie-ie%5,St=(1<<pt)-1,Mt=(fe&St).toString(32),bn=fe>>pt,On=ie-pt,Si=Kl(b)+On,dc=Ie<<On,lf=dc|bn,hc=Mt+Y;return{id:1<<Si|lf,overflow:hc}}else{var cu=Ie<<ie,sg=cu|fe,es=Y;return{id:1<<et|sg,overflow:es}}}function Kl(h){return 32-zf(h)}function Ha(h){return 1<<Kl(h)-1}var zf=Math.clz32?Math.clz32:Ho,Yf=Math.log,Qi=Math.LN2;function Ho(h){var b=h>>>0;return b===0?32:31-(Yf(b)/Qi|0)|0}function Gu(h,b){return h===b&&(h!==0||1/h===1/b)||h!==h&&b!==b}var Zl=typeof Object.is=="function"?Object.is:Gu,nn=null,Ua=null,ga=null,ln=null,Pi=!1,Wa=!1,Cs=0,Vn=null,Ri=0,za=25,eo=!1,Ya;function hr(){if(nn===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 eo&&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"),nn}function qu(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.",Ya),!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`,Ya,"["+h.join(", ")+"]","["+b.join(", ")+"]");for(var D=0;D<b.length&&D<h.length;D++)if(!Zl(h[D],b[D]))return!1;return!0}function va(){if(Ri>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function Wr(){return ln===null?ga===null?(Pi=!1,ga=ln=va()):(Pi=!0,ln=ga):ln.next===null?(Pi=!1,ln=ln.next=va()):(Pi=!0,ln=ln.next),ln}function Xu(h,b){nn=b,Ua=h,eo=!1,Cs=0}function qc(h,b,D,M){for(;Wa;)Wa=!1,Cs=0,Ri+=1,ln=null,D=h(b,M);return Uo(),D}function Ku(){var h=Cs!==0;return h}function Uo(){eo=!1,nn=null,Ua=null,Wa=!1,ga=null,Ri=0,Vn=null,ln=null}function ma(h){return eo&&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()."),$a(h)}function Zu(h){return Ya="useContext",hr(),$a(h)}function Jl(h,b){return typeof b=="function"?b(h):b}function Ql(h){return Ya="useState",Xc(Jl,h)}function Xc(h,b,D){if(h!==Jl&&(Ya="useReducer"),nn=hr(),ln=Wr(),Pi){var M=ln.queue,Y=M.dispatch;if(Vn!==null){var ie=Vn.get(M);if(ie!==void 0){Vn.delete(M);var fe=ln.memoizedState,Ie=ie;do{var et=Ie.action;eo=!0,fe=h(fe,et),eo=!1,Ie=Ie.next}while(Ie!==null);return ln.memoizedState=fe,[fe,Y]}}return[ln.memoizedState,Y]}else{eo=!0;var pt;h===Jl?pt=typeof b=="function"?b():b:pt=D!==void 0?D(b):b,eo=!1,ln.memoizedState=pt;var St=ln.queue={last:null,dispatch:null},Mt=St.dispatch=Kc.bind(null,nn,St);return[ln.memoizedState,Mt]}}function Ju(h,b){nn=hr(),ln=Wr();var D=b===void 0?null:b;if(ln!==null){var M=ln.memoizedState;if(M!==null&&D!==null){var Y=M[1];if(qu(D,Y))return M[0]}}eo=!0;var ie=h();return eo=!1,ln.memoizedState=[ie,D],ie}function pr(h){nn=hr(),ln=Wr();var b=ln.memoizedState;if(b===null){var D={current:h};return Object.seal(D),ln.memoizedState=D,D}else return b}function Qu(h,b){Ya="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 Kc(h,b,D){if(Ri>=za)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(h===nn){Wa=!0;var M={action:D,next:null};Vn===null&&(Vn=new Map);var Y=Vn.get(b);if(Y===void 0)Vn.set(b,M);else{for(var ie=Y;ie.next!==null;)ie=ie.next;ie.next=M}}}function So(h,b){return Ju(function(){return h},b)}function ec(h,b,D){return hr(),b(h._source)}function eu(h,b,D){if(D===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return D()}function Ga(h){return hr(),h}function ol(){throw new Error("startTransition cannot be called during server rendering.")}function Cr(){return hr(),[!1,ol]}function al(){var h=Ua,b=Wf(h.treeContext),D=ll;if(D===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var M=Cs++;return Jn(D,b,M)}function sl(){}var Zc={readContext:ma,useContext:Zu,useMemo:Ju,useReducer:Xc,useRef:pr,useState:Ql,useInsertionEffect:sl,useLayoutEffect:Qu,useCallback:So,useImperativeHandle:sl,useEffect:sl,useDebugValue:sl,useDeferredValue:Ga,useTransition:Cr,useId:al,useMutableSource:ec,useSyncExternalStore:eu},ll=null;function Es(h){ll=h}function tc(h){try{var b="",D=h;do{switch(D.tag){case 0:b+=Ks(D.type,null,null);break;case 1:b+=Vu(D.type,null,null);break;case 2:b+=Qs(D.type,null,null);break}D=D.parent}while(D);return b}catch(M){return`
99
+ Error generating stack: `+M.message+`
100
+ `+M.stack}}var Ii=n.ReactCurrentDispatcher,ul=n.ReactDebugCurrentFrame,tu=0,qa=1,ks=2,nc=3,Xa=4,rc=0,ic=1,To=2,Gf=12800;function qf(h){return console.error(h),null}function Os(){}function cl(h,b,D,M,Y,ie,fe,Ie,et){var pt=[],St=new Set,Mt={destination:null,responseState:b,progressiveChunkSize:M===void 0?Gf:M,status:rc,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:St,pingedTasks:pt,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:Y===void 0?qf:Y,onAllReady:ie===void 0?Os:ie,onShellReady:fe===void 0?Os:fe,onShellError:Ie===void 0?Os:Ie,onFatalError:et===void 0?Os:et},bn=Wo(Mt,0,null,D,!1,!1);bn.parentFlushed=!0;var On=Ds(Mt,h,null,bn,St,Bo,el,Xl);return pt.push(On),Mt}function nu(h,b){var D=h.pingedTasks;D.push(b),D.length===1&&s(function(){return fc(h)})}function to(h,b){return{id:Mr,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:b,errorDigest:null}}function Ds(h,b,D,M,Y,ie,fe,Ie){h.allPendingTasks++,D===null?h.pendingRootTasks++:D.pendingTasks++;var et={node:b,ping:function(){return nu(h,et)},blockedBoundary:D,blockedSegment:M,abortSet:Y,legacyContext:ie,context:fe,treeContext:Ie};return et.componentStack=null,Y.add(et),et}function Wo(h,b,D,M,Y,ie){return{status:tu,id:-1,index:b,parentFlushed:!1,chunks:[],children:[],formatContext:M,boundary:D,lastPushedText:Y,textEmbedded:ie}}var no=null;function _s(){return no===null||no.componentStack===null?"":tc(no.componentStack)}function Ai(h,b){h.componentStack={tag:0,parent:h.componentStack,type:b}}function Ka(h,b){h.componentStack={tag:1,parent:h.componentStack,type:b}}function ru(h,b){h.componentStack={tag:2,parent:h.componentStack,type:b}}function Mi(h){h.componentStack===null?i("Unexpectedly popped too many stack frames. This is a bug in React."):h.componentStack=h.componentStack.parent}var zo=null;function oc(h,b){{var D;typeof b=="string"?D=b:b&&typeof b.message=="string"?D=b.message:D=String(b);var M=zo||_s();zo=null,h.errorMessage=D,h.errorComponentStack=M}}function Za(h,b){var D=h.onError(b);if(D!=null&&typeof D!="string")throw new Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof D+'" instead');return D}function fl(h,b){var D=h.onShellError;D(b);var M=h.onFatalError;M(b),h.destination!==null?(h.status=To,P(h.destination,b)):(h.status=ic,h.fatalError=b)}function iu(h,b,D){Ai(b,"Suspense");var M=b.blockedBoundary,Y=b.blockedSegment,ie=D.fallback,fe=D.children,Ie=new Set,et=to(h,Ie),pt=Y.chunks.length,St=Wo(h,pt,et,Y.formatContext,!1,!1);Y.children.push(St),Y.lastPushedText=!1;var Mt=Wo(h,0,null,Y.formatContext,!1,!1);Mt.parentFlushed=!0,b.blockedBoundary=et,b.blockedSegment=Mt;try{if(pl(h,b,fe),hs(Mt.chunks,h.responseState,Mt.lastPushedText,Mt.textEmbedded),Mt.status=qa,vl(et,Mt),et.pendingTasks===0){Mi(b);return}}catch(On){Mt.status=Xa,et.forceClientRender=!0,et.errorDigest=Za(h,On),oc(et,On)}finally{b.blockedBoundary=M,b.blockedSegment=Y}var bn=Ds(h,ie,M,St,Ie,b.legacyContext,b.context,b.treeContext);bn.componentStack=b.componentStack,h.pingedTasks.push(bn),Mi(b)}function Jc(h,b,D,M){Ai(b,D);var Y=b.blockedSegment,ie=ri(Y.chunks,D,M,h.responseState,Y.formatContext);Y.lastPushedText=!1;var fe=Y.formatContext;Y.formatContext=pi(fe,D,M),pl(h,b,ie),Y.formatContext=fe,fr(Y.chunks,D),Y.lastPushedText=!1,Mi(b)}function ac(h){return h.prototype&&h.prototype.isReactComponent}function Gt(h,b,D,M,Y){var ie={};Xu(b,ie);var fe=D(M,Y);return qc(D,M,fe,Y)}function dl(h,b,D,M,Y){var ie=D.render();D.props!==Y&&(oi||i("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",kn(M)||"a component"),oi=!0);{var fe=M.childContextTypes;if(fe!=null){var Ie=b.legacyContext,et=$o(D,M,Ie,fe);b.legacyContext=et,Yr(h,b,ie),b.legacyContext=Ie;return}}Yr(h,b,ie)}function Qc(h,b,D,M){ru(b,D);var Y=Hc(D,b.legacyContext),ie=Hf(D,M,Y);ql(ie,D,M,Y),dl(h,b,ie,D,M),Mi(b)}var Ja={},Ps={},sc={},lc={},oi=!1,uc={},hl=!1,ou=!1,au=!1;function ef(h,b,D,M){var Y;if(Y=Hc(D,b.legacyContext),Ka(b,D),D.prototype&&typeof D.prototype.render=="function"){var ie=kn(D)||"Unknown";Ja[ie]||(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.",ie,ie),Ja[ie]=!0)}var fe=Gt(h,b,D,M,Y),Ie=Ku();if(typeof fe=="object"&&fe!==null&&typeof fe.render=="function"&&fe.$$typeof===void 0){var et=kn(D)||"Unknown";Ps[et]||(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.",et,et,et),Ps[et]=!0)}if(typeof fe=="object"&&fe!==null&&typeof fe.render=="function"&&fe.$$typeof===void 0){{var pt=kn(D)||"Unknown";Ps[pt]||(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.",pt,pt,pt),Ps[pt]=!0)}ql(fe,D,M,Y),dl(h,b,fe,D,M)}else if(wi(D),Ie){var St=b.treeContext,Mt=1,bn=0;b.treeContext=Yu(St,Mt,bn);try{Yr(h,b,fe)}finally{b.treeContext=St}}else Yr(h,b,fe);Mi(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=kn(h)||"Unknown";uc[b]||(i("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",b),uc[b]=!0)}if(typeof h.getDerivedStateFromProps=="function"){var D=kn(h)||"Unknown";lc[D]||(i("%s: Function components do not support getDerivedStateFromProps.",D),lc[D]=!0)}if(typeof h.contextType=="object"&&h.contextType!==null){var M=kn(h)||"Unknown";sc[M]||(i("%s: Function components do not support contextType.",M),sc[M]=!0)}}}function Yo(h,b){if(h&&h.defaultProps){var D=ke({},b),M=h.defaultProps;for(var Y in M)D[Y]===void 0&&(D[Y]=M[Y]);return D}return b}function cc(h,b,D,M,Y){Ka(b,D.render);var ie=Gt(h,b,D.render,M,Y),fe=Ku();if(fe){var Ie=b.treeContext,et=1,pt=0;b.treeContext=Yu(Ie,et,pt);try{Yr(h,b,ie)}finally{b.treeContext=Ie}}else Yr(h,b,ie);Mi(b)}function tf(h,b,D,M,Y){var ie=D.type,fe=Yo(ie,M);su(h,b,ie,fe,Y)}function Rs(h,b,D,M){D._context===void 0?D!==D.Consumer&&(au||(au=!0,i("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):D=D._context;var Y=M.children;typeof Y!="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 ie=$a(D),fe=Y(ie);Yr(h,b,fe)}function nf(h,b,D,M){var Y=D._context,ie=M.value,fe=M.children,Ie;Ie=b.context,b.context=nl(Y,ie),Yr(h,b,fe),b.context=xs(Y),Ie!==b.context&&i("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function zr(h,b,D,M,Y){Ai(b,"Lazy");var ie=D._payload,fe=D._init,Ie=fe(ie),et=Yo(Ie,M);su(h,b,Ie,et,Y),Mi(b)}function su(h,b,D,M,Y){if(typeof D=="function")if(ac(D)){Qc(h,b,D,M);return}else{ef(h,b,D,M);return}if(typeof D=="string"){Jc(h,b,D,M);return}switch(D){case Vr:case qn:case Ue:case Ge:case ce:{Yr(h,b,M.children);return}case kt:{Ai(b,"SuspenseList"),Yr(h,b,M.children),Mi(b);return}case ar:throw new Error("ReactDOMServer does not yet support scope components.");case It:{iu(h,b,M);return}}if(typeof D=="object"&&D!==null)switch(D.$$typeof){case ut:{cc(h,b,D,M,Y);return}case Yt:{tf(h,b,D,M,Y);return}case ft:{nf(h,b,D,M);return}case dt:{Rs(h,b,D,M);return}case Fn:{zr(h,b,D,M);return}}var ie="";throw(D===void 0||typeof D=="object"&&D!==null&&Object.keys(D).length===0)&&(ie+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(D==null?D:typeof D)+"."+ie))}function lu(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&&(ou||i("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ou=!0)}function Yr(h,b,D){try{return Co(h,b,D)}catch(M){throw typeof M=="object"&&M!==null&&typeof M.then=="function"||(zo=zo!==null?zo:_s()),M}}function Co(h,b,D){if(b.node=D,typeof D=="object"&&D!==null){switch(D.$$typeof){case Q:{var M=D,Y=M.type,ie=M.props,fe=M.ref;su(h,b,Y,ie,fe);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 Fn:{var Ie=D,et=Ie._payload,pt=Ie._init,St;try{St=pt(et)}catch(cu){throw typeof cu=="object"&&cu!==null&&typeof cu.then=="function"&&Ai(b,"Lazy"),cu}Yr(h,b,St);return}}if(Zr(D)){rf(h,b,D);return}var Mt=En(D);if(Mt){lu(D,Mt);var bn=Mt.call(D);if(bn){var On=bn.next();if(!On.done){var Si=[];do Si.push(On.value),On=bn.next();while(!On.done);rf(h,b,Si);return}return}}var dc=Object.prototype.toString.call(D);throw new Error("Objects are not valid as a React child (found: "+(dc==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":dc)+"). If you meant to render a collection of children, use an array instead.")}if(typeof D=="string"){var lf=b.blockedSegment;lf.lastPushedText=Xs(b.blockedSegment.chunks,D,h.responseState,lf.lastPushedText);return}if(typeof D=="number"){var hc=b.blockedSegment;hc.lastPushedText=Xs(b.blockedSegment.chunks,""+D,h.responseState,hc.lastPushedText);return}typeof D=="function"&&i("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}function rf(h,b,D){for(var M=D.length,Y=0;Y<M;Y++){var ie=b.treeContext;b.treeContext=Yu(ie,M,Y);try{pl(h,b,D[Y])}finally{b.treeContext=ie}}}function ya(h,b,D){var M=b.blockedSegment,Y=M.chunks.length,ie=Wo(h,Y,null,M.formatContext,M.lastPushedText,!0);M.children.push(ie),M.lastPushedText=!1;var fe=Ds(h,b.node,b.blockedBoundary,ie,b.abortSet,b.legacyContext,b.context,b.treeContext);b.componentStack!==null&&(fe.componentStack=b.componentStack.parent);var Ie=fe.ping;D.then(Ie,Ie)}function pl(h,b,D){var M=b.blockedSegment.formatContext,Y=b.legacyContext,ie=b.context,fe=null;fe=b.componentStack;try{return Yr(h,b,D)}catch(Ie){if(Uo(),typeof Ie=="object"&&Ie!==null&&typeof Ie.then=="function"){ya(h,b,Ie),b.blockedSegment.formatContext=M,b.legacyContext=Y,b.context=ie,Ul(ie),b.componentStack=fe;return}else throw b.blockedSegment.formatContext=M,b.legacyContext=Y,b.context=ie,Ul(ie),b.componentStack=fe,Ie}}function gl(h,b,D,M){var Y=Za(h,M);if(b===null?fl(h,M):(b.pendingTasks--,b.forceClientRender||(b.forceClientRender=!0,b.errorDigest=Y,oc(b,M),b.parentFlushed&&h.clientRenderedBoundaries.push(b))),h.allPendingTasks--,h.allPendingTasks===0){var ie=h.onAllReady;ie()}}function uu(h){var b=this,D=h.blockedBoundary,M=h.blockedSegment;M.status=nc,ml(b,D,M)}function of(h,b,D){var M=h.blockedBoundary,Y=h.blockedSegment;if(Y.status=nc,M===null)b.allPendingTasks--,b.status!==To&&(b.status=To,b.destination!==null&&p(b.destination));else{if(M.pendingTasks--,!M.forceClientRender){M.forceClientRender=!0;var ie=D===void 0?new Error("The render was aborted by the server without a reason."):D;M.errorDigest=b.onError(ie);{var fe="The server did not finish this Suspense boundary: ";ie&&typeof ie.message=="string"?ie=fe+ie.message:ie=fe+String(ie);var Ie=no;no=h;try{oc(M,ie)}finally{no=Ie}}M.parentFlushed&&b.clientRenderedBoundaries.push(M)}if(M.fallbackAbortableTasks.forEach(function(pt){return of(pt,b,D)}),M.fallbackAbortableTasks.clear(),b.allPendingTasks--,b.allPendingTasks===0){var et=b.onAllReady;et()}}}function vl(h,b){if(b.chunks.length===0&&b.children.length===1&&b.children[0].boundary===null){var D=b.children[0];D.id=b.id,D.parentFlushed=!0,D.status===qa&&vl(h,D)}else{var M=h.completedSegments;M.push(b)}}function ml(h,b,D){if(b===null){if(D.parentFlushed){if(h.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");h.completedRootSegment=D}if(h.pendingRootTasks--,h.pendingRootTasks===0){h.onShellError=Os;var M=h.onShellReady;M()}}else if(b.pendingTasks--,!b.forceClientRender){if(b.pendingTasks===0)D.parentFlushed&&D.status===qa&&vl(b,D),b.parentFlushed&&h.completedBoundaries.push(b),b.fallbackAbortableTasks.forEach(uu,h),b.fallbackAbortableTasks.clear();else if(D.parentFlushed&&D.status===qa){vl(b,D);var Y=b.completedSegments;Y.length===1&&b.parentFlushed&&h.partialBoundaries.push(b)}}if(h.allPendingTasks--,h.allPendingTasks===0){var ie=h.onAllReady;ie()}}function yl(h,b){var D=b.blockedSegment;if(D.status===tu){Ul(b.context);var M=null;M=no,no=b;try{Yr(h,b,b.node),hs(D.chunks,h.responseState,D.lastPushedText,D.textEmbedded),b.abortSet.delete(b),D.status=qa,ml(h,b.blockedBoundary,D)}catch(ie){if(Uo(),typeof ie=="object"&&ie!==null&&typeof ie.then=="function"){var Y=b.ping;ie.then(Y,Y)}else b.abortSet.delete(b),D.status=Xa,gl(h,b.blockedBoundary,D,ie)}finally{no=M}}}function fc(h){if(h.status!==To){var b=rl(),D=Ii.current;Ii.current=Zc;var M;M=ul.getCurrentStack,ul.getCurrentStack=_s;var Y=ll;Es(h.responseState);try{var ie=h.pingedTasks,fe;for(fe=0;fe<ie.length;fe++){var Ie=ie[fe];yl(h,Ie)}ie.splice(0,fe),h.destination!==null&&Qa(h,h.destination)}catch(et){Za(h,et),fl(h,et)}finally{Es(Y),Ii.current=D,ul.getCurrentStack=M,D===Zc&&Ul(b)}}}function bl(h,b,D){switch(D.parentFlushed=!0,D.status){case tu:{var M=D.id=h.nextSegmentId++;return D.lastPushedText=!1,D.textEmbedded=!1,yn(b,h.responseState,M)}case qa:{D.status=ks;for(var Y=!0,ie=D.chunks,fe=0,Ie=D.children,et=0;et<Ie.length;et++){for(var pt=Ie[et];fe<pt.index;fe++)c(b,ie[fe]);Y=Is(h,b,pt)}for(;fe<ie.length-1;fe++)c(b,ie[fe]);return fe<ie.length&&(Y=d(b,ie[fe])),Y}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function Is(h,b,D){var M=D.boundary;if(M===null)return bl(h,b,D);if(M.parentFlushed=!0,M.forceClientRender)return ee(b,h.responseState,M.errorDigest,M.errorMessage,M.errorComponentStack),bl(h,b,D),_e(b,h.responseState);if(M.pendingTasks>0){M.rootSegmentID=h.nextSegmentId++,M.completedSegments.length>0&&h.partialBoundaries.push(M);var Y=M.id=ei(h.responseState);return le(b,h.responseState,Y),bl(h,b,D),Le(b,h.responseState)}else{if(M.byteSize>h.progressiveChunkSize)return M.rootSegmentID=h.nextSegmentId++,h.completedBoundaries.push(M),le(b,h.responseState,M.id),bl(h,b,D),Le(b,h.responseState);ps(b,h.responseState);var ie=M.completedSegments;if(ie.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var fe=ie[0];return Is(h,b,fe),ve(b,h.responseState)}}function af(h,b,D){return qs(b,h.responseState,D.id,D.errorDigest,D.errorMessage,D.errorComponentStack)}function Er(h,b,D){return Te(b,h.responseState,D.formatContext,D.id),Is(h,b,D),He(b,D.formatContext)}function xi(h,b,D){for(var M=D.completedSegments,Y=0;Y<M.length;Y++){var ie=M[Y];sf(h,b,D,ie)}return M.length=0,Gs(b,h.responseState,D.id,D.rootSegmentID)}function Xf(h,b,D){for(var M=D.completedSegments,Y=0;Y<M.length;Y++){var ie=M[Y];if(!sf(h,b,D,ie))return Y++,M.splice(0,Y),!1}return M.splice(0,Y),!0}function sf(h,b,D,M){if(M.status===ks)return!0;var Y=M.id;if(Y===-1){var ie=M.id=D.rootSegmentID;if(ie===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return Er(h,b,M)}else return Er(h,b,M),Gn(b,h.responseState,Y)}function Qa(h,b){try{var D=h.completedRootSegment;D!==null&&h.pendingRootTasks===0&&(Is(h,b,D),h.completedRootSegment=null,ja(b,h.responseState));var M=h.clientRenderedBoundaries,Y;for(Y=0;Y<M.length;Y++){var ie=M[Y];if(!af(h,b,ie)){h.destination=null,Y++,M.splice(0,Y);return}}M.splice(0,Y);var fe=h.completedBoundaries;for(Y=0;Y<fe.length;Y++){var Ie=fe[Y];if(!xi(h,b,Ie)){h.destination=null,Y++,fe.splice(0,Y);return}}fe.splice(0,Y);var et=h.partialBoundaries;for(Y=0;Y<et.length;Y++){var pt=et[Y];if(!Xf(h,b,pt)){h.destination=null,Y++,et.splice(0,Y);return}}et.splice(0,Y);var St=h.completedBoundaries;for(Y=0;Y<St.length;Y++){var Mt=St[Y];if(!xi(h,b,Mt)){h.destination=null,Y++,St.splice(0,Y);return}}St.splice(0,Y)}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 As(h){s(function(){return fc(h)})}function g(h,b){if(h.status===ic){h.status=To,P(b,h.fatalError);return}if(h.status!==To&&h.destination===null){h.destination=b;try{Qa(h,b)}catch(D){Za(h,D),fl(h,D)}}}function w(h,b){try{var D=h.abortableTasks;D.forEach(function(M){return of(M,h,b)}),D.clear(),h.destination!==null&&Qa(h,h.destination)}catch(M){Za(h,M),fl(h,M)}}function A(){}function $(h,b,D,M){var Y=!1,ie=null,fe="",Ie={push:function(Mt){return Mt!==null&&(fe+=Mt),!0},destroy:function(Mt){Y=!0,ie=Mt}},et=!1;function pt(){et=!0}var St=cl(h,yo(D,b?b.identifierPrefix:void 0),dr(),1/0,A,void 0,pt,void 0,void 0);if(As(St),w(St,M),g(St,Ie),Y)throw ie;if(!et)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 fe}function K(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 ae(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 me(){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.")}Sc.renderToNodeStream=me,Sc.renderToStaticMarkup=ae,Sc.renderToStaticNodeStream=Ae,Sc.renderToString=K,Sc.version=t}()),Sc}var Hh={};/**
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 u1;function k4(){return u1||(u1=1,process.env.NODE_ENV!=="production"&&function(){var e=X,t="18.3.1",n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(g){{for(var w=arguments.length,A=new Array(w>1?w-1:0),$=1;$<w;$++)A[$-1]=arguments[$];o("warn",g,A)}}function i(g){{for(var w=arguments.length,A=new Array(w>1?w-1:0),$=1;$<w;$++)A[$-1]=arguments[$];o("error",g,A)}}function o(g,w,A){{var $=n.ReactDebugCurrentFrame,K=$.getStackAddendum();K!==""&&(w+="%s",A=A.concat([K]));var ae=A.map(function(me){return String(me)});ae.unshift("Warning: "+w),Function.prototype.apply.call(console[g],console,ae)}}function s(g){g()}var u=512,c=null,d=0;function v(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 A=w,$=c.length-d;$<A.length&&($===0?g.enqueue(c):(c.set(A.subarray(0,$),d),g.enqueue(c),A=A.subarray($)),c=new Uint8Array(u),d=0),c.set(A,d),d+=A.length}}function S(g,w){return p(g,w),!0}function T(g){c&&d>0&&(g.enqueue(new Uint8Array(c.buffer,0,d)),c=null,d=0)}function P(g){g.close()}var I=new TextEncoder;function L(g){return I.encode(g)}function R(g){return I.encode(g)}function H(g,w){typeof g.error=="function"?g.error(w):g.close()}function W(g){{var w=typeof Symbol=="function"&&Symbol.toStringTag,A=w&&g[Symbol.toStringTag]||g.constructor.name||"Object";return A}}function te(g){try{return J(g),!1}catch{return!0}}function J(g){return""+g}function de(g,w){if(te(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,W(g)),J(g)}function x(g,w){if(te(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,W(g)),J(g)}function ye(g){if(te(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.",W(g)),J(g)}var ue=Object.prototype.hasOwnProperty,Je=0,Ne=1,$e=2,Ye=3,qe=4,pe=5,Oe=6,je=":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",Xe=je+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",at=new RegExp("^["+je+"]["+Xe+"]*$"),Ce={},Pe={};function Ve(g){return ue.call(Pe,g)?!0:ue.call(Ce,g)?!1:at.test(g)?(Pe[g]=!0,!0):(Ce[g]=!0,i("Invalid attribute name: `%s`",g),!1)}function ze(g,w,A,$){if(A!==null&&A.type===Je)return!1;switch(typeof w){case"function":case"symbol":return!0;case"boolean":{if($)return!1;if(A!==null)return!A.acceptsBooleans;var K=g.toLowerCase().slice(0,5);return K!=="data-"&&K!=="aria-"}default:return!1}}function Re(g){return Ke.hasOwnProperty(g)?Ke[g]:null}function Fe(g,w,A,$,K,ae,me){this.acceptsBooleans=w===$e||w===Ye||w===qe,this.attributeName=$,this.attributeNamespace=K,this.mustUseProperty=A,this.propertyName=g,this.type=w,this.sanitizeURL=ae,this.removeEmptyString=me}var Ke={},lt=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];lt.forEach(function(g){Ke[g]=new Fe(g,Je,!1,g,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(g){var w=g[0],A=g[1];Ke[w]=new Fe(w,Ne,!1,A,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(g){Ke[g]=new Fe(g,$e,!1,g.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(g){Ke[g]=new Fe(g,$e,!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){Ke[g]=new Fe(g,Ye,!1,g.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(g){Ke[g]=new Fe(g,Ye,!0,g,null,!1,!1)}),["capture","download"].forEach(function(g){Ke[g]=new Fe(g,qe,!1,g,null,!1,!1)}),["cols","rows","size","span"].forEach(function(g){Ke[g]=new Fe(g,Oe,!1,g,null,!1,!1)}),["rowSpan","start"].forEach(function(g){Ke[g]=new Fe(g,pe,!1,g.toLowerCase(),null,!1,!1)});var mt=/[\-\:]([a-z])/g,wt=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(mt,wt);Ke[w]=new Fe(w,Ne,!1,g,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(g){var w=g.replace(mt,wt);Ke[w]=new Fe(w,Ne,!1,g,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(g){var w=g.replace(mt,wt);Ke[w]=new Fe(w,Ne,!1,g,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(g){Ke[g]=new Fe(g,Ne,!1,g.toLowerCase(),null,!1,!1)});var vt="xlinkHref";Ke[vt]=new Fe("xlinkHref",Ne,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(g){Ke[g]=new Fe(g,Ne,!1,g.toLowerCase(),null,!0,!0)});var Et={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 ot(g,w){return g+w.charAt(0).toUpperCase()+w.substring(1)}var $t=["Webkit","ms","Moz","O"];Object.keys(Et).forEach(function(g){$t.forEach(function(w){Et[ot(w,g)]=Et[g]})});var Ht={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Xn(g,w){Ht[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 mr(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 Kn={"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},_n={},$i=new RegExp("^(aria)-["+Xe+"]*$"),Dr=new RegExp("^(aria)[A-Z]["+Xe+"]*$");function rr(g,w){{if(ue.call(_n,w)&&_n[w])return!0;if(Dr.test(w)){var A="aria-"+w.slice(4).toLowerCase(),$=Kn.hasOwnProperty(A)?A:null;if($==null)return i("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",w),_n[w]=!0,!0;if(w!==$)return i("Invalid ARIA attribute `%s`. Did you mean `%s`?",w,$),_n[w]=!0,!0}if($i.test(w)){var K=w.toLowerCase(),ae=Kn.hasOwnProperty(K)?K:null;if(ae==null)return _n[w]=!0,!1;if(w!==ae)return i("Unknown ARIA attribute `%s`. Did you mean `%s`?",w,ae),_n[w]=!0,!0}}return!0}function cn(g,w){{var A=[];for(var $ in w){var K=rr(g,$);K||A.push($)}var ae=A.map(function(me){return"`"+me+"`"}).join(", ");A.length===1?i("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",ae,g):A.length>1&&i("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",ae,g)}}function hn(g,w){mr(g,w)||cn(g,w)}var pn=!1;function gt(g,w){{if(g!=="input"&&g!=="textarea"&&g!=="select")return;w!=null&&w.value===null&&!pn&&(pn=!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 In={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 un={},Vi=/^on./,Hi=/^on[^A-Z]/,Ui=new RegExp("^(aria)-["+Xe+"]*$"),_r=new RegExp("^(aria)[A-Z]["+Xe+"]*$");li=function(g,w,A,$){if(ue.call(un,w)&&un[w])return!0;var K=w.toLowerCase();if(K==="onfocusin"||K==="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."),un[w]=!0,!0;if($!=null){var ae=$.registrationNameDependencies,me=$.possibleRegistrationNames;if(ae.hasOwnProperty(w))return!0;var Ae=me.hasOwnProperty(K)?me[K]:null;if(Ae!=null)return i("Invalid event handler property `%s`. Did you mean `%s`?",w,Ae),un[w]=!0,!0;if(Vi.test(w))return i("Unknown event handler property `%s`. It will be ignored.",w),un[w]=!0,!0}else if(Vi.test(w))return Hi.test(w)&&i("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",w),un[w]=!0,!0;if(Ui.test(w)||_r.test(w))return!0;if(K==="innerhtml")return i("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),un[w]=!0,!0;if(K==="aria")return i("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),un[w]=!0,!0;if(K==="is"&&A!==null&&A!==void 0&&typeof A!="string")return i("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof A),un[w]=!0,!0;if(typeof A=="number"&&isNaN(A))return i("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",w),un[w]=!0,!0;var h=Re(w),b=h!==null&&h.type===Je;if(In.hasOwnProperty(K)){var D=In[K];if(D!==w)return i("Invalid DOM property `%s`. Did you mean `%s`?",w,D),un[w]=!0,!0}else if(!b&&w!==K)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,K),un[w]=!0,!0;return typeof A=="boolean"&&ze(w,A,h,!1)?(A?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()}.',A,w,w,A,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.',A,w,w,A,w,w,w),un[w]=!0,!0):b?!0:ze(w,A,h,!1)?(un[w]=!0,!1):((A==="false"||A==="true")&&h!==null&&h.type===Ye&&(i("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",A,w,A==="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,A),un[w]=!0),!0)}}var Wn=function(g,w,A){{var $=[];for(var K in w){var ae=li(g,K,w[K],A);ae||$.push(K)}var me=$.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 ",me,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 ",me,g)}};function Pr(g,w,A){mr(g,w)||Wn(g,w,A)}var yr=function(){};{var qr=/^(?:webkit|moz|o)[A-Z]/,Xr=/^-ms-/,Po=/-(.)/g,Zn=/;\s*$/,Kr={},ir={},Zt=!1,ui=!1,Wi=function(g){return g.replace(Po,function(w,A){return A.toUpperCase()})},An=function(g){Kr.hasOwnProperty(g)&&Kr[g]||(Kr[g]=!0,i("Unsupported style property %s. Did you mean %s?",g,Wi(g.replace(Xr,"ms-"))))},gn=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){ir.hasOwnProperty(w)&&ir[w]||(ir[w]=!0,i(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,g,w.replace(Zn,"")))},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))};yr=function(g,w){g.indexOf("-")>-1?An(g):qr.test(g)?gn(g):Zn.test(w)&&ci(g,w),typeof w=="number"&&(isNaN(w)?fi(g,w):isFinite(w)||mn(g,w))}}var uo=yr,br=/["'&<>]/;function di(g){ye(g);var w=""+g,A=br.exec(w);if(!A)return w;var $,K="",ae,me=0;for(ae=A.index;ae<w.length;ae++){switch(w.charCodeAt(ae)){case 34:$="&quot;";break;case 38:$="&amp;";break;case 39:$="&#x27;";break;case 60:$="&lt;";break;case 62:$="&gt;";break;default:continue}me!==ae&&(K+=w.substring(me,ae)),me=ae+1,K+=$}return me!==ae?K+w.substring(me,ae):K}function fn(g){return typeof g=="boolean"||typeof g=="number"?""+g:di(g)}var Ei=/([A-Z])/g,Ia=/^ms-/;function Aa(g){return g.replace(Ei,"-$1").toLowerCase().replace(Ia,"-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,co=!1;function fo(g){!co&&Zr.test(g)&&(co=!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 Ro=Array.isArray;function ki(g){return Ro(g)}var hi=R("<script>"),Oi=R("<\/script>"),ho=R('<script src="'),Di=R('<script type="module" src="'),Jr=R('" async=""><\/script>');function wr(g){return ye(g),(""+g).replace(Rr,Qr)}var Rr=/(<\/|<)(s)(cript)/gi,Qr=function(g,w,A,$){return""+w+(A==="s"?"\\u0073":"\\u0053")+$};function Ir(g,w,A,$,K){var ae=g===void 0?"":g,me=w===void 0?hi:R('<script nonce="'+fn(w)+'">'),Ae=[];if(A!==void 0&&Ae.push(me,L(wr(A)),Oi),$!==void 0)for(var h=0;h<$.length;h++)Ae.push(ho,L(fn($[h])),Jr);if(K!==void 0)for(var b=0;b<K.length;b++)Ae.push(Di,L(fn(K[b])),Jr);return{bootstrapChunks:Ae,startInlineScript:me,placeholderPrefix:R(ae+"P:"),segmentPrefix:R(ae+"S:"),boundaryPrefix:ae+"B:",idPrefix:ae,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var zn=0,vn=1,Ar=2,xr=3,Mn=4,pi=5,Mr=6,ei=7;function Jn(g,w){return{insertionMode:g,selectedValue:w}}function ti(g){var w=g==="http://www.w3.org/2000/svg"?Ar:g==="http://www.w3.org/1998/Math/MathML"?xr:zn;return Jn(w,null)}function ni(g,w,A){switch(w){case"select":return Jn(vn,A.value!=null?A.value:A.defaultValue);case"svg":return Jn(Ar,null);case"math":return Jn(xr,null);case"foreignObject":return Jn(vn,null);case"table":return Jn(Mn,null);case"thead":case"tbody":case"tfoot":return Jn(pi,null);case"colgroup":return Jn(ei,null);case"tr":return Jn(Mr,null)}return g.insertionMode>=Mn||g.insertionMode===zn?Jn(vn,null):g}var zi=null;function Rn(g){var w=g.nextSuspenseID++;return R(g.boundaryPrefix+w.toString(16))}function Sr(g,w,A){var $=g.idPrefix,K=":"+$+"R"+w;return A>0&&(K+="H"+A.toString(32)),K+":"}function cr(g){return fn(g)}var Io=R("<!-- -->");function Yi(g,w,A,$){return w===""?$:($&&g.push(Io),g.push(L(cr(w))),!0)}function Lr(g,w,A,$){A&&$&&g.push(Io)}var E=new Map;function j(g){var w=E.get(g);if(w!==void 0)return w;var A=R(fn(Aa(g)));return E.set(g,A),A}var q=R(' style="'),re=R(":"),De=R(";");function be(g,w,A){if(typeof A!="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 K in A)if(ue.call(A,K)){var ae=A[K];if(!(ae==null||typeof ae=="boolean"||ae==="")){var me=void 0,Ae=void 0,h=K.indexOf("--")===0;h?(me=L(fn(K)),x(ae,K),Ae=L(fn((""+ae).trim()))):(uo(K,ae),me=j(K),typeof ae=="number"?ae!==0&&!ue.call(Et,K)?Ae=L(ae+"px"):Ae=L(""+ae):(x(ae,K),Ae=L(fn((""+ae).trim())))),$?($=!1,g.push(q,me,re,Ae)):g.push(De,me,re,Ae)}}$||g.push(yt)}var Me=R(" "),rt=R('="'),yt=R('"'),Tt=R('=""');function bt(g,w,A,$){switch(A){case"style":{be(g,w,$);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(A.length>2&&(A[0]==="o"||A[0]==="O")&&(A[1]==="n"||A[1]==="N"))){var K=Re(A);if(K!==null){switch(typeof $){case"function":case"symbol":return;case"boolean":if(!K.acceptsBooleans)return}var ae=K.attributeName,me=L(ae);switch(K.type){case Ye:$&&g.push(Me,me,Tt);return;case qe:$===!0?g.push(Me,me,Tt):$===!1||g.push(Me,me,rt,L(fn($)),yt);return;case pe:isNaN($)||g.push(Me,me,rt,L(fn($)),yt);break;case Oe:!isNaN($)&&$>=1&&g.push(Me,me,rt,L(fn($)),yt);break;default:K.sanitizeURL&&(de($,ae),$=""+$,fo($)),g.push(Me,me,rt,L(fn($)),yt)}}else if(Ve(A)){switch(typeof $){case"function":case"symbol":return;case"boolean":{var Ae=A.toLowerCase().slice(0,5);if(Ae!=="data-"&&Ae!=="aria-")return}}g.push(Me,L(A),rt,L(fn($)),yt)}}}var Ut=R(">"),Qn=R("/>");function Yn(g,w,A){if(w!=null){if(A!=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&&(ye($),g.push(L(""+$)))}}var Pn=!1,Fr=!1,or=!1,Gi=!1,gi=!1,qi=!1,Nr=!1;function Ao(g,w){{var A=g[w];if(A!=null){var $=ki(A);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 Ys(g,w,A){Xn("select",w),Ao(w,"value"),Ao(w,"defaultValue"),w.value!==void 0&&w.defaultValue!==void 0&&!or&&(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"),or=!0),g.push(fr("select"));var $=null,K=null;for(var ae in w)if(ue.call(w,ae)){var me=w[ae];if(me==null)continue;switch(ae){case"children":$=me;break;case"dangerouslySetInnerHTML":K=me;break;case"defaultValue":case"value":break;default:bt(g,A,ae,me);break}}return g.push(Ut),Yn(g,K,$),$}function Ma(g){var w="";return e.Children.forEach(g,function(A){A!=null&&(w+=A,!gi&&typeof A!="string"&&typeof A!="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 La=R(' selected=""');function Fa(g,w,A,$){var K=$.selectedValue;g.push(fr("option"));var ae=null,me=null,Ae=null,h=null;for(var b in w)if(ue.call(w,b)){var D=w[b];if(D==null)continue;switch(b){case"children":ae=D;break;case"selected":Ae=D,Nr||(i("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Nr=!0);break;case"dangerouslySetInnerHTML":h=D;break;case"value":me=D;default:bt(g,A,b,D);break}}if(K!=null){var M;if(me!==null?(de(me,"value"),M=""+me):(h!==null&&(qi||(qi=!0,i("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),M=Ma(ae)),ki(K))for(var Y=0;Y<K.length;Y++){de(K[Y],"value");var ie=""+K[Y];if(ie===M){g.push(La);break}}else de(K,"select.value"),""+K===M&&g.push(La)}else Ae&&g.push(La);return g.push(Ut),Yn(g,h,ae),ae}function Na(g,w,A){Xn("input",w),w.checked!==void 0&&w.defaultChecked!==void 0&&!Fr&&(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),Fr=!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,K=null,ae=null,me=null;for(var Ae in w)if(ue.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":me=h;break;case"defaultValue":K=h;break;case"checked":ae=h;break;case"value":$=h;break;default:bt(g,A,Ae,h);break}}return ae!==null?bt(g,A,"checked",ae):me!==null&&bt(g,A,"checked",me),$!==null?bt(g,A,"value",$):K!==null&&bt(g,A,"value",K),g.push(Qn),null}function vi(g,w,A){Xn("textarea",w),w.value!==void 0&&w.defaultValue!==void 0&&!Gi&&(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"),Gi=!0),g.push(fr("textarea"));var $=null,K=null,ae=null;for(var me in w)if(ue.call(w,me)){var Ae=w[me];if(Ae==null)continue;switch(me){case"children":ae=Ae;break;case"value":$=Ae;break;case"defaultValue":K=Ae;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:bt(g,A,me,Ae);break}}if($===null&&K!==null&&($=K),g.push(Ut),ae!=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(ki(ae)){if(ae.length>1)throw new Error("<textarea> can only have at most one child.");ye(ae[0]),$=""+ae[0]}ye(ae),$=""+ae}return typeof $=="string"&&$[0]===`
109
+ `&&g.push(_i),$!==null&&(de($,"value"),g.push(L(cr(""+$)))),null}function Mo(g,w,A,$){g.push(fr(A));for(var K in w)if(ue.call(w,K)){var ae=w[K];if(ae==null)continue;switch(K){case"children":case"dangerouslySetInnerHTML":throw new Error(A+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:bt(g,$,K,ae);break}}return g.push(Qn),null}function ra(g,w,A){g.push(fr("menuitem"));for(var $ in w)if(ue.call(w,$)){var K=w[$];if(K==null)continue;switch($){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:bt(g,A,$,K);break}}return g.push(Ut),null}function sn(g,w,A){g.push(fr("title"));var $=null;for(var K in w)if(ue.call(w,K)){var ae=w[K];if(ae==null)continue;switch(K){case"children":$=ae;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:bt(g,A,K,ae);break}}g.push(Ut);{var me=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"):me!=null&&me.$$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"):me!=null&&typeof me!="string"&&typeof me!="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 Qt(g,w,A,$){g.push(fr(A));var K=null,ae=null;for(var me in w)if(ue.call(w,me)){var Ae=w[me];if(Ae==null)continue;switch(me){case"children":K=Ae;break;case"dangerouslySetInnerHTML":ae=Ae;break;default:bt(g,$,me,Ae);break}}return g.push(Ut),Yn(g,ae,K),typeof K=="string"?(g.push(L(cr(K))),null):K}function Vt(g,w,A,$){g.push(fr(A));var K=null,ae=null;for(var me in w)if(ue.call(w,me)){var Ae=w[me];if(Ae==null)continue;switch(me){case"children":K=Ae;break;case"dangerouslySetInnerHTML":ae=Ae;break;case"style":be(g,$,Ae);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:Ve(me)&&typeof Ae!="function"&&typeof Ae!="symbol"&&g.push(Me,L(me),rt,L(fn(Ae)),yt);break}}return g.push(Ut),Yn(g,ae,K),K}var _i=R(`
110
+ `);function ri(g,w,A,$){g.push(fr(A));var K=null,ae=null;for(var me in w)if(ue.call(w,me)){var Ae=w[me];if(Ae==null)continue;switch(me){case"children":K=Ae;break;case"dangerouslySetInnerHTML":ae=Ae;break;default:bt(g,$,me,Ae);break}}if(g.push(Ut),ae!=null){if(K!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof ae!="object"||!("__html"in ae))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=ae.__html;h!=null&&(typeof h=="string"&&h.length>0&&h[0]===`
111
+ `?g.push(_i,L(h)):(ye(h),g.push(L(""+h))))}return typeof K=="string"&&K[0]===`
112
+ `&&g.push(_i),K}var Lo=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,mi=new Map;function fr(g){var w=mi.get(g);if(w===void 0){if(!Lo.test(g))throw new Error("Invalid tag: "+g);w=R("<"+g),mi.set(g,w)}return w}var ja=R("<!DOCTYPE html>");function ia(g,w,A,$,K){switch(hn(w,A),gt(w,A),Pr(w,A,null),!A.suppressContentEditableWarning&&A.contentEditable&&A.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."),K.insertionMode!==Ar&&K.insertionMode!==xr&&w.indexOf("-")===-1&&typeof A.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 Ys(g,A,$);case"option":return Fa(g,A,$,K);case"textarea":return vi(g,A,$);case"input":return Na(g,A,$);case"menuitem":return ra(g,A,$);case"title":return sn(g,A,$);case"listing":case"pre":return ri(g,A,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 Mo(g,A,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 Qt(g,A,w,$);case"html":return K.insertionMode===zn&&g.push(ja),Qt(g,A,w,$);default:return w.indexOf("-")===-1&&typeof A.is!="string"?Qt(g,A,w,$):Vt(g,A,w,$)}}var us=R("</"),yn=R(">");function Fo(g,w,A){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(us,L(w),yn)}}function yi(g,w){for(var A=w.bootstrapChunks,$=0;$<A.length-1;$++)p(g,A[$]);return $<A.length?S(g,A[$]):!0}var cs=R('<template id="'),po=R('"></template>');function er(g,w,A){p(g,cs),p(g,w.placeholderPrefix);var $=L(A.toString(16));return p(g,$),S(g,po)}var f=R("<!--$-->"),m=R('<!--$?--><template id="'),C=R('"></template>'),O=R("<!--$!-->"),N=R("<!--/$-->"),B=R("<template"),U=R('"'),le=R(' data-dgst="'),oe=R(' data-msg="'),we=R(' data-stck="'),Le=R("></template>");function Be(g,w){return S(g,f)}function Ee(g,w,A){if(p(g,m),A===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return p(g,A),S(g,C)}function Ze(g,w,A,$,K){var ae;return ae=S(g,O),p(g,B),A&&(p(g,le),p(g,L(fn(A))),p(g,U)),$&&(p(g,oe),p(g,L(fn($))),p(g,U)),K&&(p(g,we),p(g,L(fn(K))),p(g,U)),ae=S(g,Le),ae}function ct(g,w){return S(g,N)}function _t(g,w){return S(g,N)}function Rt(g,w){return S(g,N)}var Ln=R('<div hidden id="'),dn=R('">'),jr=R("</div>"),Br=R('<svg aria-hidden="true" style="display:none" id="'),Wt=R('">'),$r=R("</svg>"),zt=R('<math aria-hidden="true" style="display:none" id="'),on=R('">'),go=R("</math>"),vo=R('<table hidden id="'),Tr=R('">'),k=R("</table>"),F=R('<table hidden><tbody id="'),z=R('">'),ne=R("</tbody></table>"),Se=R('<table hidden><tr id="'),Te=R('">'),He=R("</tr></table>"),nt=R('<table hidden><colgroup id="'),xt=R('">'),Nt=R("</colgroup></table>");function Dt(g,w,A,$){switch(A.insertionMode){case zn:case vn:return p(g,Ln),p(g,w.segmentPrefix),p(g,L($.toString(16))),S(g,dn);case Ar:return p(g,Br),p(g,w.segmentPrefix),p(g,L($.toString(16))),S(g,Wt);case xr:return p(g,zt),p(g,w.segmentPrefix),p(g,L($.toString(16))),S(g,on);case Mn:return p(g,vo),p(g,w.segmentPrefix),p(g,L($.toString(16))),S(g,Tr);case pi:return p(g,F),p(g,w.segmentPrefix),p(g,L($.toString(16))),S(g,z);case Mr:return p(g,Se),p(g,w.segmentPrefix),p(g,L($.toString(16))),S(g,Te);case ei:return p(g,nt),p(g,w.segmentPrefix),p(g,L($.toString(16))),S(g,xt);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}function Ct(g,w){switch(w.insertionMode){case zn:case vn:return S(g,jr);case Ar:return S(g,$r);case xr:return S(g,go);case Mn:return S(g,k);case pi:return S(g,ne);case Mr:return S(g,He);case ei:return S(g,Nt);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var $n="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)}",Cn='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()}}',Gn='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())}',oa=R($n+';$RS("'),fs=R('$RS("'),aa=R('","'),ii=R('")<\/script>');function Gs(g,w,A){p(g,w.startInlineScript),w.sentCompleteSegmentFunction?p(g,fs):(w.sentCompleteSegmentFunction=!0,p(g,oa)),p(g,w.segmentPrefix);var $=L(A.toString(16));return p(g,$),p(g,aa),p(g,w.placeholderPrefix),p(g,$),S(g,ii)}var mo=R(Cn+';$RC("'),ds=R('$RC("'),sa=R('","'),bi=R('")<\/script>');function Xi(g,w,A,$){if(p(g,w.startInlineScript),w.sentCompleteBoundaryFunction?p(g,ds):(w.sentCompleteBoundaryFunction=!0,p(g,mo)),A===null)throw new Error("An ID must have been assigned before we can complete the boundary.");var K=L($.toString(16));return p(g,A),p(g,sa),p(g,w.segmentPrefix),p(g,K),S(g,bi)}var qs=R(Gn+';$RX("'),Nu=R('$RX("'),la=R('"'),yo=R(")<\/script>"),dr=R(",");function Xs(g,w,A,$,K,ae){if(p(g,w.startInlineScript),w.sentClientRenderFunction?p(g,Nu):(w.sentClientRenderFunction=!0,p(g,qs)),A===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return p(g,A),p(g,la),($||K||ae)&&(p(g,dr),p(g,L(ps($||"")))),(K||ae)&&(p(g,dr),p(g,L(ps(K||"")))),ae&&(p(g,dr),p(g,L(ps(ae)))),S(g,yo)}var hs=/[<\u2028\u2029]/g;function ps(g){var w=JSON.stringify(g);return w.replace(hs,function(A){switch(A){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,ve=Symbol.for("react.element"),_e=Symbol.for("react.portal"),ke=Symbol.for("react.fragment"),Q=Symbol.for("react.strict_mode"),he=Symbol.for("react.profiler"),ce=Symbol.for("react.provider"),Ue=Symbol.for("react.context"),Ge=Symbol.for("react.forward_ref"),ft=Symbol.for("react.suspense"),dt=Symbol.for("react.suspense_list"),ut=Symbol.for("react.memo"),It=Symbol.for("react.lazy"),kt=Symbol.for("react.scope"),Yt=Symbol.for("react.debug_trace_mode"),Fn=Symbol.for("react.legacy_hidden"),ar=Symbol.for("react.default_value"),qn=Symbol.iterator,Vr="@@iterator";function Ki(g){if(g===null||typeof g!="object")return null;var w=qn&&g[qn]||g[Vr];return typeof w=="function"?w:null}function At(g,w,A){var $=g.displayName;if($)return $;var K=w.displayName||w.name||"";return K!==""?A+"("+K+")":A}function Vc(g){return g.displayName||"Context"}function En(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 _e:return"Portal";case he:return"Profiler";case Q:return"StrictMode";case ft:return"Suspense";case dt:return"SuspenseList"}if(typeof g=="object")switch(g.$$typeof){case Ue:var w=g;return Vc(w)+".Consumer";case ce:var A=g;return Vc(A._context)+".Provider";case Ge:return At(g,g.render,"ForwardRef");case ut:var $=g.displayName||null;return $!==null?$:En(g.type)||"Memo";case It:{var K=g,ae=K._payload,me=K._init;try{return En(me(ae))}catch{return null}}}return null}var ua=0,ju,kn,gs,vs,bo,ms,$l;function ys(){}ys.__reactDisabledLog=!0;function Bu(){{if(ua===0){ju=console.log,kn=console.info,gs=console.warn,vs=console.error,bo=console.group,ms=console.groupCollapsed,$l=console.groupEnd;var g={configurable:!0,enumerable:!0,value:ys,writable:!0};Object.defineProperties(console,{info:g,log:g,warn:g,error:g,group:g,groupCollapsed:g,groupEnd:g})}ua++}}function $u(){{if(ua--,ua===0){var g={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ee({},g,{value:ju}),info:ee({},g,{value:kn}),warn:ee({},g,{value:gs}),error:ee({},g,{value:vs}),group:ee({},g,{value:bo}),groupCollapsed:ee({},g,{value:ms}),groupEnd:ee({},g,{value:$l})})}ua<0&&i("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ba=n.ReactCurrentDispatcher,Vl;function No(g,w,A){{if(Vl===void 0)try{throw Error()}catch(K){var $=K.stack.trim().match(/\n( *(at )?)/);Vl=$&&$[1]||""}return`
113
+ `+Vl+g}}var Zi=!1,jo;{var Ks=typeof WeakMap=="function"?WeakMap:Map;jo=new Ks}function Zs(g,w){if(!g||Zi)return"";{var A=jo.get(g);if(A!==void 0)return A}var $;Zi=!0;var K=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ae;ae=Ba.current,Ba.current=null,Bu();try{if(w){var me=function(){throw Error()};if(Object.defineProperty(me.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(me,[])}catch(fe){$=fe}Reflect.construct(g,[],me)}else{try{me.call()}catch(fe){$=fe}g.call(me.prototype)}}else{try{throw Error()}catch(fe){$=fe}g()}}catch(fe){if(fe&&$&&typeof fe.stack=="string"){for(var Ae=fe.stack.split(`
114
+ `),h=$.stack.split(`
115
+ `),b=Ae.length-1,D=h.length-1;b>=1&&D>=0&&Ae[b]!==h[D];)D--;for(;b>=1&&D>=0;b--,D--)if(Ae[b]!==h[D]){if(b!==1||D!==1)do if(b--,D--,D<0||Ae[b]!==h[D]){var M=`
116
+ `+Ae[b].replace(" at new "," at ");return g.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",g.displayName)),typeof g=="function"&&jo.set(g,M),M}while(b>=1&&D>=0);break}}}finally{Zi=!1,Ba.current=ae,$u(),Error.prepareStackTrace=K}var Y=g?g.displayName||g.name:"",ie=Y?No(Y):"";return typeof g=="function"&&jo.set(g,ie),ie}function Hl(g,w,A){return Zs(g,!0)}function Js(g,w,A){return Zs(g,!1)}function bs(g){var w=g.prototype;return!!(w&&w.isReactComponent)}function Qs(g,w,A){if(g==null)return"";if(typeof g=="function")return Zs(g,bs(g));if(typeof g=="string")return No(g);switch(g){case ft:return No("Suspense");case dt:return No("SuspenseList")}if(typeof g=="object")switch(g.$$typeof){case Ge:return Js(g.render);case ut:return Qs(g.type,w,A);case It:{var $=g,K=$._payload,ae=$._init;try{return Qs(ae(K),w,A)}catch{}}}return""}var Vu={},Hu=n.ReactDebugCurrentFrame;function ws(g){if(g){var w=g._owner,A=Qs(g.type,g._source,w?w.type:null);Hu.setExtraStackFrame(A)}else Hu.setExtraStackFrame(null)}function Uu(g,w,A,$,K){{var ae=Function.call.bind(ue);for(var me in g)if(ae(g,me)){var Ae=void 0;try{if(typeof g[me]!="function"){var h=Error(($||"React class")+": "+A+" type `"+me+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof g[me]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}Ae=g[me](w,me,$,A,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(b){Ae=b}Ae&&!(Ae instanceof Error)&&(ws(K),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",A,me,typeof Ae),ws(null)),Ae instanceof Error&&!(Ae.message in Vu)&&(Vu[Ae.message]=!0,ws(K),i("Failed %s type: %s",A,Ae.message),ws(null))}}}var Nn;Nn={};var jn={};Object.freeze(jn);function Wu(g,w){{var A=g.contextTypes;if(!A)return jn;var $={};for(var K in A)$[K]=w[K];{var ae=En(g)||"Unknown";Uu(A,$,"context",ae)}return $}}function zu(g,w,A,$){{if(typeof g.getChildContext!="function"){{var K=En(w)||"Unknown";Nn[K]||(Nn[K]=!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.",K,K))}return A}var ae=g.getChildContext();for(var me in ae)if(!(me in $))throw new Error((En(w)||"Unknown")+'.getChildContext(): key "'+me+'" is not defined in childContextTypes.');{var Ae=En(w)||"Unknown";Uu($,ae,"child context",Ae)}return ee({},A,ae)}}var Bo;Bo={};var Hc=null,$o=null;function Ji(g){g.context._currentValue=g.parentValue}function el(g){g.context._currentValue=g.value}function Hr(g,w){if(g!==w){Ji(g);var A=g.parent,$=w.parent;if(A===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.");Hr(A,$)}el(w)}}function ca(g){Ji(g);var w=g.parent;w!==null&&ca(w)}function fa(g){var w=g.parent;w!==null&&fa(w),el(g)}function da(g,w){Ji(g);var A=g.parent;if(A===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");A.depth===w.depth?Hr(A,w):da(A,w)}function ha(g,w){var A=w.parent;if(A===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");g.depth===A.depth?Hr(g,A):ha(g,A),el(w)}function tl(g){var w=$o,A=g;w!==A&&(w===null?fa(A):A===null?ca(w):w.depth===A.depth?Hr(w,A):w.depth>A.depth?da(w,A):ha(w,A),$o=A)}function Uc(g,w){var A;A=g._currentValue,g._currentValue=w,g._currentRenderer!==void 0&&g._currentRenderer!==null&&g._currentRenderer!==Bo&&i("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),g._currentRenderer=Bo;var $=$o,K={parent:$,depth:$===null?0:$.depth+1,context:g,parentValue:A,value:w};return $o=K,K}function Wc(g){var w=$o;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 A=w.parentValue;A===ar?w.context._currentValue=w.context._defaultValue:w.context._currentValue=A,g._currentRenderer!==void 0&&g._currentRenderer!==null&&g._currentRenderer!==Bo&&i("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),g._currentRenderer=Bo}return $o=w.parent}function Ul(){return $o}function nl(g){var w=g._currentValue;return w}function xs(g){return g._reactInternals}function rl(g,w){g._reactInternals=w}var $a={},G={},pa,Va,Ur,qt,Wl,Ss,il,wo,Ts;{pa=new Set,Va=new Set,Ur=new Set,il=new Set,qt=new Set,wo=new Set,Ts=new Set;var zl=new Set;Ss=function(g,w){if(!(g===null||typeof g=="function")){var A=w+"_"+g;zl.has(A)||(zl.add(A),i("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",w,g))}},Wl=function(g,w){if(w===void 0){var A=En(g)||"Component";qt.has(A)||(qt.add(A),i("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",A))}}}function Yl(g,w){{var A=g.constructor,$=A&&En(A)||"ReactClass",K=$+"."+w;if($a[K])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,$),$a[K]=!0}}var Gl={isMounted:function(g){return!1},enqueueSetState:function(g,w,A){var $=xs(g);$.queue===null?Yl(g,"setState"):($.queue.push(w),A!=null&&Ss(A,"setState"))},enqueueReplaceState:function(g,w,A){var $=xs(g);$.replace=!0,$.queue=[w],A!=null&&Ss(A,"setState")},enqueueForceUpdate:function(g,w){var A=xs(g);A.queue===null?Yl(g,"forceUpdate"):w!=null&&Ss(w,"setState")}};function zc(g,w,A,$,K){var ae=A(K,$);Wl(w,ae);var me=ae==null?$:ee({},$,ae);return me}function xo(g,w,A){var $=jn,K=g.contextType;if("contextType"in g){var ae=K===null||K!==void 0&&K.$$typeof===Ue&&K._context===void 0;if(!ae&&!Ts.has(g)){Ts.add(g);var me="";K===void 0?me=" 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 K!="object"?me=" However, it is set to a "+typeof K+".":K.$$typeof===ce?me=" Did you accidentally pass the Context.Provider instead?":K._context!==void 0?me=" Did you accidentally pass the Context.Consumer instead?":me=" However, it is set to an object with keys {"+Object.keys(K).join(", ")+"}.",i("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",En(g)||"Component",me)}}typeof K=="object"&&K!==null?$=nl(K):$=A;var Ae=new g(w,$);{if(typeof g.getDerivedStateFromProps=="function"&&(Ae.state===null||Ae.state===void 0)){var h=En(g)||"Component";pa.has(h)||(pa.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,D=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?D="componentWillReceiveProps":typeof Ae.UNSAFE_componentWillReceiveProps=="function"&&(D="UNSAFE_componentWillReceiveProps"),typeof Ae.componentWillUpdate=="function"&&Ae.componentWillUpdate.__suppressDeprecationWarning!==!0?M="componentWillUpdate":typeof Ae.UNSAFE_componentWillUpdate=="function"&&(M="UNSAFE_componentWillUpdate"),b!==null||D!==null||M!==null){var Y=En(g)||"Component",ie=typeof g.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Ur.has(Y)||(Ur.add(Y),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`,Y,ie,b!==null?`
124
+ `+b:"",D!==null?`
125
+ `+D:"",M!==null?`
126
+ `+M:""))}}}return Ae}function Yc(g,w,A){{var $=En(w)||"Component",K=g.render;K||(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&&!wo.has(w)&&(wo.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.",En(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 ae=g.props!==A;g.props!==void 0&&ae&&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"&&!Va.has(w)&&(Va.add(w),i("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",En(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 me=g.state;me&&(typeof me!="object"||ki(me))&&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 Vf(g,w){var A=w.state;if(typeof w.componentWillMount=="function"){if(w.componentWillMount.__suppressDeprecationWarning!==!0){var $=En(g)||"Unknown";G[$]||(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`,$),G[$]=!0)}w.componentWillMount()}typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount(),A!==w.state&&(i("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",En(g)||"Component"),Gl.enqueueReplaceState(w,w.state,null))}function Hf(g,w,A,$){if(g.queue!==null&&g.queue.length>0){var K=g.queue,ae=g.replace;if(g.queue=null,g.replace=!1,ae&&K.length===1)w.state=K[0];else{for(var me=ae?K[0]:w.state,Ae=!0,h=ae?1:0;h<K.length;h++){var b=K[h],D=typeof b=="function"?b.call(w,me,A,$):b;D!=null&&(Ae?(Ae=!1,me=ee({},me,D)):ee(me,D))}w.state=me}}else g.queue=null}function Gc(g,w,A,$){Yc(g,w,A);var K=g.state!==void 0?g.state:null;g.updater=Gl,g.props=A,g.state=K;var ae={queue:[],replace:!1};rl(g,ae);var me=w.contextType;if(typeof me=="object"&&me!==null?g.context=nl(me):g.context=$,g.state===A){var Ae=En(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=zc(g,w,h,K,A)),typeof w.getDerivedStateFromProps!="function"&&typeof g.getSnapshotBeforeUpdate!="function"&&(typeof g.UNSAFE_componentWillMount=="function"||typeof g.componentWillMount=="function")&&(Vf(w,g),Hf(ae,g,A,$))}var Uf={id:1,overflow:""};function Vo(g){var w=g.overflow,A=g.id,$=A&~Wf(A);return $.toString(32)+w}function ql(g,w,A){var $=g.id,K=g.overflow,ae=Xl($)-1,me=$&~(1<<ae),Ae=A+1,h=Xl(w)+ae;if(h>30){var b=ae-ae%5,D=(1<<b)-1,M=(me&D).toString(32),Y=me>>b,ie=ae-b,fe=Xl(w)+ie,Ie=Ae<<ie,et=Ie|Y,pt=M+K;return{id:1<<fe|et,overflow:pt}}else{var St=Ae<<ae,Mt=St|me,bn=K;return{id:1<<h|Mt,overflow:bn}}}function Xl(g){return 32-Yu(g)}function Wf(g){return 1<<Xl(g)-1}var Yu=Math.clz32?Math.clz32:zf,Kl=Math.log,Ha=Math.LN2;function zf(g){var w=g>>>0;return w===0?32:31-(Kl(w)/Ha|0)|0}function Yf(g,w){return g===w&&(g!==0||1/g===1/w)||g!==g&&w!==w}var Qi=typeof Object.is=="function"?Object.is:Yf,Ho=null,Gu=null,Zl=null,nn=null,Ua=!1,ga=!1,ln=0,Pi=null,Wa=0,Cs=25,Vn=!1,Ri;function za(){if(Ho===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 Vn&&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"),Ho}function eo(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.",Ri),!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`,Ri,"["+g.join(", ")+"]","["+w.join(", ")+"]");for(var A=0;A<w.length&&A<g.length;A++)if(!Qi(g[A],w[A]))return!1;return!0}function Ya(){if(Wa>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function hr(){return nn===null?Zl===null?(Ua=!1,Zl=nn=Ya()):(Ua=!0,nn=Zl):nn.next===null?(Ua=!1,nn=nn.next=Ya()):(Ua=!0,nn=nn.next),nn}function qu(g,w){Ho=w,Gu=g,Vn=!1,ln=0}function va(g,w,A,$){for(;ga;)ga=!1,ln=0,Wa+=1,nn=null,A=g(w,$);return Xu(),A}function Wr(){var g=ln!==0;return g}function Xu(){Vn=!1,Ho=null,Gu=null,ga=!1,Zl=null,Wa=0,Pi=null,nn=null}function qc(g){return Vn&&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 Ku(g){return Ri="useContext",za(),nl(g)}function Uo(g,w){return typeof w=="function"?w(g):w}function ma(g){return Ri="useState",Zu(Uo,g)}function Zu(g,w,A){if(g!==Uo&&(Ri="useReducer"),Ho=za(),nn=hr(),Ua){var $=nn.queue,K=$.dispatch;if(Pi!==null){var ae=Pi.get($);if(ae!==void 0){Pi.delete($);var me=nn.memoizedState,Ae=ae;do{var h=Ae.action;Vn=!0,me=g(me,h),Vn=!1,Ae=Ae.next}while(Ae!==null);return nn.memoizedState=me,[me,K]}}return[nn.memoizedState,K]}else{Vn=!0;var b;g===Uo?b=typeof w=="function"?w():w:b=A!==void 0?A(w):w,Vn=!1,nn.memoizedState=b;var D=nn.queue={last:null,dispatch:null},M=D.dispatch=Ju.bind(null,Ho,D);return[nn.memoizedState,M]}}function Jl(g,w){Ho=za(),nn=hr();var A=w===void 0?null:w;if(nn!==null){var $=nn.memoizedState;if($!==null&&A!==null){var K=$[1];if(eo(A,K))return $[0]}}Vn=!0;var ae=g();return Vn=!1,nn.memoizedState=[ae,A],ae}function Ql(g){Ho=za(),nn=hr();var w=nn.memoizedState;if(w===null){var A={current:g};return Object.seal(A),nn.memoizedState=A,A}else return w}function Xc(g,w){Ri="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 Ju(g,w,A){if(Wa>=Cs)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(g===Ho){ga=!0;var $={action:A,next:null};Pi===null&&(Pi=new Map);var K=Pi.get(w);if(K===void 0)Pi.set(w,$);else{for(var ae=K;ae.next!==null;)ae=ae.next;ae.next=$}}}function pr(g,w){return Jl(function(){return g},w)}function Qu(g,w,A){return za(),w(g._source)}function Kc(g,w,A){if(A===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return A()}function So(g){return za(),g}function ec(){throw new Error("startTransition cannot be called during server rendering.")}function eu(){return za(),[!1,ec]}function Ga(){var g=Gu,w=Vo(g.treeContext),A=al;if(A===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var $=ln++;return Sr(A,w,$)}function ol(){}var Cr={readContext:qc,useContext:Ku,useMemo:Jl,useReducer:Zu,useRef:Ql,useState:ma,useInsertionEffect:ol,useLayoutEffect:Xc,useCallback:pr,useImperativeHandle:ol,useEffect:ol,useDebugValue:ol,useDeferredValue:So,useTransition:eu,useId:Ga,useMutableSource:Qu,useSyncExternalStore:Kc},al=null;function sl(g){al=g}function Zc(g){try{var w="",A=g;do{switch(A.tag){case 0:w+=No(A.type,null,null);break;case 1:w+=Js(A.type,null,null);break;case 2:w+=Hl(A.type,null,null);break}A=A.parent}while(A);return w}catch($){return`
138
+ Error generating stack: `+$.message+`
139
+ `+$.stack}}var ll=n.ReactCurrentDispatcher,Es=n.ReactDebugCurrentFrame,tc=0,Ii=1,ul=2,tu=3,qa=4,ks=0,nc=1,Xa=2,rc=12800;function ic(g){return console.error(g),null}function To(){}function Gf(g,w,A,$,K,ae,me,Ae,h){var b=[],D=new Set,M={destination:null,responseState:w,progressiveChunkSize:$===void 0?rc:$,status:ks,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:D,pingedTasks:b,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:K===void 0?ic:K,onAllReady:ae===void 0?To:ae,onShellReady:me===void 0?To:me,onShellError:Ae===void 0?To:Ae,onFatalError:h===void 0?To:h},Y=nu(M,0,null,A,!1,!1);Y.parentFlushed=!0;var ie=cl(M,g,null,Y,D,jn,Hc,Uf);return b.push(ie),M}function qf(g,w){var A=g.pingedTasks;A.push(w),A.length===1&&s(function(){return vl(g)})}function Os(g,w){return{id:zi,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:w,errorDigest:null}}function cl(g,w,A,$,K,ae,me,Ae){g.allPendingTasks++,A===null?g.pendingRootTasks++:A.pendingTasks++;var h={node:w,ping:function(){return qf(g,h)},blockedBoundary:A,blockedSegment:$,abortSet:K,legacyContext:ae,context:me,treeContext:Ae};return h.componentStack=null,K.add(h),h}function nu(g,w,A,$,K,ae){return{status:tc,id:-1,index:w,parentFlushed:!1,chunks:[],children:[],formatContext:$,boundary:A,lastPushedText:K,textEmbedded:ae}}var to=null;function Ds(){return to===null||to.componentStack===null?"":Zc(to.componentStack)}function Wo(g,w){g.componentStack={tag:0,parent:g.componentStack,type:w}}function no(g,w){g.componentStack={tag:1,parent:g.componentStack,type:w}}function _s(g,w){g.componentStack={tag:2,parent:g.componentStack,type:w}}function Ai(g){g.componentStack===null?i("Unexpectedly popped too many stack frames. This is a bug in React."):g.componentStack=g.componentStack.parent}var Ka=null;function ru(g,w){{var A;typeof w=="string"?A=w:w&&typeof w.message=="string"?A=w.message:A=String(w);var $=Ka||Ds();Ka=null,g.errorMessage=A,g.errorComponentStack=$}}function Mi(g,w){var A=g.onError(w);if(A!=null&&typeof A!="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 A+'" instead');return A}function zo(g,w){var A=g.onShellError;A(w);var $=g.onFatalError;$(w),g.destination!==null?(g.status=Xa,H(g.destination,w)):(g.status=nc,g.fatalError=w)}function oc(g,w,A){Wo(w,"Suspense");var $=w.blockedBoundary,K=w.blockedSegment,ae=A.fallback,me=A.children,Ae=new Set,h=Os(g,Ae),b=K.chunks.length,D=nu(g,b,h,K.formatContext,!1,!1);K.children.push(D),K.lastPushedText=!1;var M=nu(g,0,null,K.formatContext,!1,!1);M.parentFlushed=!0,w.blockedBoundary=h,w.blockedSegment=M;try{if(Co(g,w,me),Lr(M.chunks,g.responseState,M.lastPushedText,M.textEmbedded),M.status=Ii,gl(h,M),h.pendingTasks===0){Ai(w);return}}catch(ie){M.status=qa,h.forceClientRender=!0,h.errorDigest=Mi(g,ie),ru(h,ie)}finally{w.blockedBoundary=$,w.blockedSegment=K}var Y=cl(g,ae,$,D,Ae,w.legacyContext,w.context,w.treeContext);Y.componentStack=w.componentStack,g.pingedTasks.push(Y),Ai(w)}function Za(g,w,A,$){Wo(w,A);var K=w.blockedSegment,ae=ia(K.chunks,A,$,g.responseState,K.formatContext);K.lastPushedText=!1;var me=K.formatContext;K.formatContext=ni(me,A,$),Co(g,w,ae),K.formatContext=me,Fo(K.chunks,A),K.lastPushedText=!1,Ai(w)}function fl(g){return g.prototype&&g.prototype.isReactComponent}function iu(g,w,A,$,K){var ae={};qu(w,ae);var me=A($,K);return va(A,$,me,K)}function Jc(g,w,A,$,K){var ae=A.render();A.props!==K&&(Ps||i("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",En($)||"a component"),Ps=!0);{var me=$.childContextTypes;if(me!=null){var Ae=w.legacyContext,h=zu(A,$,Ae,me);w.legacyContext=h,zr(g,w,ae),w.legacyContext=Ae;return}}zr(g,w,ae)}function ac(g,w,A,$){_s(w,A);var K=Wu(A,w.legacyContext),ae=xo(A,$,K);Gc(ae,A,$,K),Jc(g,w,ae,A,$),Ai(w)}var Gt={},dl={},Qc={},Ja={},Ps=!1,sc={},lc=!1,oi=!1,uc=!1;function hl(g,w,A,$){var K;if(K=Wu(A,w.legacyContext),no(w,A),A.prototype&&typeof A.prototype.render=="function"){var ae=En(A)||"Unknown";Gt[ae]||(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.",ae,ae),Gt[ae]=!0)}var me=iu(g,w,A,$,K),Ae=Wr();if(typeof me=="object"&&me!==null&&typeof me.render=="function"&&me.$$typeof===void 0){var h=En(A)||"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 me=="object"&&me!==null&&typeof me.render=="function"&&me.$$typeof===void 0){{var b=En(A)||"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)}Gc(me,A,$,K),Jc(g,w,me,A,$)}else if(ou(A),Ae){var D=w.treeContext,M=1,Y=0;w.treeContext=ql(D,M,Y);try{zr(g,w,me)}finally{w.treeContext=D}}else zr(g,w,me);Ai(w)}function ou(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=En(g)||"Unknown";sc[w]||(i("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",w),sc[w]=!0)}if(typeof g.getDerivedStateFromProps=="function"){var A=En(g)||"Unknown";Ja[A]||(i("%s: Function components do not support getDerivedStateFromProps.",A),Ja[A]=!0)}if(typeof g.contextType=="object"&&g.contextType!==null){var $=En(g)||"Unknown";Qc[$]||(i("%s: Function components do not support contextType.",$),Qc[$]=!0)}}}function au(g,w){if(g&&g.defaultProps){var A=ee({},w),$=g.defaultProps;for(var K in $)A[K]===void 0&&(A[K]=$[K]);return A}return w}function ef(g,w,A,$,K){no(w,A.render);var ae=iu(g,w,A.render,$,K),me=Wr();if(me){var Ae=w.treeContext,h=1,b=0;w.treeContext=ql(Ae,h,b);try{zr(g,w,ae)}finally{w.treeContext=Ae}}else zr(g,w,ae);Ai(w)}function wi(g,w,A,$,K){var ae=A.type,me=au(ae,$);Rs(g,w,ae,me,K)}function Yo(g,w,A,$){A._context===void 0?A!==A.Consumer&&(uc||(uc=!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?"))):A=A._context;var K=$.children;typeof K!="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 ae=nl(A),me=K(ae);zr(g,w,me)}function cc(g,w,A,$){var K=A._context,ae=$.value,me=$.children,Ae;Ae=w.context,w.context=Uc(K,ae),zr(g,w,me),w.context=Wc(K),Ae!==w.context&&i("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function tf(g,w,A,$,K){Wo(w,"Lazy");var ae=A._payload,me=A._init,Ae=me(ae),h=au(Ae,$);Rs(g,w,Ae,h,K),Ai(w)}function Rs(g,w,A,$,K){if(typeof A=="function")if(fl(A)){ac(g,w,A,$);return}else{hl(g,w,A,$);return}if(typeof A=="string"){Za(g,w,A,$);return}switch(A){case Fn:case Yt:case Q:case he:case ke:{zr(g,w,$.children);return}case dt:{Wo(w,"SuspenseList"),zr(g,w,$.children),Ai(w);return}case kt:throw new Error("ReactDOMServer does not yet support scope components.");case ft:{oc(g,w,$);return}}if(typeof A=="object"&&A!==null)switch(A.$$typeof){case Ge:{ef(g,w,A,$,K);return}case ut:{wi(g,w,A,$,K);return}case ce:{cc(g,w,A,$);return}case Ue:{Yo(g,w,A,$);return}case It:{tf(g,w,A,$);return}}var ae="";throw(A===void 0||typeof A=="object"&&A!==null&&Object.keys(A).length===0)&&(ae+=" 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: "+(A==null?A:typeof A)+"."+ae))}function nf(g,w){typeof Symbol=="function"&&g[Symbol.toStringTag]==="Generator"&&(lc||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."),lc=!0),g.entries===w&&(oi||i("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),oi=!0)}function zr(g,w,A){try{return su(g,w,A)}catch($){throw typeof $=="object"&&$!==null&&typeof $.then=="function"||(Ka=Ka!==null?Ka:Ds()),$}}function su(g,w,A){if(w.node=A,typeof A=="object"&&A!==null){switch(A.$$typeof){case ve:{var $=A,K=$.type,ae=$.props,me=$.ref;Rs(g,w,K,ae,me);return}case _e:throw new Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case It:{var Ae=A,h=Ae._payload,b=Ae._init,D;try{D=b(h)}catch(St){throw typeof St=="object"&&St!==null&&typeof St.then=="function"&&Wo(w,"Lazy"),St}zr(g,w,D);return}}if(ki(A)){lu(g,w,A);return}var M=Ki(A);if(M){nf(A,M);var Y=M.call(A);if(Y){var ie=Y.next();if(!ie.done){var fe=[];do fe.push(ie.value),ie=Y.next();while(!ie.done);lu(g,w,fe);return}return}}var Ie=Object.prototype.toString.call(A);throw new Error("Objects are not valid as a React child (found: "+(Ie==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":Ie)+"). If you meant to render a collection of children, use an array instead.")}if(typeof A=="string"){var et=w.blockedSegment;et.lastPushedText=Yi(w.blockedSegment.chunks,A,g.responseState,et.lastPushedText);return}if(typeof A=="number"){var pt=w.blockedSegment;pt.lastPushedText=Yi(w.blockedSegment.chunks,""+A,g.responseState,pt.lastPushedText);return}typeof A=="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 lu(g,w,A){for(var $=A.length,K=0;K<$;K++){var ae=w.treeContext;w.treeContext=ql(ae,$,K);try{Co(g,w,A[K])}finally{w.treeContext=ae}}}function Yr(g,w,A){var $=w.blockedSegment,K=$.chunks.length,ae=nu(g,K,null,$.formatContext,$.lastPushedText,!0);$.children.push(ae),$.lastPushedText=!1;var me=cl(g,w.node,w.blockedBoundary,ae,w.abortSet,w.legacyContext,w.context,w.treeContext);w.componentStack!==null&&(me.componentStack=w.componentStack.parent);var Ae=me.ping;A.then(Ae,Ae)}function Co(g,w,A){var $=w.blockedSegment.formatContext,K=w.legacyContext,ae=w.context,me=null;me=w.componentStack;try{return zr(g,w,A)}catch(Ae){if(Xu(),typeof Ae=="object"&&Ae!==null&&typeof Ae.then=="function"){Yr(g,w,Ae),w.blockedSegment.formatContext=$,w.legacyContext=K,w.context=ae,tl(ae),w.componentStack=me;return}else throw w.blockedSegment.formatContext=$,w.legacyContext=K,w.context=ae,tl(ae),w.componentStack=me,Ae}}function rf(g,w,A,$){var K=Mi(g,$);if(w===null?zo(g,$):(w.pendingTasks--,w.forceClientRender||(w.forceClientRender=!0,w.errorDigest=K,ru(w,$),w.parentFlushed&&g.clientRenderedBoundaries.push(w))),g.allPendingTasks--,g.allPendingTasks===0){var ae=g.onAllReady;ae()}}function ya(g){var w=this,A=g.blockedBoundary,$=g.blockedSegment;$.status=tu,uu(w,A,$)}function pl(g,w,A){var $=g.blockedBoundary,K=g.blockedSegment;if(K.status=tu,$===null)w.allPendingTasks--,w.status!==Xa&&(w.status=Xa,w.destination!==null&&P(w.destination));else{if($.pendingTasks--,!$.forceClientRender){$.forceClientRender=!0;var ae=A===void 0?new Error("The render was aborted by the server without a reason."):A;$.errorDigest=w.onError(ae);{var me="The server did not finish this Suspense boundary: ";ae&&typeof ae.message=="string"?ae=me+ae.message:ae=me+String(ae);var Ae=to;to=g;try{ru($,ae)}finally{to=Ae}}$.parentFlushed&&w.clientRenderedBoundaries.push($)}if($.fallbackAbortableTasks.forEach(function(b){return pl(b,w,A)}),$.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 A=w.children[0];A.id=w.id,A.parentFlushed=!0,A.status===Ii&&gl(g,A)}else{var $=g.completedSegments;$.push(w)}}function uu(g,w,A){if(w===null){if(A.parentFlushed){if(g.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");g.completedRootSegment=A}if(g.pendingRootTasks--,g.pendingRootTasks===0){g.onShellError=To;var $=g.onShellReady;$()}}else if(w.pendingTasks--,!w.forceClientRender){if(w.pendingTasks===0)A.parentFlushed&&A.status===Ii&&gl(w,A),w.parentFlushed&&g.completedBoundaries.push(w),w.fallbackAbortableTasks.forEach(ya,g),w.fallbackAbortableTasks.clear();else if(A.parentFlushed&&A.status===Ii){gl(w,A);var K=w.completedSegments;K.length===1&&w.parentFlushed&&g.partialBoundaries.push(w)}}if(g.allPendingTasks--,g.allPendingTasks===0){var ae=g.onAllReady;ae()}}function of(g,w){var A=w.blockedSegment;if(A.status===tc){tl(w.context);var $=null;$=to,to=w;try{zr(g,w,w.node),Lr(A.chunks,g.responseState,A.lastPushedText,A.textEmbedded),w.abortSet.delete(w),A.status=Ii,uu(g,w.blockedBoundary,A)}catch(ae){if(Xu(),typeof ae=="object"&&ae!==null&&typeof ae.then=="function"){var K=w.ping;ae.then(K,K)}else w.abortSet.delete(w),A.status=qa,rf(g,w.blockedBoundary,A,ae)}finally{to=$}}}function vl(g){if(g.status!==Xa){var w=Ul(),A=ll.current;ll.current=Cr;var $;$=Es.getCurrentStack,Es.getCurrentStack=Ds;var K=al;sl(g.responseState);try{var ae=g.pingedTasks,me;for(me=0;me<ae.length;me++){var Ae=ae[me];of(g,Ae)}ae.splice(0,me),g.destination!==null&&xi(g,g.destination)}catch(h){Mi(g,h),zo(g,h)}finally{sl(K),ll.current=A,Es.getCurrentStack=$,A===Cr&&tl(w)}}}function ml(g,w,A){switch(A.parentFlushed=!0,A.status){case tc:{var $=A.id=g.nextSegmentId++;return A.lastPushedText=!1,A.textEmbedded=!1,er(w,g.responseState,$)}case Ii:{A.status=ul;for(var K=!0,ae=A.chunks,me=0,Ae=A.children,h=0;h<Ae.length;h++){for(var b=Ae[h];me<b.index;me++)p(w,ae[me]);K=yl(g,w,b)}for(;me<ae.length-1;me++)p(w,ae[me]);return me<ae.length&&(K=S(w,ae[me])),K}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,A){var $=A.boundary;if($===null)return ml(g,w,A);if($.parentFlushed=!0,$.forceClientRender)return Ze(w,g.responseState,$.errorDigest,$.errorMessage,$.errorComponentStack),ml(g,w,A),Rt(w,g.responseState);if($.pendingTasks>0){$.rootSegmentID=g.nextSegmentId++,$.completedSegments.length>0&&g.partialBoundaries.push($);var K=$.id=Rn(g.responseState);return Ee(w,g.responseState,K),ml(g,w,A),_t(w,g.responseState)}else{if($.byteSize>g.progressiveChunkSize)return $.rootSegmentID=g.nextSegmentId++,g.completedBoundaries.push($),Ee(w,g.responseState,$.id),ml(g,w,A),_t(w,g.responseState);Be(w,g.responseState);var ae=$.completedSegments;if(ae.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var me=ae[0];return yl(g,w,me),ct(w,g.responseState)}}function fc(g,w,A){return Xs(w,g.responseState,A.id,A.errorDigest,A.errorMessage,A.errorComponentStack)}function bl(g,w,A){return Dt(w,g.responseState,A.formatContext,A.id),yl(g,w,A),Ct(w,A.formatContext)}function Is(g,w,A){for(var $=A.completedSegments,K=0;K<$.length;K++){var ae=$[K];Er(g,w,A,ae)}return $.length=0,Xi(w,g.responseState,A.id,A.rootSegmentID)}function af(g,w,A){for(var $=A.completedSegments,K=0;K<$.length;K++){var ae=$[K];if(!Er(g,w,A,ae))return K++,$.splice(0,K),!1}return $.splice(0,K),!0}function Er(g,w,A,$){if($.status===ul)return!0;var K=$.id;if(K===-1){var ae=$.id=A.rootSegmentID;if(ae===-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,$),Gs(w,g.responseState,K)}function xi(g,w){v();try{var A=g.completedRootSegment;A!==null&&g.pendingRootTasks===0&&(yl(g,w,A),g.completedRootSegment=null,yi(w,g.responseState));var $=g.clientRenderedBoundaries,K;for(K=0;K<$.length;K++){var ae=$[K];fc(g,w,ae)}$.splice(0,K);var me=g.completedBoundaries;for(K=0;K<me.length;K++){var Ae=me[K];Is(g,w,Ae)}me.splice(0,K),T(w),v(w);var h=g.partialBoundaries;for(K=0;K<h.length;K++){var b=h[K];if(!af(g,w,b)){g.destination=null,K++,h.splice(0,K);return}}h.splice(0,K);var D=g.completedBoundaries;for(K=0;K<D.length;K++){var M=D[K];Is(g,w,M)}D.splice(0,K)}finally{T(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."),P(w))}}function Xf(g){s(function(){return vl(g)})}function sf(g,w){if(g.status===nc){g.status=Xa,H(w,g.fatalError);return}if(g.status!==Xa&&g.destination===null){g.destination=w;try{xi(g,w)}catch(A){Mi(g,A),zo(g,A)}}}function Qa(g,w){try{var A=g.abortableTasks;A.forEach(function($){return pl($,g,w)}),A.clear(),g.destination!==null&&xi(g,g.destination)}catch($){Mi(g,$),zo(g,$)}}function As(g,w){return new Promise(function(A,$){var K,ae,me=new Promise(function(Y,ie){ae=Y,K=ie});function Ae(){var Y=new ReadableStream({type:"bytes",pull:function(ie){sf(b,ie)},cancel:function(ie){Qa(b)}},{highWaterMark:0});Y.allReady=me,A(Y)}function h(Y){me.catch(function(){}),$(Y)}var b=Gf(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,ae,Ae,h,K);if(w&&w.signal){var D=w.signal,M=function(){Qa(b,D.reason),D.removeEventListener("abort",M)};D.addEventListener("abort",M)}Xf(b)})}Hh.renderToReadableStream=As,Hh.version=t}()),Hh}var Mc,Fm;process.env.NODE_ENV==="production"?(Mc=T4(),Fm=C4()):(Mc=E4(),Fm=k4());Mc.version;var O4=Mc.renderToString;Mc.renderToStaticMarkup;Mc.renderToNodeStream;Mc.renderToStaticNodeStream;Fm.renderToReadableStream;var D4=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function SO(e,t){return e(t={exports:{}},t.exports),t.exports}var _4=SO(function(e){(function(t){var n=function(L,R,H){if(!c(R)||v(R)||p(R)||S(R)||u(R))return R;var W,te=0,J=0;if(d(R))for(W=[],J=R.length;te<J;te++)W.push(n(L,R[te],H));else for(var de in W={},R)Object.prototype.hasOwnProperty.call(R,de)&&(W[L(de,H)]=n(L,R[de],H));return W},r=function(L){return T(L)?L:(L=L.replace(/[\-_\s]+(.)?/g,function(R,H){return H?H.toUpperCase():""})).substr(0,1).toLowerCase()+L.substr(1)},i=function(L){var R=r(L);return R.substr(0,1).toUpperCase()+R.substr(1)},o=function(L,R){return function(H,W){var te=(W=W||{}).separator||"_",J=W.split||/(?=[A-Z])/;return H.split(J).join(te)}(L,R).toLowerCase()},s=Object.prototype.toString,u=function(L){return typeof L=="function"},c=function(L){return L===Object(L)},d=function(L){return s.call(L)=="[object Array]"},v=function(L){return s.call(L)=="[object Date]"},p=function(L){return s.call(L)=="[object RegExp]"},S=function(L){return s.call(L)=="[object Boolean]"},T=function(L){return(L-=0)==L},P=function(L,R){var H=R&&"process"in R?R.process:R;return typeof H!="function"?L:function(W,te){return H(W,L,te)}},I={camelize:r,decamelize:o,pascalize:i,depascalize:o,camelizeKeys:function(L,R){return n(P(r,R),L)},decamelizeKeys:function(L,R){return n(P(o,R),L,R)},pascalizeKeys:function(L,R){return n(P(i,R),L)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=I:t.humps=I})(D4)}).decamelize,P4=function(e){if(Array.isArray(e))return e},R4=function(e,t){if(typeof Symbol<"u"&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var s,u=e[Symbol.iterator]();!(r=(s=u.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(c){i=!0,o=c}finally{try{r||u.return==null||u.return()}finally{if(i)throw o}}return n}},c1=function(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},I4=function(e,t){if(e){if(typeof e=="string")return c1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c1(e,t):void 0}},A4=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.`)},M4=function(e,t){return P4(e)||R4(e,t)||I4(e,t)||A4()},TO=SO(function(e){function t(){return e.exports=t=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},t.apply(this,arguments)}e.exports=t}),L4=function(e,t){if(e==null)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i},CO=function(e,t){if(e==null)return{};var n,r,i=L4(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},F4=X.createContext(null);function EO(e){var t=e.children,n=t===void 0?"":t,r=CO(e,["children"]);return typeof n!="string"&&(n=O4(n)),X.createElement("template",TO({},r,{dangerouslySetInnerHTML:{__html:n}}))}function kO(e){var t=e.root,n=e.children;return zm.createPortal(n===void 0?null:n,t)}function N4(e){var t=X.forwardRef(function(n,r){var i,o,s=n.mode,u=s===void 0?"open":s,c=n.delegatesFocus,d=c!==void 0&&c,v=n.styleSheets,p=v===void 0?[]:v,S=n.ssr,T=S!==void 0&&S,P=n.children,I=CO(n,["mode","delegatesFocus","styleSheets","ssr","children"]),L=(o=X.useRef((i=r)&&i.current),X.useEffect(function(){i&&(i.current=o.current)},[i]),o),R=X.useState(null),H=M4(R,2),W=H[0],te=H[1],J="node_".concat(u).concat(d);return X.useLayoutEffect(function(){if(L.current)try{if(typeof r=="function"&&r(L.current),T){var de=L.current.shadowRoot;return void te(de)}var x=L.current.attachShadow({mode:u,delegatesFocus:d});p.length>0&&(x.adoptedStyleSheets=p),te(x)}catch(ye){(function(ue){var Je=ue.error,Ne=ue.styleSheets,$e=ue.root;switch(Je.name){case"NotSupportedError":Ne.length>0&&($e.adoptedStyleSheets=Ne);break;default:throw Je}})({error:ye,styleSheets:p,root:W})}},[r,L,p]),X.createElement(X.Fragment,null,X.createElement(e.tag,TO({key:J,ref:L},I),(W||T)&&X.createElement(F4.Provider,{value:W},T?X.createElement(EO,{shadowroot:u,shadowrootmode:u},e.render({root:W,ssr:T,children:P})):X.createElement(kO,{root:W},e.render({root:W,ssr:T,children:P})))))});return t.propTypes={mode:Oa.oneOf(["open","closed"]),delegatesFocus:Oa.bool,styleSheets:Oa.arrayOf(Oa.instanceOf(globalThis.CSSStyleSheet)),ssr:Oa.bool,children:Oa.node},t}EO.propTypes={children:Oa.oneOfType([Oa.string,Oa.node])},kO.propTypes={root:Oa.object.isRequired,children:Oa.node};var Dv=new Map;function j4(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=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(e,{get:function(r,i){var o=_4(i,{separator:"-"}),s="".concat(t,"-").concat(o);return Dv.has(s)||Dv.set(s,N4({tag:o,render:n})),Dv.get(s)}})}var OO=j4();const B4=`.app,.treeRoot{height:100%}.draggingSource{opacity:.3}.placeholderContainer{position:relative}.dropTarget{background-color:#8d878711}
141
+ `,$4=`.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
+ `,V4=e=>{const t=e.depth*16;return We.jsx("div",{style:{backgroundColor:e.color||"#93D500",height:"2px",position:"absolute",right:"0",top:"0",left:t}})};function H4(e){const t=new CustomEvent("updateFavoriteMenu",{detail:{menuItem:e}});window.dispatchEvent(t)}function U4(e){const t=Dp.useLocation(),n=X.useRef(null),[r,i]=X.useState([]),[o,s]=X.useState(!1);console.log("isSubmit",o);const[u,c]=X.useState([]),d=X.useRef(null),[v,p]=X.useState(window.location.href);X.useEffect(()=>{p(window.location.href)},[t]);const S=R=>`${R}`;function T(R,H){for(const W of R){if(W.id===H)return W;if(W.children){const te=T(W.children,H);if(te)return te}}return null}function P(R,H){const W=T(r,R);W?(W.isFavorite=H,H4(W),tb(R,H)):console.error(`Item with id ${R} not found`)}const I=R=>{console.log("Favorite menus changed",R);const H=R.detail.favoriteMenus||[];i(H)};X.useEffect(()=>(window.addEventListener("favoriteMenusChange",I),()=>{window.removeEventListener("favoriteMenusChange",I)}),[]);function L(R){s(!0);const H=[...u];c(R);const W=R.map(te=>({menuItemIds:te.id}));Da.post("global-menu-config/api/v1/menu-items/user/order-favorites",W,{baseURL:e.baseUrl}).then(()=>{}).catch(te=>{console.error(te),c(H)}).finally(()=>{s(!1)})}return X.useEffect(()=>{const R=r.map(H=>({id:H.id,parent:0,text:H.name,data:H}));c(R)},[r]),We.jsx(We.Fragment,{children:r.length?We.jsx("div",{className:S("favorite-menu"),children:We.jsx(Qm,{ref:d,className:S("wrap-section favorite-menu__menu"),style:{marginTop:4,flex:1,overflow:"auto",height:"100%",overflowY:"hidden"},children:We.jsx(CE,{backend:AE,options:BE(),children:We.jsx(WE,{ref:n,classes:{root:"treeFavorited"},tree:u,rootId:0,sort:!1,insertDroppableFirst:!1,enableAnimateExpand:!0,dropTargetOffset:10,onDrop:L,render:(R,H)=>{console.log("1111111111111");const W=R.data;return console.log("item favorite",W),console.log("params",H),We.jsx(xO,{replacePath:e.replacePath,ssr:e.ssr,brandColors:e.brandColors,baseUrl:e.baseUrl,node:R,params:H,nodes:u,item:W,level:H.depth+1,onSetFavoriteSuccess:P})},placeholderRender:(R,{depth:H})=>{var W;return console.log("aaaa"),We.jsx(V4,{node:R,depth:H,color:(W=e.brandColors)==null?void 0:W.primary300})},canDrag:()=>!o,canDrop:(R,{dragSource:H,dropTargetId:W})=>(H==null?void 0:H.parent)===W,onDragStart:R=>{console.log("onDragStart",R)}})})})}):""})}function W4(e=32){const[t,n]=X.useState(!0),[r,i]=X.useState(0),o=()=>{const s=window.scrollY;s>r&&s>e?n(!1):s<r&&n(!0),i(s)};return X.useEffect(()=>(window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)),[r]),{isFavoriteBarVisible:t}}function z4(e){const{isFavoriteBarVisible:t}=W4();return We.jsxs(We.Fragment,{children:[We.jsx("style",{children:$4}),We.jsx("div",{className:`favorite-bar ${t?"favorite-bar--visible":"favorite-bar--hidden"}`,children:We.jsx(OO.div,{children:We.jsx(Km,{styles:[ST,S4,B4],children:We.jsx(U4,{...e})})})})]})}function tb(e,t){const n=JSON.parse(localStorage.getItem("favoriteItems")||"[]");if(t)n.includes(e)||n.push(e);else{const r=n.indexOf(e);r>-1&&n.splice(r,1)}localStorage.setItem("favoriteItems",JSON.stringify(n))}function DO({...e}){var je,Xe,at,Ce,Pe;const t=e.item,n=e.level||0,r=!!((je=e.item.children)!=null&&je.length),{isActive:i,isCollapsed:o}=e,s=`level-${n}`,u=o?"collapsed":"expanded",c=i(t.id)?"active":"",d=(Ve,ze=s)=>`${Ve} ${ze} ${u} ${c}`,[v,p]=X.useState(!1),[S,T]=X.useState(t.isFavorite||!1);X.useEffect(()=>{T(!!e.item.isFavorite)},[e.item.isFavorite]);const P=X.useRef(),I=X.useRef();I!=null&&I.current&&((Xe=I==null?void 0:I.current)==null?void 0:Xe.scrollWidth)>((at=I==null?void 0:I.current)==null?void 0:at.clientWidth);const L=window.location.origin,R=t.path&&t.path.includes("http")?new URL(t.path):{origin:"",pathname:""},H=window.location.pathname.split("/")[1],W=R.pathname.split("/")[1],te=e.ssr||!L.includes("local")&&L!==R.origin||W!==H,J=r||n===0?"div":te?"a":Dp.Link,de=t.path||"#",x=n+1,ye=r&&o&&v,ue=o||n===0?void 0:`${n+.25}rem`,Je=()=>{p(!0)},Ne=()=>{p(!1)},$e="/global-menu-config/api/v1/menu-items/user/set-favorite",Ye=t.serviceKey==="mn_poms";e.params.depth*20,e.params.depth,wH(t.id,e.params.isOpen,e.params.onToggle);const qe=Ve=>{Ve.stopPropagation(),e.params.onToggle()},Oe=Ye||o&&n===0?t.name==="POMs"?"Parking Operations Management":t.description||t.name:null;return We.jsxs("div",{ref:P,className:d("menu-item__wrapper tree-node"),style:{borderRadius:"8px",transition:"all 0.3s"},onMouseOver:Je,onMouseOut:Ne,onDragStart:Ve=>{o&&n>1&&Ve.preventDefault()},children:[We.jsx(ss.Tooltip,{placement:"top",title:Oe,disableInteractive:!0,children:We.jsxs(J,{to:de,href:de,draggable:"true",className:d("menu-item__link"),style:{paddingLeft:ue,transition:"all 0.3s",color:i(t.id)?((Ce=e.brandColors)==null?void 0:Ce.primary400)||Ci.primary400:void 0,backgroundColor:i(t.id)&&n===0?(Pe=e.brandColors)==null?void 0:Pe.primary200:void 0},onClick:Ve=>{o||qe(Ve)},children:[We.jsx(Y4,{cls:d,item:t}),We.jsx("span",{className:d("menu-item__label"),ref:I,children:t.name}),We.jsx(G4,{tooltipPosition:Oe?"right":"top",menuLevel:n,hasChildren:r,isHovered:v,isFavorite:S,onClick:Ve=>{const ze={menuConfigId:t.id,isFavorite:Ve},Re=e.baseUrl+$e;Da.post(Re,ze).then(Fe=>{var Ke;T(Ve),ty("Set favorite menu item successfully"),(Ke=e.onSetFavoriteSuccess)==null||Ke.call(e,e.item.id,Ve),tb(e.item.id,Ve)}).catch(Fe=>{var Ke,lt;Wd(((lt=(Ke=Fe.response)==null?void 0:Ke.data)==null?void 0:lt.errorMessage)||"Have error when set favorite menu item")})}}),r&&We.jsx("div",{className:d("menu-item__icon-arrow__wrapper"),children:We.jsx(H5,{className:d(`menu-item__icon-arrow__icon ${e.params.isOpen?"open":"close"}`)})})]})}),ye&&We.jsx(U5,{parentRef:P,onlyChild:!o,renderChildren:({maxHeight:Ve})=>{var ze;return We.jsx(dO.div,{className:d(`menu-item__dropdown ${e.params.isOpen?"menu-item__dropdown--open":"menu-item__dropdown--close"}`,`level-${x}`),style:Qy({maxHeight:Ve,overflowY:"auto",paddingRight:3},Ve!=="auto"&&!!x),children:(ze=t.children)==null?void 0:ze.map(Re=>X.createElement(DO,{...e,key:Re.id,item:Re,level:x}))})}})]})}function Y4({item:e,cls:t}){return We.jsx("div",{className:t("menu-item__icon"),children:We.jsx(wO,{item:e})})}function G4(e){const t={marginRight:e.hasChildren?10:0,fontSize:18,fill:Ci.warning};return We.jsxs(We.Fragment,{children:[e.isHovered&&!e.isFavorite&&We.jsx(ss.Tooltip,{placement:e.tooltipPosition||"top",title:"Add to favorites",disableInteractive:!0,children:We.jsx("div",{children:We.jsx(hO,{style:t,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=e.onClick)==null||r.call(e,!0)}})})}),e.isFavorite&&We.jsx(ss.Tooltip,{placement:e.tooltipPosition||"top",title:"Remove from favorites",disableInteractive:!0,children:We.jsx("div",{children:We.jsx(pO,{style:t,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=e.onClick)==null||r.call(e,!1)}})})})]})}function q4(){return We.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:We.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 X4(){return We.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:We.jsx("path",{d:"M3 4h18v2H3V4zm0 7h18v2H3v-2zm0 7h18v2H3v-2z"})})}function K4(e){return We.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"20",fill:"none",viewBox:"0 0 18 20",...e,children:We.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 Z4=`.flex-col-center{display:flex;flex-direction:column;justify-content:center}.wrap-section{padding:0 8px;transition:all .3s}.wrap-section.collapsed{padding:0 4px}.side-bar{position:fixed;top:64px;left:0;height:calc(100vh - 64px);max-width:18rem;display:flex;flex-direction:column;border-right:1px solid #ddd;background-color:#fafafa;transition:all .3s}.side-bar.expanded{width:17rem}.side-bar.collapsed{width:64px}.side-bar__wrap-btn-logout,.side-bar__btn-logout{margin:5px 0}.side-bar__logout-btn__text{margin-left:12px;font-size:.875rem;opacity:1}.side-bar__logout-btn__text.collapsed{opacity:0;transition:ease-in-out .2s;transition-delay:.15s}.side-bar__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px}.side-bar__wrapper-toggle-btn.collapsed{justify-content:center;width:100%}.side-bar__toggle-btn{margin-top:-6px;color:#85858a}.side-bar__logout-btn{width:100%;text-align:left;display:flex;flex-direction:row;align-items:center;padding:8px 16px 8px 18.6665px;min-height:48px;border-radius:.375rem;overflow:hidden;transition:all .3s ease-in-out;background-color:initial}.side-bar__logout-btn:hover{background-color:#919eab14}.side-bar__icon-logout{flex-shrink:0}.menu-item__wrapper{display:flex;flex-direction:column;position:relative;width:100%}.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.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.menu-item__link.collapsed.level-0{padding:0;transition:all .15s}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0;display:grid;place-items:center}.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;color:#292929;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:all .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
+ `,J4=e=>{const t=e.isCollapsed?0:e.depth*16;return We.jsx("div",{style:{backgroundColor:e.color||"#93D500",height:"2px",position:"absolute",right:"0",top:"0",left:t}})},Q4=`.app,.treeRoot{height:100%}.draggingSource{opacity:.3}.placeholderContainer{position:relative}.dropTarget{background-color:#8d878711}
144
+ `,e6=e=>{const[t,n]=X.useState(()=>{const r=localStorage.getItem("openingMenuIds");return r&&r!=="[]"?JSON.parse(r):(e==null?void 0:e.initOpenIds)||[]});return X.useEffect(()=>{localStorage.setItem("openingMenuIds",JSON.stringify(t))},[t]),[t,n]};function _O(e){document.documentElement.style.setProperty("--global-menu-width",!e||e==="true"?"64px":"17rem")}const Jh=localStorage.getItem("isCollapsed");_O(Jh);function t6(e){const t=new CustomEvent("favoriteMenusChange",{detail:{favoriteMenus:e}});window.dispatchEvent(t)}function n6(e){const t=Dp.useLocation(),[n,r]=X.useState([]),i=n.map(Ne=>Ne.data),[o,s]=X.useState(!1),[u,c]=X.useState([]),[d,v]=X.useState(Jh===null?!0:Jh==="true"),[p,S]=X.useState(window.location.href),T=X.useRef(null);X.useEffect(()=>{var Ne;(Ne=e.handleCallback)==null||Ne.call(e,i)},[i,e.handleCallback]),X.useEffect(()=>{S(window.location.href)},[t]);const P=i6(i,p),[I,L]=e6({initOpenIds:e.initOpenIds}),R=()=>{var Ne,$e;if(v(!d),localStorage.setItem("isCollapsed",JSON.stringify(!d)),_O(d),d)I&&((Ne=T.current)==null||Ne.open(I));else{const Ye=n.filter(qe=>qe.parent===0).map(qe=>qe.id);console.log("closeIds:",Ye),($e=T.current)==null||$e.close(Ye)}},[H,W]=X.useState(!1),te=d?"collapsed":"expanded",J=Ne=>`${Ne} ${te}`,de=X.useRef(null);X.useLayoutEffect(()=>{(async()=>{var $e,Ye;try{const qe=e.menuPath||"/global-menu-config/api/v1/menu-items/user",pe=e.baseUrl+qe,{data:Oe}=await Da.get(pe);let je=Oe.map(at=>({...at,parentKey:at.parentKey||0}));je=RO(je),e.replacePath&&(je=PO(je,e.replacePath));const Xe=je.map(at=>({id:at.id,parent:at.parentKey,text:at.name,data:at}));r(Xe)}catch(qe){console.error("Global menu",qe),Wd(((Ye=($e=qe.response)==null?void 0:$e.data)==null?void 0:Ye.errorMessage)||"Have error when get menu items")}})()},[e.baseUrl,e.menuPath,e.replacePath]);const x=async()=>{try{const Ne=await fetch(`${e.baseUrl}/global-menu-config/api/v1/menu-items/user/get-favorites`);if(!Ne.ok)throw new Error("Failed to fetch favorite items");const $e=await Ne.json();c($e)}catch(Ne){console.error("Error fetching favorite items:",Ne)}};X.useEffect(()=>{x()},[e.baseUrl]),X.useEffect(()=>{let Ne=[];u.forEach(qe=>{const pe=i.find(Oe=>Oe.id===qe&&Oe.isFavorite===!0);pe&&(Ne=[...Ne,pe])}),console.log(Ne);function $e(qe){return i.every(pe=>pe.parentKey!==qe.id)?qe:{...qe,children:i.filter(pe=>pe.parentKey===qe.id).map(pe=>$e(pe))}}const Ye=Ne.map(qe=>$e(qe));t6(Ye)},[i]);function ye(Ne){const $e=Ne.detail.menuItem;r(Ye=>Ye.map(qe=>qe.id!==$e.id?qe:{...qe,data:$e}))}X.useEffect(()=>(window.addEventListener("updateFavoriteMenu",ye),()=>{window.removeEventListener("updateFavoriteMenu",ye)}),[]),X.useLayoutEffect(()=>{var qe;const Ne=localStorage.getItem("scrollPos");Ne&&de.current&&setTimeout(()=>{const pe=de.current.getScrollElement();pe.scrollTop=parseInt(Ne)},0);const $e=()=>{if(de.current){const pe=de.current.getScrollElement();localStorage.setItem("scrollPos",pe.scrollTop.toString())}},Ye=(qe=de.current)==null?void 0:qe.getScrollElement();return Ye==null||Ye.addEventListener("scroll",$e),()=>{Ye==null||Ye.removeEventListener("scroll",$e)}},[i]);function ue(Ne){s(!0);const $e=[...n];r(Ne);const Ye=Ne.map((qe,pe)=>({menuItemId:qe.id,order:pe}));Da.post("/global-menu-config/api/v1/menu-items/user",Ye,{baseURL:e.baseUrl}).then(()=>{}).catch(qe=>{console.error(qe),r($e)}).finally(()=>{s(!1)})}const Je=X.useMemo(()=>Jh==="false"?I:[],[]);return console.log("nodesglobal menu",n),We.jsxs("div",{className:J("side-bar"),children:[We.jsx("div",{className:J("wrap-section side-bar__wrapper-toggle-btn"),children:We.jsx("button",{className:"icon-btn side-bar__toggle-btn",onClick:R,children:d?We.jsx(X4,{}):We.jsx(q4,{})})}),We.jsx(Qm,{ref:de,className:J("wrap-section side-bar__menu"),style:{marginTop:24,flex:1,overflow:"auto",height:"100%",overflowX:"hidden"},children:We.jsx(CE,{backend:AE,options:BE(),children:We.jsx(WE,{ref:T,classes:{root:"treeRoot",draggingSource:"draggingSource",placeholder:"placeholderContainer"},tree:n,rootId:0,sort:!1,insertDroppableFirst:!1,enableAnimateExpand:!0,dropTargetOffset:10,onDrop:ue,render:(Ne,$e)=>{function Ye(je){return n.every(Xe=>Xe.parent!==je.id)?je:{...je,children:n.filter(Xe=>Xe.parent===je.id).map(Xe=>Ye(Xe.data))}}const qe=Ye(Ne.data),pe=je=>P.some(Xe=>Xe.id===je);function Oe(je,Xe){r(at=>at.map(Ce=>Ce.id===je?{...Ce,data:{...Ce.data,isFavorite:Xe}}:Ce)),x()}return We.jsx(DO,{isActive:pe,isCollapsed:d,replacePath:e.replacePath,ssr:e.ssr,brandColors:e.brandColors,baseUrl:e.baseUrl,node:Ne,params:$e,nodes:n,item:qe,expanded:()=>!1,toggleExpand:()=>{},level:$e.depth,onSetFavoriteSuccess:Oe})},placeholderRender:(Ne,{depth:$e})=>{var Ye;return We.jsx(J4,{node:Ne,depth:$e,color:(Ye=e.brandColors)==null?void 0:Ye.primary300,isCollapsed:d})},canDrag:()=>!o,canDrop:(Ne,{dragSource:$e,dropTargetId:Ye})=>($e==null?void 0:$e.parent)===Ye,onDragStart:Ne=>{console.log("onDragStart",Ne)},onChangeOpen:Ne=>{localStorage.getItem("isCollapsed")==="false"&&(console.log("onChangeOpen:",Ne),L(Ne))},initialOpen:Je})})}),We.jsxs("div",{className:J("wrap-section side-bar__wrap-btn-logout"),children:[We.jsxs("button",{className:J("side-bar__logout-btn"),onClick:()=>W(!0),children:[We.jsx(K4,{className:J("side-bar__icon-logout")}),We.jsx("span",{className:J("side-bar__logout-btn__text"),children:"Logout"})]}),We.jsx(R1,{isOpen:H,onClose:()=>W(!1),onConfirm:()=>e.logout?e.logout():V1(e.baseUrl)})]})]})}function r6(e,t){const n=new URL(e).searchParams,r=new URL(t).searchParams;return Array.from(r).filter(([i,o])=>o===n.get(i)).length}function i6(e,t){var c;console.log("menuItems:",e);const n=new URL(t);let r=e.filter(d=>d.path&&d.path.includes("http")).map(d=>({item:d,itemUrl:new URL(d.path),matchingParamsCount:r6(t,d.path)})).sort((d,v)=>{const p=new URL(d.itemUrl).searchParams,S=new URL(v.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,v)=>v.matchingParamsCount-d.matchingParamsCount);let s=r.length>0?(c=r.find(d=>d.item.parentKey))==null?void 0:c.item:null;console.log("matchingItems:",r);let u=[];for(;s;)u=[s,...u],s=e.find(d=>d.id===(s==null?void 0:s.parentKey))||null;return console.log("parents:",u),u}function PO(e,t){return e.map(n=>{var r;return(r=n.children)!=null&&r.length?(n.path="",n.children=PO(n.children,t)):n.path=t(n.path),n})}function RO(e){return e.map(n=>n.path&&!n.path.includes("http")&&n.path.includes("/")?{...n,path:window.location.origin+n.path}:(n.children&&(n.children=RO(n.children)),n))}function o6(e){return We.jsx(OO.div,{children:We.jsx(Km,{styles:[ST,Z4,Q4],style:{position:"sticky",zIndex:1300},children:We.jsx(n6,{...e})})})}const a6={"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 Ep={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
+ */Ep.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",u="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",d=500,v="__lodash_placeholder__",p=1,S=2,T=4,P=1,I=2,L=1,R=2,H=4,W=8,te=16,J=32,de=64,x=128,ye=256,ue=512,Je=30,Ne="...",$e=800,Ye=16,qe=1,pe=2,Oe=3,je=1/0,Xe=9007199254740991,at=17976931348623157e292,Ce=0/0,Pe=4294967295,Ve=Pe-1,ze=Pe>>>1,Re=[["ary",x],["bind",L],["bindKey",R],["curry",W],["curryRight",te],["flip",ue],["partial",J],["partialRight",de],["rearg",ye]],Fe="[object Arguments]",Ke="[object Array]",lt="[object AsyncFunction]",mt="[object Boolean]",wt="[object Date]",vt="[object DOMException]",Et="[object Error]",ot="[object Function]",$t="[object GeneratorFunction]",Ht="[object Map]",Xn="[object Number]",mr="[object Null]",Kn="[object Object]",_n="[object Promise]",$i="[object Proxy]",Dr="[object RegExp]",rr="[object Set]",cn="[object String]",hn="[object Symbol]",pn="[object Undefined]",gt="[object WeakMap]",In="[object WeakSet]",li="[object ArrayBuffer]",un="[object DataView]",Vi="[object Float32Array]",Hi="[object Float64Array]",Ui="[object Int8Array]",_r="[object Int16Array]",Wn="[object Int32Array]",Pr="[object Uint8Array]",yr="[object Uint8ClampedArray]",qr="[object Uint16Array]",Xr="[object Uint32Array]",Po=/\b__p \+= '';/g,Zn=/\b(__p \+=) '' \+/g,Kr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ir=/&(?:amp|lt|gt|quot|#39);/g,Zt=/[&<>"']/g,ui=RegExp(ir.source),Wi=RegExp(Zt.source),An=/<%-([\s\S]+?)%>/g,gn=/<%([\s\S]+?)%>/g,ci=/<%=([\s\S]+?)%>/g,fi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,mn=/^\w*$/,uo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,br=/[\\^$.*+?()[\]{}|]/g,di=RegExp(br.source),fn=/^\s+/,Ei=/\s/,Ia=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Aa=/\{\n\/\* \[wrapped with (.+)\] \*/,Zr=/,? & /,co=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,fo=/[()=,{}\[\]\/\s]/,Ro=/\\(\\)?/g,ki=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,hi=/\w*$/,Oi=/^[-+]0x[0-9a-f]+$/i,ho=/^0b[01]+$/i,Di=/^\[object .+?Constructor\]$/,Jr=/^0o[0-7]+$/i,wr=/^(?:0|[1-9]\d*)$/,Rr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Qr=/($^)/,Ir=/['\n\r\u2028\u2029\\]/g,zn="\\ud800-\\udfff",vn="\\u0300-\\u036f",Ar="\\ufe20-\\ufe2f",xr="\\u20d0-\\u20ff",Mn=vn+Ar+xr,pi="\\u2700-\\u27bf",Mr="a-z\\xdf-\\xf6\\xf8-\\xff",ei="\\xac\\xb1\\xd7\\xf7",Jn="\\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",zi="A-Z\\xc0-\\xd6\\xd8-\\xde",Rn="\\ufe0e\\ufe0f",Sr=ei+Jn+ti+ni,cr="['’]",Io="["+zn+"]",Yi="["+Sr+"]",Lr="["+Mn+"]",E="\\d+",j="["+pi+"]",q="["+Mr+"]",re="[^"+zn+Sr+E+pi+Mr+zi+"]",De="\\ud83c[\\udffb-\\udfff]",be="(?:"+Lr+"|"+De+")",Me="[^"+zn+"]",rt="(?:\\ud83c[\\udde6-\\uddff]){2}",yt="[\\ud800-\\udbff][\\udc00-\\udfff]",Tt="["+zi+"]",bt="\\u200d",Ut="(?:"+q+"|"+re+")",Qn="(?:"+Tt+"|"+re+")",Yn="(?:"+cr+"(?:d|ll|m|re|s|t|ve))?",Pn="(?:"+cr+"(?:D|LL|M|RE|S|T|VE))?",Fr=be+"?",or="["+Rn+"]?",Gi="(?:"+bt+"(?:"+[Me,rt,yt].join("|")+")"+or+Fr+")*",gi="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",qi="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Nr=or+Fr+Gi,Ao="(?:"+[j,rt,yt].join("|")+")"+Nr,Ys="(?:"+[Me+Lr+"?",Lr,rt,yt,Io].join("|")+")",Ma=RegExp(cr,"g"),La=RegExp(Lr,"g"),Fa=RegExp(De+"(?="+De+")|"+Ys+Nr,"g"),Na=RegExp([Tt+"?"+q+"+"+Yn+"(?="+[Yi,Tt,"$"].join("|")+")",Qn+"+"+Pn+"(?="+[Yi,Tt+Ut,"$"].join("|")+")",Tt+"?"+Ut+"+"+Yn,Tt+"+"+Pn,qi,gi,E,Ao].join("|"),"g"),vi=RegExp("["+bt+zn+Mn+Rn+"]"),Mo=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ra=["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,Qt={};Qt[Vi]=Qt[Hi]=Qt[Ui]=Qt[_r]=Qt[Wn]=Qt[Pr]=Qt[yr]=Qt[qr]=Qt[Xr]=!0,Qt[Fe]=Qt[Ke]=Qt[li]=Qt[mt]=Qt[un]=Qt[wt]=Qt[Et]=Qt[ot]=Qt[Ht]=Qt[Xn]=Qt[Kn]=Qt[Dr]=Qt[rr]=Qt[cn]=Qt[gt]=!1;var Vt={};Vt[Fe]=Vt[Ke]=Vt[li]=Vt[un]=Vt[mt]=Vt[wt]=Vt[Vi]=Vt[Hi]=Vt[Ui]=Vt[_r]=Vt[Wn]=Vt[Ht]=Vt[Xn]=Vt[Kn]=Vt[Dr]=Vt[rr]=Vt[cn]=Vt[hn]=Vt[Pr]=Vt[yr]=Vt[qr]=Vt[Xr]=!0,Vt[Et]=Vt[ot]=Vt[gt]=!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={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Lo={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},mi={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},fr=parseFloat,ja=parseInt,ia=typeof Ti=="object"&&Ti&&Ti.Object===Object&&Ti,us=typeof self=="object"&&self&&self.Object===Object&&self,yn=ia||us||Function("return this")(),Fo=t&&!t.nodeType&&t,yi=Fo&&!0&&e&&!e.nodeType&&e,cs=yi&&yi.exports===Fo,po=cs&&ia.process,er=function(){try{var Q=yi&&yi.require&&yi.require("util").types;return Q||po&&po.binding&&po.binding("util")}catch{}}(),f=er&&er.isArrayBuffer,m=er&&er.isDate,C=er&&er.isMap,O=er&&er.isRegExp,N=er&&er.isSet,B=er&&er.isTypedArray;function U(Q,he,ce){switch(ce.length){case 0:return Q.call(he);case 1:return Q.call(he,ce[0]);case 2:return Q.call(he,ce[0],ce[1]);case 3:return Q.call(he,ce[0],ce[1],ce[2])}return Q.apply(he,ce)}function le(Q,he,ce,Ue){for(var Ge=-1,ft=Q==null?0:Q.length;++Ge<ft;){var dt=Q[Ge];he(Ue,dt,ce(dt),Q)}return Ue}function oe(Q,he){for(var ce=-1,Ue=Q==null?0:Q.length;++ce<Ue&&he(Q[ce],ce,Q)!==!1;);return Q}function we(Q,he){for(var ce=Q==null?0:Q.length;ce--&&he(Q[ce],ce,Q)!==!1;);return Q}function Le(Q,he){for(var ce=-1,Ue=Q==null?0:Q.length;++ce<Ue;)if(!he(Q[ce],ce,Q))return!1;return!0}function Be(Q,he){for(var ce=-1,Ue=Q==null?0:Q.length,Ge=0,ft=[];++ce<Ue;){var dt=Q[ce];he(dt,ce,Q)&&(ft[Ge++]=dt)}return ft}function Ee(Q,he){var ce=Q==null?0:Q.length;return!!ce&&on(Q,he,0)>-1}function Ze(Q,he,ce){for(var Ue=-1,Ge=Q==null?0:Q.length;++Ue<Ge;)if(ce(he,Q[Ue]))return!0;return!1}function ct(Q,he){for(var ce=-1,Ue=Q==null?0:Q.length,Ge=Array(Ue);++ce<Ue;)Ge[ce]=he(Q[ce],ce,Q);return Ge}function _t(Q,he){for(var ce=-1,Ue=he.length,Ge=Q.length;++ce<Ue;)Q[Ge+ce]=he[ce];return Q}function Rt(Q,he,ce,Ue){var Ge=-1,ft=Q==null?0:Q.length;for(Ue&&ft&&(ce=Q[++Ge]);++Ge<ft;)ce=he(ce,Q[Ge],Ge,Q);return ce}function Ln(Q,he,ce,Ue){var Ge=Q==null?0:Q.length;for(Ue&&Ge&&(ce=Q[--Ge]);Ge--;)ce=he(ce,Q[Ge],Ge,Q);return ce}function dn(Q,he){for(var ce=-1,Ue=Q==null?0:Q.length;++ce<Ue;)if(he(Q[ce],ce,Q))return!0;return!1}var jr=k("length");function Br(Q){return Q.split("")}function Wt(Q){return Q.match(co)||[]}function $r(Q,he,ce){var Ue;return ce(Q,function(Ge,ft,dt){if(he(Ge,ft,dt))return Ue=ft,!1}),Ue}function zt(Q,he,ce,Ue){for(var Ge=Q.length,ft=ce+(Ue?1:-1);Ue?ft--:++ft<Ge;)if(he(Q[ft],ft,Q))return ft;return-1}function on(Q,he,ce){return he===he?Nu(Q,he,ce):zt(Q,vo,ce)}function go(Q,he,ce,Ue){for(var Ge=ce-1,ft=Q.length;++Ge<ft;)if(Ue(Q[Ge],he))return Ge;return-1}function vo(Q){return Q!==Q}function Tr(Q,he){var ce=Q==null?0:Q.length;return ce?Se(Q,he)/ce:Ce}function k(Q){return function(he){return he==null?n:he[Q]}}function F(Q){return function(he){return Q==null?n:Q[he]}}function z(Q,he,ce,Ue,Ge){return Ge(Q,function(ft,dt,ut){ce=Ue?(Ue=!1,ft):he(ce,ft,dt,ut)}),ce}function ne(Q,he){var ce=Q.length;for(Q.sort(he);ce--;)Q[ce]=Q[ce].value;return Q}function Se(Q,he){for(var ce,Ue=-1,Ge=Q.length;++Ue<Ge;){var ft=he(Q[Ue]);ft!==n&&(ce=ce===n?ft:ce+ft)}return ce}function Te(Q,he){for(var ce=-1,Ue=Array(Q);++ce<Q;)Ue[ce]=he(ce);return Ue}function He(Q,he){return ct(he,function(ce){return[ce,Q[ce]]})}function nt(Q){return Q&&Q.slice(0,Xs(Q)+1).replace(fn,"")}function xt(Q){return function(he){return Q(he)}}function Nt(Q,he){return ct(he,function(ce){return Q[ce]})}function Dt(Q,he){return Q.has(he)}function Ct(Q,he){for(var ce=-1,Ue=Q.length;++ce<Ue&&on(he,Q[ce],0)>-1;);return ce}function $n(Q,he){for(var ce=Q.length;ce--&&on(he,Q[ce],0)>-1;);return ce}function Cn(Q,he){for(var ce=Q.length,Ue=0;ce--;)Q[ce]===he&&++Ue;return Ue}var Gn=F(_i),oa=F(ri);function fs(Q){return"\\"+mi[Q]}function aa(Q,he){return Q==null?n:Q[he]}function ii(Q){return vi.test(Q)}function Gs(Q){return Mo.test(Q)}function mo(Q){for(var he,ce=[];!(he=Q.next()).done;)ce.push(he.value);return ce}function ds(Q){var he=-1,ce=Array(Q.size);return Q.forEach(function(Ue,Ge){ce[++he]=[Ge,Ue]}),ce}function sa(Q,he){return function(ce){return Q(he(ce))}}function bi(Q,he){for(var ce=-1,Ue=Q.length,Ge=0,ft=[];++ce<Ue;){var dt=Q[ce];(dt===he||dt===v)&&(Q[ce]=v,ft[Ge++]=ce)}return ft}function Xi(Q){var he=-1,ce=Array(Q.size);return Q.forEach(function(Ue){ce[++he]=Ue}),ce}function qs(Q){var he=-1,ce=Array(Q.size);return Q.forEach(function(Ue){ce[++he]=[Ue,Ue]}),ce}function Nu(Q,he,ce){for(var Ue=ce-1,Ge=Q.length;++Ue<Ge;)if(Q[Ue]===he)return Ue;return-1}function la(Q,he,ce){for(var Ue=ce+1;Ue--;)if(Q[Ue]===he)return Ue;return Ue}function yo(Q){return ii(Q)?ps(Q):jr(Q)}function dr(Q){return ii(Q)?ee(Q):Br(Q)}function Xs(Q){for(var he=Q.length;he--&&Ei.test(Q.charAt(he)););return he}var hs=F(Lo);function ps(Q){for(var he=Fa.lastIndex=0;Fa.test(Q);)++he;return he}function ee(Q){return Q.match(Fa)||[]}function ve(Q){return Q.match(Na)||[]}var _e=function Q(he){he=he==null?yn:ke.defaults(yn.Object(),he,ke.pick(yn,ra));var ce=he.Array,Ue=he.Date,Ge=he.Error,ft=he.Function,dt=he.Math,ut=he.Object,It=he.RegExp,kt=he.String,Yt=he.TypeError,Fn=ce.prototype,ar=ft.prototype,qn=ut.prototype,Vr=he["__core-js_shared__"],Ki=ar.toString,At=qn.hasOwnProperty,Vc=0,En=function(){var a=/[^.]+$/.exec(Vr&&Vr.keys&&Vr.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}(),ua=qn.toString,ju=Ki.call(ut),kn=yn._,gs=It("^"+Ki.call(At).replace(br,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),vs=cs?he.Buffer:n,bo=he.Symbol,ms=he.Uint8Array,$l=vs?vs.allocUnsafe:n,ys=sa(ut.getPrototypeOf,ut),Bu=ut.create,$u=qn.propertyIsEnumerable,Ba=Fn.splice,Vl=bo?bo.isConcatSpreadable:n,No=bo?bo.iterator:n,Zi=bo?bo.toStringTag:n,jo=function(){try{var a=pc(ut,"defineProperty");return a({},"",{}),a}catch{}}(),Ks=he.clearTimeout!==yn.clearTimeout&&he.clearTimeout,Zs=Ue&&Ue.now!==yn.Date.now&&Ue.now,Hl=he.setTimeout!==yn.setTimeout&&he.setTimeout,Js=dt.ceil,bs=dt.floor,Qs=ut.getOwnPropertySymbols,Vu=vs?vs.isBuffer:n,Hu=he.isFinite,ws=Fn.join,Uu=sa(ut.keys,ut),Nn=dt.max,jn=dt.min,Wu=Ue.now,zu=he.parseInt,Bo=dt.random,Hc=Fn.reverse,$o=pc(he,"DataView"),Ji=pc(he,"Map"),el=pc(he,"Promise"),Hr=pc(he,"Set"),ca=pc(he,"WeakMap"),fa=pc(ut,"create"),da=ca&&new ca,ha={},tl=gc($o),Uc=gc(Ji),Wc=gc(el),Ul=gc(Hr),nl=gc(ca),xs=bo?bo.prototype:n,rl=xs?xs.valueOf:n,$a=xs?xs.toString:n;function G(a){if(sr(a)&&!Xt(a)&&!(a instanceof qt)){if(a instanceof Ur)return a;if(At.call(a,"__wrapped__"))return Tb(a)}return new Ur(a)}var pa=function(){function a(){}return function(l){if(!tr(l))return{};if(Bu)return Bu(l);a.prototype=l;var y=new a;return a.prototype=n,y}}();function Va(){}function Ur(a,l){this.__wrapped__=a,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=n}G.templateSettings={escape:An,evaluate:gn,interpolate:ci,variable:"",imports:{_:G}},G.prototype=Va.prototype,G.prototype.constructor=G,Ur.prototype=pa(Va.prototype),Ur.prototype.constructor=Ur;function qt(a){this.__wrapped__=a,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Pe,this.__views__=[]}function Wl(){var a=new qt(this.__wrapped__);return a.__actions__=Er(this.__actions__),a.__dir__=this.__dir__,a.__filtered__=this.__filtered__,a.__iteratees__=Er(this.__iteratees__),a.__takeCount__=this.__takeCount__,a.__views__=Er(this.__views__),a}function Ss(){if(this.__filtered__){var a=new qt(this);a.__dir__=-1,a.__filtered__=!0}else a=this.clone(),a.__dir__*=-1;return a}function il(){var a=this.__wrapped__.value(),l=this.__dir__,y=Xt(a),_=l<0,V=y?a.length:0,Z=vD(0,V,this.__views__),se=Z.start,ge=Z.end,xe=ge-se,Qe=_?ge:se-1,tt=this.__iteratees__,it=tt.length,ht=0,Ot=jn(xe,this.__takeCount__);if(!y||!_&&V==xe&&Ot==xe)return nf(a,this.__actions__);var Lt=[];e:for(;xe--&&ht<Ot;){Qe+=l;for(var tn=-1,Ft=a[Qe];++tn<it;){var rn=tt[tn],an=rn.iteratee,qo=rn.type,io=an(Ft);if(qo==pe)Ft=io;else if(!io){if(qo==qe)continue e;break e}}Lt[ht++]=Ft}return Lt}qt.prototype=pa(Va.prototype),qt.prototype.constructor=qt;function wo(a){var l=-1,y=a==null?0:a.length;for(this.clear();++l<y;){var _=a[l];this.set(_[0],_[1])}}function Ts(){this.__data__=fa?fa(null):{},this.size=0}function zl(a){var l=this.has(a)&&delete this.__data__[a];return this.size-=l?1:0,l}function Yl(a){var l=this.__data__;if(fa){var y=l[a];return y===c?n:y}return At.call(l,a)?l[a]:n}function Gl(a){var l=this.__data__;return fa?l[a]!==n:At.call(l,a)}function zc(a,l){var y=this.__data__;return this.size+=this.has(a)?0:1,y[a]=fa&&l===n?c:l,this}wo.prototype.clear=Ts,wo.prototype.delete=zl,wo.prototype.get=Yl,wo.prototype.has=Gl,wo.prototype.set=zc;function xo(a){var l=-1,y=a==null?0:a.length;for(this.clear();++l<y;){var _=a[l];this.set(_[0],_[1])}}function Yc(){this.__data__=[],this.size=0}function Vf(a){var l=this.__data__,y=Ri(l,a);if(y<0)return!1;var _=l.length-1;return y==_?l.pop():Ba.call(l,y,1),--this.size,!0}function Hf(a){var l=this.__data__,y=Ri(l,a);return y<0?n:l[y][1]}function Gc(a){return Ri(this.__data__,a)>-1}function Uf(a,l){var y=this.__data__,_=Ri(y,a);return _<0?(++this.size,y.push([a,l])):y[_][1]=l,this}xo.prototype.clear=Yc,xo.prototype.delete=Vf,xo.prototype.get=Hf,xo.prototype.has=Gc,xo.prototype.set=Uf;function Vo(a){var l=-1,y=a==null?0:a.length;for(this.clear();++l<y;){var _=a[l];this.set(_[0],_[1])}}function ql(){this.size=0,this.__data__={hash:new wo,map:new(Ji||xo),string:new wo}}function Xl(a){var l=rh(this,a).delete(a);return this.size-=l?1:0,l}function Wf(a){return rh(this,a).get(a)}function Yu(a){return rh(this,a).has(a)}function Kl(a,l){var y=rh(this,a),_=y.size;return y.set(a,l),this.size+=y.size==_?0:1,this}Vo.prototype.clear=ql,Vo.prototype.delete=Xl,Vo.prototype.get=Wf,Vo.prototype.has=Yu,Vo.prototype.set=Kl;function Ha(a){var l=-1,y=a==null?0:a.length;for(this.__data__=new Vo;++l<y;)this.add(a[l])}function zf(a){return this.__data__.set(a,c),this}function Yf(a){return this.__data__.has(a)}Ha.prototype.add=Ha.prototype.push=zf,Ha.prototype.has=Yf;function Qi(a){var l=this.__data__=new xo(a);this.size=l.size}function Ho(){this.__data__=new xo,this.size=0}function Gu(a){var l=this.__data__,y=l.delete(a);return this.size=l.size,y}function Zl(a){return this.__data__.get(a)}function nn(a){return this.__data__.has(a)}function Ua(a,l){var y=this.__data__;if(y instanceof xo){var _=y.__data__;if(!Ji||_.length<i-1)return _.push([a,l]),this.size=++y.size,this;y=this.__data__=new Vo(_)}return y.set(a,l),this.size=y.size,this}Qi.prototype.clear=Ho,Qi.prototype.delete=Gu,Qi.prototype.get=Zl,Qi.prototype.has=nn,Qi.prototype.set=Ua;function ga(a,l){var y=Xt(a),_=!y&&vc(a),V=!y&&!_&&fu(a),Z=!y&&!_&&!V&&cf(a),se=y||_||V||Z,ge=se?Te(a.length,kt):[],xe=ge.length;for(var Qe in a)(l||At.call(a,Qe))&&!(se&&(Qe=="length"||V&&(Qe=="offset"||Qe=="parent")||Z&&(Qe=="buffer"||Qe=="byteLength"||Qe=="byteOffset")||wl(Qe,xe)))&&ge.push(Qe);return ge}function ln(a){var l=a.length;return l?a[iu(0,l-1)]:n}function Pi(a,l){return ih(Er(a),va(l,0,a.length))}function Wa(a){return ih(Er(a))}function Cs(a,l,y){(y!==n&&!ts(a[l],y)||y===n&&!(l in a))&&hr(a,l,y)}function Vn(a,l,y){var _=a[l];(!(At.call(a,l)&&ts(_,y))||y===n&&!(l in a))&&hr(a,l,y)}function Ri(a,l){for(var y=a.length;y--;)if(ts(a[y][0],l))return y;return-1}function za(a,l,y,_){return ma(a,function(V,Z,se){l(_,V,y(V),se)}),_}function eo(a,l){return a&&xi(l,ai(l),a)}function Ya(a,l){return a&&xi(l,ko(l),a)}function hr(a,l,y){l=="__proto__"&&jo?jo(a,l,{configurable:!0,enumerable:!0,value:y,writable:!0}):a[l]=y}function qu(a,l){for(var y=-1,_=l.length,V=ce(_),Z=a==null;++y<_;)V[y]=Z?n:Tg(a,l[y]);return V}function va(a,l,y){return a===a&&(y!==n&&(a=a<=y?a:y),l!==n&&(a=a>=l?a:l)),a}function Wr(a,l,y,_,V,Z){var se,ge=l&p,xe=l&S,Qe=l&T;if(y&&(se=V?y(a,_,V,Z):y(a)),se!==n)return se;if(!tr(a))return a;var tt=Xt(a);if(tt){if(se=yD(a),!ge)return Er(a,se)}else{var it=Li(a),ht=it==ot||it==$t;if(fu(a))return gl(a,ge);if(it==Kn||it==Fe||ht&&!V){if(se=xe||ht?{}:pb(a),!ge)return xe?sf(a,Ya(se,a)):Xf(a,eo(se,a))}else{if(!Vt[it])return V?a:{};se=bD(a,it,ge)}}Z||(Z=new Qi);var Ot=Z.get(a);if(Ot)return Ot;Z.set(a,se),Ub(a)?a.forEach(function(Ft){se.add(Wr(Ft,l,y,Ft,a,Z))}):Vb(a)&&a.forEach(function(Ft,rn){se.set(rn,Wr(Ft,l,y,rn,a,Z))});var Lt=Qe?xe?ug:lg:xe?ko:ai,tn=tt?n:Lt(a);return oe(tn||a,function(Ft,rn){tn&&(rn=Ft,Ft=a[rn]),Vn(se,rn,Wr(Ft,l,y,rn,a,Z))}),se}function Xu(a){var l=ai(a);return function(y){return qc(y,a,l)}}function qc(a,l,y){var _=y.length;if(a==null)return!_;for(a=ut(a);_--;){var V=y[_],Z=l[V],se=a[V];if(se===n&&!(V in a)||!Z(se))return!1}return!0}function Ku(a,l,y){if(typeof a!="function")throw new Yt(s);return Zf(function(){a.apply(n,y)},l)}function Uo(a,l,y,_){var V=-1,Z=Ee,se=!0,ge=a.length,xe=[],Qe=l.length;if(!ge)return xe;y&&(l=ct(l,xt(y))),_?(Z=Ze,se=!1):l.length>=i&&(Z=Dt,se=!1,l=new Ha(l));e:for(;++V<ge;){var tt=a[V],it=y==null?tt:y(tt);if(tt=_||tt!==0?tt:0,se&&it===it){for(var ht=Qe;ht--;)if(l[ht]===it)continue e;xe.push(tt)}else Z(l,it,_)||xe.push(tt)}return xe}var ma=g(So),Zu=g(ec,!0);function Jl(a,l){var y=!0;return ma(a,function(_,V,Z){return y=!!l(_,V,Z),y}),y}function Ql(a,l,y){for(var _=-1,V=a.length;++_<V;){var Z=a[_],se=l(Z);if(se!=null&&(ge===n?se===se&&!Go(se):y(se,ge)))var ge=se,xe=Z}return xe}function Xc(a,l,y,_){var V=a.length;for(y=en(y),y<0&&(y=-y>V?0:V+y),_=_===n||_>V?V:en(_),_<0&&(_+=V),_=y>_?0:zb(_);y<_;)a[y++]=l;return a}function Ju(a,l){var y=[];return ma(a,function(_,V,Z){l(_,V,Z)&&y.push(_)}),y}function pr(a,l,y,_,V){var Z=-1,se=a.length;for(y||(y=xD),V||(V=[]);++Z<se;){var ge=a[Z];l>0&&y(ge)?l>1?pr(ge,l-1,y,_,V):_t(V,ge):_||(V[V.length]=ge)}return V}var Qu=w(),Kc=w(!0);function So(a,l){return a&&Qu(a,l,ai)}function ec(a,l){return a&&Kc(a,l,ai)}function eu(a,l){return Be(l,function(y){return xl(a[y])})}function Ga(a,l){l=Co(l,a);for(var y=0,_=l.length;a!=null&&y<_;)a=a[Ms(l[y++])];return y&&y==_?a:n}function ol(a,l,y){var _=l(a);return Xt(a)?_:_t(_,y(a))}function Cr(a){return a==null?a===n?pn:mr:Zi&&Zi in ut(a)?gD(a):DD(a)}function al(a,l){return a>l}function sl(a,l){return a!=null&&At.call(a,l)}function Zc(a,l){return a!=null&&l in ut(a)}function ll(a,l,y){return a>=jn(l,y)&&a<Nn(l,y)}function Es(a,l,y){for(var _=y?Ze:Ee,V=a[0].length,Z=a.length,se=Z,ge=ce(Z),xe=1/0,Qe=[];se--;){var tt=a[se];se&&l&&(tt=ct(tt,xt(l))),xe=jn(tt.length,xe),ge[se]=!y&&(l||V>=120&&tt.length>=120)?new Ha(se&&tt):n}tt=a[0];var it=-1,ht=ge[0];e:for(;++it<V&&Qe.length<xe;){var Ot=tt[it],Lt=l?l(Ot):Ot;if(Ot=y||Ot!==0?Ot:0,!(ht?Dt(ht,Lt):_(Qe,Lt,y))){for(se=Z;--se;){var tn=ge[se];if(!(tn?Dt(tn,Lt):_(a[se],Lt,y)))continue e}ht&&ht.push(Lt),Qe.push(Ot)}}return Qe}function tc(a,l,y,_){return So(a,function(V,Z,se){l(_,y(V),Z,se)}),_}function Ii(a,l,y){l=Co(l,a),a=yb(a,l);var _=a==null?a:a[Ms(ba(l))];return _==null?n:U(_,a,y)}function ul(a){return sr(a)&&Cr(a)==Fe}function tu(a){return sr(a)&&Cr(a)==li}function qa(a){return sr(a)&&Cr(a)==wt}function ks(a,l,y,_,V){return a===l?!0:a==null||l==null||!sr(a)&&!sr(l)?a!==a&&l!==l:nc(a,l,y,_,ks,V)}function nc(a,l,y,_,V,Z){var se=Xt(a),ge=Xt(l),xe=se?Ke:Li(a),Qe=ge?Ke:Li(l);xe=xe==Fe?Kn:xe,Qe=Qe==Fe?Kn:Qe;var tt=xe==Kn,it=Qe==Kn,ht=xe==Qe;if(ht&&fu(a)){if(!fu(l))return!1;se=!0,tt=!1}if(ht&&!tt)return Z||(Z=new Qi),se||cf(a)?hc(a,l,y,_,V,Z):cu(a,l,xe,y,_,V,Z);if(!(y&P)){var Ot=tt&&At.call(a,"__wrapped__"),Lt=it&&At.call(l,"__wrapped__");if(Ot||Lt){var tn=Ot?a.value():a,Ft=Lt?l.value():l;return Z||(Z=new Qi),V(tn,Ft,y,_,Z)}}return ht?(Z||(Z=new Qi),sg(a,l,y,_,V,Z)):!1}function Xa(a){return sr(a)&&Li(a)==Ht}function rc(a,l,y,_){var V=y.length,Z=V,se=!_;if(a==null)return!Z;for(a=ut(a);V--;){var ge=y[V];if(se&&ge[2]?ge[1]!==a[ge[0]]:!(ge[0]in a))return!1}for(;++V<Z;){ge=y[V];var xe=ge[0],Qe=a[xe],tt=ge[1];if(se&&ge[2]){if(Qe===n&&!(xe in a))return!1}else{var it=new Qi;if(_)var ht=_(Qe,tt,xe,a,l,it);if(!(ht===n?ks(tt,Qe,P|I,_,it):ht))return!1}}return!0}function ic(a){if(!tr(a)||TD(a))return!1;var l=xl(a)?gs:Di;return l.test(gc(a))}function To(a){return sr(a)&&Cr(a)==Dr}function Gf(a){return sr(a)&&Li(a)==rr}function qf(a){return sr(a)&&ch(a.length)&&!!Qt[Cr(a)]}function Os(a){return typeof a=="function"?a:a==null?Oo:typeof a=="object"?Xt(a)?no(a[0],a[1]):Wo(a):n0(a)}function cl(a){if(!Kf(a))return Uu(a);var l=[];for(var y in ut(a))At.call(a,y)&&y!="constructor"&&l.push(y);return l}function nu(a){if(!tr(a))return OD(a);var l=Kf(a),y=[];for(var _ in a)_=="constructor"&&(l||!At.call(a,_))||y.push(_);return y}function to(a,l){return a<l}function Ds(a,l){var y=-1,_=Eo(a)?ce(a.length):[];return ma(a,function(V,Z,se){_[++y]=l(V,Z,se)}),_}function Wo(a){var l=fg(a);return l.length==1&&l[0][2]?vb(l[0][0],l[0][1]):function(y){return y===a||rc(y,a,l)}}function no(a,l){return hg(a)&&gb(l)?vb(Ms(a),l):function(y){var _=Tg(y,a);return _===n&&_===l?Cg(y,a):ks(l,_,P|I)}}function _s(a,l,y,_,V){a!==l&&Qu(l,function(Z,se){if(V||(V=new Qi),tr(Z))Ai(a,l,se,y,_s,_,V);else{var ge=_?_(gg(a,se),Z,se+"",a,l,V):n;ge===n&&(ge=Z),Cs(a,se,ge)}},ko)}function Ai(a,l,y,_,V,Z,se){var ge=gg(a,y),xe=gg(l,y),Qe=se.get(xe);if(Qe){Cs(a,y,Qe);return}var tt=Z?Z(ge,xe,y+"",a,l,se):n,it=tt===n;if(it){var ht=Xt(xe),Ot=!ht&&fu(xe),Lt=!ht&&!Ot&&cf(xe);tt=xe,ht||Ot||Lt?Xt(ge)?tt=ge:gr(ge)?tt=Er(ge):Ot?(it=!1,tt=gl(xe,!0)):Lt?(it=!1,tt=yl(xe,!0)):tt=[]:Jf(xe)||vc(xe)?(tt=ge,vc(ge)?tt=Yb(ge):(!tr(ge)||xl(ge))&&(tt=pb(xe))):it=!1}it&&(se.set(xe,tt),V(tt,xe,_,Z,se),se.delete(xe)),Cs(a,y,tt)}function Ka(a,l){var y=a.length;if(y)return l+=l<0?y:0,wl(l,y)?a[l]:n}function ru(a,l,y){l.length?l=ct(l,function(Z){return Xt(Z)?function(se){return Ga(se,Z.length===1?Z[0]:Z)}:Z}):l=[Oo];var _=-1;l=ct(l,xt(Pt()));var V=Ds(a,function(Z,se,ge){var xe=ct(l,function(Qe){return Qe(Z)});return{criteria:xe,index:++_,value:Z}});return ne(V,function(Z,se){return bl(Z,se,y)})}function Mi(a,l){return zo(a,l,function(y,_){return Cg(a,_)})}function zo(a,l,y){for(var _=-1,V=l.length,Z={};++_<V;){var se=l[_],ge=Ga(a,se);y(ge,se)&&Ja(Z,Co(se,a),ge)}return Z}function oc(a){return function(l){return Ga(l,a)}}function Za(a,l,y,_){var V=_?go:on,Z=-1,se=l.length,ge=a;for(a===l&&(l=Er(l)),y&&(ge=ct(a,xt(y)));++Z<se;)for(var xe=0,Qe=l[Z],tt=y?y(Qe):Qe;(xe=V(ge,tt,xe,_))>-1;)ge!==a&&Ba.call(ge,xe,1),Ba.call(a,xe,1);return a}function fl(a,l){for(var y=a?l.length:0,_=y-1;y--;){var V=l[y];if(y==_||V!==Z){var Z=V;wl(V)?Ba.call(a,V,1):cc(a,V)}}return a}function iu(a,l){return a+bs(Bo()*(l-a+1))}function Jc(a,l,y,_){for(var V=-1,Z=Nn(Js((l-a)/(y||1)),0),se=ce(Z);Z--;)se[_?Z:++V]=a,a+=y;return se}function ac(a,l){var y="";if(!a||l<1||l>Xe)return y;do l%2&&(y+=a),l=bs(l/2),l&&(a+=a);while(l);return y}function Gt(a,l){return vg(mb(a,l,Oo),a+"")}function dl(a){return ln(ff(a))}function Qc(a,l){var y=ff(a);return ih(y,va(l,0,y.length))}function Ja(a,l,y,_){if(!tr(a))return a;l=Co(l,a);for(var V=-1,Z=l.length,se=Z-1,ge=a;ge!=null&&++V<Z;){var xe=Ms(l[V]),Qe=y;if(xe==="__proto__"||xe==="constructor"||xe==="prototype")return a;if(V!=se){var tt=ge[xe];Qe=_?_(tt,xe,ge):n,Qe===n&&(Qe=tr(tt)?tt:wl(l[V+1])?[]:{})}Vn(ge,xe,Qe),ge=ge[xe]}return a}var Ps=da?function(a,l){return da.set(a,l),a}:Oo,sc=jo?function(a,l){return jo(a,"toString",{configurable:!0,enumerable:!1,value:kg(l),writable:!0})}:Oo;function lc(a){return ih(ff(a))}function oi(a,l,y){var _=-1,V=a.length;l<0&&(l=-l>V?0:V+l),y=y>V?V:y,y<0&&(y+=V),V=l>y?0:y-l>>>0,l>>>=0;for(var Z=ce(V);++_<V;)Z[_]=a[_+l];return Z}function uc(a,l){var y;return ma(a,function(_,V,Z){return y=l(_,V,Z),!y}),!!y}function hl(a,l,y){var _=0,V=a==null?_:a.length;if(typeof l=="number"&&l===l&&V<=ze){for(;_<V;){var Z=_+V>>>1,se=a[Z];se!==null&&!Go(se)&&(y?se<=l:se<l)?_=Z+1:V=Z}return V}return ou(a,l,Oo,y)}function ou(a,l,y,_){var V=0,Z=a==null?0:a.length;if(Z===0)return 0;l=y(l);for(var se=l!==l,ge=l===null,xe=Go(l),Qe=l===n;V<Z;){var tt=bs((V+Z)/2),it=y(a[tt]),ht=it!==n,Ot=it===null,Lt=it===it,tn=Go(it);if(se)var Ft=_||Lt;else Qe?Ft=Lt&&(_||ht):ge?Ft=Lt&&ht&&(_||!Ot):xe?Ft=Lt&&ht&&!Ot&&(_||!tn):Ot||tn?Ft=!1:Ft=_?it<=l:it<l;Ft?V=tt+1:Z=tt}return jn(Z,Ve)}function au(a,l){for(var y=-1,_=a.length,V=0,Z=[];++y<_;){var se=a[y],ge=l?l(se):se;if(!y||!ts(ge,xe)){var xe=ge;Z[V++]=se===0?0:se}}return Z}function ef(a){return typeof a=="number"?a:Go(a)?Ce:+a}function wi(a){if(typeof a=="string")return a;if(Xt(a))return ct(a,wi)+"";if(Go(a))return $a?$a.call(a):"";var l=a+"";return l=="0"&&1/a==-je?"-0":l}function Yo(a,l,y){var _=-1,V=Ee,Z=a.length,se=!0,ge=[],xe=ge;if(y)se=!1,V=Ze;else if(Z>=i){var Qe=l?null:Mt(a);if(Qe)return Xi(Qe);se=!1,V=Dt,xe=new Ha}else xe=l?[]:ge;e:for(;++_<Z;){var tt=a[_],it=l?l(tt):tt;if(tt=y||tt!==0?tt:0,se&&it===it){for(var ht=xe.length;ht--;)if(xe[ht]===it)continue e;l&&xe.push(it),ge.push(tt)}else V(xe,it,y)||(xe!==ge&&xe.push(it),ge.push(tt))}return ge}function cc(a,l){return l=Co(l,a),a=yb(a,l),a==null||delete a[Ms(ba(l))]}function tf(a,l,y,_){return Ja(a,l,y(Ga(a,l)),_)}function Rs(a,l,y,_){for(var V=a.length,Z=_?V:-1;(_?Z--:++Z<V)&&l(a[Z],Z,a););return y?oi(a,_?0:Z,_?Z+1:V):oi(a,_?Z+1:0,_?V:Z)}function nf(a,l){var y=a;return y instanceof qt&&(y=y.value()),Rt(l,function(_,V){return V.func.apply(V.thisArg,_t([_],V.args))},y)}function zr(a,l,y){var _=a.length;if(_<2)return _?Yo(a[0]):[];for(var V=-1,Z=ce(_);++V<_;)for(var se=a[V],ge=-1;++ge<_;)ge!=V&&(Z[V]=Uo(Z[V]||se,a[ge],l,y));return Yo(pr(Z,1),l,y)}function su(a,l,y){for(var _=-1,V=a.length,Z=l.length,se={};++_<V;){var ge=_<Z?l[_]:n;y(se,a[_],ge)}return se}function lu(a){return gr(a)?a:[]}function Yr(a){return typeof a=="function"?a:Oo}function Co(a,l){return Xt(a)?a:hg(a,l)?[a]:Sb(wn(a))}var rf=Gt;function ya(a,l,y){var _=a.length;return y=y===n?_:y,!l&&y>=_?a:oi(a,l,y)}var pl=Ks||function(a){return yn.clearTimeout(a)};function gl(a,l){if(l)return a.slice();var y=a.length,_=$l?$l(y):new a.constructor(y);return a.copy(_),_}function uu(a){var l=new a.constructor(a.byteLength);return new ms(l).set(new ms(a)),l}function of(a,l){var y=l?uu(a.buffer):a.buffer;return new a.constructor(y,a.byteOffset,a.byteLength)}function vl(a){var l=new a.constructor(a.source,hi.exec(a));return l.lastIndex=a.lastIndex,l}function ml(a){return rl?ut(rl.call(a)):{}}function yl(a,l){var y=l?uu(a.buffer):a.buffer;return new a.constructor(y,a.byteOffset,a.length)}function fc(a,l){if(a!==l){var y=a!==n,_=a===null,V=a===a,Z=Go(a),se=l!==n,ge=l===null,xe=l===l,Qe=Go(l);if(!ge&&!Qe&&!Z&&a>l||Z&&se&&xe&&!ge&&!Qe||_&&se&&xe||!y&&xe||!V)return 1;if(!_&&!Z&&!Qe&&a<l||Qe&&y&&V&&!_&&!Z||ge&&y&&V||!se&&V||!xe)return-1}return 0}function bl(a,l,y){for(var _=-1,V=a.criteria,Z=l.criteria,se=V.length,ge=y.length;++_<se;){var xe=fc(V[_],Z[_]);if(xe){if(_>=ge)return xe;var Qe=y[_];return xe*(Qe=="desc"?-1:1)}}return a.index-l.index}function Is(a,l,y,_){for(var V=-1,Z=a.length,se=y.length,ge=-1,xe=l.length,Qe=Nn(Z-se,0),tt=ce(xe+Qe),it=!_;++ge<xe;)tt[ge]=l[ge];for(;++V<se;)(it||V<Z)&&(tt[y[V]]=a[V]);for(;Qe--;)tt[ge++]=a[V++];return tt}function af(a,l,y,_){for(var V=-1,Z=a.length,se=-1,ge=y.length,xe=-1,Qe=l.length,tt=Nn(Z-ge,0),it=ce(tt+Qe),ht=!_;++V<tt;)it[V]=a[V];for(var Ot=V;++xe<Qe;)it[Ot+xe]=l[xe];for(;++se<ge;)(ht||V<Z)&&(it[Ot+y[se]]=a[V++]);return it}function Er(a,l){var y=-1,_=a.length;for(l||(l=ce(_));++y<_;)l[y]=a[y];return l}function xi(a,l,y,_){var V=!y;y||(y={});for(var Z=-1,se=l.length;++Z<se;){var ge=l[Z],xe=_?_(y[ge],a[ge],ge,y,a):n;xe===n&&(xe=a[ge]),V?hr(y,ge,xe):Vn(y,ge,xe)}return y}function Xf(a,l){return xi(a,dg(a),l)}function sf(a,l){return xi(a,db(a),l)}function Qa(a,l){return function(y,_){var V=Xt(y)?le:za,Z=l?l():{};return V(y,a,Pt(_,2),Z)}}function As(a){return Gt(function(l,y){var _=-1,V=y.length,Z=V>1?y[V-1]:n,se=V>2?y[2]:n;for(Z=a.length>3&&typeof Z=="function"?(V--,Z):n,se&&ro(y[0],y[1],se)&&(Z=V<3?n:Z,V=1),l=ut(l);++_<V;){var ge=y[_];ge&&a(l,ge,_,Z)}return l})}function g(a,l){return function(y,_){if(y==null)return y;if(!Eo(y))return a(y,_);for(var V=y.length,Z=l?V:-1,se=ut(y);(l?Z--:++Z<V)&&_(se[Z],Z,se)!==!1;);return y}}function w(a){return function(l,y,_){for(var V=-1,Z=ut(l),se=_(l),ge=se.length;ge--;){var xe=se[a?ge:++V];if(y(Z[xe],xe,Z)===!1)break}return l}}function A(a,l,y){var _=l&L,V=ae(a);function Z(){var se=this&&this!==yn&&this instanceof Z?V:a;return se.apply(_?y:this,arguments)}return Z}function $(a){return function(l){l=wn(l);var y=ii(l)?dr(l):n,_=y?y[0]:l.charAt(0),V=y?ya(y,1).join(""):l.slice(1);return _[a]()+V}}function K(a){return function(l){return Rt(e0(Qb(l).replace(Ma,"")),a,"")}}function ae(a){return function(){var l=arguments;switch(l.length){case 0:return new a;case 1:return new a(l[0]);case 2:return new a(l[0],l[1]);case 3:return new a(l[0],l[1],l[2]);case 4:return new a(l[0],l[1],l[2],l[3]);case 5:return new a(l[0],l[1],l[2],l[3],l[4]);case 6:return new a(l[0],l[1],l[2],l[3],l[4],l[5]);case 7:return new a(l[0],l[1],l[2],l[3],l[4],l[5],l[6])}var y=pa(a.prototype),_=a.apply(y,l);return tr(_)?_:y}}function me(a,l,y){var _=ae(a);function V(){for(var Z=arguments.length,se=ce(Z),ge=Z,xe=uf(V);ge--;)se[ge]=arguments[ge];var Qe=Z<3&&se[0]!==xe&&se[Z-1]!==xe?[]:bi(se,xe);if(Z-=Qe.length,Z<y)return pt(a,l,b,V.placeholder,n,se,Qe,n,n,y-Z);var tt=this&&this!==yn&&this instanceof V?_:a;return U(tt,this,se)}return V}function Ae(a){return function(l,y,_){var V=ut(l);if(!Eo(l)){var Z=Pt(y,3);l=ai(l),y=function(ge){return Z(V[ge],ge,V)}}var se=a(l,y,_);return se>-1?V[Z?l[se]:se]:n}}function h(a){return es(function(l){var y=l.length,_=y,V=Ur.prototype.thru;for(a&&l.reverse();_--;){var Z=l[_];if(typeof Z!="function")throw new Yt(s);if(V&&!se&&nh(Z)=="wrapper")var se=new Ur([],!0)}for(_=se?_:y;++_<y;){Z=l[_];var ge=nh(Z),xe=ge=="wrapper"?cg(Z):n;xe&&pg(xe[0])&&xe[1]==(x|W|J|ye)&&!xe[4].length&&xe[9]==1?se=se[nh(xe[0])].apply(se,xe[3]):se=Z.length==1&&pg(Z)?se[ge]():se.thru(Z)}return function(){var Qe=arguments,tt=Qe[0];if(se&&Qe.length==1&&Xt(tt))return se.plant(tt).value();for(var it=0,ht=y?l[it].apply(this,Qe):tt;++it<y;)ht=l[it].call(this,ht);return ht}})}function b(a,l,y,_,V,Z,se,ge,xe,Qe){var tt=l&x,it=l&L,ht=l&R,Ot=l&(W|te),Lt=l&ue,tn=ht?n:ae(a);function Ft(){for(var rn=arguments.length,an=ce(rn),qo=rn;qo--;)an[qo]=arguments[qo];if(Ot)var io=uf(Ft),Xo=Cn(an,io);if(_&&(an=Is(an,_,V,Ot)),Z&&(an=af(an,Z,se,Ot)),rn-=Xo,Ot&&rn<Qe){var vr=bi(an,io);return pt(a,l,b,Ft.placeholder,y,an,vr,ge,xe,Qe-rn)}var ns=it?y:this,Tl=ht?ns[a]:a;return rn=an.length,ge?an=_D(an,ge):Lt&&rn>1&&an.reverse(),tt&&xe<rn&&(an.length=xe),this&&this!==yn&&this instanceof Ft&&(Tl=tn||ae(Tl)),Tl.apply(ns,an)}return Ft}function D(a,l){return function(y,_){return tc(y,a,l(_),{})}}function M(a,l){return function(y,_){var V;if(y===n&&_===n)return l;if(y!==n&&(V=y),_!==n){if(V===n)return _;typeof y=="string"||typeof _=="string"?(y=wi(y),_=wi(_)):(y=ef(y),_=ef(_)),V=a(y,_)}return V}}function Y(a){return es(function(l){return l=ct(l,xt(Pt())),Gt(function(y){var _=this;return a(l,function(V){return U(V,_,y)})})})}function ie(a,l){l=l===n?" ":wi(l);var y=l.length;if(y<2)return y?ac(l,a):l;var _=ac(l,Js(a/yo(l)));return ii(l)?ya(dr(_),0,a).join(""):_.slice(0,a)}function fe(a,l,y,_){var V=l&L,Z=ae(a);function se(){for(var ge=-1,xe=arguments.length,Qe=-1,tt=_.length,it=ce(tt+xe),ht=this&&this!==yn&&this instanceof se?Z:a;++Qe<tt;)it[Qe]=_[Qe];for(;xe--;)it[Qe++]=arguments[++ge];return U(ht,V?y:this,it)}return se}function Ie(a){return function(l,y,_){return _&&typeof _!="number"&&ro(l,y,_)&&(y=_=n),l=Sl(l),y===n?(y=l,l=0):y=Sl(y),_=_===n?l<y?1:-1:Sl(_),Jc(l,y,_,a)}}function et(a){return function(l,y){return typeof l=="string"&&typeof y=="string"||(l=wa(l),y=wa(y)),a(l,y)}}function pt(a,l,y,_,V,Z,se,ge,xe,Qe){var tt=l&W,it=tt?se:n,ht=tt?n:se,Ot=tt?Z:n,Lt=tt?n:Z;l|=tt?J:de,l&=~(tt?de:J),l&H||(l&=~(L|R));var tn=[a,l,V,Ot,it,Lt,ht,ge,xe,Qe],Ft=y.apply(n,tn);return pg(a)&&bb(Ft,tn),Ft.placeholder=_,wb(Ft,a,l)}function St(a){var l=dt[a];return function(y,_){if(y=wa(y),_=_==null?0:jn(en(_),292),_&&Hu(y)){var V=(wn(y)+"e").split("e"),Z=l(V[0]+"e"+(+V[1]+_));return V=(wn(Z)+"e").split("e"),+(V[0]+"e"+(+V[1]-_))}return l(y)}}var Mt=Hr&&1/Xi(new Hr([,-0]))[1]==je?function(a){return new Hr(a)}:_g;function bn(a){return function(l){var y=Li(l);return y==Ht?ds(l):y==rr?qs(l):He(l,a(l))}}function On(a,l,y,_,V,Z,se,ge){var xe=l&R;if(!xe&&typeof a!="function")throw new Yt(s);var Qe=_?_.length:0;if(Qe||(l&=~(J|de),_=V=n),se=se===n?se:Nn(en(se),0),ge=ge===n?ge:en(ge),Qe-=V?V.length:0,l&de){var tt=_,it=V;_=V=n}var ht=xe?n:cg(a),Ot=[a,l,y,_,V,tt,it,Z,se,ge];if(ht&&kD(Ot,ht),a=Ot[0],l=Ot[1],y=Ot[2],_=Ot[3],V=Ot[4],ge=Ot[9]=Ot[9]===n?xe?0:a.length:Nn(Ot[9]-Qe,0),!ge&&l&(W|te)&&(l&=~(W|te)),!l||l==L)var Lt=A(a,l,y);else l==W||l==te?Lt=me(a,l,ge):(l==J||l==(L|J))&&!V.length?Lt=fe(a,l,y,_):Lt=b.apply(n,Ot);var tn=ht?Ps:bb;return wb(tn(Lt,Ot),a,l)}function Si(a,l,y,_){return a===n||ts(a,qn[y])&&!At.call(_,y)?l:a}function dc(a,l,y,_,V,Z){return tr(a)&&tr(l)&&(Z.set(l,a),_s(a,l,n,dc,Z),Z.delete(l)),a}function lf(a){return Jf(a)?n:a}function hc(a,l,y,_,V,Z){var se=y&P,ge=a.length,xe=l.length;if(ge!=xe&&!(se&&xe>ge))return!1;var Qe=Z.get(a),tt=Z.get(l);if(Qe&&tt)return Qe==l&&tt==a;var it=-1,ht=!0,Ot=y&I?new Ha:n;for(Z.set(a,l),Z.set(l,a);++it<ge;){var Lt=a[it],tn=l[it];if(_)var Ft=se?_(tn,Lt,it,l,a,Z):_(Lt,tn,it,a,l,Z);if(Ft!==n){if(Ft)continue;ht=!1;break}if(Ot){if(!dn(l,function(rn,an){if(!Dt(Ot,an)&&(Lt===rn||V(Lt,rn,y,_,Z)))return Ot.push(an)})){ht=!1;break}}else if(!(Lt===tn||V(Lt,tn,y,_,Z))){ht=!1;break}}return Z.delete(a),Z.delete(l),ht}function cu(a,l,y,_,V,Z,se){switch(y){case un:if(a.byteLength!=l.byteLength||a.byteOffset!=l.byteOffset)return!1;a=a.buffer,l=l.buffer;case li:return!(a.byteLength!=l.byteLength||!Z(new ms(a),new ms(l)));case mt:case wt:case Xn:return ts(+a,+l);case Et:return a.name==l.name&&a.message==l.message;case Dr:case cn:return a==l+"";case Ht:var ge=ds;case rr:var xe=_&P;if(ge||(ge=Xi),a.size!=l.size&&!xe)return!1;var Qe=se.get(a);if(Qe)return Qe==l;_|=I,se.set(a,l);var tt=hc(ge(a),ge(l),_,V,Z,se);return se.delete(a),tt;case hn:if(rl)return rl.call(a)==rl.call(l)}return!1}function sg(a,l,y,_,V,Z){var se=y&P,ge=lg(a),xe=ge.length,Qe=lg(l),tt=Qe.length;if(xe!=tt&&!se)return!1;for(var it=xe;it--;){var ht=ge[it];if(!(se?ht in l:At.call(l,ht)))return!1}var Ot=Z.get(a),Lt=Z.get(l);if(Ot&&Lt)return Ot==l&&Lt==a;var tn=!0;Z.set(a,l),Z.set(l,a);for(var Ft=se;++it<xe;){ht=ge[it];var rn=a[ht],an=l[ht];if(_)var qo=se?_(an,rn,ht,l,a,Z):_(rn,an,ht,a,l,Z);if(!(qo===n?rn===an||V(rn,an,y,_,Z):qo)){tn=!1;break}Ft||(Ft=ht=="constructor")}if(tn&&!Ft){var io=a.constructor,Xo=l.constructor;io!=Xo&&"constructor"in a&&"constructor"in l&&!(typeof io=="function"&&io instanceof io&&typeof Xo=="function"&&Xo instanceof Xo)&&(tn=!1)}return Z.delete(a),Z.delete(l),tn}function es(a){return vg(mb(a,n,kb),a+"")}function lg(a){return ol(a,ai,dg)}function ug(a){return ol(a,ko,db)}var cg=da?function(a){return da.get(a)}:_g;function nh(a){for(var l=a.name+"",y=ha[l],_=At.call(ha,l)?y.length:0;_--;){var V=y[_],Z=V.func;if(Z==null||Z==a)return V.name}return l}function uf(a){var l=At.call(G,"placeholder")?G:a;return l.placeholder}function Pt(){var a=G.iteratee||Og;return a=a===Og?Os:a,arguments.length?a(arguments[0],arguments[1]):a}function rh(a,l){var y=a.__data__;return SD(l)?y[typeof l=="string"?"string":"hash"]:y.map}function fg(a){for(var l=ai(a),y=l.length;y--;){var _=l[y],V=a[_];l[y]=[_,V,gb(V)]}return l}function pc(a,l){var y=aa(a,l);return ic(y)?y:n}function gD(a){var l=At.call(a,Zi),y=a[Zi];try{a[Zi]=n;var _=!0}catch{}var V=ua.call(a);return _&&(l?a[Zi]=y:delete a[Zi]),V}var dg=Qs?function(a){return a==null?[]:(a=ut(a),Be(Qs(a),function(l){return $u.call(a,l)}))}:Pg,db=Qs?function(a){for(var l=[];a;)_t(l,dg(a)),a=ys(a);return l}:Pg,Li=Cr;($o&&Li(new $o(new ArrayBuffer(1)))!=un||Ji&&Li(new Ji)!=Ht||el&&Li(el.resolve())!=_n||Hr&&Li(new Hr)!=rr||ca&&Li(new ca)!=gt)&&(Li=function(a){var l=Cr(a),y=l==Kn?a.constructor:n,_=y?gc(y):"";if(_)switch(_){case tl:return un;case Uc:return Ht;case Wc:return _n;case Ul:return rr;case nl:return gt}return l});function vD(a,l,y){for(var _=-1,V=y.length;++_<V;){var Z=y[_],se=Z.size;switch(Z.type){case"drop":a+=se;break;case"dropRight":l-=se;break;case"take":l=jn(l,a+se);break;case"takeRight":a=Nn(a,l-se);break}}return{start:a,end:l}}function mD(a){var l=a.match(Aa);return l?l[1].split(Zr):[]}function hb(a,l,y){l=Co(l,a);for(var _=-1,V=l.length,Z=!1;++_<V;){var se=Ms(l[_]);if(!(Z=a!=null&&y(a,se)))break;a=a[se]}return Z||++_!=V?Z:(V=a==null?0:a.length,!!V&&ch(V)&&wl(se,V)&&(Xt(a)||vc(a)))}function yD(a){var l=a.length,y=new a.constructor(l);return l&&typeof a[0]=="string"&&At.call(a,"index")&&(y.index=a.index,y.input=a.input),y}function pb(a){return typeof a.constructor=="function"&&!Kf(a)?pa(ys(a)):{}}function bD(a,l,y){var _=a.constructor;switch(l){case li:return uu(a);case mt:case wt:return new _(+a);case un:return of(a,y);case Vi:case Hi:case Ui:case _r:case Wn:case Pr:case yr:case qr:case Xr:return yl(a,y);case Ht:return new _;case Xn:case cn:return new _(a);case Dr:return vl(a);case rr:return new _;case hn:return ml(a)}}function wD(a,l){var y=l.length;if(!y)return a;var _=y-1;return l[_]=(y>1?"& ":"")+l[_],l=l.join(y>2?", ":" "),a.replace(Ia,`{
152
+ /* [wrapped with `+l+`] */
153
+ `)}function xD(a){return Xt(a)||vc(a)||!!(Vl&&a&&a[Vl])}function wl(a,l){var y=typeof a;return l=l??Xe,!!l&&(y=="number"||y!="symbol"&&wr.test(a))&&a>-1&&a%1==0&&a<l}function ro(a,l,y){if(!tr(y))return!1;var _=typeof l;return(_=="number"?Eo(y)&&wl(l,y.length):_=="string"&&l in y)?ts(y[l],a):!1}function hg(a,l){if(Xt(a))return!1;var y=typeof a;return y=="number"||y=="symbol"||y=="boolean"||a==null||Go(a)?!0:mn.test(a)||!fi.test(a)||l!=null&&a in ut(l)}function SD(a){var l=typeof a;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?a!=="__proto__":a===null}function pg(a){var l=nh(a),y=G[l];if(typeof y!="function"||!(l in qt.prototype))return!1;if(a===y)return!0;var _=cg(y);return!!_&&a===_[0]}function TD(a){return!!En&&En in a}var CD=Vr?xl:Rg;function Kf(a){var l=a&&a.constructor,y=typeof l=="function"&&l.prototype||qn;return a===y}function gb(a){return a===a&&!tr(a)}function vb(a,l){return function(y){return y==null?!1:y[a]===l&&(l!==n||a in ut(y))}}function ED(a){var l=lh(a,function(_){return y.size===d&&y.clear(),_}),y=l.cache;return l}function kD(a,l){var y=a[1],_=l[1],V=y|_,Z=V<(L|R|x),se=_==x&&y==W||_==x&&y==ye&&a[7].length<=l[8]||_==(x|ye)&&l[7].length<=l[8]&&y==W;if(!(Z||se))return a;_&L&&(a[2]=l[2],V|=y&L?0:H);var ge=l[3];if(ge){var xe=a[3];a[3]=xe?Is(xe,ge,l[4]):ge,a[4]=xe?bi(a[3],v):l[4]}return ge=l[5],ge&&(xe=a[5],a[5]=xe?af(xe,ge,l[6]):ge,a[6]=xe?bi(a[5],v):l[6]),ge=l[7],ge&&(a[7]=ge),_&x&&(a[8]=a[8]==null?l[8]:jn(a[8],l[8])),a[9]==null&&(a[9]=l[9]),a[0]=l[0],a[1]=V,a}function OD(a){var l=[];if(a!=null)for(var y in ut(a))l.push(y);return l}function DD(a){return ua.call(a)}function mb(a,l,y){return l=Nn(l===n?a.length-1:l,0),function(){for(var _=arguments,V=-1,Z=Nn(_.length-l,0),se=ce(Z);++V<Z;)se[V]=_[l+V];V=-1;for(var ge=ce(l+1);++V<l;)ge[V]=_[V];return ge[l]=y(se),U(a,this,ge)}}function yb(a,l){return l.length<2?a:Ga(a,oi(l,0,-1))}function _D(a,l){for(var y=a.length,_=jn(l.length,y),V=Er(a);_--;){var Z=l[_];a[_]=wl(Z,y)?V[Z]:n}return a}function gg(a,l){if(!(l==="constructor"&&typeof a[l]=="function")&&l!="__proto__")return a[l]}var bb=xb(Ps),Zf=Hl||function(a,l){return yn.setTimeout(a,l)},vg=xb(sc);function wb(a,l,y){var _=l+"";return vg(a,wD(_,PD(mD(_),y)))}function xb(a){var l=0,y=0;return function(){var _=Wu(),V=Ye-(_-y);if(y=_,V>0){if(++l>=$e)return arguments[0]}else l=0;return a.apply(n,arguments)}}function ih(a,l){var y=-1,_=a.length,V=_-1;for(l=l===n?_:l;++y<l;){var Z=iu(y,V),se=a[Z];a[Z]=a[y],a[y]=se}return a.length=l,a}var Sb=ED(function(a){var l=[];return a.charCodeAt(0)===46&&l.push(""),a.replace(uo,function(y,_,V,Z){l.push(V?Z.replace(Ro,"$1"):_||y)}),l});function Ms(a){if(typeof a=="string"||Go(a))return a;var l=a+"";return l=="0"&&1/a==-je?"-0":l}function gc(a){if(a!=null){try{return Ki.call(a)}catch{}try{return a+""}catch{}}return""}function PD(a,l){return oe(Re,function(y){var _="_."+y[0];l&y[1]&&!Ee(a,_)&&a.push(_)}),a.sort()}function Tb(a){if(a instanceof qt)return a.clone();var l=new Ur(a.__wrapped__,a.__chain__);return l.__actions__=Er(a.__actions__),l.__index__=a.__index__,l.__values__=a.__values__,l}function RD(a,l,y){(y?ro(a,l,y):l===n)?l=1:l=Nn(en(l),0);var _=a==null?0:a.length;if(!_||l<1)return[];for(var V=0,Z=0,se=ce(Js(_/l));V<_;)se[Z++]=oi(a,V,V+=l);return se}function ID(a){for(var l=-1,y=a==null?0:a.length,_=0,V=[];++l<y;){var Z=a[l];Z&&(V[_++]=Z)}return V}function AD(){var a=arguments.length;if(!a)return[];for(var l=ce(a-1),y=arguments[0],_=a;_--;)l[_-1]=arguments[_];return _t(Xt(y)?Er(y):[y],pr(l,1))}var MD=Gt(function(a,l){return gr(a)?Uo(a,pr(l,1,gr,!0)):[]}),LD=Gt(function(a,l){var y=ba(l);return gr(y)&&(y=n),gr(a)?Uo(a,pr(l,1,gr,!0),Pt(y,2)):[]}),FD=Gt(function(a,l){var y=ba(l);return gr(y)&&(y=n),gr(a)?Uo(a,pr(l,1,gr,!0),n,y):[]});function ND(a,l,y){var _=a==null?0:a.length;return _?(l=y||l===n?1:en(l),oi(a,l<0?0:l,_)):[]}function jD(a,l,y){var _=a==null?0:a.length;return _?(l=y||l===n?1:en(l),l=_-l,oi(a,0,l<0?0:l)):[]}function BD(a,l){return a&&a.length?Rs(a,Pt(l,3),!0,!0):[]}function $D(a,l){return a&&a.length?Rs(a,Pt(l,3),!0):[]}function VD(a,l,y,_){var V=a==null?0:a.length;return V?(y&&typeof y!="number"&&ro(a,l,y)&&(y=0,_=V),Xc(a,l,y,_)):[]}function Cb(a,l,y){var _=a==null?0:a.length;if(!_)return-1;var V=y==null?0:en(y);return V<0&&(V=Nn(_+V,0)),zt(a,Pt(l,3),V)}function Eb(a,l,y){var _=a==null?0:a.length;if(!_)return-1;var V=_-1;return y!==n&&(V=en(y),V=y<0?Nn(_+V,0):jn(V,_-1)),zt(a,Pt(l,3),V,!0)}function kb(a){var l=a==null?0:a.length;return l?pr(a,1):[]}function HD(a){var l=a==null?0:a.length;return l?pr(a,je):[]}function UD(a,l){var y=a==null?0:a.length;return y?(l=l===n?1:en(l),pr(a,l)):[]}function WD(a){for(var l=-1,y=a==null?0:a.length,_={};++l<y;){var V=a[l];_[V[0]]=V[1]}return _}function Ob(a){return a&&a.length?a[0]:n}function zD(a,l,y){var _=a==null?0:a.length;if(!_)return-1;var V=y==null?0:en(y);return V<0&&(V=Nn(_+V,0)),on(a,l,V)}function YD(a){var l=a==null?0:a.length;return l?oi(a,0,-1):[]}var GD=Gt(function(a){var l=ct(a,lu);return l.length&&l[0]===a[0]?Es(l):[]}),qD=Gt(function(a){var l=ba(a),y=ct(a,lu);return l===ba(y)?l=n:y.pop(),y.length&&y[0]===a[0]?Es(y,Pt(l,2)):[]}),XD=Gt(function(a){var l=ba(a),y=ct(a,lu);return l=typeof l=="function"?l:n,l&&y.pop(),y.length&&y[0]===a[0]?Es(y,n,l):[]});function KD(a,l){return a==null?"":ws.call(a,l)}function ba(a){var l=a==null?0:a.length;return l?a[l-1]:n}function ZD(a,l,y){var _=a==null?0:a.length;if(!_)return-1;var V=_;return y!==n&&(V=en(y),V=V<0?Nn(_+V,0):jn(V,_-1)),l===l?la(a,l,V):zt(a,vo,V,!0)}function JD(a,l){return a&&a.length?Ka(a,en(l)):n}var QD=Gt(Db);function Db(a,l){return a&&a.length&&l&&l.length?Za(a,l):a}function e_(a,l,y){return a&&a.length&&l&&l.length?Za(a,l,Pt(y,2)):a}function t_(a,l,y){return a&&a.length&&l&&l.length?Za(a,l,n,y):a}var n_=es(function(a,l){var y=a==null?0:a.length,_=qu(a,l);return fl(a,ct(l,function(V){return wl(V,y)?+V:V}).sort(fc)),_});function r_(a,l){var y=[];if(!(a&&a.length))return y;var _=-1,V=[],Z=a.length;for(l=Pt(l,3);++_<Z;){var se=a[_];l(se,_,a)&&(y.push(se),V.push(_))}return fl(a,V),y}function mg(a){return a==null?a:Hc.call(a)}function i_(a,l,y){var _=a==null?0:a.length;return _?(y&&typeof y!="number"&&ro(a,l,y)?(l=0,y=_):(l=l==null?0:en(l),y=y===n?_:en(y)),oi(a,l,y)):[]}function o_(a,l){return hl(a,l)}function a_(a,l,y){return ou(a,l,Pt(y,2))}function s_(a,l){var y=a==null?0:a.length;if(y){var _=hl(a,l);if(_<y&&ts(a[_],l))return _}return-1}function l_(a,l){return hl(a,l,!0)}function u_(a,l,y){return ou(a,l,Pt(y,2),!0)}function c_(a,l){var y=a==null?0:a.length;if(y){var _=hl(a,l,!0)-1;if(ts(a[_],l))return _}return-1}function f_(a){return a&&a.length?au(a):[]}function d_(a,l){return a&&a.length?au(a,Pt(l,2)):[]}function h_(a){var l=a==null?0:a.length;return l?oi(a,1,l):[]}function p_(a,l,y){return a&&a.length?(l=y||l===n?1:en(l),oi(a,0,l<0?0:l)):[]}function g_(a,l,y){var _=a==null?0:a.length;return _?(l=y||l===n?1:en(l),l=_-l,oi(a,l<0?0:l,_)):[]}function v_(a,l){return a&&a.length?Rs(a,Pt(l,3),!1,!0):[]}function m_(a,l){return a&&a.length?Rs(a,Pt(l,3)):[]}var y_=Gt(function(a){return Yo(pr(a,1,gr,!0))}),b_=Gt(function(a){var l=ba(a);return gr(l)&&(l=n),Yo(pr(a,1,gr,!0),Pt(l,2))}),w_=Gt(function(a){var l=ba(a);return l=typeof l=="function"?l:n,Yo(pr(a,1,gr,!0),n,l)});function x_(a){return a&&a.length?Yo(a):[]}function S_(a,l){return a&&a.length?Yo(a,Pt(l,2)):[]}function T_(a,l){return l=typeof l=="function"?l:n,a&&a.length?Yo(a,n,l):[]}function yg(a){if(!(a&&a.length))return[];var l=0;return a=Be(a,function(y){if(gr(y))return l=Nn(y.length,l),!0}),Te(l,function(y){return ct(a,k(y))})}function _b(a,l){if(!(a&&a.length))return[];var y=yg(a);return l==null?y:ct(y,function(_){return U(l,n,_)})}var C_=Gt(function(a,l){return gr(a)?Uo(a,l):[]}),E_=Gt(function(a){return zr(Be(a,gr))}),k_=Gt(function(a){var l=ba(a);return gr(l)&&(l=n),zr(Be(a,gr),Pt(l,2))}),O_=Gt(function(a){var l=ba(a);return l=typeof l=="function"?l:n,zr(Be(a,gr),n,l)}),D_=Gt(yg);function __(a,l){return su(a||[],l||[],Vn)}function P_(a,l){return su(a||[],l||[],Ja)}var R_=Gt(function(a){var l=a.length,y=l>1?a[l-1]:n;return y=typeof y=="function"?(a.pop(),y):n,_b(a,y)});function Pb(a){var l=G(a);return l.__chain__=!0,l}function I_(a,l){return l(a),a}function oh(a,l){return l(a)}var A_=es(function(a){var l=a.length,y=l?a[0]:0,_=this.__wrapped__,V=function(Z){return qu(Z,a)};return l>1||this.__actions__.length||!(_ instanceof qt)||!wl(y)?this.thru(V):(_=_.slice(y,+y+(l?1:0)),_.__actions__.push({func:oh,args:[V],thisArg:n}),new Ur(_,this.__chain__).thru(function(Z){return l&&!Z.length&&Z.push(n),Z}))});function M_(){return Pb(this)}function L_(){return new Ur(this.value(),this.__chain__)}function F_(){this.__values__===n&&(this.__values__=Wb(this.value()));var a=this.__index__>=this.__values__.length,l=a?n:this.__values__[this.__index__++];return{done:a,value:l}}function N_(){return this}function j_(a){for(var l,y=this;y instanceof Va;){var _=Tb(y);_.__index__=0,_.__values__=n,l?V.__wrapped__=_:l=_;var V=_;y=y.__wrapped__}return V.__wrapped__=a,l}function B_(){var a=this.__wrapped__;if(a instanceof qt){var l=a;return this.__actions__.length&&(l=new qt(this)),l=l.reverse(),l.__actions__.push({func:oh,args:[mg],thisArg:n}),new Ur(l,this.__chain__)}return this.thru(mg)}function $_(){return nf(this.__wrapped__,this.__actions__)}var V_=Qa(function(a,l,y){At.call(a,y)?++a[y]:hr(a,y,1)});function H_(a,l,y){var _=Xt(a)?Le:Jl;return y&&ro(a,l,y)&&(l=n),_(a,Pt(l,3))}function U_(a,l){var y=Xt(a)?Be:Ju;return y(a,Pt(l,3))}var W_=Ae(Cb),z_=Ae(Eb);function Y_(a,l){return pr(ah(a,l),1)}function G_(a,l){return pr(ah(a,l),je)}function q_(a,l,y){return y=y===n?1:en(y),pr(ah(a,l),y)}function Rb(a,l){var y=Xt(a)?oe:ma;return y(a,Pt(l,3))}function Ib(a,l){var y=Xt(a)?we:Zu;return y(a,Pt(l,3))}var X_=Qa(function(a,l,y){At.call(a,y)?a[y].push(l):hr(a,y,[l])});function K_(a,l,y,_){a=Eo(a)?a:ff(a),y=y&&!_?en(y):0;var V=a.length;return y<0&&(y=Nn(V+y,0)),fh(a)?y<=V&&a.indexOf(l,y)>-1:!!V&&on(a,l,y)>-1}var Z_=Gt(function(a,l,y){var _=-1,V=typeof l=="function",Z=Eo(a)?ce(a.length):[];return ma(a,function(se){Z[++_]=V?U(l,se,y):Ii(se,l,y)}),Z}),J_=Qa(function(a,l,y){hr(a,y,l)});function ah(a,l){var y=Xt(a)?ct:Ds;return y(a,Pt(l,3))}function Q_(a,l,y,_){return a==null?[]:(Xt(l)||(l=l==null?[]:[l]),y=_?n:y,Xt(y)||(y=y==null?[]:[y]),ru(a,l,y))}var eP=Qa(function(a,l,y){a[y?0:1].push(l)},function(){return[[],[]]});function tP(a,l,y){var _=Xt(a)?Rt:z,V=arguments.length<3;return _(a,Pt(l,4),y,V,ma)}function nP(a,l,y){var _=Xt(a)?Ln:z,V=arguments.length<3;return _(a,Pt(l,4),y,V,Zu)}function rP(a,l){var y=Xt(a)?Be:Ju;return y(a,uh(Pt(l,3)))}function iP(a){var l=Xt(a)?ln:dl;return l(a)}function oP(a,l,y){(y?ro(a,l,y):l===n)?l=1:l=en(l);var _=Xt(a)?Pi:Qc;return _(a,l)}function aP(a){var l=Xt(a)?Wa:lc;return l(a)}function sP(a){if(a==null)return 0;if(Eo(a))return fh(a)?yo(a):a.length;var l=Li(a);return l==Ht||l==rr?a.size:cl(a).length}function lP(a,l,y){var _=Xt(a)?dn:uc;return y&&ro(a,l,y)&&(l=n),_(a,Pt(l,3))}var uP=Gt(function(a,l){if(a==null)return[];var y=l.length;return y>1&&ro(a,l[0],l[1])?l=[]:y>2&&ro(l[0],l[1],l[2])&&(l=[l[0]]),ru(a,pr(l,1),[])}),sh=Zs||function(){return yn.Date.now()};function cP(a,l){if(typeof l!="function")throw new Yt(s);return a=en(a),function(){if(--a<1)return l.apply(this,arguments)}}function Ab(a,l,y){return l=y?n:l,l=a&&l==null?a.length:l,On(a,x,n,n,n,n,l)}function Mb(a,l){var y;if(typeof l!="function")throw new Yt(s);return a=en(a),function(){return--a>0&&(y=l.apply(this,arguments)),a<=1&&(l=n),y}}var bg=Gt(function(a,l,y){var _=L;if(y.length){var V=bi(y,uf(bg));_|=J}return On(a,_,l,y,V)}),Lb=Gt(function(a,l,y){var _=L|R;if(y.length){var V=bi(y,uf(Lb));_|=J}return On(l,_,a,y,V)});function Fb(a,l,y){l=y?n:l;var _=On(a,W,n,n,n,n,n,l);return _.placeholder=Fb.placeholder,_}function Nb(a,l,y){l=y?n:l;var _=On(a,te,n,n,n,n,n,l);return _.placeholder=Nb.placeholder,_}function jb(a,l,y){var _,V,Z,se,ge,xe,Qe=0,tt=!1,it=!1,ht=!0;if(typeof a!="function")throw new Yt(s);l=wa(l)||0,tr(y)&&(tt=!!y.leading,it="maxWait"in y,Z=it?Nn(wa(y.maxWait)||0,l):Z,ht="trailing"in y?!!y.trailing:ht);function Ot(vr){var ns=_,Tl=V;return _=V=n,Qe=vr,se=a.apply(Tl,ns),se}function Lt(vr){return Qe=vr,ge=Zf(rn,l),tt?Ot(vr):se}function tn(vr){var ns=vr-xe,Tl=vr-Qe,r0=l-ns;return it?jn(r0,Z-Tl):r0}function Ft(vr){var ns=vr-xe,Tl=vr-Qe;return xe===n||ns>=l||ns<0||it&&Tl>=Z}function rn(){var vr=sh();if(Ft(vr))return an(vr);ge=Zf(rn,tn(vr))}function an(vr){return ge=n,ht&&_?Ot(vr):(_=V=n,se)}function qo(){ge!==n&&pl(ge),Qe=0,_=xe=V=ge=n}function io(){return ge===n?se:an(sh())}function Xo(){var vr=sh(),ns=Ft(vr);if(_=arguments,V=this,xe=vr,ns){if(ge===n)return Lt(xe);if(it)return pl(ge),ge=Zf(rn,l),Ot(xe)}return ge===n&&(ge=Zf(rn,l)),se}return Xo.cancel=qo,Xo.flush=io,Xo}var fP=Gt(function(a,l){return Ku(a,1,l)}),dP=Gt(function(a,l,y){return Ku(a,wa(l)||0,y)});function hP(a){return On(a,ue)}function lh(a,l){if(typeof a!="function"||l!=null&&typeof l!="function")throw new Yt(s);var y=function(){var _=arguments,V=l?l.apply(this,_):_[0],Z=y.cache;if(Z.has(V))return Z.get(V);var se=a.apply(this,_);return y.cache=Z.set(V,se)||Z,se};return y.cache=new(lh.Cache||Vo),y}lh.Cache=Vo;function uh(a){if(typeof a!="function")throw new Yt(s);return function(){var l=arguments;switch(l.length){case 0:return!a.call(this);case 1:return!a.call(this,l[0]);case 2:return!a.call(this,l[0],l[1]);case 3:return!a.call(this,l[0],l[1],l[2])}return!a.apply(this,l)}}function pP(a){return Mb(2,a)}var gP=rf(function(a,l){l=l.length==1&&Xt(l[0])?ct(l[0],xt(Pt())):ct(pr(l,1),xt(Pt()));var y=l.length;return Gt(function(_){for(var V=-1,Z=jn(_.length,y);++V<Z;)_[V]=l[V].call(this,_[V]);return U(a,this,_)})}),wg=Gt(function(a,l){var y=bi(l,uf(wg));return On(a,J,n,l,y)}),Bb=Gt(function(a,l){var y=bi(l,uf(Bb));return On(a,de,n,l,y)}),vP=es(function(a,l){return On(a,ye,n,n,n,l)});function mP(a,l){if(typeof a!="function")throw new Yt(s);return l=l===n?l:en(l),Gt(a,l)}function yP(a,l){if(typeof a!="function")throw new Yt(s);return l=l==null?0:Nn(en(l),0),Gt(function(y){var _=y[l],V=ya(y,0,l);return _&&_t(V,_),U(a,this,V)})}function bP(a,l,y){var _=!0,V=!0;if(typeof a!="function")throw new Yt(s);return tr(y)&&(_="leading"in y?!!y.leading:_,V="trailing"in y?!!y.trailing:V),jb(a,l,{leading:_,maxWait:l,trailing:V})}function wP(a){return Ab(a,1)}function xP(a,l){return wg(Yr(l),a)}function SP(){if(!arguments.length)return[];var a=arguments[0];return Xt(a)?a:[a]}function TP(a){return Wr(a,T)}function CP(a,l){return l=typeof l=="function"?l:n,Wr(a,T,l)}function EP(a){return Wr(a,p|T)}function kP(a,l){return l=typeof l=="function"?l:n,Wr(a,p|T,l)}function OP(a,l){return l==null||qc(a,l,ai(l))}function ts(a,l){return a===l||a!==a&&l!==l}var DP=et(al),_P=et(function(a,l){return a>=l}),vc=ul(function(){return arguments}())?ul:function(a){return sr(a)&&At.call(a,"callee")&&!$u.call(a,"callee")},Xt=ce.isArray,PP=f?xt(f):tu;function Eo(a){return a!=null&&ch(a.length)&&!xl(a)}function gr(a){return sr(a)&&Eo(a)}function RP(a){return a===!0||a===!1||sr(a)&&Cr(a)==mt}var fu=Vu||Rg,IP=m?xt(m):qa;function AP(a){return sr(a)&&a.nodeType===1&&!Jf(a)}function MP(a){if(a==null)return!0;if(Eo(a)&&(Xt(a)||typeof a=="string"||typeof a.splice=="function"||fu(a)||cf(a)||vc(a)))return!a.length;var l=Li(a);if(l==Ht||l==rr)return!a.size;if(Kf(a))return!cl(a).length;for(var y in a)if(At.call(a,y))return!1;return!0}function LP(a,l){return ks(a,l)}function FP(a,l,y){y=typeof y=="function"?y:n;var _=y?y(a,l):n;return _===n?ks(a,l,n,y):!!_}function xg(a){if(!sr(a))return!1;var l=Cr(a);return l==Et||l==vt||typeof a.message=="string"&&typeof a.name=="string"&&!Jf(a)}function NP(a){return typeof a=="number"&&Hu(a)}function xl(a){if(!tr(a))return!1;var l=Cr(a);return l==ot||l==$t||l==lt||l==$i}function $b(a){return typeof a=="number"&&a==en(a)}function ch(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=Xe}function tr(a){var l=typeof a;return a!=null&&(l=="object"||l=="function")}function sr(a){return a!=null&&typeof a=="object"}var Vb=C?xt(C):Xa;function jP(a,l){return a===l||rc(a,l,fg(l))}function BP(a,l,y){return y=typeof y=="function"?y:n,rc(a,l,fg(l),y)}function $P(a){return Hb(a)&&a!=+a}function VP(a){if(CD(a))throw new Ge(o);return ic(a)}function HP(a){return a===null}function UP(a){return a==null}function Hb(a){return typeof a=="number"||sr(a)&&Cr(a)==Xn}function Jf(a){if(!sr(a)||Cr(a)!=Kn)return!1;var l=ys(a);if(l===null)return!0;var y=At.call(l,"constructor")&&l.constructor;return typeof y=="function"&&y instanceof y&&Ki.call(y)==ju}var Sg=O?xt(O):To;function WP(a){return $b(a)&&a>=-Xe&&a<=Xe}var Ub=N?xt(N):Gf;function fh(a){return typeof a=="string"||!Xt(a)&&sr(a)&&Cr(a)==cn}function Go(a){return typeof a=="symbol"||sr(a)&&Cr(a)==hn}var cf=B?xt(B):qf;function zP(a){return a===n}function YP(a){return sr(a)&&Li(a)==gt}function GP(a){return sr(a)&&Cr(a)==In}var qP=et(to),XP=et(function(a,l){return a<=l});function Wb(a){if(!a)return[];if(Eo(a))return fh(a)?dr(a):Er(a);if(No&&a[No])return mo(a[No]());var l=Li(a),y=l==Ht?ds:l==rr?Xi:ff;return y(a)}function Sl(a){if(!a)return a===0?a:0;if(a=wa(a),a===je||a===-je){var l=a<0?-1:1;return l*at}return a===a?a:0}function en(a){var l=Sl(a),y=l%1;return l===l?y?l-y:l:0}function zb(a){return a?va(en(a),0,Pe):0}function wa(a){if(typeof a=="number")return a;if(Go(a))return Ce;if(tr(a)){var l=typeof a.valueOf=="function"?a.valueOf():a;a=tr(l)?l+"":l}if(typeof a!="string")return a===0?a:+a;a=nt(a);var y=ho.test(a);return y||Jr.test(a)?ja(a.slice(2),y?2:8):Oi.test(a)?Ce:+a}function Yb(a){return xi(a,ko(a))}function KP(a){return a?va(en(a),-Xe,Xe):a===0?a:0}function wn(a){return a==null?"":wi(a)}var ZP=As(function(a,l){if(Kf(l)||Eo(l)){xi(l,ai(l),a);return}for(var y in l)At.call(l,y)&&Vn(a,y,l[y])}),Gb=As(function(a,l){xi(l,ko(l),a)}),dh=As(function(a,l,y,_){xi(l,ko(l),a,_)}),JP=As(function(a,l,y,_){xi(l,ai(l),a,_)}),QP=es(qu);function eR(a,l){var y=pa(a);return l==null?y:eo(y,l)}var tR=Gt(function(a,l){a=ut(a);var y=-1,_=l.length,V=_>2?l[2]:n;for(V&&ro(l[0],l[1],V)&&(_=1);++y<_;)for(var Z=l[y],se=ko(Z),ge=-1,xe=se.length;++ge<xe;){var Qe=se[ge],tt=a[Qe];(tt===n||ts(tt,qn[Qe])&&!At.call(a,Qe))&&(a[Qe]=Z[Qe])}return a}),nR=Gt(function(a){return a.push(n,dc),U(qb,n,a)});function rR(a,l){return $r(a,Pt(l,3),So)}function iR(a,l){return $r(a,Pt(l,3),ec)}function oR(a,l){return a==null?a:Qu(a,Pt(l,3),ko)}function aR(a,l){return a==null?a:Kc(a,Pt(l,3),ko)}function sR(a,l){return a&&So(a,Pt(l,3))}function lR(a,l){return a&&ec(a,Pt(l,3))}function uR(a){return a==null?[]:eu(a,ai(a))}function cR(a){return a==null?[]:eu(a,ko(a))}function Tg(a,l,y){var _=a==null?n:Ga(a,l);return _===n?y:_}function fR(a,l){return a!=null&&hb(a,l,sl)}function Cg(a,l){return a!=null&&hb(a,l,Zc)}var dR=D(function(a,l,y){l!=null&&typeof l.toString!="function"&&(l=ua.call(l)),a[l]=y},kg(Oo)),hR=D(function(a,l,y){l!=null&&typeof l.toString!="function"&&(l=ua.call(l)),At.call(a,l)?a[l].push(y):a[l]=[y]},Pt),pR=Gt(Ii);function ai(a){return Eo(a)?ga(a):cl(a)}function ko(a){return Eo(a)?ga(a,!0):nu(a)}function gR(a,l){var y={};return l=Pt(l,3),So(a,function(_,V,Z){hr(y,l(_,V,Z),_)}),y}function vR(a,l){var y={};return l=Pt(l,3),So(a,function(_,V,Z){hr(y,V,l(_,V,Z))}),y}var mR=As(function(a,l,y){_s(a,l,y)}),qb=As(function(a,l,y,_){_s(a,l,y,_)}),yR=es(function(a,l){var y={};if(a==null)return y;var _=!1;l=ct(l,function(Z){return Z=Co(Z,a),_||(_=Z.length>1),Z}),xi(a,ug(a),y),_&&(y=Wr(y,p|S|T,lf));for(var V=l.length;V--;)cc(y,l[V]);return y});function bR(a,l){return Xb(a,uh(Pt(l)))}var wR=es(function(a,l){return a==null?{}:Mi(a,l)});function Xb(a,l){if(a==null)return{};var y=ct(ug(a),function(_){return[_]});return l=Pt(l),zo(a,y,function(_,V){return l(_,V[0])})}function xR(a,l,y){l=Co(l,a);var _=-1,V=l.length;for(V||(V=1,a=n);++_<V;){var Z=a==null?n:a[Ms(l[_])];Z===n&&(_=V,Z=y),a=xl(Z)?Z.call(a):Z}return a}function SR(a,l,y){return a==null?a:Ja(a,l,y)}function TR(a,l,y,_){return _=typeof _=="function"?_:n,a==null?a:Ja(a,l,y,_)}var Kb=bn(ai),Zb=bn(ko);function CR(a,l,y){var _=Xt(a),V=_||fu(a)||cf(a);if(l=Pt(l,4),y==null){var Z=a&&a.constructor;V?y=_?new Z:[]:tr(a)?y=xl(Z)?pa(ys(a)):{}:y={}}return(V?oe:So)(a,function(se,ge,xe){return l(y,se,ge,xe)}),y}function ER(a,l){return a==null?!0:cc(a,l)}function kR(a,l,y){return a==null?a:tf(a,l,Yr(y))}function OR(a,l,y,_){return _=typeof _=="function"?_:n,a==null?a:tf(a,l,Yr(y),_)}function ff(a){return a==null?[]:Nt(a,ai(a))}function DR(a){return a==null?[]:Nt(a,ko(a))}function _R(a,l,y){return y===n&&(y=l,l=n),y!==n&&(y=wa(y),y=y===y?y:0),l!==n&&(l=wa(l),l=l===l?l:0),va(wa(a),l,y)}function PR(a,l,y){return l=Sl(l),y===n?(y=l,l=0):y=Sl(y),a=wa(a),ll(a,l,y)}function RR(a,l,y){if(y&&typeof y!="boolean"&&ro(a,l,y)&&(l=y=n),y===n&&(typeof l=="boolean"?(y=l,l=n):typeof a=="boolean"&&(y=a,a=n)),a===n&&l===n?(a=0,l=1):(a=Sl(a),l===n?(l=a,a=0):l=Sl(l)),a>l){var _=a;a=l,l=_}if(y||a%1||l%1){var V=Bo();return jn(a+V*(l-a+fr("1e-"+((V+"").length-1))),l)}return iu(a,l)}var IR=K(function(a,l,y){return l=l.toLowerCase(),a+(y?Jb(l):l)});function Jb(a){return Eg(wn(a).toLowerCase())}function Qb(a){return a=wn(a),a&&a.replace(Rr,Gn).replace(La,"")}function AR(a,l,y){a=wn(a),l=wi(l);var _=a.length;y=y===n?_:va(en(y),0,_);var V=y;return y-=l.length,y>=0&&a.slice(y,V)==l}function MR(a){return a=wn(a),a&&Wi.test(a)?a.replace(Zt,oa):a}function LR(a){return a=wn(a),a&&di.test(a)?a.replace(br,"\\$&"):a}var FR=K(function(a,l,y){return a+(y?"-":"")+l.toLowerCase()}),NR=K(function(a,l,y){return a+(y?" ":"")+l.toLowerCase()}),jR=$("toLowerCase");function BR(a,l,y){a=wn(a),l=en(l);var _=l?yo(a):0;if(!l||_>=l)return a;var V=(l-_)/2;return ie(bs(V),y)+a+ie(Js(V),y)}function $R(a,l,y){a=wn(a),l=en(l);var _=l?yo(a):0;return l&&_<l?a+ie(l-_,y):a}function VR(a,l,y){a=wn(a),l=en(l);var _=l?yo(a):0;return l&&_<l?ie(l-_,y)+a:a}function HR(a,l,y){return y||l==null?l=0:l&&(l=+l),zu(wn(a).replace(fn,""),l||0)}function UR(a,l,y){return(y?ro(a,l,y):l===n)?l=1:l=en(l),ac(wn(a),l)}function WR(){var a=arguments,l=wn(a[0]);return a.length<3?l:l.replace(a[1],a[2])}var zR=K(function(a,l,y){return a+(y?"_":"")+l.toLowerCase()});function YR(a,l,y){return y&&typeof y!="number"&&ro(a,l,y)&&(l=y=n),y=y===n?Pe:y>>>0,y?(a=wn(a),a&&(typeof l=="string"||l!=null&&!Sg(l))&&(l=wi(l),!l&&ii(a))?ya(dr(a),0,y):a.split(l,y)):[]}var GR=K(function(a,l,y){return a+(y?" ":"")+Eg(l)});function qR(a,l,y){return a=wn(a),y=y==null?0:va(en(y),0,a.length),l=wi(l),a.slice(y,y+l.length)==l}function XR(a,l,y){var _=G.templateSettings;y&&ro(a,l,y)&&(l=n),a=wn(a),l=dh({},l,_,Si);var V=dh({},l.imports,_.imports,Si),Z=ai(V),se=Nt(V,Z),ge,xe,Qe=0,tt=l.interpolate||Qr,it="__p += '",ht=It((l.escape||Qr).source+"|"+tt.source+"|"+(tt===ci?ki:Qr).source+"|"+(l.evaluate||Qr).source+"|$","g"),Ot="//# sourceURL="+(At.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++sn+"]")+`
154
+ `;a.replace(ht,function(Ft,rn,an,qo,io,Xo){return an||(an=qo),it+=a.slice(Qe,Xo).replace(Ir,fs),rn&&(ge=!0,it+=`' +
155
+ __e(`+rn+`) +
156
+ '`),io&&(xe=!0,it+=`';
157
+ `+io+`;
158
+ __p += '`),an&&(it+=`' +
159
+ ((__t = (`+an+`)) == null ? '' : __t) +
160
+ '`),Qe=Xo+Ft.length,Ft}),it+=`';
161
+ `;var Lt=At.call(l,"variable")&&l.variable;if(!Lt)it=`with (obj) {
162
+ `+it+`
163
+ }
164
+ `;else if(fo.test(Lt))throw new Ge(u);it=(xe?it.replace(Po,""):it).replace(Zn,"$1").replace(Kr,"$1;"),it="function("+(Lt||"obj")+`) {
165
+ `+(Lt?"":`obj || (obj = {});
166
+ `)+"var __t, __p = ''"+(ge?", __e = _.escape":"")+(xe?`, __j = Array.prototype.join;
167
+ function print() { __p += __j.call(arguments, '') }
168
+ `:`;
169
+ `)+it+`return __p
170
+ }`;var tn=t0(function(){return ft(Z,Ot+"return "+it).apply(n,se)});if(tn.source=it,xg(tn))throw tn;return tn}function KR(a){return wn(a).toLowerCase()}function ZR(a){return wn(a).toUpperCase()}function JR(a,l,y){if(a=wn(a),a&&(y||l===n))return nt(a);if(!a||!(l=wi(l)))return a;var _=dr(a),V=dr(l),Z=Ct(_,V),se=$n(_,V)+1;return ya(_,Z,se).join("")}function QR(a,l,y){if(a=wn(a),a&&(y||l===n))return a.slice(0,Xs(a)+1);if(!a||!(l=wi(l)))return a;var _=dr(a),V=$n(_,dr(l))+1;return ya(_,0,V).join("")}function eI(a,l,y){if(a=wn(a),a&&(y||l===n))return a.replace(fn,"");if(!a||!(l=wi(l)))return a;var _=dr(a),V=Ct(_,dr(l));return ya(_,V).join("")}function tI(a,l){var y=Je,_=Ne;if(tr(l)){var V="separator"in l?l.separator:V;y="length"in l?en(l.length):y,_="omission"in l?wi(l.omission):_}a=wn(a);var Z=a.length;if(ii(a)){var se=dr(a);Z=se.length}if(y>=Z)return a;var ge=y-yo(_);if(ge<1)return _;var xe=se?ya(se,0,ge).join(""):a.slice(0,ge);if(V===n)return xe+_;if(se&&(ge+=xe.length-ge),Sg(V)){if(a.slice(ge).search(V)){var Qe,tt=xe;for(V.global||(V=It(V.source,wn(hi.exec(V))+"g")),V.lastIndex=0;Qe=V.exec(tt);)var it=Qe.index;xe=xe.slice(0,it===n?ge:it)}}else if(a.indexOf(wi(V),ge)!=ge){var ht=xe.lastIndexOf(V);ht>-1&&(xe=xe.slice(0,ht))}return xe+_}function nI(a){return a=wn(a),a&&ui.test(a)?a.replace(ir,hs):a}var rI=K(function(a,l,y){return a+(y?" ":"")+l.toUpperCase()}),Eg=$("toUpperCase");function e0(a,l,y){return a=wn(a),l=y?n:l,l===n?Gs(a)?ve(a):Wt(a):a.match(l)||[]}var t0=Gt(function(a,l){try{return U(a,n,l)}catch(y){return xg(y)?y:new Ge(y)}}),iI=es(function(a,l){return oe(l,function(y){y=Ms(y),hr(a,y,bg(a[y],a))}),a});function oI(a){var l=a==null?0:a.length,y=Pt();return a=l?ct(a,function(_){if(typeof _[1]!="function")throw new Yt(s);return[y(_[0]),_[1]]}):[],Gt(function(_){for(var V=-1;++V<l;){var Z=a[V];if(U(Z[0],this,_))return U(Z[1],this,_)}})}function aI(a){return Xu(Wr(a,p))}function kg(a){return function(){return a}}function sI(a,l){return a==null||a!==a?l:a}var lI=h(),uI=h(!0);function Oo(a){return a}function Og(a){return Os(typeof a=="function"?a:Wr(a,p))}function cI(a){return Wo(Wr(a,p))}function fI(a,l){return no(a,Wr(l,p))}var dI=Gt(function(a,l){return function(y){return Ii(y,a,l)}}),hI=Gt(function(a,l){return function(y){return Ii(a,y,l)}});function Dg(a,l,y){var _=ai(l),V=eu(l,_);y==null&&!(tr(l)&&(V.length||!_.length))&&(y=l,l=a,a=this,V=eu(l,ai(l)));var Z=!(tr(y)&&"chain"in y)||!!y.chain,se=xl(a);return oe(V,function(ge){var xe=l[ge];a[ge]=xe,se&&(a.prototype[ge]=function(){var Qe=this.__chain__;if(Z||Qe){var tt=a(this.__wrapped__),it=tt.__actions__=Er(this.__actions__);return it.push({func:xe,args:arguments,thisArg:a}),tt.__chain__=Qe,tt}return xe.apply(a,_t([this.value()],arguments))})}),a}function pI(){return yn._===this&&(yn._=kn),this}function _g(){}function gI(a){return a=en(a),Gt(function(l){return Ka(l,a)})}var vI=Y(ct),mI=Y(Le),yI=Y(dn);function n0(a){return hg(a)?k(Ms(a)):oc(a)}function bI(a){return function(l){return a==null?n:Ga(a,l)}}var wI=Ie(),xI=Ie(!0);function Pg(){return[]}function Rg(){return!1}function SI(){return{}}function TI(){return""}function CI(){return!0}function EI(a,l){if(a=en(a),a<1||a>Xe)return[];var y=Pe,_=jn(a,Pe);l=Pt(l),a-=Pe;for(var V=Te(_,l);++y<a;)l(y);return V}function kI(a){return Xt(a)?ct(a,Ms):Go(a)?[a]:Er(Sb(wn(a)))}function OI(a){var l=++Vc;return wn(a)+l}var DI=M(function(a,l){return a+l},0),_I=St("ceil"),PI=M(function(a,l){return a/l},1),RI=St("floor");function II(a){return a&&a.length?Ql(a,Oo,al):n}function AI(a,l){return a&&a.length?Ql(a,Pt(l,2),al):n}function MI(a){return Tr(a,Oo)}function LI(a,l){return Tr(a,Pt(l,2))}function FI(a){return a&&a.length?Ql(a,Oo,to):n}function NI(a,l){return a&&a.length?Ql(a,Pt(l,2),to):n}var jI=M(function(a,l){return a*l},1),BI=St("round"),$I=M(function(a,l){return a-l},0);function VI(a){return a&&a.length?Se(a,Oo):0}function HI(a,l){return a&&a.length?Se(a,Pt(l,2)):0}return G.after=cP,G.ary=Ab,G.assign=ZP,G.assignIn=Gb,G.assignInWith=dh,G.assignWith=JP,G.at=QP,G.before=Mb,G.bind=bg,G.bindAll=iI,G.bindKey=Lb,G.castArray=SP,G.chain=Pb,G.chunk=RD,G.compact=ID,G.concat=AD,G.cond=oI,G.conforms=aI,G.constant=kg,G.countBy=V_,G.create=eR,G.curry=Fb,G.curryRight=Nb,G.debounce=jb,G.defaults=tR,G.defaultsDeep=nR,G.defer=fP,G.delay=dP,G.difference=MD,G.differenceBy=LD,G.differenceWith=FD,G.drop=ND,G.dropRight=jD,G.dropRightWhile=BD,G.dropWhile=$D,G.fill=VD,G.filter=U_,G.flatMap=Y_,G.flatMapDeep=G_,G.flatMapDepth=q_,G.flatten=kb,G.flattenDeep=HD,G.flattenDepth=UD,G.flip=hP,G.flow=lI,G.flowRight=uI,G.fromPairs=WD,G.functions=uR,G.functionsIn=cR,G.groupBy=X_,G.initial=YD,G.intersection=GD,G.intersectionBy=qD,G.intersectionWith=XD,G.invert=dR,G.invertBy=hR,G.invokeMap=Z_,G.iteratee=Og,G.keyBy=J_,G.keys=ai,G.keysIn=ko,G.map=ah,G.mapKeys=gR,G.mapValues=vR,G.matches=cI,G.matchesProperty=fI,G.memoize=lh,G.merge=mR,G.mergeWith=qb,G.method=dI,G.methodOf=hI,G.mixin=Dg,G.negate=uh,G.nthArg=gI,G.omit=yR,G.omitBy=bR,G.once=pP,G.orderBy=Q_,G.over=vI,G.overArgs=gP,G.overEvery=mI,G.overSome=yI,G.partial=wg,G.partialRight=Bb,G.partition=eP,G.pick=wR,G.pickBy=Xb,G.property=n0,G.propertyOf=bI,G.pull=QD,G.pullAll=Db,G.pullAllBy=e_,G.pullAllWith=t_,G.pullAt=n_,G.range=wI,G.rangeRight=xI,G.rearg=vP,G.reject=rP,G.remove=r_,G.rest=mP,G.reverse=mg,G.sampleSize=oP,G.set=SR,G.setWith=TR,G.shuffle=aP,G.slice=i_,G.sortBy=uP,G.sortedUniq=f_,G.sortedUniqBy=d_,G.split=YR,G.spread=yP,G.tail=h_,G.take=p_,G.takeRight=g_,G.takeRightWhile=v_,G.takeWhile=m_,G.tap=I_,G.throttle=bP,G.thru=oh,G.toArray=Wb,G.toPairs=Kb,G.toPairsIn=Zb,G.toPath=kI,G.toPlainObject=Yb,G.transform=CR,G.unary=wP,G.union=y_,G.unionBy=b_,G.unionWith=w_,G.uniq=x_,G.uniqBy=S_,G.uniqWith=T_,G.unset=ER,G.unzip=yg,G.unzipWith=_b,G.update=kR,G.updateWith=OR,G.values=ff,G.valuesIn=DR,G.without=C_,G.words=e0,G.wrap=xP,G.xor=E_,G.xorBy=k_,G.xorWith=O_,G.zip=D_,G.zipObject=__,G.zipObjectDeep=P_,G.zipWith=R_,G.entries=Kb,G.entriesIn=Zb,G.extend=Gb,G.extendWith=dh,Dg(G,G),G.add=DI,G.attempt=t0,G.camelCase=IR,G.capitalize=Jb,G.ceil=_I,G.clamp=_R,G.clone=TP,G.cloneDeep=EP,G.cloneDeepWith=kP,G.cloneWith=CP,G.conformsTo=OP,G.deburr=Qb,G.defaultTo=sI,G.divide=PI,G.endsWith=AR,G.eq=ts,G.escape=MR,G.escapeRegExp=LR,G.every=H_,G.find=W_,G.findIndex=Cb,G.findKey=rR,G.findLast=z_,G.findLastIndex=Eb,G.findLastKey=iR,G.floor=RI,G.forEach=Rb,G.forEachRight=Ib,G.forIn=oR,G.forInRight=aR,G.forOwn=sR,G.forOwnRight=lR,G.get=Tg,G.gt=DP,G.gte=_P,G.has=fR,G.hasIn=Cg,G.head=Ob,G.identity=Oo,G.includes=K_,G.indexOf=zD,G.inRange=PR,G.invoke=pR,G.isArguments=vc,G.isArray=Xt,G.isArrayBuffer=PP,G.isArrayLike=Eo,G.isArrayLikeObject=gr,G.isBoolean=RP,G.isBuffer=fu,G.isDate=IP,G.isElement=AP,G.isEmpty=MP,G.isEqual=LP,G.isEqualWith=FP,G.isError=xg,G.isFinite=NP,G.isFunction=xl,G.isInteger=$b,G.isLength=ch,G.isMap=Vb,G.isMatch=jP,G.isMatchWith=BP,G.isNaN=$P,G.isNative=VP,G.isNil=UP,G.isNull=HP,G.isNumber=Hb,G.isObject=tr,G.isObjectLike=sr,G.isPlainObject=Jf,G.isRegExp=Sg,G.isSafeInteger=WP,G.isSet=Ub,G.isString=fh,G.isSymbol=Go,G.isTypedArray=cf,G.isUndefined=zP,G.isWeakMap=YP,G.isWeakSet=GP,G.join=KD,G.kebabCase=FR,G.last=ba,G.lastIndexOf=ZD,G.lowerCase=NR,G.lowerFirst=jR,G.lt=qP,G.lte=XP,G.max=II,G.maxBy=AI,G.mean=MI,G.meanBy=LI,G.min=FI,G.minBy=NI,G.stubArray=Pg,G.stubFalse=Rg,G.stubObject=SI,G.stubString=TI,G.stubTrue=CI,G.multiply=jI,G.nth=JD,G.noConflict=pI,G.noop=_g,G.now=sh,G.pad=BR,G.padEnd=$R,G.padStart=VR,G.parseInt=HR,G.random=RR,G.reduce=tP,G.reduceRight=nP,G.repeat=UR,G.replace=WR,G.result=xR,G.round=BI,G.runInContext=Q,G.sample=iP,G.size=sP,G.snakeCase=zR,G.some=lP,G.sortedIndex=o_,G.sortedIndexBy=a_,G.sortedIndexOf=s_,G.sortedLastIndex=l_,G.sortedLastIndexBy=u_,G.sortedLastIndexOf=c_,G.startCase=GR,G.startsWith=qR,G.subtract=$I,G.sum=VI,G.sumBy=HI,G.template=XR,G.times=EI,G.toFinite=Sl,G.toInteger=en,G.toLength=zb,G.toLower=KR,G.toNumber=wa,G.toSafeInteger=KP,G.toString=wn,G.toUpper=ZR,G.trim=JR,G.trimEnd=QR,G.trimStart=eI,G.truncate=tI,G.unescape=nI,G.uniqueId=OI,G.upperCase=rI,G.upperFirst=Eg,G.each=Rb,G.eachRight=Ib,G.first=Ob,Dg(G,function(){var a={};return So(G,function(l,y){At.call(G.prototype,y)||(a[y]=l)}),a}(),{chain:!1}),G.VERSION=r,oe(["bind","bindKey","curry","curryRight","partial","partialRight"],function(a){G[a].placeholder=G}),oe(["drop","take"],function(a,l){qt.prototype[a]=function(y){y=y===n?1:Nn(en(y),0);var _=this.__filtered__&&!l?new qt(this):this.clone();return _.__filtered__?_.__takeCount__=jn(y,_.__takeCount__):_.__views__.push({size:jn(y,Pe),type:a+(_.__dir__<0?"Right":"")}),_},qt.prototype[a+"Right"]=function(y){return this.reverse()[a](y).reverse()}}),oe(["filter","map","takeWhile"],function(a,l){var y=l+1,_=y==qe||y==Oe;qt.prototype[a]=function(V){var Z=this.clone();return Z.__iteratees__.push({iteratee:Pt(V,3),type:y}),Z.__filtered__=Z.__filtered__||_,Z}}),oe(["head","last"],function(a,l){var y="take"+(l?"Right":"");qt.prototype[a]=function(){return this[y](1).value()[0]}}),oe(["initial","tail"],function(a,l){var y="drop"+(l?"":"Right");qt.prototype[a]=function(){return this.__filtered__?new qt(this):this[y](1)}}),qt.prototype.compact=function(){return this.filter(Oo)},qt.prototype.find=function(a){return this.filter(a).head()},qt.prototype.findLast=function(a){return this.reverse().find(a)},qt.prototype.invokeMap=Gt(function(a,l){return typeof a=="function"?new qt(this):this.map(function(y){return Ii(y,a,l)})}),qt.prototype.reject=function(a){return this.filter(uh(Pt(a)))},qt.prototype.slice=function(a,l){a=en(a);var y=this;return y.__filtered__&&(a>0||l<0)?new qt(y):(a<0?y=y.takeRight(-a):a&&(y=y.drop(a)),l!==n&&(l=en(l),y=l<0?y.dropRight(-l):y.take(l-a)),y)},qt.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},qt.prototype.toArray=function(){return this.take(Pe)},So(qt.prototype,function(a,l){var y=/^(?:filter|find|map|reject)|While$/.test(l),_=/^(?:head|last)$/.test(l),V=G[_?"take"+(l=="last"?"Right":""):l],Z=_||/^find/.test(l);V&&(G.prototype[l]=function(){var se=this.__wrapped__,ge=_?[1]:arguments,xe=se instanceof qt,Qe=ge[0],tt=xe||Xt(se),it=function(rn){var an=V.apply(G,_t([rn],ge));return _&&ht?an[0]:an};tt&&y&&typeof Qe=="function"&&Qe.length!=1&&(xe=tt=!1);var ht=this.__chain__,Ot=!!this.__actions__.length,Lt=Z&&!ht,tn=xe&&!Ot;if(!Z&&tt){se=tn?se:new qt(this);var Ft=a.apply(se,ge);return Ft.__actions__.push({func:oh,args:[it],thisArg:n}),new Ur(Ft,ht)}return Lt&&tn?a.apply(this,ge):(Ft=this.thru(it),Lt?_?Ft.value()[0]:Ft.value():Ft)})}),oe(["pop","push","shift","sort","splice","unshift"],function(a){var l=Fn[a],y=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",_=/^(?:pop|shift)$/.test(a);G.prototype[a]=function(){var V=arguments;if(_&&!this.__chain__){var Z=this.value();return l.apply(Xt(Z)?Z:[],V)}return this[y](function(se){return l.apply(Xt(se)?se:[],V)})}}),So(qt.prototype,function(a,l){var y=G[l];if(y){var _=y.name+"";At.call(ha,_)||(ha[_]=[]),ha[_].push({name:l,func:y})}}),ha[b(n,R).name]=[{name:"wrapper",func:n}],qt.prototype.clone=Wl,qt.prototype.reverse=Ss,qt.prototype.value=il,G.prototype.at=A_,G.prototype.chain=M_,G.prototype.commit=L_,G.prototype.next=F_,G.prototype.plant=j_,G.prototype.reverse=B_,G.prototype.toJSON=G.prototype.valueOf=G.prototype.value=$_,G.prototype.first=G.prototype.head,No&&(G.prototype[No]=N_),G},ke=_e();yi?((yi.exports=ke)._=ke,Fo._=ke):yn._=ke}).call(Ti)})(Ep,Ep.exports);var IO=Ep.exports;const s6=Mu(IO);function f1(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}function l6(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,r=e.startIndex,i=e.stopIndex;return!(r>n||i<t)}function u6(e){for(var t=e.isItemLoaded,n=e.itemCount,r=e.minimumBatchSize,i=e.startIndex,o=e.stopIndex,s=[],u=null,c=null,d=i;d<=o;d++){var v=t(d);v?c!==null&&(s.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&&!t(S);S++)c=S;s.push(u,c)}if(s.length)for(;s[1]-s[0]+1<r&&s[0]>0;){var T=s[0]-1;if(!t(T))s[0]=T;else break}return s}var c6=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},f6=function(){function e(t,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(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),d6=function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},d1=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e},h6=function(e){d6(t,e);function t(){var n,r,i,o;c6(this,t);for(var s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];return o=(r=(i=d1(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(u))),i),i._lastRenderedStartIndex=-1,i._lastRenderedStopIndex=-1,i._memoizedUnloadedRanges=[],i._onItemsRendered=function(d){var v=d.visibleStartIndex,p=d.visibleStopIndex;process.env.NODE_ENV!=="production"&&((!f1(v)||!f1(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=v,i._lastRenderedStopIndex=p,i._ensureRowsLoaded(v,p)},i._setRef=function(d){i._listRef=d},r),d1(i,o)}return f6(t,[{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,s=o.isItemLoaded,u=o.itemCount,c=o.minimumBatchSize,d=c===void 0?10:c,v=o.threshold,p=v===void 0?15:v,S=u6({isItemLoaded:s,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(T,P){return S[P]!==T}))&&(this._memoizedUnloadedRanges=S,this._loadUnloadedRanges(S))}},{key:"_loadUnloadedRanges",value:function(r){for(var i=this,o=this.props.loadMoreItems||this.props.loadMoreRows,s=function(d){var v=r[d],p=r[d+1],S=o(v,p);S!=null&&S.then(function(){if(l6({lastRenderedStartIndex:i._lastRenderedStartIndex,lastRenderedStopIndex:i._lastRenderedStopIndex,startIndex:v,stopIndex:p})){if(i._listRef==null)return;typeof i._listRef.resetAfterIndex=="function"?i._listRef.resetAfterIndex(v,!0):(typeof i._listRef._getItemStyleCache=="function"&&i._listRef._getItemStyleCache(-1),i._listRef.forceUpdate())}})},u=0;u<r.length;u+=2)s(u)}}]),t}(X.PureComponent),_v={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
+ */var h1;function AO(){return h1||(h1=1,function(e){(function(t,n){e.exports=t.document?n(t,!0):function(r){if(!r.document)throw new Error("jQuery requires a window with a document");return n(r)}})(typeof window<"u"?window:Ti,function(t,n){var r=[],i=Object.getPrototypeOf,o=r.slice,s=r.flat?function(f){return r.flat.call(f)}:function(f){return r.concat.apply([],f)},u=r.push,c=r.indexOf,d={},v=d.toString,p=d.hasOwnProperty,S=p.toString,T=S.call(Object),P={},I=function(m){return typeof m=="function"&&typeof m.nodeType!="number"&&typeof m.item!="function"},L=function(m){return m!=null&&m===m.window},R=t.document,H={type:!0,src:!0,nonce:!0,noModule:!0};function W(f,m,C){C=C||R;var O,N,B=C.createElement("script");if(B.text=f,m)for(O in H)N=m[O]||m.getAttribute&&m.getAttribute(O),N&&B.setAttribute(O,N);C.head.appendChild(B).parentNode.removeChild(B)}function te(f){return f==null?f+"":typeof f=="object"||typeof f=="function"?d[v.call(f)]||"object":typeof f}var J="3.7.1",de=/HTML$/i,x=function(f,m){return new x.fn.init(f,m)};x.fn=x.prototype={jquery:J,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,C){return f.call(m,C,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,C=+f+(f<0?m:0);return this.pushStack(C>=0&&C<m?[this[C]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:r.sort,splice:r.splice},x.extend=x.fn.extend=function(){var f,m,C,O,N,B,U=arguments[0]||{},le=1,oe=arguments.length,we=!1;for(typeof U=="boolean"&&(we=U,U=arguments[le]||{},le++),typeof U!="object"&&!I(U)&&(U={}),le===oe&&(U=this,le--);le<oe;le++)if((f=arguments[le])!=null)for(m in f)O=f[m],!(m==="__proto__"||U===O)&&(we&&O&&(x.isPlainObject(O)||(N=Array.isArray(O)))?(C=U[m],N&&!Array.isArray(C)?B=[]:!N&&!x.isPlainObject(C)?B={}:B=C,N=!1,U[m]=x.extend(we,B,O)):O!==void 0&&(U[m]=O));return U},x.extend({expando:"jQuery"+(J+Math.random()).replace(/\D/g,""),isReady:!0,error:function(f){throw new Error(f)},noop:function(){},isPlainObject:function(f){var m,C;return!f||v.call(f)!=="[object Object]"?!1:(m=i(f),m?(C=p.call(m,"constructor")&&m.constructor,typeof C=="function"&&S.call(C)===T):!0)},isEmptyObject:function(f){var m;for(m in f)return!1;return!0},globalEval:function(f,m,C){W(f,{nonce:m&&m.nonce},C)},each:function(f,m){var C,O=0;if(ye(f))for(C=f.length;O<C&&m.call(f[O],O,f[O])!==!1;O++);else for(O in f)if(m.call(f[O],O,f[O])===!1)break;return f},text:function(f){var m,C="",O=0,N=f.nodeType;if(!N)for(;m=f[O++];)C+=x.text(m);return N===1||N===11?f.textContent:N===9?f.documentElement.textContent:N===3||N===4?f.nodeValue:C},makeArray:function(f,m){var C=m||[];return f!=null&&(ye(Object(f))?x.merge(C,typeof f=="string"?[f]:f):u.call(C,f)),C},inArray:function(f,m,C){return m==null?-1:c.call(m,f,C)},isXMLDoc:function(f){var m=f&&f.namespaceURI,C=f&&(f.ownerDocument||f).documentElement;return!de.test(m||C&&C.nodeName||"HTML")},merge:function(f,m){for(var C=+m.length,O=0,N=f.length;O<C;O++)f[N++]=m[O];return f.length=N,f},grep:function(f,m,C){for(var O,N=[],B=0,U=f.length,le=!C;B<U;B++)O=!m(f[B],B),O!==le&&N.push(f[B]);return N},map:function(f,m,C){var O,N,B=0,U=[];if(ye(f))for(O=f.length;B<O;B++)N=m(f[B],B,C),N!=null&&U.push(N);else for(B in f)N=m(f[B],B,C),N!=null&&U.push(N);return s(U)},guid:1,support:P}),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 ye(f){var m=!!f&&"length"in f&&f.length,C=te(f);return I(f)||L(f)?!1:C==="array"||m===0||typeof m=="number"&&m>0&&m-1 in f}function ue(f,m){return f.nodeName&&f.nodeName.toLowerCase()===m.toLowerCase()}var Je=r.pop,Ne=r.sort,$e=r.splice,Ye="[\\x20\\t\\r\\n\\f]",qe=new RegExp("^"+Ye+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Ye+"+$","g");x.contains=function(f,m){var C=m&&m.parentNode;return f===C||!!(C&&C.nodeType===1&&(f.contains?f.contains(C):f.compareDocumentPosition&&f.compareDocumentPosition(C)&16))};var pe=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function Oe(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(pe,Oe)};var je=R,Xe=u;(function(){var f,m,C,O,N,B=Xe,U,le,oe,we,Le,Be=x.expando,Ee=0,Ze=0,ct=$n(),_t=$n(),Rt=$n(),Ln=$n(),dn=function(ee,ve){return ee===ve&&(N=!0),0},jr="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",Br="(?:\\\\[\\da-fA-F]{1,6}"+Ye+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Wt="\\["+Ye+"*("+Br+")(?:"+Ye+"*([*^$|!~]?=)"+Ye+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+Br+"))|)"+Ye+"*\\]",$r=":("+Br+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+Wt+")*)|.*)\\)|)",zt=new RegExp(Ye+"+","g"),on=new RegExp("^"+Ye+"*,"+Ye+"*"),go=new RegExp("^"+Ye+"*([>+~]|"+Ye+")"+Ye+"*"),vo=new RegExp(Ye+"|>"),Tr=new RegExp($r),k=new RegExp("^"+Br+"$"),F={ID:new RegExp("^#("+Br+")"),CLASS:new RegExp("^\\.("+Br+")"),TAG:new RegExp("^("+Br+"|[*])"),ATTR:new RegExp("^"+Wt),PSEUDO:new RegExp("^"+$r),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+Ye+"*(even|odd|(([+-]|)(\\d*)n|)"+Ye+"*(?:([+-]|)"+Ye+"*(\\d+)|))"+Ye+"*\\)|)","i"),bool:new RegExp("^(?:"+jr+")$","i"),needsContext:new RegExp("^"+Ye+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+Ye+"*((?:-\\d)?\\d*)"+Ye+"*\\)|)(?=[^-]|$)","i")},z=/^(?:input|select|textarea|button)$/i,ne=/^h\d$/i,Se=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Te=/[+~]/,He=new RegExp("\\\\[\\da-fA-F]{1,6}"+Ye+"?|\\\\([^\\r\\n\\f])","g"),nt=function(ee,ve){var _e="0x"+ee.slice(1)-65536;return ve||(_e<0?String.fromCharCode(_e+65536):String.fromCharCode(_e>>10|55296,_e&1023|56320))},xt=function(){mo()},Nt=Xi(function(ee){return ee.disabled===!0&&ue(ee,"fieldset")},{dir:"parentNode",next:"legend"});function Dt(){try{return U.activeElement}catch{}}try{B.apply(r=o.call(je.childNodes),je.childNodes),r[je.childNodes.length].nodeType}catch{B={apply:function(ve,_e){Xe.apply(ve,o.call(_e))},call:function(ve){Xe.apply(ve,o.call(arguments,1))}}}function Ct(ee,ve,_e,ke){var Q,he,ce,Ue,Ge,ft,dt,ut=ve&&ve.ownerDocument,It=ve?ve.nodeType:9;if(_e=_e||[],typeof ee!="string"||!ee||It!==1&&It!==9&&It!==11)return _e;if(!ke&&(mo(ve),ve=ve||U,oe)){if(It!==11&&(Ge=Se.exec(ee)))if(Q=Ge[1]){if(It===9)if(ce=ve.getElementById(Q)){if(ce.id===Q)return B.call(_e,ce),_e}else return _e;else if(ut&&(ce=ut.getElementById(Q))&&Ct.contains(ve,ce)&&ce.id===Q)return B.call(_e,ce),_e}else{if(Ge[2])return B.apply(_e,ve.getElementsByTagName(ee)),_e;if((Q=Ge[3])&&ve.getElementsByClassName)return B.apply(_e,ve.getElementsByClassName(Q)),_e}if(!Ln[ee+" "]&&(!we||!we.test(ee))){if(dt=ee,ut=ve,It===1&&(vo.test(ee)||go.test(ee))){for(ut=Te.test(ee)&&Gs(ve.parentNode)||ve,(ut!=ve||!P.scope)&&((Ue=ve.getAttribute("id"))?Ue=x.escapeSelector(Ue):ve.setAttribute("id",Ue=Be)),ft=sa(ee),he=ft.length;he--;)ft[he]=(Ue?"#"+Ue:":scope")+" "+bi(ft[he]);dt=ft.join(",")}try{return B.apply(_e,ut.querySelectorAll(dt)),_e}catch{Ln(ee,!0)}finally{Ue===Be&&ve.removeAttribute("id")}}}return ps(ee.replace(qe,"$1"),ve,_e,ke)}function $n(){var ee=[];function ve(_e,ke){return ee.push(_e+" ")>m.cacheLength&&delete ve[ee.shift()],ve[_e+" "]=ke}return ve}function Cn(ee){return ee[Be]=!0,ee}function Gn(ee){var ve=U.createElement("fieldset");try{return!!ee(ve)}catch{return!1}finally{ve.parentNode&&ve.parentNode.removeChild(ve),ve=null}}function oa(ee){return function(ve){return ue(ve,"input")&&ve.type===ee}}function fs(ee){return function(ve){return(ue(ve,"input")||ue(ve,"button"))&&ve.type===ee}}function aa(ee){return function(ve){return"form"in ve?ve.parentNode&&ve.disabled===!1?"label"in ve?"label"in ve.parentNode?ve.parentNode.disabled===ee:ve.disabled===ee:ve.isDisabled===ee||ve.isDisabled!==!ee&&Nt(ve)===ee:ve.disabled===ee:"label"in ve?ve.disabled===ee:!1}}function ii(ee){return Cn(function(ve){return ve=+ve,Cn(function(_e,ke){for(var Q,he=ee([],_e.length,ve),ce=he.length;ce--;)_e[Q=he[ce]]&&(_e[Q]=!(ke[Q]=_e[Q]))})})}function Gs(ee){return ee&&typeof ee.getElementsByTagName<"u"&&ee}function mo(ee){var ve,_e=ee?ee.ownerDocument||ee:je;return _e==U||_e.nodeType!==9||!_e.documentElement||(U=_e,le=U.documentElement,oe=!x.isXMLDoc(U),Le=le.matches||le.webkitMatchesSelector||le.msMatchesSelector,le.msMatchesSelector&&je!=U&&(ve=U.defaultView)&&ve.top!==ve&&ve.addEventListener("unload",xt),P.getById=Gn(function(ke){return le.appendChild(ke).id=x.expando,!U.getElementsByName||!U.getElementsByName(x.expando).length}),P.disconnectedMatch=Gn(function(ke){return Le.call(ke,"*")}),P.scope=Gn(function(){return U.querySelectorAll(":scope")}),P.cssHas=Gn(function(){try{return U.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),P.getById?(m.filter.ID=function(ke){var Q=ke.replace(He,nt);return function(he){return he.getAttribute("id")===Q}},m.find.ID=function(ke,Q){if(typeof Q.getElementById<"u"&&oe){var he=Q.getElementById(ke);return he?[he]:[]}}):(m.filter.ID=function(ke){var Q=ke.replace(He,nt);return function(he){var ce=typeof he.getAttributeNode<"u"&&he.getAttributeNode("id");return ce&&ce.value===Q}},m.find.ID=function(ke,Q){if(typeof Q.getElementById<"u"&&oe){var he,ce,Ue,Ge=Q.getElementById(ke);if(Ge){if(he=Ge.getAttributeNode("id"),he&&he.value===ke)return[Ge];for(Ue=Q.getElementsByName(ke),ce=0;Ge=Ue[ce++];)if(he=Ge.getAttributeNode("id"),he&&he.value===ke)return[Ge]}return[]}}),m.find.TAG=function(ke,Q){return typeof Q.getElementsByTagName<"u"?Q.getElementsByTagName(ke):Q.querySelectorAll(ke)},m.find.CLASS=function(ke,Q){if(typeof Q.getElementsByClassName<"u"&&oe)return Q.getElementsByClassName(ke)},we=[],Gn(function(ke){var Q;le.appendChild(ke).innerHTML="<a id='"+Be+"' href='' disabled='disabled'></a><select id='"+Be+"-\r\\' disabled='disabled'><option selected=''></option></select>",ke.querySelectorAll("[selected]").length||we.push("\\["+Ye+"*(?:value|"+jr+")"),ke.querySelectorAll("[id~="+Be+"-]").length||we.push("~="),ke.querySelectorAll("a#"+Be+"+*").length||we.push(".#.+[+~]"),ke.querySelectorAll(":checked").length||we.push(":checked"),Q=U.createElement("input"),Q.setAttribute("type","hidden"),ke.appendChild(Q).setAttribute("name","D"),le.appendChild(ke).disabled=!0,ke.querySelectorAll(":disabled").length!==2&&we.push(":enabled",":disabled"),Q=U.createElement("input"),Q.setAttribute("name",""),ke.appendChild(Q),ke.querySelectorAll("[name='']").length||we.push("\\["+Ye+"*name"+Ye+"*="+Ye+`*(?:''|"")`)}),P.cssHas||we.push(":has"),we=we.length&&new RegExp(we.join("|")),dn=function(ke,Q){if(ke===Q)return N=!0,0;var he=!ke.compareDocumentPosition-!Q.compareDocumentPosition;return he||(he=(ke.ownerDocument||ke)==(Q.ownerDocument||Q)?ke.compareDocumentPosition(Q):1,he&1||!P.sortDetached&&Q.compareDocumentPosition(ke)===he?ke===U||ke.ownerDocument==je&&Ct.contains(je,ke)?-1:Q===U||Q.ownerDocument==je&&Ct.contains(je,Q)?1:O?c.call(O,ke)-c.call(O,Q):0:he&4?-1:1)}),U}Ct.matches=function(ee,ve){return Ct(ee,null,null,ve)},Ct.matchesSelector=function(ee,ve){if(mo(ee),oe&&!Ln[ve+" "]&&(!we||!we.test(ve)))try{var _e=Le.call(ee,ve);if(_e||P.disconnectedMatch||ee.document&&ee.document.nodeType!==11)return _e}catch{Ln(ve,!0)}return Ct(ve,U,null,[ee]).length>0},Ct.contains=function(ee,ve){return(ee.ownerDocument||ee)!=U&&mo(ee),x.contains(ee,ve)},Ct.attr=function(ee,ve){(ee.ownerDocument||ee)!=U&&mo(ee);var _e=m.attrHandle[ve.toLowerCase()],ke=_e&&p.call(m.attrHandle,ve.toLowerCase())?_e(ee,ve,!oe):void 0;return ke!==void 0?ke:ee.getAttribute(ve)},Ct.error=function(ee){throw new Error("Syntax error, unrecognized expression: "+ee)},x.uniqueSort=function(ee){var ve,_e=[],ke=0,Q=0;if(N=!P.sortStable,O=!P.sortStable&&o.call(ee,0),Ne.call(ee,dn),N){for(;ve=ee[Q++];)ve===ee[Q]&&(ke=_e.push(Q));for(;ke--;)$e.call(ee,_e[ke],1)}return O=null,ee},x.fn.uniqueSort=function(){return this.pushStack(x.uniqueSort(o.apply(this)))},m=x.expr={cacheLength:50,createPseudo:Cn,match:F,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(He,nt),ee[3]=(ee[3]||ee[4]||ee[5]||"").replace(He,nt),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]||Ct.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]&&Ct.error(ee[0]),ee},PSEUDO:function(ee){var ve,_e=!ee[6]&&ee[2];return F.CHILD.test(ee[0])?null:(ee[3]?ee[2]=ee[4]||ee[5]||"":_e&&Tr.test(_e)&&(ve=sa(_e,!0))&&(ve=_e.indexOf(")",_e.length-ve)-_e.length)&&(ee[0]=ee[0].slice(0,ve),ee[2]=_e.slice(0,ve)),ee.slice(0,3))}},filter:{TAG:function(ee){var ve=ee.replace(He,nt).toLowerCase();return ee==="*"?function(){return!0}:function(_e){return ue(_e,ve)}},CLASS:function(ee){var ve=ct[ee+" "];return ve||(ve=new RegExp("(^|"+Ye+")"+ee+"("+Ye+"|$)"))&&ct(ee,function(_e){return ve.test(typeof _e.className=="string"&&_e.className||typeof _e.getAttribute<"u"&&_e.getAttribute("class")||"")})},ATTR:function(ee,ve,_e){return function(ke){var Q=Ct.attr(ke,ee);return Q==null?ve==="!=":ve?(Q+="",ve==="="?Q===_e:ve==="!="?Q!==_e:ve==="^="?_e&&Q.indexOf(_e)===0:ve==="*="?_e&&Q.indexOf(_e)>-1:ve==="$="?_e&&Q.slice(-_e.length)===_e:ve==="~="?(" "+Q.replace(zt," ")+" ").indexOf(_e)>-1:ve==="|="?Q===_e||Q.slice(0,_e.length+1)===_e+"-":!1):!0}},CHILD:function(ee,ve,_e,ke,Q){var he=ee.slice(0,3)!=="nth",ce=ee.slice(-4)!=="last",Ue=ve==="of-type";return ke===1&&Q===0?function(Ge){return!!Ge.parentNode}:function(Ge,ft,dt){var ut,It,kt,Yt,Fn,ar=he!==ce?"nextSibling":"previousSibling",qn=Ge.parentNode,Vr=Ue&&Ge.nodeName.toLowerCase(),Ki=!dt&&!Ue,At=!1;if(qn){if(he){for(;ar;){for(kt=Ge;kt=kt[ar];)if(Ue?ue(kt,Vr):kt.nodeType===1)return!1;Fn=ar=ee==="only"&&!Fn&&"nextSibling"}return!0}if(Fn=[ce?qn.firstChild:qn.lastChild],ce&&Ki){for(It=qn[Be]||(qn[Be]={}),ut=It[ee]||[],Yt=ut[0]===Ee&&ut[1],At=Yt&&ut[2],kt=Yt&&qn.childNodes[Yt];kt=++Yt&&kt&&kt[ar]||(At=Yt=0)||Fn.pop();)if(kt.nodeType===1&&++At&&kt===Ge){It[ee]=[Ee,Yt,At];break}}else if(Ki&&(It=Ge[Be]||(Ge[Be]={}),ut=It[ee]||[],Yt=ut[0]===Ee&&ut[1],At=Yt),At===!1)for(;(kt=++Yt&&kt&&kt[ar]||(At=Yt=0)||Fn.pop())&&!((Ue?ue(kt,Vr):kt.nodeType===1)&&++At&&(Ki&&(It=kt[Be]||(kt[Be]={}),It[ee]=[Ee,At]),kt===Ge)););return At-=Q,At===ke||At%ke===0&&At/ke>=0}}},PSEUDO:function(ee,ve){var _e,ke=m.pseudos[ee]||m.setFilters[ee.toLowerCase()]||Ct.error("unsupported pseudo: "+ee);return ke[Be]?ke(ve):ke.length>1?(_e=[ee,ee,"",ve],m.setFilters.hasOwnProperty(ee.toLowerCase())?Cn(function(Q,he){for(var ce,Ue=ke(Q,ve),Ge=Ue.length;Ge--;)ce=c.call(Q,Ue[Ge]),Q[ce]=!(he[ce]=Ue[Ge])}):function(Q){return ke(Q,0,_e)}):ke}},pseudos:{not:Cn(function(ee){var ve=[],_e=[],ke=hs(ee.replace(qe,"$1"));return ke[Be]?Cn(function(Q,he,ce,Ue){for(var Ge,ft=ke(Q,null,Ue,[]),dt=Q.length;dt--;)(Ge=ft[dt])&&(Q[dt]=!(he[dt]=Ge))}):function(Q,he,ce){return ve[0]=Q,ke(ve,null,ce,_e),ve[0]=null,!_e.pop()}}),has:Cn(function(ee){return function(ve){return Ct(ee,ve).length>0}}),contains:Cn(function(ee){return ee=ee.replace(He,nt),function(ve){return(ve.textContent||x.text(ve)).indexOf(ee)>-1}}),lang:Cn(function(ee){return k.test(ee||"")||Ct.error("unsupported lang: "+ee),ee=ee.replace(He,nt).toLowerCase(),function(ve){var _e;do if(_e=oe?ve.lang:ve.getAttribute("xml:lang")||ve.getAttribute("lang"))return _e=_e.toLowerCase(),_e===ee||_e.indexOf(ee+"-")===0;while((ve=ve.parentNode)&&ve.nodeType===1);return!1}}),target:function(ee){var ve=t.location&&t.location.hash;return ve&&ve.slice(1)===ee.id},root:function(ee){return ee===le},focus:function(ee){return ee===Dt()&&U.hasFocus()&&!!(ee.type||ee.href||~ee.tabIndex)},enabled:aa(!1),disabled:aa(!0),checked:function(ee){return ue(ee,"input")&&!!ee.checked||ue(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 ne.test(ee.nodeName)},input:function(ee){return z.test(ee.nodeName)},button:function(ee){return ue(ee,"input")&&ee.type==="button"||ue(ee,"button")},text:function(ee){var ve;return ue(ee,"input")&&ee.type==="text"&&((ve=ee.getAttribute("type"))==null||ve.toLowerCase()==="text")},first:ii(function(){return[0]}),last:ii(function(ee,ve){return[ve-1]}),eq:ii(function(ee,ve,_e){return[_e<0?_e+ve:_e]}),even:ii(function(ee,ve){for(var _e=0;_e<ve;_e+=2)ee.push(_e);return ee}),odd:ii(function(ee,ve){for(var _e=1;_e<ve;_e+=2)ee.push(_e);return ee}),lt:ii(function(ee,ve,_e){var ke;for(_e<0?ke=_e+ve:_e>ve?ke=ve:ke=_e;--ke>=0;)ee.push(ke);return ee}),gt:ii(function(ee,ve,_e){for(var ke=_e<0?_e+ve:_e;++ke<ve;)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]=oa(f);for(f in{submit:!0,reset:!0})m.pseudos[f]=fs(f);function ds(){}ds.prototype=m.filters=m.pseudos,m.setFilters=new ds;function sa(ee,ve){var _e,ke,Q,he,ce,Ue,Ge,ft=_t[ee+" "];if(ft)return ve?0:ft.slice(0);for(ce=ee,Ue=[],Ge=m.preFilter;ce;){(!_e||(ke=on.exec(ce)))&&(ke&&(ce=ce.slice(ke[0].length)||ce),Ue.push(Q=[])),_e=!1,(ke=go.exec(ce))&&(_e=ke.shift(),Q.push({value:_e,type:ke[0].replace(qe," ")}),ce=ce.slice(_e.length));for(he in m.filter)(ke=F[he].exec(ce))&&(!Ge[he]||(ke=Ge[he](ke)))&&(_e=ke.shift(),Q.push({value:_e,type:he,matches:ke}),ce=ce.slice(_e.length));if(!_e)break}return ve?ce.length:ce?Ct.error(ee):_t(ee,Ue).slice(0)}function bi(ee){for(var ve=0,_e=ee.length,ke="";ve<_e;ve++)ke+=ee[ve].value;return ke}function Xi(ee,ve,_e){var ke=ve.dir,Q=ve.next,he=Q||ke,ce=_e&&he==="parentNode",Ue=Ze++;return ve.first?function(Ge,ft,dt){for(;Ge=Ge[ke];)if(Ge.nodeType===1||ce)return ee(Ge,ft,dt);return!1}:function(Ge,ft,dt){var ut,It,kt=[Ee,Ue];if(dt){for(;Ge=Ge[ke];)if((Ge.nodeType===1||ce)&&ee(Ge,ft,dt))return!0}else for(;Ge=Ge[ke];)if(Ge.nodeType===1||ce)if(It=Ge[Be]||(Ge[Be]={}),Q&&ue(Ge,Q))Ge=Ge[ke]||Ge;else{if((ut=It[he])&&ut[0]===Ee&&ut[1]===Ue)return kt[2]=ut[2];if(It[he]=kt,kt[2]=ee(Ge,ft,dt))return!0}return!1}}function qs(ee){return ee.length>1?function(ve,_e,ke){for(var Q=ee.length;Q--;)if(!ee[Q](ve,_e,ke))return!1;return!0}:ee[0]}function Nu(ee,ve,_e){for(var ke=0,Q=ve.length;ke<Q;ke++)Ct(ee,ve[ke],_e);return _e}function la(ee,ve,_e,ke,Q){for(var he,ce=[],Ue=0,Ge=ee.length,ft=ve!=null;Ue<Ge;Ue++)(he=ee[Ue])&&(!_e||_e(he,ke,Q))&&(ce.push(he),ft&&ve.push(Ue));return ce}function yo(ee,ve,_e,ke,Q,he){return ke&&!ke[Be]&&(ke=yo(ke)),Q&&!Q[Be]&&(Q=yo(Q,he)),Cn(function(ce,Ue,Ge,ft){var dt,ut,It,kt,Yt=[],Fn=[],ar=Ue.length,qn=ce||Nu(ve||"*",Ge.nodeType?[Ge]:Ge,[]),Vr=ee&&(ce||!ve)?la(qn,Yt,ee,Ge,ft):qn;if(_e?(kt=Q||(ce?ee:ar||ke)?[]:Ue,_e(Vr,kt,Ge,ft)):kt=Vr,ke)for(dt=la(kt,Fn),ke(dt,[],Ge,ft),ut=dt.length;ut--;)(It=dt[ut])&&(kt[Fn[ut]]=!(Vr[Fn[ut]]=It));if(ce){if(Q||ee){if(Q){for(dt=[],ut=kt.length;ut--;)(It=kt[ut])&&dt.push(Vr[ut]=It);Q(null,kt=[],dt,ft)}for(ut=kt.length;ut--;)(It=kt[ut])&&(dt=Q?c.call(ce,It):Yt[ut])>-1&&(ce[dt]=!(Ue[dt]=It))}}else kt=la(kt===Ue?kt.splice(ar,kt.length):kt),Q?Q(null,Ue,kt,ft):B.apply(Ue,kt)})}function dr(ee){for(var ve,_e,ke,Q=ee.length,he=m.relative[ee[0].type],ce=he||m.relative[" "],Ue=he?1:0,Ge=Xi(function(ut){return ut===ve},ce,!0),ft=Xi(function(ut){return c.call(ve,ut)>-1},ce,!0),dt=[function(ut,It,kt){var Yt=!he&&(kt||It!=C)||((ve=It).nodeType?Ge(ut,It,kt):ft(ut,It,kt));return ve=null,Yt}];Ue<Q;Ue++)if(_e=m.relative[ee[Ue].type])dt=[Xi(qs(dt),_e)];else{if(_e=m.filter[ee[Ue].type].apply(null,ee[Ue].matches),_e[Be]){for(ke=++Ue;ke<Q&&!m.relative[ee[ke].type];ke++);return yo(Ue>1&&qs(dt),Ue>1&&bi(ee.slice(0,Ue-1).concat({value:ee[Ue-2].type===" "?"*":""})).replace(qe,"$1"),_e,Ue<ke&&dr(ee.slice(Ue,ke)),ke<Q&&dr(ee=ee.slice(ke)),ke<Q&&bi(ee))}dt.push(_e)}return qs(dt)}function Xs(ee,ve){var _e=ve.length>0,ke=ee.length>0,Q=function(he,ce,Ue,Ge,ft){var dt,ut,It,kt=0,Yt="0",Fn=he&&[],ar=[],qn=C,Vr=he||ke&&m.find.TAG("*",ft),Ki=Ee+=qn==null?1:Math.random()||.1,At=Vr.length;for(ft&&(C=ce==U||ce||ft);Yt!==At&&(dt=Vr[Yt])!=null;Yt++){if(ke&&dt){for(ut=0,!ce&&dt.ownerDocument!=U&&(mo(dt),Ue=!oe);It=ee[ut++];)if(It(dt,ce||U,Ue)){B.call(Ge,dt);break}ft&&(Ee=Ki)}_e&&((dt=!It&&dt)&&kt--,he&&Fn.push(dt))}if(kt+=Yt,_e&&Yt!==kt){for(ut=0;It=ve[ut++];)It(Fn,ar,ce,Ue);if(he){if(kt>0)for(;Yt--;)Fn[Yt]||ar[Yt]||(ar[Yt]=Je.call(Ge));ar=la(ar)}B.apply(Ge,ar),ft&&!he&&ar.length>0&&kt+ve.length>1&&x.uniqueSort(Ge)}return ft&&(Ee=Ki,C=qn),Fn};return _e?Cn(Q):Q}function hs(ee,ve){var _e,ke=[],Q=[],he=Rt[ee+" "];if(!he){for(ve||(ve=sa(ee)),_e=ve.length;_e--;)he=dr(ve[_e]),he[Be]?ke.push(he):Q.push(he);he=Rt(ee,Xs(Q,ke)),he.selector=ee}return he}function ps(ee,ve,_e,ke){var Q,he,ce,Ue,Ge,ft=typeof ee=="function"&&ee,dt=!ke&&sa(ee=ft.selector||ee);if(_e=_e||[],dt.length===1){if(he=dt[0]=dt[0].slice(0),he.length>2&&(ce=he[0]).type==="ID"&&ve.nodeType===9&&oe&&m.relative[he[1].type]){if(ve=(m.find.ID(ce.matches[0].replace(He,nt),ve)||[])[0],ve)ft&&(ve=ve.parentNode);else return _e;ee=ee.slice(he.shift().value.length)}for(Q=F.needsContext.test(ee)?0:he.length;Q--&&(ce=he[Q],!m.relative[Ue=ce.type]);)if((Ge=m.find[Ue])&&(ke=Ge(ce.matches[0].replace(He,nt),Te.test(he[0].type)&&Gs(ve.parentNode)||ve))){if(he.splice(Q,1),ee=ke.length&&bi(he),!ee)return B.apply(_e,ke),_e;break}}return(ft||hs(ee,dt))(ke,ve,!oe,_e,!ve||Te.test(ee)&&Gs(ve.parentNode)||ve),_e}P.sortStable=Be.split("").sort(dn).join("")===Be,mo(),P.sortDetached=Gn(function(ee){return ee.compareDocumentPosition(U.createElement("fieldset"))&1}),x.find=Ct,x.expr[":"]=x.expr.pseudos,x.unique=x.uniqueSort,Ct.compile=hs,Ct.select=ps,Ct.setDocument=mo,Ct.tokenize=sa,Ct.escape=x.escapeSelector,Ct.getText=x.text,Ct.isXML=x.isXMLDoc,Ct.selectors=x.expr,Ct.support=x.support,Ct.uniqueSort=x.uniqueSort})();var at=function(f,m,C){for(var O=[],N=C!==void 0;(f=f[m])&&f.nodeType!==9;)if(f.nodeType===1){if(N&&x(f).is(C))break;O.push(f)}return O},Ce=function(f,m){for(var C=[];f;f=f.nextSibling)f.nodeType===1&&f!==m&&C.push(f);return C},Pe=x.expr.match.needsContext,Ve=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function ze(f,m,C){return I(m)?x.grep(f,function(O,N){return!!m.call(O,N,O)!==C}):m.nodeType?x.grep(f,function(O){return O===m!==C}):typeof m!="string"?x.grep(f,function(O){return c.call(m,O)>-1!==C}):x.filter(m,f,C)}x.filter=function(f,m,C){var O=m[0];return C&&(f=":not("+f+")"),m.length===1&&O.nodeType===1?x.find.matchesSelector(O,f)?[O]:[]:x.find.matches(f,x.grep(m,function(N){return N.nodeType===1}))},x.fn.extend({find:function(f){var m,C,O=this.length,N=this;if(typeof f!="string")return this.pushStack(x(f).filter(function(){for(m=0;m<O;m++)if(x.contains(N[m],this))return!0}));for(C=this.pushStack([]),m=0;m<O;m++)x.find(f,N[m],C);return O>1?x.uniqueSort(C):C},filter:function(f){return this.pushStack(ze(this,f||[],!1))},not:function(f){return this.pushStack(ze(this,f||[],!0))},is:function(f){return!!ze(this,typeof f=="string"&&Pe.test(f)?x(f):f||[],!1).length}});var Re,Fe=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Ke=x.fn.init=function(f,m,C){var O,N;if(!f)return this;if(C=C||Re,typeof f=="string")if(f[0]==="<"&&f[f.length-1]===">"&&f.length>=3?O=[null,f,null]:O=Fe.exec(f),O&&(O[1]||!m))if(O[1]){if(m=m instanceof x?m[0]:m,x.merge(this,x.parseHTML(O[1],m&&m.nodeType?m.ownerDocument||m:R,!0)),Ve.test(O[1])&&x.isPlainObject(m))for(O in m)I(this[O])?this[O](m[O]):this.attr(O,m[O]);return this}else return N=R.getElementById(O[2]),N&&(this[0]=N,this.length=1),this;else return!m||m.jquery?(m||C).find(f):this.constructor(m).find(f);else{if(f.nodeType)return this[0]=f,this.length=1,this;if(I(f))return C.ready!==void 0?C.ready(f):f(x)}return x.makeArray(f,this)};Ke.prototype=x.fn,Re=x(R);var lt=/^(?:parents|prev(?:Until|All))/,mt={children:!0,contents:!0,next:!0,prev:!0};x.fn.extend({has:function(f){var m=x(f,this),C=m.length;return this.filter(function(){for(var O=0;O<C;O++)if(x.contains(this,m[O]))return!0})},closest:function(f,m){var C,O=0,N=this.length,B=[],U=typeof f!="string"&&x(f);if(!Pe.test(f)){for(;O<N;O++)for(C=this[O];C&&C!==m;C=C.parentNode)if(C.nodeType<11&&(U?U.index(C)>-1:C.nodeType===1&&x.find.matchesSelector(C,f))){B.push(C);break}}return this.pushStack(B.length>1?x.uniqueSort(B):B)},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 wt(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 at(f,"parentNode")},parentsUntil:function(f,m,C){return at(f,"parentNode",C)},next:function(f){return wt(f,"nextSibling")},prev:function(f){return wt(f,"previousSibling")},nextAll:function(f){return at(f,"nextSibling")},prevAll:function(f){return at(f,"previousSibling")},nextUntil:function(f,m,C){return at(f,"nextSibling",C)},prevUntil:function(f,m,C){return at(f,"previousSibling",C)},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:(ue(f,"template")&&(f=f.content||f),x.merge([],f.childNodes))}},function(f,m){x.fn[f]=function(C,O){var N=x.map(this,m,C);return f.slice(-5)!=="Until"&&(O=C),O&&typeof O=="string"&&(N=x.filter(O,N)),this.length>1&&(mt[f]||x.uniqueSort(N),lt.test(f)&&N.reverse()),this.pushStack(N)}});var vt=/[^\x20\t\r\n\f]+/g;function Et(f){var m={};return x.each(f.match(vt)||[],function(C,O){m[O]=!0}),m}x.Callbacks=function(f){f=typeof f=="string"?Et(f):x.extend({},f);var m,C,O,N,B=[],U=[],le=-1,oe=function(){for(N=N||f.once,O=m=!0;U.length;le=-1)for(C=U.shift();++le<B.length;)B[le].apply(C[0],C[1])===!1&&f.stopOnFalse&&(le=B.length,C=!1);f.memory||(C=!1),m=!1,N&&(C?B=[]:B="")},we={add:function(){return B&&(C&&!m&&(le=B.length-1,U.push(C)),function Le(Be){x.each(Be,function(Ee,Ze){I(Ze)?(!f.unique||!we.has(Ze))&&B.push(Ze):Ze&&Ze.length&&te(Ze)!=="string"&&Le(Ze)})}(arguments),C&&!m&&oe()),this},remove:function(){return x.each(arguments,function(Le,Be){for(var Ee;(Ee=x.inArray(Be,B,Ee))>-1;)B.splice(Ee,1),Ee<=le&&le--}),this},has:function(Le){return Le?x.inArray(Le,B)>-1:B.length>0},empty:function(){return B&&(B=[]),this},disable:function(){return N=U=[],B=C="",this},disabled:function(){return!B},lock:function(){return N=U=[],!C&&!m&&(B=C=""),this},locked:function(){return!!N},fireWith:function(Le,Be){return N||(Be=Be||[],Be=[Le,Be.slice?Be.slice():Be],U.push(Be),m||oe()),this},fire:function(){return we.fireWith(this,arguments),this},fired:function(){return!!O}};return we};function ot(f){return f}function $t(f){throw f}function Ht(f,m,C,O){var N;try{f&&I(N=f.promise)?N.call(f).done(m).fail(C):f&&I(N=f.then)?N.call(f,m,C):m.apply(void 0,[f].slice(O))}catch(B){C.apply(void 0,[B])}}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"]],C="pending",O={state:function(){return C},always:function(){return N.done(arguments).fail(arguments),this},catch:function(B){return O.then(null,B)},pipe:function(){var B=arguments;return x.Deferred(function(U){x.each(m,function(le,oe){var we=I(B[oe[4]])&&B[oe[4]];N[oe[1]](function(){var Le=we&&we.apply(this,arguments);Le&&I(Le.promise)?Le.promise().progress(U.notify).done(U.resolve).fail(U.reject):U[oe[0]+"With"](this,we?[Le]:arguments)})}),B=null}).promise()},then:function(B,U,le){var oe=0;function we(Le,Be,Ee,Ze){return function(){var ct=this,_t=arguments,Rt=function(){var dn,jr;if(!(Le<oe)){if(dn=Ee.apply(ct,_t),dn===Be.promise())throw new TypeError("Thenable self-resolution");jr=dn&&(typeof dn=="object"||typeof dn=="function")&&dn.then,I(jr)?Ze?jr.call(dn,we(oe,Be,ot,Ze),we(oe,Be,$t,Ze)):(oe++,jr.call(dn,we(oe,Be,ot,Ze),we(oe,Be,$t,Ze),we(oe,Be,ot,Be.notifyWith))):(Ee!==ot&&(ct=void 0,_t=[dn]),(Ze||Be.resolveWith)(ct,_t))}},Ln=Ze?Rt:function(){try{Rt()}catch(dn){x.Deferred.exceptionHook&&x.Deferred.exceptionHook(dn,Ln.error),Le+1>=oe&&(Ee!==$t&&(ct=void 0,_t=[dn]),Be.rejectWith(ct,_t))}};Le?Ln():(x.Deferred.getErrorHook?Ln.error=x.Deferred.getErrorHook():x.Deferred.getStackHook&&(Ln.error=x.Deferred.getStackHook()),t.setTimeout(Ln))}}return x.Deferred(function(Le){m[0][3].add(we(0,Le,I(le)?le:ot,Le.notifyWith)),m[1][3].add(we(0,Le,I(B)?B:ot)),m[2][3].add(we(0,Le,I(U)?U:$t))}).promise()},promise:function(B){return B!=null?x.extend(B,O):O}},N={};return x.each(m,function(B,U){var le=U[2],oe=U[5];O[U[1]]=le.add,oe&&le.add(function(){C=oe},m[3-B][2].disable,m[3-B][3].disable,m[0][2].lock,m[0][3].lock),le.add(U[3].fire),N[U[0]]=function(){return N[U[0]+"With"](this===N?void 0:this,arguments),this},N[U[0]+"With"]=le.fireWith}),O.promise(N),f&&f.call(N,N),N},when:function(f){var m=arguments.length,C=m,O=Array(C),N=o.call(arguments),B=x.Deferred(),U=function(le){return function(oe){O[le]=this,N[le]=arguments.length>1?o.call(arguments):oe,--m||B.resolveWith(O,N)}};if(m<=1&&(Ht(f,B.done(U(C)).resolve,B.reject,!m),B.state()==="pending"||I(N[C]&&N[C].then)))return B.then();for(;C--;)Ht(N[C],U(C),B.reject);return B.promise()}});var Xn=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;x.Deferred.exceptionHook=function(f,m){t.console&&t.console.warn&&f&&Xn.test(f.name)&&t.console.warn("jQuery.Deferred exception: "+f.message,f.stack,m)},x.readyException=function(f){t.setTimeout(function(){throw f})};var mr=x.Deferred();x.fn.ready=function(f){return mr.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)&&mr.resolveWith(R,[x]))}}),x.ready.then=mr.then;function Kn(){R.removeEventListener("DOMContentLoaded",Kn),t.removeEventListener("load",Kn),x.ready()}R.readyState==="complete"||R.readyState!=="loading"&&!R.documentElement.doScroll?t.setTimeout(x.ready):(R.addEventListener("DOMContentLoaded",Kn),t.addEventListener("load",Kn));var _n=function(f,m,C,O,N,B,U){var le=0,oe=f.length,we=C==null;if(te(C)==="object"){N=!0;for(le in C)_n(f,m,le,C[le],!0,B,U)}else if(O!==void 0&&(N=!0,I(O)||(U=!0),we&&(U?(m.call(f,O),m=null):(we=m,m=function(Le,Be,Ee){return we.call(x(Le),Ee)})),m))for(;le<oe;le++)m(f[le],C,U?O:O.call(f[le],le,m(f[le],C)));return N?f:we?m.call(f):oe?m(f[0],C):B},$i=/^-ms-/,Dr=/-([a-z])/g;function rr(f,m){return m.toUpperCase()}function cn(f){return f.replace($i,"ms-").replace(Dr,rr)}var hn=function(f){return f.nodeType===1||f.nodeType===9||!+f.nodeType};function pn(){this.expando=x.expando+pn.uid++}pn.uid=1,pn.prototype={cache:function(f){var m=f[this.expando];return m||(m={},hn(f)&&(f.nodeType?f[this.expando]=m:Object.defineProperty(f,this.expando,{value:m,configurable:!0}))),m},set:function(f,m,C){var O,N=this.cache(f);if(typeof m=="string")N[cn(m)]=C;else for(O in m)N[cn(O)]=m[O];return N},get:function(f,m){return m===void 0?this.cache(f):f[this.expando]&&f[this.expando][cn(m)]},access:function(f,m,C){return m===void 0||m&&typeof m=="string"&&C===void 0?this.get(f,m):(this.set(f,m,C),C!==void 0?C:m)},remove:function(f,m){var C,O=f[this.expando];if(O!==void 0){if(m!==void 0)for(Array.isArray(m)?m=m.map(cn):(m=cn(m),m=m in O?[m]:m.match(vt)||[]),C=m.length;C--;)delete O[m[C]];(m===void 0||x.isEmptyObject(O))&&(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 gt=new pn,In=new pn,li=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,un=/[A-Z]/g;function Vi(f){return f==="true"?!0:f==="false"?!1:f==="null"?null:f===+f+""?+f:li.test(f)?JSON.parse(f):f}function Hi(f,m,C){var O;if(C===void 0&&f.nodeType===1)if(O="data-"+m.replace(un,"-$&").toLowerCase(),C=f.getAttribute(O),typeof C=="string"){try{C=Vi(C)}catch{}In.set(f,m,C)}else C=void 0;return C}x.extend({hasData:function(f){return In.hasData(f)||gt.hasData(f)},data:function(f,m,C){return In.access(f,m,C)},removeData:function(f,m){In.remove(f,m)},_data:function(f,m,C){return gt.access(f,m,C)},_removeData:function(f,m){gt.remove(f,m)}}),x.fn.extend({data:function(f,m){var C,O,N,B=this[0],U=B&&B.attributes;if(f===void 0){if(this.length&&(N=In.get(B),B.nodeType===1&&!gt.get(B,"hasDataAttrs"))){for(C=U.length;C--;)U[C]&&(O=U[C].name,O.indexOf("data-")===0&&(O=cn(O.slice(5)),Hi(B,O,N[O])));gt.set(B,"hasDataAttrs",!0)}return N}return typeof f=="object"?this.each(function(){In.set(this,f)}):_n(this,function(le){var oe;if(B&&le===void 0)return oe=In.get(B,f),oe!==void 0||(oe=Hi(B,f),oe!==void 0)?oe:void 0;this.each(function(){In.set(this,f,le)})},null,m,arguments.length>1,null,!0)},removeData:function(f){return this.each(function(){In.remove(this,f)})}}),x.extend({queue:function(f,m,C){var O;if(f)return m=(m||"fx")+"queue",O=gt.get(f,m),C&&(!O||Array.isArray(C)?O=gt.access(f,m,x.makeArray(C)):O.push(C)),O||[]},dequeue:function(f,m){m=m||"fx";var C=x.queue(f,m),O=C.length,N=C.shift(),B=x._queueHooks(f,m),U=function(){x.dequeue(f,m)};N==="inprogress"&&(N=C.shift(),O--),N&&(m==="fx"&&C.unshift("inprogress"),delete B.stop,N.call(f,U,B)),!O&&B&&B.empty.fire()},_queueHooks:function(f,m){var C=m+"queueHooks";return gt.get(f,C)||gt.access(f,C,{empty:x.Callbacks("once memory").add(function(){gt.remove(f,[m+"queue",C])})})}}),x.fn.extend({queue:function(f,m){var C=2;return typeof f!="string"&&(m=f,f="fx",C--),arguments.length<C?x.queue(this[0],f):m===void 0?this:this.each(function(){var O=x.queue(this,f,m);x._queueHooks(this,f),f==="fx"&&O[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 C,O=1,N=x.Deferred(),B=this,U=this.length,le=function(){--O||N.resolveWith(B,[B])};for(typeof f!="string"&&(m=f,f=void 0),f=f||"fx";U--;)C=gt.get(B[U],f+"queueHooks"),C&&C.empty&&(O++,C.empty.add(le));return le(),N.promise(m)}});var Ui=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,_r=new RegExp("^(?:([+-])=|)("+Ui+")([a-z%]*)$","i"),Wn=["Top","Right","Bottom","Left"],Pr=R.documentElement,yr=function(f){return x.contains(f.ownerDocument,f)},qr={composed:!0};Pr.getRootNode&&(yr=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===""&&yr(f)&&x.css(f,"display")==="none"};function Po(f,m,C,O){var N,B,U=20,le=O?function(){return O.cur()}:function(){return x.css(f,m,"")},oe=le(),we=C&&C[3]||(x.cssNumber[m]?"":"px"),Le=f.nodeType&&(x.cssNumber[m]||we!=="px"&&+oe)&&_r.exec(x.css(f,m));if(Le&&Le[3]!==we){for(oe=oe/2,we=we||Le[3],Le=+oe||1;U--;)x.style(f,m,Le+we),(1-B)*(1-(B=le()/oe||.5))<=0&&(U=0),Le=Le/B;Le=Le*2,x.style(f,m,Le+we),C=C||[]}return C&&(Le=+Le||+oe||0,N=C[1]?Le+(C[1]+1)*C[2]:+C[2],O&&(O.unit=we,O.start=Le,O.end=N)),N}var Zn={};function Kr(f){var m,C=f.ownerDocument,O=f.nodeName,N=Zn[O];return N||(m=C.body.appendChild(C.createElement(O)),N=x.css(m,"display"),m.parentNode.removeChild(m),N==="none"&&(N="block"),Zn[O]=N,N)}function ir(f,m){for(var C,O,N=[],B=0,U=f.length;B<U;B++)O=f[B],O.style&&(C=O.style.display,m?(C==="none"&&(N[B]=gt.get(O,"display")||null,N[B]||(O.style.display="")),O.style.display===""&&Xr(O)&&(N[B]=Kr(O))):C!=="none"&&(N[B]="none",gt.set(O,"display",C)));for(B=0;B<U;B++)N[B]!=null&&(f[B].style.display=N[B]);return f}x.fn.extend({show:function(){return ir(this,!0)},hide:function(){return ir(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,Wi=/^$|^module$|\/(?:java|ecma)script/i;(function(){var f=R.createDocumentFragment(),m=f.appendChild(R.createElement("div")),C=R.createElement("input");C.setAttribute("type","radio"),C.setAttribute("checked","checked"),C.setAttribute("name","t"),m.appendChild(C),P.checkClone=m.cloneNode(!0).cloneNode(!0).lastChild.checked,m.innerHTML="<textarea>x</textarea>",P.noCloneChecked=!!m.cloneNode(!0).lastChild.defaultValue,m.innerHTML="<option></option>",P.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,P.option||(An.optgroup=An.option=[1,"<select multiple='multiple'>","</select>"]);function gn(f,m){var C;return typeof f.getElementsByTagName<"u"?C=f.getElementsByTagName(m||"*"):typeof f.querySelectorAll<"u"?C=f.querySelectorAll(m||"*"):C=[],m===void 0||m&&ue(f,m)?x.merge([f],C):C}function ci(f,m){for(var C=0,O=f.length;C<O;C++)gt.set(f[C],"globalEval",!m||gt.get(m[C],"globalEval"))}var fi=/<|&#?\w+;/;function mn(f,m,C,O,N){for(var B,U,le,oe,we,Le,Be=m.createDocumentFragment(),Ee=[],Ze=0,ct=f.length;Ze<ct;Ze++)if(B=f[Ze],B||B===0)if(te(B)==="object")x.merge(Ee,B.nodeType?[B]:B);else if(!fi.test(B))Ee.push(m.createTextNode(B));else{for(U=U||Be.appendChild(m.createElement("div")),le=(ui.exec(B)||["",""])[1].toLowerCase(),oe=An[le]||An._default,U.innerHTML=oe[1]+x.htmlPrefilter(B)+oe[2],Le=oe[0];Le--;)U=U.lastChild;x.merge(Ee,U.childNodes),U=Be.firstChild,U.textContent=""}for(Be.textContent="",Ze=0;B=Ee[Ze++];){if(O&&x.inArray(B,O)>-1){N&&N.push(B);continue}if(we=yr(B),U=gn(Be.appendChild(B),"script"),we&&ci(U),C)for(Le=0;B=U[Le++];)Wi.test(B.type||"")&&C.push(B)}return Be}var uo=/^([^.]*)(?:\.(.+)|)/;function br(){return!0}function di(){return!1}function fn(f,m,C,O,N,B){var U,le;if(typeof m=="object"){typeof C!="string"&&(O=O||C,C=void 0);for(le in m)fn(f,le,C,O,m[le],B);return f}if(O==null&&N==null?(N=C,O=C=void 0):N==null&&(typeof C=="string"?(N=O,O=void 0):(N=O,O=C,C=void 0)),N===!1)N=di;else if(!N)return f;return B===1&&(U=N,N=function(oe){return x().off(oe),U.apply(this,arguments)},N.guid=U.guid||(U.guid=x.guid++)),f.each(function(){x.event.add(this,m,N,O,C)})}x.event={global:{},add:function(f,m,C,O,N){var B,U,le,oe,we,Le,Be,Ee,Ze,ct,_t,Rt=gt.get(f);if(hn(f))for(C.handler&&(B=C,C=B.handler,N=B.selector),N&&x.find.matchesSelector(Pr,N),C.guid||(C.guid=x.guid++),(oe=Rt.events)||(oe=Rt.events=Object.create(null)),(U=Rt.handle)||(U=Rt.handle=function(Ln){return typeof x<"u"&&x.event.triggered!==Ln.type?x.event.dispatch.apply(f,arguments):void 0}),m=(m||"").match(vt)||[""],we=m.length;we--;)le=uo.exec(m[we])||[],Ze=_t=le[1],ct=(le[2]||"").split(".").sort(),Ze&&(Be=x.event.special[Ze]||{},Ze=(N?Be.delegateType:Be.bindType)||Ze,Be=x.event.special[Ze]||{},Le=x.extend({type:Ze,origType:_t,data:O,handler:C,guid:C.guid,selector:N,needsContext:N&&x.expr.match.needsContext.test(N),namespace:ct.join(".")},B),(Ee=oe[Ze])||(Ee=oe[Ze]=[],Ee.delegateCount=0,(!Be.setup||Be.setup.call(f,O,ct,U)===!1)&&f.addEventListener&&f.addEventListener(Ze,U)),Be.add&&(Be.add.call(f,Le),Le.handler.guid||(Le.handler.guid=C.guid)),N?Ee.splice(Ee.delegateCount++,0,Le):Ee.push(Le),x.event.global[Ze]=!0)},remove:function(f,m,C,O,N){var B,U,le,oe,we,Le,Be,Ee,Ze,ct,_t,Rt=gt.hasData(f)&&gt.get(f);if(!(!Rt||!(oe=Rt.events))){for(m=(m||"").match(vt)||[""],we=m.length;we--;){if(le=uo.exec(m[we])||[],Ze=_t=le[1],ct=(le[2]||"").split(".").sort(),!Ze){for(Ze in oe)x.event.remove(f,Ze+m[we],C,O,!0);continue}for(Be=x.event.special[Ze]||{},Ze=(O?Be.delegateType:Be.bindType)||Ze,Ee=oe[Ze]||[],le=le[2]&&new RegExp("(^|\\.)"+ct.join("\\.(?:.*\\.|)")+"(\\.|$)"),U=B=Ee.length;B--;)Le=Ee[B],(N||_t===Le.origType)&&(!C||C.guid===Le.guid)&&(!le||le.test(Le.namespace))&&(!O||O===Le.selector||O==="**"&&Le.selector)&&(Ee.splice(B,1),Le.selector&&Ee.delegateCount--,Be.remove&&Be.remove.call(f,Le));U&&!Ee.length&&((!Be.teardown||Be.teardown.call(f,ct,Rt.handle)===!1)&&x.removeEvent(f,Ze,Rt.handle),delete oe[Ze])}x.isEmptyObject(oe)&&gt.remove(f,"handle events")}},dispatch:function(f){var m,C,O,N,B,U,le=new Array(arguments.length),oe=x.event.fix(f),we=(gt.get(this,"events")||Object.create(null))[oe.type]||[],Le=x.event.special[oe.type]||{};for(le[0]=oe,m=1;m<arguments.length;m++)le[m]=arguments[m];if(oe.delegateTarget=this,!(Le.preDispatch&&Le.preDispatch.call(this,oe)===!1)){for(U=x.event.handlers.call(this,oe,we),m=0;(N=U[m++])&&!oe.isPropagationStopped();)for(oe.currentTarget=N.elem,C=0;(B=N.handlers[C++])&&!oe.isImmediatePropagationStopped();)(!oe.rnamespace||B.namespace===!1||oe.rnamespace.test(B.namespace))&&(oe.handleObj=B,oe.data=B.data,O=((x.event.special[B.origType]||{}).handle||B.handler).apply(N.elem,le),O!==void 0&&(oe.result=O)===!1&&(oe.preventDefault(),oe.stopPropagation()));return Le.postDispatch&&Le.postDispatch.call(this,oe),oe.result}},handlers:function(f,m){var C,O,N,B,U,le=[],oe=m.delegateCount,we=f.target;if(oe&&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(B=[],U={},C=0;C<oe;C++)O=m[C],N=O.selector+" ",U[N]===void 0&&(U[N]=O.needsContext?x(N,this).index(we)>-1:x.find(N,this,null,[we]).length),U[N]&&B.push(O);B.length&&le.push({elem:we,handlers:B})}}return we=this,oe<m.length&&le.push({elem:we,handlers:m.slice(oe)}),le},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(C){Object.defineProperty(this,f,{enumerable:!0,configurable:!0,writable:!0,value:C})}})},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&&ue(m,"input")&&Ei(m,"click",!0),!1},trigger:function(f){var m=this||f;return Zt.test(m.type)&&m.click&&ue(m,"input")&&Ei(m,"click"),!0},_default:function(f){var m=f.target;return Zt.test(m.type)&&m.click&&ue(m,"input")&&gt.get(m,"click")||ue(m,"a")}},beforeunload:{postDispatch:function(f){f.result!==void 0&&f.originalEvent&&(f.originalEvent.returnValue=f.result)}}}};function Ei(f,m,C){if(!C){gt.get(f,m)===void 0&&x.event.add(f,m,br);return}gt.set(f,m,!1),x.event.add(f,m,{namespace:!1,handler:function(O){var N,B=gt.get(this,m);if(O.isTrigger&1&&this[m]){if(B)(x.event.special[m]||{}).delegateType&&O.stopPropagation();else if(B=o.call(arguments),gt.set(this,m,B),this[m](),N=gt.get(this,m),gt.set(this,m,!1),B!==N)return O.stopImmediatePropagation(),O.preventDefault(),N}else B&&(gt.set(this,m,x.event.trigger(B[0],B.slice(1),this)),O.stopPropagation(),O.isImmediatePropagationStopped=br)}})}x.removeEvent=function(f,m,C){f.removeEventListener&&f.removeEventListener(m,C)},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?br: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=br,f&&!this.isSimulated&&f.preventDefault()},stopPropagation:function(){var f=this.originalEvent;this.isPropagationStopped=br,f&&!this.isSimulated&&f.stopPropagation()},stopImmediatePropagation:function(){var f=this.originalEvent;this.isImmediatePropagationStopped=br,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 C(O){if(R.documentMode){var N=gt.get(this,"handle"),B=x.event.fix(O);B.type=O.type==="focusin"?"focus":"blur",B.isSimulated=!0,N(O),B.target===B.currentTarget&&N(B)}else x.event.simulate(m,O.target,x.event.fix(O))}x.event.special[f]={setup:function(){var O;if(Ei(this,f,!0),R.documentMode)O=gt.get(this,m),O||this.addEventListener(m,C),gt.set(this,m,(O||0)+1);else return!1},trigger:function(){return Ei(this,f),!0},teardown:function(){var O;if(R.documentMode)O=gt.get(this,m)-1,O?gt.set(this,m,O):(this.removeEventListener(m,C),gt.remove(this,m));else return!1},_default:function(O){return gt.get(O.target,f)},delegateType:m},x.event.special[m]={setup:function(){var O=this.ownerDocument||this.document||this,N=R.documentMode?this:O,B=gt.get(N,m);B||(R.documentMode?this.addEventListener(m,C):O.addEventListener(f,C,!0)),gt.set(N,m,(B||0)+1)},teardown:function(){var O=this.ownerDocument||this.document||this,N=R.documentMode?this:O,B=gt.get(N,m)-1;B?gt.set(N,m,B):(R.documentMode?this.removeEventListener(m,C):O.removeEventListener(f,C,!0),gt.remove(N,m))}}}),x.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(f,m){x.event.special[f]={delegateType:m,bindType:m,handle:function(C){var O,N=this,B=C.relatedTarget,U=C.handleObj;return(!B||B!==N&&!x.contains(N,B))&&(C.type=U.origType,O=U.handler.apply(this,arguments),C.type=m),O}}}),x.fn.extend({on:function(f,m,C,O){return fn(this,f,m,C,O)},one:function(f,m,C,O){return fn(this,f,m,C,O,1)},off:function(f,m,C){var O,N;if(f&&f.preventDefault&&f.handleObj)return O=f.handleObj,x(f.delegateTarget).off(O.namespace?O.origType+"."+O.namespace:O.origType,O.selector,O.handler),this;if(typeof f=="object"){for(N in f)this.off(N,m,f[N]);return this}return(m===!1||typeof m=="function")&&(C=m,m=void 0),C===!1&&(C=di),this.each(function(){x.event.remove(this,f,C,m)})}});var Ia=/<script|<style|<link/i,Aa=/checked\s*(?:[^=]|=\s*.checked.)/i,Zr=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function co(f,m){return ue(f,"table")&&ue(m.nodeType!==11?m:m.firstChild,"tr")&&x(f).children("tbody")[0]||f}function fo(f){return f.type=(f.getAttribute("type")!==null)+"/"+f.type,f}function Ro(f){return(f.type||"").slice(0,5)==="true/"?f.type=f.type.slice(5):f.removeAttribute("type"),f}function ki(f,m){var C,O,N,B,U,le,oe;if(m.nodeType===1){if(gt.hasData(f)&&(B=gt.get(f),oe=B.events,oe)){gt.remove(m,"handle events");for(N in oe)for(C=0,O=oe[N].length;C<O;C++)x.event.add(m,N,oe[N][C])}In.hasData(f)&&(U=In.access(f),le=x.extend({},U),In.set(m,le))}}function hi(f,m){var C=m.nodeName.toLowerCase();C==="input"&&Zt.test(f.type)?m.checked=f.checked:(C==="input"||C==="textarea")&&(m.defaultValue=f.defaultValue)}function Oi(f,m,C,O){m=s(m);var N,B,U,le,oe,we,Le=0,Be=f.length,Ee=Be-1,Ze=m[0],ct=I(Ze);if(ct||Be>1&&typeof Ze=="string"&&!P.checkClone&&Aa.test(Ze))return f.each(function(_t){var Rt=f.eq(_t);ct&&(m[0]=Ze.call(this,_t,Rt.html())),Oi(Rt,m,C,O)});if(Be&&(N=mn(m,f[0].ownerDocument,!1,f,O),B=N.firstChild,N.childNodes.length===1&&(N=B),B||O)){for(U=x.map(gn(N,"script"),fo),le=U.length;Le<Be;Le++)oe=N,Le!==Ee&&(oe=x.clone(oe,!0,!0),le&&x.merge(U,gn(oe,"script"))),C.call(f[Le],oe,Le);if(le)for(we=U[U.length-1].ownerDocument,x.map(U,Ro),Le=0;Le<le;Le++)oe=U[Le],Wi.test(oe.type||"")&&!gt.access(oe,"globalEval")&&x.contains(we,oe)&&(oe.src&&(oe.type||"").toLowerCase()!=="module"?x._evalUrl&&!oe.noModule&&x._evalUrl(oe.src,{nonce:oe.nonce||oe.getAttribute("nonce")},we):W(oe.textContent.replace(Zr,""),oe,we))}return f}function ho(f,m,C){for(var O,N=m?x.filter(m,f):f,B=0;(O=N[B])!=null;B++)!C&&O.nodeType===1&&x.cleanData(gn(O)),O.parentNode&&(C&&yr(O)&&ci(gn(O,"script")),O.parentNode.removeChild(O));return f}x.extend({htmlPrefilter:function(f){return f},clone:function(f,m,C){var O,N,B,U,le=f.cloneNode(!0),oe=yr(f);if(!P.noCloneChecked&&(f.nodeType===1||f.nodeType===11)&&!x.isXMLDoc(f))for(U=gn(le),B=gn(f),O=0,N=B.length;O<N;O++)hi(B[O],U[O]);if(m)if(C)for(B=B||gn(f),U=U||gn(le),O=0,N=B.length;O<N;O++)ki(B[O],U[O]);else ki(f,le);return U=gn(le,"script"),U.length>0&&ci(U,!oe&&gn(f,"script")),le},cleanData:function(f){for(var m,C,O,N=x.event.special,B=0;(C=f[B])!==void 0;B++)if(hn(C)){if(m=C[gt.expando]){if(m.events)for(O in m.events)N[O]?x.event.remove(C,O):x.removeEvent(C,O,m.handle);C[gt.expando]=void 0}C[In.expando]&&(C[In.expando]=void 0)}}}),x.fn.extend({detach:function(f){return ho(this,f,!0)},remove:function(f){return ho(this,f)},text:function(f){return _n(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 Oi(this,arguments,function(f){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var m=co(this,f);m.appendChild(f)}})},prepend:function(){return Oi(this,arguments,function(f){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var m=co(this,f);m.insertBefore(f,m.firstChild)}})},before:function(){return Oi(this,arguments,function(f){this.parentNode&&this.parentNode.insertBefore(f,this)})},after:function(){return Oi(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(gn(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 _n(this,function(m){var C=this[0]||{},O=0,N=this.length;if(m===void 0&&C.nodeType===1)return C.innerHTML;if(typeof m=="string"&&!Ia.test(m)&&!An[(ui.exec(m)||["",""])[1].toLowerCase()]){m=x.htmlPrefilter(m);try{for(;O<N;O++)C=this[O]||{},C.nodeType===1&&(x.cleanData(gn(C,!1)),C.innerHTML=m);C=0}catch{}}C&&this.empty().append(m)},null,f,arguments.length)},replaceWith:function(){var f=[];return Oi(this,arguments,function(m){var C=this.parentNode;x.inArray(this,f)<0&&(x.cleanData(gn(this)),C&&C.replaceChild(m,this))},f)}}),x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(f,m){x.fn[f]=function(C){for(var O,N=[],B=x(C),U=B.length-1,le=0;le<=U;le++)O=le===U?this:this.clone(!0),x(B[le])[m](O),u.apply(N,O.get());return this.pushStack(N)}});var Di=new RegExp("^("+Ui+")(?!px)[a-z%]+$","i"),Jr=/^--/,wr=function(f){var m=f.ownerDocument.defaultView;return(!m||!m.opener)&&(m=t),m.getComputedStyle(f)},Rr=function(f,m,C){var O,N,B={};for(N in m)B[N]=f.style[N],f.style[N]=m[N];O=C.call(f);for(N in m)f.style[N]=B[N];return O},Qr=new RegExp(Wn.join("|"),"i");(function(){function f(){if(we){oe.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%",Pr.appendChild(oe).appendChild(we);var Le=t.getComputedStyle(we);C=Le.top!=="1%",le=m(Le.marginLeft)===12,we.style.right="60%",B=m(Le.right)===36,O=m(Le.width)===36,we.style.position="absolute",N=m(we.offsetWidth/3)===12,Pr.removeChild(oe),we=null}}function m(Le){return Math.round(parseFloat(Le))}var C,O,N,B,U,le,oe=R.createElement("div"),we=R.createElement("div");we.style&&(we.style.backgroundClip="content-box",we.cloneNode(!0).style.backgroundClip="",P.clearCloneStyle=we.style.backgroundClip==="content-box",x.extend(P,{boxSizingReliable:function(){return f(),O},pixelBoxStyles:function(){return f(),B},pixelPosition:function(){return f(),C},reliableMarginLeft:function(){return f(),le},scrollboxSize:function(){return f(),N},reliableTrDimensions:function(){var Le,Be,Ee,Ze;return U==null&&(Le=R.createElement("table"),Be=R.createElement("tr"),Ee=R.createElement("div"),Le.style.cssText="position:absolute;left:-11111px;border-collapse:separate",Be.style.cssText="box-sizing:content-box;border:1px solid",Be.style.height="1px",Ee.style.height="9px",Ee.style.display="block",Pr.appendChild(Le).appendChild(Be).appendChild(Ee),Ze=t.getComputedStyle(Be),U=parseInt(Ze.height,10)+parseInt(Ze.borderTopWidth,10)+parseInt(Ze.borderBottomWidth,10)===Be.offsetHeight,Pr.removeChild(Le)),U}}))})();function Ir(f,m,C){var O,N,B,U,le=Jr.test(m),oe=f.style;return C=C||wr(f),C&&(U=C.getPropertyValue(m)||C[m],le&&U&&(U=U.replace(qe,"$1")||void 0),U===""&&!yr(f)&&(U=x.style(f,m)),!P.pixelBoxStyles()&&Di.test(U)&&Qr.test(m)&&(O=oe.width,N=oe.minWidth,B=oe.maxWidth,oe.minWidth=oe.maxWidth=oe.width=U,U=C.width,oe.width=O,oe.minWidth=N,oe.maxWidth=B)),U!==void 0?U+"":U}function zn(f,m){return{get:function(){if(f()){delete this.get;return}return(this.get=m).apply(this,arguments)}}}var vn=["Webkit","Moz","ms"],Ar=R.createElement("div").style,xr={};function Mn(f){for(var m=f[0].toUpperCase()+f.slice(1),C=vn.length;C--;)if(f=vn[C]+m,f in Ar)return f}function pi(f){var m=x.cssProps[f]||xr[f];return m||(f in Ar?f:xr[f]=Mn(f)||f)}var Mr=/^(none|table(?!-c[ea]).+)/,ei={position:"absolute",visibility:"hidden",display:"block"},Jn={letterSpacing:"0",fontWeight:"400"};function ti(f,m,C){var O=_r.exec(m);return O?Math.max(0,O[2]-(C||0))+(O[3]||"px"):m}function ni(f,m,C,O,N,B){var U=m==="width"?1:0,le=0,oe=0,we=0;if(C===(O?"border":"content"))return 0;for(;U<4;U+=2)C==="margin"&&(we+=x.css(f,C+Wn[U],!0,N)),O?(C==="content"&&(oe-=x.css(f,"padding"+Wn[U],!0,N)),C!=="margin"&&(oe-=x.css(f,"border"+Wn[U]+"Width",!0,N))):(oe+=x.css(f,"padding"+Wn[U],!0,N),C!=="padding"?oe+=x.css(f,"border"+Wn[U]+"Width",!0,N):le+=x.css(f,"border"+Wn[U]+"Width",!0,N));return!O&&B>=0&&(oe+=Math.max(0,Math.ceil(f["offset"+m[0].toUpperCase()+m.slice(1)]-B-oe-le-.5))||0),oe+we}function zi(f,m,C){var O=wr(f),N=!P.boxSizingReliable()||C,B=N&&x.css(f,"boxSizing",!1,O)==="border-box",U=B,le=Ir(f,m,O),oe="offset"+m[0].toUpperCase()+m.slice(1);if(Di.test(le)){if(!C)return le;le="auto"}return(!P.boxSizingReliable()&&B||!P.reliableTrDimensions()&&ue(f,"tr")||le==="auto"||!parseFloat(le)&&x.css(f,"display",!1,O)==="inline")&&f.getClientRects().length&&(B=x.css(f,"boxSizing",!1,O)==="border-box",U=oe in f,U&&(le=f[oe])),le=parseFloat(le)||0,le+ni(f,m,C||(B?"border":"content"),U,O,le)+"px"}x.extend({cssHooks:{opacity:{get:function(f,m){if(m){var C=Ir(f,"opacity");return C===""?"1":C}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(f,m,C,O){if(!(!f||f.nodeType===3||f.nodeType===8||!f.style)){var N,B,U,le=cn(m),oe=Jr.test(m),we=f.style;if(oe||(m=pi(le)),U=x.cssHooks[m]||x.cssHooks[le],C!==void 0){if(B=typeof C,B==="string"&&(N=_r.exec(C))&&N[1]&&(C=Po(f,m,N),B="number"),C==null||C!==C)return;B==="number"&&!oe&&(C+=N&&N[3]||(x.cssNumber[le]?"":"px")),!P.clearCloneStyle&&C===""&&m.indexOf("background")===0&&(we[m]="inherit"),(!U||!("set"in U)||(C=U.set(f,C,O))!==void 0)&&(oe?we.setProperty(m,C):we[m]=C)}else return U&&"get"in U&&(N=U.get(f,!1,O))!==void 0?N:we[m]}},css:function(f,m,C,O){var N,B,U,le=cn(m),oe=Jr.test(m);return oe||(m=pi(le)),U=x.cssHooks[m]||x.cssHooks[le],U&&"get"in U&&(N=U.get(f,!0,C)),N===void 0&&(N=Ir(f,m,O)),N==="normal"&&m in Jn&&(N=Jn[m]),C===""||C?(B=parseFloat(N),C===!0||isFinite(B)?B||0:N):N}}),x.each(["height","width"],function(f,m){x.cssHooks[m]={get:function(C,O,N){if(O)return Mr.test(x.css(C,"display"))&&(!C.getClientRects().length||!C.getBoundingClientRect().width)?Rr(C,ei,function(){return zi(C,m,N)}):zi(C,m,N)},set:function(C,O,N){var B,U=wr(C),le=!P.scrollboxSize()&&U.position==="absolute",oe=le||N,we=oe&&x.css(C,"boxSizing",!1,U)==="border-box",Le=N?ni(C,m,N,we,U):0;return we&&le&&(Le-=Math.ceil(C["offset"+m[0].toUpperCase()+m.slice(1)]-parseFloat(U[m])-ni(C,m,"border",!1,U)-.5)),Le&&(B=_r.exec(O))&&(B[3]||"px")!=="px"&&(C.style[m]=O,O=x.css(C,m)),ti(C,O,Le)}}}),x.cssHooks.marginLeft=zn(P.reliableMarginLeft,function(f,m){if(m)return(parseFloat(Ir(f,"marginLeft"))||f.getBoundingClientRect().left-Rr(f,{marginLeft:0},function(){return f.getBoundingClientRect().left}))+"px"}),x.each({margin:"",padding:"",border:"Width"},function(f,m){x.cssHooks[f+m]={expand:function(C){for(var O=0,N={},B=typeof C=="string"?C.split(" "):[C];O<4;O++)N[f+Wn[O]+m]=B[O]||B[O-2]||B[0];return N}},f!=="margin"&&(x.cssHooks[f+m].set=ti)}),x.fn.extend({css:function(f,m){return _n(this,function(C,O,N){var B,U,le={},oe=0;if(Array.isArray(O)){for(B=wr(C),U=O.length;oe<U;oe++)le[O[oe]]=x.css(C,O[oe],!1,B);return le}return N!==void 0?x.style(C,O,N):x.css(C,O)},f,m,arguments.length>1)}});function Rn(f,m,C,O,N){return new Rn.prototype.init(f,m,C,O,N)}x.Tween=Rn,Rn.prototype={constructor:Rn,init:function(f,m,C,O,N,B){this.elem=f,this.prop=C,this.easing=N||x.easing._default,this.options=m,this.start=this.now=this.cur(),this.end=O,this.unit=B||(x.cssNumber[C]?"":"px")},cur:function(){var f=Rn.propHooks[this.prop];return f&&f.get?f.get(this):Rn.propHooks._default.get(this)},run:function(f){var m,C=Rn.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),C&&C.set?C.set(this):Rn.propHooks._default.set(this),this}},Rn.prototype.init.prototype=Rn.prototype,Rn.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}}},Rn.propHooks.scrollTop=Rn.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=Rn.prototype.init,x.fx.step={};var Sr,cr,Io=/^(?:toggle|show|hide)$/,Yi=/queueHooks$/;function Lr(){cr&&(R.hidden===!1&&t.requestAnimationFrame?t.requestAnimationFrame(Lr):t.setTimeout(Lr,x.fx.interval),x.fx.tick())}function E(){return t.setTimeout(function(){Sr=void 0}),Sr=Date.now()}function j(f,m){var C,O=0,N={height:f};for(m=m?1:0;O<4;O+=2-m)C=Wn[O],N["margin"+C]=N["padding"+C]=f;return m&&(N.opacity=N.width=f),N}function q(f,m,C){for(var O,N=(be.tweeners[m]||[]).concat(be.tweeners["*"]),B=0,U=N.length;B<U;B++)if(O=N[B].call(C,m,f))return O}function re(f,m,C){var O,N,B,U,le,oe,we,Le,Be="width"in m||"height"in m,Ee=this,Ze={},ct=f.style,_t=f.nodeType&&Xr(f),Rt=gt.get(f,"fxshow");C.queue||(U=x._queueHooks(f,"fx"),U.unqueued==null&&(U.unqueued=0,le=U.empty.fire,U.empty.fire=function(){U.unqueued||le()}),U.unqueued++,Ee.always(function(){Ee.always(function(){U.unqueued--,x.queue(f,"fx").length||U.empty.fire()})}));for(O in m)if(N=m[O],Io.test(N)){if(delete m[O],B=B||N==="toggle",N===(_t?"hide":"show"))if(N==="show"&&Rt&&Rt[O]!==void 0)_t=!0;else continue;Ze[O]=Rt&&Rt[O]||x.style(f,O)}if(oe=!x.isEmptyObject(m),!(!oe&&x.isEmptyObject(Ze))){Be&&f.nodeType===1&&(C.overflow=[ct.overflow,ct.overflowX,ct.overflowY],we=Rt&&Rt.display,we==null&&(we=gt.get(f,"display")),Le=x.css(f,"display"),Le==="none"&&(we?Le=we:(ir([f],!0),we=f.style.display||we,Le=x.css(f,"display"),ir([f]))),(Le==="inline"||Le==="inline-block"&&we!=null)&&x.css(f,"float")==="none"&&(oe||(Ee.done(function(){ct.display=we}),we==null&&(Le=ct.display,we=Le==="none"?"":Le)),ct.display="inline-block")),C.overflow&&(ct.overflow="hidden",Ee.always(function(){ct.overflow=C.overflow[0],ct.overflowX=C.overflow[1],ct.overflowY=C.overflow[2]})),oe=!1;for(O in Ze)oe||(Rt?"hidden"in Rt&&(_t=Rt.hidden):Rt=gt.access(f,"fxshow",{display:we}),B&&(Rt.hidden=!_t),_t&&ir([f],!0),Ee.done(function(){_t||ir([f]),gt.remove(f,"fxshow");for(O in Ze)x.style(f,O,Ze[O])})),oe=q(_t?Rt[O]:0,O,Ee),O in Rt||(Rt[O]=oe.start,_t&&(oe.end=oe.start,oe.start=0))}}function De(f,m){var C,O,N,B,U;for(C in f)if(O=cn(C),N=m[O],B=f[C],Array.isArray(B)&&(N=B[1],B=f[C]=B[0]),C!==O&&(f[O]=B,delete f[C]),U=x.cssHooks[O],U&&"expand"in U){B=U.expand(B),delete f[O];for(C in B)C in f||(f[C]=B[C],m[C]=N)}else m[O]=N}function be(f,m,C){var O,N,B=0,U=be.prefilters.length,le=x.Deferred().always(function(){delete oe.elem}),oe=function(){if(N)return!1;for(var Be=Sr||E(),Ee=Math.max(0,we.startTime+we.duration-Be),Ze=Ee/we.duration||0,ct=1-Ze,_t=0,Rt=we.tweens.length;_t<Rt;_t++)we.tweens[_t].run(ct);return le.notifyWith(f,[we,ct,Ee]),ct<1&&Rt?Ee:(Rt||le.notifyWith(f,[we,1,0]),le.resolveWith(f,[we]),!1)},we=le.promise({elem:f,props:x.extend({},m),opts:x.extend(!0,{specialEasing:{},easing:x.easing._default},C),originalProperties:m,originalOptions:C,startTime:Sr||E(),duration:C.duration,tweens:[],createTween:function(Be,Ee){var Ze=x.Tween(f,we.opts,Be,Ee,we.opts.specialEasing[Be]||we.opts.easing);return we.tweens.push(Ze),Ze},stop:function(Be){var Ee=0,Ze=Be?we.tweens.length:0;if(N)return this;for(N=!0;Ee<Ze;Ee++)we.tweens[Ee].run(1);return Be?(le.notifyWith(f,[we,1,0]),le.resolveWith(f,[we,Be])):le.rejectWith(f,[we,Be]),this}}),Le=we.props;for(De(Le,we.opts.specialEasing);B<U;B++)if(O=be.prefilters[B].call(we,f,Le,we.opts),O)return I(O.stop)&&(x._queueHooks(we.elem,we.opts.queue).stop=O.stop.bind(O)),O;return x.map(Le,q,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(oe,{elem:f,anim:we,queue:we.opts.queue})),we}x.Animation=x.extend(be,{tweeners:{"*":[function(f,m){var C=this.createTween(f,m);return Po(C.elem,f,_r.exec(m),C),C}]},tweener:function(f,m){I(f)?(m=f,f=["*"]):f=f.match(vt);for(var C,O=0,N=f.length;O<N;O++)C=f[O],be.tweeners[C]=be.tweeners[C]||[],be.tweeners[C].unshift(m)},prefilters:[re],prefilter:function(f,m){m?be.prefilters.unshift(f):be.prefilters.push(f)}}),x.speed=function(f,m,C){var O=f&&typeof f=="object"?x.extend({},f):{complete:C||!C&&m||I(f)&&f,duration:f,easing:C&&m||m&&!I(m)&&m};return x.fx.off?O.duration=0:typeof O.duration!="number"&&(O.duration in x.fx.speeds?O.duration=x.fx.speeds[O.duration]:O.duration=x.fx.speeds._default),(O.queue==null||O.queue===!0)&&(O.queue="fx"),O.old=O.complete,O.complete=function(){I(O.old)&&O.old.call(this),O.queue&&x.dequeue(this,O.queue)},O},x.fn.extend({fadeTo:function(f,m,C,O){return this.filter(Xr).css("opacity",0).show().end().animate({opacity:m},f,C,O)},animate:function(f,m,C,O){var N=x.isEmptyObject(f),B=x.speed(m,C,O),U=function(){var le=be(this,x.extend({},f),B);(N||gt.get(this,"finish"))&&le.stop(!0)};return U.finish=U,N||B.queue===!1?this.each(U):this.queue(B.queue,U)},stop:function(f,m,C){var O=function(N){var B=N.stop;delete N.stop,B(C)};return typeof f!="string"&&(C=m,m=f,f=void 0),m&&this.queue(f||"fx",[]),this.each(function(){var N=!0,B=f!=null&&f+"queueHooks",U=x.timers,le=gt.get(this);if(B)le[B]&&le[B].stop&&O(le[B]);else for(B in le)le[B]&&le[B].stop&&Yi.test(B)&&O(le[B]);for(B=U.length;B--;)U[B].elem===this&&(f==null||U[B].queue===f)&&(U[B].anim.stop(C),N=!1,U.splice(B,1));(N||!C)&&x.dequeue(this,f)})},finish:function(f){return f!==!1&&(f=f||"fx"),this.each(function(){var m,C=gt.get(this),O=C[f+"queue"],N=C[f+"queueHooks"],B=x.timers,U=O?O.length:0;for(C.finish=!0,x.queue(this,f,[]),N&&N.stop&&N.stop.call(this,!0),m=B.length;m--;)B[m].elem===this&&B[m].queue===f&&(B[m].anim.stop(!0),B.splice(m,1));for(m=0;m<U;m++)O[m]&&O[m].finish&&O[m].finish.call(this);delete C.finish})}}),x.each(["toggle","show","hide"],function(f,m){var C=x.fn[m];x.fn[m]=function(O,N,B){return O==null||typeof O=="boolean"?C.apply(this,arguments):this.animate(j(m,!0),O,N,B)}}),x.each({slideDown:j("show"),slideUp:j("hide"),slideToggle:j("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(f,m){x.fn[f]=function(C,O,N){return this.animate(m,C,O,N)}}),x.timers=[],x.fx.tick=function(){var f,m=0,C=x.timers;for(Sr=Date.now();m<C.length;m++)f=C[m],!f()&&C[m]===f&&C.splice(m--,1);C.length||x.fx.stop(),Sr=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,Lr())},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(C,O){var N=t.setTimeout(C,f);O.stop=function(){t.clearTimeout(N)}})},function(){var f=R.createElement("input"),m=R.createElement("select"),C=m.appendChild(R.createElement("option"));f.type="checkbox",P.checkOn=f.value!=="",P.optSelected=C.selected,f=R.createElement("input"),f.value="t",f.type="radio",P.radioValue=f.value==="t"}();var Me,rt=x.expr.attrHandle;x.fn.extend({attr:function(f,m){return _n(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,C){var O,N,B=f.nodeType;if(!(B===3||B===8||B===2)){if(typeof f.getAttribute>"u")return x.prop(f,m,C);if((B!==1||!x.isXMLDoc(f))&&(N=x.attrHooks[m.toLowerCase()]||(x.expr.match.bool.test(m)?Me:void 0)),C!==void 0){if(C===null){x.removeAttr(f,m);return}return N&&"set"in N&&(O=N.set(f,C,m))!==void 0?O:(f.setAttribute(m,C+""),C)}return N&&"get"in N&&(O=N.get(f,m))!==null?O:(O=x.find.attr(f,m),O??void 0)}},attrHooks:{type:{set:function(f,m){if(!P.radioValue&&m==="radio"&&ue(f,"input")){var C=f.value;return f.setAttribute("type",m),C&&(f.value=C),m}}}},removeAttr:function(f,m){var C,O=0,N=m&&m.match(vt);if(N&&f.nodeType===1)for(;C=N[O++];)f.removeAttribute(C)}}),Me={set:function(f,m,C){return m===!1?x.removeAttr(f,C):f.setAttribute(C,C),C}},x.each(x.expr.match.bool.source.match(/\w+/g),function(f,m){var C=rt[m]||x.find.attr;rt[m]=function(O,N,B){var U,le,oe=N.toLowerCase();return B||(le=rt[oe],rt[oe]=U,U=C(O,N,B)!=null?oe:null,rt[oe]=le),U}});var yt=/^(?:input|select|textarea|button)$/i,Tt=/^(?:a|area)$/i;x.fn.extend({prop:function(f,m){return _n(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,C){var O,N,B=f.nodeType;if(!(B===3||B===8||B===2))return(B!==1||!x.isXMLDoc(f))&&(m=x.propFix[m]||m,N=x.propHooks[m]),C!==void 0?N&&"set"in N&&(O=N.set(f,C,m))!==void 0?O:f[m]=C:N&&"get"in N&&(O=N.get(f,m))!==null?O:f[m]},propHooks:{tabIndex:{get:function(f){var m=x.find.attr(f,"tabindex");return m?parseInt(m,10):yt.test(f.nodeName)||Tt.test(f.nodeName)&&f.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),P.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 bt(f){var m=f.match(vt)||[];return m.join(" ")}function Ut(f){return f.getAttribute&&f.getAttribute("class")||""}function Qn(f){return Array.isArray(f)?f:typeof f=="string"?f.match(vt)||[]:[]}x.fn.extend({addClass:function(f){var m,C,O,N,B,U;return I(f)?this.each(function(le){x(this).addClass(f.call(this,le,Ut(this)))}):(m=Qn(f),m.length?this.each(function(){if(O=Ut(this),C=this.nodeType===1&&" "+bt(O)+" ",C){for(B=0;B<m.length;B++)N=m[B],C.indexOf(" "+N+" ")<0&&(C+=N+" ");U=bt(C),O!==U&&this.setAttribute("class",U)}}):this)},removeClass:function(f){var m,C,O,N,B,U;return I(f)?this.each(function(le){x(this).removeClass(f.call(this,le,Ut(this)))}):arguments.length?(m=Qn(f),m.length?this.each(function(){if(O=Ut(this),C=this.nodeType===1&&" "+bt(O)+" ",C){for(B=0;B<m.length;B++)for(N=m[B];C.indexOf(" "+N+" ")>-1;)C=C.replace(" "+N+" "," ");U=bt(C),O!==U&&this.setAttribute("class",U)}}):this):this.attr("class","")},toggleClass:function(f,m){var C,O,N,B,U=typeof f,le=U==="string"||Array.isArray(f);return I(f)?this.each(function(oe){x(this).toggleClass(f.call(this,oe,Ut(this),m),m)}):typeof m=="boolean"&&le?m?this.addClass(f):this.removeClass(f):(C=Qn(f),this.each(function(){if(le)for(B=x(this),N=0;N<C.length;N++)O=C[N],B.hasClass(O)?B.removeClass(O):B.addClass(O);else(f===void 0||U==="boolean")&&(O=Ut(this),O&&gt.set(this,"__className__",O),this.setAttribute&&this.setAttribute("class",O||f===!1?"":gt.get(this,"__className__")||""))}))},hasClass:function(f){var m,C,O=0;for(m=" "+f+" ";C=this[O++];)if(C.nodeType===1&&(" "+bt(Ut(C))+" ").indexOf(m)>-1)return!0;return!1}});var Yn=/\r/g;x.fn.extend({val:function(f){var m,C,O,N=this[0];return arguments.length?(O=I(f),this.each(function(B){var U;this.nodeType===1&&(O?U=f.call(this,B,x(this).val()):U=f,U==null?U="":typeof U=="number"?U+="":Array.isArray(U)&&(U=x.map(U,function(le){return le==null?"":le+""})),m=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()],(!m||!("set"in m)||m.set(this,U,"value")===void 0)&&(this.value=U))})):N?(m=x.valHooks[N.type]||x.valHooks[N.nodeName.toLowerCase()],m&&"get"in m&&(C=m.get(N,"value"))!==void 0?C:(C=N.value,typeof C=="string"?C.replace(Yn,""):C??"")):void 0}}),x.extend({valHooks:{option:{get:function(f){var m=x.find.attr(f,"value");return m??bt(x.text(f))}},select:{get:function(f){var m,C,O,N=f.options,B=f.selectedIndex,U=f.type==="select-one",le=U?null:[],oe=U?B+1:N.length;for(B<0?O=oe:O=U?B:0;O<oe;O++)if(C=N[O],(C.selected||O===B)&&!C.disabled&&(!C.parentNode.disabled||!ue(C.parentNode,"optgroup"))){if(m=x(C).val(),U)return m;le.push(m)}return le},set:function(f,m){for(var C,O,N=f.options,B=x.makeArray(m),U=N.length;U--;)O=N[U],(O.selected=x.inArray(x.valHooks.option.get(O),B)>-1)&&(C=!0);return C||(f.selectedIndex=-1),B}}}}),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}},P.checkOn||(x.valHooks[this].get=function(f){return f.getAttribute("value")===null?"on":f.value})});var Pn=t.location,Fr={guid:Date.now()},or=/\?/;x.parseXML=function(f){var m,C;if(!f||typeof f!="string")return null;try{m=new t.DOMParser().parseFromString(f,"text/xml")}catch{}return C=m&&m.getElementsByTagName("parsererror")[0],(!m||C)&&x.error("Invalid XML: "+(C?x.map(C.childNodes,function(O){return O.textContent}).join(`
180
+ `):f)),m};var Gi=/^(?:focusinfocus|focusoutblur)$/,gi=function(f){f.stopPropagation()};x.extend(x.event,{trigger:function(f,m,C,O){var N,B,U,le,oe,we,Le,Be,Ee=[C||R],Ze=p.call(f,"type")?f.type:f,ct=p.call(f,"namespace")?f.namespace.split("."):[];if(B=Be=U=C=C||R,!(C.nodeType===3||C.nodeType===8)&&!Gi.test(Ze+x.event.triggered)&&(Ze.indexOf(".")>-1&&(ct=Ze.split("."),Ze=ct.shift(),ct.sort()),oe=Ze.indexOf(":")<0&&"on"+Ze,f=f[x.expando]?f:new x.Event(Ze,typeof f=="object"&&f),f.isTrigger=O?2:3,f.namespace=ct.join("."),f.rnamespace=f.namespace?new RegExp("(^|\\.)"+ct.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,f.result=void 0,f.target||(f.target=C),m=m==null?[f]:x.makeArray(m,[f]),Le=x.event.special[Ze]||{},!(!O&&Le.trigger&&Le.trigger.apply(C,m)===!1))){if(!O&&!Le.noBubble&&!L(C)){for(le=Le.delegateType||Ze,Gi.test(le+Ze)||(B=B.parentNode);B;B=B.parentNode)Ee.push(B),U=B;U===(C.ownerDocument||R)&&Ee.push(U.defaultView||U.parentWindow||t)}for(N=0;(B=Ee[N++])&&!f.isPropagationStopped();)Be=B,f.type=N>1?le:Le.bindType||Ze,we=(gt.get(B,"events")||Object.create(null))[f.type]&&gt.get(B,"handle"),we&&we.apply(B,m),we=oe&&B[oe],we&&we.apply&&hn(B)&&(f.result=we.apply(B,m),f.result===!1&&f.preventDefault());return f.type=Ze,!O&&!f.isDefaultPrevented()&&(!Le._default||Le._default.apply(Ee.pop(),m)===!1)&&hn(C)&&oe&&I(C[Ze])&&!L(C)&&(U=C[oe],U&&(C[oe]=null),x.event.triggered=Ze,f.isPropagationStopped()&&Be.addEventListener(Ze,gi),C[Ze](),f.isPropagationStopped()&&Be.removeEventListener(Ze,gi),x.event.triggered=void 0,U&&(C[oe]=U)),f.result}},simulate:function(f,m,C){var O=x.extend(new x.Event,C,{type:f,isSimulated:!0});x.event.trigger(O,null,m)}}),x.fn.extend({trigger:function(f,m){return this.each(function(){x.event.trigger(f,m,this)})},triggerHandler:function(f,m){var C=this[0];if(C)return x.event.trigger(f,m,C,!0)}});var qi=/\[\]$/,Nr=/\r?\n/g,Ao=/^(?:submit|button|image|reset|file)$/i,Ys=/^(?:input|select|textarea|keygen)/i;function Ma(f,m,C,O){var N;if(Array.isArray(m))x.each(m,function(B,U){C||qi.test(f)?O(f,U):Ma(f+"["+(typeof U=="object"&&U!=null?B:"")+"]",U,C,O)});else if(!C&&te(m)==="object")for(N in m)Ma(f+"["+N+"]",m[N],C,O);else O(f,m)}x.param=function(f,m){var C,O=[],N=function(B,U){var le=I(U)?U():U;O[O.length]=encodeURIComponent(B)+"="+encodeURIComponent(le??"")};if(f==null)return"";if(Array.isArray(f)||f.jquery&&!x.isPlainObject(f))x.each(f,function(){N(this.name,this.value)});else for(C in f)Ma(C,f[C],m,N);return O.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")&&Ys.test(this.nodeName)&&!Ao.test(f)&&(this.checked||!Zt.test(f))}).map(function(f,m){var C=x(this).val();return C==null?null:Array.isArray(C)?x.map(C,function(O){return{name:m.name,value:O.replace(Nr,`\r
181
+ `)}}):{name:m.name,value:C.replace(Nr,`\r
182
+ `)}}).get()}});var La=/%20/g,Fa=/#.*$/,Na=/([?&])_=[^&]*/,vi=/^(.*?):[ \t]*([^\r\n]*)$/mg,Mo=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,ra=/^(?:GET|HEAD)$/,sn=/^\/\//,Qt={},Vt={},_i="*/".concat("*"),ri=R.createElement("a");ri.href=Pn.href;function Lo(f){return function(m,C){typeof m!="string"&&(C=m,m="*");var O,N=0,B=m.toLowerCase().match(vt)||[];if(I(C))for(;O=B[N++];)O[0]==="+"?(O=O.slice(1)||"*",(f[O]=f[O]||[]).unshift(C)):(f[O]=f[O]||[]).push(C)}}function mi(f,m,C,O){var N={},B=f===Vt;function U(le){var oe;return N[le]=!0,x.each(f[le]||[],function(we,Le){var Be=Le(m,C,O);if(typeof Be=="string"&&!B&&!N[Be])return m.dataTypes.unshift(Be),U(Be),!1;if(B)return!(oe=Be)}),oe}return U(m.dataTypes[0])||!N["*"]&&U("*")}function fr(f,m){var C,O,N=x.ajaxSettings.flatOptions||{};for(C in m)m[C]!==void 0&&((N[C]?f:O||(O={}))[C]=m[C]);return O&&x.extend(!0,f,O),f}function ja(f,m,C){for(var O,N,B,U,le=f.contents,oe=f.dataTypes;oe[0]==="*";)oe.shift(),O===void 0&&(O=f.mimeType||m.getResponseHeader("Content-Type"));if(O){for(N in le)if(le[N]&&le[N].test(O)){oe.unshift(N);break}}if(oe[0]in C)B=oe[0];else{for(N in C){if(!oe[0]||f.converters[N+" "+oe[0]]){B=N;break}U||(U=N)}B=B||U}if(B)return B!==oe[0]&&oe.unshift(B),C[B]}function ia(f,m,C,O){var N,B,U,le,oe,we={},Le=f.dataTypes.slice();if(Le[1])for(U in f.converters)we[U.toLowerCase()]=f.converters[U];for(B=Le.shift();B;)if(f.responseFields[B]&&(C[f.responseFields[B]]=m),!oe&&O&&f.dataFilter&&(m=f.dataFilter(m,f.dataType)),oe=B,B=Le.shift(),B){if(B==="*")B=oe;else if(oe!=="*"&&oe!==B){if(U=we[oe+" "+B]||we["* "+B],!U){for(N in we)if(le=N.split(" "),le[1]===B&&(U=we[oe+" "+le[0]]||we["* "+le[0]],U)){U===!0?U=we[N]:we[N]!==!0&&(B=le[0],Le.unshift(le[1]));break}}if(U!==!0)if(U&&f.throws)m=U(m);else try{m=U(m)}catch(Be){return{state:"parsererror",error:U?Be:"No conversion from "+oe+" to "+B}}}}return{state:"success",data:m}}x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Pn.href,type:"GET",isLocal:Mo.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:Lo(Qt),ajaxTransport:Lo(Vt),ajax:function(f,m){typeof f=="object"&&(m=f,f=void 0),m=m||{};var C,O,N,B,U,le,oe,we,Le,Be,Ee=x.ajaxSetup({},m),Ze=Ee.context||Ee,ct=Ee.context&&(Ze.nodeType||Ze.jquery)?x(Ze):x.event,_t=x.Deferred(),Rt=x.Callbacks("once memory"),Ln=Ee.statusCode||{},dn={},jr={},Br="canceled",Wt={readyState:0,getResponseHeader:function(zt){var on;if(oe){if(!B)for(B={};on=vi.exec(N);)B[on[1].toLowerCase()+" "]=(B[on[1].toLowerCase()+" "]||[]).concat(on[2]);on=B[zt.toLowerCase()+" "]}return on==null?null:on.join(", ")},getAllResponseHeaders:function(){return oe?N:null},setRequestHeader:function(zt,on){return oe==null&&(zt=jr[zt.toLowerCase()]=jr[zt.toLowerCase()]||zt,dn[zt]=on),this},overrideMimeType:function(zt){return oe==null&&(Ee.mimeType=zt),this},statusCode:function(zt){var on;if(zt)if(oe)Wt.always(zt[Wt.status]);else for(on in zt)Ln[on]=[Ln[on],zt[on]];return this},abort:function(zt){var on=zt||Br;return C&&C.abort(on),$r(0,on),this}};if(_t.promise(Wt),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(vt)||[""],Ee.crossDomain==null){le=R.createElement("a");try{le.href=Ee.url,le.href=le.href,Ee.crossDomain=ri.protocol+"//"+ri.host!=le.protocol+"//"+le.host}catch{Ee.crossDomain=!0}}if(Ee.data&&Ee.processData&&typeof Ee.data!="string"&&(Ee.data=x.param(Ee.data,Ee.traditional)),mi(Qt,Ee,m,Wt),oe)return Wt;we=x.event&&Ee.global,we&&x.active++===0&&x.event.trigger("ajaxStart"),Ee.type=Ee.type.toUpperCase(),Ee.hasContent=!ra.test(Ee.type),O=Ee.url.replace(Fa,""),Ee.hasContent?Ee.data&&Ee.processData&&(Ee.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(Ee.data=Ee.data.replace(La,"+")):(Be=Ee.url.slice(O.length),Ee.data&&(Ee.processData||typeof Ee.data=="string")&&(O+=(or.test(O)?"&":"?")+Ee.data,delete Ee.data),Ee.cache===!1&&(O=O.replace(Na,"$1"),Be=(or.test(O)?"&":"?")+"_="+Fr.guid+++Be),Ee.url=O+Be),Ee.ifModified&&(x.lastModified[O]&&Wt.setRequestHeader("If-Modified-Since",x.lastModified[O]),x.etag[O]&&Wt.setRequestHeader("If-None-Match",x.etag[O])),(Ee.data&&Ee.hasContent&&Ee.contentType!==!1||m.contentType)&&Wt.setRequestHeader("Content-Type",Ee.contentType),Wt.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(Le in Ee.headers)Wt.setRequestHeader(Le,Ee.headers[Le]);if(Ee.beforeSend&&(Ee.beforeSend.call(Ze,Wt,Ee)===!1||oe))return Wt.abort();if(Br="abort",Rt.add(Ee.complete),Wt.done(Ee.success),Wt.fail(Ee.error),C=mi(Vt,Ee,m,Wt),!C)$r(-1,"No Transport");else{if(Wt.readyState=1,we&&ct.trigger("ajaxSend",[Wt,Ee]),oe)return Wt;Ee.async&&Ee.timeout>0&&(U=t.setTimeout(function(){Wt.abort("timeout")},Ee.timeout));try{oe=!1,C.send(dn,$r)}catch(zt){if(oe)throw zt;$r(-1,zt)}}function $r(zt,on,go,vo){var Tr,k,F,z,ne,Se=on;oe||(oe=!0,U&&t.clearTimeout(U),C=void 0,N=vo||"",Wt.readyState=zt>0?4:0,Tr=zt>=200&&zt<300||zt===304,go&&(z=ja(Ee,Wt,go)),!Tr&&x.inArray("script",Ee.dataTypes)>-1&&x.inArray("json",Ee.dataTypes)<0&&(Ee.converters["text script"]=function(){}),z=ia(Ee,z,Wt,Tr),Tr?(Ee.ifModified&&(ne=Wt.getResponseHeader("Last-Modified"),ne&&(x.lastModified[O]=ne),ne=Wt.getResponseHeader("etag"),ne&&(x.etag[O]=ne)),zt===204||Ee.type==="HEAD"?Se="nocontent":zt===304?Se="notmodified":(Se=z.state,k=z.data,F=z.error,Tr=!F)):(F=Se,(zt||!Se)&&(Se="error",zt<0&&(zt=0))),Wt.status=zt,Wt.statusText=(on||Se)+"",Tr?_t.resolveWith(Ze,[k,Se,Wt]):_t.rejectWith(Ze,[Wt,Se,F]),Wt.statusCode(Ln),Ln=void 0,we&&ct.trigger(Tr?"ajaxSuccess":"ajaxError",[Wt,Ee,Tr?k:F]),Rt.fireWith(Ze,[Wt,Se]),we&&(ct.trigger("ajaxComplete",[Wt,Ee]),--x.active||x.event.trigger("ajaxStop")))}return Wt},getJSON:function(f,m,C){return x.get(f,m,C,"json")},getScript:function(f,m){return x.get(f,void 0,m,"script")}}),x.each(["get","post"],function(f,m){x[m]=function(C,O,N,B){return I(O)&&(B=B||N,N=O,O=void 0),x.ajax(x.extend({url:C,type:m,dataType:B,data:O,success:N},x.isPlainObject(C)&&C))}}),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,C){return x.ajax({url:f,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(O){x.globalEval(O,m,C)}})},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 C=this;C.firstElementChild;)C=C.firstElementChild;return C}).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),C=m.contents();C.length?C.wrapAll(f):m.append(f)})},wrap:function(f){var m=I(f);return this.each(function(C){x(this).wrapAll(m?f.call(this,C):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 t.XMLHttpRequest}catch{}};var us={0:200,1223:204},yn=x.ajaxSettings.xhr();P.cors=!!yn&&"withCredentials"in yn,P.ajax=yn=!!yn,x.ajaxTransport(function(f){var m,C;if(P.cors||yn&&!f.crossDomain)return{send:function(O,N){var B,U=f.xhr();if(U.open(f.type,f.url,f.async,f.username,f.password),f.xhrFields)for(B in f.xhrFields)U[B]=f.xhrFields[B];f.mimeType&&U.overrideMimeType&&U.overrideMimeType(f.mimeType),!f.crossDomain&&!O["X-Requested-With"]&&(O["X-Requested-With"]="XMLHttpRequest");for(B in O)U.setRequestHeader(B,O[B]);m=function(le){return function(){m&&(m=C=U.onload=U.onerror=U.onabort=U.ontimeout=U.onreadystatechange=null,le==="abort"?U.abort():le==="error"?typeof U.status!="number"?N(0,"error"):N(U.status,U.statusText):N(us[U.status]||U.status,U.statusText,(U.responseType||"text")!=="text"||typeof U.responseText!="string"?{binary:U.response}:{text:U.responseText},U.getAllResponseHeaders()))}},U.onload=m(),C=U.onerror=U.ontimeout=m("error"),U.onabort!==void 0?U.onabort=C:U.onreadystatechange=function(){U.readyState===4&&t.setTimeout(function(){m&&C()})},m=m("abort");try{U.send(f.hasContent&&f.data||null)}catch(le){if(m)throw le}},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,C;return{send:function(O,N){m=x("<script>").attr(f.scriptAttrs||{}).prop({charset:f.scriptCharset,src:f.url}).on("load error",C=function(B){m.remove(),C=null,B&&N(B.type==="error"?404:200,B.type)}),R.head.appendChild(m[0])},abort:function(){C&&C()}}}});var Fo=[],yi=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var f=Fo.pop()||x.expando+"_"+Fr.guid++;return this[f]=!0,f}}),x.ajaxPrefilter("json jsonp",function(f,m,C){var O,N,B,U=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(U||f.dataTypes[0]==="jsonp")return O=f.jsonpCallback=I(f.jsonpCallback)?f.jsonpCallback():f.jsonpCallback,U?f[U]=f[U].replace(yi,"$1"+O):f.jsonp!==!1&&(f.url+=(or.test(f.url)?"&":"?")+f.jsonp+"="+O),f.converters["script json"]=function(){return B||x.error(O+" was not called"),B[0]},f.dataTypes[0]="json",N=t[O],t[O]=function(){B=arguments},C.always(function(){N===void 0?x(t).removeProp(O):t[O]=N,f[O]&&(f.jsonpCallback=m.jsonpCallback,Fo.push(O)),B&&I(N)&&N(B[0]),B=N=void 0}),"script"}),P.createHTMLDocument=function(){var f=R.implementation.createHTMLDocument("").body;return f.innerHTML="<form></form><form></form>",f.childNodes.length===2}(),x.parseHTML=function(f,m,C){if(typeof f!="string")return[];typeof m=="boolean"&&(C=m,m=!1);var O,N,B;return m||(P.createHTMLDocument?(m=R.implementation.createHTMLDocument(""),O=m.createElement("base"),O.href=R.location.href,m.head.appendChild(O)):m=R),N=Ve.exec(f),B=!C&&[],N?[m.createElement(N[1])]:(N=mn([f],m,B),B&&B.length&&x(B).remove(),x.merge([],N.childNodes))},x.fn.load=function(f,m,C){var O,N,B,U=this,le=f.indexOf(" ");return le>-1&&(O=bt(f.slice(le)),f=f.slice(0,le)),I(m)?(C=m,m=void 0):m&&typeof m=="object"&&(N="POST"),U.length>0&&x.ajax({url:f,type:N||"GET",dataType:"html",data:m}).done(function(oe){B=arguments,U.html(O?x("<div>").append(x.parseHTML(oe)).find(O):oe)}).always(C&&function(oe,we){U.each(function(){C.apply(this,B||[oe.responseText,we,oe])})}),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,C){var O,N,B,U,le,oe,we,Le=x.css(f,"position"),Be=x(f),Ee={};Le==="static"&&(f.style.position="relative"),le=Be.offset(),B=x.css(f,"top"),oe=x.css(f,"left"),we=(Le==="absolute"||Le==="fixed")&&(B+oe).indexOf("auto")>-1,we?(O=Be.position(),U=O.top,N=O.left):(U=parseFloat(B)||0,N=parseFloat(oe)||0),I(m)&&(m=m.call(f,C,x.extend({},le))),m.top!=null&&(Ee.top=m.top-le.top+U),m.left!=null&&(Ee.left=m.left-le.left+N),"using"in m?m.using.call(f,Ee):Be.css(Ee)}},x.fn.extend({offset:function(f){if(arguments.length)return f===void 0?this:this.each(function(N){x.offset.setOffset(this,f,N)});var m,C,O=this[0];if(O)return O.getClientRects().length?(m=O.getBoundingClientRect(),C=O.ownerDocument.defaultView,{top:m.top+C.pageYOffset,left:m.left+C.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var f,m,C,O=this[0],N={top:0,left:0};if(x.css(O,"position")==="fixed")m=O.getBoundingClientRect();else{for(m=this.offset(),C=O.ownerDocument,f=O.offsetParent||C.documentElement;f&&(f===C.body||f===C.documentElement)&&x.css(f,"position")==="static";)f=f.parentNode;f&&f!==O&&f.nodeType===1&&(N=x(f).offset(),N.top+=x.css(f,"borderTopWidth",!0),N.left+=x.css(f,"borderLeftWidth",!0))}return{top:m.top-N.top-x.css(O,"marginTop",!0),left:m.left-N.left-x.css(O,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var f=this.offsetParent;f&&x.css(f,"position")==="static";)f=f.offsetParent;return f||Pr})}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(f,m){var C=m==="pageYOffset";x.fn[f]=function(O){return _n(this,function(N,B,U){var le;if(L(N)?le=N:N.nodeType===9&&(le=N.defaultView),U===void 0)return le?le[m]:N[B];le?le.scrollTo(C?le.pageXOffset:U,C?U:le.pageYOffset):N[B]=U},f,O,arguments.length)}}),x.each(["top","left"],function(f,m){x.cssHooks[m]=zn(P.pixelPosition,function(C,O){if(O)return O=Ir(C,m),Di.test(O)?x(C).position()[m]+"px":O})}),x.each({Height:"height",Width:"width"},function(f,m){x.each({padding:"inner"+f,content:m,"":"outer"+f},function(C,O){x.fn[O]=function(N,B){var U=arguments.length&&(C||typeof N!="boolean"),le=C||(N===!0||B===!0?"margin":"border");return _n(this,function(oe,we,Le){var Be;return L(oe)?O.indexOf("outer")===0?oe["inner"+f]:oe.document.documentElement["client"+f]:oe.nodeType===9?(Be=oe.documentElement,Math.max(oe.body["scroll"+f],Be["scroll"+f],oe.body["offset"+f],Be["offset"+f],Be["client"+f])):Le===void 0?x.css(oe,we,le):x.style(oe,we,Le,le)},m,U?N:void 0,U)}})}),x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(f,m){x.fn[m]=function(C){return this.on(m,C)}}),x.fn.extend({bind:function(f,m,C){return this.on(f,null,m,C)},unbind:function(f,m){return this.off(f,null,m)},delegate:function(f,m,C,O){return this.on(m,f,C,O)},undelegate:function(f,m,C){return arguments.length===1?this.off(f,"**"):this.off(m,f||"**",C)},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(C,O){return arguments.length>0?this.on(m,null,C,O):this.trigger(m)}});var cs=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;x.proxy=function(f,m){var C,O,N;if(typeof m=="string"&&(C=f[m],m=f,f=C),!!I(f))return O=o.call(arguments,2),N=function(){return f.apply(m||this,O.concat(o.call(arguments)))},N.guid=f.guid=f.guid||x.guid++,N},x.holdReady=function(f){f?x.readyWait++:x.ready(!0)},x.isArray=Array.isArray,x.parseJSON=JSON.parse,x.nodeName=ue,x.isFunction=I,x.isWindow=L,x.camelCase=cn,x.type=te,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(cs,"$1")};var po=t.jQuery,er=t.$;return x.noConflict=function(f){return t.$===x&&(t.$=er),f&&t.jQuery===x&&(t.jQuery=po),x},typeof n>"u"&&(t.jQuery=t.$=x),x})}(_v)),_v.exports}var p6=AO();const g6=Mu(p6);var v6={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(e){(function(t,n){if(e.exports){var r=typeof window<"u"?window.jQuery:void 0;r||(r=AO(),r.fn||(r.fn={}));var i=typeof window<"u"&&typeof window.moment<"u"?window.moment:WI;e.exports=n(i,r)}else t.daterangepicker=n(t.moment,t.jQuery)})(Ti,function(t,n){var r=function(i,o,s){if(this.parentEl="body",this.element=n(i),this.startDate=t().startOf("day"),this.endDate=t().endOf("day"),this.minDate=!1,this.maxDate=!1,this.maxSpan=!1,this.autoApply=!1,this.singleDatePicker=!1,this.showDropdowns=!1,this.minYear=t().subtract(100,"year").format("YYYY"),this.maxYear=t().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:t.localeData().longDateFormat("L"),separator:" - ",applyLabel:"Apply",cancelLabel:"Cancel",weekLabel:"W",customRangeLabel:"Custom Range",daysOfWeek:t.weekdaysMin(),monthNames:t.monthsShort(),firstDay:t.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=t(o.startDate,this.locale.format)),typeof o.endDate=="string"&&(this.endDate=t(o.endDate,this.locale.format)),typeof o.minDate=="string"&&(this.minDate=t(o.minDate,this.locale.format)),typeof o.maxDate=="string"&&(this.maxDate=t(o.maxDate,this.locale.format)),typeof o.startDate=="object"&&(this.startDate=t(o.startDate)),typeof o.endDate=="object"&&(this.endDate=t(o.endDate)),typeof o.minDate=="object"&&(this.minDate=t(o.minDate)),typeof o.maxDate=="object"&&(this.maxDate=t(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 v,p,S;if(typeof o.startDate>"u"&&typeof o.endDate>"u"&&n(this.element).is(":text")){var T=n(this.element).val(),P=T.split(this.locale.separator);v=p=null,P.length==2?(v=t(P[0],this.locale.format),p=t(P[1],this.locale.format)):this.singleDatePicker&&T!==""&&(v=t(T,this.locale.format),p=t(T,this.locale.format)),v!==null&&p!==null&&(this.setStartDate(v),this.setEndDate(p))}if(typeof o.ranges=="object"){for(S in o.ranges){typeof o.ranges[S][0]=="string"?v=t(o.ranges[S][0],this.locale.format):v=t(o.ranges[S][0]),typeof o.ranges[S][1]=="string"?p=t(o.ranges[S][1],this.locale.format):p=t(o.ranges[S][1]),this.minDate&&v.isBefore(this.minDate)&&(v=this.minDate.clone());var I=this.maxDate;if(this.maxSpan&&I&&v.clone().add(this.maxSpan).isAfter(I)&&(I=v.clone().add(this.maxSpan)),I&&p.isAfter(I)&&(p=I.clone()),!(this.minDate&&p.isBefore(this.minDate,this.timepicker?"minute":"day")||I&&v.isAfter(I,this.timepicker?"minute":"day"))){var u=document.createElement("textarea");u.innerHTML=S;var c=u.value;this.ranges[c]=[v,p]}}var L="<ul>";for(S in this.ranges)L+='<li data-range-key="'+S+'">'+S+"</li>";this.showCustomRangeLabel&&(L+='<li data-range-key="'+this.locale.customRangeLabel+'">'+this.locale.customRangeLabel+"</li>"),L+="</ul>",this.container.find(".ranges").prepend(L)}typeof s=="function"&&(this.callback=s),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=t(i,this.locale.format)),typeof i=="object"&&(this.startDate=t(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=t(i,this.locale.format)),typeof i=="object"&&(this.endDate=t(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,s;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)),s=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)),s=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(s),this.rightCalendar.month.hour(i).minute(o).second(s)}this.renderCalendar("left"),this.renderCalendar("right"),this.container.find(".ranges li").removeClass("active"),this.endDate!=null&&this.calculateChosenLabel()},renderCalendar:function(i){var R=i=="left"?this.leftCalendar:this.rightCalendar,o=R.month.month(),s=R.month.year(),u=R.month.hour(),c=R.month.minute(),d=R.month.second(),v=t([s,o]).daysInMonth(),p=t([s,o,1]),S=t([s,o,v]),T=t(p).subtract(1,"month").month(),P=t(p).subtract(1,"month").year(),I=t([P,T]).daysInMonth(),L=p.day(),R=[];R.firstDay=p,R.lastDay=S;for(var H=0;H<6;H++)R[H]=[];var W=I-L+this.locale.firstDay+1;W>I&&(W-=7),L==this.locale.firstDay&&(W=I-6);for(var te=t([P,T,W,12,c,d]),J,de,H=0,J=0,de=0;H<42;H++,J++,te=t(te).add(24,"hour"))H>0&&J%7===0&&(J=0,de++),R[de][J]=te.clone().hour(u).minute(c).second(d),te.hour(12),this.minDate&&R[de][J].format("YYYY-MM-DD")==this.minDate.format("YYYY-MM-DD")&&R[de][J].isBefore(this.minDate)&&i=="left"&&(R[de][J]=this.minDate.clone()),this.maxDate&&R[de][J].format("YYYY-MM-DD")==this.maxDate.format("YYYY-MM-DD")&&R[de][J].isAfter(this.maxDate)&&i=="right"&&(R[de][J]=this.maxDate.clone());i=="left"?this.leftCalendar.calendar=R:this.rightCalendar.calendar=R;var x=i=="left"?this.minDate:this.startDate,ye=this.maxDate;i=="left"?this.startDate:this.endDate,this.locale.direction=="ltr";var ue='<table class="table-condensed">';ue+="<thead>",ue+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(ue+="<th></th>"),(!x||x.isBefore(R.firstDay))&&(!this.linkedCalendars||i=="left")?ue+='<th class="prev available"><span></span></th>':ue+="<th></th>";var Je=this.locale.monthNames[R[1][1].month()]+R[1][1].format(" YYYY");if(this.showDropdowns){for(var Ne=R[1][1].month(),$e=R[1][1].year(),Ye=ye&&ye.year()||this.maxYear,qe=x&&x.year()||this.minYear,pe=$e==qe,Oe=$e==Ye,je='<select class="monthselect">',Xe=0;Xe<12;Xe++)(!pe||x&&Xe>=x.month())&&(!Oe||ye&&Xe<=ye.month())?je+="<option value='"+Xe+"'"+(Xe===Ne?" selected='selected'":"")+">"+this.locale.monthNames[Xe]+"</option>":je+="<option value='"+Xe+"'"+(Xe===Ne?" selected='selected'":"")+" disabled='disabled'>"+this.locale.monthNames[Xe]+"</option>";je+="</select>";for(var at='<select class="yearselect">',Ce=qe;Ce<=Ye;Ce++)at+='<option value="'+Ce+'"'+(Ce===$e?' selected="selected"':"")+">"+Ce+"</option>";at+="</select>",Je=je+at}if(ue+='<th colspan="5" class="month">'+Je+"</th>",(!ye||ye.isAfter(R.lastDay))&&(!this.linkedCalendars||i=="right"||this.singleDatePicker)?ue+='<th class="next available"><span></span></th>':ue+="<th></th>",ue+="</tr>",ue+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(ue+='<th class="week">'+this.locale.weekLabel+"</th>"),n.each(this.locale.daysOfWeek,function(Ke,lt){ue+="<th>"+lt+"</th>"}),ue+="</tr>",ue+="</thead>",ue+="<tbody>",this.endDate==null&&this.maxSpan){var Pe=this.startDate.clone().add(this.maxSpan).endOf("day");(!ye||Pe.isBefore(ye))&&(ye=Pe)}for(var de=0;de<6;de++){ue+="<tr>",this.showWeekNumbers?ue+='<td class="week">'+R[de][0].week()+"</td>":this.showISOWeekNumbers&&(ue+='<td class="week">'+R[de][0].isoWeek()+"</td>");for(var J=0;J<7;J++){var Ve=[];R[de][J].isSame(new Date,"day")&&Ve.push("today"),R[de][J].isoWeekday()>5&&Ve.push("weekend"),R[de][J].month()!=R[1][1].month()&&Ve.push("off","ends"),this.minDate&&R[de][J].isBefore(this.minDate,"day")&&Ve.push("off","disabled"),ye&&R[de][J].isAfter(ye,"day")&&Ve.push("off","disabled"),this.isInvalidDate(R[de][J])&&Ve.push("off","disabled"),R[de][J].format("YYYY-MM-DD")==this.startDate.format("YYYY-MM-DD")&&Ve.push("active","start-date"),this.endDate!=null&&R[de][J].format("YYYY-MM-DD")==this.endDate.format("YYYY-MM-DD")&&Ve.push("active","end-date"),this.endDate!=null&&R[de][J]>this.startDate&&R[de][J]<this.endDate&&Ve.push("in-range");var ze=this.isCustomDate(R[de][J]);ze!==!1&&(typeof ze=="string"?Ve.push(ze):Array.prototype.push.apply(Ve,ze));for(var Re="",Fe=!1,H=0;H<Ve.length;H++)Re+=Ve[H]+" ",Ve[H]=="disabled"&&(Fe=!0);Fe||(Re+="available"),ue+='<td class="'+Re.replace(/^\s+|\s+$/g,"")+'" data-title="r'+de+"c"+J+'">'+R[de][J].date()+"</td>"}ue+="</tr>"}ue+="</tbody>",ue+="</table>",this.container.find(".drp-calendar."+i+" .calendar-table").html(ue)},renderTimePicker:function(i){if(!(i=="right"&&!this.endDate)){var o,s,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")s=this.startDate.clone(),u=this.minDate;else if(i=="right"){s=this.endDate.clone(),u=this.startDate;var d=this.container.find(".drp-calendar.right .calendar-time");if(d.html()!=""&&(s.hour(isNaN(s.hour())?d.find(".hourselect option:selected").val():s.hour()),s.minute(isNaN(s.minute())?d.find(".minuteselect option:selected").val():s.minute()),s.second(isNaN(s.second())?d.find(".secondselect option:selected").val():s.second()),!this.timePicker24Hour)){var v=d.find(".ampmselect option:selected").val();v==="PM"&&s.hour()<12&&s.hour(s.hour()+12),v==="AM"&&s.hour()===12&&s.hour(0)}s.isBefore(this.startDate)&&(s=this.startDate.clone()),c&&s.isAfter(c)&&(s=c.clone())}o='<select class="hourselect">';for(var p=this.timePicker24Hour?0:1,S=this.timePicker24Hour?23:12,T=p;T<=S;T++){var P=T;this.timePicker24Hour||(P=s.hour()>=12?T==12?12:T+12:T==12?0:T);var I=s.clone().hour(P),L=!1;u&&I.minute(59).isBefore(u)&&(L=!0),c&&I.minute(0).isAfter(c)&&(L=!0),P==s.hour()&&!L?o+='<option value="'+T+'" selected="selected">'+T+"</option>":L?o+='<option value="'+T+'" disabled="disabled" class="disabled">'+T+"</option>":o+='<option value="'+T+'">'+T+"</option>"}o+="</select> ",o+=': <select class="minuteselect">';for(var T=0;T<60;T+=this.timePickerIncrement){var R=T<10?"0"+T:T,I=s.clone().minute(T),L=!1;u&&I.second(59).isBefore(u)&&(L=!0),c&&I.second(0).isAfter(c)&&(L=!0),s.minute()==T&&!L?o+='<option value="'+T+'" selected="selected">'+R+"</option>":L?o+='<option value="'+T+'" disabled="disabled" class="disabled">'+R+"</option>":o+='<option value="'+T+'">'+R+"</option>"}if(o+="</select> ",this.timePickerSeconds){o+=': <select class="secondselect">';for(var T=0;T<60;T++){var R=T<10?"0"+T:T,I=s.clone().second(T),L=!1;u&&I.isBefore(u)&&(L=!0),c&&I.isAfter(c)&&(L=!0),s.second()==T&&!L?o+='<option value="'+T+'" selected="selected">'+R+"</option>":L?o+='<option value="'+T+'" disabled="disabled" class="disabled">'+R+"</option>":o+='<option value="'+T+'">'+R+"</option>"}o+="</select> "}if(!this.timePicker24Hour){o+='<select class="ampmselect">';var H="",W="";u&&s.clone().hour(12).minute(0).second(0).isBefore(u)&&(H=' disabled="disabled" class="disabled"'),c&&s.clone().hour(0).minute(0).second(0).isAfter(c)&&(W=' disabled="disabled" class="disabled"'),s.hour()>=12?o+='<option value="AM"'+H+'>AM</option><option value="PM" selected="selected"'+W+">PM</option>":o+='<option value="AM" selected="selected"'+H+'>AM</option><option value="PM"'+W+">PM</option>",o+="</select>"}this.container.find(".drp-calendar."+i+" .calendar-time").html(o)}},updateFormInputs:function(){this.singleDatePicker||this.endDate&&(this.startDate.isBefore(this.endDate)||this.startDate.isSame(this.endDate))?this.container.find("button.applyBtn").prop("disabled",!1):this.container.find("button.applyBtn").prop("disabled",!0)},move:function(){var i={top:0,left:0},o,s=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),s){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,s="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",s=="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 v=this.element.offset().left-i.left+this.element.outerWidth()/2-c/2;v<0?this.container.css({top:o,right:"auto",left:9}):v+c>n(window).width()?this.container.css({top:o,left:"auto",right:0}):this.container.css({top:o,left:v,right:"auto"})}else{var v=this.element.offset().left-i.left;v+c>n(window).width()?this.container.css({top:o,left:"auto",right:0}):this.container.css({top:o,left:v,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 s=this.ranges[o];this.startDate=s[0],this.endDate=s[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"),s=o.substr(1,1),u=o.substr(3,1),c=n(i.target).parents(".drp-calendar"),d=c.hasClass("left")?this.leftCalendar.calendar[s][u]:this.rightCalendar.calendar[s][u],v=this.leftCalendar,p=this.rightCalendar,S=this.startDate;this.endDate||this.container.find(".drp-calendar tbody td").each(function(T,P){if(!n(P).hasClass("week")){var I=n(P).attr("data-title"),L=I.substr(1,1),R=I.substr(3,1),H=n(P).parents(".drp-calendar"),W=H.hasClass("left")?v.calendar[L][R]:p.calendar[L][R];W.isAfter(S)&&W.isBefore(d)||W.isSame(d,"day")?n(P).addClass("in-range"):n(P).removeClass("in-range")}})}},clickDate:function(i){if(n(i.target).hasClass("available")){var o=n(i.target).attr("data-title"),s=o.substr(1,1),u=o.substr(3,1),c=n(i.target).parents(".drp-calendar"),d=c.hasClass("left")?this.leftCalendar.calendar[s][u]:this.rightCalendar.calendar[s][u];if(this.endDate||d.isBefore(this.startDate,"day")){if(this.timePicker){var v=parseInt(this.container.find(".left .hourselect").val(),10);if(!this.timePicker24Hour){var p=this.container.find(".left .ampmselect").val();p==="PM"&&v<12&&(v+=12),p==="AM"&&v===12&&(v=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 T=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0;d=d.clone().hour(v).minute(S).second(T)}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 v=parseInt(this.container.find(".right .hourselect").val(),10);if(!this.timePicker24Hour){var p=this.container.find(".right .ampmselect").val();p==="PM"&&v<12&&(v+=12),p==="AM"&&v===12&&(v=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 T=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0;d=d.clone().hour(v).minute(S).second(T)}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 s 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[s][0].format(u)&&this.endDate.format(u)==this.ranges[s][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[s][0].format("YYYY-MM-DD")&&this.endDate.format("YYYY-MM-DD")==this.ranges[s][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"),s=o?"left":"right",u=this.container.find(".drp-calendar."+s),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"),s=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 v=o.find(".ampmselect").val();v==="PM"&&u<12&&(u+=12),v==="AM"&&u===12&&(u=0)}if(s){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,s=null;i.length===2&&(o=t(i[0],this.locale.format),s=t(i[1],this.locale.format)),(this.singleDatePicker||o===null||s===null)&&(o=t(this.element.val(),this.locale.format),s=o),!(!o.isValid()||!s.isValid())&&(this.setStartDate(o),this.setEndDate(s),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 s=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,s,o))}),this},r})})(v6);var Nm=function(e,t){return Nm=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])},Nm(e,t)};function m6(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Nm(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var y6=function(e){m6(t,e);function t(n){var r=e.call(this,n)||this;return r.ref=null,r.$picker=null,r}return t.prototype.componentDidMount=function(){var n=this;this.$picker=g6(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))})},t.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()},t.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)},t.prototype.makeEventHandler=function(n){var r=this,i=this.props.onEvent;return function(o,s){typeof i=="function"&&i(o,s),typeof r.props[n]=="function"&&r.props[n](o,s)}},t.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)},t.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)},t.prototype.render=function(){var n=this,r=Tn.Children.only(this.props.children);return Tn.cloneElement(r,{ref:function(i){return n.ref=i}})},t}(Tn.Component);ss.styled(e=>We.jsx(ss.Switch,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...e}))(({theme:e})=>({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:Ci.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:e.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 MO=function(e){const t=[];let n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=i&63|128):(i&64512)===55296&&r+1<e.length&&(e.charCodeAt(r+1)&64512)===56320?(i=65536+((i&1023)<<10)+(e.charCodeAt(++r)&1023),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=i&63|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=i&63|128)}return t},b6=function(e){const t=[];let n=0,r=0;for(;n<e.length;){const i=e[n++];if(i<128)t[r++]=String.fromCharCode(i);else if(i>191&&i<224){const o=e[n++];t[r++]=String.fromCharCode((i&31)<<6|o&63)}else if(i>239&&i<365){const o=e[n++],s=e[n++],u=e[n++],c=((i&7)<<18|(o&63)<<12|(s&63)<<6|u&63)-65536;t[r++]=String.fromCharCode(55296+(c>>10)),t[r++]=String.fromCharCode(56320+(c&1023))}else{const o=e[n++],s=e[n++];t[r++]=String.fromCharCode((i&15)<<12|(o&63)<<6|s&63)}}return t.join("")},LO={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(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let i=0;i<e.length;i+=3){const o=e[i],s=i+1<e.length,u=s?e[i+1]:0,c=i+2<e.length,d=c?e[i+2]:0,v=o>>2,p=(o&3)<<4|u>>4;let S=(u&15)<<2|d>>6,T=d&63;c||(T=64,s||(S=64)),r.push(n[v],n[p],n[S],n[T])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(MO(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):b6(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let i=0;i<e.length;){const o=n[e.charAt(i++)],u=i<e.length?n[e.charAt(i)]:0;++i;const d=i<e.length?n[e.charAt(i)]:64;++i;const p=i<e.length?n[e.charAt(i)]:64;if(++i,o==null||u==null||d==null||p==null)throw new w6;const S=o<<2|u>>4;if(r.push(S),d!==64){const T=u<<4&240|d>>2;if(r.push(T),p!==64){const P=d<<6&192|p;r.push(P)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class w6 extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const x6=function(e){const t=MO(e);return LO.encodeByteArray(t,!0)},FO=function(e){return x6(e).replace(/\./g,"")},S6=function(e){try{return LO.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}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 T6(){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 C6=()=>T6().__FIREBASE_DEFAULTS__,E6=()=>{if(typeof process>"u"||typeof process.env>"u")return;const e=process.env.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)},k6=()=>{if(typeof document>"u")return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const t=e&&S6(e[1]);return t&&JSON.parse(t)},O6=()=>{try{return C6()||E6()||k6()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}},NO=()=>{var e;return(e=O6())===null||e===void 0?void 0:e.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 D6{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n})}wrapCallback(t){return(n,r)=>{n?this.reject(n):this.resolve(r),typeof t=="function"&&(this.promise.catch(()=>{}),t.length===1?t(n):t(n,r))}}}function jO(){try{return typeof indexedDB=="object"}catch{return!1}}function BO(){return new Promise((e,t)=>{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),e(!0)},i.onupgradeneeded=()=>{n=!1},i.onerror=()=>{var o;t(((o=i.error)===null||o===void 0?void 0:o.message)||"")}}catch(n){t(n)}})}function _6(){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 P6="FirebaseError";class $f extends Error{constructor(t,n,r){super(n),this.code=t,this.customData=r,this.name=P6,Object.setPrototypeOf(this,$f.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,rg.prototype.create)}}class rg{constructor(t,n,r){this.service=t,this.serviceName=n,this.errors=r}create(t,...n){const r=n[0]||{},i=`${this.service}/${t}`,o=this.errors[t],s=o?R6(o,r):"Error",u=`${this.serviceName}: ${s} (${i}).`;return new $f(i,u,r)}}function R6(e,t){return e.replace(I6,(n,r)=>{const i=t[r];return i!=null?String(i):`<${r}?>`})}const I6=/\{\$([^}]+)}/g;function jm(e,t){if(e===t)return!0;const n=Object.keys(e),r=Object.keys(t);for(const i of n){if(!r.includes(i))return!1;const o=e[i],s=t[i];if(p1(o)&&p1(s)){if(!jm(o,s))return!1}else if(o!==s)return!1}for(const i of r)if(!n.includes(i))return!1;return!0}function p1(e){return e!==null&&typeof e=="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 nb(e){return e&&e._delegate?e._delegate:e}class Au{constructor(t,n,r){this.name=t,this.instanceFactory=n,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(t){return this.instantiationMode=t,this}setMultipleInstances(t){return this.multipleInstances=t,this}setServiceProps(t){return this.serviceProps=t,this}setInstanceCreatedCallback(t){return this.onInstanceCreated=t,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 A6{constructor(t,n){this.name=t,this.container=n,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(t){const n=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(n)){const r=new D6;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(t){var n;const r=this.normalizeInstanceIdentifier(t==null?void 0:t.identifier),i=(n=t==null?void 0:t.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(t){if(t.name!==this.name)throw Error(`Mismatching Component ${t.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=t,!!this.shouldAutoInitialize()){if(L6(t))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(t=Ec){this.instancesDeferred.delete(t),this.instancesOptions.delete(t),this.instances.delete(t)}async delete(){const t=Array.from(this.instances.values());await Promise.all([...t.filter(n=>"INTERNAL"in n).map(n=>n.INTERNAL.delete()),...t.filter(n=>"_delete"in n).map(n=>n._delete())])}isComponentSet(){return this.component!=null}isInitialized(t=Ec){return this.instances.has(t)}getOptions(t=Ec){return this.instancesOptions.get(t)||{}}initialize(t={}){const{options:n={}}=t,r=this.normalizeInstanceIdentifier(t.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,s]of this.instancesDeferred.entries()){const u=this.normalizeInstanceIdentifier(o);r===u&&s.resolve(i)}return i}onInit(t,n){var r;const i=this.normalizeInstanceIdentifier(n),o=(r=this.onInitCallbacks.get(i))!==null&&r!==void 0?r:new Set;o.add(t),this.onInitCallbacks.set(i,o);const s=this.instances.get(i);return s&&t(s,i),()=>{o.delete(t)}}invokeOnInitCallbacks(t,n){const r=this.onInitCallbacks.get(n);if(r)for(const i of r)try{i(t,n)}catch{}}getOrInitializeService({instanceIdentifier:t,options:n={}}){let r=this.instances.get(t);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:M6(t),options:n}),this.instances.set(t,r),this.instancesOptions.set(t,n),this.invokeOnInitCallbacks(r,t),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,t,r)}catch{}return r||null}normalizeInstanceIdentifier(t=Ec){return this.component?this.component.multipleInstances?t:Ec:t}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function M6(e){return e===Ec?void 0:e}function L6(e){return e.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 F6{constructor(t){this.name=t,this.providers=new Map}addComponent(t){const n=this.getProvider(t.name);if(n.isComponentSet())throw new Error(`Component ${t.name} has already been registered with ${this.name}`);n.setComponent(t)}addOrOverwriteComponent(t){this.getProvider(t.name).isComponentSet()&&this.providers.delete(t.name),this.addComponent(t)}getProvider(t){if(this.providers.has(t))return this.providers.get(t);const n=new A6(t,this);return this.providers.set(t,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 Hn;(function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"})(Hn||(Hn={}));const N6={debug:Hn.DEBUG,verbose:Hn.VERBOSE,info:Hn.INFO,warn:Hn.WARN,error:Hn.ERROR,silent:Hn.SILENT},j6=Hn.INFO,B6={[Hn.DEBUG]:"log",[Hn.VERBOSE]:"log",[Hn.INFO]:"info",[Hn.WARN]:"warn",[Hn.ERROR]:"error"},$6=(e,t,...n)=>{if(t<e.logLevel)return;const r=new Date().toISOString(),i=B6[t];if(i)console[i](`[${r}] ${e.name}:`,...n);else throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`)};class V6{constructor(t){this.name=t,this._logLevel=j6,this._logHandler=$6,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(t){if(!(t in Hn))throw new TypeError(`Invalid value "${t}" assigned to \`logLevel\``);this._logLevel=t}setLogLevel(t){this._logLevel=typeof t=="string"?N6[t]:t}get logHandler(){return this._logHandler}set logHandler(t){if(typeof t!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=t}get userLogHandler(){return this._userLogHandler}set userLogHandler(t){this._userLogHandler=t}debug(...t){this._userLogHandler&&this._userLogHandler(this,Hn.DEBUG,...t),this._logHandler(this,Hn.DEBUG,...t)}log(...t){this._userLogHandler&&this._userLogHandler(this,Hn.VERBOSE,...t),this._logHandler(this,Hn.VERBOSE,...t)}info(...t){this._userLogHandler&&this._userLogHandler(this,Hn.INFO,...t),this._logHandler(this,Hn.INFO,...t)}warn(...t){this._userLogHandler&&this._userLogHandler(this,Hn.WARN,...t),this._logHandler(this,Hn.WARN,...t)}error(...t){this._userLogHandler&&this._userLogHandler(this,Hn.ERROR,...t),this._logHandler(this,Hn.ERROR,...t)}}const H6=(e,t)=>t.some(n=>e instanceof n);let g1,v1;function U6(){return g1||(g1=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function W6(){return v1||(v1=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const $O=new WeakMap,Bm=new WeakMap,VO=new WeakMap,Pv=new WeakMap,rb=new WeakMap;function z6(e){const t=new Promise((n,r)=>{const i=()=>{e.removeEventListener("success",o),e.removeEventListener("error",s)},o=()=>{n(Al(e.result)),i()},s=()=>{r(e.error),i()};e.addEventListener("success",o),e.addEventListener("error",s)});return t.then(n=>{n instanceof IDBCursor&&$O.set(n,e)}).catch(()=>{}),rb.set(t,e),t}function Y6(e){if(Bm.has(e))return;const t=new Promise((n,r)=>{const i=()=>{e.removeEventListener("complete",o),e.removeEventListener("error",s),e.removeEventListener("abort",s)},o=()=>{n(),i()},s=()=>{r(e.error||new DOMException("AbortError","AbortError")),i()};e.addEventListener("complete",o),e.addEventListener("error",s),e.addEventListener("abort",s)});Bm.set(e,t)}let $m={get(e,t,n){if(e instanceof IDBTransaction){if(t==="done")return Bm.get(e);if(t==="objectStoreNames")return e.objectStoreNames||VO.get(e);if(t==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Al(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function G6(e){$m=e($m)}function q6(e){return e===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(t,...n){const r=e.call(Rv(this),t,...n);return VO.set(r,t.sort?t.sort():[t]),Al(r)}:W6().includes(e)?function(...t){return e.apply(Rv(this),t),Al($O.get(this))}:function(...t){return Al(e.apply(Rv(this),t))}}function X6(e){return typeof e=="function"?q6(e):(e instanceof IDBTransaction&&Y6(e),H6(e,U6())?new Proxy(e,$m):e)}function Al(e){if(e instanceof IDBRequest)return z6(e);if(Pv.has(e))return Pv.get(e);const t=X6(e);return t!==e&&(Pv.set(e,t),rb.set(t,e)),t}const Rv=e=>rb.get(e);function ig(e,t,{blocked:n,upgrade:r,blocking:i,terminated:o}={}){const s=indexedDB.open(e,t),u=Al(s);return r&&s.addEventListener("upgradeneeded",c=>{r(Al(s.result),c.oldVersion,c.newVersion,Al(s.transaction),c)}),n&&s.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 Iv(e,{blocked:t}={}){const n=indexedDB.deleteDatabase(e);return t&&n.addEventListener("blocked",r=>t(r.oldVersion,r)),Al(n).then(()=>{})}const K6=["get","getKey","getAll","getAllKeys","count"],Z6=["put","add","delete","clear"],Av=new Map;function m1(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(Av.get(t))return Av.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,i=Z6.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||K6.includes(n)))return;const o=async function(s,...u){const c=this.transaction(s,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 Av.set(t,o),o}G6(e=>({...e,get:(t,n,r)=>m1(t,n)||e.get(t,n,r),has:(t,n)=>!!m1(t,n)||e.has(t,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 J6{constructor(t){this.container=t}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(e){const t=e.getComponent();return(t==null?void 0:t.type)==="VERSION"}const Vm="@firebase/app",y1="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 jl=new V6("@firebase/app"),e8="@firebase/app-compat",t8="@firebase/analytics-compat",n8="@firebase/analytics",r8="@firebase/app-check-compat",i8="@firebase/app-check",o8="@firebase/auth",a8="@firebase/auth-compat",s8="@firebase/database",l8="@firebase/data-connect",u8="@firebase/database-compat",c8="@firebase/functions",f8="@firebase/functions-compat",d8="@firebase/installations",h8="@firebase/installations-compat",p8="@firebase/messaging",g8="@firebase/messaging-compat",v8="@firebase/performance",m8="@firebase/performance-compat",y8="@firebase/remote-config",b8="@firebase/remote-config-compat",w8="@firebase/storage",x8="@firebase/storage-compat",S8="@firebase/firestore",T8="@firebase/vertexai-preview",C8="@firebase/firestore-compat",E8="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 Hm="[DEFAULT]",k8={[Vm]:"fire-core",[e8]:"fire-core-compat",[n8]:"fire-analytics",[t8]:"fire-analytics-compat",[i8]:"fire-app-check",[r8]:"fire-app-check-compat",[o8]:"fire-auth",[a8]:"fire-auth-compat",[s8]:"fire-rtdb",[l8]:"fire-data-connect",[u8]:"fire-rtdb-compat",[c8]:"fire-fn",[f8]:"fire-fn-compat",[d8]:"fire-iid",[h8]:"fire-iid-compat",[p8]:"fire-fcm",[g8]:"fire-fcm-compat",[v8]:"fire-perf",[m8]:"fire-perf-compat",[y8]:"fire-rc",[b8]:"fire-rc-compat",[w8]:"fire-gcs",[x8]:"fire-gcs-compat",[S8]:"fire-fst",[C8]:"fire-fst-compat",[T8]:"fire-vertex","fire-js":"fire-js",[E8]:"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 kp=new Map,O8=new Map,Um=new Map;function b1(e,t){try{e.container.addComponent(t)}catch(n){jl.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function Lc(e){const t=e.name;if(Um.has(t))return jl.debug(`There were multiple attempts to register component ${t}.`),!1;Um.set(t,e);for(const n of kp.values())b1(n,e);for(const n of O8.values())b1(n,e);return!0}function ib(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}/**
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 D8={"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."},Ou=new rg("app","Firebase",D8);/**
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 _8{constructor(t,n,r){this._isDeleted=!1,this._options=Object.assign({},t),this._config=Object.assign({},n),this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new Au("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(t){this.checkDestroyed(),this._automaticDataCollectionEnabled=t}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(t){this._isDeleted=t}checkDestroyed(){if(this.isDeleted)throw Ou.create("app-deleted",{appName:this._name})}}function HO(e,t={}){let n=e;typeof t!="object"&&(t={name:t});const r=Object.assign({name:Hm,automaticDataCollectionEnabled:!1},t),i=r.name;if(typeof i!="string"||!i)throw Ou.create("bad-app-name",{appName:String(i)});if(n||(n=NO()),!n)throw Ou.create("no-options");const o=kp.get(i);if(o){if(jm(n,o.options)&&jm(r,o.config))return o;throw Ou.create("duplicate-app",{appName:i})}const s=new F6(i);for(const c of Um.values())s.addComponent(c);const u=new _8(n,r,s);return kp.set(i,u),u}function P8(e=Hm){const t=kp.get(e);if(!t&&e===Hm&&NO())return HO();if(!t)throw Ou.create("no-app",{appName:e});return t}function Du(e,t,n){var r;let i=(r=k8[e])!==null&&r!==void 0?r:e;n&&(i+=`-${n}`);const o=i.match(/\s|\//),s=t.match(/\s|\//);if(o||s){const u=[`Unable to register library "${i}" with version "${t}":`];o&&u.push(`library name "${i}" contains illegal characters (whitespace or "/")`),o&&s&&u.push("and"),s&&u.push(`version name "${t}" contains illegal characters (whitespace or "/")`),jl.warn(u.join(" "));return}Lc(new Au(`${i}-version`,()=>({library:i,version:t}),"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 R8="firebase-heartbeat-database",I8=1,$d="firebase-heartbeat-store";let Mv=null;function UO(){return Mv||(Mv=ig(R8,I8,{upgrade:(e,t)=>{switch(t){case 0:try{e.createObjectStore($d)}catch(n){console.warn(n)}}}}).catch(e=>{throw Ou.create("idb-open",{originalErrorMessage:e.message})})),Mv}async function A8(e){try{const n=(await UO()).transaction($d),r=await n.objectStore($d).get(WO(e));return await n.done,r}catch(t){if(t instanceof $f)jl.warn(t.message);else{const n=Ou.create("idb-get",{originalErrorMessage:t==null?void 0:t.message});jl.warn(n.message)}}}async function w1(e,t){try{const r=(await UO()).transaction($d,"readwrite");await r.objectStore($d).put(t,WO(e)),await r.done}catch(n){if(n instanceof $f)jl.warn(n.message);else{const r=Ou.create("idb-set",{originalErrorMessage:n==null?void 0:n.message});jl.warn(r.message)}}}function WO(e){return`${e.name}!${e.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 M8=1024,L8=30*24*60*60*1e3;class F8{constructor(t){this.container=t,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new j8(n),this._heartbeatsCachePromise=this._storage.read().then(r=>(this._heartbeatsCache=r,r))}async triggerHeartbeat(){var t,n;try{const i=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),o=x1();return((t=this._heartbeatsCache)===null||t===void 0?void 0:t.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(s=>s.date===o)?void 0:(this._heartbeatsCache.heartbeats.push({date:o,agent:i}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(s=>{const u=new Date(s.date).valueOf();return Date.now()-u<=L8}),this._storage.overwrite(this._heartbeatsCache))}catch(r){jl.warn(r)}}async getHeartbeatsHeader(){var t;try{if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,((t=this._heartbeatsCache)===null||t===void 0?void 0:t.heartbeats)==null||this._heartbeatsCache.heartbeats.length===0)return"";const n=x1(),{heartbeatsToSend:r,unsentEntries:i}=N8(this._heartbeatsCache.heartbeats),o=FO(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 jl.warn(n),""}}}function x1(){return new Date().toISOString().substring(0,10)}function N8(e,t=M8){const n=[];let r=e.slice();for(const i of e){const o=n.find(s=>s.agent===i.agent);if(o){if(o.dates.push(i.date),S1(n)>t){o.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),S1(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}class j8{constructor(t){this.app=t,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return jO()?BO().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const n=await A8(this.app);return n!=null&&n.heartbeats?n:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(t){var n;if(await this._canUseIndexedDBPromise){const i=await this.read();return w1(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&&n!==void 0?n:i.lastSentHeartbeatDate,heartbeats:t.heartbeats})}else return}async add(t){var n;if(await this._canUseIndexedDBPromise){const i=await this.read();return w1(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&&n!==void 0?n:i.lastSentHeartbeatDate,heartbeats:[...i.heartbeats,...t.heartbeats]})}else return}}function S1(e){return FO(JSON.stringify({version:2,heartbeats:e})).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 B8(e){Lc(new Au("platform-logger",t=>new J6(t),"PRIVATE")),Lc(new Au("heartbeat",t=>new F8(t),"PRIVATE")),Du(Vm,y1,e),Du(Vm,y1,"esm2017"),Du("fire-js","")}B8("");var $8="firebase",V8="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
+ */Du($8,V8,"app");const zO="@firebase/installations",ob="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 YO=1e4,GO=`w:${ob}`,qO="FIS_v2",H8="https://firebaseinstallations.googleapis.com/v1",U8=60*60*1e3,W8="installations",z8="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 Y8={"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."},Fc=new rg(W8,z8,Y8);function XO(e){return e instanceof $f&&e.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 KO({projectId:e}){return`${H8}/projects/${e}/installations`}function ZO(e){return{token:e.token,requestStatus:2,expiresIn:q8(e.expiresIn),creationTime:Date.now()}}async function JO(e,t){const r=(await t.json()).error;return Fc.create("request-failed",{requestName:e,serverCode:r.code,serverMessage:r.message,serverStatus:r.status})}function QO({apiKey:e}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}function G8(e,{refreshToken:t}){const n=QO(e);return n.append("Authorization",X8(t)),n}async function eD(e){const t=await e();return t.status>=500&&t.status<600?e():t}function q8(e){return Number(e.replace("s","000"))}function X8(e){return`${qO} ${e}`}/**
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 K8({appConfig:e,heartbeatServiceProvider:t},{fid:n}){const r=KO(e),i=QO(e),o=t.getImmediate({optional:!0});if(o){const d=await o.getHeartbeatsHeader();d&&i.append("x-firebase-client",d)}const s={fid:n,authVersion:qO,appId:e.appId,sdkVersion:GO},u={method:"POST",headers:i,body:JSON.stringify(s)},c=await eD(()=>fetch(r,u));if(c.ok){const d=await c.json();return{fid:d.fid||n,registrationStatus:2,refreshToken:d.refreshToken,authToken:ZO(d.authToken)}}else throw await JO("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 tD(e){return new Promise(t=>{setTimeout(t,e)})}/**
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 Z8(e){return btoa(String.fromCharCode(...e)).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 J8=/^[cdef][\w-]{21}$/,Wm="";function Q8(){try{const e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;const n=e9(e);return J8.test(n)?n:Wm}catch{return Wm}}function e9(e){return Z8(e).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 og(e){return`${e.appName}!${e.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 nD=new Map;function rD(e,t){const n=og(e);iD(n,t),t9(n,t)}function iD(e,t){const n=nD.get(e);if(n)for(const r of n)r(t)}function t9(e,t){const n=n9();n&&n.postMessage({key:e,fid:t}),r9()}let Dc=null;function n9(){return!Dc&&"BroadcastChannel"in self&&(Dc=new BroadcastChannel("[Firebase] FID Change"),Dc.onmessage=e=>{iD(e.data.key,e.data.fid)}),Dc}function r9(){nD.size===0&&Dc&&(Dc.close(),Dc=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 i9="firebase-installations-database",o9=1,Nc="firebase-installations-store";let Lv=null;function ab(){return Lv||(Lv=ig(i9,o9,{upgrade:(e,t)=>{switch(t){case 0:e.createObjectStore(Nc)}}})),Lv}async function Op(e,t){const n=og(e),i=(await ab()).transaction(Nc,"readwrite"),o=i.objectStore(Nc),s=await o.get(n);return await o.put(t,n),await i.done,(!s||s.fid!==t.fid)&&rD(e,t.fid),t}async function oD(e){const t=og(e),r=(await ab()).transaction(Nc,"readwrite");await r.objectStore(Nc).delete(t),await r.done}async function ag(e,t){const n=og(e),i=(await ab()).transaction(Nc,"readwrite"),o=i.objectStore(Nc),s=await o.get(n),u=t(s);return u===void 0?await o.delete(n):await o.put(u,n),await i.done,u&&(!s||s.fid!==u.fid)&&rD(e,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 sb(e){let t;const n=await ag(e.appConfig,r=>{const i=a9(r),o=s9(e,i);return t=o.registrationPromise,o.installationEntry});return n.fid===Wm?{installationEntry:await t}:{installationEntry:n,registrationPromise:t}}function a9(e){const t=e||{fid:Q8(),registrationStatus:0};return aD(t)}function s9(e,t){if(t.registrationStatus===0){if(!navigator.onLine){const i=Promise.reject(Fc.create("app-offline"));return{installationEntry:t,registrationPromise:i}}const n={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},r=l9(e,n);return{installationEntry:n,registrationPromise:r}}else return t.registrationStatus===1?{installationEntry:t,registrationPromise:u9(e)}:{installationEntry:t}}async function l9(e,t){try{const n=await K8(e,t);return Op(e.appConfig,n)}catch(n){throw XO(n)&&n.customData.serverCode===409?await oD(e.appConfig):await Op(e.appConfig,{fid:t.fid,registrationStatus:0}),n}}async function u9(e){let t=await T1(e.appConfig);for(;t.registrationStatus===1;)await tD(100),t=await T1(e.appConfig);if(t.registrationStatus===0){const{installationEntry:n,registrationPromise:r}=await sb(e);return r||n}return t}function T1(e){return ag(e,t=>{if(!t)throw Fc.create("installation-not-found");return aD(t)})}function aD(e){return c9(e)?{fid:e.fid,registrationStatus:0}:e}function c9(e){return e.registrationStatus===1&&e.registrationTime+YO<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 f9({appConfig:e,heartbeatServiceProvider:t},n){const r=d9(e,n),i=G8(e,n),o=t.getImmediate({optional:!0});if(o){const d=await o.getHeartbeatsHeader();d&&i.append("x-firebase-client",d)}const s={installation:{sdkVersion:GO,appId:e.appId}},u={method:"POST",headers:i,body:JSON.stringify(s)},c=await eD(()=>fetch(r,u));if(c.ok){const d=await c.json();return ZO(d)}else throw await JO("Generate Auth Token",c)}function d9(e,{fid:t}){return`${KO(e)}/${t}/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 lb(e,t=!1){let n;const r=await ag(e.appConfig,o=>{if(!sD(o))throw Fc.create("not-registered");const s=o.authToken;if(!t&&g9(s))return o;if(s.requestStatus===1)return n=h9(e,t),o;{if(!navigator.onLine)throw Fc.create("app-offline");const u=m9(o);return n=p9(e,u),u}});return n?await n:r.authToken}async function h9(e,t){let n=await C1(e.appConfig);for(;n.authToken.requestStatus===1;)await tD(100),n=await C1(e.appConfig);const r=n.authToken;return r.requestStatus===0?lb(e,t):r}function C1(e){return ag(e,t=>{if(!sD(t))throw Fc.create("not-registered");const n=t.authToken;return y9(n)?Object.assign(Object.assign({},t),{authToken:{requestStatus:0}}):t})}async function p9(e,t){try{const n=await f9(e,t),r=Object.assign(Object.assign({},t),{authToken:n});return await Op(e.appConfig,r),n}catch(n){if(XO(n)&&(n.customData.serverCode===401||n.customData.serverCode===404))await oD(e.appConfig);else{const r=Object.assign(Object.assign({},t),{authToken:{requestStatus:0}});await Op(e.appConfig,r)}throw n}}function sD(e){return e!==void 0&&e.registrationStatus===2}function g9(e){return e.requestStatus===2&&!v9(e)}function v9(e){const t=Date.now();return t<e.creationTime||e.creationTime+e.expiresIn<t+U8}function m9(e){const t={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},e),{authToken:t})}function y9(e){return e.requestStatus===1&&e.requestTime+YO<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 b9(e){const t=e,{installationEntry:n,registrationPromise:r}=await sb(t);return r?r.catch(console.error):lb(t).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 w9(e,t=!1){const n=e;return await x9(n),(await lb(n,t)).token}async function x9(e){const{registrationPromise:t}=await sb(e);t&&await t}/**
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 S9(e){if(!e||!e.options)throw Fv("App Configuration");if(!e.name)throw Fv("App Name");const t=["projectId","apiKey","appId"];for(const n of t)if(!e.options[n])throw Fv(n);return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}function Fv(e){return Fc.create("missing-app-config-values",{valueName:e})}/**
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 lD="installations",T9="installations-internal",C9=e=>{const t=e.getProvider("app").getImmediate(),n=S9(t),r=ib(t,"heartbeat");return{app:t,appConfig:n,heartbeatServiceProvider:r,_delete:()=>Promise.resolve()}},E9=e=>{const t=e.getProvider("app").getImmediate(),n=ib(t,lD).getImmediate();return{getId:()=>b9(n),getToken:i=>w9(n,i)}};function k9(){Lc(new Au(lD,C9,"PUBLIC")),Lc(new Au(T9,E9,"PRIVATE"))}k9();Du(zO,ob);Du(zO,ob,"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 O9="/firebase-messaging-sw.js",D9="/firebase-cloud-messaging-push-scope",uD="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",_9="https://fcmregistrations.googleapis.com/v1",cD="google.c.a.c_id",P9="google.c.a.c_l",R9="google.c.a.ts",I9="google.c.a.e";var E1;(function(e){e[e.DATA_MESSAGE=1]="DATA_MESSAGE",e[e.DISPLAY_NOTIFICATION=3]="DISPLAY_NOTIFICATION"})(E1||(E1={}));/**
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 Vd;(function(e){e.PUSH_RECEIVED="push-received",e.NOTIFICATION_CLICKED="notification-clicked"})(Vd||(Vd={}));/**
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(e){const t=new Uint8Array(e);return btoa(String.fromCharCode(...t)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function A9(e){const t="=".repeat((4-e.length%4)%4),n=(e+t).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 Nv="fcm_token_details_db",M9=5,k1="fcm_token_object_Store";async function L9(e){if("databases"in indexedDB&&!(await indexedDB.databases()).map(o=>o.name).includes(Nv))return null;let t=null;return(await ig(Nv,M9,{upgrade:async(r,i,o,s)=>{var u;if(i<2||!r.objectStoreNames.contains(k1))return;const c=s.objectStore(k1),d=await c.index("fcmSenderId").get(e);if(await c.clear(),!!d){if(i===2){const v=d;if(!v.auth||!v.p256dh||!v.endpoint)return;t={token:v.fcmToken,createTime:(u=v.createTime)!==null&&u!==void 0?u:Date.now(),subscriptionOptions:{auth:v.auth,p256dh:v.p256dh,endpoint:v.endpoint,swScope:v.swScope,vapidKey:typeof v.vapidKey=="string"?v.vapidKey:kl(v.vapidKey)}}}else if(i===3){const v=d;t={token:v.fcmToken,createTime:v.createTime,subscriptionOptions:{auth:kl(v.auth),p256dh:kl(v.p256dh),endpoint:v.endpoint,swScope:v.swScope,vapidKey:kl(v.vapidKey)}}}else if(i===4){const v=d;t={token:v.fcmToken,createTime:v.createTime,subscriptionOptions:{auth:kl(v.auth),p256dh:kl(v.p256dh),endpoint:v.endpoint,swScope:v.swScope,vapidKey:kl(v.vapidKey)}}}}}})).close(),await Iv(Nv),await Iv("fcm_vapid_details_db"),await Iv("undefined"),F9(t)?t:null}function F9(e){if(!e||!e.subscriptionOptions)return!1;const{subscriptionOptions:t}=e;return typeof e.createTime=="number"&&e.createTime>0&&typeof e.token=="string"&&e.token.length>0&&typeof t.auth=="string"&&t.auth.length>0&&typeof t.p256dh=="string"&&t.p256dh.length>0&&typeof t.endpoint=="string"&&t.endpoint.length>0&&typeof t.swScope=="string"&&t.swScope.length>0&&typeof t.vapidKey=="string"&&t.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 N9="firebase-messaging-database",j9=1,Hd="firebase-messaging-store";let jv=null;function fD(){return jv||(jv=ig(N9,j9,{upgrade:(e,t)=>{switch(t){case 0:e.createObjectStore(Hd)}}})),jv}async function B9(e){const t=dD(e),r=await(await fD()).transaction(Hd).objectStore(Hd).get(t);if(r)return r;{const i=await L9(e.appConfig.senderId);if(i)return await ub(e,i),i}}async function ub(e,t){const n=dD(e),i=(await fD()).transaction(Hd,"readwrite");return await i.objectStore(Hd).put(t,n),await i.done,t}function dD({appConfig:e}){return e.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 $9={"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"only-available-in-window":"This method is available in a Window context.","only-available-in-sw":"This method is available in a service worker context.","permission-default":"The notification permission was not granted and dismissed instead.","permission-blocked":"The notification permission was not granted and blocked instead.","unsupported-browser":"This browser doesn't support the API's required to use the Firebase SDK.","indexed-db-unsupported":"This browser doesn't support indexedDb.open() (ex. Safari iFrame, Firefox Private Browsing, etc)","failed-service-worker-registration":"We are unable to register the default service worker. {$browserErrorMessage}","token-subscribe-failed":"A problem occurred while subscribing the user to FCM: {$errorInfo}","token-subscribe-no-token":"FCM returned no token when subscribing the user to push.","token-unsubscribe-failed":"A problem occurred while unsubscribing the user from FCM: {$errorInfo}","token-update-failed":"A problem occurred while updating the user from FCM: {$errorInfo}","token-update-no-token":"FCM returned no token when updating the user to push.","use-sw-after-get-token":"The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.","invalid-sw-registration":"The input to useServiceWorker() must be a ServiceWorkerRegistration.","invalid-bg-handler":"The input to setBackgroundMessageHandler() must be a function.","invalid-vapid-key":"The public VAPID key must be a string.","use-vapid-key-after-get-token":"The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used."},Bi=new rg("messaging","Messaging",$9);/**
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 V9(e,t){const n=await fb(e),r=hD(t),i={method:"POST",headers:n,body:JSON.stringify(r)};let o;try{o=await(await fetch(cb(e.appConfig),i)).json()}catch(s){throw Bi.create("token-subscribe-failed",{errorInfo:s==null?void 0:s.toString()})}if(o.error){const s=o.error.message;throw Bi.create("token-subscribe-failed",{errorInfo:s})}if(!o.token)throw Bi.create("token-subscribe-no-token");return o.token}async function H9(e,t){const n=await fb(e),r=hD(t.subscriptionOptions),i={method:"PATCH",headers:n,body:JSON.stringify(r)};let o;try{o=await(await fetch(`${cb(e.appConfig)}/${t.token}`,i)).json()}catch(s){throw Bi.create("token-update-failed",{errorInfo:s==null?void 0:s.toString()})}if(o.error){const s=o.error.message;throw Bi.create("token-update-failed",{errorInfo:s})}if(!o.token)throw Bi.create("token-update-no-token");return o.token}async function U9(e,t){const r={method:"DELETE",headers:await fb(e)};try{const o=await(await fetch(`${cb(e.appConfig)}/${t}`,r)).json();if(o.error){const s=o.error.message;throw Bi.create("token-unsubscribe-failed",{errorInfo:s})}}catch(i){throw Bi.create("token-unsubscribe-failed",{errorInfo:i==null?void 0:i.toString()})}}function cb({projectId:e}){return`${_9}/projects/${e}/registrations`}async function fb({appConfig:e,installations:t}){const n=await t.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e.apiKey,"x-goog-firebase-installations-auth":`FIS ${n}`})}function hD({p256dh:e,auth:t,endpoint:n,vapidKey:r}){const i={web:{endpoint:n,auth:t,p256dh:e}};return r!==uD&&(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 W9=7*24*60*60*1e3;async function z9(e){const t=await G9(e.swRegistration,e.vapidKey),n={vapidKey:e.vapidKey,swScope:e.swRegistration.scope,endpoint:t.endpoint,auth:kl(t.getKey("auth")),p256dh:kl(t.getKey("p256dh"))},r=await B9(e.firebaseDependencies);if(r){if(q9(r.subscriptionOptions,n))return Date.now()>=r.createTime+W9?Y9(e,{token:r.token,createTime:Date.now(),subscriptionOptions:n}):r.token;try{await U9(e.firebaseDependencies,r.token)}catch(i){console.warn(i)}return O1(e.firebaseDependencies,n)}else return O1(e.firebaseDependencies,n)}async function Y9(e,t){try{const n=await H9(e.firebaseDependencies,t),r=Object.assign(Object.assign({},t),{token:n,createTime:Date.now()});return await ub(e.firebaseDependencies,r),n}catch(n){throw n}}async function O1(e,t){const r={token:await V9(e,t),createTime:Date.now(),subscriptionOptions:t};return await ub(e,r),r.token}async function G9(e,t){const n=await e.pushManager.getSubscription();return n||e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:A9(t)})}function q9(e,t){const n=t.vapidKey===e.vapidKey,r=t.endpoint===e.endpoint,i=t.auth===e.auth,o=t.p256dh===e.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 D1(e){const t={from:e.from,collapseKey:e.collapse_key,messageId:e.fcmMessageId};return X9(t,e),K9(t,e),Z9(t,e),t}function X9(e,t){if(!t.notification)return;e.notification={};const n=t.notification.title;n&&(e.notification.title=n);const r=t.notification.body;r&&(e.notification.body=r);const i=t.notification.image;i&&(e.notification.image=i);const o=t.notification.icon;o&&(e.notification.icon=o)}function K9(e,t){t.data&&(e.data=t.data)}function Z9(e,t){var n,r,i,o,s;if(!t.fcmOptions&&!(!((n=t.notification)===null||n===void 0)&&n.click_action))return;e.fcmOptions={};const u=(i=(r=t.fcmOptions)===null||r===void 0?void 0:r.link)!==null&&i!==void 0?i:(o=t.notification)===null||o===void 0?void 0:o.click_action;u&&(e.fcmOptions.link=u);const c=(s=t.fcmOptions)===null||s===void 0?void 0:s.analytics_label;c&&(e.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 J9(e){return typeof e=="object"&&!!e&&cD in e}/**
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(e,t){const n=[];for(let r=0;r<e.length;r++)n.push(e.charAt(r)),r<t.length&&n.push(t.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 eY(e){if(!e||!e.options)throw Bv("App Configuration Object");if(!e.name)throw Bv("App Name");const t=["projectId","apiKey","appId","messagingSenderId"],{options:n}=e;for(const r of t)if(!n[r])throw Bv(r);return{appName:e.name,projectId:n.projectId,apiKey:n.apiKey,appId:n.appId,senderId:n.messagingSenderId}}function Bv(e){return Bi.create("missing-app-config-values",{valueName:e})}/**
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 tY{constructor(t,n,r){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroundMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;const i=eY(t);this.firebaseDependencies={app:t,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 nY(e){try{e.swRegistration=await navigator.serviceWorker.register(O9,{scope:D9}),e.swRegistration.update().catch(()=>{})}catch(t){throw Bi.create("failed-service-worker-registration",{browserErrorMessage:t==null?void 0:t.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 rY(e,t){if(!t&&!e.swRegistration&&await nY(e),!(!t&&e.swRegistration)){if(!(t instanceof ServiceWorkerRegistration))throw Bi.create("invalid-sw-registration");e.swRegistration=t}}/**
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 iY(e,t){t?e.vapidKey=t:e.vapidKey||(e.vapidKey=uD)}/**
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 pD(e,t){if(!navigator)throw Bi.create("only-available-in-window");if(Notification.permission==="default"&&await Notification.requestPermission(),Notification.permission!=="granted")throw Bi.create("permission-blocked");return await iY(e,t==null?void 0:t.vapidKey),await rY(e,t==null?void 0:t.serviceWorkerRegistration),z9(e)}/**
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 oY(e,t,n){const r=aY(t);(await e.firebaseDependencies.analyticsProvider.get()).logEvent(r,{message_id:n[cD],message_name:n[P9],message_time:n[R9],message_device_time:Math.floor(Date.now()/1e3)})}function aY(e){switch(e){case Vd.NOTIFICATION_CLICKED:return"notification_open";case Vd.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 sY(e,t){const n=t.data;if(!n.isFirebaseMessaging)return;e.onMessageHandler&&n.messageType===Vd.PUSH_RECEIVED&&(typeof e.onMessageHandler=="function"?e.onMessageHandler(D1(n)):e.onMessageHandler.next(D1(n)));const r=n.data;J9(r)&&r[I9]==="1"&&await oY(e,n.messageType,r)}const _1="@firebase/messaging",P1="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 lY=e=>{const t=new tY(e.getProvider("app").getImmediate(),e.getProvider("installations-internal").getImmediate(),e.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",n=>sY(t,n)),t},uY=e=>{const t=e.getProvider("messaging").getImmediate();return{getToken:r=>pD(t,r)}};function cY(){Lc(new Au("messaging",lY,"PUBLIC")),Lc(new Au("messaging-internal",uY,"PRIVATE")),Du(_1,P1),Du(_1,P1,"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 fY(){try{await BO()}catch{return!1}return typeof window<"u"&&jO()&&_6()&&"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 dY(e,t){if(!navigator)throw Bi.create("only-available-in-window");return e.onMessageHandler=t,()=>{e.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 hY(e=P8()){return fY().then(t=>{if(!t)throw Bi.create("unsupported-browser")},t=>{throw Bi.create("indexed-db-unsupported")}),ib(nb(e),"messaging").getImmediate()}async function pY(e,t){return e=nb(e),pD(e,t)}function gY(e,t){return e=nb(e),dY(e,t)}cY();exports.AuthContext=Gm;exports.AuthProvider=WA;exports.CustomOpenList=U1;exports.CustomOpenListProvider=OA;exports.DateRangePicker=y6;exports.ERROR_MESSAGE=B1;exports.FavoriteMenu=z4;exports.GlobalMenu=o6;exports.IconComponent=wO;exports.InfiniteLoader=h6;exports.Language=Xm;exports.LogoutConfirmModal=R1;exports.PropTypes=Oa;exports.Q=v2;exports.SaasThemeProvider=VA;exports.StyleWrapper=Km;exports.TranslationProvider=KM;exports._=s6;exports._assertThisInitialized=_l;exports._extends=Ff;exports._extends$1=W5;exports._inheritsLoose=gO;exports._objectWithoutPropertiesLoose=qm;exports.activeStyles=Qy;exports.axiosInstance=Da;exports.clsx=Ol;exports.color=Ci;exports.commonjsGlobal=Ti;exports.createCustomTheme=Y1;exports.getAugmentedNamespace=sM;exports.getMessagingInWindow=hY;exports.getToken=pY;exports.handleErrorAxios=H1;exports.initializeApp=HO;exports.lodashExports=IO;exports.login=$1;exports.logout=V1;exports.notify=S2;exports.objectWithoutPropertiesLoose=aM;exports.onMessage=gY;exports.pushError=Wd;exports.pushSuccess=ty;exports.pushWarning=x2;exports.responseInterceptor=kA;exports.search=YA;exports.setFavicon=G1;exports.styles=a6;exports.translate=qM;exports.translationConfig=GM;exports.updateFavoriteItems=tb;exports.useAuth=zA;exports.useCustomTranslation=YM;exports.useTheme=$A;exports.useTranslation=nT;exports.useTranslation$1=XM;