@ukpc-lib/react 0.8.4 → 0.8.6

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.
@@ -1,1098 +0,0 @@
1
- var x9=require("./index.css");const ot=require("react/jsx-runtime"),J=require("react"),_I=require("axios"),RI=require("moment"),_c=require("@mui/material"),Cd=require("react-query");require("@r2wc/react-to-web-component");const S1=require("react-router-dom"),T1=require("react-dom");function II(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 AI(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 Sn=II(J),MI=`.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 C1({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 ot.jsxs(ot.Fragment,{children:[ot.jsx("style",{type:"text/css",children:MI}),ot.jsx("div",{onClick:r,className:"modal-overlay",id:"modal-wrapper",children:ot.jsxs("div",{className:"modal-container",children:[ot.jsx("h3",{className:"modal-title",children:"Log out"}),ot.jsx("p",{className:"text-sm",children:"Are you sure want to log out?"}),ot.jsxs("div",{className:"modal-footer",children:[ot.jsx("button",{className:"modal-button cancel-btn",onClick:t,children:"Cancel"}),ot.jsx("button",{onClick:n,className:"text-white confirm-btn modal-button",children:"Confirm"})]})]})})]})}const Fi={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 LI(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 E1(e){var t=LI(e,"string");return Jo(t)=="symbol"?t:String(t)}function e0(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,E1(r.key),r)}}function na(e,t,n){return t&&e0(e.prototype,t),n&&e0(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ou(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zh(e,t){return Zh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Zh(e,t)}function Dp(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&&Zh(e,t)}function Vd(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 Ou(e)}function Bs(e){return Bs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Bs(e)}function $s(e,t,n){return t=E1(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k1(e){if(Array.isArray(e))return e}function FI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function t0(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}function O1(e,t){if(e){if(typeof e=="string")return t0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return t0(e,t)}}function D1(){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 NI(e){return k1(e)||FI(e)||O1(e)||D1()}function n0(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 r0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?n0(Object(n),!0).forEach(function(r){$s(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var jI={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)}},BI=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||jI,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,r0(r0({},{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}(),Ms=new BI,Ol=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 l=[].concat(this.observers["*"]);l.forEach(function(c){c.apply(c,[n].concat(i))})}}}]),e}();function Jf(){var e,t,n=new Promise(function(r,i){e=r,t=i});return n.resolve=e,n.reject=t,n}function i0(e){return e==null?"":""+e}function $I(e,t,n){e.forEach(function(r){t[r]&&(n[r]=t[r])})}function Gm(e,t,n){function r(l){return l&&l.indexOf("###")>-1?l.replace(/###/g,"."):l}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 o0(e,t,n){var r=Gm(e,t,Object),i=r.obj,o=r.k;i[o]=n}function VI(e,t,n,r){var i=Gm(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 Jh(e,t){var n=Gm(e,t),r=n.obj,i=n.k;if(r)return r[i]}function HI(e,t,n){var r=Jh(e,n);return r!==void 0?r:Jh(t,n)}function P1(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]):P1(e[r],t[r],n):e[r]=t[r]);return e}function df(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var UI={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function WI(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return UI[t]}):e}var Pp=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,zI=[" ",",","?","!",";"];function YI(e,t,n){t=t||"",n=n||"";var r=zI.filter(function(l){return t.indexOf(l)<0&&n.indexOf(l)<0});if(r.length===0)return!0;var i=new RegExp("(".concat(r.map(function(l){return l==="?"?"\\?":l}).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 Qh(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,l=r.slice(o,o+s).join(n),c=i[l];c===void 0&&r.length>o+s;)s++,l=r.slice(o,o+s).join(n),c=i[l];if(c===void 0)return;if(c===null)return null;if(t.endsWith(l)){if(typeof c=="string")return c;if(l&&typeof c[l]=="string")return c[l]}var d=r.slice(o+s).join(n);return d?Qh(c,d,n):void 0}i=i[r[o]]}return i}}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 ch(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){$s(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}function GI(e){var t=qI();return function(){var r=Bs(e),i;if(t){var o=Bs(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Vd(this,i)}}function qI(){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 XI=function(e){Dp(n,e);var t=GI(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&&Ol.call(Ou(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 l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},c=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator,d=l.ignoreJSONStructure!==void 0?l.ignoreJSONStructure:this.options.ignoreJSONStructure,y=[i,o];s&&typeof s!="string"&&(y=y.concat(s)),s&&typeof s=="string"&&(y=y.concat(c?s.split(c):s)),i.indexOf(".")>-1&&(y=i.split("."));var g=Jh(this.data,y);return g||!d||typeof s!="string"?g:Qh(this.data&&this.data[i]&&this.data[i][o],s,c)}},{key:"addResource",value:function(i,o,s,l){var c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},d=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator,y=[i,o];s&&(y=y.concat(d?s.split(d):s)),i.indexOf(".")>-1&&(y=i.split("."),l=o,o=y[1]),this.addNamespaces(o),o0(this.data,y,l),c.silent||this.emit("added",i,o,s,l)}},{key:"addResources",value:function(i,o,s){var l=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});l.silent||this.emit("added",i,o,s)}},{key:"addResourceBundle",value:function(i,o,s,l,c){var d=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},y=[i,o];i.indexOf(".")>-1&&(y=i.split("."),l=s,s=o,o=y[1]),this.addNamespaces(o);var g=Jh(this.data,y)||{};l?P1(g,s,c):g=ch(ch({},g),s),o0(this.data,y,g),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"?ch(ch({},{}),this.getResource(i,o)):this.getResource(i,o)}},{key:"getDataByLanguage",value:function(i){return this.data[i]}},{key:"hasLanguageSomeTranslations",value:function(i){var o=this.getDataByLanguage(i),s=o&&Object.keys(o)||[];return!!s.find(function(l){return o[l]&&Object.keys(o[l]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(Ol),_1={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,n,r,i,o){var s=this;return t.forEach(function(l){s.processors[l]&&(n=s.processors[l].process(n,r,i,o))}),n}};function s0(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 Ai(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?s0(Object(n),!0).forEach(function(r){$s(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function KI(e){var t=ZI();return function(){var r=Bs(e),i;if(t){var o=Bs(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Vd(this,i)}}function ZI(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var u0={},l0=function(e){Dp(n,e);var t=KI(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&&Ol.call(Ou(i)),$I(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,Ou(i)),i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.logger=Ms.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 l=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,c=o.ns||this.options.defaultNS||[],d=s&&i.indexOf(s)>-1,y=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!YI(i,s,l);if(d&&!y){var g=i.match(this.interpolator.nestingRegexp);if(g&&g.length>0)return{key:i,namespaces:c};var S=i.split(s);(s!==l||s===l&&this.options.ns.indexOf(S[0])>-1)&&(c=S.shift()),i=S.join(l)}return typeof c=="string"&&(c=[c]),{key:i,namespaces:c}}},{key:"translate",value:function(i,o,s){var l=this;if(Jo(o)!=="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),Jo(o)==="object"&&(o=Ai({},o)),o||(o={}),i==null)return"";Array.isArray(i)||(i=[String(i)]);var c=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,d=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,y=this.extractFromKey(i[i.length-1],o),g=y.key,S=y.namespaces,T=S[S.length-1],_=o.lng||this.language,I=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(_&&_.toLowerCase()==="cimode"){if(I){var L=o.nsSeparator||this.options.nsSeparator;return c?{res:"".concat(T).concat(L).concat(g),usedKey:g,exactUsedKey:g,usedLng:_,usedNS:T}:"".concat(T).concat(L).concat(g)}return c?{res:g,usedKey:g,exactUsedKey:g,usedLng:_,usedNS:T}:g}var R=this.resolve(i,o),U=R&&R.res,W=R&&R.usedKey||g,ne=R&&R.exactUsedKey||g,Q=Object.prototype.toString.apply(U),pe=["[object Number]","[object Function]","[object RegExp]"],x=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,ce=!this.i18nFormat||this.i18nFormat.handleAsObject,se=typeof U!="string"&&typeof U!="boolean"&&typeof U!="number";if(ce&&U&&se&&pe.indexOf(Q)<0&&!(typeof x=="string"&&Q==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var je=this.options.returnedObjectHandler?this.options.returnedObjectHandler(W,U,Ai(Ai({},o),{},{ns:S})):"key '".concat(g," (").concat(this.language,")' returned an object instead of string.");return c?(R.res=je,R):je}if(d){var qe=Q==="[object Array]",Xe=qe?[]:{},rt=qe?ne:W;for(var nt in U)if(Object.prototype.hasOwnProperty.call(U,nt)){var ye="".concat(rt).concat(d).concat(nt);Xe[nt]=this.translate(ye,Ai(Ai({},o),{joinArrays:!1,ns:S})),Xe[nt]===ye&&(Xe[nt]=U[nt])}U=Xe}}else if(ce&&typeof x=="string"&&Q==="[object Array]")U=U.join(x),U&&(U=this.extendTranslation(U,i,o,s));else{var Pe=!1,Ue=!1,Je=o.count!==void 0&&typeof o.count!="string",st=n.hasDefaultValue(o),ke=Je?this.pluralResolver.getSuffix(_,o.count,o):"",_e=o["defaultValue".concat(ke)]||o.defaultValue;!this.isValidLookup(U)&&st&&(Pe=!0,U=_e),this.isValidLookup(U)||(Ue=!0,U=g);var Ve=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,He=Ve&&Ue?void 0:U,Re=st&&_e!==U&&this.options.updateMissing;if(Ue||Pe||Re){if(this.logger.log(Re?"updateKey":"missingKey",_,T,g,Re?_e:U),d){var Fe=this.resolve(g,Ai(Ai({},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 ze=[],ut=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ut&&ut[0])for(var mt=0;mt<ut.length;mt++)ze.push(ut[mt]);else this.options.saveMissingTo==="all"?ze=this.languageUtils.toResolveHierarchy(o.lng||this.language):ze.push(o.lng||this.language);var wt=function(Et,it,$t){var Ht=st&&$t!==U?$t:He;l.options.missingKeyHandler?l.options.missingKeyHandler(Et,T,it,Ht,Re,o):l.backendConnector&&l.backendConnector.saveMissing&&l.backendConnector.saveMissing(Et,T,it,Ht,Re,o),l.emit("missingKey",Et,T,it,U)};this.options.saveMissing&&(this.options.saveMissingPlurals&&Je?ze.forEach(function(vt){l.pluralResolver.getSuffixes(vt,o).forEach(function(Et){wt([vt],g+Et,o["defaultValue".concat(Et)]||_e)})}):wt(ze,g,_e))}U=this.extendTranslation(U,i,o,R,s),Ue&&U===g&&this.options.appendNamespaceToMissingKey&&(U="".concat(T,":").concat(g)),(Ue||Pe)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?U=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(T,":").concat(g):g,Pe?U:void 0):U=this.options.parseMissingKeyHandler(U))}return c?(R.res=U,R):U}},{key:"extendTranslation",value:function(i,o,s,l,c){var d=this;if(this.i18nFormat&&this.i18nFormat.parse)i=this.i18nFormat.parse(i,Ai(Ai({},this.options.interpolation.defaultVariables),s),l.usedLng,l.usedNS,l.usedKey,{resolved:l});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init(Ai(Ai({},s),{interpolation:Ai(Ai({},this.options.interpolation),s.interpolation)}));var y=typeof i=="string"&&(s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),g;if(y){var S=i.match(this.interpolator.nestingRegexp);g=S&&S.length}var T=s.replace&&typeof s.replace!="string"?s.replace:s;if(this.options.interpolation.defaultVariables&&(T=Ai(Ai({},this.options.interpolation.defaultVariables),T)),i=this.interpolator.interpolate(i,T,s.lng||this.language,s),y){var _=i.match(this.interpolator.nestingRegexp),I=_&&_.length;g<I&&(s.nest=!1)}!s.lng&&this.options.compatibilityAPI!=="v1"&&l&&l.res&&(s.lng=l.usedLng),s.nest!==!1&&(i=this.interpolator.nest(i,function(){for(var U=arguments.length,W=new Array(U),ne=0;ne<U;ne++)W[ne]=arguments[ne];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=_1.handle(R,i,o,this.options&&this.options.postProcessPassResolved?Ai({i18nResolved:l},s):s,this)),i}},{key:"resolve",value:function(i){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l,c,d,y,g;return typeof i=="string"&&(i=[i]),i.forEach(function(S){if(!o.isValidLookup(l)){var T=o.extractFromKey(S,s),_=T.key;c=_;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(),U=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(ne){o.isValidLookup(l)||(g=ne,!u0["".concat(W[0],"-").concat(ne)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(g)&&(u0["".concat(W[0],"-").concat(ne)]=!0,o.logger.warn('key "'.concat(c,'" for languages "').concat(W.join(", "),`" won't get resolved as namespace "`).concat(g,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),W.forEach(function(Q){if(!o.isValidLookup(l)){y=Q;var pe=[_];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(pe,_,Q,ne,s);else{var x;L&&(x=o.pluralResolver.getSuffix(Q,s.count,s));var ce="".concat(o.options.pluralSeparator,"zero");if(L&&(pe.push(_+x),R&&pe.push(_+ce)),U){var se="".concat(_).concat(o.options.contextSeparator).concat(s.context);pe.push(se),L&&(pe.push(se+x),R&&pe.push(se+ce))}}for(var je;je=pe.pop();)o.isValidLookup(l)||(d=je,l=o.getResource(Q,ne,je,s))}}))})}}),{res:l,usedKey:c,exactUsedKey:d,usedLng:y,usedNS:g}}},{key:"isValidLookup",value:function(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}},{key:"getResource",value:function(i,o,s){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,o,s,l):this.resourceStore.getResource(i,o,s,l)}}],[{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}(Ol);function Ag(e){return e.charAt(0).toUpperCase()+e.slice(1)}var c0=function(){function e(t){ta(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ms.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]=Ag(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]=Ag(i[1].toLowerCase())),r.indexOf(i[2].toLowerCase())>-1&&(i[2]=Ag(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(l){if(l===s)return l;if(!(l.indexOf("-")<0&&s.indexOf("-")<0)&&l.indexOf(s)===0)return l})}}),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=[],l=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"&&l(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&l(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&l(this.getLanguagePartFromCode(n))):typeof n=="string"&&l(this.formatLanguageCode(n)),o.forEach(function(c){s.indexOf(c)<0&&l(i.formatLanguageCode(c))}),s}}]),e}(),JI=[{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}],QI={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}},eA=["v1","v2","v3"],f0={zero:0,one:1,two:2,few:3,many:4,other:5};function tA(){var e={};return JI.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:QI[t.fc]}})}),e}var nA=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=Ms.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=tA()}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,l){return f0[s]-f0[l]}).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 l=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()):l():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?l():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}},{key:"shouldUseIntlApi",value:function(){return!eA.includes(this.options.compatibilityJSON)}}]),e}();function d0(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 es(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?d0(Object(n),!0).forEach(function(r){$s(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function h0(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=HI(e,t,n);return!o&&i&&typeof n=="string"&&(o=Qh(e,n,r),o===void 0&&(o=Qh(t,n,r))),o}var rA=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ta(this,e),this.logger=Ms.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:WI,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,l,c,d,y=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function g(L){return L.replace(/\$/g,"$$$$")}var S=function(R){if(R.indexOf(s.formatSeparator)<0){var U=h0(r,y,R,s.options.keySeparator,s.options.ignoreJSONStructure);return s.alwaysFormat?s.format(U,void 0,i,es(es(es({},o),r),{},{interpolationkey:R})):U}var W=R.split(s.formatSeparator),ne=W.shift().trim(),Q=W.join(s.formatSeparator).trim();return s.format(h0(r,y,ne,s.options.keySeparator,s.options.ignoreJSONStructure),Q,i,es(es(es({},o),r),{},{interpolationkey:ne}))};this.resetRegExp();var T=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,_=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,I=[{regex:this.regexpUnescape,safeValue:function(R){return g(R)}},{regex:this.regexp,safeValue:function(R){return s.escapeValue?g(s.escape(R)):g(R)}}];return I.forEach(function(L){for(d=0;l=L.regex.exec(n);){var R=l[1].trim();if(c=S(R),c===void 0)if(typeof T=="function"){var U=T(n,l,o);c=typeof U=="string"?U:""}else if(o&&Object.prototype.hasOwnProperty.call(o,R))c="";else if(_){c=l[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=i0(c));var W=L.safeValue(c);if(n=n.replace(l[0],W),_?(L.regex.lastIndex+=c.length,L.regex.lastIndex-=l[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,l,c;function d(T,_){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 U=R.match(/'/g),W=R.match(/"/g);(U&&U.length%2===0&&!W||W.length%2!==0)&&(R=R.replace(/'/g,'"'));try{c=JSON.parse(R),_&&(c=es(es({},_),c))}catch(ne){return this.logger.warn("failed parsing options string in nesting for key ".concat(T),ne),"".concat(T).concat(I).concat(R)}return delete c.defaultValue,T}for(;s=this.nestingRegexp.exec(n);){var y=[];c=es({},o),c=c.replace&&typeof c.replace!="string"?c.replace:c,c.applyPostProcessor=!1,delete c.defaultValue;var g=!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(),y=S,g=!0}if(l=r(d.call(this,s[1].trim(),c),c),l&&s[0]===n&&typeof l!="string")return l;typeof l!="string"&&(l=i0(l)),l||(this.logger.warn("missed to resolve ".concat(s[1]," for nesting ").concat(n)),l=""),g&&(l=y.reduce(function(T,_){return i.format(T,_,o.lng,es(es({},o),{},{interpolationkey:s[1].trim()}))},l.trim())),n=n.replace(s[0],l),this.regexp.lastIndex=0}return n}}]),e}();function p0(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 Su(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?p0(Object(n),!0).forEach(function(r){$s(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function iA(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 l=s.split(":"),c=NI(l),d=c[0],y=c.slice(1),g=y.join(":").trim().replace(/^'+|'+$/g,"");n[d.trim()]||(n[d.trim()]=g),g==="false"&&(n[d.trim()]=!1),g==="true"&&(n[d.trim()]=!0),isNaN(g)||(n[d.trim()]=parseInt(g,10))}})}}return{formatName:t,formatOptions:n}}function hf(e){var t={};return function(r,i,o){var s=i+JSON.stringify(o),l=t[s];return l||(l=e(i,o),t[s]=l),l(r)}}var oA=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ta(this,e),this.logger=Ms.create("formatter"),this.options=t,this.formats={number:hf(function(n,r){var i=new Intl.NumberFormat(n,Su({},r));return function(o){return i.format(o)}}),currency:hf(function(n,r){var i=new Intl.NumberFormat(n,Su(Su({},r),{},{style:"currency"}));return function(o){return i.format(o)}}),datetime:hf(function(n,r){var i=new Intl.DateTimeFormat(n,Su({},r));return function(o){return i.format(o)}}),relativetime:hf(function(n,r){var i=new Intl.RelativeTimeFormat(n,Su({},r));return function(o){return i.format(o,r.range||"day")}}),list:hf(function(n,r){var i=new Intl.ListFormat(n,Su({},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]:{},l=r.split(this.formatSeparator),c=l.reduce(function(d,y){var g=iA(y),S=g.formatName,T=g.formatOptions;if(o.formats[S]){var _=d;try{var I=s&&s.formatParams&&s.formatParams[s.interpolationkey]||{},L=I.locale||I.lng||s.locale||s.lng||i;_=o.formats[S](d,L,Su(Su(Su({},T),s),I))}catch(R){o.logger.warn(R)}return _}else o.logger.warn("there was no format function for ".concat(S));return d},n);return c}}]),e}();function g0(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?g0(Object(n),!0).forEach(function(r){$s(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g0(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=Bs(e),i;if(t){var o=Bs(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Vd(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}}function uA(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}var lA=function(e){Dp(n,e);var t=aA(n);function n(r,i,o){var s,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return ta(this,n),s=t.call(this),Pp&&Ol.call(Ou(s)),s.backend=r,s.store=i,s.services=o,s.languageUtils=o.languageUtils,s.options=l,s.logger=Ms.create("backendConnector"),s.waitingReads=[],s.maxParallelReads=l.maxParallelReads||10,s.readingCalls=0,s.maxRetries=l.maxRetries>=0?l.maxRetries:5,s.retryTimeout=l.retryTimeout>=1?l.retryTimeout:350,s.state={},s.queue=[],s.backend&&s.backend.init&&s.backend.init(o,l.backend,l),s}return na(n,[{key:"queueLoad",value:function(i,o,s,l){var c=this,d={},y={},g={},S={};return i.forEach(function(T){var _=!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?y[L]===void 0&&(y[L]=!0):(c.state[L]=1,_=!1,y[L]===void 0&&(y[L]=!0),d[L]===void 0&&(d[L]=!0),S[I]===void 0&&(S[I]=!0)))}),_||(g[T]=!0)}),(Object.keys(d).length||Object.keys(y).length)&&this.queue.push({pending:y,pendingCount:Object.keys(y).length,loaded:{},errors:[],callback:l}),{toLoad:Object.keys(d),pending:Object.keys(y),toLoadLanguages:Object.keys(g),toLoadNamespaces:Object.keys(S)}}},{key:"loaded",value:function(i,o,s){var l=i.split("|"),c=l[0],d=l[1];o&&this.emit("failedLoading",c,d,o),s&&this.store.addResourceBundle(c,d,s),this.state[i]=o?-1:2;var y={};this.queue.forEach(function(g){VI(g.loaded,[c],d),uA(g,i),o&&g.errors.push(o),g.pendingCount===0&&!g.done&&(Object.keys(g.loaded).forEach(function(S){y[S]||(y[S]={});var T=g.loaded[S];T.length&&T.forEach(function(_){y[S][_]===void 0&&(y[S][_]=!0)})}),g.done=!0,g.errors.length?g.callback(g.errors):g.callback())}),this.emit("loaded",y),this.queue=this.queue.filter(function(g){return!g.done})}},{key:"read",value:function(i,o,s){var l=this,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,d=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,y=arguments.length>5?arguments[5]:void 0;if(!i.length)return y(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:o,fcName:s,tried:c,wait:d,callback:y});return}this.readingCalls++;var g=function(I,L){if(l.readingCalls--,l.waitingReads.length>0){var R=l.waitingReads.shift();l.read(R.lng,R.ns,R.fcName,R.tried,R.wait,R.callback)}if(I&&L&&c<l.maxRetries){setTimeout(function(){l.read.call(l,i,o,s,c+1,d*2,y)},d);return}y(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(_){return g(null,_)}).catch(g):g(null,T)}catch(_){g(_)}return}return S(i,o,g)}},{key:"prepareLoading",value:function(i,o){var s=this,l=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,l,c);if(!d.toLoad.length)return d.pending.length||c(),null;d.toLoad.forEach(function(y){s.loadOne(y)})}},{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]:"",l=i.split("|"),c=l[0],d=l[1];this.read(c,d,"read",void 0,void 0,function(y,g){y&&o.logger.warn("".concat(s,"loading namespace ").concat(d," for language ").concat(c," failed"),y),!y&&g&&o.logger.log("".concat(s,"loaded namespace ").concat(d," for language ").concat(c),g),o.loaded(i,y,g)})}},{key:"saveMissing",value:function(i,o,s,l,c){var d=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},y=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(o)){this.logger.warn('did not save key "'.concat(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 g=v0(v0({},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,l,g):T=S(i,o,s,l),T&&typeof T.then=="function"?T.then(function(_){return y(null,_)}).catch(y):y(null,T)}catch(_){y(_)}else S(i,o,s,l,y,g)}!i||!i[0]||this.store.addResource(i[0],o,s,l)}}}]),n}(Ol);function m0(){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 y0(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 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 Ps(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){$s(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 cA(e){var t=fA();return function(){var r=Bs(e),i;if(t){var o=Bs(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Vd(this,i)}}function fA(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function fh(){}function dA(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(n){typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}var ep=function(e){Dp(n,e);var t=cA(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&&Ol.call(Ou(r)),r.options=y0(i),r.services={},r.logger=Ms,r.modules={external:[]},dA(Ou(r)),o&&!r.isInitialized&&!i.isClone){if(!r.options.initImmediate)return r.init(i,o),Vd(r,Ou(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 l=m0();this.options=Ps(Ps(Ps({},l),this.options),y0(o)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=Ps(Ps({},l.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?Ms.init(c(this.modules.logger),this.options):Ms.init(null,this.options);var d;this.modules.formatter?d=this.modules.formatter:typeof Intl<"u"&&(d=oA);var y=new c0(this.options);this.store=new XI(this.options.resources,this.options);var g=this.services;g.logger=Ms,g.resourceStore=this.store,g.languageUtils=y,g.pluralResolver=new nA(y,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===l.interpolation.format)&&(g.formatter=c(d),g.formatter.init(g,this.options),this.options.interpolation.format=g.formatter.format.bind(g.formatter)),g.interpolator=new rA(this.options),g.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},g.backendConnector=new lA(c(this.modules.backend),g.resourceStore,g,this.options),g.backendConnector.on("*",function(R){for(var U=arguments.length,W=new Array(U>1?U-1:0),ne=1;ne<U;ne++)W[ne-1]=arguments[ne];i.emit.apply(i,[R].concat(W))}),this.modules.languageDetector&&(g.languageDetector=c(this.modules.languageDetector),g.languageDetector.init&&g.languageDetector.init(g,this.options.detection,this.options)),this.modules.i18nFormat&&(g.i18nFormat=c(this.modules.i18nFormat),g.i18nFormat.init&&g.i18nFormat.init(this)),this.translator=new l0(this.services,this.options),this.translator.on("*",function(R){for(var U=arguments.length,W=new Array(U>1?U-1:0),ne=1;ne<U;ne++)W[ne-1]=arguments[ne];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=fh),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 U;return(U=i.store)[R].apply(U,arguments)}});var _=["addResource","addResources","addResourceBundle","removeResourceBundle"];_.forEach(function(R){i[R]=function(){var U;return(U=i.store)[R].apply(U,arguments),i}});var I=Jf(),L=function(){var U=function(ne,Q){i.isInitialized&&!i.initializedStoreOnce&&i.logger.warn("init: i18next is already initialized. You should call init just once!"),i.isInitialized=!0,i.options.isClone||i.logger.log("initialized",i.options),i.emit("initialized",i.options),I.resolve(Q),s(ne,Q)};if(i.languages&&i.options.compatibilityAPI!=="v1"&&!i.isInitialized)return U(null,i.t.bind(i));i.changeLanguage(i.options.lng,U)};return this.options.resources||!this.options.initImmediate?L():setTimeout(L,0),I}},{key:"loadResources",value:function(i){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:fh,l=s,c=typeof i=="string"?i:this.language;if(typeof i=="function"&&(l=i),!this.options.resources||this.options.partialBundledLanguages){if(c&&c.toLowerCase()==="cimode")return l();var d=[],y=function(T){if(T){var _=o.services.languageUtils.toResolveHierarchy(T);_.forEach(function(I){d.indexOf(I)<0&&d.push(I)})}};if(c)y(c);else{var g=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);g.forEach(function(S){return y(S)})}this.options.preload&&this.options.preload.forEach(function(S){return y(S)}),this.services.backendConnector.load(d,this.options.ns,function(S){!S&&!o.resolvedLanguage&&o.language&&o.setResolvedLanguage(o.language),l(S)})}else l(null)}},{key:"reloadResources",value:function(i,o,s){var l=Jf();return i||(i=this.languages),o||(o=this.options.ns),s||(s=fh),this.services.backendConnector.reload(i,o,function(c){l.resolve(),s(c)}),l}},{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"&&_1.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 l=Jf();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,l.resolve(function(){return s.t.apply(s,arguments)}),o&&o(S,function(){return s.t.apply(s,arguments)})},y=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(_){d(_,T)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?y(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(y):this.services.languageDetector.detect(y):y(i),l}},{key:"getFixedT",value:function(i,o,s){var l=this,c=function d(y,g){var S;if(Jo(g)!=="object"){for(var T=arguments.length,_=new Array(T>2?T-2:0),I=2;I<T;I++)_[I-2]=arguments[I];S=l.options.overloadTranslationOptionHandler([y,g].concat(_))}else S=Ps({},g);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=l.options.keySeparator||".",R;return S.keyPrefix&&Array.isArray(y)?R=y.map(function(U){return"".concat(S.keyPrefix).concat(L).concat(U)}):R=S.keyPrefix?"".concat(S.keyPrefix).concat(L).concat(y):y,l.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 l=s.lng||this.resolvedLanguage||this.languages[0],c=this.options?this.options.fallbackLng:!1,d=this.languages[this.languages.length-1];if(l.toLowerCase()==="cimode")return!0;var y=function(T,_){var I=o.services.backendConnector.state["".concat(T,"|").concat(_)];return I===-1||I===2};if(s.precheck){var g=s.precheck(this,y);if(g!==void 0)return g}return!!(this.hasResourceBundle(l,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||y(l,i)&&(!c||y(d,i)))}},{key:"loadNamespaces",value:function(i,o){var s=this,l=Jf();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){l.resolve(),o&&o(c)}),l):(o&&o(),Promise.resolve())}},{key:"loadLanguages",value:function(i,o){var s=Jf();typeof i=="string"&&(i=[i]);var l=this.options.preload||[],c=i.filter(function(d){return l.indexOf(d)<0});return c.length?(this.options.preload=l.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 c0(m0());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]:fh,l=Ps(Ps(Ps({},this.options),o),{isClone:!0}),c=new n(l);(o.debug!==void 0||o.prefix!==void 0)&&(c.logger=c.logger.clone(o));var d=["store","services","language"];return d.forEach(function(y){c[y]=i[y]}),c.services=Ps({},this.services),c.services.utils={hasLoadedNamespace:c.hasLoadedNamespace.bind(c)},c.translator=new l0(c.services,c.options),c.translator.on("*",function(y){for(var g=arguments.length,S=new Array(g>1?g-1:0),T=1;T<g;T++)S[T-1]=arguments[T];c.emit.apply(c,[y].concat(S))}),c.init(l,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}(Ol);$s(ep,"createInstance",function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new ep(e,t)});var li=ep.createInstance();li.createInstance=ep.createInstance;li.createInstance;li.dir;li.init;li.loadResources;li.reloadResources;li.use;li.changeLanguage;li.getFixedT;var R1=li.t;li.exists;li.setDefaultNamespace;li.hasLoadedNamespace;li.loadNamespaces;li.loadLanguages;const I1={TOKEN_MALFORMED:"token_malformed",TOKEN_EXPIRED:"token_expired"},A1=e=>{window.location.href=`${e}/authentication/login`},M1=e=>{window.location.href=`${e}/authentication/logout`},Ls=_I.create({withCredentials:!0});let Mg=!1,$v=[];const w0=e=>{$v.forEach(t=>{e?t.reject(e):t.resolve()}),$v=[]};function L1(e,t){var o,s,l,c,d,y,g;const n=e.config,r=(s=(o=e.response)==null?void 0:o.data)==null?void 0:s.errorMessage,i=r===I1.TOKEN_EXPIRED;return((l=e.response)==null?void 0:l.status)===401&&i&&!n._retry?Mg?new Promise((S,T)=>{$v.push({resolve:S,reject:T})}).then(()=>Ls(n)).catch(S=>Promise.reject(S)):(n._retry=!0,Mg=!0,Ls.post("/authentication/api/v1/auth/refresh-token",void 0,{baseURL:window.env.AUTHEN_DOMAIN}).then(()=>(w0(null),Ls(n))).catch(S=>(w0(S),Promise.reject(S))).finally(()=>{Mg=!1})):((c=e.response)==null?void 0:c.status)===401&&!i?A1(window.env.AUTHEN_DOMAIN):(((d=e.response)==null?void 0:d.status)===403?(y=t==null?void 0:t.handle403)==null||y.call(t,e):(!(t!=null&&t.disabledPushNotify)&&Ap(R1(`${r||"Something went wrong!"}`)),(g=t==null?void 0:t.handleOtherError)==null||g.call(t,e)),r&&e.response&&e.response.data&&(e.response.data.message=r),Promise.reject(e))}const hA=Ls.interceptors.response.use(e=>e,async e=>L1(e)),F1=J.createContext({}),pA=({children:e})=>{const[t,n]=J.useState(!0),[r,i]=J.useState({all:{rows:[],total:0},unread:{rows:[],total:0}}),o=()=>{n(!t)},s=()=>{n(!0)};return ot.jsx(F1.Provider,{value:{isOpen:t,toggleOpen:o,setShowModalFalse:s,notidata:r,setNotiData:i},children:e})};var N1={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},x0=J.createContext&&J.createContext(N1),gA=["attr","size","title"];function vA(e,t){if(e==null)return{};var n=mA(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 mA(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}function tp(){return tp=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},tp.apply(this,arguments)}function S0(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 np(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?S0(Object(n),!0).forEach(function(r){yA(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yA(e,t,n){return t=bA(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bA(e){var t=wA(e,"string");return typeof t=="symbol"?t:String(t)}function wA(e,t){if(typeof e!="object"||e===null)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 j1(e){return e&&e.map((t,n)=>J.createElement(t.tag,np({key:n},t.attr),j1(t.child)))}function _p(e){return t=>J.createElement(xA,tp({attr:np({},e.attr)},t),j1(e.child))}function xA(e){var t=n=>{var{attr:r,size:i,title:o}=e,s=vA(e,gA),l=i||n.size||"1em",c;return n.className&&(c=n.className),e.className&&(c=(c?c+" ":"")+e.className),J.createElement("svg",tp({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,s,{className:c,style:np(np({color:e.color||n.color},n.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),o&&J.createElement("title",null,o),e.children)};return x0!==void 0?J.createElement(x0.Consumer,null,n=>t(n)):t(N1)}function SA(e){return _p({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 TA(e){return _p({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)}function Lg(e){return e+" !important"}const B1=e=>{const t={...e.colors};return _c.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:{allVariants:{lineHeight:"inherit"},fontFamily:"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"}},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:Lg(t.primary200),"&:hover":{backgroundColor:Lg(t.primary200)}}}}},MuiPaginationItem:{defaultProps:{components:{previous:SA,next:TA}},styleOverrides:{root:{"& svg":{width:"10px"},border:"none",fontSize:"14px",lineHeight:"1.5rem",borderRadius:"7px","&.Mui-selected":{backgroundColor:Lg(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 CA(e,t){const n={...e};return t==null||t.forEach(r=>{r.children&&r.children.forEach(({key:i,color:o})=>{n[i]=o.trim()||Fi[i]})}),n}function EA(e){var s,l;const{data:t,isFetching:n}=Cd.useQuery(["customTheme"],()=>e!=null&&e.url?fetch(e.url).then(c=>c.json()):void 0,{enabled:!!(e!=null&&e.url)&&(e==null?void 0:e.enabled),refetchOnWindowFocus:!1,cacheTime:0}),r=CA(Fi,(s=t==null?void 0:t.theme)==null?void 0:s.keyColor);console.log("🚀 ~ useThemeContext ~ isFetching:",n);const i=B1({colors:r}),o=(l=t==null?void 0:t.theme)==null?void 0:l.image;return{colors:r,theme:i,logo:o,isFetching:n}}const $1=J.createContext({}),kA=()=>J.useContext($1),OA=e=>{var o;const{children:t,brandTheme:n}=e,r=EA(n),i=((o=e.customTheme)==null?void 0:o.call(e,r.colors))||r.theme;return ot.jsx($1.Provider,{value:r,children:ot.jsx(_c.ThemeProvider,{theme:i,children:t})})},DA=`*,: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}
4
- `;function V1({children:e,styles:t=[],...n}){return ot.jsxs("div",{...n,children:[[DA,...t].map((r,i)=>ot.jsx("style",{type:"text/css",children:r},i)),e]})}var H1=[],PA=H1.forEach,_A=H1.slice;function RA(e){return PA.call(_A.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}var T0=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,IA=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 l=i.maxAge-0;if(Number.isNaN(l))throw new Error("maxAge should be a Number");s+="; Max-Age=".concat(Math.floor(l))}if(i.domain){if(!T0.test(i.domain))throw new TypeError("option domain is invalid");s+="; Domain=".concat(i.domain)}if(i.path){if(!T0.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},C0={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=IA(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)}},AA={name:"cookie",lookup:function(t){var n;if(t.lookupCookie&&typeof document<"u"){var r=C0.read(t.lookupCookie);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupCookie&&typeof document<"u"&&C0.create(n.lookupCookie,t,n.cookieMinutes,n.cookieDomain,n.cookieOptions)}},MA={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 l=o[s].indexOf("=");if(l>0){var c=o[s].substring(0,l);c===t.lookupQuerystring&&(n=o[s].substring(l+1))}}}return n}},Qf=null,E0=function(){if(Qf!==null)return Qf;try{Qf=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{Qf=!1}return Qf},LA={name:"localStorage",lookup:function(t){var n;if(t.lookupLocalStorage&&E0()){var r=window.localStorage.getItem(t.lookupLocalStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupLocalStorage&&E0()&&window.localStorage.setItem(n.lookupLocalStorage,t)}},ed=null,k0=function(){if(ed!==null)return ed;try{ed=window!=="undefined"&&window.sessionStorage!==null;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{ed=!1}return ed},FA={name:"sessionStorage",lookup:function(t){var n;if(t.lookupSessionStorage&&k0()){var r=window.sessionStorage.getItem(t.lookupSessionStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupSessionStorage&&k0()&&window.sessionStorage.setItem(n.lookupSessionStorage,t)}},NA={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}},jA={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}},BA={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}},$A={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]}};function VA(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(t){return t}}}var U1=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=RA(r,this.options||{},VA()),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(AA),this.addDetector(MA),this.addDetector(LA),this.addDetector(FA),this.addDetector(NA),this.addDetector(jA),this.addDetector(BA),this.addDetector($A)}},{key:"addDetector",value:function(n){this.detectors[n.name]=n}},{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)}))}}]),e}();U1.type="languageDetector";function qm(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}const HA=Object.freeze(Object.defineProperty({__proto__:null,default:qm},Symbol.toStringTag,{value:"Module"}));var Ko=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function UA(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 WA(){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 O0={};function Vv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&O0[t[0]]||(typeof t[0]=="string"&&(O0[t[0]]=new Date),WA.apply(void 0,t))}var W1=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 D0(e,t,n){e.loadNamespaces(t,W1(e,n))}function P0(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,W1(e,r))}function zA(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 y=t.services.backendConnector.state["".concat(c,"|").concat(d)];return y===-1||y===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 YA(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}}):zA(e,t,n)}var GA=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,qA={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},XA=function(t){return qA[t]},KA=function(t){return t.replace(GA,XA)};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 R0(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){$s(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}var Hv={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:KA};function ZA(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Hv=R0(R0({},Hv),e)}function JA(){return Hv}var z1;function QA(e){z1=e}function eM(){return z1}var tM={type:"3rdParty",init:function(t){ZA(t.options.react),QA(t)}},Y1=J.createContext(),nM=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 rM(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,l=[],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)&&(l.push(r.value),l.length!==t);c=!0);}catch(y){d=!0,i=y}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw i}}return l}}function iM(e,t){return k1(e)||rM(e,t)||O1(e,t)||D1()}function I0(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?I0(Object(n),!0).forEach(function(r){$s(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var oM=function(t,n){var r=J.useRef();return J.useEffect(function(){r.current=n?r.current:t},[t,n]),r.current};function G1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.i18n,r=J.useContext(Y1)||{},i=r.i18n,o=r.defaultNS,s=n||i||eM();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new nM),!s){Vv("You will need to pass in an i18next instance by using initReactI18next");var l=function(se,je){return typeof je=="string"?je:je&&Jo(je)==="object"&&typeof je.defaultValue=="string"?je.defaultValue:Array.isArray(se)?se[se.length-1]:se},c=[l,{},!1];return c.t=l,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=Fg(Fg(Fg({},JA()),s.options.react),t),y=d.useSuspense,g=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(ce){return YA(ce,s,d)});function _(){return s.getFixedT(t.lng||null,d.nsMode==="fallback"?S:S[0],g)}var I=J.useState(_),L=iM(I,2),R=L[0],U=L[1],W=S.join();t.lng&&(W="".concat(t.lng).concat(W));var ne=oM(W),Q=J.useRef(!0);J.useEffect(function(){var ce=d.bindI18n,se=d.bindI18nStore;Q.current=!0,!T&&!y&&(t.lng?P0(s,t.lng,S,function(){Q.current&&U(_)}):D0(s,S,function(){Q.current&&U(_)})),T&&ne&&ne!==W&&Q.current&&U(_);function je(){Q.current&&U(_)}return ce&&s&&s.on(ce,je),se&&s&&s.store.on(se,je),function(){Q.current=!1,ce&&s&&ce.split(" ").forEach(function(qe){return s.off(qe,je)}),se&&s&&se.split(" ").forEach(function(qe){return s.store.off(qe,je)})}},[s,W]);var pe=J.useRef(!0);J.useEffect(function(){Q.current&&!pe.current&&U(_),pe.current=!1},[s,g]);var x=[R,s,T];if(x.t=R,x.i18n=s,x.ready=T,T||!T&&!y)return x;throw new Promise(function(ce){t.lng?P0(s,t.lng,S,function(){return ce()}):D0(s,S,function(){return ce()})})}function aM(e){var t=e.i18n,n=e.defaultNS,r=e.children,i=J.useMemo(function(){return{i18n:t,defaultNS:n}},[t,n]);return J.createElement(Y1.Provider,{value:i},r)}var q1=[],sM=q1.forEach,uM=q1.slice;function lM(e){return sM.call(uM.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}function cM(e){return e?typeof e=="function"?new e:e:null}function fM(){return{handleEmptyResourcesAsFailed:!0,cacheHitMode:"none"}}function A0(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 X1=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=lM(i,this.options||{},fM()),this.allOptions=o,this.options.backends&&this.options.backends.forEach(function(s,l){r.backends[l]=r.backends[l]||cM(s),r.backends[l].init(n,r.options.backendOptions&&r.options.backendOptions[l]||{},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,l=function d(y){if(y>=s)return i(new Error("non of the backend loaded data",!0));var g=y===s-1,S=o.options.handleEmptyResourcesAsFailed&&!g?0:-1,T=o.backends[y];T.read?A0(T,n,r,function(_,I,L){if(!_&&I&&Object.keys(I).length>S){if(i(null,I,y),c(y-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[y+1];R&&R.read&&A0(R,n,r,function(U,W){U||W&&(Object.keys(W).length<=S||(c(y,W),o.options.cacheHitMode==="refreshAndUpdateStore"&&o.services&&o.services.resourceStore&&o.services.resourceStore.addResourceBundle(n,r,W)))})}}else d(y+1)}):d(y+1)},c=function d(y,g){if(!(y<0)){var S=o.backends[y];S.save&&S.save(n,r,g),d(y-1,g)}};l(0)}},{key:"create",value:function(n,r,i,o){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){},l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.backends.forEach(function(c){if(c.create){var d=c.create.bind(c);if(d.length<6){try{var y;d.length===5?y=d(n,r,i,o,l):y=d(n,r,i,o),y&&typeof y.then=="function"?y.then(function(g){return s(null,g)}).catch(s):s(null,y)}catch(g){s(g)}return}d(n,r,i,o,s,l)}})}},{key:"reload",value:function(){var n=this,r=this.services,i=r.backendConnector,o=r.languageUtils,s=r.logger,l=i.language;if(!(l&&l.toLowerCase()==="cimode")){var c=[],d=function(g){var S=o.toResolveHierarchy(g);S.forEach(function(T){c.indexOf(T)<0&&c.push(T)})};d(l),this.allOptions.preload&&this.allOptions.preload.forEach(function(y){return d(y)}),c.forEach(function(y){n.allOptions.ns.forEach(function(g){i.read(y,g,"read",null,null,function(S,T){S&&s.warn("loading namespace ".concat(g," for language ").concat(y," failed"),S),!S&&T&&s.log("loaded namespace ".concat(g," for language ").concat(y),T),i.loaded("".concat(y,"|").concat(g),S,T)})})})}}}]),e}();X1.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 K1(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":Uv(XMLHttpRequest))==="object"}function dM(e){return!!e&&typeof e.then=="function"}function hM(e){return dM(e)?e:Promise.resolve(e)}function pM(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:{}},dh={exports:{}},M0;function gM(){return M0||(M0=1,function(e,t){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof Ko<"u"&&Ko,r=function(){function o(){this.fetch=!1,this.DOMException=n.DOMException}return o.prototype=n,new o}();(function(o){(function(s){var l=typeof o<"u"&&o||typeof self<"u"&&self||typeof l<"u"&&l,c={searchParams:"URLSearchParams"in l,iterable:"Symbol"in l&&"iterator"in Symbol,blob:"FileReader"in l&&"Blob"in l&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in l,arrayBuffer:"ArrayBuffer"in l};function d(ye){return ye&&DataView.prototype.isPrototypeOf(ye)}if(c.arrayBuffer)var y=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],g=ArrayBuffer.isView||function(ye){return ye&&y.indexOf(Object.prototype.toString.call(ye))>-1};function S(ye){if(typeof ye!="string"&&(ye=String(ye)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(ye)||ye==="")throw new TypeError('Invalid character in header field name: "'+ye+'"');return ye.toLowerCase()}function T(ye){return typeof ye!="string"&&(ye=String(ye)),ye}function _(ye){var Pe={next:function(){var Ue=ye.shift();return{done:Ue===void 0,value:Ue}}};return c.iterable&&(Pe[Symbol.iterator]=function(){return Pe}),Pe}function I(ye){this.map={},ye instanceof I?ye.forEach(function(Pe,Ue){this.append(Ue,Pe)},this):Array.isArray(ye)?ye.forEach(function(Pe){this.append(Pe[0],Pe[1])},this):ye&&Object.getOwnPropertyNames(ye).forEach(function(Pe){this.append(Pe,ye[Pe])},this)}I.prototype.append=function(ye,Pe){ye=S(ye),Pe=T(Pe);var Ue=this.map[ye];this.map[ye]=Ue?Ue+", "+Pe:Pe},I.prototype.delete=function(ye){delete this.map[S(ye)]},I.prototype.get=function(ye){return ye=S(ye),this.has(ye)?this.map[ye]:null},I.prototype.has=function(ye){return this.map.hasOwnProperty(S(ye))},I.prototype.set=function(ye,Pe){this.map[S(ye)]=T(Pe)},I.prototype.forEach=function(ye,Pe){for(var Ue in this.map)this.map.hasOwnProperty(Ue)&&ye.call(Pe,this.map[Ue],Ue,this)},I.prototype.keys=function(){var ye=[];return this.forEach(function(Pe,Ue){ye.push(Ue)}),_(ye)},I.prototype.values=function(){var ye=[];return this.forEach(function(Pe){ye.push(Pe)}),_(ye)},I.prototype.entries=function(){var ye=[];return this.forEach(function(Pe,Ue){ye.push([Ue,Pe])}),_(ye)},c.iterable&&(I.prototype[Symbol.iterator]=I.prototype.entries);function L(ye){if(ye.bodyUsed)return Promise.reject(new TypeError("Already read"));ye.bodyUsed=!0}function R(ye){return new Promise(function(Pe,Ue){ye.onload=function(){Pe(ye.result)},ye.onerror=function(){Ue(ye.error)}})}function U(ye){var Pe=new FileReader,Ue=R(Pe);return Pe.readAsArrayBuffer(ye),Ue}function W(ye){var Pe=new FileReader,Ue=R(Pe);return Pe.readAsText(ye),Ue}function ne(ye){for(var Pe=new Uint8Array(ye),Ue=new Array(Pe.length),Je=0;Je<Pe.length;Je++)Ue[Je]=String.fromCharCode(Pe[Je]);return Ue.join("")}function Q(ye){if(ye.slice)return ye.slice(0);var Pe=new Uint8Array(ye.byteLength);return Pe.set(new Uint8Array(ye)),Pe.buffer}function pe(){return this.bodyUsed=!1,this._initBody=function(ye){this.bodyUsed=this.bodyUsed,this._bodyInit=ye,ye?typeof ye=="string"?this._bodyText=ye:c.blob&&Blob.prototype.isPrototypeOf(ye)?this._bodyBlob=ye:c.formData&&FormData.prototype.isPrototypeOf(ye)?this._bodyFormData=ye:c.searchParams&&URLSearchParams.prototype.isPrototypeOf(ye)?this._bodyText=ye.toString():c.arrayBuffer&&c.blob&&d(ye)?(this._bodyArrayBuffer=Q(ye.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(ye)||g(ye))?this._bodyArrayBuffer=Q(ye):this._bodyText=ye=Object.prototype.toString.call(ye):this._bodyText="",this.headers.get("content-type")||(typeof ye=="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(ye)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},c.blob&&(this.blob=function(){var ye=L(this);if(ye)return ye;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 ye=L(this);return ye||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else return this.blob().then(U)}),this.text=function(){var ye=L(this);if(ye)return ye;if(this._bodyBlob)return W(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(ne(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 ce(ye){var Pe=ye.toUpperCase();return x.indexOf(Pe)>-1?Pe:ye}function se(ye,Pe){if(!(this instanceof se))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');Pe=Pe||{};var Ue=Pe.body;if(ye instanceof se){if(ye.bodyUsed)throw new TypeError("Already read");this.url=ye.url,this.credentials=ye.credentials,Pe.headers||(this.headers=new I(ye.headers)),this.method=ye.method,this.mode=ye.mode,this.signal=ye.signal,!Ue&&ye._bodyInit!=null&&(Ue=ye._bodyInit,ye.bodyUsed=!0)}else this.url=String(ye);if(this.credentials=Pe.credentials||this.credentials||"same-origin",(Pe.headers||!this.headers)&&(this.headers=new I(Pe.headers)),this.method=ce(Pe.method||this.method||"GET"),this.mode=Pe.mode||this.mode||null,this.signal=Pe.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&Ue)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(Ue),(this.method==="GET"||this.method==="HEAD")&&(Pe.cache==="no-store"||Pe.cache==="no-cache")){var Je=/([?&])_=[^&]*/;if(Je.test(this.url))this.url=this.url.replace(Je,"$1_="+new Date().getTime());else{var st=/\?/;this.url+=(st.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}se.prototype.clone=function(){return new se(this,{body:this._bodyInit})};function je(ye){var Pe=new FormData;return ye.trim().split("&").forEach(function(Ue){if(Ue){var Je=Ue.split("="),st=Je.shift().replace(/\+/g," "),ke=Je.join("=").replace(/\+/g," ");Pe.append(decodeURIComponent(st),decodeURIComponent(ke))}}),Pe}function qe(ye){var Pe=new I,Ue=ye.replace(/\r?\n[\t ]+/g," ");return Ue.split("\r").map(function(Je){return Je.indexOf(`
5
- `)===0?Je.substr(1,Je.length):Je}).forEach(function(Je){var st=Je.split(":"),ke=st.shift().trim();if(ke){var _e=st.join(":").trim();Pe.append(ke,_e)}}),Pe}pe.call(se.prototype);function Xe(ye,Pe){if(!(this instanceof Xe))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');Pe||(Pe={}),this.type="default",this.status=Pe.status===void 0?200:Pe.status,this.ok=this.status>=200&&this.status<300,this.statusText=Pe.statusText===void 0?"":""+Pe.statusText,this.headers=new I(Pe.headers),this.url=Pe.url||"",this._initBody(ye)}pe.call(Xe.prototype),Xe.prototype.clone=function(){return new Xe(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new I(this.headers),url:this.url})},Xe.error=function(){var ye=new Xe(null,{status:0,statusText:""});return ye.type="error",ye};var rt=[301,302,303,307,308];Xe.redirect=function(ye,Pe){if(rt.indexOf(Pe)===-1)throw new RangeError("Invalid status code");return new Xe(null,{status:Pe,headers:{location:ye}})},s.DOMException=l.DOMException;try{new s.DOMException}catch{s.DOMException=function(Pe,Ue){this.message=Pe,this.name=Ue;var Je=Error(Pe);this.stack=Je.stack},s.DOMException.prototype=Object.create(Error.prototype),s.DOMException.prototype.constructor=s.DOMException}function nt(ye,Pe){return new Promise(function(Ue,Je){var st=new se(ye,Pe);if(st.signal&&st.signal.aborted)return Je(new s.DOMException("Aborted","AbortError"));var ke=new XMLHttpRequest;function _e(){ke.abort()}ke.onload=function(){var He={status:ke.status,statusText:ke.statusText,headers:qe(ke.getAllResponseHeaders()||"")};He.url="responseURL"in ke?ke.responseURL:He.headers.get("X-Request-URL");var Re="response"in ke?ke.response:ke.responseText;setTimeout(function(){Ue(new Xe(Re,He))},0)},ke.onerror=function(){setTimeout(function(){Je(new TypeError("Network request failed"))},0)},ke.ontimeout=function(){setTimeout(function(){Je(new TypeError("Network request failed"))},0)},ke.onabort=function(){setTimeout(function(){Je(new s.DOMException("Aborted","AbortError"))},0)};function Ve(He){try{return He===""&&l.location.href?l.location.href:He}catch{return He}}ke.open(st.method,Ve(st.url),!0),st.credentials==="include"?ke.withCredentials=!0:st.credentials==="omit"&&(ke.withCredentials=!1),"responseType"in ke&&(c.blob?ke.responseType="blob":c.arrayBuffer&&st.headers.get("Content-Type")&&st.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(ke.responseType="arraybuffer")),Pe&&typeof Pe.headers=="object"&&!(Pe.headers instanceof I)?Object.getOwnPropertyNames(Pe.headers).forEach(function(He){ke.setRequestHeader(He,T(Pe.headers[He]))}):st.headers.forEach(function(He,Re){ke.setRequestHeader(Re,He)}),st.signal&&(st.signal.addEventListener("abort",_e),ke.onreadystatechange=function(){ke.readyState===4&&st.signal.removeEventListener("abort",_e)}),ke.send(typeof st._bodyInit>"u"?null:st._bodyInit)})}return nt.polyfill=!0,l.fetch||(l.fetch=nt,l.Headers=I,l.Request=se,l.Response=Xe),s.Headers=I,s.Request=se,s.Response=Xe,s.fetch=nt,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}(dh,dh.exports)),dh.exports}(function(e,t){var n;if(typeof fetch=="function"&&(typeof Ko<"u"&&Ko.fetch?n=Ko.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof pM<"u"&&(typeof window>"u"||typeof window.document>"u")){var r=n||gM();r.default&&(r=r.default),t.default=r,e.exports=t.default}})(Wv,Wv.exports);var Z1=Wv.exports;const J1=Bc(Z1),L0=AI({__proto__:null,default:J1},[Z1]);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 N0(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){vM(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 vM(e,t,n){return t=mM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mM(e){var t=yM(e,"string");return Rc(t)=="symbol"?t:String(t)}function yM(e,t){if(Rc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Rc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Rc(e){"@babel/helpers - typeof";return Rc=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},Rc(e)}var Du;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?Du=global.fetch:typeof window<"u"&&window.fetch?Du=window.fetch:Du=fetch);var Ed;K1()&&(typeof global<"u"&&global.XMLHttpRequest?Ed=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(Ed=window.XMLHttpRequest));var rp;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?rp=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(rp=window.ActiveXObject));!Du&&L0&&!Ed&&!rp&&(Du=J1||L0);typeof Du!="function"&&(Du=void 0);var zv=function(t,n){if(n&&Rc(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},j0=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):Du(t,n).then(o).catch(r)},B0=!1,bM=function(t,n,r,i){t.queryStringParams&&(n=zv(n,t.queryStringParams));var o=N0({},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,l=N0({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:o},B0?{}:s),c=typeof t.alternateFetch=="function"&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{j0(n,l,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(y){delete l[y]}),j0(n,l,i,c),B0=!0}catch(y){i(y)}}},wM=function(t,n,r,i){r&&Rc(r)==="object"&&(r=zv("",r).slice(1)),t.queryStringParams&&(n=zv(n,t.queryStringParams));try{var o;Ed?o=new Ed:o=new rp("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 l in s)o.setRequestHeader(l,s[l]);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)}},xM=function(t,n,r,i){if(typeof r=="function"&&(i=r,r=void 0),i=i||function(){},Du&&n.indexOf("file:")!==0)return bM(t,n,r,i);if(K1()||typeof ActiveXObject=="function")return wM(t,n,r,i);i(new Error("No fetch and no xhr implementation found!"))};function kd(e){"@babel/helpers - typeof";return kd=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},kd(e)}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 Ng(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){Q1(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 SM(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V0(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,eT(r.key),r)}}function TM(e,t,n){return t&&V0(e.prototype,t),n&&V0(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Q1(e,t,n){return t=eT(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eT(e){var t=CM(e,"string");return kd(t)=="symbol"?t:String(t)}function CM(e,t){if(kd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(kd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var EM=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 Q1({},r,i||"")},parseLoadPayload:function(n,r){},request:xM,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},tT=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]:{};SM(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}return TM(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=Ng(Ng(Ng({},EM()),this.options||{}),i),this.allOptions=o,this.services&&this.options.reloadInterval&&setInterval(function(){return r.reload()},this.options.reloadInterval)}},{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 l=this,c=this.options.loadPath;typeof this.options.loadPath=="function"&&(c=this.options.loadPath(n,i)),c=hM(c),c.then(function(d){if(!d)return s(null,{});var y=l.services.interpolator.interpolate(d,{lng:n.join("+"),ns:i.join("+")});l.loadUrl(y,s,r,o)})}},{key:"loadUrl",value:function(n,r,i,o){var s=this,l=typeof i=="string"?[i]:i,c=typeof o=="string"?[o]:o,d=this.options.parseLoadPayload(l,c);this.options.request(this.options,n,d,function(y,g){if(g&&(g.status>=500&&g.status<600||!g.status))return r("failed loading "+n+"; status code: "+g.status,!0);if(g&&g.status>=400&&g.status<500)return r("failed loading "+n+"; status code: "+g.status,!1);if(!g&&y&&y.message&&y.message.indexOf("Failed to fetch")>-1)return r("failed loading "+n+": "+y.message,!0);if(y)return r(y,!1);var S,T;try{typeof g.data=="string"?S=s.options.parse(g.data,i,o):S=g.data}catch{T="failed parsing "+n+" to json"}if(T)return r(T,!1);r(null,S)})}},{key:"create",value:function(n,r,i,o,s){var l=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var c=this.options.parsePayload(r,i,o),d=0,y=[],g=[];n.forEach(function(S){var T=l.options.addPath;typeof l.options.addPath=="function"&&(T=l.options.addPath(S,r));var _=l.services.interpolator.interpolate(T,{lng:S,ns:r});l.options.request(l.options,_,c,function(I,L){d+=1,y.push(I),g.push(L),d===n.length&&typeof s=="function"&&s(y,g)})})}}},{key:"reload",value:function(){var n=this,r=this.services,i=r.backendConnector,o=r.languageUtils,s=r.logger,l=i.language;if(!(l&&l.toLowerCase()==="cimode")){var c=[],d=function(g){var S=o.toResolveHierarchy(g);S.forEach(function(T){c.indexOf(T)<0&&c.push(T)})};d(l),this.allOptions.preload&&this.allOptions.preload.forEach(function(y){return d(y)}),c.forEach(function(y){n.allOptions.ns.forEach(function(g){i.read(y,g,"read",null,null,function(S,T){S&&s.warn("loading namespace ".concat(g," for language ").concat(y," failed"),S),!S&&T&&s.log("loaded namespace ".concat(g," for language ").concat(y),T),i.loaded("".concat(y,"|").concat(g),S,T)})})})}}}]),e}();tT.type="backend";var Xm=(e=>(e.en="en",e.de="de",e))(Xm||{});const kM={en:"English",de:"German"};li.use(X1).use(tM).use(U1).init({initImmediate:!0,ns:["translation"],fallbackLng:Object.keys(kM),fallbackNS:"translation",partialBundledLanguages:!0,resources:{},interpolation:{escapeValue:!1},backend:{backends:[tT],backendOptions:[{loadPath:()=>{const e=window.location.host;return console.log("url",e),`${e}/translations/{{lng}}`},crossDomain:!0,cacheHitMode:"refresh"}]}});const OM=e=>{const t=Cd.useQueryClient(),n=J.useMemo(()=>e.axiosInstance||Ls,[e.axiosInstance]);window.env||(window.env={}),window.env.AUTHEN_DOMAIN=new URL(e.baseUrl).origin;const r=Cd.useQuery({queryKey:["user"],refetchOnWindowFocus:!1,retry:!1,queryFn:()=>n.get(e.baseUrl+"/user-management/api/v1/users/my-account").then(i=>i.data)});return J.useEffect(()=>{window.onpageshow=function(i){i.persisted&&t.invalidateQueries(["user"])}},[t]),r},DM=e=>{const t=Cd.useQueryClient(),n=J.useMemo(()=>e.axiosInstance||Ls,[e.axiosInstance]);window.env||(window.env={}),window.env.AUTHEN_DOMAIN=new URL(e.baseUrl).origin;const r=Cd.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 J.useEffect(()=>{window.onpageshow=function(i){i.persisted&&t.invalidateQueries(["user-permissions"])}},[t]),r},Km=J.createContext({}),PM=e=>{const{children:t,baseUrl:n,axiosInstance:r}=e,i=new URL(n).origin,o=OM({axiosInstance:r,baseUrl:n}),s=DM({axiosInstance:r,baseUrl:n});function l(){window.location.href=`${i}/authentication/login`}function c(){window.location.href=`${i}/authentication/logout`}return ot.jsx(Km.Provider,{value:{user:o==null?void 0:o.data,login:l,logout:c,isFetching:o.isFetching,permissions:s==null?void 0:s.data},children:t})},_M=()=>J.useContext(Km);function RM(e,t,n){return n.some(r=>{const i=e[r];return String(i).toLowerCase().includes(t.toLowerCase())})}function IM(){const[e,t]=J.useState();return J.useEffect(()=>{const n=localStorage.getItem("language");t(n||Xm.en)},[]),{language:e,setLanguage:t}}const nT=J.createContext({}),AM=()=>J.useContext(nT),MM=li,LM=R1,FM=()=>G1(),NM=({children:e})=>{const t=IM();return ot.jsx(nT.Provider,{value:t,children:ot.jsx(aM,{i18n:li,children:e})})};var jM=typeof global=="object"&&global&&global.Object===Object&&global;const BM=jM;var $M=typeof self=="object"&&self&&self.Object===Object&&self,VM=BM||$M||Function("return this")();const rT=VM;var HM=rT.Symbol;const ip=HM;var iT=Object.prototype,UM=iT.hasOwnProperty,WM=iT.toString,td=ip?ip.toStringTag:void 0;function zM(e){var t=UM.call(e,td),n=e[td];try{e[td]=void 0;var r=!0}catch{}var i=WM.call(e);return r&&(t?e[td]=n:delete e[td]),i}var YM=Object.prototype,GM=YM.toString;function qM(e){return GM.call(e)}var XM="[object Null]",KM="[object Undefined]",H0=ip?ip.toStringTag:void 0;function ZM(e){return e==null?e===void 0?KM:XM:H0&&H0 in Object(e)?zM(e):qM(e)}function JM(e){return e!=null&&typeof e=="object"}var QM="[object Symbol]";function eL(e){return typeof e=="symbol"||JM(e)&&ZM(e)==QM}var tL=/\s/;function nL(e){for(var t=e.length;t--&&tL.test(e.charAt(t)););return t}var rL=/^\s+/;function iL(e){return e&&e.slice(0,nL(e)+1).replace(rL,"")}function op(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var U0=0/0,oL=/^[-+]0x[0-9a-f]+$/i,aL=/^0b[01]+$/i,sL=/^0o[0-7]+$/i,uL=parseInt;function W0(e){if(typeof e=="number")return e;if(eL(e))return U0;if(op(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=op(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=iL(e);var n=aL.test(e);return n||sL.test(e)?uL(e.slice(2),n?2:8):oL.test(e)?U0:+e}var lL=function(){return rT.Date.now()};const jg=lL;var cL="Expected a function",fL=Math.max,dL=Math.min;function Vh(e,t,n){var r,i,o,s,l,c,d=0,y=!1,g=!1,S=!0;if(typeof e!="function")throw new TypeError(cL);t=W0(t)||0,op(n)&&(y=!!n.leading,g="maxWait"in n,o=g?fL(W0(n.maxWait)||0,t):o,S="trailing"in n?!!n.trailing:S);function T(pe){var x=r,ce=i;return r=i=void 0,d=pe,s=e.apply(ce,x),s}function _(pe){return d=pe,l=setTimeout(R,t),y?T(pe):s}function I(pe){var x=pe-c,ce=pe-d,se=t-x;return g?dL(se,o-ce):se}function L(pe){var x=pe-c,ce=pe-d;return c===void 0||x>=t||x<0||g&&ce>=o}function R(){var pe=jg();if(L(pe))return U(pe);l=setTimeout(R,I(pe))}function U(pe){return l=void 0,S&&r?T(pe):(r=i=void 0,s)}function W(){l!==void 0&&clearTimeout(l),d=0,r=c=i=l=void 0}function ne(){return l===void 0?s:U(jg())}function Q(){var pe=jg(),x=L(pe);if(r=arguments,i=this,c=pe,x){if(l===void 0)return _(c);if(g)return clearTimeout(l),l=setTimeout(R,t),T(c)}return l===void 0&&(l=setTimeout(R,t)),s}return Q.cancel=W,Q.flush=ne,Q}var hL="Expected a function";function pL(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(hL);return op(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Vh(e,t,{leading:r,maxWait:t,trailing:i})}var gL=!!(typeof window<"u"&&window.document&&window.document.createElement),vL=gL;const oT=Bc(vL);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)},yf=null,z0=null;oT&&window.addEventListener("resize",function(){z0!==window.devicePixelRatio&&(z0=window.devicePixelRatio,yf=null)});function Y0(){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}function aT(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function sT(e){return!e||!e.ownerDocument?document:e.ownerDocument}var uT=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(l,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 lT(e,t){var n;e&&(n=e.classList).add.apply(n,t.split(" "))}function cT(e,t){e&&t.split(" ").forEach(function(n){e.classList.remove(n)})}function fT(e){return".".concat(e.split(" ").join("."))}var mL=Object.freeze({__proto__:null,getElementWindow:aT,getElementDocument:sT,getOptions:uT,addClasses:lT,removeClasses:cT,classNamesToQuery:fT}),cl=aT,Bg=sT,yL=uT,fl=lT,dl=cT,Oo=fT,hh=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.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=cl(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,fl(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(){dl(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(fl(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){dl(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,l,c,d,y,g,S,T,_,I;if(!(!r.draggedAxis||!r.contentWrapperEl)){var L,R=r.axis[r.draggedAxis].track,U=(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,ne=(c=(l=r.contentWrapperEl)===null||l===void 0?void 0:l[r.axis[r.draggedAxis].scrollSizeAttr])!==null&&c!==void 0?c:0,Q=parseInt((y=(d=r.elStyles)===null||d===void 0?void 0:d[r.axis[r.draggedAxis].sizeAttr])!==null&&y!==void 0?y:"0px",10);i.preventDefault(),i.stopPropagation(),r.draggedAxis==="y"?L=i.pageY:L=i.pageX;var pe=L-((S=(g=R.rect)===null||g===void 0?void 0:g[r.axis[r.draggedAxis].offsetAttr])!==null&&S!==void 0?S:0)-r.axis[r.draggedAxis].dragOffset;pe=r.draggedAxis==="x"&&r.isRtl?((_=(T=R.rect)===null||T===void 0?void 0:T[r.axis[r.draggedAxis].sizeAttr])!==null&&_!==void 0?_:0)-W.size-pe:pe;var x=pe/(U-W.size),ce=x*(ne-Q);r.draggedAxis==="x"&&r.isRtl&&(ce=!((I=e.getRtlHelpers())===null||I===void 0)&&I.isScrollingToNegative?-ce:ce),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=ce}},this.onEndDrag=function(i){var o=Bg(r.el),s=cl(r.el);i.preventDefault(),i.stopPropagation(),dl(r.el,r.classNames.dragging),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=pL(this._onMouseMove,64),this.onWindowResize=Vh(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Vh(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Vh(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:Y0()}catch{return Y0()}},e.getOffset=function(t){var n=t.getBoundingClientRect(),r=Bg(t),i=cl(t);return{top:n.top+(i.pageYOffset||r.documentElement.scrollTop),left:n.left+(i.pageXOffset||r.documentElement.scrollLeft)}},e.prototype.init=function(){oT&&(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(Oo(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(Oo(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(Oo(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(Oo(this.classNames.offset)),this.maskEl=this.el.querySelector(Oo(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,Oo(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(Oo(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(Oo(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(Oo(this.classNames.track)).concat(Oo(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(Oo(this.classNames.track)).concat(Oo(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(Oo(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(Oo(this.classNames.scrollbar)))||null,this.options.autoHide||(fl(this.axis.x.scrollbar.el,this.classNames.visible),fl(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,n,r=cl(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=cl(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,l=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var c=this.contentEl.scrollHeight,d=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=r?"auto":"100%",this.placeholderEl.style.width=i?"".concat(n||d,"px"):"auto",this.placeholderEl.style.height="".concat(c,"px");var y=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&d>n,this.axis.y.isOverflowing=c>y,this.axis.x.isOverflowing=s==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=l==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var g=this.axis.x.isOverflowing?this.scrollbarWidth:0,S=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&d>o-S,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&c>y-g,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},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,l;return l=Math.max(~~(s*o),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(l=Math.min(l,this.options.scrollbarMaxSize)),l},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],l=((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 y=d/(s-c),g=~~((l-o.size)*y);g=t==="x"&&this.isRtl?-g+(l-o.size):g,o.el.style.transform=t==="x"?"translate3d(".concat(g,"px, 0, 0)"):"translate3d(0, ".concat(g,"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&&(fl(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.axis[t].isOverflowing&&this.axis[t].scrollbar.isVisible&&(dl(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),fl(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?fl(n.scrollbar.el,this.classNames.hover):dl(n.scrollbar.el,this.classNames.hover)):(dl(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),dl(this.axis[t].track.el,this.classNames.hover),dl(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");var i=Bg(this.el),o=cl(this.el),s=this.axis[n].scrollbar,l=n==="y"?t.pageY:t.pageX;this.axis[n].dragOffset=l-(((r=s.rect)===null||r===void 0?void 0:r[this.axis[n].offsetAttr])||0),this.draggedAxis=n,fl(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,l;n===void 0&&(n="y");var c=this.axis[n];if(!(!this.options.clickOnTrack||!c.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var d=cl(this.el);this.axis[n].scrollbar.rect=c.scrollbar.el.getBoundingClientRect();var y=this.axis[n].scrollbar,g=(o=(i=y.rect)===null||i===void 0?void 0:i[this.axis[n].offsetAttr])!==null&&o!==void 0?o:0,S=parseInt((l=(s=this.elStyles)===null||s===void 0?void 0:s[this.axis[n].sizeAttr])!==null&&l!==void 0?l:"0px",10),T=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],_=n==="y"?this.mouseY-g:this.mouseX-g,I=_<0?-1:1,L=I===-1?T-S:T+S,R=40,U=function(){r.contentWrapperEl&&(I===-1?T>L&&(T-=R,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=T,d.requestAnimationFrame(U)):T<L&&(T+=R,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=T,d.requestAnimationFrame(U)))};U()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var t=cl(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",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=yL,e.helpers=mL,e}(),Xo=function(){return Xo=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},Xo.apply(this,arguments)};function bL(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 dT=Sn.forwardRef(function(e,t){var n=e.children,r=e.scrollableNodeProps,i=r===void 0?{}:r,o=bL(e,["children","scrollableNodeProps"]),s=Sn.useRef(),l=Sn.useRef(),c=Sn.useRef(),d={},y={};Object.keys(o).forEach(function(T){Object.prototype.hasOwnProperty.call(hh.defaultOptions,T)?d[T]=o[T]:y[T]=o[T]});var g=Xo(Xo({},hh.defaultOptions.classNames),d.classNames),S=Xo(Xo({},i),{className:"".concat(g.contentWrapper).concat(i.className?" ".concat(i.className):""),tabIndex:0,role:"region","aria-label":d.ariaLabel||hh.defaultOptions.ariaLabel});return Sn.useEffect(function(){var T;return l.current=S.ref?S.ref.current:l.current,s.current&&(T=new hh(s.current,Xo(Xo(Xo({},d),l.current&&{scrollableNode:l.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)}},[]),Sn.createElement("div",Xo({"data-simplebar":"init",ref:s},y),Sn.createElement("div",{className:g.wrapper},Sn.createElement("div",{className:g.heightAutoObserverWrapperEl},Sn.createElement("div",{className:g.heightAutoObserverEl})),Sn.createElement("div",{className:g.mask},Sn.createElement("div",{className:g.offset},typeof n=="function"?n({scrollableNodeRef:l,scrollableNodeProps:Xo(Xo({},S),{ref:l}),contentNodeRef:c,contentNodeProps:{className:g.contentEl,ref:c}}):Sn.createElement("div",Xo({},S),Sn.createElement("div",{className:g.contentEl},n)))),Sn.createElement("div",{className:g.placeholder})),Sn.createElement("div",{className:"".concat(g.track," simplebar-horizontal")},Sn.createElement("div",{className:g.scrollbar})),Sn.createElement("div",{className:"".concat(g.track," simplebar-vertical")},Sn.createElement("div",{className:g.scrollbar})))});dT.displayName="SimpleBar";const hT=`[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 pT(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=pT(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Eu(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=pT(e))&&(r&&(r+=" "),r+=t);return r}const Od=e=>typeof e=="number"&&!isNaN(e),Oc=e=>typeof e=="string",Zo=e=>typeof e=="function",Hh=e=>Oc(e)||Zo(e)?e:null,Yv=e=>J.isValidElement(e)||Oc(e)||Zo(e)||Od(e);function wL(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 Rp(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:o=300}=e;return function(s){let{children:l,position:c,preventExitTransition:d,done:y,nodeRef:g,isIn:S,playToast:T}=s;const _=r?`${t}--${c}`:t,I=r?`${n}--${c}`:n,L=J.useRef(0);return J.useLayoutEffect(()=>{const R=g.current,U=_.split(" "),W=ne=>{ne.target===g.current&&(T(),R.removeEventListener("animationend",W),R.removeEventListener("animationcancel",W),L.current===0&&ne.type!=="animationcancel"&&R.classList.remove(...U))};R.classList.add(...U),R.addEventListener("animationend",W),R.addEventListener("animationcancel",W)},[]),J.useEffect(()=>{const R=g.current,U=()=>{R.removeEventListener("animationend",U),i?wL(R,y,o):y()};S||(d?U():(L.current=1,R.className+=` ${I}`,R.addEventListener("animationend",U)))},[S]),J.createElement(J.Fragment,null,l)}}function G0(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 so=new Map;let Dd=[];const Gv=new Set,xL=e=>Gv.forEach(t=>t(e)),gT=()=>so.size>0;function vT(e,t){var n;if(t)return!((n=so.get(t))==null||!n.isToastActive(e));let r=!1;return so.forEach(i=>{i.isToastActive(e)&&(r=!0)}),r}function mT(e,t){Yv(e)&&(gT()||Dd.push({content:e,options:t}),so.forEach(n=>{n.buildToast(e,t)}))}function q0(e,t){so.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 SL(e){const{subscribe:t,getSnapshot:n,setProps:r}=J.useRef(function(o){const s=o.containerId||1;return{subscribe(l){const c=function(y,g,S){let T=1,_=0,I=[],L=[],R=[],U=g;const W=new Map,ne=new Set,Q=()=>{R=Array.from(W.values()),ne.forEach(ce=>ce())},pe=ce=>{L=ce==null?[]:L.filter(se=>se!==ce),Q()},x=ce=>{const{toastId:se,onOpen:je,updateId:qe,children:Xe}=ce.props,rt=qe==null;ce.staleId&&W.delete(ce.staleId),W.set(se,ce),L=[...L,ce.props.toastId].filter(nt=>nt!==ce.staleId),Q(),S(G0(ce,rt?"added":"updated")),rt&&Zo(je)&&je(J.isValidElement(Xe)&&Xe.props)};return{id:y,props:U,observe:ce=>(ne.add(ce),()=>ne.delete(ce)),toggle:(ce,se)=>{W.forEach(je=>{se!=null&&se!==je.props.toastId||Zo(je.toggle)&&je.toggle(ce)})},removeToast:pe,toasts:W,clearQueue:()=>{_-=I.length,I=[]},buildToast:(ce,se)=>{if((Ve=>{let{containerId:He,toastId:Re,updateId:Fe}=Ve;const ze=He?He!==y:y!==1,ut=W.has(Re)&&Fe==null;return ze||ut})(se))return;const{toastId:je,updateId:qe,data:Xe,staleId:rt,delay:nt}=se,ye=()=>{pe(je)},Pe=qe==null;Pe&&_++;const Ue={...U,style:U.toastStyle,key:T++,...Object.fromEntries(Object.entries(se).filter(Ve=>{let[He,Re]=Ve;return Re!=null})),toastId:je,updateId:qe,data:Xe,closeToast:ye,isIn:!1,className:Hh(se.className||U.toastClassName),bodyClassName:Hh(se.bodyClassName||U.bodyClassName),progressClassName:Hh(se.progressClassName||U.progressClassName),autoClose:!se.isLoading&&(Je=se.autoClose,st=U.autoClose,Je===!1||Od(Je)&&Je>0?Je:st),deleteToast(){const Ve=W.get(je),{onClose:He,children:Re}=Ve.props;Zo(He)&&He(J.isValidElement(Re)&&Re.props),S(G0(Ve,"removed")),W.delete(je),_--,_<0&&(_=0),I.length>0?x(I.shift()):Q()}};var Je,st;Ue.closeButton=U.closeButton,se.closeButton===!1||Yv(se.closeButton)?Ue.closeButton=se.closeButton:se.closeButton===!0&&(Ue.closeButton=!Yv(U.closeButton)||U.closeButton);let ke=ce;J.isValidElement(ce)&&!Oc(ce.type)?ke=J.cloneElement(ce,{closeToast:ye,toastProps:Ue,data:Xe}):Zo(ce)&&(ke=ce({closeToast:ye,toastProps:Ue,data:Xe}));const _e={content:ke,props:Ue,staleId:rt};U.limit&&U.limit>0&&_>U.limit&&Pe?I.push(_e):Od(nt)?setTimeout(()=>{x(_e)},nt):x(_e)},setProps(ce){U=ce},setToggle:(ce,se)=>{W.get(ce).toggle=se},isToastActive:ce=>L.some(se=>se===ce),getSnapshot:()=>U.newestOnTop?R.reverse():R}}(s,o,xL);so.set(s,c);const d=c.observe(l);return Dd.forEach(y=>mT(y.content,y.options)),Dd=[],()=>{d(),so.delete(s)}},setProps(l){var c;(c=so.get(s))==null||c.setProps(l)},getSnapshot(){var l;return(l=so.get(s))==null?void 0:l.getSnapshot()}}}(e)).current;r(e);const i=J.useSyncExternalStore(t,n,n);return{getToastToRender:function(o){if(!i)return[];const s=new Map;return i.forEach(l=>{const{position:c}=l.props;s.has(c)||s.set(c,[]),s.get(c).push(l)}),Array.from(s,l=>o(l[0],l[1]))},isToastActive:vT,count:i==null?void 0:i.length}}function TL(e){const[t,n]=J.useState(!1),[r,i]=J.useState(!1),o=J.useRef(null),s=J.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:l,pauseOnHover:c,closeToast:d,onClick:y,closeOnClick:g}=e;var S,T;function _(){n(!0)}function I(){n(!1)}function L(W){const ne=o.current;s.canDrag&&ne&&(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),ne.style.transform=`translate3d(${e.draggableDirection==="x"?`${s.delta}px, var(--y)`:`0, calc(${s.delta}px + var(--y))`},0)`,ne.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=so.get((S={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||T.setToggle(S.id,S.fn),J.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||I(),window.addEventListener("focus",_),window.addEventListener("blur",I),()=>{window.removeEventListener("focus",_),window.removeEventListener("blur",I)}},[e.pauseOnFocusLoss]);const U={onPointerDown:function(W){if(e.draggable===!0||e.draggable===W.pointerType){s.didMove=!1,document.addEventListener("pointermove",L),document.addEventListener("pointerup",R);const ne=o.current;s.canCloseOnClick=!0,s.canDrag=!0,ne.style.transition="none",e.draggableDirection==="x"?(s.start=W.clientX,s.removalDistance=ne.offsetWidth*(e.draggablePercent/100)):(s.start=W.clientY,s.removalDistance=ne.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(W){const{top:ne,bottom:Q,left:pe,right:x}=o.current.getBoundingClientRect();W.nativeEvent.type!=="touchend"&&e.pauseOnHover&&W.clientX>=pe&&W.clientX<=x&&W.clientY>=ne&&W.clientY<=Q?I():_()}};return l&&c&&(U.onMouseEnter=I,e.stacked||(U.onMouseLeave=_)),g&&(U.onClick=W=>{y&&y(W),s.canCloseOnClick&&d()}),{playToast:_,pauseToast:I,isRunning:t,preventExitTransition:r,toastRef:o,eventHandlers:U}}function CL(e){let{delay:t,isRunning:n,closeToast:r,type:i="default",hide:o,className:s,style:l,controlledProgress:c,progress:d,rtl:y,isIn:g,theme:S}=e;const T=o||c&&d===0,_={...l,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};c&&(_.transform=`scaleX(${d})`);const I=Eu("Toastify__progress-bar",c?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${S}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":y}),L=Zo(s)?s({rtl:y,type:i,defaultClassName:I}):Eu(I,s),R={[c&&d>=1?"onTransitionEnd":"onAnimationEnd"]:c&&d<1?null:()=>{g&&r()}};return J.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":T},J.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${S} Toastify__progress-bar--${i}`}),J.createElement("div",{role:"progressbar","aria-hidden":T?"true":"false","aria-label":"notification timer",className:L,style:_,...R}))}let EL=1;const yT=()=>""+EL++;function kL(e){return e&&(Oc(e.toastId)||Od(e.toastId))?e.toastId:yT()}function ld(e,t){return mT(e,t),t.toastId}function ap(e,t){return{...t,type:t&&t.type||e,toastId:kL(t)}}function ph(e){return(t,n)=>ld(t,ap(e,n))}function En(e,t){return ld(e,ap("default",t))}En.loading=(e,t)=>ld(e,ap("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),En.promise=function(e,t,n){let r,{pending:i,error:o,success:s}=t;i&&(r=Oc(i)?En.loading(i,n):En.loading(i.render,{...n,...i}));const l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},c=(y,g,S)=>{if(g==null)return void En.dismiss(r);const T={type:y,...l,...n,data:S},_=Oc(g)?{render:g}:g;return r?En.update(r,{...T,..._}):En(_.render,{...T,..._}),S},d=Zo(e)?e():e;return d.then(y=>c("success",s,y)).catch(y=>c("error",o,y)),d},En.success=ph("success"),En.info=ph("info"),En.error=ph("error"),En.warning=ph("warning"),En.warn=En.warning,En.dark=(e,t)=>ld(e,ap("default",{theme:"dark",...t})),En.dismiss=function(e){(function(t){var n;if(gT()){if(t==null||Oc(n=t)||Od(n))so.forEach(i=>{i.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){var r;(r=so.get(t.containerId))!=null&&r.removeToast(t.id)||so.forEach(i=>{i.removeToast(t.id)})}}else Dd=Dd.filter(i=>t!=null&&i.options.toastId!==t)})(e)},En.clearWaitingQueue=function(e){e===void 0&&(e={}),so.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},En.isActive=vT,En.update=function(e,t){t===void 0&&(t={});const n=((r,i)=>{var o;let{containerId:s}=i;return(o=so.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:yT()};o.toastId!==e&&(o.staleId=e);const s=o.render||i;delete o.render,ld(s,o)}},En.done=e=>{En.update(e,{progress:1})},En.onChange=function(e){return Gv.add(e),()=>{Gv.delete(e)}},En.play=e=>q0(!0,e),En.pause=e=>q0(!1,e);const OL=typeof window<"u"?J.useLayoutEffect:J.useEffect,gh=e=>{let{theme:t,type:n,isLoading:r,...i}=e;return J.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 J.createElement(gh,{...e},J.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 J.createElement(gh,{...e},J.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 J.createElement(gh,{...e},J.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 J.createElement(gh,{...e},J.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 J.createElement("div",{className:"Toastify__spinner"})}},DL=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:o}=TL(e),{closeButton:s,children:l,autoClose:c,onClick:d,type:y,hideProgressBar:g,closeToast:S,transition:T,position:_,className:I,style:L,bodyClassName:R,bodyStyle:U,progressClassName:W,progressStyle:ne,updateId:Q,role:pe,progress:x,rtl:ce,toastId:se,deleteToast:je,isIn:qe,isLoading:Xe,closeOnClick:rt,theme:nt}=e,ye=Eu("Toastify__toast",`Toastify__toast-theme--${nt}`,`Toastify__toast--${y}`,{"Toastify__toast--rtl":ce},{"Toastify__toast--close-on-click":rt}),Pe=Zo(I)?I({rtl:ce,position:_,type:y,defaultClassName:ye}):Eu(ye,I),Ue=function(_e){let{theme:Ve,type:He,isLoading:Re,icon:Fe}=_e,ze=null;const ut={theme:Ve,type:He};return Fe===!1||(Zo(Fe)?ze=Fe({...ut,isLoading:Re}):J.isValidElement(Fe)?ze=J.cloneElement(Fe,ut):Re?ze=$g.spinner():(mt=>mt in $g)(He)&&(ze=$g[He](ut))),ze}(e),Je=!!x||!c,st={closeToast:S,type:y,theme:nt};let ke=null;return s===!1||(ke=Zo(s)?s(st):J.isValidElement(s)?J.cloneElement(s,st):function(_e){let{closeToast:Ve,theme:He,ariaLabel:Re="close"}=_e;return J.createElement("button",{className:`Toastify__close-button Toastify__close-button--${He}`,type:"button",onClick:Fe=>{Fe.stopPropagation(),Ve(Fe)},"aria-label":Re},J.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},J.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(st)),J.createElement(T,{isIn:qe,done:je,position:_,preventExitTransition:n,nodeRef:r,playToast:o},J.createElement("div",{id:se,onClick:d,"data-in":qe,className:Pe,...i,style:L,ref:r},J.createElement("div",{...qe&&{role:pe},className:Zo(R)?R({type:y}):Eu("Toastify__toast-body",R),style:U},Ue!=null&&J.createElement("div",{className:Eu("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!Xe})},Ue),J.createElement("div",null,l)),ke,J.createElement(CL,{...Q&&!Je?{key:`pb-${Q}`}:{},rtl:ce,theme:nt,delay:c,isRunning:t,isIn:qe,closeToast:S,hide:g,type:y,style:ne,className:W,controlledProgress:Je,progress:x||0})))},Ip=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},PL=Rp(Ip("bounce",!0));Rp(Ip("slide",!0));Rp(Ip("zoom"));Rp(Ip("flip"));const _L={position:"top-right",transition:PL,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function RL(e){let t={..._L,...e};const n=e.stacked,[r,i]=J.useState(!0),o=J.useRef(null),{getToastToRender:s,isToastActive:l,count:c}=SL(t),{className:d,style:y,rtl:g,containerId:S}=t;function T(I){const L=Eu("Toastify__toast-container",`Toastify__toast-container--${I}`,{"Toastify__toast-container--rtl":g});return Zo(d)?d({position:I,rtl:g,defaultClassName:L}):Eu(L,Hh(d))}function _(){n&&(i(!0),En.play())}return OL(()=>{if(n){var I;const L=o.current.querySelectorAll('[data-in="true"]'),R=12,U=(I=t.position)==null?void 0:I.includes("top");let W=0,ne=0;Array.from(L).reverse().forEach((Q,pe)=>{const x=Q;x.classList.add("Toastify__toast--stacked"),pe>0&&(x.dataset.collapsed=`${r}`),x.dataset.pos||(x.dataset.pos=U?"top":"bot");const ce=W*(r?.2:1)+(r?0:R*pe);x.style.setProperty("--y",`${U?ce:-1*ce}px`),x.style.setProperty("--g",`${R}`),x.style.setProperty("--s",""+(1-(r?ne:0))),W+=x.offsetHeight,ne+=.025})}},[r,c,n]),J.createElement("div",{ref:o,className:"Toastify",id:S,onMouseEnter:()=>{n&&(i(!1),En.pause())},onMouseLeave:_},s((I,L)=>{const R=L.length?{...y}:{...y,pointerEvents:"none"};return J.createElement("div",{className:T(I),style:R,key:`container-${I}`},L.map(U=>{let{content:W,props:ne}=U;return J.createElement(DL,{...ne,stacked:n,collapseAll:_,isIn:l(ne.toastId,ne.containerId),style:ne.style,key:`toast-${ne.key}`},W)}))}))}function IL(){return ot.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ot.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"}),ot.jsx("path",{d:"M10.9942 6.89636V11.6737",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),ot.jsx("path",{d:"M10.9941 15.1038H11.0049",stroke:"#E01B00",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function AL(){return ot.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ot.jsx("rect",{width:"24",height:"24",rx:"12",fill:"#009D4F"}),ot.jsx("path",{d:"M7.25244 12L10.4174 15.165L16.7474 8.83496",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function ML(){return ot.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ot.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"}),ot.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 Zm={paddingLeft:"16px",borderLeft:"2px solid",boxShadow:"none",fontFamily:"inherit"},LL=({closeToast:e})=>ot.jsx("i",{className:"material-icons",onClick:e,style:{cursor:"pointer"},children:ot.jsx("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:ot.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"})})}),bT=e=>{En.success(e,{icon:ot.jsx(AL,{}),bodyStyle:{},position:"bottom-right",style:{...Zm,background:Fi.successLight,borderColor:Fi.success,color:Fi.success}})},Ap=e=>{En.error(e,{icon:ot.jsx(IL,{}),position:"bottom-right",style:{...Zm,background:Fi.dangerLight,borderColor:Fi.danger,color:Fi.danger}})},FL=e=>{En.error(e,{icon:ot.jsx(ML,{}),position:"bottom-right",style:{...Zm,background:Fi.warningLight,borderColor:Fi.warning,color:Fi.warning}})},NL=e=>{En(e,{closeButton:LL,toastId:"notify",position:"top-right",hideProgressBar:!0,containerId:"toastifyNotification",style:{width:"610px",minHeight:"72px",padding:"12px 24px 12px 0",color:Fi.textPrimary}})};function wT(e){let t=null;return()=>(t==null&&(t=e()),t)}function jL(e,t){return e.filter(n=>n!==t)}function BL(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 $L{enter(t){const n=this.entered.length,r=i=>this.isNodeInDocument(i)&&(!i.contains||i.contains(t));return this.entered=BL(this.entered.filter(r),[t]),n===0&&this.entered.length>0}leave(t){const n=this.entered.length;return this.entered=jL(this.entered.filter(this.isNodeInDocument),t),n>0&&this.entered.length===0}reset(){this.entered=[]}constructor(t){this.entered=[],this.isNodeInDocument=t}}class VL{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 xT="__NATIVE_FILE__",ST="__NATIVE_URL__",TT="__NATIVE_TEXT__",CT="__NATIVE_HTML__",X0=Object.freeze(Object.defineProperty({__proto__:null,FILE:xT,HTML:CT,TEXT:TT,URL:ST},Symbol.toStringTag,{value:"Module"}));function Vg(e,t,n){const r=t.reduce((i,o)=>i||e.getData(o),"");return r??n}const qv={[xT]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[CT]:{exposeProperties:{html:(e,t)=>Vg(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[ST]:{exposeProperties:{urls:(e,t)=>Vg(e,t,"").split(`
7
- `),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[TT]:{exposeProperties:{text:(e,t)=>Vg(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function HL(e,t){const n=qv[e];if(!n)throw new Error(`native type ${e} has no configuration`);const r=new VL(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 UL=wT(()=>/firefox/i.test(navigator.userAgent)),ET=wT(()=>!!window.safari);class K0{interpolate(t){const{xs:n,ys:r,c1s:i,c2s:o,c3s:s}=this;let l=n.length-1;if(t===n[l])return r[l];let c=0,d=s.length-1,y;for(;c<=d;){y=Math.floor(.5*(c+d));const T=n[y];if(T<t)c=y+1;else if(T>t)d=y-1;else return r[y]}l=Math.max(0,d);const g=t-n[l],S=g*g;return r[l]+i[l]*g+o[l]*S+s[l]*g*S}constructor(t,n){const{length:r}=t,i=[];for(let T=0;T<r;T++)i.push(T);i.sort((T,_)=>t[T]<t[_]?-1:1);const o=[],s=[];let l,c;for(let T=0;T<r-1;T++)l=t[T+1]-t[T],c=n[T+1]-n[T],o.push(l),s.push(c/l);const d=[s[0]];for(let T=0;T<o.length-1;T++){const _=s[T],I=s[T+1];if(_*I<=0)d.push(0);else{l=o[T];const L=o[T+1],R=l+L;d.push(3*R/((R+L)/_+(R+l)/I))}}d.push(s[s.length-1]);const y=[],g=[];let S;for(let T=0;T<d.length-1;T++){S=s[T];const _=d[T],I=1/o[T],L=_+d[T+1]-S-S;y.push((S-_-L)*I),g.push(L*I*I)}this.xs=t,this.ys=n,this.c1s=d,this.c2s=y,this.c3s=g}}const WL=1;function kT(e){const t=e.nodeType===WL?e:e.parentElement;if(!t)return null;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function vh(e){return{x:e.clientX,y:e.clientY}}function zL(e){var t;return e.nodeName==="IMG"&&(UL()||!(!((t=document.documentElement)===null||t===void 0)&&t.contains(e)))}function YL(e,t,n,r){let i=e?t.width:n,o=e?t.height:r;return ET()&&e&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}function GL(e,t,n,r,i){const o=zL(t),l=kT(o?e:t),c={x:n.x-l.x,y:n.y-l.y},{offsetWidth:d,offsetHeight:y}=e,{anchorX:g,anchorY:S}=r,{dragPreviewWidth:T,dragPreviewHeight:_}=YL(o,t,d,y),I=()=>{let pe=new K0([0,.5,1],[c.y,c.y/y*_,c.y+_-y]).interpolate(S);return ET()&&o&&(pe+=(window.devicePixelRatio-1)*_),pe},L=()=>new K0([0,.5,1],[c.x,c.x/d*T,c.x+T-d]).interpolate(g),{offsetX:R,offsetY:U}=i,W=R===0||R,ne=U===0||U;return{x:W?R:L(),y:ne?U:I()}}let qL=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 XL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z0(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){XL(e,i,n[i])})}return e}class KL{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 Z0({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 Z0({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}isDraggingNativeItem(){const t=this.monitor.getItemType();return Object.keys(X0).some(n=>X0[n]===t)}beginDragNativeItem(t,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=HL(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&&kT(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=vh(i);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(o||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:s});const{dataTransfer:l}=i,c=Hg(l);if(this.monitor.isDragging()){if(l&&typeof l.setDragImage=="function"){const y=this.monitor.getSourceId(),g=this.sourceNodes.get(y),S=this.sourcePreviewNodes.get(y)||g;if(S){const{anchorX:T,anchorY:_,offsetX:I,offsetY:L}=this.getCurrentSourcePreviewNodeOptions(),W=GL(g,S,s,{anchorX:T,anchorY:_},{offsetX:I,offsetY:L});l.setDragImage(S,W.x,W.y)}}try{l==null||l.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(l&&!l.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:l}=i,c=Hg(l);c&&this.beginDragNativeItem(c,l)},this.handleTopDragEnter=i=>{const{dragEnterTargetIds:o}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=i.altKey,o.length>0&&this.actions.hover(o,{clientOffset:vh(i)}),o.some(l=>this.monitor.canDropOnTarget(l))&&(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=i=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var o;(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(i.dataTransfer)}},this.handleTopDragOver=i=>{const{dragOverTargetIds:o}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect="none");return}this.altKeyPressed=i.altKey,this.lastClientOffset=vh(i),this.scheduleHover(o),(o||[]).some(l=>this.monitor.canDropOnTarget(l))?(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:vh(i)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=i=>{const o=i.target;typeof o.dragDrop=="function"&&(o.tagName==="INPUT"||o.tagName==="SELECT"||o.tagName==="TEXTAREA"||o.isContentEditable||(i.preventDefault(),o.dragDrop()))},this.options=new qL(n,r),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new $L(this.isNodeInDocument)}}let mh;function ZL(){return mh||(mh=new Image,mh.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),mh}const JL=function(t,n,r){return new KL(t,n,r)};var Dc=[],QL=function(){return Dc.some(function(e){return e.activeTargets.length>0})},e2=function(){return Dc.some(function(e){return e.skippedTargets.length>0})},J0="ResizeObserver loop completed with undelivered notifications.",t2=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:J0}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=J0),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 Pc=function(e){return Object.freeze(e)},n2=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,Pc(this)}return e}(),OT=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,Pc(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,i=t.top,o=t.right,s=t.bottom,l=t.left,c=t.width,d=t.height;return{x:n,y:r,top:i,right:o,bottom:s,left:l,width:c,height:d}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Jm=function(e){return e instanceof SVGElement&&"getBBox"in e},DT=function(e){if(Jm(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)},Q0=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)},r2=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},cd=typeof window<"u"?window:{},yh=new WeakMap,ew=/auto|scroll/,i2=/^tb|vertical/,o2=/msie|trident/i.test(cd.navigator&&cd.navigator.userAgent),_s=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 n2((n?t:e)||0,(n?e:t)||0)},tw=Pc({devicePixelContentBoxSize:Of(),borderBoxSize:Of(),contentBoxSize:Of(),contentRect:new OT(0,0,0,0)}),PT=function(e,t){if(t===void 0&&(t=!1),yh.has(e)&&!t)return yh.get(e);if(DT(e))return yh.set(e,tw),tw;var n=getComputedStyle(e),r=Jm(e)&&e.ownerSVGElement&&e.getBBox(),i=!o2&&n.boxSizing==="border-box",o=i2.test(n.writingMode||""),s=!r&&ew.test(n.overflowY||""),l=!r&&ew.test(n.overflowX||""),c=r?0:_s(n.paddingTop),d=r?0:_s(n.paddingRight),y=r?0:_s(n.paddingBottom),g=r?0:_s(n.paddingLeft),S=r?0:_s(n.borderTopWidth),T=r?0:_s(n.borderRightWidth),_=r?0:_s(n.borderBottomWidth),I=r?0:_s(n.borderLeftWidth),L=g+d,R=c+y,U=I+T,W=S+_,ne=l?e.offsetHeight-W-e.clientHeight:0,Q=s?e.offsetWidth-U-e.clientWidth:0,pe=i?L+U:0,x=i?R+W:0,ce=r?r.width:_s(n.width)-pe-Q,se=r?r.height:_s(n.height)-x-ne,je=ce+L+Q+U,qe=se+R+ne+W,Xe=Pc({devicePixelContentBoxSize:Of(Math.round(ce*devicePixelRatio),Math.round(se*devicePixelRatio),o),borderBoxSize:Of(je,qe,o),contentBoxSize:Of(ce,se,o),contentRect:new OT(g,c,ce,se)});return yh.set(e,Xe),Xe},_T=function(e,t,n){var r=PT(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}},a2=function(){function e(t){var n=PT(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=Pc([n.borderBoxSize]),this.contentBoxSize=Pc([n.contentBoxSize]),this.devicePixelContentBoxSize=Pc([n.devicePixelContentBoxSize])}return e}(),RT=function(e){if(DT(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},s2=function(){var e=1/0,t=[];Dc.forEach(function(s){if(s.activeTargets.length!==0){var l=[];s.activeTargets.forEach(function(d){var y=new a2(d.target),g=RT(d.target);l.push(y),d.lastReportedSize=_T(d.target,d.observedBox),g<e&&(e=g)}),t.push(function(){s.callback.call(s.observer,l,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},nw=function(e){Dc.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(i){i.isActive()&&(RT(i.target)>e?n.activeTargets.push(i):n.skippedTargets.push(i))})})},u2=function(){var e=0;for(nw(e);QL();)e=s2(),nw(e);return e2()&&t2(),e>0},Ug,IT=[],l2=function(){return IT.splice(0).forEach(function(e){return e()})},c2=function(e){if(!Ug){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return l2()}).observe(n,r),Ug=function(){n.textContent="".concat(t?t--:t++)}}IT.push(e),Ug()},f2=function(e){c2(function(){requestAnimationFrame(e)})},Uh=0,d2=function(){return!!Uh},h2=250,p2={attributes:!0,characterData:!0,childList:!0,subtree:!0},rw=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],iw=function(e){return e===void 0&&(e=0),Date.now()+e},Wg=!1,g2=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=h2),!Wg){Wg=!0;var r=iw(t);f2(function(){var i=!1;try{i=u2()}finally{if(Wg=!1,t=r-iw(),!d2())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,p2)};document.body?n():cd.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),rw.forEach(function(n){return cd.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),rw.forEach(function(n){return cd.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),Xv=new g2,ow=function(e){!Uh&&e>0&&Xv.start(),Uh+=e,!Uh&&Xv.stop()},v2=function(e){return!Jm(e)&&!r2(e)&&getComputedStyle(e).display==="inline"},m2=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=_T(this.target,this.observedBox,!0);return v2(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),y2=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),bh=new WeakMap,aw=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},wh=function(){function e(){}return e.connect=function(t,n){var r=new y2(t,n);bh.set(t,r)},e.observe=function(t,n,r){var i=bh.get(t),o=i.observationTargets.length===0;aw(i.observationTargets,n)<0&&(o&&Dc.push(i),i.observationTargets.push(new m2(n,r&&r.box)),ow(1),Xv.schedule())},e.unobserve=function(t,n){var r=bh.get(t),i=aw(r.observationTargets,n),o=r.observationTargets.length===1;i>=0&&(o&&Dc.splice(Dc.indexOf(r),1),r.observationTargets.splice(i,1),ow(-1))},e.disconnect=function(t){var n=this,r=bh.get(t);r.observationTargets.slice().forEach(function(i){return n.unobserve(t,i.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),b2=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.");wh.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(!Q0(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");wh.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(!Q0(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");wh.unobserve(this,t)},e.prototype.disconnect=function(){wh.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 AT(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 at=function(){return at=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},at.apply(this,arguments)};function _a(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(l){s={error:l}}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 sw="production",MT=typeof process>"u"||process.env===void 0?sw:process.env.NODE_ENV||sw,Tu=function(e){return{isEnabled:function(t){return e.some(function(n){return!!t[n]})}}},_d={measureLayout:Tu(["layout","layoutId","drag"]),animation:Tu(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:Tu(["exit"]),drag:Tu(["drag","dragControls"]),focus:Tu(["whileFocus"]),hover:Tu(["whileHover","onHoverStart","onHoverEnd"]),tap:Tu(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Tu(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:Tu(["whileInView","onViewportEnter","onViewportLeave"])};function w2(e){for(var t in e)e[t]!==null&&(t==="projectionNodeConstructor"?_d.projectionNodeConstructor=e[t]:_d[t].Component=e[t])}var Hd=function(){},Da=function(){};process.env.NODE_ENV!=="production"&&(Hd=function(e,t){!e&&typeof console<"u"&&console.warn(t)},Da=function(e,t){if(!e)throw new Error(t)});var LT=J.createContext({strict:!1}),FT=Object.keys(_d),x2=FT.length;function S2(e,t,n){var r=[],i=J.useContext(LT);if(!t)return null;MT!=="production"&&n&&i.strict&&Da(!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<x2;o++){var s=FT[o],l=_d[s],c=l.isEnabled,d=l.Component;c(e)&&d&&r.push(Sn.createElement(d,at({key:s},e,{visualElement:t})))}return r}var Qm=J.createContext({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),Mp=J.createContext({});function T2(){return J.useContext(Mp).visualElement}var Lp=J.createContext(null),jf=typeof document<"u",uw=jf?J.useLayoutEffect:J.useEffect,Zv={current:null},NT=!1;function C2(){if(NT=!0,!!jf)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 E2(){!NT&&C2();var e=Gr(J.useState(Zv.current),1),t=e[0];return t}function k2(){var e=E2(),t=J.useContext(Qm).reducedMotion;return t==="never"?!1:t==="always"?!0:e}function O2(e,t,n,r){var i=J.useContext(LT),o=T2(),s=J.useContext(Lp),l=k2(),c=J.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:l}));var d=c.current;return uw(function(){d==null||d.syncRender()}),J.useEffect(function(){var y;(y=d==null?void 0:d.animationState)===null||y===void 0||y.animateChanges()}),uw(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 D2(e,t,n){return J.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 jT(e){return Array.isArray(e)}function rs(e){return typeof e=="string"||jT(e)}function P2(e){var t={};return e.forEachValue(function(n,r){return t[r]=n.get()}),t}function _2(e){var t={};return e.forEachValue(function(n,r){return t[r]=n.getVelocity()}),t}function BT(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 BT(r,t,n??r.custom,P2(e),_2(e))}function Np(e){var t;return typeof((t=e.animate)===null||t===void 0?void 0:t.start)=="function"||rs(e.initial)||rs(e.animate)||rs(e.whileHover)||rs(e.whileDrag)||rs(e.whileTap)||rs(e.whileFocus)||rs(e.exit)}function $T(e){return!!(Np(e)||e.variants)}function R2(e,t){if(Np(e)){var n=e.initial,r=e.animate;return{initial:n===!1||rs(n)?n:void 0,animate:rs(r)?r:void 0}}return e.inherit!==!1?t:{}}function I2(e){var t=R2(e,J.useContext(Mp)),n=t.initial,r=t.animate;return J.useMemo(function(){return{initial:n,animate:r}},[lw(n),lw(r)])}function lw(e){return Array.isArray(e)?e.join(" "):e}function jp(e){var t=J.useRef(null);return t.current===null&&(t.current=e()),t.current}var fd={hasAnimatedSinceResize:!0,hasEverUpdated:!1},A2=1;function M2(){return jp(function(){if(fd.hasEverUpdated)return A2++})}var VT=J.createContext({}),HT=J.createContext({});function L2(e,t,n,r){var i,o=t.layoutId,s=t.layout,l=t.drag,c=t.dragConstraints,d=t.layoutScroll,y=J.useContext(HT);!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:!!l||c&&xf(c),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:typeof s=="string"?s:"both",initialPromotionConfig:y,layoutScroll:d}))}var F2=function(e){AT(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}(J.Component);function N2(e){var t=e.preloadedFeatures,n=e.createVisualElement,r=e.projectionNodeConstructor,i=e.useRender,o=e.useVisualState,s=e.Component;t&&w2(t);function l(c,d){var y=j2(c);c=at(at({},c),{layoutId:y});var g=J.useContext(Qm),S=null,T=I2(c),_=g.isStatic?void 0:M2(),I=o(c,g.isStatic);return!g.isStatic&&jf&&(T.visualElement=O2(s,I,at(at({},g),c),n),L2(_,c,T.visualElement,r||_d.projectionNodeConstructor),S=S2(c,T.visualElement,t)),Sn.createElement(F2,{visualElement:T.visualElement,props:at(at({},g),c)},S,Sn.createElement(Mp.Provider,{value:T},i(s,c,_,D2(I,T.visualElement,d),I,g.isStatic,T.visualElement)))}return J.forwardRef(l)}function j2(e){var t,n=e.layoutId,r=(t=J.useContext(VT))===null||t===void 0?void 0:t.id;return r&&n!==void 0?r+"-"+n:n}function B2(e){function t(r,i){return i===void 0&&(i={}),N2(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 $2=["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 ey(e){return typeof e!="string"||e.includes("-")?!1:!!($2.indexOf(e)>-1||/[A-Z]/.test(e))}var sp={};function V2(e){Object.assign(sp,e)}var Jv=["","X","Y","Z"],H2=["translate","scale","rotate","skew"],Rd=["transformPerspective","x","y","z"];H2.forEach(function(e){return Jv.forEach(function(t){return Rd.push(e+t)})});function U2(e,t){return Rd.indexOf(e)-Rd.indexOf(t)}var W2=new Set(Rd);function Ud(e){return W2.has(e)}var z2=new Set(["originX","originY","originZ"]);function UT(e){return z2.has(e)}function WT(e,t){var n=t.layout,r=t.layoutId;return Ud(e)||UT(e)||(n||r!==void 0)&&(!!sp[e]||e==="opacity")}var Iu=function(e){return!!(e!==null&&typeof e=="object"&&e.getVelocity)},Y2={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function G2(e,t,n,r){var i=e.transform,o=e.transformKeys,s=t.enableHardwareAcceleration,l=s===void 0?!0:s,c=t.allowTransformNone,d=c===void 0?!0:c,y="";o.sort(U2);for(var g=!1,S=o.length,T=0;T<S;T++){var _=o[T];y+="".concat(Y2[_]||_,"(").concat(i[_],") "),_==="z"&&(g=!0)}return!g&&l?y+="translateZ(0)":y=y.trim(),r?y=r(i,n?"":y):d&&n&&(y="none"),y}function q2(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 zT(e){return e.startsWith("--")}var X2=function(e,t){return t&&typeof e=="number"?t.transform(e):e};const YT=(e,t)=>n=>Math.max(Math.min(n,t),e),dd=e=>e%1?Number(e.toFixed(5)):e,Id=/(-)?([\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,K2=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Wd(e){return typeof e=="string"}const $c={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},hd=Object.assign(Object.assign({},$c),{transform:YT(0,1)}),xh=Object.assign(Object.assign({},$c),{default:1}),zd=e=>({test:t=>Wd(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),pl=zd("deg"),Fs=zd("%"),jt=zd("px"),Z2=zd("vh"),J2=zd("vw"),cw=Object.assign(Object.assign({},Fs),{parse:e=>Fs.parse(e)/100,transform:e=>Fs.transform(e*100)}),ty=(e,t)=>n=>!!(Wd(n)&&K2.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),GT=(e,t,n)=>r=>{if(!Wd(r))return r;const[i,o,s,l]=r.match(Id);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:l!==void 0?parseFloat(l):1}},Cc={test:ty("hsl","hue"),parse:GT("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Fs.transform(dd(t))+", "+Fs.transform(dd(n))+", "+dd(hd.transform(r))+")"},Q2=YT(0,255),zg=Object.assign(Object.assign({},$c),{transform:e=>Math.round(Q2(e))}),wl={test:ty("rgb","red"),parse:GT("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+zg.transform(e)+", "+zg.transform(t)+", "+zg.transform(n)+", "+dd(hd.transform(r))+")"};function eF(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:ty("#"),parse:eF,transform:wl.transform},io={test:e=>wl.test(e)||em.test(e)||Cc.test(e),parse:e=>wl.test(e)?wl.parse(e):Cc.test(e)?Cc.parse(e):em.parse(e),transform:e=>Wd(e)?e:e.hasOwnProperty("red")?wl.transform(e):Cc.transform(e)},qT="${c}",XT="${n}";function tF(e){var t,n,r,i;return isNaN(e)&&Wd(e)&&((n=(t=e.match(Id))===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 KT(e){typeof e=="number"&&(e=`${e}`);const t=[];let n=0;const r=e.match(Qv);r&&(n=r.length,e=e.replace(Qv,qT),t.push(...r.map(io.parse)));const i=e.match(Id);return i&&(e=e.replace(Id,XT),t.push(...i.map($c.parse))),{values:t,numColors:n,tokenised:e}}function ZT(e){return KT(e).values}function JT(e){const{values:t,numColors:n,tokenised:r}=KT(e),i=t.length;return o=>{let s=r;for(let l=0;l<i;l++)s=s.replace(l<n?qT:XT,l<n?io.transform(o[l]):dd(o[l]));return s}}const nF=e=>typeof e=="number"?0:e;function rF(e){const t=ZT(e);return JT(e)(t.map(nF))}const Au={test:tF,parse:ZT,createTransformer:JT,getAnimatableNone:rF},iF=new Set(["brightness","contrast","saturate","opacity"]);function oF(e){let[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Id)||[];if(!r)return e;const i=n.replace(r,"");let o=iF.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const aF=/([a-z-]*)\(.*?\)/g,tm=Object.assign(Object.assign({},Au),{getAnimatableNone:e=>{const t=e.match(aF);return t?t.map(oF).join(" "):e}});var fw=at(at({},$c),{transform:Math.round}),QT={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:pl,rotateX:pl,rotateY:pl,rotateZ:pl,scale:xh,scaleX:xh,scaleY:xh,scaleZ:xh,skew:pl,skewX:pl,skewY:pl,distance:jt,translateX:jt,translateY:jt,translateZ:jt,x:jt,y:jt,z:jt,perspective:jt,transformPerspective:jt,opacity:hd,originX:cw,originY:cw,originZ:jt,zIndex:fw,fillOpacity:hd,strokeOpacity:hd,numOctaves:fw};function ny(e,t,n,r){var i,o=e.style,s=e.vars,l=e.transform,c=e.transformKeys,d=e.transformOrigin;c.length=0;var y=!1,g=!1,S=!0;for(var T in t){var _=t[T];if(zT(T)){s[T]=_;continue}var I=QT[T],L=X2(_,I);if(Ud(T)){if(y=!0,l[T]=L,c.push(T),!S)continue;_!==((i=I.default)!==null&&i!==void 0?i:0)&&(S=!1)}else UT(T)?(d[T]=L,g=!0):o[T]=L}y?o.transform=G2(e,n,S,r):r?o.transform=r({},""):!t.transform&&o.transform&&(o.transform="none"),g&&(o.transformOrigin=q2(d))}var ry=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function eC(e,t,n){for(var r in t)!Iu(t[r])&&!WT(r,n)&&(e[r]=t[r])}function sF(e,t,n){var r=e.transformTemplate;return J.useMemo(function(){var i=ry();ny(i,t,{enableHardwareAcceleration:!n},r);var o=i.vars,s=i.style;return at(at({},o),s)},[t])}function uF(e,t,n){var r=e.style||{},i={};return eC(i,r,e),Object.assign(i,sF(e,t,n)),e.transformValues&&(i=e.transformValues(i)),i}function lF(e,t,n){var r={},i=uF(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 cF=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 up(e){return cF.has(e)}var tC=function(e){return!up(e)};function fF(e){e&&(tC=function(t){return t.startsWith("on")?!up(t):e(t)})}try{fF(require("@emotion/is-prop-valid").default)}catch{}function dF(e,t,n){var r={};for(var i in e)(tC(i)||n===!0&&up(i)||!t&&!up(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function dw(e,t,n){return typeof e=="string"?e:jt.transform(t+n*e)}function hF(e,t,n){var r=dw(t,e.x,e.width),i=dw(n,e.y,e.height);return"".concat(r," ").concat(i)}var pF={offset:"stroke-dashoffset",array:"stroke-dasharray"},gF={offset:"strokeDashoffset",array:"strokeDasharray"};function vF(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?pF:gF;e[o.offset]=jt.transform(-r);var s=jt.transform(t),l=jt.transform(n);e[o.array]="".concat(s," ").concat(l)}function iy(e,t,n,r){var i=t.attrX,o=t.attrY,s=t.originX,l=t.originY,c=t.pathLength,d=t.pathSpacing,y=d===void 0?1:d,g=t.pathOffset,S=g===void 0?0:g,T=_a(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]);ny(e,T,n,r),e.attrs=e.style,e.style={};var _=e.attrs,I=e.style,L=e.dimensions;_.transform&&(L&&(I.transform=_.transform),delete _.transform),L&&(s!==void 0||l!==void 0||I.transform)&&(I.transformOrigin=hF(L,s!==void 0?s:.5,l!==void 0?l:.5)),i!==void 0&&(_.x=i),o!==void 0&&(_.y=o),c!==void 0&&vF(_,c,y,S,!1)}var nC=function(){return at(at({},ry()),{attrs:{}})};function mF(e,t){var n=J.useMemo(function(){var i=nC();return iy(i,t,{enableHardwareAcceleration:!1},e.transformTemplate),at(at({},i.attrs),{style:at({},i.style)})},[t]);if(e.style){var r={};eC(r,e.style,e),n.style=at(at({},r),n.style)}return n}function yF(e){e===void 0&&(e=!1);var t=function(n,r,i,o,s,l){var c=s.latestValues,d=ey(n)?mF:lF,y=d(r,c,l),g=dF(r,typeof n=="string",e),S=at(at(at({},g),y),{ref:o});return i&&(S["data-projection-id"]=i),J.createElement(n,S)};return t}var bF=/([a-z])([A-Z])/g,wF="$1-$2",rC=function(e){return e.replace(bF,wF).toLowerCase()};function iC(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 oC=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function aC(e,t,n,r){iC(e,t,void 0,r);for(var i in t.attrs)e.setAttribute(oC.has(i)?i:rC(i),t.attrs[i])}function oy(e){var t=e.style,n={};for(var r in t)(Iu(t[r])||WT(r,e))&&(n[r]=t[r]);return n}function sC(e){var t=oy(e);for(var n in e)if(Iu(e[n])){var r=n==="x"||n==="y"?"attr"+n.toUpperCase():n;t[r]=e[n]}return t}function ay(e){return typeof e=="object"&&typeof e.start=="function"}var Ad=function(e){return Array.isArray(e)},xF=function(e){return!!(e&&typeof e=="object"&&e.mix&&e.toValue)},uC=function(e){return Ad(e)?e[e.length-1]||0:e};function Wh(e){var t=Iu(e)?e.get():e;return xF(t)?t.toValue():t}function hw(e,t,n,r){var i=e.scrapeMotionValuesFromProps,o=e.createRenderState,s=e.onMount,l={latestValues:SF(t,n,r,i),renderState:o()};return s&&(l.mount=function(c){return s(t,c,l)}),l}var lC=function(e){return function(t,n){var r=J.useContext(Mp),i=J.useContext(Lp);return n?hw(e,t,r,i):jp(function(){return hw(e,t,r,i)})}};function SF(e,t,n,r){var i={},o=(n==null?void 0:n.initial)===!1,s=r(e);for(var l in s)i[l]=Wh(s[l]);var c=e.initial,d=e.animate,y=Np(e),g=$T(e);t&&g&&!y&&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"&&!ay(T)){var _=Array.isArray(T)?T:[T];_.forEach(function(I){var L=BT(e,I);if(L){var R=L.transitionEnd;L.transition;var U=_a(L,["transitionEnd","transition"]);for(var W in U){var ne=U[W];if(Array.isArray(ne)){var Q=S?ne.length-1:0;ne=ne[Q]}ne!==null&&(i[W]=ne)}for(var W in R)i[W]=R[W]}})}return i}var TF={useVisualState:lC({scrapeMotionValuesFromProps:sC,createRenderState:nC,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}}iy(r,i,{enableHardwareAcceleration:!1},e.transformTemplate),aC(t,r)}})},CF={useVisualState:lC({scrapeMotionValuesFromProps:oy,createRenderState:ry})};function EF(e,t,n,r,i){var o=t.forwardMotionProps,s=o===void 0?!1:o,l=ey(e)?TF:CF;return at(at({},l),{preloadedFeatures:n,useRender:yF(s),createVisualElement:r,projectionNodeConstructor:i,Component:e})}var jn;(function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"})(jn||(jn={}));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){J.useEffect(function(){var i=e.current;if(n&&i)return Bp(i,t,n,r)},[e,t,n,r])}function kF(e){var t=e.whileFocus,n=e.visualElement,r=function(){var o;(o=n.animationState)===null||o===void 0||o.setActive(jn.Focus,!0)},i=function(){var o;(o=n.animationState)===null||o===void 0||o.setActive(jn.Focus,!1)};nm(n,"focus",t?r:void 0),nm(n,"blur",t?i:void 0)}function cC(e){return typeof PointerEvent<"u"&&e instanceof PointerEvent?e.pointerType==="mouse":e instanceof MouseEvent}function fC(e){var t=!!e.touches;return t}function OF(e){return function(t){var n=t instanceof MouseEvent,r=!n||n&&t.button===0;r&&e(t)}}var DF={pageX:0,pageY:0};function PF(e,t){t===void 0&&(t="page");var n=e.touches[0]||e.changedTouches[0],r=n||DF;return{x:r[t+"X"],y:r[t+"Y"]}}function _F(e,t){return t===void 0&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function sy(e,t){return t===void 0&&(t="page"),{point:fC(e)?PF(e,t):_F(e,t)}}var dC=function(e,t){t===void 0&&(t=!1);var n=function(r){return e(r,sy(r))};return t?OF(n):n},RF=function(){return jf&&window.onpointerdown===null},IF=function(){return jf&&window.ontouchstart===null},AF=function(){return jf&&window.onmousedown===null},MF={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},LF={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function hC(e){return RF()?e:IF()?LF[e]:AF()?MF[e]:e}function Df(e,t,n,r){return Bp(e,hC(t),dC(n,t==="pointerdown"),r)}function lp(e,t,n,r){return nm(e,hC(t),n&&dC(n,t==="pointerdown"),r)}function pC(e){var t=null;return function(){var n=function(){t=null};return t===null?(t=e,n):!1}}var pw=pC("dragHorizontal"),gw=pC("dragVertical");function gC(e){var t=!1;if(e==="y")t=gw();else if(e==="x")t=pw();else{var n=pw(),r=gw();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function vC(){var e=gC(!0);return e?(e(),!1):!0}function vw(e,t,n){return function(r,i){var o;!cC(r)||vC()||((o=e.animationState)===null||o===void 0||o.setActive(jn.Hover,t),n==null||n(r,i))}}function FF(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,i=e.visualElement;lp(i,"pointerenter",t||r?vw(i,!0,t):void 0,{passive:!t}),lp(i,"pointerleave",n||r?vw(i,!1,n):void 0,{passive:!n})}var mC=function(e,t){return t?e===t?!0:mC(e,t.parentElement):!1};function yC(e){return J.useEffect(function(){return function(){return e()}},[])}const cp=(e,t,n)=>Math.min(Math.max(n,e),t),Yg=.001,NF=.01,mw=10,jF=.05,BF=1;function $F({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;Hd(e<=mw*1e3,"Spring duration must be 10 seconds or less");let s=1-t;s=cp(jF,BF,s),e=cp(NF,mw,e/1e3),s<1?(i=d=>{const y=d*s,g=y*e,S=y-n,T=rm(d,s),_=Math.exp(-g);return Yg-S/T*_},o=d=>{const g=d*s*e,S=g*n+n,T=Math.pow(s,2)*Math.pow(d,2)*e,_=Math.exp(-g),I=rm(Math.pow(d,2),s);return(-i(d)+Yg>0?-1:1)*((S-T)*_)/I}):(i=d=>{const y=Math.exp(-d*e),g=(d-n)*e+1;return-Yg+y*g},o=d=>{const y=Math.exp(-d*e),g=(n-d)*(e*e);return y*g});const l=5/e,c=HF(i,o,l);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 VF=12;function HF(e,t,n){let r=n;for(let i=1;i<VF;i++)r=r-e(r)/t(r);return r}function rm(e,t){return e*Math.sqrt(1-t*t)}const UF=["duration","bounce"],WF=["stiffness","damping","mass"];function yw(e,t){return t.some(n=>e[n]!==void 0)}function zF(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!yw(e,WF)&&yw(e,UF)){const n=$F(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function uy(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,o=_a(e,["from","to","restSpeed","restDelta"]);const s={done:!1,value:t};let{stiffness:l,damping:c,mass:d,velocity:y,duration:g,isResolvedFromDuration:S}=zF(o),T=bw,_=bw;function I(){const L=y?-(y/1e3):0,R=n-t,U=c/(2*Math.sqrt(l*d)),W=Math.sqrt(l/d)/1e3;if(i===void 0&&(i=Math.min(Math.abs(n-t)/100,.4)),U<1){const ne=rm(W,U);T=Q=>{const pe=Math.exp(-U*W*Q);return n-pe*((L+U*W*R)/ne*Math.sin(ne*Q)+R*Math.cos(ne*Q))},_=Q=>{const pe=Math.exp(-U*W*Q);return U*W*pe*(Math.sin(ne*Q)*(L+U*W*R)/ne+R*Math.cos(ne*Q))-pe*(Math.cos(ne*Q)*(L+U*W*R)-ne*R*Math.sin(ne*Q))}}else if(U===1)T=ne=>n-Math.exp(-W*ne)*(R+(L+W*R)*ne);else{const ne=W*Math.sqrt(U*U-1);T=Q=>{const pe=Math.exp(-U*W*Q),x=Math.min(ne*Q,300);return n-pe*((L+U*W*R)*Math.sinh(x)+ne*R*Math.cosh(x))/ne}}}return I(),{next:L=>{const R=T(L);if(S)s.done=L>=g;else{const U=_(L)*1e3,W=Math.abs(U)<=r,ne=Math.abs(n-R)<=i;s.done=W&&ne}return s.value=s.done?n:R,s},flipTarget:()=>{y=-y,[t,n]=[n,t],I()}}}uy.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const bw=e=>0,Md=(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 ww({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 l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;i=Gg(c,l,e+1/3),o=Gg(c,l,e),s=Gg(c,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const YF=(e,t,n)=>{const r=e*e,i=t*t;return Math.sqrt(Math.max(0,n*(i-r)+r))},GF=[em,wl,Cc],xw=e=>GF.find(t=>t.test(e)),Sw=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,bC=(e,t)=>{let n=xw(e),r=xw(t);Da(!!n,Sw(e)),Da(!!r,Sw(t));let i=n.parse(e),o=r.parse(t);n===Cc&&(i=ww(i),n=wl),r===Cc&&(o=ww(o),r=wl);const s=Object.assign({},i);return l=>{for(const c in s)c!=="alpha"&&(s[c]=YF(i[c],o[c],l));return s.alpha=lr(i.alpha,o.alpha,l),n.transform(s)}},im=e=>typeof e=="number",qF=(e,t)=>n=>t(e(n)),$p=(...e)=>e.reduce(qF);function wC(e,t){return im(e)?n=>lr(e,t,n):io.test(e)?bC(e,t):SC(e,t)}const xC=(e,t)=>{const n=[...e],r=n.length,i=e.map((o,s)=>wC(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}},XF=(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]=wC(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}};function Tw(e){const t=Au.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 SC=(e,t)=>{const n=Au.createTransformer(t),r=Tw(e),i=Tw(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?$p(xC(r.parsed,i.parsed),n):(Hd(!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}`)},KF=(e,t)=>n=>lr(e,t,n);function ZF(e){if(typeof e=="number")return KF;if(typeof e=="string")return io.test(e)?bC:SC;if(Array.isArray(e))return xC;if(typeof e=="object")return XF}function JF(e,t,n){const r=[],i=n||ZF(e[0]),o=e.length-1;for(let s=0;s<o;s++){let l=i(e[s],e[s+1]);if(t){const c=Array.isArray(t)?t[s]:t;l=$p(c,l)}r.push(l)}return r}function QF([e,t],[n]){return r=>n(Md(e,t,r))}function eN(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 l=Md(e[o],e[o+1],i);return t[o](l)}}function TC(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;Da(o===t.length,"Both input and output ranges must be the same length"),Da(!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=JF(t,r,i),l=o===2?QF(e,s):eN(e,s);return n?c=>l(cp(e[0],e[o-1],c)):l}const Vp=e=>t=>1-e(1-t),ly=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,tN=e=>t=>Math.pow(t,e),CC=e=>t=>t*t*((e+1)*t-e),nN=e=>{const t=CC(e);return n=>(n*=2)<1?.5*t(n):.5*(2-Math.pow(2,-10*(n-1)))},EC=1.525,rN=4/11,iN=8/11,oN=9/10,cy=e=>e,fy=tN(2),aN=Vp(fy),kC=ly(fy),OC=e=>1-Math.sin(Math.acos(e)),dy=Vp(OC),sN=ly(dy),hy=CC(EC),uN=Vp(hy),lN=ly(hy),cN=nN(EC),fN=4356/361,dN=35442/1805,hN=16061/1805,fp=e=>{if(e===1||e===0)return e;const t=e*e;return e<rN?7.5625*t:e<iN?9.075*t-9.9*e+3.4:e<oN?fN*t-dN*e+hN:10.8*e*e-20.52*e+10.72},pN=Vp(fp),gN=e=>e<.5?.5*(1-fp(1-e*2)):.5*fp(e*2-1)+.5;function vN(e,t){return e.map(()=>t||kC).splice(0,e.length-1)}function mN(e){const t=e.length;return e.map((n,r)=>r!==0?r/(t-1):0)}function yN(e,t){return e.map(n=>n*t)}function zh({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],l=yN(r&&r.length===s.length?r:mN(s),i);function c(){return TC(l,s,{ease:Array.isArray(n)?n:vN(s,n)})}let d=c();return{next:y=>(o.value=d(y),o.done=y>=i,o),flipTarget:()=>{s.reverse(),d=c()}}}function bN({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:o}){const s={done:!1,value:t};let l=n*e;const c=t+l,d=o===void 0?c:o(c);return d!==c&&(l=d-t),{next:y=>{const g=-l*Math.exp(-y/r);return s.done=!(g>i||g<-i),s.value=s.done?d:d+g,s},flipTarget:()=>{}}}const Cw={keyframes:zh,spring:uy,decay:bN};function wN(e){if(Array.isArray(e.to))return zh;if(Cw[e.type])return Cw[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?zh:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?uy:zh}const DC=1/60*1e3,xN=typeof performance<"u"?()=>performance.now():()=>Date.now(),PC=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(xN()),DC);function SN(e){let t=[],n=[],r=0,i=!1,o=!1;const s=new WeakSet,l={schedule:(c,d=!1,y=!1)=>{const g=y&&i,S=g?t:n;return d&&s.add(c),S.indexOf(c)===-1&&(S.push(c),g&&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 y=t[d];y(c),s.has(y)&&(l.schedule(y),e())}i=!1,o&&(o=!1,l.process(c))}};return l}const TN=40;let om=!0,Ld=!1,am=!1;const Pf={delta:0,timestamp:0},Yd=["read","update","preRender","render","postRender"],Hp=Yd.reduce((e,t)=>(e[t]=SN(()=>Ld=!0),e),{}),Ns=Yd.reduce((e,t)=>{const n=Hp[t];return e[t]=(r,i=!1,o=!1)=>(Ld||EN(),n.schedule(r,i,o)),e},{}),Rf=Yd.reduce((e,t)=>(e[t]=Hp[t].cancel,e),{}),qg=Yd.reduce((e,t)=>(e[t]=()=>Hp[t].process(Pf),e),{}),CN=e=>Hp[e].process(Pf),_C=e=>{Ld=!1,Pf.delta=om?DC:Math.max(Math.min(e-Pf.timestamp,TN),1),Pf.timestamp=e,am=!0,Yd.forEach(CN),am=!1,Ld&&(om=!1,PC(_C))},EN=()=>{Ld=!0,om=!0,am||PC(_C)},dp=()=>Pf;function RC(e,t,n=0){return e-t-n}function kN(e,t,n=0,r=!0){return r?RC(t+-e,t,n):t-(e-t)+n}function ON(e,t,n,r){return r?e>=t+n:e<=-n}const DN=e=>{const t=({delta:n})=>e(n);return{start:()=>Ns.update(t,!0),stop:()=>Rf.update(t)}};function IC(e){var t,n,{from:r,autoplay:i=!0,driver:o=DN,elapsed:s=0,repeat:l=0,repeatType:c="loop",repeatDelay:d=0,onPlay:y,onStop:g,onComplete:S,onRepeat:T,onUpdate:_}=e,I=_a(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:L}=I,R,U=0,W=I.duration,ne,Q=!1,pe=!0,x;const ce=wN(I);!((n=(t=ce).needsInterpolation)===null||n===void 0)&&n.call(t,r,L)&&(x=TC([0,100],[r,L],{clamp:!1}),r=0,L=100);const se=ce(Object.assign(Object.assign({},I),{from:r,to:L}));function je(){U++,c==="reverse"?(pe=U%2===0,s=kN(s,W,d,pe)):(s=RC(s,W,d),c==="mirror"&&se.flipTarget()),Q=!1,T&&T()}function qe(){R.stop(),S&&S()}function Xe(nt){if(pe||(nt=-nt),s+=nt,!Q){const ye=se.next(Math.max(0,s));ne=ye.value,x&&(ne=x(ne)),Q=pe?ye.done:s<=0}_==null||_(ne),Q&&(U===0&&(W??(W=s)),U<l?ON(s,W,d,pe)&&je():qe())}function rt(){y==null||y(),R=o(Xe),R.start()}return i&&rt(),{stop:()=>{g==null||g(),R.stop()}}}function AC(e,t){return t?e*(1e3/t):0}function PN({from:e=0,velocity:t=0,min:n,max:r,power:i=.8,timeConstant:o=750,bounceStiffness:s=500,bounceDamping:l=10,restDelta:c=1,modifyTarget:d,driver:y,onUpdate:g,onComplete:S,onStop:T}){let _;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){_==null||_.stop(),_=IC(Object.assign(Object.assign({},W),{driver:y,onUpdate:ne=>{var Q;g==null||g(ne),(Q=W.onUpdate)===null||Q===void 0||Q.call(W,ne)},onComplete:S,onStop:T}))}function U(W){R(Object.assign({type:"spring",stiffness:s,damping:l,restDelta:c},W))}if(I(e))U({from:e,velocity:t,to:L(e)});else{let W=i*t+e;typeof d<"u"&&(W=d(W));const ne=L(W),Q=ne===n?-1:1;let pe,x;const ce=se=>{pe=x,x=se,t=AC(se-pe,dp().delta),(Q===1&&se>ne||Q===-1&&se<ne)&&U({from:se,to:ne,velocity:t})};R({type:"decay",from:e,velocity:t,timeConstant:o,power:i,restDelta:c,modifyTarget:d,onUpdate:I(W)?ce:void 0})}return{stop:()=>_==null?void 0:_.stop()}}const sm=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),Ew=e=>sm(e)&&e.hasOwnProperty("z"),Sh=(e,t)=>Math.abs(e-t);function MC(e,t){if(im(e)&&im(t))return Sh(e,t);if(sm(e)&&sm(t)){const n=Sh(e.x,t.x),r=Sh(e.y,t.y),i=Ew(e)&&Ew(t)?Sh(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}const LC=(e,t)=>1-3*t+3*e,FC=(e,t)=>3*t-6*e,NC=e=>3*e,hp=(e,t,n)=>((LC(t,n)*e+FC(t,n))*e+NC(t))*e,jC=(e,t,n)=>3*LC(t,n)*e*e+2*FC(t,n)*e+NC(t),_N=1e-7,RN=10;function IN(e,t,n,r,i){let o,s,l=0;do s=t+(n-t)/2,o=hp(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>_N&&++l<RN);return s}const AN=8,MN=.001;function LN(e,t,n,r){for(let i=0;i<AN;++i){const o=jC(t,n,r);if(o===0)return t;const s=hp(t,n,r)-e;t-=s/o}return t}const Yh=11,Th=1/(Yh-1);function FN(e,t,n,r){if(e===t&&n===r)return cy;const i=new Float32Array(Yh);for(let s=0;s<Yh;++s)i[s]=hp(s*Th,e,n);function o(s){let l=0,c=1;const d=Yh-1;for(;c!==d&&i[c]<=s;++c)l+=Th;--c;const y=(s-i[c])/(i[c+1]-i[c]),g=l+y*Th,S=jC(g,e,n);return S>=MN?LN(s,g,e,n):S===0?g:IN(s,l,l+Th,e,n)}return s=>s===0||s===1?s:hp(o(s),t,r)}function NN(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,i=e.whileTap,o=e.visualElement,s=t||n||r||i,l=J.useRef(!1),c=J.useRef(null),d={passive:!(n||t||r||_)};function y(){var I;(I=c.current)===null||I===void 0||I.call(c),c.current=null}function g(){var I;return y(),l.current=!1,(I=o.animationState)===null||I===void 0||I.setActive(jn.Tap,!1),!vC()}function S(I,L){g()&&(mC(o.getInstance(),I.target)?t==null||t(I,L):r==null||r(I,L))}function T(I,L){g()&&(r==null||r(I,L))}function _(I,L){var R;y(),!l.current&&(l.current=!0,c.current=$p(Df(window,"pointerup",S,d),Df(window,"pointercancel",T,d)),(R=o.animationState)===null||R===void 0||R.setActive(jn.Tap,!0),n==null||n(I,L))}lp(o,"pointerdown",s?_:void 0,d),yC(y)}var kw=new Set;function BC(e,t,n){e||kw.has(t)||(console.warn(t),n&&console.warn(n),kw.add(t))}var um=new WeakMap,Xg=new WeakMap,jN=function(e){var t;(t=um.get(e.target))===null||t===void 0||t(e)},BN=function(e){e.forEach(jN)};function $N(e){var t=e.root,n=_a(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(BN,at({root:t},n))),i[o]}function VN(e,t,n){var r=$N(t);return um.set(e,n),r.observe(e),function(){um.delete(e),r.unobserve(e)}}function HN(e){var t=e.visualElement,n=e.whileInView,r=e.onViewportEnter,i=e.onViewportLeave,o=e.viewport,s=o===void 0?{}:o,l=J.useRef({hasEnteredView:!1,isInView:!1}),c=!!(n||r||i);s.once&&l.current.hasEnteredView&&(c=!1);var d=typeof IntersectionObserver>"u"?zN:WN;d(c,l.current,t,s)}var UN={some:0,all:1};function WN(e,t,n,r){var i=r.root,o=r.margin,s=r.amount,l=s===void 0?"some":s,c=r.once;J.useEffect(function(){if(e){var d={root:i==null?void 0:i.current,rootMargin:o,threshold:typeof l=="number"?l:UN[l]},y=function(g){var S,T=g.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(jn.InView,T);var _=n.getProps(),I=T?_.onViewportEnter:_.onViewportLeave;I==null||I(g)}};return VN(n.getInstance(),d,y)}},[e,i,o,l])}function zN(e,t,n,r){var i=r.fallback,o=i===void 0?!0:i;J.useEffect(function(){!e||!o||(MT!=="production"&&BC(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(function(){var s;t.hasEnteredView=!0;var l=n.getProps().onViewportEnter;l==null||l(null),(s=n.animationState)===null||s===void 0||s.setActive(jn.InView,!0)}))},[e])}var xl=function(e){return function(t){return e(t),null}},YN={inView:xl(HN),tap:xl(NN),focus:xl(kF),hover:xl(FF)},GN=0,qN=function(){return GN++},XN=function(){return jp(qN)};function $C(){var e=J.useContext(Lp);if(e===null)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,i=XN();J.useEffect(function(){return r(i)},[]);var o=function(){return n==null?void 0:n(i)};return!t&&n?[!1,o]:[!0]}function VC(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},Ow={linear:cy,easeIn:fy,easeInOut:kC,easeOut:aN,circIn:OC,circInOut:sN,circOut:dy,backIn:hy,backInOut:lN,backOut:uN,anticipate:cN,bounceIn:pN,bounceInOut:gN,bounceOut:fp},Dw=function(e){if(Array.isArray(e)){Da(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 FN(n,r,i,o)}else if(typeof e=="string")return Da(Ow[e]!==void 0,"Invalid easing type '".concat(e,"'")),Ow[e];return e},KN=function(e){return Array.isArray(e)&&typeof e[0]!="number"},Pw=function(e,t){return e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&Au.test(t)&&!t.startsWith("url("))},gc=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},Ch=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}},ZN=function(e){return{type:"keyframes",duration:.8,values:e}},_w={x:gc,y:gc,z:gc,rotate:gc,rotateX:gc,rotateY:gc,rotateZ:gc,scaleX:Ch,scaleY:Ch,scale:Ch,opacity:Kg,backgroundColor:Kg,color:Kg,default:Ch},JN=function(e,t){var n;return Ad(t)?n=ZN:n=_w[e]||_w.default,at({to:t},n(t))},QN=at(at({},QT),{color:io,backgroundColor:io,outlineColor:io,fill:io,stroke:io,borderColor:io,borderTopColor:io,borderRightColor:io,borderBottomColor:io,borderLeftColor:io,filter:tm,WebkitFilter:tm}),py=function(e){return QN[e]};function gy(e,t){var n,r=py(e);return r!==tm&&(r=Au),(n=r.getAnimatableNone)===null||n===void 0?void 0:n.call(r,t)}function ej(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=_a(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}var Rw=!1;function tj(e){var t=e.ease,n=e.times,r=e.yoyo,i=e.flip,o=e.loop,s=_a(e,["ease","times","yoyo","flip","loop"]),l=at({},s);return n&&(l.offset=n),s.duration&&(l.duration=pp(s.duration)),s.repeatDelay&&(l.repeatDelay=pp(s.repeatDelay)),t&&(l.ease=KN(t)?t.map(Dw):Dw(t)),s.type==="tween"&&(l.type="keyframes"),(r||o||i)&&(Hd(!Rw,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),Rw=!0,r?l.repeatType="reverse":o?l.repeatType="loop":i&&(l.repeatType="mirror"),l.repeat=o||r||i||s.repeat),s.type!=="spring"&&(l.type="keyframes"),l}function nj(e,t){var n,r,i=vy(e,t)||{};return(r=(n=i.delay)!==null&&n!==void 0?n:e.delay)!==null&&r!==void 0?r:0}function rj(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=Qo([],Gr(e.to),!1),e.to[0]=e.from),e}function ij(e,t,n){var r;return Array.isArray(t.to)&&((r=e.duration)!==null&&r!==void 0||(e.duration=.8)),rj(t),ej(e)||(e=at(at({},e),JN(n,t.to))),at(at({},t),tj(e))}function oj(e,t,n,r,i){var o,s=vy(r,e),l=(o=s.from)!==null&&o!==void 0?o:t.get(),c=Pw(e,n);l==="none"&&c&&typeof n=="string"?l=gy(e,n):Iw(l)&&typeof n=="string"?l=Aw(n):!Array.isArray(n)&&Iw(n)&&typeof l=="string"&&(n=Aw(l));var d=Pw(e,l);Hd(d===c,"You are trying to animate ".concat(e,' from "').concat(l,'" to "').concat(n,'". ').concat(l," is not an animatable value - to enable this animation set ").concat(l," to a value animatable to ").concat(n," via the `style` property."));function y(){var S={from:l,to:n,velocity:t.getVelocity(),onComplete:i,onUpdate:function(T){return t.set(T)}};return s.type==="inertia"||s.type==="decay"?PN(at(at({},S),s)):IC(at(at({},ij(s,S,e)),{onUpdate:function(T){var _;S.onUpdate(T),(_=s.onUpdate)===null||_===void 0||_.call(s,T)},onComplete:function(){var T;S.onComplete(),(T=s.onComplete)===null||T===void 0||T.call(s)}}))}function g(){var S,T,_=uC(n);return t.set(_),i(),(S=s==null?void 0:s.onUpdate)===null||S===void 0||S.call(s,_),(T=s==null?void 0:s.onComplete)===null||T===void 0||T.call(s),{stop:function(){}}}return!d||!c||s.type===!1?g:y}function Iw(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function Aw(e){return typeof e=="number"?0:gy("",e)}function vy(e,t){return e[t]||e.default||e}function my(e,t,n,r){return r===void 0&&(r={}),t.start(function(i){var o,s,l=oj(e,t,n,r,i),c=nj(r,e),d=function(){return s=l()};return c?o=window.setTimeout(d,pp(c)):d(),function(){clearTimeout(o),s==null||s.stop()}})}var aj=function(e){return/^\-?\d*\.?\d+$/.test(e)},sj=function(e){return/^0[^.\s]+$/.test(e)};function yy(e,t){e.indexOf(t)===-1&&e.push(t)}function by(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var pd=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(t){var n=this;return yy(this.subscriptions,t),function(){return by(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}(),uj=function(e){return!isNaN(parseFloat(e))},lj=function(){function e(t){var n=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new pd,this.velocityUpdateSubscribers=new pd,this.renderSubscribers=new pd,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,l=o.timestamp;n.lastUpdated!==l&&(n.timeDelta=s,n.lastUpdated=l,Ns.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 Ns.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=uj(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?AC(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 If(e){return new lj(e)}var HC=function(e){return function(t){return t.test(e)}},cj={test:function(e){return e==="auto"},parse:function(e){return e}},UC=[$c,jt,Fs,pl,J2,Z2,cj],nd=function(e){return UC.find(HC(e))},fj=Qo(Qo([],Gr(UC),!1),[io,Au],!1),dj=function(e){return fj.find(HC(e))};function hj(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,If(n))}function pj(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=_a(r,["transitionEnd","transition"]);s=at(at({},s),o);for(var l in s){var c=uC(s[l]);hj(e,l,c)}}function gj(e,t,n){var r,i,o,s,l=Object.keys(t).filter(function(T){return!e.hasValue(T)}),c=l.length;if(c)for(var d=0;d<c;d++){var y=l[d],g=t[y],S=null;Array.isArray(g)&&(S=g[0]),S===null&&(S=(i=(r=n[y])!==null&&r!==void 0?r:e.readValue(y))!==null&&i!==void 0?i:t[y]),S!=null&&(typeof S=="string"&&(aj(S)||sj(S))?S=parseFloat(S):!dj(S)&&Au.test(g)&&(S=gy(y,g)),e.addValue(y,If(S)),(o=(s=n)[y])!==null&&o!==void 0||(s[y]=S),e.setBaseTarget(y,S))}}function vj(e,t){if(t){var n=t[e]||t.default||t;return n.from}}function mj(e,t,n){var r,i,o={};for(var s in e)o[s]=(r=vj(s,t))!==null&&r!==void 0?r:(i=n.getValue(s))===null||i===void 0?void 0:i.get();return o}function yj(e,t,n){n===void 0&&(n={}),e.notifyAnimationStart(t);var r;if(Array.isArray(t)){var i=t.map(function(s){return lm(e,s,n)});r=Promise.all(i)}else if(typeof t=="string")r=lm(e,t,n);else{var o=typeof t=="function"?Fp(e,t,n.custom):t;r=WC(e,o,n)}return r.then(function(){return e.notifyAnimationComplete(t)})}function lm(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 l=i?function(){return WC(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 _=s.delayChildren,I=_===void 0?0:_,L=s.staggerChildren,R=s.staggerDirection;return bj(e,t,I+T,L,R,n)}:function(){return Promise.resolve()},d=s.when;if(d){var y=Gr(d==="beforeChildren"?[l,c]:[c,l],2),g=y[0],S=y[1];return g().then(S)}else return Promise.all([l(),c(n.delay)])}function WC(e,t,n){var r,i=n===void 0?{}:n,o=i.delay,s=o===void 0?0:o,l=i.transitionOverride,c=i.type,d=e.makeTargetAnimatable(t),y=d.transition,g=y===void 0?e.getDefaultTransition():y,S=d.transitionEnd,T=_a(d,["transition","transitionEnd"]);l&&(g=l);var _=[],I=c&&((r=e.animationState)===null||r===void 0?void 0:r.getState()[c]);for(var L in T){var R=e.getValue(L),U=T[L];if(!(!R||U===void 0||I&&xj(I,L))){var W=at({delay:s},g);e.shouldReduceMotion&&Ud(L)&&(W=at(at({},W),{type:!1,delay:0}));var ne=my(L,R,U,W);_.push(ne)}}return Promise.all(_).then(function(){S&&pj(e,S)})}function bj(e,t,n,r,i,o){n===void 0&&(n=0),r===void 0&&(r=0),i===void 0&&(i=1);var s=[],l=(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),l-d*r};return Array.from(e.variantChildren).sort(wj).forEach(function(d,y){s.push(lm(d,t,at(at({},o),{delay:n+c(y)})).then(function(){return d.notifyAnimationComplete(t)}))}),Promise.all(s)}function wj(e,t){return e.sortNodePosition(t)}function xj(e,t){var n=e.protectedKeys,r=e.needsAnimating,i=n.hasOwnProperty(t)&&r[t]!==!0;return r[t]=!1,i}var wy=[jn.Animate,jn.InView,jn.Focus,jn.Hover,jn.Tap,jn.Drag,jn.Exit],Sj=Qo([],Gr(wy),!1).reverse(),Tj=wy.length;function Cj(e){return function(t){return Promise.all(t.map(function(n){var r=n.animation,i=n.options;return yj(e,r,i)}))}}function Ej(e){var t=Cj(e),n=Oj(),r={},i=!0,o=function(y,g){var S=Fp(e,g);if(S){S.transition;var T=S.transitionEnd,_=_a(S,["transition","transitionEnd"]);y=at(at(at({},y),_),T)}return y};function s(y){return r[y]!==void 0}function l(y){t=y(e)}function c(y,g){for(var S,T=e.getProps(),_=e.getVariantContext(!0)||{},I=[],L=new Set,R={},U=1/0,W=function(x){var ce=Sj[x],se=n[ce],je=(S=T[ce])!==null&&S!==void 0?S:_[ce],qe=rs(je),Xe=ce===g?se.isActive:null;Xe===!1&&(U=x);var rt=je===_[ce]&&je!==T[ce]&&qe;if(rt&&i&&e.manuallyAnimateOnMount&&(rt=!1),se.protectedKeys=at({},R),!se.isActive&&Xe===null||!je&&!se.prevProp||ay(je)||typeof je=="boolean")return"continue";var nt=kj(se.prevProp,je),ye=nt||ce===g&&se.isActive&&!rt&&qe||x>U&&qe,Pe=Array.isArray(je)?je:[je],Ue=Pe.reduce(o,{});Xe===!1&&(Ue={});var Je=se.prevResolvedValues,st=Je===void 0?{}:Je,ke=at(at({},st),Ue),_e=function(Fe){ye=!0,L.delete(Fe),se.needsAnimating[Fe]=!0};for(var Ve in ke){var He=Ue[Ve],Re=st[Ve];R.hasOwnProperty(Ve)||(He!==Re?Ad(He)&&Ad(Re)?!VC(He,Re)||nt?_e(Ve):se.protectedKeys[Ve]=!0:He!==void 0?_e(Ve):L.add(Ve):He!==void 0&&L.has(Ve)?_e(Ve):se.protectedKeys[Ve]=!0)}se.prevProp=je,se.prevResolvedValues=Ue,se.isActive&&(R=at(at({},R),Ue)),i&&e.blockInitialAnimation&&(ye=!1),ye&&!rt&&I.push.apply(I,Qo([],Gr(Pe.map(function(Fe){return{animation:Fe,options:at({type:ce},y)}})),!1))},ne=0;ne<Tj;ne++)W(ne);if(r=at({},R),L.size){var Q={};L.forEach(function(x){var ce=e.getBaseTarget(x);ce!==void 0&&(Q[x]=ce)}),I.push({animation:Q})}var pe=!!I.length;return i&&T.initial===!1&&!e.manuallyAnimateOnMount&&(pe=!1),i=!1,pe?t(I):Promise.resolve()}function d(y,g,S){var T;if(n[y].isActive===g)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(y,g)}),n[y].isActive=g;var _=c(S,y);for(var I in n)n[I].protectedKeys={};return _}return{isAnimated:s,animateChanges:c,setActive:d,setAnimateFunction:l,getState:function(){return n}}}function kj(e,t){return typeof t=="string"?t!==e:jT(t)?!VC(t,e):!1}function vc(e){return e===void 0&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Oj(){var e;return e={},e[jn.Animate]=vc(!0),e[jn.InView]=vc(),e[jn.Hover]=vc(),e[jn.Tap]=vc(),e[jn.Drag]=vc(),e[jn.Focus]=vc(),e[jn.Exit]=vc(),e}var Dj={animation:xl(function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=Ej(t)),ay(n)&&J.useEffect(function(){return n.subscribe(t)},[n])}),exit:xl(function(e){var t=e.custom,n=e.visualElement,r=Gr($C(),2),i=r[0],o=r[1],s=J.useContext(Lp);J.useEffect(function(){var l,c;n.isPresent=i;var d=(l=n.animationState)===null||l===void 0?void 0:l.setActive(jn.Exit,!i,{custom:(c=s==null?void 0:s.custom)!==null&&c!==void 0?c:t});!i&&(d==null||d.then(o))},[i])})},zC=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,_=MC(S.offset,{x:0,y:0})>=3;if(!(!T&&!_)){var I=S.point,L=dp().timestamp;i.history.push(at(at({},I),{timestamp:L}));var R=i.handlers,U=R.onStart,W=R.onMove;T||(U&&U(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),cC(S)&&S.buttons===0){i.handlePointerUp(S,T);return}Ns.update(i.updatePoint,!0)},this.handlePointerUp=function(S,T){i.end();var _=i.handlers,I=_.onEnd,L=_.onSessionEnd,R=Jg(Zg(T,i.transformPagePoint),i.history);i.startEvent&&I&&I(S,R),L&&L(S,R)},!(fC(t)&&t.touches.length>1)){this.handlers=n,this.transformPagePoint=s;var l=sy(t),c=Zg(l,this.transformPagePoint),d=c.point,y=dp().timestamp;this.history=[at(at({},d),{timestamp:y})];var g=n.onSessionStart;g&&g(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(),Rf.update(this.updatePoint)},e}();function Zg(e,t){return t?{point:t(e.point)}:e}function Mw(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:Mw(n,YC(t)),offset:Mw(n,Pj(t)),velocity:_j(t,.1)}}function Pj(e){return e[0]}function YC(e){return e[e.length-1]}function _j(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,i=YC(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 Mu(e){return e.max-e.min}function Lw(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=.01),MC(e,t)<n}function Fw(e,t,n,r){r===void 0&&(r=.5),e.origin=r,e.originPoint=lr(t.min,t.max,e.origin),e.scale=Mu(n)/Mu(t),(Lw(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=lr(n.min,n.max,e.origin)-e.originPoint,(Lw(e.translate)||isNaN(e.translate))&&(e.translate=0)}function gd(e,t,n,r){Fw(e.x,t.x,n.x,r==null?void 0:r.originX),Fw(e.y,t.y,n.y,r==null?void 0:r.originY)}function Nw(e,t,n){e.min=n.min+t.min,e.max=e.min+Mu(t)}function Rj(e,t,n){Nw(e.x,t.x,n.x),Nw(e.y,t.y,n.y)}function jw(e,t,n){e.min=t.min-n.min,e.max=e.min+Mu(t)}function vd(e,t,n){jw(e.x,t.x,n.x),jw(e.y,t.y,n.y)}function Ij(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 Bw(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 Aj(e,t){var n=t.top,r=t.left,i=t.bottom,o=t.right;return{x:Bw(e.x,r,o),y:Bw(e.y,n,i)}}function $w(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 Mj(e,t){return{x:$w(e.x,t.x),y:$w(e.y,t.y)}}function Lj(e,t){var n=.5,r=Mu(e),i=Mu(t);return i>r?n=Md(t.min,t.max-r,e.min):r>i&&(n=Md(e.min,e.max-i,t.min)),cp(0,1,n)}function Fj(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 Nj(e){return e===void 0&&(e=cm),e===!1?e=0:e===!0&&(e=cm),{x:Vw(e,"left","right"),y:Vw(e,"top","bottom")}}function Vw(e,t,n){return{min:Hw(e,t),max:Hw(e,n)}}function Hw(e,t){var n;return typeof e=="number"?e:(n=e[t])!==null&&n!==void 0?n:0}var Uw=function(){return{translate:0,scale:1,origin:0,originPoint:0}},md=function(){return{x:Uw(),y:Uw()}},Ww=function(){return{min:0,max:0}},Mi=function(){return{x:Ww(),y:Ww()}};function As(e){return[e("x"),e("y")]}function GC(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 jj(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}function Bj(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 qC(e){var t=e.scale,n=e.scaleX,r=e.scaleY;return!Qg(t)||!Qg(n)||!Qg(r)}function gl(e){return qC(e)||zw(e.x)||zw(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function zw(e){return e&&e!=="0%"}function gp(e,t,n){var r=e-n,i=t*r;return n+i}function Yw(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=Yw(e.min,t,n,r,i),e.max=Yw(e.max,t,n,r,i)}function XC(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 $j(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 l,c,d=0;d<s;d++)l=n[d],c=l.projectionDelta,((o=(i=l.instance)===null||i===void 0?void 0:i.style)===null||o===void 0?void 0:o.display)!=="contents"&&(r&&l.options.layoutScroll&&l.scroll&&l!==l.root&&Sf(e,{x:-l.scroll.x,y:-l.scroll.y}),c&&(t.x*=c.x.scale,t.y*=c.y.scale,XC(e,c)),r&&gl(l.latestValues)&&Sf(e,l.latestValues))}}function ml(e,t){e.min=e.min+t,e.max=e.max+t}function Gw(e,t,n){var r=Gr(n,3),i=r[0],o=r[1],s=r[2],l=t[s]!==void 0?t[s]:.5,c=lr(e.min,e.max,l);fm(e,t[i],t[o],c,t.scale)}var Vj=["x","scaleX","originX"],Hj=["y","scaleY","originY"];function Sf(e,t){Gw(e.x,t,Vj),Gw(e.y,t,Hj)}function KC(e,t){return GC(Bj(e.getBoundingClientRect(),t))}function Uj(e,t,n){var r=KC(e,n),i=t.scroll;return i&&(ml(r.x,i.x),ml(r.y,i.y)),r}var Wj=new WeakMap,zj=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=Mi(),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 l=function(g){r.stopAnimation(),s&&r.snapToCursor(sy(g,"page").point)},c=function(g,S){var T,_=r.getProps(),I=_.drag,L=_.dragPropagation,R=_.onDragStart;I&&!L&&(r.openGlobalLock&&r.openGlobalLock(),r.openGlobalLock=gC(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),As(function(U){var W,ne,Q=r.getAxisMotionValue(U).get()||0;if(Fs.test(Q)){var pe=(ne=(W=r.visualElement.projection)===null||W===void 0?void 0:W.layout)===null||ne===void 0?void 0:ne.actual[U];if(pe){var x=Mu(pe);Q=x*(parseFloat(Q)/100)}}r.originPoint[U]=Q}),R==null||R(g,S),(T=r.visualElement.animationState)===null||T===void 0||T.setActive(jn.Drag,!0))},d=function(g,S){var T=r.getProps(),_=T.dragPropagation,I=T.dragDirectionLock,L=T.onDirectionLock,R=T.onDrag;if(!(!_&&!r.openGlobalLock)){var U=S.offset;if(I&&r.currentDirection===null){r.currentDirection=Yj(U),r.currentDirection!==null&&(L==null||L(r.currentDirection));return}r.updateAxis("x",S.point,U),r.updateAxis("y",S.point,U),r.visualElement.syncRender(),R==null||R(g,S)}},y=function(g,S){return r.stop(g,S)};this.panSession=new zC(t,{onSessionStart:l,onStart:c,onMove:d,onSessionEnd:y},{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(jn.Drag,!1)},e.prototype.updateAxis=function(t,n,r){var i=this.getProps().drag;if(!(!r||!Eh(t,i,this.currentDirection))){var o=this.getAxisMotionValue(t),s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=Ij(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=Aj(o.actual,r):this.constraints=!1,this.elastic=Nj(i),s!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&As(function(l){t.getAxisMotionValue(l)&&(t.constraints[l]=Fj(o.actual[l],t.constraints[l]))})},e.prototype.resolveRefConstraints=function(){var t=this.getProps(),n=t.dragConstraints,r=t.onMeasureDragConstraints;if(!n||!xf(n))return!1;var i=n.current;Da(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=Uj(i,o.root,this.visualElement.getTransformPagePoint()),l=Mj(o.layout.actual,s);if(r){var c=r(jj(l));this.hasMutatedConstraints=!!c,c&&(l=GC(c))}return l},e.prototype.startAnimation=function(t){var n=this,r=this.getProps(),i=r.drag,o=r.dragMomentum,s=r.dragElastic,l=r.dragTransition,c=r.dragSnapToOrigin,d=r.onDragTransitionEnd,y=this.constraints||{},g=As(function(S){var T;if(Eh(S,i,n.currentDirection)){var _=(T=y==null?void 0:y[S])!==null&&T!==void 0?T:{};c&&(_={min:0,max:0});var I=s?200:1e6,L=s?40:1e7,R=at(at({type:"inertia",velocity:o?t[S]:0,bounceStiffness:I,bounceDamping:L,timeConstant:750,restDelta:1,restSpeed:10},l),_);return n.startAxisValueAnimation(S,R)}});return Promise.all(g).then(d)},e.prototype.startAxisValueAnimation=function(t,n){var r=this.getAxisMotionValue(t);return my(t,r,0,n)},e.prototype.stopAnimation=function(){var t=this;As(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;As(function(r){var i=n.getProps().drag;if(Eh(r,i,n.currentDirection)){var o=n.visualElement.projection,s=n.getAxisMotionValue(r);if(o&&o.layout){var l=o.layout.actual[r],c=l.min,d=l.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 l={x:0,y:0};As(function(d){var y=t.getAxisMotionValue(d);if(y){var g=y.get();l[d]=Lj({min:g,max:g},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(),As(function(d){if(Eh(d,i,null)){var y=t.getAxisMotionValue(d),g=t.constraints[d],S=g.min,T=g.max;y.set(lr(S,T,l[d]))}})}},e.prototype.addListeners=function(){var t=this,n;Wj.set(this.visualElement,this);var r=this.visualElement.getInstance(),i=Df(r,"pointerdown",function(d){var y=t.getProps(),g=y.drag,S=y.dragListener,T=S===void 0?!0:S;g&&T&&t.start(d)}),o=function(){var d=t.getProps().dragConstraints;xf(d)&&(t.constraints=t.resolveRefConstraints())},s=this.visualElement.projection,l=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 y=d.delta,g=d.hasLayoutChanged;t.isDragging&&g&&(As(function(S){var T=t.getAxisMotionValue(S);T&&(t.originPoint[S]+=y[S].translate,T.set(T.get()+y[S].translate))}),t.visualElement.syncRender())}),function(){c(),i(),l()}},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,l=s===void 0?!1:s,c=t.dragConstraints,d=c===void 0?!1:c,y=t.dragElastic,g=y===void 0?cm:y,S=t.dragMomentum,T=S===void 0?!0:S;return at(at({},t),{drag:r,dragDirectionLock:o,dragPropagation:l,dragConstraints:d,dragElastic:g,dragMomentum:T})},e}();function Eh(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Yj(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 Gj(e){var t=e.dragControls,n=e.visualElement,r=jp(function(){return new zj(n)});J.useEffect(function(){return t&&t.subscribe(r)},[r,t]),J.useEffect(function(){return r.addListeners()},[r])}function qj(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,i=e.onPanSessionStart,o=e.visualElement,s=t||n||r||i,l=J.useRef(null),c=J.useContext(Qm).transformPagePoint,d={onSessionStart:i,onStart:n,onMove:t,onEnd:function(g,S){l.current=null,r&&r(g,S)}};J.useEffect(function(){l.current!==null&&l.current.updateHandlers(d)});function y(g){l.current=new zC(g,d,{transformPagePoint:c})}lp(o,"pointerdown",s&&y),yC(function(){return l.current&&l.current.end()})}var Xj={pan:xl(qj),drag:xl(Gj)},kh=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];function Kj(){var e=kh.map(function(){return new pd}),t={},n={clearAllListeners:function(){return e.forEach(function(r){return r.clear()})},updatePropListeners:function(r){kh.forEach(function(i){var o,s="on"+i,l=r[s];(o=t[i])===null||o===void 0||o.call(t),l&&(t[i]=n[s](l))})}};return e.forEach(function(r,i){n["on"+kh[i]]=function(o){return r.add(o)},n["notify"+kh[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 Zj(e,t,n){var r;for(var i in t){var o=t[i],s=n[i];if(Iu(o))e.addValue(i,o),process.env.NODE_ENV==="development"&&BC(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(Iu(s))e.addValue(i,If(o));else if(s!==o)if(e.hasValue(i)){var l=e.getValue(i);!l.hasAnimated&&l.set(o)}else e.addValue(i,If((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 ZC=function(e){var t=e.treeType,n=t===void 0?"":t,r=e.build,i=e.getBaseTarget,o=e.makeTargetAnimatable,s=e.measureViewportBox,l=e.render,c=e.readValueFromInstance,d=e.removeValueFromRenderState,y=e.sortNodePosition,g=e.scrapeMotionValuesFromProps;return function(S,T){var _=S.parent,I=S.props,L=S.presenceId,R=S.blockInitialAnimation,U=S.visualState,W=S.shouldReduceMotion;T===void 0&&(T={});var ne=!1,Q=U.latestValues,pe=U.renderState,x,ce=Kj(),se=new Map,je=new Map,qe={},Xe=at({},Q),rt;function nt(){!x||!ne||(ye(),l(x,pe,I.style,He.projection))}function ye(){r(He,pe,Q,T,I)}function Pe(){ce.notifyUpdate(Q)}function Ue(Re,Fe){var ze=Fe.onChange(function(mt){Q[Re]=mt,I.onUpdate&&Ns.update(Pe,!1,!0)}),ut=Fe.onRenderRequest(He.scheduleRender);je.set(Re,function(){ze(),ut()})}var Je=g(I);for(var st in Je){var ke=Je[st];Q[st]!==void 0&&Iu(ke)&&ke.set(Q[st],!1)}var _e=Np(I),Ve=$T(I),He=at(at({treeType:n,current:null,depth:_?_.depth+1:0,parent:_,children:new Set,presenceId:L,shouldReduceMotion:W,variantChildren:Ve?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:!!(_!=null&&_.isMounted()),blockInitialAnimation:R,isMounted:function(){return!!x},mount:function(Re){ne=!0,x=He.current=Re,He.projection&&He.projection.mount(Re),Ve&&_&&!_e&&(rt=_==null?void 0:_.addVariantChild(He)),se.forEach(function(Fe,ze){return Ue(ze,Fe)}),_==null||_.children.add(He),He.setProps(I)},unmount:function(){var Re;(Re=He.projection)===null||Re===void 0||Re.unmount(),Rf.update(Pe),Rf.render(nt),je.forEach(function(Fe){return Fe()}),rt==null||rt(),_==null||_.children.delete(He),ce.clearAllListeners(),x=void 0,ne=!1},addVariantChild:function(Re){var Fe,ze=He.getClosestVariantNode();if(ze)return(Fe=ze.variantChildren)===null||Fe===void 0||Fe.add(Re),function(){return ze.variantChildren.delete(Re)}},sortNodePosition:function(Re){return!y||n!==Re.treeType?0:y(He.getInstance(),Re.getInstance())},getClosestVariantNode:function(){return Ve?He:_==null?void 0:_.getClosestVariantNode()},getLayoutId:function(){return I.layoutId},getInstance:function(){return x},getStaticValue:function(Re){return Q[Re]},setStaticValue:function(Re,Fe){return Q[Re]=Fe},getLatestValues:function(){return Q},setVisibility:function(Re){He.isVisible!==Re&&(He.isVisible=Re,He.scheduleRender())},makeTargetAnimatable:function(Re,Fe){return Fe===void 0&&(Fe=!0),o(He,Re,I,Fe)},measureViewportBox:function(){return s(x,I)},addValue:function(Re,Fe){He.hasValue(Re)&&He.removeValue(Re),se.set(Re,Fe),Q[Re]=Fe.get(),Ue(Re,Fe)},removeValue:function(Re){var Fe;se.delete(Re),(Fe=je.get(Re))===null||Fe===void 0||Fe(),je.delete(Re),delete Q[Re],d(Re,pe)},hasValue:function(Re){return se.has(Re)},getValue:function(Re,Fe){var ze=se.get(Re);return ze===void 0&&Fe!==void 0&&(ze=If(Fe),He.addValue(Re,ze)),ze},forEachValue:function(Re){return se.forEach(Re)},readValue:function(Re){var Fe;return(Fe=Q[Re])!==null&&Fe!==void 0?Fe:c(x,Re,T)},setBaseTarget:function(Re,Fe){Xe[Re]=Fe},getBaseTarget:function(Re){if(i){var Fe=i(I,Re);if(Fe!==void 0&&!Iu(Fe))return Fe}return Xe[Re]}},ce),{build:function(){return ye(),pe},scheduleRender:function(){Ns.render(nt,!1,!0)},syncRender:nt,setProps:function(Re){(Re.transformTemplate||I.transformTemplate)&&He.scheduleRender(),I=Re,ce.updatePropListeners(Re),qe=Zj(He,g(I),qe)},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 _==null?void 0:_.getVariantContext();if(!_e){var Fe=(_==null?void 0:_.getVariantContext())||{};return I.initial!==void 0&&(Fe.initial=I.initial),Fe}for(var ze={},ut=0;ut<Jj;ut++){var mt=JC[ut],wt=I[mt];(rs(wt)||wt===!1)&&(ze[mt]=wt)}return ze}});return He}},JC=Qo(["initial"],Gr(wy),!1),Jj=JC.length;function dm(e){return typeof e=="string"&&e.startsWith("var(--")}var QC=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Qj(e){var t=QC.exec(e);if(!t)return[,];var n=Gr(t,3),r=n[1],i=n[2];return[r,i]}var eB=4;function hm(e,t,n){n===void 0&&(n=1),Da(n<=eB,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'));var r=Gr(Qj(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 tB(e,t,n){var r,i=_a(t,[]),o=e.getInstance();if(!(o instanceof Element))return{target:i,transitionEnd:n};n&&(n=at({},n)),e.forEachValue(function(d){var y=d.get();if(dm(y)){var g=hm(y,o);g&&d.set(g)}});for(var s in i){var l=i[s];if(dm(l)){var c=hm(l,o);c&&(i[s]=c,n&&((r=n[s])!==null&&r!==void 0||(n[s]=l)))}}return{target:i,transitionEnd:n}}var nB=new Set(["width","height","top","left","right","bottom","x","y"]),eE=function(e){return nB.has(e)},rB=function(e){return Object.keys(e).some(eE)},tE=function(e,t){e.set(t,!1),e.set(t)},Oh=function(e){return e===$c||e===jt},qw;(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"})(qw||(qw={}));var Xw=function(e,t){return parseFloat(e.split(", ")[t])},Kw=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 Xw(o[1],t);var s=i.match(/^matrix\((.+)\)$/);return s?Xw(s[1],e):0}},iB=new Set(["x","y","z"]),oB=Rd.filter(function(e){return!iB.has(e)});function aB(e){var t=[];return oB.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 Zw={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:Kw(4,13),y:Kw(5,14)},sB=function(e,t,n){var r=t.measureViewportBox(),i=t.getInstance(),o=getComputedStyle(i),s=o.display,l={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(function(d){l[d]=Zw[d](r,o)}),t.syncRender();var c=t.measureViewportBox();return n.forEach(function(d){var y=t.getValue(d);tE(y,l[d]),e[d]=Zw[d](c,o)}),e},uB=function(e,t,n,r){n===void 0&&(n={}),r===void 0&&(r={}),t=at({},t),r=at({},r);var i=Object.keys(t).filter(eE),o=[],s=!1,l=[];if(i.forEach(function(y){var g=e.getValue(y);if(e.hasValue(y)){var S=n[y],T=nd(S),_=t[y],I;if(Ad(_)){var L=_.length,R=_[0]===null?1:0;S=_[R],T=nd(S);for(var U=R;U<L;U++)I?Da(nd(_[U])===I,"All keyframes must be of the same type"):(I=nd(_[U]),Da(I===T||Oh(T)&&Oh(I),"Keyframes must be of the same dimension as the current value"))}else I=nd(_);if(T!==I)if(Oh(T)&&Oh(I)){var W=g.get();typeof W=="string"&&g.set(parseFloat(W)),typeof _=="string"?t[y]=parseFloat(_):Array.isArray(_)&&I===jt&&(t[y]=_.map(parseFloat))}else T!=null&&T.transform&&(I!=null&&I.transform)&&(S===0||_===0)?S===0?g.set(I.transform(S)):t[y]=T.transform(_):(s||(o=aB(e),s=!0),l.push(y),r[y]=r[y]!==void 0?r[y]:t[y],tE(g,_))}}),l.length){var c=l.indexOf("height")>=0?window.pageYOffset:null,d=sB(t,e,l);return o.length&&o.forEach(function(y){var g=Gr(y,2),S=g[0],T=g[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 lB(e,t,n,r){return rB(t)?uB(e,t,n,r):{target:t,transitionEnd:r}}var cB=function(e,t,n,r){var i=tB(e,t,r);return t=i.target,r=i.transitionEnd,lB(e,t,n,r)};function fB(e){return window.getComputedStyle(e)}var nE={treeType:"dom",readValueFromInstance:function(e,t){if(Ud(t)){var n=py(t);return n&&n.default||0}else{var r=fB(e);return(zT(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 KC(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,l=_a(t,["transition","transitionEnd"]),c=mj(l,o||{},e);if(i&&(s&&(s=i(s)),l&&(l=i(l)),c&&(c=i(c))),r){gj(e,l,c);var d=cB(e,l,c,s);s=d.transitionEnd,l=d.target}return at({transition:o,transitionEnd:s},l)},scrapeMotionValuesFromProps:oy,build:function(e,t,n,r,i){e.isVisible!==void 0&&(t.style.visibility=e.isVisible?"visible":"hidden"),ny(t,n,r,i.transformTemplate)},render:iC},dB=ZC(nE),hB=ZC(at(at({},nE),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return Ud(t)?((n=py(t))===null||n===void 0?void 0:n.default)||0:(t=oC.has(t)?t:rC(t),e.getAttribute(t))},scrapeMotionValuesFromProps:sC,build:function(e,t,n,r,i){iy(t,n,r,i.transformTemplate)},render:aC})),pB=function(e,t){return ey(e)?hB(t,{enableHardwareAcceleration:!1}):dB(t,{enableHardwareAcceleration:!0})};function Jw(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var rd={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=Jw(e,t.target.x),r=Jw(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},Qw="_$css",gB={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,i=e,o=e.includes("var("),s=[];o&&(e=e.replace(QC,function(I){return s.push(I),Qw}));var l=Au.parse(e);if(l.length>5)return i;var c=Au.createTransformer(e),d=typeof l[0]!="number"?1:0,y=r.x.scale*n.x,g=r.y.scale*n.y;l[0+d]/=y,l[1+d]/=g;var S=lr(y,g,.5);typeof l[2+d]=="number"&&(l[2+d]/=S),typeof l[3+d]=="number"&&(l[3+d]/=S);var T=c(l);if(o){var _=0;T=T.replace(Qw,function(){var I=s[_];return _++,I})}return T}},vB=function(e){AT(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,l=r.layoutId,c=i.projection;V2(yB),c&&(o!=null&&o.group&&o.group.add(c),s!=null&&s.register&&l&&s.register(c),c.root.didUpdate(),c.addEventListener("animationComplete",function(){n.safeToRemove()}),c.setOptions(at(at({},c.options),{onExitComplete:function(){return n.safeToRemove()}}))),fd.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(n){var r=this,i=this.props,o=i.layoutDependency,s=i.visualElement,l=i.drag,c=i.isPresent,d=s.projection;return d&&(d.isPresent=c,l||n.layoutDependency!==o||o===void 0?d.willUpdate():this.safeToRemove(),n.isPresent!==c&&(c?d.promote():d.relegate()||Ns.postRender(function(){var y;!((y=d.getStack())===null||y===void 0)&&y.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}(J.Component);function mB(e){var t=Gr($C(),2),n=t[0],r=t[1],i=J.useContext(VT);return J.createElement(vB,at({},e,{layoutGroup:i,switchLayoutGroup:J.useContext(HT),isPresent:n,safeToRemove:r}))}var yB={borderRadius:at(at({},rd),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:rd,borderTopRightRadius:rd,borderBottomLeftRadius:rd,borderBottomRightRadius:rd,boxShadow:gB},bB={measureLayout:mB};function wB(e,t,n){n===void 0&&(n={});var r=Iu(e)?e:If(e);return my("",r,t,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}var rE=["TopLeft","TopRight","BottomLeft","BottomRight"],xB=rE.length,ex=function(e){return typeof e=="string"?parseFloat(e):e},tx=function(e){return typeof e=="number"||jt.test(e)};function SB(e,t,n,r,i,o){var s,l,c,d;i?(e.opacity=lr(0,(s=n.opacity)!==null&&s!==void 0?s:1,TB(r)),e.opacityExit=lr((l=t.opacity)!==null&&l!==void 0?l:1,0,CB(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 y=0;y<xB;y++){var g="border".concat(rE[y],"Radius"),S=nx(t,g),T=nx(n,g);if(!(S===void 0&&T===void 0)){S||(S=0),T||(T=0);var _=S===0||T===0||tx(S)===tx(T);_?(e[g]=Math.max(lr(ex(S),ex(T),r),0),(Fs.test(T)||Fs.test(S))&&(e[g]+="%")):e[g]=T}}(t.rotate||n.rotate)&&(e.rotate=lr(t.rotate||0,n.rotate||0,r))}function nx(e,t){var n;return(n=e[t])!==null&&n!==void 0?n:e.borderRadius}var TB=iE(0,.5,dy),CB=iE(.5,.95,cy);function iE(e,t,n){return function(r){return r<e?0:r>t?1:n(Md(e,t,r))}}function rx(e,t){e.min=t.min,e.max=t.max}function ts(e,t){rx(e.x,t.x),rx(e.y,t.y)}function ix(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 EB(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),Fs.test(t)){t=parseFloat(t);var l=lr(s.min,s.max,t/100);t=l-s.min}if(typeof t=="number"){var c=lr(o.min,o.max,r);e===o&&(c-=t),e.min=ix(e.min,t,n,c,i),e.max=ix(e.max,t,n,c,i)}}function ox(e,t,n,r,i){var o=Gr(n,3),s=o[0],l=o[1],c=o[2];EB(e,t[s],t[l],t[c],t.scale,r,i)}var kB=["x","scaleX","originX"],OB=["y","scaleY","originY"];function ax(e,t,n,r){ox(e.x,t,kB,n==null?void 0:n.x,r==null?void 0:r.x),ox(e.y,t,OB,n==null?void 0:n.y,r==null?void 0:r.y)}function sx(e){return e.translate===0&&e.scale===1}function oE(e){return sx(e.x)&&sx(e.y)}function aE(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 DB=function(){function e(){this.members=[]}return e.prototype.add=function(t){yy(this.members,t),t.scheduleRender()},e.prototype.remove=function(t){if(by(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}(),PB="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function ux(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,l=n.rotateX,c=n.rotateY;s&&(o+="rotate(".concat(s,"deg) ")),l&&(o+="rotateX(".concat(l,"deg) ")),c&&(o+="rotateY(".concat(c,"deg) "))}var d=e.x.scale*t.x,y=e.y.scale*t.y;return o+="scale(".concat(d,", ").concat(y,")"),o===PB?"none":o}var _B=function(e,t){return e.depth-t.depth},RB=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(t){yy(this.children,t),this.isDirty=!0},e.prototype.remove=function(t){by(this.children,t),this.isDirty=!0},e.prototype.forEach=function(t){this.isDirty&&this.children.sort(_B),this.isDirty=!1,this.children.forEach(t)},e}(),lx=1e3;function sE(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,i=e.checkIsScrollRoot,o=e.resetTransform;return function(){function s(l,c,d){var y=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(){y.isUpdating&&(y.isUpdating=!1,y.clearAllSnapshots())},this.updateProjection=function(){y.nodes.forEach(NB),y.nodes.forEach(jB)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=l,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,l&&this.root.registerPotentialNode(l,this);for(var g=0;g<this.path.length;g++)this.path[g].shouldResetTransform=!0;this.root===this&&(this.nodes=new RB)}return s.prototype.addEventListener=function(l,c){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new pd),this.eventHandlers.get(l).add(c)},s.prototype.notifyListeners=function(l){for(var c=[],d=1;d<arguments.length;d++)c[d-1]=arguments[d];var y=this.eventHandlers.get(l);y==null||y.notify.apply(y,Qo([],Gr(c),!1))},s.prototype.hasListeners=function(l){return this.eventHandlers.has(l)},s.prototype.registerPotentialNode=function(l,c){this.potentialNodes.set(l,c)},s.prototype.mount=function(l,c){var d=this,y;if(c===void 0&&(c=!1),!this.instance){this.isSVG=l instanceof SVGElement&&l.tagName!=="svg",this.instance=l;var g=this.options,S=g.layoutId,T=g.layout,_=g.visualElement;if(_&&!_.getInstance()&&_.mount(l),this.root.nodes.add(this),(y=this.parent)===null||y===void 0||y.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(l,function(){d.root.updateBlockedByResize=!0,clearTimeout(I),I=window.setTimeout(L,250),fd.hasAnimatedSinceResize&&(fd.hasAnimatedSinceResize=!1,d.nodes.forEach(FB))})}S&&this.root.registerSharedNode(S,this),this.options.animate!==!1&&_&&(S||T)&&this.addEventListener("didUpdate",function(R){var U,W,ne,Q,pe,x=R.delta,ce=R.hasLayoutChanged,se=R.hasRelativeTargetChanged,je=R.layout;if(d.isTreeAnimationBlocked()){d.target=void 0,d.relativeTarget=void 0;return}var qe=(W=(U=d.options.transition)!==null&&U!==void 0?U:_.getDefaultTransition())!==null&&W!==void 0?W:UB,Xe=_.getProps(),rt=Xe.onLayoutAnimationStart,nt=Xe.onLayoutAnimationComplete,ye=!d.targetLayout||!aE(d.targetLayout,je)||se,Pe=!ce&&se;if(!((ne=d.resumeFrom)===null||ne===void 0)&&ne.instance||Pe||ce&&(ye||!d.currentAnimation)){d.resumeFrom&&(d.resumingFrom=d.resumeFrom,d.resumingFrom.resumingFrom=void 0),d.setAnimationOrigin(x,Pe);var Ue=at(at({},vy(qe,"layout")),{onPlay:rt,onComplete:nt});_.shouldReduceMotion&&(Ue.delay=0,Ue.type=!1),d.startAnimation(Ue)}else!ce&&d.animationProgress===0&&d.finishAnimation(),d.isLead()&&((pe=(Q=d.options).onExitComplete)===null||pe===void 0||pe.call(Q));d.targetLayout=je})}},s.prototype.unmount=function(){var l,c;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(l=this.getStack())===null||l===void 0||l.remove(this),(c=this.parent)===null||c===void 0||c.children.delete(this),this.instance=void 0,Rf.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 l;return this.isAnimationBlocked||((l=this.parent)===null||l===void 0?void 0:l.isTreeAnimationBlocked())||!1},s.prototype.startUpdate=function(){var l;this.isUpdateBlocked()||(this.isUpdating=!0,(l=this.nodes)===null||l===void 0||l.forEach(BB))},s.prototype.willUpdate=function(l){var c,d,y;if(l===void 0&&(l=!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 g=0;g<this.path.length;g++){var S=this.path[g];S.shouldResetTransform=!0,S.updateScroll()}var T=this.options,_=T.layoutId,I=T.layout;if(!(_===void 0&&!I)){var L=(y=this.options.visualElement)===null||y===void 0?void 0:y.getProps().transformTemplate;this.prevTransformTemplateValue=L==null?void 0:L(this.latestValues,""),this.updateSnapshot(),l&&this.notifyListeners("willUpdate")}}},s.prototype.didUpdate=function(){var l=this.isUpdateBlocked();if(l){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(cx);return}this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(WB),this.potentialNodes.clear()),this.nodes.forEach(LB),this.nodes.forEach(IB),this.nodes.forEach(AB),this.clearAllSnapshots(),qg.update(),qg.preRender(),qg.render())},s.prototype.clearAllSnapshots=function(){this.nodes.forEach(MB),this.sharedNodes.forEach($B)},s.prototype.scheduleUpdateProjection=function(){Ns.preRender(this.updateProjection,!1,!0)},s.prototype.scheduleCheckAfterUnmount=function(){var l=this;Ns.postRender(function(){l.isLayoutDirty?l.root.didUpdate():l.root.checkUpdateFailed()})},s.prototype.updateSnapshot=function(){if(!(this.snapshot||!this.instance)){var l=this.measure(),c=this.removeTransform(this.removeElementScroll(l));px(c),this.snapshot={measured:l,layout:c,latestValues:{}}}},s.prototype.updateLayout=function(){var l;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 y=this.measure();px(y);var g=this.layout;this.layout={measured:y,actual:this.removeElementScroll(y)},this.layoutCorrected=Mi(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),(l=this.options.visualElement)===null||l===void 0||l.notifyLayoutMeasure(this.layout.actual,g==null?void 0:g.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 l;if(o){var c=this.isLayoutDirty||this.shouldResetTransform,d=this.projectionDelta&&!oE(this.projectionDelta),y=(l=this.options.visualElement)===null||l===void 0?void 0:l.getProps().transformTemplate,g=y==null?void 0:y(this.latestValues,""),S=g!==this.prevTransformTemplateValue;c&&(d||gl(this.latestValues)||S)&&(o(this.instance,g),this.shouldResetTransform=!1,this.scheduleRender())}},s.prototype.measure=function(){var l=this.options.visualElement;if(!l)return Mi();var c=l.measureViewportBox(),d=this.root.scroll;return d&&(ml(c.x,d.x),ml(c.y,d.y)),c},s.prototype.removeElementScroll=function(l){var c=Mi();ts(c,l);for(var d=0;d<this.path.length;d++){var y=this.path[d],g=y.scroll,S=y.options,T=y.isScrollRoot;if(y!==this.root&&g&&S.layoutScroll){if(T){ts(c,l);var _=this.root.scroll;_&&(ml(c.x,-_.x),ml(c.y,-_.y))}ml(c.x,g.x),ml(c.y,g.y)}}return c},s.prototype.applyTransform=function(l,c){c===void 0&&(c=!1);var d=Mi();ts(d,l);for(var y=0;y<this.path.length;y++){var g=this.path[y];!c&&g.options.layoutScroll&&g.scroll&&g!==g.root&&Sf(d,{x:-g.scroll.x,y:-g.scroll.y}),gl(g.latestValues)&&Sf(d,g.latestValues)}return gl(this.latestValues)&&Sf(d,this.latestValues),d},s.prototype.removeTransform=function(l){var c,d=Mi();ts(d,l);for(var y=0;y<this.path.length;y++){var g=this.path[y];if(g.instance&&gl(g.latestValues)){qC(g.latestValues)&&g.updateSnapshot();var S=Mi(),T=g.measure();ts(S,T),ax(d,g.latestValues,(c=g.snapshot)===null||c===void 0?void 0:c.layout,S)}}return gl(this.latestValues)&&ax(d,this.latestValues),d},s.prototype.setTargetDelta=function(l){this.targetDelta=l,this.root.scheduleUpdateProjection()},s.prototype.setOptions=function(l){var c;this.options=at(at(at({},this.options),l),{crossfade:(c=l.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 l,c=this.options,d=c.layout,y=c.layoutId;!this.layout||!(d||y)||(!this.targetDelta&&!this.relativeTarget&&(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget=Mi(),this.relativeTargetOrigin=Mi(),vd(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),ts(this.relativeTarget,this.relativeTargetOrigin))),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Mi(),this.targetWithTransforms=Mi()),this.relativeTarget&&this.relativeTargetOrigin&&(!((l=this.relativeParent)===null||l===void 0)&&l.target)?Rj(this.target,this.relativeTarget,this.relativeParent.target):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.actual):ts(this.target,this.layout.actual),XC(this.target,this.targetDelta)):ts(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=Mi(),this.relativeTargetOrigin=Mi(),vd(this.relativeTargetOrigin,this.target,this.relativeParent.target),ts(this.relativeTarget,this.relativeTargetOrigin)))))},s.prototype.getClosestProjectingParent=function(){if(!(!this.parent||gl(this.parent.latestValues)))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},s.prototype.calcProjection=function(){var l,c=this.options,d=c.layout,y=c.layoutId;if(this.isTreeAnimating=!!(!((l=this.parent)===null||l===void 0)&&l.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!(!this.layout||!(d||y))){var g=this.getLead();ts(this.layoutCorrected,this.layout.actual),$j(this.layoutCorrected,this.treeScale,this.path,!!this.resumingFrom||this!==g);var S=g.target;if(S){this.projectionDelta||(this.projectionDelta=md(),this.projectionDeltaWithTransform=md());var T=this.treeScale.x,_=this.treeScale.y,I=this.projectionTransform;gd(this.projectionDelta,this.layoutCorrected,S,this.latestValues),this.projectionTransform=ux(this.projectionDelta,this.treeScale),(this.projectionTransform!==I||this.treeScale.x!==T||this.treeScale.y!==_)&&(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(l){var c,d,y;l===void 0&&(l=!0),(d=(c=this.options).scheduleRender)===null||d===void 0||d.call(c),l&&((y=this.getStack())===null||y===void 0||y.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},s.prototype.setAnimationOrigin=function(l,c){var d=this,y;c===void 0&&(c=!1);var g=this.snapshot,S=(g==null?void 0:g.latestValues)||{},T=at({},this.latestValues),_=md();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!c;var I=Mi(),L=g==null?void 0:g.isShared,R=(((y=this.getStack())===null||y===void 0?void 0:y.members.length)||0)<=1,U=!!(L&&!R&&this.options.crossfade===!0&&!this.path.some(HB));this.animationProgress=0,this.mixTargetDelta=function(W){var ne,Q=W/1e3;fx(_.x,l.x,Q),fx(_.y,l.y,Q),d.setTargetDelta(_),d.relativeTarget&&d.relativeTargetOrigin&&d.layout&&(!((ne=d.relativeParent)===null||ne===void 0)&&ne.layout)&&(vd(I,d.layout.actual,d.relativeParent.layout.actual),VB(d.relativeTarget,d.relativeTargetOrigin,I,Q)),L&&(d.animationValues=T,SB(T,S,d.latestValues,Q,U,R)),d.root.scheduleUpdateProjection(),d.scheduleRender(),d.animationProgress=Q},this.mixTargetDelta(0)},s.prototype.startAnimation=function(l){var c=this,d,y;this.notifyListeners("animationStart"),(d=this.currentAnimation)===null||d===void 0||d.stop(),this.resumingFrom&&((y=this.resumingFrom.currentAnimation)===null||y===void 0||y.stop()),this.pendingAnimation&&(Rf.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ns.update(function(){fd.hasAnimatedSinceResize=!0,c.currentAnimation=wB(0,lx,at(at({},l),{onUpdate:function(g){var S;c.mixTargetDelta(g),(S=l.onUpdate)===null||S===void 0||S.call(l,g)},onComplete:function(){var g;(g=l.onComplete)===null||g===void 0||g.call(l),c.completeAnimation()}})),c.resumingFrom&&(c.resumingFrom.currentAnimation=c.currentAnimation),c.pendingAnimation=void 0})},s.prototype.completeAnimation=function(){var l;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),(l=this.getStack())===null||l===void 0||l.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},s.prototype.finishAnimation=function(){var l;this.currentAnimation&&((l=this.mixTargetDelta)===null||l===void 0||l.call(this,lx),this.currentAnimation.stop()),this.completeAnimation()},s.prototype.applyTransformsToTarget=function(){var l=this.getLead(),c=l.targetWithTransforms,d=l.target,y=l.layout,g=l.latestValues;!c||!d||!y||(ts(c,d),Sf(c,g),gd(this.projectionDeltaWithTransform,this.layoutCorrected,c,g))},s.prototype.registerSharedNode=function(l,c){var d,y,g;this.sharedNodes.has(l)||this.sharedNodes.set(l,new DB);var S=this.sharedNodes.get(l);S.add(c),c.promote({transition:(d=c.options.initialPromotionConfig)===null||d===void 0?void 0:d.transition,preserveFollowOpacity:(g=(y=c.options.initialPromotionConfig)===null||y===void 0?void 0:y.shouldPreserveFollowOpacity)===null||g===void 0?void 0:g.call(y,c)})},s.prototype.isLead=function(){var l=this.getStack();return l?l.lead===this:!0},s.prototype.getLead=function(){var l,c=this.options.layoutId;return c?((l=this.getStack())===null||l===void 0?void 0:l.lead)||this:this},s.prototype.getPrevLead=function(){var l,c=this.options.layoutId;return c?(l=this.getStack())===null||l===void 0?void 0:l.prevLead:void 0},s.prototype.getStack=function(){var l=this.options.layoutId;if(l)return this.root.sharedNodes.get(l)},s.prototype.promote=function(l){var c=l===void 0?{}:l,d=c.needsReset,y=c.transition,g=c.preserveFollowOpacity,S=this.getStack();S&&S.promote(this,g),d&&(this.projectionDelta=void 0,this.needsReset=!0),y&&this.setOptions({transition:y})},s.prototype.relegate=function(){var l=this.getStack();return l?l.relegate(this):!1},s.prototype.resetRotation=function(){var l=this.options.visualElement;if(l){for(var c=!1,d={},y=0;y<Jv.length;y++){var g=Jv[y],S="rotate"+g;l.getStaticValue(S)&&(c=!0,d[S]=l.getStaticValue(S),l.setStaticValue(S,0))}if(c){l==null||l.syncRender();for(var S in d)l.setStaticValue(S,d[S]);l.scheduleRender()}}},s.prototype.getProjectionStyles=function(l){var c,d,y,g,S,T;l===void 0&&(l={});var _={};if(!this.instance||this.isSVG)return _;if(this.isVisible)_.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,_.opacity="",_.pointerEvents=Wh(l.pointerEvents)||"",_.transform=I?I(this.latestValues,""):"none",_;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=Wh(l.pointerEvents)||""),this.hasProjected&&!gl(this.latestValues)&&(R.transform=I?I({},""):"none",this.hasProjected=!1),R}var U=L.animationValues||L.latestValues;this.applyTransformsToTarget(),_.transform=ux(this.projectionDeltaWithTransform,this.treeScale,U),I&&(_.transform=I(U,_.transform));var W=this.projectionDelta,ne=W.x,Q=W.y;_.transformOrigin="".concat(ne.origin*100,"% ").concat(Q.origin*100,"% 0"),L.animationValues?_.opacity=L===this?(g=(y=U.opacity)!==null&&y!==void 0?y:this.latestValues.opacity)!==null&&g!==void 0?g:1:this.preserveOpacity?this.latestValues.opacity:U.opacityExit:_.opacity=L===this?(S=U.opacity)!==null&&S!==void 0?S:"":(T=U.opacityExit)!==null&&T!==void 0?T:0;for(var pe in sp)if(U[pe]!==void 0){var x=sp[pe],ce=x.correct,se=x.applyTo,je=ce(U[pe],L);if(se)for(var qe=se.length,Xe=0;Xe<qe;Xe++)_[se[Xe]]=je;else _[pe]=je}return this.options.layoutId&&(_.pointerEvents=L===this?Wh(l.pointerEvents)||"":"none"),_},s.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},s.prototype.resetTree=function(){this.root.nodes.forEach(function(l){var c;return(c=l.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(cx),this.root.sharedNodes.clear()},s}()}function IB(e){e.updateLayout()}function AB(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,l=s.actual,c=s.measured;e.options.animationType==="size"?As(function(U){var W=o.isShared?o.measured[U]:o.layout[U],ne=Mu(W);W.min=l[U].min,W.max=W.min+ne}):e.options.animationType==="position"&&As(function(U){var W=o.isShared?o.measured[U]:o.layout[U],ne=Mu(l[U]);W.max=W.min+ne});var d=md();gd(d,l,o.layout);var y=md();o.isShared?gd(y,e.applyTransform(c,!0),o.measured):gd(y,l,o.layout);var g=!oE(d),S=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var T=e.relativeParent,_=T.snapshot,I=T.layout;if(_&&I){var L=Mi();vd(L,o.layout,_.layout);var R=Mi();vd(R,l,I.actual),aE(L,R)||(S=!0)}}e.notifyListeners("didUpdate",{layout:l,snapshot:o,delta:y,layoutDelta:d,hasLayoutChanged:g,hasRelativeTargetChanged:S})}else e.isLead()&&((i=(r=e.options).onExitComplete)===null||i===void 0||i.call(r));e.options.transition=void 0}function MB(e){e.clearSnapshot()}function cx(e){e.clearMeasurements()}function LB(e){var t=e.options.visualElement;t!=null&&t.getProps().onBeforeLayoutMeasure&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function FB(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function NB(e){e.resolveTargetDelta()}function jB(e){e.calcProjection()}function BB(e){e.resetRotation()}function $B(e){e.removeLeadSnapshot()}function fx(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 dx(e,t,n,r){e.min=lr(t.min,n.min,r),e.max=lr(t.max,n.max,r)}function VB(e,t,n,r){dx(e.x,t.x,n.x,r),dx(e.y,t.y,n.y,r)}function HB(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var UB={duration:.45,ease:[.4,0,.1,1]};function WB(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 hx(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function px(e){hx(e.x),hx(e.y)}var zB=sE({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},YB=sE({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!ev.current){var e=new zB(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"}}),GB=at(at(at(at({},Dj),YN),Xj),bB),qB=B2(function(e,t){return EF(e,t,GB,pB,YB)});function pm(e,t,n){var r,i,o,s,l;t==null&&(t=100);function c(){var y=Date.now()-s;y<t&&y>=0?r=setTimeout(c,t-y):(r=null,n||(l=e.apply(o,i),o=i=null))}var d=function(){o=this,i=arguments,s=Date.now();var y=n&&!r;return r||(r=setTimeout(c,t)),y&&(l=e.apply(o,i),o=i=null),l};return d.clear=function(){r&&(clearTimeout(r),r=null)},d.flush=function(){r&&(l=e.apply(o,i),o=i=null,clearTimeout(r),r=null)},d}pm.debounce=pm;var XB=pm;const gx=Bc(XB);function KB(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,l]=J.useState({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),c=J.useRef({element:null,scrollContainers:null,resizeObserver:null,lastBounds:s}),d=t?typeof t=="number"?t:t.scroll:null,y=t?typeof t=="number"?t:t.resize:null,g=J.useRef(!1);J.useEffect(()=>(g.current=!0,()=>void(g.current=!1)));const[S,T,_]=J.useMemo(()=>{const U=()=>{if(!c.current.element)return;const{left:W,top:ne,width:Q,height:pe,bottom:x,right:ce,x:se,y:je}=c.current.element.getBoundingClientRect(),qe={left:W,top:ne,width:Q,height:pe,bottom:x,right:ce,x:se,y:je};c.current.element instanceof HTMLElement&&i&&(qe.height=c.current.element.offsetHeight,qe.width=c.current.element.offsetWidth),Object.freeze(qe),g.current&&!e$(c.current.lastBounds,qe)&&l(c.current.lastBounds=qe)};return[U,y?gx(U,y):U,d?gx(U,d):U]},[l,i,d,y]);function I(){c.current.scrollContainers&&(c.current.scrollContainers.forEach(U=>U.removeEventListener("scroll",_,!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(_),c.current.resizeObserver.observe(c.current.element),n&&c.current.scrollContainers&&c.current.scrollContainers.forEach(U=>U.addEventListener("scroll",_,{capture:!0,passive:!0})))}const R=U=>{!U||U===c.current.element||(I(),c.current.element=U,c.current.scrollContainers=uE(U),L())};return JB(_,!!n),ZB(T),J.useEffect(()=>{I(),L()},[n,_,T]),J.useEffect(()=>I,[]),[R,s,S]}function ZB(e){J.useEffect(()=>{const t=e;return window.addEventListener("resize",t),()=>void window.removeEventListener("resize",t)},[e])}function JB(e,t){J.useEffect(()=>{if(t){const n=e;return window.addEventListener("scroll",n,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",n,!0)}},[e,t])}function uE(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,...uE(e.parentElement)]}const QB=["x","y","top","bottom","left","right","width","height"],e$=(e,t)=>QB.every(n=>e[n]===t[n]),lE=J.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 vx=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),tv=function(){return Math.random().toString(36).substring(7).split("").join(".")},mx={INIT:"@@redux/INIT"+tv(),REPLACE:"@@redux/REPLACE"+tv(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+tv()}};function t$(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 n$(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(o$(e))return"date";if(i$(e))return"error";var n=r$(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 r$(e){return typeof e.constructor=="function"?e.constructor.name:null}function i$(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function o$(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=n$(e)),t}function cE(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(cE)(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=[],l=s,c=!1;function d(){l===s&&(l=s.slice())}function y(){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 g(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(),l.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 U=l.indexOf(I);l.splice(U,1),s=null}}}function S(I){if(!t$(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=l,R=0;R<L.length;R++){var U=L[R];U()}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:mx.REPLACE})}function _(){var I,L=g;return I={subscribe:function(U){if(typeof U!="object"||U===null)throw new Error(process.env.NODE_ENV==="production"?xa(11):"Expected the observer to be an object. Instead, received: '"+pf(U)+"'");function W(){U.next&&U.next(y())}W();var ne=L(W);return{unsubscribe:ne}}},I[vx]=function(){return this},I}return S({type:mx.INIT}),r={dispatch:S,subscribe:g,getState:y,replaceReducer:T},r[vx]=_,r}function Kt(e,t,...n){if(a$()&&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 a$(){return typeof process<"u"&&process.env.NODE_ENV==="production"}function s$(e,t,n){return t.split(".").reduce((r,i)=>r&&r[i]?r[i]:n||null,e)}function u$(e,t){return e.filter(n=>n!==t)}function fE(e){return typeof e=="object"}function l$(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 c$(e,t){return e.filter(n=>t.indexOf(n)>-1)}const xy="dnd-core/INIT_COORDS",Up="dnd-core/BEGIN_DRAG",Sy="dnd-core/PUBLISH_DRAG_SOURCE",Wp="dnd-core/HOVER",zp="dnd-core/DROP",Yp="dnd-core/END_DRAG";function yx(e,t){return{type:xy,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const f$={type:xy,payload:{clientOffset:null,sourceClientOffset:null}};function d$(e){return function(n=[],r={publishSource:!0}){const{publishSource:i=!0,clientOffset:o,getSourceClientOffset:s}=r,l=e.getMonitor(),c=e.getRegistry();e.dispatch(yx(o)),h$(n,l,c);const d=v$(n,l);if(d==null){e.dispatch(f$);return}let y=null;if(o){if(!s)throw new Error("getSourceClientOffset must be defined");p$(s),y=s(d)}e.dispatch(yx(o,y));const S=c.getSource(d).beginDrag(l,d);if(S==null)return;g$(S),c.pinSource(d);const T=c.getSourceType(d);return{type:Up,payload:{itemType:T,item:S,sourceId:d,clientOffset:o||null,sourceClientOffset:y||null,isSourcePublic:!!i}}}}function h$(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 p$(e){Kt(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function g$(e){Kt(fE(e),"Item must be an object.")}function v$(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 m$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y$(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){m$(e,i,n[i])})}return e}function b$(e){return function(n={}){const r=e.getMonitor(),i=e.getRegistry();w$(r),T$(r).forEach((s,l)=>{const c=x$(s,l,i,r),d={type:zp,payload:{dropResult:y$({},n,c)}};e.dispatch(d)})}}function w$(e){Kt(e.isDragging(),"Cannot call drop while not dragging."),Kt(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function x$(e,t,n,r){const i=n.getTarget(e);let o=i?i.drop(r,e):void 0;return S$(o),typeof o>"u"&&(o=t===0?{}:r.getDropResult()),o}function S$(e){Kt(typeof e>"u"||fE(e),"Drop result must either be an object or undefined.")}function T$(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function C$(e){return function(){const n=e.getMonitor(),r=e.getRegistry();E$(n);const i=n.getSourceId();return i!=null&&(r.getSource(i,!0).endDrag(n,i),r.unpinSource()),{type:Yp}}}function E$(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 k$(e){return function(n,{clientOffset:r}={}){O$(n);const i=n.slice(0),o=e.getMonitor(),s=e.getRegistry(),l=o.getItemType();return P$(i,s,l),D$(i,o,s),_$(i,o,s),{type:Wp,payload:{targetIds:i,clientOffset:r||null}}}}function O$(e){Kt(Array.isArray(e),"Expected targetIds to be an array.")}function D$(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 P$(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 _$(e,t,n){e.forEach(function(r){n.getTarget(r).hover(t,r)})}function R$(e){return function(){if(e.getMonitor().isDragging())return{type:Sy}}}function I$(e){return{beginDrag:d$(e),publishDragSource:R$(e),hover:k$(e),drop:b$(e),endDrag:C$(e)}}class A${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 l=o.apply(t,s);typeof l<"u"&&n(l)}}const i=I$(this);return Object.keys(i).reduce((o,s)=>{const l=i[s];return o[s]=r(l),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 M$(e,t){return{x:e.x+t.x,y:e.y+t.y}}function dE(e,t){return{x:e.x-t.x,y:e.y-t.y}}function L$(e){const{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return!t||!n||!r?null:dE(M$(t,r),n)}function F$(e){const{clientOffset:t,initialClientOffset:n}=e;return!t||!n?null:dE(t,n)}const yd=[],Ty=[];yd.__IS_NONE__=!0;Ty.__IS_ALL__=!0;function N$(e,t){return e===yd?!1:e===Ty||typeof t>"u"?!0:c$(t,e).length>0}class j${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(),l=s.stateId;try{l===i||l===i+1&&!N$(s.dirtyHandlerIds,r)||t()}finally{i=l}};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 l=s.indexOf(t);return r?l===s.length-1:l>-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 L$(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return F$(this.store.getState().dragOffset)}constructor(t,n){this.store=t,this.registry=n}}const bx=typeof global<"u"?global:self,hE=bx.MutationObserver||bx.WebKitMutationObserver;function pE(e){return function(){const n=setTimeout(i,0),r=setInterval(i,50);function i(){clearTimeout(n),clearInterval(r),e()}}}function B$(e){let t=1;const n=new hE(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}const $$=typeof hE=="function"?B$:pE;class V${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=$$(this.flush),this.requestErrorThrow=pE(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class H${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 U${create(t){const n=this.freeTasks,r=n.length?n.pop():new H$(this.onError,i=>n[n.length]=i);return r.task=t,r}constructor(t){this.onError=t,this.freeTasks=[]}}const gE=new V$,W$=new U$(gE.registerPendingError);function z$(e){gE.enqueueTask(W$.create(e))}const Cy="dnd-core/ADD_SOURCE",Ey="dnd-core/ADD_TARGET",ky="dnd-core/REMOVE_SOURCE",Gp="dnd-core/REMOVE_TARGET";function Y$(e){return{type:Cy,payload:{sourceId:e}}}function G$(e){return{type:Ey,payload:{targetId:e}}}function q$(e){return{type:ky,payload:{sourceId:e}}}function X$(e){return{type:Gp,payload:{targetId:e}}}function K$(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 Z$(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 J$=0;function Q$(){return J$++}function eV(e){const t=Q$().toString();switch(e){case ka.SOURCE:return`S${t}`;case ka.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function wx(e){switch(e[0]){case"S":return ka.SOURCE;case"T":return ka.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function xx(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 tV{addSource(t,n){vm(t),K$(n);const r=this.addHandler(ka.SOURCE,t,n);return this.store.dispatch(Y$(r)),r}addTarget(t,n){vm(t,!0),Z$(n);const r=this.addHandler(ka.TARGET,t,n);return this.store.dispatch(G$(r)),r}containsHandler(t){return xx(this.dragSources,t)||xx(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 wx(t)===ka.SOURCE}isTargetId(t){return wx(t)===ka.TARGET}removeSource(t){Kt(this.getSource(t),"Expected an existing source."),this.store.dispatch(q$(t)),z$(()=>{this.dragSources.delete(t),this.types.delete(t)})}removeTarget(t){Kt(this.getTarget(t),"Expected an existing target."),this.store.dispatch(X$(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=eV(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 nV=(e,t)=>e===t;function rV(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function iV(e,t,n=nV){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 oV(e=yd,t){switch(t.type){case Wp:break;case Cy:case Ey:case Gp:case ky:return yd;case Up:case Sy:case Yp:case zp:default:return Ty}const{targetIds:n=[],prevTargetIds:r=[]}=t.payload,i=l$(n,r);if(!(i.length>0||!iV(n,r)))return yd;const s=r[r.length-1],l=n[n.length-1];return s!==l&&(s&&i.push(s),l&&i.push(l)),i}function aV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sV(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){aV(e,i,n[i])})}return e}const Sx={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function uV(e=Sx,t){const{payload:n}=t;switch(t.type){case xy:case Up:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case Wp:return rV(e.clientOffset,n.clientOffset)?e:sV({},e,{clientOffset:n.clientOffset});case Yp:case zp:return Sx;default:return e}}function lV(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){lV(e,i,n[i])})}return e}const cV={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function fV(e=cV,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 Sy: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:u$(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 dV(e=0,t){switch(t.type){case Cy:case Ey:return e+1;case ky:case Gp:return e-1;default:return e}}function hV(e=0){return e+1}function pV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gV(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){pV(e,i,n[i])})}return e}function vV(e={},t){return{dirtyHandlerIds:oV(e.dirtyHandlerIds,{type:t.type,payload:gV({},t.payload,{prevTargetIds:s$(e,"dragOperation.targetIds",[])})}),dragOffset:uV(e.dragOffset,t),refCount:dV(e.refCount,t),dragOperation:fV(e.dragOperation,t),stateId:hV(e.stateId)}}function mV(e,t=void 0,n={},r=!1){const i=yV(r),o=new j$(i,new tV(i)),s=new A$(i,o),l=e(s,t,n);return s.receiveBackend(l),s}function yV(e){const t=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return cE(vV,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}function bV(e,t){if(e==null)return{};var n=wV(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 wV(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 Tx=0;const Gh=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var xV=J.memo(function(t){var{children:n}=t,r=bV(t,["children"]);const[i,o]=SV(r);return J.useEffect(()=>{if(o){const s=vE();return++Tx,()=>{--Tx===0&&(s[Gh]=null)}}},[]),ot.jsx(lE.Provider,{value:i,children:n})});function SV(e){if("manager"in e)return[{dragDropManager:e.manager},!1];const t=TV(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}function TV(e,t=vE(),n,r){const i=t;return i[Gh]||(i[Gh]={dragDropManager:mV(e,t,n,r)}),i[Gh]}function vE(){return typeof global<"u"?global:window}var CV=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 EV=Bc(CV),Ic=typeof window<"u"?J.useLayoutEffect:J.useEffect;function mE(e,t,n){const[r,i]=J.useState(()=>t(e)),o=J.useCallback(()=>{const s=t(e);EV(r,s)||(i(s),n&&n())},[r,e,n]);return Ic(o),[r,o]}function kV(e,t,n){const[r,i]=mE(e,t,n);return Ic(function(){const s=e.getHandlerId();if(s!=null)return e.subscribeToStateChange(i,{handlerIds:[s]})},[e,i]),r}function yE(e,t,n){return kV(t,e||(()=>({})),()=>n.reconnect())}function bE(e,t){const n=[...t||[]];return t==null&&typeof e!="function"&&n.push(e),J.useMemo(()=>typeof e=="function"?e():e,n)}function OV(e){return J.useMemo(()=>e.hooks.dragSource(),[e])}function DV(e){return J.useMemo(()=>e.hooks.dragPreview(),[e])}let nv=!1,rv=!1;class PV{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 _V{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 RV(e,t,n){const r=n.getRegistry(),i=r.addTarget(e,t);return[i,()=>r.removeTarget(i)]}function IV(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 l=Object.prototype.hasOwnProperty.bind(t);for(let c=0;c<o.length;c++){const d=o[c];if(!l(d))return!1;const y=e[d],g=t[d];if(i=n?n.call(r,y,g,d):void 0,i===!1||i===void 0&&y!==g)return!1}return!0}function ym(e){return e!==null&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function AV(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 MV(e){return(t=null,n=null)=>{if(!J.isValidElement(t)){const o=t;return e(o,n),o}const r=t;return AV(r),LV(r,n?o=>e(o,n):e)}}function wE(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{const i=MV(r);t[n]=()=>i}}),t}function Cx(e,t){typeof e=="function"?e(t):e.current=t}function LV(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?J.cloneElement(e,{ref:r=>{Cx(n,r),Cx(t,r)}}):J.cloneElement(e,{ref:t})}class FV{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=wE({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 NV{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=wE({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 Fu(){const{dragDropManager:e}=J.useContext(lE);return Kt(e!=null,"Expected drag drop context"),e}function jV(e,t){const n=Fu(),r=J.useMemo(()=>new FV(n.getBackend()),[n]);return Ic(()=>(r.dragSourceOptions=e||null,r.reconnect(),()=>r.disconnectDragSource()),[r,e]),Ic(()=>(r.dragPreviewOptions=t||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,t]),r}function BV(){const e=Fu();return J.useMemo(()=>new PV(e),[e])}class $V{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 VV(e,t,n){const r=J.useMemo(()=>new $V(e,t,n),[t,n]);return J.useEffect(()=>{r.spec=e},[e]),r}function HV(e){return J.useMemo(()=>{const t=e.type;return Kt(t!=null,"spec.type must be defined"),t},[e])}function UV(e,t,n){const r=Fu(),i=VV(e,t,n),o=HV(e);Ic(function(){if(o!=null){const[l,c]=IV(o,i,r);return t.receiveHandlerId(l),n.receiveHandlerId(l),c}},[r,t,n,i,o])}function WV(e,t){const n=bE(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=BV(),i=jV(n.options,n.previewOptions);return UV(n,r,i),[yE(n.collect,r,i),OV(i),DV(i)]}function zV(e){const n=Fu().getMonitor(),[r,i]=mE(n,e);return J.useEffect(()=>n.subscribeToOffsetChange(i)),J.useEffect(()=>n.subscribeToStateChange(i)),r}function YV(e){return J.useMemo(()=>e.hooks.dropTarget(),[e])}function GV(e){const t=Fu(),n=J.useMemo(()=>new NV(t.getBackend()),[t]);return Ic(()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget()),[e]),n}function qV(){const e=Fu();return J.useMemo(()=>new _V(e),[e])}function XV(e){const{accept:t}=e;return J.useMemo(()=>(Kt(e.accept!=null,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}class KV{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 ZV(e,t){const n=J.useMemo(()=>new KV(e,t),[t]);return J.useEffect(()=>{n.spec=e},[e]),n}function JV(e,t,n){const r=Fu(),i=ZV(e,t),o=XV(e);Ic(function(){const[l,c]=RV(o,i,r);return t.receiveHandlerId(l),n.receiveHandlerId(l),c},[r,t,i,n,o.map(s=>s.toString()).join("|")])}function xE(e,t){const n=bE(e,t),r=qV(),i=GV(n.options);return JV(n,r,i),[yE(n.collect,r,i),YV(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 QV(e,t,n){e3(e,t),t.set(e,n)}function e3(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Dh(e,t){var n=SE(e,t,"get");return t3(e,n)}function t3(e,t){return t.get?t.get.call(e):t.value}function n3(e,t,n){var r=SE(e,t,"set");return r3(e,r,n),n}function SE(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function r3(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 i3{constructor(){QV(this,vf,{writable:!0,value:void 0}),ov(this,"register",t=>{Dh(this,vf).push(t)}),ov(this,"unregister",t=>{let n;for(;(n=Dh(this,vf).indexOf(t))!==-1;)Dh(this,vf).splice(n,1)}),ov(this,"backendChanged",t=>{for(const n of Dh(this,vf))n.backendChanged(t)}),n3(this,vf,[])}}function ns(e,t,n){o3(e,t),t.set(e,n)}function o3(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Is(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=TE(e,t,"get");return a3(e,n)}function a3(e,t){return t.get?t.get.call(e):t.value}function mf(e,t,n){var r=TE(e,t,"set");return s3(e,r,n),n}function TE(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function s3(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,Ph=new WeakMap,Ta=new WeakMap,hl=new WeakMap,mc=new WeakMap,Ex=new WeakMap,kx=new WeakMap,Ox=new WeakMap,av=new WeakMap,sv=new WeakMap,_h=new WeakMap;class _f{constructor(t,n,r){if(ns(this,Sa,{writable:!0,value:void 0}),ns(this,Ph,{writable:!0,value:void 0}),ns(this,Ta,{writable:!0,value:void 0}),ns(this,hl,{writable:!0,value:void 0}),ns(this,mc,{writable:!0,value:void 0}),ns(this,Ex,{writable:!0,value:(i,o,s)=>{var l,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 y=s.id;const g=!s.id&&d&&d.constructor;if(g&&(y=d.constructor.name),y)g&&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)[y])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)[y]),")"));return{id:y,instance:d,preview:(l=s.preview)!==null&&l!==void 0?l:!1,transition:s.transition,skipDispatchOnTransition:(c=s.skipDispatchOnTransition)!==null&&c!==void 0?c:!1}}}),Is(this,"setup",()=>{if(!(typeof window>"u")){if(_f.isSetUp)throw new Error("Cannot have two MultiBackends at the same time.");_f.isSetUp=!0,Jt(this,kx).call(this,window),Jt(this,Ta)[Jt(this,Sa)].instance.setup()}}),Is(this,"teardown",()=>{typeof window>"u"||(_f.isSetUp=!1,Jt(this,Ox).call(this,window),Jt(this,Ta)[Jt(this,Sa)].instance.teardown())}),Is(this,"connectDragSource",(i,o,s)=>Jt(this,_h).call(this,"connectDragSource",i,o,s)),Is(this,"connectDragPreview",(i,o,s)=>Jt(this,_h).call(this,"connectDragPreview",i,o,s)),Is(this,"connectDropTarget",(i,o,s)=>Jt(this,_h).call(this,"connectDropTarget",i,o,s)),Is(this,"profile",()=>Jt(this,Ta)[Jt(this,Sa)].instance.profile()),Is(this,"previewEnabled",()=>Jt(this,Ta)[Jt(this,Sa)].preview),Is(this,"previewsList",()=>Jt(this,Ph)),Is(this,"backendsList",()=>Jt(this,hl)),ns(this,kx,{writable:!0,value:i=>{Jt(this,hl).forEach(o=>{o.transition&&i.addEventListener(o.transition.event,Jt(this,av))})}}),ns(this,Ox,{writable:!0,value:i=>{Jt(this,hl).forEach(o=>{o.transition&&i.removeEventListener(o.transition.event,Jt(this,av))})}}),ns(this,av,{writable:!0,value:i=>{const o=Jt(this,Sa);if(Jt(this,hl).some(l=>l.id!==Jt(this,Sa)&&l.transition&&l.transition.check(i)?(mf(this,Sa,l.id),!0):!1),Jt(this,Sa)!==o){var s;Jt(this,Ta)[o].instance.teardown(),Object.keys(Jt(this,mc)).forEach(y=>{const g=Jt(this,mc)[y];g.unsubscribe(),g.unsubscribe=Jt(this,sv).call(this,g.func,...g.args)}),Jt(this,Ph).backendChanged(this);const l=Jt(this,Ta)[Jt(this,Sa)];if(l.instance.setup(),l.skipDispatchOnTransition)return;const c=i.constructor,d=new c(i.type,i);(s=i.target)===null||s===void 0||s.dispatchEvent(d)}}}),ns(this,sv,{writable:!0,value:(i,o,s,l)=>Jt(this,Ta)[Jt(this,Sa)].instance[i](o,s,l)}),ns(this,_h,{writable:!0,value:(i,o,s,l)=>{const c="".concat(i,"_").concat(o),d=Jt(this,sv).call(this,i,o,s,l);return Jt(this,mc)[c]={func:i,args:[o,s,l],unsubscribe:d},()=>{Jt(this,mc)[c].unsubscribe(),delete Jt(this,mc)[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,Ph,new i3),mf(this,Ta,{}),mf(this,hl,[]),r.backends.forEach(i=>{const o=Jt(this,Ex).call(this,t,n,i);Jt(this,Ta)[o.id]=o,Jt(this,hl).push(o)}),mf(this,Sa,Jt(this,hl)[0].id),mf(this,mc,{})}}Is(_f,"isSetUp",!1);const u3=(e,t,n)=>new _f(e,t,n),CE=(e,t)=>({event:e,check:t}),l3=CE("touchstart",e=>{const t=e;return t.touches!==null&&t.touches!==void 0}),c3=CE("pointerdown",e=>e.pointerType=="mouse");var Sl;(function(e){e.mouse="mouse",e.touch="touch",e.keyboard="keyboard"})(Sl||(Sl={}));class f3{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 d3(e,t,n,r){return Math.sqrt(Math.pow(Math.abs(n-e),2)+Math.pow(Math.abs(r-t),2))}function h3(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 l=i[s];if(l&&(l.start==null||o>=l.start)&&(l.end==null||o<=l.end))return!0}return!1}const p3={Left:1,Right:2,Center:4},g3={Left:0,Center:1,Right:2};function uv(e){return e.button===void 0||e.button===g3.Left}function v3(e){return e.buttons===void 0||(e.buttons&p3.Left)===0}function EE(e){return!!e.targetTouches}const m3=1;function y3(e){const t=e.nodeType===m3?e:e.parentElement;if(!t)return;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function b3(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 EE(e)?b3(e,t):{x:e.clientX,y:e.clientY}}const Dx=(()=>{let e=!1;try{addEventListener("test",()=>{},Object.defineProperty({},"passive",{get(){return e=!0,!0}}))}catch{}return e})(),id={[Sl.mouse]:{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"},[Sl.touch]:{start:"touchstart",move:"touchmove",end:"touchend"},[Sl.keyboard]:{keydown:"keydown"}};class bd{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(!bd.isSetUp,"Cannot have two Touch backends at the same time."),bd.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&&(bd.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=Dx?{capture:i,passive:!1}:i;this.listenerTypes.forEach(function(s){const l=id[s][n];l&&t.addEventListener(l,r,o)})}removeEventListener(t,n,r,i=!1){const o=Dx?{capture:i,passive:!1}:i;this.listenerTypes.forEach(function(s){const l=id[s][n];l&&t.removeEventListener(l,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 id.mouse.move:s={x:o.clientX,y:o.clientY};break;case id.touch.move:var l,c;s={x:((l=o.touches[0])===null||l===void 0?void 0:l.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,y=d&&n.contains(d);if(d===n||y)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&&y3(o)},this.handleTopMoveStartCapture=i=>{uv(i)&&(this.moveStartSourceIds=[])},this.handleMoveStart=i=>{Array.isArray(this.moveStartSourceIds)&&this.moveStartSourceIds.unshift(i)},this.handleTopMoveStart=i=>{if(!uv(i))return;const o=vp(i);o&&(EE(i)&&(this.lastTargetTouchFallback=i.targetTouches[0]),this._mouseClientOffset=o),this.waitingForDelay=!1},this.handleTopMoveStartDelay=i=>{if(!uv(i))return;const o=i.type===id.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,l=this.options.enableHoverOutsideTarget,c=vp(i,this.lastTargetTouchFallback);if(!c)return;if(this._isScrolling||!this.monitor.isDragging()&&h3(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&&d3(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,c.x,c.y)>(this.options.touchSlop?this.options.touchSlop:0)&&(this.moveStartSourceIds=void 0,this.actions.beginDrag(o,{clientOffset:this._mouseClientOffset,getSourceClientOffset:this.getSourceClientOffset,publishSource:!1})),!this.monitor.isDragging())return;const d=this.sourceNodes.get(this.monitor.getSourceId());this.installSourceNodeRemovalObserver(d),this.actions.publishDragSource(),i.cancelable&&i.preventDefault();const y=(s||[]).map(_=>this.targetNodes.get(_)).filter(_=>!!_),g=this.options.getDropTargetElementsAtPoint?this.options.getDropTargetElementsAtPoint(c.x,c.y,y):this.document.elementsFromPoint(c.x,c.y),S=[];for(const _ in g){if(!g.hasOwnProperty(_))continue;let I=g[_];for(I!=null&&S.push(I);I;)I=I.parentElement,I&&S.indexOf(I)===-1&&S.push(I)}const T=S.filter(_=>y.indexOf(_)>-1).map(_=>this._getDropTargetId(_)).filter(_=>!!_).filter((_,I,L)=>L.indexOf(_)===I);if(l)for(const _ in this.targetNodes){const I=this.targetNodes.get(_);if(d&&I&&I.contains(d)&&T.indexOf(_)===-1){T.unshift(_);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 l=s.value;if(i===this.targetNodes.get(l))return l;s=o.next()}},this.handleTopMoveEndCapture=i=>{if(this._isScrolling=!1,this.lastTargetTouchFallback=void 0,!!v3(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 f3(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(Sl.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(Sl.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(Sl.keyboard)}}const w3=function(t,n={},r={}){return new bd(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 ao(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 x3(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,l=e.children,c=KB({polyfill:b2}),d=c[0],y=c[1].height,g=J.useState(t),S=g[0],T=g[1],_=J.useState(t),I=_[0],L=_[1],R=J.useState(!1),U=R[0],W=R[1],ne=function(){W(!1),t||T(!1)};return J.useEffect(function(){W(!0),t?T(!0):L(!1)},[t]),J.useEffect(function(){S&&L(!0)},[y]),J.createElement(qB.div,{style:U?{overflow:"hidden"}:void 0,onAnimationComplete:ne,initial:I?"open":"close",animate:I?"open":"close",inherit:!1,variants:s,transition:{ease:r,duration:S3(y,i)}},J.createElement("div",{ref:d},S&&l))}function S3(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 T3=function(e,t){return e.text>t.text?1:e.text<t.text?-1:0},od=function(e,t){return e.find(function(n){return n.id===t})},kE=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:kE(e,t,r.parent)},Oy=function(e){return e.id!==void 0&&e.parent!==void 0&&e.text!==void 0},Dl=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(y){return y.id===t});return!!(s&&s.droppable)}else{var l=Oy(e)?e.id:null;if(o){var c=o(l,t);if(c!==void 0)return c}if(l===t)return!1;var d=r.find(function(g){return g.id===l}),s=r.find(function(g){return g.id===t});return d===void 0||l===null?t===i||!!(s!=null&&s.droppable):s===void 0?d.parent!==0:d.parent===t||!s.droppable?!1:!kE(r,l,t)}},C3=function(e,t,n){return e.map(function(r){return r.id===t?Pa(Pa({},r),{parent:n}):r})},OE=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},E3=function(e,t){return e.findIndex(function(n){return n.id===t})},DE=function(e,t,n,r){var i=E3(e,t),o=OE(e,n,r);return o=o>i?o-1:o,[i,o]},k3=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)}},O3=function(e,t,n,r){var i=DE(e,t,n,r),o=i[0],s=i[1],l=ao([],e,!0);return k3(l,o,s),l.map(function(c){return c.id===t?Pa(Pa({},c),{parent:n}):c})},D3=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,l=D3(i,((s=t.getClientOffset())===null||s===void 0?void 0:s.y)||0);n===""?n=l:n!==l&&(n=l,r=o),o===e.length-1&&l==="down"&&(r=o+1)}),r},Px=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},P3=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(),l=t.querySelector('[role="list"]'),c=P3(t,((i=n.getClientOffset())===null||i===void 0?void 0:i.y)||0,r);if(l){if(c==="upper")if(Dl(s,e.parent,r)){var d=Px(e,t,n);return d===null?null:{id:e.parent,index:d}}else return{id:e.id,index:0};var o=l.querySelectorAll(':scope > [role="listitem"]');return{id:e.id,index:bm(o,n)}}else{if(c==="middle")return{id:e.id,index:0};if(Dl(s,e.parent,r)){var d=Px(e,t,n);return d===null?null:{id:e.parent,index:d}}return null}},_3=function(e){return e===void 0&&(e={}),{backends:[{id:"html5",backend:JL,options:e.html5,transition:c3},{id:"touch",backend:w3,options:e.touch||{enableMouseEvents:!0},preview:!0,transition:l3}]}},qh=function(e,t){return e.some(function(n){return n.parent===t})},PE=J.createContext({}),R3=function(e){var t=V3(e.tree,e.initialOpen),n=t[0],r=t[1],i=r.handleToggle,o=r.handleCloseAll,s=r.handleOpenAll,l=r.handleOpen,c=r.handleClose;J.useImperativeHandle(e.treeRef,function(){return{open:function(T){return l(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=Fu().getMonitor(),y=e.canDrop,g=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,_,I){if(T){var L={dragSourceId:T.id,dropTargetId:_,dragSource:T,dropTarget:od(e.tree,_),monitor:d},R=e.tree;if(od(R,T.id)||(R=ao(ao([],R,!0),[T],!1)),e.sort===!1){var U=DE(R,T.id,_,I),W=U[1];L.destinationIndex=W,L.relativeIndex=I,e.onDrop(O3(R,T.id,_,I),L);return}e.onDrop(C3(R,T.id,_),L)}else{var L={dropTargetId:_,dropTarget:od(e.tree,_),monitor:d};e.sort===!1&&(L.destinationIndex=OE(e.tree,_,I),L.relativeIndex=I),e.onDrop(e.tree,L)}},canDrop:y?function(T,_){return y(e.tree,{dragSourceId:T??void 0,dropTargetId:_,dragSource:d.getItem(),dropTarget:od(e.tree,_),monitor:d})}:void 0,canDrag:g?function(T){return g(od(e.tree,T))}:void 0,onToggle:function(T){return i(T,e.onChangeOpen)}});return J.createElement(PE.Provider,{value:S},e.children)},_E=J.createContext({}),I3={isLock:!1},A3=function(e){var t=J.useState(I3.isLock),n=t[0],r=t[1];return J.createElement(_E.Provider,{value:{isLock:n,lock:function(){return r(!0)},unlock:function(){return r(!1)}}},e.children)},Gd=J.createContext({}),Rh={dropTargetId:void 0,index:void 0},M3=function(e){var t=J.useState(Rh.dropTargetId),n=t[0],r=t[1],i=J.useState(Rh.index),o=i[0],s=i[1],l=function(d,y){r(d),s(y)},c=function(){r(Rh.dropTargetId),s(Rh.index)};return J.createElement(Gd.Provider,{value:{dropTargetId:n,index:o,showPlaceholder:l,hidePlaceholder:c}},e.children)},L3=function(e){return J.createElement(R3,Pa({},e),J.createElement(A3,null,J.createElement(M3,null,e.children)))},F3=function(e){var t=J.useContext(_E);J.useEffect(function(){if(e.current){var n=e.current,r=function(y){var g=y.target;(g instanceof HTMLInputElement||g instanceof HTMLTextAreaElement)&&t.lock()},i=function(y){var g=y.target;(g instanceof HTMLInputElement||g instanceof HTMLTextAreaElement)&&t.unlock()},o=function(y){return r(y)},s=function(y){return i(y)},l=function(y){return r(y)},c=function(y){return i(y)},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",l),n.addEventListener("focusout",c),function(){d.disconnect(),n.removeEventListener("mouseover",o),n.removeEventListener("mouseout",s),n.removeEventListener("focusin",l),n.removeEventListener("focusout",c)}}},[e,t]),J.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()},RE=null,IE=function(e){var t=e.target;if(t instanceof HTMLElement){var n=t.closest('[role="listitem"]');e.currentTarget===n&&(RE=n)}},_x=function(e){return IE(e)},Rx=function(e){return IE(e)},N3=function(e,t){var n=Il();J.useEffect(function(){var l=t.current;return l==null||l.addEventListener("dragstart",_x),l==null||l.addEventListener("touchstart",Rx,{passive:!0}),function(){l==null||l.removeEventListener("dragstart",_x),l==null||l.removeEventListener("touchstart",Rx)}},[t]);var r=WV({type:qp.TREE_ITEM,item:function(l){var c=Pa({ref:t},e);return n.onDragStart&&n.onDragStart(c,l),c},end:function(l,c){var d=l;n.onDragEnd&&n.onDragEnd(d,c)},canDrag:function(){var l=n.canDrag;return RE!==t.current?!1:l?l(e.id):!0},collect:function(l){return{isDragging:l.isDragging()}}}),i=r[0].isDragging,o=r[1],s=r[2];return[i,o,s]},j3=function(e,t,n){var r=J.useRef(0),i=J.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)},l=function(){i.current>0&&window.clearTimeout(i.current),r.current=0,i.current=0};return{onDragEnter:o,onDragLeave:s,onDrop:l}},B3=function(e){var t=Il(),n=J.useContext(Gd),r=xE({accept:ao([qp.TREE_ITEM],t.extraAcceptTypes,!0),drop:function(c,d){var y=t.rootId,g=t.onDrop,S=n.dropTargetId,T=n.index;d.isOver({shallow:!0})&&S!==void 0&&T!==void 0&&g(Oy(c)?c:null,y,T),n.hidePlaceholder()},canDrop:function(c,d){var y=t.rootId;return d.isOver({shallow:!0})?c===void 0?!1:Dl(c,y,t):!1},hover:function(c,d){if(d.isOver({shallow:!0})){var y=t.rootId,g=n.dropTargetId,S=n.index,T=n.showPlaceholder,_=n.hidePlaceholder,I=wm(null,e.current,d,t);if(I===null||!Dl(c,y,t)){_();return}(I.id!==g||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,l=r[1];return[o,s,l]},$3=function(e,t){var n=Il(),r=J.useContext(Gd),i=xE({accept:ao([qp.TREE_ITEM],n.extraAcceptTypes,!0),drop:function(d,y){var g=r.dropTargetId,S=r.index;y.isOver({shallow:!0})&&g!==void 0&&S!==void 0&&n.onDrop(Oy(d)?d:null,g,S),r.hidePlaceholder()},canDrop:function(d,y){if(y.isOver({shallow:!0})){var g=wm(e,t.current,y,n);return g===null?!1:Dl(d,g.id,n)}return!1},hover:function(d,y){if(y.isOver({shallow:!0})){var g=r.dropTargetId,S=r.index,T=r.showPlaceholder,_=r.hidePlaceholder,I=wm(e,t.current,y,n);if(I===null||!Dl(d,I.id,n)){_();return}(I.id!==g||I.index!==S)&&T(I.id,I.index)}},collect:function(d){var y=d.getItem();return{isOver:d.isOver({shallow:!0})&&d.canDrop(),dragSource:y}}}),o=i[0],s=o.isOver,l=o.dragSource,c=i[1];return[s,l,c]},V3=function(e,t){var n=J.useMemo(function(){return t===!0?e.filter(function(g){return qh(e,g.id)}).map(function(g){return g.id}):Array.isArray(t)?t:[]},[t]),r=J.useState(n),i=r[0],o=r[1];J.useEffect(function(){return o(n)},[t]);var s=function(g,S){var T=i.includes(g)?i.filter(function(_){return _!==g}):ao(ao([],i,!0),[g],!1);o(T),S&&S(T)},l=function(g){o([]),g&&g([])},c=function(g){var S=e.filter(function(T){return qh(e,T.id)}).map(function(T){return T.id});o(S),g&&g(S)},d=function(g,S){var T=[];if(Array.isArray(g)){var _=e.filter(function(I){return g.includes(I.id)&&qh(e,I.id)});T=ao(ao([],i,!0),_.map(function(I){return I.id}),!0).filter(function(I,L,R){return R.indexOf(I)===L})}else T=i.includes(g)?i:ao(ao([],i,!0),[g],!1);o(T),S&&S(T)},y=function(g,S){var T=i.filter(function(_){return Array.isArray(g)?!g.includes(_):_!==g});o(T),S&&S(T)};return[i,{handleToggle:s,handleCloseAll:l,handleOpenAll:c,handleOpen:d,handleClose:y}]},H3=function(){return zV(function(e){var t=e.getItemType();return{item:e.getItem(),clientOffset:e.getClientOffset(),isDragging:e.isDragging()&&t===qp.TREE_ITEM}})},Il=function(){var e=J.useContext(PE);if(!e)throw new Error("useTreeContext must be used under TreeProvider");return e},U3=function(e,t){var n=Il(),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},W3=function(e,t,n){t.current?n(t):n(e),J.useEffect(function(){t.current?n(t):n(e)},[t.current])},z3=function(e){var t=Il(),n=J.useContext(Gd),r=J.useRef(null),i=J.useRef(null),o=t.tree.find(function(ce){return ce.id===e.id}),s=t.openIds,l=t.classes,c=t.enableAnimateExpand,d=s.includes(e.id),y=N3(o,r),g=y[0],S=y[1],T=y[2],_=$3(o,r),I=_[0],L=_[1],R=_[2];W3(r,i,S),Dl(L,e.id,t)&&R(r),J.useEffect(function(){t.dragPreviewRender?T(ZL(),{captureDraggingState:!0}):i.current&&T(r)},[T,t.dragPreviewRender]),F3(r);var U=function(){return t.onToggle(o.id)},W=t.listItemComponent,ne=(l==null?void 0:l.listItem)||"";I&&(l!=null&&l.dropTarget)&&(ne="".concat(ne," ").concat(l.dropTarget)),g&&(l!=null&&l.draggingSource)&&(ne="".concat(ne," ").concat(l.draggingSource));var Q=t.canDrag?t.canDrag(e.id):!0,pe=n.dropTargetId===e.id,x={depth:e.depth,isOpen:d,isDragging:g,isDropTarget:pe,draggable:Q,hasChild:qh(t.tree,e.id),containerRef:r,handleRef:i,onToggle:U};return J.createElement(W,{ref:r,className:ne,role:"listitem"},t.render(o,x),c&&x.hasChild&&J.createElement(x3,{isVisible:d},J.createElement(xm,{parentId:e.id,depth:e.depth+1})),!c&&x.hasChild&&d&&J.createElement(xm,{parentId:e.id,depth:e.depth+1}))},Ix=function(e){var t=Il(),n=t.placeholderRender,r=t.placeholderComponent,i=t.classes,o=J.useContext(Gd),s=Fu(),l=s.getMonitor(),c=l.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?J.createElement(r,{className:(i==null?void 0:i.placeholder)||""},n(c,{depth:e.depth})):null},xm=function(e){var t=Il(),n=J.useRef(null),r=t.tree.filter(function(I){return I.parent===e.parentId}),i=r,o=typeof t.sort=="function"?t.sort:T3;if(t.insertDroppableFirst){var s=r.filter(function(I){return I.droppable}),l=r.filter(function(I){return!I.droppable});t.sort===!1?i=ao(ao([],s,!0),l,!0):(s=s.sort(o),l=l.sort(o),i=ao(ao([],s,!0),l,!0))}else t.sort!==!1&&(i=r.sort(o));var c=B3(n),d=c[0],y=c[1],g=c[2];e.parentId===t.rootId&&Dl(y,t.rootId,t)&&g(n);var S=U3(e.parentId,d),T=t.rootProps||{},_=t.listComponent;return J.createElement(_,Pa({ref:n,role:"list"},T,{className:S}),i.map(function(I,L){return J.createElement(J.Fragment,{key:I.id},J.createElement(Ix,{depth:e.depth,listCount:i.length,dropTargetId:e.parentId,index:L}),J.createElement(z3,{id:I.id,depth:e.depth}))}),J.createElement(Ix,{depth:e.depth,listCount:i.length,dropTargetId:e.parentId}))},Y3={height:"100%",left:0,pointerEvents:"none",position:"fixed",top:0,width:"100%",zIndex:100},G3=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}},q3=function(){var e=Il(),t=H3(),n=t.isDragging,r=t.clientOffset;return!n||!r?null:J.createElement("div",{style:Y3},J.createElement("div",{style:G3(t)},e.dragPreviewRender&&e.dragPreviewRender(t)))};function X3(e,t){return J.createElement(L3,Pa({},e,{treeRef:t}),e.dragPreviewRender&&J.createElement(q3,null),J.createElement(xm,{parentId:e.rootId,depth:0}))}var K3=J.forwardRef(X3);const AE=J.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Xp=J.createContext({}),Dy=J.createContext(null),Kp=typeof document<"u",Z3=Kp?J.useLayoutEffect:J.useEffect,ME=J.createContext({strict:!1}),Py=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),J3="framerAppearId",LE="data-"+Py(J3);function Q3(e,t,n,r){const{visualElement:i}=J.useContext(Xp),o=J.useContext(ME),s=J.useContext(Dy),l=J.useContext(AE).reducedMotion,c=J.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:l}));const d=c.current;J.useInsertionEffect(()=>{d&&d.update(n,s)});const y=J.useRef(!!(n[LE]&&!window.HandoffComplete));return Z3(()=>{d&&(d.render(),y.current&&d.animationState&&d.animationState.animateChanges())}),J.useEffect(()=>{d&&(d.updateFeatures(),!y.current&&d.animationState&&d.animationState.animateChanges(),y.current&&(y.current=!1,window.HandoffComplete=!0))}),d}function Tf(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function eH(e,t,n){return J.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 Fd(e){return typeof e=="string"||Array.isArray(e)}function Zp(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const _y=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ry=["initial",..._y];function Jp(e){return Zp(e.animate)||Ry.some(t=>Fd(e[t]))}function FE(e){return!!(Jp(e)||e.variants)}function tH(e,t){if(Jp(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Fd(n)?n:void 0,animate:Fd(r)?r:void 0}}return e.inherit!==!1?t:{}}function nH(e){const{initial:t,animate:n}=tH(e,J.useContext(Xp));return J.useMemo(()=>({initial:t,animate:n}),[Ax(t),Ax(n)])}function Ax(e){return Array.isArray(e)?e.join(" "):e}const Mx={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"]},Nd={};for(const e in Mx)Nd[e]={isEnabled:t=>Mx[e].some(n=>!!t[n])};function rH(e){for(const t in e)Nd[t]={...Nd[t],...e[t]}}const NE=J.createContext({}),jE=J.createContext({}),iH=Symbol.for("motionComponentSymbol");function oH({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&rH(e);function o(l,c){let d;const y={...J.useContext(AE),...l,layoutId:aH(l)},{isStatic:g}=y,S=nH(l),T=r(l,g);if(!g&&Kp){S.visualElement=Q3(i,T,y,t);const _=J.useContext(jE),I=J.useContext(ME).strict;S.visualElement&&(d=S.visualElement.loadFeatures(y,I,e,_))}return Sn.createElement(Xp.Provider,{value:S},d&&S.visualElement?Sn.createElement(d,{visualElement:S.visualElement,...y}):null,n(i,l,eH(T,S.visualElement,c),T,g,S.visualElement))}const s=J.forwardRef(o);return s[iH]=i,s}function aH({layoutId:e}){const t=J.useContext(NE).id;return t&&e!==void 0?t+"-"+e:e}function sH(e){function t(r,i={}){return oH(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 Iy(e){return typeof e!="string"||e.includes("-")?!1:!!(uH.indexOf(e)>-1||/[A-Z]/.test(e))}const mp={};function lH(e){Object.assign(mp,e)}const qd=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Vc=new Set(qd);function BE(e,{layout:t,layoutId:n}){return Vc.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!mp[e]||e==="opacity")}const Do=e=>!!(e&&e.getVelocity),cH={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},fH=qd.length;function dH(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let s=0;s<fH;s++){const l=qd[s];if(e[l]!==void 0){const c=cH[l]||l;o+=`${c}(${e[l]}) `}}return t&&!e.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(e,r?"":o):n&&r&&(o="none"),o}const $E=e=>t=>typeof t=="string"&&t.startsWith(e),VE=$E("--"),Sm=$E("var(--"),hH=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,pH=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Pl=(e,t,n)=>Math.min(Math.max(n,e),t),Hc={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},wd={...Hc,transform:e=>Pl(0,1,e)},Ih={...Hc,default:1},xd=e=>Math.round(e*1e5)/1e5,Qp=/(-)?([\d]*\.?[\d])+/g,HE=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,gH=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Xd(e){return typeof e=="string"}const Kd=e=>({test:t=>Xd(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),vl=Kd("deg"),js=Kd("%"),Bt=Kd("px"),vH=Kd("vh"),mH=Kd("vw"),Lx={...js,parse:e=>js.parse(e)/100,transform:e=>js.transform(e*100)},Fx={...Hc,transform:Math.round},UE={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:vl,rotateX:vl,rotateY:vl,rotateZ:vl,scale:Ih,scaleX:Ih,scaleY:Ih,scaleZ:Ih,skew:vl,skewX:vl,skewY:vl,distance:Bt,translateX:Bt,translateY:Bt,translateZ:Bt,x:Bt,y:Bt,z:Bt,perspective:Bt,transformPerspective:Bt,opacity:wd,originX:Lx,originY:Lx,originZ:Bt,zIndex:Fx,fillOpacity:wd,strokeOpacity:wd,numOctaves:Fx};function Ay(e,t,n,r){const{style:i,vars:o,transform:s,transformOrigin:l}=e;let c=!1,d=!1,y=!0;for(const g in t){const S=t[g];if(VE(g)){o[g]=S;continue}const T=UE[g],_=pH(S,T);if(Vc.has(g)){if(c=!0,s[g]=_,!y)continue;S!==(T.default||0)&&(y=!1)}else g.startsWith("origin")?(d=!0,l[g]=_):i[g]=_}if(t.transform||(c||r?i.transform=dH(e.transform,n,y,r):i.transform&&(i.transform="none")),d){const{originX:g="50%",originY:S="50%",originZ:T=0}=l;i.transformOrigin=`${g} ${S} ${T}`}}const My=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function WE(e,t,n){for(const r in t)!Do(t[r])&&!BE(r,n)&&(e[r]=t[r])}function yH({transformTemplate:e},t,n){return J.useMemo(()=>{const r=My();return Ay(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function bH(e,t,n){const r=e.style||{},i={};return WE(i,r,e),Object.assign(i,yH(e,t,n)),e.transformValues?e.transformValues(i):i}function wH(e,t,n){const r={},i=bH(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 xH=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")||xH.has(e)}let zE=e=>!yp(e);function SH(e){e&&(zE=t=>t.startsWith("on")?!yp(t):e(t))}try{SH(require("@emotion/is-prop-valid").default)}catch{}function TH(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(zE(i)||n===!0&&yp(i)||!t&&!yp(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function Nx(e,t,n){return typeof e=="string"?e:Bt.transform(t+n*e)}function CH(e,t,n){const r=Nx(t,e.x,e.width),i=Nx(n,e.y,e.height);return`${r} ${i}`}const EH={offset:"stroke-dashoffset",array:"stroke-dasharray"},kH={offset:"strokeDashoffset",array:"strokeDasharray"};function OH(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?EH:kH;e[o.offset]=Bt.transform(-r);const s=Bt.transform(t),l=Bt.transform(n);e[o.array]=`${s} ${l}`}function Ly(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:l=1,pathOffset:c=0,...d},y,g,S){if(Ay(e,d,y,S),g){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:T,style:_,dimensions:I}=e;T.transform&&(I&&(_.transform=T.transform),delete T.transform),I&&(i!==void 0||o!==void 0||_.transform)&&(_.transformOrigin=CH(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&&OH(T,s,l,c,!1)}const YE=()=>({...My(),attrs:{}}),Fy=e=>typeof e=="string"&&e.toLowerCase()==="svg";function DH(e,t,n,r){const i=J.useMemo(()=>{const o=YE();return Ly(o,t,{enableHardwareAcceleration:!1},Fy(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};WE(o,e.style,e),i.style={...o,...i.style}}return i}function PH(e=!1){return(n,r,i,{latestValues:o},s)=>{const c=(Iy(n)?DH:wH)(r,o,s,n),y={...TH(r,typeof n=="string",e),...c,ref:i},{children:g}=r,S=J.useMemo(()=>Do(g)?g.get():g,[g]);return J.createElement(n,{...y,children:S})}}function GE(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 qE=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 XE(e,t,n,r){GE(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(qE.has(i)?i:Py(i),t.attrs[i])}function Ny(e,t){const{style:n}=e,r={};for(const i in n)(Do(n[i])||t.style&&Do(t.style[i])||BE(i,e))&&(r[i]=n[i]);return r}function KE(e,t){const n=Ny(e,t);for(const r in e)if(Do(e[r])||Do(t[r])){const i=qd.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}function jy(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 _H(e){const t=J.useRef(null);return t.current===null&&(t.current=e()),t.current}const bp=e=>Array.isArray(e),RH=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),IH=e=>bp(e)?e[e.length-1]||0:e;function Xh(e){const t=Do(e)?e.get():e;return RH(t)?t.toValue():t}function AH({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const s={latestValues:MH(r,i,o,e),renderState:t()};return n&&(s.mount=l=>n(r,l,s)),s}const ZE=e=>(t,n)=>{const r=J.useContext(Xp),i=J.useContext(Dy),o=()=>AH(e,t,r,i);return n?o():_H(o)};function MH(e,t,n,r){const i={},o=r(e,{});for(const S in o)i[S]=Xh(o[S]);let{initial:s,animate:l}=e;const c=Jp(e),d=FE(e);t&&d&&!c&&e.inherit!==!1&&(s===void 0&&(s=t.initial),l===void 0&&(l=t.animate));let y=n?n.initial===!1:!1;y=y||s===!1;const g=y?l:s;return g&&typeof g!="boolean"&&!Zp(g)&&(Array.isArray(g)?g:[g]).forEach(T=>{const _=jy(e,T);if(!_)return;const{transitionEnd:I,transition:L,...R}=_;for(const U in R){let W=R[U];if(Array.isArray(W)){const ne=y?W.length-1:0;W=W[ne]}W!==null&&(i[U]=W)}for(const U in I)i[U]=I[U]}),i}const cr=e=>e;class jx{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 LH(e){let t=new jx,n=new jx,r=0,i=!1,o=!1;const s=new WeakSet,l={schedule:(c,d=!1,y=!1)=>{const g=y&&i,S=g?t:n;return d&&s.add(c),S.add(c)&&g&&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 y=t.order[d];y(c),s.has(y)&&(l.schedule(y),e())}i=!1,o&&(o=!1,l.process(c))}};return l}const Ah=["prepare","read","update","preRender","render","postRender"],FH=40;function NH(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=Ah.reduce((g,S)=>(g[S]=LH(()=>n=!0),g),{}),s=g=>o[g].process(i),l=()=>{const g=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(g-i.timestamp,FH),1),i.timestamp=g,i.isProcessing=!0,Ah.forEach(s),i.isProcessing=!1,n&&t&&(r=!1,e(l))},c=()=>{n=!0,r=!0,i.isProcessing||e(l)};return{schedule:Ah.reduce((g,S)=>{const T=o[S];return g[S]=(_,I=!1,L=!1)=>(n||c(),T.schedule(_,I,L)),g},{}),cancel:g=>Ah.forEach(S=>o[S].cancel(g)),state:i,steps:o}}const{schedule:Hn,cancel:Lu,state:Li,steps:lv}=NH(typeof requestAnimationFrame<"u"?requestAnimationFrame:cr,!0),jH={useVisualState:ZE({scrapeMotionValuesFromProps:KE,createRenderState:YE,onMount:(e,t,{renderState:n,latestValues:r})=>{Hn.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Hn.render(()=>{Ly(n,r,{enableHardwareAcceleration:!1},Fy(t.tagName),e.transformTemplate),XE(t,n)})}})},BH={useVisualState:ZE({scrapeMotionValuesFromProps:Ny,createRenderState:My})};function $H(e,{forwardMotionProps:t=!1},n,r){return{...Iy(e)?jH:BH,preloadedFeatures:n,useRender:PH(t),createVisualElement:r,Component:e}}function ku(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const JE=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 VH=e=>t=>JE(t)&&e(t,eg(t));function Pu(e,t,n,r){return ku(e,t,VH(n),r)}const HH=(e,t)=>n=>t(e(n)),Tl=(...e)=>e.reduce(HH);function QE(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Bx=QE("dragHorizontal"),$x=QE("dragVertical");function ek(e){let t=!1;if(e==="y")t=$x();else if(e==="x")t=Bx();else{const n=Bx(),r=$x();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function tk(){const e=ek(!0);return e?(e(),!1):!0}class Al{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Vx(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(o,s)=>{if(o.pointerType==="touch"||tk())return;const l=e.getProps();e.animationState&&l.whileHover&&e.animationState.setActive("whileHover",t),l[r]&&Hn.update(()=>l[r](o,s))};return Pu(e.current,n,i,{passive:!e.getProps()[r]})}class UH extends Al{mount(){this.unmount=Tl(Vx(this.node,!0),Vx(this.node,!1))}unmount(){}}class WH extends Al{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=Tl(ku(this.node.current,"focus",()=>this.onFocus()),ku(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const nk=(e,t)=>t?e===t?!0:nk(e,t.parentElement):!1;function cv(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,eg(n))}class zH extends Al{constructor(){super(...arguments),this.removeStartListeners=cr,this.removeEndListeners=cr,this.removeAccessibleListeners=cr,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=Pu(window,"pointerup",(l,c)=>{if(!this.checkPressEnd())return;const{onTap:d,onTapCancel:y,globalTapTarget:g}=this.node.getProps();Hn.update(()=>{!g&&!nk(this.node.current,l.target)?y&&y(l,c):d&&d(l,c)})},{passive:!(r.onTap||r.onPointerUp)}),s=Pu(window,"pointercancel",(l,c)=>this.cancelPress(l,c),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Tl(o,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=l=>{l.key!=="Enter"||!this.checkPressEnd()||cv("up",(c,d)=>{const{onTap:y}=this.node.getProps();y&&Hn.update(()=>y(c,d))})};this.removeEndListeners(),this.removeEndListeners=ku(this.node.current,"keyup",s),cv("down",(l,c)=>{this.startPress(l,c)})},n=ku(this.node.current,"keydown",t),r=()=>{this.isPressing&&cv("cancel",(o,s)=>this.cancelPress(o,s))},i=ku(this.node.current,"blur",r);this.removeAccessibleListeners=Tl(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&&Hn.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!tk()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Hn.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=Pu(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=ku(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Tl(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Tm=new WeakMap,fv=new WeakMap,YH=e=>{const t=Tm.get(e.target);t&&t(e)},GH=e=>{e.forEach(YH)};function qH({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(GH,{root:e,...t})),r[i]}function XH(e,t,n){const r=qH(t);return Tm.set(e,n),r.observe(e),()=>{Tm.delete(e),r.unobserve(e)}}const KH={some:0,all:1};class ZH extends Al{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:KH[i]},l=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:y,onViewportLeave:g}=this.node.getProps(),S=d?y:g;S&&S(c)};return XH(this.node.current,s,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(JH(t,n))&&this.startObserver()}unmount(){}}function JH({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const QH={inView:{Feature:ZH},tap:{Feature:zH},focus:{Feature:WH},hover:{Feature:UH}};function rk(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 eU(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function tU(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function tg(e,t,n){const r=e.getProps();return jy(r,t,n!==void 0?n:r.custom,eU(e),tU(e))}let Zd=cr,is=cr;process.env.NODE_ENV!=="production"&&(Zd=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},is=(e,t)=>{if(!e)throw new Error(t)});const Cl=e=>e*1e3,_u=e=>e/1e3,nU={current:!1},ik=e=>Array.isArray(e)&&typeof e[0]=="number";function ok(e){return!!(!e||typeof e=="string"&&ak[e]||ik(e)||Array.isArray(e)&&e.every(ok))}const ud=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ak={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ud([0,.65,.55,1]),circOut:ud([.55,0,1,.45]),backIn:ud([.31,.01,.66,-.59]),backOut:ud([.33,1.53,.69,.99])};function sk(e){if(e)return ik(e)?ud(e):Array.isArray(e)?e.map(sk):ak[e]}function rU(e,t,n,{delay:r=0,duration:i,repeat:o=0,repeatType:s="loop",ease:l,times:c}={}){const d={[t]:n};c&&(d.offset=c);const y=sk(l);return Array.isArray(y)&&(d.easing=y),e.animate(d,{delay:r,duration:i,easing:Array.isArray(y)?"linear":y,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}function iU(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const uk=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,oU=1e-7,aU=12;function sU(e,t,n,r,i){let o,s,l=0;do s=t+(n-t)/2,o=uk(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>oU&&++l<aU);return s}function Jd(e,t,n,r){if(e===t&&n===r)return cr;const i=o=>sU(o,0,1,e,n);return o=>o===0||o===1?o:uk(i(o),t,r)}const uU=Jd(.42,0,1,1),lU=Jd(0,0,.58,1),lk=Jd(.42,0,.58,1),cU=e=>Array.isArray(e)&&typeof e[0]!="number",ck=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,fk=e=>t=>1-e(1-t),By=e=>1-Math.sin(Math.acos(e)),dk=fk(By),fU=ck(By),hk=Jd(.33,1.53,.69,.99),$y=fk(hk),dU=ck($y),hU=e=>(e*=2)<1?.5*$y(e):.5*(2-Math.pow(2,-10*(e-1))),Hx={linear:cr,easeIn:uU,easeInOut:lk,easeOut:lU,circIn:By,circInOut:fU,circOut:dk,backIn:$y,backInOut:dU,backOut:hk,anticipate:hU},Ux=e=>{if(Array.isArray(e)){is(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Jd(t,n,r,i)}else if(typeof e=="string")return is(Hx[e]!==void 0,`Invalid easing type '${e}'`),Hx[e];return e},Vy=(e,t)=>n=>!!(Xd(n)&&gH.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),pk=(e,t,n)=>r=>{if(!Xd(r))return r;const[i,o,s,l]=r.match(Qp);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:l!==void 0?parseFloat(l):1}},pU=e=>Pl(0,255,e),dv={...Hc,transform:e=>Math.round(pU(e))},Ec={test:Vy("rgb","red"),parse:pk("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+dv.transform(e)+", "+dv.transform(t)+", "+dv.transform(n)+", "+xd(wd.transform(r))+")"};function gU(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:Vy("#"),parse:gU,transform:Ec.transform},Cf={test:Vy("hsl","hue"),parse:pk("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+js.transform(xd(t))+", "+js.transform(xd(n))+", "+xd(wd.transform(r))+")"},oo={test:e=>Ec.test(e)||Cm.test(e)||Cf.test(e),parse:e=>Ec.test(e)?Ec.parse(e):Cf.test(e)?Cf.parse(e):Cm.parse(e),transform:e=>Xd(e)?e:e.hasOwnProperty("red")?Ec.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 vU({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 l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;i=hv(c,l,e+1/3),o=hv(c,l,e),s=hv(c,l,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))},mU=[Cm,Ec,Cf],yU=e=>mU.find(t=>t.test(e));function Wx(e){const t=yU(e);is(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===Cf&&(n=vU(n)),n}const gk=(e,t)=>{const n=Wx(e),r=Wx(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),Ec.transform(i))};function bU(e){var t,n;return isNaN(e)&&Xd(e)&&(((t=e.match(Qp))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(HE))===null||n===void 0?void 0:n.length)||0)>0}const vk={regex:hH,countKey:"Vars",token:"${v}",parse:cr},mk={regex:HE,countKey:"Colors",token:"${c}",parse:oo.parse},yk={regex:Qp,countKey:"Numbers",token:"${n}",parse:Hc.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,vk),gv(n,mk),gv(n,yk),n}function bk(e){return wp(e).values}function wk(e){const{values:t,numColors:n,numVars:r,tokenised:i}=wp(e),o=t.length;return s=>{let l=i;for(let c=0;c<o;c++)c<r?l=l.replace(vk.token,s[c]):c<r+n?l=l.replace(mk.token,oo.transform(s[c])):l=l.replace(yk.token,xd(s[c]));return l}}const wU=e=>typeof e=="number"?0:e;function xU(e){const t=bk(e);return wk(e)(t.map(wU))}const _l={test:bU,parse:bk,createTransformer:wk,getAnimatableNone:xU},xk=(e,t)=>n=>`${n>0?t:e}`;function Sk(e,t){return typeof e=="number"?n=>nr(e,t,n):oo.test(e)?gk(e,t):e.startsWith("var(")?xk(e,t):Ck(e,t)}const Tk=(e,t)=>{const n=[...e],r=n.length,i=e.map((o,s)=>Sk(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}},SU=(e,t)=>{const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Sk(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}},Ck=(e,t)=>{const n=_l.createTransformer(t),r=wp(e),i=wp(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?Tl(Tk(r.values,i.values),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.`),xk(e,t))},jd=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},zx=(e,t)=>n=>nr(e,t,n);function TU(e){return typeof e=="number"?zx:typeof e=="string"?oo.test(e)?gk:Ck:Array.isArray(e)?Tk:typeof e=="object"?SU:zx}function CU(e,t,n){const r=[],i=n||TU(e[0]),o=e.length-1;for(let s=0;s<o;s++){let l=i(e[s],e[s+1]);if(t){const c=Array.isArray(t)?t[s]||cr:t;l=Tl(c,l)}r.push(l)}return r}function Ek(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(is(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=CU(t,r,i),l=s.length,c=d=>{let y=0;if(l>1)for(;y<e.length-2&&!(d<e[y+1]);y++);const g=jd(e[y],e[y+1],d);return s[y](g)};return n?d=>c(Pl(e[0],e[o-1],d)):c}function EU(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=jd(0,t,r);e.push(nr(n,1,i))}}function kU(e){const t=[0];return EU(t,e.length-1),t}function OU(e,t){return e.map(n=>n*t)}function DU(e,t){return e.map(()=>t||lk).splice(0,e.length-1)}function xp({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=cU(r)?r.map(Ux):Ux(r),o={done:!1,value:t[0]},s=OU(n&&n.length===t.length?n:kU(t),e),l=Ek(s,t,{ease:Array.isArray(i)?i:DU(t,i)});return{calculatedDuration:e,next:c=>(o.value=l(c),o.done=c>=e,o)}}function kk(e,t){return t?e*(1e3/t):0}const PU=5;function Ok(e,t,n){const r=Math.max(t-PU,0);return kk(n-e(r),t-r)}const vv=.001,_U=.01,Yx=10,RU=.05,IU=1;function AU({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;Zd(e<=Cl(Yx),"Spring duration must be 10 seconds or less");let s=1-t;s=Pl(RU,IU,s),e=Pl(_U,Yx,_u(e)),s<1?(i=d=>{const y=d*s,g=y*e,S=y-n,T=Em(d,s),_=Math.exp(-g);return vv-S/T*_},o=d=>{const g=d*s*e,S=g*n+n,T=Math.pow(s,2)*Math.pow(d,2)*e,_=Math.exp(-g),I=Em(Math.pow(d,2),s);return(-i(d)+vv>0?-1:1)*((S-T)*_)/I}):(i=d=>{const y=Math.exp(-d*e),g=(d-n)*e+1;return-vv+y*g},o=d=>{const y=Math.exp(-d*e),g=(n-d)*(e*e);return y*g});const l=5/e,c=LU(i,o,l);if(e=Cl(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 MU=12;function LU(e,t,n){let r=n;for(let i=1;i<MU;i++)r=r-e(r)/t(r);return r}function Em(e,t){return e*Math.sqrt(1-t*t)}const FU=["duration","bounce"],NU=["stiffness","damping","mass"];function Gx(e,t){return t.some(n=>e[n]!==void 0)}function jU(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Gx(e,NU)&&Gx(e,FU)){const n=AU(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function Dk({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],o=e[e.length-1],s={done:!1,value:i},{stiffness:l,damping:c,mass:d,duration:y,velocity:g,isResolvedFromDuration:S}=jU({...r,velocity:-_u(r.velocity||0)}),T=g||0,_=c/(2*Math.sqrt(l*d)),I=o-i,L=_u(Math.sqrt(l/d)),R=Math.abs(I)<5;n||(n=R?.01:2),t||(t=R?.005:.5);let U;if(_<1){const W=Em(L,_);U=ne=>{const Q=Math.exp(-_*L*ne);return o-Q*((T+_*L*I)/W*Math.sin(W*ne)+I*Math.cos(W*ne))}}else if(_===1)U=W=>o-Math.exp(-L*W)*(I+(T+L*I)*W);else{const W=L*Math.sqrt(_*_-1);U=ne=>{const Q=Math.exp(-_*L*ne),pe=Math.min(W*ne,300);return o-Q*((T+_*L*I)*Math.sinh(pe)+W*I*Math.cosh(pe))/W}}return{calculatedDuration:S&&y||null,next:W=>{const ne=U(W);if(S)s.done=W>=y;else{let Q=T;W!==0&&(_<1?Q=Ok(U,W,ne):Q=0);const pe=Math.abs(Q)<=n,x=Math.abs(o-ne)<=t;s.done=pe&&x}return s.value=s.done?o:ne,s}}}function qx({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:l,max:c,restDelta:d=.5,restSpeed:y}){const g=e[0],S={done:!1,value:g},T=ce=>l!==void 0&&ce<l||c!==void 0&&ce>c,_=ce=>l===void 0?c:c===void 0||Math.abs(l-ce)<Math.abs(c-ce)?l:c;let I=n*t;const L=g+I,R=s===void 0?L:s(L);R!==L&&(I=R-g);const U=ce=>-I*Math.exp(-ce/r),W=ce=>R+U(ce),ne=ce=>{const se=U(ce),je=W(ce);S.done=Math.abs(se)<=d,S.value=S.done?R:je};let Q,pe;const x=ce=>{T(S.value)&&(Q=ce,pe=Dk({keyframes:[S.value,_(S.value)],velocity:Ok(W,ce,S.value),damping:i,stiffness:o,restDelta:d,restSpeed:y}))};return x(0),{calculatedDuration:null,next:ce=>{let se=!1;return!pe&&Q===void 0&&(se=!0,ne(ce),x(ce)),Q!==void 0&&ce>Q?pe.next(ce-Q):(!se&&ne(ce),S)}}}const BU=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Hn.update(t,!0),stop:()=>Lu(t),now:()=>Li.isProcessing?Li.timestamp:performance.now()}},Xx=2e4;function Kx(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Xx;)t+=n,r=e.next(t);return t>=Xx?1/0:t}const $U={decay:qx,inertia:qx,tween:xp,keyframes:xp,spring:Dk};function Sp({autoplay:e=!0,delay:t=0,driver:n=BU,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:l="loop",onPlay:c,onStop:d,onComplete:y,onUpdate:g,...S}){let T=1,_=!1,I,L;const R=()=>{L=new Promise(_e=>{I=_e})};R();let U;const W=$U[i]||xp;let ne;W!==xp&&typeof r[0]!="number"&&(process.env.NODE_ENV!=="production"&&is(r.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${r}`),ne=Ek([0,100],r,{clamp:!1}),r=[0,100]);const Q=W({...S,keyframes:r});let pe;l==="mirror"&&(pe=W({...S,keyframes:[...r].reverse(),velocity:-(S.velocity||0)}));let x="idle",ce=null,se=null,je=null;Q.calculatedDuration===null&&o&&(Q.calculatedDuration=Kx(Q));const{calculatedDuration:qe}=Q;let Xe=1/0,rt=1/0;qe!==null&&(Xe=qe+s,rt=Xe*(o+1)-s);let nt=0;const ye=_e=>{if(se===null)return;T>0&&(se=Math.min(se,_e)),T<0&&(se=Math.min(_e-rt/T,se)),ce!==null?nt=ce:nt=Math.round(_e-se)*T;const Ve=nt-t*(T>=0?1:-1),He=T>=0?Ve<0:Ve>rt;nt=Math.max(Ve,0),x==="finished"&&ce===null&&(nt=rt);let Re=nt,Fe=Q;if(o){const wt=Math.min(nt,rt)/Xe;let vt=Math.floor(wt),Et=wt%1;!Et&&wt>=1&&(Et=1),Et===1&&vt--,vt=Math.min(vt,o+1),!!(vt%2)&&(l==="reverse"?(Et=1-Et,s&&(Et-=s/Xe)):l==="mirror"&&(Fe=pe)),Re=Pl(0,1,Et)*Xe}const ze=He?{done:!1,value:r[0]}:Fe.next(Re);ne&&(ze.value=ne(ze.value));let{done:ut}=ze;!He&&qe!==null&&(ut=T>=0?nt>=rt:nt<=0);const mt=ce===null&&(x==="finished"||x==="running"&&ut);return g&&g(ze.value),mt&&Je(),ze},Pe=()=>{U&&U.stop(),U=void 0},Ue=()=>{x="idle",Pe(),I(),R(),se=je=null},Je=()=>{x="finished",y&&y(),Pe(),I()},st=()=>{if(_)return;U||(U=n(ye));const _e=U.now();c&&c(),ce!==null?se=_e-ce:(!se||x==="finished")&&(se=_e),x==="finished"&&R(),je=se,ce=null,x="running",U.start()};e&&st();const ke={then(_e,Ve){return L.then(_e,Ve)},get time(){return _u(nt)},set time(_e){_e=Cl(_e),nt=_e,ce!==null||!U||T===0?ce=_e:se=U.now()-_e/T},get duration(){const _e=Q.calculatedDuration===null?Kx(Q):Q.calculatedDuration;return _u(_e)},get speed(){return T},set speed(_e){_e===T||!U||(T=_e,ke.time=_u(nt))},get state(){return x},play:st,pause:()=>{x="paused",ce=nt},stop:()=>{_=!0,x!=="idle"&&(x="idle",d&&d(),Ue())},cancel:()=>{je!==null&&ye(je),Ue()},complete:()=>{x="finished"},sample:_e=>(se=0,ye(_e))};return ke}function VU(e){let t;return()=>(t===void 0&&(t=e()),t)}const HU=VU(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),UU=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Mh=10,WU=2e4,zU=(e,t)=>t.type==="spring"||e==="backgroundColor"||!ok(t.ease);function YU(e,t,{onUpdate:n,onComplete:r,...i}){if(!(HU()&&UU.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let s=!1,l,c,d=!1;const y=()=>{c=new Promise(W=>{l=W})};y();let{keyframes:g,duration:S=300,ease:T,times:_}=i;if(zU(t,i)){const W=Sp({...i,repeat:0,delay:0});let ne={done:!1,value:g[0]};const Q=[];let pe=0;for(;!ne.done&&pe<WU;)ne=W.sample(pe),Q.push(ne.value),pe+=Mh;_=void 0,g=Q,S=pe-Mh,T="linear"}const I=rU(e.owner.current,t,g,{...i,duration:S,ease:T,times:_}),L=()=>{d=!1,I.cancel()},R=()=>{d=!0,Hn.update(L),l(),y()};return I.onfinish=()=>{d||(e.set(iU(g,i)),r&&r(),R())},{then(W,ne){return c.then(W,ne)},attachTimeline(W){return I.timeline=W,I.onfinish=null,cr},get time(){return _u(I.currentTime||0)},set time(W){I.currentTime=Cl(W)},get speed(){return I.playbackRate},set speed(W){I.playbackRate=W},get duration(){return _u(S)},play:()=>{s||(I.play(),Lu(L))},pause:()=>I.pause(),stop:()=>{if(s=!0,I.playState==="idle")return;const{currentTime:W}=I;if(W){const ne=Sp({...i,autoplay:!1});e.setWithVelocity(ne.sample(W-Mh).value,ne.sample(W).value,Mh)}R()},complete:()=>{d||I.finish()},cancel:R}}function GU({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:cr,pause:cr,stop:cr,then:o=>(o(),Promise.resolve()),cancel:cr,complete:cr});return t?Sp({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const qU={type:"spring",stiffness:500,damping:25,restSpeed:10},XU=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),KU={type:"keyframes",duration:.8},ZU={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},JU=(e,{keyframes:t})=>t.length>2?KU:Vc.has(e)?e.startsWith("scale")?XU(t[1]):qU:ZU,km=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(_l.test(t)||t==="0")&&!t.startsWith("url(")),QU=new Set(["brightness","contrast","saturate","opacity"]);function eW(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=QU.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const tW=/([a-z-]*)\(.*?\)/g,Om={..._l,getAnimatableNone:e=>{const t=e.match(tW);return t?t.map(eW).join(" "):e}},nW={...UE,color:oo,backgroundColor:oo,outlineColor:oo,fill:oo,stroke:oo,borderColor:oo,borderTopColor:oo,borderRightColor:oo,borderBottomColor:oo,borderLeftColor:oo,filter:Om,WebkitFilter:Om},Hy=e=>nW[e];function Pk(e,t){let n=Hy(e);return n!==Om&&(n=_l),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const _k=e=>/^0[^.\s]+$/.test(e);function rW(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||_k(e)}function iW(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 l;const c=[];for(let d=0;d<o.length;d++)o[d]===null&&(o[d]=d===0?s:o[d-1]),rW(o[d])&&c.push(d),typeof o[d]=="string"&&o[d]!=="none"&&o[d]!=="0"&&(l=o[d]);if(i&&c.length&&l)for(let d=0;d<c.length;d++){const y=c[d];o[y]=Pk(t,l)}return o}function oW({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:l,from:c,elapsed:d,...y}){return!!Object.keys(y).length}function Uy(e,t){return e[t]||e.default||e}const aW={skipAnimations:!1},Wy=(e,t,n,r={})=>i=>{const o=Uy(r,e)||{},s=o.delay||r.delay||0;let{elapsed:l=0}=r;l=l-Cl(s);const c=iW(t,e,n,o),d=c[0],y=c[c.length-1],g=km(e,d),S=km(e,y);Zd(g===S,`You are trying to animate ${e} from "${d}" to "${y}". ${d} is not an animatable value - to enable this animation set ${d} to a value animatable to ${y} via the \`style\` property.`);let T={keyframes:c,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-l,onUpdate:_=>{t.set(_),o.onUpdate&&o.onUpdate(_)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(oW(o)||(T={...T,...JU(e,T)}),T.duration&&(T.duration=Cl(T.duration)),T.repeatDelay&&(T.repeatDelay=Cl(T.repeatDelay)),!g||!S||nU.current||o.type===!1||aW.skipAnimations)return GU(T);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const _=YU(t,e,T);if(_)return _}return Sp(T)};function Tp(e){return!!(Do(e)&&e.add)}const Rk=e=>/^\-?\d*\.?\d+$/.test(e);function zy(e,t){e.indexOf(t)===-1&&e.push(t)}function Yy(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Gy{constructor(){this.subscriptions=[]}add(t){return zy(this.subscriptions,t),()=>Yy(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 Zx=new Set;function qy(e,t,n){e||Zx.has(t)||(console.warn(t),n&&console.warn(n),Zx.add(t))}const sW=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}=Li;this.lastUpdated!==s&&(this.timeDelta=o,this.lastUpdated=s,Hn.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=()=>Hn.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=sW(this.current),this.owner=n.owner}onChange(t){return process.env.NODE_ENV!=="production"&&qy(!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 Gy);const r=this.events[t].add(n);return t==="change"?()=>{r(),Hn.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?kk(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 Af(e,t){return new uW(e,t)}const Ik=e=>t=>t.test(e),lW={test:e=>e==="auto",parse:e=>e},Ak=[Hc,Bt,js,vl,mH,vH,lW],ad=e=>Ak.find(Ik(e)),cW=[...Ak,oo,_l],fW=e=>cW.find(Ik(e));function dW(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Af(n))}function hW(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 l=IH(o[s]);dW(e,s,l)}}function pW(e,t,n){var r,i;const o=Object.keys(t).filter(l=>!e.hasValue(l)),s=o.length;if(s)for(let l=0;l<s;l++){const c=o[l],d=t[c];let y=null;Array.isArray(d)&&(y=d[0]),y===null&&(y=(i=(r=n[c])!==null&&r!==void 0?r:e.readValue(c))!==null&&i!==void 0?i:t[c]),y!=null&&(typeof y=="string"&&(Rk(y)||_k(y))?y=parseFloat(y):!fW(y)&&_l.test(d)&&(y=Pk(c,d)),e.addValue(c,Af(y,{owner:e})),n[c]===void 0&&(n[c]=y),y!==null&&e.setBaseTarget(c,y))}}function gW(e,t){return t?(t[e]||t.default||t).from:void 0}function vW(e,t,n){const r={};for(const i in e){const o=gW(i,t);if(o!==void 0)r[i]=o;else{const s=n.getValue(i);s&&(r[i]=s.get())}}return r}function mW({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function yW(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 Mk(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:s,...l}=e.makeTargetAnimatable(t);const c=e.getValue("willChange");r&&(o=r);const d=[],y=i&&e.animationState&&e.animationState.getState()[i];for(const g in l){const S=e.getValue(g),T=l[g];if(!S||T===void 0||y&&mW(y,g))continue;const _={delay:n,elapsed:0,...Uy(o||{},g)};if(window.HandoffAppearAnimations){const R=e.getProps()[LE];if(R){const U=window.HandoffAppearAnimations(R,g,S,Hn);U!==null&&(_.elapsed=U,_.isHandoff=!0)}}let I=!_.isHandoff&&!yW(S,T);if(_.type==="spring"&&(S.getVelocity()||_.velocity)&&(I=!1),S.animation&&(I=!1),I)continue;S.start(Wy(g,S,T,e.shouldReduceMotion&&Vc.has(g)?{type:!1}:_));const L=S.animation;Tp(c)&&(c.add(g),L.then(()=>c.remove(g))),d.push(L)}return s&&Promise.all(d).then(()=>{s&&hW(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(Mk(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:y,staggerDirection:g}=i;return bW(e,t,d+c,y,g,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[c,d]=l==="beforeChildren"?[o,s]:[s,o];return c().then(()=>d())}else return Promise.all([o(),s(n.delay)])}function bW(e,t,n=0,r=0,i=1,o){const s=[],l=(e.variantChildren.size-1)*r,c=i===1?(d=0)=>d*r:(d=0)=>l-d*r;return Array.from(e.variantChildren).sort(wW).forEach((d,y)=>{d.notify("AnimationStart",t),s.push(Dm(d,t,{...o,delay:n+c(y)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(s)}function wW(e,t){return e.sortNodePosition(t)}function xW(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(Mk(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}const SW=[..._y].reverse(),TW=_y.length;function CW(e){return t=>Promise.all(t.map(({animation:n,options:r})=>xW(e,n,r)))}function EW(e){let t=CW(e);const n=OW();let r=!0;const i=(c,d)=>{const y=tg(e,d);if(y){const{transition:g,transitionEnd:S,...T}=y;c={...c,...T,...S}}return c};function o(c){t=c(e)}function s(c,d){const y=e.getProps(),g=e.getVariantContext(!0)||{},S=[],T=new Set;let _={},I=1/0;for(let R=0;R<TW;R++){const U=SW[R],W=n[U],ne=y[U]!==void 0?y[U]:g[U],Q=Fd(ne),pe=U===d?W.isActive:null;pe===!1&&(I=R);let x=ne===g[U]&&ne!==y[U]&&Q;if(x&&r&&e.manuallyAnimateOnMount&&(x=!1),W.protectedKeys={..._},!W.isActive&&pe===null||!ne&&!W.prevProp||Zp(ne)||typeof ne=="boolean")continue;let se=kW(W.prevProp,ne)||U===d&&W.isActive&&!x&&Q||R>I&&Q,je=!1;const qe=Array.isArray(ne)?ne:[ne];let Xe=qe.reduce(i,{});pe===!1&&(Xe={});const{prevResolvedValues:rt={}}=W,nt={...rt,...Xe},ye=Pe=>{se=!0,T.has(Pe)&&(je=!0,T.delete(Pe)),W.needsAnimating[Pe]=!0};for(const Pe in nt){const Ue=Xe[Pe],Je=rt[Pe];if(_.hasOwnProperty(Pe))continue;let st=!1;bp(Ue)&&bp(Je)?st=!rk(Ue,Je):st=Ue!==Je,st?Ue!==void 0?ye(Pe):T.add(Pe):Ue!==void 0&&T.has(Pe)?ye(Pe):W.protectedKeys[Pe]=!0}W.prevProp=ne,W.prevResolvedValues=Xe,W.isActive&&(_={..._,...Xe}),r&&e.blockInitialAnimation&&(se=!1),se&&(!x||je)&&S.push(...qe.map(Pe=>({animation:Pe,options:{type:U,...c}})))}if(T.size){const R={};T.forEach(U=>{const W=e.getBaseTarget(U);W!==void 0&&(R[U]=W)}),S.push({animation:R})}let L=!!S.length;return r&&(y.initial===!1||y.initial===y.animate)&&!e.manuallyAnimateOnMount&&(L=!1),r=!1,L?t(S):Promise.resolve()}function l(c,d,y){var g;if(n[c].isActive===d)return Promise.resolve();(g=e.variantChildren)===null||g===void 0||g.forEach(T=>{var _;return(_=T.animationState)===null||_===void 0?void 0:_.setActive(c,d)}),n[c].isActive=d;const S=s(y,c);for(const T in n)n[T].protectedKeys={};return S}return{animateChanges:s,setActive:l,setAnimateFunction:o,getState:()=>n}}function kW(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!rk(t,e):!1}function yc(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function OW(){return{animate:yc(!0),whileInView:yc(),whileHover:yc(),whileTap:yc(),whileDrag:yc(),whileFocus:yc(),exit:yc()}}class DW extends Al{constructor(t){super(t),t.animationState||(t.animationState=EW(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 PW=0;class _W extends Al{constructor(){super(...arguments),this.id=PW++}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 RW={animation:{Feature:DW},exit:{Feature:_W}},Jx=(e,t)=>Math.abs(e-t);function IW(e,t){const n=Jx(e.x,t.x),r=Jx(e.y,t.y);return Math.sqrt(n**2+r**2)}class Lk{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 g=yv(this.lastMoveEventInfo,this.history),S=this.startEvent!==null,T=IW(g.offset,{x:0,y:0})>=3;if(!S&&!T)return;const{point:_}=g,{timestamp:I}=Li;this.history.push({..._,timestamp:I});const{onStart:L,onMove:R}=this.handlers;S||(L&&L(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),R&&R(this.lastMoveEvent,g)},this.handlePointerMove=(g,S)=>{this.lastMoveEvent=g,this.lastMoveEventInfo=mv(S,this.transformPagePoint),Hn.update(this.updatePoint,!0)},this.handlePointerUp=(g,S)=>{this.end();const{onEnd:T,onSessionEnd:_,resumeAnimation:I}=this.handlers;if(this.dragSnapToOrigin&&I&&I(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const L=yv(g.type==="pointercancel"?this.lastMoveEventInfo:mv(S,this.transformPagePoint),this.history);this.startEvent&&T&&T(g,L),_&&_(g,L)},!JE(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=eg(t),l=mv(s,this.transformPagePoint),{point:c}=l,{timestamp:d}=Li;this.history=[{...c,timestamp:d}];const{onSessionStart:y}=n;y&&y(t,yv(l,this.history)),this.removeListeners=Tl(Pu(this.contextWindow,"pointermove",this.handlePointerMove),Pu(this.contextWindow,"pointerup",this.handlePointerUp),Pu(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Lu(this.updatePoint)}}function mv(e,t){return t?{point:t(e.point)}:e}function Qx(e,t){return{x:e.x-t.x,y:e.y-t.y}}function yv({point:e},t){return{point:e,delta:Qx(e,Fk(t)),offset:Qx(e,AW(t)),velocity:MW(t,.1)}}function AW(e){return e[0]}function Fk(e){return e[e.length-1]}function MW(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Fk(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Cl(t)));)n--;if(!r)return{x:0,y:0};const o=_u(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 Pm(e,t=0,n=.01){return Math.abs(e-t)<=n}function eS(e,t,n,r=.5){e.origin=r,e.originPoint=nr(t.min,t.max,e.origin),e.scale=ea(n)/ea(t),(Pm(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=nr(n.min,n.max,e.origin)-e.originPoint,(Pm(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Sd(e,t,n,r){eS(e.x,t.x,n.x,r?r.originX:void 0),eS(e.y,t.y,n.y,r?r.originY:void 0)}function tS(e,t,n){e.min=n.min+t.min,e.max=e.min+ea(t)}function LW(e,t,n){tS(e.x,t.x,n.x),tS(e.y,t.y,n.y)}function nS(e,t,n){e.min=t.min-n.min,e.max=e.min+ea(t)}function Td(e,t,n){nS(e.x,t.x,n.x),nS(e.y,t.y,n.y)}function FW(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 rS(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 NW(e,{top:t,left:n,bottom:r,right:i}){return{x:rS(e.x,n,i),y:rS(e.y,t,r)}}function iS(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 jW(e,t){return{x:iS(e.x,t.x),y:iS(e.y,t.y)}}function BW(e,t){let n=.5;const r=ea(e),i=ea(t);return i>r?n=jd(t.min,t.max-r,e.min):r>i&&(n=jd(e.min,e.max-i,t.min)),Pl(0,1,n)}function $W(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 _m=.35;function VW(e=_m){return e===!1?e=0:e===!0&&(e=_m),{x:oS(e,"left","right"),y:oS(e,"top","bottom")}}function oS(e,t,n){return{min:aS(e,t),max:aS(e,n)}}function aS(e,t){return typeof e=="number"?e:e[t]||0}const sS=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ef=()=>({x:sS(),y:sS()}),uS=()=>({min:0,max:0}),Dr=()=>({x:uS(),y:uS()});function Ea(e){return[e("x"),e("y")]}function Nk({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function HW({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function UW(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 xc(e){return Rm(e)||jk(e)||e.z||e.rotate||e.rotateX||e.rotateY}function jk(e){return lS(e.x)||lS(e.y)}function lS(e){return e&&e!=="0%"}function Cp(e,t,n){const r=e-n,i=t*r;return n+i}function cS(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=cS(e.min,t,n,r,i),e.max=cS(e.max,t,n,r,i)}function Bk(e,{x:t,y:n}){Im(e.x,t.translate,t.scale,t.originPoint),Im(e.y,n.translate,n.scale,n.originPoint)}function WW(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let l=0;l<i;l++){o=n[l],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,Bk(e,s)),r&&xc(o.latestValues)&&kf(e,o.latestValues))}t.x=fS(t.x),t.y=fS(t.y)}function fS(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function yl(e,t){e.min=e.min+t,e.max=e.max+t}function dS(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 zW=["x","scaleX","originX"],YW=["y","scaleY","originY"];function kf(e,t){dS(e.x,t,zW),dS(e.y,t,YW)}function $k(e,t){return Nk(UW(e.getBoundingClientRect(),t))}function GW(e,t,n){const r=$k(e,n),{scroll:i}=t;return i&&(yl(r.x,i.offset.x),yl(r.y,i.offset.y)),r}const Vk=({current:e})=>e?e.ownerDocument.defaultView:null,qW=new WeakMap;class XW{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=Dr(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=y=>{const{dragSnapToOrigin:g}=this.getProps();g?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(eg(y,"page").point)},o=(y,g)=>{const{drag:S,dragPropagation:T,onDragStart:_}=this.getProps();if(S&&!T&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=ek(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(js.test(R)){const{projection:U}=this.visualElement;if(U&&U.layout){const W=U.layout.layoutBox[L];W&&(R=ea(W)*(parseFloat(R)/100))}}this.originPoint[L]=R}),_&&Hn.update(()=>_(y,g),!1,!0);const{animationState:I}=this.visualElement;I&&I.setActive("whileDrag",!0)},s=(y,g)=>{const{dragPropagation:S,dragDirectionLock:T,onDirectionLock:_,onDrag:I}=this.getProps();if(!S&&!this.openGlobalLock)return;const{offset:L}=g;if(T&&this.currentDirection===null){this.currentDirection=KW(L),this.currentDirection!==null&&_&&_(this.currentDirection);return}this.updateAxis("x",g.point,L),this.updateAxis("y",g.point,L),this.visualElement.render(),I&&I(y,g)},l=(y,g)=>this.stop(y,g),c=()=>Ea(y=>{var g;return this.getAnimationState(y)==="paused"&&((g=this.getAxisMotionValue(y).animation)===null||g===void 0?void 0:g.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new Lk(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:Vk(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&&Hn.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||!Lh(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=FW(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=NW(i.layoutBox,n):this.constraints=!1,this.elastic=VW(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Ea(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=$W(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Tf(t))return!1;const r=t.current;is(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=GW(r,i.root,this.visualElement.getTransformPagePoint());let s=jW(i.layout.layoutBox,o);if(n){const l=n(HW(s));this.hasMutatedConstraints=!!l,l&&(s=Nk(l))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},d=Ea(y=>{if(!Lh(y,n,this.currentDirection))return;let g=c&&c[y]||{};s&&(g={min:0,max:0});const S=i?200:1e6,T=i?40:1e7,_={type:"inertia",velocity:r?t[y]:0,bounceStiffness:S,bounceDamping:T,timeConstant:750,restDelta:1,restSpeed:10,...o,...g};return this.startAxisValueAnimation(y,_)});return Promise.all(d).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(Wy(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(!Lh(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:l}=i.layout.layoutBox[n];o.set(t[n]-nr(s,l,.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 l=this.getAxisMotionValue(s);if(l){const c=l.get();i[s]=BW({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(!Lh(s,t,null))return;const l=this.getAxisMotionValue(s),{min:c,max:d}=this.constraints[s];l.set(nr(c,d,i[s]))})}addListeners(){if(!this.visualElement.current)return;qW.set(this.visualElement,this);const t=this.visualElement.current,n=Pu(t,"pointerdown",c=>{const{drag:d,dragListener:y=!0}=this.getProps();d&&y&&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=ku(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&(Ea(y=>{const g=this.getAxisMotionValue(y);g&&(this.originPoint[y]+=c[y].translate,g.set(g.get()+c[y].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=_m,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:l}}}function Lh(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function KW(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class ZW extends Al{constructor(t){super(t),this.removeGroupControls=cr,this.removeListeners=cr,this.controls=new XW(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||cr}unmount(){this.removeGroupControls(),this.removeListeners()}}const hS=e=>(t,n)=>{e&&Hn.update(()=>e(t,n))};class JW extends Al{constructor(){super(...arguments),this.removePointerDownListener=cr}onPointerDown(t){this.session=new Lk(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Vk(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:hS(t),onStart:hS(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&Hn.update(()=>i(o,s))}}}mount(){this.removePointerDownListener=Pu(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 QW(){const e=J.useContext(Dy);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=J.useId();return J.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}const Kh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function pS(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const sd={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Bt.test(e))e=parseFloat(e);else return e;const n=pS(e,t.target.x),r=pS(e,t.target.y);return`${n}% ${r}%`}},ez={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=_l.parse(e);if(i.length>5)return r;const o=_l.createTransformer(e),s=typeof i[0]!="number"?1:0,l=n.x.scale*t.x,c=n.y.scale*t.y;i[0+s]/=l,i[1+s]/=c;const d=nr(l,c,.5);return typeof i[2+s]=="number"&&(i[2+s]/=d),typeof i[3+s]=="number"&&(i[3+s]/=d),o(i)}};class tz extends J.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;lH(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()})),Kh.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()||Hn.postRender(()=>{const l=s.getStack();(!l||!l.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 Hk(e){const[t,n]=QW(),r=J.useContext(NE);return J.createElement(tz,{...e,layoutGroup:r,switchLayoutGroup:J.useContext(jE),isPresent:t,safeToRemove:n})}const nz={borderRadius:{...sd,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:sd,borderTopRightRadius:sd,borderBottomLeftRadius:sd,borderBottomRightRadius:sd,boxShadow:ez},Uk=["TopLeft","TopRight","BottomLeft","BottomRight"],rz=Uk.length,gS=e=>typeof e=="string"?parseFloat(e):e,vS=e=>typeof e=="number"||Bt.test(e);function iz(e,t,n,r,i,o){i?(e.opacity=nr(0,n.opacity!==void 0?n.opacity:1,oz(r)),e.opacityExit=nr(t.opacity!==void 0?t.opacity:1,0,az(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<rz;s++){const l=`border${Uk[s]}Radius`;let c=mS(t,l),d=mS(n,l);if(c===void 0&&d===void 0)continue;c||(c=0),d||(d=0),c===0||d===0||vS(c)===vS(d)?(e[l]=Math.max(nr(gS(c),gS(d),r),0),(js.test(d)||js.test(c))&&(e[l]+="%")):e[l]=d}(t.rotate||n.rotate)&&(e.rotate=nr(t.rotate||0,n.rotate||0,r))}function mS(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const oz=Wk(0,.5,dk),az=Wk(.5,.95,cr);function Wk(e,t,n){return r=>r<e?0:r>t?1:n(jd(e,t,r))}function yS(e,t){e.min=t.min,e.max=t.max}function Ca(e,t){yS(e.x,t.x),yS(e.y,t.y)}function bS(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 sz(e,t=0,n=1,r=.5,i,o=e,s=e){if(js.test(t)&&(t=parseFloat(t),t=nr(s.min,s.max,t/100)-s.min),typeof t!="number")return;let l=nr(o.min,o.max,r);e===o&&(l-=t),e.min=bS(e.min,t,n,l,i),e.max=bS(e.max,t,n,l,i)}function wS(e,t,[n,r,i],o,s){sz(e,t[n],t[r],t[i],t.scale,o,s)}const uz=["x","scaleX","originX"],lz=["y","scaleY","originY"];function xS(e,t,n,r){wS(e.x,t,uz,n?n.x:void 0,r?r.x:void 0),wS(e.y,t,lz,n?n.y:void 0,r?r.y:void 0)}function SS(e){return e.translate===0&&e.scale===1}function zk(e){return SS(e.x)&&SS(e.y)}function cz(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 Yk(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 TS(e){return ea(e.x)/ea(e.y)}class fz{constructor(){this.members=[]}add(t){zy(this.members,t),t.scheduleRender()}remove(t){if(Yy(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 CS(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:y}=n;c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),y&&(r+=`rotateY(${y}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return(s!==1||l!==1)&&(r+=`scale(${s}, ${l})`),r||"none"}const dz=(e,t)=>e.depth-t.depth;class hz{constructor(){this.children=[],this.isDirty=!1}add(t){zy(this.children,t),this.isDirty=!0}remove(t){Yy(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(dz),this.isDirty=!1,this.children.forEach(t)}}function pz(e,t){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Lu(r),e(o-t))};return Hn.read(r,!0),()=>Lu(r)}function gz(e){window.MotionDebug&&window.MotionDebug.record(e)}function vz(e){return e instanceof SVGElement&&e.tagName!=="svg"}function mz(e,t,n){const r=Do(e)?e:Af(e);return r.start(Wy("",r,t,n)),r.animation}const ES=["","X","Y","Z"],yz={visibility:"hidden"},kS=1e3;let bz=0;const Sc={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Gk({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},l=t==null?void 0:t()){this.id=bz++,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,Sc.totalNodes=Sc.resolvedTargetDeltas=Sc.recalculatedProjection=0,this.nodes.forEach(Sz),this.nodes.forEach(Oz),this.nodes.forEach(Dz),this.nodes.forEach(Tz),gz(Sc)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new hz)}addEventListener(s,l){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Gy),this.eventHandlers.get(s).add(l)}notifyListeners(s,...l){const c=this.eventHandlers.get(s);c&&c.notify(...l)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,l=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=vz(s),this.instance=s;const{layoutId:c,layout:d,visualElement:y}=this.options;if(y&&!y.current&&y.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),l&&(d||c)&&(this.isLayoutDirty=!0),e){let g;const S=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,g&&g(),g=pz(S,250),Kh.hasAnimatedSinceResize&&(Kh.hasAnimatedSinceResize=!1,this.nodes.forEach(DS))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&y&&(c||d)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:S,hasRelativeTargetChanged:T,layout:_})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const I=this.options.transition||y.getDefaultTransition()||Az,{onLayoutAnimationStart:L,onLayoutAnimationComplete:R}=y.getProps(),U=!this.targetLayout||!Yk(this.targetLayout,_)||T,W=!S&&T;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||W||S&&(U||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(g,W);const ne={...Uy(I,"layout"),onPlay:L,onComplete:R};(y.shouldReduceMotion||this.options.layoutRoot)&&(ne.delay=0,ne.type=!1),this.startAnimation(ne)}else S||DS(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=_})}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,Lu(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(Pz),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 y=0;y<this.path.length;y++){const g=this.path[y];g.shouldResetTransform=!0,g.updateScroll("snapshot"),g.options.layoutRoot&&g.willUpdate(!1)}const{layoutId:l,layout:c}=this.options;if(l===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(OS);return}this.isUpdating||this.nodes.forEach(Ez),this.isUpdating=!1,this.nodes.forEach(kz),this.nodes.forEach(wz),this.nodes.forEach(xz),this.clearAllSnapshots();const l=performance.now();Li.delta=Pl(0,1e3/60,l-Li.timestamp),Li.timestamp=l,Li.isProcessing=!0,lv.update.process(Li),lv.preRender.process(Li),lv.render.process(Li),Li.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(Cz),this.sharedNodes.forEach(_z)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Hn.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Hn.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Dr(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let l=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(l=!1),l&&(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,l=this.projectionDelta&&!zk(this.projectionDelta),c=this.getTransformTemplate(),d=c?c(this.latestValues,""):void 0,y=d!==this.prevTransformTemplateValue;s&&(l||xc(this.latestValues)||y)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return s&&(c=this.removeTransform(c)),Mz(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return Dr();const l=s.measureViewportBox(),{scroll:c}=this.root;return c&&(yl(l.x,c.offset.x),yl(l.y,c.offset.y)),l}removeElementScroll(s){const l=Dr();Ca(l,s);for(let c=0;c<this.path.length;c++){const d=this.path[c],{scroll:y,options:g}=d;if(d!==this.root&&y&&g.layoutScroll){if(y.isRoot){Ca(l,s);const{scroll:S}=this.root;S&&(yl(l.x,-S.offset.x),yl(l.y,-S.offset.y))}yl(l.x,y.offset.x),yl(l.y,y.offset.y)}}return l}applyTransform(s,l=!1){const c=Dr();Ca(c,s);for(let d=0;d<this.path.length;d++){const y=this.path[d];!l&&y.options.layoutScroll&&y.scroll&&y!==y.root&&kf(c,{x:-y.scroll.offset.x,y:-y.scroll.offset.y}),xc(y.latestValues)&&kf(c,y.latestValues)}return xc(this.latestValues)&&kf(c,this.latestValues),c}removeTransform(s){const l=Dr();Ca(l,s);for(let c=0;c<this.path.length;c++){const d=this.path[c];if(!d.instance||!xc(d.latestValues))continue;Rm(d.latestValues)&&d.updateSnapshot();const y=Dr(),g=d.measurePageBox();Ca(y,g),xS(l,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,y)}return xc(this.latestValues)&&xS(l,this.latestValues),l}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!==Li.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var l;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||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:g,layoutId:S}=this.options;if(!(!this.layout||!(g||S))){if(this.resolvedRelativeTargetAt=Li.timestamp,!this.targetDelta&&!this.relativeTarget){const T=this.getClosestProjectingParent();T&&T.layout&&this.animationProgress!==1?(this.relativeParent=T,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Dr(),this.relativeTargetOrigin=Dr(),Td(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=Dr(),this.targetWithTransforms=Dr()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),LW(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ca(this.target,this.layout.layoutBox),Bk(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=Dr(),this.relativeTargetOrigin=Dr(),Td(this.relativeTargetOrigin,this.target,T.target),Ca(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Sc.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Rm(this.parent.latestValues)||jk(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 l=this.getLead(),c=!!this.resumingFrom||this!==l;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===Li.timestamp&&(d=!1),d)return;const{layout:y,layoutId:g}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(y||g))return;Ca(this.layoutCorrected,this.layout.layoutBox);const S=this.treeScale.x,T=this.treeScale.y;WW(this.layoutCorrected,this.treeScale,this.path,c),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox);const{target:_}=l;if(!_){this.projectionTransform&&(this.projectionDelta=Ef(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Ef(),this.projectionDeltaWithTransform=Ef());const I=this.projectionTransform;Sd(this.projectionDelta,this.layoutCorrected,_,this.latestValues),this.projectionTransform=CS(this.projectionDelta,this.treeScale),(this.projectionTransform!==I||this.treeScale.x!==S||this.treeScale.y!==T)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",_)),Sc.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),s){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(s,l=!1){const c=this.snapshot,d=c?c.latestValues:{},y={...this.latestValues},g=Ef();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const S=Dr(),T=c?c.source:void 0,_=this.layout?this.layout.source:void 0,I=T!==_,L=this.getStack(),R=!L||L.members.length<=1,U=!!(I&&!R&&this.options.crossfade===!0&&!this.path.some(Iz));this.animationProgress=0;let W;this.mixTargetDelta=ne=>{const Q=ne/1e3;PS(g.x,s.x,Q),PS(g.y,s.y,Q),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Td(S,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Rz(this.relativeTarget,this.relativeTargetOrigin,S,Q),W&&cz(this.relativeTarget,W)&&(this.isProjectionDirty=!1),W||(W=Dr()),Ca(W,this.relativeTarget)),I&&(this.animationValues=y,iz(y,d,this.latestValues,Q,U,R)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=Q},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&&(Lu(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Hn.update(()=>{Kh.hasAnimatedSinceResize=!0,this.currentAnimation=mz(0,kS,{...s,onUpdate:l=>{this.mixTargetDelta(l),s.onUpdate&&s.onUpdate(l)},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(kS),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:l,target:c,layout:d,latestValues:y}=s;if(!(!l||!c||!d)){if(this!==s&&this.layout&&d&&qk(this.options.animationType,this.layout.layoutBox,d.layoutBox)){c=this.target||Dr();const g=ea(this.layout.layoutBox.x);c.x.min=s.target.x.min,c.x.max=c.x.min+g;const S=ea(this.layout.layoutBox.y);c.y.min=s.target.y.min,c.y.max=c.y.min+S}Ca(l,c),kf(l,y),Sd(this.projectionDeltaWithTransform,this.layoutCorrected,l,y)}}registerSharedNode(s,l){this.sharedNodes.has(s)||this.sharedNodes.set(s,new fz),this.sharedNodes.get(s).add(l);const d=l.options.initialPromotionConfig;l.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(l):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:l}=this.options;return l?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:l}=this.options;return l?(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:l,preserveFollowOpacity:c}={}){const d=this.getStack();d&&d.promote(this,c),s&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let l=!1;const{latestValues:c}=s;if((c.rotate||c.rotateX||c.rotateY||c.rotateZ)&&(l=!0),!l)return;const d={};for(let y=0;y<ES.length;y++){const g="rotate"+ES[y];c[g]&&(d[g]=c[g],s.setStaticValue(g,0))}s.render();for(const y in d)s.setStaticValue(y,d[y]);s.scheduleRender()}getProjectionStyles(s){var l,c;if(!this.instance||this.isSVG)return;if(!this.isVisible)return yz;const d={visibility:""},y=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=Xh(s==null?void 0:s.pointerEvents)||"",d.transform=y?y(this.latestValues,""):"none",d;const g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){const I={};return this.options.layoutId&&(I.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,I.pointerEvents=Xh(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!xc(this.latestValues)&&(I.transform=y?y({},""):"none",this.hasProjected=!1),I}const S=g.animationValues||g.latestValues;this.applyTransformsToTarget(),d.transform=CS(this.projectionDeltaWithTransform,this.treeScale,S),y&&(d.transform=y(S,d.transform));const{x:T,y:_}=this.projectionDelta;d.transformOrigin=`${T.origin*100}% ${_.origin*100}% 0`,g.animationValues?d.opacity=g===this?(c=(l=S.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:S.opacityExit:d.opacity=g===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],U=d.transform==="none"?S[I]:L(S[I],g);if(R){const W=R.length;for(let ne=0;ne<W;ne++)d[R[ne]]=U}else d[I]=U}return this.options.layoutId&&(d.pointerEvents=g===this?Xh(s==null?void 0:s.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var l;return(l=s.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(OS),this.root.sharedNodes.clear()}}}function wz(e){e.updateLayout()}function xz(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(g=>{const S=s?n.measuredBox[g]:n.layoutBox[g],T=ea(S);S.min=r[g].min,S.max=S.min+T}):qk(o,n.layoutBox,r)&&Ea(g=>{const S=s?n.measuredBox[g]:n.layoutBox[g],T=ea(r[g]);S.max=S.min+T,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[g].max=e.relativeTarget[g].min+T)});const l=Ef();Sd(l,r,n.layoutBox);const c=Ef();s?Sd(c,e.applyTransform(i,!0),n.measuredBox):Sd(c,r,n.layoutBox);const d=!zk(l);let y=!1;if(!e.resumeFrom){const g=e.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:S,layout:T}=g;if(S&&T){const _=Dr();Td(_,n.layoutBox,S.layoutBox);const I=Dr();Td(I,r,T.layoutBox),Yk(_,I)||(y=!0),g.options.layoutRoot&&(e.relativeTarget=I,e.relativeTargetOrigin=_,e.relativeParent=g)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:c,layoutDelta:l,hasLayoutChanged:d,hasRelativeTargetChanged:y})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Sz(e){Sc.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 Tz(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Cz(e){e.clearSnapshot()}function OS(e){e.clearMeasurements()}function Ez(e){e.isLayoutDirty=!1}function kz(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function DS(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Oz(e){e.resolveTargetDelta()}function Dz(e){e.calcProjection()}function Pz(e){e.resetRotation()}function _z(e){e.removeLeadSnapshot()}function PS(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 _S(e,t,n,r){e.min=nr(t.min,n.min,r),e.max=nr(t.max,n.max,r)}function Rz(e,t,n,r){_S(e.x,t.x,n.x,r),_S(e.y,t.y,n.y,r)}function Iz(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Az={duration:.45,ease:[.4,0,.1,1]},RS=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),IS=RS("applewebkit/")&&!RS("chrome/")?Math.round:cr;function AS(e){e.min=IS(e.min),e.max=IS(e.max)}function Mz(e){AS(e.x),AS(e.y)}function qk(e,t,n){return e==="position"||e==="preserve-aspect"&&!Pm(TS(t),TS(n),.2)}const Lz=Gk({attachResizeListener:(e,t)=>ku(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),wv={current:void 0},Xk=Gk({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!wv.current){const e=new Lz({});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"}),Fz={pan:{Feature:JW},drag:{Feature:ZW,ProjectionNode:Xk,MeasureLayout:Hk}},Nz=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function jz(e){const t=Nz.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}const Bz=4;function Am(e,t,n=1){is(n<=Bz,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=jz(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return Rk(s)?parseFloat(s):s}else return Sm(i)?Am(i,t,n+1):i}function $z(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 Vz=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Kk=e=>Vz.has(e),Hz=e=>Object.keys(e).some(Kk),Fh=e=>e===Hc||e===Bt,MS=(e,t)=>parseFloat(e.split(", ")[t]),LS=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return MS(i[1],t);{const o=r.match(/^matrix\((.+)\)$/);return o?MS(o[1],e):0}},Uz=new Set(["x","y","z"]),Wz=qd.filter(e=>!Uz.has(e));function zz(e){const t=[];return Wz.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 Mf={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:LS(4,13),y:LS(5,14)};Mf.translateX=Mf.x;Mf.translateY=Mf.y;const Yz=(e,t,n)=>{const r=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:s}=o,l={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(d=>{l[d]=Mf[d](r,o)}),t.render();const c=t.measureViewportBox();return n.forEach(d=>{const y=t.getValue(d);y&&y.jump(l[d]),e[d]=Mf[d](c,o)}),e},Gz=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(Kk);let o=[],s=!1;const l=[];if(i.forEach(c=>{const d=e.getValue(c);if(!e.hasValue(c))return;let y=n[c],g=ad(y);const S=t[c];let T;if(bp(S)){const _=S.length,I=S[0]===null?1:0;y=S[I],g=ad(y);for(let L=I;L<_&&S[L]!==null;L++)T?is(ad(S[L])===T,"All keyframes must be of the same type"):(T=ad(S[L]),is(T===g||Fh(g)&&Fh(T),"Keyframes must be of the same dimension as the current value"))}else T=ad(S);if(g!==T)if(Fh(g)&&Fh(T)){const _=d.get();typeof _=="string"&&d.set(parseFloat(_)),typeof S=="string"?t[c]=parseFloat(S):Array.isArray(S)&&T===Bt&&(t[c]=S.map(parseFloat))}else g!=null&&g.transform&&(T!=null&&T.transform)&&(y===0||S===0)?y===0?d.set(T.transform(y)):t[c]=g.transform(S):(s||(o=zz(e),s=!0),l.push(c),r[c]=r[c]!==void 0?r[c]:t[c],d.jump(S))}),l.length){const c=l.indexOf("height")>=0?window.pageYOffset:null,d=Yz(t,e,l);return o.length&&o.forEach(([y,g])=>{e.getValue(y).set(g)}),e.render(),Kp&&c!==null&&window.scrollTo({top:c}),{target:d,transitionEnd:r}}else return{target:t,transitionEnd:r}};function qz(e,t,n,r){return Hz(t)?Gz(e,t,n,r):{target:t,transitionEnd:r}}const Xz=(e,t,n,r)=>{const i=$z(e,t,r);return t=i.target,r=i.transitionEnd,qz(e,t,n,r)},Mm={current:null},Zk={current:!1};function Kz(){if(Zk.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 Zz(e,t,n){const{willChange:r}=t;for(const i in t){const o=t[i],s=n[i];if(Do(o))e.addValue(i,o),Tp(r)&&r.add(i),process.env.NODE_ENV==="development"&&qy(o.version==="10.18.0",`Attempting to mix Framer Motion versions ${o.version} with 10.18.0 may not work as expected.`);else if(Do(s))e.addValue(i,Af(o,{owner:e})),Tp(r)&&r.remove(i);else if(s!==o)if(e.hasValue(i)){const l=e.getValue(i);!l.hasAnimated&&l.set(o)}else{const l=e.getStaticValue(i);e.addValue(i,Af(l!==void 0?l:o,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const FS=new WeakMap,Jk=Object.keys(Nd),Jz=Jk.length,NS=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Qz=Ry.length;class e5{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=()=>Hn.render(this.render,!1,!0);const{latestValues:l,renderState:c}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},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=FE(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...y}=this.scrapeMotionValuesFromProps(n,{});for(const g in y){const S=y[g];l[g]!==void 0&&Do(S)&&(S.set(l[g],!1),Tp(d)&&d.add(g))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,FS.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)),Zk.current||Kz(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Mm.current,process.env.NODE_ENV!=="production"&&qy(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(){FS.delete(this.current),this.projection&&this.projection.unmount(),Lu(this.notifyUpdate),Lu(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=Vc.has(t),i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Hn.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,l;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?Zd(!1,c):is(!1,c)}for(let c=0;c<Jz;c++){const d=Jk[c],{isEnabled:y,Feature:g,ProjectionNode:S,MeasureLayout:T}=Nd[d];S&&(s=S),y(n)&&(!this.features[d]&&g&&(this.features[d]=new g(this)),T&&(l=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:y,dragConstraints:g,layoutScroll:S,layoutRoot:T}=n;this.projection.setOptions({layoutId:c,layout:d,alwaysMeasureLayout:!!y||g&&Tf(g),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof d=="string"?d:"both",initialPromotionConfig:o,layoutScroll:S,layoutRoot:T})}return l}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):Dr()}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<NS.length;r++){const i=NS[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=Zz(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<Qz;r++){const i=Ry[r],o=this.props[i];(Fd(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=Af(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=jy(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&&!Do(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 Gy),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Qk extends e5{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=vW(r,t||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),s&&(s=i(s))),o){pW(this,r,s);const l=Xz(this,r,s,n);n=l.transitionEnd,r=l.target}return{transition:t,transitionEnd:n,...r}}}function t5(e){return window.getComputedStyle(e)}class n5 extends Qk{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(Vc.has(n)){const r=Hy(n);return r&&r.default||0}else{const r=t5(t),i=(VE(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return $k(t,n)}build(t,n,r,i){Ay(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return Ny(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Do(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){GE(t,n,r,i)}}class r5 extends Qk{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Vc.has(n)){const r=Hy(n);return r&&r.default||0}return n=qE.has(n)?n:Py(n),t.getAttribute(n)}measureInstanceViewportBox(){return Dr()}scrapeMotionValuesFromProps(t,n){return KE(t,n)}build(t,n,r,i){Ly(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){XE(t,n,r,i)}mount(t){this.isSVGTag=Fy(t.tagName),super.mount(t)}}const i5=(e,t)=>Iy(e)?new r5(t,{enableHardwareAcceleration:!1}):new n5(t,{enableHardwareAcceleration:!0}),o5={layout:{ProjectionNode:Xk,MeasureLayout:Hk}},a5={...RW,...QH,...Fz,...o5},eO=sH((e,t)=>$H(e,t,a5,i5));function tO(e){return _p({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 nO(e){return _p({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 rO(e,t){return t?e:void 0}function s5(e){return ot.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",...e,children:ot.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]=J.useState({top:0,left:0}),s=J.useRef(null),[l,c]=J.useState("auto");return J.useLayoutEffect(()=>{if(n.current&&s.current){const d=n.current.getBoundingClientRect(),y=s.current.getBoundingClientRect();let g=d.top;const S=d.left+d.width,T=y.height+(window.innerHeight-d.top)>window.innerHeight;T&&(console.log("overtop"),c(window.innerHeight-d.top-50)),d.top+y.height>window.innerHeight&&!T&&(g=d.top-y.height+d.height),o({top:g,left:S})}},[n,s]),r?t({maxHeight:l}):T1.createPortal(ot.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:l})}),n.current)}function Lf(){return Lf=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},Lf.apply(this,arguments)}const l5=Object.freeze(Object.defineProperty({__proto__:null,default:Lf},Symbol.toStringTag,{value:"Module"}));function iO(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Zh(e,t)}/*!
12
- * content-type
13
- * Copyright(c) 2015 Douglas Christopher Wilson
14
- * MIT Licensed
15
- */var jS=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,c5=/\\([\u000b\u0020-\u00ff])/g,f5=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,d5=h5;function h5(e){if(!e)throw new TypeError("argument string is required");var t=typeof e=="object"?p5(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(!f5.test(r))throw new TypeError("invalid media type");var i=new g5(r.toLowerCase());if(n!==-1){var o,s,l;for(jS.lastIndex=n;s=jS.exec(t);){if(s.index!==n)throw new TypeError("invalid parameter format");n+=s[0].length,o=s[1].toLowerCase(),l=s[2],l.charCodeAt(0)===34&&(l=l.slice(1,-1),l.indexOf("\\")!==-1&&(l=l.replace(c5,"$1"))),i.parameters[o]=l}if(n!==t.length)throw new TypeError("invalid parameter format")}return i}function p5(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 g5(e){this.parameters=Object.create(null),this.type=e}var bf=new Map,oO=function(t){return t.cloneNode(!0)},BS=function(){return window.location.protocol==="file:"},aO=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=d5(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(BS()?"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||BS()&&i.status===0)r(null,i);else throw new Error("There was a problem injecting the SVG: "+i.status+" "+i.statusText)}}catch(l){if(i.abort(),l instanceof Error)r(l,i);else throw l}},i.open("GET",t),i.withCredentials=n,i.overrideMimeType&&i.overrideMimeType("text/xml"),i.send()},bl={},$S=function(t,n){bl[t]=bl[t]||[],bl[t].push(n)},v5=function(t){for(var n=function(s,l){setTimeout(function(){if(Array.isArray(bl[t])){var c=bf.get(t),d=bl[t][s];c instanceof SVGSVGElement&&d(null,oO(c)),c instanceof Error&&d(c),s===bl[t].length-1&&delete bl[t]}},0)},r=0,i=bl[t].length;r<i;r++)n(r)},m5=function(t,n,r){if(bf.has(t)){var i=bf.get(t);if(i===void 0){$S(t,r);return}if(i instanceof SVGSVGElement){r(null,oO(i));return}}bf.set(t,void 0),$S(t,r),aO(t,n,function(o,s){var l;o?bf.set(t,o):((l=s.responseXML)===null||l===void 0?void 0:l.documentElement)instanceof SVGSVGElement&&bf.set(t,s.responseXML.documentElement),v5(t)})},y5=function(t,n,r){aO(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)})},b5=0,w5=function(){return++b5},Rs=[],VS={},x5="http://www.w3.org/2000/svg",xv="http://www.w3.org/1999/xlink",HS=function(t,n,r,i,o,s,l){var c=t.getAttribute("data-src")||t.getAttribute("src");if(!c){l(new Error("Invalid data-src or src attribute"));return}if(Rs.indexOf(t)!==-1){Rs.splice(Rs.indexOf(t),1),t=null;return}Rs.push(t),t.setAttribute("src","");var d=i?m5:y5;d(c,o,function(y,g){if(!g){Rs.splice(Rs.indexOf(t),1),t=null,l(y);return}var S=t.getAttribute("id");S&&g.setAttribute("id",S);var T=t.getAttribute("title");T&&g.setAttribute("title",T);var _=t.getAttribute("width");_&&g.setAttribute("width",_);var I=t.getAttribute("height");I&&g.setAttribute("height",I);var L=Array.from(new Set(Qo(Qo(Qo([],(g.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(t.getAttribute("class")||"").split(" "),!0))).join(" ").trim();g.setAttribute("class",L);var R=t.getAttribute("style");R&&g.setAttribute("style",R),g.setAttribute("data-src",c);var U=[].filter.call(t.attributes,function(Je){return/^data-\w[\w-]*$/.test(Je.name)});if(Array.prototype.forEach.call(U,function(Je){Je.name&&Je.value&&g.setAttribute(Je.name,Je.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"]},ne,Q,pe,x,ce;Object.keys(W).forEach(function(Je){ne=Je,pe=W[Je],Q=g.querySelectorAll(ne+"[id]");for(var st=function(He,Re){x=Q[He].id,ce=x+"-"+w5();var Fe;Array.prototype.forEach.call(pe,function($t){Fe=g.querySelectorAll("["+$t+'*="'+x+'"]');for(var Ht=0,Xn=Fe.length;Ht<Xn;Ht++){var br=Fe[Ht].getAttribute($t);br&&!br.match(new RegExp('url\\("?#'+x+'"?\\)'))||Fe[Ht].setAttribute($t,"url(#"+ce+")")}});for(var ze=g.querySelectorAll("[*|href]"),ut=[],mt=0,wt=ze.length;mt<wt;mt++){var vt=ze[mt].getAttributeNS(xv,"href");vt&&vt.toString()==="#"+Q[He].id&&ut.push(ze[mt])}for(var Et=0,it=ut.length;Et<it;Et++)ut[Et].setAttributeNS(xv,"href","#"+ce);Q[He].id=ce},ke=0,_e=Q.length;ke<_e;ke++)st(ke)})}g.removeAttribute("xmlns:a");for(var se=g.querySelectorAll("script"),je=[],qe,Xe,rt=0,nt=se.length;rt<nt;rt++)Xe=se[rt].getAttribute("type"),(!Xe||Xe==="application/ecmascript"||Xe==="application/javascript"||Xe==="text/javascript")&&(qe=se[rt].innerText||se[rt].textContent,qe&&je.push(qe),g.removeChild(se[rt]));if(je.length>0&&(n==="always"||n==="once"&&!VS[c])){for(var ye=0,Pe=je.length;ye<Pe;ye++)new Function(je[ye])(window);VS[c]=!0}var Ue=g.querySelectorAll("style");if(Array.prototype.forEach.call(Ue,function(Je){Je.textContent+=""}),g.setAttribute("xmlns",x5),g.setAttribute("xmlns:xlink",xv),s(g),!t.parentNode){Rs.splice(Rs.indexOf(t),1),t=null,l(new Error("Parent node is null"));return}t.parentNode.replaceChild(g,t),Rs.splice(Rs.indexOf(t),1),t=null,l(null,g)})},S5=function(t,n){var r=n===void 0?{}:n,i=r.afterAll,o=i===void 0?function(){}:i,s=r.afterEach,l=s===void 0?function(){}:s,c=r.beforeEach,d=c===void 0?function(){}:c,y=r.cacheRequests,g=y===void 0?!0:y,S=r.evalScripts,T=S===void 0?"never":S,_=r.httpRequestWithCredentials,I=_===void 0?!1:_,L=r.renumerateIRIElements,R=L===void 0?!0:L;if(t&&"length"in t)for(var U=0,W=0,ne=t.length;W<ne;W++)HS(t[W],T,R,g,I,d,function(Q,pe){l(Q,pe),t&&"length"in t&&t.length===++U&&o(U)});else t?HS(t,T,R,g,I,d,function(Q,pe){l(Q,pe),o(1),t=null}):o(0)},Lm={exports:{}},Nh={exports:{}},wn={};/** @license React v16.13.1
16
- * react-is.production.min.js
17
- *
18
- * Copyright (c) Facebook, Inc. and its affiliates.
19
- *
20
- * This source code is licensed under the MIT license found in the
21
- * LICENSE file in the root directory of this source tree.
22
- */var US;function T5(){if(US)return wn;US=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,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,y=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,S=e?Symbol.for("react.suspense_list"):60120,T=e?Symbol.for("react.memo"):60115,_=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,U=e?Symbol.for("react.scope"):60119;function W(Q){if(typeof Q=="object"&&Q!==null){var pe=Q.$$typeof;switch(pe){case t:switch(Q=Q.type,Q){case c:case d:case r:case o:case i:case g:return Q;default:switch(Q=Q&&Q.$$typeof,Q){case l:case y:case _:case T:case s:return Q;default:return pe}}case n:return pe}}}function ne(Q){return W(Q)===d}return wn.AsyncMode=c,wn.ConcurrentMode=d,wn.ContextConsumer=l,wn.ContextProvider=s,wn.Element=t,wn.ForwardRef=y,wn.Fragment=r,wn.Lazy=_,wn.Memo=T,wn.Portal=n,wn.Profiler=o,wn.StrictMode=i,wn.Suspense=g,wn.isAsyncMode=function(Q){return ne(Q)||W(Q)===c},wn.isConcurrentMode=ne,wn.isContextConsumer=function(Q){return W(Q)===l},wn.isContextProvider=function(Q){return W(Q)===s},wn.isElement=function(Q){return typeof Q=="object"&&Q!==null&&Q.$$typeof===t},wn.isForwardRef=function(Q){return W(Q)===y},wn.isFragment=function(Q){return W(Q)===r},wn.isLazy=function(Q){return W(Q)===_},wn.isMemo=function(Q){return W(Q)===T},wn.isPortal=function(Q){return W(Q)===n},wn.isProfiler=function(Q){return W(Q)===o},wn.isStrictMode=function(Q){return W(Q)===i},wn.isSuspense=function(Q){return W(Q)===g},wn.isValidElementType=function(Q){return typeof Q=="string"||typeof Q=="function"||Q===r||Q===d||Q===o||Q===i||Q===g||Q===S||typeof Q=="object"&&Q!==null&&(Q.$$typeof===_||Q.$$typeof===T||Q.$$typeof===s||Q.$$typeof===l||Q.$$typeof===y||Q.$$typeof===L||Q.$$typeof===R||Q.$$typeof===U||Q.$$typeof===I)},wn.typeOf=W,wn}var xn={};/** @license React v16.13.1
23
- * react-is.development.js
24
- *
25
- * Copyright (c) Facebook, Inc. and its affiliates.
26
- *
27
- * This source code is licensed under the MIT license found in the
28
- * LICENSE file in the root directory of this source tree.
29
- */var WS;function C5(){return WS||(WS=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,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,y=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,S=e?Symbol.for("react.suspense_list"):60120,T=e?Symbol.for("react.memo"):60115,_=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,U=e?Symbol.for("react.scope"):60119;function W(it){return typeof it=="string"||typeof it=="function"||it===r||it===d||it===o||it===i||it===g||it===S||typeof it=="object"&&it!==null&&(it.$$typeof===_||it.$$typeof===T||it.$$typeof===s||it.$$typeof===l||it.$$typeof===y||it.$$typeof===L||it.$$typeof===R||it.$$typeof===U||it.$$typeof===I)}function ne(it){if(typeof it=="object"&&it!==null){var $t=it.$$typeof;switch($t){case t:var Ht=it.type;switch(Ht){case c:case d:case r:case o:case i:case g:return Ht;default:var Xn=Ht&&Ht.$$typeof;switch(Xn){case l:case y:case _:case T:case s:return Xn;default:return $t}}case n:return $t}}}var Q=c,pe=d,x=l,ce=s,se=t,je=y,qe=r,Xe=_,rt=T,nt=n,ye=o,Pe=i,Ue=g,Je=!1;function st(it){return Je||(Je=!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.")),ke(it)||ne(it)===c}function ke(it){return ne(it)===d}function _e(it){return ne(it)===l}function Ve(it){return ne(it)===s}function He(it){return typeof it=="object"&&it!==null&&it.$$typeof===t}function Re(it){return ne(it)===y}function Fe(it){return ne(it)===r}function ze(it){return ne(it)===_}function ut(it){return ne(it)===T}function mt(it){return ne(it)===n}function wt(it){return ne(it)===o}function vt(it){return ne(it)===i}function Et(it){return ne(it)===g}xn.AsyncMode=Q,xn.ConcurrentMode=pe,xn.ContextConsumer=x,xn.ContextProvider=ce,xn.Element=se,xn.ForwardRef=je,xn.Fragment=qe,xn.Lazy=Xe,xn.Memo=rt,xn.Portal=nt,xn.Profiler=ye,xn.StrictMode=Pe,xn.Suspense=Ue,xn.isAsyncMode=st,xn.isConcurrentMode=ke,xn.isContextConsumer=_e,xn.isContextProvider=Ve,xn.isElement=He,xn.isForwardRef=Re,xn.isFragment=Fe,xn.isLazy=ze,xn.isMemo=ut,xn.isPortal=mt,xn.isProfiler=wt,xn.isStrictMode=vt,xn.isSuspense=Et,xn.isValidElementType=W,xn.typeOf=ne}()),xn}var zS;function sO(){return zS||(zS=1,process.env.NODE_ENV==="production"?Nh.exports=T5():Nh.exports=C5()),Nh.exports}/*
30
- object-assign
31
- (c) Sindre Sorhus
32
- @license MIT
33
- */var Sv,YS;function E5(){if(YS)return Sv;YS=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={},l=0;l<10;l++)s["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(s).map(function(y){return s[y]});if(c.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(y){d[y]=y}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Sv=i()?Object.assign:function(o,s){for(var l,c=r(o),d,y=1;y<arguments.length;y++){l=Object(arguments[y]);for(var g in l)t.call(l,g)&&(c[g]=l[g]);if(e){d=e(l);for(var S=0;S<d.length;S++)n.call(l,d[S])&&(c[d[S]]=l[d[S]])}}return c},Sv}var Tv,GS;function Xy(){if(GS)return Tv;GS=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Tv=e,Tv}var Cv,qS;function uO(){return qS||(qS=1,Cv=Function.call.bind(Object.prototype.hasOwnProperty)),Cv}var Ev,XS;function k5(){if(XS)return Ev;XS=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Xy(),n={},r=uO();e=function(o){var s="Warning: "+o;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function i(o,s,l,c,d){if(process.env.NODE_ENV!=="production"){for(var y in o)if(r(o,y)){var g;try{if(typeof o[y]!="function"){var S=Error((c||"React class")+": "+l+" type `"+y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[y]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw S.name="Invariant Violation",S}g=o[y](s,y,c,l,null,t)}catch(_){g=_}if(g&&!(g instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+y+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof g+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),g instanceof Error&&!(g.message in n)){n[g.message]=!0;var T=d?d():"";e("Failed "+l+" type: "+g.message+(T??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Ev=i,Ev}var kv,KS;function O5(){if(KS)return kv;KS=1;var e=sO(),t=E5(),n=Xy(),r=uO(),i=k5(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function s(){return null}return kv=function(l,c){var d=typeof Symbol=="function"&&Symbol.iterator,y="@@iterator";function g(ke){var _e=ke&&(d&&ke[d]||ke[y]);if(typeof _e=="function")return _e}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:U(),arrayOf:W,element:ne(),elementType:Q(),instanceOf:pe,node:je(),objectOf:ce,oneOf:x,oneOfType:se,shape:Xe,exact:rt};function _(ke,_e){return ke===_e?ke!==0||1/ke===1/_e:ke!==ke&&_e!==_e}function I(ke,_e){this.message=ke,this.data=_e&&typeof _e=="object"?_e:{},this.stack=""}I.prototype=Error.prototype;function L(ke){if(process.env.NODE_ENV!=="production")var _e={},Ve=0;function He(Fe,ze,ut,mt,wt,vt,Et){if(mt=mt||S,vt=vt||ut,Et!==n){if(c){var it=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 it.name="Invariant Violation",it}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var $t=mt+":"+ut;!_e[$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."),_e[$t]=!0,Ve++)}}return ze[ut]==null?Fe?ze[ut]===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:ke(ze,ut,mt,wt,vt)}var Re=He.bind(null,!1);return Re.isRequired=He.bind(null,!0),Re}function R(ke){function _e(Ve,He,Re,Fe,ze,ut){var mt=Ve[He],wt=Pe(mt);if(wt!==ke){var vt=Ue(mt);return new I("Invalid "+Fe+" `"+ze+"` of type "+("`"+vt+"` supplied to `"+Re+"`, expected ")+("`"+ke+"`."),{expectedType:ke})}return null}return L(_e)}function U(){return L(s)}function W(ke){function _e(Ve,He,Re,Fe,ze){if(typeof ke!="function")return new I("Property `"+ze+"` of component `"+Re+"` has invalid PropType notation inside arrayOf.");var ut=Ve[He];if(!Array.isArray(ut)){var mt=Pe(ut);return new I("Invalid "+Fe+" `"+ze+"` of type "+("`"+mt+"` supplied to `"+Re+"`, expected an array."))}for(var wt=0;wt<ut.length;wt++){var vt=ke(ut,wt,Re,Fe,ze+"["+wt+"]",n);if(vt instanceof Error)return vt}return null}return L(_e)}function ne(){function ke(_e,Ve,He,Re,Fe){var ze=_e[Ve];if(!l(ze)){var ut=Pe(ze);return new I("Invalid "+Re+" `"+Fe+"` of type "+("`"+ut+"` supplied to `"+He+"`, expected a single ReactElement."))}return null}return L(ke)}function Q(){function ke(_e,Ve,He,Re,Fe){var ze=_e[Ve];if(!e.isValidElementType(ze)){var ut=Pe(ze);return new I("Invalid "+Re+" `"+Fe+"` of type "+("`"+ut+"` supplied to `"+He+"`, expected a single ReactElement type."))}return null}return L(ke)}function pe(ke){function _e(Ve,He,Re,Fe,ze){if(!(Ve[He]instanceof ke)){var ut=ke.name||S,mt=st(Ve[He]);return new I("Invalid "+Fe+" `"+ze+"` of type "+("`"+mt+"` supplied to `"+Re+"`, expected ")+("instance of `"+ut+"`."))}return null}return L(_e)}function x(ke){if(!Array.isArray(ke))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 _e(Ve,He,Re,Fe,ze){for(var ut=Ve[He],mt=0;mt<ke.length;mt++)if(_(ut,ke[mt]))return null;var wt=JSON.stringify(ke,function(Et,it){var $t=Ue(it);return $t==="symbol"?String(it):it});return new I("Invalid "+Fe+" `"+ze+"` of value `"+String(ut)+"` "+("supplied to `"+Re+"`, expected one of "+wt+"."))}return L(_e)}function ce(ke){function _e(Ve,He,Re,Fe,ze){if(typeof ke!="function")return new I("Property `"+ze+"` of component `"+Re+"` has invalid PropType notation inside objectOf.");var ut=Ve[He],mt=Pe(ut);if(mt!=="object")return new I("Invalid "+Fe+" `"+ze+"` of type "+("`"+mt+"` supplied to `"+Re+"`, expected an object."));for(var wt in ut)if(r(ut,wt)){var vt=ke(ut,wt,Re,Fe,ze+"."+wt,n);if(vt instanceof Error)return vt}return null}return L(_e)}function se(ke){if(!Array.isArray(ke))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var _e=0;_e<ke.length;_e++){var Ve=ke[_e];if(typeof Ve!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Je(Ve)+" at index "+_e+"."),s}function He(Re,Fe,ze,ut,mt){for(var wt=[],vt=0;vt<ke.length;vt++){var Et=ke[vt],it=Et(Re,Fe,ze,ut,mt,n);if(it==null)return null;it.data&&r(it.data,"expectedType")&&wt.push(it.data.expectedType)}var $t=wt.length>0?", expected one of type ["+wt.join(", ")+"]":"";return new I("Invalid "+ut+" `"+mt+"` supplied to "+("`"+ze+"`"+$t+"."))}return L(He)}function je(){function ke(_e,Ve,He,Re,Fe){return nt(_e[Ve])?null:new I("Invalid "+Re+" `"+Fe+"` supplied to "+("`"+He+"`, expected a ReactNode."))}return L(ke)}function qe(ke,_e,Ve,He,Re){return new I((ke||"React class")+": "+_e+" type `"+Ve+"."+He+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Re+"`.")}function Xe(ke){function _e(Ve,He,Re,Fe,ze){var ut=Ve[He],mt=Pe(ut);if(mt!=="object")return new I("Invalid "+Fe+" `"+ze+"` of type `"+mt+"` "+("supplied to `"+Re+"`, expected `object`."));for(var wt in ke){var vt=ke[wt];if(typeof vt!="function")return qe(Re,Fe,ze,wt,Ue(vt));var Et=vt(ut,wt,Re,Fe,ze+"."+wt,n);if(Et)return Et}return null}return L(_e)}function rt(ke){function _e(Ve,He,Re,Fe,ze){var ut=Ve[He],mt=Pe(ut);if(mt!=="object")return new I("Invalid "+Fe+" `"+ze+"` of type `"+mt+"` "+("supplied to `"+Re+"`, expected `object`."));var wt=t({},Ve[He],ke);for(var vt in wt){var Et=ke[vt];if(r(ke,vt)&&typeof Et!="function")return qe(Re,Fe,ze,vt,Ue(Et));if(!Et)return new I("Invalid "+Fe+" `"+ze+"` key `"+vt+"` supplied to `"+Re+"`.\nBad object: "+JSON.stringify(Ve[He],null," ")+`
34
- Valid keys: `+JSON.stringify(Object.keys(ke),null," "));var it=Et(ut,vt,Re,Fe,ze+"."+vt,n);if(it)return it}return null}return L(_e)}function nt(ke){switch(typeof ke){case"number":case"string":case"undefined":return!0;case"boolean":return!ke;case"object":if(Array.isArray(ke))return ke.every(nt);if(ke===null||l(ke))return!0;var _e=g(ke);if(_e){var Ve=_e.call(ke),He;if(_e!==ke.entries){for(;!(He=Ve.next()).done;)if(!nt(He.value))return!1}else for(;!(He=Ve.next()).done;){var Re=He.value;if(Re&&!nt(Re[1]))return!1}}else return!1;return!0;default:return!1}}function ye(ke,_e){return ke==="symbol"?!0:_e?_e["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&_e instanceof Symbol:!1}function Pe(ke){var _e=typeof ke;return Array.isArray(ke)?"array":ke instanceof RegExp?"object":ye(_e,ke)?"symbol":_e}function Ue(ke){if(typeof ke>"u"||ke===null)return""+ke;var _e=Pe(ke);if(_e==="object"){if(ke instanceof Date)return"date";if(ke instanceof RegExp)return"regexp"}return _e}function Je(ke){var _e=Ue(ke);switch(_e){case"array":case"object":return"an "+_e;case"boolean":case"date":case"regexp":return"a "+_e;default:return _e}}function st(ke){return!ke.constructor||!ke.constructor.name?S:ke.constructor.name}return T.checkPropTypes=i,T.resetWarningCache=i.resetWarningCache,T.PropTypes=T,T},kv}var Ov,ZS;function D5(){if(ZS)return Ov;ZS=1;var e=Xy();function t(){}function n(){}return n.resetWarningCache=t,Ov=function(){function r(s,l,c,d,y,g){if(g!==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 P5=sO(),_5=!0;Lm.exports=O5()(P5.isElement,_5)}else Lm.exports=D5()();var Or=Lm.exports;const Oa=Bc(Or);var R5=function(t){var n=(t==null?void 0:t.ownerDocument)||document;return n.defaultView||window},I5=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},A5=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],jh="http://www.w3.org/2000/svg",JS="http://www.w3.org/1999/xlink",ng=function(e){iO(t,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(l){r.reactWrapper=l},r}var n=t.prototype;return n.renderSVG=function(){var i=this;if(this.reactWrapper instanceof R5(this.reactWrapper).Node){var o=this.props,s=o.desc,l=o.evalScripts,c=o.httpRequestWithCredentials,d=o.renumerateIRIElements,y=o.src,g=o.title,S=o.useRequestCache,T=this.props.onError,_=this.props.beforeInjection,I=this.props.afterInjection,L=this.props.wrapper,R,U;L==="svg"?(R=document.createElementNS(jh,L),R.setAttribute("xmlns",jh),R.setAttribute("xmlns:xlink",JS),U=document.createElementNS(jh,L)):(R=document.createElement(L),U=document.createElement(L)),R.appendChild(U),U.dataset.src=y,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)})},ne=function(x,ce){if(x){W(x);return}i._isMounted&&i.setState(function(){return{isLoading:!1}},function(){try{I(ce)}catch(se){W(se)}})},Q=function(x){if(x.setAttribute("role","img"),s){var ce=x.querySelector(":scope > desc");ce&&x.removeChild(ce);var se=document.createElement("desc");se.innerHTML=s,x.prepend(se)}if(g){var je=x.querySelector(":scope > title");je&&x.removeChild(je);var qe=document.createElement("title");qe.innerHTML=g,x.prepend(qe)}try{_(x)}catch(Xe){W(Xe)}};S5(U,{afterEach:ne,beforeEach:Q,cacheRequests:S,evalScripts:l,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;I5(Lf({},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 l=i.wrapper,c=qm(i,A5),d=l;return Sn.createElement(d,Lf({},c,{ref:this.refCallback},l==="svg"?{xmlns:jh,xmlnsXlink:JS}:{}),this.state.isLoading&&s&&Sn.createElement(s,null),this.state.hasError&&o&&Sn.createElement(o,null))},t}(Sn.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:Or.func,beforeInjection:Or.func,desc:Or.string,evalScripts:Or.oneOf(["always","once","never"]),fallback:Or.oneOfType([Or.func,Or.object,Or.string]),httpRequestWithCredentials:Or.bool,loading:Or.oneOfType([Or.func,Or.object,Or.string]),onError:Or.func,renumerateIRIElements:Or.bool,src:Or.string.isRequired,title:Or.string,useRequestCache:Or.bool,wrapper:Or.oneOf(["div","span","svg"])};const Ff=new Map;Ff.set("text",e=>{var t;return ot.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center",lineHeight:"24px"},children:(t=e.name.trim().at(0))==null?void 0:t.toUpperCase()})});Ff.set("svgHtml",e=>{function t(n){function r(o){const l=new DOMParser().parseFromString(o,"image/svg+xml").querySelector("svg");return l?(l.querySelectorAll("path").forEach(d=>{d.hasAttribute("fill")&&d.setAttribute("fill","currentColor"),d.hasAttribute("stroke")&&d.setAttribute("stroke","currentColor")}),l.outerHTML):""}const i=r(n.svgString);return ot.jsx("div",{dangerouslySetInnerHTML:{__html:i},style:{width:24,height:24,margin:"0 auto"}})}return ot.jsx(t,{svgString:e.icon})});Ff.set("svgHttp",e=>ot.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")})}}));Ff.set("img",e=>ot.jsx("img",{src:e.icon||"/",alt:e.name,style:{height:24,maxHeight:24,maxWidth:24}}));function M5(e){return e.icon=(e.icon||"").trim(),e.icon?e.icon.startsWith("<svg")?"svgHtml":e.icon.endsWith(".svg")?"svgHttp":"img":"text"}function lO({item:e}){return(Ff.get(M5(e))||Ff.get("text"))(e)}function cO({...e}){var Ue,Je,st,ke,_e;const t=e.item,n=e.level||0,r=!!((Ue=e.item.children)!=null&&Ue.length),{isActive:i,isCollapsed:o}=e,s=`level-${n}`,l=o?"collapsed":"expanded",c=i(t.id)?"active":"",d=(Ve,He=s)=>`${Ve} ${He} ${l} ${c}`,[y,g]=J.useState(!1),[S,T]=J.useState(t.isFavorite||!1);J.useEffect(()=>{T(!!e.item.isFavorite)},[e.item.isFavorite]);const _=J.useRef(),I=J.useRef();I!=null&&I.current&&((Je=I==null?void 0:I.current)==null?void 0:Je.scrollWidth)>((st=I==null?void 0:I.current)==null?void 0:st.clientWidth);const L=window.location.origin,R=t.path&&t.path.includes("http")?new URL(t.path):{origin:"",pathname:""},U=window.location.pathname.split("/")[1],W=R.pathname.split("/")[1],ne=e.ssr||!L.includes("local")&&L!==R.origin||W!==U,Q=r||n===0?"div":ne?"a":S1.Link,pe=t.path||"#",x=n+1,ce=r&&o&&y,se=o||n===0?void 0:`${n+.25}rem`,je=()=>{g(!0)},qe=()=>{g(!1)},Xe="/global-menu-config/api/v1/menu-items/user/set-favorite",rt=t.serviceKey==="mn_poms";e.params.depth*20,e.params.depth,j3(t.id,e.params.isOpen,e.params.onToggle);const nt=Ve=>{Ve.stopPropagation(),e.params.onToggle()},Pe=rt||o&&n===0?t.name==="POMs"?"Parking Operations Management":t.description||t.name:null;return ot.jsxs("div",{ref:_,className:d("menu-item__wrapper tree-node"),style:{borderRadius:"8px",transition:"all 0.3s"},onMouseOver:je,onMouseOut:qe,onDragStart:Ve=>{o&&n>1&&Ve.preventDefault()},children:[ot.jsx(_c.Tooltip,{placement:"top",disableInteractive:!0,title:Pe,children:ot.jsxs(Q,{to:pe,href:pe,draggable:"true",className:d("menu-item__link"),style:{paddingLeft:se,transition:"all 0.3s",color:i(t.id)?((ke=e.brandColors)==null?void 0:ke.primary400)||Fi.primary400:void 0,backgroundColor:i(t.id)&&n===0?(_e=e.brandColors)==null?void 0:_e.primary200:void 0},onClick:Ve=>{o||nt(Ve)},children:[ot.jsx(L5,{cls:d,item:t}),ot.jsx("span",{className:d("menu-item__label"),ref:I,children:t.name}),ot.jsx(F5,{menuLevel:n,hasChildren:r,isHovered:y,isFavorite:S,onClick:Ve=>{const He={menuConfigId:t.id,isFavorite:Ve},Re=e.baseUrl+Xe;Ls.post(Re,He).then(Fe=>{var ze;T(Ve),bT("Set favorite menu item successfully"),(ze=e.onSetFavoriteSuccess)==null||ze.call(e,e.item.id,Ve)}).catch(Fe=>{var ze,ut;Ap(((ut=(ze=Fe.response)==null?void 0:ze.data)==null?void 0:ut.errorMessage)||"Have error when set favorite menu item")})}}),r&&ot.jsx("div",{className:d("menu-item__icon-arrow__wrapper"),children:ot.jsx(s5,{className:d(`menu-item__icon-arrow__icon ${e.params.isOpen?"open":"close"}`)})})]})}),ce&&ot.jsx(u5,{parentRef:_,onlyChild:!o,renderChildren:({maxHeight:Ve})=>{var He;return ot.jsx(eO.div,{className:d(`menu-item__dropdown ${e.params.isOpen?"menu-item__dropdown--open":"menu-item__dropdown--close"}`,`level-${x}`),style:rO({maxHeight:Ve,overflowY:"auto",paddingRight:3},Ve!=="auto"&&!!x),children:(He=t.children)==null?void 0:He.map(Re=>J.createElement(cO,{...e,key:Re.id,item:Re,level:x}))})}})]})}function L5({item:e,cls:t}){return ot.jsx("div",{className:t("menu-item__icon"),children:ot.jsx(lO,{item:e})})}function F5(e){const t={marginRight:e.hasChildren?10:0,fontSize:22,fill:Fi.warning};return ot.jsxs(ot.Fragment,{children:[e.isHovered&&!e.isFavorite&&ot.jsx(_c.Tooltip,{title:"Add to favorites",children:ot.jsx(tO,{style:t,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=e.onClick)==null||r.call(e,!0)}})}),e.isFavorite&&ot.jsx(_c.Tooltip,{title:"Remove from favorites",children:ot.jsx(nO,{style:t,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=e.onClick)==null||r.call(e,!1)}})})]})}function N5(){return ot.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:ot.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 j5(){return ot.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:ot.jsx("path",{d:"M3 4h18v2H3V4zm0 7h18v2H3v-2zm0 7h18v2H3v-2z"})})}function B5(e){return ot.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"20",fill:"none",viewBox:"0 0 18 20",...e,children:ot.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 $5=`.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{display:flex;flex-direction:column;max-width:18rem;height:calc(100vh - 64px);border-right:1px solid #ddd;background-color:#fafafa;transition:all .3s}.side-bar.expanded{width:17rem}.side-bar.collapsed{width:64px}.side-bar__wrap-btn-logout,.side-bar__btn-logout{margin:40px 0}.side-bar__logout-btn__text{margin-left:12px;font-size:.875rem;opacity:1}.side-bar__logout-btn__text.collapsed{opacity:0;transition:ease-in-out .2s;transition-delay:.15s}.side-bar__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px}.side-bar__wrapper-toggle-btn.collapsed{justify-content:center;width:100%}.side-bar__toggle-btn{margin-top:-6px;color:#85858a}.side-bar__logout-btn{width:100%;text-align:left;display:flex;flex-direction:row;align-items:center;padding:8px 16px 8px 18.6665px;min-height:48px;border-radius:.375rem;overflow:hidden;transition:all .3s ease-in-out;background-color:initial}.side-bar__logout-btn:hover{background-color:#919eab14}.side-bar__icon-logout{flex-shrink:0}.menu-item__wrapper{display:flex;flex-direction:column;position:relative;width:100%}.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}.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:180px;max-width:180px;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}}
35
- `;var bc={};/**
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 QS;function V5(){if(QS)return bc;QS=1;var e=J;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 l(E,j,q,re,Oe,be,Me){this.acceptsBooleans=j===2||j===3||j===4,this.attributeName=re,this.attributeNamespace=Oe,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 l(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 l(j,1,!1,E[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(E){c[E]=new l(E,2,!1,E.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(E){c[E]=new l(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 l(E,3,!1,E.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(E){c[E]=new l(E,3,!0,E,null,!1,!1)}),["capture","download"].forEach(function(E){c[E]=new l(E,4,!1,E,null,!1,!1)}),["cols","rows","size","span"].forEach(function(E){c[E]=new l(E,6,!1,E,null,!1,!1)}),["rowSpan","start"].forEach(function(E){c[E]=new l(E,5,!1,E.toLowerCase(),null,!1,!1)});var d=/[\-:]([a-z])/g;function y(E){return E[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(E){var j=E.replace(d,y);c[j]=new l(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,y);c[j]=new l(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,y);c[j]=new l(j,1,!1,E,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(E){c[E]=new l(E,1,!1,E.toLowerCase(),null,!1,!1)}),c.xlinkHref=new l("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(E){c[E]=new l(E,1,!1,E.toLowerCase(),null,!0,!0)});var g={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},S=["Webkit","ms","Moz","O"];Object.keys(g).forEach(function(E){S.forEach(function(j){j=j+E.charAt(0).toUpperCase()+E.substring(1),g[j]=g[E]})});var T=/["'&<>]/;function _(E){if(typeof E=="boolean"||typeof E=="number")return""+E;E=""+E;var j=T.exec(E);if(j){var q="",re,Oe=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}Oe!==re&&(q+=E.substring(Oe,re)),Oe=re+1,q+=j}E=Oe!==re?q+E.substring(Oe,re):q}return E}var I=/([A-Z])/g,L=/^ms-/,R=Array.isArray;function U(E,j){return{insertionMode:E,selectedValue:j}}function W(E,j,q){switch(j){case"select":return U(1,q.value!=null?q.value:q.defaultValue);case"svg":return U(2,null);case"math":return U(3,null);case"foreignObject":return U(1,null);case"table":return U(4,null);case"thead":case"tbody":case"tfoot":return U(5,null);case"colgroup":return U(7,null);case"tr":return U(6,null)}return 4<=E.insertionMode||E.insertionMode===0?U(1,null):E}var ne=new Map;function Q(E,j,q){if(typeof q!="object")throw Error(t(62));j=!0;for(var re in q)if(n.call(q,re)){var Oe=q[re];if(Oe!=null&&typeof Oe!="boolean"&&Oe!==""){if(re.indexOf("--")===0){var be=_(re);Oe=_((""+Oe).trim())}else{be=re;var Me=ne.get(be);Me!==void 0||(Me=_(be.replace(I,"-$1").toLowerCase().replace(L,"-ms-")),ne.set(be,Me)),be=Me,Oe=typeof Oe=="number"?Oe===0||n.call(g,re)?""+Oe:Oe+"px":_((""+Oe).trim())}j?(j=!1,E.push(' style="',be,":",Oe)):E.push(";",be,":",Oe)}}j||E.push('"')}function pe(E,j,q,re){switch(q){case"style":Q(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,'="',_(re),'"');break;case 5:isNaN(re)||E.push(" ",q,'="',_(re),'"');break;case 6:!isNaN(re)&&1<=re&&E.push(" ",q,'="',_(re),'"');break;default:j.sanitizeURL&&(re=""+re),E.push(" ",q,'="',_(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,'="',_(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 ce(E){var j="";return e.Children.forEach(E,function(q){q!=null&&(j+=q)}),j}function se(E,j,q,re){E.push(Xe(q));var Oe=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":Oe=Me;break;default:pe(E,re,be,Me)}}return E.push(">"),x(E,Oe,q),typeof q=="string"?(E.push(_(q)),null):q}var je=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,qe=new Map;function Xe(E){var j=qe.get(E);if(j===void 0){if(!je.test(E))throw Error(t(65,E));j="<"+E,qe.set(E,j)}return j}function rt(E,j,q,re,Oe){switch(j){case"select":E.push(Xe("select"));var be=null,Me=null;for(bt in q)if(n.call(q,bt)){var et=q[bt];if(et!=null)switch(bt){case"children":be=et;break;case"dangerouslySetInnerHTML":Me=et;break;case"defaultValue":case"value":break;default:pe(E,re,bt,et)}}return E.push(">"),x(E,Me,be),be;case"option":Me=Oe.selectedValue,E.push(Xe("option"));var yt=et=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":et=Ut;break;case"selected":Tt=Ut;break;case"dangerouslySetInnerHTML":bt=Ut;break;case"value":yt=Ut;default:pe(E,re,be,Ut)}}if(Me!=null)if(q=yt!==null?""+yt:ce(et),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,et),et;case"textarea":E.push(Xe("textarea")),bt=Me=be=null;for(et in q)if(n.call(q,et)&&(yt=q[et],yt!=null))switch(et){case"children":bt=yt;break;case"value":be=yt;break;case"defaultValue":Me=yt;break;case"dangerouslySetInnerHTML":throw Error(t(91));default:pe(E,re,et,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(_(""+be)),null;case"input":E.push(Xe("input")),yt=bt=et=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":et=Tt;break;case"checked":bt=Tt;break;case"value":be=Tt;break;default:pe(E,re,Me,Tt)}return bt!==null?pe(E,re,"checked",bt):yt!==null&&pe(E,re,"checked",yt),be!==null?pe(E,re,"value",be):et!==null&&pe(E,re,"value",et),E.push("/>"),null;case"menuitem":E.push(Xe("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:pe(E,re,Qn,be)}return E.push(">"),null;case"title":E.push(Xe("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:pe(E,re,Ut,Me)}return E.push(">"),be;case"listing":case"pre":E.push(Xe(j)),Me=be=null;for(yt in q)if(n.call(q,yt)&&(et=q[yt],et!=null))switch(yt){case"children":be=et;break;case"dangerouslySetInnerHTML":Me=et;break;default:pe(E,re,yt,et)}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(Xe(j));for(var zn in q)if(n.call(q,zn)&&(be=q[zn],be!=null))switch(zn){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,j));default:pe(E,re,zn,be)}return E.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return se(E,q,j,re);case"html":return Oe.insertionMode===0&&E.push("<!DOCTYPE html>"),se(E,q,j,re);default:if(j.indexOf("-")===-1&&typeof q.is!="string")return se(E,q,j,re);E.push(Xe(j)),Me=be=null;for(Tt in q)if(n.call(q,Tt)&&(et=q[Tt],et!=null))switch(Tt){case"children":be=et;break;case"dangerouslySetInnerHTML":Me=et;break;case"style":Q(E,re,et);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:s(Tt)&&typeof et!="function"&&typeof et!="symbol"&&E.push(" ",Tt,'="',_(et),'"')}return E.push(">"),x(E,Me,be),be}}function nt(E,j,q){if(E.push('<!--$?--><template id="'),q===null)throw Error(t(395));return E.push(q),E.push('"></template>')}function ye(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 Pe(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 Ue=/[<\u2028\u2029]/g;function Je(E){return JSON.stringify(E).replace(Ue,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 st(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 ke(E,j,q,re){return q.generateStaticMarkup?(E.push(_(j)),!1):(j===""?E=re:(re&&E.push("<!-- -->"),E.push(_(j)),E=!0),E)}var _e=Object.assign,Ve=Symbol.for("react.element"),He=Symbol.for("react.portal"),Re=Symbol.for("react.fragment"),Fe=Symbol.for("react.strict_mode"),ze=Symbol.for("react.profiler"),ut=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"),it=Symbol.for("react.memo"),$t=Symbol.for("react.lazy"),Ht=Symbol.for("react.scope"),Xn=Symbol.for("react.debug_trace_mode"),br=Symbol.for("react.legacy_hidden"),Kn=Symbol.for("react.default_value"),kn=Symbol.iterator;function ji(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 He:return"Portal";case ze: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 ut: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 it:return j=E.displayName||null,j!==null?j:ji(E.type)||"Memo";case $t:j=E._payload,E=E._init;try{return ji(E(j))}catch{}}return null}var Pr={};function rr(E,j){if(E=E.contextTypes,!E)return Pr;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 Rn(E,j){if(E.context._currentValue2=E.parentValue,E=E.parent,E===null)throw Error(t(402));E.depth===j.depth?hn(E,j):Rn(E,j)}function ci(E,j){var q=j.parent;if(q===null)throw Error(t(402));E.depth===q.depth?hn(E,q):ci(E,q),j.context._currentValue2=j.value}function ln(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?Rn(j,E):ci(j,E),cn=E)}var Bi={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 $i(E,j,q,re){var Oe=E.state!==void 0?E.state:null;E.updater=Bi,E.props=q,E.state=Oe;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,Oe),Oe=Me==null?Oe:_e({},Oe,Me),E.state=Oe),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&&Bi.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,Oe=!0,Me=Me?1:0;Me<j.length;Me++){var et=j[Me];et=typeof et=="function"?et.call(E,be,q,re):et,et!=null&&(Oe?(Oe=!1,be=_e({},be,et)):_e(be,et))}E.state=be}else be.queue=null}var Vi={id:1,overflow:""};function _r(E,j,q){var re=E.id;E=E.overflow;var Oe=32-Un(re)-1;re&=~(1<<Oe),q+=1;var be=32-Un(j)+Oe;if(30<be){var Me=Oe-Oe%5;return be=(re&(1<<Me)-1).toString(32),re>>=Me,Oe-=Me,{id:1<<32-Un(j)+Oe|q<<Oe|re,overflow:be+E}}return{id:1<<be|q<<Oe|re,overflow:E}}var Un=Math.clz32?Math.clz32:qr,Rr=Math.log,wr=Math.LN2;function qr(E){return E>>>=0,E===0?32:31-(Rr(E)/wr|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,fi=!1,Hi=!1,In=0,gn=null,di=0;function hi(){if(Zn===null)throw Error(t(321));return Zn}function mn(){if(0<di)throw Error(t(312));return{memoizedState:null,queue:null,next:null}}function uo(){return Zt===null?ir===null?(fi=!1,ir=Zt=mn()):(fi=!0,Zt=ir):Zt.next===null?(fi=!1,Zt=Zt.next=mn()):(fi=!0,Zt=Zt.next),Zt}function xr(){Kr=Zn=null,Hi=!1,ir=null,di=0,Zt=gn=null}function pi(E,j){return typeof j=="function"?j(E):j}function fn(E,j,q){if(Zn=hi(),Zt=uo(),fi){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===pi?typeof j=="function"?j():j:q!==void 0?q(j):j,Zt.memoizedState=E,E=Zt.queue={last:null,dispatch:null},E=E.dispatch=Ra.bind(null,Zn,E),[Zt.memoizedState,E]}function Si(E,j){if(Zn=hi(),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 Oe=0;Oe<re.length&&Oe<j.length;Oe++)if(!Po(j[Oe],re[Oe])){re=!1;break e}re=!0}if(re)return q[0]}}return E=E(),Zt.memoizedState=[E,j],E}function Ra(E,j,q){if(25<=di)throw Error(t(301));if(E===Zn)if(Hi=!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 Ia(){throw Error(t(394))}function Zr(){}var lo={readContext:function(E){return E._currentValue2},useContext:function(E){return hi(),E._currentValue2},useMemo:Si,useReducer:fn,useRef:function(E){Zn=hi(),Zt=uo();var j=Zt.memoizedState;return j===null?(E={current:E},Zt.memoizedState=E):j},useState:function(E){return fn(pi,E)},useInsertionEffect:Zr,useLayoutEffect:function(){},useCallback:function(E,j){return Si(function(){return E},j)},useImperativeHandle:Zr,useEffect:Zr,useDebugValue:Zr,useDeferredValue:function(E){return hi(),E},useTransition:function(){return hi(),[!1,Ia]},useId:function(){var E=Kr.treeContext,j=E.overflow;E=E.id,E=(E&~(1<<32-Un(E)-1)).toString(32)+j;var q=co;if(q===null)throw Error(t(404));return j=In++,E=":"+q.idPrefix+"R"+E,0<j&&(E+="H"+j.toString(32)),E+":"},useMutableSource:function(E,j){return hi(),j(E._source)},useSyncExternalStore:function(E,j,q){if(q===void 0)throw Error(t(407));return q()}},co=null,_o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function Ti(E){return console.error(E),null}function gi(){}function Ci(E,j,q,re,Oe,be,Me,et,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:Oe===void 0?Ti:Oe,onAllReady:be===void 0?gi:be,onShellReady:Me===void 0?gi:Me,onShellError:et===void 0?gi:et,onFatalError:yt===void 0?gi:yt},q=Ei(j,0,null,q,!1,!1),q.parentFlushed=!0,E=fo(j,E,null,q,bt,Pr,null,Vi),Tt.push(E),j}function fo(E,j,q,re,Oe,be,Me,et){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:Oe,legacyContext:be,context:Me,treeContext:et};return Oe.add(yt),yt}function Ei(E,j,q,re,Oe,be){return{status:0,id:-1,index:j,parentFlushed:!1,chunks:[],children:[],formatContext:re,boundary:q,lastPushedText:Oe,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 Sr(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 Ir(E,j,q,re,Oe){for(Zn={},Kr=j,In=0,E=q(re,Oe);Hi;)Hi=!1,In=0,di+=1,Zt=null,E=q(re,Oe);return xr(),E}function Qr(E,j,q,re){var Oe=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 et in q)if(!(et in be))throw Error(t(108,ji(re)||"Unknown",et));re=_e({},Me,q)}j.legacyContext=re,vn(E,j,Oe),j.legacyContext=Me}else vn(E,j,Oe)}function Ar(E,j){if(E&&E.defaultProps){j=_e({},j),E=E.defaultProps;for(var q in E)j[q]===void 0&&(j[q]=E[q]);return j}return j}function Wn(E,j,q,re,Oe){if(typeof q=="function")if(q.prototype&&q.prototype.isReactComponent){Oe=rr(q,j.legacyContext);var be=q.contextType;be=new q(re,typeof be=="object"&&be!==null?be._currentValue2:Oe),$i(be,q,re,Oe),Qr(E,j,be,q)}else{be=rr(q,j.legacyContext),Oe=Ir(E,j,q,re,be);var Me=In!==0;if(typeof Oe=="object"&&Oe!==null&&typeof Oe.render=="function"&&Oe.$$typeof===void 0)$i(Oe,q,re,be),Qr(E,j,Oe,q);else if(Me){re=j.treeContext,j.treeContext=_r(re,1,0);try{vn(E,j,Oe)}finally{j.treeContext=re}}else vn(E,j,Oe)}else if(typeof q=="string"){switch(Oe=j.blockedSegment,be=rt(Oe.chunks,q,re,E.responseState,Oe.formatContext),Oe.lastPushedText=!1,Me=Oe.formatContext,Oe.formatContext=W(Me,q,re),Tr(E,j,be),Oe.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:Oe.chunks.push("</",q,">")}Oe.lastPushedText=!1}else{switch(q){case br:case Xn:case Fe:case ze: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,Oe=j.blockedSegment,be=re.fallback,re=re.children,Me=new Set;var et={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:Me,errorDigest:null},yt=Ei(E,Oe.chunks.length,et,Oe.formatContext,!1,!1);Oe.children.push(yt),Oe.lastPushedText=!1;var Tt=Ei(E,0,null,Oe.formatContext,!1,!1);Tt.parentFlushed=!0,j.blockedBoundary=et,j.blockedSegment=Tt;try{if(Tr(E,j,re),E.responseState.generateStaticMarkup||Tt.lastPushedText&&Tt.textEmbedded&&Tt.chunks.push("<!-- -->"),Tt.status=1,Lr(et,Tt),et.pendingTasks===0)break e}catch(bt){Tt.status=4,et.forceClientRender=!0,et.errorDigest=Jr(E,bt)}finally{j.blockedBoundary=q,j.blockedSegment=Oe}j=fo(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=Ir(E,j,q.render,re,Oe),In!==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 it:q=q.type,re=Ar(q,re),Wn(E,j,q,re,Oe);return;case ut:if(Oe=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,Oe),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:Oe=q._init,q=Oe(q._payload),re=Ar(q,re),Wn(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:Wn(E,j,q.type,q.props,q.ref);return;case He:throw Error(t(257));case $t:var re=q._init;q=re(q._payload),vn(E,j,q);return}if(R(q)){Mr(E,j,q);return}if(q===null||typeof q!="object"?re=null:(re=kn&&q[kn]||q["@@iterator"],re=typeof re=="function"?re:null),re&&(re=re.call(q))){if(q=re.next(),!q.done){var Oe=[];do Oe.push(q.value),q=re.next();while(!q.done);Mr(E,j,Oe)}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=ke(j.blockedSegment.chunks,q,E.responseState,re.lastPushedText)):typeof q=="number"&&(re=j.blockedSegment,re.lastPushedText=ke(j.blockedSegment.chunks,""+q,E.responseState,re.lastPushedText))}function Mr(E,j,q){for(var re=q.length,Oe=0;Oe<re;Oe++){var be=j.treeContext;j.treeContext=_r(be,re,Oe);try{Tr(E,j,q[Oe])}finally{j.treeContext=be}}}function Tr(E,j,q){var re=j.blockedSegment.formatContext,Oe=j.legacyContext,be=j.context;try{return vn(E,j,q)}catch(yt){if(xr(),typeof yt=="object"&&yt!==null&&typeof yt.then=="function"){q=yt;var Me=j.blockedSegment,et=Ei(E,Me.chunks.length,null,Me.formatContext,Me.lastPushedText,!0);Me.children.push(et),Me.lastPushedText=!1,E=fo(E,j.node,j.blockedBoundary,et,j.abortSet,j.legacyContext,j.context,j.treeContext).ping,q.then(E,E),j.blockedSegment.formatContext=re,j.legacyContext=Oe,j.context=be,ln(be)}else throw j.blockedSegment.formatContext=re,j.legacyContext=Oe,j.context=be,ln(be),yt}}function An(E){var j=E.blockedBoundary;E=E.blockedSegment,E.status=3,ei(this,j,E)}function vi(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(Oe){return vi(Oe,j,q)}),re.fallbackAbortableTasks.clear(),j.allPendingTasks--,j.allPendingTasks===0&&(re=j.onAllReady,re()))}function Lr(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&&Lr(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=gi,j=E.onShellReady,j())}else j.pendingTasks--,j.forceClientRender||(j.pendingTasks===0?(q.parentFlushed&&q.status===1&&Lr(j,q),j.parentFlushed&&E.completedBoundaries.push(j),j.fallbackAbortableTasks.forEach(An,E),j.fallbackAbortableTasks.clear()):q.parentFlushed&&q.status===1&&(Lr(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=_o.current;_o.current=lo;var re=co;co=E.responseState;try{var Oe=E.pingedTasks,be;for(be=0;be<Oe.length;be++){var Me=Oe[be],et=E,yt=Me.blockedSegment;if(yt.status===0){ln(Me.context);try{vn(et,Me,Me.node),et.responseState.generateStaticMarkup||yt.lastPushedText&&yt.textEmbedded&&yt.chunks.push("<!-- -->"),Me.abortSet.delete(Me),yt.status=1,ei(et,Me.blockedBoundary,yt)}catch(On){if(xr(),typeof On=="object"&&On!==null&&typeof On.then=="function"){var Tt=Me.ping;On.then(Tt,Tt)}else{Me.abortSet.delete(Me),yt.status=4;var bt=Me.blockedBoundary,Ut=On,Qn=Jr(et,Ut);if(bt===null?Sr(et,Ut):(bt.pendingTasks--,bt.forceClientRender||(bt.forceClientRender=!0,bt.errorDigest=Qn,bt.parentFlushed&&et.clientRenderedBoundaries.push(bt))),et.allPendingTasks--,et.allPendingTasks===0){var zn=et.onAllReady;zn()}}}finally{}}}Oe.splice(0,be),E.destination!==null&&fr(E,E.destination)}catch(On){Jr(E,On),Sr(E,On)}finally{co=re,_o.current=q,q===lo&&ln(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 Oe=!0;re=q.chunks;var be=0;q=q.children;for(var Me=0;Me<q.length;Me++){for(Oe=q[Me];be<Oe.index;be++)j.push(re[be]);Oe=ni(E,j,Oe)}for(;be<re.length-1;be++)j.push(re[be]);return be<re.length&&(Oe=j.push(re[be])),Oe;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=_(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 Oe=E.responseState,be=Oe.nextSuspenseID++;return Oe=Oe.boundaryPrefix+be.toString(16),re=re.id=Oe,nt(j,E.responseState,re),ti(E,j,q),j.push("<!--/$-->")}if(re.byteSize>E.progressiveChunkSize)return re.rootSegmentID=E.nextSegmentId++,E.completedBoundaries.push(re),nt(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 Ui(E,j,q){return ye(j,E.responseState,q.formatContext,q.id),ni(E,j,q),Pe(j,q.formatContext)}function _n(E,j,q){for(var re=q.completedSegments,Oe=0;Oe<re.length;Oe++)Cr(E,j,q,re[Oe]);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 Cr(E,j,q,re){if(re.status===2)return!0;var Oe=re.id;if(Oe===-1){if((re.id=q.rootSegmentID)===-1)throw Error(t(392));return Ui(E,j,re)}return Ui(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),Oe=Oe.toString(16),j.push(Oe),j.push('","'),j.push(E.placeholderPrefix),j.push(Oe),j.push('")<\/script>')}function fr(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 Oe=E.clientRenderedBoundaries,be;for(be=0;be<Oe.length;be++){var Me=Oe[be];re=j;var et=E.responseState,yt=Me.id,Tt=Me.errorDigest,bt=Me.errorMessage,Ut=Me.errorComponentStack;if(re.push(et.startInlineScript),et.sentClientRenderFunction?re.push('$RX("'):(et.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=Je(Tt||"");re.push(Qn)}if(bt||Ut){re.push(",");var zn=Je(bt||"");re.push(zn)}if(Ut){re.push(",");var On=Je(Ut);re.push(On)}if(!re.push(")<\/script>")){E.destination=null,be++,Oe.splice(0,be);return}}Oe.splice(0,be);var Nr=E.completedBoundaries;for(be=0;be<Nr.length;be++)if(!_n(E,j,Nr[be])){E.destination=null,be++,Nr.splice(0,be);return}Nr.splice(0,be);var or=E.partialBoundaries;for(be=0;be<or.length;be++){var zi=or[be];e:{Oe=E,Me=j;var mi=zi.completedSegments;for(et=0;et<mi.length;et++)if(!Cr(Oe,Me,zi,mi[et])){et++,mi.splice(0,et);var Yi=!1;break e}mi.splice(0,et),Yi=!0}if(!Yi){E.destination=null,be++,or.splice(0,be);return}}or.splice(0,be);var jr=E.completedBoundaries;for(be=0;be<jr.length;be++)if(!_n(E,j,jr[be])){E.destination=null,be++,jr.splice(0,be);return}jr.splice(0,be)}finally{E.allPendingTasks===0&&E.pingedTasks.length===0&&E.clientRenderedBoundaries.length===0&&E.completedBoundaries.length===0&&j.push(null)}}function Ro(E,j){try{var q=E.abortableTasks;q.forEach(function(re){return vi(re,E,j)}),q.clear(),E.destination!==null&&fr(E,E.destination)}catch(re){Jr(E,re),Sr(E,re)}}function Wi(){}function Fr(E,j,q,re){var Oe=!1,be=null,Me="",et={push:function(Tt){return Tt!==null&&(Me+=Tt),!0},destroy:function(Tt){Oe=!0,be=Tt}},yt=!1;if(E=Ci(E,st(q,j?j.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,Wi,void 0,function(){yt=!0},void 0,void 0),Jn(E),Ro(E,re),E.status===1)E.status=2,et.destroy(E.fatalError);else if(E.status!==2&&E.destination===null){E.destination=et;try{fr(E,et)}catch(Tt){Jr(E,Tt),Sr(E,Tt)}}if(Oe)throw be;if(!yt)throw Error(t(426));return Me}return bc.renderToNodeStream=function(){throw Error(t(207))},bc.renderToStaticMarkup=function(E,j){return Fr(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')},bc.renderToStaticNodeStream=function(){throw Error(t(208))},bc.renderToString=function(E,j){return Fr(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')},bc.version="18.2.0",bc}var Bh={};/**
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 e1;function H5(){if(e1)return Bh;e1=1;var e=J;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 l=new TextEncoder;function c(k){return l.encode(k)}function d(k){return l.encode(k)}function y(k,F){typeof k.error=="function"?k.error(F):k.close()}var g=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={},_={};function I(k){return g.call(_,k)?!0:g.call(T,k)?!1:S.test(k)?_[k]=!0:(T[k]=!0,!1)}function L(k,F,z,te,Se,Te,Be){this.acceptsBooleans=F===2||F===3||F===4,this.attributeName=te,this.attributeNamespace=Se,this.mustUseProperty=z,this.propertyName=k,this.type=F,this.sanitizeURL=Te,this.removeEmptyString=Be}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 U=/[\-:]([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(U,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(U,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(U,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 ne={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Q=["Webkit","ms","Moz","O"];Object.keys(ne).forEach(function(k){Q.forEach(function(F){F=F+k.charAt(0).toUpperCase()+k.substring(1),ne[F]=ne[k]})});var pe=/["'&<>]/;function x(k){if(typeof k=="boolean"||typeof k=="number")return""+k;k=""+k;var F=pe.exec(k);if(F){var z="",te,Se=0;for(te=F.index;te<k.length;te++){switch(k.charCodeAt(te)){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!==te&&(z+=k.substring(Se,te)),Se=te+1,z+=F}k=Se!==te?z+k.substring(Se,te):z}return k}var ce=/([A-Z])/g,se=/^ms-/,je=Array.isArray,qe=d("<script>"),Xe=d("<\/script>"),rt=d('<script src="'),nt=d('<script type="module" src="'),ye=d('" async=""><\/script>'),Pe=/(<\/|<)(s)(cript)/gi;function Ue(k,F,z,te){return""+F+(z==="s"?"\\u0073":"\\u0053")+te}function Je(k,F,z,te,Se){k=k===void 0?"":k,F=F===void 0?qe:d('<script nonce="'+x(F)+'">');var Te=[];if(z!==void 0&&Te.push(F,c((""+z).replace(Pe,Ue)),Xe),te!==void 0)for(z=0;z<te.length;z++)Te.push(rt,c(x(te[z])),ye);if(Se!==void 0)for(te=0;te<Se.length;te++)Te.push(nt,c(x(Se[te])),ye);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 st(k,F){return{insertionMode:k,selectedValue:F}}function ke(k){return st(k==="http://www.w3.org/2000/svg"?2:k==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function _e(k,F,z){switch(F){case"select":return st(1,z.value!=null?z.value:z.defaultValue);case"svg":return st(2,null);case"math":return st(3,null);case"foreignObject":return st(1,null);case"table":return st(4,null);case"thead":case"tbody":case"tfoot":return st(5,null);case"colgroup":return st(7,null);case"tr":return st(6,null)}return 4<=k.insertionMode||k.insertionMode===0?st(1,null):k}var Ve=d("<!-- -->");function He(k,F,z,te){return F===""?te:(te&&k.push(Ve),k.push(c(x(F))),!0)}var Re=new Map,Fe=d(' style="'),ze=d(":"),ut=d(";");function mt(k,F,z){if(typeof z!="object")throw Error(t(62));F=!0;for(var te in z)if(g.call(z,te)){var Se=z[te];if(Se!=null&&typeof Se!="boolean"&&Se!==""){if(te.indexOf("--")===0){var Te=c(x(te));Se=c(x((""+Se).trim()))}else{Te=te;var Be=Re.get(Te);Be!==void 0||(Be=d(x(Te.replace(ce,"-$1").toLowerCase().replace(se,"-ms-"))),Re.set(Te,Be)),Te=Be,Se=typeof Se=="number"?Se===0||g.call(ne,te)?c(""+Se):c(Se+"px"):c(x((""+Se).trim()))}F?(F=!1,k.push(Fe,Te,ze,Se)):k.push(ut,Te,ze,Se)}}F||k.push(Et)}var wt=d(" "),vt=d('="'),Et=d('"'),it=d('=""');function $t(k,F,z,te){switch(z){case"style":mt(k,F,te);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 te){case"function":case"symbol":return;case"boolean":if(!F.acceptsBooleans)return}switch(z=c(F.attributeName),F.type){case 3:te&&k.push(wt,z,it);break;case 4:te===!0?k.push(wt,z,it):te!==!1&&k.push(wt,z,vt,c(x(te)),Et);break;case 5:isNaN(te)||k.push(wt,z,vt,c(x(te)),Et);break;case 6:!isNaN(te)&&1<=te&&k.push(wt,z,vt,c(x(te)),Et);break;default:F.sanitizeURL&&(te=""+te),k.push(wt,z,vt,c(x(te)),Et)}}else if(I(z)){switch(typeof te){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(te)),Et)}}}var Ht=d(">"),Xn=d("/>");function br(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 kn=d(' selected=""');function ji(k,F,z,te){k.push(hn(z));var Se=z=null,Te;for(Te in F)if(g.call(F,Te)){var Be=F[Te];if(Be!=null)switch(Te){case"children":z=Be;break;case"dangerouslySetInnerHTML":Se=Be;break;default:$t(k,te,Te,Be)}}return k.push(Ht),br(k,Se,z),typeof z=="string"?(k.push(c(x(z))),null):z}var Pr=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,te,Se){switch(F){case"select":k.push(hn("select"));var Te=null,Be=null;for(Dt in z)if(g.call(z,Dt)){var Qe=z[Dt];if(Qe!=null)switch(Dt){case"children":Te=Qe;break;case"dangerouslySetInnerHTML":Be=Qe;break;case"defaultValue":case"value":break;default:$t(k,te,Dt,Qe)}}return k.push(Ht),br(k,Be,Te),Te;case"option":Be=Se.selectedValue,k.push(hn("option"));var xt=Qe=null,Nt=null,Dt=null;for(Te in z)if(g.call(z,Te)){var Ct=z[Te];if(Ct!=null)switch(Te){case"children":Qe=Ct;break;case"selected":Nt=Ct;break;case"dangerouslySetInnerHTML":Dt=Ct;break;case"value":xt=Ct;default:$t(k,te,Te,Ct)}}if(Be!=null)if(z=xt!==null?""+xt:Kn(Qe),je(Be)){for(te=0;te<Be.length;te++)if(""+Be[te]===z){k.push(kn);break}}else""+Be===z&&k.push(kn);else Nt&&k.push(kn);return k.push(Ht),br(k,Dt,Qe),Qe;case"textarea":k.push(hn("textarea")),Dt=Be=Te=null;for(Qe in z)if(g.call(z,Qe)&&(xt=z[Qe],xt!=null))switch(Qe){case"children":Dt=xt;break;case"value":Te=xt;break;case"defaultValue":Be=xt;break;case"dangerouslySetInnerHTML":throw Error(t(91));default:$t(k,te,Qe,xt)}if(Te===null&&Be!==null&&(Te=Be),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(Pr),Te!==null&&k.push(c(x(""+Te))),null;case"input":k.push(hn("input")),xt=Dt=Qe=Te=null;for(Be in z)if(g.call(z,Be)&&(Nt=z[Be],Nt!=null))switch(Be){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,"input"));case"defaultChecked":xt=Nt;break;case"defaultValue":Qe=Nt;break;case"checked":Dt=Nt;break;case"value":Te=Nt;break;default:$t(k,te,Be,Nt)}return Dt!==null?$t(k,te,"checked",Dt):xt!==null&&$t(k,te,"checked",xt),Te!==null?$t(k,te,"value",Te):Qe!==null&&$t(k,te,"value",Qe),k.push(Xn),null;case"menuitem":k.push(hn("menuitem"));for(var Bn in z)if(g.call(z,Bn)&&(Te=z[Bn],Te!=null))switch(Bn){case"children":case"dangerouslySetInnerHTML":throw Error(t(400));default:$t(k,te,Bn,Te)}return k.push(Ht),null;case"title":k.push(hn("title")),Te=null;for(Ct in z)if(g.call(z,Ct)&&(Be=z[Ct],Be!=null))switch(Ct){case"children":Te=Be;break;case"dangerouslySetInnerHTML":throw Error(t(434));default:$t(k,te,Ct,Be)}return k.push(Ht),Te;case"listing":case"pre":k.push(hn(F)),Be=Te=null;for(xt in z)if(g.call(z,xt)&&(Qe=z[xt],Qe!=null))switch(xt){case"children":Te=Qe;break;case"dangerouslySetInnerHTML":Be=Qe;break;default:$t(k,te,xt,Qe)}if(k.push(Ht),Be!=null){if(Te!=null)throw Error(t(60));if(typeof Be!="object"||!("__html"in Be))throw Error(t(61));z=Be.__html,z!=null&&(typeof z=="string"&&0<z.length&&z[0]===`
60
- `?k.push(Pr,c(z)):k.push(c(""+z)))}return typeof Te=="string"&&Te[0]===`
61
- `&&k.push(Pr),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 Tn in z)if(g.call(z,Tn)&&(Te=z[Tn],Te!=null))switch(Tn){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,F));default:$t(k,te,Tn,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 ji(k,z,F,te);case"html":return Se.insertionMode===0&&k.push(pn),ji(k,z,F,te);default:if(F.indexOf("-")===-1&&typeof z.is!="string")return ji(k,z,F,te);k.push(hn(F)),Be=Te=null;for(Nt in z)if(g.call(z,Nt)&&(Qe=z[Nt],Qe!=null))switch(Nt){case"children":Te=Qe;break;case"dangerouslySetInnerHTML":Be=Qe;break;case"style":mt(k,te,Qe);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:I(Nt)&&typeof Qe!="function"&&typeof Qe!="symbol"&&k.push(wt,c(Nt),vt,c(x(Qe)),Et)}return k.push(Ht),br(k,Be,Te),Te}}var Rn=d("</"),ci=d(">"),ln=d('<template id="'),Bi=d('"></template>'),$i=d("<!--$-->"),Vi=d('<!--$?--><template id="'),_r=d('"></template>'),Un=d("<!--$!-->"),Rr=d("<!--/$-->"),wr=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,Vi),z===null)throw Error(t(395));return i(k,z),o(k,_r)}var Kr=d('<div hidden id="'),ir=d('">'),Zt=d("</div>"),fi=d('<svg aria-hidden="true" style="display:none" id="'),Hi=d('">'),In=d("</svg>"),gn=d('<math aria-hidden="true" style="display:none" id="'),di=d('">'),hi=d("</math>"),mn=d('<table hidden id="'),uo=d('">'),xr=d("</table>"),pi=d('<table hidden><tbody id="'),fn=d('">'),Si=d("</tbody></table>"),Ra=d('<table hidden><tr id="'),Ia=d('">'),Zr=d("</tr></table>"),lo=d('<table hidden><colgroup id="'),co=d('">'),_o=d("</colgroup></table>");function Ti(k,F,z,te){switch(z.insertionMode){case 0:case 1:return i(k,Kr),i(k,F.segmentPrefix),i(k,c(te.toString(16))),o(k,ir);case 2:return i(k,fi),i(k,F.segmentPrefix),i(k,c(te.toString(16))),o(k,Hi);case 3:return i(k,gn),i(k,F.segmentPrefix),i(k,c(te.toString(16))),o(k,di);case 4:return i(k,mn),i(k,F.segmentPrefix),i(k,c(te.toString(16))),o(k,uo);case 5:return i(k,pi),i(k,F.segmentPrefix),i(k,c(te.toString(16))),o(k,fn);case 6:return i(k,Ra),i(k,F.segmentPrefix),i(k,c(te.toString(16))),o(k,Ia);case 7:return i(k,lo),i(k,F.segmentPrefix),i(k,c(te.toString(16))),o(k,co);default:throw Error(t(397))}}function gi(k,F){switch(F.insertionMode){case 0:case 1:return o(k,Zt);case 2:return o(k,In);case 3:return o(k,hi);case 4:return o(k,xr);case 5:return o(k,Si);case 6:return o(k,Zr);case 7:return o(k,_o);default:throw Error(t(397))}}var Ci=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("'),fo=d('$RS("'),Ei=d('","'),Jr=d('")<\/script>'),Sr=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("'),Ir=d('$RC("'),Qr=d('","'),Ar=d('")<\/script>'),Wn=d('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),vn=d('$RX("'),Mr=d('"'),Tr=d(")<\/script>"),An=d(","),vi=/[<\u2028\u2029]/g;function Lr(k){return JSON.stringify(k).replace(vi,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"),Ui=Symbol.for("react.strict_mode"),_n=Symbol.for("react.profiler"),Cr=Symbol.for("react.provider"),fr=Symbol.for("react.context"),Ro=Symbol.for("react.forward_ref"),Wi=Symbol.for("react.suspense"),Fr=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"),Oe=Symbol.for("react.legacy_hidden"),be=Symbol.for("react.default_value"),Me=Symbol.iterator;function et(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 _n:return"Profiler";case Ui:return"StrictMode";case Wi:return"Suspense";case Fr:return"SuspenseList"}if(typeof k=="object")switch(k.$$typeof){case fr:return(k.displayName||"Context")+".Consumer";case Cr:return(k._context.displayName||"Context")+".Provider";case Ro: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:et(k.type)||"Memo";case j:F=k._payload,k=k._init;try{return et(k(F))}catch{}}return null}var yt={};function Tt(k,F){if(k=k.contextTypes,!k)return yt;var z={},te;for(te in k)z[te]=F[te];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 zn(k){var F=k.parent;F!==null&&zn(F),k.context._currentValue=k.value}function On(k,F){if(k.context._currentValue=k.parentValue,k=k.parent,k===null)throw Error(t(402));k.depth===F.depth?Ut(k,F):On(k,F)}function Nr(k,F){var z=F.parent;if(z===null)throw Error(t(402));k.depth===z.depth?Ut(k,z):Nr(k,z),F.context._currentValue=F.value}function or(k){var F=bt;F!==k&&(F===null?zn(k):k===null?Qn(F):F.depth===k.depth?Ut(F,k):F.depth>k.depth?On(F,k):Nr(F,k),bt=k)}var zi={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 mi(k,F,z,te){var Se=k.state!==void 0?k.state:null;k.updater=zi,k.props=z,k.state=Se;var Te={queue:[],replace:!1};k._reactInternals=Te;var Be=F.contextType;if(k.context=typeof Be=="object"&&Be!==null?Be._currentValue:te,Be=F.getDerivedStateFromProps,typeof Be=="function"&&(Be=Be(z,Se),Se=Be==null?Se:ei({},Se,Be),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&&zi.enqueueReplaceState(k,k.state,null),Te.queue!==null&&0<Te.queue.length)if(F=Te.queue,Be=Te.replace,Te.queue=null,Te.replace=!1,Be&&F.length===1)k.state=F[0];else{for(Te=Be?F[0]:k.state,Se=!0,Be=Be?1:0;Be<F.length;Be++){var Qe=F[Be];Qe=typeof Qe=="function"?Qe.call(k,Te,z,te):Qe,Qe!=null&&(Se?(Se=!1,Te=ei({},Te,Qe)):ei(Te,Qe))}k.state=Te}else Te.queue=null}var Yi={id:1,overflow:""};function jr(k,F,z){var te=k.id;k=k.overflow;var Se=32-Io(te)-1;te&=~(1<<Se),z+=1;var Te=32-Io(F)+Se;if(30<Te){var Be=Se-Se%5;return Te=(te&(1<<Be)-1).toString(32),te>>=Be,Se-=Be,{id:1<<32-Io(F)+Se|z<<Se|te,overflow:Te+k}}return{id:1<<Te|z<<Se|te,overflow:k}}var Io=Math.clz32?Math.clz32:Ma,Vs=Math.log,Aa=Math.LN2;function Ma(k){return k>>>=0,k===0?32:31-(Vs(k)/Aa|0)|0}function La(k,F){return k===F&&(k!==0||1/k===1/F)||k!==k&&F!==F}var Fa=typeof Object.is=="function"?Object.is:La,yi=null,Ao=null,ra=null,sn=null,Qt=!1,Vt=!1,ki=0,ri=null,Mo=0;function bi(){if(yi===null)throw Error(t(321));return yi}function dr(){if(0<Mo)throw Error(t(312));return{memoizedState:null,queue:null,next:null}}function Na(){return sn===null?ra===null?(Qt=!1,ra=sn=dr()):(Qt=!0,sn=ra):sn.next===null?(Qt=!1,sn=sn.next=dr()):(Qt=!0,sn=sn.next),sn}function ia(){Ao=yi=null,Vt=!1,ra=null,Mo=0,sn=ri=null}function os(k,F){return typeof F=="function"?F(k):F}function yn(k,F,z){if(yi=bi(),sn=Na(),Qt){var te=sn.queue;if(F=te.dispatch,ri!==null&&(z=ri.get(te),z!==void 0)){ri.delete(te),te=sn.memoizedState;do te=k(te,z.action),z=z.next;while(z!==null);return sn.memoizedState=te,[te,F]}return[sn.memoizedState,F]}return k=k===os?typeof F=="function"?F():F:z!==void 0?z(F):F,sn.memoizedState=k,k=sn.queue={last:null,dispatch:null},k=k.dispatch=wi.bind(null,yi,k),[sn.memoizedState,k]}function Lo(k,F){if(yi=bi(),sn=Na(),F=F===void 0?null:F,sn!==null){var z=sn.memoizedState;if(z!==null&&F!==null){var te=z[1];e:if(te===null)te=!1;else{for(var Se=0;Se<te.length&&Se<F.length;Se++)if(!Fa(F[Se],te[Se])){te=!1;break e}te=!0}if(te)return z[0]}}return k=k(),sn.memoizedState=[k,F],k}function wi(k,F,z){if(25<=Mo)throw Error(t(301));if(k===yi)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 as(){throw Error(t(394))}function ho(){}var er={readContext:function(k){return k._currentValue},useContext:function(k){return bi(),k._currentValue},useMemo:Lo,useReducer:yn,useRef:function(k){yi=bi(),sn=Na();var F=sn.memoizedState;return F===null?(k={current:k},sn.memoizedState=k):F},useState:function(k){return yn(os,k)},useInsertionEffect:ho,useLayoutEffect:function(){},useCallback:function(k,F){return Lo(function(){return k},F)},useImperativeHandle:ho,useEffect:ho,useDebugValue:ho,useDeferredValue:function(k){return bi(),k},useTransition:function(){return bi(),[!1,as]},useId:function(){var k=Ao.treeContext,F=k.overflow;k=k.id,k=(k&~(1<<32-Io(k)-1)).toString(32)+F;var z=f;if(z===null)throw Error(t(404));return F=ki++,k=":"+z.idPrefix+"R"+k,0<F&&(k+="H"+F.toString(32)),k+":"},useMutableSource:function(k,F){return bi(),F(k._source)},useSyncExternalStore:function(k,F,z){if(z===void 0)throw Error(t(407));return z()}},f=null,v=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,te,Se,Te,Be,Qe,xt){var Nt=[],Dt=new Set;return F={destination:null,responseState:F,progressiveChunkSize:te===void 0?12800:te,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:Dt,pingedTasks:Nt,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:Se===void 0?C:Se,onAllReady:Te===void 0?O:Te,onShellReady:Be===void 0?O:Be,onShellError:Qe===void 0?O:Qe,onFatalError:xt===void 0?O:xt},z=H(F,0,null,z,!1,!1),z.parentFlushed=!0,k=B(F,k,null,z,Dt,yt,null,Yi),Nt.push(k),F}function B(k,F,z,te,Se,Te,Be,Qe){k.allPendingTasks++,z===null?k.pendingRootTasks++:z.pendingTasks++;var xt={node:F,ping:function(){var Nt=k.pingedTasks;Nt.push(xt),Nt.length===1&&$r(k)},blockedBoundary:z,blockedSegment:te,abortSet:Se,legacyContext:Te,context:Be,treeContext:Qe};return Se.add(xt),xt}function H(k,F,z,te,Se,Te){return{status:0,id:-1,index:F,parentFlushed:!1,chunks:[],children:[],formatContext:te,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,y(k.destination,F)):(k.status=1,k.fatalError=F)}function we(k,F,z,te,Se){for(yi={},Ao=F,ki=0,k=z(te,Se);Vt;)Vt=!1,ki=0,Mo+=1,sn=null,k=z(te,Se);return ia(),k}function Le(k,F,z,te){var Se=z.render(),Te=te.childContextTypes;if(Te!=null){var Be=F.legacyContext;if(typeof z.getChildContext!="function")te=Be;else{z=z.getChildContext();for(var Qe in z)if(!(Qe in Te))throw Error(t(108,et(te)||"Unknown",Qe));te=ei({},Be,z)}F.legacyContext=te,Ye(k,F,Se),F.legacyContext=Be}else Ye(k,F,Se)}function Ne(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 Ce(k,F,z,te,Se){if(typeof z=="function")if(z.prototype&&z.prototype.isReactComponent){Se=Tt(z,F.legacyContext);var Te=z.contextType;Te=new z(te,typeof Te=="object"&&Te!==null?Te._currentValue:Se),mi(Te,z,te,Se),Le(k,F,Te,z)}else{Te=Tt(z,F.legacyContext),Se=we(k,F,z,te,Te);var Be=ki!==0;if(typeof Se=="object"&&Se!==null&&typeof Se.render=="function"&&Se.$$typeof===void 0)mi(Se,z,te,Te),Le(k,F,Se,z);else if(Be){te=F.treeContext,F.treeContext=jr(te,1,0);try{Ye(k,F,Se)}finally{F.treeContext=te}}else Ye(k,F,Se)}else if(typeof z=="string"){switch(Se=F.blockedSegment,Te=gt(Se.chunks,z,te,k.responseState,Se.formatContext),Se.lastPushedText=!1,Be=Se.formatContext,Se.formatContext=_e(Be,z,te),Pt(k,F,Te),Se.formatContext=Be,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(Rn,c(z),ci)}Se.lastPushedText=!1}else{switch(z){case Oe:case re:case Ui:case _n:case ni:Ye(k,F,te.children);return;case Fr:Ye(k,F,te.children);return;case q:throw Error(t(343));case Wi:e:{z=F.blockedBoundary,Se=F.blockedSegment,Te=te.fallback,te=te.children,Be=new Set;var Qe={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:Be,errorDigest:null},xt=H(k,Se.chunks.length,Qe,Se.formatContext,!1,!1);Se.children.push(xt),Se.lastPushedText=!1;var Nt=H(k,0,null,Se.formatContext,!1,!1);Nt.parentFlushed=!0,F.blockedBoundary=Qe,F.blockedSegment=Nt;try{if(Pt(k,F,te),Nt.lastPushedText&&Nt.textEmbedded&&Nt.chunks.push(Ve),Nt.status=1,dn(Qe,Nt),Qe.pendingTasks===0)break e}catch(Dt){Nt.status=4,Qe.forceClientRender=!0,Qe.errorDigest=le(k,Dt)}finally{F.blockedBoundary=z,F.blockedSegment=Se}F=B(k,Te,z,xt,Be,F.legacyContext,F.context,F.treeContext),k.pingedTasks.push(F)}return}if(typeof z=="object"&&z!==null)switch(z.$$typeof){case Ro:if(te=we(k,F,z.render,te,Se),ki!==0){z=F.treeContext,F.treeContext=jr(z,1,0);try{Ye(k,F,te)}finally{F.treeContext=z}}else Ye(k,F,te);return;case E:z=z.type,te=Ne(z,te),Ce(k,F,z,te,Se);return;case Cr:if(Se=te.children,z=z._context,te=te.value,Te=z._currentValue,z._currentValue=te,Be=bt,bt=te={parent:Be,depth:Be===null?0:Be.depth+1,context:z,parentValue:Te,value:te},F.context=te,Ye(k,F,Se),k=bt,k===null)throw Error(t(403));te=k.parentValue,k.context._currentValue=te===be?k.context._defaultValue:te,k=bt=k.parent,F.context=k;return;case fr:te=te.children,te=te(z._currentValue),Ye(k,F,te);return;case j:Se=z._init,z=Se(z._payload),te=Ne(z,te),Ce(k,F,z,te,void 0);return}throw Error(t(130,z==null?z:typeof z,""))}}function Ye(k,F,z){if(F.node=z,typeof z=="object"&&z!==null){switch(z.$$typeof){case Jn:Ce(k,F,z.type,z.props,z.ref);return;case ti:throw Error(t(257));case j:var te=z._init;z=te(z._payload),Ye(k,F,z);return}if(je(z)){ct(k,F,z);return}if(z===null||typeof z!="object"?te=null:(te=Me&&z[Me]||z["@@iterator"],te=typeof te=="function"?te:null),te&&(te=te.call(z))){if(z=te.next(),!z.done){var Se=[];do Se.push(z.value),z=te.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"?(te=F.blockedSegment,te.lastPushedText=He(F.blockedSegment.chunks,z,k.responseState,te.lastPushedText)):typeof z=="number"&&(te=F.blockedSegment,te.lastPushedText=He(F.blockedSegment.chunks,""+z,k.responseState,te.lastPushedText))}function ct(k,F,z){for(var te=z.length,Se=0;Se<te;Se++){var Te=F.treeContext;F.treeContext=jr(Te,te,Se);try{Pt(k,F,z[Se])}finally{F.treeContext=Te}}}function Pt(k,F,z){var te=F.blockedSegment.formatContext,Se=F.legacyContext,Te=F.context;try{return Ye(k,F,z)}catch(xt){if(ia(),typeof xt=="object"&&xt!==null&&typeof xt.then=="function"){z=xt;var Be=F.blockedSegment,Qe=H(k,Be.chunks.length,null,Be.formatContext,Be.lastPushedText,!0);Be.children.push(Qe),Be.lastPushedText=!1,k=B(k,F.node,F.blockedBoundary,Qe,F.abortSet,F.legacyContext,F.context,F.treeContext).ping,z.then(k,k),F.blockedSegment.formatContext=te,F.legacyContext=Se,F.context=Te,or(Te)}else throw F.blockedSegment.formatContext=te,F.legacyContext=Se,F.context=Te,or(Te),xt}}function It(k){var F=k.blockedBoundary;k=k.blockedSegment,k.status=3,Br(this,F,k)}function Mn(k,F,z){var te=k.blockedBoundary;k.blockedSegment.status=3,te===null?(F.allPendingTasks--,F.status!==2&&(F.status=2,F.destination!==null&&F.destination.close())):(te.pendingTasks--,te.forceClientRender||(te.forceClientRender=!0,k=z===void 0?Error(t(432)):z,te.errorDigest=F.onError(k),te.parentFlushed&&F.clientRenderedBoundaries.push(te)),te.fallbackAbortableTasks.forEach(function(Se){return Mn(Se,F,z)}),te.fallbackAbortableTasks.clear(),F.allPendingTasks--,F.allPendingTasks===0&&(te=F.onAllReady,te()))}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 Br(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(It,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 $r(k){if(k.status!==2){var F=bt,z=v.current;v.current=er;var te=f;f=k.responseState;try{var Se=k.pingedTasks,Te;for(Te=0;Te<Se.length;Te++){var Be=Se[Te],Qe=k,xt=Be.blockedSegment;if(xt.status===0){or(Be.context);try{Ye(Qe,Be,Be.node),xt.lastPushedText&&xt.textEmbedded&&xt.chunks.push(Ve),Be.abortSet.delete(Be),xt.status=1,Br(Qe,Be.blockedBoundary,xt)}catch(Yn){if(ia(),typeof Yn=="object"&&Yn!==null&&typeof Yn.then=="function"){var Nt=Be.ping;Yn.then(Nt,Nt)}else{Be.abortSet.delete(Be),xt.status=4;var Dt=Be.blockedBoundary,Ct=Yn,Bn=le(Qe,Ct);if(Dt===null?oe(Qe,Ct):(Dt.pendingTasks--,Dt.forceClientRender||(Dt.forceClientRender=!0,Dt.errorDigest=Bn,Dt.parentFlushed&&Qe.clientRenderedBoundaries.push(Dt))),Qe.allPendingTasks--,Qe.allPendingTasks===0){var Tn=Qe.onAllReady;Tn()}}}finally{}}}Se.splice(0,Te),k.destination!==null&&go(k,k.destination)}catch(Yn){le(k,Yn),oe(k,Yn)}finally{f=te,v.current=z,z===er&&or(F)}}}function Wt(k,F,z){switch(z.parentFlushed=!0,z.status){case 0:var te=z.id=k.nextSegmentId++;return z.lastPushedText=!1,z.textEmbedded=!1,k=k.responseState,i(F,ln),i(F,k.placeholderPrefix),k=c(te.toString(16)),i(F,k),o(F,Bi);case 1:z.status=2;var Se=!0;te=z.chunks;var Te=0;z=z.children;for(var Be=0;Be<z.length;Be++){for(Se=z[Be];Te<Se.index;Te++)i(F,te[Te]);Se=Vr(k,F,Se)}for(;Te<te.length-1;Te++)i(F,te[Te]);return Te<te.length&&(Se=o(F,te[Te])),Se;default:throw Error(t(390))}}function Vr(k,F,z){var te=z.boundary;if(te===null)return Wt(k,F,z);if(te.parentFlushed=!0,te.forceClientRender)te=te.errorDigest,o(F,Un),i(F,wr),te&&(i(F,Xr),i(F,c(x(te))),i(F,qr)),o(F,Po),Wt(k,F,z);else if(0<te.pendingTasks){te.rootSegmentID=k.nextSegmentId++,0<te.completedSegments.length&&k.partialBoundaries.push(te);var Se=k.responseState,Te=Se.nextSuspenseID++;Se=d(Se.boundaryPrefix+Te.toString(16)),te=te.id=Se,Zn(F,k.responseState,te),Wt(k,F,z)}else if(te.byteSize>k.progressiveChunkSize)te.rootSegmentID=k.nextSegmentId++,k.completedBoundaries.push(te),Zn(F,k.responseState,te.id),Wt(k,F,z);else{if(o(F,$i),z=te.completedSegments,z.length!==1)throw Error(t(391));Vr(k,F,z[0])}return o(F,Rr)}function zt(k,F,z){return Ti(F,k.responseState,z.formatContext,z.id),Vr(k,F,z),gi(F,z.formatContext)}function on(k,F,z){for(var te=z.completedSegments,Se=0;Se<te.length;Se++)po(k,F,z,te[Se]);if(te.length=0,k=k.responseState,te=z.id,z=z.rootSegmentID,i(F,k.startInlineScript),k.sentCompleteBoundaryFunction?i(F,Ir):(k.sentCompleteBoundaryFunction=!0,i(F,Sr)),te===null)throw Error(t(395));return z=c(z.toString(16)),i(F,te),i(F,Qr),i(F,k.segmentPrefix),i(F,z),o(F,Ar)}function po(k,F,z,te){if(te.status===2)return!0;var Se=te.id;if(Se===-1){if((te.id=z.rootSegmentID)===-1)throw Error(t(392));return zt(k,F,te)}return zt(k,F,te),k=k.responseState,i(F,k.startInlineScript),k.sentCompleteSegmentFunction?i(F,fo):(k.sentCompleteSegmentFunction=!0,i(F,Ci)),i(F,k.segmentPrefix),Se=c(Se.toString(16)),i(F,Se),i(F,Ei),i(F,k.placeholderPrefix),i(F,Se),o(F,Jr)}function go(k,F){n=new Uint8Array(512),r=0;try{var z=k.completedRootSegment;if(z!==null&&k.pendingRootTasks===0){Vr(k,F,z),k.completedRootSegment=null;var te=k.responseState.bootstrapChunks;for(z=0;z<te.length-1;z++)i(F,te[z]);z<te.length&&o(F,te[z])}var Se=k.clientRenderedBoundaries,Te;for(Te=0;Te<Se.length;Te++){var Be=Se[Te];te=F;var Qe=k.responseState,xt=Be.id,Nt=Be.errorDigest,Dt=Be.errorMessage,Ct=Be.errorComponentStack;if(i(te,Qe.startInlineScript),Qe.sentClientRenderFunction?i(te,vn):(Qe.sentClientRenderFunction=!0,i(te,Wn)),xt===null)throw Error(t(395));i(te,xt),i(te,Mr),(Nt||Dt||Ct)&&(i(te,An),i(te,c(Lr(Nt||"")))),(Dt||Ct)&&(i(te,An),i(te,c(Lr(Dt||"")))),Ct&&(i(te,An),i(te,c(Lr(Ct)))),o(te,Tr)}Se.splice(0,Te);var Bn=k.completedBoundaries;for(Te=0;Te<Bn.length;Te++)on(k,F,Bn[Te]);Bn.splice(0,Te),s(F),n=new Uint8Array(512),r=0;var Tn=k.partialBoundaries;for(Te=0;Te<Tn.length;Te++){var Yn=Tn[Te];e:{Se=k,Be=F;var oa=Yn.completedSegments;for(Qe=0;Qe<oa.length;Qe++)if(!po(Se,Be,Yn,oa[Qe])){Qe++,oa.splice(0,Qe);var ss=!1;break e}oa.splice(0,Qe),ss=!0}if(!ss){k.destination=null,Te++,Tn.splice(0,Te);return}}Tn.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 Er(k,F){try{var z=k.abortableTasks;z.forEach(function(te){return Mn(te,k,F)}),z.clear(),k.destination!==null&&go(k,k.destination)}catch(te){le(k,te),oe(k,te)}}return Bh.renderToReadableStream=function(k,F){return new Promise(function(z,te){var Se,Te,Be=new Promise(function(Dt,Ct){Te=Dt,Se=Ct}),Qe=N(k,Je(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),ke(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(Qe.status===1)Qe.status=2,y(Ct,Qe.fatalError);else if(Qe.status!==2&&Qe.destination===null){Qe.destination=Ct;try{go(Qe,Ct)}catch(Bn){le(Qe,Bn),oe(Qe,Bn)}}},cancel:function(){Er(Qe)}},{highWaterMark:0});Dt.allReady=Be,z(Dt)},function(Dt){Be.catch(function(){}),te(Dt)},Se);if(F&&F.signal){var xt=F.signal,Nt=function(){Er(Qe,xt.reason),xt.removeEventListener("abort",Nt)};xt.addEventListener("abort",Nt)}$r(Qe)})},Bh.version="18.2.0",Bh}var wc={};/**
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 t1;function U5(){return t1||(t1=1,process.env.NODE_ENV!=="production"&&function(){var e=J,t="18.2.0",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 l(h){}function c(h,b){d(h,b)}function d(h,b){return h.push(b)}function y(h){}function g(h){h.push(null)}function S(h){return h}function T(h){return h}function _(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 U(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 ne(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 Q=Object.prototype.hasOwnProperty,pe=0,x=1,ce=2,se=3,je=4,qe=5,Xe=6,rt=":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",nt=rt+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ye=new RegExp("^["+rt+"]["+nt+"]*$"),Pe={},Ue={};function Je(h){return Q.call(Ue,h)?!0:Q.call(Pe,h)?!1:ye.test(h)?(Ue[h]=!0,!0):(Pe[h]=!0,i("Invalid attribute name: `%s`",h),!1)}function st(h,b,D,M){if(D!==null&&D.type===pe)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 ke(h){return Ve.hasOwnProperty(h)?Ve[h]:null}function _e(h,b,D,M,Y,ie,fe){this.acceptsBooleans=b===ce||b===se||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={},He=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];He.forEach(function(h){Ve[h]=new _e(h,pe,!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 _e(b,x,!1,D,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(h){Ve[h]=new _e(h,ce,!1,h.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(h){Ve[h]=new _e(h,ce,!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 _e(h,se,!1,h.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(h){Ve[h]=new _e(h,se,!0,h,null,!1,!1)}),["capture","download"].forEach(function(h){Ve[h]=new _e(h,je,!1,h,null,!1,!1)}),["cols","rows","size","span"].forEach(function(h){Ve[h]=new _e(h,Xe,!1,h,null,!1,!1)}),["rowSpan","start"].forEach(function(h){Ve[h]=new _e(h,qe,!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 _e(b,x,!1,h,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(h){var b=h.replace(Re,Fe);Ve[b]=new _e(b,x,!1,h,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(h){var b=h.replace(Re,Fe);Ve[b]=new _e(b,x,!1,h,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(h){Ve[h]=new _e(h,x,!1,h.toLowerCase(),null,!1,!1)});var ze="xlinkHref";Ve[ze]=new _e("xlinkHref",x,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(h){Ve[h]=new _e(h,x,!1,h.toLowerCase(),null,!0,!0)});var ut={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(ut).forEach(function(h){wt.forEach(function(b){ut[mt(b,h)]=ut[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 it(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)-["+nt+"]*$"),br=new RegExp("^(aria)[A-Z]["+nt+"]*$");function Kn(h,b){{if(Q.call(Ht,b)&&Ht[b])return!0;if(br.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 kn(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 ji(h,b){it(h,b)||kn(h,b)}var Pr=!1;function rr(h,b){{if(h!=="input"&&h!=="textarea"&&h!=="select")return;b!=null&&b.value===null&&!Pr&&(Pr=!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./,Rn=/^on[^A-Z]/,ci=new RegExp("^(aria)-["+nt+"]*$"),ln=new RegExp("^(aria)[A-Z]["+nt+"]*$");hn=function(h,b,D,M){if(Q.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 Rn.test(b)&&i("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",b),pn[b]=!0,!0;if(ci.test(b)||ln.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 Ze=ke(b),ht=Ze!==null&&Ze.type===pe;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(!ht&&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"&&st(b,D,Ze,!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):ht?!0:st(b,D,Ze,!1)?(pn[b]=!0,!1):((D==="false"||D==="true")&&Ze!==null&&Ze.type===se&&(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 Bi=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 $i(h,b,D){it(h,b)||Bi(h,b,D)}var Vi=function(){};{var _r=/^(?:webkit|moz|o)[A-Z]/,Un=/^-ms-/,Rr=/-(.)/g,wr=/;\s*$/,qr={},Xr={},Po=!1,Zn=!1,Kr=function(h){return h.replace(Rr,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(Un,"ms-"))))},Zt=function(h){qr.hasOwnProperty(h)&&qr[h]||(qr[h]=!0,i("Unsupported vendor-prefixed style property %s. Did you mean %s?",h,h.charAt(0).toUpperCase()+h.slice(1)))},fi=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(wr,"")))},Hi=function(h,b){Po||(Po=!0,i("`NaN` is an invalid value for the `%s` css style property.",h))},In=function(h,b){Zn||(Zn=!0,i("`Infinity` is an invalid value for the `%s` css style property.",h))};Vi=function(h,b){h.indexOf("-")>-1?ir(h):_r.test(h)?Zt(h):wr.test(b)&&fi(h,b),typeof b=="number"&&(isNaN(b)?Hi(h,b):isFinite(b)||In(h,b))}}var gn=Vi,di=/["'&<>]/;function hi(h){ne(h);var b=""+h,D=di.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:hi(h)}var uo=/([A-Z])/g,xr=/^ms-/;function pi(h){return h.replace(uo,"-$1").toLowerCase().replace(xr,"-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,Si=!1;function Ra(h){!Si&&fn.test(h)&&(Si=!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 Ia=Array.isArray;function Zr(h){return Ia(h)}var lo="<script>",co="<\/script>",_o='<script src="',Ti='<script type="module" src="',gi='" async=""><\/script>';function Ci(h){return ne(h),(""+h).replace(fo,Ei)}var fo=/(<\/|<)(s)(cript)/gi,Ei=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?lo:'<script nonce="'+mn(b)+'">',Ie=[];if(D!==void 0&&Ie.push(fe,Ci(D),co),M!==void 0)for(var Ze=0;Ze<M.length;Ze++)Ie.push(_o,mn(M[Ze]),gi);if(Y!==void 0)for(var ht=0;ht<Y.length;ht++)Ie.push(Ti,mn(Y[ht]),gi);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 Sr=0,Ir=1,Qr=2,Ar=3,Wn=4,vn=5,Mr=6,Tr=7;function An(h,b){return{insertionMode:h,selectedValue:b}}function vi(h,b,D){switch(b){case"select":return An(Ir,D.value!=null?D.value:D.defaultValue);case"svg":return An(Qr,null);case"math":return An(Ar,null);case"foreignObject":return An(Ir,null);case"table":return An(Wn,null);case"thead":case"tbody":case"tfoot":return An(vn,null);case"colgroup":return An(Tr,null);case"tr":return An(Mr,null)}return h.insertionMode>=Wn||h.insertionMode===Sr?An(Ir,null):h}var Lr=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 Ui(h,b,D,M){return b===""?M:(M&&h.push(ni),h.push(ti(b)),!0)}function _n(h,b,D,M){D&&M&&h.push(ni)}var Cr=new Map;function fr(h){var b=Cr.get(h);if(b!==void 0)return b;var D=mn(pi(h));return Cr.set(h,D),D}var Ro=' style="',Wi=":",Fr=";";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(Q.call(D,Y)){var ie=D[Y];if(!(ie==null||typeof ie=="boolean"||ie==="")){var fe=void 0,Ie=void 0,Ze=Y.indexOf("--")===0;Ze?(fe=mn(Y),W(ie,Y),Ie=mn((""+ie).trim())):(gn(Y,ie),fe=fr(Y),typeof ie=="number"?ie!==0&&!Q.call(ut,Y)?Ie=ie+"px":Ie=""+ie:(W(ie,Y),Ie=mn((""+ie).trim()))),M?(M=!1,h.push(Ro,fe,Wi,Ie)):h.push(Fr,fe,Wi,Ie)}}M||h.push(re)}var j=" ",q='="',re='"',Oe='=""';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=ke(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 se:M&&h.push(j,fe,Oe);return;case je:M===!0?h.push(j,fe,Oe):M===!1||h.push(j,fe,q,mn(M),re);return;case qe:isNaN(M)||h.push(j,fe,q,mn(M),re);break;case Xe:!isNaN(M)&&M>=1&&h.push(j,fe,q,mn(M),re);break;default:Y.sanitizeURL&&(U(M,ie),M=""+M,Ra(M)),h.push(j,fe,q,mn(M),re)}}else if(Je(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=">",et="/>";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&&(ne(M),h.push(""+M))}}var Tt=!1,bt=!1,Ut=!1,Qn=!1,zn=!1,On=!1,Nr=!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 zi(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(Q.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 mi(h){var b="";return e.Children.forEach(h,function(D){D!=null&&(b+=D,!zn&&typeof D!="string"&&typeof D!="number"&&(zn=!0,i("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),b}var Yi=' selected=""';function jr(h,b,D,M){var Y=M.selectedValue;h.push(Vt("option"));var ie=null,fe=null,Ie=null,Ze=null;for(var ht in b)if(Q.call(b,ht)){var St=b[ht];if(St==null)continue;switch(ht){case"children":ie=St;break;case"selected":Ie=St,Nr||(i("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Nr=!0);break;case"dangerouslySetInnerHTML":Ze=St;break;case"value":fe=St;default:be(h,D,ht,St);break}}if(Y!=null){var _t;if(fe!==null?(U(fe,"value"),_t=""+fe):(Ze!==null&&(On||(On=!0,i("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),_t=mi(ie)),Zr(Y))for(var Cn=0;Cn<Y.length;Cn++){U(Y[Cn],"value");var sr=""+Y[Cn];if(sr===_t){h.push(Yi);break}}else U(Y,"select.value"),""+Y===_t&&h.push(Yi)}else Ie&&h.push(Yi);return h.push(Me),yt(h,Ze,ie),ie}function Io(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(Q.call(b,Ie)){var Ze=b[Ie];if(Ze==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=Ze;break;case"defaultValue":Y=Ze;break;case"checked":ie=Ze;break;case"value":M=Ze;break;default:be(h,D,Ie,Ze);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(et),null}function Vs(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(Q.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.");ne(ie[0]),M=""+ie[0]}ne(ie),M=""+ie}return typeof M=="string"&&M[0]===`
70
- `&&h.push(Ao),M!==null&&(U(M,"value"),h.push(ti(""+M))),null}function Aa(h,b,D,M){h.push(Vt(D));for(var Y in b)if(Q.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(et),null}function Ma(h,b,D){h.push(Vt("menuitem"));for(var M in b)if(Q.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 La(h,b,D){h.push(Vt("title"));var M=null;for(var Y in b)if(Q.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 Fa(h,b,D,M){h.push(Vt(D));var Y=null,ie=null;for(var fe in b)if(Q.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 yi(h,b,D,M){h.push(Vt(D));var Y=null,ie=null;for(var fe in b)if(Q.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:Je(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 Ao=`
71
- `;function ra(h,b,D,M){h.push(Vt(D));var Y=null,ie=null;for(var fe in b)if(Q.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 Ze=ie.__html;Ze!=null&&(typeof Ze=="string"&&Ze.length>0&&Ze[0]===`
72
- `?h.push(Ao,Ze):(ne(Ze),h.push(""+Ze)))}return typeof Y=="string"&&Y[0]===`
73
- `&&h.push(Ao),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 ki="<!DOCTYPE html>";function ri(h,b,D,M,Y){switch(ji(b,D),rr(b,D),$i(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!==Ar&&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 zi(h,D,M);case"option":return jr(h,D,M,Y);case"textarea":return Vs(h,D,M);case"input":return Io(h,D,M);case"menuitem":return Ma(h,D,M);case"title":return La(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 Aa(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 Fa(h,D,b,M);case"html":return Y.insertionMode===Sr&&h.push(ki),Fa(h,D,b,M);default:return b.indexOf("-")===-1&&typeof D.is!="string"?Fa(h,D,b,M):yi(h,D,b,M)}}var Mo="</",bi=">";function dr(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(Mo,b,bi)}}function Na(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="',os='"></template>';function yn(h,b,D){c(h,ia),c(h,b.placeholderPrefix);var M=D.toString(16);return c(h,M),d(h,os)}var Lo="<!--$-->",wi='<!--$?--><template id="',as='"></template>',ho="<!--$!-->",er="<!--/$-->",f="<template",v='"',C=' data-dgst="',O=' data-msg="',N=' data-stck="',B="></template>";function H(h,b){return d(h,Lo)}function le(h,b,D){if(c(h,wi),D===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return c(h,D),d(h,as)}function oe(h,b,D,M,Y){var ie;return ie=d(h,ho),c(h,f),D&&(c(h,C),c(h,mn(D)),c(h,v)),M&&(c(h,O),c(h,mn(M)),c(h,v)),Y&&(c(h,N),c(h,mn(Y)),c(h,v)),ie=d(h,B),ie}function we(h,b){return d(h,er)}function Le(h,b){return d(h,er)}function Ne(h,b){return d(h,er)}var Ce='<div hidden id="',Ye='">',ct="</div>",Pt='<svg aria-hidden="true" style="display:none" id="',It='">',Mn="</svg>",dn='<math aria-hidden="true" style="display:none" id="',Br='">',$r="</math>",Wt='<table hidden id="',Vr='">',zt="</table>",on='<table hidden><tbody id="',po='">',go="</tbody></table>",Er='<table hidden><tr id="',k='">',F="</tr></table>",z='<table hidden><colgroup id="',te='">',Se="</colgroup></table>";function Te(h,b,D,M){switch(D.insertionMode){case Sr:case Ir:return c(h,Ce),c(h,b.segmentPrefix),c(h,M.toString(16)),d(h,Ye);case Qr:return c(h,Pt),c(h,b.segmentPrefix),c(h,M.toString(16)),d(h,It);case Ar:return c(h,dn),c(h,b.segmentPrefix),c(h,M.toString(16)),d(h,Br);case Wn:return c(h,Wt),c(h,b.segmentPrefix),c(h,M.toString(16)),d(h,Vr);case vn:return c(h,on),c(h,b.segmentPrefix),c(h,M.toString(16)),d(h,po);case Mr:return c(h,Er),c(h,b.segmentPrefix),c(h,M.toString(16)),d(h,k);case Tr:return c(h,z),c(h,b.segmentPrefix),c(h,M.toString(16)),d(h,te);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}function Be(h,b){switch(b.insertionMode){case Sr:case Ir:return d(h,ct);case Qr:return d(h,Mn);case Ar:return d(h,$r);case Wn:return d(h,zt);case vn:return d(h,go);case Mr:return d(h,F);case Tr:return d(h,Se);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var Qe="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=Qe+';$RS("',Ct='$RS("',Bn='","',Tn='")<\/script>';function Yn(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,Bn),c(h,b.placeholderPrefix),c(h,M),d(h,Tn)}var oa=xt+';$RC("',ss='$RC("',aa='","',ii='")<\/script>';function Hs(h,b,D,M){if(c(h,b.startInlineScript),b.sentCompleteBoundaryFunction?c(h,ss):(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 vo=Nt+';$RX("',us='$RX("',sa='"',xi=")<\/script>",Gi=",";function Us(h,b,D,M,Y,ie){if(c(h,b.startInlineScript),b.sentClientRenderFunction?c(h,us):(b.sentClientRenderFunction=!0,c(h,vo)),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,Gi),c(h,ua(M||""))),(Y||ie)&&(c(h,Gi),c(h,ua(Y||""))),ie&&(c(h,Gi),c(h,ua(ie))),d(h,xi)}var Ml=/[<\u2028\u2029]/g;function ua(h){var b=JSON.stringify(h);return b.replace(Ml,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 mo(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 hr(){return{insertionMode:Ir,selectedValue:null}}function Ws(h,b,D,M){return D.generateStaticMarkup?(h.push(mn(b)),!1):Ui(h,b,D,M)}function ls(h,b,D,M){if(!b.generateStaticMarkup)return _n(h,b,D,M)}function cs(h,b){return b.generateStaticMarkup?!0:H(h)}function ee(h,b,D,M,Y){return b.generateStaticMarkup?!0:oe(h,b,D,M,Y)}function me(h,b){return b.generateStaticMarkup?!0:we(h)}function De(h,b){return b.generateStaticMarkup?!0:Ne(h)}var Ee=Object.assign,Z=Symbol.for("react.element"),he=Symbol.for("react.portal"),de=Symbol.for("react.fragment"),$e=Symbol.for("react.strict_mode"),We=Symbol.for("react.profiler"),ft=Symbol.for("react.provider"),dt=Symbol.for("react.context"),lt=Symbol.for("react.forward_ref"),At=Symbol.for("react.suspense"),kt=Symbol.for("react.suspense_list"),Yt=Symbol.for("react.memo"),Ln=Symbol.for("react.lazy"),ar=Symbol.for("react.scope"),Gn=Symbol.for("react.debug_trace_mode"),Hr=Symbol.for("react.legacy_hidden"),qi=Symbol.for("react.default_value"),Mt=Symbol.iterator,Uc="@@iterator";function Dn(h){if(h===null||typeof h!="object")return null;var b=Mt&&h[Mt]||h[Uc];return typeof b=="function"?b:null}function la(h,b,D){var M=h.displayName;if(M)return M;var Y=b.displayName||b.name||"";return Y!==""?D+"("+Y+")":D}function Ll(h){return h.displayName||"Context"}function Pn(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 de:return"Fragment";case he:return"Portal";case We:return"Profiler";case $e:return"StrictMode";case At:return"Suspense";case kt:return"SuspenseList"}if(typeof h=="object")switch(h.$$typeof){case dt:var b=h;return Ll(b)+".Consumer";case ft:var D=h;return Ll(D._context)+".Provider";case lt:return la(h,h.render,"ForwardRef");case Yt:var M=h.displayName||null;return M!==null?M:Pn(h.type)||"Memo";case Ln:{var Y=h,ie=Y._payload,fe=Y._init;try{return Pn(fe(ie))}catch{return null}}}return null}var fs=0,ds,yo,hs,Nu,ps,Fl,Nl;function ja(){}ja.__reactDisabledLog=!0;function ju(){{if(fs===0){ds=console.log,yo=console.info,hs=console.warn,Nu=console.error,ps=console.group,Fl=console.groupCollapsed,Nl=console.groupEnd;var h={configurable:!0,enumerable:!0,value:ja,writable:!0};Object.defineProperties(console,{info:h,log:h,warn:h,error:h,group:h,groupCollapsed:h,groupEnd:h})}fs++}}function Fo(){{if(fs--,fs===0){var h={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Ee({},h,{value:ds}),info:Ee({},h,{value:yo}),warn:Ee({},h,{value:hs}),error:Ee({},h,{value:Nu}),group:Ee({},h,{value:ps}),groupCollapsed:Ee({},h,{value:Fl}),groupEnd:Ee({},h,{value:Nl})})}fs<0&&i("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Xi=n.ReactCurrentDispatcher,No;function zs(h,b,D){{if(No===void 0)try{throw Error()}catch(Y){var M=Y.stack.trim().match(/\n( *(at )?)/);No=M&&M[1]||""}return`
74
- `+No+h}}var Ys=!1,Bu;{var Gs=typeof WeakMap=="function"?WeakMap:Map;Bu=new Gs}function gs(h,b){if(!h||Ys)return"";{var D=Bu.get(h);if(D!==void 0)return D}var M;Ys=!0;var Y=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ie;ie=Xi.current,Xi.current=null,ju();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(qn){M=qn}Reflect.construct(h,[],fe)}else{try{fe.call()}catch(qn){M=qn}h.call(fe.prototype)}}else{try{throw Error()}catch(qn){M=qn}h()}}catch(qn){if(qn&&M&&typeof qn.stack=="string"){for(var Ie=qn.stack.split(`
75
- `),Ze=M.stack.split(`
76
- `),ht=Ie.length-1,St=Ze.length-1;ht>=1&&St>=0&&Ie[ht]!==Ze[St];)St--;for(;ht>=1&&St>=0;ht--,St--)if(Ie[ht]!==Ze[St]){if(ht!==1||St!==1)do if(ht--,St--,St<0||Ie[ht]!==Ze[St]){var _t=`
77
- `+Ie[ht].replace(" at new "," at ");return h.displayName&&_t.includes("<anonymous>")&&(_t=_t.replace("<anonymous>",h.displayName)),typeof h=="function"&&Bu.set(h,_t),_t}while(ht>=1&&St>=0);break}}}finally{Ys=!1,Xi.current=ie,Fo(),Error.prepareStackTrace=Y}var Cn=h?h.displayName||h.name:"",sr=Cn?zs(Cn):"";return typeof h=="function"&&Bu.set(h,sr),sr}function qs(h,b,D){return gs(h,!0)}function jl(h,b,D){return gs(h,!1)}function Bl(h){var b=h.prototype;return!!(b&&b.isReactComponent)}function vs(h,b,D){if(h==null)return"";if(typeof h=="function")return gs(h,Bl(h));if(typeof h=="string")return zs(h);switch(h){case At:return zs("Suspense");case kt:return zs("SuspenseList")}if(typeof h=="object")switch(h.$$typeof){case lt:return jl(h.render);case Yt:return vs(h.type,b,D);case Ln:{var M=h,Y=M._payload,ie=M._init;try{return vs(ie(Y),b,D)}catch{}}}return""}var $l={},Fn=n.ReactDebugCurrentFrame;function Nn(h){if(h){var b=h._owner,D=vs(h.type,h._source,b?b.type:null);Fn.setExtraStackFrame(D)}else Fn.setExtraStackFrame(null)}function Vl(h,b,D,M,Y){{var ie=Function.call.bind(Q);for(var fe in h)if(ie(h,fe)){var Ie=void 0;try{if(typeof h[fe]!="function"){var Ze=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 Ze.name="Invariant Violation",Ze}Ie=h[fe](b,fe,M,D,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ht){Ie=ht}Ie&&!(Ie instanceof Error)&&(Nn(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),Nn(null)),Ie instanceof Error&&!(Ie.message in $l)&&($l[Ie.message]=!0,Nn(Y),i("Failed %s type: %s",D,Ie.message),Nn(null))}}}var Hl;Hl={};var jo={};Object.freeze(jo);function Wc(h,b){{var D=h.contextTypes;if(!D)return jo;var M={};for(var Y in D)M[Y]=b[Y];{var ie=Pn(h)||"Unknown";Vl(D,M,"context",ie)}return M}}function Bo(h,b,D,M){{if(typeof h.getChildContext!="function"){{var Y=Pn(b)||"Unknown";Hl[Y]||(Hl[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((Pn(b)||"Unknown")+'.getChildContext(): key "'+fe+'" is not defined in childContextTypes.');{var Ie=Pn(b)||"Unknown";Vl(M,ie,"child context",Ie)}return Ee({},D,ie)}}var Ki;Ki={};var Xs=null,Ur=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 Ks(h){var b=h.parent;b!==null&&Ks(b),fa(h)}function zc(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):zc(D,b)}function Yc(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):Yc(h,D),fa(b)}function $u(h){var b=Ur,D=h;b!==D&&(b===null?Ks(D):D===null?ha(b):b.depth===D.depth?da(b,D):b.depth>D.depth?zc(b,D):Yc(b,D),Ur=D)}function Zs(h,b){var D;D=h._currentValue2,h._currentValue2=b,h._currentRenderer2!==void 0&&h._currentRenderer2!==null&&h._currentRenderer2!==Ki&&i("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),h._currentRenderer2=Ki;var M=Ur,Y={parent:M,depth:M===null?0:M.depth+1,context:h,parentValue:D,value:b};return Ur=Y,Y}function ms(h){var b=Ur;if(b===null)throw new Error("Tried to pop a Context at the root of the app. This is a bug in React.");b.context!==h&&i("The parent context is not the expected context. This is probably a bug in React.");{var D=b.parentValue;D===qi?b.context._currentValue2=b.context._defaultValue:b.context._currentValue2=D,h._currentRenderer2!==void 0&&h._currentRenderer2!==null&&h._currentRenderer2!==Ki&&i("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),h._currentRenderer2=Ki}return Ur=b.parent}function Js(){return Ur}function Ba(h){var b=h._currentValue2;return b}function G(h){return h._reactInternals}function pa(h,b){h._reactInternals=b}var $a={},Wr={},qt,Vu,ys,Qs,bo,bs,Hu,Uu,Wu;{qt=new Set,Vu=new Set,ys=new Set,Hu=new Set,Qs=new Set,Uu=new Set,Wu=new Set;var Gc=new Set;bs=function(h,b){if(!(h===null||typeof h=="function")){var D=b+"_"+h;Gc.has(D)||(Gc.add(D),i("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",b,h))}},bo=function(h,b){if(b===void 0){var D=Pn(h)||"Component";Qs.has(D)||(Qs.add(D),i("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",D))}}}function wo(h,b){{var D=h.constructor,M=D&&Pn(D)||"ReactClass",Y=M+"."+b;if($a[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),$a[Y]=!0}}var qc={isMounted:function(h){return!1},enqueueSetState:function(h,b,D){var M=G(h);M.queue===null?wo(h,"setState"):(M.queue.push(b),D!=null&&bs(D,"setState"))},enqueueReplaceState:function(h,b,D){var M=G(h);M.replace=!0,M.queue=[b],D!=null&&bs(D,"setState")},enqueueForceUpdate:function(h,b){var D=G(h);D.queue===null?wo(h,"forceUpdate"):b!=null&&bs(b,"setState")}};function $f(h,b,D,M,Y){var ie=D(Y,M);bo(b,ie);var fe=ie==null?M:Ee({},M,ie);return fe}function Vf(h,b,D){var M=jo,Y=h.contextType;if("contextType"in h){var ie=Y===null||Y!==void 0&&Y.$$typeof===dt&&Y._context===void 0;if(!ie&&!Wu.has(h)){Wu.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",Pn(h)||"Component",fe)}}typeof Y=="object"&&Y!==null?M=Ba(Y):M=D;var Ie=new h(b,M);{if(typeof h.getDerivedStateFromProps=="function"&&(Ie.state===null||Ie.state===void 0)){var Ze=Pn(h)||"Component";qt.has(Ze)||(qt.add(Ze),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.",Ze,Ie.state===null?"null":"undefined",Ze))}if(typeof h.getDerivedStateFromProps=="function"||typeof Ie.getSnapshotBeforeUpdate=="function"){var ht=null,St=null,_t=null;if(typeof Ie.componentWillMount=="function"&&Ie.componentWillMount.__suppressDeprecationWarning!==!0?ht="componentWillMount":typeof Ie.UNSAFE_componentWillMount=="function"&&(ht="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?_t="componentWillUpdate":typeof Ie.UNSAFE_componentWillUpdate=="function"&&(_t="UNSAFE_componentWillUpdate"),ht!==null||St!==null||_t!==null){var Cn=Pn(h)||"Component",sr=typeof h.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";ys.has(Cn)||(ys.add(Cn),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`,Cn,sr,ht!==null?`
85
- `+ht:"",St!==null?`
86
- `+St:"",_t!==null?`
87
- `+_t:""))}}}return Ie}function Xc(h,b,D){{var M=Pn(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&&!Uu.has(b)&&(Uu.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.",Pn(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"&&!Vu.has(b)&&(Vu.add(b),i("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Pn(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 Hf(h,b){var D=b.state;if(typeof b.componentWillMount=="function"){if(b.componentWillMount.__suppressDeprecationWarning!==!0){var M=Pn(h)||"Unknown";Wr[M]||(r(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
88
-
89
- * Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.
90
-
91
- Please update the following components: %s`,M),Wr[M]=!0)}b.componentWillMount()}typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount(),D!==b.state&&(i("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Pn(h)||"Component"),qc.enqueueReplaceState(b,b.state,null))}function $o(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,Ze=ie?1:0;Ze<Y.length;Ze++){var ht=Y[Ze],St=typeof ht=="function"?ht.call(b,fe,D,M):ht;St!=null&&(Ie?(Ie=!1,fe=Ee({},fe,St)):Ee(fe,St))}b.state=fe}}else h.queue=null}function zu(h,b,D,M){Xc(h,b,D);var Y=h.state!==void 0?h.state:null;h.updater=qc,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=Ba(fe):h.context=M,h.state===D){var Ie=Pn(b)||"Component";Hu.has(Ie)||(Hu.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 Ze=b.getDerivedStateFromProps;typeof Ze=="function"&&(h.state=$f(h,b,Ze,Y,D)),typeof b.getDerivedStateFromProps!="function"&&typeof h.getSnapshotBeforeUpdate!="function"&&(typeof h.UNSAFE_componentWillMount=="function"||typeof h.componentWillMount=="function")&&(Hf(b,h),$o(ie,h,D,M))}var Yu={id:1,overflow:""};function Uf(h){var b=h.overflow,D=h.id,M=D&~Va(D);return M.toString(32)+b}function Ul(h,b,D){var M=h.id,Y=h.overflow,ie=Gu(M)-1,fe=M&~(1<<ie),Ie=D+1,Ze=Gu(b)+ie;if(Ze>30){var ht=ie-ie%5,St=(1<<ht)-1,_t=(fe&St).toString(32),Cn=fe>>ht,sr=ie-ht,qn=Gu(b)+sr,cc=Ie<<sr,fc=cc|Cn,uf=_t+Y;return{id:1<<qn|fc,overflow:uf}}else{var vu=Ie<<ie,sg=vu|fe,ug=Y;return{id:1<<Ze|sg,overflow:ug}}}function Gu(h){return 32-Wf(h)}function Va(h){return 1<<Gu(h)-1}var Wf=Math.clz32?Math.clz32:Vo,zf=Math.log,Zi=Math.LN2;function Vo(h){var b=h>>>0;return b===0?32:31-(zf(b)/Zi|0)|0}function Wl(h,b){return h===b&&(h!==0||1/h===1/b)||h!==h&&b!==b}var qu=typeof Object.is=="function"?Object.is:Wl,nn=null,Ha=null,ga=null,un=null,Oi=!1,Ua=!1,ws=0,$n=null,Di=0,Wa=25,Ji=!1,za;function pr(){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 Ji&&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 zl(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.",za),!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`,za,"["+h.join(", ")+"]","["+b.join(", ")+"]");for(var D=0;D<b.length&&D<h.length;D++)if(!qu(h[D],b[D]))return!1;return!0}function va(){if(Di>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function zr(){return un===null?ga===null?(Oi=!1,ga=un=va()):(Oi=!0,un=ga):un.next===null?(Oi=!1,un=un.next=va()):(Oi=!0,un=un.next),un}function Yl(h,b){nn=b,Ha=h,Ji=!1,ws=0}function Kc(h,b,D,M){for(;Ua;)Ua=!1,ws=0,Di+=1,un=null,D=h(b,M);return Ho(),D}function Gl(){var h=ws!==0;return h}function Ho(){Ji=!1,nn=null,Ha=null,Ua=!1,ga=null,Di=0,$n=null,un=null}function ma(h){return Ji&&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()."),Ba(h)}function ql(h){return za="useContext",pr(),Ba(h)}function Xu(h,b){return typeof b=="function"?b(h):b}function Ku(h){return za="useState",Zc(Xu,h)}function Zc(h,b,D){if(h!==Xu&&(za="useReducer"),nn=pr(),un=zr(),Oi){var M=un.queue,Y=M.dispatch;if($n!==null){var ie=$n.get(M);if(ie!==void 0){$n.delete(M);var fe=un.memoizedState,Ie=ie;do{var Ze=Ie.action;Ji=!0,fe=h(fe,Ze),Ji=!1,Ie=Ie.next}while(Ie!==null);return un.memoizedState=fe,[fe,Y]}}return[un.memoizedState,Y]}else{Ji=!0;var ht;h===Xu?ht=typeof b=="function"?b():b:ht=D!==void 0?D(b):b,Ji=!1,un.memoizedState=ht;var St=un.queue={last:null,dispatch:null},_t=St.dispatch=Jc.bind(null,nn,St);return[un.memoizedState,_t]}}function Xl(h,b){nn=pr(),un=zr();var D=b===void 0?null:b;if(un!==null){var M=un.memoizedState;if(M!==null&&D!==null){var Y=M[1];if(zl(D,Y))return M[0]}}Ji=!0;var ie=h();return Ji=!1,un.memoizedState=[ie,D],ie}function gr(h){nn=pr(),un=zr();var b=un.memoizedState;if(b===null){var D={current:h};return Object.seal(D),un.memoizedState=D,D}else return b}function Kl(h,b){za="useLayoutEffect",i("useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output format. This will lead to a mismatch between the initial, non-hydrated UI and the intended UI. To avoid this, useLayoutEffect should only be used in components that render exclusively on the client. See https://reactjs.org/link/uselayouteffect-ssr for common fixes.")}function Jc(h,b,D){if(Di>=Wa)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(h===nn){Ua=!0;var M={action:D,next:null};$n===null&&($n=new Map);var Y=$n.get(b);if(Y===void 0)$n.set(b,M);else{for(var ie=Y;ie.next!==null;)ie=ie.next;ie.next=M}}}function xo(h,b){return Xl(function(){return h},b)}function Zl(h,b,D){return pr(),b(h._source)}function Zu(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 Ya(h){return pr(),h}function eu(){throw new Error("startTransition cannot be called during server rendering.")}function kr(){return pr(),[!1,eu]}function tu(){var h=Ha,b=Uf(h.treeContext),D=ru;if(D===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var M=ws++;return Jn(D,b,M)}function nu(){}var Qc={readContext:ma,useContext:ql,useMemo:Xl,useReducer:Zc,useRef:gr,useState:Ku,useInsertionEffect:nu,useLayoutEffect:Kl,useCallback:xo,useImperativeHandle:nu,useEffect:nu,useDebugValue:nu,useDeferredValue:Ya,useTransition:kr,useId:tu,useMutableSource:Zl,useSyncExternalStore:Zu},ru=null;function xs(h){ru=h}function Jl(h){try{var b="",D=h;do{switch(D.tag){case 0:b+=zs(D.type,null,null);break;case 1:b+=jl(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 Pi=n.ReactCurrentDispatcher,iu=n.ReactDebugCurrentFrame,Ju=0,Ga=1,Ss=2,Ql=3,qa=4,ec=0,tc=1,So=2,Yf=12800;function Gf(h){return console.error(h),null}function Ts(){}function ou(h,b,D,M,Y,ie,fe,Ie,Ze){var ht=[],St=new Set,_t={destination:null,responseState:b,progressiveChunkSize:M===void 0?Yf:M,status:ec,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:St,pingedTasks:ht,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:Y===void 0?Gf:Y,onAllReady:ie===void 0?Ts:ie,onShellReady:fe===void 0?Ts:fe,onShellError:Ie===void 0?Ts:Ie,onFatalError:Ze===void 0?Ts:Ze},Cn=Uo(_t,0,null,D,!1,!1);Cn.parentFlushed=!0;var sr=Cs(_t,h,null,Cn,St,jo,Xs,Yu);return ht.push(sr),_t}function Qu(h,b){var D=h.pingedTasks;D.push(b),D.length===1&&s(function(){return lc(h)})}function Qi(h,b){return{id:Lr,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:b,errorDigest:null}}function Cs(h,b,D,M,Y,ie,fe,Ie){h.allPendingTasks++,D===null?h.pendingRootTasks++:D.pendingTasks++;var Ze={node:b,ping:function(){return Qu(h,Ze)},blockedBoundary:D,blockedSegment:M,abortSet:Y,legacyContext:ie,context:fe,treeContext:Ie};return Ze.componentStack=null,Y.add(Ze),Ze}function Uo(h,b,D,M,Y,ie){return{status:Ju,id:-1,index:b,parentFlushed:!1,chunks:[],children:[],formatContext:M,boundary:D,lastPushedText:Y,textEmbedded:ie}}var eo=null;function Es(){return eo===null||eo.componentStack===null?"":Jl(eo.componentStack)}function _i(h,b){h.componentStack={tag:0,parent:h.componentStack,type:b}}function Xa(h,b){h.componentStack={tag:1,parent:h.componentStack,type:b}}function el(h,b){h.componentStack={tag:2,parent:h.componentStack,type:b}}function Ri(h){h.componentStack===null?i("Unexpectedly popped too many stack frames. This is a bug in React."):h.componentStack=h.componentStack.parent}var Wo=null;function nc(h,b){{var D;typeof b=="string"?D=b:b&&typeof b.message=="string"?D=b.message:D=String(b);var M=Wo||Es();Wo=null,h.errorMessage=D,h.errorComponentStack=M}}function Ka(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 au(h,b){var D=h.onShellError;D(b);var M=h.onFatalError;M(b),h.destination!==null?(h.status=So,_(h.destination,b)):(h.status=tc,h.fatalError=b)}function tl(h,b,D){_i(b,"Suspense");var M=b.blockedBoundary,Y=b.blockedSegment,ie=D.fallback,fe=D.children,Ie=new Set,Ze=Qi(h,Ie),ht=Y.chunks.length,St=Uo(h,ht,Ze,Y.formatContext,!1,!1);Y.children.push(St),Y.lastPushedText=!1;var _t=Uo(h,0,null,Y.formatContext,!1,!1);_t.parentFlushed=!0,b.blockedBoundary=Ze,b.blockedSegment=_t;try{if(to(h,b,fe),ls(_t.chunks,h.responseState,_t.lastPushedText,_t.textEmbedded),_t.status=Ga,hu(Ze,_t),Ze.pendingTasks===0){Ri(b);return}}catch(sr){_t.status=qa,Ze.forceClientRender=!0,Ze.errorDigest=Ka(h,sr),nc(Ze,sr)}finally{b.blockedBoundary=M,b.blockedSegment=Y}var Cn=Cs(h,ie,M,St,Ie,b.legacyContext,b.context,b.treeContext);Cn.componentStack=b.componentStack,h.pingedTasks.push(Cn),Ri(b)}function ef(h,b,D,M){_i(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=vi(fe,D,M),to(h,b,ie),Y.formatContext=fe,dr(Y.chunks,D),Y.lastPushedText=!1,Ri(b)}function rc(h){return h.prototype&&h.prototype.isReactComponent}function Gt(h,b,D,M,Y){var ie={};Yl(b,ie);var fe=D(M,Y);return Kc(D,M,fe,Y)}function su(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.",Pn(M)||"a component"),oi=!0);{var fe=M.childContextTypes;if(fe!=null){var Ie=b.legacyContext,Ze=Bo(D,M,Ie,fe);b.legacyContext=Ze,Yr(h,b,ie),b.legacyContext=Ie;return}}Yr(h,b,ie)}function tf(h,b,D,M){el(b,D);var Y=Wc(D,b.legacyContext),ie=Vf(D,M,Y);zu(ie,D,M,Y),su(h,b,ie,D,M),Ri(b)}var Za={},ks={},ic={},oc={},oi=!1,nf=!1,uu=!1,lu=!1;function rf(h,b,D,M){var Y;if(Y=Wc(D,b.legacyContext),Xa(b,D),D.prototype&&typeof D.prototype.render=="function"){var ie=Pn(D)||"Unknown";Za[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),Za[ie]=!0)}var fe=Gt(h,b,D,M,Y),Ie=Gl();if(typeof fe=="object"&&fe!==null&&typeof fe.render=="function"&&fe.$$typeof===void 0){var Ze=Pn(D)||"Unknown";ks[Ze]||(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.",Ze,Ze,Ze),ks[Ze]=!0)}if(typeof fe=="object"&&fe!==null&&typeof fe.render=="function"&&fe.$$typeof===void 0){{var ht=Pn(D)||"Unknown";ks[ht]||(i("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",ht,ht,ht),ks[ht]=!0)}zu(fe,D,M,Y),su(h,b,fe,D,M)}else if(of(D),Ie){var St=b.treeContext,_t=1,Cn=0;b.treeContext=Ul(St,_t,Cn);try{Yr(h,b,fe)}finally{b.treeContext=St}}else Yr(h,b,fe);Ri(b)}function of(h){{if(h&&h.childContextTypes&&i("%s(...): childContextTypes cannot be defined on a function component.",h.displayName||h.name||"Component"),typeof h.getDerivedStateFromProps=="function"){var b=Pn(h)||"Unknown";oc[b]||(i("%s: Function components do not support getDerivedStateFromProps.",b),oc[b]=!0)}if(typeof h.contextType=="object"&&h.contextType!==null){var D=Pn(h)||"Unknown";ic[D]||(i("%s: Function components do not support contextType.",D),ic[D]=!0)}}}function ai(h,b){if(h&&h.defaultProps){var D=Ee({},b),M=h.defaultProps;for(var Y in M)D[Y]===void 0&&(D[Y]=M[Y]);return D}return b}function ya(h,b,D,M,Y){Xa(b,D.render);var ie=Gt(h,b,D.render,M,Y),fe=Gl();if(fe){var Ie=b.treeContext,Ze=1,ht=0;b.treeContext=Ul(Ie,Ze,ht);try{Yr(h,b,ie)}finally{b.treeContext=Ie}}else Yr(h,b,ie);Ri(b)}function ac(h,b,D,M,Y){var ie=D.type,fe=ai(ie,M);cu(h,b,ie,fe,Y)}function nl(h,b,D,M){D._context===void 0?D!==D.Consumer&&(lu||(lu=!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=Ba(D),fe=Y(ie);Yr(h,b,fe)}function rl(h,b,D,M){var Y=D._context,ie=M.value,fe=M.children,Ie;Ie=b.context,b.context=Zs(Y,ie),Yr(h,b,fe),b.context=ms(Y),Ie!==b.context&&i("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function si(h,b,D,M,Y){_i(b,"Lazy");var ie=D._payload,fe=D._init,Ie=fe(ie),Ze=ai(Ie,M);cu(h,b,Ie,Ze,Y),Ri(b)}function cu(h,b,D,M,Y){if(typeof D=="function")if(rc(D)){tf(h,b,D,M);return}else{rf(h,b,D,M);return}if(typeof D=="string"){ef(h,b,D,M);return}switch(D){case Hr:case Gn:case $e:case We:case de:{Yr(h,b,M.children);return}case kt:{_i(b,"SuspenseList"),Yr(h,b,M.children),Ri(b);return}case ar:throw new Error("ReactDOMServer does not yet support scope components.");case At:{tl(h,b,M);return}}if(typeof D=="object"&&D!==null)switch(D.$$typeof){case lt:{ya(h,b,D,M,Y);return}case Yt:{ac(h,b,D,M,Y);return}case ft:{rl(h,b,D,M);return}case dt:{nl(h,b,D,M);return}case Ln:{si(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 sc(h,b){typeof Symbol=="function"&&h[Symbol.toStringTag]==="Generator"&&(nf||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."),nf=!0),h.entries===b&&(uu||i("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),uu=!0)}function Yr(h,b,D){try{return fu(h,b,D)}catch(M){throw typeof M=="object"&&M!==null&&typeof M.then=="function"||(Wo=Wo!==null?Wo:Es()),M}}function fu(h,b,D){if(b.node=D,typeof D=="object"&&D!==null){switch(D.$$typeof){case Z:{var M=D,Y=M.type,ie=M.props,fe=M.ref;cu(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 Ln:{var Ie=D,Ze=Ie._payload,ht=Ie._init,St;try{St=ht(Ze)}catch(vu){throw typeof vu=="object"&&vu!==null&&typeof vu.then=="function"&&_i(b,"Lazy"),vu}Yr(h,b,St);return}}if(Zr(D)){zo(h,b,D);return}var _t=Dn(D);if(_t){sc(D,_t);var Cn=_t.call(D);if(Cn){var sr=Cn.next();if(!sr.done){var qn=[];do qn.push(sr.value),sr=Cn.next();while(!sr.done);zo(h,b,qn);return}return}}var cc=Object.prototype.toString.call(D);throw new Error("Objects are not valid as a React child (found: "+(cc==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":cc)+"). If you meant to render a collection of children, use an array instead.")}if(typeof D=="string"){var fc=b.blockedSegment;fc.lastPushedText=Ws(b.blockedSegment.chunks,D,h.responseState,fc.lastPushedText);return}if(typeof D=="number"){var uf=b.blockedSegment;uf.lastPushedText=Ws(b.blockedSegment.chunks,""+D,h.responseState,uf.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 zo(h,b,D){for(var M=D.length,Y=0;Y<M;Y++){var ie=b.treeContext;b.treeContext=Ul(ie,M,Y);try{to(h,b,D[Y])}finally{b.treeContext=ie}}}function qf(h,b,D){var M=b.blockedSegment,Y=M.chunks.length,ie=Uo(h,Y,null,M.formatContext,M.lastPushedText,!0);M.children.push(ie),M.lastPushedText=!1;var fe=Cs(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 to(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(Ho(),typeof Ie=="object"&&Ie!==null&&typeof Ie.then=="function"){qf(h,b,Ie),b.blockedSegment.formatContext=M,b.legacyContext=Y,b.context=ie,$u(ie),b.componentStack=fe;return}else throw b.blockedSegment.formatContext=M,b.legacyContext=Y,b.context=ie,$u(ie),b.componentStack=fe,Ie}}function du(h,b,D,M){var Y=Ka(h,M);if(b===null?au(h,M):(b.pendingTasks--,b.forceClientRender||(b.forceClientRender=!0,b.errorDigest=Y,nc(b,M),b.parentFlushed&&h.clientRenderedBoundaries.push(b))),h.allPendingTasks--,h.allPendingTasks===0){var ie=h.onAllReady;ie()}}function uc(h){var b=this,D=h.blockedBoundary,M=h.blockedSegment;M.status=Ql,pu(b,D,M)}function il(h,b,D){var M=h.blockedBoundary,Y=h.blockedSegment;if(Y.status=Ql,M===null)b.allPendingTasks--,b.status!==So&&(b.status=So,b.destination!==null&&g(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=eo;eo=h;try{nc(M,ie)}finally{eo=Ie}}M.parentFlushed&&b.clientRenderedBoundaries.push(M)}if(M.fallbackAbortableTasks.forEach(function(ht){return il(ht,b,D)}),M.fallbackAbortableTasks.clear(),b.allPendingTasks--,b.allPendingTasks===0){var Ze=b.onAllReady;Ze()}}}function hu(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===Ga&&hu(h,D)}else{var M=h.completedSegments;M.push(b)}}function pu(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=Ts;var M=h.onShellReady;M()}}else if(b.pendingTasks--,!b.forceClientRender){if(b.pendingTasks===0)D.parentFlushed&&D.status===Ga&&hu(b,D),b.parentFlushed&&h.completedBoundaries.push(b),b.fallbackAbortableTasks.forEach(uc,h),b.fallbackAbortableTasks.clear();else if(D.parentFlushed&&D.status===Ga){hu(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 ol(h,b){var D=b.blockedSegment;if(D.status===Ju){$u(b.context);var M=null;M=eo,eo=b;try{Yr(h,b,b.node),ls(D.chunks,h.responseState,D.lastPushedText,D.textEmbedded),b.abortSet.delete(b),D.status=Ga,pu(h,b.blockedBoundary,D)}catch(ie){if(Ho(),typeof ie=="object"&&ie!==null&&typeof ie.then=="function"){var Y=b.ping;ie.then(Y,Y)}else b.abortSet.delete(b),D.status=qa,du(h,b.blockedBoundary,D,ie)}finally{eo=M}}}function lc(h){if(h.status!==So){var b=Js(),D=Pi.current;Pi.current=Qc;var M;M=iu.getCurrentStack,iu.getCurrentStack=Es;var Y=ru;xs(h.responseState);try{var ie=h.pingedTasks,fe;for(fe=0;fe<ie.length;fe++){var Ie=ie[fe];ol(h,Ie)}ie.splice(0,fe),h.destination!==null&&sl(h,h.destination)}catch(Ze){Ka(h,Ze),au(h,Ze)}finally{xs(Y),Pi.current=D,iu.getCurrentStack=M,D===Qc&&$u(b)}}}function Os(h,b,D){switch(D.parentFlushed=!0,D.status){case Ju:{var M=D.id=h.nextSegmentId++;return D.lastPushedText=!1,D.textEmbedded=!1,yn(b,h.responseState,M)}case Ga:{D.status=Ss;for(var Y=!0,ie=D.chunks,fe=0,Ie=D.children,Ze=0;Ze<Ie.length;Ze++){for(var ht=Ie[Ze];fe<ht.index;fe++)c(b,ie[fe]);Y=gu(h,b,ht)}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 gu(h,b,D){var M=D.boundary;if(M===null)return Os(h,b,D);if(M.parentFlushed=!0,M.forceClientRender)return ee(b,h.responseState,M.errorDigest,M.errorMessage,M.errorComponentStack),Os(h,b,D),De(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),Os(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),Os(h,b,D),Le(b,h.responseState);cs(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 gu(h,b,fe),me(b,h.responseState)}}function af(h,b,D){return Us(b,h.responseState,D.id,D.errorDigest,D.errorMessage,D.errorComponentStack)}function al(h,b,D){return Te(b,h.responseState,D.formatContext,D.id),gu(h,b,D),Be(b,D.formatContext)}function vr(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,Hs(b,h.responseState,D.id,D.rootSegmentID)}function To(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===Ss)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 al(h,b,M)}else return al(h,b,M),Yn(b,h.responseState,Y)}function sl(h,b){try{var D=h.completedRootSegment;D!==null&&h.pendingRootTasks===0&&(gu(h,b,D),h.completedRootSegment=null,Na(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(!vr(h,b,Ie)){h.destination=null,Y++,fe.splice(0,Y);return}}fe.splice(0,Y);var Ze=h.partialBoundaries;for(Y=0;Y<Ze.length;Y++){var ht=Ze[Y];if(!To(h,b,ht)){h.destination=null,Y++,Ze.splice(0,Y);return}}Ze.splice(0,Y);var St=h.completedBoundaries;for(Y=0;Y<St.length;Y++){var _t=St[Y];if(!vr(h,b,_t)){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."),g(b))}}function ul(h){s(function(){return lc(h)})}function p(h,b){if(h.status===tc){h.status=So,_(b,h.fatalError);return}if(h.status!==So&&h.destination===null){h.destination=b;try{sl(h,b)}catch(D){Ka(h,D),au(h,D)}}}function w(h,b){try{var D=h.abortableTasks;D.forEach(function(M){return il(M,h,b)}),D.clear(),h.destination!==null&&sl(h,h.destination)}catch(M){Ka(h,M),au(h,M)}}function A(){}function $(h,b,D,M){var Y=!1,ie=null,fe="",Ie={push:function(_t){return _t!==null&&(fe+=_t),!0},destroy:function(_t){Y=!0,ie=_t}},Ze=!1;function ht(){Ze=!0}var St=ou(h,mo(D,b?b.identifierPrefix:void 0),hr(),1/0,A,void 0,ht,void 0,void 0);if(ul(St),w(St,M),p(St,Ie),Y)throw ie;if(!Ze)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 ge(){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.")}wc.renderToNodeStream=ge,wc.renderToStaticMarkup=ae,wc.renderToStaticNodeStream=Ae,wc.renderToString=K,wc.version=t}()),wc}var $h={};/**
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 n1;function W5(){return n1||(n1=1,process.env.NODE_ENV!=="production"&&function(){var e=J,t="18.2.0",n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(p){{for(var w=arguments.length,A=new Array(w>1?w-1:0),$=1;$<w;$++)A[$-1]=arguments[$];o("warn",p,A)}}function i(p){{for(var w=arguments.length,A=new Array(w>1?w-1:0),$=1;$<w;$++)A[$-1]=arguments[$];o("error",p,A)}}function o(p,w,A){{var $=n.ReactDebugCurrentFrame,K=$.getStackAddendum();K!==""&&(w+="%s",A=A.concat([K]));var ae=A.map(function(ge){return String(ge)});ae.unshift("Warning: "+w),Function.prototype.apply.call(console[p],console,ae)}}function s(p){p()}var l=512,c=null,d=0;function y(p){c=new Uint8Array(l),d=0}function g(p,w){if(w.length!==0){if(w.length>l){d>0&&(p.enqueue(new Uint8Array(c.buffer,0,d)),c=new Uint8Array(l),d=0),p.enqueue(w);return}var A=w,$=c.length-d;$<A.length&&($===0?p.enqueue(c):(c.set(A.subarray(0,$),d),p.enqueue(c),A=A.subarray($)),c=new Uint8Array(l),d=0),c.set(A,d),d+=A.length}}function S(p,w){return g(p,w),!0}function T(p){c&&d>0&&(p.enqueue(new Uint8Array(c.buffer,0,d)),c=null,d=0)}function _(p){p.close()}var I=new TextEncoder;function L(p){return I.encode(p)}function R(p){return I.encode(p)}function U(p,w){typeof p.error=="function"?p.error(w):p.close()}function W(p){{var w=typeof Symbol=="function"&&Symbol.toStringTag,A=w&&p[Symbol.toStringTag]||p.constructor.name||"Object";return A}}function ne(p){try{return Q(p),!1}catch{return!0}}function Q(p){return""+p}function pe(p,w){if(ne(p))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(p)),Q(p)}function x(p,w){if(ne(p))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(p)),Q(p)}function ce(p){if(ne(p))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(p)),Q(p)}var se=Object.prototype.hasOwnProperty,je=0,qe=1,Xe=2,rt=3,nt=4,ye=5,Pe=6,Ue=":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",Je=Ue+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",st=new RegExp("^["+Ue+"]["+Je+"]*$"),ke={},_e={};function Ve(p){return se.call(_e,p)?!0:se.call(ke,p)?!1:st.test(p)?(_e[p]=!0,!0):(ke[p]=!0,i("Invalid attribute name: `%s`",p),!1)}function He(p,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=p.toLowerCase().slice(0,5);return K!=="data-"&&K!=="aria-"}default:return!1}}function Re(p){return ze.hasOwnProperty(p)?ze[p]:null}function Fe(p,w,A,$,K,ae,ge){this.acceptsBooleans=w===Xe||w===rt||w===nt,this.attributeName=$,this.attributeNamespace=K,this.mustUseProperty=A,this.propertyName=p,this.type=w,this.sanitizeURL=ae,this.removeEmptyString=ge}var ze={},ut=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];ut.forEach(function(p){ze[p]=new Fe(p,je,!1,p,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(p){var w=p[0],A=p[1];ze[w]=new Fe(w,qe,!1,A,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(p){ze[p]=new Fe(p,Xe,!1,p.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(p){ze[p]=new Fe(p,Xe,!1,p,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(p){ze[p]=new Fe(p,rt,!1,p.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(p){ze[p]=new Fe(p,rt,!0,p,null,!1,!1)}),["capture","download"].forEach(function(p){ze[p]=new Fe(p,nt,!1,p,null,!1,!1)}),["cols","rows","size","span"].forEach(function(p){ze[p]=new Fe(p,Pe,!1,p,null,!1,!1)}),["rowSpan","start"].forEach(function(p){ze[p]=new Fe(p,ye,!1,p.toLowerCase(),null,!1,!1)});var mt=/[\-\:]([a-z])/g,wt=function(p){return p[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(p){var w=p.replace(mt,wt);ze[w]=new Fe(w,qe,!1,p,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(p){var w=p.replace(mt,wt);ze[w]=new Fe(w,qe,!1,p,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(p){var w=p.replace(mt,wt);ze[w]=new Fe(w,qe,!1,p,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(p){ze[p]=new Fe(p,qe,!1,p.toLowerCase(),null,!1,!1)});var vt="xlinkHref";ze[vt]=new Fe("xlinkHref",qe,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(p){ze[p]=new Fe(p,qe,!1,p.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 it(p,w){return p+w.charAt(0).toUpperCase()+w.substring(1)}var $t=["Webkit","ms","Moz","O"];Object.keys(Et).forEach(function(p){$t.forEach(function(w){Et[it(w,p)]=Et[p]})});var Ht={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Xn(p,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 br(p,w){if(p.indexOf("-")===-1)return typeof w.is=="string";switch(p){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},kn={},ji=new RegExp("^(aria)-["+Je+"]*$"),Pr=new RegExp("^(aria)[A-Z]["+Je+"]*$");function rr(p,w){{if(se.call(kn,w)&&kn[w])return!0;if(Pr.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),kn[w]=!0,!0;if(w!==$)return i("Invalid ARIA attribute `%s`. Did you mean `%s`?",w,$),kn[w]=!0,!0}if(ji.test(w)){var K=w.toLowerCase(),ae=Kn.hasOwnProperty(K)?K:null;if(ae==null)return kn[w]=!0,!1;if(w!==ae)return i("Unknown ARIA attribute `%s`. Did you mean `%s`?",w,ae),kn[w]=!0,!0}}return!0}function cn(p,w){{var A=[];for(var $ in w){var K=rr(p,$);K||A.push($)}var ae=A.map(function(ge){return"`"+ge+"`"}).join(", ");A.length===1?i("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",ae,p):A.length>1&&i("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",ae,p)}}function hn(p,w){br(p,w)||cn(p,w)}var pn=!1;function gt(p,w){{if(p!=="input"&&p!=="textarea"&&p!=="select")return;w!=null&&w.value===null&&!pn&&(pn=!0,p==="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.",p):i("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",p))}}var Rn={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},ci=function(){};{var ln={},Bi=/^on./,$i=/^on[^A-Z]/,Vi=new RegExp("^(aria)-["+Je+"]*$"),_r=new RegExp("^(aria)[A-Z]["+Je+"]*$");ci=function(p,w,A,$){if(se.call(ln,w)&&ln[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."),ln[w]=!0,!0;if($!=null){var ae=$.registrationNameDependencies,ge=$.possibleRegistrationNames;if(ae.hasOwnProperty(w))return!0;var Ae=ge.hasOwnProperty(K)?ge[K]:null;if(Ae!=null)return i("Invalid event handler property `%s`. Did you mean `%s`?",w,Ae),ln[w]=!0,!0;if(Bi.test(w))return i("Unknown event handler property `%s`. It will be ignored.",w),ln[w]=!0,!0}else if(Bi.test(w))return $i.test(w)&&i("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",w),ln[w]=!0,!0;if(Vi.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`."),ln[w]=!0,!0;if(K==="aria")return i("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),ln[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),ln[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),ln[w]=!0,!0;var h=Re(w),b=h!==null&&h.type===je;if(Rn.hasOwnProperty(K)){var D=Rn[K];if(D!==w)return i("Invalid DOM property `%s`. Did you mean `%s`?",w,D),ln[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),ln[w]=!0,!0;return typeof A=="boolean"&&He(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),ln[w]=!0,!0):b?!0:He(w,A,h,!1)?(ln[w]=!0,!1):((A==="false"||A==="true")&&h!==null&&h.type===rt&&(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),ln[w]=!0),!0)}}var Un=function(p,w,A){{var $=[];for(var K in w){var ae=ci(p,K,w[K],A);ae||$.push(K)}var ge=$.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 ",ge,p):$.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 ",ge,p)}};function Rr(p,w,A){br(p,w)||Un(p,w,A)}var wr=function(){};{var qr=/^(?:webkit|moz|o)[A-Z]/,Xr=/^-ms-/,Po=/-(.)/g,Zn=/;\s*$/,Kr={},ir={},Zt=!1,fi=!1,Hi=function(p){return p.replace(Po,function(w,A){return A.toUpperCase()})},In=function(p){Kr.hasOwnProperty(p)&&Kr[p]||(Kr[p]=!0,i("Unsupported style property %s. Did you mean %s?",p,Hi(p.replace(Xr,"ms-"))))},gn=function(p){Kr.hasOwnProperty(p)&&Kr[p]||(Kr[p]=!0,i("Unsupported vendor-prefixed style property %s. Did you mean %s?",p,p.charAt(0).toUpperCase()+p.slice(1)))},di=function(p,w){ir.hasOwnProperty(w)&&ir[w]||(ir[w]=!0,i(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,p,w.replace(Zn,"")))},hi=function(p,w){Zt||(Zt=!0,i("`NaN` is an invalid value for the `%s` css style property.",p))},mn=function(p,w){fi||(fi=!0,i("`Infinity` is an invalid value for the `%s` css style property.",p))};wr=function(p,w){p.indexOf("-")>-1?In(p):qr.test(p)?gn(p):Zn.test(w)&&di(p,w),typeof w=="number"&&(isNaN(w)?hi(p,w):isFinite(w)||mn(p,w))}}var uo=wr,xr=/["'&<>]/;function pi(p){ce(p);var w=""+p,A=xr.exec(w);if(!A)return w;var $,K="",ae,ge=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}ge!==ae&&(K+=w.substring(ge,ae)),ge=ae+1,K+=$}return ge!==ae?K+w.substring(ge,ae):K}function fn(p){return typeof p=="boolean"||typeof p=="number"?""+p:pi(p)}var Si=/([A-Z])/g,Ra=/^ms-/;function Ia(p){return p.replace(Si,"-$1").toLowerCase().replace(Ra,"-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,lo=!1;function co(p){!lo&&Zr.test(p)&&(lo=!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(p)))}var _o=Array.isArray;function Ti(p){return _o(p)}var gi=R("<script>"),Ci=R("<\/script>"),fo=R('<script src="'),Ei=R('<script type="module" src="'),Jr=R('" async=""><\/script>');function Sr(p){return ce(p),(""+p).replace(Ir,Qr)}var Ir=/(<\/|<)(s)(cript)/gi,Qr=function(p,w,A,$){return""+w+(A==="s"?"\\u0073":"\\u0053")+$};function Ar(p,w,A,$,K){var ae=p===void 0?"":p,ge=w===void 0?gi:R('<script nonce="'+fn(w)+'">'),Ae=[];if(A!==void 0&&Ae.push(ge,L(Sr(A)),Ci),$!==void 0)for(var h=0;h<$.length;h++)Ae.push(fo,L(fn($[h])),Jr);if(K!==void 0)for(var b=0;b<K.length;b++)Ae.push(Ei,L(fn(K[b])),Jr);return{bootstrapChunks:Ae,startInlineScript:ge,placeholderPrefix:R(ae+"P:"),segmentPrefix:R(ae+"S:"),boundaryPrefix:ae+"B:",idPrefix:ae,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var Wn=0,vn=1,Mr=2,Tr=3,An=4,vi=5,Lr=6,ei=7;function Jn(p,w){return{insertionMode:p,selectedValue:w}}function ti(p){var w=p==="http://www.w3.org/2000/svg"?Mr:p==="http://www.w3.org/1998/Math/MathML"?Tr:Wn;return Jn(w,null)}function ni(p,w,A){switch(w){case"select":return Jn(vn,A.value!=null?A.value:A.defaultValue);case"svg":return Jn(Mr,null);case"math":return Jn(Tr,null);case"foreignObject":return Jn(vn,null);case"table":return Jn(An,null);case"thead":case"tbody":case"tfoot":return Jn(vi,null);case"colgroup":return Jn(ei,null);case"tr":return Jn(Lr,null)}return p.insertionMode>=An||p.insertionMode===Wn?Jn(vn,null):p}var Ui=null;function _n(p){var w=p.nextSuspenseID++;return R(p.boundaryPrefix+w.toString(16))}function Cr(p,w,A){var $=p.idPrefix,K=":"+$+"R"+w;return A>0&&(K+="H"+A.toString(32)),K+":"}function fr(p){return fn(p)}var Ro=R("<!-- -->");function Wi(p,w,A,$){return w===""?$:($&&p.push(Ro),p.push(L(fr(w))),!0)}function Fr(p,w,A,$){A&&$&&p.push(Ro)}var E=new Map;function j(p){var w=E.get(p);if(w!==void 0)return w;var A=R(fn(Ia(p)));return E.set(p,A),A}var q=R(' style="'),re=R(":"),Oe=R(";");function be(p,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(se.call(A,K)){var ae=A[K];if(!(ae==null||typeof ae=="boolean"||ae==="")){var ge=void 0,Ae=void 0,h=K.indexOf("--")===0;h?(ge=L(fn(K)),x(ae,K),Ae=L(fn((""+ae).trim()))):(uo(K,ae),ge=j(K),typeof ae=="number"?ae!==0&&!se.call(Et,K)?Ae=L(ae+"px"):Ae=L(""+ae):(x(ae,K),Ae=L(fn((""+ae).trim())))),$?($=!1,p.push(q,ge,re,Ae)):p.push(Oe,ge,re,Ae)}}$||p.push(yt)}var Me=R(" "),et=R('="'),yt=R('"'),Tt=R('=""');function bt(p,w,A,$){switch(A){case"style":{be(p,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,ge=L(ae);switch(K.type){case rt:$&&p.push(Me,ge,Tt);return;case nt:$===!0?p.push(Me,ge,Tt):$===!1||p.push(Me,ge,et,L(fn($)),yt);return;case ye:isNaN($)||p.push(Me,ge,et,L(fn($)),yt);break;case Pe:!isNaN($)&&$>=1&&p.push(Me,ge,et,L(fn($)),yt);break;default:K.sanitizeURL&&(pe($,ae),$=""+$,co($)),p.push(Me,ge,et,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}}p.push(Me,L(A),et,L(fn($)),yt)}}}var Ut=R(">"),Qn=R("/>");function zn(p,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&&(ce($),p.push(L(""+$)))}}var On=!1,Nr=!1,or=!1,zi=!1,mi=!1,Yi=!1,jr=!1;function Io(p,w){{var A=p[w];if(A!=null){var $=Ti(A);p.multiple&&!$?i("The `%s` prop supplied to <select> must be an array if `multiple` is true.",w):!p.multiple&&$&&i("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",w)}}}function Vs(p,w,A){Xn("select",w),Io(w,"value"),Io(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),p.push(dr("select"));var $=null,K=null;for(var ae in w)if(se.call(w,ae)){var ge=w[ae];if(ge==null)continue;switch(ae){case"children":$=ge;break;case"dangerouslySetInnerHTML":K=ge;break;case"defaultValue":case"value":break;default:bt(p,A,ae,ge);break}}return p.push(Ut),zn(p,K,$),$}function Aa(p){var w="";return e.Children.forEach(p,function(A){A!=null&&(w+=A,!mi&&typeof A!="string"&&typeof A!="number"&&(mi=!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 Ma=R(' selected=""');function La(p,w,A,$){var K=$.selectedValue;p.push(dr("option"));var ae=null,ge=null,Ae=null,h=null;for(var b in w)if(se.call(w,b)){var D=w[b];if(D==null)continue;switch(b){case"children":ae=D;break;case"selected":Ae=D,jr||(i("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),jr=!0);break;case"dangerouslySetInnerHTML":h=D;break;case"value":ge=D;default:bt(p,A,b,D);break}}if(K!=null){var M;if(ge!==null?(pe(ge,"value"),M=""+ge):(h!==null&&(Yi||(Yi=!0,i("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),M=Aa(ae)),Ti(K))for(var Y=0;Y<K.length;Y++){pe(K[Y],"value");var ie=""+K[Y];if(ie===M){p.push(Ma);break}}else pe(K,"select.value"),""+K===M&&p.push(Ma)}else Ae&&p.push(Ma);return p.push(Ut),zn(p,h,ae),ae}function Fa(p,w,A){Xn("input",w),w.checked!==void 0&&w.defaultChecked!==void 0&&!Nr&&(i("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",w.type),Nr=!0),w.value!==void 0&&w.defaultValue!==void 0&&!On&&(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),On=!0),p.push(dr("input"));var $=null,K=null,ae=null,ge=null;for(var Ae in w)if(se.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":ge=h;break;case"defaultValue":K=h;break;case"checked":ae=h;break;case"value":$=h;break;default:bt(p,A,Ae,h);break}}return ae!==null?bt(p,A,"checked",ae):ge!==null&&bt(p,A,"checked",ge),$!==null?bt(p,A,"value",$):K!==null&&bt(p,A,"value",K),p.push(Qn),null}function yi(p,w,A){Xn("textarea",w),w.value!==void 0&&w.defaultValue!==void 0&&!zi&&(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"),zi=!0),p.push(dr("textarea"));var $=null,K=null,ae=null;for(var ge in w)if(se.call(w,ge)){var Ae=w[ge];if(Ae==null)continue;switch(ge){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(p,A,ge,Ae);break}}if($===null&&K!==null&&($=K),p.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(Ti(ae)){if(ae.length>1)throw new Error("<textarea> can only have at most one child.");ce(ae[0]),$=""+ae[0]}ce(ae),$=""+ae}return typeof $=="string"&&$[0]===`
109
- `&&p.push(ki),$!==null&&(pe($,"value"),p.push(L(fr(""+$)))),null}function Ao(p,w,A,$){p.push(dr(A));for(var K in w)if(se.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(p,$,K,ae);break}}return p.push(Qn),null}function ra(p,w,A){p.push(dr("menuitem"));for(var $ in w)if(se.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(p,A,$,K);break}}return p.push(Ut),null}function sn(p,w,A){p.push(dr("title"));var $=null;for(var K in w)if(se.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(p,A,K,ae);break}}p.push(Ut);{var ge=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"):ge!=null&&ge.$$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"):ge!=null&&typeof ge!="string"&&typeof ge!="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(p,w,A,$){p.push(dr(A));var K=null,ae=null;for(var ge in w)if(se.call(w,ge)){var Ae=w[ge];if(Ae==null)continue;switch(ge){case"children":K=Ae;break;case"dangerouslySetInnerHTML":ae=Ae;break;default:bt(p,$,ge,Ae);break}}return p.push(Ut),zn(p,ae,K),typeof K=="string"?(p.push(L(fr(K))),null):K}function Vt(p,w,A,$){p.push(dr(A));var K=null,ae=null;for(var ge in w)if(se.call(w,ge)){var Ae=w[ge];if(Ae==null)continue;switch(ge){case"children":K=Ae;break;case"dangerouslySetInnerHTML":ae=Ae;break;case"style":be(p,$,Ae);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:Ve(ge)&&typeof Ae!="function"&&typeof Ae!="symbol"&&p.push(Me,L(ge),et,L(fn(Ae)),yt);break}}return p.push(Ut),zn(p,ae,K),K}var ki=R(`
110
- `);function ri(p,w,A,$){p.push(dr(A));var K=null,ae=null;for(var ge in w)if(se.call(w,ge)){var Ae=w[ge];if(Ae==null)continue;switch(ge){case"children":K=Ae;break;case"dangerouslySetInnerHTML":ae=Ae;break;default:bt(p,$,ge,Ae);break}}if(p.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
- `?p.push(ki,L(h)):(ce(h),p.push(L(""+h))))}return typeof K=="string"&&K[0]===`
112
- `&&p.push(ki),K}var Mo=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,bi=new Map;function dr(p){var w=bi.get(p);if(w===void 0){if(!Mo.test(p))throw new Error("Invalid tag: "+p);w=R("<"+p),bi.set(p,w)}return w}var Na=R("<!DOCTYPE html>");function ia(p,w,A,$,K){switch(hn(w,A),gt(w,A),Rr(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!==Mr&&K.insertionMode!==Tr&&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 Vs(p,A,$);case"option":return La(p,A,$,K);case"textarea":return yi(p,A,$);case"input":return Fa(p,A,$);case"menuitem":return ra(p,A,$);case"title":return sn(p,A,$);case"listing":case"pre":return ri(p,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 Ao(p,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(p,A,w,$);case"html":return K.insertionMode===Wn&&p.push(Na),Qt(p,A,w,$);default:return w.indexOf("-")===-1&&typeof A.is!="string"?Qt(p,A,w,$):Vt(p,A,w,$)}}var os=R("</"),yn=R(">");function Lo(p,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:p.push(os,L(w),yn)}}function wi(p,w){for(var A=w.bootstrapChunks,$=0;$<A.length-1;$++)g(p,A[$]);return $<A.length?S(p,A[$]):!0}var as=R('<template id="'),ho=R('"></template>');function er(p,w,A){g(p,as),g(p,w.placeholderPrefix);var $=L(A.toString(16));return g(p,$),S(p,ho)}var f=R("<!--$-->"),v=R('<!--$?--><template id="'),C=R('"></template>'),O=R("<!--$!-->"),N=R("<!--/$-->"),B=R("<template"),H=R('"'),le=R(' data-dgst="'),oe=R(' data-msg="'),we=R(' data-stck="'),Le=R("></template>");function Ne(p,w){return S(p,f)}function Ce(p,w,A){if(g(p,v),A===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return g(p,A),S(p,C)}function Ye(p,w,A,$,K){var ae;return ae=S(p,O),g(p,B),A&&(g(p,le),g(p,L(fn(A))),g(p,H)),$&&(g(p,oe),g(p,L(fn($))),g(p,H)),K&&(g(p,we),g(p,L(fn(K))),g(p,H)),ae=S(p,Le),ae}function ct(p,w){return S(p,N)}function Pt(p,w){return S(p,N)}function It(p,w){return S(p,N)}var Mn=R('<div hidden id="'),dn=R('">'),Br=R("</div>"),$r=R('<svg aria-hidden="true" style="display:none" id="'),Wt=R('">'),Vr=R("</svg>"),zt=R('<math aria-hidden="true" style="display:none" id="'),on=R('">'),po=R("</math>"),go=R('<table hidden id="'),Er=R('">'),k=R("</table>"),F=R('<table hidden><tbody id="'),z=R('">'),te=R("</tbody></table>"),Se=R('<table hidden><tr id="'),Te=R('">'),Be=R("</tr></table>"),Qe=R('<table hidden><colgroup id="'),xt=R('">'),Nt=R("</colgroup></table>");function Dt(p,w,A,$){switch(A.insertionMode){case Wn:case vn:return g(p,Mn),g(p,w.segmentPrefix),g(p,L($.toString(16))),S(p,dn);case Mr:return g(p,$r),g(p,w.segmentPrefix),g(p,L($.toString(16))),S(p,Wt);case Tr:return g(p,zt),g(p,w.segmentPrefix),g(p,L($.toString(16))),S(p,on);case An:return g(p,go),g(p,w.segmentPrefix),g(p,L($.toString(16))),S(p,Er);case vi:return g(p,F),g(p,w.segmentPrefix),g(p,L($.toString(16))),S(p,z);case Lr:return g(p,Se),g(p,w.segmentPrefix),g(p,L($.toString(16))),S(p,Te);case ei:return g(p,Qe),g(p,w.segmentPrefix),g(p,L($.toString(16))),S(p,xt);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}function Ct(p,w){switch(w.insertionMode){case Wn:case vn:return S(p,Br);case Mr:return S(p,Vr);case Tr:return S(p,po);case An:return S(p,k);case vi:return S(p,te);case Lr:return S(p,Be);case ei:return S(p,Nt);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var Bn="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)}",Tn='function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}}',Yn='function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())}',oa=R(Bn+';$RS("'),ss=R('$RS("'),aa=R('","'),ii=R('")<\/script>');function Hs(p,w,A){g(p,w.startInlineScript),w.sentCompleteSegmentFunction?g(p,ss):(w.sentCompleteSegmentFunction=!0,g(p,oa)),g(p,w.segmentPrefix);var $=L(A.toString(16));return g(p,$),g(p,aa),g(p,w.placeholderPrefix),g(p,$),S(p,ii)}var vo=R(Tn+';$RC("'),us=R('$RC("'),sa=R('","'),xi=R('")<\/script>');function Gi(p,w,A,$){if(g(p,w.startInlineScript),w.sentCompleteBoundaryFunction?g(p,us):(w.sentCompleteBoundaryFunction=!0,g(p,vo)),A===null)throw new Error("An ID must have been assigned before we can complete the boundary.");var K=L($.toString(16));return g(p,A),g(p,sa),g(p,w.segmentPrefix),g(p,K),S(p,xi)}var Us=R(Yn+';$RX("'),Ml=R('$RX("'),ua=R('"'),mo=R(")<\/script>"),hr=R(",");function Ws(p,w,A,$,K,ae){if(g(p,w.startInlineScript),w.sentClientRenderFunction?g(p,Ml):(w.sentClientRenderFunction=!0,g(p,Us)),A===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return g(p,A),g(p,ua),($||K||ae)&&(g(p,hr),g(p,L(cs($||"")))),(K||ae)&&(g(p,hr),g(p,L(cs(K||"")))),ae&&(g(p,hr),g(p,L(cs(ae)))),S(p,mo)}var ls=/[<\u2028\u2029]/g;function cs(p){var w=JSON.stringify(p);return w.replace(ls,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,me=Symbol.for("react.element"),De=Symbol.for("react.portal"),Ee=Symbol.for("react.fragment"),Z=Symbol.for("react.strict_mode"),he=Symbol.for("react.profiler"),de=Symbol.for("react.provider"),$e=Symbol.for("react.context"),We=Symbol.for("react.forward_ref"),ft=Symbol.for("react.suspense"),dt=Symbol.for("react.suspense_list"),lt=Symbol.for("react.memo"),At=Symbol.for("react.lazy"),kt=Symbol.for("react.scope"),Yt=Symbol.for("react.debug_trace_mode"),Ln=Symbol.for("react.legacy_hidden"),ar=Symbol.for("react.default_value"),Gn=Symbol.iterator,Hr="@@iterator";function qi(p){if(p===null||typeof p!="object")return null;var w=Gn&&p[Gn]||p[Hr];return typeof w=="function"?w:null}function Mt(p,w,A){var $=p.displayName;if($)return $;var K=w.displayName||w.name||"";return K!==""?A+"("+K+")":A}function Uc(p){return p.displayName||"Context"}function Dn(p){if(p==null)return null;if(typeof p.tag=="number"&&i("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof p=="function")return p.displayName||p.name||null;if(typeof p=="string")return p;switch(p){case Ee:return"Fragment";case De:return"Portal";case he:return"Profiler";case Z:return"StrictMode";case ft:return"Suspense";case dt:return"SuspenseList"}if(typeof p=="object")switch(p.$$typeof){case $e:var w=p;return Uc(w)+".Consumer";case de:var A=p;return Uc(A._context)+".Provider";case We:return Mt(p,p.render,"ForwardRef");case lt:var $=p.displayName||null;return $!==null?$:Dn(p.type)||"Memo";case At:{var K=p,ae=K._payload,ge=K._init;try{return Dn(ge(ae))}catch{return null}}}return null}var la=0,Ll,Pn,fs,ds,yo,hs,Nu;function ps(){}ps.__reactDisabledLog=!0;function Fl(){{if(la===0){Ll=console.log,Pn=console.info,fs=console.warn,ds=console.error,yo=console.group,hs=console.groupCollapsed,Nu=console.groupEnd;var p={configurable:!0,enumerable:!0,value:ps,writable:!0};Object.defineProperties(console,{info:p,log:p,warn:p,error:p,group:p,groupCollapsed:p,groupEnd:p})}la++}}function Nl(){{if(la--,la===0){var p={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ee({},p,{value:Ll}),info:ee({},p,{value:Pn}),warn:ee({},p,{value:fs}),error:ee({},p,{value:ds}),group:ee({},p,{value:yo}),groupCollapsed:ee({},p,{value:hs}),groupEnd:ee({},p,{value:Nu})})}la<0&&i("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ja=n.ReactCurrentDispatcher,ju;function Fo(p,w,A){{if(ju===void 0)try{throw Error()}catch(K){var $=K.stack.trim().match(/\n( *(at )?)/);ju=$&&$[1]||""}return`
113
- `+ju+p}}var Xi=!1,No;{var zs=typeof WeakMap=="function"?WeakMap:Map;No=new zs}function Ys(p,w){if(!p||Xi)return"";{var A=No.get(p);if(A!==void 0)return A}var $;Xi=!0;var K=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ae;ae=ja.current,ja.current=null,Fl();try{if(w){var ge=function(){throw Error()};if(Object.defineProperty(ge.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ge,[])}catch(fe){$=fe}Reflect.construct(p,[],ge)}else{try{ge.call()}catch(fe){$=fe}p.call(ge.prototype)}}else{try{throw Error()}catch(fe){$=fe}p()}}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 p.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",p.displayName)),typeof p=="function"&&No.set(p,M),M}while(b>=1&&D>=0);break}}}finally{Xi=!1,ja.current=ae,Nl(),Error.prepareStackTrace=K}var Y=p?p.displayName||p.name:"",ie=Y?Fo(Y):"";return typeof p=="function"&&No.set(p,ie),ie}function Bu(p,w,A){return Ys(p,!0)}function Gs(p,w,A){return Ys(p,!1)}function gs(p){var w=p.prototype;return!!(w&&w.isReactComponent)}function qs(p,w,A){if(p==null)return"";if(typeof p=="function")return Ys(p,gs(p));if(typeof p=="string")return Fo(p);switch(p){case ft:return Fo("Suspense");case dt:return Fo("SuspenseList")}if(typeof p=="object")switch(p.$$typeof){case We:return Gs(p.render);case lt:return qs(p.type,w,A);case At:{var $=p,K=$._payload,ae=$._init;try{return qs(ae(K),w,A)}catch{}}}return""}var jl={},Bl=n.ReactDebugCurrentFrame;function vs(p){if(p){var w=p._owner,A=qs(p.type,p._source,w?w.type:null);Bl.setExtraStackFrame(A)}else Bl.setExtraStackFrame(null)}function $l(p,w,A,$,K){{var ae=Function.call.bind(se);for(var ge in p)if(ae(p,ge)){var Ae=void 0;try{if(typeof p[ge]!="function"){var h=Error(($||"React class")+": "+A+" type `"+ge+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof p[ge]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}Ae=p[ge](w,ge,$,A,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(b){Ae=b}Ae&&!(Ae instanceof Error)&&(vs(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,ge,typeof Ae),vs(null)),Ae instanceof Error&&!(Ae.message in jl)&&(jl[Ae.message]=!0,vs(K),i("Failed %s type: %s",A,Ae.message),vs(null))}}}var Fn;Fn={};var Nn={};Object.freeze(Nn);function Vl(p,w){{var A=p.contextTypes;if(!A)return Nn;var $={};for(var K in A)$[K]=w[K];{var ae=Dn(p)||"Unknown";$l(A,$,"context",ae)}return $}}function Hl(p,w,A,$){{if(typeof p.getChildContext!="function"){{var K=Dn(w)||"Unknown";Fn[K]||(Fn[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=p.getChildContext();for(var ge in ae)if(!(ge in $))throw new Error((Dn(w)||"Unknown")+'.getChildContext(): key "'+ge+'" is not defined in childContextTypes.');{var Ae=Dn(w)||"Unknown";$l($,ae,"child context",Ae)}return ee({},A,ae)}}var jo;jo={};var Wc=null,Bo=null;function Ki(p){p.context._currentValue=p.parentValue}function Xs(p){p.context._currentValue=p.value}function Ur(p,w){if(p!==w){Ki(p);var A=p.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.");Ur(A,$)}Xs(w)}}function ca(p){Ki(p);var w=p.parent;w!==null&&ca(w)}function fa(p){var w=p.parent;w!==null&&fa(w),Xs(p)}function da(p,w){Ki(p);var A=p.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?Ur(A,w):da(A,w)}function ha(p,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.");p.depth===A.depth?Ur(p,A):ha(p,A),Xs(w)}function Ks(p){var w=Bo,A=p;w!==A&&(w===null?fa(A):A===null?ca(w):w.depth===A.depth?Ur(w,A):w.depth>A.depth?da(w,A):ha(w,A),Bo=A)}function zc(p,w){var A;A=p._currentValue,p._currentValue=w,p._currentRenderer!==void 0&&p._currentRenderer!==null&&p._currentRenderer!==jo&&i("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),p._currentRenderer=jo;var $=Bo,K={parent:$,depth:$===null?0:$.depth+1,context:p,parentValue:A,value:w};return Bo=K,K}function Yc(p){var w=Bo;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!==p&&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,p._currentRenderer!==void 0&&p._currentRenderer!==null&&p._currentRenderer!==jo&&i("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),p._currentRenderer=jo}return Bo=w.parent}function $u(){return Bo}function Zs(p){var w=p._currentValue;return w}function ms(p){return p._reactInternals}function Js(p,w){p._reactInternals=w}var Ba={},G={},pa,$a,Wr,qt,Vu,ys,Qs,bo,bs;{pa=new Set,$a=new Set,Wr=new Set,Qs=new Set,qt=new Set,bo=new Set,bs=new Set;var Hu=new Set;ys=function(p,w){if(!(p===null||typeof p=="function")){var A=w+"_"+p;Hu.has(A)||(Hu.add(A),i("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",w,p))}},Vu=function(p,w){if(w===void 0){var A=Dn(p)||"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 Uu(p,w){{var A=p.constructor,$=A&&Dn(A)||"ReactClass",K=$+"."+w;if(Ba[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,$),Ba[K]=!0}}var Wu={isMounted:function(p){return!1},enqueueSetState:function(p,w,A){var $=ms(p);$.queue===null?Uu(p,"setState"):($.queue.push(w),A!=null&&ys(A,"setState"))},enqueueReplaceState:function(p,w,A){var $=ms(p);$.replace=!0,$.queue=[w],A!=null&&ys(A,"setState")},enqueueForceUpdate:function(p,w){var A=ms(p);A.queue===null?Uu(p,"forceUpdate"):w!=null&&ys(w,"setState")}};function Gc(p,w,A,$,K){var ae=A(K,$);Vu(w,ae);var ge=ae==null?$:ee({},$,ae);return ge}function wo(p,w,A){var $=Nn,K=p.contextType;if("contextType"in p){var ae=K===null||K!==void 0&&K.$$typeof===$e&&K._context===void 0;if(!ae&&!bs.has(p)){bs.add(p);var ge="";K===void 0?ge=" 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"?ge=" However, it is set to a "+typeof K+".":K.$$typeof===de?ge=" Did you accidentally pass the Context.Provider instead?":K._context!==void 0?ge=" Did you accidentally pass the Context.Consumer instead?":ge=" 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",Dn(p)||"Component",ge)}}typeof K=="object"&&K!==null?$=Zs(K):$=A;var Ae=new p(w,$);{if(typeof p.getDerivedStateFromProps=="function"&&(Ae.state===null||Ae.state===void 0)){var h=Dn(p)||"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 p.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=Dn(p)||"Component",ie=typeof p.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Wr.has(Y)||(Wr.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 qc(p,w,A){{var $=Dn(w)||"Component",K=p.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`.",$)),p.getInitialState&&!p.getInitialState.isReactClassApproved&&!p.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?",$),p.getDefaultProps&&!p.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.",$),p.propTypes&&i("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",$),p.contextType&&i("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",$),p.contextTypes&&i("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",$),w.contextType&&w.contextTypes&&!bo.has(w)&&(bo.add(w),i("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",$)),typeof p.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 p.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.",Dn(w)||"A pure component"),typeof p.componentDidUnmount=="function"&&i("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",$),typeof p.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 p.componentWillRecieveProps=="function"&&i("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",$),typeof p.UNSAFE_componentWillRecieveProps=="function"&&i("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",$);var ae=p.props!==A;p.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.",$,$),p.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 p.getSnapshotBeforeUpdate=="function"&&typeof p.componentDidUpdate!="function"&&!$a.has(w)&&($a.add(w),i("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Dn(w))),typeof p.getDerivedStateFromProps=="function"&&i("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",$),typeof p.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 ge=p.state;ge&&(typeof ge!="object"||Ti(ge))&&i("%s.state: must be set to an object or null",$),typeof p.getChildContext=="function"&&typeof w.childContextTypes!="object"&&i("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",$)}}function $f(p,w){var A=w.state;if(typeof w.componentWillMount=="function"){if(w.componentWillMount.__suppressDeprecationWarning!==!0){var $=Dn(p)||"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.",Dn(p)||"Component"),Wu.enqueueReplaceState(w,w.state,null))}function Vf(p,w,A,$){if(p.queue!==null&&p.queue.length>0){var K=p.queue,ae=p.replace;if(p.queue=null,p.replace=!1,ae&&K.length===1)w.state=K[0];else{for(var ge=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,ge,A,$):b;D!=null&&(Ae?(Ae=!1,ge=ee({},ge,D)):ee(ge,D))}w.state=ge}}else p.queue=null}function Xc(p,w,A,$){qc(p,w,A);var K=p.state!==void 0?p.state:null;p.updater=Wu,p.props=A,p.state=K;var ae={queue:[],replace:!1};Js(p,ae);var ge=w.contextType;if(typeof ge=="object"&&ge!==null?p.context=Zs(ge):p.context=$,p.state===A){var Ae=Dn(w)||"Component";Qs.has(Ae)||(Qs.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"&&(p.state=Gc(p,w,h,K,A)),typeof w.getDerivedStateFromProps!="function"&&typeof p.getSnapshotBeforeUpdate!="function"&&(typeof p.UNSAFE_componentWillMount=="function"||typeof p.componentWillMount=="function")&&($f(w,p),Vf(ae,p,A,$))}var Hf={id:1,overflow:""};function $o(p){var w=p.overflow,A=p.id,$=A&~Uf(A);return $.toString(32)+w}function zu(p,w,A){var $=p.id,K=p.overflow,ae=Yu($)-1,ge=$&~(1<<ae),Ae=A+1,h=Yu(w)+ae;if(h>30){var b=ae-ae%5,D=(1<<b)-1,M=(ge&D).toString(32),Y=ge>>b,ie=ae-b,fe=Yu(w)+ie,Ie=Ae<<ie,Ze=Ie|Y,ht=M+K;return{id:1<<fe|Ze,overflow:ht}}else{var St=Ae<<ae,_t=St|ge,Cn=K;return{id:1<<h|_t,overflow:Cn}}}function Yu(p){return 32-Ul(p)}function Uf(p){return 1<<Yu(p)-1}var Ul=Math.clz32?Math.clz32:Wf,Gu=Math.log,Va=Math.LN2;function Wf(p){var w=p>>>0;return w===0?32:31-(Gu(w)/Va|0)|0}function zf(p,w){return p===w&&(p!==0||1/p===1/w)||p!==p&&w!==w}var Zi=typeof Object.is=="function"?Object.is:zf,Vo=null,Wl=null,qu=null,nn=null,Ha=!1,ga=!1,un=0,Oi=null,Ua=0,ws=25,$n=!1,Di;function Wa(){if(Vo===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 $n&&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"),Vo}function Ji(p,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.",Di),!1;p.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`,Di,"["+p.join(", ")+"]","["+w.join(", ")+"]");for(var A=0;A<w.length&&A<p.length;A++)if(!Zi(p[A],w[A]))return!1;return!0}function za(){if(Ua>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function pr(){return nn===null?qu===null?(Ha=!1,qu=nn=za()):(Ha=!0,nn=qu):nn.next===null?(Ha=!1,nn=nn.next=za()):(Ha=!0,nn=nn.next),nn}function zl(p,w){Vo=w,Wl=p,$n=!1,un=0}function va(p,w,A,$){for(;ga;)ga=!1,un=0,Ua+=1,nn=null,A=p(w,$);return Yl(),A}function zr(){var p=un!==0;return p}function Yl(){$n=!1,Vo=null,Wl=null,ga=!1,qu=null,Ua=0,Oi=null,nn=null}function Kc(p){return $n&&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()."),Zs(p)}function Gl(p){return Di="useContext",Wa(),Zs(p)}function Ho(p,w){return typeof w=="function"?w(p):w}function ma(p){return Di="useState",ql(Ho,p)}function ql(p,w,A){if(p!==Ho&&(Di="useReducer"),Vo=Wa(),nn=pr(),Ha){var $=nn.queue,K=$.dispatch;if(Oi!==null){var ae=Oi.get($);if(ae!==void 0){Oi.delete($);var ge=nn.memoizedState,Ae=ae;do{var h=Ae.action;$n=!0,ge=p(ge,h),$n=!1,Ae=Ae.next}while(Ae!==null);return nn.memoizedState=ge,[ge,K]}}return[nn.memoizedState,K]}else{$n=!0;var b;p===Ho?b=typeof w=="function"?w():w:b=A!==void 0?A(w):w,$n=!1,nn.memoizedState=b;var D=nn.queue={last:null,dispatch:null},M=D.dispatch=Xl.bind(null,Vo,D);return[nn.memoizedState,M]}}function Xu(p,w){Vo=Wa(),nn=pr();var A=w===void 0?null:w;if(nn!==null){var $=nn.memoizedState;if($!==null&&A!==null){var K=$[1];if(Ji(A,K))return $[0]}}$n=!0;var ae=p();return $n=!1,nn.memoizedState=[ae,A],ae}function Ku(p){Vo=Wa(),nn=pr();var w=nn.memoizedState;if(w===null){var A={current:p};return Object.seal(A),nn.memoizedState=A,A}else return w}function Zc(p,w){Di="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 Xl(p,w,A){if(Ua>=ws)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(p===Vo){ga=!0;var $={action:A,next:null};Oi===null&&(Oi=new Map);var K=Oi.get(w);if(K===void 0)Oi.set(w,$);else{for(var ae=K;ae.next!==null;)ae=ae.next;ae.next=$}}}function gr(p,w){return Xu(function(){return p},w)}function Kl(p,w,A){return Wa(),w(p._source)}function Jc(p,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 xo(p){return Wa(),p}function Zl(){throw new Error("startTransition cannot be called during server rendering.")}function Zu(){return Wa(),[!1,Zl]}function Ya(){var p=Wl,w=$o(p.treeContext),A=tu;if(A===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var $=un++;return Cr(A,w,$)}function eu(){}var kr={readContext:Kc,useContext:Gl,useMemo:Xu,useReducer:ql,useRef:Ku,useState:ma,useInsertionEffect:eu,useLayoutEffect:Zc,useCallback:gr,useImperativeHandle:eu,useEffect:eu,useDebugValue:eu,useDeferredValue:xo,useTransition:Zu,useId:Ya,useMutableSource:Kl,useSyncExternalStore:Jc},tu=null;function nu(p){tu=p}function Qc(p){try{var w="",A=p;do{switch(A.tag){case 0:w+=Fo(A.type,null,null);break;case 1:w+=Gs(A.type,null,null);break;case 2:w+=Bu(A.type,null,null);break}A=A.parent}while(A);return w}catch($){return`
138
- Error generating stack: `+$.message+`
139
- `+$.stack}}var ru=n.ReactCurrentDispatcher,xs=n.ReactDebugCurrentFrame,Jl=0,Pi=1,iu=2,Ju=3,Ga=4,Ss=0,Ql=1,qa=2,ec=12800;function tc(p){return console.error(p),null}function So(){}function Yf(p,w,A,$,K,ae,ge,Ae,h){var b=[],D=new Set,M={destination:null,responseState:w,progressiveChunkSize:$===void 0?ec:$,status:Ss,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:D,pingedTasks:b,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:K===void 0?tc:K,onAllReady:ae===void 0?So:ae,onShellReady:ge===void 0?So:ge,onShellError:Ae===void 0?So:Ae,onFatalError:h===void 0?So:h},Y=Qu(M,0,null,A,!1,!1);Y.parentFlushed=!0;var ie=ou(M,p,null,Y,D,Nn,Wc,Hf);return b.push(ie),M}function Gf(p,w){var A=p.pingedTasks;A.push(w),A.length===1&&s(function(){return hu(p)})}function Ts(p,w){return{id:Ui,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:w,errorDigest:null}}function ou(p,w,A,$,K,ae,ge,Ae){p.allPendingTasks++,A===null?p.pendingRootTasks++:A.pendingTasks++;var h={node:w,ping:function(){return Gf(p,h)},blockedBoundary:A,blockedSegment:$,abortSet:K,legacyContext:ae,context:ge,treeContext:Ae};return h.componentStack=null,K.add(h),h}function Qu(p,w,A,$,K,ae){return{status:Jl,id:-1,index:w,parentFlushed:!1,chunks:[],children:[],formatContext:$,boundary:A,lastPushedText:K,textEmbedded:ae}}var Qi=null;function Cs(){return Qi===null||Qi.componentStack===null?"":Qc(Qi.componentStack)}function Uo(p,w){p.componentStack={tag:0,parent:p.componentStack,type:w}}function eo(p,w){p.componentStack={tag:1,parent:p.componentStack,type:w}}function Es(p,w){p.componentStack={tag:2,parent:p.componentStack,type:w}}function _i(p){p.componentStack===null?i("Unexpectedly popped too many stack frames. This is a bug in React."):p.componentStack=p.componentStack.parent}var Xa=null;function el(p,w){{var A;typeof w=="string"?A=w:w&&typeof w.message=="string"?A=w.message:A=String(w);var $=Xa||Cs();Xa=null,p.errorMessage=A,p.errorComponentStack=$}}function Ri(p,w){var A=p.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 Wo(p,w){var A=p.onShellError;A(w);var $=p.onFatalError;$(w),p.destination!==null?(p.status=qa,U(p.destination,w)):(p.status=Ql,p.fatalError=w)}function nc(p,w,A){Uo(w,"Suspense");var $=w.blockedBoundary,K=w.blockedSegment,ae=A.fallback,ge=A.children,Ae=new Set,h=Ts(p,Ae),b=K.chunks.length,D=Qu(p,b,h,K.formatContext,!1,!1);K.children.push(D),K.lastPushedText=!1;var M=Qu(p,0,null,K.formatContext,!1,!1);M.parentFlushed=!0,w.blockedBoundary=h,w.blockedSegment=M;try{if(fu(p,w,ge),Fr(M.chunks,p.responseState,M.lastPushedText,M.textEmbedded),M.status=Pi,du(h,M),h.pendingTasks===0){_i(w);return}}catch(ie){M.status=Ga,h.forceClientRender=!0,h.errorDigest=Ri(p,ie),el(h,ie)}finally{w.blockedBoundary=$,w.blockedSegment=K}var Y=ou(p,ae,$,D,Ae,w.legacyContext,w.context,w.treeContext);Y.componentStack=w.componentStack,p.pingedTasks.push(Y),_i(w)}function Ka(p,w,A,$){Uo(w,A);var K=w.blockedSegment,ae=ia(K.chunks,A,$,p.responseState,K.formatContext);K.lastPushedText=!1;var ge=K.formatContext;K.formatContext=ni(ge,A,$),fu(p,w,ae),K.formatContext=ge,Lo(K.chunks,A),K.lastPushedText=!1,_i(w)}function au(p){return p.prototype&&p.prototype.isReactComponent}function tl(p,w,A,$,K){var ae={};zl(w,ae);var ge=A($,K);return va(A,$,ge,K)}function ef(p,w,A,$,K){var ae=A.render();A.props!==K&&(ks||i("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Dn($)||"a component"),ks=!0);{var ge=$.childContextTypes;if(ge!=null){var Ae=w.legacyContext,h=Hl(A,$,Ae,ge);w.legacyContext=h,si(p,w,ae),w.legacyContext=Ae;return}}si(p,w,ae)}function rc(p,w,A,$){Es(w,A);var K=Vl(A,w.legacyContext),ae=wo(A,$,K);Xc(ae,A,$,K),ef(p,w,ae,A,$),_i(w)}var Gt={},su={},tf={},Za={},ks=!1,ic=!1,oc=!1,oi=!1;function nf(p,w,A,$){var K;if(K=Vl(A,w.legacyContext),eo(w,A),A.prototype&&typeof A.prototype.render=="function"){var ae=Dn(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 ge=tl(p,w,A,$,K),Ae=zr();if(typeof ge=="object"&&ge!==null&&typeof ge.render=="function"&&ge.$$typeof===void 0){var h=Dn(A)||"Unknown";su[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),su[h]=!0)}if(typeof ge=="object"&&ge!==null&&typeof ge.render=="function"&&ge.$$typeof===void 0){{var b=Dn(A)||"Unknown";su[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),su[b]=!0)}Xc(ge,A,$,K),ef(p,w,ge,A,$)}else if(uu(A),Ae){var D=w.treeContext,M=1,Y=0;w.treeContext=zu(D,M,Y);try{si(p,w,ge)}finally{w.treeContext=D}}else si(p,w,ge);_i(w)}function uu(p){{if(p&&p.childContextTypes&&i("%s(...): childContextTypes cannot be defined on a function component.",p.displayName||p.name||"Component"),typeof p.getDerivedStateFromProps=="function"){var w=Dn(p)||"Unknown";Za[w]||(i("%s: Function components do not support getDerivedStateFromProps.",w),Za[w]=!0)}if(typeof p.contextType=="object"&&p.contextType!==null){var A=Dn(p)||"Unknown";tf[A]||(i("%s: Function components do not support contextType.",A),tf[A]=!0)}}}function lu(p,w){if(p&&p.defaultProps){var A=ee({},w),$=p.defaultProps;for(var K in $)A[K]===void 0&&(A[K]=$[K]);return A}return w}function rf(p,w,A,$,K){eo(w,A.render);var ae=tl(p,w,A.render,$,K),ge=zr();if(ge){var Ae=w.treeContext,h=1,b=0;w.treeContext=zu(Ae,h,b);try{si(p,w,ae)}finally{w.treeContext=Ae}}else si(p,w,ae);_i(w)}function of(p,w,A,$,K){var ae=A.type,ge=lu(ae,$);nl(p,w,ae,ge,K)}function ai(p,w,A,$){A._context===void 0?A!==A.Consumer&&(oi||(oi=!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=Zs(A),ge=K(ae);si(p,w,ge)}function ya(p,w,A,$){var K=A._context,ae=$.value,ge=$.children,Ae;Ae=w.context,w.context=zc(K,ae),si(p,w,ge),w.context=Yc(K),Ae!==w.context&&i("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function ac(p,w,A,$,K){Uo(w,"Lazy");var ae=A._payload,ge=A._init,Ae=ge(ae),h=lu(Ae,$);nl(p,w,Ae,h,K),_i(w)}function nl(p,w,A,$,K){if(typeof A=="function")if(au(A)){rc(p,w,A,$);return}else{nf(p,w,A,$);return}if(typeof A=="string"){Ka(p,w,A,$);return}switch(A){case Ln:case Yt:case Z:case he:case Ee:{si(p,w,$.children);return}case dt:{Uo(w,"SuspenseList"),si(p,w,$.children),_i(w);return}case kt:throw new Error("ReactDOMServer does not yet support scope components.");case ft:{nc(p,w,$);return}}if(typeof A=="object"&&A!==null)switch(A.$$typeof){case We:{rf(p,w,A,$,K);return}case lt:{of(p,w,A,$,K);return}case de:{ya(p,w,A,$);return}case $e:{ai(p,w,A,$);return}case At:{ac(p,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 rl(p,w){typeof Symbol=="function"&&p[Symbol.toStringTag]==="Generator"&&(ic||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."),ic=!0),p.entries===w&&(oc||i("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),oc=!0)}function si(p,w,A){try{return cu(p,w,A)}catch($){throw typeof $=="object"&&$!==null&&typeof $.then=="function"||(Xa=Xa!==null?Xa:Cs()),$}}function cu(p,w,A){if(w.node=A,typeof A=="object"&&A!==null){switch(A.$$typeof){case me:{var $=A,K=$.type,ae=$.props,ge=$.ref;nl(p,w,K,ae,ge);return}case De: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 At:{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"&&Uo(w,"Lazy"),St}si(p,w,D);return}}if(Ti(A)){sc(p,w,A);return}var M=qi(A);if(M){rl(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);sc(p,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 Ze=w.blockedSegment;Ze.lastPushedText=Wi(w.blockedSegment.chunks,A,p.responseState,Ze.lastPushedText);return}if(typeof A=="number"){var ht=w.blockedSegment;ht.lastPushedText=Wi(w.blockedSegment.chunks,""+A,p.responseState,ht.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 sc(p,w,A){for(var $=A.length,K=0;K<$;K++){var ae=w.treeContext;w.treeContext=zu(ae,$,K);try{fu(p,w,A[K])}finally{w.treeContext=ae}}}function Yr(p,w,A){var $=w.blockedSegment,K=$.chunks.length,ae=Qu(p,K,null,$.formatContext,$.lastPushedText,!0);$.children.push(ae),$.lastPushedText=!1;var ge=ou(p,w.node,w.blockedBoundary,ae,w.abortSet,w.legacyContext,w.context,w.treeContext);w.componentStack!==null&&(ge.componentStack=w.componentStack.parent);var Ae=ge.ping;A.then(Ae,Ae)}function fu(p,w,A){var $=w.blockedSegment.formatContext,K=w.legacyContext,ae=w.context,ge=null;ge=w.componentStack;try{return si(p,w,A)}catch(Ae){if(Yl(),typeof Ae=="object"&&Ae!==null&&typeof Ae.then=="function"){Yr(p,w,Ae),w.blockedSegment.formatContext=$,w.legacyContext=K,w.context=ae,Ks(ae),w.componentStack=ge;return}else throw w.blockedSegment.formatContext=$,w.legacyContext=K,w.context=ae,Ks(ae),w.componentStack=ge,Ae}}function zo(p,w,A,$){var K=Ri(p,$);if(w===null?Wo(p,$):(w.pendingTasks--,w.forceClientRender||(w.forceClientRender=!0,w.errorDigest=K,el(w,$),w.parentFlushed&&p.clientRenderedBoundaries.push(w))),p.allPendingTasks--,p.allPendingTasks===0){var ae=p.onAllReady;ae()}}function qf(p){var w=this,A=p.blockedBoundary,$=p.blockedSegment;$.status=Ju,uc(w,A,$)}function to(p,w,A){var $=p.blockedBoundary,K=p.blockedSegment;if(K.status=Ju,$===null)w.allPendingTasks--,w.status!==qa&&(w.status=qa,w.destination!==null&&_(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 ge="The server did not finish this Suspense boundary: ";ae&&typeof ae.message=="string"?ae=ge+ae.message:ae=ge+String(ae);var Ae=Qi;Qi=p;try{el($,ae)}finally{Qi=Ae}}$.parentFlushed&&w.clientRenderedBoundaries.push($)}if($.fallbackAbortableTasks.forEach(function(b){return to(b,w,A)}),$.fallbackAbortableTasks.clear(),w.allPendingTasks--,w.allPendingTasks===0){var h=w.onAllReady;h()}}}function du(p,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===Pi&&du(p,A)}else{var $=p.completedSegments;$.push(w)}}function uc(p,w,A){if(w===null){if(A.parentFlushed){if(p.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");p.completedRootSegment=A}if(p.pendingRootTasks--,p.pendingRootTasks===0){p.onShellError=So;var $=p.onShellReady;$()}}else if(w.pendingTasks--,!w.forceClientRender){if(w.pendingTasks===0)A.parentFlushed&&A.status===Pi&&du(w,A),w.parentFlushed&&p.completedBoundaries.push(w),w.fallbackAbortableTasks.forEach(qf,p),w.fallbackAbortableTasks.clear();else if(A.parentFlushed&&A.status===Pi){du(w,A);var K=w.completedSegments;K.length===1&&w.parentFlushed&&p.partialBoundaries.push(w)}}if(p.allPendingTasks--,p.allPendingTasks===0){var ae=p.onAllReady;ae()}}function il(p,w){var A=w.blockedSegment;if(A.status===Jl){Ks(w.context);var $=null;$=Qi,Qi=w;try{si(p,w,w.node),Fr(A.chunks,p.responseState,A.lastPushedText,A.textEmbedded),w.abortSet.delete(w),A.status=Pi,uc(p,w.blockedBoundary,A)}catch(ae){if(Yl(),typeof ae=="object"&&ae!==null&&typeof ae.then=="function"){var K=w.ping;ae.then(K,K)}else w.abortSet.delete(w),A.status=Ga,zo(p,w.blockedBoundary,A,ae)}finally{Qi=$}}}function hu(p){if(p.status!==qa){var w=$u(),A=ru.current;ru.current=kr;var $;$=xs.getCurrentStack,xs.getCurrentStack=Cs;var K=tu;nu(p.responseState);try{var ae=p.pingedTasks,ge;for(ge=0;ge<ae.length;ge++){var Ae=ae[ge];il(p,Ae)}ae.splice(0,ge),p.destination!==null&&vr(p,p.destination)}catch(h){Ri(p,h),Wo(p,h)}finally{nu(K),ru.current=A,xs.getCurrentStack=$,A===kr&&Ks(w)}}}function pu(p,w,A){switch(A.parentFlushed=!0,A.status){case Jl:{var $=A.id=p.nextSegmentId++;return A.lastPushedText=!1,A.textEmbedded=!1,er(w,p.responseState,$)}case Pi:{A.status=iu;for(var K=!0,ae=A.chunks,ge=0,Ae=A.children,h=0;h<Ae.length;h++){for(var b=Ae[h];ge<b.index;ge++)g(w,ae[ge]);K=ol(p,w,b)}for(;ge<ae.length-1;ge++)g(w,ae[ge]);return ge<ae.length&&(K=S(w,ae[ge])),K}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function ol(p,w,A){var $=A.boundary;if($===null)return pu(p,w,A);if($.parentFlushed=!0,$.forceClientRender)return Ye(w,p.responseState,$.errorDigest,$.errorMessage,$.errorComponentStack),pu(p,w,A),It(w,p.responseState);if($.pendingTasks>0){$.rootSegmentID=p.nextSegmentId++,$.completedSegments.length>0&&p.partialBoundaries.push($);var K=$.id=_n(p.responseState);return Ce(w,p.responseState,K),pu(p,w,A),Pt(w,p.responseState)}else{if($.byteSize>p.progressiveChunkSize)return $.rootSegmentID=p.nextSegmentId++,p.completedBoundaries.push($),Ce(w,p.responseState,$.id),pu(p,w,A),Pt(w,p.responseState);Ne(w,p.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 ge=ae[0];return ol(p,w,ge),ct(w,p.responseState)}}function lc(p,w,A){return Ws(w,p.responseState,A.id,A.errorDigest,A.errorMessage,A.errorComponentStack)}function Os(p,w,A){return Dt(w,p.responseState,A.formatContext,A.id),ol(p,w,A),Ct(w,A.formatContext)}function gu(p,w,A){for(var $=A.completedSegments,K=0;K<$.length;K++){var ae=$[K];al(p,w,A,ae)}return $.length=0,Gi(w,p.responseState,A.id,A.rootSegmentID)}function af(p,w,A){for(var $=A.completedSegments,K=0;K<$.length;K++){var ae=$[K];if(!al(p,w,A,ae))return K++,$.splice(0,K),!1}return $.splice(0,K),!0}function al(p,w,A,$){if($.status===iu)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 Os(p,w,$)}else return Os(p,w,$),Hs(w,p.responseState,K)}function vr(p,w){y();try{var A=p.completedRootSegment;A!==null&&p.pendingRootTasks===0&&(ol(p,w,A),p.completedRootSegment=null,wi(w,p.responseState));var $=p.clientRenderedBoundaries,K;for(K=0;K<$.length;K++){var ae=$[K];lc(p,w,ae)}$.splice(0,K);var ge=p.completedBoundaries;for(K=0;K<ge.length;K++){var Ae=ge[K];gu(p,w,Ae)}ge.splice(0,K),T(w),y(w);var h=p.partialBoundaries;for(K=0;K<h.length;K++){var b=h[K];if(!af(p,w,b)){p.destination=null,K++,h.splice(0,K);return}}h.splice(0,K);var D=p.completedBoundaries;for(K=0;K<D.length;K++){var M=D[K];gu(p,w,M)}D.splice(0,K)}finally{T(w),p.allPendingTasks===0&&p.pingedTasks.length===0&&p.clientRenderedBoundaries.length===0&&p.completedBoundaries.length===0&&(p.abortableTasks.size!==0&&i("There was still abortable task at the root when we closed. This is a bug in React."),_(w))}}function To(p){s(function(){return hu(p)})}function sf(p,w){if(p.status===Ql){p.status=qa,U(w,p.fatalError);return}if(p.status!==qa&&p.destination===null){p.destination=w;try{vr(p,w)}catch(A){Ri(p,A),Wo(p,A)}}}function sl(p,w){try{var A=p.abortableTasks;A.forEach(function($){return to($,p,w)}),A.clear(),p.destination!==null&&vr(p,p.destination)}catch($){Ri(p,$),Wo(p,$)}}function ul(p,w){return new Promise(function(A,$){var K,ae,ge=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){sl(b)}},{highWaterMark:0});Y.allReady=ge,A(Y)}function h(Y){ge.catch(function(){}),$(Y)}var b=Yf(p,Ar(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(){sl(b,D.reason),D.removeEventListener("abort",M)};D.addEventListener("abort",M)}To(b)})}$h.renderToReadableStream=ul,$h.version=t}()),$h}var Ac,Fm;process.env.NODE_ENV==="production"?(Ac=V5(),Fm=H5()):(Ac=U5(),Fm=W5());Ac.version;var z5=Ac.renderToString;Ac.renderToStaticMarkup;Ac.renderToNodeStream;Ac.renderToStaticNodeStream;Fm.renderToReadableStream;var Y5=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fO(e,t){return e(t={exports:{}},t.exports),t.exports}var G5=fO(function(e){(function(t){var n=function(L,R,U){if(!c(R)||y(R)||g(R)||S(R)||l(R))return R;var W,ne=0,Q=0;if(d(R))for(W=[],Q=R.length;ne<Q;ne++)W.push(n(L,R[ne],U));else for(var pe in W={},R)Object.prototype.hasOwnProperty.call(R,pe)&&(W[L(pe,U)]=n(L,R[pe],U));return W},r=function(L){return T(L)?L:(L=L.replace(/[\-_\s]+(.)?/g,function(R,U){return U?U.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(U,W){var ne=(W=W||{}).separator||"_",Q=W.split||/(?=[A-Z])/;return U.split(Q).join(ne)}(L,R).toLowerCase()},s=Object.prototype.toString,l=function(L){return typeof L=="function"},c=function(L){return L===Object(L)},d=function(L){return s.call(L)=="[object Array]"},y=function(L){return s.call(L)=="[object Date]"},g=function(L){return s.call(L)=="[object RegExp]"},S=function(L){return s.call(L)=="[object Boolean]"},T=function(L){return(L-=0)==L},_=function(L,R){var U=R&&"process"in R?R.process:R;return typeof U!="function"?L:function(W,ne){return U(W,L,ne)}},I={camelize:r,decamelize:o,pascalize:i,depascalize:o,camelizeKeys:function(L,R){return n(_(r,R),L)},decamelizeKeys:function(L,R){return n(_(o,R),L,R)},pascalizeKeys:function(L,R){return n(_(i,R),L)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=I:t.humps=I})(Y5)}).decamelize,q5=function(e){if(Array.isArray(e))return e},X5=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,l=e[Symbol.iterator]();!(r=(s=l.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(c){i=!0,o=c}finally{try{r||l.return==null||l.return()}finally{if(i)throw o}}return n}},r1=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},K5=function(e,t){if(e){if(typeof e=="string")return r1(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)?r1(e,t):void 0}},Z5=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.`)},J5=function(e,t){return q5(e)||X5(e,t)||K5(e,t)||Z5()},dO=fO(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}),Q5=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},hO=function(e,t){if(e==null)return{};var n,r,i=Q5(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},e4=J.createContext(null);function Nm(e){var t=e.children,n=hO(e,["children"]);return typeof t!="string"&&(t=z5(t)),J.createElement("template",dO({},n,{dangerouslySetInnerHTML:{__html:t}}))}function jm(e){var t=e.root,n=e.children;return T1.createPortal(n,t)}function t4(e){var t=J.forwardRef(function(n,r){var i,o,s=n.mode,l=n.delegatesFocus,c=n.styleSheets,d=n.ssr,y=n.children,g=hO(n,["mode","delegatesFocus","styleSheets","ssr","children"]),S=(o=J.useRef((i=r)&&i.current),J.useEffect(function(){i&&(i.current=o.current)},[i]),o),T=J.useState(null),_=J5(T,2),I=_[0],L=_[1],R="node_".concat(s).concat(l);return J.useLayoutEffect(function(){if(S.current)try{if(typeof r=="function"&&r(S.current),d){var U=S.current.shadowRoot;return void L(U)}var W=S.current.attachShadow({mode:s,delegatesFocus:l});c.length>0&&(W.adoptedStyleSheets=c),L(W)}catch(ne){(function(Q){var pe=Q.error,x=Q.styleSheets,ce=Q.root;switch(pe.name){case"NotSupportedError":x.length>0&&(ce.adoptedStyleSheets=x);break;default:throw pe}})({error:ne,styleSheets:c,root:I})}},[r,S,c]),J.createElement(J.Fragment,null,J.createElement(e.tag,dO({key:R,ref:S},g),(I||d)&&J.createElement(e4.Provider,{value:I},d?J.createElement(Nm,{shadowroot:s,shadowrootmode:s},e.render({root:I,ssr:d,children:y})):J.createElement(jm,{root:I},e.render({root:I,ssr:d,children:y})))))});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.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[],ssr:!1,children:null},t}Nm.propTypes={children:Oa.oneOfType([Oa.string,Oa.node])},Nm.defaultProps={children:""},jm.propTypes={root:Oa.object.isRequired,children:Oa.node},jm.defaultProps={children:null};var Dv=new Map;function n4(){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=G5(i,{separator:"-"}),s="".concat(t,"-").concat(o);return Dv.has(s)||Dv.set(s,t4({tag:o,render:n})),Dv.get(s)}})}var pO=n4();const r4=e=>{const t=e.isCollapsed?0:e.depth*16;return ot.jsx("div",{style:{backgroundColor:e.color||"#93D500",height:"2px",position:"absolute",right:"0",top:"0",left:t}})},i4=`.app,.treeRoot{height:100%}.draggingSource{opacity:.3}.placeholderContainer{position:relative}.dropTarget{background-color:#8d878711}
141
- `,o4=e=>{const[t,n]=J.useState(()=>{const r=localStorage.getItem("openingMenuIds");return r&&r!=="[]"?JSON.parse(r):(e==null?void 0:e.initOpenIds)||[]});return J.useEffect(()=>{localStorage.setItem("openingMenuIds",JSON.stringify(t))},[t]),[t,n]},Pv=localStorage.getItem("isCollapsed");function a4(e){const t=new CustomEvent("favoriteMenusChange",{detail:{favoriteMenus:e}});window.dispatchEvent(t)}function s4(e){const t=S1.useLocation(),[n,r]=J.useState([]),i=n.map(ce=>ce.data),[o,s]=J.useState(!1),[l,c]=J.useState(Pv===null?!0:Pv==="true"),[d,y]=J.useState(window.location.href),g=J.useRef(null);J.useEffect(()=>{var ce;(ce=e.handleCallback)==null||ce.call(e,i)},[i,e.handleCallback]),J.useEffect(()=>{y(window.location.href)},[t]);const S=l4(i,d);console.log("matchPaths:",d,t,S);const[T,_]=o4({initOpenIds:e.initOpenIds}),I=()=>{var ce,se;if(c(!l),localStorage.setItem("isCollapsed",JSON.stringify(!l)),l)T&&((ce=g.current)==null||ce.open(T));else{const je=n.filter(qe=>qe.parent===0).map(qe=>qe.id);console.log("closeIds:",je),(se=g.current)==null||se.close(je)}},[L,R]=J.useState(!1),U=l?"collapsed":"expanded",W=ce=>`${ce} ${U}`,ne=J.useRef(null);J.useLayoutEffect(()=>{(async()=>{var se,je;try{const qe=e.menuPath||"/global-menu-config/api/v1/menu-items/user",Xe=e.baseUrl+qe,{data:rt}=await Ls.get(Xe);let nt=rt.map(Pe=>({...Pe,parentKey:Pe.parentKey||0}));nt=vO(nt),e.replacePath&&(nt=gO(nt,e.replacePath));const ye=nt.map(Pe=>({id:Pe.id,parent:Pe.parentKey,text:Pe.name,data:Pe}));r(ye)}catch(qe){console.error(qe),Ap(((je=(se=qe.response)==null?void 0:se.data)==null?void 0:je.errorMessage)||"Have error when get menu items")}})()},[e.baseUrl,e.menuPath,e.replacePath]),J.useEffect(()=>{const ce=i.filter(qe=>qe.isFavorite);function se(qe){return i.every(Xe=>Xe.parentKey!==qe.id)?qe:{...qe,children:i.filter(Xe=>Xe.parentKey===qe.id).map(Xe=>se(Xe))}}const je=ce.map(qe=>se(qe));a4(je)},[i]);function Q(ce){const se=ce.detail.menuItem;r(je=>je.map(qe=>qe.id!==se.id?qe:{...qe,data:se}))}J.useEffect(()=>(window.addEventListener("updateFavoriteMenu",Q),()=>{window.removeEventListener("updateFavoriteMenu",Q)}),[]),J.useLayoutEffect(()=>{var qe;const ce=localStorage.getItem("scrollPos");ce&&ne.current&&setTimeout(()=>{const Xe=ne.current.getScrollElement();Xe.scrollTop=parseInt(ce)},0);const se=()=>{if(ne.current){const Xe=ne.current.getScrollElement();localStorage.setItem("scrollPos",Xe.scrollTop.toString())}},je=(qe=ne.current)==null?void 0:qe.getScrollElement();return je==null||je.addEventListener("scroll",se),()=>{je==null||je.removeEventListener("scroll",se)}},[i]);function pe(ce){s(!0);const se=[...n];r(ce);const je=ce.map((qe,Xe)=>({menuItemId:qe.id,order:Xe}));Ls.post("/global-menu-config/api/v1/menu-items/user",je,{baseURL:e.baseUrl}).then(()=>{}).catch(qe=>{console.error(qe),r(se)}).finally(()=>{s(!1)})}const x=J.useMemo(()=>Pv==="false"?T:[],[]);return ot.jsxs("div",{className:W("side-bar"),children:[ot.jsx("div",{className:W("wrap-section side-bar__wrapper-toggle-btn"),children:ot.jsx("button",{className:"icon-btn side-bar__toggle-btn",onClick:I,children:l?ot.jsx(j5,{}):ot.jsx(N5,{})})}),ot.jsx(dT,{ref:ne,className:W("wrap-section side-bar__menu"),style:{marginTop:24,flex:1,overflow:"auto",height:"100%",overflowX:"hidden"},children:ot.jsx(xV,{backend:u3,options:_3(),children:ot.jsx(K3,{ref:g,classes:{root:"treeRoot",draggingSource:"draggingSource",placeholder:"placeholderContainer"},tree:n,rootId:0,sort:!1,insertDroppableFirst:!1,enableAnimateExpand:!0,dropTargetOffset:10,onDrop:pe,render:(ce,se)=>{function je(nt){return n.every(ye=>ye.parent!==nt.id)?nt:{...nt,children:n.filter(ye=>ye.parent===nt.id).map(ye=>je(ye.data))}}const qe=je(ce.data),Xe=nt=>S.some(ye=>ye.id===nt);function rt(nt,ye){r(Pe=>Pe.map(Ue=>Ue.id===nt?{...Ue,data:{...Ue.data,isFavorite:ye}}:Ue))}return ot.jsx(cO,{isActive:Xe,isCollapsed:l,replacePath:e.replacePath,ssr:e.ssr,brandColors:e.brandColors,baseUrl:e.baseUrl,node:ce,params:se,nodes:n,item:qe,expanded:()=>!1,toggleExpand:()=>{},level:se.depth,onSetFavoriteSuccess:rt})},placeholderRender:(ce,{depth:se})=>{var je;return ot.jsx(r4,{node:ce,depth:se,color:(je=e.brandColors)==null?void 0:je.primary300,isCollapsed:l})},canDrag:()=>!o,canDrop:(ce,{dragSource:se,dropTargetId:je})=>(se==null?void 0:se.parent)===je,onDragStart:ce=>{console.log("onDragStart",ce)},onChangeOpen:ce=>{localStorage.getItem("isCollapsed")==="false"&&(console.log("onChangeOpen:",ce),_(ce))},initialOpen:x})})}),ot.jsxs("div",{className:W("wrap-section side-bar__wrap-btn-logout"),children:[ot.jsxs("button",{className:W("side-bar__logout-btn"),onClick:()=>R(!0),children:[ot.jsx(B5,{className:W("side-bar__icon-logout")}),ot.jsx("span",{className:W("side-bar__logout-btn__text"),children:"Logout"})]}),ot.jsx(C1,{isOpen:L,onClose:()=>R(!1),onConfirm:()=>e.logout?e.logout():M1(e.baseUrl)})]})]})}function u4(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 l4(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:u4(t,d.path)})).sort((d,y)=>{const g=new URL(d.itemUrl).searchParams,S=new URL(y.itemUrl).searchParams;return Array.from(g).length-Array.from(S).length}).filter(({itemUrl:d})=>n.origin===d.origin);const i=r.filter(({itemUrl:d})=>n.pathname===d.pathname),o=r.filter(({itemUrl:d})=>n.pathname.includes(d.pathname));r=i.length>0?i:o,r=r.sort((d,y)=>y.matchingParamsCount-d.matchingParamsCount);let s=r.length>0?(c=r.find(d=>d.item.parentKey))==null?void 0:c.item:null;console.log("matchingItems:",r);let l=[];for(;s;)l=[s,...l],s=e.find(d=>d.id===(s==null?void 0:s.parentKey))||null;return console.log("parents:",l),l}function gO(e,t){return e.map(n=>{var r;return(r=n.children)!=null&&r.length?(n.path="",n.children=gO(n.children,t)):n.path=t(n.path),n})}function vO(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=vO(n.children)),n))}function c4(e){return ot.jsx(pO.div,{children:ot.jsx(V1,{styles:[hT,$5,i4],style:{position:"sticky",zIndex:20},children:ot.jsx(s4,{...e})})})}const Nf=new Map;Nf.set("text",e=>{var t;return ot.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center",lineHeight:"24px"},children:(t=e.name.trim().at(0))==null?void 0:t.toUpperCase()})});Nf.set("svgHtml",e=>{function t(n){function r(o){const l=new DOMParser().parseFromString(o,"image/svg+xml").querySelector("svg");return l?(l.querySelectorAll("path").forEach(d=>{d.hasAttribute("fill")&&d.setAttribute("fill","currentColor"),d.hasAttribute("stroke")&&d.setAttribute("stroke","currentColor")}),l.outerHTML):""}const i=r(n.svgString);return ot.jsx("div",{dangerouslySetInnerHTML:{__html:i},style:{width:24,height:24,margin:"0 auto"}})}return ot.jsx(t,{svgString:e.icon})});Nf.set("svgHttp",e=>ot.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=>ot.jsx("img",{src:e.icon||"/",alt:e.name,style:{height:24,maxHeight:24,maxWidth:24}}));function f4(e){return e.icon=(e.icon||"").trim(),e.icon?e.icon.startsWith("<svg")?"svgHtml":e.icon.endsWith(".svg")?"svgHttp":"img":"text"}function d4({item:e}){return(Nf.get(f4(e))||Nf.get("text"))(e)}const h4={"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:{}};/**
142
- * @license
143
- * Lodash <https://lodash.com/>
144
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
145
- * Released under MIT license <https://lodash.com/license>
146
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
147
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
148
- */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",l="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",d=500,y="__lodash_placeholder__",g=1,S=2,T=4,_=1,I=2,L=1,R=2,U=4,W=8,ne=16,Q=32,pe=64,x=128,ce=256,se=512,je=30,qe="...",Xe=800,rt=16,nt=1,ye=2,Pe=3,Ue=1/0,Je=9007199254740991,st=17976931348623157e292,ke=0/0,_e=4294967295,Ve=_e-1,He=_e>>>1,Re=[["ary",x],["bind",L],["bindKey",R],["curry",W],["curryRight",ne],["flip",se],["partial",Q],["partialRight",pe],["rearg",ce]],Fe="[object Arguments]",ze="[object Array]",ut="[object AsyncFunction]",mt="[object Boolean]",wt="[object Date]",vt="[object DOMException]",Et="[object Error]",it="[object Function]",$t="[object GeneratorFunction]",Ht="[object Map]",Xn="[object Number]",br="[object Null]",Kn="[object Object]",kn="[object Promise]",ji="[object Proxy]",Pr="[object RegExp]",rr="[object Set]",cn="[object String]",hn="[object Symbol]",pn="[object Undefined]",gt="[object WeakMap]",Rn="[object WeakSet]",ci="[object ArrayBuffer]",ln="[object DataView]",Bi="[object Float32Array]",$i="[object Float64Array]",Vi="[object Int8Array]",_r="[object Int16Array]",Un="[object Int32Array]",Rr="[object Uint8Array]",wr="[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,fi=RegExp(ir.source),Hi=RegExp(Zt.source),In=/<%-([\s\S]+?)%>/g,gn=/<%([\s\S]+?)%>/g,di=/<%=([\s\S]+?)%>/g,hi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,mn=/^\w*$/,uo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xr=/[\\^$.*+?()[\]{}|]/g,pi=RegExp(xr.source),fn=/^\s+/,Si=/\s/,Ra=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ia=/\{\n\/\* \[wrapped with (.+)\] \*/,Zr=/,? & /,lo=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,co=/[()=,{}\[\]\/\s]/,_o=/\\(\\)?/g,Ti=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,gi=/\w*$/,Ci=/^[-+]0x[0-9a-f]+$/i,fo=/^0b[01]+$/i,Ei=/^\[object .+?Constructor\]$/,Jr=/^0o[0-7]+$/i,Sr=/^(?:0|[1-9]\d*)$/,Ir=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Qr=/($^)/,Ar=/['\n\r\u2028\u2029\\]/g,Wn="\\ud800-\\udfff",vn="\\u0300-\\u036f",Mr="\\ufe20-\\ufe2f",Tr="\\u20d0-\\u20ff",An=vn+Mr+Tr,vi="\\u2700-\\u27bf",Lr="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",Ui="A-Z\\xc0-\\xd6\\xd8-\\xde",_n="\\ufe0e\\ufe0f",Cr=ei+Jn+ti+ni,fr="['’]",Ro="["+Wn+"]",Wi="["+Cr+"]",Fr="["+An+"]",E="\\d+",j="["+vi+"]",q="["+Lr+"]",re="[^"+Wn+Cr+E+vi+Lr+Ui+"]",Oe="\\ud83c[\\udffb-\\udfff]",be="(?:"+Fr+"|"+Oe+")",Me="[^"+Wn+"]",et="(?:\\ud83c[\\udde6-\\uddff]){2}",yt="[\\ud800-\\udbff][\\udc00-\\udfff]",Tt="["+Ui+"]",bt="\\u200d",Ut="(?:"+q+"|"+re+")",Qn="(?:"+Tt+"|"+re+")",zn="(?:"+fr+"(?:d|ll|m|re|s|t|ve))?",On="(?:"+fr+"(?:D|LL|M|RE|S|T|VE))?",Nr=be+"?",or="["+_n+"]?",zi="(?:"+bt+"(?:"+[Me,et,yt].join("|")+")"+or+Nr+")*",mi="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Yi="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",jr=or+Nr+zi,Io="(?:"+[j,et,yt].join("|")+")"+jr,Vs="(?:"+[Me+Fr+"?",Fr,et,yt,Ro].join("|")+")",Aa=RegExp(fr,"g"),Ma=RegExp(Fr,"g"),La=RegExp(Oe+"(?="+Oe+")|"+Vs+jr,"g"),Fa=RegExp([Tt+"?"+q+"+"+zn+"(?="+[Wi,Tt,"$"].join("|")+")",Qn+"+"+On+"(?="+[Wi,Tt+Ut,"$"].join("|")+")",Tt+"?"+Ut+"+"+zn,Tt+"+"+On,Yi,mi,E,Io].join("|"),"g"),yi=RegExp("["+bt+Wn+An+_n+"]"),Ao=/[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[Bi]=Qt[$i]=Qt[Vi]=Qt[_r]=Qt[Un]=Qt[Rr]=Qt[wr]=Qt[qr]=Qt[Xr]=!0,Qt[Fe]=Qt[ze]=Qt[ci]=Qt[mt]=Qt[ln]=Qt[wt]=Qt[Et]=Qt[it]=Qt[Ht]=Qt[Xn]=Qt[Kn]=Qt[Pr]=Qt[rr]=Qt[cn]=Qt[gt]=!1;var Vt={};Vt[Fe]=Vt[ze]=Vt[ci]=Vt[ln]=Vt[mt]=Vt[wt]=Vt[Bi]=Vt[$i]=Vt[Vi]=Vt[_r]=Vt[Un]=Vt[Ht]=Vt[Xn]=Vt[Kn]=Vt[Pr]=Vt[rr]=Vt[cn]=Vt[hn]=Vt[Rr]=Vt[wr]=Vt[qr]=Vt[Xr]=!0,Vt[Et]=Vt[it]=Vt[gt]=!1;var ki={À:"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;"},Mo={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},bi={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dr=parseFloat,Na=parseInt,ia=typeof Ko=="object"&&Ko&&Ko.Object===Object&&Ko,os=typeof self=="object"&&self&&self.Object===Object&&self,yn=ia||os||Function("return this")(),Lo=t&&!t.nodeType&&t,wi=Lo&&!0&&e&&!e.nodeType&&e,as=wi&&wi.exports===Lo,ho=as&&ia.process,er=function(){try{var Z=wi&&wi.require&&wi.require("util").types;return Z||ho&&ho.binding&&ho.binding("util")}catch{}}(),f=er&&er.isArrayBuffer,v=er&&er.isDate,C=er&&er.isMap,O=er&&er.isRegExp,N=er&&er.isSet,B=er&&er.isTypedArray;function H(Z,he,de){switch(de.length){case 0:return Z.call(he);case 1:return Z.call(he,de[0]);case 2:return Z.call(he,de[0],de[1]);case 3:return Z.call(he,de[0],de[1],de[2])}return Z.apply(he,de)}function le(Z,he,de,$e){for(var We=-1,ft=Z==null?0:Z.length;++We<ft;){var dt=Z[We];he($e,dt,de(dt),Z)}return $e}function oe(Z,he){for(var de=-1,$e=Z==null?0:Z.length;++de<$e&&he(Z[de],de,Z)!==!1;);return Z}function we(Z,he){for(var de=Z==null?0:Z.length;de--&&he(Z[de],de,Z)!==!1;);return Z}function Le(Z,he){for(var de=-1,$e=Z==null?0:Z.length;++de<$e;)if(!he(Z[de],de,Z))return!1;return!0}function Ne(Z,he){for(var de=-1,$e=Z==null?0:Z.length,We=0,ft=[];++de<$e;){var dt=Z[de];he(dt,de,Z)&&(ft[We++]=dt)}return ft}function Ce(Z,he){var de=Z==null?0:Z.length;return!!de&&on(Z,he,0)>-1}function Ye(Z,he,de){for(var $e=-1,We=Z==null?0:Z.length;++$e<We;)if(de(he,Z[$e]))return!0;return!1}function ct(Z,he){for(var de=-1,$e=Z==null?0:Z.length,We=Array($e);++de<$e;)We[de]=he(Z[de],de,Z);return We}function Pt(Z,he){for(var de=-1,$e=he.length,We=Z.length;++de<$e;)Z[We+de]=he[de];return Z}function It(Z,he,de,$e){var We=-1,ft=Z==null?0:Z.length;for($e&&ft&&(de=Z[++We]);++We<ft;)de=he(de,Z[We],We,Z);return de}function Mn(Z,he,de,$e){var We=Z==null?0:Z.length;for($e&&We&&(de=Z[--We]);We--;)de=he(de,Z[We],We,Z);return de}function dn(Z,he){for(var de=-1,$e=Z==null?0:Z.length;++de<$e;)if(he(Z[de],de,Z))return!0;return!1}var Br=k("length");function $r(Z){return Z.split("")}function Wt(Z){return Z.match(lo)||[]}function Vr(Z,he,de){var $e;return de(Z,function(We,ft,dt){if(he(We,ft,dt))return $e=ft,!1}),$e}function zt(Z,he,de,$e){for(var We=Z.length,ft=de+($e?1:-1);$e?ft--:++ft<We;)if(he(Z[ft],ft,Z))return ft;return-1}function on(Z,he,de){return he===he?Ml(Z,he,de):zt(Z,go,de)}function po(Z,he,de,$e){for(var We=de-1,ft=Z.length;++We<ft;)if($e(Z[We],he))return We;return-1}function go(Z){return Z!==Z}function Er(Z,he){var de=Z==null?0:Z.length;return de?Se(Z,he)/de:ke}function k(Z){return function(he){return he==null?n:he[Z]}}function F(Z){return function(he){return Z==null?n:Z[he]}}function z(Z,he,de,$e,We){return We(Z,function(ft,dt,lt){de=$e?($e=!1,ft):he(de,ft,dt,lt)}),de}function te(Z,he){var de=Z.length;for(Z.sort(he);de--;)Z[de]=Z[de].value;return Z}function Se(Z,he){for(var de,$e=-1,We=Z.length;++$e<We;){var ft=he(Z[$e]);ft!==n&&(de=de===n?ft:de+ft)}return de}function Te(Z,he){for(var de=-1,$e=Array(Z);++de<Z;)$e[de]=he(de);return $e}function Be(Z,he){return ct(he,function(de){return[de,Z[de]]})}function Qe(Z){return Z&&Z.slice(0,Ws(Z)+1).replace(fn,"")}function xt(Z){return function(he){return Z(he)}}function Nt(Z,he){return ct(he,function(de){return Z[de]})}function Dt(Z,he){return Z.has(he)}function Ct(Z,he){for(var de=-1,$e=Z.length;++de<$e&&on(he,Z[de],0)>-1;);return de}function Bn(Z,he){for(var de=Z.length;de--&&on(he,Z[de],0)>-1;);return de}function Tn(Z,he){for(var de=Z.length,$e=0;de--;)Z[de]===he&&++$e;return $e}var Yn=F(ki),oa=F(ri);function ss(Z){return"\\"+bi[Z]}function aa(Z,he){return Z==null?n:Z[he]}function ii(Z){return yi.test(Z)}function Hs(Z){return Ao.test(Z)}function vo(Z){for(var he,de=[];!(he=Z.next()).done;)de.push(he.value);return de}function us(Z){var he=-1,de=Array(Z.size);return Z.forEach(function($e,We){de[++he]=[We,$e]}),de}function sa(Z,he){return function(de){return Z(he(de))}}function xi(Z,he){for(var de=-1,$e=Z.length,We=0,ft=[];++de<$e;){var dt=Z[de];(dt===he||dt===y)&&(Z[de]=y,ft[We++]=de)}return ft}function Gi(Z){var he=-1,de=Array(Z.size);return Z.forEach(function($e){de[++he]=$e}),de}function Us(Z){var he=-1,de=Array(Z.size);return Z.forEach(function($e){de[++he]=[$e,$e]}),de}function Ml(Z,he,de){for(var $e=de-1,We=Z.length;++$e<We;)if(Z[$e]===he)return $e;return-1}function ua(Z,he,de){for(var $e=de+1;$e--;)if(Z[$e]===he)return $e;return $e}function mo(Z){return ii(Z)?cs(Z):Br(Z)}function hr(Z){return ii(Z)?ee(Z):$r(Z)}function Ws(Z){for(var he=Z.length;he--&&Si.test(Z.charAt(he)););return he}var ls=F(Mo);function cs(Z){for(var he=La.lastIndex=0;La.test(Z);)++he;return he}function ee(Z){return Z.match(La)||[]}function me(Z){return Z.match(Fa)||[]}var De=function Z(he){he=he==null?yn:Ee.defaults(yn.Object(),he,Ee.pick(yn,ra));var de=he.Array,$e=he.Date,We=he.Error,ft=he.Function,dt=he.Math,lt=he.Object,At=he.RegExp,kt=he.String,Yt=he.TypeError,Ln=de.prototype,ar=ft.prototype,Gn=lt.prototype,Hr=he["__core-js_shared__"],qi=ar.toString,Mt=Gn.hasOwnProperty,Uc=0,Dn=function(){var a=/[^.]+$/.exec(Hr&&Hr.keys&&Hr.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}(),la=Gn.toString,Ll=qi.call(lt),Pn=yn._,fs=At("^"+qi.call(Mt).replace(xr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ds=as?he.Buffer:n,yo=he.Symbol,hs=he.Uint8Array,Nu=ds?ds.allocUnsafe:n,ps=sa(lt.getPrototypeOf,lt),Fl=lt.create,Nl=Gn.propertyIsEnumerable,ja=Ln.splice,ju=yo?yo.isConcatSpreadable:n,Fo=yo?yo.iterator:n,Xi=yo?yo.toStringTag:n,No=function(){try{var a=dc(lt,"defineProperty");return a({},"",{}),a}catch{}}(),zs=he.clearTimeout!==yn.clearTimeout&&he.clearTimeout,Ys=$e&&$e.now!==yn.Date.now&&$e.now,Bu=he.setTimeout!==yn.setTimeout&&he.setTimeout,Gs=dt.ceil,gs=dt.floor,qs=lt.getOwnPropertySymbols,jl=ds?ds.isBuffer:n,Bl=he.isFinite,vs=Ln.join,$l=sa(lt.keys,lt),Fn=dt.max,Nn=dt.min,Vl=$e.now,Hl=he.parseInt,jo=dt.random,Wc=Ln.reverse,Bo=dc(he,"DataView"),Ki=dc(he,"Map"),Xs=dc(he,"Promise"),Ur=dc(he,"Set"),ca=dc(he,"WeakMap"),fa=dc(lt,"create"),da=ca&&new ca,ha={},Ks=hc(Bo),zc=hc(Ki),Yc=hc(Xs),$u=hc(Ur),Zs=hc(ca),ms=yo?yo.prototype:n,Js=ms?ms.valueOf:n,Ba=ms?ms.toString:n;function G(a){if(ur(a)&&!Xt(a)&&!(a instanceof qt)){if(a instanceof Wr)return a;if(Mt.call(a,"__wrapped__"))return bb(a)}return new Wr(a)}var pa=function(){function a(){}return function(u){if(!tr(u))return{};if(Fl)return Fl(u);a.prototype=u;var m=new a;return a.prototype=n,m}}();function $a(){}function Wr(a,u){this.__wrapped__=a,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=n}G.templateSettings={escape:In,evaluate:gn,interpolate:di,variable:"",imports:{_:G}},G.prototype=$a.prototype,G.prototype.constructor=G,Wr.prototype=pa($a.prototype),Wr.prototype.constructor=Wr;function qt(a){this.__wrapped__=a,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=_e,this.__views__=[]}function Vu(){var a=new qt(this.__wrapped__);return a.__actions__=vr(this.__actions__),a.__dir__=this.__dir__,a.__filtered__=this.__filtered__,a.__iteratees__=vr(this.__iteratees__),a.__takeCount__=this.__takeCount__,a.__views__=vr(this.__views__),a}function ys(){if(this.__filtered__){var a=new qt(this);a.__dir__=-1,a.__filtered__=!0}else a=this.clone(),a.__dir__*=-1;return a}function Qs(){var a=this.__wrapped__.value(),u=this.__dir__,m=Xt(a),P=u<0,V=m?a.length:0,X=rD(0,V,this.__views__),ue=X.start,ve=X.end,xe=ve-ue,Ge=P?ve:ue-1,Ke=this.__iteratees__,tt=Ke.length,pt=0,Ot=Nn(xe,this.__takeCount__);if(!m||!P&&V==xe&&Ot==xe)return si(a,this.__actions__);var Lt=[];e:for(;xe--&&pt<Ot;){Ge+=u;for(var tn=-1,Ft=a[Ge];++tn<tt;){var rn=Ke[tn],an=rn.iteratee,Go=rn.type,ro=an(Ft);if(Go==ye)Ft=ro;else if(!ro){if(Go==nt)continue e;break e}}Lt[pt++]=Ft}return Lt}qt.prototype=pa($a.prototype),qt.prototype.constructor=qt;function bo(a){var u=-1,m=a==null?0:a.length;for(this.clear();++u<m;){var P=a[u];this.set(P[0],P[1])}}function bs(){this.__data__=fa?fa(null):{},this.size=0}function Hu(a){var u=this.has(a)&&delete this.__data__[a];return this.size-=u?1:0,u}function Uu(a){var u=this.__data__;if(fa){var m=u[a];return m===c?n:m}return Mt.call(u,a)?u[a]:n}function Wu(a){var u=this.__data__;return fa?u[a]!==n:Mt.call(u,a)}function Gc(a,u){var m=this.__data__;return this.size+=this.has(a)?0:1,m[a]=fa&&u===n?c:u,this}bo.prototype.clear=bs,bo.prototype.delete=Hu,bo.prototype.get=Uu,bo.prototype.has=Wu,bo.prototype.set=Gc;function wo(a){var u=-1,m=a==null?0:a.length;for(this.clear();++u<m;){var P=a[u];this.set(P[0],P[1])}}function qc(){this.__data__=[],this.size=0}function $f(a){var u=this.__data__,m=Di(u,a);if(m<0)return!1;var P=u.length-1;return m==P?u.pop():ja.call(u,m,1),--this.size,!0}function Vf(a){var u=this.__data__,m=Di(u,a);return m<0?n:u[m][1]}function Xc(a){return Di(this.__data__,a)>-1}function Hf(a,u){var m=this.__data__,P=Di(m,a);return P<0?(++this.size,m.push([a,u])):m[P][1]=u,this}wo.prototype.clear=qc,wo.prototype.delete=$f,wo.prototype.get=Vf,wo.prototype.has=Xc,wo.prototype.set=Hf;function $o(a){var u=-1,m=a==null?0:a.length;for(this.clear();++u<m;){var P=a[u];this.set(P[0],P[1])}}function zu(){this.size=0,this.__data__={hash:new bo,map:new(Ki||wo),string:new bo}}function Yu(a){var u=eh(this,a).delete(a);return this.size-=u?1:0,u}function Uf(a){return eh(this,a).get(a)}function Ul(a){return eh(this,a).has(a)}function Gu(a,u){var m=eh(this,a),P=m.size;return m.set(a,u),this.size+=m.size==P?0:1,this}$o.prototype.clear=zu,$o.prototype.delete=Yu,$o.prototype.get=Uf,$o.prototype.has=Ul,$o.prototype.set=Gu;function Va(a){var u=-1,m=a==null?0:a.length;for(this.__data__=new $o;++u<m;)this.add(a[u])}function Wf(a){return this.__data__.set(a,c),this}function zf(a){return this.__data__.has(a)}Va.prototype.add=Va.prototype.push=Wf,Va.prototype.has=zf;function Zi(a){var u=this.__data__=new wo(a);this.size=u.size}function Vo(){this.__data__=new wo,this.size=0}function Wl(a){var u=this.__data__,m=u.delete(a);return this.size=u.size,m}function qu(a){return this.__data__.get(a)}function nn(a){return this.__data__.has(a)}function Ha(a,u){var m=this.__data__;if(m instanceof wo){var P=m.__data__;if(!Ki||P.length<i-1)return P.push([a,u]),this.size=++m.size,this;m=this.__data__=new $o(P)}return m.set(a,u),this.size=m.size,this}Zi.prototype.clear=Vo,Zi.prototype.delete=Wl,Zi.prototype.get=qu,Zi.prototype.has=nn,Zi.prototype.set=Ha;function ga(a,u){var m=Xt(a),P=!m&&pc(a),V=!m&&!P&&ll(a),X=!m&&!P&&!V&&cf(a),ue=m||P||V||X,ve=ue?Te(a.length,kt):[],xe=ve.length;for(var Ge in a)(u||Mt.call(a,Ge))&&!(ue&&(Ge=="length"||V&&(Ge=="offset"||Ge=="parent")||X&&(Ge=="buffer"||Ge=="byteLength"||Ge=="byteOffset")||yu(Ge,xe)))&&ve.push(Ge);return ve}function un(a){var u=a.length;return u?a[tl(0,u-1)]:n}function Oi(a,u){return th(vr(a),va(u,0,a.length))}function Ua(a){return th(vr(a))}function ws(a,u,m){(m!==n&&!Ja(a[u],m)||m===n&&!(u in a))&&pr(a,u,m)}function $n(a,u,m){var P=a[u];(!(Mt.call(a,u)&&Ja(P,m))||m===n&&!(u in a))&&pr(a,u,m)}function Di(a,u){for(var m=a.length;m--;)if(Ja(a[m][0],u))return m;return-1}function Wa(a,u,m,P){return ma(a,function(V,X,ue){u(P,V,m(V),ue)}),P}function Ji(a,u){return a&&To(u,ui(u),a)}function za(a,u){return a&&To(u,Eo(u),a)}function pr(a,u,m){u=="__proto__"&&No?No(a,u,{configurable:!0,enumerable:!0,value:m,writable:!0}):a[u]=m}function zl(a,u){for(var m=-1,P=u.length,V=de(P),X=a==null;++m<P;)V[m]=X?n:Cg(a,u[m]);return V}function va(a,u,m){return a===a&&(m!==n&&(a=a<=m?a:m),u!==n&&(a=a>=u?a:u)),a}function zr(a,u,m,P,V,X){var ue,ve=u&g,xe=u&S,Ge=u&T;if(m&&(ue=V?m(a,P,V,X):m(a)),ue!==n)return ue;if(!tr(a))return a;var Ke=Xt(a);if(Ke){if(ue=oD(a),!ve)return vr(a,ue)}else{var tt=Ii(a),pt=tt==it||tt==$t;if(ll(a))return uc(a,ve);if(tt==Kn||tt==Fe||pt&&!V){if(ue=xe||pt?{}:cb(a),!ve)return xe?sl(a,za(ue,a)):sf(a,Ji(ue,a))}else{if(!Vt[tt])return V?a:{};ue=aD(a,tt,ve)}}X||(X=new Zi);var Ot=X.get(a);if(Ot)return Ot;X.set(a,ue),Bb(a)?a.forEach(function(Ft){ue.add(zr(Ft,u,m,Ft,a,X))}):Nb(a)&&a.forEach(function(Ft,rn){ue.set(rn,zr(Ft,u,m,rn,a,X))});var Lt=Ge?xe?cg:lg:xe?Eo:ui,tn=Ke?n:Lt(a);return oe(tn||a,function(Ft,rn){tn&&(rn=Ft,Ft=a[rn]),$n(ue,rn,zr(Ft,u,m,rn,a,X))}),ue}function Yl(a){var u=ui(a);return function(m){return Kc(m,a,u)}}function Kc(a,u,m){var P=m.length;if(a==null)return!P;for(a=lt(a);P--;){var V=m[P],X=u[V],ue=a[V];if(ue===n&&!(V in a)||!X(ue))return!1}return!0}function Gl(a,u,m){if(typeof a!="function")throw new Yt(s);return Kf(function(){a.apply(n,m)},u)}function Ho(a,u,m,P){var V=-1,X=Ce,ue=!0,ve=a.length,xe=[],Ge=u.length;if(!ve)return xe;m&&(u=ct(u,xt(m))),P?(X=Ye,ue=!1):u.length>=i&&(X=Dt,ue=!1,u=new Va(u));e:for(;++V<ve;){var Ke=a[V],tt=m==null?Ke:m(Ke);if(Ke=P||Ke!==0?Ke:0,ue&&tt===tt){for(var pt=Ge;pt--;)if(u[pt]===tt)continue e;xe.push(Ke)}else X(u,tt,P)||xe.push(Ke)}return xe}var ma=w(xo),ql=w(Zl,!0);function Xu(a,u){var m=!0;return ma(a,function(P,V,X){return m=!!u(P,V,X),m}),m}function Ku(a,u,m){for(var P=-1,V=a.length;++P<V;){var X=a[P],ue=u(X);if(ue!=null&&(ve===n?ue===ue&&!Yo(ue):m(ue,ve)))var ve=ue,xe=X}return xe}function Zc(a,u,m,P){var V=a.length;for(m=en(m),m<0&&(m=-m>V?0:V+m),P=P===n||P>V?V:en(P),P<0&&(P+=V),P=m>P?0:Vb(P);m<P;)a[m++]=u;return a}function Xl(a,u){var m=[];return ma(a,function(P,V,X){u(P,V,X)&&m.push(P)}),m}function gr(a,u,m,P,V){var X=-1,ue=a.length;for(m||(m=uD),V||(V=[]);++X<ue;){var ve=a[X];u>0&&m(ve)?u>1?gr(ve,u-1,m,P,V):Pt(V,ve):P||(V[V.length]=ve)}return V}var Kl=A(),Jc=A(!0);function xo(a,u){return a&&Kl(a,u,ui)}function Zl(a,u){return a&&Jc(a,u,ui)}function Zu(a,u){return Ne(u,function(m){return bu(a[m])})}function Ya(a,u){u=zo(u,a);for(var m=0,P=u.length;a!=null&&m<P;)a=a[Ds(u[m++])];return m&&m==P?a:n}function eu(a,u,m){var P=u(a);return Xt(a)?P:Pt(P,m(a))}function kr(a){return a==null?a===n?pn:br:Xi&&Xi in lt(a)?nD(a):gD(a)}function tu(a,u){return a>u}function nu(a,u){return a!=null&&Mt.call(a,u)}function Qc(a,u){return a!=null&&u in lt(a)}function ru(a,u,m){return a>=Nn(u,m)&&a<Fn(u,m)}function xs(a,u,m){for(var P=m?Ye:Ce,V=a[0].length,X=a.length,ue=X,ve=de(X),xe=1/0,Ge=[];ue--;){var Ke=a[ue];ue&&u&&(Ke=ct(Ke,xt(u))),xe=Nn(Ke.length,xe),ve[ue]=!m&&(u||V>=120&&Ke.length>=120)?new Va(ue&&Ke):n}Ke=a[0];var tt=-1,pt=ve[0];e:for(;++tt<V&&Ge.length<xe;){var Ot=Ke[tt],Lt=u?u(Ot):Ot;if(Ot=m||Ot!==0?Ot:0,!(pt?Dt(pt,Lt):P(Ge,Lt,m))){for(ue=X;--ue;){var tn=ve[ue];if(!(tn?Dt(tn,Lt):P(a[ue],Lt,m)))continue e}pt&&pt.push(Lt),Ge.push(Ot)}}return Ge}function Jl(a,u,m,P){return xo(a,function(V,X,ue){u(P,m(V),X,ue)}),P}function Pi(a,u,m){u=zo(u,a),a=pb(a,u);var P=a==null?a:a[Ds(ba(u))];return P==null?n:H(P,a,m)}function iu(a){return ur(a)&&kr(a)==Fe}function Ju(a){return ur(a)&&kr(a)==ci}function Ga(a){return ur(a)&&kr(a)==wt}function Ss(a,u,m,P,V){return a===u?!0:a==null||u==null||!ur(a)&&!ur(u)?a!==a&&u!==u:Ql(a,u,m,P,Ss,V)}function Ql(a,u,m,P,V,X){var ue=Xt(a),ve=Xt(u),xe=ue?ze:Ii(a),Ge=ve?ze:Ii(u);xe=xe==Fe?Kn:xe,Ge=Ge==Fe?Kn:Ge;var Ke=xe==Kn,tt=Ge==Kn,pt=xe==Ge;if(pt&&ll(a)){if(!ll(u))return!1;ue=!0,Ke=!1}if(pt&&!Ke)return X||(X=new Zi),ue||cf(a)?vu(a,u,m,P,V,X):sg(a,u,xe,m,P,V,X);if(!(m&_)){var Ot=Ke&&Mt.call(a,"__wrapped__"),Lt=tt&&Mt.call(u,"__wrapped__");if(Ot||Lt){var tn=Ot?a.value():a,Ft=Lt?u.value():u;return X||(X=new Zi),V(tn,Ft,m,P,X)}}return pt?(X||(X=new Zi),ug(a,u,m,P,V,X)):!1}function qa(a){return ur(a)&&Ii(a)==Ht}function ec(a,u,m,P){var V=m.length,X=V,ue=!P;if(a==null)return!X;for(a=lt(a);V--;){var ve=m[V];if(ue&&ve[2]?ve[1]!==a[ve[0]]:!(ve[0]in a))return!1}for(;++V<X;){ve=m[V];var xe=ve[0],Ge=a[xe],Ke=ve[1];if(ue&&ve[2]){if(Ge===n&&!(xe in a))return!1}else{var tt=new Zi;if(P)var pt=P(Ge,Ke,xe,a,u,tt);if(!(pt===n?Ss(Ke,Ge,_|I,P,tt):pt))return!1}}return!0}function tc(a){if(!tr(a)||cD(a))return!1;var u=bu(a)?fs:Ei;return u.test(hc(a))}function So(a){return ur(a)&&kr(a)==Pr}function Yf(a){return ur(a)&&Ii(a)==rr}function Gf(a){return ur(a)&&sh(a.length)&&!!Qt[kr(a)]}function Ts(a){return typeof a=="function"?a:a==null?ko:typeof a=="object"?Xt(a)?eo(a[0],a[1]):Uo(a):Jb(a)}function ou(a){if(!Xf(a))return $l(a);var u=[];for(var m in lt(a))Mt.call(a,m)&&m!="constructor"&&u.push(m);return u}function Qu(a){if(!tr(a))return pD(a);var u=Xf(a),m=[];for(var P in a)P=="constructor"&&(u||!Mt.call(a,P))||m.push(P);return m}function Qi(a,u){return a<u}function Cs(a,u){var m=-1,P=Co(a)?de(a.length):[];return ma(a,function(V,X,ue){P[++m]=u(V,X,ue)}),P}function Uo(a){var u=dg(a);return u.length==1&&u[0][2]?db(u[0][0],u[0][1]):function(m){return m===a||ec(m,a,u)}}function eo(a,u){return pg(a)&&fb(u)?db(Ds(a),u):function(m){var P=Cg(m,a);return P===n&&P===u?Eg(m,a):Ss(u,P,_|I)}}function Es(a,u,m,P,V){a!==u&&Kl(u,function(X,ue){if(V||(V=new Zi),tr(X))_i(a,u,ue,m,Es,P,V);else{var ve=P?P(vg(a,ue),X,ue+"",a,u,V):n;ve===n&&(ve=X),ws(a,ue,ve)}},Eo)}function _i(a,u,m,P,V,X,ue){var ve=vg(a,m),xe=vg(u,m),Ge=ue.get(xe);if(Ge){ws(a,m,Ge);return}var Ke=X?X(ve,xe,m+"",a,u,ue):n,tt=Ke===n;if(tt){var pt=Xt(xe),Ot=!pt&&ll(xe),Lt=!pt&&!Ot&&cf(xe);Ke=xe,pt||Ot||Lt?Xt(ve)?Ke=ve:mr(ve)?Ke=vr(ve):Ot?(tt=!1,Ke=uc(xe,!0)):Lt?(tt=!1,Ke=lc(xe,!0)):Ke=[]:Zf(xe)||pc(xe)?(Ke=ve,pc(ve)?Ke=Hb(ve):(!tr(ve)||bu(ve))&&(Ke=cb(xe))):tt=!1}tt&&(ue.set(xe,Ke),V(Ke,xe,P,X,ue),ue.delete(xe)),ws(a,m,Ke)}function Xa(a,u){var m=a.length;if(m)return u+=u<0?m:0,yu(u,m)?a[u]:n}function el(a,u,m){u.length?u=ct(u,function(X){return Xt(X)?function(ue){return Ya(ue,X.length===1?X[0]:X)}:X}):u=[ko];var P=-1;u=ct(u,xt(Rt()));var V=Cs(a,function(X,ue,ve){var xe=ct(u,function(Ge){return Ge(X)});return{criteria:xe,index:++P,value:X}});return te(V,function(X,ue){return gu(X,ue,m)})}function Ri(a,u){return Wo(a,u,function(m,P){return Eg(a,P)})}function Wo(a,u,m){for(var P=-1,V=u.length,X={};++P<V;){var ue=u[P],ve=Ya(a,ue);m(ve,ue)&&Za(X,zo(ue,a),ve)}return X}function nc(a){return function(u){return Ya(u,a)}}function Ka(a,u,m,P){var V=P?po:on,X=-1,ue=u.length,ve=a;for(a===u&&(u=vr(u)),m&&(ve=ct(a,xt(m)));++X<ue;)for(var xe=0,Ge=u[X],Ke=m?m(Ge):Ge;(xe=V(ve,Ke,xe,P))>-1;)ve!==a&&ja.call(ve,xe,1),ja.call(a,xe,1);return a}function au(a,u){for(var m=a?u.length:0,P=m-1;m--;){var V=u[m];if(m==P||V!==X){var X=V;yu(V)?ja.call(a,V,1):ac(a,V)}}return a}function tl(a,u){return a+gs(jo()*(u-a+1))}function ef(a,u,m,P){for(var V=-1,X=Fn(Gs((u-a)/(m||1)),0),ue=de(X);X--;)ue[P?X:++V]=a,a+=m;return ue}function rc(a,u){var m="";if(!a||u<1||u>Je)return m;do u%2&&(m+=a),u=gs(u/2),u&&(a+=a);while(u);return m}function Gt(a,u){return mg(hb(a,u,ko),a+"")}function su(a){return un(ff(a))}function tf(a,u){var m=ff(a);return th(m,va(u,0,m.length))}function Za(a,u,m,P){if(!tr(a))return a;u=zo(u,a);for(var V=-1,X=u.length,ue=X-1,ve=a;ve!=null&&++V<X;){var xe=Ds(u[V]),Ge=m;if(xe==="__proto__"||xe==="constructor"||xe==="prototype")return a;if(V!=ue){var Ke=ve[xe];Ge=P?P(Ke,xe,ve):n,Ge===n&&(Ge=tr(Ke)?Ke:yu(u[V+1])?[]:{})}$n(ve,xe,Ge),ve=ve[xe]}return a}var ks=da?function(a,u){return da.set(a,u),a}:ko,ic=No?function(a,u){return No(a,"toString",{configurable:!0,enumerable:!1,value:Og(u),writable:!0})}:ko;function oc(a){return th(ff(a))}function oi(a,u,m){var P=-1,V=a.length;u<0&&(u=-u>V?0:V+u),m=m>V?V:m,m<0&&(m+=V),V=u>m?0:m-u>>>0,u>>>=0;for(var X=de(V);++P<V;)X[P]=a[P+u];return X}function nf(a,u){var m;return ma(a,function(P,V,X){return m=u(P,V,X),!m}),!!m}function uu(a,u,m){var P=0,V=a==null?P:a.length;if(typeof u=="number"&&u===u&&V<=He){for(;P<V;){var X=P+V>>>1,ue=a[X];ue!==null&&!Yo(ue)&&(m?ue<=u:ue<u)?P=X+1:V=X}return V}return lu(a,u,ko,m)}function lu(a,u,m,P){var V=0,X=a==null?0:a.length;if(X===0)return 0;u=m(u);for(var ue=u!==u,ve=u===null,xe=Yo(u),Ge=u===n;V<X;){var Ke=gs((V+X)/2),tt=m(a[Ke]),pt=tt!==n,Ot=tt===null,Lt=tt===tt,tn=Yo(tt);if(ue)var Ft=P||Lt;else Ge?Ft=Lt&&(P||pt):ve?Ft=Lt&&pt&&(P||!Ot):xe?Ft=Lt&&pt&&!Ot&&(P||!tn):Ot||tn?Ft=!1:Ft=P?tt<=u:tt<u;Ft?V=Ke+1:X=Ke}return Nn(X,Ve)}function rf(a,u){for(var m=-1,P=a.length,V=0,X=[];++m<P;){var ue=a[m],ve=u?u(ue):ue;if(!m||!Ja(ve,xe)){var xe=ve;X[V++]=ue===0?0:ue}}return X}function of(a){return typeof a=="number"?a:Yo(a)?ke:+a}function ai(a){if(typeof a=="string")return a;if(Xt(a))return ct(a,ai)+"";if(Yo(a))return Ba?Ba.call(a):"";var u=a+"";return u=="0"&&1/a==-Ue?"-0":u}function ya(a,u,m){var P=-1,V=Ce,X=a.length,ue=!0,ve=[],xe=ve;if(m)ue=!1,V=Ye;else if(X>=i){var Ge=u?null:Cn(a);if(Ge)return Gi(Ge);ue=!1,V=Dt,xe=new Va}else xe=u?[]:ve;e:for(;++P<X;){var Ke=a[P],tt=u?u(Ke):Ke;if(Ke=m||Ke!==0?Ke:0,ue&&tt===tt){for(var pt=xe.length;pt--;)if(xe[pt]===tt)continue e;u&&xe.push(tt),ve.push(Ke)}else V(xe,tt,m)||(xe!==ve&&xe.push(tt),ve.push(Ke))}return ve}function ac(a,u){return u=zo(u,a),a=pb(a,u),a==null||delete a[Ds(ba(u))]}function nl(a,u,m,P){return Za(a,u,m(Ya(a,u)),P)}function rl(a,u,m,P){for(var V=a.length,X=P?V:-1;(P?X--:++X<V)&&u(a[X],X,a););return m?oi(a,P?0:X,P?X+1:V):oi(a,P?X+1:0,P?V:X)}function si(a,u){var m=a;return m instanceof qt&&(m=m.value()),It(u,function(P,V){return V.func.apply(V.thisArg,Pt([P],V.args))},m)}function cu(a,u,m){var P=a.length;if(P<2)return P?ya(a[0]):[];for(var V=-1,X=de(P);++V<P;)for(var ue=a[V],ve=-1;++ve<P;)ve!=V&&(X[V]=Ho(X[V]||ue,a[ve],u,m));return ya(gr(X,1),u,m)}function sc(a,u,m){for(var P=-1,V=a.length,X=u.length,ue={};++P<V;){var ve=P<X?u[P]:n;m(ue,a[P],ve)}return ue}function Yr(a){return mr(a)?a:[]}function fu(a){return typeof a=="function"?a:ko}function zo(a,u){return Xt(a)?a:pg(a,u)?[a]:yb(bn(a))}var qf=Gt;function to(a,u,m){var P=a.length;return m=m===n?P:m,!u&&m>=P?a:oi(a,u,m)}var du=zs||function(a){return yn.clearTimeout(a)};function uc(a,u){if(u)return a.slice();var m=a.length,P=Nu?Nu(m):new a.constructor(m);return a.copy(P),P}function il(a){var u=new a.constructor(a.byteLength);return new hs(u).set(new hs(a)),u}function hu(a,u){var m=u?il(a.buffer):a.buffer;return new a.constructor(m,a.byteOffset,a.byteLength)}function pu(a){var u=new a.constructor(a.source,gi.exec(a));return u.lastIndex=a.lastIndex,u}function ol(a){return Js?lt(Js.call(a)):{}}function lc(a,u){var m=u?il(a.buffer):a.buffer;return new a.constructor(m,a.byteOffset,a.length)}function Os(a,u){if(a!==u){var m=a!==n,P=a===null,V=a===a,X=Yo(a),ue=u!==n,ve=u===null,xe=u===u,Ge=Yo(u);if(!ve&&!Ge&&!X&&a>u||X&&ue&&xe&&!ve&&!Ge||P&&ue&&xe||!m&&xe||!V)return 1;if(!P&&!X&&!Ge&&a<u||Ge&&m&&V&&!P&&!X||ve&&m&&V||!ue&&V||!xe)return-1}return 0}function gu(a,u,m){for(var P=-1,V=a.criteria,X=u.criteria,ue=V.length,ve=m.length;++P<ue;){var xe=Os(V[P],X[P]);if(xe){if(P>=ve)return xe;var Ge=m[P];return xe*(Ge=="desc"?-1:1)}}return a.index-u.index}function af(a,u,m,P){for(var V=-1,X=a.length,ue=m.length,ve=-1,xe=u.length,Ge=Fn(X-ue,0),Ke=de(xe+Ge),tt=!P;++ve<xe;)Ke[ve]=u[ve];for(;++V<ue;)(tt||V<X)&&(Ke[m[V]]=a[V]);for(;Ge--;)Ke[ve++]=a[V++];return Ke}function al(a,u,m,P){for(var V=-1,X=a.length,ue=-1,ve=m.length,xe=-1,Ge=u.length,Ke=Fn(X-ve,0),tt=de(Ke+Ge),pt=!P;++V<Ke;)tt[V]=a[V];for(var Ot=V;++xe<Ge;)tt[Ot+xe]=u[xe];for(;++ue<ve;)(pt||V<X)&&(tt[Ot+m[ue]]=a[V++]);return tt}function vr(a,u){var m=-1,P=a.length;for(u||(u=de(P));++m<P;)u[m]=a[m];return u}function To(a,u,m,P){var V=!m;m||(m={});for(var X=-1,ue=u.length;++X<ue;){var ve=u[X],xe=P?P(m[ve],a[ve],ve,m,a):n;xe===n&&(xe=a[ve]),V?pr(m,ve,xe):$n(m,ve,xe)}return m}function sf(a,u){return To(a,hg(a),u)}function sl(a,u){return To(a,ub(a),u)}function ul(a,u){return function(m,P){var V=Xt(m)?le:Wa,X=u?u():{};return V(m,a,Rt(P,2),X)}}function p(a){return Gt(function(u,m){var P=-1,V=m.length,X=V>1?m[V-1]:n,ue=V>2?m[2]:n;for(X=a.length>3&&typeof X=="function"?(V--,X):n,ue&&no(m[0],m[1],ue)&&(X=V<3?n:X,V=1),u=lt(u);++P<V;){var ve=m[P];ve&&a(u,ve,P,X)}return u})}function w(a,u){return function(m,P){if(m==null)return m;if(!Co(m))return a(m,P);for(var V=m.length,X=u?V:-1,ue=lt(m);(u?X--:++X<V)&&P(ue[X],X,ue)!==!1;);return m}}function A(a){return function(u,m,P){for(var V=-1,X=lt(u),ue=P(u),ve=ue.length;ve--;){var xe=ue[a?ve:++V];if(m(X[xe],xe,X)===!1)break}return u}}function $(a,u,m){var P=u&L,V=ge(a);function X(){var ue=this&&this!==yn&&this instanceof X?V:a;return ue.apply(P?m:this,arguments)}return X}function K(a){return function(u){u=bn(u);var m=ii(u)?hr(u):n,P=m?m[0]:u.charAt(0),V=m?to(m,1).join(""):u.slice(1);return P[a]()+V}}function ae(a){return function(u){return It(Kb(Xb(u).replace(Aa,"")),a,"")}}function ge(a){return function(){var u=arguments;switch(u.length){case 0:return new a;case 1:return new a(u[0]);case 2:return new a(u[0],u[1]);case 3:return new a(u[0],u[1],u[2]);case 4:return new a(u[0],u[1],u[2],u[3]);case 5:return new a(u[0],u[1],u[2],u[3],u[4]);case 6:return new a(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new a(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var m=pa(a.prototype),P=a.apply(m,u);return tr(P)?P:m}}function Ae(a,u,m){var P=ge(a);function V(){for(var X=arguments.length,ue=de(X),ve=X,xe=lf(V);ve--;)ue[ve]=arguments[ve];var Ge=X<3&&ue[0]!==xe&&ue[X-1]!==xe?[]:xi(ue,xe);if(X-=Ge.length,X<m)return St(a,u,D,V.placeholder,n,ue,Ge,n,n,m-X);var Ke=this&&this!==yn&&this instanceof V?P:a;return H(Ke,this,ue)}return V}function h(a){return function(u,m,P){var V=lt(u);if(!Co(u)){var X=Rt(m,3);u=ui(u),m=function(ve){return X(V[ve],ve,V)}}var ue=a(u,m,P);return ue>-1?V[X?u[ue]:ue]:n}}function b(a){return mu(function(u){var m=u.length,P=m,V=Wr.prototype.thru;for(a&&u.reverse();P--;){var X=u[P];if(typeof X!="function")throw new Yt(s);if(V&&!ue&&Qd(X)=="wrapper")var ue=new Wr([],!0)}for(P=ue?P:m;++P<m;){X=u[P];var ve=Qd(X),xe=ve=="wrapper"?fg(X):n;xe&&gg(xe[0])&&xe[1]==(x|W|Q|ce)&&!xe[4].length&&xe[9]==1?ue=ue[Qd(xe[0])].apply(ue,xe[3]):ue=X.length==1&&gg(X)?ue[ve]():ue.thru(X)}return function(){var Ge=arguments,Ke=Ge[0];if(ue&&Ge.length==1&&Xt(Ke))return ue.plant(Ke).value();for(var tt=0,pt=m?u[tt].apply(this,Ge):Ke;++tt<m;)pt=u[tt].call(this,pt);return pt}})}function D(a,u,m,P,V,X,ue,ve,xe,Ge){var Ke=u&x,tt=u&L,pt=u&R,Ot=u&(W|ne),Lt=u&se,tn=pt?n:ge(a);function Ft(){for(var rn=arguments.length,an=de(rn),Go=rn;Go--;)an[Go]=arguments[Go];if(Ot)var ro=lf(Ft),qo=Tn(an,ro);if(P&&(an=af(an,P,V,Ot)),X&&(an=al(an,X,ue,Ot)),rn-=qo,Ot&&rn<Ge){var yr=xi(an,ro);return St(a,u,D,Ft.placeholder,m,an,yr,ve,xe,Ge-rn)}var Qa=tt?m:this,xu=pt?Qa[a]:a;return rn=an.length,ve?an=vD(an,ve):Lt&&rn>1&&an.reverse(),Ke&&xe<rn&&(an.length=xe),this&&this!==yn&&this instanceof Ft&&(xu=tn||ge(xu)),xu.apply(Qa,an)}return Ft}function M(a,u){return function(m,P){return Jl(m,a,u(P),{})}}function Y(a,u){return function(m,P){var V;if(m===n&&P===n)return u;if(m!==n&&(V=m),P!==n){if(V===n)return P;typeof m=="string"||typeof P=="string"?(m=ai(m),P=ai(P)):(m=of(m),P=of(P)),V=a(m,P)}return V}}function ie(a){return mu(function(u){return u=ct(u,xt(Rt())),Gt(function(m){var P=this;return a(u,function(V){return H(V,P,m)})})})}function fe(a,u){u=u===n?" ":ai(u);var m=u.length;if(m<2)return m?rc(u,a):u;var P=rc(u,Gs(a/mo(u)));return ii(u)?to(hr(P),0,a).join(""):P.slice(0,a)}function Ie(a,u,m,P){var V=u&L,X=ge(a);function ue(){for(var ve=-1,xe=arguments.length,Ge=-1,Ke=P.length,tt=de(Ke+xe),pt=this&&this!==yn&&this instanceof ue?X:a;++Ge<Ke;)tt[Ge]=P[Ge];for(;xe--;)tt[Ge++]=arguments[++ve];return H(pt,V?m:this,tt)}return ue}function Ze(a){return function(u,m,P){return P&&typeof P!="number"&&no(u,m,P)&&(m=P=n),u=wu(u),m===n?(m=u,u=0):m=wu(m),P=P===n?u<m?1:-1:wu(P),ef(u,m,P,a)}}function ht(a){return function(u,m){return typeof u=="string"&&typeof m=="string"||(u=wa(u),m=wa(m)),a(u,m)}}function St(a,u,m,P,V,X,ue,ve,xe,Ge){var Ke=u&W,tt=Ke?ue:n,pt=Ke?n:ue,Ot=Ke?X:n,Lt=Ke?n:X;u|=Ke?Q:pe,u&=~(Ke?pe:Q),u&U||(u&=~(L|R));var tn=[a,u,V,Ot,tt,Lt,pt,ve,xe,Ge],Ft=m.apply(n,tn);return gg(a)&&gb(Ft,tn),Ft.placeholder=P,vb(Ft,a,u)}function _t(a){var u=dt[a];return function(m,P){if(m=wa(m),P=P==null?0:Nn(en(P),292),P&&Bl(m)){var V=(bn(m)+"e").split("e"),X=u(V[0]+"e"+(+V[1]+P));return V=(bn(X)+"e").split("e"),+(V[0]+"e"+(+V[1]-P))}return u(m)}}var Cn=Ur&&1/Gi(new Ur([,-0]))[1]==Ue?function(a){return new Ur(a)}:_g;function sr(a){return function(u){var m=Ii(u);return m==Ht?us(u):m==rr?Us(u):Be(u,a(u))}}function qn(a,u,m,P,V,X,ue,ve){var xe=u&R;if(!xe&&typeof a!="function")throw new Yt(s);var Ge=P?P.length:0;if(Ge||(u&=~(Q|pe),P=V=n),ue=ue===n?ue:Fn(en(ue),0),ve=ve===n?ve:en(ve),Ge-=V?V.length:0,u&pe){var Ke=P,tt=V;P=V=n}var pt=xe?n:fg(a),Ot=[a,u,m,P,V,Ke,tt,X,ue,ve];if(pt&&hD(Ot,pt),a=Ot[0],u=Ot[1],m=Ot[2],P=Ot[3],V=Ot[4],ve=Ot[9]=Ot[9]===n?xe?0:a.length:Fn(Ot[9]-Ge,0),!ve&&u&(W|ne)&&(u&=~(W|ne)),!u||u==L)var Lt=$(a,u,m);else u==W||u==ne?Lt=Ae(a,u,ve):(u==Q||u==(L|Q))&&!V.length?Lt=Ie(a,u,m,P):Lt=D.apply(n,Ot);var tn=pt?ks:gb;return vb(tn(Lt,Ot),a,u)}function cc(a,u,m,P){return a===n||Ja(a,Gn[m])&&!Mt.call(P,m)?u:a}function fc(a,u,m,P,V,X){return tr(a)&&tr(u)&&(X.set(u,a),Es(a,u,n,fc,X),X.delete(u)),a}function uf(a){return Zf(a)?n:a}function vu(a,u,m,P,V,X){var ue=m&_,ve=a.length,xe=u.length;if(ve!=xe&&!(ue&&xe>ve))return!1;var Ge=X.get(a),Ke=X.get(u);if(Ge&&Ke)return Ge==u&&Ke==a;var tt=-1,pt=!0,Ot=m&I?new Va:n;for(X.set(a,u),X.set(u,a);++tt<ve;){var Lt=a[tt],tn=u[tt];if(P)var Ft=ue?P(tn,Lt,tt,u,a,X):P(Lt,tn,tt,a,u,X);if(Ft!==n){if(Ft)continue;pt=!1;break}if(Ot){if(!dn(u,function(rn,an){if(!Dt(Ot,an)&&(Lt===rn||V(Lt,rn,m,P,X)))return Ot.push(an)})){pt=!1;break}}else if(!(Lt===tn||V(Lt,tn,m,P,X))){pt=!1;break}}return X.delete(a),X.delete(u),pt}function sg(a,u,m,P,V,X,ue){switch(m){case ln:if(a.byteLength!=u.byteLength||a.byteOffset!=u.byteOffset)return!1;a=a.buffer,u=u.buffer;case ci:return!(a.byteLength!=u.byteLength||!X(new hs(a),new hs(u)));case mt:case wt:case Xn:return Ja(+a,+u);case Et:return a.name==u.name&&a.message==u.message;case Pr:case cn:return a==u+"";case Ht:var ve=us;case rr:var xe=P&_;if(ve||(ve=Gi),a.size!=u.size&&!xe)return!1;var Ge=ue.get(a);if(Ge)return Ge==u;P|=I,ue.set(a,u);var Ke=vu(ve(a),ve(u),P,V,X,ue);return ue.delete(a),Ke;case hn:if(Js)return Js.call(a)==Js.call(u)}return!1}function ug(a,u,m,P,V,X){var ue=m&_,ve=lg(a),xe=ve.length,Ge=lg(u),Ke=Ge.length;if(xe!=Ke&&!ue)return!1;for(var tt=xe;tt--;){var pt=ve[tt];if(!(ue?pt in u:Mt.call(u,pt)))return!1}var Ot=X.get(a),Lt=X.get(u);if(Ot&&Lt)return Ot==u&&Lt==a;var tn=!0;X.set(a,u),X.set(u,a);for(var Ft=ue;++tt<xe;){pt=ve[tt];var rn=a[pt],an=u[pt];if(P)var Go=ue?P(an,rn,pt,u,a,X):P(rn,an,pt,a,u,X);if(!(Go===n?rn===an||V(rn,an,m,P,X):Go)){tn=!1;break}Ft||(Ft=pt=="constructor")}if(tn&&!Ft){var ro=a.constructor,qo=u.constructor;ro!=qo&&"constructor"in a&&"constructor"in u&&!(typeof ro=="function"&&ro instanceof ro&&typeof qo=="function"&&qo instanceof qo)&&(tn=!1)}return X.delete(a),X.delete(u),tn}function mu(a){return mg(hb(a,n,Sb),a+"")}function lg(a){return eu(a,ui,hg)}function cg(a){return eu(a,Eo,ub)}var fg=da?function(a){return da.get(a)}:_g;function Qd(a){for(var u=a.name+"",m=ha[u],P=Mt.call(ha,u)?m.length:0;P--;){var V=m[P],X=V.func;if(X==null||X==a)return V.name}return u}function lf(a){var u=Mt.call(G,"placeholder")?G:a;return u.placeholder}function Rt(){var a=G.iteratee||Dg;return a=a===Dg?Ts:a,arguments.length?a(arguments[0],arguments[1]):a}function eh(a,u){var m=a.__data__;return lD(u)?m[typeof u=="string"?"string":"hash"]:m.map}function dg(a){for(var u=ui(a),m=u.length;m--;){var P=u[m],V=a[P];u[m]=[P,V,fb(V)]}return u}function dc(a,u){var m=aa(a,u);return tc(m)?m:n}function nD(a){var u=Mt.call(a,Xi),m=a[Xi];try{a[Xi]=n;var P=!0}catch{}var V=la.call(a);return P&&(u?a[Xi]=m:delete a[Xi]),V}var hg=qs?function(a){return a==null?[]:(a=lt(a),Ne(qs(a),function(u){return Nl.call(a,u)}))}:Rg,ub=qs?function(a){for(var u=[];a;)Pt(u,hg(a)),a=ps(a);return u}:Rg,Ii=kr;(Bo&&Ii(new Bo(new ArrayBuffer(1)))!=ln||Ki&&Ii(new Ki)!=Ht||Xs&&Ii(Xs.resolve())!=kn||Ur&&Ii(new Ur)!=rr||ca&&Ii(new ca)!=gt)&&(Ii=function(a){var u=kr(a),m=u==Kn?a.constructor:n,P=m?hc(m):"";if(P)switch(P){case Ks:return ln;case zc:return Ht;case Yc:return kn;case $u:return rr;case Zs:return gt}return u});function rD(a,u,m){for(var P=-1,V=m.length;++P<V;){var X=m[P],ue=X.size;switch(X.type){case"drop":a+=ue;break;case"dropRight":u-=ue;break;case"take":u=Nn(u,a+ue);break;case"takeRight":a=Fn(a,u-ue);break}}return{start:a,end:u}}function iD(a){var u=a.match(Ia);return u?u[1].split(Zr):[]}function lb(a,u,m){u=zo(u,a);for(var P=-1,V=u.length,X=!1;++P<V;){var ue=Ds(u[P]);if(!(X=a!=null&&m(a,ue)))break;a=a[ue]}return X||++P!=V?X:(V=a==null?0:a.length,!!V&&sh(V)&&yu(ue,V)&&(Xt(a)||pc(a)))}function oD(a){var u=a.length,m=new a.constructor(u);return u&&typeof a[0]=="string"&&Mt.call(a,"index")&&(m.index=a.index,m.input=a.input),m}function cb(a){return typeof a.constructor=="function"&&!Xf(a)?pa(ps(a)):{}}function aD(a,u,m){var P=a.constructor;switch(u){case ci:return il(a);case mt:case wt:return new P(+a);case ln:return hu(a,m);case Bi:case $i:case Vi:case _r:case Un:case Rr:case wr:case qr:case Xr:return lc(a,m);case Ht:return new P;case Xn:case cn:return new P(a);case Pr:return pu(a);case rr:return new P;case hn:return ol(a)}}function sD(a,u){var m=u.length;if(!m)return a;var P=m-1;return u[P]=(m>1?"& ":"")+u[P],u=u.join(m>2?", ":" "),a.replace(Ra,`{
149
- /* [wrapped with `+u+`] */
150
- `)}function uD(a){return Xt(a)||pc(a)||!!(ju&&a&&a[ju])}function yu(a,u){var m=typeof a;return u=u??Je,!!u&&(m=="number"||m!="symbol"&&Sr.test(a))&&a>-1&&a%1==0&&a<u}function no(a,u,m){if(!tr(m))return!1;var P=typeof u;return(P=="number"?Co(m)&&yu(u,m.length):P=="string"&&u in m)?Ja(m[u],a):!1}function pg(a,u){if(Xt(a))return!1;var m=typeof a;return m=="number"||m=="symbol"||m=="boolean"||a==null||Yo(a)?!0:mn.test(a)||!hi.test(a)||u!=null&&a in lt(u)}function lD(a){var u=typeof a;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?a!=="__proto__":a===null}function gg(a){var u=Qd(a),m=G[u];if(typeof m!="function"||!(u in qt.prototype))return!1;if(a===m)return!0;var P=fg(m);return!!P&&a===P[0]}function cD(a){return!!Dn&&Dn in a}var fD=Hr?bu:Ig;function Xf(a){var u=a&&a.constructor,m=typeof u=="function"&&u.prototype||Gn;return a===m}function fb(a){return a===a&&!tr(a)}function db(a,u){return function(m){return m==null?!1:m[a]===u&&(u!==n||a in lt(m))}}function dD(a){var u=oh(a,function(P){return m.size===d&&m.clear(),P}),m=u.cache;return u}function hD(a,u){var m=a[1],P=u[1],V=m|P,X=V<(L|R|x),ue=P==x&&m==W||P==x&&m==ce&&a[7].length<=u[8]||P==(x|ce)&&u[7].length<=u[8]&&m==W;if(!(X||ue))return a;P&L&&(a[2]=u[2],V|=m&L?0:U);var ve=u[3];if(ve){var xe=a[3];a[3]=xe?af(xe,ve,u[4]):ve,a[4]=xe?xi(a[3],y):u[4]}return ve=u[5],ve&&(xe=a[5],a[5]=xe?al(xe,ve,u[6]):ve,a[6]=xe?xi(a[5],y):u[6]),ve=u[7],ve&&(a[7]=ve),P&x&&(a[8]=a[8]==null?u[8]:Nn(a[8],u[8])),a[9]==null&&(a[9]=u[9]),a[0]=u[0],a[1]=V,a}function pD(a){var u=[];if(a!=null)for(var m in lt(a))u.push(m);return u}function gD(a){return la.call(a)}function hb(a,u,m){return u=Fn(u===n?a.length-1:u,0),function(){for(var P=arguments,V=-1,X=Fn(P.length-u,0),ue=de(X);++V<X;)ue[V]=P[u+V];V=-1;for(var ve=de(u+1);++V<u;)ve[V]=P[V];return ve[u]=m(ue),H(a,this,ve)}}function pb(a,u){return u.length<2?a:Ya(a,oi(u,0,-1))}function vD(a,u){for(var m=a.length,P=Nn(u.length,m),V=vr(a);P--;){var X=u[P];a[P]=yu(X,m)?V[X]:n}return a}function vg(a,u){if(!(u==="constructor"&&typeof a[u]=="function")&&u!="__proto__")return a[u]}var gb=mb(ks),Kf=Bu||function(a,u){return yn.setTimeout(a,u)},mg=mb(ic);function vb(a,u,m){var P=u+"";return mg(a,sD(P,mD(iD(P),m)))}function mb(a){var u=0,m=0;return function(){var P=Vl(),V=rt-(P-m);if(m=P,V>0){if(++u>=Xe)return arguments[0]}else u=0;return a.apply(n,arguments)}}function th(a,u){var m=-1,P=a.length,V=P-1;for(u=u===n?P:u;++m<u;){var X=tl(m,V),ue=a[X];a[X]=a[m],a[m]=ue}return a.length=u,a}var yb=dD(function(a){var u=[];return a.charCodeAt(0)===46&&u.push(""),a.replace(uo,function(m,P,V,X){u.push(V?X.replace(_o,"$1"):P||m)}),u});function Ds(a){if(typeof a=="string"||Yo(a))return a;var u=a+"";return u=="0"&&1/a==-Ue?"-0":u}function hc(a){if(a!=null){try{return qi.call(a)}catch{}try{return a+""}catch{}}return""}function mD(a,u){return oe(Re,function(m){var P="_."+m[0];u&m[1]&&!Ce(a,P)&&a.push(P)}),a.sort()}function bb(a){if(a instanceof qt)return a.clone();var u=new Wr(a.__wrapped__,a.__chain__);return u.__actions__=vr(a.__actions__),u.__index__=a.__index__,u.__values__=a.__values__,u}function yD(a,u,m){(m?no(a,u,m):u===n)?u=1:u=Fn(en(u),0);var P=a==null?0:a.length;if(!P||u<1)return[];for(var V=0,X=0,ue=de(Gs(P/u));V<P;)ue[X++]=oi(a,V,V+=u);return ue}function bD(a){for(var u=-1,m=a==null?0:a.length,P=0,V=[];++u<m;){var X=a[u];X&&(V[P++]=X)}return V}function wD(){var a=arguments.length;if(!a)return[];for(var u=de(a-1),m=arguments[0],P=a;P--;)u[P-1]=arguments[P];return Pt(Xt(m)?vr(m):[m],gr(u,1))}var xD=Gt(function(a,u){return mr(a)?Ho(a,gr(u,1,mr,!0)):[]}),SD=Gt(function(a,u){var m=ba(u);return mr(m)&&(m=n),mr(a)?Ho(a,gr(u,1,mr,!0),Rt(m,2)):[]}),TD=Gt(function(a,u){var m=ba(u);return mr(m)&&(m=n),mr(a)?Ho(a,gr(u,1,mr,!0),n,m):[]});function CD(a,u,m){var P=a==null?0:a.length;return P?(u=m||u===n?1:en(u),oi(a,u<0?0:u,P)):[]}function ED(a,u,m){var P=a==null?0:a.length;return P?(u=m||u===n?1:en(u),u=P-u,oi(a,0,u<0?0:u)):[]}function kD(a,u){return a&&a.length?rl(a,Rt(u,3),!0,!0):[]}function OD(a,u){return a&&a.length?rl(a,Rt(u,3),!0):[]}function DD(a,u,m,P){var V=a==null?0:a.length;return V?(m&&typeof m!="number"&&no(a,u,m)&&(m=0,P=V),Zc(a,u,m,P)):[]}function wb(a,u,m){var P=a==null?0:a.length;if(!P)return-1;var V=m==null?0:en(m);return V<0&&(V=Fn(P+V,0)),zt(a,Rt(u,3),V)}function xb(a,u,m){var P=a==null?0:a.length;if(!P)return-1;var V=P-1;return m!==n&&(V=en(m),V=m<0?Fn(P+V,0):Nn(V,P-1)),zt(a,Rt(u,3),V,!0)}function Sb(a){var u=a==null?0:a.length;return u?gr(a,1):[]}function PD(a){var u=a==null?0:a.length;return u?gr(a,Ue):[]}function _D(a,u){var m=a==null?0:a.length;return m?(u=u===n?1:en(u),gr(a,u)):[]}function RD(a){for(var u=-1,m=a==null?0:a.length,P={};++u<m;){var V=a[u];P[V[0]]=V[1]}return P}function Tb(a){return a&&a.length?a[0]:n}function ID(a,u,m){var P=a==null?0:a.length;if(!P)return-1;var V=m==null?0:en(m);return V<0&&(V=Fn(P+V,0)),on(a,u,V)}function AD(a){var u=a==null?0:a.length;return u?oi(a,0,-1):[]}var MD=Gt(function(a){var u=ct(a,Yr);return u.length&&u[0]===a[0]?xs(u):[]}),LD=Gt(function(a){var u=ba(a),m=ct(a,Yr);return u===ba(m)?u=n:m.pop(),m.length&&m[0]===a[0]?xs(m,Rt(u,2)):[]}),FD=Gt(function(a){var u=ba(a),m=ct(a,Yr);return u=typeof u=="function"?u:n,u&&m.pop(),m.length&&m[0]===a[0]?xs(m,n,u):[]});function ND(a,u){return a==null?"":vs.call(a,u)}function ba(a){var u=a==null?0:a.length;return u?a[u-1]:n}function jD(a,u,m){var P=a==null?0:a.length;if(!P)return-1;var V=P;return m!==n&&(V=en(m),V=V<0?Fn(P+V,0):Nn(V,P-1)),u===u?ua(a,u,V):zt(a,go,V,!0)}function BD(a,u){return a&&a.length?Xa(a,en(u)):n}var $D=Gt(Cb);function Cb(a,u){return a&&a.length&&u&&u.length?Ka(a,u):a}function VD(a,u,m){return a&&a.length&&u&&u.length?Ka(a,u,Rt(m,2)):a}function HD(a,u,m){return a&&a.length&&u&&u.length?Ka(a,u,n,m):a}var UD=mu(function(a,u){var m=a==null?0:a.length,P=zl(a,u);return au(a,ct(u,function(V){return yu(V,m)?+V:V}).sort(Os)),P});function WD(a,u){var m=[];if(!(a&&a.length))return m;var P=-1,V=[],X=a.length;for(u=Rt(u,3);++P<X;){var ue=a[P];u(ue,P,a)&&(m.push(ue),V.push(P))}return au(a,V),m}function yg(a){return a==null?a:Wc.call(a)}function zD(a,u,m){var P=a==null?0:a.length;return P?(m&&typeof m!="number"&&no(a,u,m)?(u=0,m=P):(u=u==null?0:en(u),m=m===n?P:en(m)),oi(a,u,m)):[]}function YD(a,u){return uu(a,u)}function GD(a,u,m){return lu(a,u,Rt(m,2))}function qD(a,u){var m=a==null?0:a.length;if(m){var P=uu(a,u);if(P<m&&Ja(a[P],u))return P}return-1}function XD(a,u){return uu(a,u,!0)}function KD(a,u,m){return lu(a,u,Rt(m,2),!0)}function ZD(a,u){var m=a==null?0:a.length;if(m){var P=uu(a,u,!0)-1;if(Ja(a[P],u))return P}return-1}function JD(a){return a&&a.length?rf(a):[]}function QD(a,u){return a&&a.length?rf(a,Rt(u,2)):[]}function eP(a){var u=a==null?0:a.length;return u?oi(a,1,u):[]}function tP(a,u,m){return a&&a.length?(u=m||u===n?1:en(u),oi(a,0,u<0?0:u)):[]}function nP(a,u,m){var P=a==null?0:a.length;return P?(u=m||u===n?1:en(u),u=P-u,oi(a,u<0?0:u,P)):[]}function rP(a,u){return a&&a.length?rl(a,Rt(u,3),!1,!0):[]}function iP(a,u){return a&&a.length?rl(a,Rt(u,3)):[]}var oP=Gt(function(a){return ya(gr(a,1,mr,!0))}),aP=Gt(function(a){var u=ba(a);return mr(u)&&(u=n),ya(gr(a,1,mr,!0),Rt(u,2))}),sP=Gt(function(a){var u=ba(a);return u=typeof u=="function"?u:n,ya(gr(a,1,mr,!0),n,u)});function uP(a){return a&&a.length?ya(a):[]}function lP(a,u){return a&&a.length?ya(a,Rt(u,2)):[]}function cP(a,u){return u=typeof u=="function"?u:n,a&&a.length?ya(a,n,u):[]}function bg(a){if(!(a&&a.length))return[];var u=0;return a=Ne(a,function(m){if(mr(m))return u=Fn(m.length,u),!0}),Te(u,function(m){return ct(a,k(m))})}function Eb(a,u){if(!(a&&a.length))return[];var m=bg(a);return u==null?m:ct(m,function(P){return H(u,n,P)})}var fP=Gt(function(a,u){return mr(a)?Ho(a,u):[]}),dP=Gt(function(a){return cu(Ne(a,mr))}),hP=Gt(function(a){var u=ba(a);return mr(u)&&(u=n),cu(Ne(a,mr),Rt(u,2))}),pP=Gt(function(a){var u=ba(a);return u=typeof u=="function"?u:n,cu(Ne(a,mr),n,u)}),gP=Gt(bg);function vP(a,u){return sc(a||[],u||[],$n)}function mP(a,u){return sc(a||[],u||[],Za)}var yP=Gt(function(a){var u=a.length,m=u>1?a[u-1]:n;return m=typeof m=="function"?(a.pop(),m):n,Eb(a,m)});function kb(a){var u=G(a);return u.__chain__=!0,u}function bP(a,u){return u(a),a}function nh(a,u){return u(a)}var wP=mu(function(a){var u=a.length,m=u?a[0]:0,P=this.__wrapped__,V=function(X){return zl(X,a)};return u>1||this.__actions__.length||!(P instanceof qt)||!yu(m)?this.thru(V):(P=P.slice(m,+m+(u?1:0)),P.__actions__.push({func:nh,args:[V],thisArg:n}),new Wr(P,this.__chain__).thru(function(X){return u&&!X.length&&X.push(n),X}))});function xP(){return kb(this)}function SP(){return new Wr(this.value(),this.__chain__)}function TP(){this.__values__===n&&(this.__values__=$b(this.value()));var a=this.__index__>=this.__values__.length,u=a?n:this.__values__[this.__index__++];return{done:a,value:u}}function CP(){return this}function EP(a){for(var u,m=this;m instanceof $a;){var P=bb(m);P.__index__=0,P.__values__=n,u?V.__wrapped__=P:u=P;var V=P;m=m.__wrapped__}return V.__wrapped__=a,u}function kP(){var a=this.__wrapped__;if(a instanceof qt){var u=a;return this.__actions__.length&&(u=new qt(this)),u=u.reverse(),u.__actions__.push({func:nh,args:[yg],thisArg:n}),new Wr(u,this.__chain__)}return this.thru(yg)}function OP(){return si(this.__wrapped__,this.__actions__)}var DP=ul(function(a,u,m){Mt.call(a,m)?++a[m]:pr(a,m,1)});function PP(a,u,m){var P=Xt(a)?Le:Xu;return m&&no(a,u,m)&&(u=n),P(a,Rt(u,3))}function _P(a,u){var m=Xt(a)?Ne:Xl;return m(a,Rt(u,3))}var RP=h(wb),IP=h(xb);function AP(a,u){return gr(rh(a,u),1)}function MP(a,u){return gr(rh(a,u),Ue)}function LP(a,u,m){return m=m===n?1:en(m),gr(rh(a,u),m)}function Ob(a,u){var m=Xt(a)?oe:ma;return m(a,Rt(u,3))}function Db(a,u){var m=Xt(a)?we:ql;return m(a,Rt(u,3))}var FP=ul(function(a,u,m){Mt.call(a,m)?a[m].push(u):pr(a,m,[u])});function NP(a,u,m,P){a=Co(a)?a:ff(a),m=m&&!P?en(m):0;var V=a.length;return m<0&&(m=Fn(V+m,0)),uh(a)?m<=V&&a.indexOf(u,m)>-1:!!V&&on(a,u,m)>-1}var jP=Gt(function(a,u,m){var P=-1,V=typeof u=="function",X=Co(a)?de(a.length):[];return ma(a,function(ue){X[++P]=V?H(u,ue,m):Pi(ue,u,m)}),X}),BP=ul(function(a,u,m){pr(a,m,u)});function rh(a,u){var m=Xt(a)?ct:Cs;return m(a,Rt(u,3))}function $P(a,u,m,P){return a==null?[]:(Xt(u)||(u=u==null?[]:[u]),m=P?n:m,Xt(m)||(m=m==null?[]:[m]),el(a,u,m))}var VP=ul(function(a,u,m){a[m?0:1].push(u)},function(){return[[],[]]});function HP(a,u,m){var P=Xt(a)?It:z,V=arguments.length<3;return P(a,Rt(u,4),m,V,ma)}function UP(a,u,m){var P=Xt(a)?Mn:z,V=arguments.length<3;return P(a,Rt(u,4),m,V,ql)}function WP(a,u){var m=Xt(a)?Ne:Xl;return m(a,ah(Rt(u,3)))}function zP(a){var u=Xt(a)?un:su;return u(a)}function YP(a,u,m){(m?no(a,u,m):u===n)?u=1:u=en(u);var P=Xt(a)?Oi:tf;return P(a,u)}function GP(a){var u=Xt(a)?Ua:oc;return u(a)}function qP(a){if(a==null)return 0;if(Co(a))return uh(a)?mo(a):a.length;var u=Ii(a);return u==Ht||u==rr?a.size:ou(a).length}function XP(a,u,m){var P=Xt(a)?dn:nf;return m&&no(a,u,m)&&(u=n),P(a,Rt(u,3))}var KP=Gt(function(a,u){if(a==null)return[];var m=u.length;return m>1&&no(a,u[0],u[1])?u=[]:m>2&&no(u[0],u[1],u[2])&&(u=[u[0]]),el(a,gr(u,1),[])}),ih=Ys||function(){return yn.Date.now()};function ZP(a,u){if(typeof u!="function")throw new Yt(s);return a=en(a),function(){if(--a<1)return u.apply(this,arguments)}}function Pb(a,u,m){return u=m?n:u,u=a&&u==null?a.length:u,qn(a,x,n,n,n,n,u)}function _b(a,u){var m;if(typeof u!="function")throw new Yt(s);return a=en(a),function(){return--a>0&&(m=u.apply(this,arguments)),a<=1&&(u=n),m}}var wg=Gt(function(a,u,m){var P=L;if(m.length){var V=xi(m,lf(wg));P|=Q}return qn(a,P,u,m,V)}),Rb=Gt(function(a,u,m){var P=L|R;if(m.length){var V=xi(m,lf(Rb));P|=Q}return qn(u,P,a,m,V)});function Ib(a,u,m){u=m?n:u;var P=qn(a,W,n,n,n,n,n,u);return P.placeholder=Ib.placeholder,P}function Ab(a,u,m){u=m?n:u;var P=qn(a,ne,n,n,n,n,n,u);return P.placeholder=Ab.placeholder,P}function Mb(a,u,m){var P,V,X,ue,ve,xe,Ge=0,Ke=!1,tt=!1,pt=!0;if(typeof a!="function")throw new Yt(s);u=wa(u)||0,tr(m)&&(Ke=!!m.leading,tt="maxWait"in m,X=tt?Fn(wa(m.maxWait)||0,u):X,pt="trailing"in m?!!m.trailing:pt);function Ot(yr){var Qa=P,xu=V;return P=V=n,Ge=yr,ue=a.apply(xu,Qa),ue}function Lt(yr){return Ge=yr,ve=Kf(rn,u),Ke?Ot(yr):ue}function tn(yr){var Qa=yr-xe,xu=yr-Ge,Qb=u-Qa;return tt?Nn(Qb,X-xu):Qb}function Ft(yr){var Qa=yr-xe,xu=yr-Ge;return xe===n||Qa>=u||Qa<0||tt&&xu>=X}function rn(){var yr=ih();if(Ft(yr))return an(yr);ve=Kf(rn,tn(yr))}function an(yr){return ve=n,pt&&P?Ot(yr):(P=V=n,ue)}function Go(){ve!==n&&du(ve),Ge=0,P=xe=V=ve=n}function ro(){return ve===n?ue:an(ih())}function qo(){var yr=ih(),Qa=Ft(yr);if(P=arguments,V=this,xe=yr,Qa){if(ve===n)return Lt(xe);if(tt)return du(ve),ve=Kf(rn,u),Ot(xe)}return ve===n&&(ve=Kf(rn,u)),ue}return qo.cancel=Go,qo.flush=ro,qo}var JP=Gt(function(a,u){return Gl(a,1,u)}),QP=Gt(function(a,u,m){return Gl(a,wa(u)||0,m)});function e_(a){return qn(a,se)}function oh(a,u){if(typeof a!="function"||u!=null&&typeof u!="function")throw new Yt(s);var m=function(){var P=arguments,V=u?u.apply(this,P):P[0],X=m.cache;if(X.has(V))return X.get(V);var ue=a.apply(this,P);return m.cache=X.set(V,ue)||X,ue};return m.cache=new(oh.Cache||$o),m}oh.Cache=$o;function ah(a){if(typeof a!="function")throw new Yt(s);return function(){var u=arguments;switch(u.length){case 0:return!a.call(this);case 1:return!a.call(this,u[0]);case 2:return!a.call(this,u[0],u[1]);case 3:return!a.call(this,u[0],u[1],u[2])}return!a.apply(this,u)}}function t_(a){return _b(2,a)}var n_=qf(function(a,u){u=u.length==1&&Xt(u[0])?ct(u[0],xt(Rt())):ct(gr(u,1),xt(Rt()));var m=u.length;return Gt(function(P){for(var V=-1,X=Nn(P.length,m);++V<X;)P[V]=u[V].call(this,P[V]);return H(a,this,P)})}),xg=Gt(function(a,u){var m=xi(u,lf(xg));return qn(a,Q,n,u,m)}),Lb=Gt(function(a,u){var m=xi(u,lf(Lb));return qn(a,pe,n,u,m)}),r_=mu(function(a,u){return qn(a,ce,n,n,n,u)});function i_(a,u){if(typeof a!="function")throw new Yt(s);return u=u===n?u:en(u),Gt(a,u)}function o_(a,u){if(typeof a!="function")throw new Yt(s);return u=u==null?0:Fn(en(u),0),Gt(function(m){var P=m[u],V=to(m,0,u);return P&&Pt(V,P),H(a,this,V)})}function a_(a,u,m){var P=!0,V=!0;if(typeof a!="function")throw new Yt(s);return tr(m)&&(P="leading"in m?!!m.leading:P,V="trailing"in m?!!m.trailing:V),Mb(a,u,{leading:P,maxWait:u,trailing:V})}function s_(a){return Pb(a,1)}function u_(a,u){return xg(fu(u),a)}function l_(){if(!arguments.length)return[];var a=arguments[0];return Xt(a)?a:[a]}function c_(a){return zr(a,T)}function f_(a,u){return u=typeof u=="function"?u:n,zr(a,T,u)}function d_(a){return zr(a,g|T)}function h_(a,u){return u=typeof u=="function"?u:n,zr(a,g|T,u)}function p_(a,u){return u==null||Kc(a,u,ui(u))}function Ja(a,u){return a===u||a!==a&&u!==u}var g_=ht(tu),v_=ht(function(a,u){return a>=u}),pc=iu(function(){return arguments}())?iu:function(a){return ur(a)&&Mt.call(a,"callee")&&!Nl.call(a,"callee")},Xt=de.isArray,m_=f?xt(f):Ju;function Co(a){return a!=null&&sh(a.length)&&!bu(a)}function mr(a){return ur(a)&&Co(a)}function y_(a){return a===!0||a===!1||ur(a)&&kr(a)==mt}var ll=jl||Ig,b_=v?xt(v):Ga;function w_(a){return ur(a)&&a.nodeType===1&&!Zf(a)}function x_(a){if(a==null)return!0;if(Co(a)&&(Xt(a)||typeof a=="string"||typeof a.splice=="function"||ll(a)||cf(a)||pc(a)))return!a.length;var u=Ii(a);if(u==Ht||u==rr)return!a.size;if(Xf(a))return!ou(a).length;for(var m in a)if(Mt.call(a,m))return!1;return!0}function S_(a,u){return Ss(a,u)}function T_(a,u,m){m=typeof m=="function"?m:n;var P=m?m(a,u):n;return P===n?Ss(a,u,n,m):!!P}function Sg(a){if(!ur(a))return!1;var u=kr(a);return u==Et||u==vt||typeof a.message=="string"&&typeof a.name=="string"&&!Zf(a)}function C_(a){return typeof a=="number"&&Bl(a)}function bu(a){if(!tr(a))return!1;var u=kr(a);return u==it||u==$t||u==ut||u==ji}function Fb(a){return typeof a=="number"&&a==en(a)}function sh(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=Je}function tr(a){var u=typeof a;return a!=null&&(u=="object"||u=="function")}function ur(a){return a!=null&&typeof a=="object"}var Nb=C?xt(C):qa;function E_(a,u){return a===u||ec(a,u,dg(u))}function k_(a,u,m){return m=typeof m=="function"?m:n,ec(a,u,dg(u),m)}function O_(a){return jb(a)&&a!=+a}function D_(a){if(fD(a))throw new We(o);return tc(a)}function P_(a){return a===null}function __(a){return a==null}function jb(a){return typeof a=="number"||ur(a)&&kr(a)==Xn}function Zf(a){if(!ur(a)||kr(a)!=Kn)return!1;var u=ps(a);if(u===null)return!0;var m=Mt.call(u,"constructor")&&u.constructor;return typeof m=="function"&&m instanceof m&&qi.call(m)==Ll}var Tg=O?xt(O):So;function R_(a){return Fb(a)&&a>=-Je&&a<=Je}var Bb=N?xt(N):Yf;function uh(a){return typeof a=="string"||!Xt(a)&&ur(a)&&kr(a)==cn}function Yo(a){return typeof a=="symbol"||ur(a)&&kr(a)==hn}var cf=B?xt(B):Gf;function I_(a){return a===n}function A_(a){return ur(a)&&Ii(a)==gt}function M_(a){return ur(a)&&kr(a)==Rn}var L_=ht(Qi),F_=ht(function(a,u){return a<=u});function $b(a){if(!a)return[];if(Co(a))return uh(a)?hr(a):vr(a);if(Fo&&a[Fo])return vo(a[Fo]());var u=Ii(a),m=u==Ht?us:u==rr?Gi:ff;return m(a)}function wu(a){if(!a)return a===0?a:0;if(a=wa(a),a===Ue||a===-Ue){var u=a<0?-1:1;return u*st}return a===a?a:0}function en(a){var u=wu(a),m=u%1;return u===u?m?u-m:u:0}function Vb(a){return a?va(en(a),0,_e):0}function wa(a){if(typeof a=="number")return a;if(Yo(a))return ke;if(tr(a)){var u=typeof a.valueOf=="function"?a.valueOf():a;a=tr(u)?u+"":u}if(typeof a!="string")return a===0?a:+a;a=Qe(a);var m=fo.test(a);return m||Jr.test(a)?Na(a.slice(2),m?2:8):Ci.test(a)?ke:+a}function Hb(a){return To(a,Eo(a))}function N_(a){return a?va(en(a),-Je,Je):a===0?a:0}function bn(a){return a==null?"":ai(a)}var j_=p(function(a,u){if(Xf(u)||Co(u)){To(u,ui(u),a);return}for(var m in u)Mt.call(u,m)&&$n(a,m,u[m])}),Ub=p(function(a,u){To(u,Eo(u),a)}),lh=p(function(a,u,m,P){To(u,Eo(u),a,P)}),B_=p(function(a,u,m,P){To(u,ui(u),a,P)}),$_=mu(zl);function V_(a,u){var m=pa(a);return u==null?m:Ji(m,u)}var H_=Gt(function(a,u){a=lt(a);var m=-1,P=u.length,V=P>2?u[2]:n;for(V&&no(u[0],u[1],V)&&(P=1);++m<P;)for(var X=u[m],ue=Eo(X),ve=-1,xe=ue.length;++ve<xe;){var Ge=ue[ve],Ke=a[Ge];(Ke===n||Ja(Ke,Gn[Ge])&&!Mt.call(a,Ge))&&(a[Ge]=X[Ge])}return a}),U_=Gt(function(a){return a.push(n,fc),H(Wb,n,a)});function W_(a,u){return Vr(a,Rt(u,3),xo)}function z_(a,u){return Vr(a,Rt(u,3),Zl)}function Y_(a,u){return a==null?a:Kl(a,Rt(u,3),Eo)}function G_(a,u){return a==null?a:Jc(a,Rt(u,3),Eo)}function q_(a,u){return a&&xo(a,Rt(u,3))}function X_(a,u){return a&&Zl(a,Rt(u,3))}function K_(a){return a==null?[]:Zu(a,ui(a))}function Z_(a){return a==null?[]:Zu(a,Eo(a))}function Cg(a,u,m){var P=a==null?n:Ya(a,u);return P===n?m:P}function J_(a,u){return a!=null&&lb(a,u,nu)}function Eg(a,u){return a!=null&&lb(a,u,Qc)}var Q_=M(function(a,u,m){u!=null&&typeof u.toString!="function"&&(u=la.call(u)),a[u]=m},Og(ko)),eR=M(function(a,u,m){u!=null&&typeof u.toString!="function"&&(u=la.call(u)),Mt.call(a,u)?a[u].push(m):a[u]=[m]},Rt),tR=Gt(Pi);function ui(a){return Co(a)?ga(a):ou(a)}function Eo(a){return Co(a)?ga(a,!0):Qu(a)}function nR(a,u){var m={};return u=Rt(u,3),xo(a,function(P,V,X){pr(m,u(P,V,X),P)}),m}function rR(a,u){var m={};return u=Rt(u,3),xo(a,function(P,V,X){pr(m,V,u(P,V,X))}),m}var iR=p(function(a,u,m){Es(a,u,m)}),Wb=p(function(a,u,m,P){Es(a,u,m,P)}),oR=mu(function(a,u){var m={};if(a==null)return m;var P=!1;u=ct(u,function(X){return X=zo(X,a),P||(P=X.length>1),X}),To(a,cg(a),m),P&&(m=zr(m,g|S|T,uf));for(var V=u.length;V--;)ac(m,u[V]);return m});function aR(a,u){return zb(a,ah(Rt(u)))}var sR=mu(function(a,u){return a==null?{}:Ri(a,u)});function zb(a,u){if(a==null)return{};var m=ct(cg(a),function(P){return[P]});return u=Rt(u),Wo(a,m,function(P,V){return u(P,V[0])})}function uR(a,u,m){u=zo(u,a);var P=-1,V=u.length;for(V||(V=1,a=n);++P<V;){var X=a==null?n:a[Ds(u[P])];X===n&&(P=V,X=m),a=bu(X)?X.call(a):X}return a}function lR(a,u,m){return a==null?a:Za(a,u,m)}function cR(a,u,m,P){return P=typeof P=="function"?P:n,a==null?a:Za(a,u,m,P)}var Yb=sr(ui),Gb=sr(Eo);function fR(a,u,m){var P=Xt(a),V=P||ll(a)||cf(a);if(u=Rt(u,4),m==null){var X=a&&a.constructor;V?m=P?new X:[]:tr(a)?m=bu(X)?pa(ps(a)):{}:m={}}return(V?oe:xo)(a,function(ue,ve,xe){return u(m,ue,ve,xe)}),m}function dR(a,u){return a==null?!0:ac(a,u)}function hR(a,u,m){return a==null?a:nl(a,u,fu(m))}function pR(a,u,m,P){return P=typeof P=="function"?P:n,a==null?a:nl(a,u,fu(m),P)}function ff(a){return a==null?[]:Nt(a,ui(a))}function gR(a){return a==null?[]:Nt(a,Eo(a))}function vR(a,u,m){return m===n&&(m=u,u=n),m!==n&&(m=wa(m),m=m===m?m:0),u!==n&&(u=wa(u),u=u===u?u:0),va(wa(a),u,m)}function mR(a,u,m){return u=wu(u),m===n?(m=u,u=0):m=wu(m),a=wa(a),ru(a,u,m)}function yR(a,u,m){if(m&&typeof m!="boolean"&&no(a,u,m)&&(u=m=n),m===n&&(typeof u=="boolean"?(m=u,u=n):typeof a=="boolean"&&(m=a,a=n)),a===n&&u===n?(a=0,u=1):(a=wu(a),u===n?(u=a,a=0):u=wu(u)),a>u){var P=a;a=u,u=P}if(m||a%1||u%1){var V=jo();return Nn(a+V*(u-a+dr("1e-"+((V+"").length-1))),u)}return tl(a,u)}var bR=ae(function(a,u,m){return u=u.toLowerCase(),a+(m?qb(u):u)});function qb(a){return kg(bn(a).toLowerCase())}function Xb(a){return a=bn(a),a&&a.replace(Ir,Yn).replace(Ma,"")}function wR(a,u,m){a=bn(a),u=ai(u);var P=a.length;m=m===n?P:va(en(m),0,P);var V=m;return m-=u.length,m>=0&&a.slice(m,V)==u}function xR(a){return a=bn(a),a&&Hi.test(a)?a.replace(Zt,oa):a}function SR(a){return a=bn(a),a&&pi.test(a)?a.replace(xr,"\\$&"):a}var TR=ae(function(a,u,m){return a+(m?"-":"")+u.toLowerCase()}),CR=ae(function(a,u,m){return a+(m?" ":"")+u.toLowerCase()}),ER=K("toLowerCase");function kR(a,u,m){a=bn(a),u=en(u);var P=u?mo(a):0;if(!u||P>=u)return a;var V=(u-P)/2;return fe(gs(V),m)+a+fe(Gs(V),m)}function OR(a,u,m){a=bn(a),u=en(u);var P=u?mo(a):0;return u&&P<u?a+fe(u-P,m):a}function DR(a,u,m){a=bn(a),u=en(u);var P=u?mo(a):0;return u&&P<u?fe(u-P,m)+a:a}function PR(a,u,m){return m||u==null?u=0:u&&(u=+u),Hl(bn(a).replace(fn,""),u||0)}function _R(a,u,m){return(m?no(a,u,m):u===n)?u=1:u=en(u),rc(bn(a),u)}function RR(){var a=arguments,u=bn(a[0]);return a.length<3?u:u.replace(a[1],a[2])}var IR=ae(function(a,u,m){return a+(m?"_":"")+u.toLowerCase()});function AR(a,u,m){return m&&typeof m!="number"&&no(a,u,m)&&(u=m=n),m=m===n?_e:m>>>0,m?(a=bn(a),a&&(typeof u=="string"||u!=null&&!Tg(u))&&(u=ai(u),!u&&ii(a))?to(hr(a),0,m):a.split(u,m)):[]}var MR=ae(function(a,u,m){return a+(m?" ":"")+kg(u)});function LR(a,u,m){return a=bn(a),m=m==null?0:va(en(m),0,a.length),u=ai(u),a.slice(m,m+u.length)==u}function FR(a,u,m){var P=G.templateSettings;m&&no(a,u,m)&&(u=n),a=bn(a),u=lh({},u,P,cc);var V=lh({},u.imports,P.imports,cc),X=ui(V),ue=Nt(V,X),ve,xe,Ge=0,Ke=u.interpolate||Qr,tt="__p += '",pt=At((u.escape||Qr).source+"|"+Ke.source+"|"+(Ke===di?Ti:Qr).source+"|"+(u.evaluate||Qr).source+"|$","g"),Ot="//# sourceURL="+(Mt.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++sn+"]")+`
151
- `;a.replace(pt,function(Ft,rn,an,Go,ro,qo){return an||(an=Go),tt+=a.slice(Ge,qo).replace(Ar,ss),rn&&(ve=!0,tt+=`' +
152
- __e(`+rn+`) +
153
- '`),ro&&(xe=!0,tt+=`';
154
- `+ro+`;
155
- __p += '`),an&&(tt+=`' +
156
- ((__t = (`+an+`)) == null ? '' : __t) +
157
- '`),Ge=qo+Ft.length,Ft}),tt+=`';
158
- `;var Lt=Mt.call(u,"variable")&&u.variable;if(!Lt)tt=`with (obj) {
159
- `+tt+`
160
- }
161
- `;else if(co.test(Lt))throw new We(l);tt=(xe?tt.replace(Po,""):tt).replace(Zn,"$1").replace(Kr,"$1;"),tt="function("+(Lt||"obj")+`) {
162
- `+(Lt?"":`obj || (obj = {});
163
- `)+"var __t, __p = ''"+(ve?", __e = _.escape":"")+(xe?`, __j = Array.prototype.join;
164
- function print() { __p += __j.call(arguments, '') }
165
- `:`;
166
- `)+tt+`return __p
167
- }`;var tn=Zb(function(){return ft(X,Ot+"return "+tt).apply(n,ue)});if(tn.source=tt,Sg(tn))throw tn;return tn}function NR(a){return bn(a).toLowerCase()}function jR(a){return bn(a).toUpperCase()}function BR(a,u,m){if(a=bn(a),a&&(m||u===n))return Qe(a);if(!a||!(u=ai(u)))return a;var P=hr(a),V=hr(u),X=Ct(P,V),ue=Bn(P,V)+1;return to(P,X,ue).join("")}function $R(a,u,m){if(a=bn(a),a&&(m||u===n))return a.slice(0,Ws(a)+1);if(!a||!(u=ai(u)))return a;var P=hr(a),V=Bn(P,hr(u))+1;return to(P,0,V).join("")}function VR(a,u,m){if(a=bn(a),a&&(m||u===n))return a.replace(fn,"");if(!a||!(u=ai(u)))return a;var P=hr(a),V=Ct(P,hr(u));return to(P,V).join("")}function HR(a,u){var m=je,P=qe;if(tr(u)){var V="separator"in u?u.separator:V;m="length"in u?en(u.length):m,P="omission"in u?ai(u.omission):P}a=bn(a);var X=a.length;if(ii(a)){var ue=hr(a);X=ue.length}if(m>=X)return a;var ve=m-mo(P);if(ve<1)return P;var xe=ue?to(ue,0,ve).join(""):a.slice(0,ve);if(V===n)return xe+P;if(ue&&(ve+=xe.length-ve),Tg(V)){if(a.slice(ve).search(V)){var Ge,Ke=xe;for(V.global||(V=At(V.source,bn(gi.exec(V))+"g")),V.lastIndex=0;Ge=V.exec(Ke);)var tt=Ge.index;xe=xe.slice(0,tt===n?ve:tt)}}else if(a.indexOf(ai(V),ve)!=ve){var pt=xe.lastIndexOf(V);pt>-1&&(xe=xe.slice(0,pt))}return xe+P}function UR(a){return a=bn(a),a&&fi.test(a)?a.replace(ir,ls):a}var WR=ae(function(a,u,m){return a+(m?" ":"")+u.toUpperCase()}),kg=K("toUpperCase");function Kb(a,u,m){return a=bn(a),u=m?n:u,u===n?Hs(a)?me(a):Wt(a):a.match(u)||[]}var Zb=Gt(function(a,u){try{return H(a,n,u)}catch(m){return Sg(m)?m:new We(m)}}),zR=mu(function(a,u){return oe(u,function(m){m=Ds(m),pr(a,m,wg(a[m],a))}),a});function YR(a){var u=a==null?0:a.length,m=Rt();return a=u?ct(a,function(P){if(typeof P[1]!="function")throw new Yt(s);return[m(P[0]),P[1]]}):[],Gt(function(P){for(var V=-1;++V<u;){var X=a[V];if(H(X[0],this,P))return H(X[1],this,P)}})}function GR(a){return Yl(zr(a,g))}function Og(a){return function(){return a}}function qR(a,u){return a==null||a!==a?u:a}var XR=b(),KR=b(!0);function ko(a){return a}function Dg(a){return Ts(typeof a=="function"?a:zr(a,g))}function ZR(a){return Uo(zr(a,g))}function JR(a,u){return eo(a,zr(u,g))}var QR=Gt(function(a,u){return function(m){return Pi(m,a,u)}}),eI=Gt(function(a,u){return function(m){return Pi(a,m,u)}});function Pg(a,u,m){var P=ui(u),V=Zu(u,P);m==null&&!(tr(u)&&(V.length||!P.length))&&(m=u,u=a,a=this,V=Zu(u,ui(u)));var X=!(tr(m)&&"chain"in m)||!!m.chain,ue=bu(a);return oe(V,function(ve){var xe=u[ve];a[ve]=xe,ue&&(a.prototype[ve]=function(){var Ge=this.__chain__;if(X||Ge){var Ke=a(this.__wrapped__),tt=Ke.__actions__=vr(this.__actions__);return tt.push({func:xe,args:arguments,thisArg:a}),Ke.__chain__=Ge,Ke}return xe.apply(a,Pt([this.value()],arguments))})}),a}function tI(){return yn._===this&&(yn._=Pn),this}function _g(){}function nI(a){return a=en(a),Gt(function(u){return Xa(u,a)})}var rI=ie(ct),iI=ie(Le),oI=ie(dn);function Jb(a){return pg(a)?k(Ds(a)):nc(a)}function aI(a){return function(u){return a==null?n:Ya(a,u)}}var sI=Ze(),uI=Ze(!0);function Rg(){return[]}function Ig(){return!1}function lI(){return{}}function cI(){return""}function fI(){return!0}function dI(a,u){if(a=en(a),a<1||a>Je)return[];var m=_e,P=Nn(a,_e);u=Rt(u),a-=_e;for(var V=Te(P,u);++m<a;)u(m);return V}function hI(a){return Xt(a)?ct(a,Ds):Yo(a)?[a]:vr(yb(bn(a)))}function pI(a){var u=++Uc;return bn(a)+u}var gI=Y(function(a,u){return a+u},0),vI=_t("ceil"),mI=Y(function(a,u){return a/u},1),yI=_t("floor");function bI(a){return a&&a.length?Ku(a,ko,tu):n}function wI(a,u){return a&&a.length?Ku(a,Rt(u,2),tu):n}function xI(a){return Er(a,ko)}function SI(a,u){return Er(a,Rt(u,2))}function TI(a){return a&&a.length?Ku(a,ko,Qi):n}function CI(a,u){return a&&a.length?Ku(a,Rt(u,2),Qi):n}var EI=Y(function(a,u){return a*u},1),kI=_t("round"),OI=Y(function(a,u){return a-u},0);function DI(a){return a&&a.length?Se(a,ko):0}function PI(a,u){return a&&a.length?Se(a,Rt(u,2)):0}return G.after=ZP,G.ary=Pb,G.assign=j_,G.assignIn=Ub,G.assignInWith=lh,G.assignWith=B_,G.at=$_,G.before=_b,G.bind=wg,G.bindAll=zR,G.bindKey=Rb,G.castArray=l_,G.chain=kb,G.chunk=yD,G.compact=bD,G.concat=wD,G.cond=YR,G.conforms=GR,G.constant=Og,G.countBy=DP,G.create=V_,G.curry=Ib,G.curryRight=Ab,G.debounce=Mb,G.defaults=H_,G.defaultsDeep=U_,G.defer=JP,G.delay=QP,G.difference=xD,G.differenceBy=SD,G.differenceWith=TD,G.drop=CD,G.dropRight=ED,G.dropRightWhile=kD,G.dropWhile=OD,G.fill=DD,G.filter=_P,G.flatMap=AP,G.flatMapDeep=MP,G.flatMapDepth=LP,G.flatten=Sb,G.flattenDeep=PD,G.flattenDepth=_D,G.flip=e_,G.flow=XR,G.flowRight=KR,G.fromPairs=RD,G.functions=K_,G.functionsIn=Z_,G.groupBy=FP,G.initial=AD,G.intersection=MD,G.intersectionBy=LD,G.intersectionWith=FD,G.invert=Q_,G.invertBy=eR,G.invokeMap=jP,G.iteratee=Dg,G.keyBy=BP,G.keys=ui,G.keysIn=Eo,G.map=rh,G.mapKeys=nR,G.mapValues=rR,G.matches=ZR,G.matchesProperty=JR,G.memoize=oh,G.merge=iR,G.mergeWith=Wb,G.method=QR,G.methodOf=eI,G.mixin=Pg,G.negate=ah,G.nthArg=nI,G.omit=oR,G.omitBy=aR,G.once=t_,G.orderBy=$P,G.over=rI,G.overArgs=n_,G.overEvery=iI,G.overSome=oI,G.partial=xg,G.partialRight=Lb,G.partition=VP,G.pick=sR,G.pickBy=zb,G.property=Jb,G.propertyOf=aI,G.pull=$D,G.pullAll=Cb,G.pullAllBy=VD,G.pullAllWith=HD,G.pullAt=UD,G.range=sI,G.rangeRight=uI,G.rearg=r_,G.reject=WP,G.remove=WD,G.rest=i_,G.reverse=yg,G.sampleSize=YP,G.set=lR,G.setWith=cR,G.shuffle=GP,G.slice=zD,G.sortBy=KP,G.sortedUniq=JD,G.sortedUniqBy=QD,G.split=AR,G.spread=o_,G.tail=eP,G.take=tP,G.takeRight=nP,G.takeRightWhile=rP,G.takeWhile=iP,G.tap=bP,G.throttle=a_,G.thru=nh,G.toArray=$b,G.toPairs=Yb,G.toPairsIn=Gb,G.toPath=hI,G.toPlainObject=Hb,G.transform=fR,G.unary=s_,G.union=oP,G.unionBy=aP,G.unionWith=sP,G.uniq=uP,G.uniqBy=lP,G.uniqWith=cP,G.unset=dR,G.unzip=bg,G.unzipWith=Eb,G.update=hR,G.updateWith=pR,G.values=ff,G.valuesIn=gR,G.without=fP,G.words=Kb,G.wrap=u_,G.xor=dP,G.xorBy=hP,G.xorWith=pP,G.zip=gP,G.zipObject=vP,G.zipObjectDeep=mP,G.zipWith=yP,G.entries=Yb,G.entriesIn=Gb,G.extend=Ub,G.extendWith=lh,Pg(G,G),G.add=gI,G.attempt=Zb,G.camelCase=bR,G.capitalize=qb,G.ceil=vI,G.clamp=vR,G.clone=c_,G.cloneDeep=d_,G.cloneDeepWith=h_,G.cloneWith=f_,G.conformsTo=p_,G.deburr=Xb,G.defaultTo=qR,G.divide=mI,G.endsWith=wR,G.eq=Ja,G.escape=xR,G.escapeRegExp=SR,G.every=PP,G.find=RP,G.findIndex=wb,G.findKey=W_,G.findLast=IP,G.findLastIndex=xb,G.findLastKey=z_,G.floor=yI,G.forEach=Ob,G.forEachRight=Db,G.forIn=Y_,G.forInRight=G_,G.forOwn=q_,G.forOwnRight=X_,G.get=Cg,G.gt=g_,G.gte=v_,G.has=J_,G.hasIn=Eg,G.head=Tb,G.identity=ko,G.includes=NP,G.indexOf=ID,G.inRange=mR,G.invoke=tR,G.isArguments=pc,G.isArray=Xt,G.isArrayBuffer=m_,G.isArrayLike=Co,G.isArrayLikeObject=mr,G.isBoolean=y_,G.isBuffer=ll,G.isDate=b_,G.isElement=w_,G.isEmpty=x_,G.isEqual=S_,G.isEqualWith=T_,G.isError=Sg,G.isFinite=C_,G.isFunction=bu,G.isInteger=Fb,G.isLength=sh,G.isMap=Nb,G.isMatch=E_,G.isMatchWith=k_,G.isNaN=O_,G.isNative=D_,G.isNil=__,G.isNull=P_,G.isNumber=jb,G.isObject=tr,G.isObjectLike=ur,G.isPlainObject=Zf,G.isRegExp=Tg,G.isSafeInteger=R_,G.isSet=Bb,G.isString=uh,G.isSymbol=Yo,G.isTypedArray=cf,G.isUndefined=I_,G.isWeakMap=A_,G.isWeakSet=M_,G.join=ND,G.kebabCase=TR,G.last=ba,G.lastIndexOf=jD,G.lowerCase=CR,G.lowerFirst=ER,G.lt=L_,G.lte=F_,G.max=bI,G.maxBy=wI,G.mean=xI,G.meanBy=SI,G.min=TI,G.minBy=CI,G.stubArray=Rg,G.stubFalse=Ig,G.stubObject=lI,G.stubString=cI,G.stubTrue=fI,G.multiply=EI,G.nth=BD,G.noConflict=tI,G.noop=_g,G.now=ih,G.pad=kR,G.padEnd=OR,G.padStart=DR,G.parseInt=PR,G.random=yR,G.reduce=HP,G.reduceRight=UP,G.repeat=_R,G.replace=RR,G.result=uR,G.round=kI,G.runInContext=Z,G.sample=zP,G.size=qP,G.snakeCase=IR,G.some=XP,G.sortedIndex=YD,G.sortedIndexBy=GD,G.sortedIndexOf=qD,G.sortedLastIndex=XD,G.sortedLastIndexBy=KD,G.sortedLastIndexOf=ZD,G.startCase=MR,G.startsWith=LR,G.subtract=OI,G.sum=DI,G.sumBy=PI,G.template=FR,G.times=dI,G.toFinite=wu,G.toInteger=en,G.toLength=Vb,G.toLower=NR,G.toNumber=wa,G.toSafeInteger=N_,G.toString=bn,G.toUpper=jR,G.trim=BR,G.trimEnd=$R,G.trimStart=VR,G.truncate=HR,G.unescape=UR,G.uniqueId=pI,G.upperCase=WR,G.upperFirst=kg,G.each=Ob,G.eachRight=Db,G.first=Tb,Pg(G,function(){var a={};return xo(G,function(u,m){Mt.call(G.prototype,m)||(a[m]=u)}),a}(),{chain:!1}),G.VERSION=r,oe(["bind","bindKey","curry","curryRight","partial","partialRight"],function(a){G[a].placeholder=G}),oe(["drop","take"],function(a,u){qt.prototype[a]=function(m){m=m===n?1:Fn(en(m),0);var P=this.__filtered__&&!u?new qt(this):this.clone();return P.__filtered__?P.__takeCount__=Nn(m,P.__takeCount__):P.__views__.push({size:Nn(m,_e),type:a+(P.__dir__<0?"Right":"")}),P},qt.prototype[a+"Right"]=function(m){return this.reverse()[a](m).reverse()}}),oe(["filter","map","takeWhile"],function(a,u){var m=u+1,P=m==nt||m==Pe;qt.prototype[a]=function(V){var X=this.clone();return X.__iteratees__.push({iteratee:Rt(V,3),type:m}),X.__filtered__=X.__filtered__||P,X}}),oe(["head","last"],function(a,u){var m="take"+(u?"Right":"");qt.prototype[a]=function(){return this[m](1).value()[0]}}),oe(["initial","tail"],function(a,u){var m="drop"+(u?"":"Right");qt.prototype[a]=function(){return this.__filtered__?new qt(this):this[m](1)}}),qt.prototype.compact=function(){return this.filter(ko)},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,u){return typeof a=="function"?new qt(this):this.map(function(m){return Pi(m,a,u)})}),qt.prototype.reject=function(a){return this.filter(ah(Rt(a)))},qt.prototype.slice=function(a,u){a=en(a);var m=this;return m.__filtered__&&(a>0||u<0)?new qt(m):(a<0?m=m.takeRight(-a):a&&(m=m.drop(a)),u!==n&&(u=en(u),m=u<0?m.dropRight(-u):m.take(u-a)),m)},qt.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},qt.prototype.toArray=function(){return this.take(_e)},xo(qt.prototype,function(a,u){var m=/^(?:filter|find|map|reject)|While$/.test(u),P=/^(?:head|last)$/.test(u),V=G[P?"take"+(u=="last"?"Right":""):u],X=P||/^find/.test(u);V&&(G.prototype[u]=function(){var ue=this.__wrapped__,ve=P?[1]:arguments,xe=ue instanceof qt,Ge=ve[0],Ke=xe||Xt(ue),tt=function(rn){var an=V.apply(G,Pt([rn],ve));return P&&pt?an[0]:an};Ke&&m&&typeof Ge=="function"&&Ge.length!=1&&(xe=Ke=!1);var pt=this.__chain__,Ot=!!this.__actions__.length,Lt=X&&!pt,tn=xe&&!Ot;if(!X&&Ke){ue=tn?ue:new qt(this);var Ft=a.apply(ue,ve);return Ft.__actions__.push({func:nh,args:[tt],thisArg:n}),new Wr(Ft,pt)}return Lt&&tn?a.apply(this,ve):(Ft=this.thru(tt),Lt?P?Ft.value()[0]:Ft.value():Ft)})}),oe(["pop","push","shift","sort","splice","unshift"],function(a){var u=Ln[a],m=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",P=/^(?:pop|shift)$/.test(a);G.prototype[a]=function(){var V=arguments;if(P&&!this.__chain__){var X=this.value();return u.apply(Xt(X)?X:[],V)}return this[m](function(ue){return u.apply(Xt(ue)?ue:[],V)})}}),xo(qt.prototype,function(a,u){var m=G[u];if(m){var P=m.name+"";Mt.call(ha,P)||(ha[P]=[]),ha[P].push({name:u,func:m})}}),ha[D(n,R).name]=[{name:"wrapper",func:n}],qt.prototype.clone=Vu,qt.prototype.reverse=ys,qt.prototype.value=Qs,G.prototype.at=wP,G.prototype.chain=xP,G.prototype.commit=SP,G.prototype.next=TP,G.prototype.plant=EP,G.prototype.reverse=kP,G.prototype.toJSON=G.prototype.valueOf=G.prototype.value=OP,G.prototype.first=G.prototype.head,Fo&&(G.prototype[Fo]=CP),G},Ee=De();wi?((wi.exports=Ee)._=Ee,Lo._=Ee):yn._=Ee}).call(Ko)})(Ep,Ep.exports);var mO=Ep.exports;const p4=Bc(mO);function i1(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}function g4(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,r=e.startIndex,i=e.stopIndex;return!(r>n||i<t)}function v4(e){for(var t=e.isItemLoaded,n=e.itemCount,r=e.minimumBatchSize,i=e.startIndex,o=e.stopIndex,s=[],l=null,c=null,d=i;d<=o;d++){var y=t(d);y?c!==null&&(s.push(l,c),l=c=null):(c=d,l===null&&(l=d))}if(c!==null){for(var g=Math.min(Math.max(c,l+r-1),n-1),S=c+1;S<=g&&!t(S);S++)c=S;s.push(l,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 m4=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},y4=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}}(),b4=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)},o1=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},w4=function(e){b4(t,e);function t(){var n,r,i,o;m4(this,t);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return o=(r=(i=o1(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(l))),i),i._lastRenderedStartIndex=-1,i._lastRenderedStopIndex=-1,i._memoizedUnloadedRanges=[],i._onItemsRendered=function(d){var y=d.visibleStartIndex,g=d.visibleStopIndex;process.env.NODE_ENV!=="production"&&((!i1(y)||!i1(g))&&console.warn("Invalid onItemsRendered signature; please refer to InfiniteLoader documentation."),typeof i.props.loadMoreRows=="function"&&console.warn('InfiniteLoader "loadMoreRows" prop has been renamed to "loadMoreItems".')),i._lastRenderedStartIndex=y,i._lastRenderedStopIndex=g,i._ensureRowsLoaded(y,g)},i._setRef=function(d){i._listRef=d},r),o1(i,o)}return y4(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,l=o.itemCount,c=o.minimumBatchSize,d=c===void 0?10:c,y=o.threshold,g=y===void 0?15:y,S=v4({isItemLoaded:s,itemCount:l,minimumBatchSize:d,startIndex:Math.max(0,r-g),stopIndex:Math.min(l-1,i+g)});(this._memoizedUnloadedRanges.length!==S.length||this._memoizedUnloadedRanges.some(function(T,_){return S[_]!==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 y=r[d],g=r[d+1],S=o(y,g);S!=null&&S.then(function(){if(g4({lastRenderedStartIndex:i._lastRenderedStartIndex,lastRenderedStopIndex:i._lastRenderedStopIndex,startIndex:y,stopIndex:g})){if(i._listRef==null)return;typeof i._listRef.resetAfterIndex=="function"?i._listRef.resetAfterIndex(y,!0):(typeof i._listRef._getItemStyleCache=="function"&&i._listRef._getItemStyleCache(-1),i._listRef.forceUpdate())}})},l=0;l<r.length;l+=2)s(l)}}]),t}(J.PureComponent),yO={exports:{}};/*!
168
- * jQuery JavaScript Library v3.7.1
169
- * https://jquery.com/
170
- *
171
- * Copyright OpenJS Foundation and other contributors
172
- * Released under the MIT license
173
- * https://jquery.org/license
174
- *
175
- * Date: 2023-08-28T13:37Z
176
- */(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:Ko,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)},l=r.push,c=r.indexOf,d={},y=d.toString,g=d.hasOwnProperty,S=g.toString,T=S.call(Object),_={},I=function(v){return typeof v=="function"&&typeof v.nodeType!="number"&&typeof v.item!="function"},L=function(v){return v!=null&&v===v.window},R=t.document,U={type:!0,src:!0,nonce:!0,noModule:!0};function W(f,v,C){C=C||R;var O,N,B=C.createElement("script");if(B.text=f,v)for(O in U)N=v[O]||v.getAttribute&&v.getAttribute(O),N&&B.setAttribute(O,N);C.head.appendChild(B).parentNode.removeChild(B)}function ne(f){return f==null?f+"":typeof f=="object"||typeof f=="function"?d[y.call(f)]||"object":typeof f}var Q="3.7.1",pe=/HTML$/i,x=function(f,v){return new x.fn.init(f,v)};x.fn=x.prototype={jquery:Q,constructor:x,length:0,toArray:function(){return o.call(this)},get:function(f){return f==null?o.call(this):f<0?this[f+this.length]:this[f]},pushStack:function(f){var v=x.merge(this.constructor(),f);return v.prevObject=this,v},each:function(f){return x.each(this,f)},map:function(f){return this.pushStack(x.map(this,function(v,C){return f.call(v,C,v)}))},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,v){return(v+1)%2}))},odd:function(){return this.pushStack(x.grep(this,function(f,v){return v%2}))},eq:function(f){var v=this.length,C=+f+(f<0?v:0);return this.pushStack(C>=0&&C<v?[this[C]]:[])},end:function(){return this.prevObject||this.constructor()},push:l,sort:r.sort,splice:r.splice},x.extend=x.fn.extend=function(){var f,v,C,O,N,B,H=arguments[0]||{},le=1,oe=arguments.length,we=!1;for(typeof H=="boolean"&&(we=H,H=arguments[le]||{},le++),typeof H!="object"&&!I(H)&&(H={}),le===oe&&(H=this,le--);le<oe;le++)if((f=arguments[le])!=null)for(v in f)O=f[v],!(v==="__proto__"||H===O)&&(we&&O&&(x.isPlainObject(O)||(N=Array.isArray(O)))?(C=H[v],N&&!Array.isArray(C)?B=[]:!N&&!x.isPlainObject(C)?B={}:B=C,N=!1,H[v]=x.extend(we,B,O)):O!==void 0&&(H[v]=O));return H},x.extend({expando:"jQuery"+(Q+Math.random()).replace(/\D/g,""),isReady:!0,error:function(f){throw new Error(f)},noop:function(){},isPlainObject:function(f){var v,C;return!f||y.call(f)!=="[object Object]"?!1:(v=i(f),v?(C=g.call(v,"constructor")&&v.constructor,typeof C=="function"&&S.call(C)===T):!0)},isEmptyObject:function(f){var v;for(v in f)return!1;return!0},globalEval:function(f,v,C){W(f,{nonce:v&&v.nonce},C)},each:function(f,v){var C,O=0;if(ce(f))for(C=f.length;O<C&&v.call(f[O],O,f[O])!==!1;O++);else for(O in f)if(v.call(f[O],O,f[O])===!1)break;return f},text:function(f){var v,C="",O=0,N=f.nodeType;if(!N)for(;v=f[O++];)C+=x.text(v);return N===1||N===11?f.textContent:N===9?f.documentElement.textContent:N===3||N===4?f.nodeValue:C},makeArray:function(f,v){var C=v||[];return f!=null&&(ce(Object(f))?x.merge(C,typeof f=="string"?[f]:f):l.call(C,f)),C},inArray:function(f,v,C){return v==null?-1:c.call(v,f,C)},isXMLDoc:function(f){var v=f&&f.namespaceURI,C=f&&(f.ownerDocument||f).documentElement;return!pe.test(v||C&&C.nodeName||"HTML")},merge:function(f,v){for(var C=+v.length,O=0,N=f.length;O<C;O++)f[N++]=v[O];return f.length=N,f},grep:function(f,v,C){for(var O,N=[],B=0,H=f.length,le=!C;B<H;B++)O=!v(f[B],B),O!==le&&N.push(f[B]);return N},map:function(f,v,C){var O,N,B=0,H=[];if(ce(f))for(O=f.length;B<O;B++)N=v(f[B],B,C),N!=null&&H.push(N);else for(B in f)N=v(f[B],B,C),N!=null&&H.push(N);return s(H)},guid:1,support:_}),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,v){d["[object "+v+"]"]=v.toLowerCase()});function ce(f){var v=!!f&&"length"in f&&f.length,C=ne(f);return I(f)||L(f)?!1:C==="array"||v===0||typeof v=="number"&&v>0&&v-1 in f}function se(f,v){return f.nodeName&&f.nodeName.toLowerCase()===v.toLowerCase()}var je=r.pop,qe=r.sort,Xe=r.splice,rt="[\\x20\\t\\r\\n\\f]",nt=new RegExp("^"+rt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+rt+"+$","g");x.contains=function(f,v){var C=v&&v.parentNode;return f===C||!!(C&&C.nodeType===1&&(f.contains?f.contains(C):f.compareDocumentPosition&&f.compareDocumentPosition(C)&16))};var ye=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function Pe(f,v){return v?f==="\0"?"�":f.slice(0,-1)+"\\"+f.charCodeAt(f.length-1).toString(16)+" ":"\\"+f}x.escapeSelector=function(f){return(f+"").replace(ye,Pe)};var Ue=R,Je=l;(function(){var f,v,C,O,N,B=Je,H,le,oe,we,Le,Ne=x.expando,Ce=0,Ye=0,ct=Bn(),Pt=Bn(),It=Bn(),Mn=Bn(),dn=function(ee,me){return ee===me&&(N=!0),0},Br="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",$r="(?:\\\\[\\da-fA-F]{1,6}"+rt+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Wt="\\["+rt+"*("+$r+")(?:"+rt+"*([*^$|!~]?=)"+rt+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+$r+"))|)"+rt+"*\\]",Vr=":("+$r+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+Wt+")*)|.*)\\)|)",zt=new RegExp(rt+"+","g"),on=new RegExp("^"+rt+"*,"+rt+"*"),po=new RegExp("^"+rt+"*([>+~]|"+rt+")"+rt+"*"),go=new RegExp(rt+"|>"),Er=new RegExp(Vr),k=new RegExp("^"+$r+"$"),F={ID:new RegExp("^#("+$r+")"),CLASS:new RegExp("^\\.("+$r+")"),TAG:new RegExp("^("+$r+"|[*])"),ATTR:new RegExp("^"+Wt),PSEUDO:new RegExp("^"+Vr),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+rt+"*(even|odd|(([+-]|)(\\d*)n|)"+rt+"*(?:([+-]|)"+rt+"*(\\d+)|))"+rt+"*\\)|)","i"),bool:new RegExp("^(?:"+Br+")$","i"),needsContext:new RegExp("^"+rt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+rt+"*((?:-\\d)?\\d*)"+rt+"*\\)|)(?=[^-]|$)","i")},z=/^(?:input|select|textarea|button)$/i,te=/^h\d$/i,Se=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Te=/[+~]/,Be=new RegExp("\\\\[\\da-fA-F]{1,6}"+rt+"?|\\\\([^\\r\\n\\f])","g"),Qe=function(ee,me){var De="0x"+ee.slice(1)-65536;return me||(De<0?String.fromCharCode(De+65536):String.fromCharCode(De>>10|55296,De&1023|56320))},xt=function(){vo()},Nt=Gi(function(ee){return ee.disabled===!0&&se(ee,"fieldset")},{dir:"parentNode",next:"legend"});function Dt(){try{return H.activeElement}catch{}}try{B.apply(r=o.call(Ue.childNodes),Ue.childNodes),r[Ue.childNodes.length].nodeType}catch{B={apply:function(me,De){Je.apply(me,o.call(De))},call:function(me){Je.apply(me,o.call(arguments,1))}}}function Ct(ee,me,De,Ee){var Z,he,de,$e,We,ft,dt,lt=me&&me.ownerDocument,At=me?me.nodeType:9;if(De=De||[],typeof ee!="string"||!ee||At!==1&&At!==9&&At!==11)return De;if(!Ee&&(vo(me),me=me||H,oe)){if(At!==11&&(We=Se.exec(ee)))if(Z=We[1]){if(At===9)if(de=me.getElementById(Z)){if(de.id===Z)return B.call(De,de),De}else return De;else if(lt&&(de=lt.getElementById(Z))&&Ct.contains(me,de)&&de.id===Z)return B.call(De,de),De}else{if(We[2])return B.apply(De,me.getElementsByTagName(ee)),De;if((Z=We[3])&&me.getElementsByClassName)return B.apply(De,me.getElementsByClassName(Z)),De}if(!Mn[ee+" "]&&(!we||!we.test(ee))){if(dt=ee,lt=me,At===1&&(go.test(ee)||po.test(ee))){for(lt=Te.test(ee)&&Hs(me.parentNode)||me,(lt!=me||!_.scope)&&(($e=me.getAttribute("id"))?$e=x.escapeSelector($e):me.setAttribute("id",$e=Ne)),ft=sa(ee),he=ft.length;he--;)ft[he]=($e?"#"+$e:":scope")+" "+xi(ft[he]);dt=ft.join(",")}try{return B.apply(De,lt.querySelectorAll(dt)),De}catch{Mn(ee,!0)}finally{$e===Ne&&me.removeAttribute("id")}}}return cs(ee.replace(nt,"$1"),me,De,Ee)}function Bn(){var ee=[];function me(De,Ee){return ee.push(De+" ")>v.cacheLength&&delete me[ee.shift()],me[De+" "]=Ee}return me}function Tn(ee){return ee[Ne]=!0,ee}function Yn(ee){var me=H.createElement("fieldset");try{return!!ee(me)}catch{return!1}finally{me.parentNode&&me.parentNode.removeChild(me),me=null}}function oa(ee){return function(me){return se(me,"input")&&me.type===ee}}function ss(ee){return function(me){return(se(me,"input")||se(me,"button"))&&me.type===ee}}function aa(ee){return function(me){return"form"in me?me.parentNode&&me.disabled===!1?"label"in me?"label"in me.parentNode?me.parentNode.disabled===ee:me.disabled===ee:me.isDisabled===ee||me.isDisabled!==!ee&&Nt(me)===ee:me.disabled===ee:"label"in me?me.disabled===ee:!1}}function ii(ee){return Tn(function(me){return me=+me,Tn(function(De,Ee){for(var Z,he=ee([],De.length,me),de=he.length;de--;)De[Z=he[de]]&&(De[Z]=!(Ee[Z]=De[Z]))})})}function Hs(ee){return ee&&typeof ee.getElementsByTagName<"u"&&ee}function vo(ee){var me,De=ee?ee.ownerDocument||ee:Ue;return De==H||De.nodeType!==9||!De.documentElement||(H=De,le=H.documentElement,oe=!x.isXMLDoc(H),Le=le.matches||le.webkitMatchesSelector||le.msMatchesSelector,le.msMatchesSelector&&Ue!=H&&(me=H.defaultView)&&me.top!==me&&me.addEventListener("unload",xt),_.getById=Yn(function(Ee){return le.appendChild(Ee).id=x.expando,!H.getElementsByName||!H.getElementsByName(x.expando).length}),_.disconnectedMatch=Yn(function(Ee){return Le.call(Ee,"*")}),_.scope=Yn(function(){return H.querySelectorAll(":scope")}),_.cssHas=Yn(function(){try{return H.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),_.getById?(v.filter.ID=function(Ee){var Z=Ee.replace(Be,Qe);return function(he){return he.getAttribute("id")===Z}},v.find.ID=function(Ee,Z){if(typeof Z.getElementById<"u"&&oe){var he=Z.getElementById(Ee);return he?[he]:[]}}):(v.filter.ID=function(Ee){var Z=Ee.replace(Be,Qe);return function(he){var de=typeof he.getAttributeNode<"u"&&he.getAttributeNode("id");return de&&de.value===Z}},v.find.ID=function(Ee,Z){if(typeof Z.getElementById<"u"&&oe){var he,de,$e,We=Z.getElementById(Ee);if(We){if(he=We.getAttributeNode("id"),he&&he.value===Ee)return[We];for($e=Z.getElementsByName(Ee),de=0;We=$e[de++];)if(he=We.getAttributeNode("id"),he&&he.value===Ee)return[We]}return[]}}),v.find.TAG=function(Ee,Z){return typeof Z.getElementsByTagName<"u"?Z.getElementsByTagName(Ee):Z.querySelectorAll(Ee)},v.find.CLASS=function(Ee,Z){if(typeof Z.getElementsByClassName<"u"&&oe)return Z.getElementsByClassName(Ee)},we=[],Yn(function(Ee){var Z;le.appendChild(Ee).innerHTML="<a id='"+Ne+"' href='' disabled='disabled'></a><select id='"+Ne+"-\r\\' disabled='disabled'><option selected=''></option></select>",Ee.querySelectorAll("[selected]").length||we.push("\\["+rt+"*(?:value|"+Br+")"),Ee.querySelectorAll("[id~="+Ne+"-]").length||we.push("~="),Ee.querySelectorAll("a#"+Ne+"+*").length||we.push(".#.+[+~]"),Ee.querySelectorAll(":checked").length||we.push(":checked"),Z=H.createElement("input"),Z.setAttribute("type","hidden"),Ee.appendChild(Z).setAttribute("name","D"),le.appendChild(Ee).disabled=!0,Ee.querySelectorAll(":disabled").length!==2&&we.push(":enabled",":disabled"),Z=H.createElement("input"),Z.setAttribute("name",""),Ee.appendChild(Z),Ee.querySelectorAll("[name='']").length||we.push("\\["+rt+"*name"+rt+"*="+rt+`*(?:''|"")`)}),_.cssHas||we.push(":has"),we=we.length&&new RegExp(we.join("|")),dn=function(Ee,Z){if(Ee===Z)return N=!0,0;var he=!Ee.compareDocumentPosition-!Z.compareDocumentPosition;return he||(he=(Ee.ownerDocument||Ee)==(Z.ownerDocument||Z)?Ee.compareDocumentPosition(Z):1,he&1||!_.sortDetached&&Z.compareDocumentPosition(Ee)===he?Ee===H||Ee.ownerDocument==Ue&&Ct.contains(Ue,Ee)?-1:Z===H||Z.ownerDocument==Ue&&Ct.contains(Ue,Z)?1:O?c.call(O,Ee)-c.call(O,Z):0:he&4?-1:1)}),H}Ct.matches=function(ee,me){return Ct(ee,null,null,me)},Ct.matchesSelector=function(ee,me){if(vo(ee),oe&&!Mn[me+" "]&&(!we||!we.test(me)))try{var De=Le.call(ee,me);if(De||_.disconnectedMatch||ee.document&&ee.document.nodeType!==11)return De}catch{Mn(me,!0)}return Ct(me,H,null,[ee]).length>0},Ct.contains=function(ee,me){return(ee.ownerDocument||ee)!=H&&vo(ee),x.contains(ee,me)},Ct.attr=function(ee,me){(ee.ownerDocument||ee)!=H&&vo(ee);var De=v.attrHandle[me.toLowerCase()],Ee=De&&g.call(v.attrHandle,me.toLowerCase())?De(ee,me,!oe):void 0;return Ee!==void 0?Ee:ee.getAttribute(me)},Ct.error=function(ee){throw new Error("Syntax error, unrecognized expression: "+ee)},x.uniqueSort=function(ee){var me,De=[],Ee=0,Z=0;if(N=!_.sortStable,O=!_.sortStable&&o.call(ee,0),qe.call(ee,dn),N){for(;me=ee[Z++];)me===ee[Z]&&(Ee=De.push(Z));for(;Ee--;)Xe.call(ee,De[Ee],1)}return O=null,ee},x.fn.uniqueSort=function(){return this.pushStack(x.uniqueSort(o.apply(this)))},v=x.expr={cacheLength:50,createPseudo:Tn,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(Be,Qe),ee[3]=(ee[3]||ee[4]||ee[5]||"").replace(Be,Qe),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 me,De=!ee[6]&&ee[2];return F.CHILD.test(ee[0])?null:(ee[3]?ee[2]=ee[4]||ee[5]||"":De&&Er.test(De)&&(me=sa(De,!0))&&(me=De.indexOf(")",De.length-me)-De.length)&&(ee[0]=ee[0].slice(0,me),ee[2]=De.slice(0,me)),ee.slice(0,3))}},filter:{TAG:function(ee){var me=ee.replace(Be,Qe).toLowerCase();return ee==="*"?function(){return!0}:function(De){return se(De,me)}},CLASS:function(ee){var me=ct[ee+" "];return me||(me=new RegExp("(^|"+rt+")"+ee+"("+rt+"|$)"))&&ct(ee,function(De){return me.test(typeof De.className=="string"&&De.className||typeof De.getAttribute<"u"&&De.getAttribute("class")||"")})},ATTR:function(ee,me,De){return function(Ee){var Z=Ct.attr(Ee,ee);return Z==null?me==="!=":me?(Z+="",me==="="?Z===De:me==="!="?Z!==De:me==="^="?De&&Z.indexOf(De)===0:me==="*="?De&&Z.indexOf(De)>-1:me==="$="?De&&Z.slice(-De.length)===De:me==="~="?(" "+Z.replace(zt," ")+" ").indexOf(De)>-1:me==="|="?Z===De||Z.slice(0,De.length+1)===De+"-":!1):!0}},CHILD:function(ee,me,De,Ee,Z){var he=ee.slice(0,3)!=="nth",de=ee.slice(-4)!=="last",$e=me==="of-type";return Ee===1&&Z===0?function(We){return!!We.parentNode}:function(We,ft,dt){var lt,At,kt,Yt,Ln,ar=he!==de?"nextSibling":"previousSibling",Gn=We.parentNode,Hr=$e&&We.nodeName.toLowerCase(),qi=!dt&&!$e,Mt=!1;if(Gn){if(he){for(;ar;){for(kt=We;kt=kt[ar];)if($e?se(kt,Hr):kt.nodeType===1)return!1;Ln=ar=ee==="only"&&!Ln&&"nextSibling"}return!0}if(Ln=[de?Gn.firstChild:Gn.lastChild],de&&qi){for(At=Gn[Ne]||(Gn[Ne]={}),lt=At[ee]||[],Yt=lt[0]===Ce&&lt[1],Mt=Yt&&lt[2],kt=Yt&&Gn.childNodes[Yt];kt=++Yt&&kt&&kt[ar]||(Mt=Yt=0)||Ln.pop();)if(kt.nodeType===1&&++Mt&&kt===We){At[ee]=[Ce,Yt,Mt];break}}else if(qi&&(At=We[Ne]||(We[Ne]={}),lt=At[ee]||[],Yt=lt[0]===Ce&&lt[1],Mt=Yt),Mt===!1)for(;(kt=++Yt&&kt&&kt[ar]||(Mt=Yt=0)||Ln.pop())&&!(($e?se(kt,Hr):kt.nodeType===1)&&++Mt&&(qi&&(At=kt[Ne]||(kt[Ne]={}),At[ee]=[Ce,Mt]),kt===We)););return Mt-=Z,Mt===Ee||Mt%Ee===0&&Mt/Ee>=0}}},PSEUDO:function(ee,me){var De,Ee=v.pseudos[ee]||v.setFilters[ee.toLowerCase()]||Ct.error("unsupported pseudo: "+ee);return Ee[Ne]?Ee(me):Ee.length>1?(De=[ee,ee,"",me],v.setFilters.hasOwnProperty(ee.toLowerCase())?Tn(function(Z,he){for(var de,$e=Ee(Z,me),We=$e.length;We--;)de=c.call(Z,$e[We]),Z[de]=!(he[de]=$e[We])}):function(Z){return Ee(Z,0,De)}):Ee}},pseudos:{not:Tn(function(ee){var me=[],De=[],Ee=ls(ee.replace(nt,"$1"));return Ee[Ne]?Tn(function(Z,he,de,$e){for(var We,ft=Ee(Z,null,$e,[]),dt=Z.length;dt--;)(We=ft[dt])&&(Z[dt]=!(he[dt]=We))}):function(Z,he,de){return me[0]=Z,Ee(me,null,de,De),me[0]=null,!De.pop()}}),has:Tn(function(ee){return function(me){return Ct(ee,me).length>0}}),contains:Tn(function(ee){return ee=ee.replace(Be,Qe),function(me){return(me.textContent||x.text(me)).indexOf(ee)>-1}}),lang:Tn(function(ee){return k.test(ee||"")||Ct.error("unsupported lang: "+ee),ee=ee.replace(Be,Qe).toLowerCase(),function(me){var De;do if(De=oe?me.lang:me.getAttribute("xml:lang")||me.getAttribute("lang"))return De=De.toLowerCase(),De===ee||De.indexOf(ee+"-")===0;while((me=me.parentNode)&&me.nodeType===1);return!1}}),target:function(ee){var me=t.location&&t.location.hash;return me&&me.slice(1)===ee.id},root:function(ee){return ee===le},focus:function(ee){return ee===Dt()&&H.hasFocus()&&!!(ee.type||ee.href||~ee.tabIndex)},enabled:aa(!1),disabled:aa(!0),checked:function(ee){return se(ee,"input")&&!!ee.checked||se(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!v.pseudos.empty(ee)},header:function(ee){return te.test(ee.nodeName)},input:function(ee){return z.test(ee.nodeName)},button:function(ee){return se(ee,"input")&&ee.type==="button"||se(ee,"button")},text:function(ee){var me;return se(ee,"input")&&ee.type==="text"&&((me=ee.getAttribute("type"))==null||me.toLowerCase()==="text")},first:ii(function(){return[0]}),last:ii(function(ee,me){return[me-1]}),eq:ii(function(ee,me,De){return[De<0?De+me:De]}),even:ii(function(ee,me){for(var De=0;De<me;De+=2)ee.push(De);return ee}),odd:ii(function(ee,me){for(var De=1;De<me;De+=2)ee.push(De);return ee}),lt:ii(function(ee,me,De){var Ee;for(De<0?Ee=De+me:De>me?Ee=me:Ee=De;--Ee>=0;)ee.push(Ee);return ee}),gt:ii(function(ee,me,De){for(var Ee=De<0?De+me:De;++Ee<me;)ee.push(Ee);return ee})}},v.pseudos.nth=v.pseudos.eq;for(f in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})v.pseudos[f]=oa(f);for(f in{submit:!0,reset:!0})v.pseudos[f]=ss(f);function us(){}us.prototype=v.filters=v.pseudos,v.setFilters=new us;function sa(ee,me){var De,Ee,Z,he,de,$e,We,ft=Pt[ee+" "];if(ft)return me?0:ft.slice(0);for(de=ee,$e=[],We=v.preFilter;de;){(!De||(Ee=on.exec(de)))&&(Ee&&(de=de.slice(Ee[0].length)||de),$e.push(Z=[])),De=!1,(Ee=po.exec(de))&&(De=Ee.shift(),Z.push({value:De,type:Ee[0].replace(nt," ")}),de=de.slice(De.length));for(he in v.filter)(Ee=F[he].exec(de))&&(!We[he]||(Ee=We[he](Ee)))&&(De=Ee.shift(),Z.push({value:De,type:he,matches:Ee}),de=de.slice(De.length));if(!De)break}return me?de.length:de?Ct.error(ee):Pt(ee,$e).slice(0)}function xi(ee){for(var me=0,De=ee.length,Ee="";me<De;me++)Ee+=ee[me].value;return Ee}function Gi(ee,me,De){var Ee=me.dir,Z=me.next,he=Z||Ee,de=De&&he==="parentNode",$e=Ye++;return me.first?function(We,ft,dt){for(;We=We[Ee];)if(We.nodeType===1||de)return ee(We,ft,dt);return!1}:function(We,ft,dt){var lt,At,kt=[Ce,$e];if(dt){for(;We=We[Ee];)if((We.nodeType===1||de)&&ee(We,ft,dt))return!0}else for(;We=We[Ee];)if(We.nodeType===1||de)if(At=We[Ne]||(We[Ne]={}),Z&&se(We,Z))We=We[Ee]||We;else{if((lt=At[he])&&lt[0]===Ce&&lt[1]===$e)return kt[2]=lt[2];if(At[he]=kt,kt[2]=ee(We,ft,dt))return!0}return!1}}function Us(ee){return ee.length>1?function(me,De,Ee){for(var Z=ee.length;Z--;)if(!ee[Z](me,De,Ee))return!1;return!0}:ee[0]}function Ml(ee,me,De){for(var Ee=0,Z=me.length;Ee<Z;Ee++)Ct(ee,me[Ee],De);return De}function ua(ee,me,De,Ee,Z){for(var he,de=[],$e=0,We=ee.length,ft=me!=null;$e<We;$e++)(he=ee[$e])&&(!De||De(he,Ee,Z))&&(de.push(he),ft&&me.push($e));return de}function mo(ee,me,De,Ee,Z,he){return Ee&&!Ee[Ne]&&(Ee=mo(Ee)),Z&&!Z[Ne]&&(Z=mo(Z,he)),Tn(function(de,$e,We,ft){var dt,lt,At,kt,Yt=[],Ln=[],ar=$e.length,Gn=de||Ml(me||"*",We.nodeType?[We]:We,[]),Hr=ee&&(de||!me)?ua(Gn,Yt,ee,We,ft):Gn;if(De?(kt=Z||(de?ee:ar||Ee)?[]:$e,De(Hr,kt,We,ft)):kt=Hr,Ee)for(dt=ua(kt,Ln),Ee(dt,[],We,ft),lt=dt.length;lt--;)(At=dt[lt])&&(kt[Ln[lt]]=!(Hr[Ln[lt]]=At));if(de){if(Z||ee){if(Z){for(dt=[],lt=kt.length;lt--;)(At=kt[lt])&&dt.push(Hr[lt]=At);Z(null,kt=[],dt,ft)}for(lt=kt.length;lt--;)(At=kt[lt])&&(dt=Z?c.call(de,At):Yt[lt])>-1&&(de[dt]=!($e[dt]=At))}}else kt=ua(kt===$e?kt.splice(ar,kt.length):kt),Z?Z(null,$e,kt,ft):B.apply($e,kt)})}function hr(ee){for(var me,De,Ee,Z=ee.length,he=v.relative[ee[0].type],de=he||v.relative[" "],$e=he?1:0,We=Gi(function(lt){return lt===me},de,!0),ft=Gi(function(lt){return c.call(me,lt)>-1},de,!0),dt=[function(lt,At,kt){var Yt=!he&&(kt||At!=C)||((me=At).nodeType?We(lt,At,kt):ft(lt,At,kt));return me=null,Yt}];$e<Z;$e++)if(De=v.relative[ee[$e].type])dt=[Gi(Us(dt),De)];else{if(De=v.filter[ee[$e].type].apply(null,ee[$e].matches),De[Ne]){for(Ee=++$e;Ee<Z&&!v.relative[ee[Ee].type];Ee++);return mo($e>1&&Us(dt),$e>1&&xi(ee.slice(0,$e-1).concat({value:ee[$e-2].type===" "?"*":""})).replace(nt,"$1"),De,$e<Ee&&hr(ee.slice($e,Ee)),Ee<Z&&hr(ee=ee.slice(Ee)),Ee<Z&&xi(ee))}dt.push(De)}return Us(dt)}function Ws(ee,me){var De=me.length>0,Ee=ee.length>0,Z=function(he,de,$e,We,ft){var dt,lt,At,kt=0,Yt="0",Ln=he&&[],ar=[],Gn=C,Hr=he||Ee&&v.find.TAG("*",ft),qi=Ce+=Gn==null?1:Math.random()||.1,Mt=Hr.length;for(ft&&(C=de==H||de||ft);Yt!==Mt&&(dt=Hr[Yt])!=null;Yt++){if(Ee&&dt){for(lt=0,!de&&dt.ownerDocument!=H&&(vo(dt),$e=!oe);At=ee[lt++];)if(At(dt,de||H,$e)){B.call(We,dt);break}ft&&(Ce=qi)}De&&((dt=!At&&dt)&&kt--,he&&Ln.push(dt))}if(kt+=Yt,De&&Yt!==kt){for(lt=0;At=me[lt++];)At(Ln,ar,de,$e);if(he){if(kt>0)for(;Yt--;)Ln[Yt]||ar[Yt]||(ar[Yt]=je.call(We));ar=ua(ar)}B.apply(We,ar),ft&&!he&&ar.length>0&&kt+me.length>1&&x.uniqueSort(We)}return ft&&(Ce=qi,C=Gn),Ln};return De?Tn(Z):Z}function ls(ee,me){var De,Ee=[],Z=[],he=It[ee+" "];if(!he){for(me||(me=sa(ee)),De=me.length;De--;)he=hr(me[De]),he[Ne]?Ee.push(he):Z.push(he);he=It(ee,Ws(Z,Ee)),he.selector=ee}return he}function cs(ee,me,De,Ee){var Z,he,de,$e,We,ft=typeof ee=="function"&&ee,dt=!Ee&&sa(ee=ft.selector||ee);if(De=De||[],dt.length===1){if(he=dt[0]=dt[0].slice(0),he.length>2&&(de=he[0]).type==="ID"&&me.nodeType===9&&oe&&v.relative[he[1].type]){if(me=(v.find.ID(de.matches[0].replace(Be,Qe),me)||[])[0],me)ft&&(me=me.parentNode);else return De;ee=ee.slice(he.shift().value.length)}for(Z=F.needsContext.test(ee)?0:he.length;Z--&&(de=he[Z],!v.relative[$e=de.type]);)if((We=v.find[$e])&&(Ee=We(de.matches[0].replace(Be,Qe),Te.test(he[0].type)&&Hs(me.parentNode)||me))){if(he.splice(Z,1),ee=Ee.length&&xi(he),!ee)return B.apply(De,Ee),De;break}}return(ft||ls(ee,dt))(Ee,me,!oe,De,!me||Te.test(ee)&&Hs(me.parentNode)||me),De}_.sortStable=Ne.split("").sort(dn).join("")===Ne,vo(),_.sortDetached=Yn(function(ee){return ee.compareDocumentPosition(H.createElement("fieldset"))&1}),x.find=Ct,x.expr[":"]=x.expr.pseudos,x.unique=x.uniqueSort,Ct.compile=ls,Ct.select=cs,Ct.setDocument=vo,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 st=function(f,v,C){for(var O=[],N=C!==void 0;(f=f[v])&&f.nodeType!==9;)if(f.nodeType===1){if(N&&x(f).is(C))break;O.push(f)}return O},ke=function(f,v){for(var C=[];f;f=f.nextSibling)f.nodeType===1&&f!==v&&C.push(f);return C},_e=x.expr.match.needsContext,Ve=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function He(f,v,C){return I(v)?x.grep(f,function(O,N){return!!v.call(O,N,O)!==C}):v.nodeType?x.grep(f,function(O){return O===v!==C}):typeof v!="string"?x.grep(f,function(O){return c.call(v,O)>-1!==C}):x.filter(v,f,C)}x.filter=function(f,v,C){var O=v[0];return C&&(f=":not("+f+")"),v.length===1&&O.nodeType===1?x.find.matchesSelector(O,f)?[O]:[]:x.find.matches(f,x.grep(v,function(N){return N.nodeType===1}))},x.fn.extend({find:function(f){var v,C,O=this.length,N=this;if(typeof f!="string")return this.pushStack(x(f).filter(function(){for(v=0;v<O;v++)if(x.contains(N[v],this))return!0}));for(C=this.pushStack([]),v=0;v<O;v++)x.find(f,N[v],C);return O>1?x.uniqueSort(C):C},filter:function(f){return this.pushStack(He(this,f||[],!1))},not:function(f){return this.pushStack(He(this,f||[],!0))},is:function(f){return!!He(this,typeof f=="string"&&_e.test(f)?x(f):f||[],!1).length}});var Re,Fe=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,ze=x.fn.init=function(f,v,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]||!v))if(O[1]){if(v=v instanceof x?v[0]:v,x.merge(this,x.parseHTML(O[1],v&&v.nodeType?v.ownerDocument||v:R,!0)),Ve.test(O[1])&&x.isPlainObject(v))for(O in v)I(this[O])?this[O](v[O]):this.attr(O,v[O]);return this}else return N=R.getElementById(O[2]),N&&(this[0]=N,this.length=1),this;else return!v||v.jquery?(v||C).find(f):this.constructor(v).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)};ze.prototype=x.fn,Re=x(R);var ut=/^(?:parents|prev(?:Until|All))/,mt={children:!0,contents:!0,next:!0,prev:!0};x.fn.extend({has:function(f){var v=x(f,this),C=v.length;return this.filter(function(){for(var O=0;O<C;O++)if(x.contains(this,v[O]))return!0})},closest:function(f,v){var C,O=0,N=this.length,B=[],H=typeof f!="string"&&x(f);if(!_e.test(f)){for(;O<N;O++)for(C=this[O];C&&C!==v;C=C.parentNode)if(C.nodeType<11&&(H?H.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,v){return this.pushStack(x.uniqueSort(x.merge(this.get(),x(f,v))))},addBack:function(f){return this.add(f==null?this.prevObject:this.prevObject.filter(f))}});function wt(f,v){for(;(f=f[v])&&f.nodeType!==1;);return f}x.each({parent:function(f){var v=f.parentNode;return v&&v.nodeType!==11?v:null},parents:function(f){return st(f,"parentNode")},parentsUntil:function(f,v,C){return st(f,"parentNode",C)},next:function(f){return wt(f,"nextSibling")},prev:function(f){return wt(f,"previousSibling")},nextAll:function(f){return st(f,"nextSibling")},prevAll:function(f){return st(f,"previousSibling")},nextUntil:function(f,v,C){return st(f,"nextSibling",C)},prevUntil:function(f,v,C){return st(f,"previousSibling",C)},siblings:function(f){return ke((f.parentNode||{}).firstChild,f)},children:function(f){return ke(f.firstChild)},contents:function(f){return f.contentDocument!=null&&i(f.contentDocument)?f.contentDocument:(se(f,"template")&&(f=f.content||f),x.merge([],f.childNodes))}},function(f,v){x.fn[f]=function(C,O){var N=x.map(this,v,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),ut.test(f)&&N.reverse()),this.pushStack(N)}});var vt=/[^\x20\t\r\n\f]+/g;function Et(f){var v={};return x.each(f.match(vt)||[],function(C,O){v[O]=!0}),v}x.Callbacks=function(f){f=typeof f=="string"?Et(f):x.extend({},f);var v,C,O,N,B=[],H=[],le=-1,oe=function(){for(N=N||f.once,O=v=!0;H.length;le=-1)for(C=H.shift();++le<B.length;)B[le].apply(C[0],C[1])===!1&&f.stopOnFalse&&(le=B.length,C=!1);f.memory||(C=!1),v=!1,N&&(C?B=[]:B="")},we={add:function(){return B&&(C&&!v&&(le=B.length-1,H.push(C)),function Le(Ne){x.each(Ne,function(Ce,Ye){I(Ye)?(!f.unique||!we.has(Ye))&&B.push(Ye):Ye&&Ye.length&&ne(Ye)!=="string"&&Le(Ye)})}(arguments),C&&!v&&oe()),this},remove:function(){return x.each(arguments,function(Le,Ne){for(var Ce;(Ce=x.inArray(Ne,B,Ce))>-1;)B.splice(Ce,1),Ce<=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=H=[],B=C="",this},disabled:function(){return!B},lock:function(){return N=H=[],!C&&!v&&(B=C=""),this},locked:function(){return!!N},fireWith:function(Le,Ne){return N||(Ne=Ne||[],Ne=[Le,Ne.slice?Ne.slice():Ne],H.push(Ne),v||oe()),this},fire:function(){return we.fireWith(this,arguments),this},fired:function(){return!!O}};return we};function it(f){return f}function $t(f){throw f}function Ht(f,v,C,O){var N;try{f&&I(N=f.promise)?N.call(f).done(v).fail(C):f&&I(N=f.then)?N.call(f,v,C):v.apply(void 0,[f].slice(O))}catch(B){C.apply(void 0,[B])}}x.extend({Deferred:function(f){var v=[["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(H){x.each(v,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(H.notify).done(H.resolve).fail(H.reject):H[oe[0]+"With"](this,we?[Le]:arguments)})}),B=null}).promise()},then:function(B,H,le){var oe=0;function we(Le,Ne,Ce,Ye){return function(){var ct=this,Pt=arguments,It=function(){var dn,Br;if(!(Le<oe)){if(dn=Ce.apply(ct,Pt),dn===Ne.promise())throw new TypeError("Thenable self-resolution");Br=dn&&(typeof dn=="object"||typeof dn=="function")&&dn.then,I(Br)?Ye?Br.call(dn,we(oe,Ne,it,Ye),we(oe,Ne,$t,Ye)):(oe++,Br.call(dn,we(oe,Ne,it,Ye),we(oe,Ne,$t,Ye),we(oe,Ne,it,Ne.notifyWith))):(Ce!==it&&(ct=void 0,Pt=[dn]),(Ye||Ne.resolveWith)(ct,Pt))}},Mn=Ye?It:function(){try{It()}catch(dn){x.Deferred.exceptionHook&&x.Deferred.exceptionHook(dn,Mn.error),Le+1>=oe&&(Ce!==$t&&(ct=void 0,Pt=[dn]),Ne.rejectWith(ct,Pt))}};Le?Mn():(x.Deferred.getErrorHook?Mn.error=x.Deferred.getErrorHook():x.Deferred.getStackHook&&(Mn.error=x.Deferred.getStackHook()),t.setTimeout(Mn))}}return x.Deferred(function(Le){v[0][3].add(we(0,Le,I(le)?le:it,Le.notifyWith)),v[1][3].add(we(0,Le,I(B)?B:it)),v[2][3].add(we(0,Le,I(H)?H:$t))}).promise()},promise:function(B){return B!=null?x.extend(B,O):O}},N={};return x.each(v,function(B,H){var le=H[2],oe=H[5];O[H[1]]=le.add,oe&&le.add(function(){C=oe},v[3-B][2].disable,v[3-B][3].disable,v[0][2].lock,v[0][3].lock),le.add(H[3].fire),N[H[0]]=function(){return N[H[0]+"With"](this===N?void 0:this,arguments),this},N[H[0]+"With"]=le.fireWith}),O.promise(N),f&&f.call(N,N),N},when:function(f){var v=arguments.length,C=v,O=Array(C),N=o.call(arguments),B=x.Deferred(),H=function(le){return function(oe){O[le]=this,N[le]=arguments.length>1?o.call(arguments):oe,--v||B.resolveWith(O,N)}};if(v<=1&&(Ht(f,B.done(H(C)).resolve,B.reject,!v),B.state()==="pending"||I(N[C]&&N[C].then)))return B.then();for(;C--;)Ht(N[C],H(C),B.reject);return B.promise()}});var Xn=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;x.Deferred.exceptionHook=function(f,v){t.console&&t.console.warn&&f&&Xn.test(f.name)&&t.console.warn("jQuery.Deferred exception: "+f.message,f.stack,v)},x.readyException=function(f){t.setTimeout(function(){throw f})};var br=x.Deferred();x.fn.ready=function(f){return br.then(f).catch(function(v){x.readyException(v)}),this},x.extend({isReady:!1,readyWait:1,ready:function(f){(f===!0?--x.readyWait:x.isReady)||(x.isReady=!0,!(f!==!0&&--x.readyWait>0)&&br.resolveWith(R,[x]))}}),x.ready.then=br.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 kn=function(f,v,C,O,N,B,H){var le=0,oe=f.length,we=C==null;if(ne(C)==="object"){N=!0;for(le in C)kn(f,v,le,C[le],!0,B,H)}else if(O!==void 0&&(N=!0,I(O)||(H=!0),we&&(H?(v.call(f,O),v=null):(we=v,v=function(Le,Ne,Ce){return we.call(x(Le),Ce)})),v))for(;le<oe;le++)v(f[le],C,H?O:O.call(f[le],le,v(f[le],C)));return N?f:we?v.call(f):oe?v(f[0],C):B},ji=/^-ms-/,Pr=/-([a-z])/g;function rr(f,v){return v.toUpperCase()}function cn(f){return f.replace(ji,"ms-").replace(Pr,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 v=f[this.expando];return v||(v={},hn(f)&&(f.nodeType?f[this.expando]=v:Object.defineProperty(f,this.expando,{value:v,configurable:!0}))),v},set:function(f,v,C){var O,N=this.cache(f);if(typeof v=="string")N[cn(v)]=C;else for(O in v)N[cn(O)]=v[O];return N},get:function(f,v){return v===void 0?this.cache(f):f[this.expando]&&f[this.expando][cn(v)]},access:function(f,v,C){return v===void 0||v&&typeof v=="string"&&C===void 0?this.get(f,v):(this.set(f,v,C),C!==void 0?C:v)},remove:function(f,v){var C,O=f[this.expando];if(O!==void 0){if(v!==void 0)for(Array.isArray(v)?v=v.map(cn):(v=cn(v),v=v in O?[v]:v.match(vt)||[]),C=v.length;C--;)delete O[v[C]];(v===void 0||x.isEmptyObject(O))&&(f.nodeType?f[this.expando]=void 0:delete f[this.expando])}},hasData:function(f){var v=f[this.expando];return v!==void 0&&!x.isEmptyObject(v)}};var gt=new pn,Rn=new pn,ci=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ln=/[A-Z]/g;function Bi(f){return f==="true"?!0:f==="false"?!1:f==="null"?null:f===+f+""?+f:ci.test(f)?JSON.parse(f):f}function $i(f,v,C){var O;if(C===void 0&&f.nodeType===1)if(O="data-"+v.replace(ln,"-$&").toLowerCase(),C=f.getAttribute(O),typeof C=="string"){try{C=Bi(C)}catch{}Rn.set(f,v,C)}else C=void 0;return C}x.extend({hasData:function(f){return Rn.hasData(f)||gt.hasData(f)},data:function(f,v,C){return Rn.access(f,v,C)},removeData:function(f,v){Rn.remove(f,v)},_data:function(f,v,C){return gt.access(f,v,C)},_removeData:function(f,v){gt.remove(f,v)}}),x.fn.extend({data:function(f,v){var C,O,N,B=this[0],H=B&&B.attributes;if(f===void 0){if(this.length&&(N=Rn.get(B),B.nodeType===1&&!gt.get(B,"hasDataAttrs"))){for(C=H.length;C--;)H[C]&&(O=H[C].name,O.indexOf("data-")===0&&(O=cn(O.slice(5)),$i(B,O,N[O])));gt.set(B,"hasDataAttrs",!0)}return N}return typeof f=="object"?this.each(function(){Rn.set(this,f)}):kn(this,function(le){var oe;if(B&&le===void 0)return oe=Rn.get(B,f),oe!==void 0||(oe=$i(B,f),oe!==void 0)?oe:void 0;this.each(function(){Rn.set(this,f,le)})},null,v,arguments.length>1,null,!0)},removeData:function(f){return this.each(function(){Rn.remove(this,f)})}}),x.extend({queue:function(f,v,C){var O;if(f)return v=(v||"fx")+"queue",O=gt.get(f,v),C&&(!O||Array.isArray(C)?O=gt.access(f,v,x.makeArray(C)):O.push(C)),O||[]},dequeue:function(f,v){v=v||"fx";var C=x.queue(f,v),O=C.length,N=C.shift(),B=x._queueHooks(f,v),H=function(){x.dequeue(f,v)};N==="inprogress"&&(N=C.shift(),O--),N&&(v==="fx"&&C.unshift("inprogress"),delete B.stop,N.call(f,H,B)),!O&&B&&B.empty.fire()},_queueHooks:function(f,v){var C=v+"queueHooks";return gt.get(f,C)||gt.access(f,C,{empty:x.Callbacks("once memory").add(function(){gt.remove(f,[v+"queue",C])})})}}),x.fn.extend({queue:function(f,v){var C=2;return typeof f!="string"&&(v=f,f="fx",C--),arguments.length<C?x.queue(this[0],f):v===void 0?this:this.each(function(){var O=x.queue(this,f,v);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,v){var C,O=1,N=x.Deferred(),B=this,H=this.length,le=function(){--O||N.resolveWith(B,[B])};for(typeof f!="string"&&(v=f,f=void 0),f=f||"fx";H--;)C=gt.get(B[H],f+"queueHooks"),C&&C.empty&&(O++,C.empty.add(le));return le(),N.promise(v)}});var Vi=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,_r=new RegExp("^(?:([+-])=|)("+Vi+")([a-z%]*)$","i"),Un=["Top","Right","Bottom","Left"],Rr=R.documentElement,wr=function(f){return x.contains(f.ownerDocument,f)},qr={composed:!0};Rr.getRootNode&&(wr=function(f){return x.contains(f.ownerDocument,f)||f.getRootNode(qr)===f.ownerDocument});var Xr=function(f,v){return f=v||f,f.style.display==="none"||f.style.display===""&&wr(f)&&x.css(f,"display")==="none"};function Po(f,v,C,O){var N,B,H=20,le=O?function(){return O.cur()}:function(){return x.css(f,v,"")},oe=le(),we=C&&C[3]||(x.cssNumber[v]?"":"px"),Le=f.nodeType&&(x.cssNumber[v]||we!=="px"&&+oe)&&_r.exec(x.css(f,v));if(Le&&Le[3]!==we){for(oe=oe/2,we=we||Le[3],Le=+oe||1;H--;)x.style(f,v,Le+we),(1-B)*(1-(B=le()/oe||.5))<=0&&(H=0),Le=Le/B;Le=Le*2,x.style(f,v,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 v,C=f.ownerDocument,O=f.nodeName,N=Zn[O];return N||(v=C.body.appendChild(C.createElement(O)),N=x.css(v,"display"),v.parentNode.removeChild(v),N==="none"&&(N="block"),Zn[O]=N,N)}function ir(f,v){for(var C,O,N=[],B=0,H=f.length;B<H;B++)O=f[B],O.style&&(C=O.style.display,v?(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<H;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,fi=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Hi=/^$|^module$|\/(?:java|ecma)script/i;(function(){var f=R.createDocumentFragment(),v=f.appendChild(R.createElement("div")),C=R.createElement("input");C.setAttribute("type","radio"),C.setAttribute("checked","checked"),C.setAttribute("name","t"),v.appendChild(C),_.checkClone=v.cloneNode(!0).cloneNode(!0).lastChild.checked,v.innerHTML="<textarea>x</textarea>",_.noCloneChecked=!!v.cloneNode(!0).lastChild.defaultValue,v.innerHTML="<option></option>",_.option=!!v.lastChild})();var In={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,"",""]};In.tbody=In.tfoot=In.colgroup=In.caption=In.thead,In.th=In.td,_.option||(In.optgroup=In.option=[1,"<select multiple='multiple'>","</select>"]);function gn(f,v){var C;return typeof f.getElementsByTagName<"u"?C=f.getElementsByTagName(v||"*"):typeof f.querySelectorAll<"u"?C=f.querySelectorAll(v||"*"):C=[],v===void 0||v&&se(f,v)?x.merge([f],C):C}function di(f,v){for(var C=0,O=f.length;C<O;C++)gt.set(f[C],"globalEval",!v||gt.get(v[C],"globalEval"))}var hi=/<|&#?\w+;/;function mn(f,v,C,O,N){for(var B,H,le,oe,we,Le,Ne=v.createDocumentFragment(),Ce=[],Ye=0,ct=f.length;Ye<ct;Ye++)if(B=f[Ye],B||B===0)if(ne(B)==="object")x.merge(Ce,B.nodeType?[B]:B);else if(!hi.test(B))Ce.push(v.createTextNode(B));else{for(H=H||Ne.appendChild(v.createElement("div")),le=(fi.exec(B)||["",""])[1].toLowerCase(),oe=In[le]||In._default,H.innerHTML=oe[1]+x.htmlPrefilter(B)+oe[2],Le=oe[0];Le--;)H=H.lastChild;x.merge(Ce,H.childNodes),H=Ne.firstChild,H.textContent=""}for(Ne.textContent="",Ye=0;B=Ce[Ye++];){if(O&&x.inArray(B,O)>-1){N&&N.push(B);continue}if(we=wr(B),H=gn(Ne.appendChild(B),"script"),we&&di(H),C)for(Le=0;B=H[Le++];)Hi.test(B.type||"")&&C.push(B)}return Ne}var uo=/^([^.]*)(?:\.(.+)|)/;function xr(){return!0}function pi(){return!1}function fn(f,v,C,O,N,B){var H,le;if(typeof v=="object"){typeof C!="string"&&(O=O||C,C=void 0);for(le in v)fn(f,le,C,O,v[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=pi;else if(!N)return f;return B===1&&(H=N,N=function(oe){return x().off(oe),H.apply(this,arguments)},N.guid=H.guid||(H.guid=x.guid++)),f.each(function(){x.event.add(this,v,N,O,C)})}x.event={global:{},add:function(f,v,C,O,N){var B,H,le,oe,we,Le,Ne,Ce,Ye,ct,Pt,It=gt.get(f);if(hn(f))for(C.handler&&(B=C,C=B.handler,N=B.selector),N&&x.find.matchesSelector(Rr,N),C.guid||(C.guid=x.guid++),(oe=It.events)||(oe=It.events=Object.create(null)),(H=It.handle)||(H=It.handle=function(Mn){return typeof x<"u"&&x.event.triggered!==Mn.type?x.event.dispatch.apply(f,arguments):void 0}),v=(v||"").match(vt)||[""],we=v.length;we--;)le=uo.exec(v[we])||[],Ye=Pt=le[1],ct=(le[2]||"").split(".").sort(),Ye&&(Ne=x.event.special[Ye]||{},Ye=(N?Ne.delegateType:Ne.bindType)||Ye,Ne=x.event.special[Ye]||{},Le=x.extend({type:Ye,origType:Pt,data:O,handler:C,guid:C.guid,selector:N,needsContext:N&&x.expr.match.needsContext.test(N),namespace:ct.join(".")},B),(Ce=oe[Ye])||(Ce=oe[Ye]=[],Ce.delegateCount=0,(!Ne.setup||Ne.setup.call(f,O,ct,H)===!1)&&f.addEventListener&&f.addEventListener(Ye,H)),Ne.add&&(Ne.add.call(f,Le),Le.handler.guid||(Le.handler.guid=C.guid)),N?Ce.splice(Ce.delegateCount++,0,Le):Ce.push(Le),x.event.global[Ye]=!0)},remove:function(f,v,C,O,N){var B,H,le,oe,we,Le,Ne,Ce,Ye,ct,Pt,It=gt.hasData(f)&&gt.get(f);if(!(!It||!(oe=It.events))){for(v=(v||"").match(vt)||[""],we=v.length;we--;){if(le=uo.exec(v[we])||[],Ye=Pt=le[1],ct=(le[2]||"").split(".").sort(),!Ye){for(Ye in oe)x.event.remove(f,Ye+v[we],C,O,!0);continue}for(Ne=x.event.special[Ye]||{},Ye=(O?Ne.delegateType:Ne.bindType)||Ye,Ce=oe[Ye]||[],le=le[2]&&new RegExp("(^|\\.)"+ct.join("\\.(?:.*\\.|)")+"(\\.|$)"),H=B=Ce.length;B--;)Le=Ce[B],(N||Pt===Le.origType)&&(!C||C.guid===Le.guid)&&(!le||le.test(Le.namespace))&&(!O||O===Le.selector||O==="**"&&Le.selector)&&(Ce.splice(B,1),Le.selector&&Ce.delegateCount--,Ne.remove&&Ne.remove.call(f,Le));H&&!Ce.length&&((!Ne.teardown||Ne.teardown.call(f,ct,It.handle)===!1)&&x.removeEvent(f,Ye,It.handle),delete oe[Ye])}x.isEmptyObject(oe)&&gt.remove(f,"handle events")}},dispatch:function(f){var v,C,O,N,B,H,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,v=1;v<arguments.length;v++)le[v]=arguments[v];if(oe.delegateTarget=this,!(Le.preDispatch&&Le.preDispatch.call(this,oe)===!1)){for(H=x.event.handlers.call(this,oe,we),v=0;(N=H[v++])&&!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,v){var C,O,N,B,H,le=[],oe=v.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=[],H={},C=0;C<oe;C++)O=v[C],N=O.selector+" ",H[N]===void 0&&(H[N]=O.needsContext?x(N,this).index(we)>-1:x.find(N,this,null,[we]).length),H[N]&&B.push(O);B.length&&le.push({elem:we,handlers:B})}}return we=this,oe<v.length&&le.push({elem:we,handlers:v.slice(oe)}),le},addProp:function(f,v){Object.defineProperty(x.Event.prototype,f,{enumerable:!0,configurable:!0,get:I(v)?function(){if(this.originalEvent)return v(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 v=this||f;return Zt.test(v.type)&&v.click&&se(v,"input")&&Si(v,"click",!0),!1},trigger:function(f){var v=this||f;return Zt.test(v.type)&&v.click&&se(v,"input")&&Si(v,"click"),!0},_default:function(f){var v=f.target;return Zt.test(v.type)&&v.click&&se(v,"input")&&gt.get(v,"click")||se(v,"a")}},beforeunload:{postDispatch:function(f){f.result!==void 0&&f.originalEvent&&(f.originalEvent.returnValue=f.result)}}}};function Si(f,v,C){if(!C){gt.get(f,v)===void 0&&x.event.add(f,v,xr);return}gt.set(f,v,!1),x.event.add(f,v,{namespace:!1,handler:function(O){var N,B=gt.get(this,v);if(O.isTrigger&1&&this[v]){if(B)(x.event.special[v]||{}).delegateType&&O.stopPropagation();else if(B=o.call(arguments),gt.set(this,v,B),this[v](),N=gt.get(this,v),gt.set(this,v,!1),B!==N)return O.stopImmediatePropagation(),O.preventDefault(),N}else B&&(gt.set(this,v,x.event.trigger(B[0],B.slice(1),this)),O.stopPropagation(),O.isImmediatePropagationStopped=xr)}})}x.removeEvent=function(f,v,C){f.removeEventListener&&f.removeEventListener(v,C)},x.Event=function(f,v){if(!(this instanceof x.Event))return new x.Event(f,v);f&&f.type?(this.originalEvent=f,this.type=f.type,this.isDefaultPrevented=f.defaultPrevented||f.defaultPrevented===void 0&&f.returnValue===!1?xr:pi,this.target=f.target&&f.target.nodeType===3?f.target.parentNode:f.target,this.currentTarget=f.currentTarget,this.relatedTarget=f.relatedTarget):this.type=f,v&&x.extend(this,v),this.timeStamp=f&&f.timeStamp||Date.now(),this[x.expando]=!0},x.Event.prototype={constructor:x.Event,isDefaultPrevented:pi,isPropagationStopped:pi,isImmediatePropagationStopped:pi,isSimulated:!1,preventDefault:function(){var f=this.originalEvent;this.isDefaultPrevented=xr,f&&!this.isSimulated&&f.preventDefault()},stopPropagation:function(){var f=this.originalEvent;this.isPropagationStopped=xr,f&&!this.isSimulated&&f.stopPropagation()},stopImmediatePropagation:function(){var f=this.originalEvent;this.isImmediatePropagationStopped=xr,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,v){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(v,O.target,x.event.fix(O))}x.event.special[f]={setup:function(){var O;if(Si(this,f,!0),R.documentMode)O=gt.get(this,v),O||this.addEventListener(v,C),gt.set(this,v,(O||0)+1);else return!1},trigger:function(){return Si(this,f),!0},teardown:function(){var O;if(R.documentMode)O=gt.get(this,v)-1,O?gt.set(this,v,O):(this.removeEventListener(v,C),gt.remove(this,v));else return!1},_default:function(O){return gt.get(O.target,f)},delegateType:v},x.event.special[v]={setup:function(){var O=this.ownerDocument||this.document||this,N=R.documentMode?this:O,B=gt.get(N,v);B||(R.documentMode?this.addEventListener(v,C):O.addEventListener(f,C,!0)),gt.set(N,v,(B||0)+1)},teardown:function(){var O=this.ownerDocument||this.document||this,N=R.documentMode?this:O,B=gt.get(N,v)-1;B?gt.set(N,v,B):(R.documentMode?this.removeEventListener(v,C):O.removeEventListener(f,C,!0),gt.remove(N,v))}}}),x.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(f,v){x.event.special[f]={delegateType:v,bindType:v,handle:function(C){var O,N=this,B=C.relatedTarget,H=C.handleObj;return(!B||B!==N&&!x.contains(N,B))&&(C.type=H.origType,O=H.handler.apply(this,arguments),C.type=v),O}}}),x.fn.extend({on:function(f,v,C,O){return fn(this,f,v,C,O)},one:function(f,v,C,O){return fn(this,f,v,C,O,1)},off:function(f,v,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,v,f[N]);return this}return(v===!1||typeof v=="function")&&(C=v,v=void 0),C===!1&&(C=pi),this.each(function(){x.event.remove(this,f,C,v)})}});var Ra=/<script|<style|<link/i,Ia=/checked\s*(?:[^=]|=\s*.checked.)/i,Zr=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function lo(f,v){return se(f,"table")&&se(v.nodeType!==11?v:v.firstChild,"tr")&&x(f).children("tbody")[0]||f}function co(f){return f.type=(f.getAttribute("type")!==null)+"/"+f.type,f}function _o(f){return(f.type||"").slice(0,5)==="true/"?f.type=f.type.slice(5):f.removeAttribute("type"),f}function Ti(f,v){var C,O,N,B,H,le,oe;if(v.nodeType===1){if(gt.hasData(f)&&(B=gt.get(f),oe=B.events,oe)){gt.remove(v,"handle events");for(N in oe)for(C=0,O=oe[N].length;C<O;C++)x.event.add(v,N,oe[N][C])}Rn.hasData(f)&&(H=Rn.access(f),le=x.extend({},H),Rn.set(v,le))}}function gi(f,v){var C=v.nodeName.toLowerCase();C==="input"&&Zt.test(f.type)?v.checked=f.checked:(C==="input"||C==="textarea")&&(v.defaultValue=f.defaultValue)}function Ci(f,v,C,O){v=s(v);var N,B,H,le,oe,we,Le=0,Ne=f.length,Ce=Ne-1,Ye=v[0],ct=I(Ye);if(ct||Ne>1&&typeof Ye=="string"&&!_.checkClone&&Ia.test(Ye))return f.each(function(Pt){var It=f.eq(Pt);ct&&(v[0]=Ye.call(this,Pt,It.html())),Ci(It,v,C,O)});if(Ne&&(N=mn(v,f[0].ownerDocument,!1,f,O),B=N.firstChild,N.childNodes.length===1&&(N=B),B||O)){for(H=x.map(gn(N,"script"),co),le=H.length;Le<Ne;Le++)oe=N,Le!==Ce&&(oe=x.clone(oe,!0,!0),le&&x.merge(H,gn(oe,"script"))),C.call(f[Le],oe,Le);if(le)for(we=H[H.length-1].ownerDocument,x.map(H,_o),Le=0;Le<le;Le++)oe=H[Le],Hi.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 fo(f,v,C){for(var O,N=v?x.filter(v,f):f,B=0;(O=N[B])!=null;B++)!C&&O.nodeType===1&&x.cleanData(gn(O)),O.parentNode&&(C&&wr(O)&&di(gn(O,"script")),O.parentNode.removeChild(O));return f}x.extend({htmlPrefilter:function(f){return f},clone:function(f,v,C){var O,N,B,H,le=f.cloneNode(!0),oe=wr(f);if(!_.noCloneChecked&&(f.nodeType===1||f.nodeType===11)&&!x.isXMLDoc(f))for(H=gn(le),B=gn(f),O=0,N=B.length;O<N;O++)gi(B[O],H[O]);if(v)if(C)for(B=B||gn(f),H=H||gn(le),O=0,N=B.length;O<N;O++)Ti(B[O],H[O]);else Ti(f,le);return H=gn(le,"script"),H.length>0&&di(H,!oe&&gn(f,"script")),le},cleanData:function(f){for(var v,C,O,N=x.event.special,B=0;(C=f[B])!==void 0;B++)if(hn(C)){if(v=C[gt.expando]){if(v.events)for(O in v.events)N[O]?x.event.remove(C,O):x.removeEvent(C,O,v.handle);C[gt.expando]=void 0}C[Rn.expando]&&(C[Rn.expando]=void 0)}}}),x.fn.extend({detach:function(f){return fo(this,f,!0)},remove:function(f){return fo(this,f)},text:function(f){return kn(this,function(v){return v===void 0?x.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=v)})},null,f,arguments.length)},append:function(){return Ci(this,arguments,function(f){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var v=lo(this,f);v.appendChild(f)}})},prepend:function(){return Ci(this,arguments,function(f){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var v=lo(this,f);v.insertBefore(f,v.firstChild)}})},before:function(){return Ci(this,arguments,function(f){this.parentNode&&this.parentNode.insertBefore(f,this)})},after:function(){return Ci(this,arguments,function(f){this.parentNode&&this.parentNode.insertBefore(f,this.nextSibling)})},empty:function(){for(var f,v=0;(f=this[v])!=null;v++)f.nodeType===1&&(x.cleanData(gn(f,!1)),f.textContent="");return this},clone:function(f,v){return f=f??!1,v=v??f,this.map(function(){return x.clone(this,f,v)})},html:function(f){return kn(this,function(v){var C=this[0]||{},O=0,N=this.length;if(v===void 0&&C.nodeType===1)return C.innerHTML;if(typeof v=="string"&&!Ra.test(v)&&!In[(fi.exec(v)||["",""])[1].toLowerCase()]){v=x.htmlPrefilter(v);try{for(;O<N;O++)C=this[O]||{},C.nodeType===1&&(x.cleanData(gn(C,!1)),C.innerHTML=v);C=0}catch{}}C&&this.empty().append(v)},null,f,arguments.length)},replaceWith:function(){var f=[];return Ci(this,arguments,function(v){var C=this.parentNode;x.inArray(this,f)<0&&(x.cleanData(gn(this)),C&&C.replaceChild(v,this))},f)}}),x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(f,v){x.fn[f]=function(C){for(var O,N=[],B=x(C),H=B.length-1,le=0;le<=H;le++)O=le===H?this:this.clone(!0),x(B[le])[v](O),l.apply(N,O.get());return this.pushStack(N)}});var Ei=new RegExp("^("+Vi+")(?!px)[a-z%]+$","i"),Jr=/^--/,Sr=function(f){var v=f.ownerDocument.defaultView;return(!v||!v.opener)&&(v=t),v.getComputedStyle(f)},Ir=function(f,v,C){var O,N,B={};for(N in v)B[N]=f.style[N],f.style[N]=v[N];O=C.call(f);for(N in v)f.style[N]=B[N];return O},Qr=new RegExp(Un.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%",Rr.appendChild(oe).appendChild(we);var Le=t.getComputedStyle(we);C=Le.top!=="1%",le=v(Le.marginLeft)===12,we.style.right="60%",B=v(Le.right)===36,O=v(Le.width)===36,we.style.position="absolute",N=v(we.offsetWidth/3)===12,Rr.removeChild(oe),we=null}}function v(Le){return Math.round(parseFloat(Le))}var C,O,N,B,H,le,oe=R.createElement("div"),we=R.createElement("div");we.style&&(we.style.backgroundClip="content-box",we.cloneNode(!0).style.backgroundClip="",_.clearCloneStyle=we.style.backgroundClip==="content-box",x.extend(_,{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,Ne,Ce,Ye;return H==null&&(Le=R.createElement("table"),Ne=R.createElement("tr"),Ce=R.createElement("div"),Le.style.cssText="position:absolute;left:-11111px;border-collapse:separate",Ne.style.cssText="box-sizing:content-box;border:1px solid",Ne.style.height="1px",Ce.style.height="9px",Ce.style.display="block",Rr.appendChild(Le).appendChild(Ne).appendChild(Ce),Ye=t.getComputedStyle(Ne),H=parseInt(Ye.height,10)+parseInt(Ye.borderTopWidth,10)+parseInt(Ye.borderBottomWidth,10)===Ne.offsetHeight,Rr.removeChild(Le)),H}}))})();function Ar(f,v,C){var O,N,B,H,le=Jr.test(v),oe=f.style;return C=C||Sr(f),C&&(H=C.getPropertyValue(v)||C[v],le&&H&&(H=H.replace(nt,"$1")||void 0),H===""&&!wr(f)&&(H=x.style(f,v)),!_.pixelBoxStyles()&&Ei.test(H)&&Qr.test(v)&&(O=oe.width,N=oe.minWidth,B=oe.maxWidth,oe.minWidth=oe.maxWidth=oe.width=H,H=C.width,oe.width=O,oe.minWidth=N,oe.maxWidth=B)),H!==void 0?H+"":H}function Wn(f,v){return{get:function(){if(f()){delete this.get;return}return(this.get=v).apply(this,arguments)}}}var vn=["Webkit","Moz","ms"],Mr=R.createElement("div").style,Tr={};function An(f){for(var v=f[0].toUpperCase()+f.slice(1),C=vn.length;C--;)if(f=vn[C]+v,f in Mr)return f}function vi(f){var v=x.cssProps[f]||Tr[f];return v||(f in Mr?f:Tr[f]=An(f)||f)}var Lr=/^(none|table(?!-c[ea]).+)/,ei={position:"absolute",visibility:"hidden",display:"block"},Jn={letterSpacing:"0",fontWeight:"400"};function ti(f,v,C){var O=_r.exec(v);return O?Math.max(0,O[2]-(C||0))+(O[3]||"px"):v}function ni(f,v,C,O,N,B){var H=v==="width"?1:0,le=0,oe=0,we=0;if(C===(O?"border":"content"))return 0;for(;H<4;H+=2)C==="margin"&&(we+=x.css(f,C+Un[H],!0,N)),O?(C==="content"&&(oe-=x.css(f,"padding"+Un[H],!0,N)),C!=="margin"&&(oe-=x.css(f,"border"+Un[H]+"Width",!0,N))):(oe+=x.css(f,"padding"+Un[H],!0,N),C!=="padding"?oe+=x.css(f,"border"+Un[H]+"Width",!0,N):le+=x.css(f,"border"+Un[H]+"Width",!0,N));return!O&&B>=0&&(oe+=Math.max(0,Math.ceil(f["offset"+v[0].toUpperCase()+v.slice(1)]-B-oe-le-.5))||0),oe+we}function Ui(f,v,C){var O=Sr(f),N=!_.boxSizingReliable()||C,B=N&&x.css(f,"boxSizing",!1,O)==="border-box",H=B,le=Ar(f,v,O),oe="offset"+v[0].toUpperCase()+v.slice(1);if(Ei.test(le)){if(!C)return le;le="auto"}return(!_.boxSizingReliable()&&B||!_.reliableTrDimensions()&&se(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",H=oe in f,H&&(le=f[oe])),le=parseFloat(le)||0,le+ni(f,v,C||(B?"border":"content"),H,O,le)+"px"}x.extend({cssHooks:{opacity:{get:function(f,v){if(v){var C=Ar(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,v,C,O){if(!(!f||f.nodeType===3||f.nodeType===8||!f.style)){var N,B,H,le=cn(v),oe=Jr.test(v),we=f.style;if(oe||(v=vi(le)),H=x.cssHooks[v]||x.cssHooks[le],C!==void 0){if(B=typeof C,B==="string"&&(N=_r.exec(C))&&N[1]&&(C=Po(f,v,N),B="number"),C==null||C!==C)return;B==="number"&&!oe&&(C+=N&&N[3]||(x.cssNumber[le]?"":"px")),!_.clearCloneStyle&&C===""&&v.indexOf("background")===0&&(we[v]="inherit"),(!H||!("set"in H)||(C=H.set(f,C,O))!==void 0)&&(oe?we.setProperty(v,C):we[v]=C)}else return H&&"get"in H&&(N=H.get(f,!1,O))!==void 0?N:we[v]}},css:function(f,v,C,O){var N,B,H,le=cn(v),oe=Jr.test(v);return oe||(v=vi(le)),H=x.cssHooks[v]||x.cssHooks[le],H&&"get"in H&&(N=H.get(f,!0,C)),N===void 0&&(N=Ar(f,v,O)),N==="normal"&&v in Jn&&(N=Jn[v]),C===""||C?(B=parseFloat(N),C===!0||isFinite(B)?B||0:N):N}}),x.each(["height","width"],function(f,v){x.cssHooks[v]={get:function(C,O,N){if(O)return Lr.test(x.css(C,"display"))&&(!C.getClientRects().length||!C.getBoundingClientRect().width)?Ir(C,ei,function(){return Ui(C,v,N)}):Ui(C,v,N)},set:function(C,O,N){var B,H=Sr(C),le=!_.scrollboxSize()&&H.position==="absolute",oe=le||N,we=oe&&x.css(C,"boxSizing",!1,H)==="border-box",Le=N?ni(C,v,N,we,H):0;return we&&le&&(Le-=Math.ceil(C["offset"+v[0].toUpperCase()+v.slice(1)]-parseFloat(H[v])-ni(C,v,"border",!1,H)-.5)),Le&&(B=_r.exec(O))&&(B[3]||"px")!=="px"&&(C.style[v]=O,O=x.css(C,v)),ti(C,O,Le)}}}),x.cssHooks.marginLeft=Wn(_.reliableMarginLeft,function(f,v){if(v)return(parseFloat(Ar(f,"marginLeft"))||f.getBoundingClientRect().left-Ir(f,{marginLeft:0},function(){return f.getBoundingClientRect().left}))+"px"}),x.each({margin:"",padding:"",border:"Width"},function(f,v){x.cssHooks[f+v]={expand:function(C){for(var O=0,N={},B=typeof C=="string"?C.split(" "):[C];O<4;O++)N[f+Un[O]+v]=B[O]||B[O-2]||B[0];return N}},f!=="margin"&&(x.cssHooks[f+v].set=ti)}),x.fn.extend({css:function(f,v){return kn(this,function(C,O,N){var B,H,le={},oe=0;if(Array.isArray(O)){for(B=Sr(C),H=O.length;oe<H;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,v,arguments.length>1)}});function _n(f,v,C,O,N){return new _n.prototype.init(f,v,C,O,N)}x.Tween=_n,_n.prototype={constructor:_n,init:function(f,v,C,O,N,B){this.elem=f,this.prop=C,this.easing=N||x.easing._default,this.options=v,this.start=this.now=this.cur(),this.end=O,this.unit=B||(x.cssNumber[C]?"":"px")},cur:function(){var f=_n.propHooks[this.prop];return f&&f.get?f.get(this):_n.propHooks._default.get(this)},run:function(f){var v,C=_n.propHooks[this.prop];return this.options.duration?this.pos=v=x.easing[this.easing](f,this.options.duration*f,0,1,this.options.duration):this.pos=v=f,this.now=(this.end-this.start)*v+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),C&&C.set?C.set(this):_n.propHooks._default.set(this),this}},_n.prototype.init.prototype=_n.prototype,_n.propHooks={_default:{get:function(f){var v;return f.elem.nodeType!==1||f.elem[f.prop]!=null&&f.elem.style[f.prop]==null?f.elem[f.prop]:(v=x.css(f.elem,f.prop,""),!v||v==="auto"?0:v)},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[vi(f.prop)]!=null)?x.style(f.elem,f.prop,f.now+f.unit):f.elem[f.prop]=f.now}}},_n.propHooks.scrollTop=_n.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=_n.prototype.init,x.fx.step={};var Cr,fr,Ro=/^(?:toggle|show|hide)$/,Wi=/queueHooks$/;function Fr(){fr&&(R.hidden===!1&&t.requestAnimationFrame?t.requestAnimationFrame(Fr):t.setTimeout(Fr,x.fx.interval),x.fx.tick())}function E(){return t.setTimeout(function(){Cr=void 0}),Cr=Date.now()}function j(f,v){var C,O=0,N={height:f};for(v=v?1:0;O<4;O+=2-v)C=Un[O],N["margin"+C]=N["padding"+C]=f;return v&&(N.opacity=N.width=f),N}function q(f,v,C){for(var O,N=(be.tweeners[v]||[]).concat(be.tweeners["*"]),B=0,H=N.length;B<H;B++)if(O=N[B].call(C,v,f))return O}function re(f,v,C){var O,N,B,H,le,oe,we,Le,Ne="width"in v||"height"in v,Ce=this,Ye={},ct=f.style,Pt=f.nodeType&&Xr(f),It=gt.get(f,"fxshow");C.queue||(H=x._queueHooks(f,"fx"),H.unqueued==null&&(H.unqueued=0,le=H.empty.fire,H.empty.fire=function(){H.unqueued||le()}),H.unqueued++,Ce.always(function(){Ce.always(function(){H.unqueued--,x.queue(f,"fx").length||H.empty.fire()})}));for(O in v)if(N=v[O],Ro.test(N)){if(delete v[O],B=B||N==="toggle",N===(Pt?"hide":"show"))if(N==="show"&&It&&It[O]!==void 0)Pt=!0;else continue;Ye[O]=It&&It[O]||x.style(f,O)}if(oe=!x.isEmptyObject(v),!(!oe&&x.isEmptyObject(Ye))){Ne&&f.nodeType===1&&(C.overflow=[ct.overflow,ct.overflowX,ct.overflowY],we=It&&It.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||(Ce.done(function(){ct.display=we}),we==null&&(Le=ct.display,we=Le==="none"?"":Le)),ct.display="inline-block")),C.overflow&&(ct.overflow="hidden",Ce.always(function(){ct.overflow=C.overflow[0],ct.overflowX=C.overflow[1],ct.overflowY=C.overflow[2]})),oe=!1;for(O in Ye)oe||(It?"hidden"in It&&(Pt=It.hidden):It=gt.access(f,"fxshow",{display:we}),B&&(It.hidden=!Pt),Pt&&ir([f],!0),Ce.done(function(){Pt||ir([f]),gt.remove(f,"fxshow");for(O in Ye)x.style(f,O,Ye[O])})),oe=q(Pt?It[O]:0,O,Ce),O in It||(It[O]=oe.start,Pt&&(oe.end=oe.start,oe.start=0))}}function Oe(f,v){var C,O,N,B,H;for(C in f)if(O=cn(C),N=v[O],B=f[C],Array.isArray(B)&&(N=B[1],B=f[C]=B[0]),C!==O&&(f[O]=B,delete f[C]),H=x.cssHooks[O],H&&"expand"in H){B=H.expand(B),delete f[O];for(C in B)C in f||(f[C]=B[C],v[C]=N)}else v[O]=N}function be(f,v,C){var O,N,B=0,H=be.prefilters.length,le=x.Deferred().always(function(){delete oe.elem}),oe=function(){if(N)return!1;for(var Ne=Cr||E(),Ce=Math.max(0,we.startTime+we.duration-Ne),Ye=Ce/we.duration||0,ct=1-Ye,Pt=0,It=we.tweens.length;Pt<It;Pt++)we.tweens[Pt].run(ct);return le.notifyWith(f,[we,ct,Ce]),ct<1&&It?Ce:(It||le.notifyWith(f,[we,1,0]),le.resolveWith(f,[we]),!1)},we=le.promise({elem:f,props:x.extend({},v),opts:x.extend(!0,{specialEasing:{},easing:x.easing._default},C),originalProperties:v,originalOptions:C,startTime:Cr||E(),duration:C.duration,tweens:[],createTween:function(Ne,Ce){var Ye=x.Tween(f,we.opts,Ne,Ce,we.opts.specialEasing[Ne]||we.opts.easing);return we.tweens.push(Ye),Ye},stop:function(Ne){var Ce=0,Ye=Ne?we.tweens.length:0;if(N)return this;for(N=!0;Ce<Ye;Ce++)we.tweens[Ce].run(1);return Ne?(le.notifyWith(f,[we,1,0]),le.resolveWith(f,[we,Ne])):le.rejectWith(f,[we,Ne]),this}}),Le=we.props;for(Oe(Le,we.opts.specialEasing);B<H;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,v){var C=this.createTween(f,v);return Po(C.elem,f,_r.exec(v),C),C}]},tweener:function(f,v){I(f)?(v=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(v)},prefilters:[re],prefilter:function(f,v){v?be.prefilters.unshift(f):be.prefilters.push(f)}}),x.speed=function(f,v,C){var O=f&&typeof f=="object"?x.extend({},f):{complete:C||!C&&v||I(f)&&f,duration:f,easing:C&&v||v&&!I(v)&&v};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,v,C,O){return this.filter(Xr).css("opacity",0).show().end().animate({opacity:v},f,C,O)},animate:function(f,v,C,O){var N=x.isEmptyObject(f),B=x.speed(v,C,O),H=function(){var le=be(this,x.extend({},f),B);(N||gt.get(this,"finish"))&&le.stop(!0)};return H.finish=H,N||B.queue===!1?this.each(H):this.queue(B.queue,H)},stop:function(f,v,C){var O=function(N){var B=N.stop;delete N.stop,B(C)};return typeof f!="string"&&(C=v,v=f,f=void 0),v&&this.queue(f||"fx",[]),this.each(function(){var N=!0,B=f!=null&&f+"queueHooks",H=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&&Wi.test(B)&&O(le[B]);for(B=H.length;B--;)H[B].elem===this&&(f==null||H[B].queue===f)&&(H[B].anim.stop(C),N=!1,H.splice(B,1));(N||!C)&&x.dequeue(this,f)})},finish:function(f){return f!==!1&&(f=f||"fx"),this.each(function(){var v,C=gt.get(this),O=C[f+"queue"],N=C[f+"queueHooks"],B=x.timers,H=O?O.length:0;for(C.finish=!0,x.queue(this,f,[]),N&&N.stop&&N.stop.call(this,!0),v=B.length;v--;)B[v].elem===this&&B[v].queue===f&&(B[v].anim.stop(!0),B.splice(v,1));for(v=0;v<H;v++)O[v]&&O[v].finish&&O[v].finish.call(this);delete C.finish})}}),x.each(["toggle","show","hide"],function(f,v){var C=x.fn[v];x.fn[v]=function(O,N,B){return O==null||typeof O=="boolean"?C.apply(this,arguments):this.animate(j(v,!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,v){x.fn[f]=function(C,O,N){return this.animate(v,C,O,N)}}),x.timers=[],x.fx.tick=function(){var f,v=0,C=x.timers;for(Cr=Date.now();v<C.length;v++)f=C[v],!f()&&C[v]===f&&C.splice(v--,1);C.length||x.fx.stop(),Cr=void 0},x.fx.timer=function(f){x.timers.push(f),x.fx.start()},x.fx.interval=13,x.fx.start=function(){fr||(fr=!0,Fr())},x.fx.stop=function(){fr=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fn.delay=function(f,v){return f=x.fx&&x.fx.speeds[f]||f,v=v||"fx",this.queue(v,function(C,O){var N=t.setTimeout(C,f);O.stop=function(){t.clearTimeout(N)}})},function(){var f=R.createElement("input"),v=R.createElement("select"),C=v.appendChild(R.createElement("option"));f.type="checkbox",_.checkOn=f.value!=="",_.optSelected=C.selected,f=R.createElement("input"),f.value="t",f.type="radio",_.radioValue=f.value==="t"}();var Me,et=x.expr.attrHandle;x.fn.extend({attr:function(f,v){return kn(this,x.attr,f,v,arguments.length>1)},removeAttr:function(f){return this.each(function(){x.removeAttr(this,f)})}}),x.extend({attr:function(f,v,C){var O,N,B=f.nodeType;if(!(B===3||B===8||B===2)){if(typeof f.getAttribute>"u")return x.prop(f,v,C);if((B!==1||!x.isXMLDoc(f))&&(N=x.attrHooks[v.toLowerCase()]||(x.expr.match.bool.test(v)?Me:void 0)),C!==void 0){if(C===null){x.removeAttr(f,v);return}return N&&"set"in N&&(O=N.set(f,C,v))!==void 0?O:(f.setAttribute(v,C+""),C)}return N&&"get"in N&&(O=N.get(f,v))!==null?O:(O=x.find.attr(f,v),O??void 0)}},attrHooks:{type:{set:function(f,v){if(!_.radioValue&&v==="radio"&&se(f,"input")){var C=f.value;return f.setAttribute("type",v),C&&(f.value=C),v}}}},removeAttr:function(f,v){var C,O=0,N=v&&v.match(vt);if(N&&f.nodeType===1)for(;C=N[O++];)f.removeAttribute(C)}}),Me={set:function(f,v,C){return v===!1?x.removeAttr(f,C):f.setAttribute(C,C),C}},x.each(x.expr.match.bool.source.match(/\w+/g),function(f,v){var C=et[v]||x.find.attr;et[v]=function(O,N,B){var H,le,oe=N.toLowerCase();return B||(le=et[oe],et[oe]=H,H=C(O,N,B)!=null?oe:null,et[oe]=le),H}});var yt=/^(?:input|select|textarea|button)$/i,Tt=/^(?:a|area)$/i;x.fn.extend({prop:function(f,v){return kn(this,x.prop,f,v,arguments.length>1)},removeProp:function(f){return this.each(function(){delete this[x.propFix[f]||f]})}}),x.extend({prop:function(f,v,C){var O,N,B=f.nodeType;if(!(B===3||B===8||B===2))return(B!==1||!x.isXMLDoc(f))&&(v=x.propFix[v]||v,N=x.propHooks[v]),C!==void 0?N&&"set"in N&&(O=N.set(f,C,v))!==void 0?O:f[v]=C:N&&"get"in N&&(O=N.get(f,v))!==null?O:f[v]},propHooks:{tabIndex:{get:function(f){var v=x.find.attr(f,"tabindex");return v?parseInt(v,10):yt.test(f.nodeName)||Tt.test(f.nodeName)&&f.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),_.optSelected||(x.propHooks.selected={get:function(f){var v=f.parentNode;return v&&v.parentNode&&v.parentNode.selectedIndex,null},set:function(f){var v=f.parentNode;v&&(v.selectedIndex,v.parentNode&&v.parentNode.selectedIndex)}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this});function bt(f){var v=f.match(vt)||[];return v.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 v,C,O,N,B,H;return I(f)?this.each(function(le){x(this).addClass(f.call(this,le,Ut(this)))}):(v=Qn(f),v.length?this.each(function(){if(O=Ut(this),C=this.nodeType===1&&" "+bt(O)+" ",C){for(B=0;B<v.length;B++)N=v[B],C.indexOf(" "+N+" ")<0&&(C+=N+" ");H=bt(C),O!==H&&this.setAttribute("class",H)}}):this)},removeClass:function(f){var v,C,O,N,B,H;return I(f)?this.each(function(le){x(this).removeClass(f.call(this,le,Ut(this)))}):arguments.length?(v=Qn(f),v.length?this.each(function(){if(O=Ut(this),C=this.nodeType===1&&" "+bt(O)+" ",C){for(B=0;B<v.length;B++)for(N=v[B];C.indexOf(" "+N+" ")>-1;)C=C.replace(" "+N+" "," ");H=bt(C),O!==H&&this.setAttribute("class",H)}}):this):this.attr("class","")},toggleClass:function(f,v){var C,O,N,B,H=typeof f,le=H==="string"||Array.isArray(f);return I(f)?this.each(function(oe){x(this).toggleClass(f.call(this,oe,Ut(this),v),v)}):typeof v=="boolean"&&le?v?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||H==="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 v,C,O=0;for(v=" "+f+" ";C=this[O++];)if(C.nodeType===1&&(" "+bt(Ut(C))+" ").indexOf(v)>-1)return!0;return!1}});var zn=/\r/g;x.fn.extend({val:function(f){var v,C,O,N=this[0];return arguments.length?(O=I(f),this.each(function(B){var H;this.nodeType===1&&(O?H=f.call(this,B,x(this).val()):H=f,H==null?H="":typeof H=="number"?H+="":Array.isArray(H)&&(H=x.map(H,function(le){return le==null?"":le+""})),v=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()],(!v||!("set"in v)||v.set(this,H,"value")===void 0)&&(this.value=H))})):N?(v=x.valHooks[N.type]||x.valHooks[N.nodeName.toLowerCase()],v&&"get"in v&&(C=v.get(N,"value"))!==void 0?C:(C=N.value,typeof C=="string"?C.replace(zn,""):C??"")):void 0}}),x.extend({valHooks:{option:{get:function(f){var v=x.find.attr(f,"value");return v??bt(x.text(f))}},select:{get:function(f){var v,C,O,N=f.options,B=f.selectedIndex,H=f.type==="select-one",le=H?null:[],oe=H?B+1:N.length;for(B<0?O=oe:O=H?B:0;O<oe;O++)if(C=N[O],(C.selected||O===B)&&!C.disabled&&(!C.parentNode.disabled||!se(C.parentNode,"optgroup"))){if(v=x(C).val(),H)return v;le.push(v)}return le},set:function(f,v){for(var C,O,N=f.options,B=x.makeArray(v),H=N.length;H--;)O=N[H],(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,v){if(Array.isArray(v))return f.checked=x.inArray(x(f).val(),v)>-1}},_.checkOn||(x.valHooks[this].get=function(f){return f.getAttribute("value")===null?"on":f.value})});var On=t.location,Nr={guid:Date.now()},or=/\?/;x.parseXML=function(f){var v,C;if(!f||typeof f!="string")return null;try{v=new t.DOMParser().parseFromString(f,"text/xml")}catch{}return C=v&&v.getElementsByTagName("parsererror")[0],(!v||C)&&x.error("Invalid XML: "+(C?x.map(C.childNodes,function(O){return O.textContent}).join(`
177
- `):f)),v};var zi=/^(?:focusinfocus|focusoutblur)$/,mi=function(f){f.stopPropagation()};x.extend(x.event,{trigger:function(f,v,C,O){var N,B,H,le,oe,we,Le,Ne,Ce=[C||R],Ye=g.call(f,"type")?f.type:f,ct=g.call(f,"namespace")?f.namespace.split("."):[];if(B=Ne=H=C=C||R,!(C.nodeType===3||C.nodeType===8)&&!zi.test(Ye+x.event.triggered)&&(Ye.indexOf(".")>-1&&(ct=Ye.split("."),Ye=ct.shift(),ct.sort()),oe=Ye.indexOf(":")<0&&"on"+Ye,f=f[x.expando]?f:new x.Event(Ye,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),v=v==null?[f]:x.makeArray(v,[f]),Le=x.event.special[Ye]||{},!(!O&&Le.trigger&&Le.trigger.apply(C,v)===!1))){if(!O&&!Le.noBubble&&!L(C)){for(le=Le.delegateType||Ye,zi.test(le+Ye)||(B=B.parentNode);B;B=B.parentNode)Ce.push(B),H=B;H===(C.ownerDocument||R)&&Ce.push(H.defaultView||H.parentWindow||t)}for(N=0;(B=Ce[N++])&&!f.isPropagationStopped();)Ne=B,f.type=N>1?le:Le.bindType||Ye,we=(gt.get(B,"events")||Object.create(null))[f.type]&&gt.get(B,"handle"),we&&we.apply(B,v),we=oe&&B[oe],we&&we.apply&&hn(B)&&(f.result=we.apply(B,v),f.result===!1&&f.preventDefault());return f.type=Ye,!O&&!f.isDefaultPrevented()&&(!Le._default||Le._default.apply(Ce.pop(),v)===!1)&&hn(C)&&oe&&I(C[Ye])&&!L(C)&&(H=C[oe],H&&(C[oe]=null),x.event.triggered=Ye,f.isPropagationStopped()&&Ne.addEventListener(Ye,mi),C[Ye](),f.isPropagationStopped()&&Ne.removeEventListener(Ye,mi),x.event.triggered=void 0,H&&(C[oe]=H)),f.result}},simulate:function(f,v,C){var O=x.extend(new x.Event,C,{type:f,isSimulated:!0});x.event.trigger(O,null,v)}}),x.fn.extend({trigger:function(f,v){return this.each(function(){x.event.trigger(f,v,this)})},triggerHandler:function(f,v){var C=this[0];if(C)return x.event.trigger(f,v,C,!0)}});var Yi=/\[\]$/,jr=/\r?\n/g,Io=/^(?:submit|button|image|reset|file)$/i,Vs=/^(?:input|select|textarea|keygen)/i;function Aa(f,v,C,O){var N;if(Array.isArray(v))x.each(v,function(B,H){C||Yi.test(f)?O(f,H):Aa(f+"["+(typeof H=="object"&&H!=null?B:"")+"]",H,C,O)});else if(!C&&ne(v)==="object")for(N in v)Aa(f+"["+N+"]",v[N],C,O);else O(f,v)}x.param=function(f,v){var C,O=[],N=function(B,H){var le=I(H)?H():H;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)Aa(C,f[C],v,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")&&Vs.test(this.nodeName)&&!Io.test(f)&&(this.checked||!Zt.test(f))}).map(function(f,v){var C=x(this).val();return C==null?null:Array.isArray(C)?x.map(C,function(O){return{name:v.name,value:O.replace(jr,`\r
178
- `)}}):{name:v.name,value:C.replace(jr,`\r
179
- `)}}).get()}});var Ma=/%20/g,La=/#.*$/,Fa=/([?&])_=[^&]*/,yi=/^(.*?):[ \t]*([^\r\n]*)$/mg,Ao=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,ra=/^(?:GET|HEAD)$/,sn=/^\/\//,Qt={},Vt={},ki="*/".concat("*"),ri=R.createElement("a");ri.href=On.href;function Mo(f){return function(v,C){typeof v!="string"&&(C=v,v="*");var O,N=0,B=v.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 bi(f,v,C,O){var N={},B=f===Vt;function H(le){var oe;return N[le]=!0,x.each(f[le]||[],function(we,Le){var Ne=Le(v,C,O);if(typeof Ne=="string"&&!B&&!N[Ne])return v.dataTypes.unshift(Ne),H(Ne),!1;if(B)return!(oe=Ne)}),oe}return H(v.dataTypes[0])||!N["*"]&&H("*")}function dr(f,v){var C,O,N=x.ajaxSettings.flatOptions||{};for(C in v)v[C]!==void 0&&((N[C]?f:O||(O={}))[C]=v[C]);return O&&x.extend(!0,f,O),f}function Na(f,v,C){for(var O,N,B,H,le=f.contents,oe=f.dataTypes;oe[0]==="*";)oe.shift(),O===void 0&&(O=f.mimeType||v.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}H||(H=N)}B=B||H}if(B)return B!==oe[0]&&oe.unshift(B),C[B]}function ia(f,v,C,O){var N,B,H,le,oe,we={},Le=f.dataTypes.slice();if(Le[1])for(H in f.converters)we[H.toLowerCase()]=f.converters[H];for(B=Le.shift();B;)if(f.responseFields[B]&&(C[f.responseFields[B]]=v),!oe&&O&&f.dataFilter&&(v=f.dataFilter(v,f.dataType)),oe=B,B=Le.shift(),B){if(B==="*")B=oe;else if(oe!=="*"&&oe!==B){if(H=we[oe+" "+B]||we["* "+B],!H){for(N in we)if(le=N.split(" "),le[1]===B&&(H=we[oe+" "+le[0]]||we["* "+le[0]],H)){H===!0?H=we[N]:we[N]!==!0&&(B=le[0],Le.unshift(le[1]));break}}if(H!==!0)if(H&&f.throws)v=H(v);else try{v=H(v)}catch(Ne){return{state:"parsererror",error:H?Ne:"No conversion from "+oe+" to "+B}}}}return{state:"success",data:v}}x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:On.href,type:"GET",isLocal:Ao.test(On.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ki,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,v){return v?dr(dr(f,x.ajaxSettings),v):dr(x.ajaxSettings,f)},ajaxPrefilter:Mo(Qt),ajaxTransport:Mo(Vt),ajax:function(f,v){typeof f=="object"&&(v=f,f=void 0),v=v||{};var C,O,N,B,H,le,oe,we,Le,Ne,Ce=x.ajaxSetup({},v),Ye=Ce.context||Ce,ct=Ce.context&&(Ye.nodeType||Ye.jquery)?x(Ye):x.event,Pt=x.Deferred(),It=x.Callbacks("once memory"),Mn=Ce.statusCode||{},dn={},Br={},$r="canceled",Wt={readyState:0,getResponseHeader:function(zt){var on;if(oe){if(!B)for(B={};on=yi.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=Br[zt.toLowerCase()]=Br[zt.toLowerCase()]||zt,dn[zt]=on),this},overrideMimeType:function(zt){return oe==null&&(Ce.mimeType=zt),this},statusCode:function(zt){var on;if(zt)if(oe)Wt.always(zt[Wt.status]);else for(on in zt)Mn[on]=[Mn[on],zt[on]];return this},abort:function(zt){var on=zt||$r;return C&&C.abort(on),Vr(0,on),this}};if(Pt.promise(Wt),Ce.url=((f||Ce.url||On.href)+"").replace(sn,On.protocol+"//"),Ce.type=v.method||v.type||Ce.method||Ce.type,Ce.dataTypes=(Ce.dataType||"*").toLowerCase().match(vt)||[""],Ce.crossDomain==null){le=R.createElement("a");try{le.href=Ce.url,le.href=le.href,Ce.crossDomain=ri.protocol+"//"+ri.host!=le.protocol+"//"+le.host}catch{Ce.crossDomain=!0}}if(Ce.data&&Ce.processData&&typeof Ce.data!="string"&&(Ce.data=x.param(Ce.data,Ce.traditional)),bi(Qt,Ce,v,Wt),oe)return Wt;we=x.event&&Ce.global,we&&x.active++===0&&x.event.trigger("ajaxStart"),Ce.type=Ce.type.toUpperCase(),Ce.hasContent=!ra.test(Ce.type),O=Ce.url.replace(La,""),Ce.hasContent?Ce.data&&Ce.processData&&(Ce.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(Ce.data=Ce.data.replace(Ma,"+")):(Ne=Ce.url.slice(O.length),Ce.data&&(Ce.processData||typeof Ce.data=="string")&&(O+=(or.test(O)?"&":"?")+Ce.data,delete Ce.data),Ce.cache===!1&&(O=O.replace(Fa,"$1"),Ne=(or.test(O)?"&":"?")+"_="+Nr.guid+++Ne),Ce.url=O+Ne),Ce.ifModified&&(x.lastModified[O]&&Wt.setRequestHeader("If-Modified-Since",x.lastModified[O]),x.etag[O]&&Wt.setRequestHeader("If-None-Match",x.etag[O])),(Ce.data&&Ce.hasContent&&Ce.contentType!==!1||v.contentType)&&Wt.setRequestHeader("Content-Type",Ce.contentType),Wt.setRequestHeader("Accept",Ce.dataTypes[0]&&Ce.accepts[Ce.dataTypes[0]]?Ce.accepts[Ce.dataTypes[0]]+(Ce.dataTypes[0]!=="*"?", "+ki+"; q=0.01":""):Ce.accepts["*"]);for(Le in Ce.headers)Wt.setRequestHeader(Le,Ce.headers[Le]);if(Ce.beforeSend&&(Ce.beforeSend.call(Ye,Wt,Ce)===!1||oe))return Wt.abort();if($r="abort",It.add(Ce.complete),Wt.done(Ce.success),Wt.fail(Ce.error),C=bi(Vt,Ce,v,Wt),!C)Vr(-1,"No Transport");else{if(Wt.readyState=1,we&&ct.trigger("ajaxSend",[Wt,Ce]),oe)return Wt;Ce.async&&Ce.timeout>0&&(H=t.setTimeout(function(){Wt.abort("timeout")},Ce.timeout));try{oe=!1,C.send(dn,Vr)}catch(zt){if(oe)throw zt;Vr(-1,zt)}}function Vr(zt,on,po,go){var Er,k,F,z,te,Se=on;oe||(oe=!0,H&&t.clearTimeout(H),C=void 0,N=go||"",Wt.readyState=zt>0?4:0,Er=zt>=200&&zt<300||zt===304,po&&(z=Na(Ce,Wt,po)),!Er&&x.inArray("script",Ce.dataTypes)>-1&&x.inArray("json",Ce.dataTypes)<0&&(Ce.converters["text script"]=function(){}),z=ia(Ce,z,Wt,Er),Er?(Ce.ifModified&&(te=Wt.getResponseHeader("Last-Modified"),te&&(x.lastModified[O]=te),te=Wt.getResponseHeader("etag"),te&&(x.etag[O]=te)),zt===204||Ce.type==="HEAD"?Se="nocontent":zt===304?Se="notmodified":(Se=z.state,k=z.data,F=z.error,Er=!F)):(F=Se,(zt||!Se)&&(Se="error",zt<0&&(zt=0))),Wt.status=zt,Wt.statusText=(on||Se)+"",Er?Pt.resolveWith(Ye,[k,Se,Wt]):Pt.rejectWith(Ye,[Wt,Se,F]),Wt.statusCode(Mn),Mn=void 0,we&&ct.trigger(Er?"ajaxSuccess":"ajaxError",[Wt,Ce,Er?k:F]),It.fireWith(Ye,[Wt,Se]),we&&(ct.trigger("ajaxComplete",[Wt,Ce]),--x.active||x.event.trigger("ajaxStop")))}return Wt},getJSON:function(f,v,C){return x.get(f,v,C,"json")},getScript:function(f,v){return x.get(f,void 0,v,"script")}}),x.each(["get","post"],function(f,v){x[v]=function(C,O,N,B){return I(O)&&(B=B||N,N=O,O=void 0),x.ajax(x.extend({url:C,type:v,dataType:B,data:O,success:N},x.isPlainObject(C)&&C))}}),x.ajaxPrefilter(function(f){var v;for(v in f.headers)v.toLowerCase()==="content-type"&&(f.contentType=f.headers[v]||"")}),x._evalUrl=function(f,v,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,v,C)}})},x.fn.extend({wrapAll:function(f){var v;return this[0]&&(I(f)&&(f=f.call(this[0])),v=x(f,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&v.insertBefore(this[0]),v.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(v){x(this).wrapInner(f.call(this,v))}):this.each(function(){var v=x(this),C=v.contents();C.length?C.wrapAll(f):v.append(f)})},wrap:function(f){var v=I(f);return this.each(function(C){x(this).wrapAll(v?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 os={0:200,1223:204},yn=x.ajaxSettings.xhr();_.cors=!!yn&&"withCredentials"in yn,_.ajax=yn=!!yn,x.ajaxTransport(function(f){var v,C;if(_.cors||yn&&!f.crossDomain)return{send:function(O,N){var B,H=f.xhr();if(H.open(f.type,f.url,f.async,f.username,f.password),f.xhrFields)for(B in f.xhrFields)H[B]=f.xhrFields[B];f.mimeType&&H.overrideMimeType&&H.overrideMimeType(f.mimeType),!f.crossDomain&&!O["X-Requested-With"]&&(O["X-Requested-With"]="XMLHttpRequest");for(B in O)H.setRequestHeader(B,O[B]);v=function(le){return function(){v&&(v=C=H.onload=H.onerror=H.onabort=H.ontimeout=H.onreadystatechange=null,le==="abort"?H.abort():le==="error"?typeof H.status!="number"?N(0,"error"):N(H.status,H.statusText):N(os[H.status]||H.status,H.statusText,(H.responseType||"text")!=="text"||typeof H.responseText!="string"?{binary:H.response}:{text:H.responseText},H.getAllResponseHeaders()))}},H.onload=v(),C=H.onerror=H.ontimeout=v("error"),H.onabort!==void 0?H.onabort=C:H.onreadystatechange=function(){H.readyState===4&&t.setTimeout(function(){v&&C()})},v=v("abort");try{H.send(f.hasContent&&f.data||null)}catch(le){if(v)throw le}},abort:function(){v&&v()}}}),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 v,C;return{send:function(O,N){v=x("<script>").attr(f.scriptAttrs||{}).prop({charset:f.scriptCharset,src:f.url}).on("load error",C=function(B){v.remove(),C=null,B&&N(B.type==="error"?404:200,B.type)}),R.head.appendChild(v[0])},abort:function(){C&&C()}}}});var Lo=[],wi=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var f=Lo.pop()||x.expando+"_"+Nr.guid++;return this[f]=!0,f}}),x.ajaxPrefilter("json jsonp",function(f,v,C){var O,N,B,H=f.jsonp!==!1&&(wi.test(f.url)?"url":typeof f.data=="string"&&(f.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&wi.test(f.data)&&"data");if(H||f.dataTypes[0]==="jsonp")return O=f.jsonpCallback=I(f.jsonpCallback)?f.jsonpCallback():f.jsonpCallback,H?f[H]=f[H].replace(wi,"$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=v.jsonpCallback,Lo.push(O)),B&&I(N)&&N(B[0]),B=N=void 0}),"script"}),_.createHTMLDocument=function(){var f=R.implementation.createHTMLDocument("").body;return f.innerHTML="<form></form><form></form>",f.childNodes.length===2}(),x.parseHTML=function(f,v,C){if(typeof f!="string")return[];typeof v=="boolean"&&(C=v,v=!1);var O,N,B;return v||(_.createHTMLDocument?(v=R.implementation.createHTMLDocument(""),O=v.createElement("base"),O.href=R.location.href,v.head.appendChild(O)):v=R),N=Ve.exec(f),B=!C&&[],N?[v.createElement(N[1])]:(N=mn([f],v,B),B&&B.length&&x(B).remove(),x.merge([],N.childNodes))},x.fn.load=function(f,v,C){var O,N,B,H=this,le=f.indexOf(" ");return le>-1&&(O=bt(f.slice(le)),f=f.slice(0,le)),I(v)?(C=v,v=void 0):v&&typeof v=="object"&&(N="POST"),H.length>0&&x.ajax({url:f,type:N||"GET",dataType:"html",data:v}).done(function(oe){B=arguments,H.html(O?x("<div>").append(x.parseHTML(oe)).find(O):oe)}).always(C&&function(oe,we){H.each(function(){C.apply(this,B||[oe.responseText,we,oe])})}),this},x.expr.pseudos.animated=function(f){return x.grep(x.timers,function(v){return f===v.elem}).length},x.offset={setOffset:function(f,v,C){var O,N,B,H,le,oe,we,Le=x.css(f,"position"),Ne=x(f),Ce={};Le==="static"&&(f.style.position="relative"),le=Ne.offset(),B=x.css(f,"top"),oe=x.css(f,"left"),we=(Le==="absolute"||Le==="fixed")&&(B+oe).indexOf("auto")>-1,we?(O=Ne.position(),H=O.top,N=O.left):(H=parseFloat(B)||0,N=parseFloat(oe)||0),I(v)&&(v=v.call(f,C,x.extend({},le))),v.top!=null&&(Ce.top=v.top-le.top+H),v.left!=null&&(Ce.left=v.left-le.left+N),"using"in v?v.using.call(f,Ce):Ne.css(Ce)}},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 v,C,O=this[0];if(O)return O.getClientRects().length?(v=O.getBoundingClientRect(),C=O.ownerDocument.defaultView,{top:v.top+C.pageYOffset,left:v.left+C.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var f,v,C,O=this[0],N={top:0,left:0};if(x.css(O,"position")==="fixed")v=O.getBoundingClientRect();else{for(v=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:v.top-N.top-x.css(O,"marginTop",!0),left:v.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||Rr})}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(f,v){var C=v==="pageYOffset";x.fn[f]=function(O){return kn(this,function(N,B,H){var le;if(L(N)?le=N:N.nodeType===9&&(le=N.defaultView),H===void 0)return le?le[v]:N[B];le?le.scrollTo(C?le.pageXOffset:H,C?H:le.pageYOffset):N[B]=H},f,O,arguments.length)}}),x.each(["top","left"],function(f,v){x.cssHooks[v]=Wn(_.pixelPosition,function(C,O){if(O)return O=Ar(C,v),Ei.test(O)?x(C).position()[v]+"px":O})}),x.each({Height:"height",Width:"width"},function(f,v){x.each({padding:"inner"+f,content:v,"":"outer"+f},function(C,O){x.fn[O]=function(N,B){var H=arguments.length&&(C||typeof N!="boolean"),le=C||(N===!0||B===!0?"margin":"border");return kn(this,function(oe,we,Le){var Ne;return L(oe)?O.indexOf("outer")===0?oe["inner"+f]:oe.document.documentElement["client"+f]:oe.nodeType===9?(Ne=oe.documentElement,Math.max(oe.body["scroll"+f],Ne["scroll"+f],oe.body["offset"+f],Ne["offset"+f],Ne["client"+f])):Le===void 0?x.css(oe,we,le):x.style(oe,we,Le,le)},v,H?N:void 0,H)}})}),x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(f,v){x.fn[v]=function(C){return this.on(v,C)}}),x.fn.extend({bind:function(f,v,C){return this.on(f,null,v,C)},unbind:function(f,v){return this.off(f,null,v)},delegate:function(f,v,C,O){return this.on(v,f,C,O)},undelegate:function(f,v,C){return arguments.length===1?this.off(f,"**"):this.off(v,f||"**",C)},hover:function(f,v){return this.on("mouseenter",f).on("mouseleave",v||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,v){x.fn[v]=function(C,O){return arguments.length>0?this.on(v,null,C,O):this.trigger(v)}});var as=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;x.proxy=function(f,v){var C,O,N;if(typeof v=="string"&&(C=f[v],v=f,f=C),!!I(f))return O=o.call(arguments,2),N=function(){return f.apply(v||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=se,x.isFunction=I,x.isWindow=L,x.camelCase=cn,x.type=ne,x.now=Date.now,x.isNumeric=function(f){var v=x.type(f);return(v==="number"||v==="string")&&!isNaN(f-parseFloat(f))},x.trim=function(f){return f==null?"":(f+"").replace(as,"$1")};var ho=t.jQuery,er=t.$;return x.noConflict=function(f){return t.$===x&&(t.$=er),f&&t.jQuery===x&&(t.jQuery=ho),x},typeof n>"u"&&(t.jQuery=t.$=x),x})})(yO);var bO=yO.exports;const x4=Bc(bO);var S4={exports:{}};/**
180
- * @version: 3.1
181
- * @author: Dan Grossman http://www.dangrossman.info/
182
- * @copyright: Copyright (c) 2012-2019 Dan Grossman. All rights reserved.
183
- * @license: Licensed under the MIT license. See http://www.opensource.org/licenses/mit-license.php
184
- * @website: http://www.daterangepicker.com/
185
- */(function(e){(function(t,n){if(e.exports){var r=typeof window<"u"?window.jQuery:void 0;r||(r=bO,r.fn||(r.fn={}));var i=typeof window<"u"&&typeof window.moment<"u"?window.moment:RI;e.exports=n(i,r)}else t.daterangepicker=n(t.moment,t.jQuery)})(Ko,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 l=document.createElement("textarea");l.innerHTML=o.locale.customRangeLabel;var c=l.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 y,g,S;if(typeof o.startDate>"u"&&typeof o.endDate>"u"&&n(this.element).is(":text")){var T=n(this.element).val(),_=T.split(this.locale.separator);y=g=null,_.length==2?(y=t(_[0],this.locale.format),g=t(_[1],this.locale.format)):this.singleDatePicker&&T!==""&&(y=t(T,this.locale.format),g=t(T,this.locale.format)),y!==null&&g!==null&&(this.setStartDate(y),this.setEndDate(g))}if(typeof o.ranges=="object"){for(S in o.ranges){typeof o.ranges[S][0]=="string"?y=t(o.ranges[S][0],this.locale.format):y=t(o.ranges[S][0]),typeof o.ranges[S][1]=="string"?g=t(o.ranges[S][1],this.locale.format):g=t(o.ranges[S][1]),this.minDate&&y.isBefore(this.minDate)&&(y=this.minDate.clone());var I=this.maxDate;if(this.maxSpan&&I&&y.clone().add(this.maxSpan).isAfter(I)&&(I=y.clone().add(this.maxSpan)),I&&g.isAfter(I)&&(g=I.clone()),!(this.minDate&&g.isBefore(this.minDate,this.timepicker?"minute":"day")||I&&y.isAfter(I,this.timepicker?"minute":"day"))){var l=document.createElement("textarea");l.innerHTML=S;var c=l.value;this.ranges[c]=[y,g]}}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 l=this.container.find(".left .ampmselect").val();l==="PM"&&i<12&&(i+=12),l==="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 l=this.container.find(".right .ampmselect").val();l==="PM"&&i<12&&(i+=12),l==="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(),l=R.month.hour(),c=R.month.minute(),d=R.month.second(),y=t([s,o]).daysInMonth(),g=t([s,o,1]),S=t([s,o,y]),T=t(g).subtract(1,"month").month(),_=t(g).subtract(1,"month").year(),I=t([_,T]).daysInMonth(),L=g.day(),R=[];R.firstDay=g,R.lastDay=S;for(var U=0;U<6;U++)R[U]=[];var W=I-L+this.locale.firstDay+1;W>I&&(W-=7),L==this.locale.firstDay&&(W=I-6);for(var ne=t([_,T,W,12,c,d]),Q,pe,U=0,Q=0,pe=0;U<42;U++,Q++,ne=t(ne).add(24,"hour"))U>0&&Q%7===0&&(Q=0,pe++),R[pe][Q]=ne.clone().hour(l).minute(c).second(d),ne.hour(12),this.minDate&&R[pe][Q].format("YYYY-MM-DD")==this.minDate.format("YYYY-MM-DD")&&R[pe][Q].isBefore(this.minDate)&&i=="left"&&(R[pe][Q]=this.minDate.clone()),this.maxDate&&R[pe][Q].format("YYYY-MM-DD")==this.maxDate.format("YYYY-MM-DD")&&R[pe][Q].isAfter(this.maxDate)&&i=="right"&&(R[pe][Q]=this.maxDate.clone());i=="left"?this.leftCalendar.calendar=R:this.rightCalendar.calendar=R;var x=i=="left"?this.minDate:this.startDate,ce=this.maxDate;i=="left"?this.startDate:this.endDate,this.locale.direction=="ltr";var se='<table class="table-condensed">';se+="<thead>",se+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(se+="<th></th>"),(!x||x.isBefore(R.firstDay))&&(!this.linkedCalendars||i=="left")?se+='<th class="prev available"><span></span></th>':se+="<th></th>";var je=this.locale.monthNames[R[1][1].month()]+R[1][1].format(" YYYY");if(this.showDropdowns){for(var qe=R[1][1].month(),Xe=R[1][1].year(),rt=ce&&ce.year()||this.maxYear,nt=x&&x.year()||this.minYear,ye=Xe==nt,Pe=Xe==rt,Ue='<select class="monthselect">',Je=0;Je<12;Je++)(!ye||x&&Je>=x.month())&&(!Pe||ce&&Je<=ce.month())?Ue+="<option value='"+Je+"'"+(Je===qe?" selected='selected'":"")+">"+this.locale.monthNames[Je]+"</option>":Ue+="<option value='"+Je+"'"+(Je===qe?" selected='selected'":"")+" disabled='disabled'>"+this.locale.monthNames[Je]+"</option>";Ue+="</select>";for(var st='<select class="yearselect">',ke=nt;ke<=rt;ke++)st+='<option value="'+ke+'"'+(ke===Xe?' selected="selected"':"")+">"+ke+"</option>";st+="</select>",je=Ue+st}if(se+='<th colspan="5" class="month">'+je+"</th>",(!ce||ce.isAfter(R.lastDay))&&(!this.linkedCalendars||i=="right"||this.singleDatePicker)?se+='<th class="next available"><span></span></th>':se+="<th></th>",se+="</tr>",se+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(se+='<th class="week">'+this.locale.weekLabel+"</th>"),n.each(this.locale.daysOfWeek,function(ze,ut){se+="<th>"+ut+"</th>"}),se+="</tr>",se+="</thead>",se+="<tbody>",this.endDate==null&&this.maxSpan){var _e=this.startDate.clone().add(this.maxSpan).endOf("day");(!ce||_e.isBefore(ce))&&(ce=_e)}for(var pe=0;pe<6;pe++){se+="<tr>",this.showWeekNumbers?se+='<td class="week">'+R[pe][0].week()+"</td>":this.showISOWeekNumbers&&(se+='<td class="week">'+R[pe][0].isoWeek()+"</td>");for(var Q=0;Q<7;Q++){var Ve=[];R[pe][Q].isSame(new Date,"day")&&Ve.push("today"),R[pe][Q].isoWeekday()>5&&Ve.push("weekend"),R[pe][Q].month()!=R[1][1].month()&&Ve.push("off","ends"),this.minDate&&R[pe][Q].isBefore(this.minDate,"day")&&Ve.push("off","disabled"),ce&&R[pe][Q].isAfter(ce,"day")&&Ve.push("off","disabled"),this.isInvalidDate(R[pe][Q])&&Ve.push("off","disabled"),R[pe][Q].format("YYYY-MM-DD")==this.startDate.format("YYYY-MM-DD")&&Ve.push("active","start-date"),this.endDate!=null&&R[pe][Q].format("YYYY-MM-DD")==this.endDate.format("YYYY-MM-DD")&&Ve.push("active","end-date"),this.endDate!=null&&R[pe][Q]>this.startDate&&R[pe][Q]<this.endDate&&Ve.push("in-range");var He=this.isCustomDate(R[pe][Q]);He!==!1&&(typeof He=="string"?Ve.push(He):Array.prototype.push.apply(Ve,He));for(var Re="",Fe=!1,U=0;U<Ve.length;U++)Re+=Ve[U]+" ",Ve[U]=="disabled"&&(Fe=!0);Fe||(Re+="available"),se+='<td class="'+Re.replace(/^\s+|\s+$/g,"")+'" data-title="r'+pe+"c"+Q+'">'+R[pe][Q].date()+"</td>"}se+="</tr>"}se+="</tbody>",se+="</table>",this.container.find(".drp-calendar."+i+" .calendar-table").html(se)},renderTimePicker:function(i){if(!(i=="right"&&!this.endDate)){var o,s,l,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(),l=this.minDate;else if(i=="right"){s=this.endDate.clone(),l=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 y=d.find(".ampmselect option:selected").val();y==="PM"&&s.hour()<12&&s.hour(s.hour()+12),y==="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 g=this.timePicker24Hour?0:1,S=this.timePicker24Hour?23:12,T=g;T<=S;T++){var _=T;this.timePicker24Hour||(_=s.hour()>=12?T==12?12:T+12:T==12?0:T);var I=s.clone().hour(_),L=!1;l&&I.minute(59).isBefore(l)&&(L=!0),c&&I.minute(0).isAfter(c)&&(L=!0),_==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;l&&I.second(59).isBefore(l)&&(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;l&&I.isBefore(l)&&(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 U="",W="";l&&s.clone().hour(12).minute(0).second(0).isBefore(l)&&(U=' 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"'+U+'>AM</option><option value="PM" selected="selected"'+W+">PM</option>":o+='<option value="AM" selected="selected"'+U+'>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,l=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()},l=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=l-this.element.offset().left-this.element.outerWidth();c+d>n(window).width()?this.container.css({top:o,right:"auto",left:9}):this.container.css({top:o,right:d,left:"auto"})}else if(this.opens=="center"){var y=this.element.offset().left-i.left+this.element.outerWidth()/2-c/2;y<0?this.container.css({top:o,right:"auto",left:9}):y+c>n(window).width()?this.container.css({top:o,left:"auto",right:0}):this.container.css({top:o,left:y,right:"auto"})}else{var y=this.element.offset().left-i.left;y+c>n(window).width()?this.container.css({top:o,left:"auto",right:0}):this.container.css({top:o,left:y,right:"auto"})}},show:function(i){this.isShowing||(this._outsideClickProxy=n.proxy(function(o){this.outsideClick(o)},this),n(document).on("mousedown.daterangepicker",this._outsideClickProxy).on("touchend.daterangepicker",this._outsideClickProxy).on("click.daterangepicker","[data-toggle=dropdown]",this._outsideClickProxy).on("focusin.daterangepicker",this._outsideClickProxy),n(window).on("resize.daterangepicker",n.proxy(function(o){this.move(o)},this)),this.oldStartDate=this.startDate.clone(),this.oldEndDate=this.endDate.clone(),this.previousRightTime=this.endDate.clone(),this.updateView(),this.container.show(),this.move(),this.element.trigger("show.daterangepicker",this),this.isShowing=!0)},hide:function(i){this.isShowing&&(this.endDate||(this.startDate=this.oldStartDate.clone(),this.endDate=this.oldEndDate.clone()),(!this.startDate.isSame(this.oldStartDate)||!this.endDate.isSame(this.oldEndDate))&&this.callback(this.startDate.clone(),this.endDate.clone(),this.chosenLabel),this.updateElement(),n(document).off(".daterangepicker"),n(window).off(".daterangepicker"),this.container.hide(),this.element.trigger("hide.daterangepicker",this),this.isShowing=!1)},toggle:function(i){this.isShowing?this.hide():this.show()},outsideClick:function(i){var o=n(i.target);i.type=="focusin"||o.closest(this.element).length||o.closest(this.container).length||o.closest(".calendar-table").length||(this.hide(),this.element.trigger("outsideClick.daterangepicker",this))},showCalendars:function(){this.container.addClass("show-calendar"),this.move(),this.element.trigger("showCalendar.daterangepicker",this)},hideCalendars:function(){this.container.removeClass("show-calendar"),this.element.trigger("hideCalendar.daterangepicker",this)},clickRange:function(i){var o=i.target.getAttribute("data-range-key");if(this.chosenLabel=o,o==this.locale.customRangeLabel)this.showCalendars();else{var 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),l=o.substr(3,1),c=n(i.target).parents(".drp-calendar"),d=c.hasClass("left")?this.leftCalendar.calendar[s][l]:this.rightCalendar.calendar[s][l],y=this.leftCalendar,g=this.rightCalendar,S=this.startDate;this.endDate||this.container.find(".drp-calendar tbody td").each(function(T,_){if(!n(_).hasClass("week")){var I=n(_).attr("data-title"),L=I.substr(1,1),R=I.substr(3,1),U=n(_).parents(".drp-calendar"),W=U.hasClass("left")?y.calendar[L][R]:g.calendar[L][R];W.isAfter(S)&&W.isBefore(d)||W.isSame(d,"day")?n(_).addClass("in-range"):n(_).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),l=o.substr(3,1),c=n(i.target).parents(".drp-calendar"),d=c.hasClass("left")?this.leftCalendar.calendar[s][l]:this.rightCalendar.calendar[s][l];if(this.endDate||d.isBefore(this.startDate,"day")){if(this.timePicker){var y=parseInt(this.container.find(".left .hourselect").val(),10);if(!this.timePicker24Hour){var g=this.container.find(".left .ampmselect").val();g==="PM"&&y<12&&(y+=12),g==="AM"&&y===12&&(y=0)}var S=parseInt(this.container.find(".left .minuteselect").val(),10);isNaN(S)&&(S=parseInt(this.container.find(".left .minuteselect option:last").val(),10));var T=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0;d=d.clone().hour(y).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 y=parseInt(this.container.find(".right .hourselect").val(),10);if(!this.timePicker24Hour){var g=this.container.find(".right .ampmselect").val();g==="PM"&&y<12&&(y+=12),g==="AM"&&y===12&&(y=0)}var S=parseInt(this.container.find(".right .minuteselect").val(),10);isNaN(S)&&(S=parseInt(this.container.find(".right .minuteselect option:last").val(),10));var T=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0;d=d.clone().hour(y).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 l=this.timePickerSeconds?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD HH:mm";if(this.startDate.format(l)==this.ranges[s][0].format(l)&&this.endDate.format(l)==this.ranges[s][1].format(l)){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",l=this.container.find(".drp-calendar."+s),c=parseInt(l.find(".monthselect").val(),10),d=l.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"),l=parseInt(o.find(".hourselect").val(),10),c=parseInt(o.find(".minuteselect").val(),10);isNaN(c)&&(c=parseInt(o.find(".minuteselect option:last").val(),10));var d=this.timePickerSeconds?parseInt(o.find(".secondselect").val(),10):0;if(!this.timePicker24Hour){var y=o.find(".ampmselect").val();y==="PM"&&l<12&&(l+=12),y==="AM"&&l===12&&(l=0)}if(s){var g=this.startDate.clone();g.hour(l),g.minute(c),g.second(d),this.setStartDate(g),this.singleDatePicker?this.endDate=this.startDate.clone():this.endDate&&this.endDate.format("YYYY-MM-DD")==g.format("YYYY-MM-DD")&&this.endDate.isBefore(g)&&this.setEndDate(g.clone())}else if(this.endDate){var S=this.endDate.clone();S.hour(l),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 l=n(this);l.data("daterangepicker")&&l.data("daterangepicker").remove(),l.data("daterangepicker",new r(l,s,o))}),this},r})})(S4);var Bm=function(e,t){return Bm=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])},Bm(e,t)};function T4(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Bm(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var C4=function(e){T4(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=x4(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=Sn.Children.only(this.props.children);return Sn.cloneElement(r,{ref:function(i){return n.ref=i}})},t}(Sn.Component);_c.styled(e=>ot.jsx(_c.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:Fi.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}}));/**
186
- * @license
187
- * Copyright 2017 Google LLC
188
- *
189
- * Licensed under the Apache License, Version 2.0 (the "License");
190
- * you may not use this file except in compliance with the License.
191
- * You may obtain a copy of the License at
192
- *
193
- * http://www.apache.org/licenses/LICENSE-2.0
194
- *
195
- * Unless required by applicable law or agreed to in writing, software
196
- * distributed under the License is distributed on an "AS IS" BASIS,
197
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
198
- * See the License for the specific language governing permissions and
199
- * limitations under the License.
200
- *//**
201
- * @license
202
- * Copyright 2017 Google LLC
203
- *
204
- * Licensed under the Apache License, Version 2.0 (the "License");
205
- * you may not use this file except in compliance with the License.
206
- * You may obtain a copy of the License at
207
- *
208
- * http://www.apache.org/licenses/LICENSE-2.0
209
- *
210
- * Unless required by applicable law or agreed to in writing, software
211
- * distributed under the License is distributed on an "AS IS" BASIS,
212
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
213
- * See the License for the specific language governing permissions and
214
- * limitations under the License.
215
- */const wO=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},E4=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++],l=e[n++],c=((i&7)<<18|(o&63)<<12|(s&63)<<6|l&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("")},xO={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,l=s?e[i+1]:0,c=i+2<e.length,d=c?e[i+2]:0,y=o>>2,g=(o&3)<<4|l>>4;let S=(l&15)<<2|d>>6,T=d&63;c||(T=64,s||(S=64)),r.push(n[y],n[g],n[S],n[T])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(wO(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):E4(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++)],l=i<e.length?n[e.charAt(i)]:0;++i;const d=i<e.length?n[e.charAt(i)]:64;++i;const g=i<e.length?n[e.charAt(i)]:64;if(++i,o==null||l==null||d==null||g==null)throw new k4;const S=o<<2|l>>4;if(r.push(S),d!==64){const T=l<<4&240|d>>2;if(r.push(T),g!==64){const _=d<<6&192|g;r.push(_)}}}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 k4 extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const O4=function(e){const t=wO(e);return xO.encodeByteArray(t,!0)},SO=function(e){return O4(e).replace(/\./g,"")},D4=function(e){try{return xO.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};/**
216
- * @license
217
- * Copyright 2022 Google LLC
218
- *
219
- * Licensed under the Apache License, Version 2.0 (the "License");
220
- * you may not use this file except in compliance with the License.
221
- * You may obtain a copy of the License at
222
- *
223
- * http://www.apache.org/licenses/LICENSE-2.0
224
- *
225
- * Unless required by applicable law or agreed to in writing, software
226
- * distributed under the License is distributed on an "AS IS" BASIS,
227
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
228
- * See the License for the specific language governing permissions and
229
- * limitations under the License.
230
- */function P4(){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.")}/**
231
- * @license
232
- * Copyright 2022 Google LLC
233
- *
234
- * Licensed under the Apache License, Version 2.0 (the "License");
235
- * you may not use this file except in compliance with the License.
236
- * You may obtain a copy of the License at
237
- *
238
- * http://www.apache.org/licenses/LICENSE-2.0
239
- *
240
- * Unless required by applicable law or agreed to in writing, software
241
- * distributed under the License is distributed on an "AS IS" BASIS,
242
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
243
- * See the License for the specific language governing permissions and
244
- * limitations under the License.
245
- */const _4=()=>P4().__FIREBASE_DEFAULTS__,R4=()=>{if(typeof process>"u"||typeof process.env>"u")return;const e=process.env.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)},I4=()=>{if(typeof document>"u")return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const t=e&&D4(e[1]);return t&&JSON.parse(t)},A4=()=>{try{return _4()||R4()||I4()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}},TO=()=>{var e;return(e=A4())===null||e===void 0?void 0:e.config};/**
246
- * @license
247
- * Copyright 2017 Google LLC
248
- *
249
- * Licensed under the Apache License, Version 2.0 (the "License");
250
- * you may not use this file except in compliance with the License.
251
- * You may obtain a copy of the License at
252
- *
253
- * http://www.apache.org/licenses/LICENSE-2.0
254
- *
255
- * Unless required by applicable law or agreed to in writing, software
256
- * distributed under the License is distributed on an "AS IS" BASIS,
257
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
258
- * See the License for the specific language governing permissions and
259
- * limitations under the License.
260
- */class M4{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 CO(){try{return typeof indexedDB=="object"}catch{return!1}}function EO(){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 L4(){return!(typeof navigator>"u"||!navigator.cookieEnabled)}/**
261
- * @license
262
- * Copyright 2017 Google LLC
263
- *
264
- * Licensed under the Apache License, Version 2.0 (the "License");
265
- * you may not use this file except in compliance with the License.
266
- * You may obtain a copy of the License at
267
- *
268
- * http://www.apache.org/licenses/LICENSE-2.0
269
- *
270
- * Unless required by applicable law or agreed to in writing, software
271
- * distributed under the License is distributed on an "AS IS" BASIS,
272
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
273
- * See the License for the specific language governing permissions and
274
- * limitations under the License.
275
- */const F4="FirebaseError";class Bf extends Error{constructor(t,n,r){super(n),this.code=t,this.customData=r,this.name=F4,Object.setPrototypeOf(this,Bf.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?N4(o,r):"Error",l=`${this.serviceName}: ${s} (${i}).`;return new Bf(i,l,r)}}function N4(e,t){return e.replace(j4,(n,r)=>{const i=t[r];return i!=null?String(i):`<${r}?>`})}const j4=/\{\$([^}]+)}/g;function $m(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(a1(o)&&a1(s)){if(!$m(o,s))return!1}else if(o!==s)return!1}for(const i of r)if(!n.includes(i))return!1;return!0}function a1(e){return e!==null&&typeof e=="object"}/**
276
- * @license
277
- * Copyright 2021 Google LLC
278
- *
279
- * Licensed under the Apache License, Version 2.0 (the "License");
280
- * you may not use this file except in compliance with the License.
281
- * You may obtain a copy of the License at
282
- *
283
- * http://www.apache.org/licenses/LICENSE-2.0
284
- *
285
- * Unless required by applicable law or agreed to in writing, software
286
- * distributed under the License is distributed on an "AS IS" BASIS,
287
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
288
- * See the License for the specific language governing permissions and
289
- * limitations under the License.
290
- */function Ky(e){return e&&e._delegate?e._delegate:e}class Rl{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}}/**
291
- * @license
292
- * Copyright 2019 Google LLC
293
- *
294
- * Licensed under the Apache License, Version 2.0 (the "License");
295
- * you may not use this file except in compliance with the License.
296
- * You may obtain a copy of the License at
297
- *
298
- * http://www.apache.org/licenses/LICENSE-2.0
299
- *
300
- * Unless required by applicable law or agreed to in writing, software
301
- * distributed under the License is distributed on an "AS IS" BASIS,
302
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
303
- * See the License for the specific language governing permissions and
304
- * limitations under the License.
305
- */const Tc="[DEFAULT]";/**
306
- * @license
307
- * Copyright 2019 Google LLC
308
- *
309
- * Licensed under the Apache License, Version 2.0 (the "License");
310
- * you may not use this file except in compliance with the License.
311
- * You may obtain a copy of the License at
312
- *
313
- * http://www.apache.org/licenses/LICENSE-2.0
314
- *
315
- * Unless required by applicable law or agreed to in writing, software
316
- * distributed under the License is distributed on an "AS IS" BASIS,
317
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
318
- * See the License for the specific language governing permissions and
319
- * limitations under the License.
320
- */class B4{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 M4;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(V4(t))try{this.getOrInitializeService({instanceIdentifier:Tc})}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=Tc){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=Tc){return this.instances.has(t)}getOptions(t=Tc){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 l=this.normalizeInstanceIdentifier(o);r===l&&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:$4(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=Tc){return this.component?this.component.multipleInstances?t:Tc:t}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function $4(e){return e===Tc?void 0:e}function V4(e){return e.instantiationMode==="EAGER"}/**
321
- * @license
322
- * Copyright 2019 Google LLC
323
- *
324
- * Licensed under the Apache License, Version 2.0 (the "License");
325
- * you may not use this file except in compliance with the License.
326
- * You may obtain a copy of the License at
327
- *
328
- * http://www.apache.org/licenses/LICENSE-2.0
329
- *
330
- * Unless required by applicable law or agreed to in writing, software
331
- * distributed under the License is distributed on an "AS IS" BASIS,
332
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
333
- * See the License for the specific language governing permissions and
334
- * limitations under the License.
335
- */class H4{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 B4(t,this);return this.providers.set(t,n),n}getProviders(){return Array.from(this.providers.values())}}/**
336
- * @license
337
- * Copyright 2017 Google LLC
338
- *
339
- * Licensed under the Apache License, Version 2.0 (the "License");
340
- * you may not use this file except in compliance with the License.
341
- * You may obtain a copy of the License at
342
- *
343
- * http://www.apache.org/licenses/LICENSE-2.0
344
- *
345
- * Unless required by applicable law or agreed to in writing, software
346
- * distributed under the License is distributed on an "AS IS" BASIS,
347
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
348
- * See the License for the specific language governing permissions and
349
- * limitations under the License.
350
- */var Vn;(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"})(Vn||(Vn={}));const U4={debug:Vn.DEBUG,verbose:Vn.VERBOSE,info:Vn.INFO,warn:Vn.WARN,error:Vn.ERROR,silent:Vn.SILENT},W4=Vn.INFO,z4={[Vn.DEBUG]:"log",[Vn.VERBOSE]:"log",[Vn.INFO]:"info",[Vn.WARN]:"warn",[Vn.ERROR]:"error"},Y4=(e,t,...n)=>{if(t<e.logLevel)return;const r=new Date().toISOString(),i=z4[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 G4{constructor(t){this.name=t,this._logLevel=W4,this._logHandler=Y4,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(t){if(!(t in Vn))throw new TypeError(`Invalid value "${t}" assigned to \`logLevel\``);this._logLevel=t}setLogLevel(t){this._logLevel=typeof t=="string"?U4[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,Vn.DEBUG,...t),this._logHandler(this,Vn.DEBUG,...t)}log(...t){this._userLogHandler&&this._userLogHandler(this,Vn.VERBOSE,...t),this._logHandler(this,Vn.VERBOSE,...t)}info(...t){this._userLogHandler&&this._userLogHandler(this,Vn.INFO,...t),this._logHandler(this,Vn.INFO,...t)}warn(...t){this._userLogHandler&&this._userLogHandler(this,Vn.WARN,...t),this._logHandler(this,Vn.WARN,...t)}error(...t){this._userLogHandler&&this._userLogHandler(this,Vn.ERROR,...t),this._logHandler(this,Vn.ERROR,...t)}}const q4=(e,t)=>t.some(n=>e instanceof n);let s1,u1;function X4(){return s1||(s1=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function K4(){return u1||(u1=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const kO=new WeakMap,Vm=new WeakMap,OO=new WeakMap,_v=new WeakMap,Zy=new WeakMap;function Z4(e){const t=new Promise((n,r)=>{const i=()=>{e.removeEventListener("success",o),e.removeEventListener("error",s)},o=()=>{n(Ru(e.result)),i()},s=()=>{r(e.error),i()};e.addEventListener("success",o),e.addEventListener("error",s)});return t.then(n=>{n instanceof IDBCursor&&kO.set(n,e)}).catch(()=>{}),Zy.set(t,e),t}function J4(e){if(Vm.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)});Vm.set(e,t)}let Hm={get(e,t,n){if(e instanceof IDBTransaction){if(t==="done")return Vm.get(e);if(t==="objectStoreNames")return e.objectStoreNames||OO.get(e);if(t==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Ru(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 Q4(e){Hm=e(Hm)}function e6(e){return e===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(t,...n){const r=e.call(Rv(this),t,...n);return OO.set(r,t.sort?t.sort():[t]),Ru(r)}:K4().includes(e)?function(...t){return e.apply(Rv(this),t),Ru(kO.get(this))}:function(...t){return Ru(e.apply(Rv(this),t))}}function t6(e){return typeof e=="function"?e6(e):(e instanceof IDBTransaction&&J4(e),q4(e,X4())?new Proxy(e,Hm):e)}function Ru(e){if(e instanceof IDBRequest)return Z4(e);if(_v.has(e))return _v.get(e);const t=t6(e);return t!==e&&(_v.set(e,t),Zy.set(t,e)),t}const Rv=e=>Zy.get(e);function ig(e,t,{blocked:n,upgrade:r,blocking:i,terminated:o}={}){const s=indexedDB.open(e,t),l=Ru(s);return r&&s.addEventListener("upgradeneeded",c=>{r(Ru(s.result),c.oldVersion,c.newVersion,Ru(s.transaction),c)}),n&&s.addEventListener("blocked",c=>n(c.oldVersion,c.newVersion,c)),l.then(c=>{o&&c.addEventListener("close",()=>o()),i&&c.addEventListener("versionchange",d=>i(d.oldVersion,d.newVersion,d))}).catch(()=>{}),l}function Iv(e,{blocked:t}={}){const n=indexedDB.deleteDatabase(e);return t&&n.addEventListener("blocked",r=>t(r.oldVersion,r)),Ru(n).then(()=>{})}const n6=["get","getKey","getAll","getAllKeys","count"],r6=["put","add","delete","clear"],Av=new Map;function l1(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=r6.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||n6.includes(n)))return;const o=async function(s,...l){const c=this.transaction(s,i?"readwrite":"readonly");let d=c.store;return r&&(d=d.index(l.shift())),(await Promise.all([d[n](...l),i&&c.done]))[0]};return Av.set(t,o),o}Q4(e=>({...e,get:(t,n,r)=>l1(t,n)||e.get(t,n,r),has:(t,n)=>!!l1(t,n)||e.has(t,n)}));/**
351
- * @license
352
- * Copyright 2019 Google LLC
353
- *
354
- * Licensed under the Apache License, Version 2.0 (the "License");
355
- * you may not use this file except in compliance with the License.
356
- * You may obtain a copy of the License at
357
- *
358
- * http://www.apache.org/licenses/LICENSE-2.0
359
- *
360
- * Unless required by applicable law or agreed to in writing, software
361
- * distributed under the License is distributed on an "AS IS" BASIS,
362
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
363
- * See the License for the specific language governing permissions and
364
- * limitations under the License.
365
- */class i6{constructor(t){this.container=t}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(o6(n)){const r=n.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(n=>n).join(" ")}}function o6(e){const t=e.getComponent();return(t==null?void 0:t.type)==="VERSION"}const Um="@firebase/app",c1="0.9.28";/**
366
- * @license
367
- * Copyright 2019 Google LLC
368
- *
369
- * Licensed under the Apache License, Version 2.0 (the "License");
370
- * you may not use this file except in compliance with the License.
371
- * You may obtain a copy of the License at
372
- *
373
- * http://www.apache.org/licenses/LICENSE-2.0
374
- *
375
- * Unless required by applicable law or agreed to in writing, software
376
- * distributed under the License is distributed on an "AS IS" BASIS,
377
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
378
- * See the License for the specific language governing permissions and
379
- * limitations under the License.
380
- */const Mc=new G4("@firebase/app"),a6="@firebase/app-compat",s6="@firebase/analytics-compat",u6="@firebase/analytics",l6="@firebase/app-check-compat",c6="@firebase/app-check",f6="@firebase/auth",d6="@firebase/auth-compat",h6="@firebase/database",p6="@firebase/database-compat",g6="@firebase/functions",v6="@firebase/functions-compat",m6="@firebase/installations",y6="@firebase/installations-compat",b6="@firebase/messaging",w6="@firebase/messaging-compat",x6="@firebase/performance",S6="@firebase/performance-compat",T6="@firebase/remote-config",C6="@firebase/remote-config-compat",E6="@firebase/storage",k6="@firebase/storage-compat",O6="@firebase/firestore",D6="@firebase/firestore-compat",P6="firebase";/**
381
- * @license
382
- * Copyright 2019 Google LLC
383
- *
384
- * Licensed under the Apache License, Version 2.0 (the "License");
385
- * you may not use this file except in compliance with the License.
386
- * You may obtain a copy of the License at
387
- *
388
- * http://www.apache.org/licenses/LICENSE-2.0
389
- *
390
- * Unless required by applicable law or agreed to in writing, software
391
- * distributed under the License is distributed on an "AS IS" BASIS,
392
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
393
- * See the License for the specific language governing permissions and
394
- * limitations under the License.
395
- */const Wm="[DEFAULT]",_6={[Um]:"fire-core",[a6]:"fire-core-compat",[u6]:"fire-analytics",[s6]:"fire-analytics-compat",[c6]:"fire-app-check",[l6]:"fire-app-check-compat",[f6]:"fire-auth",[d6]:"fire-auth-compat",[h6]:"fire-rtdb",[p6]:"fire-rtdb-compat",[g6]:"fire-fn",[v6]:"fire-fn-compat",[m6]:"fire-iid",[y6]:"fire-iid-compat",[b6]:"fire-fcm",[w6]:"fire-fcm-compat",[x6]:"fire-perf",[S6]:"fire-perf-compat",[T6]:"fire-rc",[C6]:"fire-rc-compat",[E6]:"fire-gcs",[k6]:"fire-gcs-compat",[O6]:"fire-fst",[D6]:"fire-fst-compat","fire-js":"fire-js",[P6]:"fire-js-all"};/**
396
- * @license
397
- * Copyright 2019 Google LLC
398
- *
399
- * Licensed under the Apache License, Version 2.0 (the "License");
400
- * you may not use this file except in compliance with the License.
401
- * You may obtain a copy of the License at
402
- *
403
- * http://www.apache.org/licenses/LICENSE-2.0
404
- *
405
- * Unless required by applicable law or agreed to in writing, software
406
- * distributed under the License is distributed on an "AS IS" BASIS,
407
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
408
- * See the License for the specific language governing permissions and
409
- * limitations under the License.
410
- */const kp=new Map,zm=new Map;function R6(e,t){try{e.container.addComponent(t)}catch(n){Mc.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function Lc(e){const t=e.name;if(zm.has(t))return Mc.debug(`There were multiple attempts to register component ${t}.`),!1;zm.set(t,e);for(const n of kp.values())R6(n,e);return!0}function Jy(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}/**
411
- * @license
412
- * Copyright 2019 Google LLC
413
- *
414
- * Licensed under the Apache License, Version 2.0 (the "License");
415
- * you may not use this file except in compliance with the License.
416
- * You may obtain a copy of the License at
417
- *
418
- * http://www.apache.org/licenses/LICENSE-2.0
419
- *
420
- * Unless required by applicable law or agreed to in writing, software
421
- * distributed under the License is distributed on an "AS IS" BASIS,
422
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
423
- * See the License for the specific language governing permissions and
424
- * limitations under the License.
425
- */const I6={"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","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}."},El=new rg("app","Firebase",I6);/**
426
- * @license
427
- * Copyright 2019 Google LLC
428
- *
429
- * Licensed under the Apache License, Version 2.0 (the "License");
430
- * you may not use this file except in compliance with the License.
431
- * You may obtain a copy of the License at
432
- *
433
- * http://www.apache.org/licenses/LICENSE-2.0
434
- *
435
- * Unless required by applicable law or agreed to in writing, software
436
- * distributed under the License is distributed on an "AS IS" BASIS,
437
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
438
- * See the License for the specific language governing permissions and
439
- * limitations under the License.
440
- */class A6{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 Rl("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 El.create("app-deleted",{appName:this._name})}}function DO(e,t={}){let n=e;typeof t!="object"&&(t={name:t});const r=Object.assign({name:Wm,automaticDataCollectionEnabled:!1},t),i=r.name;if(typeof i!="string"||!i)throw El.create("bad-app-name",{appName:String(i)});if(n||(n=TO()),!n)throw El.create("no-options");const o=kp.get(i);if(o){if($m(n,o.options)&&$m(r,o.config))return o;throw El.create("duplicate-app",{appName:i})}const s=new H4(i);for(const c of zm.values())s.addComponent(c);const l=new A6(n,r,s);return kp.set(i,l),l}function M6(e=Wm){const t=kp.get(e);if(!t&&e===Wm&&TO())return DO();if(!t)throw El.create("no-app",{appName:e});return t}function kl(e,t,n){var r;let i=(r=_6[e])!==null&&r!==void 0?r:e;n&&(i+=`-${n}`);const o=i.match(/\s|\//),s=t.match(/\s|\//);if(o||s){const l=[`Unable to register library "${i}" with version "${t}":`];o&&l.push(`library name "${i}" contains illegal characters (whitespace or "/")`),o&&s&&l.push("and"),s&&l.push(`version name "${t}" contains illegal characters (whitespace or "/")`),Mc.warn(l.join(" "));return}Lc(new Rl(`${i}-version`,()=>({library:i,version:t}),"VERSION"))}/**
441
- * @license
442
- * Copyright 2021 Google LLC
443
- *
444
- * Licensed under the Apache License, Version 2.0 (the "License");
445
- * you may not use this file except in compliance with the License.
446
- * You may obtain a copy of the License at
447
- *
448
- * http://www.apache.org/licenses/LICENSE-2.0
449
- *
450
- * Unless required by applicable law or agreed to in writing, software
451
- * distributed under the License is distributed on an "AS IS" BASIS,
452
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
453
- * See the License for the specific language governing permissions and
454
- * limitations under the License.
455
- */const L6="firebase-heartbeat-database",F6=1,Bd="firebase-heartbeat-store";let Mv=null;function PO(){return Mv||(Mv=ig(L6,F6,{upgrade:(e,t)=>{switch(t){case 0:try{e.createObjectStore(Bd)}catch(n){console.warn(n)}}}}).catch(e=>{throw El.create("idb-open",{originalErrorMessage:e.message})})),Mv}async function N6(e){try{const n=(await PO()).transaction(Bd),r=await n.objectStore(Bd).get(_O(e));return await n.done,r}catch(t){if(t instanceof Bf)Mc.warn(t.message);else{const n=El.create("idb-get",{originalErrorMessage:t==null?void 0:t.message});Mc.warn(n.message)}}}async function f1(e,t){try{const r=(await PO()).transaction(Bd,"readwrite");await r.objectStore(Bd).put(t,_O(e)),await r.done}catch(n){if(n instanceof Bf)Mc.warn(n.message);else{const r=El.create("idb-set",{originalErrorMessage:n==null?void 0:n.message});Mc.warn(r.message)}}}function _O(e){return`${e.name}!${e.options.appId}`}/**
456
- * @license
457
- * Copyright 2021 Google LLC
458
- *
459
- * Licensed under the Apache License, Version 2.0 (the "License");
460
- * you may not use this file except in compliance with the License.
461
- * You may obtain a copy of the License at
462
- *
463
- * http://www.apache.org/licenses/LICENSE-2.0
464
- *
465
- * Unless required by applicable law or agreed to in writing, software
466
- * distributed under the License is distributed on an "AS IS" BASIS,
467
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
468
- * See the License for the specific language governing permissions and
469
- * limitations under the License.
470
- */const j6=1024,B6=30*24*60*60*1e3;class $6{constructor(t){this.container=t,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new H6(n),this._heartbeatsCachePromise=this._storage.read().then(r=>(this._heartbeatsCache=r,r))}async triggerHeartbeat(){var t,n;const i=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),o=d1();if(!(((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)))return this._heartbeatsCache.heartbeats.push({date:o,agent:i}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(s=>{const l=new Date(s.date).valueOf();return Date.now()-l<=B6}),this._storage.overwrite(this._heartbeatsCache)}async getHeartbeatsHeader(){var t;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=d1(),{heartbeatsToSend:r,unsentEntries:i}=V6(this._heartbeatsCache.heartbeats),o=SO(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}}function d1(){return new Date().toISOString().substring(0,10)}function V6(e,t=j6){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),h1(n)>t){o.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),h1(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}class H6{constructor(t){this.app=t,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return CO()?EO().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const n=await N6(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 f1(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 f1(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&&n!==void 0?n:i.lastSentHeartbeatDate,heartbeats:[...i.heartbeats,...t.heartbeats]})}else return}}function h1(e){return SO(JSON.stringify({version:2,heartbeats:e})).length}/**
471
- * @license
472
- * Copyright 2019 Google LLC
473
- *
474
- * Licensed under the Apache License, Version 2.0 (the "License");
475
- * you may not use this file except in compliance with the License.
476
- * You may obtain a copy of the License at
477
- *
478
- * http://www.apache.org/licenses/LICENSE-2.0
479
- *
480
- * Unless required by applicable law or agreed to in writing, software
481
- * distributed under the License is distributed on an "AS IS" BASIS,
482
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
483
- * See the License for the specific language governing permissions and
484
- * limitations under the License.
485
- */function U6(e){Lc(new Rl("platform-logger",t=>new i6(t),"PRIVATE")),Lc(new Rl("heartbeat",t=>new $6(t),"PRIVATE")),kl(Um,c1,e),kl(Um,c1,"esm2017"),kl("fire-js","")}U6("");var W6="firebase",z6="10.8.1";/**
486
- * @license
487
- * Copyright 2020 Google LLC
488
- *
489
- * Licensed under the Apache License, Version 2.0 (the "License");
490
- * you may not use this file except in compliance with the License.
491
- * You may obtain a copy of the License at
492
- *
493
- * http://www.apache.org/licenses/LICENSE-2.0
494
- *
495
- * Unless required by applicable law or agreed to in writing, software
496
- * distributed under the License is distributed on an "AS IS" BASIS,
497
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
498
- * See the License for the specific language governing permissions and
499
- * limitations under the License.
500
- */kl(W6,z6,"app");const RO="@firebase/installations",Qy="0.6.5";/**
501
- * @license
502
- * Copyright 2019 Google LLC
503
- *
504
- * Licensed under the Apache License, Version 2.0 (the "License");
505
- * you may not use this file except in compliance with the License.
506
- * You may obtain a copy of the License at
507
- *
508
- * http://www.apache.org/licenses/LICENSE-2.0
509
- *
510
- * Unless required by applicable law or agreed to in writing, software
511
- * distributed under the License is distributed on an "AS IS" BASIS,
512
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
513
- * See the License for the specific language governing permissions and
514
- * limitations under the License.
515
- */const IO=1e4,AO=`w:${Qy}`,MO="FIS_v2",Y6="https://firebaseinstallations.googleapis.com/v1",G6=60*60*1e3,q6="installations",X6="Installations";/**
516
- * @license
517
- * Copyright 2019 Google LLC
518
- *
519
- * Licensed under the Apache License, Version 2.0 (the "License");
520
- * you may not use this file except in compliance with the License.
521
- * You may obtain a copy of the License at
522
- *
523
- * http://www.apache.org/licenses/LICENSE-2.0
524
- *
525
- * Unless required by applicable law or agreed to in writing, software
526
- * distributed under the License is distributed on an "AS IS" BASIS,
527
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
528
- * See the License for the specific language governing permissions and
529
- * limitations under the License.
530
- */const K6={"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(q6,X6,K6);function LO(e){return e instanceof Bf&&e.code.includes("request-failed")}/**
531
- * @license
532
- * Copyright 2019 Google LLC
533
- *
534
- * Licensed under the Apache License, Version 2.0 (the "License");
535
- * you may not use this file except in compliance with the License.
536
- * You may obtain a copy of the License at
537
- *
538
- * http://www.apache.org/licenses/LICENSE-2.0
539
- *
540
- * Unless required by applicable law or agreed to in writing, software
541
- * distributed under the License is distributed on an "AS IS" BASIS,
542
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
543
- * See the License for the specific language governing permissions and
544
- * limitations under the License.
545
- */function FO({projectId:e}){return`${Y6}/projects/${e}/installations`}function NO(e){return{token:e.token,requestStatus:2,expiresIn:J6(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 BO({apiKey:e}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}function Z6(e,{refreshToken:t}){const n=BO(e);return n.append("Authorization",Q6(t)),n}async function $O(e){const t=await e();return t.status>=500&&t.status<600?e():t}function J6(e){return Number(e.replace("s","000"))}function Q6(e){return`${MO} ${e}`}/**
546
- * @license
547
- * Copyright 2019 Google LLC
548
- *
549
- * Licensed under the Apache License, Version 2.0 (the "License");
550
- * you may not use this file except in compliance with the License.
551
- * You may obtain a copy of the License at
552
- *
553
- * http://www.apache.org/licenses/LICENSE-2.0
554
- *
555
- * Unless required by applicable law or agreed to in writing, software
556
- * distributed under the License is distributed on an "AS IS" BASIS,
557
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
558
- * See the License for the specific language governing permissions and
559
- * limitations under the License.
560
- */async function e8({appConfig:e,heartbeatServiceProvider:t},{fid:n}){const r=FO(e),i=BO(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:MO,appId:e.appId,sdkVersion:AO},l={method:"POST",headers:i,body:JSON.stringify(s)},c=await $O(()=>fetch(r,l));if(c.ok){const d=await c.json();return{fid:d.fid||n,registrationStatus:2,refreshToken:d.refreshToken,authToken:NO(d.authToken)}}else throw await jO("Create Installation",c)}/**
561
- * @license
562
- * Copyright 2019 Google LLC
563
- *
564
- * Licensed under the Apache License, Version 2.0 (the "License");
565
- * you may not use this file except in compliance with the License.
566
- * You may obtain a copy of the License at
567
- *
568
- * http://www.apache.org/licenses/LICENSE-2.0
569
- *
570
- * Unless required by applicable law or agreed to in writing, software
571
- * distributed under the License is distributed on an "AS IS" BASIS,
572
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
573
- * See the License for the specific language governing permissions and
574
- * limitations under the License.
575
- */function VO(e){return new Promise(t=>{setTimeout(t,e)})}/**
576
- * @license
577
- * Copyright 2019 Google LLC
578
- *
579
- * Licensed under the Apache License, Version 2.0 (the "License");
580
- * you may not use this file except in compliance with the License.
581
- * You may obtain a copy of the License at
582
- *
583
- * http://www.apache.org/licenses/LICENSE-2.0
584
- *
585
- * Unless required by applicable law or agreed to in writing, software
586
- * distributed under the License is distributed on an "AS IS" BASIS,
587
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
588
- * See the License for the specific language governing permissions and
589
- * limitations under the License.
590
- */function t8(e){return btoa(String.fromCharCode(...e)).replace(/\+/g,"-").replace(/\//g,"_")}/**
591
- * @license
592
- * Copyright 2019 Google LLC
593
- *
594
- * Licensed under the Apache License, Version 2.0 (the "License");
595
- * you may not use this file except in compliance with the License.
596
- * You may obtain a copy of the License at
597
- *
598
- * http://www.apache.org/licenses/LICENSE-2.0
599
- *
600
- * Unless required by applicable law or agreed to in writing, software
601
- * distributed under the License is distributed on an "AS IS" BASIS,
602
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
603
- * See the License for the specific language governing permissions and
604
- * limitations under the License.
605
- */const n8=/^[cdef][\w-]{21}$/,Ym="";function r8(){try{const e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;const n=i8(e);return n8.test(n)?n:Ym}catch{return Ym}}function i8(e){return t8(e).substr(0,22)}/**
606
- * @license
607
- * Copyright 2019 Google LLC
608
- *
609
- * Licensed under the Apache License, Version 2.0 (the "License");
610
- * you may not use this file except in compliance with the License.
611
- * You may obtain a copy of the License at
612
- *
613
- * http://www.apache.org/licenses/LICENSE-2.0
614
- *
615
- * Unless required by applicable law or agreed to in writing, software
616
- * distributed under the License is distributed on an "AS IS" BASIS,
617
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
618
- * See the License for the specific language governing permissions and
619
- * limitations under the License.
620
- */function og(e){return`${e.appName}!${e.appId}`}/**
621
- * @license
622
- * Copyright 2019 Google LLC
623
- *
624
- * Licensed under the Apache License, Version 2.0 (the "License");
625
- * you may not use this file except in compliance with the License.
626
- * You may obtain a copy of the License at
627
- *
628
- * http://www.apache.org/licenses/LICENSE-2.0
629
- *
630
- * Unless required by applicable law or agreed to in writing, software
631
- * distributed under the License is distributed on an "AS IS" BASIS,
632
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
633
- * See the License for the specific language governing permissions and
634
- * limitations under the License.
635
- */const HO=new Map;function UO(e,t){const n=og(e);WO(n,t),o8(n,t)}function WO(e,t){const n=HO.get(e);if(n)for(const r of n)r(t)}function o8(e,t){const n=a8();n&&n.postMessage({key:e,fid:t}),s8()}let kc=null;function a8(){return!kc&&"BroadcastChannel"in self&&(kc=new BroadcastChannel("[Firebase] FID Change"),kc.onmessage=e=>{WO(e.data.key,e.data.fid)}),kc}function s8(){HO.size===0&&kc&&(kc.close(),kc=null)}/**
636
- * @license
637
- * Copyright 2019 Google LLC
638
- *
639
- * Licensed under the Apache License, Version 2.0 (the "License");
640
- * you may not use this file except in compliance with the License.
641
- * You may obtain a copy of the License at
642
- *
643
- * http://www.apache.org/licenses/LICENSE-2.0
644
- *
645
- * Unless required by applicable law or agreed to in writing, software
646
- * distributed under the License is distributed on an "AS IS" BASIS,
647
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
648
- * See the License for the specific language governing permissions and
649
- * limitations under the License.
650
- */const u8="firebase-installations-database",l8=1,Nc="firebase-installations-store";let Lv=null;function eb(){return Lv||(Lv=ig(u8,l8,{upgrade:(e,t)=>{switch(t){case 0:e.createObjectStore(Nc)}}})),Lv}async function Op(e,t){const n=og(e),i=(await eb()).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)&&UO(e,t.fid),t}async function zO(e){const t=og(e),r=(await eb()).transaction(Nc,"readwrite");await r.objectStore(Nc).delete(t),await r.done}async function ag(e,t){const n=og(e),i=(await eb()).transaction(Nc,"readwrite"),o=i.objectStore(Nc),s=await o.get(n),l=t(s);return l===void 0?await o.delete(n):await o.put(l,n),await i.done,l&&(!s||s.fid!==l.fid)&&UO(e,l.fid),l}/**
651
- * @license
652
- * Copyright 2019 Google LLC
653
- *
654
- * Licensed under the Apache License, Version 2.0 (the "License");
655
- * you may not use this file except in compliance with the License.
656
- * You may obtain a copy of the License at
657
- *
658
- * http://www.apache.org/licenses/LICENSE-2.0
659
- *
660
- * Unless required by applicable law or agreed to in writing, software
661
- * distributed under the License is distributed on an "AS IS" BASIS,
662
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
663
- * See the License for the specific language governing permissions and
664
- * limitations under the License.
665
- */async function tb(e){let t;const n=await ag(e.appConfig,r=>{const i=c8(r),o=f8(e,i);return t=o.registrationPromise,o.installationEntry});return n.fid===Ym?{installationEntry:await t}:{installationEntry:n,registrationPromise:t}}function c8(e){const t=e||{fid:r8(),registrationStatus:0};return YO(t)}function f8(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=d8(e,n);return{installationEntry:n,registrationPromise:r}}else return t.registrationStatus===1?{installationEntry:t,registrationPromise:h8(e)}:{installationEntry:t}}async function d8(e,t){try{const n=await e8(e,t);return Op(e.appConfig,n)}catch(n){throw LO(n)&&n.customData.serverCode===409?await zO(e.appConfig):await Op(e.appConfig,{fid:t.fid,registrationStatus:0}),n}}async function h8(e){let t=await p1(e.appConfig);for(;t.registrationStatus===1;)await VO(100),t=await p1(e.appConfig);if(t.registrationStatus===0){const{installationEntry:n,registrationPromise:r}=await tb(e);return r||n}return t}function p1(e){return ag(e,t=>{if(!t)throw Fc.create("installation-not-found");return YO(t)})}function YO(e){return p8(e)?{fid:e.fid,registrationStatus:0}:e}function p8(e){return e.registrationStatus===1&&e.registrationTime+IO<Date.now()}/**
666
- * @license
667
- * Copyright 2019 Google LLC
668
- *
669
- * Licensed under the Apache License, Version 2.0 (the "License");
670
- * you may not use this file except in compliance with the License.
671
- * You may obtain a copy of the License at
672
- *
673
- * http://www.apache.org/licenses/LICENSE-2.0
674
- *
675
- * Unless required by applicable law or agreed to in writing, software
676
- * distributed under the License is distributed on an "AS IS" BASIS,
677
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
678
- * See the License for the specific language governing permissions and
679
- * limitations under the License.
680
- */async function g8({appConfig:e,heartbeatServiceProvider:t},n){const r=v8(e,n),i=Z6(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:AO,appId:e.appId}},l={method:"POST",headers:i,body:JSON.stringify(s)},c=await $O(()=>fetch(r,l));if(c.ok){const d=await c.json();return NO(d)}else throw await jO("Generate Auth Token",c)}function v8(e,{fid:t}){return`${FO(e)}/${t}/authTokens:generate`}/**
681
- * @license
682
- * Copyright 2019 Google LLC
683
- *
684
- * Licensed under the Apache License, Version 2.0 (the "License");
685
- * you may not use this file except in compliance with the License.
686
- * You may obtain a copy of the License at
687
- *
688
- * http://www.apache.org/licenses/LICENSE-2.0
689
- *
690
- * Unless required by applicable law or agreed to in writing, software
691
- * distributed under the License is distributed on an "AS IS" BASIS,
692
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
693
- * See the License for the specific language governing permissions and
694
- * limitations under the License.
695
- */async function nb(e,t=!1){let n;const r=await ag(e.appConfig,o=>{if(!GO(o))throw Fc.create("not-registered");const s=o.authToken;if(!t&&b8(s))return o;if(s.requestStatus===1)return n=m8(e,t),o;{if(!navigator.onLine)throw Fc.create("app-offline");const l=x8(o);return n=y8(e,l),l}});return n?await n:r.authToken}async function m8(e,t){let n=await g1(e.appConfig);for(;n.authToken.requestStatus===1;)await VO(100),n=await g1(e.appConfig);const r=n.authToken;return r.requestStatus===0?nb(e,t):r}function g1(e){return ag(e,t=>{if(!GO(t))throw Fc.create("not-registered");const n=t.authToken;return S8(n)?Object.assign(Object.assign({},t),{authToken:{requestStatus:0}}):t})}async function y8(e,t){try{const n=await g8(e,t),r=Object.assign(Object.assign({},t),{authToken:n});return await Op(e.appConfig,r),n}catch(n){if(LO(n)&&(n.customData.serverCode===401||n.customData.serverCode===404))await zO(e.appConfig);else{const r=Object.assign(Object.assign({},t),{authToken:{requestStatus:0}});await Op(e.appConfig,r)}throw n}}function GO(e){return e!==void 0&&e.registrationStatus===2}function b8(e){return e.requestStatus===2&&!w8(e)}function w8(e){const t=Date.now();return t<e.creationTime||e.creationTime+e.expiresIn<t+G6}function x8(e){const t={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},e),{authToken:t})}function S8(e){return e.requestStatus===1&&e.requestTime+IO<Date.now()}/**
696
- * @license
697
- * Copyright 2019 Google LLC
698
- *
699
- * Licensed under the Apache License, Version 2.0 (the "License");
700
- * you may not use this file except in compliance with the License.
701
- * You may obtain a copy of the License at
702
- *
703
- * http://www.apache.org/licenses/LICENSE-2.0
704
- *
705
- * Unless required by applicable law or agreed to in writing, software
706
- * distributed under the License is distributed on an "AS IS" BASIS,
707
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
708
- * See the License for the specific language governing permissions and
709
- * limitations under the License.
710
- */async function T8(e){const t=e,{installationEntry:n,registrationPromise:r}=await tb(t);return r?r.catch(console.error):nb(t).catch(console.error),n.fid}/**
711
- * @license
712
- * Copyright 2019 Google LLC
713
- *
714
- * Licensed under the Apache License, Version 2.0 (the "License");
715
- * you may not use this file except in compliance with the License.
716
- * You may obtain a copy of the License at
717
- *
718
- * http://www.apache.org/licenses/LICENSE-2.0
719
- *
720
- * Unless required by applicable law or agreed to in writing, software
721
- * distributed under the License is distributed on an "AS IS" BASIS,
722
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
723
- * See the License for the specific language governing permissions and
724
- * limitations under the License.
725
- */async function C8(e,t=!1){const n=e;return await E8(n),(await nb(n,t)).token}async function E8(e){const{registrationPromise:t}=await tb(e);t&&await t}/**
726
- * @license
727
- * Copyright 2019 Google LLC
728
- *
729
- * Licensed under the Apache License, Version 2.0 (the "License");
730
- * you may not use this file except in compliance with the License.
731
- * You may obtain a copy of the License at
732
- *
733
- * http://www.apache.org/licenses/LICENSE-2.0
734
- *
735
- * Unless required by applicable law or agreed to in writing, software
736
- * distributed under the License is distributed on an "AS IS" BASIS,
737
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
738
- * See the License for the specific language governing permissions and
739
- * limitations under the License.
740
- */function k8(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})}/**
741
- * @license
742
- * Copyright 2020 Google LLC
743
- *
744
- * Licensed under the Apache License, Version 2.0 (the "License");
745
- * you may not use this file except in compliance with the License.
746
- * You may obtain a copy of the License at
747
- *
748
- * http://www.apache.org/licenses/LICENSE-2.0
749
- *
750
- * Unless required by applicable law or agreed to in writing, software
751
- * distributed under the License is distributed on an "AS IS" BASIS,
752
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
753
- * See the License for the specific language governing permissions and
754
- * limitations under the License.
755
- */const qO="installations",O8="installations-internal",D8=e=>{const t=e.getProvider("app").getImmediate(),n=k8(t),r=Jy(t,"heartbeat");return{app:t,appConfig:n,heartbeatServiceProvider:r,_delete:()=>Promise.resolve()}},P8=e=>{const t=e.getProvider("app").getImmediate(),n=Jy(t,qO).getImmediate();return{getId:()=>T8(n),getToken:i=>C8(n,i)}};function _8(){Lc(new Rl(qO,D8,"PUBLIC")),Lc(new Rl(O8,P8,"PRIVATE"))}_8();kl(RO,Qy);kl(RO,Qy,"esm2017");/**
756
- * @license
757
- * Copyright 2019 Google LLC
758
- *
759
- * Licensed under the Apache License, Version 2.0 (the "License");
760
- * you may not use this file except in compliance with the License.
761
- * You may obtain a copy of the License at
762
- *
763
- * http://www.apache.org/licenses/LICENSE-2.0
764
- *
765
- * Unless required by applicable law or agreed to in writing, software
766
- * distributed under the License is distributed on an "AS IS" BASIS,
767
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
768
- * See the License for the specific language governing permissions and
769
- * limitations under the License.
770
- */const R8="/firebase-messaging-sw.js",I8="/firebase-cloud-messaging-push-scope",XO="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",A8="https://fcmregistrations.googleapis.com/v1",KO="google.c.a.c_id",M8="google.c.a.c_l",L8="google.c.a.ts",F8="google.c.a.e";var v1;(function(e){e[e.DATA_MESSAGE=1]="DATA_MESSAGE",e[e.DISPLAY_NOTIFICATION=3]="DISPLAY_NOTIFICATION"})(v1||(v1={}));/**
771
- * @license
772
- * Copyright 2018 Google LLC
773
- *
774
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
775
- * in compliance with the License. You may obtain a copy of the License at
776
- *
777
- * http://www.apache.org/licenses/LICENSE-2.0
778
- *
779
- * Unless required by applicable law or agreed to in writing, software distributed under the License
780
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
781
- * or implied. See the License for the specific language governing permissions and limitations under
782
- * the License.
783
- */var $d;(function(e){e.PUSH_RECEIVED="push-received",e.NOTIFICATION_CLICKED="notification-clicked"})($d||($d={}));/**
784
- * @license
785
- * Copyright 2017 Google LLC
786
- *
787
- * Licensed under the Apache License, Version 2.0 (the "License");
788
- * you may not use this file except in compliance with the License.
789
- * You may obtain a copy of the License at
790
- *
791
- * http://www.apache.org/licenses/LICENSE-2.0
792
- *
793
- * Unless required by applicable law or agreed to in writing, software
794
- * distributed under the License is distributed on an "AS IS" BASIS,
795
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
796
- * See the License for the specific language governing permissions and
797
- * limitations under the License.
798
- */function Cu(e){const t=new Uint8Array(e);return btoa(String.fromCharCode(...t)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function N8(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}/**
799
- * @license
800
- * Copyright 2019 Google LLC
801
- *
802
- * Licensed under the Apache License, Version 2.0 (the "License");
803
- * you may not use this file except in compliance with the License.
804
- * You may obtain a copy of the License at
805
- *
806
- * http://www.apache.org/licenses/LICENSE-2.0
807
- *
808
- * Unless required by applicable law or agreed to in writing, software
809
- * distributed under the License is distributed on an "AS IS" BASIS,
810
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
811
- * See the License for the specific language governing permissions and
812
- * limitations under the License.
813
- */const Nv="fcm_token_details_db",j8=5,m1="fcm_token_object_Store";async function B8(e){if("databases"in indexedDB&&!(await indexedDB.databases()).map(o=>o.name).includes(Nv))return null;let t=null;return(await ig(Nv,j8,{upgrade:async(r,i,o,s)=>{var l;if(i<2||!r.objectStoreNames.contains(m1))return;const c=s.objectStore(m1),d=await c.index("fcmSenderId").get(e);if(await c.clear(),!!d){if(i===2){const y=d;if(!y.auth||!y.p256dh||!y.endpoint)return;t={token:y.fcmToken,createTime:(l=y.createTime)!==null&&l!==void 0?l:Date.now(),subscriptionOptions:{auth:y.auth,p256dh:y.p256dh,endpoint:y.endpoint,swScope:y.swScope,vapidKey:typeof y.vapidKey=="string"?y.vapidKey:Cu(y.vapidKey)}}}else if(i===3){const y=d;t={token:y.fcmToken,createTime:y.createTime,subscriptionOptions:{auth:Cu(y.auth),p256dh:Cu(y.p256dh),endpoint:y.endpoint,swScope:y.swScope,vapidKey:Cu(y.vapidKey)}}}else if(i===4){const y=d;t={token:y.fcmToken,createTime:y.createTime,subscriptionOptions:{auth:Cu(y.auth),p256dh:Cu(y.p256dh),endpoint:y.endpoint,swScope:y.swScope,vapidKey:Cu(y.vapidKey)}}}}}})).close(),await Iv(Nv),await Iv("fcm_vapid_details_db"),await Iv("undefined"),$8(t)?t:null}function $8(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}/**
814
- * @license
815
- * Copyright 2019 Google LLC
816
- *
817
- * Licensed under the Apache License, Version 2.0 (the "License");
818
- * you may not use this file except in compliance with the License.
819
- * You may obtain a copy of the License at
820
- *
821
- * http://www.apache.org/licenses/LICENSE-2.0
822
- *
823
- * Unless required by applicable law or agreed to in writing, software
824
- * distributed under the License is distributed on an "AS IS" BASIS,
825
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
826
- * See the License for the specific language governing permissions and
827
- * limitations under the License.
828
- */const V8="firebase-messaging-database",H8=1,jc="firebase-messaging-store";let jv=null;function rb(){return jv||(jv=ig(V8,H8,{upgrade:(e,t)=>{switch(t){case 0:e.createObjectStore(jc)}}})),jv}async function ZO(e){const t=ob(e),r=await(await rb()).transaction(jc).objectStore(jc).get(t);if(r)return r;{const i=await B8(e.appConfig.senderId);if(i)return await ib(e,i),i}}async function ib(e,t){const n=ob(e),i=(await rb()).transaction(jc,"readwrite");return await i.objectStore(jc).put(t,n),await i.done,t}async function U8(e){const t=ob(e),r=(await rb()).transaction(jc,"readwrite");await r.objectStore(jc).delete(t),await r.done}function ob({appConfig:e}){return e.appId}/**
829
- * @license
830
- * Copyright 2017 Google LLC
831
- *
832
- * Licensed under the Apache License, Version 2.0 (the "License");
833
- * you may not use this file except in compliance with the License.
834
- * You may obtain a copy of the License at
835
- *
836
- * http://www.apache.org/licenses/LICENSE-2.0
837
- *
838
- * Unless required by applicable law or agreed to in writing, software
839
- * distributed under the License is distributed on an "AS IS" BASIS,
840
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
841
- * See the License for the specific language governing permissions and
842
- * limitations under the License.
843
- */const W8={"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."},Ni=new rg("messaging","Messaging",W8);/**
844
- * @license
845
- * Copyright 2019 Google LLC
846
- *
847
- * Licensed under the Apache License, Version 2.0 (the "License");
848
- * you may not use this file except in compliance with the License.
849
- * You may obtain a copy of the License at
850
- *
851
- * http://www.apache.org/licenses/LICENSE-2.0
852
- *
853
- * Unless required by applicable law or agreed to in writing, software
854
- * distributed under the License is distributed on an "AS IS" BASIS,
855
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
856
- * See the License for the specific language governing permissions and
857
- * limitations under the License.
858
- */async function z8(e,t){const n=await sb(e),r=QO(t),i={method:"POST",headers:n,body:JSON.stringify(r)};let o;try{o=await(await fetch(ab(e.appConfig),i)).json()}catch(s){throw Ni.create("token-subscribe-failed",{errorInfo:s==null?void 0:s.toString()})}if(o.error){const s=o.error.message;throw Ni.create("token-subscribe-failed",{errorInfo:s})}if(!o.token)throw Ni.create("token-subscribe-no-token");return o.token}async function Y8(e,t){const n=await sb(e),r=QO(t.subscriptionOptions),i={method:"PATCH",headers:n,body:JSON.stringify(r)};let o;try{o=await(await fetch(`${ab(e.appConfig)}/${t.token}`,i)).json()}catch(s){throw Ni.create("token-update-failed",{errorInfo:s==null?void 0:s.toString()})}if(o.error){const s=o.error.message;throw Ni.create("token-update-failed",{errorInfo:s})}if(!o.token)throw Ni.create("token-update-no-token");return o.token}async function JO(e,t){const r={method:"DELETE",headers:await sb(e)};try{const o=await(await fetch(`${ab(e.appConfig)}/${t}`,r)).json();if(o.error){const s=o.error.message;throw Ni.create("token-unsubscribe-failed",{errorInfo:s})}}catch(i){throw Ni.create("token-unsubscribe-failed",{errorInfo:i==null?void 0:i.toString()})}}function ab({projectId:e}){return`${A8}/projects/${e}/registrations`}async function sb({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 QO({p256dh:e,auth:t,endpoint:n,vapidKey:r}){const i={web:{endpoint:n,auth:t,p256dh:e}};return r!==XO&&(i.web.applicationPubKey=r),i}/**
859
- * @license
860
- * Copyright 2019 Google LLC
861
- *
862
- * Licensed under the Apache License, Version 2.0 (the "License");
863
- * you may not use this file except in compliance with the License.
864
- * You may obtain a copy of the License at
865
- *
866
- * http://www.apache.org/licenses/LICENSE-2.0
867
- *
868
- * Unless required by applicable law or agreed to in writing, software
869
- * distributed under the License is distributed on an "AS IS" BASIS,
870
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
871
- * See the License for the specific language governing permissions and
872
- * limitations under the License.
873
- */const G8=7*24*60*60*1e3;async function q8(e){const t=await Z8(e.swRegistration,e.vapidKey),n={vapidKey:e.vapidKey,swScope:e.swRegistration.scope,endpoint:t.endpoint,auth:Cu(t.getKey("auth")),p256dh:Cu(t.getKey("p256dh"))},r=await ZO(e.firebaseDependencies);if(r){if(J8(r.subscriptionOptions,n))return Date.now()>=r.createTime+G8?K8(e,{token:r.token,createTime:Date.now(),subscriptionOptions:n}):r.token;try{await JO(e.firebaseDependencies,r.token)}catch(i){console.warn(i)}return y1(e.firebaseDependencies,n)}else return y1(e.firebaseDependencies,n)}async function X8(e){const t=await ZO(e.firebaseDependencies);t&&(await JO(e.firebaseDependencies,t.token),await U8(e.firebaseDependencies));const n=await e.swRegistration.pushManager.getSubscription();return n?n.unsubscribe():!0}async function K8(e,t){try{const n=await Y8(e.firebaseDependencies,t),r=Object.assign(Object.assign({},t),{token:n,createTime:Date.now()});return await ib(e.firebaseDependencies,r),n}catch(n){throw await X8(e),n}}async function y1(e,t){const r={token:await z8(e,t),createTime:Date.now(),subscriptionOptions:t};return await ib(e,r),r.token}async function Z8(e,t){const n=await e.pushManager.getSubscription();return n||e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:N8(t)})}function J8(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}/**
874
- * @license
875
- * Copyright 2020 Google LLC
876
- *
877
- * Licensed under the Apache License, Version 2.0 (the "License");
878
- * you may not use this file except in compliance with the License.
879
- * You may obtain a copy of the License at
880
- *
881
- * http://www.apache.org/licenses/LICENSE-2.0
882
- *
883
- * Unless required by applicable law or agreed to in writing, software
884
- * distributed under the License is distributed on an "AS IS" BASIS,
885
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
886
- * See the License for the specific language governing permissions and
887
- * limitations under the License.
888
- */function b1(e){const t={from:e.from,collapseKey:e.collapse_key,messageId:e.fcmMessageId};return Q8(t,e),e9(t,e),t9(t,e),t}function Q8(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 e9(e,t){t.data&&(e.data=t.data)}function t9(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 l=(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;l&&(e.fcmOptions.link=l);const c=(s=t.fcmOptions)===null||s===void 0?void 0:s.analytics_label;c&&(e.fcmOptions.analyticsLabel=c)}/**
889
- * @license
890
- * Copyright 2019 Google LLC
891
- *
892
- * Licensed under the Apache License, Version 2.0 (the "License");
893
- * you may not use this file except in compliance with the License.
894
- * You may obtain a copy of the License at
895
- *
896
- * http://www.apache.org/licenses/LICENSE-2.0
897
- *
898
- * Unless required by applicable law or agreed to in writing, software
899
- * distributed under the License is distributed on an "AS IS" BASIS,
900
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
901
- * See the License for the specific language governing permissions and
902
- * limitations under the License.
903
- */function n9(e){return typeof e=="object"&&!!e&&KO in e}/**
904
- * @license
905
- * Copyright 2019 Google LLC
906
- *
907
- * Licensed under the Apache License, Version 2.0 (the "License");
908
- * you may not use this file except in compliance with the License.
909
- * You may obtain a copy of the License at
910
- *
911
- * http://www.apache.org/licenses/LICENSE-2.0
912
- *
913
- * Unless required by applicable law or agreed to in writing, software
914
- * distributed under the License is distributed on an "AS IS" BASIS,
915
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
916
- * See the License for the specific language governing permissions and
917
- * limitations under the License.
918
- */eD("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o");eD("AzSCbw63g1R0nCw85jG8","Iaya3yLKwmgvh7cF0q4");function eD(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("")}/**
919
- * @license
920
- * Copyright 2019 Google LLC
921
- *
922
- * Licensed under the Apache License, Version 2.0 (the "License");
923
- * you may not use this file except in compliance with the License.
924
- * You may obtain a copy of the License at
925
- *
926
- * http://www.apache.org/licenses/LICENSE-2.0
927
- *
928
- * Unless required by applicable law or agreed to in writing, software
929
- * distributed under the License is distributed on an "AS IS" BASIS,
930
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
931
- * See the License for the specific language governing permissions and
932
- * limitations under the License.
933
- */function r9(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 Ni.create("missing-app-config-values",{valueName:e})}/**
934
- * @license
935
- * Copyright 2020 Google LLC
936
- *
937
- * Licensed under the Apache License, Version 2.0 (the "License");
938
- * you may not use this file except in compliance with the License.
939
- * You may obtain a copy of the License at
940
- *
941
- * http://www.apache.org/licenses/LICENSE-2.0
942
- *
943
- * Unless required by applicable law or agreed to in writing, software
944
- * distributed under the License is distributed on an "AS IS" BASIS,
945
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
946
- * See the License for the specific language governing permissions and
947
- * limitations under the License.
948
- */class i9{constructor(t,n,r){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroundMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;const i=r9(t);this.firebaseDependencies={app:t,appConfig:i,installations:n,analyticsProvider:r}}_delete(){return Promise.resolve()}}/**
949
- * @license
950
- * Copyright 2020 Google LLC
951
- *
952
- * Licensed under the Apache License, Version 2.0 (the "License");
953
- * you may not use this file except in compliance with the License.
954
- * You may obtain a copy of the License at
955
- *
956
- * http://www.apache.org/licenses/LICENSE-2.0
957
- *
958
- * Unless required by applicable law or agreed to in writing, software
959
- * distributed under the License is distributed on an "AS IS" BASIS,
960
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
961
- * See the License for the specific language governing permissions and
962
- * limitations under the License.
963
- */async function o9(e){try{e.swRegistration=await navigator.serviceWorker.register(R8,{scope:I8}),e.swRegistration.update().catch(()=>{})}catch(t){throw Ni.create("failed-service-worker-registration",{browserErrorMessage:t==null?void 0:t.message})}}/**
964
- * @license
965
- * Copyright 2020 Google LLC
966
- *
967
- * Licensed under the Apache License, Version 2.0 (the "License");
968
- * you may not use this file except in compliance with the License.
969
- * You may obtain a copy of the License at
970
- *
971
- * http://www.apache.org/licenses/LICENSE-2.0
972
- *
973
- * Unless required by applicable law or agreed to in writing, software
974
- * distributed under the License is distributed on an "AS IS" BASIS,
975
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
976
- * See the License for the specific language governing permissions and
977
- * limitations under the License.
978
- */async function a9(e,t){if(!t&&!e.swRegistration&&await o9(e),!(!t&&e.swRegistration)){if(!(t instanceof ServiceWorkerRegistration))throw Ni.create("invalid-sw-registration");e.swRegistration=t}}/**
979
- * @license
980
- * Copyright 2020 Google LLC
981
- *
982
- * Licensed under the Apache License, Version 2.0 (the "License");
983
- * you may not use this file except in compliance with the License.
984
- * You may obtain a copy of the License at
985
- *
986
- * http://www.apache.org/licenses/LICENSE-2.0
987
- *
988
- * Unless required by applicable law or agreed to in writing, software
989
- * distributed under the License is distributed on an "AS IS" BASIS,
990
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
991
- * See the License for the specific language governing permissions and
992
- * limitations under the License.
993
- */async function s9(e,t){t?e.vapidKey=t:e.vapidKey||(e.vapidKey=XO)}/**
994
- * @license
995
- * Copyright 2020 Google LLC
996
- *
997
- * Licensed under the Apache License, Version 2.0 (the "License");
998
- * you may not use this file except in compliance with the License.
999
- * You may obtain a copy of the License at
1000
- *
1001
- * http://www.apache.org/licenses/LICENSE-2.0
1002
- *
1003
- * Unless required by applicable law or agreed to in writing, software
1004
- * distributed under the License is distributed on an "AS IS" BASIS,
1005
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1006
- * See the License for the specific language governing permissions and
1007
- * limitations under the License.
1008
- */async function tD(e,t){if(!navigator)throw Ni.create("only-available-in-window");if(Notification.permission==="default"&&await Notification.requestPermission(),Notification.permission!=="granted")throw Ni.create("permission-blocked");return await s9(e,t==null?void 0:t.vapidKey),await a9(e,t==null?void 0:t.serviceWorkerRegistration),q8(e)}/**
1009
- * @license
1010
- * Copyright 2019 Google LLC
1011
- *
1012
- * Licensed under the Apache License, Version 2.0 (the "License");
1013
- * you may not use this file except in compliance with the License.
1014
- * You may obtain a copy of the License at
1015
- *
1016
- * http://www.apache.org/licenses/LICENSE-2.0
1017
- *
1018
- * Unless required by applicable law or agreed to in writing, software
1019
- * distributed under the License is distributed on an "AS IS" BASIS,
1020
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1021
- * See the License for the specific language governing permissions and
1022
- * limitations under the License.
1023
- */async function u9(e,t,n){const r=l9(t);(await e.firebaseDependencies.analyticsProvider.get()).logEvent(r,{message_id:n[KO],message_name:n[M8],message_time:n[L8],message_device_time:Math.floor(Date.now()/1e3)})}function l9(e){switch(e){case $d.NOTIFICATION_CLICKED:return"notification_open";case $d.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}/**
1024
- * @license
1025
- * Copyright 2017 Google LLC
1026
- *
1027
- * Licensed under the Apache License, Version 2.0 (the "License");
1028
- * you may not use this file except in compliance with the License.
1029
- * You may obtain a copy of the License at
1030
- *
1031
- * http://www.apache.org/licenses/LICENSE-2.0
1032
- *
1033
- * Unless required by applicable law or agreed to in writing, software
1034
- * distributed under the License is distributed on an "AS IS" BASIS,
1035
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1036
- * See the License for the specific language governing permissions and
1037
- * limitations under the License.
1038
- */async function c9(e,t){const n=t.data;if(!n.isFirebaseMessaging)return;e.onMessageHandler&&n.messageType===$d.PUSH_RECEIVED&&(typeof e.onMessageHandler=="function"?e.onMessageHandler(b1(n)):e.onMessageHandler.next(b1(n)));const r=n.data;n9(r)&&r[F8]==="1"&&await u9(e,n.messageType,r)}const w1="@firebase/messaging",x1="0.12.6";/**
1039
- * @license
1040
- * Copyright 2020 Google LLC
1041
- *
1042
- * Licensed under the Apache License, Version 2.0 (the "License");
1043
- * you may not use this file except in compliance with the License.
1044
- * You may obtain a copy of the License at
1045
- *
1046
- * http://www.apache.org/licenses/LICENSE-2.0
1047
- *
1048
- * Unless required by applicable law or agreed to in writing, software
1049
- * distributed under the License is distributed on an "AS IS" BASIS,
1050
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1051
- * See the License for the specific language governing permissions and
1052
- * limitations under the License.
1053
- */const f9=e=>{const t=new i9(e.getProvider("app").getImmediate(),e.getProvider("installations-internal").getImmediate(),e.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",n=>c9(t,n)),t},d9=e=>{const t=e.getProvider("messaging").getImmediate();return{getToken:r=>tD(t,r)}};function h9(){Lc(new Rl("messaging",f9,"PUBLIC")),Lc(new Rl("messaging-internal",d9,"PRIVATE")),kl(w1,x1),kl(w1,x1,"esm2017")}/**
1054
- * @license
1055
- * Copyright 2020 Google LLC
1056
- *
1057
- * Licensed under the Apache License, Version 2.0 (the "License");
1058
- * you may not use this file except in compliance with the License.
1059
- * You may obtain a copy of the License at
1060
- *
1061
- * http://www.apache.org/licenses/LICENSE-2.0
1062
- *
1063
- * Unless required by applicable law or agreed to in writing, software
1064
- * distributed under the License is distributed on an "AS IS" BASIS,
1065
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1066
- * See the License for the specific language governing permissions and
1067
- * limitations under the License.
1068
- */async function p9(){try{await EO()}catch{return!1}return typeof window<"u"&&CO()&&L4()&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}/**
1069
- * @license
1070
- * Copyright 2020 Google LLC
1071
- *
1072
- * Licensed under the Apache License, Version 2.0 (the "License");
1073
- * you may not use this file except in compliance with the License.
1074
- * You may obtain a copy of the License at
1075
- *
1076
- * http://www.apache.org/licenses/LICENSE-2.0
1077
- *
1078
- * Unless required by applicable law or agreed to in writing, software
1079
- * distributed under the License is distributed on an "AS IS" BASIS,
1080
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1081
- * See the License for the specific language governing permissions and
1082
- * limitations under the License.
1083
- */function g9(e,t){if(!navigator)throw Ni.create("only-available-in-window");return e.onMessageHandler=t,()=>{e.onMessageHandler=null}}/**
1084
- * @license
1085
- * Copyright 2017 Google LLC
1086
- *
1087
- * Licensed under the Apache License, Version 2.0 (the "License");
1088
- * you may not use this file except in compliance with the License.
1089
- * You may obtain a copy of the License at
1090
- *
1091
- * http://www.apache.org/licenses/LICENSE-2.0
1092
- *
1093
- * Unless required by applicable law or agreed to in writing, software
1094
- * distributed under the License is distributed on an "AS IS" BASIS,
1095
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1096
- * See the License for the specific language governing permissions and
1097
- * limitations under the License.
1098
- */function v9(e=M6()){return p9().then(t=>{if(!t)throw Ni.create("unsupported-browser")},t=>{throw Ni.create("indexed-db-unsupported")}),Jy(Ky(e),"messaging").getImmediate()}async function m9(e,t){return e=Ky(e),tD(e,t)}function y9(e,t){return e=Ky(e),g9(e,t)}h9();const b9={"subscription-diaglog":"_subscription-diaglog_1bysb_2","subscription-container":"_subscription-container_1bysb_15","subscription-title":"_subscription-title_1bysb_25","subscription-text":"_subscription-text_1bysb_34","subscription-btn__container":"_subscription-btn__container_1bysb_38","btn-success":"_btn-success_1bysb_44","btn-cancel":"_btn-cancel_1bysb_45"},w9={"notification-massage_container":"_notification-massage_container_ql4az_1","notification-name":"_notification-name_ql4az_18","notification-message_service":"_notification-message_service_ql4az_23","notification-message_button-close":"_notification-message_button-close_ql4az_27"};exports.AuthContext=Km;exports.AuthProvider=PM;exports.C=pO;exports.CustomOpenList=F1;exports.CustomOpenListProvider=pA;exports.DateRangePicker=C4;exports.ERROR_MESSAGE=I1;exports.GlobalMenu=c4;exports.IconComponent=d4;exports.IconComponent$1=lO;exports.InfiniteLoader=w4;exports.IoIosStarOutline=tO;exports.IoMdStar=nO;exports.Language=Xm;exports.LogoutConfirmModal=C1;exports.PropTypes=Oa;exports.Q=RL;exports.SaasThemeProvider=OA;exports.StyleWrapper=V1;exports.TranslationProvider=NM;exports._=p4;exports._assertThisInitialized=Ou;exports._extends=Lf;exports._extends$1=l5;exports._inheritsLoose=iO;exports._objectWithoutPropertiesLoose=qm;exports.activeStyles=rO;exports.axiosInstance=Ls;exports.clsx=Eu;exports.color=Fi;exports.commonjsGlobal=Ko;exports.createCustomTheme=B1;exports.getAugmentedNamespace=UA;exports.getMessagingInWindow=v9;exports.getToken=m9;exports.handleErrorAxios=L1;exports.initializeApp=DO;exports.lodashExports=mO;exports.login=A1;exports.logout=M1;exports.motion=eO;exports.notify=NL;exports.objectWithoutPropertiesLoose=HA;exports.onMessage=y9;exports.pushError=Ap;exports.pushSuccess=bT;exports.pushWarning=FL;exports.responseInterceptor=hA;exports.search=RM;exports.styles=h4;exports.styles$1=b9;exports.styles$2=w9;exports.styles1=hT;exports.translate=LM;exports.translationConfig=MM;exports.useAuth=_M;exports.useCustomTranslation=AM;exports.useTheme=kA;exports.useTranslation=G1;exports.useTranslation$1=FM;