@ukpc-lib/react 0.12.5 → 0.12.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.
- package/dist/components/FavoriteMenu/components/MenuItem.d.ts +4 -1
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.js +2 -2
- package/dist/index.esm2017-CgX2g4fr.cjs +1078 -0
- package/dist/{index.esm2017-Bj3cPj4Z.js → index.esm2017-D8jHeHt_.js} +12959 -12784
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +1 -1
- package/package.json +6 -4
- package/web-components-bundle/access-denied/index.js +2 -2
- package/web-components-bundle/base-breadcrumbs/index.js +2 -2
- package/web-components-bundle/favorite-menu/index.js +4 -4
- package/web-components-bundle/global-menu/index.js +4 -4
- package/web-components-bundle/global-topbar/index.js +6 -6
- package/web-components-bundle/has-permission/index.js +3 -3
- package/web-components-bundle/{index-CI-NA37P.js → index-B4uOLjGK.js} +1 -1
- package/web-components-bundle/{index-DmH0iKVL.js → index-BSRZKjgR.js} +22990 -22817
- package/web-components-bundle/{index-Cx0zTfOC.js → index-BSe1av43.js} +1 -1
- package/web-components-bundle/{index-DE6E5mlm.js → index-BTy-Dpix.js} +536 -536
- package/web-components-bundle/page-not-found/index.js +2 -2
- package/web-components-bundle/{react-to-web-component-D7SoYMky.js → react-to-web-component-CXwKHjZr.js} +1527 -1535
- package/web-components-bundle/{react-toastify.esm-Y1WvK90L.js → react-toastify.esm-CrTD7cpE.js} +1 -1
- package/web-components-bundle/toast-config/index.js +2 -2
- package/web-components-bundle/toast-config-notification/index.js +2 -2
- package/dist/components/FavoriteMenu/data.json.d.ts +0 -2414
- package/dist/index.esm2017-CW5yxWcM.cjs +0 -1078
|
@@ -1,1078 +0,0 @@
|
|
|
1
|
-
var fY=require("./index.css");const Ne=require("react/jsx-runtime"),q=require("react"),BI=require("axios"),$I=require("moment"),is=require("@mui/material"),xd=require("react-query");require("@r2wc/react-to-web-component");const Tp=require("react-router-dom"),Lm=require("react-dom");function VI(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 HI(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 bn=VI(q),UI=".modal-overlay{z-index:1300;position:fixed;top:0;right:0;bottom:0;left:0;background:#00000041;--tw-backdrop-blur: blur(4px);justify-content:center;align-items:center;-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.modal-title{font-size:1.25rem;line-height:1.75rem;color:#e01b00;font-weight:500}.modal-footer{display:flex;justify-content:space-between;width:80%}.modal-container{background:#fff;-webkit-backdrop-filter:blur(4.5px);backdrop-filter:blur(4.5px);display:flex;padding:32px 24px 40px;flex-direction:column;align-items:center;gap:24px;align-self:stretch;width:500px;height:204px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:.5rem}.modal-button{border-radius:3px;border:1px solid #ddd;background:#ddd;padding:8px 32px;font-size:14px;transition:background-color .25s cubic-bezier(.4,0,.2,1) 0ms,box-shadow .25s cubic-bezier(.4,0,.2,1) 0ms,border-color .25s cubic-bezier(.4,0,.2,1) 0ms,color .25s cubic-bezier(.4,0,.2,1) 0ms}.cancel-btn:hover{background:#c5c5c5}.confirm-btn{background:#e01b00!important}.confirm-btn:hover{background:#be1700!important}.text-white{color:#fff}.text-sm{font-size:.875rem;line-height:1.25rem}";function E1({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 Ne.jsxs(Ne.Fragment,{children:[Ne.jsx("style",{type:"text/css",children:UI}),Ne.jsx("div",{onClick:r,className:"modal-overlay",id:"modal-wrapper",children:Ne.jsxs("div",{className:"modal-container",children:[Ne.jsx("h3",{className:"modal-title",children:"Log out"}),Ne.jsx("p",{className:"text-sm",children:"Are you sure want to log out?"}),Ne.jsxs("div",{className:"modal-footer",children:[Ne.jsx("button",{className:"modal-button cancel-btn",onClick:t,children:"Cancel"}),Ne.jsx("button",{onClick:n,className:"text-white confirm-btn modal-button",children:"Confirm"})]})]})})]})}const Wr={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 qo(e){"@babel/helpers - typeof";return qo=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},qo(e)}function Zo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WI(e,t){if(qo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(qo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function k1(e){var t=WI(e,"string");return qo(t)=="symbol"?t:t+""}function Kb(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,k1(r.key),r)}}function Jo(e,t,n){return t&&Kb(e.prototype,t),n&&Kb(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function wl(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qh(e,t){return qh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},qh(e,t)}function Cp(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qh(e,t)}function jd(e,t){if(t&&(qo(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wl(e)}function $s(e){return $s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$s(e)}function Vs(e,t,n){return(t=k1(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O1(e){if(Array.isArray(e))return e}function zI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Zb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _1(e,t){if(e){if(typeof e=="string")return Zb(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zb(e,t):void 0}}function D1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YI(e){return O1(e)||zI(e)||_1(e)||D1()}function Jb(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 Qb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Jb(Object(n),!0).forEach(function(r){Vs(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jb(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var GI={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)}},qI=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Zo(this,e),this.init(t,n)}return Jo(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||GI,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,Qb(Qb({},{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}(),Fs=new qI,wu=function(){function e(){Zo(this,e),this.observers={}}return Jo(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(f){f.apply(void 0,i)})}if(this.observers["*"]){var u=[].concat(this.observers["*"]);u.forEach(function(f){f.apply(f,[n].concat(i))})}}}]),e}();function qf(){var e,t,n=new Promise(function(r,i){e=r,t=i});return n.resolve=e,n.reject=t,n}function e0(e){return e==null?"":""+e}function XI(e,t,n){e.forEach(function(r){t[r]&&(n[r]=t[r])})}function Fm(e,t,n){function r(u){return u&&u.indexOf("###")>-1?u.replace(/###/g,"."):u}function i(){return!e||typeof e=="string"}for(var o=typeof t!="string"?[].concat(t):t.split(".");o.length>1;){if(i())return{};var s=r(o.shift());!e[s]&&n&&(e[s]=new n),Object.prototype.hasOwnProperty.call(e,s)?e=e[s]:e={}}return i()?{}:{obj:e,k:r(o.shift())}}function t0(e,t,n){var r=Fm(e,t,Object),i=r.obj,o=r.k;i[o]=n}function KI(e,t,n,r){var i=Fm(e,t,Object),o=i.obj,s=i.k;o[s]=o[s]||[],o[s].push(n)}function Xh(e,t){var n=Fm(e,t),r=n.obj,i=n.k;if(r)return r[i]}function ZI(e,t,n){var r=Xh(e,n);return r!==void 0?r:Xh(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 rf(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var JI={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function QI(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return JI[t]}):e}var Ep=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,eA=[" ",",","?","!",";"];function tA(e,t,n){t=t||"",n=n||"";var r=eA.filter(function(u){return t.indexOf(u)<0&&n.indexOf(u)<0});if(r.length===0)return!0;var i=new RegExp("(".concat(r.map(function(u){return u==="?"?"\\?":u}).join("|"),")")),o=!i.test(e);if(!o){var s=e.indexOf(n);s>0&&!i.test(e.substring(0,s))&&(o=!0)}return o}function Kh(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),i=e,o=0;o<r.length;++o){if(!i||typeof i[r[o]]=="string"&&o+1<r.length)return;if(i[r[o]]===void 0){for(var s=2,u=r.slice(o,o+s).join(n),f=i[u];f===void 0&&r.length>o+s;)s++,u=r.slice(o,o+s).join(n),f=i[u];if(f===void 0)return;if(f===null)return null;if(t.endsWith(u)){if(typeof f=="string")return f;if(u&&typeof f[u]=="string")return f[u]}var p=r.slice(o+s).join(n);return p?Kh(f,p,n):void 0}i=i[r[o]]}return i}}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 lh(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){Vs(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}function nA(e){var t=rA();return function(){var r=$s(e),i;if(t){var o=$s(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return jd(this,i)}}function rA(){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 iA=function(e){Cp(n,e);var t=nA(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Zo(this,n),i=t.call(this),Ep&&wu.call(wl(i)),i.data=r||{},i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.options.ignoreJSONStructure===void 0&&(i.options.ignoreJSONStructure=!0),i}return Jo(n,[{key:"addNamespaces",value:function(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}},{key:"removeNamespaces",value:function(i){var o=this.options.ns.indexOf(i);o>-1&&this.options.ns.splice(o,1)}},{key:"getResource",value:function(i,o,s){var u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},f=u.keySeparator!==void 0?u.keySeparator:this.options.keySeparator,p=u.ignoreJSONStructure!==void 0?u.ignoreJSONStructure:this.options.ignoreJSONStructure,y=[i,o];s&&typeof s!="string"&&(y=y.concat(s)),s&&typeof s=="string"&&(y=y.concat(f?s.split(f):s)),i.indexOf(".")>-1&&(y=i.split("."));var g=Xh(this.data,y);return g||!p||typeof s!="string"?g:Kh(this.data&&this.data[i]&&this.data[i][o],s,f)}},{key:"addResource",value:function(i,o,s,u){var f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},p=f.keySeparator!==void 0?f.keySeparator:this.options.keySeparator,y=[i,o];s&&(y=y.concat(p?s.split(p):s)),i.indexOf(".")>-1&&(y=i.split("."),u=o,o=y[1]),this.addNamespaces(o),t0(this.data,y,u),f.silent||this.emit("added",i,o,s,u)}},{key:"addResources",value:function(i,o,s){var u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var f in s)(typeof s[f]=="string"||Object.prototype.toString.apply(s[f])==="[object Array]")&&this.addResource(i,o,f,s[f],{silent:!0});u.silent||this.emit("added",i,o,s)}},{key:"addResourceBundle",value:function(i,o,s,u,f){var p=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},y=[i,o];i.indexOf(".")>-1&&(y=i.split("."),u=s,s=o,o=y[1]),this.addNamespaces(o);var g=Xh(this.data,y)||{};u?P1(g,s,f):g=lh(lh({},g),s),t0(this.data,y,g),p.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"?lh(lh({},{}),this.getResource(i,o)):this.getResource(i,o)}},{key:"getDataByLanguage",value:function(i){return this.data[i]}},{key:"hasLanguageSomeTranslations",value:function(i){var o=this.getDataByLanguage(i),s=o&&Object.keys(o)||[];return!!s.find(function(u){return o[u]&&Object.keys(o[u]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(wu),R1={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,n,r,i,o){var s=this;return t.forEach(function(u){s.processors[u]&&(n=s.processors[u].process(n,r,i,o))}),n}};function r0(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 Mi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?r0(Object(n),!0).forEach(function(r){Vs(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function oA(e){var t=aA();return function(){var r=$s(e),i;if(t){var o=$s(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return jd(this,i)}}function aA(){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 i0={},o0=function(e){Cp(n,e);var t=oA(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Zo(this,n),i=t.call(this),Ep&&wu.call(wl(i)),XI(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,wl(i)),i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.logger=Fs.create("translator"),i}return Jo(n,[{key:"changeLanguage",value:function(i){i&&(this.language=i)}},{key:"exists",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(i==null)return!1;var s=this.resolve(i,o);return s&&s.res!==void 0}},{key:"extractFromKey",value:function(i,o){var s=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;s===void 0&&(s=":");var u=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,f=o.ns||this.options.defaultNS||[],p=s&&i.indexOf(s)>-1,y=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!tA(i,s,u);if(p&&!y){var g=i.match(this.interpolator.nestingRegexp);if(g&&g.length>0)return{key:i,namespaces:f};var x=i.split(s);(s!==u||s===u&&this.options.ns.indexOf(x[0])>-1)&&(f=x.shift()),i=x.join(u)}return typeof f=="string"&&(f=[f]),{key:i,namespaces:f}}},{key:"translate",value:function(i,o,s){var u=this;if(qo(o)!=="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),qo(o)==="object"&&(o=Mi({},o)),o||(o={}),i==null)return"";Array.isArray(i)||(i=[String(i)]);var f=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,p=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,y=this.extractFromKey(i[i.length-1],o),g=y.key,x=y.namespaces,C=x[x.length-1],D=o.lng||this.language,A=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(D&&D.toLowerCase()==="cimode"){if(A){var M=o.nsSeparator||this.options.nsSeparator;return f?{res:"".concat(C).concat(M).concat(g),usedKey:g,exactUsedKey:g,usedLng:D,usedNS:C}:"".concat(C).concat(M).concat(g)}return f?{res:g,usedKey:g,exactUsedKey:g,usedLng:D,usedNS:C}:g}var I=this.resolve(i,o),H=I&&I.res,U=I&&I.usedKey||g,Q=I&&I.exactUsedKey||g,Z=Object.prototype.toString.apply(H),ce=["[object Number]","[object Function]","[object RegExp]"],T=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,se=!this.i18nFormat||this.i18nFormat.handleAsObject,re=typeof H!="string"&&typeof H!="boolean"&&typeof H!="number";if(se&&H&&re&&ce.indexOf(Z)<0&&!(typeof T=="string"&&Z==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var Pe=this.options.returnedObjectHandler?this.options.returnedObjectHandler(U,H,Mi(Mi({},o),{},{ns:x})):"key '".concat(g," (").concat(this.language,")' returned an object instead of string.");return f?(I.res=Pe,I):Pe}if(p){var He=Z==="[object Array]",Ue=He?[]:{},Qe=He?Q:U;for(var Ke in H)if(Object.prototype.hasOwnProperty.call(H,Ke)){var he="".concat(Qe).concat(p).concat(Ke);Ue[Ke]=this.translate(he,Mi(Mi({},o),{joinArrays:!1,ns:x})),Ue[Ke]===he&&(Ue[Ke]=H[Ke])}H=Ue}}else if(se&&typeof T=="string"&&Z==="[object Array]")H=H.join(T),H&&(H=this.extendTranslation(H,i,o,s));else{var me=!1,Le=!1,Ge=o.count!==void 0&&typeof o.count!="string",tt=n.hasDefaultValue(o),xe=Ge?this.pluralResolver.getSuffix(D,o.count,o):"",Ce=o["defaultValue".concat(xe)]||o.defaultValue;!this.isValidLookup(H)&&tt&&(me=!0,H=Ce),this.isValidLookup(H)||(Le=!0,H=g);var $e=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,je=$e&&Le?void 0:H,ke=tt&&Ce!==H&&this.options.updateMissing;if(Le||me||ke){if(this.logger.log(ke?"updateKey":"missingKey",D,C,g,ke?Ce:H),p){var De=this.resolve(g,Mi(Mi({},o),{},{keySeparator:!1}));De&&De.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 Fe=[],rt=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&rt&&rt[0])for(var at=0;at<rt.length;at++)Fe.push(rt[at]);else this.options.saveMissingTo==="all"?Fe=this.languageUtils.toResolveHierarchy(o.lng||this.language):Fe.push(o.lng||this.language);var ht=function(mt,et,At){var Lt=tt&&At!==H?At:je;u.options.missingKeyHandler?u.options.missingKeyHandler(mt,C,et,Lt,ke,o):u.backendConnector&&u.backendConnector.saveMissing&&u.backendConnector.saveMissing(mt,C,et,Lt,ke,o),u.emit("missingKey",mt,C,et,H)};this.options.saveMissing&&(this.options.saveMissingPlurals&&Ge?Fe.forEach(function(lt){u.pluralResolver.getSuffixes(lt,o).forEach(function(mt){ht([lt],g+mt,o["defaultValue".concat(mt)]||Ce)})}):ht(Fe,g,Ce))}H=this.extendTranslation(H,i,o,I,s),Le&&H===g&&this.options.appendNamespaceToMissingKey&&(H="".concat(C,":").concat(g)),(Le||me)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?H=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(C,":").concat(g):g,me?H:void 0):H=this.options.parseMissingKeyHandler(H))}return f?(I.res=H,I):H}},{key:"extendTranslation",value:function(i,o,s,u,f){var p=this;if(this.i18nFormat&&this.i18nFormat.parse)i=this.i18nFormat.parse(i,Mi(Mi({},this.options.interpolation.defaultVariables),s),u.usedLng,u.usedNS,u.usedKey,{resolved:u});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init(Mi(Mi({},s),{interpolation:Mi(Mi({},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 x=i.match(this.interpolator.nestingRegexp);g=x&&x.length}var C=s.replace&&typeof s.replace!="string"?s.replace:s;if(this.options.interpolation.defaultVariables&&(C=Mi(Mi({},this.options.interpolation.defaultVariables),C)),i=this.interpolator.interpolate(i,C,s.lng||this.language,s),y){var D=i.match(this.interpolator.nestingRegexp),A=D&&D.length;g<A&&(s.nest=!1)}!s.lng&&this.options.compatibilityAPI!=="v1"&&u&&u.res&&(s.lng=u.usedLng),s.nest!==!1&&(i=this.interpolator.nest(i,function(){for(var H=arguments.length,U=new Array(H),Q=0;Q<H;Q++)U[Q]=arguments[Q];return f&&f[0]===U[0]&&!s.context?(p.logger.warn("It seems you are nesting recursively key: ".concat(U[0]," in key: ").concat(o[0])),null):p.translate.apply(p,U.concat([o]))},s)),s.interpolation&&this.interpolator.reset()}var M=s.postProcess||this.options.postProcess,I=typeof M=="string"?[M]:M;return i!=null&&I&&I.length&&s.applyPostProcessor!==!1&&(i=R1.handle(I,i,o,this.options&&this.options.postProcessPassResolved?Mi({i18nResolved:u},s):s,this)),i}},{key:"resolve",value:function(i){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u,f,p,y,g;return typeof i=="string"&&(i=[i]),i.forEach(function(x){if(!o.isValidLookup(u)){var C=o.extractFromKey(x,s),D=C.key;f=D;var A=C.namespaces;o.options.fallbackNS&&(A=A.concat(o.options.fallbackNS));var M=s.count!==void 0&&typeof s.count!="string",I=M&&!s.ordinal&&s.count===0&&o.pluralResolver.shouldUseIntlApi(),H=s.context!==void 0&&(typeof s.context=="string"||typeof s.context=="number")&&s.context!=="",U=s.lngs?s.lngs:o.languageUtils.toResolveHierarchy(s.lng||o.language,s.fallbackLng);A.forEach(function(Q){o.isValidLookup(u)||(g=Q,!i0["".concat(U[0],"-").concat(Q)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(g)&&(i0["".concat(U[0],"-").concat(Q)]=!0,o.logger.warn('key "'.concat(f,'" for languages "').concat(U.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!!!")),U.forEach(function(Z){if(!o.isValidLookup(u)){y=Z;var ce=[D];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(ce,D,Z,Q,s);else{var T;M&&(T=o.pluralResolver.getSuffix(Z,s.count,s));var se="".concat(o.options.pluralSeparator,"zero");if(M&&(ce.push(D+T),I&&ce.push(D+se)),H){var re="".concat(D).concat(o.options.contextSeparator).concat(s.context);ce.push(re),M&&(ce.push(re+T),I&&ce.push(re+se))}}for(var Pe;Pe=ce.pop();)o.isValidLookup(u)||(p=Pe,u=o.getResource(Z,Q,Pe,s))}}))})}}),{res:u,usedKey:f,exactUsedKey:p,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 u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,o,s,u):this.resourceStore.getResource(i,o,s,u)}}],[{key:"hasDefaultValue",value:function(i){var o="defaultValue";for(var s in i)if(Object.prototype.hasOwnProperty.call(i,s)&&o===s.substring(0,o.length)&&i[s]!==void 0)return!0;return!1}}]),n}(wu);function kg(e){return e.charAt(0).toUpperCase()+e.slice(1)}var a0=function(){function e(t){Zo(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Fs.create("languageUtils")}return Jo(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]=kg(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]=kg(i[1].toLowerCase())),r.indexOf(i[2].toLowerCase())>-1&&(i[2]=kg(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}},{key:"isSupportedCode",value:function(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}},{key:"getBestMatchFromCodes",value:function(n){var r=this;if(!n)return null;var i;return n.forEach(function(o){if(!i){var s=r.formatLanguageCode(o);(!r.options.supportedLngs||r.isSupportedCode(s))&&(i=s)}}),!i&&this.options.supportedLngs&&n.forEach(function(o){if(!i){var s=r.getLanguagePartFromCode(o);if(r.isSupportedCode(s))return i=s;i=r.options.supportedLngs.find(function(u){if(u===s)return u;if(!(u.indexOf("-")<0&&s.indexOf("-")<0)&&u.indexOf(s)===0)return u})}}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}},{key:"getFallbackCodes",value:function(n,r){if(!n)return[];if(typeof n=="function"&&(n=n(r)),typeof n=="string"&&(n=[n]),Object.prototype.toString.apply(n)==="[object Array]")return n;if(!r)return n.default||[];var i=n[r];return i||(i=n[this.getScriptPartFromCode(r)]),i||(i=n[this.formatLanguageCode(r)]),i||(i=n[this.getLanguagePartFromCode(r)]),i||(i=n.default),i||[]}},{key:"toResolveHierarchy",value:function(n,r){var i=this,o=this.getFallbackCodes(r||this.options.fallbackLng||[],n),s=[],u=function(p){p&&(i.isSupportedCode(p)?s.push(p):i.logger.warn("rejecting language code not found in supportedLngs: ".concat(p)))};return typeof n=="string"&&n.indexOf("-")>-1?(this.options.load!=="languageOnly"&&u(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&u(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&u(this.getLanguagePartFromCode(n))):typeof n=="string"&&u(this.formatLanguageCode(n)),o.forEach(function(f){s.indexOf(f)<0&&u(i.formatLanguageCode(f))}),s}}]),e}(),sA=[{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}],lA={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}},uA=["v1","v2","v3"],s0={zero:0,one:1,two:2,few:3,many:4,other:5};function cA(){var e={};return sA.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:lA[t.fc]}})}),e}var fA=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Zo(this,e),this.languageUtils=t,this.options=n,this.logger=Fs.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=cA()}return Jo(e,[{key:"addRule",value:function(n,r){this.rules[n]=r}},{key:"getRule",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(n,{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[n]||this.rules[this.languageUtils.getLanguagePartFromCode(n)]}},{key:"needsPlural",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(n,r);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(n,i).map(function(o){return"".concat(r).concat(o)})}},{key:"getSuffixes",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getRule(n,i);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort(function(s,u){return s0[s]-s0[u]}).map(function(s){return"".concat(r.options.prepend).concat(s)}):o.numbers.map(function(s){return r.getSuffix(n,s,i)}):[]}},{key:"getSuffix",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=this.getRule(n,i);return o?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(o.select(r)):this.getSuffixRetroCompatible(o,r):(this.logger.warn("no plural rule found for: ".concat(n)),"")}},{key:"getSuffixRetroCompatible",value:function(n,r){var i=this,o=n.noAbs?n.plurals(r):n.plurals(Math.abs(r)),s=n.numbers[o];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(s===2?s="plural":s===1&&(s=""));var u=function(){return i.options.prepend&&s.toString()?i.options.prepend+s.toString():s.toString()};return this.options.compatibilityJSON==="v1"?s===1?"":typeof s=="number"?"_plural_".concat(s.toString()):u():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?u():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}},{key:"shouldUseIntlApi",value:function(){return!uA.includes(this.options.compatibilityJSON)}}]),e}();function l0(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 Qa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?l0(Object(n),!0).forEach(function(r){Vs(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function u0(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=ZI(e,t,n);return!o&&i&&typeof n=="string"&&(o=Kh(e,n,r),o===void 0&&(o=Kh(t,n,r))),o}var dA=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Zo(this,e),this.logger=Fs.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(n){return n},this.init(t)}return Jo(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:QI,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?rf(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?rf(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?rf(r.nestingPrefix):r.nestingPrefixEscaped||rf("$t("),this.nestingSuffix=r.nestingSuffix?rf(r.nestingSuffix):r.nestingSuffixEscaped||rf(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0?r.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var n="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(n,"g");var r="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(r,"g");var i="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(i,"g")}},{key:"interpolate",value:function(n,r,i,o){var s=this,u,f,p,y=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function g(M){return M.replace(/\$/g,"$$$$")}var x=function(I){if(I.indexOf(s.formatSeparator)<0){var H=u0(r,y,I,s.options.keySeparator,s.options.ignoreJSONStructure);return s.alwaysFormat?s.format(H,void 0,i,Qa(Qa(Qa({},o),r),{},{interpolationkey:I})):H}var U=I.split(s.formatSeparator),Q=U.shift().trim(),Z=U.join(s.formatSeparator).trim();return s.format(u0(r,y,Q,s.options.keySeparator,s.options.ignoreJSONStructure),Z,i,Qa(Qa(Qa({},o),r),{},{interpolationkey:Q}))};this.resetRegExp();var C=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,D=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,A=[{regex:this.regexpUnescape,safeValue:function(I){return g(I)}},{regex:this.regexp,safeValue:function(I){return s.escapeValue?g(s.escape(I)):g(I)}}];return A.forEach(function(M){for(p=0;u=M.regex.exec(n);){var I=u[1].trim();if(f=x(I),f===void 0)if(typeof C=="function"){var H=C(n,u,o);f=typeof H=="string"?H:""}else if(o&&Object.prototype.hasOwnProperty.call(o,I))f="";else if(D){f=u[0];continue}else s.logger.warn("missed to pass in variable ".concat(I," for interpolating ").concat(n)),f="";else typeof f!="string"&&!s.useRawValueToEscape&&(f=e0(f));var U=M.safeValue(f);if(n=n.replace(u[0],U),D?(M.regex.lastIndex+=f.length,M.regex.lastIndex-=u[0].length):M.regex.lastIndex=0,p++,p>=s.maxReplaces)break}}),n}},{key:"nest",value:function(n,r){var i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,u,f;function p(C,D){var A=this.nestingOptionsSeparator;if(C.indexOf(A)<0)return C;var M=C.split(new RegExp("".concat(A,"[ ]*{"))),I="{".concat(M[1]);C=M[0],I=this.interpolate(I,f);var H=I.match(/'/g),U=I.match(/"/g);(H&&H.length%2===0&&!U||U.length%2!==0)&&(I=I.replace(/'/g,'"'));try{f=JSON.parse(I),D&&(f=Qa(Qa({},D),f))}catch(Q){return this.logger.warn("failed parsing options string in nesting for key ".concat(C),Q),"".concat(C).concat(A).concat(I)}return delete f.defaultValue,C}for(;s=this.nestingRegexp.exec(n);){var y=[];f=Qa({},o),f=f.replace&&typeof f.replace!="string"?f.replace:f,f.applyPostProcessor=!1,delete f.defaultValue;var g=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){var x=s[1].split(this.formatSeparator).map(function(C){return C.trim()});s[1]=x.shift(),y=x,g=!0}if(u=r(p.call(this,s[1].trim(),f),f),u&&s[0]===n&&typeof u!="string")return u;typeof u!="string"&&(u=e0(u)),u||(this.logger.warn("missed to resolve ".concat(s[1]," for nesting ").concat(n)),u=""),g&&(u=y.reduce(function(C,D){return i.format(C,D,o.lng,Qa(Qa({},o),{},{interpolationkey:s[1].trim()}))},u.trim())),n=n.replace(s[0],u),this.regexp.lastIndex=0}return n}}]),e}();function c0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function gl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?c0(Object(n),!0).forEach(function(r){Vs(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hA(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var r=e.split("(");t=r[0].toLowerCase().trim();var i=r[1].substring(0,r[1].length-1);if(t==="currency"&&i.indexOf(":")<0)n.currency||(n.currency=i.trim());else if(t==="relativetime"&&i.indexOf(":")<0)n.range||(n.range=i.trim());else{var o=i.split(";");o.forEach(function(s){if(s){var u=s.split(":"),f=YI(u),p=f[0],y=f.slice(1),g=y.join(":").trim().replace(/^'+|'+$/g,"");n[p.trim()]||(n[p.trim()]=g),g==="false"&&(n[p.trim()]=!1),g==="true"&&(n[p.trim()]=!0),isNaN(g)||(n[p.trim()]=parseInt(g,10))}})}}return{formatName:t,formatOptions:n}}function of(e){var t={};return function(r,i,o){var s=i+JSON.stringify(o),u=t[s];return u||(u=e(i,o),t[s]=u),u(r)}}var pA=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Zo(this,e),this.logger=Fs.create("formatter"),this.options=t,this.formats={number:of(function(n,r){var i=new Intl.NumberFormat(n,gl({},r));return function(o){return i.format(o)}}),currency:of(function(n,r){var i=new Intl.NumberFormat(n,gl(gl({},r),{},{style:"currency"}));return function(o){return i.format(o)}}),datetime:of(function(n,r){var i=new Intl.DateTimeFormat(n,gl({},r));return function(o){return i.format(o)}}),relativetime:of(function(n,r){var i=new Intl.RelativeTimeFormat(n,gl({},r));return function(o){return i.format(o,r.range||"day")}}),list:of(function(n,r){var i=new Intl.ListFormat(n,gl({},r));return function(o){return i.format(o)}})},this.init(t)}return Jo(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()]=of(r)}},{key:"format",value:function(n,r,i){var o=this,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=r.split(this.formatSeparator),f=u.reduce(function(p,y){var g=hA(y),x=g.formatName,C=g.formatOptions;if(o.formats[x]){var D=p;try{var A=s&&s.formatParams&&s.formatParams[s.interpolationkey]||{},M=A.locale||A.lng||s.locale||s.lng||i;D=o.formats[x](p,M,gl(gl(gl({},C),s),A))}catch(I){o.logger.warn(I)}return D}else o.logger.warn("there was no format function for ".concat(x));return p},n);return f}}]),e}();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 d0(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){Vs(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 gA(e){var t=vA();return function(){var r=$s(e),i;if(t){var o=$s(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return jd(this,i)}}function vA(){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 mA(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}var yA=function(e){Cp(n,e);var t=gA(n);function n(r,i,o){var s,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Zo(this,n),s=t.call(this),Ep&&wu.call(wl(s)),s.backend=r,s.store=i,s.services=o,s.languageUtils=o.languageUtils,s.options=u,s.logger=Fs.create("backendConnector"),s.waitingReads=[],s.maxParallelReads=u.maxParallelReads||10,s.readingCalls=0,s.maxRetries=u.maxRetries>=0?u.maxRetries:5,s.retryTimeout=u.retryTimeout>=1?u.retryTimeout:350,s.state={},s.queue=[],s.backend&&s.backend.init&&s.backend.init(o,u.backend,u),s}return Jo(n,[{key:"queueLoad",value:function(i,o,s,u){var f=this,p={},y={},g={},x={};return i.forEach(function(C){var D=!0;o.forEach(function(A){var M="".concat(C,"|").concat(A);!s.reload&&f.store.hasResourceBundle(C,A)?f.state[M]=2:f.state[M]<0||(f.state[M]===1?y[M]===void 0&&(y[M]=!0):(f.state[M]=1,D=!1,y[M]===void 0&&(y[M]=!0),p[M]===void 0&&(p[M]=!0),x[A]===void 0&&(x[A]=!0)))}),D||(g[C]=!0)}),(Object.keys(p).length||Object.keys(y).length)&&this.queue.push({pending:y,pendingCount:Object.keys(y).length,loaded:{},errors:[],callback:u}),{toLoad:Object.keys(p),pending:Object.keys(y),toLoadLanguages:Object.keys(g),toLoadNamespaces:Object.keys(x)}}},{key:"loaded",value:function(i,o,s){var u=i.split("|"),f=u[0],p=u[1];o&&this.emit("failedLoading",f,p,o),s&&this.store.addResourceBundle(f,p,s),this.state[i]=o?-1:2;var y={};this.queue.forEach(function(g){KI(g.loaded,[f],p),mA(g,i),o&&g.errors.push(o),g.pendingCount===0&&!g.done&&(Object.keys(g.loaded).forEach(function(x){y[x]||(y[x]={});var C=g.loaded[x];C.length&&C.forEach(function(D){y[x][D]===void 0&&(y[x][D]=!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 u=this,f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,p=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:f,wait:p,callback:y});return}this.readingCalls++;var g=function(A,M){if(u.readingCalls--,u.waitingReads.length>0){var I=u.waitingReads.shift();u.read(I.lng,I.ns,I.fcName,I.tried,I.wait,I.callback)}if(A&&M&&f<u.maxRetries){setTimeout(function(){u.read.call(u,i,o,s,f+1,p*2,y)},p);return}y(A,M)},x=this.backend[s].bind(this.backend);if(x.length===2){try{var C=x(i,o);C&&typeof C.then=="function"?C.then(function(D){return g(null,D)}).catch(g):g(null,C)}catch(D){g(D)}return}return x(i,o,g)}},{key:"prepareLoading",value:function(i,o){var s=this,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},f=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),f&&f();typeof i=="string"&&(i=this.languageUtils.toResolveHierarchy(i)),typeof o=="string"&&(o=[o]);var p=this.queueLoad(i,o,u,f);if(!p.toLoad.length)return p.pending.length||f(),null;p.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]:"",u=i.split("|"),f=u[0],p=u[1];this.read(f,p,"read",void 0,void 0,function(y,g){y&&o.logger.warn("".concat(s,"loading namespace ").concat(p," for language ").concat(f," failed"),y),!y&&g&&o.logger.log("".concat(s,"loaded namespace ").concat(p," for language ").concat(f),g),o.loaded(i,y,g)})}},{key:"saveMissing",value:function(i,o,s,u,f){var p=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=d0(d0({},p),{},{isUpdate:f}),x=this.backend.create.bind(this.backend);if(x.length<6)try{var C;x.length===5?C=x(i,o,s,u,g):C=x(i,o,s,u),C&&typeof C.then=="function"?C.then(function(D){return y(null,D)}).catch(y):y(null,C)}catch(D){y(D)}else x(i,o,s,u,y,g)}!i||!i[0]||this.store.addResource(i[0],o,s,u)}}}]),n}(wu);function h0(){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(qo(t[1])==="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),qo(t[2])==="object"||qo(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 p0(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 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 Rs(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){Vs(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 bA(e){var t=wA();return function(){var r=$s(e),i;if(t){var o=$s(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return jd(this,i)}}function wA(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function uh(){}function xA(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(n){typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}var Zh=function(e){Cp(n,e);var t=bA(n);function n(){var r,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(Zo(this,n),r=t.call(this),Ep&&wu.call(wl(r)),r.options=p0(i),r.services={},r.logger=Fs,r.modules={external:[]},xA(wl(r)),o&&!r.isInitialized&&!i.isClone){if(!r.options.initImmediate)return r.init(i,o),jd(r,wl(r));setTimeout(function(){r.init(i,o)},0)}return r}return Jo(n,[{key:"init",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;typeof o=="function"&&(s=o,o={}),!o.defaultNS&&o.defaultNS!==!1&&o.ns&&(typeof o.ns=="string"?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));var u=h0();this.options=Rs(Rs(Rs({},u),this.options),p0(o)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=Rs(Rs({},u.interpolation),this.options.interpolation)),o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);function f(I){return I?typeof I=="function"?new I:I:null}if(!this.options.isClone){this.modules.logger?Fs.init(f(this.modules.logger),this.options):Fs.init(null,this.options);var p;this.modules.formatter?p=this.modules.formatter:typeof Intl<"u"&&(p=pA);var y=new a0(this.options);this.store=new iA(this.options.resources,this.options);var g=this.services;g.logger=Fs,g.resourceStore=this.store,g.languageUtils=y,g.pluralResolver=new fA(y,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),p&&(!this.options.interpolation.format||this.options.interpolation.format===u.interpolation.format)&&(g.formatter=f(p),g.formatter.init(g,this.options),this.options.interpolation.format=g.formatter.format.bind(g.formatter)),g.interpolator=new dA(this.options),g.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},g.backendConnector=new yA(f(this.modules.backend),g.resourceStore,g,this.options),g.backendConnector.on("*",function(I){for(var H=arguments.length,U=new Array(H>1?H-1:0),Q=1;Q<H;Q++)U[Q-1]=arguments[Q];i.emit.apply(i,[I].concat(U))}),this.modules.languageDetector&&(g.languageDetector=f(this.modules.languageDetector),g.languageDetector.init&&g.languageDetector.init(g,this.options.detection,this.options)),this.modules.i18nFormat&&(g.i18nFormat=f(this.modules.i18nFormat),g.i18nFormat.init&&g.i18nFormat.init(this)),this.translator=new o0(this.services,this.options),this.translator.on("*",function(I){for(var H=arguments.length,U=new Array(H>1?H-1:0),Q=1;Q<H;Q++)U[Q-1]=arguments[Q];i.emit.apply(i,[I].concat(U))}),this.modules.external.forEach(function(I){I.init&&I.init(i)})}if(this.format=this.options.interpolation.format,s||(s=uh),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var x=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);x.length>0&&x[0]!=="dev"&&(this.options.lng=x[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var C=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];C.forEach(function(I){i[I]=function(){var H;return(H=i.store)[I].apply(H,arguments)}});var D=["addResource","addResources","addResourceBundle","removeResourceBundle"];D.forEach(function(I){i[I]=function(){var H;return(H=i.store)[I].apply(H,arguments),i}});var A=qf(),M=function(){var H=function(Q,Z){i.isInitialized&&!i.initializedStoreOnce&&i.logger.warn("init: i18next is already initialized. You should call init just once!"),i.isInitialized=!0,i.options.isClone||i.logger.log("initialized",i.options),i.emit("initialized",i.options),A.resolve(Z),s(Q,Z)};if(i.languages&&i.options.compatibilityAPI!=="v1"&&!i.isInitialized)return H(null,i.t.bind(i));i.changeLanguage(i.options.lng,H)};return this.options.resources||!this.options.initImmediate?M():setTimeout(M,0),A}},{key:"loadResources",value:function(i){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:uh,u=s,f=typeof i=="string"?i:this.language;if(typeof i=="function"&&(u=i),!this.options.resources||this.options.partialBundledLanguages){if(f&&f.toLowerCase()==="cimode")return u();var p=[],y=function(C){if(C){var D=o.services.languageUtils.toResolveHierarchy(C);D.forEach(function(A){p.indexOf(A)<0&&p.push(A)})}};if(f)y(f);else{var g=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);g.forEach(function(x){return y(x)})}this.options.preload&&this.options.preload.forEach(function(x){return y(x)}),this.services.backendConnector.load(p,this.options.ns,function(x){!x&&!o.resolvedLanguage&&o.language&&o.setResolvedLanguage(o.language),u(x)})}else u(null)}},{key:"reloadResources",value:function(i,o,s){var u=qf();return i||(i=this.languages),o||(o=this.options.ns),s||(s=uh),this.services.backendConnector.reload(i,o,function(f){u.resolve(),s(f)}),u}},{key:"use",value:function(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&R1.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}},{key:"setResolvedLanguage",value:function(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1))for(var o=0;o<this.languages.length;o++){var s=this.languages[o];if(!(["cimode","dev"].indexOf(s)>-1)&&this.store.hasLanguageSomeTranslations(s)){this.resolvedLanguage=s;break}}}},{key:"changeLanguage",value:function(i,o){var s=this;this.isLanguageChangingTo=i;var u=qf();this.emit("languageChanging",i);var f=function(x){s.language=x,s.languages=s.services.languageUtils.toResolveHierarchy(x),s.resolvedLanguage=void 0,s.setResolvedLanguage(x)},p=function(x,C){C?(f(C),s.translator.changeLanguage(C),s.isLanguageChangingTo=void 0,s.emit("languageChanged",C),s.logger.log("languageChanged",C)):s.isLanguageChangingTo=void 0,u.resolve(function(){return s.t.apply(s,arguments)}),o&&o(x,function(){return s.t.apply(s,arguments)})},y=function(x){!i&&!x&&s.services.languageDetector&&(x=[]);var C=typeof x=="string"?x:s.services.languageUtils.getBestMatchFromCodes(x);C&&(s.language||f(C),s.translator.language||s.translator.changeLanguage(C),s.services.languageDetector&&s.services.languageDetector.cacheUserLanguage&&s.services.languageDetector.cacheUserLanguage(C)),s.loadResources(C,function(D){p(D,C)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?y(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(y):this.services.languageDetector.detect(y):y(i),u}},{key:"getFixedT",value:function(i,o,s){var u=this,f=function p(y,g){var x;if(qo(g)!=="object"){for(var C=arguments.length,D=new Array(C>2?C-2:0),A=2;A<C;A++)D[A-2]=arguments[A];x=u.options.overloadTranslationOptionHandler([y,g].concat(D))}else x=Rs({},g);x.lng=x.lng||p.lng,x.lngs=x.lngs||p.lngs,x.ns=x.ns||p.ns,x.keyPrefix=x.keyPrefix||s||p.keyPrefix;var M=u.options.keySeparator||".",I;return x.keyPrefix&&Array.isArray(y)?I=y.map(function(H){return"".concat(x.keyPrefix).concat(M).concat(H)}):I=x.keyPrefix?"".concat(x.keyPrefix).concat(M).concat(y):y,u.t(I,x)};return typeof i=="string"?f.lng=i:f.lngs=i,f.ns=o,f.keyPrefix=s,f}},{key:"t",value:function(){var i;return this.translator&&(i=this.translator).translate.apply(i,arguments)}},{key:"exists",value:function(){var i;return this.translator&&(i=this.translator).exists.apply(i,arguments)}},{key:"setDefaultNamespace",value:function(i){this.options.defaultNS=i}},{key:"hasLoadedNamespace",value:function(i){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var u=s.lng||this.resolvedLanguage||this.languages[0],f=this.options?this.options.fallbackLng:!1,p=this.languages[this.languages.length-1];if(u.toLowerCase()==="cimode")return!0;var y=function(C,D){var A=o.services.backendConnector.state["".concat(C,"|").concat(D)];return A===-1||A===2};if(s.precheck){var g=s.precheck(this,y);if(g!==void 0)return g}return!!(this.hasResourceBundle(u,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||y(u,i)&&(!f||y(p,i)))}},{key:"loadNamespaces",value:function(i,o){var s=this,u=qf();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(function(f){s.options.ns.indexOf(f)<0&&s.options.ns.push(f)}),this.loadResources(function(f){u.resolve(),o&&o(f)}),u):(o&&o(),Promise.resolve())}},{key:"loadLanguages",value:function(i,o){var s=qf();typeof i=="string"&&(i=[i]);var u=this.options.preload||[],f=i.filter(function(p){return u.indexOf(p)<0});return f.length?(this.options.preload=u.concat(f),this.loadResources(function(p){s.resolve(),o&&o(p)}),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 a0(h0());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]:uh,u=Rs(Rs(Rs({},this.options),o),{isClone:!0}),f=new n(u);(o.debug!==void 0||o.prefix!==void 0)&&(f.logger=f.logger.clone(o));var p=["store","services","language"];return p.forEach(function(y){f[y]=i[y]}),f.services=Rs({},this.services),f.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},f.translator=new o0(f.services,f.options),f.translator.on("*",function(y){for(var g=arguments.length,x=new Array(g>1?g-1:0),C=1;C<g;C++)x[C-1]=arguments[C];f.emit.apply(f,[y].concat(x))}),f.init(u,s),f.translator.options=f.options,f.translator.backendConnector.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},f}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}(wu);Vs(Zh,"createInstance",function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new Zh(e,t)});var oi=Zh.createInstance();oi.createInstance=Zh.createInstance;oi.createInstance;oi.dir;oi.init;oi.loadResources;oi.reloadResources;oi.use;oi.changeLanguage;oi.getFixedT;var I1=oi.t;oi.exists;oi.setDefaultNamespace;oi.hasLoadedNamespace;oi.loadNamespaces;oi.loadLanguages;const A1={TOKEN_MALFORMED:"token_malformed",TOKEN_EXPIRED:"token_expired"},M1=e=>{window.location.href=`${e}/authentication/login`},L1=e=>{window.location.href=`${e}/authentication/logout`},rs=BI.create({withCredentials:!0});let Og=!1,Pv=[];const v0=e=>{Pv.forEach(t=>{e?t.reject(e):t.resolve()}),Pv=[]};function F1(e,t){var o,s,u,f,p,y,g,x,C;const n=e.config,r=((s=(o=e.response)==null?void 0:o.data)==null?void 0:s.errorMessage)||((f=(u=e.response)==null?void 0:u.data)==null?void 0:f.message),i=r===A1.TOKEN_EXPIRED;return((p=e.response)==null?void 0:p.status)===401&&i&&!n._retry?Og?new Promise((D,A)=>{Pv.push({resolve:D,reject:A})}).then(()=>rs(n)).catch(D=>Promise.reject(D)):(n._retry=!0,Og=!0,rs.post("/authentication/api/v1/auth/refresh-token",void 0,{baseURL:window.env.AUTHEN_DOMAIN}).then(()=>(v0(null),rs(n))).catch(D=>(v0(D),Promise.reject(D))).finally(()=>{Og=!1})):((y=e.response)==null?void 0:y.status)===401&&!i?M1(window.env.AUTHEN_DOMAIN):(((g=e.response)==null?void 0:g.status)===403?(x=t==null?void 0:t.handle403)==null||x.call(t,e):(!(t!=null&&t.disabledPushNotify)&&Bd(I1(`${r||"Something went wrong!"}`)),(C=t==null?void 0:t.handleOtherError)==null||C.call(t,e)),r&&e.response&&e.response.data&&(e.response.data.message=r),Promise.reject(e))}const SA=rs.interceptors.response.use(e=>e,async e=>F1(e)),N1=q.createContext({}),TA=({children:e})=>{const[t,n]=q.useState(!1),[r,i]=q.useState({all:{rows:[],total:0},unread:{rows:[],total:0}}),o=()=>{n(!t)},s=()=>{n(!1)};return Ne.jsx(N1.Provider,{value:{isOpen:t,toggleOpen:o,setShowModalFalse:s,notidata:r,setNotiData:i},children:e})};var j1={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},m0=q.createContext&&q.createContext(j1),CA=["attr","size","title"];function EA(e,t){if(e==null)return{};var n=kA(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 kA(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Jh(){return Jh=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},Jh.apply(this,arguments)}function y0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Qh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?y0(Object(n),!0).forEach(function(r){OA(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function OA(e,t,n){return t=_A(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _A(e){var t=DA(e,"string");return typeof t=="symbol"?t:t+""}function DA(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function B1(e){return e&&e.map((t,n)=>q.createElement(t.tag,Qh({key:n},t.attr),B1(t.child)))}function kp(e){return t=>q.createElement(PA,Jh({attr:Qh({},e.attr)},t),B1(e.child))}function PA(e){var t=n=>{var{attr:r,size:i,title:o}=e,s=EA(e,CA),u=i||n.size||"1em",f;return n.className&&(f=n.className),e.className&&(f=(f?f+" ":"")+e.className),q.createElement("svg",Jh({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,s,{className:f,style:Qh(Qh({color:e.color||n.color},n.style),e.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),o&&q.createElement("title",null,o),e.children)};return m0!==void 0?q.createElement(m0.Consumer,null,n=>t(n)):t(j1)}function RA(e){return kp({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 IA(e){return kp({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"},child:[]}]})(e)}const $1={allVariants:{lineHeight:"inherit"},fontFamily:"'SpecialAmpersand', 'TT Firs Neue Trl'",button:{textTransform:"none",fontSize:"0.875rem",fontWeight:400,boxShadow:"none"},body1:{fontSize:"0.875rem",fontWeight:400},body2:{fontSize:"0.75rem"},h6:{fontSize:"0.875rem",fontWeight:500},h5:{fontSize:"1rem",fontWeight:500},h4:{fontSize:"1.25rem",fontWeight:500},h3:{fontSize:"1.5rem",fontWeight:500},h2:{fontSize:"2rem",fontWeight:500},h1:{fontSize:"2.5rem",fontWeight:500},subtitle1:{fontSize:"0.75rem"},subtitle2:{fontSize:"0.625rem"}};function _g(e){return e+" !important"}const V1=e=>{const t={...e.colors};return is.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:$1,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:_g(t.primary200),"&:hover":{backgroundColor:_g(t.primary200)}}}}},MuiPaginationItem:{defaultProps:{components:{previous:RA,next:IA}},styleOverrides:{root:{"& svg":{width:"10px"},border:"none",fontSize:"14px",lineHeight:"1.5rem",borderRadius:"7px","&.Mui-selected":{backgroundColor:_g(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 b0(e,t){const n={...e};return t==null||t.forEach(r=>{r.children&&r.children.forEach(({key:i,color:o})=>{n[i]=o.trim()||Wr[i]})}),n}function H1(e){if(!e)return;let t=document.querySelector("link[rel*='icon']");t||(t=document.createElement("link"),t.rel="icon",document.head.appendChild(t)),t.href=e}function AA(e){var u,f,p;const{data:t,isFetching:n}=xd.useQuery(["customTheme"],()=>e!=null&&e.url?fetch(e.url).then(y=>y.json()).then(y=>(["image","favicon","icon"].forEach(g=>{var x;(x=y==null?void 0:y.theme)!=null&&x[g]&&(y.theme[g]+=`?v=${Date.now()}`)}),y)):void 0,{enabled:!!(e!=null&&e.url)&&(e==null?void 0:e.enabled),refetchOnWindowFocus:!1,cacheTime:0,onSuccess(y){var x,C;H1((x=y==null?void 0:y.theme)==null?void 0:x.favicon);const g=b0(Wr,(C=y==null?void 0:y.theme)==null?void 0:C.keyColor);Object.keys(g).forEach(D=>{document.documentElement.style.setProperty(`--${D}`,g[D])}),document.documentElement.style.setProperty("font-family",$1.fontFamily)}}),r=b0(Wr,(u=t==null?void 0:t.theme)==null?void 0:u.keyColor),i=V1({colors:r}),o=(f=t==null?void 0:t.theme)==null?void 0:f.image,s=(p=t==null?void 0:t.theme)==null?void 0:p.icon;return{colors:r,theme:i,logo:o,icon:s,isFetching:n,themeDto:t==null?void 0:t.theme}}const U1=q.createContext({}),MA=()=>q.useContext(U1),LA=e=>{var o;const{children:t,brandTheme:n}=e,r=AA(n),i=((o=e.customTheme)==null?void 0:o.call(e,r.colors))||r.theme;return Ne.jsx(U1.Provider,{value:r,children:Ne.jsx(is.ThemeProvider,{theme:i,children:t})})},FA=e=>{const t=xd.useQueryClient(),n=q.useMemo(()=>e.axiosInstance||rs,[e.axiosInstance]);window.env||(window.env={}),window.env.AUTHEN_DOMAIN=new URL(e.baseUrl).origin;const r=xd.useQuery({queryKey:["user"],refetchOnWindowFocus:!1,retry:!1,queryFn:()=>n.get(e.baseUrl+"/user-management/api/v1/users/my-account").then(i=>(window.user=i.data,i.data))});return q.useEffect(()=>{window.onpageshow=function(i){i.persisted&&t.invalidateQueries(["user"])}},[t]),r},NA=e=>{const t=xd.useQueryClient(),n=q.useMemo(()=>e.axiosInstance||rs,[e.axiosInstance]);window.env||(window.env={}),window.env.AUTHEN_DOMAIN=new URL(e.baseUrl).origin;const r=xd.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 q.useEffect(()=>{window.onpageshow=function(i){i.persisted&&t.invalidateQueries(["user-permissions"])}},[t]),r},Nm=q.createContext({}),jA=e=>{const{children:t,baseUrl:n,axiosInstance:r}=e,i=new URL(n).origin,o=FA({axiosInstance:r,baseUrl:n}),s=NA({axiosInstance:r,baseUrl:n});function u(){window.location.href=`${i}/authentication/login`}function f(){window.location.href=`${i}/authentication/logout`}return o!=null&&o.isFetching?Ne.jsx(is.Grid,{container:!0,justifyContent:"center",alignItems:"center",sx:{minHeight:"100vh"},children:Ne.jsx(is.CircularProgress,{})}):Ne.jsx(Nm.Provider,{value:{user:o==null?void 0:o.data,login:u,logout:f,isFetching:o.isFetching,permissions:s==null?void 0:s.data},children:t})},BA=()=>q.useContext(Nm);function $A(e,t,n){return n.some(r=>{const i=e[r];return String(i).toLowerCase().includes(t.toLowerCase())})}var W1=[],VA=W1.forEach,HA=W1.slice;function UA(e){return VA.call(HA.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}var w0=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,WA=function(t,n,r){var i=r||{};i.path=i.path||"/";var o=encodeURIComponent(n),s="".concat(t,"=").concat(o);if(i.maxAge>0){var u=i.maxAge-0;if(Number.isNaN(u))throw new Error("maxAge should be a Number");s+="; Max-Age=".concat(Math.floor(u))}if(i.domain){if(!w0.test(i.domain))throw new TypeError("option domain is invalid");s+="; Domain=".concat(i.domain)}if(i.path){if(!w0.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 f=typeof i.sameSite=="string"?i.sameSite.toLowerCase():i.sameSite;switch(f){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},x0={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=WA(t,encodeURIComponent(n),o)},read:function(t){for(var n="".concat(t,"="),r=document.cookie.split(";"),i=0;i<r.length;i++){for(var o=r[i];o.charAt(0)===" ";)o=o.substring(1,o.length);if(o.indexOf(n)===0)return o.substring(n.length,o.length)}return null},remove:function(t){this.create(t,"",-1)}},zA={name:"cookie",lookup:function(t){var n;if(t.lookupCookie&&typeof document<"u"){var r=x0.read(t.lookupCookie);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupCookie&&typeof document<"u"&&x0.create(n.lookupCookie,t,n.cookieMinutes,n.cookieDomain,n.cookieOptions)}},YA={name:"querystring",lookup:function(t){var n;if(typeof window<"u"){var r=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));for(var i=r.substring(1),o=i.split("&"),s=0;s<o.length;s++){var u=o[s].indexOf("=");if(u>0){var f=o[s].substring(0,u);f===t.lookupQuerystring&&(n=o[s].substring(u+1))}}}return n}},Xf=null,S0=function(){if(Xf!==null)return Xf;try{Xf=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{Xf=!1}return Xf},GA={name:"localStorage",lookup:function(t){var n;if(t.lookupLocalStorage&&S0()){var r=window.localStorage.getItem(t.lookupLocalStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupLocalStorage&&S0()&&window.localStorage.setItem(n.lookupLocalStorage,t)}},Kf=null,T0=function(){if(Kf!==null)return Kf;try{Kf=window!=="undefined"&&window.sessionStorage!==null;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{Kf=!1}return Kf},qA={name:"sessionStorage",lookup:function(t){var n;if(t.lookupSessionStorage&&T0()){var r=window.sessionStorage.getItem(t.lookupSessionStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupSessionStorage&&T0()&&window.sessionStorage.setItem(n.lookupSessionStorage,t)}},XA={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}},KA={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}},ZA={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}},JA={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]}},z1=!1;try{document.cookie,z1=!0}catch{}var Y1=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];z1||Y1.splice(1,1);function QA(){return{order:Y1,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(t){return t}}}var G1=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Zo(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return Jo(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=UA(r,this.options||{},QA()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(o){return o.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(zA),this.addDetector(YA),this.addDetector(GA),this.addDetector(qA),this.addDetector(XA),this.addDetector(KA),this.addDetector(ZA),this.addDetector(JA)}},{key:"addDetector",value:function(n){return this.detectors[n.name]=n,this}},{key:"detect",value:function(n){var r=this;n||(n=this.options.order);var i=[];return n.forEach(function(o){if(r.detectors[o]){var s=r.detectors[o].lookup(r.options);s&&typeof s=="string"&&(s=[s]),s&&(i=i.concat(s))}}),i=i.map(function(o){return r.options.convertDetectedLanguage(o)}),this.services.languageUtils.getBestMatchFromCodes?i:i.length>0?i[0]:null}},{key:"cacheUserLanguage",value:function(n,r){var i=this;r||(r=this.options.caches),r&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(n)>-1||r.forEach(function(o){i.detectors[o]&&i.detectors[o].cacheUserLanguage(n,i.options)}))}}])}();G1.type="languageDetector";function jm(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}const eM=Object.freeze(Object.defineProperty({__proto__:null,default:jm},Symbol.toStringTag,{value:"Module"}));var Ei=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Eu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function tM(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 nM(){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 C0={};function Rv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&C0[t[0]]||(typeof t[0]=="string"&&(C0[t[0]]=new Date),nM.apply(void 0,t))}var q1=function(t,n){return function(){if(t.isInitialized)n();else{var r=function i(){setTimeout(function(){t.off("initialized",i)},0),n()};t.on("initialized",r)}}};function E0(e,t,n){e.loadNamespaces(t,q1(e,n))}function k0(e,t,n,r){typeof n=="string"&&(n=[n]),n.forEach(function(i){e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,q1(e,r))}function rM(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(f,p){var y=t.services.backendConnector.state["".concat(f,"|").concat(p)];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 iM(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!t.languages||!t.languages.length)return Rv("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}}):rM(e,t,n)}var oM=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,aM={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},sM=function(t){return aM[t]},lM=function(t){return t.replace(oM,sM)};function O0(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 _0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?O0(Object(n),!0).forEach(function(r){Vs(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Iv={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:lM};function uM(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Iv=_0(_0({},Iv),e)}function cM(){return Iv}var X1;function fM(e){X1=e}function dM(){return X1}var hM={type:"3rdParty",init:function(t){uM(t.options.react),fM(t)}},K1=q.createContext(),pM=function(){function e(){Zo(this,e),this.usedNamespaces={}}return Jo(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 gM(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,u=[],f=!0,p=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(f=(r=o.call(n)).done)&&(u.push(r.value),u.length!==t);f=!0);}catch(y){p=!0,i=y}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(p)throw i}}return u}}function vM(e,t){return O1(e)||gM(e,t)||_1(e,t)||D1()}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 Dg(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){Vs(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}var mM=function(t,n){var r=q.useRef();return q.useEffect(function(){r.current=t},[t,n]),r.current};function Z1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.i18n,r=q.useContext(K1)||{},i=r.i18n,o=r.defaultNS,s=n||i||dM();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new pM),!s){Rv("You will need to pass in an i18next instance by using initReactI18next");var u=function(re,Pe){return typeof Pe=="string"?Pe:Pe&&qo(Pe)==="object"&&typeof Pe.defaultValue=="string"?Pe.defaultValue:Array.isArray(re)?re[re.length-1]:re},f=[u,{},!1];return f.t=u,f.i18n={},f.ready=!1,f}s.options.react&&s.options.react.wait!==void 0&&Rv("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var p=Dg(Dg(Dg({},cM()),s.options.react),t),y=p.useSuspense,g=p.keyPrefix,x=e||o||s.options&&s.options.defaultNS;x=typeof x=="string"?[x]:x||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(x);var C=(s.isInitialized||s.initializedStoreOnce)&&x.every(function(se){return iM(se,s,p)});function D(){return s.getFixedT(t.lng||null,p.nsMode==="fallback"?x:x[0],g)}var A=q.useState(D),M=vM(A,2),I=M[0],H=M[1],U=x.join();t.lng&&(U="".concat(t.lng).concat(U));var Q=mM(U),Z=q.useRef(!0);q.useEffect(function(){var se=p.bindI18n,re=p.bindI18nStore;Z.current=!0,!C&&!y&&(t.lng?k0(s,t.lng,x,function(){Z.current&&H(D)}):E0(s,x,function(){Z.current&&H(D)})),C&&Q&&Q!==U&&Z.current&&H(D);function Pe(){Z.current&&H(D)}return se&&s&&s.on(se,Pe),re&&s&&s.store.on(re,Pe),function(){Z.current=!1,se&&s&&se.split(" ").forEach(function(He){return s.off(He,Pe)}),re&&s&&re.split(" ").forEach(function(He){return s.store.off(He,Pe)})}},[s,U]);var ce=q.useRef(!0);q.useEffect(function(){Z.current&&!ce.current&&H(D),ce.current=!1},[s,g]);var T=[I,s,C];if(T.t=I,T.i18n=s,T.ready=C,C||!C&&!y)return T;throw new Promise(function(se){t.lng?k0(s,t.lng,x,function(){return se()}):E0(s,x,function(){return se()})})}function yM(e){var t=e.i18n,n=e.defaultNS,r=e.children,i=q.useMemo(function(){return{i18n:t,defaultNS:n}},[t,n]);return q.createElement(K1.Provider,{value:i},r)}var J1=[],bM=J1.forEach,wM=J1.slice;function xM(e){return bM.call(wM.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}function SM(e){return e?typeof e=="function"?new e:e:null}function TM(){return{handleEmptyResourcesAsFailed:!0,cacheHitMode:"none"}}function P0(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 Q1=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]:{};Zo(this,e),this.backends=[],this.type="backend",this.allOptions=r,this.init(t,n)}return Jo(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=xM(i,this.options||{},TM()),this.allOptions=o,this.options.backends&&this.options.backends.forEach(function(s,u){r.backends[u]=r.backends[u]||SM(s),r.backends[u].init(n,r.options.backendOptions&&r.options.backendOptions[u]||{},o)}),this.services&&this.options.reloadInterval&&setInterval(function(){return r.reload()},this.options.reloadInterval)}},{key:"read",value:function(n,r,i){var o=this,s=this.backends.length,u=function p(y){if(y>=s)return i(new Error("non of the backend loaded data",!0));var g=y===s-1,x=o.options.handleEmptyResourcesAsFailed&&!g?0:-1,C=o.backends[y];C.read?P0(C,n,r,function(D,A,M){if(!D&&A&&Object.keys(A).length>x){if(i(null,A,y),f(y-1,A),C.save&&o.options.cacheHitMode&&["refresh","refreshAndUpdateStore"].indexOf(o.options.cacheHitMode)>-1){if(M&&o.options.refreshExpirationTime&&M+o.options.refreshExpirationTime>Date.now())return;var I=o.backends[y+1];I&&I.read&&P0(I,n,r,function(H,U){H||U&&(Object.keys(U).length<=x||(f(y,U),o.options.cacheHitMode==="refreshAndUpdateStore"&&o.services&&o.services.resourceStore&&o.services.resourceStore.addResourceBundle(n,r,U)))})}}else p(y+1)}):p(y+1)},f=function p(y,g){if(!(y<0)){var x=o.backends[y];x.save&&x.save(n,r,g),p(y-1,g)}};u(0)}},{key:"create",value:function(n,r,i,o){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){},u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.backends.forEach(function(f){if(f.create){var p=f.create.bind(f);if(p.length<6){try{var y;p.length===5?y=p(n,r,i,o,u):y=p(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}p(n,r,i,o,s,u)}})}},{key:"reload",value:function(){var n=this,r=this.services,i=r.backendConnector,o=r.languageUtils,s=r.logger,u=i.language;if(!(u&&u.toLowerCase()==="cimode")){var f=[],p=function(g){var x=o.toResolveHierarchy(g);x.forEach(function(C){f.indexOf(C)<0&&f.push(C)})};p(u),this.allOptions.preload&&this.allOptions.preload.forEach(function(y){return p(y)}),f.forEach(function(y){n.allOptions.ns.forEach(function(g){i.read(y,g,"read",null,null,function(x,C){x&&s.warn("loading namespace ".concat(g," for language ").concat(y," failed"),x),!x&&C&&s.log("loaded namespace ".concat(g," for language ").concat(y),C),i.loaded("".concat(y,"|").concat(g),x,C)})})})}}}]),e}();Q1.type="backend";function Av(e){"@babel/helpers - typeof";return Av=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},Av(e)}function eT(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":Av(XMLHttpRequest))==="object"}function CM(e){return!!e&&typeof e.then=="function"}function EM(e){return CM(e)?e:Promise.resolve(e)}function kM(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 Mv={exports:{}},ch={exports:{}},R0;function OM(){return R0||(R0=1,function(e,t){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof Ei<"u"&&Ei,r=function(){function o(){this.fetch=!1,this.DOMException=n.DOMException}return o.prototype=n,new o}();(function(o){(function(s){var u=typeof o<"u"&&o||typeof self<"u"&&self||typeof u<"u"&&u,f={searchParams:"URLSearchParams"in u,iterable:"Symbol"in u&&"iterator"in Symbol,blob:"FileReader"in u&&"Blob"in u&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in u,arrayBuffer:"ArrayBuffer"in u};function p(he){return he&&DataView.prototype.isPrototypeOf(he)}if(f.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(he){return he&&y.indexOf(Object.prototype.toString.call(he))>-1};function x(he){if(typeof he!="string"&&(he=String(he)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(he)||he==="")throw new TypeError('Invalid character in header field name: "'+he+'"');return he.toLowerCase()}function C(he){return typeof he!="string"&&(he=String(he)),he}function D(he){var me={next:function(){var Le=he.shift();return{done:Le===void 0,value:Le}}};return f.iterable&&(me[Symbol.iterator]=function(){return me}),me}function A(he){this.map={},he instanceof A?he.forEach(function(me,Le){this.append(Le,me)},this):Array.isArray(he)?he.forEach(function(me){this.append(me[0],me[1])},this):he&&Object.getOwnPropertyNames(he).forEach(function(me){this.append(me,he[me])},this)}A.prototype.append=function(he,me){he=x(he),me=C(me);var Le=this.map[he];this.map[he]=Le?Le+", "+me:me},A.prototype.delete=function(he){delete this.map[x(he)]},A.prototype.get=function(he){return he=x(he),this.has(he)?this.map[he]:null},A.prototype.has=function(he){return this.map.hasOwnProperty(x(he))},A.prototype.set=function(he,me){this.map[x(he)]=C(me)},A.prototype.forEach=function(he,me){for(var Le in this.map)this.map.hasOwnProperty(Le)&&he.call(me,this.map[Le],Le,this)},A.prototype.keys=function(){var he=[];return this.forEach(function(me,Le){he.push(Le)}),D(he)},A.prototype.values=function(){var he=[];return this.forEach(function(me){he.push(me)}),D(he)},A.prototype.entries=function(){var he=[];return this.forEach(function(me,Le){he.push([Le,me])}),D(he)},f.iterable&&(A.prototype[Symbol.iterator]=A.prototype.entries);function M(he){if(he.bodyUsed)return Promise.reject(new TypeError("Already read"));he.bodyUsed=!0}function I(he){return new Promise(function(me,Le){he.onload=function(){me(he.result)},he.onerror=function(){Le(he.error)}})}function H(he){var me=new FileReader,Le=I(me);return me.readAsArrayBuffer(he),Le}function U(he){var me=new FileReader,Le=I(me);return me.readAsText(he),Le}function Q(he){for(var me=new Uint8Array(he),Le=new Array(me.length),Ge=0;Ge<me.length;Ge++)Le[Ge]=String.fromCharCode(me[Ge]);return Le.join("")}function Z(he){if(he.slice)return he.slice(0);var me=new Uint8Array(he.byteLength);return me.set(new Uint8Array(he)),me.buffer}function ce(){return this.bodyUsed=!1,this._initBody=function(he){this.bodyUsed=this.bodyUsed,this._bodyInit=he,he?typeof he=="string"?this._bodyText=he:f.blob&&Blob.prototype.isPrototypeOf(he)?this._bodyBlob=he:f.formData&&FormData.prototype.isPrototypeOf(he)?this._bodyFormData=he:f.searchParams&&URLSearchParams.prototype.isPrototypeOf(he)?this._bodyText=he.toString():f.arrayBuffer&&f.blob&&p(he)?(this._bodyArrayBuffer=Z(he.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):f.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(he)||g(he))?this._bodyArrayBuffer=Z(he):this._bodyText=he=Object.prototype.toString.call(he):this._bodyText="",this.headers.get("content-type")||(typeof he=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):f.searchParams&&URLSearchParams.prototype.isPrototypeOf(he)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},f.blob&&(this.blob=function(){var he=M(this);if(he)return he;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var he=M(this);return he||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else return this.blob().then(H)}),this.text=function(){var he=M(this);if(he)return he;if(this._bodyBlob)return U(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(Q(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},f.formData&&(this.formData=function(){return this.text().then(Pe)}),this.json=function(){return this.text().then(JSON.parse)},this}var T=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function se(he){var me=he.toUpperCase();return T.indexOf(me)>-1?me:he}function re(he,me){if(!(this instanceof re))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');me=me||{};var Le=me.body;if(he instanceof re){if(he.bodyUsed)throw new TypeError("Already read");this.url=he.url,this.credentials=he.credentials,me.headers||(this.headers=new A(he.headers)),this.method=he.method,this.mode=he.mode,this.signal=he.signal,!Le&&he._bodyInit!=null&&(Le=he._bodyInit,he.bodyUsed=!0)}else this.url=String(he);if(this.credentials=me.credentials||this.credentials||"same-origin",(me.headers||!this.headers)&&(this.headers=new A(me.headers)),this.method=se(me.method||this.method||"GET"),this.mode=me.mode||this.mode||null,this.signal=me.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&Le)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(Le),(this.method==="GET"||this.method==="HEAD")&&(me.cache==="no-store"||me.cache==="no-cache")){var Ge=/([?&])_=[^&]*/;if(Ge.test(this.url))this.url=this.url.replace(Ge,"$1_="+new Date().getTime());else{var tt=/\?/;this.url+=(tt.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}re.prototype.clone=function(){return new re(this,{body:this._bodyInit})};function Pe(he){var me=new FormData;return he.trim().split("&").forEach(function(Le){if(Le){var Ge=Le.split("="),tt=Ge.shift().replace(/\+/g," "),xe=Ge.join("=").replace(/\+/g," ");me.append(decodeURIComponent(tt),decodeURIComponent(xe))}}),me}function He(he){var me=new A,Le=he.replace(/\r?\n[\t ]+/g," ");return Le.split("\r").map(function(Ge){return Ge.indexOf(`
|
|
3
|
-
`)===0?Ge.substr(1,Ge.length):Ge}).forEach(function(Ge){var tt=Ge.split(":"),xe=tt.shift().trim();if(xe){var Ce=tt.join(":").trim();me.append(xe,Ce)}}),me}ce.call(re.prototype);function Ue(he,me){if(!(this instanceof Ue))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');me||(me={}),this.type="default",this.status=me.status===void 0?200:me.status,this.ok=this.status>=200&&this.status<300,this.statusText=me.statusText===void 0?"":""+me.statusText,this.headers=new A(me.headers),this.url=me.url||"",this._initBody(he)}ce.call(Ue.prototype),Ue.prototype.clone=function(){return new Ue(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new A(this.headers),url:this.url})},Ue.error=function(){var he=new Ue(null,{status:0,statusText:""});return he.type="error",he};var Qe=[301,302,303,307,308];Ue.redirect=function(he,me){if(Qe.indexOf(me)===-1)throw new RangeError("Invalid status code");return new Ue(null,{status:me,headers:{location:he}})},s.DOMException=u.DOMException;try{new s.DOMException}catch{s.DOMException=function(me,Le){this.message=me,this.name=Le;var Ge=Error(me);this.stack=Ge.stack},s.DOMException.prototype=Object.create(Error.prototype),s.DOMException.prototype.constructor=s.DOMException}function Ke(he,me){return new Promise(function(Le,Ge){var tt=new re(he,me);if(tt.signal&&tt.signal.aborted)return Ge(new s.DOMException("Aborted","AbortError"));var xe=new XMLHttpRequest;function Ce(){xe.abort()}xe.onload=function(){var je={status:xe.status,statusText:xe.statusText,headers:He(xe.getAllResponseHeaders()||"")};je.url="responseURL"in xe?xe.responseURL:je.headers.get("X-Request-URL");var ke="response"in xe?xe.response:xe.responseText;setTimeout(function(){Le(new Ue(ke,je))},0)},xe.onerror=function(){setTimeout(function(){Ge(new TypeError("Network request failed"))},0)},xe.ontimeout=function(){setTimeout(function(){Ge(new TypeError("Network request failed"))},0)},xe.onabort=function(){setTimeout(function(){Ge(new s.DOMException("Aborted","AbortError"))},0)};function $e(je){try{return je===""&&u.location.href?u.location.href:je}catch{return je}}xe.open(tt.method,$e(tt.url),!0),tt.credentials==="include"?xe.withCredentials=!0:tt.credentials==="omit"&&(xe.withCredentials=!1),"responseType"in xe&&(f.blob?xe.responseType="blob":f.arrayBuffer&&tt.headers.get("Content-Type")&&tt.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(xe.responseType="arraybuffer")),me&&typeof me.headers=="object"&&!(me.headers instanceof A)?Object.getOwnPropertyNames(me.headers).forEach(function(je){xe.setRequestHeader(je,C(me.headers[je]))}):tt.headers.forEach(function(je,ke){xe.setRequestHeader(ke,je)}),tt.signal&&(tt.signal.addEventListener("abort",Ce),xe.onreadystatechange=function(){xe.readyState===4&&tt.signal.removeEventListener("abort",Ce)}),xe.send(typeof tt._bodyInit>"u"?null:tt._bodyInit)})}return Ke.polyfill=!0,u.fetch||(u.fetch=Ke,u.Headers=A,u.Request=re,u.Response=Ue),s.Headers=A,s.Request=re,s.Response=Ue,s.fetch=Ke,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}(ch,ch.exports)),ch.exports}(function(e,t){var n;if(typeof fetch=="function"&&(typeof Ei<"u"&&Ei.fetch?n=Ei.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof kM<"u"&&typeof window>"u"){var r=n||OM();r.default&&(r=r.default),t.default=r,e.exports=t.default}})(Mv,Mv.exports);var tT=Mv.exports;const nT=Eu(tT),I0=HI({__proto__:null,default:nT},[tT]);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 M0(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){_M(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 _M(e,t,n){return(t=DM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DM(e){var t=PM(e,"string");return xc(t)=="symbol"?t:t+""}function PM(e,t){if(xc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(xc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xc(e){"@babel/helpers - typeof";return xc=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},xc(e)}var xl;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?xl=global.fetch:typeof window<"u"&&window.fetch?xl=window.fetch:xl=fetch);var Sd;eT()&&(typeof global<"u"&&global.XMLHttpRequest?Sd=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(Sd=window.XMLHttpRequest));var ep;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?ep=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(ep=window.ActiveXObject));!xl&&I0&&!Sd&&!ep&&(xl=nT||I0);typeof xl!="function"&&(xl=void 0);var Lv=function(t,n){if(n&&xc(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},L0=function(t,n,r,i){var o=function(f){if(!f.ok)return r(f.statusText||"Error",{status:f.status});f.text().then(function(p){r(null,{status:f.status,data:p})}).catch(r)};if(i){var s=i(t,n);if(s instanceof Promise){s.then(o).catch(r);return}}typeof fetch=="function"?fetch(t,n).then(o).catch(r):xl(t,n).then(o).catch(r)},F0=!1,RM=function(t,n,r,i){t.queryStringParams&&(n=Lv(n,t.queryStringParams));var o=M0({},typeof t.customHeaders=="function"?t.customHeaders():t.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(o["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),r&&(o["Content-Type"]="application/json");var s=typeof t.requestOptions=="function"?t.requestOptions(r):t.requestOptions,u=M0({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:o},F0?{}:s),f=typeof t.alternateFetch=="function"&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{L0(n,u,i,f)}catch(p){if(!s||Object.keys(s).length===0||!p.message||p.message.indexOf("not implemented")<0)return i(p);try{Object.keys(s).forEach(function(y){delete u[y]}),L0(n,u,i,f),F0=!0}catch(y){i(y)}}},IM=function(t,n,r,i){r&&xc(r)==="object"&&(r=Lv("",r).slice(1)),t.queryStringParams&&(n=Lv(n,t.queryStringParams));try{var o;Sd?o=new Sd:o=new ep("MSXML2.XMLHTTP.3.0"),o.open(r?"POST":"GET",n,1),t.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!t.withCredentials,r&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var s=t.customHeaders;if(s=typeof s=="function"?s():s,s)for(var u in s)o.setRequestHeader(u,s[u]);o.onreadystatechange=function(){o.readyState>3&&i(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(r)}catch(f){console&&console.log(f)}},AM=function(t,n,r,i){if(typeof r=="function"&&(i=r,r=void 0),i=i||function(){},xl&&n.indexOf("file:")!==0)return RM(t,n,r,i);if(eT()||typeof ActiveXObject=="function")return IM(t,n,r,i);i(new Error("No fetch and no xhr implementation found!"))};function Tf(e){"@babel/helpers - typeof";return Tf=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},Tf(e)}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 Pg(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){rT(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}function MM(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function LM(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,iT(r.key),r)}}function FM(e,t,n){return t&&LM(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function rT(e,t,n){return(t=iT(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iT(e){var t=NM(e,"string");return Tf(t)=="symbol"?t:t+""}function NM(e,t){if(Tf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Tf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var jM=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 rT({},r,i||"")},parseLoadPayload:function(n,r){},request:AM,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},oT=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]:{};MM(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}return FM(e,[{key:"init",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=n,this.options=Pg(Pg(Pg({},jM()),this.options||{}),i),this.allOptions=o,this.services&&this.options.reloadInterval){var s=setInterval(function(){return r.reload()},this.options.reloadInterval);Tf(s)==="object"&&typeof s.unref=="function"&&s.unref()}}},{key:"readMulti",value:function(n,r,i){this._readAny(n,n,r,r,i)}},{key:"read",value:function(n,r,i){this._readAny([n],n,[r],r,i)}},{key:"_readAny",value:function(n,r,i,o,s){var u=this,f=this.options.loadPath;typeof this.options.loadPath=="function"&&(f=this.options.loadPath(n,i)),f=EM(f),f.then(function(p){if(!p)return s(null,{});var y=u.services.interpolator.interpolate(p,{lng:n.join("+"),ns:i.join("+")});u.loadUrl(y,s,r,o)})}},{key:"loadUrl",value:function(n,r,i,o){var s=this,u=typeof i=="string"?[i]:i,f=typeof o=="string"?[o]:o,p=this.options.parseLoadPayload(u,f);this.options.request(this.options,n,p,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){var x=y.message.toLowerCase(),C=["failed","fetch","network","load"].find(function(M){return x.indexOf(M)>-1});if(C)return r("failed loading "+n+": "+y.message,!0)}if(y)return r(y,!1);var D,A;try{typeof g.data=="string"?D=s.options.parse(g.data,i,o):D=g.data}catch{A="failed parsing "+n+" to json"}if(A)return r(A,!1);r(null,D)})}},{key:"create",value:function(n,r,i,o,s){var u=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var f=this.options.parsePayload(r,i,o),p=0,y=[],g=[];n.forEach(function(x){var C=u.options.addPath;typeof u.options.addPath=="function"&&(C=u.options.addPath(x,r));var D=u.services.interpolator.interpolate(C,{lng:x,ns:r});u.options.request(u.options,D,f,function(A,M){p+=1,y.push(A),g.push(M),p===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,u=i.language;if(!(u&&u.toLowerCase()==="cimode")){var f=[],p=function(g){var x=o.toResolveHierarchy(g);x.forEach(function(C){f.indexOf(C)<0&&f.push(C)})};p(u),this.allOptions.preload&&this.allOptions.preload.forEach(function(y){return p(y)}),f.forEach(function(y){n.allOptions.ns.forEach(function(g){i.read(y,g,"read",null,null,function(x,C){x&&s.warn("loading namespace ".concat(g," for language ").concat(y," failed"),x),!x&&C&&s.log("loaded namespace ".concat(g," for language ").concat(y),C),i.loaded("".concat(y,"|").concat(g),x,C)})})})}}}])}();oT.type="backend";var Bm=(e=>(e.en="en",e.de="de",e))(Bm||{});const BM={en:"English",de:"German"};oi.use(Q1).use(hM).use(G1).init({initImmediate:!0,ns:["translation"],fallbackLng:Object.keys(BM),fallbackNS:"translation",partialBundledLanguages:!0,resources:{},interpolation:{escapeValue:!1},backend:{backends:[oT],backendOptions:[{loadPath:()=>{var t,n,r;if((t=window==null?void 0:window.env)!=null&&t.TRANSLATION_URL)return`${window.env.TRANSLATION_URL}/{{lng}}`;const e=((n=window==null?void 0:window.env)==null?void 0:n.VITE_BASE_URL)||((r=window==null?void 0:window.env)==null?void 0:r.REACT_APP_BASE_URL)||location.protocol+"//"+location.host;return console.log("url",e),`${e}/translations/{{lng}}`},crossDomain:!0,cacheHitMode:"refresh"}]}});function $M(){const[e,t]=q.useState();return q.useEffect(()=>{const n=localStorage.getItem("language");t(n||Bm.en)},[]),{language:e,setLanguage:t}}const aT=q.createContext({}),VM=()=>q.useContext(aT),HM=oi,UM=I1,WM=()=>Z1(),zM=({children:e})=>{const t=$M();return Ne.jsx(aT.Provider,{value:t,children:Ne.jsx(yM,{i18n:oi,children:e})})},YM="*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}";function $m({children:e,styles:t=[],...n}){return Ne.jsxs("div",{...n,children:[[YM,...t].map((r,i)=>Ne.jsx("style",{type:"text/css",children:r},i)),e]})}function GM(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Vm=GM,qM=typeof Ei=="object"&&Ei&&Ei.Object===Object&&Ei,XM=qM,KM=XM,ZM=typeof self=="object"&&self&&self.Object===Object&&self,JM=KM||ZM||Function("return this")(),sT=JM,QM=sT,eL=function(){return QM.Date.now()},tL=eL,nL=/\s/;function rL(e){for(var t=e.length;t--&&nL.test(e.charAt(t)););return t}var iL=rL,oL=iL,aL=/^\s+/;function sL(e){return e&&e.slice(0,oL(e)+1).replace(aL,"")}var lL=sL,uL=sT,cL=uL.Symbol,lT=cL,j0=lT,uT=Object.prototype,fL=uT.hasOwnProperty,dL=uT.toString,Zf=j0?j0.toStringTag:void 0;function hL(e){var t=fL.call(e,Zf),n=e[Zf];try{e[Zf]=void 0;var r=!0}catch{}var i=dL.call(e);return r&&(t?e[Zf]=n:delete e[Zf]),i}var pL=hL,gL=Object.prototype,vL=gL.toString;function mL(e){return vL.call(e)}var yL=mL,B0=lT,bL=pL,wL=yL,xL="[object Null]",SL="[object Undefined]",$0=B0?B0.toStringTag:void 0;function TL(e){return e==null?e===void 0?SL:xL:$0&&$0 in Object(e)?bL(e):wL(e)}var CL=TL;function EL(e){return e!=null&&typeof e=="object"}var kL=EL,OL=CL,_L=kL,DL="[object Symbol]";function PL(e){return typeof e=="symbol"||_L(e)&&OL(e)==DL}var RL=PL,IL=lL,V0=Vm,AL=RL,H0=NaN,ML=/^[-+]0x[0-9a-f]+$/i,LL=/^0b[01]+$/i,FL=/^0o[0-7]+$/i,NL=parseInt;function jL(e){if(typeof e=="number")return e;if(AL(e))return H0;if(V0(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=V0(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=IL(e);var n=LL.test(e);return n||FL.test(e)?NL(e.slice(2),n?2:8):ML.test(e)?H0:+e}var BL=jL,$L=Vm,Rg=tL,U0=BL,VL="Expected a function",HL=Math.max,UL=Math.min;function WL(e,t,n){var r,i,o,s,u,f,p=0,y=!1,g=!1,x=!0;if(typeof e!="function")throw new TypeError(VL);t=U0(t)||0,$L(n)&&(y=!!n.leading,g="maxWait"in n,o=g?HL(U0(n.maxWait)||0,t):o,x="trailing"in n?!!n.trailing:x);function C(ce){var T=r,se=i;return r=i=void 0,p=ce,s=e.apply(se,T),s}function D(ce){return p=ce,u=setTimeout(I,t),y?C(ce):s}function A(ce){var T=ce-f,se=ce-p,re=t-T;return g?UL(re,o-se):re}function M(ce){var T=ce-f,se=ce-p;return f===void 0||T>=t||T<0||g&&se>=o}function I(){var ce=Rg();if(M(ce))return H(ce);u=setTimeout(I,A(ce))}function H(ce){return u=void 0,x&&r?C(ce):(r=i=void 0,s)}function U(){u!==void 0&&clearTimeout(u),p=0,r=f=i=u=void 0}function Q(){return u===void 0?s:H(Rg())}function Z(){var ce=Rg(),T=M(ce);if(r=arguments,i=this,f=ce,T){if(u===void 0)return D(f);if(g)return clearTimeout(u),u=setTimeout(I,t),C(f)}return u===void 0&&(u=setTimeout(I,t)),s}return Z.cancel=U,Z.flush=Q,Z}var cT=WL;const Ig=Eu(cT);var zL=cT,YL=Vm,GL="Expected a function";function qL(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(GL);return YL(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),zL(e,t,{leading:r,maxWait:t,trailing:i})}var XL=qL;const KL=Eu(XL);var df=function(){return df=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},df.apply(this,arguments)};function fT(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function dT(e){return!e||!e.ownerDocument?document:e.ownerDocument}var hT=function(e){var t={},n=Array.prototype.reduce.call(e,function(r,i){var o=i.name.match(/data-simplebar-(.+)/);if(o){var s=o[1].replace(/\W+(.)/g,function(u,f){return f.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 pT(e,t){var n;e&&(n=e.classList).add.apply(n,t.split(" "))}function gT(e,t){e&&t.split(" ").forEach(function(n){e.classList.remove(n)})}function vT(e){return".".concat(e.split(" ").join("."))}var Hm=!!(typeof window<"u"&&window.document&&window.document.createElement),ZL=Object.freeze({__proto__:null,addClasses:pT,canUseDOM:Hm,classNamesToQuery:vT,getElementDocument:dT,getElementWindow:fT,getOptions:hT,removeClasses:gT}),cf=null,W0=null;Hm&&window.addEventListener("resize",function(){W0!==window.devicePixelRatio&&(W0=window.devicePixelRatio,cf=null)});function z0(){if(cf===null){if(typeof document>"u")return cf=0,cf;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),cf=n}return cf}var ru=fT,Ag=dT,JL=hT,iu=pT,ou=gT,_o=vT,Jf=function(){function e(t,n){n===void 0&&(n={});var r=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.isDragging=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var i=ru(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,iu(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(){ou(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(iu(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){ou(r.el,r.classNames.mouseEntered),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isMouseEntering=!1},this._onMouseMove=function(i){r.mouseX=i.clientX,r.mouseY=i.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this._onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth(),r.hideNativeScrollbar()},this.onPointerEvent=function(i){if(!(!r.axis.x.track.el||!r.axis.y.track.el||!r.axis.x.scrollbar.el||!r.axis.y.scrollbar.el)){var o,s;r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(o=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(s=r.isWithinBounds(r.axis.y.track.rect)),(o||s)&&(i.stopPropagation(),i.type==="pointerdown"&&i.pointerType!=="touch"&&(o&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(i,"x"):r.onTrackClick(i,"x")),s&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(i,"y"):r.onTrackClick(i,"y"))))}},this.drag=function(i){var o,s,u,f,p,y,g,x,C,D,A;if(!(!r.draggedAxis||!r.contentWrapperEl)){var M,I=r.axis[r.draggedAxis].track,H=(s=(o=I.rect)===null||o===void 0?void 0:o[r.axis[r.draggedAxis].sizeAttr])!==null&&s!==void 0?s:0,U=r.axis[r.draggedAxis].scrollbar,Q=(f=(u=r.contentWrapperEl)===null||u===void 0?void 0:u[r.axis[r.draggedAxis].scrollSizeAttr])!==null&&f!==void 0?f:0,Z=parseInt((y=(p=r.elStyles)===null||p===void 0?void 0:p[r.axis[r.draggedAxis].sizeAttr])!==null&&y!==void 0?y:"0px",10);i.preventDefault(),i.stopPropagation(),r.draggedAxis==="y"?M=i.pageY:M=i.pageX;var ce=M-((x=(g=I.rect)===null||g===void 0?void 0:g[r.axis[r.draggedAxis].offsetAttr])!==null&&x!==void 0?x:0)-r.axis[r.draggedAxis].dragOffset;ce=r.draggedAxis==="x"&&r.isRtl?((D=(C=I.rect)===null||C===void 0?void 0:C[r.axis[r.draggedAxis].sizeAttr])!==null&&D!==void 0?D:0)-U.size-ce:ce;var T=ce/(H-U.size),se=T*(Q-Z);r.draggedAxis==="x"&&r.isRtl&&(se=!((A=e.getRtlHelpers())===null||A===void 0)&&A.isScrollingToNegative?-se:se),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=se}},this.onEndDrag=function(i){r.isDragging=!1;var o=Ag(r.el),s=ru(r.el);i.preventDefault(),i.stopPropagation(),ou(r.el,r.classNames.dragging),r.onStopScrolling(),o.removeEventListener("mousemove",r.drag,!0),o.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=s.setTimeout(function(){o.removeEventListener("click",r.preventClick,!0),o.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null})},this.preventClick=function(i){i.preventDefault(),i.stopPropagation()},this.el=t,this.options=df(df({},e.defaultOptions),n),this.classNames=df(df({},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=KL(this._onMouseMove,64),this.onWindowResize=Ig(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Ig(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Ig(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:z0()}catch{return z0()}},e.getOffset=function(t){var n=t.getBoundingClientRect(),r=Ag(t),i=ru(t);return{top:n.top+(i.pageYOffset||r.documentElement.scrollTop),left:n.left+(i.pageXOffset||r.documentElement.scrollLeft)}},e.prototype.init=function(){Hm&&(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(_o(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(_o(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(_o(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(_o(this.classNames.offset)),this.maskEl=this.el.querySelector(_o(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,_o(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(_o(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(_o(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(_o(this.classNames.track)).concat(_o(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(_o(this.classNames.track)).concat(_o(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(_o(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(_o(this.classNames.scrollbar)))||null,this.options.autoHide||(iu(this.axis.x.scrollbar.el,this.classNames.visible),iu(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,n,r=ru(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=ru(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var n=this.contentEl.offsetWidth,r=this.heightAutoObserverEl.offsetHeight<=1,i=this.heightAutoObserverEl.offsetWidth<=1||n>0,o=this.contentWrapperEl.offsetWidth,s=this.elStyles.overflowX,u=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var f=this.contentEl.scrollHeight,p=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=r?"auto":"100%",this.placeholderEl.style.width=i?"".concat(n||p,"px"):"auto",this.placeholderEl.style.height="".concat(f,"px");var y=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&p>n,this.axis.y.isOverflowing=f>y,this.axis.x.isOverflowing=s==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=u==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var g=this.axis.x.isOverflowing?this.scrollbarWidth:0,x=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&p>o-x,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&f>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,u;return u=Math.max(~~(s*o),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(u=Math.min(u,this.options.scrollbarMaxSize)),u},e.prototype.positionScrollbar=function(t){var n,r,i;t===void 0&&(t="y");var o=this.axis[t].scrollbar;if(!(!this.axis[t].isOverflowing||!this.contentWrapperEl||!o.el||!this.elStyles)){var s=this.contentWrapperEl[this.axis[t].scrollSizeAttr],u=((n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])||0,f=parseInt(this.elStyles[this.axis[t].sizeAttr],10),p=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];p=t==="x"&&this.isRtl&&(!((r=e.getRtlHelpers())===null||r===void 0)&&r.isScrollOriginAtZero)?-p:p,t==="x"&&this.isRtl&&(p=!((i=e.getRtlHelpers())===null||i===void 0)&&i.isScrollingToNegative?p:-p);var y=p/(s-f),g=~~((u-o.size)*y);g=t==="x"&&this.isRtl?-g+(u-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&&(iu(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(t){t===void 0&&(t="y"),!this.isDragging&&this.axis[t].isOverflowing&&this.axis[t].scrollbar.isVisible&&(ou(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),iu(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?iu(n.scrollbar.el,this.classNames.hover):ou(n.scrollbar.el,this.classNames.hover)):(ou(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),ou(this.axis[t].track.el,this.classNames.hover),ou(this.axis[t].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)},e.prototype.onDragStart=function(t,n){var r;n===void 0&&(n="y"),this.isDragging=!0;var i=Ag(this.el),o=ru(this.el),s=this.axis[n].scrollbar,u=n==="y"?t.pageY:t.pageX;this.axis[n].dragOffset=u-(((r=s.rect)===null||r===void 0?void 0:r[this.axis[n].offsetAttr])||0),this.draggedAxis=n,iu(this.el,this.classNames.dragging),i.addEventListener("mousemove",this.drag,!0),i.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(i.addEventListener("click",this.preventClick,!0),i.addEventListener("dblclick",this.preventClick,!0)):(o.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(t,n){var r=this,i,o,s,u;n===void 0&&(n="y");var f=this.axis[n];if(!(!this.options.clickOnTrack||!f.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var p=ru(this.el);this.axis[n].scrollbar.rect=f.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,x=parseInt((u=(s=this.elStyles)===null||s===void 0?void 0:s[this.axis[n].sizeAttr])!==null&&u!==void 0?u:"0px",10),C=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],D=n==="y"?this.mouseY-g:this.mouseX-g,A=D<0?-1:1,M=A===-1?C-x:C+x,I=40,H=function(){r.contentWrapperEl&&(A===-1?C>M&&(C-=I,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=C,p.requestAnimationFrame(H)):C<M&&(C+=I,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=C,p.requestAnimationFrame(H)))};H()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var t=ru(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},e.prototype.unMount=function(){this.removeListeners()},e.prototype.isWithinBounds=function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height},e.prototype.findChild=function(t,n){var r=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,function(i){return r.call(i,n)})[0]},e.rtlHelpers=null,e.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",tabIndex:0,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},e.getOptions=JL,e.helpers=ZL,e}(),Yo=function(){return Yo=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},Yo.apply(this,arguments)};function QL(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 mT=bn.forwardRef(function(e,t){var n=e.children,r=e.scrollableNodeProps,i=r===void 0?{}:r,o=QL(e,["children","scrollableNodeProps"]),s=bn.useRef(),u=bn.useRef(),f=bn.useRef(),p={},y={};Object.keys(o).forEach(function(C){Object.prototype.hasOwnProperty.call(Jf.defaultOptions,C)?p[C]=o[C]:y[C]=o[C]});var g=Yo(Yo({},Jf.defaultOptions.classNames),p.classNames),x=Yo(Yo({},i),{className:"".concat(g.contentWrapper).concat(i.className?" ".concat(i.className):""),tabIndex:p.tabIndex||Jf.defaultOptions.tabIndex,role:"region","aria-label":p.ariaLabel||Jf.defaultOptions.ariaLabel});return bn.useEffect(function(){var C;return u.current=x.ref?x.ref.current:u.current,s.current&&(C=new Jf(s.current,Yo(Yo(Yo({},p),u.current&&{scrollableNode:u.current}),f.current&&{contentNode:f.current})),typeof t=="function"?t(C):t&&(t.current=C)),function(){C==null||C.unMount(),C=null,typeof t=="function"&&t(null)}},[]),bn.createElement("div",Yo({"data-simplebar":"init",ref:s},y),bn.createElement("div",{className:g.wrapper},bn.createElement("div",{className:g.heightAutoObserverWrapperEl},bn.createElement("div",{className:g.heightAutoObserverEl})),bn.createElement("div",{className:g.mask},bn.createElement("div",{className:g.offset},typeof n=="function"?n({scrollableNodeRef:u,scrollableNodeProps:Yo(Yo({},x),{ref:u}),contentNodeRef:f,contentNodeProps:{className:g.contentEl,ref:f}}):bn.createElement("div",Yo({},x),bn.createElement("div",{className:g.contentEl},n)))),bn.createElement("div",{className:g.placeholder})),bn.createElement("div",{className:"".concat(g.track," simplebar-horizontal")},bn.createElement("div",{className:g.scrollbar})),bn.createElement("div",{className:"".concat(g.track," simplebar-vertical")},bn.createElement("div",{className:g.scrollbar})))});mT.displayName="SimpleBar";const yT='[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{top:2px;bottom:2px;left:2px;right:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:0;bottom:0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}';function bT(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=bT(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function yl(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=bT(e))&&(r&&(r+=" "),r+=t);return r}const Td=e=>typeof e=="number"&&!isNaN(e),yc=e=>typeof e=="string",Go=e=>typeof e=="function",jh=e=>yc(e)||Go(e)?e:null,Fv=e=>q.isValidElement(e)||yc(e)||Go(e)||Td(e);function e2(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 Op(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:o=300}=e;return function(s){let{children:u,position:f,preventExitTransition:p,done:y,nodeRef:g,isIn:x,playToast:C}=s;const D=r?`${t}--${f}`:t,A=r?`${n}--${f}`:n,M=q.useRef(0);return q.useLayoutEffect(()=>{const I=g.current,H=D.split(" "),U=Q=>{Q.target===g.current&&(C(),I.removeEventListener("animationend",U),I.removeEventListener("animationcancel",U),M.current===0&&Q.type!=="animationcancel"&&I.classList.remove(...H))};I.classList.add(...H),I.addEventListener("animationend",U),I.addEventListener("animationcancel",U)},[]),q.useEffect(()=>{const I=g.current,H=()=>{I.removeEventListener("animationend",H),i?e2(I,y,o):y()};x||(p?H():(M.current=1,I.className+=` ${A}`,I.addEventListener("animationend",H)))},[x]),q.createElement(q.Fragment,null,u)}}function Y0(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 io=new Map;let Cd=[];const Nv=new Set,t2=e=>Nv.forEach(t=>t(e)),wT=()=>io.size>0;function xT(e,t){var n;if(t)return!((n=io.get(t))==null||!n.isToastActive(e));let r=!1;return io.forEach(i=>{i.isToastActive(e)&&(r=!0)}),r}function ST(e,t){Fv(e)&&(wT()||Cd.push({content:e,options:t}),io.forEach(n=>{n.buildToast(e,t)}))}function G0(e,t){io.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 n2(e){const{subscribe:t,getSnapshot:n,setProps:r}=q.useRef(function(o){const s=o.containerId||1;return{subscribe(u){const f=function(y,g,x){let C=1,D=0,A=[],M=[],I=[],H=g;const U=new Map,Q=new Set,Z=()=>{I=Array.from(U.values()),Q.forEach(se=>se())},ce=se=>{M=se==null?[]:M.filter(re=>re!==se),Z()},T=se=>{const{toastId:re,onOpen:Pe,updateId:He,children:Ue}=se.props,Qe=He==null;se.staleId&&U.delete(se.staleId),U.set(re,se),M=[...M,se.props.toastId].filter(Ke=>Ke!==se.staleId),Z(),x(Y0(se,Qe?"added":"updated")),Qe&&Go(Pe)&&Pe(q.isValidElement(Ue)&&Ue.props)};return{id:y,props:H,observe:se=>(Q.add(se),()=>Q.delete(se)),toggle:(se,re)=>{U.forEach(Pe=>{re!=null&&re!==Pe.props.toastId||Go(Pe.toggle)&&Pe.toggle(se)})},removeToast:ce,toasts:U,clearQueue:()=>{D-=A.length,A=[]},buildToast:(se,re)=>{if(($e=>{let{containerId:je,toastId:ke,updateId:De}=$e;const Fe=je?je!==y:y!==1,rt=U.has(ke)&&De==null;return Fe||rt})(re))return;const{toastId:Pe,updateId:He,data:Ue,staleId:Qe,delay:Ke}=re,he=()=>{ce(Pe)},me=He==null;me&&D++;const Le={...H,style:H.toastStyle,key:C++,...Object.fromEntries(Object.entries(re).filter($e=>{let[je,ke]=$e;return ke!=null})),toastId:Pe,updateId:He,data:Ue,closeToast:he,isIn:!1,className:jh(re.className||H.toastClassName),bodyClassName:jh(re.bodyClassName||H.bodyClassName),progressClassName:jh(re.progressClassName||H.progressClassName),autoClose:!re.isLoading&&(Ge=re.autoClose,tt=H.autoClose,Ge===!1||Td(Ge)&&Ge>0?Ge:tt),deleteToast(){const $e=U.get(Pe),{onClose:je,children:ke}=$e.props;Go(je)&&je(q.isValidElement(ke)&&ke.props),x(Y0($e,"removed")),U.delete(Pe),D--,D<0&&(D=0),A.length>0?T(A.shift()):Z()}};var Ge,tt;Le.closeButton=H.closeButton,re.closeButton===!1||Fv(re.closeButton)?Le.closeButton=re.closeButton:re.closeButton===!0&&(Le.closeButton=!Fv(H.closeButton)||H.closeButton);let xe=se;q.isValidElement(se)&&!yc(se.type)?xe=q.cloneElement(se,{closeToast:he,toastProps:Le,data:Ue}):Go(se)&&(xe=se({closeToast:he,toastProps:Le,data:Ue}));const Ce={content:xe,props:Le,staleId:Qe};H.limit&&H.limit>0&&D>H.limit&&me?A.push(Ce):Td(Ke)?setTimeout(()=>{T(Ce)},Ke):T(Ce)},setProps(se){H=se},setToggle:(se,re)=>{U.get(se).toggle=re},isToastActive:se=>M.some(re=>re===se),getSnapshot:()=>I}}(s,o,t2);io.set(s,f);const p=f.observe(u);return Cd.forEach(y=>ST(y.content,y.options)),Cd=[],()=>{p(),io.delete(s)}},setProps(u){var f;(f=io.get(s))==null||f.setProps(u)},getSnapshot(){var u;return(u=io.get(s))==null?void 0:u.getSnapshot()}}}(e)).current;r(e);const i=q.useSyncExternalStore(t,n,n);return{getToastToRender:function(o){if(!i)return[];const s=new Map;return e.newestOnTop&&i.reverse(),i.forEach(u=>{const{position:f}=u.props;s.has(f)||s.set(f,[]),s.get(f).push(u)}),Array.from(s,u=>o(u[0],u[1]))},isToastActive:xT,count:i==null?void 0:i.length}}function r2(e){const[t,n]=q.useState(!1),[r,i]=q.useState(!1),o=q.useRef(null),s=q.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:u,pauseOnHover:f,closeToast:p,onClick:y,closeOnClick:g}=e;var x,C;function D(){n(!0)}function A(){n(!1)}function M(U){const Q=o.current;s.canDrag&&Q&&(s.didMove=!0,t&&A(),s.delta=e.draggableDirection==="x"?U.clientX-s.start:U.clientY-s.start,s.start!==U.clientX&&(s.canCloseOnClick=!1),Q.style.transform=`translate3d(${e.draggableDirection==="x"?`${s.delta}px, var(--y)`:`0, calc(${s.delta}px + var(--y))`},0)`,Q.style.opacity=""+(1-Math.abs(s.delta/s.removalDistance)))}function I(){document.removeEventListener("pointermove",M),document.removeEventListener("pointerup",I);const U=o.current;if(s.canDrag&&s.didMove&&U){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance)return i(!0),e.closeToast(),void e.collapseAll();U.style.transition="transform 0.2s, opacity 0.2s",U.style.removeProperty("transform"),U.style.removeProperty("opacity")}}(C=io.get((x={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||C.setToggle(x.id,x.fn),q.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||A(),window.addEventListener("focus",D),window.addEventListener("blur",A),()=>{window.removeEventListener("focus",D),window.removeEventListener("blur",A)}},[e.pauseOnFocusLoss]);const H={onPointerDown:function(U){if(e.draggable===!0||e.draggable===U.pointerType){s.didMove=!1,document.addEventListener("pointermove",M),document.addEventListener("pointerup",I);const Q=o.current;s.canCloseOnClick=!0,s.canDrag=!0,Q.style.transition="none",e.draggableDirection==="x"?(s.start=U.clientX,s.removalDistance=Q.offsetWidth*(e.draggablePercent/100)):(s.start=U.clientY,s.removalDistance=Q.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(U){const{top:Q,bottom:Z,left:ce,right:T}=o.current.getBoundingClientRect();U.nativeEvent.type!=="touchend"&&e.pauseOnHover&&U.clientX>=ce&&U.clientX<=T&&U.clientY>=Q&&U.clientY<=Z?A():D()}};return u&&f&&(H.onMouseEnter=A,e.stacked||(H.onMouseLeave=D)),g&&(H.onClick=U=>{y&&y(U),s.canCloseOnClick&&p()}),{playToast:D,pauseToast:A,isRunning:t,preventExitTransition:r,toastRef:o,eventHandlers:H}}function i2(e){let{delay:t,isRunning:n,closeToast:r,type:i="default",hide:o,className:s,style:u,controlledProgress:f,progress:p,rtl:y,isIn:g,theme:x}=e;const C=o||f&&p===0,D={...u,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};f&&(D.transform=`scaleX(${p})`);const A=yl("Toastify__progress-bar",f?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${x}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":y}),M=Go(s)?s({rtl:y,type:i,defaultClassName:A}):yl(A,s),I={[f&&p>=1?"onTransitionEnd":"onAnimationEnd"]:f&&p<1?null:()=>{g&&r()}};return q.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":C},q.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${x} Toastify__progress-bar--${i}`}),q.createElement("div",{role:"progressbar","aria-hidden":C?"true":"false","aria-label":"notification timer",className:M,style:D,...I}))}let o2=1;const TT=()=>""+o2++;function a2(e){return e&&(yc(e.toastId)||Td(e.toastId))?e.toastId:TT()}function ad(e,t){return ST(e,t),t.toastId}function tp(e,t){return{...t,type:t&&t.type||e,toastId:a2(t)}}function fh(e){return(t,n)=>ad(t,tp(e,n))}function Tn(e,t){return ad(e,tp("default",t))}Tn.loading=(e,t)=>ad(e,tp("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),Tn.promise=function(e,t,n){let r,{pending:i,error:o,success:s}=t;i&&(r=yc(i)?Tn.loading(i,n):Tn.loading(i.render,{...n,...i}));const u={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},f=(y,g,x)=>{if(g==null)return void Tn.dismiss(r);const C={type:y,...u,...n,data:x},D=yc(g)?{render:g}:g;return r?Tn.update(r,{...C,...D}):Tn(D.render,{...C,...D}),x},p=Go(e)?e():e;return p.then(y=>f("success",s,y)).catch(y=>f("error",o,y)),p},Tn.success=fh("success"),Tn.info=fh("info"),Tn.error=fh("error"),Tn.warning=fh("warning"),Tn.warn=Tn.warning,Tn.dark=(e,t)=>ad(e,tp("default",{theme:"dark",...t})),Tn.dismiss=function(e){(function(t){var n;if(wT()){if(t==null||yc(n=t)||Td(n))io.forEach(r=>{r.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const r=io.get(t.containerId);r?r.removeToast(t.id):io.forEach(i=>{i.removeToast(t.id)})}}else Cd=Cd.filter(r=>t!=null&&r.options.toastId!==t)})(e)},Tn.clearWaitingQueue=function(e){e===void 0&&(e={}),io.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},Tn.isActive=xT,Tn.update=function(e,t){t===void 0&&(t={});const n=((r,i)=>{var o;let{containerId:s}=i;return(o=io.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:TT()};o.toastId!==e&&(o.staleId=e);const s=o.render||i;delete o.render,ad(s,o)}},Tn.done=e=>{Tn.update(e,{progress:1})},Tn.onChange=function(e){return Nv.add(e),()=>{Nv.delete(e)}},Tn.play=e=>G0(!0,e),Tn.pause=e=>G0(!1,e);const s2=typeof window<"u"?q.useLayoutEffect:q.useEffect,dh=e=>{let{theme:t,type:n,isLoading:r,...i}=e;return q.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...i})},Mg={info:function(e){return q.createElement(dh,{...e},q.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return q.createElement(dh,{...e},q.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return q.createElement(dh,{...e},q.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return q.createElement(dh,{...e},q.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return q.createElement("div",{className:"Toastify__spinner"})}},l2=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:o}=r2(e),{closeButton:s,children:u,autoClose:f,onClick:p,type:y,hideProgressBar:g,closeToast:x,transition:C,position:D,className:A,style:M,bodyClassName:I,bodyStyle:H,progressClassName:U,progressStyle:Q,updateId:Z,role:ce,progress:T,rtl:se,toastId:re,deleteToast:Pe,isIn:He,isLoading:Ue,closeOnClick:Qe,theme:Ke}=e,he=yl("Toastify__toast",`Toastify__toast-theme--${Ke}`,`Toastify__toast--${y}`,{"Toastify__toast--rtl":se},{"Toastify__toast--close-on-click":Qe}),me=Go(A)?A({rtl:se,position:D,type:y,defaultClassName:he}):yl(he,A),Le=function(Ce){let{theme:$e,type:je,isLoading:ke,icon:De}=Ce,Fe=null;const rt={theme:$e,type:je};return De===!1||(Go(De)?Fe=De({...rt,isLoading:ke}):q.isValidElement(De)?Fe=q.cloneElement(De,rt):ke?Fe=Mg.spinner():(at=>at in Mg)(je)&&(Fe=Mg[je](rt))),Fe}(e),Ge=!!T||!f,tt={closeToast:x,type:y,theme:Ke};let xe=null;return s===!1||(xe=Go(s)?s(tt):q.isValidElement(s)?q.cloneElement(s,tt):function(Ce){let{closeToast:$e,theme:je,ariaLabel:ke="close"}=Ce;return q.createElement("button",{className:`Toastify__close-button Toastify__close-button--${je}`,type:"button",onClick:De=>{De.stopPropagation(),$e(De)},"aria-label":ke},q.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},q.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(tt)),q.createElement(C,{isIn:He,done:Pe,position:D,preventExitTransition:n,nodeRef:r,playToast:o},q.createElement("div",{id:re,onClick:p,"data-in":He,className:me,...i,style:M,ref:r},q.createElement("div",{...He&&{role:ce},className:Go(I)?I({type:y}):yl("Toastify__toast-body",I),style:H},Le!=null&&q.createElement("div",{className:yl("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!Ue})},Le),q.createElement("div",null,u)),xe,q.createElement(i2,{...Z&&!Ge?{key:`pb-${Z}`}:{},rtl:se,theme:Ke,delay:f,isRunning:t,isIn:He,closeToast:x,hide:g,type:y,style:Q,className:U,controlledProgress:Ge,progress:T||0})))},_p=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},u2=Op(_p("bounce",!0));Op(_p("slide",!0));Op(_p("zoom"));Op(_p("flip"));const c2={position:"top-right",transition:u2,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function f2(e){let t={...c2,...e};const n=e.stacked,[r,i]=q.useState(!0),o=q.useRef(null),{getToastToRender:s,isToastActive:u,count:f}=n2(t),{className:p,style:y,rtl:g,containerId:x}=t;function C(A){const M=yl("Toastify__toast-container",`Toastify__toast-container--${A}`,{"Toastify__toast-container--rtl":g});return Go(p)?p({position:A,rtl:g,defaultClassName:M}):yl(M,jh(p))}function D(){n&&(i(!0),Tn.play())}return s2(()=>{if(n){var A;const M=o.current.querySelectorAll('[data-in="true"]'),I=12,H=(A=t.position)==null?void 0:A.includes("top");let U=0,Q=0;Array.from(M).reverse().forEach((Z,ce)=>{const T=Z;T.classList.add("Toastify__toast--stacked"),ce>0&&(T.dataset.collapsed=`${r}`),T.dataset.pos||(T.dataset.pos=H?"top":"bot");const se=U*(r?.2:1)+(r?0:I*ce);T.style.setProperty("--y",`${H?se:-1*se}px`),T.style.setProperty("--g",`${I}`),T.style.setProperty("--s",""+(1-(r?Q:0))),U+=T.offsetHeight,Q+=.025})}},[r,f,n]),q.createElement("div",{ref:o,className:"Toastify",id:x,onMouseEnter:()=>{n&&(i(!1),Tn.pause())},onMouseLeave:D},s((A,M)=>{const I=M.length?{...y}:{...y,pointerEvents:"none"};return q.createElement("div",{className:C(A),style:I,key:`container-${A}`},M.map(H=>{let{content:U,props:Q}=H;return q.createElement(l2,{...Q,stacked:n,collapseAll:D,isIn:u(Q.toastId,Q.containerId),style:Q.style,key:`toast-${Q.key}`},U)}))}))}function d2(){return Ne.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Ne.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"}),Ne.jsx("path",{d:"M10.9942 6.89636V11.6737",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),Ne.jsx("path",{d:"M10.9941 15.1038H11.0049",stroke:"#E01B00",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function h2(){return Ne.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Ne.jsx("rect",{width:"24",height:"24",rx:"12",fill:"#009D4F"}),Ne.jsx("path",{d:"M7.25244 12L10.4174 15.165L16.7474 8.83496",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function p2(){return Ne.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Ne.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"}),Ne.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 Um={paddingLeft:"16px",borderLeft:"2px solid",boxShadow:"none",fontFamily:"inherit"},g2=({closeToast:e})=>Ne.jsx("i",{className:"material-icons",onClick:e,style:{cursor:"pointer"},children:Ne.jsx("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Ne.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"})})}),Wm=(e,t)=>{Tn.success(e,{icon:Ne.jsx(h2,{}),bodyStyle:{},position:"bottom-right",style:{...Um,background:Wr.successLight,borderColor:Wr.success,color:Wr.success},...t})},Bd=(e,t)=>{Tn.error(e,{icon:Ne.jsx(d2,{}),position:"bottom-right",style:{...Um,background:Wr.dangerLight,borderColor:Wr.danger,color:Wr.danger},...t})},v2=(e,t)=>{Tn.error(e,{icon:Ne.jsx(p2,{}),position:"bottom-right",style:{...Um,background:Wr.warningLight,borderColor:Wr.warning,color:Wr.warning},...t})},m2=e=>{Tn(e,{closeButton:g2,toastId:"notify",position:"top-right",hideProgressBar:!0,containerId:"toastifyNotification",style:{padding:"12px 24px 12px 0",paddingLeft:"16px",fontFamily:"inherit",width:"610px",minHeight:"72px",color:Wr.textPrimary}})};function CT(e){let t=null;return()=>(t==null&&(t=e()),t)}function y2(e,t){return e.filter(n=>n!==t)}function b2(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 w2{enter(t){const n=this.entered.length,r=i=>this.isNodeInDocument(i)&&(!i.contains||i.contains(t));return this.entered=b2(this.entered.filter(r),[t]),n===0&&this.entered.length>0}leave(t){const n=this.entered.length;return this.entered=y2(this.entered.filter(this.isNodeInDocument),t),n>0&&this.entered.length===0}reset(){this.entered=[]}constructor(t){this.entered=[],this.isNodeInDocument=t}}class x2{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 ET="__NATIVE_FILE__",kT="__NATIVE_URL__",OT="__NATIVE_TEXT__",_T="__NATIVE_HTML__",q0=Object.freeze(Object.defineProperty({__proto__:null,FILE:ET,HTML:_T,TEXT:OT,URL:kT},Symbol.toStringTag,{value:"Module"}));function Lg(e,t,n){const r=t.reduce((i,o)=>i||e.getData(o),"");return r??n}const jv={[ET]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[_T]:{exposeProperties:{html:(e,t)=>Lg(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[kT]:{exposeProperties:{urls:(e,t)=>Lg(e,t,"").split(`
|
|
4
|
-
`),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[OT]:{exposeProperties:{text:(e,t)=>Lg(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function S2(e,t){const n=jv[e];if(!n)throw new Error(`native type ${e} has no configuration`);const r=new x2(n);return r.loadDataTransfer(t),r}function Fg(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(jv).filter(n=>{const r=jv[n];return r!=null&&r.matchesTypes?r.matchesTypes.some(i=>t.indexOf(i)>-1):!1})[0]||null}const T2=CT(()=>/firefox/i.test(navigator.userAgent)),DT=CT(()=>!!window.safari);class X0{interpolate(t){const{xs:n,ys:r,c1s:i,c2s:o,c3s:s}=this;let u=n.length-1;if(t===n[u])return r[u];let f=0,p=s.length-1,y;for(;f<=p;){y=Math.floor(.5*(f+p));const C=n[y];if(C<t)f=y+1;else if(C>t)p=y-1;else return r[y]}u=Math.max(0,p);const g=t-n[u],x=g*g;return r[u]+i[u]*g+o[u]*x+s[u]*g*x}constructor(t,n){const{length:r}=t,i=[];for(let C=0;C<r;C++)i.push(C);i.sort((C,D)=>t[C]<t[D]?-1:1);const o=[],s=[];let u,f;for(let C=0;C<r-1;C++)u=t[C+1]-t[C],f=n[C+1]-n[C],o.push(u),s.push(f/u);const p=[s[0]];for(let C=0;C<o.length-1;C++){const D=s[C],A=s[C+1];if(D*A<=0)p.push(0);else{u=o[C];const M=o[C+1],I=u+M;p.push(3*I/((I+M)/D+(I+u)/A))}}p.push(s[s.length-1]);const y=[],g=[];let x;for(let C=0;C<p.length-1;C++){x=s[C];const D=p[C],A=1/o[C],M=D+p[C+1]-x-x;y.push((x-D-M)*A),g.push(M*A*A)}this.xs=t,this.ys=n,this.c1s=p,this.c2s=y,this.c3s=g}}const C2=1;function PT(e){const t=e.nodeType===C2?e:e.parentElement;if(!t)return null;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function hh(e){return{x:e.clientX,y:e.clientY}}function E2(e){var t;return e.nodeName==="IMG"&&(T2()||!(!((t=document.documentElement)===null||t===void 0)&&t.contains(e)))}function k2(e,t,n,r){let i=e?t.width:n,o=e?t.height:r;return DT()&&e&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}function O2(e,t,n,r,i){const o=E2(t),u=PT(o?e:t),f={x:n.x-u.x,y:n.y-u.y},{offsetWidth:p,offsetHeight:y}=e,{anchorX:g,anchorY:x}=r,{dragPreviewWidth:C,dragPreviewHeight:D}=k2(o,t,p,y),A=()=>{let ce=new X0([0,.5,1],[f.y,f.y/y*D,f.y+D-y]).interpolate(x);return DT()&&o&&(ce+=(window.devicePixelRatio-1)*D),ce},M=()=>new X0([0,.5,1],[f.x,f.x/p*C,f.x+C-p]).interpolate(g),{offsetX:I,offsetY:H}=i,U=I===0||I,Q=H===0||H;return{x:U?I:M(),y:Q?H:A()}}let _2=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 D2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K0(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){D2(e,i,n[i])})}return e}class P2{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 K0({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 K0({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}isDraggingNativeItem(){const t=this.monitor.getItemType();return Object.keys(q0).some(n=>q0[n]===t)}beginDragNativeItem(t,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=S2(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&&PT(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=hh(i);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(o||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:s});const{dataTransfer:u}=i,f=Fg(u);if(this.monitor.isDragging()){if(u&&typeof u.setDragImage=="function"){const y=this.monitor.getSourceId(),g=this.sourceNodes.get(y),x=this.sourcePreviewNodes.get(y)||g;if(x){const{anchorX:C,anchorY:D,offsetX:A,offsetY:M}=this.getCurrentSourcePreviewNodeOptions(),U=O2(g,x,s,{anchorX:C,anchorY:D},{offsetX:A,offsetY:M});u.setDragImage(x,U.x,U.y)}}try{u==null||u.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(i.target);const{captureDraggingState:p}=this.getCurrentSourcePreviewNodeOptions();p?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(f)this.beginDragNativeItem(f);else{if(u&&!u.types&&(i.target&&!i.target.hasAttribute||!i.target.hasAttribute("draggable")))return;i.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=i=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var o;(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(i.dataTransfer)}if(!this.enterLeaveCounter.enter(i.target)||this.monitor.isDragging())return;const{dataTransfer:u}=i,f=Fg(u);f&&this.beginDragNativeItem(f,u)},this.handleTopDragEnter=i=>{const{dragEnterTargetIds:o}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=i.altKey,o.length>0&&this.actions.hover(o,{clientOffset:hh(i)}),o.some(u=>this.monitor.canDropOnTarget(u))&&(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=i=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var o;(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(i.dataTransfer)}},this.handleTopDragOver=i=>{const{dragOverTargetIds:o}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect="none");return}this.altKeyPressed=i.altKey,this.lastClientOffset=hh(i),this.scheduleHover(o),(o||[]).some(u=>this.monitor.canDropOnTarget(u))?(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?i.preventDefault():(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=i=>{this.isDraggingNativeItem()&&i.preventDefault(),this.enterLeaveCounter.leave(i.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=i=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var o;i.preventDefault(),(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(i.dataTransfer)}else Fg(i.dataTransfer)&&i.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=i=>{const{dropTargetIds:o}=this;this.dropTargetIds=[],this.actions.hover(o,{clientOffset:hh(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 _2(n,r),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new w2(this.isNodeInDocument)}}let ph;function R2(){return ph||(ph=new Image,ph.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),ph}const I2=function(t,n,r){return new P2(t,n,r)};var bc=[],A2=function(){return bc.some(function(e){return e.activeTargets.length>0})},M2=function(){return bc.some(function(e){return e.skippedTargets.length>0})},Z0="ResizeObserver loop completed with undelivered notifications.",L2=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Z0}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Z0),window.dispatchEvent(e)},Ed;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Ed||(Ed={}));var wc=function(e){return Object.freeze(e)},F2=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,wc(this)}return e}(),RT=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,wc(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,i=t.top,o=t.right,s=t.bottom,u=t.left,f=t.width,p=t.height;return{x:n,y:r,top:i,right:o,bottom:s,left:u,width:f,height:p}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),zm=function(e){return e instanceof SVGElement&&"getBBox"in e},IT=function(e){if(zm(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)},J0=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)},N2=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},sd=typeof window<"u"?window:{},gh=new WeakMap,Q0=/auto|scroll/,j2=/^tb|vertical/,B2=/msie|trident/i.test(sd.navigator&&sd.navigator.userAgent),Is=function(e){return parseFloat(e||"0")},bf=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new F2((n?t:e)||0,(n?e:t)||0)},ew=wc({devicePixelContentBoxSize:bf(),borderBoxSize:bf(),contentBoxSize:bf(),contentRect:new RT(0,0,0,0)}),AT=function(e,t){if(t===void 0&&(t=!1),gh.has(e)&&!t)return gh.get(e);if(IT(e))return gh.set(e,ew),ew;var n=getComputedStyle(e),r=zm(e)&&e.ownerSVGElement&&e.getBBox(),i=!B2&&n.boxSizing==="border-box",o=j2.test(n.writingMode||""),s=!r&&Q0.test(n.overflowY||""),u=!r&&Q0.test(n.overflowX||""),f=r?0:Is(n.paddingTop),p=r?0:Is(n.paddingRight),y=r?0:Is(n.paddingBottom),g=r?0:Is(n.paddingLeft),x=r?0:Is(n.borderTopWidth),C=r?0:Is(n.borderRightWidth),D=r?0:Is(n.borderBottomWidth),A=r?0:Is(n.borderLeftWidth),M=g+p,I=f+y,H=A+C,U=x+D,Q=u?e.offsetHeight-U-e.clientHeight:0,Z=s?e.offsetWidth-H-e.clientWidth:0,ce=i?M+H:0,T=i?I+U:0,se=r?r.width:Is(n.width)-ce-Z,re=r?r.height:Is(n.height)-T-Q,Pe=se+M+Z+H,He=re+I+Q+U,Ue=wc({devicePixelContentBoxSize:bf(Math.round(se*devicePixelRatio),Math.round(re*devicePixelRatio),o),borderBoxSize:bf(Pe,He,o),contentBoxSize:bf(se,re,o),contentRect:new RT(g,f,se,re)});return gh.set(e,Ue),Ue},MT=function(e,t,n){var r=AT(e,n),i=r.borderBoxSize,o=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(t){case Ed.DEVICE_PIXEL_CONTENT_BOX:return s;case Ed.BORDER_BOX:return i;default:return o}},$2=function(){function e(t){var n=AT(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=wc([n.borderBoxSize]),this.contentBoxSize=wc([n.contentBoxSize]),this.devicePixelContentBoxSize=wc([n.devicePixelContentBoxSize])}return e}(),LT=function(e){if(IT(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},V2=function(){var e=1/0,t=[];bc.forEach(function(s){if(s.activeTargets.length!==0){var u=[];s.activeTargets.forEach(function(p){var y=new $2(p.target),g=LT(p.target);u.push(y),p.lastReportedSize=MT(p.target,p.observedBox),g<e&&(e=g)}),t.push(function(){s.callback.call(s.observer,u,s.observer)}),s.activeTargets.splice(0,s.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var i=r[n];i()}return e},tw=function(e){bc.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(i){i.isActive()&&(LT(i.target)>e?n.activeTargets.push(i):n.skippedTargets.push(i))})})},H2=function(){var e=0;for(tw(e);A2();)e=V2(),tw(e);return M2()&&L2(),e>0},Ng,FT=[],U2=function(){return FT.splice(0).forEach(function(e){return e()})},W2=function(e){if(!Ng){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return U2()}).observe(n,r),Ng=function(){n.textContent="".concat(t?t--:t++)}}FT.push(e),Ng()},z2=function(e){W2(function(){requestAnimationFrame(e)})},Bh=0,Y2=function(){return!!Bh},G2=250,q2={attributes:!0,characterData:!0,childList:!0,subtree:!0},nw=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],rw=function(e){return e===void 0&&(e=0),Date.now()+e},jg=!1,X2=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=G2),!jg){jg=!0;var r=rw(t);z2(function(){var i=!1;try{i=H2()}finally{if(jg=!1,t=r-rw(),!Y2())return;i?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,q2)};document.body?n():sd.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),nw.forEach(function(n){return sd.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),nw.forEach(function(n){return sd.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),Bv=new X2,iw=function(e){!Bh&&e>0&&Bv.start(),Bh+=e,!Bh&&Bv.stop()},K2=function(e){return!zm(e)&&!N2(e)&&getComputedStyle(e).display==="inline"},Z2=function(){function e(t,n){this.target=t,this.observedBox=n||Ed.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=MT(this.target,this.observedBox,!0);return K2(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),J2=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),vh=new WeakMap,ow=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},mh=function(){function e(){}return e.connect=function(t,n){var r=new J2(t,n);vh.set(t,r)},e.observe=function(t,n,r){var i=vh.get(t),o=i.observationTargets.length===0;ow(i.observationTargets,n)<0&&(o&&bc.push(i),i.observationTargets.push(new Z2(n,r&&r.box)),iw(1),Bv.schedule())},e.unobserve=function(t,n){var r=vh.get(t),i=ow(r.observationTargets,n),o=r.observationTargets.length===1;i>=0&&(o&&bc.splice(bc.indexOf(r),1),r.observationTargets.splice(i,1),iw(-1))},e.disconnect=function(t){var n=this,r=vh.get(t);r.observationTargets.slice().forEach(function(i){return n.unobserve(t,i.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),Q2=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.");mh.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(!J0(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");mh.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(!J0(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");mh.unobserve(this,t)},e.prototype.disconnect=function(){mh.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}(),$v=function(e,t){return $v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},$v(e,t)};function NT(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");$v(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var nt=function(){return nt=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},nt.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 zr(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(u){s={error:u}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o}function Xo(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 aw="production",jT=typeof process>"u"||process.env===void 0?aw:process.env.NODE_ENV||aw,vl=function(e){return{isEnabled:function(t){return e.some(function(n){return!!t[n]})}}},kd={measureLayout:vl(["layout","layoutId","drag"]),animation:vl(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:vl(["exit"]),drag:vl(["drag","dragControls"]),focus:vl(["whileFocus"]),hover:vl(["whileHover","onHoverStart","onHoverEnd"]),tap:vl(["whileTap","onTap","onTapStart","onTapCancel"]),pan:vl(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:vl(["whileInView","onViewportEnter","onViewportLeave"])};function eF(e){for(var t in e)e[t]!==null&&(t==="projectionNodeConstructor"?kd.projectionNodeConstructor=e[t]:kd[t].Component=e[t])}var $d=function(){},ka=function(){};process.env.NODE_ENV!=="production"&&($d=function(e,t){!e&&typeof console<"u"&&console.warn(t)},ka=function(e,t){if(!e)throw new Error(t)});var BT=q.createContext({strict:!1}),$T=Object.keys(kd),tF=$T.length;function nF(e,t,n){var r=[],i=q.useContext(BT);if(!t)return null;jT!=="production"&&n&&i.strict&&ka(!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<tF;o++){var s=$T[o],u=kd[s],f=u.isEnabled,p=u.Component;f(e)&&p&&r.push(bn.createElement(p,nt({key:s},e,{visualElement:t})))}return r}var Ym=q.createContext({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),Dp=q.createContext({});function rF(){return q.useContext(Dp).visualElement}var Pp=q.createContext(null),Rf=typeof document<"u",sw=Rf?q.useLayoutEffect:q.useEffect,Vv={current:null},VT=!1;function iF(){if(VT=!0,!!Rf)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return Vv.current=e.matches};e.addListener(t),t()}else Vv.current=!1}function oF(){!VT&&iF();var e=zr(q.useState(Vv.current),1),t=e[0];return t}function aF(){var e=oF(),t=q.useContext(Ym).reducedMotion;return t==="never"?!1:t==="always"?!0:e}function sF(e,t,n,r){var i=q.useContext(BT),o=rF(),s=q.useContext(Pp),u=aF(),f=q.useRef(void 0);r||(r=i.renderer),!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceId:s==null?void 0:s.id,blockInitialAnimation:(s==null?void 0:s.initial)===!1,shouldReduceMotion:u}));var p=f.current;return sw(function(){p==null||p.syncRender()}),q.useEffect(function(){var y;(y=p==null?void 0:p.animationState)===null||y===void 0||y.animateChanges()}),sw(function(){return function(){return p==null?void 0:p.notifyUnmount()}},[]),p}function hf(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function lF(e,t,n){return q.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):hf(n)&&(n.current=r))},[t])}function HT(e){return Array.isArray(e)}function ns(e){return typeof e=="string"||HT(e)}function uF(e){var t={};return e.forEachValue(function(n,r){return t[r]=n.get()}),t}function cF(e){var t={};return e.forEachValue(function(n,r){return t[r]=n.getVelocity()}),t}function UT(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 Rp(e,t,n){var r=e.getProps();return UT(r,t,n??r.custom,uF(e),cF(e))}function Ip(e){var t;return typeof((t=e.animate)===null||t===void 0?void 0:t.start)=="function"||ns(e.initial)||ns(e.animate)||ns(e.whileHover)||ns(e.whileDrag)||ns(e.whileTap)||ns(e.whileFocus)||ns(e.exit)}function WT(e){return!!(Ip(e)||e.variants)}function fF(e,t){if(Ip(e)){var n=e.initial,r=e.animate;return{initial:n===!1||ns(n)?n:void 0,animate:ns(r)?r:void 0}}return e.inherit!==!1?t:{}}function dF(e){var t=fF(e,q.useContext(Dp)),n=t.initial,r=t.animate;return q.useMemo(function(){return{initial:n,animate:r}},[lw(n),lw(r)])}function lw(e){return Array.isArray(e)?e.join(" "):e}function Ap(e){var t=q.useRef(null);return t.current===null&&(t.current=e()),t.current}var ld={hasAnimatedSinceResize:!0,hasEverUpdated:!1},hF=1;function pF(){return Ap(function(){if(ld.hasEverUpdated)return hF++})}var zT=q.createContext({}),YT=q.createContext({});function gF(e,t,n,r){var i,o=t.layoutId,s=t.layout,u=t.drag,f=t.dragConstraints,p=t.layoutScroll,y=q.useContext(YT);!r||!n||n!=null&&n.projection||(n.projection=new r(e,n.getLatestValues(),(i=n.parent)===null||i===void 0?void 0:i.projection),n.projection.setOptions({layoutId:o,layout:s,alwaysMeasureLayout:!!u||f&&hf(f),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:typeof s=="string"?s:"both",initialPromotionConfig:y,layoutScroll:p}))}var vF=function(e){NT(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}(q.Component);function mF(e){var t=e.preloadedFeatures,n=e.createVisualElement,r=e.projectionNodeConstructor,i=e.useRender,o=e.useVisualState,s=e.Component;t&&eF(t);function u(f,p){var y=yF(f);f=nt(nt({},f),{layoutId:y});var g=q.useContext(Ym),x=null,C=dF(f),D=g.isStatic?void 0:pF(),A=o(f,g.isStatic);return!g.isStatic&&Rf&&(C.visualElement=sF(s,A,nt(nt({},g),f),n),gF(D,f,C.visualElement,r||kd.projectionNodeConstructor),x=nF(f,C.visualElement,t)),bn.createElement(vF,{visualElement:C.visualElement,props:nt(nt({},g),f)},x,bn.createElement(Dp.Provider,{value:C},i(s,f,D,lF(A,C.visualElement,p),A,g.isStatic,C.visualElement)))}return q.forwardRef(u)}function yF(e){var t,n=e.layoutId,r=(t=q.useContext(zT))===null||t===void 0?void 0:t.id;return r&&n!==void 0?r+"-"+n:n}function bF(e){function t(r,i){return i===void 0&&(i={}),mF(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 wF=["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 Gm(e){return typeof e!="string"||e.includes("-")?!1:!!(wF.indexOf(e)>-1||/[A-Z]/.test(e))}var np={};function xF(e){Object.assign(np,e)}var Hv=["","X","Y","Z"],SF=["translate","scale","rotate","skew"],Od=["transformPerspective","x","y","z"];SF.forEach(function(e){return Hv.forEach(function(t){return Od.push(e+t)})});function TF(e,t){return Od.indexOf(e)-Od.indexOf(t)}var CF=new Set(Od);function Vd(e){return CF.has(e)}var EF=new Set(["originX","originY","originZ"]);function GT(e){return EF.has(e)}function qT(e,t){var n=t.layout,r=t.layoutId;return Vd(e)||GT(e)||(n||r!==void 0)&&(!!np[e]||e==="opacity")}var El=function(e){return!!(e!==null&&typeof e=="object"&&e.getVelocity)},kF={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function OF(e,t,n,r){var i=e.transform,o=e.transformKeys,s=t.enableHardwareAcceleration,u=s===void 0?!0:s,f=t.allowTransformNone,p=f===void 0?!0:f,y="";o.sort(TF);for(var g=!1,x=o.length,C=0;C<x;C++){var D=o[C];y+="".concat(kF[D]||D,"(").concat(i[D],") "),D==="z"&&(g=!0)}return!g&&u?y+="translateZ(0)":y=y.trim(),r?y=r(i,n?"":y):p&&n&&(y="none"),y}function _F(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 XT(e){return e.startsWith("--")}var DF=function(e,t){return t&&typeof e=="number"?t.transform(e):e};const KT=(e,t)=>n=>Math.max(Math.min(n,t),e),ud=e=>e%1?Number(e.toFixed(5)):e,_d=/(-)?([\d]*\.?[\d])+/g,Uv=/(#[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,PF=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Hd(e){return typeof e=="string"}const Oc={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},cd=Object.assign(Object.assign({},Oc),{transform:KT(0,1)}),yh=Object.assign(Object.assign({},Oc),{default:1}),Ud=e=>({test:t=>Hd(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),su=Ud("deg"),Ns=Ud("%"),Rt=Ud("px"),RF=Ud("vh"),IF=Ud("vw"),uw=Object.assign(Object.assign({},Ns),{parse:e=>Ns.parse(e)/100,transform:e=>Ns.transform(e*100)}),qm=(e,t)=>n=>!!(Hd(n)&&PF.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),ZT=(e,t,n)=>r=>{if(!Hd(r))return r;const[i,o,s,u]=r.match(_d);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:u!==void 0?parseFloat(u):1}},gc={test:qm("hsl","hue"),parse:ZT("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ns.transform(ud(t))+", "+Ns.transform(ud(n))+", "+ud(cd.transform(r))+")"},AF=KT(0,255),Bg=Object.assign(Object.assign({},Oc),{transform:e=>Math.round(AF(e))}),hu={test:qm("rgb","red"),parse:ZT("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Bg.transform(e)+", "+Bg.transform(t)+", "+Bg.transform(n)+", "+ud(cd.transform(r))+")"};function MF(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 Wv={test:qm("#"),parse:MF,transform:hu.transform},to={test:e=>hu.test(e)||Wv.test(e)||gc.test(e),parse:e=>hu.test(e)?hu.parse(e):gc.test(e)?gc.parse(e):Wv.parse(e),transform:e=>Hd(e)?e:e.hasOwnProperty("red")?hu.transform(e):gc.transform(e)},JT="${c}",QT="${n}";function LF(e){var t,n,r,i;return isNaN(e)&&Hd(e)&&((n=(t=e.match(_d))===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0)+((i=(r=e.match(Uv))===null||r===void 0?void 0:r.length)!==null&&i!==void 0?i:0)>0}function eC(e){typeof e=="number"&&(e=`${e}`);const t=[];let n=0;const r=e.match(Uv);r&&(n=r.length,e=e.replace(Uv,JT),t.push(...r.map(to.parse)));const i=e.match(_d);return i&&(e=e.replace(_d,QT),t.push(...i.map(Oc.parse))),{values:t,numColors:n,tokenised:e}}function tC(e){return eC(e).values}function nC(e){const{values:t,numColors:n,tokenised:r}=eC(e),i=t.length;return o=>{let s=r;for(let u=0;u<i;u++)s=s.replace(u<n?JT:QT,u<n?to.transform(o[u]):ud(o[u]));return s}}const FF=e=>typeof e=="number"?0:e;function NF(e){const t=tC(e);return nC(e)(t.map(FF))}const kl={test:LF,parse:tC,createTransformer:nC,getAnimatableNone:NF},jF=new Set(["brightness","contrast","saturate","opacity"]);function BF(e){let[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(_d)||[];if(!r)return e;const i=n.replace(r,"");let o=jF.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const $F=/([a-z-]*)\(.*?\)/g,zv=Object.assign(Object.assign({},kl),{getAnimatableNone:e=>{const t=e.match($F);return t?t.map(BF).join(" "):e}});var cw=nt(nt({},Oc),{transform:Math.round}),rC={borderWidth:Rt,borderTopWidth:Rt,borderRightWidth:Rt,borderBottomWidth:Rt,borderLeftWidth:Rt,borderRadius:Rt,radius:Rt,borderTopLeftRadius:Rt,borderTopRightRadius:Rt,borderBottomRightRadius:Rt,borderBottomLeftRadius:Rt,width:Rt,maxWidth:Rt,height:Rt,maxHeight:Rt,size:Rt,top:Rt,right:Rt,bottom:Rt,left:Rt,padding:Rt,paddingTop:Rt,paddingRight:Rt,paddingBottom:Rt,paddingLeft:Rt,margin:Rt,marginTop:Rt,marginRight:Rt,marginBottom:Rt,marginLeft:Rt,rotate:su,rotateX:su,rotateY:su,rotateZ:su,scale:yh,scaleX:yh,scaleY:yh,scaleZ:yh,skew:su,skewX:su,skewY:su,distance:Rt,translateX:Rt,translateY:Rt,translateZ:Rt,x:Rt,y:Rt,z:Rt,perspective:Rt,transformPerspective:Rt,opacity:cd,originX:uw,originY:uw,originZ:Rt,zIndex:cw,fillOpacity:cd,strokeOpacity:cd,numOctaves:cw};function Xm(e,t,n,r){var i,o=e.style,s=e.vars,u=e.transform,f=e.transformKeys,p=e.transformOrigin;f.length=0;var y=!1,g=!1,x=!0;for(var C in t){var D=t[C];if(XT(C)){s[C]=D;continue}var A=rC[C],M=DF(D,A);if(Vd(C)){if(y=!0,u[C]=M,f.push(C),!x)continue;D!==((i=A.default)!==null&&i!==void 0?i:0)&&(x=!1)}else GT(C)?(p[C]=M,g=!0):o[C]=M}y?o.transform=OF(e,n,x,r):r?o.transform=r({},""):!t.transform&&o.transform&&(o.transform="none"),g&&(o.transformOrigin=_F(p))}var Km=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function iC(e,t,n){for(var r in t)!El(t[r])&&!qT(r,n)&&(e[r]=t[r])}function VF(e,t,n){var r=e.transformTemplate;return q.useMemo(function(){var i=Km();Xm(i,t,{enableHardwareAcceleration:!n},r);var o=i.vars,s=i.style;return nt(nt({},o),s)},[t])}function HF(e,t,n){var r=e.style||{},i={};return iC(i,r,e),Object.assign(i,VF(e,t,n)),e.transformValues&&(i=e.transformValues(i)),i}function UF(e,t,n){var r={},i=HF(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 WF=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 rp(e){return WF.has(e)}var oC=function(e){return!rp(e)};function zF(e){e&&(oC=function(t){return t.startsWith("on")?!rp(t):e(t)})}try{zF(require("@emotion/is-prop-valid").default)}catch{}function YF(e,t,n){var r={};for(var i in e)(oC(i)||n===!0&&rp(i)||!t&&!rp(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function fw(e,t,n){return typeof e=="string"?e:Rt.transform(t+n*e)}function GF(e,t,n){var r=fw(t,e.x,e.width),i=fw(n,e.y,e.height);return"".concat(r," ").concat(i)}var qF={offset:"strokeDashoffset",array:"strokeDasharray"};function XF(e,t,n,r,i){n===void 0&&(n=1),r===void 0&&(r=0),e.pathLength=1;var o=qF;e[o.offset]=Rt.transform(-r);var s=Rt.transform(t),u=Rt.transform(n);e[o.array]="".concat(s," ").concat(u)}function Zm(e,t,n,r){var i=t.attrX,o=t.attrY,s=t.originX,u=t.originY,f=t.pathLength,p=t.pathSpacing,y=p===void 0?1:p,g=t.pathOffset,x=g===void 0?0:g,C=_a(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]);Xm(e,C,n,r),e.attrs=e.style,e.style={};var D=e.attrs,A=e.style,M=e.dimensions;D.transform&&(M&&(A.transform=D.transform),delete D.transform),M&&(s!==void 0||u!==void 0||A.transform)&&(A.transformOrigin=GF(M,s!==void 0?s:.5,u!==void 0?u:.5)),i!==void 0&&(D.x=i),o!==void 0&&(D.y=o),f!==void 0&&XF(D,f,y,x)}var aC=function(){return nt(nt({},Km()),{attrs:{}})};function KF(e,t){var n=q.useMemo(function(){var i=aC();return Zm(i,t,{enableHardwareAcceleration:!1},e.transformTemplate),nt(nt({},i.attrs),{style:nt({},i.style)})},[t]);if(e.style){var r={};iC(r,e.style,e),n.style=nt(nt({},r),n.style)}return n}function ZF(e){e===void 0&&(e=!1);var t=function(n,r,i,o,s,u){var f=s.latestValues,p=Gm(n)?KF:UF,y=p(r,f,u),g=YF(r,typeof n=="string",e),x=nt(nt(nt({},g),y),{ref:o});return i&&(x["data-projection-id"]=i),q.createElement(n,x)};return t}var JF=/([a-z])([A-Z])/g,QF="$1-$2",sC=function(e){return e.replace(JF,QF).toLowerCase()};function lC(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 uC=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function cC(e,t,n,r){lC(e,t,void 0,r);for(var i in t.attrs)e.setAttribute(uC.has(i)?i:sC(i),t.attrs[i])}function Jm(e){var t=e.style,n={};for(var r in t)(El(t[r])||qT(r,e))&&(n[r]=t[r]);return n}function fC(e){var t=Jm(e);for(var n in e)if(El(e[n])){var r=n==="x"||n==="y"?"attr"+n.toUpperCase():n;t[r]=e[n]}return t}function Qm(e){return typeof e=="object"&&typeof e.start=="function"}var Dd=function(e){return Array.isArray(e)},eN=function(e){return!!(e&&typeof e=="object"&&e.mix&&e.toValue)},dC=function(e){return Dd(e)?e[e.length-1]||0:e};function $h(e){var t=El(e)?e.get():e;return eN(t)?t.toValue():t}function dw(e,t,n,r){var i=e.scrapeMotionValuesFromProps,o=e.createRenderState,s=e.onMount,u={latestValues:tN(t,n,r,i),renderState:o()};return s&&(u.mount=function(f){return s(t,f,u)}),u}var hC=function(e){return function(t,n){var r=q.useContext(Dp),i=q.useContext(Pp);return n?dw(e,t,r,i):Ap(function(){return dw(e,t,r,i)})}};function tN(e,t,n,r){var i={},o=(n==null?void 0:n.initial)===!1,s=r(e);for(var u in s)i[u]=$h(s[u]);var f=e.initial,p=e.animate,y=Ip(e),g=WT(e);t&&g&&!y&&e.inherit!==!1&&(f??(f=t.initial),p??(p=t.animate));var x=o||f===!1,C=x?p:f;if(C&&typeof C!="boolean"&&!Qm(C)){var D=Array.isArray(C)?C:[C];D.forEach(function(A){var M=UT(e,A);if(M){var I=M.transitionEnd;M.transition;var H=_a(M,["transitionEnd","transition"]);for(var U in H){var Q=H[U];if(Array.isArray(Q)){var Z=x?Q.length-1:0;Q=Q[Z]}Q!==null&&(i[U]=Q)}for(var U in I)i[U]=I[U]}})}return i}var nN={useVisualState:hC({scrapeMotionValuesFromProps:fC,createRenderState:aC,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}}Zm(r,i,{enableHardwareAcceleration:!1},e.transformTemplate),cC(t,r)}})},rN={useVisualState:hC({scrapeMotionValuesFromProps:Jm,createRenderState:Km})};function iN(e,t,n,r,i){var o=t.forwardMotionProps,s=o===void 0?!1:o,u=Gm(e)?nN:rN;return nt(nt({},u),{preloadedFeatures:n,useRender:ZF(s),createVisualElement:r,projectionNodeConstructor:i,Component:e})}var An;(function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"})(An||(An={}));function Mp(e,t,n,r){return r===void 0&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function Yv(e,t,n,r){q.useEffect(function(){var i=e.current;if(n&&i)return Mp(i,t,n,r)},[e,t,n,r])}function oN(e){var t=e.whileFocus,n=e.visualElement,r=function(){var o;(o=n.animationState)===null||o===void 0||o.setActive(An.Focus,!0)},i=function(){var o;(o=n.animationState)===null||o===void 0||o.setActive(An.Focus,!1)};Yv(n,"focus",t?r:void 0),Yv(n,"blur",t?i:void 0)}function pC(e){return typeof PointerEvent<"u"&&e instanceof PointerEvent?e.pointerType==="mouse":e instanceof MouseEvent}function gC(e){var t=!!e.touches;return t}function aN(e){return function(t){var n=t instanceof MouseEvent,r=!n||n&&t.button===0;r&&e(t)}}var sN={pageX:0,pageY:0};function lN(e,t){t===void 0&&(t="page");var n=e.touches[0]||e.changedTouches[0],r=n||sN;return{x:r[t+"X"],y:r[t+"Y"]}}function uN(e,t){return t===void 0&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function ey(e,t){return t===void 0&&(t="page"),{point:gC(e)?lN(e,t):uN(e,t)}}var vC=function(e,t){t===void 0&&(t=!1);var n=function(r){return e(r,ey(r))};return t?aN(n):n},cN=function(){return Rf&&window.onpointerdown===null},fN=function(){return Rf&&window.ontouchstart===null},dN=function(){return Rf&&window.onmousedown===null},hN={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},pN={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function mC(e){return cN()?e:fN()?pN[e]:dN()?hN[e]:e}function wf(e,t,n,r){return Mp(e,mC(t),vC(n,t==="pointerdown"),r)}function ip(e,t,n,r){return Yv(e,mC(t),n&&vC(n,t==="pointerdown"),r)}function yC(e){var t=null;return function(){var n=function(){t=null};return t===null?(t=e,n):!1}}var hw=yC("dragHorizontal"),pw=yC("dragVertical");function bC(e){var t=!1;if(e==="y")t=pw();else if(e==="x")t=hw();else{var n=hw(),r=pw();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function wC(){var e=bC(!0);return e?(e(),!1):!0}function gw(e,t,n){return function(r,i){var o;!pC(r)||wC()||((o=e.animationState)===null||o===void 0||o.setActive(An.Hover,t),n==null||n(r,i))}}function gN(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,i=e.visualElement;ip(i,"pointerenter",t||r?gw(i,!0,t):void 0,{passive:!t}),ip(i,"pointerleave",n||r?gw(i,!1,n):void 0,{passive:!n})}var xC=function(e,t){return t?e===t?!0:xC(e,t.parentElement):!1};function SC(e){return q.useEffect(function(){return function(){return e()}},[])}const op=(e,t,n)=>Math.min(Math.max(n,e),t),vw=.001,vN=.01,mw=10,mN=.05,yN=1;function bN({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;$d(e<=mw*1e3,"Spring duration must be 10 seconds or less");let s=1-t;s=op(mN,yN,s),e=op(vN,mw,e/1e3),s<1?(i=p=>{const y=p*s,g=y*e,x=y-n,C=Gv(p,s),D=Math.exp(-g);return vw-x/C*D},o=p=>{const g=p*s*e,x=g*n+n,C=Math.pow(s,2)*Math.pow(p,2)*e,D=Math.exp(-g),A=Gv(Math.pow(p,2),s);return(-i(p)+vw>0?-1:1)*((x-C)*D)/A}):(i=p=>{const y=Math.exp(-p*e),g=(p-n)*e+1;return-.001+y*g},o=p=>{const y=Math.exp(-p*e),g=(n-p)*(e*e);return y*g});const u=5/e,f=xN(i,o,u);if(e=e*1e3,isNaN(f))return{stiffness:100,damping:10,duration:e};{const p=Math.pow(f,2)*r;return{stiffness:p,damping:s*2*Math.sqrt(r*p),duration:e}}}const wN=12;function xN(e,t,n){let r=n;for(let i=1;i<wN;i++)r=r-e(r)/t(r);return r}function Gv(e,t){return e*Math.sqrt(1-t*t)}const SN=["duration","bounce"],TN=["stiffness","damping","mass"];function yw(e,t){return t.some(n=>e[n]!==void 0)}function CN(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!yw(e,TN)&&yw(e,SN)){const n=bN(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function ty(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:u,damping:f,mass:p,velocity:y,duration:g,isResolvedFromDuration:x}=CN(o),C=bw,D=bw;function A(){const M=y?-(y/1e3):0,I=n-t,H=f/(2*Math.sqrt(u*p)),U=Math.sqrt(u/p)/1e3;if(i===void 0&&(i=Math.min(Math.abs(n-t)/100,.4)),H<1){const Q=Gv(U,H);C=Z=>{const ce=Math.exp(-H*U*Z);return n-ce*((M+H*U*I)/Q*Math.sin(Q*Z)+I*Math.cos(Q*Z))},D=Z=>{const ce=Math.exp(-H*U*Z);return H*U*ce*(Math.sin(Q*Z)*(M+H*U*I)/Q+I*Math.cos(Q*Z))-ce*(Math.cos(Q*Z)*(M+H*U*I)-Q*I*Math.sin(Q*Z))}}else if(H===1)C=Q=>n-Math.exp(-U*Q)*(I+(M+U*I)*Q);else{const Q=U*Math.sqrt(H*H-1);C=Z=>{const ce=Math.exp(-H*U*Z),T=Math.min(Q*Z,300);return n-ce*((M+H*U*I)*Math.sinh(T)+Q*I*Math.cosh(T))/Q}}}return A(),{next:M=>{const I=C(M);if(x)s.done=M>=g;else{const H=D(M)*1e3,U=Math.abs(H)<=r,Q=Math.abs(n-I)<=i;s.done=U&&Q}return s.value=s.done?n:I,s},flipTarget:()=>{y=-y,[t,n]=[n,t],A()}}}ty.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const bw=e=>0,Pd=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},or=(e,t,n)=>-n*e+n*t+e;function $g(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 u=n<.5?n*(1+t):n+t-n*t,f=2*n-u;i=$g(f,u,e+1/3),o=$g(f,u,e),s=$g(f,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const EN=(e,t,n)=>{const r=e*e,i=t*t;return Math.sqrt(Math.max(0,n*(i-r)+r))},kN=[Wv,hu,gc],xw=e=>kN.find(t=>t.test(e)),Sw=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,TC=(e,t)=>{let n=xw(e),r=xw(t);ka(!!n,Sw(e)),ka(!!r,Sw(t));let i=n.parse(e),o=r.parse(t);n===gc&&(i=ww(i),n=hu),r===gc&&(o=ww(o),r=hu);const s=Object.assign({},i);return u=>{for(const f in s)f!=="alpha"&&(s[f]=EN(i[f],o[f],u));return s.alpha=or(i.alpha,o.alpha,u),n.transform(s)}},qv=e=>typeof e=="number",ON=(e,t)=>n=>t(e(n)),Lp=(...e)=>e.reduce(ON);function CC(e,t){return qv(e)?n=>or(e,t,n):to.test(e)?TC(e,t):kC(e,t)}const EC=(e,t)=>{const n=[...e],r=n.length,i=e.map((o,s)=>CC(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}},_N=(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]=CC(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}};function Tw(e){const t=kl.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 kC=(e,t)=>{const n=kl.createTransformer(t),r=Tw(e),i=Tw(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?Lp(EC(r.parsed,i.parsed),n):($d(!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}`)},DN=(e,t)=>n=>or(e,t,n);function PN(e){if(typeof e=="number")return DN;if(typeof e=="string")return to.test(e)?TC:kC;if(Array.isArray(e))return EC;if(typeof e=="object")return _N}function RN(e,t,n){const r=[],i=n||PN(e[0]),o=e.length-1;for(let s=0;s<o;s++){let u=i(e[s],e[s+1]);if(t){const f=Array.isArray(t)?t[s]:t;u=Lp(f,u)}r.push(u)}return r}function IN([e,t],[n]){return r=>n(Pd(e,t,r))}function AN(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 f=1;for(;f<n&&!(e[f]>i||f===r);f++);o=f-1}const u=Pd(e[o],e[o+1],i);return t[o](u)}}function OC(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;ka(o===t.length,"Both input and output ranges must be the same length"),ka(!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=RN(t,r,i),u=o===2?IN(e,s):AN(e,s);return n?f=>u(op(e[0],e[o-1],f)):u}const Fp=e=>t=>1-e(1-t),ny=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,MN=e=>t=>Math.pow(t,e),_C=e=>t=>t*t*((e+1)*t-e),LN=e=>{const t=_C(e);return n=>(n*=2)<1?.5*t(n):.5*(2-Math.pow(2,-10*(n-1)))},DC=1.525,FN=4/11,NN=8/11,jN=9/10,ry=e=>e,iy=MN(2),BN=Fp(iy),PC=ny(iy),RC=e=>1-Math.sin(Math.acos(e)),oy=Fp(RC),$N=ny(oy),ay=_C(DC),VN=Fp(ay),HN=ny(ay),UN=LN(DC),WN=4356/361,zN=35442/1805,YN=16061/1805,ap=e=>{if(e===1||e===0)return e;const t=e*e;return e<FN?7.5625*t:e<NN?9.075*t-9.9*e+3.4:e<jN?WN*t-zN*e+YN:10.8*e*e-20.52*e+10.72},GN=Fp(ap),qN=e=>e<.5?.5*(1-ap(1-e*2)):.5*ap(e*2-1)+.5;function XN(e,t){return e.map(()=>t||PC).splice(0,e.length-1)}function KN(e){const t=e.length;return e.map((n,r)=>r!==0?r/(t-1):0)}function ZN(e,t){return e.map(n=>n*t)}function Vh({from:e=0,to:t=1,ease:n,offset:r,duration:i=300}){const o={done:!1,value:e},s=Array.isArray(t)?t:[e,t],u=ZN(r&&r.length===s.length?r:KN(s),i);function f(){return OC(u,s,{ease:Array.isArray(n)?n:XN(s,n)})}let p=f();return{next:y=>(o.value=p(y),o.done=y>=i,o),flipTarget:()=>{s.reverse(),p=f()}}}function JN({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:o}){const s={done:!1,value:t};let u=n*e;const f=t+u,p=o===void 0?f:o(f);return p!==f&&(u=p-t),{next:y=>{const g=-u*Math.exp(-y/r);return s.done=!(g>i||g<-i),s.value=s.done?p:p+g,s},flipTarget:()=>{}}}const Cw={keyframes:Vh,spring:ty,decay:JN};function QN(e){if(Array.isArray(e.to))return Vh;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")?Vh:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?ty:Vh}const IC=1/60*1e3,ej=typeof performance<"u"?()=>performance.now():()=>Date.now(),AC=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(ej()),IC);function tj(e){let t=[],n=[],r=0,i=!1,o=!1;const s=new WeakSet,u={schedule:(f,p=!1,y=!1)=>{const g=y&&i,x=g?t:n;return p&&s.add(f),x.indexOf(f)===-1&&(x.push(f),g&&i&&(r=t.length)),f},cancel:f=>{const p=n.indexOf(f);p!==-1&&n.splice(p,1),s.delete(f)},process:f=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let p=0;p<r;p++){const y=t[p];y(f),s.has(y)&&(u.schedule(y),e())}i=!1,o&&(o=!1,u.process(f))}};return u}const nj=40;let Xv=!0,Rd=!1,Kv=!1;const xf={delta:0,timestamp:0},Wd=["read","update","preRender","render","postRender"],Np=Wd.reduce((e,t)=>(e[t]=tj(()=>Rd=!0),e),{}),js=Wd.reduce((e,t)=>{const n=Np[t];return e[t]=(r,i=!1,o=!1)=>(Rd||ij(),n.schedule(r,i,o)),e},{}),Cf=Wd.reduce((e,t)=>(e[t]=Np[t].cancel,e),{}),Vg=Wd.reduce((e,t)=>(e[t]=()=>Np[t].process(xf),e),{}),rj=e=>Np[e].process(xf),MC=e=>{Rd=!1,xf.delta=Xv?IC:Math.max(Math.min(e-xf.timestamp,nj),1),xf.timestamp=e,Kv=!0,Wd.forEach(rj),Kv=!1,Rd&&(Xv=!1,AC(MC))},ij=()=>{Rd=!0,Xv=!0,Kv||AC(MC)},sp=()=>xf;function LC(e,t,n=0){return e-t-n}function oj(e,t,n=0,r=!0){return r?LC(t+-e,t,n):t-(e-t)+n}function aj(e,t,n,r){return r?e>=t+n:e<=-n}const sj=e=>{const t=({delta:n})=>e(n);return{start:()=>js.update(t,!0),stop:()=>Cf.update(t)}};function FC(e){var t,n,{from:r,autoplay:i=!0,driver:o=sj,elapsed:s=0,repeat:u=0,repeatType:f="loop",repeatDelay:p=0,onPlay:y,onStop:g,onComplete:x,onRepeat:C,onUpdate:D}=e,A=_a(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:M}=A,I,H=0,U=A.duration,Q,Z=!1,ce=!0,T;const se=QN(A);!((n=(t=se).needsInterpolation)===null||n===void 0)&&n.call(t,r,M)&&(T=OC([0,100],[r,M],{clamp:!1}),r=0,M=100);const re=se(Object.assign(Object.assign({},A),{from:r,to:M}));function Pe(){H++,f==="reverse"?(ce=H%2===0,s=oj(s,U,p,ce)):(s=LC(s,U,p),f==="mirror"&&re.flipTarget()),Z=!1,C&&C()}function He(){I.stop(),x&&x()}function Ue(Ke){if(ce||(Ke=-Ke),s+=Ke,!Z){const he=re.next(Math.max(0,s));Q=he.value,T&&(Q=T(Q)),Z=ce?he.done:s<=0}D==null||D(Q),Z&&(H===0&&(U??(U=s)),H<u?aj(s,U,p,ce)&&Pe():He())}function Qe(){y==null||y(),I=o(Ue),I.start()}return i&&Qe(),{stop:()=>{g==null||g(),I.stop()}}}function NC(e,t){return t?e*(1e3/t):0}function lj({from:e=0,velocity:t=0,min:n,max:r,power:i=.8,timeConstant:o=750,bounceStiffness:s=500,bounceDamping:u=10,restDelta:f=1,modifyTarget:p,driver:y,onUpdate:g,onComplete:x,onStop:C}){let D;function A(U){return n!==void 0&&U<n||r!==void 0&&U>r}function M(U){return n===void 0?r:r===void 0||Math.abs(n-U)<Math.abs(r-U)?n:r}function I(U){D==null||D.stop(),D=FC(Object.assign(Object.assign({},U),{driver:y,onUpdate:Q=>{var Z;g==null||g(Q),(Z=U.onUpdate)===null||Z===void 0||Z.call(U,Q)},onComplete:x,onStop:C}))}function H(U){I(Object.assign({type:"spring",stiffness:s,damping:u,restDelta:f},U))}if(A(e))H({from:e,velocity:t,to:M(e)});else{let U=i*t+e;typeof p<"u"&&(U=p(U));const Q=M(U),Z=Q===n?-1:1;let ce,T;const se=re=>{ce=T,T=re,t=NC(re-ce,sp().delta),(Z===1&&re>Q||Z===-1&&re<Q)&&H({from:re,to:Q,velocity:t})};I({type:"decay",from:e,velocity:t,timeConstant:o,power:i,restDelta:f,modifyTarget:p,onUpdate:A(U)?se:void 0})}return{stop:()=>D==null?void 0:D.stop()}}const Zv=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),Ew=e=>Zv(e)&&e.hasOwnProperty("z"),bh=(e,t)=>Math.abs(e-t);function jC(e,t){if(qv(e)&&qv(t))return bh(e,t);if(Zv(e)&&Zv(t)){const n=bh(e.x,t.x),r=bh(e.y,t.y),i=Ew(e)&&Ew(t)?bh(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}const BC=(e,t)=>1-3*t+3*e,$C=(e,t)=>3*t-6*e,VC=e=>3*e,lp=(e,t,n)=>((BC(t,n)*e+$C(t,n))*e+VC(t))*e,HC=(e,t,n)=>3*BC(t,n)*e*e+2*$C(t,n)*e+VC(t),uj=1e-7,cj=10;function fj(e,t,n,r,i){let o,s,u=0;do s=t+(n-t)/2,o=lp(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>uj&&++u<cj);return s}const dj=8,hj=.001;function pj(e,t,n,r){for(let i=0;i<dj;++i){const o=HC(t,n,r);if(o===0)return t;const s=lp(t,n,r)-e;t-=s/o}return t}const Hh=11,wh=1/(Hh-1);function gj(e,t,n,r){if(e===t&&n===r)return ry;const i=new Float32Array(Hh);for(let s=0;s<Hh;++s)i[s]=lp(s*wh,e,n);function o(s){let u=0,f=1;const p=Hh-1;for(;f!==p&&i[f]<=s;++f)u+=wh;--f;const y=(s-i[f])/(i[f+1]-i[f]),g=u+y*wh,x=HC(g,e,n);return x>=hj?pj(s,g,e,n):x===0?g:fj(s,u,u+wh,e,n)}return s=>s===0||s===1?s:lp(o(s),t,r)}function vj(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,i=e.whileTap,o=e.visualElement,s=t||n||r||i,u=q.useRef(!1),f=q.useRef(null),p={passive:!(n||t||r||D)};function y(){var A;(A=f.current)===null||A===void 0||A.call(f),f.current=null}function g(){var A;return y(),u.current=!1,(A=o.animationState)===null||A===void 0||A.setActive(An.Tap,!1),!wC()}function x(A,M){g()&&(xC(o.getInstance(),A.target)?t==null||t(A,M):r==null||r(A,M))}function C(A,M){g()&&(r==null||r(A,M))}function D(A,M){var I;y(),!u.current&&(u.current=!0,f.current=Lp(wf(window,"pointerup",x,p),wf(window,"pointercancel",C,p)),(I=o.animationState)===null||I===void 0||I.setActive(An.Tap,!0),n==null||n(A,M))}ip(o,"pointerdown",s?D:void 0,p),SC(y)}var kw=new Set;function UC(e,t,n){e||kw.has(t)||(console.warn(t),kw.add(t))}var Jv=new WeakMap,Hg=new WeakMap,mj=function(e){var t;(t=Jv.get(e.target))===null||t===void 0||t(e)},yj=function(e){e.forEach(mj)};function bj(e){var t=e.root,n=_a(e,["root"]),r=t||document;Hg.has(r)||Hg.set(r,{});var i=Hg.get(r),o=JSON.stringify(n);return i[o]||(i[o]=new IntersectionObserver(yj,nt({root:t},n))),i[o]}function wj(e,t,n){var r=bj(t);return Jv.set(e,n),r.observe(e),function(){Jv.delete(e),r.unobserve(e)}}function xj(e){var t=e.visualElement,n=e.whileInView,r=e.onViewportEnter,i=e.onViewportLeave,o=e.viewport,s=o===void 0?{}:o,u=q.useRef({hasEnteredView:!1,isInView:!1}),f=!!(n||r||i);s.once&&u.current.hasEnteredView&&(f=!1);var p=typeof IntersectionObserver>"u"?Cj:Tj;p(f,u.current,t,s)}var Sj={some:0,all:1};function Tj(e,t,n,r){var i=r.root,o=r.margin,s=r.amount,u=s===void 0?"some":s,f=r.once;q.useEffect(function(){if(e){var p={root:i==null?void 0:i.current,rootMargin:o,threshold:typeof u=="number"?u:Sj[u]},y=function(g){var x,C=g.isIntersecting;if(t.isInView!==C&&(t.isInView=C,!(f&&!C&&t.hasEnteredView))){C&&(t.hasEnteredView=!0),(x=n.animationState)===null||x===void 0||x.setActive(An.InView,C);var D=n.getProps(),A=C?D.onViewportEnter:D.onViewportLeave;A==null||A(g)}};return wj(n.getInstance(),p,y)}},[e,i,o,u])}function Cj(e,t,n,r){var i=r.fallback,o=i===void 0?!0:i;q.useEffect(function(){!e||!o||(jT!=="production"&&UC(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(function(){var s;t.hasEnteredView=!0;var u=n.getProps().onViewportEnter;u==null||u(null),(s=n.animationState)===null||s===void 0||s.setActive(An.InView,!0)}))},[e])}var pu=function(e){return function(t){return e(t),null}},Ej={inView:pu(xj),tap:pu(vj),focus:pu(oN),hover:pu(gN)},kj=0,Oj=function(){return kj++},_j=function(){return Ap(Oj)};function WC(){var e=q.useContext(Pp);if(e===null)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,i=_j();q.useEffect(function(){return r(i)},[]);var o=function(){return n==null?void 0:n(i)};return!t&&n?[!1,o]:[!0]}function zC(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 up=function(e){return e*1e3},Ow={linear:ry,easeIn:iy,easeInOut:PC,easeOut:BN,circIn:RC,circInOut:$N,circOut:oy,backIn:ay,backInOut:HN,backOut:VN,anticipate:UN,bounceIn:GN,bounceInOut:qN,bounceOut:ap},_w=function(e){if(Array.isArray(e)){ka(e.length===4,"Cubic bezier arrays must contain four numerical values.");var t=zr(e,4),n=t[0],r=t[1],i=t[2],o=t[3];return gj(n,r,i,o)}else if(typeof e=="string")return ka(Ow[e]!==void 0,"Invalid easing type '".concat(e,"'")),Ow[e];return e},Dj=function(e){return Array.isArray(e)&&typeof e[0]!="number"},Dw=function(e,t){return e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&kl.test(t)&&!t.startsWith("url("))},ac=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},xh=function(e){return{type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}},Ug=function(){return{type:"keyframes",ease:"linear",duration:.3}},Pj=function(e){return{type:"keyframes",duration:.8,values:e}},Pw={x:ac,y:ac,z:ac,rotate:ac,rotateX:ac,rotateY:ac,rotateZ:ac,scaleX:xh,scaleY:xh,scale:xh,opacity:Ug,backgroundColor:Ug,color:Ug,default:xh},Rj=function(e,t){var n;return Dd(t)?n=Pj:n=Pw[e]||Pw.default,nt({to:t},n(t))},Ij=nt(nt({},rC),{color:to,backgroundColor:to,outlineColor:to,fill:to,stroke:to,borderColor:to,borderTopColor:to,borderRightColor:to,borderBottomColor:to,borderLeftColor:to,filter:zv,WebkitFilter:zv}),sy=function(e){return Ij[e]};function ly(e,t){var n,r=sy(e);return r!==zv&&(r=kl),(n=r.getAnimatableNone)===null||n===void 0?void 0:n.call(r,t)}function Aj(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 Mj(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"]),u=nt({},s);return n&&(u.offset=n),s.duration&&(u.duration=up(s.duration)),s.repeatDelay&&(u.repeatDelay=up(s.repeatDelay)),t&&(u.ease=Dj(t)?t.map(_w):_w(t)),s.type==="tween"&&(u.type="keyframes"),(r||o||i)&&($d(!Rw,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),Rw=!0,r?u.repeatType="reverse":o?u.repeatType="loop":i&&(u.repeatType="mirror"),u.repeat=o||r||i||s.repeat),s.type!=="spring"&&(u.type="keyframes"),u}function Lj(e,t){var n,r,i=uy(e,t)||{};return(r=(n=i.delay)!==null&&n!==void 0?n:e.delay)!==null&&r!==void 0?r:0}function Fj(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=Xo([],zr(e.to),!1),e.to[0]=e.from),e}function Nj(e,t,n){var r;return Array.isArray(t.to)&&((r=e.duration)!==null&&r!==void 0||(e.duration=.8)),Fj(t),Aj(e)||(e=nt(nt({},e),Rj(n,t.to))),nt(nt({},t),Mj(e))}function jj(e,t,n,r,i){var o,s=uy(r,e),u=(o=s.from)!==null&&o!==void 0?o:t.get(),f=Dw(e,n);u==="none"&&f&&typeof n=="string"?u=ly(e,n):Iw(u)&&typeof n=="string"?u=Aw(n):!Array.isArray(n)&&Iw(n)&&typeof u=="string"&&(n=Aw(u));var p=Dw(e,u);$d(p===f,"You are trying to animate ".concat(e,' from "').concat(u,'" to "').concat(n,'". ').concat(u," is not an animatable value - to enable this animation set ").concat(u," to a value animatable to ").concat(n," via the `style` property."));function y(){var x={from:u,to:n,velocity:t.getVelocity(),onComplete:i,onUpdate:function(C){return t.set(C)}};return s.type==="inertia"||s.type==="decay"?lj(nt(nt({},x),s)):FC(nt(nt({},Nj(s,x,e)),{onUpdate:function(C){var D;x.onUpdate(C),(D=s.onUpdate)===null||D===void 0||D.call(s,C)},onComplete:function(){var C;x.onComplete(),(C=s.onComplete)===null||C===void 0||C.call(s)}}))}function g(){var x,C,D=dC(n);return t.set(D),i(),(x=s==null?void 0:s.onUpdate)===null||x===void 0||x.call(s,D),(C=s==null?void 0:s.onComplete)===null||C===void 0||C.call(s),{stop:function(){}}}return!p||!f||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:ly("",e)}function uy(e,t){return e[t]||e.default||e}function cy(e,t,n,r){return r===void 0&&(r={}),t.start(function(i){var o,s,u=jj(e,t,n,r,i),f=Lj(r,e),p=function(){return s=u()};return f?o=window.setTimeout(p,up(f)):p(),function(){clearTimeout(o),s==null||s.stop()}})}var Bj=function(e){return/^\-?\d*\.?\d+$/.test(e)},$j=function(e){return/^0[^.\s]+$/.test(e)};function fy(e,t){e.indexOf(t)===-1&&e.push(t)}function dy(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var fd=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(t){var n=this;return fy(this.subscriptions,t),function(){return dy(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}(),Vj=function(e){return!isNaN(parseFloat(e))},Hj=function(){function e(t){var n=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new fd,this.velocityUpdateSubscribers=new fd,this.renderSubscribers=new fd,this.canTrackVelocity=!1,this.updateAndNotify=function(r,i){i===void 0&&(i=!0),n.prev=n.current,n.current=r;var o=sp(),s=o.delta,u=o.timestamp;n.lastUpdated!==u&&(n.timeDelta=s,n.lastUpdated=u,js.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 js.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=Vj(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?NC(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 Ef(e){return new Hj(e)}var YC=function(e){return function(t){return t.test(e)}},Uj={test:function(e){return e==="auto"},parse:function(e){return e}},GC=[Oc,Rt,Ns,su,IF,RF,Uj],Qf=function(e){return GC.find(YC(e))},Wj=Xo(Xo([],zr(GC),!1),[to,kl],!1),zj=function(e){return Wj.find(YC(e))};function Yj(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ef(n))}function Gj(e,t){var n=Rp(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=nt(nt({},s),o);for(var u in s){var f=dC(s[u]);Yj(e,u,f)}}function qj(e,t,n){var r,i,o,s,u=Object.keys(t).filter(function(C){return!e.hasValue(C)}),f=u.length;if(f)for(var p=0;p<f;p++){var y=u[p],g=t[y],x=null;Array.isArray(g)&&(x=g[0]),x===null&&(x=(i=(r=n[y])!==null&&r!==void 0?r:e.readValue(y))!==null&&i!==void 0?i:t[y]),x!=null&&(typeof x=="string"&&(Bj(x)||$j(x))?x=parseFloat(x):!zj(x)&&kl.test(g)&&(x=ly(y,g)),e.addValue(y,Ef(x)),(o=(s=n)[y])!==null&&o!==void 0||(s[y]=x),e.setBaseTarget(y,x))}}function Xj(e,t){if(t){var n=t[e]||t.default||t;return n.from}}function Kj(e,t,n){var r,i,o={};for(var s in e)o[s]=(r=Xj(s,t))!==null&&r!==void 0?r:(i=n.getValue(s))===null||i===void 0?void 0:i.get();return o}function Zj(e,t,n){n===void 0&&(n={}),e.notifyAnimationStart(t);var r;if(Array.isArray(t)){var i=t.map(function(s){return Qv(e,s,n)});r=Promise.all(i)}else if(typeof t=="string")r=Qv(e,t,n);else{var o=typeof t=="function"?Rp(e,t,n.custom):t;r=qC(e,o,n)}return r.then(function(){return e.notifyAnimationComplete(t)})}function Qv(e,t,n){var r;n===void 0&&(n={});var i=Rp(e,t,n.custom),o=(i||{}).transition,s=o===void 0?e.getDefaultTransition()||{}:o;n.transitionOverride&&(s=n.transitionOverride);var u=i?function(){return qC(e,i,n)}:function(){return Promise.resolve()},f=!((r=e.variantChildren)===null||r===void 0)&&r.size?function(C){C===void 0&&(C=0);var D=s.delayChildren,A=D===void 0?0:D,M=s.staggerChildren,I=s.staggerDirection;return Jj(e,t,A+C,M,I,n)}:function(){return Promise.resolve()},p=s.when;if(p){var y=zr(p==="beforeChildren"?[u,f]:[f,u],2),g=y[0],x=y[1];return g().then(x)}else return Promise.all([u(),f(n.delay)])}function qC(e,t,n){var r,i=n===void 0?{}:n,o=i.delay,s=o===void 0?0:o,u=i.transitionOverride,f=i.type,p=e.makeTargetAnimatable(t),y=p.transition,g=y===void 0?e.getDefaultTransition():y,x=p.transitionEnd,C=_a(p,["transition","transitionEnd"]);u&&(g=u);var D=[],A=f&&((r=e.animationState)===null||r===void 0?void 0:r.getState()[f]);for(var M in C){var I=e.getValue(M),H=C[M];if(!(!I||H===void 0||A&&eB(A,M))){var U=nt({delay:s},g);e.shouldReduceMotion&&Vd(M)&&(U=nt(nt({},U),{type:!1,delay:0}));var Q=cy(M,I,H,U);D.push(Q)}}return Promise.all(D).then(function(){x&&Gj(e,x)})}function Jj(e,t,n,r,i,o){n===void 0&&(n=0),r===void 0&&(r=0),i===void 0&&(i=1);var s=[],u=(e.variantChildren.size-1)*r,f=i===1?function(p){return p===void 0&&(p=0),p*r}:function(p){return p===void 0&&(p=0),u-p*r};return Array.from(e.variantChildren).sort(Qj).forEach(function(p,y){s.push(Qv(p,t,nt(nt({},o),{delay:n+f(y)})).then(function(){return p.notifyAnimationComplete(t)}))}),Promise.all(s)}function Qj(e,t){return e.sortNodePosition(t)}function eB(e,t){var n=e.protectedKeys,r=e.needsAnimating,i=n.hasOwnProperty(t)&&r[t]!==!0;return r[t]=!1,i}var hy=[An.Animate,An.InView,An.Focus,An.Hover,An.Tap,An.Drag,An.Exit],tB=Xo([],zr(hy),!1).reverse(),nB=hy.length;function rB(e){return function(t){return Promise.all(t.map(function(n){var r=n.animation,i=n.options;return Zj(e,r,i)}))}}function iB(e){var t=rB(e),n=aB(),r={},i=!0,o=function(y,g){var x=Rp(e,g);if(x){x.transition;var C=x.transitionEnd,D=_a(x,["transition","transitionEnd"]);y=nt(nt(nt({},y),D),C)}return y};function s(y){return r[y]!==void 0}function u(y){t=y(e)}function f(y,g){for(var x,C=e.getProps(),D=e.getVariantContext(!0)||{},A=[],M=new Set,I={},H=1/0,U=function(T){var se=tB[T],re=n[se],Pe=(x=C[se])!==null&&x!==void 0?x:D[se],He=ns(Pe),Ue=se===g?re.isActive:null;Ue===!1&&(H=T);var Qe=Pe===D[se]&&Pe!==C[se]&&He;if(Qe&&i&&e.manuallyAnimateOnMount&&(Qe=!1),re.protectedKeys=nt({},I),!re.isActive&&Ue===null||!Pe&&!re.prevProp||Qm(Pe)||typeof Pe=="boolean")return"continue";var Ke=oB(re.prevProp,Pe),he=Ke||se===g&&re.isActive&&!Qe&&He||T>H&&He,me=Array.isArray(Pe)?Pe:[Pe],Le=me.reduce(o,{});Ue===!1&&(Le={});var Ge=re.prevResolvedValues,tt=Ge===void 0?{}:Ge,xe=nt(nt({},tt),Le),Ce=function(De){he=!0,M.delete(De),re.needsAnimating[De]=!0};for(var $e in xe){var je=Le[$e],ke=tt[$e];I.hasOwnProperty($e)||(je!==ke?Dd(je)&&Dd(ke)?!zC(je,ke)||Ke?Ce($e):re.protectedKeys[$e]=!0:je!==void 0?Ce($e):M.add($e):je!==void 0&&M.has($e)?Ce($e):re.protectedKeys[$e]=!0)}re.prevProp=Pe,re.prevResolvedValues=Le,re.isActive&&(I=nt(nt({},I),Le)),i&&e.blockInitialAnimation&&(he=!1),he&&!Qe&&A.push.apply(A,Xo([],zr(me.map(function(De){return{animation:De,options:nt({type:se},y)}})),!1))},Q=0;Q<nB;Q++)U(Q);if(r=nt({},I),M.size){var Z={};M.forEach(function(T){var se=e.getBaseTarget(T);se!==void 0&&(Z[T]=se)}),A.push({animation:Z})}var ce=!!A.length;return i&&C.initial===!1&&!e.manuallyAnimateOnMount&&(ce=!1),i=!1,ce?t(A):Promise.resolve()}function p(y,g,x){var C;if(n[y].isActive===g)return Promise.resolve();(C=e.variantChildren)===null||C===void 0||C.forEach(function(M){var I;return(I=M.animationState)===null||I===void 0?void 0:I.setActive(y,g)}),n[y].isActive=g;var D=f(x,y);for(var A in n)n[A].protectedKeys={};return D}return{isAnimated:s,animateChanges:f,setActive:p,setAnimateFunction:u,getState:function(){return n}}}function oB(e,t){return typeof t=="string"?t!==e:HT(t)?!zC(t,e):!1}function sc(e){return e===void 0&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function aB(){var e;return e={},e[An.Animate]=sc(!0),e[An.InView]=sc(),e[An.Hover]=sc(),e[An.Tap]=sc(),e[An.Drag]=sc(),e[An.Focus]=sc(),e[An.Exit]=sc(),e}var sB={animation:pu(function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=iB(t)),Qm(n)&&q.useEffect(function(){return n.subscribe(t)},[n])}),exit:pu(function(e){var t=e.custom,n=e.visualElement,r=zr(WC(),2),i=r[0],o=r[1],s=q.useContext(Pp);q.useEffect(function(){var u,f;n.isPresent=i;var p=(u=n.animationState)===null||u===void 0?void 0:u.setActive(An.Exit,!i,{custom:(f=s==null?void 0:s.custom)!==null&&f!==void 0?f:t});!i&&(p==null||p.then(o))},[i])})},XC=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 x=zg(i.lastMoveEventInfo,i.history),C=i.startEvent!==null,D=jC(x.offset,{x:0,y:0})>=3;if(!(!C&&!D)){var A=x.point,M=sp().timestamp;i.history.push(nt(nt({},A),{timestamp:M}));var I=i.handlers,H=I.onStart,U=I.onMove;C||(H&&H(i.lastMoveEvent,x),i.startEvent=i.lastMoveEvent),U&&U(i.lastMoveEvent,x)}}},this.handlePointerMove=function(x,C){if(i.lastMoveEvent=x,i.lastMoveEventInfo=Wg(C,i.transformPagePoint),pC(x)&&x.buttons===0){i.handlePointerUp(x,C);return}js.update(i.updatePoint,!0)},this.handlePointerUp=function(x,C){i.end();var D=i.handlers,A=D.onEnd,M=D.onSessionEnd,I=zg(Wg(C,i.transformPagePoint),i.history);i.startEvent&&A&&A(x,I),M&&M(x,I)},!(gC(t)&&t.touches.length>1)){this.handlers=n,this.transformPagePoint=s;var u=ey(t),f=Wg(u,this.transformPagePoint),p=f.point,y=sp().timestamp;this.history=[nt(nt({},p),{timestamp:y})];var g=n.onSessionStart;g&&g(t,zg(f,this.history)),this.removeListeners=Lp(wf(window,"pointermove",this.handlePointerMove),wf(window,"pointerup",this.handlePointerUp),wf(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(t){this.handlers=t},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),Cf.update(this.updatePoint)},e}();function Wg(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 zg(e,t){var n=e.point;return{point:n,delta:Mw(n,KC(t)),offset:Mw(n,lB(t)),velocity:uB(t,.1)}}function lB(e){return e[0]}function KC(e){return e[e.length-1]}function uB(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,i=KC(e);n>=0&&(r=e[n],!(i.timestamp-r.timestamp>up(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 Ol(e){return e.max-e.min}function Lw(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=.01),jC(e,t)<n}function Fw(e,t,n,r){r===void 0&&(r=.5),e.origin=r,e.originPoint=or(t.min,t.max,e.origin),e.scale=Ol(n)/Ol(t),(Lw(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=or(n.min,n.max,e.origin)-e.originPoint,(Lw(e.translate)||isNaN(e.translate))&&(e.translate=0)}function dd(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+Ol(t)}function cB(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+Ol(t)}function hd(e,t,n){jw(e.x,t.x,n.x),jw(e.y,t.y,n.y)}function fB(e,t,n){var r=t.min,i=t.max;return r!==void 0&&e<r?e=n?or(r,e,n.min):Math.max(e,r):i!==void 0&&e>i&&(e=n?or(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 dB(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=zr([i,r],2),r=n[0],i=n[1]),{min:r,max:i}}function hB(e,t){return{x:$w(e.x,t.x),y:$w(e.y,t.y)}}function pB(e,t){var n=.5,r=Ol(e),i=Ol(t);return i>r?n=Pd(t.min,t.max-r,e.min):r>i&&(n=Pd(e.min,e.max-i,t.min)),op(0,1,n)}function gB(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 em=.35;function vB(e){return e===void 0&&(e=em),e===!1?e=0:e===!0&&(e=em),{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}},pd=function(){return{x:Uw(),y:Uw()}},Ww=function(){return{min:0,max:0}},Li=function(){return{x:Ww(),y:Ww()}};function Ls(e){return[e("x"),e("y")]}function ZC(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 mB(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}function yB(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 Yg(e){return e===void 0||e===1}function JC(e){var t=e.scale,n=e.scaleX,r=e.scaleY;return!Yg(t)||!Yg(n)||!Yg(r)}function lu(e){return JC(e)||zw(e.x)||zw(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function zw(e){return e&&e!=="0%"}function cp(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=cp(e,i,r)),cp(e,n,r)+t}function tm(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 QC(e,t){var n=t.x,r=t.y;tm(e.x,n.translate,n.scale,n.originPoint),tm(e.y,r.translate,r.scale,r.originPoint)}function bB(e,t,n,r){var i,o;r===void 0&&(r=!1);var s=n.length;if(s){t.x=t.y=1;for(var u,f,p=0;p<s;p++)u=n[p],f=u.projectionDelta,((o=(i=u.instance)===null||i===void 0?void 0:i.style)===null||o===void 0?void 0:o.display)!=="contents"&&(r&&u.options.layoutScroll&&u.scroll&&u!==u.root&&pf(e,{x:-u.scroll.x,y:-u.scroll.y}),f&&(t.x*=f.x.scale,t.y*=f.y.scale,QC(e,f)),r&&lu(u.latestValues)&&pf(e,u.latestValues))}}function cu(e,t){e.min=e.min+t,e.max=e.max+t}function Gw(e,t,n){var r=zr(n,3),i=r[0],o=r[1],s=r[2],u=t[s]!==void 0?t[s]:.5,f=or(e.min,e.max,u);tm(e,t[i],t[o],f,t.scale)}var wB=["x","scaleX","originX"],xB=["y","scaleY","originY"];function pf(e,t){Gw(e.x,t,wB),Gw(e.y,t,xB)}function eE(e,t){return ZC(yB(e.getBoundingClientRect(),t))}function SB(e,t,n){var r=eE(e,n),i=t.scroll;return i&&(cu(r.x,i.x),cu(r.y,i.y)),r}var TB=new WeakMap,CB=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=Li(),this.visualElement=t}return e.prototype.start=function(t,n){var r=this,i=n===void 0?{}:n,o=i.snapToCursor,s=o===void 0?!1:o;if(this.visualElement.isPresent!==!1){var u=function(g){r.stopAnimation(),s&&r.snapToCursor(ey(g,"page").point)},f=function(g,x){var C,D=r.getProps(),A=D.drag,M=D.dragPropagation,I=D.onDragStart;A&&!M&&(r.openGlobalLock&&r.openGlobalLock(),r.openGlobalLock=bC(A),!r.openGlobalLock)||(r.isDragging=!0,r.currentDirection=null,r.resolveConstraints(),r.visualElement.projection&&(r.visualElement.projection.isAnimationBlocked=!0,r.visualElement.projection.target=void 0),Ls(function(H){var U,Q,Z=r.getAxisMotionValue(H).get()||0;if(Ns.test(Z)){var ce=(Q=(U=r.visualElement.projection)===null||U===void 0?void 0:U.layout)===null||Q===void 0?void 0:Q.actual[H];if(ce){var T=Ol(ce);Z=T*(parseFloat(Z)/100)}}r.originPoint[H]=Z}),I==null||I(g,x),(C=r.visualElement.animationState)===null||C===void 0||C.setActive(An.Drag,!0))},p=function(g,x){var C=r.getProps(),D=C.dragPropagation,A=C.dragDirectionLock,M=C.onDirectionLock,I=C.onDrag;if(!(!D&&!r.openGlobalLock)){var H=x.offset;if(A&&r.currentDirection===null){r.currentDirection=EB(H),r.currentDirection!==null&&(M==null||M(r.currentDirection));return}r.updateAxis("x",x.point,H),r.updateAxis("y",x.point,H),r.visualElement.syncRender(),I==null||I(g,x)}},y=function(g,x){return r.stop(g,x)};this.panSession=new XC(t,{onSessionStart:u,onStart:f,onMove:p,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(An.Drag,!1)},e.prototype.updateAxis=function(t,n,r){var i=this.getProps().drag;if(!(!r||!Sh(t,i,this.currentDirection))){var o=this.getAxisMotionValue(t),s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=fB(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&&hf(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&o?this.constraints=dB(o.actual,r):this.constraints=!1,this.elastic=vB(i),s!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Ls(function(u){t.getAxisMotionValue(u)&&(t.constraints[u]=gB(o.actual[u],t.constraints[u]))})},e.prototype.resolveRefConstraints=function(){var t=this.getProps(),n=t.dragConstraints,r=t.onMeasureDragConstraints;if(!n||!hf(n))return!1;var i=n.current;ka(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=SB(i,o.root,this.visualElement.getTransformPagePoint()),u=hB(o.layout.actual,s);if(r){var f=r(mB(u));this.hasMutatedConstraints=!!f,f&&(u=ZC(f))}return u},e.prototype.startAnimation=function(t){var n=this,r=this.getProps(),i=r.drag,o=r.dragMomentum,s=r.dragElastic,u=r.dragTransition,f=r.dragSnapToOrigin,p=r.onDragTransitionEnd,y=this.constraints||{},g=Ls(function(x){var C;if(Sh(x,i,n.currentDirection)){var D=(C=y==null?void 0:y[x])!==null&&C!==void 0?C:{};f&&(D={min:0,max:0});var A=s?200:1e6,M=s?40:1e7,I=nt(nt({type:"inertia",velocity:o?t[x]:0,bounceStiffness:A,bounceDamping:M,timeConstant:750,restDelta:1,restSpeed:10},u),D);return n.startAxisValueAnimation(x,I)}});return Promise.all(g).then(p)},e.prototype.startAxisValueAnimation=function(t,n){var r=this.getAxisMotionValue(t);return cy(t,r,0,n)},e.prototype.stopAnimation=function(){var t=this;Ls(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;Ls(function(r){var i=n.getProps().drag;if(Sh(r,i,n.currentDirection)){var o=n.visualElement.projection,s=n.getAxisMotionValue(r);if(o&&o.layout){var u=o.layout.actual[r],f=u.min,p=u.max;s.set(t[r]-or(f,p,.5))}}})},e.prototype.scalePositionWithinConstraints=function(){var t=this,n,r=this.getProps(),i=r.drag,o=r.dragConstraints,s=this.visualElement.projection;if(!(!hf(o)||!s||!this.constraints)){this.stopAnimation();var u={x:0,y:0};Ls(function(p){var y=t.getAxisMotionValue(p);if(y){var g=y.get();u[p]=pB({min:g,max:g},t.constraints[p])}});var f=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=f?f({},""):"none",(n=s.root)===null||n===void 0||n.updateScroll(),s.updateLayout(),this.resolveConstraints(),Ls(function(p){if(Sh(p,i,null)){var y=t.getAxisMotionValue(p),g=t.constraints[p],x=g.min,C=g.max;y.set(or(x,C,u[p]))}})}},e.prototype.addListeners=function(){var t=this,n;TB.set(this.visualElement,this);var r=this.visualElement.getInstance(),i=wf(r,"pointerdown",function(p){var y=t.getProps(),g=y.drag,x=y.dragListener,C=x===void 0?!0:x;g&&C&&t.start(p)}),o=function(){var p=t.getProps().dragConstraints;hf(p)&&(t.constraints=t.resolveRefConstraints())},s=this.visualElement.projection,u=s.addEventListener("measure",o);s&&!s.layout&&((n=s.root)===null||n===void 0||n.updateScroll(),s.updateLayout()),o();var f=Mp(window,"resize",function(){return t.scalePositionWithinConstraints()});return s.addEventListener("didUpdate",function(p){var y=p.delta,g=p.hasLayoutChanged;t.isDragging&&g&&(Ls(function(x){var C=t.getAxisMotionValue(x);C&&(t.originPoint[x]+=y[x].translate,C.set(C.get()+y[x].translate))}),t.visualElement.syncRender())}),function(){f(),i(),u()}},e.prototype.getProps=function(){var t=this.visualElement.getProps(),n=t.drag,r=n===void 0?!1:n,i=t.dragDirectionLock,o=i===void 0?!1:i,s=t.dragPropagation,u=s===void 0?!1:s,f=t.dragConstraints,p=f===void 0?!1:f,y=t.dragElastic,g=y===void 0?em:y,x=t.dragMomentum,C=x===void 0?!0:x;return nt(nt({},t),{drag:r,dragDirectionLock:o,dragPropagation:u,dragConstraints:p,dragElastic:g,dragMomentum:C})},e}();function Sh(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function EB(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 kB(e){var t=e.dragControls,n=e.visualElement,r=Ap(function(){return new CB(n)});q.useEffect(function(){return t&&t.subscribe(r)},[r,t]),q.useEffect(function(){return r.addListeners()},[r])}function OB(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,i=e.onPanSessionStart,o=e.visualElement,s=t||n||r||i,u=q.useRef(null),f=q.useContext(Ym).transformPagePoint,p={onSessionStart:i,onStart:n,onMove:t,onEnd:function(g,x){u.current=null,r&&r(g,x)}};q.useEffect(function(){u.current!==null&&u.current.updateHandlers(p)});function y(g){u.current=new XC(g,p,{transformPagePoint:f})}ip(o,"pointerdown",s&&y),SC(function(){return u.current&&u.current.end()})}var _B={pan:pu(OB),drag:pu(kB)},Th=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];function DB(){var e=Th.map(function(){return new fd}),t={},n={clearAllListeners:function(){return e.forEach(function(r){return r.clear()})},updatePropListeners:function(r){Th.forEach(function(i){var o,s="on"+i,u=r[s];(o=t[i])===null||o===void 0||o.call(t),u&&(t[i]=n[s](u))})}};return e.forEach(function(r,i){n["on"+Th[i]]=function(o){return r.add(o)},n["notify"+Th[i]]=function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];return r.notify.apply(r,Xo([],zr(o),!1))}}),n}function PB(e,t,n){var r;for(var i in t){var o=t[i],s=n[i];if(El(o))e.addValue(i,o),process.env.NODE_ENV==="development"&&UC(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(El(s))e.addValue(i,Ef(o));else if(s!==o)if(e.hasValue(i)){var u=e.getValue(i);!u.hasAnimated&&u.set(o)}else e.addValue(i,Ef((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 tE=function(e){var t=e.treeType,n=t===void 0?"":t,r=e.build,i=e.getBaseTarget,o=e.makeTargetAnimatable,s=e.measureViewportBox,u=e.render,f=e.readValueFromInstance,p=e.removeValueFromRenderState,y=e.sortNodePosition,g=e.scrapeMotionValuesFromProps;return function(x,C){var D=x.parent,A=x.props,M=x.presenceId,I=x.blockInitialAnimation,H=x.visualState,U=x.shouldReduceMotion;C===void 0&&(C={});var Q=!1,Z=H.latestValues,ce=H.renderState,T,se=DB(),re=new Map,Pe=new Map,He={},Ue=nt({},Z),Qe;function Ke(){!T||!Q||(he(),u(T,ce,A.style,je.projection))}function he(){r(je,ce,Z,C,A)}function me(){se.notifyUpdate(Z)}function Le(ke,De){var Fe=De.onChange(function(at){Z[ke]=at,A.onUpdate&&js.update(me,!1,!0)}),rt=De.onRenderRequest(je.scheduleRender);Pe.set(ke,function(){Fe(),rt()})}var Ge=g(A);for(var tt in Ge){var xe=Ge[tt];Z[tt]!==void 0&&El(xe)&&xe.set(Z[tt],!1)}var Ce=Ip(A),$e=WT(A),je=nt(nt({treeType:n,current:null,depth:D?D.depth+1:0,parent:D,children:new Set,presenceId:M,shouldReduceMotion:U,variantChildren:$e?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:!!(D!=null&&D.isMounted()),blockInitialAnimation:I,isMounted:function(){return!!T},mount:function(ke){Q=!0,T=je.current=ke,je.projection&&je.projection.mount(ke),$e&&D&&!Ce&&(Qe=D==null?void 0:D.addVariantChild(je)),re.forEach(function(De,Fe){return Le(Fe,De)}),D==null||D.children.add(je),je.setProps(A)},unmount:function(){var ke;(ke=je.projection)===null||ke===void 0||ke.unmount(),Cf.update(me),Cf.render(Ke),Pe.forEach(function(De){return De()}),Qe==null||Qe(),D==null||D.children.delete(je),se.clearAllListeners(),T=void 0,Q=!1},addVariantChild:function(ke){var De,Fe=je.getClosestVariantNode();if(Fe)return(De=Fe.variantChildren)===null||De===void 0||De.add(ke),function(){return Fe.variantChildren.delete(ke)}},sortNodePosition:function(ke){return!y||n!==ke.treeType?0:y(je.getInstance(),ke.getInstance())},getClosestVariantNode:function(){return $e?je:D==null?void 0:D.getClosestVariantNode()},getLayoutId:function(){return A.layoutId},getInstance:function(){return T},getStaticValue:function(ke){return Z[ke]},setStaticValue:function(ke,De){return Z[ke]=De},getLatestValues:function(){return Z},setVisibility:function(ke){je.isVisible!==ke&&(je.isVisible=ke,je.scheduleRender())},makeTargetAnimatable:function(ke,De){return De===void 0&&(De=!0),o(je,ke,A,De)},measureViewportBox:function(){return s(T,A)},addValue:function(ke,De){je.hasValue(ke)&&je.removeValue(ke),re.set(ke,De),Z[ke]=De.get(),Le(ke,De)},removeValue:function(ke){var De;re.delete(ke),(De=Pe.get(ke))===null||De===void 0||De(),Pe.delete(ke),delete Z[ke],p(ke,ce)},hasValue:function(ke){return re.has(ke)},getValue:function(ke,De){var Fe=re.get(ke);return Fe===void 0&&De!==void 0&&(Fe=Ef(De),je.addValue(ke,Fe)),Fe},forEachValue:function(ke){return re.forEach(ke)},readValue:function(ke){var De;return(De=Z[ke])!==null&&De!==void 0?De:f(T,ke,C)},setBaseTarget:function(ke,De){Ue[ke]=De},getBaseTarget:function(ke){if(i){var De=i(A,ke);if(De!==void 0&&!El(De))return De}return Ue[ke]}},se),{build:function(){return he(),ce},scheduleRender:function(){js.render(Ke,!1,!0)},syncRender:Ke,setProps:function(ke){(ke.transformTemplate||A.transformTemplate)&&je.scheduleRender(),A=ke,se.updatePropListeners(ke),He=PB(je,g(A),He)},getProps:function(){return A},getVariant:function(ke){var De;return(De=A.variants)===null||De===void 0?void 0:De[ke]},getDefaultTransition:function(){return A.transition},getTransformPagePoint:function(){return A.transformPagePoint},getVariantContext:function(ke){if(ke===void 0&&(ke=!1),ke)return D==null?void 0:D.getVariantContext();if(!Ce){var De=(D==null?void 0:D.getVariantContext())||{};return A.initial!==void 0&&(De.initial=A.initial),De}for(var Fe={},rt=0;rt<RB;rt++){var at=nE[rt],ht=A[at];(ns(ht)||ht===!1)&&(Fe[at]=ht)}return Fe}});return je}},nE=Xo(["initial"],zr(hy),!1),RB=nE.length;function nm(e){return typeof e=="string"&&e.startsWith("var(--")}var rE=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function IB(e){var t=rE.exec(e);if(!t)return[,];var n=zr(t,3),r=n[1],i=n[2];return[r,i]}var AB=4;function rm(e,t,n){n===void 0&&(n=1),ka(n<=AB,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'));var r=zr(IB(e),2),i=r[0],o=r[1];if(i){var s=window.getComputedStyle(t).getPropertyValue(i);return s?s.trim():nm(o)?rm(o,t,n+1):o}}function MB(e,t,n){var r,i=_a(t,[]),o=e.getInstance();if(!(o instanceof Element))return{target:i,transitionEnd:n};n&&(n=nt({},n)),e.forEachValue(function(p){var y=p.get();if(nm(y)){var g=rm(y,o);g&&p.set(g)}});for(var s in i){var u=i[s];if(nm(u)){var f=rm(u,o);f&&(i[s]=f,n&&((r=n[s])!==null&&r!==void 0||(n[s]=u)))}}return{target:i,transitionEnd:n}}var LB=new Set(["width","height","top","left","right","bottom","x","y"]),iE=function(e){return LB.has(e)},FB=function(e){return Object.keys(e).some(iE)},oE=function(e,t){e.set(t,!1),e.set(t)},Ch=function(e){return e===Oc||e===Rt},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}},NB=new Set(["x","y","z"]),jB=Od.filter(function(e){return!NB.has(e)});function BB(e){var t=[];return jB.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)},$B=function(e,t,n){var r=t.measureViewportBox(),i=t.getInstance(),o=getComputedStyle(i),s=o.display,u={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(function(p){u[p]=Zw[p](r,o)}),t.syncRender();var f=t.measureViewportBox();return n.forEach(function(p){var y=t.getValue(p);oE(y,u[p]),e[p]=Zw[p](f,o)}),e},VB=function(e,t,n,r){n===void 0&&(n={}),r===void 0&&(r={}),t=nt({},t),r=nt({},r);var i=Object.keys(t).filter(iE),o=[],s=!1,u=[];if(i.forEach(function(y){var g=e.getValue(y);if(e.hasValue(y)){var x=n[y],C=Qf(x),D=t[y],A;if(Dd(D)){var M=D.length,I=D[0]===null?1:0;x=D[I],C=Qf(x);for(var H=I;H<M;H++)A?ka(Qf(D[H])===A,"All keyframes must be of the same type"):(A=Qf(D[H]),ka(A===C||Ch(C)&&Ch(A),"Keyframes must be of the same dimension as the current value"))}else A=Qf(D);if(C!==A)if(Ch(C)&&Ch(A)){var U=g.get();typeof U=="string"&&g.set(parseFloat(U)),typeof D=="string"?t[y]=parseFloat(D):Array.isArray(D)&&A===Rt&&(t[y]=D.map(parseFloat))}else C!=null&&C.transform&&(A!=null&&A.transform)&&(x===0||D===0)?x===0?g.set(A.transform(x)):t[y]=C.transform(D):(s||(o=BB(e),s=!0),u.push(y),r[y]=r[y]!==void 0?r[y]:t[y],oE(g,D))}}),u.length){var f=u.indexOf("height")>=0?window.pageYOffset:null,p=$B(t,e,u);return o.length&&o.forEach(function(y){var g=zr(y,2),x=g[0],C=g[1];e.getValue(x).set(C)}),e.syncRender(),f!==null&&window.scrollTo({top:f}),{target:p,transitionEnd:r}}else return{target:t,transitionEnd:r}};function HB(e,t,n,r){return FB(t)?VB(e,t,n,r):{target:t,transitionEnd:r}}var UB=function(e,t,n,r){var i=MB(e,t,r);return t=i.target,r=i.transitionEnd,HB(e,t,n,r)};function WB(e){return window.getComputedStyle(e)}var aE={treeType:"dom",readValueFromInstance:function(e,t){if(Vd(t)){var n=sy(t);return n&&n.default||0}else{var r=WB(e);return(XT(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 eE(e,n)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,r=t.style;delete n[e],delete r[e]},makeTargetAnimatable:function(e,t,n,r){var i=n.transformValues;r===void 0&&(r=!0);var o=t.transition,s=t.transitionEnd,u=_a(t,["transition","transitionEnd"]),f=Kj(u,o||{},e);if(i&&(s&&(s=i(s)),u&&(u=i(u)),f&&(f=i(f))),r){qj(e,u,f);var p=UB(e,u,f,s);s=p.transitionEnd,u=p.target}return nt({transition:o,transitionEnd:s},u)},scrapeMotionValuesFromProps:Jm,build:function(e,t,n,r,i){e.isVisible!==void 0&&(t.style.visibility=e.isVisible?"visible":"hidden"),Xm(t,n,r,i.transformTemplate)},render:lC},zB=tE(aE),YB=tE(nt(nt({},aE),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return Vd(t)?((n=sy(t))===null||n===void 0?void 0:n.default)||0:(t=uC.has(t)?t:sC(t),e.getAttribute(t))},scrapeMotionValuesFromProps:fC,build:function(e,t,n,r,i){Zm(t,n,r,i.transformTemplate)},render:cC})),GB=function(e,t){return Gm(e)?YB(t,{enableHardwareAcceleration:!1}):zB(t,{enableHardwareAcceleration:!0})};function Jw(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var ed={correct:function(e,t){if(!t.target)return e;if(typeof e=="string")if(Rt.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",qB={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,i=e,o=e.includes("var("),s=[];o&&(e=e.replace(rE,function(A){return s.push(A),Qw}));var u=kl.parse(e);if(u.length>5)return i;var f=kl.createTransformer(e),p=typeof u[0]!="number"?1:0,y=r.x.scale*n.x,g=r.y.scale*n.y;u[0+p]/=y,u[1+p]/=g;var x=or(y,g,.5);typeof u[2+p]=="number"&&(u[2+p]/=x),typeof u[3+p]=="number"&&(u[3+p]/=x);var C=f(u);if(o){var D=0;C=C.replace(Qw,function(){var A=s[D];return D++,A})}return C}},XB=function(e){NT(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.componentDidMount=function(){var n=this,r=this.props,i=r.visualElement,o=r.layoutGroup,s=r.switchLayoutGroup,u=r.layoutId,f=i.projection;xF(ZB),f&&(o!=null&&o.group&&o.group.add(f),s!=null&&s.register&&u&&s.register(f),f.root.didUpdate(),f.addEventListener("animationComplete",function(){n.safeToRemove()}),f.setOptions(nt(nt({},f.options),{onExitComplete:function(){return n.safeToRemove()}}))),ld.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(n){var r=this,i=this.props,o=i.layoutDependency,s=i.visualElement,u=i.drag,f=i.isPresent,p=s.projection;return p&&(p.isPresent=f,u||n.layoutDependency!==o||o===void 0?p.willUpdate():this.safeToRemove(),n.isPresent!==f&&(f?p.promote():p.relegate()||js.postRender(function(){var y;!((y=p.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}(q.Component);function KB(e){var t=zr(WC(),2),n=t[0],r=t[1],i=q.useContext(zT);return q.createElement(XB,nt({},e,{layoutGroup:i,switchLayoutGroup:q.useContext(YT),isPresent:n,safeToRemove:r}))}var ZB={borderRadius:nt(nt({},ed),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:ed,borderTopRightRadius:ed,borderBottomLeftRadius:ed,borderBottomRightRadius:ed,boxShadow:qB},JB={measureLayout:KB};function QB(e,t,n){n===void 0&&(n={});var r=El(e)?e:Ef(e);return cy("",r,t,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}var sE=["TopLeft","TopRight","BottomLeft","BottomRight"],e$=sE.length,ex=function(e){return typeof e=="string"?parseFloat(e):e},tx=function(e){return typeof e=="number"||Rt.test(e)};function t$(e,t,n,r,i,o){var s,u,f,p;i?(e.opacity=or(0,(s=n.opacity)!==null&&s!==void 0?s:1,n$(r)),e.opacityExit=or((u=t.opacity)!==null&&u!==void 0?u:1,0,r$(r))):o&&(e.opacity=or((f=t.opacity)!==null&&f!==void 0?f:1,(p=n.opacity)!==null&&p!==void 0?p:1,r));for(var y=0;y<e$;y++){var g="border".concat(sE[y],"Radius"),x=nx(t,g),C=nx(n,g);if(!(x===void 0&&C===void 0)){x||(x=0),C||(C=0);var D=x===0||C===0||tx(x)===tx(C);D?(e[g]=Math.max(or(ex(x),ex(C),r),0),(Ns.test(C)||Ns.test(x))&&(e[g]+="%")):e[g]=C}}(t.rotate||n.rotate)&&(e.rotate=or(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 n$=lE(0,.5,oy),r$=lE(.5,.95,ry);function lE(e,t,n){return function(r){return r<e?0:r>t?1:n(Pd(e,t,r))}}function rx(e,t){e.min=t.min,e.max=t.max}function es(e,t){rx(e.x,t.x),rx(e.y,t.y)}function ix(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 i$(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),Ns.test(t)){t=parseFloat(t);var u=or(s.min,s.max,t/100);t=u-s.min}if(typeof t=="number"){var f=or(o.min,o.max,r);e===o&&(f-=t),e.min=ix(e.min,t,n,f,i),e.max=ix(e.max,t,n,f,i)}}function ox(e,t,n,r,i){var o=zr(n,3),s=o[0],u=o[1],f=o[2];i$(e,t[s],t[u],t[f],t.scale,r,i)}var o$=["x","scaleX","originX"],a$=["y","scaleY","originY"];function ax(e,t,n,r){ox(e.x,t,o$,n==null?void 0:n.x,r==null?void 0:r.x),ox(e.y,t,a$,n==null?void 0:n.y,r==null?void 0:r.y)}function sx(e){return e.translate===0&&e.scale===1}function uE(e){return sx(e.x)&&sx(e.y)}function cE(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 s$=function(){function e(){this.members=[]}return e.prototype.add=function(t){fy(this.members,t),t.scheduleRender()},e.prototype.remove=function(t){if(dy(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}(),l$="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function lx(e,t,n){var r=e.x.translate/t.x,i=e.y.translate/t.y,o="translate3d(".concat(r,"px, ").concat(i,"px, 0) ");if(o+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),n){var s=n.rotate,u=n.rotateX,f=n.rotateY;s&&(o+="rotate(".concat(s,"deg) ")),u&&(o+="rotateX(".concat(u,"deg) ")),f&&(o+="rotateY(".concat(f,"deg) "))}var p=e.x.scale*t.x,y=e.y.scale*t.y;return o+="scale(".concat(p,", ").concat(y,")"),o===l$?"none":o}var u$=function(e,t){return e.depth-t.depth},c$=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(t){fy(this.children,t),this.isDirty=!0},e.prototype.remove=function(t){dy(this.children,t),this.isDirty=!0},e.prototype.forEach=function(t){this.isDirty&&this.children.sort(u$),this.isDirty=!1,this.children.forEach(t)},e}(),ux=1e3;function fE(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,i=e.checkIsScrollRoot,o=e.resetTransform;return function(){function s(u,f,p){var y=this;f===void 0&&(f={}),p===void 0&&(p=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(v$),y.nodes.forEach(m$)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=u,this.latestValues=f,this.root=p?p.root||p:this,this.path=p?Xo(Xo([],zr(p.path),!1),[p],!1):[],this.parent=p,this.depth=p?p.depth+1:0,u&&this.root.registerPotentialNode(u,this);for(var g=0;g<this.path.length;g++)this.path[g].shouldResetTransform=!0;this.root===this&&(this.nodes=new c$)}return s.prototype.addEventListener=function(u,f){return this.eventHandlers.has(u)||this.eventHandlers.set(u,new fd),this.eventHandlers.get(u).add(f)},s.prototype.notifyListeners=function(u){for(var f=[],p=1;p<arguments.length;p++)f[p-1]=arguments[p];var y=this.eventHandlers.get(u);y==null||y.notify.apply(y,Xo([],zr(f),!1))},s.prototype.hasListeners=function(u){return this.eventHandlers.has(u)},s.prototype.registerPotentialNode=function(u,f){this.potentialNodes.set(u,f)},s.prototype.mount=function(u,f){var p=this,y;if(f===void 0&&(f=!1),!this.instance){this.isSVG=u instanceof SVGElement&&u.tagName!=="svg",this.instance=u;var g=this.options,x=g.layoutId,C=g.layout,D=g.visualElement;if(D&&!D.getInstance()&&D.mount(u),this.root.nodes.add(this),(y=this.parent)===null||y===void 0||y.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),f&&(C||x)&&(this.isLayoutDirty=!0),t){var A,M=function(){return p.root.updateBlockedByResize=!1};t(u,function(){p.root.updateBlockedByResize=!0,clearTimeout(A),A=window.setTimeout(M,250),ld.hasAnimatedSinceResize&&(ld.hasAnimatedSinceResize=!1,p.nodes.forEach(g$))})}x&&this.root.registerSharedNode(x,this),this.options.animate!==!1&&D&&(x||C)&&this.addEventListener("didUpdate",function(I){var H,U,Q,Z,ce,T=I.delta,se=I.hasLayoutChanged,re=I.hasRelativeTargetChanged,Pe=I.layout;if(p.isTreeAnimationBlocked()){p.target=void 0,p.relativeTarget=void 0;return}var He=(U=(H=p.options.transition)!==null&&H!==void 0?H:D.getDefaultTransition())!==null&&U!==void 0?U:S$,Ue=D.getProps(),Qe=Ue.onLayoutAnimationStart,Ke=Ue.onLayoutAnimationComplete,he=!p.targetLayout||!cE(p.targetLayout,Pe)||re,me=!se&&re;if(!((Q=p.resumeFrom)===null||Q===void 0)&&Q.instance||me||se&&(he||!p.currentAnimation)){p.resumeFrom&&(p.resumingFrom=p.resumeFrom,p.resumingFrom.resumingFrom=void 0),p.setAnimationOrigin(T,me);var Le=nt(nt({},uy(He,"layout")),{onPlay:Qe,onComplete:Ke});D.shouldReduceMotion&&(Le.delay=0,Le.type=!1),p.startAnimation(Le)}else!se&&p.animationProgress===0&&p.finishAnimation(),p.isLead()&&((ce=(Z=p.options).onExitComplete)===null||ce===void 0||ce.call(Z));p.targetLayout=Pe})}},s.prototype.unmount=function(){var u,f;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(u=this.getStack())===null||u===void 0||u.remove(this),(f=this.parent)===null||f===void 0||f.children.delete(this),this.instance=void 0,Cf.preRender(this.updateProjection)},s.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},s.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},s.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},s.prototype.isTreeAnimationBlocked=function(){var u;return this.isAnimationBlocked||((u=this.parent)===null||u===void 0?void 0:u.isTreeAnimationBlocked())||!1},s.prototype.startUpdate=function(){var u;this.isUpdateBlocked()||(this.isUpdating=!0,(u=this.nodes)===null||u===void 0||u.forEach(y$))},s.prototype.willUpdate=function(u){var f,p,y;if(u===void 0&&(u=!0),this.root.isUpdateBlocked()){(p=(f=this.options).onExitComplete)===null||p===void 0||p.call(f);return}if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var g=0;g<this.path.length;g++){var x=this.path[g];x.shouldResetTransform=!0,x.updateScroll()}var C=this.options,D=C.layoutId,A=C.layout;if(!(D===void 0&&!A)){var M=(y=this.options.visualElement)===null||y===void 0?void 0:y.getProps().transformTemplate;this.prevTransformTemplateValue=M==null?void 0:M(this.latestValues,""),this.updateSnapshot(),u&&this.notifyListeners("willUpdate")}}},s.prototype.didUpdate=function(){var u=this.isUpdateBlocked();if(u){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(cx);return}this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(T$),this.potentialNodes.clear()),this.nodes.forEach(p$),this.nodes.forEach(f$),this.nodes.forEach(d$),this.clearAllSnapshots(),Vg.update(),Vg.preRender(),Vg.render())},s.prototype.clearAllSnapshots=function(){this.nodes.forEach(h$),this.sharedNodes.forEach(b$)},s.prototype.scheduleUpdateProjection=function(){js.preRender(this.updateProjection,!1,!0)},s.prototype.scheduleCheckAfterUnmount=function(){var u=this;js.postRender(function(){u.isLayoutDirty?u.root.didUpdate():u.root.checkUpdateFailed()})},s.prototype.updateSnapshot=function(){if(!(this.snapshot||!this.instance)){var u=this.measure(),f=this.removeTransform(this.removeElementScroll(u));px(f),this.snapshot={measured:u,layout:f,latestValues:{}}}},s.prototype.updateLayout=function(){var u;if(this.instance&&(this.updateScroll(),!(!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))){if(this.resumeFrom&&!this.resumeFrom.instance)for(var f=0;f<this.path.length;f++){var p=this.path[f];p.updateScroll()}var y=this.measure();px(y);var g=this.layout;this.layout={measured:y,actual:this.removeElementScroll(y)},this.layoutCorrected=Li(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),(u=this.options.visualElement)===null||u===void 0||u.notifyLayoutMeasure(this.layout.actual,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 u;if(o){var f=this.isLayoutDirty||this.shouldResetTransform,p=this.projectionDelta&&!uE(this.projectionDelta),y=(u=this.options.visualElement)===null||u===void 0?void 0:u.getProps().transformTemplate,g=y==null?void 0:y(this.latestValues,""),x=g!==this.prevTransformTemplateValue;f&&(p||lu(this.latestValues)||x)&&(o(this.instance,g),this.shouldResetTransform=!1,this.scheduleRender())}},s.prototype.measure=function(){var u=this.options.visualElement;if(!u)return Li();var f=u.measureViewportBox(),p=this.root.scroll;return p&&(cu(f.x,p.x),cu(f.y,p.y)),f},s.prototype.removeElementScroll=function(u){var f=Li();es(f,u);for(var p=0;p<this.path.length;p++){var y=this.path[p],g=y.scroll,x=y.options,C=y.isScrollRoot;if(y!==this.root&&g&&x.layoutScroll){if(C){es(f,u);var D=this.root.scroll;D&&(cu(f.x,-D.x),cu(f.y,-D.y))}cu(f.x,g.x),cu(f.y,g.y)}}return f},s.prototype.applyTransform=function(u,f){f===void 0&&(f=!1);var p=Li();es(p,u);for(var y=0;y<this.path.length;y++){var g=this.path[y];!f&&g.options.layoutScroll&&g.scroll&&g!==g.root&&pf(p,{x:-g.scroll.x,y:-g.scroll.y}),lu(g.latestValues)&&pf(p,g.latestValues)}return lu(this.latestValues)&&pf(p,this.latestValues),p},s.prototype.removeTransform=function(u){var f,p=Li();es(p,u);for(var y=0;y<this.path.length;y++){var g=this.path[y];if(g.instance&&lu(g.latestValues)){JC(g.latestValues)&&g.updateSnapshot();var x=Li(),C=g.measure();es(x,C),ax(p,g.latestValues,(f=g.snapshot)===null||f===void 0?void 0:f.layout,x)}}return lu(this.latestValues)&&ax(p,this.latestValues),p},s.prototype.setTargetDelta=function(u){this.targetDelta=u,this.root.scheduleUpdateProjection()},s.prototype.setOptions=function(u){var f;this.options=nt(nt(nt({},this.options),u),{crossfade:(f=u.crossfade)!==null&&f!==void 0?f:!0})},s.prototype.clearMeasurements=function(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1},s.prototype.resolveTargetDelta=function(){var u,f=this.options,p=f.layout,y=f.layoutId;!this.layout||!(p||y)||(!this.targetDelta&&!this.relativeTarget&&(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget=Li(),this.relativeTargetOrigin=Li(),hd(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),es(this.relativeTarget,this.relativeTargetOrigin))),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Li(),this.targetWithTransforms=Li()),this.relativeTarget&&this.relativeTargetOrigin&&(!((u=this.relativeParent)===null||u===void 0)&&u.target)?cB(this.target,this.relativeTarget,this.relativeParent.target):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.actual):es(this.target,this.layout.actual),QC(this.target,this.targetDelta)):es(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=Li(),this.relativeTargetOrigin=Li(),hd(this.relativeTargetOrigin,this.target,this.relativeParent.target),es(this.relativeTarget,this.relativeTargetOrigin)))))},s.prototype.getClosestProjectingParent=function(){if(!(!this.parent||lu(this.parent.latestValues)))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},s.prototype.calcProjection=function(){var u,f=this.options,p=f.layout,y=f.layoutId;if(this.isTreeAnimating=!!(!((u=this.parent)===null||u===void 0)&&u.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!(!this.layout||!(p||y))){var g=this.getLead();es(this.layoutCorrected,this.layout.actual),bB(this.layoutCorrected,this.treeScale,this.path,!!this.resumingFrom||this!==g);var x=g.target;if(x){this.projectionDelta||(this.projectionDelta=pd(),this.projectionDeltaWithTransform=pd());var C=this.treeScale.x,D=this.treeScale.y,A=this.projectionTransform;dd(this.projectionDelta,this.layoutCorrected,x,this.latestValues),this.projectionTransform=lx(this.projectionDelta,this.treeScale),(this.projectionTransform!==A||this.treeScale.x!==C||this.treeScale.y!==D)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",x))}}},s.prototype.hide=function(){this.isVisible=!1},s.prototype.show=function(){this.isVisible=!0},s.prototype.scheduleRender=function(u){var f,p,y;u===void 0&&(u=!0),(p=(f=this.options).scheduleRender)===null||p===void 0||p.call(f),u&&((y=this.getStack())===null||y===void 0||y.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},s.prototype.setAnimationOrigin=function(u,f){var p=this,y;f===void 0&&(f=!1);var g=this.snapshot,x=(g==null?void 0:g.latestValues)||{},C=nt({},this.latestValues),D=pd();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!f;var A=Li(),M=g==null?void 0:g.isShared,I=(((y=this.getStack())===null||y===void 0?void 0:y.members.length)||0)<=1,H=!!(M&&!I&&this.options.crossfade===!0&&!this.path.some(x$));this.animationProgress=0,this.mixTargetDelta=function(U){var Q,Z=U/1e3;fx(D.x,u.x,Z),fx(D.y,u.y,Z),p.setTargetDelta(D),p.relativeTarget&&p.relativeTargetOrigin&&p.layout&&(!((Q=p.relativeParent)===null||Q===void 0)&&Q.layout)&&(hd(A,p.layout.actual,p.relativeParent.layout.actual),w$(p.relativeTarget,p.relativeTargetOrigin,A,Z)),M&&(p.animationValues=C,t$(C,x,p.latestValues,Z,H,I)),p.root.scheduleUpdateProjection(),p.scheduleRender(),p.animationProgress=Z},this.mixTargetDelta(0)},s.prototype.startAnimation=function(u){var f=this,p,y;this.notifyListeners("animationStart"),(p=this.currentAnimation)===null||p===void 0||p.stop(),this.resumingFrom&&((y=this.resumingFrom.currentAnimation)===null||y===void 0||y.stop()),this.pendingAnimation&&(Cf.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=js.update(function(){ld.hasAnimatedSinceResize=!0,f.currentAnimation=QB(0,ux,nt(nt({},u),{onUpdate:function(g){var x;f.mixTargetDelta(g),(x=u.onUpdate)===null||x===void 0||x.call(u,g)},onComplete:function(){var g;(g=u.onComplete)===null||g===void 0||g.call(u),f.completeAnimation()}})),f.resumingFrom&&(f.resumingFrom.currentAnimation=f.currentAnimation),f.pendingAnimation=void 0})},s.prototype.completeAnimation=function(){var u;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),(u=this.getStack())===null||u===void 0||u.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},s.prototype.finishAnimation=function(){var u;this.currentAnimation&&((u=this.mixTargetDelta)===null||u===void 0||u.call(this,ux),this.currentAnimation.stop()),this.completeAnimation()},s.prototype.applyTransformsToTarget=function(){var u=this.getLead(),f=u.targetWithTransforms,p=u.target,y=u.layout,g=u.latestValues;!f||!p||!y||(es(f,p),pf(f,g),dd(this.projectionDeltaWithTransform,this.layoutCorrected,f,g))},s.prototype.registerSharedNode=function(u,f){var p,y,g;this.sharedNodes.has(u)||this.sharedNodes.set(u,new s$);var x=this.sharedNodes.get(u);x.add(f),f.promote({transition:(p=f.options.initialPromotionConfig)===null||p===void 0?void 0:p.transition,preserveFollowOpacity:(g=(y=f.options.initialPromotionConfig)===null||y===void 0?void 0:y.shouldPreserveFollowOpacity)===null||g===void 0?void 0:g.call(y,f)})},s.prototype.isLead=function(){var u=this.getStack();return u?u.lead===this:!0},s.prototype.getLead=function(){var u,f=this.options.layoutId;return f?((u=this.getStack())===null||u===void 0?void 0:u.lead)||this:this},s.prototype.getPrevLead=function(){var u,f=this.options.layoutId;return f?(u=this.getStack())===null||u===void 0?void 0:u.prevLead:void 0},s.prototype.getStack=function(){var u=this.options.layoutId;if(u)return this.root.sharedNodes.get(u)},s.prototype.promote=function(u){var f=u===void 0?{}:u,p=f.needsReset,y=f.transition,g=f.preserveFollowOpacity,x=this.getStack();x&&x.promote(this,g),p&&(this.projectionDelta=void 0,this.needsReset=!0),y&&this.setOptions({transition:y})},s.prototype.relegate=function(){var u=this.getStack();return u?u.relegate(this):!1},s.prototype.resetRotation=function(){var u=this.options.visualElement;if(u){for(var f=!1,p={},y=0;y<Hv.length;y++){var g=Hv[y],x="rotate"+g;u.getStaticValue(x)&&(f=!0,p[x]=u.getStaticValue(x),u.setStaticValue(x,0))}if(f){u==null||u.syncRender();for(var x in p)u.setStaticValue(x,p[x]);u.scheduleRender()}}},s.prototype.getProjectionStyles=function(u){var f,p,y,g,x,C;u===void 0&&(u={});var D={};if(!this.instance||this.isSVG)return D;if(this.isVisible)D.visibility="";else return{visibility:"hidden"};var A=(f=this.options.visualElement)===null||f===void 0?void 0:f.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,D.opacity="",D.pointerEvents=$h(u.pointerEvents)||"",D.transform=A?A(this.latestValues,""):"none",D;var M=this.getLead();if(!this.projectionDelta||!this.layout||!M.target){var I={};return this.options.layoutId&&(I.opacity=(p=this.latestValues.opacity)!==null&&p!==void 0?p:1,I.pointerEvents=$h(u.pointerEvents)||""),this.hasProjected&&!lu(this.latestValues)&&(I.transform=A?A({},""):"none",this.hasProjected=!1),I}var H=M.animationValues||M.latestValues;this.applyTransformsToTarget(),D.transform=lx(this.projectionDeltaWithTransform,this.treeScale,H),A&&(D.transform=A(H,D.transform));var U=this.projectionDelta,Q=U.x,Z=U.y;D.transformOrigin="".concat(Q.origin*100,"% ").concat(Z.origin*100,"% 0"),M.animationValues?D.opacity=M===this?(g=(y=H.opacity)!==null&&y!==void 0?y:this.latestValues.opacity)!==null&&g!==void 0?g:1:this.preserveOpacity?this.latestValues.opacity:H.opacityExit:D.opacity=M===this?(x=H.opacity)!==null&&x!==void 0?x:"":(C=H.opacityExit)!==null&&C!==void 0?C:0;for(var ce in np)if(H[ce]!==void 0){var T=np[ce],se=T.correct,re=T.applyTo,Pe=se(H[ce],M);if(re)for(var He=re.length,Ue=0;Ue<He;Ue++)D[re[Ue]]=Pe;else D[ce]=Pe}return this.options.layoutId&&(D.pointerEvents=M===this?$h(u.pointerEvents)||"":"none"),D},s.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},s.prototype.resetTree=function(){this.root.nodes.forEach(function(u){var f;return(f=u.currentAnimation)===null||f===void 0?void 0:f.stop()}),this.root.nodes.forEach(cx),this.root.sharedNodes.clear()},s}()}function f$(e){e.updateLayout()}function d$(e){var t,n,r,i,o=(n=(t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)!==null&&n!==void 0?n:e.snapshot;if(e.isLead()&&e.layout&&o&&e.hasListeners("didUpdate")){var s=e.layout,u=s.actual,f=s.measured;e.options.animationType==="size"?Ls(function(H){var U=o.isShared?o.measured[H]:o.layout[H],Q=Ol(U);U.min=u[H].min,U.max=U.min+Q}):e.options.animationType==="position"&&Ls(function(H){var U=o.isShared?o.measured[H]:o.layout[H],Q=Ol(u[H]);U.max=U.min+Q});var p=pd();dd(p,u,o.layout);var y=pd();o.isShared?dd(y,e.applyTransform(f,!0),o.measured):dd(y,u,o.layout);var g=!uE(p),x=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var C=e.relativeParent,D=C.snapshot,A=C.layout;if(D&&A){var M=Li();hd(M,o.layout,D.layout);var I=Li();hd(I,u,A.actual),cE(M,I)||(x=!0)}}e.notifyListeners("didUpdate",{layout:u,snapshot:o,delta:y,layoutDelta:p,hasLayoutChanged:g,hasRelativeTargetChanged:x})}else e.isLead()&&((i=(r=e.options).onExitComplete)===null||i===void 0||i.call(r));e.options.transition=void 0}function h$(e){e.clearSnapshot()}function cx(e){e.clearMeasurements()}function p$(e){var t=e.options.visualElement;t!=null&&t.getProps().onBeforeLayoutMeasure&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function g$(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function v$(e){e.resolveTargetDelta()}function m$(e){e.calcProjection()}function y$(e){e.resetRotation()}function b$(e){e.removeLeadSnapshot()}function fx(e,t,n){e.translate=or(t.translate,0,n),e.scale=or(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function dx(e,t,n,r){e.min=or(t.min,n.min,r),e.max=or(t.max,n.max,r)}function w$(e,t,n,r){dx(e.x,t.x,n.x,r),dx(e.y,t.y,n.y,r)}function x$(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var S$={duration:.45,ease:[.4,0,.1,1]};function T$(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 C$=fE({attachResizeListener:function(e,t){return Mp(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),Gg={current:void 0},E$=fE({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!Gg.current){var e=new C$(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),Gg.current=e}return Gg.current},resetTransform:function(e,t){e.style.transform=t??"none"},checkIsScrollRoot:function(e){return window.getComputedStyle(e).position==="fixed"}}),k$=nt(nt(nt(nt({},sB),Ej),_B),JB),O$=bF(function(e,t){return iN(e,t,k$,GB,E$)});function im(e,t,n){var r,i,o,s,u;t==null&&(t=100);function f(){var y=Date.now()-s;y<t&&y>=0?r=setTimeout(f,t-y):(r=null,n||(u=e.apply(o,i),o=i=null))}var p=function(){o=this,i=arguments,s=Date.now();var y=n&&!r;return r||(r=setTimeout(f,t)),y&&(u=e.apply(o,i),o=i=null),u};return p.clear=function(){r&&(clearTimeout(r),r=null)},p.flush=function(){r&&(u=e.apply(o,i),o=i=null,clearTimeout(r),r=null)},p}im.debounce=im;var _$=im;const gx=Eu(_$);function D$(e){let{debounce:t,scroll:n,polyfill:r,offsetSize:i}=e===void 0?{debounce:0,scroll:!1,offsetSize:!1}:e;const o=r||(typeof window>"u"?class{}:window.ResizeObserver);if(!o)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");const[s,u]=q.useState({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),f=q.useRef({element:null,scrollContainers:null,resizeObserver:null,lastBounds:s}),p=t?typeof t=="number"?t:t.scroll:null,y=t?typeof t=="number"?t:t.resize:null,g=q.useRef(!1);q.useEffect(()=>(g.current=!0,()=>void(g.current=!1)));const[x,C,D]=q.useMemo(()=>{const H=()=>{if(!f.current.element)return;const{left:U,top:Q,width:Z,height:ce,bottom:T,right:se,x:re,y:Pe}=f.current.element.getBoundingClientRect(),He={left:U,top:Q,width:Z,height:ce,bottom:T,right:se,x:re,y:Pe};f.current.element instanceof HTMLElement&&i&&(He.height=f.current.element.offsetHeight,He.width=f.current.element.offsetWidth),Object.freeze(He),g.current&&!A$(f.current.lastBounds,He)&&u(f.current.lastBounds=He)};return[H,y?gx(H,y):H,p?gx(H,p):H]},[u,i,p,y]);function A(){f.current.scrollContainers&&(f.current.scrollContainers.forEach(H=>H.removeEventListener("scroll",D,!0)),f.current.scrollContainers=null),f.current.resizeObserver&&(f.current.resizeObserver.disconnect(),f.current.resizeObserver=null)}function M(){f.current.element&&(f.current.resizeObserver=new o(D),f.current.resizeObserver.observe(f.current.element),n&&f.current.scrollContainers&&f.current.scrollContainers.forEach(H=>H.addEventListener("scroll",D,{capture:!0,passive:!0})))}const I=H=>{!H||H===f.current.element||(A(),f.current.element=H,f.current.scrollContainers=dE(H),M())};return R$(D,!!n),P$(C),q.useEffect(()=>{A(),M()},[n,D,C]),q.useEffect(()=>A,[]),[I,s,x]}function P$(e){q.useEffect(()=>{const t=e;return window.addEventListener("resize",t),()=>void window.removeEventListener("resize",t)},[e])}function R$(e,t){q.useEffect(()=>{if(t){const n=e;return window.addEventListener("scroll",n,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",n,!0)}},[e,t])}function dE(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,...dE(e.parentElement)]}const I$=["x","y","top","bottom","left","right","width","height"],A$=(e,t)=>I$.every(n=>e[n]===t[n]),hE=q.createContext({dragDropManager:void 0});function ba(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"}(),mx=function(){return Math.random().toString(36).substring(7).split("").join(".")},yx={INIT:"@@redux/INIT"+mx(),REPLACE:"@@redux/REPLACE"+mx()};function M$(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 L$(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(j$(e))return"date";if(N$(e))return"error";var n=F$(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 F$(e){return typeof e.constructor=="function"?e.constructor.name:null}function N$(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function j$(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function af(e){var t=typeof e;return process.env.NODE_ENV!=="production"&&(t=L$(e)),t}function pE(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"?ba(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"?ba(1):"Expected the enhancer to be a function. Instead, received: '"+af(n)+"'");return n(pE)(e,t)}if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?ba(2):"Expected the root reducer to be a function. Instead, received: '"+af(e)+"'");var i=e,o=t,s=[],u=s,f=!1;function p(){u===s&&(u=s.slice())}function y(){if(f)throw new Error(process.env.NODE_ENV==="production"?ba(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(A){if(typeof A!="function")throw new Error(process.env.NODE_ENV==="production"?ba(4):"Expected the listener to be a function. Instead, received: '"+af(A)+"'");if(f)throw new Error(process.env.NODE_ENV==="production"?ba(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 M=!0;return p(),u.push(A),function(){if(M){if(f)throw new Error(process.env.NODE_ENV==="production"?ba(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.");M=!1,p();var H=u.indexOf(A);u.splice(H,1),s=null}}}function x(A){if(!M$(A))throw new Error(process.env.NODE_ENV==="production"?ba(7):"Actions must be plain objects. Instead, the actual type was: '"+af(A)+"'. 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 A.type>"u")throw new Error(process.env.NODE_ENV==="production"?ba(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(f)throw new Error(process.env.NODE_ENV==="production"?ba(9):"Reducers may not dispatch actions.");try{f=!0,o=i(o,A)}finally{f=!1}for(var M=s=u,I=0;I<M.length;I++){var H=M[I];H()}return A}function C(A){if(typeof A!="function")throw new Error(process.env.NODE_ENV==="production"?ba(10):"Expected the nextReducer to be a function. Instead, received: '"+af(A));i=A,x({type:yx.REPLACE})}function D(){var A,M=g;return A={subscribe:function(H){if(typeof H!="object"||H===null)throw new Error(process.env.NODE_ENV==="production"?ba(11):"Expected the observer to be an object. Instead, received: '"+af(H)+"'");function U(){H.next&&H.next(y())}U();var Q=M(U);return{unsubscribe:Q}}},A[vx]=function(){return this},A}return x({type:yx.INIT}),r={dispatch:x,subscribe:g,getState:y,replaceReducer:C},r[vx]=D,r}function Ut(e,t,...n){if(B$()&&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 B$(){return typeof process<"u"&&process.env.NODE_ENV==="production"}function $$(e,t,n){return t.split(".").reduce((r,i)=>r&&r[i]?r[i]:n||null,e)}function V$(e,t){return e.filter(n=>n!==t)}function gE(e){return typeof e=="object"}function H$(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 U$(e,t){return e.filter(n=>t.indexOf(n)>-1)}const py="dnd-core/INIT_COORDS",jp="dnd-core/BEGIN_DRAG",gy="dnd-core/PUBLISH_DRAG_SOURCE",Bp="dnd-core/HOVER",$p="dnd-core/DROP",Vp="dnd-core/END_DRAG";function bx(e,t){return{type:py,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const W$={type:py,payload:{clientOffset:null,sourceClientOffset:null}};function z$(e){return function(n=[],r={publishSource:!0}){const{publishSource:i=!0,clientOffset:o,getSourceClientOffset:s}=r,u=e.getMonitor(),f=e.getRegistry();e.dispatch(bx(o)),Y$(n,u,f);const p=X$(n,u);if(p==null){e.dispatch(W$);return}let y=null;if(o){if(!s)throw new Error("getSourceClientOffset must be defined");G$(s),y=s(p)}e.dispatch(bx(o,y));const x=f.getSource(p).beginDrag(u,p);if(x==null)return;q$(x),f.pinSource(p);const C=f.getSourceType(p);return{type:jp,payload:{itemType:C,item:x,sourceId:p,clientOffset:o||null,sourceClientOffset:y||null,isSourcePublic:!!i}}}}function Y$(e,t,n){Ut(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(r){Ut(n.getSource(r),"Expected sourceIds to be registered.")})}function G$(e){Ut(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function q$(e){Ut(gE(e),"Item must be an object.")}function X$(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 K$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z$(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){K$(e,i,n[i])})}return e}function J$(e){return function(n={}){const r=e.getMonitor(),i=e.getRegistry();Q$(r),nV(r).forEach((s,u)=>{const f=eV(s,u,i,r),p={type:$p,payload:{dropResult:Z$({},n,f)}};e.dispatch(p)})}}function Q$(e){Ut(e.isDragging(),"Cannot call drop while not dragging."),Ut(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function eV(e,t,n,r){const i=n.getTarget(e);let o=i?i.drop(r,e):void 0;return tV(o),typeof o>"u"&&(o=t===0?{}:r.getDropResult()),o}function tV(e){Ut(typeof e>"u"||gE(e),"Drop result must either be an object or undefined.")}function nV(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function rV(e){return function(){const n=e.getMonitor(),r=e.getRegistry();iV(n);const i=n.getSourceId();return i!=null&&(r.getSource(i,!0).endDrag(n,i),r.unpinSource()),{type:Vp}}}function iV(e){Ut(e.isDragging(),"Cannot call endDrag while not dragging.")}function om(e,t){return t===null?e===null:Array.isArray(e)?e.some(n=>n===t):e===t}function oV(e){return function(n,{clientOffset:r}={}){aV(n);const i=n.slice(0),o=e.getMonitor(),s=e.getRegistry(),u=o.getItemType();return lV(i,s,u),sV(i,o,s),uV(i,o,s),{type:Bp,payload:{targetIds:i,clientOffset:r||null}}}}function aV(e){Ut(Array.isArray(e),"Expected targetIds to be an array.")}function sV(e,t,n){Ut(t.isDragging(),"Cannot call hover while not dragging."),Ut(!t.didDrop(),"Cannot call hover after drop.");for(let r=0;r<e.length;r++){const i=e[r];Ut(e.lastIndexOf(i)===r,"Expected targetIds to be unique in the passed array.");const o=n.getTarget(i);Ut(o,"Expected targetIds to be registered.")}}function lV(e,t,n){for(let r=e.length-1;r>=0;r--){const i=e[r],o=t.getTargetType(i);om(o,n)||e.splice(r,1)}}function uV(e,t,n){e.forEach(function(r){n.getTarget(r).hover(t,r)})}function cV(e){return function(){if(e.getMonitor().isDragging())return{type:gy}}}function fV(e){return{beginDrag:z$(e),publishDragSource:cV(e),hover:oV(e),drop:J$(e),endDrag:rV(e)}}class dV{receiveBackend(t){this.backend=t}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const t=this,{dispatch:n}=this.store;function r(o){return(...s)=>{const u=o.apply(t,s);typeof u<"u"&&n(u)}}const i=fV(this);return Object.keys(i).reduce((o,s)=>{const u=i[s];return o[s]=r(u),o},{})}dispatch(t){this.store.dispatch(t)}constructor(t,n){this.isSetUp=!1,this.handleRefCountChange=()=>{const r=this.store.getState().refCount>0;this.backend&&(r&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!r&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=t,this.monitor=n,t.subscribe(this.handleRefCountChange)}}function hV(e,t){return{x:e.x+t.x,y:e.y+t.y}}function vE(e,t){return{x:e.x-t.x,y:e.y-t.y}}function pV(e){const{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return!t||!n||!r?null:vE(hV(t,r),n)}function gV(e){const{clientOffset:t,initialClientOffset:n}=e;return!t||!n?null:vE(t,n)}const gd=[],vy=[];gd.__IS_NONE__=!0;vy.__IS_ALL__=!0;function vV(e,t){return e===gd?!1:e===vy||typeof t>"u"?!0:U$(t,e).length>0}class mV{subscribeToStateChange(t,n={}){const{handlerIds:r}=n;Ut(typeof t=="function","listener must be a function."),Ut(typeof r>"u"||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");let i=this.store.getState().stateId;const o=()=>{const s=this.store.getState(),u=s.stateId;try{u===i||u===i+1&&!vV(s.dirtyHandlerIds,r)||t()}finally{i=u}};return this.store.subscribe(o)}subscribeToOffsetChange(t){Ut(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 Ut(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(Ut(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 om(r,i)&&n.canDrop(this,t)}isDragging(){return!!this.getItemType()}isDraggingSource(t){if(!t)return!1;const n=this.registry.getSource(t,!0);if(Ut(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&&!om(i,o))return!1;const s=this.getTargetIds();if(!s.length)return!1;const u=s.indexOf(t);return r?u===s.length-1:u>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return pV(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return gV(this.store.getState().dragOffset)}constructor(t,n){this.store=t,this.registry=n}}const wx=typeof global<"u"?global:self,mE=wx.MutationObserver||wx.WebKitMutationObserver;function yE(e){return function(){const n=setTimeout(i,0),r=setInterval(i,50);function i(){clearTimeout(n),clearInterval(r),e()}}}function yV(e){let t=1;const n=new mE(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}const bV=typeof mE=="function"?yV:yE;class wV{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=bV(this.flush),this.requestErrorThrow=yE(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class xV{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 SV{create(t){const n=this.freeTasks,r=n.length?n.pop():new xV(this.onError,i=>n[n.length]=i);return r.task=t,r}constructor(t){this.onError=t,this.freeTasks=[]}}const bE=new wV,TV=new SV(bE.registerPendingError);function CV(e){bE.enqueueTask(TV.create(e))}const my="dnd-core/ADD_SOURCE",yy="dnd-core/ADD_TARGET",by="dnd-core/REMOVE_SOURCE",Hp="dnd-core/REMOVE_TARGET";function EV(e){return{type:my,payload:{sourceId:e}}}function kV(e){return{type:yy,payload:{targetId:e}}}function OV(e){return{type:by,payload:{sourceId:e}}}function _V(e){return{type:Hp,payload:{targetId:e}}}function DV(e){Ut(typeof e.canDrag=="function","Expected canDrag to be a function."),Ut(typeof e.beginDrag=="function","Expected beginDrag to be a function."),Ut(typeof e.endDrag=="function","Expected endDrag to be a function.")}function PV(e){Ut(typeof e.canDrop=="function","Expected canDrop to be a function."),Ut(typeof e.hover=="function","Expected hover to be a function."),Ut(typeof e.drop=="function","Expected beginDrag to be a function.")}function am(e,t){if(t&&Array.isArray(e)){e.forEach(n=>am(n,!1));return}Ut(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 Ca;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(Ca||(Ca={}));let RV=0;function IV(){return RV++}function AV(e){const t=IV().toString();switch(e){case Ca.SOURCE:return`S${t}`;case Ca.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function xx(e){switch(e[0]){case"S":return Ca.SOURCE;case"T":return Ca.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function Sx(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 MV{addSource(t,n){am(t),DV(n);const r=this.addHandler(Ca.SOURCE,t,n);return this.store.dispatch(EV(r)),r}addTarget(t,n){am(t,!0),PV(n);const r=this.addHandler(Ca.TARGET,t,n);return this.store.dispatch(kV(r)),r}containsHandler(t){return Sx(this.dragSources,t)||Sx(this.dropTargets,t)}getSource(t,n=!1){return Ut(this.isSourceId(t),"Expected a valid source ID."),n&&t===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(t)}getTarget(t){return Ut(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}getSourceType(t){return Ut(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}getTargetType(t){return Ut(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}isSourceId(t){return xx(t)===Ca.SOURCE}isTargetId(t){return xx(t)===Ca.TARGET}removeSource(t){Ut(this.getSource(t),"Expected an existing source."),this.store.dispatch(OV(t)),CV(()=>{this.dragSources.delete(t),this.types.delete(t)})}removeTarget(t){Ut(this.getTarget(t),"Expected an existing target."),this.store.dispatch(_V(t)),this.dropTargets.delete(t),this.types.delete(t)}pinSource(t){const n=this.getSource(t);Ut(n,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=n}unpinSource(){Ut(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(t,n,r){const i=AV(t);return this.types.set(i,n),t===Ca.SOURCE?this.dragSources.set(i,r):t===Ca.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 LV=(e,t)=>e===t;function FV(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function NV(e,t,n=LV){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 jV(e=gd,t){switch(t.type){case Bp:break;case my:case yy:case Hp:case by:return gd;case jp:case gy:case Vp:case $p:default:return vy}const{targetIds:n=[],prevTargetIds:r=[]}=t.payload,i=H$(n,r);if(!(i.length>0||!NV(n,r)))return gd;const s=r[r.length-1],u=n[n.length-1];return s!==u&&(s&&i.push(s),u&&i.push(u)),i}function BV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $V(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){BV(e,i,n[i])})}return e}const Tx={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function VV(e=Tx,t){const{payload:n}=t;switch(t.type){case py:case jp:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case Bp:return FV(e.clientOffset,n.clientOffset)?e:$V({},e,{clientOffset:n.clientOffset});case Vp:case $p:return Tx;default:return e}}function HV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sf(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){HV(e,i,n[i])})}return e}const UV={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function WV(e=UV,t){const{payload:n}=t;switch(t.type){case jp:return sf({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case gy:return sf({},e,{isSourcePublic:!0});case Bp:return sf({},e,{targetIds:n.targetIds});case Hp:return e.targetIds.indexOf(n.targetId)===-1?e:sf({},e,{targetIds:V$(e.targetIds,n.targetId)});case $p:return sf({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case Vp:return sf({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function zV(e=0,t){switch(t.type){case my:case yy:return e+1;case by:case Hp:return e-1;default:return e}}function YV(e=0){return e+1}function GV(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){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){GV(e,i,n[i])})}return e}function XV(e={},t){return{dirtyHandlerIds:jV(e.dirtyHandlerIds,{type:t.type,payload:qV({},t.payload,{prevTargetIds:$$(e,"dragOperation.targetIds",[])})}),dragOffset:VV(e.dragOffset,t),refCount:zV(e.refCount,t),dragOperation:WV(e.dragOperation,t),stateId:YV(e.stateId)}}function KV(e,t=void 0,n={},r=!1){const i=ZV(r),o=new mV(i,new MV(i)),s=new dV(i,o),u=e(s,t,n);return s.receiveBackend(u),s}function ZV(e){const t=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return pE(XV,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}function JV(e,t){if(e==null)return{};var n=QV(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 QV(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 Cx=0;const Uh=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var e3=q.memo(function(t){var{children:n}=t,r=JV(t,["children"]);const[i,o]=t3(r);return q.useEffect(()=>{if(o){const s=wE();return++Cx,()=>{--Cx===0&&(s[Uh]=null)}}},[]),Ne.jsx(hE.Provider,{value:i,children:n})});function t3(e){if("manager"in e)return[{dragDropManager:e.manager},!1];const t=n3(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}function n3(e,t=wE(),n,r){const i=t;return i[Uh]||(i[Uh]={dragDropManager:KV(e,t,n,r)}),i[Uh]}function wE(){return typeof global<"u"?global:window}var r3=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 i3=Eu(r3),Sc=typeof window<"u"?q.useLayoutEffect:q.useEffect;function xE(e,t,n){const[r,i]=q.useState(()=>t(e)),o=q.useCallback(()=>{const s=t(e);i3(r,s)||(i(s),n&&n())},[r,e,n]);return Sc(o),[r,o]}function o3(e,t,n){const[r,i]=xE(e,t,n);return Sc(function(){const s=e.getHandlerId();if(s!=null)return e.subscribeToStateChange(i,{handlerIds:[s]})},[e,i]),r}function SE(e,t,n){return o3(t,e||(()=>({})),()=>n.reconnect())}function TE(e,t){const n=[];return typeof e!="function"&&n.push(e),q.useMemo(()=>typeof e=="function"?e():e,n)}function a3(e){return q.useMemo(()=>e.hooks.dragSource(),[e])}function s3(e){return q.useMemo(()=>e.hooks.dragPreview(),[e])}let qg=!1,Xg=!1;class l3{receiveHandlerId(t){this.sourceId=t}getHandlerId(){return this.sourceId}canDrag(){Ut(!qg,"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 qg=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{qg=!1}}isDragging(){if(!this.sourceId)return!1;Ut(!Xg,"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 Xg=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Xg=!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 Kg=!1;class u3{receiveHandlerId(t){this.targetId=t}getHandlerId(){return this.targetId}subscribeToStateChange(t,n){return this.internalMonitor.subscribeToStateChange(t,n)}canDrop(){if(!this.targetId)return!1;Ut(!Kg,"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 Kg=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{Kg=!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 c3(e,t,n){const r=n.getRegistry(),i=r.addTarget(e,t);return[i,()=>r.removeTarget(i)]}function f3(e,t,n){const r=n.getRegistry(),i=r.addSource(e,t);return[i,()=>r.removeSource(i)]}function sm(e,t,n,r){let i;if(i!==void 0)return!!i;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;const o=Object.keys(e),s=Object.keys(t);if(o.length!==s.length)return!1;const u=Object.prototype.hasOwnProperty.bind(t);for(let f=0;f<o.length;f++){const p=o[f];if(!u(p))return!1;const y=e[p],g=t[p];if(i=void 0,i===!1||i===void 0&&y!==g)return!1}return!0}function lm(e){return e!==null&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function d3(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 h3(e){return(t=null,n=null)=>{if(!q.isValidElement(t)){const o=t;return e(o,n),o}const r=t;return d3(r),p3(r,n?o=>e(o,n):e)}}function CE(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{const i=h3(r);t[n]=()=>i}}),t}function Ex(e,t){typeof e=="function"?e(t):e.current=t}function p3(e,t){const n=e.ref;return Ut(typeof n!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?q.cloneElement(e,{ref:r=>{Ex(n,r),Ex(t,r)}}):q.cloneElement(e,{ref:t})}class g3{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!sm(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!sm(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=CE({dragSource:(n,r)=>{this.clearDragSource(),this.dragSourceOptions=r||null,lm(n)?this.dragSourceRef=n:this.dragSourceNode=n,this.reconnectDragSource()},dragPreview:(n,r)=>{this.clearDragPreview(),this.dragPreviewOptions=r||null,lm(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 v3{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!sm(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=CE({dropTarget:(n,r)=>{this.clearDropTarget(),this.dropTargetOptions=r,lm(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 Pl(){const{dragDropManager:e}=q.useContext(hE);return Ut(e!=null,"Expected drag drop context"),e}function m3(e,t){const n=Pl(),r=q.useMemo(()=>new g3(n.getBackend()),[n]);return Sc(()=>(r.dragSourceOptions=e||null,r.reconnect(),()=>r.disconnectDragSource()),[r,e]),Sc(()=>(r.dragPreviewOptions=t||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,t]),r}function y3(){const e=Pl();return q.useMemo(()=>new l3(e),[e])}class b3{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 w3(e,t,n){const r=q.useMemo(()=>new b3(e,t,n),[t,n]);return q.useEffect(()=>{r.spec=e},[e]),r}function x3(e){return q.useMemo(()=>{const t=e.type;return Ut(t!=null,"spec.type must be defined"),t},[e])}function S3(e,t,n){const r=Pl(),i=w3(e,t,n),o=x3(e);Sc(function(){if(o!=null){const[u,f]=f3(o,i,r);return t.receiveHandlerId(u),n.receiveHandlerId(u),f}},[r,t,n,i,o])}function T3(e,t){const n=TE(e);Ut(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const r=y3(),i=m3(n.options,n.previewOptions);return S3(n,r,i),[SE(n.collect,r,i),a3(i),s3(i)]}function C3(e){const n=Pl().getMonitor(),[r,i]=xE(n,e);return q.useEffect(()=>n.subscribeToOffsetChange(i)),q.useEffect(()=>n.subscribeToStateChange(i)),r}function E3(e){return q.useMemo(()=>e.hooks.dropTarget(),[e])}function k3(e){const t=Pl(),n=q.useMemo(()=>new v3(t.getBackend()),[t]);return Sc(()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget()),[e]),n}function O3(){const e=Pl();return q.useMemo(()=>new u3(e),[e])}function _3(e){const{accept:t}=e;return q.useMemo(()=>(Ut(e.accept!=null,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}class D3{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 P3(e,t){const n=q.useMemo(()=>new D3(e,t),[t]);return q.useEffect(()=>{n.spec=e},[e]),n}function R3(e,t,n){const r=Pl(),i=P3(e,t),o=_3(e);Sc(function(){const[u,f]=c3(o,i,r);return t.receiveHandlerId(u),n.receiveHandlerId(u),f},[r,t,i,n,o.map(s=>s.toString()).join("|")])}function EE(e,t){const n=TE(e),r=O3(),i=k3(n.options);return R3(n,r,i),[SE(n.collect,r,i),E3(i)]}function Zg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I3(e,t,n){A3(e,t),t.set(e,n)}function A3(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Eh(e,t){var n=kE(e,t,"get");return M3(e,n)}function M3(e,t){return t.get?t.get.call(e):t.value}function L3(e,t,n){var r=kE(e,t,"set");return F3(e,r,n),n}function kE(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function F3(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 lf=new WeakMap;class N3{constructor(){I3(this,lf,{writable:!0,value:void 0}),Zg(this,"register",t=>{Eh(this,lf).push(t)}),Zg(this,"unregister",t=>{let n;for(;(n=Eh(this,lf).indexOf(t))!==-1;)Eh(this,lf).splice(n,1)}),Zg(this,"backendChanged",t=>{for(const n of Eh(this,lf))n.backendChanged(t)}),L3(this,lf,[])}}function ts(e,t,n){j3(e,t),t.set(e,n)}function j3(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ms(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yt(e,t){var n=OE(e,t,"get");return B3(e,n)}function B3(e,t){return t.get?t.get.call(e):t.value}function uf(e,t,n){var r=OE(e,t,"set");return $3(e,r,n),n}function OE(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function $3(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 wa=new WeakMap,kh=new WeakMap,xa=new WeakMap,au=new WeakMap,lc=new WeakMap,kx=new WeakMap,Ox=new WeakMap,_x=new WeakMap,Jg=new WeakMap,Qg=new WeakMap,Oh=new WeakMap;class Sf{constructor(t,n,r){if(ts(this,wa,{writable:!0,value:void 0}),ts(this,kh,{writable:!0,value:void 0}),ts(this,xa,{writable:!0,value:void 0}),ts(this,au,{writable:!0,value:void 0}),ts(this,lc,{writable:!0,value:void 0}),ts(this,kx,{writable:!0,value:(i,o,s)=>{var u,f;if(!s.backend)throw new Error("You must specify a 'backend' property in your Backend entry: ".concat(JSON.stringify(s)));const p=s.backend(i,o,s.options);let y=s.id;const g=!s.id&&p&&p.constructor;if(g&&(y=p.constructor.name),y)g&&console.warn(`Deprecation notice: You are using a pipeline which doesn't include backends' 'id'.
|
|
5
|
-
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),`
|
|
6
|
-
see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-5xx`));if(Yt(this,xa)[y])throw new Error(`You must specify a unique 'id' property in your Backend entry:
|
|
7
|
-
`.concat(JSON.stringify(s)," (conflicts with: ").concat(JSON.stringify(Yt(this,xa)[y]),")"));return{id:y,instance:p,preview:(u=s.preview)!==null&&u!==void 0?u:!1,transition:s.transition,skipDispatchOnTransition:(f=s.skipDispatchOnTransition)!==null&&f!==void 0?f:!1}}}),Ms(this,"setup",()=>{if(!(typeof window>"u")){if(Sf.isSetUp)throw new Error("Cannot have two MultiBackends at the same time.");Sf.isSetUp=!0,Yt(this,Ox).call(this,window),Yt(this,xa)[Yt(this,wa)].instance.setup()}}),Ms(this,"teardown",()=>{typeof window>"u"||(Sf.isSetUp=!1,Yt(this,_x).call(this,window),Yt(this,xa)[Yt(this,wa)].instance.teardown())}),Ms(this,"connectDragSource",(i,o,s)=>Yt(this,Oh).call(this,"connectDragSource",i,o,s)),Ms(this,"connectDragPreview",(i,o,s)=>Yt(this,Oh).call(this,"connectDragPreview",i,o,s)),Ms(this,"connectDropTarget",(i,o,s)=>Yt(this,Oh).call(this,"connectDropTarget",i,o,s)),Ms(this,"profile",()=>Yt(this,xa)[Yt(this,wa)].instance.profile()),Ms(this,"previewEnabled",()=>Yt(this,xa)[Yt(this,wa)].preview),Ms(this,"previewsList",()=>Yt(this,kh)),Ms(this,"backendsList",()=>Yt(this,au)),ts(this,Ox,{writable:!0,value:i=>{Yt(this,au).forEach(o=>{o.transition&&i.addEventListener(o.transition.event,Yt(this,Jg))})}}),ts(this,_x,{writable:!0,value:i=>{Yt(this,au).forEach(o=>{o.transition&&i.removeEventListener(o.transition.event,Yt(this,Jg))})}}),ts(this,Jg,{writable:!0,value:i=>{const o=Yt(this,wa);if(Yt(this,au).some(u=>u.id!==Yt(this,wa)&&u.transition&&u.transition.check(i)?(uf(this,wa,u.id),!0):!1),Yt(this,wa)!==o){var s;Yt(this,xa)[o].instance.teardown(),Object.keys(Yt(this,lc)).forEach(y=>{const g=Yt(this,lc)[y];g.unsubscribe(),g.unsubscribe=Yt(this,Qg).call(this,g.func,...g.args)}),Yt(this,kh).backendChanged(this);const u=Yt(this,xa)[Yt(this,wa)];if(u.instance.setup(),u.skipDispatchOnTransition)return;const f=i.constructor,p=new f(i.type,i);(s=i.target)===null||s===void 0||s.dispatchEvent(p)}}}),ts(this,Qg,{writable:!0,value:(i,o,s,u)=>Yt(this,xa)[Yt(this,wa)].instance[i](o,s,u)}),ts(this,Oh,{writable:!0,value:(i,o,s,u)=>{const f="".concat(i,"_").concat(o),p=Yt(this,Qg).call(this,i,o,s,u);return Yt(this,lc)[f]={func:i,args:[o,s,u],unsubscribe:p},()=>{Yt(this,lc)[f].unsubscribe(),delete Yt(this,lc)[f]}}}),!r||!r.backends||r.backends.length<1)throw new Error(`You must specify at least one Backend, if you are coming from 2.x.x (or don't understand this error)
|
|
8
|
-
see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-2xx`);uf(this,kh,new N3),uf(this,xa,{}),uf(this,au,[]),r.backends.forEach(i=>{const o=Yt(this,kx).call(this,t,n,i);Yt(this,xa)[o.id]=o,Yt(this,au).push(o)}),uf(this,wa,Yt(this,au)[0].id),uf(this,lc,{})}}Ms(Sf,"isSetUp",!1);const V3=(e,t,n)=>new Sf(e,t,n),_E=(e,t)=>({event:e,check:t}),H3=_E("touchstart",e=>{const t=e;return t.touches!==null&&t.touches!==void 0}),U3=_E("pointerdown",e=>e.pointerType=="mouse");var gu;(function(e){e.mouse="mouse",e.touch="touch",e.keyboard="keyboard"})(gu||(gu={}));class W3{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 z3(e,t,n,r){return Math.sqrt(Math.pow(Math.abs(n-e),2)+Math.pow(Math.abs(r-t),2))}function Y3(e,t,n,r,i){if(!i)return!1;const o=Math.atan2(r-t,n-e)*180/Math.PI+180;for(let s=0;s<i.length;++s){const u=i[s];if(u&&(u.start==null||o>=u.start)&&(u.end==null||o<=u.end))return!0}return!1}const G3={Left:1},q3={Left:0};function ev(e){return e.button===void 0||e.button===q3.Left}function X3(e){return e.buttons===void 0||(e.buttons&G3.Left)===0}function DE(e){return!!e.targetTouches}const K3=1;function Z3(e){const t=e.nodeType===K3?e:e.parentElement;if(!t)return;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function J3(e,t){if(e.targetTouches.length===1)return fp(e.targetTouches[0]);if(t&&e.touches.length===1&&e.touches[0].target===t.target)return fp(e.touches[0])}function fp(e,t){return DE(e)?J3(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})(),td={[gu.mouse]:{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"},[gu.touch]:{start:"touchstart",move:"touchmove",end:"touchend"},[gu.keyboard]:{keydown:"keydown"}};class vd{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&&(Ut(!vd.isSetUp,"Cannot have two Touch backends at the same time."),vd.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&&(vd.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 u=td[s][n];u&&t.addEventListener(u,r,o)})}removeEventListener(t,n,r,i=!1){const o=Dx?{capture:i,passive:!1}:i;this.listenerTypes.forEach(function(s){const u=td[s][n];u&&t.removeEventListener(u,r,o)})}connectDragSource(t,n){const r=this.handleMoveStart.bind(this,t);return this.sourceNodes.set(t,n),this.addEventListener(n,"start",r),()=>{this.sourceNodes.delete(t),this.removeEventListener(n,"start",r)}}connectDragPreview(t,n,r){return this.sourcePreviewNodeOptions.set(t,r),this.sourcePreviewNodes.set(t,n),()=>{this.sourcePreviewNodes.delete(t),this.sourcePreviewNodeOptions.delete(t)}}connectDropTarget(t,n){const r=this.options.rootElement;if(!this.document||!r)return()=>{};const i=o=>{if(!this.document||!r||!this.monitor.isDragging())return;let s;switch(o.type){case td.mouse.move:s={x:o.clientX,y:o.clientY};break;case td.touch.move:var u,f;s={x:((u=o.touches[0])===null||u===void 0?void 0:u.clientX)||0,y:((f=o.touches[0])===null||f===void 0?void 0:f.clientY)||0};break}const p=s!=null?this.document.elementFromPoint(s.x,s.y):void 0,y=p&&n.contains(p);if(p===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&&Z3(o)},this.handleTopMoveStartCapture=i=>{ev(i)&&(this.moveStartSourceIds=[])},this.handleMoveStart=i=>{Array.isArray(this.moveStartSourceIds)&&this.moveStartSourceIds.unshift(i)},this.handleTopMoveStart=i=>{if(!ev(i))return;const o=fp(i);o&&(DE(i)&&(this.lastTargetTouchFallback=i.targetTouches[0]),this._mouseClientOffset=o),this.waitingForDelay=!1},this.handleTopMoveStartDelay=i=>{if(!ev(i))return;const o=i.type===td.touch.start?this.options.delayTouchStart:this.options.delayMouseStart;this.timeout=setTimeout(this.handleTopMoveStart.bind(this,i),o),this.waitingForDelay=!0},this.handleTopMoveCapture=()=>{this.dragOverTargetIds=[]},this.handleMove=(i,o)=>{this.dragOverTargetIds&&this.dragOverTargetIds.unshift(o)},this.handleTopMove=i=>{if(this.timeout&&clearTimeout(this.timeout),!this.document||this.waitingForDelay)return;const{moveStartSourceIds:o,dragOverTargetIds:s}=this,u=this.options.enableHoverOutsideTarget,f=fp(i,this.lastTargetTouchFallback);if(!f)return;if(this._isScrolling||!this.monitor.isDragging()&&Y3(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,f.x,f.y,this.options.scrollAngleRanges)){this._isScrolling=!0;return}if(!this.monitor.isDragging()&&this._mouseClientOffset.hasOwnProperty("x")&&o&&z3(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,f.x,f.y)>(this.options.touchSlop?this.options.touchSlop:0)&&(this.moveStartSourceIds=void 0,this.actions.beginDrag(o,{clientOffset:this._mouseClientOffset,getSourceClientOffset:this.getSourceClientOffset,publishSource:!1})),!this.monitor.isDragging())return;const p=this.sourceNodes.get(this.monitor.getSourceId());this.installSourceNodeRemovalObserver(p),this.actions.publishDragSource(),i.cancelable&&i.preventDefault();const y=(s||[]).map(D=>this.targetNodes.get(D)).filter(D=>!!D),g=this.options.getDropTargetElementsAtPoint?this.options.getDropTargetElementsAtPoint(f.x,f.y,y):this.document.elementsFromPoint(f.x,f.y),x=[];for(const D in g){if(!g.hasOwnProperty(D))continue;let A=g[D];for(A!=null&&x.push(A);A;)A=A.parentElement,A&&x.indexOf(A)===-1&&x.push(A)}const C=x.filter(D=>y.indexOf(D)>-1).map(D=>this._getDropTargetId(D)).filter(D=>!!D).filter((D,A,M)=>M.indexOf(D)===A);if(u)for(const D in this.targetNodes){const A=this.targetNodes.get(D);if(p&&A&&A.contains(p)&&C.indexOf(D)===-1){C.unshift(D);break}}C.reverse(),this.actions.hover(C,{clientOffset:f})},this._getDropTargetId=i=>{const o=this.targetNodes.keys();let s=o.next();for(;s.done===!1;){const u=s.value;if(i===this.targetNodes.get(u))return u;s=o.next()}},this.handleTopMoveEndCapture=i=>{if(this._isScrolling=!1,this.lastTargetTouchFallback=void 0,!!X3(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 W3(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(gu.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(gu.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(gu.keyboard)}}const Q3=function(t,n={},r={}){return new vd(t,n,r)};var Oa=function(){return Oa=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},Oa.apply(this,arguments)};function ro(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 eH(e){var t=e.isVisible,n=e.ease,r=n===void 0?"easeIn":n,i=e.duration,o=e.variants,s=o===void 0?{open:{opacity:1,height:"auto"},close:{opacity:0,height:0}}:o,u=e.children,f=D$({polyfill:Q2}),p=f[0],y=f[1].height,g=q.useState(t),x=g[0],C=g[1],D=q.useState(t),A=D[0],M=D[1],I=q.useState(!1),H=I[0],U=I[1],Q=function(){U(!1),t||C(!1)};return q.useEffect(function(){U(!0),t?C(!0):M(!1)},[t]),q.useEffect(function(){x&&M(!0)},[y]),q.createElement(O$.div,{style:H?{overflow:"hidden"}:void 0,onAnimationComplete:Q,initial:A?"open":"close",animate:A?"open":"close",inherit:!1,variants:s,transition:{ease:r,duration:tH(y,i)}},q.createElement("div",{ref:p},x&&u))}function tH(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 nH=function(e,t){return e.text>t.text?1:e.text<t.text?-1:0},nd=function(e,t){return e.find(function(n){return n.id===t})},PE=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:PE(e,t,r.parent)},wy=function(e){return e.id!==void 0&&e.parent!==void 0&&e.text!==void 0},xu=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 u=wy(e)?e.id:null;if(o){var f=o(u,t);if(f!==void 0)return f}if(u===t)return!1;var p=r.find(function(g){return g.id===u}),s=r.find(function(g){return g.id===t});return p===void 0||u===null?t===i||!!(s!=null&&s.droppable):s===void 0?p.parent!==0:p.parent===t||!s.droppable?!1:!PE(r,u,t)}},rH=function(e,t,n){return e.map(function(r){return r.id===t?Oa(Oa({},r),{parent:n}):r})},RE=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},iH=function(e,t){return e.findIndex(function(n){return n.id===t})},IE=function(e,t,n,r){var i=iH(e,t),o=RE(e,n,r);return o=o>i?o-1:o,[i,o]},oH=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)}},aH=function(e,t,n,r){var i=IE(e,t,n,r),o=i[0],s=i[1],u=ro([],e,!0);return oH(u,o,s),u.map(function(f){return f.id===t?Oa(Oa({},f),{parent:n}):f})},sH=function(e,t){var n=e.getBoundingClientRect(),r=n.top+n.height/2;return t>r?"down":"up"},um=function(e,t){var n="",r=0;return e.forEach(function(i,o){var s,u=sH(i,((s=t.getClientOffset())===null||s===void 0?void 0:s.y)||0);n===""?n=u:n!==u&&(n=u,r=o),o===e.length-1&&u==="down"&&(r=o+1)}),r},Px=function(e,t,n){var r=t.closest('[role="list"]'),i=r==null?void 0:r.querySelectorAll(':scope > [role="listitem"]');return i?um(i,n):null},lH=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"},cm=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:um(o,n)}}var s=n.getItem(),u=t.querySelector('[role="list"]'),f=lH(t,((i=n.getClientOffset())===null||i===void 0?void 0:i.y)||0,r);if(u){if(f==="upper")if(xu(s,e.parent,r)){var p=Px(e,t,n);return p===null?null:{id:e.parent,index:p}}else return{id:e.id,index:0};var o=u.querySelectorAll(':scope > [role="listitem"]');return{id:e.id,index:um(o,n)}}else{if(f==="middle")return{id:e.id,index:0};if(xu(s,e.parent,r)){var p=Px(e,t,n);return p===null?null:{id:e.parent,index:p}}return null}},uH=function(e){return e===void 0&&(e={}),{backends:[{id:"html5",backend:I2,options:e.html5,transition:U3},{id:"touch",backend:Q3,options:e.touch||{enableMouseEvents:!0},preview:!0,transition:H3}]}},Wh=function(e,t){return e.some(function(n){return n.parent===t})},AE=q.createContext({}),cH=function(e){var t=wH(e.tree,e.initialOpen),n=t[0],r=t[1],i=r.handleToggle,o=r.handleCloseAll,s=r.handleOpenAll,u=r.handleOpen,f=r.handleClose;q.useImperativeHandle(e.treeRef,function(){return{open:function(C){return u(C,e.onChangeOpen)},close:function(C){return f(C,e.onChangeOpen)},openAll:function(){return s(e.onChangeOpen)},closeAll:function(){return o(e.onChangeOpen)}}});var p=Pl().getMonitor(),y=e.canDrop,g=e.canDrag,x=Oa(Oa({extraAcceptTypes:[],listComponent:"ul",listItemComponent:"li",placeholderComponent:"li",sort:!0,insertDroppableFirst:!0,enableAnimateExpand:!1,dropTargetOffset:0,initialOpen:!1},e),{openIds:n,onDrop:function(C,D,A){if(C){var M={dragSourceId:C.id,dropTargetId:D,dragSource:C,dropTarget:nd(e.tree,D),monitor:p},I=e.tree;if(nd(I,C.id)||(I=ro(ro([],I,!0),[C],!1)),e.sort===!1){var H=IE(I,C.id,D,A),U=H[1];M.destinationIndex=U,M.relativeIndex=A,e.onDrop(aH(I,C.id,D,A),M);return}e.onDrop(rH(I,C.id,D),M)}else{var M={dropTargetId:D,dropTarget:nd(e.tree,D),monitor:p};e.sort===!1&&(M.destinationIndex=RE(e.tree,D,A),M.relativeIndex=A),e.onDrop(e.tree,M)}},canDrop:y?function(C,D){return y(e.tree,{dragSourceId:C??void 0,dropTargetId:D,dragSource:p.getItem(),dropTarget:nd(e.tree,D),monitor:p})}:void 0,canDrag:g?function(C){return g(nd(e.tree,C))}:void 0,onToggle:function(C){return i(C,e.onChangeOpen)}});return q.createElement(AE.Provider,{value:x},e.children)},ME=q.createContext({}),fH={isLock:!1},dH=function(e){var t=q.useState(fH.isLock),n=t[0],r=t[1];return q.createElement(ME.Provider,{value:{isLock:n,lock:function(){return r(!0)},unlock:function(){return r(!1)}}},e.children)},zd=q.createContext({}),_h={dropTargetId:void 0,index:void 0},hH=function(e){var t=q.useState(_h.dropTargetId),n=t[0],r=t[1],i=q.useState(_h.index),o=i[0],s=i[1],u=function(p,y){r(p),s(y)},f=function(){r(_h.dropTargetId),s(_h.index)};return q.createElement(zd.Provider,{value:{dropTargetId:n,index:o,showPlaceholder:u,hidePlaceholder:f}},e.children)},pH=function(e){return q.createElement(cH,Oa({},e),q.createElement(dH,null,q.createElement(hH,null,e.children)))},gH=function(e){var t=q.useContext(ME);q.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)},u=function(y){return r(y)},f=function(y){return i(y)},p=new MutationObserver(function(){document.activeElement===document.body&&t.unlock()});return p.observe(n,{subtree:!0,childList:!0}),n.addEventListener("mouseover",o),n.addEventListener("mouseout",s),n.addEventListener("focusin",u),n.addEventListener("focusout",f),function(){p.disconnect(),n.removeEventListener("mouseover",o),n.removeEventListener("mouseout",s),n.removeEventListener("focusin",u),n.removeEventListener("focusout",f)}}},[e,t]),q.useEffect(function(){var n;(n=e.current)===null||n===void 0||n.setAttribute("draggable",t.isLock?"false":"true")},[e,t.isLock])},Up={TREE_ITEM:Symbol()},LE=null,FE=function(e){var t=e.target;if(t instanceof HTMLElement){var n=t.closest('[role="listitem"]');e.currentTarget===n&&(LE=n)}},Rx=function(e){return FE(e)},Ix=function(e){return FE(e)},vH=function(e,t){var n=ku();q.useEffect(function(){var u=t.current;return u==null||u.addEventListener("dragstart",Rx),u==null||u.addEventListener("touchstart",Ix,{passive:!0}),function(){u==null||u.removeEventListener("dragstart",Rx),u==null||u.removeEventListener("touchstart",Ix)}},[t]);var r=T3({type:Up.TREE_ITEM,item:function(u){var f=Oa({ref:t},e);return n.onDragStart&&n.onDragStart(f,u),f},end:function(u,f){var p=u;n.onDragEnd&&n.onDragEnd(p,f)},canDrag:function(){var u=n.canDrag;return LE!==t.current?!1:u?u(e.id):!0},collect:function(u){return{isDragging:u.isDragging()}}}),i=r[0].isDragging,o=r[1],s=r[2];return[i,o,s]},mH=function(e,t,n){var r=q.useRef(0),i=q.useRef(0),o=function(){r.current+=1,r.current===1&&!t&&(i.current=window.setTimeout(function(){return n(e)},500))},s=function(){r.current-=1,r.current===0&&window.clearTimeout(i.current)},u=function(){i.current>0&&window.clearTimeout(i.current),r.current=0,i.current=0};return{onDragEnter:o,onDragLeave:s,onDrop:u}},yH=function(e){var t=ku(),n=q.useContext(zd),r=EE({accept:ro([Up.TREE_ITEM],t.extraAcceptTypes,!0),drop:function(f,p){var y=t.rootId,g=t.onDrop,x=n.dropTargetId,C=n.index;p.isOver({shallow:!0})&&x!==void 0&&C!==void 0&&g(wy(f)?f:null,y,C),n.hidePlaceholder()},canDrop:function(f,p){var y=t.rootId;return p.isOver({shallow:!0})?f===void 0?!1:xu(f,y,t):!1},hover:function(f,p){if(p.isOver({shallow:!0})){var y=t.rootId,g=n.dropTargetId,x=n.index,C=n.showPlaceholder,D=n.hidePlaceholder,A=cm(null,e.current,p,t);if(A===null||!xu(f,y,t)){D();return}(A.id!==g||A.index!==x)&&C(A.id,A.index)}},collect:function(f){var p=f.getItem();return{isOver:f.isOver({shallow:!0})&&f.canDrop(),dragSource:p}}}),i=r[0],o=i.isOver,s=i.dragSource,u=r[1];return[o,s,u]},bH=function(e,t){var n=ku(),r=q.useContext(zd),i=EE({accept:ro([Up.TREE_ITEM],n.extraAcceptTypes,!0),drop:function(p,y){var g=r.dropTargetId,x=r.index;y.isOver({shallow:!0})&&g!==void 0&&x!==void 0&&n.onDrop(wy(p)?p:null,g,x),r.hidePlaceholder()},canDrop:function(p,y){if(y.isOver({shallow:!0})){var g=cm(e,t.current,y,n);return g===null?!1:xu(p,g.id,n)}return!1},hover:function(p,y){if(y.isOver({shallow:!0})){var g=r.dropTargetId,x=r.index,C=r.showPlaceholder,D=r.hidePlaceholder,A=cm(e,t.current,y,n);if(A===null||!xu(p,A.id,n)){D();return}(A.id!==g||A.index!==x)&&C(A.id,A.index)}},collect:function(p){var y=p.getItem();return{isOver:p.isOver({shallow:!0})&&p.canDrop(),dragSource:y}}}),o=i[0],s=o.isOver,u=o.dragSource,f=i[1];return[s,u,f]},wH=function(e,t){var n=q.useMemo(function(){return t===!0?e.filter(function(g){return Wh(e,g.id)}).map(function(g){return g.id}):Array.isArray(t)?t:[]},[t]),r=q.useState(n),i=r[0],o=r[1];q.useEffect(function(){return o(n)},[t]);var s=function(g,x){var C=i.includes(g)?i.filter(function(D){return D!==g}):ro(ro([],i,!0),[g],!1);o(C),x&&x(C)},u=function(g){o([]),g&&g([])},f=function(g){var x=e.filter(function(C){return Wh(e,C.id)}).map(function(C){return C.id});o(x),g&&g(x)},p=function(g,x){var C=[];if(Array.isArray(g)){var D=e.filter(function(A){return g.includes(A.id)&&Wh(e,A.id)});C=ro(ro([],i,!0),D.map(function(A){return A.id}),!0).filter(function(A,M,I){return I.indexOf(A)===M})}else C=i.includes(g)?i:ro(ro([],i,!0),[g],!1);o(C),x&&x(C)},y=function(g,x){var C=i.filter(function(D){return Array.isArray(g)?!g.includes(D):D!==g});o(C),x&&x(C)};return[i,{handleToggle:s,handleCloseAll:u,handleOpenAll:f,handleOpen:p,handleClose:y}]},xH=function(){return C3(function(e){var t=e.getItemType();return{item:e.getItem(),clientOffset:e.getClientOffset(),isDragging:e.isDragging()&&t===Up.TREE_ITEM}})},ku=function(){var e=q.useContext(AE);if(!e)throw new Error("useTreeContext must be used under TreeProvider");return e},SH=function(e,t){var n=ku(),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},TH=function(e,t,n){t.current?n(t):n(e),q.useEffect(function(){t.current?n(t):n(e)},[t.current])},CH=function(e){var t=ku(),n=q.useContext(zd),r=q.useRef(null),i=q.useRef(null),o=t.tree.find(function(se){return se.id===e.id}),s=t.openIds,u=t.classes,f=t.enableAnimateExpand,p=s.includes(e.id),y=vH(o,r),g=y[0],x=y[1],C=y[2],D=bH(o,r),A=D[0],M=D[1],I=D[2];TH(r,i,x),xu(M,e.id,t)&&I(r),q.useEffect(function(){t.dragPreviewRender?C(R2(),{captureDraggingState:!0}):i.current&&C(r)},[C,t.dragPreviewRender]),gH(r);var H=function(){return t.onToggle(o.id)},U=t.listItemComponent,Q=(u==null?void 0:u.listItem)||"";A&&(u!=null&&u.dropTarget)&&(Q="".concat(Q," ").concat(u.dropTarget)),g&&(u!=null&&u.draggingSource)&&(Q="".concat(Q," ").concat(u.draggingSource));var Z=t.canDrag?t.canDrag(e.id):!0,ce=n.dropTargetId===e.id,T={depth:e.depth,isOpen:p,isDragging:g,isDropTarget:ce,draggable:Z,hasChild:Wh(t.tree,e.id),containerRef:r,handleRef:i,onToggle:H};return q.createElement(U,{ref:r,className:Q,role:"listitem"},t.render(o,T),f&&T.hasChild&&q.createElement(eH,{isVisible:p},q.createElement(fm,{parentId:e.id,depth:e.depth+1})),!f&&T.hasChild&&p&&q.createElement(fm,{parentId:e.id,depth:e.depth+1}))},Ax=function(e){var t=ku(),n=t.placeholderRender,r=t.placeholderComponent,i=t.classes,o=q.useContext(zd),s=Pl(),u=s.getMonitor(),f=u.getItem();if(!n||!f)return null;var p=e.dropTargetId===o.dropTargetId&&(e.index===o.index||e.index===void 0&&e.listCount===o.index);return p?q.createElement(r,{className:(i==null?void 0:i.placeholder)||""},n(f,{depth:e.depth})):null},fm=function(e){var t=ku(),n=q.useRef(null),r=t.tree.filter(function(A){return A.parent===e.parentId}),i=r,o=typeof t.sort=="function"?t.sort:nH;if(t.insertDroppableFirst){var s=r.filter(function(A){return A.droppable}),u=r.filter(function(A){return!A.droppable});t.sort===!1?i=ro(ro([],s,!0),u,!0):(s=s.sort(o),u=u.sort(o),i=ro(ro([],s,!0),u,!0))}else t.sort!==!1&&(i=r.sort(o));var f=yH(n),p=f[0],y=f[1],g=f[2];e.parentId===t.rootId&&xu(y,t.rootId,t)&&g(n);var x=SH(e.parentId,p),C=t.rootProps||{},D=t.listComponent;return q.createElement(D,Oa({ref:n,role:"list"},C,{className:x}),i.map(function(A,M){return q.createElement(q.Fragment,{key:A.id},q.createElement(Ax,{depth:e.depth,listCount:i.length,dropTargetId:e.parentId,index:M}),q.createElement(CH,{id:A.id,depth:e.depth}))}),q.createElement(Ax,{depth:e.depth,listCount:i.length,dropTargetId:e.parentId}))},EH={height:"100%",left:0,pointerEvents:"none",position:"fixed",top:0,width:"100%",zIndex:100},kH=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}},OH=function(){var e=ku(),t=xH(),n=t.isDragging,r=t.clientOffset;return!n||!r?null:q.createElement("div",{style:EH},q.createElement("div",{style:kH(t)},e.dragPreviewRender&&e.dragPreviewRender(t)))};function _H(e,t){return q.createElement(pH,Oa({},e,{treeRef:t}),e.dragPreviewRender&&q.createElement(OH,null),q.createElement(fm,{parentId:e.rootId,depth:0}))}var DH=q.forwardRef(_H);const NE=q.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Wp=q.createContext({}),xy=q.createContext(null),zp=typeof document<"u",PH=zp?q.useLayoutEffect:q.useEffect,jE=q.createContext({strict:!1}),Sy=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),RH="framerAppearId",BE="data-"+Sy(RH);function IH(e,t,n,r){const{visualElement:i}=q.useContext(Wp),o=q.useContext(jE),s=q.useContext(xy),u=q.useContext(NE).reducedMotion,f=q.useRef();r=r||o.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:i,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:u}));const p=f.current;q.useInsertionEffect(()=>{p&&p.update(n,s)});const y=q.useRef(!!(n[BE]&&!window.HandoffComplete));return PH(()=>{p&&(p.render(),y.current&&p.animationState&&p.animationState.animateChanges())}),q.useEffect(()=>{p&&(p.updateFeatures(),!y.current&&p.animationState&&p.animationState.animateChanges(),y.current&&(y.current=!1,window.HandoffComplete=!0))}),p}function gf(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function AH(e,t,n){return q.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):gf(n)&&(n.current=r))},[t])}function Id(e){return typeof e=="string"||Array.isArray(e)}function Yp(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Ty=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Cy=["initial",...Ty];function Gp(e){return Yp(e.animate)||Cy.some(t=>Id(e[t]))}function $E(e){return!!(Gp(e)||e.variants)}function MH(e,t){if(Gp(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Id(n)?n:void 0,animate:Id(r)?r:void 0}}return e.inherit!==!1?t:{}}function LH(e){const{initial:t,animate:n}=MH(e,q.useContext(Wp));return q.useMemo(()=>({initial:t,animate:n}),[Mx(t),Mx(n)])}function Mx(e){return Array.isArray(e)?e.join(" "):e}const Lx={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"]},Ad={};for(const e in Lx)Ad[e]={isEnabled:t=>Lx[e].some(n=>!!t[n])};function FH(e){for(const t in e)Ad[t]={...Ad[t],...e[t]}}const VE=q.createContext({}),HE=q.createContext({}),NH=Symbol.for("motionComponentSymbol");function jH({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&FH(e);function o(u,f){let p;const y={...q.useContext(NE),...u,layoutId:BH(u)},{isStatic:g}=y,x=LH(u),C=r(u,g);if(!g&&zp){x.visualElement=IH(i,C,y,t);const D=q.useContext(HE),A=q.useContext(jE).strict;x.visualElement&&(p=x.visualElement.loadFeatures(y,A,e,D))}return bn.createElement(Wp.Provider,{value:x},p&&x.visualElement?bn.createElement(p,{visualElement:x.visualElement,...y}):null,n(i,u,AH(C,x.visualElement,f),C,g,x.visualElement))}const s=q.forwardRef(o);return s[NH]=i,s}function BH({layoutId:e}){const t=q.useContext(VE).id;return t&&e!==void 0?t+"-"+e:e}function $H(e){function t(r,i={}){return jH(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 VH=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Ey(e){return typeof e!="string"||e.includes("-")?!1:!!(VH.indexOf(e)>-1||/[A-Z]/.test(e))}const dp={};function HH(e){Object.assign(dp,e)}const Yd=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],_c=new Set(Yd);function UE(e,{layout:t,layoutId:n}){return _c.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!dp[e]||e==="opacity")}const Do=e=>!!(e&&e.getVelocity),UH={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},WH=Yd.length;function zH(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let s=0;s<WH;s++){const u=Yd[s];if(e[u]!==void 0){const f=UH[u]||u;o+=`${f}(${e[u]}) `}}return t&&!e.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(e,r?"":o):n&&r&&(o="none"),o}const WE=e=>t=>typeof t=="string"&&t.startsWith(e),zE=WE("--"),dm=WE("var(--"),YH=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,GH=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Su=(e,t,n)=>Math.min(Math.max(n,e),t),Dc={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},md={...Dc,transform:e=>Su(0,1,e)},Dh={...Dc,default:1},yd=e=>Math.round(e*1e5)/1e5,qp=/(-)?([\d]*\.?[\d])+/g,YE=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,qH=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Gd(e){return typeof e=="string"}const qd=e=>({test:t=>Gd(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),uu=qd("deg"),Bs=qd("%"),It=qd("px"),XH=qd("vh"),KH=qd("vw"),Fx={...Bs,parse:e=>Bs.parse(e)/100,transform:e=>Bs.transform(e*100)},Nx={...Dc,transform:Math.round},GE={borderWidth:It,borderTopWidth:It,borderRightWidth:It,borderBottomWidth:It,borderLeftWidth:It,borderRadius:It,radius:It,borderTopLeftRadius:It,borderTopRightRadius:It,borderBottomRightRadius:It,borderBottomLeftRadius:It,width:It,maxWidth:It,height:It,maxHeight:It,size:It,top:It,right:It,bottom:It,left:It,padding:It,paddingTop:It,paddingRight:It,paddingBottom:It,paddingLeft:It,margin:It,marginTop:It,marginRight:It,marginBottom:It,marginLeft:It,rotate:uu,rotateX:uu,rotateY:uu,rotateZ:uu,scale:Dh,scaleX:Dh,scaleY:Dh,scaleZ:Dh,skew:uu,skewX:uu,skewY:uu,distance:It,translateX:It,translateY:It,translateZ:It,x:It,y:It,z:It,perspective:It,transformPerspective:It,opacity:md,originX:Fx,originY:Fx,originZ:It,zIndex:Nx,fillOpacity:md,strokeOpacity:md,numOctaves:Nx};function ky(e,t,n,r){const{style:i,vars:o,transform:s,transformOrigin:u}=e;let f=!1,p=!1,y=!0;for(const g in t){const x=t[g];if(zE(g)){o[g]=x;continue}const C=GE[g],D=GH(x,C);if(_c.has(g)){if(f=!0,s[g]=D,!y)continue;x!==(C.default||0)&&(y=!1)}else g.startsWith("origin")?(p=!0,u[g]=D):i[g]=D}if(t.transform||(f||r?i.transform=zH(e.transform,n,y,r):i.transform&&(i.transform="none")),p){const{originX:g="50%",originY:x="50%",originZ:C=0}=u;i.transformOrigin=`${g} ${x} ${C}`}}const Oy=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function qE(e,t,n){for(const r in t)!Do(t[r])&&!UE(r,n)&&(e[r]=t[r])}function ZH({transformTemplate:e},t,n){return q.useMemo(()=>{const r=Oy();return ky(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function JH(e,t,n){const r=e.style||{},i={};return qE(i,r,e),Object.assign(i,ZH(e,t,n)),e.transformValues?e.transformValues(i):i}function QH(e,t,n){const r={},i=JH(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 eU=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 hp(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||eU.has(e)}let XE=e=>!hp(e);function tU(e){e&&(XE=t=>t.startsWith("on")?!hp(t):e(t))}try{tU(require("@emotion/is-prop-valid").default)}catch{}function nU(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(XE(i)||n===!0&&hp(i)||!t&&!hp(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function jx(e,t,n){return typeof e=="string"?e:It.transform(t+n*e)}function rU(e,t,n){const r=jx(t,e.x,e.width),i=jx(n,e.y,e.height);return`${r} ${i}`}const iU={offset:"stroke-dashoffset",array:"stroke-dasharray"},oU={offset:"strokeDashoffset",array:"strokeDasharray"};function aU(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?iU:oU;e[o.offset]=It.transform(-r);const s=It.transform(t),u=It.transform(n);e[o.array]=`${s} ${u}`}function _y(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:u=1,pathOffset:f=0,...p},y,g,x){if(ky(e,p,y,x),g){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:C,style:D,dimensions:A}=e;C.transform&&(A&&(D.transform=C.transform),delete C.transform),A&&(i!==void 0||o!==void 0||D.transform)&&(D.transformOrigin=rU(A,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(C.x=t),n!==void 0&&(C.y=n),r!==void 0&&(C.scale=r),s!==void 0&&aU(C,s,u,f,!1)}const KE=()=>({...Oy(),attrs:{}}),Dy=e=>typeof e=="string"&&e.toLowerCase()==="svg";function sU(e,t,n,r){const i=q.useMemo(()=>{const o=KE();return _y(o,t,{enableHardwareAcceleration:!1},Dy(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};qE(o,e.style,e),i.style={...o,...i.style}}return i}function lU(e=!1){return(n,r,i,{latestValues:o},s)=>{const f=(Ey(n)?sU:QH)(r,o,s,n),y={...nU(r,typeof n=="string",e),...f,ref:i},{children:g}=r,x=q.useMemo(()=>Do(g)?g.get():g,[g]);return q.createElement(n,{...y,children:x})}}function ZE(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 JE=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 QE(e,t,n,r){ZE(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(JE.has(i)?i:Sy(i),t.attrs[i])}function Py(e,t){const{style:n}=e,r={};for(const i in n)(Do(n[i])||t.style&&Do(t.style[i])||UE(i,e))&&(r[i]=n[i]);return r}function ek(e,t){const n=Py(e,t);for(const r in e)if(Do(e[r])||Do(t[r])){const i=Yd.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}function Ry(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 uU(e){const t=q.useRef(null);return t.current===null&&(t.current=e()),t.current}const pp=e=>Array.isArray(e),cU=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),fU=e=>pp(e)?e[e.length-1]||0:e;function zh(e){const t=Do(e)?e.get():e;return cU(t)?t.toValue():t}function dU({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const s={latestValues:hU(r,i,o,e),renderState:t()};return n&&(s.mount=u=>n(r,u,s)),s}const tk=e=>(t,n)=>{const r=q.useContext(Wp),i=q.useContext(xy),o=()=>dU(e,t,r,i);return n?o():uU(o)};function hU(e,t,n,r){const i={},o=r(e,{});for(const x in o)i[x]=zh(o[x]);let{initial:s,animate:u}=e;const f=Gp(e),p=$E(e);t&&p&&!f&&e.inherit!==!1&&(s===void 0&&(s=t.initial),u===void 0&&(u=t.animate));let y=n?n.initial===!1:!1;y=y||s===!1;const g=y?u:s;return g&&typeof g!="boolean"&&!Yp(g)&&(Array.isArray(g)?g:[g]).forEach(C=>{const D=Ry(e,C);if(!D)return;const{transitionEnd:A,transition:M,...I}=D;for(const H in I){let U=I[H];if(Array.isArray(U)){const Q=y?U.length-1:0;U=U[Q]}U!==null&&(i[H]=U)}for(const H in A)i[H]=A[H]}),i}const ar=e=>e;class Bx{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 pU(e){let t=new Bx,n=new Bx,r=0,i=!1,o=!1;const s=new WeakSet,u={schedule:(f,p=!1,y=!1)=>{const g=y&&i,x=g?t:n;return p&&s.add(f),x.add(f)&&g&&i&&(r=t.order.length),f},cancel:f=>{n.remove(f),s.delete(f)},process:f=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let p=0;p<r;p++){const y=t.order[p];y(f),s.has(y)&&(u.schedule(y),e())}i=!1,o&&(o=!1,u.process(f))}};return u}const Ph=["prepare","read","update","preRender","render","postRender"],gU=40;function vU(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=Ph.reduce((g,x)=>(g[x]=pU(()=>n=!0),g),{}),s=g=>o[g].process(i),u=()=>{const g=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(g-i.timestamp,gU),1),i.timestamp=g,i.isProcessing=!0,Ph.forEach(s),i.isProcessing=!1,n&&t&&(r=!1,e(u))},f=()=>{n=!0,r=!0,i.isProcessing||e(u)};return{schedule:Ph.reduce((g,x)=>{const C=o[x];return g[x]=(D,A=!1,M=!1)=>(n||f(),C.schedule(D,A,M)),g},{}),cancel:g=>Ph.forEach(x=>o[x].cancel(g)),state:i,steps:o}}const{schedule:Nn,cancel:_l,state:Fi,steps:tv}=vU(typeof requestAnimationFrame<"u"?requestAnimationFrame:ar,!0),mU={useVisualState:tk({scrapeMotionValuesFromProps:ek,createRenderState:KE,onMount:(e,t,{renderState:n,latestValues:r})=>{Nn.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Nn.render(()=>{_y(n,r,{enableHardwareAcceleration:!1},Dy(t.tagName),e.transformTemplate),QE(t,n)})}})},yU={useVisualState:tk({scrapeMotionValuesFromProps:Py,createRenderState:Oy})};function bU(e,{forwardMotionProps:t=!1},n,r){return{...Ey(e)?mU:yU,preloadedFeatures:n,useRender:lU(t),createVisualElement:r,Component:e}}function bl(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const nk=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Xp(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const wU=e=>t=>nk(t)&&e(t,Xp(t));function Sl(e,t,n,r){return bl(e,t,wU(n),r)}const xU=(e,t)=>n=>t(e(n)),vu=(...e)=>e.reduce(xU);function rk(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const $x=rk("dragHorizontal"),Vx=rk("dragVertical");function ik(e){let t=!1;if(e==="y")t=Vx();else if(e==="x")t=$x();else{const n=$x(),r=Vx();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function ok(){const e=ik(!0);return e?(e(),!1):!0}class Ou{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Hx(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(o,s)=>{if(o.pointerType==="touch"||ok())return;const u=e.getProps();e.animationState&&u.whileHover&&e.animationState.setActive("whileHover",t),u[r]&&Nn.update(()=>u[r](o,s))};return Sl(e.current,n,i,{passive:!e.getProps()[r]})}class SU extends Ou{mount(){this.unmount=vu(Hx(this.node,!0),Hx(this.node,!1))}unmount(){}}class TU extends Ou{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=vu(bl(this.node.current,"focus",()=>this.onFocus()),bl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const ak=(e,t)=>t?e===t?!0:ak(e,t.parentElement):!1;function nv(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Xp(n))}class CU extends Ou{constructor(){super(...arguments),this.removeStartListeners=ar,this.removeEndListeners=ar,this.removeAccessibleListeners=ar,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=Sl(window,"pointerup",(u,f)=>{if(!this.checkPressEnd())return;const{onTap:p,onTapCancel:y,globalTapTarget:g}=this.node.getProps();Nn.update(()=>{!g&&!ak(this.node.current,u.target)?y&&y(u,f):p&&p(u,f)})},{passive:!(r.onTap||r.onPointerUp)}),s=Sl(window,"pointercancel",(u,f)=>this.cancelPress(u,f),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=vu(o,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=u=>{u.key!=="Enter"||!this.checkPressEnd()||nv("up",(f,p)=>{const{onTap:y}=this.node.getProps();y&&Nn.update(()=>y(f,p))})};this.removeEndListeners(),this.removeEndListeners=bl(this.node.current,"keyup",s),nv("down",(u,f)=>{this.startPress(u,f)})},n=bl(this.node.current,"keydown",t),r=()=>{this.isPressing&&nv("cancel",(o,s)=>this.cancelPress(o,s))},i=bl(this.node.current,"blur",r);this.removeAccessibleListeners=vu(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&&Nn.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!ok()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Nn.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=Sl(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=bl(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=vu(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const hm=new WeakMap,rv=new WeakMap,EU=e=>{const t=hm.get(e.target);t&&t(e)},kU=e=>{e.forEach(EU)};function OU({root:e,...t}){const n=e||document;rv.has(n)||rv.set(n,{});const r=rv.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(kU,{root:e,...t})),r[i]}function _U(e,t,n){const r=OU(t);return hm.set(e,n),r.observe(e),()=>{hm.delete(e),r.unobserve(e)}}const DU={some:0,all:1};class PU extends Ou{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:DU[i]},u=f=>{const{isIntersecting:p}=f;if(this.isInView===p||(this.isInView=p,o&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:y,onViewportLeave:g}=this.node.getProps(),x=p?y:g;x&&x(f)};return _U(this.node.current,s,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(RU(t,n))&&this.startObserver()}unmount(){}}function RU({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const IU={inView:{Feature:PU},tap:{Feature:CU},focus:{Feature:TU},hover:{Feature:SU}};function sk(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 AU(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function MU(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Kp(e,t,n){const r=e.getProps();return Ry(r,t,n!==void 0?n:r.custom,AU(e),MU(e))}let Xd=ar,os=ar;process.env.NODE_ENV!=="production"&&(Xd=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},os=(e,t)=>{if(!e)throw new Error(t)});const mu=e=>e*1e3,Tl=e=>e/1e3,LU={current:!1},lk=e=>Array.isArray(e)&&typeof e[0]=="number";function uk(e){return!!(!e||typeof e=="string"&&ck[e]||lk(e)||Array.isArray(e)&&e.every(uk))}const od=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ck={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:od([0,.65,.55,1]),circOut:od([.55,0,1,.45]),backIn:od([.31,.01,.66,-.59]),backOut:od([.33,1.53,.69,.99])};function fk(e){if(e)return lk(e)?od(e):Array.isArray(e)?e.map(fk):ck[e]}function FU(e,t,n,{delay:r=0,duration:i,repeat:o=0,repeatType:s="loop",ease:u,times:f}={}){const p={[t]:n};f&&(p.offset=f);const y=fk(u);return Array.isArray(y)&&(p.easing=y),e.animate(p,{delay:r,duration:i,easing:Array.isArray(y)?"linear":y,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}function NU(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const dk=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,jU=1e-7,BU=12;function $U(e,t,n,r,i){let o,s,u=0;do s=t+(n-t)/2,o=dk(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>jU&&++u<BU);return s}function Kd(e,t,n,r){if(e===t&&n===r)return ar;const i=o=>$U(o,0,1,e,n);return o=>o===0||o===1?o:dk(i(o),t,r)}const VU=Kd(.42,0,1,1),HU=Kd(0,0,.58,1),hk=Kd(.42,0,.58,1),UU=e=>Array.isArray(e)&&typeof e[0]!="number",pk=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,gk=e=>t=>1-e(1-t),Iy=e=>1-Math.sin(Math.acos(e)),vk=gk(Iy),WU=pk(Iy),mk=Kd(.33,1.53,.69,.99),Ay=gk(mk),zU=pk(Ay),YU=e=>(e*=2)<1?.5*Ay(e):.5*(2-Math.pow(2,-10*(e-1))),Ux={linear:ar,easeIn:VU,easeInOut:hk,easeOut:HU,circIn:Iy,circInOut:WU,circOut:vk,backIn:Ay,backInOut:zU,backOut:mk,anticipate:YU},Wx=e=>{if(Array.isArray(e)){os(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Kd(t,n,r,i)}else if(typeof e=="string")return os(Ux[e]!==void 0,`Invalid easing type '${e}'`),Ux[e];return e},My=(e,t)=>n=>!!(Gd(n)&&qH.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),yk=(e,t,n)=>r=>{if(!Gd(r))return r;const[i,o,s,u]=r.match(qp);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:u!==void 0?parseFloat(u):1}},GU=e=>Su(0,255,e),iv={...Dc,transform:e=>Math.round(GU(e))},vc={test:My("rgb","red"),parse:yk("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+iv.transform(e)+", "+iv.transform(t)+", "+iv.transform(n)+", "+yd(md.transform(r))+")"};function qU(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 pm={test:My("#"),parse:qU,transform:vc.transform},vf={test:My("hsl","hue"),parse:yk("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Bs.transform(yd(t))+", "+Bs.transform(yd(n))+", "+yd(md.transform(r))+")"},no={test:e=>vc.test(e)||pm.test(e)||vf.test(e),parse:e=>vc.test(e)?vc.parse(e):vf.test(e)?vf.parse(e):pm.parse(e),transform:e=>Gd(e)?e:e.hasOwnProperty("red")?vc.transform(e):vf.transform(e)},Kn=(e,t,n)=>-n*e+n*t+e;function ov(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 XU({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const u=n<.5?n*(1+t):n+t-n*t,f=2*n-u;i=ov(f,u,e+1/3),o=ov(f,u,e),s=ov(f,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const av=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},KU=[pm,vc,vf],ZU=e=>KU.find(t=>t.test(e));function zx(e){const t=ZU(e);os(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===vf&&(n=XU(n)),n}const bk=(e,t)=>{const n=zx(e),r=zx(t),i={...n};return o=>(i.red=av(n.red,r.red,o),i.green=av(n.green,r.green,o),i.blue=av(n.blue,r.blue,o),i.alpha=Kn(n.alpha,r.alpha,o),vc.transform(i))};function JU(e){var t,n;return isNaN(e)&&Gd(e)&&(((t=e.match(qp))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(YE))===null||n===void 0?void 0:n.length)||0)>0}const wk={regex:YH,countKey:"Vars",token:"${v}",parse:ar},xk={regex:YE,countKey:"Colors",token:"${c}",parse:no.parse},Sk={regex:qp,countKey:"Numbers",token:"${n}",parse:Dc.parse};function sv(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 gp(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&sv(n,wk),sv(n,xk),sv(n,Sk),n}function Tk(e){return gp(e).values}function Ck(e){const{values:t,numColors:n,numVars:r,tokenised:i}=gp(e),o=t.length;return s=>{let u=i;for(let f=0;f<o;f++)f<r?u=u.replace(wk.token,s[f]):f<r+n?u=u.replace(xk.token,no.transform(s[f])):u=u.replace(Sk.token,yd(s[f]));return u}}const QU=e=>typeof e=="number"?0:e;function eW(e){const t=Tk(e);return Ck(e)(t.map(QU))}const Tu={test:JU,parse:Tk,createTransformer:Ck,getAnimatableNone:eW},Ek=(e,t)=>n=>`${n>0?t:e}`;function kk(e,t){return typeof e=="number"?n=>Kn(e,t,n):no.test(e)?bk(e,t):e.startsWith("var(")?Ek(e,t):_k(e,t)}const Ok=(e,t)=>{const n=[...e],r=n.length,i=e.map((o,s)=>kk(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}},tW=(e,t)=>{const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=kk(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}},_k=(e,t)=>{const n=Tu.createTransformer(t),r=gp(e),i=gp(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?vu(Ok(r.values,i.values),n):(Xd(!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.`),Ek(e,t))},Md=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Yx=(e,t)=>n=>Kn(e,t,n);function nW(e){return typeof e=="number"?Yx:typeof e=="string"?no.test(e)?bk:_k:Array.isArray(e)?Ok:typeof e=="object"?tW:Yx}function rW(e,t,n){const r=[],i=n||nW(e[0]),o=e.length-1;for(let s=0;s<o;s++){let u=i(e[s],e[s+1]);if(t){const f=Array.isArray(t)?t[s]||ar:t;u=vu(f,u)}r.push(u)}return r}function Dk(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(os(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=rW(t,r,i),u=s.length,f=p=>{let y=0;if(u>1)for(;y<e.length-2&&!(p<e[y+1]);y++);const g=Md(e[y],e[y+1],p);return s[y](g)};return n?p=>f(Su(e[0],e[o-1],p)):f}function iW(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Md(0,t,r);e.push(Kn(n,1,i))}}function oW(e){const t=[0];return iW(t,e.length-1),t}function aW(e,t){return e.map(n=>n*t)}function sW(e,t){return e.map(()=>t||hk).splice(0,e.length-1)}function vp({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=UU(r)?r.map(Wx):Wx(r),o={done:!1,value:t[0]},s=aW(n&&n.length===t.length?n:oW(t),e),u=Dk(s,t,{ease:Array.isArray(i)?i:sW(t,i)});return{calculatedDuration:e,next:f=>(o.value=u(f),o.done=f>=e,o)}}function Pk(e,t){return t?e*(1e3/t):0}const lW=5;function Rk(e,t,n){const r=Math.max(t-lW,0);return Pk(n-e(r),t-r)}const Gx=.001,uW=.01,qx=10,cW=.05,fW=1;function dW({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;Xd(e<=mu(qx),"Spring duration must be 10 seconds or less");let s=1-t;s=Su(cW,fW,s),e=Su(uW,qx,Tl(e)),s<1?(i=p=>{const y=p*s,g=y*e,x=y-n,C=gm(p,s),D=Math.exp(-g);return Gx-x/C*D},o=p=>{const g=p*s*e,x=g*n+n,C=Math.pow(s,2)*Math.pow(p,2)*e,D=Math.exp(-g),A=gm(Math.pow(p,2),s);return(-i(p)+Gx>0?-1:1)*((x-C)*D)/A}):(i=p=>{const y=Math.exp(-p*e),g=(p-n)*e+1;return-.001+y*g},o=p=>{const y=Math.exp(-p*e),g=(n-p)*(e*e);return y*g});const u=5/e,f=pW(i,o,u);if(e=mu(e),isNaN(f))return{stiffness:100,damping:10,duration:e};{const p=Math.pow(f,2)*r;return{stiffness:p,damping:s*2*Math.sqrt(r*p),duration:e}}}const hW=12;function pW(e,t,n){let r=n;for(let i=1;i<hW;i++)r=r-e(r)/t(r);return r}function gm(e,t){return e*Math.sqrt(1-t*t)}const gW=["duration","bounce"],vW=["stiffness","damping","mass"];function Xx(e,t){return t.some(n=>e[n]!==void 0)}function mW(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Xx(e,vW)&&Xx(e,gW)){const n=dW(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function Ik({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],o=e[e.length-1],s={done:!1,value:i},{stiffness:u,damping:f,mass:p,duration:y,velocity:g,isResolvedFromDuration:x}=mW({...r,velocity:-Tl(r.velocity||0)}),C=g||0,D=f/(2*Math.sqrt(u*p)),A=o-i,M=Tl(Math.sqrt(u/p)),I=Math.abs(A)<5;n||(n=I?.01:2),t||(t=I?.005:.5);let H;if(D<1){const U=gm(M,D);H=Q=>{const Z=Math.exp(-D*M*Q);return o-Z*((C+D*M*A)/U*Math.sin(U*Q)+A*Math.cos(U*Q))}}else if(D===1)H=U=>o-Math.exp(-M*U)*(A+(C+M*A)*U);else{const U=M*Math.sqrt(D*D-1);H=Q=>{const Z=Math.exp(-D*M*Q),ce=Math.min(U*Q,300);return o-Z*((C+D*M*A)*Math.sinh(ce)+U*A*Math.cosh(ce))/U}}return{calculatedDuration:x&&y||null,next:U=>{const Q=H(U);if(x)s.done=U>=y;else{let Z=C;U!==0&&(D<1?Z=Rk(H,U,Q):Z=0);const ce=Math.abs(Z)<=n,T=Math.abs(o-Q)<=t;s.done=ce&&T}return s.value=s.done?o:Q,s}}}function Kx({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:u,max:f,restDelta:p=.5,restSpeed:y}){const g=e[0],x={done:!1,value:g},C=se=>u!==void 0&&se<u||f!==void 0&&se>f,D=se=>u===void 0?f:f===void 0||Math.abs(u-se)<Math.abs(f-se)?u:f;let A=n*t;const M=g+A,I=s===void 0?M:s(M);I!==M&&(A=I-g);const H=se=>-A*Math.exp(-se/r),U=se=>I+H(se),Q=se=>{const re=H(se),Pe=U(se);x.done=Math.abs(re)<=p,x.value=x.done?I:Pe};let Z,ce;const T=se=>{C(x.value)&&(Z=se,ce=Ik({keyframes:[x.value,D(x.value)],velocity:Rk(U,se,x.value),damping:i,stiffness:o,restDelta:p,restSpeed:y}))};return T(0),{calculatedDuration:null,next:se=>{let re=!1;return!ce&&Z===void 0&&(re=!0,Q(se),T(se)),Z!==void 0&&se>Z?ce.next(se-Z):(!re&&Q(se),x)}}}const yW=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Nn.update(t,!0),stop:()=>_l(t),now:()=>Fi.isProcessing?Fi.timestamp:performance.now()}},Zx=2e4;function Jx(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Zx;)t+=n,r=e.next(t);return t>=Zx?1/0:t}const bW={decay:Kx,inertia:Kx,tween:vp,keyframes:vp,spring:Ik};function mp({autoplay:e=!0,delay:t=0,driver:n=yW,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:u="loop",onPlay:f,onStop:p,onComplete:y,onUpdate:g,...x}){let C=1,D=!1,A,M;const I=()=>{M=new Promise(Ce=>{A=Ce})};I();let H;const U=bW[i]||vp;let Q;U!==vp&&typeof r[0]!="number"&&(process.env.NODE_ENV!=="production"&&os(r.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${r}`),Q=Dk([0,100],r,{clamp:!1}),r=[0,100]);const Z=U({...x,keyframes:r});let ce;u==="mirror"&&(ce=U({...x,keyframes:[...r].reverse(),velocity:-(x.velocity||0)}));let T="idle",se=null,re=null,Pe=null;Z.calculatedDuration===null&&o&&(Z.calculatedDuration=Jx(Z));const{calculatedDuration:He}=Z;let Ue=1/0,Qe=1/0;He!==null&&(Ue=He+s,Qe=Ue*(o+1)-s);let Ke=0;const he=Ce=>{if(re===null)return;C>0&&(re=Math.min(re,Ce)),C<0&&(re=Math.min(Ce-Qe/C,re)),se!==null?Ke=se:Ke=Math.round(Ce-re)*C;const $e=Ke-t*(C>=0?1:-1),je=C>=0?$e<0:$e>Qe;Ke=Math.max($e,0),T==="finished"&&se===null&&(Ke=Qe);let ke=Ke,De=Z;if(o){const ht=Math.min(Ke,Qe)/Ue;let lt=Math.floor(ht),mt=ht%1;!mt&&ht>=1&&(mt=1),mt===1&<--,lt=Math.min(lt,o+1),!!(lt%2)&&(u==="reverse"?(mt=1-mt,s&&(mt-=s/Ue)):u==="mirror"&&(De=ce)),ke=Su(0,1,mt)*Ue}const Fe=je?{done:!1,value:r[0]}:De.next(ke);Q&&(Fe.value=Q(Fe.value));let{done:rt}=Fe;!je&&He!==null&&(rt=C>=0?Ke>=Qe:Ke<=0);const at=se===null&&(T==="finished"||T==="running"&&rt);return g&&g(Fe.value),at&&Ge(),Fe},me=()=>{H&&H.stop(),H=void 0},Le=()=>{T="idle",me(),A(),I(),re=Pe=null},Ge=()=>{T="finished",y&&y(),me(),A()},tt=()=>{if(D)return;H||(H=n(he));const Ce=H.now();f&&f(),se!==null?re=Ce-se:(!re||T==="finished")&&(re=Ce),T==="finished"&&I(),Pe=re,se=null,T="running",H.start()};e&&tt();const xe={then(Ce,$e){return M.then(Ce,$e)},get time(){return Tl(Ke)},set time(Ce){Ce=mu(Ce),Ke=Ce,se!==null||!H||C===0?se=Ce:re=H.now()-Ce/C},get duration(){const Ce=Z.calculatedDuration===null?Jx(Z):Z.calculatedDuration;return Tl(Ce)},get speed(){return C},set speed(Ce){Ce===C||!H||(C=Ce,xe.time=Tl(Ke))},get state(){return T},play:tt,pause:()=>{T="paused",se=Ke},stop:()=>{D=!0,T!=="idle"&&(T="idle",p&&p(),Le())},cancel:()=>{Pe!==null&&he(Pe),Le()},complete:()=>{T="finished"},sample:Ce=>(re=0,he(Ce))};return xe}function wW(e){let t;return()=>(t===void 0&&(t=e()),t)}const xW=wW(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),SW=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Rh=10,TW=2e4,CW=(e,t)=>t.type==="spring"||e==="backgroundColor"||!uk(t.ease);function EW(e,t,{onUpdate:n,onComplete:r,...i}){if(!(xW()&&SW.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let s=!1,u,f,p=!1;const y=()=>{f=new Promise(U=>{u=U})};y();let{keyframes:g,duration:x=300,ease:C,times:D}=i;if(CW(t,i)){const U=mp({...i,repeat:0,delay:0});let Q={done:!1,value:g[0]};const Z=[];let ce=0;for(;!Q.done&&ce<TW;)Q=U.sample(ce),Z.push(Q.value),ce+=Rh;D=void 0,g=Z,x=ce-Rh,C="linear"}const A=FU(e.owner.current,t,g,{...i,duration:x,ease:C,times:D}),M=()=>{p=!1,A.cancel()},I=()=>{p=!0,Nn.update(M),u(),y()};return A.onfinish=()=>{p||(e.set(NU(g,i)),r&&r(),I())},{then(U,Q){return f.then(U,Q)},attachTimeline(U){return A.timeline=U,A.onfinish=null,ar},get time(){return Tl(A.currentTime||0)},set time(U){A.currentTime=mu(U)},get speed(){return A.playbackRate},set speed(U){A.playbackRate=U},get duration(){return Tl(x)},play:()=>{s||(A.play(),_l(M))},pause:()=>A.pause(),stop:()=>{if(s=!0,A.playState==="idle")return;const{currentTime:U}=A;if(U){const Q=mp({...i,autoplay:!1});e.setWithVelocity(Q.sample(U-Rh).value,Q.sample(U).value,Rh)}I()},complete:()=>{p||A.finish()},cancel:I}}function kW({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:ar,pause:ar,stop:ar,then:o=>(o(),Promise.resolve()),cancel:ar,complete:ar});return t?mp({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const OW={type:"spring",stiffness:500,damping:25,restSpeed:10},_W=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),DW={type:"keyframes",duration:.8},PW={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},RW=(e,{keyframes:t})=>t.length>2?DW:_c.has(e)?e.startsWith("scale")?_W(t[1]):OW:PW,vm=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Tu.test(t)||t==="0")&&!t.startsWith("url(")),IW=new Set(["brightness","contrast","saturate","opacity"]);function AW(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=IW.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const MW=/([a-z-]*)\(.*?\)/g,mm={...Tu,getAnimatableNone:e=>{const t=e.match(MW);return t?t.map(AW).join(" "):e}},LW={...GE,color:no,backgroundColor:no,outlineColor:no,fill:no,stroke:no,borderColor:no,borderTopColor:no,borderRightColor:no,borderBottomColor:no,borderLeftColor:no,filter:mm,WebkitFilter:mm},Ly=e=>LW[e];function Ak(e,t){let n=Ly(e);return n!==mm&&(n=Tu),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Mk=e=>/^0[^.\s]+$/.test(e);function FW(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||Mk(e)}function NW(e,t,n,r){const i=vm(t,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const s=r.from!==void 0?r.from:e.get();let u;const f=[];for(let p=0;p<o.length;p++)o[p]===null&&(o[p]=p===0?s:o[p-1]),FW(o[p])&&f.push(p),typeof o[p]=="string"&&o[p]!=="none"&&o[p]!=="0"&&(u=o[p]);if(i&&f.length&&u)for(let p=0;p<f.length;p++){const y=f[p];o[y]=Ak(t,u)}return o}function jW({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:u,from:f,elapsed:p,...y}){return!!Object.keys(y).length}function Fy(e,t){return e[t]||e.default||e}const BW={skipAnimations:!1},Ny=(e,t,n,r={})=>i=>{const o=Fy(r,e)||{},s=o.delay||r.delay||0;let{elapsed:u=0}=r;u=u-mu(s);const f=NW(t,e,n,o),p=f[0],y=f[f.length-1],g=vm(e,p),x=vm(e,y);Xd(g===x,`You are trying to animate ${e} from "${p}" to "${y}". ${p} is not an animatable value - to enable this animation set ${p} to a value animatable to ${y} via the \`style\` property.`);let C={keyframes:f,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-u,onUpdate:D=>{t.set(D),o.onUpdate&&o.onUpdate(D)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(jW(o)||(C={...C,...RW(e,C)}),C.duration&&(C.duration=mu(C.duration)),C.repeatDelay&&(C.repeatDelay=mu(C.repeatDelay)),!g||!x||LU.current||o.type===!1||BW.skipAnimations)return kW(C);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const D=EW(t,e,C);if(D)return D}return mp(C)};function yp(e){return!!(Do(e)&&e.add)}const Lk=e=>/^\-?\d*\.?\d+$/.test(e);function jy(e,t){e.indexOf(t)===-1&&e.push(t)}function By(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class $y{constructor(){this.subscriptions=[]}add(t){return jy(this.subscriptions,t),()=>By(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 Qx=new Set;function Vy(e,t,n){e||Qx.has(t)||(console.warn(t),Qx.add(t))}const $W=e=>!isNaN(parseFloat(e));class VW{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}=Fi;this.lastUpdated!==s&&(this.timeDelta=o,this.lastUpdated=s,Nn.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=()=>Nn.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=$W(this.current),this.owner=n.owner}onChange(t){return process.env.NODE_ENV!=="production"&&Vy(!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 $y);const r=this.events[t].add(n);return t==="change"?()=>{r(),Nn.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?Pk(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 kf(e,t){return new VW(e,t)}const Fk=e=>t=>t.test(e),HW={test:e=>e==="auto",parse:e=>e},Nk=[Dc,It,Bs,uu,KH,XH,HW],rd=e=>Nk.find(Fk(e)),UW=[...Nk,no,Tu],WW=e=>UW.find(Fk(e));function zW(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,kf(n))}function YW(e,t){const n=Kp(e,t);let{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const s in o){const u=fU(o[s]);zW(e,s,u)}}function GW(e,t,n){var r,i;const o=Object.keys(t).filter(u=>!e.hasValue(u)),s=o.length;if(s)for(let u=0;u<s;u++){const f=o[u],p=t[f];let y=null;Array.isArray(p)&&(y=p[0]),y===null&&(y=(i=(r=n[f])!==null&&r!==void 0?r:e.readValue(f))!==null&&i!==void 0?i:t[f]),y!=null&&(typeof y=="string"&&(Lk(y)||Mk(y))?y=parseFloat(y):!WW(y)&&Tu.test(p)&&(y=Ak(f,p)),e.addValue(f,kf(y,{owner:e})),n[f]===void 0&&(n[f]=y),y!==null&&e.setBaseTarget(f,y))}}function qW(e,t){return t?(t[e]||t.default||t).from:void 0}function XW(e,t,n){const r={};for(const i in e){const o=qW(i,t);if(o!==void 0)r[i]=o;else{const s=n.getValue(i);s&&(r[i]=s.get())}}return r}function KW({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function ZW(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 jk(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:s,...u}=e.makeTargetAnimatable(t);const f=e.getValue("willChange");r&&(o=r);const p=[],y=i&&e.animationState&&e.animationState.getState()[i];for(const g in u){const x=e.getValue(g),C=u[g];if(!x||C===void 0||y&&KW(y,g))continue;const D={delay:n,elapsed:0,...Fy(o||{},g)};if(window.HandoffAppearAnimations){const I=e.getProps()[BE];if(I){const H=window.HandoffAppearAnimations(I,g,x,Nn);H!==null&&(D.elapsed=H,D.isHandoff=!0)}}let A=!D.isHandoff&&!ZW(x,C);if(D.type==="spring"&&(x.getVelocity()||D.velocity)&&(A=!1),x.animation&&(A=!1),A)continue;x.start(Ny(g,x,C,e.shouldReduceMotion&&_c.has(g)?{type:!1}:D));const M=x.animation;yp(f)&&(f.add(g),M.then(()=>f.remove(g))),p.push(M)}return s&&Promise.all(p).then(()=>{s&&YW(e,s)}),p}function ym(e,t,n={}){const r=Kp(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(jk(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(f=0)=>{const{delayChildren:p=0,staggerChildren:y,staggerDirection:g}=i;return JW(e,t,p+f,y,g,n)}:()=>Promise.resolve(),{when:u}=i;if(u){const[f,p]=u==="beforeChildren"?[o,s]:[s,o];return f().then(()=>p())}else return Promise.all([o(),s(n.delay)])}function JW(e,t,n=0,r=0,i=1,o){const s=[],u=(e.variantChildren.size-1)*r,f=i===1?(p=0)=>p*r:(p=0)=>u-p*r;return Array.from(e.variantChildren).sort(QW).forEach((p,y)=>{p.notify("AnimationStart",t),s.push(ym(p,t,{...o,delay:n+f(y)}).then(()=>p.notify("AnimationComplete",t)))}),Promise.all(s)}function QW(e,t){return e.sortNodePosition(t)}function ez(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>ym(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=ym(e,t,n);else{const i=typeof t=="function"?Kp(e,t,n.custom):t;r=Promise.all(jk(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}const tz=[...Ty].reverse(),nz=Ty.length;function rz(e){return t=>Promise.all(t.map(({animation:n,options:r})=>ez(e,n,r)))}function iz(e){let t=rz(e);const n=az();let r=!0;const i=(f,p)=>{const y=Kp(e,p);if(y){const{transition:g,transitionEnd:x,...C}=y;f={...f,...C,...x}}return f};function o(f){t=f(e)}function s(f,p){const y=e.getProps(),g=e.getVariantContext(!0)||{},x=[],C=new Set;let D={},A=1/0;for(let I=0;I<nz;I++){const H=tz[I],U=n[H],Q=y[H]!==void 0?y[H]:g[H],Z=Id(Q),ce=H===p?U.isActive:null;ce===!1&&(A=I);let T=Q===g[H]&&Q!==y[H]&&Z;if(T&&r&&e.manuallyAnimateOnMount&&(T=!1),U.protectedKeys={...D},!U.isActive&&ce===null||!Q&&!U.prevProp||Yp(Q)||typeof Q=="boolean")continue;let re=oz(U.prevProp,Q)||H===p&&U.isActive&&!T&&Z||I>A&&Z,Pe=!1;const He=Array.isArray(Q)?Q:[Q];let Ue=He.reduce(i,{});ce===!1&&(Ue={});const{prevResolvedValues:Qe={}}=U,Ke={...Qe,...Ue},he=me=>{re=!0,C.has(me)&&(Pe=!0,C.delete(me)),U.needsAnimating[me]=!0};for(const me in Ke){const Le=Ue[me],Ge=Qe[me];if(D.hasOwnProperty(me))continue;let tt=!1;pp(Le)&&pp(Ge)?tt=!sk(Le,Ge):tt=Le!==Ge,tt?Le!==void 0?he(me):C.add(me):Le!==void 0&&C.has(me)?he(me):U.protectedKeys[me]=!0}U.prevProp=Q,U.prevResolvedValues=Ue,U.isActive&&(D={...D,...Ue}),r&&e.blockInitialAnimation&&(re=!1),re&&(!T||Pe)&&x.push(...He.map(me=>({animation:me,options:{type:H,...f}})))}if(C.size){const I={};C.forEach(H=>{const U=e.getBaseTarget(H);U!==void 0&&(I[H]=U)}),x.push({animation:I})}let M=!!x.length;return r&&(y.initial===!1||y.initial===y.animate)&&!e.manuallyAnimateOnMount&&(M=!1),r=!1,M?t(x):Promise.resolve()}function u(f,p,y){var g;if(n[f].isActive===p)return Promise.resolve();(g=e.variantChildren)===null||g===void 0||g.forEach(C=>{var D;return(D=C.animationState)===null||D===void 0?void 0:D.setActive(f,p)}),n[f].isActive=p;const x=s(y,f);for(const C in n)n[C].protectedKeys={};return x}return{animateChanges:s,setActive:u,setAnimateFunction:o,getState:()=>n}}function oz(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!sk(t,e):!1}function uc(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function az(){return{animate:uc(!0),whileInView:uc(),whileHover:uc(),whileTap:uc(),whileDrag:uc(),whileFocus:uc(),exit:uc()}}class sz extends Ou{constructor(t){super(t),t.animationState||(t.animationState=iz(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Yp(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 lz=0;class uz extends Ou{constructor(){super(...arguments),this.id=lz++}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 cz={animation:{Feature:sz},exit:{Feature:uz}},eS=(e,t)=>Math.abs(e-t);function fz(e,t){const n=eS(e.x,t.x),r=eS(e.y,t.y);return Math.sqrt(n**2+r**2)}class Bk{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=uv(this.lastMoveEventInfo,this.history),x=this.startEvent!==null,C=fz(g.offset,{x:0,y:0})>=3;if(!x&&!C)return;const{point:D}=g,{timestamp:A}=Fi;this.history.push({...D,timestamp:A});const{onStart:M,onMove:I}=this.handlers;x||(M&&M(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),I&&I(this.lastMoveEvent,g)},this.handlePointerMove=(g,x)=>{this.lastMoveEvent=g,this.lastMoveEventInfo=lv(x,this.transformPagePoint),Nn.update(this.updatePoint,!0)},this.handlePointerUp=(g,x)=>{this.end();const{onEnd:C,onSessionEnd:D,resumeAnimation:A}=this.handlers;if(this.dragSnapToOrigin&&A&&A(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const M=uv(g.type==="pointercancel"?this.lastMoveEventInfo:lv(x,this.transformPagePoint),this.history);this.startEvent&&C&&C(g,M),D&&D(g,M)},!nk(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=Xp(t),u=lv(s,this.transformPagePoint),{point:f}=u,{timestamp:p}=Fi;this.history=[{...f,timestamp:p}];const{onSessionStart:y}=n;y&&y(t,uv(u,this.history)),this.removeListeners=vu(Sl(this.contextWindow,"pointermove",this.handlePointerMove),Sl(this.contextWindow,"pointerup",this.handlePointerUp),Sl(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),_l(this.updatePoint)}}function lv(e,t){return t?{point:t(e.point)}:e}function tS(e,t){return{x:e.x-t.x,y:e.y-t.y}}function uv({point:e},t){return{point:e,delta:tS(e,$k(t)),offset:tS(e,dz(t)),velocity:hz(t,.1)}}function dz(e){return e[0]}function $k(e){return e[e.length-1]}function hz(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=$k(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>mu(t)));)n--;if(!r)return{x:0,y:0};const o=Tl(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 Ko(e){return e.max-e.min}function bm(e,t=0,n=.01){return Math.abs(e-t)<=n}function nS(e,t,n,r=.5){e.origin=r,e.originPoint=Kn(t.min,t.max,e.origin),e.scale=Ko(n)/Ko(t),(bm(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Kn(n.min,n.max,e.origin)-e.originPoint,(bm(e.translate)||isNaN(e.translate))&&(e.translate=0)}function bd(e,t,n,r){nS(e.x,t.x,n.x,r?r.originX:void 0),nS(e.y,t.y,n.y,r?r.originY:void 0)}function rS(e,t,n){e.min=n.min+t.min,e.max=e.min+Ko(t)}function pz(e,t,n){rS(e.x,t.x,n.x),rS(e.y,t.y,n.y)}function iS(e,t,n){e.min=t.min-n.min,e.max=e.min+Ko(t)}function wd(e,t,n){iS(e.x,t.x,n.x),iS(e.y,t.y,n.y)}function gz(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Kn(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Kn(n,e,r.max):Math.min(e,n)),e}function oS(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 vz(e,{top:t,left:n,bottom:r,right:i}){return{x:oS(e.x,n,i),y:oS(e.y,t,r)}}function aS(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 mz(e,t){return{x:aS(e.x,t.x),y:aS(e.y,t.y)}}function yz(e,t){let n=.5;const r=Ko(e),i=Ko(t);return i>r?n=Md(t.min,t.max-r,e.min):r>i&&(n=Md(e.min,e.max-i,t.min)),Su(0,1,n)}function bz(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 wm=.35;function wz(e=wm){return e===!1?e=0:e===!0&&(e=wm),{x:sS(e,"left","right"),y:sS(e,"top","bottom")}}function sS(e,t,n){return{min:lS(e,t),max:lS(e,n)}}function lS(e,t){return typeof e=="number"?e:e[t]||0}const uS=()=>({translate:0,scale:1,origin:0,originPoint:0}),mf=()=>({x:uS(),y:uS()}),cS=()=>({min:0,max:0}),Cr=()=>({x:cS(),y:cS()});function Ta(e){return[e("x"),e("y")]}function Vk({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function xz({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Sz(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 cv(e){return e===void 0||e===1}function xm({scale:e,scaleX:t,scaleY:n}){return!cv(e)||!cv(t)||!cv(n)}function dc(e){return xm(e)||Hk(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Hk(e){return fS(e.x)||fS(e.y)}function fS(e){return e&&e!=="0%"}function bp(e,t,n){const r=e-n,i=t*r;return n+i}function dS(e,t,n,r,i){return i!==void 0&&(e=bp(e,i,r)),bp(e,n,r)+t}function Sm(e,t=0,n=1,r,i){e.min=dS(e.min,t,n,r,i),e.max=dS(e.max,t,n,r,i)}function Uk(e,{x:t,y:n}){Sm(e.x,t.translate,t.scale,t.originPoint),Sm(e.y,n.translate,n.scale,n.originPoint)}function Tz(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let u=0;u<i;u++){o=n[u],s=o.projectionDelta;const f=o.instance;f&&f.style&&f.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&yf(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Uk(e,s)),r&&dc(o.latestValues)&&yf(e,o.latestValues))}t.x=hS(t.x),t.y=hS(t.y)}function hS(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function fu(e,t){e.min=e.min+t,e.max=e.max+t}function pS(e,t,[n,r,i]){const o=t[i]!==void 0?t[i]:.5,s=Kn(e.min,e.max,o);Sm(e,t[n],t[r],s,t.scale)}const Cz=["x","scaleX","originX"],Ez=["y","scaleY","originY"];function yf(e,t){pS(e.x,t,Cz),pS(e.y,t,Ez)}function Wk(e,t){return Vk(Sz(e.getBoundingClientRect(),t))}function kz(e,t,n){const r=Wk(e,n),{scroll:i}=t;return i&&(fu(r.x,i.offset.x),fu(r.y,i.offset.y)),r}const zk=({current:e})=>e?e.ownerDocument.defaultView:null,Oz=new WeakMap;class _z{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=Cr(),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(Xp(y,"page").point)},o=(y,g)=>{const{drag:x,dragPropagation:C,onDragStart:D}=this.getProps();if(x&&!C&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=ik(x),!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),Ta(M=>{let I=this.getAxisMotionValue(M).get()||0;if(Bs.test(I)){const{projection:H}=this.visualElement;if(H&&H.layout){const U=H.layout.layoutBox[M];U&&(I=Ko(U)*(parseFloat(I)/100))}}this.originPoint[M]=I}),D&&Nn.update(()=>D(y,g),!1,!0);const{animationState:A}=this.visualElement;A&&A.setActive("whileDrag",!0)},s=(y,g)=>{const{dragPropagation:x,dragDirectionLock:C,onDirectionLock:D,onDrag:A}=this.getProps();if(!x&&!this.openGlobalLock)return;const{offset:M}=g;if(C&&this.currentDirection===null){this.currentDirection=Dz(M),this.currentDirection!==null&&D&&D(this.currentDirection);return}this.updateAxis("x",g.point,M),this.updateAxis("y",g.point,M),this.visualElement.render(),A&&A(y,g)},u=(y,g)=>this.stop(y,g),f=()=>Ta(y=>{var g;return this.getAnimationState(y)==="paused"&&((g=this.getAxisMotionValue(y).animation)===null||g===void 0?void 0:g.play())}),{dragSnapToOrigin:p}=this.getProps();this.panSession=new Bk(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:u,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,contextWindow:zk(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&&Nn.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||!Ih(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=gz(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&&gf(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=vz(i.layoutBox,n):this.constraints=!1,this.elastic=wz(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Ta(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=bz(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!gf(t))return!1;const r=t.current;os(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=kz(r,i.root,this.visualElement.getTransformPagePoint());let s=mz(i.layout.layoutBox,o);if(n){const u=n(xz(s));this.hasMutatedConstraints=!!u,u&&(s=Vk(u))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:u}=this.getProps(),f=this.constraints||{},p=Ta(y=>{if(!Ih(y,n,this.currentDirection))return;let g=f&&f[y]||{};s&&(g={min:0,max:0});const x=i?200:1e6,C=i?40:1e7,D={type:"inertia",velocity:r?t[y]:0,bounceStiffness:x,bounceDamping:C,timeConstant:750,restDelta:1,restSpeed:10,...o,...g};return this.startAxisValueAnimation(y,D)});return Promise.all(p).then(u)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(Ny(t,r,0,n))}stopAnimation(){Ta(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ta(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){Ta(n=>{const{drag:r}=this.getProps();if(!Ih(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:u}=i.layout.layoutBox[n];o.set(t[n]-Kn(s,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!gf(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Ta(s=>{const u=this.getAxisMotionValue(s);if(u){const f=u.get();i[s]=yz({min:f,max:f},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(),Ta(s=>{if(!Ih(s,t,null))return;const u=this.getAxisMotionValue(s),{min:f,max:p}=this.constraints[s];u.set(Kn(f,p,i[s]))})}addListeners(){if(!this.visualElement.current)return;Oz.set(this.visualElement,this);const t=this.visualElement.current,n=Sl(t,"pointerdown",f=>{const{drag:p,dragListener:y=!0}=this.getProps();p&&y&&this.start(f)}),r=()=>{const{dragConstraints:f}=this.getProps();gf(f)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const s=bl(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p})=>{this.isDragging&&p&&(Ta(y=>{const g=this.getAxisMotionValue(y);g&&(this.originPoint[y]+=f[y].translate,g.set(g.get()+f[y].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),u&&u()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=wm,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:u}}}function Ih(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Dz(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Pz extends Ou{constructor(t){super(t),this.removeGroupControls=ar,this.removeListeners=ar,this.controls=new _z(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ar}unmount(){this.removeGroupControls(),this.removeListeners()}}const gS=e=>(t,n)=>{e&&Nn.update(()=>e(t,n))};class Rz extends Ou{constructor(){super(...arguments),this.removePointerDownListener=ar}onPointerDown(t){this.session=new Bk(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:zk(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:gS(t),onStart:gS(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&Nn.update(()=>i(o,s))}}}mount(){this.removePointerDownListener=Sl(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 Iz(){const e=q.useContext(xy);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=q.useId();return q.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}const Yh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function vS(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const id={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(It.test(e))e=parseFloat(e);else return e;const n=vS(e,t.target.x),r=vS(e,t.target.y);return`${n}% ${r}%`}},Az={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Tu.parse(e);if(i.length>5)return r;const o=Tu.createTransformer(e),s=typeof i[0]!="number"?1:0,u=n.x.scale*t.x,f=n.y.scale*t.y;i[0+s]/=u,i[1+s]/=f;const p=Kn(u,f,.5);return typeof i[2+s]=="number"&&(i[2+s]/=p),typeof i[3+s]=="number"&&(i[3+s]/=p),o(i)}};class Mz extends q.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;HH(Lz),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Yh.hasEverUpdated=!0}getSnapshotBeforeUpdate(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()||Nn.postRender(()=>{const u=s.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Yk(e){const[t,n]=Iz(),r=q.useContext(VE);return q.createElement(Mz,{...e,layoutGroup:r,switchLayoutGroup:q.useContext(HE),isPresent:t,safeToRemove:n})}const Lz={borderRadius:{...id,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:id,borderTopRightRadius:id,borderBottomLeftRadius:id,borderBottomRightRadius:id,boxShadow:Az},Gk=["TopLeft","TopRight","BottomLeft","BottomRight"],Fz=Gk.length,mS=e=>typeof e=="string"?parseFloat(e):e,yS=e=>typeof e=="number"||It.test(e);function Nz(e,t,n,r,i,o){i?(e.opacity=Kn(0,n.opacity!==void 0?n.opacity:1,jz(r)),e.opacityExit=Kn(t.opacity!==void 0?t.opacity:1,0,Bz(r))):o&&(e.opacity=Kn(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<Fz;s++){const u=`border${Gk[s]}Radius`;let f=bS(t,u),p=bS(n,u);if(f===void 0&&p===void 0)continue;f||(f=0),p||(p=0),f===0||p===0||yS(f)===yS(p)?(e[u]=Math.max(Kn(mS(f),mS(p),r),0),(Bs.test(p)||Bs.test(f))&&(e[u]+="%")):e[u]=p}(t.rotate||n.rotate)&&(e.rotate=Kn(t.rotate||0,n.rotate||0,r))}function bS(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const jz=qk(0,.5,vk),Bz=qk(.5,.95,ar);function qk(e,t,n){return r=>r<e?0:r>t?1:n(Md(e,t,r))}function wS(e,t){e.min=t.min,e.max=t.max}function Sa(e,t){wS(e.x,t.x),wS(e.y,t.y)}function xS(e,t,n,r,i){return e-=t,e=bp(e,1/n,r),i!==void 0&&(e=bp(e,1/i,r)),e}function $z(e,t=0,n=1,r=.5,i,o=e,s=e){if(Bs.test(t)&&(t=parseFloat(t),t=Kn(s.min,s.max,t/100)-s.min),typeof t!="number")return;let u=Kn(o.min,o.max,r);e===o&&(u-=t),e.min=xS(e.min,t,n,u,i),e.max=xS(e.max,t,n,u,i)}function SS(e,t,[n,r,i],o,s){$z(e,t[n],t[r],t[i],t.scale,o,s)}const Vz=["x","scaleX","originX"],Hz=["y","scaleY","originY"];function TS(e,t,n,r){SS(e.x,t,Vz,n?n.x:void 0,r?r.x:void 0),SS(e.y,t,Hz,n?n.y:void 0,r?r.y:void 0)}function CS(e){return e.translate===0&&e.scale===1}function Xk(e){return CS(e.x)&&CS(e.y)}function Uz(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 Kk(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 ES(e){return Ko(e.x)/Ko(e.y)}class Wz{constructor(){this.members=[]}add(t){jy(this.members,t),t.scheduleRender()}remove(t){if(By(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 kS(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:f,rotateX:p,rotateY:y}=n;f&&(r+=`rotate(${f}deg) `),p&&(r+=`rotateX(${p}deg) `),y&&(r+=`rotateY(${y}deg) `)}const s=e.x.scale*t.x,u=e.y.scale*t.y;return(s!==1||u!==1)&&(r+=`scale(${s}, ${u})`),r||"none"}const zz=(e,t)=>e.depth-t.depth;class Yz{constructor(){this.children=[],this.isDirty=!1}add(t){jy(this.children,t),this.isDirty=!0}remove(t){By(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(zz),this.isDirty=!1,this.children.forEach(t)}}function Gz(e,t){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(_l(r),e(o-t))};return Nn.read(r,!0),()=>_l(r)}function qz(e){window.MotionDebug&&window.MotionDebug.record(e)}function Xz(e){return e instanceof SVGElement&&e.tagName!=="svg"}function Kz(e,t,n){const r=Do(e)?e:kf(e);return r.start(Ny("",r,t,n)),r.animation}const OS=["","X","Y","Z"],Zz={visibility:"hidden"},_S=1e3;let Jz=0;const hc={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Zk({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},u=t==null?void 0:t()){this.id=Jz++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,hc.totalNodes=hc.resolvedTargetDeltas=hc.recalculatedProjection=0,this.nodes.forEach(t5),this.nodes.forEach(a5),this.nodes.forEach(s5),this.nodes.forEach(n5),qz(hc)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new Yz)}addEventListener(s,u){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new $y),this.eventHandlers.get(s).add(u)}notifyListeners(s,...u){const f=this.eventHandlers.get(s);f&&f.notify(...u)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,u=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Xz(s),this.instance=s;const{layoutId:f,layout:p,visualElement:y}=this.options;if(y&&!y.current&&y.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),u&&(p||f)&&(this.isLayoutDirty=!0),e){let g;const x=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,g&&g(),g=Gz(x,250),Yh.hasAnimatedSinceResize&&(Yh.hasAnimatedSinceResize=!1,this.nodes.forEach(PS))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&y&&(f||p)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:x,hasRelativeTargetChanged:C,layout:D})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const A=this.options.transition||y.getDefaultTransition()||d5,{onLayoutAnimationStart:M,onLayoutAnimationComplete:I}=y.getProps(),H=!this.targetLayout||!Kk(this.targetLayout,D)||C,U=!x&&C;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||U||x&&(H||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(g,U);const Q={...Fy(A,"layout"),onPlay:M,onComplete:I};(y.shouldReduceMotion||this.options.layoutRoot)&&(Q.delay=0,Q.type=!1),this.startAnimation(Q)}else x||PS(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=D})}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,_l(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(l5),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:u,layout:f}=this.options;if(u===void 0&&!f)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(DS);return}this.isUpdating||this.nodes.forEach(i5),this.isUpdating=!1,this.nodes.forEach(o5),this.nodes.forEach(Qz),this.nodes.forEach(e5),this.clearAllSnapshots();const u=performance.now();Fi.delta=Su(0,1e3/60,u-Fi.timestamp),Fi.timestamp=u,Fi.isProcessing=!0,tv.update.process(Fi),tv.preRender.process(Fi),tv.render.process(Fi),Fi.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(r5),this.sharedNodes.forEach(u5)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Nn.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Nn.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let f=0;f<this.path.length;f++)this.path[f].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Cr(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:u}=this.options;u&&u.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let u=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(u=!1),u&&(this.scroll={animationId:this.root.animationId,phase:s,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform,u=this.projectionDelta&&!Xk(this.projectionDelta),f=this.getTransformTemplate(),p=f?f(this.latestValues,""):void 0,y=p!==this.prevTransformTemplateValue;s&&(u||dc(this.latestValues)||y)&&(i(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const u=this.measurePageBox();let f=this.removeElementScroll(u);return s&&(f=this.removeTransform(f)),h5(f),{animationId:this.root.animationId,measuredBox:u,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return Cr();const u=s.measureViewportBox(),{scroll:f}=this.root;return f&&(fu(u.x,f.offset.x),fu(u.y,f.offset.y)),u}removeElementScroll(s){const u=Cr();Sa(u,s);for(let f=0;f<this.path.length;f++){const p=this.path[f],{scroll:y,options:g}=p;if(p!==this.root&&y&&g.layoutScroll){if(y.isRoot){Sa(u,s);const{scroll:x}=this.root;x&&(fu(u.x,-x.offset.x),fu(u.y,-x.offset.y))}fu(u.x,y.offset.x),fu(u.y,y.offset.y)}}return u}applyTransform(s,u=!1){const f=Cr();Sa(f,s);for(let p=0;p<this.path.length;p++){const y=this.path[p];!u&&y.options.layoutScroll&&y.scroll&&y!==y.root&&yf(f,{x:-y.scroll.offset.x,y:-y.scroll.offset.y}),dc(y.latestValues)&&yf(f,y.latestValues)}return dc(this.latestValues)&&yf(f,this.latestValues),f}removeTransform(s){const u=Cr();Sa(u,s);for(let f=0;f<this.path.length;f++){const p=this.path[f];if(!p.instance||!dc(p.latestValues))continue;xm(p.latestValues)&&p.updateSnapshot();const y=Cr(),g=p.measurePageBox();Sa(y,g),TS(u,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,y)}return dc(this.latestValues)&&TS(u,this.latestValues),u}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Fi.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var u;const f=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=f.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=f.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=f.isSharedProjectionDirty);const p=!!this.resumingFrom||this!==f;if(!(s||p&&this.isSharedProjectionDirty||this.isProjectionDirty||!((u=this.parent)===null||u===void 0)&&u.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:g,layoutId:x}=this.options;if(!(!this.layout||!(g||x))){if(this.resolvedRelativeTargetAt=Fi.timestamp,!this.targetDelta&&!this.relativeTarget){const C=this.getClosestProjectingParent();C&&C.layout&&this.animationProgress!==1?(this.relativeParent=C,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Cr(),this.relativeTargetOrigin=Cr(),wd(this.relativeTargetOrigin,this.layout.layoutBox,C.layout.layoutBox),Sa(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Cr(),this.targetWithTransforms=Cr()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),pz(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Sa(this.target,this.layout.layoutBox),Uk(this.target,this.targetDelta)):Sa(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const C=this.getClosestProjectingParent();C&&!!C.resumingFrom==!!this.resumingFrom&&!C.options.layoutScroll&&C.target&&this.animationProgress!==1?(this.relativeParent=C,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Cr(),this.relativeTargetOrigin=Cr(),wd(this.relativeTargetOrigin,this.target,C.target),Sa(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}hc.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||xm(this.parent.latestValues)||Hk(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;const u=this.getLead(),f=!!this.resumingFrom||this!==u;let p=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(p=!1),f&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(p=!1),this.resolvedRelativeTargetAt===Fi.timestamp&&(p=!1),p)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;Sa(this.layoutCorrected,this.layout.layoutBox);const x=this.treeScale.x,C=this.treeScale.y;Tz(this.layoutCorrected,this.treeScale,this.path,f),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox);const{target:D}=u;if(!D){this.projectionTransform&&(this.projectionDelta=mf(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=mf(),this.projectionDeltaWithTransform=mf());const A=this.projectionTransform;bd(this.projectionDelta,this.layoutCorrected,D,this.latestValues),this.projectionTransform=kS(this.projectionDelta,this.treeScale),(this.projectionTransform!==A||this.treeScale.x!==x||this.treeScale.y!==C)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",D)),hc.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),s){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(s,u=!1){const f=this.snapshot,p=f?f.latestValues:{},y={...this.latestValues},g=mf();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const x=Cr(),C=f?f.source:void 0,D=this.layout?this.layout.source:void 0,A=C!==D,M=this.getStack(),I=!M||M.members.length<=1,H=!!(A&&!I&&this.options.crossfade===!0&&!this.path.some(f5));this.animationProgress=0;let U;this.mixTargetDelta=Q=>{const Z=Q/1e3;RS(g.x,s.x,Z),RS(g.y,s.y,Z),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(wd(x,this.layout.layoutBox,this.relativeParent.layout.layoutBox),c5(this.relativeTarget,this.relativeTargetOrigin,x,Z),U&&Uz(this.relativeTarget,U)&&(this.isProjectionDirty=!1),U||(U=Cr()),Sa(U,this.relativeTarget)),A&&(this.animationValues=y,Nz(y,p,this.latestValues,Z,H,I)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=Z},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&&(_l(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Nn.update(()=>{Yh.hasAnimatedSinceResize=!0,this.currentAnimation=Kz(0,_S,{...s,onUpdate:u=>{this.mixTargetDelta(u),s.onUpdate&&s.onUpdate(u)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(_S),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:u,target:f,layout:p,latestValues:y}=s;if(!(!u||!f||!p)){if(this!==s&&this.layout&&p&&Jk(this.options.animationType,this.layout.layoutBox,p.layoutBox)){f=this.target||Cr();const g=Ko(this.layout.layoutBox.x);f.x.min=s.target.x.min,f.x.max=f.x.min+g;const x=Ko(this.layout.layoutBox.y);f.y.min=s.target.y.min,f.y.max=f.y.min+x}Sa(u,f),yf(u,y),bd(this.projectionDeltaWithTransform,this.layoutCorrected,u,y)}}registerSharedNode(s,u){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Wz),this.sharedNodes.get(s).add(u);const p=u.options.initialPromotionConfig;u.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(u):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:u}=this.options;return u?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:u}=this.options;return u?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:u,preserveFollowOpacity:f}={}){const p=this.getStack();p&&p.promote(this,f),s&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let u=!1;const{latestValues:f}=s;if((f.rotate||f.rotateX||f.rotateY||f.rotateZ)&&(u=!0),!u)return;const p={};for(let y=0;y<OS.length;y++){const g="rotate"+OS[y];f[g]&&(p[g]=f[g],s.setStaticValue(g,0))}s.render();for(const y in p)s.setStaticValue(y,p[y]);s.scheduleRender()}getProjectionStyles(s){var u,f;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Zz;const p={visibility:""},y=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,p.opacity="",p.pointerEvents=zh(s==null?void 0:s.pointerEvents)||"",p.transform=y?y(this.latestValues,""):"none",p;const g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){const A={};return this.options.layoutId&&(A.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,A.pointerEvents=zh(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!dc(this.latestValues)&&(A.transform=y?y({},""):"none",this.hasProjected=!1),A}const x=g.animationValues||g.latestValues;this.applyTransformsToTarget(),p.transform=kS(this.projectionDeltaWithTransform,this.treeScale,x),y&&(p.transform=y(x,p.transform));const{x:C,y:D}=this.projectionDelta;p.transformOrigin=`${C.origin*100}% ${D.origin*100}% 0`,g.animationValues?p.opacity=g===this?(f=(u=x.opacity)!==null&&u!==void 0?u:this.latestValues.opacity)!==null&&f!==void 0?f:1:this.preserveOpacity?this.latestValues.opacity:x.opacityExit:p.opacity=g===this?x.opacity!==void 0?x.opacity:"":x.opacityExit!==void 0?x.opacityExit:0;for(const A in dp){if(x[A]===void 0)continue;const{correct:M,applyTo:I}=dp[A],H=p.transform==="none"?x[A]:M(x[A],g);if(I){const U=I.length;for(let Q=0;Q<U;Q++)p[I[Q]]=H}else p[A]=H}return this.options.layoutId&&(p.pointerEvents=g===this?zh(s==null?void 0:s.pointerEvents)||"":"none"),p}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var u;return(u=s.currentAnimation)===null||u===void 0?void 0:u.stop()}),this.root.nodes.forEach(DS),this.root.sharedNodes.clear()}}}function Qz(e){e.updateLayout()}function e5(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"?Ta(g=>{const x=s?n.measuredBox[g]:n.layoutBox[g],C=Ko(x);x.min=r[g].min,x.max=x.min+C}):Jk(o,n.layoutBox,r)&&Ta(g=>{const x=s?n.measuredBox[g]:n.layoutBox[g],C=Ko(r[g]);x.max=x.min+C,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[g].max=e.relativeTarget[g].min+C)});const u=mf();bd(u,r,n.layoutBox);const f=mf();s?bd(f,e.applyTransform(i,!0),n.measuredBox):bd(f,r,n.layoutBox);const p=!Xk(u);let y=!1;if(!e.resumeFrom){const g=e.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:x,layout:C}=g;if(x&&C){const D=Cr();wd(D,n.layoutBox,x.layoutBox);const A=Cr();wd(A,r,C.layoutBox),Kk(D,A)||(y=!0),g.options.layoutRoot&&(e.relativeTarget=A,e.relativeTargetOrigin=D,e.relativeParent=g)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:f,layoutDelta:u,hasLayoutChanged:p,hasRelativeTargetChanged:y})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function t5(e){hc.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 n5(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function r5(e){e.clearSnapshot()}function DS(e){e.clearMeasurements()}function i5(e){e.isLayoutDirty=!1}function o5(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function PS(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function a5(e){e.resolveTargetDelta()}function s5(e){e.calcProjection()}function l5(e){e.resetRotation()}function u5(e){e.removeLeadSnapshot()}function RS(e,t,n){e.translate=Kn(t.translate,0,n),e.scale=Kn(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function IS(e,t,n,r){e.min=Kn(t.min,n.min,r),e.max=Kn(t.max,n.max,r)}function c5(e,t,n,r){IS(e.x,t.x,n.x,r),IS(e.y,t.y,n.y,r)}function f5(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const d5={duration:.45,ease:[.4,0,.1,1]},AS=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),MS=AS("applewebkit/")&&!AS("chrome/")?Math.round:ar;function LS(e){e.min=MS(e.min),e.max=MS(e.max)}function h5(e){LS(e.x),LS(e.y)}function Jk(e,t,n){return e==="position"||e==="preserve-aspect"&&!bm(ES(t),ES(n),.2)}const p5=Zk({attachResizeListener:(e,t)=>bl(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),fv={current:void 0},Qk=Zk({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!fv.current){const e=new p5({});e.mount(window),e.setOptions({layoutScroll:!0}),fv.current=e}return fv.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),g5={pan:{Feature:Rz},drag:{Feature:Pz,ProjectionNode:Qk,MeasureLayout:Yk}},v5=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function m5(e){const t=v5.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}const y5=4;function Tm(e,t,n=1){os(n<=y5,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=m5(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return Lk(s)?parseFloat(s):s}else return dm(i)?Tm(i,t,n+1):i}function b5(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(!dm(o))return;const s=Tm(o,r);s&&i.set(s)});for(const i in t){const o=t[i];if(!dm(o))continue;const s=Tm(o,r);s&&(t[i]=s,n||(n={}),n[i]===void 0&&(n[i]=o))}return{target:t,transitionEnd:n}}const w5=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),eO=e=>w5.has(e),x5=e=>Object.keys(e).some(eO),Ah=e=>e===Dc||e===It,FS=(e,t)=>parseFloat(e.split(", ")[t]),NS=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return FS(i[1],t);{const o=r.match(/^matrix\((.+)\)$/);return o?FS(o[1],e):0}},S5=new Set(["x","y","z"]),T5=Yd.filter(e=>!S5.has(e));function C5(e){const t=[];return T5.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 Of={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:NS(4,13),y:NS(5,14)};Of.translateX=Of.x;Of.translateY=Of.y;const E5=(e,t,n)=>{const r=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:s}=o,u={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(p=>{u[p]=Of[p](r,o)}),t.render();const f=t.measureViewportBox();return n.forEach(p=>{const y=t.getValue(p);y&&y.jump(u[p]),e[p]=Of[p](f,o)}),e},k5=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(eO);let o=[],s=!1;const u=[];if(i.forEach(f=>{const p=e.getValue(f);if(!e.hasValue(f))return;let y=n[f],g=rd(y);const x=t[f];let C;if(pp(x)){const D=x.length,A=x[0]===null?1:0;y=x[A],g=rd(y);for(let M=A;M<D&&x[M]!==null;M++)C?os(rd(x[M])===C,"All keyframes must be of the same type"):(C=rd(x[M]),os(C===g||Ah(g)&&Ah(C),"Keyframes must be of the same dimension as the current value"))}else C=rd(x);if(g!==C)if(Ah(g)&&Ah(C)){const D=p.get();typeof D=="string"&&p.set(parseFloat(D)),typeof x=="string"?t[f]=parseFloat(x):Array.isArray(x)&&C===It&&(t[f]=x.map(parseFloat))}else g!=null&&g.transform&&(C!=null&&C.transform)&&(y===0||x===0)?y===0?p.set(C.transform(y)):t[f]=g.transform(x):(s||(o=C5(e),s=!0),u.push(f),r[f]=r[f]!==void 0?r[f]:t[f],p.jump(x))}),u.length){const f=u.indexOf("height")>=0?window.pageYOffset:null,p=E5(t,e,u);return o.length&&o.forEach(([y,g])=>{e.getValue(y).set(g)}),e.render(),zp&&f!==null&&window.scrollTo({top:f}),{target:p,transitionEnd:r}}else return{target:t,transitionEnd:r}};function O5(e,t,n,r){return x5(t)?k5(e,t,n,r):{target:t,transitionEnd:r}}const _5=(e,t,n,r)=>{const i=b5(e,t,r);return t=i.target,r=i.transitionEnd,O5(e,t,n,r)},Cm={current:null},tO={current:!1};function D5(){if(tO.current=!0,!!zp)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Cm.current=e.matches;e.addListener(t),t()}else Cm.current=!1}function P5(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),yp(r)&&r.add(i),process.env.NODE_ENV==="development"&&Vy(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,kf(o,{owner:e})),yp(r)&&r.remove(i);else if(s!==o)if(e.hasValue(i)){const u=e.getValue(i);!u.hasAnimated&&u.set(o)}else{const u=e.getStaticValue(i);e.addValue(i,kf(u!==void 0?u:o,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const jS=new WeakMap,nO=Object.keys(Ad),R5=nO.length,BS=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],I5=Cy.length;class A5{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=()=>Nn.render(this.render,!1,!0);const{latestValues:u,renderState:f}=o;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=f,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.isControllingVariants=Gp(n),this.isVariantNode=$E(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:p,...y}=this.scrapeMotionValuesFromProps(n,{});for(const g in y){const x=y[g];u[g]!==void 0&&Do(x)&&(x.set(u[g],!1),yp(p)&&p.add(g))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,jS.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)),tO.current||D5(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Cm.current,process.env.NODE_ENV!=="production"&&Vy(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(){jS.delete(this.current),this.projection&&this.projection.unmount(),_l(this.notifyUpdate),_l(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=_c.has(t),i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Nn.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,i,o){let s,u;if(process.env.NODE_ENV!=="production"&&i&&r){const f="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";n.ignoreStrict?Xd(!1,f):os(!1,f)}for(let f=0;f<R5;f++){const p=nO[f],{isEnabled:y,Feature:g,ProjectionNode:x,MeasureLayout:C}=Ad[p];x&&(s=x),y(n)&&(!this.features[p]&&g&&(this.features[p]=new g(this)),C&&(u=C))}if((this.type==="html"||this.type==="svg")&&!this.projection&&s){this.projection=new s(this.latestValues,this.parent&&this.parent.projection);const{layoutId:f,layout:p,drag:y,dragConstraints:g,layoutScroll:x,layoutRoot:C}=n;this.projection.setOptions({layoutId:f,layout:p,alwaysMeasureLayout:!!y||g&&gf(g),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof p=="string"?p:"both",initialPromotionConfig:o,layoutScroll:x,layoutRoot:C})}return u}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Cr()}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<BS.length;r++){const i=BS[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=P5(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<I5;r++){const i=Cy[r],o=this.props[i];(Id(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=kf(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=Ry(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 $y),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class rO extends A5{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=XW(r,t||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),s&&(s=i(s))),o){GW(this,r,s);const u=_5(this,r,s,n);n=u.transitionEnd,r=u.target}return{transition:t,transitionEnd:n,...r}}}function M5(e){return window.getComputedStyle(e)}class L5 extends rO{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(_c.has(n)){const r=Ly(n);return r&&r.default||0}else{const r=M5(t),i=(zE(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Wk(t,n)}build(t,n,r,i){ky(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return Py(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){ZE(t,n,r,i)}}class F5 extends rO{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(_c.has(n)){const r=Ly(n);return r&&r.default||0}return n=JE.has(n)?n:Sy(n),t.getAttribute(n)}measureInstanceViewportBox(){return Cr()}scrapeMotionValuesFromProps(t,n){return ek(t,n)}build(t,n,r,i){_y(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){QE(t,n,r,i)}mount(t){this.isSVGTag=Dy(t.tagName),super.mount(t)}}const N5=(e,t)=>Ey(e)?new F5(t,{enableHardwareAcceleration:!1}):new L5(t,{enableHardwareAcceleration:!0}),j5={layout:{ProjectionNode:Qk,MeasureLayout:Yk}},B5={...cz,...IU,...g5,...j5},iO=$H((e,t)=>bU(e,t,B5,N5));function oO(e){return kp({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 aO(e){return kp({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 Hy(e,t){return t?e:void 0}function $5(e){return Ne.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",...e,children:Ne.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 V5(e){const{renderChildren:t,parentRef:n,onlyChild:r}=e,[i,o]=q.useState({top:0,left:0}),s=q.useRef(null),[u,f]=q.useState("auto");return q.useLayoutEffect(()=>{if(n.current&&s.current){const p=n.current.getBoundingClientRect(),y=s.current.getBoundingClientRect();let g=p.top;const x=p.left+p.width,C=y.height+(window.innerHeight-p.top)>window.innerHeight;C&&(console.log("overtop"),f(window.innerHeight-p.top-50)),p.top+y.height>window.innerHeight&&!C&&(g=p.top-y.height+p.height),o({top:g,left:x})}},[n,s]),r?t({maxHeight:u}):Lm.createPortal(Ne.jsx("div",{ref:s,style:{position:"fixed",top:i.top,left:i.left,zIndex:1200},onDragStart:p=>{console.log("onDragStart Dropdown",p.target)},children:t({maxHeight:u})}),n.current)}function _f(){return _f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_f.apply(null,arguments)}const H5=Object.freeze(Object.defineProperty({__proto__:null,get default(){return _f}},Symbol.toStringTag,{value:"Module"}));function sO(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,qh(e,t)}/*!
|
|
9
|
-
* content-type
|
|
10
|
-
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
11
|
-
* MIT Licensed
|
|
12
|
-
*/var $S=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,U5=/\\([\u000b\u0020-\u00ff])/g,W5=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,z5=Y5;function Y5(e){if(!e)throw new TypeError("argument string is required");var t=typeof e=="object"?G5(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(!W5.test(r))throw new TypeError("invalid media type");var i=new q5(r.toLowerCase());if(n!==-1){var o,s,u;for($S.lastIndex=n;s=$S.exec(t);){if(s.index!==n)throw new TypeError("invalid parameter format");n+=s[0].length,o=s[1].toLowerCase(),u=s[2],u.charCodeAt(0)===34&&(u=u.slice(1,-1),u.indexOf("\\")!==-1&&(u=u.replace(U5,"$1"))),i.parameters[o]=u}if(n!==t.length)throw new TypeError("invalid parameter format")}return i}function G5(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 q5(e){this.parameters=Object.create(null),this.type=e}var ff=new Map,lO=function(t){return t.cloneNode(!0)},VS=function(){return window.location.protocol==="file:"},uO=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=z5(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(VS()?"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||VS()&&i.status===0)r(null,i);else throw new Error("There was a problem injecting the SVG: "+i.status+" "+i.statusText)}}catch(u){if(i.abort(),u instanceof Error)r(u,i);else throw u}},i.open("GET",t),i.withCredentials=n,i.overrideMimeType&&i.overrideMimeType("text/xml"),i.send()},du={},HS=function(t,n){du[t]=du[t]||[],du[t].push(n)},X5=function(t){for(var n=function(s,u){setTimeout(function(){if(Array.isArray(du[t])){var f=ff.get(t),p=du[t][s];f instanceof SVGSVGElement&&p(null,lO(f)),f instanceof Error&&p(f),s===du[t].length-1&&delete du[t]}},0)},r=0,i=du[t].length;r<i;r++)n(r)},K5=function(t,n,r){if(ff.has(t)){var i=ff.get(t);if(i===void 0){HS(t,r);return}if(i instanceof SVGSVGElement){r(null,lO(i));return}}ff.set(t,void 0),HS(t,r),uO(t,n,function(o,s){var u;o?ff.set(t,o):((u=s.responseXML)===null||u===void 0?void 0:u.documentElement)instanceof SVGSVGElement&&ff.set(t,s.responseXML.documentElement),X5(t)})},Z5=function(t,n,r){uO(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)})},J5=0,Q5=function(){return++J5},As=[],US={},e4="http://www.w3.org/2000/svg",dv="http://www.w3.org/1999/xlink",WS=function(t,n,r,i,o,s,u){var f=t.getAttribute("data-src")||t.getAttribute("src");if(!f){u(new Error("Invalid data-src or src attribute"));return}if(As.indexOf(t)!==-1){As.splice(As.indexOf(t),1),t=null;return}As.push(t),t.setAttribute("src","");var p=i?K5:Z5;p(f,o,function(y,g){if(!g){As.splice(As.indexOf(t),1),t=null,u(y);return}var x=t.getAttribute("id");x&&g.setAttribute("id",x);var C=t.getAttribute("title");C&&g.setAttribute("title",C);var D=t.getAttribute("width");D&&g.setAttribute("width",D);var A=t.getAttribute("height");A&&g.setAttribute("height",A);var M=Array.from(new Set(Xo(Xo(Xo([],(g.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(t.getAttribute("class")||"").split(" "),!0))).join(" ").trim();g.setAttribute("class",M);var I=t.getAttribute("style");I&&g.setAttribute("style",I),g.setAttribute("data-src",f);var H=[].filter.call(t.attributes,function(Ge){return/^data-\w[\w-]*$/.test(Ge.name)});if(Array.prototype.forEach.call(H,function(Ge){Ge.name&&Ge.value&&g.setAttribute(Ge.name,Ge.value)}),r){var U={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"]},Q,Z,ce,T,se;Object.keys(U).forEach(function(Ge){Q=Ge,ce=U[Ge],Z=g.querySelectorAll(Q+"[id]");for(var tt=function(je,ke){T=Z[je].id,se=T+"-"+Q5();var De;Array.prototype.forEach.call(ce,function(At){De=g.querySelectorAll("["+At+'*="'+T+'"]');for(var Lt=0,Hn=De.length;Lt<Hn;Lt++){var gr=De[Lt].getAttribute(At);gr&&!gr.match(new RegExp('url\\("?#'+T+'"?\\)'))||De[Lt].setAttribute(At,"url(#"+se+")")}});for(var Fe=g.querySelectorAll("[*|href]"),rt=[],at=0,ht=Fe.length;at<ht;at++){var lt=Fe[at].getAttributeNS(dv,"href");lt&<.toString()==="#"+Z[je].id&&rt.push(Fe[at])}for(var mt=0,et=rt.length;mt<et;mt++)rt[mt].setAttributeNS(dv,"href","#"+se);Z[je].id=se},xe=0,Ce=Z.length;xe<Ce;xe++)tt(xe)})}g.removeAttribute("xmlns:a");for(var re=g.querySelectorAll("script"),Pe=[],He,Ue,Qe=0,Ke=re.length;Qe<Ke;Qe++)Ue=re[Qe].getAttribute("type"),(!Ue||Ue==="application/ecmascript"||Ue==="application/javascript"||Ue==="text/javascript")&&(He=re[Qe].innerText||re[Qe].textContent,He&&Pe.push(He),g.removeChild(re[Qe]));if(Pe.length>0&&(n==="always"||n==="once"&&!US[f])){for(var he=0,me=Pe.length;he<me;he++)new Function(Pe[he])(window);US[f]=!0}var Le=g.querySelectorAll("style");if(Array.prototype.forEach.call(Le,function(Ge){Ge.textContent+=""}),g.setAttribute("xmlns",e4),g.setAttribute("xmlns:xlink",dv),s(g),!t.parentNode){As.splice(As.indexOf(t),1),t=null,u(new Error("Parent node is null"));return}t.parentNode.replaceChild(g,t),As.splice(As.indexOf(t),1),t=null,u(null,g)})},t4=function(t,n){var r=n===void 0?{}:n,i=r.afterAll,o=i===void 0?function(){}:i,s=r.afterEach,u=s===void 0?function(){}:s,f=r.beforeEach,p=f===void 0?function(){}:f,y=r.cacheRequests,g=y===void 0?!0:y,x=r.evalScripts,C=x===void 0?"never":x,D=r.httpRequestWithCredentials,A=D===void 0?!1:D,M=r.renumerateIRIElements,I=M===void 0?!0:M;if(t&&"length"in t)for(var H=0,U=0,Q=t.length;U<Q;U++)WS(t[U],C,I,g,A,p,function(Z,ce){u(Z,ce),t&&"length"in t&&t.length===++H&&o(H)});else t?WS(t,C,I,g,A,p,function(Z,ce){u(Z,ce),o(1),t=null}):o(0)},Em={exports:{}},Mh={exports:{}},mn={};/** @license React v16.13.1
|
|
13
|
-
* react-is.production.min.js
|
|
14
|
-
*
|
|
15
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
16
|
-
*
|
|
17
|
-
* This source code is licensed under the MIT license found in the
|
|
18
|
-
* LICENSE file in the root directory of this source tree.
|
|
19
|
-
*/var zS;function n4(){if(zS)return mn;zS=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,y=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,x=e?Symbol.for("react.suspense_list"):60120,C=e?Symbol.for("react.memo"):60115,D=e?Symbol.for("react.lazy"):60116,A=e?Symbol.for("react.block"):60121,M=e?Symbol.for("react.fundamental"):60117,I=e?Symbol.for("react.responder"):60118,H=e?Symbol.for("react.scope"):60119;function U(Z){if(typeof Z=="object"&&Z!==null){var ce=Z.$$typeof;switch(ce){case t:switch(Z=Z.type,Z){case f:case p:case r:case o:case i:case g:return Z;default:switch(Z=Z&&Z.$$typeof,Z){case u:case y:case D:case C:case s:return Z;default:return ce}}case n:return ce}}}function Q(Z){return U(Z)===p}return mn.AsyncMode=f,mn.ConcurrentMode=p,mn.ContextConsumer=u,mn.ContextProvider=s,mn.Element=t,mn.ForwardRef=y,mn.Fragment=r,mn.Lazy=D,mn.Memo=C,mn.Portal=n,mn.Profiler=o,mn.StrictMode=i,mn.Suspense=g,mn.isAsyncMode=function(Z){return Q(Z)||U(Z)===f},mn.isConcurrentMode=Q,mn.isContextConsumer=function(Z){return U(Z)===u},mn.isContextProvider=function(Z){return U(Z)===s},mn.isElement=function(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===t},mn.isForwardRef=function(Z){return U(Z)===y},mn.isFragment=function(Z){return U(Z)===r},mn.isLazy=function(Z){return U(Z)===D},mn.isMemo=function(Z){return U(Z)===C},mn.isPortal=function(Z){return U(Z)===n},mn.isProfiler=function(Z){return U(Z)===o},mn.isStrictMode=function(Z){return U(Z)===i},mn.isSuspense=function(Z){return U(Z)===g},mn.isValidElementType=function(Z){return typeof Z=="string"||typeof Z=="function"||Z===r||Z===p||Z===o||Z===i||Z===g||Z===x||typeof Z=="object"&&Z!==null&&(Z.$$typeof===D||Z.$$typeof===C||Z.$$typeof===s||Z.$$typeof===u||Z.$$typeof===y||Z.$$typeof===M||Z.$$typeof===I||Z.$$typeof===H||Z.$$typeof===A)},mn.typeOf=U,mn}var yn={};/** @license React v16.13.1
|
|
20
|
-
* react-is.development.js
|
|
21
|
-
*
|
|
22
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
23
|
-
*
|
|
24
|
-
* This source code is licensed under the MIT license found in the
|
|
25
|
-
* LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/var YS;function r4(){return YS||(YS=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,y=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,x=e?Symbol.for("react.suspense_list"):60120,C=e?Symbol.for("react.memo"):60115,D=e?Symbol.for("react.lazy"):60116,A=e?Symbol.for("react.block"):60121,M=e?Symbol.for("react.fundamental"):60117,I=e?Symbol.for("react.responder"):60118,H=e?Symbol.for("react.scope"):60119;function U(et){return typeof et=="string"||typeof et=="function"||et===r||et===p||et===o||et===i||et===g||et===x||typeof et=="object"&&et!==null&&(et.$$typeof===D||et.$$typeof===C||et.$$typeof===s||et.$$typeof===u||et.$$typeof===y||et.$$typeof===M||et.$$typeof===I||et.$$typeof===H||et.$$typeof===A)}function Q(et){if(typeof et=="object"&&et!==null){var At=et.$$typeof;switch(At){case t:var Lt=et.type;switch(Lt){case f:case p:case r:case o:case i:case g:return Lt;default:var Hn=Lt&&Lt.$$typeof;switch(Hn){case u:case y:case D:case C:case s:return Hn;default:return At}}case n:return At}}}var Z=f,ce=p,T=u,se=s,re=t,Pe=y,He=r,Ue=D,Qe=C,Ke=n,he=o,me=i,Le=g,Ge=!1;function tt(et){return Ge||(Ge=!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.")),xe(et)||Q(et)===f}function xe(et){return Q(et)===p}function Ce(et){return Q(et)===u}function $e(et){return Q(et)===s}function je(et){return typeof et=="object"&&et!==null&&et.$$typeof===t}function ke(et){return Q(et)===y}function De(et){return Q(et)===r}function Fe(et){return Q(et)===D}function rt(et){return Q(et)===C}function at(et){return Q(et)===n}function ht(et){return Q(et)===o}function lt(et){return Q(et)===i}function mt(et){return Q(et)===g}yn.AsyncMode=Z,yn.ConcurrentMode=ce,yn.ContextConsumer=T,yn.ContextProvider=se,yn.Element=re,yn.ForwardRef=Pe,yn.Fragment=He,yn.Lazy=Ue,yn.Memo=Qe,yn.Portal=Ke,yn.Profiler=he,yn.StrictMode=me,yn.Suspense=Le,yn.isAsyncMode=tt,yn.isConcurrentMode=xe,yn.isContextConsumer=Ce,yn.isContextProvider=$e,yn.isElement=je,yn.isForwardRef=ke,yn.isFragment=De,yn.isLazy=Fe,yn.isMemo=rt,yn.isPortal=at,yn.isProfiler=ht,yn.isStrictMode=lt,yn.isSuspense=mt,yn.isValidElementType=U,yn.typeOf=Q}()),yn}var GS;function cO(){return GS||(GS=1,process.env.NODE_ENV==="production"?Mh.exports=n4():Mh.exports=r4()),Mh.exports}/*
|
|
27
|
-
object-assign
|
|
28
|
-
(c) Sindre Sorhus
|
|
29
|
-
@license MIT
|
|
30
|
-
*/var hv,qS;function i4(){if(qS)return hv;qS=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var s={},u=0;u<10;u++)s["_"+String.fromCharCode(u)]=u;var f=Object.getOwnPropertyNames(s).map(function(y){return s[y]});if(f.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(y){p[y]=y}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return hv=i()?Object.assign:function(o,s){for(var u,f=r(o),p,y=1;y<arguments.length;y++){u=Object(arguments[y]);for(var g in u)t.call(u,g)&&(f[g]=u[g]);if(e){p=e(u);for(var x=0;x<p.length;x++)n.call(u,p[x])&&(f[p[x]]=u[p[x]])}}return f},hv}var pv,XS;function Uy(){if(XS)return pv;XS=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return pv=e,pv}var gv,KS;function fO(){return KS||(KS=1,gv=Function.call.bind(Object.prototype.hasOwnProperty)),gv}var vv,ZS;function o4(){if(ZS)return vv;ZS=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Uy(),n={},r=fO();e=function(o){var s="Warning: "+o;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function i(o,s,u,f,p){if(process.env.NODE_ENV!=="production"){for(var y in o)if(r(o,y)){var g;try{if(typeof o[y]!="function"){var x=Error((f||"React class")+": "+u+" type `"+y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[y]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw x.name="Invariant Violation",x}g=o[y](s,y,f,u,null,t)}catch(D){g=D}if(g&&!(g instanceof Error)&&e((f||"React class")+": type specification of "+u+" `"+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 C=p?p():"";e("Failed "+u+" type: "+g.message+(C??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},vv=i,vv}var mv,JS;function a4(){if(JS)return mv;JS=1;var e=cO(),t=i4(),n=Uy(),r=fO(),i=o4(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(u){var f="Warning: "+u;typeof console<"u"&&console.error(f);try{throw new Error(f)}catch{}});function s(){return null}return mv=function(u,f){var p=typeof Symbol=="function"&&Symbol.iterator,y="@@iterator";function g(xe){var Ce=xe&&(p&&xe[p]||xe[y]);if(typeof Ce=="function")return Ce}var x="<<anonymous>>",C={array:I("array"),bigint:I("bigint"),bool:I("boolean"),func:I("function"),number:I("number"),object:I("object"),string:I("string"),symbol:I("symbol"),any:H(),arrayOf:U,element:Q(),elementType:Z(),instanceOf:ce,node:Pe(),objectOf:se,oneOf:T,oneOfType:re,shape:Ue,exact:Qe};function D(xe,Ce){return xe===Ce?xe!==0||1/xe===1/Ce:xe!==xe&&Ce!==Ce}function A(xe,Ce){this.message=xe,this.data=Ce&&typeof Ce=="object"?Ce:{},this.stack=""}A.prototype=Error.prototype;function M(xe){if(process.env.NODE_ENV!=="production")var Ce={},$e=0;function je(De,Fe,rt,at,ht,lt,mt){if(at=at||x,lt=lt||rt,mt!==n){if(f){var et=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw et.name="Invariant Violation",et}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var At=at+":"+rt;!Ce[At]&&$e<3&&(o("You are manually calling a React.PropTypes validation function for the `"+lt+"` prop on `"+at+"`. 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."),Ce[At]=!0,$e++)}}return Fe[rt]==null?De?Fe[rt]===null?new A("The "+ht+" `"+lt+"` is marked as required "+("in `"+at+"`, but its value is `null`.")):new A("The "+ht+" `"+lt+"` is marked as required in "+("`"+at+"`, but its value is `undefined`.")):null:xe(Fe,rt,at,ht,lt)}var ke=je.bind(null,!1);return ke.isRequired=je.bind(null,!0),ke}function I(xe){function Ce($e,je,ke,De,Fe,rt){var at=$e[je],ht=me(at);if(ht!==xe){var lt=Le(at);return new A("Invalid "+De+" `"+Fe+"` of type "+("`"+lt+"` supplied to `"+ke+"`, expected ")+("`"+xe+"`."),{expectedType:xe})}return null}return M(Ce)}function H(){return M(s)}function U(xe){function Ce($e,je,ke,De,Fe){if(typeof xe!="function")return new A("Property `"+Fe+"` of component `"+ke+"` has invalid PropType notation inside arrayOf.");var rt=$e[je];if(!Array.isArray(rt)){var at=me(rt);return new A("Invalid "+De+" `"+Fe+"` of type "+("`"+at+"` supplied to `"+ke+"`, expected an array."))}for(var ht=0;ht<rt.length;ht++){var lt=xe(rt,ht,ke,De,Fe+"["+ht+"]",n);if(lt instanceof Error)return lt}return null}return M(Ce)}function Q(){function xe(Ce,$e,je,ke,De){var Fe=Ce[$e];if(!u(Fe)){var rt=me(Fe);return new A("Invalid "+ke+" `"+De+"` of type "+("`"+rt+"` supplied to `"+je+"`, expected a single ReactElement."))}return null}return M(xe)}function Z(){function xe(Ce,$e,je,ke,De){var Fe=Ce[$e];if(!e.isValidElementType(Fe)){var rt=me(Fe);return new A("Invalid "+ke+" `"+De+"` of type "+("`"+rt+"` supplied to `"+je+"`, expected a single ReactElement type."))}return null}return M(xe)}function ce(xe){function Ce($e,je,ke,De,Fe){if(!($e[je]instanceof xe)){var rt=xe.name||x,at=tt($e[je]);return new A("Invalid "+De+" `"+Fe+"` of type "+("`"+at+"` supplied to `"+ke+"`, expected ")+("instance of `"+rt+"`."))}return null}return M(Ce)}function T(xe){if(!Array.isArray(xe))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 Ce($e,je,ke,De,Fe){for(var rt=$e[je],at=0;at<xe.length;at++)if(D(rt,xe[at]))return null;var ht=JSON.stringify(xe,function(mt,et){var At=Le(et);return At==="symbol"?String(et):et});return new A("Invalid "+De+" `"+Fe+"` of value `"+String(rt)+"` "+("supplied to `"+ke+"`, expected one of "+ht+"."))}return M(Ce)}function se(xe){function Ce($e,je,ke,De,Fe){if(typeof xe!="function")return new A("Property `"+Fe+"` of component `"+ke+"` has invalid PropType notation inside objectOf.");var rt=$e[je],at=me(rt);if(at!=="object")return new A("Invalid "+De+" `"+Fe+"` of type "+("`"+at+"` supplied to `"+ke+"`, expected an object."));for(var ht in rt)if(r(rt,ht)){var lt=xe(rt,ht,ke,De,Fe+"."+ht,n);if(lt instanceof Error)return lt}return null}return M(Ce)}function re(xe){if(!Array.isArray(xe))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var Ce=0;Ce<xe.length;Ce++){var $e=xe[Ce];if(typeof $e!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Ge($e)+" at index "+Ce+"."),s}function je(ke,De,Fe,rt,at){for(var ht=[],lt=0;lt<xe.length;lt++){var mt=xe[lt],et=mt(ke,De,Fe,rt,at,n);if(et==null)return null;et.data&&r(et.data,"expectedType")&&ht.push(et.data.expectedType)}var At=ht.length>0?", expected one of type ["+ht.join(", ")+"]":"";return new A("Invalid "+rt+" `"+at+"` supplied to "+("`"+Fe+"`"+At+"."))}return M(je)}function Pe(){function xe(Ce,$e,je,ke,De){return Ke(Ce[$e])?null:new A("Invalid "+ke+" `"+De+"` supplied to "+("`"+je+"`, expected a ReactNode."))}return M(xe)}function He(xe,Ce,$e,je,ke){return new A((xe||"React class")+": "+Ce+" type `"+$e+"."+je+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ke+"`.")}function Ue(xe){function Ce($e,je,ke,De,Fe){var rt=$e[je],at=me(rt);if(at!=="object")return new A("Invalid "+De+" `"+Fe+"` of type `"+at+"` "+("supplied to `"+ke+"`, expected `object`."));for(var ht in xe){var lt=xe[ht];if(typeof lt!="function")return He(ke,De,Fe,ht,Le(lt));var mt=lt(rt,ht,ke,De,Fe+"."+ht,n);if(mt)return mt}return null}return M(Ce)}function Qe(xe){function Ce($e,je,ke,De,Fe){var rt=$e[je],at=me(rt);if(at!=="object")return new A("Invalid "+De+" `"+Fe+"` of type `"+at+"` "+("supplied to `"+ke+"`, expected `object`."));var ht=t({},$e[je],xe);for(var lt in ht){var mt=xe[lt];if(r(xe,lt)&&typeof mt!="function")return He(ke,De,Fe,lt,Le(mt));if(!mt)return new A("Invalid "+De+" `"+Fe+"` key `"+lt+"` supplied to `"+ke+"`.\nBad object: "+JSON.stringify($e[je],null," ")+`
|
|
31
|
-
Valid keys: `+JSON.stringify(Object.keys(xe),null," "));var et=mt(rt,lt,ke,De,Fe+"."+lt,n);if(et)return et}return null}return M(Ce)}function Ke(xe){switch(typeof xe){case"number":case"string":case"undefined":return!0;case"boolean":return!xe;case"object":if(Array.isArray(xe))return xe.every(Ke);if(xe===null||u(xe))return!0;var Ce=g(xe);if(Ce){var $e=Ce.call(xe),je;if(Ce!==xe.entries){for(;!(je=$e.next()).done;)if(!Ke(je.value))return!1}else for(;!(je=$e.next()).done;){var ke=je.value;if(ke&&!Ke(ke[1]))return!1}}else return!1;return!0;default:return!1}}function he(xe,Ce){return xe==="symbol"?!0:Ce?Ce["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&Ce instanceof Symbol:!1}function me(xe){var Ce=typeof xe;return Array.isArray(xe)?"array":xe instanceof RegExp?"object":he(Ce,xe)?"symbol":Ce}function Le(xe){if(typeof xe>"u"||xe===null)return""+xe;var Ce=me(xe);if(Ce==="object"){if(xe instanceof Date)return"date";if(xe instanceof RegExp)return"regexp"}return Ce}function Ge(xe){var Ce=Le(xe);switch(Ce){case"array":case"object":return"an "+Ce;case"boolean":case"date":case"regexp":return"a "+Ce;default:return Ce}}function tt(xe){return!xe.constructor||!xe.constructor.name?x:xe.constructor.name}return C.checkPropTypes=i,C.resetWarningCache=i.resetWarningCache,C.PropTypes=C,C},mv}var yv,QS;function s4(){if(QS)return yv;QS=1;var e=Uy();function t(){}function n(){}return n.resetWarningCache=t,yv=function(){function r(s,u,f,p,y,g){if(g!==e){var x=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 x.name="Invariant Violation",x}}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},yv}if(process.env.NODE_ENV!=="production"){var l4=cO(),u4=!0;Em.exports=a4()(l4.isElement,u4)}else Em.exports=s4()();var Tr=Em.exports;const Ea=Eu(Tr);var c4=function(t){var n=(t==null?void 0:t.ownerDocument)||document;return n.defaultView||window},f4=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},d4=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],Lh="http://www.w3.org/2000/svg",e1="http://www.w3.org/1999/xlink",Zp=function(e){function t(){for(var r,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=e.call.apply(e,[this].concat(o))||this,r.initialState={hasError:!1,isLoading:!0},r.state=r.initialState,r._isMounted=!1,r.reactWrapper=void 0,r.nonReactWrapper=void 0,r.refCallback=function(u){r.reactWrapper=u},r}sO(t,e);var n=t.prototype;return n.renderSVG=function(){var i=this;if(this.reactWrapper instanceof c4(this.reactWrapper).Node){var o=this.props,s=o.desc,u=o.evalScripts,f=o.httpRequestWithCredentials,p=o.renumerateIRIElements,y=o.src,g=o.title,x=o.useRequestCache,C=this.props.onError,D=this.props.beforeInjection,A=this.props.afterInjection,M=this.props.wrapper,I,H;M==="svg"?(I=document.createElementNS(Lh,M),I.setAttribute("xmlns",Lh),I.setAttribute("xmlns:xlink",e1),H=document.createElementNS(Lh,M)):(I=document.createElement(M),H=document.createElement(M)),I.appendChild(H),H.dataset.src=y,this.nonReactWrapper=this.reactWrapper.appendChild(I);var U=function(T){if(i.removeSVG(),!i._isMounted){C(T);return}i.setState(function(){return{hasError:!0,isLoading:!1}},function(){C(T)})},Q=function(T,se){if(T){U(T);return}i._isMounted&&i.setState(function(){return{isLoading:!1}},function(){try{A(se)}catch(re){U(re)}})},Z=function(T){if(T.setAttribute("role","img"),s){var se=T.querySelector(":scope > desc");se&&T.removeChild(se);var re=document.createElement("desc");re.innerHTML=s,T.prepend(re)}if(g){var Pe=T.querySelector(":scope > title");Pe&&T.removeChild(Pe);var He=document.createElement("title");He.innerHTML=g,T.prepend(He)}try{D(T)}catch(Ue){U(Ue)}};t4(H,{afterEach:Q,beforeEach:Z,cacheRequests:x,evalScripts:u,httpRequestWithCredentials:f,renumerateIRIElements:p})}},n.removeSVG=function(){var i;(i=this.nonReactWrapper)!=null&&i.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},n.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},n.componentDidUpdate=function(i){var o=this;f4(_f({},i),this.props)&&this.setState(function(){return o.initialState},function(){o.removeSVG(),o.renderSVG()})},n.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},n.render=function(){var i=this.props;i.afterInjection,i.beforeInjection,i.desc,i.evalScripts;var o=i.fallback;i.httpRequestWithCredentials;var s=i.loading;i.renumerateIRIElements,i.src,i.title,i.useRequestCache;var u=i.wrapper,f=jm(i,d4),p=u;return bn.createElement(p,_f({},f,{ref:this.refCallback},u==="svg"?{xmlns:Lh,xmlnsXlink:e1}:{}),this.state.isLoading&&s&&bn.createElement(s,null),this.state.hasError&&o&&bn.createElement(o,null))},t}(bn.Component);Zp.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"};Zp.propTypes={afterInjection:Tr.func,beforeInjection:Tr.func,desc:Tr.string,evalScripts:Tr.oneOf(["always","once","never"]),fallback:Tr.oneOfType([Tr.func,Tr.object,Tr.string]),httpRequestWithCredentials:Tr.bool,loading:Tr.oneOfType([Tr.func,Tr.object,Tr.string]),onError:Tr.func,renumerateIRIElements:Tr.bool,src:Tr.string.isRequired,title:Tr.string,useRequestCache:Tr.bool,wrapper:Tr.oneOf(["div","span","svg"])};const Df=new Map;Df.set("text",e=>{var t;return Ne.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()})});Df.set("svgHtml",e=>{function t(n){function r(o){const u=new DOMParser().parseFromString(o,"image/svg+xml").querySelector("svg");return u?(u.querySelectorAll("path").forEach(p=>{p.hasAttribute("fill")&&p.setAttribute("fill","currentColor"),p.hasAttribute("stroke")&&p.setAttribute("stroke","currentColor")}),u.outerHTML):""}const i=r(n.svgString);return Ne.jsx("div",{dangerouslySetInnerHTML:{__html:i},style:{width:24,height:24,margin:"0 auto"}})}return Ne.jsx(t,{svgString:e.icon})});Df.set("svgHttp",e=>Ne.jsx(Zp,{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")})}}));Df.set("img",e=>Ne.jsx("img",{src:e.icon||"/",alt:e.name,style:{height:24,maxHeight:24,maxWidth:24}}));function h4(e){return e.icon=(e.icon||"").trim(),e.icon?e.icon.startsWith("<svg")?"svgHtml":e.icon.endsWith(".svg")?"svgHttp":"img":"text"}function dO({item:e}){return(Df.get(h4(e))||Df.get("text"))(e)}function p4(e){return Ne.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",...e,children:Ne.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 g4(e){const{renderChildren:t,parentRef:n,onlyChild:r,dropdownLevel:i}=e,[o,s]=q.useState({top:0,left:0}),u=q.useRef(null),[f,p]=q.useState("auto");return q.useLayoutEffect(()=>{if(n.current&&u.current){const y=n.current.getBoundingClientRect(),g=u.current.getBoundingClientRect();let x,C;if(i===1)x=y.bottom,C=y.left,g.height+x>window.innerHeight?(p(window.innerHeight-x-50),x=y.bottom-g.height):x=y.bottom;else if(i>1){x=y.top,C=y.left+y.width;const D=g.height+(window.innerHeight-y.top)>window.innerHeight;D&&(console.log("DropDown-fav overtop"),p(window.innerHeight-y.top-50)),y.top+g.height>window.innerHeight&&!D&&(x=y.top-g.height+y.height)}s({top:x-64,left:C})}},[n,u,i]),r?t({maxHeight:f}):Lm.createPortal(Ne.jsx("div",{ref:u,style:{position:"fixed",top:o.top,left:`calc(${o.left}px - var(--global-menu-width))`,zIndex:1200},children:t({maxHeight:f})}),n.current)}const Pf=new Map;Pf.set("text",e=>{var t;return Ne.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()})});Pf.set("svgHtml",e=>{function t(n){function r(o){const u=new DOMParser().parseFromString(o,"image/svg+xml").querySelector("svg");return u?(u.querySelectorAll("path").forEach(p=>{p.hasAttribute("fill")&&p.setAttribute("fill","currentColor"),p.hasAttribute("stroke")&&p.setAttribute("stroke","currentColor")}),u.outerHTML):""}const i=r(n.svgString);return Ne.jsx("div",{dangerouslySetInnerHTML:{__html:i},style:{width:24,height:24,margin:"0 auto"}})}return Ne.jsx(t,{svgString:e.icon})});Pf.set("svgHttp",e=>Ne.jsx(Zp,{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")})}}));Pf.set("img",e=>Ne.jsx("img",{src:e.icon||"/",alt:e.name,style:{height:24,maxHeight:24,maxWidth:24}}));function v4(e){return e.icon=(e.icon||"").trim(),e.icon?e.icon.startsWith("<svg")?"svgHtml":e.icon.endsWith(".svg")?"svgHttp":"img":"text"}function m4({item:e}){return(Pf.get(v4(e))||Pf.get("text"))(e)}function hO({...e}){var He,Ue,Qe,Ke,he;const t=e.item,n=e.level||0,r=!!((He=e.item.children)!=null&&He.length),{isActive:i}=e,o=`level-${n}`,s=i(t.id)?"active":"",u=(me,Le=o)=>`${me} ${Le} ${s}`,[f,p]=q.useState(!1),[y,g]=q.useState(t.isFavorite||!1),x=q.useRef(),C=q.useRef();C!=null&&C.current&&((Ue=C==null?void 0:C.current)==null?void 0:Ue.scrollWidth)>((Qe=C==null?void 0:C.current)==null?void 0:Qe.clientWidth);const D=window.location.origin,A=t.path&&t.path.includes("http")?new URL(t.path):{origin:"",pathname:""},M=window.location.pathname.split("/")[1],I=A.pathname.split("/")[1],H=e.item.redirectUrl||e.ssr||!D.includes("local")&&D!==A.origin||I!==M,U=r||n===0?"div":H?"a":Tp.Link,Q=t.redirectUrl||t.path||"#",Z=n+1,ce=r&&f&&n>0,T=()=>{p(!0)},se=()=>{p(!1)},re="/global-menu-config/api/v1/menu-items/user/set-favorite",Pe=D!==A.origin||e.item.redirectUrl?"_blank":"_self";return Ne.jsxs("div",{ref:x,className:u("menu-item__wrapper tree-node"),style:{borderRadius:"8px",transition:"all 0.3s"},onMouseOver:T,onMouseOut:se,onDragStart:me=>{n>1&&me.preventDefault()},children:[Ne.jsxs(U,{target:Pe,to:Q,href:Q,draggable:"true",className:u("menu-item__link"),style:{width:"100%",transition:"all 0.3s",color:i(t.id)?((Ke=e.brandColors)==null?void 0:Ke.primary400)||Wr.primary400:void 0,backgroundColor:i(t.id)&&n===1?(he=e.brandColors)==null?void 0:he.primary200:void 0},onDragStart:me=>{console.log("onDragStart component",me.target)},children:[Ne.jsx(y4,{cls:u,item:t}),Ne.jsx("span",{className:u("menu-item__label"),ref:C,children:t.name}),Ne.jsx(b4,{menuLevel:n,hasChildren:r,isHovered:f,isFavorite:y,onClick:me=>{const Le={menuConfigId:t.id,isFavorite:me},Ge=e.baseUrl+re;rs.post(Ge,Le).then(tt=>{var xe;g(me),Wm("Set favorite menu item successfully"),(xe=e.onSetFavoriteSuccess)==null||xe.call(e,e.item.id,me)}).catch(tt=>{var xe,Ce;Bd(((Ce=(xe=tt.response)==null?void 0:xe.data)==null?void 0:Ce.errorMessage)||"Have error when set favorite menu item")})}}),r&&Ne.jsx("div",{className:u("menu-item__icon-arrow__wrapper"),children:Ne.jsx(p4,{className:u("menu-item__icon-arrow__icon")})})]}),ce&&Ne.jsx(g4,{parentRef:x,onlyChild:Z<2,dropdownLevel:n,renderChildren:({maxHeight:me})=>{var Le;return Ne.jsx(iO.div,{className:u("menu-item__dropdown dropdown-favorite ? 'menu-item__dropdown--open' : 'menu-item__dropdown--close'}",`level-${Z}`),style:Hy({maxHeight:me,overflowY:"auto",paddingRight:3},me!=="auto"&&!!Z),children:(Le=t.children)==null?void 0:Le.map(Ge=>q.createElement(hO,{...e,key:Ge.id,item:Ge,level:Z}))})}})]})}function y4({item:e,cls:t}){return Ne.jsx("div",{className:t("menu-item__icon"),children:Ne.jsx(m4,{item:e})})}function b4(e){const t={marginRight:e.hasChildren?10:0,fontSize:22,fill:Wr.warning,minWidth:16};if(e.menuLevel!==0)return Ne.jsxs(Ne.Fragment,{children:[e.isHovered&&!e.isFavorite&&Ne.jsx(is.Tooltip,{title:"Add to favorites",children:Ne.jsx(oO,{style:t,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=e.onClick)==null||r.call(e,!0)}})}),e.isFavorite&&Ne.jsx(is.Tooltip,{title:"Remove from favorites",children:Ne.jsx(aO,{style:t,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=e.onClick)==null||r.call(e,!1)}})})]})}const w4=".flex-col-center{display:flex;flex-direction:column;justify-content:center}.wrap-section{transition:all .3s;padding:0 4px}.favorite-menu{display:flex;height:56px;border-right:1px solid #ddd;background-color:#fafafa;transition:all .3s;width:100%}.scrollbar-hidden::-webkit-scrollbar{width:2px;background:transparent}.favorite-menu__wrap-btn-logout,.favorite-menu__btn-logout{margin:40px 0}.favorite-menu__logout-btn__text{margin-left:12px;font-size:.875rem;opacity:0;transition:ease-in-out .2s;transition-delay:.15s}.favorite-menu__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px;justify-content:center;width:100%}.favorite-menu__toggle-btn{margin-top:-6px;color:#85858a}.favorite-menu__logout-btn{width:100%;text-align:left;display:flex;flex-direction:row;align-items:center;padding:8px 16px 8px 18.6665px;min-height:48px;border-radius:.375rem;overflow:hidden;transition:all .3s ease-in-out;background-color:initial}.favorite-menu__logout-btn:hover{background-color:#919eab14}.favorite-menu__icon-logout{flex-shrink:0}.menu-item__wrapper{display:flex;position:relative;width:100%}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer;color:#85858a}.menu-item__link:hover{background-color:#919eab14}.menu-item__link.active{background-color:#009d4f1a;color:inherit}.menu-item__link.active.level-2,.menu-item__link.active.level-3,.menu-item__link.active.level-4,.menu-item__link.active.level-5,.menu-item__link.active.level-6,.menu-item__link.active.level-7,.menu-item__link.active.level-8,.menu-item__link.active.level-9,.menu-item__link.active.level-10{background-color:inherit;color:inherit}.menu-item__link.active.level-2:hover,.menu-item__link.active.level-3:hover,.menu-item__link.active.level-4:hover,.menu-item__link.active.level-5:hover,.menu-item__link.active.level-6:hover,.menu-item__link.active.level-7:hover,.menu-item__link.active.level-8:hover,.menu-item__link.active.level-9:hover,.menu-item__link.active.level-10:hover{background-color:#919eab14}.menu-item__link.menu-item__link.level-0{padding:0;background-color:#919eab14;transition:all .15s}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0;display:grid;place-items:center}.menu-item__icon.level-1>*{margin:0 auto}.menu-item__label{font-size:.875rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;flex-shrink:1;margin-left:12px;padding-right:12px;color:#292929;opacity:1}.menu-item__label.level-1{text-overflow:unset}.menu-item__label.active{color:inherit}.menu-item__label{margin-left:8px;font-size:.75rem;line-height:1rem}.menu-item__label.level-0,.menu-item__label.level-1{font-size:.875rem;transition-delay:.15s}.menu-item__label.level-0{color:#85858a;margin-left:8px}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:0}.menu-item__icon-arrow__wrapper.level-0{display:none}.menu-item__icon-arrow__icon{transition:all .3s!important;transform:rotate(-90deg)!important}.menu-item__icon-arrow__icon.active{color:inherit}.menu-item__icon-arrow__icon.open{transform:rotate(0)!important}.menu-item__dropdown{background-color:#fafafa;border:1px solid #ddd;box-shadow:#0000001a 0 10px 15px -3px,#0000000d 0 4px 6px -2px;border-radius:4px;width:210px;max-width:210px;padding:4px;z-index:1200}.menu-item__dropdown.dropdown-favorite{width:auto;min-width:180px;max-width:350px}.menu-item__dropdown::-webkit-scrollbar{width:4px}.menu-item__dropdown::-webkit-scrollbar-thumb{background-color:#9b9b9b99;border-radius:2px}.menu-item__dropdown,.menu-item__dropdown>*{margin-top:4px}.menu-item__dropdown:first-of-type{margin-top:0}.menu-item__dropdown>*:first-child{margin-top:0}.menu-item__dropdown .menu-item__link{height:40px}.menu-item__dropdown .menu-item__link.level-1{height:48px}.menu-item__dropdown.level-1{width:auto;max-width:unset;box-shadow:none;border:none;padding:0;background-color:unset}.icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;background-color:transparent;transition:background-color .3s ease;border:none}.icon-btn:hover{background-color:var(--btn-bg-hover)}.simplebar-scrollbar:before{background-color:#0000002d}.favorite-menu__menu .simplebar-track.simplebar-vertical{display:none}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}";var cc={};/**
|
|
32
|
-
* @license React
|
|
33
|
-
* react-dom-server-legacy.browser.production.min.js
|
|
34
|
-
*
|
|
35
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
36
|
-
*
|
|
37
|
-
* This source code is licensed under the MIT license found in the
|
|
38
|
-
* LICENSE file in the root directory of this source tree.
|
|
39
|
-
*/var t1;function x4(){if(t1)return cc;t1=1;var e=q;function t(k){for(var N="https://reactjs.org/docs/error-decoder.html?invariant="+k,G=1;G<arguments.length;G++)N+="&args[]="+encodeURIComponent(arguments[G]);return"Minified React error #"+k+"; visit "+N+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=Object.prototype.hasOwnProperty,r=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,i={},o={};function s(k){return n.call(o,k)?!0:n.call(i,k)?!1:r.test(k)?o[k]=!0:(i[k]=!0,!1)}function u(k,N,G,te,Ee,ge,Re){this.acceptsBooleans=N===2||N===3||N===4,this.attributeName=te,this.attributeNamespace=Ee,this.mustUseProperty=G,this.propertyName=k,this.type=N,this.sanitizeURL=ge,this.removeEmptyString=Re}var f={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(k){f[k]=new u(k,0,!1,k,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(k){var N=k[0];f[N]=new u(N,1,!1,k[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(k){f[k]=new u(k,2,!1,k.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(k){f[k]=new u(k,2,!1,k,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(k){f[k]=new u(k,3,!1,k.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(k){f[k]=new u(k,3,!0,k,null,!1,!1)}),["capture","download"].forEach(function(k){f[k]=new u(k,4,!1,k,null,!1,!1)}),["cols","rows","size","span"].forEach(function(k){f[k]=new u(k,6,!1,k,null,!1,!1)}),["rowSpan","start"].forEach(function(k){f[k]=new u(k,5,!1,k.toLowerCase(),null,!1,!1)});var p=/[\-:]([a-z])/g;function y(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 N=k.replace(p,y);f[N]=new u(N,1,!1,k,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(k){var N=k.replace(p,y);f[N]=new u(N,1,!1,k,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(k){var N=k.replace(p,y);f[N]=new u(N,1,!1,k,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(k){f[k]=new u(k,1,!1,k.toLowerCase(),null,!1,!1)}),f.xlinkHref=new u("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(k){f[k]=new u(k,1,!1,k.toLowerCase(),null,!0,!0)});var g={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},x=["Webkit","ms","Moz","O"];Object.keys(g).forEach(function(k){x.forEach(function(N){N=N+k.charAt(0).toUpperCase()+k.substring(1),g[N]=g[k]})});var C=/["'&<>]/;function D(k){if(typeof k=="boolean"||typeof k=="number")return""+k;k=""+k;var N=C.exec(k);if(N){var G="",te,Ee=0;for(te=N.index;te<k.length;te++){switch(k.charCodeAt(te)){case 34:N=""";break;case 38:N="&";break;case 39:N="'";break;case 60:N="<";break;case 62:N=">";break;default:continue}Ee!==te&&(G+=k.substring(Ee,te)),Ee=te+1,G+=N}k=Ee!==te?G+k.substring(Ee,te):G}return k}var A=/([A-Z])/g,M=/^ms-/,I=Array.isArray;function H(k,N){return{insertionMode:k,selectedValue:N}}function U(k,N,G){switch(N){case"select":return H(1,G.value!=null?G.value:G.defaultValue);case"svg":return H(2,null);case"math":return H(3,null);case"foreignObject":return H(1,null);case"table":return H(4,null);case"thead":case"tbody":case"tfoot":return H(5,null);case"colgroup":return H(7,null);case"tr":return H(6,null)}return 4<=k.insertionMode||k.insertionMode===0?H(1,null):k}var Q=new Map;function Z(k,N,G){if(typeof G!="object")throw Error(t(62));N=!0;for(var te in G)if(n.call(G,te)){var Ee=G[te];if(Ee!=null&&typeof Ee!="boolean"&&Ee!==""){if(te.indexOf("--")===0){var ge=D(te);Ee=D((""+Ee).trim())}else{ge=te;var Re=Q.get(ge);Re!==void 0||(Re=D(ge.replace(A,"-$1").toLowerCase().replace(M,"-ms-")),Q.set(ge,Re)),ge=Re,Ee=typeof Ee=="number"?Ee===0||n.call(g,te)?""+Ee:Ee+"px":D((""+Ee).trim())}N?(N=!1,k.push(' style="',ge,":",Ee)):k.push(";",ge,":",Ee)}}N||k.push('"')}function ce(k,N,G,te){switch(G){case"style":Z(k,N,te);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<G.length)||G[0]!=="o"&&G[0]!=="O"||G[1]!=="n"&&G[1]!=="N"){if(N=f.hasOwnProperty(G)?f[G]:null,N!==null){switch(typeof te){case"function":case"symbol":return;case"boolean":if(!N.acceptsBooleans)return}switch(G=N.attributeName,N.type){case 3:te&&k.push(" ",G,'=""');break;case 4:te===!0?k.push(" ",G,'=""'):te!==!1&&k.push(" ",G,'="',D(te),'"');break;case 5:isNaN(te)||k.push(" ",G,'="',D(te),'"');break;case 6:!isNaN(te)&&1<=te&&k.push(" ",G,'="',D(te),'"');break;default:N.sanitizeURL&&(te=""+te),k.push(" ",G,'="',D(te),'"')}}else if(s(G)){switch(typeof te){case"function":case"symbol":return;case"boolean":if(N=G.toLowerCase().slice(0,5),N!=="data-"&&N!=="aria-")return}k.push(" ",G,'="',D(te),'"')}}}function T(k,N,G){if(N!=null){if(G!=null)throw Error(t(60));if(typeof N!="object"||!("__html"in N))throw Error(t(61));N=N.__html,N!=null&&k.push(""+N)}}function se(k){var N="";return e.Children.forEach(k,function(G){G!=null&&(N+=G)}),N}function re(k,N,G,te){k.push(Ue(G));var Ee=G=null,ge;for(ge in N)if(n.call(N,ge)){var Re=N[ge];if(Re!=null)switch(ge){case"children":G=Re;break;case"dangerouslySetInnerHTML":Ee=Re;break;default:ce(k,te,ge,Re)}}return k.push(">"),T(k,Ee,G),typeof G=="string"?(k.push(D(G)),null):G}var Pe=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,He=new Map;function Ue(k){var N=He.get(k);if(N===void 0){if(!Pe.test(k))throw Error(t(65,k));N="<"+k,He.set(k,N)}return N}function Qe(k,N,G,te,Ee){switch(N){case"select":k.push(Ue("select"));var ge=null,Re=null;for(pt in G)if(n.call(G,pt)){var Ze=G[pt];if(Ze!=null)switch(pt){case"children":ge=Ze;break;case"dangerouslySetInnerHTML":Re=Ze;break;case"defaultValue":case"value":break;default:ce(k,te,pt,Ze)}}return k.push(">"),T(k,Re,ge),ge;case"option":Re=Ee.selectedValue,k.push(Ue("option"));var vt=Ze=null,yt=null,pt=null;for(ge in G)if(n.call(G,ge)){var Nt=G[ge];if(Nt!=null)switch(ge){case"children":Ze=Nt;break;case"selected":yt=Nt;break;case"dangerouslySetInnerHTML":pt=Nt;break;case"value":vt=Nt;default:ce(k,te,ge,Nt)}}if(Re!=null)if(G=vt!==null?""+vt:se(Ze),I(Re)){for(te=0;te<Re.length;te++)if(""+Re[te]===G){k.push(' selected=""');break}}else""+Re===G&&k.push(' selected=""');else yt&&k.push(' selected=""');return k.push(">"),T(k,pt,Ze),Ze;case"textarea":k.push(Ue("textarea")),pt=Re=ge=null;for(Ze in G)if(n.call(G,Ze)&&(vt=G[Ze],vt!=null))switch(Ze){case"children":pt=vt;break;case"value":ge=vt;break;case"defaultValue":Re=vt;break;case"dangerouslySetInnerHTML":throw Error(t(91));default:ce(k,te,Ze,vt)}if(ge===null&&Re!==null&&(ge=Re),k.push(">"),pt!=null){if(ge!=null)throw Error(t(92));if(I(pt)&&1<pt.length)throw Error(t(93));ge=""+pt}return typeof ge=="string"&&ge[0]===`
|
|
40
|
-
`&&k.push(`
|
|
41
|
-
`),ge!==null&&k.push(D(""+ge)),null;case"input":k.push(Ue("input")),vt=pt=Ze=ge=null;for(Re in G)if(n.call(G,Re)&&(yt=G[Re],yt!=null))switch(Re){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,"input"));case"defaultChecked":vt=yt;break;case"defaultValue":Ze=yt;break;case"checked":pt=yt;break;case"value":ge=yt;break;default:ce(k,te,Re,yt)}return pt!==null?ce(k,te,"checked",pt):vt!==null&&ce(k,te,"checked",vt),ge!==null?ce(k,te,"value",ge):Ze!==null&&ce(k,te,"value",Ze),k.push("/>"),null;case"menuitem":k.push(Ue("menuitem"));for(var $n in G)if(n.call(G,$n)&&(ge=G[$n],ge!=null))switch($n){case"children":case"dangerouslySetInnerHTML":throw Error(t(400));default:ce(k,te,$n,ge)}return k.push(">"),null;case"title":k.push(Ue("title")),ge=null;for(Nt in G)if(n.call(G,Nt)&&(Re=G[Nt],Re!=null))switch(Nt){case"children":ge=Re;break;case"dangerouslySetInnerHTML":throw Error(t(434));default:ce(k,te,Nt,Re)}return k.push(">"),ge;case"listing":case"pre":k.push(Ue(N)),Re=ge=null;for(vt in G)if(n.call(G,vt)&&(Ze=G[vt],Ze!=null))switch(vt){case"children":ge=Ze;break;case"dangerouslySetInnerHTML":Re=Ze;break;default:ce(k,te,vt,Ze)}if(k.push(">"),Re!=null){if(ge!=null)throw Error(t(60));if(typeof Re!="object"||!("__html"in Re))throw Error(t(61));G=Re.__html,G!=null&&(typeof G=="string"&&0<G.length&&G[0]===`
|
|
42
|
-
`?k.push(`
|
|
43
|
-
`,G):k.push(""+G))}return typeof ge=="string"&&ge[0]===`
|
|
44
|
-
`&&k.push(`
|
|
45
|
-
`),ge;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":k.push(Ue(N));for(var Yn in G)if(n.call(G,Yn)&&(ge=G[Yn],ge!=null))switch(Yn){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,N));default:ce(k,te,Yn,ge)}return k.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return re(k,G,N,te);case"html":return Ee.insertionMode===0&&k.push("<!DOCTYPE html>"),re(k,G,N,te);default:if(N.indexOf("-")===-1&&typeof G.is!="string")return re(k,G,N,te);k.push(Ue(N)),Re=ge=null;for(yt in G)if(n.call(G,yt)&&(Ze=G[yt],Ze!=null))switch(yt){case"children":ge=Ze;break;case"dangerouslySetInnerHTML":Re=Ze;break;case"style":Z(k,te,Ze);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:s(yt)&&typeof Ze!="function"&&typeof Ze!="symbol"&&k.push(" ",yt,'="',D(Ze),'"')}return k.push(">"),T(k,Re,ge),ge}}function Ke(k,N,G){if(k.push('<!--$?--><template id="'),G===null)throw Error(t(395));return k.push(G),k.push('"></template>')}function he(k,N,G,te){switch(G.insertionMode){case 0:case 1:return k.push('<div hidden id="'),k.push(N.segmentPrefix),N=te.toString(16),k.push(N),k.push('">');case 2:return k.push('<svg aria-hidden="true" style="display:none" id="'),k.push(N.segmentPrefix),N=te.toString(16),k.push(N),k.push('">');case 3:return k.push('<math aria-hidden="true" style="display:none" id="'),k.push(N.segmentPrefix),N=te.toString(16),k.push(N),k.push('">');case 4:return k.push('<table hidden id="'),k.push(N.segmentPrefix),N=te.toString(16),k.push(N),k.push('">');case 5:return k.push('<table hidden><tbody id="'),k.push(N.segmentPrefix),N=te.toString(16),k.push(N),k.push('">');case 6:return k.push('<table hidden><tr id="'),k.push(N.segmentPrefix),N=te.toString(16),k.push(N),k.push('">');case 7:return k.push('<table hidden><colgroup id="'),k.push(N.segmentPrefix),N=te.toString(16),k.push(N),k.push('">');default:throw Error(t(397))}}function me(k,N){switch(N.insertionMode){case 0:case 1:return k.push("</div>");case 2:return k.push("</svg>");case 3:return k.push("</math>");case 4:return k.push("</table>");case 5:return k.push("</tbody></table>");case 6:return k.push("</tr></table>");case 7:return k.push("</colgroup></table>");default:throw Error(t(397))}}var Le=/[<\u2028\u2029]/g;function Ge(k){return JSON.stringify(k).replace(Le,function(N){switch(N){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function tt(k,N){return N=N===void 0?"":N,{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:N+"P:",segmentPrefix:N+"S:",boundaryPrefix:N+"B:",idPrefix:N,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:k}}function xe(k,N,G,te){return G.generateStaticMarkup?(k.push(D(N)),!1):(N===""?k=te:(te&&k.push("<!-- -->"),k.push(D(N)),k=!0),k)}var Ce=Object.assign,$e=Symbol.for("react.element"),je=Symbol.for("react.portal"),ke=Symbol.for("react.fragment"),De=Symbol.for("react.strict_mode"),Fe=Symbol.for("react.profiler"),rt=Symbol.for("react.provider"),at=Symbol.for("react.context"),ht=Symbol.for("react.forward_ref"),lt=Symbol.for("react.suspense"),mt=Symbol.for("react.suspense_list"),et=Symbol.for("react.memo"),At=Symbol.for("react.lazy"),Lt=Symbol.for("react.scope"),Hn=Symbol.for("react.debug_trace_mode"),gr=Symbol.for("react.legacy_hidden"),Un=Symbol.for("react.default_value"),Cn=Symbol.iterator;function ji(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 ke:return"Fragment";case je:return"Portal";case Fe:return"Profiler";case De:return"StrictMode";case lt:return"Suspense";case mt:return"SuspenseList"}if(typeof k=="object")switch(k.$$typeof){case at:return(k.displayName||"Context")+".Consumer";case rt:return(k._context.displayName||"Context")+".Provider";case ht:var N=k.render;return k=k.displayName,k||(k=N.displayName||N.name||"",k=k!==""?"ForwardRef("+k+")":"ForwardRef"),k;case et:return N=k.displayName||null,N!==null?N:ji(k.type)||"Memo";case At:N=k._payload,k=k._init;try{return ji(k(N))}catch{}}return null}var Er={};function Zn(k,N){if(k=k.contextTypes,!k)return Er;var G={},te;for(te in k)G[te]=N[te];return G}var sn=null;function dn(k,N){if(k!==N){k.context._currentValue2=k.parentValue,k=k.parent;var G=N.parent;if(k===null){if(G!==null)throw Error(t(401))}else{if(G===null)throw Error(t(401));dn(k,G)}N.context._currentValue2=N.value}}function hn(k){k.context._currentValue2=k.parentValue,k=k.parent,k!==null&&hn(k)}function dt(k){var N=k.parent;N!==null&&dt(N),k.context._currentValue2=k.value}function _n(k,N){if(k.context._currentValue2=k.parentValue,k=k.parent,k===null)throw Error(t(402));k.depth===N.depth?dn(k,N):_n(k,N)}function ai(k,N){var G=N.parent;if(G===null)throw Error(t(402));k.depth===G.depth?dn(k,G):ai(k,G),N.context._currentValue2=N.value}function an(k){var N=sn;N!==k&&(N===null?dt(k):k===null?hn(N):N.depth===k.depth?dn(N,k):N.depth>k.depth?_n(N,k):ai(N,k),sn=k)}var Bi={isMounted:function(){return!1},enqueueSetState:function(k,N){k=k._reactInternals,k.queue!==null&&k.queue.push(N)},enqueueReplaceState:function(k,N){k=k._reactInternals,k.replace=!0,k.queue=[N]},enqueueForceUpdate:function(){}};function $i(k,N,G,te){var Ee=k.state!==void 0?k.state:null;k.updater=Bi,k.props=G,k.state=Ee;var ge={queue:[],replace:!1};k._reactInternals=ge;var Re=N.contextType;if(k.context=typeof Re=="object"&&Re!==null?Re._currentValue2:te,Re=N.getDerivedStateFromProps,typeof Re=="function"&&(Re=Re(G,Ee),Ee=Re==null?Ee:Ce({},Ee,Re),k.state=Ee),typeof N.getDerivedStateFromProps!="function"&&typeof k.getSnapshotBeforeUpdate!="function"&&(typeof k.UNSAFE_componentWillMount=="function"||typeof k.componentWillMount=="function"))if(N=k.state,typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount(),N!==k.state&&Bi.enqueueReplaceState(k,k.state,null),ge.queue!==null&&0<ge.queue.length)if(N=ge.queue,Re=ge.replace,ge.queue=null,ge.replace=!1,Re&&N.length===1)k.state=N[0];else{for(ge=Re?N[0]:k.state,Ee=!0,Re=Re?1:0;Re<N.length;Re++){var Ze=N[Re];Ze=typeof Ze=="function"?Ze.call(k,ge,G,te):Ze,Ze!=null&&(Ee?(Ee=!1,ge=Ce({},ge,Ze)):Ce(ge,Ze))}k.state=ge}else ge.queue=null}var Vi={id:1,overflow:""};function kr(k,N,G){var te=k.id;k=k.overflow;var Ee=32-jn(te)-1;te&=~(1<<Ee),G+=1;var ge=32-jn(N)+Ee;if(30<ge){var Re=Ee-Ee%5;return ge=(te&(1<<Re)-1).toString(32),te>>=Re,Ee-=Re,{id:1<<32-jn(N)+Ee|G<<Ee|te,overflow:ge+k}}return{id:1<<ge|G<<Ee|te,overflow:k}}var jn=Math.clz32?Math.clz32:Yr,Or=Math.log,vr=Math.LN2;function Yr(k){return k>>>=0,k===0?32:31-(Or(k)/vr|0)|0}function Gr(k,N){return k===N&&(k!==0||1/k===1/N)||k!==k&&N!==N}var Po=typeof Object.is=="function"?Object.is:Gr,Wn=null,qr=null,Jn=null,Wt=null,si=!1,Hi=!1,Dn=0,pn=null,li=0;function ui(){if(Wn===null)throw Error(t(321));return Wn}function En(){if(0<li)throw Error(t(312));return{memoizedState:null,queue:null,next:null}}function oo(){return Wt===null?Jn===null?(si=!1,Jn=Wt=En()):(si=!0,Wt=Jn):Wt.next===null?(si=!1,Wt=Wt.next=En()):(si=!0,Wt=Wt.next),Wt}function mr(){qr=Wn=null,Hi=!1,Jn=null,li=0,Wt=pn=null}function ci(k,N){return typeof N=="function"?N(k):N}function ln(k,N,G){if(Wn=ui(),Wt=oo(),si){var te=Wt.queue;if(N=te.dispatch,pn!==null&&(G=pn.get(te),G!==void 0)){pn.delete(te),te=Wt.memoizedState;do te=k(te,G.action),G=G.next;while(G!==null);return Wt.memoizedState=te,[te,N]}return[Wt.memoizedState,N]}return k=k===ci?typeof N=="function"?N():N:G!==void 0?G(N):N,Wt.memoizedState=k,k=Wt.queue={last:null,dispatch:null},k=k.dispatch=Da.bind(null,Wn,k),[Wt.memoizedState,k]}function ki(k,N){if(Wn=ui(),Wt=oo(),N=N===void 0?null:N,Wt!==null){var G=Wt.memoizedState;if(G!==null&&N!==null){var te=G[1];e:if(te===null)te=!1;else{for(var Ee=0;Ee<te.length&&Ee<N.length;Ee++)if(!Po(N[Ee],te[Ee])){te=!1;break e}te=!0}if(te)return G[0]}}return k=k(),Wt.memoizedState=[k,N],k}function Da(k,N,G){if(25<=li)throw Error(t(301));if(k===Wn)if(Hi=!0,k={action:G,next:null},pn===null&&(pn=new Map),G=pn.get(N),G===void 0)pn.set(N,k);else{for(N=G;N.next!==null;)N=N.next;N.next=k}}function Pa(){throw Error(t(394))}function Xr(){}var ao={readContext:function(k){return k._currentValue2},useContext:function(k){return ui(),k._currentValue2},useMemo:ki,useReducer:ln,useRef:function(k){Wn=ui(),Wt=oo();var N=Wt.memoizedState;return N===null?(k={current:k},Wt.memoizedState=k):N},useState:function(k){return ln(ci,k)},useInsertionEffect:Xr,useLayoutEffect:function(){},useCallback:function(k,N){return ki(function(){return k},N)},useImperativeHandle:Xr,useEffect:Xr,useDebugValue:Xr,useDeferredValue:function(k){return ui(),k},useTransition:function(){return ui(),[!1,Pa]},useId:function(){var k=qr.treeContext,N=k.overflow;k=k.id,k=(k&~(1<<32-jn(k)-1)).toString(32)+N;var G=so;if(G===null)throw Error(t(404));return N=Dn++,k=":"+G.idPrefix+"R"+k,0<N&&(k+="H"+N.toString(32)),k+":"},useMutableSource:function(k,N){return ui(),N(k._source)},useSyncExternalStore:function(k,N,G){if(G===void 0)throw Error(t(407));return G()}},so=null,Oi=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function Qn(k){return console.error(k),null}function _r(){}function Dr(k,N,G,te,Ee,ge,Re,Ze,vt){var yt=[],pt=new Set;return N={destination:null,responseState:N,progressiveChunkSize:te===void 0?12800:te,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:pt,pingedTasks:yt,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:Ee===void 0?Qn:Ee,onAllReady:_r,onShellReady:Re===void 0?_r:Re,onShellError:_r,onFatalError:_r},G=Kr(N,0,null,G,!1,!1),G.parentFlushed=!0,k=fi(N,k,null,G,pt,Er,null,Vi),yt.push(k),N}function fi(k,N,G,te,Ee,ge,Re,Ze){k.allPendingTasks++,G===null?k.pendingRootTasks++:G.pendingTasks++;var vt={node:N,ping:function(){var yt=k.pingedTasks;yt.push(vt),yt.length===1&&zn(k)},blockedBoundary:G,blockedSegment:te,abortSet:Ee,legacyContext:ge,context:Re,treeContext:Ze};return Ee.add(vt),vt}function Kr(k,N,G,te,Ee,ge){return{status:0,id:-1,index:N,parentFlushed:!1,chunks:[],children:[],formatContext:te,boundary:G,lastPushedText:Ee,textEmbedded:ge}}function yr(k,N){if(k=k.onError(N),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 Pr(k,N){var G=k.onShellError;G(N),G=k.onFatalError,G(N),k.destination!==null?(k.status=2,k.destination.destroy(N)):(k.status=1,k.fatalError=N)}function er(k,N,G,te,Ee){for(Wn={},qr=N,Dn=0,k=G(te,Ee);Hi;)Hi=!1,Dn=0,li+=1,Wt=null,k=G(te,Ee);return mr(),k}function Ui(k,N,G,te){var Ee=G.render(),ge=te.childContextTypes;if(ge!=null){var Re=N.legacyContext;if(typeof G.getChildContext!="function")te=Re;else{G=G.getChildContext();for(var Ze in G)if(!(Ze in ge))throw Error(t(108,ji(te)||"Unknown",Ze));te=Ce({},Re,G)}N.legacyContext=te,wn(k,N,Ee),N.legacyContext=Re}else wn(k,N,Ee)}function _i(k,N){if(k&&k.defaultProps){N=Ce({},N),k=k.defaultProps;for(var G in k)N[G]===void 0&&(N[G]=k[G]);return N}return N}function sr(k,N,G,te,Ee){if(typeof G=="function")if(G.prototype&&G.prototype.isReactComponent){Ee=Zn(G,N.legacyContext);var ge=G.contextType;ge=new G(te,typeof ge=="object"&&ge!==null?ge._currentValue2:Ee),$i(ge,G,te,Ee),Ui(k,N,ge,G)}else{ge=Zn(G,N.legacyContext),Ee=er(k,N,G,te,ge);var Re=Dn!==0;if(typeof Ee=="object"&&Ee!==null&&typeof Ee.render=="function"&&Ee.$$typeof===void 0)$i(Ee,G,te,ge),Ui(k,N,Ee,G);else if(Re){te=N.treeContext,N.treeContext=kr(te,1,0);try{wn(k,N,Ee)}finally{N.treeContext=te}}else wn(k,N,Ee)}else if(typeof G=="string"){switch(Ee=N.blockedSegment,ge=Qe(Ee.chunks,G,te,k.responseState,Ee.formatContext),Ee.lastPushedText=!1,Re=Ee.formatContext,Ee.formatContext=U(Re,G,te),Ir(k,N,ge),Ee.formatContext=Re,G){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:Ee.chunks.push("</",G,">")}Ee.lastPushedText=!1}else{switch(G){case gr:case Hn:case De:case Fe:case ke:wn(k,N,te.children);return;case mt:wn(k,N,te.children);return;case Lt:throw Error(t(343));case lt:e:{G=N.blockedBoundary,Ee=N.blockedSegment,ge=te.fallback,te=te.children,Re=new Set;var Ze={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:Re,errorDigest:null},vt=Kr(k,Ee.chunks.length,Ze,Ee.formatContext,!1,!1);Ee.children.push(vt),Ee.lastPushedText=!1;var yt=Kr(k,0,null,Ee.formatContext,!1,!1);yt.parentFlushed=!0,N.blockedBoundary=Ze,N.blockedSegment=yt;try{if(Ir(k,N,te),k.responseState.generateStaticMarkup||yt.lastPushedText&&yt.textEmbedded&&yt.chunks.push("<!-- -->"),yt.status=1,br(Ze,yt),Ze.pendingTasks===0)break e}catch(pt){yt.status=4,Ze.forceClientRender=!0,Ze.errorDigest=yr(k,pt)}finally{N.blockedBoundary=G,N.blockedSegment=Ee}N=fi(k,ge,G,vt,Re,N.legacyContext,N.context,N.treeContext),k.pingedTasks.push(N)}return}if(typeof G=="object"&&G!==null)switch(G.$$typeof){case ht:if(te=er(k,N,G.render,te,Ee),Dn!==0){G=N.treeContext,N.treeContext=kr(G,1,0);try{wn(k,N,te)}finally{N.treeContext=G}}else wn(k,N,te);return;case et:G=G.type,te=_i(G,te),sr(k,N,G,te,Ee);return;case rt:if(Ee=te.children,G=G._context,te=te.value,ge=G._currentValue2,G._currentValue2=te,Re=sn,sn=te={parent:Re,depth:Re===null?0:Re.depth+1,context:G,parentValue:ge,value:te},N.context=te,wn(k,N,Ee),k=sn,k===null)throw Error(t(403));te=k.parentValue,k.context._currentValue2=te===Un?k.context._defaultValue:te,k=sn=k.parent,N.context=k;return;case at:te=te.children,te=te(G._currentValue2),wn(k,N,te);return;case At:Ee=G._init,G=Ee(G._payload),te=_i(G,te),sr(k,N,G,te,void 0);return}throw Error(t(130,G==null?G:typeof G,""))}}function wn(k,N,G){if(N.node=G,typeof G=="object"&&G!==null){switch(G.$$typeof){case $e:sr(k,N,G.type,G.props,G.ref);return;case je:throw Error(t(257));case At:var te=G._init;G=te(G._payload),wn(k,N,G);return}if(I(G)){Rr(k,N,G);return}if(G===null||typeof G!="object"?te=null:(te=Cn&&G[Cn]||G["@@iterator"],te=typeof te=="function"?te:null),te&&(te=te.call(G))){if(G=te.next(),!G.done){var Ee=[];do Ee.push(G.value),G=te.next();while(!G.done);Rr(k,N,Ee)}return}throw k=Object.prototype.toString.call(G),Error(t(31,k==="[object Object]"?"object with keys {"+Object.keys(G).join(", ")+"}":k))}typeof G=="string"?(te=N.blockedSegment,te.lastPushedText=xe(N.blockedSegment.chunks,G,k.responseState,te.lastPushedText)):typeof G=="number"&&(te=N.blockedSegment,te.lastPushedText=xe(N.blockedSegment.chunks,""+G,k.responseState,te.lastPushedText))}function Rr(k,N,G){for(var te=G.length,Ee=0;Ee<te;Ee++){var ge=N.treeContext;N.treeContext=kr(ge,te,Ee);try{Ir(k,N,G[Ee])}finally{N.treeContext=ge}}}function Ir(k,N,G){var te=N.blockedSegment.formatContext,Ee=N.legacyContext,ge=N.context;try{return wn(k,N,G)}catch(vt){if(mr(),typeof vt=="object"&&vt!==null&&typeof vt.then=="function"){G=vt;var Re=N.blockedSegment,Ze=Kr(k,Re.chunks.length,null,Re.formatContext,Re.lastPushedText,!0);Re.children.push(Ze),Re.lastPushedText=!1,k=fi(k,N.node,N.blockedBoundary,Ze,N.abortSet,N.legacyContext,N.context,N.treeContext).ping,G.then(k,k),N.blockedSegment.formatContext=te,N.legacyContext=Ee,N.context=ge,an(ge)}else throw N.blockedSegment.formatContext=te,N.legacyContext=Ee,N.context=ge,an(ge),vt}}function di(k){var N=k.blockedBoundary;k=k.blockedSegment,k.status=3,Zr(this,N,k)}function hi(k,N,G){var te=k.blockedBoundary;k.blockedSegment.status=3,te===null?(N.allPendingTasks--,N.status!==2&&(N.status=2,N.destination!==null&&N.destination.push(null))):(te.pendingTasks--,te.forceClientRender||(te.forceClientRender=!0,k=G===void 0?Error(t(432)):G,te.errorDigest=N.onError(k),te.parentFlushed&&N.clientRenderedBoundaries.push(te)),te.fallbackAbortableTasks.forEach(function(Ee){return hi(Ee,N,G)}),te.fallbackAbortableTasks.clear(),N.allPendingTasks--,N.allPendingTasks===0&&(te=N.onAllReady,te()))}function br(k,N){if(N.chunks.length===0&&N.children.length===1&&N.children[0].boundary===null){var G=N.children[0];G.id=N.id,G.parentFlushed=!0,G.status===1&&br(k,G)}else k.completedSegments.push(N)}function Zr(k,N,G){if(N===null){if(G.parentFlushed){if(k.completedRootSegment!==null)throw Error(t(389));k.completedRootSegment=G}k.pendingRootTasks--,k.pendingRootTasks===0&&(k.onShellError=_r,N=k.onShellReady,N())}else N.pendingTasks--,N.forceClientRender||(N.pendingTasks===0?(G.parentFlushed&&G.status===1&&br(N,G),N.parentFlushed&&k.completedBoundaries.push(N),N.fallbackAbortableTasks.forEach(di,k),N.fallbackAbortableTasks.clear()):G.parentFlushed&&G.status===1&&(br(N,G),N.completedSegments.length===1&&N.parentFlushed&&k.partialBoundaries.push(N)));k.allPendingTasks--,k.allPendingTasks===0&&(k=k.onAllReady,k())}function zn(k){if(k.status!==2){var N=sn,G=Oi.current;Oi.current=ao;var te=so;so=k.responseState;try{var Ee=k.pingedTasks,ge;for(ge=0;ge<Ee.length;ge++){var Re=Ee[ge],Ze=k,vt=Re.blockedSegment;if(vt.status===0){an(Re.context);try{wn(Ze,Re,Re.node),Ze.responseState.generateStaticMarkup||vt.lastPushedText&&vt.textEmbedded&&vt.chunks.push("<!-- -->"),Re.abortSet.delete(Re),vt.status=1,Zr(Ze,Re.blockedBoundary,vt)}catch(On){if(mr(),typeof On=="object"&&On!==null&&typeof On.then=="function"){var yt=Re.ping;On.then(yt,yt)}else{Re.abortSet.delete(Re),vt.status=4;var pt=Re.blockedBoundary,Nt=On,$n=yr(Ze,Nt);if(pt===null?Pr(Ze,Nt):(pt.pendingTasks--,pt.forceClientRender||(pt.forceClientRender=!0,pt.errorDigest=$n,pt.parentFlushed&&Ze.clientRenderedBoundaries.push(pt))),Ze.allPendingTasks--,Ze.allPendingTasks===0){var Yn=Ze.onAllReady;Yn()}}}finally{}}}Ee.splice(0,ge),k.destination!==null&&kn(k,k.destination)}catch(On){yr(k,On),Pr(k,On)}finally{so=te,Oi.current=G,G===ao&&an(N)}}}function pi(k,N,G){switch(G.parentFlushed=!0,G.status){case 0:var te=G.id=k.nextSegmentId++;return G.lastPushedText=!1,G.textEmbedded=!1,k=k.responseState,N.push('<template id="'),N.push(k.placeholderPrefix),k=te.toString(16),N.push(k),N.push('"></template>');case 1:G.status=2;var Ee=!0;te=G.chunks;var ge=0;G=G.children;for(var Re=0;Re<G.length;Re++){for(Ee=G[Re];ge<Ee.index;ge++)N.push(te[ge]);Ee=gi(k,N,Ee)}for(;ge<te.length-1;ge++)N.push(te[ge]);return ge<te.length&&(Ee=N.push(te[ge])),Ee;default:throw Error(t(390))}}function gi(k,N,G){var te=G.boundary;if(te===null)return pi(k,N,G);if(te.parentFlushed=!0,te.forceClientRender)return k.responseState.generateStaticMarkup||(te=te.errorDigest,N.push("<!--$!-->"),N.push("<template"),te&&(N.push(' data-dgst="'),te=D(te),N.push(te),N.push('"')),N.push("></template>")),pi(k,N,G),k=k.responseState.generateStaticMarkup?!0:N.push("<!--/$-->"),k;if(0<te.pendingTasks){te.rootSegmentID=k.nextSegmentId++,0<te.completedSegments.length&&k.partialBoundaries.push(te);var Ee=k.responseState,ge=Ee.nextSuspenseID++;return Ee=Ee.boundaryPrefix+ge.toString(16),te=te.id=Ee,Ke(N,k.responseState,te),pi(k,N,G),N.push("<!--/$-->")}if(te.byteSize>k.progressiveChunkSize)return te.rootSegmentID=k.nextSegmentId++,k.completedBoundaries.push(te),Ke(N,k.responseState,te.id),pi(k,N,G),N.push("<!--/$-->");if(k.responseState.generateStaticMarkup||N.push("<!--$-->"),G=te.completedSegments,G.length!==1)throw Error(t(391));return gi(k,N,G[0]),k=k.responseState.generateStaticMarkup?!0:N.push("<!--/$-->"),k}function Di(k,N,G){return he(N,k.responseState,G.formatContext,G.id),gi(k,N,G),me(N,G.formatContext)}function rn(k,N,G){for(var te=G.completedSegments,Ee=0;Ee<te.length;Ee++)Bn(k,N,G,te[Ee]);if(te.length=0,k=k.responseState,te=G.id,G=G.rootSegmentID,N.push(k.startInlineScript),k.sentCompleteBoundaryFunction?N.push('$RC("'):(k.sentCompleteBoundaryFunction=!0,N.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),te===null)throw Error(t(395));return G=G.toString(16),N.push(te),N.push('","'),N.push(k.segmentPrefix),N.push(G),N.push('")<\/script>')}function Bn(k,N,G,te){if(te.status===2)return!0;var Ee=te.id;if(Ee===-1){if((te.id=G.rootSegmentID)===-1)throw Error(t(392));return Di(k,N,te)}return Di(k,N,te),k=k.responseState,N.push(k.startInlineScript),k.sentCompleteSegmentFunction?N.push('$RS("'):(k.sentCompleteSegmentFunction=!0,N.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),N.push(k.segmentPrefix),Ee=Ee.toString(16),N.push(Ee),N.push('","'),N.push(k.placeholderPrefix),N.push(Ee),N.push('")<\/script>')}function kn(k,N){try{var G=k.completedRootSegment;if(G!==null&&k.pendingRootTasks===0){gi(k,N,G),k.completedRootSegment=null;var te=k.responseState.bootstrapChunks;for(G=0;G<te.length-1;G++)N.push(te[G]);G<te.length&&N.push(te[G])}var Ee=k.clientRenderedBoundaries,ge;for(ge=0;ge<Ee.length;ge++){var Re=Ee[ge];te=N;var Ze=k.responseState,vt=Re.id,yt=Re.errorDigest,pt=Re.errorMessage,Nt=Re.errorComponentStack;if(te.push(Ze.startInlineScript),Ze.sentClientRenderFunction?te.push('$RX("'):(Ze.sentClientRenderFunction=!0,te.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("')),vt===null)throw Error(t(395));if(te.push(vt),te.push('"'),yt||pt||Nt){te.push(",");var $n=Ge(yt||"");te.push($n)}if(pt||Nt){te.push(",");var Yn=Ge(pt||"");te.push(Yn)}if(Nt){te.push(",");var On=Ge(Nt);te.push(On)}if(!te.push(")<\/script>")){k.destination=null,ge++,Ee.splice(0,ge);return}}Ee.splice(0,ge);var Jr=k.completedBoundaries;for(ge=0;ge<Jr.length;ge++)if(!rn(k,N,Jr[ge])){k.destination=null,ge++,Jr.splice(0,ge);return}Jr.splice(0,ge);var lr=k.partialBoundaries;for(ge=0;ge<lr.length;ge++){var Wi=lr[ge];e:{Ee=k,Re=N;var vi=Wi.completedSegments;for(Ze=0;Ze<vi.length;Ze++)if(!Bn(Ee,Re,Wi,vi[Ze])){Ze++,vi.splice(0,Ze);var zi=!1;break e}vi.splice(0,Ze),zi=!0}if(!zi){k.destination=null,ge++,lr.splice(0,ge);return}}lr.splice(0,ge);var Ar=k.completedBoundaries;for(ge=0;ge<Ar.length;ge++)if(!rn(k,N,Ar[ge])){k.destination=null,ge++,Ar.splice(0,ge);return}Ar.splice(0,ge)}finally{k.allPendingTasks===0&&k.pingedTasks.length===0&&k.clientRenderedBoundaries.length===0&&k.completedBoundaries.length===0&&N.push(null)}}function lo(k,N){try{var G=k.abortableTasks;G.forEach(function(te){return hi(te,k,N)}),G.clear(),k.destination!==null&&kn(k,k.destination)}catch(te){yr(k,te),Pr(k,te)}}function Pn(){}function Rn(k,N,G,te){var Ee=!1,ge=null,Re="",Ze={push:function(yt){return yt!==null&&(Re+=yt),!0},destroy:function(yt){Ee=!0,ge=yt}},vt=!1;if(k=Dr(k,tt(G,N?N.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,Pn,void 0,function(){vt=!0}),zn(k),lo(k,te),k.status===1)k.status=2,Ze.destroy(k.fatalError);else if(k.status!==2&&k.destination===null){k.destination=Ze;try{kn(k,Ze)}catch(yt){yr(k,yt),Pr(k,yt)}}if(Ee)throw ge;if(!vt)throw Error(t(426));return Re}return cc.renderToNodeStream=function(){throw Error(t(207))},cc.renderToStaticMarkup=function(k,N){return Rn(k,N,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},cc.renderToStaticNodeStream=function(){throw Error(t(208))},cc.renderToString=function(k,N){return Rn(k,N,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},cc.version="18.3.1",cc}var Fh={};/**
|
|
46
|
-
* @license React
|
|
47
|
-
* react-dom-server.browser.production.min.js
|
|
48
|
-
*
|
|
49
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
50
|
-
*
|
|
51
|
-
* This source code is licensed under the MIT license found in the
|
|
52
|
-
* LICENSE file in the root directory of this source tree.
|
|
53
|
-
*/var n1;function S4(){if(n1)return Fh;n1=1;var e=q;function t(O){for(var L="https://reactjs.org/docs/error-decoder.html?invariant="+O,W=1;W<arguments.length;W++)L+="&args[]="+encodeURIComponent(arguments[W]);return"Minified React error #"+O+"; visit "+L+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=null,r=0;function i(O,L){if(L.length!==0)if(512<L.length)0<r&&(O.enqueue(new Uint8Array(n.buffer,0,r)),n=new Uint8Array(512),r=0),O.enqueue(L);else{var W=n.length-r;W<L.length&&(W===0?O.enqueue(n):(n.set(L.subarray(0,W),r),O.enqueue(n),L=L.subarray(W)),n=new Uint8Array(512),r=0),n.set(L,r),r+=L.length}}function o(O,L){return i(O,L),!0}function s(O){n&&0<r&&(O.enqueue(new Uint8Array(n.buffer,0,r)),n=null,r=0)}var u=new TextEncoder;function f(O){return u.encode(O)}function p(O){return u.encode(O)}function y(O,L){typeof O.error=="function"?O.error(L):O.close()}var g=Object.prototype.hasOwnProperty,x=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,C={},D={};function A(O){return g.call(D,O)?!0:g.call(C,O)?!1:x.test(O)?D[O]=!0:(C[O]=!0,!1)}function M(O,L,W,ee,ye,be,Me){this.acceptsBooleans=L===2||L===3||L===4,this.attributeName=ee,this.attributeNamespace=ye,this.mustUseProperty=W,this.propertyName=O,this.type=L,this.sanitizeURL=be,this.removeEmptyString=Me}var I={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(O){I[O]=new M(O,0,!1,O,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(O){var L=O[0];I[L]=new M(L,1,!1,O[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(O){I[O]=new M(O,2,!1,O.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(O){I[O]=new M(O,2,!1,O,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(O){I[O]=new M(O,3,!1,O.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(O){I[O]=new M(O,3,!0,O,null,!1,!1)}),["capture","download"].forEach(function(O){I[O]=new M(O,4,!1,O,null,!1,!1)}),["cols","rows","size","span"].forEach(function(O){I[O]=new M(O,6,!1,O,null,!1,!1)}),["rowSpan","start"].forEach(function(O){I[O]=new M(O,5,!1,O.toLowerCase(),null,!1,!1)});var H=/[\-:]([a-z])/g;function U(O){return O[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(O){var L=O.replace(H,U);I[L]=new M(L,1,!1,O,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(O){var L=O.replace(H,U);I[L]=new M(L,1,!1,O,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(O){var L=O.replace(H,U);I[L]=new M(L,1,!1,O,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(O){I[O]=new M(O,1,!1,O.toLowerCase(),null,!1,!1)}),I.xlinkHref=new M("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(O){I[O]=new M(O,1,!1,O.toLowerCase(),null,!0,!0)});var Q={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Z=["Webkit","ms","Moz","O"];Object.keys(Q).forEach(function(O){Z.forEach(function(L){L=L+O.charAt(0).toUpperCase()+O.substring(1),Q[L]=Q[O]})});var ce=/["'&<>]/;function T(O){if(typeof O=="boolean"||typeof O=="number")return""+O;O=""+O;var L=ce.exec(O);if(L){var W="",ee,ye=0;for(ee=L.index;ee<O.length;ee++){switch(O.charCodeAt(ee)){case 34:L=""";break;case 38:L="&";break;case 39:L="'";break;case 60:L="<";break;case 62:L=">";break;default:continue}ye!==ee&&(W+=O.substring(ye,ee)),ye=ee+1,W+=L}O=ye!==ee?W+O.substring(ye,ee):W}return O}var se=/([A-Z])/g,re=/^ms-/,Pe=Array.isArray,He=p("<script>"),Ue=p("<\/script>"),Qe=p('<script src="'),Ke=p('<script type="module" src="'),he=p('" async=""><\/script>'),me=/(<\/|<)(s)(cript)/gi;function Le(O,L,W,ee){return""+L+(W==="s"?"\\u0073":"\\u0053")+ee}function Ge(O,L,W,ee,ye){O=O===void 0?"":O,L=L===void 0?He:p('<script nonce="'+T(L)+'">');var be=[];if(W!==void 0&&be.push(L,f((""+W).replace(me,Le)),Ue),ee!==void 0)for(W=0;W<ee.length;W++)be.push(Qe,f(T(ee[W])),he);if(ye!==void 0)for(ee=0;ee<ye.length;ee++)be.push(Ke,f(T(ye[ee])),he);return{bootstrapChunks:be,startInlineScript:L,placeholderPrefix:p(O+"P:"),segmentPrefix:p(O+"S:"),boundaryPrefix:O+"B:",idPrefix:O,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function tt(O,L){return{insertionMode:O,selectedValue:L}}function xe(O){return tt(O==="http://www.w3.org/2000/svg"?2:O==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function Ce(O,L,W){switch(L){case"select":return tt(1,W.value!=null?W.value:W.defaultValue);case"svg":return tt(2,null);case"math":return tt(3,null);case"foreignObject":return tt(1,null);case"table":return tt(4,null);case"thead":case"tbody":case"tfoot":return tt(5,null);case"colgroup":return tt(7,null);case"tr":return tt(6,null)}return 4<=O.insertionMode||O.insertionMode===0?tt(1,null):O}var $e=p("<!-- -->");function je(O,L,W,ee){return L===""?ee:(ee&&O.push($e),O.push(f(T(L))),!0)}var ke=new Map,De=p(' style="'),Fe=p(":"),rt=p(";");function at(O,L,W){if(typeof W!="object")throw Error(t(62));L=!0;for(var ee in W)if(g.call(W,ee)){var ye=W[ee];if(ye!=null&&typeof ye!="boolean"&&ye!==""){if(ee.indexOf("--")===0){var be=f(T(ee));ye=f(T((""+ye).trim()))}else{be=ee;var Me=ke.get(be);Me!==void 0||(Me=p(T(be.replace(se,"-$1").toLowerCase().replace(re,"-ms-"))),ke.set(be,Me)),be=Me,ye=typeof ye=="number"?ye===0||g.call(Q,ee)?f(""+ye):f(ye+"px"):f(T((""+ye).trim()))}L?(L=!1,O.push(De,be,Fe,ye)):O.push(rt,be,Fe,ye)}}L||O.push(mt)}var ht=p(" "),lt=p('="'),mt=p('"'),et=p('=""');function At(O,L,W,ee){switch(W){case"style":at(O,L,ee);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<W.length)||W[0]!=="o"&&W[0]!=="O"||W[1]!=="n"&&W[1]!=="N"){if(L=I.hasOwnProperty(W)?I[W]:null,L!==null){switch(typeof ee){case"function":case"symbol":return;case"boolean":if(!L.acceptsBooleans)return}switch(W=f(L.attributeName),L.type){case 3:ee&&O.push(ht,W,et);break;case 4:ee===!0?O.push(ht,W,et):ee!==!1&&O.push(ht,W,lt,f(T(ee)),mt);break;case 5:isNaN(ee)||O.push(ht,W,lt,f(T(ee)),mt);break;case 6:!isNaN(ee)&&1<=ee&&O.push(ht,W,lt,f(T(ee)),mt);break;default:L.sanitizeURL&&(ee=""+ee),O.push(ht,W,lt,f(T(ee)),mt)}}else if(A(W)){switch(typeof ee){case"function":case"symbol":return;case"boolean":if(L=W.toLowerCase().slice(0,5),L!=="data-"&&L!=="aria-")return}O.push(ht,f(W),lt,f(T(ee)),mt)}}}var Lt=p(">"),Hn=p("/>");function gr(O,L,W){if(L!=null){if(W!=null)throw Error(t(60));if(typeof L!="object"||!("__html"in L))throw Error(t(61));L=L.__html,L!=null&&O.push(f(""+L))}}function Un(O){var L="";return e.Children.forEach(O,function(W){W!=null&&(L+=W)}),L}var Cn=p(' selected=""');function ji(O,L,W,ee){O.push(dn(W));var ye=W=null,be;for(be in L)if(g.call(L,be)){var Me=L[be];if(Me!=null)switch(be){case"children":W=Me;break;case"dangerouslySetInnerHTML":ye=Me;break;default:At(O,ee,be,Me)}}return O.push(Lt),gr(O,ye,W),typeof W=="string"?(O.push(f(T(W))),null):W}var Er=p(`
|
|
54
|
-
`),Zn=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,sn=new Map;function dn(O){var L=sn.get(O);if(L===void 0){if(!Zn.test(O))throw Error(t(65,O));L=p("<"+O),sn.set(O,L)}return L}var hn=p("<!DOCTYPE html>");function dt(O,L,W,ee,ye){switch(L){case"select":O.push(dn("select"));var be=null,Me=null;for(Tt in W)if(g.call(W,Tt)){var qe=W[Tt];if(qe!=null)switch(Tt){case"children":be=qe;break;case"dangerouslySetInnerHTML":Me=qe;break;case"defaultValue":case"value":break;default:At(O,ee,Tt,qe)}}return O.push(Lt),gr(O,Me,be),be;case"option":Me=ye.selectedValue,O.push(dn("option"));var gt=qe=null,Pt=null,Tt=null;for(be in W)if(g.call(W,be)){var bt=W[be];if(bt!=null)switch(be){case"children":qe=bt;break;case"selected":Pt=bt;break;case"dangerouslySetInnerHTML":Tt=bt;break;case"value":gt=bt;default:At(O,ee,be,bt)}}if(Me!=null)if(W=gt!==null?""+gt:Un(qe),Pe(Me)){for(ee=0;ee<Me.length;ee++)if(""+Me[ee]===W){O.push(Cn);break}}else""+Me===W&&O.push(Cn);else Pt&&O.push(Cn);return O.push(Lt),gr(O,Tt,qe),qe;case"textarea":O.push(dn("textarea")),Tt=Me=be=null;for(qe in W)if(g.call(W,qe)&&(gt=W[qe],gt!=null))switch(qe){case"children":Tt=gt;break;case"value":be=gt;break;case"defaultValue":Me=gt;break;case"dangerouslySetInnerHTML":throw Error(t(91));default:At(O,ee,qe,gt)}if(be===null&&Me!==null&&(be=Me),O.push(Lt),Tt!=null){if(be!=null)throw Error(t(92));if(Pe(Tt)&&1<Tt.length)throw Error(t(93));be=""+Tt}return typeof be=="string"&&be[0]===`
|
|
55
|
-
`&&O.push(Er),be!==null&&O.push(f(T(""+be))),null;case"input":O.push(dn("input")),gt=Tt=qe=be=null;for(Me in W)if(g.call(W,Me)&&(Pt=W[Me],Pt!=null))switch(Me){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,"input"));case"defaultChecked":gt=Pt;break;case"defaultValue":qe=Pt;break;case"checked":Tt=Pt;break;case"value":be=Pt;break;default:At(O,ee,Me,Pt)}return Tt!==null?At(O,ee,"checked",Tt):gt!==null&&At(O,ee,"checked",gt),be!==null?At(O,ee,"value",be):qe!==null&&At(O,ee,"value",qe),O.push(Hn),null;case"menuitem":O.push(dn("menuitem"));for(var Mn in W)if(g.call(W,Mn)&&(be=W[Mn],be!=null))switch(Mn){case"children":case"dangerouslySetInnerHTML":throw Error(t(400));default:At(O,ee,Mn,be)}return O.push(Lt),null;case"title":O.push(dn("title")),be=null;for(bt in W)if(g.call(W,bt)&&(Me=W[bt],Me!=null))switch(bt){case"children":be=Me;break;case"dangerouslySetInnerHTML":throw Error(t(434));default:At(O,ee,bt,Me)}return O.push(Lt),be;case"listing":case"pre":O.push(dn(L)),Me=be=null;for(gt in W)if(g.call(W,gt)&&(qe=W[gt],qe!=null))switch(gt){case"children":be=qe;break;case"dangerouslySetInnerHTML":Me=qe;break;default:At(O,ee,gt,qe)}if(O.push(Lt),Me!=null){if(be!=null)throw Error(t(60));if(typeof Me!="object"||!("__html"in Me))throw Error(t(61));W=Me.__html,W!=null&&(typeof W=="string"&&0<W.length&&W[0]===`
|
|
56
|
-
`?O.push(Er,f(W)):O.push(f(""+W)))}return typeof be=="string"&&be[0]===`
|
|
57
|
-
`&&O.push(Er),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":O.push(dn(L));for(var xn in W)if(g.call(W,xn)&&(be=W[xn],be!=null))switch(xn){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,L));default:At(O,ee,xn,be)}return O.push(Hn),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(O,W,L,ee);case"html":return ye.insertionMode===0&&O.push(hn),ji(O,W,L,ee);default:if(L.indexOf("-")===-1&&typeof W.is!="string")return ji(O,W,L,ee);O.push(dn(L)),Me=be=null;for(Pt in W)if(g.call(W,Pt)&&(qe=W[Pt],qe!=null))switch(Pt){case"children":be=qe;break;case"dangerouslySetInnerHTML":Me=qe;break;case"style":at(O,ee,qe);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:A(Pt)&&typeof qe!="function"&&typeof qe!="symbol"&&O.push(ht,f(Pt),lt,f(T(qe)),mt)}return O.push(Lt),gr(O,Me,be),be}}var _n=p("</"),ai=p(">"),an=p('<template id="'),Bi=p('"></template>'),$i=p("<!--$-->"),Vi=p('<!--$?--><template id="'),kr=p('"></template>'),jn=p("<!--$!-->"),Or=p("<!--/$-->"),vr=p("<template"),Yr=p('"'),Gr=p(' data-dgst="');p(' data-msg="'),p(' data-stck="');var Po=p("></template>");function Wn(O,L,W){if(i(O,Vi),W===null)throw Error(t(395));return i(O,W),o(O,kr)}var qr=p('<div hidden id="'),Jn=p('">'),Wt=p("</div>"),si=p('<svg aria-hidden="true" style="display:none" id="'),Hi=p('">'),Dn=p("</svg>"),pn=p('<math aria-hidden="true" style="display:none" id="'),li=p('">'),ui=p("</math>"),En=p('<table hidden id="'),oo=p('">'),mr=p("</table>"),ci=p('<table hidden><tbody id="'),ln=p('">'),ki=p("</tbody></table>"),Da=p('<table hidden><tr id="'),Pa=p('">'),Xr=p("</tr></table>"),ao=p('<table hidden><colgroup id="'),so=p('">'),Oi=p("</colgroup></table>");function Qn(O,L,W,ee){switch(W.insertionMode){case 0:case 1:return i(O,qr),i(O,L.segmentPrefix),i(O,f(ee.toString(16))),o(O,Jn);case 2:return i(O,si),i(O,L.segmentPrefix),i(O,f(ee.toString(16))),o(O,Hi);case 3:return i(O,pn),i(O,L.segmentPrefix),i(O,f(ee.toString(16))),o(O,li);case 4:return i(O,En),i(O,L.segmentPrefix),i(O,f(ee.toString(16))),o(O,oo);case 5:return i(O,ci),i(O,L.segmentPrefix),i(O,f(ee.toString(16))),o(O,ln);case 6:return i(O,Da),i(O,L.segmentPrefix),i(O,f(ee.toString(16))),o(O,Pa);case 7:return i(O,ao),i(O,L.segmentPrefix),i(O,f(ee.toString(16))),o(O,so);default:throw Error(t(397))}}function _r(O,L){switch(L.insertionMode){case 0:case 1:return o(O,Wt);case 2:return o(O,Dn);case 3:return o(O,ui);case 4:return o(O,mr);case 5:return o(O,ki);case 6:return o(O,Xr);case 7:return o(O,Oi);default:throw Error(t(397))}}var Dr=p('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),fi=p('$RS("'),Kr=p('","'),yr=p('")<\/script>'),Pr=p('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),er=p('$RC("'),Ui=p('","'),_i=p('")<\/script>'),sr=p('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),wn=p('$RX("'),Rr=p('"'),Ir=p(")<\/script>"),di=p(","),hi=/[<\u2028\u2029]/g;function br(O){return JSON.stringify(O).replace(hi,function(L){switch(L){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var Zr=Object.assign,zn=Symbol.for("react.element"),pi=Symbol.for("react.portal"),gi=Symbol.for("react.fragment"),Di=Symbol.for("react.strict_mode"),rn=Symbol.for("react.profiler"),Bn=Symbol.for("react.provider"),kn=Symbol.for("react.context"),lo=Symbol.for("react.forward_ref"),Pn=Symbol.for("react.suspense"),Rn=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),G=Symbol.for("react.scope"),te=Symbol.for("react.debug_trace_mode"),Ee=Symbol.for("react.legacy_hidden"),ge=Symbol.for("react.default_value"),Re=Symbol.iterator;function Ze(O){if(O==null)return null;if(typeof O=="function")return O.displayName||O.name||null;if(typeof O=="string")return O;switch(O){case gi:return"Fragment";case pi:return"Portal";case rn:return"Profiler";case Di:return"StrictMode";case Pn:return"Suspense";case Rn:return"SuspenseList"}if(typeof O=="object")switch(O.$$typeof){case kn:return(O.displayName||"Context")+".Consumer";case Bn:return(O._context.displayName||"Context")+".Provider";case lo:var L=O.render;return O=O.displayName,O||(O=L.displayName||L.name||"",O=O!==""?"ForwardRef("+O+")":"ForwardRef"),O;case k:return L=O.displayName||null,L!==null?L:Ze(O.type)||"Memo";case N:L=O._payload,O=O._init;try{return Ze(O(L))}catch{}}return null}var vt={};function yt(O,L){if(O=O.contextTypes,!O)return vt;var W={},ee;for(ee in O)W[ee]=L[ee];return W}var pt=null;function Nt(O,L){if(O!==L){O.context._currentValue=O.parentValue,O=O.parent;var W=L.parent;if(O===null){if(W!==null)throw Error(t(401))}else{if(W===null)throw Error(t(401));Nt(O,W)}L.context._currentValue=L.value}}function $n(O){O.context._currentValue=O.parentValue,O=O.parent,O!==null&&$n(O)}function Yn(O){var L=O.parent;L!==null&&Yn(L),O.context._currentValue=O.value}function On(O,L){if(O.context._currentValue=O.parentValue,O=O.parent,O===null)throw Error(t(402));O.depth===L.depth?Nt(O,L):On(O,L)}function Jr(O,L){var W=L.parent;if(W===null)throw Error(t(402));O.depth===W.depth?Nt(O,W):Jr(O,W),L.context._currentValue=L.value}function lr(O){var L=pt;L!==O&&(L===null?Yn(O):O===null?$n(L):L.depth===O.depth?Nt(L,O):L.depth>O.depth?On(L,O):Jr(L,O),pt=O)}var Wi={isMounted:function(){return!1},enqueueSetState:function(O,L){O=O._reactInternals,O.queue!==null&&O.queue.push(L)},enqueueReplaceState:function(O,L){O=O._reactInternals,O.replace=!0,O.queue=[L]},enqueueForceUpdate:function(){}};function vi(O,L,W,ee){var ye=O.state!==void 0?O.state:null;O.updater=Wi,O.props=W,O.state=ye;var be={queue:[],replace:!1};O._reactInternals=be;var Me=L.contextType;if(O.context=typeof Me=="object"&&Me!==null?Me._currentValue:ee,Me=L.getDerivedStateFromProps,typeof Me=="function"&&(Me=Me(W,ye),ye=Me==null?ye:Zr({},ye,Me),O.state=ye),typeof L.getDerivedStateFromProps!="function"&&typeof O.getSnapshotBeforeUpdate!="function"&&(typeof O.UNSAFE_componentWillMount=="function"||typeof O.componentWillMount=="function"))if(L=O.state,typeof O.componentWillMount=="function"&&O.componentWillMount(),typeof O.UNSAFE_componentWillMount=="function"&&O.UNSAFE_componentWillMount(),L!==O.state&&Wi.enqueueReplaceState(O,O.state,null),be.queue!==null&&0<be.queue.length)if(L=be.queue,Me=be.replace,be.queue=null,be.replace=!1,Me&&L.length===1)O.state=L[0];else{for(be=Me?L[0]:O.state,ye=!0,Me=Me?1:0;Me<L.length;Me++){var qe=L[Me];qe=typeof qe=="function"?qe.call(O,be,W,ee):qe,qe!=null&&(ye?(ye=!1,be=Zr({},be,qe)):Zr(be,qe))}O.state=be}else be.queue=null}var zi={id:1,overflow:""};function Ar(O,L,W){var ee=O.id;O=O.overflow;var ye=32-Yi(ee)-1;ee&=~(1<<ye),W+=1;var be=32-Yi(L)+ye;if(30<be){var Me=ye-ye%5;return be=(ee&(1<<Me)-1).toString(32),ee>>=Me,ye-=Me,{id:1<<32-Yi(L)+ye|W<<ye|ee,overflow:be+O}}return{id:1<<be|W<<ye|ee,overflow:O}}var Yi=Math.clz32?Math.clz32:Qo,Hs=Math.log,Ra=Math.LN2;function Qo(O){return O>>>=0,O===0?32:31-(Hs(O)/Ra|0)|0}function wr(O,L){return O===L&&(O!==0||1/O===1/L)||O!==O&&L!==L}var Us=typeof Object.is=="function"?Object.is:wr,mi=null,Ia=null,ea=null,on=null,qt=!1,Zt=!1,Pi=0,Qr=null,Ro=0;function yi(){if(mi===null)throw Error(t(321));return mi}function ur(){if(0<Ro)throw Error(t(312));return{memoizedState:null,queue:null,next:null}}function Aa(){return on===null?ea===null?(qt=!1,ea=on=ur()):(qt=!0,on=ea):on.next===null?(qt=!1,on=on.next=ur()):(qt=!0,on=on.next),on}function uo(){Ia=mi=null,Zt=!1,ea=null,Ro=0,on=Qr=null}function as(O,L){return typeof L=="function"?L(O):L}function un(O,L,W){if(mi=yi(),on=Aa(),qt){var ee=on.queue;if(L=ee.dispatch,Qr!==null&&(W=Qr.get(ee),W!==void 0)){Qr.delete(ee),ee=on.memoizedState;do ee=O(ee,W.action),W=W.next;while(W!==null);return on.memoizedState=ee,[ee,L]}return[on.memoizedState,L]}return O=O===as?typeof L=="function"?L():L:W!==void 0?W(L):L,on.memoizedState=O,O=on.queue={last:null,dispatch:null},O=O.dispatch=bi.bind(null,mi,O),[on.memoizedState,O]}function Io(O,L){if(mi=yi(),on=Aa(),L=L===void 0?null:L,on!==null){var W=on.memoizedState;if(W!==null&&L!==null){var ee=W[1];e:if(ee===null)ee=!1;else{for(var ye=0;ye<ee.length&&ye<L.length;ye++)if(!Us(L[ye],ee[ye])){ee=!1;break e}ee=!0}if(ee)return W[0]}}return O=O(),on.memoizedState=[O,L],O}function bi(O,L,W){if(25<=Ro)throw Error(t(301));if(O===mi)if(Zt=!0,O={action:W,next:null},Qr===null&&(Qr=new Map),W=Qr.get(L),W===void 0)Qr.set(L,O);else{for(L=W;L.next!==null;)L=L.next;L.next=O}}function ss(){throw Error(t(394))}function co(){}var cr={readContext:function(O){return O._currentValue},useContext:function(O){return yi(),O._currentValue},useMemo:Io,useReducer:un,useRef:function(O){mi=yi(),on=Aa();var L=on.memoizedState;return L===null?(O={current:O},on.memoizedState=O):L},useState:function(O){return un(as,O)},useInsertionEffect:co,useLayoutEffect:function(){},useCallback:function(O,L){return Io(function(){return O},L)},useImperativeHandle:co,useEffect:co,useDebugValue:co,useDeferredValue:function(O){return yi(),O},useTransition:function(){return yi(),[!1,ss]},useId:function(){var O=Ia.treeContext,L=O.overflow;O=O.id,O=(O&~(1<<32-Yi(O)-1)).toString(32)+L;var W=h;if(W===null)throw Error(t(404));return L=Pi++,O=":"+W.idPrefix+"R"+O,0<L&&(O+="H"+L.toString(32)),O+":"},useMutableSource:function(O,L){return yi(),L(O._source)},useSyncExternalStore:function(O,L,W){if(W===void 0)throw Error(t(407));return W()}},h=null,b=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function E(O){return console.error(O),null}function _(){}function F(O,L,W,ee,ye,be,Me,qe,gt){var Pt=[],Tt=new Set;return L={destination:null,responseState:L,progressiveChunkSize:ee===void 0?12800:ee,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:Tt,pingedTasks:Pt,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:ye===void 0?E:ye,onAllReady:be===void 0?_:be,onShellReady:Me===void 0?_:Me,onShellError:qe===void 0?_:qe,onFatalError:gt===void 0?_:gt},W=V(L,0,null,W,!1,!1),W.parentFlushed=!0,O=j(L,O,null,W,Tt,vt,null,zi),Pt.push(O),L}function j(O,L,W,ee,ye,be,Me,qe){O.allPendingTasks++,W===null?O.pendingRootTasks++:W.pendingTasks++;var gt={node:L,ping:function(){var Pt=O.pingedTasks;Pt.push(gt),Pt.length===1&&Lr(O)},blockedBoundary:W,blockedSegment:ee,abortSet:ye,legacyContext:be,context:Me,treeContext:qe};return ye.add(gt),gt}function V(O,L,W,ee,ye,be){return{status:0,id:-1,index:L,parentFlushed:!1,chunks:[],children:[],formatContext:ee,boundary:W,lastPushedText:ye,textEmbedded:be}}function ae(O,L){if(O=O.onError(L),O!=null&&typeof O!="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 O+'" instead');return O}function ne(O,L){var W=O.onShellError;W(L),W=O.onFatalError,W(L),O.destination!==null?(O.status=2,y(O.destination,L)):(O.status=1,O.fatalError=L)}function pe(O,L,W,ee,ye){for(mi={},Ia=L,Pi=0,O=W(ee,ye);Zt;)Zt=!1,Pi=0,Ro+=1,on=null,O=W(ee,ye);return uo(),O}function _e(O,L,W,ee){var ye=W.render(),be=ee.childContextTypes;if(be!=null){var Me=L.legacyContext;if(typeof W.getChildContext!="function")ee=Me;else{W=W.getChildContext();for(var qe in W)if(!(qe in be))throw Error(t(108,Ze(ee)||"Unknown",qe));ee=Zr({},Me,W)}L.legacyContext=ee,We(O,L,ye),L.legacyContext=Me}else We(O,L,ye)}function Ie(O,L){if(O&&O.defaultProps){L=Zr({},L),O=O.defaultProps;for(var W in O)L[W]===void 0&&(L[W]=O[W]);return L}return L}function Se(O,L,W,ee,ye){if(typeof W=="function")if(W.prototype&&W.prototype.isReactComponent){ye=yt(W,L.legacyContext);var be=W.contextType;be=new W(ee,typeof be=="object"&&be!==null?be._currentValue:ye),vi(be,W,ee,ye),_e(O,L,be,W)}else{be=yt(W,L.legacyContext),ye=pe(O,L,W,ee,be);var Me=Pi!==0;if(typeof ye=="object"&&ye!==null&&typeof ye.render=="function"&&ye.$$typeof===void 0)vi(ye,W,ee,be),_e(O,L,ye,W);else if(Me){ee=L.treeContext,L.treeContext=Ar(ee,1,0);try{We(O,L,ye)}finally{L.treeContext=ee}}else We(O,L,ye)}else if(typeof W=="string"){switch(ye=L.blockedSegment,be=dt(ye.chunks,W,ee,O.responseState,ye.formatContext),ye.lastPushedText=!1,Me=ye.formatContext,ye.formatContext=Ce(Me,W,ee),Ct(O,L,be),ye.formatContext=Me,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:ye.chunks.push(_n,f(W),ai)}ye.lastPushedText=!1}else{switch(W){case Ee:case te:case Di:case rn:case gi:We(O,L,ee.children);return;case Rn:We(O,L,ee.children);return;case G:throw Error(t(343));case Pn:e:{W=L.blockedBoundary,ye=L.blockedSegment,be=ee.fallback,ee=ee.children,Me=new Set;var qe={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:Me,errorDigest:null},gt=V(O,ye.chunks.length,qe,ye.formatContext,!1,!1);ye.children.push(gt),ye.lastPushedText=!1;var Pt=V(O,0,null,ye.formatContext,!1,!1);Pt.parentFlushed=!0,L.blockedBoundary=qe,L.blockedSegment=Pt;try{if(Ct(O,L,ee),Pt.lastPushedText&&Pt.textEmbedded&&Pt.chunks.push($e),Pt.status=1,cn(qe,Pt),qe.pendingTasks===0)break e}catch(Tt){Pt.status=4,qe.forceClientRender=!0,qe.errorDigest=ae(O,Tt)}finally{L.blockedBoundary=W,L.blockedSegment=ye}L=j(O,be,W,gt,Me,L.legacyContext,L.context,L.treeContext),O.pingedTasks.push(L)}return}if(typeof W=="object"&&W!==null)switch(W.$$typeof){case lo:if(ee=pe(O,L,W.render,ee,ye),Pi!==0){W=L.treeContext,L.treeContext=Ar(W,1,0);try{We(O,L,ee)}finally{L.treeContext=W}}else We(O,L,ee);return;case k:W=W.type,ee=Ie(W,ee),Se(O,L,W,ee,ye);return;case Bn:if(ye=ee.children,W=W._context,ee=ee.value,be=W._currentValue,W._currentValue=ee,Me=pt,pt=ee={parent:Me,depth:Me===null?0:Me.depth+1,context:W,parentValue:be,value:ee},L.context=ee,We(O,L,ye),O=pt,O===null)throw Error(t(403));ee=O.parentValue,O.context._currentValue=ee===ge?O.context._defaultValue:ee,O=pt=O.parent,L.context=O;return;case kn:ee=ee.children,ee=ee(W._currentValue),We(O,L,ee);return;case N:ye=W._init,W=ye(W._payload),ee=Ie(W,ee),Se(O,L,W,ee,void 0);return}throw Error(t(130,W==null?W:typeof W,""))}}function We(O,L,W){if(L.node=W,typeof W=="object"&&W!==null){switch(W.$$typeof){case zn:Se(O,L,W.type,W.props,W.ref);return;case pi:throw Error(t(257));case N:var ee=W._init;W=ee(W._payload),We(O,L,W);return}if(Pe(W)){st(O,L,W);return}if(W===null||typeof W!="object"?ee=null:(ee=Re&&W[Re]||W["@@iterator"],ee=typeof ee=="function"?ee:null),ee&&(ee=ee.call(W))){if(W=ee.next(),!W.done){var ye=[];do ye.push(W.value),W=ee.next();while(!W.done);st(O,L,ye)}return}throw O=Object.prototype.toString.call(W),Error(t(31,O==="[object Object]"?"object with keys {"+Object.keys(W).join(", ")+"}":O))}typeof W=="string"?(ee=L.blockedSegment,ee.lastPushedText=je(L.blockedSegment.chunks,W,O.responseState,ee.lastPushedText)):typeof W=="number"&&(ee=L.blockedSegment,ee.lastPushedText=je(L.blockedSegment.chunks,""+W,O.responseState,ee.lastPushedText))}function st(O,L,W){for(var ee=W.length,ye=0;ye<ee;ye++){var be=L.treeContext;L.treeContext=Ar(be,ee,ye);try{Ct(O,L,W[ye])}finally{L.treeContext=be}}}function Ct(O,L,W){var ee=L.blockedSegment.formatContext,ye=L.legacyContext,be=L.context;try{return We(O,L,W)}catch(gt){if(uo(),typeof gt=="object"&>!==null&&typeof gt.then=="function"){W=gt;var Me=L.blockedSegment,qe=V(O,Me.chunks.length,null,Me.formatContext,Me.lastPushedText,!0);Me.children.push(qe),Me.lastPushedText=!1,O=j(O,L.node,L.blockedBoundary,qe,L.abortSet,L.legacyContext,L.context,L.treeContext).ping,W.then(O,O),L.blockedSegment.formatContext=ee,L.legacyContext=ye,L.context=be,lr(be)}else throw L.blockedSegment.formatContext=ee,L.legacyContext=ye,L.context=be,lr(be),gt}}function kt(O){var L=O.blockedBoundary;O=O.blockedSegment,O.status=3,Mr(this,L,O)}function In(O,L,W){var ee=O.blockedBoundary;O.blockedSegment.status=3,ee===null?(L.allPendingTasks--,L.status!==2&&(L.status=2,L.destination!==null&&L.destination.close())):(ee.pendingTasks--,ee.forceClientRender||(ee.forceClientRender=!0,O=W===void 0?Error(t(432)):W,ee.errorDigest=L.onError(O),ee.parentFlushed&&L.clientRenderedBoundaries.push(ee)),ee.fallbackAbortableTasks.forEach(function(ye){return In(ye,L,W)}),ee.fallbackAbortableTasks.clear(),L.allPendingTasks--,L.allPendingTasks===0&&(ee=L.onAllReady,ee()))}function cn(O,L){if(L.chunks.length===0&&L.children.length===1&&L.children[0].boundary===null){var W=L.children[0];W.id=L.id,W.parentFlushed=!0,W.status===1&&cn(O,W)}else O.completedSegments.push(L)}function Mr(O,L,W){if(L===null){if(W.parentFlushed){if(O.completedRootSegment!==null)throw Error(t(389));O.completedRootSegment=W}O.pendingRootTasks--,O.pendingRootTasks===0&&(O.onShellError=_,L=O.onShellReady,L())}else L.pendingTasks--,L.forceClientRender||(L.pendingTasks===0?(W.parentFlushed&&W.status===1&&cn(L,W),L.parentFlushed&&O.completedBoundaries.push(L),L.fallbackAbortableTasks.forEach(kt,O),L.fallbackAbortableTasks.clear()):W.parentFlushed&&W.status===1&&(cn(L,W),L.completedSegments.length===1&&L.parentFlushed&&O.partialBoundaries.push(L)));O.allPendingTasks--,O.allPendingTasks===0&&(O=O.onAllReady,O())}function Lr(O){if(O.status!==2){var L=pt,W=b.current;b.current=cr;var ee=h;h=O.responseState;try{var ye=O.pingedTasks,be;for(be=0;be<ye.length;be++){var Me=ye[be],qe=O,gt=Me.blockedSegment;if(gt.status===0){lr(Me.context);try{We(qe,Me,Me.node),gt.lastPushedText&>.textEmbedded&>.chunks.push($e),Me.abortSet.delete(Me),gt.status=1,Mr(qe,Me.blockedBoundary,gt)}catch(Vn){if(uo(),typeof Vn=="object"&&Vn!==null&&typeof Vn.then=="function"){var Pt=Me.ping;Vn.then(Pt,Pt)}else{Me.abortSet.delete(Me),gt.status=4;var Tt=Me.blockedBoundary,bt=Vn,Mn=ae(qe,bt);if(Tt===null?ne(qe,bt):(Tt.pendingTasks--,Tt.forceClientRender||(Tt.forceClientRender=!0,Tt.errorDigest=Mn,Tt.parentFlushed&&qe.clientRenderedBoundaries.push(Tt))),qe.allPendingTasks--,qe.allPendingTasks===0){var xn=qe.onAllReady;xn()}}}finally{}}}ye.splice(0,be),O.destination!==null&&ho(O,O.destination)}catch(Vn){ae(O,Vn),ne(O,Vn)}finally{h=ee,b.current=W,W===cr&&lr(L)}}}function Ft(O,L,W){switch(W.parentFlushed=!0,W.status){case 0:var ee=W.id=O.nextSegmentId++;return W.lastPushedText=!1,W.textEmbedded=!1,O=O.responseState,i(L,an),i(L,O.placeholderPrefix),O=f(ee.toString(16)),i(L,O),o(L,Bi);case 1:W.status=2;var ye=!0;ee=W.chunks;var be=0;W=W.children;for(var Me=0;Me<W.length;Me++){for(ye=W[Me];be<ye.index;be++)i(L,ee[be]);ye=Fr(O,L,ye)}for(;be<ee.length-1;be++)i(L,ee[be]);return be<ee.length&&(ye=o(L,ee[be])),ye;default:throw Error(t(390))}}function Fr(O,L,W){var ee=W.boundary;if(ee===null)return Ft(O,L,W);if(ee.parentFlushed=!0,ee.forceClientRender)ee=ee.errorDigest,o(L,jn),i(L,vr),ee&&(i(L,Gr),i(L,f(T(ee))),i(L,Yr)),o(L,Po),Ft(O,L,W);else if(0<ee.pendingTasks){ee.rootSegmentID=O.nextSegmentId++,0<ee.completedSegments.length&&O.partialBoundaries.push(ee);var ye=O.responseState,be=ye.nextSuspenseID++;ye=p(ye.boundaryPrefix+be.toString(16)),ee=ee.id=ye,Wn(L,O.responseState,ee),Ft(O,L,W)}else if(ee.byteSize>O.progressiveChunkSize)ee.rootSegmentID=O.nextSegmentId++,O.completedBoundaries.push(ee),Wn(L,O.responseState,ee.id),Ft(O,L,W);else{if(o(L,$i),W=ee.completedSegments,W.length!==1)throw Error(t(391));Fr(O,L,W[0])}return o(L,Or)}function jt(O,L,W){return Qn(L,O.responseState,W.formatContext,W.id),Fr(O,L,W),_r(L,W.formatContext)}function en(O,L,W){for(var ee=W.completedSegments,ye=0;ye<ee.length;ye++)fo(O,L,W,ee[ye]);if(ee.length=0,O=O.responseState,ee=W.id,W=W.rootSegmentID,i(L,O.startInlineScript),O.sentCompleteBoundaryFunction?i(L,er):(O.sentCompleteBoundaryFunction=!0,i(L,Pr)),ee===null)throw Error(t(395));return W=f(W.toString(16)),i(L,ee),i(L,Ui),i(L,O.segmentPrefix),i(L,W),o(L,_i)}function fo(O,L,W,ee){if(ee.status===2)return!0;var ye=ee.id;if(ye===-1){if((ee.id=W.rootSegmentID)===-1)throw Error(t(392));return jt(O,L,ee)}return jt(O,L,ee),O=O.responseState,i(L,O.startInlineScript),O.sentCompleteSegmentFunction?i(L,fi):(O.sentCompleteSegmentFunction=!0,i(L,Dr)),i(L,O.segmentPrefix),ye=f(ye.toString(16)),i(L,ye),i(L,Kr),i(L,O.placeholderPrefix),i(L,ye),o(L,yr)}function ho(O,L){n=new Uint8Array(512),r=0;try{var W=O.completedRootSegment;if(W!==null&&O.pendingRootTasks===0){Fr(O,L,W),O.completedRootSegment=null;var ee=O.responseState.bootstrapChunks;for(W=0;W<ee.length-1;W++)i(L,ee[W]);W<ee.length&&o(L,ee[W])}var ye=O.clientRenderedBoundaries,be;for(be=0;be<ye.length;be++){var Me=ye[be];ee=L;var qe=O.responseState,gt=Me.id,Pt=Me.errorDigest,Tt=Me.errorMessage,bt=Me.errorComponentStack;if(i(ee,qe.startInlineScript),qe.sentClientRenderFunction?i(ee,wn):(qe.sentClientRenderFunction=!0,i(ee,sr)),gt===null)throw Error(t(395));i(ee,gt),i(ee,Rr),(Pt||Tt||bt)&&(i(ee,di),i(ee,f(br(Pt||"")))),(Tt||bt)&&(i(ee,di),i(ee,f(br(Tt||"")))),bt&&(i(ee,di),i(ee,f(br(bt)))),o(ee,Ir)}ye.splice(0,be);var Mn=O.completedBoundaries;for(be=0;be<Mn.length;be++)en(O,L,Mn[be]);Mn.splice(0,be),s(L),n=new Uint8Array(512),r=0;var xn=O.partialBoundaries;for(be=0;be<xn.length;be++){var Vn=xn[be];e:{ye=O,Me=L;var ta=Vn.completedSegments;for(qe=0;qe<ta.length;qe++)if(!fo(ye,Me,Vn,ta[qe])){qe++,ta.splice(0,qe);var ls=!1;break e}ta.splice(0,qe),ls=!0}if(!ls){O.destination=null,be++,xn.splice(0,be);return}}xn.splice(0,be);var po=O.completedBoundaries;for(be=0;be<po.length;be++)en(O,L,po[be]);po.splice(0,be)}finally{s(L),O.allPendingTasks===0&&O.pingedTasks.length===0&&O.clientRenderedBoundaries.length===0&&O.completedBoundaries.length===0&&L.close()}}function xr(O,L){try{var W=O.abortableTasks;W.forEach(function(ee){return In(ee,O,L)}),W.clear(),O.destination!==null&&ho(O,O.destination)}catch(ee){ae(O,ee),ne(O,ee)}}return Fh.renderToReadableStream=function(O,L){return new Promise(function(W,ee){var ye,be,Me=new Promise(function(Tt,bt){be=Tt,ye=bt}),qe=F(O,Ge(L?L.identifierPrefix:void 0,L?L.nonce:void 0,L?L.bootstrapScriptContent:void 0,L?L.bootstrapScripts:void 0,L?L.bootstrapModules:void 0),xe(L?L.namespaceURI:void 0),L?L.progressiveChunkSize:void 0,L?L.onError:void 0,be,function(){var Tt=new ReadableStream({type:"bytes",pull:function(bt){if(qe.status===1)qe.status=2,y(bt,qe.fatalError);else if(qe.status!==2&&qe.destination===null){qe.destination=bt;try{ho(qe,bt)}catch(Mn){ae(qe,Mn),ne(qe,Mn)}}},cancel:function(){xr(qe)}},{highWaterMark:0});Tt.allReady=Me,W(Tt)},function(Tt){Me.catch(function(){}),ee(Tt)},ye);if(L&&L.signal){var gt=L.signal,Pt=function(){xr(qe,gt.reason),gt.removeEventListener("abort",Pt)};gt.addEventListener("abort",Pt)}Lr(qe)})},Fh.version="18.3.1",Fh}var fc={};/**
|
|
58
|
-
* @license React
|
|
59
|
-
* react-dom-server-legacy.browser.development.js
|
|
60
|
-
*
|
|
61
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
62
|
-
*
|
|
63
|
-
* This source code is licensed under the MIT license found in the
|
|
64
|
-
* LICENSE file in the root directory of this source tree.
|
|
65
|
-
*/var r1;function T4(){return r1||(r1=1,process.env.NODE_ENV!=="production"&&function(){var e=q,t="18.3.1",n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(l){{for(var d=arguments.length,v=new Array(d>1?d-1:0),S=1;S<d;S++)v[S-1]=arguments[S];o("warn",l,v)}}function i(l){{for(var d=arguments.length,v=new Array(d>1?d-1:0),S=1;S<d;S++)v[S-1]=arguments[S];o("error",l,v)}}function o(l,d,v){{var S=n.ReactDebugCurrentFrame,R=S.getStackAddendum();R!==""&&(d+="%s",v=v.concat([R]));var B=v.map(function(Y){return String(Y)});B.unshift("Warning: "+d),Function.prototype.apply.call(console[l],console,B)}}function s(l){l()}function u(l){}function f(l,d){p(l,d)}function p(l,d){return l.push(d)}function y(l){}function g(l){l.push(null)}function x(l){return l}function C(l){return l}function D(l,d){l.destroy(d)}function A(l){{var d=typeof Symbol=="function"&&Symbol.toStringTag,v=d&&l[Symbol.toStringTag]||l.constructor.name||"Object";return v}}function M(l){try{return I(l),!1}catch{return!0}}function I(l){return""+l}function H(l,d){if(M(l))return i("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",d,A(l)),I(l)}function U(l,d){if(M(l))return i("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",d,A(l)),I(l)}function Q(l){if(M(l))return i("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",A(l)),I(l)}var Z=Object.prototype.hasOwnProperty,ce=0,T=1,se=2,re=3,Pe=4,He=5,Ue=6,Qe=":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",Ke=Qe+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",he=new RegExp("^["+Qe+"]["+Ke+"]*$"),me={},Le={};function Ge(l){return Z.call(Le,l)?!0:Z.call(me,l)?!1:he.test(l)?(Le[l]=!0,!0):(me[l]=!0,i("Invalid attribute name: `%s`",l),!1)}function tt(l,d,v,S){if(v!==null&&v.type===ce)return!1;switch(typeof d){case"function":case"symbol":return!0;case"boolean":{if(v!==null)return!v.acceptsBooleans;var R=l.toLowerCase().slice(0,5);return R!=="data-"&&R!=="aria-"}default:return!1}}function xe(l){return $e.hasOwnProperty(l)?$e[l]:null}function Ce(l,d,v,S,R,B,Y){this.acceptsBooleans=d===se||d===re||d===Pe,this.attributeName=S,this.attributeNamespace=R,this.mustUseProperty=v,this.propertyName=l,this.type=d,this.sanitizeURL=B,this.removeEmptyString=Y}var $e={},je=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];je.forEach(function(l){$e[l]=new Ce(l,ce,!1,l,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(l){var d=l[0],v=l[1];$e[d]=new Ce(d,T,!1,v,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(l){$e[l]=new Ce(l,se,!1,l.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(l){$e[l]=new Ce(l,se,!1,l,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(l){$e[l]=new Ce(l,re,!1,l.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(l){$e[l]=new Ce(l,re,!0,l,null,!1,!1)}),["capture","download"].forEach(function(l){$e[l]=new Ce(l,Pe,!1,l,null,!1,!1)}),["cols","rows","size","span"].forEach(function(l){$e[l]=new Ce(l,Ue,!1,l,null,!1,!1)}),["rowSpan","start"].forEach(function(l){$e[l]=new Ce(l,He,!1,l.toLowerCase(),null,!1,!1)});var ke=/[\-\:]([a-z])/g,De=function(l){return l[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(l){var d=l.replace(ke,De);$e[d]=new Ce(d,T,!1,l,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(l){var d=l.replace(ke,De);$e[d]=new Ce(d,T,!1,l,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(l){var d=l.replace(ke,De);$e[d]=new Ce(d,T,!1,l,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(l){$e[l]=new Ce(l,T,!1,l.toLowerCase(),null,!1,!1)});var Fe="xlinkHref";$e[Fe]=new Ce("xlinkHref",T,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(l){$e[l]=new Ce(l,T,!1,l.toLowerCase(),null,!0,!0)});var rt={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 at(l,d){return l+d.charAt(0).toUpperCase()+d.substring(1)}var ht=["Webkit","ms","Moz","O"];Object.keys(rt).forEach(function(l){ht.forEach(function(d){rt[at(d,l)]=rt[l]})});var lt={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function mt(l,d){lt[d.type]||d.onChange||d.onInput||d.readOnly||d.disabled||d.value==null||i("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),d.onChange||d.readOnly||d.disabled||d.checked==null||i("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function et(l,d){if(l.indexOf("-")===-1)return typeof d.is=="string";switch(l){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var At={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Lt={},Hn=new RegExp("^(aria)-["+Ke+"]*$"),gr=new RegExp("^(aria)[A-Z]["+Ke+"]*$");function Un(l,d){{if(Z.call(Lt,d)&&Lt[d])return!0;if(gr.test(d)){var v="aria-"+d.slice(4).toLowerCase(),S=At.hasOwnProperty(v)?v:null;if(S==null)return i("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",d),Lt[d]=!0,!0;if(d!==S)return i("Invalid ARIA attribute `%s`. Did you mean `%s`?",d,S),Lt[d]=!0,!0}if(Hn.test(d)){var R=d.toLowerCase(),B=At.hasOwnProperty(R)?R:null;if(B==null)return Lt[d]=!0,!1;if(d!==B)return i("Unknown ARIA attribute `%s`. Did you mean `%s`?",d,B),Lt[d]=!0,!0}}return!0}function Cn(l,d){{var v=[];for(var S in d){var R=Un(l,S);R||v.push(S)}var B=v.map(function(Y){return"`"+Y+"`"}).join(", ");v.length===1?i("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",B,l):v.length>1&&i("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",B,l)}}function ji(l,d){et(l,d)||Cn(l,d)}var Er=!1;function Zn(l,d){{if(l!=="input"&&l!=="textarea"&&l!=="select")return;d!=null&&d.value===null&&!Er&&(Er=!0,l==="select"&&d.multiple?i("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",l):i("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",l))}}var sn={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},dn=function(){};{var hn={},dt=/^on./,_n=/^on[^A-Z]/,ai=new RegExp("^(aria)-["+Ke+"]*$"),an=new RegExp("^(aria)[A-Z]["+Ke+"]*$");dn=function(l,d,v,S){if(Z.call(hn,d)&&hn[d])return!0;var R=d.toLowerCase();if(R==="onfocusin"||R==="onfocusout")return i("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),hn[d]=!0,!0;if(S!=null){var B=S.registrationNameDependencies,Y=S.possibleRegistrationNames;if(B.hasOwnProperty(d))return!0;var ie=Y.hasOwnProperty(R)?Y[R]:null;if(ie!=null)return i("Invalid event handler property `%s`. Did you mean `%s`?",d,ie),hn[d]=!0,!0;if(dt.test(d))return i("Unknown event handler property `%s`. It will be ignored.",d),hn[d]=!0,!0}else if(dt.test(d))return _n.test(d)&&i("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",d),hn[d]=!0,!0;if(ai.test(d)||an.test(d))return!0;if(R==="innerhtml")return i("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),hn[d]=!0,!0;if(R==="aria")return i("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),hn[d]=!0,!0;if(R==="is"&&v!==null&&v!==void 0&&typeof v!="string")return i("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof v),hn[d]=!0,!0;if(typeof v=="number"&&isNaN(v))return i("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",d),hn[d]=!0,!0;var we=xe(d),Ve=we!==null&&we.type===ce;if(sn.hasOwnProperty(R)){var Xe=sn[R];if(Xe!==d)return i("Invalid DOM property `%s`. Did you mean `%s`?",d,Xe),hn[d]=!0,!0}else if(!Ve&&d!==R)return i("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",d,R),hn[d]=!0,!0;return typeof v=="boolean"&&tt(d,v,we)?(v?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()}.',v,d,d,v,d):i('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',v,d,d,v,d,d,d),hn[d]=!0,!0):Ve?!0:tt(d,v,we)?(hn[d]=!0,!1):((v==="false"||v==="true")&&we!==null&&we.type===re&&(i("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",v,d,v==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',d,v),hn[d]=!0),!0)}}var Bi=function(l,d,v){{var S=[];for(var R in d){var B=dn(l,R,d[R],v);B||S.push(R)}var Y=S.map(function(ie){return"`"+ie+"`"}).join(", ");S.length===1?i("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",Y,l):S.length>1&&i("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",Y,l)}};function $i(l,d,v){et(l,d)||Bi(l,d,v)}var Vi=function(){};{var kr=/^(?:webkit|moz|o)[A-Z]/,jn=/^-ms-/,Or=/-(.)/g,vr=/;\s*$/,Yr={},Gr={},Po=!1,Wn=!1,qr=function(l){return l.replace(Or,function(d,v){return v.toUpperCase()})},Jn=function(l){Yr.hasOwnProperty(l)&&Yr[l]||(Yr[l]=!0,i("Unsupported style property %s. Did you mean %s?",l,qr(l.replace(jn,"ms-"))))},Wt=function(l){Yr.hasOwnProperty(l)&&Yr[l]||(Yr[l]=!0,i("Unsupported vendor-prefixed style property %s. Did you mean %s?",l,l.charAt(0).toUpperCase()+l.slice(1)))},si=function(l,d){Gr.hasOwnProperty(d)&&Gr[d]||(Gr[d]=!0,i(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,l,d.replace(vr,"")))},Hi=function(l,d){Po||(Po=!0,i("`NaN` is an invalid value for the `%s` css style property.",l))},Dn=function(l,d){Wn||(Wn=!0,i("`Infinity` is an invalid value for the `%s` css style property.",l))};Vi=function(l,d){l.indexOf("-")>-1?Jn(l):kr.test(l)?Wt(l):vr.test(d)&&si(l,d),typeof d=="number"&&(isNaN(d)?Hi(l,d):isFinite(d)||Dn(l,d))}}var pn=Vi,li=/["'&<>]/;function ui(l){Q(l);var d=""+l,v=li.exec(d);if(!v)return d;var S,R="",B,Y=0;for(B=v.index;B<d.length;B++){switch(d.charCodeAt(B)){case 34:S=""";break;case 38:S="&";break;case 39:S="'";break;case 60:S="<";break;case 62:S=">";break;default:continue}Y!==B&&(R+=d.substring(Y,B)),Y=B+1,R+=S}return Y!==B?R+d.substring(Y,B):R}function En(l){return typeof l=="boolean"||typeof l=="number"?""+l:ui(l)}var oo=/([A-Z])/g,mr=/^ms-/;function ci(l){return l.replace(oo,"-$1").toLowerCase().replace(mr,"-ms-")}var ln=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,ki=!1;function Da(l){!ki&&ln.test(l)&&(ki=!0,i("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(l)))}var Pa=Array.isArray;function Xr(l){return Pa(l)}var ao="<script>";function so(l,d,v,S,R){var B=l===void 0?"":l,Y=ao,ie=[];return{bootstrapChunks:ie,startInlineScript:Y,placeholderPrefix:B+"P:",segmentPrefix:B+"S:",boundaryPrefix:B+"B:",idPrefix:B,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var Oi=0,Qn=1,_r=2,Dr=3,fi=4,Kr=5,yr=6,Pr=7;function er(l,d){return{insertionMode:l,selectedValue:d}}function Ui(l,d,v){switch(d){case"select":return er(Qn,v.value!=null?v.value:v.defaultValue);case"svg":return er(_r,null);case"math":return er(Dr,null);case"foreignObject":return er(Qn,null);case"table":return er(fi,null);case"thead":case"tbody":case"tfoot":return er(Kr,null);case"colgroup":return er(Pr,null);case"tr":return er(yr,null)}return l.insertionMode>=fi||l.insertionMode===Oi?er(Qn,null):l}var _i=null;function sr(l){var d=l.nextSuspenseID++;return l.boundaryPrefix+d.toString(16)}function wn(l,d,v){var S=l.idPrefix,R=":"+S+"R"+d;return v>0&&(R+="H"+v.toString(32)),R+":"}function Rr(l){return En(l)}var Ir="<!-- -->";function di(l,d,v,S){return d===""?S:(S&&l.push(Ir),l.push(Rr(d)),!0)}function hi(l,d,v,S){v&&S&&l.push(Ir)}var br=new Map;function Zr(l){var d=br.get(l);if(d!==void 0)return d;var v=En(ci(l));return br.set(l,v),v}var zn=' style="',pi=":",gi=";";function Di(l,d,v){if(typeof v!="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 S=!0;for(var R in v)if(Z.call(v,R)){var B=v[R];if(!(B==null||typeof B=="boolean"||B==="")){var Y=void 0,ie=void 0,we=R.indexOf("--")===0;we?(Y=En(R),U(B,R),ie=En((""+B).trim())):(pn(R,B),Y=Zr(R),typeof B=="number"?B!==0&&!Z.call(rt,R)?ie=B+"px":ie=""+B:(U(B,R),ie=En((""+B).trim()))),S?(S=!1,l.push(zn,Y,pi,ie)):l.push(gi,Y,pi,ie)}}S||l.push(kn)}var rn=" ",Bn='="',kn='"',lo='=""';function Pn(l,d,v,S){switch(v){case"style":{Di(l,d,S);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(v.length>2&&(v[0]==="o"||v[0]==="O")&&(v[1]==="n"||v[1]==="N"))){var R=xe(v);if(R!==null){switch(typeof S){case"function":case"symbol":return;case"boolean":if(!R.acceptsBooleans)return}var B=R.attributeName,Y=B;switch(R.type){case re:S&&l.push(rn,Y,lo);return;case Pe:S===!0?l.push(rn,Y,lo):S===!1||l.push(rn,Y,Bn,En(S),kn);return;case He:isNaN(S)||l.push(rn,Y,Bn,En(S),kn);break;case Ue:!isNaN(S)&&S>=1&&l.push(rn,Y,Bn,En(S),kn);break;default:R.sanitizeURL&&(H(S,B),S=""+S,Da(S)),l.push(rn,Y,Bn,En(S),kn)}}else if(Ge(v)){switch(typeof S){case"function":case"symbol":return;case"boolean":{var ie=v.toLowerCase().slice(0,5);if(ie!=="data-"&&ie!=="aria-")return}}l.push(rn,v,Bn,En(S),kn)}}}var Rn=">",k="/>";function N(l,d,v){if(d!=null){if(v!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof d!="object"||!("__html"in d))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var S=d.__html;S!=null&&(Q(S),l.push(""+S))}}var G=!1,te=!1,Ee=!1,ge=!1,Re=!1,Ze=!1,vt=!1;function yt(l,d){{var v=l[d];if(v!=null){var S=Xr(v);l.multiple&&!S?i("The `%s` prop supplied to <select> must be an array if `multiple` is true.",d):!l.multiple&&S&&i("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",d)}}}function pt(l,d,v){mt("select",d),yt(d,"value"),yt(d,"defaultValue"),d.value!==void 0&&d.defaultValue!==void 0&&!Ee&&(i("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),Ee=!0),l.push(wr("select"));var S=null,R=null;for(var B in d)if(Z.call(d,B)){var Y=d[B];if(Y==null)continue;switch(B){case"children":S=Y;break;case"dangerouslySetInnerHTML":R=Y;break;case"defaultValue":case"value":break;default:Pn(l,v,B,Y);break}}return l.push(Rn),N(l,R,S),S}function Nt(l){var d="";return e.Children.forEach(l,function(v){v!=null&&(d+=v,!Re&&typeof v!="string"&&typeof v!="number"&&(Re=!0,i("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),d}var $n=' selected=""';function Yn(l,d,v,S){var R=S.selectedValue;l.push(wr("option"));var B=null,Y=null,ie=null,we=null;for(var Ve in d)if(Z.call(d,Ve)){var Xe=d[Ve];if(Xe==null)continue;switch(Ve){case"children":B=Xe;break;case"selected":ie=Xe,vt||(i("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),vt=!0);break;case"dangerouslySetInnerHTML":we=Xe;break;case"value":Y=Xe;default:Pn(l,v,Ve,Xe);break}}if(R!=null){var it;if(Y!==null?(H(Y,"value"),it=""+Y):(we!==null&&(Ze||(Ze=!0,i("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),it=Nt(B)),Xr(R))for(var St=0;St<R.length;St++){H(R[St],"value");var tn=""+R[St];if(tn===it){l.push($n);break}}else H(R,"select.value"),""+R===it&&l.push($n)}else ie&&l.push($n);return l.push(Rn),N(l,we,B),B}function On(l,d,v){mt("input",d),d.checked!==void 0&&d.defaultChecked!==void 0&&!te&&(i("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",d.type),te=!0),d.value!==void 0&&d.defaultValue!==void 0&&!G&&(i("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",d.type),G=!0),l.push(wr("input"));var S=null,R=null,B=null,Y=null;for(var ie in d)if(Z.call(d,ie)){var we=d[ie];if(we==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":Y=we;break;case"defaultValue":R=we;break;case"checked":B=we;break;case"value":S=we;break;default:Pn(l,v,ie,we);break}}return B!==null?Pn(l,v,"checked",B):Y!==null&&Pn(l,v,"checked",Y),S!==null?Pn(l,v,"value",S):R!==null&&Pn(l,v,"value",R),l.push(k),null}function Jr(l,d,v){mt("textarea",d),d.value!==void 0&&d.defaultValue!==void 0&&!ge&&(i("Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components"),ge=!0),l.push(wr("textarea"));var S=null,R=null,B=null;for(var Y in d)if(Z.call(d,Y)){var ie=d[Y];if(ie==null)continue;switch(Y){case"children":B=ie;break;case"value":S=ie;break;case"defaultValue":R=ie;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:Pn(l,v,Y,ie);break}}if(S===null&&R!==null&&(S=R),l.push(Rn),B!=null){if(i("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),S!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Xr(B)){if(B.length>1)throw new Error("<textarea> can only have at most one child.");Q(B[0]),S=""+B[0]}Q(B),S=""+B}return typeof S=="string"&&S[0]===`
|
|
66
|
-
`&&l.push(Yi),S!==null&&(H(S,"value"),l.push(Rr(""+S))),null}function lr(l,d,v,S){l.push(wr(v));for(var R in d)if(Z.call(d,R)){var B=d[R];if(B==null)continue;switch(R){case"children":case"dangerouslySetInnerHTML":throw new Error(v+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Pn(l,S,R,B);break}}return l.push(k),null}function Wi(l,d,v){l.push(wr("menuitem"));for(var S in d)if(Z.call(d,S)){var R=d[S];if(R==null)continue;switch(S){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:Pn(l,v,S,R);break}}return l.push(Rn),null}function vi(l,d,v){l.push(wr("title"));var S=null;for(var R in d)if(Z.call(d,R)){var B=d[R];if(B==null)continue;switch(R){case"children":S=B;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:Pn(l,v,R,B);break}}l.push(Rn);{var Y=Array.isArray(S)&&S.length<2?S[0]||null:S;Array.isArray(S)&&S.length>1?i("A title element received an array with more than 1 element as children. In browsers title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):Y!=null&&Y.$$typeof!=null?i("A title element received a React element for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):Y!=null&&typeof Y!="string"&&typeof Y!="number"&&i("A title element received a value that was not a string or number for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering")}return S}function zi(l,d,v,S){l.push(wr(v));var R=null,B=null;for(var Y in d)if(Z.call(d,Y)){var ie=d[Y];if(ie==null)continue;switch(Y){case"children":R=ie;break;case"dangerouslySetInnerHTML":B=ie;break;default:Pn(l,S,Y,ie);break}}return l.push(Rn),N(l,B,R),typeof R=="string"?(l.push(Rr(R)),null):R}function Ar(l,d,v,S){l.push(wr(v));var R=null,B=null;for(var Y in d)if(Z.call(d,Y)){var ie=d[Y];if(ie==null)continue;switch(Y){case"children":R=ie;break;case"dangerouslySetInnerHTML":B=ie;break;case"style":Di(l,S,ie);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:Ge(Y)&&typeof ie!="function"&&typeof ie!="symbol"&&l.push(rn,Y,Bn,En(ie),kn);break}}return l.push(Rn),N(l,B,R),R}var Yi=`
|
|
67
|
-
`;function Hs(l,d,v,S){l.push(wr(v));var R=null,B=null;for(var Y in d)if(Z.call(d,Y)){var ie=d[Y];if(ie==null)continue;switch(Y){case"children":R=ie;break;case"dangerouslySetInnerHTML":B=ie;break;default:Pn(l,S,Y,ie);break}}if(l.push(Rn),B!=null){if(R!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof B!="object"||!("__html"in B))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var we=B.__html;we!=null&&(typeof we=="string"&&we.length>0&&we[0]===`
|
|
68
|
-
`?l.push(Yi,we):(Q(we),l.push(""+we)))}return typeof R=="string"&&R[0]===`
|
|
69
|
-
`&&l.push(Yi),R}var Ra=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Qo=new Map;function wr(l){var d=Qo.get(l);if(d===void 0){if(!Ra.test(l))throw new Error("Invalid tag: "+l);d="<"+l,Qo.set(l,d)}return d}var Us="<!DOCTYPE html>";function mi(l,d,v,S,R){switch(ji(d,v),Zn(d,v),$i(d,v,null),!v.suppressContentEditableWarning&&v.contentEditable&&v.children!=null&&i("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),R.insertionMode!==_r&&R.insertionMode!==Dr&&d.indexOf("-")===-1&&typeof v.is!="string"&&d.toLowerCase()!==d&&i("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",d),d){case"select":return pt(l,v,S);case"option":return Yn(l,v,S,R);case"textarea":return Jr(l,v,S);case"input":return On(l,v,S);case"menuitem":return Wi(l,v,S);case"title":return vi(l,v,S);case"listing":case"pre":return Hs(l,v,d,S);case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":return lr(l,v,d,S);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 zi(l,v,d,S);case"html":return R.insertionMode===Oi&&l.push(Us),zi(l,v,d,S);default:return d.indexOf("-")===-1&&typeof v.is!="string"?zi(l,v,d,S):Ar(l,v,d,S)}}var Ia="</",ea=">";function on(l,d,v){switch(d){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:l.push(Ia,d,ea)}}function qt(l,d){for(var v=d.bootstrapChunks,S=0;S<v.length-1;S++)f(l,v[S]);return S<v.length?p(l,v[S]):!0}var Zt='<template id="',Pi='"></template>';function Qr(l,d,v){f(l,Zt),f(l,d.placeholderPrefix);var S=v.toString(16);return f(l,S),p(l,Pi)}var Ro="<!--$-->",yi='<!--$?--><template id="',ur='"></template>',Aa="<!--$!-->",uo="<!--/$-->",as="<template",un='"',Io=' data-dgst="',bi=' data-msg="',ss=' data-stck="',co="></template>";function cr(l,d){return p(l,Ro)}function h(l,d,v){if(f(l,yi),v===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return f(l,v),p(l,ur)}function b(l,d,v,S,R){var B;return B=p(l,Aa),f(l,as),v&&(f(l,Io),f(l,En(v)),f(l,un)),S&&(f(l,bi),f(l,En(S)),f(l,un)),R&&(f(l,ss),f(l,En(R)),f(l,un)),B=p(l,co),B}function E(l,d){return p(l,uo)}function _(l,d){return p(l,uo)}function F(l,d){return p(l,uo)}var j='<div hidden id="',V='">',ae="</div>",ne='<svg aria-hidden="true" style="display:none" id="',pe='">',_e="</svg>",Ie='<math aria-hidden="true" style="display:none" id="',Se='">',We="</math>",st='<table hidden id="',Ct='">',kt="</table>",In='<table hidden><tbody id="',cn='">',Mr="</tbody></table>",Lr='<table hidden><tr id="',Ft='">',Fr="</tr></table>",jt='<table hidden><colgroup id="',en='">',fo="</colgroup></table>";function ho(l,d,v,S){switch(v.insertionMode){case Oi:case Qn:return f(l,j),f(l,d.segmentPrefix),f(l,S.toString(16)),p(l,V);case _r:return f(l,ne),f(l,d.segmentPrefix),f(l,S.toString(16)),p(l,pe);case Dr:return f(l,Ie),f(l,d.segmentPrefix),f(l,S.toString(16)),p(l,Se);case fi:return f(l,st),f(l,d.segmentPrefix),f(l,S.toString(16)),p(l,Ct);case Kr:return f(l,In),f(l,d.segmentPrefix),f(l,S.toString(16)),p(l,cn);case yr:return f(l,Lr),f(l,d.segmentPrefix),f(l,S.toString(16)),p(l,Ft);case Pr:return f(l,jt),f(l,d.segmentPrefix),f(l,S.toString(16)),p(l,en);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}function xr(l,d){switch(d.insertionMode){case Oi:case Qn:return p(l,ae);case _r:return p(l,_e);case Dr:return p(l,We);case fi:return p(l,kt);case Kr:return p(l,Mr);case yr:return p(l,Fr);case Pr:return p(l,fo);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var O="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)}",L='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()}}',W='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())}',ee=O+';$RS("',ye='$RS("',be='","',Me='")<\/script>';function qe(l,d,v){f(l,d.startInlineScript),d.sentCompleteSegmentFunction?f(l,ye):(d.sentCompleteSegmentFunction=!0,f(l,ee)),f(l,d.segmentPrefix);var S=v.toString(16);return f(l,S),f(l,be),f(l,d.placeholderPrefix),f(l,S),p(l,Me)}var gt=L+';$RC("',Pt='$RC("',Tt='","',bt='")<\/script>';function Mn(l,d,v,S){if(f(l,d.startInlineScript),d.sentCompleteBoundaryFunction?f(l,Pt):(d.sentCompleteBoundaryFunction=!0,f(l,gt)),v===null)throw new Error("An ID must have been assigned before we can complete the boundary.");var R=S.toString(16);return f(l,v),f(l,Tt),f(l,d.segmentPrefix),f(l,R),p(l,bt)}var xn=W+';$RX("',Vn='$RX("',ta='"',ls=")<\/script>",po=",";function ei(l,d,v,S,R,B){if(f(l,d.startInlineScript),d.sentClientRenderFunction?f(l,Vn):(d.sentClientRenderFunction=!0,f(l,xn)),v===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return f(l,v),f(l,ta),(S||R||B)&&(f(l,po),f(l,Ri(S||""))),(R||B)&&(f(l,po),f(l,Ri(R||""))),B&&(f(l,po),f(l,Ri(B))),p(l,ls)}var Ws=/[<\u2028\u2029]/g;function Ri(l){var d=JSON.stringify(l);return d.replace(Ws,function(v){switch(v){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 us(l,d){var v=so(d);return{bootstrapChunks:v.bootstrapChunks,startInlineScript:v.startInlineScript,placeholderPrefix:v.placeholderPrefix,segmentPrefix:v.segmentPrefix,boundaryPrefix:v.boundaryPrefix,idPrefix:v.idPrefix,nextSuspenseID:v.nextSuspenseID,sentCompleteSegmentFunction:v.sentCompleteSegmentFunction,sentCompleteBoundaryFunction:v.sentCompleteBoundaryFunction,sentClientRenderFunction:v.sentClientRenderFunction,generateStaticMarkup:l}}function na(){return{insertionMode:Qn,selectedValue:null}}function ti(l,d,v,S){return v.generateStaticMarkup?(l.push(En(d)),!1):di(l,d,v,S)}function go(l,d,v,S){if(!d.generateStaticMarkup)return hi(l,d,v,S)}function zs(l,d){return d.generateStaticMarkup?!0:cr(l)}function _u(l,d,v,S,R){return d.generateStaticMarkup?!0:b(l,d,v,S,R)}function cs(l,d){return d.generateStaticMarkup?!0:E(l)}function vo(l,d){return d.generateStaticMarkup?!0:F(l)}var fn=Object.assign,Rl=Symbol.for("react.element"),fs=Symbol.for("react.portal"),Ma=Symbol.for("react.fragment"),J=Symbol.for("react.strict_mode"),fe=Symbol.for("react.profiler"),Te=Symbol.for("react.provider"),Oe=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),ue=Symbol.for("react.suspense"),le=Symbol.for("react.suspense_list"),Ae=Symbol.for("react.memo"),Be=Symbol.for("react.lazy"),ut=Symbol.for("react.scope"),ft=Symbol.for("react.debug_trace_mode"),ot=Symbol.for("react.legacy_hidden"),Mt=Symbol.for("react.default_value"),xt=Symbol.iterator,Vt="@@iterator";function Gn(l){if(l===null||typeof l!="object")return null;var d=xt&&l[xt]||l[Vt];return typeof d=="function"?d:null}function tr(l,d,v){var S=l.displayName;if(S)return S;var R=d.displayName||d.name||"";return R!==""?v+"("+R+")":v}function Ln(l){return l.displayName||"Context"}function zt(l){if(l==null)return null;if(typeof l.tag=="number"&&i("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case Ma:return"Fragment";case fs:return"Portal";case fe:return"Profiler";case J:return"StrictMode";case ue:return"Suspense";case le:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case Oe:var d=l;return Ln(d)+".Consumer";case Te:var v=l;return Ln(v._context)+".Provider";case K:return tr(l,l.render,"ForwardRef");case Ae:var S=l.displayName||null;return S!==null?S:zt(l.type)||"Memo";case Be:{var R=l,B=R._payload,Y=R._init;try{return zt(Y(B))}catch{return null}}}return null}var Nr=0,Ot,Du,gn,Ao,Pu,Ru,Iu;function ds(){}ds.__reactDisabledLog=!0;function Mo(){{if(Nr===0){Ot=console.log,Du=console.info,gn=console.warn,Ao=console.error,Pu=console.group,Ru=console.groupCollapsed,Iu=console.groupEnd;var l={configurable:!0,enumerable:!0,value:ds,writable:!0};Object.defineProperties(console,{info:l,log:l,warn:l,error:l,group:l,groupCollapsed:l,groupEnd:l})}Nr++}}function Ys(){{if(Nr--,Nr===0){var l={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:fn({},l,{value:Ot}),info:fn({},l,{value:Du}),warn:fn({},l,{value:gn}),error:fn({},l,{value:Ao}),group:fn({},l,{value:Pu}),groupCollapsed:fn({},l,{value:Ru}),groupEnd:fn({},l,{value:Iu})})}Nr<0&&i("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Gs=n.ReactCurrentDispatcher,La;function hs(l,d,v){{if(La===void 0)try{throw Error()}catch(R){var S=R.stack.trim().match(/\n( *(at )?)/);La=S&&S[1]||""}return`
|
|
70
|
-
`+La+l}}var Il=!1,Lo;{var Al=typeof WeakMap=="function"?WeakMap:Map;Lo=new Al}function Gi(l,d){if(!l||Il)return"";{var v=Lo.get(l);if(v!==void 0)return v}var S;Il=!0;var R=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var B;B=Gs.current,Gs.current=null,Mo();try{if(d){var Y=function(){throw Error()};if(Object.defineProperty(Y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Y,[])}catch(rr){S=rr}Reflect.construct(l,[],Y)}else{try{Y.call()}catch(rr){S=rr}l.call(Y.prototype)}}else{try{throw Error()}catch(rr){S=rr}l()}}catch(rr){if(rr&&S&&typeof rr.stack=="string"){for(var ie=rr.stack.split(`
|
|
71
|
-
`),we=S.stack.split(`
|
|
72
|
-
`),Ve=ie.length-1,Xe=we.length-1;Ve>=1&&Xe>=0&&ie[Ve]!==we[Xe];)Xe--;for(;Ve>=1&&Xe>=0;Ve--,Xe--)if(ie[Ve]!==we[Xe]){if(Ve!==1||Xe!==1)do if(Ve--,Xe--,Xe<0||ie[Ve]!==we[Xe]){var it=`
|
|
73
|
-
`+ie[Ve].replace(" at new "," at ");return l.displayName&&it.includes("<anonymous>")&&(it=it.replace("<anonymous>",l.displayName)),typeof l=="function"&&Lo.set(l,it),it}while(Ve>=1&&Xe>=0);break}}}finally{Il=!1,Gs.current=B,Ys(),Error.prepareStackTrace=R}var St=l?l.displayName||l.name:"",tn=St?hs(St):"";return typeof l=="function"&&Lo.set(l,tn),tn}function Fo(l,d,v){return Gi(l,!0)}function ra(l,d,v){return Gi(l,!1)}function Af(l){var d=l.prototype;return!!(d&&d.isReactComponent)}function qs(l,d,v){if(l==null)return"";if(typeof l=="function")return Gi(l,Af(l));if(typeof l=="string")return hs(l);switch(l){case ue:return hs("Suspense");case le:return hs("SuspenseList")}if(typeof l=="object")switch(l.$$typeof){case K:return ra(l.render);case Ae:return qs(l.type,d,v);case Be:{var S=l,R=S._payload,B=S._init;try{return qs(B(R),d,v)}catch{}}}return""}var Pc={},ps=n.ReactDebugCurrentFrame;function Fa(l){if(l){var d=l._owner,v=qs(l.type,l._source,d?d.type:null);ps.setExtraStackFrame(v)}else ps.setExtraStackFrame(null)}function gs(l,d,v,S,R){{var B=Function.call.bind(Z);for(var Y in l)if(B(l,Y)){var ie=void 0;try{if(typeof l[Y]!="function"){var we=Error((S||"React class")+": "+v+" type `"+Y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof l[Y]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw we.name="Invariant Violation",we}ie=l[Y](d,Y,S,v,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ve){ie=Ve}ie&&!(ie instanceof Error)&&(Fa(R),i("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",S||"React class",v,Y,typeof ie),Fa(null)),ie instanceof Error&&!(ie.message in Pc)&&(Pc[ie.message]=!0,Fa(R),i("Failed %s type: %s",v,ie.message),Fa(null))}}}var Ml;Ml={};var vs={};Object.freeze(vs);function Xs(l,d){{var v=l.contextTypes;if(!v)return vs;var S={};for(var R in v)S[R]=d[R];{var B=zt(l)||"Unknown";gs(v,S,"context",B)}return S}}function Rc(l,d,v,S){{if(typeof l.getChildContext!="function"){{var R=zt(d)||"Unknown";Ml[R]||(Ml[R]=!0,i("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",R,R))}return v}var B=l.getChildContext();for(var Y in B)if(!(Y in S))throw new Error((zt(d)||"Unknown")+'.getChildContext(): key "'+Y+'" is not defined in childContextTypes.');{var ie=zt(d)||"Unknown";gs(S,B,"child context",ie)}return fn({},v,B)}}var Sn;Sn={};var qn=null,ia=null;function Au(l){l.context._currentValue2=l.parentValue}function oa(l){l.context._currentValue2=l.value}function Ll(l,d){if(l!==d){Au(l);var v=l.parent,S=d.parent;if(v===null){if(S!==null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.")}else{if(S===null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.");Ll(v,S)}oa(d)}}function mo(l){Au(l);var d=l.parent;d!==null&&mo(d)}function aa(l){var d=l.parent;d!==null&&aa(d),oa(l)}function ms(l,d){Au(l);var v=l.parent;if(v===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");v.depth===d.depth?Ll(v,d):ms(v,d)}function yo(l,d){var v=d.parent;if(v===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");l.depth===v.depth?Ll(l,v):yo(l,v),oa(d)}function No(l){var d=ia,v=l;d!==v&&(d===null?aa(v):v===null?mo(d):d.depth===v.depth?Ll(d,v):d.depth>v.depth?ms(d,v):yo(d,v),ia=v)}function ys(l,d){var v;v=l._currentValue2,l._currentValue2=d,l._currentRenderer2!==void 0&&l._currentRenderer2!==null&&l._currentRenderer2!==Sn&&i("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),l._currentRenderer2=Sn;var S=ia,R={parent:S,depth:S===null?0:S.depth+1,context:l,parentValue:v,value:d};return ia=R,R}function Ks(l){var d=ia;if(d===null)throw new Error("Tried to pop a Context at the root of the app. This is a bug in React.");d.context!==l&&i("The parent context is not the expected context. This is probably a bug in React.");{var v=d.parentValue;v===Mt?d.context._currentValue2=d.context._defaultValue:d.context._currentValue2=v,l._currentRenderer2!==void 0&&l._currentRenderer2!==null&&l._currentRenderer2!==Sn&&i("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),l._currentRenderer2=Sn}return ia=d.parent}function Na(){return ia}function sa(l){var d=l._currentValue2;return d}function Mu(l){return l._reactInternals}function Mf(l,d){l._reactInternals=d}var Ic={},bs={},la,ja,Zs,z,jo,Bo,Sr,$t,Fl;{la=new Set,ja=new Set,Zs=new Set,Sr=new Set,z=new Set,$t=new Set,Fl=new Set;var Js=new Set;Bo=function(l,d){if(!(l===null||typeof l=="function")){var v=d+"_"+l;Js.has(v)||(Js.add(v),i("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",d,l))}},jo=function(l,d){if(d===void 0){var v=zt(l)||"Component";z.has(v)||(z.add(v),i("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",v))}}}function Nl(l,d){{var v=l.constructor,S=v&&zt(v)||"ReactClass",R=S+"."+d;if(Ic[R])return;i(`%s(...): Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.
|
|
74
|
-
|
|
75
|
-
Please check the code for the %s component.`,d,d,S),Ic[R]=!0}}var bo={isMounted:function(l){return!1},enqueueSetState:function(l,d,v){var S=Mu(l);S.queue===null?Nl(l,"setState"):(S.queue.push(d),v!=null&&Bo(v,"setState"))},enqueueReplaceState:function(l,d,v){var S=Mu(l);S.replace=!0,S.queue=[d],v!=null&&Bo(v,"setState")},enqueueForceUpdate:function(l,d){var v=Mu(l);v.queue===null?Nl(l,"forceUpdate"):d!=null&&Bo(d,"setState")}};function Lu(l,d,v,S,R){var B=v(R,S);jo(d,B);var Y=B==null?S:fn({},S,B);return Y}function Ac(l,d,v){var S=vs,R=l.contextType;if("contextType"in l){var B=R===null||R!==void 0&&R.$$typeof===Oe&&R._context===void 0;if(!B&&!Fl.has(l)){Fl.add(l);var Y="";R===void 0?Y=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof R!="object"?Y=" However, it is set to a "+typeof R+".":R.$$typeof===Te?Y=" Did you accidentally pass the Context.Provider instead?":R._context!==void 0?Y=" Did you accidentally pass the Context.Consumer instead?":Y=" However, it is set to an object with keys {"+Object.keys(R).join(", ")+"}.",i("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",zt(l)||"Component",Y)}}typeof R=="object"&&R!==null?S=sa(R):S=v;var ie=new l(d,S);{if(typeof l.getDerivedStateFromProps=="function"&&(ie.state===null||ie.state===void 0)){var we=zt(l)||"Component";la.has(we)||(la.add(we),i("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",we,ie.state===null?"null":"undefined",we))}if(typeof l.getDerivedStateFromProps=="function"||typeof ie.getSnapshotBeforeUpdate=="function"){var Ve=null,Xe=null,it=null;if(typeof ie.componentWillMount=="function"&&ie.componentWillMount.__suppressDeprecationWarning!==!0?Ve="componentWillMount":typeof ie.UNSAFE_componentWillMount=="function"&&(Ve="UNSAFE_componentWillMount"),typeof ie.componentWillReceiveProps=="function"&&ie.componentWillReceiveProps.__suppressDeprecationWarning!==!0?Xe="componentWillReceiveProps":typeof ie.UNSAFE_componentWillReceiveProps=="function"&&(Xe="UNSAFE_componentWillReceiveProps"),typeof ie.componentWillUpdate=="function"&&ie.componentWillUpdate.__suppressDeprecationWarning!==!0?it="componentWillUpdate":typeof ie.UNSAFE_componentWillUpdate=="function"&&(it="UNSAFE_componentWillUpdate"),Ve!==null||Xe!==null||it!==null){var St=zt(l)||"Component",tn=typeof l.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Zs.has(St)||(Zs.add(St),i(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
76
|
-
|
|
77
|
-
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
78
|
-
|
|
79
|
-
The above lifecycles should be removed. Learn more about this warning here:
|
|
80
|
-
https://reactjs.org/link/unsafe-component-lifecycles`,St,tn,Ve!==null?`
|
|
81
|
-
`+Ve:"",Xe!==null?`
|
|
82
|
-
`+Xe:"",it!==null?`
|
|
83
|
-
`+it:""))}}}return ie}function Mc(l,d,v){{var S=zt(d)||"Component",R=l.render;R||(d.prototype&&typeof d.prototype.render=="function"?i("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",S):i("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",S)),l.getInitialState&&!l.getInitialState.isReactClassApproved&&!l.state&&i("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",S),l.getDefaultProps&&!l.getDefaultProps.isReactClassApproved&&i("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",S),l.propTypes&&i("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",S),l.contextType&&i("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",S),l.contextTypes&&i("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",S),d.contextType&&d.contextTypes&&!$t.has(d)&&($t.add(d),i("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",S)),typeof l.componentShouldUpdate=="function"&&i("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",S),d.prototype&&d.prototype.isPureReactComponent&&typeof l.shouldComponentUpdate<"u"&&i("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",zt(d)||"A pure component"),typeof l.componentDidUnmount=="function"&&i("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",S),typeof l.componentDidReceiveProps=="function"&&i("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",S),typeof l.componentWillRecieveProps=="function"&&i("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",S),typeof l.UNSAFE_componentWillRecieveProps=="function"&&i("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",S);var B=l.props!==v;l.props!==void 0&&B&&i("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",S,S),l.defaultProps&&i("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",S,S),typeof l.getSnapshotBeforeUpdate=="function"&&typeof l.componentDidUpdate!="function"&&!ja.has(d)&&(ja.add(d),i("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",zt(d))),typeof l.getDerivedStateFromProps=="function"&&i("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",S),typeof l.getDerivedStateFromError=="function"&&i("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",S),typeof d.getSnapshotBeforeUpdate=="function"&&i("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",S);var Y=l.state;Y&&(typeof Y!="object"||Xr(Y))&&i("%s.state: must be set to an object or null",S),typeof l.getChildContext=="function"&&typeof d.childContextTypes!="object"&&i("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",S)}}function Lc(l,d){var v=d.state;if(typeof d.componentWillMount=="function"){if(d.componentWillMount.__suppressDeprecationWarning!==!0){var S=zt(l)||"Unknown";bs[S]||(r(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
84
|
-
|
|
85
|
-
* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.
|
|
86
|
-
|
|
87
|
-
Please update the following components: %s`,S),bs[S]=!0)}d.componentWillMount()}typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),v!==d.state&&(i("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",zt(l)||"Component"),bo.enqueueReplaceState(d,d.state,null))}function Lf(l,d,v,S){if(l.queue!==null&&l.queue.length>0){var R=l.queue,B=l.replace;if(l.queue=null,l.replace=!1,B&&R.length===1)d.state=R[0];else{for(var Y=B?R[0]:d.state,ie=!0,we=B?1:0;we<R.length;we++){var Ve=R[we],Xe=typeof Ve=="function"?Ve.call(d,Y,v,S):Ve;Xe!=null&&(ie?(ie=!1,Y=fn({},Y,Xe)):fn(Y,Xe))}d.state=Y}}else l.queue=null}function wo(l,d,v,S){Mc(l,d,v);var R=l.state!==void 0?l.state:null;l.updater=bo,l.props=v,l.state=R;var B={queue:[],replace:!1};Mf(l,B);var Y=d.contextType;if(typeof Y=="object"&&Y!==null?l.context=sa(Y):l.context=S,l.state===v){var ie=zt(d)||"Component";Sr.has(ie)||(Sr.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 we=d.getDerivedStateFromProps;typeof we=="function"&&(l.state=Lu(l,d,we,R,v)),typeof d.getDerivedStateFromProps!="function"&&typeof l.getSnapshotBeforeUpdate!="function"&&(typeof l.UNSAFE_componentWillMount=="function"||typeof l.componentWillMount=="function")&&(Lc(d,l),Lf(B,l,v,S))}var Ff={id:1,overflow:""};function Nf(l){var d=l.overflow,v=l.id,S=v&~jf(v);return S.toString(32)+d}function Fu(l,d,v){var S=l.id,R=l.overflow,B=Qs(S)-1,Y=S&~(1<<B),ie=v+1,we=Qs(d)+B;if(we>30){var Ve=B-B%5,Xe=(1<<Ve)-1,it=(Y&Xe).toString(32),St=Y>>Ve,tn=B-Ve,rr=Qs(d)+tn,Co=ie<<tn,va=Co|St,Ji=it+R;return{id:1<<rr|va,overflow:Ji}}else{var Ds=ie<<B,Qc=Ds|Y,Ka=R;return{id:1<<we|Qc,overflow:Ka}}}function Qs(l){return 32-$o(l)}function jf(l){return 1<<Qs(l)-1}var $o=Math.clz32?Math.clz32:Bf,Nu=Math.log,jl=Math.LN2;function Bf(l){var d=l>>>0;return d===0?32:31-(Nu(d)/jl|0)|0}function $f(l,d){return l===d&&(l!==0||1/l===1/d)||l!==l&&d!==d}var Vf=typeof Object.is=="function"?Object.is:$f,jr=null,ju=null,Bl=null,Xt=null,wi=!1,ws=!1,Ba=0,Jt=null,ua=0,el=25,ni=!1,xi;function xo(){if(jr===null)throw new Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
88
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
89
|
-
2. You might be breaking the Rules of Hooks
|
|
90
|
-
3. You might have more than one copy of React in the same app
|
|
91
|
-
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`);return ni&&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"),jr}function Bu(l,d){if(d===null)return i("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",xi),!1;l.length!==d.length&&i(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
92
|
-
|
|
93
|
-
Previous: %s
|
|
94
|
-
Incoming: %s`,xi,"["+l.join(", ")+"]","["+d.join(", ")+"]");for(var v=0;v<d.length&&v<l.length;v++)if(!Vf(l[v],d[v]))return!1;return!0}function Br(){if(ua>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function qi(){return Xt===null?Bl===null?(wi=!1,Bl=Xt=Br()):(wi=!0,Xt=Bl):Xt.next===null?(wi=!1,Xt=Xt.next=Br()):(wi=!0,Xt=Xt.next),Xt}function $a(l,d){jr=d,ju=l,ni=!1,Ba=0}function Fc(l,d,v,S){for(;ws;)ws=!1,Ba=0,ua+=1,Xt=null,v=l(d,S);return Si(),v}function $u(){var l=Ba!==0;return l}function Si(){ni=!1,jr=null,ju=null,ws=!1,Bl=null,ua=0,Jt=null,Xt=null}function Vu(l){return ni&&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()."),sa(l)}function Va(l){return xi="useContext",xo(),sa(l)}function $r(l,d){return typeof d=="function"?d(l):d}function Hu(l){return xi="useState",Uu($r,l)}function Uu(l,d,v){if(l!==$r&&(xi="useReducer"),jr=xo(),Xt=qi(),wi){var S=Xt.queue,R=S.dispatch;if(Jt!==null){var B=Jt.get(S);if(B!==void 0){Jt.delete(S);var Y=Xt.memoizedState,ie=B;do{var we=ie.action;ni=!0,Y=l(Y,we),ni=!1,ie=ie.next}while(ie!==null);return Xt.memoizedState=Y,[Y,R]}}return[Xt.memoizedState,R]}else{ni=!0;var Ve;l===$r?Ve=typeof d=="function"?d():d:Ve=v!==void 0?v(d):d,ni=!1,Xt.memoizedState=Ve;var Xe=Xt.queue={last:null,dispatch:null},it=Xe.dispatch=zu.bind(null,jr,Xe);return[Xt.memoizedState,it]}}function Wu(l,d){jr=xo(),Xt=qi();var v=d===void 0?null:d;if(Xt!==null){var S=Xt.memoizedState;if(S!==null&&v!==null){var R=S[1];if(Bu(v,R))return S[0]}}ni=!0;var B=l();return ni=!1,Xt.memoizedState=[B,v],B}function Ha(l){jr=xo(),Xt=qi();var d=Xt.memoizedState;if(d===null){var v={current:l};return Object.seal(v),Xt.memoizedState=v,v}else return d}function ca(l,d){xi="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 zu(l,d,v){if(ua>=el)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(l===jr){ws=!0;var S={action:v,next:null};Jt===null&&(Jt=new Map);var R=Jt.get(d);if(R===void 0)Jt.set(d,S);else{for(var B=R;B.next!==null;)B=B.next;B.next=S}}}function Nc(l,d){return Wu(function(){return l},d)}function $l(l,d,v){return xo(),d(l._source)}function Hf(l,d,v){if(v===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return v()}function jc(l){return xo(),l}function fr(){throw new Error("startTransition cannot be called during server rendering.")}function Yu(){return xo(),[!1,fr]}function Bc(){var l=ju,d=Nf(l.treeContext),v=xs;if(v===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var S=Ba++;return wn(v,d,S)}function Ti(){}var Vl={readContext:Vu,useContext:Va,useMemo:Wu,useReducer:Uu,useRef:Ha,useState:Hu,useInsertionEffect:Ti,useLayoutEffect:ca,useCallback:Nc,useImperativeHandle:Ti,useEffect:Ti,useDebugValue:Ti,useDeferredValue:jc,useTransition:Yu,useId:Bc,useMutableSource:$l,useSyncExternalStore:Hf},xs=null;function fa(l){xs=l}function tl(l){try{var d="",v=l;do{switch(v.tag){case 0:d+=hs(v.type,null,null);break;case 1:d+=ra(v.type,null,null);break;case 2:d+=Fo(v.type,null,null);break}v=v.parent}while(v);return d}catch(S){return`
|
|
95
|
-
Error generating stack: `+S.message+`
|
|
96
|
-
`+S.stack}}var nr=n.ReactCurrentDispatcher,Ua=n.ReactDebugCurrentFrame,Hl=0,Ss=1,Ul=2,Ts=3,Wl=4,So=0,zl=1,Wa=2,$c=12800;function nl(l){return console.error(l),null}function Cs(){}function Es(l,d,v,S,R,B,Y,ie,we){var Ve=[],Xe=new Set,it={destination:null,responseState:d,progressiveChunkSize:S===void 0?$c:S,status:So,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:Xe,pingedTasks:Ve,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:R===void 0?nl:R,onAllReady:Cs,onShellReady:Y===void 0?Cs:Y,onShellError:Cs,onFatalError:Cs},St=Yl(it,0,null,v,!1,!1);St.parentFlushed=!0;var tn=za(it,l,null,St,Xe,vs,qn,Ff);return Ve.push(tn),it}function Gu(l,d){var v=l.pingedTasks;v.push(d),v.length===1&&s(function(){return eu(l)})}function Vc(l,d){return{id:_i,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:d,errorDigest:null}}function za(l,d,v,S,R,B,Y,ie){l.allPendingTasks++,v===null?l.pendingRootTasks++:v.pendingTasks++;var we={node:d,ping:function(){return Gu(l,we)},blockedBoundary:v,blockedSegment:S,abortSet:R,legacyContext:B,context:Y,treeContext:ie};return we.componentStack=null,R.add(we),we}function Yl(l,d,v,S,R,B){return{status:Hl,id:-1,index:d,parentFlushed:!1,chunks:[],children:[],formatContext:S,boundary:v,lastPushedText:R,textEmbedded:B}}var Vo=null;function Gl(){return Vo===null||Vo.componentStack===null?"":tl(Vo.componentStack)}function Ho(l,d){l.componentStack={tag:0,parent:l.componentStack,type:d}}function rl(l,d){l.componentStack={tag:1,parent:l.componentStack,type:d}}function Xi(l,d){l.componentStack={tag:2,parent:l.componentStack,type:d}}function Ki(l){l.componentStack===null?i("Unexpectedly popped too many stack frames. This is a bug in React."):l.componentStack=l.componentStack.parent}var To=null;function il(l,d){{var v;typeof d=="string"?v=d:d&&typeof d.message=="string"?v=d.message:v=String(d);var S=To||Gl();To=null,l.errorMessage=v,l.errorComponentStack=S}}function da(l,d){var v=l.onError(d);if(v!=null&&typeof v!="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 v+'" instead');return v}function Zi(l,d){var v=l.onShellError;v(d);var S=l.onFatalError;S(d),l.destination!==null?(l.status=Wa,D(l.destination,d)):(l.status=zl,l.fatalError=d)}function ks(l,d,v){Ho(d,"Suspense");var S=d.blockedBoundary,R=d.blockedSegment,B=v.fallback,Y=v.children,ie=new Set,we=Vc(l,ie),Ve=R.chunks.length,Xe=Yl(l,Ve,we,R.formatContext,!1,!1);R.children.push(Xe),R.lastPushedText=!1;var it=Yl(l,0,null,R.formatContext,!1,!1);it.parentFlushed=!0,d.blockedBoundary=we,d.blockedSegment=it;try{if(dr(l,d,Y),go(it.chunks,l.responseState,it.lastPushedText,it.textEmbedded),it.status=Ss,Ci(we,it),we.pendingTasks===0){Ki(d);return}}catch(tn){it.status=Wl,we.forceClientRender=!0,we.errorDigest=da(l,tn),il(we,tn)}finally{d.blockedBoundary=S,d.blockedSegment=R}var St=za(l,B,S,Xe,ie,d.legacyContext,d.context,d.treeContext);St.componentStack=d.componentStack,l.pingedTasks.push(St),Ki(d)}function ql(l,d,v,S){Ho(d,v);var R=d.blockedSegment,B=mi(R.chunks,v,S,l.responseState,R.formatContext);R.lastPushedText=!1;var Y=R.formatContext;R.formatContext=Ui(Y,v,S),dr(l,d,B),R.formatContext=Y,on(R.chunks,v),R.lastPushedText=!1,Ki(d)}function ol(l){return l.prototype&&l.prototype.isReactComponent}function Os(l,d,v,S,R){var B={};$a(d,B);var Y=v(S,R);return Fc(v,S,Y,R)}function Hc(l,d,v,S,R){var B=v.render();v.props!==R&&(Bt||i("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",zt(S)||"a component"),Bt=!0);{var Y=S.childContextTypes;if(Y!=null){var ie=d.legacyContext,we=Rc(v,S,ie,Y);d.legacyContext=we,Hr(l,d,B),d.legacyContext=ie;return}}Hr(l,d,B)}function qu(l,d,v,S){Xi(d,v);var R=Xs(v,d.legacyContext),B=Ac(v,S,R);wo(B,v,S,R),Hc(l,d,B,v,S),Ki(d)}var Xu={},Ya={},Ku={},Xl={},Bt=!1,al={},Zu=!1,Ga=!1,Kl=!1;function Uc(l,d,v,S){var R;if(R=Xs(v,d.legacyContext),rl(d,v),v.prototype&&typeof v.prototype.render=="function"){var B=zt(v)||"Unknown";Xu[B]||(i("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",B,B),Xu[B]=!0)}var Y=Os(l,d,v,S,R),ie=$u();if(typeof Y=="object"&&Y!==null&&typeof Y.render=="function"&&Y.$$typeof===void 0){var we=zt(v)||"Unknown";Ya[we]||(i("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",we,we,we),Ya[we]=!0)}if(typeof Y=="object"&&Y!==null&&typeof Y.render=="function"&&Y.$$typeof===void 0){{var Ve=zt(v)||"Unknown";Ya[Ve]||(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.",Ve,Ve,Ve),Ya[Ve]=!0)}wo(Y,v,S,R),Hc(l,d,Y,v,S)}else if(Wc(v),ie){var Xe=d.treeContext,it=1,St=0;d.treeContext=Fu(Xe,it,St);try{Hr(l,d,Y)}finally{d.treeContext=Xe}}else Hr(l,d,Y);Ki(d)}function Wc(l){{if(l&&l.childContextTypes&&i("%s(...): childContextTypes cannot be defined on a function component.",l.displayName||l.name||"Component"),l.defaultProps!==void 0){var d=zt(l)||"Unknown";al[d]||(i("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",d),al[d]=!0)}if(typeof l.getDerivedStateFromProps=="function"){var v=zt(l)||"Unknown";Xl[v]||(i("%s: Function components do not support getDerivedStateFromProps.",v),Xl[v]=!0)}if(typeof l.contextType=="object"&&l.contextType!==null){var S=zt(l)||"Unknown";Ku[S]||(i("%s: Function components do not support contextType.",S),Ku[S]=!0)}}}function ri(l,d){if(l&&l.defaultProps){var v=fn({},d),S=l.defaultProps;for(var R in S)v[R]===void 0&&(v[R]=S[R]);return v}return d}function zc(l,d,v,S,R){rl(d,v.render);var B=Os(l,d,v.render,S,R),Y=$u();if(Y){var ie=d.treeContext,we=1,Ve=0;d.treeContext=Fu(ie,we,Ve);try{Hr(l,d,B)}finally{d.treeContext=ie}}else Hr(l,d,B);Ki(d)}function Zl(l,d,v,S,R){var B=v.type,Y=ri(B,S);Vr(l,d,B,Y,R)}function Ju(l,d,v,S){v._context===void 0?v!==v.Consumer&&(Kl||(Kl=!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?"))):v=v._context;var R=S.children;typeof R!="function"&&i("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var B=sa(v),Y=R(B);Hr(l,d,Y)}function Qu(l,d,v,S){var R=v._context,B=S.value,Y=S.children,ie;ie=d.context,d.context=ys(R,B),Hr(l,d,Y),d.context=Ks(R),ie!==d.context&&i("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function Yc(l,d,v,S,R){Ho(d,"Lazy");var B=v._payload,Y=v._init,ie=Y(B),we=ri(ie,S);Vr(l,d,ie,we,R),Ki(d)}function Vr(l,d,v,S,R){if(typeof v=="function")if(ol(v)){qu(l,d,v,S);return}else{Uc(l,d,v,S);return}if(typeof v=="string"){ql(l,d,v,S);return}switch(v){case ot:case ft:case J:case fe:case Ma:{Hr(l,d,S.children);return}case le:{Ho(d,"SuspenseList"),Hr(l,d,S.children),Ki(d);return}case ut:throw new Error("ReactDOMServer does not yet support scope components.");case ue:{ks(l,d,S);return}}if(typeof v=="object"&&v!==null)switch(v.$$typeof){case K:{zc(l,d,v,S,R);return}case Ae:{Zl(l,d,v,S,R);return}case Te:{Qu(l,d,v,S);return}case Oe:{Ju(l,d,v,S);return}case Be:{Yc(l,d,v,S);return}}var B="";throw(v===void 0||typeof v=="object"&&v!==null&&Object.keys(v).length===0)&&(B+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(v==null?v:typeof v)+"."+B))}function ha(l,d){typeof Symbol=="function"&&l[Symbol.toStringTag]==="Generator"&&(Zu||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."),Zu=!0),l.entries===d&&(Ga||i("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Ga=!0)}function Hr(l,d,v){try{return Gc(l,d,v)}catch(S){throw typeof S=="object"&&S!==null&&typeof S.then=="function"||(To=To!==null?To:Gl()),S}}function Gc(l,d,v){if(d.node=v,typeof v=="object"&&v!==null){switch(v.$$typeof){case Rl:{var S=v,R=S.type,B=S.props,Y=S.ref;Vr(l,d,R,B,Y);return}case fs: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 Be:{var ie=v,we=ie._payload,Ve=ie._init,Xe;try{Xe=Ve(we)}catch(Ds){throw typeof Ds=="object"&&Ds!==null&&typeof Ds.then=="function"&&Ho(d,"Lazy"),Ds}Hr(l,d,Xe);return}}if(Xr(v)){qa(l,d,v);return}var it=Gn(v);if(it){ha(v,it);var St=it.call(v);if(St){var tn=St.next();if(!tn.done){var rr=[];do rr.push(tn.value),tn=St.next();while(!tn.done);qa(l,d,rr);return}return}}var Co=Object.prototype.toString.call(v);throw new Error("Objects are not valid as a React child (found: "+(Co==="[object Object]"?"object with keys {"+Object.keys(v).join(", ")+"}":Co)+"). If you meant to render a collection of children, use an array instead.")}if(typeof v=="string"){var va=d.blockedSegment;va.lastPushedText=ti(d.blockedSegment.chunks,v,l.responseState,va.lastPushedText);return}if(typeof v=="number"){var Ji=d.blockedSegment;Ji.lastPushedText=ti(d.blockedSegment.chunks,""+v,l.responseState,Ji.lastPushedText);return}typeof v=="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 qa(l,d,v){for(var S=v.length,R=0;R<S;R++){var B=d.treeContext;d.treeContext=Fu(B,S,R);try{dr(l,d,v[R])}finally{d.treeContext=B}}}function qc(l,d,v){var S=d.blockedSegment,R=S.chunks.length,B=Yl(l,R,null,S.formatContext,S.lastPushedText,!0);S.children.push(B),S.lastPushedText=!1;var Y=za(l,d.node,d.blockedBoundary,B,d.abortSet,d.legacyContext,d.context,d.treeContext);d.componentStack!==null&&(Y.componentStack=d.componentStack.parent);var ie=Y.ping;v.then(ie,ie)}function dr(l,d,v){var S=d.blockedSegment.formatContext,R=d.legacyContext,B=d.context,Y=null;Y=d.componentStack;try{return Hr(l,d,v)}catch(ie){if(Si(),typeof ie=="object"&&ie!==null&&typeof ie.then=="function"){qc(l,d,ie),d.blockedSegment.formatContext=S,d.legacyContext=R,d.context=B,No(B),d.componentStack=Y;return}else throw d.blockedSegment.formatContext=S,d.legacyContext=R,d.context=B,No(B),d.componentStack=Y,ie}}function Xc(l,d,v,S){var R=da(l,S);if(d===null?Zi(l,S):(d.pendingTasks--,d.forceClientRender||(d.forceClientRender=!0,d.errorDigest=R,il(d,S),d.parentFlushed&&l.clientRenderedBoundaries.push(d))),l.allPendingTasks--,l.allPendingTasks===0){var B=l.onAllReady;B()}}function Jl(l){var d=this,v=l.blockedBoundary,S=l.blockedSegment;S.status=Ts,Kc(d,v,S)}function Ql(l,d,v){var S=l.blockedBoundary,R=l.blockedSegment;if(R.status=Ts,S===null)d.allPendingTasks--,d.status!==Wa&&(d.status=Wa,d.destination!==null&&g(d.destination));else{if(S.pendingTasks--,!S.forceClientRender){S.forceClientRender=!0;var B=v===void 0?new Error("The render was aborted by the server without a reason."):v;S.errorDigest=d.onError(B);{var Y="The server did not finish this Suspense boundary: ";B&&typeof B.message=="string"?B=Y+B.message:B=Y+String(B);var ie=Vo;Vo=l;try{il(S,B)}finally{Vo=ie}}S.parentFlushed&&d.clientRenderedBoundaries.push(S)}if(S.fallbackAbortableTasks.forEach(function(Ve){return Ql(Ve,d,v)}),S.fallbackAbortableTasks.clear(),d.allPendingTasks--,d.allPendingTasks===0){var we=d.onAllReady;we()}}}function Ci(l,d){if(d.chunks.length===0&&d.children.length===1&&d.children[0].boundary===null){var v=d.children[0];v.id=d.id,v.parentFlushed=!0,v.status===Ss&&Ci(l,v)}else{var S=l.completedSegments;S.push(d)}}function Kc(l,d,v){if(d===null){if(v.parentFlushed){if(l.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");l.completedRootSegment=v}if(l.pendingRootTasks--,l.pendingRootTasks===0){l.onShellError=Cs;var S=l.onShellReady;S()}}else if(d.pendingTasks--,!d.forceClientRender){if(d.pendingTasks===0)v.parentFlushed&&v.status===Ss&&Ci(d,v),d.parentFlushed&&l.completedBoundaries.push(d),d.fallbackAbortableTasks.forEach(Jl,l),d.fallbackAbortableTasks.clear();else if(v.parentFlushed&&v.status===Ss){Ci(d,v);var R=d.completedSegments;R.length===1&&d.parentFlushed&&l.partialBoundaries.push(d)}}if(l.allPendingTasks--,l.allPendingTasks===0){var B=l.onAllReady;B()}}function pa(l,d){var v=d.blockedSegment;if(v.status===Hl){No(d.context);var S=null;S=Vo,Vo=d;try{Hr(l,d,d.node),go(v.chunks,l.responseState,v.lastPushedText,v.textEmbedded),d.abortSet.delete(d),v.status=Ss,Kc(l,d.blockedBoundary,v)}catch(B){if(Si(),typeof B=="object"&&B!==null&&typeof B.then=="function"){var R=d.ping;B.then(R,R)}else d.abortSet.delete(d),v.status=Wl,Xc(l,d.blockedBoundary,v,B)}finally{Vo=S}}}function eu(l){if(l.status!==Wa){var d=Na(),v=nr.current;nr.current=Vl;var S;S=Ua.getCurrentStack,Ua.getCurrentStack=Gl;var R=xs;fa(l.responseState);try{var B=l.pingedTasks,Y;for(Y=0;Y<B.length;Y++){var ie=B[Y];pa(l,ie)}B.splice(0,Y),l.destination!==null&&tu(l,l.destination)}catch(we){da(l,we),Zi(l,we)}finally{fa(R),nr.current=v,Ua.getCurrentStack=S,v===Vl&&No(d)}}}function ga(l,d,v){switch(v.parentFlushed=!0,v.status){case Hl:{var S=v.id=l.nextSegmentId++;return v.lastPushedText=!1,v.textEmbedded=!1,Qr(d,l.responseState,S)}case Ss:{v.status=Ul;for(var R=!0,B=v.chunks,Y=0,ie=v.children,we=0;we<ie.length;we++){for(var Ve=ie[we];Y<Ve.index;Y++)f(d,B[Y]);R=Xa(l,d,Ve)}for(;Y<B.length-1;Y++)f(d,B[Y]);return Y<B.length&&(R=p(d,B[Y])),R}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function Xa(l,d,v){var S=v.boundary;if(S===null)return ga(l,d,v);if(S.parentFlushed=!0,S.forceClientRender)return _u(d,l.responseState,S.errorDigest,S.errorMessage,S.errorComponentStack),ga(l,d,v),vo(d,l.responseState);if(S.pendingTasks>0){S.rootSegmentID=l.nextSegmentId++,S.completedSegments.length>0&&l.partialBoundaries.push(S);var R=S.id=sr(l.responseState);return h(d,l.responseState,R),ga(l,d,v),_(d,l.responseState)}else{if(S.byteSize>l.progressiveChunkSize)return S.rootSegmentID=l.nextSegmentId++,l.completedBoundaries.push(S),h(d,l.responseState,S.id),ga(l,d,v),_(d,l.responseState);zs(d,l.responseState);var B=S.completedSegments;if(B.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var Y=B[0];return Xa(l,d,Y),cs(d,l.responseState)}}function Uf(l,d,v){return ei(d,l.responseState,v.id,v.errorDigest,v.errorMessage,v.errorComponentStack)}function ec(l,d,v){return ho(d,l.responseState,v.formatContext,v.id),Xa(l,d,v),xr(d,v.formatContext)}function sl(l,d,v){for(var S=v.completedSegments,R=0;R<S.length;R++){var B=S[R];tc(l,d,v,B)}return S.length=0,Mn(d,l.responseState,v.id,v.rootSegmentID)}function ll(l,d,v){for(var S=v.completedSegments,R=0;R<S.length;R++){var B=S[R];if(!tc(l,d,v,B))return R++,S.splice(0,R),!1}return S.splice(0,R),!0}function tc(l,d,v,S){if(S.status===Ul)return!0;var R=S.id;if(R===-1){var B=S.id=v.rootSegmentID;if(B===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return ec(l,d,S)}else return ec(l,d,S),qe(d,l.responseState,R)}function tu(l,d){try{var v=l.completedRootSegment;v!==null&&l.pendingRootTasks===0&&(Xa(l,d,v),l.completedRootSegment=null,qt(d,l.responseState));var S=l.clientRenderedBoundaries,R;for(R=0;R<S.length;R++){var B=S[R];if(!Uf(l,d,B)){l.destination=null,R++,S.splice(0,R);return}}S.splice(0,R);var Y=l.completedBoundaries;for(R=0;R<Y.length;R++){var ie=Y[R];if(!sl(l,d,ie)){l.destination=null,R++,Y.splice(0,R);return}}Y.splice(0,R);var we=l.partialBoundaries;for(R=0;R<we.length;R++){var Ve=we[R];if(!ll(l,d,Ve)){l.destination=null,R++,we.splice(0,R);return}}we.splice(0,R);var Xe=l.completedBoundaries;for(R=0;R<Xe.length;R++){var it=Xe[R];if(!sl(l,d,it)){l.destination=null,R++,Xe.splice(0,R);return}}Xe.splice(0,R)}finally{l.allPendingTasks===0&&l.pingedTasks.length===0&&l.clientRenderedBoundaries.length===0&&l.completedBoundaries.length===0&&(l.abortableTasks.size!==0&&i("There was still abortable task at the root when we closed. This is a bug in React."),g(d))}}function nc(l){s(function(){return eu(l)})}function Zc(l,d){if(l.status===zl){l.status=Wa,D(d,l.fatalError);return}if(l.status!==Wa&&l.destination===null){l.destination=d;try{tu(l,d)}catch(v){da(l,v),Zi(l,v)}}}function Ur(l,d){try{var v=l.abortableTasks;v.forEach(function(S){return Ql(S,l,d)}),v.clear(),l.destination!==null&&tu(l,l.destination)}catch(S){da(l,S),Zi(l,S)}}function Ii(){}function Jc(l,d,v,S){var R=!1,B=null,Y="",ie={push:function(it){return it!==null&&(Y+=it),!0},destroy:function(it){R=!0,B=it}},we=!1;function Ve(){we=!0}var Xe=Es(l,us(v,d?d.identifierPrefix:void 0),na(),1/0,Ii,void 0,Ve);if(nc(Xe),Ur(Xe,S),Zc(Xe,ie),R)throw B;if(!we)throw new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");return Y}function Wf(l,d){return Jc(l,d,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')}function ul(l,d){return Jc(l,d,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')}function _s(){throw new Error("ReactDOMServer.renderToNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToString() instead.")}function m(){throw new Error("ReactDOMServer.renderToStaticNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToStaticMarkup() instead.")}fc.renderToNodeStream=_s,fc.renderToStaticMarkup=ul,fc.renderToStaticNodeStream=m,fc.renderToString=Wf,fc.version=t}()),fc}var Nh={};/**
|
|
97
|
-
* @license React
|
|
98
|
-
* react-dom-server.browser.development.js
|
|
99
|
-
*
|
|
100
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
101
|
-
*
|
|
102
|
-
* This source code is licensed under the MIT license found in the
|
|
103
|
-
* LICENSE file in the root directory of this source tree.
|
|
104
|
-
*/var i1;function C4(){return i1||(i1=1,process.env.NODE_ENV!=="production"&&function(){var e=q,t="18.3.1",n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(m){{for(var l=arguments.length,d=new Array(l>1?l-1:0),v=1;v<l;v++)d[v-1]=arguments[v];o("warn",m,d)}}function i(m){{for(var l=arguments.length,d=new Array(l>1?l-1:0),v=1;v<l;v++)d[v-1]=arguments[v];o("error",m,d)}}function o(m,l,d){{var v=n.ReactDebugCurrentFrame,S=v.getStackAddendum();S!==""&&(l+="%s",d=d.concat([S]));var R=d.map(function(B){return String(B)});R.unshift("Warning: "+l),Function.prototype.apply.call(console[m],console,R)}}function s(m){m()}var u=512,f=null,p=0;function y(m){f=new Uint8Array(u),p=0}function g(m,l){if(l.length!==0){if(l.length>u){p>0&&(m.enqueue(new Uint8Array(f.buffer,0,p)),f=new Uint8Array(u),p=0),m.enqueue(l);return}var d=l,v=f.length-p;v<d.length&&(v===0?m.enqueue(f):(f.set(d.subarray(0,v),p),m.enqueue(f),d=d.subarray(v)),f=new Uint8Array(u),p=0),f.set(d,p),p+=d.length}}function x(m,l){return g(m,l),!0}function C(m){f&&p>0&&(m.enqueue(new Uint8Array(f.buffer,0,p)),f=null,p=0)}function D(m){m.close()}var A=new TextEncoder;function M(m){return A.encode(m)}function I(m){return A.encode(m)}function H(m,l){typeof m.error=="function"?m.error(l):m.close()}function U(m){{var l=typeof Symbol=="function"&&Symbol.toStringTag,d=l&&m[Symbol.toStringTag]||m.constructor.name||"Object";return d}}function Q(m){try{return Z(m),!1}catch{return!0}}function Z(m){return""+m}function ce(m,l){if(Q(m))return i("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",l,U(m)),Z(m)}function T(m,l){if(Q(m))return i("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",l,U(m)),Z(m)}function se(m){if(Q(m))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.",U(m)),Z(m)}var re=Object.prototype.hasOwnProperty,Pe=0,He=1,Ue=2,Qe=3,Ke=4,he=5,me=6,Le=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",Ge=Le+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",tt=new RegExp("^["+Le+"]["+Ge+"]*$"),xe={},Ce={};function $e(m){return re.call(Ce,m)?!0:re.call(xe,m)?!1:tt.test(m)?(Ce[m]=!0,!0):(xe[m]=!0,i("Invalid attribute name: `%s`",m),!1)}function je(m,l,d,v){if(d!==null&&d.type===Pe)return!1;switch(typeof l){case"function":case"symbol":return!0;case"boolean":{if(d!==null)return!d.acceptsBooleans;var S=m.toLowerCase().slice(0,5);return S!=="data-"&&S!=="aria-"}default:return!1}}function ke(m){return Fe.hasOwnProperty(m)?Fe[m]:null}function De(m,l,d,v,S,R,B){this.acceptsBooleans=l===Ue||l===Qe||l===Ke,this.attributeName=v,this.attributeNamespace=S,this.mustUseProperty=d,this.propertyName=m,this.type=l,this.sanitizeURL=R,this.removeEmptyString=B}var Fe={},rt=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];rt.forEach(function(m){Fe[m]=new De(m,Pe,!1,m,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(m){var l=m[0],d=m[1];Fe[l]=new De(l,He,!1,d,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(m){Fe[m]=new De(m,Ue,!1,m.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(m){Fe[m]=new De(m,Ue,!1,m,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(m){Fe[m]=new De(m,Qe,!1,m.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(m){Fe[m]=new De(m,Qe,!0,m,null,!1,!1)}),["capture","download"].forEach(function(m){Fe[m]=new De(m,Ke,!1,m,null,!1,!1)}),["cols","rows","size","span"].forEach(function(m){Fe[m]=new De(m,me,!1,m,null,!1,!1)}),["rowSpan","start"].forEach(function(m){Fe[m]=new De(m,he,!1,m.toLowerCase(),null,!1,!1)});var at=/[\-\:]([a-z])/g,ht=function(m){return m[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(m){var l=m.replace(at,ht);Fe[l]=new De(l,He,!1,m,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(m){var l=m.replace(at,ht);Fe[l]=new De(l,He,!1,m,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(m){var l=m.replace(at,ht);Fe[l]=new De(l,He,!1,m,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(m){Fe[m]=new De(m,He,!1,m.toLowerCase(),null,!1,!1)});var lt="xlinkHref";Fe[lt]=new De("xlinkHref",He,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(m){Fe[m]=new De(m,He,!1,m.toLowerCase(),null,!0,!0)});var mt={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function et(m,l){return m+l.charAt(0).toUpperCase()+l.substring(1)}var At=["Webkit","ms","Moz","O"];Object.keys(mt).forEach(function(m){At.forEach(function(l){mt[et(l,m)]=mt[m]})});var Lt={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Hn(m,l){Lt[l.type]||l.onChange||l.onInput||l.readOnly||l.disabled||l.value==null||i("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),l.onChange||l.readOnly||l.disabled||l.checked==null||i("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function gr(m,l){if(m.indexOf("-")===-1)return typeof l.is=="string";switch(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!1;default:return!0}}var Un={"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},Cn={},ji=new RegExp("^(aria)-["+Ge+"]*$"),Er=new RegExp("^(aria)[A-Z]["+Ge+"]*$");function Zn(m,l){{if(re.call(Cn,l)&&Cn[l])return!0;if(Er.test(l)){var d="aria-"+l.slice(4).toLowerCase(),v=Un.hasOwnProperty(d)?d:null;if(v==null)return i("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",l),Cn[l]=!0,!0;if(l!==v)return i("Invalid ARIA attribute `%s`. Did you mean `%s`?",l,v),Cn[l]=!0,!0}if(ji.test(l)){var S=l.toLowerCase(),R=Un.hasOwnProperty(S)?S:null;if(R==null)return Cn[l]=!0,!1;if(l!==R)return i("Unknown ARIA attribute `%s`. Did you mean `%s`?",l,R),Cn[l]=!0,!0}}return!0}function sn(m,l){{var d=[];for(var v in l){var S=Zn(m,v);S||d.push(v)}var R=d.map(function(B){return"`"+B+"`"}).join(", ");d.length===1?i("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",R,m):d.length>1&&i("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",R,m)}}function dn(m,l){gr(m,l)||sn(m,l)}var hn=!1;function dt(m,l){{if(m!=="input"&&m!=="textarea"&&m!=="select")return;l!=null&&l.value===null&&!hn&&(hn=!0,m==="select"&&l.multiple?i("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",m):i("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",m))}}var _n={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"},ai=function(){};{var an={},Bi=/^on./,$i=/^on[^A-Z]/,Vi=new RegExp("^(aria)-["+Ge+"]*$"),kr=new RegExp("^(aria)[A-Z]["+Ge+"]*$");ai=function(m,l,d,v){if(re.call(an,l)&&an[l])return!0;var S=l.toLowerCase();if(S==="onfocusin"||S==="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."),an[l]=!0,!0;if(v!=null){var R=v.registrationNameDependencies,B=v.possibleRegistrationNames;if(R.hasOwnProperty(l))return!0;var Y=B.hasOwnProperty(S)?B[S]:null;if(Y!=null)return i("Invalid event handler property `%s`. Did you mean `%s`?",l,Y),an[l]=!0,!0;if(Bi.test(l))return i("Unknown event handler property `%s`. It will be ignored.",l),an[l]=!0,!0}else if(Bi.test(l))return $i.test(l)&&i("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",l),an[l]=!0,!0;if(Vi.test(l)||kr.test(l))return!0;if(S==="innerhtml")return i("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),an[l]=!0,!0;if(S==="aria")return i("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),an[l]=!0,!0;if(S==="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),an[l]=!0,!0;if(typeof d=="number"&&isNaN(d))return i("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",l),an[l]=!0,!0;var ie=ke(l),we=ie!==null&&ie.type===Pe;if(_n.hasOwnProperty(S)){var Ve=_n[S];if(Ve!==l)return i("Invalid DOM property `%s`. Did you mean `%s`?",l,Ve),an[l]=!0,!0}else if(!we&&l!==S)return i("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",l,S),an[l]=!0,!0;return typeof d=="boolean"&&je(l,d,ie)?(d?i('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',d,l,l,d,l):i('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',d,l,l,d,l,l,l),an[l]=!0,!0):we?!0:je(l,d,ie)?(an[l]=!0,!1):((d==="false"||d==="true")&&ie!==null&&ie.type===Qe&&(i("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",d,l,d==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',l,d),an[l]=!0),!0)}}var jn=function(m,l,d){{var v=[];for(var S in l){var R=ai(m,S,l[S],d);R||v.push(S)}var B=v.map(function(Y){return"`"+Y+"`"}).join(", ");v.length===1?i("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",B,m):v.length>1&&i("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",B,m)}};function Or(m,l,d){gr(m,l)||jn(m,l,d)}var vr=function(){};{var Yr=/^(?:webkit|moz|o)[A-Z]/,Gr=/^-ms-/,Po=/-(.)/g,Wn=/;\s*$/,qr={},Jn={},Wt=!1,si=!1,Hi=function(m){return m.replace(Po,function(l,d){return d.toUpperCase()})},Dn=function(m){qr.hasOwnProperty(m)&&qr[m]||(qr[m]=!0,i("Unsupported style property %s. Did you mean %s?",m,Hi(m.replace(Gr,"ms-"))))},pn=function(m){qr.hasOwnProperty(m)&&qr[m]||(qr[m]=!0,i("Unsupported vendor-prefixed style property %s. Did you mean %s?",m,m.charAt(0).toUpperCase()+m.slice(1)))},li=function(m,l){Jn.hasOwnProperty(l)&&Jn[l]||(Jn[l]=!0,i(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,m,l.replace(Wn,"")))},ui=function(m,l){Wt||(Wt=!0,i("`NaN` is an invalid value for the `%s` css style property.",m))},En=function(m,l){si||(si=!0,i("`Infinity` is an invalid value for the `%s` css style property.",m))};vr=function(m,l){m.indexOf("-")>-1?Dn(m):Yr.test(m)?pn(m):Wn.test(l)&&li(m,l),typeof l=="number"&&(isNaN(l)?ui(m,l):isFinite(l)||En(m,l))}}var oo=vr,mr=/["'&<>]/;function ci(m){se(m);var l=""+m,d=mr.exec(l);if(!d)return l;var v,S="",R,B=0;for(R=d.index;R<l.length;R++){switch(l.charCodeAt(R)){case 34:v=""";break;case 38:v="&";break;case 39:v="'";break;case 60:v="<";break;case 62:v=">";break;default:continue}B!==R&&(S+=l.substring(B,R)),B=R+1,S+=v}return B!==R?S+l.substring(B,R):S}function ln(m){return typeof m=="boolean"||typeof m=="number"?""+m:ci(m)}var ki=/([A-Z])/g,Da=/^ms-/;function Pa(m){return m.replace(ki,"-$1").toLowerCase().replace(Da,"-ms-")}var Xr=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,ao=!1;function so(m){!ao&&Xr.test(m)&&(ao=!0,i("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(m)))}var Oi=Array.isArray;function Qn(m){return Oi(m)}var _r=I("<script>"),Dr=I("<\/script>"),fi=I('<script src="'),Kr=I('<script type="module" src="'),yr=I('" async=""><\/script>');function Pr(m){return se(m),(""+m).replace(er,Ui)}var er=/(<\/|<)(s)(cript)/gi,Ui=function(m,l,d,v){return""+l+(d==="s"?"\\u0073":"\\u0053")+v};function _i(m,l,d,v,S){var R=m===void 0?"":m,B=l===void 0?_r:I('<script nonce="'+ln(l)+'">'),Y=[];if(d!==void 0&&Y.push(B,M(Pr(d)),Dr),v!==void 0)for(var ie=0;ie<v.length;ie++)Y.push(fi,M(ln(v[ie])),yr);if(S!==void 0)for(var we=0;we<S.length;we++)Y.push(Kr,M(ln(S[we])),yr);return{bootstrapChunks:Y,startInlineScript:B,placeholderPrefix:I(R+"P:"),segmentPrefix:I(R+"S:"),boundaryPrefix:R+"B:",idPrefix:R,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var sr=0,wn=1,Rr=2,Ir=3,di=4,hi=5,br=6,Zr=7;function zn(m,l){return{insertionMode:m,selectedValue:l}}function pi(m){var l=m==="http://www.w3.org/2000/svg"?Rr:m==="http://www.w3.org/1998/Math/MathML"?Ir:sr;return zn(l,null)}function gi(m,l,d){switch(l){case"select":return zn(wn,d.value!=null?d.value:d.defaultValue);case"svg":return zn(Rr,null);case"math":return zn(Ir,null);case"foreignObject":return zn(wn,null);case"table":return zn(di,null);case"thead":case"tbody":case"tfoot":return zn(hi,null);case"colgroup":return zn(Zr,null);case"tr":return zn(br,null)}return m.insertionMode>=di||m.insertionMode===sr?zn(wn,null):m}var Di=null;function rn(m){var l=m.nextSuspenseID++;return I(m.boundaryPrefix+l.toString(16))}function Bn(m,l,d){var v=m.idPrefix,S=":"+v+"R"+l;return d>0&&(S+="H"+d.toString(32)),S+":"}function kn(m){return ln(m)}var lo=I("<!-- -->");function Pn(m,l,d,v){return l===""?v:(v&&m.push(lo),m.push(M(kn(l))),!0)}function Rn(m,l,d,v){d&&v&&m.push(lo)}var k=new Map;function N(m){var l=k.get(m);if(l!==void 0)return l;var d=I(ln(Pa(m)));return k.set(m,d),d}var G=I(' style="'),te=I(":"),Ee=I(";");function ge(m,l,d){if(typeof d!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var v=!0;for(var S in d)if(re.call(d,S)){var R=d[S];if(!(R==null||typeof R=="boolean"||R==="")){var B=void 0,Y=void 0,ie=S.indexOf("--")===0;ie?(B=M(ln(S)),T(R,S),Y=M(ln((""+R).trim()))):(oo(S,R),B=N(S),typeof R=="number"?R!==0&&!re.call(mt,S)?Y=M(R+"px"):Y=M(""+R):(T(R,S),Y=M(ln((""+R).trim())))),v?(v=!1,m.push(G,B,te,Y)):m.push(Ee,B,te,Y)}}v||m.push(vt)}var Re=I(" "),Ze=I('="'),vt=I('"'),yt=I('=""');function pt(m,l,d,v){switch(d){case"style":{ge(m,l,v);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 S=ke(d);if(S!==null){switch(typeof v){case"function":case"symbol":return;case"boolean":if(!S.acceptsBooleans)return}var R=S.attributeName,B=M(R);switch(S.type){case Qe:v&&m.push(Re,B,yt);return;case Ke:v===!0?m.push(Re,B,yt):v===!1||m.push(Re,B,Ze,M(ln(v)),vt);return;case he:isNaN(v)||m.push(Re,B,Ze,M(ln(v)),vt);break;case me:!isNaN(v)&&v>=1&&m.push(Re,B,Ze,M(ln(v)),vt);break;default:S.sanitizeURL&&(ce(v,R),v=""+v,so(v)),m.push(Re,B,Ze,M(ln(v)),vt)}}else if($e(d)){switch(typeof v){case"function":case"symbol":return;case"boolean":{var Y=d.toLowerCase().slice(0,5);if(Y!=="data-"&&Y!=="aria-")return}}m.push(Re,M(d),Ze,M(ln(v)),vt)}}}var Nt=I(">"),$n=I("/>");function Yn(m,l,d){if(l!=null){if(d!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof l!="object"||!("__html"in l))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var v=l.__html;v!=null&&(se(v),m.push(M(""+v)))}}var On=!1,Jr=!1,lr=!1,Wi=!1,vi=!1,zi=!1,Ar=!1;function Yi(m,l){{var d=m[l];if(d!=null){var v=Qn(d);m.multiple&&!v?i("The `%s` prop supplied to <select> must be an array if `multiple` is true.",l):!m.multiple&&v&&i("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",l)}}}function Hs(m,l,d){Hn("select",l),Yi(l,"value"),Yi(l,"defaultValue"),l.value!==void 0&&l.defaultValue!==void 0&&!lr&&(i("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),lr=!0),m.push(ur("select"));var v=null,S=null;for(var R in l)if(re.call(l,R)){var B=l[R];if(B==null)continue;switch(R){case"children":v=B;break;case"dangerouslySetInnerHTML":S=B;break;case"defaultValue":case"value":break;default:pt(m,d,R,B);break}}return m.push(Nt),Yn(m,S,v),v}function Ra(m){var l="";return e.Children.forEach(m,function(d){d!=null&&(l+=d,!vi&&typeof d!="string"&&typeof d!="number"&&(vi=!0,i("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),l}var Qo=I(' selected=""');function wr(m,l,d,v){var S=v.selectedValue;m.push(ur("option"));var R=null,B=null,Y=null,ie=null;for(var we in l)if(re.call(l,we)){var Ve=l[we];if(Ve==null)continue;switch(we){case"children":R=Ve;break;case"selected":Y=Ve,Ar||(i("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Ar=!0);break;case"dangerouslySetInnerHTML":ie=Ve;break;case"value":B=Ve;default:pt(m,d,we,Ve);break}}if(S!=null){var Xe;if(B!==null?(ce(B,"value"),Xe=""+B):(ie!==null&&(zi||(zi=!0,i("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),Xe=Ra(R)),Qn(S))for(var it=0;it<S.length;it++){ce(S[it],"value");var St=""+S[it];if(St===Xe){m.push(Qo);break}}else ce(S,"select.value"),""+S===Xe&&m.push(Qo)}else Y&&m.push(Qo);return m.push(Nt),Yn(m,ie,R),R}function Us(m,l,d){Hn("input",l),l.checked!==void 0&&l.defaultChecked!==void 0&&!Jr&&(i("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",l.type),Jr=!0),l.value!==void 0&&l.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",l.type),On=!0),m.push(ur("input"));var v=null,S=null,R=null,B=null;for(var Y in l)if(re.call(l,Y)){var ie=l[Y];if(ie==null)continue;switch(Y){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":B=ie;break;case"defaultValue":S=ie;break;case"checked":R=ie;break;case"value":v=ie;break;default:pt(m,d,Y,ie);break}}return R!==null?pt(m,d,"checked",R):B!==null&&pt(m,d,"checked",B),v!==null?pt(m,d,"value",v):S!==null&&pt(m,d,"value",S),m.push($n),null}function mi(m,l,d){Hn("textarea",l),l.value!==void 0&&l.defaultValue!==void 0&&!Wi&&(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"),Wi=!0),m.push(ur("textarea"));var v=null,S=null,R=null;for(var B in l)if(re.call(l,B)){var Y=l[B];if(Y==null)continue;switch(B){case"children":R=Y;break;case"value":v=Y;break;case"defaultValue":S=Y;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:pt(m,d,B,Y);break}}if(v===null&&S!==null&&(v=S),m.push(Nt),R!=null){if(i("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),v!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Qn(R)){if(R.length>1)throw new Error("<textarea> can only have at most one child.");se(R[0]),v=""+R[0]}se(R),v=""+R}return typeof v=="string"&&v[0]===`
|
|
105
|
-
`&&m.push(Pi),v!==null&&(ce(v,"value"),m.push(M(kn(""+v)))),null}function Ia(m,l,d,v){m.push(ur(d));for(var S in l)if(re.call(l,S)){var R=l[S];if(R==null)continue;switch(S){case"children":case"dangerouslySetInnerHTML":throw new Error(d+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:pt(m,v,S,R);break}}return m.push($n),null}function ea(m,l,d){m.push(ur("menuitem"));for(var v in l)if(re.call(l,v)){var S=l[v];if(S==null)continue;switch(v){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:pt(m,d,v,S);break}}return m.push(Nt),null}function on(m,l,d){m.push(ur("title"));var v=null;for(var S in l)if(re.call(l,S)){var R=l[S];if(R==null)continue;switch(S){case"children":v=R;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:pt(m,d,S,R);break}}m.push(Nt);{var B=Array.isArray(v)&&v.length<2?v[0]||null:v;Array.isArray(v)&&v.length>1?i("A title element received an array with more than 1 element as children. In browsers title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):B!=null&&B.$$typeof!=null?i("A title element received a React element for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):B!=null&&typeof B!="string"&&typeof B!="number"&&i("A title element received a value that was not a string or number for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering")}return v}function qt(m,l,d,v){m.push(ur(d));var S=null,R=null;for(var B in l)if(re.call(l,B)){var Y=l[B];if(Y==null)continue;switch(B){case"children":S=Y;break;case"dangerouslySetInnerHTML":R=Y;break;default:pt(m,v,B,Y);break}}return m.push(Nt),Yn(m,R,S),typeof S=="string"?(m.push(M(kn(S))),null):S}function Zt(m,l,d,v){m.push(ur(d));var S=null,R=null;for(var B in l)if(re.call(l,B)){var Y=l[B];if(Y==null)continue;switch(B){case"children":S=Y;break;case"dangerouslySetInnerHTML":R=Y;break;case"style":ge(m,v,Y);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:$e(B)&&typeof Y!="function"&&typeof Y!="symbol"&&m.push(Re,M(B),Ze,M(ln(Y)),vt);break}}return m.push(Nt),Yn(m,R,S),S}var Pi=I(`
|
|
106
|
-
`);function Qr(m,l,d,v){m.push(ur(d));var S=null,R=null;for(var B in l)if(re.call(l,B)){var Y=l[B];if(Y==null)continue;switch(B){case"children":S=Y;break;case"dangerouslySetInnerHTML":R=Y;break;default:pt(m,v,B,Y);break}}if(m.push(Nt),R!=null){if(S!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof R!="object"||!("__html"in R))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var ie=R.__html;ie!=null&&(typeof ie=="string"&&ie.length>0&&ie[0]===`
|
|
107
|
-
`?m.push(Pi,M(ie)):(se(ie),m.push(M(""+ie))))}return typeof S=="string"&&S[0]===`
|
|
108
|
-
`&&m.push(Pi),S}var Ro=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,yi=new Map;function ur(m){var l=yi.get(m);if(l===void 0){if(!Ro.test(m))throw new Error("Invalid tag: "+m);l=I("<"+m),yi.set(m,l)}return l}var Aa=I("<!DOCTYPE html>");function uo(m,l,d,v,S){switch(dn(l,d),dt(l,d),Or(l,d,null),!d.suppressContentEditableWarning&&d.contentEditable&&d.children!=null&&i("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),S.insertionMode!==Rr&&S.insertionMode!==Ir&&l.indexOf("-")===-1&&typeof d.is!="string"&&l.toLowerCase()!==l&&i("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",l),l){case"select":return Hs(m,d,v);case"option":return wr(m,d,v,S);case"textarea":return mi(m,d,v);case"input":return Us(m,d,v);case"menuitem":return ea(m,d,v);case"title":return on(m,d,v);case"listing":case"pre":return Qr(m,d,l,v);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 Ia(m,d,l,v);case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return qt(m,d,l,v);case"html":return S.insertionMode===sr&&m.push(Aa),qt(m,d,l,v);default:return l.indexOf("-")===-1&&typeof d.is!="string"?qt(m,d,l,v):Zt(m,d,l,v)}}var as=I("</"),un=I(">");function Io(m,l,d){switch(l){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:m.push(as,M(l),un)}}function bi(m,l){for(var d=l.bootstrapChunks,v=0;v<d.length-1;v++)g(m,d[v]);return v<d.length?x(m,d[v]):!0}var ss=I('<template id="'),co=I('"></template>');function cr(m,l,d){g(m,ss),g(m,l.placeholderPrefix);var v=M(d.toString(16));return g(m,v),x(m,co)}var h=I("<!--$-->"),b=I('<!--$?--><template id="'),E=I('"></template>'),_=I("<!--$!-->"),F=I("<!--/$-->"),j=I("<template"),V=I('"'),ae=I(' data-dgst="'),ne=I(' data-msg="'),pe=I(' data-stck="'),_e=I("></template>");function Ie(m,l){return x(m,h)}function Se(m,l,d){if(g(m,b),d===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return g(m,d),x(m,E)}function We(m,l,d,v,S){var R;return R=x(m,_),g(m,j),d&&(g(m,ae),g(m,M(ln(d))),g(m,V)),v&&(g(m,ne),g(m,M(ln(v))),g(m,V)),S&&(g(m,pe),g(m,M(ln(S))),g(m,V)),R=x(m,_e),R}function st(m,l){return x(m,F)}function Ct(m,l){return x(m,F)}function kt(m,l){return x(m,F)}var In=I('<div hidden id="'),cn=I('">'),Mr=I("</div>"),Lr=I('<svg aria-hidden="true" style="display:none" id="'),Ft=I('">'),Fr=I("</svg>"),jt=I('<math aria-hidden="true" style="display:none" id="'),en=I('">'),fo=I("</math>"),ho=I('<table hidden id="'),xr=I('">'),O=I("</table>"),L=I('<table hidden><tbody id="'),W=I('">'),ee=I("</tbody></table>"),ye=I('<table hidden><tr id="'),be=I('">'),Me=I("</tr></table>"),qe=I('<table hidden><colgroup id="'),gt=I('">'),Pt=I("</colgroup></table>");function Tt(m,l,d,v){switch(d.insertionMode){case sr:case wn:return g(m,In),g(m,l.segmentPrefix),g(m,M(v.toString(16))),x(m,cn);case Rr:return g(m,Lr),g(m,l.segmentPrefix),g(m,M(v.toString(16))),x(m,Ft);case Ir:return g(m,jt),g(m,l.segmentPrefix),g(m,M(v.toString(16))),x(m,en);case di:return g(m,ho),g(m,l.segmentPrefix),g(m,M(v.toString(16))),x(m,xr);case hi:return g(m,L),g(m,l.segmentPrefix),g(m,M(v.toString(16))),x(m,W);case br:return g(m,ye),g(m,l.segmentPrefix),g(m,M(v.toString(16))),x(m,be);case Zr:return g(m,qe),g(m,l.segmentPrefix),g(m,M(v.toString(16))),x(m,gt);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}function bt(m,l){switch(l.insertionMode){case sr:case wn:return x(m,Mr);case Rr:return x(m,Fr);case Ir:return x(m,fo);case di:return x(m,O);case hi:return x(m,ee);case br:return x(m,Me);case Zr:return x(m,Pt);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var Mn="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)}",xn='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()}}',Vn='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())}',ta=I(Mn+';$RS("'),ls=I('$RS("'),po=I('","'),ei=I('")<\/script>');function Ws(m,l,d){g(m,l.startInlineScript),l.sentCompleteSegmentFunction?g(m,ls):(l.sentCompleteSegmentFunction=!0,g(m,ta)),g(m,l.segmentPrefix);var v=M(d.toString(16));return g(m,v),g(m,po),g(m,l.placeholderPrefix),g(m,v),x(m,ei)}var Ri=I(xn+';$RC("'),us=I('$RC("'),na=I('","'),ti=I('")<\/script>');function go(m,l,d,v){if(g(m,l.startInlineScript),l.sentCompleteBoundaryFunction?g(m,us):(l.sentCompleteBoundaryFunction=!0,g(m,Ri)),d===null)throw new Error("An ID must have been assigned before we can complete the boundary.");var S=M(v.toString(16));return g(m,d),g(m,na),g(m,l.segmentPrefix),g(m,S),x(m,ti)}var zs=I(Vn+';$RX("'),_u=I('$RX("'),cs=I('"'),vo=I(")<\/script>"),fn=I(",");function Rl(m,l,d,v,S,R){if(g(m,l.startInlineScript),l.sentClientRenderFunction?g(m,_u):(l.sentClientRenderFunction=!0,g(m,zs)),d===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return g(m,d),g(m,cs),(v||S||R)&&(g(m,fn),g(m,M(Ma(v||"")))),(S||R)&&(g(m,fn),g(m,M(Ma(S||"")))),R&&(g(m,fn),g(m,M(Ma(R)))),x(m,vo)}var fs=/[<\u2028\u2029]/g;function Ma(m){var l=JSON.stringify(m);return l.replace(fs,function(d){switch(d){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var J=Object.assign,fe=Symbol.for("react.element"),Te=Symbol.for("react.portal"),Oe=Symbol.for("react.fragment"),K=Symbol.for("react.strict_mode"),ue=Symbol.for("react.profiler"),le=Symbol.for("react.provider"),Ae=Symbol.for("react.context"),Be=Symbol.for("react.forward_ref"),ut=Symbol.for("react.suspense"),ft=Symbol.for("react.suspense_list"),ot=Symbol.for("react.memo"),Mt=Symbol.for("react.lazy"),xt=Symbol.for("react.scope"),Vt=Symbol.for("react.debug_trace_mode"),Gn=Symbol.for("react.legacy_hidden"),tr=Symbol.for("react.default_value"),Ln=Symbol.iterator,zt="@@iterator";function Nr(m){if(m===null||typeof m!="object")return null;var l=Ln&&m[Ln]||m[zt];return typeof l=="function"?l:null}function Ot(m,l,d){var v=m.displayName;if(v)return v;var S=l.displayName||l.name||"";return S!==""?d+"("+S+")":d}function Du(m){return m.displayName||"Context"}function gn(m){if(m==null)return null;if(typeof m.tag=="number"&&i("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof m=="function")return m.displayName||m.name||null;if(typeof m=="string")return m;switch(m){case Oe:return"Fragment";case Te:return"Portal";case ue:return"Profiler";case K:return"StrictMode";case ut:return"Suspense";case ft:return"SuspenseList"}if(typeof m=="object")switch(m.$$typeof){case Ae:var l=m;return Du(l)+".Consumer";case le:var d=m;return Du(d._context)+".Provider";case Be:return Ot(m,m.render,"ForwardRef");case ot:var v=m.displayName||null;return v!==null?v:gn(m.type)||"Memo";case Mt:{var S=m,R=S._payload,B=S._init;try{return gn(B(R))}catch{return null}}}return null}var Ao=0,Pu,Ru,Iu,ds,Mo,Ys,Gs;function La(){}La.__reactDisabledLog=!0;function hs(){{if(Ao===0){Pu=console.log,Ru=console.info,Iu=console.warn,ds=console.error,Mo=console.group,Ys=console.groupCollapsed,Gs=console.groupEnd;var m={configurable:!0,enumerable:!0,value:La,writable:!0};Object.defineProperties(console,{info:m,log:m,warn:m,error:m,group:m,groupCollapsed:m,groupEnd:m})}Ao++}}function Il(){{if(Ao--,Ao===0){var m={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:J({},m,{value:Pu}),info:J({},m,{value:Ru}),warn:J({},m,{value:Iu}),error:J({},m,{value:ds}),group:J({},m,{value:Mo}),groupCollapsed:J({},m,{value:Ys}),groupEnd:J({},m,{value:Gs})})}Ao<0&&i("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Lo=n.ReactCurrentDispatcher,Al;function Gi(m,l,d){{if(Al===void 0)try{throw Error()}catch(S){var v=S.stack.trim().match(/\n( *(at )?)/);Al=v&&v[1]||""}return`
|
|
109
|
-
`+Al+m}}var Fo=!1,ra;{var Af=typeof WeakMap=="function"?WeakMap:Map;ra=new Af}function qs(m,l){if(!m||Fo)return"";{var d=ra.get(m);if(d!==void 0)return d}var v;Fo=!0;var S=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var R;R=Lo.current,Lo.current=null,hs();try{if(l){var B=function(){throw Error()};if(Object.defineProperty(B.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(B,[])}catch(tn){v=tn}Reflect.construct(m,[],B)}else{try{B.call()}catch(tn){v=tn}m.call(B.prototype)}}else{try{throw Error()}catch(tn){v=tn}m()}}catch(tn){if(tn&&v&&typeof tn.stack=="string"){for(var Y=tn.stack.split(`
|
|
110
|
-
`),ie=v.stack.split(`
|
|
111
|
-
`),we=Y.length-1,Ve=ie.length-1;we>=1&&Ve>=0&&Y[we]!==ie[Ve];)Ve--;for(;we>=1&&Ve>=0;we--,Ve--)if(Y[we]!==ie[Ve]){if(we!==1||Ve!==1)do if(we--,Ve--,Ve<0||Y[we]!==ie[Ve]){var Xe=`
|
|
112
|
-
`+Y[we].replace(" at new "," at ");return m.displayName&&Xe.includes("<anonymous>")&&(Xe=Xe.replace("<anonymous>",m.displayName)),typeof m=="function"&&ra.set(m,Xe),Xe}while(we>=1&&Ve>=0);break}}}finally{Fo=!1,Lo.current=R,Il(),Error.prepareStackTrace=S}var it=m?m.displayName||m.name:"",St=it?Gi(it):"";return typeof m=="function"&&ra.set(m,St),St}function Pc(m,l,d){return qs(m,!0)}function ps(m,l,d){return qs(m,!1)}function Fa(m){var l=m.prototype;return!!(l&&l.isReactComponent)}function gs(m,l,d){if(m==null)return"";if(typeof m=="function")return qs(m,Fa(m));if(typeof m=="string")return Gi(m);switch(m){case ut:return Gi("Suspense");case ft:return Gi("SuspenseList")}if(typeof m=="object")switch(m.$$typeof){case Be:return ps(m.render);case ot:return gs(m.type,l,d);case Mt:{var v=m,S=v._payload,R=v._init;try{return gs(R(S),l,d)}catch{}}}return""}var Ml={},vs=n.ReactDebugCurrentFrame;function Xs(m){if(m){var l=m._owner,d=gs(m.type,m._source,l?l.type:null);vs.setExtraStackFrame(d)}else vs.setExtraStackFrame(null)}function Rc(m,l,d,v,S){{var R=Function.call.bind(re);for(var B in m)if(R(m,B)){var Y=void 0;try{if(typeof m[B]!="function"){var ie=Error((v||"React class")+": "+d+" type `"+B+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof m[B]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ie.name="Invariant Violation",ie}Y=m[B](l,B,v,d,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(we){Y=we}Y&&!(Y instanceof Error)&&(Xs(S),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).",v||"React class",d,B,typeof Y),Xs(null)),Y instanceof Error&&!(Y.message in Ml)&&(Ml[Y.message]=!0,Xs(S),i("Failed %s type: %s",d,Y.message),Xs(null))}}}var Sn;Sn={};var qn={};Object.freeze(qn);function ia(m,l){{var d=m.contextTypes;if(!d)return qn;var v={};for(var S in d)v[S]=l[S];{var R=gn(m)||"Unknown";Rc(d,v,"context",R)}return v}}function Au(m,l,d,v){{if(typeof m.getChildContext!="function"){{var S=gn(l)||"Unknown";Sn[S]||(Sn[S]=!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.",S,S))}return d}var R=m.getChildContext();for(var B in R)if(!(B in v))throw new Error((gn(l)||"Unknown")+'.getChildContext(): key "'+B+'" is not defined in childContextTypes.');{var Y=gn(l)||"Unknown";Rc(v,R,"child context",Y)}return J({},d,R)}}var oa;oa={};var Ll=null,mo=null;function aa(m){m.context._currentValue=m.parentValue}function ms(m){m.context._currentValue=m.value}function yo(m,l){if(m!==l){aa(m);var d=m.parent,v=l.parent;if(d===null){if(v!==null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.")}else{if(v===null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.");yo(d,v)}ms(l)}}function No(m){aa(m);var l=m.parent;l!==null&&No(l)}function ys(m){var l=m.parent;l!==null&&ys(l),ms(m)}function Ks(m,l){aa(m);var d=m.parent;if(d===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");d.depth===l.depth?yo(d,l):Ks(d,l)}function Na(m,l){var d=l.parent;if(d===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");m.depth===d.depth?yo(m,d):Na(m,d),ms(l)}function sa(m){var l=mo,d=m;l!==d&&(l===null?ys(d):d===null?No(l):l.depth===d.depth?yo(l,d):l.depth>d.depth?Ks(l,d):Na(l,d),mo=d)}function Mu(m,l){var d;d=m._currentValue,m._currentValue=l,m._currentRenderer!==void 0&&m._currentRenderer!==null&&m._currentRenderer!==oa&&i("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),m._currentRenderer=oa;var v=mo,S={parent:v,depth:v===null?0:v.depth+1,context:m,parentValue:d,value:l};return mo=S,S}function Mf(m){var l=mo;if(l===null)throw new Error("Tried to pop a Context at the root of the app. This is a bug in React.");l.context!==m&&i("The parent context is not the expected context. This is probably a bug in React.");{var d=l.parentValue;d===tr?l.context._currentValue=l.context._defaultValue:l.context._currentValue=d,m._currentRenderer!==void 0&&m._currentRenderer!==null&&m._currentRenderer!==oa&&i("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),m._currentRenderer=oa}return mo=l.parent}function Ic(){return mo}function bs(m){var l=m._currentValue;return l}function la(m){return m._reactInternals}function ja(m,l){m._reactInternals=l}var Zs={},z={},jo,Bo,Sr,$t,Fl,Js,Nl,bo,Lu;{jo=new Set,Bo=new Set,Sr=new Set,Nl=new Set,$t=new Set,bo=new Set,Lu=new Set;var Ac=new Set;Js=function(m,l){if(!(m===null||typeof m=="function")){var d=l+"_"+m;Ac.has(d)||(Ac.add(d),i("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",l,m))}},Fl=function(m,l){if(l===void 0){var d=gn(m)||"Component";$t.has(d)||($t.add(d),i("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",d))}}}function Mc(m,l){{var d=m.constructor,v=d&&gn(d)||"ReactClass",S=v+"."+l;if(Zs[S])return;i(`%s(...): Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.
|
|
113
|
-
|
|
114
|
-
Please check the code for the %s component.`,l,l,v),Zs[S]=!0}}var Lc={isMounted:function(m){return!1},enqueueSetState:function(m,l,d){var v=la(m);v.queue===null?Mc(m,"setState"):(v.queue.push(l),d!=null&&Js(d,"setState"))},enqueueReplaceState:function(m,l,d){var v=la(m);v.replace=!0,v.queue=[l],d!=null&&Js(d,"setState")},enqueueForceUpdate:function(m,l){var d=la(m);d.queue===null?Mc(m,"forceUpdate"):l!=null&&Js(l,"setState")}};function Lf(m,l,d,v,S){var R=d(S,v);Fl(l,R);var B=R==null?v:J({},v,R);return B}function wo(m,l,d){var v=qn,S=m.contextType;if("contextType"in m){var R=S===null||S!==void 0&&S.$$typeof===Ae&&S._context===void 0;if(!R&&!Lu.has(m)){Lu.add(m);var B="";S===void 0?B=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof S!="object"?B=" However, it is set to a "+typeof S+".":S.$$typeof===le?B=" Did you accidentally pass the Context.Provider instead?":S._context!==void 0?B=" Did you accidentally pass the Context.Consumer instead?":B=" However, it is set to an object with keys {"+Object.keys(S).join(", ")+"}.",i("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",gn(m)||"Component",B)}}typeof S=="object"&&S!==null?v=bs(S):v=d;var Y=new m(l,v);{if(typeof m.getDerivedStateFromProps=="function"&&(Y.state===null||Y.state===void 0)){var ie=gn(m)||"Component";jo.has(ie)||(jo.add(ie),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.",ie,Y.state===null?"null":"undefined",ie))}if(typeof m.getDerivedStateFromProps=="function"||typeof Y.getSnapshotBeforeUpdate=="function"){var we=null,Ve=null,Xe=null;if(typeof Y.componentWillMount=="function"&&Y.componentWillMount.__suppressDeprecationWarning!==!0?we="componentWillMount":typeof Y.UNSAFE_componentWillMount=="function"&&(we="UNSAFE_componentWillMount"),typeof Y.componentWillReceiveProps=="function"&&Y.componentWillReceiveProps.__suppressDeprecationWarning!==!0?Ve="componentWillReceiveProps":typeof Y.UNSAFE_componentWillReceiveProps=="function"&&(Ve="UNSAFE_componentWillReceiveProps"),typeof Y.componentWillUpdate=="function"&&Y.componentWillUpdate.__suppressDeprecationWarning!==!0?Xe="componentWillUpdate":typeof Y.UNSAFE_componentWillUpdate=="function"&&(Xe="UNSAFE_componentWillUpdate"),we!==null||Ve!==null||Xe!==null){var it=gn(m)||"Component",St=typeof m.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Sr.has(it)||(Sr.add(it),i(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
115
|
-
|
|
116
|
-
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
117
|
-
|
|
118
|
-
The above lifecycles should be removed. Learn more about this warning here:
|
|
119
|
-
https://reactjs.org/link/unsafe-component-lifecycles`,it,St,we!==null?`
|
|
120
|
-
`+we:"",Ve!==null?`
|
|
121
|
-
`+Ve:"",Xe!==null?`
|
|
122
|
-
`+Xe:""))}}}return Y}function Ff(m,l,d){{var v=gn(l)||"Component",S=m.render;S||(l.prototype&&typeof l.prototype.render=="function"?i("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",v):i("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",v)),m.getInitialState&&!m.getInitialState.isReactClassApproved&&!m.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?",v),m.getDefaultProps&&!m.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.",v),m.propTypes&&i("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",v),m.contextType&&i("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",v),m.contextTypes&&i("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",v),l.contextType&&l.contextTypes&&!bo.has(l)&&(bo.add(l),i("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",v)),typeof m.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.",v),l.prototype&&l.prototype.isPureReactComponent&&typeof m.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.",gn(l)||"A pure component"),typeof m.componentDidUnmount=="function"&&i("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",v),typeof m.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().",v),typeof m.componentWillRecieveProps=="function"&&i("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",v),typeof m.UNSAFE_componentWillRecieveProps=="function"&&i("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",v);var R=m.props!==d;m.props!==void 0&&R&&i("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",v,v),m.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.",v,v),typeof m.getSnapshotBeforeUpdate=="function"&&typeof m.componentDidUpdate!="function"&&!Bo.has(l)&&(Bo.add(l),i("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",gn(l))),typeof m.getDerivedStateFromProps=="function"&&i("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",v),typeof m.getDerivedStateFromError=="function"&&i("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",v),typeof l.getSnapshotBeforeUpdate=="function"&&i("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",v);var B=m.state;B&&(typeof B!="object"||Qn(B))&&i("%s.state: must be set to an object or null",v),typeof m.getChildContext=="function"&&typeof l.childContextTypes!="object"&&i("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",v)}}function Nf(m,l){var d=l.state;if(typeof l.componentWillMount=="function"){if(l.componentWillMount.__suppressDeprecationWarning!==!0){var v=gn(m)||"Unknown";z[v]||(r(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
123
|
-
|
|
124
|
-
* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.
|
|
125
|
-
|
|
126
|
-
Please update the following components: %s`,v),z[v]=!0)}l.componentWillMount()}typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),d!==l.state&&(i("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",gn(m)||"Component"),Lc.enqueueReplaceState(l,l.state,null))}function Fu(m,l,d,v){if(m.queue!==null&&m.queue.length>0){var S=m.queue,R=m.replace;if(m.queue=null,m.replace=!1,R&&S.length===1)l.state=S[0];else{for(var B=R?S[0]:l.state,Y=!0,ie=R?1:0;ie<S.length;ie++){var we=S[ie],Ve=typeof we=="function"?we.call(l,B,d,v):we;Ve!=null&&(Y?(Y=!1,B=J({},B,Ve)):J(B,Ve))}l.state=B}}else m.queue=null}function Qs(m,l,d,v){Ff(m,l,d);var S=m.state!==void 0?m.state:null;m.updater=Lc,m.props=d,m.state=S;var R={queue:[],replace:!1};ja(m,R);var B=l.contextType;if(typeof B=="object"&&B!==null?m.context=bs(B):m.context=v,m.state===d){var Y=gn(l)||"Component";Nl.has(Y)||(Nl.add(Y),i("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",Y))}var ie=l.getDerivedStateFromProps;typeof ie=="function"&&(m.state=Lf(m,l,ie,S,d)),typeof l.getDerivedStateFromProps!="function"&&typeof m.getSnapshotBeforeUpdate!="function"&&(typeof m.UNSAFE_componentWillMount=="function"||typeof m.componentWillMount=="function")&&(Nf(l,m),Fu(R,m,d,v))}var jf={id:1,overflow:""};function $o(m){var l=m.overflow,d=m.id,v=d&~Bf(d);return v.toString(32)+l}function Nu(m,l,d){var v=m.id,S=m.overflow,R=jl(v)-1,B=v&~(1<<R),Y=d+1,ie=jl(l)+R;if(ie>30){var we=R-R%5,Ve=(1<<we)-1,Xe=(B&Ve).toString(32),it=B>>we,St=R-we,tn=jl(l)+St,rr=Y<<St,Co=rr|it,va=Xe+S;return{id:1<<tn|Co,overflow:va}}else{var Ji=Y<<R,Ds=Ji|B,Qc=S;return{id:1<<ie|Ds,overflow:Qc}}}function jl(m){return 32-$f(m)}function Bf(m){return 1<<jl(m)-1}var $f=Math.clz32?Math.clz32:ju,Vf=Math.log,jr=Math.LN2;function ju(m){var l=m>>>0;return l===0?32:31-(Vf(l)/jr|0)|0}function Bl(m,l){return m===l&&(m!==0||1/m===1/l)||m!==m&&l!==l}var Xt=typeof Object.is=="function"?Object.is:Bl,wi=null,ws=null,Ba=null,Jt=null,ua=!1,el=!1,ni=0,xi=null,xo=0,Bu=25,Br=!1,qi;function $a(){if(wi===null)throw new Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
127
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
128
|
-
2. You might be breaking the Rules of Hooks
|
|
129
|
-
3. You might have more than one copy of React in the same app
|
|
130
|
-
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`);return Br&&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"),wi}function Fc(m,l){if(l===null)return i("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",qi),!1;m.length!==l.length&&i(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
131
|
-
|
|
132
|
-
Previous: %s
|
|
133
|
-
Incoming: %s`,qi,"["+m.join(", ")+"]","["+l.join(", ")+"]");for(var d=0;d<l.length&&d<m.length;d++)if(!Xt(m[d],l[d]))return!1;return!0}function $u(){if(xo>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function Si(){return Jt===null?Ba===null?(ua=!1,Ba=Jt=$u()):(ua=!0,Jt=Ba):Jt.next===null?(ua=!1,Jt=Jt.next=$u()):(ua=!0,Jt=Jt.next),Jt}function Vu(m,l){wi=l,ws=m,Br=!1,ni=0}function Va(m,l,d,v){for(;el;)el=!1,ni=0,xo+=1,Jt=null,d=m(l,v);return Hu(),d}function $r(){var m=ni!==0;return m}function Hu(){Br=!1,wi=null,ws=null,el=!1,Ba=null,xo=0,xi=null,Jt=null}function Uu(m){return Br&&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()."),bs(m)}function Wu(m){return qi="useContext",$a(),bs(m)}function Ha(m,l){return typeof l=="function"?l(m):l}function ca(m){return qi="useState",zu(Ha,m)}function zu(m,l,d){if(m!==Ha&&(qi="useReducer"),wi=$a(),Jt=Si(),ua){var v=Jt.queue,S=v.dispatch;if(xi!==null){var R=xi.get(v);if(R!==void 0){xi.delete(v);var B=Jt.memoizedState,Y=R;do{var ie=Y.action;Br=!0,B=m(B,ie),Br=!1,Y=Y.next}while(Y!==null);return Jt.memoizedState=B,[B,S]}}return[Jt.memoizedState,S]}else{Br=!0;var we;m===Ha?we=typeof l=="function"?l():l:we=d!==void 0?d(l):l,Br=!1,Jt.memoizedState=we;var Ve=Jt.queue={last:null,dispatch:null},Xe=Ve.dispatch=jc.bind(null,wi,Ve);return[Jt.memoizedState,Xe]}}function Nc(m,l){wi=$a(),Jt=Si();var d=l===void 0?null:l;if(Jt!==null){var v=Jt.memoizedState;if(v!==null&&d!==null){var S=v[1];if(Fc(d,S))return v[0]}}Br=!0;var R=m();return Br=!1,Jt.memoizedState=[R,d],R}function $l(m){wi=$a(),Jt=Si();var l=Jt.memoizedState;if(l===null){var d={current:m};return Object.seal(d),Jt.memoizedState=d,d}else return l}function Hf(m,l){qi="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(m,l,d){if(xo>=Bu)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(m===wi){el=!0;var v={action:d,next:null};xi===null&&(xi=new Map);var S=xi.get(l);if(S===void 0)xi.set(l,v);else{for(var R=S;R.next!==null;)R=R.next;R.next=v}}}function fr(m,l){return Nc(function(){return m},l)}function Yu(m,l,d){return $a(),l(m._source)}function Bc(m,l,d){if(d===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return d()}function Ti(m){return $a(),m}function Vl(){throw new Error("startTransition cannot be called during server rendering.")}function xs(){return $a(),[!1,Vl]}function fa(){var m=ws,l=$o(m.treeContext),d=Ua;if(d===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var v=ni++;return Bn(d,l,v)}function tl(){}var nr={readContext:Uu,useContext:Wu,useMemo:Nc,useReducer:zu,useRef:$l,useState:ca,useInsertionEffect:tl,useLayoutEffect:Hf,useCallback:fr,useImperativeHandle:tl,useEffect:tl,useDebugValue:tl,useDeferredValue:Ti,useTransition:xs,useId:fa,useMutableSource:Yu,useSyncExternalStore:Bc},Ua=null;function Hl(m){Ua=m}function Ss(m){try{var l="",d=m;do{switch(d.tag){case 0:l+=Gi(d.type,null,null);break;case 1:l+=ps(d.type,null,null);break;case 2:l+=Pc(d.type,null,null);break}d=d.parent}while(d);return l}catch(v){return`
|
|
134
|
-
Error generating stack: `+v.message+`
|
|
135
|
-
`+v.stack}}var Ul=n.ReactCurrentDispatcher,Ts=n.ReactDebugCurrentFrame,Wl=0,So=1,zl=2,Wa=3,$c=4,nl=0,Cs=1,Es=2,Gu=12800;function Vc(m){return console.error(m),null}function za(){}function Yl(m,l,d,v,S,R,B,Y,ie){var we=[],Ve=new Set,Xe={destination:null,responseState:l,progressiveChunkSize:v===void 0?Gu:v,status:nl,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:Ve,pingedTasks:we,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:S===void 0?Vc:S,onAllReady:R===void 0?za:R,onShellReady:B===void 0?za:B,onShellError:Y===void 0?za:Y,onFatalError:ie===void 0?za:ie},it=rl(Xe,0,null,d,!1,!1);it.parentFlushed=!0;var St=Ho(Xe,m,null,it,Ve,qn,Ll,jf);return we.push(St),Xe}function Vo(m,l){var d=m.pingedTasks;d.push(l),d.length===1&&s(function(){return ec(m)})}function Gl(m,l){return{id:Di,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:l,errorDigest:null}}function Ho(m,l,d,v,S,R,B,Y){m.allPendingTasks++,d===null?m.pendingRootTasks++:d.pendingTasks++;var ie={node:l,ping:function(){return Vo(m,ie)},blockedBoundary:d,blockedSegment:v,abortSet:S,legacyContext:R,context:B,treeContext:Y};return ie.componentStack=null,S.add(ie),ie}function rl(m,l,d,v,S,R){return{status:Wl,id:-1,index:l,parentFlushed:!1,chunks:[],children:[],formatContext:v,boundary:d,lastPushedText:S,textEmbedded:R}}var Xi=null;function Ki(){return Xi===null||Xi.componentStack===null?"":Ss(Xi.componentStack)}function To(m,l){m.componentStack={tag:0,parent:m.componentStack,type:l}}function il(m,l){m.componentStack={tag:1,parent:m.componentStack,type:l}}function da(m,l){m.componentStack={tag:2,parent:m.componentStack,type:l}}function Zi(m){m.componentStack===null?i("Unexpectedly popped too many stack frames. This is a bug in React."):m.componentStack=m.componentStack.parent}var ks=null;function ql(m,l){{var d;typeof l=="string"?d=l:l&&typeof l.message=="string"?d=l.message:d=String(l);var v=ks||Ki();ks=null,m.errorMessage=d,m.errorComponentStack=v}}function ol(m,l){var d=m.onError(l);if(d!=null&&typeof d!="string")throw new Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof d+'" instead');return d}function Os(m,l){var d=m.onShellError;d(l);var v=m.onFatalError;v(l),m.destination!==null?(m.status=Es,H(m.destination,l)):(m.status=Cs,m.fatalError=l)}function Hc(m,l,d){To(l,"Suspense");var v=l.blockedBoundary,S=l.blockedSegment,R=d.fallback,B=d.children,Y=new Set,ie=Gl(m,Y),we=S.chunks.length,Ve=rl(m,we,ie,S.formatContext,!1,!1);S.children.push(Ve),S.lastPushedText=!1;var Xe=rl(m,0,null,S.formatContext,!1,!1);Xe.parentFlushed=!0,l.blockedBoundary=ie,l.blockedSegment=Xe;try{if(Ci(m,l,B),Rn(Xe.chunks,m.responseState,Xe.lastPushedText,Xe.textEmbedded),Xe.status=So,ga(ie,Xe),ie.pendingTasks===0){Zi(l);return}}catch(St){Xe.status=$c,ie.forceClientRender=!0,ie.errorDigest=ol(m,St),ql(ie,St)}finally{l.blockedBoundary=v,l.blockedSegment=S}var it=Ho(m,R,v,Ve,Y,l.legacyContext,l.context,l.treeContext);it.componentStack=l.componentStack,m.pingedTasks.push(it),Zi(l)}function qu(m,l,d,v){To(l,d);var S=l.blockedSegment,R=uo(S.chunks,d,v,m.responseState,S.formatContext);S.lastPushedText=!1;var B=S.formatContext;S.formatContext=gi(B,d,v),Ci(m,l,R),S.formatContext=B,Io(S.chunks,d),S.lastPushedText=!1,Zi(l)}function Xu(m){return m.prototype&&m.prototype.isReactComponent}function Ya(m,l,d,v,S){var R={};Vu(l,R);var B=d(v,S);return Va(d,v,B,S)}function Ku(m,l,d,v,S){var R=d.render();d.props!==S&&(Kl||i("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",gn(v)||"a component"),Kl=!0);{var B=v.childContextTypes;if(B!=null){var Y=l.legacyContext,ie=Au(d,v,Y,B);l.legacyContext=ie,dr(m,l,R),l.legacyContext=Y;return}}dr(m,l,R)}function Xl(m,l,d,v){da(l,d);var S=ia(d,l.legacyContext),R=wo(d,v,S);Qs(R,d,v,S),Ku(m,l,R,d,v),Zi(l)}var Bt={},al={},Zu={},Ga={},Kl=!1,Uc={},Wc=!1,ri=!1,zc=!1;function Zl(m,l,d,v){var S;if(S=ia(d,l.legacyContext),il(l,d),d.prototype&&typeof d.prototype.render=="function"){var R=gn(d)||"Unknown";Bt[R]||(i("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",R,R),Bt[R]=!0)}var B=Ya(m,l,d,v,S),Y=$r();if(typeof B=="object"&&B!==null&&typeof B.render=="function"&&B.$$typeof===void 0){var ie=gn(d)||"Unknown";al[ie]||(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.",ie,ie,ie),al[ie]=!0)}if(typeof B=="object"&&B!==null&&typeof B.render=="function"&&B.$$typeof===void 0){{var we=gn(d)||"Unknown";al[we]||(i("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",we,we,we),al[we]=!0)}Qs(B,d,v,S),Ku(m,l,B,d,v)}else if(Ju(d),Y){var Ve=l.treeContext,Xe=1,it=0;l.treeContext=Nu(Ve,Xe,it);try{dr(m,l,B)}finally{l.treeContext=Ve}}else dr(m,l,B);Zi(l)}function Ju(m){{if(m&&m.childContextTypes&&i("%s(...): childContextTypes cannot be defined on a function component.",m.displayName||m.name||"Component"),m.defaultProps!==void 0){var l=gn(m)||"Unknown";Uc[l]||(i("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",l),Uc[l]=!0)}if(typeof m.getDerivedStateFromProps=="function"){var d=gn(m)||"Unknown";Ga[d]||(i("%s: Function components do not support getDerivedStateFromProps.",d),Ga[d]=!0)}if(typeof m.contextType=="object"&&m.contextType!==null){var v=gn(m)||"Unknown";Zu[v]||(i("%s: Function components do not support contextType.",v),Zu[v]=!0)}}}function Qu(m,l){if(m&&m.defaultProps){var d=J({},l),v=m.defaultProps;for(var S in v)d[S]===void 0&&(d[S]=v[S]);return d}return l}function Yc(m,l,d,v,S){il(l,d.render);var R=Ya(m,l,d.render,v,S),B=$r();if(B){var Y=l.treeContext,ie=1,we=0;l.treeContext=Nu(Y,ie,we);try{dr(m,l,R)}finally{l.treeContext=Y}}else dr(m,l,R);Zi(l)}function Vr(m,l,d,v,S){var R=d.type,B=Qu(R,v);qa(m,l,R,B,S)}function ha(m,l,d,v){d._context===void 0?d!==d.Consumer&&(zc||(zc=!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 S=v.children;typeof S!="function"&&i("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var R=bs(d),B=S(R);dr(m,l,B)}function Hr(m,l,d,v){var S=d._context,R=v.value,B=v.children,Y;Y=l.context,l.context=Mu(S,R),dr(m,l,B),l.context=Mf(S),Y!==l.context&&i("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function Gc(m,l,d,v,S){To(l,"Lazy");var R=d._payload,B=d._init,Y=B(R),ie=Qu(Y,v);qa(m,l,Y,ie,S),Zi(l)}function qa(m,l,d,v,S){if(typeof d=="function")if(Xu(d)){Xl(m,l,d,v);return}else{Zl(m,l,d,v);return}if(typeof d=="string"){qu(m,l,d,v);return}switch(d){case Gn:case Vt:case K:case ue:case Oe:{dr(m,l,v.children);return}case ft:{To(l,"SuspenseList"),dr(m,l,v.children),Zi(l);return}case xt:throw new Error("ReactDOMServer does not yet support scope components.");case ut:{Hc(m,l,v);return}}if(typeof d=="object"&&d!==null)switch(d.$$typeof){case Be:{Yc(m,l,d,v,S);return}case ot:{Vr(m,l,d,v,S);return}case le:{Hr(m,l,d,v);return}case Ae:{ha(m,l,d,v);return}case Mt:{Gc(m,l,d,v);return}}var R="";throw(d===void 0||typeof d=="object"&&d!==null&&Object.keys(d).length===0)&&(R+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(d==null?d:typeof d)+"."+R))}function qc(m,l){typeof Symbol=="function"&&m[Symbol.toStringTag]==="Generator"&&(Wc||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."),Wc=!0),m.entries===l&&(ri||i("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ri=!0)}function dr(m,l,d){try{return Xc(m,l,d)}catch(v){throw typeof v=="object"&&v!==null&&typeof v.then=="function"||(ks=ks!==null?ks:Ki()),v}}function Xc(m,l,d){if(l.node=d,typeof d=="object"&&d!==null){switch(d.$$typeof){case fe:{var v=d,S=v.type,R=v.props,B=v.ref;qa(m,l,S,R,B);return}case Te: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 Mt:{var Y=d,ie=Y._payload,we=Y._init,Ve;try{Ve=we(ie)}catch(Ji){throw typeof Ji=="object"&&Ji!==null&&typeof Ji.then=="function"&&To(l,"Lazy"),Ji}dr(m,l,Ve);return}}if(Qn(d)){Jl(m,l,d);return}var Xe=Nr(d);if(Xe){qc(d,Xe);var it=Xe.call(d);if(it){var St=it.next();if(!St.done){var tn=[];do tn.push(St.value),St=it.next();while(!St.done);Jl(m,l,tn);return}return}}var rr=Object.prototype.toString.call(d);throw new Error("Objects are not valid as a React child (found: "+(rr==="[object Object]"?"object with keys {"+Object.keys(d).join(", ")+"}":rr)+"). If you meant to render a collection of children, use an array instead.")}if(typeof d=="string"){var Co=l.blockedSegment;Co.lastPushedText=Pn(l.blockedSegment.chunks,d,m.responseState,Co.lastPushedText);return}if(typeof d=="number"){var va=l.blockedSegment;va.lastPushedText=Pn(l.blockedSegment.chunks,""+d,m.responseState,va.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 Jl(m,l,d){for(var v=d.length,S=0;S<v;S++){var R=l.treeContext;l.treeContext=Nu(R,v,S);try{Ci(m,l,d[S])}finally{l.treeContext=R}}}function Ql(m,l,d){var v=l.blockedSegment,S=v.chunks.length,R=rl(m,S,null,v.formatContext,v.lastPushedText,!0);v.children.push(R),v.lastPushedText=!1;var B=Ho(m,l.node,l.blockedBoundary,R,l.abortSet,l.legacyContext,l.context,l.treeContext);l.componentStack!==null&&(B.componentStack=l.componentStack.parent);var Y=B.ping;d.then(Y,Y)}function Ci(m,l,d){var v=l.blockedSegment.formatContext,S=l.legacyContext,R=l.context,B=null;B=l.componentStack;try{return dr(m,l,d)}catch(Y){if(Hu(),typeof Y=="object"&&Y!==null&&typeof Y.then=="function"){Ql(m,l,Y),l.blockedSegment.formatContext=v,l.legacyContext=S,l.context=R,sa(R),l.componentStack=B;return}else throw l.blockedSegment.formatContext=v,l.legacyContext=S,l.context=R,sa(R),l.componentStack=B,Y}}function Kc(m,l,d,v){var S=ol(m,v);if(l===null?Os(m,v):(l.pendingTasks--,l.forceClientRender||(l.forceClientRender=!0,l.errorDigest=S,ql(l,v),l.parentFlushed&&m.clientRenderedBoundaries.push(l))),m.allPendingTasks--,m.allPendingTasks===0){var R=m.onAllReady;R()}}function pa(m){var l=this,d=m.blockedBoundary,v=m.blockedSegment;v.status=Wa,Xa(l,d,v)}function eu(m,l,d){var v=m.blockedBoundary,S=m.blockedSegment;if(S.status=Wa,v===null)l.allPendingTasks--,l.status!==Es&&(l.status=Es,l.destination!==null&&D(l.destination));else{if(v.pendingTasks--,!v.forceClientRender){v.forceClientRender=!0;var R=d===void 0?new Error("The render was aborted by the server without a reason."):d;v.errorDigest=l.onError(R);{var B="The server did not finish this Suspense boundary: ";R&&typeof R.message=="string"?R=B+R.message:R=B+String(R);var Y=Xi;Xi=m;try{ql(v,R)}finally{Xi=Y}}v.parentFlushed&&l.clientRenderedBoundaries.push(v)}if(v.fallbackAbortableTasks.forEach(function(we){return eu(we,l,d)}),v.fallbackAbortableTasks.clear(),l.allPendingTasks--,l.allPendingTasks===0){var ie=l.onAllReady;ie()}}}function ga(m,l){if(l.chunks.length===0&&l.children.length===1&&l.children[0].boundary===null){var d=l.children[0];d.id=l.id,d.parentFlushed=!0,d.status===So&&ga(m,d)}else{var v=m.completedSegments;v.push(l)}}function Xa(m,l,d){if(l===null){if(d.parentFlushed){if(m.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");m.completedRootSegment=d}if(m.pendingRootTasks--,m.pendingRootTasks===0){m.onShellError=za;var v=m.onShellReady;v()}}else if(l.pendingTasks--,!l.forceClientRender){if(l.pendingTasks===0)d.parentFlushed&&d.status===So&&ga(l,d),l.parentFlushed&&m.completedBoundaries.push(l),l.fallbackAbortableTasks.forEach(pa,m),l.fallbackAbortableTasks.clear();else if(d.parentFlushed&&d.status===So){ga(l,d);var S=l.completedSegments;S.length===1&&l.parentFlushed&&m.partialBoundaries.push(l)}}if(m.allPendingTasks--,m.allPendingTasks===0){var R=m.onAllReady;R()}}function Uf(m,l){var d=l.blockedSegment;if(d.status===Wl){sa(l.context);var v=null;v=Xi,Xi=l;try{dr(m,l,l.node),Rn(d.chunks,m.responseState,d.lastPushedText,d.textEmbedded),l.abortSet.delete(l),d.status=So,Xa(m,l.blockedBoundary,d)}catch(R){if(Hu(),typeof R=="object"&&R!==null&&typeof R.then=="function"){var S=l.ping;R.then(S,S)}else l.abortSet.delete(l),d.status=$c,Kc(m,l.blockedBoundary,d,R)}finally{Xi=v}}}function ec(m){if(m.status!==Es){var l=Ic(),d=Ul.current;Ul.current=nr;var v;v=Ts.getCurrentStack,Ts.getCurrentStack=Ki;var S=Ua;Hl(m.responseState);try{var R=m.pingedTasks,B;for(B=0;B<R.length;B++){var Y=R[B];Uf(m,Y)}R.splice(0,B),m.destination!==null&&Ii(m,m.destination)}catch(ie){ol(m,ie),Os(m,ie)}finally{Hl(S),Ul.current=d,Ts.getCurrentStack=v,d===nr&&sa(l)}}}function sl(m,l,d){switch(d.parentFlushed=!0,d.status){case Wl:{var v=d.id=m.nextSegmentId++;return d.lastPushedText=!1,d.textEmbedded=!1,cr(l,m.responseState,v)}case So:{d.status=zl;for(var S=!0,R=d.chunks,B=0,Y=d.children,ie=0;ie<Y.length;ie++){for(var we=Y[ie];B<we.index;B++)g(l,R[B]);S=ll(m,l,we)}for(;B<R.length-1;B++)g(l,R[B]);return B<R.length&&(S=x(l,R[B])),S}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function ll(m,l,d){var v=d.boundary;if(v===null)return sl(m,l,d);if(v.parentFlushed=!0,v.forceClientRender)return We(l,m.responseState,v.errorDigest,v.errorMessage,v.errorComponentStack),sl(m,l,d),kt(l,m.responseState);if(v.pendingTasks>0){v.rootSegmentID=m.nextSegmentId++,v.completedSegments.length>0&&m.partialBoundaries.push(v);var S=v.id=rn(m.responseState);return Se(l,m.responseState,S),sl(m,l,d),Ct(l,m.responseState)}else{if(v.byteSize>m.progressiveChunkSize)return v.rootSegmentID=m.nextSegmentId++,m.completedBoundaries.push(v),Se(l,m.responseState,v.id),sl(m,l,d),Ct(l,m.responseState);Ie(l,m.responseState);var R=v.completedSegments;if(R.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var B=R[0];return ll(m,l,B),st(l,m.responseState)}}function tc(m,l,d){return Rl(l,m.responseState,d.id,d.errorDigest,d.errorMessage,d.errorComponentStack)}function tu(m,l,d){return Tt(l,m.responseState,d.formatContext,d.id),ll(m,l,d),bt(l,d.formatContext)}function nc(m,l,d){for(var v=d.completedSegments,S=0;S<v.length;S++){var R=v[S];Ur(m,l,d,R)}return v.length=0,go(l,m.responseState,d.id,d.rootSegmentID)}function Zc(m,l,d){for(var v=d.completedSegments,S=0;S<v.length;S++){var R=v[S];if(!Ur(m,l,d,R))return S++,v.splice(0,S),!1}return v.splice(0,S),!0}function Ur(m,l,d,v){if(v.status===zl)return!0;var S=v.id;if(S===-1){var R=v.id=d.rootSegmentID;if(R===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return tu(m,l,v)}else return tu(m,l,v),Ws(l,m.responseState,S)}function Ii(m,l){y();try{var d=m.completedRootSegment;d!==null&&m.pendingRootTasks===0&&(ll(m,l,d),m.completedRootSegment=null,bi(l,m.responseState));var v=m.clientRenderedBoundaries,S;for(S=0;S<v.length;S++){var R=v[S];tc(m,l,R)}v.splice(0,S);var B=m.completedBoundaries;for(S=0;S<B.length;S++){var Y=B[S];nc(m,l,Y)}B.splice(0,S),C(l),y(l);var ie=m.partialBoundaries;for(S=0;S<ie.length;S++){var we=ie[S];if(!Zc(m,l,we)){m.destination=null,S++,ie.splice(0,S);return}}ie.splice(0,S);var Ve=m.completedBoundaries;for(S=0;S<Ve.length;S++){var Xe=Ve[S];nc(m,l,Xe)}Ve.splice(0,S)}finally{C(l),m.allPendingTasks===0&&m.pingedTasks.length===0&&m.clientRenderedBoundaries.length===0&&m.completedBoundaries.length===0&&(m.abortableTasks.size!==0&&i("There was still abortable task at the root when we closed. This is a bug in React."),D(l))}}function Jc(m){s(function(){return ec(m)})}function Wf(m,l){if(m.status===Cs){m.status=Es,H(l,m.fatalError);return}if(m.status!==Es&&m.destination===null){m.destination=l;try{Ii(m,l)}catch(d){ol(m,d),Os(m,d)}}}function ul(m,l){try{var d=m.abortableTasks;d.forEach(function(v){return eu(v,m,l)}),d.clear(),m.destination!==null&&Ii(m,m.destination)}catch(v){ol(m,v),Os(m,v)}}function _s(m,l){return new Promise(function(d,v){var S,R,B=new Promise(function(it,St){R=it,S=St});function Y(){var it=new ReadableStream({type:"bytes",pull:function(St){Wf(we,St)},cancel:function(St){ul(we)}},{highWaterMark:0});it.allReady=B,d(it)}function ie(it){B.catch(function(){}),v(it)}var we=Yl(m,_i(l?l.identifierPrefix:void 0,l?l.nonce:void 0,l?l.bootstrapScriptContent:void 0,l?l.bootstrapScripts:void 0,l?l.bootstrapModules:void 0),pi(l?l.namespaceURI:void 0),l?l.progressiveChunkSize:void 0,l?l.onError:void 0,R,Y,ie,S);if(l&&l.signal){var Ve=l.signal,Xe=function(){ul(we,Ve.reason),Ve.removeEventListener("abort",Xe)};Ve.addEventListener("abort",Xe)}Jc(we)})}Nh.renderToReadableStream=_s,Nh.version=t}()),Nh}var Tc,km;process.env.NODE_ENV==="production"?(Tc=x4(),km=S4()):(Tc=T4(),km=C4());Tc.version;var E4=Tc.renderToString;Tc.renderToStaticMarkup;Tc.renderToNodeStream;Tc.renderToStaticNodeStream;km.renderToReadableStream;var k4=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pO(e,t){return e(t={exports:{}},t.exports),t.exports}var O4=pO(function(e){(function(t){var n=function(M,I,H){if(!f(I)||y(I)||g(I)||x(I)||u(I))return I;var U,Q=0,Z=0;if(p(I))for(U=[],Z=I.length;Q<Z;Q++)U.push(n(M,I[Q],H));else for(var ce in U={},I)Object.prototype.hasOwnProperty.call(I,ce)&&(U[M(ce,H)]=n(M,I[ce],H));return U},r=function(M){return C(M)?M:(M=M.replace(/[\-_\s]+(.)?/g,function(I,H){return H?H.toUpperCase():""})).substr(0,1).toLowerCase()+M.substr(1)},i=function(M){var I=r(M);return I.substr(0,1).toUpperCase()+I.substr(1)},o=function(M,I){return function(H,U){var Q=(U=U||{}).separator||"_",Z=U.split||/(?=[A-Z])/;return H.split(Z).join(Q)}(M,I).toLowerCase()},s=Object.prototype.toString,u=function(M){return typeof M=="function"},f=function(M){return M===Object(M)},p=function(M){return s.call(M)=="[object Array]"},y=function(M){return s.call(M)=="[object Date]"},g=function(M){return s.call(M)=="[object RegExp]"},x=function(M){return s.call(M)=="[object Boolean]"},C=function(M){return(M-=0)==M},D=function(M,I){var H=I&&"process"in I?I.process:I;return typeof H!="function"?M:function(U,Q){return H(U,M,Q)}},A={camelize:r,decamelize:o,pascalize:i,depascalize:o,camelizeKeys:function(M,I){return n(D(r,I),M)},decamelizeKeys:function(M,I){return n(D(o,I),M,I)},pascalizeKeys:function(M,I){return n(D(i,I),M)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=A:t.humps=A})(k4)}).decamelize,_4=function(e){if(Array.isArray(e))return e},D4=function(e,t){if(typeof Symbol<"u"&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var s,u=e[Symbol.iterator]();!(r=(s=u.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(f){i=!0,o=f}finally{try{r||u.return==null||u.return()}finally{if(i)throw o}}return n}},o1=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},P4=function(e,t){if(e){if(typeof e=="string")return o1(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)?o1(e,t):void 0}},R4=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
136
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},I4=function(e,t){return _4(e)||D4(e,t)||P4(e,t)||R4()},gO=pO(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}),A4=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},vO=function(e,t){if(e==null)return{};var n,r,i=A4(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},M4=q.createContext(null);function mO(e){var t=e.children,n=t===void 0?"":t,r=vO(e,["children"]);return typeof n!="string"&&(n=E4(n)),q.createElement("template",gO({},r,{dangerouslySetInnerHTML:{__html:n}}))}function yO(e){var t=e.root,n=e.children;return Lm.createPortal(n===void 0?null:n,t)}function L4(e){var t=q.forwardRef(function(n,r){var i,o,s=n.mode,u=s===void 0?"open":s,f=n.delegatesFocus,p=f!==void 0&&f,y=n.styleSheets,g=y===void 0?[]:y,x=n.ssr,C=x!==void 0&&x,D=n.children,A=vO(n,["mode","delegatesFocus","styleSheets","ssr","children"]),M=(o=q.useRef((i=r)&&i.current),q.useEffect(function(){i&&(i.current=o.current)},[i]),o),I=q.useState(null),H=I4(I,2),U=H[0],Q=H[1],Z="node_".concat(u).concat(p);return q.useLayoutEffect(function(){if(M.current)try{if(typeof r=="function"&&r(M.current),C){var ce=M.current.shadowRoot;return void Q(ce)}var T=M.current.attachShadow({mode:u,delegatesFocus:p});g.length>0&&(T.adoptedStyleSheets=g),Q(T)}catch(se){(function(re){var Pe=re.error,He=re.styleSheets,Ue=re.root;switch(Pe.name){case"NotSupportedError":He.length>0&&(Ue.adoptedStyleSheets=He);break;default:throw Pe}})({error:se,styleSheets:g,root:U})}},[r,M,g]),q.createElement(q.Fragment,null,q.createElement(e.tag,gO({key:Z,ref:M},A),(U||C)&&q.createElement(M4.Provider,{value:U},C?q.createElement(mO,{shadowroot:u,shadowrootmode:u},e.render({root:U,ssr:C,children:D})):q.createElement(yO,{root:U},e.render({root:U,ssr:C,children:D})))))});return t.propTypes={mode:Ea.oneOf(["open","closed"]),delegatesFocus:Ea.bool,styleSheets:Ea.arrayOf(Ea.instanceOf(globalThis.CSSStyleSheet)),ssr:Ea.bool,children:Ea.node},t}mO.propTypes={children:Ea.oneOfType([Ea.string,Ea.node])},yO.propTypes={root:Ea.object.isRequired,children:Ea.node};var bv=new Map;function F4(){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=O4(i,{separator:"-"}),s="".concat(t,"-").concat(o);return bv.has(s)||bv.set(s,L4({tag:o,render:n})),bv.get(s)}})}var bO=F4();const N4=".app,.treeRoot{height:100%}.draggingSource{opacity:.3}.placeholderContainer{position:relative}.dropTarget{background-color:#8d878711}",j4=".favorite-bar{position:sticky;top:64px;z-index:900;transition:transform .3s ease,opacity .3s ease;border-bottom:1px solid #ddd}.favorite-bar--hidden{transform:translateY(-100%);opacity:0}.favorite-bar--visible{transform:translateY(0);opacity:1}";function B4(e){const t=new CustomEvent("updateFavoriteMenu",{detail:{menuItem:e}});window.dispatchEvent(t)}function $4(e){const t=Tp.useLocation(),[n,r]=q.useState([]),[i,o]=q.useState(window.location.href);q.useEffect(()=>{o(window.location.href)},[t]);const s=x=>`${x}`;function u(x,C){for(const D of x){if(D.id===C)return D;if(D.children){const A=u(D.children,C);if(A)return A}}return null}function f(x,C){const D=u(n,x);D?(D.isFavorite=C,B4(D),Wy(x,C)):console.error(`Item with id ${x} not found`)}const p=x=>{console.log("Favorite menus changed",x),r(x.detail.favoriteMenus||[])};q.useEffect(()=>(window.addEventListener("favoriteMenusChange",p),()=>{window.removeEventListener("favoriteMenusChange",p)}),[]),console.log("favoriteItems",n);function y(x,C){return 1}const g=(x,C,D)=>{const A=M=>D.some(I=>I.id===M);return Ne.jsx(hO,{isActive:A,replacePath:e.replacePath,ssr:e.ssr,brandColors:e.brandColors,baseUrl:e.baseUrl,item:x,level:C,onSetFavoriteSuccess:f})};return Ne.jsx(Ne.Fragment,{children:n.length?Ne.jsx("div",{className:s("favorite-menu"),children:Ne.jsx("div",{className:s("wrap-section favorite-menu__menu"),style:{flex:1,overflow:"auto",width:"100%",overflowY:"hidden",display:"flex",alignItems:"center",scrollbarWidth:"thin"},children:n.map(x=>Ne.jsx("div",{children:g(x,y(),[])},x.id))})}):""})}function V4(e=32){const[t,n]=q.useState(!0),[r,i]=q.useState(0),o=()=>{const s=window.scrollY;s>r&&s>e?n(!1):s<r&&n(!0),i(s)};return q.useEffect(()=>(window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)),[r]),{isFavoriteBarVisible:t}}function H4(e){const{isFavoriteBarVisible:t}=V4();return Ne.jsxs(Ne.Fragment,{children:[Ne.jsx("style",{children:j4}),Ne.jsx("div",{className:`favorite-bar ${t?"favorite-bar--visible":"favorite-bar--hidden"}`,children:Ne.jsx(bO.div,{children:Ne.jsx($m,{styles:[yT,w4,N4],children:Ne.jsx($4,{...e})})})})]})}function Wy(e,t){const n=JSON.parse(localStorage.getItem("favoriteItems")||"[]");if(t)n.includes(e)||n.push(e);else{const r=n.indexOf(e);r>-1&&n.splice(r,1)}localStorage.setItem("favoriteItems",JSON.stringify(n))}function wO({...e}){var Ce,$e,je,ke,De;const t=e.item,n=e.level||0,r=!!((Ce=e.item.children)!=null&&Ce.length),{isActive:i,isCollapsed:o}=e,s=`level-${n}`,u=o?"collapsed":"expanded",f=i(t.id)?"active":"",p=r?"parent":"child",y=e.params.isOpen?"isOpen":"isClose",g=e.isInternalApp?"isInternalApp":"",x=(Fe,rt=s)=>`${Fe} ${rt} ${u} ${f} ${p} ${y} ${g}`,[C,D]=q.useState(!1),[A,M]=q.useState(t.isFavorite||!1);q.useEffect(()=>{M(!!e.item.isFavorite)},[e.item.isFavorite]);const I=q.useRef(),H=q.useRef();H!=null&&H.current&&(($e=H==null?void 0:H.current)==null?void 0:$e.scrollWidth)>((je=H==null?void 0:H.current)==null?void 0:je.clientWidth);const U=window.location.origin,Q=t.path&&t.path.includes("http")?new URL(t.path):{origin:"",pathname:""},Z=window.location.pathname.split("/")[1],ce=Q.pathname.split("/")[1],T=e.item.redirectUrl||e.ssr||!U.includes("local")&&U!==Q.origin||ce!==Z,se=r?"div":!e.isInternalApp&&T?"a":Tp.Link,re=t.redirectUrl||t.path||"#",Pe=n+1,He=r&&o&&C,Ue=o||n===0?void 0:`${n+.25}rem`,Qe=()=>{D(!0)},Ke=()=>{D(!1)},he="/global-menu-config/api/v1/menu-items/user/set-favorite",me=t.serviceKey==="mn_poms";e.params.depth*20,e.params.depth,mH(t.id,e.params.isOpen,e.params.onToggle);const Le=Fe=>{Fe.stopPropagation(),e.params.onToggle()},tt=me||o&&n===0?t.name==="POMs"?"Parking Operations Management":t.description||t.name:null;Object.entries(e.brandColors||{}).reduce((Fe,[rt,at])=>(at&&(Fe[`--${rt}`]=at),Fe),{});const xe=U!==Q.origin||e.item.redirectUrl?"_blank":"_self";return Ne.jsxs("div",{ref:I,className:x("menu-item__wrapper tree-node"),style:{borderRadius:"8px",transition:"all 0.3s"},onMouseOver:Qe,onMouseOut:Ke,onDragStart:Fe=>{o&&n>1&&Fe.preventDefault()},children:[Ne.jsx(is.Tooltip,{placement:"top",title:tt,disableInteractive:!0,children:Ne.jsxs(se,{target:xe,to:re,href:re,draggable:"true",className:x("menu-item__link"),style:{paddingLeft:Ue,transition:"all 0.3s",color:i(t.id)?((ke=e.brandColors)==null?void 0:ke.primary400)||Wr.primary400:void 0,backgroundColor:i(t.id)&&n===0?(De=e.brandColors)==null?void 0:De.primary200:void 0},onClick:Fe=>{o||Le(Fe)},children:[Ne.jsx(U4,{cls:x,item:t}),Ne.jsx("span",{className:x("menu-item__label"),ref:H,children:t.name}),Ne.jsx(W4,{tooltipPosition:tt?"right":"top",menuLevel:n,hasChildren:r,isHovered:C,isFavorite:A,onClick:Fe=>{const rt={menuConfigId:t.id,isFavorite:Fe},at=e.baseUrl+he;rs.post(at,rt).then(ht=>{var lt;M(Fe),Wm("Set favorite menu item successfully"),(lt=e.onSetFavoriteSuccess)==null||lt.call(e,e.item.id,Fe),Wy(e.item.id,Fe)}).catch(ht=>{var lt,mt;Bd(((mt=(lt=ht.response)==null?void 0:lt.data)==null?void 0:mt.errorMessage)||"Have error when set favorite menu item")})}}),r&&Ne.jsx("div",{className:x("menu-item__icon-arrow__wrapper"),children:Ne.jsx($5,{className:x(`menu-item__icon-arrow__icon ${e.params.isOpen?"open":"close"}`)})})]})}),He&&Ne.jsx(V5,{parentRef:I,onlyChild:!o,renderChildren:({maxHeight:Fe})=>{var rt;return Ne.jsx(iO.div,{className:x(`menu-item__dropdown ${e.params.isOpen?"menu-item__dropdown--open":"menu-item__dropdown--close"}`,`level-${Pe}`),style:Hy({maxHeight:Fe,overflowY:"auto",paddingRight:3},Fe!=="auto"&&!!Pe),children:(rt=t.children)==null?void 0:rt.map(at=>q.createElement(wO,{...e,key:at.id,item:at,level:Pe}))})}})]})}function U4({item:e,cls:t}){return Ne.jsx("div",{className:t("menu-item__icon"),children:Ne.jsx(dO,{item:e})})}function W4(e){const t={marginRight:e.hasChildren?10:0,fontSize:18,fill:Wr.warning};return Ne.jsxs(Ne.Fragment,{children:[e.isHovered&&!e.isFavorite&&Ne.jsx(is.Tooltip,{placement:e.tooltipPosition||"top",title:"Add to favorites",disableInteractive:!0,children:Ne.jsx("div",{children:Ne.jsx(oO,{style:t,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=e.onClick)==null||r.call(e,!0)}})})}),e.isFavorite&&Ne.jsx(is.Tooltip,{placement:e.tooltipPosition||"top",title:"Remove from favorites",disableInteractive:!0,children:Ne.jsx("div",{children:Ne.jsx(aO,{style:t,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=e.onClick)==null||r.call(e,!1)}})})})]})}function z4(){return Ne.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:Ne.jsx("path",{d:"M21 18v2H3v-2h18zM6.596 3.903L8.01 5.318 4.828 8.5 8.01 11.68l-1.414 1.415L2 8.5l4.596-4.597zM21 11v2h-9v-2h9zm0-7v2h-9V4h9z"})})}function Y4(){return Ne.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:Ne.jsx("path",{d:"M3 4h18v2H3V4zm0 7h18v2H3v-2zm0 7h18v2H3v-2z"})})}function G4(e){return Ne.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"20",fill:"none",viewBox:"0 0 18 20",...e,children:Ne.jsx("path",{fill:"#E01B00",fillRule:"evenodd",d:"M.179 2.875A2.375 2.375 0 012.554.5h3.393a1.018 1.018 0 010 2.036H2.554a.34.34 0 00-.34.339v14.25c0 .187.152.34.34.34h3.393a1.018 1.018 0 110 2.035H2.554a2.375 2.375 0 01-2.375-2.375V2.875zm14.167 6.107h-7.72a1.018 1.018 0 000 2.036h7.72l-2.673 2.673a1.018 1.018 0 101.44 1.44l4.41-4.411a1.018 1.018 0 000-1.44l-4.41-4.41a1.018 1.018 0 10-1.44 1.439l2.673 2.673z",clipRule:"evenodd"})})}const q4=".flex-col-center{display:flex;flex-direction:column;justify-content:center}.wrap-section{padding:0 8px;transition:all .3s}.wrap-section.collapsed{padding:0 4px}.side-bar{position:fixed;top:64px;left:0;height:calc(100vh - 64px);max-width:18rem;display:flex;flex-direction:column;border-right:1px solid #ddd;background-color:#fafafa;transition:all .3s}.side-bar.expanded{width:17rem}.side-bar.collapsed{width:64px}.side-bar__wrap-btn-logout,.side-bar__btn-logout{margin: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__label.level-0.isInternalApp{font-weight:unset!important}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:0}.menu-item__icon-arrow__wrapper.expanded{right:4px}.menu-item__icon-arrow__icon{transition:all .3s!important;transform:rotate(-90deg)!important}.menu-item__icon-arrow__icon.active{color:inherit}.menu-item__icon-arrow__icon.expanded.open{transform:rotate(0)!important}.menu-item__dropdown.collapsed{background-color:#fafafa;border:1px solid #ddd;box-shadow:#0000001a 0 10px 15px -3px,#0000000d 0 4px 6px -2px;border-radius:4px;width:210px;max-width:210px;padding:4px;z-index:1200}.menu-item__dropdown::-webkit-scrollbar{width:4px}.menu-item__dropdown::-webkit-scrollbar-thumb{background-color:#9b9b9b99;border-radius:2px}.menu-item__dropdown,.menu-item__dropdown>*{margin-top:4px}.menu-item__dropdown.expanded.menu-item__dropdown--close{margin-top:0;transition:margin-top .3s}.menu-item__dropdown:first-of-type{margin-top:0}.menu-item__dropdown>*:first-child{margin-top:0}.menu-item__dropdown.collapsed .menu-item__link{height:40px}.menu-item__dropdown.collapsed .menu-item__link.level-0{height:48px}.menu-item__dropdown.collapsed.level-0{width:auto;max-width:unset;box-shadow:none;border:none;padding:0;background-color:unset}.menu-item__dropdown.expanded{overflow:hidden}.icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;background-color:transparent;transition:background-color .3s ease;border:none}.icon-btn:hover{background-color:var(--btn-bg-hover)}.simplebar-scrollbar:before{background-color:#0000002d}.side-bar__menu.collapsed .simplebar-track.simplebar-vertical{display:none}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}",X4=e=>{const t=e.isCollapsed?0:e.depth*16;return Ne.jsx("div",{style:{backgroundColor:e.color||"#93D500",height:"2px",position:"absolute",right:"0",top:"0",left:t}})},K4=".app,.treeRoot{height:100%}.draggingSource{opacity:.3}.placeholderContainer{position:relative}.dropTarget{background-color:#8d878711}",Z4=e=>{const[t,n]=q.useState(()=>{const r=localStorage.getItem("openingMenuIds");return r&&r!=="[]"?JSON.parse(r):(e==null?void 0:e.initOpenIds)||[]});return q.useEffect(()=>{localStorage.setItem("openingMenuIds",JSON.stringify(t))},[t]),[t,n]};function xO(e){document.documentElement.style.setProperty("--global-menu-width",!e||e==="true"?"64px":"17rem")}const Gh=localStorage.getItem("isCollapsed");xO(Gh);function J4(e){const t=new CustomEvent("favoriteMenusChange",{detail:{favoriteMenus:e}});window.dispatchEvent(t)}function Q4(e){const t=Tp.useLocation(),[n,r]=q.useState([]),i=n.map(se=>se.data),[o,s]=q.useState(!1),[u,f]=q.useState(Gh===null?!0:Gh==="true"),[p,y]=q.useState(window.location.href),g=q.useRef(null);q.useEffect(()=>{var se;(se=e.handleCallback)==null||se.call(e,i)},[i,e.handleCallback]),q.useEffect(()=>{y(window.location.href)},[t]);const x=t6(i,p),[C,D]=Z4({initOpenIds:e.initOpenIds}),A=()=>{var se,re;if(f(!u),localStorage.setItem("isCollapsed",JSON.stringify(!u)),xO(u),u)C&&((se=g.current)==null||se.open(C));else{const Pe=n.filter(He=>He.parent===0).map(He=>He.id);console.log("closeIds:",Pe),(re=g.current)==null||re.close(Pe)}},[M,I]=q.useState(!1),H=u?"collapsed":"expanded",U=se=>`${se} ${H}`,Q=q.useRef(null);q.useLayoutEffect(()=>{(async()=>{var re,Pe;try{const He=e.menuPath||"/global-menu-config/api/v1/menu-items/user",Ue=e.baseUrl+He,{data:Qe}=await rs.get(Ue);let Ke=Qe.map(me=>({...me,parentKey:me.parentKey||0}));Ke=TO(Ke),e.replacePath&&(Ke=SO(Ke,e.replacePath));const he=Ke.map(me=>({id:me.id,parent:me.parentKey,text:me.name,data:me}));r(he)}catch(He){console.error("Global menu",He),Bd(((Pe=(re=He.response)==null?void 0:re.data)==null?void 0:Pe.errorMessage)||"Have error when get menu items")}})()},[e.baseUrl,e.menuPath,e.replacePath]),q.useEffect(()=>{const se=i.filter(He=>He.isFavorite);function re(He){return i.every(Ue=>Ue.parentKey!==He.id)?He:{...He,children:i.filter(Ue=>Ue.parentKey===He.id).map(Ue=>re(Ue))}}const Pe=se.map(He=>re(He));J4(Pe)},[i]);function Z(se){const re=se.detail.menuItem;r(Pe=>Pe.map(He=>He.id!==re.id?He:{...He,data:re}))}q.useEffect(()=>(window.addEventListener("updateFavoriteMenu",Z),()=>{window.removeEventListener("updateFavoriteMenu",Z)}),[]),q.useLayoutEffect(()=>{var He;const se=localStorage.getItem("scrollPos");se&&Q.current&&setTimeout(()=>{const Ue=Q.current.getScrollElement();Ue.scrollTop=parseInt(se)},0);const re=()=>{if(Q.current){const Ue=Q.current.getScrollElement();localStorage.setItem("scrollPos",Ue.scrollTop.toString())}},Pe=(He=Q.current)==null?void 0:He.getScrollElement();return Pe==null||Pe.addEventListener("scroll",re),()=>{Pe==null||Pe.removeEventListener("scroll",re)}},[i]);function ce(se){s(!0);const re=[...n];r(se);const Pe=se.map((He,Ue)=>({menuItemId:He.id,order:Ue}));rs.post("/global-menu-config/api/v1/menu-items/user",Pe,{baseURL:e.baseUrl}).then(()=>{}).catch(He=>{console.error(He),r(re)}).finally(()=>{s(!1)})}const T=q.useMemo(()=>Gh==="false"?C:[],[]);return Ne.jsxs("div",{className:U("side-bar"),children:[Ne.jsx("div",{className:U("wrap-section side-bar__wrapper-toggle-btn"),children:Ne.jsx("button",{className:"icon-btn side-bar__toggle-btn",onClick:A,children:u?Ne.jsx(Y4,{}):Ne.jsx(z4,{})})}),Ne.jsx(mT,{ref:Q,className:U("wrap-section side-bar__menu"),style:{marginTop:24,flex:1,overflow:"auto",height:"100%",overflowX:"hidden"},children:Ne.jsx(e3,{backend:V3,options:uH(),children:Ne.jsx(DH,{ref:g,classes:{root:"treeRoot",draggingSource:"draggingSource",placeholder:"placeholderContainer"},tree:n,rootId:0,sort:!1,insertDroppableFirst:!1,enableAnimateExpand:!0,dropTargetOffset:10,onDrop:ce,render:(se,re)=>{function Pe(Ke){return n.every(he=>he.parent!==Ke.id)?Ke:{...Ke,children:n.filter(he=>he.parent===Ke.id).map(he=>Pe(he.data))}}const He=Pe(se.data),Ue=Ke=>x.some(he=>he.id===Ke);function Qe(Ke,he){r(me=>me.map(Le=>Le.id===Ke?{...Le,data:{...Le.data,isFavorite:he}}:Le))}return Ne.jsx(wO,{isInternalApp:e.isInternalApp,isActive:Ue,isCollapsed:u,replacePath:e.replacePath,ssr:e.ssr,brandColors:e.brandColors,baseUrl:e.baseUrl,node:se,params:re,nodes:n,item:He,expanded:()=>!1,toggleExpand:()=>{},level:re.depth,onSetFavoriteSuccess:Qe})},placeholderRender:(se,{depth:re})=>{var Pe;return Ne.jsx(X4,{node:se,depth:re,color:(Pe=e.brandColors)==null?void 0:Pe.primary300,isCollapsed:u})},canDrag:()=>!o,canDrop:(se,{dragSource:re,dropTargetId:Pe})=>(re==null?void 0:re.parent)===Pe,onDragStart:se=>{console.log("onDragStart",se)},onChangeOpen:se=>{localStorage.getItem("isCollapsed")==="false"&&(console.log("onChangeOpen:",se),D(se))},initialOpen:T})})}),Ne.jsxs("div",{className:U("wrap-section side-bar__wrap-btn-logout"),children:[Ne.jsxs("button",{className:U("side-bar__logout-btn"),onClick:()=>I(!0),children:[Ne.jsx(G4,{className:U("side-bar__icon-logout")}),Ne.jsx("span",{className:U("side-bar__logout-btn__text"),children:"Logout"})]}),Ne.jsx(E1,{isOpen:M,onClose:()=>I(!1),onConfirm:()=>e.logout?e.logout():L1(e.baseUrl)})]})]})}function e6(e,t){const n=new URL(e,window.location.origin),r=new URL(t,window.location.origin);return n.pathname===r.pathname&&n.search===r.search?3:n.pathname===r.pathname?2:r.pathname.startsWith(n.pathname)?1:0}function t6(e,t){const n=e.map(s=>({item:s,priority:s.path?e6(s.path,t):0})).filter(s=>s.priority>0),r=n.length>0?n.reduce((s,u)=>u.priority>s.priority?u:s).item:null,i=[];let o=r;for(;o;)i.unshift(o),o=e.find(s=>s.id===(o==null?void 0:o.parentKey))||null;return i}function SO(e,t){return e.map(n=>{var r;return(r=n.children)!=null&&r.length?(n.path="",n.children=SO(n.children,t)):n.path=t(n.path),n})}function TO(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=TO(n.children)),n))}function n6(e){return Ne.jsx(bO.div,{children:Ne.jsx($m,{styles:[yT,q4,K4],style:{position:"sticky",zIndex:1300},children:Ne.jsx(Q4,{...e})})})}const r6={"page-container":"_page-container_1pwo1_1","page-main-content":"_page-main-content_1pwo1_8","page-title":"_page-title_1pwo1_19","text-base":"_text-base_1pwo1_26","mt-4":"_mt-4_1pwo1_33"};var wp={exports:{}};/**
|
|
137
|
-
* @license
|
|
138
|
-
* Lodash <https://lodash.com/>
|
|
139
|
-
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
140
|
-
* Released under MIT license <https://lodash.com/license>
|
|
141
|
-
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
142
|
-
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
143
|
-
*/wp.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",u="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",p=500,y="__lodash_placeholder__",g=1,x=2,C=4,D=1,A=2,M=1,I=2,H=4,U=8,Q=16,Z=32,ce=64,T=128,se=256,re=512,Pe=30,He="...",Ue=800,Qe=16,Ke=1,he=2,me=3,Le=1/0,Ge=9007199254740991,tt=17976931348623157e292,xe=NaN,Ce=4294967295,$e=Ce-1,je=Ce>>>1,ke=[["ary",T],["bind",M],["bindKey",I],["curry",U],["curryRight",Q],["flip",re],["partial",Z],["partialRight",ce],["rearg",se]],De="[object Arguments]",Fe="[object Array]",rt="[object AsyncFunction]",at="[object Boolean]",ht="[object Date]",lt="[object DOMException]",mt="[object Error]",et="[object Function]",At="[object GeneratorFunction]",Lt="[object Map]",Hn="[object Number]",gr="[object Null]",Un="[object Object]",Cn="[object Promise]",ji="[object Proxy]",Er="[object RegExp]",Zn="[object Set]",sn="[object String]",dn="[object Symbol]",hn="[object Undefined]",dt="[object WeakMap]",_n="[object WeakSet]",ai="[object ArrayBuffer]",an="[object DataView]",Bi="[object Float32Array]",$i="[object Float64Array]",Vi="[object Int8Array]",kr="[object Int16Array]",jn="[object Int32Array]",Or="[object Uint8Array]",vr="[object Uint8ClampedArray]",Yr="[object Uint16Array]",Gr="[object Uint32Array]",Po=/\b__p \+= '';/g,Wn=/\b(__p \+=) '' \+/g,qr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Jn=/&(?:amp|lt|gt|quot|#39);/g,Wt=/[&<>"']/g,si=RegExp(Jn.source),Hi=RegExp(Wt.source),Dn=/<%-([\s\S]+?)%>/g,pn=/<%([\s\S]+?)%>/g,li=/<%=([\s\S]+?)%>/g,ui=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,En=/^\w*$/,oo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,mr=/[\\^$.*+?()[\]{}|]/g,ci=RegExp(mr.source),ln=/^\s+/,ki=/\s/,Da=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Pa=/\{\n\/\* \[wrapped with (.+)\] \*/,Xr=/,? & /,ao=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,so=/[()=,{}\[\]\/\s]/,Oi=/\\(\\)?/g,Qn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,_r=/\w*$/,Dr=/^[-+]0x[0-9a-f]+$/i,fi=/^0b[01]+$/i,Kr=/^\[object .+?Constructor\]$/,yr=/^0o[0-7]+$/i,Pr=/^(?:0|[1-9]\d*)$/,er=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ui=/($^)/,_i=/['\n\r\u2028\u2029\\]/g,sr="\\ud800-\\udfff",wn="\\u0300-\\u036f",Rr="\\ufe20-\\ufe2f",Ir="\\u20d0-\\u20ff",di=wn+Rr+Ir,hi="\\u2700-\\u27bf",br="a-z\\xdf-\\xf6\\xf8-\\xff",Zr="\\xac\\xb1\\xd7\\xf7",zn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",pi="\\u2000-\\u206f",gi=" \\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",Di="A-Z\\xc0-\\xd6\\xd8-\\xde",rn="\\ufe0e\\ufe0f",Bn=Zr+zn+pi+gi,kn="['’]",lo="["+sr+"]",Pn="["+Bn+"]",Rn="["+di+"]",k="\\d+",N="["+hi+"]",G="["+br+"]",te="[^"+sr+Bn+k+hi+br+Di+"]",Ee="\\ud83c[\\udffb-\\udfff]",ge="(?:"+Rn+"|"+Ee+")",Re="[^"+sr+"]",Ze="(?:\\ud83c[\\udde6-\\uddff]){2}",vt="[\\ud800-\\udbff][\\udc00-\\udfff]",yt="["+Di+"]",pt="\\u200d",Nt="(?:"+G+"|"+te+")",$n="(?:"+yt+"|"+te+")",Yn="(?:"+kn+"(?:d|ll|m|re|s|t|ve))?",On="(?:"+kn+"(?:D|LL|M|RE|S|T|VE))?",Jr=ge+"?",lr="["+rn+"]?",Wi="(?:"+pt+"(?:"+[Re,Ze,vt].join("|")+")"+lr+Jr+")*",vi="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",zi="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ar=lr+Jr+Wi,Yi="(?:"+[N,Ze,vt].join("|")+")"+Ar,Hs="(?:"+[Re+Rn+"?",Rn,Ze,vt,lo].join("|")+")",Ra=RegExp(kn,"g"),Qo=RegExp(Rn,"g"),wr=RegExp(Ee+"(?="+Ee+")|"+Hs+Ar,"g"),Us=RegExp([yt+"?"+G+"+"+Yn+"(?="+[Pn,yt,"$"].join("|")+")",$n+"+"+On+"(?="+[Pn,yt+Nt,"$"].join("|")+")",yt+"?"+Nt+"+"+Yn,yt+"+"+On,zi,vi,k,Yi].join("|"),"g"),mi=RegExp("["+pt+sr+di+rn+"]"),Ia=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ea=["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"],on=-1,qt={};qt[Bi]=qt[$i]=qt[Vi]=qt[kr]=qt[jn]=qt[Or]=qt[vr]=qt[Yr]=qt[Gr]=!0,qt[De]=qt[Fe]=qt[ai]=qt[at]=qt[an]=qt[ht]=qt[mt]=qt[et]=qt[Lt]=qt[Hn]=qt[Un]=qt[Er]=qt[Zn]=qt[sn]=qt[dt]=!1;var Zt={};Zt[De]=Zt[Fe]=Zt[ai]=Zt[an]=Zt[at]=Zt[ht]=Zt[Bi]=Zt[$i]=Zt[Vi]=Zt[kr]=Zt[jn]=Zt[Lt]=Zt[Hn]=Zt[Un]=Zt[Er]=Zt[Zn]=Zt[sn]=Zt[dn]=Zt[Or]=Zt[vr]=Zt[Yr]=Zt[Gr]=!0,Zt[mt]=Zt[et]=Zt[dt]=!1;var Pi={À:"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"},Qr={"&":"&","<":"<",">":">",'"':""","'":"'"},Ro={"&":"&","<":"<",">":">",""":'"',"'":"'"},yi={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ur=parseFloat,Aa=parseInt,uo=typeof Ei=="object"&&Ei&&Ei.Object===Object&&Ei,as=typeof self=="object"&&self&&self.Object===Object&&self,un=uo||as||Function("return this")(),Io=t&&!t.nodeType&&t,bi=Io&&!0&&e&&!e.nodeType&&e,ss=bi&&bi.exports===Io,co=ss&&uo.process,cr=function(){try{var K=bi&&bi.require&&bi.require("util").types;return K||co&&co.binding&&co.binding("util")}catch{}}(),h=cr&&cr.isArrayBuffer,b=cr&&cr.isDate,E=cr&&cr.isMap,_=cr&&cr.isRegExp,F=cr&&cr.isSet,j=cr&&cr.isTypedArray;function V(K,ue,le){switch(le.length){case 0:return K.call(ue);case 1:return K.call(ue,le[0]);case 2:return K.call(ue,le[0],le[1]);case 3:return K.call(ue,le[0],le[1],le[2])}return K.apply(ue,le)}function ae(K,ue,le,Ae){for(var Be=-1,ut=K==null?0:K.length;++Be<ut;){var ft=K[Be];ue(Ae,ft,le(ft),K)}return Ae}function ne(K,ue){for(var le=-1,Ae=K==null?0:K.length;++le<Ae&&ue(K[le],le,K)!==!1;);return K}function pe(K,ue){for(var le=K==null?0:K.length;le--&&ue(K[le],le,K)!==!1;);return K}function _e(K,ue){for(var le=-1,Ae=K==null?0:K.length;++le<Ae;)if(!ue(K[le],le,K))return!1;return!0}function Ie(K,ue){for(var le=-1,Ae=K==null?0:K.length,Be=0,ut=[];++le<Ae;){var ft=K[le];ue(ft,le,K)&&(ut[Be++]=ft)}return ut}function Se(K,ue){var le=K==null?0:K.length;return!!le&&en(K,ue,0)>-1}function We(K,ue,le){for(var Ae=-1,Be=K==null?0:K.length;++Ae<Be;)if(le(ue,K[Ae]))return!0;return!1}function st(K,ue){for(var le=-1,Ae=K==null?0:K.length,Be=Array(Ae);++le<Ae;)Be[le]=ue(K[le],le,K);return Be}function Ct(K,ue){for(var le=-1,Ae=ue.length,Be=K.length;++le<Ae;)K[Be+le]=ue[le];return K}function kt(K,ue,le,Ae){var Be=-1,ut=K==null?0:K.length;for(Ae&&ut&&(le=K[++Be]);++Be<ut;)le=ue(le,K[Be],Be,K);return le}function In(K,ue,le,Ae){var Be=K==null?0:K.length;for(Ae&&Be&&(le=K[--Be]);Be--;)le=ue(le,K[Be],Be,K);return le}function cn(K,ue){for(var le=-1,Ae=K==null?0:K.length;++le<Ae;)if(ue(K[le],le,K))return!0;return!1}var Mr=O("length");function Lr(K){return K.split("")}function Ft(K){return K.match(ao)||[]}function Fr(K,ue,le){var Ae;return le(K,function(Be,ut,ft){if(ue(Be,ut,ft))return Ae=ut,!1}),Ae}function jt(K,ue,le,Ae){for(var Be=K.length,ut=le+(Ae?1:-1);Ae?ut--:++ut<Be;)if(ue(K[ut],ut,K))return ut;return-1}function en(K,ue,le){return ue===ue?_u(K,ue,le):jt(K,ho,le)}function fo(K,ue,le,Ae){for(var Be=le-1,ut=K.length;++Be<ut;)if(Ae(K[Be],ue))return Be;return-1}function ho(K){return K!==K}function xr(K,ue){var le=K==null?0:K.length;return le?ye(K,ue)/le:xe}function O(K){return function(ue){return ue==null?n:ue[K]}}function L(K){return function(ue){return K==null?n:K[ue]}}function W(K,ue,le,Ae,Be){return Be(K,function(ut,ft,ot){le=Ae?(Ae=!1,ut):ue(le,ut,ft,ot)}),le}function ee(K,ue){var le=K.length;for(K.sort(ue);le--;)K[le]=K[le].value;return K}function ye(K,ue){for(var le,Ae=-1,Be=K.length;++Ae<Be;){var ut=ue(K[Ae]);ut!==n&&(le=le===n?ut:le+ut)}return le}function be(K,ue){for(var le=-1,Ae=Array(K);++le<K;)Ae[le]=ue(le);return Ae}function Me(K,ue){return st(ue,function(le){return[le,K[le]]})}function qe(K){return K&&K.slice(0,Rl(K)+1).replace(ln,"")}function gt(K){return function(ue){return K(ue)}}function Pt(K,ue){return st(ue,function(le){return K[le]})}function Tt(K,ue){return K.has(ue)}function bt(K,ue){for(var le=-1,Ae=K.length;++le<Ae&&en(ue,K[le],0)>-1;);return le}function Mn(K,ue){for(var le=K.length;le--&&en(ue,K[le],0)>-1;);return le}function xn(K,ue){for(var le=K.length,Ae=0;le--;)K[le]===ue&&++Ae;return Ae}var Vn=L(Pi),ta=L(Qr);function ls(K){return"\\"+yi[K]}function po(K,ue){return K==null?n:K[ue]}function ei(K){return mi.test(K)}function Ws(K){return Ia.test(K)}function Ri(K){for(var ue,le=[];!(ue=K.next()).done;)le.push(ue.value);return le}function us(K){var ue=-1,le=Array(K.size);return K.forEach(function(Ae,Be){le[++ue]=[Be,Ae]}),le}function na(K,ue){return function(le){return K(ue(le))}}function ti(K,ue){for(var le=-1,Ae=K.length,Be=0,ut=[];++le<Ae;){var ft=K[le];(ft===ue||ft===y)&&(K[le]=y,ut[Be++]=le)}return ut}function go(K){var ue=-1,le=Array(K.size);return K.forEach(function(Ae){le[++ue]=Ae}),le}function zs(K){var ue=-1,le=Array(K.size);return K.forEach(function(Ae){le[++ue]=[Ae,Ae]}),le}function _u(K,ue,le){for(var Ae=le-1,Be=K.length;++Ae<Be;)if(K[Ae]===ue)return Ae;return-1}function cs(K,ue,le){for(var Ae=le+1;Ae--;)if(K[Ae]===ue)return Ae;return Ae}function vo(K){return ei(K)?Ma(K):Mr(K)}function fn(K){return ei(K)?J(K):Lr(K)}function Rl(K){for(var ue=K.length;ue--&&ki.test(K.charAt(ue)););return ue}var fs=L(Ro);function Ma(K){for(var ue=wr.lastIndex=0;wr.test(K);)++ue;return ue}function J(K){return K.match(wr)||[]}function fe(K){return K.match(Us)||[]}var Te=function K(ue){ue=ue==null?un:Oe.defaults(un.Object(),ue,Oe.pick(un,ea));var le=ue.Array,Ae=ue.Date,Be=ue.Error,ut=ue.Function,ft=ue.Math,ot=ue.Object,Mt=ue.RegExp,xt=ue.String,Vt=ue.TypeError,Gn=le.prototype,tr=ut.prototype,Ln=ot.prototype,zt=ue["__core-js_shared__"],Nr=tr.toString,Ot=Ln.hasOwnProperty,Du=0,gn=function(){var a=/[^.]+$/.exec(zt&&zt.keys&&zt.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}(),Ao=Ln.toString,Pu=Nr.call(ot),Ru=un._,Iu=Mt("^"+Nr.call(Ot).replace(mr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ds=ss?ue.Buffer:n,Mo=ue.Symbol,Ys=ue.Uint8Array,Gs=ds?ds.allocUnsafe:n,La=na(ot.getPrototypeOf,ot),hs=ot.create,Il=Ln.propertyIsEnumerable,Lo=Gn.splice,Al=Mo?Mo.isConcatSpreadable:n,Gi=Mo?Mo.iterator:n,Fo=Mo?Mo.toStringTag:n,ra=function(){try{var a=rc(ot,"defineProperty");return a({},"",{}),a}catch{}}(),Af=ue.clearTimeout!==un.clearTimeout&&ue.clearTimeout,qs=Ae&&Ae.now!==un.Date.now&&Ae.now,Pc=ue.setTimeout!==un.setTimeout&&ue.setTimeout,ps=ft.ceil,Fa=ft.floor,gs=ot.getOwnPropertySymbols,Ml=ds?ds.isBuffer:n,vs=ue.isFinite,Xs=Gn.join,Rc=na(ot.keys,ot),Sn=ft.max,qn=ft.min,ia=Ae.now,Au=ue.parseInt,oa=ft.random,Ll=Gn.reverse,mo=rc(ue,"DataView"),aa=rc(ue,"Map"),ms=rc(ue,"Promise"),yo=rc(ue,"Set"),No=rc(ue,"WeakMap"),ys=rc(ot,"create"),Ks=No&&new No,Na={},sa=ic(mo),Mu=ic(aa),Mf=ic(ms),Ic=ic(yo),bs=ic(No),la=Mo?Mo.prototype:n,ja=la?la.valueOf:n,Zs=la?la.toString:n;function z(a){if(ir(a)&&!Ht(a)&&!(a instanceof $t)){if(a instanceof Sr)return a;if(Ot.call(a,"__wrapped__"))return gb(a)}return new Sr(a)}var jo=function(){function a(){}return function(c){if(!Xn(c))return{};if(hs)return hs(c);a.prototype=c;var w=new a;return a.prototype=n,w}}();function Bo(){}function Sr(a,c){this.__wrapped__=a,this.__actions__=[],this.__chain__=!!c,this.__index__=0,this.__values__=n}z.templateSettings={escape:Dn,evaluate:pn,interpolate:li,variable:"",imports:{_:z}},z.prototype=Bo.prototype,z.prototype.constructor=z,Sr.prototype=jo(Bo.prototype),Sr.prototype.constructor=Sr;function $t(a){this.__wrapped__=a,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ce,this.__views__=[]}function Fl(){var a=new $t(this.__wrapped__);return a.__actions__=Ur(this.__actions__),a.__dir__=this.__dir__,a.__filtered__=this.__filtered__,a.__iteratees__=Ur(this.__iteratees__),a.__takeCount__=this.__takeCount__,a.__views__=Ur(this.__views__),a}function Js(){if(this.__filtered__){var a=new $t(this);a.__dir__=-1,a.__filtered__=!0}else a=this.clone(),a.__dir__*=-1;return a}function Nl(){var a=this.__wrapped__.value(),c=this.__dir__,w=Ht(a),P=c<0,$=w?a.length:0,X=d_(0,$,this.__views__),oe=X.start,de=X.end,ve=de-oe,ze=P?de:oe-1,Ye=this.__iteratees__,Je=Ye.length,ct=0,wt=qn(ve,this.__takeCount__);if(!w||!P&&$==ve&&wt==ve)return qc(a,this.__actions__);var _t=[];e:for(;ve--&&ct<wt;){ze+=c;for(var Kt=-1,Dt=a[ze];++Kt<Je;){var Qt=Ye[Kt],nn=Qt.iteratee,Wo=Qt.type,eo=nn(Dt);if(Wo==he)Dt=eo;else if(!eo){if(Wo==Ke)continue e;break e}}_t[ct++]=Dt}return _t}$t.prototype=jo(Bo.prototype),$t.prototype.constructor=$t;function bo(a){var c=-1,w=a==null?0:a.length;for(this.clear();++c<w;){var P=a[c];this.set(P[0],P[1])}}function Lu(){this.__data__=ys?ys(null):{},this.size=0}function Ac(a){var c=this.has(a)&&delete this.__data__[a];return this.size-=c?1:0,c}function Mc(a){var c=this.__data__;if(ys){var w=c[a];return w===f?n:w}return Ot.call(c,a)?c[a]:n}function Lc(a){var c=this.__data__;return ys?c[a]!==n:Ot.call(c,a)}function Lf(a,c){var w=this.__data__;return this.size+=this.has(a)?0:1,w[a]=ys&&c===n?f:c,this}bo.prototype.clear=Lu,bo.prototype.delete=Ac,bo.prototype.get=Mc,bo.prototype.has=Lc,bo.prototype.set=Lf;function wo(a){var c=-1,w=a==null?0:a.length;for(this.clear();++c<w;){var P=a[c];this.set(P[0],P[1])}}function Ff(){this.__data__=[],this.size=0}function Nf(a){var c=this.__data__,w=qi(c,a);if(w<0)return!1;var P=c.length-1;return w==P?c.pop():Lo.call(c,w,1),--this.size,!0}function Fu(a){var c=this.__data__,w=qi(c,a);return w<0?n:c[w][1]}function Qs(a){return qi(this.__data__,a)>-1}function jf(a,c){var w=this.__data__,P=qi(w,a);return P<0?(++this.size,w.push([a,c])):w[P][1]=c,this}wo.prototype.clear=Ff,wo.prototype.delete=Nf,wo.prototype.get=Fu,wo.prototype.has=Qs,wo.prototype.set=jf;function $o(a){var c=-1,w=a==null?0:a.length;for(this.clear();++c<w;){var P=a[c];this.set(P[0],P[1])}}function Nu(){this.size=0,this.__data__={hash:new bo,map:new(aa||wo),string:new bo}}function jl(a){var c=Jd(this,a).delete(a);return this.size-=c?1:0,c}function Bf(a){return Jd(this,a).get(a)}function $f(a){return Jd(this,a).has(a)}function Vf(a,c){var w=Jd(this,a),P=w.size;return w.set(a,c),this.size+=w.size==P?0:1,this}$o.prototype.clear=Nu,$o.prototype.delete=jl,$o.prototype.get=Bf,$o.prototype.has=$f,$o.prototype.set=Vf;function jr(a){var c=-1,w=a==null?0:a.length;for(this.__data__=new $o;++c<w;)this.add(a[c])}function ju(a){return this.__data__.set(a,f),this}function Bl(a){return this.__data__.has(a)}jr.prototype.add=jr.prototype.push=ju,jr.prototype.has=Bl;function Xt(a){var c=this.__data__=new wo(a);this.size=c.size}function wi(){this.__data__=new wo,this.size=0}function ws(a){var c=this.__data__,w=c.delete(a);return this.size=c.size,w}function Ba(a){return this.__data__.get(a)}function Jt(a){return this.__data__.has(a)}function ua(a,c){var w=this.__data__;if(w instanceof wo){var P=w.__data__;if(!aa||P.length<i-1)return P.push([a,c]),this.size=++w.size,this;w=this.__data__=new $o(P)}return w.set(a,c),this.size=w.size,this}Xt.prototype.clear=wi,Xt.prototype.delete=ws,Xt.prototype.get=Ba,Xt.prototype.has=Jt,Xt.prototype.set=ua;function el(a,c){var w=Ht(a),P=!w&&oc(a),$=!w&&!P&&nu(a),X=!w&&!P&&!$&&tf(a),oe=w||P||$||X,de=oe?be(a.length,xt):[],ve=de.length;for(var ze in a)(c||Ot.call(a,ze))&&!(oe&&(ze=="length"||$&&(ze=="offset"||ze=="parent")||X&&(ze=="buffer"||ze=="byteLength"||ze=="byteOffset")||fl(ze,ve)))&&de.push(ze);return de}function ni(a){var c=a.length;return c?a[Ya(0,c-1)]:n}function xi(a,c){return Qd(Ur(a),Va(c,0,a.length))}function xo(a){return Qd(Ur(a))}function Bu(a,c,w){(w!==n&&!Za(a[c],w)||w===n&&!(c in a))&&Si(a,c,w)}function Br(a,c,w){var P=a[c];(!(Ot.call(a,c)&&Za(P,w))||w===n&&!(c in a))&&Si(a,c,w)}function qi(a,c){for(var w=a.length;w--;)if(Za(a[w][0],c))return w;return-1}function $a(a,c,w,P){return ca(a,function($,X,oe){c(P,$,w($),oe)}),P}function Fc(a,c){return a&&Ii(c,ii(c),a)}function $u(a,c){return a&&Ii(c,ko(c),a)}function Si(a,c,w){c=="__proto__"&&ra?ra(a,c,{configurable:!0,enumerable:!0,value:w,writable:!0}):a[c]=w}function Vu(a,c){for(var w=-1,P=c.length,$=le(P),X=a==null;++w<P;)$[w]=X?n:mg(a,c[w]);return $}function Va(a,c,w){return a===a&&(w!==n&&(a=a<=w?a:w),c!==n&&(a=a>=c?a:c)),a}function $r(a,c,w,P,$,X){var oe,de=c&g,ve=c&x,ze=c&C;if(w&&(oe=$?w(a,P,$,X):w(a)),oe!==n)return oe;if(!Xn(a))return a;var Ye=Ht(a);if(Ye){if(oe=p_(a),!de)return Ur(a,oe)}else{var Je=Ai(a),ct=Je==et||Je==At;if(nu(a))return ga(a,de);if(Je==Un||Je==De||ct&&!$){if(oe=ve||ct?{}:ab(a),!de)return ve?Wf(a,$u(oe,a)):Jc(a,Fc(oe,a))}else{if(!Zt[Je])return $?a:{};oe=g_(a,Je,de)}}X||(X=new Xt);var wt=X.get(a);if(wt)return wt;X.set(a,oe),Lb(a)?a.forEach(function(Dt){oe.add($r(Dt,c,w,Dt,a,X))}):Ab(a)&&a.forEach(function(Dt,Qt){oe.set(Qt,$r(Dt,c,w,Qt,a,X))});var _t=ze?ve?rg:ng:ve?ko:ii,Kt=Ye?n:_t(a);return ne(Kt||a,function(Dt,Qt){Kt&&(Qt=Dt,Dt=a[Qt]),Br(oe,Qt,$r(Dt,c,w,Qt,a,X))}),oe}function Hu(a){var c=ii(a);return function(w){return Uu(w,a,c)}}function Uu(a,c,w){var P=w.length;if(a==null)return!P;for(a=ot(a);P--;){var $=w[P],X=c[$],oe=a[$];if(oe===n&&!($ in a)||!X(oe))return!1}return!0}function Wu(a,c,w){if(typeof a!="function")throw new Vt(s);return Yf(function(){a.apply(n,w)},c)}function Ha(a,c,w,P){var $=-1,X=Se,oe=!0,de=a.length,ve=[],ze=c.length;if(!de)return ve;w&&(c=st(c,gt(w))),P?(X=We,oe=!1):c.length>=i&&(X=Tt,oe=!1,c=new jr(c));e:for(;++$<de;){var Ye=a[$],Je=w==null?Ye:w(Ye);if(Ye=P||Ye!==0?Ye:0,oe&&Je===Je){for(var ct=ze;ct--;)if(c[ct]===Je)continue e;ve.push(Ye)}else X(c,Je,P)||ve.push(Ye)}return ve}var ca=m(Ti),zu=m(Vl,!0);function Nc(a,c){var w=!0;return ca(a,function(P,$,X){return w=!!c(P,$,X),w}),w}function $l(a,c,w){for(var P=-1,$=a.length;++P<$;){var X=a[P],oe=c(X);if(oe!=null&&(de===n?oe===oe&&!Uo(oe):w(oe,de)))var de=oe,ve=X}return ve}function Hf(a,c,w,P){var $=a.length;for(w=Gt(w),w<0&&(w=-w>$?0:$+w),P=P===n||P>$?$:Gt(P),P<0&&(P+=$),P=w>P?0:Nb(P);w<P;)a[w++]=c;return a}function jc(a,c){var w=[];return ca(a,function(P,$,X){c(P,$,X)&&w.push(P)}),w}function fr(a,c,w,P,$){var X=-1,oe=a.length;for(w||(w=m_),$||($=[]);++X<oe;){var de=a[X];c>0&&w(de)?c>1?fr(de,c-1,w,P,$):Ct($,de):P||($[$.length]=de)}return $}var Yu=l(),Bc=l(!0);function Ti(a,c){return a&&Yu(a,c,ii)}function Vl(a,c){return a&&Bc(a,c,ii)}function xs(a,c){return Ie(c,function(w){return dl(a[w])})}function fa(a,c){c=Ci(c,a);for(var w=0,P=c.length;a!=null&&w<P;)a=a[Ps(c[w++])];return w&&w==P?a:n}function tl(a,c,w){var P=c(a);return Ht(a)?P:Ct(P,w(a))}function nr(a){return a==null?a===n?hn:gr:Fo&&Fo in ot(a)?f_(a):C_(a)}function Ua(a,c){return a>c}function Hl(a,c){return a!=null&&Ot.call(a,c)}function Ss(a,c){return a!=null&&c in ot(a)}function Ul(a,c,w){return a>=qn(c,w)&&a<Sn(c,w)}function Ts(a,c,w){for(var P=w?We:Se,$=a[0].length,X=a.length,oe=X,de=le(X),ve=1/0,ze=[];oe--;){var Ye=a[oe];oe&&c&&(Ye=st(Ye,gt(c))),ve=qn(Ye.length,ve),de[oe]=!w&&(c||$>=120&&Ye.length>=120)?new jr(oe&&Ye):n}Ye=a[0];var Je=-1,ct=de[0];e:for(;++Je<$&&ze.length<ve;){var wt=Ye[Je],_t=c?c(wt):wt;if(wt=w||wt!==0?wt:0,!(ct?Tt(ct,_t):P(ze,_t,w))){for(oe=X;--oe;){var Kt=de[oe];if(!(Kt?Tt(Kt,_t):P(a[oe],_t,w)))continue e}ct&&ct.push(_t),ze.push(wt)}}return ze}function Wl(a,c,w,P){return Ti(a,function($,X,oe){c(P,w($),X,oe)}),P}function So(a,c,w){c=Ci(c,a),a=cb(a,c);var P=a==null?a:a[Ps(ma(c))];return P==null?n:V(P,a,w)}function zl(a){return ir(a)&&nr(a)==De}function Wa(a){return ir(a)&&nr(a)==ai}function $c(a){return ir(a)&&nr(a)==ht}function nl(a,c,w,P,$){return a===c?!0:a==null||c==null||!ir(a)&&!ir(c)?a!==a&&c!==c:Cs(a,c,w,P,nl,$)}function Cs(a,c,w,P,$,X){var oe=Ht(a),de=Ht(c),ve=oe?Fe:Ai(a),ze=de?Fe:Ai(c);ve=ve==De?Un:ve,ze=ze==De?Un:ze;var Ye=ve==Un,Je=ze==Un,ct=ve==ze;if(ct&&nu(a)){if(!nu(c))return!1;oe=!0,Ye=!1}if(ct&&!Ye)return X||(X=new Xt),oe||tf(a)?rb(a,c,w,P,$,X):u_(a,c,ve,w,P,$,X);if(!(w&D)){var wt=Ye&&Ot.call(a,"__wrapped__"),_t=Je&&Ot.call(c,"__wrapped__");if(wt||_t){var Kt=wt?a.value():a,Dt=_t?c.value():c;return X||(X=new Xt),$(Kt,Dt,w,P,X)}}return ct?(X||(X=new Xt),c_(a,c,w,P,$,X)):!1}function Es(a){return ir(a)&&Ai(a)==Lt}function Gu(a,c,w,P){var $=w.length,X=$,oe=!P;if(a==null)return!X;for(a=ot(a);$--;){var de=w[$];if(oe&&de[2]?de[1]!==a[de[0]]:!(de[0]in a))return!1}for(;++$<X;){de=w[$];var ve=de[0],ze=a[ve],Ye=de[1];if(oe&&de[2]){if(ze===n&&!(ve in a))return!1}else{var Je=new Xt;if(P)var ct=P(ze,Ye,ve,a,c,Je);if(!(ct===n?nl(Ye,ze,D|A,P,Je):ct))return!1}}return!0}function Vc(a){if(!Xn(a)||b_(a))return!1;var c=dl(a)?Iu:Kr;return c.test(ic(a))}function za(a){return ir(a)&&nr(a)==Er}function Yl(a){return ir(a)&&Ai(a)==Zn}function Vo(a){return ir(a)&&oh(a.length)&&!!qt[nr(a)]}function Gl(a){return typeof a=="function"?a:a==null?Oo:typeof a=="object"?Ht(a)?il(a[0],a[1]):To(a):qb(a)}function Ho(a){if(!zf(a))return Rc(a);var c=[];for(var w in ot(a))Ot.call(a,w)&&w!="constructor"&&c.push(w);return c}function rl(a){if(!Xn(a))return T_(a);var c=zf(a),w=[];for(var P in a)P=="constructor"&&(c||!Ot.call(a,P))||w.push(P);return w}function Xi(a,c){return a<c}function Ki(a,c){var w=-1,P=Eo(a)?le(a.length):[];return ca(a,function($,X,oe){P[++w]=c($,X,oe)}),P}function To(a){var c=og(a);return c.length==1&&c[0][2]?lb(c[0][0],c[0][1]):function(w){return w===a||Gu(w,a,c)}}function il(a,c){return sg(a)&&sb(c)?lb(Ps(a),c):function(w){var P=mg(w,a);return P===n&&P===c?yg(w,a):nl(c,P,D|A)}}function da(a,c,w,P,$){a!==c&&Yu(c,function(X,oe){if($||($=new Xt),Xn(X))Zi(a,c,oe,w,da,P,$);else{var de=P?P(ug(a,oe),X,oe+"",a,c,$):n;de===n&&(de=X),Bu(a,oe,de)}},ko)}function Zi(a,c,w,P,$,X,oe){var de=ug(a,w),ve=ug(c,w),ze=oe.get(ve);if(ze){Bu(a,w,ze);return}var Ye=X?X(de,ve,w+"",a,c,oe):n,Je=Ye===n;if(Je){var ct=Ht(ve),wt=!ct&&nu(ve),_t=!ct&&!wt&&tf(ve);Ye=ve,ct||wt||_t?Ht(de)?Ye=de:hr(de)?Ye=Ur(de):wt?(Je=!1,Ye=ga(ve,!0)):_t?(Je=!1,Ye=ll(ve,!0)):Ye=[]:Gf(ve)||oc(ve)?(Ye=de,oc(de)?Ye=jb(de):(!Xn(de)||dl(de))&&(Ye=ab(ve))):Je=!1}Je&&(oe.set(ve,Ye),$(Ye,ve,P,X,oe),oe.delete(ve)),Bu(a,w,Ye)}function ks(a,c){var w=a.length;if(w)return c+=c<0?w:0,fl(c,w)?a[c]:n}function ql(a,c,w){c.length?c=st(c,function(X){return Ht(X)?function(oe){return fa(oe,X.length===1?X[0]:X)}:X}):c=[Oo];var P=-1;c=st(c,gt(Et()));var $=Ki(a,function(X,oe,de){var ve=st(c,function(ze){return ze(X)});return{criteria:ve,index:++P,value:X}});return ee($,function(X,oe){return tu(X,oe,w)})}function ol(a,c){return Os(a,c,function(w,P){return yg(a,P)})}function Os(a,c,w){for(var P=-1,$=c.length,X={};++P<$;){var oe=c[P],de=fa(a,oe);w(de,oe)&&Ga(X,Ci(oe,a),de)}return X}function Hc(a){return function(c){return fa(c,a)}}function qu(a,c,w,P){var $=P?fo:en,X=-1,oe=c.length,de=a;for(a===c&&(c=Ur(c)),w&&(de=st(a,gt(w)));++X<oe;)for(var ve=0,ze=c[X],Ye=w?w(ze):ze;(ve=$(de,Ye,ve,P))>-1;)de!==a&&Lo.call(de,ve,1),Lo.call(a,ve,1);return a}function Xu(a,c){for(var w=a?c.length:0,P=w-1;w--;){var $=c[w];if(w==P||$!==X){var X=$;fl($)?Lo.call(a,$,1):Hr(a,$)}}return a}function Ya(a,c){return a+Fa(oa()*(c-a+1))}function Ku(a,c,w,P){for(var $=-1,X=Sn(ps((c-a)/(w||1)),0),oe=le(X);X--;)oe[P?X:++$]=a,a+=w;return oe}function Xl(a,c){var w="";if(!a||c<1||c>Ge)return w;do c%2&&(w+=a),c=Fa(c/2),c&&(a+=a);while(c);return w}function Bt(a,c){return cg(ub(a,c,Oo),a+"")}function al(a){return ni(nf(a))}function Zu(a,c){var w=nf(a);return Qd(w,Va(c,0,w.length))}function Ga(a,c,w,P){if(!Xn(a))return a;c=Ci(c,a);for(var $=-1,X=c.length,oe=X-1,de=a;de!=null&&++$<X;){var ve=Ps(c[$]),ze=w;if(ve==="__proto__"||ve==="constructor"||ve==="prototype")return a;if($!=oe){var Ye=de[ve];ze=P?P(Ye,ve,de):n,ze===n&&(ze=Xn(Ye)?Ye:fl(c[$+1])?[]:{})}Br(de,ve,ze),de=de[ve]}return a}var Kl=Ks?function(a,c){return Ks.set(a,c),a}:Oo,Uc=ra?function(a,c){return ra(a,"toString",{configurable:!0,enumerable:!1,value:wg(c),writable:!0})}:Oo;function Wc(a){return Qd(nf(a))}function ri(a,c,w){var P=-1,$=a.length;c<0&&(c=-c>$?0:$+c),w=w>$?$:w,w<0&&(w+=$),$=c>w?0:w-c>>>0,c>>>=0;for(var X=le($);++P<$;)X[P]=a[P+c];return X}function zc(a,c){var w;return ca(a,function(P,$,X){return w=c(P,$,X),!w}),!!w}function Zl(a,c,w){var P=0,$=a==null?P:a.length;if(typeof c=="number"&&c===c&&$<=je){for(;P<$;){var X=P+$>>>1,oe=a[X];oe!==null&&!Uo(oe)&&(w?oe<=c:oe<c)?P=X+1:$=X}return $}return Ju(a,c,Oo,w)}function Ju(a,c,w,P){var $=0,X=a==null?0:a.length;if(X===0)return 0;c=w(c);for(var oe=c!==c,de=c===null,ve=Uo(c),ze=c===n;$<X;){var Ye=Fa(($+X)/2),Je=w(a[Ye]),ct=Je!==n,wt=Je===null,_t=Je===Je,Kt=Uo(Je);if(oe)var Dt=P||_t;else ze?Dt=_t&&(P||ct):de?Dt=_t&&ct&&(P||!wt):ve?Dt=_t&&ct&&!wt&&(P||!Kt):wt||Kt?Dt=!1:Dt=P?Je<=c:Je<c;Dt?$=Ye+1:X=Ye}return qn(X,$e)}function Qu(a,c){for(var w=-1,P=a.length,$=0,X=[];++w<P;){var oe=a[w],de=c?c(oe):oe;if(!w||!Za(de,ve)){var ve=de;X[$++]=oe===0?0:oe}}return X}function Yc(a){return typeof a=="number"?a:Uo(a)?xe:+a}function Vr(a){if(typeof a=="string")return a;if(Ht(a))return st(a,Vr)+"";if(Uo(a))return Zs?Zs.call(a):"";var c=a+"";return c=="0"&&1/a==-1/0?"-0":c}function ha(a,c,w){var P=-1,$=Se,X=a.length,oe=!0,de=[],ve=de;if(w)oe=!1,$=We;else if(X>=i){var ze=c?null:Ds(a);if(ze)return go(ze);oe=!1,$=Tt,ve=new jr}else ve=c?[]:de;e:for(;++P<X;){var Ye=a[P],Je=c?c(Ye):Ye;if(Ye=w||Ye!==0?Ye:0,oe&&Je===Je){for(var ct=ve.length;ct--;)if(ve[ct]===Je)continue e;c&&ve.push(Je),de.push(Ye)}else $(ve,Je,w)||(ve!==de&&ve.push(Je),de.push(Ye))}return de}function Hr(a,c){return c=Ci(c,a),a=cb(a,c),a==null||delete a[Ps(ma(c))]}function Gc(a,c,w,P){return Ga(a,c,w(fa(a,c)),P)}function qa(a,c,w,P){for(var $=a.length,X=P?$:-1;(P?X--:++X<$)&&c(a[X],X,a););return w?ri(a,P?0:X,P?X+1:$):ri(a,P?X+1:0,P?$:X)}function qc(a,c){var w=a;return w instanceof $t&&(w=w.value()),kt(c,function(P,$){return $.func.apply($.thisArg,Ct([P],$.args))},w)}function dr(a,c,w){var P=a.length;if(P<2)return P?ha(a[0]):[];for(var $=-1,X=le(P);++$<P;)for(var oe=a[$],de=-1;++de<P;)de!=$&&(X[$]=Ha(X[$]||oe,a[de],c,w));return ha(fr(X,1),c,w)}function Xc(a,c,w){for(var P=-1,$=a.length,X=c.length,oe={};++P<$;){var de=P<X?c[P]:n;w(oe,a[P],de)}return oe}function Jl(a){return hr(a)?a:[]}function Ql(a){return typeof a=="function"?a:Oo}function Ci(a,c){return Ht(a)?a:sg(a,c)?[a]:pb(vn(a))}var Kc=Bt;function pa(a,c,w){var P=a.length;return w=w===n?P:w,!c&&w>=P?a:ri(a,c,w)}var eu=Af||function(a){return un.clearTimeout(a)};function ga(a,c){if(c)return a.slice();var w=a.length,P=Gs?Gs(w):new a.constructor(w);return a.copy(P),P}function Xa(a){var c=new a.constructor(a.byteLength);return new Ys(c).set(new Ys(a)),c}function Uf(a,c){var w=c?Xa(a.buffer):a.buffer;return new a.constructor(w,a.byteOffset,a.byteLength)}function ec(a){var c=new a.constructor(a.source,_r.exec(a));return c.lastIndex=a.lastIndex,c}function sl(a){return ja?ot(ja.call(a)):{}}function ll(a,c){var w=c?Xa(a.buffer):a.buffer;return new a.constructor(w,a.byteOffset,a.length)}function tc(a,c){if(a!==c){var w=a!==n,P=a===null,$=a===a,X=Uo(a),oe=c!==n,de=c===null,ve=c===c,ze=Uo(c);if(!de&&!ze&&!X&&a>c||X&&oe&&ve&&!de&&!ze||P&&oe&&ve||!w&&ve||!$)return 1;if(!P&&!X&&!ze&&a<c||ze&&w&&$&&!P&&!X||de&&w&&$||!oe&&$||!ve)return-1}return 0}function tu(a,c,w){for(var P=-1,$=a.criteria,X=c.criteria,oe=$.length,de=w.length;++P<oe;){var ve=tc($[P],X[P]);if(ve){if(P>=de)return ve;var ze=w[P];return ve*(ze=="desc"?-1:1)}}return a.index-c.index}function nc(a,c,w,P){for(var $=-1,X=a.length,oe=w.length,de=-1,ve=c.length,ze=Sn(X-oe,0),Ye=le(ve+ze),Je=!P;++de<ve;)Ye[de]=c[de];for(;++$<oe;)(Je||$<X)&&(Ye[w[$]]=a[$]);for(;ze--;)Ye[de++]=a[$++];return Ye}function Zc(a,c,w,P){for(var $=-1,X=a.length,oe=-1,de=w.length,ve=-1,ze=c.length,Ye=Sn(X-de,0),Je=le(Ye+ze),ct=!P;++$<Ye;)Je[$]=a[$];for(var wt=$;++ve<ze;)Je[wt+ve]=c[ve];for(;++oe<de;)(ct||$<X)&&(Je[wt+w[oe]]=a[$++]);return Je}function Ur(a,c){var w=-1,P=a.length;for(c||(c=le(P));++w<P;)c[w]=a[w];return c}function Ii(a,c,w,P){var $=!w;w||(w={});for(var X=-1,oe=c.length;++X<oe;){var de=c[X],ve=P?P(w[de],a[de],de,w,a):n;ve===n&&(ve=a[de]),$?Si(w,de,ve):Br(w,de,ve)}return w}function Jc(a,c){return Ii(a,ag(a),c)}function Wf(a,c){return Ii(a,ib(a),c)}function ul(a,c){return function(w,P){var $=Ht(w)?ae:$a,X=c?c():{};return $(w,a,Et(P,2),X)}}function _s(a){return Bt(function(c,w){var P=-1,$=w.length,X=$>1?w[$-1]:n,oe=$>2?w[2]:n;for(X=a.length>3&&typeof X=="function"?($--,X):n,oe&&Qi(w[0],w[1],oe)&&(X=$<3?n:X,$=1),c=ot(c);++P<$;){var de=w[P];de&&a(c,de,P,X)}return c})}function m(a,c){return function(w,P){if(w==null)return w;if(!Eo(w))return a(w,P);for(var $=w.length,X=c?$:-1,oe=ot(w);(c?X--:++X<$)&&P(oe[X],X,oe)!==!1;);return w}}function l(a){return function(c,w,P){for(var $=-1,X=ot(c),oe=P(c),de=oe.length;de--;){var ve=oe[a?de:++$];if(w(X[ve],ve,X)===!1)break}return c}}function d(a,c,w){var P=c&M,$=R(a);function X(){var oe=this&&this!==un&&this instanceof X?$:a;return oe.apply(P?w:this,arguments)}return X}function v(a){return function(c){c=vn(c);var w=ei(c)?fn(c):n,P=w?w[0]:c.charAt(0),$=w?pa(w,1).join(""):c.slice(1);return P[a]()+$}}function S(a){return function(c){return kt(Yb(zb(c).replace(Ra,"")),a,"")}}function R(a){return function(){var c=arguments;switch(c.length){case 0:return new a;case 1:return new a(c[0]);case 2:return new a(c[0],c[1]);case 3:return new a(c[0],c[1],c[2]);case 4:return new a(c[0],c[1],c[2],c[3]);case 5:return new a(c[0],c[1],c[2],c[3],c[4]);case 6:return new a(c[0],c[1],c[2],c[3],c[4],c[5]);case 7:return new a(c[0],c[1],c[2],c[3],c[4],c[5],c[6])}var w=jo(a.prototype),P=a.apply(w,c);return Xn(P)?P:w}}function B(a,c,w){var P=R(a);function $(){for(var X=arguments.length,oe=le(X),de=X,ve=ef($);de--;)oe[de]=arguments[de];var ze=X<3&&oe[0]!==ve&&oe[X-1]!==ve?[]:ti(oe,ve);if(X-=ze.length,X<w)return va(a,c,we,$.placeholder,n,oe,ze,n,n,w-X);var Ye=this&&this!==un&&this instanceof $?P:a;return V(Ye,this,oe)}return $}function Y(a){return function(c,w,P){var $=ot(c);if(!Eo(c)){var X=Et(w,3);c=ii(c),w=function(de){return X($[de],de,$)}}var oe=a(c,w,P);return oe>-1?$[X?c[oe]:oe]:n}}function ie(a){return cl(function(c){var w=c.length,P=w,$=Sr.prototype.thru;for(a&&c.reverse();P--;){var X=c[P];if(typeof X!="function")throw new Vt(s);if($&&!oe&&Zd(X)=="wrapper")var oe=new Sr([],!0)}for(P=oe?P:w;++P<w;){X=c[P];var de=Zd(X),ve=de=="wrapper"?ig(X):n;ve&&lg(ve[0])&&ve[1]==(T|U|Z|se)&&!ve[4].length&&ve[9]==1?oe=oe[Zd(ve[0])].apply(oe,ve[3]):oe=X.length==1&&lg(X)?oe[de]():oe.thru(X)}return function(){var ze=arguments,Ye=ze[0];if(oe&&ze.length==1&&Ht(Ye))return oe.plant(Ye).value();for(var Je=0,ct=w?c[Je].apply(this,ze):Ye;++Je<w;)ct=c[Je].call(this,ct);return ct}})}function we(a,c,w,P,$,X,oe,de,ve,ze){var Ye=c&T,Je=c&M,ct=c&I,wt=c&(U|Q),_t=c&re,Kt=ct?n:R(a);function Dt(){for(var Qt=arguments.length,nn=le(Qt),Wo=Qt;Wo--;)nn[Wo]=arguments[Wo];if(wt)var eo=ef(Dt),zo=xn(nn,eo);if(P&&(nn=nc(nn,P,$,wt)),X&&(nn=Zc(nn,X,oe,wt)),Qt-=zo,wt&&Qt<ze){var pr=ti(nn,eo);return va(a,c,we,Dt.placeholder,w,nn,pr,de,ve,ze-Qt)}var Ja=Je?w:this,pl=ct?Ja[a]:a;return Qt=nn.length,de?nn=E_(nn,de):_t&&Qt>1&&nn.reverse(),Ye&&ve<Qt&&(nn.length=ve),this&&this!==un&&this instanceof Dt&&(pl=Kt||R(pl)),pl.apply(Ja,nn)}return Dt}function Ve(a,c){return function(w,P){return Wl(w,a,c(P),{})}}function Xe(a,c){return function(w,P){var $;if(w===n&&P===n)return c;if(w!==n&&($=w),P!==n){if($===n)return P;typeof w=="string"||typeof P=="string"?(w=Vr(w),P=Vr(P)):(w=Yc(w),P=Yc(P)),$=a(w,P)}return $}}function it(a){return cl(function(c){return c=st(c,gt(Et())),Bt(function(w){var P=this;return a(c,function($){return V($,P,w)})})})}function St(a,c){c=c===n?" ":Vr(c);var w=c.length;if(w<2)return w?Xl(c,a):c;var P=Xl(c,ps(a/vo(c)));return ei(c)?pa(fn(P),0,a).join(""):P.slice(0,a)}function tn(a,c,w,P){var $=c&M,X=R(a);function oe(){for(var de=-1,ve=arguments.length,ze=-1,Ye=P.length,Je=le(Ye+ve),ct=this&&this!==un&&this instanceof oe?X:a;++ze<Ye;)Je[ze]=P[ze];for(;ve--;)Je[ze++]=arguments[++de];return V(ct,$?w:this,Je)}return oe}function rr(a){return function(c,w,P){return P&&typeof P!="number"&&Qi(c,w,P)&&(w=P=n),c=hl(c),w===n?(w=c,c=0):w=hl(w),P=P===n?c<w?1:-1:hl(P),Ku(c,w,P,a)}}function Co(a){return function(c,w){return typeof c=="string"&&typeof w=="string"||(c=ya(c),w=ya(w)),a(c,w)}}function va(a,c,w,P,$,X,oe,de,ve,ze){var Ye=c&U,Je=Ye?oe:n,ct=Ye?n:oe,wt=Ye?X:n,_t=Ye?n:X;c|=Ye?Z:ce,c&=~(Ye?ce:Z),c&H||(c&=-4);var Kt=[a,c,$,wt,Je,_t,ct,de,ve,ze],Dt=w.apply(n,Kt);return lg(a)&&fb(Dt,Kt),Dt.placeholder=P,db(Dt,a,c)}function Ji(a){var c=ft[a];return function(w,P){if(w=ya(w),P=P==null?0:qn(Gt(P),292),P&&vs(w)){var $=(vn(w)+"e").split("e"),X=c($[0]+"e"+(+$[1]+P));return $=(vn(X)+"e").split("e"),+($[0]+"e"+(+$[1]-P))}return c(w)}}var Ds=yo&&1/go(new yo([,-0]))[1]==Le?function(a){return new yo(a)}:Tg;function Qc(a){return function(c){var w=Ai(c);return w==Lt?us(c):w==Zn?zs(c):Me(c,a(c))}}function Ka(a,c,w,P,$,X,oe,de){var ve=c&I;if(!ve&&typeof a!="function")throw new Vt(s);var ze=P?P.length:0;if(ze||(c&=-97,P=$=n),oe=oe===n?oe:Sn(Gt(oe),0),de=de===n?de:Gt(de),ze-=$?$.length:0,c&ce){var Ye=P,Je=$;P=$=n}var ct=ve?n:ig(a),wt=[a,c,w,P,$,Ye,Je,X,oe,de];if(ct&&S_(wt,ct),a=wt[0],c=wt[1],w=wt[2],P=wt[3],$=wt[4],de=wt[9]=wt[9]===n?ve?0:a.length:Sn(wt[9]-ze,0),!de&&c&(U|Q)&&(c&=-25),!c||c==M)var _t=d(a,c,w);else c==U||c==Q?_t=B(a,c,de):(c==Z||c==(M|Z))&&!$.length?_t=tn(a,c,w,P):_t=we.apply(n,wt);var Kt=ct?Kl:fb;return db(Kt(_t,wt),a,c)}function tb(a,c,w,P){return a===n||Za(a,Ln[w])&&!Ot.call(P,w)?c:a}function nb(a,c,w,P,$,X){return Xn(a)&&Xn(c)&&(X.set(c,a),da(a,c,n,nb,X),X.delete(c)),a}function l_(a){return Gf(a)?n:a}function rb(a,c,w,P,$,X){var oe=w&D,de=a.length,ve=c.length;if(de!=ve&&!(oe&&ve>de))return!1;var ze=X.get(a),Ye=X.get(c);if(ze&&Ye)return ze==c&&Ye==a;var Je=-1,ct=!0,wt=w&A?new jr:n;for(X.set(a,c),X.set(c,a);++Je<de;){var _t=a[Je],Kt=c[Je];if(P)var Dt=oe?P(Kt,_t,Je,c,a,X):P(_t,Kt,Je,a,c,X);if(Dt!==n){if(Dt)continue;ct=!1;break}if(wt){if(!cn(c,function(Qt,nn){if(!Tt(wt,nn)&&(_t===Qt||$(_t,Qt,w,P,X)))return wt.push(nn)})){ct=!1;break}}else if(!(_t===Kt||$(_t,Kt,w,P,X))){ct=!1;break}}return X.delete(a),X.delete(c),ct}function u_(a,c,w,P,$,X,oe){switch(w){case an:if(a.byteLength!=c.byteLength||a.byteOffset!=c.byteOffset)return!1;a=a.buffer,c=c.buffer;case ai:return!(a.byteLength!=c.byteLength||!X(new Ys(a),new Ys(c)));case at:case ht:case Hn:return Za(+a,+c);case mt:return a.name==c.name&&a.message==c.message;case Er:case sn:return a==c+"";case Lt:var de=us;case Zn:var ve=P&D;if(de||(de=go),a.size!=c.size&&!ve)return!1;var ze=oe.get(a);if(ze)return ze==c;P|=A,oe.set(a,c);var Ye=rb(de(a),de(c),P,$,X,oe);return oe.delete(a),Ye;case dn:if(ja)return ja.call(a)==ja.call(c)}return!1}function c_(a,c,w,P,$,X){var oe=w&D,de=ng(a),ve=de.length,ze=ng(c),Ye=ze.length;if(ve!=Ye&&!oe)return!1;for(var Je=ve;Je--;){var ct=de[Je];if(!(oe?ct in c:Ot.call(c,ct)))return!1}var wt=X.get(a),_t=X.get(c);if(wt&&_t)return wt==c&&_t==a;var Kt=!0;X.set(a,c),X.set(c,a);for(var Dt=oe;++Je<ve;){ct=de[Je];var Qt=a[ct],nn=c[ct];if(P)var Wo=oe?P(nn,Qt,ct,c,a,X):P(Qt,nn,ct,a,c,X);if(!(Wo===n?Qt===nn||$(Qt,nn,w,P,X):Wo)){Kt=!1;break}Dt||(Dt=ct=="constructor")}if(Kt&&!Dt){var eo=a.constructor,zo=c.constructor;eo!=zo&&"constructor"in a&&"constructor"in c&&!(typeof eo=="function"&&eo instanceof eo&&typeof zo=="function"&&zo instanceof zo)&&(Kt=!1)}return X.delete(a),X.delete(c),Kt}function cl(a){return cg(ub(a,n,yb),a+"")}function ng(a){return tl(a,ii,ag)}function rg(a){return tl(a,ko,ib)}var ig=Ks?function(a){return Ks.get(a)}:Tg;function Zd(a){for(var c=a.name+"",w=Na[c],P=Ot.call(Na,c)?w.length:0;P--;){var $=w[P],X=$.func;if(X==null||X==a)return $.name}return c}function ef(a){var c=Ot.call(z,"placeholder")?z:a;return c.placeholder}function Et(){var a=z.iteratee||xg;return a=a===xg?Gl:a,arguments.length?a(arguments[0],arguments[1]):a}function Jd(a,c){var w=a.__data__;return y_(c)?w[typeof c=="string"?"string":"hash"]:w.map}function og(a){for(var c=ii(a),w=c.length;w--;){var P=c[w],$=a[P];c[w]=[P,$,sb($)]}return c}function rc(a,c){var w=po(a,c);return Vc(w)?w:n}function f_(a){var c=Ot.call(a,Fo),w=a[Fo];try{a[Fo]=n;var P=!0}catch{}var $=Ao.call(a);return P&&(c?a[Fo]=w:delete a[Fo]),$}var ag=gs?function(a){return a==null?[]:(a=ot(a),Ie(gs(a),function(c){return Il.call(a,c)}))}:Cg,ib=gs?function(a){for(var c=[];a;)Ct(c,ag(a)),a=La(a);return c}:Cg,Ai=nr;(mo&&Ai(new mo(new ArrayBuffer(1)))!=an||aa&&Ai(new aa)!=Lt||ms&&Ai(ms.resolve())!=Cn||yo&&Ai(new yo)!=Zn||No&&Ai(new No)!=dt)&&(Ai=function(a){var c=nr(a),w=c==Un?a.constructor:n,P=w?ic(w):"";if(P)switch(P){case sa:return an;case Mu:return Lt;case Mf:return Cn;case Ic:return Zn;case bs:return dt}return c});function d_(a,c,w){for(var P=-1,$=w.length;++P<$;){var X=w[P],oe=X.size;switch(X.type){case"drop":a+=oe;break;case"dropRight":c-=oe;break;case"take":c=qn(c,a+oe);break;case"takeRight":a=Sn(a,c-oe);break}}return{start:a,end:c}}function h_(a){var c=a.match(Pa);return c?c[1].split(Xr):[]}function ob(a,c,w){c=Ci(c,a);for(var P=-1,$=c.length,X=!1;++P<$;){var oe=Ps(c[P]);if(!(X=a!=null&&w(a,oe)))break;a=a[oe]}return X||++P!=$?X:($=a==null?0:a.length,!!$&&oh($)&&fl(oe,$)&&(Ht(a)||oc(a)))}function p_(a){var c=a.length,w=new a.constructor(c);return c&&typeof a[0]=="string"&&Ot.call(a,"index")&&(w.index=a.index,w.input=a.input),w}function ab(a){return typeof a.constructor=="function"&&!zf(a)?jo(La(a)):{}}function g_(a,c,w){var P=a.constructor;switch(c){case ai:return Xa(a);case at:case ht:return new P(+a);case an:return Uf(a,w);case Bi:case $i:case Vi:case kr:case jn:case Or:case vr:case Yr:case Gr:return ll(a,w);case Lt:return new P;case Hn:case sn:return new P(a);case Er:return ec(a);case Zn:return new P;case dn:return sl(a)}}function v_(a,c){var w=c.length;if(!w)return a;var P=w-1;return c[P]=(w>1?"& ":"")+c[P],c=c.join(w>2?", ":" "),a.replace(Da,`{
|
|
144
|
-
/* [wrapped with `+c+`] */
|
|
145
|
-
`)}function m_(a){return Ht(a)||oc(a)||!!(Al&&a&&a[Al])}function fl(a,c){var w=typeof a;return c=c??Ge,!!c&&(w=="number"||w!="symbol"&&Pr.test(a))&&a>-1&&a%1==0&&a<c}function Qi(a,c,w){if(!Xn(w))return!1;var P=typeof c;return(P=="number"?Eo(w)&&fl(c,w.length):P=="string"&&c in w)?Za(w[c],a):!1}function sg(a,c){if(Ht(a))return!1;var w=typeof a;return w=="number"||w=="symbol"||w=="boolean"||a==null||Uo(a)?!0:En.test(a)||!ui.test(a)||c!=null&&a in ot(c)}function y_(a){var c=typeof a;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?a!=="__proto__":a===null}function lg(a){var c=Zd(a),w=z[c];if(typeof w!="function"||!(c in $t.prototype))return!1;if(a===w)return!0;var P=ig(w);return!!P&&a===P[0]}function b_(a){return!!gn&&gn in a}var w_=zt?dl:Eg;function zf(a){var c=a&&a.constructor,w=typeof c=="function"&&c.prototype||Ln;return a===w}function sb(a){return a===a&&!Xn(a)}function lb(a,c){return function(w){return w==null?!1:w[a]===c&&(c!==n||a in ot(w))}}function x_(a){var c=rh(a,function(P){return w.size===p&&w.clear(),P}),w=c.cache;return c}function S_(a,c){var w=a[1],P=c[1],$=w|P,X=$<(M|I|T),oe=P==T&&w==U||P==T&&w==se&&a[7].length<=c[8]||P==(T|se)&&c[7].length<=c[8]&&w==U;if(!(X||oe))return a;P&M&&(a[2]=c[2],$|=w&M?0:H);var de=c[3];if(de){var ve=a[3];a[3]=ve?nc(ve,de,c[4]):de,a[4]=ve?ti(a[3],y):c[4]}return de=c[5],de&&(ve=a[5],a[5]=ve?Zc(ve,de,c[6]):de,a[6]=ve?ti(a[5],y):c[6]),de=c[7],de&&(a[7]=de),P&T&&(a[8]=a[8]==null?c[8]:qn(a[8],c[8])),a[9]==null&&(a[9]=c[9]),a[0]=c[0],a[1]=$,a}function T_(a){var c=[];if(a!=null)for(var w in ot(a))c.push(w);return c}function C_(a){return Ao.call(a)}function ub(a,c,w){return c=Sn(c===n?a.length-1:c,0),function(){for(var P=arguments,$=-1,X=Sn(P.length-c,0),oe=le(X);++$<X;)oe[$]=P[c+$];$=-1;for(var de=le(c+1);++$<c;)de[$]=P[$];return de[c]=w(oe),V(a,this,de)}}function cb(a,c){return c.length<2?a:fa(a,ri(c,0,-1))}function E_(a,c){for(var w=a.length,P=qn(c.length,w),$=Ur(a);P--;){var X=c[P];a[P]=fl(X,w)?$[X]:n}return a}function ug(a,c){if(!(c==="constructor"&&typeof a[c]=="function")&&c!="__proto__")return a[c]}var fb=hb(Kl),Yf=Pc||function(a,c){return un.setTimeout(a,c)},cg=hb(Uc);function db(a,c,w){var P=c+"";return cg(a,v_(P,k_(h_(P),w)))}function hb(a){var c=0,w=0;return function(){var P=ia(),$=Qe-(P-w);if(w=P,$>0){if(++c>=Ue)return arguments[0]}else c=0;return a.apply(n,arguments)}}function Qd(a,c){var w=-1,P=a.length,$=P-1;for(c=c===n?P:c;++w<c;){var X=Ya(w,$),oe=a[X];a[X]=a[w],a[w]=oe}return a.length=c,a}var pb=x_(function(a){var c=[];return a.charCodeAt(0)===46&&c.push(""),a.replace(oo,function(w,P,$,X){c.push($?X.replace(Oi,"$1"):P||w)}),c});function Ps(a){if(typeof a=="string"||Uo(a))return a;var c=a+"";return c=="0"&&1/a==-1/0?"-0":c}function ic(a){if(a!=null){try{return Nr.call(a)}catch{}try{return a+""}catch{}}return""}function k_(a,c){return ne(ke,function(w){var P="_."+w[0];c&w[1]&&!Se(a,P)&&a.push(P)}),a.sort()}function gb(a){if(a instanceof $t)return a.clone();var c=new Sr(a.__wrapped__,a.__chain__);return c.__actions__=Ur(a.__actions__),c.__index__=a.__index__,c.__values__=a.__values__,c}function O_(a,c,w){(w?Qi(a,c,w):c===n)?c=1:c=Sn(Gt(c),0);var P=a==null?0:a.length;if(!P||c<1)return[];for(var $=0,X=0,oe=le(ps(P/c));$<P;)oe[X++]=ri(a,$,$+=c);return oe}function __(a){for(var c=-1,w=a==null?0:a.length,P=0,$=[];++c<w;){var X=a[c];X&&($[P++]=X)}return $}function D_(){var a=arguments.length;if(!a)return[];for(var c=le(a-1),w=arguments[0],P=a;P--;)c[P-1]=arguments[P];return Ct(Ht(w)?Ur(w):[w],fr(c,1))}var P_=Bt(function(a,c){return hr(a)?Ha(a,fr(c,1,hr,!0)):[]}),R_=Bt(function(a,c){var w=ma(c);return hr(w)&&(w=n),hr(a)?Ha(a,fr(c,1,hr,!0),Et(w,2)):[]}),I_=Bt(function(a,c){var w=ma(c);return hr(w)&&(w=n),hr(a)?Ha(a,fr(c,1,hr,!0),n,w):[]});function A_(a,c,w){var P=a==null?0:a.length;return P?(c=w||c===n?1:Gt(c),ri(a,c<0?0:c,P)):[]}function M_(a,c,w){var P=a==null?0:a.length;return P?(c=w||c===n?1:Gt(c),c=P-c,ri(a,0,c<0?0:c)):[]}function L_(a,c){return a&&a.length?qa(a,Et(c,3),!0,!0):[]}function F_(a,c){return a&&a.length?qa(a,Et(c,3),!0):[]}function N_(a,c,w,P){var $=a==null?0:a.length;return $?(w&&typeof w!="number"&&Qi(a,c,w)&&(w=0,P=$),Hf(a,c,w,P)):[]}function vb(a,c,w){var P=a==null?0:a.length;if(!P)return-1;var $=w==null?0:Gt(w);return $<0&&($=Sn(P+$,0)),jt(a,Et(c,3),$)}function mb(a,c,w){var P=a==null?0:a.length;if(!P)return-1;var $=P-1;return w!==n&&($=Gt(w),$=w<0?Sn(P+$,0):qn($,P-1)),jt(a,Et(c,3),$,!0)}function yb(a){var c=a==null?0:a.length;return c?fr(a,1):[]}function j_(a){var c=a==null?0:a.length;return c?fr(a,Le):[]}function B_(a,c){var w=a==null?0:a.length;return w?(c=c===n?1:Gt(c),fr(a,c)):[]}function $_(a){for(var c=-1,w=a==null?0:a.length,P={};++c<w;){var $=a[c];P[$[0]]=$[1]}return P}function bb(a){return a&&a.length?a[0]:n}function V_(a,c,w){var P=a==null?0:a.length;if(!P)return-1;var $=w==null?0:Gt(w);return $<0&&($=Sn(P+$,0)),en(a,c,$)}function H_(a){var c=a==null?0:a.length;return c?ri(a,0,-1):[]}var U_=Bt(function(a){var c=st(a,Jl);return c.length&&c[0]===a[0]?Ts(c):[]}),W_=Bt(function(a){var c=ma(a),w=st(a,Jl);return c===ma(w)?c=n:w.pop(),w.length&&w[0]===a[0]?Ts(w,Et(c,2)):[]}),z_=Bt(function(a){var c=ma(a),w=st(a,Jl);return c=typeof c=="function"?c:n,c&&w.pop(),w.length&&w[0]===a[0]?Ts(w,n,c):[]});function Y_(a,c){return a==null?"":Xs.call(a,c)}function ma(a){var c=a==null?0:a.length;return c?a[c-1]:n}function G_(a,c,w){var P=a==null?0:a.length;if(!P)return-1;var $=P;return w!==n&&($=Gt(w),$=$<0?Sn(P+$,0):qn($,P-1)),c===c?cs(a,c,$):jt(a,ho,$,!0)}function q_(a,c){return a&&a.length?ks(a,Gt(c)):n}var X_=Bt(wb);function wb(a,c){return a&&a.length&&c&&c.length?qu(a,c):a}function K_(a,c,w){return a&&a.length&&c&&c.length?qu(a,c,Et(w,2)):a}function Z_(a,c,w){return a&&a.length&&c&&c.length?qu(a,c,n,w):a}var J_=cl(function(a,c){var w=a==null?0:a.length,P=Vu(a,c);return Xu(a,st(c,function($){return fl($,w)?+$:$}).sort(tc)),P});function Q_(a,c){var w=[];if(!(a&&a.length))return w;var P=-1,$=[],X=a.length;for(c=Et(c,3);++P<X;){var oe=a[P];c(oe,P,a)&&(w.push(oe),$.push(P))}return Xu(a,$),w}function fg(a){return a==null?a:Ll.call(a)}function eD(a,c,w){var P=a==null?0:a.length;return P?(w&&typeof w!="number"&&Qi(a,c,w)?(c=0,w=P):(c=c==null?0:Gt(c),w=w===n?P:Gt(w)),ri(a,c,w)):[]}function tD(a,c){return Zl(a,c)}function nD(a,c,w){return Ju(a,c,Et(w,2))}function rD(a,c){var w=a==null?0:a.length;if(w){var P=Zl(a,c);if(P<w&&Za(a[P],c))return P}return-1}function iD(a,c){return Zl(a,c,!0)}function oD(a,c,w){return Ju(a,c,Et(w,2),!0)}function aD(a,c){var w=a==null?0:a.length;if(w){var P=Zl(a,c,!0)-1;if(Za(a[P],c))return P}return-1}function sD(a){return a&&a.length?Qu(a):[]}function lD(a,c){return a&&a.length?Qu(a,Et(c,2)):[]}function uD(a){var c=a==null?0:a.length;return c?ri(a,1,c):[]}function cD(a,c,w){return a&&a.length?(c=w||c===n?1:Gt(c),ri(a,0,c<0?0:c)):[]}function fD(a,c,w){var P=a==null?0:a.length;return P?(c=w||c===n?1:Gt(c),c=P-c,ri(a,c<0?0:c,P)):[]}function dD(a,c){return a&&a.length?qa(a,Et(c,3),!1,!0):[]}function hD(a,c){return a&&a.length?qa(a,Et(c,3)):[]}var pD=Bt(function(a){return ha(fr(a,1,hr,!0))}),gD=Bt(function(a){var c=ma(a);return hr(c)&&(c=n),ha(fr(a,1,hr,!0),Et(c,2))}),vD=Bt(function(a){var c=ma(a);return c=typeof c=="function"?c:n,ha(fr(a,1,hr,!0),n,c)});function mD(a){return a&&a.length?ha(a):[]}function yD(a,c){return a&&a.length?ha(a,Et(c,2)):[]}function bD(a,c){return c=typeof c=="function"?c:n,a&&a.length?ha(a,n,c):[]}function dg(a){if(!(a&&a.length))return[];var c=0;return a=Ie(a,function(w){if(hr(w))return c=Sn(w.length,c),!0}),be(c,function(w){return st(a,O(w))})}function xb(a,c){if(!(a&&a.length))return[];var w=dg(a);return c==null?w:st(w,function(P){return V(c,n,P)})}var wD=Bt(function(a,c){return hr(a)?Ha(a,c):[]}),xD=Bt(function(a){return dr(Ie(a,hr))}),SD=Bt(function(a){var c=ma(a);return hr(c)&&(c=n),dr(Ie(a,hr),Et(c,2))}),TD=Bt(function(a){var c=ma(a);return c=typeof c=="function"?c:n,dr(Ie(a,hr),n,c)}),CD=Bt(dg);function ED(a,c){return Xc(a||[],c||[],Br)}function kD(a,c){return Xc(a||[],c||[],Ga)}var OD=Bt(function(a){var c=a.length,w=c>1?a[c-1]:n;return w=typeof w=="function"?(a.pop(),w):n,xb(a,w)});function Sb(a){var c=z(a);return c.__chain__=!0,c}function _D(a,c){return c(a),a}function eh(a,c){return c(a)}var DD=cl(function(a){var c=a.length,w=c?a[0]:0,P=this.__wrapped__,$=function(X){return Vu(X,a)};return c>1||this.__actions__.length||!(P instanceof $t)||!fl(w)?this.thru($):(P=P.slice(w,+w+(c?1:0)),P.__actions__.push({func:eh,args:[$],thisArg:n}),new Sr(P,this.__chain__).thru(function(X){return c&&!X.length&&X.push(n),X}))});function PD(){return Sb(this)}function RD(){return new Sr(this.value(),this.__chain__)}function ID(){this.__values__===n&&(this.__values__=Fb(this.value()));var a=this.__index__>=this.__values__.length,c=a?n:this.__values__[this.__index__++];return{done:a,value:c}}function AD(){return this}function MD(a){for(var c,w=this;w instanceof Bo;){var P=gb(w);P.__index__=0,P.__values__=n,c?$.__wrapped__=P:c=P;var $=P;w=w.__wrapped__}return $.__wrapped__=a,c}function LD(){var a=this.__wrapped__;if(a instanceof $t){var c=a;return this.__actions__.length&&(c=new $t(this)),c=c.reverse(),c.__actions__.push({func:eh,args:[fg],thisArg:n}),new Sr(c,this.__chain__)}return this.thru(fg)}function FD(){return qc(this.__wrapped__,this.__actions__)}var ND=ul(function(a,c,w){Ot.call(a,w)?++a[w]:Si(a,w,1)});function jD(a,c,w){var P=Ht(a)?_e:Nc;return w&&Qi(a,c,w)&&(c=n),P(a,Et(c,3))}function BD(a,c){var w=Ht(a)?Ie:jc;return w(a,Et(c,3))}var $D=Y(vb),VD=Y(mb);function HD(a,c){return fr(th(a,c),1)}function UD(a,c){return fr(th(a,c),Le)}function WD(a,c,w){return w=w===n?1:Gt(w),fr(th(a,c),w)}function Tb(a,c){var w=Ht(a)?ne:ca;return w(a,Et(c,3))}function Cb(a,c){var w=Ht(a)?pe:zu;return w(a,Et(c,3))}var zD=ul(function(a,c,w){Ot.call(a,w)?a[w].push(c):Si(a,w,[c])});function YD(a,c,w,P){a=Eo(a)?a:nf(a),w=w&&!P?Gt(w):0;var $=a.length;return w<0&&(w=Sn($+w,0)),ah(a)?w<=$&&a.indexOf(c,w)>-1:!!$&&en(a,c,w)>-1}var GD=Bt(function(a,c,w){var P=-1,$=typeof c=="function",X=Eo(a)?le(a.length):[];return ca(a,function(oe){X[++P]=$?V(c,oe,w):So(oe,c,w)}),X}),qD=ul(function(a,c,w){Si(a,w,c)});function th(a,c){var w=Ht(a)?st:Ki;return w(a,Et(c,3))}function XD(a,c,w,P){return a==null?[]:(Ht(c)||(c=c==null?[]:[c]),w=P?n:w,Ht(w)||(w=w==null?[]:[w]),ql(a,c,w))}var KD=ul(function(a,c,w){a[w?0:1].push(c)},function(){return[[],[]]});function ZD(a,c,w){var P=Ht(a)?kt:W,$=arguments.length<3;return P(a,Et(c,4),w,$,ca)}function JD(a,c,w){var P=Ht(a)?In:W,$=arguments.length<3;return P(a,Et(c,4),w,$,zu)}function QD(a,c){var w=Ht(a)?Ie:jc;return w(a,ih(Et(c,3)))}function eP(a){var c=Ht(a)?ni:al;return c(a)}function tP(a,c,w){(w?Qi(a,c,w):c===n)?c=1:c=Gt(c);var P=Ht(a)?xi:Zu;return P(a,c)}function nP(a){var c=Ht(a)?xo:Wc;return c(a)}function rP(a){if(a==null)return 0;if(Eo(a))return ah(a)?vo(a):a.length;var c=Ai(a);return c==Lt||c==Zn?a.size:Ho(a).length}function iP(a,c,w){var P=Ht(a)?cn:zc;return w&&Qi(a,c,w)&&(c=n),P(a,Et(c,3))}var oP=Bt(function(a,c){if(a==null)return[];var w=c.length;return w>1&&Qi(a,c[0],c[1])?c=[]:w>2&&Qi(c[0],c[1],c[2])&&(c=[c[0]]),ql(a,fr(c,1),[])}),nh=qs||function(){return un.Date.now()};function aP(a,c){if(typeof c!="function")throw new Vt(s);return a=Gt(a),function(){if(--a<1)return c.apply(this,arguments)}}function Eb(a,c,w){return c=w?n:c,c=a&&c==null?a.length:c,Ka(a,T,n,n,n,n,c)}function kb(a,c){var w;if(typeof c!="function")throw new Vt(s);return a=Gt(a),function(){return--a>0&&(w=c.apply(this,arguments)),a<=1&&(c=n),w}}var hg=Bt(function(a,c,w){var P=M;if(w.length){var $=ti(w,ef(hg));P|=Z}return Ka(a,P,c,w,$)}),Ob=Bt(function(a,c,w){var P=M|I;if(w.length){var $=ti(w,ef(Ob));P|=Z}return Ka(c,P,a,w,$)});function _b(a,c,w){c=w?n:c;var P=Ka(a,U,n,n,n,n,n,c);return P.placeholder=_b.placeholder,P}function Db(a,c,w){c=w?n:c;var P=Ka(a,Q,n,n,n,n,n,c);return P.placeholder=Db.placeholder,P}function Pb(a,c,w){var P,$,X,oe,de,ve,ze=0,Ye=!1,Je=!1,ct=!0;if(typeof a!="function")throw new Vt(s);c=ya(c)||0,Xn(w)&&(Ye=!!w.leading,Je="maxWait"in w,X=Je?Sn(ya(w.maxWait)||0,c):X,ct="trailing"in w?!!w.trailing:ct);function wt(pr){var Ja=P,pl=$;return P=$=n,ze=pr,oe=a.apply(pl,Ja),oe}function _t(pr){return ze=pr,de=Yf(Qt,c),Ye?wt(pr):oe}function Kt(pr){var Ja=pr-ve,pl=pr-ze,Xb=c-Ja;return Je?qn(Xb,X-pl):Xb}function Dt(pr){var Ja=pr-ve,pl=pr-ze;return ve===n||Ja>=c||Ja<0||Je&&pl>=X}function Qt(){var pr=nh();if(Dt(pr))return nn(pr);de=Yf(Qt,Kt(pr))}function nn(pr){return de=n,ct&&P?wt(pr):(P=$=n,oe)}function Wo(){de!==n&&eu(de),ze=0,P=ve=$=de=n}function eo(){return de===n?oe:nn(nh())}function zo(){var pr=nh(),Ja=Dt(pr);if(P=arguments,$=this,ve=pr,Ja){if(de===n)return _t(ve);if(Je)return eu(de),de=Yf(Qt,c),wt(ve)}return de===n&&(de=Yf(Qt,c)),oe}return zo.cancel=Wo,zo.flush=eo,zo}var sP=Bt(function(a,c){return Wu(a,1,c)}),lP=Bt(function(a,c,w){return Wu(a,ya(c)||0,w)});function uP(a){return Ka(a,re)}function rh(a,c){if(typeof a!="function"||c!=null&&typeof c!="function")throw new Vt(s);var w=function(){var P=arguments,$=c?c.apply(this,P):P[0],X=w.cache;if(X.has($))return X.get($);var oe=a.apply(this,P);return w.cache=X.set($,oe)||X,oe};return w.cache=new(rh.Cache||$o),w}rh.Cache=$o;function ih(a){if(typeof a!="function")throw new Vt(s);return function(){var c=arguments;switch(c.length){case 0:return!a.call(this);case 1:return!a.call(this,c[0]);case 2:return!a.call(this,c[0],c[1]);case 3:return!a.call(this,c[0],c[1],c[2])}return!a.apply(this,c)}}function cP(a){return kb(2,a)}var fP=Kc(function(a,c){c=c.length==1&&Ht(c[0])?st(c[0],gt(Et())):st(fr(c,1),gt(Et()));var w=c.length;return Bt(function(P){for(var $=-1,X=qn(P.length,w);++$<X;)P[$]=c[$].call(this,P[$]);return V(a,this,P)})}),pg=Bt(function(a,c){var w=ti(c,ef(pg));return Ka(a,Z,n,c,w)}),Rb=Bt(function(a,c){var w=ti(c,ef(Rb));return Ka(a,ce,n,c,w)}),dP=cl(function(a,c){return Ka(a,se,n,n,n,c)});function hP(a,c){if(typeof a!="function")throw new Vt(s);return c=c===n?c:Gt(c),Bt(a,c)}function pP(a,c){if(typeof a!="function")throw new Vt(s);return c=c==null?0:Sn(Gt(c),0),Bt(function(w){var P=w[c],$=pa(w,0,c);return P&&Ct($,P),V(a,this,$)})}function gP(a,c,w){var P=!0,$=!0;if(typeof a!="function")throw new Vt(s);return Xn(w)&&(P="leading"in w?!!w.leading:P,$="trailing"in w?!!w.trailing:$),Pb(a,c,{leading:P,maxWait:c,trailing:$})}function vP(a){return Eb(a,1)}function mP(a,c){return pg(Ql(c),a)}function yP(){if(!arguments.length)return[];var a=arguments[0];return Ht(a)?a:[a]}function bP(a){return $r(a,C)}function wP(a,c){return c=typeof c=="function"?c:n,$r(a,C,c)}function xP(a){return $r(a,g|C)}function SP(a,c){return c=typeof c=="function"?c:n,$r(a,g|C,c)}function TP(a,c){return c==null||Uu(a,c,ii(c))}function Za(a,c){return a===c||a!==a&&c!==c}var CP=Co(Ua),EP=Co(function(a,c){return a>=c}),oc=zl(function(){return arguments}())?zl:function(a){return ir(a)&&Ot.call(a,"callee")&&!Il.call(a,"callee")},Ht=le.isArray,kP=h?gt(h):Wa;function Eo(a){return a!=null&&oh(a.length)&&!dl(a)}function hr(a){return ir(a)&&Eo(a)}function OP(a){return a===!0||a===!1||ir(a)&&nr(a)==at}var nu=Ml||Eg,_P=b?gt(b):$c;function DP(a){return ir(a)&&a.nodeType===1&&!Gf(a)}function PP(a){if(a==null)return!0;if(Eo(a)&&(Ht(a)||typeof a=="string"||typeof a.splice=="function"||nu(a)||tf(a)||oc(a)))return!a.length;var c=Ai(a);if(c==Lt||c==Zn)return!a.size;if(zf(a))return!Ho(a).length;for(var w in a)if(Ot.call(a,w))return!1;return!0}function RP(a,c){return nl(a,c)}function IP(a,c,w){w=typeof w=="function"?w:n;var P=w?w(a,c):n;return P===n?nl(a,c,n,w):!!P}function gg(a){if(!ir(a))return!1;var c=nr(a);return c==mt||c==lt||typeof a.message=="string"&&typeof a.name=="string"&&!Gf(a)}function AP(a){return typeof a=="number"&&vs(a)}function dl(a){if(!Xn(a))return!1;var c=nr(a);return c==et||c==At||c==rt||c==ji}function Ib(a){return typeof a=="number"&&a==Gt(a)}function oh(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=Ge}function Xn(a){var c=typeof a;return a!=null&&(c=="object"||c=="function")}function ir(a){return a!=null&&typeof a=="object"}var Ab=E?gt(E):Es;function MP(a,c){return a===c||Gu(a,c,og(c))}function LP(a,c,w){return w=typeof w=="function"?w:n,Gu(a,c,og(c),w)}function FP(a){return Mb(a)&&a!=+a}function NP(a){if(w_(a))throw new Be(o);return Vc(a)}function jP(a){return a===null}function BP(a){return a==null}function Mb(a){return typeof a=="number"||ir(a)&&nr(a)==Hn}function Gf(a){if(!ir(a)||nr(a)!=Un)return!1;var c=La(a);if(c===null)return!0;var w=Ot.call(c,"constructor")&&c.constructor;return typeof w=="function"&&w instanceof w&&Nr.call(w)==Pu}var vg=_?gt(_):za;function $P(a){return Ib(a)&&a>=-9007199254740991&&a<=Ge}var Lb=F?gt(F):Yl;function ah(a){return typeof a=="string"||!Ht(a)&&ir(a)&&nr(a)==sn}function Uo(a){return typeof a=="symbol"||ir(a)&&nr(a)==dn}var tf=j?gt(j):Vo;function VP(a){return a===n}function HP(a){return ir(a)&&Ai(a)==dt}function UP(a){return ir(a)&&nr(a)==_n}var WP=Co(Xi),zP=Co(function(a,c){return a<=c});function Fb(a){if(!a)return[];if(Eo(a))return ah(a)?fn(a):Ur(a);if(Gi&&a[Gi])return Ri(a[Gi]());var c=Ai(a),w=c==Lt?us:c==Zn?go:nf;return w(a)}function hl(a){if(!a)return a===0?a:0;if(a=ya(a),a===Le||a===-1/0){var c=a<0?-1:1;return c*tt}return a===a?a:0}function Gt(a){var c=hl(a),w=c%1;return c===c?w?c-w:c:0}function Nb(a){return a?Va(Gt(a),0,Ce):0}function ya(a){if(typeof a=="number")return a;if(Uo(a))return xe;if(Xn(a)){var c=typeof a.valueOf=="function"?a.valueOf():a;a=Xn(c)?c+"":c}if(typeof a!="string")return a===0?a:+a;a=qe(a);var w=fi.test(a);return w||yr.test(a)?Aa(a.slice(2),w?2:8):Dr.test(a)?xe:+a}function jb(a){return Ii(a,ko(a))}function YP(a){return a?Va(Gt(a),-9007199254740991,Ge):a===0?a:0}function vn(a){return a==null?"":Vr(a)}var GP=_s(function(a,c){if(zf(c)||Eo(c)){Ii(c,ii(c),a);return}for(var w in c)Ot.call(c,w)&&Br(a,w,c[w])}),Bb=_s(function(a,c){Ii(c,ko(c),a)}),sh=_s(function(a,c,w,P){Ii(c,ko(c),a,P)}),qP=_s(function(a,c,w,P){Ii(c,ii(c),a,P)}),XP=cl(Vu);function KP(a,c){var w=jo(a);return c==null?w:Fc(w,c)}var ZP=Bt(function(a,c){a=ot(a);var w=-1,P=c.length,$=P>2?c[2]:n;for($&&Qi(c[0],c[1],$)&&(P=1);++w<P;)for(var X=c[w],oe=ko(X),de=-1,ve=oe.length;++de<ve;){var ze=oe[de],Ye=a[ze];(Ye===n||Za(Ye,Ln[ze])&&!Ot.call(a,ze))&&(a[ze]=X[ze])}return a}),JP=Bt(function(a){return a.push(n,nb),V($b,n,a)});function QP(a,c){return Fr(a,Et(c,3),Ti)}function eR(a,c){return Fr(a,Et(c,3),Vl)}function tR(a,c){return a==null?a:Yu(a,Et(c,3),ko)}function nR(a,c){return a==null?a:Bc(a,Et(c,3),ko)}function rR(a,c){return a&&Ti(a,Et(c,3))}function iR(a,c){return a&&Vl(a,Et(c,3))}function oR(a){return a==null?[]:xs(a,ii(a))}function aR(a){return a==null?[]:xs(a,ko(a))}function mg(a,c,w){var P=a==null?n:fa(a,c);return P===n?w:P}function sR(a,c){return a!=null&&ob(a,c,Hl)}function yg(a,c){return a!=null&&ob(a,c,Ss)}var lR=Ve(function(a,c,w){c!=null&&typeof c.toString!="function"&&(c=Ao.call(c)),a[c]=w},wg(Oo)),uR=Ve(function(a,c,w){c!=null&&typeof c.toString!="function"&&(c=Ao.call(c)),Ot.call(a,c)?a[c].push(w):a[c]=[w]},Et),cR=Bt(So);function ii(a){return Eo(a)?el(a):Ho(a)}function ko(a){return Eo(a)?el(a,!0):rl(a)}function fR(a,c){var w={};return c=Et(c,3),Ti(a,function(P,$,X){Si(w,c(P,$,X),P)}),w}function dR(a,c){var w={};return c=Et(c,3),Ti(a,function(P,$,X){Si(w,$,c(P,$,X))}),w}var hR=_s(function(a,c,w){da(a,c,w)}),$b=_s(function(a,c,w,P){da(a,c,w,P)}),pR=cl(function(a,c){var w={};if(a==null)return w;var P=!1;c=st(c,function(X){return X=Ci(X,a),P||(P=X.length>1),X}),Ii(a,rg(a),w),P&&(w=$r(w,g|x|C,l_));for(var $=c.length;$--;)Hr(w,c[$]);return w});function gR(a,c){return Vb(a,ih(Et(c)))}var vR=cl(function(a,c){return a==null?{}:ol(a,c)});function Vb(a,c){if(a==null)return{};var w=st(rg(a),function(P){return[P]});return c=Et(c),Os(a,w,function(P,$){return c(P,$[0])})}function mR(a,c,w){c=Ci(c,a);var P=-1,$=c.length;for($||($=1,a=n);++P<$;){var X=a==null?n:a[Ps(c[P])];X===n&&(P=$,X=w),a=dl(X)?X.call(a):X}return a}function yR(a,c,w){return a==null?a:Ga(a,c,w)}function bR(a,c,w,P){return P=typeof P=="function"?P:n,a==null?a:Ga(a,c,w,P)}var Hb=Qc(ii),Ub=Qc(ko);function wR(a,c,w){var P=Ht(a),$=P||nu(a)||tf(a);if(c=Et(c,4),w==null){var X=a&&a.constructor;$?w=P?new X:[]:Xn(a)?w=dl(X)?jo(La(a)):{}:w={}}return($?ne:Ti)(a,function(oe,de,ve){return c(w,oe,de,ve)}),w}function xR(a,c){return a==null?!0:Hr(a,c)}function SR(a,c,w){return a==null?a:Gc(a,c,Ql(w))}function TR(a,c,w,P){return P=typeof P=="function"?P:n,a==null?a:Gc(a,c,Ql(w),P)}function nf(a){return a==null?[]:Pt(a,ii(a))}function CR(a){return a==null?[]:Pt(a,ko(a))}function ER(a,c,w){return w===n&&(w=c,c=n),w!==n&&(w=ya(w),w=w===w?w:0),c!==n&&(c=ya(c),c=c===c?c:0),Va(ya(a),c,w)}function kR(a,c,w){return c=hl(c),w===n?(w=c,c=0):w=hl(w),a=ya(a),Ul(a,c,w)}function OR(a,c,w){if(w&&typeof w!="boolean"&&Qi(a,c,w)&&(c=w=n),w===n&&(typeof c=="boolean"?(w=c,c=n):typeof a=="boolean"&&(w=a,a=n)),a===n&&c===n?(a=0,c=1):(a=hl(a),c===n?(c=a,a=0):c=hl(c)),a>c){var P=a;a=c,c=P}if(w||a%1||c%1){var $=oa();return qn(a+$*(c-a+ur("1e-"+(($+"").length-1))),c)}return Ya(a,c)}var _R=S(function(a,c,w){return c=c.toLowerCase(),a+(w?Wb(c):c)});function Wb(a){return bg(vn(a).toLowerCase())}function zb(a){return a=vn(a),a&&a.replace(er,Vn).replace(Qo,"")}function DR(a,c,w){a=vn(a),c=Vr(c);var P=a.length;w=w===n?P:Va(Gt(w),0,P);var $=w;return w-=c.length,w>=0&&a.slice(w,$)==c}function PR(a){return a=vn(a),a&&Hi.test(a)?a.replace(Wt,ta):a}function RR(a){return a=vn(a),a&&ci.test(a)?a.replace(mr,"\\$&"):a}var IR=S(function(a,c,w){return a+(w?"-":"")+c.toLowerCase()}),AR=S(function(a,c,w){return a+(w?" ":"")+c.toLowerCase()}),MR=v("toLowerCase");function LR(a,c,w){a=vn(a),c=Gt(c);var P=c?vo(a):0;if(!c||P>=c)return a;var $=(c-P)/2;return St(Fa($),w)+a+St(ps($),w)}function FR(a,c,w){a=vn(a),c=Gt(c);var P=c?vo(a):0;return c&&P<c?a+St(c-P,w):a}function NR(a,c,w){a=vn(a),c=Gt(c);var P=c?vo(a):0;return c&&P<c?St(c-P,w)+a:a}function jR(a,c,w){return w||c==null?c=0:c&&(c=+c),Au(vn(a).replace(ln,""),c||0)}function BR(a,c,w){return(w?Qi(a,c,w):c===n)?c=1:c=Gt(c),Xl(vn(a),c)}function $R(){var a=arguments,c=vn(a[0]);return a.length<3?c:c.replace(a[1],a[2])}var VR=S(function(a,c,w){return a+(w?"_":"")+c.toLowerCase()});function HR(a,c,w){return w&&typeof w!="number"&&Qi(a,c,w)&&(c=w=n),w=w===n?Ce:w>>>0,w?(a=vn(a),a&&(typeof c=="string"||c!=null&&!vg(c))&&(c=Vr(c),!c&&ei(a))?pa(fn(a),0,w):a.split(c,w)):[]}var UR=S(function(a,c,w){return a+(w?" ":"")+bg(c)});function WR(a,c,w){return a=vn(a),w=w==null?0:Va(Gt(w),0,a.length),c=Vr(c),a.slice(w,w+c.length)==c}function zR(a,c,w){var P=z.templateSettings;w&&Qi(a,c,w)&&(c=n),a=vn(a),c=sh({},c,P,tb);var $=sh({},c.imports,P.imports,tb),X=ii($),oe=Pt($,X),de,ve,ze=0,Ye=c.interpolate||Ui,Je="__p += '",ct=Mt((c.escape||Ui).source+"|"+Ye.source+"|"+(Ye===li?Qn:Ui).source+"|"+(c.evaluate||Ui).source+"|$","g"),wt="//# sourceURL="+(Ot.call(c,"sourceURL")?(c.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++on+"]")+`
|
|
146
|
-
`;a.replace(ct,function(Dt,Qt,nn,Wo,eo,zo){return nn||(nn=Wo),Je+=a.slice(ze,zo).replace(_i,ls),Qt&&(de=!0,Je+=`' +
|
|
147
|
-
__e(`+Qt+`) +
|
|
148
|
-
'`),eo&&(ve=!0,Je+=`';
|
|
149
|
-
`+eo+`;
|
|
150
|
-
__p += '`),nn&&(Je+=`' +
|
|
151
|
-
((__t = (`+nn+`)) == null ? '' : __t) +
|
|
152
|
-
'`),ze=zo+Dt.length,Dt}),Je+=`';
|
|
153
|
-
`;var _t=Ot.call(c,"variable")&&c.variable;if(!_t)Je=`with (obj) {
|
|
154
|
-
`+Je+`
|
|
155
|
-
}
|
|
156
|
-
`;else if(so.test(_t))throw new Be(u);Je=(ve?Je.replace(Po,""):Je).replace(Wn,"$1").replace(qr,"$1;"),Je="function("+(_t||"obj")+`) {
|
|
157
|
-
`+(_t?"":`obj || (obj = {});
|
|
158
|
-
`)+"var __t, __p = ''"+(de?", __e = _.escape":"")+(ve?`, __j = Array.prototype.join;
|
|
159
|
-
function print() { __p += __j.call(arguments, '') }
|
|
160
|
-
`:`;
|
|
161
|
-
`)+Je+`return __p
|
|
162
|
-
}`;var Kt=Gb(function(){return ut(X,wt+"return "+Je).apply(n,oe)});if(Kt.source=Je,gg(Kt))throw Kt;return Kt}function YR(a){return vn(a).toLowerCase()}function GR(a){return vn(a).toUpperCase()}function qR(a,c,w){if(a=vn(a),a&&(w||c===n))return qe(a);if(!a||!(c=Vr(c)))return a;var P=fn(a),$=fn(c),X=bt(P,$),oe=Mn(P,$)+1;return pa(P,X,oe).join("")}function XR(a,c,w){if(a=vn(a),a&&(w||c===n))return a.slice(0,Rl(a)+1);if(!a||!(c=Vr(c)))return a;var P=fn(a),$=Mn(P,fn(c))+1;return pa(P,0,$).join("")}function KR(a,c,w){if(a=vn(a),a&&(w||c===n))return a.replace(ln,"");if(!a||!(c=Vr(c)))return a;var P=fn(a),$=bt(P,fn(c));return pa(P,$).join("")}function ZR(a,c){var w=Pe,P=He;if(Xn(c)){var $="separator"in c?c.separator:$;w="length"in c?Gt(c.length):w,P="omission"in c?Vr(c.omission):P}a=vn(a);var X=a.length;if(ei(a)){var oe=fn(a);X=oe.length}if(w>=X)return a;var de=w-vo(P);if(de<1)return P;var ve=oe?pa(oe,0,de).join(""):a.slice(0,de);if($===n)return ve+P;if(oe&&(de+=ve.length-de),vg($)){if(a.slice(de).search($)){var ze,Ye=ve;for($.global||($=Mt($.source,vn(_r.exec($))+"g")),$.lastIndex=0;ze=$.exec(Ye);)var Je=ze.index;ve=ve.slice(0,Je===n?de:Je)}}else if(a.indexOf(Vr($),de)!=de){var ct=ve.lastIndexOf($);ct>-1&&(ve=ve.slice(0,ct))}return ve+P}function JR(a){return a=vn(a),a&&si.test(a)?a.replace(Jn,fs):a}var QR=S(function(a,c,w){return a+(w?" ":"")+c.toUpperCase()}),bg=v("toUpperCase");function Yb(a,c,w){return a=vn(a),c=w?n:c,c===n?Ws(a)?fe(a):Ft(a):a.match(c)||[]}var Gb=Bt(function(a,c){try{return V(a,n,c)}catch(w){return gg(w)?w:new Be(w)}}),eI=cl(function(a,c){return ne(c,function(w){w=Ps(w),Si(a,w,hg(a[w],a))}),a});function tI(a){var c=a==null?0:a.length,w=Et();return a=c?st(a,function(P){if(typeof P[1]!="function")throw new Vt(s);return[w(P[0]),P[1]]}):[],Bt(function(P){for(var $=-1;++$<c;){var X=a[$];if(V(X[0],this,P))return V(X[1],this,P)}})}function nI(a){return Hu($r(a,g))}function wg(a){return function(){return a}}function rI(a,c){return a==null||a!==a?c:a}var iI=ie(),oI=ie(!0);function Oo(a){return a}function xg(a){return Gl(typeof a=="function"?a:$r(a,g))}function aI(a){return To($r(a,g))}function sI(a,c){return il(a,$r(c,g))}var lI=Bt(function(a,c){return function(w){return So(w,a,c)}}),uI=Bt(function(a,c){return function(w){return So(a,w,c)}});function Sg(a,c,w){var P=ii(c),$=xs(c,P);w==null&&!(Xn(c)&&($.length||!P.length))&&(w=c,c=a,a=this,$=xs(c,ii(c)));var X=!(Xn(w)&&"chain"in w)||!!w.chain,oe=dl(a);return ne($,function(de){var ve=c[de];a[de]=ve,oe&&(a.prototype[de]=function(){var ze=this.__chain__;if(X||ze){var Ye=a(this.__wrapped__),Je=Ye.__actions__=Ur(this.__actions__);return Je.push({func:ve,args:arguments,thisArg:a}),Ye.__chain__=ze,Ye}return ve.apply(a,Ct([this.value()],arguments))})}),a}function cI(){return un._===this&&(un._=Ru),this}function Tg(){}function fI(a){return a=Gt(a),Bt(function(c){return ks(c,a)})}var dI=it(st),hI=it(_e),pI=it(cn);function qb(a){return sg(a)?O(Ps(a)):Hc(a)}function gI(a){return function(c){return a==null?n:fa(a,c)}}var vI=rr(),mI=rr(!0);function Cg(){return[]}function Eg(){return!1}function yI(){return{}}function bI(){return""}function wI(){return!0}function xI(a,c){if(a=Gt(a),a<1||a>Ge)return[];var w=Ce,P=qn(a,Ce);c=Et(c),a-=Ce;for(var $=be(P,c);++w<a;)c(w);return $}function SI(a){return Ht(a)?st(a,Ps):Uo(a)?[a]:Ur(pb(vn(a)))}function TI(a){var c=++Du;return vn(a)+c}var CI=Xe(function(a,c){return a+c},0),EI=Ji("ceil"),kI=Xe(function(a,c){return a/c},1),OI=Ji("floor");function _I(a){return a&&a.length?$l(a,Oo,Ua):n}function DI(a,c){return a&&a.length?$l(a,Et(c,2),Ua):n}function PI(a){return xr(a,Oo)}function RI(a,c){return xr(a,Et(c,2))}function II(a){return a&&a.length?$l(a,Oo,Xi):n}function AI(a,c){return a&&a.length?$l(a,Et(c,2),Xi):n}var MI=Xe(function(a,c){return a*c},1),LI=Ji("round"),FI=Xe(function(a,c){return a-c},0);function NI(a){return a&&a.length?ye(a,Oo):0}function jI(a,c){return a&&a.length?ye(a,Et(c,2)):0}return z.after=aP,z.ary=Eb,z.assign=GP,z.assignIn=Bb,z.assignInWith=sh,z.assignWith=qP,z.at=XP,z.before=kb,z.bind=hg,z.bindAll=eI,z.bindKey=Ob,z.castArray=yP,z.chain=Sb,z.chunk=O_,z.compact=__,z.concat=D_,z.cond=tI,z.conforms=nI,z.constant=wg,z.countBy=ND,z.create=KP,z.curry=_b,z.curryRight=Db,z.debounce=Pb,z.defaults=ZP,z.defaultsDeep=JP,z.defer=sP,z.delay=lP,z.difference=P_,z.differenceBy=R_,z.differenceWith=I_,z.drop=A_,z.dropRight=M_,z.dropRightWhile=L_,z.dropWhile=F_,z.fill=N_,z.filter=BD,z.flatMap=HD,z.flatMapDeep=UD,z.flatMapDepth=WD,z.flatten=yb,z.flattenDeep=j_,z.flattenDepth=B_,z.flip=uP,z.flow=iI,z.flowRight=oI,z.fromPairs=$_,z.functions=oR,z.functionsIn=aR,z.groupBy=zD,z.initial=H_,z.intersection=U_,z.intersectionBy=W_,z.intersectionWith=z_,z.invert=lR,z.invertBy=uR,z.invokeMap=GD,z.iteratee=xg,z.keyBy=qD,z.keys=ii,z.keysIn=ko,z.map=th,z.mapKeys=fR,z.mapValues=dR,z.matches=aI,z.matchesProperty=sI,z.memoize=rh,z.merge=hR,z.mergeWith=$b,z.method=lI,z.methodOf=uI,z.mixin=Sg,z.negate=ih,z.nthArg=fI,z.omit=pR,z.omitBy=gR,z.once=cP,z.orderBy=XD,z.over=dI,z.overArgs=fP,z.overEvery=hI,z.overSome=pI,z.partial=pg,z.partialRight=Rb,z.partition=KD,z.pick=vR,z.pickBy=Vb,z.property=qb,z.propertyOf=gI,z.pull=X_,z.pullAll=wb,z.pullAllBy=K_,z.pullAllWith=Z_,z.pullAt=J_,z.range=vI,z.rangeRight=mI,z.rearg=dP,z.reject=QD,z.remove=Q_,z.rest=hP,z.reverse=fg,z.sampleSize=tP,z.set=yR,z.setWith=bR,z.shuffle=nP,z.slice=eD,z.sortBy=oP,z.sortedUniq=sD,z.sortedUniqBy=lD,z.split=HR,z.spread=pP,z.tail=uD,z.take=cD,z.takeRight=fD,z.takeRightWhile=dD,z.takeWhile=hD,z.tap=_D,z.throttle=gP,z.thru=eh,z.toArray=Fb,z.toPairs=Hb,z.toPairsIn=Ub,z.toPath=SI,z.toPlainObject=jb,z.transform=wR,z.unary=vP,z.union=pD,z.unionBy=gD,z.unionWith=vD,z.uniq=mD,z.uniqBy=yD,z.uniqWith=bD,z.unset=xR,z.unzip=dg,z.unzipWith=xb,z.update=SR,z.updateWith=TR,z.values=nf,z.valuesIn=CR,z.without=wD,z.words=Yb,z.wrap=mP,z.xor=xD,z.xorBy=SD,z.xorWith=TD,z.zip=CD,z.zipObject=ED,z.zipObjectDeep=kD,z.zipWith=OD,z.entries=Hb,z.entriesIn=Ub,z.extend=Bb,z.extendWith=sh,Sg(z,z),z.add=CI,z.attempt=Gb,z.camelCase=_R,z.capitalize=Wb,z.ceil=EI,z.clamp=ER,z.clone=bP,z.cloneDeep=xP,z.cloneDeepWith=SP,z.cloneWith=wP,z.conformsTo=TP,z.deburr=zb,z.defaultTo=rI,z.divide=kI,z.endsWith=DR,z.eq=Za,z.escape=PR,z.escapeRegExp=RR,z.every=jD,z.find=$D,z.findIndex=vb,z.findKey=QP,z.findLast=VD,z.findLastIndex=mb,z.findLastKey=eR,z.floor=OI,z.forEach=Tb,z.forEachRight=Cb,z.forIn=tR,z.forInRight=nR,z.forOwn=rR,z.forOwnRight=iR,z.get=mg,z.gt=CP,z.gte=EP,z.has=sR,z.hasIn=yg,z.head=bb,z.identity=Oo,z.includes=YD,z.indexOf=V_,z.inRange=kR,z.invoke=cR,z.isArguments=oc,z.isArray=Ht,z.isArrayBuffer=kP,z.isArrayLike=Eo,z.isArrayLikeObject=hr,z.isBoolean=OP,z.isBuffer=nu,z.isDate=_P,z.isElement=DP,z.isEmpty=PP,z.isEqual=RP,z.isEqualWith=IP,z.isError=gg,z.isFinite=AP,z.isFunction=dl,z.isInteger=Ib,z.isLength=oh,z.isMap=Ab,z.isMatch=MP,z.isMatchWith=LP,z.isNaN=FP,z.isNative=NP,z.isNil=BP,z.isNull=jP,z.isNumber=Mb,z.isObject=Xn,z.isObjectLike=ir,z.isPlainObject=Gf,z.isRegExp=vg,z.isSafeInteger=$P,z.isSet=Lb,z.isString=ah,z.isSymbol=Uo,z.isTypedArray=tf,z.isUndefined=VP,z.isWeakMap=HP,z.isWeakSet=UP,z.join=Y_,z.kebabCase=IR,z.last=ma,z.lastIndexOf=G_,z.lowerCase=AR,z.lowerFirst=MR,z.lt=WP,z.lte=zP,z.max=_I,z.maxBy=DI,z.mean=PI,z.meanBy=RI,z.min=II,z.minBy=AI,z.stubArray=Cg,z.stubFalse=Eg,z.stubObject=yI,z.stubString=bI,z.stubTrue=wI,z.multiply=MI,z.nth=q_,z.noConflict=cI,z.noop=Tg,z.now=nh,z.pad=LR,z.padEnd=FR,z.padStart=NR,z.parseInt=jR,z.random=OR,z.reduce=ZD,z.reduceRight=JD,z.repeat=BR,z.replace=$R,z.result=mR,z.round=LI,z.runInContext=K,z.sample=eP,z.size=rP,z.snakeCase=VR,z.some=iP,z.sortedIndex=tD,z.sortedIndexBy=nD,z.sortedIndexOf=rD,z.sortedLastIndex=iD,z.sortedLastIndexBy=oD,z.sortedLastIndexOf=aD,z.startCase=UR,z.startsWith=WR,z.subtract=FI,z.sum=NI,z.sumBy=jI,z.template=zR,z.times=xI,z.toFinite=hl,z.toInteger=Gt,z.toLength=Nb,z.toLower=YR,z.toNumber=ya,z.toSafeInteger=YP,z.toString=vn,z.toUpper=GR,z.trim=qR,z.trimEnd=XR,z.trimStart=KR,z.truncate=ZR,z.unescape=JR,z.uniqueId=TI,z.upperCase=QR,z.upperFirst=bg,z.each=Tb,z.eachRight=Cb,z.first=bb,Sg(z,function(){var a={};return Ti(z,function(c,w){Ot.call(z.prototype,w)||(a[w]=c)}),a}(),{chain:!1}),z.VERSION=r,ne(["bind","bindKey","curry","curryRight","partial","partialRight"],function(a){z[a].placeholder=z}),ne(["drop","take"],function(a,c){$t.prototype[a]=function(w){w=w===n?1:Sn(Gt(w),0);var P=this.__filtered__&&!c?new $t(this):this.clone();return P.__filtered__?P.__takeCount__=qn(w,P.__takeCount__):P.__views__.push({size:qn(w,Ce),type:a+(P.__dir__<0?"Right":"")}),P},$t.prototype[a+"Right"]=function(w){return this.reverse()[a](w).reverse()}}),ne(["filter","map","takeWhile"],function(a,c){var w=c+1,P=w==Ke||w==me;$t.prototype[a]=function($){var X=this.clone();return X.__iteratees__.push({iteratee:Et($,3),type:w}),X.__filtered__=X.__filtered__||P,X}}),ne(["head","last"],function(a,c){var w="take"+(c?"Right":"");$t.prototype[a]=function(){return this[w](1).value()[0]}}),ne(["initial","tail"],function(a,c){var w="drop"+(c?"":"Right");$t.prototype[a]=function(){return this.__filtered__?new $t(this):this[w](1)}}),$t.prototype.compact=function(){return this.filter(Oo)},$t.prototype.find=function(a){return this.filter(a).head()},$t.prototype.findLast=function(a){return this.reverse().find(a)},$t.prototype.invokeMap=Bt(function(a,c){return typeof a=="function"?new $t(this):this.map(function(w){return So(w,a,c)})}),$t.prototype.reject=function(a){return this.filter(ih(Et(a)))},$t.prototype.slice=function(a,c){a=Gt(a);var w=this;return w.__filtered__&&(a>0||c<0)?new $t(w):(a<0?w=w.takeRight(-a):a&&(w=w.drop(a)),c!==n&&(c=Gt(c),w=c<0?w.dropRight(-c):w.take(c-a)),w)},$t.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},$t.prototype.toArray=function(){return this.take(Ce)},Ti($t.prototype,function(a,c){var w=/^(?:filter|find|map|reject)|While$/.test(c),P=/^(?:head|last)$/.test(c),$=z[P?"take"+(c=="last"?"Right":""):c],X=P||/^find/.test(c);$&&(z.prototype[c]=function(){var oe=this.__wrapped__,de=P?[1]:arguments,ve=oe instanceof $t,ze=de[0],Ye=ve||Ht(oe),Je=function(Qt){var nn=$.apply(z,Ct([Qt],de));return P&&ct?nn[0]:nn};Ye&&w&&typeof ze=="function"&&ze.length!=1&&(ve=Ye=!1);var ct=this.__chain__,wt=!!this.__actions__.length,_t=X&&!ct,Kt=ve&&!wt;if(!X&&Ye){oe=Kt?oe:new $t(this);var Dt=a.apply(oe,de);return Dt.__actions__.push({func:eh,args:[Je],thisArg:n}),new Sr(Dt,ct)}return _t&&Kt?a.apply(this,de):(Dt=this.thru(Je),_t?P?Dt.value()[0]:Dt.value():Dt)})}),ne(["pop","push","shift","sort","splice","unshift"],function(a){var c=Gn[a],w=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",P=/^(?:pop|shift)$/.test(a);z.prototype[a]=function(){var $=arguments;if(P&&!this.__chain__){var X=this.value();return c.apply(Ht(X)?X:[],$)}return this[w](function(oe){return c.apply(Ht(oe)?oe:[],$)})}}),Ti($t.prototype,function(a,c){var w=z[c];if(w){var P=w.name+"";Ot.call(Na,P)||(Na[P]=[]),Na[P].push({name:c,func:w})}}),Na[we(n,I).name]=[{name:"wrapper",func:n}],$t.prototype.clone=Fl,$t.prototype.reverse=Js,$t.prototype.value=Nl,z.prototype.at=DD,z.prototype.chain=PD,z.prototype.commit=RD,z.prototype.next=ID,z.prototype.plant=MD,z.prototype.reverse=LD,z.prototype.toJSON=z.prototype.valueOf=z.prototype.value=FD,z.prototype.first=z.prototype.head,Gi&&(z.prototype[Gi]=AD),z},Oe=Te();bi?((bi.exports=Oe)._=Oe,Io._=Oe):un._=Oe}).call(Ei)})(wp,wp.exports);var CO=wp.exports;const i6=Eu(CO);function a1(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}function o6(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,r=e.startIndex,i=e.stopIndex;return!(r>n||i<t)}function a6(e){for(var t=e.isItemLoaded,n=e.itemCount,r=e.minimumBatchSize,i=e.startIndex,o=e.stopIndex,s=[],u=null,f=null,p=i;p<=o;p++){var y=t(p);y?f!==null&&(s.push(u,f),u=f=null):(f=p,u===null&&(u=p))}if(f!==null){for(var g=Math.min(Math.max(f,u+r-1),n-1),x=f+1;x<=g&&!t(x);x++)f=x;s.push(u,f)}if(s.length)for(;s[1]-s[0]+1<r&&s[0]>0;){var C=s[0]-1;if(!t(C))s[0]=C;else break}return s}var s6=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},l6=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}}(),u6=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)},s1=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},c6=function(e){u6(t,e);function t(){var n,r,i,o;s6(this,t);for(var s=arguments.length,u=Array(s),f=0;f<s;f++)u[f]=arguments[f];return o=(r=(i=s1(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(u))),i),i._lastRenderedStartIndex=-1,i._lastRenderedStopIndex=-1,i._memoizedUnloadedRanges=[],i._onItemsRendered=function(p){var y=p.visibleStartIndex,g=p.visibleStopIndex;process.env.NODE_ENV!=="production"&&((!a1(y)||!a1(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(p){i._listRef=p},r),s1(i,o)}return l6(t,[{key:"resetloadMoreItemsCache",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this._memoizedUnloadedRanges=[],r&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){process.env.NODE_ENV!=="production"&&this._listRef==null&&console.warn("Invalid list ref; please refer to InfiniteLoader documentation.")}},{key:"render",value:function(){var r=this.props.children;return r({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(r,i){var o=this.props,s=o.isItemLoaded,u=o.itemCount,f=o.minimumBatchSize,p=f===void 0?10:f,y=o.threshold,g=y===void 0?15:y,x=a6({isItemLoaded:s,itemCount:u,minimumBatchSize:p,startIndex:Math.max(0,r-g),stopIndex:Math.min(u-1,i+g)});(this._memoizedUnloadedRanges.length!==x.length||this._memoizedUnloadedRanges.some(function(C,D){return x[D]!==C}))&&(this._memoizedUnloadedRanges=x,this._loadUnloadedRanges(x))}},{key:"_loadUnloadedRanges",value:function(r){for(var i=this,o=this.props.loadMoreItems||this.props.loadMoreRows,s=function(p){var y=r[p],g=r[p+1],x=o(y,g);x!=null&&x.then(function(){if(o6({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())}})},u=0;u<r.length;u+=2)s(u)}}]),t}(q.PureComponent),EO={exports:{}};/*!
|
|
163
|
-
* jQuery JavaScript Library v3.7.1
|
|
164
|
-
* https://jquery.com/
|
|
165
|
-
*
|
|
166
|
-
* Copyright OpenJS Foundation and other contributors
|
|
167
|
-
* Released under the MIT license
|
|
168
|
-
* https://jquery.org/license
|
|
169
|
-
*
|
|
170
|
-
* Date: 2023-08-28T13:37Z
|
|
171
|
-
*/(function(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:Ei,function(t,n){var r=[],i=Object.getPrototypeOf,o=r.slice,s=r.flat?function(h){return r.flat.call(h)}:function(h){return r.concat.apply([],h)},u=r.push,f=r.indexOf,p={},y=p.toString,g=p.hasOwnProperty,x=g.toString,C=x.call(Object),D={},A=function(b){return typeof b=="function"&&typeof b.nodeType!="number"&&typeof b.item!="function"},M=function(b){return b!=null&&b===b.window},I=t.document,H={type:!0,src:!0,nonce:!0,noModule:!0};function U(h,b,E){E=E||I;var _,F,j=E.createElement("script");if(j.text=h,b)for(_ in H)F=b[_]||b.getAttribute&&b.getAttribute(_),F&&j.setAttribute(_,F);E.head.appendChild(j).parentNode.removeChild(j)}function Q(h){return h==null?h+"":typeof h=="object"||typeof h=="function"?p[y.call(h)]||"object":typeof h}var Z="3.7.1",ce=/HTML$/i,T=function(h,b){return new T.fn.init(h,b)};T.fn=T.prototype={jquery:Z,constructor:T,length:0,toArray:function(){return o.call(this)},get:function(h){return h==null?o.call(this):h<0?this[h+this.length]:this[h]},pushStack:function(h){var b=T.merge(this.constructor(),h);return b.prevObject=this,b},each:function(h){return T.each(this,h)},map:function(h){return this.pushStack(T.map(this,function(b,E){return h.call(b,E,b)}))},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(T.grep(this,function(h,b){return(b+1)%2}))},odd:function(){return this.pushStack(T.grep(this,function(h,b){return b%2}))},eq:function(h){var b=this.length,E=+h+(h<0?b:0);return this.pushStack(E>=0&&E<b?[this[E]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:r.sort,splice:r.splice},T.extend=T.fn.extend=function(){var h,b,E,_,F,j,V=arguments[0]||{},ae=1,ne=arguments.length,pe=!1;for(typeof V=="boolean"&&(pe=V,V=arguments[ae]||{},ae++),typeof V!="object"&&!A(V)&&(V={}),ae===ne&&(V=this,ae--);ae<ne;ae++)if((h=arguments[ae])!=null)for(b in h)_=h[b],!(b==="__proto__"||V===_)&&(pe&&_&&(T.isPlainObject(_)||(F=Array.isArray(_)))?(E=V[b],F&&!Array.isArray(E)?j=[]:!F&&!T.isPlainObject(E)?j={}:j=E,F=!1,V[b]=T.extend(pe,j,_)):_!==void 0&&(V[b]=_));return V},T.extend({expando:"jQuery"+(Z+Math.random()).replace(/\D/g,""),isReady:!0,error:function(h){throw new Error(h)},noop:function(){},isPlainObject:function(h){var b,E;return!h||y.call(h)!=="[object Object]"?!1:(b=i(h),b?(E=g.call(b,"constructor")&&b.constructor,typeof E=="function"&&x.call(E)===C):!0)},isEmptyObject:function(h){var b;for(b in h)return!1;return!0},globalEval:function(h,b,E){U(h,{nonce:b&&b.nonce},E)},each:function(h,b){var E,_=0;if(se(h))for(E=h.length;_<E&&b.call(h[_],_,h[_])!==!1;_++);else for(_ in h)if(b.call(h[_],_,h[_])===!1)break;return h},text:function(h){var b,E="",_=0,F=h.nodeType;if(!F)for(;b=h[_++];)E+=T.text(b);return F===1||F===11?h.textContent:F===9?h.documentElement.textContent:F===3||F===4?h.nodeValue:E},makeArray:function(h,b){var E=b||[];return h!=null&&(se(Object(h))?T.merge(E,typeof h=="string"?[h]:h):u.call(E,h)),E},inArray:function(h,b,E){return b==null?-1:f.call(b,h,E)},isXMLDoc:function(h){var b=h&&h.namespaceURI,E=h&&(h.ownerDocument||h).documentElement;return!ce.test(b||E&&E.nodeName||"HTML")},merge:function(h,b){for(var E=+b.length,_=0,F=h.length;_<E;_++)h[F++]=b[_];return h.length=F,h},grep:function(h,b,E){for(var _,F=[],j=0,V=h.length,ae=!E;j<V;j++)_=!b(h[j],j),_!==ae&&F.push(h[j]);return F},map:function(h,b,E){var _,F,j=0,V=[];if(se(h))for(_=h.length;j<_;j++)F=b(h[j],j,E),F!=null&&V.push(F);else for(j in h)F=b(h[j],j,E),F!=null&&V.push(F);return s(V)},guid:1,support:D}),typeof Symbol=="function"&&(T.fn[Symbol.iterator]=r[Symbol.iterator]),T.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(h,b){p["[object "+b+"]"]=b.toLowerCase()});function se(h){var b=!!h&&"length"in h&&h.length,E=Q(h);return A(h)||M(h)?!1:E==="array"||b===0||typeof b=="number"&&b>0&&b-1 in h}function re(h,b){return h.nodeName&&h.nodeName.toLowerCase()===b.toLowerCase()}var Pe=r.pop,He=r.sort,Ue=r.splice,Qe="[\\x20\\t\\r\\n\\f]",Ke=new RegExp("^"+Qe+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Qe+"+$","g");T.contains=function(h,b){var E=b&&b.parentNode;return h===E||!!(E&&E.nodeType===1&&(h.contains?h.contains(E):h.compareDocumentPosition&&h.compareDocumentPosition(E)&16))};var he=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function me(h,b){return b?h==="\0"?"�":h.slice(0,-1)+"\\"+h.charCodeAt(h.length-1).toString(16)+" ":"\\"+h}T.escapeSelector=function(h){return(h+"").replace(he,me)};var Le=I,Ge=u;(function(){var h,b,E,_,F,j=Ge,V,ae,ne,pe,_e,Ie=T.expando,Se=0,We=0,st=Mn(),Ct=Mn(),kt=Mn(),In=Mn(),cn=function(J,fe){return J===fe&&(F=!0),0},Mr="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",Lr="(?:\\\\[\\da-fA-F]{1,6}"+Qe+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Ft="\\["+Qe+"*("+Lr+")(?:"+Qe+"*([*^$|!~]?=)"+Qe+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+Lr+"))|)"+Qe+"*\\]",Fr=":("+Lr+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+Ft+")*)|.*)\\)|)",jt=new RegExp(Qe+"+","g"),en=new RegExp("^"+Qe+"*,"+Qe+"*"),fo=new RegExp("^"+Qe+"*([>+~]|"+Qe+")"+Qe+"*"),ho=new RegExp(Qe+"|>"),xr=new RegExp(Fr),O=new RegExp("^"+Lr+"$"),L={ID:new RegExp("^#("+Lr+")"),CLASS:new RegExp("^\\.("+Lr+")"),TAG:new RegExp("^("+Lr+"|[*])"),ATTR:new RegExp("^"+Ft),PSEUDO:new RegExp("^"+Fr),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+Qe+"*(even|odd|(([+-]|)(\\d*)n|)"+Qe+"*(?:([+-]|)"+Qe+"*(\\d+)|))"+Qe+"*\\)|)","i"),bool:new RegExp("^(?:"+Mr+")$","i"),needsContext:new RegExp("^"+Qe+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+Qe+"*((?:-\\d)?\\d*)"+Qe+"*\\)|)(?=[^-]|$)","i")},W=/^(?:input|select|textarea|button)$/i,ee=/^h\d$/i,ye=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,be=/[+~]/,Me=new RegExp("\\\\[\\da-fA-F]{1,6}"+Qe+"?|\\\\([^\\r\\n\\f])","g"),qe=function(J,fe){var Te="0x"+J.slice(1)-65536;return fe||(Te<0?String.fromCharCode(Te+65536):String.fromCharCode(Te>>10|55296,Te&1023|56320))},gt=function(){Ri()},Pt=go(function(J){return J.disabled===!0&&re(J,"fieldset")},{dir:"parentNode",next:"legend"});function Tt(){try{return V.activeElement}catch{}}try{j.apply(r=o.call(Le.childNodes),Le.childNodes),r[Le.childNodes.length].nodeType}catch{j={apply:function(fe,Te){Ge.apply(fe,o.call(Te))},call:function(fe){Ge.apply(fe,o.call(arguments,1))}}}function bt(J,fe,Te,Oe){var K,ue,le,Ae,Be,ut,ft,ot=fe&&fe.ownerDocument,Mt=fe?fe.nodeType:9;if(Te=Te||[],typeof J!="string"||!J||Mt!==1&&Mt!==9&&Mt!==11)return Te;if(!Oe&&(Ri(fe),fe=fe||V,ne)){if(Mt!==11&&(Be=ye.exec(J)))if(K=Be[1]){if(Mt===9)if(le=fe.getElementById(K)){if(le.id===K)return j.call(Te,le),Te}else return Te;else if(ot&&(le=ot.getElementById(K))&&bt.contains(fe,le)&&le.id===K)return j.call(Te,le),Te}else{if(Be[2])return j.apply(Te,fe.getElementsByTagName(J)),Te;if((K=Be[3])&&fe.getElementsByClassName)return j.apply(Te,fe.getElementsByClassName(K)),Te}if(!In[J+" "]&&(!pe||!pe.test(J))){if(ft=J,ot=fe,Mt===1&&(ho.test(J)||fo.test(J))){for(ot=be.test(J)&&Ws(fe.parentNode)||fe,(ot!=fe||!D.scope)&&((Ae=fe.getAttribute("id"))?Ae=T.escapeSelector(Ae):fe.setAttribute("id",Ae=Ie)),ut=na(J),ue=ut.length;ue--;)ut[ue]=(Ae?"#"+Ae:":scope")+" "+ti(ut[ue]);ft=ut.join(",")}try{return j.apply(Te,ot.querySelectorAll(ft)),Te}catch{In(J,!0)}finally{Ae===Ie&&fe.removeAttribute("id")}}}return Ma(J.replace(Ke,"$1"),fe,Te,Oe)}function Mn(){var J=[];function fe(Te,Oe){return J.push(Te+" ")>b.cacheLength&&delete fe[J.shift()],fe[Te+" "]=Oe}return fe}function xn(J){return J[Ie]=!0,J}function Vn(J){var fe=V.createElement("fieldset");try{return!!J(fe)}catch{return!1}finally{fe.parentNode&&fe.parentNode.removeChild(fe),fe=null}}function ta(J){return function(fe){return re(fe,"input")&&fe.type===J}}function ls(J){return function(fe){return(re(fe,"input")||re(fe,"button"))&&fe.type===J}}function po(J){return function(fe){return"form"in fe?fe.parentNode&&fe.disabled===!1?"label"in fe?"label"in fe.parentNode?fe.parentNode.disabled===J:fe.disabled===J:fe.isDisabled===J||fe.isDisabled!==!J&&Pt(fe)===J:fe.disabled===J:"label"in fe?fe.disabled===J:!1}}function ei(J){return xn(function(fe){return fe=+fe,xn(function(Te,Oe){for(var K,ue=J([],Te.length,fe),le=ue.length;le--;)Te[K=ue[le]]&&(Te[K]=!(Oe[K]=Te[K]))})})}function Ws(J){return J&&typeof J.getElementsByTagName<"u"&&J}function Ri(J){var fe,Te=J?J.ownerDocument||J:Le;return Te==V||Te.nodeType!==9||!Te.documentElement||(V=Te,ae=V.documentElement,ne=!T.isXMLDoc(V),_e=ae.matches||ae.webkitMatchesSelector||ae.msMatchesSelector,ae.msMatchesSelector&&Le!=V&&(fe=V.defaultView)&&fe.top!==fe&&fe.addEventListener("unload",gt),D.getById=Vn(function(Oe){return ae.appendChild(Oe).id=T.expando,!V.getElementsByName||!V.getElementsByName(T.expando).length}),D.disconnectedMatch=Vn(function(Oe){return _e.call(Oe,"*")}),D.scope=Vn(function(){return V.querySelectorAll(":scope")}),D.cssHas=Vn(function(){try{return V.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),D.getById?(b.filter.ID=function(Oe){var K=Oe.replace(Me,qe);return function(ue){return ue.getAttribute("id")===K}},b.find.ID=function(Oe,K){if(typeof K.getElementById<"u"&&ne){var ue=K.getElementById(Oe);return ue?[ue]:[]}}):(b.filter.ID=function(Oe){var K=Oe.replace(Me,qe);return function(ue){var le=typeof ue.getAttributeNode<"u"&&ue.getAttributeNode("id");return le&&le.value===K}},b.find.ID=function(Oe,K){if(typeof K.getElementById<"u"&&ne){var ue,le,Ae,Be=K.getElementById(Oe);if(Be){if(ue=Be.getAttributeNode("id"),ue&&ue.value===Oe)return[Be];for(Ae=K.getElementsByName(Oe),le=0;Be=Ae[le++];)if(ue=Be.getAttributeNode("id"),ue&&ue.value===Oe)return[Be]}return[]}}),b.find.TAG=function(Oe,K){return typeof K.getElementsByTagName<"u"?K.getElementsByTagName(Oe):K.querySelectorAll(Oe)},b.find.CLASS=function(Oe,K){if(typeof K.getElementsByClassName<"u"&&ne)return K.getElementsByClassName(Oe)},pe=[],Vn(function(Oe){var K;ae.appendChild(Oe).innerHTML="<a id='"+Ie+"' href='' disabled='disabled'></a><select id='"+Ie+"-\r\\' disabled='disabled'><option selected=''></option></select>",Oe.querySelectorAll("[selected]").length||pe.push("\\["+Qe+"*(?:value|"+Mr+")"),Oe.querySelectorAll("[id~="+Ie+"-]").length||pe.push("~="),Oe.querySelectorAll("a#"+Ie+"+*").length||pe.push(".#.+[+~]"),Oe.querySelectorAll(":checked").length||pe.push(":checked"),K=V.createElement("input"),K.setAttribute("type","hidden"),Oe.appendChild(K).setAttribute("name","D"),ae.appendChild(Oe).disabled=!0,Oe.querySelectorAll(":disabled").length!==2&&pe.push(":enabled",":disabled"),K=V.createElement("input"),K.setAttribute("name",""),Oe.appendChild(K),Oe.querySelectorAll("[name='']").length||pe.push("\\["+Qe+"*name"+Qe+"*="+Qe+`*(?:''|"")`)}),D.cssHas||pe.push(":has"),pe=pe.length&&new RegExp(pe.join("|")),cn=function(Oe,K){if(Oe===K)return F=!0,0;var ue=!Oe.compareDocumentPosition-!K.compareDocumentPosition;return ue||(ue=(Oe.ownerDocument||Oe)==(K.ownerDocument||K)?Oe.compareDocumentPosition(K):1,ue&1||!D.sortDetached&&K.compareDocumentPosition(Oe)===ue?Oe===V||Oe.ownerDocument==Le&&bt.contains(Le,Oe)?-1:K===V||K.ownerDocument==Le&&bt.contains(Le,K)?1:_?f.call(_,Oe)-f.call(_,K):0:ue&4?-1:1)}),V}bt.matches=function(J,fe){return bt(J,null,null,fe)},bt.matchesSelector=function(J,fe){if(Ri(J),ne&&!In[fe+" "]&&(!pe||!pe.test(fe)))try{var Te=_e.call(J,fe);if(Te||D.disconnectedMatch||J.document&&J.document.nodeType!==11)return Te}catch{In(fe,!0)}return bt(fe,V,null,[J]).length>0},bt.contains=function(J,fe){return(J.ownerDocument||J)!=V&&Ri(J),T.contains(J,fe)},bt.attr=function(J,fe){(J.ownerDocument||J)!=V&&Ri(J);var Te=b.attrHandle[fe.toLowerCase()],Oe=Te&&g.call(b.attrHandle,fe.toLowerCase())?Te(J,fe,!ne):void 0;return Oe!==void 0?Oe:J.getAttribute(fe)},bt.error=function(J){throw new Error("Syntax error, unrecognized expression: "+J)},T.uniqueSort=function(J){var fe,Te=[],Oe=0,K=0;if(F=!D.sortStable,_=!D.sortStable&&o.call(J,0),He.call(J,cn),F){for(;fe=J[K++];)fe===J[K]&&(Oe=Te.push(K));for(;Oe--;)Ue.call(J,Te[Oe],1)}return _=null,J},T.fn.uniqueSort=function(){return this.pushStack(T.uniqueSort(o.apply(this)))},b=T.expr={cacheLength:50,createPseudo:xn,match:L,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(J){return J[1]=J[1].replace(Me,qe),J[3]=(J[3]||J[4]||J[5]||"").replace(Me,qe),J[2]==="~="&&(J[3]=" "+J[3]+" "),J.slice(0,4)},CHILD:function(J){return J[1]=J[1].toLowerCase(),J[1].slice(0,3)==="nth"?(J[3]||bt.error(J[0]),J[4]=+(J[4]?J[5]+(J[6]||1):2*(J[3]==="even"||J[3]==="odd")),J[5]=+(J[7]+J[8]||J[3]==="odd")):J[3]&&bt.error(J[0]),J},PSEUDO:function(J){var fe,Te=!J[6]&&J[2];return L.CHILD.test(J[0])?null:(J[3]?J[2]=J[4]||J[5]||"":Te&&xr.test(Te)&&(fe=na(Te,!0))&&(fe=Te.indexOf(")",Te.length-fe)-Te.length)&&(J[0]=J[0].slice(0,fe),J[2]=Te.slice(0,fe)),J.slice(0,3))}},filter:{TAG:function(J){var fe=J.replace(Me,qe).toLowerCase();return J==="*"?function(){return!0}:function(Te){return re(Te,fe)}},CLASS:function(J){var fe=st[J+" "];return fe||(fe=new RegExp("(^|"+Qe+")"+J+"("+Qe+"|$)"))&&st(J,function(Te){return fe.test(typeof Te.className=="string"&&Te.className||typeof Te.getAttribute<"u"&&Te.getAttribute("class")||"")})},ATTR:function(J,fe,Te){return function(Oe){var K=bt.attr(Oe,J);return K==null?fe==="!=":fe?(K+="",fe==="="?K===Te:fe==="!="?K!==Te:fe==="^="?Te&&K.indexOf(Te)===0:fe==="*="?Te&&K.indexOf(Te)>-1:fe==="$="?Te&&K.slice(-Te.length)===Te:fe==="~="?(" "+K.replace(jt," ")+" ").indexOf(Te)>-1:fe==="|="?K===Te||K.slice(0,Te.length+1)===Te+"-":!1):!0}},CHILD:function(J,fe,Te,Oe,K){var ue=J.slice(0,3)!=="nth",le=J.slice(-4)!=="last",Ae=fe==="of-type";return Oe===1&&K===0?function(Be){return!!Be.parentNode}:function(Be,ut,ft){var ot,Mt,xt,Vt,Gn,tr=ue!==le?"nextSibling":"previousSibling",Ln=Be.parentNode,zt=Ae&&Be.nodeName.toLowerCase(),Nr=!ft&&!Ae,Ot=!1;if(Ln){if(ue){for(;tr;){for(xt=Be;xt=xt[tr];)if(Ae?re(xt,zt):xt.nodeType===1)return!1;Gn=tr=J==="only"&&!Gn&&"nextSibling"}return!0}if(Gn=[le?Ln.firstChild:Ln.lastChild],le&&Nr){for(Mt=Ln[Ie]||(Ln[Ie]={}),ot=Mt[J]||[],Vt=ot[0]===Se&&ot[1],Ot=Vt&&ot[2],xt=Vt&&Ln.childNodes[Vt];xt=++Vt&&xt&&xt[tr]||(Ot=Vt=0)||Gn.pop();)if(xt.nodeType===1&&++Ot&&xt===Be){Mt[J]=[Se,Vt,Ot];break}}else if(Nr&&(Mt=Be[Ie]||(Be[Ie]={}),ot=Mt[J]||[],Vt=ot[0]===Se&&ot[1],Ot=Vt),Ot===!1)for(;(xt=++Vt&&xt&&xt[tr]||(Ot=Vt=0)||Gn.pop())&&!((Ae?re(xt,zt):xt.nodeType===1)&&++Ot&&(Nr&&(Mt=xt[Ie]||(xt[Ie]={}),Mt[J]=[Se,Ot]),xt===Be)););return Ot-=K,Ot===Oe||Ot%Oe===0&&Ot/Oe>=0}}},PSEUDO:function(J,fe){var Te,Oe=b.pseudos[J]||b.setFilters[J.toLowerCase()]||bt.error("unsupported pseudo: "+J);return Oe[Ie]?Oe(fe):Oe.length>1?(Te=[J,J,"",fe],b.setFilters.hasOwnProperty(J.toLowerCase())?xn(function(K,ue){for(var le,Ae=Oe(K,fe),Be=Ae.length;Be--;)le=f.call(K,Ae[Be]),K[le]=!(ue[le]=Ae[Be])}):function(K){return Oe(K,0,Te)}):Oe}},pseudos:{not:xn(function(J){var fe=[],Te=[],Oe=fs(J.replace(Ke,"$1"));return Oe[Ie]?xn(function(K,ue,le,Ae){for(var Be,ut=Oe(K,null,Ae,[]),ft=K.length;ft--;)(Be=ut[ft])&&(K[ft]=!(ue[ft]=Be))}):function(K,ue,le){return fe[0]=K,Oe(fe,null,le,Te),fe[0]=null,!Te.pop()}}),has:xn(function(J){return function(fe){return bt(J,fe).length>0}}),contains:xn(function(J){return J=J.replace(Me,qe),function(fe){return(fe.textContent||T.text(fe)).indexOf(J)>-1}}),lang:xn(function(J){return O.test(J||"")||bt.error("unsupported lang: "+J),J=J.replace(Me,qe).toLowerCase(),function(fe){var Te;do if(Te=ne?fe.lang:fe.getAttribute("xml:lang")||fe.getAttribute("lang"))return Te=Te.toLowerCase(),Te===J||Te.indexOf(J+"-")===0;while((fe=fe.parentNode)&&fe.nodeType===1);return!1}}),target:function(J){var fe=t.location&&t.location.hash;return fe&&fe.slice(1)===J.id},root:function(J){return J===ae},focus:function(J){return J===Tt()&&V.hasFocus()&&!!(J.type||J.href||~J.tabIndex)},enabled:po(!1),disabled:po(!0),checked:function(J){return re(J,"input")&&!!J.checked||re(J,"option")&&!!J.selected},selected:function(J){return J.parentNode&&J.parentNode.selectedIndex,J.selected===!0},empty:function(J){for(J=J.firstChild;J;J=J.nextSibling)if(J.nodeType<6)return!1;return!0},parent:function(J){return!b.pseudos.empty(J)},header:function(J){return ee.test(J.nodeName)},input:function(J){return W.test(J.nodeName)},button:function(J){return re(J,"input")&&J.type==="button"||re(J,"button")},text:function(J){var fe;return re(J,"input")&&J.type==="text"&&((fe=J.getAttribute("type"))==null||fe.toLowerCase()==="text")},first:ei(function(){return[0]}),last:ei(function(J,fe){return[fe-1]}),eq:ei(function(J,fe,Te){return[Te<0?Te+fe:Te]}),even:ei(function(J,fe){for(var Te=0;Te<fe;Te+=2)J.push(Te);return J}),odd:ei(function(J,fe){for(var Te=1;Te<fe;Te+=2)J.push(Te);return J}),lt:ei(function(J,fe,Te){var Oe;for(Te<0?Oe=Te+fe:Te>fe?Oe=fe:Oe=Te;--Oe>=0;)J.push(Oe);return J}),gt:ei(function(J,fe,Te){for(var Oe=Te<0?Te+fe:Te;++Oe<fe;)J.push(Oe);return J})}},b.pseudos.nth=b.pseudos.eq;for(h in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[h]=ta(h);for(h in{submit:!0,reset:!0})b.pseudos[h]=ls(h);function us(){}us.prototype=b.filters=b.pseudos,b.setFilters=new us;function na(J,fe){var Te,Oe,K,ue,le,Ae,Be,ut=Ct[J+" "];if(ut)return fe?0:ut.slice(0);for(le=J,Ae=[],Be=b.preFilter;le;){(!Te||(Oe=en.exec(le)))&&(Oe&&(le=le.slice(Oe[0].length)||le),Ae.push(K=[])),Te=!1,(Oe=fo.exec(le))&&(Te=Oe.shift(),K.push({value:Te,type:Oe[0].replace(Ke," ")}),le=le.slice(Te.length));for(ue in b.filter)(Oe=L[ue].exec(le))&&(!Be[ue]||(Oe=Be[ue](Oe)))&&(Te=Oe.shift(),K.push({value:Te,type:ue,matches:Oe}),le=le.slice(Te.length));if(!Te)break}return fe?le.length:le?bt.error(J):Ct(J,Ae).slice(0)}function ti(J){for(var fe=0,Te=J.length,Oe="";fe<Te;fe++)Oe+=J[fe].value;return Oe}function go(J,fe,Te){var Oe=fe.dir,K=fe.next,ue=K||Oe,le=Te&&ue==="parentNode",Ae=We++;return fe.first?function(Be,ut,ft){for(;Be=Be[Oe];)if(Be.nodeType===1||le)return J(Be,ut,ft);return!1}:function(Be,ut,ft){var ot,Mt,xt=[Se,Ae];if(ft){for(;Be=Be[Oe];)if((Be.nodeType===1||le)&&J(Be,ut,ft))return!0}else for(;Be=Be[Oe];)if(Be.nodeType===1||le)if(Mt=Be[Ie]||(Be[Ie]={}),K&&re(Be,K))Be=Be[Oe]||Be;else{if((ot=Mt[ue])&&ot[0]===Se&&ot[1]===Ae)return xt[2]=ot[2];if(Mt[ue]=xt,xt[2]=J(Be,ut,ft))return!0}return!1}}function zs(J){return J.length>1?function(fe,Te,Oe){for(var K=J.length;K--;)if(!J[K](fe,Te,Oe))return!1;return!0}:J[0]}function _u(J,fe,Te){for(var Oe=0,K=fe.length;Oe<K;Oe++)bt(J,fe[Oe],Te);return Te}function cs(J,fe,Te,Oe,K){for(var ue,le=[],Ae=0,Be=J.length,ut=fe!=null;Ae<Be;Ae++)(ue=J[Ae])&&(!Te||Te(ue,Oe,K))&&(le.push(ue),ut&&fe.push(Ae));return le}function vo(J,fe,Te,Oe,K,ue){return Oe&&!Oe[Ie]&&(Oe=vo(Oe)),K&&!K[Ie]&&(K=vo(K,ue)),xn(function(le,Ae,Be,ut){var ft,ot,Mt,xt,Vt=[],Gn=[],tr=Ae.length,Ln=le||_u(fe||"*",Be.nodeType?[Be]:Be,[]),zt=J&&(le||!fe)?cs(Ln,Vt,J,Be,ut):Ln;if(Te?(xt=K||(le?J:tr||Oe)?[]:Ae,Te(zt,xt,Be,ut)):xt=zt,Oe)for(ft=cs(xt,Gn),Oe(ft,[],Be,ut),ot=ft.length;ot--;)(Mt=ft[ot])&&(xt[Gn[ot]]=!(zt[Gn[ot]]=Mt));if(le){if(K||J){if(K){for(ft=[],ot=xt.length;ot--;)(Mt=xt[ot])&&ft.push(zt[ot]=Mt);K(null,xt=[],ft,ut)}for(ot=xt.length;ot--;)(Mt=xt[ot])&&(ft=K?f.call(le,Mt):Vt[ot])>-1&&(le[ft]=!(Ae[ft]=Mt))}}else xt=cs(xt===Ae?xt.splice(tr,xt.length):xt),K?K(null,Ae,xt,ut):j.apply(Ae,xt)})}function fn(J){for(var fe,Te,Oe,K=J.length,ue=b.relative[J[0].type],le=ue||b.relative[" "],Ae=ue?1:0,Be=go(function(ot){return ot===fe},le,!0),ut=go(function(ot){return f.call(fe,ot)>-1},le,!0),ft=[function(ot,Mt,xt){var Vt=!ue&&(xt||Mt!=E)||((fe=Mt).nodeType?Be(ot,Mt,xt):ut(ot,Mt,xt));return fe=null,Vt}];Ae<K;Ae++)if(Te=b.relative[J[Ae].type])ft=[go(zs(ft),Te)];else{if(Te=b.filter[J[Ae].type].apply(null,J[Ae].matches),Te[Ie]){for(Oe=++Ae;Oe<K&&!b.relative[J[Oe].type];Oe++);return vo(Ae>1&&zs(ft),Ae>1&&ti(J.slice(0,Ae-1).concat({value:J[Ae-2].type===" "?"*":""})).replace(Ke,"$1"),Te,Ae<Oe&&fn(J.slice(Ae,Oe)),Oe<K&&fn(J=J.slice(Oe)),Oe<K&&ti(J))}ft.push(Te)}return zs(ft)}function Rl(J,fe){var Te=fe.length>0,Oe=J.length>0,K=function(ue,le,Ae,Be,ut){var ft,ot,Mt,xt=0,Vt="0",Gn=ue&&[],tr=[],Ln=E,zt=ue||Oe&&b.find.TAG("*",ut),Nr=Se+=Ln==null?1:Math.random()||.1,Ot=zt.length;for(ut&&(E=le==V||le||ut);Vt!==Ot&&(ft=zt[Vt])!=null;Vt++){if(Oe&&ft){for(ot=0,!le&&ft.ownerDocument!=V&&(Ri(ft),Ae=!ne);Mt=J[ot++];)if(Mt(ft,le||V,Ae)){j.call(Be,ft);break}ut&&(Se=Nr)}Te&&((ft=!Mt&&ft)&&xt--,ue&&Gn.push(ft))}if(xt+=Vt,Te&&Vt!==xt){for(ot=0;Mt=fe[ot++];)Mt(Gn,tr,le,Ae);if(ue){if(xt>0)for(;Vt--;)Gn[Vt]||tr[Vt]||(tr[Vt]=Pe.call(Be));tr=cs(tr)}j.apply(Be,tr),ut&&!ue&&tr.length>0&&xt+fe.length>1&&T.uniqueSort(Be)}return ut&&(Se=Nr,E=Ln),Gn};return Te?xn(K):K}function fs(J,fe){var Te,Oe=[],K=[],ue=kt[J+" "];if(!ue){for(fe||(fe=na(J)),Te=fe.length;Te--;)ue=fn(fe[Te]),ue[Ie]?Oe.push(ue):K.push(ue);ue=kt(J,Rl(K,Oe)),ue.selector=J}return ue}function Ma(J,fe,Te,Oe){var K,ue,le,Ae,Be,ut=typeof J=="function"&&J,ft=!Oe&&na(J=ut.selector||J);if(Te=Te||[],ft.length===1){if(ue=ft[0]=ft[0].slice(0),ue.length>2&&(le=ue[0]).type==="ID"&&fe.nodeType===9&&ne&&b.relative[ue[1].type]){if(fe=(b.find.ID(le.matches[0].replace(Me,qe),fe)||[])[0],fe)ut&&(fe=fe.parentNode);else return Te;J=J.slice(ue.shift().value.length)}for(K=L.needsContext.test(J)?0:ue.length;K--&&(le=ue[K],!b.relative[Ae=le.type]);)if((Be=b.find[Ae])&&(Oe=Be(le.matches[0].replace(Me,qe),be.test(ue[0].type)&&Ws(fe.parentNode)||fe))){if(ue.splice(K,1),J=Oe.length&&ti(ue),!J)return j.apply(Te,Oe),Te;break}}return(ut||fs(J,ft))(Oe,fe,!ne,Te,!fe||be.test(J)&&Ws(fe.parentNode)||fe),Te}D.sortStable=Ie.split("").sort(cn).join("")===Ie,Ri(),D.sortDetached=Vn(function(J){return J.compareDocumentPosition(V.createElement("fieldset"))&1}),T.find=bt,T.expr[":"]=T.expr.pseudos,T.unique=T.uniqueSort,bt.compile=fs,bt.select=Ma,bt.setDocument=Ri,bt.tokenize=na,bt.escape=T.escapeSelector,bt.getText=T.text,bt.isXML=T.isXMLDoc,bt.selectors=T.expr,bt.support=T.support,bt.uniqueSort=T.uniqueSort})();var tt=function(h,b,E){for(var _=[],F=E!==void 0;(h=h[b])&&h.nodeType!==9;)if(h.nodeType===1){if(F&&T(h).is(E))break;_.push(h)}return _},xe=function(h,b){for(var E=[];h;h=h.nextSibling)h.nodeType===1&&h!==b&&E.push(h);return E},Ce=T.expr.match.needsContext,$e=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function je(h,b,E){return A(b)?T.grep(h,function(_,F){return!!b.call(_,F,_)!==E}):b.nodeType?T.grep(h,function(_){return _===b!==E}):typeof b!="string"?T.grep(h,function(_){return f.call(b,_)>-1!==E}):T.filter(b,h,E)}T.filter=function(h,b,E){var _=b[0];return E&&(h=":not("+h+")"),b.length===1&&_.nodeType===1?T.find.matchesSelector(_,h)?[_]:[]:T.find.matches(h,T.grep(b,function(F){return F.nodeType===1}))},T.fn.extend({find:function(h){var b,E,_=this.length,F=this;if(typeof h!="string")return this.pushStack(T(h).filter(function(){for(b=0;b<_;b++)if(T.contains(F[b],this))return!0}));for(E=this.pushStack([]),b=0;b<_;b++)T.find(h,F[b],E);return _>1?T.uniqueSort(E):E},filter:function(h){return this.pushStack(je(this,h||[],!1))},not:function(h){return this.pushStack(je(this,h||[],!0))},is:function(h){return!!je(this,typeof h=="string"&&Ce.test(h)?T(h):h||[],!1).length}});var ke,De=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Fe=T.fn.init=function(h,b,E){var _,F;if(!h)return this;if(E=E||ke,typeof h=="string")if(h[0]==="<"&&h[h.length-1]===">"&&h.length>=3?_=[null,h,null]:_=De.exec(h),_&&(_[1]||!b))if(_[1]){if(b=b instanceof T?b[0]:b,T.merge(this,T.parseHTML(_[1],b&&b.nodeType?b.ownerDocument||b:I,!0)),$e.test(_[1])&&T.isPlainObject(b))for(_ in b)A(this[_])?this[_](b[_]):this.attr(_,b[_]);return this}else return F=I.getElementById(_[2]),F&&(this[0]=F,this.length=1),this;else return!b||b.jquery?(b||E).find(h):this.constructor(b).find(h);else{if(h.nodeType)return this[0]=h,this.length=1,this;if(A(h))return E.ready!==void 0?E.ready(h):h(T)}return T.makeArray(h,this)};Fe.prototype=T.fn,ke=T(I);var rt=/^(?:parents|prev(?:Until|All))/,at={children:!0,contents:!0,next:!0,prev:!0};T.fn.extend({has:function(h){var b=T(h,this),E=b.length;return this.filter(function(){for(var _=0;_<E;_++)if(T.contains(this,b[_]))return!0})},closest:function(h,b){var E,_=0,F=this.length,j=[],V=typeof h!="string"&&T(h);if(!Ce.test(h)){for(;_<F;_++)for(E=this[_];E&&E!==b;E=E.parentNode)if(E.nodeType<11&&(V?V.index(E)>-1:E.nodeType===1&&T.find.matchesSelector(E,h))){j.push(E);break}}return this.pushStack(j.length>1?T.uniqueSort(j):j)},index:function(h){return h?typeof h=="string"?f.call(T(h),this[0]):f.call(this,h.jquery?h[0]:h):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(h,b){return this.pushStack(T.uniqueSort(T.merge(this.get(),T(h,b))))},addBack:function(h){return this.add(h==null?this.prevObject:this.prevObject.filter(h))}});function ht(h,b){for(;(h=h[b])&&h.nodeType!==1;);return h}T.each({parent:function(h){var b=h.parentNode;return b&&b.nodeType!==11?b:null},parents:function(h){return tt(h,"parentNode")},parentsUntil:function(h,b,E){return tt(h,"parentNode",E)},next:function(h){return ht(h,"nextSibling")},prev:function(h){return ht(h,"previousSibling")},nextAll:function(h){return tt(h,"nextSibling")},prevAll:function(h){return tt(h,"previousSibling")},nextUntil:function(h,b,E){return tt(h,"nextSibling",E)},prevUntil:function(h,b,E){return tt(h,"previousSibling",E)},siblings:function(h){return xe((h.parentNode||{}).firstChild,h)},children:function(h){return xe(h.firstChild)},contents:function(h){return h.contentDocument!=null&&i(h.contentDocument)?h.contentDocument:(re(h,"template")&&(h=h.content||h),T.merge([],h.childNodes))}},function(h,b){T.fn[h]=function(E,_){var F=T.map(this,b,E);return h.slice(-5)!=="Until"&&(_=E),_&&typeof _=="string"&&(F=T.filter(_,F)),this.length>1&&(at[h]||T.uniqueSort(F),rt.test(h)&&F.reverse()),this.pushStack(F)}});var lt=/[^\x20\t\r\n\f]+/g;function mt(h){var b={};return T.each(h.match(lt)||[],function(E,_){b[_]=!0}),b}T.Callbacks=function(h){h=typeof h=="string"?mt(h):T.extend({},h);var b,E,_,F,j=[],V=[],ae=-1,ne=function(){for(F=F||h.once,_=b=!0;V.length;ae=-1)for(E=V.shift();++ae<j.length;)j[ae].apply(E[0],E[1])===!1&&h.stopOnFalse&&(ae=j.length,E=!1);h.memory||(E=!1),b=!1,F&&(E?j=[]:j="")},pe={add:function(){return j&&(E&&!b&&(ae=j.length-1,V.push(E)),function _e(Ie){T.each(Ie,function(Se,We){A(We)?(!h.unique||!pe.has(We))&&j.push(We):We&&We.length&&Q(We)!=="string"&&_e(We)})}(arguments),E&&!b&&ne()),this},remove:function(){return T.each(arguments,function(_e,Ie){for(var Se;(Se=T.inArray(Ie,j,Se))>-1;)j.splice(Se,1),Se<=ae&&ae--}),this},has:function(_e){return _e?T.inArray(_e,j)>-1:j.length>0},empty:function(){return j&&(j=[]),this},disable:function(){return F=V=[],j=E="",this},disabled:function(){return!j},lock:function(){return F=V=[],!E&&!b&&(j=E=""),this},locked:function(){return!!F},fireWith:function(_e,Ie){return F||(Ie=Ie||[],Ie=[_e,Ie.slice?Ie.slice():Ie],V.push(Ie),b||ne()),this},fire:function(){return pe.fireWith(this,arguments),this},fired:function(){return!!_}};return pe};function et(h){return h}function At(h){throw h}function Lt(h,b,E,_){var F;try{h&&A(F=h.promise)?F.call(h).done(b).fail(E):h&&A(F=h.then)?F.call(h,b,E):b.apply(void 0,[h].slice(_))}catch(j){E.apply(void 0,[j])}}T.extend({Deferred:function(h){var b=[["notify","progress",T.Callbacks("memory"),T.Callbacks("memory"),2],["resolve","done",T.Callbacks("once memory"),T.Callbacks("once memory"),0,"resolved"],["reject","fail",T.Callbacks("once memory"),T.Callbacks("once memory"),1,"rejected"]],E="pending",_={state:function(){return E},always:function(){return F.done(arguments).fail(arguments),this},catch:function(j){return _.then(null,j)},pipe:function(){var j=arguments;return T.Deferred(function(V){T.each(b,function(ae,ne){var pe=A(j[ne[4]])&&j[ne[4]];F[ne[1]](function(){var _e=pe&&pe.apply(this,arguments);_e&&A(_e.promise)?_e.promise().progress(V.notify).done(V.resolve).fail(V.reject):V[ne[0]+"With"](this,pe?[_e]:arguments)})}),j=null}).promise()},then:function(j,V,ae){var ne=0;function pe(_e,Ie,Se,We){return function(){var st=this,Ct=arguments,kt=function(){var cn,Mr;if(!(_e<ne)){if(cn=Se.apply(st,Ct),cn===Ie.promise())throw new TypeError("Thenable self-resolution");Mr=cn&&(typeof cn=="object"||typeof cn=="function")&&cn.then,A(Mr)?We?Mr.call(cn,pe(ne,Ie,et,We),pe(ne,Ie,At,We)):(ne++,Mr.call(cn,pe(ne,Ie,et,We),pe(ne,Ie,At,We),pe(ne,Ie,et,Ie.notifyWith))):(Se!==et&&(st=void 0,Ct=[cn]),(We||Ie.resolveWith)(st,Ct))}},In=We?kt:function(){try{kt()}catch(cn){T.Deferred.exceptionHook&&T.Deferred.exceptionHook(cn,In.error),_e+1>=ne&&(Se!==At&&(st=void 0,Ct=[cn]),Ie.rejectWith(st,Ct))}};_e?In():(T.Deferred.getErrorHook?In.error=T.Deferred.getErrorHook():T.Deferred.getStackHook&&(In.error=T.Deferred.getStackHook()),t.setTimeout(In))}}return T.Deferred(function(_e){b[0][3].add(pe(0,_e,A(ae)?ae:et,_e.notifyWith)),b[1][3].add(pe(0,_e,A(j)?j:et)),b[2][3].add(pe(0,_e,A(V)?V:At))}).promise()},promise:function(j){return j!=null?T.extend(j,_):_}},F={};return T.each(b,function(j,V){var ae=V[2],ne=V[5];_[V[1]]=ae.add,ne&&ae.add(function(){E=ne},b[3-j][2].disable,b[3-j][3].disable,b[0][2].lock,b[0][3].lock),ae.add(V[3].fire),F[V[0]]=function(){return F[V[0]+"With"](this===F?void 0:this,arguments),this},F[V[0]+"With"]=ae.fireWith}),_.promise(F),h&&h.call(F,F),F},when:function(h){var b=arguments.length,E=b,_=Array(E),F=o.call(arguments),j=T.Deferred(),V=function(ae){return function(ne){_[ae]=this,F[ae]=arguments.length>1?o.call(arguments):ne,--b||j.resolveWith(_,F)}};if(b<=1&&(Lt(h,j.done(V(E)).resolve,j.reject,!b),j.state()==="pending"||A(F[E]&&F[E].then)))return j.then();for(;E--;)Lt(F[E],V(E),j.reject);return j.promise()}});var Hn=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;T.Deferred.exceptionHook=function(h,b){t.console&&t.console.warn&&h&&Hn.test(h.name)&&t.console.warn("jQuery.Deferred exception: "+h.message,h.stack,b)},T.readyException=function(h){t.setTimeout(function(){throw h})};var gr=T.Deferred();T.fn.ready=function(h){return gr.then(h).catch(function(b){T.readyException(b)}),this},T.extend({isReady:!1,readyWait:1,ready:function(h){(h===!0?--T.readyWait:T.isReady)||(T.isReady=!0,!(h!==!0&&--T.readyWait>0)&&gr.resolveWith(I,[T]))}}),T.ready.then=gr.then;function Un(){I.removeEventListener("DOMContentLoaded",Un),t.removeEventListener("load",Un),T.ready()}I.readyState==="complete"||I.readyState!=="loading"&&!I.documentElement.doScroll?t.setTimeout(T.ready):(I.addEventListener("DOMContentLoaded",Un),t.addEventListener("load",Un));var Cn=function(h,b,E,_,F,j,V){var ae=0,ne=h.length,pe=E==null;if(Q(E)==="object"){F=!0;for(ae in E)Cn(h,b,ae,E[ae],!0,j,V)}else if(_!==void 0&&(F=!0,A(_)||(V=!0),pe&&(V?(b.call(h,_),b=null):(pe=b,b=function(_e,Ie,Se){return pe.call(T(_e),Se)})),b))for(;ae<ne;ae++)b(h[ae],E,V?_:_.call(h[ae],ae,b(h[ae],E)));return F?h:pe?b.call(h):ne?b(h[0],E):j},ji=/^-ms-/,Er=/-([a-z])/g;function Zn(h,b){return b.toUpperCase()}function sn(h){return h.replace(ji,"ms-").replace(Er,Zn)}var dn=function(h){return h.nodeType===1||h.nodeType===9||!+h.nodeType};function hn(){this.expando=T.expando+hn.uid++}hn.uid=1,hn.prototype={cache:function(h){var b=h[this.expando];return b||(b={},dn(h)&&(h.nodeType?h[this.expando]=b:Object.defineProperty(h,this.expando,{value:b,configurable:!0}))),b},set:function(h,b,E){var _,F=this.cache(h);if(typeof b=="string")F[sn(b)]=E;else for(_ in b)F[sn(_)]=b[_];return F},get:function(h,b){return b===void 0?this.cache(h):h[this.expando]&&h[this.expando][sn(b)]},access:function(h,b,E){return b===void 0||b&&typeof b=="string"&&E===void 0?this.get(h,b):(this.set(h,b,E),E!==void 0?E:b)},remove:function(h,b){var E,_=h[this.expando];if(_!==void 0){if(b!==void 0)for(Array.isArray(b)?b=b.map(sn):(b=sn(b),b=b in _?[b]:b.match(lt)||[]),E=b.length;E--;)delete _[b[E]];(b===void 0||T.isEmptyObject(_))&&(h.nodeType?h[this.expando]=void 0:delete h[this.expando])}},hasData:function(h){var b=h[this.expando];return b!==void 0&&!T.isEmptyObject(b)}};var dt=new hn,_n=new hn,ai=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,an=/[A-Z]/g;function Bi(h){return h==="true"?!0:h==="false"?!1:h==="null"?null:h===+h+""?+h:ai.test(h)?JSON.parse(h):h}function $i(h,b,E){var _;if(E===void 0&&h.nodeType===1)if(_="data-"+b.replace(an,"-$&").toLowerCase(),E=h.getAttribute(_),typeof E=="string"){try{E=Bi(E)}catch{}_n.set(h,b,E)}else E=void 0;return E}T.extend({hasData:function(h){return _n.hasData(h)||dt.hasData(h)},data:function(h,b,E){return _n.access(h,b,E)},removeData:function(h,b){_n.remove(h,b)},_data:function(h,b,E){return dt.access(h,b,E)},_removeData:function(h,b){dt.remove(h,b)}}),T.fn.extend({data:function(h,b){var E,_,F,j=this[0],V=j&&j.attributes;if(h===void 0){if(this.length&&(F=_n.get(j),j.nodeType===1&&!dt.get(j,"hasDataAttrs"))){for(E=V.length;E--;)V[E]&&(_=V[E].name,_.indexOf("data-")===0&&(_=sn(_.slice(5)),$i(j,_,F[_])));dt.set(j,"hasDataAttrs",!0)}return F}return typeof h=="object"?this.each(function(){_n.set(this,h)}):Cn(this,function(ae){var ne;if(j&&ae===void 0)return ne=_n.get(j,h),ne!==void 0||(ne=$i(j,h),ne!==void 0)?ne:void 0;this.each(function(){_n.set(this,h,ae)})},null,b,arguments.length>1,null,!0)},removeData:function(h){return this.each(function(){_n.remove(this,h)})}}),T.extend({queue:function(h,b,E){var _;if(h)return b=(b||"fx")+"queue",_=dt.get(h,b),E&&(!_||Array.isArray(E)?_=dt.access(h,b,T.makeArray(E)):_.push(E)),_||[]},dequeue:function(h,b){b=b||"fx";var E=T.queue(h,b),_=E.length,F=E.shift(),j=T._queueHooks(h,b),V=function(){T.dequeue(h,b)};F==="inprogress"&&(F=E.shift(),_--),F&&(b==="fx"&&E.unshift("inprogress"),delete j.stop,F.call(h,V,j)),!_&&j&&j.empty.fire()},_queueHooks:function(h,b){var E=b+"queueHooks";return dt.get(h,E)||dt.access(h,E,{empty:T.Callbacks("once memory").add(function(){dt.remove(h,[b+"queue",E])})})}}),T.fn.extend({queue:function(h,b){var E=2;return typeof h!="string"&&(b=h,h="fx",E--),arguments.length<E?T.queue(this[0],h):b===void 0?this:this.each(function(){var _=T.queue(this,h,b);T._queueHooks(this,h),h==="fx"&&_[0]!=="inprogress"&&T.dequeue(this,h)})},dequeue:function(h){return this.each(function(){T.dequeue(this,h)})},clearQueue:function(h){return this.queue(h||"fx",[])},promise:function(h,b){var E,_=1,F=T.Deferred(),j=this,V=this.length,ae=function(){--_||F.resolveWith(j,[j])};for(typeof h!="string"&&(b=h,h=void 0),h=h||"fx";V--;)E=dt.get(j[V],h+"queueHooks"),E&&E.empty&&(_++,E.empty.add(ae));return ae(),F.promise(b)}});var Vi=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,kr=new RegExp("^(?:([+-])=|)("+Vi+")([a-z%]*)$","i"),jn=["Top","Right","Bottom","Left"],Or=I.documentElement,vr=function(h){return T.contains(h.ownerDocument,h)},Yr={composed:!0};Or.getRootNode&&(vr=function(h){return T.contains(h.ownerDocument,h)||h.getRootNode(Yr)===h.ownerDocument});var Gr=function(h,b){return h=b||h,h.style.display==="none"||h.style.display===""&&vr(h)&&T.css(h,"display")==="none"};function Po(h,b,E,_){var F,j,V=20,ae=_?function(){return _.cur()}:function(){return T.css(h,b,"")},ne=ae(),pe=E&&E[3]||(T.cssNumber[b]?"":"px"),_e=h.nodeType&&(T.cssNumber[b]||pe!=="px"&&+ne)&&kr.exec(T.css(h,b));if(_e&&_e[3]!==pe){for(ne=ne/2,pe=pe||_e[3],_e=+ne||1;V--;)T.style(h,b,_e+pe),(1-j)*(1-(j=ae()/ne||.5))<=0&&(V=0),_e=_e/j;_e=_e*2,T.style(h,b,_e+pe),E=E||[]}return E&&(_e=+_e||+ne||0,F=E[1]?_e+(E[1]+1)*E[2]:+E[2],_&&(_.unit=pe,_.start=_e,_.end=F)),F}var Wn={};function qr(h){var b,E=h.ownerDocument,_=h.nodeName,F=Wn[_];return F||(b=E.body.appendChild(E.createElement(_)),F=T.css(b,"display"),b.parentNode.removeChild(b),F==="none"&&(F="block"),Wn[_]=F,F)}function Jn(h,b){for(var E,_,F=[],j=0,V=h.length;j<V;j++)_=h[j],_.style&&(E=_.style.display,b?(E==="none"&&(F[j]=dt.get(_,"display")||null,F[j]||(_.style.display="")),_.style.display===""&&Gr(_)&&(F[j]=qr(_))):E!=="none"&&(F[j]="none",dt.set(_,"display",E)));for(j=0;j<V;j++)F[j]!=null&&(h[j].style.display=F[j]);return h}T.fn.extend({show:function(){return Jn(this,!0)},hide:function(){return Jn(this)},toggle:function(h){return typeof h=="boolean"?h?this.show():this.hide():this.each(function(){Gr(this)?T(this).show():T(this).hide()})}});var Wt=/^(?:checkbox|radio)$/i,si=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Hi=/^$|^module$|\/(?:java|ecma)script/i;(function(){var h=I.createDocumentFragment(),b=h.appendChild(I.createElement("div")),E=I.createElement("input");E.setAttribute("type","radio"),E.setAttribute("checked","checked"),E.setAttribute("name","t"),b.appendChild(E),D.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML="<textarea>x</textarea>",D.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue,b.innerHTML="<option></option>",D.option=!!b.lastChild})();var Dn={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,"",""]};Dn.tbody=Dn.tfoot=Dn.colgroup=Dn.caption=Dn.thead,Dn.th=Dn.td,D.option||(Dn.optgroup=Dn.option=[1,"<select multiple='multiple'>","</select>"]);function pn(h,b){var E;return typeof h.getElementsByTagName<"u"?E=h.getElementsByTagName(b||"*"):typeof h.querySelectorAll<"u"?E=h.querySelectorAll(b||"*"):E=[],b===void 0||b&&re(h,b)?T.merge([h],E):E}function li(h,b){for(var E=0,_=h.length;E<_;E++)dt.set(h[E],"globalEval",!b||dt.get(b[E],"globalEval"))}var ui=/<|&#?\w+;/;function En(h,b,E,_,F){for(var j,V,ae,ne,pe,_e,Ie=b.createDocumentFragment(),Se=[],We=0,st=h.length;We<st;We++)if(j=h[We],j||j===0)if(Q(j)==="object")T.merge(Se,j.nodeType?[j]:j);else if(!ui.test(j))Se.push(b.createTextNode(j));else{for(V=V||Ie.appendChild(b.createElement("div")),ae=(si.exec(j)||["",""])[1].toLowerCase(),ne=Dn[ae]||Dn._default,V.innerHTML=ne[1]+T.htmlPrefilter(j)+ne[2],_e=ne[0];_e--;)V=V.lastChild;T.merge(Se,V.childNodes),V=Ie.firstChild,V.textContent=""}for(Ie.textContent="",We=0;j=Se[We++];){if(_&&T.inArray(j,_)>-1){F&&F.push(j);continue}if(pe=vr(j),V=pn(Ie.appendChild(j),"script"),pe&&li(V),E)for(_e=0;j=V[_e++];)Hi.test(j.type||"")&&E.push(j)}return Ie}var oo=/^([^.]*)(?:\.(.+)|)/;function mr(){return!0}function ci(){return!1}function ln(h,b,E,_,F,j){var V,ae;if(typeof b=="object"){typeof E!="string"&&(_=_||E,E=void 0);for(ae in b)ln(h,ae,E,_,b[ae],j);return h}if(_==null&&F==null?(F=E,_=E=void 0):F==null&&(typeof E=="string"?(F=_,_=void 0):(F=_,_=E,E=void 0)),F===!1)F=ci;else if(!F)return h;return j===1&&(V=F,F=function(ne){return T().off(ne),V.apply(this,arguments)},F.guid=V.guid||(V.guid=T.guid++)),h.each(function(){T.event.add(this,b,F,_,E)})}T.event={global:{},add:function(h,b,E,_,F){var j,V,ae,ne,pe,_e,Ie,Se,We,st,Ct,kt=dt.get(h);if(dn(h))for(E.handler&&(j=E,E=j.handler,F=j.selector),F&&T.find.matchesSelector(Or,F),E.guid||(E.guid=T.guid++),(ne=kt.events)||(ne=kt.events=Object.create(null)),(V=kt.handle)||(V=kt.handle=function(In){return typeof T<"u"&&T.event.triggered!==In.type?T.event.dispatch.apply(h,arguments):void 0}),b=(b||"").match(lt)||[""],pe=b.length;pe--;)ae=oo.exec(b[pe])||[],We=Ct=ae[1],st=(ae[2]||"").split(".").sort(),We&&(Ie=T.event.special[We]||{},We=(F?Ie.delegateType:Ie.bindType)||We,Ie=T.event.special[We]||{},_e=T.extend({type:We,origType:Ct,data:_,handler:E,guid:E.guid,selector:F,needsContext:F&&T.expr.match.needsContext.test(F),namespace:st.join(".")},j),(Se=ne[We])||(Se=ne[We]=[],Se.delegateCount=0,(!Ie.setup||Ie.setup.call(h,_,st,V)===!1)&&h.addEventListener&&h.addEventListener(We,V)),Ie.add&&(Ie.add.call(h,_e),_e.handler.guid||(_e.handler.guid=E.guid)),F?Se.splice(Se.delegateCount++,0,_e):Se.push(_e),T.event.global[We]=!0)},remove:function(h,b,E,_,F){var j,V,ae,ne,pe,_e,Ie,Se,We,st,Ct,kt=dt.hasData(h)&&dt.get(h);if(!(!kt||!(ne=kt.events))){for(b=(b||"").match(lt)||[""],pe=b.length;pe--;){if(ae=oo.exec(b[pe])||[],We=Ct=ae[1],st=(ae[2]||"").split(".").sort(),!We){for(We in ne)T.event.remove(h,We+b[pe],E,_,!0);continue}for(Ie=T.event.special[We]||{},We=(_?Ie.delegateType:Ie.bindType)||We,Se=ne[We]||[],ae=ae[2]&&new RegExp("(^|\\.)"+st.join("\\.(?:.*\\.|)")+"(\\.|$)"),V=j=Se.length;j--;)_e=Se[j],(F||Ct===_e.origType)&&(!E||E.guid===_e.guid)&&(!ae||ae.test(_e.namespace))&&(!_||_===_e.selector||_==="**"&&_e.selector)&&(Se.splice(j,1),_e.selector&&Se.delegateCount--,Ie.remove&&Ie.remove.call(h,_e));V&&!Se.length&&((!Ie.teardown||Ie.teardown.call(h,st,kt.handle)===!1)&&T.removeEvent(h,We,kt.handle),delete ne[We])}T.isEmptyObject(ne)&&dt.remove(h,"handle events")}},dispatch:function(h){var b,E,_,F,j,V,ae=new Array(arguments.length),ne=T.event.fix(h),pe=(dt.get(this,"events")||Object.create(null))[ne.type]||[],_e=T.event.special[ne.type]||{};for(ae[0]=ne,b=1;b<arguments.length;b++)ae[b]=arguments[b];if(ne.delegateTarget=this,!(_e.preDispatch&&_e.preDispatch.call(this,ne)===!1)){for(V=T.event.handlers.call(this,ne,pe),b=0;(F=V[b++])&&!ne.isPropagationStopped();)for(ne.currentTarget=F.elem,E=0;(j=F.handlers[E++])&&!ne.isImmediatePropagationStopped();)(!ne.rnamespace||j.namespace===!1||ne.rnamespace.test(j.namespace))&&(ne.handleObj=j,ne.data=j.data,_=((T.event.special[j.origType]||{}).handle||j.handler).apply(F.elem,ae),_!==void 0&&(ne.result=_)===!1&&(ne.preventDefault(),ne.stopPropagation()));return _e.postDispatch&&_e.postDispatch.call(this,ne),ne.result}},handlers:function(h,b){var E,_,F,j,V,ae=[],ne=b.delegateCount,pe=h.target;if(ne&&pe.nodeType&&!(h.type==="click"&&h.button>=1)){for(;pe!==this;pe=pe.parentNode||this)if(pe.nodeType===1&&!(h.type==="click"&&pe.disabled===!0)){for(j=[],V={},E=0;E<ne;E++)_=b[E],F=_.selector+" ",V[F]===void 0&&(V[F]=_.needsContext?T(F,this).index(pe)>-1:T.find(F,this,null,[pe]).length),V[F]&&j.push(_);j.length&&ae.push({elem:pe,handlers:j})}}return pe=this,ne<b.length&&ae.push({elem:pe,handlers:b.slice(ne)}),ae},addProp:function(h,b){Object.defineProperty(T.Event.prototype,h,{enumerable:!0,configurable:!0,get:A(b)?function(){if(this.originalEvent)return b(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[h]},set:function(E){Object.defineProperty(this,h,{enumerable:!0,configurable:!0,writable:!0,value:E})}})},fix:function(h){return h[T.expando]?h:new T.Event(h)},special:{load:{noBubble:!0},click:{setup:function(h){var b=this||h;return Wt.test(b.type)&&b.click&&re(b,"input")&&ki(b,"click",!0),!1},trigger:function(h){var b=this||h;return Wt.test(b.type)&&b.click&&re(b,"input")&&ki(b,"click"),!0},_default:function(h){var b=h.target;return Wt.test(b.type)&&b.click&&re(b,"input")&&dt.get(b,"click")||re(b,"a")}},beforeunload:{postDispatch:function(h){h.result!==void 0&&h.originalEvent&&(h.originalEvent.returnValue=h.result)}}}};function ki(h,b,E){if(!E){dt.get(h,b)===void 0&&T.event.add(h,b,mr);return}dt.set(h,b,!1),T.event.add(h,b,{namespace:!1,handler:function(_){var F,j=dt.get(this,b);if(_.isTrigger&1&&this[b]){if(j)(T.event.special[b]||{}).delegateType&&_.stopPropagation();else if(j=o.call(arguments),dt.set(this,b,j),this[b](),F=dt.get(this,b),dt.set(this,b,!1),j!==F)return _.stopImmediatePropagation(),_.preventDefault(),F}else j&&(dt.set(this,b,T.event.trigger(j[0],j.slice(1),this)),_.stopPropagation(),_.isImmediatePropagationStopped=mr)}})}T.removeEvent=function(h,b,E){h.removeEventListener&&h.removeEventListener(b,E)},T.Event=function(h,b){if(!(this instanceof T.Event))return new T.Event(h,b);h&&h.type?(this.originalEvent=h,this.type=h.type,this.isDefaultPrevented=h.defaultPrevented||h.defaultPrevented===void 0&&h.returnValue===!1?mr:ci,this.target=h.target&&h.target.nodeType===3?h.target.parentNode:h.target,this.currentTarget=h.currentTarget,this.relatedTarget=h.relatedTarget):this.type=h,b&&T.extend(this,b),this.timeStamp=h&&h.timeStamp||Date.now(),this[T.expando]=!0},T.Event.prototype={constructor:T.Event,isDefaultPrevented:ci,isPropagationStopped:ci,isImmediatePropagationStopped:ci,isSimulated:!1,preventDefault:function(){var h=this.originalEvent;this.isDefaultPrevented=mr,h&&!this.isSimulated&&h.preventDefault()},stopPropagation:function(){var h=this.originalEvent;this.isPropagationStopped=mr,h&&!this.isSimulated&&h.stopPropagation()},stopImmediatePropagation:function(){var h=this.originalEvent;this.isImmediatePropagationStopped=mr,h&&!this.isSimulated&&h.stopImmediatePropagation(),this.stopPropagation()}},T.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},T.event.addProp),T.each({focus:"focusin",blur:"focusout"},function(h,b){function E(_){if(I.documentMode){var F=dt.get(this,"handle"),j=T.event.fix(_);j.type=_.type==="focusin"?"focus":"blur",j.isSimulated=!0,F(_),j.target===j.currentTarget&&F(j)}else T.event.simulate(b,_.target,T.event.fix(_))}T.event.special[h]={setup:function(){var _;if(ki(this,h,!0),I.documentMode)_=dt.get(this,b),_||this.addEventListener(b,E),dt.set(this,b,(_||0)+1);else return!1},trigger:function(){return ki(this,h),!0},teardown:function(){var _;if(I.documentMode)_=dt.get(this,b)-1,_?dt.set(this,b,_):(this.removeEventListener(b,E),dt.remove(this,b));else return!1},_default:function(_){return dt.get(_.target,h)},delegateType:b},T.event.special[b]={setup:function(){var _=this.ownerDocument||this.document||this,F=I.documentMode?this:_,j=dt.get(F,b);j||(I.documentMode?this.addEventListener(b,E):_.addEventListener(h,E,!0)),dt.set(F,b,(j||0)+1)},teardown:function(){var _=this.ownerDocument||this.document||this,F=I.documentMode?this:_,j=dt.get(F,b)-1;j?dt.set(F,b,j):(I.documentMode?this.removeEventListener(b,E):_.removeEventListener(h,E,!0),dt.remove(F,b))}}}),T.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(h,b){T.event.special[h]={delegateType:b,bindType:b,handle:function(E){var _,F=this,j=E.relatedTarget,V=E.handleObj;return(!j||j!==F&&!T.contains(F,j))&&(E.type=V.origType,_=V.handler.apply(this,arguments),E.type=b),_}}}),T.fn.extend({on:function(h,b,E,_){return ln(this,h,b,E,_)},one:function(h,b,E,_){return ln(this,h,b,E,_,1)},off:function(h,b,E){var _,F;if(h&&h.preventDefault&&h.handleObj)return _=h.handleObj,T(h.delegateTarget).off(_.namespace?_.origType+"."+_.namespace:_.origType,_.selector,_.handler),this;if(typeof h=="object"){for(F in h)this.off(F,b,h[F]);return this}return(b===!1||typeof b=="function")&&(E=b,b=void 0),E===!1&&(E=ci),this.each(function(){T.event.remove(this,h,E,b)})}});var Da=/<script|<style|<link/i,Pa=/checked\s*(?:[^=]|=\s*.checked.)/i,Xr=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function ao(h,b){return re(h,"table")&&re(b.nodeType!==11?b:b.firstChild,"tr")&&T(h).children("tbody")[0]||h}function so(h){return h.type=(h.getAttribute("type")!==null)+"/"+h.type,h}function Oi(h){return(h.type||"").slice(0,5)==="true/"?h.type=h.type.slice(5):h.removeAttribute("type"),h}function Qn(h,b){var E,_,F,j,V,ae,ne;if(b.nodeType===1){if(dt.hasData(h)&&(j=dt.get(h),ne=j.events,ne)){dt.remove(b,"handle events");for(F in ne)for(E=0,_=ne[F].length;E<_;E++)T.event.add(b,F,ne[F][E])}_n.hasData(h)&&(V=_n.access(h),ae=T.extend({},V),_n.set(b,ae))}}function _r(h,b){var E=b.nodeName.toLowerCase();E==="input"&&Wt.test(h.type)?b.checked=h.checked:(E==="input"||E==="textarea")&&(b.defaultValue=h.defaultValue)}function Dr(h,b,E,_){b=s(b);var F,j,V,ae,ne,pe,_e=0,Ie=h.length,Se=Ie-1,We=b[0],st=A(We);if(st||Ie>1&&typeof We=="string"&&!D.checkClone&&Pa.test(We))return h.each(function(Ct){var kt=h.eq(Ct);st&&(b[0]=We.call(this,Ct,kt.html())),Dr(kt,b,E,_)});if(Ie&&(F=En(b,h[0].ownerDocument,!1,h,_),j=F.firstChild,F.childNodes.length===1&&(F=j),j||_)){for(V=T.map(pn(F,"script"),so),ae=V.length;_e<Ie;_e++)ne=F,_e!==Se&&(ne=T.clone(ne,!0,!0),ae&&T.merge(V,pn(ne,"script"))),E.call(h[_e],ne,_e);if(ae)for(pe=V[V.length-1].ownerDocument,T.map(V,Oi),_e=0;_e<ae;_e++)ne=V[_e],Hi.test(ne.type||"")&&!dt.access(ne,"globalEval")&&T.contains(pe,ne)&&(ne.src&&(ne.type||"").toLowerCase()!=="module"?T._evalUrl&&!ne.noModule&&T._evalUrl(ne.src,{nonce:ne.nonce||ne.getAttribute("nonce")},pe):U(ne.textContent.replace(Xr,""),ne,pe))}return h}function fi(h,b,E){for(var _,F=b?T.filter(b,h):h,j=0;(_=F[j])!=null;j++)!E&&_.nodeType===1&&T.cleanData(pn(_)),_.parentNode&&(E&&vr(_)&&li(pn(_,"script")),_.parentNode.removeChild(_));return h}T.extend({htmlPrefilter:function(h){return h},clone:function(h,b,E){var _,F,j,V,ae=h.cloneNode(!0),ne=vr(h);if(!D.noCloneChecked&&(h.nodeType===1||h.nodeType===11)&&!T.isXMLDoc(h))for(V=pn(ae),j=pn(h),_=0,F=j.length;_<F;_++)_r(j[_],V[_]);if(b)if(E)for(j=j||pn(h),V=V||pn(ae),_=0,F=j.length;_<F;_++)Qn(j[_],V[_]);else Qn(h,ae);return V=pn(ae,"script"),V.length>0&&li(V,!ne&&pn(h,"script")),ae},cleanData:function(h){for(var b,E,_,F=T.event.special,j=0;(E=h[j])!==void 0;j++)if(dn(E)){if(b=E[dt.expando]){if(b.events)for(_ in b.events)F[_]?T.event.remove(E,_):T.removeEvent(E,_,b.handle);E[dt.expando]=void 0}E[_n.expando]&&(E[_n.expando]=void 0)}}}),T.fn.extend({detach:function(h){return fi(this,h,!0)},remove:function(h){return fi(this,h)},text:function(h){return Cn(this,function(b){return b===void 0?T.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=b)})},null,h,arguments.length)},append:function(){return Dr(this,arguments,function(h){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var b=ao(this,h);b.appendChild(h)}})},prepend:function(){return Dr(this,arguments,function(h){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var b=ao(this,h);b.insertBefore(h,b.firstChild)}})},before:function(){return Dr(this,arguments,function(h){this.parentNode&&this.parentNode.insertBefore(h,this)})},after:function(){return Dr(this,arguments,function(h){this.parentNode&&this.parentNode.insertBefore(h,this.nextSibling)})},empty:function(){for(var h,b=0;(h=this[b])!=null;b++)h.nodeType===1&&(T.cleanData(pn(h,!1)),h.textContent="");return this},clone:function(h,b){return h=h??!1,b=b??h,this.map(function(){return T.clone(this,h,b)})},html:function(h){return Cn(this,function(b){var E=this[0]||{},_=0,F=this.length;if(b===void 0&&E.nodeType===1)return E.innerHTML;if(typeof b=="string"&&!Da.test(b)&&!Dn[(si.exec(b)||["",""])[1].toLowerCase()]){b=T.htmlPrefilter(b);try{for(;_<F;_++)E=this[_]||{},E.nodeType===1&&(T.cleanData(pn(E,!1)),E.innerHTML=b);E=0}catch{}}E&&this.empty().append(b)},null,h,arguments.length)},replaceWith:function(){var h=[];return Dr(this,arguments,function(b){var E=this.parentNode;T.inArray(this,h)<0&&(T.cleanData(pn(this)),E&&E.replaceChild(b,this))},h)}}),T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(h,b){T.fn[h]=function(E){for(var _,F=[],j=T(E),V=j.length-1,ae=0;ae<=V;ae++)_=ae===V?this:this.clone(!0),T(j[ae])[b](_),u.apply(F,_.get());return this.pushStack(F)}});var Kr=new RegExp("^("+Vi+")(?!px)[a-z%]+$","i"),yr=/^--/,Pr=function(h){var b=h.ownerDocument.defaultView;return(!b||!b.opener)&&(b=t),b.getComputedStyle(h)},er=function(h,b,E){var _,F,j={};for(F in b)j[F]=h.style[F],h.style[F]=b[F];_=E.call(h);for(F in b)h.style[F]=j[F];return _},Ui=new RegExp(jn.join("|"),"i");(function(){function h(){if(pe){ne.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",pe.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",Or.appendChild(ne).appendChild(pe);var _e=t.getComputedStyle(pe);E=_e.top!=="1%",ae=b(_e.marginLeft)===12,pe.style.right="60%",j=b(_e.right)===36,_=b(_e.width)===36,pe.style.position="absolute",F=b(pe.offsetWidth/3)===12,Or.removeChild(ne),pe=null}}function b(_e){return Math.round(parseFloat(_e))}var E,_,F,j,V,ae,ne=I.createElement("div"),pe=I.createElement("div");pe.style&&(pe.style.backgroundClip="content-box",pe.cloneNode(!0).style.backgroundClip="",D.clearCloneStyle=pe.style.backgroundClip==="content-box",T.extend(D,{boxSizingReliable:function(){return h(),_},pixelBoxStyles:function(){return h(),j},pixelPosition:function(){return h(),E},reliableMarginLeft:function(){return h(),ae},scrollboxSize:function(){return h(),F},reliableTrDimensions:function(){var _e,Ie,Se,We;return V==null&&(_e=I.createElement("table"),Ie=I.createElement("tr"),Se=I.createElement("div"),_e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",Ie.style.cssText="box-sizing:content-box;border:1px solid",Ie.style.height="1px",Se.style.height="9px",Se.style.display="block",Or.appendChild(_e).appendChild(Ie).appendChild(Se),We=t.getComputedStyle(Ie),V=parseInt(We.height,10)+parseInt(We.borderTopWidth,10)+parseInt(We.borderBottomWidth,10)===Ie.offsetHeight,Or.removeChild(_e)),V}}))})();function _i(h,b,E){var _,F,j,V,ae=yr.test(b),ne=h.style;return E=E||Pr(h),E&&(V=E.getPropertyValue(b)||E[b],ae&&V&&(V=V.replace(Ke,"$1")||void 0),V===""&&!vr(h)&&(V=T.style(h,b)),!D.pixelBoxStyles()&&Kr.test(V)&&Ui.test(b)&&(_=ne.width,F=ne.minWidth,j=ne.maxWidth,ne.minWidth=ne.maxWidth=ne.width=V,V=E.width,ne.width=_,ne.minWidth=F,ne.maxWidth=j)),V!==void 0?V+"":V}function sr(h,b){return{get:function(){if(h()){delete this.get;return}return(this.get=b).apply(this,arguments)}}}var wn=["Webkit","Moz","ms"],Rr=I.createElement("div").style,Ir={};function di(h){for(var b=h[0].toUpperCase()+h.slice(1),E=wn.length;E--;)if(h=wn[E]+b,h in Rr)return h}function hi(h){var b=T.cssProps[h]||Ir[h];return b||(h in Rr?h:Ir[h]=di(h)||h)}var br=/^(none|table(?!-c[ea]).+)/,Zr={position:"absolute",visibility:"hidden",display:"block"},zn={letterSpacing:"0",fontWeight:"400"};function pi(h,b,E){var _=kr.exec(b);return _?Math.max(0,_[2]-(E||0))+(_[3]||"px"):b}function gi(h,b,E,_,F,j){var V=b==="width"?1:0,ae=0,ne=0,pe=0;if(E===(_?"border":"content"))return 0;for(;V<4;V+=2)E==="margin"&&(pe+=T.css(h,E+jn[V],!0,F)),_?(E==="content"&&(ne-=T.css(h,"padding"+jn[V],!0,F)),E!=="margin"&&(ne-=T.css(h,"border"+jn[V]+"Width",!0,F))):(ne+=T.css(h,"padding"+jn[V],!0,F),E!=="padding"?ne+=T.css(h,"border"+jn[V]+"Width",!0,F):ae+=T.css(h,"border"+jn[V]+"Width",!0,F));return!_&&j>=0&&(ne+=Math.max(0,Math.ceil(h["offset"+b[0].toUpperCase()+b.slice(1)]-j-ne-ae-.5))||0),ne+pe}function Di(h,b,E){var _=Pr(h),F=!D.boxSizingReliable()||E,j=F&&T.css(h,"boxSizing",!1,_)==="border-box",V=j,ae=_i(h,b,_),ne="offset"+b[0].toUpperCase()+b.slice(1);if(Kr.test(ae)){if(!E)return ae;ae="auto"}return(!D.boxSizingReliable()&&j||!D.reliableTrDimensions()&&re(h,"tr")||ae==="auto"||!parseFloat(ae)&&T.css(h,"display",!1,_)==="inline")&&h.getClientRects().length&&(j=T.css(h,"boxSizing",!1,_)==="border-box",V=ne in h,V&&(ae=h[ne])),ae=parseFloat(ae)||0,ae+gi(h,b,E||(j?"border":"content"),V,_,ae)+"px"}T.extend({cssHooks:{opacity:{get:function(h,b){if(b){var E=_i(h,"opacity");return E===""?"1":E}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(h,b,E,_){if(!(!h||h.nodeType===3||h.nodeType===8||!h.style)){var F,j,V,ae=sn(b),ne=yr.test(b),pe=h.style;if(ne||(b=hi(ae)),V=T.cssHooks[b]||T.cssHooks[ae],E!==void 0){if(j=typeof E,j==="string"&&(F=kr.exec(E))&&F[1]&&(E=Po(h,b,F),j="number"),E==null||E!==E)return;j==="number"&&!ne&&(E+=F&&F[3]||(T.cssNumber[ae]?"":"px")),!D.clearCloneStyle&&E===""&&b.indexOf("background")===0&&(pe[b]="inherit"),(!V||!("set"in V)||(E=V.set(h,E,_))!==void 0)&&(ne?pe.setProperty(b,E):pe[b]=E)}else return V&&"get"in V&&(F=V.get(h,!1,_))!==void 0?F:pe[b]}},css:function(h,b,E,_){var F,j,V,ae=sn(b),ne=yr.test(b);return ne||(b=hi(ae)),V=T.cssHooks[b]||T.cssHooks[ae],V&&"get"in V&&(F=V.get(h,!0,E)),F===void 0&&(F=_i(h,b,_)),F==="normal"&&b in zn&&(F=zn[b]),E===""||E?(j=parseFloat(F),E===!0||isFinite(j)?j||0:F):F}}),T.each(["height","width"],function(h,b){T.cssHooks[b]={get:function(E,_,F){if(_)return br.test(T.css(E,"display"))&&(!E.getClientRects().length||!E.getBoundingClientRect().width)?er(E,Zr,function(){return Di(E,b,F)}):Di(E,b,F)},set:function(E,_,F){var j,V=Pr(E),ae=!D.scrollboxSize()&&V.position==="absolute",ne=ae||F,pe=ne&&T.css(E,"boxSizing",!1,V)==="border-box",_e=F?gi(E,b,F,pe,V):0;return pe&&ae&&(_e-=Math.ceil(E["offset"+b[0].toUpperCase()+b.slice(1)]-parseFloat(V[b])-gi(E,b,"border",!1,V)-.5)),_e&&(j=kr.exec(_))&&(j[3]||"px")!=="px"&&(E.style[b]=_,_=T.css(E,b)),pi(E,_,_e)}}}),T.cssHooks.marginLeft=sr(D.reliableMarginLeft,function(h,b){if(b)return(parseFloat(_i(h,"marginLeft"))||h.getBoundingClientRect().left-er(h,{marginLeft:0},function(){return h.getBoundingClientRect().left}))+"px"}),T.each({margin:"",padding:"",border:"Width"},function(h,b){T.cssHooks[h+b]={expand:function(E){for(var _=0,F={},j=typeof E=="string"?E.split(" "):[E];_<4;_++)F[h+jn[_]+b]=j[_]||j[_-2]||j[0];return F}},h!=="margin"&&(T.cssHooks[h+b].set=pi)}),T.fn.extend({css:function(h,b){return Cn(this,function(E,_,F){var j,V,ae={},ne=0;if(Array.isArray(_)){for(j=Pr(E),V=_.length;ne<V;ne++)ae[_[ne]]=T.css(E,_[ne],!1,j);return ae}return F!==void 0?T.style(E,_,F):T.css(E,_)},h,b,arguments.length>1)}});function rn(h,b,E,_,F){return new rn.prototype.init(h,b,E,_,F)}T.Tween=rn,rn.prototype={constructor:rn,init:function(h,b,E,_,F,j){this.elem=h,this.prop=E,this.easing=F||T.easing._default,this.options=b,this.start=this.now=this.cur(),this.end=_,this.unit=j||(T.cssNumber[E]?"":"px")},cur:function(){var h=rn.propHooks[this.prop];return h&&h.get?h.get(this):rn.propHooks._default.get(this)},run:function(h){var b,E=rn.propHooks[this.prop];return this.options.duration?this.pos=b=T.easing[this.easing](h,this.options.duration*h,0,1,this.options.duration):this.pos=b=h,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),E&&E.set?E.set(this):rn.propHooks._default.set(this),this}},rn.prototype.init.prototype=rn.prototype,rn.propHooks={_default:{get:function(h){var b;return h.elem.nodeType!==1||h.elem[h.prop]!=null&&h.elem.style[h.prop]==null?h.elem[h.prop]:(b=T.css(h.elem,h.prop,""),!b||b==="auto"?0:b)},set:function(h){T.fx.step[h.prop]?T.fx.step[h.prop](h):h.elem.nodeType===1&&(T.cssHooks[h.prop]||h.elem.style[hi(h.prop)]!=null)?T.style(h.elem,h.prop,h.now+h.unit):h.elem[h.prop]=h.now}}},rn.propHooks.scrollTop=rn.propHooks.scrollLeft={set:function(h){h.elem.nodeType&&h.elem.parentNode&&(h.elem[h.prop]=h.now)}},T.easing={linear:function(h){return h},swing:function(h){return .5-Math.cos(h*Math.PI)/2},_default:"swing"},T.fx=rn.prototype.init,T.fx.step={};var Bn,kn,lo=/^(?:toggle|show|hide)$/,Pn=/queueHooks$/;function Rn(){kn&&(I.hidden===!1&&t.requestAnimationFrame?t.requestAnimationFrame(Rn):t.setTimeout(Rn,T.fx.interval),T.fx.tick())}function k(){return t.setTimeout(function(){Bn=void 0}),Bn=Date.now()}function N(h,b){var E,_=0,F={height:h};for(b=b?1:0;_<4;_+=2-b)E=jn[_],F["margin"+E]=F["padding"+E]=h;return b&&(F.opacity=F.width=h),F}function G(h,b,E){for(var _,F=(ge.tweeners[b]||[]).concat(ge.tweeners["*"]),j=0,V=F.length;j<V;j++)if(_=F[j].call(E,b,h))return _}function te(h,b,E){var _,F,j,V,ae,ne,pe,_e,Ie="width"in b||"height"in b,Se=this,We={},st=h.style,Ct=h.nodeType&&Gr(h),kt=dt.get(h,"fxshow");E.queue||(V=T._queueHooks(h,"fx"),V.unqueued==null&&(V.unqueued=0,ae=V.empty.fire,V.empty.fire=function(){V.unqueued||ae()}),V.unqueued++,Se.always(function(){Se.always(function(){V.unqueued--,T.queue(h,"fx").length||V.empty.fire()})}));for(_ in b)if(F=b[_],lo.test(F)){if(delete b[_],j=j||F==="toggle",F===(Ct?"hide":"show"))if(F==="show"&&kt&&kt[_]!==void 0)Ct=!0;else continue;We[_]=kt&&kt[_]||T.style(h,_)}if(ne=!T.isEmptyObject(b),!(!ne&&T.isEmptyObject(We))){Ie&&h.nodeType===1&&(E.overflow=[st.overflow,st.overflowX,st.overflowY],pe=kt&&kt.display,pe==null&&(pe=dt.get(h,"display")),_e=T.css(h,"display"),_e==="none"&&(pe?_e=pe:(Jn([h],!0),pe=h.style.display||pe,_e=T.css(h,"display"),Jn([h]))),(_e==="inline"||_e==="inline-block"&&pe!=null)&&T.css(h,"float")==="none"&&(ne||(Se.done(function(){st.display=pe}),pe==null&&(_e=st.display,pe=_e==="none"?"":_e)),st.display="inline-block")),E.overflow&&(st.overflow="hidden",Se.always(function(){st.overflow=E.overflow[0],st.overflowX=E.overflow[1],st.overflowY=E.overflow[2]})),ne=!1;for(_ in We)ne||(kt?"hidden"in kt&&(Ct=kt.hidden):kt=dt.access(h,"fxshow",{display:pe}),j&&(kt.hidden=!Ct),Ct&&Jn([h],!0),Se.done(function(){Ct||Jn([h]),dt.remove(h,"fxshow");for(_ in We)T.style(h,_,We[_])})),ne=G(Ct?kt[_]:0,_,Se),_ in kt||(kt[_]=ne.start,Ct&&(ne.end=ne.start,ne.start=0))}}function Ee(h,b){var E,_,F,j,V;for(E in h)if(_=sn(E),F=b[_],j=h[E],Array.isArray(j)&&(F=j[1],j=h[E]=j[0]),E!==_&&(h[_]=j,delete h[E]),V=T.cssHooks[_],V&&"expand"in V){j=V.expand(j),delete h[_];for(E in j)E in h||(h[E]=j[E],b[E]=F)}else b[_]=F}function ge(h,b,E){var _,F,j=0,V=ge.prefilters.length,ae=T.Deferred().always(function(){delete ne.elem}),ne=function(){if(F)return!1;for(var Ie=Bn||k(),Se=Math.max(0,pe.startTime+pe.duration-Ie),We=Se/pe.duration||0,st=1-We,Ct=0,kt=pe.tweens.length;Ct<kt;Ct++)pe.tweens[Ct].run(st);return ae.notifyWith(h,[pe,st,Se]),st<1&&kt?Se:(kt||ae.notifyWith(h,[pe,1,0]),ae.resolveWith(h,[pe]),!1)},pe=ae.promise({elem:h,props:T.extend({},b),opts:T.extend(!0,{specialEasing:{},easing:T.easing._default},E),originalProperties:b,originalOptions:E,startTime:Bn||k(),duration:E.duration,tweens:[],createTween:function(Ie,Se){var We=T.Tween(h,pe.opts,Ie,Se,pe.opts.specialEasing[Ie]||pe.opts.easing);return pe.tweens.push(We),We},stop:function(Ie){var Se=0,We=Ie?pe.tweens.length:0;if(F)return this;for(F=!0;Se<We;Se++)pe.tweens[Se].run(1);return Ie?(ae.notifyWith(h,[pe,1,0]),ae.resolveWith(h,[pe,Ie])):ae.rejectWith(h,[pe,Ie]),this}}),_e=pe.props;for(Ee(_e,pe.opts.specialEasing);j<V;j++)if(_=ge.prefilters[j].call(pe,h,_e,pe.opts),_)return A(_.stop)&&(T._queueHooks(pe.elem,pe.opts.queue).stop=_.stop.bind(_)),_;return T.map(_e,G,pe),A(pe.opts.start)&&pe.opts.start.call(h,pe),pe.progress(pe.opts.progress).done(pe.opts.done,pe.opts.complete).fail(pe.opts.fail).always(pe.opts.always),T.fx.timer(T.extend(ne,{elem:h,anim:pe,queue:pe.opts.queue})),pe}T.Animation=T.extend(ge,{tweeners:{"*":[function(h,b){var E=this.createTween(h,b);return Po(E.elem,h,kr.exec(b),E),E}]},tweener:function(h,b){A(h)?(b=h,h=["*"]):h=h.match(lt);for(var E,_=0,F=h.length;_<F;_++)E=h[_],ge.tweeners[E]=ge.tweeners[E]||[],ge.tweeners[E].unshift(b)},prefilters:[te],prefilter:function(h,b){b?ge.prefilters.unshift(h):ge.prefilters.push(h)}}),T.speed=function(h,b,E){var _=h&&typeof h=="object"?T.extend({},h):{complete:E||!E&&b||A(h)&&h,duration:h,easing:E&&b||b&&!A(b)&&b};return T.fx.off?_.duration=0:typeof _.duration!="number"&&(_.duration in T.fx.speeds?_.duration=T.fx.speeds[_.duration]:_.duration=T.fx.speeds._default),(_.queue==null||_.queue===!0)&&(_.queue="fx"),_.old=_.complete,_.complete=function(){A(_.old)&&_.old.call(this),_.queue&&T.dequeue(this,_.queue)},_},T.fn.extend({fadeTo:function(h,b,E,_){return this.filter(Gr).css("opacity",0).show().end().animate({opacity:b},h,E,_)},animate:function(h,b,E,_){var F=T.isEmptyObject(h),j=T.speed(b,E,_),V=function(){var ae=ge(this,T.extend({},h),j);(F||dt.get(this,"finish"))&&ae.stop(!0)};return V.finish=V,F||j.queue===!1?this.each(V):this.queue(j.queue,V)},stop:function(h,b,E){var _=function(F){var j=F.stop;delete F.stop,j(E)};return typeof h!="string"&&(E=b,b=h,h=void 0),b&&this.queue(h||"fx",[]),this.each(function(){var F=!0,j=h!=null&&h+"queueHooks",V=T.timers,ae=dt.get(this);if(j)ae[j]&&ae[j].stop&&_(ae[j]);else for(j in ae)ae[j]&&ae[j].stop&&Pn.test(j)&&_(ae[j]);for(j=V.length;j--;)V[j].elem===this&&(h==null||V[j].queue===h)&&(V[j].anim.stop(E),F=!1,V.splice(j,1));(F||!E)&&T.dequeue(this,h)})},finish:function(h){return h!==!1&&(h=h||"fx"),this.each(function(){var b,E=dt.get(this),_=E[h+"queue"],F=E[h+"queueHooks"],j=T.timers,V=_?_.length:0;for(E.finish=!0,T.queue(this,h,[]),F&&F.stop&&F.stop.call(this,!0),b=j.length;b--;)j[b].elem===this&&j[b].queue===h&&(j[b].anim.stop(!0),j.splice(b,1));for(b=0;b<V;b++)_[b]&&_[b].finish&&_[b].finish.call(this);delete E.finish})}}),T.each(["toggle","show","hide"],function(h,b){var E=T.fn[b];T.fn[b]=function(_,F,j){return _==null||typeof _=="boolean"?E.apply(this,arguments):this.animate(N(b,!0),_,F,j)}}),T.each({slideDown:N("show"),slideUp:N("hide"),slideToggle:N("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(h,b){T.fn[h]=function(E,_,F){return this.animate(b,E,_,F)}}),T.timers=[],T.fx.tick=function(){var h,b=0,E=T.timers;for(Bn=Date.now();b<E.length;b++)h=E[b],!h()&&E[b]===h&&E.splice(b--,1);E.length||T.fx.stop(),Bn=void 0},T.fx.timer=function(h){T.timers.push(h),T.fx.start()},T.fx.interval=13,T.fx.start=function(){kn||(kn=!0,Rn())},T.fx.stop=function(){kn=null},T.fx.speeds={slow:600,fast:200,_default:400},T.fn.delay=function(h,b){return h=T.fx&&T.fx.speeds[h]||h,b=b||"fx",this.queue(b,function(E,_){var F=t.setTimeout(E,h);_.stop=function(){t.clearTimeout(F)}})},function(){var h=I.createElement("input"),b=I.createElement("select"),E=b.appendChild(I.createElement("option"));h.type="checkbox",D.checkOn=h.value!=="",D.optSelected=E.selected,h=I.createElement("input"),h.value="t",h.type="radio",D.radioValue=h.value==="t"}();var Re,Ze=T.expr.attrHandle;T.fn.extend({attr:function(h,b){return Cn(this,T.attr,h,b,arguments.length>1)},removeAttr:function(h){return this.each(function(){T.removeAttr(this,h)})}}),T.extend({attr:function(h,b,E){var _,F,j=h.nodeType;if(!(j===3||j===8||j===2)){if(typeof h.getAttribute>"u")return T.prop(h,b,E);if((j!==1||!T.isXMLDoc(h))&&(F=T.attrHooks[b.toLowerCase()]||(T.expr.match.bool.test(b)?Re:void 0)),E!==void 0){if(E===null){T.removeAttr(h,b);return}return F&&"set"in F&&(_=F.set(h,E,b))!==void 0?_:(h.setAttribute(b,E+""),E)}return F&&"get"in F&&(_=F.get(h,b))!==null?_:(_=T.find.attr(h,b),_??void 0)}},attrHooks:{type:{set:function(h,b){if(!D.radioValue&&b==="radio"&&re(h,"input")){var E=h.value;return h.setAttribute("type",b),E&&(h.value=E),b}}}},removeAttr:function(h,b){var E,_=0,F=b&&b.match(lt);if(F&&h.nodeType===1)for(;E=F[_++];)h.removeAttribute(E)}}),Re={set:function(h,b,E){return b===!1?T.removeAttr(h,E):h.setAttribute(E,E),E}},T.each(T.expr.match.bool.source.match(/\w+/g),function(h,b){var E=Ze[b]||T.find.attr;Ze[b]=function(_,F,j){var V,ae,ne=F.toLowerCase();return j||(ae=Ze[ne],Ze[ne]=V,V=E(_,F,j)!=null?ne:null,Ze[ne]=ae),V}});var vt=/^(?:input|select|textarea|button)$/i,yt=/^(?:a|area)$/i;T.fn.extend({prop:function(h,b){return Cn(this,T.prop,h,b,arguments.length>1)},removeProp:function(h){return this.each(function(){delete this[T.propFix[h]||h]})}}),T.extend({prop:function(h,b,E){var _,F,j=h.nodeType;if(!(j===3||j===8||j===2))return(j!==1||!T.isXMLDoc(h))&&(b=T.propFix[b]||b,F=T.propHooks[b]),E!==void 0?F&&"set"in F&&(_=F.set(h,E,b))!==void 0?_:h[b]=E:F&&"get"in F&&(_=F.get(h,b))!==null?_:h[b]},propHooks:{tabIndex:{get:function(h){var b=T.find.attr(h,"tabindex");return b?parseInt(b,10):vt.test(h.nodeName)||yt.test(h.nodeName)&&h.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),D.optSelected||(T.propHooks.selected={get:function(h){var b=h.parentNode;return b&&b.parentNode&&b.parentNode.selectedIndex,null},set:function(h){var b=h.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}}),T.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){T.propFix[this.toLowerCase()]=this});function pt(h){var b=h.match(lt)||[];return b.join(" ")}function Nt(h){return h.getAttribute&&h.getAttribute("class")||""}function $n(h){return Array.isArray(h)?h:typeof h=="string"?h.match(lt)||[]:[]}T.fn.extend({addClass:function(h){var b,E,_,F,j,V;return A(h)?this.each(function(ae){T(this).addClass(h.call(this,ae,Nt(this)))}):(b=$n(h),b.length?this.each(function(){if(_=Nt(this),E=this.nodeType===1&&" "+pt(_)+" ",E){for(j=0;j<b.length;j++)F=b[j],E.indexOf(" "+F+" ")<0&&(E+=F+" ");V=pt(E),_!==V&&this.setAttribute("class",V)}}):this)},removeClass:function(h){var b,E,_,F,j,V;return A(h)?this.each(function(ae){T(this).removeClass(h.call(this,ae,Nt(this)))}):arguments.length?(b=$n(h),b.length?this.each(function(){if(_=Nt(this),E=this.nodeType===1&&" "+pt(_)+" ",E){for(j=0;j<b.length;j++)for(F=b[j];E.indexOf(" "+F+" ")>-1;)E=E.replace(" "+F+" "," ");V=pt(E),_!==V&&this.setAttribute("class",V)}}):this):this.attr("class","")},toggleClass:function(h,b){var E,_,F,j,V=typeof h,ae=V==="string"||Array.isArray(h);return A(h)?this.each(function(ne){T(this).toggleClass(h.call(this,ne,Nt(this),b),b)}):typeof b=="boolean"&&ae?b?this.addClass(h):this.removeClass(h):(E=$n(h),this.each(function(){if(ae)for(j=T(this),F=0;F<E.length;F++)_=E[F],j.hasClass(_)?j.removeClass(_):j.addClass(_);else(h===void 0||V==="boolean")&&(_=Nt(this),_&&dt.set(this,"__className__",_),this.setAttribute&&this.setAttribute("class",_||h===!1?"":dt.get(this,"__className__")||""))}))},hasClass:function(h){var b,E,_=0;for(b=" "+h+" ";E=this[_++];)if(E.nodeType===1&&(" "+pt(Nt(E))+" ").indexOf(b)>-1)return!0;return!1}});var Yn=/\r/g;T.fn.extend({val:function(h){var b,E,_,F=this[0];return arguments.length?(_=A(h),this.each(function(j){var V;this.nodeType===1&&(_?V=h.call(this,j,T(this).val()):V=h,V==null?V="":typeof V=="number"?V+="":Array.isArray(V)&&(V=T.map(V,function(ae){return ae==null?"":ae+""})),b=T.valHooks[this.type]||T.valHooks[this.nodeName.toLowerCase()],(!b||!("set"in b)||b.set(this,V,"value")===void 0)&&(this.value=V))})):F?(b=T.valHooks[F.type]||T.valHooks[F.nodeName.toLowerCase()],b&&"get"in b&&(E=b.get(F,"value"))!==void 0?E:(E=F.value,typeof E=="string"?E.replace(Yn,""):E??"")):void 0}}),T.extend({valHooks:{option:{get:function(h){var b=T.find.attr(h,"value");return b??pt(T.text(h))}},select:{get:function(h){var b,E,_,F=h.options,j=h.selectedIndex,V=h.type==="select-one",ae=V?null:[],ne=V?j+1:F.length;for(j<0?_=ne:_=V?j:0;_<ne;_++)if(E=F[_],(E.selected||_===j)&&!E.disabled&&(!E.parentNode.disabled||!re(E.parentNode,"optgroup"))){if(b=T(E).val(),V)return b;ae.push(b)}return ae},set:function(h,b){for(var E,_,F=h.options,j=T.makeArray(b),V=F.length;V--;)_=F[V],(_.selected=T.inArray(T.valHooks.option.get(_),j)>-1)&&(E=!0);return E||(h.selectedIndex=-1),j}}}}),T.each(["radio","checkbox"],function(){T.valHooks[this]={set:function(h,b){if(Array.isArray(b))return h.checked=T.inArray(T(h).val(),b)>-1}},D.checkOn||(T.valHooks[this].get=function(h){return h.getAttribute("value")===null?"on":h.value})});var On=t.location,Jr={guid:Date.now()},lr=/\?/;T.parseXML=function(h){var b,E;if(!h||typeof h!="string")return null;try{b=new t.DOMParser().parseFromString(h,"text/xml")}catch{}return E=b&&b.getElementsByTagName("parsererror")[0],(!b||E)&&T.error("Invalid XML: "+(E?T.map(E.childNodes,function(_){return _.textContent}).join(`
|
|
172
|
-
`):h)),b};var Wi=/^(?:focusinfocus|focusoutblur)$/,vi=function(h){h.stopPropagation()};T.extend(T.event,{trigger:function(h,b,E,_){var F,j,V,ae,ne,pe,_e,Ie,Se=[E||I],We=g.call(h,"type")?h.type:h,st=g.call(h,"namespace")?h.namespace.split("."):[];if(j=Ie=V=E=E||I,!(E.nodeType===3||E.nodeType===8)&&!Wi.test(We+T.event.triggered)&&(We.indexOf(".")>-1&&(st=We.split("."),We=st.shift(),st.sort()),ne=We.indexOf(":")<0&&"on"+We,h=h[T.expando]?h:new T.Event(We,typeof h=="object"&&h),h.isTrigger=_?2:3,h.namespace=st.join("."),h.rnamespace=h.namespace?new RegExp("(^|\\.)"+st.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,h.result=void 0,h.target||(h.target=E),b=b==null?[h]:T.makeArray(b,[h]),_e=T.event.special[We]||{},!(!_&&_e.trigger&&_e.trigger.apply(E,b)===!1))){if(!_&&!_e.noBubble&&!M(E)){for(ae=_e.delegateType||We,Wi.test(ae+We)||(j=j.parentNode);j;j=j.parentNode)Se.push(j),V=j;V===(E.ownerDocument||I)&&Se.push(V.defaultView||V.parentWindow||t)}for(F=0;(j=Se[F++])&&!h.isPropagationStopped();)Ie=j,h.type=F>1?ae:_e.bindType||We,pe=(dt.get(j,"events")||Object.create(null))[h.type]&&dt.get(j,"handle"),pe&&pe.apply(j,b),pe=ne&&j[ne],pe&&pe.apply&&dn(j)&&(h.result=pe.apply(j,b),h.result===!1&&h.preventDefault());return h.type=We,!_&&!h.isDefaultPrevented()&&(!_e._default||_e._default.apply(Se.pop(),b)===!1)&&dn(E)&&ne&&A(E[We])&&!M(E)&&(V=E[ne],V&&(E[ne]=null),T.event.triggered=We,h.isPropagationStopped()&&Ie.addEventListener(We,vi),E[We](),h.isPropagationStopped()&&Ie.removeEventListener(We,vi),T.event.triggered=void 0,V&&(E[ne]=V)),h.result}},simulate:function(h,b,E){var _=T.extend(new T.Event,E,{type:h,isSimulated:!0});T.event.trigger(_,null,b)}}),T.fn.extend({trigger:function(h,b){return this.each(function(){T.event.trigger(h,b,this)})},triggerHandler:function(h,b){var E=this[0];if(E)return T.event.trigger(h,b,E,!0)}});var zi=/\[\]$/,Ar=/\r?\n/g,Yi=/^(?:submit|button|image|reset|file)$/i,Hs=/^(?:input|select|textarea|keygen)/i;function Ra(h,b,E,_){var F;if(Array.isArray(b))T.each(b,function(j,V){E||zi.test(h)?_(h,V):Ra(h+"["+(typeof V=="object"&&V!=null?j:"")+"]",V,E,_)});else if(!E&&Q(b)==="object")for(F in b)Ra(h+"["+F+"]",b[F],E,_);else _(h,b)}T.param=function(h,b){var E,_=[],F=function(j,V){var ae=A(V)?V():V;_[_.length]=encodeURIComponent(j)+"="+encodeURIComponent(ae??"")};if(h==null)return"";if(Array.isArray(h)||h.jquery&&!T.isPlainObject(h))T.each(h,function(){F(this.name,this.value)});else for(E in h)Ra(E,h[E],b,F);return _.join("&")},T.fn.extend({serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var h=T.prop(this,"elements");return h?T.makeArray(h):this}).filter(function(){var h=this.type;return this.name&&!T(this).is(":disabled")&&Hs.test(this.nodeName)&&!Yi.test(h)&&(this.checked||!Wt.test(h))}).map(function(h,b){var E=T(this).val();return E==null?null:Array.isArray(E)?T.map(E,function(_){return{name:b.name,value:_.replace(Ar,`\r
|
|
173
|
-
`)}}):{name:b.name,value:E.replace(Ar,`\r
|
|
174
|
-
`)}}).get()}});var Qo=/%20/g,wr=/#.*$/,Us=/([?&])_=[^&]*/,mi=/^(.*?):[ \t]*([^\r\n]*)$/mg,Ia=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,ea=/^(?:GET|HEAD)$/,on=/^\/\//,qt={},Zt={},Pi="*/".concat("*"),Qr=I.createElement("a");Qr.href=On.href;function Ro(h){return function(b,E){typeof b!="string"&&(E=b,b="*");var _,F=0,j=b.toLowerCase().match(lt)||[];if(A(E))for(;_=j[F++];)_[0]==="+"?(_=_.slice(1)||"*",(h[_]=h[_]||[]).unshift(E)):(h[_]=h[_]||[]).push(E)}}function yi(h,b,E,_){var F={},j=h===Zt;function V(ae){var ne;return F[ae]=!0,T.each(h[ae]||[],function(pe,_e){var Ie=_e(b,E,_);if(typeof Ie=="string"&&!j&&!F[Ie])return b.dataTypes.unshift(Ie),V(Ie),!1;if(j)return!(ne=Ie)}),ne}return V(b.dataTypes[0])||!F["*"]&&V("*")}function ur(h,b){var E,_,F=T.ajaxSettings.flatOptions||{};for(E in b)b[E]!==void 0&&((F[E]?h:_||(_={}))[E]=b[E]);return _&&T.extend(!0,h,_),h}function Aa(h,b,E){for(var _,F,j,V,ae=h.contents,ne=h.dataTypes;ne[0]==="*";)ne.shift(),_===void 0&&(_=h.mimeType||b.getResponseHeader("Content-Type"));if(_){for(F in ae)if(ae[F]&&ae[F].test(_)){ne.unshift(F);break}}if(ne[0]in E)j=ne[0];else{for(F in E){if(!ne[0]||h.converters[F+" "+ne[0]]){j=F;break}V||(V=F)}j=j||V}if(j)return j!==ne[0]&&ne.unshift(j),E[j]}function uo(h,b,E,_){var F,j,V,ae,ne,pe={},_e=h.dataTypes.slice();if(_e[1])for(V in h.converters)pe[V.toLowerCase()]=h.converters[V];for(j=_e.shift();j;)if(h.responseFields[j]&&(E[h.responseFields[j]]=b),!ne&&_&&h.dataFilter&&(b=h.dataFilter(b,h.dataType)),ne=j,j=_e.shift(),j){if(j==="*")j=ne;else if(ne!=="*"&&ne!==j){if(V=pe[ne+" "+j]||pe["* "+j],!V){for(F in pe)if(ae=F.split(" "),ae[1]===j&&(V=pe[ne+" "+ae[0]]||pe["* "+ae[0]],V)){V===!0?V=pe[F]:pe[F]!==!0&&(j=ae[0],_e.unshift(ae[1]));break}}if(V!==!0)if(V&&h.throws)b=V(b);else try{b=V(b)}catch(Ie){return{state:"parsererror",error:V?Ie:"No conversion from "+ne+" to "+j}}}}return{state:"success",data:b}}T.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:On.href,type:"GET",isLocal:Ia.test(On.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Pi,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":T.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(h,b){return b?ur(ur(h,T.ajaxSettings),b):ur(T.ajaxSettings,h)},ajaxPrefilter:Ro(qt),ajaxTransport:Ro(Zt),ajax:function(h,b){typeof h=="object"&&(b=h,h=void 0),b=b||{};var E,_,F,j,V,ae,ne,pe,_e,Ie,Se=T.ajaxSetup({},b),We=Se.context||Se,st=Se.context&&(We.nodeType||We.jquery)?T(We):T.event,Ct=T.Deferred(),kt=T.Callbacks("once memory"),In=Se.statusCode||{},cn={},Mr={},Lr="canceled",Ft={readyState:0,getResponseHeader:function(jt){var en;if(ne){if(!j)for(j={};en=mi.exec(F);)j[en[1].toLowerCase()+" "]=(j[en[1].toLowerCase()+" "]||[]).concat(en[2]);en=j[jt.toLowerCase()+" "]}return en==null?null:en.join(", ")},getAllResponseHeaders:function(){return ne?F:null},setRequestHeader:function(jt,en){return ne==null&&(jt=Mr[jt.toLowerCase()]=Mr[jt.toLowerCase()]||jt,cn[jt]=en),this},overrideMimeType:function(jt){return ne==null&&(Se.mimeType=jt),this},statusCode:function(jt){var en;if(jt)if(ne)Ft.always(jt[Ft.status]);else for(en in jt)In[en]=[In[en],jt[en]];return this},abort:function(jt){var en=jt||Lr;return E&&E.abort(en),Fr(0,en),this}};if(Ct.promise(Ft),Se.url=((h||Se.url||On.href)+"").replace(on,On.protocol+"//"),Se.type=b.method||b.type||Se.method||Se.type,Se.dataTypes=(Se.dataType||"*").toLowerCase().match(lt)||[""],Se.crossDomain==null){ae=I.createElement("a");try{ae.href=Se.url,ae.href=ae.href,Se.crossDomain=Qr.protocol+"//"+Qr.host!=ae.protocol+"//"+ae.host}catch{Se.crossDomain=!0}}if(Se.data&&Se.processData&&typeof Se.data!="string"&&(Se.data=T.param(Se.data,Se.traditional)),yi(qt,Se,b,Ft),ne)return Ft;pe=T.event&&Se.global,pe&&T.active++===0&&T.event.trigger("ajaxStart"),Se.type=Se.type.toUpperCase(),Se.hasContent=!ea.test(Se.type),_=Se.url.replace(wr,""),Se.hasContent?Se.data&&Se.processData&&(Se.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(Se.data=Se.data.replace(Qo,"+")):(Ie=Se.url.slice(_.length),Se.data&&(Se.processData||typeof Se.data=="string")&&(_+=(lr.test(_)?"&":"?")+Se.data,delete Se.data),Se.cache===!1&&(_=_.replace(Us,"$1"),Ie=(lr.test(_)?"&":"?")+"_="+Jr.guid+++Ie),Se.url=_+Ie),Se.ifModified&&(T.lastModified[_]&&Ft.setRequestHeader("If-Modified-Since",T.lastModified[_]),T.etag[_]&&Ft.setRequestHeader("If-None-Match",T.etag[_])),(Se.data&&Se.hasContent&&Se.contentType!==!1||b.contentType)&&Ft.setRequestHeader("Content-Type",Se.contentType),Ft.setRequestHeader("Accept",Se.dataTypes[0]&&Se.accepts[Se.dataTypes[0]]?Se.accepts[Se.dataTypes[0]]+(Se.dataTypes[0]!=="*"?", "+Pi+"; q=0.01":""):Se.accepts["*"]);for(_e in Se.headers)Ft.setRequestHeader(_e,Se.headers[_e]);if(Se.beforeSend&&(Se.beforeSend.call(We,Ft,Se)===!1||ne))return Ft.abort();if(Lr="abort",kt.add(Se.complete),Ft.done(Se.success),Ft.fail(Se.error),E=yi(Zt,Se,b,Ft),!E)Fr(-1,"No Transport");else{if(Ft.readyState=1,pe&&st.trigger("ajaxSend",[Ft,Se]),ne)return Ft;Se.async&&Se.timeout>0&&(V=t.setTimeout(function(){Ft.abort("timeout")},Se.timeout));try{ne=!1,E.send(cn,Fr)}catch(jt){if(ne)throw jt;Fr(-1,jt)}}function Fr(jt,en,fo,ho){var xr,O,L,W,ee,ye=en;ne||(ne=!0,V&&t.clearTimeout(V),E=void 0,F=ho||"",Ft.readyState=jt>0?4:0,xr=jt>=200&&jt<300||jt===304,fo&&(W=Aa(Se,Ft,fo)),!xr&&T.inArray("script",Se.dataTypes)>-1&&T.inArray("json",Se.dataTypes)<0&&(Se.converters["text script"]=function(){}),W=uo(Se,W,Ft,xr),xr?(Se.ifModified&&(ee=Ft.getResponseHeader("Last-Modified"),ee&&(T.lastModified[_]=ee),ee=Ft.getResponseHeader("etag"),ee&&(T.etag[_]=ee)),jt===204||Se.type==="HEAD"?ye="nocontent":jt===304?ye="notmodified":(ye=W.state,O=W.data,L=W.error,xr=!L)):(L=ye,(jt||!ye)&&(ye="error",jt<0&&(jt=0))),Ft.status=jt,Ft.statusText=(en||ye)+"",xr?Ct.resolveWith(We,[O,ye,Ft]):Ct.rejectWith(We,[Ft,ye,L]),Ft.statusCode(In),In=void 0,pe&&st.trigger(xr?"ajaxSuccess":"ajaxError",[Ft,Se,xr?O:L]),kt.fireWith(We,[Ft,ye]),pe&&(st.trigger("ajaxComplete",[Ft,Se]),--T.active||T.event.trigger("ajaxStop")))}return Ft},getJSON:function(h,b,E){return T.get(h,b,E,"json")},getScript:function(h,b){return T.get(h,void 0,b,"script")}}),T.each(["get","post"],function(h,b){T[b]=function(E,_,F,j){return A(_)&&(j=j||F,F=_,_=void 0),T.ajax(T.extend({url:E,type:b,dataType:j,data:_,success:F},T.isPlainObject(E)&&E))}}),T.ajaxPrefilter(function(h){var b;for(b in h.headers)b.toLowerCase()==="content-type"&&(h.contentType=h.headers[b]||"")}),T._evalUrl=function(h,b,E){return T.ajax({url:h,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(_){T.globalEval(_,b,E)}})},T.fn.extend({wrapAll:function(h){var b;return this[0]&&(A(h)&&(h=h.call(this[0])),b=T(h,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){for(var E=this;E.firstElementChild;)E=E.firstElementChild;return E}).append(this)),this},wrapInner:function(h){return A(h)?this.each(function(b){T(this).wrapInner(h.call(this,b))}):this.each(function(){var b=T(this),E=b.contents();E.length?E.wrapAll(h):b.append(h)})},wrap:function(h){var b=A(h);return this.each(function(E){T(this).wrapAll(b?h.call(this,E):h)})},unwrap:function(h){return this.parent(h).not("body").each(function(){T(this).replaceWith(this.childNodes)}),this}}),T.expr.pseudos.hidden=function(h){return!T.expr.pseudos.visible(h)},T.expr.pseudos.visible=function(h){return!!(h.offsetWidth||h.offsetHeight||h.getClientRects().length)},T.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch{}};var as={0:200,1223:204},un=T.ajaxSettings.xhr();D.cors=!!un&&"withCredentials"in un,D.ajax=un=!!un,T.ajaxTransport(function(h){var b,E;if(D.cors||un&&!h.crossDomain)return{send:function(_,F){var j,V=h.xhr();if(V.open(h.type,h.url,h.async,h.username,h.password),h.xhrFields)for(j in h.xhrFields)V[j]=h.xhrFields[j];h.mimeType&&V.overrideMimeType&&V.overrideMimeType(h.mimeType),!h.crossDomain&&!_["X-Requested-With"]&&(_["X-Requested-With"]="XMLHttpRequest");for(j in _)V.setRequestHeader(j,_[j]);b=function(ae){return function(){b&&(b=E=V.onload=V.onerror=V.onabort=V.ontimeout=V.onreadystatechange=null,ae==="abort"?V.abort():ae==="error"?typeof V.status!="number"?F(0,"error"):F(V.status,V.statusText):F(as[V.status]||V.status,V.statusText,(V.responseType||"text")!=="text"||typeof V.responseText!="string"?{binary:V.response}:{text:V.responseText},V.getAllResponseHeaders()))}},V.onload=b(),E=V.onerror=V.ontimeout=b("error"),V.onabort!==void 0?V.onabort=E:V.onreadystatechange=function(){V.readyState===4&&t.setTimeout(function(){b&&E()})},b=b("abort");try{V.send(h.hasContent&&h.data||null)}catch(ae){if(b)throw ae}},abort:function(){b&&b()}}}),T.ajaxPrefilter(function(h){h.crossDomain&&(h.contents.script=!1)}),T.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(h){return T.globalEval(h),h}}}),T.ajaxPrefilter("script",function(h){h.cache===void 0&&(h.cache=!1),h.crossDomain&&(h.type="GET")}),T.ajaxTransport("script",function(h){if(h.crossDomain||h.scriptAttrs){var b,E;return{send:function(_,F){b=T("<script>").attr(h.scriptAttrs||{}).prop({charset:h.scriptCharset,src:h.url}).on("load error",E=function(j){b.remove(),E=null,j&&F(j.type==="error"?404:200,j.type)}),I.head.appendChild(b[0])},abort:function(){E&&E()}}}});var Io=[],bi=/(=)\?(?=&|$)|\?\?/;T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var h=Io.pop()||T.expando+"_"+Jr.guid++;return this[h]=!0,h}}),T.ajaxPrefilter("json jsonp",function(h,b,E){var _,F,j,V=h.jsonp!==!1&&(bi.test(h.url)?"url":typeof h.data=="string"&&(h.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&bi.test(h.data)&&"data");if(V||h.dataTypes[0]==="jsonp")return _=h.jsonpCallback=A(h.jsonpCallback)?h.jsonpCallback():h.jsonpCallback,V?h[V]=h[V].replace(bi,"$1"+_):h.jsonp!==!1&&(h.url+=(lr.test(h.url)?"&":"?")+h.jsonp+"="+_),h.converters["script json"]=function(){return j||T.error(_+" was not called"),j[0]},h.dataTypes[0]="json",F=t[_],t[_]=function(){j=arguments},E.always(function(){F===void 0?T(t).removeProp(_):t[_]=F,h[_]&&(h.jsonpCallback=b.jsonpCallback,Io.push(_)),j&&A(F)&&F(j[0]),j=F=void 0}),"script"}),D.createHTMLDocument=function(){var h=I.implementation.createHTMLDocument("").body;return h.innerHTML="<form></form><form></form>",h.childNodes.length===2}(),T.parseHTML=function(h,b,E){if(typeof h!="string")return[];typeof b=="boolean"&&(E=b,b=!1);var _,F,j;return b||(D.createHTMLDocument?(b=I.implementation.createHTMLDocument(""),_=b.createElement("base"),_.href=I.location.href,b.head.appendChild(_)):b=I),F=$e.exec(h),j=!E&&[],F?[b.createElement(F[1])]:(F=En([h],b,j),j&&j.length&&T(j).remove(),T.merge([],F.childNodes))},T.fn.load=function(h,b,E){var _,F,j,V=this,ae=h.indexOf(" ");return ae>-1&&(_=pt(h.slice(ae)),h=h.slice(0,ae)),A(b)?(E=b,b=void 0):b&&typeof b=="object"&&(F="POST"),V.length>0&&T.ajax({url:h,type:F||"GET",dataType:"html",data:b}).done(function(ne){j=arguments,V.html(_?T("<div>").append(T.parseHTML(ne)).find(_):ne)}).always(E&&function(ne,pe){V.each(function(){E.apply(this,j||[ne.responseText,pe,ne])})}),this},T.expr.pseudos.animated=function(h){return T.grep(T.timers,function(b){return h===b.elem}).length},T.offset={setOffset:function(h,b,E){var _,F,j,V,ae,ne,pe,_e=T.css(h,"position"),Ie=T(h),Se={};_e==="static"&&(h.style.position="relative"),ae=Ie.offset(),j=T.css(h,"top"),ne=T.css(h,"left"),pe=(_e==="absolute"||_e==="fixed")&&(j+ne).indexOf("auto")>-1,pe?(_=Ie.position(),V=_.top,F=_.left):(V=parseFloat(j)||0,F=parseFloat(ne)||0),A(b)&&(b=b.call(h,E,T.extend({},ae))),b.top!=null&&(Se.top=b.top-ae.top+V),b.left!=null&&(Se.left=b.left-ae.left+F),"using"in b?b.using.call(h,Se):Ie.css(Se)}},T.fn.extend({offset:function(h){if(arguments.length)return h===void 0?this:this.each(function(F){T.offset.setOffset(this,h,F)});var b,E,_=this[0];if(_)return _.getClientRects().length?(b=_.getBoundingClientRect(),E=_.ownerDocument.defaultView,{top:b.top+E.pageYOffset,left:b.left+E.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var h,b,E,_=this[0],F={top:0,left:0};if(T.css(_,"position")==="fixed")b=_.getBoundingClientRect();else{for(b=this.offset(),E=_.ownerDocument,h=_.offsetParent||E.documentElement;h&&(h===E.body||h===E.documentElement)&&T.css(h,"position")==="static";)h=h.parentNode;h&&h!==_&&h.nodeType===1&&(F=T(h).offset(),F.top+=T.css(h,"borderTopWidth",!0),F.left+=T.css(h,"borderLeftWidth",!0))}return{top:b.top-F.top-T.css(_,"marginTop",!0),left:b.left-F.left-T.css(_,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var h=this.offsetParent;h&&T.css(h,"position")==="static";)h=h.offsetParent;return h||Or})}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(h,b){var E=b==="pageYOffset";T.fn[h]=function(_){return Cn(this,function(F,j,V){var ae;if(M(F)?ae=F:F.nodeType===9&&(ae=F.defaultView),V===void 0)return ae?ae[b]:F[j];ae?ae.scrollTo(E?ae.pageXOffset:V,E?V:ae.pageYOffset):F[j]=V},h,_,arguments.length)}}),T.each(["top","left"],function(h,b){T.cssHooks[b]=sr(D.pixelPosition,function(E,_){if(_)return _=_i(E,b),Kr.test(_)?T(E).position()[b]+"px":_})}),T.each({Height:"height",Width:"width"},function(h,b){T.each({padding:"inner"+h,content:b,"":"outer"+h},function(E,_){T.fn[_]=function(F,j){var V=arguments.length&&(E||typeof F!="boolean"),ae=E||(F===!0||j===!0?"margin":"border");return Cn(this,function(ne,pe,_e){var Ie;return M(ne)?_.indexOf("outer")===0?ne["inner"+h]:ne.document.documentElement["client"+h]:ne.nodeType===9?(Ie=ne.documentElement,Math.max(ne.body["scroll"+h],Ie["scroll"+h],ne.body["offset"+h],Ie["offset"+h],Ie["client"+h])):_e===void 0?T.css(ne,pe,ae):T.style(ne,pe,_e,ae)},b,V?F:void 0,V)}})}),T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(h,b){T.fn[b]=function(E){return this.on(b,E)}}),T.fn.extend({bind:function(h,b,E){return this.on(h,null,b,E)},unbind:function(h,b){return this.off(h,null,b)},delegate:function(h,b,E,_){return this.on(b,h,E,_)},undelegate:function(h,b,E){return arguments.length===1?this.off(h,"**"):this.off(b,h||"**",E)},hover:function(h,b){return this.on("mouseenter",h).on("mouseleave",b||h)}}),T.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(h,b){T.fn[b]=function(E,_){return arguments.length>0?this.on(b,null,E,_):this.trigger(b)}});var ss=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;T.proxy=function(h,b){var E,_,F;if(typeof b=="string"&&(E=h[b],b=h,h=E),!!A(h))return _=o.call(arguments,2),F=function(){return h.apply(b||this,_.concat(o.call(arguments)))},F.guid=h.guid=h.guid||T.guid++,F},T.holdReady=function(h){h?T.readyWait++:T.ready(!0)},T.isArray=Array.isArray,T.parseJSON=JSON.parse,T.nodeName=re,T.isFunction=A,T.isWindow=M,T.camelCase=sn,T.type=Q,T.now=Date.now,T.isNumeric=function(h){var b=T.type(h);return(b==="number"||b==="string")&&!isNaN(h-parseFloat(h))},T.trim=function(h){return h==null?"":(h+"").replace(ss,"$1")};var co=t.jQuery,cr=t.$;return T.noConflict=function(h){return t.$===T&&(t.$=cr),h&&t.jQuery===T&&(t.jQuery=co),T},typeof n>"u"&&(t.jQuery=t.$=T),T})})(EO);var kO=EO.exports;const f6=Eu(kO);var d6={exports:{}};/**
|
|
175
|
-
* @version: 3.1
|
|
176
|
-
* @author: Dan Grossman http://www.dangrossman.info/
|
|
177
|
-
* @copyright: Copyright (c) 2012-2019 Dan Grossman. All rights reserved.
|
|
178
|
-
* @license: Licensed under the MIT license. See http://www.opensource.org/licenses/mit-license.php
|
|
179
|
-
* @website: http://www.daterangepicker.com/
|
|
180
|
-
*/(function(e){(function(t,n){if(e.exports){var r=typeof window<"u"?window.jQuery:void 0;r||(r=kO,r.fn||(r.fn={}));var i=typeof window<"u"&&typeof window.moment<"u"?window.moment:$I;e.exports=n(i,r)}else t.daterangepicker=n(t.moment,t.jQuery)})(Ei,function(t,n){var r=function(i,o,s){if(this.parentEl="body",this.element=n(i),this.startDate=t().startOf("day"),this.endDate=t().endOf("day"),this.minDate=!1,this.maxDate=!1,this.maxSpan=!1,this.autoApply=!1,this.singleDatePicker=!1,this.showDropdowns=!1,this.minYear=t().subtract(100,"year").format("YYYY"),this.maxYear=t().add(100,"year").format("YYYY"),this.showWeekNumbers=!1,this.showISOWeekNumbers=!1,this.showCustomRangeLabel=!0,this.timePicker=!1,this.timePicker24Hour=!1,this.timePickerIncrement=1,this.timePickerSeconds=!1,this.linkedCalendars=!0,this.autoUpdateInput=!0,this.alwaysShowCalendars=!1,this.ranges={},this.opens="right",this.element.hasClass("pull-right")&&(this.opens="left"),this.drops="down",this.element.hasClass("dropup")&&(this.drops="up"),this.buttonClasses="btn btn-sm",this.applyButtonClasses="btn-primary",this.cancelButtonClasses="btn-default",this.locale={direction:"ltr",format:t.localeData().longDateFormat("L"),separator:" - ",applyLabel:"Apply",cancelLabel:"Cancel",weekLabel:"W",customRangeLabel:"Custom Range",daysOfWeek:t.weekdaysMin(),monthNames:t.monthsShort(),firstDay:t.localeData().firstDayOfWeek()},this.callback=function(){},this.isShowing=!1,this.leftCalendar={},this.rightCalendar={},(typeof o!="object"||o===null)&&(o={}),o=n.extend(this.element.data(),o),typeof o.template!="string"&&!(o.template instanceof n)&&(o.template='<div class="daterangepicker"><div class="ranges"></div><div class="drp-calendar left"><div class="calendar-table"></div><div class="calendar-time"></div></div><div class="drp-calendar right"><div class="calendar-table"></div><div class="calendar-time"></div></div><div class="drp-buttons"><span class="drp-selected"></span><button class="cancelBtn" type="button"></button><button class="applyBtn" disabled="disabled" type="button"></button> </div></div>'),this.parentEl=o.parentEl&&n(o.parentEl).length?n(o.parentEl):n(this.parentEl),this.container=n(o.template).appendTo(this.parentEl),typeof o.locale=="object"&&(typeof o.locale.direction=="string"&&(this.locale.direction=o.locale.direction),typeof o.locale.format=="string"&&(this.locale.format=o.locale.format),typeof o.locale.separator=="string"&&(this.locale.separator=o.locale.separator),typeof o.locale.daysOfWeek=="object"&&(this.locale.daysOfWeek=o.locale.daysOfWeek.slice()),typeof o.locale.monthNames=="object"&&(this.locale.monthNames=o.locale.monthNames.slice()),typeof o.locale.firstDay=="number"&&(this.locale.firstDay=o.locale.firstDay),typeof o.locale.applyLabel=="string"&&(this.locale.applyLabel=o.locale.applyLabel),typeof o.locale.cancelLabel=="string"&&(this.locale.cancelLabel=o.locale.cancelLabel),typeof o.locale.weekLabel=="string"&&(this.locale.weekLabel=o.locale.weekLabel),typeof o.locale.customRangeLabel=="string")){var u=document.createElement("textarea");u.innerHTML=o.locale.customRangeLabel;var f=u.value;this.locale.customRangeLabel=f}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 p=this.locale.firstDay;p>0;)this.locale.daysOfWeek.push(this.locale.daysOfWeek.shift()),p--;var y,g,x;if(typeof o.startDate>"u"&&typeof o.endDate>"u"&&n(this.element).is(":text")){var C=n(this.element).val(),D=C.split(this.locale.separator);y=g=null,D.length==2?(y=t(D[0],this.locale.format),g=t(D[1],this.locale.format)):this.singleDatePicker&&C!==""&&(y=t(C,this.locale.format),g=t(C,this.locale.format)),y!==null&&g!==null&&(this.setStartDate(y),this.setEndDate(g))}if(typeof o.ranges=="object"){for(x in o.ranges){typeof o.ranges[x][0]=="string"?y=t(o.ranges[x][0],this.locale.format):y=t(o.ranges[x][0]),typeof o.ranges[x][1]=="string"?g=t(o.ranges[x][1],this.locale.format):g=t(o.ranges[x][1]),this.minDate&&y.isBefore(this.minDate)&&(y=this.minDate.clone());var A=this.maxDate;if(this.maxSpan&&A&&y.clone().add(this.maxSpan).isAfter(A)&&(A=y.clone().add(this.maxSpan)),A&&g.isAfter(A)&&(g=A.clone()),!(this.minDate&&g.isBefore(this.minDate,this.timepicker?"minute":"day")||A&&y.isAfter(A,this.timepicker?"minute":"day"))){var u=document.createElement("textarea");u.innerHTML=x;var f=u.value;this.ranges[f]=[y,g]}}var M="<ul>";for(x in this.ranges)M+='<li data-range-key="'+x+'">'+x+"</li>";this.showCustomRangeLabel&&(M+='<li data-range-key="'+this.locale.customRangeLabel+'">'+this.locale.customRangeLabel+"</li>"),M+="</ul>",this.container.find(".ranges").prepend(M)}typeof s=="function"&&(this.callback=s),this.timePicker||(this.startDate=this.startDate.startOf("day"),this.endDate=this.endDate.endOf("day"),this.container.find(".calendar-time").hide()),this.timePicker&&this.autoApply&&(this.autoApply=!1),this.autoApply&&this.container.addClass("auto-apply"),typeof o.ranges=="object"&&this.container.addClass("show-ranges"),this.singleDatePicker&&(this.container.addClass("single"),this.container.find(".drp-calendar.left").addClass("single"),this.container.find(".drp-calendar.left").show(),this.container.find(".drp-calendar.right").hide(),!this.timePicker&&this.autoApply&&this.container.addClass("auto-apply")),(typeof o.ranges>"u"&&!this.singleDatePicker||this.alwaysShowCalendars)&&this.container.addClass("show-calendar"),this.container.addClass("opens"+this.opens),this.container.find(".applyBtn, .cancelBtn").addClass(this.buttonClasses),this.applyButtonClasses.length&&this.container.find(".applyBtn").addClass(this.applyButtonClasses),this.cancelButtonClasses.length&&this.container.find(".cancelBtn").addClass(this.cancelButtonClasses),this.container.find(".applyBtn").html(this.locale.applyLabel),this.container.find(".cancelBtn").html(this.locale.cancelLabel),this.container.find(".drp-calendar").on("click.daterangepicker",".prev",n.proxy(this.clickPrev,this)).on("click.daterangepicker",".next",n.proxy(this.clickNext,this)).on("mousedown.daterangepicker","td.available",n.proxy(this.clickDate,this)).on("mouseenter.daterangepicker","td.available",n.proxy(this.hoverDate,this)).on("change.daterangepicker","select.yearselect",n.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.monthselect",n.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.hourselect,select.minuteselect,select.secondselect,select.ampmselect",n.proxy(this.timeChanged,this)),this.container.find(".ranges").on("click.daterangepicker","li",n.proxy(this.clickRange,this)),this.container.find(".drp-buttons").on("click.daterangepicker","button.applyBtn",n.proxy(this.clickApply,this)).on("click.daterangepicker","button.cancelBtn",n.proxy(this.clickCancel,this)),this.element.is("input")||this.element.is("button")?this.element.on({"click.daterangepicker":n.proxy(this.show,this),"focus.daterangepicker":n.proxy(this.show,this),"keyup.daterangepicker":n.proxy(this.elementChanged,this),"keydown.daterangepicker":n.proxy(this.keydown,this)}):(this.element.on("click.daterangepicker",n.proxy(this.toggle,this)),this.element.on("keydown.daterangepicker",n.proxy(this.toggle,this))),this.updateElement()};return r.prototype={constructor:r,setStartDate:function(i){typeof i=="string"&&(this.startDate=t(i,this.locale.format)),typeof i=="object"&&(this.startDate=t(i)),this.timePicker||(this.startDate=this.startDate.startOf("day")),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement),this.minDate&&this.startDate.isBefore(this.minDate)&&(this.startDate=this.minDate.clone(),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement)),this.maxDate&&this.startDate.isAfter(this.maxDate)&&(this.startDate=this.maxDate.clone(),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.floor(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement)),this.isShowing||this.updateElement(),this.updateMonthsInView()},setEndDate:function(i){typeof i=="string"&&(this.endDate=t(i,this.locale.format)),typeof i=="object"&&(this.endDate=t(i)),this.timePicker||(this.endDate=this.endDate.endOf("day")),this.timePicker&&this.timePickerIncrement&&this.endDate.minute(Math.round(this.endDate.minute()/this.timePickerIncrement)*this.timePickerIncrement),this.endDate.isBefore(this.startDate)&&(this.endDate=this.startDate.clone()),this.maxDate&&this.endDate.isAfter(this.maxDate)&&(this.endDate=this.maxDate.clone()),this.maxSpan&&this.startDate.clone().add(this.maxSpan).isBefore(this.endDate)&&(this.endDate=this.startDate.clone().add(this.maxSpan)),this.previousRightTime=this.endDate.clone(),this.container.find(".drp-selected").html(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format)),this.isShowing||this.updateElement(),this.updateMonthsInView()},isInvalidDate:function(){return!1},isCustomDate:function(){return!1},updateView:function(){this.timePicker&&(this.renderTimePicker("left"),this.renderTimePicker("right"),this.endDate?this.container.find(".right .calendar-time select").prop("disabled",!1).removeClass("disabled"):this.container.find(".right .calendar-time select").prop("disabled",!0).addClass("disabled")),this.endDate&&this.container.find(".drp-selected").html(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format)),this.updateMonthsInView(),this.updateCalendars(),this.updateFormInputs()},updateMonthsInView:function(){if(this.endDate){if(!this.singleDatePicker&&this.leftCalendar.month&&this.rightCalendar.month&&(this.startDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.startDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM"))&&(this.endDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.endDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM")))return;this.leftCalendar.month=this.startDate.clone().date(2),!this.linkedCalendars&&(this.endDate.month()!=this.startDate.month()||this.endDate.year()!=this.startDate.year())?this.rightCalendar.month=this.endDate.clone().date(2):this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month")}else this.leftCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")&&this.rightCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")&&(this.leftCalendar.month=this.startDate.clone().date(2),this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month"));this.maxDate&&this.linkedCalendars&&!this.singleDatePicker&&this.rightCalendar.month>this.maxDate&&(this.rightCalendar.month=this.maxDate.clone().date(2),this.leftCalendar.month=this.maxDate.clone().date(2).subtract(1,"month"))},updateCalendars:function(){if(this.timePicker){var i,o,s;if(this.endDate){if(i=parseInt(this.container.find(".left .hourselect").val(),10),o=parseInt(this.container.find(".left .minuteselect").val(),10),isNaN(o)&&(o=parseInt(this.container.find(".left .minuteselect option:last").val(),10)),s=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0,!this.timePicker24Hour){var u=this.container.find(".left .ampmselect").val();u==="PM"&&i<12&&(i+=12),u==="AM"&&i===12&&(i=0)}}else if(i=parseInt(this.container.find(".right .hourselect").val(),10),o=parseInt(this.container.find(".right .minuteselect").val(),10),isNaN(o)&&(o=parseInt(this.container.find(".right .minuteselect option:last").val(),10)),s=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0,!this.timePicker24Hour){var u=this.container.find(".right .ampmselect").val();u==="PM"&&i<12&&(i+=12),u==="AM"&&i===12&&(i=0)}this.leftCalendar.month.hour(i).minute(o).second(s),this.rightCalendar.month.hour(i).minute(o).second(s)}this.renderCalendar("left"),this.renderCalendar("right"),this.container.find(".ranges li").removeClass("active"),this.endDate!=null&&this.calculateChosenLabel()},renderCalendar:function(i){var I=i=="left"?this.leftCalendar:this.rightCalendar,o=I.month.month(),s=I.month.year(),u=I.month.hour(),f=I.month.minute(),p=I.month.second(),y=t([s,o]).daysInMonth(),g=t([s,o,1]),x=t([s,o,y]),C=t(g).subtract(1,"month").month(),D=t(g).subtract(1,"month").year(),A=t([D,C]).daysInMonth(),M=g.day(),I=[];I.firstDay=g,I.lastDay=x;for(var H=0;H<6;H++)I[H]=[];var U=A-M+this.locale.firstDay+1;U>A&&(U-=7),M==this.locale.firstDay&&(U=A-6);for(var Q=t([D,C,U,12,f,p]),Z,ce,H=0,Z=0,ce=0;H<42;H++,Z++,Q=t(Q).add(24,"hour"))H>0&&Z%7===0&&(Z=0,ce++),I[ce][Z]=Q.clone().hour(u).minute(f).second(p),Q.hour(12),this.minDate&&I[ce][Z].format("YYYY-MM-DD")==this.minDate.format("YYYY-MM-DD")&&I[ce][Z].isBefore(this.minDate)&&i=="left"&&(I[ce][Z]=this.minDate.clone()),this.maxDate&&I[ce][Z].format("YYYY-MM-DD")==this.maxDate.format("YYYY-MM-DD")&&I[ce][Z].isAfter(this.maxDate)&&i=="right"&&(I[ce][Z]=this.maxDate.clone());i=="left"?this.leftCalendar.calendar=I:this.rightCalendar.calendar=I;var T=i=="left"?this.minDate:this.startDate,se=this.maxDate;i=="left"?this.startDate:this.endDate,this.locale.direction=="ltr";var re='<table class="table-condensed">';re+="<thead>",re+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(re+="<th></th>"),(!T||T.isBefore(I.firstDay))&&(!this.linkedCalendars||i=="left")?re+='<th class="prev available"><span></span></th>':re+="<th></th>";var Pe=this.locale.monthNames[I[1][1].month()]+I[1][1].format(" YYYY");if(this.showDropdowns){for(var He=I[1][1].month(),Ue=I[1][1].year(),Qe=se&&se.year()||this.maxYear,Ke=T&&T.year()||this.minYear,he=Ue==Ke,me=Ue==Qe,Le='<select class="monthselect">',Ge=0;Ge<12;Ge++)(!he||T&&Ge>=T.month())&&(!me||se&&Ge<=se.month())?Le+="<option value='"+Ge+"'"+(Ge===He?" selected='selected'":"")+">"+this.locale.monthNames[Ge]+"</option>":Le+="<option value='"+Ge+"'"+(Ge===He?" selected='selected'":"")+" disabled='disabled'>"+this.locale.monthNames[Ge]+"</option>";Le+="</select>";for(var tt='<select class="yearselect">',xe=Ke;xe<=Qe;xe++)tt+='<option value="'+xe+'"'+(xe===Ue?' selected="selected"':"")+">"+xe+"</option>";tt+="</select>",Pe=Le+tt}if(re+='<th colspan="5" class="month">'+Pe+"</th>",(!se||se.isAfter(I.lastDay))&&(!this.linkedCalendars||i=="right"||this.singleDatePicker)?re+='<th class="next available"><span></span></th>':re+="<th></th>",re+="</tr>",re+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(re+='<th class="week">'+this.locale.weekLabel+"</th>"),n.each(this.locale.daysOfWeek,function(Fe,rt){re+="<th>"+rt+"</th>"}),re+="</tr>",re+="</thead>",re+="<tbody>",this.endDate==null&&this.maxSpan){var Ce=this.startDate.clone().add(this.maxSpan).endOf("day");(!se||Ce.isBefore(se))&&(se=Ce)}for(var ce=0;ce<6;ce++){re+="<tr>",this.showWeekNumbers?re+='<td class="week">'+I[ce][0].week()+"</td>":this.showISOWeekNumbers&&(re+='<td class="week">'+I[ce][0].isoWeek()+"</td>");for(var Z=0;Z<7;Z++){var $e=[];I[ce][Z].isSame(new Date,"day")&&$e.push("today"),I[ce][Z].isoWeekday()>5&&$e.push("weekend"),I[ce][Z].month()!=I[1][1].month()&&$e.push("off","ends"),this.minDate&&I[ce][Z].isBefore(this.minDate,"day")&&$e.push("off","disabled"),se&&I[ce][Z].isAfter(se,"day")&&$e.push("off","disabled"),this.isInvalidDate(I[ce][Z])&&$e.push("off","disabled"),I[ce][Z].format("YYYY-MM-DD")==this.startDate.format("YYYY-MM-DD")&&$e.push("active","start-date"),this.endDate!=null&&I[ce][Z].format("YYYY-MM-DD")==this.endDate.format("YYYY-MM-DD")&&$e.push("active","end-date"),this.endDate!=null&&I[ce][Z]>this.startDate&&I[ce][Z]<this.endDate&&$e.push("in-range");var je=this.isCustomDate(I[ce][Z]);je!==!1&&(typeof je=="string"?$e.push(je):Array.prototype.push.apply($e,je));for(var ke="",De=!1,H=0;H<$e.length;H++)ke+=$e[H]+" ",$e[H]=="disabled"&&(De=!0);De||(ke+="available"),re+='<td class="'+ke.replace(/^\s+|\s+$/g,"")+'" data-title="r'+ce+"c"+Z+'">'+I[ce][Z].date()+"</td>"}re+="</tr>"}re+="</tbody>",re+="</table>",this.container.find(".drp-calendar."+i+" .calendar-table").html(re)},renderTimePicker:function(i){if(!(i=="right"&&!this.endDate)){var o,s,u,f=this.maxDate;if(this.maxSpan&&(!this.maxDate||this.startDate.clone().add(this.maxSpan).isBefore(this.maxDate))&&(f=this.startDate.clone().add(this.maxSpan)),i=="left")s=this.startDate.clone(),u=this.minDate;else if(i=="right"){s=this.endDate.clone(),u=this.startDate;var p=this.container.find(".drp-calendar.right .calendar-time");if(p.html()!=""&&(s.hour(isNaN(s.hour())?p.find(".hourselect option:selected").val():s.hour()),s.minute(isNaN(s.minute())?p.find(".minuteselect option:selected").val():s.minute()),s.second(isNaN(s.second())?p.find(".secondselect option:selected").val():s.second()),!this.timePicker24Hour)){var y=p.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()),f&&s.isAfter(f)&&(s=f.clone())}o='<select class="hourselect">';for(var g=this.timePicker24Hour?0:1,x=this.timePicker24Hour?23:12,C=g;C<=x;C++){var D=C;this.timePicker24Hour||(D=s.hour()>=12?C==12?12:C+12:C==12?0:C);var A=s.clone().hour(D),M=!1;u&&A.minute(59).isBefore(u)&&(M=!0),f&&A.minute(0).isAfter(f)&&(M=!0),D==s.hour()&&!M?o+='<option value="'+C+'" selected="selected">'+C+"</option>":M?o+='<option value="'+C+'" disabled="disabled" class="disabled">'+C+"</option>":o+='<option value="'+C+'">'+C+"</option>"}o+="</select> ",o+=': <select class="minuteselect">';for(var C=0;C<60;C+=this.timePickerIncrement){var I=C<10?"0"+C:C,A=s.clone().minute(C),M=!1;u&&A.second(59).isBefore(u)&&(M=!0),f&&A.second(0).isAfter(f)&&(M=!0),s.minute()==C&&!M?o+='<option value="'+C+'" selected="selected">'+I+"</option>":M?o+='<option value="'+C+'" disabled="disabled" class="disabled">'+I+"</option>":o+='<option value="'+C+'">'+I+"</option>"}if(o+="</select> ",this.timePickerSeconds){o+=': <select class="secondselect">';for(var C=0;C<60;C++){var I=C<10?"0"+C:C,A=s.clone().second(C),M=!1;u&&A.isBefore(u)&&(M=!0),f&&A.isAfter(f)&&(M=!0),s.second()==C&&!M?o+='<option value="'+C+'" selected="selected">'+I+"</option>":M?o+='<option value="'+C+'" disabled="disabled" class="disabled">'+I+"</option>":o+='<option value="'+C+'">'+I+"</option>"}o+="</select> "}if(!this.timePicker24Hour){o+='<select class="ampmselect">';var H="",U="";u&&s.clone().hour(12).minute(0).second(0).isBefore(u)&&(H=' disabled="disabled" class="disabled"'),f&&s.clone().hour(0).minute(0).second(0).isAfter(f)&&(U=' disabled="disabled" class="disabled"'),s.hour()>=12?o+='<option value="AM"'+H+'>AM</option><option value="PM" selected="selected"'+U+">PM</option>":o+='<option value="AM" selected="selected"'+H+'>AM</option><option value="PM"'+U+">PM</option>",o+="</select>"}this.container.find(".drp-calendar."+i+" .calendar-time").html(o)}},updateFormInputs:function(){this.singleDatePicker||this.endDate&&(this.startDate.isBefore(this.endDate)||this.startDate.isSame(this.endDate))?this.container.find("button.applyBtn").prop("disabled",!1):this.container.find("button.applyBtn").prop("disabled",!0)},move:function(){var i={top:0,left:0},o,s=this.drops,u=n(window).width();switch(this.parentEl.is("body")||(i={top:this.parentEl.offset().top-this.parentEl.scrollTop(),left:this.parentEl.offset().left-this.parentEl.scrollLeft()},u=this.parentEl[0].clientWidth+this.parentEl.offset().left),s){case"auto":o=this.element.offset().top+this.element.outerHeight()-i.top,o+this.container.outerHeight()>=this.parentEl[0].scrollHeight&&(o=this.element.offset().top-this.container.outerHeight()-i.top,s="up");break;case"up":o=this.element.offset().top-this.container.outerHeight()-i.top;break;default:o=this.element.offset().top+this.element.outerHeight()-i.top;break}this.container.css({top:0,left:0,right:"auto"});var f=this.container.outerWidth();if(this.container.toggleClass("drop-up",s=="up"),this.opens=="left"){var p=u-this.element.offset().left-this.element.outerWidth();f+p>n(window).width()?this.container.css({top:o,right:"auto",left:9}):this.container.css({top:o,right:p,left:"auto"})}else if(this.opens=="center"){var y=this.element.offset().left-i.left+this.element.outerWidth()/2-f/2;y<0?this.container.css({top:o,right:"auto",left:9}):y+f>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+f>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),u=o.substr(3,1),f=n(i.target).parents(".drp-calendar"),p=f.hasClass("left")?this.leftCalendar.calendar[s][u]:this.rightCalendar.calendar[s][u],y=this.leftCalendar,g=this.rightCalendar,x=this.startDate;this.endDate||this.container.find(".drp-calendar tbody td").each(function(C,D){if(!n(D).hasClass("week")){var A=n(D).attr("data-title"),M=A.substr(1,1),I=A.substr(3,1),H=n(D).parents(".drp-calendar"),U=H.hasClass("left")?y.calendar[M][I]:g.calendar[M][I];U.isAfter(x)&&U.isBefore(p)||U.isSame(p,"day")?n(D).addClass("in-range"):n(D).removeClass("in-range")}})}},clickDate:function(i){if(n(i.target).hasClass("available")){var o=n(i.target).attr("data-title"),s=o.substr(1,1),u=o.substr(3,1),f=n(i.target).parents(".drp-calendar"),p=f.hasClass("left")?this.leftCalendar.calendar[s][u]:this.rightCalendar.calendar[s][u];if(this.endDate||p.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 x=parseInt(this.container.find(".left .minuteselect").val(),10);isNaN(x)&&(x=parseInt(this.container.find(".left .minuteselect option:last").val(),10));var C=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0;p=p.clone().hour(y).minute(x).second(C)}this.endDate=null,this.setStartDate(p.clone())}else if(!this.endDate&&p.isBefore(this.startDate))this.setEndDate(this.startDate.clone());else{if(this.timePicker){var 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 x=parseInt(this.container.find(".right .minuteselect").val(),10);isNaN(x)&&(x=parseInt(this.container.find(".right .minuteselect option:last").val(),10));var C=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0;p=p.clone().hour(y).minute(x).second(C)}this.setEndDate(p.clone()),this.autoApply&&(this.calculateChosenLabel(),this.clickApply())}this.singleDatePicker&&(this.setEndDate(this.startDate),!this.timePicker&&this.autoApply&&this.clickApply()),this.updateView(),i.stopPropagation()}},calculateChosenLabel:function(){var i=!0,o=0;for(var s in this.ranges){if(this.timePicker){var u=this.timePickerSeconds?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD HH:mm";if(this.startDate.format(u)==this.ranges[s][0].format(u)&&this.endDate.format(u)==this.ranges[s][1].format(u)){i=!1,this.chosenLabel=this.container.find(".ranges li:eq("+o+")").addClass("active").attr("data-range-key");break}}else if(this.startDate.format("YYYY-MM-DD")==this.ranges[s][0].format("YYYY-MM-DD")&&this.endDate.format("YYYY-MM-DD")==this.ranges[s][1].format("YYYY-MM-DD")){i=!1,this.chosenLabel=this.container.find(".ranges li:eq("+o+")").addClass("active").attr("data-range-key");break}o++}i&&(this.showCustomRangeLabel?this.chosenLabel=this.container.find(".ranges li:last").addClass("active").attr("data-range-key"):this.chosenLabel=null,this.showCalendars())},clickApply:function(i){this.hide(),this.element.trigger("apply.daterangepicker",this)},clickCancel:function(i){this.startDate=this.oldStartDate,this.endDate=this.oldEndDate,this.hide(),this.element.trigger("cancel.daterangepicker",this)},monthOrYearChanged:function(i){var o=n(i.target).closest(".drp-calendar").hasClass("left"),s=o?"left":"right",u=this.container.find(".drp-calendar."+s),f=parseInt(u.find(".monthselect").val(),10),p=u.find(".yearselect").val();o||(p<this.startDate.year()||p==this.startDate.year()&&f<this.startDate.month())&&(f=this.startDate.month(),p=this.startDate.year()),this.minDate&&(p<this.minDate.year()||p==this.minDate.year()&&f<this.minDate.month())&&(f=this.minDate.month(),p=this.minDate.year()),this.maxDate&&(p>this.maxDate.year()||p==this.maxDate.year()&&f>this.maxDate.month())&&(f=this.maxDate.month(),p=this.maxDate.year()),o?(this.leftCalendar.month.month(f).year(p),this.linkedCalendars&&(this.rightCalendar.month=this.leftCalendar.month.clone().add(1,"month"))):(this.rightCalendar.month.month(f).year(p),this.linkedCalendars&&(this.leftCalendar.month=this.rightCalendar.month.clone().subtract(1,"month"))),this.updateCalendars()},timeChanged:function(i){var o=n(i.target).closest(".drp-calendar"),s=o.hasClass("left"),u=parseInt(o.find(".hourselect").val(),10),f=parseInt(o.find(".minuteselect").val(),10);isNaN(f)&&(f=parseInt(o.find(".minuteselect option:last").val(),10));var p=this.timePickerSeconds?parseInt(o.find(".secondselect").val(),10):0;if(!this.timePicker24Hour){var y=o.find(".ampmselect").val();y==="PM"&&u<12&&(u+=12),y==="AM"&&u===12&&(u=0)}if(s){var g=this.startDate.clone();g.hour(u),g.minute(f),g.second(p),this.setStartDate(g),this.singleDatePicker?this.endDate=this.startDate.clone():this.endDate&&this.endDate.format("YYYY-MM-DD")==g.format("YYYY-MM-DD")&&this.endDate.isBefore(g)&&this.setEndDate(g.clone())}else if(this.endDate){var x=this.endDate.clone();x.hour(u),x.minute(f),x.second(p),this.setEndDate(x)}this.updateCalendars(),this.updateFormInputs(),this.renderTimePicker("left"),this.renderTimePicker("right")},elementChanged:function(){if(this.element.is("input")&&this.element.val().length){var i=this.element.val().split(this.locale.separator),o=null,s=null;i.length===2&&(o=t(i[0],this.locale.format),s=t(i[1],this.locale.format)),(this.singleDatePicker||o===null||s===null)&&(o=t(this.element.val(),this.locale.format),s=o),!(!o.isValid()||!s.isValid())&&(this.setStartDate(o),this.setEndDate(s),this.updateView())}},keydown:function(i){(i.keyCode===9||i.keyCode===13)&&this.hide(),i.keyCode===27&&(i.preventDefault(),i.stopPropagation(),this.hide())},updateElement:function(){if(this.element.is("input")&&this.autoUpdateInput){var i=this.startDate.format(this.locale.format);this.singleDatePicker||(i+=this.locale.separator+this.endDate.format(this.locale.format)),i!==this.element.val()&&this.element.val(i).trigger("change")}},remove:function(){this.container.remove(),this.element.off(".daterangepicker"),this.element.removeData()}},n.fn.daterangepicker=function(i,o){var s=n.extend(!0,{},n.fn.daterangepicker.defaultOptions,i);return this.each(function(){var u=n(this);u.data("daterangepicker")&&u.data("daterangepicker").remove(),u.data("daterangepicker",new r(u,s,o))}),this},r})})(d6);var Om=function(e,t){return Om=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])},Om(e,t)};function h6(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Om(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var p6=function(e){h6(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=f6(this.ref),this.$picker.daterangepicker(this.props.initialSettings,this.handleCallback.bind(this)),["Show","Hide","ShowCalendar","HideCalendar","Apply","Cancel"].forEach(function(r){var i,o=r.charAt(0).toLowerCase()+r.slice(1);(i=n.$picker)===null||i===void 0||i.on(o+".daterangepicker",n.makeEventHandler("on"+r))})},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=bn.Children.only(this.props.children);return bn.cloneElement(r,{ref:function(i){return n.ref=i}})},t}(bn.Component);is.styled(e=>Ne.jsx(is.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:Wr.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}}));/**
|
|
181
|
-
* @license
|
|
182
|
-
* Copyright 2017 Google LLC
|
|
183
|
-
*
|
|
184
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
185
|
-
* you may not use this file except in compliance with the License.
|
|
186
|
-
* You may obtain a copy of the License at
|
|
187
|
-
*
|
|
188
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
189
|
-
*
|
|
190
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
191
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
192
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
193
|
-
* See the License for the specific language governing permissions and
|
|
194
|
-
* limitations under the License.
|
|
195
|
-
*//**
|
|
196
|
-
* @license
|
|
197
|
-
* Copyright 2017 Google LLC
|
|
198
|
-
*
|
|
199
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
200
|
-
* you may not use this file except in compliance with the License.
|
|
201
|
-
* You may obtain a copy of the License at
|
|
202
|
-
*
|
|
203
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
204
|
-
*
|
|
205
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
206
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
207
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
208
|
-
* See the License for the specific language governing permissions and
|
|
209
|
-
* limitations under the License.
|
|
210
|
-
*/const OO=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},g6=function(e){const t=[];let n=0,r=0;for(;n<e.length;){const i=e[n++];if(i<128)t[r++]=String.fromCharCode(i);else if(i>191&&i<224){const o=e[n++];t[r++]=String.fromCharCode((i&31)<<6|o&63)}else if(i>239&&i<365){const o=e[n++],s=e[n++],u=e[n++],f=((i&7)<<18|(o&63)<<12|(s&63)<<6|u&63)-65536;t[r++]=String.fromCharCode(55296+(f>>10)),t[r++]=String.fromCharCode(56320+(f&1023))}else{const o=e[n++],s=e[n++];t[r++]=String.fromCharCode((i&15)<<12|(o&63)<<6|s&63)}}return t.join("")},_O={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let i=0;i<e.length;i+=3){const o=e[i],s=i+1<e.length,u=s?e[i+1]:0,f=i+2<e.length,p=f?e[i+2]:0,y=o>>2,g=(o&3)<<4|u>>4;let x=(u&15)<<2|p>>6,C=p&63;f||(C=64,s||(x=64)),r.push(n[y],n[g],n[x],n[C])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(OO(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):g6(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let i=0;i<e.length;){const o=n[e.charAt(i++)],u=i<e.length?n[e.charAt(i)]:0;++i;const p=i<e.length?n[e.charAt(i)]:64;++i;const g=i<e.length?n[e.charAt(i)]:64;if(++i,o==null||u==null||p==null||g==null)throw new v6;const x=o<<2|u>>4;if(r.push(x),p!==64){const C=u<<4&240|p>>2;if(r.push(C),g!==64){const D=p<<6&192|g;r.push(D)}}}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 v6 extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const m6=function(e){const t=OO(e);return _O.encodeByteArray(t,!0)},DO=function(e){return m6(e).replace(/\./g,"")},y6=function(e){try{return _O.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};/**
|
|
211
|
-
* @license
|
|
212
|
-
* Copyright 2022 Google LLC
|
|
213
|
-
*
|
|
214
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
215
|
-
* you may not use this file except in compliance with the License.
|
|
216
|
-
* You may obtain a copy of the License at
|
|
217
|
-
*
|
|
218
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
219
|
-
*
|
|
220
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
221
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
222
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
223
|
-
* See the License for the specific language governing permissions and
|
|
224
|
-
* limitations under the License.
|
|
225
|
-
*/function b6(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}/**
|
|
226
|
-
* @license
|
|
227
|
-
* Copyright 2022 Google LLC
|
|
228
|
-
*
|
|
229
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
230
|
-
* you may not use this file except in compliance with the License.
|
|
231
|
-
* You may obtain a copy of the License at
|
|
232
|
-
*
|
|
233
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
234
|
-
*
|
|
235
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
236
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
237
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
238
|
-
* See the License for the specific language governing permissions and
|
|
239
|
-
* limitations under the License.
|
|
240
|
-
*/const w6=()=>b6().__FIREBASE_DEFAULTS__,x6=()=>{if(typeof process>"u"||typeof process.env>"u")return;const e=process.env.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)},S6=()=>{if(typeof document>"u")return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const t=e&&y6(e[1]);return t&&JSON.parse(t)},T6=()=>{try{return w6()||x6()||S6()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}},PO=()=>{var e;return(e=T6())===null||e===void 0?void 0:e.config};/**
|
|
241
|
-
* @license
|
|
242
|
-
* Copyright 2017 Google LLC
|
|
243
|
-
*
|
|
244
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
245
|
-
* you may not use this file except in compliance with the License.
|
|
246
|
-
* You may obtain a copy of the License at
|
|
247
|
-
*
|
|
248
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
249
|
-
*
|
|
250
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
251
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
252
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
253
|
-
* See the License for the specific language governing permissions and
|
|
254
|
-
* limitations under the License.
|
|
255
|
-
*/class C6{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((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 RO(){try{return typeof indexedDB=="object"}catch{return!1}}function IO(){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 E6(){return!(typeof navigator>"u"||!navigator.cookieEnabled)}/**
|
|
256
|
-
* @license
|
|
257
|
-
* Copyright 2017 Google LLC
|
|
258
|
-
*
|
|
259
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
260
|
-
* you may not use this file except in compliance with the License.
|
|
261
|
-
* You may obtain a copy of the License at
|
|
262
|
-
*
|
|
263
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
264
|
-
*
|
|
265
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
266
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
267
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
268
|
-
* See the License for the specific language governing permissions and
|
|
269
|
-
* limitations under the License.
|
|
270
|
-
*/const k6="FirebaseError";class If extends Error{constructor(t,n,r){super(n),this.code=t,this.customData=r,this.name=k6,Object.setPrototypeOf(this,If.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,Jp.prototype.create)}}class Jp{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?O6(o,r):"Error",u=`${this.serviceName}: ${s} (${i}).`;return new If(i,u,r)}}function O6(e,t){return e.replace(_6,(n,r)=>{const i=t[r];return i!=null?String(i):`<${r}?>`})}const _6=/\{\$([^}]+)}/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(l1(o)&&l1(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 l1(e){return e!==null&&typeof e=="object"}/**
|
|
271
|
-
* @license
|
|
272
|
-
* Copyright 2021 Google LLC
|
|
273
|
-
*
|
|
274
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
275
|
-
* you may not use this file except in compliance with the License.
|
|
276
|
-
* You may obtain a copy of the License at
|
|
277
|
-
*
|
|
278
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
279
|
-
*
|
|
280
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
281
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
282
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
283
|
-
* See the License for the specific language governing permissions and
|
|
284
|
-
* limitations under the License.
|
|
285
|
-
*/function zy(e){return e&&e._delegate?e._delegate:e}class Cu{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}}/**
|
|
286
|
-
* @license
|
|
287
|
-
* Copyright 2019 Google LLC
|
|
288
|
-
*
|
|
289
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
290
|
-
* you may not use this file except in compliance with the License.
|
|
291
|
-
* You may obtain a copy of the License at
|
|
292
|
-
*
|
|
293
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
294
|
-
*
|
|
295
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
296
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
297
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
298
|
-
* See the License for the specific language governing permissions and
|
|
299
|
-
* limitations under the License.
|
|
300
|
-
*/const pc="[DEFAULT]";/**
|
|
301
|
-
* @license
|
|
302
|
-
* Copyright 2019 Google LLC
|
|
303
|
-
*
|
|
304
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
305
|
-
* you may not use this file except in compliance with the License.
|
|
306
|
-
* You may obtain a copy of the License at
|
|
307
|
-
*
|
|
308
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
309
|
-
*
|
|
310
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
311
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
312
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
313
|
-
* See the License for the specific language governing permissions and
|
|
314
|
-
* limitations under the License.
|
|
315
|
-
*/class D6{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 C6;if(this.instancesDeferred.set(n,r),this.isInitialized(n)||this.shouldAutoInitialize())try{const i=this.getOrInitializeService({instanceIdentifier:n});i&&r.resolve(i)}catch{}}return this.instancesDeferred.get(n).promise}getImmediate(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(R6(t))try{this.getOrInitializeService({instanceIdentifier:pc})}catch{}for(const[n,r]of this.instancesDeferred.entries()){const i=this.normalizeInstanceIdentifier(n);try{const o=this.getOrInitializeService({instanceIdentifier:i});r.resolve(o)}catch{}}}}clearInstance(t=pc){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=pc){return this.instances.has(t)}getOptions(t=pc){return this.instancesOptions.get(t)||{}}initialize(t={}){const{options:n={}}=t,r=this.normalizeInstanceIdentifier(t.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const i=this.getOrInitializeService({instanceIdentifier:r,options:n});for(const[o,s]of this.instancesDeferred.entries()){const u=this.normalizeInstanceIdentifier(o);r===u&&s.resolve(i)}return i}onInit(t,n){var r;const i=this.normalizeInstanceIdentifier(n),o=(r=this.onInitCallbacks.get(i))!==null&&r!==void 0?r:new Set;o.add(t),this.onInitCallbacks.set(i,o);const s=this.instances.get(i);return s&&t(s,i),()=>{o.delete(t)}}invokeOnInitCallbacks(t,n){const r=this.onInitCallbacks.get(n);if(r)for(const i of r)try{i(t,n)}catch{}}getOrInitializeService({instanceIdentifier:t,options:n={}}){let r=this.instances.get(t);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:P6(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=pc){return this.component?this.component.multipleInstances?t:pc:t}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function P6(e){return e===pc?void 0:e}function R6(e){return e.instantiationMode==="EAGER"}/**
|
|
316
|
-
* @license
|
|
317
|
-
* Copyright 2019 Google LLC
|
|
318
|
-
*
|
|
319
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
320
|
-
* you may not use this file except in compliance with the License.
|
|
321
|
-
* You may obtain a copy of the License at
|
|
322
|
-
*
|
|
323
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
324
|
-
*
|
|
325
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
326
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
327
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
328
|
-
* See the License for the specific language governing permissions and
|
|
329
|
-
* limitations under the License.
|
|
330
|
-
*/class I6{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 D6(t,this);return this.providers.set(t,n),n}getProviders(){return Array.from(this.providers.values())}}/**
|
|
331
|
-
* @license
|
|
332
|
-
* Copyright 2017 Google LLC
|
|
333
|
-
*
|
|
334
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
335
|
-
* you may not use this file except in compliance with the License.
|
|
336
|
-
* You may obtain a copy of the License at
|
|
337
|
-
*
|
|
338
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
339
|
-
*
|
|
340
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
341
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
342
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
343
|
-
* See the License for the specific language governing permissions and
|
|
344
|
-
* limitations under the License.
|
|
345
|
-
*/var Fn;(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"})(Fn||(Fn={}));const A6={debug:Fn.DEBUG,verbose:Fn.VERBOSE,info:Fn.INFO,warn:Fn.WARN,error:Fn.ERROR,silent:Fn.SILENT},M6=Fn.INFO,L6={[Fn.DEBUG]:"log",[Fn.VERBOSE]:"log",[Fn.INFO]:"info",[Fn.WARN]:"warn",[Fn.ERROR]:"error"},F6=(e,t,...n)=>{if(t<e.logLevel)return;const r=new Date().toISOString(),i=L6[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 N6{constructor(t){this.name=t,this._logLevel=M6,this._logHandler=F6,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(t){if(!(t in Fn))throw new TypeError(`Invalid value "${t}" assigned to \`logLevel\``);this._logLevel=t}setLogLevel(t){this._logLevel=typeof t=="string"?A6[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,Fn.DEBUG,...t),this._logHandler(this,Fn.DEBUG,...t)}log(...t){this._userLogHandler&&this._userLogHandler(this,Fn.VERBOSE,...t),this._logHandler(this,Fn.VERBOSE,...t)}info(...t){this._userLogHandler&&this._userLogHandler(this,Fn.INFO,...t),this._logHandler(this,Fn.INFO,...t)}warn(...t){this._userLogHandler&&this._userLogHandler(this,Fn.WARN,...t),this._logHandler(this,Fn.WARN,...t)}error(...t){this._userLogHandler&&this._userLogHandler(this,Fn.ERROR,...t),this._logHandler(this,Fn.ERROR,...t)}}const j6=(e,t)=>t.some(n=>e instanceof n);let u1,c1;function B6(){return u1||(u1=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function $6(){return c1||(c1=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const AO=new WeakMap,Dm=new WeakMap,MO=new WeakMap,wv=new WeakMap,Yy=new WeakMap;function V6(e){const t=new Promise((n,r)=>{const i=()=>{e.removeEventListener("success",o),e.removeEventListener("error",s)},o=()=>{n(Cl(e.result)),i()},s=()=>{r(e.error),i()};e.addEventListener("success",o),e.addEventListener("error",s)});return t.then(n=>{n instanceof IDBCursor&&AO.set(n,e)}).catch(()=>{}),Yy.set(t,e),t}function H6(e){if(Dm.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)});Dm.set(e,t)}let Pm={get(e,t,n){if(e instanceof IDBTransaction){if(t==="done")return Dm.get(e);if(t==="objectStoreNames")return e.objectStoreNames||MO.get(e);if(t==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Cl(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 U6(e){Pm=e(Pm)}function W6(e){return e===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(t,...n){const r=e.call(xv(this),t,...n);return MO.set(r,t.sort?t.sort():[t]),Cl(r)}:$6().includes(e)?function(...t){return e.apply(xv(this),t),Cl(AO.get(this))}:function(...t){return Cl(e.apply(xv(this),t))}}function z6(e){return typeof e=="function"?W6(e):(e instanceof IDBTransaction&&H6(e),j6(e,B6())?new Proxy(e,Pm):e)}function Cl(e){if(e instanceof IDBRequest)return V6(e);if(wv.has(e))return wv.get(e);const t=z6(e);return t!==e&&(wv.set(e,t),Yy.set(t,e)),t}const xv=e=>Yy.get(e);function Qp(e,t,{blocked:n,upgrade:r,blocking:i,terminated:o}={}){const s=indexedDB.open(e,t),u=Cl(s);return r&&s.addEventListener("upgradeneeded",f=>{r(Cl(s.result),f.oldVersion,f.newVersion,Cl(s.transaction),f)}),n&&s.addEventListener("blocked",f=>n(f.oldVersion,f.newVersion,f)),u.then(f=>{o&&f.addEventListener("close",()=>o()),i&&f.addEventListener("versionchange",p=>i(p.oldVersion,p.newVersion,p))}).catch(()=>{}),u}function Sv(e,{blocked:t}={}){const n=indexedDB.deleteDatabase(e);return t&&n.addEventListener("blocked",r=>t(r.oldVersion,r)),Cl(n).then(()=>{})}const Y6=["get","getKey","getAll","getAllKeys","count"],G6=["put","add","delete","clear"],Tv=new Map;function f1(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(Tv.get(t))return Tv.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,i=G6.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||Y6.includes(n)))return;const o=async function(s,...u){const f=this.transaction(s,i?"readwrite":"readonly");let p=f.store;return r&&(p=p.index(u.shift())),(await Promise.all([p[n](...u),i&&f.done]))[0]};return Tv.set(t,o),o}U6(e=>({...e,get:(t,n,r)=>f1(t,n)||e.get(t,n,r),has:(t,n)=>!!f1(t,n)||e.has(t,n)}));/**
|
|
346
|
-
* @license
|
|
347
|
-
* Copyright 2019 Google LLC
|
|
348
|
-
*
|
|
349
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
350
|
-
* you may not use this file except in compliance with the License.
|
|
351
|
-
* You may obtain a copy of the License at
|
|
352
|
-
*
|
|
353
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
354
|
-
*
|
|
355
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
356
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
357
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
358
|
-
* See the License for the specific language governing permissions and
|
|
359
|
-
* limitations under the License.
|
|
360
|
-
*/class q6{constructor(t){this.container=t}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(X6(n)){const r=n.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(n=>n).join(" ")}}function X6(e){const t=e.getComponent();return(t==null?void 0:t.type)==="VERSION"}const Rm="@firebase/app",d1="0.10.13";/**
|
|
361
|
-
* @license
|
|
362
|
-
* Copyright 2019 Google LLC
|
|
363
|
-
*
|
|
364
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
365
|
-
* you may not use this file except in compliance with the License.
|
|
366
|
-
* You may obtain a copy of the License at
|
|
367
|
-
*
|
|
368
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
369
|
-
*
|
|
370
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
371
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
372
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
373
|
-
* See the License for the specific language governing permissions and
|
|
374
|
-
* limitations under the License.
|
|
375
|
-
*/const Dl=new N6("@firebase/app"),K6="@firebase/app-compat",Z6="@firebase/analytics-compat",J6="@firebase/analytics",Q6="@firebase/app-check-compat",e8="@firebase/app-check",t8="@firebase/auth",n8="@firebase/auth-compat",r8="@firebase/database",i8="@firebase/data-connect",o8="@firebase/database-compat",a8="@firebase/functions",s8="@firebase/functions-compat",l8="@firebase/installations",u8="@firebase/installations-compat",c8="@firebase/messaging",f8="@firebase/messaging-compat",d8="@firebase/performance",h8="@firebase/performance-compat",p8="@firebase/remote-config",g8="@firebase/remote-config-compat",v8="@firebase/storage",m8="@firebase/storage-compat",y8="@firebase/firestore",b8="@firebase/vertexai-preview",w8="@firebase/firestore-compat",x8="firebase";/**
|
|
376
|
-
* @license
|
|
377
|
-
* Copyright 2019 Google LLC
|
|
378
|
-
*
|
|
379
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
380
|
-
* you may not use this file except in compliance with the License.
|
|
381
|
-
* You may obtain a copy of the License at
|
|
382
|
-
*
|
|
383
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
384
|
-
*
|
|
385
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
386
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
387
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
388
|
-
* See the License for the specific language governing permissions and
|
|
389
|
-
* limitations under the License.
|
|
390
|
-
*/const Im="[DEFAULT]",S8={[Rm]:"fire-core",[K6]:"fire-core-compat",[J6]:"fire-analytics",[Z6]:"fire-analytics-compat",[e8]:"fire-app-check",[Q6]:"fire-app-check-compat",[t8]:"fire-auth",[n8]:"fire-auth-compat",[r8]:"fire-rtdb",[i8]:"fire-data-connect",[o8]:"fire-rtdb-compat",[a8]:"fire-fn",[s8]:"fire-fn-compat",[l8]:"fire-iid",[u8]:"fire-iid-compat",[c8]:"fire-fcm",[f8]:"fire-fcm-compat",[d8]:"fire-perf",[h8]:"fire-perf-compat",[p8]:"fire-rc",[g8]:"fire-rc-compat",[v8]:"fire-gcs",[m8]:"fire-gcs-compat",[y8]:"fire-fst",[w8]:"fire-fst-compat",[b8]:"fire-vertex","fire-js":"fire-js",[x8]:"fire-js-all"};/**
|
|
391
|
-
* @license
|
|
392
|
-
* Copyright 2019 Google LLC
|
|
393
|
-
*
|
|
394
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
395
|
-
* you may not use this file except in compliance with the License.
|
|
396
|
-
* You may obtain a copy of the License at
|
|
397
|
-
*
|
|
398
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
399
|
-
*
|
|
400
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
401
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
402
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
403
|
-
* See the License for the specific language governing permissions and
|
|
404
|
-
* limitations under the License.
|
|
405
|
-
*/const xp=new Map,T8=new Map,Am=new Map;function h1(e,t){try{e.container.addComponent(t)}catch(n){Dl.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function Cc(e){const t=e.name;if(Am.has(t))return Dl.debug(`There were multiple attempts to register component ${t}.`),!1;Am.set(t,e);for(const n of xp.values())h1(n,e);for(const n of T8.values())h1(n,e);return!0}function Gy(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}/**
|
|
406
|
-
* @license
|
|
407
|
-
* Copyright 2019 Google LLC
|
|
408
|
-
*
|
|
409
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
410
|
-
* you may not use this file except in compliance with the License.
|
|
411
|
-
* You may obtain a copy of the License at
|
|
412
|
-
*
|
|
413
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
414
|
-
*
|
|
415
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
416
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
417
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
418
|
-
* See the License for the specific language governing permissions and
|
|
419
|
-
* limitations under the License.
|
|
420
|
-
*/const C8={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."},yu=new Jp("app","Firebase",C8);/**
|
|
421
|
-
* @license
|
|
422
|
-
* Copyright 2019 Google LLC
|
|
423
|
-
*
|
|
424
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
425
|
-
* you may not use this file except in compliance with the License.
|
|
426
|
-
* You may obtain a copy of the License at
|
|
427
|
-
*
|
|
428
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
429
|
-
*
|
|
430
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
431
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
432
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
433
|
-
* See the License for the specific language governing permissions and
|
|
434
|
-
* limitations under the License.
|
|
435
|
-
*/class E8{constructor(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 Cu("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 yu.create("app-deleted",{appName:this._name})}}function LO(e,t={}){let n=e;typeof t!="object"&&(t={name:t});const r=Object.assign({name:Im,automaticDataCollectionEnabled:!1},t),i=r.name;if(typeof i!="string"||!i)throw yu.create("bad-app-name",{appName:String(i)});if(n||(n=PO()),!n)throw yu.create("no-options");const o=xp.get(i);if(o){if(_m(n,o.options)&&_m(r,o.config))return o;throw yu.create("duplicate-app",{appName:i})}const s=new I6(i);for(const f of Am.values())s.addComponent(f);const u=new E8(n,r,s);return xp.set(i,u),u}function k8(e=Im){const t=xp.get(e);if(!t&&e===Im&&PO())return LO();if(!t)throw yu.create("no-app",{appName:e});return t}function bu(e,t,n){var r;let i=(r=S8[e])!==null&&r!==void 0?r:e;n&&(i+=`-${n}`);const o=i.match(/\s|\//),s=t.match(/\s|\//);if(o||s){const u=[`Unable to register library "${i}" with version "${t}":`];o&&u.push(`library name "${i}" contains illegal characters (whitespace or "/")`),o&&s&&u.push("and"),s&&u.push(`version name "${t}" contains illegal characters (whitespace or "/")`),Dl.warn(u.join(" "));return}Cc(new Cu(`${i}-version`,()=>({library:i,version:t}),"VERSION"))}/**
|
|
436
|
-
* @license
|
|
437
|
-
* Copyright 2021 Google LLC
|
|
438
|
-
*
|
|
439
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
440
|
-
* you may not use this file except in compliance with the License.
|
|
441
|
-
* You may obtain a copy of the License at
|
|
442
|
-
*
|
|
443
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
444
|
-
*
|
|
445
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
446
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
447
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
448
|
-
* See the License for the specific language governing permissions and
|
|
449
|
-
* limitations under the License.
|
|
450
|
-
*/const O8="firebase-heartbeat-database",_8=1,Ld="firebase-heartbeat-store";let Cv=null;function FO(){return Cv||(Cv=Qp(O8,_8,{upgrade:(e,t)=>{switch(t){case 0:try{e.createObjectStore(Ld)}catch(n){console.warn(n)}}}}).catch(e=>{throw yu.create("idb-open",{originalErrorMessage:e.message})})),Cv}async function D8(e){try{const n=(await FO()).transaction(Ld),r=await n.objectStore(Ld).get(NO(e));return await n.done,r}catch(t){if(t instanceof If)Dl.warn(t.message);else{const n=yu.create("idb-get",{originalErrorMessage:t==null?void 0:t.message});Dl.warn(n.message)}}}async function p1(e,t){try{const r=(await FO()).transaction(Ld,"readwrite");await r.objectStore(Ld).put(t,NO(e)),await r.done}catch(n){if(n instanceof If)Dl.warn(n.message);else{const r=yu.create("idb-set",{originalErrorMessage:n==null?void 0:n.message});Dl.warn(r.message)}}}function NO(e){return`${e.name}!${e.options.appId}`}/**
|
|
451
|
-
* @license
|
|
452
|
-
* Copyright 2021 Google LLC
|
|
453
|
-
*
|
|
454
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
455
|
-
* you may not use this file except in compliance with the License.
|
|
456
|
-
* You may obtain a copy of the License at
|
|
457
|
-
*
|
|
458
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
459
|
-
*
|
|
460
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
461
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
462
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
463
|
-
* See the License for the specific language governing permissions and
|
|
464
|
-
* limitations under the License.
|
|
465
|
-
*/const P8=1024,R8=30*24*60*60*1e3;class I8{constructor(t){this.container=t,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new M8(n),this._heartbeatsCachePromise=this._storage.read().then(r=>(this._heartbeatsCache=r,r))}async triggerHeartbeat(){var t,n;try{const i=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),o=g1();return((t=this._heartbeatsCache)===null||t===void 0?void 0:t.heartbeats)==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,((n=this._heartbeatsCache)===null||n===void 0?void 0:n.heartbeats)==null)||this._heartbeatsCache.lastSentHeartbeatDate===o||this._heartbeatsCache.heartbeats.some(s=>s.date===o)?void 0:(this._heartbeatsCache.heartbeats.push({date:o,agent:i}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(s=>{const u=new Date(s.date).valueOf();return Date.now()-u<=R8}),this._storage.overwrite(this._heartbeatsCache))}catch(r){Dl.warn(r)}}async getHeartbeatsHeader(){var t;try{if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,((t=this._heartbeatsCache)===null||t===void 0?void 0:t.heartbeats)==null||this._heartbeatsCache.heartbeats.length===0)return"";const n=g1(),{heartbeatsToSend:r,unsentEntries:i}=A8(this._heartbeatsCache.heartbeats),o=DO(JSON.stringify({version:2,heartbeats:r}));return this._heartbeatsCache.lastSentHeartbeatDate=n,i.length>0?(this._heartbeatsCache.heartbeats=i,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),o}catch(n){return Dl.warn(n),""}}}function g1(){return new Date().toISOString().substring(0,10)}function A8(e,t=P8){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),v1(n)>t){o.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),v1(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}class M8{constructor(t){this.app=t,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return RO()?IO().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const n=await D8(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 p1(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 p1(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&&n!==void 0?n:i.lastSentHeartbeatDate,heartbeats:[...i.heartbeats,...t.heartbeats]})}else return}}function v1(e){return DO(JSON.stringify({version:2,heartbeats:e})).length}/**
|
|
466
|
-
* @license
|
|
467
|
-
* Copyright 2019 Google LLC
|
|
468
|
-
*
|
|
469
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
470
|
-
* you may not use this file except in compliance with the License.
|
|
471
|
-
* You may obtain a copy of the License at
|
|
472
|
-
*
|
|
473
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
474
|
-
*
|
|
475
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
476
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
477
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
478
|
-
* See the License for the specific language governing permissions and
|
|
479
|
-
* limitations under the License.
|
|
480
|
-
*/function L8(e){Cc(new Cu("platform-logger",t=>new q6(t),"PRIVATE")),Cc(new Cu("heartbeat",t=>new I8(t),"PRIVATE")),bu(Rm,d1,e),bu(Rm,d1,"esm2017"),bu("fire-js","")}L8("");var F8="firebase",N8="10.14.1";/**
|
|
481
|
-
* @license
|
|
482
|
-
* Copyright 2020 Google LLC
|
|
483
|
-
*
|
|
484
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
485
|
-
* you may not use this file except in compliance with the License.
|
|
486
|
-
* You may obtain a copy of the License at
|
|
487
|
-
*
|
|
488
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
489
|
-
*
|
|
490
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
491
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
492
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
493
|
-
* See the License for the specific language governing permissions and
|
|
494
|
-
* limitations under the License.
|
|
495
|
-
*/bu(F8,N8,"app");const jO="@firebase/installations",qy="0.6.9";/**
|
|
496
|
-
* @license
|
|
497
|
-
* Copyright 2019 Google LLC
|
|
498
|
-
*
|
|
499
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
500
|
-
* you may not use this file except in compliance with the License.
|
|
501
|
-
* You may obtain a copy of the License at
|
|
502
|
-
*
|
|
503
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
504
|
-
*
|
|
505
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
506
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
507
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
508
|
-
* See the License for the specific language governing permissions and
|
|
509
|
-
* limitations under the License.
|
|
510
|
-
*/const BO=1e4,$O=`w:${qy}`,VO="FIS_v2",j8="https://firebaseinstallations.googleapis.com/v1",B8=60*60*1e3,$8="installations",V8="Installations";/**
|
|
511
|
-
* @license
|
|
512
|
-
* Copyright 2019 Google LLC
|
|
513
|
-
*
|
|
514
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
515
|
-
* you may not use this file except in compliance with the License.
|
|
516
|
-
* You may obtain a copy of the License at
|
|
517
|
-
*
|
|
518
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
519
|
-
*
|
|
520
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
521
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
522
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
523
|
-
* See the License for the specific language governing permissions and
|
|
524
|
-
* limitations under the License.
|
|
525
|
-
*/const H8={"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."},Ec=new Jp($8,V8,H8);function HO(e){return e instanceof If&&e.code.includes("request-failed")}/**
|
|
526
|
-
* @license
|
|
527
|
-
* Copyright 2019 Google LLC
|
|
528
|
-
*
|
|
529
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
530
|
-
* you may not use this file except in compliance with the License.
|
|
531
|
-
* You may obtain a copy of the License at
|
|
532
|
-
*
|
|
533
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
534
|
-
*
|
|
535
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
536
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
537
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
538
|
-
* See the License for the specific language governing permissions and
|
|
539
|
-
* limitations under the License.
|
|
540
|
-
*/function UO({projectId:e}){return`${j8}/projects/${e}/installations`}function WO(e){return{token:e.token,requestStatus:2,expiresIn:W8(e.expiresIn),creationTime:Date.now()}}async function zO(e,t){const r=(await t.json()).error;return Ec.create("request-failed",{requestName:e,serverCode:r.code,serverMessage:r.message,serverStatus:r.status})}function YO({apiKey:e}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}function U8(e,{refreshToken:t}){const n=YO(e);return n.append("Authorization",z8(t)),n}async function GO(e){const t=await e();return t.status>=500&&t.status<600?e():t}function W8(e){return Number(e.replace("s","000"))}function z8(e){return`${VO} ${e}`}/**
|
|
541
|
-
* @license
|
|
542
|
-
* Copyright 2019 Google LLC
|
|
543
|
-
*
|
|
544
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
545
|
-
* you may not use this file except in compliance with the License.
|
|
546
|
-
* You may obtain a copy of the License at
|
|
547
|
-
*
|
|
548
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
549
|
-
*
|
|
550
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
551
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
552
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
553
|
-
* See the License for the specific language governing permissions and
|
|
554
|
-
* limitations under the License.
|
|
555
|
-
*/async function Y8({appConfig:e,heartbeatServiceProvider:t},{fid:n}){const r=UO(e),i=YO(e),o=t.getImmediate({optional:!0});if(o){const p=await o.getHeartbeatsHeader();p&&i.append("x-firebase-client",p)}const s={fid:n,authVersion:VO,appId:e.appId,sdkVersion:$O},u={method:"POST",headers:i,body:JSON.stringify(s)},f=await GO(()=>fetch(r,u));if(f.ok){const p=await f.json();return{fid:p.fid||n,registrationStatus:2,refreshToken:p.refreshToken,authToken:WO(p.authToken)}}else throw await zO("Create Installation",f)}/**
|
|
556
|
-
* @license
|
|
557
|
-
* Copyright 2019 Google LLC
|
|
558
|
-
*
|
|
559
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
560
|
-
* you may not use this file except in compliance with the License.
|
|
561
|
-
* You may obtain a copy of the License at
|
|
562
|
-
*
|
|
563
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
564
|
-
*
|
|
565
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
566
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
567
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
568
|
-
* See the License for the specific language governing permissions and
|
|
569
|
-
* limitations under the License.
|
|
570
|
-
*/function qO(e){return new Promise(t=>{setTimeout(t,e)})}/**
|
|
571
|
-
* @license
|
|
572
|
-
* Copyright 2019 Google LLC
|
|
573
|
-
*
|
|
574
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
575
|
-
* you may not use this file except in compliance with the License.
|
|
576
|
-
* You may obtain a copy of the License at
|
|
577
|
-
*
|
|
578
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
579
|
-
*
|
|
580
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
581
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
582
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
583
|
-
* See the License for the specific language governing permissions and
|
|
584
|
-
* limitations under the License.
|
|
585
|
-
*/function G8(e){return btoa(String.fromCharCode(...e)).replace(/\+/g,"-").replace(/\//g,"_")}/**
|
|
586
|
-
* @license
|
|
587
|
-
* Copyright 2019 Google LLC
|
|
588
|
-
*
|
|
589
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
590
|
-
* you may not use this file except in compliance with the License.
|
|
591
|
-
* You may obtain a copy of the License at
|
|
592
|
-
*
|
|
593
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
594
|
-
*
|
|
595
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
596
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
597
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
598
|
-
* See the License for the specific language governing permissions and
|
|
599
|
-
* limitations under the License.
|
|
600
|
-
*/const q8=/^[cdef][\w-]{21}$/,Mm="";function X8(){try{const e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;const n=K8(e);return q8.test(n)?n:Mm}catch{return Mm}}function K8(e){return G8(e).substr(0,22)}/**
|
|
601
|
-
* @license
|
|
602
|
-
* Copyright 2019 Google LLC
|
|
603
|
-
*
|
|
604
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
605
|
-
* you may not use this file except in compliance with the License.
|
|
606
|
-
* You may obtain a copy of the License at
|
|
607
|
-
*
|
|
608
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
609
|
-
*
|
|
610
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
611
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
612
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
613
|
-
* See the License for the specific language governing permissions and
|
|
614
|
-
* limitations under the License.
|
|
615
|
-
*/function eg(e){return`${e.appName}!${e.appId}`}/**
|
|
616
|
-
* @license
|
|
617
|
-
* Copyright 2019 Google LLC
|
|
618
|
-
*
|
|
619
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
620
|
-
* you may not use this file except in compliance with the License.
|
|
621
|
-
* You may obtain a copy of the License at
|
|
622
|
-
*
|
|
623
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
624
|
-
*
|
|
625
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
626
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
627
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
628
|
-
* See the License for the specific language governing permissions and
|
|
629
|
-
* limitations under the License.
|
|
630
|
-
*/const XO=new Map;function KO(e,t){const n=eg(e);ZO(n,t),Z8(n,t)}function ZO(e,t){const n=XO.get(e);if(n)for(const r of n)r(t)}function Z8(e,t){const n=J8();n&&n.postMessage({key:e,fid:t}),Q8()}let mc=null;function J8(){return!mc&&"BroadcastChannel"in self&&(mc=new BroadcastChannel("[Firebase] FID Change"),mc.onmessage=e=>{ZO(e.data.key,e.data.fid)}),mc}function Q8(){XO.size===0&&mc&&(mc.close(),mc=null)}/**
|
|
631
|
-
* @license
|
|
632
|
-
* Copyright 2019 Google LLC
|
|
633
|
-
*
|
|
634
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
635
|
-
* you may not use this file except in compliance with the License.
|
|
636
|
-
* You may obtain a copy of the License at
|
|
637
|
-
*
|
|
638
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
639
|
-
*
|
|
640
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
641
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
642
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
643
|
-
* See the License for the specific language governing permissions and
|
|
644
|
-
* limitations under the License.
|
|
645
|
-
*/const e9="firebase-installations-database",t9=1,kc="firebase-installations-store";let Ev=null;function Xy(){return Ev||(Ev=Qp(e9,t9,{upgrade:(e,t)=>{switch(t){case 0:e.createObjectStore(kc)}}})),Ev}async function Sp(e,t){const n=eg(e),i=(await Xy()).transaction(kc,"readwrite"),o=i.objectStore(kc),s=await o.get(n);return await o.put(t,n),await i.done,(!s||s.fid!==t.fid)&&KO(e,t.fid),t}async function JO(e){const t=eg(e),r=(await Xy()).transaction(kc,"readwrite");await r.objectStore(kc).delete(t),await r.done}async function tg(e,t){const n=eg(e),i=(await Xy()).transaction(kc,"readwrite"),o=i.objectStore(kc),s=await o.get(n),u=t(s);return u===void 0?await o.delete(n):await o.put(u,n),await i.done,u&&(!s||s.fid!==u.fid)&&KO(e,u.fid),u}/**
|
|
646
|
-
* @license
|
|
647
|
-
* Copyright 2019 Google LLC
|
|
648
|
-
*
|
|
649
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
650
|
-
* you may not use this file except in compliance with the License.
|
|
651
|
-
* You may obtain a copy of the License at
|
|
652
|
-
*
|
|
653
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
654
|
-
*
|
|
655
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
656
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
657
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
658
|
-
* See the License for the specific language governing permissions and
|
|
659
|
-
* limitations under the License.
|
|
660
|
-
*/async function Ky(e){let t;const n=await tg(e.appConfig,r=>{const i=n9(r),o=r9(e,i);return t=o.registrationPromise,o.installationEntry});return n.fid===Mm?{installationEntry:await t}:{installationEntry:n,registrationPromise:t}}function n9(e){const t=e||{fid:X8(),registrationStatus:0};return QO(t)}function r9(e,t){if(t.registrationStatus===0){if(!navigator.onLine){const i=Promise.reject(Ec.create("app-offline"));return{installationEntry:t,registrationPromise:i}}const n={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},r=i9(e,n);return{installationEntry:n,registrationPromise:r}}else return t.registrationStatus===1?{installationEntry:t,registrationPromise:o9(e)}:{installationEntry:t}}async function i9(e,t){try{const n=await Y8(e,t);return Sp(e.appConfig,n)}catch(n){throw HO(n)&&n.customData.serverCode===409?await JO(e.appConfig):await Sp(e.appConfig,{fid:t.fid,registrationStatus:0}),n}}async function o9(e){let t=await m1(e.appConfig);for(;t.registrationStatus===1;)await qO(100),t=await m1(e.appConfig);if(t.registrationStatus===0){const{installationEntry:n,registrationPromise:r}=await Ky(e);return r||n}return t}function m1(e){return tg(e,t=>{if(!t)throw Ec.create("installation-not-found");return QO(t)})}function QO(e){return a9(e)?{fid:e.fid,registrationStatus:0}:e}function a9(e){return e.registrationStatus===1&&e.registrationTime+BO<Date.now()}/**
|
|
661
|
-
* @license
|
|
662
|
-
* Copyright 2019 Google LLC
|
|
663
|
-
*
|
|
664
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
665
|
-
* you may not use this file except in compliance with the License.
|
|
666
|
-
* You may obtain a copy of the License at
|
|
667
|
-
*
|
|
668
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
669
|
-
*
|
|
670
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
671
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
672
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
673
|
-
* See the License for the specific language governing permissions and
|
|
674
|
-
* limitations under the License.
|
|
675
|
-
*/async function s9({appConfig:e,heartbeatServiceProvider:t},n){const r=l9(e,n),i=U8(e,n),o=t.getImmediate({optional:!0});if(o){const p=await o.getHeartbeatsHeader();p&&i.append("x-firebase-client",p)}const s={installation:{sdkVersion:$O,appId:e.appId}},u={method:"POST",headers:i,body:JSON.stringify(s)},f=await GO(()=>fetch(r,u));if(f.ok){const p=await f.json();return WO(p)}else throw await zO("Generate Auth Token",f)}function l9(e,{fid:t}){return`${UO(e)}/${t}/authTokens:generate`}/**
|
|
676
|
-
* @license
|
|
677
|
-
* Copyright 2019 Google LLC
|
|
678
|
-
*
|
|
679
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
680
|
-
* you may not use this file except in compliance with the License.
|
|
681
|
-
* You may obtain a copy of the License at
|
|
682
|
-
*
|
|
683
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
684
|
-
*
|
|
685
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
686
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
687
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
688
|
-
* See the License for the specific language governing permissions and
|
|
689
|
-
* limitations under the License.
|
|
690
|
-
*/async function Zy(e,t=!1){let n;const r=await tg(e.appConfig,o=>{if(!e_(o))throw Ec.create("not-registered");const s=o.authToken;if(!t&&f9(s))return o;if(s.requestStatus===1)return n=u9(e,t),o;{if(!navigator.onLine)throw Ec.create("app-offline");const u=h9(o);return n=c9(e,u),u}});return n?await n:r.authToken}async function u9(e,t){let n=await y1(e.appConfig);for(;n.authToken.requestStatus===1;)await qO(100),n=await y1(e.appConfig);const r=n.authToken;return r.requestStatus===0?Zy(e,t):r}function y1(e){return tg(e,t=>{if(!e_(t))throw Ec.create("not-registered");const n=t.authToken;return p9(n)?Object.assign(Object.assign({},t),{authToken:{requestStatus:0}}):t})}async function c9(e,t){try{const n=await s9(e,t),r=Object.assign(Object.assign({},t),{authToken:n});return await Sp(e.appConfig,r),n}catch(n){if(HO(n)&&(n.customData.serverCode===401||n.customData.serverCode===404))await JO(e.appConfig);else{const r=Object.assign(Object.assign({},t),{authToken:{requestStatus:0}});await Sp(e.appConfig,r)}throw n}}function e_(e){return e!==void 0&&e.registrationStatus===2}function f9(e){return e.requestStatus===2&&!d9(e)}function d9(e){const t=Date.now();return t<e.creationTime||e.creationTime+e.expiresIn<t+B8}function h9(e){const t={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},e),{authToken:t})}function p9(e){return e.requestStatus===1&&e.requestTime+BO<Date.now()}/**
|
|
691
|
-
* @license
|
|
692
|
-
* Copyright 2019 Google LLC
|
|
693
|
-
*
|
|
694
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
695
|
-
* you may not use this file except in compliance with the License.
|
|
696
|
-
* You may obtain a copy of the License at
|
|
697
|
-
*
|
|
698
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
699
|
-
*
|
|
700
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
701
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
702
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
703
|
-
* See the License for the specific language governing permissions and
|
|
704
|
-
* limitations under the License.
|
|
705
|
-
*/async function g9(e){const t=e,{installationEntry:n,registrationPromise:r}=await Ky(t);return r?r.catch(console.error):Zy(t).catch(console.error),n.fid}/**
|
|
706
|
-
* @license
|
|
707
|
-
* Copyright 2019 Google LLC
|
|
708
|
-
*
|
|
709
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
710
|
-
* you may not use this file except in compliance with the License.
|
|
711
|
-
* You may obtain a copy of the License at
|
|
712
|
-
*
|
|
713
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
714
|
-
*
|
|
715
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
716
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
717
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
718
|
-
* See the License for the specific language governing permissions and
|
|
719
|
-
* limitations under the License.
|
|
720
|
-
*/async function v9(e,t=!1){const n=e;return await m9(n),(await Zy(n,t)).token}async function m9(e){const{registrationPromise:t}=await Ky(e);t&&await t}/**
|
|
721
|
-
* @license
|
|
722
|
-
* Copyright 2019 Google LLC
|
|
723
|
-
*
|
|
724
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
725
|
-
* you may not use this file except in compliance with the License.
|
|
726
|
-
* You may obtain a copy of the License at
|
|
727
|
-
*
|
|
728
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
729
|
-
*
|
|
730
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
731
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
732
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
733
|
-
* See the License for the specific language governing permissions and
|
|
734
|
-
* limitations under the License.
|
|
735
|
-
*/function y9(e){if(!e||!e.options)throw kv("App Configuration");if(!e.name)throw kv("App Name");const t=["projectId","apiKey","appId"];for(const n of t)if(!e.options[n])throw kv(n);return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}function kv(e){return Ec.create("missing-app-config-values",{valueName:e})}/**
|
|
736
|
-
* @license
|
|
737
|
-
* Copyright 2020 Google LLC
|
|
738
|
-
*
|
|
739
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
740
|
-
* you may not use this file except in compliance with the License.
|
|
741
|
-
* You may obtain a copy of the License at
|
|
742
|
-
*
|
|
743
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
744
|
-
*
|
|
745
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
746
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
747
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
748
|
-
* See the License for the specific language governing permissions and
|
|
749
|
-
* limitations under the License.
|
|
750
|
-
*/const t_="installations",b9="installations-internal",w9=e=>{const t=e.getProvider("app").getImmediate(),n=y9(t),r=Gy(t,"heartbeat");return{app:t,appConfig:n,heartbeatServiceProvider:r,_delete:()=>Promise.resolve()}},x9=e=>{const t=e.getProvider("app").getImmediate(),n=Gy(t,t_).getImmediate();return{getId:()=>g9(n),getToken:i=>v9(n,i)}};function S9(){Cc(new Cu(t_,w9,"PUBLIC")),Cc(new Cu(b9,x9,"PRIVATE"))}S9();bu(jO,qy);bu(jO,qy,"esm2017");/**
|
|
751
|
-
* @license
|
|
752
|
-
* Copyright 2019 Google LLC
|
|
753
|
-
*
|
|
754
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
755
|
-
* you may not use this file except in compliance with the License.
|
|
756
|
-
* You may obtain a copy of the License at
|
|
757
|
-
*
|
|
758
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
759
|
-
*
|
|
760
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
761
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
762
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
763
|
-
* See the License for the specific language governing permissions and
|
|
764
|
-
* limitations under the License.
|
|
765
|
-
*/const T9="/firebase-messaging-sw.js",C9="/firebase-cloud-messaging-push-scope",n_="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",E9="https://fcmregistrations.googleapis.com/v1",r_="google.c.a.c_id",k9="google.c.a.c_l",O9="google.c.a.ts",_9="google.c.a.e";var b1;(function(e){e[e.DATA_MESSAGE=1]="DATA_MESSAGE",e[e.DISPLAY_NOTIFICATION=3]="DISPLAY_NOTIFICATION"})(b1||(b1={}));/**
|
|
766
|
-
* @license
|
|
767
|
-
* Copyright 2018 Google LLC
|
|
768
|
-
*
|
|
769
|
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
|
|
770
|
-
* in compliance with the License. You may obtain a copy of the License at
|
|
771
|
-
*
|
|
772
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
773
|
-
*
|
|
774
|
-
* Unless required by applicable law or agreed to in writing, software distributed under the License
|
|
775
|
-
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
|
776
|
-
* or implied. See the License for the specific language governing permissions and limitations under
|
|
777
|
-
* the License.
|
|
778
|
-
*/var Fd;(function(e){e.PUSH_RECEIVED="push-received",e.NOTIFICATION_CLICKED="notification-clicked"})(Fd||(Fd={}));/**
|
|
779
|
-
* @license
|
|
780
|
-
* Copyright 2017 Google LLC
|
|
781
|
-
*
|
|
782
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
783
|
-
* you may not use this file except in compliance with the License.
|
|
784
|
-
* You may obtain a copy of the License at
|
|
785
|
-
*
|
|
786
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
787
|
-
*
|
|
788
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
789
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
790
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
791
|
-
* See the License for the specific language governing permissions and
|
|
792
|
-
* limitations under the License.
|
|
793
|
-
*/function ml(e){const t=new Uint8Array(e);return btoa(String.fromCharCode(...t)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function D9(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}/**
|
|
794
|
-
* @license
|
|
795
|
-
* Copyright 2019 Google LLC
|
|
796
|
-
*
|
|
797
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
798
|
-
* you may not use this file except in compliance with the License.
|
|
799
|
-
* You may obtain a copy of the License at
|
|
800
|
-
*
|
|
801
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
802
|
-
*
|
|
803
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
804
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
805
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
806
|
-
* See the License for the specific language governing permissions and
|
|
807
|
-
* limitations under the License.
|
|
808
|
-
*/const Ov="fcm_token_details_db",P9=5,w1="fcm_token_object_Store";async function R9(e){if("databases"in indexedDB&&!(await indexedDB.databases()).map(o=>o.name).includes(Ov))return null;let t=null;return(await Qp(Ov,P9,{upgrade:async(r,i,o,s)=>{var u;if(i<2||!r.objectStoreNames.contains(w1))return;const f=s.objectStore(w1),p=await f.index("fcmSenderId").get(e);if(await f.clear(),!!p){if(i===2){const y=p;if(!y.auth||!y.p256dh||!y.endpoint)return;t={token:y.fcmToken,createTime:(u=y.createTime)!==null&&u!==void 0?u:Date.now(),subscriptionOptions:{auth:y.auth,p256dh:y.p256dh,endpoint:y.endpoint,swScope:y.swScope,vapidKey:typeof y.vapidKey=="string"?y.vapidKey:ml(y.vapidKey)}}}else if(i===3){const y=p;t={token:y.fcmToken,createTime:y.createTime,subscriptionOptions:{auth:ml(y.auth),p256dh:ml(y.p256dh),endpoint:y.endpoint,swScope:y.swScope,vapidKey:ml(y.vapidKey)}}}else if(i===4){const y=p;t={token:y.fcmToken,createTime:y.createTime,subscriptionOptions:{auth:ml(y.auth),p256dh:ml(y.p256dh),endpoint:y.endpoint,swScope:y.swScope,vapidKey:ml(y.vapidKey)}}}}}})).close(),await Sv(Ov),await Sv("fcm_vapid_details_db"),await Sv("undefined"),I9(t)?t:null}function I9(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}/**
|
|
809
|
-
* @license
|
|
810
|
-
* Copyright 2019 Google LLC
|
|
811
|
-
*
|
|
812
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
813
|
-
* you may not use this file except in compliance with the License.
|
|
814
|
-
* You may obtain a copy of the License at
|
|
815
|
-
*
|
|
816
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
817
|
-
*
|
|
818
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
819
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
820
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
821
|
-
* See the License for the specific language governing permissions and
|
|
822
|
-
* limitations under the License.
|
|
823
|
-
*/const A9="firebase-messaging-database",M9=1,Nd="firebase-messaging-store";let _v=null;function i_(){return _v||(_v=Qp(A9,M9,{upgrade:(e,t)=>{switch(t){case 0:e.createObjectStore(Nd)}}})),_v}async function L9(e){const t=o_(e),r=await(await i_()).transaction(Nd).objectStore(Nd).get(t);if(r)return r;{const i=await R9(e.appConfig.senderId);if(i)return await Jy(e,i),i}}async function Jy(e,t){const n=o_(e),i=(await i_()).transaction(Nd,"readwrite");return await i.objectStore(Nd).put(t,n),await i.done,t}function o_({appConfig:e}){return e.appId}/**
|
|
824
|
-
* @license
|
|
825
|
-
* Copyright 2017 Google LLC
|
|
826
|
-
*
|
|
827
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
828
|
-
* you may not use this file except in compliance with the License.
|
|
829
|
-
* You may obtain a copy of the License at
|
|
830
|
-
*
|
|
831
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
832
|
-
*
|
|
833
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
834
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
835
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
836
|
-
* See the License for the specific language governing permissions and
|
|
837
|
-
* limitations under the License.
|
|
838
|
-
*/const F9={"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"only-available-in-window":"This method is available in a Window context.","only-available-in-sw":"This method is available in a service worker context.","permission-default":"The notification permission was not granted and dismissed instead.","permission-blocked":"The notification permission was not granted and blocked instead.","unsupported-browser":"This browser doesn't support the API's required to use the Firebase SDK.","indexed-db-unsupported":"This browser doesn't support indexedDb.open() (ex. Safari iFrame, Firefox Private Browsing, etc)","failed-service-worker-registration":"We are unable to register the default service worker. {$browserErrorMessage}","token-subscribe-failed":"A problem occurred while subscribing the user to FCM: {$errorInfo}","token-subscribe-no-token":"FCM returned no token when subscribing the user to push.","token-unsubscribe-failed":"A problem occurred while unsubscribing the user from FCM: {$errorInfo}","token-update-failed":"A problem occurred while updating the user from FCM: {$errorInfo}","token-update-no-token":"FCM returned no token when updating the user to push.","use-sw-after-get-token":"The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.","invalid-sw-registration":"The input to useServiceWorker() must be a ServiceWorkerRegistration.","invalid-bg-handler":"The input to setBackgroundMessageHandler() must be a function.","invalid-vapid-key":"The public VAPID key must be a string.","use-vapid-key-after-get-token":"The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used."},Ni=new Jp("messaging","Messaging",F9);/**
|
|
839
|
-
* @license
|
|
840
|
-
* Copyright 2019 Google LLC
|
|
841
|
-
*
|
|
842
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
843
|
-
* you may not use this file except in compliance with the License.
|
|
844
|
-
* You may obtain a copy of the License at
|
|
845
|
-
*
|
|
846
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
847
|
-
*
|
|
848
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
849
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
850
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
851
|
-
* See the License for the specific language governing permissions and
|
|
852
|
-
* limitations under the License.
|
|
853
|
-
*/async function N9(e,t){const n=await eb(e),r=a_(t),i={method:"POST",headers:n,body:JSON.stringify(r)};let o;try{o=await(await fetch(Qy(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 j9(e,t){const n=await eb(e),r=a_(t.subscriptionOptions),i={method:"PATCH",headers:n,body:JSON.stringify(r)};let o;try{o=await(await fetch(`${Qy(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 B9(e,t){const r={method:"DELETE",headers:await eb(e)};try{const o=await(await fetch(`${Qy(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 Qy({projectId:e}){return`${E9}/projects/${e}/registrations`}async function eb({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 a_({p256dh:e,auth:t,endpoint:n,vapidKey:r}){const i={web:{endpoint:n,auth:t,p256dh:e}};return r!==n_&&(i.web.applicationPubKey=r),i}/**
|
|
854
|
-
* @license
|
|
855
|
-
* Copyright 2019 Google LLC
|
|
856
|
-
*
|
|
857
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
858
|
-
* you may not use this file except in compliance with the License.
|
|
859
|
-
* You may obtain a copy of the License at
|
|
860
|
-
*
|
|
861
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
862
|
-
*
|
|
863
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
864
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
865
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
866
|
-
* See the License for the specific language governing permissions and
|
|
867
|
-
* limitations under the License.
|
|
868
|
-
*/const $9=7*24*60*60*1e3;async function V9(e){const t=await U9(e.swRegistration,e.vapidKey),n={vapidKey:e.vapidKey,swScope:e.swRegistration.scope,endpoint:t.endpoint,auth:ml(t.getKey("auth")),p256dh:ml(t.getKey("p256dh"))},r=await L9(e.firebaseDependencies);if(r){if(W9(r.subscriptionOptions,n))return Date.now()>=r.createTime+$9?H9(e,{token:r.token,createTime:Date.now(),subscriptionOptions:n}):r.token;try{await B9(e.firebaseDependencies,r.token)}catch(i){console.warn(i)}return x1(e.firebaseDependencies,n)}else return x1(e.firebaseDependencies,n)}async function H9(e,t){try{const n=await j9(e.firebaseDependencies,t),r=Object.assign(Object.assign({},t),{token:n,createTime:Date.now()});return await Jy(e.firebaseDependencies,r),n}catch(n){throw n}}async function x1(e,t){const r={token:await N9(e,t),createTime:Date.now(),subscriptionOptions:t};return await Jy(e,r),r.token}async function U9(e,t){const n=await e.pushManager.getSubscription();return n||e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:D9(t)})}function W9(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}/**
|
|
869
|
-
* @license
|
|
870
|
-
* Copyright 2020 Google LLC
|
|
871
|
-
*
|
|
872
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
873
|
-
* you may not use this file except in compliance with the License.
|
|
874
|
-
* You may obtain a copy of the License at
|
|
875
|
-
*
|
|
876
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
877
|
-
*
|
|
878
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
879
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
880
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
881
|
-
* See the License for the specific language governing permissions and
|
|
882
|
-
* limitations under the License.
|
|
883
|
-
*/function S1(e){const t={from:e.from,collapseKey:e.collapse_key,messageId:e.fcmMessageId};return z9(t,e),Y9(t,e),G9(t,e),t}function z9(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 Y9(e,t){t.data&&(e.data=t.data)}function G9(e,t){var n,r,i,o,s;if(!t.fcmOptions&&!(!((n=t.notification)===null||n===void 0)&&n.click_action))return;e.fcmOptions={};const u=(i=(r=t.fcmOptions)===null||r===void 0?void 0:r.link)!==null&&i!==void 0?i:(o=t.notification)===null||o===void 0?void 0:o.click_action;u&&(e.fcmOptions.link=u);const f=(s=t.fcmOptions)===null||s===void 0?void 0:s.analytics_label;f&&(e.fcmOptions.analyticsLabel=f)}/**
|
|
884
|
-
* @license
|
|
885
|
-
* Copyright 2019 Google LLC
|
|
886
|
-
*
|
|
887
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
888
|
-
* you may not use this file except in compliance with the License.
|
|
889
|
-
* You may obtain a copy of the License at
|
|
890
|
-
*
|
|
891
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
892
|
-
*
|
|
893
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
894
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
895
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
896
|
-
* See the License for the specific language governing permissions and
|
|
897
|
-
* limitations under the License.
|
|
898
|
-
*/function q9(e){return typeof e=="object"&&!!e&&r_ in e}/**
|
|
899
|
-
* @license
|
|
900
|
-
* Copyright 2019 Google LLC
|
|
901
|
-
*
|
|
902
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
903
|
-
* you may not use this file except in compliance with the License.
|
|
904
|
-
* You may obtain a copy of the License at
|
|
905
|
-
*
|
|
906
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
907
|
-
*
|
|
908
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
909
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
910
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
911
|
-
* See the License for the specific language governing permissions and
|
|
912
|
-
* limitations under the License.
|
|
913
|
-
*/function X9(e){if(!e||!e.options)throw Dv("App Configuration Object");if(!e.name)throw Dv("App Name");const t=["projectId","apiKey","appId","messagingSenderId"],{options:n}=e;for(const r of t)if(!n[r])throw Dv(r);return{appName:e.name,projectId:n.projectId,apiKey:n.apiKey,appId:n.appId,senderId:n.messagingSenderId}}function Dv(e){return Ni.create("missing-app-config-values",{valueName:e})}/**
|
|
914
|
-
* @license
|
|
915
|
-
* Copyright 2020 Google LLC
|
|
916
|
-
*
|
|
917
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
918
|
-
* you may not use this file except in compliance with the License.
|
|
919
|
-
* You may obtain a copy of the License at
|
|
920
|
-
*
|
|
921
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
922
|
-
*
|
|
923
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
924
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
925
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
926
|
-
* See the License for the specific language governing permissions and
|
|
927
|
-
* limitations under the License.
|
|
928
|
-
*/class K9{constructor(t,n,r){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroundMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;const i=X9(t);this.firebaseDependencies={app:t,appConfig:i,installations:n,analyticsProvider:r}}_delete(){return Promise.resolve()}}/**
|
|
929
|
-
* @license
|
|
930
|
-
* Copyright 2020 Google LLC
|
|
931
|
-
*
|
|
932
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
933
|
-
* you may not use this file except in compliance with the License.
|
|
934
|
-
* You may obtain a copy of the License at
|
|
935
|
-
*
|
|
936
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
937
|
-
*
|
|
938
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
939
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
940
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
941
|
-
* See the License for the specific language governing permissions and
|
|
942
|
-
* limitations under the License.
|
|
943
|
-
*/async function Z9(e){try{e.swRegistration=await navigator.serviceWorker.register(T9,{scope:C9}),e.swRegistration.update().catch(()=>{})}catch(t){throw Ni.create("failed-service-worker-registration",{browserErrorMessage:t==null?void 0:t.message})}}/**
|
|
944
|
-
* @license
|
|
945
|
-
* Copyright 2020 Google LLC
|
|
946
|
-
*
|
|
947
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
948
|
-
* you may not use this file except in compliance with the License.
|
|
949
|
-
* You may obtain a copy of the License at
|
|
950
|
-
*
|
|
951
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
952
|
-
*
|
|
953
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
954
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
955
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
956
|
-
* See the License for the specific language governing permissions and
|
|
957
|
-
* limitations under the License.
|
|
958
|
-
*/async function J9(e,t){if(!t&&!e.swRegistration&&await Z9(e),!(!t&&e.swRegistration)){if(!(t instanceof ServiceWorkerRegistration))throw Ni.create("invalid-sw-registration");e.swRegistration=t}}/**
|
|
959
|
-
* @license
|
|
960
|
-
* Copyright 2020 Google LLC
|
|
961
|
-
*
|
|
962
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
963
|
-
* you may not use this file except in compliance with the License.
|
|
964
|
-
* You may obtain a copy of the License at
|
|
965
|
-
*
|
|
966
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
967
|
-
*
|
|
968
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
969
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
970
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
971
|
-
* See the License for the specific language governing permissions and
|
|
972
|
-
* limitations under the License.
|
|
973
|
-
*/async function Q9(e,t){t?e.vapidKey=t:e.vapidKey||(e.vapidKey=n_)}/**
|
|
974
|
-
* @license
|
|
975
|
-
* Copyright 2020 Google LLC
|
|
976
|
-
*
|
|
977
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
978
|
-
* you may not use this file except in compliance with the License.
|
|
979
|
-
* You may obtain a copy of the License at
|
|
980
|
-
*
|
|
981
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
982
|
-
*
|
|
983
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
984
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
985
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
986
|
-
* See the License for the specific language governing permissions and
|
|
987
|
-
* limitations under the License.
|
|
988
|
-
*/async function s_(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 Q9(e,t==null?void 0:t.vapidKey),await J9(e,t==null?void 0:t.serviceWorkerRegistration),V9(e)}/**
|
|
989
|
-
* @license
|
|
990
|
-
* Copyright 2019 Google LLC
|
|
991
|
-
*
|
|
992
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
993
|
-
* you may not use this file except in compliance with the License.
|
|
994
|
-
* You may obtain a copy of the License at
|
|
995
|
-
*
|
|
996
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
997
|
-
*
|
|
998
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
999
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1000
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1001
|
-
* See the License for the specific language governing permissions and
|
|
1002
|
-
* limitations under the License.
|
|
1003
|
-
*/async function eY(e,t,n){const r=tY(t);(await e.firebaseDependencies.analyticsProvider.get()).logEvent(r,{message_id:n[r_],message_name:n[k9],message_time:n[O9],message_device_time:Math.floor(Date.now()/1e3)})}function tY(e){switch(e){case Fd.NOTIFICATION_CLICKED:return"notification_open";case Fd.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}/**
|
|
1004
|
-
* @license
|
|
1005
|
-
* Copyright 2017 Google LLC
|
|
1006
|
-
*
|
|
1007
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1008
|
-
* you may not use this file except in compliance with the License.
|
|
1009
|
-
* You may obtain a copy of the License at
|
|
1010
|
-
*
|
|
1011
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1012
|
-
*
|
|
1013
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1014
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1015
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1016
|
-
* See the License for the specific language governing permissions and
|
|
1017
|
-
* limitations under the License.
|
|
1018
|
-
*/async function nY(e,t){const n=t.data;if(!n.isFirebaseMessaging)return;e.onMessageHandler&&n.messageType===Fd.PUSH_RECEIVED&&(typeof e.onMessageHandler=="function"?e.onMessageHandler(S1(n)):e.onMessageHandler.next(S1(n)));const r=n.data;q9(r)&&r[_9]==="1"&&await eY(e,n.messageType,r)}const T1="@firebase/messaging",C1="0.12.12";/**
|
|
1019
|
-
* @license
|
|
1020
|
-
* Copyright 2020 Google LLC
|
|
1021
|
-
*
|
|
1022
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1023
|
-
* you may not use this file except in compliance with the License.
|
|
1024
|
-
* You may obtain a copy of the License at
|
|
1025
|
-
*
|
|
1026
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1027
|
-
*
|
|
1028
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1029
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1030
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1031
|
-
* See the License for the specific language governing permissions and
|
|
1032
|
-
* limitations under the License.
|
|
1033
|
-
*/const rY=e=>{const t=new K9(e.getProvider("app").getImmediate(),e.getProvider("installations-internal").getImmediate(),e.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",n=>nY(t,n)),t},iY=e=>{const t=e.getProvider("messaging").getImmediate();return{getToken:r=>s_(t,r)}};function oY(){Cc(new Cu("messaging",rY,"PUBLIC")),Cc(new Cu("messaging-internal",iY,"PRIVATE")),bu(T1,C1),bu(T1,C1,"esm2017")}/**
|
|
1034
|
-
* @license
|
|
1035
|
-
* Copyright 2020 Google LLC
|
|
1036
|
-
*
|
|
1037
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1038
|
-
* you may not use this file except in compliance with the License.
|
|
1039
|
-
* You may obtain a copy of the License at
|
|
1040
|
-
*
|
|
1041
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1042
|
-
*
|
|
1043
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1044
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1045
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1046
|
-
* See the License for the specific language governing permissions and
|
|
1047
|
-
* limitations under the License.
|
|
1048
|
-
*/async function aY(){try{await IO()}catch{return!1}return typeof window<"u"&&RO()&&E6()&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}/**
|
|
1049
|
-
* @license
|
|
1050
|
-
* Copyright 2020 Google LLC
|
|
1051
|
-
*
|
|
1052
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1053
|
-
* you may not use this file except in compliance with the License.
|
|
1054
|
-
* You may obtain a copy of the License at
|
|
1055
|
-
*
|
|
1056
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1057
|
-
*
|
|
1058
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1059
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1060
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1061
|
-
* See the License for the specific language governing permissions and
|
|
1062
|
-
* limitations under the License.
|
|
1063
|
-
*/function sY(e,t){if(!navigator)throw Ni.create("only-available-in-window");return e.onMessageHandler=t,()=>{e.onMessageHandler=null}}/**
|
|
1064
|
-
* @license
|
|
1065
|
-
* Copyright 2017 Google LLC
|
|
1066
|
-
*
|
|
1067
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1068
|
-
* you may not use this file except in compliance with the License.
|
|
1069
|
-
* You may obtain a copy of the License at
|
|
1070
|
-
*
|
|
1071
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1072
|
-
*
|
|
1073
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1074
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1075
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1076
|
-
* See the License for the specific language governing permissions and
|
|
1077
|
-
* limitations under the License.
|
|
1078
|
-
*/function lY(e=k8()){return aY().then(t=>{if(!t)throw Ni.create("unsupported-browser")},t=>{throw Ni.create("indexed-db-unsupported")}),Gy(zy(e),"messaging").getImmediate()}async function uY(e,t){return e=zy(e),s_(e,t)}function cY(e,t){return e=zy(e),sY(e,t)}oY();exports.AuthContext=Nm;exports.AuthProvider=jA;exports.CustomOpenList=N1;exports.CustomOpenListProvider=TA;exports.DateRangePicker=p6;exports.ERROR_MESSAGE=A1;exports.FavoriteMenu=H4;exports.GlobalMenu=n6;exports.IconComponent=dO;exports.InfiniteLoader=c6;exports.Language=Bm;exports.LogoutConfirmModal=E1;exports.PropTypes=Ea;exports.Q=f2;exports.SaasThemeProvider=LA;exports.StyleWrapper=$m;exports.TranslationProvider=zM;exports._=i6;exports._assertThisInitialized=wl;exports._extends=_f;exports._extends$1=H5;exports._inheritsLoose=sO;exports._objectWithoutPropertiesLoose=jm;exports.activeStyles=Hy;exports.axiosInstance=rs;exports.clsx=yl;exports.color=Wr;exports.commonjsGlobal=Ei;exports.createCustomTheme=V1;exports.getAugmentedNamespace=tM;exports.getMessagingInWindow=lY;exports.getToken=uY;exports.handleErrorAxios=F1;exports.initializeApp=LO;exports.lodashExports=CO;exports.login=M1;exports.logout=L1;exports.notify=m2;exports.objectWithoutPropertiesLoose=eM;exports.onMessage=cY;exports.pushError=Bd;exports.pushSuccess=Wm;exports.pushWarning=v2;exports.responseInterceptor=SA;exports.search=$A;exports.setFavicon=H1;exports.styles=r6;exports.translate=UM;exports.translationConfig=HM;exports.updateFavoriteItems=Wy;exports.useAuth=BA;exports.useCustomTranslation=VM;exports.useTheme=MA;exports.useTranslation=Z1;exports.useTranslation$1=WM;
|