PageSourceSearch

https://koronapay.com/_next/static/chunks/915.5bcee4fa47e0c73d.js

js koronapay.com collected 2026-09-24 18:20:31 UTC 303,930 bytes, 280 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[915],{29723:function(t,e,n){"use strict";n.d(e,{E:function(){return b},T:function(){return f},_:function(){return d},a:function(){return m},c:function(){return y},h:function(){return v},w:function(){return h}});var i=n(2441),r=n(29938),o=n(69166),s=n(13283),a=n(64223),c=n(55884),u=n(42581),l=i.createContext("undefined"!==typeof HTMLElement?(0,r.Z)({key:"css"}):null),d=(l.Provider,function(){return(0,i.useContext)(l)}),h=function(t){return(0,i.forwardRef)((function(e,n){var r=(0,i.useContext)(l);return t(e,r,n)}))},f=i.createContext({}),p=(0,s.Z)((function(t){return(0,s.Z)((function(e){return function(t,e){return"function"===typeof e?e(t):(0,o.Z)({},t,e)}(t,e)}))})),m=function(t){var e=i.useContext(f);return t.theme!==e&&(e=p(e)(t.theme)),i.createElement(f.Provider,{value:e},t.children)};var v={}.hasOwnProperty,g="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",y=function(t,e){var n={};for(var i in e)v.call(e,i)&&(n[i]=e[i]);return n[g]=t,n},w=function(t){var e=t.cache,n=t.serialized,i=t.isStringTag;return(0,a.hC)(e,n,i),(0,u.L)((function(){return(0,a.My)(e,n,i)})),null},b=h((function(t,e,n){var r=t.css;"string"===typeof r&&void 0!==e.registered[r]&&(r=e.registered[r]);var o=t[g],s=[r],u="";"string"===typeof t.className?u=(0,a.fp)(e.registered,s,t.className):null!=t.className&&(u=t.className+" ");var l=(0,c.O)(s,void 0,i.useContext(f));u+=e.key+"-"+l.name;var d={};for(var h in t)v.call(t,h)&&"css"!==h&&h!==g&&(d[h]=t[h]);return d.className=u,n&&(d.ref=n),i.createElement(i.Fragment,null,i.createElement(w,{cache:e,serialized:l,isStringTag:"string"===typeof o}),i.createElement(o,d))}))},25791:function(t,e,n){"use strict";n.d(e,{F4:function(){return d},xB:function(){return u}});var i=n(29723),r=n(2441),o=n(64223),s=n(42581),a=n(55884),c=(n(29938),n(31184),function(t,e){var n=arguments;if(null==e||!i.h.call(e,"css"))return r.createElement.apply(void 0,n);var o=n.length,s=new Array(o);s[0]=i.E,s[1]=(0,i.c)(t,e);for(var a=2;a<o;a++)s[a]=n[a];return r.createElement.apply(null,s)});!function(t){var e;e||(e=t.JSX||(t.JSX={}))}(c||(c={}));var u=(0,i.w)((function(t,e){var n=t.styles,c=(0,a.O)([n],void 0,r.useContext(i.T)),u=r.useRef();return(0,s.j)((function(){var t=e.key+"-global",n=new e.sheet.constructor({key:t,nonce:e.sheet.nonce,container:e.sheet.container,speedy:e.sheet.isSpeedy}),i=!1,r=document.querySelector('style[data-emotion="'+t+" "+c.name+'"]');return e.sheet.tags.length&&(n.before=e.sheet.tags[0]),null!==r&&(i=!0,r.setAttribute("data-emotion",t),n.hydrate([r])),u.current=[n,i],function(){n.flush()}}),[e]),(0,s.j)((function(){var t=u.current,n=t[0];if(t[1])t[1]=!1;else{if(void 0!==c.next&&(0,o.My)(e,c.next,!0),n.tags.length){var i=n.tags[n.tags.length-1].nextElementSibling;n.before=i,n.flush()}e.insert("",c,n,!1)}}),[e,c.name]),null}));function l(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return(0,a.O)(e)}function d(){var t=l.apply(void 0,arguments),e="animation-"+t.name;return{name:e,styles:"@keyframes "+e+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},42581:function(t,e,n){"use strict";var i;n.d(e,{L:function(){return s},j:function(){return a}});var r=n(2441),o=!!(i||(i=n.t(r,2))).useInsertionEffect&&(i||(i=n.t(r,2))).useInsertionEffect,s=o||function(t){return t()},a=o||r.useLayoutEffect},68334:function(t,e,n){!function(e,i){t.exports=i(n(2441))}("undefined"!=typeof self&&self,(t=>(()=>{"use strict";var e={896:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.useContainer=o,e.useInjection=function(t){return o((function(e){return e.get(t)}))},e.useOptionalInjection=function(t,e){return void 0===e&&(e=function(){}),o((function(n){return n.isBound(t)?n.get(t):e(n)}))},e.useAllInjections=function(t){return o((function(e){return e.getAll(t)}))};var i=n(12),r=n(799);function o(t){var e,n,o=(0,i.useContext)(r.InversifyReactContext);if(!o)throw new Error("Cannot find Inversify container on React Context. `Provider` component is missing in component tree.");return t?(e=function(){return t(o)},(n=(0,i.useRef)(null)).current||(n.current={v:e()}),n.current.v):o}},799:(t,e,n)=>
1{Object.defineProperty(e,"__esModule",{value:!0}),e.AdministrationKey=e.InversifyReactContext=void 0,e.ensureAcceptContext=function(t){var e=s(t);if(!e.accepts){var n=t.contextType,o=t.displayName||t.name;if(n)throw new Error("inversify-react cannot configure React context.\n"+"Component `".concat(o,"` already has `").concat(r,": ").concat(n.displayName||"<anonymous context>","` defined.\n")+"@see inversify-react/test/resolve.tsx#limitations for more info and workarounds\n");Object.defineProperty(t,r,{enumerable:!0,get:function(){return i},set:function(t){if(t!==i)throw new Error("Cannot change `".concat(r,"` of `").concat(o,"` component.\n")+"Looks like you are using inversify-react decorators, which have already patched this component and use own context to deliver IoC container.\n@see inversify-react/test/resolve.tsx#limitations for more info and workarounds\n")}}),e.accepts=!0}},e.createProperty=function(t,e,n,i){Object.defineProperty(t,e,{enumerable:!0,get:function(){var t=a(this),r=t.properties[e];if(!r){var o,s=t.container;o=i.isAll?i.isOptional&&!s.isBound(n)?[]:s.getAll(n):i.isOptional?s.isBound(n)?s.get(n):i.defaultValue:s.get(n),r=t.properties[e]=function(){return o}}return r()}});var r=Object.getOwnPropertyDescriptor(t,e);if(!r)throw new Error("Failed to define property");return r},e.getClassAdministration=s,e.getInstanceAdministration=a;var i=(0,n(12).createContext)(void 0);e.InversifyReactContext=i,i.displayName="InversifyReactContext";var r="contextType",o="~$inversify-react";function s(t){var e=t[o];return e||(e={accepts:!1},Object.defineProperty(t,o,{enumerable:!1,writable:!1,value:e})),e}function a(t){var e=t[o];if(!e){var n=t.context;if(!n)throw new Error("Cannot use resolve services without any providers in component tree.");e={container:n,properties:{}},Object.defineProperty(t,o,{enumerable:!1,writable:!1,value:e})}return e}e.AdministrationKey=o},21:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Provider=void 0;var i=n(12),r=n(12),o=n(799),s=function(t){var e=t.children,n=t.container,s=t.standalone,a=void 0!==s&&s,c=(0,r.useState)(n)[0];if("resolve"in n&&n!==c)throw new Error("Changing `container` prop (swapping container in runtime) is not supported.\nIf you're rendering Provider in some list, try adding `key={container.id}` to the Provider.\nMore info on React lists:\nhttps://reactjs.org/docs/lists-and-keys.html#keys\nhttps://reactjs.org/docs/reconciliation.html#recursing-on-children");var u=(0,r.useState)(a)[0];if(a!==u)throw new Error("Changing `standalone` prop is not supported.");var l=(0,r.useContext)(o.InversifyReactContext);return(0,r.useState)((function(){if(!u&&l){if(l===c)throw new Error("Provider has found a parent container (on surrounding React Context), yet somehow it's the same as container specified in props. It doesn't make sense.\nPerhaps you meant to configure Provider as `standalone={true}`?");if(c.parent&&c.parent!==l)throw new Error("Ambiguous containers hierarchy.\nProvider has found a parent for specified `container`, but it already has a different parent.\nLearn more at https://github.com/Kukkimonsuta/inversify-react/blob/v0.5.0/src/provider.tsx");c.parent=l}})),i.createElement(o.InversifyReactContext.Provider,{value:c},e)};e.Provider=s,e.default=s},704:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.resolve=void 0;var i=n(799);function r(t,e,n,r){return(0,i.ensureAcceptContext)(t.constructor),(0,i.createProperty)(t,e,n,r)}function o(t,e){if(!e)throw new Error("Decorator `resolve` failed to resolve property name");if(!Reflect||!Reflect.getMetadata)throw new Error("Decorator `resolve` without specifying service identifier requires `reflect-metadata`");var n=Reflect.getMetadata("design:type",t,e);if(!n)throw new Error("Failed to discover property type, is `emitDecoratorMetadata` enabled?");return n}var s=function(t,e,n){if(void 0!==e)return r(t,e,o(t,e),{});var i=t;if(!i)throw new Error("Invalid property type.");return function(t,e,n){return r(t,e,i,{})}};e.resolve=s,s.optional=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if("string"==typeof t[1]&&3===t.length){var n=t[0],i=t[1];return t[2],r(n,i,o(n,i),{isOptional:!0})}var s=t[0],a=t[1];return function(t,e,n){return r(t,e,s,{isOptional:!0,defaultValue:a})}},s.all=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if("string"==typeof t[1]&&3===t.length){var n=t[0],i=t[1];return t[2],r(n,i,o(n,i),{isAll:!0})}var s=t[0];return function(t,e,n){return r(t,e,s,{isAll:!0})}},s.optional.all=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if("string"==typeof t[1]&&3===t.length){var n=t[0],i=t[1];return t[2],r(n,i,o(n,i),{isAll:!0})}var s=t[0];return function(t,e,n){return r(t,e,s,{isAll:!0,isOptional:!0})}},e.default=s},12:e=>{e.exports=t}},n={};function i(t){var r=n[t];
1if(void 0!==r)return r.exports;var o=n[t]={exports:{}};return e[t](o,o.exports,i),o.exports}var r={};return(()=>{var t=r;Object.defineProperty(t,"__esModule",{value:!0}),t.useOptionalInjection=t.useInjection=t.useContainer=t.useAllInjections=t.Provider=t.resolve=void 0;var e=i(704);Object.defineProperty(t,"resolve",{enumerable:!0,get:function(){return e.resolve}});var n=i(21);Object.defineProperty(t,"Provider",{enumerable:!0,get:function(){return n.Provider}});var o=i(896);Object.defineProperty(t,"useAllInjections",{enumerable:!0,get:function(){return o.useAllInjections}}),Object.defineProperty(t,"useContainer",{enumerable:!0,get:function(){return o.useContainer}}),Object.defineProperty(t,"useInjection",{enumerable:!0,get:function(){return o.useInjection}}),Object.defineProperty(t,"useOptionalInjection",{enumerable:!0,get:function(){return o.useOptionalInjection}})})(),r})()))},92358:function(t){!function(){var e={675:function(t,e){"use strict";e.byteLength=function(t){var e=a(t),n=e[0],i=e[1];return 3*(n+i)/4-i},e.toByteArray=function(t){var e,n,o=a(t),s=o[0],c=o[1],u=new r(function(t,e,n){return 3*(e+n)/4-n}
1(0,s,c)),l=0,d=c>0?s-4:s;for(n=0;n<d;n+=4)e=i[t.charCodeAt(n)]<<18|i[t.charCodeAt(n+1)]<<12|i[t.charCodeAt(n+2)]<<6|i[t.charCodeAt(n+3)],u[l++]=e>>16&255,u[l++]=e>>8&255,u[l++]=255&e;2===c&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,u[l++]=255&e);1===c&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,u[l++]=e>>8&255,u[l++]=255&e);return u},e.fromByteArray=function(t){for(var e,i=t.length,r=i%3,o=[],s=16383,a=0,c=i-r;a<c;a+=s)o.push(u(t,a,a+s>c?c:a+s));1===r?(e=t[i-1],o.push(n[e>>2]+n[e<<4&63]+"==")):2===r&&(e=(t[i-2]<<8)+t[i-1],o.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"="));return o.join("")};for(var n=[],i=[],r="undefined"!==typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)n[s]=o[s],i[o.charCodeAt(s)]=s;function a(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function c(t){return n[t>>18&63]+n[t>>12&63]+n[t>>6&63]+n[63&t]}function u(t,e,n){for(var i,r=[],o=e;o<n;o+=3)i=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),r.push(c(i));return r.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},72:function(t,e,n){"use strict";var i=n(675),r=n(783),o="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=c,e.SlowBuffer=function(t){+t!=t&&(t=0);return c.alloc(+t)},e.INSPECT_MAX_BYTES=50;var s=2147483647;function a(t){if(t>s)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,c.prototype),e}function c(t,e,n){if("number"===typeof t){if("string"===typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return d(t)}return u(t,e,n)}function u(t,e,n){if("string"===typeof t)return function(t,e){"string"===typeof e&&""!==e||(e="utf8");if(!c.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var n=0|m(t,e),i=a(n),r=i.write(t,e);r!==n&&(i=i.slice(0,r));return i}(t,e);if(ArrayBuffer.isView(t))return h(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(z(t,ArrayBuffer)||t&&z(t.buffer,ArrayBuffer))return f(t,e,n);if("undefined"!==typeof SharedArrayBuffer&&(z(t,SharedArrayBuffer)||t&&z(t.buffer,SharedArrayBuffer)))return f(t,e,n);if("number"===typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var i=t.valueOf&&t.valueOf();if(null!=i&&i!==t)return c.from(i,e,n);var r=function(t){if(c.isBuffer(t)){var e=0|p(t.length),n=a(e);return 0===n.length||t.copy(n,0,0,e),n}if(void 0!==t.length)return"number"!==typeof t.length||W(t.length)?a(0):h(t);if("Buffer"===t.type&&Array.isArray(t.data))return h(t.data)}(t);if(r)return r;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof t[Symbol.toPrimitive])return c.from(t[Symbol.toPrimitive]("string"),e,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function l(t){if("number"!==typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function d(t){return l(t),a(t<0?0:0|p(t))}function h(t){for(var e=t.length<0?0:0|p(t.length),n=a(e),i=0;i<e;i+=1)n[i]=255&t[i];return n}function f(t,e,n){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(n||0))throw new RangeError('"length" is outside of buffer bounds');var i;return i=void 0===e&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,e):new Uint8Array(t,e,n),Object.setPrototypeOf(i,c.prototype),i}function p(t){if(t>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|t}function m(t,e){if(c.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||z(t,ArrayBuffer))return t.byteLength;if("string"!==typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var n=t.length,i=arguments.length>2&&!0===arguments[2];if(!i&&0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return F(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return U(t).length;default:if(r)return i?-1:F(t).length;e=(""+e).toLowerCase(),r=!0}}function v(t,e,n){var i=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return O(this,e,n);case"utf8":case"utf-8":return T(this,e,n);case"ascii":return j(this,e,n);case"latin1":case"binary":return I(this,e,n);case"base64":return A(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,e,n);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function g(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function y(t,e,n,i,r){if(0===t.length)return-1;if("string"===typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),W(n=+n)&&(n=r?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(r)return-1;n=t.length-1}else if(n<0){if(!r)return-1;n=0}
vendor: 5,106 bytes, line 1
1if("string"===typeof e&&(e=c.from(e,i)),c.isBuffer(e))return 0===e.length?-1:w(t,e,n,i,r);if("number"===typeof e)return e&=255,"function"===typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):w(t,[e],n,i,r);throw new TypeError("val must be string, number or Buffer")}function w(t,e,n,i,r){var o,s=1,a=t.length,c=e.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;s=2,a/=2,c/=2,n/=2}function u(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(r){var l=-1;for(o=n;o<a;o++)if(u(t,o)===u(e,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===c)return l*s}else-1!==l&&(o-=o-l),l=-1}else for(n+c>a&&(n=a-c),o=n;o>=0;o--){for(var d=!0,h=0;h<c;h++)if(u(t,o+h)!==u(e,h)){d=!1;break}if(d)return o}return-1}function b(t,e,n,i){n=Number(n)||0;var r=t.length-n;i?(i=Number(i))>r&&(i=r):i=r;var o=e.length;i>o/2&&(i=o/2);for(var s=0;s<i;++s){var a=parseInt(e.substr(2*s,2),16);if(W(a))return s;t[n+s]=a}return s}function x(t,e,n,i){return $(F(e,t.length-n),t,n,i)}function S(t,e,n,i){return $(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,i)}function P(t,e,n,i){return S(t,e,n,i)}function C(t,e,n,i){return $(U(e),t,n,i)}function E(t,e,n,i){return $(function(t,e){for(var n,i,r,o=[],s=0;s<t.length&&!((e-=2)<0);++s)i=(n=t.charCodeAt(s))>>8,r=n%256,o.push(r),o.push(i);return o}(e,t.length-n),t,n,i)}function A(t,e,n){return 0===e&&n===t.length?i.fromByteArray(t):i.fromByteArray(t.slice(e,n))}function T(t,e,n){n=Math.min(t.length,n);for(var i=[],r=e;r<n;){var o,s,a,c,u=t[r],l=null,d=u>239?4:u>223?3:u>191?2:1;if(r+d<=n)switch(d){case 1:u<128&&(l=u);break;case 2:128===(192&(o=t[r+1]))&&(c=(31&u)<<6|63&o)>127&&(l=c);break;case 3:o=t[r+1],s=t[r+2],128===(192&o)&&128===(192&s)&&(c=(15&u)<<12|(63&o)<<6|63&s)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:o=t[r+1],s=t[r+2],a=t[r+3],128===(192&o)&&128===(192&s)&&128===(192&a)&&(c=(15&u)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&c<1114112&&(l=c)}null===l?(l=65533,d=1):l>65535&&(l-=65536,i.push(l>>>10&1023|55296),l=56320|1023&l),i.push(l),r+=d}return k(i)}e.kMaxLength=s,c.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),c.TYPED_ARRAY_SUPPORT||"undefined"===typeof console||"function"!==typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(t,e,n){return u(t,e,n)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(t,e,n){return function(t,e,n){return l(t),t<=0?a(t):void 0!==e?"string"===typeof n?a(t).fill(e,n):a(t).fill(e):a(t)}(t,e,n)},c.allocUnsafe=function(t){return d(t)},c.allocUnsafeSlow=function(t){return d(t)},c.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==c.prototype},c.compare=function(t,e){if(z(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),z(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(t)||!c.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var n=t.length,i=e.length,r=0,o=Math.min(n,i);r<o;++r)if(t[r]!==e[r]){n=t[r],i=e[r];break}return n<i?-1:i<n?1:0},c.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return c.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var i=c.allocUnsafe(e),r=0;for(n=0;n<t.length;++n){var o=t[n];if(z(o,Uint8Array)&&(o=c.from(o)),!c.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(i,r),r+=o.length}return i},c.byteLength=m,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)g(this,e,e+1);return this},c.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},c.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},c.prototype.toString=function(){var t=this.length;return 0===t?"":0===arguments.length?T(this,0,t):v.apply(this,arguments)}
vendor: 9,827 bytes, line 1
1,c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(t+=" ... "),"<Buffer "+t+">"},o&&(c.prototype[o]=c.prototype.inspect),c.prototype.compare=function(t,e,n,i,r){if(z(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),e<0||n>t.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&e>=n)return 0;if(i>=r)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(r>>>=0)-(i>>>=0),s=(n>>>=0)-(e>>>=0),a=Math.min(o,s),u=this.slice(i,r),l=t.slice(e,n),d=0;d<a;++d)if(u[d]!==l[d]){o=u[d],s=l[d];break}return o<s?-1:s<o?1:0},c.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},c.prototype.indexOf=function(t,e,n){return y(this,t,e,n,!0)},c.prototype.lastIndexOf=function(t,e,n){return y(this,t,e,n,!1)},c.prototype.write=function(t,e,n,i){if(void 0===e)i="utf8",n=this.length,e=0;else if(void 0===n&&"string"===typeof e)i=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(n)?(n>>>=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var r=this.length-e;if((void 0===n||n>r)&&(n=r),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return b(this,t,e,n);case"utf8":case"utf-8":return x(this,t,e,n);case"ascii":return S(this,t,e,n);case"latin1":case"binary":return P(this,t,e,n);case"base64":return C(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var R=4096;function k(t){var e=t.length;if(e<=R)return String.fromCharCode.apply(String,t);for(var n="",i=0;i<e;)n+=String.fromCharCode.apply(String,t.slice(i,i+=R));return n}function j(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;r<n;++r)i+=String.fromCharCode(127&t[r]);return i}function I(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;r<n;++r)i+=String.fromCharCode(t[r]);return i}function O(t,e,n){var i=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>i)&&(n=i);for(var r="",o=e;o<n;++o)r+=q[t[o]];return r}function M(t,e,n){for(var i=t.slice(e,n),r="",o=0;o<i.length;o+=2)r+=String.fromCharCode(i[o]+256*i[o+1]);return r}function B(t,e,n){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function D(t,e,n,i,r,o){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||e<o)throw new RangeError('"value" argument is out of bounds');if(n+i>t.length)throw new RangeError("Index out of range")}function _(t,e,n,i,r,o){if(n+i>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function L(t,e,n,i,o){return e=+e,n>>>=0,o||_(t,0,n,4),r.write(t,e,n,i,23,4),n+4}function N(t,e,n,i,o){return e=+e,n>>>=0,o||_(t,0,n,8),r.write(t,e,n,i,52,8),n+8}c.prototype.slice=function(t,e){var n=this.length;(t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t);var i=this.subarray(t,e);return Object.setPrototypeOf(i,c.prototype),i},c.prototype.readUIntLE=function(t,e,n){t>>>=0,e>>>=0,n||B(t,e,this.length);for(var i=this[t],r=1,o=0;++o<e&&(r*=256);)i+=this[t+o]*r;return i},c.prototype.readUIntBE=function(t,e,n){t>>>=0,e>>>=0,n||B(t,e,this.length);for(var i=this[t+--e],r=1;e>0&&(r*=256);)i+=this[t+--e]*r;return i},c.prototype.readUInt8=function(t,e){return t>>>=0,e||B(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,e){return t>>>=0,e||B(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,e){return t>>>=0,e||B(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,e){return t>>>=0,e||B(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,e){return t>>>=0,e||B(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,n){t>>>=0,e>>>=0,n||B(t,e,this.length);for(var i=this[t],r=1,o=0;++o<e&&(r*=256);)i+=this[t+o]*r;return i>=(r*=128)&&(i-=Math.pow(2,8*e)),i},c.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||B(t,e,this.length);for(var i=e,r=1,o=this[t+--i];i>0&&(r*=256);)o+=this[t+--i]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*e)),o},c.prototype.readInt8=function(t,e){return t>>>=0,e||B(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){t>>>=0,e||B(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(t,e){t>>>=0,e||B(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(t,e){return t>>>=0,e||B(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return t>>>=0,e||B(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return t>>>=0,e||B(t,4,this.length),r.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return t>>>=0,e||B(t,4,this.length),r.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return t>>>=0,e||B(t,8,this.length),r.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return t>>>=0,e||B(t,8,this.length),r.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,e,n,i){(t=+t,e>>>=0,n>>>=0,i)||D(this,t,e,n,Math.pow(2,8*n)-1,0);var r=1,o=0;for(this[e]=255&t;++o<n&&(r*=256);)this[e+o]=t/r&255;return e+n},c.prototype.writeUIntBE=function(t,e,n,i){(t=+t,e>>>=0,n>>>=0,i)||D(this,t,e,n,Math.pow(2,8*n)-1,0);var r=n-1,o=1;for(this[e+r]=255&t;--r>=0&&(o*=256);)this[e+r]=t/o&255;return e+n},c.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||D(this,t,e,1,255,0),this[e]=255&t,e+1},c.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||D(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||D(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||D(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},c.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||D(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e>>>=0,!i){var r=Math.pow(2,8*n-1);D(this,t,e,n,r-1,-r)}var o=0,s=1,a=0;for(this[e]=255&t;++o<n&&(s*=256);)t<0&&0===a&&0!==this[e+o-1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+n},c.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e>>>=0,!i){var r=Math.pow(2,8*n-1);D(this,t,e,n,r-1,-r)}var o=n-1,s=1,a=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+n},c.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||D(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||D(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||D(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||D(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},c.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||D(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeFloatLE=function(t,e,n){return L(this,t,e,!0,n)},c.prototype.writeFloatBE=function(t,e,n){return L(this,t,e,!1,n)},c.prototype.writeDoubleLE=function(t,e,n){return N(this,t,e,!0,n)},c.prototype.writeDoubleBE=function(t,e,n){return N(this,t,e,!1,n)},c.prototype.copy=function(t,e,n,i){if(!c.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e<i-n&&(i=t.length-e+n);var r=i-n;if(this===t&&"function"===typeof Uint8Array.prototype.copyWithin)this.copyWithin(e,n,i);else if(this===t&&n<e&&e<i)for(var o=r-1;o>=0;--o)t[o+e]=this[o+n];else Uint8Array.prototype.set.call(t,this.subarray(n,i),e);return r},c.prototype.fill=function(t,e,n,i){if("string"===typeof t){if("string"===typeof e?(i=e,e=0,n=this.length):"string"===typeof n&&(i=n,n=this.length),void 0!==i&&"string"!==typeof i)throw new TypeError("encoding must be a string");if("string"===typeof i&&!c.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(1===t.length){var r=t.charCodeAt(0);("utf8"===i&&r<128||"latin1"===i)&&(t=r)}}else"number"===typeof t?t&=255:"boolean"===typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var o;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"===typeof t)for(o=e;o<n;++o)this[o]=t;else{var s=c.isBuffer(t)?t:c.from(t,i),a=s.length;
1if(0===a)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(o=0;o<n-e;++o)this[o+e]=s[o%a]}return this};var V=/[^+/0-9A-Za-z-_]/g;function F(t,e){var n;e=e||1/0;for(var i=t.length,r=null,o=[],s=0;s<i;++s){if((n=t.charCodeAt(s))>55295&&n<57344){if(!r){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===i){(e-=3)>-1&&o.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(e-=3)>-1&&o.push(239,191,189);if(r=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function U(t){return i.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(V,"")).length<2)return"";for(;t.length%4!==0;)t+="=";return t}(t))}function $(t,e,n,i){for(var r=0;r<i&&!(r+n>=e.length||r>=t.length);++r)e[r+n]=t[r];return r}function z(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function W(t){return t!==t}var q=function(){for(var t="0123456789abcdef",e=new Array(256),n=0;n<16;++n)for(var i=16*n,r=0;r<16;++r)e[i+r]=t[n]+t[r];return e}()},783:function(t,e){e.read=function(t,e,n,i,r){var o,s,a=8*r-i-1,c=(1<<a)-1,u=c>>1,l=-7,d=n?r-1:0,h=n?-1:1,f=t[e+d];for(d+=h,o=f&(1<<-l)-1,f>>=-l,l+=a;l>0;o=256*o+t[e+d],d+=h,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=i;l>0;s=256*s+t[e+d],d+=h,l-=8);if(0===o)o=1-u;else{if(o===c)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,i),o-=u}return(f?-1:1)*s*Math.pow(2,o-i)},e.write=function(t,e,n,i,r,o){var s,a,c,u=8*o-r-1,l=(1<<u)-1,d=l>>1,h=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=i?0:o-1,p=i?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-s))<1&&(s--,c*=2),(e+=s+d>=1?h/c:h*Math.pow(2,1-d))*c>=2&&(s++,c/=2),s+d>=l?(a=0,s=l):s+d>=1?(a=(e*c-1)*Math.pow(2,r),s+=d):(a=e*Math.pow(2,d-1)*Math.pow(2,r),s=0));r>=8;t[n+f]=255&a,f+=p,a/=256,r-=8);for(s=s<<r|a,u+=r;u>0;t[n+f]=255&s,f+=p,s/=256,u-=8);t[n+f-p]|=128*m}}},n={};function i(t){var r=n[t];if(void 0!==r)return r.exports;var o=n[t]={exports:{}},s=!0;try{e[t](o,o.exports,i),s=!1}finally{s&&delete n[t]}return o.exports}i.ab="//";var r=i(72);t.exports=r}()},79603:function(t,e,n){var i;!function(t){!function(e){var i="object"===typeof globalThis?globalThis:"object"===typeof n.g?n.g:"object"===typeof self?self:"object"===typeof this?this:function(){try{return Function("return this;")()}catch(t){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(t){}}(),r=o(t);function o(t,e){return function(n,i){Object.defineProperty(t,n,{configurable:!0,writable:!0,value:i}),e&&e(n,i)}}"undefined"!==typeof i.Reflect&&(r=o(i.Reflect,r)),function(t,e){var n=Object.prototype.hasOwnProperty,i="function"===typeof Symbol,r=i&&"undefined"!==typeof Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",o=i&&"undefined"!==typeof Symbol.iterator?Symbol.iterator:"@@iterator",s="function"===typeof Object.create,a={__proto__:[]}instanceof Array,c=!s&&!a,u={create:s?function(){return dt(Object.create(null))}:a?function(){return dt({__proto__:null})}:function(){return dt({})},has:c?function(t,e){return n.call(t,e)}:function(t,e){return e in t},get:c?function(t,e){return n.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},l=Object.getPrototypeOf(Function),d="function"===typeof Map&&"function"===typeof Map.prototype.entries?Map:ct(),h="function"===typeof Set&&"function"===typeof Set.prototype.entries?Set:ut(),f="function"===typeof WeakMap?WeakMap:lt(),p=i?Symbol.for("@reflect-metadata:registry"):void 0,m=rt(),v=ot(m);function g(t,e,n,i){if(L(n)){if(!K(t))throw new TypeError;if(!G(e))throw new TypeError;return T(t,e)}if(!K(t))throw new TypeError;if(!F(e))throw new TypeError;if(!F(i)&&!L(i)&&!N(i))throw new TypeError;return N(i)&&(i=void 0),R(t,e,n=q(n),i)}
1function y(t,e){function n(n,i){if(!F(n))throw new TypeError;if(!L(i)&&!X(i))throw new TypeError;M(t,e,n,i)}return n}function w(t,e,n,i){if(!F(n))throw new TypeError;return L(i)||(i=q(i)),M(t,e,n,i)}function b(t,e,n){if(!F(e))throw new TypeError;return L(n)||(n=q(n)),k(t,e,n)}function x(t,e,n){if(!F(e))throw new TypeError;return L(n)||(n=q(n)),j(t,e,n)}function S(t,e,n){if(!F(e))throw new TypeError;return L(n)||(n=q(n)),I(t,e,n)}function P(t,e,n){if(!F(e))throw new TypeError;return L(n)||(n=q(n)),O(t,e,n)}function C(t,e){if(!F(t))throw new TypeError;return L(e)||(e=q(e)),B(t,e)}function E(t,e){if(!F(t))throw new TypeError;return L(e)||(e=q(e)),D(t,e)}function A(t,e,n){if(!F(e))throw new TypeError;if(L(n)||(n=q(n)),!F(e))throw new TypeError;L(n)||(n=q(n));var i=at(e,n,!1);return!L(i)&&i.OrdinaryDeleteMetadata(t,e,n)}function T(t,e){for(var n=t.length-1;n>=0;--n){var i=(0,t[n])(e);if(!L(i)&&!N(i)){if(!G(i))throw new TypeError;e=i}}return e}function R(t,e,n,i){for(var r=t.length-1;r>=0;--r){var o=(0,t[r])(e,n,i);if(!L(o)&&!N(o)){if(!F(o))throw new TypeError;i=o}}return i}function k(t,e,n){if(j(t,e,n))return!0;var i=nt(e);return!N(i)&&k(t,i,n)}function j(t,e,n){var i=at(e,n,!1);return!L(i)&&z(i.OrdinaryHasOwnMetadata(t,e,n))}function I(t,e,n){if(j(t,e,n))return O(t,e,n);var i=nt(e);return N(i)?void 0:I(t,i,n)}function O(t,e,n){var i=at(e,n,!1);if(!L(i))return i.OrdinaryGetOwnMetadata(t,e,n)}function M(t,e,n,i){at(n,i,!0).OrdinaryDefineOwnMetadata(t,e,n,i)}function B(t,e){var n=D(t,e),i=nt(t);if(null===i)return n;var r=B(i,e);if(r.length<=0)return n;if(n.length<=0)return r;for(var o=new h,s=[],a=0,c=n;a<c.length;a++){var u=c[a];o.has(u)||(o.add(u),s.push(u))}for(var l=0,d=r;l<d.length;l++){u=d[l];o.has(u)||(o.add(u),s.push(u))}return s}function D(t,e){var n=at(t,e,!1);return n?n.OrdinaryOwnMetadataKeys(t,e):[]}function _(t){if(null===t)return 1;switch(typeof t){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function L(t){return void 0===t}function N(t){return null===t}function V(t){return"symbol"===typeof t}function F(t){return"object"===typeof t?null!==t:"function"===typeof t}function U(t,e){switch(_(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var n=3===e?"string":5===e?"number":"default",i=Z(t,r);if(void 0!==i){var o=i.call(t,n);if(F(o))throw new TypeError;return o}return $(t,"default"===n?"number":n)}function $(t,e){if("string"===e){var n=t.toString;if(H(n))if(!F(r=n.call(t)))return r;if(H(i=t.valueOf))if(!F(r=i.call(t)))return r}else{var i;if(H(i=t.valueOf))if(!F(r=i.call(t)))return r;var r,o=t.toString;if(H(o))if(!F(r=o.call(t)))return r}throw new TypeError}function z(t){return!!t}function W(t){return""+t}function q(t){var e=U(t,3);return V(e)?e:W(e)}function K(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function H(t){return"function"===typeof t}function G(t){return"function"===typeof t}function X(t){switch(_(t)){case 3:case 4:return!0;default:return!1}}function Y(t,e){return t===e||t!==t&&e!==e}function Z(t,e){var n=t[e];if(void 0!==n&&null!==n){if(!H(n))throw new TypeError;return n}}function J(t){var e=Z(t,o);if(!H(e))throw new TypeError;var n=e.call(t);if(!F(n))throw new TypeError;return n}function Q(t){return t.value}function tt(t){var e=t.next();return!e.done&&e}function et(t){var e=t.return;e&&e.call(t)}function nt(t){var e=Object.getPrototypeOf(t);if("function"!==typeof t||t===l)return e;if(e!==l)return e;var n=t.prototype,i=n&&Object.getPrototypeOf(n);if(null==i||i===Object.prototype)return e;var r=i.constructor;return"function"!==typeof r||r===t?e:r}function it(){var t,n,i,r;L(p)||"undefined"===typeof e.Reflect||p in e.Reflect||"function"!==typeof e.Reflect.defineMetadata||(t=st(e.Reflect));var o=new f,s={registerProvider:a,getProvider:u,setProvider:m};return s;function a(e){if(!Object.isExtensible(s))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case t===e:break;case L(n):n=e;break;case n===e:break;case L(i):i=e;break;case i===e:break;default:void 0===r&&(r=new h),r.add(e)}}function c(e,o){if(!L(n)){if(n.isProviderFor(e,o))return n;if(!L(i)){if(i.isProviderFor(e,o))return n;if(!L(r))for(var s=J(r);;){var a=tt(s);if(!a)return;var c=Q(a);if(c.isProviderFor(e,o))return et(s),c}}}if(!L(t)&&t.isProviderFor(e,o))return t}function u(t,e){var n,i=o.get(t);return L(i)||(n=i.get(e)),L(n)?(L(n=c(t,e))||(L(i)&&(i=new d,o.set(t,i)),i.set(e,n)),n):n}function l(t){if(L(t))throw new TypeError;return n===t||i===t||!L(r)&&r.has(t)}function m(t,e,n){if(!l(n))throw new Error("Metadata provider not registered.");var i=u(t,e);if(i!==n){if(!L(i))return!1;var r=o.get(t);L(r)&&(r=new d,o.set(t,r)),r.set(e,n)}return!0}}function rt(){var t;return!L(p)&&F(e.Reflect)&&Object.isExtensible(e.Reflect)&&(t=e.Reflect[p]),L(t)&&(t=it()),!L(p)&&F(e.Reflect)&&Object.isExtensible(e.Reflect)&&Object.defineProperty(e.Reflect,p,{enumerable:!1,
1configurable:!1,writable:!1,value:t}),t}function ot(t){var e=new f,n={isProviderFor:function(t,n){var i=e.get(t);return!L(i)&&i.has(n)},OrdinaryDefineOwnMetadata:s,OrdinaryHasOwnMetadata:r,OrdinaryGetOwnMetadata:o,OrdinaryOwnMetadataKeys:a,OrdinaryDeleteMetadata:c};return m.registerProvider(n),n;function i(i,r,o){var s=e.get(i),a=!1;if(L(s)){if(!o)return;s=new d,e.set(i,s),a=!0}var c=s.get(r);if(L(c)){if(!o)return;if(c=new d,s.set(r,c),!t.setProvider(i,r,n))throw s.delete(r),a&&e.delete(i),new Error("Wrong provider for target.")}return c}function r(t,e,n){var r=i(e,n,!1);return!L(r)&&z(r.has(t))}function o(t,e,n){var r=i(e,n,!1);if(!L(r))return r.get(t)}function s(t,e,n,r){i(n,r,!0).set(t,e)}function a(t,e){var n=[],r=i(t,e,!1);if(L(r))return n;for(var o=J(r.keys()),s=0;;){var a=tt(o);if(!a)return n.length=s,n;var c=Q(a);try{n[s]=c}catch(u){try{et(o)}finally{throw u}}s++}}function c(t,n,r){var o=i(n,r,!1);if(L(o))return!1;if(!o.delete(t))return!1;if(0===o.size){var s=e.get(n);L(s)||(s.delete(r),0===s.size&&e.delete(s))}return!0}}function st(t){var e=t.defineMetadata,n=t.hasOwnMetadata,i=t.getOwnMetadata,r=t.getOwnMetadataKeys,o=t.deleteMetadata,s=new f;return{isProviderFor:function(t,e){var n=s.get(t);return!(L(n)||!n.has(e))||!!r(t,e).length&&(L(n)&&(n=new h,s.set(t,n)),n.add(e),!0)},OrdinaryDefineOwnMetadata:e,OrdinaryHasOwnMetadata:n,OrdinaryGetOwnMetadata:i,OrdinaryOwnMetadataKeys:r,OrdinaryDeleteMetadata:o}}function at(t,e,n){var i=m.getProvider(t,e);if(!L(i))return i;if(n){if(m.setProvider(t,e,v))return v;throw new Error("Illegal state.")}}function ct(){var t={},e=[],n=function(){function t(t,e,n){this._index=0,this._keys=t,this._values=e,this._selector=n}return t.prototype["@@iterator"]=function(){return this},t.prototype[o]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t<this._keys.length){var n=this._selector(this._keys[t],this._values[t]);return t+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var n=this._find(t,!0);return this._values[n]=e,this},e.prototype.delete=function(e){var n=this._find(e,!1);if(n>=0){for(var i=this._keys.length,r=n+1;r<i;r++)this._keys[r-1]=this._keys[r],this._values[r-1]=this._values[r];return this._keys.length--,this._values.length--,Y(e,this._cacheKey)&&(this._cacheKey=t,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=t,this._cacheIndex=-2},e.prototype.keys=function(){return new n(this._keys,this._values,i)},e.prototype.values=function(){return new n(this._keys,this._values,r)},e.prototype.entries=function(){return new n(this._keys,this._values,s)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[o]=function(){return this.entries()},e.prototype._find=function(t,e){if(!Y(this._cacheKey,t)){this._cacheIndex=-1;for(var n=0;n<this._keys.length;n++)if(Y(this._keys[n],t)){this._cacheIndex=n;break}}return this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();function i(t,e){return t}function r(t,e){return e}function s(t,e){return[t,e]}}function ut(){return function(){function t(){this._map=new d}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.keys()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[o]=function(){return this.keys()},t}()}function lt(){var t=16,e=u.create(),i=r();return function(){function t(){this._key=r()}return t.prototype.has=function(t){var e=o(t,!1);return void 0!==e&&u.has(e,this._key)},t.prototype.get=function(t){var e=o(t,!1);return void 0!==e?u.get(e,this._key):void 0},t.prototype.set=function(t,e){return o(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=o(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=r()},t}();function r(){var t;do{t="@@WeakMap@@"+c()}while(u.has(e,t));return e[t]=!0,t}function o(t,e){if(!n.call(t,i)){if(!e)return;Object.defineProperty(t,i,{value:u.create()})}return t[i]}function s(t,e){for(var n=0;n<e;++n)t[n]=255*Math.random()|0;return t}function a(t){if("function"===typeof Uint8Array){var e=new Uint8Array(t);return"undefined"!==typeof crypto?crypto.getRandomValues(e):"undefined"!==typeof msCrypto?msCrypto.getRandomValues(e):s(e,t),e}return s(new Array(t),t)}function c(){var e=a(t);e[6]=79&e[6]|64,e[8]=191&e[8]|128;for(var n="",i=0;i<t;++i){var r=e[i];4!==i&&6!==i&&8!==i||(n+="-"),r<16&&(n+="0"),n+=r.toString(16).toLowerCase()}return n}}function dt(t){return t.__=void 0,delete t.__,t}t("decorate",g),t("metadata",y),t("defineMetadata",w),t("hasMetadata",b),t("hasOwnMetadata",x),t("getMetadata",S),t("getOwnMetadata",P),t("getMetadataKeys",C),t("getOwnMetadataKeys",E),t("deleteMetadata",A)}(r,i),"undefined"===typeof i.Reflect&&(i.Reflect=t)}()}(i||(i={}))},55710:function(t,e,n){"use strict";n.d(e,{x:function(){return i}});const i=(0,n(54033).m)("div");i.displayName="Box"},55899:function(t,e,n){"use strict";n.d(e,{x:function(){return V}});var i=n(88815),r=n(41726),o=n(96878),s=n(29723),a=n(2441),c=n(93492);const u="chakra-ui-light",l="chakra-ui-dark";const d="chakra-ui-color-mode";const h=(f=d,{ssr:!1,type:"localStorage",get(t){if(!globalThis?.document)return t;let e;try{e=localStorage.getItem(f)||t}catch(n){}return e||t},set(t){try{localStorage.setItem(f,t)}catch(e){}}});var f;function p(t,e){const n=t.match(new RegExp(`(^| )${e}=([^;]+)`));return n?.[2]}function m(t,e){return{ssr:!!e,type:"cookie",get:n=>e?p(e,t):globalThis?.document&&p(document.cookie,t)||n,set(e){document.cookie=`${t}=${e}; max-age=31536000; path=/`}}}m(d);const v=()=>{},g=(0,o.jU)()?a.useLayoutEffect:a.useEffect;function y(t,e){return"cookie"===t.type&&t.ssr?t.get(e):e}const w=function(t){const{value:e,children:n,options:{useSystemColorMode:i,initialColorMode:o,disableTransitionOnChange:d}={},colorModeManager:f=h}=t,p=(0,s._)(),m="dark"===o?"dark":"light",[w,b]=(0,a.useState)((()=>y(f,m))),[x,S]=(0,a.useState)((()=>y(f))),{getSystemTheme:P,setClassName:C,setDataset:E,addListener:A}=(0,a.useMemo)((()=>function(t={}){const{preventTransition:e=!0,nonce:n}=t,i={setDataset:t=>{const n=e?i.preventTransition():void 0;document.documentElement.dataset.theme=t,document.documentElement.style.colorScheme=t,n?.()},setClassName(t){document.body.classList.add(t?l:u),document.body.classList.remove(t?u:l)},query:()=>window.matchMedia("(prefers-color-scheme: dark)"),getSystemTheme:t=>i.query().matches??"dark"===t?"dark":"light",addListener(t){const e=i.query(),n=e=>
1{t(e.matches?"dark":"light")};return"function"===typeof e.addListener?e.addListener(n):e.addEventListener("change",n),()=>{"function"===typeof e.removeListener?e.removeListener(n):e.removeEventListener("change",n)}},preventTransition(){const t=document.createElement("style");return t.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),void 0!==n&&(t.nonce=n),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),requestAnimationFrame((()=>{requestAnimationFrame((()=>{document.head.removeChild(t)}))}))}}};return i}({preventTransition:d,nonce:p?.nonce})),[d,p?.nonce]),T="system"!==o||w?w:x,R=(0,a.useCallback)((t=>{const e="system"===t?P():t;b(e),C("dark"===e),E(e),f.set(e)}),[f,P,C,E]);g((()=>{"system"===o&&S(P())}),[]),(0,a.useEffect)((()=>{const t=f.get();R(t||("system"!==o?m:"system"))}),[f,m,o,R]);const k=(0,a.useCallback)((()=>{R("dark"===T?"light":"dark")}),[T,R]);(0,a.useEffect)((()=>{if(i)return A(R)}),[i,A,R]);const j=(0,a.useMemo)((()=>({colorMode:e??T,toggleColorMode:e?v:k,setColorMode:e?v:R,forced:void 0!==e})),[T,k,R,e]);return(0,r.jsx)(c.kc.Provider,{value:j,children:n})};w.displayName="ColorModeProvider";var b=n(25791);const x=String.raw,S=x`
2  :root,
3  :host {
4    --chakra-vh: 100vh;
5  }
6
7  @supports (height: -webkit-fill-available) {
8    :root,
9    :host {
10      --chakra-vh: -webkit-fill-available;
11    }
12  }
13
14  @supports (height: -moz-fill-available) {
15    :root,
16    :host {
17      --chakra-vh: -moz-fill-available;
18    }
19  }
20
21  @supports (height: 100dvh) {
22    :root,
23    :host {
24      --chakra-vh: 100dvh;
25    }
26  }
27`,P=()=>(0,r.jsx)(b.xB,{styles:S}),C=({scope:t=""})=>(0,r.jsx)(b.xB,{styles:x`
28      html {
29        line-height: 1.5;
30        -webkit-text-size-adjust: 100%;
31        font-family: system-ui, sans-serif;
32        -webkit-font-smoothing: antialiased;
33        text-rendering: optimizeLegibility;
34        -moz-osx-font-smoothing: grayscale;
35        touch-action: manipulation;
36      }
37
38      body {
39        position: relative;
40        min-height: 100%;
41        margin: 0;
42        font-feature-settings: "kern";
43      }
44
45      ${t} :where(*, *::before, *::after) {
46        border-width: 0;
47        border-style: solid;
48        box-sizing: border-box;
49        word-wrap: break-word;
50      }
51
52      main {
53        display: block;
54      }
55
56      ${t} hr {
57        border-top-width: 1px;
58        box-sizing: content-box;
59        height: 0;
60        overflow: visible;
61      }
62
63      ${t} :where(pre, code, kbd,samp) {
64        font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
65        font-size: 1em;
66      }
67
68      ${t} a {
69        background-color: transparent;
70        color: inherit;
71        text-decoration: inherit;
72      }
73
74      ${t} abbr[title] {
75        border-bottom: none;
76        text-decoration: underline;
77        -webkit-text-decoration: underline dotted;
78        text-decoration: underline dotted;
79      }
80
81      ${t} :where(b, strong) {
82        font-weight: bold;
83      }
84
85      ${t} small {
86        font-size: 80%;
87      }
88
89      ${t} :where(sub,sup) {
90        font-size: 75%;
91        line-height: 0;
92        position: relative;
93        vertical-align: baseline;
94      }
95
96      ${t} sub {
97        bottom: -0.25em;
98      }
99
100      ${t} sup {
101        top: -0.5em;
102      }
103
104      ${t} img {
105        border-style: none;
106      }
107
108      ${t} :where(button, input, optgroup, select, textarea) {
109        font-family: inherit;
110        font-size: 100%;
111        line-height: 1.15;
112        margin: 0;
113      }
114
115      ${t} :where(button, input) {
116        overflow: visible;
117      }
118
119      ${t} :where(button, select) {
120        text-transform: none;
121      }
122
123      ${t} :where(
124          button::-moz-focus-inner,
125          [type="button"]::-moz-focus-inner,
126          [type="reset"]::-moz-focus-inner,
127          [type="submit"]::-moz-focus-inner
128        ) {
129        border-style: none;
130        padding: 0;
131      }
132
133      ${t} fieldset {
134        padding: 0.35em 0.75em 0.625em;
135      }
136
137      ${t} legend {
138        box-sizing: border-box;
139        color: inherit;
140        display: table;
141        max-width: 100%;
142        padding: 0;
143        white-space: normal;
144      }
145
146      ${t} progress {
147        vertical-align: baseline;
148      }
149
150      ${t} textarea {
151        overflow: auto;
152      }
153
154      ${t}
154 :where([type="checkbox"], [type="radio"]) {
155        box-sizing: border-box;
156        padding: 0;
157      }
158
159      ${t} input[type="number"]::-webkit-inner-spin-button,
160      ${t} input[type="number"]::-webkit-outer-spin-button {
161        -webkit-appearance: none !important;
162      }
163
164      ${t} input[type="number"] {
165        -moz-appearance: textfield;
166      }
167
168      ${t} input[type="search"] {
169        -webkit-appearance: textfield;
170        outline-offset: -2px;
171      }
172
173      ${t} input[type="search"]::-webkit-search-decoration {
174        -webkit-appearance: none !important;
175      }
176
177      ${t} ::-webkit-file-upload-button {
178        -webkit-appearance: button;
179        font: inherit;
180      }
181
182      ${t} details {
183        display: block;
184      }
185
186      ${t} summary {
187        display: list-item;
188      }
189
190      template {
191        display: none;
192      }
193
194      [hidden] {
195        display: none !important;
196      }
197
198      ${t} :where(
199          blockquote,
200          dl,
201          dd,
202          h1,
203          h2,
204          h3,
205          h4,
206          h5,
207          h6,
208          hr,
209          figure,
210          p,
211          pre
212        ) {
213        margin: 0;
214      }
215
216      ${t} button {
217        background: transparent;
218        padding: 0;
219      }
220
221      ${t} fieldset {
222        margin: 0;
223        padding: 0;
224      }
225
226      ${t} :where(ol, ul) {
227        margin: 0;
228        padding: 0;
229      }
230
231      ${t} textarea {
232        resize: vertical;
233      }
234
235      ${t} :where(button, [role="button"]) {
236        cursor: pointer;
237      }
238
239      ${t} button::-moz-focus-inner {
240        border: 0 !important;
241      }
242
243      ${t} table {
244        border-collapse: collapse;
245      }
246
247      ${t} :where(h1, h2, h3, h4, h5, h6) {
248        font-size: inherit;
249        font-weight: inherit;
250      }
251
252      ${t} :where(button, input, optgroup, select, textarea) {
253        padding: 0;
254        line-height: inherit;
255        color: inherit;
256      }
257
258      ${t} :where(img, svg, video, canvas, audio, iframe, embed, object) {
259        display: block;
260      }
261
262      ${t} :where(img, video) {
263        max-width: 100%;
264        height: auto;
265      }
266
267      [data-js-focus-visible]
268        :focus:not([data-focus-visible-added]):not(
269          [data-focus-visible-disabled]
270        ) {
271        outline: none;
272        box-shadow: none;
273      }
274
275      ${t} select::-ms-expand {
276        display: none;
277      }
278
279      ${S}
280    `});var E=n(99570),A=n(26098),T=n(54809),R=n(51452),k=n(61054);function j(t){const{cssVarsRoot:e,theme:n,children:i}=t,o=(0,a.useMemo)((()=>(0,E.c)(n)),[n]);return(0,r.jsxs)(s.a,{theme:o,children:[(0,r.jsx)(I,{root:e}),i]})}function I({root:t=":host, :root"}){const e=[t,"[data-theme]"].join(",");return(0,r.jsx)(b.xB,{styles:t=>({[e]:t.__cssVars})})}const[O,M]=(0,T.k)({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function B(){const{colorMode:t}=(0,c.If)();return(0,r.jsx)(b.xB,{styles:e=>{const n=(0,R.W)(e,"styles.global"),i=(0,k.P)(n,{theme:e,colorMode:t});if(!i)return;return(0,A.i)(i)(e)}})}var D=n(31710),_=n(39272);const L=t=>{const{children:e,colorModeManager:n,portalZIndex:i,resetScope:o,resetCSS:s=!0,theme:a={},environment:c,cssVarsRoot:u,disableEnvironment:l,disableGlobalStyle:d}=t,h=(0,r.jsx)(_.u,{environment:c,disabled:l,children:e});return(0,r.jsx)(j,{theme:a,cssVarsRoot:u,children:(0,r.jsxs)(w,{colorModeManager:n,options:a.config,children:[s?(0,r.jsx)(C,{scope:o}):(0,r.jsx)(P,{}),!d&&(0,r.jsx)(B,{}),i?(0,r.jsx)(D.h,{zIndex:i,children:h}):h]})})};var N=n(94986);const V=(F=i.rS,function({children:t,theme:e=F,toastOptions:n,...i}){return(0,r.jsxs)(L,{theme:e,...i,children:[(0,r.jsx)(N.Qi,{value:n?.defaultOptions,children:t}),(0,r.jsx)(N.VW,{...n})]})});var F},93492:function(t,e,n){"use strict";n.d(e,{If:function(){return o},kc:function(){return r}});var i=n(2441);const r=(0,i.createContext)({});function o(){const t=(0,i.useContext)(r);if(void 0===t)throw new Error("useColorMode must be used within a ColorModeProvider");return t}r.displayName="ColorModeContext"},39272:function(t,e,n){"use strict";n.d(e,{O:function(){return a},u:function(){return c}});var i=n(41726),r=n(94367),o=n(2441);const s=(0,o.createContext)({getDocument:()=>document,getWindow:()=>window});function a({defer:t}={}){const[,e]=(0,o.useReducer)((t=>
280t+1),0);return(0,r.G)((()=>{t&&e()}),[t]),(0,o.useContext)(s)}function c(t){const{children:e,environment:n,disabled:r}=t,a=(0,o.useRef)(null),c=(0,o.useMemo)((()=>n||{getDocument:()=>a.current?.ownerDocument??document,getWindow:()=>a.current?.ownerDocument.defaultView??window}),[n]),u=!r||!n;return(0,i.jsxs)(s.Provider,{value:c,children:[e,u&&(0,i.jsx)("span",{id:"__chakra_env",hidden:!0,ref:a})]})}s.displayName="EnvironmentContext",c.displayName="EnvironmentProvider"},45975:function(t,e,n){"use strict";n.d(e,{B1:function(){return u}});var i=n(17561),r=n(88815),o=n(42371),s=n(52285);function a(t){return"function"===typeof t}const c=t=>function(...e){let n=[...e],r=e[e.length-1];return(0,i.g)(r)&&n.length>1?n=n.slice(0,n.length-1):r=t,function(...t){return e=>t.reduce(((t,e)=>e(t)),e)}(...n.map((t=>e=>a(t)?t(e):function(...t){return o({},...t,l)}(e,t))))(r)},u=c(r.rS);c(r.wE);function l(t,e,n,i){return(a(t)||a(e))&&Object.prototype.hasOwnProperty.call(i,n)?(...n)=>{const i=a(t)?t(...n):t,r=a(e)?e(...n):e;return o({},i,r,l)}:(0,s.Kn)(t)&&(0,s.kJ)(e)||(0,s.kJ)(t)&&(0,s.Kn)(e)?e:void 0}},37555:function(t,e,n){"use strict";n.d(e,{S:function(){return u}});var i=n(52285),r=n(21786);var o=n(2441),s=n(39272);var a=n(51218);function c(t){const e=(0,i.Kn)(t)?t:{fallback:t??"base"},n=(0,a.F)().__breakpoints.details.map((({minMaxQuery:t,breakpoint:e})=>({breakpoint:e,query:t.replace("@media screen and ","")}))),r=n.map((t=>t.breakpoint===e.fallback)),c=function(t,e={}){const{ssr:n=!0,fallback:i}=e,{getWindow:r}=(0,s.O)(),a=Array.isArray(t)?t:[t];let c=Array.isArray(i)?i:[i];c=c.filter((t=>null!=t));const[u,l]=(0,o.useState)((()=>a.map(((t,e)=>({media:t,matches:n?!!c[e]:r().matchMedia(t).matches})))));return(0,o.useEffect)((()=>{const t=r();l(a.map((e=>({media:e,matches:t.matchMedia(e).matches}))));const e=a.map((e=>t.matchMedia(e))),n=t=>{l((e=>e.slice().map((e=>e.media===t.media?{...e,matches:t.matches}:e))))};return e.forEach((t=>{"function"===typeof t.addListener?t.addListener(n):t.addEventListener("change",n)})),()=>{e.forEach((t=>{"function"===typeof t.removeListener?t.removeListener(n):t.removeEventListener("change",n)}))}}),[r]),u.map((t=>t.matches))}(n.map((t=>t.query)),{fallback:r,ssr:e.ssr}),u=c.findIndex((t=>1==t));return n[u]?.breakpoint??e.fallback}function u(t,e){const n=c((0,i.Kn)(e)?e:{fallback:e??"base"}),o=(0,a.F)();if(!n)return;const s=Array.from(o.__breakpoints?.keys||[]);return function(t,e,n=r.AV){let i=Object.keys(t).indexOf(e);if(-1!==i)return t[e];let o=n.indexOf(e);for(;o>=0;){const e=n[o];if(t.hasOwnProperty(e)){i=o;break}o-=1}if(-1!==i)return t[n[i]]}(Array.isArray(t)?Object.fromEntries(Object.entries((0,r.Yq)(t,s)).map((([t,e])=>[t,e]))):t,n,s)}},31710:function(t,e,n){"use strict";n.d(e,{L:function(){return s},h:function(){return a}});var i=n(41726),r=n(54809);const[o,s]=(0,r.k)({strict:!1,name:"PortalManagerContext"});function a(t){const{children:e,zIndex:n}=t;return(0,i.jsx)(o,{value:{zIndex:n},children:e})}a.displayName="PortalManager"},70781:function(t,e,n){"use strict";n.d(e,{h:function(){return m}});var i=n(41726),r=n(94367),o=n(54809),s=n(2441),a=n(15044),c=n(31710);const[u,l]=(0,o.k)({strict:!1,name:"PortalContext"}),d="chakra-portal",h=t=>(0,i.jsx)("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:t.zIndex,top:0,left:0,right:0},children:t.children}),f=t=>{const{appendToParentPortal:e,children:n}=t,[o,f]=(0,s.useState)(null),p=(0,s.useRef)(null),[,m]=(0,s.useState)({});(0,s.useEffect)((()=>m({})),[]);const v=l(),g=(0,c.L)();(0,r.G)((()=>{if(!o)return;const t=o.ownerDocument,n=e?v??t.body:t.body;if(!n)return;p.current=t.createElement("div"),p.current.className=d,n.appendChild(p.current),m({});const i=p.current;return()=>{n.contains(i)&&n.removeChild(i)}}),[o]);const y=g?.zIndex?(0,i.jsx)(h,{zIndex:g?.zIndex,children:n}):n;return p.current?(0,a.createPortal)((0,i.jsx)(u,{value:p.current,children:y}),p.current):(0,i.jsx)("span",{ref:t=>{t&&f(t)}})},p=t=>{const{children:e,containerRef:n,appendToParentPortal:o}=t,c=n.current,l=c??("undefined"!==typeof window?document.body:void 0),h=(0,s.useMemo)((()=>{const t=c?.ownerDocument.createElement("div");return t&&(t.className=d),t}
280),[c]),[,f]=(0,s.useState)({});return(0,r.G)((()=>f({})),[]),(0,r.G)((()=>{if(h&&l)return l.appendChild(h),()=>{l.removeChild(h)}}),[h,l]),l&&h?(0,a.createPortal)((0,i.jsx)(u,{value:o?h:null,children:e}),h):null};function m(t){const e={appendToParentPortal:!0,...t},{containerRef:n,...r}=e;return n?(0,i.jsx)(p,{containerRef:n,...r}):(0,i.jsx)(f,{...r})}m.className=d,m.selector=".chakra-portal",m.displayName="Portal"},67420:function(t,e,n){"use strict";n.d(e,{U:function(){return o}});var i=n(41726),r=n(45347);const o=(0,n(78971).G)(((t,e)=>(0,i.jsx)(r.K,{align:"center",...t,direction:"row",ref:e})));o.displayName="HStack"},45347:function(t,e,n){"use strict";n.d(e,{K:function(){return l}});var i=n(41726),r=n(9965),o=n(48168),s=n(2441),a=n(54033);const c=t=>(0,i.jsx)(a.m.div,{className:"chakra-stack__item",...t,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...t.__css}});c.displayName="StackItem";var u=n(21786);const l=(0,n(78971).G)(((t,e)=>{const{isInline:n,direction:l,align:d,justify:h,spacing:f="0.5rem",wrap:p,children:m,divider:v,className:g,shouldWrapChildren:y,...w}=t,b=n?"row":l??"column",x=(0,s.useMemo)((()=>function(t){const{spacing:e,direction:n}=t,i={column:{my:e,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:e,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:e,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:e,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":(0,u.XQ)(n,(t=>i[t]))}}({spacing:f,direction:b})),[f,b]),S=!!v,P=!y&&!S,C=(0,s.useMemo)((()=>{const t=(0,r.W)(m);return P?t:t.map(((e,n)=>{const r="undefined"!==typeof e.key?e.key:n,o=n+1===t.length,a=y?(0,i.jsx)(c,{children:e},r):e;if(!S)return a;const u=(0,s.cloneElement)(v,{__css:x}),l=o?null:u;return(0,i.jsxs)(s.Fragment,{children:[a,l]},r)}))}),[v,x,S,P,y,m]),E=(0,o.cx)("chakra-stack",g);return(0,i.jsx)(a.m.div,{ref:e,display:"flex",alignItems:d,justifyContent:h,flexDirection:b,flexWrap:p,gap:S?void 0:f,className:E,...w,children:C})}));l.displayName="Stack"},93720:function(t,e,n){"use strict";n.d(e,{g:function(){return o}});var i=n(41726),r=n(45347);const o=(0,n(78971).G)(((t,e)=>(0,i.jsx)(r.K,{align:"center",...t,direction:"column",ref:e})));o.displayName="VStack"},54033:function(t,e,n){"use strict";n.d(e,{m:function(){return R}});var i=n(82042),r=n(26098),o=n(62043),s=n(1221),a=n(61054),c=n(68669),u=n(18732),l=n(69166),d=n(29723),h=n(55884),f=n(42581),p=n(64223),m=n(2441),v=n(78795),g=v.Z,y=function(t){return"theme"!==t},w=function(t){return"string"===typeof t&&t.charCodeAt(0)>96?g:y},b=function(t,e,n){var i;if(e){var r=e.shouldForwardProp;i=t.__emotion_forwardProp&&r?function(e){return t.__emotion_forwardProp(e)&&r(e)}:r}return"function"!==typeof i&&n&&(i=t.__emotion_forwardProp),i},x=function(t){var e=t.cache,n=t.serialized,i=t.isStringTag;return(0,p.hC)(e,n,i),(0,f.L)((function(){return(0,p.My)(e,n,i)})),null},S=function t(e,n){var i,r,o=e.__emotion_real===e,s=o&&e.__emotion_base||e;void 0!==n&&(i=n.label,r=n.target);var a=b(e,n,o),c=a||w(s),u=!c("as");return function(){var f=arguments,v=o&&void 0!==e.__emotion_styles?e.__emotion_styles.slice(0):[];if(void 0!==i&&v.push("label:"+i+";"),null==f[0]||void 0===f[0].raw)v.push.apply(v,f);else{var g=f[0];v.push(g[0]);for(var y=f.length,S=1;S<y;S++)v.push(f[S],g[S])}var P=(0,d.w)((function(t,e,n){var i=u&&t.as||s,o="",l=[],f=t;if(null==t.theme){for(var g in f={},t)f[g]=t[g];f.theme=m.useContext(d.T)}"string"===typeof t.className?o=(0,p.fp)(e.registered,l,t.className):null!=t.className&&(o=t.className+" ");var y=(0,h.O)(v.concat(l),e.registered,f);o+=e.key+"-"+y.name,void 0!==r&&(o+=" "+r);var b=u&&void 0===a?w(i):c,S={};for(var P in t)u&&"as"===P||b(P)&&(S[P]=t[P]);return S.className=o,n&&(S.ref=n),m.createElement(m.Fragment,null,m.createElement(x,{cache:e,serialized:y,isStringTag:"string"===typeof i}),m.createElement(i,S))}));return P.displayName=void 0!==i?i:"Styled("+("string"===typeof s?s:s.displayName||s.name||"Component")+")",P.defaultProps=e.defaultProps,P.__emotion_real=P,P.__emotion_base=s,P.__emotion_styles=v,P.__emotion_forwardProp=a,Object.defineProperty(P,"toString",{value:function(){return"."+r}}),P.withComponent=function(e,i){return t(e,(0,l.Z)({},n,i,{shouldForwardProp:b(P,i,!0)})).apply(void 0,v)},P}}.bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(t){S[t]=S(t)}));var P=n(60599),C=n(93492);const E=(0,o.X)(S),A=({baseStyle:t})=>e=>
280{const{theme:n,css:o,__css:l,sx:d,...h}=e,[f]=(0,s.e)(h,i.ZR),p=(0,a.P)(t,e),m=(0,c.V)({},l,p,(0,u.o)(f),d),v=(0,r.i)(m)(e.theme);return o?[v,o]:v};function T(t,e){const{baseStyle:n,...i}=e??{};i.shouldForwardProp||(i.shouldForwardProp=P.x);const r=A({baseStyle:n}),o=E(t,i)(r);return(0,m.forwardRef)((function(t,e){const{children:n,...i}=t,{colorMode:r,forced:s}=(0,C.If)(),a=s?r:void 0;return(0,m.createElement)(o,{ref:e,"data-theme":a,...i},n)}))}const R=function(){const t=new Map;return new Proxy(T,{apply:(t,e,n)=>T(...n),get:(e,n)=>(t.has(n)||t.set(n,T(n)),t.get(n))})}()},78971:function(t,e,n){"use strict";n.d(e,{G:function(){return r}});var i=n(2441);function r(t){return(0,i.forwardRef)(t)}},42367:function(t,e,n){"use strict";n.d(e,{uP:function(){return o}});var i=n(51218),r=n(93492);function o(){return{...(0,r.If)(),theme:(0,i.F)()}}},60599:function(t,e,n){"use strict";n.d(e,{x:function(){return s}});var i=n(82042);const r=new Set([...i.cC,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),o=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function s(t){return(o.has(t)||!r.has(t))&&"_"!==t[0]}},56691:function(t,e,n){"use strict";n.d(e,{j:function(){return f},m:function(){return h}});var i=n(98045),r=n(51452),o=n(42371),s=n(18732),a=n(87416),c=n(2441),u=n(96268),l=n(42367);function d(t,e={}){const{styleConfig:n,...d}=e,{theme:h,colorMode:f}=(0,l.uP)(),p=t?(0,r.W)(h,`components.${t}`):void 0,m=n||p,v=o({theme:h,colorMode:f},m?.defaultProps??{},(0,s.o)((0,a.C)(d,["children"])),((t,e)=>t?void 0:e)),g=(0,c.useRef)({});if(m){const t=(0,i.U)(m)(v);u(g.current,t)||(g.current=t)}return g.current}function h(t,e={}){return d(t,e)}function f(t,e={}){return d(t,e)}},51218:function(t,e,n){"use strict";n.d(e,{F:function(){return o}});var i=n(29723),r=n(2441);function o(){const t=(0,r.useContext)(i.T);if(!t)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return t}},97664:function(t,e,n){"use strict";n.d(e,{C:function(){return R}});var i=n(41726),r=n(27874),o=n(19610),s=n(48168),a=n(54809),c=n(78971),u=n(56691),l=n(54033);const d={path:(0,i.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.5",children:[(0,i.jsx)("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),(0,i.jsx)("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),(0,i.jsx)("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},h=(0,c.G)(((t,e)=>{const{as:n,viewBox:r,color:o="currentColor",focusable:a=!1,children:c,className:h,__css:f,...p}=t,m={ref:e,focusable:a,className:(0,s.cx)("chakra-icon",h),__css:{w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...f,...(0,u.m)("Icon",t)}},v=r??d.viewBox;if(n&&"string"!==typeof n)return(0,i.jsx)(l.m.svg,{as:n,...m,...p});const g=c??d.path;return(0,i.jsx)(l.m.svg,{verticalAlign:"middle",viewBox:v,...m,...p,children:g})}));function f(t){return(0,i.jsx)(h,{viewBox:"0 0 24 24",...t,children:(0,i.jsx)("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}h.displayName="Icon";const p=(0,n(25791).F4)({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),m=(0,c.G)(((t,e)=>{const n=(0,u.m)("Spinner",t),{label:o="Loading...",thickness:a="2px",speed:c="0.45s",emptyColor:d="transparent",className:h,...f}=(0,r.L)(t),m=(0,s.cx)("chakra-spinner",h),v={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:a,borderBottomColor:d,borderLeftColor:d,animation:`${p} ${c} linear infinite`,...n};return(0,i.jsx)(l.m.div,{ref:e,__css:v,className:m,...f,children:o&&(0,i.jsx)(l.m.span,{srOnly:!0,children:o})})}));m.displayName="Spinner";const[v,g]=(0,a.k)({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[y,w]=(0,a.k)({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),b={info:{icon:function(t){return(0,i.jsx)(h,{viewBox:"0 0 24 24",...t,children:(0,i.jsx)("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})},colorScheme:"blue"},warning:{icon:f,colorScheme:"orange"},success:{icon:function(t){return(0,i.jsx)(h,{viewBox:"0 0 24 24",...t,children:(0,i.jsx)("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,
2801.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})},colorScheme:"green"},error:{icon:f,colorScheme:"red"},loading:{icon:m,colorScheme:"blue"}};const x=(0,c.G)((function(t,e){const{status:n="info",addRole:a=!0,...c}=(0,r.L)(t),d=t.colorScheme??function(t){return b[t].colorScheme}(n),h=(0,u.j)("Alert",{...t,colorScheme:d}),f=(0,o.k0)({width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...h.container});return(0,i.jsx)(v,{value:{status:n},children:(0,i.jsx)(y,{value:h,children:(0,i.jsx)(l.m.div,{"data-status":n,role:a?"alert":void 0,ref:e,...c,className:(0,s.cx)("chakra-alert",t.className),__css:f})})})}));function S(t){const{status:e}=g(),n=function(t){return b[t].icon}(e),r=w(),o="loading"===e?r.spinner:r.icon;return(0,i.jsx)(l.m.span,{display:"inherit","data-status":e,...t,className:(0,s.cx)("chakra-alert__icon",t.className),__css:o,children:t.children||(0,i.jsx)(n,{h:"100%",w:"100%"})})}x.displayName="Alert",S.displayName="AlertIcon";const P=(0,c.G)((function(t,e){const n=w(),{status:r}=g();return(0,i.jsx)(l.m.div,{ref:e,"data-status":r,...t,className:(0,s.cx)("chakra-alert__title",t.className),__css:n.title})}));P.displayName="AlertTitle";const C=(0,c.G)((function(t,e){const{status:n}=g(),r=w(),a=(0,o.k0)({display:"inline",...r.description});return(0,i.jsx)(l.m.div,{ref:e,"data-status":n,...t,className:(0,s.cx)("chakra-alert__desc",t.className),__css:a})}));function E(t){return(0,i.jsx)(h,{focusable:"false","aria-hidden":!0,...t,children:(0,i.jsx)("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,
28011.823a.25.25,0,0,1,0,.354Z"})})}C.displayName="AlertDescription";const A=(0,c.G)((function(t,e){const n=(0,u.m)("CloseButton",t),{children:o,isDisabled:s,__css:a,...c}=(0,r.L)(t);return(0,i.jsx)(l.m.button,{type:"button","aria-label":"Close",ref:e,disabled:s,__css:{outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,...n,...a},...c,children:o||(0,i.jsx)(E,{width:"1em",height:"1em"})})}));A.displayName="CloseButton";const T=t=>{const{status:e,variant:n="solid",id:r,title:o,isClosable:s,onClose:a,description:c,colorScheme:u,icon:d}=t,h=r?{root:`toast-${r}`,title:`toast-${r}-title`,description:`toast-${r}-description`}:void 0;return(0,i.jsxs)(x,{addRole:!1,status:e,variant:n,id:h?.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:u,children:[(0,i.jsx)(S,{children:d}),(0,i.jsxs)(l.m.div,{flex:"1",maxWidth:"100%",children:[o&&(0,i.jsx)(P,{id:h?.title,children:o}),c&&(0,i.jsx)(C,{id:h?.description,display:"block",children:c})]}),s&&(0,i.jsx)(A,{size:"sm",onClick:a,position:"absolute",insetEnd:1,top:1})]})};function R(t={}){const{render:e,toastComponent:n=T}=t;return r=>"function"===typeof e?e({...r,...t}):(0,i.jsx)(n,{...r,...t})}},94986:function(t,e,n){"use strict";n.d(e,{Qi:function(){return y},VW:function(){return b},OX:function(){return w}});var i=n(41726),r=n(54809),o=n(47992),s=n(2441),a=n(98901),c=n(19516),u=n(61054),l=n(88060),d=n(74283),h=n(46135),f=n(54033);const p={initial:t=>{const{position:e}=t,n=["top","bottom"].includes(e)?"y":"x";let i=["top-right","bottom-right"].includes(e)?1:-1;return"bottom"===e&&(i=1),{opacity:0,[n]:24*i}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},m=(0,s.memo)((t=>{const{id:e,message:n,onCloseComplete:r,onRequestRemove:o,requestClose:m=!1,position:v="bottom",duration:g=5e3,containerStyle:y,motionVariants:w=p,toastSpacing:b="0.5rem"}=t,[x,S]=(0,s.useState)(g),P=(0,l.hO)();(0,a.r)((()=>{P||r?.()}),[P]),(0,a.r)((()=>{S(g)}),[g]);const C=()=>{P&&o()};(0,s.useEffect)((()=>{P&&m&&o()}),[P,m,o]),(0,c.K)(C,x);const E=(0,s.useMemo)((()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:b,...y})),[y,b]),A=(0,s.useMemo)((()=>(0,h.sv)(v)),[v]);return(0,i.jsx)(d.E.div,{layout:!0,className:"chakra-toast",variants:w,initial:"initial",animate:"animate",exit:"exit",onHoverStart:()=>S(null),onHoverEnd:()=>S(g),custom:{position:v},style:A,children:(0,i.jsx)(f.m.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:E,children:(0,u.P)(n,{id:e,onClose:C})})})}));m.displayName="ToastComponent";var v=n(68249),g=n(70781);const[y,w]=(0,r.k)({name:"ToastOptionsContext",strict:!1}),b=t=>{const e=(0,s.useSyncExternalStore)(v.f.subscribe,v.f.getState,v.f.getState),{motionVariants:n,component:r=m,portalProps:a,animatePresenceProps:c}=t,u=Object.keys(e).map((t=>{const s=e[t];return(0,i.jsx)("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${t}`,id:`chakra-toast-manager-${t}`,style:(0,h.IW)(t),children:(0,i.jsx)(o.M,{...c,initial:!1,children:s.map((t=>(0,i.jsx)(r,{motionVariants:n,...t},t.id)))})},t)}));return(0,i.jsx)(g.h,{...a,children:u})}},68249:function(t,e,n){"use strict";n.d(e,{f:function(){return o}});var i=n(97664),r=n(46135);const o=function(t){let e=t;const n=new Set,a=t=>{e=t(e),n.forEach((t=>t()))};return{getState:()=>e,subscribe:e=>(n.add(e),()=>{a((()=>t)),n.delete(e)}),removeToast:(t,e)=>{a((n=>({...n,[e]:n[e].filter((e=>e.id!=t))})))},notify:(t,e)=>{const n=function(t,e={}){s+=1;const n=e.id??s,i=e.position??"bottom";return{id:n,message:t,position:i,duration:e.duration,onCloseComplete:e.onCloseComplete,onRequestRemove:()=>o.removeToast(String(n),i),status:e.status,requestClose:!1,containerStyle:e.containerStyle}}(t,e),{position:i,id:r}=n;return a((t=>{const e=i.includes("top")?[n,...t[i]??[]]:[...t[i]??[],n];return{...t,[i]:e}})),r},update:(t,e)=>{t&&a((n=>{const o={...n},{position:s,index:a}=(0,r.Dn)(o,t);return s&&-1!==a&&(o[s][a]={...o[s][a],...e,message:(0,i.C)(e)}),o}))},closeAll:({positions:t}={})=>{a((e=>(t??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce(((t,n)=>(t[n]=e[n].map((t=>({...t,requestClose:!0}))),t)),{...e})))},close:t=>{a((e=>{const n=(0,r.ym)(e,t);return n?{...e,[n]:e[n].map((e=>e.id==t?{...e,requestClose:!0}:e))}:e}))},isActive:t=>Boolean((0,r.Dn)(o.getState(),t).position)}}({top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]});let s=0}
280,46135:function(t,e,n){"use strict";n.d(e,{Dn:function(){return r},IW:function(){return a},sv:function(){return s},ym:function(){return o}});const i=(t,e)=>t.find((t=>t.id===e));function r(t,e){const n=o(t,e);return{position:n,index:n?t[n].findIndex((t=>t.id===e)):-1}}function o(t,e){for(const[n,r]of Object.entries(t))if(i(r,e))return n}function s(t){let e="center";return t.includes("right")&&(e="flex-end"),t.includes("left")&&(e="flex-start"),{display:"flex",flexDirection:"column",alignItems:e}}function a(t){return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:"top"===t||"bottom"===t?"0 auto":void 0,top:t.includes("top")?"env(safe-area-inset-top, 0px)":void 0,bottom:t.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,right:t.includes("left")?void 0:"env(safe-area-inset-right, 0px)",left:t.includes("right")?void 0:"env(safe-area-inset-left, 0px)"}}},89705:function(t,e,n){"use strict";n.d(e,{p:function(){return l}});var i=n(2441),r=n(61054),o=n(97664);function s(t,e){const n=t??"bottom",i={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[n];return i?.[e]??n}var a=n(68249);var c=n(94986),u=n(42367);function l(t){const{theme:e}=(0,u.uP)(),n=(0,c.OX)();return(0,i.useMemo)((()=>function(t,e){const n=n=>({...e,...n,position:s(n?.position??e?.position,t)}),i=t=>{const e=n(t),i=(0,o.C)(e);return a.f.notify(i,e)};return i.update=(t,e)=>{a.f.update(t,n(e))},i.promise=(t,e)=>{const n=i({...e.loading,status:"loading",duration:null});t.then((t=>i.update(n,{status:"success",duration:5e3,...(0,r.P)(e.success,t)}))).catch((t=>i.update(n,{status:"error",duration:5e3,...(0,r.P)(e.error,t)})))},i.closeAll=a.f.closeAll,i.close=a.f.close,i.isActive=a.f.isActive,i}(e.direction,{...n,...t})),[t,e.direction,n])}},77626:function(t,e,n){"use strict";n.d(e,{p:function(){return f}});var i=n(41726),r=n(48168),o=n(47992),s=n(74283),a=n(2441);const c={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]};const u={enter:{duration:.2,ease:c.easeOut},exit:{duration:.1,ease:c.easeIn}},l=(t,e)=>({...t,delay:"number"===typeof e?e:e?.enter}),d=(t,e)=>({...t,delay:"number"===typeof e?e:e?.exit}),h={initial:"exit",animate:"enter",exit:"exit",variants:{enter:({transition:t,transitionEnd:e,delay:n}={})=>({opacity:1,transition:t?.enter??l(u.enter,n),transitionEnd:e?.enter}),exit:({transition:t,transitionEnd:e,delay:n}={})=>({opacity:0,transition:t?.exit??d(u.exit,n),transitionEnd:e?.exit})}},f=(0,a.forwardRef)((function(t,e){const{unmountOnExit:n,in:a,className:c,transition:u,transitionEnd:l,delay:d,animatePresenceProps:f,...p}=t,m=a||n?"enter":"exit",v=!n||a&&n,g={transition:u,transitionEnd:l,delay:d};return(0,i.jsx)(o.M,{...f,custom:g,children:v&&(0,i.jsx)(s.E.div,{ref:e,className:(0,r.cx)("chakra-fade",c),custom:g,...h,animate:m,...p})})}));f.displayName="Fade"},47992:function(t,e,n){"use strict";n.d(e,{M:function(){return g}});var i=n(41726),r=n(2441),o=n(80433),s=n(22246),a=n(61731);class c extends r.Component{getSnapshotBeforeUpdate(t){const e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){const t=this.props.sizeRef.current;t.height=e.offsetHeight||0,t.width=e.offsetWidth||0,t.top=e.offsetTop,t.left=e.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function u({children:t,isPresent:e}){const n=(0,r.useId)(),o=(0,r.useRef)(null),s=(0,r.useRef)({width:0,height:0,top:0,left:0}),{nonce:u}=(0,r.useContext)(a._);return(0,r.useInsertionEffect)((()=>{const{width:t,height:i,top:r,left:a}=s.current;if(e||!o.current||!t||!i)return;o.current.dataset.motionPopId=n;const c=document.createElement("style");return u&&(c.nonce=u),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`\n          [data-motion-pop-id="${n}"] {\n            position: absolute !important;\n            width: ${t}px !important;\n            height: ${i}px !important;\n            top: ${r}px !important;\n            left: ${a}px !important;\n          }\n        `),()=>{document.head.removeChild(c)}}),[e]),(0,i.jsx)(c,{isPresent:e,childRef:o,sizeRef:s,children:r.cloneElement(t,{ref:o})})}const l=({children:t,initial:e,isPresent:n,onExitComplete:a,custom:c,presenceAffectsLayout:l,mode:h})=>{const f=(0,s.h)(d),p=(0,r.useId)(),m=(0,r.useMemo)((()=>({id:p,initial:e,isPresent:n,custom:c,onExitComplete:t=>{f.set(t,!0);for(const e of f.values())if(!e)return;a&&a()},register:t=>(f.set(t,!1),()=>f.delete(t))})),l?[Math.random()]:[n]);return(0,r.useMemo)((()=>{f.forEach(((t,e)=>
280f.set(e,!1)))}),[n]),r.useEffect((()=>{!n&&!f.size&&a&&a()}),[n]),"popLayout"===h&&(t=(0,i.jsx)(u,{isPresent:n,children:t})),(0,i.jsx)(o.O.Provider,{value:m,children:t})};function d(){return new Map}var h=n(2730),f=n(48373);const p=t=>t.key||"";function m(t){const e=[];return r.Children.forEach(t,(t=>{(0,r.isValidElement)(t)&&e.push(t)})),e}var v=n(94966);const g=({children:t,exitBeforeEnter:e,custom:n,initial:o=!0,onExitComplete:a,presenceAffectsLayout:c=!0,mode:u="sync"})=>{(0,f.k)(!e,"Replace exitBeforeEnter with mode='wait'");const d=(0,r.useMemo)((()=>m(t)),[t]),g=d.map(p),y=(0,r.useRef)(!0),w=(0,r.useRef)(d),b=(0,s.h)((()=>new Map)),[x,S]=(0,r.useState)(d),[P,C]=(0,r.useState)(d);(0,v.L)((()=>{y.current=!1,w.current=d;for(let t=0;t<P.length;t++){const e=p(P[t]);g.includes(e)?b.delete(e):!0!==b.get(e)&&b.set(e,!1)}}),[P,g.length,g.join("-")]);const E=[];if(d!==x){let t=[...d];for(let e=0;e<P.length;e++){const n=P[e],i=p(n);g.includes(i)||(t.splice(e,0,n),E.push(n))}return"wait"===u&&E.length&&(t=E),C(m(t)),void S(d)}const{forceRender:A}=(0,r.useContext)(h.p);return(0,i.jsx)(i.Fragment,{children:P.map((t=>{const e=p(t),r=d===P||g.includes(e);return(0,i.jsx)(l,{isPresent:r,initial:!(y.current&&!o)&&void 0,custom:r?void 0:n,presenceAffectsLayout:c,mode:u,onExitComplete:r?void 0:()=>{if(!b.has(e))return;b.set(e,!0);let t=!0;b.forEach((e=>{e||(t=!1)})),t&&(null===A||void 0===A||A(),C(w.current),a&&a())},children:t},e)}))})}},88060:function(t,e,n){"use strict";n.d(e,{hO:function(){return s},oO:function(){return o}});var i=n(2441),r=n(80433);function o(){const t=(0,i.useContext)(r.O);if(null===t)return[!0,null];const{isPresent:e,onExitComplete:n,register:o}=t,s=(0,i.useId)();(0,i.useEffect)((()=>o(s)),[]);const a=(0,i.useCallback)((()=>n&&n(s)),[s,n]);return!e&&n?[!1,a]:[!0]}function s(){return null===(t=(0,i.useContext)(r.O))||t.isPresent;var t}},2730:function(t,e,n){"use strict";n.d(e,{p:function(){return i}});const i=(0,n(2441).createContext)({})},61731:function(t,e,n){"use strict";n.d(e,{_:function(){return i}});const i=(0,n(2441).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},80433:function(t,e,n){"use strict";n.d(e,{O:function(){return i}});const i=(0,n(2441).createContext)(null)},74283:function(t,e,n){"use strict";n.d(e,{E:function(){return Ws}});var i=n(41726),r=n(2441),o=n(61731);const s=(0,r.createContext)({});var a=n(80433),c=n(94966);const u=(0,r.createContext)({strict:!1}),l=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),d="data-"+l("framerAppearId"),h=!1,f=!1;const p=["read","resolveKeyframes","update","preRender","render","postRender"];function m(t,e){let n=!1,i=!0;const r={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=p.reduce(((t,e)=>(t[e]=function(t){let e=new Set,n=new Set,i=!1,r=!1;const o=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function a(e){o.has(e)&&(c.schedule(e),t()),e(s)}const c={schedule:(t,r=!1,s=!1)=>{const a=s&&i?e:n;return r&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{n.delete(t),o.delete(t)},process:t=>{s=t,i?r=!0:(i=!0,[e,n]=[n,e],n.clear(),e.forEach(a),i=!1,r&&(r=!1,c.process(t)))}};return c}(o),t)),{}),{read:a,resolveKeyframes:c,update:u,preRender:l,render:d,postRender:h}=s,m=()=>{const o=f?r.timestamp:performance.now();n=!1,r.delta=i?1e3/60:Math.max(Math.min(o-r.timestamp,40),1),r.timestamp=o,r.isProcessing=!0,a.process(r),c.process(r),u.process(r),l.process(r),d.process(r),h.process(r),r.isProcessing=!1,n&&e&&(i=!1,t(m))};return{schedule:p.reduce(((e,o)=>{const a=s[o];return e[o]=(e,o=!1,s=!1)=>(n||(n=!0,i=!0,r.isProcessing||t(m)),a.schedule(e,o,s)),e}),{}),cancel:t=>{for(let e=0;e<p.length;e++)s[p[e]].cancel(t)},state:r,steps:s}}const{schedule:v,cancel:g}=m(queueMicrotask,!1);function y(t){return t&&"object"===typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}const w=(0,r.createContext)({});let b=!1;function x(t,e,n,i,l){const{visualElement:h}=(0,r.useContext)(s),f=(0,r.useContext)(u),p=(0,r.useContext)(a.O),m=(0,r.useContext)(o._).reducedMotion,g=(0,r.useRef)();i=i||f.renderer,!g.current&&i&&(g.current=i(t,{visualState:e,parent:h,props:n,presenceContext:p,blockInitialAnimation:!!p&&!1===p.initial,reducedMotionConfig:m}));const x=g.current,C=(0,r.useContext)(w);!x||x.projection||!l||"html"!==x.type&&"svg"!==x.type||function(t,e,n,i){const{layoutId:r,layout:o,drag:s,dragConstraints:a,layoutScroll:c,layoutRoot:u}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:P(t.parent)),t.projection.setOptions({layoutId:r,layout:o,alwaysMeasureLayout:Boolean(s)||a&&y(a),visualElement:t,animationType:"string"===typeof o?o:"both",initialPromotionConfig:i,layoutScroll:c,layoutRoot:u})}(g.current,n,l,C),(0,r.useInsertionEffect)((()=>{x&&x.update(n,p)}));const E=(0,r.useRef)(Boolean(n[d]&&!window.HandoffComplete));return(0,c.L)((()=>{x&&(x.updateFeatures(),v.render(x.render),E.current&&x.animationState&&x.animationState.animateChanges())})),(0,r.useEffect)((()=>{x&&(!E.current&&x.animationState&&x.animationState.animateChanges(),E.current&&(E.current=!1,b||(b=!0,queueMicrotask(S))))})),x}function S(){window.HandoffComplete=!0}function P(t){if(t)return!1!==t.options.allowProjection?t.projection:P(t.parent)}function C(t,e,n){return(0,r.useCallback)((i=>{i&&t.mount&&t.mount(i),e&&(i?e.mount(i):e.unmount()),n&&("function"===typeof n?n(i):y(n)&&(n.current=i))}),[e])}function E(t){return"string"===typeof t||Array.isArray(t)}function A(t){return null!==t&&"object"===typeof t&&"function"===typeof t.start}const T=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],R=["initial",...T];function k(t){return A(t.animate)||R.some((e=>E(t[e])))}function j(t){return Boolean(k(t)||t.variants)}function I(t){const{initial:e,animate:n}=function(t,e){if(k(t)){const{initial:e,animate:n}=t;return{initial:!1===e||E(e)?e:void 0,animate:E(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,(0,r.useContext)(s));return(0,r.useMemo)((()=>({initial:e,animate:n})),[O(e),O(n)])}function O(t){return Array.isArray(t)?t.join(" "):t}const M={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"]},B={};for(const Ks in M)B[Ks]={isEnabled:t=>M[Ks].some((e=>!!t[e]))};var D=n(64822),_=n(2730);const L=Symbol.for("motionComponentSymbol");function N({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:a,Component:c}){t&&function(t){for(const e in t)B[e]={...B[e],...t[e]}}(t);const l=(0,r.forwardRef)((function(t,l){let d;const h={...(0,r.useContext)(o._),...t,layoutId:V(t)},{isStatic:f}=h,p=I(t),m=a(t,f);if(!f&&D.j){!function(t,e){(0,r.useContext)(u).strict;0}();const t=function(t){const{drag:e,layout:n}=B;if(!e&&!n)return{};const i={...e,...n};return{MeasureLayout:(null===e||void 0===e?void 0:e.isEnabled(t))||(null===n||void 0===n?void 0:n.isEnabled(t))?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}
280(h);d=t.MeasureLayout,p.visualElement=x(c,m,h,e,t.ProjectionNode)}return(0,i.jsxs)(s.Provider,{value:p,children:[d&&p.visualElement?(0,i.jsx)(d,{visualElement:p.visualElement,...h}):null,n(c,t,C(m,p.visualElement,l),m,f,p.visualElement)]})}));return l[L]=c,l}function V({layoutId:t}){const e=(0,r.useContext)(_.p).id;return e&&void 0!==t?e+"-"+t:t}function F(t){function e(e,n={}){return N(t(e,n))}if("undefined"===typeof Proxy)return e;const n=new Map;return new Proxy(e,{get:(t,i)=>(n.has(i)||n.set(i,e(i)),n.get(i))})}const U=["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 $(t){return"string"===typeof t&&!t.includes("-")&&!!(U.indexOf(t)>-1||/[A-Z]/u.test(t))}const z={};const W=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],q=new Set(W);function K(t,{layout:e,layoutId:n}){return q.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!z[t]||"opacity"===t)}const H=t=>Boolean(t&&t.getVelocity),G={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},X=W.length;const Y=t=>e=>"string"===typeof e&&e.startsWith(t),Z=Y("--"),J=Y("var(--"),Q=t=>!!J(t)&&tt.test(t.split("/*")[0].trim()),tt=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,et=(t,e)=>e&&"number"===typeof t?e.transform(t):t,nt=(t,e,n)=>n>e?e:n<t?t:n,it={test:t=>"number"===typeof t,parse:parseFloat,transform:t=>t},rt={...it,transform:t=>nt(0,1,t)},ot={...it,default:1},st=t=>Math.round(1e5*t)/1e5,at=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,ct=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,ut=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function lt(t){return"string"===typeof t}const dt=t=>({test:e=>lt(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),ht=dt("deg"),ft=dt("%"),pt=dt("px"),mt=dt("vh"),vt=dt("vw"),gt={...ft,parse:t=>ft.parse(t)/100,transform:t=>ft.transform(100*t)},yt={...it,transform:Math.round},wt={borderWidth:pt,borderTopWidth:pt,borderRightWidth:pt,borderBottomWidth:pt,borderLeftWidth:pt,borderRadius:pt,radius:pt,borderTopLeftRadius:pt,borderTopRightRadius:pt,borderBottomRightRadius:pt,borderBottomLeftRadius:pt,width:pt,maxWidth:pt,height:pt,maxHeight:pt,size:pt,top:pt,right:pt,bottom:pt,left:pt,padding:pt,paddingTop:pt,paddingRight:pt,paddingBottom:pt,paddingLeft:pt,margin:pt,marginTop:pt,marginRight:pt,marginBottom:pt,marginLeft:pt,rotate:ht,rotateX:ht,rotateY:ht,rotateZ:ht,scale:ot,scaleX:ot,scaleY:ot,scaleZ:ot,skew:ht,skewX:ht,skewY:ht,distance:pt,translateX:pt,translateY:pt,translateZ:pt,x:pt,y:pt,z:pt,perspective:pt,transformPerspective:pt,opacity:rt,originX:gt,originY:gt,originZ:pt,zIndex:yt,backgroundPositionX:pt,backgroundPositionY:pt,fillOpacity:rt,strokeOpacity:rt,numOctaves:yt};function bt(t,e,n){const{style:i,vars:r,transform:o,transformOrigin:s}=t;let a=!1,c=!1,u=!0;for(const l in e){const t=e[l];if(Z(l)){r[l]=t;continue}const n=wt[l],d=et(t,n);if(q.has(l)){if(a=!0,o[l]=d,!u)continue;t!==(n.default||0)&&(u=!1)}else l.startsWith("origin")?(c=!0,s[l]=d):i[l]=d}if(e.transform||(a||n?i.transform=function(t,e,n){let i="";for(let r=0;r<X;r++){const e=W[r];void 0!==t[e]&&(i+=`${G[e]||e}(${t[e]}) `)}return i=i.trim(),n?i=n(t,e?"":i):e&&(i="none"),i}(t.transform,u,n):i.transform&&(i.transform="none")),c){const{originX:t="50%",originY:e="50%",originZ:n=0}=s;i.transformOrigin=`${t} ${e} ${n}`}}const xt=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function St(t,e,n){for(const i in e)H(e[i])||K(i,n)||(t[i]=e[i])}function Pt(t,e){const n={};return St(n,t.style||{},t),Object.assign(n,function({transformTemplate:t},e){return(0,r.useMemo)((()=>{const n=xt();return bt(n,e,t),Object.assign({},n.vars,n.style)}),[e])}(t,e)),n}function Ct(t,e){const n={},i=Pt(t,e);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n}const Et=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function At(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Et.has(t)}let Tt=t=>!At(t);try{(Rt=require("@emotion/is-prop-valid").default)&&(Tt=t=>t.startsWith("on")?!At(t):Rt(t))}catch(qs){}var Rt;function kt(t,e,n){return"string"===typeof t?t:pt.transform(e+n*t)}const jt={offset:"stroke-dashoffset",array:"stroke-dasharray"},It={offset:"strokeDashoffset",array:"strokeDasharray"};function Ot(t,{attrX:e,attrY:n,attrScale:i,originX:r,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:c=0,...u},l,d){if(bt(t,u,d),l)return void(t.style.viewBox&&(t.attrs.viewB
280ox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:h,style:f,dimensions:p}=t;h.transform&&(p&&(f.transform=h.transform),delete h.transform),p&&(void 0!==r||void 0!==o||f.transform)&&(f.transformOrigin=function(t,e,n){return`${kt(e,t.x,t.width)} ${kt(n,t.y,t.height)}`}(p,void 0!==r?r:.5,void 0!==o?o:.5)),void 0!==e&&(h.x=e),void 0!==n&&(h.y=n),void 0!==i&&(h.scale=i),void 0!==s&&function(t,e,n=1,i=0,r=!0){t.pathLength=1;const o=r?jt:It;t[o.offset]=pt.transform(-i);const s=pt.transform(e),a=pt.transform(n);t[o.array]=`${s} ${a}`}(h,s,a,c,!1)}const Mt=()=>({...xt(),attrs:{}}),Bt=t=>"string"===typeof t&&"svg"===t.toLowerCase();function Dt(t,e,n,i){const o=(0,r.useMemo)((()=>{const n=Mt();return Ot(n,e,Bt(i),t.transformTemplate),{...n.attrs,style:{...n.style}}}),[e]);if(t.style){const e={};St(e,t.style,t),o.style={...e,...o.style}}return o}function _t(t=!1){return(e,n,i,{latestValues:o},s)=>{const a=($(e)?Dt:Ct)(n,o,s,e),c=function(t,e,n){const i={};for(const r in t)"values"===r&&"object"===typeof t.values||(Tt(r)||!0===n&&At(r)||!e&&!At(r)||t.draggable&&r.startsWith("onDrag"))&&(i[r]=t[r]);return i}(n,"string"===typeof e,t),u=e!==r.Fragment?{...c,...a,ref:i}:{},{children:l}=n,d=(0,r.useMemo)((()=>H(l)?l.get():l),[l]);return(0,r.createElement)(e,{...u,children:d})}}function Lt(t,{style:e,vars:n},i,r){Object.assign(t.style,e,r&&r.getProjectionStyles(i));for(const o in n)t.style.setProperty(o,n[o])}const Nt=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 Vt(t,e,n,i){Lt(t,e,void 0,i);for(const r in e.attrs)t.setAttribute(Nt.has(r)?r:l(r),e.attrs[r])}function Ft(t,e,n){var i;const{style:r}=t,o={};for(const s in r)(H(r[s])||e.style&&H(e.style[s])||K(s,t)||void 0!==(null===(i=null===n||void 0===n?void 0:n.getValue(s))||void 0===i?void 0:i.liveStyle))&&(o[s]=r[s]);return n&&r&&"string"===typeof r.willChange&&(n.applyWillChange=!1),o}function Ut(t,e,n){const i=Ft(t,e,n);for(const r in t)if(H(t[r])||H(e[r])){i[-1!==W.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=t[r]}return i}function $t(t){const e=[{},{}];return null===t||void 0===t||t.values.forEach(((t,n)=>{e[0][n]=t.get(),e[1][n]=t.getVelocity()})),e}function zt(t,e,n,i){if("function"===typeof e){const[r,o]=$t(i);e=e(void 0!==n?n:t.custom,r,o)}if("string"===typeof e&&(e=t.variants&&t.variants[e]),"function"===typeof e){const[r,o]=$t(i);e=e(void 0!==n?n:t.custom,r,o)}return e}var Wt=n(22246);const qt=t=>Array.isArray(t),Kt=t=>Boolean(t&&"object"===typeof t&&t.mix&&t.toValue),Ht=t=>qt(t)?t[t.length-1]||0:t;function Gt(t){const e=H(t)?t.get():t;return Kt(e)?e.toValue():e}const Xt=new Set(["opacity","clipPath","filter","transform"]);function Yt(t){return q.has(t)?"transform":Xt.has(t)?l(t):void 0}function Zt(t,e){-1===t.indexOf(e)&&t.push(e)}function Jt(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const Qt=t=>(e,n)=>{const i=(0,r.useContext)(s),o=(0,r.useContext)(a.O),c=()=>function({applyWillChange:t=!1,scrapeMotionValuesFromProps:e,createRenderState:n,onMount:i},r,o,s,a){const c={latestValues:ne(r,o,s,!a&&t,e),renderState:n()};return i&&(c.mount=t=>i(r,t,c)),c}(t,e,i,o,n);return n?c():(0,Wt.h)(c)};function te(t,e){const n=Yt(e);n&&Zt(t,n)}function ee(t,e,n){const i=Array.isArray(e)?e:[e];for(let r=0;r<i.length;r++){const e=zt(t,i[r]);if(e){const{transitionEnd:t,transition:i,...r}=e;n(r,t)}}}function ne(t,e,n,i,r){var o;const s={},a=[],c=i&&void 0===(null===(o=t.style)||void 0===o?void 0:o.willChange),u=r(t,{});for(const v in u)s[v]=Gt(u[v]);let{initial:l,animate:d}=t;const h=k(t),f=j(t);e&&f&&!h&&!1!==t.inherit&&(void 0===l&&(l=e.initial),void 0===d&&(d=e.animate));let p=!!n&&!1===n.initial;p=p||!1===l;const m=p?d:l;return m&&"boolean"!==typeof m&&!A(m)&&ee(t,m,((t,e)=>{for(const n in t){let e=t[n];if(Array.isArray(e)){e=e[p?e.length-1:0]}null!==e&&(s[n]=e)}for(const n in e)s[n]=e[n]})),c&&(d&&!1!==l&&!A(d)&&ee(t,d,(t=>{for(const e in t)te(a,e)})),a.length&&(s.willChange=a.join(","))),s}var ie=n(66720);const{schedule:re,cancel:oe,state:se,steps:ae}=m("undefined"!==typeof requestAnimationFrame?requestAnimationFrame:ie.Z,!0),ce={useVisualState:Qt({scrapeMotionValuesFromProps:Ut,createRenderState:Mt,onMount:(t,e,{renderState:n,latestValues:i})=>{re.read((()=>{try{n.dimensions="function"===typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){n.dimensions={x:0,y:0,width:0,height:0}}})),re.render((()=>{Ot(n,i,Bt(e.tagName),t.transformTemplate),Vt(e,n)}))}})},ue={useVisualState:Qt({applyWillChange:!0,scrapeMotionValuesFromProps:Ft,createRenderState:xt})};function le(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}const de=t=>"mouse"===t.pointerType?"number"!==typeof t.button||t.button<=0:!1!==t.isPrimary;function he(t,e="page"){return{point:{x:t[`${e}X`],y:t[`${e}Y`]}}}const fe=t=>e=>de(e)&&t(e,he(e));function pe(t,e,n,i){return le(t,e,fe(n),i)}const me=(t,e)=>n=>e(t(n)),ve=(...t)=>t.reduce(me);function ge(t){let e=null;return()=>{const n=()=>{e=null};return null===e&&(e=t,n)}}const ye=ge("dragHorizontal"),we=ge("dragVertical");function be(t){let e=!1;if("y"===t)e=we();else if("x"===t)e=ye();else{const t=ye(),n=we();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}function xe(){const t=be(!0);return!t||(t(),!1)}class Se{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Pe(t,e){const n=e?"pointerenter":"pointerleave",i=e?"onHoverStart":"onHoverEnd";return pe(t.current,n,((n,r)=>{if("touch"===n.pointerType||xe())return;const o=t.getProps();t.animationState&&o.whileHover&&t.animationState.setActive("whileHover",e);const s=o[i];s&&re.postRender((()=>s(n,r)))}),{passive:!t.getProps()[i]})}const Ce=(t,e)=>!!e&&(t===e||Ce(t,e.parentElement));function Ee(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,he(n))}const Ae=new WeakMap,Te=new WeakMap,Re=t=>{const e=Ae.get(t.target);e&&e(t)}
280,ke=t=>{t.forEach(Re)};function je(t,e,n){const i=function({root:t,...e}){const n=t||document;Te.has(n)||Te.set(n,{});const i=Te.get(n),r=JSON.stringify(e);return i[r]||(i[r]=new IntersectionObserver(ke,{root:t,...e})),i[r]}(e);return Ae.set(t,n),i.observe(t),()=>{Ae.delete(t),i.unobserve(t)}}const Ie={some:0,all:1};const Oe={inView:{Feature:class extends Se{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:i="some",once:r}=t,o={root:e?e.current:void 0,rootMargin:n,threshold:"number"===typeof i?i:Ie[i]};return je(this.node.current,o,(t=>{const{isIntersecting:e}=t;if(this.isInView===e)return;if(this.isInView=e,r&&!e&&this.hasEnteredView)return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);const{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),o=e?n:i;o&&o(t)}))}mount(){this.startObserver()}update(){if("undefined"===typeof IntersectionObserver)return;const{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}(t,e))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Se{constructor(){super(...arguments),this.removeStartListeners=ie.Z,this.removeEndListeners=ie.Z,this.removeAccessibleListeners=ie.Z,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),i=pe(window,"pointerup",((t,e)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:i,globalTapTarget:r}=this.node.getProps(),o=r||Ce(this.node.current,t.target)?n:i;o&&re.update((()=>o(t,e)))}),{passive:!(n.onTap||n.onPointerUp)}),r=pe(window,"pointercancel",((t,e)=>this.cancelPress(t,e)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=ve(i,r),this.startPress(t,e)},this.startAccessiblePress=()=>{const t=le(this.node.current,"keydown",(t=>{if("Enter"!==t.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=le(this.node.current,"keyup",(t=>{"Enter"===t.key&&this.checkPressEnd()&&Ee("up",((t,e)=>{const{onTap:n}=this.node.getProps();n&&re.postRender((()=>n(t,e)))}))})),Ee("down",((t,e)=>{this.startPress(t,e)}))})),e=le(this.node.current,"blur",(()=>{this.isPressing&&Ee("cancel",((t,e)=>this.cancelPress(t,e)))}));this.removeAccessibleListeners=ve(t,e)}}startPress(t,e){this.isPressing=!0;const{onTapStart:n,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&re.postRender((()=>n(t,e)))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!xe()}cancelPress(t,e){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&re.postRender((()=>n(t,e)))}mount(){const t=this.node.getProps(),e=pe(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=le(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=ve(e,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends Se{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){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=ve(le(this.node.current,"focus",(()=>this.onFocus())),le(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends Se{mount(){this.unmount=ve(Pe(this.node,!0),Pe(this.node,!1))}unmount(){}}}};function Me(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}function Be(t,e,n){const i=t.getProps();return zt(i,e,void 0!==n?n:i.custom,t)}const De=t=>1e3*t,_e=t=>t/1e3,Le={type:"spring",stiffness:500,damping:25,restSpeed:10},Ne={type:"keyframes",duration:.8},Ve={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Fe=(t,{keyframes:e})=>e.length>2?Ne:q.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:Le:Ve;function Ue(t,e){return t[e]||t.default||t}const $e=!1,ze=t=>null!==t;function We(t,{repeat:e,repeatType:n="loop"},i){const r=t.filter(ze),o=e&&"loop"!==n&&e%2===1?0:r.length-1;return o&&void 0!==i?i:r[o]}let qe;function Ke(){qe=void 0}const He={now:()=>(void 0===qe&&He.set(se.isProcessing||f?se.timestamp:performance.now()),qe),set:t=>{qe=t,queueMicrotask(Ke)}},Ge=t=>/^0[^.\s]+$/u.test(t);var Xe=n(48373);const Ye=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),Ze=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Je(t,e,n=1){(0,Xe.k)(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[i,r]=function(t){const e=Ze.exec(t);if(!e)return[,];const[,n,i,r]=e;return[`--${null!==n&&void 0!==n?n:i}`,r]}(t);if(!i)return;const o=window.getComputedStyle(e).getPropertyValue(i);if(o){const t=o.trim();return Ye(t)?parseFloat(t):t}return Q(r)?Je(r,e,n+1):r}const Qe=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),tn=t=>t===it||t===pt,en=(t,e)=>parseFloat(t.split(", ")[e]),nn=(t,e)=>(n,{transform:i})=>{if("none"===i||!i)return 0;const r=i.match(/^matrix3d\((.+)\)$/u);if(r)return en(r[1],e);{const e=i.match(/^matrix\((.+)\)$/u);return e?en(e[1],t):0}},rn=new Set(["x","y","z"]),on=W.filter((t=>!rn.has(t)));const sn={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:nn(4,13),y:nn(5,14)};sn.translateX=sn.x,sn.translateY=sn.y;const an=t=>e=>e.test(t),cn=[it,pt,ft,ht,vt,mt,{test:t=>"auto"===t,parse:t=>t}],un=t=>cn.find(an(t)),ln=new Set;let dn=!1,hn=!1;function fn(){if(hn){const t=Array.from(ln).filter((t=>t.needsMeasurement)),e=new Set(t.map((t=>t.element))),n=new Map;e.forEach((t=>{const e=function(t){const e=[];return on.forEach((n=>{const i=t.getValue(n);void 0!==i&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))})),e}(t);e.length&&(n.set(t,e),t.render())})),t.forEach((t=>t.measureInitialState())),e.forEach((t=>{t.render();const e=n.get(t);e&&e.forEach((([e,n])=>{var i;null===(i=t.getValue(e))||void 0===i||i.set(n)}))})),t.forEach((t=>t.measureEndState())),t.forEach((t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)}))}
280hn=!1,dn=!1,ln.forEach((t=>t.complete())),ln.clear()}function pn(){ln.forEach((t=>{t.readKeyframes(),t.needsMeasurement&&(hn=!0)}))}class mn{constructor(t,e,n,i,r,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=n,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ln.add(this),dn||(dn=!0,re.read(pn),re.resolveKeyframes(fn))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:e,element:n,motionValue:i}=this;for(let r=0;r<t.length;r++)if(null===t[r])if(0===r){const r=null===i||void 0===i?void 0:i.get(),o=t[t.length-1];if(void 0!==r)t[0]=r;else if(n&&e){const i=n.readValue(e,o);void 0!==i&&null!==i&&(t[0]=i)}void 0===t[0]&&(t[0]=o),i&&void 0===r&&i.set(t[0])}else t[r]=t[r-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ln.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ln.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const vn=(t,e)=>n=>Boolean(lt(n)&&ut.test(n)&&n.startsWith(t)||e&&!function(t){return null==t}(n)&&Object.prototype.hasOwnProperty.call(n,e)),gn=(t,e,n)=>i=>{if(!lt(i))return i;const[r,o,s,a]=i.match(at);return{[t]:parseFloat(r),[e]:parseFloat(o),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},yn={...it,transform:t=>Math.round((t=>nt(0,255,t))(t))},wn={test:vn("rgb","red"),parse:gn("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+yn.transform(t)+", "+yn.transform(e)+", "+yn.transform(n)+", "+st(rt.transform(i))+")"};const bn={test:vn("#"),parse:function(t){let e="",n="",i="",r="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),r=t.substring(4,5),e+=e,n+=n,i+=i,r+=r),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:r?parseInt(r,16)/255:1}},transform:wn.transform},xn={test:vn("hsl","hue"),parse:gn("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+ft.transform(st(e))+", "+ft.transform(st(n))+", "+st(rt.transform(i))+")"},Sn={test:t=>wn.test(t)||bn.test(t)||xn.test(t),parse:t=>wn.test(t)?wn.parse(t):xn.test(t)?xn.parse(t):bn.parse(t),transform:t=>lt(t)?t:t.hasOwnProperty("red")?wn.transform(t):xn.transform(t)};const Pn="number",Cn="color",En="var",An="var(",Tn="${}",Rn=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function kn(t){const e=t.toString(),n=[],i={color:[],number:[],var:[]},r=[];let o=0;const s=e.replace(Rn,(t=>(Sn.test(t)?(i.color.push(o),r.push(Cn),n.push(Sn.parse(t))):t.startsWith(An)?(i.var.push(o),r.push(En),n.push(t)):(i.number.push(o),r.push(Pn),n.push(parseFloat(t))),++o,Tn))).split(Tn);return{values:n,split:s,indexes:i,types:r}}function jn(t){return kn(t).values}function In(t){const{split:e,types:n}=kn(t),i=e.length;return t=>{let r="";for(let o=0;o<i;o++)if(r+=e[o],void 0!==t[o]){const e=n[o];r+=e===Pn?st(t[o]):e===Cn?Sn.transform(t[o]):t[o]}return r}}const On=t=>"number"===typeof t?0:t;const Mn={test:function(t){var e,n;return isNaN(t)&&lt(t)&&((null===(e=t.match(at))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(ct))||void 0===n?void 0:n.length)||0)>0},parse:jn,createTransformer:In,getAnimatableNone:function(t){const e=jn(t);return In(t)(e.map(On))}},Bn=new Set(["brightness","contrast","saturate","opacity"]);function Dn(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[i]=n.match(at)||[];if(!i)return t;const r=n.replace(i,"");let o=Bn.has(e)?1:0;return i!==n&&(o*=100),e+"("+o+r+")"}const _n=/\b([a-z-]*)\(.*?\)/gu,Ln={...Mn,getAnimatableNone:t=>{const e=t.match(_n);return e?e.map(Dn).join(" "):t}},Nn={...wt,color:Sn,backgroundColor:Sn,outlineColor:Sn,fill:Sn,stroke:Sn,borderColor:Sn,borderTopColor:Sn,borderRightColor:Sn,borderBottomColor:Sn,borderLeftColor:Sn,filter:Ln,WebkitFilter:Ln},Vn=t=>Nn[t];function Fn(t,e){let n=Vn(t);return n!==Ln&&(n=Mn),n.getAnimatableNone?n.getAnimatableNone(e):void 0}
280const Un=new Set(["auto","none","0"]);class $n extends mn{constructor(t,e,n,i){super(t,e,n,i,null===i||void 0===i?void 0:i.owner,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:e,name:n}=this;if(!e.current)return;super.readKeyframes();for(let a=0;a<t.length;a++){let n=t[a];if("string"===typeof n&&(n=n.trim(),Q(n))){const i=Je(n,e.current);void 0!==i&&(t[a]=i),a===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!Qe.has(n)||2!==t.length)return;const[i,r]=t,o=un(i),s=un(r);if(o!==s)if(tn(o)&&tn(s))for(let a=0;a<t.length;a++){const e=t[a];"string"===typeof e&&(t[a]=parseFloat(e))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:e}=this,n=[];for(let r=0;r<t.length;r++)("number"===typeof(i=t[r])?0===i:null===i||"none"===i||"0"===i||Ge(i))&&n.push(r);var i;n.length&&function(t,e,n){let i,r=0;for(;r<t.length&&!i;){const e=t[r];"string"===typeof e&&!Un.has(e)&&kn(e).values.length&&(i=t[r]),r++}if(i&&n)for(const o of e)t[o]=Fn(n,i)}(t,n,e)}measureInitialState(){const{element:t,unresolvedKeyframes:e,name:n}=this;if(!t.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=sn[n](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;const i=e[e.length-1];void 0!==i&&t.getValue(n,i).jump(i,!1)}measureEndState(){var t;const{element:e,name:n,unresolvedKeyframes:i}=this;if(!e.current)return;const r=e.getValue(n);r&&r.jump(this.measuredOrigin,!1);const o=i.length-1,s=i[o];i[o]=sn[n](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),(null===(t=this.removedTransforms)||void 0===t?void 0:t.length)&&this.removedTransforms.forEac
280h((([t,n])=>{e.getValue(t).set(n)})),this.resolveNoneKeyframes()}}function zn(t){let e;return()=>(void 0===e&&(e=t()),e)}const Wn=(t,e)=>"zIndex"!==e&&(!("number"!==typeof t&&!Array.isArray(t))||!("string"!==typeof t||!Mn.test(t)&&"0"!==t||t.startsWith("url(")));class qn{constructor({autoplay:t=!0,delay:e=0,type:n="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",...s}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.options={autoplay:t,delay:e,type:n,repeat:i,repeatDelay:r,repeatType:o,...s},this.updateFinishedPromise()}get resolved(){return this._resolved||this.hasAttemptedResolve||(pn(),fn()),this._resolved}onKeyframesResolved(t,e){this.hasAttemptedResolve=!0;const{name:n,type:i,velocity:r,delay:o,onComplete:s,onUpdate:a,isGenerator:c}=this.options;if(!c&&!function(t,e,n,i){const r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;const o=t[t.length-1],s=Wn(r,e),a=Wn(o,e);return(0,Xe.K)(s===a,`You are trying to animate ${e} from "${r}" to "${o}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${o} via the \`style\` property.`),!(!s||!a)&&(function(t){const e=t[0];if(1===t.length)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}(t)||"spring"===n&&i)}(t,n,i,r)){if($e||!o)return null===a||void 0===a||a(We(t,this.options,e)),null===s||void 0===s||s(),void this.resolveFinishedPromise();this.options.duration=0}const u=this.initPlayback(t,e);!1!==u&&(this._resolved={keyframes:t,finalKeyframe:e,...u},this.onPostResolved())}onPostResolved(){}then(t,e){return this.currentFinishedPromise.then(t,e)}updateFinishedPromise(){this.currentFinishedPromise=new Promise((t=>{this.resolveFinishedPromise=t}))}}function Kn(t,e){return e?t*(1e3/e):0}const Hn=5;function Gn(t,e,n){const i=Math.max(e-Hn,0);return Kn(n-t(i),e-i)}const Xn=.001,Yn=.01,Zn=10,Jn=.05,Qn=1;function ti({duration:t=800,bounce:e=.25,velocity:n=0,mass:i=1}){let r,o;(0,Xe.K)(t<=De(Zn),"Spring duration must be 10 seconds or less");let s=1-e;s=nt(Jn,Qn,s),t=nt(Yn,Zn,_e(t)),s<1?(r=e=>{const i=e*s,r=i*t,o=i-n,a=ni(e,s),c=Math.exp(-r);return Xn-o/a*c},o=e=>{const i=e*s*t,o=i*n+n,a=Math.pow(s,2)*Math.pow(e,2)*t,c=Math.exp(-i),u=ni(Math.pow(e,2),s);return(-r(e)+Xn>0?-1:1)*((o-a)*c)/u}):(r=e=>Math.exp(-e*t)*((e-n)*t+1)-Xn,o=e=>Math.exp(-e*t)*(t*t*(n-e)));const a=function(t,e,n){let i=n;for(let r=1;r<ei;r++)i-=t(i)/e(i);return i}(r,o,5/t);if(t=De(t),isNaN(a))return{stiffness:100,damping:10,duration:t};{const e=Math.pow(a,2)*i;return{stiffness:e,damping:2*s*Math.sqrt(i*e),duration:t}}}const ei=12;function ni(t,e){return t*Math.sqrt(1-e*e)}const ii=["duration","bounce"],ri=["stiffness","damping","mass"];function oi(t,e){return e.some((e=>void 0!==t[e]))}function si({keyframes:t,restDelta:e,restSpeed:n,...i}){const r=t[0],o=t[t.length-1],s={done:!1,value:r},{stiffness:a,damping:c,mass:u,duration:l,velocity:d,isResolvedFromDuration:h}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!oi(t,ri)&&oi(t,ii)){const n=ti(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}({...i,velocity:-_e(i.velocity||0)}),f=d||0,p=c/(2*Math.sqrt(a*u)),m=o-r,v=_e(Math.sqrt(a/u)),g=Math.abs(m)<5;let y;if(n||(n=g?.01:2),e||(e=g?.005:.5),p<1){const t=ni(v,p);y=e=>{const n=Math.exp(-p*v*e);return o-n*((f+p*v*m)/t*Math.sin(t*e)+m*Math.cos(t*e))}}else if(1===p)y=t=>o-Math.exp(-v*t)*(m+(f+v*m)*t);else{const t=v*Math.sqrt(p*p-1);y=e=>{const n=Math.exp(-p*v*e),i=Math.min(t*e,300);return o-n*((f+p*v*m)*Math.sinh(i)+t*m*Math.cosh(i))/t}}return{calculatedDuration:h&&l||null,next:t=>{const i=y(t);if(h)s.done=t>=l;else{let r=f;0!==t&&(r=p<1?Gn(y,t,i):0);const a=Math.abs(r)<=n,c=Math.abs(o-i)<=e;s.done=a&&c}return s.value=s.done?o:i,s}}}function ai({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:r=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:c,restDelta:u=.5,restSpeed:l}){const d=t[0],h={done:!1,value:d},f=t=>void 0===a?c:void 0===c||Math.abs(a-t)<Math.abs(c-t)?a:c;let p=n*e;const m=d+p,v=void 0===s?m:s(m);v!==m&&(p=v-d);const g=t=>-p*Math.exp(-t/i),y=t=>v+g(t),w=t=>{const e=g(t),n=y(t);h.done=Math.abs(e)<=u,h.value=h.done?v:n};let b,x;const S=t=>{var e;(e=h.value,void 0!==a&&e<a||void 0!==c&&e>c)&&(b=t,x=si({keyframes:[h.value,f(h.value)],velocity:Gn(y,t,h.value),damping:r,stiffness:o,restDelta:u,restSpeed:l}))};return S(0),{calculatedDuration:null,next:t=>{let e=!1;return x||void 0!==b||(e=!0,w(t),S(t)),void 0!==b&&t>=b?x.next(t-b):(!e&&w(t),h)}}}const ci=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,ui=1e-7,li=12;function di(t,e,n,i){if(t===e&&n===i)return ie.Z;const r=e=>function(t,e,n,i,r){let o,s,a=0;do{s=e+(n-e)/2,o=ci(s,i,r)-t,o>0?n=s:e=s}while(Math.abs(o)>ui&&++a<li);return s}(e,0,1,t,n);return t=>0===t||1===t?t:ci(r(t),e,i)}
280const hi=di(.42,0,1,1),fi=di(0,0,.58,1),pi=di(.42,0,.58,1),mi=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,vi=t=>e=>1-t(1-e),gi=t=>1-Math.sin(Math.acos(t)),yi=vi(gi),wi=mi(gi),bi=di(.33,1.53,.69,.99),xi=vi(bi),Si=mi(xi),Pi={linear:ie.Z,easeIn:hi,easeInOut:pi,easeOut:fi,circIn:gi,circInOut:wi,circOut:yi,backIn:xi,backInOut:Si,backOut:bi,anticipate:t=>(t*=2)<1?.5*xi(t):.5*(2-Math.pow(2,-10*(t-1)))},Ci=t=>{if(Array.isArray(t)){(0,Xe.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[e,n,i,r]=t;return di(e,n,i,r)}return"string"===typeof t?((0,Xe.k)(void 0!==Pi[t],`Invalid easing type '${t}'`),Pi[t]):t},Ei=(t,e,n)=>{const i=e-t;return 0===i?1:(n-t)/i},Ai=(t,e,n)=>t+(e-t)*n;function Ti(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Ri(t,e){return n=>n>0?e:t}const ki=(t,e,n)=>{const i=t*t,r=n*(e*e-i)+i;return r<0?0:Math.sqrt(r)},ji=[bn,wn,xn];function Ii(t){const e=(n=t,ji.find((t=>t.test(n))));var n;if((0,Xe.K)(Boolean(e),`'${t}' is not an animatable color. Use the equivalent color code instead.`),!Boolean(e))return!1;let i=e.parse(t);return e===xn&&(i=function({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,n/=100;let r=0,o=0,s=0;if(e/=100){const i=n<.5?n*(1+e):n+e-n*e,a=2*n-i;r=Ti(a,i,t+1/3),o=Ti(a,i,t),s=Ti(a,i,t-1/3)}else r=o=s=n;return{red:Math.round(255*r),green:Math.round(255*o),blue:Math.round(255*s),alpha:i}}(i)),i}const Oi=(t,e)=>{const n=Ii(t),i=Ii(e);if(!n||!i)return Ri(t,e);const r={...n};return t=>(r.red=ki(n.red,i.red,t),r.green=ki(n.green,i.green,t),r.blue=ki(n.blue,i.blue,t),r.alpha=Ai(n.alpha,i.alpha,t),wn.transform(r))},Mi=new Set(["none","hidden"]);function Bi(t,e){return n=>Ai(t,e,n)}function Di(t){return"number"===typeof t?Bi:"string"===typeof t?Q(t)?Ri:Sn.test(t)?Oi:Ni:Array.isArray(t)?_i:"object"===typeof t?Sn.test(t)?Oi:Li:Ri}function _i(t,e){const n=[...t],i=n.length,r=t.map(((t,n)=>Di(t)(t,e[n])));return t=>{for(let e=0;e<i;e++)n[e]=r[e](t);return n}}function Li(t,e){const n={...t,...e},i={};for(const r in n)void 0!==t[r]&&void 0!==e[r]&&(i[r]=Di(t[r])(t[r],e[r]));return t=>{for(const e in i)n[e]=i[e](t);return n}}const Ni=(t,e)=>{const n=Mn.createTransformer(e),i=kn(t),r=kn(e);return i.indexes.var.length===r.indexes.var.length&&i.indexes.color.length===r.indexes.color.length&&i.indexes.number.length>=r.indexes.number.length?Mi.has(t)&&!r.values.length||Mi.has(e)&&!i.values.length?function(t,e){return Mi.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}(t,e):ve(_i(function(t,e){var n;const i=[],r={color:0,var:0,number:0};for(let o=0;o<e.values.length;o++){const s=e.types[o],a=t.indexes[s][r[s]],c=null!==(n=t.values[a])&&void 0!==n?n:0;i[o]=c,r[s]++}return i}(i,r),r.values),n):((0,Xe.K)(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Ri(t,e))};function Vi(t,e,n){if("number"===typeof t&&"number"===typeof e&&"number"===typeof n)return Ai(t,e,n);return Di(t)(t,e)}function Fi(t,e,{clamp:n=!0,ease:i,mixer:r}={}){const o=t.length;if((0,Xe.k)(o===e.length,"Both input and output ranges must be the same length"),1===o)return()=>e[0];if(2===o&&t[0]===t[1])return()=>e[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const s=function(t,e,n){const i=[],r=n||Vi,o=t.length-1;for(let s=0;s<o;s++){let n=r(t[s],t[s+1]);if(e){const t=Array.isArray(e)?e[s]||ie.Z:e;n=ve(t,n)}i.push(n)}return i}(e,i,r),a=s.length,c=e=>{let n=0;if(a>1)for(;n<t.length-2&&!(e<t[n+1]);n++);const i=Ei(t[n],t[n+1],e);return s[n](i)};return n?e=>c(nt(t[0],t[o-1],e)):c}function Ui(t){const e=[0];return function(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const r=Ei(0,e,i);t.push(Ai(n,1,r))}}(e,t.length-1),e}function $i({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const r=(t=>Array.isArray(t)&&"number"!==typeof t[0])(i)?i.map(Ci):Ci(i),o={done:!1,value:e[0]},s=function(t,e){return t.map((t=>t*e))}(n&&n.length===e.length?n:Ui(e),t),a=Fi(s,e,{ease:Array.isArray(r)?r:(c=e,u=r,c.map((()=>u||pi)).splice(0,c.length-1))});var c,u;return{calculatedDuration:t,next:e=>(o.value=a(e),o.done=e>=t,o)}}const zi=t=>{const e=({timestamp:e})=>t(e);return{start:()=>re.update(e,!0),stop:()=>oe(e),now:()=>se.isProcessing?se.timestamp:He.now()}},Wi={decay:ai,inertia:ai,tween:$i,keyframes:$i,spring:si},qi=t=>t/100;class Ki extends qn{constructor({KeyframeResolver:t=mn,...e}){super(e),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>
280{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:t}=this.options;t&&t()};const{name:n,motionValue:i,keyframes:r}=this.options,o=(t,e)=>this.onKeyframesResolved(t,e);n&&i&&i.owner?this.resolver=i.owner.resolveKeyframes(r,o,n,i):this.resolver=new t(r,o,n,i),this.resolver.scheduleResolve()}initPlayback(t){const{type:e="keyframes",repeat:n=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=this.options,s=Wi[e]||$i;let a,c;s!==$i&&"number"!==typeof t[0]&&(a=ve(qi,Vi(t[0],t[1])),t=[0,100]);const u=s({...this.options,keyframes:t});"mirror"===r&&(c=s({...this.options,keyframes:[...t].reverse(),velocity:-o})),null===u.calculatedDuration&&(u.calculatedDuration=function(t){let e=0,n=t.next(e);for(;!n.done&&e<2e4;)e+=50,n=t.next(e);return e>=2e4?1/0:e}(u));const{calculatedDuration:l}=u,d=l+i;return{generator:u,mirroredGenerator:c,mapPercentToKeyframes:a,calculatedDuration:l,resolvedDuration:d,totalDuration:d*(n+1)-i}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){const{resolved:n}=this;if(!n){const{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}const{finalKeyframe:i,generator:r,mirroredGenerator:o,mapPercentToKeyframes:s,keyframes:a,calculatedDuration:c,totalDuration:u,resolvedDuration:l}=n;if(null===this.startTime)return r.next(0);const{delay:d,repeat:h,repeatType:f,repeatDelay:p,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const v=this.currentTime-d*(this.speed>=0?1:-1),g=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,w=r;if(h){const t=Math.min(this.currentTime,u)/l;let e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,e=Math.min(e,h+1);Boolean(e%2)&&("reverse"===f?(n=1-n,p&&(n-=p/l)):"mirror"===f&&(w=o)),y=nt(0,1,n)*l}const b=g?{done:!1,value:a[0]}:w.next(y);s&&(b.value=s(b.value));let{done:x}=b;g||null===c||(x=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&x);return S&&void 0!==i&&(b.value=We(a,this.options,i)),m&&m(b.value),S&&this.finish(),b}get duration(){const{resolved:t}=this;return t?_e(t.calculatedDuration):0}get time(){return _e(this.currentTime)}set time(t){t=De(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=_e(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:t=zi,onPlay:e}=this.options;this.driver||(this.driver=t((t=>this.tick(t)))),e&&e();const n=this.driver.now();null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime&&"finished"!==this.state||(this.startTime=n),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;this._resolved?(this.state="paused",this.holdTime=null!==(t=this.currentTime)&&void 0!==t?t:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const Hi=t=>Array.isArray(t)&&"number"===typeof t[0];function Gi(t){return Boolean(!t||"string"===typeof t&&t in Yi||Hi(t)||Array.isArray(t)&&t.every(Gi)
280)}const Xi=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,Yi={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Xi([0,.65,.55,1]),circOut:Xi([.55,0,1,.45]),backIn:Xi([.31,.01,.66,-.59]),backOut:Xi([.33,1.53,.69,.99])};function Zi(t){return Ji(t)||Yi.easeOut}function Ji(t){return t?Hi(t)?Xi(t):Array.isArray(t)?t.map(Zi):Yi[t]:void 0}const Qi=zn((()=>Object.hasOwnProperty.call(Element.prototype,"animate")));class tr extends qn{constructor(t){super(t);const{name:e,motionValue:n,keyframes:i}=this.options;this.resolver=new $n(i,((t,e)=>this.onKeyframesResolved(t,e)),e,n),this.resolver.scheduleResolve()}initPlayback(t,e){var n;let{duration:i=300,times:r,ease:o,type:s,motionValue:a,name:c}=this.options;if(!(null===(n=a.owner)||void 0===n?void 0:n.current))return!1;if("spring"===(u=this.options).type||!Gi(u.ease)){const{onComplete:e,onUpdate:n,motionValue:a,...c}=this.options,u=function(t,e){const n=new Ki({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let i={done:!1,value:t[0]};const r=[];let o=0;for(;!i.done&&o<2e4;)i=n.sample(o),r.push(i.value),o+=10;return{times:void 0,keyframes:r,duration:o-10,ease:"linear"}}(t,c);1===(t=u.keyframes).length&&(t[1]=t[0]),i=u.duration,r=u.times,o=u.ease,s="keyframes"}var u;const l=function(t,e,n,{delay:i=0,duration:r=300,repeat:o=0,repeatType:s="loop",ease:a,times:c}={}){const u={[e]:n};c&&(u.offset=c);const l=Ji(a);return Array.isArray(l)&&(u.easing=l),t.animate(u,{delay:i,duration:r,easing:Array.isArray(l)?"linear":l,fill:"both",iterations:o+1,direction:"reverse"===s?"alternate":"normal"})}(a.owner.current,c,t,{...this.options,duration:i,times:r,ease:o});return l.startTime=He.now(),this.pendingTimeline?(l.timeline=this.pendingTimeline,this.pendingTimeline=void 0):l.onfinish=()=>{const{onComplete:n}=this.options;a.set(We(t,this.options,e)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:l,duration:i,times:r,type:s,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:e}=t;return _e(e)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:e}=t;return _e(e.currentTime||0)}set time(t){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.currentTime=De(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:e}=t;return e.playbackRate}set speed(t){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:e}=t;return e.playState}attachTimeline(t){if(this._resolved){const{resolved:e}=this;if(!e)return ie.Z;const{animation:n}=e;n.timeline=t,n.onfinish=null}else this.pendingTimeline=t;return ie.Z}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:e,keyframes:n,duration:i,type:r,ease:o,times:s}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){const{motionValue:t,onUpdate:e,onComplete:a,...c}=this.options,u=new Ki({...c,keyframes:n,duration:i,type:r,ease:o,times:s,isGenerator:!0}),l=De(this.time);t.setWithVelocity(u.sample(l-10).value,u.sample(l).value,10)}const{onStop:a}=this.options;a&&a(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:e,name:n,repeatDelay:i,repeatType:r,damping:o,type:s}=t;return Qi()&&n&&Xt.has(n)&&e&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate&&!i&&"mirror"!==r&&0!==o&&"inertia"!==s}}const er=zn((()=>void 0!==window.ScrollTimeline));class nr{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,e){return Promise.all(this.animations).then(t).catch(e)}getAll(t){return this.animations[0][t]}setAll(t,e){for(let n=0;n<this.animations.length;n++)this.animations[n][t]=e}attachTimeline(t){const e=this.animations.map((e=>{if(!er()||!e.attachTimeline)return e.pause(),function(t,e){let n;const i=()=>{const{currentTime:i}=e,r=(null===i?0:i.value)/100;n!==r&&t(r),n=r};return re.update(i,!0),()=>oe(i)}((t=>{e.time=e.duration*t}),t);e.attachTimeline(t)}));return()=>{e.forEach(((t,e)=>{t&&t(),this.animations[e].stop()}))}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get duration(){let t=0;for(let e=0;e<this.animations.length;e++)t=Math.max(t,this.animations[e].duration);return t}runAll(t){this.animations.forEach((e=>e[t]()))}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const ir=(t,e,n,i={},r,o,s)=>a=>{const c=Ue(i,t)||{},u=c.delay||i.delay||0;let{elapsed:l=0}=i;l-=De(u);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...c,delay:-l,onUpdate:t=>{e.set(t),c.onUpdate&&c.onUpdate(t)},onComplete:()=>{a(),c.onComplete&&c.onComplete(),s&&s()},onStop:s,name:t,motionValue:e,element:o?void 0:r};(function({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:r,repeat:o,repeatType:s,repeatDelay:a,from:c,elapsed:u,...l}){return!!Object.keys(l).length})(c)||(d={...d,...Fe(t,d)}),d.duration&&(d.duration=De(d.duration)),d.repeatDelay&&(d.repeatDelay=De(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let f=!1;if((!1===d.type||0===d.duration&&!d.repeatDelay)&&(d.duration=0,0===d.delay&&(f=!0)),($e||h)&&(f=!0,d.duration=0,d.delay=0),f&&!
280o&&void 0!==e.get()){const t=We(d.keyframes,c);if(void 0!==t)return re.update((()=>{d.onUpdate(t),d.onComplete()})),new nr([])}return!o&&tr.supports(d)?new tr(d):new Ki(d)};class rr{constructor(){this.subscriptions=[]}add(t){return Zt(this.subscriptions,t),()=>Jt(this.subscriptions,t)}notify(t,e,n){const i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](t,e,n);else for(let r=0;r<i;r++){const i=this.subscriptions[r];i&&i(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const or={current:void 0};class sr{constructor(t,e={}){this.version="11.3.19",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{const n=He.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){var e;this.current=t,this.updatedAt=He.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e))))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new rr);const n=this.events[t].add(e);return"change"===t?()=>{n(),re.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return or.current&&or.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=He.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;const e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return Kn(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise((e=>{this.hasAnimated=!0,this.animation=t(e),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 ar(t,e){return new sr(t,e)}function cr(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,ar(n))}function ur(t){return t.getProps()[d]}class lr extends sr{constructor(){super(...arguments),this.output=[],this.counts=new Map}add(t){const e=Yt(t);if(!e)return;const n=this.counts.get(e)||0;this.counts.set(e,n+1),0===n&&(this.output.push(e),this.update());let i=!1;return()=>{if(i)return;i=!0;const t=this.counts.get(e)-1;this.counts.set(e,t),0===t&&(Jt(this.output,e),this.update())}}update(){this.set(this.output.length?this.output.join(", "):"auto")}}function dr(t,e){var n;if(!t.applyWillChange)return;let i=t.getValue("willChange");return i||(null===(n=t.props.style)||void 0===n?void 0:n.willChange)||(i=new lr("auto"),t.addValue("willChange",i)),r=i,Boolean(H(r)&&r.add)?i.add(e):void 0;var r}function hr({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,i}function fr(t,e,{delay:n=0,transitionOverride:i,type:r}={}){var o;let{transition:s=t.getDefaultTransition(),transitionEnd:a,...c}=e;i&&(s=i);const u=[],l=r&&t.animationState&&t.animationState.getState()[r];for(const d in c){const e=t.getValue(d,null!==(o=t.latestValues[d])&&void 0!==o?o:null),i=c[d];if(void 0===i||l&&hr(l,d))continue;const r={delay:n,elapsed:0,...Ue(s||{},d)};let a=!1;if(window.HandoffAppearAnimations){const n=ur(t);if(n){const t=window.HandoffAppearAnimations(n,d,e,re);null!==t&&(r.elapsed=t,a=!0)}}
280e.start(ir(d,e,i,t.shouldReduceMotion&&q.has(d)?{type:!1}:r,t,a,dr(t,d)));const h=e.animation;h&&u.push(h)}return a&&Promise.all(u).then((()=>{re.update((()=>{a&&function(t,e){const n=Be(t,e);let{transitionEnd:i={},transition:r={},...o}=n||{};o={...o,...i};for(const s in o)cr(t,s,Ht(o[s]))}(t,a)}))})),u}function pr(t,e,n={}){var i;const r=Be(t,e,"exit"===n.type?null===(i=t.presenceContext)||void 0===i?void 0:i.custom:void 0);let{transition:o=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const s=r?()=>Promise.all(fr(t,r,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(i=0)=>{const{delayChildren:r=0,staggerChildren:s,staggerDirection:a}=o;return function(t,e,n=0,i=0,r=1,o){const s=[],a=(t.variantChildren.size-1)*i,c=1===r?(t=0)=>t*i:(t=0)=>a-t*i;return Array.from(t.variantChildren).sort(mr).forEach(((t,i)=>{t.notify("AnimationStart",e),s.push(pr(t,e,{...o,delay:n+c(i)}).then((()=>t.notify("AnimationComplete",e))))})),Promise.all(s)}(t,e,r+i,s,a,n)}:()=>Promise.resolve(),{when:c}=o;if(c){const[t,e]="beforeChildren"===c?[s,a]:[a,s];return t().then((()=>e()))}return Promise.all([s(),a(n.delay)])}function mr(t,e){return t.sortNodePosition(e)}const vr=[...T].reverse(),gr=T.length;function yr(t){return e=>Promise.all(e.map((({animation:e,options:n})=>function(t,e,n={}){let i;if(t.notify("AnimationStart",e),Array.isArray(e)){const r=e.map((e=>pr(t,e,n)));i=Promise.all(r)}else if("string"===typeof e)i=pr(t,e,n);else{const r="function"===typeof e?Be(t,e,n.custom):e;i=Promise.all(fr(t,r,n))}return i.then((()=>{t.notify("AnimationComplete",e)}))}(t,e,n))))}function wr(t,e){return"string"===typeof e?e!==t:!!Array.isArray(e)&&!Me(e,t)}function br(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function xr(){return{animate:br(!0),whileInView:br(),whileHover:br(),whileTap:br(),whileDrag:br(),whileFocus:br(),exit:br()}}let Sr=0;const Pr={animation:{Feature:class extends Se{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=yr(t),n=xr(),i=!0;const r=e=>(n,i)=>{var r;const o=Be(t,i,"exit"===e?null===(r=t.presenceContext)||void 0===r?void 0:r.custom:void 0);if(o){const{transition:t,transitionEnd:e,...i}=o;n={...n,...i,...e}}return n};function o(o){const s=t.getProps(),a=t.getVariantContext(!0)||{},c=[],u=new Set;let l={},d=1/0;for(let e=0;e<gr;e++){const h=vr[e],f=n[h],p=void 0!==s[h]?s[h]:a[h],m=E(p),v=h===o?f.isActive:null;!1===v&&(d=e);let g=p===a[h]&&p!==s[h]&&m;if(g&&i&&t.manuallyAnimateOnMount&&(g=!1),f.protectedKeys={...l},!f.isActive&&null===v||!p&&!f.prevProp||A(p)||"boolean"===typeof p)continue;let y=wr(f.prevProp,p)||h===o&&f.isActive&&!g&&m||e>d&&m,w=!1;const b=Array.isArray(p)?p:[p];let x=b.reduce(r(h),{});!1===v&&(x={});const{prevResolvedValues:S={}}=f,P={...S,...x},C=e=>{y=!0,u.has(e)&&(w=!0,u.delete(e)),f.needsAnimating[e]=!0;const n=t.getValue(e);n&&(n.liveStyle=!1)};for(const t in P){const e=x[t],n=S[t];if(l.hasOwnProperty(t))continue;let i=!1;i=qt(e)&&qt(n)?!Me(e,n):e!==n,i?void 0!==e&&null!==e?C(t):u.add(t):void 0!==e&&u.has(t)?C(t):f.protectedKeys[t]=!0}f.prevProp=p,f.prevResolvedValues=x,f.isActive&&(l={...l,...x}),i&&t.blockInitialAnimation&&(y=!1),!y||g&&!w||c.push(...b.map((t=>({animation:t,options:{type:h}}))))}if(u.size){const e={};u.forEach((n=>{const i=t.getBaseTarget(n),r=t.getValue(n);r&&(r.liveStyle=!0),e[n]=null!==i&&void 0!==i?i:null})),c.push({animation:e})}let h=Boolean(c.length);return!i||!1!==s.initial&&s.initial!==s.animate||t.manuallyAnimateOnMount||(h=!1),i=!1,h?e(c):Promise.resolve()}return{animateChanges:o,setActive:function(e,i){var r;if(n[e].isActive===i)return Promise.resolve();null===(r=t.variantChildren)||void 0===r||r.forEach((t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,i)})),n[e].isActive=i;const s=o(e);for(const t in n)n[t].protectedKeys={};return s},setAnimateFunction:function(n){e=n(t)},getState:()=>n,reset:()=>{n=xr(),i=!0}}}(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();A(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null===(t=this.unmountControls)||void 0===t||t.call(this)}}},exit:{Feature:class extends Se{constructor(){super(...arguments),this.id=Sr++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const i=this.node.animationState.setActive("exit",!t);e&&!t&&i.then((()=>
280e(this.id)))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}}},Cr=(t,e)=>Math.abs(t-e);class Er{constructor(t,e,{transformPagePoint:n,contextWindow:i,dragSnapToOrigin:r=!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 t=Rr(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(t,e){const n=Cr(t.x,e.x),i=Cr(t.y,e.y);return Math.sqrt(n**2+i**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!n)return;const{point:i}=t,{timestamp:r}=se;this.history.push({...i,timestamp:r});const{onStart:o,onMove:s}=this.handlers;e||(o&&o(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=Ar(e,this.transformPagePoint),re.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();const{onEnd:n,onSessionEnd:i,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const o=Rr("pointercancel"===t.type?this.lastMoveEventInfo:Ar(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,o),i&&i(t,o)},!de(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=n,this.contextWindow=i||window;const o=Ar(he(t),this.transformPagePoint),{point:s}=o,{timestamp:a}=se;this.history=[{...s,timestamp:a}];const{onSessionStart:c}=e;c&&c(t,Rr(o,this.history)),this.removeListeners=ve(pe(this.contextWindow,"pointermove",this.handlePointerMove),pe(this.contextWindow,"pointerup",this.handlePointerUp),pe(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),oe(this.updatePoint)}}function Ar(t,e){return e?{point:e(t.point)}:t}function Tr(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Rr({point:t},e){return{point:t,delta:Tr(t,jr(e)),offset:Tr(t,kr(e)),velocity:Ir(e,.1)}}function kr(t){return t[0]}function jr(t){return t[t.length-1]}function Ir(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const r=jr(t);for(;n>=0&&(i=t[n],!(r.timestamp-i.timestamp>De(e)));)n--;if(!i)return{x:0,y:0};const o=_e(r.timestamp-i.timestamp);if(0===o)return{x:0,y:0};const s={x:(r.x-i.x)/o,y:(r.y-i.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}const Or=.9999,Mr=1.0001,Br=-.01,Dr=.01;function _r(t){return t.max-t.min}function Lr(t,e,n,i=.5){t.origin=i,t.originPoint=Ai(e.min,e.max,t.origin),t.scale=_r(n)/_r(e),t.translate=Ai(n.min,n.max,t.origin)-t.originPoint,(t.scale>=Or&&t.scale<=Mr||isNaN(t.scale))&&(t.scale=1),(t.translate>=Br&&t.translate<=Dr||isNaN(t.translate))&&(t.translate=0)}function Nr(t,e,n,i){Lr(t.x,e.x,n.x,i?i.originX:void 0),Lr(t.y,e.y,n.y,i?i.originY:void 0)}function Vr(t,e,n){t.min=n.min+e.min,t.max=t.min+_r(e)}function Fr(t,e,n){t.min=e.min-n.min,t.max=t.min+_r(e)}function Ur(t,e,n){Fr(t.x,e.x,n.x),Fr(t.y,e.y,n.y)}function $r(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function zr(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}const Wr=.35;function qr(t,e,n){return{min:Kr(t,e),max:Kr(t,n)}}function Kr(t,e){return"number"===typeof t?t:t[e]||0}const Hr=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),Gr=()=>({x:{min:0,max:0},y:{min:0,max:0}});function Xr(t){return[t("x"),t("y")]}function Yr({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function Zr(t){return void 0===t||1===t}function Jr({scale:t,scaleX:e,scaleY:n}){return!Zr(t)||!Zr(e)||!Zr(n)}function Qr(t){return Jr(t)||to(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function to(t){return eo(t.x)||eo(t.y)}function eo(t){return t&&"0%"!==t}function no(t,e,n){return n+e*(t-n)}function io(t,e,n,i,r){return void 0!==r&&(t=no(t,r,i)),no(t,n,i)+e}function ro(t,e=0,n=1,i,r){t.min=io(t.min,e,n,i,r),t.max=io(t.max,e,n,i,r)}function oo(t,{x:e,y:n}){ro(t.x,e.translate,e.scale,e.originPoint),ro(t.y,n.translate,n.scale,n.originPoint)}const so=.999999999999,ao=1.0000000000001;function co(t,e){t.min=t.min+e,t.max=t.max+e}function uo(t,e,n,i,r=.5){ro(t,e,n,Ai(t.min,t.max,r),i)}function lo(t,e){uo(t.x,e.x,e.scaleX,e.scale,e.originX),uo(t.y,e.y,e.scaleY,e.scale,e.originY)}function ho(t,e){return Yr(function(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}(t.getBoundingClientRect(),e))}const fo=({current:t})=>t?t.ownerDocument.defaultView:null,po=new WeakMap;class mo{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=Gr(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:i}=this.getProps();this.panSession=new Er(t,{onSessionStart:t=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(he(t,"page").point)},onStart:(t,e)=>{var n;const{drag:i,dragPropagation:r,onDragStart:o}=this.getProps();if(i&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=be(i),!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),Xr((t=>{let e=this.getAxisMotionValue(t).get()||0;if(ft.test(e)){const{projection:n}=this.visualElement;if(n&&n.layout){const i=n.layout.layoutBox[t];if(i){e=_r(i)*(parseFloat(e)/100)}}}this.originPoint[t]=e})),o&&re.postRender((()=>o(t,e))),null===(n=this.removeWillChange)||void 0===n||n.call(this),this.removeWillChange=dr(this.visualElement,"transform");const{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(t,e)=>{const{dragPropagation:n,dragDirectionLock:i,onDirectionLock:r,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:s}=e;if(i&&null===this.currentDirection)return this.currentDirection=function(t,e=10){let n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(s),void(null!==this.currentDirection&&r&&r(this.currentDirection));this.updateAxis("x",e.point,s),this.updateAxis("y",e.point,s),this.visualElement.render(),o&&o(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>Xr((t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:i,contextWindow:fo(this.visualElement)})}stop(t,e){var n;null===(n=this.removeWillChange)||void 0===n||n.call(this);const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:r}=e;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&re.postRender((()=>o(t,e)))}cancel(){this.isDragging=!1;const{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,n){const{drag:i}=this.getProps();if(!n||!vo(t,i,this.currentDirection))return;const r=this.getAxisMotionValue(t);let o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=function(t,{min:e,max:n},i){return void 0!==e&&t<e?t=i?Ai(e,t,i.min):Math.max(t,e):void 0!==n&&t>n&&(t=i?Ai(n,t,i.max):Math.min(t,n)),t}(o,this.constraints[t],this.elastic[t])),r.set(o)}resolveConstraints(){var t;const{dragConstraints:e,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,r=this.constraints;e&&y(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!i)&&function(t,{top:e,left:n,bottom:i,right:r}){return{x:$r(t.x,n,r),y:$r(t.y,e,i)}}(i.layoutBox,e),this.elastic=function(t=Wr){return!1===t?t=0:!0===t&&(t=Wr),{x:qr(t,"left","right"),y:qr(t,"top","bottom")}}(n),r!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Xr((t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){const n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(i.layoutBox[t],this.constraints[t]))}))}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!y(t))return!1;const n=t.current;(0,Xe.k)(null!==n,"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 r=function(t,e,n){const i=ho(t,n),{scroll:r}=e;return r&&(co(i.x,r.offset.x),co(i.y,r.offset.y)),i}(n,i.root,this.visualElement.getTransformPagePoint());let o=function(t,e){return{x:zr(t.x,e.x),y:zr(t.y,e.y)}}(i.layout.layoutBox,r);if(e){const t=e(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=Yr(t))}return o}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:i,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{},c=Xr((s=>{if(!vo(s,e,this.currentDirection))return;let c=a&&a[s]||{};o&&(c={min:0,max:0});const u=i?200:1e6,l=i?40:1e7,d={type:"inertia",velocity:n?t[s]:0,bounceStiffness:u,bounceDamping:l,timeConstant:750,restDelta:1,restSpeed:10,...r,...c};return this.startAxisValueAnimation(s,d)}));return Promise.all(c).then(s)}startAxisValueAnimation(t,e){const n=this.getAxisMotionValue(t);return n.start(ir(t,n,0,e,this.visualElement,!1,dr(this.visualElement,t)))}stopAnimation(){Xr((t=>this.getAxisMotionValue(t).stop()))}pauseAnimation(){Xr((t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()}))}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.state}getAxisMotionValue(t){const e=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),i=n[e];return i||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){Xr((e=>{const{drag:n}=this.getProps();if(!vo(e,n,this.currentDirection))return;const{projection:i}=this.visualElement,r=this.getAxisMotionValue(e);if(i&&i.layout){const{min:n,max:o}=i.layout.layoutBox[e];r.set(t[e]-Ai(n,o,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!y(e)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Xr((t=>{const e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){const n=e.get();i[t]=function(t,e){let n=.5;const i=_r(t),r=_r(e);return r>i?n=Ei(e.min,e.max-i,t.min):i>r&&(n=Ei(t.min,t.max-r,e.min)),nt(0,1,n)}({min:n,max:n},this.constraints[t])}}));const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Xr((e=>{if(!vo(e,t,null))return;const n=this.getAxisMotionValue(e),{min:r,max:o}=this.constraints[e];n.set(Ai(r,o,i[e]))}))}addListeners(){if(!this.visualElement.current)return;po.set(this.visualElement,this);const t=pe(this.visualElement.current,"pointerdown",(t=>{const{drag:e,dragListener:n=!0}
280=this.getProps();e&&n&&this.start(t)})),e=()=>{const{dragConstraints:t}=this.getProps();y(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,i=n.addEventListener("measure",e);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),re.read(e);const r=le(window,"resize",(()=>this.scalePositionWithinConstraints())),o=n.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(Xr((e=>{const n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))})),this.visualElement.render())}));return()=>{r(),t(),i(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:o=Wr,dragMomentum:s=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:i,dragConstraints:r,dragElastic:o,dragMomentum:s}}}function vo(t,e,n){return(!0===e||e===t)&&(null===n||n===t)}const go=t=>(e,n)=>{t&&re.postRender((()=>t(e,n)))};var yo=n(88060);const wo={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function bo(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const xo={correct:(t,e)=>{if(!e.target)return t;if("string"===typeof t){if(!pt.test(t))return t;t=parseFloat(t)}return`${bo(t,e.target.x)}% ${bo(t,e.target.y)}%`}},So={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,r=Mn.parse(t);if(r.length>5)return i;const o=Mn.createTransformer(t),s="number"!==typeof r[0]?1:0,a=n.x.scale*e.x,c=n.y.scale*e.y;r[0+s]/=a,r[1+s]/=c;const u=Ai(a,c,.5);return"number"===typeof r[2+s]&&(r[2+s]/=u),"number"===typeof r[3+s]&&(r[3+s]/=u),o(r)}};class Po extends r.Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:i}=this.props,{projection:r}=t;var o;o=Eo,Object.assign(z,o),r&&(e.group&&e.group.add(r),n&&n.register&&i&&n.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",(()=>{this.safeToRemove()})),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),wo.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:n,drag:i,isPresent:r}=this.props,o=n.projection;return o?(o.isPresent=r,i||t.layoutDependency!==e||void 0===e?o.willUpdate():this.safeToRemove(),t.isPresent!==r&&(r?o.promote():o.relegate()||re.postRender((()=>{const t=o.getStack();t&&t.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),v.postRender((()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Co(t){const[e,n]=(0,yo.oO)(),o=(0,r.useContext)(_.p);return(0,i.jsx)(Po,{...t,layoutGroup:o,switchLayoutGroup:(0,r.useContext)(w),isPresent:e,safeToRemove:n})}const Eo={borderRadius:{...xo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:xo,borderTopRightRadius:xo,borderBottomLeftRadius:xo,borderBottomRightRadius:xo,boxShadow:So},Ao=["TopLeft","TopRight","BottomLeft","BottomRight"],To=Ao.length,Ro=t=>"string"===typeof t?parseFloat(t):t,ko=t=>"number"===typeof t||pt.test(t);function jo(t,e){return void 0!==t[e]?t[e]:t.borderRadius}const Io=Mo(0,.5,yi),Oo=Mo(.5,.95,ie.Z);function Mo(t,e,n){return i=>i<t?0:i>e?1:n(Ei(t,e,i))}function Bo(t,e){t.min=e.min,t.max=e.max}function Do(t,e){Bo(t.x,e.x),Bo(t.y,e.y)}function _o(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function Lo(t,e,n,i,r){return t=no(t-=e,1/n,i),void 0!==r&&(t=no(t,1/r,i)),t}function No(t,e,[n,i,r],o,s){!function(t,e=0,n=1,i=.5,r,o=t,s=t){ft.test(e)&&(e=parseFloat(e),e=Ai(s.min,s.max,e/100)-s.min);if("number"!==typeof e)return;let a=Ai(o.min,o.max,i);t===o&&(a-=e),t.min=Lo(t.min,e,n,a,r),t.max=Lo(t.max,e,n,a,r)}(t,e[n],e[i],e[r],e.scale,o,s)}const Vo=["x","scaleX","originX"],Fo=["y","scaleY","originY"];
280function Uo(t,e,n,i){No(t.x,e,Vo,n?n.x:void 0,i?i.x:void 0),No(t.y,e,Fo,n?n.y:void 0,i?i.y:void 0)}function $o(t){return 0===t.translate&&1===t.scale}function zo(t){return $o(t.x)&&$o(t.y)}function Wo(t,e){return t.min===e.min&&t.max===e.max}function qo(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Ko(t,e){return qo(t.x,e.x)&&qo(t.y,e.y)}function Ho(t){return _r(t.x)/_r(t.y)}function Go(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class Xo{constructor(){this.members=[]}add(t){Zt(this.members,t),t.scheduleRender()}remove(t){if(Jt(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){const e=this.members.findIndex((e=>t===e));if(0===e)return!1;let n;for(let i=e;i>=0;i--){const t=this.members[i];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(t,e){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,e&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;!1===i&&n.hide()}}exitAnimationComplete(){this.members.forEach((t=>{const{options:e,resumingFrom:n}=t;e.onExitComplete&&e.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((t=>{t.instance&&t.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Yo=(t,e)=>t.depth-e.depth;class Zo{constructor(){this.children=[],this.isDirty=!1}add(t){Zt(this.children,t),this.isDirty=!0}remove(t){Jt(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Yo),this.isDirty=!1,this.children.forEach(t)}}const Jo={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Qo="undefined"!==typeof window&&void 0!==window.MotionDebug,ts=["","X","Y","Z"],es={visibility:"hidden"};let ns=0;function is(t,e,n,i){const{latestValues:r}=e;r[t]&&(n[t]=r[t],e.setStaticValue(t,0),i&&(i[t]=0))}function rs(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return!1;const{visualElement:e}=t.options;return!!e&&(!!ur(e)||!(!t.parent||t.parent.hasCheckedOptimisedAppear)&&rs(t.parent))}function os({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:r}){return class{constructor(t={},n=(null===e||void 0===e?void 0:e())){this.id=ns++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Qo&&(Jo.totalNodes=Jo.resolvedTargetDeltas=Jo.recalculatedProjection=0),this.nodes.forEach(cs),this.nodes.forEach(ms),this.nodes.forEach(vs),this.nodes.forEach(us),Qo&&window.MotionDebug.record(Jo)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Zo)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new rr),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){const n=this.eventHandlers.get(t);n&&n.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,n=this.root.hasTreeAnimated){if(this.instance)return;var i;this.isSVG=(i=e)instanceof SVGElement&&"svg"!==i.tagName,this.instance=e;const{layoutId:r,layout:o,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(o||r)&&(this.isLayoutDirty=!0),t){let n;const i=()=>this.root.updateBlockedByResize=!1;t(e,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(t,e){const n=He.now(),i=({timestamp:r})=>{const o=r-n;o>=e&&(oe(i),t(o-e))};return re.read(i,!0),()=>oe(i)}(i,250),wo.hasAnimatedSinceResize&&(wo.hasAnimatedSinceResize=!1,this.nodes.forEac
280h(ps))}))}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&s&&(r||o)&&this.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:n,layout:i})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const r=this.options.transition||s.getDefaultTransition()||Ss,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),c=!this.targetLayout||!Ko(this.targetLayout,i)||n,u=!e&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||e&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);const e={...Ue(r,"layout"),onPlay:o,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||ps(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,oe(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(gs),this.animationId++)}getTransformTemplate(){const{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.HandoffCancelAllAnimations&&rs(this)&&window.HandoffCancelAllAnimations(),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let r=0;r<this.path.length;r++){const t=this.path[r];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:e,layout:n}=this.options;if(void 0===e&&!n)return;const i=this.getTransformTemplate();this.prevTransformTemplateValue=i?i(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(ds);this.isUpdating||this.nodes.forEach(hs),this.isUpdating=!1,this.nodes.forEach(fs),this.nodes.forEach(ss),this.nodes.forEach(as),this.clearAllSnapshots();const t=He.now();se.delta=nt(0,1e3/60,t-se.timestamp),se.timestamp=t,se.isProcessing=!0,ae.update.process(se),ae.preRender.process(se),ae.render.process(se),se.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,v.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ls),this.sharedNodes.forEach(ys)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,re.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){re.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),(!this.options.alwaysMeasureLayout||!this.isLead())&&!this.isLayoutDirty)return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let n=0;n<this.path.length;n++){this.path[n].updateScroll()}const t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Gr(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e){const e=i(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!r)return;const t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!zo(this.projectionDelta),n=this.getTransformTemplate(),i=n?n(this.latestValues,""):void 0,o=i!==this.prevTransformTemplateValue;t&&(e||Qr(this.latestValues)||o)&&(r(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){const e=this.measurePageBox();let n=this.removeElementScroll(e);var i;return t&&(n=this.removeTransform(n)),Es((i=n).x),Es(i.y),{animationId:this.root.animationId,measuredBox:e,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var t;const{visualElement:e}=this.options;if(!e)return Gr();const n=e.measureViewportBox();if(!((null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)||this.path.some(Ts))){const{scroll:t}=this.root;t&&(co(n.x,t.offset.x),co(n.y,t.offset.y))}return n}removeElementScroll(t){var e;const n=Gr();if(Do(n,t),null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)return n;for(let i=0;i<this.path.length;i++){const e=this.path[i],{scroll:r,options:o}=e;e!==this.root&&r&&o.layoutScroll&&(r.wasRoot&&Do(n,t),co(n.x,r.offset.x),co(n.y,r.offset.y))}return n}applyTransform(t,e=!1){const n=Gr();Do(n,t);for(let i=0;i<this.path.length;i++){const t=this.path[i];!e&&t.options.layoutScroll&&t.scroll&&t!==t.root&&lo(n,{x:-t.scroll.offset.x,y:-t.scroll.offset.y}),Qr(t.latestValues)&&lo(n,t.latestValues)}return Qr(this.latestValues)&&lo(n,this.latestValues),n}removeTransform(t){const e=Gr();Do(e,t);for(let n=0;n<this.path.length;n++){const t=this.path[n];if(!t.instance)continue;if(!Qr(t.latestValues))continue;Jr(t.latestValues)&&t.updateSnapshot();const i=Gr();Do(i,t.measurePageBox()),Uo(e,t.latestValues,t.snapshot?t.snapshot.layoutBox:void 0,i)}return Qr(this.latestValues)&&Uo(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}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!==se.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isS
280haredProjectionDirty);const i=Boolean(this.resumingFrom)||this!==n;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:r,layoutId:o}=this.options;if(this.layout&&(r||o)){if(this.resolvedRelativeTargetAt=se.timestamp,!this.targetDelta&&!this.relativeTarget){const t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Gr(),this.relativeTargetOrigin=Gr(),Ur(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),Do(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var s,a,c;if(this.target||(this.target=Gr(),this.targetWithTransforms=Gr()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),s=this.target,a=this.relativeTarget,c=this.relativeParent.target,Vr(s.x,a.x,c.x),Vr(s.y,a.y,c.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Do(this.target,this.layout.layoutBox),oo(this.target,this.targetDelta)):Do(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const t=this.getClosestProjectingParent();t&&Boolean(t.resumingFrom)===Boolean(this.resumingFrom)&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Gr(),this.relativeTargetOrigin=Gr(),Ur(this.relativeTargetOrigin,this.target,t.target),Do(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Qo&&Jo.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!Jr(this.parent.latestValues)&&!to(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;const e=this.getLead(),n=Boolean(this.resumingFrom)||this!==e;let i=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(i=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===se.timestamp&&(i=!1),i)return;const{layout:r,layoutId:o}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!r&&!o)return;Do(this.layoutCorrected,this.layout.layoutBox);const s=this.treeScale.x,a=this.treeScale.y;!function(t,e,n,i=!1){const r=n.length;if(!r)return;let o,s;e.x=e.y=1;for(let a=0;a<r;a++){o=n[a],s=o.projectionDelta;const{visualElement:r}=o.options;r&&r.props.style&&"contents"===r.props.style.display||(i&&o.options.layoutScroll&&o.scroll&&o!==o.root&&lo(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,oo(t,s)),i&&Qr(o.latestValues)&&lo(t,o.latestValues))}e.x<ao&&e.x>so&&(e.x=1),e.y<ao&&e.y>so&&(e.y=1)}(this.layoutCorrected,this.treeScale,this.path,n),!e.layout||e.target||1===this.treeScale.x&&1===this.treeScale.y||(e.target=e.layout.layoutBox,e.targetWithTransforms=Gr());const{target:c}=e;c?(this.projectionDelta&&this.prevProjectionDelta?(_o(this.prevProjectionDelta.x,this.projectionDelta.x),_o(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),Nr(this.projectionDelta,this.layoutCorrected,c,this.latestValues),this.treeScale.x===s&&this.treeScale.y===a&&Go(this.projectionDelta.x,this.prevProjectionDelta.x)&&Go(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",c)),Qo&&Jo.recalculatedProjection++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e;if(null===(e=this.options.visualElement)||void 0===e||e.scheduleRender(),t){const t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Hr(),this.projectionDelta=Hr(),this.projectionDeltaWithTransform=Hr()}setAnimationOrigin(t,e=!1){const n=this.snapshot,i=n?n.latestValues:{},r={...this.latestValues},o=Hr();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;const s=Gr(),a=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),u=!c||c.members.length<=1,l=Boolean(a&&!u&&!0===this.options.crossfade&&!this.path.some(xs));let d;this.animationProgress=0,this.mixTargetDelta=e=>{const n=e/1e3;var c,h,f,p,m,v;ws(o.x,t.x,n),ws(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ur(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f=this.relativeTarget,p=this.relativeTargetOrigin,m=s,v=n,bs(f.x,p.x,m.x,v),bs(f.y,p.y,m.y,v),d&&(c=this.relativeTarget,h=d,Wo(c.x,h.x)&&Wo(c.y,h.y))&&(this.isProjectionDirty=!1),d||(d=Gr()),Do(d,this.relativeTarget)),a&&(this.animationValues=r,function(t,e,n,i,r,o){r?(t.opacity=Ai(0,void 0!==n.opacity?n.opacity:1,Io(i)),t.opacityExit=Ai(void 0!==e.opacity?e.opacity:1,0,Oo(i))):o&&(t.opacity=Ai(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,i));for(let s=0;s<To;s++){const r=`border${Ao[s]}Radius`;let o=jo(e,r),a=jo(n,r);void 0===o&&void 0===a||(o||(o=0),a||(a=0),0===o||0===a||ko(o)===ko(a)?(t[r]=Math.max(Ai(Ro(o),Ro(a),i),0),(ft.test(a)||ft.test(o))&&(t[r]+="%")):t[r]=a)}(e.rotate||n.rotate)&&(t.rotate=Ai(e.rotate||0,n.rotate||0,i))}(r,i,this.latestValues,n,l,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(oe(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=re.update((()=>{wo.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n){const i=H(t)?t:ar(t);return i.start(ir("",i,e,n)),i.animation}(0,1e3,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.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 t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const t=this.getLead();let{targetWithTransforms:e,target:n,layout:i,latestValues:r}=t;
280if(e&&n&&i){if(this!==t&&this.layout&&i&&As(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||Gr();const e=_r(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;const i=_r(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+i}Do(e,n),lo(e,r),Nr(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new Xo);this.sharedNodes.get(t).add(e);const n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}isLead(){const t=this.getStack();return!t||t.lead===this}getLead(){var t;const{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;const{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){const{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:n}={}){const i=this.getStack();i&&i.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const{latestValues:n}=t;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(e=!0),!e)return;const i={};n.z&&is("z",t,i,this.animationValues);for(let r=0;r<ts.length;r++)is(`rotate${ts[r]}`,t,i,this.animationValues),is(`skew${ts[r]}`,t,i,this.animationValues);t.render();for(const r in i)t.setStaticValue(r,i[r]),this.animationValues&&(this.animationValues[r]=i[r]);t.scheduleRender()}getProjectionStyles(t){var e,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return es;const i={visibility:""},r=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,i.opacity="",i.pointerEvents=Gt(null===t||void 0===t?void 0:t.pointerEvents)||"",i.transform=r?r(this.latestValues,""):"none",i;const o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){const e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=Gt(null===t||void 0===t?void 0:t.pointerEvents)||""),this.hasProjected&&!Qr(this.latestValues)&&(e.transform=r?r({},""):"none",this.hasProjected=!1),e}const s=o.animationValues||o.latestValues;this.applyTransformsToTarget(),i.transform=function(t,e,n){let i="";const r=t.x.translate/e.x,o=t.y.translate/e.y,s=(null===n||void 0===n?void 0:n.z)||0;if((r||o||s)&&(i=`translate3d(${r}px, ${o}px, ${s}px) `),1===e.x&&1===e.y||(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:t,rotate:e,rotateX:r,rotateY:o,skewX:s,skewY:a}=n;t&&(i=`perspective(${t}px) ${i}`),e&&(i+=`rotate(${e}deg) `),r&&(i+=`rotateX(${r}deg) `),o&&(i+=`rotateY(${o}deg) `),s&&(i+=`skewX(${s}deg) `),a&&(i+=`skewY(${a}deg) `)}const a=t.x.scale*e.x,c=t.y.scale*e.y;return 1===a&&1===c||(i+=`scale(${a}, ${c})`),i||"none"}(this.projectionDeltaWithTransform,this.treeScale,s),r&&(i.transform=r(s,i.transform));const{x:a,y:c}=this.projectionDelta;i.transformOrigin=`${100*a.origin}% ${100*c.origin}% 0`,o.animationValues?i.opacity=o===this?null!==(n=null!==(e=s.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:i.opacity=o===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0;for(const u in z){if(void 0===s[u])continue;const{correct:t,applyTo:e}=z[u],n="none"===i.transform?s[u]:t(s[u],o);if(e){const t=e.length;for(let r=0;r<t;r++)i[e[r]]=n}else i[u]=n}return this.options.layoutId&&(i.pointerEvents=o===this?Gt(null===t||void 0===t?void 0:t.pointerEvents)||"":"none"),i}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()})),this.root.nodes.forEach(ds),this.root.sharedNodes.clear()}}}function ss(t){t.updateLayout()}function as(t){var e;const n=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:e,measuredBox:i}=t.layout,{animationType:r}=t.options,o=n.source!==t.layout.source;"size"===r?Xr((t=>{const i=o?n.measuredBox[t]:n.layoutBox[t],r=_r(i);i.min=e[t].min,i.max=i.min+r})):As(r,n.layoutBox,e)&&Xr((i=>{const r=o?n.measuredBox[i]:n.layoutBox[i],s=_r(e[i]);r.max=r.min+s,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[i].max=t.relativeTarget[i].min+s)}));const s=Hr();Nr(s,e,n.layoutBox);const a=Hr();o?Nr(a,t.applyTransform(i,!0),n.measuredBox):Nr(a,e,n.layoutBox);const c=!zo(s);let u=!1;if(!t.resumeFrom){const i=t.getClosestProjectingParent();if(i&&!i.resumeFrom){const{snapshot:r,layout:o}=i;if(r&&o){const s=Gr();Ur(s,n.layoutBox,r.layoutBox);const a=Gr();Ur(a,e,o.layoutBox),Ko(s,a)||(u=!0),i.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=s,t.relativeParent=i)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:n,delta:a,layoutDelta:s,hasLayoutChanged:c,hasRelativeTargetChanged:u})}else if(t.isLead()){const{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function cs(t){Qo&&Jo.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=Boolean(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function us(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function ls(t){t.clearSnapshot()}function ds(t){t.clearMeasurements()}function hs(t){t.isLayoutDirty=!1}function fs(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ps(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function ms(t){t.resolveTargetDelta()}function vs(t){t.calcProjection()}
280function gs(t){t.resetSkewAndRotation()}function ys(t){t.removeLeadSnapshot()}function ws(t,e,n){t.translate=Ai(e.translate,0,n),t.scale=Ai(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function bs(t,e,n,i){t.min=Ai(e.min,n.min,i),t.max=Ai(e.max,n.max,i)}function xs(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const Ss={duration:.45,ease:[.4,0,.1,1]},Ps=t=>"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Cs=Ps("applewebkit/")&&!Ps("chrome/")?Math.round:ie.Z;function Es(t){t.min=Cs(t.min),t.max=Cs(t.max)}function As(t,e,n){return"position"===t||"preserve-aspect"===t&&(i=Ho(e),r=Ho(n),o=.2,!(Math.abs(i-r)<=o));var i,r,o}function Ts(t){var e;return t!==t.root&&(null===(e=t.scroll)||void 0===e?void 0:e.wasRoot)}const Rs=os({attachResizeListener:(t,e)=>le(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ks={current:void 0},js=os({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ks.current){const t=new Rs({});t.mount(window),t.setOptions({layoutScroll:!0}),ks.current=t}return ks.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),Is={pan:{Feature:class extends Se{constructor(){super(...arguments),this.removePointerDownListener=ie.Z}onPointerDown(t){this.session=new Er(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:fo(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:go(t),onStart:go(e),onMove:n,onEnd:(t,e)=>{delete this.session,i&&re.postRender((()=>i(t,e)))}}}mount(){this.removePointerDownListener=pe(this.node.current,"pointerdown",(t=>this.onPointerDown(t)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Se{constructor(t){super(t),this.removeGroupControls=ie.Z,this.removeListeners=ie.Z,this.controls=new mo(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ie.Z}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:js,MeasureLayout:Co}},Os={current:null},Ms={current:!1};const Bs=new WeakMap,Ds=[...cn,Sn,Mn],_s=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Ls=R.length;class Ns{scrapeMotionValuesFromProps(t,e,n){return{}}constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:i,blockInitialAnimation:r,visualState:o},s={}){this.applyWillChange=!1,this.resolveKeyframes=(t,e,n,i)=>new this.KeyframeResolver(t,e,n,i,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=mn,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.isRenderScheduled=!1,this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.isRenderScheduled=!1,this.scheduleRender=()=>{this.isRenderScheduled||(this.isRenderScheduled=!0,re.render(this.render,!1,!0))};const{latestValues:a,renderState:c}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=c,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.blockInitialAnimation=Boolean(r),this.isControllingVariants=k(e),this.isVariantNode=j(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:u,...l}=this.scrapeMotionValuesFromProps(e,{},this);for(const d in l){const t=l[d];void 0!==a[d]&&H(t)&&t.set(a[d],!1)}}mount(t){this.current=t,Bs.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.forEac
280h(((t,e)=>this.bindToMotionValue(e,t))),Ms.current||function(){if(Ms.current=!0,D.j)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Os.current=t.matches;t.addListener(e),e()}else Os.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Os.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Bs.delete(this.current),this.projection&&this.projection.unmount(),oe(this.notifyUpdate),oe(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){const e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){const n=q.has(t),i=e.on("change",(e=>{this.latestValues[t]=e,this.props.onUpdate&&re.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)})),r=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,(()=>{i(),r(),e.owner&&e.stop()}))}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in B){const e=B[t];if(!e)continue;const{isEnabled:n,Feature:i}=e;if(!this.features[t]&&i&&n(this.props)&&(this.features[t]=new i(this)),this.features[t]){const e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Gr()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let n=0;n<_s.length;n++){const e=_s[n];this.propEventSubscriptions[e]&&(this.propEventSubscriptions[e](),delete this.propEventSubscriptions[e]);const i=t["on"+e];i&&(this.propEventSubscriptions[e]=this.on(e,i))}this.prevMotionValues=function(t,e,n){for(const i in e){const r=e[i],o=n[i];if(H(r))t.addValue(i,r);else if(H(o))t.addValue(i,ar(r,{owner:t}));else if(o!==r)if(t.hasValue(i)){const e=t.getValue(i);!0===e.liveStyle?e.jump(r):e.hasAnimated||e.set(r)}else{const e=t.getStaticValue(i);t.addValue(i,ar(void 0!==e?e:r,{owner:t}))}}for(const i in n)void 0===e[i]&&t.removeValue(i);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),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 t=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}const e={};for(let n=0;n<Ls;n++){const t=R[n],i=this.props[t];(E(i)||!1===i)&&(e[t]=i)}return e}addVariantChild(t){const e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){const n=this.values.get(t);e!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);const e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=ar(null===e?void 0:e,{owner:this}),this.addValue(t,n)),n}readValue(t,e){var n;let i=void 0===this.latestValues[t]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,t))&&void 0!==n?n:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];var r;return void 0!==i&&null!==i&&("string"===typeof i&&(Ye(i)||Ge(i))?i=parseFloat(i):(r=i,!Ds.find(an(r))&&Mn.test(e)&&(i=Fn(t,e))),this.setBaseTarget(t,H(i)?i.get():i)),H(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:n}=this.props;let i;if("string"===typeof n||"object"===typeof n){const r=zt(this.props,n,null===(e=this.presenceContext)||void 0===e?void 0:e.custom);r&&(i=r[t])}if(n&&void 0!==i)return i;const r=this.getBaseTargetFromProps(this.props,t);return void 0===r||H(r)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:r}on(t,e){return this.events[t]||(this.events[t]=new rr),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class Vs extends Ns{constructor(){super(...arguments),this.KeyframeResolver=$n}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}}class Fs extends Vs{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=Lt}readValueFromInstance(t,e){if(q.has(e)){const t=Vn(e);return t&&t.default||0}{const i=(n=t,window.getComputedStyle(n)),r=(Z(e)?i.getPropertyValue(e):i[e])||0;return"string"===typeof r?r.trim():r}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return ho(t,e)}build(t,e,n){bt(t,e,n.transformTemplate)}scrapeMotionValuesFromProps(t,e,n){return Ft(t,e,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;H(t)&&(this.childSubscription=t.on("change",(t=>{this.current&&(this.current.textContent=`${t}`)})))}}class Us extends Vs{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Gr}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(q.has(e)){const t=Vn(e);return t&&t.default||0}return e=Nt.has(e)?e:l(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,n){return Ut(t,e,n)}
280build(t,e,n){Ot(t,e,this.isSVGTag,n.transformTemplate)}renderInstance(t,e,n,i){Vt(t,e,0,i)}mount(t){this.isSVGTag=Bt(t.tagName),super.mount(t)}}const $s=(t,e)=>$(t)?new Us(e):new Fs(e,{allowProjection:t!==r.Fragment}),zs={...Pr,...Oe,...Is,...{layout:{ProjectionNode:js,MeasureLayout:Co}}},Ws=F(((t,e)=>function(t,{forwardMotionProps:e=!1},n,i){return{...$(t)?ce:ue,preloadedFeatures:n,useRender:_t(e),createVisualElement:i,Component:t}}(t,e,zs,$s)))},48373:function(t,e,n){"use strict";n.d(e,{K:function(){return r},k:function(){return o}});var i=n(66720);let r=i.Z,o=i.Z},64822:function(t,e,n){"use strict";n.d(e,{j:function(){return i}});const i="undefined"!==typeof window},66720:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});const i=t=>t},22246:function(t,e,n){"use strict";n.d(e,{h:function(){return r}});var i=n(2441);function r(t){const e=(0,i.useRef)(null);return null===e.current&&(e.current=t()),e.current}},94966:function(t,e,n){"use strict";n.d(e,{L:function(){return r}});var i=n(2441);const r=n(64822).j?i.useLayoutEffect:i.useEffect},82920:function(t,e,n){"use strict";n.d(e,{W2:function(){return Ke},ev:function(){return s},f3:function(){return z},b2:function(){return K},zY:function(){return H},NT:function(){return Y}});n(79603);function i(t){return("object"==typeof t&&null!==t||"function"==typeof t)&&"function"==typeof t.then}function r(t){switch(typeof t){case"string":case"symbol":return t.toString();case"function":return t.name;default:throw new Error(`Unexpected ${typeof t} service id type`)}}const o=Symbol.for("@inversifyjs/common/islazyServiceIdentifier");class s{[o];#t;constructor(t){this.#t=t,this[o]=!0}static is(t){return"object"==typeof t&&null!==t&&!0===t[o]}unwrap(){return this.#t()}}function a(t,e,n){return Reflect.getOwnMetadata(e,t,n)}function c(t,e,n,i){Reflect.defineMetadata(e,n,t,i)}function u(t,e,n,i,r){const o=i(a(t,e,r)??n());Reflect.defineMetadata(e,o,t,r)}const l="@inversifyjs/container/bindingId";function d(){const t=a(Object,l)??0;return t===Number.MAX_SAFE_INTEGER?c(Object,l,Number.MIN_SAFE_INTEGER):u(Object,l,(()=>t),(t=>t+1)),t}const h={Request:"Request",Singleton:"Singleton",Transient:"Transient"},f={ConstantValue:"ConstantValue",DynamicValue:"DynamicValue",Factory:"Factory",Instance:"Instance",Provider:"Provider",ResolvedValue:"ResolvedValue",ServiceRedirection:"ServiceRedirection"};function*p(...t){for(const e of t)yield*e}class m{#t;#e;#n;constructor(t){this.#t=new Map,this.#e={};for(const e of Reflect.ownKeys(t))this.#e[e]=new Map;this.#n=t}add(t,e){this.#i(t).push(e);for(const n of Reflect.ownKeys(e))this.#r(n,e[n]).push(t)}clone(){const t=this.#o(),e=this.#s(),n=Reflect.ownKeys(this.#n),i=this._buildNewInstance(this.#n);this.#a(this.#t,i.#t,t,e);for(const r of n)this.#c(this.#e[r],i.#e[r],t);return i}get(t,e){return this.#e[t].get(e)}getAllKeys(t){return this.#e[t].keys()}removeByRelation(t,e){const n=this.get(t,e);if(void 0===n)return;const i=new Set(n);for(const r of i){const n=this.#t.get(r);if(void 0===n)throw new Error("Expecting model relation, none found");for(const i of n)i[t]===e&&this.#u(r,i);this.#t.delete(r)}}_buildNewInstance(t){return new m(t)}_cloneModel(t){return t}_cloneRelation(t){return t}#o(){const t=new Map;for(const e of this.#t.keys()){const n=this._cloneModel(e);t.set(e,n)}return t}#s(){const t=new Map;for(const e of this.#t.values())for(const n of e){const e=this._cloneRelation(n);t.set(n,e)}return t}#i(t){let e=this.#t.get(t);return void 0===e&&(e=[],this.#t.set(t,e)),e}#r(t,e){let n=this.#e[t].get(e);return void 0===n&&(n=[],this.#e[t].set(e,n)),n}#l(t,e){const n=e.get(t);if(void 0===n)throw new Error("Expecting model to be cloned, none found");return n}#d(t,e){const n=e.get(t);if(void 0===n)throw new Error("Expecting relation to be cloned, none found");return n}#c(t,e,n){for(const[i,r]of t){const t=new Array;for(const e of r)t.push(this.#l(e,n));e.set(i,t)}}#a(t,e,n,i){for(const[r,o]of t){const t=new Array;for(const e of o)t.push(this.#d(e,i));e.set(this.#l(r,n),t)}}#u(t,e){for(const n of Reflect.ownKeys(e))this.#h(t,n,e[n])}#h(t,e,n){const i=this.#e[e].get(n);if(void 0!==i){const r=i.indexOf(t);-1!==r&&i.splice(r,1),0===i.length&&this.#e[e].delete(n)}}}var v,g,y;!function(t){t.moduleId="moduleId",t.serviceId="serviceId"}(v||(v={}));class w{#f;#p;constructor(t,e){this.#f=e??new m({moduleId:{isOptional:!0},serviceId:{isOptional:!1}}),this.#p=t}static build(t){return new w(t)}add(t,e){this.#f.add(t,e)}clone(){return new w(this.#p,this.#f.clone())}get(t){const e=[],n=this.#f.get(v.serviceId,t);void 0!==n&&e.push(n);const i=this.#p()?.get(t);if(void 0!==i&&e.push(i),0!==e.length)return p(...e)}removeAllByModuleId(t){this.#f.removeByRelation(v.moduleId,t)}removeAllByServiceId(t){this.#f.removeByRelation(v.serviceId,t)}}function b(t){return t.isRight?{isRight:!0,value:t.value}:t}!function(t){t.id="id",t.moduleId="moduleId",t.serviceId="serviceId"}(g||(g={}));class x extends m{_buildNewInstance(t){return new x(t)}_cloneModel(t){return function(t){switch(t.type){case f.ConstantValue:case f.DynamicValue:return function(t){return{cache:b(t.cache),id:t.id,isSatisfiedBy:t.isSatisfiedBy,moduleId:t.moduleId,onActivation:t.onActivation,onDeactivation:t.onDeactivation,scope:t.scope,serviceIdentifier:t.serviceIdentifier,type:t.type,value:t.value}}(t);case f.Factory:return function(t){return{cache:b(t.cache),factory:t.factory,id:t.id,isSatisfiedBy:t.isSatisfiedBy,moduleId:t.moduleId,onActivation:t.onActivation,onDeactivation:t.onDeactivation,scope:t.scope,serviceIdentifier:t.serviceIdentifier,type:t.type}}(t);case f.Instance:return function(t){return{cache:b(t.cache),id:t.id,implementationType:t.implementationType,isSatisfiedBy:t.isSatisfiedBy,moduleId:t.moduleId,onActivation:t.onActivation,onDeactivation:t.onDeactivation,scope:t.scope,serviceIdentifier:t.serviceIdentifier,type:t.type}}(t);case f.Provider:return function(t){return{cache:b(t.cache),id:t.id,isSatisfiedBy:t.isSatisfiedBy,moduleId:t.moduleId,onActivation:t.onActivation,onDeactivation:t.onDeactivation,provider:t.provider,scope:t.scope,serviceIdentifier:t.serviceIdentifier,type:t.type}}(t);case f.ResolvedValue:return function(t){return{cache:b(t.cache),factory:t.factory,id:t.id,isSatisfiedBy:t.isSatisfiedBy,metadata:t.metadata,moduleId:t.moduleId,onActivation:t.onActivation,onDeactivation:t.onDeactivation,scope:t.scope,serviceIdentifier:t.serviceIdentifier,type:t.type}}(t);case f.ServiceRedirection:return function(t){return{id:t.id,isSatisfiedBy:t.isSatisfiedBy,moduleId:t.moduleId,serviceIdentifier:t.serviceIdentifier,targetServiceIdentifier:t.targetServiceIdentifier,type:t.type}}(t)}}(t)}}class S{#m;#p;constructor(t,e){this.#m=e??new x({id:{isOptional:!1},moduleId:{isOptional:!0},serviceId:{isOptional:!1}}),this.#p=t}static build(t){return new S(t)}clone(){return new S(this.#p,this.#m.clone())}get(t){return this.getNonParentBindings(t)??this.#p()?.get(t)}*getChained(t){const e=this.getNonParentBindings(t);void 0!==e&&(yield*e);const n=this.#p();void 0!==n&&(yield*n.getChained(t))}getBoundServices(){const t=new Set(this.#m.getAllKeys(g.serviceId)),e=this.#p();if(void 0!==e)for(const n of e.getBoundServices())t.add(n);return t}getById(t){return this.#m.get(g.id,t)??this.#p()?.getById(t)}getByModuleId(t){return this.#m.get(g.moduleId,t)??this.#p()?.getByModuleId(t)}getNonParentBindings(t){return this.#m.get(g.serviceId,t)}getNonParentBoundServices(){return this.#m.getAllKeys(g.serviceId)}removeById(t){this.#m.removeByRelation(g.id,t)}removeAllByModuleId(t){this.#m.removeByRelation(g.moduleId,t)}removeAllByServiceId(t){this.#m.removeByRelation(g.serviceId,t)}set(t){const e={[g.id]:t.id,[g.serviceId]:t.serviceIdentifier};void 0!==t.moduleId&&(e[g.moduleId]=t.moduleId),this.#m.add(t,e)}}!function(t){t.moduleId="moduleId",t.serviceId="serviceId"}(y||(y={}));class P{#v;#p;constructor(t,e){this.#v=e??new m({moduleId:{isOptional:!0},serviceId:{isOptional:!1}}),this.#p=t}static build(t){return new P(t)}add(t,e){this.#v.add(t,e)}clone(){return new P(this.#p,this.#v.clone())}get(t){const e=[],n=this.#v.get(y.serviceId,t);void 0!==n&&e.push(n);const i=this.#p()?.get(t);if(void 0!==i&&e.push(i),0!==e.length)return p(...e)}removeAllByModuleId(t){this.#v.removeByRelation(y.moduleId,t)}removeAllByServiceId(t){this.#v.removeByRelation(y.serviceId,t)}}const C="@inversifyjs/core/classMetadataReflectKey";function E(){return{constructorArguments:[],lifecycle:{postConstructMethodName:void 0,preDestroyMethodName:void 0},properties:new Map,scope:void 0}}const A="@inversifyjs/core/pendingClassMetadataCountReflectKey",T=Symbol.for("@inversifyjs/core/InversifyCoreError");
280class R extends Error{[T];kind;constructor(t,e,n){super(e,n),this[T]=!0,this.kind=t}static is(t){return"object"==typeof t&&null!==t&&!0===t[T]}static isErrorOfKind(t,e){return R.is(t)&&t.kind===e}}var k,j,I;function O(t){const e=a(t,C)??E();if(!function(t){const e=a(t,A);return void 0!==e&&0!==e}(t))return function(t,e){const n=[];if(e.length<t.length)throw new R(k.missingInjectionDecorator,`Found unexpected missing metadata on type "${t.name}". "${t.name}" constructor requires at least ${t.length.toString()} arguments, found ${e.length.toString()} instead.\nAre you using @inject, @multiInject or @unmanaged decorators in every non optional constructor argument?\n\nIf you're using typescript and want to rely on auto injection, set "emitDecoratorMetadata" compiler option to true`);for(let i=0;i<e.length;++i)void 0===e[i]&&n.push(i);if(n.length>0)throw new R(k.missingInjectionDecorator,`Found unexpected missing metadata on type "${t.name}" at constructor indexes "${n.join('", "')}".\n\nAre you using @inject, @multiInject or @unmanaged decorators at those indexes?\n\nIf you're using typescript and want to rely on auto injection, set "emitDecoratorMetadata" compiler option to true`)}(t,e.constructorArguments),e;!function(t,e){const n=[];for(let i=0;i<e.constructorArguments.length;++i){const r=e.constructorArguments[i];void 0!==r&&r.kind!==j.unknown||n.push(`  - Missing or incomplete metadata for type "${t.name}" at constructor argument with index ${i.toString()}.\nEvery constructor parameter must be decorated either with @inject, @multiInject or @unmanaged decorator.`)}for(const[i,r]of e.properties)r.kind===j.unknown&&n.push(`  - Missing or incomplete metadata for type "${t.name}" at property "${i.toString()}".\nThis property must be decorated either with @inject or @multiInject decorator.`);if(0===n.length)throw new R(k.unknown,`Unexpected class metadata for type "${t.name}" with uncompletion traces.\nThis might be caused by one of the following reasons:\n\n1. A third party library is targeting inversify reflection metadata.\n2. A bug is causing the issue. Consider submiting an issue to fix it.`);throw new R(k.missingInjectionDecorator,`Invalid class metadata at type ${t.name}:\n\n${n.join("\n\n")}`)}(t,e)}function M(){return 0}function B(t){return e=>{void 0!==e&&e.kind===j.unknown&&u(t,A,M,(t=>t-1))}}function D(t,e){return(...n)=>i=>{if(void 0===i)return t(...n);if(i.kind===I.unmanaged)throw new R(k.injectionDecoratorConflict,"Unexpected injection found. Multiple @inject, @multiInject or @unmanaged decorators found");return e(i,...n)}}function _(t){if(t.kind!==j.unknown&&!0!==t.isFromTypescriptParamType)throw new R(k.injectionDecoratorConflict,"Unexpected injection found. Multiple @inject, @multiInject or @unmanaged decorators found")}!function(t){t[t.injectionDecoratorConflict=0]="injectionDecoratorConflict",t[t.missingInjectionDecorator=1]="missingInjectionDecorator",t[t.planning=2]="planning",t[t.resolution=3]="resolution",t[t.unknown=4]="unknown"}(k||(k={})),function(t){t[t.unknown=32]="unknown"}(j||(j={})),function(t){t[t.multipleInjection=0]="multipleInjection",t[t.singleInjection=1]="singleInjection",t[t.unmanaged=2]="unmanaged"}(I||(I={}));const L=D((function(t,e,n){return t===I.multipleInjection?{chained:n?.chained??!1,kind:t,name:void 0,optional:!1,tags:new Map,value:e}:{kind:t,name:void 0,optional:!1,tags:new Map,value:e}}),(function(t,e,n,i){return _(t),e===I.multipleInjection?{...t,chained:i?.chained??!1,kind:e,value:n}:{...t,kind:e,value:n}}));function N(t,e){return n=>{const i=n.properties.get(e);return n.properties.set(e,t(i)),n}}var V;function F(t,e,n,i){if(R.isErrorOfKind(i,k.injectionDecoratorConflict)){const r=function(t,e,n){if(void 0===n){if(void 0===e)throw new R(k.unknown,"Unexpected undefined property and index values");return{kind:V.property,property:e,targetClass:t.constructor}}return"number"==typeof n?{index:n,kind:V.parameter,targetClass:t}:{kind:V.method,method:e,targetClass:t}}(t,e,n);throw new R(k.injectionDecoratorConflict,`Unexpected injection error.\n\nCause:\n\n${i.message}\n\nDetails\n\n${function(t){switch(t.kind){case V.method:return`[class: "${t.targetClass.name}", method: "${t.method.toString()}"]`;case V.parameter:return`[class: "${t.targetClass.name}", index: "${t.index.toString()}"]`;case V.property:return`[class: "${t.targetClass.name}", property: "${t.property.toString()}"]`}}(r)}`,{cause:i})}throw i}function U(t,e){return(n,i,r)=>{try{void 0===r?function(t,e){const n=$(t,e);return(t,e)=>{u(t.constructor,C,E,N(n(t),e))}}(t,e)(n,i):"number"==typeof r?function(t,e){const n=$(t,e);return(t,e,i)=>{if(!function(t,e){return"function"==typeof t&&void 0===e}(t,e))throw new R(k.injectionDecoratorConflict,`Found an @inject decorator in a non constructor parameter.\nFound @inject decorator at method "${e?.toString()??""}" at class "${t.constructor.name}"`);u(t,C,E,function(t,e){return n=>{const i=n.constructorArguments[e];return n.constructorArguments[e]=t(i),n}}(n(t),i))}}(t,e)(n,i,r):function(t,e){const n=$(t,e);return(t,e,i)=>{if(!function(t){return void 0!==t.set}(i))throw new R(k.injectionDecoratorConflict,`Found an @inject decorator in a non setter property method.\nFound @inject decorator at method "${e.toString()}" at class "${t.constructor.name}"`);u(t.constructor,C,E,N(n(t),e))}}(t,e)(n,i,r)}catch(t){F(n,i,r,t)}}}function $(t,e){return n=>{const i=e(n);return e=>(i(e),t(e))}}function z(t){return U(L(I.singleInjection,t),B)}!function(t){t[t.method=0]="method",t[t.parameter=1]="parameter",t[t.property=2]="property"}(V||(V={}));const W="@inversifyjs/core/classIsInjectableFlagReflectKey",q=[Array,BigInt,Boolean,Function,Number,Object,String];function K(t){return e=>{!function(t){if(void 0!==a(t,W))throw new R(k.injectionDecoratorConflict,`Cannot apply @injectable decorator multiple times at class "${t.name}"`);c(t,W,!0)}(e),function(t){const e=a(t,"design:paramtypes");void 0!==e&&u(t,C,E,function(t){return e=>(t.forEach(((t,n)=>{var i;void 0!==e.constructorArguments[n]||(i=t,q.includes(i))||(e.constructorArguments[n]=function(t){return{isFromTypescriptParamType:!0,kind:I.singleInjection,name:void 0,optional:!1,tags:new Map,value:t}}(t))})),e)}(e))}(e),void 0!==t&&u(e,C,E,(e=>({...e,scope:t})))}}function H(){return(t,e,n)=>{try{u(t.constructor,C,E,(i=e,t=>{if(void 0!==t.lifecycle.postConstructMethodName)throw new R(k.injectionDecoratorConflict,"Unexpected duplicated postConstruct decorator");return t.lifecycle.postConstructMethodName=i,t}))}catch(r){F(t,e,void 0,r)}var i}}function G(){return{kind:I.unmanaged}}const X=D(G,(function(t){if(_(t),function(t){return void 0!==t.name||t.optional||t.tags.size>0}(t))throw new R(k.injectionDecoratorConflict,"Unexpected injection found. Found @unmanaged injection with additional @named, @optional, @tagged or @targetName injections");return G()}));function Y(){return U(X(),B)}var Z;function J(t){return t instanceof Error&&(t instanceof RangeError&&/stack space|call stack|too much recursion/i.test(t.message)||"InternalError"===t.name&&/too much recursion/.test(t.message))}!function(t){t[t.multipleInjection=0]="multipleInjection",t[t.singleInjection=1]="singleInjection"}(Z||(Z={}));const Q=Symbol.for("@inversifyjs/core/LazyPlanServiceNode");class tt{[Q];_serviceIdentifier;_serviceNode;constructor(t,e){this[Q]=!0,this._serviceNode=t,this._serviceIdentifier=e}get bindings(){return this._getNode().bindings}get isContextFree(){return this._getNode().isContextFree}get serviceIdentifier(){return this._serviceIdentifier}set bindings(t){this._getNode().bindings=t}set isContextFree(t){this._getNode().isContextFree=t}static is(t){return"object"==typeof t&&null!==t&&!0===t[Q]}invalidate(){this._serviceNode=void 0}isExpanded(){return void 0!==this._serviceNode}_getNode(){return void 0===this._serviceNode&&(this._serviceNode=this._buildPlanServiceNode()),this._serviceNode}}class et{#g;constructor(t){this.#g=t}get name(){return this.#g.elem.name}get serviceIdentifier(){return this.#g.elem.serviceIdentifier}get tags(){return this.#g.elem.tags}getAncestor(){if(this.#g.elem.getAncestorsCalled=!0,void 0!==this.#g.previous)return new et(this.#g.previous)}}function nt(t,e,n){const i=n?.customServiceIdentifier??e.serviceIdentifier,r=(!0===n?.chained?[...t.operations.getBindingsChained(i)]:[...t.operations.getBindings(i)??[]]).filter((t=>t.isSatisfiedBy(e)));if(0===r.length&&void 0!==t.autobindOptions&&"function"==typeof i){const e=function(t,e){const n=O(e).scope??t.scope;return{cache:{isRight:!1,value:void 0},id:d(),implementationType:e,isSatisfiedBy:()=>!0,moduleId:void 0,onActivation:void 0,onDeactivation:void 0,scope:n,serviceIdentifier:e,type:f.Instance}}(t.autobindOptions,i);t.operations.setBinding(e),r.push(e)}return r}class it{last;constructor(t){this.last=t}concat(t){return new it({elem:t,previous:this.last})}[Symbol.iterator](){let t=this.last;return{next:()=>{if(void 0===t)return{done:!0,value:void 0};const e=t.elem;return t=t.previous,{done:!1,value:e}}}}}function rt(t){const e=new Map;return void 0!==t.rootConstraints.tag&&e.set(t.rootConstraints.tag.key,t.rootConstraints.tag.value),new it({elem:{getAncestorsCalled:!1,name:t.rootConstraints.name,serviceIdentifier:t.rootConstraints.serviceIdentifier,tags:e},previous:void 0})}function ot(t){return void 0!==t.redirections}function st(t,e,n,i){const o=n.elem.serviceIdentifier,s=n.previous?.elem.serviceIdentifier;
280Array.isArray(t)?function(t,e,n,i,o,s){if(0!==t.length){const e=`Ambiguous bindings found for service: "${r(s[s.length-1]??n)}".${lt(s)}\n\nRegistered bindings:\n\n${t.map((t=>function(t){switch(t.type){case f.Instance:return`[ type: "${t.type}", serviceIdentifier: "${r(t.serviceIdentifier)}", scope: "${t.scope}", implementationType: "${t.implementationType.name}" ]`;case f.ServiceRedirection:return`[ type: "${t.type}", serviceIdentifier: "${r(t.serviceIdentifier)}", redirection: "${r(t.targetServiceIdentifier)}" ]`;default:return`[ type: "${t.type}", serviceIdentifier: "${r(t.serviceIdentifier)}", scope: "${t.scope}" ]`}}(t.binding))).join("\n")}\n\nTrying to resolve bindings for "${ct(n,i)}".${ut(o)}`;throw new R(k.planning,e)}e||at(n,i,o,s)}(t,e,o,s,n.elem,i):function(t,e,n,i,r,o){void 0!==t||e||at(n,i,r,o)}(t,e,o,s,n.elem,i)}function at(t,e,n,i){const o=`No bindings found for service: "${r(i[i.length-1]??t)}".\n\nTrying to resolve bindings for "${ct(t,e)}".${lt(i)}${ut(n)}`;throw new R(k.planning,o)}function ct(t,e){return void 0===e?`${r(t)} (Root service)`:r(e)}function ut(t){const e=0===t.tags.size?"":`\n- tags:\n  - ${[...t.tags.keys()].map((t=>t.toString())).join("\n  - ")}`;return`\n\nBinding constraints:\n- service identifier: ${r(t.serviceIdentifier)}\n- name: ${t.name?.toString()??"-"}${e}`}function lt(t){return 0===t.length?"":`\n\n- service redirections:\n  - ${t.map((t=>r(t))).join("\n  - ")}`}function dt(t,e,n,i){if(1!==t.redirections.length)st(t.redirections,e,n,i);else{const[r]=t.redirections;ot(r)&&dt(r,e,n,[...i,r.binding.targetServiceIdentifier])}}function ht(t,e,n){if(Array.isArray(t.bindings)&&1===t.bindings.length){const[i]=t.bindings;ot(i)&&dt(i,e,n,[i.binding.targetServiceIdentifier])}else st(t.bindings,e,n,[])}function ft(t){return s.is(t)?t.unwrap():t}function pt(t){return(e,n,i)=>{const r=ft(i.value),o=n.concat({getAncestorsCalled:!1,name:i.name,serviceIdentifier:r,tags:i.tags}),s=new et(o.last),a=i.kind===I.multipleInjection&&i.chained,c=nt(e,s,{chained:a}),u=[],l={bindings:u,isContextFree:!0,serviceIdentifier:r};if(u.push(...t(e,o,c,l,a)),l.isContextFree=!o.last.elem.getAncestorsCalled,i.kind===I.singleInjection){ht(l,i.optional,o.last);const[t]=u;l.bindings=t}return l}}function mt(t){return(e,n,i)=>{const r=ft(i.value),o=n.concat({getAncestorsCalled:!1,name:i.name,serviceIdentifier:r,tags:i.tags}),s=new et(o.last),a=i.kind===Z.multipleInjection&&i.chained,c=nt(e,s,{chained:a}),u=[],l={bindings:u,isContextFree:!0,serviceIdentifier:r};if(u.push(...t(e,o,c,l,a)),l.isContextFree=!o.last.elem.getAncestorsCalled,i.kind===Z.singleInjection){ht(l,i.optional,o.last);const[t]=u;l.bindings=t}return l}}function vt(t){const e=function(t){return(e,n,i)=>{const r={binding:n,classMetadata:e.operations.getClassMetadata(n.implementationType),constructorParams:[],propertyParams:new Map},o={autobindOptions:e.autobindOptions,node:r,operations:e.operations,servicesBranch:e.servicesBranch};return t(o,i)}}(t),n=function(t){return(e,n,i)=>{const r={binding:n,params:[]},o={autobindOptions:e.autobindOptions,node:r,operations:e.operations,servicesBranch:e.servicesBranch};return t(o,i)}}(t),i=(t,i,o,s,a)=>{const c=ot(s)?s.binding.targetServiceIdentifier:s.serviceIdentifier;t.servicesBranch.push(c);const u=[];for(const l of o)switch(l.type){case f.Instance:u.push(e(t,l,i));break;case f.ResolvedValue:u.push(n(t,l,i));break;case f.ServiceRedirection:{const e=r(t,i,l,a);u.push(e);break}default:u.push({binding:l})}return t.servicesBranch.pop(),u},r=function(t){return(e,n,i,r)=>{const o={binding:i,redirections:[]},s=nt(e,new et(n.last),{chained:r,customServiceIdentifier:i.targetServiceIdentifier});return o.redirections.push(...t(e,n,s,o,r)),o}}(i);return i}function gt(t,e,n,i){if(void 0!==t&&(tt.is(n)&&!n.isExpanded()||n.isContextFree)){const i={tree:{root:n}};e.setPlan(t,i)}else e.setNonCachedServiceNode(n,i)}class yt extends tt{#y;#w;#b;#x;constructor(t,e,n,i,r){super(r,ft(i.value)),this.#w=e,this.#y=t,this.#b=n,this.#x=i}_buildPlanServiceNode(){return this.#w(this.#y,this.#b,this.#x)}}class wt extends tt{#y;#S;#b;#P;constructor(t,e,n,i,r){super(r,ft(i.value)),this.#y=t,this.#S=e,this.#b=n,this.#P=i}_buildPlanServiceNode(){return this.#S(this.#y,this.#b,this.#P)}}function bt(t,e,n,i){const r=function(t,e){const n=function(t,e){return(n,i,r)=>{if(r.kind===I.unmanaged)return;const o=function(t){let e;if(0===t.tags.size)e=void 0;else{if(1!==t.tags.size)return;{const[n,i]=t.tags.entries().next().value;e={key:n,value:i}}}const n=s.is(t.value)?t.value.unwrap():t.value;return t.kind===I.multipleInjection?{chained:t.chained,isMultiple:!0,name:t.name,optional:t.optional,serviceIdentifier:n,tag:e}:{isMultiple:!1,name:t.name,optional:t.optional,serviceIdentifier:n,tag:e}}(r);if(void 0!==o){const t=n.operations.getPlan(o);if(void 0!==t&&t.tree.root.isContextFree)return t.tree.root}const a=e(n,i,r),c=new yt(n,t,i,r,a);return gt(o,n.operations,c,{bindingConstraintsList:i,chainedBindings:r.kind===I.multipleInjection&&r.chained,optionalBindings:r.optional}),c}}(t,e);return(t,e,i)=>{const r=e.classMetadata;for(const[o,s]of r.constructorArguments.entries())e.constructorParams[o]=n(t,i,s);for(const[o,s]of r.properties){const r=n(t,i,s);void 0!==r&&e.propertyParams.set(o,r)}return t.node}}(t,n),o=function(t,e){const n=function(t,e){return(n,i,r)=>{const o=function(t){let e;if(0===t.tags.size)e=void 0;else{if(1!==t.tags.size)return;{const[n,i]=t.tags.entries().next().value;e={key:n,value:i}}}const n=s.is(t.value)?t.value.unwrap():t.value;return t.kind===Z.multipleInjection?{chained:t.chained,isMultiple:!0,name:t.name,optional:t.optional,serviceIdentifier:n,tag:e}:{isMultiple:!1,name:t.name,optional:t.optional,serviceIdentifier:n,tag:e}}(r);if(void 0!==o){const t=n.operations.getPlan(o);if(void 0!==t&&t.tree.root.isContextFree)return t.tree.root}const a=e(n,i,r),c=new wt(n,t,i,r,a);return gt(o,n.operations,c,{bindingConstraintsList:i,chainedBindings:r.kind===Z.multipleInjection&&r.chained,optionalBindings:r.optional}),c}}(t,e);return(t,e,i)=>{const r=e.binding.metadata;for(const[o,s]of r.arguments.entries())e.params[o]=n(t,i,s);return t.node}}(e,i);return(t,e)=>t.node.binding.type===f.Instance?r(t,t.node,e):o(t,t.node,e)}class xt extends tt{#y;constructor(t,e){super(e,e.serviceIdentifier),this.#y=t}_buildPlanServiceNode(){return At(this.#y)}}const St=pt(Et),Pt=mt(Et),Ct=vt(bt(St,Pt,St,Pt));function Et(t,e,n,i,r){return Ct(t,e,n,i,r)}const At=function(t){return e=>{const n=rt(e),i=new et(n.last),r=e.rootConstraints.isMultiple&&e.rootConstraints.chained,o=nt(e,i,{chained:r}),s=[],a={bindings:s,isContextFree:!0,serviceIdentifier:e.rootConstraints.serviceIdentifier};if(s.push(...t(e,n,o,a,r)),a.isContextFree=!n.last.elem.getAncestorsCalled,!e.rootConstraints.isMultiple){ht(a,e.rootConstraints.isOptional??!1,n.last);const[t]=s;a.bindings=t}return a}}(Ct);function Tt(t){try{const e=function(t){return t.rootConstraints.isMultiple?{chained:t.rootConstraints.chained,isMultiple:!0,name:t.rootConstraints.name,optional:t.rootConstraints.isOptional??!1,serviceIdentifier:t.rootConstraints.serviceIdentifier,tag:t.rootConstraints.tag}:{isMultiple:!1,name:t.rootConstraints.name,optional:t.rootConstraints.isOptional??!1,serviceIdentifier:t.rootConstraints.serviceIdentifier,tag:t.rootConstraints.tag}}(t),n=t.operations.getPlan(e);if(void 0!==n)return n;const i=At(t),r={tree:{root:new xt(t,i)}};return t.operations.setPlan(e,r),r}catch(e){!function(t,e){if(J(e)){const n=function(t){const e=[...t];return 0===e.length?"(No dependency trace)":e.map(r).join(" -> ")}(function(t){const e=new Set;for(const n of t.servicesBranch){if(e.has(n))return[...e,n];e.add(n)}return[...e]}(t));
280throw new R(k.planning,`Circular dependency found: ${n}`,{cause:e})}throw e}(t,e)}}var Rt;!function(t){t.bindingAdded="bindingAdded",t.bindingRemoved="bindingRemoved"}(Rt||(Rt={}));class kt{#C;#E;#A;constructor(){this.#C=[],this.#E=8,this.#A=1024}*[Symbol.iterator](){let t=0;for(const e of this.#C){const n=e.deref();void 0===n?++t:yield n}this.#C.length>=this.#E&&this.#T(t)&&this.#R(t)}push(t){const e=new WeakRef(t);if(this.#C.push(e),this.#C.length>=this.#E&&this.#C.length%this.#A===0){let t=0;for(const e of this.#C)void 0===e.deref()&&++t;this.#T(t)&&this.#R(t)}}#R(t){const e=new Array(this.#C.length-t);let n=0;for(const i of this.#C)i.deref()&&(e[n++]=i);this.#C=e}#T(t){return t>=.5*this.#C.length}}const jt=vt(bt(St,Pt,(function(t,e,n){return It(t,e,n)}),(function(t,e,n){return Ot(t,e,n)}))),It=function(t){const e=pt(t);return(t,n,i)=>{try{return e(t,n,i)}catch(t){if(R.isErrorOfKind(t,k.planning))return;throw t}}}(jt),Ot=function(t){const e=mt(t);return(t,n,i)=>{try{return e(t,n,i)}catch(t){if(R.isErrorOfKind(t,k.planning))return;throw t}}}(jt);function Mt(t,e,n,i,r){if(tt.is(e)&&!e.isExpanded())return{isContextFreeBinding:!0,shouldInvalidateServiceNode:!1};const o=new et(i.last);return!n.isSatisfiedBy(o)||i.last.elem.getAncestorsCalled?{isContextFreeBinding:!i.last.elem.getAncestorsCalled,shouldInvalidateServiceNode:!1}:function(t,e,n,i,r){let o;try{[o]=jt(t,i,[n],e,r)}catch(t){if(J(t))return{isContextFreeBinding:!1,shouldInvalidateServiceNode:!0};throw t}return function(t,e){if(Array.isArray(t.bindings))t.bindings.push(e);else{if(void 0!==t.bindings){if(!tt.is(t))throw new R(k.planning,"Unexpected non-lazy plan service node. This is likely a bug in the planning logic. Please, report this issue");return{isContextFreeBinding:!0,shouldInvalidateServiceNode:!0}}t.bindings=e}return{isContextFreeBinding:!0,shouldInvalidateServiceNode:!1}}(e,o)}(t,e,n,i,r)}function Bt(t,e,n,i){if(tt.is(t)&&!t.isExpanded())return{bindingNodeRemoved:void 0,isContextFreeBinding:!0};const r=new et(n.last);if(!e.isSatisfiedBy(r)||n.last.elem.getAncestorsCalled)return{bindingNodeRemoved:void 0,isContextFreeBinding:!n.last.elem.getAncestorsCalled};let o;if(Array.isArray(t.bindings))t.bindings=t.bindings.filter((t=>t.binding!==e||(o=t,!1)));else if(t.bindings?.binding===e)if(o=t.bindings,i)t.bindings=void 0;else{if(!tt.is(t))throw new R(k.planning,"Unexpected non-lazy plan service node. This is likely a bug in the planning logic. Please, report this issue");t.invalidate()}return{bindingNodeRemoved:o,isContextFreeBinding:!0}}class Dt{#k;#j;#I;#O;#M;#B;constructor(){this.#k=new Map,this.#j=this.#D(),this.#I=this.#D(),this.#O=this.#D(),this.#M=this.#D(),this.#B=new kt}clearCache(){for(const t of this.#_())t.clear();for(const t of this.#B)t.clearCache()}get(t){return void 0===t.name?void 0===t.tag?this.#L(this.#j,t).get(t.serviceIdentifier):this.#L(this.#M,t).get(t.serviceIdentifier)?.get(t.tag.key)?.get(t.tag.value):void 0===t.tag?this.#L(this.#I,t).get(t.serviceIdentifier)?.get(t.name):this.#L(this.#O,t).get(t.serviceIdentifier)?.get(t.name)?.get(t.tag.key)?.get(t.tag.value)}invalidateServiceBinding(t){this.#N(t),this.#V(t),this.#F(t),this.#U(t),this.#$(t);for(const e of this.#B)e.invalidateServiceBinding(t)}set(t,e){void 0===t.name?void 0===t.tag?this.#L(this.#j,t).set(t.serviceIdentifier,e):this.#z(this.#z(this.#L(this.#M,t),t.serviceIdentifier),t.tag.key).set(t.tag.value,e):void 0===t.tag?this.#z(this.#L(this.#I,t),t.serviceIdentifier).set(t.name,e):this.#z(this.#z(this.#z(this.#L(this.#O,t),t.serviceIdentifier),t.name),t.tag.key).set(t.tag.value,e)}setNonCachedServiceNode(t,e){let n=this.#k.get(t.serviceIdentifier);void 0===n&&(n=new Map,this.#k.set(t.serviceIdentifier,n)),n.set(t,e)}subscribe(t){this.#B.push(t)}#D(){const t=new Array(8);for(let e=0;e<t.length;++e)t[e]=new Map;return t}#W(t,e,n,i){const r=!!(2&e);let o;return o=r?{chained:!!(0&e),isMultiple:r,serviceIdentifier:t.binding.serviceIdentifier}:{isMultiple:r,serviceIdentifier:t.binding.serviceIdentifier},!!(1&e)&&(o.isOptional=!0),void 0!==n&&(o.name=n),void 0!==i&&(o.tag=i),{autobindOptions:void 0,operations:t.operations,rootConstraints:o,servicesBranch:[]}}#z(t,e){let n=t.get(e);return void 0===n&&(n=new Map,t.set(e,n)),n}#L(t,e){return t[this.#q(e)]}#_(){return[this.#k,...this.#j,...this.#I,...this.#O,...this.#M]}#q(t){return t.isMultiple?(t.chained?4:0)|(t.optional?1:0)|2:t.optional?1:0}#V(t){for(const[e,n]of this.#I.entries()){const i=n.get(t.binding.serviceIdentifier);if(void 0!==i)for(const[n,r]of i.entries())this.#K(t,r,e,n,void 0)}}#F(t){for(const[e,n]of this.#O.entries()){const i=n.get(t.binding.serviceIdentifier);if(void 0!==i)for(const[n,r]of i.entries())for(const[i,o]of r.entries())for(const[r,s]of o.entries())this.#K(t,s,e,n,{key:i,value:r})}}#H(t){switch(t.binding.type){case f.ServiceRedirection:for(const e of t.redirections)this.#H(e);break;case f.Instance:for(const e of t.constructorParams)void 0!==e&&this.#G(e);for(const e of t.propertyParams.values())this.#G(e);break;case f.ResolvedValue:for(const e of t.params)this.#G(e)}}#G(t){const e=this.#k.get(t.serviceIdentifier);void 0!==e&&e.has(t)&&(e.delete(t),this.#X(t))}#X(t){if((!tt.is(t)||t.isExpanded())&&void 0!==t.bindings)if(Array.isArray(t.bindings))for(const e of t.bindings)this.#H(e);else this.#H(t.bindings)}#$(t){const e=this.#k.get(t.binding.serviceIdentifier);if(void 0!==e)switch(t.kind){case Rt.bindingAdded:for(const[n,i]of e){const e=Mt({autobindOptions:void 0,operations:t.operations,servicesBranch:[]},n,t.binding,i.bindingConstraintsList,i.chainedBindings);e.isContextFreeBinding?e.shouldInvalidateServiceNode&&tt.is(n)&&(this.#X(n),n.invalidate()):this.clearCache()}break;case Rt.bindingRemoved:for(const[n,i]of e){const e=Bt(n,t.binding,i.bindingConstraintsList,i.optionalBindings);e.isContextFreeBinding?void 0!==e.bindingNodeRemoved&&this.#H(e.bindingNodeRemoved):this.clearCache()}}}
280#N(t){for(const[e,n]of this.#j.entries()){const i=n.get(t.binding.serviceIdentifier);this.#K(t,i,e,void 0,void 0)}}#U(t){for(const[e,n]of this.#M.entries()){const i=n.get(t.binding.serviceIdentifier);if(void 0!==i)for(const[n,r]of i.entries())for(const[i,o]of r.entries())this.#K(t,o,e,void 0,{key:n,value:i})}}#K(t,e,n,i,r){if(void 0!==e&&tt.is(e.tree.root)){const c=this.#W(t,n,i,r);switch(t.kind){case Rt.bindingAdded:{const n=(o=c,s=e.tree.root,a=t.binding,tt.is(s)&&!s.isExpanded()?{isContextFreeBinding:!0,shouldInvalidateServiceNode:!1}:Mt(o,s,a,rt(o),o.rootConstraints.isMultiple&&o.rootConstraints.chained));n.isContextFreeBinding?n.shouldInvalidateServiceNode&&(this.#X(e.tree.root),e.tree.root.invalidate()):this.clearCache()}break;case Rt.bindingRemoved:{const n=function(t,e,n){return tt.is(e)&&!e.isExpanded()?{bindingNodeRemoved:void 0,isContextFreeBinding:!0}:Bt(e,n,rt(t),t.rootConstraints.isOptional??!1)}(c,e.tree.root,t.binding);n.isContextFreeBinding?void 0!==n.bindingNodeRemoved&&this.#H(n.bindingNodeRemoved):this.clearCache()}}}var o,s,a}}function _t(t,e){return i(e)?(t.cache={isRight:!0,value:e},e.then((e=>Lt(t,e)))):Lt(t,e)}function Lt(t,e){return t.cache={isRight:!0,value:e},e}async function Nt(t,e,n){let i=await e,r=n.next();for(;!0!==r.done;)i=await r.value(t.context,i),r=n.next();return i}function Vt(t,e,n){let r=n;if(void 0!==e.onActivation){const n=e.onActivation;r=i(r)?r.then((e=>n(t.context,e))):n(t.context,r)}return function(t,e,n){const r=t.getActivations(e);return void 0===r?n:i(n)?Nt(t,n,r[Symbol.iterator]()):function(t,e,n){let r=e,o=n.next();for(;!0!==o.done;){const e=o.value(t.context,r);if(i(e))return Nt(t,e,n);r=e,o=n.next()}return r}(t,n,r[Symbol.iterator]())}(t,e.serviceIdentifier,r)}function Ft(t){return(e,n)=>n.cache.isRight?n.cache.value:_t(n,Vt(e,n,t(e,n)))}const Ut=Ft((function(t,e){return e.value}));function $t(t){return t}function zt(t,e){return(n,i)=>{const r=t(i);switch(r.scope){case h.Singleton:return r.cache.isRight?r.cache.value:_t(r,Vt(n,r,e(n,i)));case h.Request:{if(n.requestScopeCache.has(r.id))return n.requestScopeCache.get(r.id);const t=Vt(n,r,e(n,i));return n.requestScopeCache.set(r.id,t),t}case h.Transient:return Vt(n,r,e(n,i))}}}const Wt=zt($t,(function(t,e){return e.value(t.context)})),qt=Ft((function(t,e){return e.factory(t.context)}));function Kt(t,e,n){const r=function(t,e,n){if(void 0!==n){if(!(n in t))throw new R(k.resolution,`Expecting a "${n.toString()}" property when resolving "${e.implementationType.name}" class @postConstruct decorated method, none found.`);if("function"!=typeof t[n])throw new R(k.resolution,`Expecting a "${n.toString()}" method when resolving "${e.implementationType.name}" class @postConstruct decorated method, a non function property was found instead.`);{let r;try{r=t[n]()}catch(t){throw new R(k.resolution,`Unexpected error found when calling "${n.toString()}" @postConstruct decorated method on class "${e.implementationType.name}"`,{cause:t})}if(i(r))return async function(t,e,n){try{await n}catch(n){throw new R(k.resolution,`Unexpected error found when calling "${e.toString()}" @postConstruct decorated method on class "${t.implementationType.name}"`,{cause:n})}}(e,n,r)}}}(t,e,n);return i(r)?r.then((()=>t)):t}function Ht(t){return(e,n,r)=>{const o=new r.binding.implementationType(...e),s=t(n,o,r);return i(s)?s.then((()=>Kt(o,r.binding,r.classMetadata.lifecycle.postConstructMethodName))):Kt(o,r.binding,r.classMetadata.lifecycle.postConstructMethodName)}}const Gt=Ft((function(t,e){return e.provider(t.context)}));function Xt(t){return t.binding}function Yt(t){return t.binding}const Zt=function(t){return(e,n,r)=>{const o=[];for(const[s,a]of r.propertyParams){const c=r.classMetadata.properties.get(s);if(void 0===c)throw new R(k.resolution,`Expecting metadata at property "${s.toString()}", none found`);c.kind!==I.unmanaged&&void 0!==a.bindings&&(n[s]=t(e,a),i(n[s])&&o.push((async()=>{n[s]=await n[s]})()))}if(o.length>0)return Promise.all(o).then((()=>{}))}}(oe),Jt=function(t){return function e(n,i){const r=[];for(const o of i.redirections)ot(o)?r.push(...e(n,o)):r.push(t(n,o));return r}}(re),Qt=function(t,e,n){return(r,o)=>{const s=t(r,o);return i(s)?e(s,r,o):n(s,r,o)}}(function(t){return(e,n)=>{const r=[];for(const i of n.constructorParams)void 0===i?r.push(void 0):r.push(t(e,i));return r.some(i)?Promise.all(r):r}}(oe),function(t){return async(e,n,i)=>{const r=await e;return t(r,n,i)}}(Ht(Zt)),Ht(Zt)),te=function(t){return(e,n)=>{const r=t(e,n);return i(r)?r.then((t=>n.binding.factory(...t))):n.binding.factory(...r)}}(function(t){return(e,n)=>{const r=[];for(const i of n.params)r.push(t(e,i));return r.some(i)?Promise.all(r):r}}(oe)),ee=(t=>zt(Xt,t))(Qt),ne=(t=>zt(Yt,t))(te);function ie(t){try{return oe(t,t.planResult.tree.root)}catch(e){!function(t,e){if(J(e)){const n=function(t){const e=[...t];return 0===e.length?"(No dependency trace)":e.map(r).join(" -> ")}(function(t){const e=t.planResult.tree.root,n=[];return function t(e){const i=n.indexOf(e);if(-1!==i)return[...n.slice(i),e].map((t=>t.serviceIdentifier));n.push(e);try{for(const n of function(t){const e=[],n=t.bindings;if(void 0===n)return e;const i=t=>{if(ot(t))for(const e of t.redirections)i(e);else switch(t.binding.type){case f.Instance:{const n=t;for(const t of n.constructorParams)void 0!==t&&e.push(t);for(const t of n.propertyParams.values())e.push(t);break}case f.ResolvedValue:{const n=t;for(const t of n.params)e.push(t);break}}};if(Array.isArray(n))for(const r of n)i(r);else i(n);return e}(e)){const e=t(n);if(void 0!==e)return e}}finally{n.pop()}}(e)??[]}(t));
280throw new R(k.planning,`Circular dependency found: ${n}`,{cause:e})}throw e}(t,e)}}function re(t,e){switch(e.binding.type){case f.ConstantValue:return Ut(t,e.binding);case f.DynamicValue:return Wt(t,e.binding);case f.Factory:return qt(t,e.binding);case f.Instance:return ee(t,e);case f.Provider:return Gt(t,e.binding);case f.ResolvedValue:return ne(t,e)}}function oe(t,e){if(void 0!==e.bindings)return Array.isArray(e.bindings)?function(t,e){const n=[];for(const i of e)ot(i)?n.push(...Jt(t,i)):n.push(re(t,i));return n.some(i)?Promise.all(n):n}(t,e.bindings):function(t,e){if(ot(e)){const n=Jt(t,e);if(1===n.length)return n[0];throw new R(k.resolution,"Unexpected multiple resolved values on single injection")}return re(t,e)}(t,e.bindings)}function se(t){return void 0!==t.scope}function ae(t,e){if(void 0!==t.lifecycle.preDestroyMethodName&&"function"==typeof e[t.lifecycle.preDestroyMethodName])return e[t.lifecycle.preDestroyMethodName]()}function ce(t,e,n){const r=t.getDeactivations(e);if(void 0!==r)return i(n)?ue(n,r[Symbol.iterator]()):function(t,e){let n=e.next();for(;!0!==n.done;){if(i(n.value(t)))return ue(t,e);n=e.next()}}(n,r[Symbol.iterator]())}async function ue(t,e){const n=await t;let i=e.next();for(;!0!==i.done;)await i.value(n),i=e.next()}function le(t,e){const n=function(t,e){if(e.type===f.Instance){const n=t.getClassMetadata(e.implementationType),r=e.cache.value;return i(r)?r.then((t=>ae(n,t))):ae(n,r)}}(t,e);return void 0===n?de(t,e):n.then((()=>de(t,e)))}function de(t,e){const n=e.cache;return i(n.value)?n.value.then((n=>he(t,e,n))):he(t,e,n.value)}function he(t,e,n){let i;return void 0!==e.onDeactivation&&(i=(0,e.onDeactivation)(n)),void 0===i?ce(t,e.serviceIdentifier,n):i.then((()=>ce(t,e.serviceIdentifier,n)))}function fe(t,e){if(void 0===e)return;const n=function(t){const e=[];for(const n of t)se(n)&&n.scope===h.Singleton&&n.cache.isRight&&e.push(n);return e}(e),i=[];for(const r of n){const e=le(t,r);void 0!==e&&i.push(e)}return i.length>0?Promise.all(i).then((()=>{})):void 0}const pe=Symbol.for("@inversifyjs/plugin/isPlugin");const me=Symbol.for("@inversifyjs/container/bindingIdentifier");function ve(t){return"object"==typeof t&&null!==t&&!0===t[me]}class ge{static always=t=>!0}const ye=Symbol.for("@inversifyjs/container/InversifyContainerError");class we extends Error{[ye];kind;constructor(t,e,n){super(e,n),this[ye]=!0,this.kind=t}static is(t){return"object"==typeof t&&null!==t&&!0===t[ye]}static isErrorOfKind(t,e){return we.is(t)&&t.kind===e}}var be;function xe(t){return{[me]:!0,id:t.id}}function Se(t){return e=>{for(let n=e.getAncestor();void 0!==n;n=n.getAncestor())if(t(n))return!0;return!1}}function Pe(t){return e=>e.name===t}function Ce(t){return e=>e.serviceIdentifier===t}function Ee(t,e){return n=>n.tags.has(t)&&n.tags.get(t)===e}function Ae(t){return void 0===t.name&&0===t.tags.size}function Te(t){const e=Se(t);return t=>!e(t)}function Re(t){return e=>{const n=e.getAncestor();return void 0===n||!t(n)}}function ke(t){return e=>{const n=e.getAncestor();return void 0!==n&&t(n)}}!function(t){t[t.invalidOperation=0]="invalidOperation"}(be||(be={}));class je{#i;constructor(t){this.#i=t}getIdentifier(){return xe(this.#i)}inRequestScope(){return this.#i.scope=h.Request,new Be(this.#i)}inSingletonScope(){return this.#i.scope=h.Singleton,new Be(this.#i)}inTransientScope(){return this.#i.scope=h.Transient,new Be(this.#i)}}class Ie{#n;#o;#a;#s;constructor(t,e,n,i){this.#n=t,this.#o=e,this.#a=n,this.#s=i}to(t){const e=O(t),n={cache:{isRight:!1,value:void 0},id:d(),implementationType:t,isSatisfiedBy:ge.always,moduleId:this.#o,onActivation:void 0,onDeactivation:void 0,scope:e.scope??this.#a,serviceIdentifier:this.#s,type:f.Instance};return this.#n(n),new De(n)}toSelf(){if("function"!=typeof this.#s)throw new Error('"toSelf" function can only be applied when a newable function is used as service identifier');return this.to(this.#s)}toConstantValue(t){const e={cache:{isRight:!1,value:void 0},id:d(),isSatisfiedBy:ge.always,moduleId:this.#o,onActivation:void 0,onDeactivation:void 0,scope:h.Singleton,serviceIdentifier:this.#s,type:f.ConstantValue,value:t};return this.#n(e),new Be(e)}toDynamicValue(t){const e={cache:{isRight:!1,value:void 0},id:d(),isSatisfiedBy:ge.always,moduleId:this.#o,onActivation:void 0,onDeactivation:void 0,scope:this.#a,serviceIdentifier:this.#s,type:f.DynamicValue,value:t};return this.#n(e),new De(e)}toResolvedValue(t,e){const n={cache:{isRight:!1,value:void 0},factory:t,id:d(),isSatisfiedBy:ge.always,metadata:this.#r(e),moduleId:this.#o,onActivation:void 0,onDeactivation:void 0,scope:this.#a,serviceIdentifier:this.#s,type:f.ResolvedValue};return this.#n(n),new De(n)}toFactory(t){const e={cache:{isRight:!1,value:void 0},factory:t,id:d(),isSatisfiedBy:ge.always,moduleId:this.#o,onActivation:void 0,onDeactivation:void 0,scope:h.Singleton,serviceIdentifier:this.#s,type:f.Factory};return this.#n(e),new Be(e)}toProvider(t){const e={cache:{isRight:!1,value:void 0},id:d(),isSatisfiedBy:ge.always,moduleId:this.#o,onActivation:void 0,onDeactivation:void 0,provider:t,scope:h.Singleton,serviceIdentifier:this.#s,type:f.Provider};return this.#n(e),new Be(e)}toService(t){const e={id:d(),isSatisfiedBy:ge.always,moduleId:this.#o,serviceIdentifier:this.#s,targetServiceIdentifier:t,type:f.ServiceRedirection};this.#n(e)}#r(t){return{arguments:(t??[]).map((t=>function(t){return"object"==typeof t&&!s.is(t)}(t)?function(t){return!0===t.isMultiple}(t)?{chained:t.chained??!1,kind:Z.multipleInjection,name:t.name,optional:t.optional??!1,tags:new Map((t.tags??[]).map((t=>[t.key,t.value]))),value:t.serviceIdentifier}:{kind:Z.singleInjection,name:t.name,optional:t.optional??!1,tags:new Map((t.tags??[]).map((t=>[t.key,t.value]))),value:t.serviceIdentifier}:{kind:Z.singleInjection,name:void 0,optional:!1,tags:new Map,value:t}))}}}class Oe{#i;constructor(t){this.#i=t}getIdentifier(){return xe(this.#i)}onActivation(t){return this.#i.onActivation=t,new Me(this.#i)}onDeactivation(t){if(this.#i.onDeactivation=t,this.#i.scope!==h.Singleton)throw new we(be.invali
280dOperation,`Binding for service "${r(this.#i.serviceIdentifier)}" has a deactivation function, but its scope is not singleton. Deactivation functions can only be used with singleton bindings.`);return new Me(this.#i)}}class Me{#i;constructor(t){this.#i=t}getIdentifier(){return xe(this.#i)}when(t){return this.#i.isSatisfiedBy=t,new Oe(this.#i)}whenAnyAncestor(t){return this.when(Se(t))}whenAnyAncestorIs(t){return this.when(Se(Ce(t)))}whenAnyAncestorNamed(t){return this.when(function(t){return Se(Pe(t))}(t))}whenAnyAncestorTagged(t,e){return this.when(function(t,e){return Se(Ee(t,e))}(t,e))}whenDefault(){return this.when(Ae)}whenNamed(t){return this.when(Pe(t))}whenNoParent(t){return this.when(Re(t))}whenNoParentIs(t){return this.when(Re(Ce(t)))}whenNoParentNamed(t){return this.when(function(t){return Re(Pe(t))}(t))}whenNoParentTagged(t,e){return this.when(function(t,e){return Re(Ee(t,e))}(t,e))}whenParent(t){return this.when(ke(t))}whenParentIs(t){return this.when(ke(Ce(t)))}whenParentNamed(t){return this.when(function(t){return ke(Pe(t))}(t))}whenParentTagged(t,e){return this.when(function(t,e){return ke(Ee(t,e))}(t,e))}whenTagged(t,e){return this.when(Ee(t,e))}whenNoAncestor(t){return this.when(Te(t))}whenNoAncestorIs(t){return this.when(Te(Ce(t)))}whenNoAncestorNamed(t){return this.when(function(t){return Te(Pe(t))}(t))}whenNoAncestorTagged(t,e){return this.when(function(t,e){return Te(Ee(t,e))}(t,e))}}class Be extends Me{#c;constructor(t){super(t),this.#c=new Oe(t)}onActivation(t){return this.#c.onActivation(t)}onDeactivation(t){return this.#c.onDeactivation(t)}}class De extends Be{#u;constructor(t){super(t),this.#u=new je(t)}inRequestScope(){return this.#u.inRequestScope()}inSingletonScope(){return this.#u.inSingletonScope()}inTransientScope(){return this.#u.inTransientScope()}}class _e{#l;#a;#d;#v;constructor(t,e,n,i){this.#l=t,this.#a=e,this.#d=n,this.#v=i}bind(t){return new Ie((t=>{this.#p(t)}),void 0,this.#a,t)}isBound(t,e){const n=this.#v.bindingService.get(t);return this.#m(t,n,e)}isCurrentBound(t,e){const n=this.#v.bindingService.getNonParentBindings(t);return this.#m(t,n,e)}async rebind(t){return await this.unbind(t),this.bind(t)}rebindSync(t){return this.unbindSync(t),this.bind(t)}async unbind(t){await this.#f(t)}async unbindAll(){const t=[...this.#v.bindingService.getNonParentBoundServices()];await Promise.all(t.map((async t=>function(t,e){const n=t.getBindings(e);return fe(t,n)}(this.#l,t))));for(const e of t)this.#v.activationService.removeAllByServiceId(e),this.#v.bindingService.removeAllByServiceId(e),this.#v.deactivationService.removeAllByServiceId(e);this.#v.planResultCacheService.clearCache()}unbindSync(t){void 0!==this.#f(t)&&this.#x(t)}#p(t){this.#v.bindingService.set(t),this.#d.invalidateService({binding:t,kind:Rt.bindingAdded})}#x(t){let e;if(ve(t)){const i=this.#v.bindingService.getById(t.id),o=(n=i,function(t){if(void 0===t)return;const e=t.next();return!0!==e.done?e.value:void 0}(n?.[Symbol.iterator]()))?.serviceIdentifier;e=void 0===o?"Unexpected asynchronous deactivation when unbinding binding identifier. Consider using Container.unbind() instead.":`Unexpected asynchronous deactivation when unbinding "${r(o)}" binding. Consider using Container.unbind() instead.`}else e=`Unexpected asynchronous deactivation when unbinding "${r(t)}" service. Consider using Container.unbind() instead.`;var n;
280throw new we(be.invalidOperation,e)}#f(t){return ve(t)?this.#h(t):this.#C(t)}#h(t){const e=this.#v.bindingService.getById(t.id),n=void 0===e?void 0:[...e],i=fe(this.#l,e);if(void 0!==i)return i.then((()=>{this.#w(n,t)}));this.#w(n,t)}#w(t,e){if(this.#v.bindingService.removeById(e.id),void 0!==t)for(const n of t)this.#d.invalidateService({binding:n,kind:Rt.bindingRemoved})}#C(t){const e=this.#v.bindingService.get(t),n=void 0===e?void 0:[...e],i=fe(this.#l,e);if(void 0!==i)return i.then((()=>{this.#T(t,n)}));this.#T(t,n)}#T(t,e){if(this.#v.activationService.removeAllByServiceId(t),this.#v.bindingService.removeAllByServiceId(t),this.#v.deactivationService.removeAllByServiceId(t),void 0!==e)for(const n of e)this.#d.invalidateService({binding:n,kind:Rt.bindingRemoved})}#m(t,e,n){if(void 0===e)return!1;const i={getAncestor:()=>{},name:n?.name,serviceIdentifier:t,tags:new Map};void 0!==n?.tag&&i.tags.set(n.tag.key,n.tag.value);for(const r of e)if(r.isSatisfiedBy(i))return!0;return!1}}class Le{#y;#l;#a;#d;#v;constructor(t,e,n,i,r){this.#y=t,this.#l=e,this.#a=n,this.#d=i,this.#v=r}async load(...t){await Promise.all(this.#e(...t))}loadSync(...t){const e=this.#e(...t);
280for(const n of e)if(void 0!==n)throw new we(be.invalidOperation,"Unexpected asynchronous module load. Consider using Container.load() instead.")}async unload(...t){await Promise.all(this.#g(...t)),this.#S(t)}unloadSync(...t){const e=this.#g(...t);for(const n of e)if(void 0!==n)throw new we(be.invalidOperation,"Unexpected asynchronous module unload. Consider using Container.unload() instead.");this.#S(t)}#b(t){return{bind:e=>new Ie((t=>{this.#p(t)}),t,this.#a,e),isBound:this.#y.isBound.bind(this.#y),onActivation:(e,n)=>{this.#v.activationService.add(n,{moduleId:t,serviceId:e})},onDeactivation:(e,n)=>{this.#v.deactivationService.add(n,{moduleId:t,serviceId:e})},rebind:this.#y.rebind.bind(this.#y),rebindSync:this.#y.rebindSync.bind(this.#y),unbind:this.#y.unbind.bind(this.#y),unbindSync:this.#y.unbindSync.bind(this.#y)}}#S(t){for(const e of t)this.#v.activationService.removeAllByModuleId(e.id),this.#v.bindingService.removeAllByModuleId(e.id),this.#v.deactivationService.removeAllByModuleId(e.id);this.#v.planResultCacheService.clearCache()}#e(...t){return t.map((t=>t.load(this.#b(t.id))))}#p(t){this.#v.bindingService.set(t),this.#d.invalidateService({binding:t,kind:Rt.bindingAdded})}#g(...t){return t.map((t=>function(t,e){const n=t.getBindingsFromModule(e);return fe(t,n)}(this.#l,t.id)))}}class Ne{deactivationParams;constructor(t){this.deactivationParams=function(t){return{getBindings:t.bindingService.get.bind(t.bindingService),getBindingsFromModule:t.bindingService.getByModuleId.bind(t.bindingService),getClassMetadata:O,getDeactivations:t.deactivationService.get.bind(t.deactivationService)}}(t),t.onReset((()=>{!function(t,e){e.getBindings=t.bindingService.get.bind(t.bindingService),e.getBindingsFromModule=t.bindingService.getByModuleId.bind(t.bindingService),e.getDeactivations=t.deactivationService.get.bind(t.deactivationService)}(t,this.deactivationParams)}))}}class Ve{planParamsOperations;#v;constructor(t){this.#v=t,this.planParamsOperations={getBindings:this.#v.bindingService.get.bind(this.#v.bindingService),getBindingsChained:this.#v.bindingService.getChained.bind(this.#v.bindingService),getClassMetadata:O,getPlan:this.#v.planResultCacheService.get.bind(this.#v.planResultCacheService),setBinding:this.#p.bind(this),setNonCachedServiceNode:this.#v.planResultCacheService.setNonCachedServiceNode.bind(this.#v.planResultCacheService),setPlan:this.#v.planResultCacheService.set.bind(this.#v.planResultCacheService)},this.#v.onReset((()=>{this.#A()}))}#A(){this.planParamsOperations.getBindings=this.#v.bindingService.get.bind(this.#v.bindingService),this.planParamsOperations.getBindingsChained=this.#v.bindingService.getChained.bind(this.#v.bindingService),this.planParamsOperations.setBinding=this.#p.bind(this)}#p(t){this.#v.bindingService.set(t),this.#v.planResultCacheService.invalidateServiceBinding({binding:t,kind:Rt.bindingAdded,operations:this.planParamsOperations})}}class Fe{#R;#v;constructor(t,e){this.#R=t,this.#v=e}invalidateService(t){this.#v.planResultCacheService.invalidateServiceBinding({...t,operations:this.#R.planParamsOperations})}}class Ue{#P;#O;#V;#v;constructor(t,e,n){this.#v=e,this.#V=n,this.#P=this.#j(t),this.#O=this.#B()}register(t,e){const n=new e(t,this.#O);
280if(!0!==n[pe])throw new we(be.invalidOperation,"Invalid plugin. The plugin must extend the Plugin class");n.load(this.#P)}#j(t){return{define:(e,n)=>{if(Object.prototype.hasOwnProperty.call(t,e))throw new we(be.invalidOperation,`Container already has a method named "${String(e)}"`);t[e]=n},onPlan:this.#V.onPlan.bind(this.#V)}}#B(){const t=this.#v;return{get activationService(){return t.activationService},get bindingService(){return t.bindingService},get deactivationService(){return t.deactivationService},get planResultCacheService(){return t.planResultCacheService}}}}class $e{activationService;bindingService;deactivationService;planResultCacheService;#E;constructor(t,e,n,i){this.activationService=t,this.bindingService=e,this.deactivationService=n,this.planResultCacheService=i,this.#E=[]}reset(t,e,n){this.activationService=t,this.bindingService=e,this.deactivationService=n,this.planResultCacheService.clearCache();for(const i of this.#E)i()}onReset(t){this.#E.push(t)}}class ze{#M;#a;#z;#_;#I;#R;#v;constructor(t,e,n,i){this.#R=t,this.#v=e,this.#_=this.#k(),this.#M=n,this.#a=i,this.#z=t=>this.#v.activationService.get(t),this.#I=[],this.#v.onReset((()=>{this.#A()}))}get(t,e){const n=this.#L(!1,t,e),o=this.#N(n);
280if(i(o))throw new we(be.invalidOperation,`Unexpected asynchronous service when resolving service "${r(t)}"`);return o}getAll(t,e){const n=this.#L(!0,t,e),o=this.#N(n);if(i(o))throw new we(be.invalidOperation,`Unexpected asynchronous service when resolving service "${r(t)}"`);return o}async getAllAsync(t,e){const n=this.#L(!0,t,e);return this.#N(n)}async getAsync(t,e){const n=this.#L(!1,t,e);return this.#N(n)}onPlan(t){this.#I.push(t)}#A(){this.#_=this.#k()}#U(t,e,n){const i=n?.name,r=n?.optional??!1,o=n?.tag;return t?{chained:n?.chained??!1,isMultiple:t,name:i,optional:r,serviceIdentifier:e,tag:o}:{isMultiple:t,name:i,optional:r,serviceIdentifier:e,tag:o}}#D(t,e,n){const i={autobindOptions:n?.autobind??this.#M?{scope:this.#a}:void 0,operations:this.#R.planParamsOperations,rootConstraints:this.#q(t,e,n),servicesBranch:[]};return this.#K(i,n),i}#q(t,e,n){return e?{chained:n?.chained??!1,isMultiple:e,serviceIdentifier:t}:{isMultiple:e,serviceIdentifier:t}}#L(t,e,n){const i=this.#U(t,e,n),r=this.#v.planResultCacheService.get(i);if(void 0!==r)return r;const o=Tt(this.#D(e,t,n));for(const s of this.#I)s(i,o);return o}#k(){return{get:this.get.bind(this),getAll:this.getAll.bind(this),getAllAsync:this.getAllAsync.bind(this),getAsync:this.getAsync.bind(this)}}#N(t){return ie({context:this.#_,getActivations:this.#z,planResult:t,requestScopeCache:new Map})}#K(t,e){void 0!==e&&(void 0!==e.name&&(t.rootConstraints.name=e.name),!0===e.optional&&(t.rootConstraints.isOptional=!0),void 0!==e.tag&&(t.rootConstraints.tag={key:e.tag.key,value:e.tag.value}),t.rootConstraints.isMultiple&&(t.rootConstraints.chained=e?.chained??!1))}}class We{#v;#X;constructor(t){this.#v=t,this.#X=[]}restore(){const t=this.#X.pop();
280if(void 0===t)throw new we(be.invalidOperation,"No snapshot available to restore");this.#v.reset(t.activationService,t.bindingService,t.deactivationService)}snapshot(){this.#X.push({activationService:this.#v.activationService.clone(),bindingService:this.#v.bindingService.clone(),deactivationService:this.#v.deactivationService.clone()})}}const qe=h.Transient;class Ke{#y;#F;#$;#v;#V;#W;constructor(t){this.#v=this.#G(t);const e=t?.autobind??!1,n=t?.defaultScope??qe,i=new Ve(this.#v),r=new Fe(i,this.#v),o=new Ne(this.#v);this.#y=new _e(o.deactivationParams,n,r,this.#v),this.#F=new Le(this.#y,o.deactivationParams,n,r,this.#v),this.#V=new ze(i,this.#v,e,n),this.#$=new Ue(this,this.#v,this.#V),this.#W=new We(this.#v)}bind(t){return this.#y.bind(t)}get(t,e){return this.#V.get(t,e)}getAll(t,e){return this.#V.getAll(t,e)}async getAllAsync(t,e){return this.#V.getAllAsync(t,e)}async getAsync(t,e){return this.#V.getAsync(t,e)}isBound(t,e){return this.#y.isBound(t,e)}isCurrentBound(t,e){return this.#y.isCurrentBound(t,e)}async load(...t){return this.#F.load(...t)}loadSync(...t){this.#F.loadSync(...t)}onActivation(t,e){this.#v.activationService.add(e,{serviceId:t})}onDeactivation(t,e){this.#v.deactivationService.add(e,{serviceId:t})}register(t){this.#$.register(this,t)}restore(){this.#W.restore()}async rebind(t){return this.#y.rebind(t)}rebindSync(t){return this.#y.rebindSync(t)}snapshot(){this.#W.snapshot()}async unbind(t){await this.#y.unbind(t)}async unbindAll(){return this.#y.unbindAll()}unbindSync(t){this.#y.unbindSync(t)}async unload(...t){return this.#F.unload(...t)}unloadSync(...t){this.#F.unloadSync(...t)}#G(t){if(void 0===t?.parent)return new $e(w.build((()=>{})),S.build((()=>{})),P.build((()=>{})),new Dt);const e=new Dt,n=t.parent;return n.#v.planResultCacheService.subscribe(e),new $e(w.build((()=>n.#v.activationService)),S.build((()=>n.#v.bindingService)),P.build((()=>n.#v.deactivationService)),e)}}},96121:function(t,e,n){"use strict";n.d(e,{A:function(){return a},B:function(){return f},I:function(){return T},O:function(){return u},S:function(){return H},U:function(){return c},a:function(){return d},b:function(){return s},c:function(){return z},d:function(){return q},e:function(){return l},f:function(){return K},g:function(){return G},i:function(){return g},m:function(){return h},n:function(){return V},o:function(){return N},r:function(){return A},s:function(){return _},t:function(){return R},u:function(){return k},z:function(){return b}});var i=n(2441),r=n(81100),o=n(93319);const s=new WeakMap,a=()=>{},c=a(),u=Object,l=t=>t===c,d=t=>"function"==typeof t,h=(t,e)=>({...t,...e}),f=t=>d(t.then),p={},m={},v="undefined",g=typeof window!=v,y=typeof document!=v,w=g&&"Deno"in window,b=(t,e)=>{const n=s.get(t);return[()=>!l(e)&&t.get(e)||p,i=>{if(!l(e)){const r=t.get(e);e in m||(m[e]=r),n[5](e,h(r,i),r||p)}},n[6],()=>!l(e)&&e in m?m[e]:!l(e)&&t.get(e)||p]};let x=!0;const[S,P]=g&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[a,a],C={isOnline:()=>x,isVisible:()=>{const t=y&&document.visibilityState;return l(t)||"hidden"!==t}},E={initFocus:t=>(y&&document.addEventListener("visibilitychange",t),S("focus",t),()=>{y&&document.removeEventListener("visibilitychange",t),P("focus",t)}),initReconnect:t=>{const e=()=>{x=!0,t()},n=()=>{x=!1};
280return S("online",e),S("offline",n),()=>{P("online",e),P("offline",n)}}},A=!i.useId,T=!g||w,R=t=>g&&typeof window.requestAnimationFrame!=v?window.requestAnimationFrame(t):setTimeout(t,1),k=T?i.useEffect:i.useLayoutEffect,j="undefined"!==typeof navigator&&navigator.connection,I=!T&&j&&(["slow-2g","2g"].includes(j.effectiveType)||j.saveData),O=new WeakMap,M=(t,e)=>t===`[object ${e}]`;let B=0;const D=t=>{const e=typeof t,n=(i=t,u.prototype.toString.call(i));var i;const r=M(n,"Date"),o=M(n,"RegExp"),s=M(n,"Object");let a,c;if(u(t)!==t||r||o)a=r?t.toJSON():"symbol"==e?t.toString():"string"==e?JSON.stringify(t):""+t;else{if(a=O.get(t),a)return a;if(a=++B+"~",O.set(t,a),Array.isArray(t)){for(a="@",c=0;c<t.length;c++)a+=D(t[c])+",";O.set(t,a)}if(s){a="#";const e=u.keys(t).sort();for(;!l(c=e.pop());)l(t[c])||(a+=c+":"+D(t[c])+",");O.set(t,a)}}return a},_=t=>{if(d(t))try{t=t()}catch(n){t=""}const e=t;return[t="string"==typeof t?t:(Array.isArray(t)?t.length:t)?D(t):"",e]};let L=0;const N=()=>++L;async function V(...t){const[e,n,i,o]=t,a=h({populateCache:!0,throwOnError:!0},"boolean"===typeof o?{revalidate:o}:o||{});let u=a.populateCache;const p=a.rollbackOnError;let m=a.optimisticData;const v=a.throwOnError;if(d(n)){const t=n,i=[],r=e.keys();for(const n of r)!/^\$(inf|sub)\$/.test(n)&&t(e.get(n)._k)&&i.push(n);return Promise.all(i.map(g))}return g(n);async function g(n){const[o]=_(n);if(!o)return;const[h,g]=b(e,o),[y,w,x,S]=s.get(e),P=()=>{const t=y[o];return(d(a.revalidate)?a.revalidate(h().data,n):!1!==a.revalidate)&&(delete x[o],delete S[o],t&&t[0])?t[0](r.QQ).then((()=>h().data)):h().data};if(t.length<3)return P();let C,E=i,A=!1;const T=N();w[o]=[T,0];const R=!l(m),k=h(),j=k.data,I=k._c,O=l(I)?j:I;if(R&&(m=d(m)?m(O,j):m,g({data:m,_c:O})),d(E))try{E=E(O)}catch(M){C=M,A=!0}if(E&&f(E)){if(E=await E.catch((t=>{C=t,A=!0})),T!==w[o][0]){if(A)throw C;return E}A&&R&&(t=>"function"===typeof p?p(t):!1!==p)(C)&&(u=!0,g({data:O,_c:c}))}if(u&&!A)if(d(u)){const t=u(E,O);g({data:t,error:c,_c:c})}else g({data:E,error:c,_c:c});if(w[o][1]=N(),Promise.resolve(P()).then((()=>{g({_c:c})})),!A)return E;if(v)throw C}}const F=(t,e)=>{for(const n in t)t[n][0]&&t[n][0](e)},U=(t,e)=>{if(!s.has(t)){const n=h(E,e),i=Object.create(null),o=V.bind(c,t);let u=a;const l=Object.create(null),d=(t,e)=>{const n=l[t]||[];return l[t]=n,n.push(e),()=>n.splice(n.indexOf(e),1)},f=(e,n,i)=>{t.set(e,n);const r=l[e];if(r)for(const t of r)t(n,i)},p=()=>{if(!s.has(t)&&(s.set(t,[i,Object.create(null),Object.create(null),Object.create(null),o,f,d]),!T)){const e=n.initFocus(setTimeout.bind(c,F.bind(c,i,r.N4))),o=n.initReconnect(setTimeout.bind(c,F.bind(c,i,r.l2)));u=()=>{e&&e(),o&&o(),s.delete(t)}}};return p(),[t,o,p,u]}return[t,s.get(t)[4]]},$=o.J,[z,W]=U(new Map),q=h({onLoadingSlow:a,onSuccess:a,onError:a,onErrorRetry:(t,e,n,i,r)=>{const o=n.errorRetryCount,s=r.retryCount,a=~~((Math.random()+.5)*(1<<(s<8?s:8)))*n.errorRetryInterval;!l(o)&&s>o||setTimeout(i,a,r)},onDiscarded:a,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:I?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:I?5e3:3e3,compare:$,isPaused:()=>!1,cache:z,mutate:W,fallback:{}},C),K=(t,e)=>{const n=h(t,e);if(e){const{use:i,fallback:r}=t,{use:o,fallback:s}=e;i&&o&&(n.use=i.concat(o)),r&&s&&(n.fallback=h(r,s))}return n},H=(0,i.createContext)({}),G=t=>{const{value:e}=t,n=(0,i.useContext)(H),r=d(e),o=(0,i.useMemo)((()=>r?e(n):e),[r,n,e]),s=(0,i.useMemo)((()=>r?o:K(n,o)),[r,n,o]),a=o&&o.provider,u=(0,i.useRef)(c);a&&!u.current&&(u.current=U(a(s.cache||z),o));const l=u.current;return l&&(s.cache=l[0],s.mutate=l[1]),k((()=>
280{if(l)return l[2]&&l[2](),l[3]}),[]),(0,i.createElement)(H.Provider,h(t,{value:s}))}},81100:function(t,e,n){"use strict";n.d(e,{N4:function(){return i},QQ:function(){return o},aU:function(){return s},l2:function(){return r}});const i=0,r=1,o=2,s=3},86746:function(t,e,n){"use strict";n.d(e,{ko:function(){return d},kY:function(){return c},s6:function(){return l}});var i=n(96121);var r=n(2441);const o=i.i&&window.__SWR_DEVTOOLS_USE__,s=o?window.__SWR_DEVTOOLS_USE__:[],a=t=>(0,i.a)(t[1])?[t[0],t[1],t[2]||{}]:[t[0],null,(null===t[1]?t[2]:t[1])||{}],c=()=>{const t=(0,r.useContext)(i.S);return(0,r.useMemo)((()=>(0,i.m)(i.d,t)),[t])},u=s.concat((t=>(e,n,r)=>t(e,n&&((...t)=>{const[r]=(0,i.s)(e),[,,,o]=i.b.get(i.c);if(r.startsWith("$inf$"))return n(...t);const s=o[r];return(0,i.e)(s)?n(...t):(delete o[r],s)}),r))),l=t=>function(...e){const n=c(),[r,o,s]=a(e),l=(0,i.f)(n,s);let d=t;const{use:h}=l,f=(h||[]).concat(u);for(let t=f.length;t--;)d=f[t](d);return d(r,o||l.fetcher||null,l)},d=(t,e,n)=>{const i=e[t]||(e[t]=[]);return i.push(n),()=>{const t=i.indexOf(n);t>=0&&(i[t]=i[i.length-1],i.pop())}};o&&(window.__SWR_DEVTOOLS_REACT__=r)},89753:function(t,e,n){"use strict";n.d(e,{ZP:function(){return f}});var i=n(2441),r=n(26196),o=n(96121),s=n(81100),a=n(86746);const c=()=>{};c(),new WeakMap;const u=i.use||(t=>{switch(t.status){case"pending":throw t;case"fulfilled":return t.value;case"rejected":throw t.reason;default:throw t.status="pending",t.then((e=>{t.status="fulfilled",t.value=e}),(e=>{t.status="rejected",t.reason=e})),t}}),l={dedupe:!0},d=Promise.resolve(o.U),h=()=>o.A,f=(o.O.defineProperty(o.g,"defaultValue",{value:o.d}),(0,a.s6)(((t,e,n)=>{const{cache:c,compare:f,suspense:p,fallbackData:m,revalidateOnMount:v,revalidateIfStale:g,refreshInterval:y,refreshWhenHidden:w,refreshWhenOffline:b,keepPreviousData:x,strictServerPrefetchWarning:S}=n,[P,C,E,A]=o.b.get(c),[T,R]=(0,o.s)(t),k=(0,i.useRef)(!1),j=(0,i.useRef)(!1),I=(0,i.useRef)(T),O=(0,i.useRef)(e),M=(0,i.useRef)(n),B=()=>M.current,D=()=>B().isVisible()&&B().isOnline(),[_,L,N,V]=(0,o.z)(c,T),F=(0,i.useRef)({}).current,U=(0,o.e)(m)?(0,o.e)(n.fallback)?o.U:n.fallback[T]:m,$=(t,e)=>{for(const n in F){const i=n;if("data"===i){if(!f(t[i],e[i])){if(!(0,o.e)(t[i]))return!1;if(!f(Z,e[i]))return!1}}else if(e[i]!==t[i])return!1}return!0},z=!k.current,W=(0,i.useMemo)((()=>{const t=_(),n=V(),i=t=>{const n=(0,o.m)(t);delete n._k;const i=(()=>{if(!T)return!1;if(!e)return!1;if(B().isPaused())return!1;if(z&&!(0,o.e)(v))return v;const t=(0,o.e)(U)?n.data:U;return(0,o.e)(t)||g})();return i?{isValidating:!0,isLoading:!0,...n}:n},r=i(t),s=t===n?r:i(n);let a=r;return[()=>{const t=i(_());return $(t,a)?(a.data=t.data,a.isLoading=t.isLoading,a.isValidating=t.isValidating,a.error=t.error,a):(a=t,t)},()=>s]}),[c,T]),q=(0,r.useSyncExternalStore)((0,i.useCallback)((t=>N(T,((e,n)=>{$(n,e)||t()}))),[c,T]),W[0],W[1]),K=P[T]&&P[T].length>0,H=q.data,G=(0,o.e)(H)?U&&(0,o.B)(U)?u(U):U:H,X=q.error,Y=(0,i.useRef)(G),Z=x?(0,o.e)(H)?(0,o.e)(Y.current)?G:Y.current:H:G,J=T&&(0,o.e)(G),Q=(0,i.useRef)(null);!o.I&&(0,r.useSyncExternalStore)(h,(()=>(Q.current=!1,Q)),(()=>(Q.current=!0,Q)));const tt=Q.current;S&&tt&&!p&&J&&console.warn(`Missing pre-initiated data for serialized key "${T}" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);const et=!(!T||!e)&&!B().isPaused()&&!(K&&!(0,o.e)(X))&&(z&&!(0,o.e)(v)?v:p?!(0,o.e)(G)&&g:(0,o.e)(G)||g),nt=z&&et,it=(0,o.e)(q.isValidating)?nt:q.isValidating,rt=(0,o.e)(q.isLoading)?nt:q.isLoading,ot=(0,i.useCallback)((async t=>{const e=O.current;if(!T||!e||j.current||B().isPaused())return!1;let i,r,a=!0;const c=t||{},u=!E[T]||!c.dedupe,l=()=>o.r?!j.current&&T===I.current&&k.current:T===I.current,d={isValidating:!1,isLoading:!1},h=()=>{L(d)},p=()=>{const t=E[T];t&&t[1]===r&&delete E[T]},m={isValidating:!0};(0,o.e)(_().data)&&(m.isLoading=!0);try{if(u&&(L(m),n.loadingTimeout&&(0,o.e)(_().data)&&setTimeout((()=>{a&&l()&&B().onLoadingSlow(T,n)}),n.loadingTimeout),E[T]=[e(R),(0,o.o)()]),[i,r]=E[T],i=await i,u&&setTimeout(p,n.dedupingInterval),!E[T]||E[T][1]!==r)return u&&l()&&B().onDiscarded(T),!1;d.error=o.U;const t=C[T];if(!(0,o.e)(t)&&(r<=t[0]||r<=t[1]||0===t[1]))return h(),u&&l()&&B().onDiscarded(T),!1;const s=_().data;d.data=f(s,i)?s:i,u&&l()&&B().onSuccess(i,T,n)}catch(v){p();const t=B(),{shouldRetryOnError:e}=t;t.isPaused()||(d.error=v,u&&l()&&(t.onError(v,T,t),(!0===e||(0,o.a)(e)&&e(v))&&(B().revalidateOnFocus&&B().revalidateOnReconnect&&!D()||t.onErrorRetry(v,T,t,(t=>{const e=P[T];e&&e[0]&&e[0](s.aU,t)}),{retryCount:(c.retryCount||0)+1,dedupe:!0}))))}return a=!1,h(),!0}),[T,c]),st=(0,i.useCallback)(((...t)=>(0,o.n)(c,I.current,...t)),[]);if((0,o.u)((()=>{O.current=e,M.current=n,(0,o.e)(H)||(Y.current=H)})),(0,o.u)((()=>
280{if(!T)return;const t=ot.bind(o.U,l);let e=0;if(B().revalidateOnFocus){const t=Date.now();e=t+B().focusThrottleInterval}const n=(0,a.ko)(T,P,((n,i={})=>{if(n==s.N4){const n=Date.now();B().revalidateOnFocus&&n>e&&D()&&(e=n+B().focusThrottleInterval,t())}else if(n==s.l2)B().revalidateOnReconnect&&D()&&t();else{if(n==s.QQ)return ot();if(n==s.aU)return ot(i)}}));return j.current=!1,I.current=T,k.current=!0,L({_k:R}),et&&(E[T]||((0,o.e)(G)||o.I?t():(0,o.t)(t))),()=>{j.current=!0,n()}}),[T]),(0,o.u)((()=>{let t;function e(){const e=(0,o.a)(y)?y(_().data):y;e&&-1!==t&&(t=setTimeout(n,e))}function n(){_().error||!w&&!B().isVisible()||!b&&!B().isOnline()?e():ot(l).then(e)}return e(),()=>{t&&(clearTimeout(t),t=-1)}}),[y,w,b,T]),(0,i.useDebugValue)(Z),p){if(!o.r&&o.I&&J)throw new Error("Fallback data is required when using Suspense in SSR.");J&&(O.current=e,M.current=n,j.current=!1);const t=A[T],i=!(0,o.e)(t)&&J?st(t):d;if(u(i),!(0,o.e)(X)&&J)throw X;const r=J?ot(l):d;!(0,o.e)(Z)&&J&&(r.status="fulfilled",r.value=!0),u(r)}return{mutate:st,get data(){return F.data=!0,Z},get error(){return F.error=!0,X},get isValidating(){return F.isValidating=!0,it},get isLoading(){return F.isLoading=!0,rt}}})))},91496:function(t,e,n){"use strict";n.d(e,{$B:function(){return nn},TX:function(){return Le},oM:function(){return $e},il:function(){return Ne},Dg:function(){return Ve},w9:function(){return Fe},XR:function(){return qe},jL:function(){return ze},v5:function(){return We},uG:function(){return He},yi:function(){return Ge},VJ:function(){return Ke},wV:function(){return en},yC:function(){return Xe},FM:function(){return ke},X8:function(){return Ie},D7:function(){return Je},Pn:function(){return Qe}});var i={};function r(t,e){return function(){return t.apply(e,arguments)}}n.r(i),n.d(i,{hasBrowserEnv:function(){return at},hasStandardBrowserEnv:function(){return ct},hasStandardBrowserWebWorkerEnv:function(){return lt},origin:function(){return dt}});const{toString:o}=Object.prototype,{getPrototypeOf:s}=Object,a=(t=>e=>{const n=o.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),c=t=>(t=t.toLowerCase(),e=>a(e)===t),u=t=>e=>typeof e===t,{isArray:l}=Array,d=u("undefined");const h=c("ArrayBuffer");const f=u("string"),p=u("function"),m=u("number"),v=t=>null!==t&&"object"===typeof t,g=t=>{if("object"!==a(t))return!1;const e=s(t);return(null===e||e===Object.prototype||null===Object.getPrototypeOf(e))&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},y=c("Date"),w=c("File"),b=c("Blob"),x=c("FileList"),S=c("URLSearchParams"),[P,C,E,A]=["ReadableStream","Request","Response","Headers"].map(c);function T(t,e,{allOwnKeys:n=!1}={}){if(null===t||"undefined"===typeof t)return;let i,r;if("object"!==typeof t&&(t=[t]),l(t))for(i=0,r=t.length;i<r;i++)e.call(null,t[i],i,t);else{const r=n?Object.getOwnPropertyNames(t):Object.keys(t),o=r.length;let s;for(i=0;i<o;i++)s=r[i],e.call(null,t[s],s,t)}}function R(t,e){e=e.toLowerCase();const n=Object.keys(t);let i,r=n.length;for(;r-- >0;)if(i=n[r],e===i.toLowerCase())return i;return null}const k="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,j=t=>!d(t)&&t!==k;const I=(O="undefined"!==typeof Uint8Array&&s(Uint8Array),t=>O&&t instanceof O);var O;const M=c("HTMLFormElement"),B=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),D=c("RegExp"),_=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),i={};T(n,((n,r)=>{let o;!1!==(o=e(n,r,t))&&(i[r]=o||n)})),Object.defineProperties(t,i)},L="abcdefghijklmnopqrstuvwxyz",N="0123456789",V={DIGIT:N,ALPHA:L,ALPHA_DIGIT:L+L.toUpperCase()+N};const F=c("AsyncFunction");var U={isArray:l,isArrayBuffer:h,isBuffer:function(t){return null!==t&&!d(t)&&null!==t.constructor&&!d(t.constructor)&&p(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let e;return t&&("function"===typeof FormData&&t instanceof FormData||p(t.append)&&("formdata"===(e=a(t))||"object"===e&&p(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&h(t.buffer),e},isString:f,isNumber:m,isBoolean:t=>!0===t||!1===t,isObject:v,isPlainObject:g,isReadableStream:P,isRequest:C,isResponse:E,isHeaders:A,isUndefined:d,isDate:y,isFile:w,isBlob:b,isRegExp:D,isFunction:p,isStream:t=>v(t)&&p(t.pipe),isURLSearchParams:S,isTypedArray:I,isFileList:x,forEac
vendor: 5,546 bytes, line 280
280h:T,merge:function t(){const{caseless:e}=j(this)&&this||{},n={},i=(i,r)=>{const o=e&&R(n,r)||r;g(n[o])&&g(i)?n[o]=t(n[o],i):g(i)?n[o]=t({},i):l(i)?n[o]=i.slice():n[o]=i};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&T(arguments[r],i);return n},extend:(t,e,n,{allOwnKeys:i}={})=>(T(e,((e,i)=>{n&&p(e)?t[i]=r(e,n):t[i]=e}),{allOwnKeys:i}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,n,i)=>{t.prototype=Object.create(e.prototype,i),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},toFlatObject:(t,e,n,i)=>{let r,o,a;const c={};if(e=e||{},null==t)return e;do{for(r=Object.getOwnPropertyNames(t),o=r.length;o-- >0;)a=r[o],i&&!i(a,t,e)||c[a]||(e[a]=t[a],c[a]=!0);t=!1!==n&&s(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:a,kindOfTest:c,endsWith:(t,e,n)=>{t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;const i=t.indexOf(e,n);return-1!==i&&i===n},toArray:t=>{if(!t)return null;if(l(t))return t;let e=t.length;if(!m(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},forEachEntry:(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let i;for(;(i=n.next())&&!i.done;){const n=i.value;e.call(t,n[0],n[1])}},matchAll:(t,e)=>{let n;const i=[];for(;null!==(n=t.exec(e));)i.push(n);return i},isHTMLForm:M,hasOwnProperty:B,hasOwnProp:B,reduceDescriptors:_,freezeMethods:t=>{_(t,((e,n)=>{if(p(t)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const i=t[n];p(i)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(t,e)=>{const n={},i=t=>{t.forEach((t=>{n[t]=!0}))};return l(t)?i(t):i(String(t).split(e)),n},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,n){return e.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(t,e)=>null!=t&&Number.isFinite(t=+t)?t:e,findKey:R,global:k,isContextDefined:j,ALPHABET:V,generateString:(t=16,e=V.ALPHA_DIGIT)=>{let n="";const{length:i}=e;for(;t--;)n+=e[Math.random()*i|0];return n},isSpecCompliantForm:function(t){return!!(t&&p(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{const e=new Array(10),n=(t,i)=>{if(v(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[i]=t;const r=l(t)?[]:{};return T(t,((t,e)=>{const o=n(t,i+1);!d(o)&&(r[e]=o)})),e[i]=void 0,r}}return t};return n(t,0)},isAsyncFn:F,isThenable:t=>t&&(v(t)||p(t))&&p(t.then)&&p(t.catch)};function $(t,e,n,i,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r)}U.inherits($,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:U.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const z=$.prototype,W={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{W[t]={value:t}})),Object.defineProperties($,W),Object.defineProperty(z,"isAxiosError",{value:!0}),$.from=(t,e,n,i,r,o)=>{const s=Object.create(z);return U.toFlatObject(t,s,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),$.call(s,t.message,e,n,i,r),s.cause=t,s.name=t.name,o&&Object.assign(s,o),s};var q=$,K=n(92358).Buffer;function H(t){return U.isPlainObject(t)||U.isArray(t)}function G(t){return U.endsWith(t,"[]")?t.slice(0,-2):t}function X(t,e,n){return t?t.concat(e).map((function(t,e){return t=G(t),!n&&e?"["+t+"]":t})).join(n?".":""):e}const Y=U.toFlatObject(U,{},null,(function(t){return/^is[A-Z]/.test(t)}));var Z=function(t,e,n){if(!U.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const i=(n=U.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!U.isUndefined(e[t])}))).metaTokens,r=n.visitor||u,o=n.dots,s=n.indexes,a=(n.Blob||"undefined"!==typeof Blob&&Blob)&&U.isSpecCompliantForm(e);if(!U.isFunction(r))throw new TypeError("visitor must be a function");function c(t){if(null===t)return"";if(U.isDate(t))return t.toISOString();if(!a&&U.isBlob(t))throw new q("Blob is not supported. Use a Buffer instead.");return U.isArrayBuffer(t)||U.isTypedArray(t)?a&&"function"===typeof Blob?new Blob([t]):K.from(t):t}function u(t,n,r){let a=t;if(t&&!r&&"object"===typeof t)if(U.endsWith(n,"{}"))n=i?n:n.slice(0,-2),t=JSON.stringify(t);else if(U.isArray(t)&&function(t){return U.isArray(t)&&!t.some(H)}(t)||(U.isFileList(t)||U.endsWith(n,"[]"))&&(a=U.toArray(t)))return n=G(n),a.forEach((function(t,i){!U.isUndefined(t)&&null!==t&&e.append(!0===s?X([n],i,o):null===s?n:n+"[]",c(t))})),!1;return!!H(t)||(e.append(X(r,n,o),c(t)),!1)}const l=[],d=Object.assign(Y,{defaultVisitor:u,convertValue:c,isVisitable:H});if(!U.isObject(t))throw new TypeError("data must be an object");return function t(n,i){if(!U.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+i.join("."));l.push(n),U.forEach(n,(function(n,o){!0===(!(U.isUndefined(n)||null===n)&&r.call(e,n,U.isString(o)?o.trim():o,i,d))&&t(n,i?i.concat(o):[o])})),l.pop()}}(t),e};
280function J(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function Q(t,e){this._pairs=[],t&&Z(t,this,e)}const tt=Q.prototype;tt.append=function(t,e){this._pairs.push([t,e])},tt.toString=function(t){const e=t?function(e){return t.call(this,e,J)}:J;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};var et=Q;function nt(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function it(t,e,n){if(!e)return t;const i=n&&n.encode||nt,r=n&&n.serialize;let o;if(o=r?r(e,n):U.isURLSearchParams(e)?e.toString():new et(e,n).toString(i),o){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}var rt=class{constructor(){this.handlers=[]}use(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){U.forEach(this.handlers,(function(e){null!==e&&t(e)}))}},ot={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},st={isBrowser:!0,classes:{URLSearchParams:"undefined"!==typeof URLSearchParams?URLSearchParams:et,FormData:"undefined"!==typeof FormData?FormData:null,Blob:"undefined"!==typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const at="undefined"!==typeof window&&"undefined"!==typeof document,ct=(ut="undefined"!==typeof navigator&&navigator.product,at&&["ReactNative","NativeScript","NS"].indexOf(ut)<0);var ut;const lt="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts,dt=at&&window.location.href||"http://localhost";var ht={...i,...st};var ft=function(t){function e(t,n,i,r){let o=t[r++];if("__proto__"===o)return!0;const s=Number.isFinite(+o),a=r>=t.length;if(o=!o&&U.isArray(i)?i.length:o,a)return U.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!s;i[o]&&U.isObject(i[o])||(i[o]=[]);return e(t,n,i[o],r)&&U.isArray(i[o])&&(i[o]=function(t){const e={},n=Object.keys(t);let i;const r=n.length;let o;for(i=0;i<r;i++)o=n[i],e[o]=t[o];return e}(i[o])),!s}if(U.isFormData(t)&&U.isFunction(t.entries)){const n={};return U.forEachEntry(t,((t,i)=>{e(function(t){return U.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),i,n,0)})),n}return null};const pt={transitional:ot,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const n=e.getContentType()||"",i=n.indexOf("application/json")>-1,r=U.isObject(t);r&&U.isHTMLForm(t)&&(t=new FormData(t));if(U.isFormData(t))return i?JSON.stringify(ft(t)):t;if(U.isArrayBuffer(t)||U.isBuffer(t)||U.isStream(t)||U.isFile(t)||U.isBlob(t)||U.isReadableStream(t))return t;if(U.isArrayBufferView(t))return t.buffer;if(U.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return Z(t,new ht.classes.URLSearchParams,Object.assign({visitor:function(t,e,n,i){return ht.isNode&&U.isBuffer(t)?(this.append(e,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((o=U.isFileList(t))||n.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return Z(o?{"files[]":t}:t,e&&new e,this.formSerializer)}}return r||i?(e.setContentType("application/json",!1),function(t,e,n){if(U.isString(t))try{return(e||JSON.parse)(t),U.trim(t)}catch(i){if("SyntaxError"!==i.name)throw i}return(n||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||pt.transitional,n=e&&e.forcedJSONParsing,i="json"===this.responseType;if(U.isResponse(t)||U.isReadableStream(t))return t;if(t&&U.isString(t)&&(n&&!this.responseType||i)){const n=!(e&&e.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(r){if(n){if("SyntaxError"===r.name)throw q.from(r,q.ERR_BAD_RESPONSE,this,null,this.response);throw r}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ht.classes.FormData,Blob:ht.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};
vendor: 4,086 bytes, line 280
280U.forEach(["delete","get","head","post","put","patch"],(t=>{pt.headers[t]={}}));var mt=pt;const vt=U.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const gt=Symbol("internals");function yt(t){return t&&String(t).trim().toLowerCase()}function wt(t){return!1===t||null==t?t:U.isArray(t)?t.map(wt):String(t)}function bt(t,e,n,i,r){return U.isFunction(i)?i.call(this,e,n):(r&&(e=n),U.isString(e)?U.isString(i)?-1!==e.indexOf(i):U.isRegExp(i)?i.test(e):void 0:void 0)}class xt{constructor(t){t&&this.set(t)}set(t,e,n){const i=this;function r(t,e,n){const r=yt(e);if(!r)throw new Error("header name must be a non-empty string");const o=U.findKey(i,r);(!o||void 0===i[o]||!0===n||void 0===n&&!1!==i[o])&&(i[o||e]=wt(t))}const o=(t,e)=>U.forEach(t,((t,n)=>r(t,n,e)));if(U.isPlainObject(t)||t instanceof this.constructor)o(t,e);else if(U.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim()))o((t=>{const e={};let n,i,r;return t&&t.split("\n").forEach((function(t){r=t.indexOf(":"),n=t.substring(0,r).trim().toLowerCase(),i=t.substring(r+1).trim(),!n||e[n]&&vt[n]||("set-cookie"===n?e[n]?e[n].push(i):e[n]=[i]:e[n]=e[n]?e[n]+", "+i:i)})),e})(t),e);else if(U.isHeaders(t))for(const[s,a]of t.entries())r(a,s,n);else null!=t&&r(e,t,n);return this}get(t,e){if(t=yt(t)){const n=U.findKey(this,t);if(n){const t=this[n];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(t);)e[i[1]]=i[2];return e}(t);if(U.isFunction(e))return e.call(this,t,n);if(U.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=yt(t)){const n=U.findKey(this,t);return!(!n||void 0===this[n]||e&&!bt(0,this[n],n,e))}return!1}delete(t,e){const n=this;let i=!1;function r(t){if(t=yt(t)){const r=U.findKey(n,t);!r||e&&!bt(0,n[r],r,e)||(delete n[r],i=!0)}}return U.isArray(t)?t.forEach(r):r(t),i}clear(t){const e=Object.keys(this);let n=e.length,i=!1;for(;n--;){const r=e[n];t&&!bt(0,this[r],r,t,!0)||(delete this[r],i=!0)}return i}normalize(t){const e=this,n={};return U.forEach(this,((i,r)=>{const o=U.findKey(n,r);if(o)return e[o]=wt(i),void delete e[r];const s=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,n)=>e.toUpperCase()+n))}(r):String(r).trim();s!==r&&delete e[r],e[s]=wt(i),n[s]=!0})),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return U.forEach(this,((n,i)=>{null!=n&&!1!==n&&(e[i]=t&&U.isArray(n)?n.join(", "):n)})),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([t,e])=>t+": "+e)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const n=new this(t);return e.forEach((t=>n.set(t))),n}static accessor(t){const e=(this[gt]=this[gt]={accessors:{}}).accessors,n=this.prototype;function i(t){const i=yt(t);e[i]||(!function(t,e){const n=U.toCamelCase(" "+e);["get","set","has"].forEach((i=>{Object.defineProperty(t,i+n,{value:function(t,n,r){return this[i].call(this,e,t,n,r)},configurable:!0})}))}(n,t),e[i]=!0)}return U.isArray(t)?t.forEach(i):i(t),this}}xt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),U.reduceDescriptors(xt.prototype,(({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[n]=t}}})),U.freezeMethods(xt);var St=xt;function Pt(t,e){const n=this||mt,i=e||n,r=St.from(i.headers);let o=i.data;return U.forEach(t,(function(t){o=t.call(n,o,r.normalize(),e?e.status:void 0)})),r.normalize(),o}function Ct(t){return!(!t||!t.__CANCEL__)}function Et(t,e,n){q.call(this,null==t?"canceled":t,q.ERR_CANCELED,e,n),this.name="CanceledError"}U.inherits(Et,q,{__CANCEL__:!0});var At=Et;function Tt(t,e,n){const i=n.config.validateStatus;
280n.status&&i&&!i(n.status)?e(new q("Request failed with status code "+n.status,[q.ERR_BAD_REQUEST,q.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}var Rt=function(t,e){t=t||10;const n=new Array(t),i=new Array(t);let r,o=0,s=0;return e=void 0!==e?e:1e3,function(a){const c=Date.now(),u=i[s];r||(r=c),n[o]=a,i[o]=c;let l=s,d=0;for(;l!==o;)d+=n[l++],l%=t;if(o=(o+1)%t,o===s&&(s=(s+1)%t),c-r<e)return;const h=u&&c-u;return h?Math.round(1e3*d/h):void 0}};var kt=function(t,e){let n=0;const i=1e3/e;let r=null;return function(){const e=!0===this,o=Date.now();if(e||o-n>i)return r&&(clearTimeout(r),r=null),n=o,t.apply(null,arguments);r||(r=setTimeout((()=>(r=null,n=Date.now(),t.apply(null,arguments))),i-(o-n)))}},jt=(t,e,n=3)=>{let i=0;const r=Rt(50,250);return kt((n=>{const o=n.loaded,s=n.lengthComputable?n.total:void 0,a=o-i,c=r(a);i=o;const u={loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&o<=s?(s-o)/c:void 0,event:n,lengthComputable:null!=s};u[e?"download":"upload"]=!0,t(u)}),n)},It=ht.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let n;function i(n){let i=n;return t&&(e.setAttribute("href",i),i=e.href),e.setAttribute("href",i),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return n=i(window.location.href),function(t){const e=U.isString(t)?i(t):t;return e.protocol===n.protocol&&e.host===n.host}}():function(){return!0},Ot=ht.hasStandardBrowserEnv?{write(t,e,n,i,r,o){const s=[t+"="+encodeURIComponent(e)];U.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),U.isString(i)&&s.push("path="+i),U.isString(r)&&s.push("domain="+r),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Mt(t,e){return t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)?function(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}const Bt=t=>t instanceof St?{...t}:t;function Dt(t,e){e=e||{};const n={};function i(t,e,n){return U.isPlainObject(t)&&U.isPlainObject(e)?U.merge.call({caseless:n},t,e):U.isPlainObject(e)?U.merge({},e):U.isArray(e)?e.slice():e}function r(t,e,n){return U.isUndefined(e)?U.isUndefined(t)?void 0:i(void 0,t,n):i(t,e,n)}function o(t,e){if(!U.isUndefined(e))return i(void 0,e)}function s(t,e){return U.isUndefined(e)?U.isUndefined(t)?void 0:i(void 0,t):i(void 0,e)}function a(n,r,o){return o in e?i(n,r):o in t?i(void 0,n):void 0}const c={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(t,e)=>r(Bt(t),Bt(e),!0)};return U.forEach(Object.keys(Object.assign({},t,e)),(function(i){const o=c[i]||r,s=o(t[i],e[i],i);U.isUndefined(s)&&o!==a||(n[i]=s)})),n}var _t=t=>{const e=Dt({},t);let n,{data:i,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:a,auth:c}=e;if(e.headers=a=St.from(a),e.url=it(Mt(e.baseURL,e.url),t.params,t.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),U.isFormData(i))if(ht.hasStandardBrowserEnv||ht.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(n=a.getContentType())){const[t,...e]=n?n.split(";").map((t=>t.trim())).filter(Boolean):[];a.setContentType([t||"multipart/form-data",...e].join("; "))}if(ht.hasStandardBrowserEnv&&(r&&U.isFunction(r)&&(r=r(e)),r||!1!==r&&It(e.url))){const t=o&&s&&Ot.read(s);t&&a.set(o,t)}return e};var Lt="undefined"!==typeof XMLHttpRequest&&function(t){return new Promise((function(e,n){const i=_t(t);let r=i.data;const o=St.from(i.headers).normalize();let s,{responseType:a}=i;function c(){i.cancelToken&&i.cancelToken.unsubscribe(s),i.signal&&i.signal.removeEventListener("abort",s)}let u=new XMLHttpRequest;function l(){if(!u)return;const i=St.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());Tt((function(t){e(t),c()}),(function(t){n(t),c()}),{data:a&&"text"!==a&&"json"!==a?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:i,config:t,request:u}),u=null}u.open(i.method.toUpperCase(),i.url,!0),u.timeout=i.timeout,"onloadend"in u?u.onloadend=l:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(l)},u.onabort=function(){u&&(n(new q("Request aborted",q.ECONNABORTED,i,u)),u=null)},u.onerror=function(){n(new q("Network Error",q.ERR_NETWORK,i,u)),u=null},u.ontimeout=function(){let t=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const e=i.transitional||ot;i.timeoutErrorMessage&&(t=i.timeoutErrorMessage),n(new q(t,e.clarifyTimeoutError?q.ETIMEDOUT:q.ECONNABORTED,i,u)),u=null},void 0===r&&o.setContentType(null),"setRequestHeader"in u&&U.forEac
280h(o.toJSON(),(function(t,e){u.setRequestHeader(e,t)})),U.isUndefined(i.withCredentials)||(u.withCredentials=!!i.withCredentials),a&&"json"!==a&&(u.responseType=i.responseType),"function"===typeof i.onDownloadProgress&&u.addEventListener("progress",jt(i.onDownloadProgress,!0)),"function"===typeof i.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",jt(i.onUploadProgress)),(i.cancelToken||i.signal)&&(s=e=>{u&&(n(!e||e.type?new At(null,t,u):e),u.abort(),u=null)},i.cancelToken&&i.cancelToken.subscribe(s),i.signal&&(i.signal.aborted?s():i.signal.addEventListener("abort",s)));const d=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(i.url);d&&-1===ht.protocols.indexOf(d)?n(new q("Unsupported protocol "+d+":",q.ERR_BAD_REQUEST,t)):u.send(r||null)}))};var Nt=(t,e)=>{let n,i=new AbortController;const r=function(t){if(!n){n=!0,s();const e=t instanceof Error?t:this.reason;i.abort(e instanceof q?e:new At(e instanceof Error?e.message:e))}};let o=e&&setTimeout((()=>{r(new q(`timeout ${e} of ms exceeded`,q.ETIMEDOUT))}),e);const s=()=>{t&&(o&&clearTimeout(o),o=null,t.forEach((t=>{t&&(t.removeEventListener?t.removeEventListener("abort",r):t.unsubscribe(r))})),t=null)};t.forEach((t=>t&&t.addEventListener&&t.addEventListener("abort",r)));const{signal:a}=i;return a.unsubscribe=s,[a,()=>{o&&clearTimeout(o),o=null}]};const Vt=function*(t,e){let n=t.byteLength;if(!e||n<e)return void(yield t);let i,r=0;for(;r<n;)i=r+e,yield t.slice(r,i),r=i},Ft=(t,e,n,i,r)=>{const o=async function*(t,e,n){for await(const i of t)yield*Vt(ArrayBuffer.isView(i)?i:await n(String(i)),e)}(t,e,r);let s=0;return new ReadableStream({type:"bytes",async pull(t){const{done:e,value:r}=await o.next();if(e)return t.close(),void i();let a=r.byteLength;n&&n(s+=a),t.enqueue(new Uint8Array(r))},cancel:t=>(i(t),o.return())},{highWaterMark:2})},Ut=(t,e)=>{const n=null!=t;return i=>setTimeout((()=>e({lengthComputable:n,total:t,loaded:i})))},$t="function"===typeof fetch&&"function"===typeof Request&&"function"===typeof Response,zt=$t&&"function"===typeof ReadableStream,Wt=$t&&("function"===typeof TextEncoder?(qt=new TextEncoder,t=>qt.encode(t)):async t=>new Uint8Array(await new Response(t).arrayBuffer()));var qt;const Kt=zt&&(()=>{let t=!1;const e=new Request(ht.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e})(),Ht=zt&&!!(()=>{try{return U.isReadableStream(new Response("").body)}catch(t){}})(),Gt={stream:Ht&&(t=>t.body)};var Xt;$t&&(Xt=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((t=>{!Gt[t]&&(Gt[t]=U.isFunction(Xt[t])?e=>e[t]():(e,n)=>{throw new q(`Response type '${t}' is not supported`,q.ERR_NOT_SUPPORT,n)})})));const Yt=async(t,e)=>{const n=U.toFiniteNumber(t.getContentLength());return null==n?(async t=>null==t?0:U.isBlob(t)?t.size:U.isSpecCompliantForm(t)?(await new Request(t).arrayBuffer()).byteLength:U.isArrayBufferView(t)?t.byteLength:(U.isURLSearchParams(t)&&(t+=""),U.isString(t)?(await Wt(t)).byteLength:void 0))(e):n};const Zt={http:null,xhr:Lt,fetch:$t&&(async t=>{let{url:e,method:n,data:i,signal:r,cancelToken:o,timeout:s,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:l,withCredentials:d="same-origin",fetchOptions:h}=_t(t);u=u?(u+"").toLowerCase():"text";let f,p,[m,v]=r||o||s?Nt([r,o],s):[];const g=()=>{!f&&setTimeout((()=>{m&&m.unsubscribe()})),f=!0};let y;try{if(c&&Kt&&"get"!==n&&"head"!==n&&0!==(y=await Yt(l,i))){let t,n=new Request(e,{method:"POST",body:i,duplex:"half"});U.isFormData(i)&&(t=n.headers.get("content-type"))&&l.setContentType(t),n.body&&(i=Ft(n.body,65536,Ut(y,jt(c)),null,Wt))}U.isString(d)||(d=d?"cors":"omit"),p=new Request(e,{...h,signal:m,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:i,duplex:"half",withCredentials:d});let r=await fetch(p);const o=Ht&&("stream"===u||"response"===u);if(Ht&&(a||o)){const t={};["status","statusText","headers"].forEach((e=>{t[e]=r[e]}));const e=U.toFiniteNumber(r.headers.get("content-length"));r=new Response(Ft(r.body,65536,a&&Ut(e,jt(a,!0)),o&&g,Wt),t)}u=u||"text";let s=await Gt[U.findKey(Gt,u)||"text"](r,t);return!o&&g(),v&&v(),await new Promise(((e,n)=>{Tt(e,n,{data:s,headers:St.from(r.headers),status:r.status,statusText:r.statusText,config:t,request:p})}))}
vendor: 4,470 bytes, line 280
280catch(w){if(g(),w&&"TypeError"===w.name&&/fetch/i.test(w.message))throw Object.assign(new q("Network Error",q.ERR_NETWORK,t,p),{cause:w.cause||w});throw q.from(w,w&&w.code,t,p)}})};U.forEach(Zt,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(n){}Object.defineProperty(t,"adapterName",{value:e})}}));const Jt=t=>`- ${t}`,Qt=t=>U.isFunction(t)||null===t||!1===t;var te=t=>{t=U.isArray(t)?t:[t];const{length:e}=t;let n,i;const r={};for(let o=0;o<e;o++){let e;if(n=t[o],i=n,!Qt(n)&&(i=Zt[(e=String(n)).toLowerCase()],void 0===i))throw new q(`Unknown adapter '${e}'`);if(i)break;r[e||"#"+o]=i}if(!i){const t=Object.entries(r).map((([t,e])=>`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build")));let n=e?t.length>1?"since :\n"+t.map(Jt).join("\n"):" "+Jt(t[0]):"as no adapter specified";throw new q("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return i};function ee(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new At(null,t)}function ne(t){ee(t),t.headers=St.from(t.headers),t.data=Pt.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);return te(t.adapter||mt.adapter)(t).then((function(e){return ee(t),e.data=Pt.call(t,t.transformResponse,e),e.headers=St.from(e.headers),e}),(function(e){return Ct(e)||(ee(t),e&&e.response&&(e.response.data=Pt.call(t,t.transformResponse,e.response),e.response.headers=St.from(e.response.headers))),Promise.reject(e)}))}const ie="1.7.2",re={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{re[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));const oe={};re.transitional=function(t,e,n){function i(t,e){return"[Axios v1.7.2] Transitional option '"+t+"'"+e+(n?". "+n:"")}return(n,r,o)=>{if(!1===t)throw new q(i(r," has been removed"+(e?" in "+e:"")),q.ERR_DEPRECATED);return e&&!oe[r]&&(oe[r]=!0,console.warn(i(r," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,r,o)}};var se={assertOptions:function(t,e,n){if("object"!==typeof t)throw new q("options must be an object",q.ERR_BAD_OPTION_VALUE);const i=Object.keys(t);let r=i.length;for(;r-- >0;){const o=i[r],s=e[o];if(s){const e=t[o],n=void 0===e||s(e,o,t);if(!0!==n)throw new q("option "+o+" must be "+n,q.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new q("Unknown option "+o,q.ERR_BAD_OPTION)}},validators:re};const ae=se.validators;class ce{constructor(t){this.defaults=t,this.interceptors={request:new rt,response:new rt}}async request(t,e){try{return await this._request(t,e)}catch(n){if(n instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const e=t.stack?t.stack.replace(/^.+\n/,""):"";try{n.stack?e&&!String(n.stack).endsWith(e.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+e):n.stack=e}catch(i){}}throw n}}_request(t,e){"string"===typeof t?(e=e||{}).url=t:e=t||{},e=Dt(this.defaults,e);const{transitional:n,paramsSerializer:i,headers:r}=e;void 0!==n&&se.assertOptions(n,{silentJSONParsing:ae.transitional(ae.boolean),forcedJSONParsing:ae.transitional(ae.boolean),clarifyTimeoutError:ae.transitional(ae.boolean)},!1),null!=i&&(U.isFunction(i)?e.paramsSerializer={serialize:i}:se.assertOptions(i,{encode:ae.function,serialize:ae.function},!0)),e.method=(e.method||this.defaults.method||"get").toLowerCase();let o=r&&U.merge(r.common,r[e.method]);r&&U.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete r[t]})),e.headers=St.concat(o,r);const s=[];let a=!0;this.interceptors.request.forEach((function(t){"function"===typeof t.runWhen&&!1===t.runWhen(e)||(a=a&&t.synchronous,s.unshift(t.fulfilled,t.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(t){c.push(t.fulfilled,t.rejected)}));let l,d=0;if(!a){const t=[ne.bind(this),void 0];for(t.unshift.apply(t,s),t.push.apply(t,c),l=t.length,u=Promise.resolve(e);d<l;)u=u.then(t[d++],t[d++]);return u}l=s.length;let h=e;for(d=0;d<l;){const t=s[d++],e=s[d++];try{h=t(h)}catch(f){e.call(this,f);break}}try{u=ne.call(this,h)}catch(f){return Promise.reject(f)}for(d=0,l=c.length;d<l;)u=u.then(c[d++],c[d++]);return u}getUri(t){return it(Mt((t=Dt(this.defaults,t)).baseURL,t.url),t.params,t.paramsSerializer)}}U.forEach(["delete","get","head","options"],(function(t){ce.prototype[t]=function(e,n){return this.request(Dt(n||{},{method:t,url:e,data:(n||{}).data}))}}
vendor: 1,281 bytes, line 280
280)),U.forEach(["post","put","patch"],(function(t){function e(e){return function(n,i,r){return this.request(Dt(r||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}ce.prototype[t]=e(),ce.prototype[t+"Form"]=e(!0)}));var ue=ce;class le{constructor(t){if("function"!==typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise((function(t){e=t}));const n=this;this.promise.then((t=>{if(!n._listeners)return;let e=n._listeners.length;for(;e-- >0;)n._listeners[e](t);n._listeners=null})),this.promise.then=t=>{let e;const i=new Promise((t=>{n.subscribe(t),e=t})).then(t);return i.cancel=function(){n.unsubscribe(e)},i},t((function(t,i,r){n.reason||(n.reason=new At(t,i,r),e(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}static source(){let t;const e=new le((function(e){t=e}));return{token:e,cancel:t}}}var de=le;const he={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
280alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(he).forEach((([t,e])=>{he[e]=t}));var fe=he;const pe=function t(e){const n=new ue(e),i=r(ue.prototype.request,n);return U.extend(i,ue.prototype,n,{allOwnKeys:!0}),U.extend(i,n,null,{allOwnKeys:!0}),i.create=function(n){return t(Dt(e,n))},i}(mt);pe.Axios=ue,pe.CanceledError=At,pe.CancelToken=de,pe.isCancel=Ct,pe.VERSION=ie,pe.toFormData=Z,pe.AxiosError=q,pe.Cancel=pe.CanceledError,pe.all=function(t){return Promise.all(t)},pe.spread=function(t){return function(e){return t.apply(null,e)}},pe.isAxiosError=function(t){return U.isObject(t)&&!0===t.isAxiosError},pe.mergeConfig=Dt,pe.AxiosHeaders=St,pe.formToJSON=t=>ft(U.isHTMLForm(t)?new FormData(t):t),pe.getAdapter=te,pe.HttpStatusCode=fe,pe.default=pe;var me=pe,ve=(t=>(t.MapAndList="map_and_list",t.List="list",t.Custom="custom",t.Map="map",t))(ve||{}),ge=(t=>(t.Default="default",t.ProxyLocation="proxyLocation",t))(ge||{}),ye=(t=>(t.Otpravka="Otpravka",t.Poluchenie="Poluchenie",t))(ye||{}),we=[/\s+/g,/\u0433\.\s*/gi,/\u0443\u043b\.\s*/gi,/\u043f\u0440-\u043a\u0442\.\s*/gi,/\u043f\u0440-\u043a\u0442\s*/gi],be=(t,e=we)=>{let n=t;for(let i of e)n=n.replace(i," ");return n.trim().replaceAll(/\s+/g," ")};function xe(t,e){if(!t)return[];let n=Array.isArray(t)?t:[t];return e&&0!==e.length?n.map((t=>((t,e)=>{let n=e.reduce(((e,n)=>(void 0!==t.metadata?.[n]&&(e[n]=t.metadata[n]),e)),{});return Object.assign({id:t.id},n)})(t,e))):n.map((t=>t.id))}var Se,Pe=()=>{if(!ymaps)throw new Error("\u041c\u043e\u0434\u0443\u043b\u044c Yandex Maps \u0432\u0435\u0440\u0441\u0438\u0438 2 \u043d\u0435 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d! \u0423\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e \u0432\u044b \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0435 \u043c\u0435\u0442\u043e\u0434 \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043c\u043e\u0434\u0443\u043b\u044f.")},Ce=()=>{if(!ymaps3)throw new Error("\u041c\u043e\u0434\u0443\u043b\u044c Yandex Maps \u0432\u0435\u0440\u0441\u0438\u0438 3 \u043d\u0435 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d! \u0423\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e \u0432\u044b \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0435 \u043c\u0435\u0442\u043e\u0434 \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043c\u043e\u0434\u0443\u043b\u044f.")},Ee=t=>(t=>{let[[e,n],[i,r]]=t;return[[r,e],[n,i]]})(t).toString(),Ae="/agents/",Te="apik3/v1/agents",Re="apik3/v1/agents/info",ke=t=>{Se=t&&Object.keys(t).length>0?t:void 0},je=t=>e=>{if(!e)return;let n=/\/$/u.test(e)?e:`${e}/`;t(n)},Ie=je((t=>{Ae=t})),Oe=(je((t=>{Te=t})),je((t=>{Re=t})),"rootId,id,name,shortName,address,schedule,phone,yandexLocation,services"),Me="id,shortName,address,services,schedule,phone",Be=async(t,e=Ae)=>{try{return(await me.get(e,{params:{locationService:"yandex",...t},headers:Se})).data}catch{return[]}},De=(t,e=200)=>{if(!t)return[];let n=(t=>t?t.split(/(?:\+or\+|\s+or\s+)/iu).map((t=>t.trim())).filter(Boolean):[])(t),i=[],r="";for(let o of n){let t=r?`${r}+or+${o}`:o;t.length<=e?r=t:r?(i.push(r),r=o):(i.push(o),r="")}return r&&i.push(r),i},_e=async(t,e)=>{let n=t?.services;if(!n||n.length<=1400)return Be(t,e);let i=De(n,1400),r=new Map;return await(async({chunks:t,params:e,url:n,addAgentsToMap:i})=>{for(let r=0;r<t.length;r++){let o=t[r];try{i(await Be({...e,services:o},n))}catch{}r<t.length-1&&await new Promise((t=>setTimeout(t,50)))}})({chunks:i,params:t,url:e,addAgentsToMap:t=>{for(let e of t)!e||!("id"in e)||r.has(e.id)||r.set(e.id,e)}}),[...r.values()]},Le=async t=>(async({id:t,fields:e},n)=>(await _e({addressTruncateLevel:"locality",ids:t,fields:e},n))?.at(0))({id:t.id,fields:Me}),Ne=async(t,e,n)=>{let i=t?Ee(t):void 0,{queryString:r,...o}=e||{};return await(async(t,e)=>{let n=await _e(t,e);if(n.length<5e3)return n;await new Promise((t=>setTimeout(t,300)));let i=await _e({...t,offset:5e3},e);return[...n,...i]})({addressTruncateLevel:"locality",locationService:"yandex",limit:5e3,sort:i?"distance":"relevance",box:i,fields:Oe,queryString:r?be(r):void 0,...o},n)},Ve=async(t,e)=>{let n=xe(t);return await _e({ids:n.join(","),fields:Me,...e})},Fe=async({limit:t,features:e})=>{let n=xe(e);if(!n)return{agents:[],hasNext:!1};try{let e=await _e({addressTruncateLevel:"locality",ids:n.join(","),fields:Oe});return{agents:e.slice(0,t),hasNext:e.slice(t,t+1).length>0}}catch{return{agents:[],hasNext:!1}}},Ue=async t=>{try{return(t=>t.map((t=>({...t,shortName:t.name,metadata:{isChecked:t.isChecked}}))))((await me.post(`${Ae}${Re}`,t,{headers:{"Content-Type":"application/json",...Se}})).data)}catch(nn){return console.error("\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0430\u0433\u0435\u043d\u0442\u043e\u0432:",nn),[]}},$e=async t=>{let e=xe(t,["organizationType"]);return(await Ue(e)).at(0)},ze=async t=>{let e=xe(t,["organizationType"]);return await Ue(e)},We=async({limit:t,features:e})=>{let n=xe(e,["organizationType"]);if(!n)return{agents:[],hasNext:!1};try{let e=await Ue(n);return{agents:e.slice(0,t),hasNext:e.slice(t,t+1).length>0}}catch{return{agents:[],hasNext:!1}}},qe=async(t,e)=>{let n=t?Ee(t):void 0,{open:i,pointTypeBank:r,pointTypeTradingNetwork:o}=e||{};try{return(await me.get(`${Ae}${Te}`,{params:{box:n,open:i,pointTypeBank:r,pointTypeTradingNetwork:o},headers:Se})).data.map((t=>({...t,yandexLocation:t.location})))}catch{return[]}},Ke=(t,e=Ae)=>{let n=((t,e=Ae)=>`${e}services?addressObjectId=${t}`)(t,e);return fetch(n).then((t=>t.json()))},He=t=>[t.longitude,t.latitude],Ge=async({coords:t})=>{Pe();let e=await ymaps.geocode(t.reverse().join(",")).then((t=>t.geoObjects.get(0)?.properties.get("metaDataProperty.GeocoderMetaData.AddressDetail
280s.Country",{})));if(!e)throw new Error("\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0438 \u0430\u0434\u0440\u0435\u0441\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043f\u043e \u0435\u0433\u043e \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430\u043c.");return e},Xe=({searchCode:t})=>(Pe(),ymaps.geocode(t).then((e=>{let n=e.geoObjects.get(0).geometry?.getCoordinates(),i=e.geoObjects.get(0).properties.get("metaDataProperty",{})?.GeocoderMetaData?.Address?.country_code,r=e.geoObjects.get(0).properties.get("boundedBy",{});if(!n||!r||!i)throw new Error("\u041e\u0431\u043b\u0430\u0441\u0442\u044c \u0438 \u0446\u0435\u043d\u0442\u0440, \u043a\u043e\u0434 \u0441\u0442\u0440\u0430\u043d\u044b \u043d\u0435 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u044b!");return[{id:t,countryCode:i,boundedBy:[[r[0][1],r[0][0]],[r[1][1],r[1][0]]],name:t}]}))),Ye={lang:"ru_RU",strict_bounds:1,local_only:0,search_type:"tp",fullpath:"1",n:10,v:5},Ze=({endpoint:t,text:e,bounds:n,apikey:i})=>{let r={apikey:i,part:`${e}`,bbox:n?.toString()??"",...Ye};return Pe(),r?new Promise((e=>{((t,e)=>{let n="jsonp_callback_"+Math.round(1e5*Math.random()),i=document.createElement("script");window[n]=function(t){delete window[n],i.remove(),e(t)},i.src=t+(t.includes("?")?"&":"?")+"callback="+n,document.body.append(i)})(t+"?"+(t=>Object.keys(t).reduce(((e,n)=>(e.push(n+"="+encodeURIComponent(t[n])),e)),[]).join("&"))(r),(t=>{let n=(t=>{let e=new Set;return t.reduce(((t,[n,i,r,o])=>(e.has(r)||(e.add(r),t.push({value:r,hl:o.hl})),t)),[])??[]})(t[1]);e(n)}))})):Promise.resolve(null)},Je=async({bounds:t,endpoint:e="https://suggest-maps.yandex.ru/suggest-geo",...n})=>{let i=await Ze({endpoint:e,...n,bounds:t});return i?i.map((t=>({id:t.value,value:t.value,label:t.value}))):[]},Qe=async({text:t,bounds:e,country:n,apikey:i,ignorePatterns:r=we})=>{let o=be(t,r);return Je({text:n?`${n}, ${o}`:o,bounds:e,apikey:i})},tn=async()=>{Ce();let t=await(async()=>(Ce(),(await(ymaps3?.geolocation.getPosition({enableHighAccuracy:!0,timeout:1e4}))).coords))();return ymaps3.suggest({text:t.toString()})},en=async()=>{let t=await(async()=>(t=>t.filter((t=>"toponym"===t.type)).at(0)?.value??t.filter((t=>"unknown"===t.type)).at(-1)?.subtitle?.text)(await tn()))();if(!t)throw new Error("\u0413\u043e\u0440\u043e\u0434 \u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c!");let e=await Xe({searchCode:t}),n=e?.at(0)?.countryCode,i=e?.at(0)?.boundedBy;if(!i)throw new Error("\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c bbox.");if(!n)throw new Error("\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u043a\u043e\u0434 \u0441\u0442\u0440\u0430\u043d\u044b.");return{city:t,bbox:i,code:n}},nn=(t=>(t.TRADING_NETWORK="trading_network",t.BANK="bank",t))(nn||{})},12148:function(t,e,n){"use strict";n.d(e,{v6:function(){return i.r}});var i=n(64797)}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.