@ukpc-lib/react 0.12.5-dev.0 → 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/BaseBreadcrumb/index.d.ts +17 -0
- package/dist/components/FavoriteMenu/components/MenuItem.d.ts +4 -1
- package/dist/components/index.cjs +17 -22
- package/dist/components/index.js +2084 -1836
- package/dist/components/main.d.ts +1 -0
- package/dist/index.esm2017-CgX2g4fr.cjs +1078 -0
- package/dist/{index.esm2017-9e03f5b5.js → index.esm2017-D8jHeHt_.js} +18638 -18529
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +1 -1
- package/package.json +7 -5
- package/web-components-bundle/access-denied/index.js +2 -2
- package/web-components-bundle/base-breadcrumbs/index.js +5 -0
- package/web-components-bundle/clsx-DB4S2d7J.js +22 -0
- package/web-components-bundle/favorite-menu/index.js +6 -9
- package/web-components-bundle/global-menu/index.js +5 -8
- package/web-components-bundle/global-topbar/index.js +8 -7
- package/web-components-bundle/has-permission/index.js +5 -9
- package/web-components-bundle/{index-c91ec106.js → index-B4uOLjGK.js} +361 -376
- package/web-components-bundle/{index-f530ed06.js → index-BSRZKjgR.js} +34340 -39104
- package/web-components-bundle/{index-51ba1ee1.js → index-BSe1av43.js} +3 -5
- package/web-components-bundle/index-BTy-Dpix.js +5413 -0
- package/web-components-bundle/page-not-found/index.js +3 -3
- package/web-components-bundle/react-to-web-component-CXwKHjZr.js +6388 -0
- package/web-components-bundle/react-toastify.esm-CrTD7cpE.js +320 -0
- package/web-components-bundle/setPrototypeOf-BVKdEITT.js +14 -0
- package/web-components-bundle/toast-config/index.js +2 -2
- package/web-components-bundle/toast-config-notification/index.js +3 -4
- package/dist/components/FavoriteMenu/data.json.d.ts +0 -2414
- package/dist/index.esm2017-3734a51e.cjs +0 -1101
- package/web-components-bundle/react-to-web-component-d5889290.js +0 -6388
- package/web-components-bundle/react-toastify.esm-d8df41b8.js +0 -339
|
@@ -0,0 +1,1078 @@
|
|
|
1
|
+
var CY=require("./index.css");const Fe=require("react/jsx-runtime"),q=require("react"),QI=require("axios"),eA=require("moment"),os=require("@mui/material"),Td=require("react-query");require("@r2wc/react-to-web-component");const kp=require("react-router-dom"),Vm=require("react-dom");function tA(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 nA(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=tA(q),rA=".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 j1({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 Fe.jsxs(Fe.Fragment,{children:[Fe.jsx("style",{type:"text/css",children:rA}),Fe.jsx("div",{onClick:r,className:"modal-overlay",id:"modal-wrapper",children:Fe.jsxs("div",{className:"modal-container",children:[Fe.jsx("h3",{className:"modal-title",children:"Log out"}),Fe.jsx("p",{className:"text-sm",children:"Are you sure want to log out?"}),Fe.jsxs("div",{className:"modal-footer",children:[Fe.jsx("button",{className:"modal-button cancel-btn",onClick:t,children:"Cancel"}),Fe.jsx("button",{onClick:n,className:"text-white confirm-btn modal-button",children:"Confirm"})]})]})})]})}const ii={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 iA(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 B1(e){var t=iA(e,"string");return qo(t)=="symbol"?t:t+""}function r0(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,B1(r.key),r)}}function Jo(e,t,n){return t&&r0(e.prototype,t),n&&r0(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function xl(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Kh(e,t){return Kh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Kh(e,t)}function Dp(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Kh(e,t)}function $d(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 xl(e)}function Vs(e){return Vs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Vs(e)}function Hs(e,t,n){return(t=B1(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $1(e){if(Array.isArray(e))return e}function oA(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function i0(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 V1(e,t){if(e){if(typeof e=="string")return i0(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)?i0(e,t):void 0}}function H1(){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 aA(e){return $1(e)||oA(e)||V1(e)||H1()}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 a0(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){Hs(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 sA={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)}},lA=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||sA,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,a0(a0({},{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}(),Ns=new lA,xu=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 c=[].concat(this.observers["*"]);c.forEach(function(f){f.apply(f,[n].concat(i))})}}}]),e}();function Kf(){var e,t,n=new Promise(function(r,i){e=r,t=i});return n.resolve=e,n.reject=t,n}function s0(e){return e==null?"":""+e}function uA(e,t,n){e.forEach(function(r){t[r]&&(n[r]=t[r])})}function Hm(e,t,n){function r(c){return c&&c.indexOf("###")>-1?c.replace(/###/g,"."):c}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 l0(e,t,n){var r=Hm(e,t,Object),i=r.obj,o=r.k;i[o]=n}function cA(e,t,n,r){var i=Hm(e,t,Object),o=i.obj,s=i.k;o[s]=o[s]||[],o[s].push(n)}function Zh(e,t){var n=Hm(e,t),r=n.obj,i=n.k;if(r)return r[i]}function fA(e,t,n){var r=Zh(e,n);return r!==void 0?r:Zh(t,n)}function U1(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]):U1(e[r],t[r],n):e[r]=t[r]);return e}function of(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var dA={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function hA(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return dA[t]}):e}var Op=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,pA=[" ",",","?","!",";"];function gA(e,t,n){t=t||"",n=n||"";var r=pA.filter(function(c){return t.indexOf(c)<0&&n.indexOf(c)<0});if(r.length===0)return!0;var i=new RegExp("(".concat(r.map(function(c){return c==="?"?"\\?":c}).join("|"),")")),o=!i.test(e);if(!o){var s=e.indexOf(n);s>0&&!i.test(e.substring(0,s))&&(o=!0)}return o}function Jh(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,c=r.slice(o,o+s).join(n),f=i[c];f===void 0&&r.length>o+s;)s++,c=r.slice(o,o+s).join(n),f=i[c];if(f===void 0)return;if(f===null)return null;if(t.endsWith(c)){if(typeof f=="string")return f;if(c&&typeof f[c]=="string")return f[c]}var p=r.slice(o+s).join(n);return p?Jh(f,p,n):void 0}i=i[r[o]]}return i}}function u0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ch(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?u0(Object(n),!0).forEach(function(r){Hs(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vA(e){var t=mA();return function(){var r=Vs(e),i;if(t){var o=Vs(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return $d(this,i)}}function mA(){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 yA=function(e){Dp(n,e);var t=vA(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),Op&&xu.call(xl(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 c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},f=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator,p=c.ignoreJSONStructure!==void 0?c.ignoreJSONStructure:this.options.ignoreJSONStructure,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=Zh(this.data,y);return g||!p||typeof s!="string"?g:Jh(this.data&&this.data[i]&&this.data[i][o],s,f)}},{key:"addResource",value:function(i,o,s,c){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("."),c=o,o=y[1]),this.addNamespaces(o),l0(this.data,y,c),f.silent||this.emit("added",i,o,s,c)}},{key:"addResources",value:function(i,o,s){var c=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});c.silent||this.emit("added",i,o,s)}},{key:"addResourceBundle",value:function(i,o,s,c,f){var p=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},y=[i,o];i.indexOf(".")>-1&&(y=i.split("."),c=s,s=o,o=y[1]),this.addNamespaces(o);var g=Zh(this.data,y)||{};c?U1(g,s,f):g=ch(ch({},g),s),l0(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"?ch(ch({},{}),this.getResource(i,o)):this.getResource(i,o)}},{key:"getDataByLanguage",value:function(i){return this.data[i]}},{key:"hasLanguageSomeTranslations",value:function(i){var o=this.getDataByLanguage(i),s=o&&Object.keys(o)||[];return!!s.find(function(c){return o[c]&&Object.keys(o[c]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(xu),W1={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,n,r,i,o){var s=this;return t.forEach(function(c){s.processors[c]&&(n=s.processors[c].process(n,r,i,o))}),n}};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 Mi(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){Hs(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 bA(e){var t=wA();return function(){var r=Vs(e),i;if(t){var o=Vs(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return $d(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}}var f0={},d0=function(e){Dp(n,e);var t=bA(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Zo(this,n),i=t.call(this),Op&&xu.call(xl(i)),uA(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,xl(i)),i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.logger=Ns.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 c=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&&!gA(i,s,c);if(p&&!y){var g=i.match(this.interpolator.nestingRegexp);if(g&&g.length>0)return{key:i,namespaces:f};var S=i.split(s);(s!==c||s===c&&this.options.ns.indexOf(S[0])>-1)&&(f=S.shift()),i=S.join(c)}return typeof f=="string"&&(f=[f]),{key:i,namespaces:f}}},{key:"translate",value:function(i,o,s){var c=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,S=y.namespaces,C=S[S.length-1],P=o.lng||this.language,A=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(P&&P.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:P,usedNS:C}:"".concat(C).concat(M).concat(g)}return f?{res:g,usedKey:g,exactUsedKey:g,usedLng:P,usedNS:C}:g}var R=this.resolve(i,o),V=R&&R.res,U=R&&R.usedKey||g,J=R&&R.exactUsedKey||g,K=Object.prototype.toString.apply(V),le=["[object Number]","[object Function]","[object RegExp]"],T=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,he=!this.i18nFormat||this.i18nFormat.handleAsObject,oe=typeof V!="string"&&typeof V!="boolean"&&typeof V!="number";if(he&&V&&oe&&le.indexOf(K)<0&&!(typeof T=="string"&&K==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var ze=this.options.returnedObjectHandler?this.options.returnedObjectHandler(U,V,Mi(Mi({},o),{},{ns:S})):"key '".concat(g," (").concat(this.language,")' returned an object instead of string.");return f?(R.res=ze,R):ze}if(p){var je=K==="[object Array]",Pe=je?[]:{},Be=je?J:U;for(var He in V)if(Object.prototype.hasOwnProperty.call(V,He)){var ce="".concat(Be).concat(p).concat(He);Pe[He]=this.translate(ce,Mi(Mi({},o),{joinArrays:!1,ns:S})),Pe[He]===ce&&(Pe[He]=V[He])}V=Pe}}else if(he&&typeof T=="string"&&K==="[object Array]")V=V.join(T),V&&(V=this.extendTranslation(V,i,o,s));else{var Se=!1,Ie=!1,Ge=o.count!==void 0&&typeof o.count!="string",tt=n.hasDefaultValue(o),we=Ge?this.pluralResolver.getSuffix(P,o.count,o):"",Ee=o["defaultValue".concat(we)]||o.defaultValue;!this.isValidLookup(V)&&tt&&(Se=!0,V=Ee),this.isValidLookup(V)||(Ie=!0,V=g);var Ue=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,$e=Ue&&Ie?void 0:V,ke=tt&&Ee!==V&&this.options.updateMissing;if(Ie||Se||ke){if(this.logger.log(ke?"updateKey":"missingKey",P,C,g,ke?Ee:V),p){var _e=this.resolve(g,Mi(Mi({},o),{},{keySeparator:!1}));_e&&_e.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 Ne=[],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++)Ne.push(rt[at]);else this.options.saveMissingTo==="all"?Ne=this.languageUtils.toResolveHierarchy(o.lng||this.language):Ne.push(o.lng||this.language);var ht=function(mt,et,At){var Lt=tt&&At!==V?At:$e;c.options.missingKeyHandler?c.options.missingKeyHandler(mt,C,et,Lt,ke,o):c.backendConnector&&c.backendConnector.saveMissing&&c.backendConnector.saveMissing(mt,C,et,Lt,ke,o),c.emit("missingKey",mt,C,et,V)};this.options.saveMissing&&(this.options.saveMissingPlurals&&Ge?Ne.forEach(function(lt){c.pluralResolver.getSuffixes(lt,o).forEach(function(mt){ht([lt],g+mt,o["defaultValue".concat(mt)]||Ee)})}):ht(Ne,g,Ee))}V=this.extendTranslation(V,i,o,R,s),Ie&&V===g&&this.options.appendNamespaceToMissingKey&&(V="".concat(C,":").concat(g)),(Ie||Se)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?V=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(C,":").concat(g):g,Se?V:void 0):V=this.options.parseMissingKeyHandler(V))}return f?(R.res=V,R):V}},{key:"extendTranslation",value:function(i,o,s,c,f){var p=this;if(this.i18nFormat&&this.i18nFormat.parse)i=this.i18nFormat.parse(i,Mi(Mi({},this.options.interpolation.defaultVariables),s),c.usedLng,c.usedNS,c.usedKey,{resolved:c});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 S=i.match(this.interpolator.nestingRegexp);g=S&&S.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 P=i.match(this.interpolator.nestingRegexp),A=P&&P.length;g<A&&(s.nest=!1)}!s.lng&&this.options.compatibilityAPI!=="v1"&&c&&c.res&&(s.lng=c.usedLng),s.nest!==!1&&(i=this.interpolator.nest(i,function(){for(var V=arguments.length,U=new Array(V),J=0;J<V;J++)U[J]=arguments[J];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,R=typeof M=="string"?[M]:M;return i!=null&&R&&R.length&&s.applyPostProcessor!==!1&&(i=W1.handle(R,i,o,this.options&&this.options.postProcessPassResolved?Mi({i18nResolved:c},s):s,this)),i}},{key:"resolve",value:function(i){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c,f,p,y,g;return typeof i=="string"&&(i=[i]),i.forEach(function(S){if(!o.isValidLookup(c)){var C=o.extractFromKey(S,s),P=C.key;f=P;var A=C.namespaces;o.options.fallbackNS&&(A=A.concat(o.options.fallbackNS));var M=s.count!==void 0&&typeof s.count!="string",R=M&&!s.ordinal&&s.count===0&&o.pluralResolver.shouldUseIntlApi(),V=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(J){o.isValidLookup(c)||(g=J,!f0["".concat(U[0],"-").concat(J)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(g)&&(f0["".concat(U[0],"-").concat(J)]=!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(K){if(!o.isValidLookup(c)){y=K;var le=[P];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(le,P,K,J,s);else{var T;M&&(T=o.pluralResolver.getSuffix(K,s.count,s));var he="".concat(o.options.pluralSeparator,"zero");if(M&&(le.push(P+T),R&&le.push(P+he)),V){var oe="".concat(P).concat(o.options.contextSeparator).concat(s.context);le.push(oe),M&&(le.push(oe+T),R&&le.push(oe+he))}}for(var ze;ze=le.pop();)o.isValidLookup(c)||(p=ze,c=o.getResource(K,J,ze,s))}}))})}}),{res:c,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 c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,o,s,c):this.resourceStore.getResource(i,o,s,c)}}],[{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}(xu);function _g(e){return e.charAt(0).toUpperCase()+e.slice(1)}var h0=function(){function e(t){Zo(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ns.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]=_g(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]=_g(i[1].toLowerCase())),r.indexOf(i[2].toLowerCase())>-1&&(i[2]=_g(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(c){if(c===s)return c;if(!(c.indexOf("-")<0&&s.indexOf("-")<0)&&c.indexOf(s)===0)return c})}}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}},{key:"getFallbackCodes",value:function(n,r){if(!n)return[];if(typeof n=="function"&&(n=n(r)),typeof n=="string"&&(n=[n]),Object.prototype.toString.apply(n)==="[object Array]")return n;if(!r)return n.default||[];var i=n[r];return i||(i=n[this.getScriptPartFromCode(r)]),i||(i=n[this.formatLanguageCode(r)]),i||(i=n[this.getLanguagePartFromCode(r)]),i||(i=n.default),i||[]}},{key:"toResolveHierarchy",value:function(n,r){var i=this,o=this.getFallbackCodes(r||this.options.fallbackLng||[],n),s=[],c=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"&&c(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&c(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&c(this.getLanguagePartFromCode(n))):typeof n=="string"&&c(this.formatLanguageCode(n)),o.forEach(function(f){s.indexOf(f)<0&&c(i.formatLanguageCode(f))}),s}}]),e}(),xA=[{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}],SA={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}},TA=["v1","v2","v3"],p0={zero:0,one:1,two:2,few:3,many:4,other:5};function CA(){var e={};return xA.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:SA[t.fc]}})}),e}var EA=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=Ns.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,c){return p0[s]-p0[c]}).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 c=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()):c():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?c():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}},{key:"shouldUseIntlApi",value:function(){return!TA.includes(this.options.compatibilityJSON)}}]),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 ts(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){Hs(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 v0(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=fA(e,t,n);return!o&&i&&typeof n=="string"&&(o=Jh(e,n,r),o===void 0&&(o=Jh(t,n,r))),o}var kA=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Zo(this,e),this.logger=Ns.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:hA,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?of(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?of(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?of(r.nestingPrefix):r.nestingPrefixEscaped||of("$t("),this.nestingSuffix=r.nestingSuffix?of(r.nestingSuffix):r.nestingSuffixEscaped||of(")"),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,c,f,p,y=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function g(M){return M.replace(/\$/g,"$$$$")}var S=function(R){if(R.indexOf(s.formatSeparator)<0){var V=v0(r,y,R,s.options.keySeparator,s.options.ignoreJSONStructure);return s.alwaysFormat?s.format(V,void 0,i,ts(ts(ts({},o),r),{},{interpolationkey:R})):V}var U=R.split(s.formatSeparator),J=U.shift().trim(),K=U.join(s.formatSeparator).trim();return s.format(v0(r,y,J,s.options.keySeparator,s.options.ignoreJSONStructure),K,i,ts(ts(ts({},o),r),{},{interpolationkey:J}))};this.resetRegExp();var C=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,P=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,A=[{regex:this.regexpUnescape,safeValue:function(R){return g(R)}},{regex:this.regexp,safeValue:function(R){return s.escapeValue?g(s.escape(R)):g(R)}}];return A.forEach(function(M){for(p=0;c=M.regex.exec(n);){var R=c[1].trim();if(f=S(R),f===void 0)if(typeof C=="function"){var V=C(n,c,o);f=typeof V=="string"?V:""}else if(o&&Object.prototype.hasOwnProperty.call(o,R))f="";else if(P){f=c[0];continue}else s.logger.warn("missed to pass in variable ".concat(R," for interpolating ").concat(n)),f="";else typeof f!="string"&&!s.useRawValueToEscape&&(f=s0(f));var U=M.safeValue(f);if(n=n.replace(c[0],U),P?(M.regex.lastIndex+=f.length,M.regex.lastIndex-=c[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,c,f;function p(C,P){var A=this.nestingOptionsSeparator;if(C.indexOf(A)<0)return C;var M=C.split(new RegExp("".concat(A,"[ ]*{"))),R="{".concat(M[1]);C=M[0],R=this.interpolate(R,f);var V=R.match(/'/g),U=R.match(/"/g);(V&&V.length%2===0&&!U||U.length%2!==0)&&(R=R.replace(/'/g,'"'));try{f=JSON.parse(R),P&&(f=ts(ts({},P),f))}catch(J){return this.logger.warn("failed parsing options string in nesting for key ".concat(C),J),"".concat(C).concat(A).concat(R)}return delete f.defaultValue,C}for(;s=this.nestingRegexp.exec(n);){var y=[];f=ts({},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 S=s[1].split(this.formatSeparator).map(function(C){return C.trim()});s[1]=S.shift(),y=S,g=!0}if(c=r(p.call(this,s[1].trim(),f),f),c&&s[0]===n&&typeof c!="string")return c;typeof c!="string"&&(c=s0(c)),c||(this.logger.warn("missed to resolve ".concat(s[1]," for nesting ").concat(n)),c=""),g&&(c=y.reduce(function(C,P){return i.format(C,P,o.lng,ts(ts({},o),{},{interpolationkey:s[1].trim()}))},c.trim())),n=n.replace(s[0],c),this.regexp.lastIndex=0}return n}}]),e}();function m0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function vl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?m0(Object(n),!0).forEach(function(r){Hs(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function DA(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 c=s.split(":"),f=aA(c),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 af(e){var t={};return function(r,i,o){var s=i+JSON.stringify(o),c=t[s];return c||(c=e(i,o),t[s]=c),c(r)}}var OA=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Zo(this,e),this.logger=Ns.create("formatter"),this.options=t,this.formats={number:af(function(n,r){var i=new Intl.NumberFormat(n,vl({},r));return function(o){return i.format(o)}}),currency:af(function(n,r){var i=new Intl.NumberFormat(n,vl(vl({},r),{},{style:"currency"}));return function(o){return i.format(o)}}),datetime:af(function(n,r){var i=new Intl.DateTimeFormat(n,vl({},r));return function(o){return i.format(o)}}),relativetime:af(function(n,r){var i=new Intl.RelativeTimeFormat(n,vl({},r));return function(o){return i.format(o,r.range||"day")}}),list:af(function(n,r){var i=new Intl.ListFormat(n,vl({},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()]=af(r)}},{key:"format",value:function(n,r,i){var o=this,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},c=r.split(this.formatSeparator),f=c.reduce(function(p,y){var g=DA(y),S=g.formatName,C=g.formatOptions;if(o.formats[S]){var P=p;try{var A=s&&s.formatParams&&s.formatParams[s.interpolationkey]||{},M=A.locale||A.lng||s.locale||s.lng||i;P=o.formats[S](p,M,vl(vl(vl({},C),s),A))}catch(R){o.logger.warn(R)}return P}else o.logger.warn("there was no format function for ".concat(S));return p},n);return f}}]),e}();function y0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function b0(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){Hs(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 _A(e){var t=PA();return function(){var r=Vs(e),i;if(t){var o=Vs(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return $d(this,i)}}function PA(){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 RA(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}var IA=function(e){Dp(n,e);var t=_A(n);function n(r,i,o){var s,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Zo(this,n),s=t.call(this),Op&&xu.call(xl(s)),s.backend=r,s.store=i,s.services=o,s.languageUtils=o.languageUtils,s.options=c,s.logger=Ns.create("backendConnector"),s.waitingReads=[],s.maxParallelReads=c.maxParallelReads||10,s.readingCalls=0,s.maxRetries=c.maxRetries>=0?c.maxRetries:5,s.retryTimeout=c.retryTimeout>=1?c.retryTimeout:350,s.state={},s.queue=[],s.backend&&s.backend.init&&s.backend.init(o,c.backend,c),s}return Jo(n,[{key:"queueLoad",value:function(i,o,s,c){var f=this,p={},y={},g={},S={};return i.forEach(function(C){var P=!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,P=!1,y[M]===void 0&&(y[M]=!0),p[M]===void 0&&(p[M]=!0),S[A]===void 0&&(S[A]=!0)))}),P||(g[C]=!0)}),(Object.keys(p).length||Object.keys(y).length)&&this.queue.push({pending:y,pendingCount:Object.keys(y).length,loaded:{},errors:[],callback:c}),{toLoad:Object.keys(p),pending:Object.keys(y),toLoadLanguages:Object.keys(g),toLoadNamespaces:Object.keys(S)}}},{key:"loaded",value:function(i,o,s){var c=i.split("|"),f=c[0],p=c[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){cA(g.loaded,[f],p),RA(g,i),o&&g.errors.push(o),g.pendingCount===0&&!g.done&&(Object.keys(g.loaded).forEach(function(S){y[S]||(y[S]={});var C=g.loaded[S];C.length&&C.forEach(function(P){y[S][P]===void 0&&(y[S][P]=!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 c=this,f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,p=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,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(c.readingCalls--,c.waitingReads.length>0){var R=c.waitingReads.shift();c.read(R.lng,R.ns,R.fcName,R.tried,R.wait,R.callback)}if(A&&M&&f<c.maxRetries){setTimeout(function(){c.read.call(c,i,o,s,f+1,p*2,y)},p);return}y(A,M)},S=this.backend[s].bind(this.backend);if(S.length===2){try{var C=S(i,o);C&&typeof C.then=="function"?C.then(function(P){return g(null,P)}).catch(g):g(null,C)}catch(P){g(P)}return}return S(i,o,g)}},{key:"prepareLoading",value:function(i,o){var s=this,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},f=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),f&&f();typeof i=="string"&&(i=this.languageUtils.toResolveHierarchy(i)),typeof o=="string"&&(o=[o]);var p=this.queueLoad(i,o,c,f);if(!p.toLoad.length)return p.pending.length||f(),null;p.toLoad.forEach(function(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]:"",c=i.split("|"),f=c[0],p=c[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,c,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=b0(b0({},p),{},{isUpdate:f}),S=this.backend.create.bind(this.backend);if(S.length<6)try{var C;S.length===5?C=S(i,o,s,c,g):C=S(i,o,s,c),C&&typeof C.then=="function"?C.then(function(P){return y(null,P)}).catch(y):y(null,C)}catch(P){y(P)}else S(i,o,s,c,y,g)}!i||!i[0]||this.store.addResource(i[0],o,s,c)}}}]),n}(xu);function w0(){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 x0(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 S0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Is(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?S0(Object(n),!0).forEach(function(r){Hs(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function AA(e){var t=MA();return function(){var r=Vs(e),i;if(t){var o=Vs(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return $d(this,i)}}function MA(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function fh(){}function LA(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(n){typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}var Qh=function(e){Dp(n,e);var t=AA(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),Op&&xu.call(xl(r)),r.options=x0(i),r.services={},r.logger=Ns,r.modules={external:[]},LA(xl(r)),o&&!r.isInitialized&&!i.isClone){if(!r.options.initImmediate)return r.init(i,o),$d(r,xl(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 c=w0();this.options=Is(Is(Is({},c),this.options),x0(o)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=Is(Is({},c.interpolation),this.options.interpolation)),o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);function f(R){return R?typeof R=="function"?new R:R:null}if(!this.options.isClone){this.modules.logger?Ns.init(f(this.modules.logger),this.options):Ns.init(null,this.options);var p;this.modules.formatter?p=this.modules.formatter:typeof Intl<"u"&&(p=OA);var y=new h0(this.options);this.store=new yA(this.options.resources,this.options);var g=this.services;g.logger=Ns,g.resourceStore=this.store,g.languageUtils=y,g.pluralResolver=new EA(y,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),p&&(!this.options.interpolation.format||this.options.interpolation.format===c.interpolation.format)&&(g.formatter=f(p),g.formatter.init(g,this.options),this.options.interpolation.format=g.formatter.format.bind(g.formatter)),g.interpolator=new kA(this.options),g.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},g.backendConnector=new IA(f(this.modules.backend),g.resourceStore,g,this.options),g.backendConnector.on("*",function(R){for(var V=arguments.length,U=new Array(V>1?V-1:0),J=1;J<V;J++)U[J-1]=arguments[J];i.emit.apply(i,[R].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 d0(this.services,this.options),this.translator.on("*",function(R){for(var V=arguments.length,U=new Array(V>1?V-1:0),J=1;J<V;J++)U[J-1]=arguments[J];i.emit.apply(i,[R].concat(U))}),this.modules.external.forEach(function(R){R.init&&R.init(i)})}if(this.format=this.options.interpolation.format,s||(s=fh),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var S=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);S.length>0&&S[0]!=="dev"&&(this.options.lng=S[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var C=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];C.forEach(function(R){i[R]=function(){var V;return(V=i.store)[R].apply(V,arguments)}});var P=["addResource","addResources","addResourceBundle","removeResourceBundle"];P.forEach(function(R){i[R]=function(){var V;return(V=i.store)[R].apply(V,arguments),i}});var A=Kf(),M=function(){var V=function(J,K){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(K),s(J,K)};if(i.languages&&i.options.compatibilityAPI!=="v1"&&!i.isInitialized)return V(null,i.t.bind(i));i.changeLanguage(i.options.lng,V)};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]:fh,c=s,f=typeof i=="string"?i:this.language;if(typeof i=="function"&&(c=i),!this.options.resources||this.options.partialBundledLanguages){if(f&&f.toLowerCase()==="cimode")return c();var p=[],y=function(C){if(C){var P=o.services.languageUtils.toResolveHierarchy(C);P.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(S){return y(S)})}this.options.preload&&this.options.preload.forEach(function(S){return y(S)}),this.services.backendConnector.load(p,this.options.ns,function(S){!S&&!o.resolvedLanguage&&o.language&&o.setResolvedLanguage(o.language),c(S)})}else c(null)}},{key:"reloadResources",value:function(i,o,s){var c=Kf();return i||(i=this.languages),o||(o=this.options.ns),s||(s=fh),this.services.backendConnector.reload(i,o,function(f){c.resolve(),s(f)}),c}},{key:"use",value:function(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&W1.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 c=Kf();this.emit("languageChanging",i);var f=function(S){s.language=S,s.languages=s.services.languageUtils.toResolveHierarchy(S),s.resolvedLanguage=void 0,s.setResolvedLanguage(S)},p=function(S,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,c.resolve(function(){return s.t.apply(s,arguments)}),o&&o(S,function(){return s.t.apply(s,arguments)})},y=function(S){!i&&!S&&s.services.languageDetector&&(S=[]);var C=typeof S=="string"?S:s.services.languageUtils.getBestMatchFromCodes(S);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(P){p(P,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),c}},{key:"getFixedT",value:function(i,o,s){var c=this,f=function p(y,g){var S;if(qo(g)!=="object"){for(var C=arguments.length,P=new Array(C>2?C-2:0),A=2;A<C;A++)P[A-2]=arguments[A];S=c.options.overloadTranslationOptionHandler([y,g].concat(P))}else S=Is({},g);S.lng=S.lng||p.lng,S.lngs=S.lngs||p.lngs,S.ns=S.ns||p.ns,S.keyPrefix=S.keyPrefix||s||p.keyPrefix;var M=c.options.keySeparator||".",R;return S.keyPrefix&&Array.isArray(y)?R=y.map(function(V){return"".concat(S.keyPrefix).concat(M).concat(V)}):R=S.keyPrefix?"".concat(S.keyPrefix).concat(M).concat(y):y,c.t(R,S)};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 c=s.lng||this.resolvedLanguage||this.languages[0],f=this.options?this.options.fallbackLng:!1,p=this.languages[this.languages.length-1];if(c.toLowerCase()==="cimode")return!0;var y=function(C,P){var A=o.services.backendConnector.state["".concat(C,"|").concat(P)];return A===-1||A===2};if(s.precheck){var g=s.precheck(this,y);if(g!==void 0)return g}return!!(this.hasResourceBundle(c,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||y(c,i)&&(!f||y(p,i)))}},{key:"loadNamespaces",value:function(i,o){var s=this,c=Kf();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){c.resolve(),o&&o(f)}),c):(o&&o(),Promise.resolve())}},{key:"loadLanguages",value:function(i,o){var s=Kf();typeof i=="string"&&(i=[i]);var c=this.options.preload||[],f=i.filter(function(p){return c.indexOf(p)<0});return f.length?(this.options.preload=c.concat(f),this.loadResources(function(p){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 h0(w0());return o.indexOf(s.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:fh,c=Is(Is(Is({},this.options),o),{isClone:!0}),f=new n(c);(o.debug!==void 0||o.prefix!==void 0)&&(f.logger=f.logger.clone(o));var p=["store","services","language"];return p.forEach(function(y){f[y]=i[y]}),f.services=Is({},this.services),f.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},f.translator=new d0(f.services,f.options),f.translator.on("*",function(y){for(var g=arguments.length,S=new Array(g>1?g-1:0),C=1;C<g;C++)S[C-1]=arguments[C];f.emit.apply(f,[y].concat(S))}),f.init(c,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}(xu);Hs(Qh,"createInstance",function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new Qh(e,t)});var oi=Qh.createInstance();oi.createInstance=Qh.createInstance;oi.createInstance;oi.dir;oi.init;oi.loadResources;oi.reloadResources;oi.use;oi.changeLanguage;oi.getFixedT;var z1=oi.t;oi.exists;oi.setDefaultNamespace;oi.hasLoadedNamespace;oi.loadNamespaces;oi.loadLanguages;const Y1={TOKEN_MALFORMED:"token_malformed",TOKEN_EXPIRED:"token_expired"},G1=e=>{window.location.href=`${e}/authentication/login`},q1=e=>{window.location.href=`${e}/authentication/logout`},Da=QI.create({withCredentials:!0});let Pg=!1,Mv=[];const T0=e=>{Mv.forEach(t=>{e?t.reject(e):t.resolve()}),Mv=[]};function X1(e,t){var o,s,c,f,p,y,g,S,C;const n=e.config,r=((s=(o=e.response)==null?void 0:o.data)==null?void 0:s.errorMessage)||((f=(c=e.response)==null?void 0:c.data)==null?void 0:f.message),i=r===Y1.TOKEN_EXPIRED;return((p=e.response)==null?void 0:p.status)===401&&i&&!n._retry?Pg?new Promise((P,A)=>{Mv.push({resolve:P,reject:A})}).then(()=>Da(n)).catch(P=>Promise.reject(P)):(n._retry=!0,Pg=!0,Da.post("/authentication/api/v1/auth/refresh-token",void 0,{baseURL:window.env.AUTHEN_DOMAIN}).then(()=>(T0(null),Da(n))).catch(P=>(T0(P),Promise.reject(P))).finally(()=>{Pg=!1})):((y=e.response)==null?void 0:y.status)===401&&!i?G1(window.env.AUTHEN_DOMAIN):(((g=e.response)==null?void 0:g.status)===403?(S=t==null?void 0:t.handle403)==null||S.call(t,e):(!(t!=null&&t.disabledPushNotify)&&Vd(z1(`${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 FA=Da.interceptors.response.use(e=>e,async e=>X1(e)),K1=q.createContext({}),NA=({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 Fe.jsx(K1.Provider,{value:{isOpen:t,toggleOpen:o,setShowModalFalse:s,notidata:r,setNotiData:i},children:e})};var Z1={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},C0=q.createContext&&q.createContext(Z1),jA=["attr","size","title"];function BA(e,t){if(e==null)return{};var n=$A(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 $A(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 ep(){return ep=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},ep.apply(this,arguments)}function E0(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 tp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?E0(Object(n),!0).forEach(function(r){VA(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function VA(e,t,n){return t=HA(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HA(e){var t=UA(e,"string");return typeof t=="symbol"?t:t+""}function UA(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 J1(e){return e&&e.map((t,n)=>q.createElement(t.tag,tp({key:n},t.attr),J1(t.child)))}function _p(e){return t=>q.createElement(WA,ep({attr:tp({},e.attr)},t),J1(e.child))}function WA(e){var t=n=>{var{attr:r,size:i,title:o}=e,s=BA(e,jA),c=i||n.size||"1em",f;return n.className&&(f=n.className),e.className&&(f=(f?f+" ":"")+e.className),q.createElement("svg",ep({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,s,{className:f,style:tp(tp({color:e.color||n.color},n.style),e.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),o&&q.createElement("title",null,o),e.children)};return C0!==void 0?q.createElement(C0.Consumer,null,n=>t(n)):t(Z1)}function zA(e){return _p({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 YA(e){return _p({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 Q1={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 Rg(e){return e+" !important"}const eT=e=>{const t={...e.colors};return os.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:Q1,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:Rg(t.primary200),"&:hover":{backgroundColor:Rg(t.primary200)}}}}},MuiPaginationItem:{defaultProps:{components:{previous:zA,next:YA}},styleOverrides:{root:{"& svg":{width:"10px"},border:"none",fontSize:"14px",lineHeight:"1.5rem",borderRadius:"7px","&.Mui-selected":{backgroundColor:Rg(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 k0(e,t){const n={...e};return t==null||t.forEach(r=>{r.children&&r.children.forEach(({key:i,color:o})=>{n[i]=o.trim()||ii[i]})}),n}function tT(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 GA(e){var c,f,p;const{data:t,isFetching:n}=Td.useQuery(["customTheme"],()=>e!=null&&e.url?fetch(e.url).then(y=>y.json()).then(y=>(["image","favicon","icon"].forEach(g=>{var S;(S=y==null?void 0:y.theme)!=null&&S[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 S,C;tT((S=y==null?void 0:y.theme)==null?void 0:S.favicon);const g=k0(ii,(C=y==null?void 0:y.theme)==null?void 0:C.keyColor);Object.keys(g).forEach(P=>{document.documentElement.style.setProperty(`--${P}`,g[P])}),document.documentElement.style.setProperty("font-family",Q1.fontFamily)}}),r=k0(ii,(c=t==null?void 0:t.theme)==null?void 0:c.keyColor),i=eT({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 nT=q.createContext({}),qA=()=>q.useContext(nT),XA=e=>{var o;const{children:t,brandTheme:n}=e,r=GA(n),i=((o=e.customTheme)==null?void 0:o.call(e,r.colors))||r.theme;return Fe.jsx(nT.Provider,{value:r,children:Fe.jsx(os.ThemeProvider,{theme:i,children:t})})},KA=e=>{const t=Td.useQueryClient(),n=q.useMemo(()=>e.axiosInstance||Da,[e.axiosInstance]);window.env||(window.env={}),window.env.AUTHEN_DOMAIN=new URL(e.baseUrl).origin;const r=Td.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},ZA=e=>{const t=Td.useQueryClient(),n=q.useMemo(()=>e.axiosInstance||Da,[e.axiosInstance]);window.env||(window.env={}),window.env.AUTHEN_DOMAIN=new URL(e.baseUrl).origin;const r=Td.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},Um=q.createContext({}),JA=e=>{const{children:t,baseUrl:n,axiosInstance:r}=e,i=new URL(n).origin,o=KA({axiosInstance:r,baseUrl:n}),s=ZA({axiosInstance:r,baseUrl:n});function c(){window.location.href=`${i}/authentication/login`}function f(){window.location.href=`${i}/authentication/logout`}return o!=null&&o.isFetching?Fe.jsx(os.Grid,{container:!0,justifyContent:"center",alignItems:"center",sx:{minHeight:"100vh"},children:Fe.jsx(os.CircularProgress,{})}):Fe.jsx(Um.Provider,{value:{user:o==null?void 0:o.data,login:c,logout:f,isFetching:o.isFetching,permissions:s==null?void 0:s.data},children:t})},QA=()=>q.useContext(Um);function eM(e,t,n){return n.some(r=>{const i=e[r];return String(i).toLowerCase().includes(t.toLowerCase())})}var rT=[],tM=rT.forEach,nM=rT.slice;function rM(e){return tM.call(nM.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}var D0=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,iM=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 c=i.maxAge-0;if(Number.isNaN(c))throw new Error("maxAge should be a Number");s+="; Max-Age=".concat(Math.floor(c))}if(i.domain){if(!D0.test(i.domain))throw new TypeError("option domain is invalid");s+="; Domain=".concat(i.domain)}if(i.path){if(!D0.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},O0={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=iM(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)}},oM={name:"cookie",lookup:function(t){var n;if(t.lookupCookie&&typeof document<"u"){var r=O0.read(t.lookupCookie);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupCookie&&typeof document<"u"&&O0.create(n.lookupCookie,t,n.cookieMinutes,n.cookieDomain,n.cookieOptions)}},aM={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 c=o[s].indexOf("=");if(c>0){var f=o[s].substring(0,c);f===t.lookupQuerystring&&(n=o[s].substring(c+1))}}}return n}},Zf=null,_0=function(){if(Zf!==null)return Zf;try{Zf=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{Zf=!1}return Zf},sM={name:"localStorage",lookup:function(t){var n;if(t.lookupLocalStorage&&_0()){var r=window.localStorage.getItem(t.lookupLocalStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupLocalStorage&&_0()&&window.localStorage.setItem(n.lookupLocalStorage,t)}},Jf=null,P0=function(){if(Jf!==null)return Jf;try{Jf=window!=="undefined"&&window.sessionStorage!==null;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{Jf=!1}return Jf},lM={name:"sessionStorage",lookup:function(t){var n;if(t.lookupSessionStorage&&P0()){var r=window.sessionStorage.getItem(t.lookupSessionStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupSessionStorage&&P0()&&window.sessionStorage.setItem(n.lookupSessionStorage,t)}},uM={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}},cM={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}},fM={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}},dM={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]}},iT=!1;try{document.cookie,iT=!0}catch{}var oT=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];iT||oT.splice(1,1);function hM(){return{order:oT,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(t){return t}}}var aT=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=rM(r,this.options||{},hM()),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(oM),this.addDetector(aM),this.addDetector(sM),this.addDetector(lM),this.addDetector(uM),this.addDetector(cM),this.addDetector(fM),this.addDetector(dM)}},{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)}))}}])}();aT.type="languageDetector";function Wm(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 pM=Object.freeze(Object.defineProperty({__proto__:null,default:Wm},Symbol.toStringTag,{value:"Module"}));var Ei=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ku(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function gM(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 vM(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];typeof n[0]=="string"&&(n[0]="react-i18next:: ".concat(n[0])),(e=console).warn.apply(e,n)}}var R0={};function Lv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&R0[t[0]]||(typeof t[0]=="string"&&(R0[t[0]]=new Date),vM.apply(void 0,t))}var sT=function(t,n){return function(){if(t.isInitialized)n();else{var r=function i(){setTimeout(function(){t.off("initialized",i)},0),n()};t.on("initialized",r)}}};function I0(e,t,n){e.loadNamespaces(t,sT(e,n))}function A0(e,t,n,r){typeof n=="string"&&(n=[n]),n.forEach(function(i){e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,sT(e,r))}function mM(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 yM(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!t.languages||!t.languages.length)return Lv("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}}):mM(e,t,n)}var bM=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,wM={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},xM=function(t){return wM[t]},SM=function(t){return t.replace(bM,xM)};function M0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function L0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?M0(Object(n),!0).forEach(function(r){Hs(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Fv={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:SM};function TM(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Fv=L0(L0({},Fv),e)}function CM(){return Fv}var lT;function EM(e){lT=e}function kM(){return lT}var DM={type:"3rdParty",init:function(t){TM(t.options.react),EM(t)}},uT=q.createContext(),OM=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 _M(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,c=[],f=!0,p=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(f=(r=o.call(n)).done)&&(c.push(r.value),c.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 c}}function PM(e,t){return $1(e)||_M(e,t)||V1(e,t)||H1()}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 Ig(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){Hs(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var RM=function(t,n){var r=q.useRef();return q.useEffect(function(){r.current=t},[t,n]),r.current};function cT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.i18n,r=q.useContext(uT)||{},i=r.i18n,o=r.defaultNS,s=n||i||kM();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new OM),!s){Lv("You will need to pass in an i18next instance by using initReactI18next");var c=function(oe,ze){return typeof ze=="string"?ze:ze&&qo(ze)==="object"&&typeof ze.defaultValue=="string"?ze.defaultValue:Array.isArray(oe)?oe[oe.length-1]:oe},f=[c,{},!1];return f.t=c,f.i18n={},f.ready=!1,f}s.options.react&&s.options.react.wait!==void 0&&Lv("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var p=Ig(Ig(Ig({},CM()),s.options.react),t),y=p.useSuspense,g=p.keyPrefix,S=e||o||s.options&&s.options.defaultNS;S=typeof S=="string"?[S]:S||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(S);var C=(s.isInitialized||s.initializedStoreOnce)&&S.every(function(he){return yM(he,s,p)});function P(){return s.getFixedT(t.lng||null,p.nsMode==="fallback"?S:S[0],g)}var A=q.useState(P),M=PM(A,2),R=M[0],V=M[1],U=S.join();t.lng&&(U="".concat(t.lng).concat(U));var J=RM(U),K=q.useRef(!0);q.useEffect(function(){var he=p.bindI18n,oe=p.bindI18nStore;K.current=!0,!C&&!y&&(t.lng?A0(s,t.lng,S,function(){K.current&&V(P)}):I0(s,S,function(){K.current&&V(P)})),C&&J&&J!==U&&K.current&&V(P);function ze(){K.current&&V(P)}return he&&s&&s.on(he,ze),oe&&s&&s.store.on(oe,ze),function(){K.current=!1,he&&s&&he.split(" ").forEach(function(je){return s.off(je,ze)}),oe&&s&&oe.split(" ").forEach(function(je){return s.store.off(je,ze)})}},[s,U]);var le=q.useRef(!0);q.useEffect(function(){K.current&&!le.current&&V(P),le.current=!1},[s,g]);var T=[R,s,C];if(T.t=R,T.i18n=s,T.ready=C,C||!C&&!y)return T;throw new Promise(function(he){t.lng?A0(s,t.lng,S,function(){return he()}):I0(s,S,function(){return he()})})}function IM(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(uT.Provider,{value:i},r)}var fT=[],AM=fT.forEach,MM=fT.slice;function LM(e){return AM.call(MM.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}function FM(e){return e?typeof e=="function"?new e:e:null}function NM(){return{handleEmptyResourcesAsFailed:!0,cacheHitMode:"none"}}function N0(e,t,n,r){var i=e.read.bind(e);if(i.length===2){try{var o=i(t,n);o&&typeof o.then=="function"?o.then(function(s){return r(null,s)}).catch(r):r(null,o)}catch(s){r(s)}return}i(t,n,r)}var dT=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=LM(i,this.options||{},NM()),this.allOptions=o,this.options.backends&&this.options.backends.forEach(function(s,c){r.backends[c]=r.backends[c]||FM(s),r.backends[c].init(n,r.options.backendOptions&&r.options.backendOptions[c]||{},o)}),this.services&&this.options.reloadInterval&&setInterval(function(){return r.reload()},this.options.reloadInterval)}},{key:"read",value:function(n,r,i){var o=this,s=this.backends.length,c=function p(y){if(y>=s)return i(new Error("non of the backend loaded data",!0));var g=y===s-1,S=o.options.handleEmptyResourcesAsFailed&&!g?0:-1,C=o.backends[y];C.read?N0(C,n,r,function(P,A,M){if(!P&&A&&Object.keys(A).length>S){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 R=o.backends[y+1];R&&R.read&&N0(R,n,r,function(V,U){V||U&&(Object.keys(U).length<=S||(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 S=o.backends[y];S.save&&S.save(n,r,g),p(y-1,g)}};c(0)}},{key:"create",value:function(n,r,i,o){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){},c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.backends.forEach(function(f){if(f.create){var p=f.create.bind(f);if(p.length<6){try{var y;p.length===5?y=p(n,r,i,o,c):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,c)}})}},{key:"reload",value:function(){var n=this,r=this.services,i=r.backendConnector,o=r.languageUtils,s=r.logger,c=i.language;if(!(c&&c.toLowerCase()==="cimode")){var f=[],p=function(g){var S=o.toResolveHierarchy(g);S.forEach(function(C){f.indexOf(C)<0&&f.push(C)})};p(c),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(S,C){S&&s.warn("loading namespace ".concat(g," for language ").concat(y," failed"),S),!S&&C&&s.log("loaded namespace ".concat(g," for language ").concat(y),C),i.loaded("".concat(y,"|").concat(g),S,C)})})})}}}]),e}();dT.type="backend";function Nv(e){"@babel/helpers - typeof";return Nv=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},Nv(e)}function hT(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":Nv(XMLHttpRequest))==="object"}function jM(e){return!!e&&typeof e.then=="function"}function BM(e){return jM(e)?e:Promise.resolve(e)}function $M(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 jv={exports:{}},dh={exports:{}},j0;function VM(){return j0||(j0=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 c=typeof o<"u"&&o||typeof self<"u"&&self||typeof c<"u"&&c,f={searchParams:"URLSearchParams"in c,iterable:"Symbol"in c&&"iterator"in Symbol,blob:"FileReader"in c&&"Blob"in c&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in c,arrayBuffer:"ArrayBuffer"in c};function p(ce){return ce&&DataView.prototype.isPrototypeOf(ce)}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(ce){return ce&&y.indexOf(Object.prototype.toString.call(ce))>-1};function S(ce){if(typeof ce!="string"&&(ce=String(ce)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(ce)||ce==="")throw new TypeError('Invalid character in header field name: "'+ce+'"');return ce.toLowerCase()}function C(ce){return typeof ce!="string"&&(ce=String(ce)),ce}function P(ce){var Se={next:function(){var Ie=ce.shift();return{done:Ie===void 0,value:Ie}}};return f.iterable&&(Se[Symbol.iterator]=function(){return Se}),Se}function A(ce){this.map={},ce instanceof A?ce.forEach(function(Se,Ie){this.append(Ie,Se)},this):Array.isArray(ce)?ce.forEach(function(Se){this.append(Se[0],Se[1])},this):ce&&Object.getOwnPropertyNames(ce).forEach(function(Se){this.append(Se,ce[Se])},this)}A.prototype.append=function(ce,Se){ce=S(ce),Se=C(Se);var Ie=this.map[ce];this.map[ce]=Ie?Ie+", "+Se:Se},A.prototype.delete=function(ce){delete this.map[S(ce)]},A.prototype.get=function(ce){return ce=S(ce),this.has(ce)?this.map[ce]:null},A.prototype.has=function(ce){return this.map.hasOwnProperty(S(ce))},A.prototype.set=function(ce,Se){this.map[S(ce)]=C(Se)},A.prototype.forEach=function(ce,Se){for(var Ie in this.map)this.map.hasOwnProperty(Ie)&&ce.call(Se,this.map[Ie],Ie,this)},A.prototype.keys=function(){var ce=[];return this.forEach(function(Se,Ie){ce.push(Ie)}),P(ce)},A.prototype.values=function(){var ce=[];return this.forEach(function(Se){ce.push(Se)}),P(ce)},A.prototype.entries=function(){var ce=[];return this.forEach(function(Se,Ie){ce.push([Ie,Se])}),P(ce)},f.iterable&&(A.prototype[Symbol.iterator]=A.prototype.entries);function M(ce){if(ce.bodyUsed)return Promise.reject(new TypeError("Already read"));ce.bodyUsed=!0}function R(ce){return new Promise(function(Se,Ie){ce.onload=function(){Se(ce.result)},ce.onerror=function(){Ie(ce.error)}})}function V(ce){var Se=new FileReader,Ie=R(Se);return Se.readAsArrayBuffer(ce),Ie}function U(ce){var Se=new FileReader,Ie=R(Se);return Se.readAsText(ce),Ie}function J(ce){for(var Se=new Uint8Array(ce),Ie=new Array(Se.length),Ge=0;Ge<Se.length;Ge++)Ie[Ge]=String.fromCharCode(Se[Ge]);return Ie.join("")}function K(ce){if(ce.slice)return ce.slice(0);var Se=new Uint8Array(ce.byteLength);return Se.set(new Uint8Array(ce)),Se.buffer}function le(){return this.bodyUsed=!1,this._initBody=function(ce){this.bodyUsed=this.bodyUsed,this._bodyInit=ce,ce?typeof ce=="string"?this._bodyText=ce:f.blob&&Blob.prototype.isPrototypeOf(ce)?this._bodyBlob=ce:f.formData&&FormData.prototype.isPrototypeOf(ce)?this._bodyFormData=ce:f.searchParams&&URLSearchParams.prototype.isPrototypeOf(ce)?this._bodyText=ce.toString():f.arrayBuffer&&f.blob&&p(ce)?(this._bodyArrayBuffer=K(ce.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):f.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(ce)||g(ce))?this._bodyArrayBuffer=K(ce):this._bodyText=ce=Object.prototype.toString.call(ce):this._bodyText="",this.headers.get("content-type")||(typeof ce=="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(ce)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},f.blob&&(this.blob=function(){var ce=M(this);if(ce)return ce;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 ce=M(this);return ce||(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(V)}),this.text=function(){var ce=M(this);if(ce)return ce;if(this._bodyBlob)return U(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(J(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},f.formData&&(this.formData=function(){return this.text().then(ze)}),this.json=function(){return this.text().then(JSON.parse)},this}var T=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function he(ce){var Se=ce.toUpperCase();return T.indexOf(Se)>-1?Se:ce}function oe(ce,Se){if(!(this instanceof oe))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');Se=Se||{};var Ie=Se.body;if(ce instanceof oe){if(ce.bodyUsed)throw new TypeError("Already read");this.url=ce.url,this.credentials=ce.credentials,Se.headers||(this.headers=new A(ce.headers)),this.method=ce.method,this.mode=ce.mode,this.signal=ce.signal,!Ie&&ce._bodyInit!=null&&(Ie=ce._bodyInit,ce.bodyUsed=!0)}else this.url=String(ce);if(this.credentials=Se.credentials||this.credentials||"same-origin",(Se.headers||!this.headers)&&(this.headers=new A(Se.headers)),this.method=he(Se.method||this.method||"GET"),this.mode=Se.mode||this.mode||null,this.signal=Se.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&Ie)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(Ie),(this.method==="GET"||this.method==="HEAD")&&(Se.cache==="no-store"||Se.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()}}}oe.prototype.clone=function(){return new oe(this,{body:this._bodyInit})};function ze(ce){var Se=new FormData;return ce.trim().split("&").forEach(function(Ie){if(Ie){var Ge=Ie.split("="),tt=Ge.shift().replace(/\+/g," "),we=Ge.join("=").replace(/\+/g," ");Se.append(decodeURIComponent(tt),decodeURIComponent(we))}}),Se}function je(ce){var Se=new A,Ie=ce.replace(/\r?\n[\t ]+/g," ");return Ie.split("\r").map(function(Ge){return Ge.indexOf(`
|
|
3
|
+
`)===0?Ge.substr(1,Ge.length):Ge}).forEach(function(Ge){var tt=Ge.split(":"),we=tt.shift().trim();if(we){var Ee=tt.join(":").trim();Se.append(we,Ee)}}),Se}le.call(oe.prototype);function Pe(ce,Se){if(!(this instanceof Pe))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');Se||(Se={}),this.type="default",this.status=Se.status===void 0?200:Se.status,this.ok=this.status>=200&&this.status<300,this.statusText=Se.statusText===void 0?"":""+Se.statusText,this.headers=new A(Se.headers),this.url=Se.url||"",this._initBody(ce)}le.call(Pe.prototype),Pe.prototype.clone=function(){return new Pe(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new A(this.headers),url:this.url})},Pe.error=function(){var ce=new Pe(null,{status:0,statusText:""});return ce.type="error",ce};var Be=[301,302,303,307,308];Pe.redirect=function(ce,Se){if(Be.indexOf(Se)===-1)throw new RangeError("Invalid status code");return new Pe(null,{status:Se,headers:{location:ce}})},s.DOMException=c.DOMException;try{new s.DOMException}catch{s.DOMException=function(Se,Ie){this.message=Se,this.name=Ie;var Ge=Error(Se);this.stack=Ge.stack},s.DOMException.prototype=Object.create(Error.prototype),s.DOMException.prototype.constructor=s.DOMException}function He(ce,Se){return new Promise(function(Ie,Ge){var tt=new oe(ce,Se);if(tt.signal&&tt.signal.aborted)return Ge(new s.DOMException("Aborted","AbortError"));var we=new XMLHttpRequest;function Ee(){we.abort()}we.onload=function(){var $e={status:we.status,statusText:we.statusText,headers:je(we.getAllResponseHeaders()||"")};$e.url="responseURL"in we?we.responseURL:$e.headers.get("X-Request-URL");var ke="response"in we?we.response:we.responseText;setTimeout(function(){Ie(new Pe(ke,$e))},0)},we.onerror=function(){setTimeout(function(){Ge(new TypeError("Network request failed"))},0)},we.ontimeout=function(){setTimeout(function(){Ge(new TypeError("Network request failed"))},0)},we.onabort=function(){setTimeout(function(){Ge(new s.DOMException("Aborted","AbortError"))},0)};function Ue($e){try{return $e===""&&c.location.href?c.location.href:$e}catch{return $e}}we.open(tt.method,Ue(tt.url),!0),tt.credentials==="include"?we.withCredentials=!0:tt.credentials==="omit"&&(we.withCredentials=!1),"responseType"in we&&(f.blob?we.responseType="blob":f.arrayBuffer&&tt.headers.get("Content-Type")&&tt.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(we.responseType="arraybuffer")),Se&&typeof Se.headers=="object"&&!(Se.headers instanceof A)?Object.getOwnPropertyNames(Se.headers).forEach(function($e){we.setRequestHeader($e,C(Se.headers[$e]))}):tt.headers.forEach(function($e,ke){we.setRequestHeader(ke,$e)}),tt.signal&&(tt.signal.addEventListener("abort",Ee),we.onreadystatechange=function(){we.readyState===4&&tt.signal.removeEventListener("abort",Ee)}),we.send(typeof tt._bodyInit>"u"?null:tt._bodyInit)})}return He.polyfill=!0,c.fetch||(c.fetch=He,c.Headers=A,c.Request=oe,c.Response=Pe),s.Headers=A,s.Request=oe,s.Response=Pe,s.fetch=He,s})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=n.fetch?n:r;t=i.fetch,t.default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t}(dh,dh.exports)),dh.exports}(function(e,t){var n;if(typeof fetch=="function"&&(typeof Ei<"u"&&Ei.fetch?n=Ei.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof $M<"u"&&typeof window>"u"){var r=n||VM();r.default&&(r=r.default),t.default=r,e.exports=t.default}})(jv,jv.exports);var pT=jv.exports;const gT=ku(pT),B0=nA({__proto__:null,default:gT},[pT]);function $0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function V0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$0(Object(n),!0).forEach(function(r){HM(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function HM(e,t,n){return(t=UM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UM(e){var t=WM(e,"string");return Sc(t)=="symbol"?t:t+""}function WM(e,t){if(Sc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Sc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Sc(e){"@babel/helpers - typeof";return Sc=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},Sc(e)}var Sl;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?Sl=global.fetch:typeof window<"u"&&window.fetch?Sl=window.fetch:Sl=fetch);var Cd;hT()&&(typeof global<"u"&&global.XMLHttpRequest?Cd=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(Cd=window.XMLHttpRequest));var np;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?np=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(np=window.ActiveXObject));!Sl&&B0&&!Cd&&!np&&(Sl=gT||B0);typeof Sl!="function"&&(Sl=void 0);var Bv=function(t,n){if(n&&Sc(n)==="object"){var r="";for(var i in n)r+="&"+encodeURIComponent(i)+"="+encodeURIComponent(n[i]);if(!r)return t;t=t+(t.indexOf("?")!==-1?"&":"?")+r.slice(1)}return t},H0=function(t,n,r,i){var o=function(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):Sl(t,n).then(o).catch(r)},U0=!1,zM=function(t,n,r,i){t.queryStringParams&&(n=Bv(n,t.queryStringParams));var o=V0({},typeof t.customHeaders=="function"?t.customHeaders():t.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(o["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),r&&(o["Content-Type"]="application/json");var s=typeof t.requestOptions=="function"?t.requestOptions(r):t.requestOptions,c=V0({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:o},U0?{}:s),f=typeof t.alternateFetch=="function"&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{H0(n,c,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 c[y]}),H0(n,c,i,f),U0=!0}catch(y){i(y)}}},YM=function(t,n,r,i){r&&Sc(r)==="object"&&(r=Bv("",r).slice(1)),t.queryStringParams&&(n=Bv(n,t.queryStringParams));try{var o;Cd?o=new Cd:o=new np("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 c in s)o.setRequestHeader(c,s[c]);o.onreadystatechange=function(){o.readyState>3&&i(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(r)}catch(f){console&&console.log(f)}},GM=function(t,n,r,i){if(typeof r=="function"&&(i=r,r=void 0),i=i||function(){},Sl&&n.indexOf("file:")!==0)return zM(t,n,r,i);if(hT()||typeof ActiveXObject=="function")return YM(t,n,r,i);i(new Error("No fetch and no xhr implementation found!"))};function Ef(e){"@babel/helpers - typeof";return Ef=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},Ef(e)}function W0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ag(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?W0(Object(n),!0).forEach(function(r){vT(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qM(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XM(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,mT(r.key),r)}}function KM(e,t,n){return t&&XM(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function vT(e,t,n){return(t=mT(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mT(e){var t=ZM(e,"string");return Ef(t)=="symbol"?t:t+""}function ZM(e,t){if(Ef(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ef(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 vT({},r,i||"")},parseLoadPayload:function(n,r){},request:GM,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},yT=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]:{};qM(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}return KM(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=Ag(Ag(Ag({},JM()),this.options||{}),i),this.allOptions=o,this.services&&this.options.reloadInterval){var s=setInterval(function(){return r.reload()},this.options.reloadInterval);Ef(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 c=this,f=this.options.loadPath;typeof this.options.loadPath=="function"&&(f=this.options.loadPath(n,i)),f=BM(f),f.then(function(p){if(!p)return s(null,{});var y=c.services.interpolator.interpolate(p,{lng:n.join("+"),ns:i.join("+")});c.loadUrl(y,s,r,o)})}},{key:"loadUrl",value:function(n,r,i,o){var s=this,c=typeof i=="string"?[i]:i,f=typeof o=="string"?[o]:o,p=this.options.parseLoadPayload(c,f);this.options.request(this.options,n,p,function(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 S=y.message.toLowerCase(),C=["failed","fetch","network","load"].find(function(M){return S.indexOf(M)>-1});if(C)return r("failed loading "+n+": "+y.message,!0)}if(y)return r(y,!1);var P,A;try{typeof g.data=="string"?P=s.options.parse(g.data,i,o):P=g.data}catch{A="failed parsing "+n+" to json"}if(A)return r(A,!1);r(null,P)})}},{key:"create",value:function(n,r,i,o,s){var c=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(S){var C=c.options.addPath;typeof c.options.addPath=="function"&&(C=c.options.addPath(S,r));var P=c.services.interpolator.interpolate(C,{lng:S,ns:r});c.options.request(c.options,P,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,c=i.language;if(!(c&&c.toLowerCase()==="cimode")){var f=[],p=function(g){var S=o.toResolveHierarchy(g);S.forEach(function(C){f.indexOf(C)<0&&f.push(C)})};p(c),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(S,C){S&&s.warn("loading namespace ".concat(g," for language ").concat(y," failed"),S),!S&&C&&s.log("loaded namespace ".concat(g," for language ").concat(y),C),i.loaded("".concat(y,"|").concat(g),S,C)})})})}}}])}();yT.type="backend";var zm=(e=>(e.en="en",e.de="de",e))(zm||{});const QM={en:"English",de:"German"};oi.use(dT).use(DM).use(aT).init({initImmediate:!0,ns:["translation"],fallbackLng:Object.keys(QM),fallbackNS:"translation",partialBundledLanguages:!0,resources:{},interpolation:{escapeValue:!1},backend:{backends:[yT],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 eL(){const[e,t]=q.useState();return q.useEffect(()=>{const n=localStorage.getItem("language");t(n||zm.en)},[]),{language:e,setLanguage:t}}const bT=q.createContext({}),tL=()=>q.useContext(bT),nL=oi,rL=z1,iL=()=>cT(),oL=({children:e})=>{const t=eL();return Fe.jsx(bT.Provider,{value:t,children:Fe.jsx(IM,{i18n:oi,children:e})})},aL="*,: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 Ym({children:e,styles:t=[],...n}){return Fe.jsxs("div",{...n,children:[[aL,...t].map((r,i)=>Fe.jsx("style",{type:"text/css",children:r},i)),e]})}function sL(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Gm=sL,lL=typeof Ei=="object"&&Ei&&Ei.Object===Object&&Ei,uL=lL,cL=uL,fL=typeof self=="object"&&self&&self.Object===Object&&self,dL=cL||fL||Function("return this")(),wT=dL,hL=wT,pL=function(){return hL.Date.now()},gL=pL,vL=/\s/;function mL(e){for(var t=e.length;t--&&vL.test(e.charAt(t)););return t}var yL=mL,bL=yL,wL=/^\s+/;function xL(e){return e&&e.slice(0,bL(e)+1).replace(wL,"")}var SL=xL,TL=wT,CL=TL.Symbol,xT=CL,z0=xT,ST=Object.prototype,EL=ST.hasOwnProperty,kL=ST.toString,Qf=z0?z0.toStringTag:void 0;function DL(e){var t=EL.call(e,Qf),n=e[Qf];try{e[Qf]=void 0;var r=!0}catch{}var i=kL.call(e);return r&&(t?e[Qf]=n:delete e[Qf]),i}var OL=DL,_L=Object.prototype,PL=_L.toString;function RL(e){return PL.call(e)}var IL=RL,Y0=xT,AL=OL,ML=IL,LL="[object Null]",FL="[object Undefined]",G0=Y0?Y0.toStringTag:void 0;function NL(e){return e==null?e===void 0?FL:LL:G0&&G0 in Object(e)?AL(e):ML(e)}var jL=NL;function BL(e){return e!=null&&typeof e=="object"}var $L=BL,VL=jL,HL=$L,UL="[object Symbol]";function WL(e){return typeof e=="symbol"||HL(e)&&VL(e)==UL}var zL=WL,YL=SL,q0=Gm,GL=zL,X0=NaN,qL=/^[-+]0x[0-9a-f]+$/i,XL=/^0b[01]+$/i,KL=/^0o[0-7]+$/i,ZL=parseInt;function JL(e){if(typeof e=="number")return e;if(GL(e))return X0;if(q0(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=q0(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=YL(e);var n=XL.test(e);return n||KL.test(e)?ZL(e.slice(2),n?2:8):qL.test(e)?X0:+e}var QL=JL,e2=Gm,Mg=gL,K0=QL,t2="Expected a function",n2=Math.max,r2=Math.min;function i2(e,t,n){var r,i,o,s,c,f,p=0,y=!1,g=!1,S=!0;if(typeof e!="function")throw new TypeError(t2);t=K0(t)||0,e2(n)&&(y=!!n.leading,g="maxWait"in n,o=g?n2(K0(n.maxWait)||0,t):o,S="trailing"in n?!!n.trailing:S);function C(le){var T=r,he=i;return r=i=void 0,p=le,s=e.apply(he,T),s}function P(le){return p=le,c=setTimeout(R,t),y?C(le):s}function A(le){var T=le-f,he=le-p,oe=t-T;return g?r2(oe,o-he):oe}function M(le){var T=le-f,he=le-p;return f===void 0||T>=t||T<0||g&&he>=o}function R(){var le=Mg();if(M(le))return V(le);c=setTimeout(R,A(le))}function V(le){return c=void 0,S&&r?C(le):(r=i=void 0,s)}function U(){c!==void 0&&clearTimeout(c),p=0,r=f=i=c=void 0}function J(){return c===void 0?s:V(Mg())}function K(){var le=Mg(),T=M(le);if(r=arguments,i=this,f=le,T){if(c===void 0)return P(f);if(g)return clearTimeout(c),c=setTimeout(R,t),C(f)}return c===void 0&&(c=setTimeout(R,t)),s}return K.cancel=U,K.flush=J,K}var TT=i2;const Lg=ku(TT);var o2=TT,a2=Gm,s2="Expected a function";function l2(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(s2);return a2(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),o2(e,t,{leading:r,maxWait:t,trailing:i})}var u2=l2;const c2=ku(u2);var hf=function(){return hf=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},hf.apply(this,arguments)};function CT(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function ET(e){return!e||!e.ownerDocument?document:e.ownerDocument}var kT=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(c,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 DT(e,t){var n;e&&(n=e.classList).add.apply(n,t.split(" "))}function OT(e,t){e&&t.split(" ").forEach(function(n){e.classList.remove(n)})}function _T(e){return".".concat(e.split(" ").join("."))}var qm=!!(typeof window<"u"&&window.document&&window.document.createElement),f2=Object.freeze({__proto__:null,addClasses:DT,canUseDOM:qm,classNamesToQuery:_T,getElementDocument:ET,getElementWindow:CT,getOptions:kT,removeClasses:OT}),ff=null,Z0=null;qm&&window.addEventListener("resize",function(){Z0!==window.devicePixelRatio&&(Z0=window.devicePixelRatio,ff=null)});function J0(){if(ff===null){if(typeof document>"u")return ff=0,ff;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),ff=n}return ff}var iu=CT,Fg=ET,d2=kT,ou=DT,au=OT,Oo=_T,ed=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=iu(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,ou(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(){au(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(ou(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){au(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,c,f,p,y,g,S,C,P,A;if(!(!r.draggedAxis||!r.contentWrapperEl)){var M,R=r.axis[r.draggedAxis].track,V=(s=(o=R.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,J=(f=(c=r.contentWrapperEl)===null||c===void 0?void 0:c[r.axis[r.draggedAxis].scrollSizeAttr])!==null&&f!==void 0?f:0,K=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 le=M-((S=(g=R.rect)===null||g===void 0?void 0:g[r.axis[r.draggedAxis].offsetAttr])!==null&&S!==void 0?S:0)-r.axis[r.draggedAxis].dragOffset;le=r.draggedAxis==="x"&&r.isRtl?((P=(C=R.rect)===null||C===void 0?void 0:C[r.axis[r.draggedAxis].sizeAttr])!==null&&P!==void 0?P:0)-U.size-le:le;var T=le/(V-U.size),he=T*(J-K);r.draggedAxis==="x"&&r.isRtl&&(he=!((A=e.getRtlHelpers())===null||A===void 0)&&A.isScrollingToNegative?-he:he),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=he}},this.onEndDrag=function(i){r.isDragging=!1;var o=Fg(r.el),s=iu(r.el);i.preventDefault(),i.stopPropagation(),au(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=hf(hf({},e.defaultOptions),n),this.classNames=hf(hf({},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=c2(this._onMouseMove,64),this.onWindowResize=Lg(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Lg(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Lg(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:J0()}catch{return J0()}},e.getOffset=function(t){var n=t.getBoundingClientRect(),r=Fg(t),i=iu(t);return{top:n.top+(i.pageYOffset||r.documentElement.scrollTop),left:n.left+(i.pageXOffset||r.documentElement.scrollLeft)}},e.prototype.init=function(){qm&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var t,n;this.wrapperEl=this.el.querySelector(Oo(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(Oo(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(Oo(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(Oo(this.classNames.offset)),this.maskEl=this.el.querySelector(Oo(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,Oo(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(Oo(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(Oo(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(Oo(this.classNames.track)).concat(Oo(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(Oo(this.classNames.track)).concat(Oo(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(Oo(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(Oo(this.classNames.scrollbar)))||null,this.options.autoHide||(ou(this.axis.x.scrollbar.el,this.classNames.visible),ou(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,n,r=iu(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=iu(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,c=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var f=this.contentEl.scrollHeight,p=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=r?"auto":"100%",this.placeholderEl.style.width=i?"".concat(n||p,"px"):"auto",this.placeholderEl.style.height="".concat(f,"px");var 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=c==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var g=this.axis.x.isOverflowing?this.scrollbarWidth:0,S=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&p>o-S,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,c;return c=Math.max(~~(s*o),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(c=Math.min(c,this.options.scrollbarMaxSize)),c},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],c=((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=~~((c-o.size)*y);g=t==="x"&&this.isRtl?-g+(c-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&&(ou(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&&(au(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),ou(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?ou(n.scrollbar.el,this.classNames.hover):au(n.scrollbar.el,this.classNames.hover)):(au(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),au(this.axis[t].track.el,this.classNames.hover),au(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=Fg(this.el),o=iu(this.el),s=this.axis[n].scrollbar,c=n==="y"?t.pageY:t.pageX;this.axis[n].dragOffset=c-(((r=s.rect)===null||r===void 0?void 0:r[this.axis[n].offsetAttr])||0),this.draggedAxis=n,ou(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,c;n===void 0&&(n="y");var f=this.axis[n];if(!(!this.options.clickOnTrack||!f.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var p=iu(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,S=parseInt((c=(s=this.elStyles)===null||s===void 0?void 0:s[this.axis[n].sizeAttr])!==null&&c!==void 0?c:"0px",10),C=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],P=n==="y"?this.mouseY-g:this.mouseX-g,A=P<0?-1:1,M=A===-1?C-S:C+S,R=40,V=function(){r.contentWrapperEl&&(A===-1?C>M&&(C-=R,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=C,p.requestAnimationFrame(V)):C<M&&(C+=R,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=C,p.requestAnimationFrame(V)))};V()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var t=iu(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=d2,e.helpers=f2,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 h2(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 Xm=bn.forwardRef(function(e,t){var n=e.children,r=e.scrollableNodeProps,i=r===void 0?{}:r,o=h2(e,["children","scrollableNodeProps"]),s=bn.useRef(),c=bn.useRef(),f=bn.useRef(),p={},y={};Object.keys(o).forEach(function(C){Object.prototype.hasOwnProperty.call(ed.defaultOptions,C)?p[C]=o[C]:y[C]=o[C]});var g=Yo(Yo({},ed.defaultOptions.classNames),p.classNames),S=Yo(Yo({},i),{className:"".concat(g.contentWrapper).concat(i.className?" ".concat(i.className):""),tabIndex:p.tabIndex||ed.defaultOptions.tabIndex,role:"region","aria-label":p.ariaLabel||ed.defaultOptions.ariaLabel});return bn.useEffect(function(){var C;return c.current=S.ref?S.ref.current:c.current,s.current&&(C=new ed(s.current,Yo(Yo(Yo({},p),c.current&&{scrollableNode:c.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:c,scrollableNodeProps:Yo(Yo({},S),{ref:c}),contentNodeRef:f,contentNodeProps:{className:g.contentEl,ref:f}}):bn.createElement("div",Yo({},S),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})))});Xm.displayName="SimpleBar";const PT='[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 RT(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=RT(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function bl(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=RT(e))&&(r&&(r+=" "),r+=t);return r}const Ed=e=>typeof e=="number"&&!isNaN(e),bc=e=>typeof e=="string",Go=e=>typeof e=="function",$h=e=>bc(e)||Go(e)?e:null,$v=e=>q.isValidElement(e)||bc(e)||Go(e)||Ed(e);function p2(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 Pp(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:o=300}=e;return function(s){let{children:c,position:f,preventExitTransition:p,done:y,nodeRef:g,isIn:S,playToast:C}=s;const P=r?`${t}--${f}`:t,A=r?`${n}--${f}`:n,M=q.useRef(0);return q.useLayoutEffect(()=>{const R=g.current,V=P.split(" "),U=J=>{J.target===g.current&&(C(),R.removeEventListener("animationend",U),R.removeEventListener("animationcancel",U),M.current===0&&J.type!=="animationcancel"&&R.classList.remove(...V))};R.classList.add(...V),R.addEventListener("animationend",U),R.addEventListener("animationcancel",U)},[]),q.useEffect(()=>{const R=g.current,V=()=>{R.removeEventListener("animationend",V),i?p2(R,y,o):y()};S||(p?V():(M.current=1,R.className+=` ${A}`,R.addEventListener("animationend",V)))},[S]),q.createElement(q.Fragment,null,c)}}function Q0(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 kd=[];const Vv=new Set,g2=e=>Vv.forEach(t=>t(e)),IT=()=>io.size>0;function AT(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 MT(e,t){$v(e)&&(IT()||kd.push({content:e,options:t}),io.forEach(n=>{n.buildToast(e,t)}))}function ew(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 v2(e){const{subscribe:t,getSnapshot:n,setProps:r}=q.useRef(function(o){const s=o.containerId||1;return{subscribe(c){const f=function(y,g,S){let C=1,P=0,A=[],M=[],R=[],V=g;const U=new Map,J=new Set,K=()=>{R=Array.from(U.values()),J.forEach(he=>he())},le=he=>{M=he==null?[]:M.filter(oe=>oe!==he),K()},T=he=>{const{toastId:oe,onOpen:ze,updateId:je,children:Pe}=he.props,Be=je==null;he.staleId&&U.delete(he.staleId),U.set(oe,he),M=[...M,he.props.toastId].filter(He=>He!==he.staleId),K(),S(Q0(he,Be?"added":"updated")),Be&&Go(ze)&&ze(q.isValidElement(Pe)&&Pe.props)};return{id:y,props:V,observe:he=>(J.add(he),()=>J.delete(he)),toggle:(he,oe)=>{U.forEach(ze=>{oe!=null&&oe!==ze.props.toastId||Go(ze.toggle)&&ze.toggle(he)})},removeToast:le,toasts:U,clearQueue:()=>{P-=A.length,A=[]},buildToast:(he,oe)=>{if((Ue=>{let{containerId:$e,toastId:ke,updateId:_e}=Ue;const Ne=$e?$e!==y:y!==1,rt=U.has(ke)&&_e==null;return Ne||rt})(oe))return;const{toastId:ze,updateId:je,data:Pe,staleId:Be,delay:He}=oe,ce=()=>{le(ze)},Se=je==null;Se&&P++;const Ie={...V,style:V.toastStyle,key:C++,...Object.fromEntries(Object.entries(oe).filter(Ue=>{let[$e,ke]=Ue;return ke!=null})),toastId:ze,updateId:je,data:Pe,closeToast:ce,isIn:!1,className:$h(oe.className||V.toastClassName),bodyClassName:$h(oe.bodyClassName||V.bodyClassName),progressClassName:$h(oe.progressClassName||V.progressClassName),autoClose:!oe.isLoading&&(Ge=oe.autoClose,tt=V.autoClose,Ge===!1||Ed(Ge)&&Ge>0?Ge:tt),deleteToast(){const Ue=U.get(ze),{onClose:$e,children:ke}=Ue.props;Go($e)&&$e(q.isValidElement(ke)&&ke.props),S(Q0(Ue,"removed")),U.delete(ze),P--,P<0&&(P=0),A.length>0?T(A.shift()):K()}};var Ge,tt;Ie.closeButton=V.closeButton,oe.closeButton===!1||$v(oe.closeButton)?Ie.closeButton=oe.closeButton:oe.closeButton===!0&&(Ie.closeButton=!$v(V.closeButton)||V.closeButton);let we=he;q.isValidElement(he)&&!bc(he.type)?we=q.cloneElement(he,{closeToast:ce,toastProps:Ie,data:Pe}):Go(he)&&(we=he({closeToast:ce,toastProps:Ie,data:Pe}));const Ee={content:we,props:Ie,staleId:Be};V.limit&&V.limit>0&&P>V.limit&&Se?A.push(Ee):Ed(He)?setTimeout(()=>{T(Ee)},He):T(Ee)},setProps(he){V=he},setToggle:(he,oe)=>{U.get(he).toggle=oe},isToastActive:he=>M.some(oe=>oe===he),getSnapshot:()=>R}}(s,o,g2);io.set(s,f);const p=f.observe(c);return kd.forEach(y=>MT(y.content,y.options)),kd=[],()=>{p(),io.delete(s)}},setProps(c){var f;(f=io.get(s))==null||f.setProps(c)},getSnapshot(){var c;return(c=io.get(s))==null?void 0:c.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(c=>{const{position:f}=c.props;s.has(f)||s.set(f,[]),s.get(f).push(c)}),Array.from(s,c=>o(c[0],c[1]))},isToastActive:AT,count:i==null?void 0:i.length}}function m2(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:c,pauseOnHover:f,closeToast:p,onClick:y,closeOnClick:g}=e;var S,C;function P(){n(!0)}function A(){n(!1)}function M(U){const J=o.current;s.canDrag&&J&&(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),J.style.transform=`translate3d(${e.draggableDirection==="x"?`${s.delta}px, var(--y)`:`0, calc(${s.delta}px + var(--y))`},0)`,J.style.opacity=""+(1-Math.abs(s.delta/s.removalDistance)))}function R(){document.removeEventListener("pointermove",M),document.removeEventListener("pointerup",R);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((S={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||C.setToggle(S.id,S.fn),q.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||A(),window.addEventListener("focus",P),window.addEventListener("blur",A),()=>{window.removeEventListener("focus",P),window.removeEventListener("blur",A)}},[e.pauseOnFocusLoss]);const V={onPointerDown:function(U){if(e.draggable===!0||e.draggable===U.pointerType){s.didMove=!1,document.addEventListener("pointermove",M),document.addEventListener("pointerup",R);const J=o.current;s.canCloseOnClick=!0,s.canDrag=!0,J.style.transition="none",e.draggableDirection==="x"?(s.start=U.clientX,s.removalDistance=J.offsetWidth*(e.draggablePercent/100)):(s.start=U.clientY,s.removalDistance=J.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(U){const{top:J,bottom:K,left:le,right:T}=o.current.getBoundingClientRect();U.nativeEvent.type!=="touchend"&&e.pauseOnHover&&U.clientX>=le&&U.clientX<=T&&U.clientY>=J&&U.clientY<=K?A():P()}};return c&&f&&(V.onMouseEnter=A,e.stacked||(V.onMouseLeave=P)),g&&(V.onClick=U=>{y&&y(U),s.canCloseOnClick&&p()}),{playToast:P,pauseToast:A,isRunning:t,preventExitTransition:r,toastRef:o,eventHandlers:V}}function y2(e){let{delay:t,isRunning:n,closeToast:r,type:i="default",hide:o,className:s,style:c,controlledProgress:f,progress:p,rtl:y,isIn:g,theme:S}=e;const C=o||f&&p===0,P={...c,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};f&&(P.transform=`scaleX(${p})`);const A=bl("Toastify__progress-bar",f?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${S}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":y}),M=Go(s)?s({rtl:y,type:i,defaultClassName:A}):bl(A,s),R={[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--${S} Toastify__progress-bar--${i}`}),q.createElement("div",{role:"progressbar","aria-hidden":C?"true":"false","aria-label":"notification timer",className:M,style:P,...R}))}let b2=1;const LT=()=>""+b2++;function w2(e){return e&&(bc(e.toastId)||Ed(e.toastId))?e.toastId:LT()}function ld(e,t){return MT(e,t),t.toastId}function rp(e,t){return{...t,type:t&&t.type||e,toastId:w2(t)}}function hh(e){return(t,n)=>ld(t,rp(e,n))}function Tn(e,t){return ld(e,rp("default",t))}Tn.loading=(e,t)=>ld(e,rp("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=bc(i)?Tn.loading(i,n):Tn.loading(i.render,{...n,...i}));const c={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},f=(y,g,S)=>{if(g==null)return void Tn.dismiss(r);const C={type:y,...c,...n,data:S},P=bc(g)?{render:g}:g;return r?Tn.update(r,{...C,...P}):Tn(P.render,{...C,...P}),S},p=Go(e)?e():e;return p.then(y=>f("success",s,y)).catch(y=>f("error",o,y)),p},Tn.success=hh("success"),Tn.info=hh("info"),Tn.error=hh("error"),Tn.warning=hh("warning"),Tn.warn=Tn.warning,Tn.dark=(e,t)=>ld(e,rp("default",{theme:"dark",...t})),Tn.dismiss=function(e){(function(t){var n;if(IT()){if(t==null||bc(n=t)||Ed(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 kd=kd.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=AT,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:LT()};o.toastId!==e&&(o.staleId=e);const s=o.render||i;delete o.render,ld(s,o)}},Tn.done=e=>{Tn.update(e,{progress:1})},Tn.onChange=function(e){return Vv.add(e),()=>{Vv.delete(e)}},Tn.play=e=>ew(!0,e),Tn.pause=e=>ew(!1,e);const x2=typeof window<"u"?q.useLayoutEffect:q.useEffect,ph=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})},Ng={info:function(e){return q.createElement(ph,{...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(ph,{...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(ph,{...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(ph,{...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"})}},S2=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:o}=m2(e),{closeButton:s,children:c,autoClose:f,onClick:p,type:y,hideProgressBar:g,closeToast:S,transition:C,position:P,className:A,style:M,bodyClassName:R,bodyStyle:V,progressClassName:U,progressStyle:J,updateId:K,role:le,progress:T,rtl:he,toastId:oe,deleteToast:ze,isIn:je,isLoading:Pe,closeOnClick:Be,theme:He}=e,ce=bl("Toastify__toast",`Toastify__toast-theme--${He}`,`Toastify__toast--${y}`,{"Toastify__toast--rtl":he},{"Toastify__toast--close-on-click":Be}),Se=Go(A)?A({rtl:he,position:P,type:y,defaultClassName:ce}):bl(ce,A),Ie=function(Ee){let{theme:Ue,type:$e,isLoading:ke,icon:_e}=Ee,Ne=null;const rt={theme:Ue,type:$e};return _e===!1||(Go(_e)?Ne=_e({...rt,isLoading:ke}):q.isValidElement(_e)?Ne=q.cloneElement(_e,rt):ke?Ne=Ng.spinner():(at=>at in Ng)($e)&&(Ne=Ng[$e](rt))),Ne}(e),Ge=!!T||!f,tt={closeToast:S,type:y,theme:He};let we=null;return s===!1||(we=Go(s)?s(tt):q.isValidElement(s)?q.cloneElement(s,tt):function(Ee){let{closeToast:Ue,theme:$e,ariaLabel:ke="close"}=Ee;return q.createElement("button",{className:`Toastify__close-button Toastify__close-button--${$e}`,type:"button",onClick:_e=>{_e.stopPropagation(),Ue(_e)},"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:je,done:ze,position:P,preventExitTransition:n,nodeRef:r,playToast:o},q.createElement("div",{id:oe,onClick:p,"data-in":je,className:Se,...i,style:M,ref:r},q.createElement("div",{...je&&{role:le},className:Go(R)?R({type:y}):bl("Toastify__toast-body",R),style:V},Ie!=null&&q.createElement("div",{className:bl("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!Pe})},Ie),q.createElement("div",null,c)),we,q.createElement(y2,{...K&&!Ge?{key:`pb-${K}`}:{},rtl:he,theme:He,delay:f,isRunning:t,isIn:je,closeToast:S,hide:g,type:y,style:J,className:U,controlledProgress:Ge,progress:T||0})))},Rp=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},T2=Pp(Rp("bounce",!0));Pp(Rp("slide",!0));Pp(Rp("zoom"));Pp(Rp("flip"));const C2={position:"top-right",transition:T2,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function E2(e){let t={...C2,...e};const n=e.stacked,[r,i]=q.useState(!0),o=q.useRef(null),{getToastToRender:s,isToastActive:c,count:f}=v2(t),{className:p,style:y,rtl:g,containerId:S}=t;function C(A){const M=bl("Toastify__toast-container",`Toastify__toast-container--${A}`,{"Toastify__toast-container--rtl":g});return Go(p)?p({position:A,rtl:g,defaultClassName:M}):bl(M,$h(p))}function P(){n&&(i(!0),Tn.play())}return x2(()=>{if(n){var A;const M=o.current.querySelectorAll('[data-in="true"]'),R=12,V=(A=t.position)==null?void 0:A.includes("top");let U=0,J=0;Array.from(M).reverse().forEach((K,le)=>{const T=K;T.classList.add("Toastify__toast--stacked"),le>0&&(T.dataset.collapsed=`${r}`),T.dataset.pos||(T.dataset.pos=V?"top":"bot");const he=U*(r?.2:1)+(r?0:R*le);T.style.setProperty("--y",`${V?he:-1*he}px`),T.style.setProperty("--g",`${R}`),T.style.setProperty("--s",""+(1-(r?J:0))),U+=T.offsetHeight,J+=.025})}},[r,f,n]),q.createElement("div",{ref:o,className:"Toastify",id:S,onMouseEnter:()=>{n&&(i(!1),Tn.pause())},onMouseLeave:P},s((A,M)=>{const R=M.length?{...y}:{...y,pointerEvents:"none"};return q.createElement("div",{className:C(A),style:R,key:`container-${A}`},M.map(V=>{let{content:U,props:J}=V;return q.createElement(S2,{...J,stacked:n,collapseAll:P,isIn:c(J.toastId,J.containerId),style:J.style,key:`toast-${J.key}`},U)}))}))}function k2(){return Fe.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Fe.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"}),Fe.jsx("path",{d:"M10.9942 6.89636V11.6737",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),Fe.jsx("path",{d:"M10.9941 15.1038H11.0049",stroke:"#E01B00",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function D2(){return Fe.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Fe.jsx("rect",{width:"24",height:"24",rx:"12",fill:"#009D4F"}),Fe.jsx("path",{d:"M7.25244 12L10.4174 15.165L16.7474 8.83496",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function O2(){return Fe.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Fe.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"}),Fe.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 Km={paddingLeft:"16px",borderLeft:"2px solid",boxShadow:"none",fontFamily:"inherit"},_2=({closeToast:e})=>Fe.jsx("i",{className:"material-icons",onClick:e,style:{cursor:"pointer"},children:Fe.jsx("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Fe.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"})})}),Zm=(e,t)=>{Tn.success(e,{icon:Fe.jsx(D2,{}),bodyStyle:{},position:"bottom-right",style:{...Km,background:ii.successLight,borderColor:ii.success,color:ii.success},...t})},Vd=(e,t)=>{Tn.error(e,{icon:Fe.jsx(k2,{}),position:"bottom-right",style:{...Km,background:ii.dangerLight,borderColor:ii.danger,color:ii.danger},...t})},P2=(e,t)=>{Tn.error(e,{icon:Fe.jsx(O2,{}),position:"bottom-right",style:{...Km,background:ii.warningLight,borderColor:ii.warning,color:ii.warning},...t})},R2=e=>{Tn(e,{closeButton:_2,toastId:"notify",position:"top-right",hideProgressBar:!0,containerId:"toastifyNotification",style:{padding:"12px 24px 12px 0",paddingLeft:"16px",fontFamily:"inherit",width:"610px",minHeight:"72px",color:ii.textPrimary}})};function FT(e){let t=null;return()=>(t==null&&(t=e()),t)}function I2(e,t){return e.filter(n=>n!==t)}function A2(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 M2{enter(t){const n=this.entered.length,r=i=>this.isNodeInDocument(i)&&(!i.contains||i.contains(t));return this.entered=A2(this.entered.filter(r),[t]),n===0&&this.entered.length>0}leave(t){const n=this.entered.length;return this.entered=I2(this.entered.filter(this.isNodeInDocument),t),n>0&&this.entered.length===0}reset(){this.entered=[]}constructor(t){this.entered=[],this.isNodeInDocument=t}}class L2{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 NT="__NATIVE_FILE__",jT="__NATIVE_URL__",BT="__NATIVE_TEXT__",$T="__NATIVE_HTML__",tw=Object.freeze(Object.defineProperty({__proto__:null,FILE:NT,HTML:$T,TEXT:BT,URL:jT},Symbol.toStringTag,{value:"Module"}));function jg(e,t,n){const r=t.reduce((i,o)=>i||e.getData(o),"");return r??n}const Hv={[NT]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[$T]:{exposeProperties:{html:(e,t)=>jg(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[jT]:{exposeProperties:{urls:(e,t)=>jg(e,t,"").split(`
|
|
4
|
+
`),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[BT]:{exposeProperties:{text:(e,t)=>jg(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function F2(e,t){const n=Hv[e];if(!n)throw new Error(`native type ${e} has no configuration`);const r=new L2(n);return r.loadDataTransfer(t),r}function Bg(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(Hv).filter(n=>{const r=Hv[n];return r!=null&&r.matchesTypes?r.matchesTypes.some(i=>t.indexOf(i)>-1):!1})[0]||null}const N2=FT(()=>/firefox/i.test(navigator.userAgent)),VT=FT(()=>!!window.safari);class nw{interpolate(t){const{xs:n,ys:r,c1s:i,c2s:o,c3s:s}=this;let c=n.length-1;if(t===n[c])return r[c];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]}c=Math.max(0,p);const g=t-n[c],S=g*g;return r[c]+i[c]*g+o[c]*S+s[c]*g*S}constructor(t,n){const{length:r}=t,i=[];for(let C=0;C<r;C++)i.push(C);i.sort((C,P)=>t[C]<t[P]?-1:1);const o=[],s=[];let c,f;for(let C=0;C<r-1;C++)c=t[C+1]-t[C],f=n[C+1]-n[C],o.push(c),s.push(f/c);const p=[s[0]];for(let C=0;C<o.length-1;C++){const P=s[C],A=s[C+1];if(P*A<=0)p.push(0);else{c=o[C];const M=o[C+1],R=c+M;p.push(3*R/((R+M)/P+(R+c)/A))}}p.push(s[s.length-1]);const y=[],g=[];let S;for(let C=0;C<p.length-1;C++){S=s[C];const P=p[C],A=1/o[C],M=P+p[C+1]-S-S;y.push((S-P-M)*A),g.push(M*A*A)}this.xs=t,this.ys=n,this.c1s=p,this.c2s=y,this.c3s=g}}const j2=1;function HT(e){const t=e.nodeType===j2?e:e.parentElement;if(!t)return null;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function gh(e){return{x:e.clientX,y:e.clientY}}function B2(e){var t;return e.nodeName==="IMG"&&(N2()||!(!((t=document.documentElement)===null||t===void 0)&&t.contains(e)))}function $2(e,t,n,r){let i=e?t.width:n,o=e?t.height:r;return VT()&&e&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}function V2(e,t,n,r,i){const o=B2(t),c=HT(o?e:t),f={x:n.x-c.x,y:n.y-c.y},{offsetWidth:p,offsetHeight:y}=e,{anchorX:g,anchorY:S}=r,{dragPreviewWidth:C,dragPreviewHeight:P}=$2(o,t,p,y),A=()=>{let le=new nw([0,.5,1],[f.y,f.y/y*P,f.y+P-y]).interpolate(S);return VT()&&o&&(le+=(window.devicePixelRatio-1)*P),le},M=()=>new nw([0,.5,1],[f.x,f.x/p*C,f.x+C-p]).interpolate(g),{offsetX:R,offsetY:V}=i,U=R===0||R,J=V===0||V;return{x:U?R:M(),y:J?V:A()}}let H2=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 U2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rw(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){U2(e,i,n[i])})}return e}class W2{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 rw({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 rw({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}isDraggingNativeItem(){const t=this.monitor.getItemType();return Object.keys(tw).some(n=>tw[n]===t)}beginDragNativeItem(t,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=F2(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&&HT(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=gh(i);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(o||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:s});const{dataTransfer:c}=i,f=Bg(c);if(this.monitor.isDragging()){if(c&&typeof c.setDragImage=="function"){const y=this.monitor.getSourceId(),g=this.sourceNodes.get(y),S=this.sourcePreviewNodes.get(y)||g;if(S){const{anchorX:C,anchorY:P,offsetX:A,offsetY:M}=this.getCurrentSourcePreviewNodeOptions(),U=V2(g,S,s,{anchorX:C,anchorY:P},{offsetX:A,offsetY:M});c.setDragImage(S,U.x,U.y)}}try{c==null||c.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(i.target);const{captureDraggingState:p}=this.getCurrentSourcePreviewNodeOptions();p?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(f)this.beginDragNativeItem(f);else{if(c&&!c.types&&(i.target&&!i.target.hasAttribute||!i.target.hasAttribute("draggable")))return;i.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=i=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var o;(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(i.dataTransfer)}if(!this.enterLeaveCounter.enter(i.target)||this.monitor.isDragging())return;const{dataTransfer:c}=i,f=Bg(c);f&&this.beginDragNativeItem(f,c)},this.handleTopDragEnter=i=>{const{dragEnterTargetIds:o}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=i.altKey,o.length>0&&this.actions.hover(o,{clientOffset:gh(i)}),o.some(c=>this.monitor.canDropOnTarget(c))&&(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=i=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var o;(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(i.dataTransfer)}},this.handleTopDragOver=i=>{const{dragOverTargetIds:o}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect="none");return}this.altKeyPressed=i.altKey,this.lastClientOffset=gh(i),this.scheduleHover(o),(o||[]).some(c=>this.monitor.canDropOnTarget(c))?(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?i.preventDefault():(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=i=>{this.isDraggingNativeItem()&&i.preventDefault(),this.enterLeaveCounter.leave(i.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=i=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var o;i.preventDefault(),(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(i.dataTransfer)}else Bg(i.dataTransfer)&&i.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=i=>{const{dropTargetIds:o}=this;this.dropTargetIds=[],this.actions.hover(o,{clientOffset:gh(i)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=i=>{const o=i.target;typeof o.dragDrop=="function"&&(o.tagName==="INPUT"||o.tagName==="SELECT"||o.tagName==="TEXTAREA"||o.isContentEditable||(i.preventDefault(),o.dragDrop()))},this.options=new H2(n,r),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new M2(this.isNodeInDocument)}}let vh;function z2(){return vh||(vh=new Image,vh.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),vh}const UT=function(t,n,r){return new W2(t,n,r)};var wc=[],Y2=function(){return wc.some(function(e){return e.activeTargets.length>0})},G2=function(){return wc.some(function(e){return e.skippedTargets.length>0})},iw="ResizeObserver loop completed with undelivered notifications.",q2=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:iw}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=iw),window.dispatchEvent(e)},Dd;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Dd||(Dd={}));var xc=function(e){return Object.freeze(e)},X2=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,xc(this)}return e}(),WT=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,xc(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,i=t.top,o=t.right,s=t.bottom,c=t.left,f=t.width,p=t.height;return{x:n,y:r,top:i,right:o,bottom:s,left:c,width:f,height:p}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Jm=function(e){return e instanceof SVGElement&&"getBBox"in e},zT=function(e){if(Jm(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,o=i.offsetWidth,s=i.offsetHeight;return!(o||s||e.getClientRects().length)},ow=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)},K2=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},ud=typeof window<"u"?window:{},mh=new WeakMap,aw=/auto|scroll/,Z2=/^tb|vertical/,J2=/msie|trident/i.test(ud.navigator&&ud.navigator.userAgent),As=function(e){return parseFloat(e||"0")},xf=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new X2((n?t:e)||0,(n?e:t)||0)},sw=xc({devicePixelContentBoxSize:xf(),borderBoxSize:xf(),contentBoxSize:xf(),contentRect:new WT(0,0,0,0)}),YT=function(e,t){if(t===void 0&&(t=!1),mh.has(e)&&!t)return mh.get(e);if(zT(e))return mh.set(e,sw),sw;var n=getComputedStyle(e),r=Jm(e)&&e.ownerSVGElement&&e.getBBox(),i=!J2&&n.boxSizing==="border-box",o=Z2.test(n.writingMode||""),s=!r&&aw.test(n.overflowY||""),c=!r&&aw.test(n.overflowX||""),f=r?0:As(n.paddingTop),p=r?0:As(n.paddingRight),y=r?0:As(n.paddingBottom),g=r?0:As(n.paddingLeft),S=r?0:As(n.borderTopWidth),C=r?0:As(n.borderRightWidth),P=r?0:As(n.borderBottomWidth),A=r?0:As(n.borderLeftWidth),M=g+p,R=f+y,V=A+C,U=S+P,J=c?e.offsetHeight-U-e.clientHeight:0,K=s?e.offsetWidth-V-e.clientWidth:0,le=i?M+V:0,T=i?R+U:0,he=r?r.width:As(n.width)-le-K,oe=r?r.height:As(n.height)-T-J,ze=he+M+K+V,je=oe+R+J+U,Pe=xc({devicePixelContentBoxSize:xf(Math.round(he*devicePixelRatio),Math.round(oe*devicePixelRatio),o),borderBoxSize:xf(ze,je,o),contentBoxSize:xf(he,oe,o),contentRect:new WT(g,f,he,oe)});return mh.set(e,Pe),Pe},GT=function(e,t,n){var r=YT(e,n),i=r.borderBoxSize,o=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(t){case Dd.DEVICE_PIXEL_CONTENT_BOX:return s;case Dd.BORDER_BOX:return i;default:return o}},Q2=function(){function e(t){var n=YT(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=xc([n.borderBoxSize]),this.contentBoxSize=xc([n.contentBoxSize]),this.devicePixelContentBoxSize=xc([n.devicePixelContentBoxSize])}return e}(),qT=function(e){if(zT(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},eF=function(){var e=1/0,t=[];wc.forEach(function(s){if(s.activeTargets.length!==0){var c=[];s.activeTargets.forEach(function(p){var y=new Q2(p.target),g=qT(p.target);c.push(y),p.lastReportedSize=GT(p.target,p.observedBox),g<e&&(e=g)}),t.push(function(){s.callback.call(s.observer,c,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},lw=function(e){wc.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(i){i.isActive()&&(qT(i.target)>e?n.activeTargets.push(i):n.skippedTargets.push(i))})})},tF=function(){var e=0;for(lw(e);Y2();)e=eF(),lw(e);return G2()&&q2(),e>0},$g,XT=[],nF=function(){return XT.splice(0).forEach(function(e){return e()})},rF=function(e){if(!$g){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return nF()}).observe(n,r),$g=function(){n.textContent="".concat(t?t--:t++)}}XT.push(e),$g()},iF=function(e){rF(function(){requestAnimationFrame(e)})},Vh=0,oF=function(){return!!Vh},aF=250,sF={attributes:!0,characterData:!0,childList:!0,subtree:!0},uw=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],cw=function(e){return e===void 0&&(e=0),Date.now()+e},Vg=!1,lF=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=aF),!Vg){Vg=!0;var r=cw(t);iF(function(){var i=!1;try{i=tF()}finally{if(Vg=!1,t=r-cw(),!oF())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,sF)};document.body?n():ud.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),uw.forEach(function(n){return ud.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),uw.forEach(function(n){return ud.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),Uv=new lF,fw=function(e){!Vh&&e>0&&Uv.start(),Vh+=e,!Vh&&Uv.stop()},uF=function(e){return!Jm(e)&&!K2(e)&&getComputedStyle(e).display==="inline"},cF=function(){function e(t,n){this.target=t,this.observedBox=n||Dd.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=GT(this.target,this.observedBox,!0);return uF(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),fF=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),yh=new WeakMap,dw=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},bh=function(){function e(){}return e.connect=function(t,n){var r=new fF(t,n);yh.set(t,r)},e.observe=function(t,n,r){var i=yh.get(t),o=i.observationTargets.length===0;dw(i.observationTargets,n)<0&&(o&&wc.push(i),i.observationTargets.push(new cF(n,r&&r.box)),fw(1),Uv.schedule())},e.unobserve=function(t,n){var r=yh.get(t),i=dw(r.observationTargets,n),o=r.observationTargets.length===1;i>=0&&(o&&wc.splice(wc.indexOf(r),1),r.observationTargets.splice(i,1),fw(-1))},e.disconnect=function(t){var n=this,r=yh.get(t);r.observationTargets.slice().forEach(function(i){return n.unobserve(t,i.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),dF=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.");bh.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(!ow(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");bh.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(!ow(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");bh.unobserve(this,t)},e.prototype.disconnect=function(){bh.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}(),Wv=function(e,t){return Wv=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])},Wv(e,t)};function KT(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Wv(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 Pa(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 Wr(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(c){s={error:c}}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 hw="production",ZT=typeof process>"u"||process.env===void 0?hw:process.env.NODE_ENV||hw,ml=function(e){return{isEnabled:function(t){return e.some(function(n){return!!t[n]})}}},Od={measureLayout:ml(["layout","layoutId","drag"]),animation:ml(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:ml(["exit"]),drag:ml(["drag","dragControls"]),focus:ml(["whileFocus"]),hover:ml(["whileHover","onHoverStart","onHoverEnd"]),tap:ml(["whileTap","onTap","onTapStart","onTapCancel"]),pan:ml(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:ml(["whileInView","onViewportEnter","onViewportLeave"])};function hF(e){for(var t in e)e[t]!==null&&(t==="projectionNodeConstructor"?Od.projectionNodeConstructor=e[t]:Od[t].Component=e[t])}var Hd=function(){},Oa=function(){};process.env.NODE_ENV!=="production"&&(Hd=function(e,t){!e&&typeof console<"u"&&console.warn(t)},Oa=function(e,t){if(!e)throw new Error(t)});var JT=q.createContext({strict:!1}),QT=Object.keys(Od),pF=QT.length;function gF(e,t,n){var r=[],i=q.useContext(JT);if(!t)return null;ZT!=="production"&&n&&i.strict&&Oa(!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<pF;o++){var s=QT[o],c=Od[s],f=c.isEnabled,p=c.Component;f(e)&&p&&r.push(bn.createElement(p,nt({key:s},e,{visualElement:t})))}return r}var Qm=q.createContext({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),Ip=q.createContext({});function vF(){return q.useContext(Ip).visualElement}var Ap=q.createContext(null),Af=typeof document<"u",pw=Af?q.useLayoutEffect:q.useEffect,zv={current:null},eC=!1;function mF(){if(eC=!0,!!Af)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return zv.current=e.matches};e.addListener(t),t()}else zv.current=!1}function yF(){!eC&&mF();var e=Wr(q.useState(zv.current),1),t=e[0];return t}function bF(){var e=yF(),t=q.useContext(Qm).reducedMotion;return t==="never"?!1:t==="always"?!0:e}function wF(e,t,n,r){var i=q.useContext(JT),o=vF(),s=q.useContext(Ap),c=bF(),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:c}));var p=f.current;return pw(function(){p==null||p.syncRender()}),q.useEffect(function(){var y;(y=p==null?void 0:p.animationState)===null||y===void 0||y.animateChanges()}),pw(function(){return function(){return p==null?void 0:p.notifyUnmount()}},[]),p}function pf(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function xF(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):pf(n)&&(n.current=r))},[t])}function tC(e){return Array.isArray(e)}function is(e){return typeof e=="string"||tC(e)}function SF(e){var t={};return e.forEachValue(function(n,r){return t[r]=n.get()}),t}function TF(e){var t={};return e.forEachValue(function(n,r){return t[r]=n.getVelocity()}),t}function nC(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 Mp(e,t,n){var r=e.getProps();return nC(r,t,n??r.custom,SF(e),TF(e))}function Lp(e){var t;return typeof((t=e.animate)===null||t===void 0?void 0:t.start)=="function"||is(e.initial)||is(e.animate)||is(e.whileHover)||is(e.whileDrag)||is(e.whileTap)||is(e.whileFocus)||is(e.exit)}function rC(e){return!!(Lp(e)||e.variants)}function CF(e,t){if(Lp(e)){var n=e.initial,r=e.animate;return{initial:n===!1||is(n)?n:void 0,animate:is(r)?r:void 0}}return e.inherit!==!1?t:{}}function EF(e){var t=CF(e,q.useContext(Ip)),n=t.initial,r=t.animate;return q.useMemo(function(){return{initial:n,animate:r}},[gw(n),gw(r)])}function gw(e){return Array.isArray(e)?e.join(" "):e}function Fp(e){var t=q.useRef(null);return t.current===null&&(t.current=e()),t.current}var cd={hasAnimatedSinceResize:!0,hasEverUpdated:!1},kF=1;function DF(){return Fp(function(){if(cd.hasEverUpdated)return kF++})}var iC=q.createContext({}),oC=q.createContext({});function OF(e,t,n,r){var i,o=t.layoutId,s=t.layout,c=t.drag,f=t.dragConstraints,p=t.layoutScroll,y=q.useContext(oC);!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:!!c||f&&pf(f),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:typeof s=="string"?s:"both",initialPromotionConfig:y,layoutScroll:p}))}var _F=function(e){KT(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 PF(e){var t=e.preloadedFeatures,n=e.createVisualElement,r=e.projectionNodeConstructor,i=e.useRender,o=e.useVisualState,s=e.Component;t&&hF(t);function c(f,p){var y=RF(f);f=nt(nt({},f),{layoutId:y});var g=q.useContext(Qm),S=null,C=EF(f),P=g.isStatic?void 0:DF(),A=o(f,g.isStatic);return!g.isStatic&&Af&&(C.visualElement=wF(s,A,nt(nt({},g),f),n),OF(P,f,C.visualElement,r||Od.projectionNodeConstructor),S=gF(f,C.visualElement,t)),bn.createElement(_F,{visualElement:C.visualElement,props:nt(nt({},g),f)},S,bn.createElement(Ip.Provider,{value:C},i(s,f,P,xF(A,C.visualElement,p),A,g.isStatic,C.visualElement)))}return q.forwardRef(c)}function RF(e){var t,n=e.layoutId,r=(t=q.useContext(iC))===null||t===void 0?void 0:t.id;return r&&n!==void 0?r+"-"+n:n}function IF(e){function t(r,i){return i===void 0&&(i={}),PF(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 AF=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function ey(e){return typeof e!="string"||e.includes("-")?!1:!!(AF.indexOf(e)>-1||/[A-Z]/.test(e))}var ip={};function MF(e){Object.assign(ip,e)}var Yv=["","X","Y","Z"],LF=["translate","scale","rotate","skew"],_d=["transformPerspective","x","y","z"];LF.forEach(function(e){return Yv.forEach(function(t){return _d.push(e+t)})});function FF(e,t){return _d.indexOf(e)-_d.indexOf(t)}var NF=new Set(_d);function Ud(e){return NF.has(e)}var jF=new Set(["originX","originY","originZ"]);function aC(e){return jF.has(e)}function sC(e,t){var n=t.layout,r=t.layoutId;return Ud(e)||aC(e)||(n||r!==void 0)&&(!!ip[e]||e==="opacity")}var kl=function(e){return!!(e!==null&&typeof e=="object"&&e.getVelocity)},BF={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function $F(e,t,n,r){var i=e.transform,o=e.transformKeys,s=t.enableHardwareAcceleration,c=s===void 0?!0:s,f=t.allowTransformNone,p=f===void 0?!0:f,y="";o.sort(FF);for(var g=!1,S=o.length,C=0;C<S;C++){var P=o[C];y+="".concat(BF[P]||P,"(").concat(i[P],") "),P==="z"&&(g=!0)}return!g&&c?y+="translateZ(0)":y=y.trim(),r?y=r(i,n?"":y):p&&n&&(y="none"),y}function VF(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 lC(e){return e.startsWith("--")}var HF=function(e,t){return t&&typeof e=="number"?t.transform(e):e};const uC=(e,t)=>n=>Math.max(Math.min(n,t),e),fd=e=>e%1?Number(e.toFixed(5)):e,Pd=/(-)?([\d]*\.?[\d])+/g,Gv=/(#[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,UF=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Wd(e){return typeof e=="string"}const Oc={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},dd=Object.assign(Object.assign({},Oc),{transform:uC(0,1)}),wh=Object.assign(Object.assign({},Oc),{default:1}),zd=e=>({test:t=>Wd(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),lu=zd("deg"),js=zd("%"),Rt=zd("px"),WF=zd("vh"),zF=zd("vw"),vw=Object.assign(Object.assign({},js),{parse:e=>js.parse(e)/100,transform:e=>js.transform(e*100)}),ty=(e,t)=>n=>!!(Wd(n)&&UF.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),cC=(e,t,n)=>r=>{if(!Wd(r))return r;const[i,o,s,c]=r.match(Pd);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:c!==void 0?parseFloat(c):1}},vc={test:ty("hsl","hue"),parse:cC("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+js.transform(fd(t))+", "+js.transform(fd(n))+", "+fd(dd.transform(r))+")"},YF=uC(0,255),Hg=Object.assign(Object.assign({},Oc),{transform:e=>Math.round(YF(e))}),pu={test:ty("rgb","red"),parse:cC("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Hg.transform(e)+", "+Hg.transform(t)+", "+Hg.transform(n)+", "+fd(dd.transform(r))+")"};function GF(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 qv={test:ty("#"),parse:GF,transform:pu.transform},to={test:e=>pu.test(e)||qv.test(e)||vc.test(e),parse:e=>pu.test(e)?pu.parse(e):vc.test(e)?vc.parse(e):qv.parse(e),transform:e=>Wd(e)?e:e.hasOwnProperty("red")?pu.transform(e):vc.transform(e)},fC="${c}",dC="${n}";function qF(e){var t,n,r,i;return isNaN(e)&&Wd(e)&&((n=(t=e.match(Pd))===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0)+((i=(r=e.match(Gv))===null||r===void 0?void 0:r.length)!==null&&i!==void 0?i:0)>0}function hC(e){typeof e=="number"&&(e=`${e}`);const t=[];let n=0;const r=e.match(Gv);r&&(n=r.length,e=e.replace(Gv,fC),t.push(...r.map(to.parse)));const i=e.match(Pd);return i&&(e=e.replace(Pd,dC),t.push(...i.map(Oc.parse))),{values:t,numColors:n,tokenised:e}}function pC(e){return hC(e).values}function gC(e){const{values:t,numColors:n,tokenised:r}=hC(e),i=t.length;return o=>{let s=r;for(let c=0;c<i;c++)s=s.replace(c<n?fC:dC,c<n?to.transform(o[c]):fd(o[c]));return s}}const XF=e=>typeof e=="number"?0:e;function KF(e){const t=pC(e);return gC(e)(t.map(XF))}const Dl={test:qF,parse:pC,createTransformer:gC,getAnimatableNone:KF},ZF=new Set(["brightness","contrast","saturate","opacity"]);function JF(e){let[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Pd)||[];if(!r)return e;const i=n.replace(r,"");let o=ZF.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const QF=/([a-z-]*)\(.*?\)/g,Xv=Object.assign(Object.assign({},Dl),{getAnimatableNone:e=>{const t=e.match(QF);return t?t.map(JF).join(" "):e}});var mw=nt(nt({},Oc),{transform:Math.round}),vC={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:lu,rotateX:lu,rotateY:lu,rotateZ:lu,scale:wh,scaleX:wh,scaleY:wh,scaleZ:wh,skew:lu,skewX:lu,skewY:lu,distance:Rt,translateX:Rt,translateY:Rt,translateZ:Rt,x:Rt,y:Rt,z:Rt,perspective:Rt,transformPerspective:Rt,opacity:dd,originX:vw,originY:vw,originZ:Rt,zIndex:mw,fillOpacity:dd,strokeOpacity:dd,numOctaves:mw};function ny(e,t,n,r){var i,o=e.style,s=e.vars,c=e.transform,f=e.transformKeys,p=e.transformOrigin;f.length=0;var y=!1,g=!1,S=!0;for(var C in t){var P=t[C];if(lC(C)){s[C]=P;continue}var A=vC[C],M=HF(P,A);if(Ud(C)){if(y=!0,c[C]=M,f.push(C),!S)continue;P!==((i=A.default)!==null&&i!==void 0?i:0)&&(S=!1)}else aC(C)?(p[C]=M,g=!0):o[C]=M}y?o.transform=$F(e,n,S,r):r?o.transform=r({},""):!t.transform&&o.transform&&(o.transform="none"),g&&(o.transformOrigin=VF(p))}var ry=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function mC(e,t,n){for(var r in t)!kl(t[r])&&!sC(r,n)&&(e[r]=t[r])}function eN(e,t,n){var r=e.transformTemplate;return q.useMemo(function(){var i=ry();ny(i,t,{enableHardwareAcceleration:!n},r);var o=i.vars,s=i.style;return nt(nt({},o),s)},[t])}function tN(e,t,n){var r=e.style||{},i={};return mC(i,r,e),Object.assign(i,eN(e,t,n)),e.transformValues&&(i=e.transformValues(i)),i}function nN(e,t,n){var r={},i=tN(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 rN=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 op(e){return rN.has(e)}var yC=function(e){return!op(e)};function iN(e){e&&(yC=function(t){return t.startsWith("on")?!op(t):e(t)})}try{iN(require("@emotion/is-prop-valid").default)}catch{}function oN(e,t,n){var r={};for(var i in e)(yC(i)||n===!0&&op(i)||!t&&!op(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function yw(e,t,n){return typeof e=="string"?e:Rt.transform(t+n*e)}function aN(e,t,n){var r=yw(t,e.x,e.width),i=yw(n,e.y,e.height);return"".concat(r," ").concat(i)}var sN={offset:"strokeDashoffset",array:"strokeDasharray"};function lN(e,t,n,r,i){n===void 0&&(n=1),r===void 0&&(r=0),e.pathLength=1;var o=sN;e[o.offset]=Rt.transform(-r);var s=Rt.transform(t),c=Rt.transform(n);e[o.array]="".concat(s," ").concat(c)}function iy(e,t,n,r){var i=t.attrX,o=t.attrY,s=t.originX,c=t.originY,f=t.pathLength,p=t.pathSpacing,y=p===void 0?1:p,g=t.pathOffset,S=g===void 0?0:g,C=Pa(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]);ny(e,C,n,r),e.attrs=e.style,e.style={};var P=e.attrs,A=e.style,M=e.dimensions;P.transform&&(M&&(A.transform=P.transform),delete P.transform),M&&(s!==void 0||c!==void 0||A.transform)&&(A.transformOrigin=aN(M,s!==void 0?s:.5,c!==void 0?c:.5)),i!==void 0&&(P.x=i),o!==void 0&&(P.y=o),f!==void 0&&lN(P,f,y,S)}var bC=function(){return nt(nt({},ry()),{attrs:{}})};function uN(e,t){var n=q.useMemo(function(){var i=bC();return iy(i,t,{enableHardwareAcceleration:!1},e.transformTemplate),nt(nt({},i.attrs),{style:nt({},i.style)})},[t]);if(e.style){var r={};mC(r,e.style,e),n.style=nt(nt({},r),n.style)}return n}function cN(e){e===void 0&&(e=!1);var t=function(n,r,i,o,s,c){var f=s.latestValues,p=ey(n)?uN:nN,y=p(r,f,c),g=oN(r,typeof n=="string",e),S=nt(nt(nt({},g),y),{ref:o});return i&&(S["data-projection-id"]=i),q.createElement(n,S)};return t}var fN=/([a-z])([A-Z])/g,dN="$1-$2",wC=function(e){return e.replace(fN,dN).toLowerCase()};function xC(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 SC=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function TC(e,t,n,r){xC(e,t,void 0,r);for(var i in t.attrs)e.setAttribute(SC.has(i)?i:wC(i),t.attrs[i])}function oy(e){var t=e.style,n={};for(var r in t)(kl(t[r])||sC(r,e))&&(n[r]=t[r]);return n}function CC(e){var t=oy(e);for(var n in e)if(kl(e[n])){var r=n==="x"||n==="y"?"attr"+n.toUpperCase():n;t[r]=e[n]}return t}function ay(e){return typeof e=="object"&&typeof e.start=="function"}var Rd=function(e){return Array.isArray(e)},hN=function(e){return!!(e&&typeof e=="object"&&e.mix&&e.toValue)},EC=function(e){return Rd(e)?e[e.length-1]||0:e};function Hh(e){var t=kl(e)?e.get():e;return hN(t)?t.toValue():t}function bw(e,t,n,r){var i=e.scrapeMotionValuesFromProps,o=e.createRenderState,s=e.onMount,c={latestValues:pN(t,n,r,i),renderState:o()};return s&&(c.mount=function(f){return s(t,f,c)}),c}var kC=function(e){return function(t,n){var r=q.useContext(Ip),i=q.useContext(Ap);return n?bw(e,t,r,i):Fp(function(){return bw(e,t,r,i)})}};function pN(e,t,n,r){var i={},o=(n==null?void 0:n.initial)===!1,s=r(e);for(var c in s)i[c]=Hh(s[c]);var f=e.initial,p=e.animate,y=Lp(e),g=rC(e);t&&g&&!y&&e.inherit!==!1&&(f??(f=t.initial),p??(p=t.animate));var S=o||f===!1,C=S?p:f;if(C&&typeof C!="boolean"&&!ay(C)){var P=Array.isArray(C)?C:[C];P.forEach(function(A){var M=nC(e,A);if(M){var R=M.transitionEnd;M.transition;var V=Pa(M,["transitionEnd","transition"]);for(var U in V){var J=V[U];if(Array.isArray(J)){var K=S?J.length-1:0;J=J[K]}J!==null&&(i[U]=J)}for(var U in R)i[U]=R[U]}})}return i}var gN={useVisualState:kC({scrapeMotionValuesFromProps:CC,createRenderState:bC,onMount:function(e,t,n){var r=n.renderState,i=n.latestValues;try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}iy(r,i,{enableHardwareAcceleration:!1},e.transformTemplate),TC(t,r)}})},vN={useVisualState:kC({scrapeMotionValuesFromProps:oy,createRenderState:ry})};function mN(e,t,n,r,i){var o=t.forwardMotionProps,s=o===void 0?!1:o,c=ey(e)?gN:vN;return nt(nt({},c),{preloadedFeatures:n,useRender:cN(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 Np(e,t,n,r){return r===void 0&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function Kv(e,t,n,r){q.useEffect(function(){var i=e.current;if(n&&i)return Np(i,t,n,r)},[e,t,n,r])}function yN(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)};Kv(n,"focus",t?r:void 0),Kv(n,"blur",t?i:void 0)}function DC(e){return typeof PointerEvent<"u"&&e instanceof PointerEvent?e.pointerType==="mouse":e instanceof MouseEvent}function OC(e){var t=!!e.touches;return t}function bN(e){return function(t){var n=t instanceof MouseEvent,r=!n||n&&t.button===0;r&&e(t)}}var wN={pageX:0,pageY:0};function xN(e,t){t===void 0&&(t="page");var n=e.touches[0]||e.changedTouches[0],r=n||wN;return{x:r[t+"X"],y:r[t+"Y"]}}function SN(e,t){return t===void 0&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function sy(e,t){return t===void 0&&(t="page"),{point:OC(e)?xN(e,t):SN(e,t)}}var _C=function(e,t){t===void 0&&(t=!1);var n=function(r){return e(r,sy(r))};return t?bN(n):n},TN=function(){return Af&&window.onpointerdown===null},CN=function(){return Af&&window.ontouchstart===null},EN=function(){return Af&&window.onmousedown===null},kN={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},DN={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function PC(e){return TN()?e:CN()?DN[e]:EN()?kN[e]:e}function Sf(e,t,n,r){return Np(e,PC(t),_C(n,t==="pointerdown"),r)}function ap(e,t,n,r){return Kv(e,PC(t),n&&_C(n,t==="pointerdown"),r)}function RC(e){var t=null;return function(){var n=function(){t=null};return t===null?(t=e,n):!1}}var ww=RC("dragHorizontal"),xw=RC("dragVertical");function IC(e){var t=!1;if(e==="y")t=xw();else if(e==="x")t=ww();else{var n=ww(),r=xw();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function AC(){var e=IC(!0);return e?(e(),!1):!0}function Sw(e,t,n){return function(r,i){var o;!DC(r)||AC()||((o=e.animationState)===null||o===void 0||o.setActive(An.Hover,t),n==null||n(r,i))}}function ON(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,i=e.visualElement;ap(i,"pointerenter",t||r?Sw(i,!0,t):void 0,{passive:!t}),ap(i,"pointerleave",n||r?Sw(i,!1,n):void 0,{passive:!n})}var MC=function(e,t){return t?e===t?!0:MC(e,t.parentElement):!1};function LC(e){return q.useEffect(function(){return function(){return e()}},[])}const sp=(e,t,n)=>Math.min(Math.max(n,e),t),Tw=.001,_N=.01,Cw=10,PN=.05,RN=1;function IN({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;Hd(e<=Cw*1e3,"Spring duration must be 10 seconds or less");let s=1-t;s=sp(PN,RN,s),e=sp(_N,Cw,e/1e3),s<1?(i=p=>{const y=p*s,g=y*e,S=y-n,C=Zv(p,s),P=Math.exp(-g);return Tw-S/C*P},o=p=>{const g=p*s*e,S=g*n+n,C=Math.pow(s,2)*Math.pow(p,2)*e,P=Math.exp(-g),A=Zv(Math.pow(p,2),s);return(-i(p)+Tw>0?-1:1)*((S-C)*P)/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 c=5/e,f=MN(i,o,c);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 AN=12;function MN(e,t,n){let r=n;for(let i=1;i<AN;i++)r=r-e(r)/t(r);return r}function Zv(e,t){return e*Math.sqrt(1-t*t)}const LN=["duration","bounce"],FN=["stiffness","damping","mass"];function Ew(e,t){return t.some(n=>e[n]!==void 0)}function NN(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Ew(e,FN)&&Ew(e,LN)){const n=IN(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function ly(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,o=Pa(e,["from","to","restSpeed","restDelta"]);const s={done:!1,value:t};let{stiffness:c,damping:f,mass:p,velocity:y,duration:g,isResolvedFromDuration:S}=NN(o),C=kw,P=kw;function A(){const M=y?-(y/1e3):0,R=n-t,V=f/(2*Math.sqrt(c*p)),U=Math.sqrt(c/p)/1e3;if(i===void 0&&(i=Math.min(Math.abs(n-t)/100,.4)),V<1){const J=Zv(U,V);C=K=>{const le=Math.exp(-V*U*K);return n-le*((M+V*U*R)/J*Math.sin(J*K)+R*Math.cos(J*K))},P=K=>{const le=Math.exp(-V*U*K);return V*U*le*(Math.sin(J*K)*(M+V*U*R)/J+R*Math.cos(J*K))-le*(Math.cos(J*K)*(M+V*U*R)-J*R*Math.sin(J*K))}}else if(V===1)C=J=>n-Math.exp(-U*J)*(R+(M+U*R)*J);else{const J=U*Math.sqrt(V*V-1);C=K=>{const le=Math.exp(-V*U*K),T=Math.min(J*K,300);return n-le*((M+V*U*R)*Math.sinh(T)+J*R*Math.cosh(T))/J}}}return A(),{next:M=>{const R=C(M);if(S)s.done=M>=g;else{const V=P(M)*1e3,U=Math.abs(V)<=r,J=Math.abs(n-R)<=i;s.done=U&&J}return s.value=s.done?n:R,s},flipTarget:()=>{y=-y,[t,n]=[n,t],A()}}}ly.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const kw=e=>0,Id=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},or=(e,t,n)=>-n*e+n*t+e;function Ug(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 Dw({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 c=n<.5?n*(1+t):n+t-n*t,f=2*n-c;i=Ug(f,c,e+1/3),o=Ug(f,c,e),s=Ug(f,c,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const jN=(e,t,n)=>{const r=e*e,i=t*t;return Math.sqrt(Math.max(0,n*(i-r)+r))},BN=[qv,pu,vc],Ow=e=>BN.find(t=>t.test(e)),_w=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,FC=(e,t)=>{let n=Ow(e),r=Ow(t);Oa(!!n,_w(e)),Oa(!!r,_w(t));let i=n.parse(e),o=r.parse(t);n===vc&&(i=Dw(i),n=pu),r===vc&&(o=Dw(o),r=pu);const s=Object.assign({},i);return c=>{for(const f in s)f!=="alpha"&&(s[f]=jN(i[f],o[f],c));return s.alpha=or(i.alpha,o.alpha,c),n.transform(s)}},Jv=e=>typeof e=="number",$N=(e,t)=>n=>t(e(n)),jp=(...e)=>e.reduce($N);function NC(e,t){return Jv(e)?n=>or(e,t,n):to.test(e)?FC(e,t):BC(e,t)}const jC=(e,t)=>{const n=[...e],r=n.length,i=e.map((o,s)=>NC(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}},VN=(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]=NC(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}};function Pw(e){const t=Dl.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 BC=(e,t)=>{const n=Dl.createTransformer(t),r=Pw(e),i=Pw(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?jp(jC(r.parsed,i.parsed),n):(Hd(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),s=>`${s>0?t:e}`)},HN=(e,t)=>n=>or(e,t,n);function UN(e){if(typeof e=="number")return HN;if(typeof e=="string")return to.test(e)?FC:BC;if(Array.isArray(e))return jC;if(typeof e=="object")return VN}function WN(e,t,n){const r=[],i=n||UN(e[0]),o=e.length-1;for(let s=0;s<o;s++){let c=i(e[s],e[s+1]);if(t){const f=Array.isArray(t)?t[s]:t;c=jp(f,c)}r.push(c)}return r}function zN([e,t],[n]){return r=>n(Id(e,t,r))}function YN(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 c=Id(e[o],e[o+1],i);return t[o](c)}}function $C(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;Oa(o===t.length,"Both input and output ranges must be the same length"),Oa(!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=WN(t,r,i),c=o===2?zN(e,s):YN(e,s);return n?f=>c(sp(e[0],e[o-1],f)):c}const Bp=e=>t=>1-e(1-t),uy=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,GN=e=>t=>Math.pow(t,e),VC=e=>t=>t*t*((e+1)*t-e),qN=e=>{const t=VC(e);return n=>(n*=2)<1?.5*t(n):.5*(2-Math.pow(2,-10*(n-1)))},HC=1.525,XN=4/11,KN=8/11,ZN=9/10,cy=e=>e,fy=GN(2),JN=Bp(fy),UC=uy(fy),WC=e=>1-Math.sin(Math.acos(e)),dy=Bp(WC),QN=uy(dy),hy=VC(HC),ej=Bp(hy),tj=uy(hy),nj=qN(HC),rj=4356/361,ij=35442/1805,oj=16061/1805,lp=e=>{if(e===1||e===0)return e;const t=e*e;return e<XN?7.5625*t:e<KN?9.075*t-9.9*e+3.4:e<ZN?rj*t-ij*e+oj:10.8*e*e-20.52*e+10.72},aj=Bp(lp),sj=e=>e<.5?.5*(1-lp(1-e*2)):.5*lp(e*2-1)+.5;function lj(e,t){return e.map(()=>t||UC).splice(0,e.length-1)}function uj(e){const t=e.length;return e.map((n,r)=>r!==0?r/(t-1):0)}function cj(e,t){return e.map(n=>n*t)}function Uh({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],c=cj(r&&r.length===s.length?r:uj(s),i);function f(){return $C(c,s,{ease:Array.isArray(n)?n:lj(s,n)})}let p=f();return{next:y=>(o.value=p(y),o.done=y>=i,o),flipTarget:()=>{s.reverse(),p=f()}}}function fj({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:o}){const s={done:!1,value:t};let c=n*e;const f=t+c,p=o===void 0?f:o(f);return p!==f&&(c=p-t),{next:y=>{const g=-c*Math.exp(-y/r);return s.done=!(g>i||g<-i),s.value=s.done?p:p+g,s},flipTarget:()=>{}}}const Rw={keyframes:Uh,spring:ly,decay:fj};function dj(e){if(Array.isArray(e.to))return Uh;if(Rw[e.type])return Rw[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Uh:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?ly:Uh}const zC=1/60*1e3,hj=typeof performance<"u"?()=>performance.now():()=>Date.now(),YC=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(hj()),zC);function pj(e){let t=[],n=[],r=0,i=!1,o=!1;const s=new WeakSet,c={schedule:(f,p=!1,y=!1)=>{const g=y&&i,S=g?t:n;return p&&s.add(f),S.indexOf(f)===-1&&(S.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)&&(c.schedule(y),e())}i=!1,o&&(o=!1,c.process(f))}};return c}const gj=40;let Qv=!0,Ad=!1,em=!1;const Tf={delta:0,timestamp:0},Yd=["read","update","preRender","render","postRender"],$p=Yd.reduce((e,t)=>(e[t]=pj(()=>Ad=!0),e),{}),Bs=Yd.reduce((e,t)=>{const n=$p[t];return e[t]=(r,i=!1,o=!1)=>(Ad||mj(),n.schedule(r,i,o)),e},{}),kf=Yd.reduce((e,t)=>(e[t]=$p[t].cancel,e),{}),Wg=Yd.reduce((e,t)=>(e[t]=()=>$p[t].process(Tf),e),{}),vj=e=>$p[e].process(Tf),GC=e=>{Ad=!1,Tf.delta=Qv?zC:Math.max(Math.min(e-Tf.timestamp,gj),1),Tf.timestamp=e,em=!0,Yd.forEach(vj),em=!1,Ad&&(Qv=!1,YC(GC))},mj=()=>{Ad=!0,Qv=!0,em||YC(GC)},up=()=>Tf;function qC(e,t,n=0){return e-t-n}function yj(e,t,n=0,r=!0){return r?qC(t+-e,t,n):t-(e-t)+n}function bj(e,t,n,r){return r?e>=t+n:e<=-n}const wj=e=>{const t=({delta:n})=>e(n);return{start:()=>Bs.update(t,!0),stop:()=>kf.update(t)}};function XC(e){var t,n,{from:r,autoplay:i=!0,driver:o=wj,elapsed:s=0,repeat:c=0,repeatType:f="loop",repeatDelay:p=0,onPlay:y,onStop:g,onComplete:S,onRepeat:C,onUpdate:P}=e,A=Pa(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:M}=A,R,V=0,U=A.duration,J,K=!1,le=!0,T;const he=dj(A);!((n=(t=he).needsInterpolation)===null||n===void 0)&&n.call(t,r,M)&&(T=$C([0,100],[r,M],{clamp:!1}),r=0,M=100);const oe=he(Object.assign(Object.assign({},A),{from:r,to:M}));function ze(){V++,f==="reverse"?(le=V%2===0,s=yj(s,U,p,le)):(s=qC(s,U,p),f==="mirror"&&oe.flipTarget()),K=!1,C&&C()}function je(){R.stop(),S&&S()}function Pe(He){if(le||(He=-He),s+=He,!K){const ce=oe.next(Math.max(0,s));J=ce.value,T&&(J=T(J)),K=le?ce.done:s<=0}P==null||P(J),K&&(V===0&&(U??(U=s)),V<c?bj(s,U,p,le)&&ze():je())}function Be(){y==null||y(),R=o(Pe),R.start()}return i&&Be(),{stop:()=>{g==null||g(),R.stop()}}}function KC(e,t){return t?e*(1e3/t):0}function xj({from:e=0,velocity:t=0,min:n,max:r,power:i=.8,timeConstant:o=750,bounceStiffness:s=500,bounceDamping:c=10,restDelta:f=1,modifyTarget:p,driver:y,onUpdate:g,onComplete:S,onStop:C}){let P;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 R(U){P==null||P.stop(),P=XC(Object.assign(Object.assign({},U),{driver:y,onUpdate:J=>{var K;g==null||g(J),(K=U.onUpdate)===null||K===void 0||K.call(U,J)},onComplete:S,onStop:C}))}function V(U){R(Object.assign({type:"spring",stiffness:s,damping:c,restDelta:f},U))}if(A(e))V({from:e,velocity:t,to:M(e)});else{let U=i*t+e;typeof p<"u"&&(U=p(U));const J=M(U),K=J===n?-1:1;let le,T;const he=oe=>{le=T,T=oe,t=KC(oe-le,up().delta),(K===1&&oe>J||K===-1&&oe<J)&&V({from:oe,to:J,velocity:t})};R({type:"decay",from:e,velocity:t,timeConstant:o,power:i,restDelta:f,modifyTarget:p,onUpdate:A(U)?he:void 0})}return{stop:()=>P==null?void 0:P.stop()}}const tm=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),Iw=e=>tm(e)&&e.hasOwnProperty("z"),xh=(e,t)=>Math.abs(e-t);function ZC(e,t){if(Jv(e)&&Jv(t))return xh(e,t);if(tm(e)&&tm(t)){const n=xh(e.x,t.x),r=xh(e.y,t.y),i=Iw(e)&&Iw(t)?xh(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}const JC=(e,t)=>1-3*t+3*e,QC=(e,t)=>3*t-6*e,eE=e=>3*e,cp=(e,t,n)=>((JC(t,n)*e+QC(t,n))*e+eE(t))*e,tE=(e,t,n)=>3*JC(t,n)*e*e+2*QC(t,n)*e+eE(t),Sj=1e-7,Tj=10;function Cj(e,t,n,r,i){let o,s,c=0;do s=t+(n-t)/2,o=cp(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>Sj&&++c<Tj);return s}const Ej=8,kj=.001;function Dj(e,t,n,r){for(let i=0;i<Ej;++i){const o=tE(t,n,r);if(o===0)return t;const s=cp(t,n,r)-e;t-=s/o}return t}const Wh=11,Sh=1/(Wh-1);function Oj(e,t,n,r){if(e===t&&n===r)return cy;const i=new Float32Array(Wh);for(let s=0;s<Wh;++s)i[s]=cp(s*Sh,e,n);function o(s){let c=0,f=1;const p=Wh-1;for(;f!==p&&i[f]<=s;++f)c+=Sh;--f;const y=(s-i[f])/(i[f+1]-i[f]),g=c+y*Sh,S=tE(g,e,n);return S>=kj?Dj(s,g,e,n):S===0?g:Cj(s,c,c+Sh,e,n)}return s=>s===0||s===1?s:cp(o(s),t,r)}function _j(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,i=e.whileTap,o=e.visualElement,s=t||n||r||i,c=q.useRef(!1),f=q.useRef(null),p={passive:!(n||t||r||P)};function y(){var A;(A=f.current)===null||A===void 0||A.call(f),f.current=null}function g(){var A;return y(),c.current=!1,(A=o.animationState)===null||A===void 0||A.setActive(An.Tap,!1),!AC()}function S(A,M){g()&&(MC(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 P(A,M){var R;y(),!c.current&&(c.current=!0,f.current=jp(Sf(window,"pointerup",S,p),Sf(window,"pointercancel",C,p)),(R=o.animationState)===null||R===void 0||R.setActive(An.Tap,!0),n==null||n(A,M))}ap(o,"pointerdown",s?P:void 0,p),LC(y)}var Aw=new Set;function nE(e,t,n){e||Aw.has(t)||(console.warn(t),Aw.add(t))}var nm=new WeakMap,zg=new WeakMap,Pj=function(e){var t;(t=nm.get(e.target))===null||t===void 0||t(e)},Rj=function(e){e.forEach(Pj)};function Ij(e){var t=e.root,n=Pa(e,["root"]),r=t||document;zg.has(r)||zg.set(r,{});var i=zg.get(r),o=JSON.stringify(n);return i[o]||(i[o]=new IntersectionObserver(Rj,nt({root:t},n))),i[o]}function Aj(e,t,n){var r=Ij(t);return nm.set(e,n),r.observe(e),function(){nm.delete(e),r.unobserve(e)}}function Mj(e){var t=e.visualElement,n=e.whileInView,r=e.onViewportEnter,i=e.onViewportLeave,o=e.viewport,s=o===void 0?{}:o,c=q.useRef({hasEnteredView:!1,isInView:!1}),f=!!(n||r||i);s.once&&c.current.hasEnteredView&&(f=!1);var p=typeof IntersectionObserver>"u"?Nj:Fj;p(f,c.current,t,s)}var Lj={some:0,all:1};function Fj(e,t,n,r){var i=r.root,o=r.margin,s=r.amount,c=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 c=="number"?c:Lj[c]},y=function(g){var S,C=g.isIntersecting;if(t.isInView!==C&&(t.isInView=C,!(f&&!C&&t.hasEnteredView))){C&&(t.hasEnteredView=!0),(S=n.animationState)===null||S===void 0||S.setActive(An.InView,C);var P=n.getProps(),A=C?P.onViewportEnter:P.onViewportLeave;A==null||A(g)}};return Aj(n.getInstance(),p,y)}},[e,i,o,c])}function Nj(e,t,n,r){var i=r.fallback,o=i===void 0?!0:i;q.useEffect(function(){!e||!o||(ZT!=="production"&&nE(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(function(){var s;t.hasEnteredView=!0;var c=n.getProps().onViewportEnter;c==null||c(null),(s=n.animationState)===null||s===void 0||s.setActive(An.InView,!0)}))},[e])}var gu=function(e){return function(t){return e(t),null}},jj={inView:gu(Mj),tap:gu(_j),focus:gu(yN),hover:gu(ON)},Bj=0,$j=function(){return Bj++},Vj=function(){return Fp($j)};function rE(){var e=q.useContext(Ap);if(e===null)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,i=Vj();q.useEffect(function(){return r(i)},[]);var o=function(){return n==null?void 0:n(i)};return!t&&n?[!1,o]:[!0]}function iE(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 fp=function(e){return e*1e3},Mw={linear:cy,easeIn:fy,easeInOut:UC,easeOut:JN,circIn:WC,circInOut:QN,circOut:dy,backIn:hy,backInOut:tj,backOut:ej,anticipate:nj,bounceIn:aj,bounceInOut:sj,bounceOut:lp},Lw=function(e){if(Array.isArray(e)){Oa(e.length===4,"Cubic bezier arrays must contain four numerical values.");var t=Wr(e,4),n=t[0],r=t[1],i=t[2],o=t[3];return Oj(n,r,i,o)}else if(typeof e=="string")return Oa(Mw[e]!==void 0,"Invalid easing type '".concat(e,"'")),Mw[e];return e},Hj=function(e){return Array.isArray(e)&&typeof e[0]!="number"},Fw=function(e,t){return e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&Dl.test(t)&&!t.startsWith("url("))},sc=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},Th=function(e){return{type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}},Yg=function(){return{type:"keyframes",ease:"linear",duration:.3}},Uj=function(e){return{type:"keyframes",duration:.8,values:e}},Nw={x:sc,y:sc,z:sc,rotate:sc,rotateX:sc,rotateY:sc,rotateZ:sc,scaleX:Th,scaleY:Th,scale:Th,opacity:Yg,backgroundColor:Yg,color:Yg,default:Th},Wj=function(e,t){var n;return Rd(t)?n=Uj:n=Nw[e]||Nw.default,nt({to:t},n(t))},zj=nt(nt({},vC),{color:to,backgroundColor:to,outlineColor:to,fill:to,stroke:to,borderColor:to,borderTopColor:to,borderRightColor:to,borderBottomColor:to,borderLeftColor:to,filter:Xv,WebkitFilter:Xv}),py=function(e){return zj[e]};function gy(e,t){var n,r=py(e);return r!==Xv&&(r=Dl),(n=r.getAnimatableNone)===null||n===void 0?void 0:n.call(r,t)}function Yj(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=Pa(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}var jw=!1;function Gj(e){var t=e.ease,n=e.times,r=e.yoyo,i=e.flip,o=e.loop,s=Pa(e,["ease","times","yoyo","flip","loop"]),c=nt({},s);return n&&(c.offset=n),s.duration&&(c.duration=fp(s.duration)),s.repeatDelay&&(c.repeatDelay=fp(s.repeatDelay)),t&&(c.ease=Hj(t)?t.map(Lw):Lw(t)),s.type==="tween"&&(c.type="keyframes"),(r||o||i)&&(Hd(!jw,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),jw=!0,r?c.repeatType="reverse":o?c.repeatType="loop":i&&(c.repeatType="mirror"),c.repeat=o||r||i||s.repeat),s.type!=="spring"&&(c.type="keyframes"),c}function qj(e,t){var n,r,i=vy(e,t)||{};return(r=(n=i.delay)!==null&&n!==void 0?n:e.delay)!==null&&r!==void 0?r:0}function Xj(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=Xo([],Wr(e.to),!1),e.to[0]=e.from),e}function Kj(e,t,n){var r;return Array.isArray(t.to)&&((r=e.duration)!==null&&r!==void 0||(e.duration=.8)),Xj(t),Yj(e)||(e=nt(nt({},e),Wj(n,t.to))),nt(nt({},t),Gj(e))}function Zj(e,t,n,r,i){var o,s=vy(r,e),c=(o=s.from)!==null&&o!==void 0?o:t.get(),f=Fw(e,n);c==="none"&&f&&typeof n=="string"?c=gy(e,n):Bw(c)&&typeof n=="string"?c=$w(n):!Array.isArray(n)&&Bw(n)&&typeof c=="string"&&(n=$w(c));var p=Fw(e,c);Hd(p===f,"You are trying to animate ".concat(e,' from "').concat(c,'" to "').concat(n,'". ').concat(c," is not an animatable value - to enable this animation set ").concat(c," to a value animatable to ").concat(n," via the `style` property."));function y(){var S={from:c,to:n,velocity:t.getVelocity(),onComplete:i,onUpdate:function(C){return t.set(C)}};return s.type==="inertia"||s.type==="decay"?xj(nt(nt({},S),s)):XC(nt(nt({},Kj(s,S,e)),{onUpdate:function(C){var P;S.onUpdate(C),(P=s.onUpdate)===null||P===void 0||P.call(s,C)},onComplete:function(){var C;S.onComplete(),(C=s.onComplete)===null||C===void 0||C.call(s)}}))}function g(){var S,C,P=EC(n);return t.set(P),i(),(S=s==null?void 0:s.onUpdate)===null||S===void 0||S.call(s,P),(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 Bw(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function $w(e){return typeof e=="number"?0:gy("",e)}function vy(e,t){return e[t]||e.default||e}function my(e,t,n,r){return r===void 0&&(r={}),t.start(function(i){var o,s,c=Zj(e,t,n,r,i),f=qj(r,e),p=function(){return s=c()};return f?o=window.setTimeout(p,fp(f)):p(),function(){clearTimeout(o),s==null||s.stop()}})}var Jj=function(e){return/^\-?\d*\.?\d+$/.test(e)},Qj=function(e){return/^0[^.\s]+$/.test(e)};function yy(e,t){e.indexOf(t)===-1&&e.push(t)}function by(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var hd=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(t){var n=this;return yy(this.subscriptions,t),function(){return by(n.subscriptions,t)}},e.prototype.notify=function(t,n,r){var i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(var o=0;o<i;o++){var s=this.subscriptions[o];s&&s(t,n,r)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),eB=function(e){return!isNaN(parseFloat(e))},tB=function(){function e(t){var n=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new hd,this.velocityUpdateSubscribers=new hd,this.renderSubscribers=new hd,this.canTrackVelocity=!1,this.updateAndNotify=function(r,i){i===void 0&&(i=!0),n.prev=n.current,n.current=r;var o=up(),s=o.delta,c=o.timestamp;n.lastUpdated!==c&&(n.timeDelta=s,n.lastUpdated=c,Bs.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 Bs.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=eB(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?KC(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 Df(e){return new tB(e)}var oE=function(e){return function(t){return t.test(e)}},nB={test:function(e){return e==="auto"},parse:function(e){return e}},aE=[Oc,Rt,js,lu,zF,WF,nB],td=function(e){return aE.find(oE(e))},rB=Xo(Xo([],Wr(aE),!1),[to,Dl],!1),iB=function(e){return rB.find(oE(e))};function oB(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Df(n))}function aB(e,t){var n=Mp(e,t),r=n?e.makeTargetAnimatable(n,!1):{},i=r.transitionEnd,o=i===void 0?{}:i;r.transition;var s=Pa(r,["transitionEnd","transition"]);s=nt(nt({},s),o);for(var c in s){var f=EC(s[c]);oB(e,c,f)}}function sB(e,t,n){var r,i,o,s,c=Object.keys(t).filter(function(C){return!e.hasValue(C)}),f=c.length;if(f)for(var p=0;p<f;p++){var y=c[p],g=t[y],S=null;Array.isArray(g)&&(S=g[0]),S===null&&(S=(i=(r=n[y])!==null&&r!==void 0?r:e.readValue(y))!==null&&i!==void 0?i:t[y]),S!=null&&(typeof S=="string"&&(Jj(S)||Qj(S))?S=parseFloat(S):!iB(S)&&Dl.test(g)&&(S=gy(y,g)),e.addValue(y,Df(S)),(o=(s=n)[y])!==null&&o!==void 0||(s[y]=S),e.setBaseTarget(y,S))}}function lB(e,t){if(t){var n=t[e]||t.default||t;return n.from}}function uB(e,t,n){var r,i,o={};for(var s in e)o[s]=(r=lB(s,t))!==null&&r!==void 0?r:(i=n.getValue(s))===null||i===void 0?void 0:i.get();return o}function cB(e,t,n){n===void 0&&(n={}),e.notifyAnimationStart(t);var r;if(Array.isArray(t)){var i=t.map(function(s){return rm(e,s,n)});r=Promise.all(i)}else if(typeof t=="string")r=rm(e,t,n);else{var o=typeof t=="function"?Mp(e,t,n.custom):t;r=sE(e,o,n)}return r.then(function(){return e.notifyAnimationComplete(t)})}function rm(e,t,n){var r;n===void 0&&(n={});var i=Mp(e,t,n.custom),o=(i||{}).transition,s=o===void 0?e.getDefaultTransition()||{}:o;n.transitionOverride&&(s=n.transitionOverride);var c=i?function(){return sE(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 P=s.delayChildren,A=P===void 0?0:P,M=s.staggerChildren,R=s.staggerDirection;return fB(e,t,A+C,M,R,n)}:function(){return Promise.resolve()},p=s.when;if(p){var y=Wr(p==="beforeChildren"?[c,f]:[f,c],2),g=y[0],S=y[1];return g().then(S)}else return Promise.all([c(),f(n.delay)])}function sE(e,t,n){var r,i=n===void 0?{}:n,o=i.delay,s=o===void 0?0:o,c=i.transitionOverride,f=i.type,p=e.makeTargetAnimatable(t),y=p.transition,g=y===void 0?e.getDefaultTransition():y,S=p.transitionEnd,C=Pa(p,["transition","transitionEnd"]);c&&(g=c);var P=[],A=f&&((r=e.animationState)===null||r===void 0?void 0:r.getState()[f]);for(var M in C){var R=e.getValue(M),V=C[M];if(!(!R||V===void 0||A&&hB(A,M))){var U=nt({delay:s},g);e.shouldReduceMotion&&Ud(M)&&(U=nt(nt({},U),{type:!1,delay:0}));var J=my(M,R,V,U);P.push(J)}}return Promise.all(P).then(function(){S&&aB(e,S)})}function fB(e,t,n,r,i,o){n===void 0&&(n=0),r===void 0&&(r=0),i===void 0&&(i=1);var s=[],c=(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),c-p*r};return Array.from(e.variantChildren).sort(dB).forEach(function(p,y){s.push(rm(p,t,nt(nt({},o),{delay:n+f(y)})).then(function(){return p.notifyAnimationComplete(t)}))}),Promise.all(s)}function dB(e,t){return e.sortNodePosition(t)}function hB(e,t){var n=e.protectedKeys,r=e.needsAnimating,i=n.hasOwnProperty(t)&&r[t]!==!0;return r[t]=!1,i}var wy=[An.Animate,An.InView,An.Focus,An.Hover,An.Tap,An.Drag,An.Exit],pB=Xo([],Wr(wy),!1).reverse(),gB=wy.length;function vB(e){return function(t){return Promise.all(t.map(function(n){var r=n.animation,i=n.options;return cB(e,r,i)}))}}function mB(e){var t=vB(e),n=bB(),r={},i=!0,o=function(y,g){var S=Mp(e,g);if(S){S.transition;var C=S.transitionEnd,P=Pa(S,["transition","transitionEnd"]);y=nt(nt(nt({},y),P),C)}return y};function s(y){return r[y]!==void 0}function c(y){t=y(e)}function f(y,g){for(var S,C=e.getProps(),P=e.getVariantContext(!0)||{},A=[],M=new Set,R={},V=1/0,U=function(T){var he=pB[T],oe=n[he],ze=(S=C[he])!==null&&S!==void 0?S:P[he],je=is(ze),Pe=he===g?oe.isActive:null;Pe===!1&&(V=T);var Be=ze===P[he]&&ze!==C[he]&&je;if(Be&&i&&e.manuallyAnimateOnMount&&(Be=!1),oe.protectedKeys=nt({},R),!oe.isActive&&Pe===null||!ze&&!oe.prevProp||ay(ze)||typeof ze=="boolean")return"continue";var He=yB(oe.prevProp,ze),ce=He||he===g&&oe.isActive&&!Be&&je||T>V&&je,Se=Array.isArray(ze)?ze:[ze],Ie=Se.reduce(o,{});Pe===!1&&(Ie={});var Ge=oe.prevResolvedValues,tt=Ge===void 0?{}:Ge,we=nt(nt({},tt),Ie),Ee=function(_e){ce=!0,M.delete(_e),oe.needsAnimating[_e]=!0};for(var Ue in we){var $e=Ie[Ue],ke=tt[Ue];R.hasOwnProperty(Ue)||($e!==ke?Rd($e)&&Rd(ke)?!iE($e,ke)||He?Ee(Ue):oe.protectedKeys[Ue]=!0:$e!==void 0?Ee(Ue):M.add(Ue):$e!==void 0&&M.has(Ue)?Ee(Ue):oe.protectedKeys[Ue]=!0)}oe.prevProp=ze,oe.prevResolvedValues=Ie,oe.isActive&&(R=nt(nt({},R),Ie)),i&&e.blockInitialAnimation&&(ce=!1),ce&&!Be&&A.push.apply(A,Xo([],Wr(Se.map(function(_e){return{animation:_e,options:nt({type:he},y)}})),!1))},J=0;J<gB;J++)U(J);if(r=nt({},R),M.size){var K={};M.forEach(function(T){var he=e.getBaseTarget(T);he!==void 0&&(K[T]=he)}),A.push({animation:K})}var le=!!A.length;return i&&C.initial===!1&&!e.manuallyAnimateOnMount&&(le=!1),i=!1,le?t(A):Promise.resolve()}function p(y,g,S){var C;if(n[y].isActive===g)return Promise.resolve();(C=e.variantChildren)===null||C===void 0||C.forEach(function(M){var R;return(R=M.animationState)===null||R===void 0?void 0:R.setActive(y,g)}),n[y].isActive=g;var P=f(S,y);for(var A in n)n[A].protectedKeys={};return P}return{isAnimated:s,animateChanges:f,setActive:p,setAnimateFunction:c,getState:function(){return n}}}function yB(e,t){return typeof t=="string"?t!==e:tC(t)?!iE(t,e):!1}function lc(e){return e===void 0&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function bB(){var e;return e={},e[An.Animate]=lc(!0),e[An.InView]=lc(),e[An.Hover]=lc(),e[An.Tap]=lc(),e[An.Drag]=lc(),e[An.Focus]=lc(),e[An.Exit]=lc(),e}var wB={animation:gu(function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=mB(t)),ay(n)&&q.useEffect(function(){return n.subscribe(t)},[n])}),exit:gu(function(e){var t=e.custom,n=e.visualElement,r=Wr(rE(),2),i=r[0],o=r[1],s=q.useContext(Ap);q.useEffect(function(){var c,f;n.isPresent=i;var p=(c=n.animationState)===null||c===void 0?void 0:c.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])})},lE=function(){function e(t,n,r){var i=this,o=r===void 0?{}:r,s=o.transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(i.lastMoveEvent&&i.lastMoveEventInfo){var S=qg(i.lastMoveEventInfo,i.history),C=i.startEvent!==null,P=ZC(S.offset,{x:0,y:0})>=3;if(!(!C&&!P)){var A=S.point,M=up().timestamp;i.history.push(nt(nt({},A),{timestamp:M}));var R=i.handlers,V=R.onStart,U=R.onMove;C||(V&&V(i.lastMoveEvent,S),i.startEvent=i.lastMoveEvent),U&&U(i.lastMoveEvent,S)}}},this.handlePointerMove=function(S,C){if(i.lastMoveEvent=S,i.lastMoveEventInfo=Gg(C,i.transformPagePoint),DC(S)&&S.buttons===0){i.handlePointerUp(S,C);return}Bs.update(i.updatePoint,!0)},this.handlePointerUp=function(S,C){i.end();var P=i.handlers,A=P.onEnd,M=P.onSessionEnd,R=qg(Gg(C,i.transformPagePoint),i.history);i.startEvent&&A&&A(S,R),M&&M(S,R)},!(OC(t)&&t.touches.length>1)){this.handlers=n,this.transformPagePoint=s;var c=sy(t),f=Gg(c,this.transformPagePoint),p=f.point,y=up().timestamp;this.history=[nt(nt({},p),{timestamp:y})];var g=n.onSessionStart;g&&g(t,qg(f,this.history)),this.removeListeners=jp(Sf(window,"pointermove",this.handlePointerMove),Sf(window,"pointerup",this.handlePointerUp),Sf(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(t){this.handlers=t},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),kf.update(this.updatePoint)},e}();function Gg(e,t){return t?{point:t(e.point)}:e}function Vw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function qg(e,t){var n=e.point;return{point:n,delta:Vw(n,uE(t)),offset:Vw(n,xB(t)),velocity:SB(t,.1)}}function xB(e){return e[0]}function uE(e){return e[e.length-1]}function SB(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,i=uE(e);n>=0&&(r=e[n],!(i.timestamp-r.timestamp>fp(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 Hw(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=.01),ZC(e,t)<n}function Uw(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),(Hw(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=or(n.min,n.max,e.origin)-e.originPoint,(Hw(e.translate)||isNaN(e.translate))&&(e.translate=0)}function pd(e,t,n,r){Uw(e.x,t.x,n.x,r==null?void 0:r.originX),Uw(e.y,t.y,n.y,r==null?void 0:r.originY)}function Ww(e,t,n){e.min=n.min+t.min,e.max=e.min+Ol(t)}function TB(e,t,n){Ww(e.x,t.x,n.x),Ww(e.y,t.y,n.y)}function zw(e,t,n){e.min=t.min-n.min,e.max=e.min+Ol(t)}function gd(e,t,n){zw(e.x,t.x,n.x),zw(e.y,t.y,n.y)}function CB(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 Yw(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function EB(e,t){var n=t.top,r=t.left,i=t.bottom,o=t.right;return{x:Yw(e.x,r,o),y:Yw(e.y,n,i)}}function Gw(e,t){var n,r=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&(n=Wr([i,r],2),r=n[0],i=n[1]),{min:r,max:i}}function kB(e,t){return{x:Gw(e.x,t.x),y:Gw(e.y,t.y)}}function DB(e,t){var n=.5,r=Ol(e),i=Ol(t);return i>r?n=Id(t.min,t.max-r,e.min):r>i&&(n=Id(e.min,e.max-i,t.min)),sp(0,1,n)}function OB(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 im=.35;function _B(e){return e===void 0&&(e=im),e===!1?e=0:e===!0&&(e=im),{x:qw(e,"left","right"),y:qw(e,"top","bottom")}}function qw(e,t,n){return{min:Xw(e,t),max:Xw(e,n)}}function Xw(e,t){var n;return typeof e=="number"?e:(n=e[t])!==null&&n!==void 0?n:0}var Kw=function(){return{translate:0,scale:1,origin:0,originPoint:0}},vd=function(){return{x:Kw(),y:Kw()}},Zw=function(){return{min:0,max:0}},Li=function(){return{x:Zw(),y:Zw()}};function Fs(e){return[e("x"),e("y")]}function cE(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 PB(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}function RB(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 Xg(e){return e===void 0||e===1}function fE(e){var t=e.scale,n=e.scaleX,r=e.scaleY;return!Xg(t)||!Xg(n)||!Xg(r)}function uu(e){return fE(e)||Jw(e.x)||Jw(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function Jw(e){return e&&e!=="0%"}function dp(e,t,n){var r=e-n,i=t*r;return n+i}function Qw(e,t,n,r,i){return i!==void 0&&(e=dp(e,i,r)),dp(e,n,r)+t}function om(e,t,n,r,i){t===void 0&&(t=0),n===void 0&&(n=1),e.min=Qw(e.min,t,n,r,i),e.max=Qw(e.max,t,n,r,i)}function dE(e,t){var n=t.x,r=t.y;om(e.x,n.translate,n.scale,n.originPoint),om(e.y,r.translate,r.scale,r.originPoint)}function IB(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 c,f,p=0;p<s;p++)c=n[p],f=c.projectionDelta,((o=(i=c.instance)===null||i===void 0?void 0:i.style)===null||o===void 0?void 0:o.display)!=="contents"&&(r&&c.options.layoutScroll&&c.scroll&&c!==c.root&&gf(e,{x:-c.scroll.x,y:-c.scroll.y}),f&&(t.x*=f.x.scale,t.y*=f.y.scale,dE(e,f)),r&&uu(c.latestValues)&&gf(e,c.latestValues))}}function fu(e,t){e.min=e.min+t,e.max=e.max+t}function ex(e,t,n){var r=Wr(n,3),i=r[0],o=r[1],s=r[2],c=t[s]!==void 0?t[s]:.5,f=or(e.min,e.max,c);om(e,t[i],t[o],f,t.scale)}var AB=["x","scaleX","originX"],MB=["y","scaleY","originY"];function gf(e,t){ex(e.x,t,AB),ex(e.y,t,MB)}function hE(e,t){return cE(RB(e.getBoundingClientRect(),t))}function LB(e,t,n){var r=hE(e,n),i=t.scroll;return i&&(fu(r.x,i.x),fu(r.y,i.y)),r}var FB=new WeakMap,NB=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 c=function(g){r.stopAnimation(),s&&r.snapToCursor(sy(g,"page").point)},f=function(g,S){var C,P=r.getProps(),A=P.drag,M=P.dragPropagation,R=P.onDragStart;A&&!M&&(r.openGlobalLock&&r.openGlobalLock(),r.openGlobalLock=IC(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),Fs(function(V){var U,J,K=r.getAxisMotionValue(V).get()||0;if(js.test(K)){var le=(J=(U=r.visualElement.projection)===null||U===void 0?void 0:U.layout)===null||J===void 0?void 0:J.actual[V];if(le){var T=Ol(le);K=T*(parseFloat(K)/100)}}r.originPoint[V]=K}),R==null||R(g,S),(C=r.visualElement.animationState)===null||C===void 0||C.setActive(An.Drag,!0))},p=function(g,S){var C=r.getProps(),P=C.dragPropagation,A=C.dragDirectionLock,M=C.onDirectionLock,R=C.onDrag;if(!(!P&&!r.openGlobalLock)){var V=S.offset;if(A&&r.currentDirection===null){r.currentDirection=jB(V),r.currentDirection!==null&&(M==null||M(r.currentDirection));return}r.updateAxis("x",S.point,V),r.updateAxis("y",S.point,V),r.visualElement.syncRender(),R==null||R(g,S)}},y=function(g,S){return r.stop(g,S)};this.panSession=new lE(t,{onSessionStart:c,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||!Ch(t,i,this.currentDirection))){var o=this.getAxisMotionValue(t),s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=CB(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&&pf(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&o?this.constraints=EB(o.actual,r):this.constraints=!1,this.elastic=_B(i),s!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Fs(function(c){t.getAxisMotionValue(c)&&(t.constraints[c]=OB(o.actual[c],t.constraints[c]))})},e.prototype.resolveRefConstraints=function(){var t=this.getProps(),n=t.dragConstraints,r=t.onMeasureDragConstraints;if(!n||!pf(n))return!1;var i=n.current;Oa(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=LB(i,o.root,this.visualElement.getTransformPagePoint()),c=kB(o.layout.actual,s);if(r){var f=r(PB(c));this.hasMutatedConstraints=!!f,f&&(c=cE(f))}return c},e.prototype.startAnimation=function(t){var n=this,r=this.getProps(),i=r.drag,o=r.dragMomentum,s=r.dragElastic,c=r.dragTransition,f=r.dragSnapToOrigin,p=r.onDragTransitionEnd,y=this.constraints||{},g=Fs(function(S){var C;if(Ch(S,i,n.currentDirection)){var P=(C=y==null?void 0:y[S])!==null&&C!==void 0?C:{};f&&(P={min:0,max:0});var A=s?200:1e6,M=s?40:1e7,R=nt(nt({type:"inertia",velocity:o?t[S]:0,bounceStiffness:A,bounceDamping:M,timeConstant:750,restDelta:1,restSpeed:10},c),P);return n.startAxisValueAnimation(S,R)}});return Promise.all(g).then(p)},e.prototype.startAxisValueAnimation=function(t,n){var r=this.getAxisMotionValue(t);return my(t,r,0,n)},e.prototype.stopAnimation=function(){var t=this;Fs(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;Fs(function(r){var i=n.getProps().drag;if(Ch(r,i,n.currentDirection)){var o=n.visualElement.projection,s=n.getAxisMotionValue(r);if(o&&o.layout){var c=o.layout.actual[r],f=c.min,p=c.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(!(!pf(o)||!s||!this.constraints)){this.stopAnimation();var c={x:0,y:0};Fs(function(p){var y=t.getAxisMotionValue(p);if(y){var g=y.get();c[p]=DB({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(),Fs(function(p){if(Ch(p,i,null)){var y=t.getAxisMotionValue(p),g=t.constraints[p],S=g.min,C=g.max;y.set(or(S,C,c[p]))}})}},e.prototype.addListeners=function(){var t=this,n;FB.set(this.visualElement,this);var r=this.visualElement.getInstance(),i=Sf(r,"pointerdown",function(p){var y=t.getProps(),g=y.drag,S=y.dragListener,C=S===void 0?!0:S;g&&C&&t.start(p)}),o=function(){var p=t.getProps().dragConstraints;pf(p)&&(t.constraints=t.resolveRefConstraints())},s=this.visualElement.projection,c=s.addEventListener("measure",o);s&&!s.layout&&((n=s.root)===null||n===void 0||n.updateScroll(),s.updateLayout()),o();var f=Np(window,"resize",function(){return t.scalePositionWithinConstraints()});return s.addEventListener("didUpdate",function(p){var y=p.delta,g=p.hasLayoutChanged;t.isDragging&&g&&(Fs(function(S){var C=t.getAxisMotionValue(S);C&&(t.originPoint[S]+=y[S].translate,C.set(C.get()+y[S].translate))}),t.visualElement.syncRender())}),function(){f(),i(),c()}},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,c=s===void 0?!1:s,f=t.dragConstraints,p=f===void 0?!1:f,y=t.dragElastic,g=y===void 0?im:y,S=t.dragMomentum,C=S===void 0?!0:S;return nt(nt({},t),{drag:r,dragDirectionLock:o,dragPropagation:c,dragConstraints:p,dragElastic:g,dragMomentum:C})},e}();function Ch(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function jB(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 BB(e){var t=e.dragControls,n=e.visualElement,r=Fp(function(){return new NB(n)});q.useEffect(function(){return t&&t.subscribe(r)},[r,t]),q.useEffect(function(){return r.addListeners()},[r])}function $B(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,i=e.onPanSessionStart,o=e.visualElement,s=t||n||r||i,c=q.useRef(null),f=q.useContext(Qm).transformPagePoint,p={onSessionStart:i,onStart:n,onMove:t,onEnd:function(g,S){c.current=null,r&&r(g,S)}};q.useEffect(function(){c.current!==null&&c.current.updateHandlers(p)});function y(g){c.current=new lE(g,p,{transformPagePoint:f})}ap(o,"pointerdown",s&&y),LC(function(){return c.current&&c.current.end()})}var VB={pan:gu($B),drag:gu(BB)},Eh=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];function HB(){var e=Eh.map(function(){return new hd}),t={},n={clearAllListeners:function(){return e.forEach(function(r){return r.clear()})},updatePropListeners:function(r){Eh.forEach(function(i){var o,s="on"+i,c=r[s];(o=t[i])===null||o===void 0||o.call(t),c&&(t[i]=n[s](c))})}};return e.forEach(function(r,i){n["on"+Eh[i]]=function(o){return r.add(o)},n["notify"+Eh[i]]=function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];return r.notify.apply(r,Xo([],Wr(o),!1))}}),n}function UB(e,t,n){var r;for(var i in t){var o=t[i],s=n[i];if(kl(o))e.addValue(i,o),process.env.NODE_ENV==="development"&&nE(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(kl(s))e.addValue(i,Df(o));else if(s!==o)if(e.hasValue(i)){var c=e.getValue(i);!c.hasAnimated&&c.set(o)}else e.addValue(i,Df((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 pE=function(e){var t=e.treeType,n=t===void 0?"":t,r=e.build,i=e.getBaseTarget,o=e.makeTargetAnimatable,s=e.measureViewportBox,c=e.render,f=e.readValueFromInstance,p=e.removeValueFromRenderState,y=e.sortNodePosition,g=e.scrapeMotionValuesFromProps;return function(S,C){var P=S.parent,A=S.props,M=S.presenceId,R=S.blockInitialAnimation,V=S.visualState,U=S.shouldReduceMotion;C===void 0&&(C={});var J=!1,K=V.latestValues,le=V.renderState,T,he=HB(),oe=new Map,ze=new Map,je={},Pe=nt({},K),Be;function He(){!T||!J||(ce(),c(T,le,A.style,$e.projection))}function ce(){r($e,le,K,C,A)}function Se(){he.notifyUpdate(K)}function Ie(ke,_e){var Ne=_e.onChange(function(at){K[ke]=at,A.onUpdate&&Bs.update(Se,!1,!0)}),rt=_e.onRenderRequest($e.scheduleRender);ze.set(ke,function(){Ne(),rt()})}var Ge=g(A);for(var tt in Ge){var we=Ge[tt];K[tt]!==void 0&&kl(we)&&we.set(K[tt],!1)}var Ee=Lp(A),Ue=rC(A),$e=nt(nt({treeType:n,current:null,depth:P?P.depth+1:0,parent:P,children:new Set,presenceId:M,shouldReduceMotion:U,variantChildren:Ue?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:!!(P!=null&&P.isMounted()),blockInitialAnimation:R,isMounted:function(){return!!T},mount:function(ke){J=!0,T=$e.current=ke,$e.projection&&$e.projection.mount(ke),Ue&&P&&!Ee&&(Be=P==null?void 0:P.addVariantChild($e)),oe.forEach(function(_e,Ne){return Ie(Ne,_e)}),P==null||P.children.add($e),$e.setProps(A)},unmount:function(){var ke;(ke=$e.projection)===null||ke===void 0||ke.unmount(),kf.update(Se),kf.render(He),ze.forEach(function(_e){return _e()}),Be==null||Be(),P==null||P.children.delete($e),he.clearAllListeners(),T=void 0,J=!1},addVariantChild:function(ke){var _e,Ne=$e.getClosestVariantNode();if(Ne)return(_e=Ne.variantChildren)===null||_e===void 0||_e.add(ke),function(){return Ne.variantChildren.delete(ke)}},sortNodePosition:function(ke){return!y||n!==ke.treeType?0:y($e.getInstance(),ke.getInstance())},getClosestVariantNode:function(){return Ue?$e:P==null?void 0:P.getClosestVariantNode()},getLayoutId:function(){return A.layoutId},getInstance:function(){return T},getStaticValue:function(ke){return K[ke]},setStaticValue:function(ke,_e){return K[ke]=_e},getLatestValues:function(){return K},setVisibility:function(ke){$e.isVisible!==ke&&($e.isVisible=ke,$e.scheduleRender())},makeTargetAnimatable:function(ke,_e){return _e===void 0&&(_e=!0),o($e,ke,A,_e)},measureViewportBox:function(){return s(T,A)},addValue:function(ke,_e){$e.hasValue(ke)&&$e.removeValue(ke),oe.set(ke,_e),K[ke]=_e.get(),Ie(ke,_e)},removeValue:function(ke){var _e;oe.delete(ke),(_e=ze.get(ke))===null||_e===void 0||_e(),ze.delete(ke),delete K[ke],p(ke,le)},hasValue:function(ke){return oe.has(ke)},getValue:function(ke,_e){var Ne=oe.get(ke);return Ne===void 0&&_e!==void 0&&(Ne=Df(_e),$e.addValue(ke,Ne)),Ne},forEachValue:function(ke){return oe.forEach(ke)},readValue:function(ke){var _e;return(_e=K[ke])!==null&&_e!==void 0?_e:f(T,ke,C)},setBaseTarget:function(ke,_e){Pe[ke]=_e},getBaseTarget:function(ke){if(i){var _e=i(A,ke);if(_e!==void 0&&!kl(_e))return _e}return Pe[ke]}},he),{build:function(){return ce(),le},scheduleRender:function(){Bs.render(He,!1,!0)},syncRender:He,setProps:function(ke){(ke.transformTemplate||A.transformTemplate)&&$e.scheduleRender(),A=ke,he.updatePropListeners(ke),je=UB($e,g(A),je)},getProps:function(){return A},getVariant:function(ke){var _e;return(_e=A.variants)===null||_e===void 0?void 0:_e[ke]},getDefaultTransition:function(){return A.transition},getTransformPagePoint:function(){return A.transformPagePoint},getVariantContext:function(ke){if(ke===void 0&&(ke=!1),ke)return P==null?void 0:P.getVariantContext();if(!Ee){var _e=(P==null?void 0:P.getVariantContext())||{};return A.initial!==void 0&&(_e.initial=A.initial),_e}for(var Ne={},rt=0;rt<WB;rt++){var at=gE[rt],ht=A[at];(is(ht)||ht===!1)&&(Ne[at]=ht)}return Ne}});return $e}},gE=Xo(["initial"],Wr(wy),!1),WB=gE.length;function am(e){return typeof e=="string"&&e.startsWith("var(--")}var vE=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function zB(e){var t=vE.exec(e);if(!t)return[,];var n=Wr(t,3),r=n[1],i=n[2];return[r,i]}var YB=4;function sm(e,t,n){n===void 0&&(n=1),Oa(n<=YB,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'));var r=Wr(zB(e),2),i=r[0],o=r[1];if(i){var s=window.getComputedStyle(t).getPropertyValue(i);return s?s.trim():am(o)?sm(o,t,n+1):o}}function GB(e,t,n){var r,i=Pa(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(am(y)){var g=sm(y,o);g&&p.set(g)}});for(var s in i){var c=i[s];if(am(c)){var f=sm(c,o);f&&(i[s]=f,n&&((r=n[s])!==null&&r!==void 0||(n[s]=c)))}}return{target:i,transitionEnd:n}}var qB=new Set(["width","height","top","left","right","bottom","x","y"]),mE=function(e){return qB.has(e)},XB=function(e){return Object.keys(e).some(mE)},yE=function(e,t){e.set(t,!1),e.set(t)},kh=function(e){return e===Oc||e===Rt},tx;(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"})(tx||(tx={}));var nx=function(e,t){return parseFloat(e.split(", ")[t])},rx=function(e,t){return function(n,r){var i=r.transform;if(i==="none"||!i)return 0;var o=i.match(/^matrix3d\((.+)\)$/);if(o)return nx(o[1],t);var s=i.match(/^matrix\((.+)\)$/);return s?nx(s[1],e):0}},KB=new Set(["x","y","z"]),ZB=_d.filter(function(e){return!KB.has(e)});function JB(e){var t=[];return ZB.forEach(function(n){var r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.syncRender(),t}var ix={width:function(e,t){var n=e.x,r=t.paddingLeft,i=r===void 0?"0":r,o=t.paddingRight,s=o===void 0?"0":o;return n.max-n.min-parseFloat(i)-parseFloat(s)},height:function(e,t){var n=e.y,r=t.paddingTop,i=r===void 0?"0":r,o=t.paddingBottom,s=o===void 0?"0":o;return n.max-n.min-parseFloat(i)-parseFloat(s)},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.y,r=t.top;return parseFloat(r)+(n.max-n.min)},right:function(e,t){var n=e.x,r=t.left;return parseFloat(r)+(n.max-n.min)},x:rx(4,13),y:rx(5,14)},QB=function(e,t,n){var r=t.measureViewportBox(),i=t.getInstance(),o=getComputedStyle(i),s=o.display,c={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(function(p){c[p]=ix[p](r,o)}),t.syncRender();var f=t.measureViewportBox();return n.forEach(function(p){var y=t.getValue(p);yE(y,c[p]),e[p]=ix[p](f,o)}),e},e$=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(mE),o=[],s=!1,c=[];if(i.forEach(function(y){var g=e.getValue(y);if(e.hasValue(y)){var S=n[y],C=td(S),P=t[y],A;if(Rd(P)){var M=P.length,R=P[0]===null?1:0;S=P[R],C=td(S);for(var V=R;V<M;V++)A?Oa(td(P[V])===A,"All keyframes must be of the same type"):(A=td(P[V]),Oa(A===C||kh(C)&&kh(A),"Keyframes must be of the same dimension as the current value"))}else A=td(P);if(C!==A)if(kh(C)&&kh(A)){var U=g.get();typeof U=="string"&&g.set(parseFloat(U)),typeof P=="string"?t[y]=parseFloat(P):Array.isArray(P)&&A===Rt&&(t[y]=P.map(parseFloat))}else C!=null&&C.transform&&(A!=null&&A.transform)&&(S===0||P===0)?S===0?g.set(A.transform(S)):t[y]=C.transform(P):(s||(o=JB(e),s=!0),c.push(y),r[y]=r[y]!==void 0?r[y]:t[y],yE(g,P))}}),c.length){var f=c.indexOf("height")>=0?window.pageYOffset:null,p=QB(t,e,c);return o.length&&o.forEach(function(y){var g=Wr(y,2),S=g[0],C=g[1];e.getValue(S).set(C)}),e.syncRender(),f!==null&&window.scrollTo({top:f}),{target:p,transitionEnd:r}}else return{target:t,transitionEnd:r}};function t$(e,t,n,r){return XB(t)?e$(e,t,n,r):{target:t,transitionEnd:r}}var n$=function(e,t,n,r){var i=GB(e,t,r);return t=i.target,r=i.transitionEnd,t$(e,t,n,r)};function r$(e){return window.getComputedStyle(e)}var bE={treeType:"dom",readValueFromInstance:function(e,t){if(Ud(t)){var n=py(t);return n&&n.default||0}else{var r=r$(e);return(lC(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 hE(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,c=Pa(t,["transition","transitionEnd"]),f=uB(c,o||{},e);if(i&&(s&&(s=i(s)),c&&(c=i(c)),f&&(f=i(f))),r){sB(e,c,f);var p=n$(e,c,f,s);s=p.transitionEnd,c=p.target}return nt({transition:o,transitionEnd:s},c)},scrapeMotionValuesFromProps:oy,build:function(e,t,n,r,i){e.isVisible!==void 0&&(t.style.visibility=e.isVisible?"visible":"hidden"),ny(t,n,r,i.transformTemplate)},render:xC},i$=pE(bE),o$=pE(nt(nt({},bE),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return Ud(t)?((n=py(t))===null||n===void 0?void 0:n.default)||0:(t=SC.has(t)?t:wC(t),e.getAttribute(t))},scrapeMotionValuesFromProps:CC,build:function(e,t,n,r,i){iy(t,n,r,i.transformTemplate)},render:TC})),a$=function(e,t){return ey(e)?o$(t,{enableHardwareAcceleration:!1}):i$(t,{enableHardwareAcceleration:!0})};function ox(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var nd={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=ox(e,t.target.x),r=ox(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},ax="_$css",s$={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,i=e,o=e.includes("var("),s=[];o&&(e=e.replace(vE,function(A){return s.push(A),ax}));var c=Dl.parse(e);if(c.length>5)return i;var f=Dl.createTransformer(e),p=typeof c[0]!="number"?1:0,y=r.x.scale*n.x,g=r.y.scale*n.y;c[0+p]/=y,c[1+p]/=g;var S=or(y,g,.5);typeof c[2+p]=="number"&&(c[2+p]/=S),typeof c[3+p]=="number"&&(c[3+p]/=S);var C=f(c);if(o){var P=0;C=C.replace(ax,function(){var A=s[P];return P++,A})}return C}},l$=function(e){KT(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,c=r.layoutId,f=i.projection;MF(c$),f&&(o!=null&&o.group&&o.group.add(f),s!=null&&s.register&&c&&s.register(f),f.root.didUpdate(),f.addEventListener("animationComplete",function(){n.safeToRemove()}),f.setOptions(nt(nt({},f.options),{onExitComplete:function(){return n.safeToRemove()}}))),cd.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(n){var r=this,i=this.props,o=i.layoutDependency,s=i.visualElement,c=i.drag,f=i.isPresent,p=s.projection;return p&&(p.isPresent=f,c||n.layoutDependency!==o||o===void 0?p.willUpdate():this.safeToRemove(),n.isPresent!==f&&(f?p.promote():p.relegate()||Bs.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 u$(e){var t=Wr(rE(),2),n=t[0],r=t[1],i=q.useContext(iC);return q.createElement(l$,nt({},e,{layoutGroup:i,switchLayoutGroup:q.useContext(oC),isPresent:n,safeToRemove:r}))}var c$={borderRadius:nt(nt({},nd),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:nd,borderTopRightRadius:nd,borderBottomLeftRadius:nd,borderBottomRightRadius:nd,boxShadow:s$},f$={measureLayout:u$};function d$(e,t,n){n===void 0&&(n={});var r=kl(e)?e:Df(e);return my("",r,t,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}var wE=["TopLeft","TopRight","BottomLeft","BottomRight"],h$=wE.length,sx=function(e){return typeof e=="string"?parseFloat(e):e},lx=function(e){return typeof e=="number"||Rt.test(e)};function p$(e,t,n,r,i,o){var s,c,f,p;i?(e.opacity=or(0,(s=n.opacity)!==null&&s!==void 0?s:1,g$(r)),e.opacityExit=or((c=t.opacity)!==null&&c!==void 0?c:1,0,v$(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<h$;y++){var g="border".concat(wE[y],"Radius"),S=ux(t,g),C=ux(n,g);if(!(S===void 0&&C===void 0)){S||(S=0),C||(C=0);var P=S===0||C===0||lx(S)===lx(C);P?(e[g]=Math.max(or(sx(S),sx(C),r),0),(js.test(C)||js.test(S))&&(e[g]+="%")):e[g]=C}}(t.rotate||n.rotate)&&(e.rotate=or(t.rotate||0,n.rotate||0,r))}function ux(e,t){var n;return(n=e[t])!==null&&n!==void 0?n:e.borderRadius}var g$=xE(0,.5,dy),v$=xE(.5,.95,cy);function xE(e,t,n){return function(r){return r<e?0:r>t?1:n(Id(e,t,r))}}function cx(e,t){e.min=t.min,e.max=t.max}function ns(e,t){cx(e.x,t.x),cx(e.y,t.y)}function fx(e,t,n,r,i){return e-=t,e=dp(e,1/n,r),i!==void 0&&(e=dp(e,1/i,r)),e}function m$(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),js.test(t)){t=parseFloat(t);var c=or(s.min,s.max,t/100);t=c-s.min}if(typeof t=="number"){var f=or(o.min,o.max,r);e===o&&(f-=t),e.min=fx(e.min,t,n,f,i),e.max=fx(e.max,t,n,f,i)}}function dx(e,t,n,r,i){var o=Wr(n,3),s=o[0],c=o[1],f=o[2];m$(e,t[s],t[c],t[f],t.scale,r,i)}var y$=["x","scaleX","originX"],b$=["y","scaleY","originY"];function hx(e,t,n,r){dx(e.x,t,y$,n==null?void 0:n.x,r==null?void 0:r.x),dx(e.y,t,b$,n==null?void 0:n.y,r==null?void 0:r.y)}function px(e){return e.translate===0&&e.scale===1}function SE(e){return px(e.x)&&px(e.y)}function TE(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 w$=function(){function e(){this.members=[]}return e.prototype.add=function(t){yy(this.members,t),t.scheduleRender()},e.prototype.remove=function(t){if(by(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){var n=this.members[this.members.length-1];n&&this.promote(n)}},e.prototype.relegate=function(t){var n=this.members.findIndex(function(s){return t===s});if(n===0)return!1;for(var r,i=n;i>=0;i--){var o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1},e.prototype.promote=function(t,n){var r,i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,n&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues,t.snapshot.isShared=!0),!((r=t.root)===null||r===void 0)&&r.isUpdating&&(t.isLayoutDirty=!0);var o=t.options.crossfade;o===!1&&i.hide()}},e.prototype.exitAnimationComplete=function(){this.members.forEach(function(t){var n,r,i,o,s;(r=(n=t.options).onExitComplete)===null||r===void 0||r.call(n),(s=(i=t.resumingFrom)===null||i===void 0?void 0:(o=i.options).onExitComplete)===null||s===void 0||s.call(o)})},e.prototype.scheduleRender=function(){this.members.forEach(function(t){t.instance&&t.scheduleRender(!1)})},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}(),x$="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function gx(e,t,n){var r=e.x.translate/t.x,i=e.y.translate/t.y,o="translate3d(".concat(r,"px, ").concat(i,"px, 0) ");if(o+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),n){var s=n.rotate,c=n.rotateX,f=n.rotateY;s&&(o+="rotate(".concat(s,"deg) ")),c&&(o+="rotateX(".concat(c,"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===x$?"none":o}var S$=function(e,t){return e.depth-t.depth},T$=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(t){yy(this.children,t),this.isDirty=!0},e.prototype.remove=function(t){by(this.children,t),this.isDirty=!0},e.prototype.forEach=function(t){this.isDirty&&this.children.sort(S$),this.isDirty=!1,this.children.forEach(t)},e}(),vx=1e3;function CE(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,i=e.checkIsScrollRoot,o=e.resetTransform;return function(){function s(c,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(_$),y.nodes.forEach(P$)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=c,this.latestValues=f,this.root=p?p.root||p:this,this.path=p?Xo(Xo([],Wr(p.path),!1),[p],!1):[],this.parent=p,this.depth=p?p.depth+1:0,c&&this.root.registerPotentialNode(c,this);for(var g=0;g<this.path.length;g++)this.path[g].shouldResetTransform=!0;this.root===this&&(this.nodes=new T$)}return s.prototype.addEventListener=function(c,f){return this.eventHandlers.has(c)||this.eventHandlers.set(c,new hd),this.eventHandlers.get(c).add(f)},s.prototype.notifyListeners=function(c){for(var f=[],p=1;p<arguments.length;p++)f[p-1]=arguments[p];var y=this.eventHandlers.get(c);y==null||y.notify.apply(y,Xo([],Wr(f),!1))},s.prototype.hasListeners=function(c){return this.eventHandlers.has(c)},s.prototype.registerPotentialNode=function(c,f){this.potentialNodes.set(c,f)},s.prototype.mount=function(c,f){var p=this,y;if(f===void 0&&(f=!1),!this.instance){this.isSVG=c instanceof SVGElement&&c.tagName!=="svg",this.instance=c;var g=this.options,S=g.layoutId,C=g.layout,P=g.visualElement;if(P&&!P.getInstance()&&P.mount(c),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||S)&&(this.isLayoutDirty=!0),t){var A,M=function(){return p.root.updateBlockedByResize=!1};t(c,function(){p.root.updateBlockedByResize=!0,clearTimeout(A),A=window.setTimeout(M,250),cd.hasAnimatedSinceResize&&(cd.hasAnimatedSinceResize=!1,p.nodes.forEach(O$))})}S&&this.root.registerSharedNode(S,this),this.options.animate!==!1&&P&&(S||C)&&this.addEventListener("didUpdate",function(R){var V,U,J,K,le,T=R.delta,he=R.hasLayoutChanged,oe=R.hasRelativeTargetChanged,ze=R.layout;if(p.isTreeAnimationBlocked()){p.target=void 0,p.relativeTarget=void 0;return}var je=(U=(V=p.options.transition)!==null&&V!==void 0?V:P.getDefaultTransition())!==null&&U!==void 0?U:L$,Pe=P.getProps(),Be=Pe.onLayoutAnimationStart,He=Pe.onLayoutAnimationComplete,ce=!p.targetLayout||!TE(p.targetLayout,ze)||oe,Se=!he&&oe;if(!((J=p.resumeFrom)===null||J===void 0)&&J.instance||Se||he&&(ce||!p.currentAnimation)){p.resumeFrom&&(p.resumingFrom=p.resumeFrom,p.resumingFrom.resumingFrom=void 0),p.setAnimationOrigin(T,Se);var Ie=nt(nt({},vy(je,"layout")),{onPlay:Be,onComplete:He});P.shouldReduceMotion&&(Ie.delay=0,Ie.type=!1),p.startAnimation(Ie)}else!he&&p.animationProgress===0&&p.finishAnimation(),p.isLead()&&((le=(K=p.options).onExitComplete)===null||le===void 0||le.call(K));p.targetLayout=ze})}},s.prototype.unmount=function(){var c,f;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(c=this.getStack())===null||c===void 0||c.remove(this),(f=this.parent)===null||f===void 0||f.children.delete(this),this.instance=void 0,kf.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 c;return this.isAnimationBlocked||((c=this.parent)===null||c===void 0?void 0:c.isTreeAnimationBlocked())||!1},s.prototype.startUpdate=function(){var c;this.isUpdateBlocked()||(this.isUpdating=!0,(c=this.nodes)===null||c===void 0||c.forEach(R$))},s.prototype.willUpdate=function(c){var f,p,y;if(c===void 0&&(c=!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 S=this.path[g];S.shouldResetTransform=!0,S.updateScroll()}var C=this.options,P=C.layoutId,A=C.layout;if(!(P===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(),c&&this.notifyListeners("willUpdate")}}},s.prototype.didUpdate=function(){var c=this.isUpdateBlocked();if(c){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(mx);return}this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(F$),this.potentialNodes.clear()),this.nodes.forEach(D$),this.nodes.forEach(C$),this.nodes.forEach(E$),this.clearAllSnapshots(),Wg.update(),Wg.preRender(),Wg.render())},s.prototype.clearAllSnapshots=function(){this.nodes.forEach(k$),this.sharedNodes.forEach(I$)},s.prototype.scheduleUpdateProjection=function(){Bs.preRender(this.updateProjection,!1,!0)},s.prototype.scheduleCheckAfterUnmount=function(){var c=this;Bs.postRender(function(){c.isLayoutDirty?c.root.didUpdate():c.root.checkUpdateFailed()})},s.prototype.updateSnapshot=function(){if(!(this.snapshot||!this.instance)){var c=this.measure(),f=this.removeTransform(this.removeElementScroll(c));xx(f),this.snapshot={measured:c,layout:f,latestValues:{}}}},s.prototype.updateLayout=function(){var c;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();xx(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),(c=this.options.visualElement)===null||c===void 0||c.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 c;if(o){var f=this.isLayoutDirty||this.shouldResetTransform,p=this.projectionDelta&&!SE(this.projectionDelta),y=(c=this.options.visualElement)===null||c===void 0?void 0:c.getProps().transformTemplate,g=y==null?void 0:y(this.latestValues,""),S=g!==this.prevTransformTemplateValue;f&&(p||uu(this.latestValues)||S)&&(o(this.instance,g),this.shouldResetTransform=!1,this.scheduleRender())}},s.prototype.measure=function(){var c=this.options.visualElement;if(!c)return Li();var f=c.measureViewportBox(),p=this.root.scroll;return p&&(fu(f.x,p.x),fu(f.y,p.y)),f},s.prototype.removeElementScroll=function(c){var f=Li();ns(f,c);for(var p=0;p<this.path.length;p++){var y=this.path[p],g=y.scroll,S=y.options,C=y.isScrollRoot;if(y!==this.root&&g&&S.layoutScroll){if(C){ns(f,c);var P=this.root.scroll;P&&(fu(f.x,-P.x),fu(f.y,-P.y))}fu(f.x,g.x),fu(f.y,g.y)}}return f},s.prototype.applyTransform=function(c,f){f===void 0&&(f=!1);var p=Li();ns(p,c);for(var y=0;y<this.path.length;y++){var g=this.path[y];!f&&g.options.layoutScroll&&g.scroll&&g!==g.root&&gf(p,{x:-g.scroll.x,y:-g.scroll.y}),uu(g.latestValues)&&gf(p,g.latestValues)}return uu(this.latestValues)&&gf(p,this.latestValues),p},s.prototype.removeTransform=function(c){var f,p=Li();ns(p,c);for(var y=0;y<this.path.length;y++){var g=this.path[y];if(g.instance&&uu(g.latestValues)){fE(g.latestValues)&&g.updateSnapshot();var S=Li(),C=g.measure();ns(S,C),hx(p,g.latestValues,(f=g.snapshot)===null||f===void 0?void 0:f.layout,S)}}return uu(this.latestValues)&&hx(p,this.latestValues),p},s.prototype.setTargetDelta=function(c){this.targetDelta=c,this.root.scheduleUpdateProjection()},s.prototype.setOptions=function(c){var f;this.options=nt(nt(nt({},this.options),c),{crossfade:(f=c.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 c,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(),gd(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),ns(this.relativeTarget,this.relativeTargetOrigin))),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Li(),this.targetWithTransforms=Li()),this.relativeTarget&&this.relativeTargetOrigin&&(!((c=this.relativeParent)===null||c===void 0)&&c.target)?TB(this.target,this.relativeTarget,this.relativeParent.target):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.actual):ns(this.target,this.layout.actual),dE(this.target,this.targetDelta)):ns(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(),gd(this.relativeTargetOrigin,this.target,this.relativeParent.target),ns(this.relativeTarget,this.relativeTargetOrigin)))))},s.prototype.getClosestProjectingParent=function(){if(!(!this.parent||uu(this.parent.latestValues)))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},s.prototype.calcProjection=function(){var c,f=this.options,p=f.layout,y=f.layoutId;if(this.isTreeAnimating=!!(!((c=this.parent)===null||c===void 0)&&c.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!(!this.layout||!(p||y))){var g=this.getLead();ns(this.layoutCorrected,this.layout.actual),IB(this.layoutCorrected,this.treeScale,this.path,!!this.resumingFrom||this!==g);var S=g.target;if(S){this.projectionDelta||(this.projectionDelta=vd(),this.projectionDeltaWithTransform=vd());var C=this.treeScale.x,P=this.treeScale.y,A=this.projectionTransform;pd(this.projectionDelta,this.layoutCorrected,S,this.latestValues),this.projectionTransform=gx(this.projectionDelta,this.treeScale),(this.projectionTransform!==A||this.treeScale.x!==C||this.treeScale.y!==P)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S))}}},s.prototype.hide=function(){this.isVisible=!1},s.prototype.show=function(){this.isVisible=!0},s.prototype.scheduleRender=function(c){var f,p,y;c===void 0&&(c=!0),(p=(f=this.options).scheduleRender)===null||p===void 0||p.call(f),c&&((y=this.getStack())===null||y===void 0||y.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},s.prototype.setAnimationOrigin=function(c,f){var p=this,y;f===void 0&&(f=!1);var g=this.snapshot,S=(g==null?void 0:g.latestValues)||{},C=nt({},this.latestValues),P=vd();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!f;var A=Li(),M=g==null?void 0:g.isShared,R=(((y=this.getStack())===null||y===void 0?void 0:y.members.length)||0)<=1,V=!!(M&&!R&&this.options.crossfade===!0&&!this.path.some(M$));this.animationProgress=0,this.mixTargetDelta=function(U){var J,K=U/1e3;yx(P.x,c.x,K),yx(P.y,c.y,K),p.setTargetDelta(P),p.relativeTarget&&p.relativeTargetOrigin&&p.layout&&(!((J=p.relativeParent)===null||J===void 0)&&J.layout)&&(gd(A,p.layout.actual,p.relativeParent.layout.actual),A$(p.relativeTarget,p.relativeTargetOrigin,A,K)),M&&(p.animationValues=C,p$(C,S,p.latestValues,K,V,R)),p.root.scheduleUpdateProjection(),p.scheduleRender(),p.animationProgress=K},this.mixTargetDelta(0)},s.prototype.startAnimation=function(c){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&&(kf.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Bs.update(function(){cd.hasAnimatedSinceResize=!0,f.currentAnimation=d$(0,vx,nt(nt({},c),{onUpdate:function(g){var S;f.mixTargetDelta(g),(S=c.onUpdate)===null||S===void 0||S.call(c,g)},onComplete:function(){var g;(g=c.onComplete)===null||g===void 0||g.call(c),f.completeAnimation()}})),f.resumingFrom&&(f.resumingFrom.currentAnimation=f.currentAnimation),f.pendingAnimation=void 0})},s.prototype.completeAnimation=function(){var c;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),(c=this.getStack())===null||c===void 0||c.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},s.prototype.finishAnimation=function(){var c;this.currentAnimation&&((c=this.mixTargetDelta)===null||c===void 0||c.call(this,vx),this.currentAnimation.stop()),this.completeAnimation()},s.prototype.applyTransformsToTarget=function(){var c=this.getLead(),f=c.targetWithTransforms,p=c.target,y=c.layout,g=c.latestValues;!f||!p||!y||(ns(f,p),gf(f,g),pd(this.projectionDeltaWithTransform,this.layoutCorrected,f,g))},s.prototype.registerSharedNode=function(c,f){var p,y,g;this.sharedNodes.has(c)||this.sharedNodes.set(c,new w$);var S=this.sharedNodes.get(c);S.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 c=this.getStack();return c?c.lead===this:!0},s.prototype.getLead=function(){var c,f=this.options.layoutId;return f?((c=this.getStack())===null||c===void 0?void 0:c.lead)||this:this},s.prototype.getPrevLead=function(){var c,f=this.options.layoutId;return f?(c=this.getStack())===null||c===void 0?void 0:c.prevLead:void 0},s.prototype.getStack=function(){var c=this.options.layoutId;if(c)return this.root.sharedNodes.get(c)},s.prototype.promote=function(c){var f=c===void 0?{}:c,p=f.needsReset,y=f.transition,g=f.preserveFollowOpacity,S=this.getStack();S&&S.promote(this,g),p&&(this.projectionDelta=void 0,this.needsReset=!0),y&&this.setOptions({transition:y})},s.prototype.relegate=function(){var c=this.getStack();return c?c.relegate(this):!1},s.prototype.resetRotation=function(){var c=this.options.visualElement;if(c){for(var f=!1,p={},y=0;y<Yv.length;y++){var g=Yv[y],S="rotate"+g;c.getStaticValue(S)&&(f=!0,p[S]=c.getStaticValue(S),c.setStaticValue(S,0))}if(f){c==null||c.syncRender();for(var S in p)c.setStaticValue(S,p[S]);c.scheduleRender()}}},s.prototype.getProjectionStyles=function(c){var f,p,y,g,S,C;c===void 0&&(c={});var P={};if(!this.instance||this.isSVG)return P;if(this.isVisible)P.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,P.opacity="",P.pointerEvents=Hh(c.pointerEvents)||"",P.transform=A?A(this.latestValues,""):"none",P;var M=this.getLead();if(!this.projectionDelta||!this.layout||!M.target){var R={};return this.options.layoutId&&(R.opacity=(p=this.latestValues.opacity)!==null&&p!==void 0?p:1,R.pointerEvents=Hh(c.pointerEvents)||""),this.hasProjected&&!uu(this.latestValues)&&(R.transform=A?A({},""):"none",this.hasProjected=!1),R}var V=M.animationValues||M.latestValues;this.applyTransformsToTarget(),P.transform=gx(this.projectionDeltaWithTransform,this.treeScale,V),A&&(P.transform=A(V,P.transform));var U=this.projectionDelta,J=U.x,K=U.y;P.transformOrigin="".concat(J.origin*100,"% ").concat(K.origin*100,"% 0"),M.animationValues?P.opacity=M===this?(g=(y=V.opacity)!==null&&y!==void 0?y:this.latestValues.opacity)!==null&&g!==void 0?g:1:this.preserveOpacity?this.latestValues.opacity:V.opacityExit:P.opacity=M===this?(S=V.opacity)!==null&&S!==void 0?S:"":(C=V.opacityExit)!==null&&C!==void 0?C:0;for(var le in ip)if(V[le]!==void 0){var T=ip[le],he=T.correct,oe=T.applyTo,ze=he(V[le],M);if(oe)for(var je=oe.length,Pe=0;Pe<je;Pe++)P[oe[Pe]]=ze;else P[le]=ze}return this.options.layoutId&&(P.pointerEvents=M===this?Hh(c.pointerEvents)||"":"none"),P},s.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},s.prototype.resetTree=function(){this.root.nodes.forEach(function(c){var f;return(f=c.currentAnimation)===null||f===void 0?void 0:f.stop()}),this.root.nodes.forEach(mx),this.root.sharedNodes.clear()},s}()}function C$(e){e.updateLayout()}function E$(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,c=s.actual,f=s.measured;e.options.animationType==="size"?Fs(function(V){var U=o.isShared?o.measured[V]:o.layout[V],J=Ol(U);U.min=c[V].min,U.max=U.min+J}):e.options.animationType==="position"&&Fs(function(V){var U=o.isShared?o.measured[V]:o.layout[V],J=Ol(c[V]);U.max=U.min+J});var p=vd();pd(p,c,o.layout);var y=vd();o.isShared?pd(y,e.applyTransform(f,!0),o.measured):pd(y,c,o.layout);var g=!SE(p),S=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var C=e.relativeParent,P=C.snapshot,A=C.layout;if(P&&A){var M=Li();gd(M,o.layout,P.layout);var R=Li();gd(R,c,A.actual),TE(M,R)||(S=!0)}}e.notifyListeners("didUpdate",{layout:c,snapshot:o,delta:y,layoutDelta:p,hasLayoutChanged:g,hasRelativeTargetChanged:S})}else e.isLead()&&((i=(r=e.options).onExitComplete)===null||i===void 0||i.call(r));e.options.transition=void 0}function k$(e){e.clearSnapshot()}function mx(e){e.clearMeasurements()}function D$(e){var t=e.options.visualElement;t!=null&&t.getProps().onBeforeLayoutMeasure&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function O$(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function _$(e){e.resolveTargetDelta()}function P$(e){e.calcProjection()}function R$(e){e.resetRotation()}function I$(e){e.removeLeadSnapshot()}function yx(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 bx(e,t,n,r){e.min=or(t.min,n.min,r),e.max=or(t.max,n.max,r)}function A$(e,t,n,r){bx(e.x,t.x,n.x,r),bx(e.y,t.y,n.y,r)}function M$(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var L$={duration:.45,ease:[.4,0,.1,1]};function F$(e,t){for(var n=e.root,r=e.path.length-1;r>=0;r--)if(e.path[r].instance){n=e.path[r];break}var i=n&&n!==e.root?n.instance:document,o=i.querySelector('[data-projection-id="'.concat(t,'"]'));o&&e.mount(o,!0)}function wx(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function xx(e){wx(e.x),wx(e.y)}var N$=CE({attachResizeListener:function(e,t){return Np(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),Kg={current:void 0},j$=CE({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!Kg.current){var e=new N$(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),Kg.current=e}return Kg.current},resetTransform:function(e,t){e.style.transform=t??"none"},checkIsScrollRoot:function(e){return window.getComputedStyle(e).position==="fixed"}}),B$=nt(nt(nt(nt({},wB),jj),VB),f$),$$=IF(function(e,t){return mN(e,t,B$,a$,j$)});function lm(e,t,n){var r,i,o,s,c;t==null&&(t=100);function f(){var y=Date.now()-s;y<t&&y>=0?r=setTimeout(f,t-y):(r=null,n||(c=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&&(c=e.apply(o,i),o=i=null),c};return p.clear=function(){r&&(clearTimeout(r),r=null)},p.flush=function(){r&&(c=e.apply(o,i),o=i=null,clearTimeout(r),r=null)},p}lm.debounce=lm;var V$=lm;const Sx=ku(V$);function H$(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,c]=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[S,C,P]=q.useMemo(()=>{const V=()=>{if(!f.current.element)return;const{left:U,top:J,width:K,height:le,bottom:T,right:he,x:oe,y:ze}=f.current.element.getBoundingClientRect(),je={left:U,top:J,width:K,height:le,bottom:T,right:he,x:oe,y:ze};f.current.element instanceof HTMLElement&&i&&(je.height=f.current.element.offsetHeight,je.width=f.current.element.offsetWidth),Object.freeze(je),g.current&&!Y$(f.current.lastBounds,je)&&c(f.current.lastBounds=je)};return[V,y?Sx(V,y):V,p?Sx(V,p):V]},[c,i,p,y]);function A(){f.current.scrollContainers&&(f.current.scrollContainers.forEach(V=>V.removeEventListener("scroll",P,!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(P),f.current.resizeObserver.observe(f.current.element),n&&f.current.scrollContainers&&f.current.scrollContainers.forEach(V=>V.addEventListener("scroll",P,{capture:!0,passive:!0})))}const R=V=>{!V||V===f.current.element||(A(),f.current.element=V,f.current.scrollContainers=EE(V),M())};return W$(P,!!n),U$(C),q.useEffect(()=>{A(),M()},[n,P,C]),q.useEffect(()=>A,[]),[R,s,S]}function U$(e){q.useEffect(()=>{const t=e;return window.addEventListener("resize",t),()=>void window.removeEventListener("resize",t)},[e])}function W$(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 EE(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,...EE(e.parentElement)]}const z$=["x","y","top","bottom","left","right","width","height"],Y$=(e,t)=>z$.every(n=>e[n]===t[n]),kE=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 Tx=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Cx=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ex={INIT:"@@redux/INIT"+Cx(),REPLACE:"@@redux/REPLACE"+Cx()};function G$(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 q$(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(Z$(e))return"date";if(K$(e))return"error";var n=X$(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 X$(e){return typeof e.constructor=="function"?e.constructor.name:null}function K$(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function Z$(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function sf(e){var t=typeof e;return process.env.NODE_ENV!=="production"&&(t=q$(e)),t}function DE(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: '"+sf(n)+"'");return n(DE)(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: '"+sf(e)+"'");var i=e,o=t,s=[],c=s,f=!1;function p(){c===s&&(c=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: '"+sf(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(),c.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 V=c.indexOf(A);c.splice(V,1),s=null}}}function S(A){if(!G$(A))throw new Error(process.env.NODE_ENV==="production"?ba(7):"Actions must be plain objects. Instead, the actual type was: '"+sf(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=c,R=0;R<M.length;R++){var V=M[R];V()}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: '"+sf(A));i=A,S({type:Ex.REPLACE})}function P(){var A,M=g;return A={subscribe:function(V){if(typeof V!="object"||V===null)throw new Error(process.env.NODE_ENV==="production"?ba(11):"Expected the observer to be an object. Instead, received: '"+sf(V)+"'");function U(){V.next&&V.next(y())}U();var J=M(U);return{unsubscribe:J}}},A[Tx]=function(){return this},A}return S({type:Ex.INIT}),r={dispatch:S,subscribe:g,getState:y,replaceReducer:C},r[Tx]=P,r}function Ut(e,t,...n){if(J$()&&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 J$(){return typeof process<"u"&&process.env.NODE_ENV==="production"}function Q$(e,t,n){return t.split(".").reduce((r,i)=>r&&r[i]?r[i]:n||null,e)}function eV(e,t){return e.filter(n=>n!==t)}function OE(e){return typeof e=="object"}function tV(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 nV(e,t){return e.filter(n=>t.indexOf(n)>-1)}const xy="dnd-core/INIT_COORDS",Vp="dnd-core/BEGIN_DRAG",Sy="dnd-core/PUBLISH_DRAG_SOURCE",Hp="dnd-core/HOVER",Up="dnd-core/DROP",Wp="dnd-core/END_DRAG";function kx(e,t){return{type:xy,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const rV={type:xy,payload:{clientOffset:null,sourceClientOffset:null}};function iV(e){return function(n=[],r={publishSource:!0}){const{publishSource:i=!0,clientOffset:o,getSourceClientOffset:s}=r,c=e.getMonitor(),f=e.getRegistry();e.dispatch(kx(o)),oV(n,c,f);const p=lV(n,c);if(p==null){e.dispatch(rV);return}let y=null;if(o){if(!s)throw new Error("getSourceClientOffset must be defined");aV(s),y=s(p)}e.dispatch(kx(o,y));const S=f.getSource(p).beginDrag(c,p);if(S==null)return;sV(S),f.pinSource(p);const C=f.getSourceType(p);return{type:Vp,payload:{itemType:C,item:S,sourceId:p,clientOffset:o||null,sourceClientOffset:y||null,isSourcePublic:!!i}}}}function oV(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 aV(e){Ut(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function sV(e){Ut(OE(e),"Item must be an object.")}function lV(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 uV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cV(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){uV(e,i,n[i])})}return e}function fV(e){return function(n={}){const r=e.getMonitor(),i=e.getRegistry();dV(r),gV(r).forEach((s,c)=>{const f=hV(s,c,i,r),p={type:Up,payload:{dropResult:cV({},n,f)}};e.dispatch(p)})}}function dV(e){Ut(e.isDragging(),"Cannot call drop while not dragging."),Ut(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function hV(e,t,n,r){const i=n.getTarget(e);let o=i?i.drop(r,e):void 0;return pV(o),typeof o>"u"&&(o=t===0?{}:r.getDropResult()),o}function pV(e){Ut(typeof e>"u"||OE(e),"Drop result must either be an object or undefined.")}function gV(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function vV(e){return function(){const n=e.getMonitor(),r=e.getRegistry();mV(n);const i=n.getSourceId();return i!=null&&(r.getSource(i,!0).endDrag(n,i),r.unpinSource()),{type:Wp}}}function mV(e){Ut(e.isDragging(),"Cannot call endDrag while not dragging.")}function um(e,t){return t===null?e===null:Array.isArray(e)?e.some(n=>n===t):e===t}function yV(e){return function(n,{clientOffset:r}={}){bV(n);const i=n.slice(0),o=e.getMonitor(),s=e.getRegistry(),c=o.getItemType();return xV(i,s,c),wV(i,o,s),SV(i,o,s),{type:Hp,payload:{targetIds:i,clientOffset:r||null}}}}function bV(e){Ut(Array.isArray(e),"Expected targetIds to be an array.")}function wV(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 xV(e,t,n){for(let r=e.length-1;r>=0;r--){const i=e[r],o=t.getTargetType(i);um(o,n)||e.splice(r,1)}}function SV(e,t,n){e.forEach(function(r){n.getTarget(r).hover(t,r)})}function TV(e){return function(){if(e.getMonitor().isDragging())return{type:Sy}}}function CV(e){return{beginDrag:iV(e),publishDragSource:TV(e),hover:yV(e),drop:fV(e),endDrag:vV(e)}}class EV{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 c=o.apply(t,s);typeof c<"u"&&n(c)}}const i=CV(this);return Object.keys(i).reduce((o,s)=>{const c=i[s];return o[s]=r(c),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 kV(e,t){return{x:e.x+t.x,y:e.y+t.y}}function _E(e,t){return{x:e.x-t.x,y:e.y-t.y}}function DV(e){const{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return!t||!n||!r?null:_E(kV(t,r),n)}function OV(e){const{clientOffset:t,initialClientOffset:n}=e;return!t||!n?null:_E(t,n)}const md=[],Ty=[];md.__IS_NONE__=!0;Ty.__IS_ALL__=!0;function _V(e,t){return e===md?!1:e===Ty||typeof t>"u"?!0:nV(t,e).length>0}class PV{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(),c=s.stateId;try{c===i||c===i+1&&!_V(s.dirtyHandlerIds,r)||t()}finally{i=c}};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 um(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&&!um(i,o))return!1;const s=this.getTargetIds();if(!s.length)return!1;const c=s.indexOf(t);return r?c===s.length-1:c>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return DV(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return OV(this.store.getState().dragOffset)}constructor(t,n){this.store=t,this.registry=n}}const Dx=typeof global<"u"?global:self,PE=Dx.MutationObserver||Dx.WebKitMutationObserver;function RE(e){return function(){const n=setTimeout(i,0),r=setInterval(i,50);function i(){clearTimeout(n),clearInterval(r),e()}}}function RV(e){let t=1;const n=new PE(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}const IV=typeof PE=="function"?RV:RE;class AV{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=IV(this.flush),this.requestErrorThrow=RE(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class MV{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 LV{create(t){const n=this.freeTasks,r=n.length?n.pop():new MV(this.onError,i=>n[n.length]=i);return r.task=t,r}constructor(t){this.onError=t,this.freeTasks=[]}}const IE=new AV,FV=new LV(IE.registerPendingError);function NV(e){IE.enqueueTask(FV.create(e))}const Cy="dnd-core/ADD_SOURCE",Ey="dnd-core/ADD_TARGET",ky="dnd-core/REMOVE_SOURCE",zp="dnd-core/REMOVE_TARGET";function jV(e){return{type:Cy,payload:{sourceId:e}}}function BV(e){return{type:Ey,payload:{targetId:e}}}function $V(e){return{type:ky,payload:{sourceId:e}}}function VV(e){return{type:zp,payload:{targetId:e}}}function HV(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 UV(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 cm(e,t){if(t&&Array.isArray(e)){e.forEach(n=>cm(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 WV=0;function zV(){return WV++}function YV(e){const t=zV().toString();switch(e){case Ca.SOURCE:return`S${t}`;case Ca.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function Ox(e){switch(e[0]){case"S":return Ca.SOURCE;case"T":return Ca.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function _x(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 GV{addSource(t,n){cm(t),HV(n);const r=this.addHandler(Ca.SOURCE,t,n);return this.store.dispatch(jV(r)),r}addTarget(t,n){cm(t,!0),UV(n);const r=this.addHandler(Ca.TARGET,t,n);return this.store.dispatch(BV(r)),r}containsHandler(t){return _x(this.dragSources,t)||_x(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 Ox(t)===Ca.SOURCE}isTargetId(t){return Ox(t)===Ca.TARGET}removeSource(t){Ut(this.getSource(t),"Expected an existing source."),this.store.dispatch($V(t)),NV(()=>{this.dragSources.delete(t),this.types.delete(t)})}removeTarget(t){Ut(this.getTarget(t),"Expected an existing target."),this.store.dispatch(VV(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=YV(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 qV=(e,t)=>e===t;function XV(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function KV(e,t,n=qV){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 ZV(e=md,t){switch(t.type){case Hp:break;case Cy:case Ey:case zp:case ky:return md;case Vp:case Sy:case Wp:case Up:default:return Ty}const{targetIds:n=[],prevTargetIds:r=[]}=t.payload,i=tV(n,r);if(!(i.length>0||!KV(n,r)))return md;const s=r[r.length-1],c=n[n.length-1];return s!==c&&(s&&i.push(s),c&&i.push(c)),i}function JV(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){JV(e,i,n[i])})}return e}const Px={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function e3(e=Px,t){const{payload:n}=t;switch(t.type){case xy:case Vp:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case Hp:return XV(e.clientOffset,n.clientOffset)?e:QV({},e,{clientOffset:n.clientOffset});case Wp:case Up:return Px;default:return e}}function t3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lf(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){t3(e,i,n[i])})}return e}const n3={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function r3(e=n3,t){const{payload:n}=t;switch(t.type){case Vp:return lf({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case Sy:return lf({},e,{isSourcePublic:!0});case Hp:return lf({},e,{targetIds:n.targetIds});case zp:return e.targetIds.indexOf(n.targetId)===-1?e:lf({},e,{targetIds:eV(e.targetIds,n.targetId)});case Up:return lf({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case Wp:return lf({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function i3(e=0,t){switch(t.type){case Cy:case Ey:return e+1;case ky:case zp:return e-1;default:return e}}function o3(e=0){return e+1}function a3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s3(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){a3(e,i,n[i])})}return e}function l3(e={},t){return{dirtyHandlerIds:ZV(e.dirtyHandlerIds,{type:t.type,payload:s3({},t.payload,{prevTargetIds:Q$(e,"dragOperation.targetIds",[])})}),dragOffset:e3(e.dragOffset,t),refCount:i3(e.refCount,t),dragOperation:r3(e.dragOperation,t),stateId:o3(e.stateId)}}function u3(e,t=void 0,n={},r=!1){const i=c3(r),o=new PV(i,new GV(i)),s=new EV(i,o),c=e(s,t,n);return s.receiveBackend(c),s}function c3(e){const t=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return DE(l3,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}function f3(e,t){if(e==null)return{};var n=d3(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 d3(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 Rx=0;const zh=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var AE=q.memo(function(t){var{children:n}=t,r=f3(t,["children"]);const[i,o]=h3(r);return q.useEffect(()=>{if(o){const s=ME();return++Rx,()=>{--Rx===0&&(s[zh]=null)}}},[]),Fe.jsx(kE.Provider,{value:i,children:n})});function h3(e){if("manager"in e)return[{dragDropManager:e.manager},!1];const t=p3(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}function p3(e,t=ME(),n,r){const i=t;return i[zh]||(i[zh]={dragDropManager:u3(e,t,n,r)}),i[zh]}function ME(){return typeof global<"u"?global:window}var g3=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 v3=ku(g3),Tc=typeof window<"u"?q.useLayoutEffect:q.useEffect;function LE(e,t,n){const[r,i]=q.useState(()=>t(e)),o=q.useCallback(()=>{const s=t(e);v3(r,s)||(i(s),n&&n())},[r,e,n]);return Tc(o),[r,o]}function m3(e,t,n){const[r,i]=LE(e,t,n);return Tc(function(){const s=e.getHandlerId();if(s!=null)return e.subscribeToStateChange(i,{handlerIds:[s]})},[e,i]),r}function FE(e,t,n){return m3(t,e||(()=>({})),()=>n.reconnect())}function NE(e,t){const n=[...t||[]];return t==null&&typeof e!="function"&&n.push(e),q.useMemo(()=>typeof e=="function"?e():e,n)}function y3(e){return q.useMemo(()=>e.hooks.dragSource(),[e])}function b3(e){return q.useMemo(()=>e.hooks.dragPreview(),[e])}let Zg=!1,Jg=!1;class w3{receiveHandlerId(t){this.sourceId=t}getHandlerId(){return this.sourceId}canDrag(){Ut(!Zg,"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 Zg=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Zg=!1}}isDragging(){if(!this.sourceId)return!1;Ut(!Jg,"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 Jg=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Jg=!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 Qg=!1;class x3{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(!Qg,"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 Qg=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{Qg=!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 S3(e,t,n){const r=n.getRegistry(),i=r.addTarget(e,t);return[i,()=>r.removeTarget(i)]}function T3(e,t,n){const r=n.getRegistry(),i=r.addSource(e,t);return[i,()=>r.removeSource(i)]}function fm(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 c=Object.prototype.hasOwnProperty.bind(t);for(let f=0;f<o.length;f++){const p=o[f];if(!c(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 dm(e){return e!==null&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function C3(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 E3(e){return(t=null,n=null)=>{if(!q.isValidElement(t)){const o=t;return e(o,n),o}const r=t;return C3(r),k3(r,n?o=>e(o,n):e)}}function jE(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{const i=E3(r);t[n]=()=>i}}),t}function Ix(e,t){typeof e=="function"?e(t):e.current=t}function k3(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=>{Ix(n,r),Ix(t,r)}}):q.cloneElement(e,{ref:t})}class D3{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!fm(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!fm(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=jE({dragSource:(n,r)=>{this.clearDragSource(),this.dragSourceOptions=r||null,dm(n)?this.dragSourceRef=n:this.dragSourceNode=n,this.reconnectDragSource()},dragPreview:(n,r)=>{this.clearDragPreview(),this.dragPreviewOptions=r||null,dm(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 O3{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!fm(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=jE({dropTarget:(n,r)=>{this.clearDropTarget(),this.dropTargetOptions=r,dm(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 Rl(){const{dragDropManager:e}=q.useContext(kE);return Ut(e!=null,"Expected drag drop context"),e}function _3(e,t){const n=Rl(),r=q.useMemo(()=>new D3(n.getBackend()),[n]);return Tc(()=>(r.dragSourceOptions=e||null,r.reconnect(),()=>r.disconnectDragSource()),[r,e]),Tc(()=>(r.dragPreviewOptions=t||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,t]),r}function P3(){const e=Rl();return q.useMemo(()=>new w3(e),[e])}class R3{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 I3(e,t,n){const r=q.useMemo(()=>new R3(e,t,n),[t,n]);return q.useEffect(()=>{r.spec=e},[e]),r}function A3(e){return q.useMemo(()=>{const t=e.type;return Ut(t!=null,"spec.type must be defined"),t},[e])}function M3(e,t,n){const r=Rl(),i=I3(e,t,n),o=A3(e);Tc(function(){if(o!=null){const[c,f]=T3(o,i,r);return t.receiveHandlerId(c),n.receiveHandlerId(c),f}},[r,t,n,i,o])}function BE(e,t){const n=NE(e,t);Ut(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const r=P3(),i=_3(n.options,n.previewOptions);return M3(n,r,i),[FE(n.collect,r,i),y3(i),b3(i)]}function L3(e){const n=Rl().getMonitor(),[r,i]=LE(n,e);return q.useEffect(()=>n.subscribeToOffsetChange(i)),q.useEffect(()=>n.subscribeToStateChange(i)),r}function F3(e){return q.useMemo(()=>e.hooks.dropTarget(),[e])}function N3(e){const t=Rl(),n=q.useMemo(()=>new O3(t.getBackend()),[t]);return Tc(()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget()),[e]),n}function j3(){const e=Rl();return q.useMemo(()=>new x3(e),[e])}function B3(e){const{accept:t}=e;return q.useMemo(()=>(Ut(e.accept!=null,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}class $3{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 V3(e,t){const n=q.useMemo(()=>new $3(e,t),[t]);return q.useEffect(()=>{n.spec=e},[e]),n}function H3(e,t,n){const r=Rl(),i=V3(e,t),o=B3(e);Tc(function(){const[c,f]=S3(o,i,r);return t.receiveHandlerId(c),n.receiveHandlerId(c),f},[r,t,i,n,o.map(s=>s.toString()).join("|")])}function hp(e,t){const n=NE(e,t),r=j3(),i=N3(n.options);return H3(n,r,i),[FE(n.collect,r,i),F3(i)]}function ev(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function U3(e,t,n){W3(e,t),t.set(e,n)}function W3(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Dh(e,t){var n=$E(e,t,"get");return z3(e,n)}function z3(e,t){return t.get?t.get.call(e):t.value}function Y3(e,t,n){var r=$E(e,t,"set");return G3(e,r,n),n}function $E(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function G3(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 uf=new WeakMap;class q3{constructor(){U3(this,uf,{writable:!0,value:void 0}),ev(this,"register",t=>{Dh(this,uf).push(t)}),ev(this,"unregister",t=>{let n;for(;(n=Dh(this,uf).indexOf(t))!==-1;)Dh(this,uf).splice(n,1)}),ev(this,"backendChanged",t=>{for(const n of Dh(this,uf))n.backendChanged(t)}),Y3(this,uf,[])}}function rs(e,t,n){X3(e,t),t.set(e,n)}function X3(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ls(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=VE(e,t,"get");return K3(e,n)}function K3(e,t){return t.get?t.get.call(e):t.value}function cf(e,t,n){var r=VE(e,t,"set");return Z3(e,r,n),n}function VE(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function Z3(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}var wa=new WeakMap,Oh=new WeakMap,xa=new WeakMap,su=new WeakMap,uc=new WeakMap,Ax=new WeakMap,Mx=new WeakMap,Lx=new WeakMap,tv=new WeakMap,nv=new WeakMap,_h=new WeakMap;class Cf{constructor(t,n,r){if(rs(this,wa,{writable:!0,value:void 0}),rs(this,Oh,{writable:!0,value:void 0}),rs(this,xa,{writable:!0,value:void 0}),rs(this,su,{writable:!0,value:void 0}),rs(this,uc,{writable:!0,value:void 0}),rs(this,Ax,{writable:!0,value:(i,o,s)=>{var c,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:(c=s.preview)!==null&&c!==void 0?c:!1,transition:s.transition,skipDispatchOnTransition:(f=s.skipDispatchOnTransition)!==null&&f!==void 0?f:!1}}}),Ls(this,"setup",()=>{if(!(typeof window>"u")){if(Cf.isSetUp)throw new Error("Cannot have two MultiBackends at the same time.");Cf.isSetUp=!0,Yt(this,Mx).call(this,window),Yt(this,xa)[Yt(this,wa)].instance.setup()}}),Ls(this,"teardown",()=>{typeof window>"u"||(Cf.isSetUp=!1,Yt(this,Lx).call(this,window),Yt(this,xa)[Yt(this,wa)].instance.teardown())}),Ls(this,"connectDragSource",(i,o,s)=>Yt(this,_h).call(this,"connectDragSource",i,o,s)),Ls(this,"connectDragPreview",(i,o,s)=>Yt(this,_h).call(this,"connectDragPreview",i,o,s)),Ls(this,"connectDropTarget",(i,o,s)=>Yt(this,_h).call(this,"connectDropTarget",i,o,s)),Ls(this,"profile",()=>Yt(this,xa)[Yt(this,wa)].instance.profile()),Ls(this,"previewEnabled",()=>Yt(this,xa)[Yt(this,wa)].preview),Ls(this,"previewsList",()=>Yt(this,Oh)),Ls(this,"backendsList",()=>Yt(this,su)),rs(this,Mx,{writable:!0,value:i=>{Yt(this,su).forEach(o=>{o.transition&&i.addEventListener(o.transition.event,Yt(this,tv))})}}),rs(this,Lx,{writable:!0,value:i=>{Yt(this,su).forEach(o=>{o.transition&&i.removeEventListener(o.transition.event,Yt(this,tv))})}}),rs(this,tv,{writable:!0,value:i=>{const o=Yt(this,wa);if(Yt(this,su).some(c=>c.id!==Yt(this,wa)&&c.transition&&c.transition.check(i)?(cf(this,wa,c.id),!0):!1),Yt(this,wa)!==o){var s;Yt(this,xa)[o].instance.teardown(),Object.keys(Yt(this,uc)).forEach(y=>{const g=Yt(this,uc)[y];g.unsubscribe(),g.unsubscribe=Yt(this,nv).call(this,g.func,...g.args)}),Yt(this,Oh).backendChanged(this);const c=Yt(this,xa)[Yt(this,wa)];if(c.instance.setup(),c.skipDispatchOnTransition)return;const f=i.constructor,p=new f(i.type,i);(s=i.target)===null||s===void 0||s.dispatchEvent(p)}}}),rs(this,nv,{writable:!0,value:(i,o,s,c)=>Yt(this,xa)[Yt(this,wa)].instance[i](o,s,c)}),rs(this,_h,{writable:!0,value:(i,o,s,c)=>{const f="".concat(i,"_").concat(o),p=Yt(this,nv).call(this,i,o,s,c);return Yt(this,uc)[f]={func:i,args:[o,s,c],unsubscribe:p},()=>{Yt(this,uc)[f].unsubscribe(),delete Yt(this,uc)[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`);cf(this,Oh,new q3),cf(this,xa,{}),cf(this,su,[]),r.backends.forEach(i=>{const o=Yt(this,Ax).call(this,t,n,i);Yt(this,xa)[o.id]=o,Yt(this,su).push(o)}),cf(this,wa,Yt(this,su)[0].id),cf(this,uc,{})}}Ls(Cf,"isSetUp",!1);const J3=(e,t,n)=>new Cf(e,t,n),HE=(e,t)=>({event:e,check:t}),Q3=HE("touchstart",e=>{const t=e;return t.touches!==null&&t.touches!==void 0}),eH=HE("pointerdown",e=>e.pointerType=="mouse");var vu;(function(e){e.mouse="mouse",e.touch="touch",e.keyboard="keyboard"})(vu||(vu={}));class tH{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 nH(e,t,n,r){return Math.sqrt(Math.pow(Math.abs(n-e),2)+Math.pow(Math.abs(r-t),2))}function rH(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 c=i[s];if(c&&(c.start==null||o>=c.start)&&(c.end==null||o<=c.end))return!0}return!1}const iH={Left:1},oH={Left:0};function rv(e){return e.button===void 0||e.button===oH.Left}function aH(e){return e.buttons===void 0||(e.buttons&iH.Left)===0}function UE(e){return!!e.targetTouches}const sH=1;function lH(e){const t=e.nodeType===sH?e:e.parentElement;if(!t)return;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function uH(e,t){if(e.targetTouches.length===1)return pp(e.targetTouches[0]);if(t&&e.touches.length===1&&e.touches[0].target===t.target)return pp(e.touches[0])}function pp(e,t){return UE(e)?uH(e,t):{x:e.clientX,y:e.clientY}}const Fx=(()=>{let e=!1;try{addEventListener("test",()=>{},Object.defineProperty({},"passive",{get(){return e=!0,!0}}))}catch{}return e})(),rd={[vu.mouse]:{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"},[vu.touch]:{start:"touchstart",move:"touchmove",end:"touchend"},[vu.keyboard]:{keydown:"keydown"}};class yd{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(!yd.isSetUp,"Cannot have two Touch backends at the same time."),yd.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&&(yd.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=Fx?{capture:i,passive:!1}:i;this.listenerTypes.forEach(function(s){const c=rd[s][n];c&&t.addEventListener(c,r,o)})}removeEventListener(t,n,r,i=!1){const o=Fx?{capture:i,passive:!1}:i;this.listenerTypes.forEach(function(s){const c=rd[s][n];c&&t.removeEventListener(c,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 rd.mouse.move:s={x:o.clientX,y:o.clientY};break;case rd.touch.move:var c,f;s={x:((c=o.touches[0])===null||c===void 0?void 0:c.clientX)||0,y:((f=o.touches[0])===null||f===void 0?void 0:f.clientY)||0};break}const p=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&&lH(o)},this.handleTopMoveStartCapture=i=>{rv(i)&&(this.moveStartSourceIds=[])},this.handleMoveStart=i=>{Array.isArray(this.moveStartSourceIds)&&this.moveStartSourceIds.unshift(i)},this.handleTopMoveStart=i=>{if(!rv(i))return;const o=pp(i);o&&(UE(i)&&(this.lastTargetTouchFallback=i.targetTouches[0]),this._mouseClientOffset=o),this.waitingForDelay=!1},this.handleTopMoveStartDelay=i=>{if(!rv(i))return;const o=i.type===rd.touch.start?this.options.delayTouchStart:this.options.delayMouseStart;this.timeout=setTimeout(this.handleTopMoveStart.bind(this,i),o),this.waitingForDelay=!0},this.handleTopMoveCapture=()=>{this.dragOverTargetIds=[]},this.handleMove=(i,o)=>{this.dragOverTargetIds&&this.dragOverTargetIds.unshift(o)},this.handleTopMove=i=>{if(this.timeout&&clearTimeout(this.timeout),!this.document||this.waitingForDelay)return;const{moveStartSourceIds:o,dragOverTargetIds:s}=this,c=this.options.enableHoverOutsideTarget,f=pp(i,this.lastTargetTouchFallback);if(!f)return;if(this._isScrolling||!this.monitor.isDragging()&&rH(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&&nH(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(P=>this.targetNodes.get(P)).filter(P=>!!P),g=this.options.getDropTargetElementsAtPoint?this.options.getDropTargetElementsAtPoint(f.x,f.y,y):this.document.elementsFromPoint(f.x,f.y),S=[];for(const P in g){if(!g.hasOwnProperty(P))continue;let A=g[P];for(A!=null&&S.push(A);A;)A=A.parentElement,A&&S.indexOf(A)===-1&&S.push(A)}const C=S.filter(P=>y.indexOf(P)>-1).map(P=>this._getDropTargetId(P)).filter(P=>!!P).filter((P,A,M)=>M.indexOf(P)===A);if(c)for(const P in this.targetNodes){const A=this.targetNodes.get(P);if(p&&A&&A.contains(p)&&C.indexOf(P)===-1){C.unshift(P);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 c=s.value;if(i===this.targetNodes.get(c))return c;s=o.next()}},this.handleTopMoveEndCapture=i=>{if(this._isScrolling=!1,this.lastTargetTouchFallback=void 0,!!aH(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 tH(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(vu.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(vu.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(vu.keyboard)}}const cH=function(t,n={},r={}){return new yd(t,n,r)};var _a=function(){return _a=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},_a.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 fH(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,c=e.children,f=H$({polyfill:dF}),p=f[0],y=f[1].height,g=q.useState(t),S=g[0],C=g[1],P=q.useState(t),A=P[0],M=P[1],R=q.useState(!1),V=R[0],U=R[1],J=function(){U(!1),t||C(!1)};return q.useEffect(function(){U(!0),t?C(!0):M(!1)},[t]),q.useEffect(function(){S&&M(!0)},[y]),q.createElement($$.div,{style:V?{overflow:"hidden"}:void 0,onAnimationComplete:J,initial:A?"open":"close",animate:A?"open":"close",inherit:!1,variants:s,transition:{ease:r,duration:dH(y,i)}},q.createElement("div",{ref:p},S&&c))}function dH(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 hH=function(e,t){return e.text>t.text?1:e.text<t.text?-1:0},id=function(e,t){return e.find(function(n){return n.id===t})},WE=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:WE(e,t,r.parent)},Dy=function(e){return e.id!==void 0&&e.parent!==void 0&&e.text!==void 0},Su=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 c=Dy(e)?e.id:null;if(o){var f=o(c,t);if(f!==void 0)return f}if(c===t)return!1;var p=r.find(function(g){return g.id===c}),s=r.find(function(g){return g.id===t});return p===void 0||c===null?t===i||!!(s!=null&&s.droppable):s===void 0?p.parent!==0:p.parent===t||!s.droppable?!1:!WE(r,c,t)}},pH=function(e,t,n){return e.map(function(r){return r.id===t?_a(_a({},r),{parent:n}):r})},zE=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},gH=function(e,t){return e.findIndex(function(n){return n.id===t})},YE=function(e,t,n,r){var i=gH(e,t),o=zE(e,n,r);return o=o>i?o-1:o,[i,o]},vH=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)}},mH=function(e,t,n,r){var i=YE(e,t,n,r),o=i[0],s=i[1],c=ro([],e,!0);return vH(c,o,s),c.map(function(f){return f.id===t?_a(_a({},f),{parent:n}):f})},yH=function(e,t){var n=e.getBoundingClientRect(),r=n.top+n.height/2;return t>r?"down":"up"},hm=function(e,t){var n="",r=0;return e.forEach(function(i,o){var s,c=yH(i,((s=t.getClientOffset())===null||s===void 0?void 0:s.y)||0);n===""?n=c:n!==c&&(n=c,r=o),o===e.length-1&&c==="down"&&(r=o+1)}),r},Nx=function(e,t,n){var r=t.closest('[role="list"]'),i=r==null?void 0:r.querySelectorAll(':scope > [role="listitem"]');return i?hm(i,n):null},bH=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"},pm=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:hm(o,n)}}var s=n.getItem(),c=t.querySelector('[role="list"]'),f=bH(t,((i=n.getClientOffset())===null||i===void 0?void 0:i.y)||0,r);if(c){if(f==="upper")if(Su(s,e.parent,r)){var p=Nx(e,t,n);return p===null?null:{id:e.parent,index:p}}else return{id:e.id,index:0};var o=c.querySelectorAll(':scope > [role="listitem"]');return{id:e.id,index:hm(o,n)}}else{if(f==="middle")return{id:e.id,index:0};if(Su(s,e.parent,r)){var p=Nx(e,t,n);return p===null?null:{id:e.parent,index:p}}return null}},wH=function(e){return e===void 0&&(e={}),{backends:[{id:"html5",backend:UT,options:e.html5,transition:eH},{id:"touch",backend:cH,options:e.touch||{enableMouseEvents:!0},preview:!0,transition:Q3}]}},Yh=function(e,t){return e.some(function(n){return n.parent===t})},GE=q.createContext({}),xH=function(e){var t=RH(e.tree,e.initialOpen),n=t[0],r=t[1],i=r.handleToggle,o=r.handleCloseAll,s=r.handleOpenAll,c=r.handleOpen,f=r.handleClose;q.useImperativeHandle(e.treeRef,function(){return{open:function(C){return c(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=Rl().getMonitor(),y=e.canDrop,g=e.canDrag,S=_a(_a({extraAcceptTypes:[],listComponent:"ul",listItemComponent:"li",placeholderComponent:"li",sort:!0,insertDroppableFirst:!0,enableAnimateExpand:!1,dropTargetOffset:0,initialOpen:!1},e),{openIds:n,onDrop:function(C,P,A){if(C){var M={dragSourceId:C.id,dropTargetId:P,dragSource:C,dropTarget:id(e.tree,P),monitor:p},R=e.tree;if(id(R,C.id)||(R=ro(ro([],R,!0),[C],!1)),e.sort===!1){var V=YE(R,C.id,P,A),U=V[1];M.destinationIndex=U,M.relativeIndex=A,e.onDrop(mH(R,C.id,P,A),M);return}e.onDrop(pH(R,C.id,P),M)}else{var M={dropTargetId:P,dropTarget:id(e.tree,P),monitor:p};e.sort===!1&&(M.destinationIndex=zE(e.tree,P,A),M.relativeIndex=A),e.onDrop(e.tree,M)}},canDrop:y?function(C,P){return y(e.tree,{dragSourceId:C??void 0,dropTargetId:P,dragSource:p.getItem(),dropTarget:id(e.tree,P),monitor:p})}:void 0,canDrag:g?function(C){return g(id(e.tree,C))}:void 0,onToggle:function(C){return i(C,e.onChangeOpen)}});return q.createElement(GE.Provider,{value:S},e.children)},qE=q.createContext({}),SH={isLock:!1},TH=function(e){var t=q.useState(SH.isLock),n=t[0],r=t[1];return q.createElement(qE.Provider,{value:{isLock:n,lock:function(){return r(!0)},unlock:function(){return r(!1)}}},e.children)},Gd=q.createContext({}),Ph={dropTargetId:void 0,index:void 0},CH=function(e){var t=q.useState(Ph.dropTargetId),n=t[0],r=t[1],i=q.useState(Ph.index),o=i[0],s=i[1],c=function(p,y){r(p),s(y)},f=function(){r(Ph.dropTargetId),s(Ph.index)};return q.createElement(Gd.Provider,{value:{dropTargetId:n,index:o,showPlaceholder:c,hidePlaceholder:f}},e.children)},EH=function(e){return q.createElement(xH,_a({},e),q.createElement(TH,null,q.createElement(CH,null,e.children)))},kH=function(e){var t=q.useContext(qE);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)},c=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",c),n.addEventListener("focusout",f),function(){p.disconnect(),n.removeEventListener("mouseover",o),n.removeEventListener("mouseout",s),n.removeEventListener("focusin",c),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])},Yp={TREE_ITEM:Symbol()},XE=null,KE=function(e){var t=e.target;if(t instanceof HTMLElement){var n=t.closest('[role="listitem"]');e.currentTarget===n&&(XE=n)}},jx=function(e){return KE(e)},Bx=function(e){return KE(e)},DH=function(e,t){var n=Du();q.useEffect(function(){var c=t.current;return c==null||c.addEventListener("dragstart",jx),c==null||c.addEventListener("touchstart",Bx,{passive:!0}),function(){c==null||c.removeEventListener("dragstart",jx),c==null||c.removeEventListener("touchstart",Bx)}},[t]);var r=BE({type:Yp.TREE_ITEM,item:function(c){var f=_a({ref:t},e);return n.onDragStart&&n.onDragStart(f,c),f},end:function(c,f){var p=c;n.onDragEnd&&n.onDragEnd(p,f)},canDrag:function(){var c=n.canDrag;return XE!==t.current?!1:c?c(e.id):!0},collect:function(c){return{isDragging:c.isDragging()}}}),i=r[0].isDragging,o=r[1],s=r[2];return[i,o,s]},OH=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)},c=function(){i.current>0&&window.clearTimeout(i.current),r.current=0,i.current=0};return{onDragEnter:o,onDragLeave:s,onDrop:c}},_H=function(e){var t=Du(),n=q.useContext(Gd),r=hp({accept:ro([Yp.TREE_ITEM],t.extraAcceptTypes,!0),drop:function(f,p){var y=t.rootId,g=t.onDrop,S=n.dropTargetId,C=n.index;p.isOver({shallow:!0})&&S!==void 0&&C!==void 0&&g(Dy(f)?f:null,y,C),n.hidePlaceholder()},canDrop:function(f,p){var y=t.rootId;return p.isOver({shallow:!0})?f===void 0?!1:Su(f,y,t):!1},hover:function(f,p){if(p.isOver({shallow:!0})){var y=t.rootId,g=n.dropTargetId,S=n.index,C=n.showPlaceholder,P=n.hidePlaceholder,A=pm(null,e.current,p,t);if(A===null||!Su(f,y,t)){P();return}(A.id!==g||A.index!==S)&&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,c=r[1];return[o,s,c]},PH=function(e,t){var n=Du(),r=q.useContext(Gd),i=hp({accept:ro([Yp.TREE_ITEM],n.extraAcceptTypes,!0),drop:function(p,y){var g=r.dropTargetId,S=r.index;y.isOver({shallow:!0})&&g!==void 0&&S!==void 0&&n.onDrop(Dy(p)?p:null,g,S),r.hidePlaceholder()},canDrop:function(p,y){if(y.isOver({shallow:!0})){var g=pm(e,t.current,y,n);return g===null?!1:Su(p,g.id,n)}return!1},hover:function(p,y){if(y.isOver({shallow:!0})){var g=r.dropTargetId,S=r.index,C=r.showPlaceholder,P=r.hidePlaceholder,A=pm(e,t.current,y,n);if(A===null||!Su(p,A.id,n)){P();return}(A.id!==g||A.index!==S)&&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,c=o.dragSource,f=i[1];return[s,c,f]},RH=function(e,t){var n=q.useMemo(function(){return t===!0?e.filter(function(g){return Yh(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,S){var C=i.includes(g)?i.filter(function(P){return P!==g}):ro(ro([],i,!0),[g],!1);o(C),S&&S(C)},c=function(g){o([]),g&&g([])},f=function(g){var S=e.filter(function(C){return Yh(e,C.id)}).map(function(C){return C.id});o(S),g&&g(S)},p=function(g,S){var C=[];if(Array.isArray(g)){var P=e.filter(function(A){return g.includes(A.id)&&Yh(e,A.id)});C=ro(ro([],i,!0),P.map(function(A){return A.id}),!0).filter(function(A,M,R){return R.indexOf(A)===M})}else C=i.includes(g)?i:ro(ro([],i,!0),[g],!1);o(C),S&&S(C)},y=function(g,S){var C=i.filter(function(P){return Array.isArray(g)?!g.includes(P):P!==g});o(C),S&&S(C)};return[i,{handleToggle:s,handleCloseAll:c,handleOpenAll:f,handleOpen:p,handleClose:y}]},IH=function(){return L3(function(e){var t=e.getItemType();return{item:e.getItem(),clientOffset:e.getClientOffset(),isDragging:e.isDragging()&&t===Yp.TREE_ITEM}})},Du=function(){var e=q.useContext(GE);if(!e)throw new Error("useTreeContext must be used under TreeProvider");return e},AH=function(e,t){var n=Du(),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},MH=function(e,t,n){t.current?n(t):n(e),q.useEffect(function(){t.current?n(t):n(e)},[t.current])},LH=function(e){var t=Du(),n=q.useContext(Gd),r=q.useRef(null),i=q.useRef(null),o=t.tree.find(function(he){return he.id===e.id}),s=t.openIds,c=t.classes,f=t.enableAnimateExpand,p=s.includes(e.id),y=DH(o,r),g=y[0],S=y[1],C=y[2],P=PH(o,r),A=P[0],M=P[1],R=P[2];MH(r,i,S),Su(M,e.id,t)&&R(r),q.useEffect(function(){t.dragPreviewRender?C(z2(),{captureDraggingState:!0}):i.current&&C(r)},[C,t.dragPreviewRender]),kH(r);var V=function(){return t.onToggle(o.id)},U=t.listItemComponent,J=(c==null?void 0:c.listItem)||"";A&&(c!=null&&c.dropTarget)&&(J="".concat(J," ").concat(c.dropTarget)),g&&(c!=null&&c.draggingSource)&&(J="".concat(J," ").concat(c.draggingSource));var K=t.canDrag?t.canDrag(e.id):!0,le=n.dropTargetId===e.id,T={depth:e.depth,isOpen:p,isDragging:g,isDropTarget:le,draggable:K,hasChild:Yh(t.tree,e.id),containerRef:r,handleRef:i,onToggle:V};return q.createElement(U,{ref:r,className:J,role:"listitem"},t.render(o,T),f&&T.hasChild&&q.createElement(fH,{isVisible:p},q.createElement(gm,{parentId:e.id,depth:e.depth+1})),!f&&T.hasChild&&p&&q.createElement(gm,{parentId:e.id,depth:e.depth+1}))},$x=function(e){var t=Du(),n=t.placeholderRender,r=t.placeholderComponent,i=t.classes,o=q.useContext(Gd),s=Rl(),c=s.getMonitor(),f=c.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},gm=function(e){var t=Du(),n=q.useRef(null),r=t.tree.filter(function(A){return A.parent===e.parentId}),i=r,o=typeof t.sort=="function"?t.sort:hH;if(t.insertDroppableFirst){var s=r.filter(function(A){return A.droppable}),c=r.filter(function(A){return!A.droppable});t.sort===!1?i=ro(ro([],s,!0),c,!0):(s=s.sort(o),c=c.sort(o),i=ro(ro([],s,!0),c,!0))}else t.sort!==!1&&(i=r.sort(o));var f=_H(n),p=f[0],y=f[1],g=f[2];e.parentId===t.rootId&&Su(y,t.rootId,t)&&g(n);var S=AH(e.parentId,p),C=t.rootProps||{},P=t.listComponent;return q.createElement(P,_a({ref:n,role:"list"},C,{className:S}),i.map(function(A,M){return q.createElement(q.Fragment,{key:A.id},q.createElement($x,{depth:e.depth,listCount:i.length,dropTargetId:e.parentId,index:M}),q.createElement(LH,{id:A.id,depth:e.depth}))}),q.createElement($x,{depth:e.depth,listCount:i.length,dropTargetId:e.parentId}))},FH={height:"100%",left:0,pointerEvents:"none",position:"fixed",top:0,width:"100%",zIndex:100},NH=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}},jH=function(){var e=Du(),t=IH(),n=t.isDragging,r=t.clientOffset;return!n||!r?null:q.createElement("div",{style:FH},q.createElement("div",{style:NH(t)},e.dragPreviewRender&&e.dragPreviewRender(t)))};function BH(e,t){return q.createElement(EH,_a({},e,{treeRef:t}),e.dragPreviewRender&&q.createElement(jH,null),q.createElement(gm,{parentId:e.rootId,depth:0}))}var $H=q.forwardRef(BH);const ZE=q.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Gp=q.createContext({}),Oy=q.createContext(null),qp=typeof document<"u",VH=qp?q.useLayoutEffect:q.useEffect,JE=q.createContext({strict:!1}),_y=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),HH="framerAppearId",QE="data-"+_y(HH);function UH(e,t,n,r){const{visualElement:i}=q.useContext(Gp),o=q.useContext(JE),s=q.useContext(Oy),c=q.useContext(ZE).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:c}));const p=f.current;q.useInsertionEffect(()=>{p&&p.update(n,s)});const y=q.useRef(!!(n[QE]&&!window.HandoffComplete));return VH(()=>{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 vf(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function WH(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):vf(n)&&(n.current=r))},[t])}function Md(e){return typeof e=="string"||Array.isArray(e)}function Xp(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Py=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ry=["initial",...Py];function Kp(e){return Xp(e.animate)||Ry.some(t=>Md(e[t]))}function ek(e){return!!(Kp(e)||e.variants)}function zH(e,t){if(Kp(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Md(n)?n:void 0,animate:Md(r)?r:void 0}}return e.inherit!==!1?t:{}}function YH(e){const{initial:t,animate:n}=zH(e,q.useContext(Gp));return q.useMemo(()=>({initial:t,animate:n}),[Vx(t),Vx(n)])}function Vx(e){return Array.isArray(e)?e.join(" "):e}const Hx={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"]},Ld={};for(const e in Hx)Ld[e]={isEnabled:t=>Hx[e].some(n=>!!t[n])};function GH(e){for(const t in e)Ld[t]={...Ld[t],...e[t]}}const tk=q.createContext({}),nk=q.createContext({}),qH=Symbol.for("motionComponentSymbol");function XH({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&GH(e);function o(c,f){let p;const y={...q.useContext(ZE),...c,layoutId:KH(c)},{isStatic:g}=y,S=YH(c),C=r(c,g);if(!g&&qp){S.visualElement=UH(i,C,y,t);const P=q.useContext(nk),A=q.useContext(JE).strict;S.visualElement&&(p=S.visualElement.loadFeatures(y,A,e,P))}return bn.createElement(Gp.Provider,{value:S},p&&S.visualElement?bn.createElement(p,{visualElement:S.visualElement,...y}):null,n(i,c,WH(C,S.visualElement,f),C,g,S.visualElement))}const s=q.forwardRef(o);return s[qH]=i,s}function KH({layoutId:e}){const t=q.useContext(tk).id;return t&&e!==void 0?t+"-"+e:e}function ZH(e){function t(r,i={}){return XH(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 JH=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Iy(e){return typeof e!="string"||e.includes("-")?!1:!!(JH.indexOf(e)>-1||/[A-Z]/.test(e))}const gp={};function QH(e){Object.assign(gp,e)}const qd=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],_c=new Set(qd);function rk(e,{layout:t,layoutId:n}){return _c.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!gp[e]||e==="opacity")}const _o=e=>!!(e&&e.getVelocity),eU={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tU=qd.length;function nU(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let s=0;s<tU;s++){const c=qd[s];if(e[c]!==void 0){const f=eU[c]||c;o+=`${f}(${e[c]}) `}}return t&&!e.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(e,r?"":o):n&&r&&(o="none"),o}const ik=e=>t=>typeof t=="string"&&t.startsWith(e),ok=ik("--"),vm=ik("var(--"),rU=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,iU=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Tu=(e,t,n)=>Math.min(Math.max(n,e),t),Pc={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},bd={...Pc,transform:e=>Tu(0,1,e)},Rh={...Pc,default:1},wd=e=>Math.round(e*1e5)/1e5,Zp=/(-)?([\d]*\.?[\d])+/g,ak=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,oU=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Xd(e){return typeof e=="string"}const Kd=e=>({test:t=>Xd(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),cu=Kd("deg"),$s=Kd("%"),It=Kd("px"),aU=Kd("vh"),sU=Kd("vw"),Ux={...$s,parse:e=>$s.parse(e)/100,transform:e=>$s.transform(e*100)},Wx={...Pc,transform:Math.round},sk={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:cu,rotateX:cu,rotateY:cu,rotateZ:cu,scale:Rh,scaleX:Rh,scaleY:Rh,scaleZ:Rh,skew:cu,skewX:cu,skewY:cu,distance:It,translateX:It,translateY:It,translateZ:It,x:It,y:It,z:It,perspective:It,transformPerspective:It,opacity:bd,originX:Ux,originY:Ux,originZ:It,zIndex:Wx,fillOpacity:bd,strokeOpacity:bd,numOctaves:Wx};function Ay(e,t,n,r){const{style:i,vars:o,transform:s,transformOrigin:c}=e;let f=!1,p=!1,y=!0;for(const g in t){const S=t[g];if(ok(g)){o[g]=S;continue}const C=sk[g],P=iU(S,C);if(_c.has(g)){if(f=!0,s[g]=P,!y)continue;S!==(C.default||0)&&(y=!1)}else g.startsWith("origin")?(p=!0,c[g]=P):i[g]=P}if(t.transform||(f||r?i.transform=nU(e.transform,n,y,r):i.transform&&(i.transform="none")),p){const{originX:g="50%",originY:S="50%",originZ:C=0}=c;i.transformOrigin=`${g} ${S} ${C}`}}const My=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function lk(e,t,n){for(const r in t)!_o(t[r])&&!rk(r,n)&&(e[r]=t[r])}function lU({transformTemplate:e},t,n){return q.useMemo(()=>{const r=My();return Ay(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function uU(e,t,n){const r=e.style||{},i={};return lk(i,r,e),Object.assign(i,lU(e,t,n)),e.transformValues?e.transformValues(i):i}function cU(e,t,n){const r={},i=uU(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 fU=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 vp(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||fU.has(e)}let uk=e=>!vp(e);function dU(e){e&&(uk=t=>t.startsWith("on")?!vp(t):e(t))}try{dU(require("@emotion/is-prop-valid").default)}catch{}function hU(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(uk(i)||n===!0&&vp(i)||!t&&!vp(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function zx(e,t,n){return typeof e=="string"?e:It.transform(t+n*e)}function pU(e,t,n){const r=zx(t,e.x,e.width),i=zx(n,e.y,e.height);return`${r} ${i}`}const gU={offset:"stroke-dashoffset",array:"stroke-dasharray"},vU={offset:"strokeDashoffset",array:"strokeDasharray"};function mU(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?gU:vU;e[o.offset]=It.transform(-r);const s=It.transform(t),c=It.transform(n);e[o.array]=`${s} ${c}`}function Ly(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:c=1,pathOffset:f=0,...p},y,g,S){if(Ay(e,p,y,S),g){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:C,style:P,dimensions:A}=e;C.transform&&(A&&(P.transform=C.transform),delete C.transform),A&&(i!==void 0||o!==void 0||P.transform)&&(P.transformOrigin=pU(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&&mU(C,s,c,f,!1)}const ck=()=>({...My(),attrs:{}}),Fy=e=>typeof e=="string"&&e.toLowerCase()==="svg";function yU(e,t,n,r){const i=q.useMemo(()=>{const o=ck();return Ly(o,t,{enableHardwareAcceleration:!1},Fy(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};lk(o,e.style,e),i.style={...o,...i.style}}return i}function bU(e=!1){return(n,r,i,{latestValues:o},s)=>{const f=(Iy(n)?yU:cU)(r,o,s,n),y={...hU(r,typeof n=="string",e),...f,ref:i},{children:g}=r,S=q.useMemo(()=>_o(g)?g.get():g,[g]);return q.createElement(n,{...y,children:S})}}function fk(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 dk=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 hk(e,t,n,r){fk(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(dk.has(i)?i:_y(i),t.attrs[i])}function Ny(e,t){const{style:n}=e,r={};for(const i in n)(_o(n[i])||t.style&&_o(t.style[i])||rk(i,e))&&(r[i]=n[i]);return r}function pk(e,t){const n=Ny(e,t);for(const r in e)if(_o(e[r])||_o(t[r])){const i=qd.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}function jy(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}function wU(e){const t=q.useRef(null);return t.current===null&&(t.current=e()),t.current}const mp=e=>Array.isArray(e),xU=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),SU=e=>mp(e)?e[e.length-1]||0:e;function Gh(e){const t=_o(e)?e.get():e;return xU(t)?t.toValue():t}function TU({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const s={latestValues:CU(r,i,o,e),renderState:t()};return n&&(s.mount=c=>n(r,c,s)),s}const gk=e=>(t,n)=>{const r=q.useContext(Gp),i=q.useContext(Oy),o=()=>TU(e,t,r,i);return n?o():wU(o)};function CU(e,t,n,r){const i={},o=r(e,{});for(const S in o)i[S]=Gh(o[S]);let{initial:s,animate:c}=e;const f=Kp(e),p=ek(e);t&&p&&!f&&e.inherit!==!1&&(s===void 0&&(s=t.initial),c===void 0&&(c=t.animate));let y=n?n.initial===!1:!1;y=y||s===!1;const g=y?c:s;return g&&typeof g!="boolean"&&!Xp(g)&&(Array.isArray(g)?g:[g]).forEach(C=>{const P=jy(e,C);if(!P)return;const{transitionEnd:A,transition:M,...R}=P;for(const V in R){let U=R[V];if(Array.isArray(U)){const J=y?U.length-1:0;U=U[J]}U!==null&&(i[V]=U)}for(const V in A)i[V]=A[V]}),i}const ar=e=>e;class Yx{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 EU(e){let t=new Yx,n=new Yx,r=0,i=!1,o=!1;const s=new WeakSet,c={schedule:(f,p=!1,y=!1)=>{const g=y&&i,S=g?t:n;return p&&s.add(f),S.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)&&(c.schedule(y),e())}i=!1,o&&(o=!1,c.process(f))}};return c}const Ih=["prepare","read","update","preRender","render","postRender"],kU=40;function DU(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=Ih.reduce((g,S)=>(g[S]=EU(()=>n=!0),g),{}),s=g=>o[g].process(i),c=()=>{const g=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(g-i.timestamp,kU),1),i.timestamp=g,i.isProcessing=!0,Ih.forEach(s),i.isProcessing=!1,n&&t&&(r=!1,e(c))},f=()=>{n=!0,r=!0,i.isProcessing||e(c)};return{schedule:Ih.reduce((g,S)=>{const C=o[S];return g[S]=(P,A=!1,M=!1)=>(n||f(),C.schedule(P,A,M)),g},{}),cancel:g=>Ih.forEach(S=>o[S].cancel(g)),state:i,steps:o}}const{schedule:Nn,cancel:_l,state:Fi,steps:iv}=DU(typeof requestAnimationFrame<"u"?requestAnimationFrame:ar,!0),OU={useVisualState:gk({scrapeMotionValuesFromProps:pk,createRenderState:ck,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(()=>{Ly(n,r,{enableHardwareAcceleration:!1},Fy(t.tagName),e.transformTemplate),hk(t,n)})}})},_U={useVisualState:gk({scrapeMotionValuesFromProps:Ny,createRenderState:My})};function PU(e,{forwardMotionProps:t=!1},n,r){return{...Iy(e)?OU:_U,preloadedFeatures:n,useRender:bU(t),createVisualElement:r,Component:e}}function wl(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const vk=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Jp(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const RU=e=>t=>vk(t)&&e(t,Jp(t));function Tl(e,t,n,r){return wl(e,t,RU(n),r)}const IU=(e,t)=>n=>t(e(n)),mu=(...e)=>e.reduce(IU);function mk(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Gx=mk("dragHorizontal"),qx=mk("dragVertical");function yk(e){let t=!1;if(e==="y")t=qx();else if(e==="x")t=Gx();else{const n=Gx(),r=qx();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function bk(){const e=yk(!0);return e?(e(),!1):!0}class Ou{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Xx(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(o,s)=>{if(o.pointerType==="touch"||bk())return;const c=e.getProps();e.animationState&&c.whileHover&&e.animationState.setActive("whileHover",t),c[r]&&Nn.update(()=>c[r](o,s))};return Tl(e.current,n,i,{passive:!e.getProps()[r]})}class AU extends Ou{mount(){this.unmount=mu(Xx(this.node,!0),Xx(this.node,!1))}unmount(){}}class MU 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=mu(wl(this.node.current,"focus",()=>this.onFocus()),wl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const wk=(e,t)=>t?e===t?!0:wk(e,t.parentElement):!1;function ov(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Jp(n))}class LU 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=Tl(window,"pointerup",(c,f)=>{if(!this.checkPressEnd())return;const{onTap:p,onTapCancel:y,globalTapTarget:g}=this.node.getProps();Nn.update(()=>{!g&&!wk(this.node.current,c.target)?y&&y(c,f):p&&p(c,f)})},{passive:!(r.onTap||r.onPointerUp)}),s=Tl(window,"pointercancel",(c,f)=>this.cancelPress(c,f),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=mu(o,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=c=>{c.key!=="Enter"||!this.checkPressEnd()||ov("up",(f,p)=>{const{onTap:y}=this.node.getProps();y&&Nn.update(()=>y(f,p))})};this.removeEndListeners(),this.removeEndListeners=wl(this.node.current,"keyup",s),ov("down",(c,f)=>{this.startPress(c,f)})},n=wl(this.node.current,"keydown",t),r=()=>{this.isPressing&&ov("cancel",(o,s)=>this.cancelPress(o,s))},i=wl(this.node.current,"blur",r);this.removeAccessibleListeners=mu(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),!bk()}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=Tl(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=wl(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=mu(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const mm=new WeakMap,av=new WeakMap,FU=e=>{const t=mm.get(e.target);t&&t(e)},NU=e=>{e.forEach(FU)};function jU({root:e,...t}){const n=e||document;av.has(n)||av.set(n,{});const r=av.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(NU,{root:e,...t})),r[i]}function BU(e,t,n){const r=jU(t);return mm.set(e,n),r.observe(e),()=>{mm.delete(e),r.unobserve(e)}}const $U={some:0,all:1};class VU 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:$U[i]},c=f=>{const{isIntersecting:p}=f;if(this.isInView===p||(this.isInView=p,o&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:y,onViewportLeave:g}=this.node.getProps(),S=p?y:g;S&&S(f)};return BU(this.node.current,s,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(HU(t,n))&&this.startObserver()}unmount(){}}function HU({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const UU={inView:{Feature:VU},tap:{Feature:LU},focus:{Feature:MU},hover:{Feature:AU}};function xk(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 WU(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function zU(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Qp(e,t,n){const r=e.getProps();return jy(r,t,n!==void 0?n:r.custom,WU(e),zU(e))}let Zd=ar,as=ar;process.env.NODE_ENV!=="production"&&(Zd=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},as=(e,t)=>{if(!e)throw new Error(t)});const yu=e=>e*1e3,Cl=e=>e/1e3,YU={current:!1},Sk=e=>Array.isArray(e)&&typeof e[0]=="number";function Tk(e){return!!(!e||typeof e=="string"&&Ck[e]||Sk(e)||Array.isArray(e)&&e.every(Tk))}const sd=([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:sd([0,.65,.55,1]),circOut:sd([.55,0,1,.45]),backIn:sd([.31,.01,.66,-.59]),backOut:sd([.33,1.53,.69,.99])};function Ek(e){if(e)return Sk(e)?sd(e):Array.isArray(e)?e.map(Ek):Ck[e]}function GU(e,t,n,{delay:r=0,duration:i,repeat:o=0,repeatType:s="loop",ease:c,times:f}={}){const p={[t]:n};f&&(p.offset=f);const y=Ek(c);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 qU(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const kk=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,XU=1e-7,KU=12;function ZU(e,t,n,r,i){let o,s,c=0;do s=t+(n-t)/2,o=kk(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>XU&&++c<KU);return s}function Jd(e,t,n,r){if(e===t&&n===r)return ar;const i=o=>ZU(o,0,1,e,n);return o=>o===0||o===1?o:kk(i(o),t,r)}const JU=Jd(.42,0,1,1),QU=Jd(0,0,.58,1),Dk=Jd(.42,0,.58,1),eW=e=>Array.isArray(e)&&typeof e[0]!="number",Ok=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,_k=e=>t=>1-e(1-t),By=e=>1-Math.sin(Math.acos(e)),Pk=_k(By),tW=Ok(By),Rk=Jd(.33,1.53,.69,.99),$y=_k(Rk),nW=Ok($y),rW=e=>(e*=2)<1?.5*$y(e):.5*(2-Math.pow(2,-10*(e-1))),Kx={linear:ar,easeIn:JU,easeInOut:Dk,easeOut:QU,circIn:By,circInOut:tW,circOut:Pk,backIn:$y,backInOut:nW,backOut:Rk,anticipate:rW},Zx=e=>{if(Array.isArray(e)){as(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Jd(t,n,r,i)}else if(typeof e=="string")return as(Kx[e]!==void 0,`Invalid easing type '${e}'`),Kx[e];return e},Vy=(e,t)=>n=>!!(Xd(n)&&oU.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Ik=(e,t,n)=>r=>{if(!Xd(r))return r;const[i,o,s,c]=r.match(Zp);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:c!==void 0?parseFloat(c):1}},iW=e=>Tu(0,255,e),sv={...Pc,transform:e=>Math.round(iW(e))},mc={test:Vy("rgb","red"),parse:Ik("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+sv.transform(e)+", "+sv.transform(t)+", "+sv.transform(n)+", "+wd(bd.transform(r))+")"};function oW(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 ym={test:Vy("#"),parse:oW,transform:mc.transform},mf={test:Vy("hsl","hue"),parse:Ik("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+$s.transform(wd(t))+", "+$s.transform(wd(n))+", "+wd(bd.transform(r))+")"},no={test:e=>mc.test(e)||ym.test(e)||mf.test(e),parse:e=>mc.test(e)?mc.parse(e):mf.test(e)?mf.parse(e):ym.parse(e),transform:e=>Xd(e)?e:e.hasOwnProperty("red")?mc.transform(e):mf.transform(e)},Kn=(e,t,n)=>-n*e+n*t+e;function lv(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 aW({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 c=n<.5?n*(1+t):n+t-n*t,f=2*n-c;i=lv(f,c,e+1/3),o=lv(f,c,e),s=lv(f,c,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const uv=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},sW=[ym,mc,mf],lW=e=>sW.find(t=>t.test(e));function Jx(e){const t=lW(e);as(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===mf&&(n=aW(n)),n}const Ak=(e,t)=>{const n=Jx(e),r=Jx(t),i={...n};return o=>(i.red=uv(n.red,r.red,o),i.green=uv(n.green,r.green,o),i.blue=uv(n.blue,r.blue,o),i.alpha=Kn(n.alpha,r.alpha,o),mc.transform(i))};function uW(e){var t,n;return isNaN(e)&&Xd(e)&&(((t=e.match(Zp))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(ak))===null||n===void 0?void 0:n.length)||0)>0}const Mk={regex:rU,countKey:"Vars",token:"${v}",parse:ar},Lk={regex:ak,countKey:"Colors",token:"${c}",parse:no.parse},Fk={regex:Zp,countKey:"Numbers",token:"${n}",parse:Pc.parse};function cv(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 yp(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&cv(n,Mk),cv(n,Lk),cv(n,Fk),n}function Nk(e){return yp(e).values}function jk(e){const{values:t,numColors:n,numVars:r,tokenised:i}=yp(e),o=t.length;return s=>{let c=i;for(let f=0;f<o;f++)f<r?c=c.replace(Mk.token,s[f]):f<r+n?c=c.replace(Lk.token,no.transform(s[f])):c=c.replace(Fk.token,wd(s[f]));return c}}const cW=e=>typeof e=="number"?0:e;function fW(e){const t=Nk(e);return jk(e)(t.map(cW))}const Cu={test:uW,parse:Nk,createTransformer:jk,getAnimatableNone:fW},Bk=(e,t)=>n=>`${n>0?t:e}`;function $k(e,t){return typeof e=="number"?n=>Kn(e,t,n):no.test(e)?Ak(e,t):e.startsWith("var(")?Bk(e,t):Hk(e,t)}const Vk=(e,t)=>{const n=[...e],r=n.length,i=e.map((o,s)=>$k(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}},dW=(e,t)=>{const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=$k(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}},Hk=(e,t)=>{const n=Cu.createTransformer(t),r=yp(e),i=yp(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?mu(Vk(r.values,i.values),n):(Zd(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Bk(e,t))},Fd=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Qx=(e,t)=>n=>Kn(e,t,n);function hW(e){return typeof e=="number"?Qx:typeof e=="string"?no.test(e)?Ak:Hk:Array.isArray(e)?Vk:typeof e=="object"?dW:Qx}function pW(e,t,n){const r=[],i=n||hW(e[0]),o=e.length-1;for(let s=0;s<o;s++){let c=i(e[s],e[s+1]);if(t){const f=Array.isArray(t)?t[s]||ar:t;c=mu(f,c)}r.push(c)}return r}function Uk(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(as(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=pW(t,r,i),c=s.length,f=p=>{let y=0;if(c>1)for(;y<e.length-2&&!(p<e[y+1]);y++);const g=Fd(e[y],e[y+1],p);return s[y](g)};return n?p=>f(Tu(e[0],e[o-1],p)):f}function gW(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Fd(0,t,r);e.push(Kn(n,1,i))}}function vW(e){const t=[0];return gW(t,e.length-1),t}function mW(e,t){return e.map(n=>n*t)}function yW(e,t){return e.map(()=>t||Dk).splice(0,e.length-1)}function bp({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=eW(r)?r.map(Zx):Zx(r),o={done:!1,value:t[0]},s=mW(n&&n.length===t.length?n:vW(t),e),c=Uk(s,t,{ease:Array.isArray(i)?i:yW(t,i)});return{calculatedDuration:e,next:f=>(o.value=c(f),o.done=f>=e,o)}}function Wk(e,t){return t?e*(1e3/t):0}const bW=5;function zk(e,t,n){const r=Math.max(t-bW,0);return Wk(n-e(r),t-r)}const eS=.001,wW=.01,tS=10,xW=.05,SW=1;function TW({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;Zd(e<=yu(tS),"Spring duration must be 10 seconds or less");let s=1-t;s=Tu(xW,SW,s),e=Tu(wW,tS,Cl(e)),s<1?(i=p=>{const y=p*s,g=y*e,S=y-n,C=bm(p,s),P=Math.exp(-g);return eS-S/C*P},o=p=>{const g=p*s*e,S=g*n+n,C=Math.pow(s,2)*Math.pow(p,2)*e,P=Math.exp(-g),A=bm(Math.pow(p,2),s);return(-i(p)+eS>0?-1:1)*((S-C)*P)/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 c=5/e,f=EW(i,o,c);if(e=yu(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 CW=12;function EW(e,t,n){let r=n;for(let i=1;i<CW;i++)r=r-e(r)/t(r);return r}function bm(e,t){return e*Math.sqrt(1-t*t)}const kW=["duration","bounce"],DW=["stiffness","damping","mass"];function nS(e,t){return t.some(n=>e[n]!==void 0)}function OW(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!nS(e,DW)&&nS(e,kW)){const n=TW(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function Yk({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],o=e[e.length-1],s={done:!1,value:i},{stiffness:c,damping:f,mass:p,duration:y,velocity:g,isResolvedFromDuration:S}=OW({...r,velocity:-Cl(r.velocity||0)}),C=g||0,P=f/(2*Math.sqrt(c*p)),A=o-i,M=Cl(Math.sqrt(c/p)),R=Math.abs(A)<5;n||(n=R?.01:2),t||(t=R?.005:.5);let V;if(P<1){const U=bm(M,P);V=J=>{const K=Math.exp(-P*M*J);return o-K*((C+P*M*A)/U*Math.sin(U*J)+A*Math.cos(U*J))}}else if(P===1)V=U=>o-Math.exp(-M*U)*(A+(C+M*A)*U);else{const U=M*Math.sqrt(P*P-1);V=J=>{const K=Math.exp(-P*M*J),le=Math.min(U*J,300);return o-K*((C+P*M*A)*Math.sinh(le)+U*A*Math.cosh(le))/U}}return{calculatedDuration:S&&y||null,next:U=>{const J=V(U);if(S)s.done=U>=y;else{let K=C;U!==0&&(P<1?K=zk(V,U,J):K=0);const le=Math.abs(K)<=n,T=Math.abs(o-J)<=t;s.done=le&&T}return s.value=s.done?o:J,s}}}function rS({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:c,max:f,restDelta:p=.5,restSpeed:y}){const g=e[0],S={done:!1,value:g},C=he=>c!==void 0&&he<c||f!==void 0&&he>f,P=he=>c===void 0?f:f===void 0||Math.abs(c-he)<Math.abs(f-he)?c:f;let A=n*t;const M=g+A,R=s===void 0?M:s(M);R!==M&&(A=R-g);const V=he=>-A*Math.exp(-he/r),U=he=>R+V(he),J=he=>{const oe=V(he),ze=U(he);S.done=Math.abs(oe)<=p,S.value=S.done?R:ze};let K,le;const T=he=>{C(S.value)&&(K=he,le=Yk({keyframes:[S.value,P(S.value)],velocity:zk(U,he,S.value),damping:i,stiffness:o,restDelta:p,restSpeed:y}))};return T(0),{calculatedDuration:null,next:he=>{let oe=!1;return!le&&K===void 0&&(oe=!0,J(he),T(he)),K!==void 0&&he>K?le.next(he-K):(!oe&&J(he),S)}}}const _W=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Nn.update(t,!0),stop:()=>_l(t),now:()=>Fi.isProcessing?Fi.timestamp:performance.now()}},iS=2e4;function oS(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<iS;)t+=n,r=e.next(t);return t>=iS?1/0:t}const PW={decay:rS,inertia:rS,tween:bp,keyframes:bp,spring:Yk};function wp({autoplay:e=!0,delay:t=0,driver:n=_W,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:c="loop",onPlay:f,onStop:p,onComplete:y,onUpdate:g,...S}){let C=1,P=!1,A,M;const R=()=>{M=new Promise(Ee=>{A=Ee})};R();let V;const U=PW[i]||bp;let J;U!==bp&&typeof r[0]!="number"&&(process.env.NODE_ENV!=="production"&&as(r.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${r}`),J=Uk([0,100],r,{clamp:!1}),r=[0,100]);const K=U({...S,keyframes:r});let le;c==="mirror"&&(le=U({...S,keyframes:[...r].reverse(),velocity:-(S.velocity||0)}));let T="idle",he=null,oe=null,ze=null;K.calculatedDuration===null&&o&&(K.calculatedDuration=oS(K));const{calculatedDuration:je}=K;let Pe=1/0,Be=1/0;je!==null&&(Pe=je+s,Be=Pe*(o+1)-s);let He=0;const ce=Ee=>{if(oe===null)return;C>0&&(oe=Math.min(oe,Ee)),C<0&&(oe=Math.min(Ee-Be/C,oe)),he!==null?He=he:He=Math.round(Ee-oe)*C;const Ue=He-t*(C>=0?1:-1),$e=C>=0?Ue<0:Ue>Be;He=Math.max(Ue,0),T==="finished"&&he===null&&(He=Be);let ke=He,_e=K;if(o){const ht=Math.min(He,Be)/Pe;let lt=Math.floor(ht),mt=ht%1;!mt&&ht>=1&&(mt=1),mt===1&<--,lt=Math.min(lt,o+1),!!(lt%2)&&(c==="reverse"?(mt=1-mt,s&&(mt-=s/Pe)):c==="mirror"&&(_e=le)),ke=Tu(0,1,mt)*Pe}const Ne=$e?{done:!1,value:r[0]}:_e.next(ke);J&&(Ne.value=J(Ne.value));let{done:rt}=Ne;!$e&&je!==null&&(rt=C>=0?He>=Be:He<=0);const at=he===null&&(T==="finished"||T==="running"&&rt);return g&&g(Ne.value),at&&Ge(),Ne},Se=()=>{V&&V.stop(),V=void 0},Ie=()=>{T="idle",Se(),A(),R(),oe=ze=null},Ge=()=>{T="finished",y&&y(),Se(),A()},tt=()=>{if(P)return;V||(V=n(ce));const Ee=V.now();f&&f(),he!==null?oe=Ee-he:(!oe||T==="finished")&&(oe=Ee),T==="finished"&&R(),ze=oe,he=null,T="running",V.start()};e&&tt();const we={then(Ee,Ue){return M.then(Ee,Ue)},get time(){return Cl(He)},set time(Ee){Ee=yu(Ee),He=Ee,he!==null||!V||C===0?he=Ee:oe=V.now()-Ee/C},get duration(){const Ee=K.calculatedDuration===null?oS(K):K.calculatedDuration;return Cl(Ee)},get speed(){return C},set speed(Ee){Ee===C||!V||(C=Ee,we.time=Cl(He))},get state(){return T},play:tt,pause:()=>{T="paused",he=He},stop:()=>{P=!0,T!=="idle"&&(T="idle",p&&p(),Ie())},cancel:()=>{ze!==null&&ce(ze),Ie()},complete:()=>{T="finished"},sample:Ee=>(oe=0,ce(Ee))};return we}function RW(e){let t;return()=>(t===void 0&&(t=e()),t)}const IW=RW(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),AW=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Ah=10,MW=2e4,LW=(e,t)=>t.type==="spring"||e==="backgroundColor"||!Tk(t.ease);function FW(e,t,{onUpdate:n,onComplete:r,...i}){if(!(IW()&&AW.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let s=!1,c,f,p=!1;const y=()=>{f=new Promise(U=>{c=U})};y();let{keyframes:g,duration:S=300,ease:C,times:P}=i;if(LW(t,i)){const U=wp({...i,repeat:0,delay:0});let J={done:!1,value:g[0]};const K=[];let le=0;for(;!J.done&&le<MW;)J=U.sample(le),K.push(J.value),le+=Ah;P=void 0,g=K,S=le-Ah,C="linear"}const A=GU(e.owner.current,t,g,{...i,duration:S,ease:C,times:P}),M=()=>{p=!1,A.cancel()},R=()=>{p=!0,Nn.update(M),c(),y()};return A.onfinish=()=>{p||(e.set(qU(g,i)),r&&r(),R())},{then(U,J){return f.then(U,J)},attachTimeline(U){return A.timeline=U,A.onfinish=null,ar},get time(){return Cl(A.currentTime||0)},set time(U){A.currentTime=yu(U)},get speed(){return A.playbackRate},set speed(U){A.playbackRate=U},get duration(){return Cl(S)},play:()=>{s||(A.play(),_l(M))},pause:()=>A.pause(),stop:()=>{if(s=!0,A.playState==="idle")return;const{currentTime:U}=A;if(U){const J=wp({...i,autoplay:!1});e.setWithVelocity(J.sample(U-Ah).value,J.sample(U).value,Ah)}R()},complete:()=>{p||A.finish()},cancel:R}}function NW({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?wp({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const jW={type:"spring",stiffness:500,damping:25,restSpeed:10},BW=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),$W={type:"keyframes",duration:.8},VW={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},HW=(e,{keyframes:t})=>t.length>2?$W:_c.has(e)?e.startsWith("scale")?BW(t[1]):jW:VW,wm=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Cu.test(t)||t==="0")&&!t.startsWith("url(")),UW=new Set(["brightness","contrast","saturate","opacity"]);function WW(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Zp)||[];if(!r)return e;const i=n.replace(r,"");let o=UW.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const zW=/([a-z-]*)\(.*?\)/g,xm={...Cu,getAnimatableNone:e=>{const t=e.match(zW);return t?t.map(WW).join(" "):e}},YW={...sk,color:no,backgroundColor:no,outlineColor:no,fill:no,stroke:no,borderColor:no,borderTopColor:no,borderRightColor:no,borderBottomColor:no,borderLeftColor:no,filter:xm,WebkitFilter:xm},Hy=e=>YW[e];function Gk(e,t){let n=Hy(e);return n!==xm&&(n=Cu),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const qk=e=>/^0[^.\s]+$/.test(e);function GW(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||qk(e)}function qW(e,t,n,r){const i=wm(t,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const s=r.from!==void 0?r.from:e.get();let c;const f=[];for(let p=0;p<o.length;p++)o[p]===null&&(o[p]=p===0?s:o[p-1]),GW(o[p])&&f.push(p),typeof o[p]=="string"&&o[p]!=="none"&&o[p]!=="0"&&(c=o[p]);if(i&&f.length&&c)for(let p=0;p<f.length;p++){const y=f[p];o[y]=Gk(t,c)}return o}function XW({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:c,from:f,elapsed:p,...y}){return!!Object.keys(y).length}function Uy(e,t){return e[t]||e.default||e}const KW={skipAnimations:!1},Wy=(e,t,n,r={})=>i=>{const o=Uy(r,e)||{},s=o.delay||r.delay||0;let{elapsed:c=0}=r;c=c-yu(s);const f=qW(t,e,n,o),p=f[0],y=f[f.length-1],g=wm(e,p),S=wm(e,y);Zd(g===S,`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:-c,onUpdate:P=>{t.set(P),o.onUpdate&&o.onUpdate(P)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(XW(o)||(C={...C,...HW(e,C)}),C.duration&&(C.duration=yu(C.duration)),C.repeatDelay&&(C.repeatDelay=yu(C.repeatDelay)),!g||!S||YU.current||o.type===!1||KW.skipAnimations)return NW(C);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const P=FW(t,e,C);if(P)return P}return wp(C)};function xp(e){return!!(_o(e)&&e.add)}const Xk=e=>/^\-?\d*\.?\d+$/.test(e);function zy(e,t){e.indexOf(t)===-1&&e.push(t)}function Yy(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Gy{constructor(){this.subscriptions=[]}add(t){return zy(this.subscriptions,t),()=>Yy(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const s=this.subscriptions[o];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const aS=new Set;function qy(e,t,n){e||aS.has(t)||(console.warn(t),aS.add(t))}const ZW=e=>!isNaN(parseFloat(e));class JW{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=ZW(this.current),this.owner=n.owner}onChange(t){return process.env.NODE_ENV!=="production"&&qy(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Gy);const r=this.events[t].add(n);return t==="change"?()=>{r(),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?Wk(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 Of(e,t){return new JW(e,t)}const Kk=e=>t=>t.test(e),QW={test:e=>e==="auto",parse:e=>e},Zk=[Pc,It,$s,cu,sU,aU,QW],od=e=>Zk.find(Kk(e)),ez=[...Zk,no,Cu],tz=e=>ez.find(Kk(e));function nz(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Of(n))}function rz(e,t){const n=Qp(e,t);let{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const s in o){const c=SU(o[s]);nz(e,s,c)}}function iz(e,t,n){var r,i;const o=Object.keys(t).filter(c=>!e.hasValue(c)),s=o.length;if(s)for(let c=0;c<s;c++){const f=o[c],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"&&(Xk(y)||qk(y))?y=parseFloat(y):!tz(y)&&Cu.test(p)&&(y=Gk(f,p)),e.addValue(f,Of(y,{owner:e})),n[f]===void 0&&(n[f]=y),y!==null&&e.setBaseTarget(f,y))}}function oz(e,t){return t?(t[e]||t.default||t).from:void 0}function az(e,t,n){const r={};for(const i in e){const o=oz(i,t);if(o!==void 0)r[i]=o;else{const s=n.getValue(i);s&&(r[i]=s.get())}}return r}function sz({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function lz(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,...c}=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 c){const S=e.getValue(g),C=c[g];if(!S||C===void 0||y&&sz(y,g))continue;const P={delay:n,elapsed:0,...Uy(o||{},g)};if(window.HandoffAppearAnimations){const R=e.getProps()[QE];if(R){const V=window.HandoffAppearAnimations(R,g,S,Nn);V!==null&&(P.elapsed=V,P.isHandoff=!0)}}let A=!P.isHandoff&&!lz(S,C);if(P.type==="spring"&&(S.getVelocity()||P.velocity)&&(A=!1),S.animation&&(A=!1),A)continue;S.start(Wy(g,S,C,e.shouldReduceMotion&&_c.has(g)?{type:!1}:P));const M=S.animation;xp(f)&&(f.add(g),M.then(()=>f.remove(g))),p.push(M)}return s&&Promise.all(p).then(()=>{s&&rz(e,s)}),p}function Sm(e,t,n={}){const r=Qp(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 uz(e,t,p+f,y,g,n)}:()=>Promise.resolve(),{when:c}=i;if(c){const[f,p]=c==="beforeChildren"?[o,s]:[s,o];return f().then(()=>p())}else return Promise.all([o(),s(n.delay)])}function uz(e,t,n=0,r=0,i=1,o){const s=[],c=(e.variantChildren.size-1)*r,f=i===1?(p=0)=>p*r:(p=0)=>c-p*r;return Array.from(e.variantChildren).sort(cz).forEach((p,y)=>{p.notify("AnimationStart",t),s.push(Sm(p,t,{...o,delay:n+f(y)}).then(()=>p.notify("AnimationComplete",t)))}),Promise.all(s)}function cz(e,t){return e.sortNodePosition(t)}function fz(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>Sm(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=Sm(e,t,n);else{const i=typeof t=="function"?Qp(e,t,n.custom):t;r=Promise.all(Jk(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}const dz=[...Py].reverse(),hz=Py.length;function pz(e){return t=>Promise.all(t.map(({animation:n,options:r})=>fz(e,n,r)))}function gz(e){let t=pz(e);const n=mz();let r=!0;const i=(f,p)=>{const y=Qp(e,p);if(y){const{transition:g,transitionEnd:S,...C}=y;f={...f,...C,...S}}return f};function o(f){t=f(e)}function s(f,p){const y=e.getProps(),g=e.getVariantContext(!0)||{},S=[],C=new Set;let P={},A=1/0;for(let R=0;R<hz;R++){const V=dz[R],U=n[V],J=y[V]!==void 0?y[V]:g[V],K=Md(J),le=V===p?U.isActive:null;le===!1&&(A=R);let T=J===g[V]&&J!==y[V]&&K;if(T&&r&&e.manuallyAnimateOnMount&&(T=!1),U.protectedKeys={...P},!U.isActive&&le===null||!J&&!U.prevProp||Xp(J)||typeof J=="boolean")continue;let oe=vz(U.prevProp,J)||V===p&&U.isActive&&!T&&K||R>A&&K,ze=!1;const je=Array.isArray(J)?J:[J];let Pe=je.reduce(i,{});le===!1&&(Pe={});const{prevResolvedValues:Be={}}=U,He={...Be,...Pe},ce=Se=>{oe=!0,C.has(Se)&&(ze=!0,C.delete(Se)),U.needsAnimating[Se]=!0};for(const Se in He){const Ie=Pe[Se],Ge=Be[Se];if(P.hasOwnProperty(Se))continue;let tt=!1;mp(Ie)&&mp(Ge)?tt=!xk(Ie,Ge):tt=Ie!==Ge,tt?Ie!==void 0?ce(Se):C.add(Se):Ie!==void 0&&C.has(Se)?ce(Se):U.protectedKeys[Se]=!0}U.prevProp=J,U.prevResolvedValues=Pe,U.isActive&&(P={...P,...Pe}),r&&e.blockInitialAnimation&&(oe=!1),oe&&(!T||ze)&&S.push(...je.map(Se=>({animation:Se,options:{type:V,...f}})))}if(C.size){const R={};C.forEach(V=>{const U=e.getBaseTarget(V);U!==void 0&&(R[V]=U)}),S.push({animation:R})}let M=!!S.length;return r&&(y.initial===!1||y.initial===y.animate)&&!e.manuallyAnimateOnMount&&(M=!1),r=!1,M?t(S):Promise.resolve()}function c(f,p,y){var g;if(n[f].isActive===p)return Promise.resolve();(g=e.variantChildren)===null||g===void 0||g.forEach(C=>{var P;return(P=C.animationState)===null||P===void 0?void 0:P.setActive(f,p)}),n[f].isActive=p;const S=s(y,f);for(const C in n)n[C].protectedKeys={};return S}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n}}function vz(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!xk(t,e):!1}function cc(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function mz(){return{animate:cc(!0),whileInView:cc(),whileHover:cc(),whileTap:cc(),whileDrag:cc(),whileFocus:cc(),exit:cc()}}class yz extends Ou{constructor(t){super(t),t.animationState||(t.animationState=gz(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Xp(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 bz=0;class wz extends Ou{constructor(){super(...arguments),this.id=bz++}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 xz={animation:{Feature:yz},exit:{Feature:wz}},sS=(e,t)=>Math.abs(e-t);function Sz(e,t){const n=sS(e.x,t.x),r=sS(e.y,t.y);return Math.sqrt(n**2+r**2)}class Qk{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=dv(this.lastMoveEventInfo,this.history),S=this.startEvent!==null,C=Sz(g.offset,{x:0,y:0})>=3;if(!S&&!C)return;const{point:P}=g,{timestamp:A}=Fi;this.history.push({...P,timestamp:A});const{onStart:M,onMove:R}=this.handlers;S||(M&&M(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),R&&R(this.lastMoveEvent,g)},this.handlePointerMove=(g,S)=>{this.lastMoveEvent=g,this.lastMoveEventInfo=fv(S,this.transformPagePoint),Nn.update(this.updatePoint,!0)},this.handlePointerUp=(g,S)=>{this.end();const{onEnd:C,onSessionEnd:P,resumeAnimation:A}=this.handlers;if(this.dragSnapToOrigin&&A&&A(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const M=dv(g.type==="pointercancel"?this.lastMoveEventInfo:fv(S,this.transformPagePoint),this.history);this.startEvent&&C&&C(g,M),P&&P(g,M)},!vk(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=Jp(t),c=fv(s,this.transformPagePoint),{point:f}=c,{timestamp:p}=Fi;this.history=[{...f,timestamp:p}];const{onSessionStart:y}=n;y&&y(t,dv(c,this.history)),this.removeListeners=mu(Tl(this.contextWindow,"pointermove",this.handlePointerMove),Tl(this.contextWindow,"pointerup",this.handlePointerUp),Tl(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),_l(this.updatePoint)}}function fv(e,t){return t?{point:t(e.point)}:e}function lS(e,t){return{x:e.x-t.x,y:e.y-t.y}}function dv({point:e},t){return{point:e,delta:lS(e,eD(t)),offset:lS(e,Tz(t)),velocity:Cz(t,.1)}}function Tz(e){return e[0]}function eD(e){return e[e.length-1]}function Cz(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=eD(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>yu(t)));)n--;if(!r)return{x:0,y:0};const o=Cl(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 Tm(e,t=0,n=.01){return Math.abs(e-t)<=n}function uS(e,t,n,r=.5){e.origin=r,e.originPoint=Kn(t.min,t.max,e.origin),e.scale=Ko(n)/Ko(t),(Tm(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Kn(n.min,n.max,e.origin)-e.originPoint,(Tm(e.translate)||isNaN(e.translate))&&(e.translate=0)}function xd(e,t,n,r){uS(e.x,t.x,n.x,r?r.originX:void 0),uS(e.y,t.y,n.y,r?r.originY:void 0)}function cS(e,t,n){e.min=n.min+t.min,e.max=e.min+Ko(t)}function Ez(e,t,n){cS(e.x,t.x,n.x),cS(e.y,t.y,n.y)}function fS(e,t,n){e.min=t.min-n.min,e.max=e.min+Ko(t)}function Sd(e,t,n){fS(e.x,t.x,n.x),fS(e.y,t.y,n.y)}function kz(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 dS(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 Dz(e,{top:t,left:n,bottom:r,right:i}){return{x:dS(e.x,n,i),y:dS(e.y,t,r)}}function hS(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 Oz(e,t){return{x:hS(e.x,t.x),y:hS(e.y,t.y)}}function _z(e,t){let n=.5;const r=Ko(e),i=Ko(t);return i>r?n=Fd(t.min,t.max-r,e.min):r>i&&(n=Fd(e.min,e.max-i,t.min)),Tu(0,1,n)}function Pz(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 Cm=.35;function Rz(e=Cm){return e===!1?e=0:e===!0&&(e=Cm),{x:pS(e,"left","right"),y:pS(e,"top","bottom")}}function pS(e,t,n){return{min:gS(e,t),max:gS(e,n)}}function gS(e,t){return typeof e=="number"?e:e[t]||0}const vS=()=>({translate:0,scale:1,origin:0,originPoint:0}),yf=()=>({x:vS(),y:vS()}),mS=()=>({min:0,max:0}),Cr=()=>({x:mS(),y:mS()});function Ta(e){return[e("x"),e("y")]}function tD({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Iz({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Az(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 hv(e){return e===void 0||e===1}function Em({scale:e,scaleX:t,scaleY:n}){return!hv(e)||!hv(t)||!hv(n)}function hc(e){return Em(e)||nD(e)||e.z||e.rotate||e.rotateX||e.rotateY}function nD(e){return yS(e.x)||yS(e.y)}function yS(e){return e&&e!=="0%"}function Sp(e,t,n){const r=e-n,i=t*r;return n+i}function bS(e,t,n,r,i){return i!==void 0&&(e=Sp(e,i,r)),Sp(e,n,r)+t}function km(e,t=0,n=1,r,i){e.min=bS(e.min,t,n,r,i),e.max=bS(e.max,t,n,r,i)}function rD(e,{x:t,y:n}){km(e.x,t.translate,t.scale,t.originPoint),km(e.y,n.translate,n.scale,n.originPoint)}function Mz(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let c=0;c<i;c++){o=n[c],s=o.projectionDelta;const f=o.instance;f&&f.style&&f.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&bf(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,rD(e,s)),r&&hc(o.latestValues)&&bf(e,o.latestValues))}t.x=wS(t.x),t.y=wS(t.y)}function wS(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function du(e,t){e.min=e.min+t,e.max=e.max+t}function xS(e,t,[n,r,i]){const o=t[i]!==void 0?t[i]:.5,s=Kn(e.min,e.max,o);km(e,t[n],t[r],s,t.scale)}const Lz=["x","scaleX","originX"],Fz=["y","scaleY","originY"];function bf(e,t){xS(e.x,t,Lz),xS(e.y,t,Fz)}function iD(e,t){return tD(Az(e.getBoundingClientRect(),t))}function Nz(e,t,n){const r=iD(e,n),{scroll:i}=t;return i&&(du(r.x,i.offset.x),du(r.y,i.offset.y)),r}const oD=({current:e})=>e?e.ownerDocument.defaultView:null,jz=new WeakMap;class Bz{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(Jp(y,"page").point)},o=(y,g)=>{const{drag:S,dragPropagation:C,onDragStart:P}=this.getProps();if(S&&!C&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=yk(S),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ta(M=>{let R=this.getAxisMotionValue(M).get()||0;if($s.test(R)){const{projection:V}=this.visualElement;if(V&&V.layout){const U=V.layout.layoutBox[M];U&&(R=Ko(U)*(parseFloat(R)/100))}}this.originPoint[M]=R}),P&&Nn.update(()=>P(y,g),!1,!0);const{animationState:A}=this.visualElement;A&&A.setActive("whileDrag",!0)},s=(y,g)=>{const{dragPropagation:S,dragDirectionLock:C,onDirectionLock:P,onDrag:A}=this.getProps();if(!S&&!this.openGlobalLock)return;const{offset:M}=g;if(C&&this.currentDirection===null){this.currentDirection=$z(M),this.currentDirection!==null&&P&&P(this.currentDirection);return}this.updateAxis("x",g.point,M),this.updateAxis("y",g.point,M),this.visualElement.render(),A&&A(y,g)},c=(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 Qk(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:c,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,contextWindow:oD(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||!Mh(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=kz(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&&vf(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=Dz(i.layoutBox,n):this.constraints=!1,this.elastic=Rz(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Ta(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=Pz(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!vf(t))return!1;const r=t.current;as(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=Nz(r,i.root,this.visualElement.getTransformPagePoint());let s=Oz(i.layout.layoutBox,o);if(n){const c=n(Iz(s));this.hasMutatedConstraints=!!c,c&&(s=tD(c))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:c}=this.getProps(),f=this.constraints||{},p=Ta(y=>{if(!Mh(y,n,this.currentDirection))return;let g=f&&f[y]||{};s&&(g={min:0,max:0});const S=i?200:1e6,C=i?40:1e7,P={type:"inertia",velocity:r?t[y]:0,bounceStiffness:S,bounceDamping:C,timeConstant:750,restDelta:1,restSpeed:10,...o,...g};return this.startAxisValueAnimation(y,P)});return Promise.all(p).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(Wy(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(!Mh(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:c}=i.layout.layoutBox[n];o.set(t[n]-Kn(s,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!vf(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Ta(s=>{const c=this.getAxisMotionValue(s);if(c){const f=c.get();i[s]=_z({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(!Mh(s,t,null))return;const c=this.getAxisMotionValue(s),{min:f,max:p}=this.constraints[s];c.set(Kn(f,p,i[s]))})}addListeners(){if(!this.visualElement.current)return;jz.set(this.visualElement,this);const t=this.visualElement.current,n=Tl(t,"pointerdown",f=>{const{drag:p,dragListener:y=!0}=this.getProps();p&&y&&this.start(f)}),r=()=>{const{dragConstraints:f}=this.getProps();vf(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=wl(window,"resize",()=>this.scalePositionWithinConstraints()),c=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(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=Cm,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:c}}}function Mh(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function $z(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Vz extends Ou{constructor(t){super(t),this.removeGroupControls=ar,this.removeListeners=ar,this.controls=new Bz(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 SS=e=>(t,n)=>{e&&Nn.update(()=>e(t,n))};class Hz extends Ou{constructor(){super(...arguments),this.removePointerDownListener=ar}onPointerDown(t){this.session=new Qk(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:oD(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:SS(t),onStart:SS(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&Nn.update(()=>i(o,s))}}}mount(){this.removePointerDownListener=Tl(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 Uz(){const e=q.useContext(Oy);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 qh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function TS(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ad={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(It.test(e))e=parseFloat(e);else return e;const n=TS(e,t.target.x),r=TS(e,t.target.y);return`${n}% ${r}%`}},Wz={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Cu.parse(e);if(i.length>5)return r;const o=Cu.createTransformer(e),s=typeof i[0]!="number"?1:0,c=n.x.scale*t.x,f=n.y.scale*t.y;i[0+s]/=c,i[1+s]/=f;const p=Kn(c,f,.5);return typeof i[2+s]=="number"&&(i[2+s]/=p),typeof i[3+s]=="number"&&(i[3+s]/=p),o(i)}};class zz extends q.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;QH(Yz),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()})),qh.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 c=s.getStack();(!c||!c.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 aD(e){const[t,n]=Uz(),r=q.useContext(tk);return q.createElement(zz,{...e,layoutGroup:r,switchLayoutGroup:q.useContext(nk),isPresent:t,safeToRemove:n})}const Yz={borderRadius:{...ad,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ad,borderTopRightRadius:ad,borderBottomLeftRadius:ad,borderBottomRightRadius:ad,boxShadow:Wz},sD=["TopLeft","TopRight","BottomLeft","BottomRight"],Gz=sD.length,CS=e=>typeof e=="string"?parseFloat(e):e,ES=e=>typeof e=="number"||It.test(e);function qz(e,t,n,r,i,o){i?(e.opacity=Kn(0,n.opacity!==void 0?n.opacity:1,Xz(r)),e.opacityExit=Kn(t.opacity!==void 0?t.opacity:1,0,Kz(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<Gz;s++){const c=`border${sD[s]}Radius`;let f=kS(t,c),p=kS(n,c);if(f===void 0&&p===void 0)continue;f||(f=0),p||(p=0),f===0||p===0||ES(f)===ES(p)?(e[c]=Math.max(Kn(CS(f),CS(p),r),0),($s.test(p)||$s.test(f))&&(e[c]+="%")):e[c]=p}(t.rotate||n.rotate)&&(e.rotate=Kn(t.rotate||0,n.rotate||0,r))}function kS(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Xz=lD(0,.5,Pk),Kz=lD(.5,.95,ar);function lD(e,t,n){return r=>r<e?0:r>t?1:n(Fd(e,t,r))}function DS(e,t){e.min=t.min,e.max=t.max}function Sa(e,t){DS(e.x,t.x),DS(e.y,t.y)}function OS(e,t,n,r,i){return e-=t,e=Sp(e,1/n,r),i!==void 0&&(e=Sp(e,1/i,r)),e}function Zz(e,t=0,n=1,r=.5,i,o=e,s=e){if($s.test(t)&&(t=parseFloat(t),t=Kn(s.min,s.max,t/100)-s.min),typeof t!="number")return;let c=Kn(o.min,o.max,r);e===o&&(c-=t),e.min=OS(e.min,t,n,c,i),e.max=OS(e.max,t,n,c,i)}function _S(e,t,[n,r,i],o,s){Zz(e,t[n],t[r],t[i],t.scale,o,s)}const Jz=["x","scaleX","originX"],Qz=["y","scaleY","originY"];function PS(e,t,n,r){_S(e.x,t,Jz,n?n.x:void 0,r?r.x:void 0),_S(e.y,t,Qz,n?n.y:void 0,r?r.y:void 0)}function RS(e){return e.translate===0&&e.scale===1}function uD(e){return RS(e.x)&&RS(e.y)}function e5(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 cD(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 IS(e){return Ko(e.x)/Ko(e.y)}class t5{constructor(){this.members=[]}add(t){zy(this.members,t),t.scheduleRender()}remove(t){if(Yy(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function AS(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,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||"none"}const n5=(e,t)=>e.depth-t.depth;class r5{constructor(){this.children=[],this.isDirty=!1}add(t){zy(this.children,t),this.isDirty=!0}remove(t){Yy(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(n5),this.isDirty=!1,this.children.forEach(t)}}function i5(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 o5(e){window.MotionDebug&&window.MotionDebug.record(e)}function a5(e){return e instanceof SVGElement&&e.tagName!=="svg"}function s5(e,t,n){const r=_o(e)?e:Of(e);return r.start(Wy("",r,t,n)),r.animation}const MS=["","X","Y","Z"],l5={visibility:"hidden"},LS=1e3;let u5=0;const pc={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function fD({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},c=t==null?void 0:t()){this.id=u5++,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,pc.totalNodes=pc.resolvedTargetDeltas=pc.recalculatedProjection=0,this.nodes.forEach(d5),this.nodes.forEach(m5),this.nodes.forEach(y5),this.nodes.forEach(h5),o5(pc)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new r5)}addEventListener(s,c){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Gy),this.eventHandlers.get(s).add(c)}notifyListeners(s,...c){const f=this.eventHandlers.get(s);f&&f.notify(...c)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=a5(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),c&&(p||f)&&(this.isLayoutDirty=!0),e){let g;const S=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,g&&g(),g=i5(S,250),qh.hasAnimatedSinceResize&&(qh.hasAnimatedSinceResize=!1,this.nodes.forEach(NS))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&y&&(f||p)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:S,hasRelativeTargetChanged:C,layout:P})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const A=this.options.transition||y.getDefaultTransition()||T5,{onLayoutAnimationStart:M,onLayoutAnimationComplete:R}=y.getProps(),V=!this.targetLayout||!cD(this.targetLayout,P)||C,U=!S&&C;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||U||S&&(V||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(g,U);const J={...Uy(A,"layout"),onPlay:M,onComplete:R};(y.shouldReduceMotion||this.options.layoutRoot)&&(J.delay=0,J.type=!1),this.startAnimation(J)}else S||NS(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=P})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,_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(b5),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:c,layout:f}=this.options;if(c===void 0&&!f)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(FS);return}this.isUpdating||this.nodes.forEach(g5),this.isUpdating=!1,this.nodes.forEach(v5),this.nodes.forEach(c5),this.nodes.forEach(f5),this.clearAllSnapshots();const c=performance.now();Fi.delta=Tu(0,1e3/60,c-Fi.timestamp),Fi.timestamp=c,Fi.isProcessing=!0,iv.update.process(Fi),iv.preRender.process(Fi),iv.render.process(Fi),Fi.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(p5),this.sharedNodes.forEach(w5)}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:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let c=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(c=!1),c&&(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,c=this.projectionDelta&&!uD(this.projectionDelta),f=this.getTransformTemplate(),p=f?f(this.latestValues,""):void 0,y=p!==this.prevTransformTemplateValue;s&&(c||hc(this.latestValues)||y)&&(i(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const c=this.measurePageBox();let f=this.removeElementScroll(c);return s&&(f=this.removeTransform(f)),C5(f),{animationId:this.root.animationId,measuredBox:c,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return Cr();const c=s.measureViewportBox(),{scroll:f}=this.root;return f&&(du(c.x,f.offset.x),du(c.y,f.offset.y)),c}removeElementScroll(s){const c=Cr();Sa(c,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(c,s);const{scroll:S}=this.root;S&&(du(c.x,-S.offset.x),du(c.y,-S.offset.y))}du(c.x,y.offset.x),du(c.y,y.offset.y)}}return c}applyTransform(s,c=!1){const f=Cr();Sa(f,s);for(let p=0;p<this.path.length;p++){const y=this.path[p];!c&&y.options.layoutScroll&&y.scroll&&y!==y.root&&bf(f,{x:-y.scroll.offset.x,y:-y.scroll.offset.y}),hc(y.latestValues)&&bf(f,y.latestValues)}return hc(this.latestValues)&&bf(f,this.latestValues),f}removeTransform(s){const c=Cr();Sa(c,s);for(let f=0;f<this.path.length;f++){const p=this.path[f];if(!p.instance||!hc(p.latestValues))continue;Em(p.latestValues)&&p.updateSnapshot();const y=Cr(),g=p.measurePageBox();Sa(y,g),PS(c,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,y)}return hc(this.latestValues)&&PS(c,this.latestValues),c}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 c;const f=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=f.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=f.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=f.isSharedProjectionDirty);const p=!!this.resumingFrom||this!==f;if(!(s||p&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:g,layoutId:S}=this.options;if(!(!this.layout||!(g||S))){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(),Sd(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(),Ez(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Sa(this.target,this.layout.layoutBox),rD(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(),Sd(this.relativeTargetOrigin,this.target,C.target),Sa(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}pc.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Em(this.parent.latestValues)||nD(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 c=this.getLead(),f=!!this.resumingFrom||this!==c;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 S=this.treeScale.x,C=this.treeScale.y;Mz(this.layoutCorrected,this.treeScale,this.path,f),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox);const{target:P}=c;if(!P){this.projectionTransform&&(this.projectionDelta=yf(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=yf(),this.projectionDeltaWithTransform=yf());const A=this.projectionTransform;xd(this.projectionDelta,this.layoutCorrected,P,this.latestValues),this.projectionTransform=AS(this.projectionDelta,this.treeScale),(this.projectionTransform!==A||this.treeScale.x!==S||this.treeScale.y!==C)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",P)),pc.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),s){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(s,c=!1){const f=this.snapshot,p=f?f.latestValues:{},y={...this.latestValues},g=yf();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const S=Cr(),C=f?f.source:void 0,P=this.layout?this.layout.source:void 0,A=C!==P,M=this.getStack(),R=!M||M.members.length<=1,V=!!(A&&!R&&this.options.crossfade===!0&&!this.path.some(S5));this.animationProgress=0;let U;this.mixTargetDelta=J=>{const K=J/1e3;jS(g.x,s.x,K),jS(g.y,s.y,K),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Sd(S,this.layout.layoutBox,this.relativeParent.layout.layoutBox),x5(this.relativeTarget,this.relativeTargetOrigin,S,K),U&&e5(this.relativeTarget,U)&&(this.isProjectionDirty=!1),U||(U=Cr()),Sa(U,this.relativeTarget)),A&&(this.animationValues=y,qz(y,p,this.latestValues,K,V,R)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=K},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(()=>{qh.hasAnimatedSinceResize=!0,this.currentAnimation=s5(0,LS,{...s,onUpdate:c=>{this.mixTargetDelta(c),s.onUpdate&&s.onUpdate(c)},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(LS),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:c,target:f,layout:p,latestValues:y}=s;if(!(!c||!f||!p)){if(this!==s&&this.layout&&p&&dD(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 S=Ko(this.layout.layoutBox.y);f.y.min=s.target.y.min,f.y.max=f.y.min+S}Sa(c,f),bf(c,y),xd(this.projectionDeltaWithTransform,this.layoutCorrected,c,y)}}registerSharedNode(s,c){this.sharedNodes.has(s)||this.sharedNodes.set(s,new t5),this.sharedNodes.get(s).add(c);const p=c.options.initialPromotionConfig;c.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(c):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:c}=this.options;return c?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:c}=this.options;return c?(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:c,preserveFollowOpacity:f}={}){const p=this.getStack();p&&p.promote(this,f),s&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let c=!1;const{latestValues:f}=s;if((f.rotate||f.rotateX||f.rotateY||f.rotateZ)&&(c=!0),!c)return;const p={};for(let y=0;y<MS.length;y++){const g="rotate"+MS[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 c,f;if(!this.instance||this.isSVG)return;if(!this.isVisible)return l5;const p={visibility:""},y=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,p.opacity="",p.pointerEvents=Gh(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=Gh(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!hc(this.latestValues)&&(A.transform=y?y({},""):"none",this.hasProjected=!1),A}const S=g.animationValues||g.latestValues;this.applyTransformsToTarget(),p.transform=AS(this.projectionDeltaWithTransform,this.treeScale,S),y&&(p.transform=y(S,p.transform));const{x:C,y:P}=this.projectionDelta;p.transformOrigin=`${C.origin*100}% ${P.origin*100}% 0`,g.animationValues?p.opacity=g===this?(f=(c=S.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&f!==void 0?f:1:this.preserveOpacity?this.latestValues.opacity:S.opacityExit:p.opacity=g===this?S.opacity!==void 0?S.opacity:"":S.opacityExit!==void 0?S.opacityExit:0;for(const A in gp){if(S[A]===void 0)continue;const{correct:M,applyTo:R}=gp[A],V=p.transform==="none"?S[A]:M(S[A],g);if(R){const U=R.length;for(let J=0;J<U;J++)p[R[J]]=V}else p[A]=V}return this.options.layoutId&&(p.pointerEvents=g===this?Gh(s==null?void 0:s.pointerEvents)||"":"none"),p}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var c;return(c=s.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(FS),this.root.sharedNodes.clear()}}}function c5(e){e.updateLayout()}function f5(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 S=s?n.measuredBox[g]:n.layoutBox[g],C=Ko(S);S.min=r[g].min,S.max=S.min+C}):dD(o,n.layoutBox,r)&&Ta(g=>{const S=s?n.measuredBox[g]:n.layoutBox[g],C=Ko(r[g]);S.max=S.min+C,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[g].max=e.relativeTarget[g].min+C)});const c=yf();xd(c,r,n.layoutBox);const f=yf();s?xd(f,e.applyTransform(i,!0),n.measuredBox):xd(f,r,n.layoutBox);const p=!uD(c);let y=!1;if(!e.resumeFrom){const g=e.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:S,layout:C}=g;if(S&&C){const P=Cr();Sd(P,n.layoutBox,S.layoutBox);const A=Cr();Sd(A,r,C.layoutBox),cD(P,A)||(y=!0),g.options.layoutRoot&&(e.relativeTarget=A,e.relativeTargetOrigin=P,e.relativeParent=g)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:f,layoutDelta:c,hasLayoutChanged:p,hasRelativeTargetChanged:y})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function d5(e){pc.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 h5(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function p5(e){e.clearSnapshot()}function FS(e){e.clearMeasurements()}function g5(e){e.isLayoutDirty=!1}function v5(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function NS(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function m5(e){e.resolveTargetDelta()}function y5(e){e.calcProjection()}function b5(e){e.resetRotation()}function w5(e){e.removeLeadSnapshot()}function jS(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 BS(e,t,n,r){e.min=Kn(t.min,n.min,r),e.max=Kn(t.max,n.max,r)}function x5(e,t,n,r){BS(e.x,t.x,n.x,r),BS(e.y,t.y,n.y,r)}function S5(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const T5={duration:.45,ease:[.4,0,.1,1]},$S=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),VS=$S("applewebkit/")&&!$S("chrome/")?Math.round:ar;function HS(e){e.min=VS(e.min),e.max=VS(e.max)}function C5(e){HS(e.x),HS(e.y)}function dD(e,t,n){return e==="position"||e==="preserve-aspect"&&!Tm(IS(t),IS(n),.2)}const E5=fD({attachResizeListener:(e,t)=>wl(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),pv={current:void 0},hD=fD({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!pv.current){const e=new E5({});e.mount(window),e.setOptions({layoutScroll:!0}),pv.current=e}return pv.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),k5={pan:{Feature:Hz},drag:{Feature:Vz,ProjectionNode:hD,MeasureLayout:aD}},D5=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function O5(e){const t=D5.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}const _5=4;function Dm(e,t,n=1){as(n<=_5,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=O5(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return Xk(s)?parseFloat(s):s}else return vm(i)?Dm(i,t,n+1):i}function P5(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(!vm(o))return;const s=Dm(o,r);s&&i.set(s)});for(const i in t){const o=t[i];if(!vm(o))continue;const s=Dm(o,r);s&&(t[i]=s,n||(n={}),n[i]===void 0&&(n[i]=o))}return{target:t,transitionEnd:n}}const R5=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),pD=e=>R5.has(e),I5=e=>Object.keys(e).some(pD),Lh=e=>e===Pc||e===It,US=(e,t)=>parseFloat(e.split(", ")[t]),WS=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return US(i[1],t);{const o=r.match(/^matrix\((.+)\)$/);return o?US(o[1],e):0}},A5=new Set(["x","y","z"]),M5=qd.filter(e=>!A5.has(e));function L5(e){const t=[];return M5.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 _f={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:WS(4,13),y:WS(5,14)};_f.translateX=_f.x;_f.translateY=_f.y;const F5=(e,t,n)=>{const r=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:s}=o,c={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(p=>{c[p]=_f[p](r,o)}),t.render();const f=t.measureViewportBox();return n.forEach(p=>{const y=t.getValue(p);y&&y.jump(c[p]),e[p]=_f[p](f,o)}),e},N5=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(pD);let o=[],s=!1;const c=[];if(i.forEach(f=>{const p=e.getValue(f);if(!e.hasValue(f))return;let y=n[f],g=od(y);const S=t[f];let C;if(mp(S)){const P=S.length,A=S[0]===null?1:0;y=S[A],g=od(y);for(let M=A;M<P&&S[M]!==null;M++)C?as(od(S[M])===C,"All keyframes must be of the same type"):(C=od(S[M]),as(C===g||Lh(g)&&Lh(C),"Keyframes must be of the same dimension as the current value"))}else C=od(S);if(g!==C)if(Lh(g)&&Lh(C)){const P=p.get();typeof P=="string"&&p.set(parseFloat(P)),typeof S=="string"?t[f]=parseFloat(S):Array.isArray(S)&&C===It&&(t[f]=S.map(parseFloat))}else g!=null&&g.transform&&(C!=null&&C.transform)&&(y===0||S===0)?y===0?p.set(C.transform(y)):t[f]=g.transform(S):(s||(o=L5(e),s=!0),c.push(f),r[f]=r[f]!==void 0?r[f]:t[f],p.jump(S))}),c.length){const f=c.indexOf("height")>=0?window.pageYOffset:null,p=F5(t,e,c);return o.length&&o.forEach(([y,g])=>{e.getValue(y).set(g)}),e.render(),qp&&f!==null&&window.scrollTo({top:f}),{target:p,transitionEnd:r}}else return{target:t,transitionEnd:r}};function j5(e,t,n,r){return I5(t)?N5(e,t,n,r):{target:t,transitionEnd:r}}const B5=(e,t,n,r)=>{const i=P5(e,t,r);return t=i.target,r=i.transitionEnd,j5(e,t,n,r)},Om={current:null},gD={current:!1};function $5(){if(gD.current=!0,!!qp)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Om.current=e.matches;e.addListener(t),t()}else Om.current=!1}function V5(e,t,n){const{willChange:r}=t;for(const i in t){const o=t[i],s=n[i];if(_o(o))e.addValue(i,o),xp(r)&&r.add(i),process.env.NODE_ENV==="development"&&qy(o.version==="10.18.0",`Attempting to mix Framer Motion versions ${o.version} with 10.18.0 may not work as expected.`);else if(_o(s))e.addValue(i,Of(o,{owner:e})),xp(r)&&r.remove(i);else if(s!==o)if(e.hasValue(i)){const c=e.getValue(i);!c.hasAnimated&&c.set(o)}else{const c=e.getStaticValue(i);e.addValue(i,Of(c!==void 0?c:o,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const zS=new WeakMap,vD=Object.keys(Ld),H5=vD.length,YS=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],U5=Ry.length;class W5{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:c,renderState:f}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},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=Kp(n),this.isVariantNode=ek(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 S=y[g];c[g]!==void 0&&_o(S)&&(S.set(c[g],!1),xp(p)&&p.add(g))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,zS.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)),gD.current||$5(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Om.current,process.env.NODE_ENV!=="production"&&qy(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){zS.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,c;if(process.env.NODE_ENV!=="production"&&i&&r){const f="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";n.ignoreStrict?Zd(!1,f):as(!1,f)}for(let f=0;f<H5;f++){const p=vD[f],{isEnabled:y,Feature:g,ProjectionNode:S,MeasureLayout:C}=Ld[p];S&&(s=S),y(n)&&(!this.features[p]&&g&&(this.features[p]=new g(this)),C&&(c=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:S,layoutRoot:C}=n;this.projection.setOptions({layoutId:f,layout:p,alwaysMeasureLayout:!!y||g&&vf(g),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof p=="string"?p:"both",initialPromotionConfig:o,layoutScroll:S,layoutRoot:C})}return c}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<YS.length;r++){const i=YS[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=V5(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<U5;r++){const i=Ry[r],o=this.props[i];(Md(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=Of(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=jy(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!_o(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Gy),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class mD extends W5{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=az(r,t||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),s&&(s=i(s))),o){iz(this,r,s);const c=B5(this,r,s,n);n=c.transitionEnd,r=c.target}return{transition:t,transitionEnd:n,...r}}}function z5(e){return window.getComputedStyle(e)}class Y5 extends mD{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(_c.has(n)){const r=Hy(n);return r&&r.default||0}else{const r=z5(t),i=(ok(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return iD(t,n)}build(t,n,r,i){Ay(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return Ny(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;_o(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){fk(t,n,r,i)}}class G5 extends mD{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(_c.has(n)){const r=Hy(n);return r&&r.default||0}return n=dk.has(n)?n:_y(n),t.getAttribute(n)}measureInstanceViewportBox(){return Cr()}scrapeMotionValuesFromProps(t,n){return pk(t,n)}build(t,n,r,i){Ly(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){hk(t,n,r,i)}mount(t){this.isSVGTag=Fy(t.tagName),super.mount(t)}}const q5=(e,t)=>Iy(e)?new G5(t,{enableHardwareAcceleration:!1}):new Y5(t,{enableHardwareAcceleration:!0}),X5={layout:{ProjectionNode:hD,MeasureLayout:aD}},K5={...xz,...UU,...k5,...X5},yD=ZH((e,t)=>PU(e,t,K5,q5));function bD(e){return _p({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 wD(e){return _p({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 Xy(e,t){return t?e:void 0}function Z5(e){return Fe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",...e,children:Fe.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 J5(e){const{renderChildren:t,parentRef:n,onlyChild:r}=e,[i,o]=q.useState({top:0,left:0}),s=q.useRef(null),[c,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 S=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:S})}},[n,s]),r?t({maxHeight:c}):Vm.createPortal(Fe.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:c})}),n.current)}function Pf(){return Pf=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},Pf.apply(null,arguments)}const Q5=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Pf}},Symbol.toStringTag,{value:"Module"}));function xD(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Kh(e,t)}/*!
|
|
9
|
+
* content-type
|
|
10
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
11
|
+
* MIT Licensed
|
|
12
|
+
*/var GS=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,e4=/\\([\u000b\u0020-\u00ff])/g,t4=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,n4=r4;function r4(e){if(!e)throw new TypeError("argument string is required");var t=typeof e=="object"?i4(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(!t4.test(r))throw new TypeError("invalid media type");var i=new o4(r.toLowerCase());if(n!==-1){var o,s,c;for(GS.lastIndex=n;s=GS.exec(t);){if(s.index!==n)throw new TypeError("invalid parameter format");n+=s[0].length,o=s[1].toLowerCase(),c=s[2],c.charCodeAt(0)===34&&(c=c.slice(1,-1),c.indexOf("\\")!==-1&&(c=c.replace(e4,"$1"))),i.parameters[o]=c}if(n!==t.length)throw new TypeError("invalid parameter format")}return i}function i4(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 o4(e){this.parameters=Object.create(null),this.type=e}var df=new Map,SD=function(t){return t.cloneNode(!0)},qS=function(){return window.location.protocol==="file:"},TD=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=n4(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(qS()?"Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver.":"Unable to load SVG file: "+t);if(i.status===200||qS()&&i.status===0)r(null,i);else throw new Error("There was a problem injecting the SVG: "+i.status+" "+i.statusText)}}catch(c){if(i.abort(),c instanceof Error)r(c,i);else throw c}},i.open("GET",t),i.withCredentials=n,i.overrideMimeType&&i.overrideMimeType("text/xml"),i.send()},hu={},XS=function(t,n){hu[t]=hu[t]||[],hu[t].push(n)},a4=function(t){for(var n=function(s,c){setTimeout(function(){if(Array.isArray(hu[t])){var f=df.get(t),p=hu[t][s];f instanceof SVGSVGElement&&p(null,SD(f)),f instanceof Error&&p(f),s===hu[t].length-1&&delete hu[t]}},0)},r=0,i=hu[t].length;r<i;r++)n(r)},s4=function(t,n,r){if(df.has(t)){var i=df.get(t);if(i===void 0){XS(t,r);return}if(i instanceof SVGSVGElement){r(null,SD(i));return}}df.set(t,void 0),XS(t,r),TD(t,n,function(o,s){var c;o?df.set(t,o):((c=s.responseXML)===null||c===void 0?void 0:c.documentElement)instanceof SVGSVGElement&&df.set(t,s.responseXML.documentElement),a4(t)})},l4=function(t,n,r){TD(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)})},u4=0,c4=function(){return++u4},Ms=[],KS={},f4="http://www.w3.org/2000/svg",gv="http://www.w3.org/1999/xlink",ZS=function(t,n,r,i,o,s,c){var f=t.getAttribute("data-src")||t.getAttribute("src");if(!f){c(new Error("Invalid data-src or src attribute"));return}if(Ms.indexOf(t)!==-1){Ms.splice(Ms.indexOf(t),1),t=null;return}Ms.push(t),t.setAttribute("src","");var p=i?s4:l4;p(f,o,function(y,g){if(!g){Ms.splice(Ms.indexOf(t),1),t=null,c(y);return}var S=t.getAttribute("id");S&&g.setAttribute("id",S);var C=t.getAttribute("title");C&&g.setAttribute("title",C);var P=t.getAttribute("width");P&&g.setAttribute("width",P);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 R=t.getAttribute("style");R&&g.setAttribute("style",R),g.setAttribute("data-src",f);var V=[].filter.call(t.attributes,function(Ge){return/^data-\w[\w-]*$/.test(Ge.name)});if(Array.prototype.forEach.call(V,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"]},J,K,le,T,he;Object.keys(U).forEach(function(Ge){J=Ge,le=U[Ge],K=g.querySelectorAll(J+"[id]");for(var tt=function($e,ke){T=K[$e].id,he=T+"-"+c4();var _e;Array.prototype.forEach.call(le,function(At){_e=g.querySelectorAll("["+At+'*="'+T+'"]');for(var Lt=0,Hn=_e.length;Lt<Hn;Lt++){var gr=_e[Lt].getAttribute(At);gr&&!gr.match(new RegExp('url\\("?#'+T+'"?\\)'))||_e[Lt].setAttribute(At,"url(#"+he+")")}});for(var Ne=g.querySelectorAll("[*|href]"),rt=[],at=0,ht=Ne.length;at<ht;at++){var lt=Ne[at].getAttributeNS(gv,"href");lt&<.toString()==="#"+K[$e].id&&rt.push(Ne[at])}for(var mt=0,et=rt.length;mt<et;mt++)rt[mt].setAttributeNS(gv,"href","#"+he);K[$e].id=he},we=0,Ee=K.length;we<Ee;we++)tt(we)})}g.removeAttribute("xmlns:a");for(var oe=g.querySelectorAll("script"),ze=[],je,Pe,Be=0,He=oe.length;Be<He;Be++)Pe=oe[Be].getAttribute("type"),(!Pe||Pe==="application/ecmascript"||Pe==="application/javascript"||Pe==="text/javascript")&&(je=oe[Be].innerText||oe[Be].textContent,je&&ze.push(je),g.removeChild(oe[Be]));if(ze.length>0&&(n==="always"||n==="once"&&!KS[f])){for(var ce=0,Se=ze.length;ce<Se;ce++)new Function(ze[ce])(window);KS[f]=!0}var Ie=g.querySelectorAll("style");if(Array.prototype.forEach.call(Ie,function(Ge){Ge.textContent+=""}),g.setAttribute("xmlns",f4),g.setAttribute("xmlns:xlink",gv),s(g),!t.parentNode){Ms.splice(Ms.indexOf(t),1),t=null,c(new Error("Parent node is null"));return}t.parentNode.replaceChild(g,t),Ms.splice(Ms.indexOf(t),1),t=null,c(null,g)})},d4=function(t,n){var r=n===void 0?{}:n,i=r.afterAll,o=i===void 0?function(){}:i,s=r.afterEach,c=s===void 0?function(){}:s,f=r.beforeEach,p=f===void 0?function(){}:f,y=r.cacheRequests,g=y===void 0?!0:y,S=r.evalScripts,C=S===void 0?"never":S,P=r.httpRequestWithCredentials,A=P===void 0?!1:P,M=r.renumerateIRIElements,R=M===void 0?!0:M;if(t&&"length"in t)for(var V=0,U=0,J=t.length;U<J;U++)ZS(t[U],C,R,g,A,p,function(K,le){c(K,le),t&&"length"in t&&t.length===++V&&o(V)});else t?ZS(t,C,R,g,A,p,function(K,le){c(K,le),o(1),t=null}):o(0)},_m={exports:{}},Fh={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 JS;function h4(){if(JS)return mn;JS=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,c=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,S=e?Symbol.for("react.suspense_list"):60120,C=e?Symbol.for("react.memo"):60115,P=e?Symbol.for("react.lazy"):60116,A=e?Symbol.for("react.block"):60121,M=e?Symbol.for("react.fundamental"):60117,R=e?Symbol.for("react.responder"):60118,V=e?Symbol.for("react.scope"):60119;function U(K){if(typeof K=="object"&&K!==null){var le=K.$$typeof;switch(le){case t:switch(K=K.type,K){case f:case p:case r:case o:case i:case g:return K;default:switch(K=K&&K.$$typeof,K){case c:case y:case P:case C:case s:return K;default:return le}}case n:return le}}}function J(K){return U(K)===p}return mn.AsyncMode=f,mn.ConcurrentMode=p,mn.ContextConsumer=c,mn.ContextProvider=s,mn.Element=t,mn.ForwardRef=y,mn.Fragment=r,mn.Lazy=P,mn.Memo=C,mn.Portal=n,mn.Profiler=o,mn.StrictMode=i,mn.Suspense=g,mn.isAsyncMode=function(K){return J(K)||U(K)===f},mn.isConcurrentMode=J,mn.isContextConsumer=function(K){return U(K)===c},mn.isContextProvider=function(K){return U(K)===s},mn.isElement=function(K){return typeof K=="object"&&K!==null&&K.$$typeof===t},mn.isForwardRef=function(K){return U(K)===y},mn.isFragment=function(K){return U(K)===r},mn.isLazy=function(K){return U(K)===P},mn.isMemo=function(K){return U(K)===C},mn.isPortal=function(K){return U(K)===n},mn.isProfiler=function(K){return U(K)===o},mn.isStrictMode=function(K){return U(K)===i},mn.isSuspense=function(K){return U(K)===g},mn.isValidElementType=function(K){return typeof K=="string"||typeof K=="function"||K===r||K===p||K===o||K===i||K===g||K===S||typeof K=="object"&&K!==null&&(K.$$typeof===P||K.$$typeof===C||K.$$typeof===s||K.$$typeof===c||K.$$typeof===y||K.$$typeof===M||K.$$typeof===R||K.$$typeof===V||K.$$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 QS;function p4(){return QS||(QS=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,c=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,S=e?Symbol.for("react.suspense_list"):60120,C=e?Symbol.for("react.memo"):60115,P=e?Symbol.for("react.lazy"):60116,A=e?Symbol.for("react.block"):60121,M=e?Symbol.for("react.fundamental"):60117,R=e?Symbol.for("react.responder"):60118,V=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===S||typeof et=="object"&&et!==null&&(et.$$typeof===P||et.$$typeof===C||et.$$typeof===s||et.$$typeof===c||et.$$typeof===y||et.$$typeof===M||et.$$typeof===R||et.$$typeof===V||et.$$typeof===A)}function J(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 c:case y:case P:case C:case s:return Hn;default:return At}}case n:return At}}}var K=f,le=p,T=c,he=s,oe=t,ze=y,je=r,Pe=P,Be=C,He=n,ce=o,Se=i,Ie=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.")),we(et)||J(et)===f}function we(et){return J(et)===p}function Ee(et){return J(et)===c}function Ue(et){return J(et)===s}function $e(et){return typeof et=="object"&&et!==null&&et.$$typeof===t}function ke(et){return J(et)===y}function _e(et){return J(et)===r}function Ne(et){return J(et)===P}function rt(et){return J(et)===C}function at(et){return J(et)===n}function ht(et){return J(et)===o}function lt(et){return J(et)===i}function mt(et){return J(et)===g}yn.AsyncMode=K,yn.ConcurrentMode=le,yn.ContextConsumer=T,yn.ContextProvider=he,yn.Element=oe,yn.ForwardRef=ze,yn.Fragment=je,yn.Lazy=Pe,yn.Memo=Be,yn.Portal=He,yn.Profiler=ce,yn.StrictMode=Se,yn.Suspense=Ie,yn.isAsyncMode=tt,yn.isConcurrentMode=we,yn.isContextConsumer=Ee,yn.isContextProvider=Ue,yn.isElement=$e,yn.isForwardRef=ke,yn.isFragment=_e,yn.isLazy=Ne,yn.isMemo=rt,yn.isPortal=at,yn.isProfiler=ht,yn.isStrictMode=lt,yn.isSuspense=mt,yn.isValidElementType=U,yn.typeOf=J}()),yn}var e1;function CD(){return e1||(e1=1,process.env.NODE_ENV==="production"?Fh.exports=h4():Fh.exports=p4()),Fh.exports}/*
|
|
27
|
+
object-assign
|
|
28
|
+
(c) Sindre Sorhus
|
|
29
|
+
@license MIT
|
|
30
|
+
*/var vv,t1;function g4(){if(t1)return vv;t1=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={},c=0;c<10;c++)s["_"+String.fromCharCode(c)]=c;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 vv=i()?Object.assign:function(o,s){for(var c,f=r(o),p,y=1;y<arguments.length;y++){c=Object(arguments[y]);for(var g in c)t.call(c,g)&&(f[g]=c[g]);if(e){p=e(c);for(var S=0;S<p.length;S++)n.call(c,p[S])&&(f[p[S]]=c[p[S]])}}return f},vv}var mv,n1;function Ky(){if(n1)return mv;n1=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return mv=e,mv}var yv,r1;function ED(){return r1||(r1=1,yv=Function.call.bind(Object.prototype.hasOwnProperty)),yv}var bv,i1;function v4(){if(i1)return bv;i1=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Ky(),n={},r=ED();e=function(o){var s="Warning: "+o;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function i(o,s,c,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 S=Error((f||"React class")+": "+c+" type `"+y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[y]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw S.name="Invariant Violation",S}g=o[y](s,y,f,c,null,t)}catch(P){g=P}if(g&&!(g instanceof Error)&&e((f||"React class")+": type specification of "+c+" `"+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 "+c+" type: "+g.message+(C??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},bv=i,bv}var wv,o1;function m4(){if(o1)return wv;o1=1;var e=CD(),t=g4(),n=Ky(),r=ED(),i=v4(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(c){var f="Warning: "+c;typeof console<"u"&&console.error(f);try{throw new Error(f)}catch{}});function s(){return null}return wv=function(c,f){var p=typeof Symbol=="function"&&Symbol.iterator,y="@@iterator";function g(we){var Ee=we&&(p&&we[p]||we[y]);if(typeof Ee=="function")return Ee}var S="<<anonymous>>",C={array:R("array"),bigint:R("bigint"),bool:R("boolean"),func:R("function"),number:R("number"),object:R("object"),string:R("string"),symbol:R("symbol"),any:V(),arrayOf:U,element:J(),elementType:K(),instanceOf:le,node:ze(),objectOf:he,oneOf:T,oneOfType:oe,shape:Pe,exact:Be};function P(we,Ee){return we===Ee?we!==0||1/we===1/Ee:we!==we&&Ee!==Ee}function A(we,Ee){this.message=we,this.data=Ee&&typeof Ee=="object"?Ee:{},this.stack=""}A.prototype=Error.prototype;function M(we){if(process.env.NODE_ENV!=="production")var Ee={},Ue=0;function $e(_e,Ne,rt,at,ht,lt,mt){if(at=at||S,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;!Ee[At]&&Ue<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."),Ee[At]=!0,Ue++)}}return Ne[rt]==null?_e?Ne[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:we(Ne,rt,at,ht,lt)}var ke=$e.bind(null,!1);return ke.isRequired=$e.bind(null,!0),ke}function R(we){function Ee(Ue,$e,ke,_e,Ne,rt){var at=Ue[$e],ht=Se(at);if(ht!==we){var lt=Ie(at);return new A("Invalid "+_e+" `"+Ne+"` of type "+("`"+lt+"` supplied to `"+ke+"`, expected ")+("`"+we+"`."),{expectedType:we})}return null}return M(Ee)}function V(){return M(s)}function U(we){function Ee(Ue,$e,ke,_e,Ne){if(typeof we!="function")return new A("Property `"+Ne+"` of component `"+ke+"` has invalid PropType notation inside arrayOf.");var rt=Ue[$e];if(!Array.isArray(rt)){var at=Se(rt);return new A("Invalid "+_e+" `"+Ne+"` of type "+("`"+at+"` supplied to `"+ke+"`, expected an array."))}for(var ht=0;ht<rt.length;ht++){var lt=we(rt,ht,ke,_e,Ne+"["+ht+"]",n);if(lt instanceof Error)return lt}return null}return M(Ee)}function J(){function we(Ee,Ue,$e,ke,_e){var Ne=Ee[Ue];if(!c(Ne)){var rt=Se(Ne);return new A("Invalid "+ke+" `"+_e+"` of type "+("`"+rt+"` supplied to `"+$e+"`, expected a single ReactElement."))}return null}return M(we)}function K(){function we(Ee,Ue,$e,ke,_e){var Ne=Ee[Ue];if(!e.isValidElementType(Ne)){var rt=Se(Ne);return new A("Invalid "+ke+" `"+_e+"` of type "+("`"+rt+"` supplied to `"+$e+"`, expected a single ReactElement type."))}return null}return M(we)}function le(we){function Ee(Ue,$e,ke,_e,Ne){if(!(Ue[$e]instanceof we)){var rt=we.name||S,at=tt(Ue[$e]);return new A("Invalid "+_e+" `"+Ne+"` of type "+("`"+at+"` supplied to `"+ke+"`, expected ")+("instance of `"+rt+"`."))}return null}return M(Ee)}function T(we){if(!Array.isArray(we))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 Ee(Ue,$e,ke,_e,Ne){for(var rt=Ue[$e],at=0;at<we.length;at++)if(P(rt,we[at]))return null;var ht=JSON.stringify(we,function(mt,et){var At=Ie(et);return At==="symbol"?String(et):et});return new A("Invalid "+_e+" `"+Ne+"` of value `"+String(rt)+"` "+("supplied to `"+ke+"`, expected one of "+ht+"."))}return M(Ee)}function he(we){function Ee(Ue,$e,ke,_e,Ne){if(typeof we!="function")return new A("Property `"+Ne+"` of component `"+ke+"` has invalid PropType notation inside objectOf.");var rt=Ue[$e],at=Se(rt);if(at!=="object")return new A("Invalid "+_e+" `"+Ne+"` of type "+("`"+at+"` supplied to `"+ke+"`, expected an object."));for(var ht in rt)if(r(rt,ht)){var lt=we(rt,ht,ke,_e,Ne+"."+ht,n);if(lt instanceof Error)return lt}return null}return M(Ee)}function oe(we){if(!Array.isArray(we))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var Ee=0;Ee<we.length;Ee++){var Ue=we[Ee];if(typeof Ue!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Ge(Ue)+" at index "+Ee+"."),s}function $e(ke,_e,Ne,rt,at){for(var ht=[],lt=0;lt<we.length;lt++){var mt=we[lt],et=mt(ke,_e,Ne,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 "+("`"+Ne+"`"+At+"."))}return M($e)}function ze(){function we(Ee,Ue,$e,ke,_e){return He(Ee[Ue])?null:new A("Invalid "+ke+" `"+_e+"` supplied to "+("`"+$e+"`, expected a ReactNode."))}return M(we)}function je(we,Ee,Ue,$e,ke){return new A((we||"React class")+": "+Ee+" type `"+Ue+"."+$e+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ke+"`.")}function Pe(we){function Ee(Ue,$e,ke,_e,Ne){var rt=Ue[$e],at=Se(rt);if(at!=="object")return new A("Invalid "+_e+" `"+Ne+"` of type `"+at+"` "+("supplied to `"+ke+"`, expected `object`."));for(var ht in we){var lt=we[ht];if(typeof lt!="function")return je(ke,_e,Ne,ht,Ie(lt));var mt=lt(rt,ht,ke,_e,Ne+"."+ht,n);if(mt)return mt}return null}return M(Ee)}function Be(we){function Ee(Ue,$e,ke,_e,Ne){var rt=Ue[$e],at=Se(rt);if(at!=="object")return new A("Invalid "+_e+" `"+Ne+"` of type `"+at+"` "+("supplied to `"+ke+"`, expected `object`."));var ht=t({},Ue[$e],we);for(var lt in ht){var mt=we[lt];if(r(we,lt)&&typeof mt!="function")return je(ke,_e,Ne,lt,Ie(mt));if(!mt)return new A("Invalid "+_e+" `"+Ne+"` key `"+lt+"` supplied to `"+ke+"`.\nBad object: "+JSON.stringify(Ue[$e],null," ")+`
|
|
31
|
+
Valid keys: `+JSON.stringify(Object.keys(we),null," "));var et=mt(rt,lt,ke,_e,Ne+"."+lt,n);if(et)return et}return null}return M(Ee)}function He(we){switch(typeof we){case"number":case"string":case"undefined":return!0;case"boolean":return!we;case"object":if(Array.isArray(we))return we.every(He);if(we===null||c(we))return!0;var Ee=g(we);if(Ee){var Ue=Ee.call(we),$e;if(Ee!==we.entries){for(;!($e=Ue.next()).done;)if(!He($e.value))return!1}else for(;!($e=Ue.next()).done;){var ke=$e.value;if(ke&&!He(ke[1]))return!1}}else return!1;return!0;default:return!1}}function ce(we,Ee){return we==="symbol"?!0:Ee?Ee["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&Ee instanceof Symbol:!1}function Se(we){var Ee=typeof we;return Array.isArray(we)?"array":we instanceof RegExp?"object":ce(Ee,we)?"symbol":Ee}function Ie(we){if(typeof we>"u"||we===null)return""+we;var Ee=Se(we);if(Ee==="object"){if(we instanceof Date)return"date";if(we instanceof RegExp)return"regexp"}return Ee}function Ge(we){var Ee=Ie(we);switch(Ee){case"array":case"object":return"an "+Ee;case"boolean":case"date":case"regexp":return"a "+Ee;default:return Ee}}function tt(we){return!we.constructor||!we.constructor.name?S:we.constructor.name}return C.checkPropTypes=i,C.resetWarningCache=i.resetWarningCache,C.PropTypes=C,C},wv}var xv,a1;function y4(){if(a1)return xv;a1=1;var e=Ky();function t(){}function n(){}return n.resetWarningCache=t,xv=function(){function r(s,c,f,p,y,g){if(g!==e){var S=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw S.name="Invariant Violation",S}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},xv}if(process.env.NODE_ENV!=="production"){var b4=CD(),w4=!0;_m.exports=m4()(b4.isElement,w4)}else _m.exports=y4()();var Tr=_m.exports;const Ea=ku(Tr);var x4=function(t){var n=(t==null?void 0:t.ownerDocument)||document;return n.defaultView||window},S4=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},T4=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],Nh="http://www.w3.org/2000/svg",s1="http://www.w3.org/1999/xlink",eg=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(c){r.reactWrapper=c},r}xD(t,e);var n=t.prototype;return n.renderSVG=function(){var i=this;if(this.reactWrapper instanceof x4(this.reactWrapper).Node){var o=this.props,s=o.desc,c=o.evalScripts,f=o.httpRequestWithCredentials,p=o.renumerateIRIElements,y=o.src,g=o.title,S=o.useRequestCache,C=this.props.onError,P=this.props.beforeInjection,A=this.props.afterInjection,M=this.props.wrapper,R,V;M==="svg"?(R=document.createElementNS(Nh,M),R.setAttribute("xmlns",Nh),R.setAttribute("xmlns:xlink",s1),V=document.createElementNS(Nh,M)):(R=document.createElement(M),V=document.createElement(M)),R.appendChild(V),V.dataset.src=y,this.nonReactWrapper=this.reactWrapper.appendChild(R);var U=function(T){if(i.removeSVG(),!i._isMounted){C(T);return}i.setState(function(){return{hasError:!0,isLoading:!1}},function(){C(T)})},J=function(T,he){if(T){U(T);return}i._isMounted&&i.setState(function(){return{isLoading:!1}},function(){try{A(he)}catch(oe){U(oe)}})},K=function(T){if(T.setAttribute("role","img"),s){var he=T.querySelector(":scope > desc");he&&T.removeChild(he);var oe=document.createElement("desc");oe.innerHTML=s,T.prepend(oe)}if(g){var ze=T.querySelector(":scope > title");ze&&T.removeChild(ze);var je=document.createElement("title");je.innerHTML=g,T.prepend(je)}try{P(T)}catch(Pe){U(Pe)}};d4(V,{afterEach:J,beforeEach:K,cacheRequests:S,evalScripts:c,httpRequestWithCredentials:f,renumerateIRIElements:p})}},n.removeSVG=function(){var i;(i=this.nonReactWrapper)!=null&&i.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},n.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},n.componentDidUpdate=function(i){var o=this;S4(Pf({},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 c=i.wrapper,f=Wm(i,T4),p=c;return bn.createElement(p,Pf({},f,{ref:this.refCallback},c==="svg"?{xmlns:Nh,xmlnsXlink:s1}:{}),this.state.isLoading&&s&&bn.createElement(s,null),this.state.hasError&&o&&bn.createElement(o,null))},t}(bn.Component);eg.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"};eg.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 Rf=new Map;Rf.set("text",e=>{var t,n;return Fe.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center",lineHeight:"24px"},children:(n=(t=e==null?void 0:e.name)==null?void 0:t.trim().at(0))==null?void 0:n.toUpperCase()})});Rf.set("svgHtml",e=>{function t(n){function r(o){const c=new DOMParser().parseFromString(o,"image/svg+xml").querySelector("svg");return c?(c.querySelectorAll("path").forEach(p=>{p.hasAttribute("fill")&&p.setAttribute("fill","currentColor"),p.hasAttribute("stroke")&&p.setAttribute("stroke","currentColor")}),c.outerHTML):""}const i=r(n.svgString);return Fe.jsx("div",{dangerouslySetInnerHTML:{__html:i},style:{width:24,height:24,margin:"0 auto"}})}return Fe.jsx(t,{svgString:e.icon})});Rf.set("svgHttp",e=>Fe.jsx(eg,{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")})}}));Rf.set("img",e=>Fe.jsx("img",{src:e.icon||"/",alt:e.name,style:{height:24,maxHeight:24,maxWidth:24}}));function C4(e){return e.icon=(e.icon||"").trim(),e.icon?e.icon.startsWith("<svg")?"svgHtml":e.icon.endsWith(".svg")?"svgHttp":"img":"text"}function kD({item:e}){return(Rf.get(C4(e))||Rf.get("text"))(e)}function E4(e){return Fe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",...e,children:Fe.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 k4(e){const{renderChildren:t,parentRef:n,onlyChild:r,dropdownLevel:i}=e,[o,s]=q.useState({top:0,left:0}),c=q.useRef(null),[f,p]=q.useState("auto");return q.useLayoutEffect(()=>{if(n.current&&c.current){const y=n.current.getBoundingClientRect(),g=c.current.getBoundingClientRect();let S,C;if(i===1)S=y.bottom,C=y.left,g.height+S>window.innerHeight?(p(window.innerHeight-S-50),S=y.bottom-g.height):S=y.bottom;else if(i>1){S=y.top,C=y.left+y.width;const P=g.height+(window.innerHeight-y.top)>window.innerHeight;P&&(console.log("DropDown-fav overtop"),p(window.innerHeight-y.top-50)),y.top+g.height>window.innerHeight&&!P&&(S=y.top-g.height+y.height)}s({top:S-64,left:C})}},[n,c,i]),r?t({maxHeight:f}):Vm.createPortal(Fe.jsx("div",{ref:c,style:{position:"fixed",top:o.top,left:`calc(${o.left}px - var(--global-menu-width))`,zIndex:1200},children:t({maxHeight:f})}),n.current)}const If=new Map;If.set("text",e=>{var t,n;return Fe.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center",lineHeight:"24px"},children:(n=(t=e==null?void 0:e.name)==null?void 0:t.trim().at(0))==null?void 0:n.toUpperCase()})});If.set("svgHtml",e=>{function t(n){function r(o){const c=new DOMParser().parseFromString(o,"image/svg+xml").querySelector("svg");return c?(c.querySelectorAll("path").forEach(p=>{p.hasAttribute("fill")&&p.setAttribute("fill","currentColor"),p.hasAttribute("stroke")&&p.setAttribute("stroke","currentColor")}),c.outerHTML):""}const i=r(n.svgString);return Fe.jsx("div",{dangerouslySetInnerHTML:{__html:i},style:{width:24,height:24,margin:"0 auto"}})}return Fe.jsx(t,{svgString:e.icon})});If.set("svgHttp",e=>Fe.jsx(eg,{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")})}}));If.set("img",e=>Fe.jsx("img",{src:e.icon||"/",alt:e.name,style:{height:24,maxHeight:24,maxWidth:24}}));function D4(e){return e.icon=(e.icon||"").trim(),e.icon?e.icon.startsWith("<svg")?"svgHtml":e.icon.endsWith(".svg")?"svgHttp":"img":"text"}function O4({item:e}){return(If.get(D4(e))||If.get("text"))(e)}function DD({...e}){var oe,ze,je;const t=e.item,n=e.level||0,r=!!((oe=e.item.children)!=null&&oe.length),i=`level-${n}`,o=(Pe,Be=i)=>`${Pe} ${Be} `,[s,c]=q.useState(!1),[f,p]=q.useState(t.isFavorite||!1),y=q.useRef(),g=q.useRef();g!=null&&g.current&&((ze=g==null?void 0:g.current)==null?void 0:ze.scrollWidth)>((je=g==null?void 0:g.current)==null?void 0:je.clientWidth);const S=window.location.origin,C=t.path&&t.path.includes("http")?new URL(t.path):{origin:"",pathname:""},P=window.location.pathname.split("/")[1],A=C.pathname.split("/")[1],M=e.item.redirectUrl||e.ssr||!S.includes("local")&&S!==C.origin||A!==P,R=r||n===0?"div":M?"a":kp.Link,V=t.redirectUrl||t.path||"#",U=n+1,J=r&&s&&n>0,K=()=>{c(!0)},le=()=>{c(!1)},T="/global-menu-config/api/v1/menu-items/user/set-favorite",he=S!==C.origin||e.item.redirectUrl?"_blank":"_self";return Fe.jsxs("div",{ref:y,className:o("menu-item__wrapper tree-node"),style:{borderRadius:"8px",transition:"all 0.3s"},onMouseOver:K,onMouseOut:le,onDragStart:Pe=>{n>1&&Pe.preventDefault()},children:[Fe.jsxs(R,{target:he,to:V,href:V,draggable:"true",className:o("menu-item__link"),style:{width:"100%",transition:"all 0.3s"},onDragStart:Pe=>{console.log("onDragStart component",Pe.target)},children:[Fe.jsx(_4,{cls:o,item:t}),Fe.jsx("span",{className:o("menu-item__label"),ref:g,children:t.name}),Fe.jsx(P4,{menuLevel:n,hasChildren:r,isHovered:s,isFavorite:f,onClick:Pe=>{const Be={menuConfigId:t.id,isFavorite:Pe},He=e.baseUrl+T;Da.post(He,Be).then(ce=>{var Se;p(Pe),Zm("Set favorite menu item successfully"),(Se=e.onSetFavoriteSuccess)==null||Se.call(e,e.item.id,Pe)}).catch(ce=>{var Se,Ie;Vd(((Ie=(Se=ce.response)==null?void 0:Se.data)==null?void 0:Ie.errorMessage)||"Have error when set favorite menu item")})}}),r&&Fe.jsx("div",{className:o("menu-item__icon-arrow__wrapper"),children:Fe.jsx(E4,{className:o("menu-item__icon-arrow__icon")})})]}),J&&Fe.jsx(k4,{parentRef:y,onlyChild:U<2,dropdownLevel:n,renderChildren:({maxHeight:Pe})=>{var Be;return Fe.jsx(yD.div,{className:o("menu-item__dropdown dropdown-favorite ? 'menu-item__dropdown--open' : 'menu-item__dropdown--close'}",`level-${U}`),style:Xy({maxHeight:Pe,overflowY:"auto",paddingRight:3},Pe!=="auto"&&!!U),children:(Be=t.children)==null?void 0:Be.map(He=>q.createElement(DD,{...e,key:He.id,item:He,level:U}))})}})]})}function _4({item:e,cls:t}){return Fe.jsx("div",{className:t("menu-item__icon"),children:Fe.jsx(O4,{item:e})})}function P4(e){const t={marginRight:e.hasChildren?10:0,fontSize:22,fill:ii.warning,minWidth:16};if(e.menuLevel!==0)return Fe.jsxs(Fe.Fragment,{children:[e.isHovered&&!e.isFavorite&&Fe.jsx(os.Tooltip,{title:"Add to favorites",children:Fe.jsx(bD,{style:t,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=e.onClick)==null||r.call(e,!0)}})}),e.isFavorite&&Fe.jsx(os.Tooltip,{title:"Remove from favorites",children:Fe.jsx(wD,{style:t,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=e.onClick)==null||r.call(e,!1)}})})]})}const R4='.flex-col-center{display:flex;flex-direction:column;justify-content:center}.wrap-section{transition:all .3s;padding:0 4px}.favorite-menu{display:flex;height:56px;border-right:1px solid #ddd;background-color:#fafafa;transition:all .3s;width:100%}.scrollbar-hidden::-webkit-scrollbar{width:2px;background:transparent}.favorite-menu__wrap-btn-logout,.favorite-menu__btn-logout{margin:40px 0}.favorite-menu__logout-btn__text{margin-left:12px;font-size:.875rem;opacity:0;transition:ease-in-out .2s;transition-delay:.15s}.favorite-menu__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px;justify-content:center;width:100%}.favorite-menu__toggle-btn{margin-top:-6px;color:#85858a}.favorite-menu__logout-btn{width:100%;text-align:left;display:flex;flex-direction:row;align-items:center;padding:8px 16px 8px 18.6665px;min-height:48px;border-radius:.375rem;overflow:hidden;transition:all .3s ease-in-out;background-color:initial}.favorite-menu__logout-btn:hover{background-color:#919eab14}.favorite-menu__icon-logout{flex-shrink:0}.menu-item__wrapper{display:flex;position:relative;width:100%}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer;color:#85858a}.menu-item__link:hover{background-color:#919eab14}.menu-item__link.active{background-color:#009d4f1a;color:inherit}.menu-item__link.active.level-2,.menu-item__link.active.level-3,.menu-item__link.active.level-4,.menu-item__link.active.level-5,.menu-item__link.active.level-6,.menu-item__link.active.level-7,.menu-item__link.active.level-8,.menu-item__link.active.level-9,.menu-item__link.active.level-10{background-color:inherit;color:inherit}.menu-item__link.active.level-2:hover,.menu-item__link.active.level-3:hover,.menu-item__link.active.level-4:hover,.menu-item__link.active.level-5:hover,.menu-item__link.active.level-6:hover,.menu-item__link.active.level-7:hover,.menu-item__link.active.level-8:hover,.menu-item__link.active.level-9:hover,.menu-item__link.active.level-10:hover{background-color:#919eab14}.menu-item__link.menu-item__link.level-0{padding:0;background-color:#919eab14;transition:all .15s}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0;display:grid;place-items:center}.menu-item__icon.level-1>*{margin:0 auto}.menu-item__label{font-size:.875rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;flex-shrink:1;margin-left:12px;padding-right:12px;color:#292929;opacity:1}.menu-item__label.level-1{text-overflow:unset}.menu-item__label.active{color:inherit}.menu-item__label{margin-left:8px;font-size:.75rem;line-height:1rem}.menu-item__label.level-0,.menu-item__label.level-1{font-size:.875rem;transition-delay:.15s}.menu-item__label.level-0{color:#85858a;margin-left:8px}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:0}.menu-item__icon-arrow__wrapper.level-0{display:none}.menu-item__icon-arrow__icon{transition:all .3s!important;transform:rotate(-90deg)!important}.menu-item__icon-arrow__icon.active{color:inherit}.menu-item__icon-arrow__icon.open{transform:rotate(0)!important}.menu-item__dropdown{background-color:#fafafa;border:1px solid #ddd;box-shadow:#0000001a 0 10px 15px -3px,#0000000d 0 4px 6px -2px;border-radius:4px;width:210px;max-width:210px;padding:4px;z-index:1200}.menu-item__dropdown.dropdown-favorite{width:auto;min-width:180px;max-width:350px}.menu-item__dropdown::-webkit-scrollbar{width:4px}.menu-item__dropdown::-webkit-scrollbar-thumb{background-color:#9b9b9b99;border-radius:2px}.menu-item__dropdown,.menu-item__dropdown>*{margin-top:4px}.menu-item__dropdown:first-of-type{margin-top:0}.menu-item__dropdown>*:first-child{margin-top:0}.menu-item__dropdown .menu-item__link{height:40px}.menu-item__dropdown .menu-item__link.level-1{height:48px}.menu-item__dropdown.level-1{width:auto;max-width:unset;box-shadow:none;border:none;padding:0;background-color:unset}.icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;background-color:transparent;transition:background-color .3s ease;border:none}.icon-btn:hover{background-color:var(--btn-bg-hover)}.simplebar-scrollbar:before{background-color:#0000002d}.favorite-menu__menu .simplebar-track.simplebar-vertical{display:none}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.treeFavorited{display:flex;align-items:center;margin:0 -5px}.treeFavorited li{margin:0 5px}.item.hover-on:before{content:"";position:absolute;top:0;left:0;height:100%;width:2px;background-color:var(--primary300)}';var fc={};/**
|
|
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 l1;function I4(){if(l1)return fc;l1=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 c(k,N,G,te,Ce,ge,Re){this.acceptsBooleans=N===2||N===3||N===4,this.attributeName=te,this.attributeNamespace=Ce,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 c(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 c(N,1,!1,k[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(k){f[k]=new c(k,2,!1,k.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(k){f[k]=new c(k,2,!1,k,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(k){f[k]=new c(k,3,!1,k.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(k){f[k]=new c(k,3,!0,k,null,!1,!1)}),["capture","download"].forEach(function(k){f[k]=new c(k,4,!1,k,null,!1,!1)}),["cols","rows","size","span"].forEach(function(k){f[k]=new c(k,6,!1,k,null,!1,!1)}),["rowSpan","start"].forEach(function(k){f[k]=new c(k,5,!1,k.toLowerCase(),null,!1,!1)});var p=/[\-:]([a-z])/g;function 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 c(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 c(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 c(N,1,!1,k,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(k){f[k]=new c(k,1,!1,k.toLowerCase(),null,!1,!1)}),f.xlinkHref=new c("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(k){f[k]=new c(k,1,!1,k.toLowerCase(),null,!0,!0)});var g={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},S=["Webkit","ms","Moz","O"];Object.keys(g).forEach(function(k){S.forEach(function(N){N=N+k.charAt(0).toUpperCase()+k.substring(1),g[N]=g[k]})});var C=/["'&<>]/;function P(k){if(typeof k=="boolean"||typeof k=="number")return""+k;k=""+k;var N=C.exec(k);if(N){var G="",te,Ce=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}Ce!==te&&(G+=k.substring(Ce,te)),Ce=te+1,G+=N}k=Ce!==te?G+k.substring(Ce,te):G}return k}var A=/([A-Z])/g,M=/^ms-/,R=Array.isArray;function V(k,N){return{insertionMode:k,selectedValue:N}}function U(k,N,G){switch(N){case"select":return V(1,G.value!=null?G.value:G.defaultValue);case"svg":return V(2,null);case"math":return V(3,null);case"foreignObject":return V(1,null);case"table":return V(4,null);case"thead":case"tbody":case"tfoot":return V(5,null);case"colgroup":return V(7,null);case"tr":return V(6,null)}return 4<=k.insertionMode||k.insertionMode===0?V(1,null):k}var J=new Map;function K(k,N,G){if(typeof G!="object")throw Error(t(62));N=!0;for(var te in G)if(n.call(G,te)){var Ce=G[te];if(Ce!=null&&typeof Ce!="boolean"&&Ce!==""){if(te.indexOf("--")===0){var ge=P(te);Ce=P((""+Ce).trim())}else{ge=te;var Re=J.get(ge);Re!==void 0||(Re=P(ge.replace(A,"-$1").toLowerCase().replace(M,"-ms-")),J.set(ge,Re)),ge=Re,Ce=typeof Ce=="number"?Ce===0||n.call(g,te)?""+Ce:Ce+"px":P((""+Ce).trim())}N?(N=!1,k.push(' style="',ge,":",Ce)):k.push(";",ge,":",Ce)}}N||k.push('"')}function le(k,N,G,te){switch(G){case"style":K(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,'="',P(te),'"');break;case 5:isNaN(te)||k.push(" ",G,'="',P(te),'"');break;case 6:!isNaN(te)&&1<=te&&k.push(" ",G,'="',P(te),'"');break;default:N.sanitizeURL&&(te=""+te),k.push(" ",G,'="',P(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,'="',P(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 he(k){var N="";return e.Children.forEach(k,function(G){G!=null&&(N+=G)}),N}function oe(k,N,G,te){k.push(Pe(G));var Ce=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":Ce=Re;break;default:le(k,te,ge,Re)}}return k.push(">"),T(k,Ce,G),typeof G=="string"?(k.push(P(G)),null):G}var ze=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,je=new Map;function Pe(k){var N=je.get(k);if(N===void 0){if(!ze.test(k))throw Error(t(65,k));N="<"+k,je.set(k,N)}return N}function Be(k,N,G,te,Ce){switch(N){case"select":k.push(Pe("select"));var ge=null,Re=null;for(pt in G)if(n.call(G,pt)){var Je=G[pt];if(Je!=null)switch(pt){case"children":ge=Je;break;case"dangerouslySetInnerHTML":Re=Je;break;case"defaultValue":case"value":break;default:le(k,te,pt,Je)}}return k.push(">"),T(k,Re,ge),ge;case"option":Re=Ce.selectedValue,k.push(Pe("option"));var vt=Je=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":Je=Nt;break;case"selected":yt=Nt;break;case"dangerouslySetInnerHTML":pt=Nt;break;case"value":vt=Nt;default:le(k,te,ge,Nt)}}if(Re!=null)if(G=vt!==null?""+vt:he(Je),R(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,Je),Je;case"textarea":k.push(Pe("textarea")),pt=Re=ge=null;for(Je in G)if(n.call(G,Je)&&(vt=G[Je],vt!=null))switch(Je){case"children":pt=vt;break;case"value":ge=vt;break;case"defaultValue":Re=vt;break;case"dangerouslySetInnerHTML":throw Error(t(91));default:le(k,te,Je,vt)}if(ge===null&&Re!==null&&(ge=Re),k.push(">"),pt!=null){if(ge!=null)throw Error(t(92));if(R(pt)&&1<pt.length)throw Error(t(93));ge=""+pt}return typeof ge=="string"&&ge[0]===`
|
|
40
|
+
`&&k.push(`
|
|
41
|
+
`),ge!==null&&k.push(P(""+ge)),null;case"input":k.push(Pe("input")),vt=pt=Je=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":Je=yt;break;case"checked":pt=yt;break;case"value":ge=yt;break;default:le(k,te,Re,yt)}return pt!==null?le(k,te,"checked",pt):vt!==null&&le(k,te,"checked",vt),ge!==null?le(k,te,"value",ge):Je!==null&&le(k,te,"value",Je),k.push("/>"),null;case"menuitem":k.push(Pe("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:le(k,te,$n,ge)}return k.push(">"),null;case"title":k.push(Pe("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:le(k,te,Nt,Re)}return k.push(">"),ge;case"listing":case"pre":k.push(Pe(N)),Re=ge=null;for(vt in G)if(n.call(G,vt)&&(Je=G[vt],Je!=null))switch(vt){case"children":ge=Je;break;case"dangerouslySetInnerHTML":Re=Je;break;default:le(k,te,vt,Je)}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(Pe(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:le(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 oe(k,G,N,te);case"html":return Ce.insertionMode===0&&k.push("<!DOCTYPE html>"),oe(k,G,N,te);default:if(N.indexOf("-")===-1&&typeof G.is!="string")return oe(k,G,N,te);k.push(Pe(N)),Re=ge=null;for(yt in G)if(n.call(G,yt)&&(Je=G[yt],Je!=null))switch(yt){case"children":ge=Je;break;case"dangerouslySetInnerHTML":Re=Je;break;case"style":K(k,te,Je);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:s(yt)&&typeof Je!="function"&&typeof Je!="symbol"&&k.push(" ",yt,'="',P(Je),'"')}return k.push(">"),T(k,Re,ge),ge}}function He(k,N,G){if(k.push('<!--$?--><template id="'),G===null)throw Error(t(395));return k.push(G),k.push('"></template>')}function ce(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 Se(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 Ie=/[<\u2028\u2029]/g;function Ge(k){return JSON.stringify(k).replace(Ie,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 we(k,N,G,te){return G.generateStaticMarkup?(k.push(P(N)),!1):(N===""?k=te:(te&&k.push("<!-- -->"),k.push(P(N)),k=!0),k)}var Ee=Object.assign,Ue=Symbol.for("react.element"),$e=Symbol.for("react.portal"),ke=Symbol.for("react.fragment"),_e=Symbol.for("react.strict_mode"),Ne=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 $e:return"Portal";case Ne:return"Profiler";case _e: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 On(k,N){if(k.context._currentValue2=k.parentValue,k=k.parent,k===null)throw Error(t(402));k.depth===N.depth?dn(k,N):On(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?On(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 Ce=k.state!==void 0?k.state:null;k.updater=Bi,k.props=G,k.state=Ce;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,Ce),Ce=Re==null?Ce:Ee({},Ce,Re),k.state=Ce),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,Ce=!0,Re=Re?1:0;Re<N.length;Re++){var Je=N[Re];Je=typeof Je=="function"?Je.call(k,ge,G,te):Je,Je!=null&&(Ce?(Ce=!1,ge=Ee({},ge,Je)):Ee(ge,Je))}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 Ce=32-jn(te)-1;te&=~(1<<Ce),G+=1;var ge=32-jn(N)+Ce;if(30<ge){var Re=Ce-Ce%5;return ge=(te&(1<<Re)-1).toString(32),te>>=Re,Ce-=Re,{id:1<<32-jn(N)+Ce|G<<Ce|te,overflow:ge+k}}return{id:1<<ge|G<<Ce|te,overflow:k}}var jn=Math.clz32?Math.clz32:zr,Dr=Math.log,vr=Math.LN2;function zr(k){return k>>>=0,k===0?32:31-(Dr(k)/vr|0)|0}function Yr(k,N){return k===N&&(k!==0||1/k===1/N)||k!==k&&N!==N}var Po=typeof Object.is=="function"?Object.is:Yr,Wn=null,Gr=null,Jn=null,Wt=null,si=!1,Hi=!1,_n=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(){Gr=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=Ra.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 Ce=0;Ce<te.length&&Ce<N.length;Ce++)if(!Po(N[Ce],te[Ce])){te=!1;break e}te=!0}if(te)return G[0]}}return k=k(),Wt.memoizedState=[k,N],k}function Ra(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 Ia(){throw Error(t(394))}function qr(){}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:qr,useLayoutEffect:function(){},useCallback:function(k,N){return ki(function(){return k},N)},useImperativeHandle:qr,useEffect:qr,useDebugValue:qr,useDeferredValue:function(k){return ui(),k},useTransition:function(){return ui(),[!1,Ia]},useId:function(){var k=Gr.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=_n++,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,Di=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function Qn(k){return console.error(k),null}function Or(){}function _r(k,N,G,te,Ce,ge,Re,Je,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:Ce===void 0?Qn:Ce,onAllReady:Or,onShellReady:Re===void 0?Or:Re,onShellError:Or,onFatalError:Or},G=Xr(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,Ce,ge,Re,Je){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:Ce,legacyContext:ge,context:Re,treeContext:Je};return Ce.add(vt),vt}function Xr(k,N,G,te,Ce,ge){return{status:0,id:-1,index:N,parentFlushed:!1,chunks:[],children:[],formatContext:te,boundary:G,lastPushedText:Ce,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,Ce){for(Wn={},Gr=N,_n=0,k=G(te,Ce);Hi;)Hi=!1,_n=0,li+=1,Wt=null,k=G(te,Ce);return mr(),k}function Ui(k,N,G,te){var Ce=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 Je in G)if(!(Je in ge))throw Error(t(108,ji(te)||"Unknown",Je));te=Ee({},Re,G)}N.legacyContext=te,wn(k,N,Ce),N.legacyContext=Re}else wn(k,N,Ce)}function Oi(k,N){if(k&&k.defaultProps){N=Ee({},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,Ce){if(typeof G=="function")if(G.prototype&&G.prototype.isReactComponent){Ce=Zn(G,N.legacyContext);var ge=G.contextType;ge=new G(te,typeof ge=="object"&&ge!==null?ge._currentValue2:Ce),$i(ge,G,te,Ce),Ui(k,N,ge,G)}else{ge=Zn(G,N.legacyContext),Ce=er(k,N,G,te,ge);var Re=_n!==0;if(typeof Ce=="object"&&Ce!==null&&typeof Ce.render=="function"&&Ce.$$typeof===void 0)$i(Ce,G,te,ge),Ui(k,N,Ce,G);else if(Re){te=N.treeContext,N.treeContext=kr(te,1,0);try{wn(k,N,Ce)}finally{N.treeContext=te}}else wn(k,N,Ce)}else if(typeof G=="string"){switch(Ce=N.blockedSegment,ge=Be(Ce.chunks,G,te,k.responseState,Ce.formatContext),Ce.lastPushedText=!1,Re=Ce.formatContext,Ce.formatContext=U(Re,G,te),Ir(k,N,ge),Ce.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:Ce.chunks.push("</",G,">")}Ce.lastPushedText=!1}else{switch(G){case gr:case Hn:case _e:case Ne: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,Ce=N.blockedSegment,ge=te.fallback,te=te.children,Re=new Set;var Je={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:Re,errorDigest:null},vt=Xr(k,Ce.chunks.length,Je,Ce.formatContext,!1,!1);Ce.children.push(vt),Ce.lastPushedText=!1;var yt=Xr(k,0,null,Ce.formatContext,!1,!1);yt.parentFlushed=!0,N.blockedBoundary=Je,N.blockedSegment=yt;try{if(Ir(k,N,te),k.responseState.generateStaticMarkup||yt.lastPushedText&&yt.textEmbedded&&yt.chunks.push("<!-- -->"),yt.status=1,br(Je,yt),Je.pendingTasks===0)break e}catch(pt){yt.status=4,Je.forceClientRender=!0,Je.errorDigest=yr(k,pt)}finally{N.blockedBoundary=G,N.blockedSegment=Ce}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,Ce),_n!==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=Oi(G,te),sr(k,N,G,te,Ce);return;case rt:if(Ce=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,Ce),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:Ce=G._init,G=Ce(G._payload),te=Oi(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 Ue:sr(k,N,G.type,G.props,G.ref);return;case $e:throw Error(t(257));case At:var te=G._init;G=te(G._payload),wn(k,N,G);return}if(R(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 Ce=[];do Ce.push(G.value),G=te.next();while(!G.done);Rr(k,N,Ce)}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=we(N.blockedSegment.chunks,G,k.responseState,te.lastPushedText)):typeof G=="number"&&(te=N.blockedSegment,te.lastPushedText=we(N.blockedSegment.chunks,""+G,k.responseState,te.lastPushedText))}function Rr(k,N,G){for(var te=G.length,Ce=0;Ce<te;Ce++){var ge=N.treeContext;N.treeContext=kr(ge,te,Ce);try{Ir(k,N,G[Ce])}finally{N.treeContext=ge}}}function Ir(k,N,G){var te=N.blockedSegment.formatContext,Ce=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,Je=Xr(k,Re.chunks.length,null,Re.formatContext,Re.lastPushedText,!0);Re.children.push(Je),Re.lastPushedText=!1,k=fi(k,N.node,N.blockedBoundary,Je,N.abortSet,N.legacyContext,N.context,N.treeContext).ping,G.then(k,k),N.blockedSegment.formatContext=te,N.legacyContext=Ce,N.context=ge,an(ge)}else throw N.blockedSegment.formatContext=te,N.legacyContext=Ce,N.context=ge,an(ge),vt}}function di(k){var N=k.blockedBoundary;k=k.blockedSegment,k.status=3,Kr(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(Ce){return hi(Ce,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 Kr(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=Or,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=Di.current;Di.current=ao;var te=so;so=k.responseState;try{var Ce=k.pingedTasks,ge;for(ge=0;ge<Ce.length;ge++){var Re=Ce[ge],Je=k,vt=Re.blockedSegment;if(vt.status===0){an(Re.context);try{wn(Je,Re,Re.node),Je.responseState.generateStaticMarkup||vt.lastPushedText&&vt.textEmbedded&&vt.chunks.push("<!-- -->"),Re.abortSet.delete(Re),vt.status=1,Kr(Je,Re.blockedBoundary,vt)}catch(Dn){if(mr(),typeof Dn=="object"&&Dn!==null&&typeof Dn.then=="function"){var yt=Re.ping;Dn.then(yt,yt)}else{Re.abortSet.delete(Re),vt.status=4;var pt=Re.blockedBoundary,Nt=Dn,$n=yr(Je,Nt);if(pt===null?Pr(Je,Nt):(pt.pendingTasks--,pt.forceClientRender||(pt.forceClientRender=!0,pt.errorDigest=$n,pt.parentFlushed&&Je.clientRenderedBoundaries.push(pt))),Je.allPendingTasks--,Je.allPendingTasks===0){var Yn=Je.onAllReady;Yn()}}}finally{}}}Ce.splice(0,ge),k.destination!==null&&kn(k,k.destination)}catch(Dn){yr(k,Dn),Pr(k,Dn)}finally{so=te,Di.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 Ce=!0;te=G.chunks;var ge=0;G=G.children;for(var Re=0;Re<G.length;Re++){for(Ce=G[Re];ge<Ce.index;ge++)N.push(te[ge]);Ce=gi(k,N,Ce)}for(;ge<te.length-1;ge++)N.push(te[ge]);return ge<te.length&&(Ce=N.push(te[ge])),Ce;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=P(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 Ce=k.responseState,ge=Ce.nextSuspenseID++;return Ce=Ce.boundaryPrefix+ge.toString(16),te=te.id=Ce,He(N,k.responseState,te),pi(k,N,G),N.push("<!--/$-->")}if(te.byteSize>k.progressiveChunkSize)return te.rootSegmentID=k.nextSegmentId++,k.completedBoundaries.push(te),He(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 _i(k,N,G){return ce(N,k.responseState,G.formatContext,G.id),gi(k,N,G),Se(N,G.formatContext)}function rn(k,N,G){for(var te=G.completedSegments,Ce=0;Ce<te.length;Ce++)Bn(k,N,G,te[Ce]);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 Ce=te.id;if(Ce===-1){if((te.id=G.rootSegmentID)===-1)throw Error(t(392));return _i(k,N,te)}return _i(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),Ce=Ce.toString(16),N.push(Ce),N.push('","'),N.push(k.placeholderPrefix),N.push(Ce),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 Ce=k.clientRenderedBoundaries,ge;for(ge=0;ge<Ce.length;ge++){var Re=Ce[ge];te=N;var Je=k.responseState,vt=Re.id,yt=Re.errorDigest,pt=Re.errorMessage,Nt=Re.errorComponentStack;if(te.push(Je.startInlineScript),Je.sentClientRenderFunction?te.push('$RX("'):(Je.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 Dn=Ge(Nt);te.push(Dn)}if(!te.push(")<\/script>")){k.destination=null,ge++,Ce.splice(0,ge);return}}Ce.splice(0,ge);var Zr=k.completedBoundaries;for(ge=0;ge<Zr.length;ge++)if(!rn(k,N,Zr[ge])){k.destination=null,ge++,Zr.splice(0,ge);return}Zr.splice(0,ge);var lr=k.partialBoundaries;for(ge=0;ge<lr.length;ge++){var Wi=lr[ge];e:{Ce=k,Re=N;var vi=Wi.completedSegments;for(Je=0;Je<vi.length;Je++)if(!Bn(Ce,Re,Wi,vi[Je])){Je++,vi.splice(0,Je);var zi=!1;break e}vi.splice(0,Je),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 Ce=!1,ge=null,Re="",Je={push:function(yt){return yt!==null&&(Re+=yt),!0},destroy:function(yt){Ce=!0,ge=yt}},vt=!1;if(k=_r(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,Je.destroy(k.fatalError);else if(k.status!==2&&k.destination===null){k.destination=Je;try{kn(k,Je)}catch(yt){yr(k,yt),Pr(k,yt)}}if(Ce)throw ge;if(!vt)throw Error(t(426));return Re}return fc.renderToNodeStream=function(){throw Error(t(207))},fc.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')},fc.renderToStaticNodeStream=function(){throw Error(t(208))},fc.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')},fc.version="18.3.1",fc}var jh={};/**
|
|
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 u1;function A4(){if(u1)return jh;u1=1;var e=q;function t(D){for(var L="https://reactjs.org/docs/error-decoder.html?invariant="+D,W=1;W<arguments.length;W++)L+="&args[]="+encodeURIComponent(arguments[W]);return"Minified React error #"+D+"; 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(D,L){if(L.length!==0)if(512<L.length)0<r&&(D.enqueue(new Uint8Array(n.buffer,0,r)),n=new Uint8Array(512),r=0),D.enqueue(L);else{var W=n.length-r;W<L.length&&(W===0?D.enqueue(n):(n.set(L.subarray(0,W),r),D.enqueue(n),L=L.subarray(W)),n=new Uint8Array(512),r=0),n.set(L,r),r+=L.length}}function o(D,L){return i(D,L),!0}function s(D){n&&0<r&&(D.enqueue(new Uint8Array(n.buffer,0,r)),n=null,r=0)}var c=new TextEncoder;function f(D){return c.encode(D)}function p(D){return c.encode(D)}function y(D,L){typeof D.error=="function"?D.error(L):D.close()}var g=Object.prototype.hasOwnProperty,S=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,C={},P={};function A(D){return g.call(P,D)?!0:g.call(C,D)?!1:S.test(D)?P[D]=!0:(C[D]=!0,!1)}function M(D,L,W,ee,me,ye,Le){this.acceptsBooleans=L===2||L===3||L===4,this.attributeName=ee,this.attributeNamespace=me,this.mustUseProperty=W,this.propertyName=D,this.type=L,this.sanitizeURL=ye,this.removeEmptyString=Le}var R={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(D){R[D]=new M(D,0,!1,D,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(D){var L=D[0];R[L]=new M(L,1,!1,D[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(D){R[D]=new M(D,2,!1,D.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(D){R[D]=new M(D,2,!1,D,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(D){R[D]=new M(D,3,!1,D.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(D){R[D]=new M(D,3,!0,D,null,!1,!1)}),["capture","download"].forEach(function(D){R[D]=new M(D,4,!1,D,null,!1,!1)}),["cols","rows","size","span"].forEach(function(D){R[D]=new M(D,6,!1,D,null,!1,!1)}),["rowSpan","start"].forEach(function(D){R[D]=new M(D,5,!1,D.toLowerCase(),null,!1,!1)});var V=/[\-:]([a-z])/g;function U(D){return D[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(D){var L=D.replace(V,U);R[L]=new M(L,1,!1,D,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(D){var L=D.replace(V,U);R[L]=new M(L,1,!1,D,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(D){var L=D.replace(V,U);R[L]=new M(L,1,!1,D,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(D){R[D]=new M(D,1,!1,D.toLowerCase(),null,!1,!1)}),R.xlinkHref=new M("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(D){R[D]=new M(D,1,!1,D.toLowerCase(),null,!0,!0)});var J={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},K=["Webkit","ms","Moz","O"];Object.keys(J).forEach(function(D){K.forEach(function(L){L=L+D.charAt(0).toUpperCase()+D.substring(1),J[L]=J[D]})});var le=/["'&<>]/;function T(D){if(typeof D=="boolean"||typeof D=="number")return""+D;D=""+D;var L=le.exec(D);if(L){var W="",ee,me=0;for(ee=L.index;ee<D.length;ee++){switch(D.charCodeAt(ee)){case 34:L=""";break;case 38:L="&";break;case 39:L="'";break;case 60:L="<";break;case 62:L=">";break;default:continue}me!==ee&&(W+=D.substring(me,ee)),me=ee+1,W+=L}D=me!==ee?W+D.substring(me,ee):W}return D}var he=/([A-Z])/g,oe=/^ms-/,ze=Array.isArray,je=p("<script>"),Pe=p("<\/script>"),Be=p('<script src="'),He=p('<script type="module" src="'),ce=p('" async=""><\/script>'),Se=/(<\/|<)(s)(cript)/gi;function Ie(D,L,W,ee){return""+L+(W==="s"?"\\u0073":"\\u0053")+ee}function Ge(D,L,W,ee,me){D=D===void 0?"":D,L=L===void 0?je:p('<script nonce="'+T(L)+'">');var ye=[];if(W!==void 0&&ye.push(L,f((""+W).replace(Se,Ie)),Pe),ee!==void 0)for(W=0;W<ee.length;W++)ye.push(Be,f(T(ee[W])),ce);if(me!==void 0)for(ee=0;ee<me.length;ee++)ye.push(He,f(T(me[ee])),ce);return{bootstrapChunks:ye,startInlineScript:L,placeholderPrefix:p(D+"P:"),segmentPrefix:p(D+"S:"),boundaryPrefix:D+"B:",idPrefix:D,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function tt(D,L){return{insertionMode:D,selectedValue:L}}function we(D){return tt(D==="http://www.w3.org/2000/svg"?2:D==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function Ee(D,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<=D.insertionMode||D.insertionMode===0?tt(1,null):D}var Ue=p("<!-- -->");function $e(D,L,W,ee){return L===""?ee:(ee&&D.push(Ue),D.push(f(T(L))),!0)}var ke=new Map,_e=p(' style="'),Ne=p(":"),rt=p(";");function at(D,L,W){if(typeof W!="object")throw Error(t(62));L=!0;for(var ee in W)if(g.call(W,ee)){var me=W[ee];if(me!=null&&typeof me!="boolean"&&me!==""){if(ee.indexOf("--")===0){var ye=f(T(ee));me=f(T((""+me).trim()))}else{ye=ee;var Le=ke.get(ye);Le!==void 0||(Le=p(T(ye.replace(he,"-$1").toLowerCase().replace(oe,"-ms-"))),ke.set(ye,Le)),ye=Le,me=typeof me=="number"?me===0||g.call(J,ee)?f(""+me):f(me+"px"):f(T((""+me).trim()))}L?(L=!1,D.push(_e,ye,Ne,me)):D.push(rt,ye,Ne,me)}}L||D.push(mt)}var ht=p(" "),lt=p('="'),mt=p('"'),et=p('=""');function At(D,L,W,ee){switch(W){case"style":at(D,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=R.hasOwnProperty(W)?R[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&&D.push(ht,W,et);break;case 4:ee===!0?D.push(ht,W,et):ee!==!1&&D.push(ht,W,lt,f(T(ee)),mt);break;case 5:isNaN(ee)||D.push(ht,W,lt,f(T(ee)),mt);break;case 6:!isNaN(ee)&&1<=ee&&D.push(ht,W,lt,f(T(ee)),mt);break;default:L.sanitizeURL&&(ee=""+ee),D.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}D.push(ht,f(W),lt,f(T(ee)),mt)}}}var Lt=p(">"),Hn=p("/>");function gr(D,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&&D.push(f(""+L))}}function Un(D){var L="";return e.Children.forEach(D,function(W){W!=null&&(L+=W)}),L}var Cn=p(' selected=""');function ji(D,L,W,ee){D.push(dn(W));var me=W=null,ye;for(ye in L)if(g.call(L,ye)){var Le=L[ye];if(Le!=null)switch(ye){case"children":W=Le;break;case"dangerouslySetInnerHTML":me=Le;break;default:At(D,ee,ye,Le)}}return D.push(Lt),gr(D,me,W),typeof W=="string"?(D.push(f(T(W))),null):W}var Er=p(`
|
|
54
|
+
`),Zn=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,sn=new Map;function dn(D){var L=sn.get(D);if(L===void 0){if(!Zn.test(D))throw Error(t(65,D));L=p("<"+D),sn.set(D,L)}return L}var hn=p("<!DOCTYPE html>");function dt(D,L,W,ee,me){switch(L){case"select":D.push(dn("select"));var ye=null,Le=null;for(Tt in W)if(g.call(W,Tt)){var Ke=W[Tt];if(Ke!=null)switch(Tt){case"children":ye=Ke;break;case"dangerouslySetInnerHTML":Le=Ke;break;case"defaultValue":case"value":break;default:At(D,ee,Tt,Ke)}}return D.push(Lt),gr(D,Le,ye),ye;case"option":Le=me.selectedValue,D.push(dn("option"));var gt=Ke=null,Pt=null,Tt=null;for(ye in W)if(g.call(W,ye)){var bt=W[ye];if(bt!=null)switch(ye){case"children":Ke=bt;break;case"selected":Pt=bt;break;case"dangerouslySetInnerHTML":Tt=bt;break;case"value":gt=bt;default:At(D,ee,ye,bt)}}if(Le!=null)if(W=gt!==null?""+gt:Un(Ke),ze(Le)){for(ee=0;ee<Le.length;ee++)if(""+Le[ee]===W){D.push(Cn);break}}else""+Le===W&&D.push(Cn);else Pt&&D.push(Cn);return D.push(Lt),gr(D,Tt,Ke),Ke;case"textarea":D.push(dn("textarea")),Tt=Le=ye=null;for(Ke in W)if(g.call(W,Ke)&&(gt=W[Ke],gt!=null))switch(Ke){case"children":Tt=gt;break;case"value":ye=gt;break;case"defaultValue":Le=gt;break;case"dangerouslySetInnerHTML":throw Error(t(91));default:At(D,ee,Ke,gt)}if(ye===null&&Le!==null&&(ye=Le),D.push(Lt),Tt!=null){if(ye!=null)throw Error(t(92));if(ze(Tt)&&1<Tt.length)throw Error(t(93));ye=""+Tt}return typeof ye=="string"&&ye[0]===`
|
|
55
|
+
`&&D.push(Er),ye!==null&&D.push(f(T(""+ye))),null;case"input":D.push(dn("input")),gt=Tt=Ke=ye=null;for(Le in W)if(g.call(W,Le)&&(Pt=W[Le],Pt!=null))switch(Le){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,"input"));case"defaultChecked":gt=Pt;break;case"defaultValue":Ke=Pt;break;case"checked":Tt=Pt;break;case"value":ye=Pt;break;default:At(D,ee,Le,Pt)}return Tt!==null?At(D,ee,"checked",Tt):gt!==null&&At(D,ee,"checked",gt),ye!==null?At(D,ee,"value",ye):Ke!==null&&At(D,ee,"value",Ke),D.push(Hn),null;case"menuitem":D.push(dn("menuitem"));for(var Mn in W)if(g.call(W,Mn)&&(ye=W[Mn],ye!=null))switch(Mn){case"children":case"dangerouslySetInnerHTML":throw Error(t(400));default:At(D,ee,Mn,ye)}return D.push(Lt),null;case"title":D.push(dn("title")),ye=null;for(bt in W)if(g.call(W,bt)&&(Le=W[bt],Le!=null))switch(bt){case"children":ye=Le;break;case"dangerouslySetInnerHTML":throw Error(t(434));default:At(D,ee,bt,Le)}return D.push(Lt),ye;case"listing":case"pre":D.push(dn(L)),Le=ye=null;for(gt in W)if(g.call(W,gt)&&(Ke=W[gt],Ke!=null))switch(gt){case"children":ye=Ke;break;case"dangerouslySetInnerHTML":Le=Ke;break;default:At(D,ee,gt,Ke)}if(D.push(Lt),Le!=null){if(ye!=null)throw Error(t(60));if(typeof Le!="object"||!("__html"in Le))throw Error(t(61));W=Le.__html,W!=null&&(typeof W=="string"&&0<W.length&&W[0]===`
|
|
56
|
+
`?D.push(Er,f(W)):D.push(f(""+W)))}return typeof ye=="string"&&ye[0]===`
|
|
57
|
+
`&&D.push(Er),ye;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":D.push(dn(L));for(var xn in W)if(g.call(W,xn)&&(ye=W[xn],ye!=null))switch(xn){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,L));default:At(D,ee,xn,ye)}return D.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(D,W,L,ee);case"html":return me.insertionMode===0&&D.push(hn),ji(D,W,L,ee);default:if(L.indexOf("-")===-1&&typeof W.is!="string")return ji(D,W,L,ee);D.push(dn(L)),Le=ye=null;for(Pt in W)if(g.call(W,Pt)&&(Ke=W[Pt],Ke!=null))switch(Pt){case"children":ye=Ke;break;case"dangerouslySetInnerHTML":Le=Ke;break;case"style":at(D,ee,Ke);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:A(Pt)&&typeof Ke!="function"&&typeof Ke!="symbol"&&D.push(ht,f(Pt),lt,f(T(Ke)),mt)}return D.push(Lt),gr(D,Le,ye),ye}}var On=p("</"),ai=p(">"),an=p('<template id="'),Bi=p('"></template>'),$i=p("<!--$-->"),Vi=p('<!--$?--><template id="'),kr=p('"></template>'),jn=p("<!--$!-->"),Dr=p("<!--/$-->"),vr=p("<template"),zr=p('"'),Yr=p(' data-dgst="');p(' data-msg="'),p(' data-stck="');var Po=p("></template>");function Wn(D,L,W){if(i(D,Vi),W===null)throw Error(t(395));return i(D,W),o(D,kr)}var Gr=p('<div hidden id="'),Jn=p('">'),Wt=p("</div>"),si=p('<svg aria-hidden="true" style="display:none" id="'),Hi=p('">'),_n=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>"),Ra=p('<table hidden><tr id="'),Ia=p('">'),qr=p("</tr></table>"),ao=p('<table hidden><colgroup id="'),so=p('">'),Di=p("</colgroup></table>");function Qn(D,L,W,ee){switch(W.insertionMode){case 0:case 1:return i(D,Gr),i(D,L.segmentPrefix),i(D,f(ee.toString(16))),o(D,Jn);case 2:return i(D,si),i(D,L.segmentPrefix),i(D,f(ee.toString(16))),o(D,Hi);case 3:return i(D,pn),i(D,L.segmentPrefix),i(D,f(ee.toString(16))),o(D,li);case 4:return i(D,En),i(D,L.segmentPrefix),i(D,f(ee.toString(16))),o(D,oo);case 5:return i(D,ci),i(D,L.segmentPrefix),i(D,f(ee.toString(16))),o(D,ln);case 6:return i(D,Ra),i(D,L.segmentPrefix),i(D,f(ee.toString(16))),o(D,Ia);case 7:return i(D,ao),i(D,L.segmentPrefix),i(D,f(ee.toString(16))),o(D,so);default:throw Error(t(397))}}function Or(D,L){switch(L.insertionMode){case 0:case 1:return o(D,Wt);case 2:return o(D,_n);case 3:return o(D,ui);case 4:return o(D,mr);case 5:return o(D,ki);case 6:return o(D,qr);case 7:return o(D,Di);default:throw Error(t(397))}}var _r=p('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),fi=p('$RS("'),Xr=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('","'),Oi=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(D){return JSON.stringify(D).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 Kr=Object.assign,zn=Symbol.for("react.element"),pi=Symbol.for("react.portal"),gi=Symbol.for("react.fragment"),_i=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"),Ce=Symbol.for("react.legacy_hidden"),ge=Symbol.for("react.default_value"),Re=Symbol.iterator;function Je(D){if(D==null)return null;if(typeof D=="function")return D.displayName||D.name||null;if(typeof D=="string")return D;switch(D){case gi:return"Fragment";case pi:return"Portal";case rn:return"Profiler";case _i:return"StrictMode";case Pn:return"Suspense";case Rn:return"SuspenseList"}if(typeof D=="object")switch(D.$$typeof){case kn:return(D.displayName||"Context")+".Consumer";case Bn:return(D._context.displayName||"Context")+".Provider";case lo:var L=D.render;return D=D.displayName,D||(D=L.displayName||L.name||"",D=D!==""?"ForwardRef("+D+")":"ForwardRef"),D;case k:return L=D.displayName||null,L!==null?L:Je(D.type)||"Memo";case N:L=D._payload,D=D._init;try{return Je(D(L))}catch{}}return null}var vt={};function yt(D,L){if(D=D.contextTypes,!D)return vt;var W={},ee;for(ee in D)W[ee]=L[ee];return W}var pt=null;function Nt(D,L){if(D!==L){D.context._currentValue=D.parentValue,D=D.parent;var W=L.parent;if(D===null){if(W!==null)throw Error(t(401))}else{if(W===null)throw Error(t(401));Nt(D,W)}L.context._currentValue=L.value}}function $n(D){D.context._currentValue=D.parentValue,D=D.parent,D!==null&&$n(D)}function Yn(D){var L=D.parent;L!==null&&Yn(L),D.context._currentValue=D.value}function Dn(D,L){if(D.context._currentValue=D.parentValue,D=D.parent,D===null)throw Error(t(402));D.depth===L.depth?Nt(D,L):Dn(D,L)}function Zr(D,L){var W=L.parent;if(W===null)throw Error(t(402));D.depth===W.depth?Nt(D,W):Zr(D,W),L.context._currentValue=L.value}function lr(D){var L=pt;L!==D&&(L===null?Yn(D):D===null?$n(L):L.depth===D.depth?Nt(L,D):L.depth>D.depth?Dn(L,D):Zr(L,D),pt=D)}var Wi={isMounted:function(){return!1},enqueueSetState:function(D,L){D=D._reactInternals,D.queue!==null&&D.queue.push(L)},enqueueReplaceState:function(D,L){D=D._reactInternals,D.replace=!0,D.queue=[L]},enqueueForceUpdate:function(){}};function vi(D,L,W,ee){var me=D.state!==void 0?D.state:null;D.updater=Wi,D.props=W,D.state=me;var ye={queue:[],replace:!1};D._reactInternals=ye;var Le=L.contextType;if(D.context=typeof Le=="object"&&Le!==null?Le._currentValue:ee,Le=L.getDerivedStateFromProps,typeof Le=="function"&&(Le=Le(W,me),me=Le==null?me:Kr({},me,Le),D.state=me),typeof L.getDerivedStateFromProps!="function"&&typeof D.getSnapshotBeforeUpdate!="function"&&(typeof D.UNSAFE_componentWillMount=="function"||typeof D.componentWillMount=="function"))if(L=D.state,typeof D.componentWillMount=="function"&&D.componentWillMount(),typeof D.UNSAFE_componentWillMount=="function"&&D.UNSAFE_componentWillMount(),L!==D.state&&Wi.enqueueReplaceState(D,D.state,null),ye.queue!==null&&0<ye.queue.length)if(L=ye.queue,Le=ye.replace,ye.queue=null,ye.replace=!1,Le&&L.length===1)D.state=L[0];else{for(ye=Le?L[0]:D.state,me=!0,Le=Le?1:0;Le<L.length;Le++){var Ke=L[Le];Ke=typeof Ke=="function"?Ke.call(D,ye,W,ee):Ke,Ke!=null&&(me?(me=!1,ye=Kr({},ye,Ke)):Kr(ye,Ke))}D.state=ye}else ye.queue=null}var zi={id:1,overflow:""};function Ar(D,L,W){var ee=D.id;D=D.overflow;var me=32-Yi(ee)-1;ee&=~(1<<me),W+=1;var ye=32-Yi(L)+me;if(30<ye){var Le=me-me%5;return ye=(ee&(1<<Le)-1).toString(32),ee>>=Le,me-=Le,{id:1<<32-Yi(L)+me|W<<me|ee,overflow:ye+D}}return{id:1<<ye|W<<me|ee,overflow:D}}var Yi=Math.clz32?Math.clz32:Qo,Us=Math.log,Aa=Math.LN2;function Qo(D){return D>>>=0,D===0?32:31-(Us(D)/Aa|0)|0}function wr(D,L){return D===L&&(D!==0||1/D===1/L)||D!==D&&L!==L}var Ws=typeof Object.is=="function"?Object.is:wr,mi=null,Ma=null,ea=null,on=null,qt=!1,Zt=!1,Pi=0,Jr=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 La(){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(){Ma=mi=null,Zt=!1,ea=null,Ro=0,on=Jr=null}function ss(D,L){return typeof L=="function"?L(D):L}function un(D,L,W){if(mi=yi(),on=La(),qt){var ee=on.queue;if(L=ee.dispatch,Jr!==null&&(W=Jr.get(ee),W!==void 0)){Jr.delete(ee),ee=on.memoizedState;do ee=D(ee,W.action),W=W.next;while(W!==null);return on.memoizedState=ee,[ee,L]}return[on.memoizedState,L]}return D=D===ss?typeof L=="function"?L():L:W!==void 0?W(L):L,on.memoizedState=D,D=on.queue={last:null,dispatch:null},D=D.dispatch=bi.bind(null,mi,D),[on.memoizedState,D]}function Io(D,L){if(mi=yi(),on=La(),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 me=0;me<ee.length&&me<L.length;me++)if(!Ws(L[me],ee[me])){ee=!1;break e}ee=!0}if(ee)return W[0]}}return D=D(),on.memoizedState=[D,L],D}function bi(D,L,W){if(25<=Ro)throw Error(t(301));if(D===mi)if(Zt=!0,D={action:W,next:null},Jr===null&&(Jr=new Map),W=Jr.get(L),W===void 0)Jr.set(L,D);else{for(L=W;L.next!==null;)L=L.next;L.next=D}}function ls(){throw Error(t(394))}function co(){}var cr={readContext:function(D){return D._currentValue},useContext:function(D){return yi(),D._currentValue},useMemo:Io,useReducer:un,useRef:function(D){mi=yi(),on=La();var L=on.memoizedState;return L===null?(D={current:D},on.memoizedState=D):L},useState:function(D){return un(ss,D)},useInsertionEffect:co,useLayoutEffect:function(){},useCallback:function(D,L){return Io(function(){return D},L)},useImperativeHandle:co,useEffect:co,useDebugValue:co,useDeferredValue:function(D){return yi(),D},useTransition:function(){return yi(),[!1,ls]},useId:function(){var D=Ma.treeContext,L=D.overflow;D=D.id,D=(D&~(1<<32-Yi(D)-1)).toString(32)+L;var W=h;if(W===null)throw Error(t(404));return L=Pi++,D=":"+W.idPrefix+"R"+D,0<L&&(D+="H"+L.toString(32)),D+":"},useMutableSource:function(D,L){return yi(),L(D._source)},useSyncExternalStore:function(D,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(D){return console.error(D),null}function O(){}function F(D,L,W,ee,me,ye,Le,Ke,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:me===void 0?E:me,onAllReady:ye===void 0?O:ye,onShellReady:Le===void 0?O:Le,onShellError:Ke===void 0?O:Ke,onFatalError:gt===void 0?O:gt},W=H(L,0,null,W,!1,!1),W.parentFlushed=!0,D=j(L,D,null,W,Tt,vt,null,zi),Pt.push(D),L}function j(D,L,W,ee,me,ye,Le,Ke){D.allPendingTasks++,W===null?D.pendingRootTasks++:W.pendingTasks++;var gt={node:L,ping:function(){var Pt=D.pingedTasks;Pt.push(gt),Pt.length===1&&Lr(D)},blockedBoundary:W,blockedSegment:ee,abortSet:me,legacyContext:ye,context:Le,treeContext:Ke};return me.add(gt),gt}function H(D,L,W,ee,me,ye){return{status:0,id:-1,index:L,parentFlushed:!1,chunks:[],children:[],formatContext:ee,boundary:W,lastPushedText:me,textEmbedded:ye}}function ae(D,L){if(D=D.onError(L),D!=null&&typeof D!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof D+'" instead');return D}function ne(D,L){var W=D.onShellError;W(L),W=D.onFatalError,W(L),D.destination!==null?(D.status=2,y(D.destination,L)):(D.status=1,D.fatalError=L)}function pe(D,L,W,ee,me){for(mi={},Ma=L,Pi=0,D=W(ee,me);Zt;)Zt=!1,Pi=0,Ro+=1,on=null,D=W(ee,me);return uo(),D}function Oe(D,L,W,ee){var me=W.render(),ye=ee.childContextTypes;if(ye!=null){var Le=L.legacyContext;if(typeof W.getChildContext!="function")ee=Le;else{W=W.getChildContext();for(var Ke in W)if(!(Ke in ye))throw Error(t(108,Je(ee)||"Unknown",Ke));ee=Kr({},Le,W)}L.legacyContext=ee,Ye(D,L,me),L.legacyContext=Le}else Ye(D,L,me)}function Ae(D,L){if(D&&D.defaultProps){L=Kr({},L),D=D.defaultProps;for(var W in D)L[W]===void 0&&(L[W]=D[W]);return L}return L}function xe(D,L,W,ee,me){if(typeof W=="function")if(W.prototype&&W.prototype.isReactComponent){me=yt(W,L.legacyContext);var ye=W.contextType;ye=new W(ee,typeof ye=="object"&&ye!==null?ye._currentValue:me),vi(ye,W,ee,me),Oe(D,L,ye,W)}else{ye=yt(W,L.legacyContext),me=pe(D,L,W,ee,ye);var Le=Pi!==0;if(typeof me=="object"&&me!==null&&typeof me.render=="function"&&me.$$typeof===void 0)vi(me,W,ee,ye),Oe(D,L,me,W);else if(Le){ee=L.treeContext,L.treeContext=Ar(ee,1,0);try{Ye(D,L,me)}finally{L.treeContext=ee}}else Ye(D,L,me)}else if(typeof W=="string"){switch(me=L.blockedSegment,ye=dt(me.chunks,W,ee,D.responseState,me.formatContext),me.lastPushedText=!1,Le=me.formatContext,me.formatContext=Ee(Le,W,ee),Ct(D,L,ye),me.formatContext=Le,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:me.chunks.push(On,f(W),ai)}me.lastPushedText=!1}else{switch(W){case Ce:case te:case _i:case rn:case gi:Ye(D,L,ee.children);return;case Rn:Ye(D,L,ee.children);return;case G:throw Error(t(343));case Pn:e:{W=L.blockedBoundary,me=L.blockedSegment,ye=ee.fallback,ee=ee.children,Le=new Set;var Ke={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:Le,errorDigest:null},gt=H(D,me.chunks.length,Ke,me.formatContext,!1,!1);me.children.push(gt),me.lastPushedText=!1;var Pt=H(D,0,null,me.formatContext,!1,!1);Pt.parentFlushed=!0,L.blockedBoundary=Ke,L.blockedSegment=Pt;try{if(Ct(D,L,ee),Pt.lastPushedText&&Pt.textEmbedded&&Pt.chunks.push(Ue),Pt.status=1,cn(Ke,Pt),Ke.pendingTasks===0)break e}catch(Tt){Pt.status=4,Ke.forceClientRender=!0,Ke.errorDigest=ae(D,Tt)}finally{L.blockedBoundary=W,L.blockedSegment=me}L=j(D,ye,W,gt,Le,L.legacyContext,L.context,L.treeContext),D.pingedTasks.push(L)}return}if(typeof W=="object"&&W!==null)switch(W.$$typeof){case lo:if(ee=pe(D,L,W.render,ee,me),Pi!==0){W=L.treeContext,L.treeContext=Ar(W,1,0);try{Ye(D,L,ee)}finally{L.treeContext=W}}else Ye(D,L,ee);return;case k:W=W.type,ee=Ae(W,ee),xe(D,L,W,ee,me);return;case Bn:if(me=ee.children,W=W._context,ee=ee.value,ye=W._currentValue,W._currentValue=ee,Le=pt,pt=ee={parent:Le,depth:Le===null?0:Le.depth+1,context:W,parentValue:ye,value:ee},L.context=ee,Ye(D,L,me),D=pt,D===null)throw Error(t(403));ee=D.parentValue,D.context._currentValue=ee===ge?D.context._defaultValue:ee,D=pt=D.parent,L.context=D;return;case kn:ee=ee.children,ee=ee(W._currentValue),Ye(D,L,ee);return;case N:me=W._init,W=me(W._payload),ee=Ae(W,ee),xe(D,L,W,ee,void 0);return}throw Error(t(130,W==null?W:typeof W,""))}}function Ye(D,L,W){if(L.node=W,typeof W=="object"&&W!==null){switch(W.$$typeof){case zn:xe(D,L,W.type,W.props,W.ref);return;case pi:throw Error(t(257));case N:var ee=W._init;W=ee(W._payload),Ye(D,L,W);return}if(ze(W)){st(D,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 me=[];do me.push(W.value),W=ee.next();while(!W.done);st(D,L,me)}return}throw D=Object.prototype.toString.call(W),Error(t(31,D==="[object Object]"?"object with keys {"+Object.keys(W).join(", ")+"}":D))}typeof W=="string"?(ee=L.blockedSegment,ee.lastPushedText=$e(L.blockedSegment.chunks,W,D.responseState,ee.lastPushedText)):typeof W=="number"&&(ee=L.blockedSegment,ee.lastPushedText=$e(L.blockedSegment.chunks,""+W,D.responseState,ee.lastPushedText))}function st(D,L,W){for(var ee=W.length,me=0;me<ee;me++){var ye=L.treeContext;L.treeContext=Ar(ye,ee,me);try{Ct(D,L,W[me])}finally{L.treeContext=ye}}}function Ct(D,L,W){var ee=L.blockedSegment.formatContext,me=L.legacyContext,ye=L.context;try{return Ye(D,L,W)}catch(gt){if(uo(),typeof gt=="object"&>!==null&&typeof gt.then=="function"){W=gt;var Le=L.blockedSegment,Ke=H(D,Le.chunks.length,null,Le.formatContext,Le.lastPushedText,!0);Le.children.push(Ke),Le.lastPushedText=!1,D=j(D,L.node,L.blockedBoundary,Ke,L.abortSet,L.legacyContext,L.context,L.treeContext).ping,W.then(D,D),L.blockedSegment.formatContext=ee,L.legacyContext=me,L.context=ye,lr(ye)}else throw L.blockedSegment.formatContext=ee,L.legacyContext=me,L.context=ye,lr(ye),gt}}function kt(D){var L=D.blockedBoundary;D=D.blockedSegment,D.status=3,Mr(this,L,D)}function In(D,L,W){var ee=D.blockedBoundary;D.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,D=W===void 0?Error(t(432)):W,ee.errorDigest=L.onError(D),ee.parentFlushed&&L.clientRenderedBoundaries.push(ee)),ee.fallbackAbortableTasks.forEach(function(me){return In(me,L,W)}),ee.fallbackAbortableTasks.clear(),L.allPendingTasks--,L.allPendingTasks===0&&(ee=L.onAllReady,ee()))}function cn(D,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(D,W)}else D.completedSegments.push(L)}function Mr(D,L,W){if(L===null){if(W.parentFlushed){if(D.completedRootSegment!==null)throw Error(t(389));D.completedRootSegment=W}D.pendingRootTasks--,D.pendingRootTasks===0&&(D.onShellError=O,L=D.onShellReady,L())}else L.pendingTasks--,L.forceClientRender||(L.pendingTasks===0?(W.parentFlushed&&W.status===1&&cn(L,W),L.parentFlushed&&D.completedBoundaries.push(L),L.fallbackAbortableTasks.forEach(kt,D),L.fallbackAbortableTasks.clear()):W.parentFlushed&&W.status===1&&(cn(L,W),L.completedSegments.length===1&&L.parentFlushed&&D.partialBoundaries.push(L)));D.allPendingTasks--,D.allPendingTasks===0&&(D=D.onAllReady,D())}function Lr(D){if(D.status!==2){var L=pt,W=b.current;b.current=cr;var ee=h;h=D.responseState;try{var me=D.pingedTasks,ye;for(ye=0;ye<me.length;ye++){var Le=me[ye],Ke=D,gt=Le.blockedSegment;if(gt.status===0){lr(Le.context);try{Ye(Ke,Le,Le.node),gt.lastPushedText&>.textEmbedded&>.chunks.push(Ue),Le.abortSet.delete(Le),gt.status=1,Mr(Ke,Le.blockedBoundary,gt)}catch(Vn){if(uo(),typeof Vn=="object"&&Vn!==null&&typeof Vn.then=="function"){var Pt=Le.ping;Vn.then(Pt,Pt)}else{Le.abortSet.delete(Le),gt.status=4;var Tt=Le.blockedBoundary,bt=Vn,Mn=ae(Ke,bt);if(Tt===null?ne(Ke,bt):(Tt.pendingTasks--,Tt.forceClientRender||(Tt.forceClientRender=!0,Tt.errorDigest=Mn,Tt.parentFlushed&&Ke.clientRenderedBoundaries.push(Tt))),Ke.allPendingTasks--,Ke.allPendingTasks===0){var xn=Ke.onAllReady;xn()}}}finally{}}}me.splice(0,ye),D.destination!==null&&ho(D,D.destination)}catch(Vn){ae(D,Vn),ne(D,Vn)}finally{h=ee,b.current=W,W===cr&&lr(L)}}}function Ft(D,L,W){switch(W.parentFlushed=!0,W.status){case 0:var ee=W.id=D.nextSegmentId++;return W.lastPushedText=!1,W.textEmbedded=!1,D=D.responseState,i(L,an),i(L,D.placeholderPrefix),D=f(ee.toString(16)),i(L,D),o(L,Bi);case 1:W.status=2;var me=!0;ee=W.chunks;var ye=0;W=W.children;for(var Le=0;Le<W.length;Le++){for(me=W[Le];ye<me.index;ye++)i(L,ee[ye]);me=Fr(D,L,me)}for(;ye<ee.length-1;ye++)i(L,ee[ye]);return ye<ee.length&&(me=o(L,ee[ye])),me;default:throw Error(t(390))}}function Fr(D,L,W){var ee=W.boundary;if(ee===null)return Ft(D,L,W);if(ee.parentFlushed=!0,ee.forceClientRender)ee=ee.errorDigest,o(L,jn),i(L,vr),ee&&(i(L,Yr),i(L,f(T(ee))),i(L,zr)),o(L,Po),Ft(D,L,W);else if(0<ee.pendingTasks){ee.rootSegmentID=D.nextSegmentId++,0<ee.completedSegments.length&&D.partialBoundaries.push(ee);var me=D.responseState,ye=me.nextSuspenseID++;me=p(me.boundaryPrefix+ye.toString(16)),ee=ee.id=me,Wn(L,D.responseState,ee),Ft(D,L,W)}else if(ee.byteSize>D.progressiveChunkSize)ee.rootSegmentID=D.nextSegmentId++,D.completedBoundaries.push(ee),Wn(L,D.responseState,ee.id),Ft(D,L,W);else{if(o(L,$i),W=ee.completedSegments,W.length!==1)throw Error(t(391));Fr(D,L,W[0])}return o(L,Dr)}function jt(D,L,W){return Qn(L,D.responseState,W.formatContext,W.id),Fr(D,L,W),Or(L,W.formatContext)}function en(D,L,W){for(var ee=W.completedSegments,me=0;me<ee.length;me++)fo(D,L,W,ee[me]);if(ee.length=0,D=D.responseState,ee=W.id,W=W.rootSegmentID,i(L,D.startInlineScript),D.sentCompleteBoundaryFunction?i(L,er):(D.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,D.segmentPrefix),i(L,W),o(L,Oi)}function fo(D,L,W,ee){if(ee.status===2)return!0;var me=ee.id;if(me===-1){if((ee.id=W.rootSegmentID)===-1)throw Error(t(392));return jt(D,L,ee)}return jt(D,L,ee),D=D.responseState,i(L,D.startInlineScript),D.sentCompleteSegmentFunction?i(L,fi):(D.sentCompleteSegmentFunction=!0,i(L,_r)),i(L,D.segmentPrefix),me=f(me.toString(16)),i(L,me),i(L,Xr),i(L,D.placeholderPrefix),i(L,me),o(L,yr)}function ho(D,L){n=new Uint8Array(512),r=0;try{var W=D.completedRootSegment;if(W!==null&&D.pendingRootTasks===0){Fr(D,L,W),D.completedRootSegment=null;var ee=D.responseState.bootstrapChunks;for(W=0;W<ee.length-1;W++)i(L,ee[W]);W<ee.length&&o(L,ee[W])}var me=D.clientRenderedBoundaries,ye;for(ye=0;ye<me.length;ye++){var Le=me[ye];ee=L;var Ke=D.responseState,gt=Le.id,Pt=Le.errorDigest,Tt=Le.errorMessage,bt=Le.errorComponentStack;if(i(ee,Ke.startInlineScript),Ke.sentClientRenderFunction?i(ee,wn):(Ke.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)}me.splice(0,ye);var Mn=D.completedBoundaries;for(ye=0;ye<Mn.length;ye++)en(D,L,Mn[ye]);Mn.splice(0,ye),s(L),n=new Uint8Array(512),r=0;var xn=D.partialBoundaries;for(ye=0;ye<xn.length;ye++){var Vn=xn[ye];e:{me=D,Le=L;var ta=Vn.completedSegments;for(Ke=0;Ke<ta.length;Ke++)if(!fo(me,Le,Vn,ta[Ke])){Ke++,ta.splice(0,Ke);var us=!1;break e}ta.splice(0,Ke),us=!0}if(!us){D.destination=null,ye++,xn.splice(0,ye);return}}xn.splice(0,ye);var po=D.completedBoundaries;for(ye=0;ye<po.length;ye++)en(D,L,po[ye]);po.splice(0,ye)}finally{s(L),D.allPendingTasks===0&&D.pingedTasks.length===0&&D.clientRenderedBoundaries.length===0&&D.completedBoundaries.length===0&&L.close()}}function xr(D,L){try{var W=D.abortableTasks;W.forEach(function(ee){return In(ee,D,L)}),W.clear(),D.destination!==null&&ho(D,D.destination)}catch(ee){ae(D,ee),ne(D,ee)}}return jh.renderToReadableStream=function(D,L){return new Promise(function(W,ee){var me,ye,Le=new Promise(function(Tt,bt){ye=Tt,me=bt}),Ke=F(D,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),we(L?L.namespaceURI:void 0),L?L.progressiveChunkSize:void 0,L?L.onError:void 0,ye,function(){var Tt=new ReadableStream({type:"bytes",pull:function(bt){if(Ke.status===1)Ke.status=2,y(bt,Ke.fatalError);else if(Ke.status!==2&&Ke.destination===null){Ke.destination=bt;try{ho(Ke,bt)}catch(Mn){ae(Ke,Mn),ne(Ke,Mn)}}},cancel:function(){xr(Ke)}},{highWaterMark:0});Tt.allReady=Le,W(Tt)},function(Tt){Le.catch(function(){}),ee(Tt)},me);if(L&&L.signal){var gt=L.signal,Pt=function(){xr(Ke,gt.reason),gt.removeEventListener("abort",Pt)};gt.addEventListener("abort",Pt)}Lr(Ke)})},jh.version="18.3.1",jh}var dc={};/**
|
|
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 c1;function M4(){return c1||(c1=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),x=1;x<d;x++)v[x-1]=arguments[x];o("warn",l,v)}}function i(l){{for(var d=arguments.length,v=new Array(d>1?d-1:0),x=1;x<d;x++)v[x-1]=arguments[x];o("error",l,v)}}function o(l,d,v){{var x=n.ReactDebugCurrentFrame,I=x.getStackAddendum();I!==""&&(d+="%s",v=v.concat([I]));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 c(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 S(l){return l}function C(l){return l}function P(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 R(l),!1}catch{return!0}}function R(l){return""+l}function V(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)),R(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)),R(l)}function J(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)),R(l)}var K=Object.prototype.hasOwnProperty,le=0,T=1,he=2,oe=3,ze=4,je=5,Pe=6,Be=":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",He=Be+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ce=new RegExp("^["+Be+"]["+He+"]*$"),Se={},Ie={};function Ge(l){return K.call(Ie,l)?!0:K.call(Se,l)?!1:ce.test(l)?(Ie[l]=!0,!0):(Se[l]=!0,i("Invalid attribute name: `%s`",l),!1)}function tt(l,d,v,x){if(v!==null&&v.type===le)return!1;switch(typeof d){case"function":case"symbol":return!0;case"boolean":{if(v!==null)return!v.acceptsBooleans;var I=l.toLowerCase().slice(0,5);return I!=="data-"&&I!=="aria-"}default:return!1}}function we(l){return Ue.hasOwnProperty(l)?Ue[l]:null}function Ee(l,d,v,x,I,B,Y){this.acceptsBooleans=d===he||d===oe||d===ze,this.attributeName=x,this.attributeNamespace=I,this.mustUseProperty=v,this.propertyName=l,this.type=d,this.sanitizeURL=B,this.removeEmptyString=Y}var Ue={},$e=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];$e.forEach(function(l){Ue[l]=new Ee(l,le,!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];Ue[d]=new Ee(d,T,!1,v,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(l){Ue[l]=new Ee(l,he,!1,l.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(l){Ue[l]=new Ee(l,he,!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){Ue[l]=new Ee(l,oe,!1,l.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(l){Ue[l]=new Ee(l,oe,!0,l,null,!1,!1)}),["capture","download"].forEach(function(l){Ue[l]=new Ee(l,ze,!1,l,null,!1,!1)}),["cols","rows","size","span"].forEach(function(l){Ue[l]=new Ee(l,Pe,!1,l,null,!1,!1)}),["rowSpan","start"].forEach(function(l){Ue[l]=new Ee(l,je,!1,l.toLowerCase(),null,!1,!1)});var ke=/[\-\:]([a-z])/g,_e=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,_e);Ue[d]=new Ee(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,_e);Ue[d]=new Ee(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,_e);Ue[d]=new Ee(d,T,!1,l,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(l){Ue[l]=new Ee(l,T,!1,l.toLowerCase(),null,!1,!1)});var Ne="xlinkHref";Ue[Ne]=new Ee("xlinkHref",T,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(l){Ue[l]=new Ee(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)-["+He+"]*$"),gr=new RegExp("^(aria)[A-Z]["+He+"]*$");function Un(l,d){{if(K.call(Lt,d)&&Lt[d])return!0;if(gr.test(d)){var v="aria-"+d.slice(4).toLowerCase(),x=At.hasOwnProperty(v)?v:null;if(x==null)return i("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",d),Lt[d]=!0,!0;if(d!==x)return i("Invalid ARIA attribute `%s`. Did you mean `%s`?",d,x),Lt[d]=!0,!0}if(Hn.test(d)){var I=d.toLowerCase(),B=At.hasOwnProperty(I)?I: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 x in d){var I=Un(l,x);I||v.push(x)}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./,On=/^on[^A-Z]/,ai=new RegExp("^(aria)-["+He+"]*$"),an=new RegExp("^(aria)[A-Z]["+He+"]*$");dn=function(l,d,v,x){if(K.call(hn,d)&&hn[d])return!0;var I=d.toLowerCase();if(I==="onfocusin"||I==="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(x!=null){var B=x.registrationNameDependencies,Y=x.possibleRegistrationNames;if(B.hasOwnProperty(d))return!0;var re=Y.hasOwnProperty(I)?Y[I]:null;if(re!=null)return i("Invalid event handler property `%s`. Did you mean `%s`?",d,re),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 On.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(I==="innerhtml")return i("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),hn[d]=!0,!0;if(I==="aria")return i("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),hn[d]=!0,!0;if(I==="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 be=we(d),We=be!==null&&be.type===le;if(sn.hasOwnProperty(I)){var Ze=sn[I];if(Ze!==d)return i("Invalid DOM property `%s`. Did you mean `%s`?",d,Ze),hn[d]=!0,!0}else if(!We&&d!==I)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,I),hn[d]=!0,!0;return typeof v=="boolean"&&tt(d,v,be)?(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):We?!0:tt(d,v,be)?(hn[d]=!0,!1):((v==="false"||v==="true")&&be!==null&&be.type===oe&&(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 x=[];for(var I in d){var B=dn(l,I,d[I],v);B||x.push(I)}var Y=x.map(function(re){return"`"+re+"`"}).join(", ");x.length===1?i("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",Y,l):x.length>1&&i("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",Y,l)}};function $i(l,d,v){et(l,d)||Bi(l,d,v)}var Vi=function(){};{var kr=/^(?:webkit|moz|o)[A-Z]/,jn=/^-ms-/,Dr=/-(.)/g,vr=/;\s*$/,zr={},Yr={},Po=!1,Wn=!1,Gr=function(l){return l.replace(Dr,function(d,v){return v.toUpperCase()})},Jn=function(l){zr.hasOwnProperty(l)&&zr[l]||(zr[l]=!0,i("Unsupported style property %s. Did you mean %s?",l,Gr(l.replace(jn,"ms-"))))},Wt=function(l){zr.hasOwnProperty(l)&&zr[l]||(zr[l]=!0,i("Unsupported vendor-prefixed style property %s. Did you mean %s?",l,l.charAt(0).toUpperCase()+l.slice(1)))},si=function(l,d){Yr.hasOwnProperty(d)&&Yr[d]||(Yr[d]=!0,i(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,l,d.replace(vr,"")))},Hi=function(l,d){Po||(Po=!0,i("`NaN` is an invalid value for the `%s` css style property.",l))},_n=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)||_n(l,d))}}var pn=Vi,li=/["'&<>]/;function ui(l){J(l);var d=""+l,v=li.exec(d);if(!v)return d;var x,I="",B,Y=0;for(B=v.index;B<d.length;B++){switch(d.charCodeAt(B)){case 34:x=""";break;case 38:x="&";break;case 39:x="'";break;case 60:x="<";break;case 62:x=">";break;default:continue}Y!==B&&(I+=d.substring(Y,B)),Y=B+1,I+=x}return Y!==B?I+d.substring(Y,B):I}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 Ra(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 Ia=Array.isArray;function qr(l){return Ia(l)}var ao="<script>";function so(l,d,v,x,I){var B=l===void 0?"":l,Y=ao,re=[];return{bootstrapChunks:re,startInlineScript:Y,placeholderPrefix:B+"P:",segmentPrefix:B+"S:",boundaryPrefix:B+"B:",idPrefix:B,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var Di=0,Qn=1,Or=2,_r=3,fi=4,Xr=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(Or,null);case"math":return er(_r,null);case"foreignObject":return er(Qn,null);case"table":return er(fi,null);case"thead":case"tbody":case"tfoot":return er(Xr,null);case"colgroup":return er(Pr,null);case"tr":return er(yr,null)}return l.insertionMode>=fi||l.insertionMode===Di?er(Qn,null):l}var Oi=null;function sr(l){var d=l.nextSuspenseID++;return l.boundaryPrefix+d.toString(16)}function wn(l,d,v){var x=l.idPrefix,I=":"+x+"R"+d;return v>0&&(I+="H"+v.toString(32)),I+":"}function Rr(l){return En(l)}var Ir="<!-- -->";function di(l,d,v,x){return d===""?x:(x&&l.push(Ir),l.push(Rr(d)),!0)}function hi(l,d,v,x){v&&x&&l.push(Ir)}var br=new Map;function Kr(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 _i(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 x=!0;for(var I in v)if(K.call(v,I)){var B=v[I];if(!(B==null||typeof B=="boolean"||B==="")){var Y=void 0,re=void 0,be=I.indexOf("--")===0;be?(Y=En(I),U(B,I),re=En((""+B).trim())):(pn(I,B),Y=Kr(I),typeof B=="number"?B!==0&&!K.call(rt,I)?re=B+"px":re=""+B:(U(B,I),re=En((""+B).trim()))),x?(x=!1,l.push(zn,Y,pi,re)):l.push(gi,Y,pi,re)}}x||l.push(kn)}var rn=" ",Bn='="',kn='"',lo='=""';function Pn(l,d,v,x){switch(v){case"style":{_i(l,d,x);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 I=we(v);if(I!==null){switch(typeof x){case"function":case"symbol":return;case"boolean":if(!I.acceptsBooleans)return}var B=I.attributeName,Y=B;switch(I.type){case oe:x&&l.push(rn,Y,lo);return;case ze:x===!0?l.push(rn,Y,lo):x===!1||l.push(rn,Y,Bn,En(x),kn);return;case je:isNaN(x)||l.push(rn,Y,Bn,En(x),kn);break;case Pe:!isNaN(x)&&x>=1&&l.push(rn,Y,Bn,En(x),kn);break;default:I.sanitizeURL&&(V(x,B),x=""+x,Ra(x)),l.push(rn,Y,Bn,En(x),kn)}}else if(Ge(v)){switch(typeof x){case"function":case"symbol":return;case"boolean":{var re=v.toLowerCase().slice(0,5);if(re!=="data-"&&re!=="aria-")return}}l.push(rn,v,Bn,En(x),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 x=d.__html;x!=null&&(J(x),l.push(""+x))}}var G=!1,te=!1,Ce=!1,ge=!1,Re=!1,Je=!1,vt=!1;function yt(l,d){{var v=l[d];if(v!=null){var x=qr(v);l.multiple&&!x?i("The `%s` prop supplied to <select> must be an array if `multiple` is true.",d):!l.multiple&&x&&i("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",d)}}}function pt(l,d,v){mt("select",d),yt(d,"value"),yt(d,"defaultValue"),d.value!==void 0&&d.defaultValue!==void 0&&!Ce&&(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"),Ce=!0),l.push(wr("select"));var x=null,I=null;for(var B in d)if(K.call(d,B)){var Y=d[B];if(Y==null)continue;switch(B){case"children":x=Y;break;case"dangerouslySetInnerHTML":I=Y;break;case"defaultValue":case"value":break;default:Pn(l,v,B,Y);break}}return l.push(Rn),N(l,I,x),x}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,x){var I=x.selectedValue;l.push(wr("option"));var B=null,Y=null,re=null,be=null;for(var We in d)if(K.call(d,We)){var Ze=d[We];if(Ze==null)continue;switch(We){case"children":B=Ze;break;case"selected":re=Ze,vt||(i("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),vt=!0);break;case"dangerouslySetInnerHTML":be=Ze;break;case"value":Y=Ze;default:Pn(l,v,We,Ze);break}}if(I!=null){var it;if(Y!==null?(V(Y,"value"),it=""+Y):(be!==null&&(Je||(Je=!0,i("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),it=Nt(B)),qr(I))for(var St=0;St<I.length;St++){V(I[St],"value");var tn=""+I[St];if(tn===it){l.push($n);break}}else V(I,"select.value"),""+I===it&&l.push($n)}else re&&l.push($n);return l.push(Rn),N(l,be,B),B}function Dn(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 x=null,I=null,B=null,Y=null;for(var re in d)if(K.call(d,re)){var be=d[re];if(be==null)continue;switch(re){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":Y=be;break;case"defaultValue":I=be;break;case"checked":B=be;break;case"value":x=be;break;default:Pn(l,v,re,be);break}}return B!==null?Pn(l,v,"checked",B):Y!==null&&Pn(l,v,"checked",Y),x!==null?Pn(l,v,"value",x):I!==null&&Pn(l,v,"value",I),l.push(k),null}function Zr(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 x=null,I=null,B=null;for(var Y in d)if(K.call(d,Y)){var re=d[Y];if(re==null)continue;switch(Y){case"children":B=re;break;case"value":x=re;break;case"defaultValue":I=re;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:Pn(l,v,Y,re);break}}if(x===null&&I!==null&&(x=I),l.push(Rn),B!=null){if(i("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),x!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(qr(B)){if(B.length>1)throw new Error("<textarea> can only have at most one child.");J(B[0]),x=""+B[0]}J(B),x=""+B}return typeof x=="string"&&x[0]===`
|
|
66
|
+
`&&l.push(Yi),x!==null&&(V(x,"value"),l.push(Rr(""+x))),null}function lr(l,d,v,x){l.push(wr(v));for(var I in d)if(K.call(d,I)){var B=d[I];if(B==null)continue;switch(I){case"children":case"dangerouslySetInnerHTML":throw new Error(v+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Pn(l,x,I,B);break}}return l.push(k),null}function Wi(l,d,v){l.push(wr("menuitem"));for(var x in d)if(K.call(d,x)){var I=d[x];if(I==null)continue;switch(x){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:Pn(l,v,x,I);break}}return l.push(Rn),null}function vi(l,d,v){l.push(wr("title"));var x=null;for(var I in d)if(K.call(d,I)){var B=d[I];if(B==null)continue;switch(I){case"children":x=B;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:Pn(l,v,I,B);break}}l.push(Rn);{var Y=Array.isArray(x)&&x.length<2?x[0]||null:x;Array.isArray(x)&&x.length>1?i("A title element received an array with more than 1 element as children. In browsers title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):Y!=null&&Y.$$typeof!=null?i("A title element received a React element for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):Y!=null&&typeof Y!="string"&&typeof Y!="number"&&i("A title element received a value that was not a string or number for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering")}return x}function zi(l,d,v,x){l.push(wr(v));var I=null,B=null;for(var Y in d)if(K.call(d,Y)){var re=d[Y];if(re==null)continue;switch(Y){case"children":I=re;break;case"dangerouslySetInnerHTML":B=re;break;default:Pn(l,x,Y,re);break}}return l.push(Rn),N(l,B,I),typeof I=="string"?(l.push(Rr(I)),null):I}function Ar(l,d,v,x){l.push(wr(v));var I=null,B=null;for(var Y in d)if(K.call(d,Y)){var re=d[Y];if(re==null)continue;switch(Y){case"children":I=re;break;case"dangerouslySetInnerHTML":B=re;break;case"style":_i(l,x,re);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:Ge(Y)&&typeof re!="function"&&typeof re!="symbol"&&l.push(rn,Y,Bn,En(re),kn);break}}return l.push(Rn),N(l,B,I),I}var Yi=`
|
|
67
|
+
`;function Us(l,d,v,x){l.push(wr(v));var I=null,B=null;for(var Y in d)if(K.call(d,Y)){var re=d[Y];if(re==null)continue;switch(Y){case"children":I=re;break;case"dangerouslySetInnerHTML":B=re;break;default:Pn(l,x,Y,re);break}}if(l.push(Rn),B!=null){if(I!=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 be=B.__html;be!=null&&(typeof be=="string"&&be.length>0&&be[0]===`
|
|
68
|
+
`?l.push(Yi,be):(J(be),l.push(""+be)))}return typeof I=="string"&&I[0]===`
|
|
69
|
+
`&&l.push(Yi),I}var Aa=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Qo=new Map;function wr(l){var d=Qo.get(l);if(d===void 0){if(!Aa.test(l))throw new Error("Invalid tag: "+l);d="<"+l,Qo.set(l,d)}return d}var Ws="<!DOCTYPE html>";function mi(l,d,v,x,I){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."),I.insertionMode!==Or&&I.insertionMode!==_r&&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,x);case"option":return Yn(l,v,x,I);case"textarea":return Zr(l,v,x);case"input":return Dn(l,v,x);case"menuitem":return Wi(l,v,x);case"title":return vi(l,v,x);case"listing":case"pre":return Us(l,v,d,x);case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":return lr(l,v,d,x);case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return zi(l,v,d,x);case"html":return I.insertionMode===Di&&l.push(Ws),zi(l,v,d,x);default:return d.indexOf("-")===-1&&typeof v.is!="string"?zi(l,v,d,x):Ar(l,v,d,x)}}var Ma="</",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(Ma,d,ea)}}function qt(l,d){for(var v=d.bootstrapChunks,x=0;x<v.length-1;x++)f(l,v[x]);return x<v.length?p(l,v[x]):!0}var Zt='<template id="',Pi='"></template>';function Jr(l,d,v){f(l,Zt),f(l,d.placeholderPrefix);var x=v.toString(16);return f(l,x),p(l,Pi)}var Ro="<!--$-->",yi='<!--$?--><template id="',ur='"></template>',La="<!--$!-->",uo="<!--/$-->",ss="<template",un='"',Io=' data-dgst="',bi=' data-msg="',ls=' 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,x,I){var B;return B=p(l,La),f(l,ss),v&&(f(l,Io),f(l,En(v)),f(l,un)),x&&(f(l,bi),f(l,En(x)),f(l,un)),I&&(f(l,ls),f(l,En(I)),f(l,un)),B=p(l,co),B}function E(l,d){return p(l,uo)}function O(l,d){return p(l,uo)}function F(l,d){return p(l,uo)}var j='<div hidden id="',H='">',ae="</div>",ne='<svg aria-hidden="true" style="display:none" id="',pe='">',Oe="</svg>",Ae='<math aria-hidden="true" style="display:none" id="',xe='">',Ye="</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,x){switch(v.insertionMode){case Di:case Qn:return f(l,j),f(l,d.segmentPrefix),f(l,x.toString(16)),p(l,H);case Or:return f(l,ne),f(l,d.segmentPrefix),f(l,x.toString(16)),p(l,pe);case _r:return f(l,Ae),f(l,d.segmentPrefix),f(l,x.toString(16)),p(l,xe);case fi:return f(l,st),f(l,d.segmentPrefix),f(l,x.toString(16)),p(l,Ct);case Xr:return f(l,In),f(l,d.segmentPrefix),f(l,x.toString(16)),p(l,cn);case yr:return f(l,Lr),f(l,d.segmentPrefix),f(l,x.toString(16)),p(l,Ft);case Pr:return f(l,jt),f(l,d.segmentPrefix),f(l,x.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 Di:case Qn:return p(l,ae);case Or:return p(l,Oe);case _r:return p(l,Ye);case fi:return p(l,kt);case Xr: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 D="function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)}",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=D+';$RS("',me='$RS("',ye='","',Le='")<\/script>';function Ke(l,d,v){f(l,d.startInlineScript),d.sentCompleteSegmentFunction?f(l,me):(d.sentCompleteSegmentFunction=!0,f(l,ee)),f(l,d.segmentPrefix);var x=v.toString(16);return f(l,x),f(l,ye),f(l,d.placeholderPrefix),f(l,x),p(l,Le)}var gt=L+';$RC("',Pt='$RC("',Tt='","',bt='")<\/script>';function Mn(l,d,v,x){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 I=x.toString(16);return f(l,v),f(l,Tt),f(l,d.segmentPrefix),f(l,I),p(l,bt)}var xn=W+';$RX("',Vn='$RX("',ta='"',us=")<\/script>",po=",";function Qr(l,d,v,x,I,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),(x||I||B)&&(f(l,po),f(l,Ri(x||""))),(I||B)&&(f(l,po),f(l,Ri(I||""))),B&&(f(l,po),f(l,Ri(B))),p(l,us)}var zs=/[<\u2028\u2029]/g;function Ri(l){var d=JSON.stringify(l);return d.replace(zs,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 cs(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 ei(l,d,v,x){return v.generateStaticMarkup?(l.push(En(d)),!1):di(l,d,v,x)}function go(l,d,v,x){if(!d.generateStaticMarkup)return hi(l,d,v,x)}function Ys(l,d){return d.generateStaticMarkup?!0:cr(l)}function _u(l,d,v,x,I){return d.generateStaticMarkup?!0:b(l,d,v,x,I)}function fs(l,d){return d.generateStaticMarkup?!0:E(l)}function vo(l,d){return d.generateStaticMarkup?!0:F(l)}var fn=Object.assign,Il=Symbol.for("react.element"),ds=Symbol.for("react.portal"),Fa=Symbol.for("react.fragment"),Q=Symbol.for("react.strict_mode"),fe=Symbol.for("react.profiler"),Te=Symbol.for("react.provider"),De=Symbol.for("react.context"),Z=Symbol.for("react.forward_ref"),ue=Symbol.for("react.suspense"),se=Symbol.for("react.suspense_list"),Me=Symbol.for("react.memo"),Ve=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 x=l.displayName;if(x)return x;var I=d.displayName||d.name||"";return I!==""?v+"("+I+")":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 Fa:return"Fragment";case ds:return"Portal";case fe:return"Profiler";case Q:return"StrictMode";case ue:return"Suspense";case se:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case De:var d=l;return Ln(d)+".Consumer";case Te:var v=l;return Ln(v._context)+".Provider";case Z:return tr(l,l.render,"ForwardRef");case Me:var x=l.displayName||null;return x!==null?x:zt(l.type)||"Memo";case Ve:{var I=l,B=I._payload,Y=I._init;try{return zt(Y(B))}catch{return null}}}return null}var Nr=0,Dt,Pu,gn,Ao,Ru,Iu,Au;function hs(){}hs.__reactDisabledLog=!0;function Mo(){{if(Nr===0){Dt=console.log,Pu=console.info,gn=console.warn,Ao=console.error,Ru=console.group,Iu=console.groupCollapsed,Au=console.groupEnd;var l={configurable:!0,enumerable:!0,value:hs,writable:!0};Object.defineProperties(console,{info:l,log:l,warn:l,error:l,group:l,groupCollapsed:l,groupEnd:l})}Nr++}}function Gs(){{if(Nr--,Nr===0){var l={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:fn({},l,{value:Dt}),info:fn({},l,{value:Pu}),warn:fn({},l,{value:gn}),error:fn({},l,{value:Ao}),group:fn({},l,{value:Ru}),groupCollapsed:fn({},l,{value:Iu}),groupEnd:fn({},l,{value:Au})})}Nr<0&&i("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var qs=n.ReactCurrentDispatcher,Na;function ps(l,d,v){{if(Na===void 0)try{throw Error()}catch(I){var x=I.stack.trim().match(/\n( *(at )?)/);Na=x&&x[1]||""}return`
|
|
70
|
+
`+Na+l}}var Al=!1,Lo;{var Ml=typeof WeakMap=="function"?WeakMap:Map;Lo=new Ml}function Gi(l,d){if(!l||Al)return"";{var v=Lo.get(l);if(v!==void 0)return v}var x;Al=!0;var I=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var B;B=qs.current,qs.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){x=rr}Reflect.construct(l,[],Y)}else{try{Y.call()}catch(rr){x=rr}l.call(Y.prototype)}}else{try{throw Error()}catch(rr){x=rr}l()}}catch(rr){if(rr&&x&&typeof rr.stack=="string"){for(var re=rr.stack.split(`
|
|
71
|
+
`),be=x.stack.split(`
|
|
72
|
+
`),We=re.length-1,Ze=be.length-1;We>=1&&Ze>=0&&re[We]!==be[Ze];)Ze--;for(;We>=1&&Ze>=0;We--,Ze--)if(re[We]!==be[Ze]){if(We!==1||Ze!==1)do if(We--,Ze--,Ze<0||re[We]!==be[Ze]){var it=`
|
|
73
|
+
`+re[We].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(We>=1&&Ze>=0);break}}}finally{Al=!1,qs.current=B,Gs(),Error.prepareStackTrace=I}var St=l?l.displayName||l.name:"",tn=St?ps(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 Lf(l){var d=l.prototype;return!!(d&&d.isReactComponent)}function Xs(l,d,v){if(l==null)return"";if(typeof l=="function")return Gi(l,Lf(l));if(typeof l=="string")return ps(l);switch(l){case ue:return ps("Suspense");case se:return ps("SuspenseList")}if(typeof l=="object")switch(l.$$typeof){case Z:return ra(l.render);case Me:return Xs(l.type,d,v);case Ve:{var x=l,I=x._payload,B=x._init;try{return Xs(B(I),d,v)}catch{}}}return""}var Rc={},gs=n.ReactDebugCurrentFrame;function ja(l){if(l){var d=l._owner,v=Xs(l.type,l._source,d?d.type:null);gs.setExtraStackFrame(v)}else gs.setExtraStackFrame(null)}function vs(l,d,v,x,I){{var B=Function.call.bind(K);for(var Y in l)if(B(l,Y)){var re=void 0;try{if(typeof l[Y]!="function"){var be=Error((x||"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 be.name="Invariant Violation",be}re=l[Y](d,Y,x,v,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(We){re=We}re&&!(re instanceof Error)&&(ja(I),i("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",x||"React class",v,Y,typeof re),ja(null)),re instanceof Error&&!(re.message in Rc)&&(Rc[re.message]=!0,ja(I),i("Failed %s type: %s",v,re.message),ja(null))}}}var Ll;Ll={};var ms={};Object.freeze(ms);function Ks(l,d){{var v=l.contextTypes;if(!v)return ms;var x={};for(var I in v)x[I]=d[I];{var B=zt(l)||"Unknown";vs(v,x,"context",B)}return x}}function Ic(l,d,v,x){{if(typeof l.getChildContext!="function"){{var I=zt(d)||"Unknown";Ll[I]||(Ll[I]=!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.",I,I))}return v}var B=l.getChildContext();for(var Y in B)if(!(Y in x))throw new Error((zt(d)||"Unknown")+'.getChildContext(): key "'+Y+'" is not defined in childContextTypes.');{var re=zt(d)||"Unknown";vs(x,B,"child context",re)}return fn({},v,B)}}var Sn;Sn={};var qn=null,ia=null;function Mu(l){l.context._currentValue2=l.parentValue}function oa(l){l.context._currentValue2=l.value}function Fl(l,d){if(l!==d){Mu(l);var v=l.parent,x=d.parent;if(v===null){if(x!==null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.")}else{if(x===null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.");Fl(v,x)}oa(d)}}function mo(l){Mu(l);var d=l.parent;d!==null&&mo(d)}function aa(l){var d=l.parent;d!==null&&aa(d),oa(l)}function ys(l,d){Mu(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?Fl(v,d):ys(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?Fl(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?Fl(d,v):d.depth>v.depth?ys(d,v):yo(d,v),ia=v)}function bs(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 x=ia,I={parent:x,depth:x===null?0:x.depth+1,context:l,parentValue:v,value:d};return ia=I,I}function Zs(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 Ba(){return ia}function sa(l){var d=l._currentValue2;return d}function Lu(l){return l._reactInternals}function Ff(l,d){l._reactInternals=d}var Ac={},ws={},la,$a,Js,z,jo,Bo,Sr,$t,Nl;{la=new Set,$a=new Set,Js=new Set,Sr=new Set,z=new Set,$t=new Set,Nl=new Set;var Qs=new Set;Bo=function(l,d){if(!(l===null||typeof l=="function")){var v=d+"_"+l;Qs.has(v)||(Qs.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 jl(l,d){{var v=l.constructor,x=v&&zt(v)||"ReactClass",I=x+"."+d;if(Ac[I])return;i(`%s(...): Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.
|
|
74
|
+
|
|
75
|
+
Please check the code for the %s component.`,d,d,x),Ac[I]=!0}}var bo={isMounted:function(l){return!1},enqueueSetState:function(l,d,v){var x=Lu(l);x.queue===null?jl(l,"setState"):(x.queue.push(d),v!=null&&Bo(v,"setState"))},enqueueReplaceState:function(l,d,v){var x=Lu(l);x.replace=!0,x.queue=[d],v!=null&&Bo(v,"setState")},enqueueForceUpdate:function(l,d){var v=Lu(l);v.queue===null?jl(l,"forceUpdate"):d!=null&&Bo(d,"setState")}};function Fu(l,d,v,x,I){var B=v(I,x);jo(d,B);var Y=B==null?x:fn({},x,B);return Y}function Mc(l,d,v){var x=ms,I=l.contextType;if("contextType"in l){var B=I===null||I!==void 0&&I.$$typeof===De&&I._context===void 0;if(!B&&!Nl.has(l)){Nl.add(l);var Y="";I===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 I!="object"?Y=" However, it is set to a "+typeof I+".":I.$$typeof===Te?Y=" Did you accidentally pass the Context.Provider instead?":I._context!==void 0?Y=" Did you accidentally pass the Context.Consumer instead?":Y=" However, it is set to an object with keys {"+Object.keys(I).join(", ")+"}.",i("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",zt(l)||"Component",Y)}}typeof I=="object"&&I!==null?x=sa(I):x=v;var re=new l(d,x);{if(typeof l.getDerivedStateFromProps=="function"&&(re.state===null||re.state===void 0)){var be=zt(l)||"Component";la.has(be)||(la.add(be),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.",be,re.state===null?"null":"undefined",be))}if(typeof l.getDerivedStateFromProps=="function"||typeof re.getSnapshotBeforeUpdate=="function"){var We=null,Ze=null,it=null;if(typeof re.componentWillMount=="function"&&re.componentWillMount.__suppressDeprecationWarning!==!0?We="componentWillMount":typeof re.UNSAFE_componentWillMount=="function"&&(We="UNSAFE_componentWillMount"),typeof re.componentWillReceiveProps=="function"&&re.componentWillReceiveProps.__suppressDeprecationWarning!==!0?Ze="componentWillReceiveProps":typeof re.UNSAFE_componentWillReceiveProps=="function"&&(Ze="UNSAFE_componentWillReceiveProps"),typeof re.componentWillUpdate=="function"&&re.componentWillUpdate.__suppressDeprecationWarning!==!0?it="componentWillUpdate":typeof re.UNSAFE_componentWillUpdate=="function"&&(it="UNSAFE_componentWillUpdate"),We!==null||Ze!==null||it!==null){var St=zt(l)||"Component",tn=typeof l.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Js.has(St)||(Js.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,We!==null?`
|
|
81
|
+
`+We:"",Ze!==null?`
|
|
82
|
+
`+Ze:"",it!==null?`
|
|
83
|
+
`+it:""))}}}return re}function Lc(l,d,v){{var x=zt(d)||"Component",I=l.render;I||(d.prototype&&typeof d.prototype.render=="function"?i("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",x):i("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",x)),l.getInitialState&&!l.getInitialState.isReactClassApproved&&!l.state&&i("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",x),l.getDefaultProps&&!l.getDefaultProps.isReactClassApproved&&i("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",x),l.propTypes&&i("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",x),l.contextType&&i("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",x),l.contextTypes&&i("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",x),d.contextType&&d.contextTypes&&!$t.has(d)&&($t.add(d),i("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",x)),typeof l.componentShouldUpdate=="function"&&i("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",x),d.prototype&&d.prototype.isPureReactComponent&&typeof l.shouldComponentUpdate<"u"&&i("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",zt(d)||"A pure component"),typeof l.componentDidUnmount=="function"&&i("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",x),typeof l.componentDidReceiveProps=="function"&&i("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",x),typeof l.componentWillRecieveProps=="function"&&i("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",x),typeof l.UNSAFE_componentWillRecieveProps=="function"&&i("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",x);var B=l.props!==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.",x,x),l.defaultProps&&i("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",x,x),typeof l.getSnapshotBeforeUpdate=="function"&&typeof l.componentDidUpdate!="function"&&!$a.has(d)&&($a.add(d),i("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",zt(d))),typeof l.getDerivedStateFromProps=="function"&&i("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",x),typeof l.getDerivedStateFromError=="function"&&i("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",x),typeof d.getSnapshotBeforeUpdate=="function"&&i("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",x);var Y=l.state;Y&&(typeof Y!="object"||qr(Y))&&i("%s.state: must be set to an object or null",x),typeof l.getChildContext=="function"&&typeof d.childContextTypes!="object"&&i("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",x)}}function Fc(l,d){var v=d.state;if(typeof d.componentWillMount=="function"){if(d.componentWillMount.__suppressDeprecationWarning!==!0){var x=zt(l)||"Unknown";ws[x]||(r(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
84
|
+
|
|
85
|
+
* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.
|
|
86
|
+
|
|
87
|
+
Please update the following components: %s`,x),ws[x]=!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 Nf(l,d,v,x){if(l.queue!==null&&l.queue.length>0){var I=l.queue,B=l.replace;if(l.queue=null,l.replace=!1,B&&I.length===1)d.state=I[0];else{for(var Y=B?I[0]:d.state,re=!0,be=B?1:0;be<I.length;be++){var We=I[be],Ze=typeof We=="function"?We.call(d,Y,v,x):We;Ze!=null&&(re?(re=!1,Y=fn({},Y,Ze)):fn(Y,Ze))}d.state=Y}}else l.queue=null}function wo(l,d,v,x){Lc(l,d,v);var I=l.state!==void 0?l.state:null;l.updater=bo,l.props=v,l.state=I;var B={queue:[],replace:!1};Ff(l,B);var Y=d.contextType;if(typeof Y=="object"&&Y!==null?l.context=sa(Y):l.context=x,l.state===v){var re=zt(d)||"Component";Sr.has(re)||(Sr.add(re),i("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",re))}var be=d.getDerivedStateFromProps;typeof be=="function"&&(l.state=Fu(l,d,be,I,v)),typeof d.getDerivedStateFromProps!="function"&&typeof l.getSnapshotBeforeUpdate!="function"&&(typeof l.UNSAFE_componentWillMount=="function"||typeof l.componentWillMount=="function")&&(Fc(d,l),Nf(B,l,v,x))}var jf={id:1,overflow:""};function Bf(l){var d=l.overflow,v=l.id,x=v&~$f(v);return x.toString(32)+d}function Nu(l,d,v){var x=l.id,I=l.overflow,B=el(x)-1,Y=x&~(1<<B),re=v+1,be=el(d)+B;if(be>30){var We=B-B%5,Ze=(1<<We)-1,it=(Y&Ze).toString(32),St=Y>>We,tn=B-We,rr=el(d)+tn,Co=re<<tn,va=Co|St,Ji=it+I;return{id:1<<rr|va,overflow:Ji}}else{var Ps=re<<B,ef=Ps|Y,Ja=I;return{id:1<<be|ef,overflow:Ja}}}function el(l){return 32-$o(l)}function $f(l){return 1<<el(l)-1}var $o=Math.clz32?Math.clz32:Vf,ju=Math.log,Bl=Math.LN2;function Vf(l){var d=l>>>0;return d===0?32:31-(ju(d)/Bl|0)|0}function Hf(l,d){return l===d&&(l!==0||1/l===1/d)||l!==l&&d!==d}var Uf=typeof Object.is=="function"?Object.is:Hf,jr=null,Bu=null,$l=null,Xt=null,wi=!1,xs=!1,Va=0,Jt=null,ua=0,tl=25,ti=!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 ti&&i("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks"),jr}function $u(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(!Uf(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?$l===null?(wi=!1,$l=Xt=Br()):(wi=!0,Xt=$l):Xt.next===null?(wi=!1,Xt=Xt.next=Br()):(wi=!0,Xt=Xt.next),Xt}function Ha(l,d){jr=d,Bu=l,ti=!1,Va=0}function Nc(l,d,v,x){for(;xs;)xs=!1,Va=0,ua+=1,Xt=null,v=l(d,x);return Si(),v}function Vu(){var l=Va!==0;return l}function Si(){ti=!1,jr=null,Bu=null,xs=!1,$l=null,ua=0,Jt=null,Xt=null}function Hu(l){return ti&&i("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),sa(l)}function Ua(l){return xi="useContext",xo(),sa(l)}function $r(l,d){return typeof d=="function"?d(l):d}function Uu(l){return xi="useState",Wu($r,l)}function Wu(l,d,v){if(l!==$r&&(xi="useReducer"),jr=xo(),Xt=qi(),wi){var x=Xt.queue,I=x.dispatch;if(Jt!==null){var B=Jt.get(x);if(B!==void 0){Jt.delete(x);var Y=Xt.memoizedState,re=B;do{var be=re.action;ti=!0,Y=l(Y,be),ti=!1,re=re.next}while(re!==null);return Xt.memoizedState=Y,[Y,I]}}return[Xt.memoizedState,I]}else{ti=!0;var We;l===$r?We=typeof d=="function"?d():d:We=v!==void 0?v(d):d,ti=!1,Xt.memoizedState=We;var Ze=Xt.queue={last:null,dispatch:null},it=Ze.dispatch=Yu.bind(null,jr,Ze);return[Xt.memoizedState,it]}}function zu(l,d){jr=xo(),Xt=qi();var v=d===void 0?null:d;if(Xt!==null){var x=Xt.memoizedState;if(x!==null&&v!==null){var I=x[1];if($u(v,I))return x[0]}}ti=!0;var B=l();return ti=!1,Xt.memoizedState=[B,v],B}function Wa(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 Yu(l,d,v){if(ua>=tl)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(l===jr){xs=!0;var x={action:v,next:null};Jt===null&&(Jt=new Map);var I=Jt.get(d);if(I===void 0)Jt.set(d,x);else{for(var B=I;B.next!==null;)B=B.next;B.next=x}}}function jc(l,d){return zu(function(){return l},d)}function Vl(l,d,v){return xo(),d(l._source)}function Wf(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 Bc(l){return xo(),l}function fr(){throw new Error("startTransition cannot be called during server rendering.")}function Gu(){return xo(),[!1,fr]}function $c(){var l=Bu,d=Bf(l.treeContext),v=Ss;if(v===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var x=Va++;return wn(v,d,x)}function Ti(){}var Hl={readContext:Hu,useContext:Ua,useMemo:zu,useReducer:Wu,useRef:Wa,useState:Uu,useInsertionEffect:Ti,useLayoutEffect:ca,useCallback:jc,useImperativeHandle:Ti,useEffect:Ti,useDebugValue:Ti,useDeferredValue:Bc,useTransition:Gu,useId:$c,useMutableSource:Vl,useSyncExternalStore:Wf},Ss=null;function fa(l){Ss=l}function nl(l){try{var d="",v=l;do{switch(v.tag){case 0:d+=ps(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(x){return`
|
|
95
|
+
Error generating stack: `+x.message+`
|
|
96
|
+
`+x.stack}}var nr=n.ReactCurrentDispatcher,za=n.ReactDebugCurrentFrame,Ul=0,Ts=1,Wl=2,Cs=3,zl=4,So=0,Yl=1,Ya=2,Vc=12800;function rl(l){return console.error(l),null}function Es(){}function ks(l,d,v,x,I,B,Y,re,be){var We=[],Ze=new Set,it={destination:null,responseState:d,progressiveChunkSize:x===void 0?Vc:x,status:So,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:Ze,pingedTasks:We,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:I===void 0?rl:I,onAllReady:Es,onShellReady:Y===void 0?Es:Y,onShellError:Es,onFatalError:Es},St=Gl(it,0,null,v,!1,!1);St.parentFlushed=!0;var tn=Ga(it,l,null,St,Ze,ms,qn,jf);return We.push(tn),it}function qu(l,d){var v=l.pingedTasks;v.push(d),v.length===1&&s(function(){return tu(l)})}function Hc(l,d){return{id:Oi,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:d,errorDigest:null}}function Ga(l,d,v,x,I,B,Y,re){l.allPendingTasks++,v===null?l.pendingRootTasks++:v.pendingTasks++;var be={node:d,ping:function(){return qu(l,be)},blockedBoundary:v,blockedSegment:x,abortSet:I,legacyContext:B,context:Y,treeContext:re};return be.componentStack=null,I.add(be),be}function Gl(l,d,v,x,I,B){return{status:Ul,id:-1,index:d,parentFlushed:!1,chunks:[],children:[],formatContext:x,boundary:v,lastPushedText:I,textEmbedded:B}}var Vo=null;function ql(){return Vo===null||Vo.componentStack===null?"":nl(Vo.componentStack)}function Ho(l,d){l.componentStack={tag:0,parent:l.componentStack,type:d}}function il(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 ol(l,d){{var v;typeof d=="string"?v=d:d&&typeof d.message=="string"?v=d.message:v=String(d);var x=To||ql();To=null,l.errorMessage=v,l.errorComponentStack=x}}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 x=l.onFatalError;x(d),l.destination!==null?(l.status=Ya,P(l.destination,d)):(l.status=Yl,l.fatalError=d)}function Ds(l,d,v){Ho(d,"Suspense");var x=d.blockedBoundary,I=d.blockedSegment,B=v.fallback,Y=v.children,re=new Set,be=Hc(l,re),We=I.chunks.length,Ze=Gl(l,We,be,I.formatContext,!1,!1);I.children.push(Ze),I.lastPushedText=!1;var it=Gl(l,0,null,I.formatContext,!1,!1);it.parentFlushed=!0,d.blockedBoundary=be,d.blockedSegment=it;try{if(dr(l,d,Y),go(it.chunks,l.responseState,it.lastPushedText,it.textEmbedded),it.status=Ts,Ci(be,it),be.pendingTasks===0){Ki(d);return}}catch(tn){it.status=zl,be.forceClientRender=!0,be.errorDigest=da(l,tn),ol(be,tn)}finally{d.blockedBoundary=x,d.blockedSegment=I}var St=Ga(l,B,x,Ze,re,d.legacyContext,d.context,d.treeContext);St.componentStack=d.componentStack,l.pingedTasks.push(St),Ki(d)}function Xl(l,d,v,x){Ho(d,v);var I=d.blockedSegment,B=mi(I.chunks,v,x,l.responseState,I.formatContext);I.lastPushedText=!1;var Y=I.formatContext;I.formatContext=Ui(Y,v,x),dr(l,d,B),I.formatContext=Y,on(I.chunks,v),I.lastPushedText=!1,Ki(d)}function al(l){return l.prototype&&l.prototype.isReactComponent}function Os(l,d,v,x,I){var B={};Ha(d,B);var Y=v(x,I);return Nc(v,x,Y,I)}function Uc(l,d,v,x,I){var B=v.render();v.props!==I&&(Bt||i("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",zt(x)||"a component"),Bt=!0);{var Y=x.childContextTypes;if(Y!=null){var re=d.legacyContext,be=Ic(v,x,re,Y);d.legacyContext=be,Hr(l,d,B),d.legacyContext=re;return}}Hr(l,d,B)}function Xu(l,d,v,x){Xi(d,v);var I=Ks(v,d.legacyContext),B=Mc(v,x,I);wo(B,v,x,I),Uc(l,d,B,v,x),Ki(d)}var Ku={},qa={},Zu={},Kl={},Bt=!1,sl={},Ju=!1,Xa=!1,Zl=!1;function Wc(l,d,v,x){var I;if(I=Ks(v,d.legacyContext),il(d,v),v.prototype&&typeof v.prototype.render=="function"){var B=zt(v)||"Unknown";Ku[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),Ku[B]=!0)}var Y=Os(l,d,v,x,I),re=Vu();if(typeof Y=="object"&&Y!==null&&typeof Y.render=="function"&&Y.$$typeof===void 0){var be=zt(v)||"Unknown";qa[be]||(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.",be,be,be),qa[be]=!0)}if(typeof Y=="object"&&Y!==null&&typeof Y.render=="function"&&Y.$$typeof===void 0){{var We=zt(v)||"Unknown";qa[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),qa[We]=!0)}wo(Y,v,x,I),Uc(l,d,Y,v,x)}else if(zc(v),re){var Ze=d.treeContext,it=1,St=0;d.treeContext=Nu(Ze,it,St);try{Hr(l,d,Y)}finally{d.treeContext=Ze}}else Hr(l,d,Y);Ki(d)}function zc(l){{if(l&&l.childContextTypes&&i("%s(...): childContextTypes cannot be defined on a function component.",l.displayName||l.name||"Component"),l.defaultProps!==void 0){var d=zt(l)||"Unknown";sl[d]||(i("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",d),sl[d]=!0)}if(typeof l.getDerivedStateFromProps=="function"){var v=zt(l)||"Unknown";Kl[v]||(i("%s: Function components do not support getDerivedStateFromProps.",v),Kl[v]=!0)}if(typeof l.contextType=="object"&&l.contextType!==null){var x=zt(l)||"Unknown";Zu[x]||(i("%s: Function components do not support contextType.",x),Zu[x]=!0)}}}function ni(l,d){if(l&&l.defaultProps){var v=fn({},d),x=l.defaultProps;for(var I in x)v[I]===void 0&&(v[I]=x[I]);return v}return d}function Yc(l,d,v,x,I){il(d,v.render);var B=Os(l,d,v.render,x,I),Y=Vu();if(Y){var re=d.treeContext,be=1,We=0;d.treeContext=Nu(re,be,We);try{Hr(l,d,B)}finally{d.treeContext=re}}else Hr(l,d,B);Ki(d)}function Jl(l,d,v,x,I){var B=v.type,Y=ni(B,x);Vr(l,d,B,Y,I)}function Qu(l,d,v,x){v._context===void 0?v!==v.Consumer&&(Zl||(Zl=!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 I=x.children;typeof I!="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=I(B);Hr(l,d,Y)}function ec(l,d,v,x){var I=v._context,B=x.value,Y=x.children,re;re=d.context,d.context=bs(I,B),Hr(l,d,Y),d.context=Zs(I),re!==d.context&&i("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function Gc(l,d,v,x,I){Ho(d,"Lazy");var B=v._payload,Y=v._init,re=Y(B),be=ni(re,x);Vr(l,d,re,be,I),Ki(d)}function Vr(l,d,v,x,I){if(typeof v=="function")if(al(v)){Xu(l,d,v,x);return}else{Wc(l,d,v,x);return}if(typeof v=="string"){Xl(l,d,v,x);return}switch(v){case ot:case ft:case Q:case fe:case Fa:{Hr(l,d,x.children);return}case se:{Ho(d,"SuspenseList"),Hr(l,d,x.children),Ki(d);return}case ut:throw new Error("ReactDOMServer does not yet support scope components.");case ue:{Ds(l,d,x);return}}if(typeof v=="object"&&v!==null)switch(v.$$typeof){case Z:{Yc(l,d,v,x,I);return}case Me:{Jl(l,d,v,x,I);return}case Te:{ec(l,d,v,x);return}case De:{Qu(l,d,v,x);return}case Ve:{Gc(l,d,v,x);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"&&(Ju||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."),Ju=!0),l.entries===d&&(Xa||i("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Xa=!0)}function Hr(l,d,v){try{return qc(l,d,v)}catch(x){throw typeof x=="object"&&x!==null&&typeof x.then=="function"||(To=To!==null?To:ql()),x}}function qc(l,d,v){if(d.node=v,typeof v=="object"&&v!==null){switch(v.$$typeof){case Il:{var x=v,I=x.type,B=x.props,Y=x.ref;Vr(l,d,I,B,Y);return}case ds: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 Ve:{var re=v,be=re._payload,We=re._init,Ze;try{Ze=We(be)}catch(Ps){throw typeof Ps=="object"&&Ps!==null&&typeof Ps.then=="function"&&Ho(d,"Lazy"),Ps}Hr(l,d,Ze);return}}if(qr(v)){Ka(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);Ka(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=ei(d.blockedSegment.chunks,v,l.responseState,va.lastPushedText);return}if(typeof v=="number"){var Ji=d.blockedSegment;Ji.lastPushedText=ei(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 Ka(l,d,v){for(var x=v.length,I=0;I<x;I++){var B=d.treeContext;d.treeContext=Nu(B,x,I);try{dr(l,d,v[I])}finally{d.treeContext=B}}}function Xc(l,d,v){var x=d.blockedSegment,I=x.chunks.length,B=Gl(l,I,null,x.formatContext,x.lastPushedText,!0);x.children.push(B),x.lastPushedText=!1;var Y=Ga(l,d.node,d.blockedBoundary,B,d.abortSet,d.legacyContext,d.context,d.treeContext);d.componentStack!==null&&(Y.componentStack=d.componentStack.parent);var re=Y.ping;v.then(re,re)}function dr(l,d,v){var x=d.blockedSegment.formatContext,I=d.legacyContext,B=d.context,Y=null;Y=d.componentStack;try{return Hr(l,d,v)}catch(re){if(Si(),typeof re=="object"&&re!==null&&typeof re.then=="function"){Xc(l,d,re),d.blockedSegment.formatContext=x,d.legacyContext=I,d.context=B,No(B),d.componentStack=Y;return}else throw d.blockedSegment.formatContext=x,d.legacyContext=I,d.context=B,No(B),d.componentStack=Y,re}}function Kc(l,d,v,x){var I=da(l,x);if(d===null?Zi(l,x):(d.pendingTasks--,d.forceClientRender||(d.forceClientRender=!0,d.errorDigest=I,ol(d,x),d.parentFlushed&&l.clientRenderedBoundaries.push(d))),l.allPendingTasks--,l.allPendingTasks===0){var B=l.onAllReady;B()}}function Ql(l){var d=this,v=l.blockedBoundary,x=l.blockedSegment;x.status=Cs,Zc(d,v,x)}function eu(l,d,v){var x=l.blockedBoundary,I=l.blockedSegment;if(I.status=Cs,x===null)d.allPendingTasks--,d.status!==Ya&&(d.status=Ya,d.destination!==null&&g(d.destination));else{if(x.pendingTasks--,!x.forceClientRender){x.forceClientRender=!0;var B=v===void 0?new Error("The render was aborted by the server without a reason."):v;x.errorDigest=d.onError(B);{var Y="The server did not finish this Suspense boundary: ";B&&typeof B.message=="string"?B=Y+B.message:B=Y+String(B);var re=Vo;Vo=l;try{ol(x,B)}finally{Vo=re}}x.parentFlushed&&d.clientRenderedBoundaries.push(x)}if(x.fallbackAbortableTasks.forEach(function(We){return eu(We,d,v)}),x.fallbackAbortableTasks.clear(),d.allPendingTasks--,d.allPendingTasks===0){var be=d.onAllReady;be()}}}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===Ts&&Ci(l,v)}else{var x=l.completedSegments;x.push(d)}}function Zc(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=Es;var x=l.onShellReady;x()}}else if(d.pendingTasks--,!d.forceClientRender){if(d.pendingTasks===0)v.parentFlushed&&v.status===Ts&&Ci(d,v),d.parentFlushed&&l.completedBoundaries.push(d),d.fallbackAbortableTasks.forEach(Ql,l),d.fallbackAbortableTasks.clear();else if(v.parentFlushed&&v.status===Ts){Ci(d,v);var I=d.completedSegments;I.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===Ul){No(d.context);var x=null;x=Vo,Vo=d;try{Hr(l,d,d.node),go(v.chunks,l.responseState,v.lastPushedText,v.textEmbedded),d.abortSet.delete(d),v.status=Ts,Zc(l,d.blockedBoundary,v)}catch(B){if(Si(),typeof B=="object"&&B!==null&&typeof B.then=="function"){var I=d.ping;B.then(I,I)}else d.abortSet.delete(d),v.status=zl,Kc(l,d.blockedBoundary,v,B)}finally{Vo=x}}}function tu(l){if(l.status!==Ya){var d=Ba(),v=nr.current;nr.current=Hl;var x;x=za.getCurrentStack,za.getCurrentStack=ql;var I=Ss;fa(l.responseState);try{var B=l.pingedTasks,Y;for(Y=0;Y<B.length;Y++){var re=B[Y];pa(l,re)}B.splice(0,Y),l.destination!==null&&nu(l,l.destination)}catch(be){da(l,be),Zi(l,be)}finally{fa(I),nr.current=v,za.getCurrentStack=x,v===Hl&&No(d)}}}function ga(l,d,v){switch(v.parentFlushed=!0,v.status){case Ul:{var x=v.id=l.nextSegmentId++;return v.lastPushedText=!1,v.textEmbedded=!1,Jr(d,l.responseState,x)}case Ts:{v.status=Wl;for(var I=!0,B=v.chunks,Y=0,re=v.children,be=0;be<re.length;be++){for(var We=re[be];Y<We.index;Y++)f(d,B[Y]);I=Za(l,d,We)}for(;Y<B.length-1;Y++)f(d,B[Y]);return Y<B.length&&(I=p(d,B[Y])),I}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function Za(l,d,v){var x=v.boundary;if(x===null)return ga(l,d,v);if(x.parentFlushed=!0,x.forceClientRender)return _u(d,l.responseState,x.errorDigest,x.errorMessage,x.errorComponentStack),ga(l,d,v),vo(d,l.responseState);if(x.pendingTasks>0){x.rootSegmentID=l.nextSegmentId++,x.completedSegments.length>0&&l.partialBoundaries.push(x);var I=x.id=sr(l.responseState);return h(d,l.responseState,I),ga(l,d,v),O(d,l.responseState)}else{if(x.byteSize>l.progressiveChunkSize)return x.rootSegmentID=l.nextSegmentId++,l.completedBoundaries.push(x),h(d,l.responseState,x.id),ga(l,d,v),O(d,l.responseState);Ys(d,l.responseState);var B=x.completedSegments;if(B.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var Y=B[0];return Za(l,d,Y),fs(d,l.responseState)}}function zf(l,d,v){return Qr(d,l.responseState,v.id,v.errorDigest,v.errorMessage,v.errorComponentStack)}function tc(l,d,v){return ho(d,l.responseState,v.formatContext,v.id),Za(l,d,v),xr(d,v.formatContext)}function ll(l,d,v){for(var x=v.completedSegments,I=0;I<x.length;I++){var B=x[I];nc(l,d,v,B)}return x.length=0,Mn(d,l.responseState,v.id,v.rootSegmentID)}function ul(l,d,v){for(var x=v.completedSegments,I=0;I<x.length;I++){var B=x[I];if(!nc(l,d,v,B))return I++,x.splice(0,I),!1}return x.splice(0,I),!0}function nc(l,d,v,x){if(x.status===Wl)return!0;var I=x.id;if(I===-1){var B=x.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 tc(l,d,x)}else return tc(l,d,x),Ke(d,l.responseState,I)}function nu(l,d){try{var v=l.completedRootSegment;v!==null&&l.pendingRootTasks===0&&(Za(l,d,v),l.completedRootSegment=null,qt(d,l.responseState));var x=l.clientRenderedBoundaries,I;for(I=0;I<x.length;I++){var B=x[I];if(!zf(l,d,B)){l.destination=null,I++,x.splice(0,I);return}}x.splice(0,I);var Y=l.completedBoundaries;for(I=0;I<Y.length;I++){var re=Y[I];if(!ll(l,d,re)){l.destination=null,I++,Y.splice(0,I);return}}Y.splice(0,I);var be=l.partialBoundaries;for(I=0;I<be.length;I++){var We=be[I];if(!ul(l,d,We)){l.destination=null,I++,be.splice(0,I);return}}be.splice(0,I);var Ze=l.completedBoundaries;for(I=0;I<Ze.length;I++){var it=Ze[I];if(!ll(l,d,it)){l.destination=null,I++,Ze.splice(0,I);return}}Ze.splice(0,I)}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 rc(l){s(function(){return tu(l)})}function Jc(l,d){if(l.status===Yl){l.status=Ya,P(d,l.fatalError);return}if(l.status!==Ya&&l.destination===null){l.destination=d;try{nu(l,d)}catch(v){da(l,v),Zi(l,v)}}}function Ur(l,d){try{var v=l.abortableTasks;v.forEach(function(x){return eu(x,l,d)}),v.clear(),l.destination!==null&&nu(l,l.destination)}catch(x){da(l,x),Zi(l,x)}}function Ii(){}function Qc(l,d,v,x){var I=!1,B=null,Y="",re={push:function(it){return it!==null&&(Y+=it),!0},destroy:function(it){I=!0,B=it}},be=!1;function We(){be=!0}var Ze=ks(l,cs(v,d?d.identifierPrefix:void 0),na(),1/0,Ii,void 0,We);if(rc(Ze),Ur(Ze,x),Jc(Ze,re),I)throw B;if(!be)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 Yf(l,d){return Qc(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 cl(l,d){return Qc(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.")}dc.renderToNodeStream=_s,dc.renderToStaticMarkup=cl,dc.renderToStaticNodeStream=m,dc.renderToString=Yf,dc.version=t}()),dc}var Bh={};/**
|
|
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 f1;function L4(){return f1||(f1=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,x=v.getStackAddendum();x!==""&&(l+="%s",d=d.concat([x]));var I=d.map(function(B){return String(B)});I.unshift("Warning: "+l),Function.prototype.apply.call(console[m],console,I)}}function s(m){m()}var c=512,f=null,p=0;function y(m){f=new Uint8Array(c),p=0}function g(m,l){if(l.length!==0){if(l.length>c){p>0&&(m.enqueue(new Uint8Array(f.buffer,0,p)),f=new Uint8Array(c),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(c),p=0),f.set(d,p),p+=d.length}}function S(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 P(m){m.close()}var A=new TextEncoder;function M(m){return A.encode(m)}function R(m){return A.encode(m)}function V(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 J(m){try{return K(m),!1}catch{return!0}}function K(m){return""+m}function le(m,l){if(J(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)),K(m)}function T(m,l){if(J(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)),K(m)}function he(m){if(J(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)),K(m)}var oe=Object.prototype.hasOwnProperty,ze=0,je=1,Pe=2,Be=3,He=4,ce=5,Se=6,Ie=":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=Ie+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",tt=new RegExp("^["+Ie+"]["+Ge+"]*$"),we={},Ee={};function Ue(m){return oe.call(Ee,m)?!0:oe.call(we,m)?!1:tt.test(m)?(Ee[m]=!0,!0):(we[m]=!0,i("Invalid attribute name: `%s`",m),!1)}function $e(m,l,d,v){if(d!==null&&d.type===ze)return!1;switch(typeof l){case"function":case"symbol":return!0;case"boolean":{if(d!==null)return!d.acceptsBooleans;var x=m.toLowerCase().slice(0,5);return x!=="data-"&&x!=="aria-"}default:return!1}}function ke(m){return Ne.hasOwnProperty(m)?Ne[m]:null}function _e(m,l,d,v,x,I,B){this.acceptsBooleans=l===Pe||l===Be||l===He,this.attributeName=v,this.attributeNamespace=x,this.mustUseProperty=d,this.propertyName=m,this.type=l,this.sanitizeURL=I,this.removeEmptyString=B}var Ne={},rt=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];rt.forEach(function(m){Ne[m]=new _e(m,ze,!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];Ne[l]=new _e(l,je,!1,d,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(m){Ne[m]=new _e(m,Pe,!1,m.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(m){Ne[m]=new _e(m,Pe,!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){Ne[m]=new _e(m,Be,!1,m.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(m){Ne[m]=new _e(m,Be,!0,m,null,!1,!1)}),["capture","download"].forEach(function(m){Ne[m]=new _e(m,He,!1,m,null,!1,!1)}),["cols","rows","size","span"].forEach(function(m){Ne[m]=new _e(m,Se,!1,m,null,!1,!1)}),["rowSpan","start"].forEach(function(m){Ne[m]=new _e(m,ce,!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);Ne[l]=new _e(l,je,!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);Ne[l]=new _e(l,je,!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);Ne[l]=new _e(l,je,!1,m,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(m){Ne[m]=new _e(m,je,!1,m.toLowerCase(),null,!1,!1)});var lt="xlinkHref";Ne[lt]=new _e("xlinkHref",je,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(m){Ne[m]=new _e(m,je,!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(oe.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 x=l.toLowerCase(),I=Un.hasOwnProperty(x)?x:null;if(I==null)return Cn[l]=!0,!1;if(l!==I)return i("Unknown ARIA attribute `%s`. Did you mean `%s`?",l,I),Cn[l]=!0,!0}}return!0}function sn(m,l){{var d=[];for(var v in l){var x=Zn(m,v);x||d.push(v)}var I=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",I,m):d.length>1&&i("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",I,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 On={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(oe.call(an,l)&&an[l])return!0;var x=l.toLowerCase();if(x==="onfocusin"||x==="onfocusout")return i("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),an[l]=!0,!0;if(v!=null){var I=v.registrationNameDependencies,B=v.possibleRegistrationNames;if(I.hasOwnProperty(l))return!0;var Y=B.hasOwnProperty(x)?B[x]:null;if(Y!=null)return i("Invalid event handler property `%s`. Did you mean `%s`?",l,Y),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(x==="innerhtml")return i("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),an[l]=!0,!0;if(x==="aria")return i("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),an[l]=!0,!0;if(x==="is"&&d!==null&&d!==void 0&&typeof d!="string")return i("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof d),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 re=ke(l),be=re!==null&&re.type===ze;if(On.hasOwnProperty(x)){var We=On[x];if(We!==l)return i("Invalid DOM property `%s`. Did you mean `%s`?",l,We),an[l]=!0,!0}else if(!be&&l!==x)return i("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",l,x),an[l]=!0,!0;return typeof d=="boolean"&&$e(l,d,re)?(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):be?!0:$e(l,d,re)?(an[l]=!0,!1):((d==="false"||d==="true")&&re!==null&&re.type===Be&&(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 x in l){var I=ai(m,x,l[x],d);I||v.push(x)}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 Dr(m,l,d){gr(m,l)||jn(m,l,d)}var vr=function(){};{var zr=/^(?:webkit|moz|o)[A-Z]/,Yr=/^-ms-/,Po=/-(.)/g,Wn=/;\s*$/,Gr={},Jn={},Wt=!1,si=!1,Hi=function(m){return m.replace(Po,function(l,d){return d.toUpperCase()})},_n=function(m){Gr.hasOwnProperty(m)&&Gr[m]||(Gr[m]=!0,i("Unsupported style property %s. Did you mean %s?",m,Hi(m.replace(Yr,"ms-"))))},pn=function(m){Gr.hasOwnProperty(m)&&Gr[m]||(Gr[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?_n(m):zr.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){he(m);var l=""+m,d=mr.exec(l);if(!d)return l;var v,x="",I,B=0;for(I=d.index;I<l.length;I++){switch(l.charCodeAt(I)){case 34:v=""";break;case 38:v="&";break;case 39:v="'";break;case 60:v="<";break;case 62:v=">";break;default:continue}B!==I&&(x+=l.substring(B,I)),B=I+1,x+=v}return B!==I?x+l.substring(B,I):x}function ln(m){return typeof m=="boolean"||typeof m=="number"?""+m:ci(m)}var ki=/([A-Z])/g,Ra=/^ms-/;function Ia(m){return m.replace(ki,"-$1").toLowerCase().replace(Ra,"-ms-")}var qr=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,ao=!1;function so(m){!ao&&qr.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 Di=Array.isArray;function Qn(m){return Di(m)}var Or=R("<script>"),_r=R("<\/script>"),fi=R('<script src="'),Xr=R('<script type="module" src="'),yr=R('" async=""><\/script>');function Pr(m){return he(m),(""+m).replace(er,Ui)}var er=/(<\/|<)(s)(cript)/gi,Ui=function(m,l,d,v){return""+l+(d==="s"?"\\u0073":"\\u0053")+v};function Oi(m,l,d,v,x){var I=m===void 0?"":m,B=l===void 0?Or:R('<script nonce="'+ln(l)+'">'),Y=[];if(d!==void 0&&Y.push(B,M(Pr(d)),_r),v!==void 0)for(var re=0;re<v.length;re++)Y.push(fi,M(ln(v[re])),yr);if(x!==void 0)for(var be=0;be<x.length;be++)Y.push(Xr,M(ln(x[be])),yr);return{bootstrapChunks:Y,startInlineScript:B,placeholderPrefix:R(I+"P:"),segmentPrefix:R(I+"S:"),boundaryPrefix:I+"B:",idPrefix:I,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var sr=0,wn=1,Rr=2,Ir=3,di=4,hi=5,br=6,Kr=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(Kr,null);case"tr":return zn(br,null)}return m.insertionMode>=di||m.insertionMode===sr?zn(wn,null):m}var _i=null;function rn(m){var l=m.nextSuspenseID++;return R(m.boundaryPrefix+l.toString(16))}function Bn(m,l,d){var v=m.idPrefix,x=":"+v+"R"+l;return d>0&&(x+="H"+d.toString(32)),x+":"}function kn(m){return ln(m)}var lo=R("<!-- -->");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=R(ln(Ia(m)));return k.set(m,d),d}var G=R(' style="'),te=R(":"),Ce=R(";");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 x in d)if(oe.call(d,x)){var I=d[x];if(!(I==null||typeof I=="boolean"||I==="")){var B=void 0,Y=void 0,re=x.indexOf("--")===0;re?(B=M(ln(x)),T(I,x),Y=M(ln((""+I).trim()))):(oo(x,I),B=N(x),typeof I=="number"?I!==0&&!oe.call(mt,x)?Y=M(I+"px"):Y=M(""+I):(T(I,x),Y=M(ln((""+I).trim())))),v?(v=!1,m.push(G,B,te,Y)):m.push(Ce,B,te,Y)}}v||m.push(vt)}var Re=R(" "),Je=R('="'),vt=R('"'),yt=R('=""');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 x=ke(d);if(x!==null){switch(typeof v){case"function":case"symbol":return;case"boolean":if(!x.acceptsBooleans)return}var I=x.attributeName,B=M(I);switch(x.type){case Be:v&&m.push(Re,B,yt);return;case He:v===!0?m.push(Re,B,yt):v===!1||m.push(Re,B,Je,M(ln(v)),vt);return;case ce:isNaN(v)||m.push(Re,B,Je,M(ln(v)),vt);break;case Se:!isNaN(v)&&v>=1&&m.push(Re,B,Je,M(ln(v)),vt);break;default:x.sanitizeURL&&(le(v,I),v=""+v,so(v)),m.push(Re,B,Je,M(ln(v)),vt)}}else if(Ue(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),Je,M(ln(v)),vt)}}}var Nt=R(">"),$n=R("/>");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&&(he(v),m.push(M(""+v)))}}var Dn=!1,Zr=!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 Us(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,x=null;for(var I in l)if(oe.call(l,I)){var B=l[I];if(B==null)continue;switch(I){case"children":v=B;break;case"dangerouslySetInnerHTML":x=B;break;case"defaultValue":case"value":break;default:pt(m,d,I,B);break}}return m.push(Nt),Yn(m,x,v),v}function Aa(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=R(' selected=""');function wr(m,l,d,v){var x=v.selectedValue;m.push(ur("option"));var I=null,B=null,Y=null,re=null;for(var be in l)if(oe.call(l,be)){var We=l[be];if(We==null)continue;switch(be){case"children":I=We;break;case"selected":Y=We,Ar||(i("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Ar=!0);break;case"dangerouslySetInnerHTML":re=We;break;case"value":B=We;default:pt(m,d,be,We);break}}if(x!=null){var Ze;if(B!==null?(le(B,"value"),Ze=""+B):(re!==null&&(zi||(zi=!0,i("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),Ze=Aa(I)),Qn(x))for(var it=0;it<x.length;it++){le(x[it],"value");var St=""+x[it];if(St===Ze){m.push(Qo);break}}else le(x,"select.value"),""+x===Ze&&m.push(Qo)}else Y&&m.push(Qo);return m.push(Nt),Yn(m,re,I),I}function Ws(m,l,d){Hn("input",l),l.checked!==void 0&&l.defaultChecked!==void 0&&!Zr&&(i("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",l.type),Zr=!0),l.value!==void 0&&l.defaultValue!==void 0&&!Dn&&(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),Dn=!0),m.push(ur("input"));var v=null,x=null,I=null,B=null;for(var Y in l)if(oe.call(l,Y)){var re=l[Y];if(re==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=re;break;case"defaultValue":x=re;break;case"checked":I=re;break;case"value":v=re;break;default:pt(m,d,Y,re);break}}return I!==null?pt(m,d,"checked",I):B!==null&&pt(m,d,"checked",B),v!==null?pt(m,d,"value",v):x!==null&&pt(m,d,"value",x),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,x=null,I=null;for(var B in l)if(oe.call(l,B)){var Y=l[B];if(Y==null)continue;switch(B){case"children":I=Y;break;case"value":v=Y;break;case"defaultValue":x=Y;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:pt(m,d,B,Y);break}}if(v===null&&x!==null&&(v=x),m.push(Nt),I!=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(I)){if(I.length>1)throw new Error("<textarea> can only have at most one child.");he(I[0]),v=""+I[0]}he(I),v=""+I}return typeof v=="string"&&v[0]===`
|
|
105
|
+
`&&m.push(Pi),v!==null&&(le(v,"value"),m.push(M(kn(""+v)))),null}function Ma(m,l,d,v){m.push(ur(d));for(var x in l)if(oe.call(l,x)){var I=l[x];if(I==null)continue;switch(x){case"children":case"dangerouslySetInnerHTML":throw new Error(d+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:pt(m,v,x,I);break}}return m.push($n),null}function ea(m,l,d){m.push(ur("menuitem"));for(var v in l)if(oe.call(l,v)){var x=l[v];if(x==null)continue;switch(v){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:pt(m,d,v,x);break}}return m.push(Nt),null}function on(m,l,d){m.push(ur("title"));var v=null;for(var x in l)if(oe.call(l,x)){var I=l[x];if(I==null)continue;switch(x){case"children":v=I;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:pt(m,d,x,I);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 x=null,I=null;for(var B in l)if(oe.call(l,B)){var Y=l[B];if(Y==null)continue;switch(B){case"children":x=Y;break;case"dangerouslySetInnerHTML":I=Y;break;default:pt(m,v,B,Y);break}}return m.push(Nt),Yn(m,I,x),typeof x=="string"?(m.push(M(kn(x))),null):x}function Zt(m,l,d,v){m.push(ur(d));var x=null,I=null;for(var B in l)if(oe.call(l,B)){var Y=l[B];if(Y==null)continue;switch(B){case"children":x=Y;break;case"dangerouslySetInnerHTML":I=Y;break;case"style":ge(m,v,Y);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:Ue(B)&&typeof Y!="function"&&typeof Y!="symbol"&&m.push(Re,M(B),Je,M(ln(Y)),vt);break}}return m.push(Nt),Yn(m,I,x),x}var Pi=R(`
|
|
106
|
+
`);function Jr(m,l,d,v){m.push(ur(d));var x=null,I=null;for(var B in l)if(oe.call(l,B)){var Y=l[B];if(Y==null)continue;switch(B){case"children":x=Y;break;case"dangerouslySetInnerHTML":I=Y;break;default:pt(m,v,B,Y);break}}if(m.push(Nt),I!=null){if(x!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof I!="object"||!("__html"in I))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 re=I.__html;re!=null&&(typeof re=="string"&&re.length>0&&re[0]===`
|
|
107
|
+
`?m.push(Pi,M(re)):(he(re),m.push(M(""+re))))}return typeof x=="string"&&x[0]===`
|
|
108
|
+
`&&m.push(Pi),x}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=R("<"+m),yi.set(m,l)}return l}var La=R("<!DOCTYPE html>");function uo(m,l,d,v,x){switch(dn(l,d),dt(l,d),Dr(l,d,null),!d.suppressContentEditableWarning&&d.contentEditable&&d.children!=null&&i("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),x.insertionMode!==Rr&&x.insertionMode!==Ir&&l.indexOf("-")===-1&&typeof d.is!="string"&&l.toLowerCase()!==l&&i("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",l),l){case"select":return Us(m,d,v);case"option":return wr(m,d,v,x);case"textarea":return mi(m,d,v);case"input":return Ws(m,d,v);case"menuitem":return ea(m,d,v);case"title":return on(m,d,v);case"listing":case"pre":return Jr(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 Ma(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 x.insertionMode===sr&&m.push(La),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 ss=R("</"),un=R(">");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(ss,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?S(m,d[v]):!0}var ls=R('<template id="'),co=R('"></template>');function cr(m,l,d){g(m,ls),g(m,l.placeholderPrefix);var v=M(d.toString(16));return g(m,v),S(m,co)}var h=R("<!--$-->"),b=R('<!--$?--><template id="'),E=R('"></template>'),O=R("<!--$!-->"),F=R("<!--/$-->"),j=R("<template"),H=R('"'),ae=R(' data-dgst="'),ne=R(' data-msg="'),pe=R(' data-stck="'),Oe=R("></template>");function Ae(m,l){return S(m,h)}function xe(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),S(m,E)}function Ye(m,l,d,v,x){var I;return I=S(m,O),g(m,j),d&&(g(m,ae),g(m,M(ln(d))),g(m,H)),v&&(g(m,ne),g(m,M(ln(v))),g(m,H)),x&&(g(m,pe),g(m,M(ln(x))),g(m,H)),I=S(m,Oe),I}function st(m,l){return S(m,F)}function Ct(m,l){return S(m,F)}function kt(m,l){return S(m,F)}var In=R('<div hidden id="'),cn=R('">'),Mr=R("</div>"),Lr=R('<svg aria-hidden="true" style="display:none" id="'),Ft=R('">'),Fr=R("</svg>"),jt=R('<math aria-hidden="true" style="display:none" id="'),en=R('">'),fo=R("</math>"),ho=R('<table hidden id="'),xr=R('">'),D=R("</table>"),L=R('<table hidden><tbody id="'),W=R('">'),ee=R("</tbody></table>"),me=R('<table hidden><tr id="'),ye=R('">'),Le=R("</tr></table>"),Ke=R('<table hidden><colgroup id="'),gt=R('">'),Pt=R("</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))),S(m,cn);case Rr:return g(m,Lr),g(m,l.segmentPrefix),g(m,M(v.toString(16))),S(m,Ft);case Ir:return g(m,jt),g(m,l.segmentPrefix),g(m,M(v.toString(16))),S(m,en);case di:return g(m,ho),g(m,l.segmentPrefix),g(m,M(v.toString(16))),S(m,xr);case hi:return g(m,L),g(m,l.segmentPrefix),g(m,M(v.toString(16))),S(m,W);case br:return g(m,me),g(m,l.segmentPrefix),g(m,M(v.toString(16))),S(m,ye);case Kr:return g(m,Ke),g(m,l.segmentPrefix),g(m,M(v.toString(16))),S(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 S(m,Mr);case Rr:return S(m,Fr);case Ir:return S(m,fo);case di:return S(m,D);case hi:return S(m,ee);case br:return S(m,Le);case Kr:return S(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=R(Mn+';$RS("'),us=R('$RS("'),po=R('","'),Qr=R('")<\/script>');function zs(m,l,d){g(m,l.startInlineScript),l.sentCompleteSegmentFunction?g(m,us):(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),S(m,Qr)}var Ri=R(xn+';$RC("'),cs=R('$RC("'),na=R('","'),ei=R('")<\/script>');function go(m,l,d,v){if(g(m,l.startInlineScript),l.sentCompleteBoundaryFunction?g(m,cs):(l.sentCompleteBoundaryFunction=!0,g(m,Ri)),d===null)throw new Error("An ID must have been assigned before we can complete the boundary.");var x=M(v.toString(16));return g(m,d),g(m,na),g(m,l.segmentPrefix),g(m,x),S(m,ei)}var Ys=R(Vn+';$RX("'),_u=R('$RX("'),fs=R('"'),vo=R(")<\/script>"),fn=R(",");function Il(m,l,d,v,x,I){if(g(m,l.startInlineScript),l.sentClientRenderFunction?g(m,_u):(l.sentClientRenderFunction=!0,g(m,Ys)),d===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return g(m,d),g(m,fs),(v||x||I)&&(g(m,fn),g(m,M(Fa(v||"")))),(x||I)&&(g(m,fn),g(m,M(Fa(x||"")))),I&&(g(m,fn),g(m,M(Fa(I)))),S(m,vo)}var ds=/[<\u2028\u2029]/g;function Fa(m){var l=JSON.stringify(m);return l.replace(ds,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 Q=Object.assign,fe=Symbol.for("react.element"),Te=Symbol.for("react.portal"),De=Symbol.for("react.fragment"),Z=Symbol.for("react.strict_mode"),ue=Symbol.for("react.profiler"),se=Symbol.for("react.provider"),Me=Symbol.for("react.context"),Ve=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 Dt(m,l,d){var v=m.displayName;if(v)return v;var x=l.displayName||l.name||"";return x!==""?d+"("+x+")":d}function Pu(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 De:return"Fragment";case Te:return"Portal";case ue:return"Profiler";case Z:return"StrictMode";case ut:return"Suspense";case ft:return"SuspenseList"}if(typeof m=="object")switch(m.$$typeof){case Me:var l=m;return Pu(l)+".Consumer";case se:var d=m;return Pu(d._context)+".Provider";case Ve:return Dt(m,m.render,"ForwardRef");case ot:var v=m.displayName||null;return v!==null?v:gn(m.type)||"Memo";case Mt:{var x=m,I=x._payload,B=x._init;try{return gn(B(I))}catch{return null}}}return null}var Ao=0,Ru,Iu,Au,hs,Mo,Gs,qs;function Na(){}Na.__reactDisabledLog=!0;function ps(){{if(Ao===0){Ru=console.log,Iu=console.info,Au=console.warn,hs=console.error,Mo=console.group,Gs=console.groupCollapsed,qs=console.groupEnd;var m={configurable:!0,enumerable:!0,value:Na,writable:!0};Object.defineProperties(console,{info:m,log:m,warn:m,error:m,group:m,groupCollapsed:m,groupEnd:m})}Ao++}}function Al(){{if(Ao--,Ao===0){var m={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Q({},m,{value:Ru}),info:Q({},m,{value:Iu}),warn:Q({},m,{value:Au}),error:Q({},m,{value:hs}),group:Q({},m,{value:Mo}),groupCollapsed:Q({},m,{value:Gs}),groupEnd:Q({},m,{value:qs})})}Ao<0&&i("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Lo=n.ReactCurrentDispatcher,Ml;function Gi(m,l,d){{if(Ml===void 0)try{throw Error()}catch(x){var v=x.stack.trim().match(/\n( *(at )?)/);Ml=v&&v[1]||""}return`
|
|
109
|
+
`+Ml+m}}var Fo=!1,ra;{var Lf=typeof WeakMap=="function"?WeakMap:Map;ra=new Lf}function Xs(m,l){if(!m||Fo)return"";{var d=ra.get(m);if(d!==void 0)return d}var v;Fo=!0;var x=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var I;I=Lo.current,Lo.current=null,ps();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
|
+
`),re=v.stack.split(`
|
|
111
|
+
`),be=Y.length-1,We=re.length-1;be>=1&&We>=0&&Y[be]!==re[We];)We--;for(;be>=1&&We>=0;be--,We--)if(Y[be]!==re[We]){if(be!==1||We!==1)do if(be--,We--,We<0||Y[be]!==re[We]){var Ze=`
|
|
112
|
+
`+Y[be].replace(" at new "," at ");return m.displayName&&Ze.includes("<anonymous>")&&(Ze=Ze.replace("<anonymous>",m.displayName)),typeof m=="function"&&ra.set(m,Ze),Ze}while(be>=1&&We>=0);break}}}finally{Fo=!1,Lo.current=I,Al(),Error.prepareStackTrace=x}var it=m?m.displayName||m.name:"",St=it?Gi(it):"";return typeof m=="function"&&ra.set(m,St),St}function Rc(m,l,d){return Xs(m,!0)}function gs(m,l,d){return Xs(m,!1)}function ja(m){var l=m.prototype;return!!(l&&l.isReactComponent)}function vs(m,l,d){if(m==null)return"";if(typeof m=="function")return Xs(m,ja(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 Ve:return gs(m.render);case ot:return vs(m.type,l,d);case Mt:{var v=m,x=v._payload,I=v._init;try{return vs(I(x),l,d)}catch{}}}return""}var Ll={},ms=n.ReactDebugCurrentFrame;function Ks(m){if(m){var l=m._owner,d=vs(m.type,m._source,l?l.type:null);ms.setExtraStackFrame(d)}else ms.setExtraStackFrame(null)}function Ic(m,l,d,v,x){{var I=Function.call.bind(oe);for(var B in m)if(I(m,B)){var Y=void 0;try{if(typeof m[B]!="function"){var re=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 re.name="Invariant Violation",re}Y=m[B](l,B,v,d,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(be){Y=be}Y&&!(Y instanceof Error)&&(Ks(x),i("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",v||"React class",d,B,typeof Y),Ks(null)),Y instanceof Error&&!(Y.message in Ll)&&(Ll[Y.message]=!0,Ks(x),i("Failed %s type: %s",d,Y.message),Ks(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 x in d)v[x]=l[x];{var I=gn(m)||"Unknown";Ic(d,v,"context",I)}return v}}function Mu(m,l,d,v){{if(typeof m.getChildContext!="function"){{var x=gn(l)||"Unknown";Sn[x]||(Sn[x]=!0,i("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",x,x))}return d}var I=m.getChildContext();for(var B in I)if(!(B in v))throw new Error((gn(l)||"Unknown")+'.getChildContext(): key "'+B+'" is not defined in childContextTypes.');{var Y=gn(l)||"Unknown";Ic(v,I,"child context",Y)}return Q({},d,I)}}var oa;oa={};var Fl=null,mo=null;function aa(m){m.context._currentValue=m.parentValue}function ys(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)}ys(l)}}function No(m){aa(m);var l=m.parent;l!==null&&No(l)}function bs(m){var l=m.parent;l!==null&&bs(l),ys(m)}function Zs(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):Zs(d,l)}function Ba(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):Ba(m,d),ys(l)}function sa(m){var l=mo,d=m;l!==d&&(l===null?bs(d):d===null?No(l):l.depth===d.depth?yo(l,d):l.depth>d.depth?Zs(l,d):Ba(l,d),mo=d)}function Lu(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,x={parent:v,depth:v===null?0:v.depth+1,context:m,parentValue:d,value:l};return mo=x,x}function Ff(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 Ac(){return mo}function ws(m){var l=m._currentValue;return l}function la(m){return m._reactInternals}function $a(m,l){m._reactInternals=l}var Js={},z={},jo,Bo,Sr,$t,Nl,Qs,jl,bo,Fu;{jo=new Set,Bo=new Set,Sr=new Set,jl=new Set,$t=new Set,bo=new Set,Fu=new Set;var Mc=new Set;Qs=function(m,l){if(!(m===null||typeof m=="function")){var d=l+"_"+m;Mc.has(d)||(Mc.add(d),i("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",l,m))}},Nl=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 Lc(m,l){{var d=m.constructor,v=d&&gn(d)||"ReactClass",x=v+"."+l;if(Js[x])return;i(`%s(...): Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.
|
|
113
|
+
|
|
114
|
+
Please check the code for the %s component.`,l,l,v),Js[x]=!0}}var Fc={isMounted:function(m){return!1},enqueueSetState:function(m,l,d){var v=la(m);v.queue===null?Lc(m,"setState"):(v.queue.push(l),d!=null&&Qs(d,"setState"))},enqueueReplaceState:function(m,l,d){var v=la(m);v.replace=!0,v.queue=[l],d!=null&&Qs(d,"setState")},enqueueForceUpdate:function(m,l){var d=la(m);d.queue===null?Lc(m,"forceUpdate"):l!=null&&Qs(l,"setState")}};function Nf(m,l,d,v,x){var I=d(x,v);Nl(l,I);var B=I==null?v:Q({},v,I);return B}function wo(m,l,d){var v=qn,x=m.contextType;if("contextType"in m){var I=x===null||x!==void 0&&x.$$typeof===Me&&x._context===void 0;if(!I&&!Fu.has(m)){Fu.add(m);var B="";x===void 0?B=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof x!="object"?B=" However, it is set to a "+typeof x+".":x.$$typeof===se?B=" Did you accidentally pass the Context.Provider instead?":x._context!==void 0?B=" Did you accidentally pass the Context.Consumer instead?":B=" However, it is set to an object with keys {"+Object.keys(x).join(", ")+"}.",i("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",gn(m)||"Component",B)}}typeof x=="object"&&x!==null?v=ws(x):v=d;var Y=new m(l,v);{if(typeof m.getDerivedStateFromProps=="function"&&(Y.state===null||Y.state===void 0)){var re=gn(m)||"Component";jo.has(re)||(jo.add(re),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.",re,Y.state===null?"null":"undefined",re))}if(typeof m.getDerivedStateFromProps=="function"||typeof Y.getSnapshotBeforeUpdate=="function"){var be=null,We=null,Ze=null;if(typeof Y.componentWillMount=="function"&&Y.componentWillMount.__suppressDeprecationWarning!==!0?be="componentWillMount":typeof Y.UNSAFE_componentWillMount=="function"&&(be="UNSAFE_componentWillMount"),typeof Y.componentWillReceiveProps=="function"&&Y.componentWillReceiveProps.__suppressDeprecationWarning!==!0?We="componentWillReceiveProps":typeof Y.UNSAFE_componentWillReceiveProps=="function"&&(We="UNSAFE_componentWillReceiveProps"),typeof Y.componentWillUpdate=="function"&&Y.componentWillUpdate.__suppressDeprecationWarning!==!0?Ze="componentWillUpdate":typeof Y.UNSAFE_componentWillUpdate=="function"&&(Ze="UNSAFE_componentWillUpdate"),be!==null||We!==null||Ze!==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,be!==null?`
|
|
120
|
+
`+be:"",We!==null?`
|
|
121
|
+
`+We:"",Ze!==null?`
|
|
122
|
+
`+Ze:""))}}}return Y}function jf(m,l,d){{var v=gn(l)||"Component",x=m.render;x||(l.prototype&&typeof l.prototype.render=="function"?i("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",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 I=m.props!==d;m.props!==void 0&&I&&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 Bf(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"),Fc.enqueueReplaceState(l,l.state,null))}function Nu(m,l,d,v){if(m.queue!==null&&m.queue.length>0){var x=m.queue,I=m.replace;if(m.queue=null,m.replace=!1,I&&x.length===1)l.state=x[0];else{for(var B=I?x[0]:l.state,Y=!0,re=I?1:0;re<x.length;re++){var be=x[re],We=typeof be=="function"?be.call(l,B,d,v):be;We!=null&&(Y?(Y=!1,B=Q({},B,We)):Q(B,We))}l.state=B}}else m.queue=null}function el(m,l,d,v){jf(m,l,d);var x=m.state!==void 0?m.state:null;m.updater=Fc,m.props=d,m.state=x;var I={queue:[],replace:!1};$a(m,I);var B=l.contextType;if(typeof B=="object"&&B!==null?m.context=ws(B):m.context=v,m.state===d){var Y=gn(l)||"Component";jl.has(Y)||(jl.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 re=l.getDerivedStateFromProps;typeof re=="function"&&(m.state=Nf(m,l,re,x,d)),typeof l.getDerivedStateFromProps!="function"&&typeof m.getSnapshotBeforeUpdate!="function"&&(typeof m.UNSAFE_componentWillMount=="function"||typeof m.componentWillMount=="function")&&(Bf(l,m),Nu(I,m,d,v))}var $f={id:1,overflow:""};function $o(m){var l=m.overflow,d=m.id,v=d&~Vf(d);return v.toString(32)+l}function ju(m,l,d){var v=m.id,x=m.overflow,I=Bl(v)-1,B=v&~(1<<I),Y=d+1,re=Bl(l)+I;if(re>30){var be=I-I%5,We=(1<<be)-1,Ze=(B&We).toString(32),it=B>>be,St=I-be,tn=Bl(l)+St,rr=Y<<St,Co=rr|it,va=Ze+x;return{id:1<<tn|Co,overflow:va}}else{var Ji=Y<<I,Ps=Ji|B,ef=x;return{id:1<<re|Ps,overflow:ef}}}function Bl(m){return 32-Hf(m)}function Vf(m){return 1<<Bl(m)-1}var Hf=Math.clz32?Math.clz32:Bu,Uf=Math.log,jr=Math.LN2;function Bu(m){var l=m>>>0;return l===0?32:31-(Uf(l)/jr|0)|0}function $l(m,l){return m===l&&(m!==0||1/m===1/l)||m!==m&&l!==l}var Xt=typeof Object.is=="function"?Object.is:$l,wi=null,xs=null,Va=null,Jt=null,ua=!1,tl=!1,ti=0,xi=null,xo=0,$u=25,Br=!1,qi;function Ha(){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 Nc(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 Vu(){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?Va===null?(ua=!1,Va=Jt=Vu()):(ua=!0,Jt=Va):Jt.next===null?(ua=!1,Jt=Jt.next=Vu()):(ua=!0,Jt=Jt.next),Jt}function Hu(m,l){wi=l,xs=m,Br=!1,ti=0}function Ua(m,l,d,v){for(;tl;)tl=!1,ti=0,xo+=1,Jt=null,d=m(l,v);return Uu(),d}function $r(){var m=ti!==0;return m}function Uu(){Br=!1,wi=null,xs=null,tl=!1,Va=null,xo=0,xi=null,Jt=null}function Wu(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()."),ws(m)}function zu(m){return qi="useContext",Ha(),ws(m)}function Wa(m,l){return typeof l=="function"?l(m):l}function ca(m){return qi="useState",Yu(Wa,m)}function Yu(m,l,d){if(m!==Wa&&(qi="useReducer"),wi=Ha(),Jt=Si(),ua){var v=Jt.queue,x=v.dispatch;if(xi!==null){var I=xi.get(v);if(I!==void 0){xi.delete(v);var B=Jt.memoizedState,Y=I;do{var re=Y.action;Br=!0,B=m(B,re),Br=!1,Y=Y.next}while(Y!==null);return Jt.memoizedState=B,[B,x]}}return[Jt.memoizedState,x]}else{Br=!0;var be;m===Wa?be=typeof l=="function"?l():l:be=d!==void 0?d(l):l,Br=!1,Jt.memoizedState=be;var We=Jt.queue={last:null,dispatch:null},Ze=We.dispatch=Bc.bind(null,wi,We);return[Jt.memoizedState,Ze]}}function jc(m,l){wi=Ha(),Jt=Si();var d=l===void 0?null:l;if(Jt!==null){var v=Jt.memoizedState;if(v!==null&&d!==null){var x=v[1];if(Nc(d,x))return v[0]}}Br=!0;var I=m();return Br=!1,Jt.memoizedState=[I,d],I}function Vl(m){wi=Ha(),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 Wf(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 Bc(m,l,d){if(xo>=$u)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(m===wi){tl=!0;var v={action:d,next:null};xi===null&&(xi=new Map);var x=xi.get(l);if(x===void 0)xi.set(l,v);else{for(var I=x;I.next!==null;)I=I.next;I.next=v}}}function fr(m,l){return jc(function(){return m},l)}function Gu(m,l,d){return Ha(),l(m._source)}function $c(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 Ha(),m}function Hl(){throw new Error("startTransition cannot be called during server rendering.")}function Ss(){return Ha(),[!1,Hl]}function fa(){var m=xs,l=$o(m.treeContext),d=za;if(d===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var v=ti++;return Bn(d,l,v)}function nl(){}var nr={readContext:Wu,useContext:zu,useMemo:jc,useReducer:Yu,useRef:Vl,useState:ca,useInsertionEffect:nl,useLayoutEffect:Wf,useCallback:fr,useImperativeHandle:nl,useEffect:nl,useDebugValue:nl,useDeferredValue:Ti,useTransition:Ss,useId:fa,useMutableSource:Gu,useSyncExternalStore:$c},za=null;function Ul(m){za=m}function Ts(m){try{var l="",d=m;do{switch(d.tag){case 0:l+=Gi(d.type,null,null);break;case 1:l+=gs(d.type,null,null);break;case 2:l+=Rc(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 Wl=n.ReactCurrentDispatcher,Cs=n.ReactDebugCurrentFrame,zl=0,So=1,Yl=2,Ya=3,Vc=4,rl=0,Es=1,ks=2,qu=12800;function Hc(m){return console.error(m),null}function Ga(){}function Gl(m,l,d,v,x,I,B,Y,re){var be=[],We=new Set,Ze={destination:null,responseState:l,progressiveChunkSize:v===void 0?qu:v,status:rl,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:We,pingedTasks:be,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:x===void 0?Hc:x,onAllReady:I===void 0?Ga:I,onShellReady:B===void 0?Ga:B,onShellError:Y===void 0?Ga:Y,onFatalError:re===void 0?Ga:re},it=il(Ze,0,null,d,!1,!1);it.parentFlushed=!0;var St=Ho(Ze,m,null,it,We,qn,Fl,$f);return be.push(St),Ze}function Vo(m,l){var d=m.pingedTasks;d.push(l),d.length===1&&s(function(){return tc(m)})}function ql(m,l){return{id:_i,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:l,errorDigest:null}}function Ho(m,l,d,v,x,I,B,Y){m.allPendingTasks++,d===null?m.pendingRootTasks++:d.pendingTasks++;var re={node:l,ping:function(){return Vo(m,re)},blockedBoundary:d,blockedSegment:v,abortSet:x,legacyContext:I,context:B,treeContext:Y};return re.componentStack=null,x.add(re),re}function il(m,l,d,v,x,I){return{status:zl,id:-1,index:l,parentFlushed:!1,chunks:[],children:[],formatContext:v,boundary:d,lastPushedText:x,textEmbedded:I}}var Xi=null;function Ki(){return Xi===null||Xi.componentStack===null?"":Ts(Xi.componentStack)}function To(m,l){m.componentStack={tag:0,parent:m.componentStack,type:l}}function ol(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 Ds=null;function Xl(m,l){{var d;typeof l=="string"?d=l:l&&typeof l.message=="string"?d=l.message:d=String(l);var v=Ds||Ki();Ds=null,m.errorMessage=d,m.errorComponentStack=v}}function al(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=ks,V(m.destination,l)):(m.status=Es,m.fatalError=l)}function Uc(m,l,d){To(l,"Suspense");var v=l.blockedBoundary,x=l.blockedSegment,I=d.fallback,B=d.children,Y=new Set,re=ql(m,Y),be=x.chunks.length,We=il(m,be,re,x.formatContext,!1,!1);x.children.push(We),x.lastPushedText=!1;var Ze=il(m,0,null,x.formatContext,!1,!1);Ze.parentFlushed=!0,l.blockedBoundary=re,l.blockedSegment=Ze;try{if(Ci(m,l,B),Rn(Ze.chunks,m.responseState,Ze.lastPushedText,Ze.textEmbedded),Ze.status=So,ga(re,Ze),re.pendingTasks===0){Zi(l);return}}catch(St){Ze.status=Vc,re.forceClientRender=!0,re.errorDigest=al(m,St),Xl(re,St)}finally{l.blockedBoundary=v,l.blockedSegment=x}var it=Ho(m,I,v,We,Y,l.legacyContext,l.context,l.treeContext);it.componentStack=l.componentStack,m.pingedTasks.push(it),Zi(l)}function Xu(m,l,d,v){To(l,d);var x=l.blockedSegment,I=uo(x.chunks,d,v,m.responseState,x.formatContext);x.lastPushedText=!1;var B=x.formatContext;x.formatContext=gi(B,d,v),Ci(m,l,I),x.formatContext=B,Io(x.chunks,d),x.lastPushedText=!1,Zi(l)}function Ku(m){return m.prototype&&m.prototype.isReactComponent}function qa(m,l,d,v,x){var I={};Hu(l,I);var B=d(v,x);return Ua(d,v,B,x)}function Zu(m,l,d,v,x){var I=d.render();d.props!==x&&(Zl||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"),Zl=!0);{var B=v.childContextTypes;if(B!=null){var Y=l.legacyContext,re=Mu(d,v,Y,B);l.legacyContext=re,dr(m,l,I),l.legacyContext=Y;return}}dr(m,l,I)}function Kl(m,l,d,v){da(l,d);var x=ia(d,l.legacyContext),I=wo(d,v,x);el(I,d,v,x),Zu(m,l,I,d,v),Zi(l)}var Bt={},sl={},Ju={},Xa={},Zl=!1,Wc={},zc=!1,ni=!1,Yc=!1;function Jl(m,l,d,v){var x;if(x=ia(d,l.legacyContext),ol(l,d),d.prototype&&typeof d.prototype.render=="function"){var I=gn(d)||"Unknown";Bt[I]||(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.",I,I),Bt[I]=!0)}var B=qa(m,l,d,v,x),Y=$r();if(typeof B=="object"&&B!==null&&typeof B.render=="function"&&B.$$typeof===void 0){var re=gn(d)||"Unknown";sl[re]||(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.",re,re,re),sl[re]=!0)}if(typeof B=="object"&&B!==null&&typeof B.render=="function"&&B.$$typeof===void 0){{var be=gn(d)||"Unknown";sl[be]||(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.",be,be,be),sl[be]=!0)}el(B,d,v,x),Zu(m,l,B,d,v)}else if(Qu(d),Y){var We=l.treeContext,Ze=1,it=0;l.treeContext=ju(We,Ze,it);try{dr(m,l,B)}finally{l.treeContext=We}}else dr(m,l,B);Zi(l)}function Qu(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";Wc[l]||(i("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",l),Wc[l]=!0)}if(typeof m.getDerivedStateFromProps=="function"){var d=gn(m)||"Unknown";Xa[d]||(i("%s: Function components do not support getDerivedStateFromProps.",d),Xa[d]=!0)}if(typeof m.contextType=="object"&&m.contextType!==null){var v=gn(m)||"Unknown";Ju[v]||(i("%s: Function components do not support contextType.",v),Ju[v]=!0)}}}function ec(m,l){if(m&&m.defaultProps){var d=Q({},l),v=m.defaultProps;for(var x in v)d[x]===void 0&&(d[x]=v[x]);return d}return l}function Gc(m,l,d,v,x){ol(l,d.render);var I=qa(m,l,d.render,v,x),B=$r();if(B){var Y=l.treeContext,re=1,be=0;l.treeContext=ju(Y,re,be);try{dr(m,l,I)}finally{l.treeContext=Y}}else dr(m,l,I);Zi(l)}function Vr(m,l,d,v,x){var I=d.type,B=ec(I,v);Ka(m,l,I,B,x)}function ha(m,l,d,v){d._context===void 0?d!==d.Consumer&&(Yc||(Yc=!0,i("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):d=d._context;var x=v.children;typeof x!="function"&&i("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var I=ws(d),B=x(I);dr(m,l,B)}function Hr(m,l,d,v){var x=d._context,I=v.value,B=v.children,Y;Y=l.context,l.context=Lu(x,I),dr(m,l,B),l.context=Ff(x),Y!==l.context&&i("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function qc(m,l,d,v,x){To(l,"Lazy");var I=d._payload,B=d._init,Y=B(I),re=ec(Y,v);Ka(m,l,Y,re,x),Zi(l)}function Ka(m,l,d,v,x){if(typeof d=="function")if(Ku(d)){Kl(m,l,d,v);return}else{Jl(m,l,d,v);return}if(typeof d=="string"){Xu(m,l,d,v);return}switch(d){case Gn:case Vt:case Z:case ue:case De:{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:{Uc(m,l,v);return}}if(typeof d=="object"&&d!==null)switch(d.$$typeof){case Ve:{Gc(m,l,d,v,x);return}case ot:{Vr(m,l,d,v,x);return}case se:{Hr(m,l,d,v);return}case Me:{ha(m,l,d,v);return}case Mt:{qc(m,l,d,v);return}}var I="";throw(d===void 0||typeof d=="object"&&d!==null&&Object.keys(d).length===0)&&(I+=" 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)+"."+I))}function Xc(m,l){typeof Symbol=="function"&&m[Symbol.toStringTag]==="Generator"&&(zc||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."),zc=!0),m.entries===l&&(ni||i("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ni=!0)}function dr(m,l,d){try{return Kc(m,l,d)}catch(v){throw typeof v=="object"&&v!==null&&typeof v.then=="function"||(Ds=Ds!==null?Ds:Ki()),v}}function Kc(m,l,d){if(l.node=d,typeof d=="object"&&d!==null){switch(d.$$typeof){case fe:{var v=d,x=v.type,I=v.props,B=v.ref;Ka(m,l,x,I,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,re=Y._payload,be=Y._init,We;try{We=be(re)}catch(Ji){throw typeof Ji=="object"&&Ji!==null&&typeof Ji.then=="function"&&To(l,"Lazy"),Ji}dr(m,l,We);return}}if(Qn(d)){Ql(m,l,d);return}var Ze=Nr(d);if(Ze){Xc(d,Ze);var it=Ze.call(d);if(it){var St=it.next();if(!St.done){var tn=[];do tn.push(St.value),St=it.next();while(!St.done);Ql(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 Ql(m,l,d){for(var v=d.length,x=0;x<v;x++){var I=l.treeContext;l.treeContext=ju(I,v,x);try{Ci(m,l,d[x])}finally{l.treeContext=I}}}function eu(m,l,d){var v=l.blockedSegment,x=v.chunks.length,I=il(m,x,null,v.formatContext,v.lastPushedText,!0);v.children.push(I),v.lastPushedText=!1;var B=Ho(m,l.node,l.blockedBoundary,I,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,x=l.legacyContext,I=l.context,B=null;B=l.componentStack;try{return dr(m,l,d)}catch(Y){if(Uu(),typeof Y=="object"&&Y!==null&&typeof Y.then=="function"){eu(m,l,Y),l.blockedSegment.formatContext=v,l.legacyContext=x,l.context=I,sa(I),l.componentStack=B;return}else throw l.blockedSegment.formatContext=v,l.legacyContext=x,l.context=I,sa(I),l.componentStack=B,Y}}function Zc(m,l,d,v){var x=al(m,v);if(l===null?Os(m,v):(l.pendingTasks--,l.forceClientRender||(l.forceClientRender=!0,l.errorDigest=x,Xl(l,v),l.parentFlushed&&m.clientRenderedBoundaries.push(l))),m.allPendingTasks--,m.allPendingTasks===0){var I=m.onAllReady;I()}}function pa(m){var l=this,d=m.blockedBoundary,v=m.blockedSegment;v.status=Ya,Za(l,d,v)}function tu(m,l,d){var v=m.blockedBoundary,x=m.blockedSegment;if(x.status=Ya,v===null)l.allPendingTasks--,l.status!==ks&&(l.status=ks,l.destination!==null&&P(l.destination));else{if(v.pendingTasks--,!v.forceClientRender){v.forceClientRender=!0;var I=d===void 0?new Error("The render was aborted by the server without a reason."):d;v.errorDigest=l.onError(I);{var B="The server did not finish this Suspense boundary: ";I&&typeof I.message=="string"?I=B+I.message:I=B+String(I);var Y=Xi;Xi=m;try{Xl(v,I)}finally{Xi=Y}}v.parentFlushed&&l.clientRenderedBoundaries.push(v)}if(v.fallbackAbortableTasks.forEach(function(be){return tu(be,l,d)}),v.fallbackAbortableTasks.clear(),l.allPendingTasks--,l.allPendingTasks===0){var re=l.onAllReady;re()}}}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 Za(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=Ga;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 x=l.completedSegments;x.length===1&&l.parentFlushed&&m.partialBoundaries.push(l)}}if(m.allPendingTasks--,m.allPendingTasks===0){var I=m.onAllReady;I()}}function zf(m,l){var d=l.blockedSegment;if(d.status===zl){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,Za(m,l.blockedBoundary,d)}catch(I){if(Uu(),typeof I=="object"&&I!==null&&typeof I.then=="function"){var x=l.ping;I.then(x,x)}else l.abortSet.delete(l),d.status=Vc,Zc(m,l.blockedBoundary,d,I)}finally{Xi=v}}}function tc(m){if(m.status!==ks){var l=Ac(),d=Wl.current;Wl.current=nr;var v;v=Cs.getCurrentStack,Cs.getCurrentStack=Ki;var x=za;Ul(m.responseState);try{var I=m.pingedTasks,B;for(B=0;B<I.length;B++){var Y=I[B];zf(m,Y)}I.splice(0,B),m.destination!==null&&Ii(m,m.destination)}catch(re){al(m,re),Os(m,re)}finally{Ul(x),Wl.current=d,Cs.getCurrentStack=v,d===nr&&sa(l)}}}function ll(m,l,d){switch(d.parentFlushed=!0,d.status){case zl:{var v=d.id=m.nextSegmentId++;return d.lastPushedText=!1,d.textEmbedded=!1,cr(l,m.responseState,v)}case So:{d.status=Yl;for(var x=!0,I=d.chunks,B=0,Y=d.children,re=0;re<Y.length;re++){for(var be=Y[re];B<be.index;B++)g(l,I[B]);x=ul(m,l,be)}for(;B<I.length-1;B++)g(l,I[B]);return B<I.length&&(x=S(l,I[B])),x}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function ul(m,l,d){var v=d.boundary;if(v===null)return ll(m,l,d);if(v.parentFlushed=!0,v.forceClientRender)return Ye(l,m.responseState,v.errorDigest,v.errorMessage,v.errorComponentStack),ll(m,l,d),kt(l,m.responseState);if(v.pendingTasks>0){v.rootSegmentID=m.nextSegmentId++,v.completedSegments.length>0&&m.partialBoundaries.push(v);var x=v.id=rn(m.responseState);return xe(l,m.responseState,x),ll(m,l,d),Ct(l,m.responseState)}else{if(v.byteSize>m.progressiveChunkSize)return v.rootSegmentID=m.nextSegmentId++,m.completedBoundaries.push(v),xe(l,m.responseState,v.id),ll(m,l,d),Ct(l,m.responseState);Ae(l,m.responseState);var I=v.completedSegments;if(I.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var B=I[0];return ul(m,l,B),st(l,m.responseState)}}function nc(m,l,d){return Il(l,m.responseState,d.id,d.errorDigest,d.errorMessage,d.errorComponentStack)}function nu(m,l,d){return Tt(l,m.responseState,d.formatContext,d.id),ul(m,l,d),bt(l,d.formatContext)}function rc(m,l,d){for(var v=d.completedSegments,x=0;x<v.length;x++){var I=v[x];Ur(m,l,d,I)}return v.length=0,go(l,m.responseState,d.id,d.rootSegmentID)}function Jc(m,l,d){for(var v=d.completedSegments,x=0;x<v.length;x++){var I=v[x];if(!Ur(m,l,d,I))return x++,v.splice(0,x),!1}return v.splice(0,x),!0}function Ur(m,l,d,v){if(v.status===Yl)return!0;var x=v.id;if(x===-1){var I=v.id=d.rootSegmentID;if(I===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return nu(m,l,v)}else return nu(m,l,v),zs(l,m.responseState,x)}function Ii(m,l){y();try{var d=m.completedRootSegment;d!==null&&m.pendingRootTasks===0&&(ul(m,l,d),m.completedRootSegment=null,bi(l,m.responseState));var v=m.clientRenderedBoundaries,x;for(x=0;x<v.length;x++){var I=v[x];nc(m,l,I)}v.splice(0,x);var B=m.completedBoundaries;for(x=0;x<B.length;x++){var Y=B[x];rc(m,l,Y)}B.splice(0,x),C(l),y(l);var re=m.partialBoundaries;for(x=0;x<re.length;x++){var be=re[x];if(!Jc(m,l,be)){m.destination=null,x++,re.splice(0,x);return}}re.splice(0,x);var We=m.completedBoundaries;for(x=0;x<We.length;x++){var Ze=We[x];rc(m,l,Ze)}We.splice(0,x)}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."),P(l))}}function Qc(m){s(function(){return tc(m)})}function Yf(m,l){if(m.status===Es){m.status=ks,V(l,m.fatalError);return}if(m.status!==ks&&m.destination===null){m.destination=l;try{Ii(m,l)}catch(d){al(m,d),Os(m,d)}}}function cl(m,l){try{var d=m.abortableTasks;d.forEach(function(v){return tu(v,m,l)}),d.clear(),m.destination!==null&&Ii(m,m.destination)}catch(v){al(m,v),Os(m,v)}}function _s(m,l){return new Promise(function(d,v){var x,I,B=new Promise(function(it,St){I=it,x=St});function Y(){var it=new ReadableStream({type:"bytes",pull:function(St){Yf(be,St)},cancel:function(St){cl(be)}},{highWaterMark:0});it.allReady=B,d(it)}function re(it){B.catch(function(){}),v(it)}var be=Gl(m,Oi(l?l.identifierPrefix:void 0,l?l.nonce:void 0,l?l.bootstrapScriptContent:void 0,l?l.bootstrapScripts:void 0,l?l.bootstrapModules:void 0),pi(l?l.namespaceURI:void 0),l?l.progressiveChunkSize:void 0,l?l.onError:void 0,I,Y,re,x);if(l&&l.signal){var We=l.signal,Ze=function(){cl(be,We.reason),We.removeEventListener("abort",Ze)};We.addEventListener("abort",Ze)}Qc(be)})}Bh.renderToReadableStream=_s,Bh.version=t}()),Bh}var Cc,Pm;process.env.NODE_ENV==="production"?(Cc=I4(),Pm=A4()):(Cc=M4(),Pm=L4());Cc.version;var F4=Cc.renderToString;Cc.renderToStaticMarkup;Cc.renderToNodeStream;Cc.renderToStaticNodeStream;Pm.renderToReadableStream;var N4=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function OD(e,t){return e(t={exports:{}},t.exports),t.exports}var j4=OD(function(e){(function(t){var n=function(M,R,V){if(!f(R)||y(R)||g(R)||S(R)||c(R))return R;var U,J=0,K=0;if(p(R))for(U=[],K=R.length;J<K;J++)U.push(n(M,R[J],V));else for(var le in U={},R)Object.prototype.hasOwnProperty.call(R,le)&&(U[M(le,V)]=n(M,R[le],V));return U},r=function(M){return C(M)?M:(M=M.replace(/[\-_\s]+(.)?/g,function(R,V){return V?V.toUpperCase():""})).substr(0,1).toLowerCase()+M.substr(1)},i=function(M){var R=r(M);return R.substr(0,1).toUpperCase()+R.substr(1)},o=function(M,R){return function(V,U){var J=(U=U||{}).separator||"_",K=U.split||/(?=[A-Z])/;return V.split(K).join(J)}(M,R).toLowerCase()},s=Object.prototype.toString,c=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]"},S=function(M){return s.call(M)=="[object Boolean]"},C=function(M){return(M-=0)==M},P=function(M,R){var V=R&&"process"in R?R.process:R;return typeof V!="function"?M:function(U,J){return V(U,M,J)}},A={camelize:r,decamelize:o,pascalize:i,depascalize:o,camelizeKeys:function(M,R){return n(P(r,R),M)},decamelizeKeys:function(M,R){return n(P(o,R),M,R)},pascalizeKeys:function(M,R){return n(P(i,R),M)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=A:t.humps=A})(N4)}).decamelize,B4=function(e){if(Array.isArray(e))return e},$4=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,c=e[Symbol.iterator]();!(r=(s=c.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(f){i=!0,o=f}finally{try{r||c.return==null||c.return()}finally{if(i)throw o}}return n}},d1=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},V4=function(e,t){if(e){if(typeof e=="string")return d1(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)?d1(e,t):void 0}},H4=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.`)},U4=function(e,t){return B4(e)||$4(e,t)||V4(e,t)||H4()},_D=OD(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}),W4=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},PD=function(e,t){if(e==null)return{};var n,r,i=W4(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},z4=q.createContext(null);function RD(e){var t=e.children,n=t===void 0?"":t,r=PD(e,["children"]);return typeof n!="string"&&(n=F4(n)),q.createElement("template",_D({},r,{dangerouslySetInnerHTML:{__html:n}}))}function ID(e){var t=e.root,n=e.children;return Vm.createPortal(n===void 0?null:n,t)}function Y4(e){var t=q.forwardRef(function(n,r){var i,o,s=n.mode,c=s===void 0?"open":s,f=n.delegatesFocus,p=f!==void 0&&f,y=n.styleSheets,g=y===void 0?[]:y,S=n.ssr,C=S!==void 0&&S,P=n.children,A=PD(n,["mode","delegatesFocus","styleSheets","ssr","children"]),M=(o=q.useRef((i=r)&&i.current),q.useEffect(function(){i&&(i.current=o.current)},[i]),o),R=q.useState(null),V=U4(R,2),U=V[0],J=V[1],K="node_".concat(c).concat(p);return q.useLayoutEffect(function(){if(M.current)try{if(typeof r=="function"&&r(M.current),C){var le=M.current.shadowRoot;return void J(le)}var T=M.current.attachShadow({mode:c,delegatesFocus:p});g.length>0&&(T.adoptedStyleSheets=g),J(T)}catch(he){(function(oe){var ze=oe.error,je=oe.styleSheets,Pe=oe.root;switch(ze.name){case"NotSupportedError":je.length>0&&(Pe.adoptedStyleSheets=je);break;default:throw ze}})({error:he,styleSheets:g,root:U})}},[r,M,g]),q.createElement(q.Fragment,null,q.createElement(e.tag,_D({key:K,ref:M},A),(U||C)&&q.createElement(z4.Provider,{value:U},C?q.createElement(RD,{shadowroot:c,shadowrootmode:c},e.render({root:U,ssr:C,children:P})):q.createElement(ID,{root:U},e.render({root:U,ssr:C,children:P})))))});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}RD.propTypes={children:Ea.oneOfType([Ea.string,Ea.node])},ID.propTypes={root:Ea.object.isRequired,children:Ea.node};var Sv=new Map;function G4(){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=j4(i,{separator:"-"}),s="".concat(t,"-").concat(o);return Sv.has(s)||Sv.set(s,Y4({tag:o,render:n})),Sv.get(s)}})}var AD=G4();const q4=".app,.treeRoot{height:100%}.draggingSource{opacity:.3}.placeholderContainer{position:relative}.dropTarget{background-color:#8d878711}",X4=".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}";var h1;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(h1||(h1={}));const K4=Object.freeze({x:0,y:0});var wf;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(wf||(wf={}));var p1;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(p1||(p1={}));var ka;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(ka||(ka={}));ka.Space,ka.Enter,ka.Esc,ka.Space,ka.Enter,ka.Tab;var g1;(function(e){e[e.RightClick=2]="RightClick"})(g1||(g1={}));var v1;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(v1||(v1={}));var m1;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(m1||(m1={}));wf.Backward+"",wf.Forward+"",wf.Backward+"",wf.Forward+"";var Rm;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Rm||(Rm={}));var Im;(function(e){e.Optimized="optimized"})(Im||(Im={}));Rm.WhileDragging,Im.Optimized;({...K4});var y1;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(y1||(y1={}));function Z4(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}ka.Down,ka.Right,ka.Up,ka.Left;function J4(e){const t=new CustomEvent("updateFavoriteMenu",{detail:{menuItem:e}});window.dispatchEvent(t)}const Tv="MENU_ITEM";function Q4(e){const t=kp.useLocation(),[n,r]=q.useState([]),[i,o]=q.useState(!1);console.log("isSubmit",i);const s=q.useRef(null),[c,f]=q.useState(window.location.href);q.useEffect(()=>{f(window.location.href)},[t]);const p=M=>`${M}`;function y(M,R){for(const V of M){if(V.id===R)return V;if(V.children){const U=y(V.children,R);if(U)return U}}return null}function g(M,R){const V=y(n,M);V?(V.isFavorite=R,J4(V),Zy(M,R)):console.error(`Item with id ${M} not found`)}const S=M=>{console.log("Favorite menus changed",M);const R=M.detail.favoriteMenus||[];r(R)};q.useEffect(()=>(window.addEventListener("favoriteMenusChange",S),()=>{window.removeEventListener("favoriteMenusChange",S)}),[]);const C=(M,R)=>{n[M];const V=Z4(n,M,R);r(V),o(!0);const U={menuItemIds:V.map(J=>J.id)};Da.post("global-menu-config/api/v1/menu-items/user/order-favorites",U,{baseURL:e.baseUrl}).then(()=>{}).catch(J=>{console.error(J),r(n)}).finally(()=>{o(!1)})},P=({item:M,index:R})=>{const V=q.useRef(null),[{isDragging:U},J]=BE({type:Tv,item:()=>({id:M.id,index:R}),collect:oe=>({isDragging:oe.isDragging()})}),[{isOver:K,isOverCurrent:le},T]=hp(()=>({accept:Tv,collect:oe=>({isOver:oe.isOver(),isOverCurrent:oe.isOver({shallow:!0})}),drop:oe=>{C(oe.index,R),oe.index=R}}),[]);let he="hover-off";return(le||K)&&(he="hover-on"),J(T(V)),Fe.jsx("div",{ref:V,style:{opacity:U?.7:1,boxShadow:U?"0 4px 8px rgba(0, 0, 0, 0.2)":"none",cursor:"move",display:"inline-block",marginRight:"8px",position:"relative",transition:"transform 0.3s ease-in-out"},className:`item ${he}`,children:Fe.jsx(DD,{replacePath:e.replacePath,ssr:e.ssr,brandColors:e.brandColors,baseUrl:e.baseUrl,item:M,level:1,onSetFavoriteSuccess:g})})},A=()=>{const M=q.useRef(null),[{isOver:R,canDrop:V},U]=hp(()=>({accept:Tv,drop:J=>{C(J.index,n.length-1),J.index=n.length-1},collect:J=>({isOver:J.isOver(),canDrop:J.canDrop()})}),[n]);return U(M),Fe.jsx("div",{ref:M,style:{height:40,width:150,display:"flex",alignItems:"center",justifyContent:"center",borderLeft:R&&V?"2px solid red":"transparent",cursor:"move"}})};return Fe.jsx(Fe.Fragment,{children:n.length?Fe.jsx("div",{className:p("favorite-menu"),children:Fe.jsx(Xm,{ref:s,className:p("wrap-section favorite-menu__menu"),style:{marginTop:4,flex:1,overflow:"auto",height:"100%",overflowY:"hidden"},children:Fe.jsx(AE,{backend:UT,children:Fe.jsxs("div",{style:{display:"inline-flex"},children:[n.map((M,R)=>Fe.jsx(P,{item:M,index:R},M.id)),Fe.jsx(A,{})]})})})}):""})}function e6(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 t6(e){const{isFavoriteBarVisible:t}=e6();return Fe.jsxs(Fe.Fragment,{children:[Fe.jsx("style",{children:X4}),Fe.jsx("div",{className:`favorite-bar ${t?"favorite-bar--visible":"favorite-bar--hidden"}`,children:Fe.jsx(AD.div,{children:Fe.jsx(Ym,{styles:[PT,R4,q4],children:Fe.jsx(Q4,{...e})})})})]})}function Zy(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 MD({...e}){var Ee,Ue,$e,ke,_e;const t=e.item,n=e.level||0,r=!!((Ee=e.item.children)!=null&&Ee.length),{isActive:i,isCollapsed:o}=e,s=`level-${n}`,c=o?"collapsed":"expanded",f=i(t.id)?"active":"",p=r?"parent":"child",y=e.params.isOpen?"isOpen":"isClose",g=e.isInternalApp?"isInternalApp":"",S=(Ne,rt=s)=>`${Ne} ${rt} ${c} ${f} ${p} ${y} ${g}`,[C,P]=q.useState(!1),[A,M]=q.useState(t.isFavorite||!1);q.useEffect(()=>{M(!!e.item.isFavorite)},[e.item.isFavorite]);const R=q.useRef(),V=q.useRef();V!=null&&V.current&&((Ue=V==null?void 0:V.current)==null?void 0:Ue.scrollWidth)>(($e=V==null?void 0:V.current)==null?void 0:$e.clientWidth);const U=window.location.origin,J=t.path&&t.path.includes("http")?new URL(t.path):{origin:"",pathname:""},K=window.location.pathname.split("/")[1],le=J.pathname.split("/")[1],T=e.item.redirectUrl||e.ssr||!U.includes("local")&&U!==J.origin||le!==K,he=r?"div":!e.isInternalApp&&T?"a":kp.Link,oe=t.redirectUrl||t.path||"#",ze=n+1,je=r&&o&&C,Pe=o||n===0?void 0:`${n+.25}rem`,Be=()=>{P(!0)},He=()=>{P(!1)},ce="/global-menu-config/api/v1/menu-items/user/set-favorite",Se=t.serviceKey==="mn_poms";e.params.depth*20,e.params.depth,OH(t.id,e.params.isOpen,e.params.onToggle);const Ie=Ne=>{Ne.stopPropagation(),e.params.onToggle()},tt=Se||o&&n===0?t.name==="POMs"?"Parking Operations Management":t.description||t.name:null;Object.entries(e.brandColors||{}).reduce((Ne,[rt,at])=>(at&&(Ne[`--${rt}`]=at),Ne),{});const we=U!==J.origin||e.item.redirectUrl?"_blank":"_self";return Fe.jsxs("div",{ref:R,className:S("menu-item__wrapper tree-node"),style:{borderRadius:"8px",transition:"all 0.3s"},onMouseOver:Be,onMouseOut:He,onDragStart:Ne=>{o&&n>1&&Ne.preventDefault()},children:[Fe.jsx(os.Tooltip,{placement:"top",title:tt,disableInteractive:!0,children:Fe.jsxs(he,{target:we,to:oe,href:oe,draggable:"true",className:S("menu-item__link"),style:{paddingLeft:Pe,transition:"all 0.3s",color:i(t.id)?((ke=e.brandColors)==null?void 0:ke.primary400)||ii.primary400:void 0,backgroundColor:i(t.id)&&n===0?(_e=e.brandColors)==null?void 0:_e.primary200:void 0},onClick:Ne=>{o||Ie(Ne)},children:[Fe.jsx(n6,{cls:S,item:t}),Fe.jsx("span",{className:S("menu-item__label"),ref:V,children:t.name}),Fe.jsx(r6,{tooltipPosition:tt?"right":"top",menuLevel:n,hasChildren:r,isHovered:C,isFavorite:A,onClick:Ne=>{const rt={menuConfigId:t.id,isFavorite:Ne},at=e.baseUrl+ce;Da.post(at,rt).then(ht=>{var lt;M(Ne),Zm("Set favorite menu item successfully"),(lt=e.onSetFavoriteSuccess)==null||lt.call(e,e.item.id,Ne),Zy(e.item.id,Ne)}).catch(ht=>{var lt,mt;Vd(((mt=(lt=ht.response)==null?void 0:lt.data)==null?void 0:mt.errorMessage)||"Have error when set favorite menu item")})}}),r&&Fe.jsx("div",{className:S("menu-item__icon-arrow__wrapper"),children:Fe.jsx(Z5,{className:S(`menu-item__icon-arrow__icon ${e.params.isOpen?"open":"close"}`)})})]})}),je&&Fe.jsx(J5,{parentRef:R,onlyChild:!o,renderChildren:({maxHeight:Ne})=>{var rt;return Fe.jsx(yD.div,{className:S(`menu-item__dropdown ${e.params.isOpen?"menu-item__dropdown--open":"menu-item__dropdown--close"}`,`level-${ze}`),style:Xy({maxHeight:Ne,overflowY:"auto",paddingRight:3},Ne!=="auto"&&!!ze),children:(rt=t.children)==null?void 0:rt.map(at=>q.createElement(MD,{...e,key:at.id,item:at,level:ze}))})}})]})}function n6({item:e,cls:t}){return Fe.jsx("div",{className:t("menu-item__icon"),children:Fe.jsx(kD,{item:e})})}function r6(e){const t={marginRight:e.hasChildren?10:0,fontSize:18,fill:ii.warning};return Fe.jsxs(Fe.Fragment,{children:[e.isHovered&&!e.isFavorite&&Fe.jsx(os.Tooltip,{placement:e.tooltipPosition||"top",title:"Add to favorites",disableInteractive:!0,children:Fe.jsx("div",{children:Fe.jsx(bD,{style:t,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=e.onClick)==null||r.call(e,!0)}})})}),e.isFavorite&&Fe.jsx(os.Tooltip,{placement:e.tooltipPosition||"top",title:"Remove from favorites",disableInteractive:!0,children:Fe.jsx("div",{children:Fe.jsx(wD,{style:t,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=e.onClick)==null||r.call(e,!1)}})})})]})}function i6(){return Fe.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:Fe.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 o6(){return Fe.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:Fe.jsx("path",{d:"M3 4h18v2H3V4zm0 7h18v2H3v-2zm0 7h18v2H3v-2z"})})}function a6(e){return Fe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"20",fill:"none",viewBox:"0 0 18 20",...e,children:Fe.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 s6=".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}}",l6=e=>{const t=e.isCollapsed?0:e.depth*16;return Fe.jsx("div",{style:{backgroundColor:e.color||"#93D500",height:"2px",position:"absolute",right:"0",top:"0",left:t}})},u6=".app,.treeRoot{height:100%}.draggingSource{opacity:.3}.placeholderContainer{position:relative}.dropTarget{background-color:#8d878711}",c6=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 LD(e){document.documentElement.style.setProperty("--global-menu-width",!e||e==="true"?"64px":"17rem")}const Xh=localStorage.getItem("isCollapsed");LD(Xh);function f6(e){const t=new CustomEvent("favoriteMenusChange",{detail:{favoriteMenus:e}});window.dispatchEvent(t)}function d6(e){const t=kp.useLocation(),[n,r]=q.useState([]),i=n.map(je=>je.data),[o,s]=q.useState(!1),[c,f]=q.useState([]),[p,y]=q.useState(Xh===null?!0:Xh==="true"),[g,S]=q.useState(window.location.href),C=q.useRef(null);q.useEffect(()=>{var je;(je=e.handleCallback)==null||je.call(e,i)},[i,e.handleCallback]),q.useEffect(()=>{S(window.location.href)},[t]);const P=p6(i,g),[A,M]=c6({initOpenIds:e.initOpenIds}),R=()=>{var je,Pe;if(y(!p),localStorage.setItem("isCollapsed",JSON.stringify(!p)),LD(p),p)A&&((je=C.current)==null||je.open(A));else{const Be=n.filter(He=>He.parent===0).map(He=>He.id);console.log("closeIds:",Be),(Pe=C.current)==null||Pe.close(Be)}},[V,U]=q.useState(!1),J=p?"collapsed":"expanded",K=je=>`${je} ${J}`,le=q.useRef(null);q.useLayoutEffect(()=>{(async()=>{var Pe,Be;try{const He=e.menuPath||"/global-menu-config/api/v1/menu-items/user",ce=e.baseUrl+He,{data:Se}=await Da.get(ce);let Ie=Se.map(tt=>({...tt,parentKey:tt.parentKey||0}));Ie=ND(Ie),e.replacePath&&(Ie=FD(Ie,e.replacePath));const Ge=Ie.map(tt=>({id:tt.id,parent:tt.parentKey,text:tt.name,data:tt}));r(Ge)}catch(He){console.error("Global menu",He),Vd(((Be=(Pe=He.response)==null?void 0:Pe.data)==null?void 0:Be.errorMessage)||"Have error when get menu items")}})()},[e.baseUrl,e.menuPath,e.replacePath]);const T=async()=>{try{const je=await fetch(`${e.baseUrl}/global-menu-config/api/v1/menu-items/user/get-favorites`);if(!je.ok)throw new Error("Failed to fetch favorite items");const Pe=await je.json();f(Pe)}catch(je){console.error("Error fetching favorite items:",je)}};q.useEffect(()=>{T()},[e.baseUrl]),q.useEffect(()=>{let je=[];c.forEach(He=>{const ce=i.find(Se=>Se.id===He&&Se.isFavorite===!0);ce&&(je=[...je,ce])}),console.log(je);function Pe(He){return i.every(ce=>ce.parentKey!==He.id)?He:{...He,children:i.filter(ce=>ce.parentKey===He.id).map(ce=>Pe(ce))}}const Be=je.map(He=>Pe(He));f6(Be)},[i]);function he(je){const Pe=je.detail.menuItem;r(Be=>Be.map(He=>He.id!==Pe.id?He:{...He,data:Pe})),T()}q.useEffect(()=>(window.addEventListener("updateFavoriteMenu",he),()=>{window.removeEventListener("updateFavoriteMenu",he)}),[]),q.useLayoutEffect(()=>{var He;const je=localStorage.getItem("scrollPos");je&&le.current&&setTimeout(()=>{const ce=le.current.getScrollElement();ce.scrollTop=parseInt(je)},0);const Pe=()=>{if(le.current){const ce=le.current.getScrollElement();localStorage.setItem("scrollPos",ce.scrollTop.toString())}},Be=(He=le.current)==null?void 0:He.getScrollElement();return Be==null||Be.addEventListener("scroll",Pe),()=>{Be==null||Be.removeEventListener("scroll",Pe)}},[i]);function oe(je){s(!0);const Pe=[...n];r(je);const Be=je.map((He,ce)=>({menuItemId:He.id,order:ce}));Da.post("/global-menu-config/api/v1/menu-items/user",Be,{baseURL:e.baseUrl}).then(()=>{}).catch(He=>{console.error(He),r(Pe)}).finally(()=>{s(!1)})}const ze=q.useMemo(()=>Xh==="false"?A:[],[]);return console.log("nodesglobal menu",n),Fe.jsxs("div",{className:K("side-bar"),children:[Fe.jsx("div",{className:K("wrap-section side-bar__wrapper-toggle-btn"),children:Fe.jsx("button",{className:"icon-btn side-bar__toggle-btn",onClick:R,children:p?Fe.jsx(o6,{}):Fe.jsx(i6,{})})}),Fe.jsx(Xm,{ref:le,className:K("wrap-section side-bar__menu"),style:{marginTop:24,flex:1,overflow:"auto",height:"100%",overflowX:"hidden"},children:Fe.jsx(AE,{backend:J3,options:wH(),children:Fe.jsx($H,{ref:C,classes:{root:"treeRoot",draggingSource:"draggingSource",placeholder:"placeholderContainer"},tree:n,rootId:0,sort:!1,insertDroppableFirst:!1,enableAnimateExpand:!0,dropTargetOffset:10,onDrop:oe,render:(je,Pe)=>{function Be(Ie){return n.every(Ge=>Ge.parent!==Ie.id)?Ie:{...Ie,children:n.filter(Ge=>Ge.parent===Ie.id).map(Ge=>Be(Ge.data))}}const He=Be(je.data),ce=Ie=>P.some(Ge=>Ge.id===Ie);function Se(Ie,Ge){r(tt=>tt.map(we=>we.id===Ie?{...we,data:{...we.data,isFavorite:Ge}}:we)),T()}return Fe.jsx(MD,{isInternalApp:e.isInternalApp,isActive:ce,isCollapsed:p,replacePath:e.replacePath,ssr:e.ssr,brandColors:e.brandColors,baseUrl:e.baseUrl,node:je,params:Pe,nodes:n,item:He,expanded:()=>!1,toggleExpand:()=>{},level:Pe.depth,onSetFavoriteSuccess:Se})},placeholderRender:(je,{depth:Pe})=>{var Be;return Fe.jsx(l6,{node:je,depth:Pe,color:(Be=e.brandColors)==null?void 0:Be.primary300,isCollapsed:p})},canDrag:()=>!o,canDrop:(je,{dragSource:Pe,dropTargetId:Be})=>(Pe==null?void 0:Pe.parent)===Be,onDragStart:je=>{console.log("onDragStart",je)},onChangeOpen:je=>{localStorage.getItem("isCollapsed")==="false"&&(console.log("onChangeOpen:",je),M(je))},initialOpen:ze})})}),Fe.jsxs("div",{className:K("wrap-section side-bar__wrap-btn-logout"),children:[Fe.jsxs("button",{className:K("side-bar__logout-btn"),onClick:()=>U(!0),children:[Fe.jsx(a6,{className:K("side-bar__icon-logout")}),Fe.jsx("span",{className:K("side-bar__logout-btn__text"),children:"Logout"})]}),Fe.jsx(j1,{isOpen:V,onClose:()=>U(!1),onConfirm:()=>e.logout?e.logout():q1(e.baseUrl)})]})]})}function h6(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 p6(e,t){const n=e.map(s=>({item:s,priority:s.path?h6(s.path,t):0})).filter(s=>s.priority>0),r=n.length>0?n.reduce((s,c)=>c.priority>s.priority?c: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 FD(e,t){return e.map(n=>{var r;return(r=n.children)!=null&&r.length?(n.path="",n.children=FD(n.children,t)):n.path=t(n.path),n})}function ND(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=ND(n.children)),n))}function g6(e){return Fe.jsx(AD.div,{children:Fe.jsx(Ym,{styles:[PT,s6,u6],style:{position:"sticky",zIndex:1300},children:Fe.jsx(d6,{...e})})})}const v6={"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 Tp={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
|
+
*/Tp.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",c="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",p=500,y="__lodash_placeholder__",g=1,S=2,C=4,P=1,A=2,M=1,R=2,V=4,U=8,J=16,K=32,le=64,T=128,he=256,oe=512,ze=30,je="...",Pe=800,Be=16,He=1,ce=2,Se=3,Ie=1/0,Ge=9007199254740991,tt=17976931348623157e292,we=NaN,Ee=4294967295,Ue=Ee-1,$e=Ee>>>1,ke=[["ary",T],["bind",M],["bindKey",R],["curry",U],["curryRight",J],["flip",oe],["partial",K],["partialRight",le],["rearg",he]],_e="[object Arguments]",Ne="[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]",On="[object WeakSet]",ai="[object ArrayBuffer]",an="[object DataView]",Bi="[object Float32Array]",$i="[object Float64Array]",Vi="[object Int8Array]",kr="[object Int16Array]",jn="[object Int32Array]",Dr="[object Uint8Array]",vr="[object Uint8ClampedArray]",zr="[object Uint16Array]",Yr="[object Uint32Array]",Po=/\b__p \+= '';/g,Wn=/\b(__p \+=) '' \+/g,Gr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Jn=/&(?:amp|lt|gt|quot|#39);/g,Wt=/[&<>"']/g,si=RegExp(Jn.source),Hi=RegExp(Wt.source),_n=/<%-([\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/,Ra=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ia=/\{\n\/\* \[wrapped with (.+)\] \*/,qr=/,? & /,ao=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,so=/[()=,{}\[\]\/\s]/,Di=/\\(\\)?/g,Qn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Or=/\w*$/,_r=/^[-+]0x[0-9a-f]+$/i,fi=/^0b[01]+$/i,Xr=/^\[object .+?Constructor\]$/,yr=/^0o[0-7]+$/i,Pr=/^(?:0|[1-9]\d*)$/,er=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ui=/($^)/,Oi=/['\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",Kr="\\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",_i="A-Z\\xc0-\\xd6\\xd8-\\xde",rn="\\ufe0e\\ufe0f",Bn=Kr+zn+pi+gi,kn="['’]",lo="["+sr+"]",Pn="["+Bn+"]",Rn="["+di+"]",k="\\d+",N="["+hi+"]",G="["+br+"]",te="[^"+sr+Bn+k+hi+br+_i+"]",Ce="\\ud83c[\\udffb-\\udfff]",ge="(?:"+Rn+"|"+Ce+")",Re="[^"+sr+"]",Je="(?:\\ud83c[\\udde6-\\uddff]){2}",vt="[\\ud800-\\udbff][\\udc00-\\udfff]",yt="["+_i+"]",pt="\\u200d",Nt="(?:"+G+"|"+te+")",$n="(?:"+yt+"|"+te+")",Yn="(?:"+kn+"(?:d|ll|m|re|s|t|ve))?",Dn="(?:"+kn+"(?:D|LL|M|RE|S|T|VE))?",Zr=ge+"?",lr="["+rn+"]?",Wi="(?:"+pt+"(?:"+[Re,Je,vt].join("|")+")"+lr+Zr+")*",vi="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",zi="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ar=lr+Zr+Wi,Yi="(?:"+[N,Je,vt].join("|")+")"+Ar,Us="(?:"+[Re+Rn+"?",Rn,Je,vt,lo].join("|")+")",Aa=RegExp(kn,"g"),Qo=RegExp(Rn,"g"),wr=RegExp(Ce+"(?="+Ce+")|"+Us+Ar,"g"),Ws=RegExp([yt+"?"+G+"+"+Yn+"(?="+[Pn,yt,"$"].join("|")+")",$n+"+"+Dn+"(?="+[Pn,yt+Nt,"$"].join("|")+")",yt+"?"+Nt+"+"+Yn,yt+"+"+Dn,zi,vi,k,Yi].join("|"),"g"),mi=RegExp("["+pt+sr+di+rn+"]"),Ma=/[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[Dr]=qt[vr]=qt[zr]=qt[Yr]=!0,qt[_e]=qt[Ne]=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[_e]=Zt[Ne]=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[Dr]=Zt[vr]=Zt[zr]=Zt[Yr]=!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"},Jr={"&":"&","<":"<",">":">",'"':""","'":"'"},Ro={"&":"&","<":"<",">":">",""":'"',"'":"'"},yi={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ur=parseFloat,La=parseInt,uo=typeof Ei=="object"&&Ei&&Ei.Object===Object&&Ei,ss=typeof self=="object"&&self&&self.Object===Object&&self,un=uo||ss||Function("return this")(),Io=t&&!t.nodeType&&t,bi=Io&&!0&&e&&!e.nodeType&&e,ls=bi&&bi.exports===Io,co=ls&&uo.process,cr=function(){try{var Z=bi&&bi.require&&bi.require("util").types;return Z||co&&co.binding&&co.binding("util")}catch{}}(),h=cr&&cr.isArrayBuffer,b=cr&&cr.isDate,E=cr&&cr.isMap,O=cr&&cr.isRegExp,F=cr&&cr.isSet,j=cr&&cr.isTypedArray;function H(Z,ue,se){switch(se.length){case 0:return Z.call(ue);case 1:return Z.call(ue,se[0]);case 2:return Z.call(ue,se[0],se[1]);case 3:return Z.call(ue,se[0],se[1],se[2])}return Z.apply(ue,se)}function ae(Z,ue,se,Me){for(var Ve=-1,ut=Z==null?0:Z.length;++Ve<ut;){var ft=Z[Ve];ue(Me,ft,se(ft),Z)}return Me}function ne(Z,ue){for(var se=-1,Me=Z==null?0:Z.length;++se<Me&&ue(Z[se],se,Z)!==!1;);return Z}function pe(Z,ue){for(var se=Z==null?0:Z.length;se--&&ue(Z[se],se,Z)!==!1;);return Z}function Oe(Z,ue){for(var se=-1,Me=Z==null?0:Z.length;++se<Me;)if(!ue(Z[se],se,Z))return!1;return!0}function Ae(Z,ue){for(var se=-1,Me=Z==null?0:Z.length,Ve=0,ut=[];++se<Me;){var ft=Z[se];ue(ft,se,Z)&&(ut[Ve++]=ft)}return ut}function xe(Z,ue){var se=Z==null?0:Z.length;return!!se&&en(Z,ue,0)>-1}function Ye(Z,ue,se){for(var Me=-1,Ve=Z==null?0:Z.length;++Me<Ve;)if(se(ue,Z[Me]))return!0;return!1}function st(Z,ue){for(var se=-1,Me=Z==null?0:Z.length,Ve=Array(Me);++se<Me;)Ve[se]=ue(Z[se],se,Z);return Ve}function Ct(Z,ue){for(var se=-1,Me=ue.length,Ve=Z.length;++se<Me;)Z[Ve+se]=ue[se];return Z}function kt(Z,ue,se,Me){var Ve=-1,ut=Z==null?0:Z.length;for(Me&&ut&&(se=Z[++Ve]);++Ve<ut;)se=ue(se,Z[Ve],Ve,Z);return se}function In(Z,ue,se,Me){var Ve=Z==null?0:Z.length;for(Me&&Ve&&(se=Z[--Ve]);Ve--;)se=ue(se,Z[Ve],Ve,Z);return se}function cn(Z,ue){for(var se=-1,Me=Z==null?0:Z.length;++se<Me;)if(ue(Z[se],se,Z))return!0;return!1}var Mr=D("length");function Lr(Z){return Z.split("")}function Ft(Z){return Z.match(ao)||[]}function Fr(Z,ue,se){var Me;return se(Z,function(Ve,ut,ft){if(ue(Ve,ut,ft))return Me=ut,!1}),Me}function jt(Z,ue,se,Me){for(var Ve=Z.length,ut=se+(Me?1:-1);Me?ut--:++ut<Ve;)if(ue(Z[ut],ut,Z))return ut;return-1}function en(Z,ue,se){return ue===ue?_u(Z,ue,se):jt(Z,ho,se)}function fo(Z,ue,se,Me){for(var Ve=se-1,ut=Z.length;++Ve<ut;)if(Me(Z[Ve],ue))return Ve;return-1}function ho(Z){return Z!==Z}function xr(Z,ue){var se=Z==null?0:Z.length;return se?me(Z,ue)/se:we}function D(Z){return function(ue){return ue==null?n:ue[Z]}}function L(Z){return function(ue){return Z==null?n:Z[ue]}}function W(Z,ue,se,Me,Ve){return Ve(Z,function(ut,ft,ot){se=Me?(Me=!1,ut):ue(se,ut,ft,ot)}),se}function ee(Z,ue){var se=Z.length;for(Z.sort(ue);se--;)Z[se]=Z[se].value;return Z}function me(Z,ue){for(var se,Me=-1,Ve=Z.length;++Me<Ve;){var ut=ue(Z[Me]);ut!==n&&(se=se===n?ut:se+ut)}return se}function ye(Z,ue){for(var se=-1,Me=Array(Z);++se<Z;)Me[se]=ue(se);return Me}function Le(Z,ue){return st(ue,function(se){return[se,Z[se]]})}function Ke(Z){return Z&&Z.slice(0,Il(Z)+1).replace(ln,"")}function gt(Z){return function(ue){return Z(ue)}}function Pt(Z,ue){return st(ue,function(se){return Z[se]})}function Tt(Z,ue){return Z.has(ue)}function bt(Z,ue){for(var se=-1,Me=Z.length;++se<Me&&en(ue,Z[se],0)>-1;);return se}function Mn(Z,ue){for(var se=Z.length;se--&&en(ue,Z[se],0)>-1;);return se}function xn(Z,ue){for(var se=Z.length,Me=0;se--;)Z[se]===ue&&++Me;return Me}var Vn=L(Pi),ta=L(Jr);function us(Z){return"\\"+yi[Z]}function po(Z,ue){return Z==null?n:Z[ue]}function Qr(Z){return mi.test(Z)}function zs(Z){return Ma.test(Z)}function Ri(Z){for(var ue,se=[];!(ue=Z.next()).done;)se.push(ue.value);return se}function cs(Z){var ue=-1,se=Array(Z.size);return Z.forEach(function(Me,Ve){se[++ue]=[Ve,Me]}),se}function na(Z,ue){return function(se){return Z(ue(se))}}function ei(Z,ue){for(var se=-1,Me=Z.length,Ve=0,ut=[];++se<Me;){var ft=Z[se];(ft===ue||ft===y)&&(Z[se]=y,ut[Ve++]=se)}return ut}function go(Z){var ue=-1,se=Array(Z.size);return Z.forEach(function(Me){se[++ue]=Me}),se}function Ys(Z){var ue=-1,se=Array(Z.size);return Z.forEach(function(Me){se[++ue]=[Me,Me]}),se}function _u(Z,ue,se){for(var Me=se-1,Ve=Z.length;++Me<Ve;)if(Z[Me]===ue)return Me;return-1}function fs(Z,ue,se){for(var Me=se+1;Me--;)if(Z[Me]===ue)return Me;return Me}function vo(Z){return Qr(Z)?Fa(Z):Mr(Z)}function fn(Z){return Qr(Z)?Q(Z):Lr(Z)}function Il(Z){for(var ue=Z.length;ue--&&ki.test(Z.charAt(ue)););return ue}var ds=L(Ro);function Fa(Z){for(var ue=wr.lastIndex=0;wr.test(Z);)++ue;return ue}function Q(Z){return Z.match(wr)||[]}function fe(Z){return Z.match(Ws)||[]}var Te=function Z(ue){ue=ue==null?un:De.defaults(un.Object(),ue,De.pick(un,ea));var se=ue.Array,Me=ue.Date,Ve=ue.Error,ut=ue.Function,ft=ue.Math,ot=ue.Object,Mt=ue.RegExp,xt=ue.String,Vt=ue.TypeError,Gn=se.prototype,tr=ut.prototype,Ln=ot.prototype,zt=ue["__core-js_shared__"],Nr=tr.toString,Dt=Ln.hasOwnProperty,Pu=0,gn=function(){var a=/[^.]+$/.exec(zt&&zt.keys&&zt.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}(),Ao=Ln.toString,Ru=Nr.call(ot),Iu=un._,Au=Mt("^"+Nr.call(Dt).replace(mr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),hs=ls?ue.Buffer:n,Mo=ue.Symbol,Gs=ue.Uint8Array,qs=hs?hs.allocUnsafe:n,Na=na(ot.getPrototypeOf,ot),ps=ot.create,Al=Ln.propertyIsEnumerable,Lo=Gn.splice,Ml=Mo?Mo.isConcatSpreadable:n,Gi=Mo?Mo.iterator:n,Fo=Mo?Mo.toStringTag:n,ra=function(){try{var a=ic(ot,"defineProperty");return a({},"",{}),a}catch{}}(),Lf=ue.clearTimeout!==un.clearTimeout&&ue.clearTimeout,Xs=Me&&Me.now!==un.Date.now&&Me.now,Rc=ue.setTimeout!==un.setTimeout&&ue.setTimeout,gs=ft.ceil,ja=ft.floor,vs=ot.getOwnPropertySymbols,Ll=hs?hs.isBuffer:n,ms=ue.isFinite,Ks=Gn.join,Ic=na(ot.keys,ot),Sn=ft.max,qn=ft.min,ia=Me.now,Mu=ue.parseInt,oa=ft.random,Fl=Gn.reverse,mo=ic(ue,"DataView"),aa=ic(ue,"Map"),ys=ic(ue,"Promise"),yo=ic(ue,"Set"),No=ic(ue,"WeakMap"),bs=ic(ot,"create"),Zs=No&&new No,Ba={},sa=oc(mo),Lu=oc(aa),Ff=oc(ys),Ac=oc(yo),ws=oc(No),la=Mo?Mo.prototype:n,$a=la?la.valueOf:n,Js=la?la.toString:n;function z(a){if(ir(a)&&!Ht(a)&&!(a instanceof $t)){if(a instanceof Sr)return a;if(Dt.call(a,"__wrapped__"))return Sb(a)}return new Sr(a)}var jo=function(){function a(){}return function(u){if(!Xn(u))return{};if(ps)return ps(u);a.prototype=u;var w=new a;return a.prototype=n,w}}();function Bo(){}function Sr(a,u){this.__wrapped__=a,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=n}z.templateSettings={escape:_n,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__=Ee,this.__views__=[]}function Nl(){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 Qs(){if(this.__filtered__){var a=new $t(this);a.__dir__=-1,a.__filtered__=!0}else a=this.clone(),a.__dir__*=-1;return a}function jl(){var a=this.__wrapped__.value(),u=this.__dir__,w=Ht(a),_=u<0,$=w?a.length:0,X=kO(0,$,this.__views__),ie=X.start,de=X.end,ve=de-ie,qe=_?de:ie-1,Xe=this.__iteratees__,Qe=Xe.length,ct=0,wt=qn(ve,this.__takeCount__);if(!w||!_&&$==ve&&wt==ve)return Xc(a,this.__actions__);var Ot=[];e:for(;ve--&&ct<wt;){qe+=u;for(var Kt=-1,_t=a[qe];++Kt<Qe;){var Qt=Xe[Kt],nn=Qt.iteratee,Wo=Qt.type,eo=nn(_t);if(Wo==ce)_t=eo;else if(!eo){if(Wo==He)continue e;break e}}Ot[ct++]=_t}return Ot}$t.prototype=jo(Bo.prototype),$t.prototype.constructor=$t;function bo(a){var u=-1,w=a==null?0:a.length;for(this.clear();++u<w;){var _=a[u];this.set(_[0],_[1])}}function Fu(){this.__data__=bs?bs(null):{},this.size=0}function Mc(a){var u=this.has(a)&&delete this.__data__[a];return this.size-=u?1:0,u}function Lc(a){var u=this.__data__;if(bs){var w=u[a];return w===f?n:w}return Dt.call(u,a)?u[a]:n}function Fc(a){var u=this.__data__;return bs?u[a]!==n:Dt.call(u,a)}function Nf(a,u){var w=this.__data__;return this.size+=this.has(a)?0:1,w[a]=bs&&u===n?f:u,this}bo.prototype.clear=Fu,bo.prototype.delete=Mc,bo.prototype.get=Lc,bo.prototype.has=Fc,bo.prototype.set=Nf;function wo(a){var u=-1,w=a==null?0:a.length;for(this.clear();++u<w;){var _=a[u];this.set(_[0],_[1])}}function jf(){this.__data__=[],this.size=0}function Bf(a){var u=this.__data__,w=qi(u,a);if(w<0)return!1;var _=u.length-1;return w==_?u.pop():Lo.call(u,w,1),--this.size,!0}function Nu(a){var u=this.__data__,w=qi(u,a);return w<0?n:u[w][1]}function el(a){return qi(this.__data__,a)>-1}function $f(a,u){var w=this.__data__,_=qi(w,a);return _<0?(++this.size,w.push([a,u])):w[_][1]=u,this}wo.prototype.clear=jf,wo.prototype.delete=Bf,wo.prototype.get=Nu,wo.prototype.has=el,wo.prototype.set=$f;function $o(a){var u=-1,w=a==null?0:a.length;for(this.clear();++u<w;){var _=a[u];this.set(_[0],_[1])}}function ju(){this.size=0,this.__data__={hash:new bo,map:new(aa||wo),string:new bo}}function Bl(a){var u=eh(this,a).delete(a);return this.size-=u?1:0,u}function Vf(a){return eh(this,a).get(a)}function Hf(a){return eh(this,a).has(a)}function Uf(a,u){var w=eh(this,a),_=w.size;return w.set(a,u),this.size+=w.size==_?0:1,this}$o.prototype.clear=ju,$o.prototype.delete=Bl,$o.prototype.get=Vf,$o.prototype.has=Hf,$o.prototype.set=Uf;function jr(a){var u=-1,w=a==null?0:a.length;for(this.__data__=new $o;++u<w;)this.add(a[u])}function Bu(a){return this.__data__.set(a,f),this}function $l(a){return this.__data__.has(a)}jr.prototype.add=jr.prototype.push=Bu,jr.prototype.has=$l;function Xt(a){var u=this.__data__=new wo(a);this.size=u.size}function wi(){this.__data__=new wo,this.size=0}function xs(a){var u=this.__data__,w=u.delete(a);return this.size=u.size,w}function Va(a){return this.__data__.get(a)}function Jt(a){return this.__data__.has(a)}function ua(a,u){var w=this.__data__;if(w instanceof wo){var _=w.__data__;if(!aa||_.length<i-1)return _.push([a,u]),this.size=++w.size,this;w=this.__data__=new $o(_)}return w.set(a,u),this.size=w.size,this}Xt.prototype.clear=wi,Xt.prototype.delete=xs,Xt.prototype.get=Va,Xt.prototype.has=Jt,Xt.prototype.set=ua;function tl(a,u){var w=Ht(a),_=!w&&ac(a),$=!w&&!_&&ru(a),X=!w&&!_&&!$&&nf(a),ie=w||_||$||X,de=ie?ye(a.length,xt):[],ve=de.length;for(var qe in a)(u||Dt.call(a,qe))&&!(ie&&(qe=="length"||$&&(qe=="offset"||qe=="parent")||X&&(qe=="buffer"||qe=="byteLength"||qe=="byteOffset")||dl(qe,ve)))&&de.push(qe);return de}function ti(a){var u=a.length;return u?a[qa(0,u-1)]:n}function xi(a,u){return th(Ur(a),Ua(u,0,a.length))}function xo(a){return th(Ur(a))}function $u(a,u,w){(w!==n&&!Qa(a[u],w)||w===n&&!(u in a))&&Si(a,u,w)}function Br(a,u,w){var _=a[u];(!(Dt.call(a,u)&&Qa(_,w))||w===n&&!(u in a))&&Si(a,u,w)}function qi(a,u){for(var w=a.length;w--;)if(Qa(a[w][0],u))return w;return-1}function Ha(a,u,w,_){return ca(a,function($,X,ie){u(_,$,w($),ie)}),_}function Nc(a,u){return a&&Ii(u,ri(u),a)}function Vu(a,u){return a&&Ii(u,ko(u),a)}function Si(a,u,w){u=="__proto__"&&ra?ra(a,u,{configurable:!0,enumerable:!0,value:w,writable:!0}):a[u]=w}function Hu(a,u){for(var w=-1,_=u.length,$=se(_),X=a==null;++w<_;)$[w]=X?n:wg(a,u[w]);return $}function Ua(a,u,w){return a===a&&(w!==n&&(a=a<=w?a:w),u!==n&&(a=a>=u?a:u)),a}function $r(a,u,w,_,$,X){var ie,de=u&g,ve=u&S,qe=u&C;if(w&&(ie=$?w(a,_,$,X):w(a)),ie!==n)return ie;if(!Xn(a))return a;var Xe=Ht(a);if(Xe){if(ie=OO(a),!de)return Ur(a,ie)}else{var Qe=Ai(a),ct=Qe==et||Qe==At;if(ru(a))return ga(a,de);if(Qe==Un||Qe==_e||ct&&!$){if(ie=ve||ct?{}:hb(a),!de)return ve?Yf(a,Vu(ie,a)):Qc(a,Nc(ie,a))}else{if(!Zt[Qe])return $?a:{};ie=_O(a,Qe,de)}}X||(X=new Xt);var wt=X.get(a);if(wt)return wt;X.set(a,ie),Hb(a)?a.forEach(function(_t){ie.add($r(_t,u,w,_t,a,X))}):$b(a)&&a.forEach(function(_t,Qt){ie.set(Qt,$r(_t,u,w,Qt,a,X))});var Ot=qe?ve?ag:og:ve?ko:ri,Kt=Xe?n:Ot(a);return ne(Kt||a,function(_t,Qt){Kt&&(Qt=_t,_t=a[Qt]),Br(ie,Qt,$r(_t,u,w,Qt,a,X))}),ie}function Uu(a){var u=ri(a);return function(w){return Wu(w,a,u)}}function Wu(a,u,w){var _=w.length;if(a==null)return!_;for(a=ot(a);_--;){var $=w[_],X=u[$],ie=a[$];if(ie===n&&!($ in a)||!X(ie))return!1}return!0}function zu(a,u,w){if(typeof a!="function")throw new Vt(s);return qf(function(){a.apply(n,w)},u)}function Wa(a,u,w,_){var $=-1,X=xe,ie=!0,de=a.length,ve=[],qe=u.length;if(!de)return ve;w&&(u=st(u,gt(w))),_?(X=Ye,ie=!1):u.length>=i&&(X=Tt,ie=!1,u=new jr(u));e:for(;++$<de;){var Xe=a[$],Qe=w==null?Xe:w(Xe);if(Xe=_||Xe!==0?Xe:0,ie&&Qe===Qe){for(var ct=qe;ct--;)if(u[ct]===Qe)continue e;ve.push(Xe)}else X(u,Qe,_)||ve.push(Xe)}return ve}var ca=m(Ti),Yu=m(Hl,!0);function jc(a,u){var w=!0;return ca(a,function(_,$,X){return w=!!u(_,$,X),w}),w}function Vl(a,u,w){for(var _=-1,$=a.length;++_<$;){var X=a[_],ie=u(X);if(ie!=null&&(de===n?ie===ie&&!Uo(ie):w(ie,de)))var de=ie,ve=X}return ve}function Wf(a,u,w,_){var $=a.length;for(w=Gt(w),w<0&&(w=-w>$?0:$+w),_=_===n||_>$?$:Gt(_),_<0&&(_+=$),_=w>_?0:Wb(_);w<_;)a[w++]=u;return a}function Bc(a,u){var w=[];return ca(a,function(_,$,X){u(_,$,X)&&w.push(_)}),w}function fr(a,u,w,_,$){var X=-1,ie=a.length;for(w||(w=RO),$||($=[]);++X<ie;){var de=a[X];u>0&&w(de)?u>1?fr(de,u-1,w,_,$):Ct($,de):_||($[$.length]=de)}return $}var Gu=l(),$c=l(!0);function Ti(a,u){return a&&Gu(a,u,ri)}function Hl(a,u){return a&&$c(a,u,ri)}function Ss(a,u){return Ae(u,function(w){return hl(a[w])})}function fa(a,u){u=Ci(u,a);for(var w=0,_=u.length;a!=null&&w<_;)a=a[Rs(u[w++])];return w&&w==_?a:n}function nl(a,u,w){var _=u(a);return Ht(a)?_:Ct(_,w(a))}function nr(a){return a==null?a===n?hn:gr:Fo&&Fo in ot(a)?EO(a):jO(a)}function za(a,u){return a>u}function Ul(a,u){return a!=null&&Dt.call(a,u)}function Ts(a,u){return a!=null&&u in ot(a)}function Wl(a,u,w){return a>=qn(u,w)&&a<Sn(u,w)}function Cs(a,u,w){for(var _=w?Ye:xe,$=a[0].length,X=a.length,ie=X,de=se(X),ve=1/0,qe=[];ie--;){var Xe=a[ie];ie&&u&&(Xe=st(Xe,gt(u))),ve=qn(Xe.length,ve),de[ie]=!w&&(u||$>=120&&Xe.length>=120)?new jr(ie&&Xe):n}Xe=a[0];var Qe=-1,ct=de[0];e:for(;++Qe<$&&qe.length<ve;){var wt=Xe[Qe],Ot=u?u(wt):wt;if(wt=w||wt!==0?wt:0,!(ct?Tt(ct,Ot):_(qe,Ot,w))){for(ie=X;--ie;){var Kt=de[ie];if(!(Kt?Tt(Kt,Ot):_(a[ie],Ot,w)))continue e}ct&&ct.push(Ot),qe.push(wt)}}return qe}function zl(a,u,w,_){return Ti(a,function($,X,ie){u(_,w($),X,ie)}),_}function So(a,u,w){u=Ci(u,a),a=mb(a,u);var _=a==null?a:a[Rs(ma(u))];return _==null?n:H(_,a,w)}function Yl(a){return ir(a)&&nr(a)==_e}function Ya(a){return ir(a)&&nr(a)==ai}function Vc(a){return ir(a)&&nr(a)==ht}function rl(a,u,w,_,$){return a===u?!0:a==null||u==null||!ir(a)&&!ir(u)?a!==a&&u!==u:Es(a,u,w,_,rl,$)}function Es(a,u,w,_,$,X){var ie=Ht(a),de=Ht(u),ve=ie?Ne:Ai(a),qe=de?Ne:Ai(u);ve=ve==_e?Un:ve,qe=qe==_e?Un:qe;var Xe=ve==Un,Qe=qe==Un,ct=ve==qe;if(ct&&ru(a)){if(!ru(u))return!1;ie=!0,Xe=!1}if(ct&&!Xe)return X||(X=new Xt),ie||nf(a)?cb(a,u,w,_,$,X):TO(a,u,ve,w,_,$,X);if(!(w&P)){var wt=Xe&&Dt.call(a,"__wrapped__"),Ot=Qe&&Dt.call(u,"__wrapped__");if(wt||Ot){var Kt=wt?a.value():a,_t=Ot?u.value():u;return X||(X=new Xt),$(Kt,_t,w,_,X)}}return ct?(X||(X=new Xt),CO(a,u,w,_,$,X)):!1}function ks(a){return ir(a)&&Ai(a)==Lt}function qu(a,u,w,_){var $=w.length,X=$,ie=!_;if(a==null)return!X;for(a=ot(a);$--;){var de=w[$];if(ie&&de[2]?de[1]!==a[de[0]]:!(de[0]in a))return!1}for(;++$<X;){de=w[$];var ve=de[0],qe=a[ve],Xe=de[1];if(ie&&de[2]){if(qe===n&&!(ve in a))return!1}else{var Qe=new Xt;if(_)var ct=_(qe,Xe,ve,a,u,Qe);if(!(ct===n?rl(Xe,qe,P|A,_,Qe):ct))return!1}}return!0}function Hc(a){if(!Xn(a)||AO(a))return!1;var u=hl(a)?Au:Xr;return u.test(oc(a))}function Ga(a){return ir(a)&&nr(a)==Er}function Gl(a){return ir(a)&&Ai(a)==Zn}function Vo(a){return ir(a)&&sh(a.length)&&!!qt[nr(a)]}function ql(a){return typeof a=="function"?a:a==null?Do:typeof a=="object"?Ht(a)?ol(a[0],a[1]):To(a):t0(a)}function Ho(a){if(!Gf(a))return Ic(a);var u=[];for(var w in ot(a))Dt.call(a,w)&&w!="constructor"&&u.push(w);return u}function il(a){if(!Xn(a))return NO(a);var u=Gf(a),w=[];for(var _ in a)_=="constructor"&&(u||!Dt.call(a,_))||w.push(_);return w}function Xi(a,u){return a<u}function Ki(a,u){var w=-1,_=Eo(a)?se(a.length):[];return ca(a,function($,X,ie){_[++w]=u($,X,ie)}),_}function To(a){var u=lg(a);return u.length==1&&u[0][2]?gb(u[0][0],u[0][1]):function(w){return w===a||qu(w,a,u)}}function ol(a,u){return cg(a)&&pb(u)?gb(Rs(a),u):function(w){var _=wg(w,a);return _===n&&_===u?xg(w,a):rl(u,_,P|A)}}function da(a,u,w,_,$){a!==u&&Gu(u,function(X,ie){if($||($=new Xt),Xn(X))Zi(a,u,ie,w,da,_,$);else{var de=_?_(dg(a,ie),X,ie+"",a,u,$):n;de===n&&(de=X),$u(a,ie,de)}},ko)}function Zi(a,u,w,_,$,X,ie){var de=dg(a,w),ve=dg(u,w),qe=ie.get(ve);if(qe){$u(a,w,qe);return}var Xe=X?X(de,ve,w+"",a,u,ie):n,Qe=Xe===n;if(Qe){var ct=Ht(ve),wt=!ct&&ru(ve),Ot=!ct&&!wt&&nf(ve);Xe=ve,ct||wt||Ot?Ht(de)?Xe=de:hr(de)?Xe=Ur(de):wt?(Qe=!1,Xe=ga(ve,!0)):Ot?(Qe=!1,Xe=ul(ve,!0)):Xe=[]:Xf(ve)||ac(ve)?(Xe=de,ac(de)?Xe=zb(de):(!Xn(de)||hl(de))&&(Xe=hb(ve))):Qe=!1}Qe&&(ie.set(ve,Xe),$(Xe,ve,_,X,ie),ie.delete(ve)),$u(a,w,Xe)}function Ds(a,u){var w=a.length;if(w)return u+=u<0?w:0,dl(u,w)?a[u]:n}function Xl(a,u,w){u.length?u=st(u,function(X){return Ht(X)?function(ie){return fa(ie,X.length===1?X[0]:X)}:X}):u=[Do];var _=-1;u=st(u,gt(Et()));var $=Ki(a,function(X,ie,de){var ve=st(u,function(qe){return qe(X)});return{criteria:ve,index:++_,value:X}});return ee($,function(X,ie){return nu(X,ie,w)})}function al(a,u){return Os(a,u,function(w,_){return xg(a,_)})}function Os(a,u,w){for(var _=-1,$=u.length,X={};++_<$;){var ie=u[_],de=fa(a,ie);w(de,ie)&&Xa(X,Ci(ie,a),de)}return X}function Uc(a){return function(u){return fa(u,a)}}function Xu(a,u,w,_){var $=_?fo:en,X=-1,ie=u.length,de=a;for(a===u&&(u=Ur(u)),w&&(de=st(a,gt(w)));++X<ie;)for(var ve=0,qe=u[X],Xe=w?w(qe):qe;(ve=$(de,Xe,ve,_))>-1;)de!==a&&Lo.call(de,ve,1),Lo.call(a,ve,1);return a}function Ku(a,u){for(var w=a?u.length:0,_=w-1;w--;){var $=u[w];if(w==_||$!==X){var X=$;dl($)?Lo.call(a,$,1):Hr(a,$)}}return a}function qa(a,u){return a+ja(oa()*(u-a+1))}function Zu(a,u,w,_){for(var $=-1,X=Sn(gs((u-a)/(w||1)),0),ie=se(X);X--;)ie[_?X:++$]=a,a+=w;return ie}function Kl(a,u){var w="";if(!a||u<1||u>Ge)return w;do u%2&&(w+=a),u=ja(u/2),u&&(a+=a);while(u);return w}function Bt(a,u){return hg(vb(a,u,Do),a+"")}function sl(a){return ti(rf(a))}function Ju(a,u){var w=rf(a);return th(w,Ua(u,0,w.length))}function Xa(a,u,w,_){if(!Xn(a))return a;u=Ci(u,a);for(var $=-1,X=u.length,ie=X-1,de=a;de!=null&&++$<X;){var ve=Rs(u[$]),qe=w;if(ve==="__proto__"||ve==="constructor"||ve==="prototype")return a;if($!=ie){var Xe=de[ve];qe=_?_(Xe,ve,de):n,qe===n&&(qe=Xn(Xe)?Xe:dl(u[$+1])?[]:{})}Br(de,ve,qe),de=de[ve]}return a}var Zl=Zs?function(a,u){return Zs.set(a,u),a}:Do,Wc=ra?function(a,u){return ra(a,"toString",{configurable:!0,enumerable:!1,value:Tg(u),writable:!0})}:Do;function zc(a){return th(rf(a))}function ni(a,u,w){var _=-1,$=a.length;u<0&&(u=-u>$?0:$+u),w=w>$?$:w,w<0&&(w+=$),$=u>w?0:w-u>>>0,u>>>=0;for(var X=se($);++_<$;)X[_]=a[_+u];return X}function Yc(a,u){var w;return ca(a,function(_,$,X){return w=u(_,$,X),!w}),!!w}function Jl(a,u,w){var _=0,$=a==null?_:a.length;if(typeof u=="number"&&u===u&&$<=$e){for(;_<$;){var X=_+$>>>1,ie=a[X];ie!==null&&!Uo(ie)&&(w?ie<=u:ie<u)?_=X+1:$=X}return $}return Qu(a,u,Do,w)}function Qu(a,u,w,_){var $=0,X=a==null?0:a.length;if(X===0)return 0;u=w(u);for(var ie=u!==u,de=u===null,ve=Uo(u),qe=u===n;$<X;){var Xe=ja(($+X)/2),Qe=w(a[Xe]),ct=Qe!==n,wt=Qe===null,Ot=Qe===Qe,Kt=Uo(Qe);if(ie)var _t=_||Ot;else qe?_t=Ot&&(_||ct):de?_t=Ot&&ct&&(_||!wt):ve?_t=Ot&&ct&&!wt&&(_||!Kt):wt||Kt?_t=!1:_t=_?Qe<=u:Qe<u;_t?$=Xe+1:X=Xe}return qn(X,Ue)}function ec(a,u){for(var w=-1,_=a.length,$=0,X=[];++w<_;){var ie=a[w],de=u?u(ie):ie;if(!w||!Qa(de,ve)){var ve=de;X[$++]=ie===0?0:ie}}return X}function Gc(a){return typeof a=="number"?a:Uo(a)?we:+a}function Vr(a){if(typeof a=="string")return a;if(Ht(a))return st(a,Vr)+"";if(Uo(a))return Js?Js.call(a):"";var u=a+"";return u=="0"&&1/a==-1/0?"-0":u}function ha(a,u,w){var _=-1,$=xe,X=a.length,ie=!0,de=[],ve=de;if(w)ie=!1,$=Ye;else if(X>=i){var qe=u?null:Ps(a);if(qe)return go(qe);ie=!1,$=Tt,ve=new jr}else ve=u?[]:de;e:for(;++_<X;){var Xe=a[_],Qe=u?u(Xe):Xe;if(Xe=w||Xe!==0?Xe:0,ie&&Qe===Qe){for(var ct=ve.length;ct--;)if(ve[ct]===Qe)continue e;u&&ve.push(Qe),de.push(Xe)}else $(ve,Qe,w)||(ve!==de&&ve.push(Qe),de.push(Xe))}return de}function Hr(a,u){return u=Ci(u,a),a=mb(a,u),a==null||delete a[Rs(ma(u))]}function qc(a,u,w,_){return Xa(a,u,w(fa(a,u)),_)}function Ka(a,u,w,_){for(var $=a.length,X=_?$:-1;(_?X--:++X<$)&&u(a[X],X,a););return w?ni(a,_?0:X,_?X+1:$):ni(a,_?X+1:0,_?$:X)}function Xc(a,u){var w=a;return w instanceof $t&&(w=w.value()),kt(u,function(_,$){return $.func.apply($.thisArg,Ct([_],$.args))},w)}function dr(a,u,w){var _=a.length;if(_<2)return _?ha(a[0]):[];for(var $=-1,X=se(_);++$<_;)for(var ie=a[$],de=-1;++de<_;)de!=$&&(X[$]=Wa(X[$]||ie,a[de],u,w));return ha(fr(X,1),u,w)}function Kc(a,u,w){for(var _=-1,$=a.length,X=u.length,ie={};++_<$;){var de=_<X?u[_]:n;w(ie,a[_],de)}return ie}function Ql(a){return hr(a)?a:[]}function eu(a){return typeof a=="function"?a:Do}function Ci(a,u){return Ht(a)?a:cg(a,u)?[a]:xb(vn(a))}var Zc=Bt;function pa(a,u,w){var _=a.length;return w=w===n?_:w,!u&&w>=_?a:ni(a,u,w)}var tu=Lf||function(a){return un.clearTimeout(a)};function ga(a,u){if(u)return a.slice();var w=a.length,_=qs?qs(w):new a.constructor(w);return a.copy(_),_}function Za(a){var u=new a.constructor(a.byteLength);return new Gs(u).set(new Gs(a)),u}function zf(a,u){var w=u?Za(a.buffer):a.buffer;return new a.constructor(w,a.byteOffset,a.byteLength)}function tc(a){var u=new a.constructor(a.source,Or.exec(a));return u.lastIndex=a.lastIndex,u}function ll(a){return $a?ot($a.call(a)):{}}function ul(a,u){var w=u?Za(a.buffer):a.buffer;return new a.constructor(w,a.byteOffset,a.length)}function nc(a,u){if(a!==u){var w=a!==n,_=a===null,$=a===a,X=Uo(a),ie=u!==n,de=u===null,ve=u===u,qe=Uo(u);if(!de&&!qe&&!X&&a>u||X&&ie&&ve&&!de&&!qe||_&&ie&&ve||!w&&ve||!$)return 1;if(!_&&!X&&!qe&&a<u||qe&&w&&$&&!_&&!X||de&&w&&$||!ie&&$||!ve)return-1}return 0}function nu(a,u,w){for(var _=-1,$=a.criteria,X=u.criteria,ie=$.length,de=w.length;++_<ie;){var ve=nc($[_],X[_]);if(ve){if(_>=de)return ve;var qe=w[_];return ve*(qe=="desc"?-1:1)}}return a.index-u.index}function rc(a,u,w,_){for(var $=-1,X=a.length,ie=w.length,de=-1,ve=u.length,qe=Sn(X-ie,0),Xe=se(ve+qe),Qe=!_;++de<ve;)Xe[de]=u[de];for(;++$<ie;)(Qe||$<X)&&(Xe[w[$]]=a[$]);for(;qe--;)Xe[de++]=a[$++];return Xe}function Jc(a,u,w,_){for(var $=-1,X=a.length,ie=-1,de=w.length,ve=-1,qe=u.length,Xe=Sn(X-de,0),Qe=se(Xe+qe),ct=!_;++$<Xe;)Qe[$]=a[$];for(var wt=$;++ve<qe;)Qe[wt+ve]=u[ve];for(;++ie<de;)(ct||$<X)&&(Qe[wt+w[ie]]=a[$++]);return Qe}function Ur(a,u){var w=-1,_=a.length;for(u||(u=se(_));++w<_;)u[w]=a[w];return u}function Ii(a,u,w,_){var $=!w;w||(w={});for(var X=-1,ie=u.length;++X<ie;){var de=u[X],ve=_?_(w[de],a[de],de,w,a):n;ve===n&&(ve=a[de]),$?Si(w,de,ve):Br(w,de,ve)}return w}function Qc(a,u){return Ii(a,ug(a),u)}function Yf(a,u){return Ii(a,fb(a),u)}function cl(a,u){return function(w,_){var $=Ht(w)?ae:Ha,X=u?u():{};return $(w,a,Et(_,2),X)}}function _s(a){return Bt(function(u,w){var _=-1,$=w.length,X=$>1?w[$-1]:n,ie=$>2?w[2]:n;for(X=a.length>3&&typeof X=="function"?($--,X):n,ie&&Qi(w[0],w[1],ie)&&(X=$<3?n:X,$=1),u=ot(u);++_<$;){var de=w[_];de&&a(u,de,_,X)}return u})}function m(a,u){return function(w,_){if(w==null)return w;if(!Eo(w))return a(w,_);for(var $=w.length,X=u?$:-1,ie=ot(w);(u?X--:++X<$)&&_(ie[X],X,ie)!==!1;);return w}}function l(a){return function(u,w,_){for(var $=-1,X=ot(u),ie=_(u),de=ie.length;de--;){var ve=ie[a?de:++$];if(w(X[ve],ve,X)===!1)break}return u}}function d(a,u,w){var _=u&M,$=I(a);function X(){var ie=this&&this!==un&&this instanceof X?$:a;return ie.apply(_?w:this,arguments)}return X}function v(a){return function(u){u=vn(u);var w=Qr(u)?fn(u):n,_=w?w[0]:u.charAt(0),$=w?pa(w,1).join(""):u.slice(1);return _[a]()+$}}function x(a){return function(u){return kt(Qb(Jb(u).replace(Aa,"")),a,"")}}function I(a){return function(){var u=arguments;switch(u.length){case 0:return new a;case 1:return new a(u[0]);case 2:return new a(u[0],u[1]);case 3:return new a(u[0],u[1],u[2]);case 4:return new a(u[0],u[1],u[2],u[3]);case 5:return new a(u[0],u[1],u[2],u[3],u[4]);case 6:return new a(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new a(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var w=jo(a.prototype),_=a.apply(w,u);return Xn(_)?_:w}}function B(a,u,w){var _=I(a);function $(){for(var X=arguments.length,ie=se(X),de=X,ve=tf($);de--;)ie[de]=arguments[de];var qe=X<3&&ie[0]!==ve&&ie[X-1]!==ve?[]:ei(ie,ve);if(X-=qe.length,X<w)return va(a,u,be,$.placeholder,n,ie,qe,n,n,w-X);var Xe=this&&this!==un&&this instanceof $?_:a;return H(Xe,this,ie)}return $}function Y(a){return function(u,w,_){var $=ot(u);if(!Eo(u)){var X=Et(w,3);u=ri(u),w=function(de){return X($[de],de,$)}}var ie=a(u,w,_);return ie>-1?$[X?u[ie]:ie]:n}}function re(a){return fl(function(u){var w=u.length,_=w,$=Sr.prototype.thru;for(a&&u.reverse();_--;){var X=u[_];if(typeof X!="function")throw new Vt(s);if($&&!ie&&Qd(X)=="wrapper")var ie=new Sr([],!0)}for(_=ie?_:w;++_<w;){X=u[_];var de=Qd(X),ve=de=="wrapper"?sg(X):n;ve&&fg(ve[0])&&ve[1]==(T|U|K|he)&&!ve[4].length&&ve[9]==1?ie=ie[Qd(ve[0])].apply(ie,ve[3]):ie=X.length==1&&fg(X)?ie[de]():ie.thru(X)}return function(){var qe=arguments,Xe=qe[0];if(ie&&qe.length==1&&Ht(Xe))return ie.plant(Xe).value();for(var Qe=0,ct=w?u[Qe].apply(this,qe):Xe;++Qe<w;)ct=u[Qe].call(this,ct);return ct}})}function be(a,u,w,_,$,X,ie,de,ve,qe){var Xe=u&T,Qe=u&M,ct=u&R,wt=u&(U|J),Ot=u&oe,Kt=ct?n:I(a);function _t(){for(var Qt=arguments.length,nn=se(Qt),Wo=Qt;Wo--;)nn[Wo]=arguments[Wo];if(wt)var eo=tf(_t),zo=xn(nn,eo);if(_&&(nn=rc(nn,_,$,wt)),X&&(nn=Jc(nn,X,ie,wt)),Qt-=zo,wt&&Qt<qe){var pr=ei(nn,eo);return va(a,u,be,_t.placeholder,w,nn,pr,de,ve,qe-Qt)}var es=Qe?w:this,gl=ct?es[a]:a;return Qt=nn.length,de?nn=BO(nn,de):Ot&&Qt>1&&nn.reverse(),Xe&&ve<Qt&&(nn.length=ve),this&&this!==un&&this instanceof _t&&(gl=Kt||I(gl)),gl.apply(es,nn)}return _t}function We(a,u){return function(w,_){return zl(w,a,u(_),{})}}function Ze(a,u){return function(w,_){var $;if(w===n&&_===n)return u;if(w!==n&&($=w),_!==n){if($===n)return _;typeof w=="string"||typeof _=="string"?(w=Vr(w),_=Vr(_)):(w=Gc(w),_=Gc(_)),$=a(w,_)}return $}}function it(a){return fl(function(u){return u=st(u,gt(Et())),Bt(function(w){var _=this;return a(u,function($){return H($,_,w)})})})}function St(a,u){u=u===n?" ":Vr(u);var w=u.length;if(w<2)return w?Kl(u,a):u;var _=Kl(u,gs(a/vo(u)));return Qr(u)?pa(fn(_),0,a).join(""):_.slice(0,a)}function tn(a,u,w,_){var $=u&M,X=I(a);function ie(){for(var de=-1,ve=arguments.length,qe=-1,Xe=_.length,Qe=se(Xe+ve),ct=this&&this!==un&&this instanceof ie?X:a;++qe<Xe;)Qe[qe]=_[qe];for(;ve--;)Qe[qe++]=arguments[++de];return H(ct,$?w:this,Qe)}return ie}function rr(a){return function(u,w,_){return _&&typeof _!="number"&&Qi(u,w,_)&&(w=_=n),u=pl(u),w===n?(w=u,u=0):w=pl(w),_=_===n?u<w?1:-1:pl(_),Zu(u,w,_,a)}}function Co(a){return function(u,w){return typeof u=="string"&&typeof w=="string"||(u=ya(u),w=ya(w)),a(u,w)}}function va(a,u,w,_,$,X,ie,de,ve,qe){var Xe=u&U,Qe=Xe?ie:n,ct=Xe?n:ie,wt=Xe?X:n,Ot=Xe?n:X;u|=Xe?K:le,u&=~(Xe?le:K),u&V||(u&=-4);var Kt=[a,u,$,wt,Qe,Ot,ct,de,ve,qe],_t=w.apply(n,Kt);return fg(a)&&yb(_t,Kt),_t.placeholder=_,bb(_t,a,u)}function Ji(a){var u=ft[a];return function(w,_){if(w=ya(w),_=_==null?0:qn(Gt(_),292),_&&ms(w)){var $=(vn(w)+"e").split("e"),X=u($[0]+"e"+(+$[1]+_));return $=(vn(X)+"e").split("e"),+($[0]+"e"+(+$[1]-_))}return u(w)}}var Ps=yo&&1/go(new yo([,-0]))[1]==Ie?function(a){return new yo(a)}:kg;function ef(a){return function(u){var w=Ai(u);return w==Lt?cs(u):w==Zn?Ys(u):Le(u,a(u))}}function Ja(a,u,w,_,$,X,ie,de){var ve=u&R;if(!ve&&typeof a!="function")throw new Vt(s);var qe=_?_.length:0;if(qe||(u&=-97,_=$=n),ie=ie===n?ie:Sn(Gt(ie),0),de=de===n?de:Gt(de),qe-=$?$.length:0,u&le){var Xe=_,Qe=$;_=$=n}var ct=ve?n:sg(a),wt=[a,u,w,_,$,Xe,Qe,X,ie,de];if(ct&&FO(wt,ct),a=wt[0],u=wt[1],w=wt[2],_=wt[3],$=wt[4],de=wt[9]=wt[9]===n?ve?0:a.length:Sn(wt[9]-qe,0),!de&&u&(U|J)&&(u&=-25),!u||u==M)var Ot=d(a,u,w);else u==U||u==J?Ot=B(a,u,de):(u==K||u==(M|K))&&!$.length?Ot=tn(a,u,w,_):Ot=be.apply(n,wt);var Kt=ct?Zl:yb;return bb(Kt(Ot,wt),a,u)}function lb(a,u,w,_){return a===n||Qa(a,Ln[w])&&!Dt.call(_,w)?u:a}function ub(a,u,w,_,$,X){return Xn(a)&&Xn(u)&&(X.set(u,a),da(a,u,n,ub,X),X.delete(u)),a}function SO(a){return Xf(a)?n:a}function cb(a,u,w,_,$,X){var ie=w&P,de=a.length,ve=u.length;if(de!=ve&&!(ie&&ve>de))return!1;var qe=X.get(a),Xe=X.get(u);if(qe&&Xe)return qe==u&&Xe==a;var Qe=-1,ct=!0,wt=w&A?new jr:n;for(X.set(a,u),X.set(u,a);++Qe<de;){var Ot=a[Qe],Kt=u[Qe];if(_)var _t=ie?_(Kt,Ot,Qe,u,a,X):_(Ot,Kt,Qe,a,u,X);if(_t!==n){if(_t)continue;ct=!1;break}if(wt){if(!cn(u,function(Qt,nn){if(!Tt(wt,nn)&&(Ot===Qt||$(Ot,Qt,w,_,X)))return wt.push(nn)})){ct=!1;break}}else if(!(Ot===Kt||$(Ot,Kt,w,_,X))){ct=!1;break}}return X.delete(a),X.delete(u),ct}function TO(a,u,w,_,$,X,ie){switch(w){case an:if(a.byteLength!=u.byteLength||a.byteOffset!=u.byteOffset)return!1;a=a.buffer,u=u.buffer;case ai:return!(a.byteLength!=u.byteLength||!X(new Gs(a),new Gs(u)));case at:case ht:case Hn:return Qa(+a,+u);case mt:return a.name==u.name&&a.message==u.message;case Er:case sn:return a==u+"";case Lt:var de=cs;case Zn:var ve=_&P;if(de||(de=go),a.size!=u.size&&!ve)return!1;var qe=ie.get(a);if(qe)return qe==u;_|=A,ie.set(a,u);var Xe=cb(de(a),de(u),_,$,X,ie);return ie.delete(a),Xe;case dn:if($a)return $a.call(a)==$a.call(u)}return!1}function CO(a,u,w,_,$,X){var ie=w&P,de=og(a),ve=de.length,qe=og(u),Xe=qe.length;if(ve!=Xe&&!ie)return!1;for(var Qe=ve;Qe--;){var ct=de[Qe];if(!(ie?ct in u:Dt.call(u,ct)))return!1}var wt=X.get(a),Ot=X.get(u);if(wt&&Ot)return wt==u&&Ot==a;var Kt=!0;X.set(a,u),X.set(u,a);for(var _t=ie;++Qe<ve;){ct=de[Qe];var Qt=a[ct],nn=u[ct];if(_)var Wo=ie?_(nn,Qt,ct,u,a,X):_(Qt,nn,ct,a,u,X);if(!(Wo===n?Qt===nn||$(Qt,nn,w,_,X):Wo)){Kt=!1;break}_t||(_t=ct=="constructor")}if(Kt&&!_t){var eo=a.constructor,zo=u.constructor;eo!=zo&&"constructor"in a&&"constructor"in u&&!(typeof eo=="function"&&eo instanceof eo&&typeof zo=="function"&&zo instanceof zo)&&(Kt=!1)}return X.delete(a),X.delete(u),Kt}function fl(a){return hg(vb(a,n,Eb),a+"")}function og(a){return nl(a,ri,ug)}function ag(a){return nl(a,ko,fb)}var sg=Zs?function(a){return Zs.get(a)}:kg;function Qd(a){for(var u=a.name+"",w=Ba[u],_=Dt.call(Ba,u)?w.length:0;_--;){var $=w[_],X=$.func;if(X==null||X==a)return $.name}return u}function tf(a){var u=Dt.call(z,"placeholder")?z:a;return u.placeholder}function Et(){var a=z.iteratee||Cg;return a=a===Cg?ql:a,arguments.length?a(arguments[0],arguments[1]):a}function eh(a,u){var w=a.__data__;return IO(u)?w[typeof u=="string"?"string":"hash"]:w.map}function lg(a){for(var u=ri(a),w=u.length;w--;){var _=u[w],$=a[_];u[w]=[_,$,pb($)]}return u}function ic(a,u){var w=po(a,u);return Hc(w)?w:n}function EO(a){var u=Dt.call(a,Fo),w=a[Fo];try{a[Fo]=n;var _=!0}catch{}var $=Ao.call(a);return _&&(u?a[Fo]=w:delete a[Fo]),$}var ug=vs?function(a){return a==null?[]:(a=ot(a),Ae(vs(a),function(u){return Al.call(a,u)}))}:Dg,fb=vs?function(a){for(var u=[];a;)Ct(u,ug(a)),a=Na(a);return u}:Dg,Ai=nr;(mo&&Ai(new mo(new ArrayBuffer(1)))!=an||aa&&Ai(new aa)!=Lt||ys&&Ai(ys.resolve())!=Cn||yo&&Ai(new yo)!=Zn||No&&Ai(new No)!=dt)&&(Ai=function(a){var u=nr(a),w=u==Un?a.constructor:n,_=w?oc(w):"";if(_)switch(_){case sa:return an;case Lu:return Lt;case Ff:return Cn;case Ac:return Zn;case ws:return dt}return u});function kO(a,u,w){for(var _=-1,$=w.length;++_<$;){var X=w[_],ie=X.size;switch(X.type){case"drop":a+=ie;break;case"dropRight":u-=ie;break;case"take":u=qn(u,a+ie);break;case"takeRight":a=Sn(a,u-ie);break}}return{start:a,end:u}}function DO(a){var u=a.match(Ia);return u?u[1].split(qr):[]}function db(a,u,w){u=Ci(u,a);for(var _=-1,$=u.length,X=!1;++_<$;){var ie=Rs(u[_]);if(!(X=a!=null&&w(a,ie)))break;a=a[ie]}return X||++_!=$?X:($=a==null?0:a.length,!!$&&sh($)&&dl(ie,$)&&(Ht(a)||ac(a)))}function OO(a){var u=a.length,w=new a.constructor(u);return u&&typeof a[0]=="string"&&Dt.call(a,"index")&&(w.index=a.index,w.input=a.input),w}function hb(a){return typeof a.constructor=="function"&&!Gf(a)?jo(Na(a)):{}}function _O(a,u,w){var _=a.constructor;switch(u){case ai:return Za(a);case at:case ht:return new _(+a);case an:return zf(a,w);case Bi:case $i:case Vi:case kr:case jn:case Dr:case vr:case zr:case Yr:return ul(a,w);case Lt:return new _;case Hn:case sn:return new _(a);case Er:return tc(a);case Zn:return new _;case dn:return ll(a)}}function PO(a,u){var w=u.length;if(!w)return a;var _=w-1;return u[_]=(w>1?"& ":"")+u[_],u=u.join(w>2?", ":" "),a.replace(Ra,`{
|
|
144
|
+
/* [wrapped with `+u+`] */
|
|
145
|
+
`)}function RO(a){return Ht(a)||ac(a)||!!(Ml&&a&&a[Ml])}function dl(a,u){var w=typeof a;return u=u??Ge,!!u&&(w=="number"||w!="symbol"&&Pr.test(a))&&a>-1&&a%1==0&&a<u}function Qi(a,u,w){if(!Xn(w))return!1;var _=typeof u;return(_=="number"?Eo(w)&&dl(u,w.length):_=="string"&&u in w)?Qa(w[u],a):!1}function cg(a,u){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)||u!=null&&a in ot(u)}function IO(a){var u=typeof a;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?a!=="__proto__":a===null}function fg(a){var u=Qd(a),w=z[u];if(typeof w!="function"||!(u in $t.prototype))return!1;if(a===w)return!0;var _=sg(w);return!!_&&a===_[0]}function AO(a){return!!gn&&gn in a}var MO=zt?hl:Og;function Gf(a){var u=a&&a.constructor,w=typeof u=="function"&&u.prototype||Ln;return a===w}function pb(a){return a===a&&!Xn(a)}function gb(a,u){return function(w){return w==null?!1:w[a]===u&&(u!==n||a in ot(w))}}function LO(a){var u=oh(a,function(_){return w.size===p&&w.clear(),_}),w=u.cache;return u}function FO(a,u){var w=a[1],_=u[1],$=w|_,X=$<(M|R|T),ie=_==T&&w==U||_==T&&w==he&&a[7].length<=u[8]||_==(T|he)&&u[7].length<=u[8]&&w==U;if(!(X||ie))return a;_&M&&(a[2]=u[2],$|=w&M?0:V);var de=u[3];if(de){var ve=a[3];a[3]=ve?rc(ve,de,u[4]):de,a[4]=ve?ei(a[3],y):u[4]}return de=u[5],de&&(ve=a[5],a[5]=ve?Jc(ve,de,u[6]):de,a[6]=ve?ei(a[5],y):u[6]),de=u[7],de&&(a[7]=de),_&T&&(a[8]=a[8]==null?u[8]:qn(a[8],u[8])),a[9]==null&&(a[9]=u[9]),a[0]=u[0],a[1]=$,a}function NO(a){var u=[];if(a!=null)for(var w in ot(a))u.push(w);return u}function jO(a){return Ao.call(a)}function vb(a,u,w){return u=Sn(u===n?a.length-1:u,0),function(){for(var _=arguments,$=-1,X=Sn(_.length-u,0),ie=se(X);++$<X;)ie[$]=_[u+$];$=-1;for(var de=se(u+1);++$<u;)de[$]=_[$];return de[u]=w(ie),H(a,this,de)}}function mb(a,u){return u.length<2?a:fa(a,ni(u,0,-1))}function BO(a,u){for(var w=a.length,_=qn(u.length,w),$=Ur(a);_--;){var X=u[_];a[_]=dl(X,w)?$[X]:n}return a}function dg(a,u){if(!(u==="constructor"&&typeof a[u]=="function")&&u!="__proto__")return a[u]}var yb=wb(Zl),qf=Rc||function(a,u){return un.setTimeout(a,u)},hg=wb(Wc);function bb(a,u,w){var _=u+"";return hg(a,PO(_,$O(DO(_),w)))}function wb(a){var u=0,w=0;return function(){var _=ia(),$=Be-(_-w);if(w=_,$>0){if(++u>=Pe)return arguments[0]}else u=0;return a.apply(n,arguments)}}function th(a,u){var w=-1,_=a.length,$=_-1;for(u=u===n?_:u;++w<u;){var X=qa(w,$),ie=a[X];a[X]=a[w],a[w]=ie}return a.length=u,a}var xb=LO(function(a){var u=[];return a.charCodeAt(0)===46&&u.push(""),a.replace(oo,function(w,_,$,X){u.push($?X.replace(Di,"$1"):_||w)}),u});function Rs(a){if(typeof a=="string"||Uo(a))return a;var u=a+"";return u=="0"&&1/a==-1/0?"-0":u}function oc(a){if(a!=null){try{return Nr.call(a)}catch{}try{return a+""}catch{}}return""}function $O(a,u){return ne(ke,function(w){var _="_."+w[0];u&w[1]&&!xe(a,_)&&a.push(_)}),a.sort()}function Sb(a){if(a instanceof $t)return a.clone();var u=new Sr(a.__wrapped__,a.__chain__);return u.__actions__=Ur(a.__actions__),u.__index__=a.__index__,u.__values__=a.__values__,u}function VO(a,u,w){(w?Qi(a,u,w):u===n)?u=1:u=Sn(Gt(u),0);var _=a==null?0:a.length;if(!_||u<1)return[];for(var $=0,X=0,ie=se(gs(_/u));$<_;)ie[X++]=ni(a,$,$+=u);return ie}function HO(a){for(var u=-1,w=a==null?0:a.length,_=0,$=[];++u<w;){var X=a[u];X&&($[_++]=X)}return $}function UO(){var a=arguments.length;if(!a)return[];for(var u=se(a-1),w=arguments[0],_=a;_--;)u[_-1]=arguments[_];return Ct(Ht(w)?Ur(w):[w],fr(u,1))}var WO=Bt(function(a,u){return hr(a)?Wa(a,fr(u,1,hr,!0)):[]}),zO=Bt(function(a,u){var w=ma(u);return hr(w)&&(w=n),hr(a)?Wa(a,fr(u,1,hr,!0),Et(w,2)):[]}),YO=Bt(function(a,u){var w=ma(u);return hr(w)&&(w=n),hr(a)?Wa(a,fr(u,1,hr,!0),n,w):[]});function GO(a,u,w){var _=a==null?0:a.length;return _?(u=w||u===n?1:Gt(u),ni(a,u<0?0:u,_)):[]}function qO(a,u,w){var _=a==null?0:a.length;return _?(u=w||u===n?1:Gt(u),u=_-u,ni(a,0,u<0?0:u)):[]}function XO(a,u){return a&&a.length?Ka(a,Et(u,3),!0,!0):[]}function KO(a,u){return a&&a.length?Ka(a,Et(u,3),!0):[]}function ZO(a,u,w,_){var $=a==null?0:a.length;return $?(w&&typeof w!="number"&&Qi(a,u,w)&&(w=0,_=$),Wf(a,u,w,_)):[]}function Tb(a,u,w){var _=a==null?0:a.length;if(!_)return-1;var $=w==null?0:Gt(w);return $<0&&($=Sn(_+$,0)),jt(a,Et(u,3),$)}function Cb(a,u,w){var _=a==null?0:a.length;if(!_)return-1;var $=_-1;return w!==n&&($=Gt(w),$=w<0?Sn(_+$,0):qn($,_-1)),jt(a,Et(u,3),$,!0)}function Eb(a){var u=a==null?0:a.length;return u?fr(a,1):[]}function JO(a){var u=a==null?0:a.length;return u?fr(a,Ie):[]}function QO(a,u){var w=a==null?0:a.length;return w?(u=u===n?1:Gt(u),fr(a,u)):[]}function e_(a){for(var u=-1,w=a==null?0:a.length,_={};++u<w;){var $=a[u];_[$[0]]=$[1]}return _}function kb(a){return a&&a.length?a[0]:n}function t_(a,u,w){var _=a==null?0:a.length;if(!_)return-1;var $=w==null?0:Gt(w);return $<0&&($=Sn(_+$,0)),en(a,u,$)}function n_(a){var u=a==null?0:a.length;return u?ni(a,0,-1):[]}var r_=Bt(function(a){var u=st(a,Ql);return u.length&&u[0]===a[0]?Cs(u):[]}),i_=Bt(function(a){var u=ma(a),w=st(a,Ql);return u===ma(w)?u=n:w.pop(),w.length&&w[0]===a[0]?Cs(w,Et(u,2)):[]}),o_=Bt(function(a){var u=ma(a),w=st(a,Ql);return u=typeof u=="function"?u:n,u&&w.pop(),w.length&&w[0]===a[0]?Cs(w,n,u):[]});function a_(a,u){return a==null?"":Ks.call(a,u)}function ma(a){var u=a==null?0:a.length;return u?a[u-1]:n}function s_(a,u,w){var _=a==null?0:a.length;if(!_)return-1;var $=_;return w!==n&&($=Gt(w),$=$<0?Sn(_+$,0):qn($,_-1)),u===u?fs(a,u,$):jt(a,ho,$,!0)}function l_(a,u){return a&&a.length?Ds(a,Gt(u)):n}var u_=Bt(Db);function Db(a,u){return a&&a.length&&u&&u.length?Xu(a,u):a}function c_(a,u,w){return a&&a.length&&u&&u.length?Xu(a,u,Et(w,2)):a}function f_(a,u,w){return a&&a.length&&u&&u.length?Xu(a,u,n,w):a}var d_=fl(function(a,u){var w=a==null?0:a.length,_=Hu(a,u);return Ku(a,st(u,function($){return dl($,w)?+$:$}).sort(nc)),_});function h_(a,u){var w=[];if(!(a&&a.length))return w;var _=-1,$=[],X=a.length;for(u=Et(u,3);++_<X;){var ie=a[_];u(ie,_,a)&&(w.push(ie),$.push(_))}return Ku(a,$),w}function pg(a){return a==null?a:Fl.call(a)}function p_(a,u,w){var _=a==null?0:a.length;return _?(w&&typeof w!="number"&&Qi(a,u,w)?(u=0,w=_):(u=u==null?0:Gt(u),w=w===n?_:Gt(w)),ni(a,u,w)):[]}function g_(a,u){return Jl(a,u)}function v_(a,u,w){return Qu(a,u,Et(w,2))}function m_(a,u){var w=a==null?0:a.length;if(w){var _=Jl(a,u);if(_<w&&Qa(a[_],u))return _}return-1}function y_(a,u){return Jl(a,u,!0)}function b_(a,u,w){return Qu(a,u,Et(w,2),!0)}function w_(a,u){var w=a==null?0:a.length;if(w){var _=Jl(a,u,!0)-1;if(Qa(a[_],u))return _}return-1}function x_(a){return a&&a.length?ec(a):[]}function S_(a,u){return a&&a.length?ec(a,Et(u,2)):[]}function T_(a){var u=a==null?0:a.length;return u?ni(a,1,u):[]}function C_(a,u,w){return a&&a.length?(u=w||u===n?1:Gt(u),ni(a,0,u<0?0:u)):[]}function E_(a,u,w){var _=a==null?0:a.length;return _?(u=w||u===n?1:Gt(u),u=_-u,ni(a,u<0?0:u,_)):[]}function k_(a,u){return a&&a.length?Ka(a,Et(u,3),!1,!0):[]}function D_(a,u){return a&&a.length?Ka(a,Et(u,3)):[]}var O_=Bt(function(a){return ha(fr(a,1,hr,!0))}),__=Bt(function(a){var u=ma(a);return hr(u)&&(u=n),ha(fr(a,1,hr,!0),Et(u,2))}),P_=Bt(function(a){var u=ma(a);return u=typeof u=="function"?u:n,ha(fr(a,1,hr,!0),n,u)});function R_(a){return a&&a.length?ha(a):[]}function I_(a,u){return a&&a.length?ha(a,Et(u,2)):[]}function A_(a,u){return u=typeof u=="function"?u:n,a&&a.length?ha(a,n,u):[]}function gg(a){if(!(a&&a.length))return[];var u=0;return a=Ae(a,function(w){if(hr(w))return u=Sn(w.length,u),!0}),ye(u,function(w){return st(a,D(w))})}function Ob(a,u){if(!(a&&a.length))return[];var w=gg(a);return u==null?w:st(w,function(_){return H(u,n,_)})}var M_=Bt(function(a,u){return hr(a)?Wa(a,u):[]}),L_=Bt(function(a){return dr(Ae(a,hr))}),F_=Bt(function(a){var u=ma(a);return hr(u)&&(u=n),dr(Ae(a,hr),Et(u,2))}),N_=Bt(function(a){var u=ma(a);return u=typeof u=="function"?u:n,dr(Ae(a,hr),n,u)}),j_=Bt(gg);function B_(a,u){return Kc(a||[],u||[],Br)}function $_(a,u){return Kc(a||[],u||[],Xa)}var V_=Bt(function(a){var u=a.length,w=u>1?a[u-1]:n;return w=typeof w=="function"?(a.pop(),w):n,Ob(a,w)});function _b(a){var u=z(a);return u.__chain__=!0,u}function H_(a,u){return u(a),a}function nh(a,u){return u(a)}var U_=fl(function(a){var u=a.length,w=u?a[0]:0,_=this.__wrapped__,$=function(X){return Hu(X,a)};return u>1||this.__actions__.length||!(_ instanceof $t)||!dl(w)?this.thru($):(_=_.slice(w,+w+(u?1:0)),_.__actions__.push({func:nh,args:[$],thisArg:n}),new Sr(_,this.__chain__).thru(function(X){return u&&!X.length&&X.push(n),X}))});function W_(){return _b(this)}function z_(){return new Sr(this.value(),this.__chain__)}function Y_(){this.__values__===n&&(this.__values__=Ub(this.value()));var a=this.__index__>=this.__values__.length,u=a?n:this.__values__[this.__index__++];return{done:a,value:u}}function G_(){return this}function q_(a){for(var u,w=this;w instanceof Bo;){var _=Sb(w);_.__index__=0,_.__values__=n,u?$.__wrapped__=_:u=_;var $=_;w=w.__wrapped__}return $.__wrapped__=a,u}function X_(){var a=this.__wrapped__;if(a instanceof $t){var u=a;return this.__actions__.length&&(u=new $t(this)),u=u.reverse(),u.__actions__.push({func:nh,args:[pg],thisArg:n}),new Sr(u,this.__chain__)}return this.thru(pg)}function K_(){return Xc(this.__wrapped__,this.__actions__)}var Z_=cl(function(a,u,w){Dt.call(a,w)?++a[w]:Si(a,w,1)});function J_(a,u,w){var _=Ht(a)?Oe:jc;return w&&Qi(a,u,w)&&(u=n),_(a,Et(u,3))}function Q_(a,u){var w=Ht(a)?Ae:Bc;return w(a,Et(u,3))}var eP=Y(Tb),tP=Y(Cb);function nP(a,u){return fr(rh(a,u),1)}function rP(a,u){return fr(rh(a,u),Ie)}function iP(a,u,w){return w=w===n?1:Gt(w),fr(rh(a,u),w)}function Pb(a,u){var w=Ht(a)?ne:ca;return w(a,Et(u,3))}function Rb(a,u){var w=Ht(a)?pe:Yu;return w(a,Et(u,3))}var oP=cl(function(a,u,w){Dt.call(a,w)?a[w].push(u):Si(a,w,[u])});function aP(a,u,w,_){a=Eo(a)?a:rf(a),w=w&&!_?Gt(w):0;var $=a.length;return w<0&&(w=Sn($+w,0)),lh(a)?w<=$&&a.indexOf(u,w)>-1:!!$&&en(a,u,w)>-1}var sP=Bt(function(a,u,w){var _=-1,$=typeof u=="function",X=Eo(a)?se(a.length):[];return ca(a,function(ie){X[++_]=$?H(u,ie,w):So(ie,u,w)}),X}),lP=cl(function(a,u,w){Si(a,w,u)});function rh(a,u){var w=Ht(a)?st:Ki;return w(a,Et(u,3))}function uP(a,u,w,_){return a==null?[]:(Ht(u)||(u=u==null?[]:[u]),w=_?n:w,Ht(w)||(w=w==null?[]:[w]),Xl(a,u,w))}var cP=cl(function(a,u,w){a[w?0:1].push(u)},function(){return[[],[]]});function fP(a,u,w){var _=Ht(a)?kt:W,$=arguments.length<3;return _(a,Et(u,4),w,$,ca)}function dP(a,u,w){var _=Ht(a)?In:W,$=arguments.length<3;return _(a,Et(u,4),w,$,Yu)}function hP(a,u){var w=Ht(a)?Ae:Bc;return w(a,ah(Et(u,3)))}function pP(a){var u=Ht(a)?ti:sl;return u(a)}function gP(a,u,w){(w?Qi(a,u,w):u===n)?u=1:u=Gt(u);var _=Ht(a)?xi:Ju;return _(a,u)}function vP(a){var u=Ht(a)?xo:zc;return u(a)}function mP(a){if(a==null)return 0;if(Eo(a))return lh(a)?vo(a):a.length;var u=Ai(a);return u==Lt||u==Zn?a.size:Ho(a).length}function yP(a,u,w){var _=Ht(a)?cn:Yc;return w&&Qi(a,u,w)&&(u=n),_(a,Et(u,3))}var bP=Bt(function(a,u){if(a==null)return[];var w=u.length;return w>1&&Qi(a,u[0],u[1])?u=[]:w>2&&Qi(u[0],u[1],u[2])&&(u=[u[0]]),Xl(a,fr(u,1),[])}),ih=Xs||function(){return un.Date.now()};function wP(a,u){if(typeof u!="function")throw new Vt(s);return a=Gt(a),function(){if(--a<1)return u.apply(this,arguments)}}function Ib(a,u,w){return u=w?n:u,u=a&&u==null?a.length:u,Ja(a,T,n,n,n,n,u)}function Ab(a,u){var w;if(typeof u!="function")throw new Vt(s);return a=Gt(a),function(){return--a>0&&(w=u.apply(this,arguments)),a<=1&&(u=n),w}}var vg=Bt(function(a,u,w){var _=M;if(w.length){var $=ei(w,tf(vg));_|=K}return Ja(a,_,u,w,$)}),Mb=Bt(function(a,u,w){var _=M|R;if(w.length){var $=ei(w,tf(Mb));_|=K}return Ja(u,_,a,w,$)});function Lb(a,u,w){u=w?n:u;var _=Ja(a,U,n,n,n,n,n,u);return _.placeholder=Lb.placeholder,_}function Fb(a,u,w){u=w?n:u;var _=Ja(a,J,n,n,n,n,n,u);return _.placeholder=Fb.placeholder,_}function Nb(a,u,w){var _,$,X,ie,de,ve,qe=0,Xe=!1,Qe=!1,ct=!0;if(typeof a!="function")throw new Vt(s);u=ya(u)||0,Xn(w)&&(Xe=!!w.leading,Qe="maxWait"in w,X=Qe?Sn(ya(w.maxWait)||0,u):X,ct="trailing"in w?!!w.trailing:ct);function wt(pr){var es=_,gl=$;return _=$=n,qe=pr,ie=a.apply(gl,es),ie}function Ot(pr){return qe=pr,de=qf(Qt,u),Xe?wt(pr):ie}function Kt(pr){var es=pr-ve,gl=pr-qe,n0=u-es;return Qe?qn(n0,X-gl):n0}function _t(pr){var es=pr-ve,gl=pr-qe;return ve===n||es>=u||es<0||Qe&&gl>=X}function Qt(){var pr=ih();if(_t(pr))return nn(pr);de=qf(Qt,Kt(pr))}function nn(pr){return de=n,ct&&_?wt(pr):(_=$=n,ie)}function Wo(){de!==n&&tu(de),qe=0,_=ve=$=de=n}function eo(){return de===n?ie:nn(ih())}function zo(){var pr=ih(),es=_t(pr);if(_=arguments,$=this,ve=pr,es){if(de===n)return Ot(ve);if(Qe)return tu(de),de=qf(Qt,u),wt(ve)}return de===n&&(de=qf(Qt,u)),ie}return zo.cancel=Wo,zo.flush=eo,zo}var xP=Bt(function(a,u){return zu(a,1,u)}),SP=Bt(function(a,u,w){return zu(a,ya(u)||0,w)});function TP(a){return Ja(a,oe)}function oh(a,u){if(typeof a!="function"||u!=null&&typeof u!="function")throw new Vt(s);var w=function(){var _=arguments,$=u?u.apply(this,_):_[0],X=w.cache;if(X.has($))return X.get($);var ie=a.apply(this,_);return w.cache=X.set($,ie)||X,ie};return w.cache=new(oh.Cache||$o),w}oh.Cache=$o;function ah(a){if(typeof a!="function")throw new Vt(s);return function(){var u=arguments;switch(u.length){case 0:return!a.call(this);case 1:return!a.call(this,u[0]);case 2:return!a.call(this,u[0],u[1]);case 3:return!a.call(this,u[0],u[1],u[2])}return!a.apply(this,u)}}function CP(a){return Ab(2,a)}var EP=Zc(function(a,u){u=u.length==1&&Ht(u[0])?st(u[0],gt(Et())):st(fr(u,1),gt(Et()));var w=u.length;return Bt(function(_){for(var $=-1,X=qn(_.length,w);++$<X;)_[$]=u[$].call(this,_[$]);return H(a,this,_)})}),mg=Bt(function(a,u){var w=ei(u,tf(mg));return Ja(a,K,n,u,w)}),jb=Bt(function(a,u){var w=ei(u,tf(jb));return Ja(a,le,n,u,w)}),kP=fl(function(a,u){return Ja(a,he,n,n,n,u)});function DP(a,u){if(typeof a!="function")throw new Vt(s);return u=u===n?u:Gt(u),Bt(a,u)}function OP(a,u){if(typeof a!="function")throw new Vt(s);return u=u==null?0:Sn(Gt(u),0),Bt(function(w){var _=w[u],$=pa(w,0,u);return _&&Ct($,_),H(a,this,$)})}function _P(a,u,w){var _=!0,$=!0;if(typeof a!="function")throw new Vt(s);return Xn(w)&&(_="leading"in w?!!w.leading:_,$="trailing"in w?!!w.trailing:$),Nb(a,u,{leading:_,maxWait:u,trailing:$})}function PP(a){return Ib(a,1)}function RP(a,u){return mg(eu(u),a)}function IP(){if(!arguments.length)return[];var a=arguments[0];return Ht(a)?a:[a]}function AP(a){return $r(a,C)}function MP(a,u){return u=typeof u=="function"?u:n,$r(a,C,u)}function LP(a){return $r(a,g|C)}function FP(a,u){return u=typeof u=="function"?u:n,$r(a,g|C,u)}function NP(a,u){return u==null||Wu(a,u,ri(u))}function Qa(a,u){return a===u||a!==a&&u!==u}var jP=Co(za),BP=Co(function(a,u){return a>=u}),ac=Yl(function(){return arguments}())?Yl:function(a){return ir(a)&&Dt.call(a,"callee")&&!Al.call(a,"callee")},Ht=se.isArray,$P=h?gt(h):Ya;function Eo(a){return a!=null&&sh(a.length)&&!hl(a)}function hr(a){return ir(a)&&Eo(a)}function VP(a){return a===!0||a===!1||ir(a)&&nr(a)==at}var ru=Ll||Og,HP=b?gt(b):Vc;function UP(a){return ir(a)&&a.nodeType===1&&!Xf(a)}function WP(a){if(a==null)return!0;if(Eo(a)&&(Ht(a)||typeof a=="string"||typeof a.splice=="function"||ru(a)||nf(a)||ac(a)))return!a.length;var u=Ai(a);if(u==Lt||u==Zn)return!a.size;if(Gf(a))return!Ho(a).length;for(var w in a)if(Dt.call(a,w))return!1;return!0}function zP(a,u){return rl(a,u)}function YP(a,u,w){w=typeof w=="function"?w:n;var _=w?w(a,u):n;return _===n?rl(a,u,n,w):!!_}function yg(a){if(!ir(a))return!1;var u=nr(a);return u==mt||u==lt||typeof a.message=="string"&&typeof a.name=="string"&&!Xf(a)}function GP(a){return typeof a=="number"&&ms(a)}function hl(a){if(!Xn(a))return!1;var u=nr(a);return u==et||u==At||u==rt||u==ji}function Bb(a){return typeof a=="number"&&a==Gt(a)}function sh(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=Ge}function Xn(a){var u=typeof a;return a!=null&&(u=="object"||u=="function")}function ir(a){return a!=null&&typeof a=="object"}var $b=E?gt(E):ks;function qP(a,u){return a===u||qu(a,u,lg(u))}function XP(a,u,w){return w=typeof w=="function"?w:n,qu(a,u,lg(u),w)}function KP(a){return Vb(a)&&a!=+a}function ZP(a){if(MO(a))throw new Ve(o);return Hc(a)}function JP(a){return a===null}function QP(a){return a==null}function Vb(a){return typeof a=="number"||ir(a)&&nr(a)==Hn}function Xf(a){if(!ir(a)||nr(a)!=Un)return!1;var u=Na(a);if(u===null)return!0;var w=Dt.call(u,"constructor")&&u.constructor;return typeof w=="function"&&w instanceof w&&Nr.call(w)==Ru}var bg=O?gt(O):Ga;function eR(a){return Bb(a)&&a>=-9007199254740991&&a<=Ge}var Hb=F?gt(F):Gl;function lh(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 nf=j?gt(j):Vo;function tR(a){return a===n}function nR(a){return ir(a)&&Ai(a)==dt}function rR(a){return ir(a)&&nr(a)==On}var iR=Co(Xi),oR=Co(function(a,u){return a<=u});function Ub(a){if(!a)return[];if(Eo(a))return lh(a)?fn(a):Ur(a);if(Gi&&a[Gi])return Ri(a[Gi]());var u=Ai(a),w=u==Lt?cs:u==Zn?go:rf;return w(a)}function pl(a){if(!a)return a===0?a:0;if(a=ya(a),a===Ie||a===-1/0){var u=a<0?-1:1;return u*tt}return a===a?a:0}function Gt(a){var u=pl(a),w=u%1;return u===u?w?u-w:u:0}function Wb(a){return a?Ua(Gt(a),0,Ee):0}function ya(a){if(typeof a=="number")return a;if(Uo(a))return we;if(Xn(a)){var u=typeof a.valueOf=="function"?a.valueOf():a;a=Xn(u)?u+"":u}if(typeof a!="string")return a===0?a:+a;a=Ke(a);var w=fi.test(a);return w||yr.test(a)?La(a.slice(2),w?2:8):_r.test(a)?we:+a}function zb(a){return Ii(a,ko(a))}function aR(a){return a?Ua(Gt(a),-9007199254740991,Ge):a===0?a:0}function vn(a){return a==null?"":Vr(a)}var sR=_s(function(a,u){if(Gf(u)||Eo(u)){Ii(u,ri(u),a);return}for(var w in u)Dt.call(u,w)&&Br(a,w,u[w])}),Yb=_s(function(a,u){Ii(u,ko(u),a)}),uh=_s(function(a,u,w,_){Ii(u,ko(u),a,_)}),lR=_s(function(a,u,w,_){Ii(u,ri(u),a,_)}),uR=fl(Hu);function cR(a,u){var w=jo(a);return u==null?w:Nc(w,u)}var fR=Bt(function(a,u){a=ot(a);var w=-1,_=u.length,$=_>2?u[2]:n;for($&&Qi(u[0],u[1],$)&&(_=1);++w<_;)for(var X=u[w],ie=ko(X),de=-1,ve=ie.length;++de<ve;){var qe=ie[de],Xe=a[qe];(Xe===n||Qa(Xe,Ln[qe])&&!Dt.call(a,qe))&&(a[qe]=X[qe])}return a}),dR=Bt(function(a){return a.push(n,ub),H(Gb,n,a)});function hR(a,u){return Fr(a,Et(u,3),Ti)}function pR(a,u){return Fr(a,Et(u,3),Hl)}function gR(a,u){return a==null?a:Gu(a,Et(u,3),ko)}function vR(a,u){return a==null?a:$c(a,Et(u,3),ko)}function mR(a,u){return a&&Ti(a,Et(u,3))}function yR(a,u){return a&&Hl(a,Et(u,3))}function bR(a){return a==null?[]:Ss(a,ri(a))}function wR(a){return a==null?[]:Ss(a,ko(a))}function wg(a,u,w){var _=a==null?n:fa(a,u);return _===n?w:_}function xR(a,u){return a!=null&&db(a,u,Ul)}function xg(a,u){return a!=null&&db(a,u,Ts)}var SR=We(function(a,u,w){u!=null&&typeof u.toString!="function"&&(u=Ao.call(u)),a[u]=w},Tg(Do)),TR=We(function(a,u,w){u!=null&&typeof u.toString!="function"&&(u=Ao.call(u)),Dt.call(a,u)?a[u].push(w):a[u]=[w]},Et),CR=Bt(So);function ri(a){return Eo(a)?tl(a):Ho(a)}function ko(a){return Eo(a)?tl(a,!0):il(a)}function ER(a,u){var w={};return u=Et(u,3),Ti(a,function(_,$,X){Si(w,u(_,$,X),_)}),w}function kR(a,u){var w={};return u=Et(u,3),Ti(a,function(_,$,X){Si(w,$,u(_,$,X))}),w}var DR=_s(function(a,u,w){da(a,u,w)}),Gb=_s(function(a,u,w,_){da(a,u,w,_)}),OR=fl(function(a,u){var w={};if(a==null)return w;var _=!1;u=st(u,function(X){return X=Ci(X,a),_||(_=X.length>1),X}),Ii(a,ag(a),w),_&&(w=$r(w,g|S|C,SO));for(var $=u.length;$--;)Hr(w,u[$]);return w});function _R(a,u){return qb(a,ah(Et(u)))}var PR=fl(function(a,u){return a==null?{}:al(a,u)});function qb(a,u){if(a==null)return{};var w=st(ag(a),function(_){return[_]});return u=Et(u),Os(a,w,function(_,$){return u(_,$[0])})}function RR(a,u,w){u=Ci(u,a);var _=-1,$=u.length;for($||($=1,a=n);++_<$;){var X=a==null?n:a[Rs(u[_])];X===n&&(_=$,X=w),a=hl(X)?X.call(a):X}return a}function IR(a,u,w){return a==null?a:Xa(a,u,w)}function AR(a,u,w,_){return _=typeof _=="function"?_:n,a==null?a:Xa(a,u,w,_)}var Xb=ef(ri),Kb=ef(ko);function MR(a,u,w){var _=Ht(a),$=_||ru(a)||nf(a);if(u=Et(u,4),w==null){var X=a&&a.constructor;$?w=_?new X:[]:Xn(a)?w=hl(X)?jo(Na(a)):{}:w={}}return($?ne:Ti)(a,function(ie,de,ve){return u(w,ie,de,ve)}),w}function LR(a,u){return a==null?!0:Hr(a,u)}function FR(a,u,w){return a==null?a:qc(a,u,eu(w))}function NR(a,u,w,_){return _=typeof _=="function"?_:n,a==null?a:qc(a,u,eu(w),_)}function rf(a){return a==null?[]:Pt(a,ri(a))}function jR(a){return a==null?[]:Pt(a,ko(a))}function BR(a,u,w){return w===n&&(w=u,u=n),w!==n&&(w=ya(w),w=w===w?w:0),u!==n&&(u=ya(u),u=u===u?u:0),Ua(ya(a),u,w)}function $R(a,u,w){return u=pl(u),w===n?(w=u,u=0):w=pl(w),a=ya(a),Wl(a,u,w)}function VR(a,u,w){if(w&&typeof w!="boolean"&&Qi(a,u,w)&&(u=w=n),w===n&&(typeof u=="boolean"?(w=u,u=n):typeof a=="boolean"&&(w=a,a=n)),a===n&&u===n?(a=0,u=1):(a=pl(a),u===n?(u=a,a=0):u=pl(u)),a>u){var _=a;a=u,u=_}if(w||a%1||u%1){var $=oa();return qn(a+$*(u-a+ur("1e-"+(($+"").length-1))),u)}return qa(a,u)}var HR=x(function(a,u,w){return u=u.toLowerCase(),a+(w?Zb(u):u)});function Zb(a){return Sg(vn(a).toLowerCase())}function Jb(a){return a=vn(a),a&&a.replace(er,Vn).replace(Qo,"")}function UR(a,u,w){a=vn(a),u=Vr(u);var _=a.length;w=w===n?_:Ua(Gt(w),0,_);var $=w;return w-=u.length,w>=0&&a.slice(w,$)==u}function WR(a){return a=vn(a),a&&Hi.test(a)?a.replace(Wt,ta):a}function zR(a){return a=vn(a),a&&ci.test(a)?a.replace(mr,"\\$&"):a}var YR=x(function(a,u,w){return a+(w?"-":"")+u.toLowerCase()}),GR=x(function(a,u,w){return a+(w?" ":"")+u.toLowerCase()}),qR=v("toLowerCase");function XR(a,u,w){a=vn(a),u=Gt(u);var _=u?vo(a):0;if(!u||_>=u)return a;var $=(u-_)/2;return St(ja($),w)+a+St(gs($),w)}function KR(a,u,w){a=vn(a),u=Gt(u);var _=u?vo(a):0;return u&&_<u?a+St(u-_,w):a}function ZR(a,u,w){a=vn(a),u=Gt(u);var _=u?vo(a):0;return u&&_<u?St(u-_,w)+a:a}function JR(a,u,w){return w||u==null?u=0:u&&(u=+u),Mu(vn(a).replace(ln,""),u||0)}function QR(a,u,w){return(w?Qi(a,u,w):u===n)?u=1:u=Gt(u),Kl(vn(a),u)}function eI(){var a=arguments,u=vn(a[0]);return a.length<3?u:u.replace(a[1],a[2])}var tI=x(function(a,u,w){return a+(w?"_":"")+u.toLowerCase()});function nI(a,u,w){return w&&typeof w!="number"&&Qi(a,u,w)&&(u=w=n),w=w===n?Ee:w>>>0,w?(a=vn(a),a&&(typeof u=="string"||u!=null&&!bg(u))&&(u=Vr(u),!u&&Qr(a))?pa(fn(a),0,w):a.split(u,w)):[]}var rI=x(function(a,u,w){return a+(w?" ":"")+Sg(u)});function iI(a,u,w){return a=vn(a),w=w==null?0:Ua(Gt(w),0,a.length),u=Vr(u),a.slice(w,w+u.length)==u}function oI(a,u,w){var _=z.templateSettings;w&&Qi(a,u,w)&&(u=n),a=vn(a),u=uh({},u,_,lb);var $=uh({},u.imports,_.imports,lb),X=ri($),ie=Pt($,X),de,ve,qe=0,Xe=u.interpolate||Ui,Qe="__p += '",ct=Mt((u.escape||Ui).source+"|"+Xe.source+"|"+(Xe===li?Qn:Ui).source+"|"+(u.evaluate||Ui).source+"|$","g"),wt="//# sourceURL="+(Dt.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++on+"]")+`
|
|
146
|
+
`;a.replace(ct,function(_t,Qt,nn,Wo,eo,zo){return nn||(nn=Wo),Qe+=a.slice(qe,zo).replace(Oi,us),Qt&&(de=!0,Qe+=`' +
|
|
147
|
+
__e(`+Qt+`) +
|
|
148
|
+
'`),eo&&(ve=!0,Qe+=`';
|
|
149
|
+
`+eo+`;
|
|
150
|
+
__p += '`),nn&&(Qe+=`' +
|
|
151
|
+
((__t = (`+nn+`)) == null ? '' : __t) +
|
|
152
|
+
'`),qe=zo+_t.length,_t}),Qe+=`';
|
|
153
|
+
`;var Ot=Dt.call(u,"variable")&&u.variable;if(!Ot)Qe=`with (obj) {
|
|
154
|
+
`+Qe+`
|
|
155
|
+
}
|
|
156
|
+
`;else if(so.test(Ot))throw new Ve(c);Qe=(ve?Qe.replace(Po,""):Qe).replace(Wn,"$1").replace(Gr,"$1;"),Qe="function("+(Ot||"obj")+`) {
|
|
157
|
+
`+(Ot?"":`obj || (obj = {});
|
|
158
|
+
`)+"var __t, __p = ''"+(de?", __e = _.escape":"")+(ve?`, __j = Array.prototype.join;
|
|
159
|
+
function print() { __p += __j.call(arguments, '') }
|
|
160
|
+
`:`;
|
|
161
|
+
`)+Qe+`return __p
|
|
162
|
+
}`;var Kt=e0(function(){return ut(X,wt+"return "+Qe).apply(n,ie)});if(Kt.source=Qe,yg(Kt))throw Kt;return Kt}function aI(a){return vn(a).toLowerCase()}function sI(a){return vn(a).toUpperCase()}function lI(a,u,w){if(a=vn(a),a&&(w||u===n))return Ke(a);if(!a||!(u=Vr(u)))return a;var _=fn(a),$=fn(u),X=bt(_,$),ie=Mn(_,$)+1;return pa(_,X,ie).join("")}function uI(a,u,w){if(a=vn(a),a&&(w||u===n))return a.slice(0,Il(a)+1);if(!a||!(u=Vr(u)))return a;var _=fn(a),$=Mn(_,fn(u))+1;return pa(_,0,$).join("")}function cI(a,u,w){if(a=vn(a),a&&(w||u===n))return a.replace(ln,"");if(!a||!(u=Vr(u)))return a;var _=fn(a),$=bt(_,fn(u));return pa(_,$).join("")}function fI(a,u){var w=ze,_=je;if(Xn(u)){var $="separator"in u?u.separator:$;w="length"in u?Gt(u.length):w,_="omission"in u?Vr(u.omission):_}a=vn(a);var X=a.length;if(Qr(a)){var ie=fn(a);X=ie.length}if(w>=X)return a;var de=w-vo(_);if(de<1)return _;var ve=ie?pa(ie,0,de).join(""):a.slice(0,de);if($===n)return ve+_;if(ie&&(de+=ve.length-de),bg($)){if(a.slice(de).search($)){var qe,Xe=ve;for($.global||($=Mt($.source,vn(Or.exec($))+"g")),$.lastIndex=0;qe=$.exec(Xe);)var Qe=qe.index;ve=ve.slice(0,Qe===n?de:Qe)}}else if(a.indexOf(Vr($),de)!=de){var ct=ve.lastIndexOf($);ct>-1&&(ve=ve.slice(0,ct))}return ve+_}function dI(a){return a=vn(a),a&&si.test(a)?a.replace(Jn,ds):a}var hI=x(function(a,u,w){return a+(w?" ":"")+u.toUpperCase()}),Sg=v("toUpperCase");function Qb(a,u,w){return a=vn(a),u=w?n:u,u===n?zs(a)?fe(a):Ft(a):a.match(u)||[]}var e0=Bt(function(a,u){try{return H(a,n,u)}catch(w){return yg(w)?w:new Ve(w)}}),pI=fl(function(a,u){return ne(u,function(w){w=Rs(w),Si(a,w,vg(a[w],a))}),a});function gI(a){var u=a==null?0:a.length,w=Et();return a=u?st(a,function(_){if(typeof _[1]!="function")throw new Vt(s);return[w(_[0]),_[1]]}):[],Bt(function(_){for(var $=-1;++$<u;){var X=a[$];if(H(X[0],this,_))return H(X[1],this,_)}})}function vI(a){return Uu($r(a,g))}function Tg(a){return function(){return a}}function mI(a,u){return a==null||a!==a?u:a}var yI=re(),bI=re(!0);function Do(a){return a}function Cg(a){return ql(typeof a=="function"?a:$r(a,g))}function wI(a){return To($r(a,g))}function xI(a,u){return ol(a,$r(u,g))}var SI=Bt(function(a,u){return function(w){return So(w,a,u)}}),TI=Bt(function(a,u){return function(w){return So(a,w,u)}});function Eg(a,u,w){var _=ri(u),$=Ss(u,_);w==null&&!(Xn(u)&&($.length||!_.length))&&(w=u,u=a,a=this,$=Ss(u,ri(u)));var X=!(Xn(w)&&"chain"in w)||!!w.chain,ie=hl(a);return ne($,function(de){var ve=u[de];a[de]=ve,ie&&(a.prototype[de]=function(){var qe=this.__chain__;if(X||qe){var Xe=a(this.__wrapped__),Qe=Xe.__actions__=Ur(this.__actions__);return Qe.push({func:ve,args:arguments,thisArg:a}),Xe.__chain__=qe,Xe}return ve.apply(a,Ct([this.value()],arguments))})}),a}function CI(){return un._===this&&(un._=Iu),this}function kg(){}function EI(a){return a=Gt(a),Bt(function(u){return Ds(u,a)})}var kI=it(st),DI=it(Oe),OI=it(cn);function t0(a){return cg(a)?D(Rs(a)):Uc(a)}function _I(a){return function(u){return a==null?n:fa(a,u)}}var PI=rr(),RI=rr(!0);function Dg(){return[]}function Og(){return!1}function II(){return{}}function AI(){return""}function MI(){return!0}function LI(a,u){if(a=Gt(a),a<1||a>Ge)return[];var w=Ee,_=qn(a,Ee);u=Et(u),a-=Ee;for(var $=ye(_,u);++w<a;)u(w);return $}function FI(a){return Ht(a)?st(a,Rs):Uo(a)?[a]:Ur(xb(vn(a)))}function NI(a){var u=++Pu;return vn(a)+u}var jI=Ze(function(a,u){return a+u},0),BI=Ji("ceil"),$I=Ze(function(a,u){return a/u},1),VI=Ji("floor");function HI(a){return a&&a.length?Vl(a,Do,za):n}function UI(a,u){return a&&a.length?Vl(a,Et(u,2),za):n}function WI(a){return xr(a,Do)}function zI(a,u){return xr(a,Et(u,2))}function YI(a){return a&&a.length?Vl(a,Do,Xi):n}function GI(a,u){return a&&a.length?Vl(a,Et(u,2),Xi):n}var qI=Ze(function(a,u){return a*u},1),XI=Ji("round"),KI=Ze(function(a,u){return a-u},0);function ZI(a){return a&&a.length?me(a,Do):0}function JI(a,u){return a&&a.length?me(a,Et(u,2)):0}return z.after=wP,z.ary=Ib,z.assign=sR,z.assignIn=Yb,z.assignInWith=uh,z.assignWith=lR,z.at=uR,z.before=Ab,z.bind=vg,z.bindAll=pI,z.bindKey=Mb,z.castArray=IP,z.chain=_b,z.chunk=VO,z.compact=HO,z.concat=UO,z.cond=gI,z.conforms=vI,z.constant=Tg,z.countBy=Z_,z.create=cR,z.curry=Lb,z.curryRight=Fb,z.debounce=Nb,z.defaults=fR,z.defaultsDeep=dR,z.defer=xP,z.delay=SP,z.difference=WO,z.differenceBy=zO,z.differenceWith=YO,z.drop=GO,z.dropRight=qO,z.dropRightWhile=XO,z.dropWhile=KO,z.fill=ZO,z.filter=Q_,z.flatMap=nP,z.flatMapDeep=rP,z.flatMapDepth=iP,z.flatten=Eb,z.flattenDeep=JO,z.flattenDepth=QO,z.flip=TP,z.flow=yI,z.flowRight=bI,z.fromPairs=e_,z.functions=bR,z.functionsIn=wR,z.groupBy=oP,z.initial=n_,z.intersection=r_,z.intersectionBy=i_,z.intersectionWith=o_,z.invert=SR,z.invertBy=TR,z.invokeMap=sP,z.iteratee=Cg,z.keyBy=lP,z.keys=ri,z.keysIn=ko,z.map=rh,z.mapKeys=ER,z.mapValues=kR,z.matches=wI,z.matchesProperty=xI,z.memoize=oh,z.merge=DR,z.mergeWith=Gb,z.method=SI,z.methodOf=TI,z.mixin=Eg,z.negate=ah,z.nthArg=EI,z.omit=OR,z.omitBy=_R,z.once=CP,z.orderBy=uP,z.over=kI,z.overArgs=EP,z.overEvery=DI,z.overSome=OI,z.partial=mg,z.partialRight=jb,z.partition=cP,z.pick=PR,z.pickBy=qb,z.property=t0,z.propertyOf=_I,z.pull=u_,z.pullAll=Db,z.pullAllBy=c_,z.pullAllWith=f_,z.pullAt=d_,z.range=PI,z.rangeRight=RI,z.rearg=kP,z.reject=hP,z.remove=h_,z.rest=DP,z.reverse=pg,z.sampleSize=gP,z.set=IR,z.setWith=AR,z.shuffle=vP,z.slice=p_,z.sortBy=bP,z.sortedUniq=x_,z.sortedUniqBy=S_,z.split=nI,z.spread=OP,z.tail=T_,z.take=C_,z.takeRight=E_,z.takeRightWhile=k_,z.takeWhile=D_,z.tap=H_,z.throttle=_P,z.thru=nh,z.toArray=Ub,z.toPairs=Xb,z.toPairsIn=Kb,z.toPath=FI,z.toPlainObject=zb,z.transform=MR,z.unary=PP,z.union=O_,z.unionBy=__,z.unionWith=P_,z.uniq=R_,z.uniqBy=I_,z.uniqWith=A_,z.unset=LR,z.unzip=gg,z.unzipWith=Ob,z.update=FR,z.updateWith=NR,z.values=rf,z.valuesIn=jR,z.without=M_,z.words=Qb,z.wrap=RP,z.xor=L_,z.xorBy=F_,z.xorWith=N_,z.zip=j_,z.zipObject=B_,z.zipObjectDeep=$_,z.zipWith=V_,z.entries=Xb,z.entriesIn=Kb,z.extend=Yb,z.extendWith=uh,Eg(z,z),z.add=jI,z.attempt=e0,z.camelCase=HR,z.capitalize=Zb,z.ceil=BI,z.clamp=BR,z.clone=AP,z.cloneDeep=LP,z.cloneDeepWith=FP,z.cloneWith=MP,z.conformsTo=NP,z.deburr=Jb,z.defaultTo=mI,z.divide=$I,z.endsWith=UR,z.eq=Qa,z.escape=WR,z.escapeRegExp=zR,z.every=J_,z.find=eP,z.findIndex=Tb,z.findKey=hR,z.findLast=tP,z.findLastIndex=Cb,z.findLastKey=pR,z.floor=VI,z.forEach=Pb,z.forEachRight=Rb,z.forIn=gR,z.forInRight=vR,z.forOwn=mR,z.forOwnRight=yR,z.get=wg,z.gt=jP,z.gte=BP,z.has=xR,z.hasIn=xg,z.head=kb,z.identity=Do,z.includes=aP,z.indexOf=t_,z.inRange=$R,z.invoke=CR,z.isArguments=ac,z.isArray=Ht,z.isArrayBuffer=$P,z.isArrayLike=Eo,z.isArrayLikeObject=hr,z.isBoolean=VP,z.isBuffer=ru,z.isDate=HP,z.isElement=UP,z.isEmpty=WP,z.isEqual=zP,z.isEqualWith=YP,z.isError=yg,z.isFinite=GP,z.isFunction=hl,z.isInteger=Bb,z.isLength=sh,z.isMap=$b,z.isMatch=qP,z.isMatchWith=XP,z.isNaN=KP,z.isNative=ZP,z.isNil=QP,z.isNull=JP,z.isNumber=Vb,z.isObject=Xn,z.isObjectLike=ir,z.isPlainObject=Xf,z.isRegExp=bg,z.isSafeInteger=eR,z.isSet=Hb,z.isString=lh,z.isSymbol=Uo,z.isTypedArray=nf,z.isUndefined=tR,z.isWeakMap=nR,z.isWeakSet=rR,z.join=a_,z.kebabCase=YR,z.last=ma,z.lastIndexOf=s_,z.lowerCase=GR,z.lowerFirst=qR,z.lt=iR,z.lte=oR,z.max=HI,z.maxBy=UI,z.mean=WI,z.meanBy=zI,z.min=YI,z.minBy=GI,z.stubArray=Dg,z.stubFalse=Og,z.stubObject=II,z.stubString=AI,z.stubTrue=MI,z.multiply=qI,z.nth=l_,z.noConflict=CI,z.noop=kg,z.now=ih,z.pad=XR,z.padEnd=KR,z.padStart=ZR,z.parseInt=JR,z.random=VR,z.reduce=fP,z.reduceRight=dP,z.repeat=QR,z.replace=eI,z.result=RR,z.round=XI,z.runInContext=Z,z.sample=pP,z.size=mP,z.snakeCase=tI,z.some=yP,z.sortedIndex=g_,z.sortedIndexBy=v_,z.sortedIndexOf=m_,z.sortedLastIndex=y_,z.sortedLastIndexBy=b_,z.sortedLastIndexOf=w_,z.startCase=rI,z.startsWith=iI,z.subtract=KI,z.sum=ZI,z.sumBy=JI,z.template=oI,z.times=LI,z.toFinite=pl,z.toInteger=Gt,z.toLength=Wb,z.toLower=aI,z.toNumber=ya,z.toSafeInteger=aR,z.toString=vn,z.toUpper=sI,z.trim=lI,z.trimEnd=uI,z.trimStart=cI,z.truncate=fI,z.unescape=dI,z.uniqueId=NI,z.upperCase=hI,z.upperFirst=Sg,z.each=Pb,z.eachRight=Rb,z.first=kb,Eg(z,function(){var a={};return Ti(z,function(u,w){Dt.call(z.prototype,w)||(a[w]=u)}),a}(),{chain:!1}),z.VERSION=r,ne(["bind","bindKey","curry","curryRight","partial","partialRight"],function(a){z[a].placeholder=z}),ne(["drop","take"],function(a,u){$t.prototype[a]=function(w){w=w===n?1:Sn(Gt(w),0);var _=this.__filtered__&&!u?new $t(this):this.clone();return _.__filtered__?_.__takeCount__=qn(w,_.__takeCount__):_.__views__.push({size:qn(w,Ee),type:a+(_.__dir__<0?"Right":"")}),_},$t.prototype[a+"Right"]=function(w){return this.reverse()[a](w).reverse()}}),ne(["filter","map","takeWhile"],function(a,u){var w=u+1,_=w==He||w==Se;$t.prototype[a]=function($){var X=this.clone();return X.__iteratees__.push({iteratee:Et($,3),type:w}),X.__filtered__=X.__filtered__||_,X}}),ne(["head","last"],function(a,u){var w="take"+(u?"Right":"");$t.prototype[a]=function(){return this[w](1).value()[0]}}),ne(["initial","tail"],function(a,u){var w="drop"+(u?"":"Right");$t.prototype[a]=function(){return this.__filtered__?new $t(this):this[w](1)}}),$t.prototype.compact=function(){return this.filter(Do)},$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,u){return typeof a=="function"?new $t(this):this.map(function(w){return So(w,a,u)})}),$t.prototype.reject=function(a){return this.filter(ah(Et(a)))},$t.prototype.slice=function(a,u){a=Gt(a);var w=this;return w.__filtered__&&(a>0||u<0)?new $t(w):(a<0?w=w.takeRight(-a):a&&(w=w.drop(a)),u!==n&&(u=Gt(u),w=u<0?w.dropRight(-u):w.take(u-a)),w)},$t.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},$t.prototype.toArray=function(){return this.take(Ee)},Ti($t.prototype,function(a,u){var w=/^(?:filter|find|map|reject)|While$/.test(u),_=/^(?:head|last)$/.test(u),$=z[_?"take"+(u=="last"?"Right":""):u],X=_||/^find/.test(u);$&&(z.prototype[u]=function(){var ie=this.__wrapped__,de=_?[1]:arguments,ve=ie instanceof $t,qe=de[0],Xe=ve||Ht(ie),Qe=function(Qt){var nn=$.apply(z,Ct([Qt],de));return _&&ct?nn[0]:nn};Xe&&w&&typeof qe=="function"&&qe.length!=1&&(ve=Xe=!1);var ct=this.__chain__,wt=!!this.__actions__.length,Ot=X&&!ct,Kt=ve&&!wt;if(!X&&Xe){ie=Kt?ie:new $t(this);var _t=a.apply(ie,de);return _t.__actions__.push({func:nh,args:[Qe],thisArg:n}),new Sr(_t,ct)}return Ot&&Kt?a.apply(this,de):(_t=this.thru(Qe),Ot?_?_t.value()[0]:_t.value():_t)})}),ne(["pop","push","shift","sort","splice","unshift"],function(a){var u=Gn[a],w=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",_=/^(?:pop|shift)$/.test(a);z.prototype[a]=function(){var $=arguments;if(_&&!this.__chain__){var X=this.value();return u.apply(Ht(X)?X:[],$)}return this[w](function(ie){return u.apply(Ht(ie)?ie:[],$)})}}),Ti($t.prototype,function(a,u){var w=z[u];if(w){var _=w.name+"";Dt.call(Ba,_)||(Ba[_]=[]),Ba[_].push({name:u,func:w})}}),Ba[be(n,R).name]=[{name:"wrapper",func:n}],$t.prototype.clone=Nl,$t.prototype.reverse=Qs,$t.prototype.value=jl,z.prototype.at=U_,z.prototype.chain=W_,z.prototype.commit=z_,z.prototype.next=Y_,z.prototype.plant=q_,z.prototype.reverse=X_,z.prototype.toJSON=z.prototype.valueOf=z.prototype.value=K_,z.prototype.first=z.prototype.head,Gi&&(z.prototype[Gi]=G_),z},De=Te();bi?((bi.exports=De)._=De,Io._=De):un._=De}).call(Ei)})(Tp,Tp.exports);var jD=Tp.exports;const m6=ku(jD);function b1(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}function y6(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,r=e.startIndex,i=e.stopIndex;return!(r>n||i<t)}function b6(e){for(var t=e.isItemLoaded,n=e.itemCount,r=e.minimumBatchSize,i=e.startIndex,o=e.stopIndex,s=[],c=null,f=null,p=i;p<=o;p++){var y=t(p);y?f!==null&&(s.push(c,f),c=f=null):(f=p,c===null&&(c=p))}if(f!==null){for(var g=Math.min(Math.max(f,c+r-1),n-1),S=f+1;S<=g&&!t(S);S++)f=S;s.push(c,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 w6=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},x6=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}}(),S6=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)},w1=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},T6=function(e){S6(t,e);function t(){var n,r,i,o;w6(this,t);for(var s=arguments.length,c=Array(s),f=0;f<s;f++)c[f]=arguments[f];return o=(r=(i=w1(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(c))),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"&&((!b1(y)||!b1(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),w1(i,o)}return x6(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,c=o.itemCount,f=o.minimumBatchSize,p=f===void 0?10:f,y=o.threshold,g=y===void 0?15:y,S=b6({isItemLoaded:s,itemCount:c,minimumBatchSize:p,startIndex:Math.max(0,r-g),stopIndex:Math.min(c-1,i+g)});(this._memoizedUnloadedRanges.length!==S.length||this._memoizedUnloadedRanges.some(function(C,P){return S[P]!==C}))&&(this._memoizedUnloadedRanges=S,this._loadUnloadedRanges(S))}},{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],S=o(y,g);S!=null&&S.then(function(){if(y6({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())}})},c=0;c<r.length;c+=2)s(c)}}]),t}(q.PureComponent),BD={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)},c=r.push,f=r.indexOf,p={},y=p.toString,g=p.hasOwnProperty,S=g.toString,C=S.call(Object),P={},A=function(b){return typeof b=="function"&&typeof b.nodeType!="number"&&typeof b.item!="function"},M=function(b){return b!=null&&b===b.window},R=t.document,V={type:!0,src:!0,nonce:!0,noModule:!0};function U(h,b,E){E=E||R;var O,F,j=E.createElement("script");if(j.text=h,b)for(O in V)F=b[O]||b.getAttribute&&b.getAttribute(O),F&&j.setAttribute(O,F);E.head.appendChild(j).parentNode.removeChild(j)}function J(h){return h==null?h+"":typeof h=="object"||typeof h=="function"?p[y.call(h)]||"object":typeof h}var K="3.7.1",le=/HTML$/i,T=function(h,b){return new T.fn.init(h,b)};T.fn=T.prototype={jquery:K,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:c,sort:r.sort,splice:r.splice},T.extend=T.fn.extend=function(){var h,b,E,O,F,j,H=arguments[0]||{},ae=1,ne=arguments.length,pe=!1;for(typeof H=="boolean"&&(pe=H,H=arguments[ae]||{},ae++),typeof H!="object"&&!A(H)&&(H={}),ae===ne&&(H=this,ae--);ae<ne;ae++)if((h=arguments[ae])!=null)for(b in h)O=h[b],!(b==="__proto__"||H===O)&&(pe&&O&&(T.isPlainObject(O)||(F=Array.isArray(O)))?(E=H[b],F&&!Array.isArray(E)?j=[]:!F&&!T.isPlainObject(E)?j={}:j=E,F=!1,H[b]=T.extend(pe,j,O)):O!==void 0&&(H[b]=O));return H},T.extend({expando:"jQuery"+(K+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"&&S.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,O=0;if(he(h))for(E=h.length;O<E&&b.call(h[O],O,h[O])!==!1;O++);else for(O in h)if(b.call(h[O],O,h[O])===!1)break;return h},text:function(h){var b,E="",O=0,F=h.nodeType;if(!F)for(;b=h[O++];)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&&(he(Object(h))?T.merge(E,typeof h=="string"?[h]:h):c.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!le.test(b||E&&E.nodeName||"HTML")},merge:function(h,b){for(var E=+b.length,O=0,F=h.length;O<E;O++)h[F++]=b[O];return h.length=F,h},grep:function(h,b,E){for(var O,F=[],j=0,H=h.length,ae=!E;j<H;j++)O=!b(h[j],j),O!==ae&&F.push(h[j]);return F},map:function(h,b,E){var O,F,j=0,H=[];if(he(h))for(O=h.length;j<O;j++)F=b(h[j],j,E),F!=null&&H.push(F);else for(j in h)F=b(h[j],j,E),F!=null&&H.push(F);return s(H)},guid:1,support:P}),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 he(h){var b=!!h&&"length"in h&&h.length,E=J(h);return A(h)||M(h)?!1:E==="array"||b===0||typeof b=="number"&&b>0&&b-1 in h}function oe(h,b){return h.nodeName&&h.nodeName.toLowerCase()===b.toLowerCase()}var ze=r.pop,je=r.sort,Pe=r.splice,Be="[\\x20\\t\\r\\n\\f]",He=new RegExp("^"+Be+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Be+"+$","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 ce=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function Se(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(ce,Se)};var Ie=R,Ge=c;(function(){var h,b,E,O,F,j=Ge,H,ae,ne,pe,Oe,Ae=T.expando,xe=0,Ye=0,st=Mn(),Ct=Mn(),kt=Mn(),In=Mn(),cn=function(Q,fe){return Q===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}"+Be+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Ft="\\["+Be+"*("+Lr+")(?:"+Be+"*([*^$|!~]?=)"+Be+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+Lr+"))|)"+Be+"*\\]",Fr=":("+Lr+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+Ft+")*)|.*)\\)|)",jt=new RegExp(Be+"+","g"),en=new RegExp("^"+Be+"*,"+Be+"*"),fo=new RegExp("^"+Be+"*([>+~]|"+Be+")"+Be+"*"),ho=new RegExp(Be+"|>"),xr=new RegExp(Fr),D=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)(?:\\("+Be+"*(even|odd|(([+-]|)(\\d*)n|)"+Be+"*(?:([+-]|)"+Be+"*(\\d+)|))"+Be+"*\\)|)","i"),bool:new RegExp("^(?:"+Mr+")$","i"),needsContext:new RegExp("^"+Be+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+Be+"*((?:-\\d)?\\d*)"+Be+"*\\)|)(?=[^-]|$)","i")},W=/^(?:input|select|textarea|button)$/i,ee=/^h\d$/i,me=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ye=/[+~]/,Le=new RegExp("\\\\[\\da-fA-F]{1,6}"+Be+"?|\\\\([^\\r\\n\\f])","g"),Ke=function(Q,fe){var Te="0x"+Q.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(Q){return Q.disabled===!0&&oe(Q,"fieldset")},{dir:"parentNode",next:"legend"});function Tt(){try{return H.activeElement}catch{}}try{j.apply(r=o.call(Ie.childNodes),Ie.childNodes),r[Ie.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(Q,fe,Te,De){var Z,ue,se,Me,Ve,ut,ft,ot=fe&&fe.ownerDocument,Mt=fe?fe.nodeType:9;if(Te=Te||[],typeof Q!="string"||!Q||Mt!==1&&Mt!==9&&Mt!==11)return Te;if(!De&&(Ri(fe),fe=fe||H,ne)){if(Mt!==11&&(Ve=me.exec(Q)))if(Z=Ve[1]){if(Mt===9)if(se=fe.getElementById(Z)){if(se.id===Z)return j.call(Te,se),Te}else return Te;else if(ot&&(se=ot.getElementById(Z))&&bt.contains(fe,se)&&se.id===Z)return j.call(Te,se),Te}else{if(Ve[2])return j.apply(Te,fe.getElementsByTagName(Q)),Te;if((Z=Ve[3])&&fe.getElementsByClassName)return j.apply(Te,fe.getElementsByClassName(Z)),Te}if(!In[Q+" "]&&(!pe||!pe.test(Q))){if(ft=Q,ot=fe,Mt===1&&(ho.test(Q)||fo.test(Q))){for(ot=ye.test(Q)&&zs(fe.parentNode)||fe,(ot!=fe||!P.scope)&&((Me=fe.getAttribute("id"))?Me=T.escapeSelector(Me):fe.setAttribute("id",Me=Ae)),ut=na(Q),ue=ut.length;ue--;)ut[ue]=(Me?"#"+Me:":scope")+" "+ei(ut[ue]);ft=ut.join(",")}try{return j.apply(Te,ot.querySelectorAll(ft)),Te}catch{In(Q,!0)}finally{Me===Ae&&fe.removeAttribute("id")}}}return Fa(Q.replace(He,"$1"),fe,Te,De)}function Mn(){var Q=[];function fe(Te,De){return Q.push(Te+" ")>b.cacheLength&&delete fe[Q.shift()],fe[Te+" "]=De}return fe}function xn(Q){return Q[Ae]=!0,Q}function Vn(Q){var fe=H.createElement("fieldset");try{return!!Q(fe)}catch{return!1}finally{fe.parentNode&&fe.parentNode.removeChild(fe),fe=null}}function ta(Q){return function(fe){return oe(fe,"input")&&fe.type===Q}}function us(Q){return function(fe){return(oe(fe,"input")||oe(fe,"button"))&&fe.type===Q}}function po(Q){return function(fe){return"form"in fe?fe.parentNode&&fe.disabled===!1?"label"in fe?"label"in fe.parentNode?fe.parentNode.disabled===Q:fe.disabled===Q:fe.isDisabled===Q||fe.isDisabled!==!Q&&Pt(fe)===Q:fe.disabled===Q:"label"in fe?fe.disabled===Q:!1}}function Qr(Q){return xn(function(fe){return fe=+fe,xn(function(Te,De){for(var Z,ue=Q([],Te.length,fe),se=ue.length;se--;)Te[Z=ue[se]]&&(Te[Z]=!(De[Z]=Te[Z]))})})}function zs(Q){return Q&&typeof Q.getElementsByTagName<"u"&&Q}function Ri(Q){var fe,Te=Q?Q.ownerDocument||Q:Ie;return Te==H||Te.nodeType!==9||!Te.documentElement||(H=Te,ae=H.documentElement,ne=!T.isXMLDoc(H),Oe=ae.matches||ae.webkitMatchesSelector||ae.msMatchesSelector,ae.msMatchesSelector&&Ie!=H&&(fe=H.defaultView)&&fe.top!==fe&&fe.addEventListener("unload",gt),P.getById=Vn(function(De){return ae.appendChild(De).id=T.expando,!H.getElementsByName||!H.getElementsByName(T.expando).length}),P.disconnectedMatch=Vn(function(De){return Oe.call(De,"*")}),P.scope=Vn(function(){return H.querySelectorAll(":scope")}),P.cssHas=Vn(function(){try{return H.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),P.getById?(b.filter.ID=function(De){var Z=De.replace(Le,Ke);return function(ue){return ue.getAttribute("id")===Z}},b.find.ID=function(De,Z){if(typeof Z.getElementById<"u"&&ne){var ue=Z.getElementById(De);return ue?[ue]:[]}}):(b.filter.ID=function(De){var Z=De.replace(Le,Ke);return function(ue){var se=typeof ue.getAttributeNode<"u"&&ue.getAttributeNode("id");return se&&se.value===Z}},b.find.ID=function(De,Z){if(typeof Z.getElementById<"u"&&ne){var ue,se,Me,Ve=Z.getElementById(De);if(Ve){if(ue=Ve.getAttributeNode("id"),ue&&ue.value===De)return[Ve];for(Me=Z.getElementsByName(De),se=0;Ve=Me[se++];)if(ue=Ve.getAttributeNode("id"),ue&&ue.value===De)return[Ve]}return[]}}),b.find.TAG=function(De,Z){return typeof Z.getElementsByTagName<"u"?Z.getElementsByTagName(De):Z.querySelectorAll(De)},b.find.CLASS=function(De,Z){if(typeof Z.getElementsByClassName<"u"&&ne)return Z.getElementsByClassName(De)},pe=[],Vn(function(De){var Z;ae.appendChild(De).innerHTML="<a id='"+Ae+"' href='' disabled='disabled'></a><select id='"+Ae+"-\r\\' disabled='disabled'><option selected=''></option></select>",De.querySelectorAll("[selected]").length||pe.push("\\["+Be+"*(?:value|"+Mr+")"),De.querySelectorAll("[id~="+Ae+"-]").length||pe.push("~="),De.querySelectorAll("a#"+Ae+"+*").length||pe.push(".#.+[+~]"),De.querySelectorAll(":checked").length||pe.push(":checked"),Z=H.createElement("input"),Z.setAttribute("type","hidden"),De.appendChild(Z).setAttribute("name","D"),ae.appendChild(De).disabled=!0,De.querySelectorAll(":disabled").length!==2&&pe.push(":enabled",":disabled"),Z=H.createElement("input"),Z.setAttribute("name",""),De.appendChild(Z),De.querySelectorAll("[name='']").length||pe.push("\\["+Be+"*name"+Be+"*="+Be+`*(?:''|"")`)}),P.cssHas||pe.push(":has"),pe=pe.length&&new RegExp(pe.join("|")),cn=function(De,Z){if(De===Z)return F=!0,0;var ue=!De.compareDocumentPosition-!Z.compareDocumentPosition;return ue||(ue=(De.ownerDocument||De)==(Z.ownerDocument||Z)?De.compareDocumentPosition(Z):1,ue&1||!P.sortDetached&&Z.compareDocumentPosition(De)===ue?De===H||De.ownerDocument==Ie&&bt.contains(Ie,De)?-1:Z===H||Z.ownerDocument==Ie&&bt.contains(Ie,Z)?1:O?f.call(O,De)-f.call(O,Z):0:ue&4?-1:1)}),H}bt.matches=function(Q,fe){return bt(Q,null,null,fe)},bt.matchesSelector=function(Q,fe){if(Ri(Q),ne&&!In[fe+" "]&&(!pe||!pe.test(fe)))try{var Te=Oe.call(Q,fe);if(Te||P.disconnectedMatch||Q.document&&Q.document.nodeType!==11)return Te}catch{In(fe,!0)}return bt(fe,H,null,[Q]).length>0},bt.contains=function(Q,fe){return(Q.ownerDocument||Q)!=H&&Ri(Q),T.contains(Q,fe)},bt.attr=function(Q,fe){(Q.ownerDocument||Q)!=H&&Ri(Q);var Te=b.attrHandle[fe.toLowerCase()],De=Te&&g.call(b.attrHandle,fe.toLowerCase())?Te(Q,fe,!ne):void 0;return De!==void 0?De:Q.getAttribute(fe)},bt.error=function(Q){throw new Error("Syntax error, unrecognized expression: "+Q)},T.uniqueSort=function(Q){var fe,Te=[],De=0,Z=0;if(F=!P.sortStable,O=!P.sortStable&&o.call(Q,0),je.call(Q,cn),F){for(;fe=Q[Z++];)fe===Q[Z]&&(De=Te.push(Z));for(;De--;)Pe.call(Q,Te[De],1)}return O=null,Q},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(Q){return Q[1]=Q[1].replace(Le,Ke),Q[3]=(Q[3]||Q[4]||Q[5]||"").replace(Le,Ke),Q[2]==="~="&&(Q[3]=" "+Q[3]+" "),Q.slice(0,4)},CHILD:function(Q){return Q[1]=Q[1].toLowerCase(),Q[1].slice(0,3)==="nth"?(Q[3]||bt.error(Q[0]),Q[4]=+(Q[4]?Q[5]+(Q[6]||1):2*(Q[3]==="even"||Q[3]==="odd")),Q[5]=+(Q[7]+Q[8]||Q[3]==="odd")):Q[3]&&bt.error(Q[0]),Q},PSEUDO:function(Q){var fe,Te=!Q[6]&&Q[2];return L.CHILD.test(Q[0])?null:(Q[3]?Q[2]=Q[4]||Q[5]||"":Te&&xr.test(Te)&&(fe=na(Te,!0))&&(fe=Te.indexOf(")",Te.length-fe)-Te.length)&&(Q[0]=Q[0].slice(0,fe),Q[2]=Te.slice(0,fe)),Q.slice(0,3))}},filter:{TAG:function(Q){var fe=Q.replace(Le,Ke).toLowerCase();return Q==="*"?function(){return!0}:function(Te){return oe(Te,fe)}},CLASS:function(Q){var fe=st[Q+" "];return fe||(fe=new RegExp("(^|"+Be+")"+Q+"("+Be+"|$)"))&&st(Q,function(Te){return fe.test(typeof Te.className=="string"&&Te.className||typeof Te.getAttribute<"u"&&Te.getAttribute("class")||"")})},ATTR:function(Q,fe,Te){return function(De){var Z=bt.attr(De,Q);return Z==null?fe==="!=":fe?(Z+="",fe==="="?Z===Te:fe==="!="?Z!==Te:fe==="^="?Te&&Z.indexOf(Te)===0:fe==="*="?Te&&Z.indexOf(Te)>-1:fe==="$="?Te&&Z.slice(-Te.length)===Te:fe==="~="?(" "+Z.replace(jt," ")+" ").indexOf(Te)>-1:fe==="|="?Z===Te||Z.slice(0,Te.length+1)===Te+"-":!1):!0}},CHILD:function(Q,fe,Te,De,Z){var ue=Q.slice(0,3)!=="nth",se=Q.slice(-4)!=="last",Me=fe==="of-type";return De===1&&Z===0?function(Ve){return!!Ve.parentNode}:function(Ve,ut,ft){var ot,Mt,xt,Vt,Gn,tr=ue!==se?"nextSibling":"previousSibling",Ln=Ve.parentNode,zt=Me&&Ve.nodeName.toLowerCase(),Nr=!ft&&!Me,Dt=!1;if(Ln){if(ue){for(;tr;){for(xt=Ve;xt=xt[tr];)if(Me?oe(xt,zt):xt.nodeType===1)return!1;Gn=tr=Q==="only"&&!Gn&&"nextSibling"}return!0}if(Gn=[se?Ln.firstChild:Ln.lastChild],se&&Nr){for(Mt=Ln[Ae]||(Ln[Ae]={}),ot=Mt[Q]||[],Vt=ot[0]===xe&&ot[1],Dt=Vt&&ot[2],xt=Vt&&Ln.childNodes[Vt];xt=++Vt&&xt&&xt[tr]||(Dt=Vt=0)||Gn.pop();)if(xt.nodeType===1&&++Dt&&xt===Ve){Mt[Q]=[xe,Vt,Dt];break}}else if(Nr&&(Mt=Ve[Ae]||(Ve[Ae]={}),ot=Mt[Q]||[],Vt=ot[0]===xe&&ot[1],Dt=Vt),Dt===!1)for(;(xt=++Vt&&xt&&xt[tr]||(Dt=Vt=0)||Gn.pop())&&!((Me?oe(xt,zt):xt.nodeType===1)&&++Dt&&(Nr&&(Mt=xt[Ae]||(xt[Ae]={}),Mt[Q]=[xe,Dt]),xt===Ve)););return Dt-=Z,Dt===De||Dt%De===0&&Dt/De>=0}}},PSEUDO:function(Q,fe){var Te,De=b.pseudos[Q]||b.setFilters[Q.toLowerCase()]||bt.error("unsupported pseudo: "+Q);return De[Ae]?De(fe):De.length>1?(Te=[Q,Q,"",fe],b.setFilters.hasOwnProperty(Q.toLowerCase())?xn(function(Z,ue){for(var se,Me=De(Z,fe),Ve=Me.length;Ve--;)se=f.call(Z,Me[Ve]),Z[se]=!(ue[se]=Me[Ve])}):function(Z){return De(Z,0,Te)}):De}},pseudos:{not:xn(function(Q){var fe=[],Te=[],De=ds(Q.replace(He,"$1"));return De[Ae]?xn(function(Z,ue,se,Me){for(var Ve,ut=De(Z,null,Me,[]),ft=Z.length;ft--;)(Ve=ut[ft])&&(Z[ft]=!(ue[ft]=Ve))}):function(Z,ue,se){return fe[0]=Z,De(fe,null,se,Te),fe[0]=null,!Te.pop()}}),has:xn(function(Q){return function(fe){return bt(Q,fe).length>0}}),contains:xn(function(Q){return Q=Q.replace(Le,Ke),function(fe){return(fe.textContent||T.text(fe)).indexOf(Q)>-1}}),lang:xn(function(Q){return D.test(Q||"")||bt.error("unsupported lang: "+Q),Q=Q.replace(Le,Ke).toLowerCase(),function(fe){var Te;do if(Te=ne?fe.lang:fe.getAttribute("xml:lang")||fe.getAttribute("lang"))return Te=Te.toLowerCase(),Te===Q||Te.indexOf(Q+"-")===0;while((fe=fe.parentNode)&&fe.nodeType===1);return!1}}),target:function(Q){var fe=t.location&&t.location.hash;return fe&&fe.slice(1)===Q.id},root:function(Q){return Q===ae},focus:function(Q){return Q===Tt()&&H.hasFocus()&&!!(Q.type||Q.href||~Q.tabIndex)},enabled:po(!1),disabled:po(!0),checked:function(Q){return oe(Q,"input")&&!!Q.checked||oe(Q,"option")&&!!Q.selected},selected:function(Q){return Q.parentNode&&Q.parentNode.selectedIndex,Q.selected===!0},empty:function(Q){for(Q=Q.firstChild;Q;Q=Q.nextSibling)if(Q.nodeType<6)return!1;return!0},parent:function(Q){return!b.pseudos.empty(Q)},header:function(Q){return ee.test(Q.nodeName)},input:function(Q){return W.test(Q.nodeName)},button:function(Q){return oe(Q,"input")&&Q.type==="button"||oe(Q,"button")},text:function(Q){var fe;return oe(Q,"input")&&Q.type==="text"&&((fe=Q.getAttribute("type"))==null||fe.toLowerCase()==="text")},first:Qr(function(){return[0]}),last:Qr(function(Q,fe){return[fe-1]}),eq:Qr(function(Q,fe,Te){return[Te<0?Te+fe:Te]}),even:Qr(function(Q,fe){for(var Te=0;Te<fe;Te+=2)Q.push(Te);return Q}),odd:Qr(function(Q,fe){for(var Te=1;Te<fe;Te+=2)Q.push(Te);return Q}),lt:Qr(function(Q,fe,Te){var De;for(Te<0?De=Te+fe:Te>fe?De=fe:De=Te;--De>=0;)Q.push(De);return Q}),gt:Qr(function(Q,fe,Te){for(var De=Te<0?Te+fe:Te;++De<fe;)Q.push(De);return Q})}},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]=us(h);function cs(){}cs.prototype=b.filters=b.pseudos,b.setFilters=new cs;function na(Q,fe){var Te,De,Z,ue,se,Me,Ve,ut=Ct[Q+" "];if(ut)return fe?0:ut.slice(0);for(se=Q,Me=[],Ve=b.preFilter;se;){(!Te||(De=en.exec(se)))&&(De&&(se=se.slice(De[0].length)||se),Me.push(Z=[])),Te=!1,(De=fo.exec(se))&&(Te=De.shift(),Z.push({value:Te,type:De[0].replace(He," ")}),se=se.slice(Te.length));for(ue in b.filter)(De=L[ue].exec(se))&&(!Ve[ue]||(De=Ve[ue](De)))&&(Te=De.shift(),Z.push({value:Te,type:ue,matches:De}),se=se.slice(Te.length));if(!Te)break}return fe?se.length:se?bt.error(Q):Ct(Q,Me).slice(0)}function ei(Q){for(var fe=0,Te=Q.length,De="";fe<Te;fe++)De+=Q[fe].value;return De}function go(Q,fe,Te){var De=fe.dir,Z=fe.next,ue=Z||De,se=Te&&ue==="parentNode",Me=Ye++;return fe.first?function(Ve,ut,ft){for(;Ve=Ve[De];)if(Ve.nodeType===1||se)return Q(Ve,ut,ft);return!1}:function(Ve,ut,ft){var ot,Mt,xt=[xe,Me];if(ft){for(;Ve=Ve[De];)if((Ve.nodeType===1||se)&&Q(Ve,ut,ft))return!0}else for(;Ve=Ve[De];)if(Ve.nodeType===1||se)if(Mt=Ve[Ae]||(Ve[Ae]={}),Z&&oe(Ve,Z))Ve=Ve[De]||Ve;else{if((ot=Mt[ue])&&ot[0]===xe&&ot[1]===Me)return xt[2]=ot[2];if(Mt[ue]=xt,xt[2]=Q(Ve,ut,ft))return!0}return!1}}function Ys(Q){return Q.length>1?function(fe,Te,De){for(var Z=Q.length;Z--;)if(!Q[Z](fe,Te,De))return!1;return!0}:Q[0]}function _u(Q,fe,Te){for(var De=0,Z=fe.length;De<Z;De++)bt(Q,fe[De],Te);return Te}function fs(Q,fe,Te,De,Z){for(var ue,se=[],Me=0,Ve=Q.length,ut=fe!=null;Me<Ve;Me++)(ue=Q[Me])&&(!Te||Te(ue,De,Z))&&(se.push(ue),ut&&fe.push(Me));return se}function vo(Q,fe,Te,De,Z,ue){return De&&!De[Ae]&&(De=vo(De)),Z&&!Z[Ae]&&(Z=vo(Z,ue)),xn(function(se,Me,Ve,ut){var ft,ot,Mt,xt,Vt=[],Gn=[],tr=Me.length,Ln=se||_u(fe||"*",Ve.nodeType?[Ve]:Ve,[]),zt=Q&&(se||!fe)?fs(Ln,Vt,Q,Ve,ut):Ln;if(Te?(xt=Z||(se?Q:tr||De)?[]:Me,Te(zt,xt,Ve,ut)):xt=zt,De)for(ft=fs(xt,Gn),De(ft,[],Ve,ut),ot=ft.length;ot--;)(Mt=ft[ot])&&(xt[Gn[ot]]=!(zt[Gn[ot]]=Mt));if(se){if(Z||Q){if(Z){for(ft=[],ot=xt.length;ot--;)(Mt=xt[ot])&&ft.push(zt[ot]=Mt);Z(null,xt=[],ft,ut)}for(ot=xt.length;ot--;)(Mt=xt[ot])&&(ft=Z?f.call(se,Mt):Vt[ot])>-1&&(se[ft]=!(Me[ft]=Mt))}}else xt=fs(xt===Me?xt.splice(tr,xt.length):xt),Z?Z(null,Me,xt,ut):j.apply(Me,xt)})}function fn(Q){for(var fe,Te,De,Z=Q.length,ue=b.relative[Q[0].type],se=ue||b.relative[" "],Me=ue?1:0,Ve=go(function(ot){return ot===fe},se,!0),ut=go(function(ot){return f.call(fe,ot)>-1},se,!0),ft=[function(ot,Mt,xt){var Vt=!ue&&(xt||Mt!=E)||((fe=Mt).nodeType?Ve(ot,Mt,xt):ut(ot,Mt,xt));return fe=null,Vt}];Me<Z;Me++)if(Te=b.relative[Q[Me].type])ft=[go(Ys(ft),Te)];else{if(Te=b.filter[Q[Me].type].apply(null,Q[Me].matches),Te[Ae]){for(De=++Me;De<Z&&!b.relative[Q[De].type];De++);return vo(Me>1&&Ys(ft),Me>1&&ei(Q.slice(0,Me-1).concat({value:Q[Me-2].type===" "?"*":""})).replace(He,"$1"),Te,Me<De&&fn(Q.slice(Me,De)),De<Z&&fn(Q=Q.slice(De)),De<Z&&ei(Q))}ft.push(Te)}return Ys(ft)}function Il(Q,fe){var Te=fe.length>0,De=Q.length>0,Z=function(ue,se,Me,Ve,ut){var ft,ot,Mt,xt=0,Vt="0",Gn=ue&&[],tr=[],Ln=E,zt=ue||De&&b.find.TAG("*",ut),Nr=xe+=Ln==null?1:Math.random()||.1,Dt=zt.length;for(ut&&(E=se==H||se||ut);Vt!==Dt&&(ft=zt[Vt])!=null;Vt++){if(De&&ft){for(ot=0,!se&&ft.ownerDocument!=H&&(Ri(ft),Me=!ne);Mt=Q[ot++];)if(Mt(ft,se||H,Me)){j.call(Ve,ft);break}ut&&(xe=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,se,Me);if(ue){if(xt>0)for(;Vt--;)Gn[Vt]||tr[Vt]||(tr[Vt]=ze.call(Ve));tr=fs(tr)}j.apply(Ve,tr),ut&&!ue&&tr.length>0&&xt+fe.length>1&&T.uniqueSort(Ve)}return ut&&(xe=Nr,E=Ln),Gn};return Te?xn(Z):Z}function ds(Q,fe){var Te,De=[],Z=[],ue=kt[Q+" "];if(!ue){for(fe||(fe=na(Q)),Te=fe.length;Te--;)ue=fn(fe[Te]),ue[Ae]?De.push(ue):Z.push(ue);ue=kt(Q,Il(Z,De)),ue.selector=Q}return ue}function Fa(Q,fe,Te,De){var Z,ue,se,Me,Ve,ut=typeof Q=="function"&&Q,ft=!De&&na(Q=ut.selector||Q);if(Te=Te||[],ft.length===1){if(ue=ft[0]=ft[0].slice(0),ue.length>2&&(se=ue[0]).type==="ID"&&fe.nodeType===9&&ne&&b.relative[ue[1].type]){if(fe=(b.find.ID(se.matches[0].replace(Le,Ke),fe)||[])[0],fe)ut&&(fe=fe.parentNode);else return Te;Q=Q.slice(ue.shift().value.length)}for(Z=L.needsContext.test(Q)?0:ue.length;Z--&&(se=ue[Z],!b.relative[Me=se.type]);)if((Ve=b.find[Me])&&(De=Ve(se.matches[0].replace(Le,Ke),ye.test(ue[0].type)&&zs(fe.parentNode)||fe))){if(ue.splice(Z,1),Q=De.length&&ei(ue),!Q)return j.apply(Te,De),Te;break}}return(ut||ds(Q,ft))(De,fe,!ne,Te,!fe||ye.test(Q)&&zs(fe.parentNode)||fe),Te}P.sortStable=Ae.split("").sort(cn).join("")===Ae,Ri(),P.sortDetached=Vn(function(Q){return Q.compareDocumentPosition(H.createElement("fieldset"))&1}),T.find=bt,T.expr[":"]=T.expr.pseudos,T.unique=T.uniqueSort,bt.compile=ds,bt.select=Fa,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 O=[],F=E!==void 0;(h=h[b])&&h.nodeType!==9;)if(h.nodeType===1){if(F&&T(h).is(E))break;O.push(h)}return O},we=function(h,b){for(var E=[];h;h=h.nextSibling)h.nodeType===1&&h!==b&&E.push(h);return E},Ee=T.expr.match.needsContext,Ue=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function $e(h,b,E){return A(b)?T.grep(h,function(O,F){return!!b.call(O,F,O)!==E}):b.nodeType?T.grep(h,function(O){return O===b!==E}):typeof b!="string"?T.grep(h,function(O){return f.call(b,O)>-1!==E}):T.filter(b,h,E)}T.filter=function(h,b,E){var O=b[0];return E&&(h=":not("+h+")"),b.length===1&&O.nodeType===1?T.find.matchesSelector(O,h)?[O]:[]:T.find.matches(h,T.grep(b,function(F){return F.nodeType===1}))},T.fn.extend({find:function(h){var b,E,O=this.length,F=this;if(typeof h!="string")return this.pushStack(T(h).filter(function(){for(b=0;b<O;b++)if(T.contains(F[b],this))return!0}));for(E=this.pushStack([]),b=0;b<O;b++)T.find(h,F[b],E);return O>1?T.uniqueSort(E):E},filter:function(h){return this.pushStack($e(this,h||[],!1))},not:function(h){return this.pushStack($e(this,h||[],!0))},is:function(h){return!!$e(this,typeof h=="string"&&Ee.test(h)?T(h):h||[],!1).length}});var ke,_e=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Ne=T.fn.init=function(h,b,E){var O,F;if(!h)return this;if(E=E||ke,typeof h=="string")if(h[0]==="<"&&h[h.length-1]===">"&&h.length>=3?O=[null,h,null]:O=_e.exec(h),O&&(O[1]||!b))if(O[1]){if(b=b instanceof T?b[0]:b,T.merge(this,T.parseHTML(O[1],b&&b.nodeType?b.ownerDocument||b:R,!0)),Ue.test(O[1])&&T.isPlainObject(b))for(O in b)A(this[O])?this[O](b[O]):this.attr(O,b[O]);return this}else return F=R.getElementById(O[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)};Ne.prototype=T.fn,ke=T(R);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 O=0;O<E;O++)if(T.contains(this,b[O]))return!0})},closest:function(h,b){var E,O=0,F=this.length,j=[],H=typeof h!="string"&&T(h);if(!Ee.test(h)){for(;O<F;O++)for(E=this[O];E&&E!==b;E=E.parentNode)if(E.nodeType<11&&(H?H.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 we((h.parentNode||{}).firstChild,h)},children:function(h){return we(h.firstChild)},contents:function(h){return h.contentDocument!=null&&i(h.contentDocument)?h.contentDocument:(oe(h,"template")&&(h=h.content||h),T.merge([],h.childNodes))}},function(h,b){T.fn[h]=function(E,O){var F=T.map(this,b,E);return h.slice(-5)!=="Until"&&(O=E),O&&typeof O=="string"&&(F=T.filter(O,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,O){b[O]=!0}),b}T.Callbacks=function(h){h=typeof h=="string"?mt(h):T.extend({},h);var b,E,O,F,j=[],H=[],ae=-1,ne=function(){for(F=F||h.once,O=b=!0;H.length;ae=-1)for(E=H.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,H.push(E)),function Oe(Ae){T.each(Ae,function(xe,Ye){A(Ye)?(!h.unique||!pe.has(Ye))&&j.push(Ye):Ye&&Ye.length&&J(Ye)!=="string"&&Oe(Ye)})}(arguments),E&&!b&&ne()),this},remove:function(){return T.each(arguments,function(Oe,Ae){for(var xe;(xe=T.inArray(Ae,j,xe))>-1;)j.splice(xe,1),xe<=ae&&ae--}),this},has:function(Oe){return Oe?T.inArray(Oe,j)>-1:j.length>0},empty:function(){return j&&(j=[]),this},disable:function(){return F=H=[],j=E="",this},disabled:function(){return!j},lock:function(){return F=H=[],!E&&!b&&(j=E=""),this},locked:function(){return!!F},fireWith:function(Oe,Ae){return F||(Ae=Ae||[],Ae=[Oe,Ae.slice?Ae.slice():Ae],H.push(Ae),b||ne()),this},fire:function(){return pe.fireWith(this,arguments),this},fired:function(){return!!O}};return pe};function et(h){return h}function At(h){throw h}function Lt(h,b,E,O){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(O))}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",O={state:function(){return E},always:function(){return F.done(arguments).fail(arguments),this},catch:function(j){return O.then(null,j)},pipe:function(){var j=arguments;return T.Deferred(function(H){T.each(b,function(ae,ne){var pe=A(j[ne[4]])&&j[ne[4]];F[ne[1]](function(){var Oe=pe&&pe.apply(this,arguments);Oe&&A(Oe.promise)?Oe.promise().progress(H.notify).done(H.resolve).fail(H.reject):H[ne[0]+"With"](this,pe?[Oe]:arguments)})}),j=null}).promise()},then:function(j,H,ae){var ne=0;function pe(Oe,Ae,xe,Ye){return function(){var st=this,Ct=arguments,kt=function(){var cn,Mr;if(!(Oe<ne)){if(cn=xe.apply(st,Ct),cn===Ae.promise())throw new TypeError("Thenable self-resolution");Mr=cn&&(typeof cn=="object"||typeof cn=="function")&&cn.then,A(Mr)?Ye?Mr.call(cn,pe(ne,Ae,et,Ye),pe(ne,Ae,At,Ye)):(ne++,Mr.call(cn,pe(ne,Ae,et,Ye),pe(ne,Ae,At,Ye),pe(ne,Ae,et,Ae.notifyWith))):(xe!==et&&(st=void 0,Ct=[cn]),(Ye||Ae.resolveWith)(st,Ct))}},In=Ye?kt:function(){try{kt()}catch(cn){T.Deferred.exceptionHook&&T.Deferred.exceptionHook(cn,In.error),Oe+1>=ne&&(xe!==At&&(st=void 0,Ct=[cn]),Ae.rejectWith(st,Ct))}};Oe?In():(T.Deferred.getErrorHook?In.error=T.Deferred.getErrorHook():T.Deferred.getStackHook&&(In.error=T.Deferred.getStackHook()),t.setTimeout(In))}}return T.Deferred(function(Oe){b[0][3].add(pe(0,Oe,A(ae)?ae:et,Oe.notifyWith)),b[1][3].add(pe(0,Oe,A(j)?j:et)),b[2][3].add(pe(0,Oe,A(H)?H:At))}).promise()},promise:function(j){return j!=null?T.extend(j,O):O}},F={};return T.each(b,function(j,H){var ae=H[2],ne=H[5];O[H[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(H[3].fire),F[H[0]]=function(){return F[H[0]+"With"](this===F?void 0:this,arguments),this},F[H[0]+"With"]=ae.fireWith}),O.promise(F),h&&h.call(F,F),F},when:function(h){var b=arguments.length,E=b,O=Array(E),F=o.call(arguments),j=T.Deferred(),H=function(ae){return function(ne){O[ae]=this,F[ae]=arguments.length>1?o.call(arguments):ne,--b||j.resolveWith(O,F)}};if(b<=1&&(Lt(h,j.done(H(E)).resolve,j.reject,!b),j.state()==="pending"||A(F[E]&&F[E].then)))return j.then();for(;E--;)Lt(F[E],H(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(R,[T]))}}),T.ready.then=gr.then;function Un(){R.removeEventListener("DOMContentLoaded",Un),t.removeEventListener("load",Un),T.ready()}R.readyState==="complete"||R.readyState!=="loading"&&!R.documentElement.doScroll?t.setTimeout(T.ready):(R.addEventListener("DOMContentLoaded",Un),t.addEventListener("load",Un));var Cn=function(h,b,E,O,F,j,H){var ae=0,ne=h.length,pe=E==null;if(J(E)==="object"){F=!0;for(ae in E)Cn(h,b,ae,E[ae],!0,j,H)}else if(O!==void 0&&(F=!0,A(O)||(H=!0),pe&&(H?(b.call(h,O),b=null):(pe=b,b=function(Oe,Ae,xe){return pe.call(T(Oe),xe)})),b))for(;ae<ne;ae++)b(h[ae],E,H?O:O.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 O,F=this.cache(h);if(typeof b=="string")F[sn(b)]=E;else for(O in b)F[sn(O)]=b[O];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,O=h[this.expando];if(O!==void 0){if(b!==void 0)for(Array.isArray(b)?b=b.map(sn):(b=sn(b),b=b in O?[b]:b.match(lt)||[]),E=b.length;E--;)delete O[b[E]];(b===void 0||T.isEmptyObject(O))&&(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,On=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 O;if(E===void 0&&h.nodeType===1)if(O="data-"+b.replace(an,"-$&").toLowerCase(),E=h.getAttribute(O),typeof E=="string"){try{E=Bi(E)}catch{}On.set(h,b,E)}else E=void 0;return E}T.extend({hasData:function(h){return On.hasData(h)||dt.hasData(h)},data:function(h,b,E){return On.access(h,b,E)},removeData:function(h,b){On.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,O,F,j=this[0],H=j&&j.attributes;if(h===void 0){if(this.length&&(F=On.get(j),j.nodeType===1&&!dt.get(j,"hasDataAttrs"))){for(E=H.length;E--;)H[E]&&(O=H[E].name,O.indexOf("data-")===0&&(O=sn(O.slice(5)),$i(j,O,F[O])));dt.set(j,"hasDataAttrs",!0)}return F}return typeof h=="object"?this.each(function(){On.set(this,h)}):Cn(this,function(ae){var ne;if(j&&ae===void 0)return ne=On.get(j,h),ne!==void 0||(ne=$i(j,h),ne!==void 0)?ne:void 0;this.each(function(){On.set(this,h,ae)})},null,b,arguments.length>1,null,!0)},removeData:function(h){return this.each(function(){On.remove(this,h)})}}),T.extend({queue:function(h,b,E){var O;if(h)return b=(b||"fx")+"queue",O=dt.get(h,b),E&&(!O||Array.isArray(E)?O=dt.access(h,b,T.makeArray(E)):O.push(E)),O||[]},dequeue:function(h,b){b=b||"fx";var E=T.queue(h,b),O=E.length,F=E.shift(),j=T._queueHooks(h,b),H=function(){T.dequeue(h,b)};F==="inprogress"&&(F=E.shift(),O--),F&&(b==="fx"&&E.unshift("inprogress"),delete j.stop,F.call(h,H,j)),!O&&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 O=T.queue(this,h,b);T._queueHooks(this,h),h==="fx"&&O[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,O=1,F=T.Deferred(),j=this,H=this.length,ae=function(){--O||F.resolveWith(j,[j])};for(typeof h!="string"&&(b=h,h=void 0),h=h||"fx";H--;)E=dt.get(j[H],h+"queueHooks"),E&&E.empty&&(O++,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"],Dr=R.documentElement,vr=function(h){return T.contains(h.ownerDocument,h)},zr={composed:!0};Dr.getRootNode&&(vr=function(h){return T.contains(h.ownerDocument,h)||h.getRootNode(zr)===h.ownerDocument});var Yr=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,O){var F,j,H=20,ae=O?function(){return O.cur()}:function(){return T.css(h,b,"")},ne=ae(),pe=E&&E[3]||(T.cssNumber[b]?"":"px"),Oe=h.nodeType&&(T.cssNumber[b]||pe!=="px"&&+ne)&&kr.exec(T.css(h,b));if(Oe&&Oe[3]!==pe){for(ne=ne/2,pe=pe||Oe[3],Oe=+ne||1;H--;)T.style(h,b,Oe+pe),(1-j)*(1-(j=ae()/ne||.5))<=0&&(H=0),Oe=Oe/j;Oe=Oe*2,T.style(h,b,Oe+pe),E=E||[]}return E&&(Oe=+Oe||+ne||0,F=E[1]?Oe+(E[1]+1)*E[2]:+E[2],O&&(O.unit=pe,O.start=Oe,O.end=F)),F}var Wn={};function Gr(h){var b,E=h.ownerDocument,O=h.nodeName,F=Wn[O];return F||(b=E.body.appendChild(E.createElement(O)),F=T.css(b,"display"),b.parentNode.removeChild(b),F==="none"&&(F="block"),Wn[O]=F,F)}function Jn(h,b){for(var E,O,F=[],j=0,H=h.length;j<H;j++)O=h[j],O.style&&(E=O.style.display,b?(E==="none"&&(F[j]=dt.get(O,"display")||null,F[j]||(O.style.display="")),O.style.display===""&&Yr(O)&&(F[j]=Gr(O))):E!=="none"&&(F[j]="none",dt.set(O,"display",E)));for(j=0;j<H;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(){Yr(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=R.createDocumentFragment(),b=h.appendChild(R.createElement("div")),E=R.createElement("input");E.setAttribute("type","radio"),E.setAttribute("checked","checked"),E.setAttribute("name","t"),b.appendChild(E),P.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML="<textarea>x</textarea>",P.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue,b.innerHTML="<option></option>",P.option=!!b.lastChild})();var _n={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,"",""]};_n.tbody=_n.tfoot=_n.colgroup=_n.caption=_n.thead,_n.th=_n.td,P.option||(_n.optgroup=_n.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&&oe(h,b)?T.merge([h],E):E}function li(h,b){for(var E=0,O=h.length;E<O;E++)dt.set(h[E],"globalEval",!b||dt.get(b[E],"globalEval"))}var ui=/<|&#?\w+;/;function En(h,b,E,O,F){for(var j,H,ae,ne,pe,Oe,Ae=b.createDocumentFragment(),xe=[],Ye=0,st=h.length;Ye<st;Ye++)if(j=h[Ye],j||j===0)if(J(j)==="object")T.merge(xe,j.nodeType?[j]:j);else if(!ui.test(j))xe.push(b.createTextNode(j));else{for(H=H||Ae.appendChild(b.createElement("div")),ae=(si.exec(j)||["",""])[1].toLowerCase(),ne=_n[ae]||_n._default,H.innerHTML=ne[1]+T.htmlPrefilter(j)+ne[2],Oe=ne[0];Oe--;)H=H.lastChild;T.merge(xe,H.childNodes),H=Ae.firstChild,H.textContent=""}for(Ae.textContent="",Ye=0;j=xe[Ye++];){if(O&&T.inArray(j,O)>-1){F&&F.push(j);continue}if(pe=vr(j),H=pn(Ae.appendChild(j),"script"),pe&&li(H),E)for(Oe=0;j=H[Oe++];)Hi.test(j.type||"")&&E.push(j)}return Ae}var oo=/^([^.]*)(?:\.(.+)|)/;function mr(){return!0}function ci(){return!1}function ln(h,b,E,O,F,j){var H,ae;if(typeof b=="object"){typeof E!="string"&&(O=O||E,E=void 0);for(ae in b)ln(h,ae,E,O,b[ae],j);return h}if(O==null&&F==null?(F=E,O=E=void 0):F==null&&(typeof E=="string"?(F=O,O=void 0):(F=O,O=E,E=void 0)),F===!1)F=ci;else if(!F)return h;return j===1&&(H=F,F=function(ne){return T().off(ne),H.apply(this,arguments)},F.guid=H.guid||(H.guid=T.guid++)),h.each(function(){T.event.add(this,b,F,O,E)})}T.event={global:{},add:function(h,b,E,O,F){var j,H,ae,ne,pe,Oe,Ae,xe,Ye,st,Ct,kt=dt.get(h);if(dn(h))for(E.handler&&(j=E,E=j.handler,F=j.selector),F&&T.find.matchesSelector(Dr,F),E.guid||(E.guid=T.guid++),(ne=kt.events)||(ne=kt.events=Object.create(null)),(H=kt.handle)||(H=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])||[],Ye=Ct=ae[1],st=(ae[2]||"").split(".").sort(),Ye&&(Ae=T.event.special[Ye]||{},Ye=(F?Ae.delegateType:Ae.bindType)||Ye,Ae=T.event.special[Ye]||{},Oe=T.extend({type:Ye,origType:Ct,data:O,handler:E,guid:E.guid,selector:F,needsContext:F&&T.expr.match.needsContext.test(F),namespace:st.join(".")},j),(xe=ne[Ye])||(xe=ne[Ye]=[],xe.delegateCount=0,(!Ae.setup||Ae.setup.call(h,O,st,H)===!1)&&h.addEventListener&&h.addEventListener(Ye,H)),Ae.add&&(Ae.add.call(h,Oe),Oe.handler.guid||(Oe.handler.guid=E.guid)),F?xe.splice(xe.delegateCount++,0,Oe):xe.push(Oe),T.event.global[Ye]=!0)},remove:function(h,b,E,O,F){var j,H,ae,ne,pe,Oe,Ae,xe,Ye,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])||[],Ye=Ct=ae[1],st=(ae[2]||"").split(".").sort(),!Ye){for(Ye in ne)T.event.remove(h,Ye+b[pe],E,O,!0);continue}for(Ae=T.event.special[Ye]||{},Ye=(O?Ae.delegateType:Ae.bindType)||Ye,xe=ne[Ye]||[],ae=ae[2]&&new RegExp("(^|\\.)"+st.join("\\.(?:.*\\.|)")+"(\\.|$)"),H=j=xe.length;j--;)Oe=xe[j],(F||Ct===Oe.origType)&&(!E||E.guid===Oe.guid)&&(!ae||ae.test(Oe.namespace))&&(!O||O===Oe.selector||O==="**"&&Oe.selector)&&(xe.splice(j,1),Oe.selector&&xe.delegateCount--,Ae.remove&&Ae.remove.call(h,Oe));H&&!xe.length&&((!Ae.teardown||Ae.teardown.call(h,st,kt.handle)===!1)&&T.removeEvent(h,Ye,kt.handle),delete ne[Ye])}T.isEmptyObject(ne)&&dt.remove(h,"handle events")}},dispatch:function(h){var b,E,O,F,j,H,ae=new Array(arguments.length),ne=T.event.fix(h),pe=(dt.get(this,"events")||Object.create(null))[ne.type]||[],Oe=T.event.special[ne.type]||{};for(ae[0]=ne,b=1;b<arguments.length;b++)ae[b]=arguments[b];if(ne.delegateTarget=this,!(Oe.preDispatch&&Oe.preDispatch.call(this,ne)===!1)){for(H=T.event.handlers.call(this,ne,pe),b=0;(F=H[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,O=((T.event.special[j.origType]||{}).handle||j.handler).apply(F.elem,ae),O!==void 0&&(ne.result=O)===!1&&(ne.preventDefault(),ne.stopPropagation()));return Oe.postDispatch&&Oe.postDispatch.call(this,ne),ne.result}},handlers:function(h,b){var E,O,F,j,H,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=[],H={},E=0;E<ne;E++)O=b[E],F=O.selector+" ",H[F]===void 0&&(H[F]=O.needsContext?T(F,this).index(pe)>-1:T.find(F,this,null,[pe]).length),H[F]&&j.push(O);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&&oe(b,"input")&&ki(b,"click",!0),!1},trigger:function(h){var b=this||h;return Wt.test(b.type)&&b.click&&oe(b,"input")&&ki(b,"click"),!0},_default:function(h){var b=h.target;return Wt.test(b.type)&&b.click&&oe(b,"input")&&dt.get(b,"click")||oe(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(O){var F,j=dt.get(this,b);if(O.isTrigger&1&&this[b]){if(j)(T.event.special[b]||{}).delegateType&&O.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 O.stopImmediatePropagation(),O.preventDefault(),F}else j&&(dt.set(this,b,T.event.trigger(j[0],j.slice(1),this)),O.stopPropagation(),O.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(O){if(R.documentMode){var F=dt.get(this,"handle"),j=T.event.fix(O);j.type=O.type==="focusin"?"focus":"blur",j.isSimulated=!0,F(O),j.target===j.currentTarget&&F(j)}else T.event.simulate(b,O.target,T.event.fix(O))}T.event.special[h]={setup:function(){var O;if(ki(this,h,!0),R.documentMode)O=dt.get(this,b),O||this.addEventListener(b,E),dt.set(this,b,(O||0)+1);else return!1},trigger:function(){return ki(this,h),!0},teardown:function(){var O;if(R.documentMode)O=dt.get(this,b)-1,O?dt.set(this,b,O):(this.removeEventListener(b,E),dt.remove(this,b));else return!1},_default:function(O){return dt.get(O.target,h)},delegateType:b},T.event.special[b]={setup:function(){var O=this.ownerDocument||this.document||this,F=R.documentMode?this:O,j=dt.get(F,b);j||(R.documentMode?this.addEventListener(b,E):O.addEventListener(h,E,!0)),dt.set(F,b,(j||0)+1)},teardown:function(){var O=this.ownerDocument||this.document||this,F=R.documentMode?this:O,j=dt.get(F,b)-1;j?dt.set(F,b,j):(R.documentMode?this.removeEventListener(b,E):O.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 O,F=this,j=E.relatedTarget,H=E.handleObj;return(!j||j!==F&&!T.contains(F,j))&&(E.type=H.origType,O=H.handler.apply(this,arguments),E.type=b),O}}}),T.fn.extend({on:function(h,b,E,O){return ln(this,h,b,E,O)},one:function(h,b,E,O){return ln(this,h,b,E,O,1)},off:function(h,b,E){var O,F;if(h&&h.preventDefault&&h.handleObj)return O=h.handleObj,T(h.delegateTarget).off(O.namespace?O.origType+"."+O.namespace:O.origType,O.selector,O.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 Ra=/<script|<style|<link/i,Ia=/checked\s*(?:[^=]|=\s*.checked.)/i,qr=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function ao(h,b){return oe(h,"table")&&oe(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 Di(h){return(h.type||"").slice(0,5)==="true/"?h.type=h.type.slice(5):h.removeAttribute("type"),h}function Qn(h,b){var E,O,F,j,H,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,O=ne[F].length;E<O;E++)T.event.add(b,F,ne[F][E])}On.hasData(h)&&(H=On.access(h),ae=T.extend({},H),On.set(b,ae))}}function Or(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 _r(h,b,E,O){b=s(b);var F,j,H,ae,ne,pe,Oe=0,Ae=h.length,xe=Ae-1,Ye=b[0],st=A(Ye);if(st||Ae>1&&typeof Ye=="string"&&!P.checkClone&&Ia.test(Ye))return h.each(function(Ct){var kt=h.eq(Ct);st&&(b[0]=Ye.call(this,Ct,kt.html())),_r(kt,b,E,O)});if(Ae&&(F=En(b,h[0].ownerDocument,!1,h,O),j=F.firstChild,F.childNodes.length===1&&(F=j),j||O)){for(H=T.map(pn(F,"script"),so),ae=H.length;Oe<Ae;Oe++)ne=F,Oe!==xe&&(ne=T.clone(ne,!0,!0),ae&&T.merge(H,pn(ne,"script"))),E.call(h[Oe],ne,Oe);if(ae)for(pe=H[H.length-1].ownerDocument,T.map(H,Di),Oe=0;Oe<ae;Oe++)ne=H[Oe],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(qr,""),ne,pe))}return h}function fi(h,b,E){for(var O,F=b?T.filter(b,h):h,j=0;(O=F[j])!=null;j++)!E&&O.nodeType===1&&T.cleanData(pn(O)),O.parentNode&&(E&&vr(O)&&li(pn(O,"script")),O.parentNode.removeChild(O));return h}T.extend({htmlPrefilter:function(h){return h},clone:function(h,b,E){var O,F,j,H,ae=h.cloneNode(!0),ne=vr(h);if(!P.noCloneChecked&&(h.nodeType===1||h.nodeType===11)&&!T.isXMLDoc(h))for(H=pn(ae),j=pn(h),O=0,F=j.length;O<F;O++)Or(j[O],H[O]);if(b)if(E)for(j=j||pn(h),H=H||pn(ae),O=0,F=j.length;O<F;O++)Qn(j[O],H[O]);else Qn(h,ae);return H=pn(ae,"script"),H.length>0&&li(H,!ne&&pn(h,"script")),ae},cleanData:function(h){for(var b,E,O,F=T.event.special,j=0;(E=h[j])!==void 0;j++)if(dn(E)){if(b=E[dt.expando]){if(b.events)for(O in b.events)F[O]?T.event.remove(E,O):T.removeEvent(E,O,b.handle);E[dt.expando]=void 0}E[On.expando]&&(E[On.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 _r(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 _r(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 _r(this,arguments,function(h){this.parentNode&&this.parentNode.insertBefore(h,this)})},after:function(){return _r(this,arguments,function(h){this.parentNode&&this.parentNode.insertBefore(h,this.nextSibling)})},empty:function(){for(var h,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]||{},O=0,F=this.length;if(b===void 0&&E.nodeType===1)return E.innerHTML;if(typeof b=="string"&&!Ra.test(b)&&!_n[(si.exec(b)||["",""])[1].toLowerCase()]){b=T.htmlPrefilter(b);try{for(;O<F;O++)E=this[O]||{},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 _r(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 O,F=[],j=T(E),H=j.length-1,ae=0;ae<=H;ae++)O=ae===H?this:this.clone(!0),T(j[ae])[b](O),c.apply(F,O.get());return this.pushStack(F)}});var Xr=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 O,F,j={};for(F in b)j[F]=h.style[F],h.style[F]=b[F];O=E.call(h);for(F in b)h.style[F]=j[F];return O},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%",Dr.appendChild(ne).appendChild(pe);var Oe=t.getComputedStyle(pe);E=Oe.top!=="1%",ae=b(Oe.marginLeft)===12,pe.style.right="60%",j=b(Oe.right)===36,O=b(Oe.width)===36,pe.style.position="absolute",F=b(pe.offsetWidth/3)===12,Dr.removeChild(ne),pe=null}}function b(Oe){return Math.round(parseFloat(Oe))}var E,O,F,j,H,ae,ne=R.createElement("div"),pe=R.createElement("div");pe.style&&(pe.style.backgroundClip="content-box",pe.cloneNode(!0).style.backgroundClip="",P.clearCloneStyle=pe.style.backgroundClip==="content-box",T.extend(P,{boxSizingReliable:function(){return h(),O},pixelBoxStyles:function(){return h(),j},pixelPosition:function(){return h(),E},reliableMarginLeft:function(){return h(),ae},scrollboxSize:function(){return h(),F},reliableTrDimensions:function(){var Oe,Ae,xe,Ye;return H==null&&(Oe=R.createElement("table"),Ae=R.createElement("tr"),xe=R.createElement("div"),Oe.style.cssText="position:absolute;left:-11111px;border-collapse:separate",Ae.style.cssText="box-sizing:content-box;border:1px solid",Ae.style.height="1px",xe.style.height="9px",xe.style.display="block",Dr.appendChild(Oe).appendChild(Ae).appendChild(xe),Ye=t.getComputedStyle(Ae),H=parseInt(Ye.height,10)+parseInt(Ye.borderTopWidth,10)+parseInt(Ye.borderBottomWidth,10)===Ae.offsetHeight,Dr.removeChild(Oe)),H}}))})();function Oi(h,b,E){var O,F,j,H,ae=yr.test(b),ne=h.style;return E=E||Pr(h),E&&(H=E.getPropertyValue(b)||E[b],ae&&H&&(H=H.replace(He,"$1")||void 0),H===""&&!vr(h)&&(H=T.style(h,b)),!P.pixelBoxStyles()&&Xr.test(H)&&Ui.test(b)&&(O=ne.width,F=ne.minWidth,j=ne.maxWidth,ne.minWidth=ne.maxWidth=ne.width=H,H=E.width,ne.width=O,ne.minWidth=F,ne.maxWidth=j)),H!==void 0?H+"":H}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=R.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]).+)/,Kr={position:"absolute",visibility:"hidden",display:"block"},zn={letterSpacing:"0",fontWeight:"400"};function pi(h,b,E){var O=kr.exec(b);return O?Math.max(0,O[2]-(E||0))+(O[3]||"px"):b}function gi(h,b,E,O,F,j){var H=b==="width"?1:0,ae=0,ne=0,pe=0;if(E===(O?"border":"content"))return 0;for(;H<4;H+=2)E==="margin"&&(pe+=T.css(h,E+jn[H],!0,F)),O?(E==="content"&&(ne-=T.css(h,"padding"+jn[H],!0,F)),E!=="margin"&&(ne-=T.css(h,"border"+jn[H]+"Width",!0,F))):(ne+=T.css(h,"padding"+jn[H],!0,F),E!=="padding"?ne+=T.css(h,"border"+jn[H]+"Width",!0,F):ae+=T.css(h,"border"+jn[H]+"Width",!0,F));return!O&&j>=0&&(ne+=Math.max(0,Math.ceil(h["offset"+b[0].toUpperCase()+b.slice(1)]-j-ne-ae-.5))||0),ne+pe}function _i(h,b,E){var O=Pr(h),F=!P.boxSizingReliable()||E,j=F&&T.css(h,"boxSizing",!1,O)==="border-box",H=j,ae=Oi(h,b,O),ne="offset"+b[0].toUpperCase()+b.slice(1);if(Xr.test(ae)){if(!E)return ae;ae="auto"}return(!P.boxSizingReliable()&&j||!P.reliableTrDimensions()&&oe(h,"tr")||ae==="auto"||!parseFloat(ae)&&T.css(h,"display",!1,O)==="inline")&&h.getClientRects().length&&(j=T.css(h,"boxSizing",!1,O)==="border-box",H=ne in h,H&&(ae=h[ne])),ae=parseFloat(ae)||0,ae+gi(h,b,E||(j?"border":"content"),H,O,ae)+"px"}T.extend({cssHooks:{opacity:{get:function(h,b){if(b){var E=Oi(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,O){if(!(!h||h.nodeType===3||h.nodeType===8||!h.style)){var F,j,H,ae=sn(b),ne=yr.test(b),pe=h.style;if(ne||(b=hi(ae)),H=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")),!P.clearCloneStyle&&E===""&&b.indexOf("background")===0&&(pe[b]="inherit"),(!H||!("set"in H)||(E=H.set(h,E,O))!==void 0)&&(ne?pe.setProperty(b,E):pe[b]=E)}else return H&&"get"in H&&(F=H.get(h,!1,O))!==void 0?F:pe[b]}},css:function(h,b,E,O){var F,j,H,ae=sn(b),ne=yr.test(b);return ne||(b=hi(ae)),H=T.cssHooks[b]||T.cssHooks[ae],H&&"get"in H&&(F=H.get(h,!0,E)),F===void 0&&(F=Oi(h,b,O)),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,O,F){if(O)return br.test(T.css(E,"display"))&&(!E.getClientRects().length||!E.getBoundingClientRect().width)?er(E,Kr,function(){return _i(E,b,F)}):_i(E,b,F)},set:function(E,O,F){var j,H=Pr(E),ae=!P.scrollboxSize()&&H.position==="absolute",ne=ae||F,pe=ne&&T.css(E,"boxSizing",!1,H)==="border-box",Oe=F?gi(E,b,F,pe,H):0;return pe&&ae&&(Oe-=Math.ceil(E["offset"+b[0].toUpperCase()+b.slice(1)]-parseFloat(H[b])-gi(E,b,"border",!1,H)-.5)),Oe&&(j=kr.exec(O))&&(j[3]||"px")!=="px"&&(E.style[b]=O,O=T.css(E,b)),pi(E,O,Oe)}}}),T.cssHooks.marginLeft=sr(P.reliableMarginLeft,function(h,b){if(b)return(parseFloat(Oi(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 O=0,F={},j=typeof E=="string"?E.split(" "):[E];O<4;O++)F[h+jn[O]+b]=j[O]||j[O-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,O,F){var j,H,ae={},ne=0;if(Array.isArray(O)){for(j=Pr(E),H=O.length;ne<H;ne++)ae[O[ne]]=T.css(E,O[ne],!1,j);return ae}return F!==void 0?T.style(E,O,F):T.css(E,O)},h,b,arguments.length>1)}});function rn(h,b,E,O,F){return new rn.prototype.init(h,b,E,O,F)}T.Tween=rn,rn.prototype={constructor:rn,init:function(h,b,E,O,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=O,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&&(R.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,O=0,F={height:h};for(b=b?1:0;O<4;O+=2-b)E=jn[O],F["margin"+E]=F["padding"+E]=h;return b&&(F.opacity=F.width=h),F}function G(h,b,E){for(var O,F=(ge.tweeners[b]||[]).concat(ge.tweeners["*"]),j=0,H=F.length;j<H;j++)if(O=F[j].call(E,b,h))return O}function te(h,b,E){var O,F,j,H,ae,ne,pe,Oe,Ae="width"in b||"height"in b,xe=this,Ye={},st=h.style,Ct=h.nodeType&&Yr(h),kt=dt.get(h,"fxshow");E.queue||(H=T._queueHooks(h,"fx"),H.unqueued==null&&(H.unqueued=0,ae=H.empty.fire,H.empty.fire=function(){H.unqueued||ae()}),H.unqueued++,xe.always(function(){xe.always(function(){H.unqueued--,T.queue(h,"fx").length||H.empty.fire()})}));for(O in b)if(F=b[O],lo.test(F)){if(delete b[O],j=j||F==="toggle",F===(Ct?"hide":"show"))if(F==="show"&&kt&&kt[O]!==void 0)Ct=!0;else continue;Ye[O]=kt&&kt[O]||T.style(h,O)}if(ne=!T.isEmptyObject(b),!(!ne&&T.isEmptyObject(Ye))){Ae&&h.nodeType===1&&(E.overflow=[st.overflow,st.overflowX,st.overflowY],pe=kt&&kt.display,pe==null&&(pe=dt.get(h,"display")),Oe=T.css(h,"display"),Oe==="none"&&(pe?Oe=pe:(Jn([h],!0),pe=h.style.display||pe,Oe=T.css(h,"display"),Jn([h]))),(Oe==="inline"||Oe==="inline-block"&&pe!=null)&&T.css(h,"float")==="none"&&(ne||(xe.done(function(){st.display=pe}),pe==null&&(Oe=st.display,pe=Oe==="none"?"":Oe)),st.display="inline-block")),E.overflow&&(st.overflow="hidden",xe.always(function(){st.overflow=E.overflow[0],st.overflowX=E.overflow[1],st.overflowY=E.overflow[2]})),ne=!1;for(O in Ye)ne||(kt?"hidden"in kt&&(Ct=kt.hidden):kt=dt.access(h,"fxshow",{display:pe}),j&&(kt.hidden=!Ct),Ct&&Jn([h],!0),xe.done(function(){Ct||Jn([h]),dt.remove(h,"fxshow");for(O in Ye)T.style(h,O,Ye[O])})),ne=G(Ct?kt[O]:0,O,xe),O in kt||(kt[O]=ne.start,Ct&&(ne.end=ne.start,ne.start=0))}}function Ce(h,b){var E,O,F,j,H;for(E in h)if(O=sn(E),F=b[O],j=h[E],Array.isArray(j)&&(F=j[1],j=h[E]=j[0]),E!==O&&(h[O]=j,delete h[E]),H=T.cssHooks[O],H&&"expand"in H){j=H.expand(j),delete h[O];for(E in j)E in h||(h[E]=j[E],b[E]=F)}else b[O]=F}function ge(h,b,E){var O,F,j=0,H=ge.prefilters.length,ae=T.Deferred().always(function(){delete ne.elem}),ne=function(){if(F)return!1;for(var Ae=Bn||k(),xe=Math.max(0,pe.startTime+pe.duration-Ae),Ye=xe/pe.duration||0,st=1-Ye,Ct=0,kt=pe.tweens.length;Ct<kt;Ct++)pe.tweens[Ct].run(st);return ae.notifyWith(h,[pe,st,xe]),st<1&&kt?xe:(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(Ae,xe){var Ye=T.Tween(h,pe.opts,Ae,xe,pe.opts.specialEasing[Ae]||pe.opts.easing);return pe.tweens.push(Ye),Ye},stop:function(Ae){var xe=0,Ye=Ae?pe.tweens.length:0;if(F)return this;for(F=!0;xe<Ye;xe++)pe.tweens[xe].run(1);return Ae?(ae.notifyWith(h,[pe,1,0]),ae.resolveWith(h,[pe,Ae])):ae.rejectWith(h,[pe,Ae]),this}}),Oe=pe.props;for(Ce(Oe,pe.opts.specialEasing);j<H;j++)if(O=ge.prefilters[j].call(pe,h,Oe,pe.opts),O)return A(O.stop)&&(T._queueHooks(pe.elem,pe.opts.queue).stop=O.stop.bind(O)),O;return T.map(Oe,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,O=0,F=h.length;O<F;O++)E=h[O],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 O=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?O.duration=0:typeof O.duration!="number"&&(O.duration in T.fx.speeds?O.duration=T.fx.speeds[O.duration]:O.duration=T.fx.speeds._default),(O.queue==null||O.queue===!0)&&(O.queue="fx"),O.old=O.complete,O.complete=function(){A(O.old)&&O.old.call(this),O.queue&&T.dequeue(this,O.queue)},O},T.fn.extend({fadeTo:function(h,b,E,O){return this.filter(Yr).css("opacity",0).show().end().animate({opacity:b},h,E,O)},animate:function(h,b,E,O){var F=T.isEmptyObject(h),j=T.speed(b,E,O),H=function(){var ae=ge(this,T.extend({},h),j);(F||dt.get(this,"finish"))&&ae.stop(!0)};return H.finish=H,F||j.queue===!1?this.each(H):this.queue(j.queue,H)},stop:function(h,b,E){var O=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",H=T.timers,ae=dt.get(this);if(j)ae[j]&&ae[j].stop&&O(ae[j]);else for(j in ae)ae[j]&&ae[j].stop&&Pn.test(j)&&O(ae[j]);for(j=H.length;j--;)H[j].elem===this&&(h==null||H[j].queue===h)&&(H[j].anim.stop(E),F=!1,H.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),O=E[h+"queue"],F=E[h+"queueHooks"],j=T.timers,H=O?O.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<H;b++)O[b]&&O[b].finish&&O[b].finish.call(this);delete E.finish})}}),T.each(["toggle","show","hide"],function(h,b){var E=T.fn[b];T.fn[b]=function(O,F,j){return O==null||typeof O=="boolean"?E.apply(this,arguments):this.animate(N(b,!0),O,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,O,F){return this.animate(b,E,O,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,O){var F=t.setTimeout(E,h);O.stop=function(){t.clearTimeout(F)}})},function(){var h=R.createElement("input"),b=R.createElement("select"),E=b.appendChild(R.createElement("option"));h.type="checkbox",P.checkOn=h.value!=="",P.optSelected=E.selected,h=R.createElement("input"),h.value="t",h.type="radio",P.radioValue=h.value==="t"}();var Re,Je=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 O,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&&(O=F.set(h,E,b))!==void 0?O:(h.setAttribute(b,E+""),E)}return F&&"get"in F&&(O=F.get(h,b))!==null?O:(O=T.find.attr(h,b),O??void 0)}},attrHooks:{type:{set:function(h,b){if(!P.radioValue&&b==="radio"&&oe(h,"input")){var E=h.value;return h.setAttribute("type",b),E&&(h.value=E),b}}}},removeAttr:function(h,b){var E,O=0,F=b&&b.match(lt);if(F&&h.nodeType===1)for(;E=F[O++];)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=Je[b]||T.find.attr;Je[b]=function(O,F,j){var H,ae,ne=F.toLowerCase();return j||(ae=Je[ne],Je[ne]=H,H=E(O,F,j)!=null?ne:null,Je[ne]=ae),H}});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 O,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&&(O=F.set(h,E,b))!==void 0?O:h[b]=E:F&&"get"in F&&(O=F.get(h,b))!==null?O: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"}}),P.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,O,F,j,H;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(O=Nt(this),E=this.nodeType===1&&" "+pt(O)+" ",E){for(j=0;j<b.length;j++)F=b[j],E.indexOf(" "+F+" ")<0&&(E+=F+" ");H=pt(E),O!==H&&this.setAttribute("class",H)}}):this)},removeClass:function(h){var b,E,O,F,j,H;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(O=Nt(this),E=this.nodeType===1&&" "+pt(O)+" ",E){for(j=0;j<b.length;j++)for(F=b[j];E.indexOf(" "+F+" ")>-1;)E=E.replace(" "+F+" "," ");H=pt(E),O!==H&&this.setAttribute("class",H)}}):this):this.attr("class","")},toggleClass:function(h,b){var E,O,F,j,H=typeof h,ae=H==="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++)O=E[F],j.hasClass(O)?j.removeClass(O):j.addClass(O);else(h===void 0||H==="boolean")&&(O=Nt(this),O&&dt.set(this,"__className__",O),this.setAttribute&&this.setAttribute("class",O||h===!1?"":dt.get(this,"__className__")||""))}))},hasClass:function(h){var b,E,O=0;for(b=" "+h+" ";E=this[O++];)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,O,F=this[0];return arguments.length?(O=A(h),this.each(function(j){var H;this.nodeType===1&&(O?H=h.call(this,j,T(this).val()):H=h,H==null?H="":typeof H=="number"?H+="":Array.isArray(H)&&(H=T.map(H,function(ae){return ae==null?"":ae+""})),b=T.valHooks[this.type]||T.valHooks[this.nodeName.toLowerCase()],(!b||!("set"in b)||b.set(this,H,"value")===void 0)&&(this.value=H))})):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,O,F=h.options,j=h.selectedIndex,H=h.type==="select-one",ae=H?null:[],ne=H?j+1:F.length;for(j<0?O=ne:O=H?j:0;O<ne;O++)if(E=F[O],(E.selected||O===j)&&!E.disabled&&(!E.parentNode.disabled||!oe(E.parentNode,"optgroup"))){if(b=T(E).val(),H)return b;ae.push(b)}return ae},set:function(h,b){for(var E,O,F=h.options,j=T.makeArray(b),H=F.length;H--;)O=F[H],(O.selected=T.inArray(T.valHooks.option.get(O),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}},P.checkOn||(T.valHooks[this].get=function(h){return h.getAttribute("value")===null?"on":h.value})});var Dn=t.location,Zr={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(O){return O.textContent}).join(`
|
|
172
|
+
`):h)),b};var Wi=/^(?:focusinfocus|focusoutblur)$/,vi=function(h){h.stopPropagation()};T.extend(T.event,{trigger:function(h,b,E,O){var F,j,H,ae,ne,pe,Oe,Ae,xe=[E||R],Ye=g.call(h,"type")?h.type:h,st=g.call(h,"namespace")?h.namespace.split("."):[];if(j=Ae=H=E=E||R,!(E.nodeType===3||E.nodeType===8)&&!Wi.test(Ye+T.event.triggered)&&(Ye.indexOf(".")>-1&&(st=Ye.split("."),Ye=st.shift(),st.sort()),ne=Ye.indexOf(":")<0&&"on"+Ye,h=h[T.expando]?h:new T.Event(Ye,typeof h=="object"&&h),h.isTrigger=O?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]),Oe=T.event.special[Ye]||{},!(!O&&Oe.trigger&&Oe.trigger.apply(E,b)===!1))){if(!O&&!Oe.noBubble&&!M(E)){for(ae=Oe.delegateType||Ye,Wi.test(ae+Ye)||(j=j.parentNode);j;j=j.parentNode)xe.push(j),H=j;H===(E.ownerDocument||R)&&xe.push(H.defaultView||H.parentWindow||t)}for(F=0;(j=xe[F++])&&!h.isPropagationStopped();)Ae=j,h.type=F>1?ae:Oe.bindType||Ye,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=Ye,!O&&!h.isDefaultPrevented()&&(!Oe._default||Oe._default.apply(xe.pop(),b)===!1)&&dn(E)&&ne&&A(E[Ye])&&!M(E)&&(H=E[ne],H&&(E[ne]=null),T.event.triggered=Ye,h.isPropagationStopped()&&Ae.addEventListener(Ye,vi),E[Ye](),h.isPropagationStopped()&&Ae.removeEventListener(Ye,vi),T.event.triggered=void 0,H&&(E[ne]=H)),h.result}},simulate:function(h,b,E){var O=T.extend(new T.Event,E,{type:h,isSimulated:!0});T.event.trigger(O,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,Us=/^(?:input|select|textarea|keygen)/i;function Aa(h,b,E,O){var F;if(Array.isArray(b))T.each(b,function(j,H){E||zi.test(h)?O(h,H):Aa(h+"["+(typeof H=="object"&&H!=null?j:"")+"]",H,E,O)});else if(!E&&J(b)==="object")for(F in b)Aa(h+"["+F+"]",b[F],E,O);else O(h,b)}T.param=function(h,b){var E,O=[],F=function(j,H){var ae=A(H)?H():H;O[O.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)Aa(E,h[E],b,F);return O.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")&&Us.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(O){return{name:b.name,value:O.replace(Ar,`\r
|
|
173
|
+
`)}}):{name:b.name,value:E.replace(Ar,`\r
|
|
174
|
+
`)}}).get()}});var Qo=/%20/g,wr=/#.*$/,Ws=/([?&])_=[^&]*/,mi=/^(.*?):[ \t]*([^\r\n]*)$/mg,Ma=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,ea=/^(?:GET|HEAD)$/,on=/^\/\//,qt={},Zt={},Pi="*/".concat("*"),Jr=R.createElement("a");Jr.href=Dn.href;function Ro(h){return function(b,E){typeof b!="string"&&(E=b,b="*");var O,F=0,j=b.toLowerCase().match(lt)||[];if(A(E))for(;O=j[F++];)O[0]==="+"?(O=O.slice(1)||"*",(h[O]=h[O]||[]).unshift(E)):(h[O]=h[O]||[]).push(E)}}function yi(h,b,E,O){var F={},j=h===Zt;function H(ae){var ne;return F[ae]=!0,T.each(h[ae]||[],function(pe,Oe){var Ae=Oe(b,E,O);if(typeof Ae=="string"&&!j&&!F[Ae])return b.dataTypes.unshift(Ae),H(Ae),!1;if(j)return!(ne=Ae)}),ne}return H(b.dataTypes[0])||!F["*"]&&H("*")}function ur(h,b){var E,O,F=T.ajaxSettings.flatOptions||{};for(E in b)b[E]!==void 0&&((F[E]?h:O||(O={}))[E]=b[E]);return O&&T.extend(!0,h,O),h}function La(h,b,E){for(var O,F,j,H,ae=h.contents,ne=h.dataTypes;ne[0]==="*";)ne.shift(),O===void 0&&(O=h.mimeType||b.getResponseHeader("Content-Type"));if(O){for(F in ae)if(ae[F]&&ae[F].test(O)){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}H||(H=F)}j=j||H}if(j)return j!==ne[0]&&ne.unshift(j),E[j]}function uo(h,b,E,O){var F,j,H,ae,ne,pe={},Oe=h.dataTypes.slice();if(Oe[1])for(H in h.converters)pe[H.toLowerCase()]=h.converters[H];for(j=Oe.shift();j;)if(h.responseFields[j]&&(E[h.responseFields[j]]=b),!ne&&O&&h.dataFilter&&(b=h.dataFilter(b,h.dataType)),ne=j,j=Oe.shift(),j){if(j==="*")j=ne;else if(ne!=="*"&&ne!==j){if(H=pe[ne+" "+j]||pe["* "+j],!H){for(F in pe)if(ae=F.split(" "),ae[1]===j&&(H=pe[ne+" "+ae[0]]||pe["* "+ae[0]],H)){H===!0?H=pe[F]:pe[F]!==!0&&(j=ae[0],Oe.unshift(ae[1]));break}}if(H!==!0)if(H&&h.throws)b=H(b);else try{b=H(b)}catch(Ae){return{state:"parsererror",error:H?Ae:"No conversion from "+ne+" to "+j}}}}return{state:"success",data:b}}T.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Dn.href,type:"GET",isLocal:Ma.test(Dn.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,O,F,j,H,ae,ne,pe,Oe,Ae,xe=T.ajaxSetup({},b),Ye=xe.context||xe,st=xe.context&&(Ye.nodeType||Ye.jquery)?T(Ye):T.event,Ct=T.Deferred(),kt=T.Callbacks("once memory"),In=xe.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&&(xe.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),xe.url=((h||xe.url||Dn.href)+"").replace(on,Dn.protocol+"//"),xe.type=b.method||b.type||xe.method||xe.type,xe.dataTypes=(xe.dataType||"*").toLowerCase().match(lt)||[""],xe.crossDomain==null){ae=R.createElement("a");try{ae.href=xe.url,ae.href=ae.href,xe.crossDomain=Jr.protocol+"//"+Jr.host!=ae.protocol+"//"+ae.host}catch{xe.crossDomain=!0}}if(xe.data&&xe.processData&&typeof xe.data!="string"&&(xe.data=T.param(xe.data,xe.traditional)),yi(qt,xe,b,Ft),ne)return Ft;pe=T.event&&xe.global,pe&&T.active++===0&&T.event.trigger("ajaxStart"),xe.type=xe.type.toUpperCase(),xe.hasContent=!ea.test(xe.type),O=xe.url.replace(wr,""),xe.hasContent?xe.data&&xe.processData&&(xe.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(xe.data=xe.data.replace(Qo,"+")):(Ae=xe.url.slice(O.length),xe.data&&(xe.processData||typeof xe.data=="string")&&(O+=(lr.test(O)?"&":"?")+xe.data,delete xe.data),xe.cache===!1&&(O=O.replace(Ws,"$1"),Ae=(lr.test(O)?"&":"?")+"_="+Zr.guid+++Ae),xe.url=O+Ae),xe.ifModified&&(T.lastModified[O]&&Ft.setRequestHeader("If-Modified-Since",T.lastModified[O]),T.etag[O]&&Ft.setRequestHeader("If-None-Match",T.etag[O])),(xe.data&&xe.hasContent&&xe.contentType!==!1||b.contentType)&&Ft.setRequestHeader("Content-Type",xe.contentType),Ft.setRequestHeader("Accept",xe.dataTypes[0]&&xe.accepts[xe.dataTypes[0]]?xe.accepts[xe.dataTypes[0]]+(xe.dataTypes[0]!=="*"?", "+Pi+"; q=0.01":""):xe.accepts["*"]);for(Oe in xe.headers)Ft.setRequestHeader(Oe,xe.headers[Oe]);if(xe.beforeSend&&(xe.beforeSend.call(Ye,Ft,xe)===!1||ne))return Ft.abort();if(Lr="abort",kt.add(xe.complete),Ft.done(xe.success),Ft.fail(xe.error),E=yi(Zt,xe,b,Ft),!E)Fr(-1,"No Transport");else{if(Ft.readyState=1,pe&&st.trigger("ajaxSend",[Ft,xe]),ne)return Ft;xe.async&&xe.timeout>0&&(H=t.setTimeout(function(){Ft.abort("timeout")},xe.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,D,L,W,ee,me=en;ne||(ne=!0,H&&t.clearTimeout(H),E=void 0,F=ho||"",Ft.readyState=jt>0?4:0,xr=jt>=200&&jt<300||jt===304,fo&&(W=La(xe,Ft,fo)),!xr&&T.inArray("script",xe.dataTypes)>-1&&T.inArray("json",xe.dataTypes)<0&&(xe.converters["text script"]=function(){}),W=uo(xe,W,Ft,xr),xr?(xe.ifModified&&(ee=Ft.getResponseHeader("Last-Modified"),ee&&(T.lastModified[O]=ee),ee=Ft.getResponseHeader("etag"),ee&&(T.etag[O]=ee)),jt===204||xe.type==="HEAD"?me="nocontent":jt===304?me="notmodified":(me=W.state,D=W.data,L=W.error,xr=!L)):(L=me,(jt||!me)&&(me="error",jt<0&&(jt=0))),Ft.status=jt,Ft.statusText=(en||me)+"",xr?Ct.resolveWith(Ye,[D,me,Ft]):Ct.rejectWith(Ye,[Ft,me,L]),Ft.statusCode(In),In=void 0,pe&&st.trigger(xr?"ajaxSuccess":"ajaxError",[Ft,xe,xr?D:L]),kt.fireWith(Ye,[Ft,me]),pe&&(st.trigger("ajaxComplete",[Ft,xe]),--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,O,F,j){return A(O)&&(j=j||F,F=O,O=void 0),T.ajax(T.extend({url:E,type:b,dataType:j,data:O,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(O){T.globalEval(O,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 ss={0:200,1223:204},un=T.ajaxSettings.xhr();P.cors=!!un&&"withCredentials"in un,P.ajax=un=!!un,T.ajaxTransport(function(h){var b,E;if(P.cors||un&&!h.crossDomain)return{send:function(O,F){var j,H=h.xhr();if(H.open(h.type,h.url,h.async,h.username,h.password),h.xhrFields)for(j in h.xhrFields)H[j]=h.xhrFields[j];h.mimeType&&H.overrideMimeType&&H.overrideMimeType(h.mimeType),!h.crossDomain&&!O["X-Requested-With"]&&(O["X-Requested-With"]="XMLHttpRequest");for(j in O)H.setRequestHeader(j,O[j]);b=function(ae){return function(){b&&(b=E=H.onload=H.onerror=H.onabort=H.ontimeout=H.onreadystatechange=null,ae==="abort"?H.abort():ae==="error"?typeof H.status!="number"?F(0,"error"):F(H.status,H.statusText):F(ss[H.status]||H.status,H.statusText,(H.responseType||"text")!=="text"||typeof H.responseText!="string"?{binary:H.response}:{text:H.responseText},H.getAllResponseHeaders()))}},H.onload=b(),E=H.onerror=H.ontimeout=b("error"),H.onabort!==void 0?H.onabort=E:H.onreadystatechange=function(){H.readyState===4&&t.setTimeout(function(){b&&E()})},b=b("abort");try{H.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(O,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)}),R.head.appendChild(b[0])},abort:function(){E&&E()}}}});var Io=[],bi=/(=)\?(?=&|$)|\?\?/;T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var h=Io.pop()||T.expando+"_"+Zr.guid++;return this[h]=!0,h}}),T.ajaxPrefilter("json jsonp",function(h,b,E){var O,F,j,H=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(H||h.dataTypes[0]==="jsonp")return O=h.jsonpCallback=A(h.jsonpCallback)?h.jsonpCallback():h.jsonpCallback,H?h[H]=h[H].replace(bi,"$1"+O):h.jsonp!==!1&&(h.url+=(lr.test(h.url)?"&":"?")+h.jsonp+"="+O),h.converters["script json"]=function(){return j||T.error(O+" was not called"),j[0]},h.dataTypes[0]="json",F=t[O],t[O]=function(){j=arguments},E.always(function(){F===void 0?T(t).removeProp(O):t[O]=F,h[O]&&(h.jsonpCallback=b.jsonpCallback,Io.push(O)),j&&A(F)&&F(j[0]),j=F=void 0}),"script"}),P.createHTMLDocument=function(){var h=R.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 O,F,j;return b||(P.createHTMLDocument?(b=R.implementation.createHTMLDocument(""),O=b.createElement("base"),O.href=R.location.href,b.head.appendChild(O)):b=R),F=Ue.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 O,F,j,H=this,ae=h.indexOf(" ");return ae>-1&&(O=pt(h.slice(ae)),h=h.slice(0,ae)),A(b)?(E=b,b=void 0):b&&typeof b=="object"&&(F="POST"),H.length>0&&T.ajax({url:h,type:F||"GET",dataType:"html",data:b}).done(function(ne){j=arguments,H.html(O?T("<div>").append(T.parseHTML(ne)).find(O):ne)}).always(E&&function(ne,pe){H.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 O,F,j,H,ae,ne,pe,Oe=T.css(h,"position"),Ae=T(h),xe={};Oe==="static"&&(h.style.position="relative"),ae=Ae.offset(),j=T.css(h,"top"),ne=T.css(h,"left"),pe=(Oe==="absolute"||Oe==="fixed")&&(j+ne).indexOf("auto")>-1,pe?(O=Ae.position(),H=O.top,F=O.left):(H=parseFloat(j)||0,F=parseFloat(ne)||0),A(b)&&(b=b.call(h,E,T.extend({},ae))),b.top!=null&&(xe.top=b.top-ae.top+H),b.left!=null&&(xe.left=b.left-ae.left+F),"using"in b?b.using.call(h,xe):Ae.css(xe)}},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,O=this[0];if(O)return O.getClientRects().length?(b=O.getBoundingClientRect(),E=O.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,O=this[0],F={top:0,left:0};if(T.css(O,"position")==="fixed")b=O.getBoundingClientRect();else{for(b=this.offset(),E=O.ownerDocument,h=O.offsetParent||E.documentElement;h&&(h===E.body||h===E.documentElement)&&T.css(h,"position")==="static";)h=h.parentNode;h&&h!==O&&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(O,"marginTop",!0),left:b.left-F.left-T.css(O,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var h=this.offsetParent;h&&T.css(h,"position")==="static";)h=h.offsetParent;return h||Dr})}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(h,b){var E=b==="pageYOffset";T.fn[h]=function(O){return Cn(this,function(F,j,H){var ae;if(M(F)?ae=F:F.nodeType===9&&(ae=F.defaultView),H===void 0)return ae?ae[b]:F[j];ae?ae.scrollTo(E?ae.pageXOffset:H,E?H:ae.pageYOffset):F[j]=H},h,O,arguments.length)}}),T.each(["top","left"],function(h,b){T.cssHooks[b]=sr(P.pixelPosition,function(E,O){if(O)return O=Oi(E,b),Xr.test(O)?T(E).position()[b]+"px":O})}),T.each({Height:"height",Width:"width"},function(h,b){T.each({padding:"inner"+h,content:b,"":"outer"+h},function(E,O){T.fn[O]=function(F,j){var H=arguments.length&&(E||typeof F!="boolean"),ae=E||(F===!0||j===!0?"margin":"border");return Cn(this,function(ne,pe,Oe){var Ae;return M(ne)?O.indexOf("outer")===0?ne["inner"+h]:ne.document.documentElement["client"+h]:ne.nodeType===9?(Ae=ne.documentElement,Math.max(ne.body["scroll"+h],Ae["scroll"+h],ne.body["offset"+h],Ae["offset"+h],Ae["client"+h])):Oe===void 0?T.css(ne,pe,ae):T.style(ne,pe,Oe,ae)},b,H?F:void 0,H)}})}),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,O){return this.on(b,h,E,O)},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,O){return arguments.length>0?this.on(b,null,E,O):this.trigger(b)}});var ls=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;T.proxy=function(h,b){var E,O,F;if(typeof b=="string"&&(E=h[b],b=h,h=E),!!A(h))return O=o.call(arguments,2),F=function(){return h.apply(b||this,O.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=oe,T.isFunction=A,T.isWindow=M,T.camelCase=sn,T.type=J,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(ls,"$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})})(BD);var $D=BD.exports;const C6=ku($D);var E6={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=$D,r.fn||(r.fn={}));var i=typeof window<"u"&&typeof window.moment<"u"?window.moment:eA;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 c=document.createElement("textarea");c.innerHTML=o.locale.customRangeLabel;var f=c.value;this.locale.customRangeLabel=f}if(this.container.addClass(this.locale.direction),typeof o.startDate=="string"&&(this.startDate=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,S;if(typeof o.startDate>"u"&&typeof o.endDate>"u"&&n(this.element).is(":text")){var C=n(this.element).val(),P=C.split(this.locale.separator);y=g=null,P.length==2?(y=t(P[0],this.locale.format),g=t(P[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(S in o.ranges){typeof o.ranges[S][0]=="string"?y=t(o.ranges[S][0],this.locale.format):y=t(o.ranges[S][0]),typeof o.ranges[S][1]=="string"?g=t(o.ranges[S][1],this.locale.format):g=t(o.ranges[S][1]),this.minDate&&y.isBefore(this.minDate)&&(y=this.minDate.clone());var 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 c=document.createElement("textarea");c.innerHTML=S;var f=c.value;this.ranges[f]=[y,g]}}var M="<ul>";for(S in this.ranges)M+='<li data-range-key="'+S+'">'+S+"</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 c=this.container.find(".left .ampmselect").val();c==="PM"&&i<12&&(i+=12),c==="AM"&&i===12&&(i=0)}}else if(i=parseInt(this.container.find(".right .hourselect").val(),10),o=parseInt(this.container.find(".right .minuteselect").val(),10),isNaN(o)&&(o=parseInt(this.container.find(".right .minuteselect option:last").val(),10)),s=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0,!this.timePicker24Hour){var c=this.container.find(".right .ampmselect").val();c==="PM"&&i<12&&(i+=12),c==="AM"&&i===12&&(i=0)}this.leftCalendar.month.hour(i).minute(o).second(s),this.rightCalendar.month.hour(i).minute(o).second(s)}this.renderCalendar("left"),this.renderCalendar("right"),this.container.find(".ranges li").removeClass("active"),this.endDate!=null&&this.calculateChosenLabel()},renderCalendar:function(i){var R=i=="left"?this.leftCalendar:this.rightCalendar,o=R.month.month(),s=R.month.year(),c=R.month.hour(),f=R.month.minute(),p=R.month.second(),y=t([s,o]).daysInMonth(),g=t([s,o,1]),S=t([s,o,y]),C=t(g).subtract(1,"month").month(),P=t(g).subtract(1,"month").year(),A=t([P,C]).daysInMonth(),M=g.day(),R=[];R.firstDay=g,R.lastDay=S;for(var V=0;V<6;V++)R[V]=[];var U=A-M+this.locale.firstDay+1;U>A&&(U-=7),M==this.locale.firstDay&&(U=A-6);for(var J=t([P,C,U,12,f,p]),K,le,V=0,K=0,le=0;V<42;V++,K++,J=t(J).add(24,"hour"))V>0&&K%7===0&&(K=0,le++),R[le][K]=J.clone().hour(c).minute(f).second(p),J.hour(12),this.minDate&&R[le][K].format("YYYY-MM-DD")==this.minDate.format("YYYY-MM-DD")&&R[le][K].isBefore(this.minDate)&&i=="left"&&(R[le][K]=this.minDate.clone()),this.maxDate&&R[le][K].format("YYYY-MM-DD")==this.maxDate.format("YYYY-MM-DD")&&R[le][K].isAfter(this.maxDate)&&i=="right"&&(R[le][K]=this.maxDate.clone());i=="left"?this.leftCalendar.calendar=R:this.rightCalendar.calendar=R;var T=i=="left"?this.minDate:this.startDate,he=this.maxDate;i=="left"?this.startDate:this.endDate,this.locale.direction=="ltr";var oe='<table class="table-condensed">';oe+="<thead>",oe+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(oe+="<th></th>"),(!T||T.isBefore(R.firstDay))&&(!this.linkedCalendars||i=="left")?oe+='<th class="prev available"><span></span></th>':oe+="<th></th>";var ze=this.locale.monthNames[R[1][1].month()]+R[1][1].format(" YYYY");if(this.showDropdowns){for(var je=R[1][1].month(),Pe=R[1][1].year(),Be=he&&he.year()||this.maxYear,He=T&&T.year()||this.minYear,ce=Pe==He,Se=Pe==Be,Ie='<select class="monthselect">',Ge=0;Ge<12;Ge++)(!ce||T&&Ge>=T.month())&&(!Se||he&&Ge<=he.month())?Ie+="<option value='"+Ge+"'"+(Ge===je?" selected='selected'":"")+">"+this.locale.monthNames[Ge]+"</option>":Ie+="<option value='"+Ge+"'"+(Ge===je?" selected='selected'":"")+" disabled='disabled'>"+this.locale.monthNames[Ge]+"</option>";Ie+="</select>";for(var tt='<select class="yearselect">',we=He;we<=Be;we++)tt+='<option value="'+we+'"'+(we===Pe?' selected="selected"':"")+">"+we+"</option>";tt+="</select>",ze=Ie+tt}if(oe+='<th colspan="5" class="month">'+ze+"</th>",(!he||he.isAfter(R.lastDay))&&(!this.linkedCalendars||i=="right"||this.singleDatePicker)?oe+='<th class="next available"><span></span></th>':oe+="<th></th>",oe+="</tr>",oe+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(oe+='<th class="week">'+this.locale.weekLabel+"</th>"),n.each(this.locale.daysOfWeek,function(Ne,rt){oe+="<th>"+rt+"</th>"}),oe+="</tr>",oe+="</thead>",oe+="<tbody>",this.endDate==null&&this.maxSpan){var Ee=this.startDate.clone().add(this.maxSpan).endOf("day");(!he||Ee.isBefore(he))&&(he=Ee)}for(var le=0;le<6;le++){oe+="<tr>",this.showWeekNumbers?oe+='<td class="week">'+R[le][0].week()+"</td>":this.showISOWeekNumbers&&(oe+='<td class="week">'+R[le][0].isoWeek()+"</td>");for(var K=0;K<7;K++){var Ue=[];R[le][K].isSame(new Date,"day")&&Ue.push("today"),R[le][K].isoWeekday()>5&&Ue.push("weekend"),R[le][K].month()!=R[1][1].month()&&Ue.push("off","ends"),this.minDate&&R[le][K].isBefore(this.minDate,"day")&&Ue.push("off","disabled"),he&&R[le][K].isAfter(he,"day")&&Ue.push("off","disabled"),this.isInvalidDate(R[le][K])&&Ue.push("off","disabled"),R[le][K].format("YYYY-MM-DD")==this.startDate.format("YYYY-MM-DD")&&Ue.push("active","start-date"),this.endDate!=null&&R[le][K].format("YYYY-MM-DD")==this.endDate.format("YYYY-MM-DD")&&Ue.push("active","end-date"),this.endDate!=null&&R[le][K]>this.startDate&&R[le][K]<this.endDate&&Ue.push("in-range");var $e=this.isCustomDate(R[le][K]);$e!==!1&&(typeof $e=="string"?Ue.push($e):Array.prototype.push.apply(Ue,$e));for(var ke="",_e=!1,V=0;V<Ue.length;V++)ke+=Ue[V]+" ",Ue[V]=="disabled"&&(_e=!0);_e||(ke+="available"),oe+='<td class="'+ke.replace(/^\s+|\s+$/g,"")+'" data-title="r'+le+"c"+K+'">'+R[le][K].date()+"</td>"}oe+="</tr>"}oe+="</tbody>",oe+="</table>",this.container.find(".drp-calendar."+i+" .calendar-table").html(oe)},renderTimePicker:function(i){if(!(i=="right"&&!this.endDate)){var o,s,c,f=this.maxDate;if(this.maxSpan&&(!this.maxDate||this.startDate.clone().add(this.maxSpan).isBefore(this.maxDate))&&(f=this.startDate.clone().add(this.maxSpan)),i=="left")s=this.startDate.clone(),c=this.minDate;else if(i=="right"){s=this.endDate.clone(),c=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,S=this.timePicker24Hour?23:12,C=g;C<=S;C++){var P=C;this.timePicker24Hour||(P=s.hour()>=12?C==12?12:C+12:C==12?0:C);var A=s.clone().hour(P),M=!1;c&&A.minute(59).isBefore(c)&&(M=!0),f&&A.minute(0).isAfter(f)&&(M=!0),P==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 R=C<10?"0"+C:C,A=s.clone().minute(C),M=!1;c&&A.second(59).isBefore(c)&&(M=!0),f&&A.second(0).isAfter(f)&&(M=!0),s.minute()==C&&!M?o+='<option value="'+C+'" selected="selected">'+R+"</option>":M?o+='<option value="'+C+'" disabled="disabled" class="disabled">'+R+"</option>":o+='<option value="'+C+'">'+R+"</option>"}if(o+="</select> ",this.timePickerSeconds){o+=': <select class="secondselect">';for(var C=0;C<60;C++){var R=C<10?"0"+C:C,A=s.clone().second(C),M=!1;c&&A.isBefore(c)&&(M=!0),f&&A.isAfter(f)&&(M=!0),s.second()==C&&!M?o+='<option value="'+C+'" selected="selected">'+R+"</option>":M?o+='<option value="'+C+'" disabled="disabled" class="disabled">'+R+"</option>":o+='<option value="'+C+'">'+R+"</option>"}o+="</select> "}if(!this.timePicker24Hour){o+='<select class="ampmselect">';var V="",U="";c&&s.clone().hour(12).minute(0).second(0).isBefore(c)&&(V=' 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"'+V+'>AM</option><option value="PM" selected="selected"'+U+">PM</option>":o+='<option value="AM" selected="selected"'+V+'>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,c=n(window).width();switch(this.parentEl.is("body")||(i={top:this.parentEl.offset().top-this.parentEl.scrollTop(),left:this.parentEl.offset().left-this.parentEl.scrollLeft()},c=this.parentEl[0].clientWidth+this.parentEl.offset().left),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=c-this.element.offset().left-this.element.outerWidth();f+p>n(window).width()?this.container.css({top:o,right:"auto",left:9}):this.container.css({top:o,right:p,left:"auto"})}else if(this.opens=="center"){var 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),c=o.substr(3,1),f=n(i.target).parents(".drp-calendar"),p=f.hasClass("left")?this.leftCalendar.calendar[s][c]:this.rightCalendar.calendar[s][c],y=this.leftCalendar,g=this.rightCalendar,S=this.startDate;this.endDate||this.container.find(".drp-calendar tbody td").each(function(C,P){if(!n(P).hasClass("week")){var A=n(P).attr("data-title"),M=A.substr(1,1),R=A.substr(3,1),V=n(P).parents(".drp-calendar"),U=V.hasClass("left")?y.calendar[M][R]:g.calendar[M][R];U.isAfter(S)&&U.isBefore(p)||U.isSame(p,"day")?n(P).addClass("in-range"):n(P).removeClass("in-range")}})}},clickDate:function(i){if(n(i.target).hasClass("available")){var o=n(i.target).attr("data-title"),s=o.substr(1,1),c=o.substr(3,1),f=n(i.target).parents(".drp-calendar"),p=f.hasClass("left")?this.leftCalendar.calendar[s][c]:this.rightCalendar.calendar[s][c];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 S=parseInt(this.container.find(".left .minuteselect").val(),10);isNaN(S)&&(S=parseInt(this.container.find(".left .minuteselect option:last").val(),10));var C=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0;p=p.clone().hour(y).minute(S).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 S=parseInt(this.container.find(".right .minuteselect").val(),10);isNaN(S)&&(S=parseInt(this.container.find(".right .minuteselect option:last").val(),10));var C=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0;p=p.clone().hour(y).minute(S).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 c=this.timePickerSeconds?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD HH:mm";if(this.startDate.format(c)==this.ranges[s][0].format(c)&&this.endDate.format(c)==this.ranges[s][1].format(c)){i=!1,this.chosenLabel=this.container.find(".ranges li:eq("+o+")").addClass("active").attr("data-range-key");break}}else if(this.startDate.format("YYYY-MM-DD")==this.ranges[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",c=this.container.find(".drp-calendar."+s),f=parseInt(c.find(".monthselect").val(),10),p=c.find(".yearselect").val();o||(p<this.startDate.year()||p==this.startDate.year()&&f<this.startDate.month())&&(f=this.startDate.month(),p=this.startDate.year()),this.minDate&&(p<this.minDate.year()||p==this.minDate.year()&&f<this.minDate.month())&&(f=this.minDate.month(),p=this.minDate.year()),this.maxDate&&(p>this.maxDate.year()||p==this.maxDate.year()&&f>this.maxDate.month())&&(f=this.maxDate.month(),p=this.maxDate.year()),o?(this.leftCalendar.month.month(f).year(p),this.linkedCalendars&&(this.rightCalendar.month=this.leftCalendar.month.clone().add(1,"month"))):(this.rightCalendar.month.month(f).year(p),this.linkedCalendars&&(this.leftCalendar.month=this.rightCalendar.month.clone().subtract(1,"month"))),this.updateCalendars()},timeChanged:function(i){var o=n(i.target).closest(".drp-calendar"),s=o.hasClass("left"),c=parseInt(o.find(".hourselect").val(),10),f=parseInt(o.find(".minuteselect").val(),10);isNaN(f)&&(f=parseInt(o.find(".minuteselect option:last").val(),10));var p=this.timePickerSeconds?parseInt(o.find(".secondselect").val(),10):0;if(!this.timePicker24Hour){var y=o.find(".ampmselect").val();y==="PM"&&c<12&&(c+=12),y==="AM"&&c===12&&(c=0)}if(s){var g=this.startDate.clone();g.hour(c),g.minute(f),g.second(p),this.setStartDate(g),this.singleDatePicker?this.endDate=this.startDate.clone():this.endDate&&this.endDate.format("YYYY-MM-DD")==g.format("YYYY-MM-DD")&&this.endDate.isBefore(g)&&this.setEndDate(g.clone())}else if(this.endDate){var S=this.endDate.clone();S.hour(c),S.minute(f),S.second(p),this.setEndDate(S)}this.updateCalendars(),this.updateFormInputs(),this.renderTimePicker("left"),this.renderTimePicker("right")},elementChanged:function(){if(this.element.is("input")&&this.element.val().length){var i=this.element.val().split(this.locale.separator),o=null,s=null;i.length===2&&(o=t(i[0],this.locale.format),s=t(i[1],this.locale.format)),(this.singleDatePicker||o===null||s===null)&&(o=t(this.element.val(),this.locale.format),s=o),!(!o.isValid()||!s.isValid())&&(this.setStartDate(o),this.setEndDate(s),this.updateView())}},keydown:function(i){(i.keyCode===9||i.keyCode===13)&&this.hide(),i.keyCode===27&&(i.preventDefault(),i.stopPropagation(),this.hide())},updateElement:function(){if(this.element.is("input")&&this.autoUpdateInput){var i=this.startDate.format(this.locale.format);this.singleDatePicker||(i+=this.locale.separator+this.endDate.format(this.locale.format)),i!==this.element.val()&&this.element.val(i).trigger("change")}},remove:function(){this.container.remove(),this.element.off(".daterangepicker"),this.element.removeData()}},n.fn.daterangepicker=function(i,o){var s=n.extend(!0,{},n.fn.daterangepicker.defaultOptions,i);return this.each(function(){var c=n(this);c.data("daterangepicker")&&c.data("daterangepicker").remove(),c.data("daterangepicker",new r(c,s,o))}),this},r})})(E6);var Am=function(e,t){return Am=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])},Am(e,t)};function k6(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Am(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var D6=function(e){k6(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=C6(this.ref),this.$picker.daterangepicker(this.props.initialSettings,this.handleCallback.bind(this)),["Show","Hide","ShowCalendar","HideCalendar","Apply","Cancel"].forEach(function(r){var i,o=r.charAt(0).toLowerCase()+r.slice(1);(i=n.$picker)===null||i===void 0||i.on(o+".daterangepicker",n.makeEventHandler("on"+r))})},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);os.styled(e=>Fe.jsx(os.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:ii.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 VD=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},O6=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++],c=e[n++],f=((i&7)<<18|(o&63)<<12|(s&63)<<6|c&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("")},HD={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,c=s?e[i+1]:0,f=i+2<e.length,p=f?e[i+2]:0,y=o>>2,g=(o&3)<<4|c>>4;let S=(c&15)<<2|p>>6,C=p&63;f||(C=64,s||(S=64)),r.push(n[y],n[g],n[S],n[C])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(VD(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):O6(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++)],c=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||c==null||p==null||g==null)throw new _6;const S=o<<2|c>>4;if(r.push(S),p!==64){const C=c<<4&240|p>>2;if(r.push(C),g!==64){const P=p<<6&192|g;r.push(P)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class _6 extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const P6=function(e){const t=VD(e);return HD.encodeByteArray(t,!0)},UD=function(e){return P6(e).replace(/\./g,"")},R6=function(e){try{return HD.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 I6(){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 A6=()=>I6().__FIREBASE_DEFAULTS__,M6=()=>{if(typeof process>"u"||typeof process.env>"u")return;const e=process.env.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)},L6=()=>{if(typeof document>"u")return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const t=e&&R6(e[1]);return t&&JSON.parse(t)},F6=()=>{try{return A6()||M6()||L6()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}},WD=()=>{var e;return(e=F6())===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 N6{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 zD(){try{return typeof indexedDB=="object"}catch{return!1}}function YD(){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 j6(){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 B6="FirebaseError";class Mf extends Error{constructor(t,n,r){super(n),this.code=t,this.customData=r,this.name=B6,Object.setPrototypeOf(this,Mf.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,tg.prototype.create)}}class tg{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?$6(o,r):"Error",c=`${this.serviceName}: ${s} (${i}).`;return new Mf(i,c,r)}}function $6(e,t){return e.replace(V6,(n,r)=>{const i=t[r];return i!=null?String(i):`<${r}?>`})}const V6=/\{\$([^}]+)}/g;function Mm(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(x1(o)&&x1(s)){if(!Mm(o,s))return!1}else if(o!==s)return!1}for(const i of r)if(!n.includes(i))return!1;return!0}function x1(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 Jy(e){return e&&e._delegate?e._delegate:e}class Eu{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 gc="[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 H6{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 N6;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(W6(t))try{this.getOrInitializeService({instanceIdentifier:gc})}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=gc){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=gc){return this.instances.has(t)}getOptions(t=gc){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 c=this.normalizeInstanceIdentifier(o);r===c&&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:U6(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=gc){return this.component?this.component.multipleInstances?t:gc:t}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function U6(e){return e===gc?void 0:e}function W6(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 z6{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 H6(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 Y6={debug:Fn.DEBUG,verbose:Fn.VERBOSE,info:Fn.INFO,warn:Fn.WARN,error:Fn.ERROR,silent:Fn.SILENT},G6=Fn.INFO,q6={[Fn.DEBUG]:"log",[Fn.VERBOSE]:"log",[Fn.INFO]:"info",[Fn.WARN]:"warn",[Fn.ERROR]:"error"},X6=(e,t,...n)=>{if(t<e.logLevel)return;const r=new Date().toISOString(),i=q6[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 K6{constructor(t){this.name=t,this._logLevel=G6,this._logHandler=X6,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"?Y6[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 Z6=(e,t)=>t.some(n=>e instanceof n);let S1,T1;function J6(){return S1||(S1=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Q6(){return T1||(T1=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const GD=new WeakMap,Lm=new WeakMap,qD=new WeakMap,Cv=new WeakMap,Qy=new WeakMap;function e8(e){const t=new Promise((n,r)=>{const i=()=>{e.removeEventListener("success",o),e.removeEventListener("error",s)},o=()=>{n(El(e.result)),i()},s=()=>{r(e.error),i()};e.addEventListener("success",o),e.addEventListener("error",s)});return t.then(n=>{n instanceof IDBCursor&&GD.set(n,e)}).catch(()=>{}),Qy.set(t,e),t}function t8(e){if(Lm.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)});Lm.set(e,t)}let Fm={get(e,t,n){if(e instanceof IDBTransaction){if(t==="done")return Lm.get(e);if(t==="objectStoreNames")return e.objectStoreNames||qD.get(e);if(t==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return El(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 n8(e){Fm=e(Fm)}function r8(e){return e===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(t,...n){const r=e.call(Ev(this),t,...n);return qD.set(r,t.sort?t.sort():[t]),El(r)}:Q6().includes(e)?function(...t){return e.apply(Ev(this),t),El(GD.get(this))}:function(...t){return El(e.apply(Ev(this),t))}}function i8(e){return typeof e=="function"?r8(e):(e instanceof IDBTransaction&&t8(e),Z6(e,J6())?new Proxy(e,Fm):e)}function El(e){if(e instanceof IDBRequest)return e8(e);if(Cv.has(e))return Cv.get(e);const t=i8(e);return t!==e&&(Cv.set(e,t),Qy.set(t,e)),t}const Ev=e=>Qy.get(e);function ng(e,t,{blocked:n,upgrade:r,blocking:i,terminated:o}={}){const s=indexedDB.open(e,t),c=El(s);return r&&s.addEventListener("upgradeneeded",f=>{r(El(s.result),f.oldVersion,f.newVersion,El(s.transaction),f)}),n&&s.addEventListener("blocked",f=>n(f.oldVersion,f.newVersion,f)),c.then(f=>{o&&f.addEventListener("close",()=>o()),i&&f.addEventListener("versionchange",p=>i(p.oldVersion,p.newVersion,p))}).catch(()=>{}),c}function kv(e,{blocked:t}={}){const n=indexedDB.deleteDatabase(e);return t&&n.addEventListener("blocked",r=>t(r.oldVersion,r)),El(n).then(()=>{})}const o8=["get","getKey","getAll","getAllKeys","count"],a8=["put","add","delete","clear"],Dv=new Map;function C1(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(Dv.get(t))return Dv.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,i=a8.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||o8.includes(n)))return;const o=async function(s,...c){const f=this.transaction(s,i?"readwrite":"readonly");let p=f.store;return r&&(p=p.index(c.shift())),(await Promise.all([p[n](...c),i&&f.done]))[0]};return Dv.set(t,o),o}n8(e=>({...e,get:(t,n,r)=>C1(t,n)||e.get(t,n,r),has:(t,n)=>!!C1(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 s8{constructor(t){this.container=t}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(l8(n)){const r=n.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(n=>n).join(" ")}}function l8(e){const t=e.getComponent();return(t==null?void 0:t.type)==="VERSION"}const Nm="@firebase/app",E1="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 Pl=new K6("@firebase/app"),u8="@firebase/app-compat",c8="@firebase/analytics-compat",f8="@firebase/analytics",d8="@firebase/app-check-compat",h8="@firebase/app-check",p8="@firebase/auth",g8="@firebase/auth-compat",v8="@firebase/database",m8="@firebase/data-connect",y8="@firebase/database-compat",b8="@firebase/functions",w8="@firebase/functions-compat",x8="@firebase/installations",S8="@firebase/installations-compat",T8="@firebase/messaging",C8="@firebase/messaging-compat",E8="@firebase/performance",k8="@firebase/performance-compat",D8="@firebase/remote-config",O8="@firebase/remote-config-compat",_8="@firebase/storage",P8="@firebase/storage-compat",R8="@firebase/firestore",I8="@firebase/vertexai-preview",A8="@firebase/firestore-compat",M8="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 jm="[DEFAULT]",L8={[Nm]:"fire-core",[u8]:"fire-core-compat",[f8]:"fire-analytics",[c8]:"fire-analytics-compat",[h8]:"fire-app-check",[d8]:"fire-app-check-compat",[p8]:"fire-auth",[g8]:"fire-auth-compat",[v8]:"fire-rtdb",[m8]:"fire-data-connect",[y8]:"fire-rtdb-compat",[b8]:"fire-fn",[w8]:"fire-fn-compat",[x8]:"fire-iid",[S8]:"fire-iid-compat",[T8]:"fire-fcm",[C8]:"fire-fcm-compat",[E8]:"fire-perf",[k8]:"fire-perf-compat",[D8]:"fire-rc",[O8]:"fire-rc-compat",[_8]:"fire-gcs",[P8]:"fire-gcs-compat",[R8]:"fire-fst",[A8]:"fire-fst-compat",[I8]:"fire-vertex","fire-js":"fire-js",[M8]:"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 Cp=new Map,F8=new Map,Bm=new Map;function k1(e,t){try{e.container.addComponent(t)}catch(n){Pl.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function Ec(e){const t=e.name;if(Bm.has(t))return Pl.debug(`There were multiple attempts to register component ${t}.`),!1;Bm.set(t,e);for(const n of Cp.values())k1(n,e);for(const n of F8.values())k1(n,e);return!0}function eb(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 N8={"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."},bu=new tg("app","Firebase",N8);/**
|
|
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 j8{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 Eu("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 bu.create("app-deleted",{appName:this._name})}}function XD(e,t={}){let n=e;typeof t!="object"&&(t={name:t});const r=Object.assign({name:jm,automaticDataCollectionEnabled:!1},t),i=r.name;if(typeof i!="string"||!i)throw bu.create("bad-app-name",{appName:String(i)});if(n||(n=WD()),!n)throw bu.create("no-options");const o=Cp.get(i);if(o){if(Mm(n,o.options)&&Mm(r,o.config))return o;throw bu.create("duplicate-app",{appName:i})}const s=new z6(i);for(const f of Bm.values())s.addComponent(f);const c=new j8(n,r,s);return Cp.set(i,c),c}function B8(e=jm){const t=Cp.get(e);if(!t&&e===jm&&WD())return XD();if(!t)throw bu.create("no-app",{appName:e});return t}function wu(e,t,n){var r;let i=(r=L8[e])!==null&&r!==void 0?r:e;n&&(i+=`-${n}`);const o=i.match(/\s|\//),s=t.match(/\s|\//);if(o||s){const c=[`Unable to register library "${i}" with version "${t}":`];o&&c.push(`library name "${i}" contains illegal characters (whitespace or "/")`),o&&s&&c.push("and"),s&&c.push(`version name "${t}" contains illegal characters (whitespace or "/")`),Pl.warn(c.join(" "));return}Ec(new Eu(`${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 $8="firebase-heartbeat-database",V8=1,Nd="firebase-heartbeat-store";let Ov=null;function KD(){return Ov||(Ov=ng($8,V8,{upgrade:(e,t)=>{switch(t){case 0:try{e.createObjectStore(Nd)}catch(n){console.warn(n)}}}}).catch(e=>{throw bu.create("idb-open",{originalErrorMessage:e.message})})),Ov}async function H8(e){try{const n=(await KD()).transaction(Nd),r=await n.objectStore(Nd).get(ZD(e));return await n.done,r}catch(t){if(t instanceof Mf)Pl.warn(t.message);else{const n=bu.create("idb-get",{originalErrorMessage:t==null?void 0:t.message});Pl.warn(n.message)}}}async function D1(e,t){try{const r=(await KD()).transaction(Nd,"readwrite");await r.objectStore(Nd).put(t,ZD(e)),await r.done}catch(n){if(n instanceof Mf)Pl.warn(n.message);else{const r=bu.create("idb-set",{originalErrorMessage:n==null?void 0:n.message});Pl.warn(r.message)}}}function ZD(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 U8=1024,W8=30*24*60*60*1e3;class z8{constructor(t){this.container=t,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new G8(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=O1();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 c=new Date(s.date).valueOf();return Date.now()-c<=W8}),this._storage.overwrite(this._heartbeatsCache))}catch(r){Pl.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=O1(),{heartbeatsToSend:r,unsentEntries:i}=Y8(this._heartbeatsCache.heartbeats),o=UD(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 Pl.warn(n),""}}}function O1(){return new Date().toISOString().substring(0,10)}function Y8(e,t=U8){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),_1(n)>t){o.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),_1(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}class G8{constructor(t){this.app=t,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return zD()?YD().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const n=await H8(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 D1(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 D1(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&&n!==void 0?n:i.lastSentHeartbeatDate,heartbeats:[...i.heartbeats,...t.heartbeats]})}else return}}function _1(e){return UD(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 q8(e){Ec(new Eu("platform-logger",t=>new s8(t),"PRIVATE")),Ec(new Eu("heartbeat",t=>new z8(t),"PRIVATE")),wu(Nm,E1,e),wu(Nm,E1,"esm2017"),wu("fire-js","")}q8("");var X8="firebase",K8="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
|
+
*/wu(X8,K8,"app");const JD="@firebase/installations",tb="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 QD=1e4,eO=`w:${tb}`,tO="FIS_v2",Z8="https://firebaseinstallations.googleapis.com/v1",J8=60*60*1e3,Q8="installations",e9="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 t9={"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."},kc=new tg(Q8,e9,t9);function nO(e){return e instanceof Mf&&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 rO({projectId:e}){return`${Z8}/projects/${e}/installations`}function iO(e){return{token:e.token,requestStatus:2,expiresIn:r9(e.expiresIn),creationTime:Date.now()}}async function oO(e,t){const r=(await t.json()).error;return kc.create("request-failed",{requestName:e,serverCode:r.code,serverMessage:r.message,serverStatus:r.status})}function aO({apiKey:e}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}function n9(e,{refreshToken:t}){const n=aO(e);return n.append("Authorization",i9(t)),n}async function sO(e){const t=await e();return t.status>=500&&t.status<600?e():t}function r9(e){return Number(e.replace("s","000"))}function i9(e){return`${tO} ${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 o9({appConfig:e,heartbeatServiceProvider:t},{fid:n}){const r=rO(e),i=aO(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:tO,appId:e.appId,sdkVersion:eO},c={method:"POST",headers:i,body:JSON.stringify(s)},f=await sO(()=>fetch(r,c));if(f.ok){const p=await f.json();return{fid:p.fid||n,registrationStatus:2,refreshToken:p.refreshToken,authToken:iO(p.authToken)}}else throw await oO("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 lO(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 a9(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 s9=/^[cdef][\w-]{21}$/,$m="";function l9(){try{const e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;const n=u9(e);return s9.test(n)?n:$m}catch{return $m}}function u9(e){return a9(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 rg(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 uO=new Map;function cO(e,t){const n=rg(e);fO(n,t),c9(n,t)}function fO(e,t){const n=uO.get(e);if(n)for(const r of n)r(t)}function c9(e,t){const n=f9();n&&n.postMessage({key:e,fid:t}),d9()}let yc=null;function f9(){return!yc&&"BroadcastChannel"in self&&(yc=new BroadcastChannel("[Firebase] FID Change"),yc.onmessage=e=>{fO(e.data.key,e.data.fid)}),yc}function d9(){uO.size===0&&yc&&(yc.close(),yc=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 h9="firebase-installations-database",p9=1,Dc="firebase-installations-store";let _v=null;function nb(){return _v||(_v=ng(h9,p9,{upgrade:(e,t)=>{switch(t){case 0:e.createObjectStore(Dc)}}})),_v}async function Ep(e,t){const n=rg(e),i=(await nb()).transaction(Dc,"readwrite"),o=i.objectStore(Dc),s=await o.get(n);return await o.put(t,n),await i.done,(!s||s.fid!==t.fid)&&cO(e,t.fid),t}async function dO(e){const t=rg(e),r=(await nb()).transaction(Dc,"readwrite");await r.objectStore(Dc).delete(t),await r.done}async function ig(e,t){const n=rg(e),i=(await nb()).transaction(Dc,"readwrite"),o=i.objectStore(Dc),s=await o.get(n),c=t(s);return c===void 0?await o.delete(n):await o.put(c,n),await i.done,c&&(!s||s.fid!==c.fid)&&cO(e,c.fid),c}/**
|
|
646
|
+
* @license
|
|
647
|
+
* Copyright 2019 Google LLC
|
|
648
|
+
*
|
|
649
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
650
|
+
* you may not use this file except in compliance with the License.
|
|
651
|
+
* You may obtain a copy of the License at
|
|
652
|
+
*
|
|
653
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
654
|
+
*
|
|
655
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
656
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
657
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
658
|
+
* See the License for the specific language governing permissions and
|
|
659
|
+
* limitations under the License.
|
|
660
|
+
*/async function rb(e){let t;const n=await ig(e.appConfig,r=>{const i=g9(r),o=v9(e,i);return t=o.registrationPromise,o.installationEntry});return n.fid===$m?{installationEntry:await t}:{installationEntry:n,registrationPromise:t}}function g9(e){const t=e||{fid:l9(),registrationStatus:0};return hO(t)}function v9(e,t){if(t.registrationStatus===0){if(!navigator.onLine){const i=Promise.reject(kc.create("app-offline"));return{installationEntry:t,registrationPromise:i}}const n={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},r=m9(e,n);return{installationEntry:n,registrationPromise:r}}else return t.registrationStatus===1?{installationEntry:t,registrationPromise:y9(e)}:{installationEntry:t}}async function m9(e,t){try{const n=await o9(e,t);return Ep(e.appConfig,n)}catch(n){throw nO(n)&&n.customData.serverCode===409?await dO(e.appConfig):await Ep(e.appConfig,{fid:t.fid,registrationStatus:0}),n}}async function y9(e){let t=await P1(e.appConfig);for(;t.registrationStatus===1;)await lO(100),t=await P1(e.appConfig);if(t.registrationStatus===0){const{installationEntry:n,registrationPromise:r}=await rb(e);return r||n}return t}function P1(e){return ig(e,t=>{if(!t)throw kc.create("installation-not-found");return hO(t)})}function hO(e){return b9(e)?{fid:e.fid,registrationStatus:0}:e}function b9(e){return e.registrationStatus===1&&e.registrationTime+QD<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 w9({appConfig:e,heartbeatServiceProvider:t},n){const r=x9(e,n),i=n9(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:eO,appId:e.appId}},c={method:"POST",headers:i,body:JSON.stringify(s)},f=await sO(()=>fetch(r,c));if(f.ok){const p=await f.json();return iO(p)}else throw await oO("Generate Auth Token",f)}function x9(e,{fid:t}){return`${rO(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 ib(e,t=!1){let n;const r=await ig(e.appConfig,o=>{if(!pO(o))throw kc.create("not-registered");const s=o.authToken;if(!t&&C9(s))return o;if(s.requestStatus===1)return n=S9(e,t),o;{if(!navigator.onLine)throw kc.create("app-offline");const c=k9(o);return n=T9(e,c),c}});return n?await n:r.authToken}async function S9(e,t){let n=await R1(e.appConfig);for(;n.authToken.requestStatus===1;)await lO(100),n=await R1(e.appConfig);const r=n.authToken;return r.requestStatus===0?ib(e,t):r}function R1(e){return ig(e,t=>{if(!pO(t))throw kc.create("not-registered");const n=t.authToken;return D9(n)?Object.assign(Object.assign({},t),{authToken:{requestStatus:0}}):t})}async function T9(e,t){try{const n=await w9(e,t),r=Object.assign(Object.assign({},t),{authToken:n});return await Ep(e.appConfig,r),n}catch(n){if(nO(n)&&(n.customData.serverCode===401||n.customData.serverCode===404))await dO(e.appConfig);else{const r=Object.assign(Object.assign({},t),{authToken:{requestStatus:0}});await Ep(e.appConfig,r)}throw n}}function pO(e){return e!==void 0&&e.registrationStatus===2}function C9(e){return e.requestStatus===2&&!E9(e)}function E9(e){const t=Date.now();return t<e.creationTime||e.creationTime+e.expiresIn<t+J8}function k9(e){const t={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},e),{authToken:t})}function D9(e){return e.requestStatus===1&&e.requestTime+QD<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 O9(e){const t=e,{installationEntry:n,registrationPromise:r}=await rb(t);return r?r.catch(console.error):ib(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 _9(e,t=!1){const n=e;return await P9(n),(await ib(n,t)).token}async function P9(e){const{registrationPromise:t}=await rb(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 R9(e){if(!e||!e.options)throw Pv("App Configuration");if(!e.name)throw Pv("App Name");const t=["projectId","apiKey","appId"];for(const n of t)if(!e.options[n])throw Pv(n);return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}function Pv(e){return kc.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 gO="installations",I9="installations-internal",A9=e=>{const t=e.getProvider("app").getImmediate(),n=R9(t),r=eb(t,"heartbeat");return{app:t,appConfig:n,heartbeatServiceProvider:r,_delete:()=>Promise.resolve()}},M9=e=>{const t=e.getProvider("app").getImmediate(),n=eb(t,gO).getImmediate();return{getId:()=>O9(n),getToken:i=>_9(n,i)}};function L9(){Ec(new Eu(gO,A9,"PUBLIC")),Ec(new Eu(I9,M9,"PRIVATE"))}L9();wu(JD,tb);wu(JD,tb,"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 F9="/firebase-messaging-sw.js",N9="/firebase-cloud-messaging-push-scope",vO="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",j9="https://fcmregistrations.googleapis.com/v1",mO="google.c.a.c_id",B9="google.c.a.c_l",$9="google.c.a.ts",V9="google.c.a.e";var I1;(function(e){e[e.DATA_MESSAGE=1]="DATA_MESSAGE",e[e.DISPLAY_NOTIFICATION=3]="DISPLAY_NOTIFICATION"})(I1||(I1={}));/**
|
|
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 jd;(function(e){e.PUSH_RECEIVED="push-received",e.NOTIFICATION_CLICKED="notification-clicked"})(jd||(jd={}));/**
|
|
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 yl(e){const t=new Uint8Array(e);return btoa(String.fromCharCode(...t)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function H9(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 Rv="fcm_token_details_db",U9=5,A1="fcm_token_object_Store";async function W9(e){if("databases"in indexedDB&&!(await indexedDB.databases()).map(o=>o.name).includes(Rv))return null;let t=null;return(await ng(Rv,U9,{upgrade:async(r,i,o,s)=>{var c;if(i<2||!r.objectStoreNames.contains(A1))return;const f=s.objectStore(A1),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:(c=y.createTime)!==null&&c!==void 0?c:Date.now(),subscriptionOptions:{auth:y.auth,p256dh:y.p256dh,endpoint:y.endpoint,swScope:y.swScope,vapidKey:typeof y.vapidKey=="string"?y.vapidKey:yl(y.vapidKey)}}}else if(i===3){const y=p;t={token:y.fcmToken,createTime:y.createTime,subscriptionOptions:{auth:yl(y.auth),p256dh:yl(y.p256dh),endpoint:y.endpoint,swScope:y.swScope,vapidKey:yl(y.vapidKey)}}}else if(i===4){const y=p;t={token:y.fcmToken,createTime:y.createTime,subscriptionOptions:{auth:yl(y.auth),p256dh:yl(y.p256dh),endpoint:y.endpoint,swScope:y.swScope,vapidKey:yl(y.vapidKey)}}}}}})).close(),await kv(Rv),await kv("fcm_vapid_details_db"),await kv("undefined"),z9(t)?t:null}function z9(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 Y9="firebase-messaging-database",G9=1,Bd="firebase-messaging-store";let Iv=null;function yO(){return Iv||(Iv=ng(Y9,G9,{upgrade:(e,t)=>{switch(t){case 0:e.createObjectStore(Bd)}}})),Iv}async function q9(e){const t=bO(e),r=await(await yO()).transaction(Bd).objectStore(Bd).get(t);if(r)return r;{const i=await W9(e.appConfig.senderId);if(i)return await ob(e,i),i}}async function ob(e,t){const n=bO(e),i=(await yO()).transaction(Bd,"readwrite");return await i.objectStore(Bd).put(t,n),await i.done,t}function bO({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 X9={"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 tg("messaging","Messaging",X9);/**
|
|
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 K9(e,t){const n=await sb(e),r=wO(t),i={method:"POST",headers:n,body:JSON.stringify(r)};let o;try{o=await(await fetch(ab(e.appConfig),i)).json()}catch(s){throw Ni.create("token-subscribe-failed",{errorInfo:s==null?void 0:s.toString()})}if(o.error){const s=o.error.message;throw Ni.create("token-subscribe-failed",{errorInfo:s})}if(!o.token)throw Ni.create("token-subscribe-no-token");return o.token}async function Z9(e,t){const n=await sb(e),r=wO(t.subscriptionOptions),i={method:"PATCH",headers:n,body:JSON.stringify(r)};let o;try{o=await(await fetch(`${ab(e.appConfig)}/${t.token}`,i)).json()}catch(s){throw Ni.create("token-update-failed",{errorInfo:s==null?void 0:s.toString()})}if(o.error){const s=o.error.message;throw Ni.create("token-update-failed",{errorInfo:s})}if(!o.token)throw Ni.create("token-update-no-token");return o.token}async function J9(e,t){const r={method:"DELETE",headers:await sb(e)};try{const o=await(await fetch(`${ab(e.appConfig)}/${t}`,r)).json();if(o.error){const s=o.error.message;throw Ni.create("token-unsubscribe-failed",{errorInfo:s})}}catch(i){throw Ni.create("token-unsubscribe-failed",{errorInfo:i==null?void 0:i.toString()})}}function ab({projectId:e}){return`${j9}/projects/${e}/registrations`}async function sb({appConfig:e,installations:t}){const n=await t.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e.apiKey,"x-goog-firebase-installations-auth":`FIS ${n}`})}function wO({p256dh:e,auth:t,endpoint:n,vapidKey:r}){const i={web:{endpoint:n,auth:t,p256dh:e}};return r!==vO&&(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 Q9=7*24*60*60*1e3;async function eY(e){const t=await nY(e.swRegistration,e.vapidKey),n={vapidKey:e.vapidKey,swScope:e.swRegistration.scope,endpoint:t.endpoint,auth:yl(t.getKey("auth")),p256dh:yl(t.getKey("p256dh"))},r=await q9(e.firebaseDependencies);if(r){if(rY(r.subscriptionOptions,n))return Date.now()>=r.createTime+Q9?tY(e,{token:r.token,createTime:Date.now(),subscriptionOptions:n}):r.token;try{await J9(e.firebaseDependencies,r.token)}catch(i){console.warn(i)}return M1(e.firebaseDependencies,n)}else return M1(e.firebaseDependencies,n)}async function tY(e,t){try{const n=await Z9(e.firebaseDependencies,t),r=Object.assign(Object.assign({},t),{token:n,createTime:Date.now()});return await ob(e.firebaseDependencies,r),n}catch(n){throw n}}async function M1(e,t){const r={token:await K9(e,t),createTime:Date.now(),subscriptionOptions:t};return await ob(e,r),r.token}async function nY(e,t){const n=await e.pushManager.getSubscription();return n||e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:H9(t)})}function rY(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 L1(e){const t={from:e.from,collapseKey:e.collapse_key,messageId:e.fcmMessageId};return iY(t,e),oY(t,e),aY(t,e),t}function iY(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 oY(e,t){t.data&&(e.data=t.data)}function aY(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 c=(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;c&&(e.fcmOptions.link=c);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 sY(e){return typeof e=="object"&&!!e&&mO 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 lY(e){if(!e||!e.options)throw Av("App Configuration Object");if(!e.name)throw Av("App Name");const t=["projectId","apiKey","appId","messagingSenderId"],{options:n}=e;for(const r of t)if(!n[r])throw Av(r);return{appName:e.name,projectId:n.projectId,apiKey:n.apiKey,appId:n.appId,senderId:n.messagingSenderId}}function Av(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 uY{constructor(t,n,r){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroundMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;const i=lY(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 cY(e){try{e.swRegistration=await navigator.serviceWorker.register(F9,{scope:N9}),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 fY(e,t){if(!t&&!e.swRegistration&&await cY(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 dY(e,t){t?e.vapidKey=t:e.vapidKey||(e.vapidKey=vO)}/**
|
|
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 xO(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 dY(e,t==null?void 0:t.vapidKey),await fY(e,t==null?void 0:t.serviceWorkerRegistration),eY(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 hY(e,t,n){const r=pY(t);(await e.firebaseDependencies.analyticsProvider.get()).logEvent(r,{message_id:n[mO],message_name:n[B9],message_time:n[$9],message_device_time:Math.floor(Date.now()/1e3)})}function pY(e){switch(e){case jd.NOTIFICATION_CLICKED:return"notification_open";case jd.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 gY(e,t){const n=t.data;if(!n.isFirebaseMessaging)return;e.onMessageHandler&&n.messageType===jd.PUSH_RECEIVED&&(typeof e.onMessageHandler=="function"?e.onMessageHandler(L1(n)):e.onMessageHandler.next(L1(n)));const r=n.data;sY(r)&&r[V9]==="1"&&await hY(e,n.messageType,r)}const F1="@firebase/messaging",N1="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 vY=e=>{const t=new uY(e.getProvider("app").getImmediate(),e.getProvider("installations-internal").getImmediate(),e.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",n=>gY(t,n)),t},mY=e=>{const t=e.getProvider("messaging").getImmediate();return{getToken:r=>xO(t,r)}};function yY(){Ec(new Eu("messaging",vY,"PUBLIC")),Ec(new Eu("messaging-internal",mY,"PRIVATE")),wu(F1,N1),wu(F1,N1,"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 bY(){try{await YD()}catch{return!1}return typeof window<"u"&&zD()&&j6()&&"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 wY(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 xY(e=B8()){return bY().then(t=>{if(!t)throw Ni.create("unsupported-browser")},t=>{throw Ni.create("indexed-db-unsupported")}),eb(Jy(e),"messaging").getImmediate()}async function SY(e,t){return e=Jy(e),xO(e,t)}function TY(e,t){return e=Jy(e),wY(e,t)}yY();exports.AuthContext=Um;exports.AuthProvider=JA;exports.CustomOpenList=K1;exports.CustomOpenListProvider=NA;exports.DateRangePicker=D6;exports.ERROR_MESSAGE=Y1;exports.FavoriteMenu=t6;exports.GlobalMenu=g6;exports.IconComponent=kD;exports.InfiniteLoader=T6;exports.Language=zm;exports.LogoutConfirmModal=j1;exports.PropTypes=Ea;exports.Q=E2;exports.SaasThemeProvider=XA;exports.StyleWrapper=Ym;exports.TranslationProvider=oL;exports._=m6;exports._assertThisInitialized=xl;exports._extends=Pf;exports._extends$1=Q5;exports._inheritsLoose=xD;exports._objectWithoutPropertiesLoose=Wm;exports.activeStyles=Xy;exports.axiosInstance=Da;exports.clsx=bl;exports.color=ii;exports.commonjsGlobal=Ei;exports.createCustomTheme=eT;exports.getAugmentedNamespace=gM;exports.getMessagingInWindow=xY;exports.getToken=SY;exports.handleErrorAxios=X1;exports.initializeApp=XD;exports.lodashExports=jD;exports.login=G1;exports.logout=q1;exports.notify=R2;exports.objectWithoutPropertiesLoose=pM;exports.onMessage=TY;exports.pushError=Vd;exports.pushSuccess=Zm;exports.pushWarning=P2;exports.responseInterceptor=FA;exports.search=eM;exports.setFavicon=tT;exports.styles=v6;exports.translate=rL;exports.translationConfig=nL;exports.updateFavoriteItems=Zy;exports.useAuth=QA;exports.useCustomTranslation=tL;exports.useTheme=qA;exports.useTranslation=cT;exports.useTranslation$1=iL;
|