PageSourceSearch

https://meetergo.com/_next/static/chunks/21723.c088f16a3f522597.js

js meetergo.com collected 2026-10-01 13:11:53 UTC 1,382,930 bytes, 216 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21723],{121:(e,t,n)=>{var r=n(8025);e.exports=function(e,t){return r(e,t)}},279:(e,t,n)=>{"use strict";n.d(t,{RK:()=>b});var r=n(7531),i=n(83202),o=n(82203);let a=["block","list","listItem","marks","types"],s=["listItem"],l=["_key"];function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}let f={textDecoration:"underline"},h=(e,t)=>`[@portabletext/react] Unknown ${e}, specify a component for it in the \`components.${t}\` prop`,p=e=>h(`block type "${e}"`,"types");function g(e){console.warn(e)}let m={display:"none"},y={types:{},block:{normal:({children:e})=>(0,r.jsx)("p",{children:e}),blockquote:({children:e})=>(0,r.jsx)("blockquote",{children:e}),h1:({children:e})=>(0,r.jsx)("h1",{children:e}),h2:({children:e})=>(0,r.jsx)("h2",{children:e}),h3:({children:e})=>(0,r.jsx)("h3",{children:e}),h4:({children:e})=>(0,r.jsx)("h4",{children:e}),h5:({children:e})=>(0,r.jsx)("h5",{children:e}),h6:({children:e})=>(0,r.jsx)("h6",{children:e})},marks:{em:({children:e})=>(0,r.jsx)("em",{children:e}),strong:({children:e})=>(0,r.jsx)("strong",{children:e}),code:({children:e})=>(0,r.jsx)("code",{children:e}),underline:({children:e})=>(0,r.jsx)("span",{style:f,children:e}),"strike-through":({children:e})=>(0,r.jsx)("del",{children:e}),link:({children:e,value:t})=>(0,r.jsx)("a",{href:t?.href,children:e})},list:{number:({children:e})=>(0,r.jsx)("ol",{children:e}),bullet:({children:e})=>(0,r.jsx)("ul",{children:e})},listItem:({children:e})=>(0,r.jsx)("li",{children:e}),hardBreak:()=>(0,r.jsx)("br",{}),unknownType:({value:e,isInline:t})=>{let n=p(e._type);return t?(0,r.jsx)("span",{style:m,children:n}):(0,r.jsx)("div",{style:m,children:n})},unknownMark:({markType:e,children:t})=>(0,r.jsx)("span",{className:`unknown__pt__mark__${e}`,children:t}),unknownList:({children:e})=>(0,r.jsx)("ul",{children:e}),unknownListItem:({children:e})=>(0,r.jsx)("li",{children:e}),unknownBlockStyle:({children:e})=>(0,r.jsx)("p",{children:e})};function v(e,t,n){let r=t[n],i=e[n];return"function"==typeof r||r&&"function"==typeof i?r:r?c(c({},i),r):i}function b({value:e,components:t,listNestingMode:n,onMissingComponent:s=g}){let l=s||k,u=Array.isArray(e)?e:[e],f=(0,i.iS)(u,n||i.mn),h=(0,o.useMemo)(()=>t?function(e,t){let{block:n,list:r,listItem:i,marks:o,types:s}=t,l=d(t,a);return c(c({},e),{},{block:v(e,t,"block"),list:v(e,t,"list"),listItem:v(e,t,"listItem"),marks:v(e,t,"marks"),types:v(e,t,"types")},l)}(y,t):y,[t]),p=(0,o.useMemo)(()=>w(h,l),[h,l]),m=f.map((e,t)=>p({node:e,index:t,isInline:!1,renderNode:p}));return(0,r.jsx)(r.Fragment,{children:m})}let w=(e,t)=>function n(o){let{node:a,index:u,isInline:f}=o,g=a._key||`node-${u}`;return(0,i.zp)(a)?function(i,o,a){let s=i.children.map((e,t)=>n({node:e._key?e:c(c({},e),{},{_key:`li-${o}-${t}`}),index:t,isInline:!1,renderNode:n})),l=e.list,u=("function"==typeof l?l:l[i.listItem])||e.unknownList;if(u===e.unknownList){let e=i.listItem||"bullet";t(h(`list style "${e}"`,"list"),{nodeType:"listStyle",type:e})}return(0,r.jsx)(u,{value:i,index:o,isInline:!1,renderNode:n,children:s},a)}(a,u,g):(0,i.n2)(a)?function(i,o,a){let l=x({node:i,index:o,isInline:!1,renderNode:n}),u=e.listItem,c=("function"==typeof u?u:u[i.listItem])||e.unknownListItem;if(c===e.unknownListItem){let e=i.listItem||"bullet";t(h(`list item style "${e}"`,"listItem"),{type:e,nodeType:"listItemStyle"})}let f=l.children;if(i.style&&"normal"!==i.style){let{listItem:e}=i;f=n({node:d(i,s),index:o,isInline:!1,renderNode:n})}return(0,r.jsx)(c,{value:i,index:o,isInline:!1,renderNode:n,children:f},a)}(a,u,g):(0,i.tO)(a)?function(o,a,s){let{markDef:l,markType:u,markKey:c}=o,d=e.marks[u]||e.unknownMark,f=o.children.map((e,t)=>n({node:e,index:t,isInline:!0,renderNode:n}));return d===e.unknownMark&&t(h(`mark type "${u}"`,"marks"),{nodeType:"mark",type:u}),(0,r.jsx)(d,{text:(0,i.fg)(o),value:l,markType:u,markKey:c,renderNode:n,children:f},s)}(a,0,g):a._type in e.types?function(t,i,o,a){let s=e.types[t._type];return s?(0,r.jsx)(s,c({},{value:t,isInline:a,index:i,renderNode:n}),o):null}(a,u,g,f):(0,i.IG)(a)?function(i,o,a,s){let u=x({node:i,index:o,isInline:s,renderNode:n}),{_key:f}=u,p=d(u,l),g=p.node.style||"normal",m=("function"==typeof e.block?e.block:e.block[g])||e.unknownBlockStyle;return m===e.unknownBlockStyle&&t(h(`block style "${g}"`,"block"),{nodeType:"blockStyle",type:g}),(0,r.jsx)(m,c(c({},p),{},{value:p.node,renderNode:n}),a)}(a,u,g,f):(0,i.YA)(a)?function(t,n){if(t.text===`
2`){let t=e.hardBreak;return t?(0,r.jsx)(t,{},n):`
3`}return t.text}(a,g):function(i,o,a,s){t(p(i._type),{nodeType:"block",type:i._type});let l=e.unknownType;return(0,r.jsx)(l,c({},{value:i,isInline:s,index:o,renderNode:n}),a)}(a,u,g,f)};function x(e){let{node:t,index:n,isInline:r,renderNode:o}=e,a=(0,i.Pq)(t).map((e,t)=>o({node:e,isInline:!0,index:t,renderNode:o}));return{_key:t._key||`block-${n}`,children:a,index:n,isInline:r,node:t}}function k(){}},294:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},525:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}},546:e=>{"use strict";class t{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(void 0!==t)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>
3=this.max){let e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}e.exports=t},690:(e,t,n)=>{var r=n(88567);e.exports=function(){if(!arguments.length)return[];var e=arguments[0];return r(e)?e:[e]}},902:(e,t,n)=>{"use strict";n.d(t,{Cj:()=>g,W3:()=>l,bN:()=>d,bm:()=>f,h4:()=>s,n2:()=>m,yH:()=>u,zk:()=>p});var r=n(90279),i=n(77899),o=n(77865),a=n(6541);function s(e,t=[]){return[e,t]}function l(e,t){let[n,r]=e;return[n,[...r,t]]}function u(e,t){for(let n of e[1]){let e=n[0].type;if(t(n,e))return!0}return!1}function c(e){return a.O.__SENTRY__&&a.O.__SENTRY__.encodePolyfill?a.O.__SENTRY__.encodePolyfill(e):new TextEncoder().encode(e)}function d(e){let[t,n]=e,r=JSON.stringify(t);function o(e){"string"==typeof r?r="string"==typeof e?r+e:[c(r),e]:r.push("string"==typeof e?c(e):e)}for(let e of n){let[t,n]=e;if(o(`
4${JSON.stringify(t)}
5`),"string"==typeof n||n instanceof Uint8Array)o(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify((0,i.S8)(n))}o(e)}}return"string"==typeof r?r:function(e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),n=0;for(let r of e)t.set(r,n),n+=r.length;return t}(r)}function f(e){let t="string"==typeof e.data?c(e.data):e.data;return[(0,o.Ce)({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}let h={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket",raw_security:"security"};function p(e){return h[e]}function g(e){if(!e||!e.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function m(e,t,n,i){let a=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&i&&{dsn:(0,r.SB)(i)},...a&&{trace:(0,o.Ce)({...a})}}}},1033:e=>{e.exports=function(e,t){return e>t}},1045:(e,t,n)=>{"use strict";let r=n(56685);e.exports=(e,t)=>e.sort((e,n)=>r(n,e,t))},1066:(e,t,n)=>{var r=n(86531),i=n(94598),o=n(88567),a=n(88002),s=1/0,l=r?r.prototype:void 0,u=l?l.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-s?"-0":n}},1247:(e,t,n)=>{var r=n(95999),i=n(19054),o=n(9044),a=n(88567),s=n(4915);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):r(e):s(e)}},1371:(e,t,n)=>{var r=n(1786),i=n(88567),o=n(78946);e.exports=function(e){return"string"==typeof e||!i(e)&&o(e)&&"[object String]"==r(e)}},1435:(e,t,n)=>{"use strict";n.d(t,{lG:()=>f});var r=n(23791);function i(e,t,n,i){let o={filename:e,function:"<anonymous>"===t?r.yF:t,in_app:!0};return void 0!==n&&(o.lineno=n),void 0!==i&&(o.colno=i),o}let o=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,a=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,s=/\((\S*)(?::(\d+))(?::(\d+))\)/,l=[30,e=>{let t=o.exec(e);if(t){let[,e,n,o]=t;return i(e,r.yF,+n,+o)}let n=a.exec(e);if(n){if(n[2]&&0===n[2].indexOf("eval")){let e=s.exec(n[2]);e&&(n[2]=e[1],n[3]=e[2],n[4]=e[3])}let[e,t]=h(n[1]||r.yF,n[2]);return i(t,e,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],u=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,c=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,d=[50,e=>{let t=u.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=c.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||r.yF;return[n,e]=h(n,e),i(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],f=(0,r.gd)(l,d),h=(e,t)=>{let n=-1!==e.indexOf("safari-extension"),i=-1!==e.indexOf("safari-web-extension");return n||i?[-1!==e.indexOf("@")?e.split("@")[0]:r.yF,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]}},1514:(e,t,n)=>{var r=n(68685),i=Object.create;e.exports=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}()}
5,1674:(e,t,n)=>{var r=n(64843),i=n(9816),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},1740:(e,t,n)=>{var r=n(86531),i=n(45430),o=n(14492),a=n(66647),s=n(7447),l=n(67527),u=r?r.prototype:void 0,c=u?u.valueOf:void 0;e.exports=function(e,t,n,r,u,d,f){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!d(new i(e),new i(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=s;case"[object Set]":var p=1&r;if(h||(h=l),e.size!=t.size&&!p)break;var g=f.get(e);if(g)return g==t;r|=2,f.set(e,t);var m=a(h(e),h(t),r,u,d,f);return f.delete(e),m;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},1786:(e,t,n)=>{var r=n(86531),i=n(53191),o=n(82516),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},2196:(e,t,n)=>{"use strict";var r=n(30020),i=n(25922),o=n(86228);e.exports=function(e,t){var n=t.markers.map(function(e){return e.line?e:{line:e}}).sort(function(e,t){return e.line-t.line});return function(e,t,n){if(0===t.length||0===e.length)return e;for(var a=t.reduce(function(e,t){return function(e,t){var n={type:"root",children:t},a=new o,s=new o,l=new o,u=[];function c(e,t,r){u.push(t),r.forEach(function(t){e.has(t)||(e.set(t,Object.assign({},t,{children:[]})),t!==n&&u.push(t))});for(var i=r.length;i--;){var o=e.get(r[i]),a=r[i+1],s=e.get(a)||t;-1===o.children.indexOf(s)&&o.children.push(s)}}i(n,function(t,n){if(!t.children){if(t.lineStart<e)return void c(a,t,n);if(t.lineStart===e)return void c(s,t,n);t.lineEnd>e&&u.some(function(e){return -1!==n.indexOf(e)})&&c(l,t,n)}});var d=r(n,function(e){return -1===u.indexOf(e)}),f=function(e){var t=e.get(n);return t?(i(t,function(e,t){if(e.children){e.lineStart=0,e.lineEnd=0;return}t.forEach(function(t){t.lineStart=Math.max(t.lineStart,e.lineStart),t.lineEnd=Math.max(t.lineEnd,e.lineEnd)})}),t.children):[]},h=[].concat(f(a),f(s),f(l),d?d.children:[]);return a.clear(),s.clear(),l.clear(),h}(t.line,e)},e),s=[],l=0,u=0;u<t.length;u++){for(var c=t[u],d=a[l];d&&d.lineEnd<c.line;d=a[++l])s.push(d);for(var f=[],h=a[l];h&&h.lineEnd===c.line;h=a[++l])f.push(h);f.length>0&&s.push(function(e,t,n){var r=t.className||"refractor-marker";return{type:"element",tagName:t.component||"div",properties:t.component?Object.assign({},n,{className:r}):{className:r},children:e,lineStart:t.line,lineEnd:e[e.length-1].lineEnd,isMarker:!0}}(f,c,n))}for(;l<a.length;)s.push(a[l++]);return s}(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{lineNumber:1};return t.reduce(function(t,r){var i=n.lineNumber;if("text"===r.type){if(-1===r.value.indexOf("\n"))return r.lineStart=i,r.lineEnd=i,t.nodes.push(r),t;for(var o=r.value.split("\n"),a=0;a<o.length;a++){var s=0===a?n.lineNumber:++n.lineNumber;t.nodes.push({type:"text",value:a===o.length-1?o[a]:"".concat(o[a],"\n"),lineStart:s,lineEnd:s})}return t.lineNumber=n.lineNumber,t}if(r.children){var l=e(r.children,n),u=l.nodes[0],c=l.nodes[l.nodes.length-1];return r.lineStart=u?u.lineStart:i,r.lineEnd=c?c.lineEnd:i,r.children=l.nodes,t.lineNumber=l.lineNumber,t.nodes.push(r),t}return t.nodes.push(r),t},{nodes:[],lineNumber:n.lineNumber})}(e).nodes,n,t)}},2427:(e,t,n)=>{var r=n(87e3),i=n(12953),o=n(82475);e.exports=function(e){if(e instanceof r)return e.clone();var t=new i(e.__wrapped__,e.__chain__);return t.__actions__=o(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}},3025:(e,t,n)=>{var r=n(57127);e.exports=function(e){return r(e)?e:[]}},3039:(e,t,n)=>{"use strict";n.d(t,{ZF:()=>o,el:()=>i});var r=n(12378);function i(){return(0,r.eJ)()}function o(){return(0,r.eJ)().substring(16)}},3168:(e,t,n)=>{var r=n(63114),i=/[\\^$.*+?()[\]{}|]/g,o=RegExp(i.source);e.exports=function(e){return(e=r(e))&&o.test(e)?e.replace(i,"\\$&"):e}},3185:(e,t,n)=>{"use strict";n.d(t,{FF:()=>b,LG:()=>H,Y9:()=>w,YD:()=>S,nX:()=>A,oX:()=>x,ql:()=>V,vX:()=>I});let r="https://cdn.sanity.io",i=/^https:\/\/cdn\.sanity\./,o=/^https:\/\/cdn\.[^/]+\/(images|files)\/[^/]+\/.*?[a-zA-Z0-9_]{24,40}.*$/,a=/^([a-zA-Z0-9_]{24,40}|[a-f0-9]{40})+\.[a-z0-9]+$/,s=/^file-([a-zA-Z0-9_]{24,40}|[a-f0-9]{40})+-[a-z0-9]+$/,l=/^([a-zA-Z0-9_]{24,40}|[a-f0-9]{40})-\d+x\d+\.[a-z0-9]+$/,u=/^image-([a-zA-Z0-9_]{24,40}|[a-f0-9]{40})+-\d+x\d+-[a-z0-9]+$/,c=/^(images|files)\/([a-z0-9]+)\/([a-z0-9][-\w]*)\//,d=/^(?:image-(?:[a-zA-Z0-9_]{24,40}|[a-f0-9]{40})+-\d+x\d+-[a-z0-9]+|file-(?:[a-zA-Z0-9_]{24,40}|[a-f0-9]{40})+-[a-z0-9]+)$/,f={projectId:"a",dataset:"b"};
5class h extends Error{constructor(e,t="Failed to resolve asset ID from source"){super(t),this.unresolvable=!0,this.input=e}}function p(e){return(...t)=>{try{return e(...t)}catch(e){if(e.unresolvable&&"input"in e)return;throw e}}}function g(e){return null!==e&&!Array.isArray(e)&&"object"==typeof e}function m(e){return g(e)&&"string"==typeof e._ref}function y(e){return g(e)&&"string"==typeof e.path}function v(e){return g(e)&&"string"==typeof e.url}function b(e){return u.test(e)}function w(e){return s.test(e)}function x(e){return g(e)&&e.asset&&"object"==typeof e.asset}function k(e){return i.test(e)||o.test(e)}let E=Object.freeze({left:0,top:0,bottom:0,right:0}),_=Object.freeze({x:.5,y:.5,height:1,width:1}),S=e=>{let{top:t,bottom:n,left:r,right:i}=e,{top:o,bottom:a,left:s,right:l}=E;return t===o&&n===a&&r===s&&i===l},A=e=>{let{x:t,y:n,width:r,height:i}=e,{x:o,y:a,width:s,height:l}=_;return t===o&&n===a&&r===s&&i===l};function T(e,t){let n=t?.projectId||e.projectId,r=t?.dataset||e.dataset;if(!n||!r)throw Error("Project details (projectId and dataset) required to resolve path for image");let i="metadata"in e?e.metadata.dimensions:{width:e.width,height:e.height},o="originalFilename"in e?e.originalFilename:void 0,{assetId:a,extension:s,vanityFilename:l}=e,{width:u,height:c}=i,d=D(o,l,t);return`images/${n}/${r}/${a}-${u}x${c}.${s}${d}`}function C(e,t){let n=t?.projectId||e.projectId,r=t?.dataset||e.dataset;if(!n||!r)throw Error("Project details (projectId and dataset) required to resolve path for file");let i="originalFilename"in e?e.originalFilename:void 0,{assetId:o,extension:a,vanityFilename:s}=e,l=D(i,s,t);return`files/${n}/${r}/${o}.${a}${l}`}function O(e){if(c.test(e))return e;if(!k(e))throw new h(`Failed to resolve path from URL "${e}"`);return new URL(e).pathname.replace(/^\/+/,"")}let j=p(O);function D(e,t,n){let r=t||e;return n?.useVanityName!==!1&&r?`/${r}`:""}function R(e){let[,t,n,r]=e.split("-"),[i,o]=(n||"").split("x").map(Number);if(!t||!n||!r||!(i>0)||!(o>0))throw Error(`Malformed asset ID '${e}'. Expected an id like "image-027401f31c3ac1e6d78c5d539ccd1beff72b9b11-2000x3000-jpg".`);return{type:"image",assetId:t,width:i,height:o,extension:r}}function I(e){let{width:t,height:n}=R(L(e));return{width:t,height:n,aspectRatio:t/n}}function P(e,t){let n=t||q(e);return{asset:M(e,n),crop:e.crop||{...E},hotspot:e.hotspot||{..._}}}function M(e,t){let n={...t||B(e),useVanityName:!1},i=L(e),o=(e.asset||e).metadata||{},{assetId:a,width:s,height:l,extension:u}=R(i),c={...g(e)&&"sanity.imageAsset"===e._type?e:{},_id:i,_type:"sanity.imageAsset",assetId:a,extension:u,metadata:{...o,dimensions:{width:s,height:l,aspectRatio:s/l}},url:"",path:""};return{...c,path:T(c,n),url:`${n?.baseUrl||r}/${T(c,n)}`}}function N(e,t){let n=t||q(e);return{asset:$(e,n)}}function $(e,t){let n={...t||B(e),useVanityName:!1},i=L(e),o=e.asset||e,{assetId:a,extension:l}=function(e){if(!s.test(e))throw Error(`Malformed file asset ID '${e}'. Expected an id like "file-027401f31c3ac1e6d78c5d539ccd1beff72b9b11-pdf"`);let[,t,n]=e.split("-");return{type:"file",assetId:t,extension:n}}(i),u={...g(e)&&"sanity.fileAsset"===e._type?e:{},_id:i,_type:"sanity.fileAsset",assetId:a,extension:l,metadata:o.metadata||{},url:"",path:""};return{...u,path:C(u,n),url:`${n?.baseUrl||r}/${C(u,n)}`}}function L(e){let t=x(e)?e.asset:e,n="";if("string"==typeof t?n=U(t):m(t)?n=t._ref:g(t)&&"string"==typeof t._id?n=t._id:y(t)?n=z(`${r}/${t.path}`):v(t)&&(n=z(t.url)),!(n&&d.test(n)))throw new h(e);return n}p(function(e){var t;let n=(j(e)||e).replace(/^(images|files)\/[a-z0-9]+\/[a-z0-9][-\w]\/*/,"");if(t=n,!(a.test(t)||l.test(t)))throw new h(`Failed to resolve filename from URL "${e}"`);return n}),p(I),p(function(e){return V(e)?N(e,f).asset.extension:P(e,f).asset.extension}),p(P),p(M),p(N),p($);let F=p(L);function U(e){var t,n;if(d.test(e))return e;let i=k(e)?new URL(e).pathname:e;if(0===i.indexOf("/images")||0===i.indexOf("/files"))return z(e);if(c.test(e))return z(`${r}/${e}`);if(t=e,a.test(t))return z(`${r}/files/a/b/${e}`);if(n=e,l.test(n))return z(`${r}/images/a/b/${e}`);throw new h(e)}function z(e){let[t,,,n]=O(e).split("/");return`${t.replace(/s$/,"")}-${n.replace(/\./g,"-")}`}function B(e){let t=function e(t){if(x(t))return e(t.asset);if(!m(t)){if("string"==typeof t)return c.test(j(t)||"")?O(t):void 0;if(y(t))return t.path;if(v(t))return O(t.url)}}(e);if(!t)throw new h(e,"Failed to resolve project ID and dataset from source");let[,,n,r]=t.match(c)||[];
5if(!n||!r)throw new h(e,"Failed to resolve project ID and dataset from source");return{projectId:n,dataset:r}}p(U);let q=p(B);function V(e){let t=F(e);return!!t&&t.startsWith("file-")}function H(e){let t=F(e);return!!t&&t.startsWith("image-")}},3197:(e,t,n)=>{"use strict";n.d(t,{TM:()=>u,sC:()=>c,zR:()=>l});var r,i=n(66954);!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(r||(r={}));var o=function(e){return e},a="beforeunload",s="popstate";function l(e){void 0===e&&(e={});var t=e.window,n=void 0===t?document.defaultView:t,l=n.history;function u(){var e=n.location,t=e.pathname,r=e.search,i=e.hash,a=l.state||{};return[a.idx,o({pathname:t,search:r,hash:i,state:a.usr||null,key:a.key||"default"})]}var c=null;n.addEventListener(s,function(){if(c)x.call(c),c=null;else{var e=r.Pop,t=u(),n=t[0],i=t[1];if(x.length){if(null!=n){var o=v-n;o&&(c={action:e,location:i,retry:function(){T(-1*o)}},T(o))}}else A(e)}});var d=r.Pop,y=u(),v=y[0],b=y[1],w=h(),x=h();function k(e){return"string"==typeof e?e:g(e)}function E(e,t){return void 0===t&&(t=null),o((0,i.A)({pathname:b.pathname,hash:"",search:""},"string"==typeof e?m(e):e,{state:t,key:p()}))}function _(e,t){return[{usr:e.state,key:e.key,idx:t},k(e)]}function S(e,t,n){return!x.length||(x.call({action:e,location:t,retry:n}),!1)}function A(e){d=e;var t=u();v=t[0],b=t[1],w.call({action:d,location:b})}function T(e){l.go(e)}return null==v&&(v=0,l.replaceState((0,i.A)({},l.state,{idx:v}),"")),{get action(){return d},get location(){return b},createHref:k,push:function e(t,i){var o=r.Push,a=E(t,i);if(S(o,a,function(){e(t,i)})){var s=_(a,v+1),u=s[0],c=s[1];try{l.pushState(u,"",c)}catch(e){n.location.assign(c)}A(o)}},replace:function e(t,n){var i=r.Replace,o=E(t,n);if(S(i,o,function(){e(t,n)})){var a=_(o,v),s=a[0],u=a[1];l.replaceState(s,"",u),A(i)}},go:T,back:function(){T(-1)},forward:function(){T(1)},listen:function(e){return w.push(e)},block:function(e){var t=x.push(e);return 1===x.length&&n.addEventListener(a,f),function(){t(),x.length||n.removeEventListener(a,f)}}}}function u(e){void 0===e&&(e={});var t=e.window,n=void 0===t?document.defaultView:t,l=n.history;function u(){var e=m(n.location.hash.substr(1)),t=e.pathname,r=e.search,i=e.hash,a=l.state||{};return[a.idx,o({pathname:void 0===t?"/":t,search:void 0===r?"":r,hash:void 0===i?"":i,state:a.usr||null,key:a.key||"default"})]}var c=null;function d(){if(c)k.call(c),c=null;else{var e=r.Pop,t=u(),n=t[0],i=t[1];if(k.length){if(null!=n){var o=b-n;o&&(c={action:e,location:i,retry:function(){C(-1*o)}},C(o))}}else T(e)}}n.addEventListener(s,d),n.addEventListener("hashchange",function(){g(u()[1])!==g(w)&&d()});var y=r.Pop,v=u(),b=v[0],w=v[1],x=h(),k=h();function E(e){return function(){var e=document.querySelector("base"),t="";if(e&&e.getAttribute("href")){var r=n.location.href,i=r.indexOf("#");t=-1===i?r:r.slice(0,i)}return t}()+"#"+("string"==typeof e?e:g(e))}function _(e,t){return void 0===t&&(t=null),o((0,i.A)({pathname:w.pathname,hash:"",search:""},"string"==typeof e?m(e):e,{state:t,key:p()}))}function S(e,t){return[{usr:e.state,key:e.key,idx:t},E(e)]}function A(e,t,n){return!k.length||(k.call({action:e,location:t,retry:n}),!1)}function T(e){y=e;var t=u();b=t[0],w=t[1],x.call({action:y,location:w})}function C(e){l.go(e)}return null==b&&(b=0,l.replaceState((0,i.A)({},l.state,{idx:b}),"")),{get action(){return y},get location(){return w},createHref:E,push:function e(t,i){var o=r.Push,a=_(t,i);if(A(o,a,function(){e(t,i)})){var s=S(a,b+1),u=s[0],c=s[1];try{l.pushState(u,"",c)}catch(e){n.location.assign(c)}T(o)}},replace:function e(t,n){var i=r.Replace,o=_(t,n);if(A(i,o,function(){e(t,n)})){var a=S(o,b),s=a[0],u=a[1];l.replaceState(s,"",u),T(i)}},go:C,back:function(){C(-1)},forward:function(){C(1)},listen:function(e){return x.push(e)},block:function(e){var t=k.push(e);return 1===k.length&&n.addEventListener(a,f),function(){t(),k.length||n.removeEventListener(a,f)}}}}function c(e){void 0===e&&(e={});var t=e,n=t.initialEntries,a=t.initialIndex,s=(void 0===n?["/"]:n).map(function(e){return o((0,i.A)({pathname:"/",search:"",hash:"",state:null,key:p()},"string"==typeof e?m(e):e))}),l=d(null==a?s.length-1:a,0,s.length-1),u=r.Pop,c=s[l],f=h(),y=h();function v(e,t){return void 0===t&&(t=null),o((0,i.A)({pathname:c.pathname,search:"",hash:""},"string"==typeof e?m(e):e,{state:t,key:p()}))}function b(e,t,n){return!y.length||(y.call({action:e,location:t,retry:n}),!1)}function w(e,t){u=e,c=t,f.call({action:u,location:c})}function x(e){var t=d(l+e,0,s.length-1),n=r.Pop,i=s[t];b(n,i,function(){x(e)})&&(l=t,w(n,i))}return{get index(){return l},get action(){return u},get location(){return c},createHref:function(e){return"string"==typeof e?e:g(e)},push:function e(t,n){var i=r.Push,o=v(t,n);b(i,o,function(){e(t,n)})&&(l+=1,s.splice(l,s.length,o),w(i,o))},replace:function e(t,n){var i=r.Replace,o=v(t,n);b(i,o,function(){e(t,n)})&&(s[l]=o,w(i,o))},go:x,back:function(){x(-1)},forward:function(){x(1)},listen:function(e){return f.push(e)},block:function(e){return y.push(e)}}}function d(e,t,n){return Math.min(Math.max(e,t),n)}function f(e){e.preventDefault(),e.returnValue=""}function h(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter(function(e){return e!==t})}}
5,call:function(t){e.forEach(function(e){return e&&e(t)})}}}function p(){return Math.random().toString(36).substr(2,8)}function g(e){var t=e.pathname,n=void 0===t?"/":t,r=e.search,i=void 0===r?"":r,o=e.hash,a=void 0===o?"":o;return i&&"?"!==i&&(n+="?"===i.charAt(0)?i:"?"+i),a&&"#"!==a&&(n+="#"===a.charAt(0)?a:"#"+a),n}function m(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}},3728:e=>{"use strict";e.exports=n;var t=n.prototype;function n(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}t.space=null,t.normal={},t.property={}},3786:(e,t,n)=>{"use strict";let r=n(80726);e.exports=(e,t)=>new r(e,t).major},3836:(e,t,n)=>{var r=n(88567),i=n(61386),o=n(65732),a=n(63114);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}},3907:e=>{"use strict";e.exports=function(e,t){if(!Array.isArray(e))throw TypeError("humanize-list expected an array");(t=t||{}).conjunction=t.conjunction||"and";var n=e.length;if(1===n)return e[0];if(t.skipConjunction)return e.join(", ");for(var r="",i=0;i<n;i++)i===n-1?(t.oxfordComma&&(r+=","),r+=" "+t.conjunction+" "):0!==i&&(r+=", "),r+=e[i];return r}},4368:(e,t,n)=>{"use strict";n.d(t,{J:()=>i});var r=n(82203);function i(e){let t=(0,r.useRef)(null);return(0,r.useInsertionEffect)(()=>{t.current=e},[e]),(0,r.useCallback)((...e)=>(0,t.current)(...e),[])}},4701:(e,t,n)=>{"use strict";let r=n(56685);e.exports=(e,t)=>e.sort((e,n)=>r(e,n,t))},4708:(e,t,n)=>{"use strict";n.d(t,{y:()=>i});var r=n(73315);function i(e){return(0,r.T)(null==e?void 0:e.then)}},4915:(e,t,n)=>{var r=n(75155),i=n(9537),o=n(61386),a=n(81489);e.exports=function(e){return o(e)?r(a(e)):i(e)}},4935:(e,t,n)=>{e.exports=n(52196)()},5460:(e,t,n)=>{"use strict";n.d(t,{U:()=>r});class r extends Error{constructor(e,t="warn"){super(e),this.message=e,this.logLevel=t}}},5525:(e,t,n)=>{"use strict";let r=n(80726),i=n(93342),{ANY:o}=i,a=n(74907),s=n(50134),l=n(27842),u=n(16557),c=n(63208),d=n(99681);e.exports=(e,t,n,f)=>{let h,p,g,m,y;switch(e=new r(e,f),t=new a(t,f),n){case">":h=l,p=c,g=u,m=">",y=">=";break;case"<":h=u,p=d,g=l,m="<",y="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(s(e,t,f))return!1;for(let n=0;n<t.set.length;++n){let r=t.set[n],a=null,s=null;if(r.forEach(e=>{e.semver===o&&(e=new i(">=0.0.0")),a=a||e,s=s||e,h(e.semver,a.semver,f)?a=e:g(e.semver,s.semver,f)&&(s=e)}),a.operator===m||a.operator===y||(!s.operator||s.operator===m)&&p(e,s.semver)||s.operator===y&&g(e,s.semver))return!1}return!0}},5605:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(47528),i=n(71260);function o(e,t){return(0,i.A)(2,arguments),(0,r.A)(e).getTime()-(0,r.A)(t).getTime()}},5847:e=>{"use strict";e.exports=n;var t=n.prototype;function n(e,t){this.property=e,this.attribute=t}t.space=null,t.attribute=null,t.property=null,t.boolean=!1,t.booleanish=!1,t.overloadedBoolean=!1,t.number=!1,t.commaSeparated=!1,t.spaceSeparated=!1,t.commaOrSpaceSeparated=!1,t.mustUseProperty=!1,t.defined=!1},5859:e=>{e.exports=function(){for(var e={},n=0;n<arguments.length;n++){var r=arguments[n];for(var i in r)t.call(r,i)&&(e[i]=r[i])}return e};var t=Object.prototype.hasOwnProperty},6081:(e,t,n)=>{var r=n(8832),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},6108:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(49489),i=n(71260);function o(e){return(0,i.A)(1,arguments),(0,r.A)(e,Date.now())}},6117:e=>{e.exports=/<%=([\s\S]+?)%>/g},6188:(e,t,n)=>{"use strict";n.d(t,{f:()=>o});var r=n(27778),i=n(36462);function o(e,t,n){return void 0===t&&(t=1/0),t=1>(t||0)?1/0:t,(0,r.N)(function(r,o){return(0,i.h)(r,o,e,t,void 0,!0,n)})}},6541:(e,t,n)=>{"use strict";n.d(t,{B:()=>o,O:()=>i});var r=n(87014);let i=globalThis;function o(e,t,n){let o=n||i,a=o.__SENTRY__=o.__SENTRY__||{},s=a[r.M]=a[r.M]||{};return s[e]||(s[e]=t())}},6586:(e,t,n)=>{var r=n(16371);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i}
5,6783:(e,t,n)=>{"use strict";n.d(t,{Cg:()=>o,_P:()=>l,_m:()=>s,my:()=>r,s0:()=>a,w4:()=>i});let r=6048e5,i=864e5,o=6e4,a=36e5,s=1e3,l=Symbol.for("constructDateFrom")},6820:(e,t,n)=>{e.exports=n(44887)("toUpperCase")},7037:e=>{"use strict";let t=[],n=[],r=(e,r)=>{let i,o,a,s;if(e===r)return 0;let l=e;e.length>r.length&&(e=r,r=l);let u=e.length,c=r.length;for(;u>0&&e.charCodeAt(~-u)===r.charCodeAt(~-c);)u--,c--;let d=0;for(;d<u&&e.charCodeAt(d)===r.charCodeAt(d);)d++;if(u-=d,c-=d,0===u)return c;let f=0,h=0;for(;f<u;)n[f]=e.charCodeAt(d+f),t[f]=++f;for(;h<c;)for(f=0,i=r.charCodeAt(d+h),a=h++,o=h;f<u;f++)s=i===n[f]?a:a+1,a=t[f],o=t[f]=a>o?s>o?o+1:s:s>a?a+1:s;return o};e.exports=r,e.exports.default=r},7207:(e,t,n)=>{"use strict";n.d(t,{Xr:()=>a,gt:()=>o,xv:()=>i});var r=n(29378);function i(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function o(e,t){if(!Array.isArray(e))return"";let n=[];for(let t=0;t<e.length;t++){let i=e[t];try{(0,r.L2)(i)?n.push("[VueViewModel]"):n.push(String(i))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function a(e,t=[],n=!1){return t.some(t=>(function(e,t,n=!1){return!!(0,r.Kg)(e)&&((0,r.gd)(t)?t.test(e):!!(0,r.Kg)(t)&&(n?e===t:e.includes(t)))})(e,t,n))}},7250:(e,t,n)=>{var r=n(1247),i=n(25471);e.exports=function(e,t){return e&&e.length?i(e,r(t,2)):[]}},7279:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(82904);function i(){return(0,r.A)(Date.now())}},7328:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},7350:(e,t,n)=>{"use strict";n.d(t,{G:()=>r});var r=(0,n(62553).L)(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}})},7447:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},7526:(e,t,n)=>{"use strict";var r=n(44316).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){(0,f.default)(2,arguments);var r,w,x,k,E,_,S,A,T,C,O,j,D,R,I,P,M,N,$=String(t),L=(0,h.getDefaultOptions)(),F=null!=(r=null!=(w=null==n?void 0:n.locale)?w:L.locale)?r:p.default,U=(0,d.default)(null!=(x=null!=(k=null!=(E=null!=(_=null==n?void 0:n.firstWeekContainsDate)?_:null==n||null==(S=n.locale)||null==(A=S.options)?void 0:A.firstWeekContainsDate)?E:L.firstWeekContainsDate)?k:null==(T=L.locale)||null==(C=T.options)?void 0:C.firstWeekContainsDate)?x:1);if(!(U>=1&&U<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var z=(0,d.default)(null!=(O=null!=(j=null!=(D=null!=(R=null==n?void 0:n.weekStartsOn)?R:null==n||null==(I=n.locale)||null==(P=I.options)?void 0:P.weekStartsOn)?D:L.weekStartsOn)?j:null==(M=L.locale)||null==(N=M.options)?void 0:N.weekStartsOn)?O:0);if(!(z>=0&&z<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!F.localize)throw RangeError("locale must contain localize property");if(!F.formatLong)throw RangeError("locale must contain formatLong property");var B=(0,a.default)(e);if(!(0,i.default)(B))throw RangeError("Invalid time value");var q=(0,u.default)(B),V=(0,o.default)(B,q),H={firstWeekContainsDate:U,weekStartsOn:z,locale:F,_originalDate:B};return $.match(m).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,l.default[t])(e,F.formatLong):e}).join("").match(g).map(function(r){if("''"===r)return"'";var i,o,a=r[0];if("'"===a){return(o=(i=r).match(y))?o[1].replace(v,"'"):i}var l=s.default[a];if(l)return!(null!=n&&n.useAdditionalWeekYearTokens)&&(0,c.isProtectedWeekYearToken)(r)&&(0,c.throwProtectedError)(r,t,String(e)),!(null!=n&&n.useAdditionalDayOfYearTokens)&&(0,c.isProtectedDayOfYearToken)(r)&&(0,c.throwProtectedError)(r,t,String(e)),l(V,r,F.localize,H);if(a.match(b))throw RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");return r}).join("")};var i=r(n(45775)),o=r(n(82253)),a=r(n(75628)),s=r(n(34589)),l=r(n(57151)),u=r(n(13991)),c=n(43866),d=r(n(12431)),f=r(n(29024)),h=n(57285),p=r(n(26733)),g=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,m=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,y=/^'([^]*?)'?$/,v=/''/g,b=/[a-zA-Z]/;e.exports=t.default},7565:e=>{var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},7573:(e,t,n)=>{"use strict";var r=n(5859),i=n(3728);e.exports=function(e){for(var t,n,o=e.length,a=[],s=[],l=-1;++l<o;)t=e[l],a.push(t.property),s.push(t.normal),n=t.space;return new i(r.apply(null,a),r.apply(null,s),n)}}
5,7688:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(16547),i=n(82904),o=n(71260);function a(e,t){(0,o.A)(2,arguments);var n=(0,i.A)(e),a=(0,i.A)(t);return Math.round((n.getTime()-(0,r.A)(n)-(a.getTime()-(0,r.A)(a)))/864e5)}},7706:(e,t,n)=>{"use strict";n.d(t,{T2:()=>s,XW:()=>o,xg:()=>a});var r,i=n(29378);function o(e){return new s(t=>{t(e)})}function a(e){return new s((t,n)=>{n(e)})}!function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"}(r||(r={}));class s{constructor(e){s.prototype.__init.call(this),s.prototype.__init2.call(this),s.prototype.__init3.call(this),s.prototype.__init4.call(this),this._state=r.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new s((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new s((t,n)=>{let r,i;return this.then(t=>{i=!1,r=t,e&&e()},t=>{i=!0,r=t,e&&e()}).then(()=>{if(i)return void n(r);t(r)})})}__init(){this._resolve=e=>{this._setResult(r.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(r.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{if(this._state===r.PENDING){if((0,i.Qg)(t))return void t.then(this._resolve,this._reject);this._state=e,this._value=t,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===r.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===r.RESOLVED&&e[1](this._value),this._state===r.REJECTED&&e[2](this._value),e[0]=!0)})}}}},7772:(e,t,n)=>{"use strict";var r=n(82203),i=n(12580),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=i.useSyncExternalStore,s=r.useRef,l=r.useEffect,u=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=s(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var h=a(e,(d=u(function(){function e(e){if(!l){if(l=!0,a=e,e=r(e),void 0!==i&&f.hasValue){var t=f.value;if(i(t,e))return s=t}return s=e}if(t=s,o(a,e))return t;var n=r(e);return void 0!==i&&i(t,n)?(a=e,t):(a=e,s=n)}var a,s,l=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,n,r,i]))[0],d[1]);return l(function(){f.hasValue=!0,f.value=h},[h]),c(h),h}},7774:(e,t,n)=>{var r=n(11102);e.exports=function(e,t){return r(e,t)}},7813:(e,t,n)=>{"use strict";n.d(t,{ZC:()=>c,iD:()=>d,qm:()=>f,Yi:()=>h,VN:()=>g,_x:()=>p,RU:()=>m,fG:()=>y,ZU:()=>v,ki:()=>b,eP:()=>w,pn:()=>x,io:()=>k,lG:()=>E,AR:()=>_,F8:()=>S,Uc:()=>A,DR:()=>T,Nj:()=>C,HU:()=>O,YI:()=>j,k5:()=>D,Fi:()=>R,YW:()=>I,Pc:()=>P,vV:()=>M,NU:()=>N,q4:()=>$,xh:()=>L,xP:()=>F,sj:()=>U,RA:()=>z,pd:()=>B,EM:()=>q,U6:()=>V,gG:()=>H,BY:()=>W,qT:()=>Y,OD:()=>G,_U:()=>K,l4:()=>Z,A3:()=>Q,ht:()=>J,rf:()=>ee,u2:()=>et,tt:()=>en,rr:()=>ei,ov:()=>er,cr:()=>eo,DA:()=>ea,Re:()=>es,JQ:()=>el,Pn:()=>ec,Q$:()=>ed,HJ:()=>ef,zA:()=>eh,Nv:()=>ep,iS:()=>eg,Zk:()=>ey,Ng:()=>em,qI:()=>ev,z_:()=>eb,o7:()=>ew,KH:()=>ex,lH:()=>ek,DI:()=>eE,Zb:()=>e_,Gt:()=>eu,sF:()=>eS,JW:()=>eA,S$:()=>eT,b_:()=>eC,lV:()=>eO,vu:()=>ej,dY:()=>eD,hK:()=>eR,zp:()=>eI,WB:()=>eP,SR:()=>eM});var r=n(82203),i=n(18902);let o="https://www.sanity.io/help/missing-context-error";function a(e,t){let n=Symbol.for(e);if(typeof document>"u"||"u">typeof window&&"u">typeof window.navigator&&window.navigator.userAgent.includes("jsdom"))return(0,r.createContext)(t);if(l[n]){if(l[n].version!==i.s)throw TypeError(`Duplicate instances of context "${e}" with incompatible versions detected: Expected ${i.s} but got ${l[n].version}.
6
7For more information, please visit ${o}`);s.has(i.s)||(console.warn(`Duplicate instances of context "${e}" detected. This is likely a mistake and may cause unexpected behavior.
8
9For more information, please visit ${o}`),s.add(i.s))}else l[n]={context:(0,r.createContext)(t),version:i.s};return l[n].context}let s=new Set,l=function(){if("u">typeof globalThis)return globalThis;if("u">typeof window)return window;if("u">typeof self)return self;if("u">typeof global)return global;throw Error("sanity: could not locate global scope")}();var u=n(84796);let c=a("sanity/_singletons/context/active-workspace-matcher",null),d=a("sanity/_singletons/context/addon-dataset",null),f=a("sanity/_singletons/context/app-id-cache",null),h=a("sanity/_singletons/context/calendar",void 0),p=a("sanity/_singletons/context/change-indicator-tracker-store",null),g=
9a("sanity/_singletons/context/change-indicator-tracker-get-snapshot",null),m=a("sanity/_singletons/context/color-scheme-set-value",null),y=a("sanity/_singletons/context/color-scheme-value",null),v=a("sanity/_singletons/context/comment-input",null),b=a("sanity/_singletons/context/comments-authoring-path",null),w=a("sanity/_singletons/context/comments",null),x=a("sanity/_singletons/context/comments-enabled",{enabled:!1,mode:null}),k=a("sanity/_singletons/context/comments-intent",void 0),E=a("sanity/_singletons/context/comments-onboarding",null),_=a("sanity/_singletons/context/comments-selected-path",null),S=a("sanity/_singletons/context/comments-upsell",null),A=a("sanity/_singletons/context/copy-paste",null),T=a("sanity/_singletons/context/diff",{path:[]}),C=a("sanity/_singletons/context/document-action-props",void 0),O=a("sanity/_singletons/context/document-change",null),j=a("sanity/_singletons/context/document-field-actions",null),D=a("sanity/_singletons/context/document-id",null),R=a("sanity/_singletons/context/document-pane",null),I=a("sanity/_singletons/context/document-sheet-list",void 0),P=a("sanity/_singletons/context/events",null),M=a("sanity/_singletons/context/field-actions",{actions:[],focused:!1,hovered:!1,__internal_slot:void 0,__internal_comments:void 0,onMouseEnter:()=>{},onMouseLeave:()=>{}}),N=a("sanity/_singletons/context/form-builder",null),$=a("sanity/_singletons/context/form-callbacks",null),L=a("sanity/_singletons/context/form-field-presence",[]),F=a("sanity/_singletons/context/form-value",null),U=a("sanity/_singletons/context/free-trial",void 0),z=a("sanity/_singletons/context/get-form-value",null),B=a("sanity/_singletons/context/hovered-field",{store:{subscribe:()=>()=>{},getSnapshot:()=>[]},onMouseEnter:()=>{},onMouseLeave:()=>{}}),q=a("sanity/_singletons/context/is-last-pane",!1),V=a("sanity/_singletons/context/locale",void 0),H=a("sanity/_singletons/context/media-library",null),W=a("sanity/_singletons/context/mention-user",null),Y=a("sanity/_singletons/context/navbar",{onSearchFullscreenOpenChange:()=>"",onSearchOpenChange:()=>"",searchFullscreenOpen:!1,searchFullscreenPortalEl:null,searchOpen:!1}),G=a("sanity/_singletons/context/pane",null),K=a("sanity/_singletons/context/pane-layout",null);function X(){throw Error("Pane is missing router context")}let Z=a("sanity/_singletons/context/pane-router",{index:0,groupIndex:0,siblingIndex:0,payload:void 0,params:{},hasGroupSiblings:!1,groupLength:0,routerPanesState:[],BackLink:()=>X(),ChildLink:()=>X(),ReferenceChildLink:()=>X(),handleEditReference:()=>X(),ParameterizedLink:()=>X(),replaceCurrent:()=>X(),closeCurrentAndAfter:()=>X(),closeCurrent:()=>X(),duplicateCurrent:()=>X(),setView:()=>X(),setParams:()=>X(),setPayload:()=>X(),navigateIntent:()=>X(),createPathWithParams:()=>X()}),Q=a("sanity/_singletons/context/perspective-context",null),J=a("sanity/_singletons/context/portable-text-markers",[]),ee=a("sanity/_singletons/context/portable-text-member-item-element-refs",new u.t({})),et=a("sanity/_singletons/context/portable-text-member-items",[]),en=a("sanity/_singletons/context/presence",[]),er=a("sanity/_singletons/context/presence-tracker-store",null),ei=a("sanity/_singletons/context/presence-tracker-get-snapshot",null),eo=(a("sanity/_singletons/context/presentation",null),a("sanity/_singletons/context/presentation/displayed-document",null),a("sanity/_singletons/context/presentation/document",null),a("sanity/_singletons/context/presentation/navigate",null),a("sanity/_singletons/context/presentation/panels",null),a("sanity/_singletons/context/presentation/params",null),a("sanity/_singletons/context/presentation/shared-state",null),a("sanity/_singletons/context/preview-card",{selected:!1})),ea=a("sanity/_singletons/context/reference-input-options",{}),es=a("sanity/_singletons/context/reference-item-ref",null),el=a("sanity/_singletons/context/releases-metadata",null),eu=a("sanity/_singletons/context/releases-table",null),ec=a("sanity/_singletons/context/releases-upsell",null),ed=a("sanity/_singletons/context/resource-cache",null),ef=a("sanity/_singletons/context/review-changes",{onOpenReviewChanges:()=>{},onSetFocus:()=>{},isReviewChangesOpen:!1,isInteractive:!0}),eh=a("sanity/_singletons/context/router",null),ep=a("sanity/_singletons/context/router-history",null),eg=a("sanity/_singletons/context/start-in-create-enabled",{startInCreateEnabled:!1}),em=a("sanity/_singletons/context/scheduled-publishing-enabled",{enabled:!1,mode:null,hasUsedScheduledPublishing:{used:!1,loading:!1}}),ey=a("sanity/_singletons/context/schedule-publish-upsell",{upsellData:null,handleOpenDialog:()=>null,upsellDialogOpen:!1,telemetryLogs:{dialogSecondaryClicked:()=>null,dialogPrimaryClicked:()=>null,panelViewed:()=>null,panelDismissed:()=>null,panelPrimaryClicked:()=>null,panelSecondaryClicked:()=>null}}),ev=a("sanity/_singletons/context/schedules",void 0),eb=a("sanity/_singletons/context/scroll",null),ew=a("sanity/_singletons/context/search",void 0),ex=a("sanity/_singletons/context/sortable-item-id",null),ek=a("sanity/_singletons/context/source",null),eE=a("sanity/_singletons/context/structure-tool",null),e_=a("sanity/_singletons/context/studioAnnouncements",void 0),eS=a("sanity/_singletons/context/tasks",null),eA=a("sanity/_singletons/context/tasks-enabled",{enabled:!1,mode:null}),eT=a("sanity/_singletons/context/tasks-navigation",null),eC=a("sanity/_singletons/context/tasks-upsell",null),eO=a("sanity/_singletons/context/tree-editing-enabled",{enabled:!1,legacyEditing:!1}),ej=a("sanity/_singletons/context/user-color-manager",null),eD=a("sanity/_singletons/context/validation",[]),eR=a("sanity/_singletons/context/virtualizer-scroll-instance",null),eI=a("sanity/_singletons/context/workspace",null),eP=a("sanity/_singletons/context/workspaces",null),eM=a("sanity/_singletons/context/z-index",{navbar:200,navbarPopover:5e5,navbarDialog:500001,pane:100,paneHeader:[110,15e3],paneFooter:[120,2e4],paneResizer:[130,25e3],paneDialog:[140,5e3],popover:200,modal:200,movingItem:1e4,drawershade:1e6,drawer:1000001,fullscreen:12e5,toast:[100,11e3],portal:200,dropdown:200,navbarFixed:1010,fullscreenEdit:1050,popoverBackgroun
9d:1060,tooltip:200,modalBackground:2e3,spinner:3e3})},8025:(e,t,n)=>{var r=n(13992),i=n(9044),o=n(88002);e.exports=function(e,t,n){var a=0,s=null==e?a:e.length;if("number"==typeof t&&t==t&&s<=0x7fffffff){for(;a<s;){var l=a+s>>>1,u=e[l];null!==u&&!o(u)&&(n?u<=t:u<t)?a=l+1:s=l}return s}return r(e,t,i,n)}},8142:(e,t,n)=>{"use strict";n.d(t,{$U:()=>h,Jt:()=>u,Mr:()=>m,Y7:()=>b,dI:()=>v,n4:()=>f,nX:()=>s,om:()=>y,p0:()=>d,sH:()=>w,w1:()=>g});var r=n(24622);let i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/_key\s*==\s*['"](.*)['"]/,a=[],s="$",l=["true","false","null"];function u(e,t,n){let i="string"==typeof t?w(t):t;if(!Array.isArray(i))throw Error("Path must be an array or a string");let o=e;for(let e=0;e<i.length;e++){let t=i[e];if((0,r.wr)(t)){if(!Array.isArray(o))return n;o=o[t]}if((0,r.tA)(t)){if(!Array.isArray(o))return n;o=o.find(e=>e._key===t._key)}if("string"==typeof t&&(o="object"==typeof o&&null!==o?o[t]:void 0),typeof o>"u")return n}return o}let c=new Map;function d(e){if(0===e.length)return a;let t=v(e);return c.has(t)?c.get(t):(c.set(t,e),Object.freeze(e),e)}function f(e,t){return e.length===t.length&&e.every((e,n)=>p(e,t[n]))}function h(e,t){let n=Math.min(e.length,t.length);for(let r=0;r<n;r++)if(!p(e[r],t[r]))return r;return n}function p(e,t){return(0,r.tA)(e)&&(0,r.tA)(t)?e._key===t._key:(0,r.wr)(e)?Number(e)===Number(t):(0,r.Z9)(e)&&(0,r.Z9)(t)?e[0]===t[0]&&e[1]===t[1]:e===t}function g(e,t){return e.every((e,n)=>p(e,t[n]))}function m(e,t){if(0===e.length||0===t.length)return t;let[n,...r]=e,[i,...o]=t;return p(n,i)?d(m(r,o)):t}function y(e,t){return g(e,t)?m(e,t):a}function v(e){if(!Array.isArray(e))throw Error("Path is not an array");return e.reduce((e,t,n)=>{if("number"==typeof t)return`${e}[${t}]`;if("string"==typeof t)return 0===n?t:l.includes(t)?`${e}["${t}"]`:`${e}.${t}`;if((0,r.tA)(t)&&t._key)return`${e}[_key=="${t._key}"]`;if(Array.isArray(t)){let[n,r]=t;return`${e}[${n}:${r}]`}throw Error(`Unsupported path segment \`${JSON.stringify(t)}\``)},"")}function b(e,t){if(!Array.isArray(t))throw Error("Path is not an array");return d(function e(t,n){if(0===n.length)return n;let[r,...i]=n;if("number"==typeof r){if(!Array.isArray(t)||!(r in t))return[];let n=t[r];return["string"==typeof n?._key?{_key:n._key}:r,...e(n,i)]}let o=u(t,[r]);return[r,...e(o,i)]}(e,t))}function w(e){if("string"!=typeof e)throw Error("Path is not a string");let t=e.match(i);if(!t)throw Error("Invalid path string");return t.map(x)}function x(e){return(0,r.wr)(e)?Number(e.replace(/[^\d]/g,"")):(0,r.tA)(e)?{_key:e.match(o)[1]}:(0,r.Z9)(e)?function(e){let[t,n]=e.split(":").map(e=>""===e?e:Number(e));return[t,n]}(e):e}},8290:(e,t,n)=>{var r=n(72565);e.exports=function(e){var t=e.length;return t?e[r(0,t-1)]:void 0}},8729:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(64760),i=n(71260),o=n(18659);function a(e,t){(0,i.A)(2,arguments);var n=(0,o.A)(t);return(0,r.A)(e,-n)}},8832:(e,t,n)=>{e.exports=n(18274)(Object,"create")},8883:(e,t,n)=>{"use strict";n.d(t,{U:()=>o});var r=n(27778),i=n(94126);function o(e){return(0,r.N)(function(t,n){var r=!1;t.subscribe((0,i._)(n,function(e){r=!0,n.next(e)},function(){r||n.next(e),n.complete()}))})}},9044:e=>{e.exports=function(e){return e}},9060:(e,t,n)=>{var r=n(94598),i=n(82475),o=n(88567),a=n(88002),s=n(65732),l=n(81489),u=n(63114);e.exports=function(e){return o(e)?r(e,l):a(e)?[e]:i(s(u(e)))}},9537:(e,t,n)=>{var r=n(50466);e.exports=function(e){return function(t){return r(t,e)}}},9638:(e,t,n)=>{var r=n(14492),i=n(11088),o=n(86809),a=n(68685);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return("number"==s?!!(i(n)&&o(t,n.length)):"string"==s&&t in n)&&r(n[t],e)}},9692:(e,t,n)=>{"use strict";var r=n(82203),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useSyncExternalStore,a=r.useRef,s=r.useEffect,l=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,c){var d=a(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var h=o(e,(d=l(function(){function e(e){if(!s){if(s=!0,o=e,e=r(e),void 0!==c&&f.hasValue){var t=f.value;if(c(t,e))return a=t}return a=e}if(t=a,i(o,e))return t;var n=r(e);return void 0!==c&&c(t,n)?(o=e,t):(o=e,a=n)}var o,a,s=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,n,r,c]))[0],d[1]);return s(function(){f.hasValue=!0,f.value=h},[h]),u(h),h}},9745:(e,t,n)=>{"use strict";function r(e){let t="undefined"!=typeof window&&"crypto"in window?window.crypto:globalThis.crypto;if(!t||!t.getRandomValues)throw Error("WebCrypto not available in this environment");return t.getRandomValues(e)}n.d(t,{A:()=>r})},9751:(e,t,n)=>{"use strict";n.d(t,{K:()=>i});var r=n(46031);function i(){return(0,r.U)(1)}}
9,9812:(e,t,n)=>{"use strict";n.d(t,{N:()=>l});var r=n(37245),i=n(12884),o=n(27778),a=n(29039),s={connector:function(){return new r.B}};function l(e,t){void 0===t&&(t=s);var n=t.connector;return(0,o.N)(function(t,r){var o=n();(0,i.Tg)(e(new a.c(function(e){return o.subscribe(e)}))).subscribe(r),r.add(t.subscribe(o))})}},9816:(e,t,n)=>{e.exports=n(39095)(Object.keys,Object)},10360:(e,t,n)=>{var r=n(85411),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},10557:(e,t,n)=>{var r=n(8832);e.exports=function(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},10640:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(92557),i=n(28576),o=n(47528),a=n(71260);function s(e,t){(0,a.A)(1,arguments);var n=e||{},s=(0,o.A)(n.start),l=(0,o.A)(n.end),u=l.getTime();if(!(s.getTime()<=u))throw RangeError("Invalid interval");var c=(0,i.A)(s,t),d=(0,i.A)(l,t);c.setHours(15),d.setHours(15),u=d.getTime();for(var f=[],h=c;h.getTime()<=u;)h.setHours(0),f.push((0,o.A)(h)),(h=(0,r.A)(h,1)).setHours(15);return f}}
9,10664:(e,t,n)=>{var r=n(48341),i=n(66647),o=n(1740),a=n(41207),s=n(15831),l=n(88567),u=n(30644),c=n(43659),d="[object Arguments]",f="[object Array]",h="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,g,m,y){var v=l(e),b=l(t),w=v?f:s(e),x=b?f:s(t);w=w==d?h:w,x=x==d?h:x;var k=w==h,E=x==h,_=w==x;if(_&&u(e)){if(!u(t))return!1;v=!0,k=!1}if(_&&!k)return y||(y=new r),v||c(e)?i(e,t,n,g,m,y):o(e,t,w,n,g,m,y);if(!(1&n)){var S=k&&p.call(e,"__wrapped__"),A=E&&p.call(t,"__wrapped__");if(S||A){var T=S?e.value():e,C=A?t.value():t;return y||(y=new r),m(T,C,n,g,y)}}return!!_&&(y||(y=new r),a(e,t,n,g,m,y))}},10947:(e,t,n)=>{var r=n(53064),i=n(10360),o=n(79073),a=n(82333),s=n(62077);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},11087:(e,t,n)=>{var r=n(48341),i=n(81145),o=n(51199),a=n(46459),s=n(95492),l=n(90970),u=n(82475),c=n(32235),d=n(79092),f=n(83968),h=n(45587),p=n(15831),g=n(65295),m=n(65745),y=n(98629),v=n(88567),b=n(30644),w=n(94232),x=n(68685),k=n(98566),E=n(29386),_=n(15809),S="[object Arguments]",A="[object Function]",T="[object Object]",C={};C[S]=C["[object Array]"]=C["[object ArrayBuffer]"]=C["[object DataView]"]=C["[object Boolean]"]=C["[object Date]"]=C["[object Float32Array]"]=C["[object Float64Array]"]=C["[object Int8Array]"]=C["[object Int16Array]"]=C["[object Int32Array]"]=C["[object Map]"]=C["[object Number]"]=C[T]=C["[object RegExp]"]=C["[object Set]"]=C["[object String]"]=C["[object Symbol]"]=C["[object Uint8Array]"]=C["[object Uint8ClampedArray]"]=C["[object Uint16Array]"]=C["[object Uint32Array]"]=!0,C["[object Error]"]=C[A]=C["[object WeakMap]"]=!1,e.exports=function e(t,n,O,j,D,R){var I,P=1&n,M=2&n,N=4&n;if(O&&(I=D?O(t,j,D,R):O(t)),void 0!==I)return I;if(!x(t))return t;var $=v(t);if($){if(I=g(t),!P)return u(t,I)}else{var L=p(t),F=L==A||"[object GeneratorFunction]"==L;if(b(t))return l(t,P);if(L==T||L==S||F&&!D){if(I=M||F?{}:y(t),!P)return M?d(t,s(I,t)):c(t,a(I,t))}else{if(!C[L])return D?t:{};I=m(t,L,P)}}R||(R=new r);var U=R.get(t);if(U)return U;R.set(t,I),k(t)?t.forEach(function(r){I.add(e(r,n,O,r,t,R))}):w(t)&&t.forEach(function(r,i){I.set(i,e(r,n,O,i,t,R))});var z=N?M?h:f:M?_:E,B=$?void 0:z(t);return i(B||t,function(r,i){B&&(r=t[i=r]),o(I,i,e(r,n,O,i,t,R))}),I}},11088:(e,t,n)=>{var r=n(65550),i=n(53722);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},11102:(e,t,n)=>{var r=n(10664),i=n(78946);e.exports=function e(t,n,o,a,s){return t===n||(null!=t&&null!=n&&(i(t)||i(n))?r(t,n,o,a,e,s):t!=t&&n!=n)}},11253:(e,t,n)=>{var r=n(57551);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},11657:(e,t,n)=>{e.exports=n(39095)(Object.getPrototypeOf,Object)},11819:(e,t,n)=>{"use strict";var r=n(78325),i=n(63021),o=n(78808),a=n(12680).q,s=n(50480).q;e.exports=function(e,t,n){var i=n?function(e){for(var t,n=e.length,r=-1,i={};++r<n;)i[(t=e[r]).toLowerCase()]=t;return i}(n):null;return function(n,c){var d,f,h,p,g,m,y=o(n,t),v=Array.prototype.slice.call(arguments,2),b=y.tagName.toLowerCase();if(y.tagName=i&&l.call(i,b)?i[b]:b,c&&(d=c,f=y,"string"==typeof d||"length"in d||(h=f.tagName,g=(p=d).type,"input"!==h&&g&&"string"==typeof g&&("object"==typeof p.children&&"length"in p.children||((g=g.toLowerCase(),"button"===h)?"menu"!==g&&"submit"!==g&&"reset"!==g&&"button"!==g:"value"in p))))&&(v.unshift(c),c=null),c)for(m in c)!function(t,n,i){var o,l,c;null!=i&&i==i&&(l=(o=r(e,n)).property,"string"==typeof(c=i)&&(o.spaceSeparated?c=a(c):o.commaSeparated?c=s(c):o.commaOrSpaceSeparated&&(c=a(s(c).join(" ")))),"style"===l&&"string"!=typeof i&&(c=function(e){var t,n=[];for(t in e)n.push([t,e[t]].join(": "));return n.join("; ")}(c)),"className"===l&&t.className&&(c=t.className.concat(c)),t[l]=function(e,t,n){var r,i,o;if("object"!=typeof n||!("length"in n))return u(e,t,n);for(i=n.length,r=-1,o=[];++r<i;)o[r]=u(e,t,n[r]);return o}(o,l,c))}(y.properties,m,c[m]);return function e(t,n){var r,i;if("string"==typeof n||"number"==typeof n)return void t.push({type:"text",value:String(n)});if("object"==typeof n&&"length"in n){for(r=-1,i=n.length;++r<i;)e(t,n[r]);return}if("object"!=typeof n||!("type"in n))throw Error("Expected node, nodes, or string, got `"+n+"`");t.push(n)}(y.children,v),"template"===y.tagName&&(y.content={type:"root",children:y.children},y.children=[]),y}};var l={}.hasOwnProperty;function u(e,t,n){var r=n;return e.number||e.positiveNumber?isNaN(r)||""===r||(r=Number(r)):(e.boolean||e.overloadedBoolean)&&"string"==typeof r&&(""===r||i(n)===i(t))&&(r=!0),r}}
9,12189:(e,t,n)=>{"use strict";n.d(t,{a:()=>o,b:()=>g,c:()=>h,e:()=>l});var r=n(88837);function i(e,t,n,i,{assignment:o}){if(!t.context)throw Error("Cannot assign to undefined `context`. Ensure that `context` is defined in the machine config.");let a={},s={context:t.context,event:n.event,spawn:function(e,{machine:t,context:n},i,o){return(a,s)=>{let l=((a,s)=>{if("string"!=typeof a)return(0,r.A)(a,{id:s?.id,parent:e.self,syncSnapshot:s?.syncSnapshot,input:s?.input,src:a,systemId:s?.systemId});{let l=(0,r.z)(t,a);if(!l)throw Error(`Actor logic '${a}' not implemented in machine '${t.id}'`);let u=(0,r.A)(l,{id:s?.id,parent:e.self,syncSnapshot:s?.syncSnapshot,input:"function"==typeof s?.input?s.input({context:n,event:i,self:e.self}):s?.input,src:a,systemId:s?.systemId});return o[u.id]=u,u}})(a,s);return o[l.id]=l,e.defer(()=>{l._processingStatus!==r.T.Stopped&&l.start()}),l}}(e,t,n.event,a),self:e.self,system:e.system},l={};if("function"==typeof o)l=o(s,i);else for(let e of Object.keys(o)){let t=o[e];l[e]="function"==typeof t?t(s,i):t}let u=Object.assign({},t.context,l);return[(0,r.U)(t,{context:u,children:Object.keys(a).length?{...t.children,...a}:t.children}),void 0,void 0]}function o(e){function t(e,t){}return t.type="xstate.assign",t.assignment=e,t.resolve=i,t}function a(e,t,n,r,{event:i}){return[t,{event:"function"==typeof i?i(n,r):i},void 0]}function s(e,{event:t}){e.defer(()=>e.emit(t))}function l(e){function t(e,t){}return t.type="xstate.emit",t.event=e,t.resolve=a,t.execute=s,t}let u=function(e){return e.Parent="#_parent",e.Internal="#_internal",e}({});function c(e,t,n,r,{to:i,event:o,id:a,delay:s},l){let c,d,f=t.machine.implementations.delays;if("string"==typeof o)throw Error(`Only event objects may be used with sendTo; use sendTo({ type: "${o}" }) instead`);let h="function"==typeof o?o(n,r):o;if("string"==typeof s){let e=f&&f[s];c="function"==typeof e?e(n,r):e}else c="function"==typeof s?s(n,r):s;let p="function"==typeof i?i(n,r):i;if("string"==typeof p){if(!(d=p===u.Parent?e.self._parent:p===u.Internal?e.self:p.startsWith("#_")?t.children[p.slice(2)]:l.deferredActorIds?.includes(p)?p:t.children[p]))throw Error(`Unable to send event to actor '${p}' from machine '${t.machine.id}'.`)}else d=p||e.self;return[t,{to:d,targetId:"string"==typeof p?p:void 0,event:h,id:a,delay:c},void 0]}function d(e,t,n){"string"==typeof n.to&&(n.to=t.children[n.to])}function f(e,t){e.defer(()=>{let{to:n,event:i,delay:o,id:a}=t;if("number"==typeof o)return void e.system.scheduler.schedule(e.self,n,i,o,a);e.system._relay(e.self,n,i.type===r.V?(0,r.W)(e.self.id,i.data):i)})}function h(e,t,n){function r(e,t){}return r.type="xstate.sendTo",r.to=e,r.event=t,r.id=n?.id,r.delay=n?.delay,r.resolve=c,r.retryResolve=d,r.execute=f,r}function p(e,t,n,i,{collect:a}){let s=[],c=function(e){s.push(e)};return c.assign=(...e)=>{s.push(o(...e))},c.cancel=(...e)=>{s.push((0,r.M)(...e))},c.raise=(...e)=>
9{s.push((0,r.O)(...e))},c.sendTo=(...e)=>{s.push(h(...e))},c.sendParent=(...e)=>{s.push(function(e,t){return h(u.Parent,e,t)}(...e))},c.spawnChild=(...e)=>{s.push((0,r.P)(...e))},c.stopChild=(...e)=>{s.push((0,r.R)(...e))},c.emit=(...e)=>{s.push(l(...e))},a({context:n.context,event:n.event,enqueue:c,check:e=>(0,r.e)(e,t.context,n.event,t),self:e.self,system:e.system},i),[t,void 0,s]}function g(e){function t(e,t){}return t.type="xstate.enqueueActions",t.collect=e,t.resolve=p,t}},12227:(e,t,n)=>{e.exports=n(18274)(n(26943),"Map")},12346:(e,t,n)=>{"use strict";n.d(t,{GR:()=>a,lv:()=>o});var r=n(45885);function i({context:e,blockOffset:t,direction:n}){return(0,r.m4)({context:e,blockOffset:t,direction:n})||function({context:e,blockOffset:t}){let n;for(let r of e.value)if(r._key===t.path[0]._key){n={path:[{_key:r._key}],offset:t.offset};break}return n}({context:e,blockOffset:t})}function o({context:e,offsets:t,backward:n}){let r=i({context:e,blockOffset:t.anchor,direction:n?"backward":"forward"}),o=i({context:e,blockOffset:t.focus,direction:n?"forward":"backward"});return r&&o?{anchor:r,focus:o,backward:n}:null}function a({context:e,selectionPoint:t}){let n=0,i=(0,r.XE)(t),o=(0,r.qX)(t);if(!(!i||!o)){for(let a of e.value)if(a._key===i&&(0,r.zS)(e,a))for(let i of a.children){if(i._key===o)return{path:[{_key:a._key}],offset:n+t.offset};(0,r.QU)(e,i)&&(n+=i.text.length)}}}},12378:(e,t,n)=>{"use strict";n.d(t,{$X:()=>s,GR:()=>c,M6:()=>u,eJ:()=>o,gO:()=>l});var r=n(77865),i=n(6541);function o(){let e=i.O,t=e.crypto||e.msCrypto,n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{let e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return"10000000100040008000100000000000".replace(/[018]/g,e=>(e^(15&n())>>e/4).toString(16))}function a(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function s(e){let{message:t,event_id:n}=e;if(t)return t;let r=a(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function l(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function u(e,t){let n=a(e);if(!n)return;let r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){let e={...r&&r.data,...t.data};n.mechanism.data=e}}function c(e){if(function(e){try{return e.__sentry_captured__}catch(e){}}(e))return!0;try{(0,r.my)(e,"__sentry_captured__",!0)}catch(e){}return!1}},12407:(e,t,n)=>{var r=n(94598),i=n(44663),o=n(97288),a=n(3025);e.exports=o(function(e){var t=r(e,a);return t.length&&t[0]===e[0]?i(t):[]})},12431:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)},e.exports=t.default},12580:(e,t,n)=>{"use strict";e.exports=n(19723)},12601:(e,t,n)=>{"use strict";n.d(t,{x:()=>o});var r=n(89973),i=n(73315);function o(e){return(0,i.T)(null==e?void 0:e[r.l])}},12680:(e,t)=>{"use strict";t.q=function(e){var t=String(e||"").trim();return""===t?[]:t.split(n)};var n=/[ \t\n\r\f]+/g},12740:(e,t,n)=>{"use strict";let r=n(74907);e.exports=(e,t,n)=>(e=new r(e,n),t=new r(t,n),e.intersects(t,n))},12871:(e,t,n)=>{"use strict";n.d(t,{i:()=>i});var r=n(82326);function i(e){return(0,r.p)(function(t,n){return e<=n})}},12878:(e,t,n)=>{var r=n(75441),i=n(6820);e.exports=r(function(e,t,n){return e+(n?" ":"")+i(t)})},12884:(e,t,n)=>{"use strict";n.d(t,{Tg:()=>g});var r=n(58555),i=n(73711),o=n(4708),a=n(29039),s=n(68053),l=n(26167),u=n(41655),c=n(12601),d=n(98064),f=n(73315),h=n(65258),p=n(65681);function g(e){if(e instanceof a.c)return e;if(null!=e){var t,n,g,y,v;if((0,s.l)(e)){return t=e,new a.c(function(e){var n=t[p.s]();if((0,f.T)(n.subscribe))return n.subscribe(e);throw TypeError("Provided object does not correctly implement Symbol.observable")})}if((0,i.X)(e)){return n=e,new a.c(function(e){for(var t=0;t<n.length&&!e.closed;t++)e.next(n[t]);e.complete()})}if((0,o.y)(e)){return g=e,new a.c(function(e){g.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,h.m)})}if((0,l.T)(e))return m(e);
9if((0,c.x)(e)){return y=e,new a.c(function(e){var t,n;try{for(var i=(0,r.Ju)(y),o=i.next();!o.done;o=i.next()){var a=o.value;if(e.next(a),e.closed)return}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}e.complete()})}if((0,d.U)(e)){return v=e,m((0,d.C)(v))}}throw(0,u.L)(e)}function m(e){return new a.c(function(t){(function(e,t){var n,i,o,a;return(0,r.sH)(this,void 0,void 0,function(){var s;return(0,r.YH)(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),n=(0,r.xN)(e),l.label=1;case 1:return[4,n.next()];case 2:if((i=l.sent()).done)return[3,4];if(s=i.value,t.next(s),t.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return o={error:l.sent()},[3,11];case 6:if(l.trys.push([6,,9,10]),!(i&&!i.done&&(a=n.return)))return[3,8];return[4,a.call(n)];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})})(e,t).catch(function(e){return t.error(e)})})}},12953:(e,t,n)=>{function r(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}r.prototype=n(1514)(n(29203).prototype),r.prototype.constructor=r,e.exports=r},13012:(e,t,n)=>{"use strict";n.d(t,{W:()=>function e(t){return(0,o.N)(function(n,o){var a,s=null,l=!1;s=n.subscribe((0,i._)(o,void 0,void 0,function(i){a=(0,r.Tg)(t(i,e(t)(n))),s?(s.unsubscribe(),s=null,a.subscribe(o)):l=!0})),l&&(s.unsubscribe(),s=null,a.subscribe(o))})}});var r=n(12884),i=n(94126),o=n(27778)},13048:(e,t,n)=>{"use strict";n.d(t,{T:()=>r});let r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},13209:(e,t,n)=>{"use strict";n.d(t,{c:()=>a});var r=n(43048),i=n(51620),o=n(29013);function a(e,t,n){void 0===t&&(t=r.E);var a=(0,o.O)(e,t);return(0,i.n)(function(){return a},n)}},13816:(e,t,n)=>{"use strict";let r;n.d(t,{RM:()=>I});let i={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},o=new Uint8Array(16),a=[];for(let e=0;e<256;++e)a.push((e+256).toString(16).slice(1));let s=function(e,t,n){if(i.randomUUID&&!t&&!e)return i.randomUUID();let s=(e=e||{}).random??e.rng?.()??function(){if(!r){if("undefined"==typeof crypto||!crypto.getRandomValues)throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");r=crypto.getRandomValues.bind(crypto)}return r(o)}();if(s.length<16)throw Error("Random bytes length must be >= 16");if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t){if((n=n||0)<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=s[e];return t}return function(e,t=0){return(a[e[t+0]]+a[e[t+1]]+a[e[t+2]]+a[e[t+3]]+"-"+a[e[t+4]]+a[e[t+5]]+"-"+a[e[t+6]]+a[e[t+7]]+"-"+a[e[t+8]]+a[e[t+9]]+"-"+a[e[t+10]]+a[e[t+11]]+a[e[t+12]]+a[e[t+13]]+a[e[t+14]]+a[e[t+15]]).toLowerCase()}(s)};var l=n(87489),u=n(21803),c=n(12189),d=n(88837),f=n(71976),h=n(33672),p=n(79446),g=n(59043),m=n(82326),y=n(58555),v=n(27778),b=n(94126),w=n(74814),x=n(19806),k=n(15911),E=n(56769),_=n(95085);let S=e=>({context:t})=>{let{count:n,include:r,exclude:i,responseType:o="message.received"}=e;return{count:n,domain:t.domain,from:t.connectTo,include:r?Array.isArray(r)?r:[r]:[],exclude:i?Array.isArray(i)?i:[i]:[],responseType:o,target:t.target,to:t.name}},A=(0,f.v)(()=>(0,h.R)(window,"message")),T="comlink/response",C="comlink/heartbeat",O="comlink/disconnect",j="comlink/handshake/syn",D="comlink/handshake/ack";(0,l.SP)(({sendBack:e,input:t})=>{let n=()=>{e(t.event)};t.immediate&&n();let r=setInterval(n,t.interval);return()=>{clearInterval(r)}});let R=()=>(0,u.mj)({types:{},actors:{requestMachine:(0,u.mj)({types:{},actors:{listen:(0,l.OX)(({input:e})=>{let t,n=e.signal?(0,h.R)(e.signal,"abort").pipe((t=`Request ${e.requestId} aborted`,e=>e.pipe((0,k.s)(1),(0,p.T)(()=>{throw Error(t)})))):E.w;return(0,h.R)(window,"message").pipe((0,m.p)(t=>t.data?.type===T&&t.data?.responseTo===e.requestId&&!!t.source&&e.sources.has(t.source)),(0,k.s)(e.sources.size),(0,_.Q)(n))})},actions:{"send message":({context:e},t)=>{let{sources:n,targetOrigin:r}=e,{message:i}=t;
9n.forEach(e=>{e.postMessage(i,{targetOrigin:r})})},"on success":(0,c.c)(({context:e})=>e.parentRef,({context:e,self:t})=>(e.response&&e.resolvable?.resolve(e.response),{type:"request.success",requestId:t.id,response:e.response,responseTo:e.responseTo})),"on fail":(0,c.c)(({context:e})=>e.parentRef,({context:e,self:t})=>(e.suppressWarnings||console.warn(`[@sanity/comlink] Received no response to message '${e.type}' on client '${e.from}' (ID: '${e.id}').`),e.resolvable?.reject(Error("No response received")),{type:"request.failed",requestId:t.id})),"on abort":(0,c.c)(({context:e})=>e.parentRef,({context:e,self:t})=>(e.resolvable?.reject(Error("Request aborted")),{type:"request.aborted",requestId:t.id}))},guards:{expectsResponse:({context:e})=>e.expectResponse},delays:{initialTimeout:0,responseTimeout:({context:e})=>e.responseTimeout??3e3}}).createMachine({context:({input:e})=>({channelId:e.channelId,data:e.data,domain:e.domain,expectResponse:e.expectResponse??!1,from:e.from,id:`msg-${s()}`,parentRef:e.parentRef,resolvable:e.resolvable,response:null,responseTimeout:e.responseTimeout,responseTo:e.responseTo,signal:e.signal,sources:e.sources instanceof Set?e.sources:new Set([e.sources]),suppressWarnings:e.suppressWarnings,targetOrigin:e.targetOrigin,to:e.to,type:e.type}),initial:"idle",on:{abort:".aborted"},states:{idle:{after:{initialTimeout:[{target:"sending"}]}},sending:{entry:{type:"send message",params:({context:e})=>{let{channelId:t,data:n,domain:r,from:i,id:o,responseTo:a,to:s,type:l}=e;return{message:{channelId:t,data:n,domain:r,from:i,id:o,to:s,type:l,responseTo:a}}}},always:[{guard:"expectsResponse",target:"awaiting"},"success"]},awaiting:{invoke:{id:"listen for response",src:"listen",input:({context:e})=>({requestId:e.id,sources:e.sources,signal:e.signal}),onError:"aborted"},after:{responseTimeout:"failed"},on:{message:{actions:(0,c.a)({response:({event:e})=>e.data.data,responseTo:({event:e})=>e.data.responseTo}),target:"success"}}},failed:{type:"final",entry:"on fail"},success:{type:"final",entry:"on success"},aborted:{type:"final",entry:"on abort"}},output:({context:e,self:t})=>({requestId:t.id,response:e.response,responseTo:e.responseTo})}),listen:(e=>(0,l.OX)(({input:t})=>{let n;return A.pipe(e?(0,p.T)(e):(0,g.F)(),(0,m.p)((e=>t=>{let{data:n}=t;return(!e.include.length||e.include.includes(n.type))&&(!e.exclude.length||!e.exclude.includes(n.type))&&n.domain===e.domain&&n.from===e.from&&n.to===e.to&&(!e.target||t.source===e.target)})(t)),(0,p.T)((n=t.responseType,e=>({type:n,message:e}))),t.count?(0,g.F)(function(e,t){return void 0===t&&(t=null),t=null!=t?t:e,(0,v.N)(function(n,r){var i=[],o=0;n.subscribe((0,b._)(r,function(n){var a,s,l,u,c=null;o++%t==0&&i.push([]);try{for(var d=(0,y.Ju)(i),f=d.next();!f.done;f=d.next()){var h=f.value;h.push(n),e<=h.length&&(c=null!=c?c:[]).push(h)}}catch(e){a={error:e}}finally{try{f&&!f.done&&(s=d.return)&&s.call(d)}finally{if(a)throw a.error}}if(c)try{for(var p=(0,y.Ju)(c),g=p.next();!g.done;g=p.next()){var h=g.value;(0,w.o)(i,h),r.next(h)}}catch(e){l={error:e}}finally{try{g&&!g.done&&(u=p.return)&&u.call(p)}finally{if(l)throw l.error}}},function(){var e,t;try{for(var n=(0,y.Ju)(i),o=n.next();!o.done;o=n.next()){var a=o.value;r.next(a)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}r.complete()},void 0,function(){i=null}))})}(t.count),(0,x.H)(e=>e),(0,k.s)(t.count)):(0,g.F)())}))()},actions:{"buffer handshake":(0,c.a)({handshakeBuffer:({event:e,context:t})=>((0,u.DT)(e,"message.received"),[...t.handshakeBuffer,e])}),"buffer message":(0,c.b)(({enqueue:e})=>{e.assign({buffer:({event:e,context:t})=>((0,u.DT)(e,"post"),[...t.buffer,{data:e.data,resolvable:e.resolvable,options:e.options}])}),e.emit(({event:e})=>((0,u.DT)(e,"post"),{type:"buffer.added",message:e.data}))}),"create request":(0,c.a)({requests:({context:e,event:t,self:n,spawn:r})=>{(0,u.DT)(t,"request");let i=(Array.isArray(t.data)?t.data:[t.data]).map(t=>r("requestMachine",{id:`req-${s()}`,input:{channelId:e.channelId,data:t.data,domain:e.domain,expectResponse:t.expectResponse,from:e.name,parentRef:n,resolvable:t.resolvable,responseTimeout:t.options?.responseTimeout,responseTo:t.responseTo,signal:t.options?.signal,sources:e.target,suppressWarnings:t.o
9ptions?.suppressWarnings,targetOrigin:e.targetOrigin,to:e.connectTo,type:t.type}}));return[...e.requests,...i]}}),"emit heartbeat":(0,c.e)(()=>({type:"heartbeat"})),"emit received message":(0,c.b)(({enqueue:e})=>{e.emit(({event:e})=>((0,u.DT)(e,"message.received"),{type:"message",message:e.message.data}))}),"emit status":(0,c.e)((e,t)=>({type:"status",status:t.status})),"post message":(0,d.O)(({event:e})=>((0,u.DT)(e,"post"),{type:"request",data:{data:e.data.data,expectResponse:!!e.resolvable,type:e.data.type,resolvable:e.resolvable,options:e.options}})),"process pending handshakes":(0,c.b)(({context:e,enqueue:t})=>{e.handshakeBuffer.forEach(e=>t.raise(e)),t.assign({handshakeBuffer:[]})}),"remove request":(0,c.b)(({context:e,enqueue:t,event:n})=>{(0,u.DT)(n,["request.success","request.failed","request.aborted"]),(0,d.R)(n.requestId),t.assign({requests:e.requests.filter(({id:e})=>e!==n.requestId)})}),"send response":(0,d.O)(({event:e})=>((0,u.DT)(e,["message.received","heartbeat.received"]),{type:"request",data:{type:T,responseTo:e.message.data.id,data:void 0}})),"send handshake syn ack":(0,d.O)({type:"request",data:{type:"comlink/handshake/syn-ack"}}),"send pending messages":(0,c.b)(({enqueue:e})=>{e.raise(({context:e})=>({type:"request",data:e.buffer.map(({data:e,resolvable:t,options:n})=>({data:e.data,type:e.type,expectResponse:!!t,resolvable:t,options:n}))})),e.emit(({context:e})=>({type:"buffer.flushed",messages:e.buffer.map(({data:e})=>e)})),e.assign({buffer:[]})}),"set connection config":(0,c.a)({channelId:({event:e})=>((0,u.DT)(e,"handshake.syn"),e.message.data.channelId),target:({event:e})=>((0,u.DT)(e,"handshake.syn"),e.message.source||void 0),targetOrigin:({event:e})=>((0,u.DT)(e,"handshake.syn"),e.message.origin)})},guards:{hasSource:({context:e})=>null!==e.target}}).createMachine({id:"node",context:({input:e})=>({buffer:[],channelId:null,connectTo:e.connectTo,domain:e.domain??"sanity/comlink",handshakeBuffer:[],name:e.name,requests:[],target:void 0,targetOrigin:null}),invoke:{id:"listen for handshake syn",src:"listen",input:S({include:j,responseType:"handshake.syn"})},on:{"request.success":{actions:"remove request"},"request.failed":{actions:"remove request"},"request.aborted":{actions:"remove request"},"handshake.syn":{actions:"set connection config",target:".handshaking"}},initial:"idle",states:{idle:{entry:[{type:"emit status",params:{status:"idle"}}],on:{post:{actions:"buffer message"}}},handshaking:{guard:"hasSource",entry:["send handshake syn ack",{type:"emit status",params:{status:"handshaking"}}],invoke:[{id:"listen for handshake ack",src:"listen",input:S({include:D,count:1,responseType:"handshake.complete"}),onDone:"connected"},{id:"listen for disconnect",src:"listen",input:S({include:O,count:1,responseType:"disconnect"})},{id:"listen for messages",src:"listen",input:S({exclude:[O,j,D,C,T]})}],on:{request:{actions:"create request"},post:{actions:"buffer message"},"message.received":{actions:"buffer handshake"},disconnect:{target:"idle"}}},connected:{entry:["process pending handshakes","send pending messages",{type:"emit status",params:{status:"connected"}}],invoke:[{id:"listen for messages",src:"listen",input:S({exclude:[O,j,D,C,T]})},{id:"listen for heartbeat",src:"listen",input:S({include:C,responseType:"heartbeat.received"})},{id:"listen for disconnect",src:"listen",input:S({include:O,count:1,responseType:"disconnect"})}],on:{request:{actions:"create request"},post:{actions:"post message"},disconnect:{target:"idle"},"message.received":{actions:["send response","emit received message"]},"heartbeat.received":{actions:["send response","emit heartbeat"]}}}}}),I=(e,t=R())=>{let n,r=(0,d.A)(t,{input:e}),i=new Map,o=new Map;r.on("message",({message:e})=>{let t=i.get(e.type);if(t)return void t.forEach(t=>t(e.data));let n=o.get(e.type);n?n.add(e):o.set(e.type,new Set([e]))});let a=()=>{r.stop()};return{actor:r,fetch:(e,t,n)=>{let{responseTimeout:i=1e4,signal:o,suppressWarnings:a}=n||{},s=function(){let e,t;return"function"==typeof Promise.withResolvers?Promise.withResolvers():{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}();return r.send({type:"post",data:{type:e,data:t},resolvable:s,options:{responseTimeout:i,signal:o,suppressWarnings:a}}),s.promise},machine:t,on:(e,t,n)=>{let r=i.get(e)||new Set;i.has(e)||i.set(e,r),r.add(t);let a=o.get(e);if(a){let r=n?.replay??1;Array.from(a).slice(-r).forEach(({data:e})=>t(e)),o.delete(e)}return()=>{r.delete(t)}},onStatus:(e,t)=>{let{unsubscribe:i}=r.on("status",r=>{n=r.status,t&&r.status!==t||e(r.status)});return n&&e(n),i},post:(e,t)=>
9{r.send({type:"post",data:{type:e,data:t}})},start:()=>(r.start(),a),stop:a}}},13991:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()},e.exports=t.default},13992:(e,t,n)=>{var r=n(88002),i=Math.floor,o=Math.min;e.exports=function(e,t,n,a){var s=0,l=null==e?0:e.length;if(0===l)return 0;for(var u=(t=n(t))!=t,c=null===t,d=r(t),f=void 0===t;s<l;){var h=i((s+l)/2),p=n(e[h]),g=void 0!==p,m=null===p,y=p==p,v=r(p);if(u)var b=a||y;else b=f?y&&(a||g):c?y&&g&&(a||!m):d?y&&g&&!m&&(a||!v):!m&&!v&&(a?p<=t:p<t);b?s=h+1:l=h}return o(l,0xfffffffe)}},14492:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},14518:(e,t,n)=>{"use strict";n.d(t,{Ms:()=>y,vU:()=>h});var r=n(58555),i=n(73315),o=n(69e3),a=n(36116),s=n(65258),l=n(22303),u=c("C",void 0,void 0);function c(e,t,n){return{kind:e,value:t,error:n}}var d=n(56922),f=n(97718),h=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,(0,o.Uv)(t)&&t.add(n)):n.destination=w,n}return(0,r.C6)(t,e),t.create=function(e,t,n){return new y(e,t,n)},t.prototype.next=function(e){this.isStopped?b(c("N",e,void 0),this):this._next(e)},t.prototype.error=function(e){this.isStopped?b(c("E",void 0,e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?b(u,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(o.yU),p=Function.prototype.bind;function g(e,t){return p.call(e,t)}var m=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){v(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){v(e)}else v(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){v(e)}},e}(),y=function(e){function t(t,n,r){var o,s,l=e.call(this)||this;return(0,i.T)(t)||!t?o={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:l&&a.$.useDeprecatedNextContext?((s=Object.create(t)).unsubscribe=function(){return l.unsubscribe()},o={next:t.next&&g(t.next,s),error:t.error&&g(t.error,s),complete:t.complete&&g(t.complete,s)}):o=t,l.destination=new m(o),l}return(0,r.C6)(t,e),t}(h);function v(e){a.$.useDeprecatedSynchronousErrorHandling?(0,f.l)(e):(0,s.m)(e)}function b(e,t){var n=a.$.onStoppedNotification;n&&d.f.setTimeout(function(){return n(e,t)})}var w={closed:!0,next:l.l,error:function(e){throw e},complete:l.l}},14617:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(47528),i=n(71260);function o(e){return(0,i.A)(1,arguments),(0,r.A)(e).getTime()<Date.now()}},14656:(e,t,n)=>{"use strict";n.d(t,{h:()=>l});var r=n(46031),i=n(12884),o=n(56769),a=n(16194),s=n(37060);function l(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=(0,a.lI)(e),l=(0,a.R0)(e,1/0);return e.length?1===e.length?(0,i.Tg)(e[0]):(0,r.U)(l)((0,s.H)(e,n)):o.w}},14700:e=>{var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},15010:(e,t,n)=>{"use strict";n.d(t,{$:()=>u});var r=n(7350),i=n(82326),o=n(15911),a=n(8883),s=n(38628),l=n(17953);function u(e,t){var n=arguments.length>=2;return function(u){return u.pipe(e?(0,i.p)(function(t,n){return e(t,n,u)}):l.D,(0,o.s)(1),n?(0,a.U)(t):(0,s.v)(function(){return new r.G}))}}},15089:(e,t,n)=>{"use strict";n.d(t,{j:()=>r});let r=n(6541).O},15096:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(47528),i=n(71260);function o(e){(0,i.A)(1,arguments);var t=(0,r.A)(e);return t.setDate(1),t.setHours(0,0,0,0),t}},15319:(e,t,n)=>{"use strict";n.d(t,{u:()=>l});var r=n(58555),i=n(12884),o=n(37245),a=n(14518),s=n(27778);function l(e){void 0===e&&(e={});var t=e.connector,n=void 0===t?function(){return new o.B}:t,r=e.resetOnError,l=void 0===r||r,c=e.resetOnComplete,d=void 0===c||c,f=e.resetOnRefCountZero,h=void 0===f||f;return function(e){var t,r,o,c=0,f=!1,p=!1,g=function(){null==r||r.unsubscribe(),r=void 0},m=function(){g(),t=o=void 0,f=p=!1},y=function(){var e=t;m(),null==e||e.unsubscribe()};return(0,s.N)(function(e,s){c++,p||f||g();var v=o=null!=o?o:n();s.add(function(){0!=--c||p||f||(r=u(y,h))}),v.subscribe(s),!t&&c>0&&(t=new a.Ms({next:function(e){return v.next(e)},error:function(e){p=!0,g(),r=u(m,l,e),v.error(e)},complete:function(){f=!0,g(),r=u(m,d),v.complete()}}),(0,i.Tg)(e).subscribe(t))})(e)}}function u(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];if(!0===t)return void e();if(!1!==t){var s=new a.Ms({next:function(){s.unsubscribe(),e()}});return(0,i.Tg)(t.apply(void 0,(0,r.fX)([],(0,r.zs)(n)))).subscribe(s)}}},15336:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(19386),i=n(71260),o=n(17304);function a(e,t,n){(0,i.A)(2,arguments);var a=(0,r.A)(e,t)/7;return(0,o.u)(null==n?void 0:n.roundingMethod)(a)}}
9,15572:(e,t,n)=>{"use strict";let r;n.d(t,{_:()=>l});var i=n(44845);let o=n(6541).O;var a=n(77865),s=n(15089);function l(e){let t="history";(0,i.s5)(t,e),(0,i.AS)(t,u)}function u(){if(!function(){let e=o.chrome,t=e&&e.app&&e.app.runtime,n="history"in o&&!!o.history.pushState&&!!o.history.replaceState;return!t&&n}())return;let e=s.j.onpopstate;function t(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let e=r,t=String(n);r=t,(0,i.aj)("history",{from:e,to:t})}return e.apply(this,t)}}s.j.onpopstate=function(...t){let n=s.j.location.href,o=r;if(r=n,(0,i.aj)("history",{from:o,to:n}),e)try{return e.apply(this,t)}catch(e){}},(0,a.GS)(s.j.history,"pushState",t),(0,a.GS)(s.j.history,"replaceState",t)}},15809:(e,t,n)=>{var r=n(73292),i=n(56993),o=n(11088);e.exports=function(e){return o(e)?r(e,!0):i(e)}},15831:(e,t,n)=>{var r=n(57134),i=n(12227),o=n(84476),a=n(96833),s=n(70799),l=n(1786),u=n(95507),c="[object Map]",d="[object Promise]",f="[object Set]",h="[object WeakMap]",p="[object DataView]",g=u(r),m=u(i),y=u(o),v=u(a),b=u(s),w=l;
9(r&&w(new r(new ArrayBuffer(1)))!=p||i&&w(new i)!=c||o&&w(o.resolve())!=d||a&&w(new a)!=f||s&&w(new s)!=h)&&(w=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case g:return p;case m:return c;case y:return d;case v:return f;case b:return h}return t}),e.exports=w},15891:(e,t,n)=>{"use strict";n.d(t,{K:()=>o});var r=n(90046),i=n(73315);function o(e,t){return(0,i.T)(t)?(0,r.n)(function(){return e},t):(0,r.n)(function(){return e})}},15911:(e,t,n)=>{"use strict";n.d(t,{s:()=>a});var r=n(56769),i=n(27778),o=n(94126);function a(e){return e<=0?function(){return r.w}:(0,i.N)(function(t,n){var r=0;t.subscribe((0,o._)(n,function(t){++r<=e&&(n.next(t),e<=r&&n.complete())}))})}},16194:(e,t,n)=>{"use strict";n.d(t,{R0:()=>l,lI:()=>s,ms:()=>a});var r=n(73315),i=n(30172);function o(e){return e[e.length-1]}function a(e){return(0,r.T)(o(e))?e.pop():void 0}function s(e){return(0,i.m)(o(e))?e.pop():void 0}function l(e,t){return"number"==typeof o(e)?e.pop():t}},16259:(e,t,n)=>{var r=n(68160),i=n(33607),o=n(97288),a=n(9638);e.exports=o(function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),i(e,r(t,1),[])})},16371:(e,t,n)=>{var r=n(61624),i=n(40040),o=n(20977),a=n(44749),s=n(69037);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},16547:(e,t,n)=>{"use strict";function r(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}n.d(t,{A:()=>r})},16557:(e,t,n)=>{"use strict";let r=n(32112);e.exports=(e,t,n)=>0>r(e,t,n)},16758:(e,t,n)=>{var r=n(96833),i=n(37758),o=n(67527);e.exports=r&&1/o(new r([,-0]))[1]==1/0?function(e){return new r(e)}:i},17258:(e,t,n)=>{"use strict";n.d(t,{FE:()=>v});var r=n(83202);let i=["block","list","listItem","marks","types"],o=["listItem"],a=["_key"];function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}let c=["http","https","mailto","tel"],d={"&":"amp","<":"lt",">":"gt",'"':"quot","'":"#x27"};function f(e){return e.replace(/[&<>"']/g,e=>`&${d[e]};`)}let h=(e,t)=>`Unknown ${e}, specify a component for it in the \`components.${t}\` option`,p=e=>h(`block type "${e}"`,"types");function g(e){console.warn(e)}let m={types:{},block:{normal:({children:e})=>`<p>${e}</p>`,blockquote:({children:e})=>`<blockquote>${e}</blockquote>`,h1:({children:e})=>`<h1>${e}</h1>`,h2:({children:e})=>`<h2>${e}</h2>`,h3:({children:e})=>`<h3>${e}</h3>`,h4:({children:e})=>`<h4>${e}</h4>`,h5:({children:e})=>`<h5>${e}</h5>`,h6:({children:e})=>`<h6>${e}</h6>`},marks:{em:({children:e})=>`<em>${e}</em>`,strong:({children:e})=>`<strong>${e}</strong>`,code:({children:e})=>`<code>${e}</code>`,underline:({children:e})=>`<span style="text-decoration:underline">${e}</span>`,"strike-through":({children:e})=>`<del>${e}</del>`,link:({children:e,value:t})=>{let n=(null==t?void 0:t.href)||"";return!function(e){let t=(e||"").trim(),n=t.charAt(0);if("#"===n||"/"===n)return!0;let r=t.indexOf(":");if(-1===r)return!0;let i=t.slice(0,r).toLowerCase();if(-1!==c.indexOf(i))return!0;let o=t.indexOf("?");if(-1!==o&&r>o)return!0;let a=t.indexOf("#");return -1!==a&&r>a}(n)?e:`<a href="${f(n)}">${e}</a>`}},list:{number:({children:e})=>`<ol>${e}</ol>`,bullet:({children:e})=>`<ul>${e}</ul>`},listItem:({children:e})=>`<li>${e}</li>`,hardBreak:()=>"<br/>",unknownType:({value:e,isInline:t})=>{let n=p(e._type);return t?`<span style="display:none">${n}</span>`:`<div style="display:none">${n}</div>`},unknownMark:({markType:e,children:t})=>`<span class="unknown__pt__mark__${e}">${t}</span>`,unknownList:({children:e})=>`<ul>${e}</ul>`,unknownListItem:({children:e})=>`<li>${e}</li>`,unknownBlockStyle:({children:e})=>`<p>${e}</p>`};function y(e,t,n){let r=t[n],i=e[n];return"function"==typeof r||r&&"function"==typeof i?r:r?l(l({},i),r):i}function v(e,t={}){let{components:n,onMissingComponent:o=g}=t,a=Array.isArray(e)?e:[e],s=(0,r.iS)(a,"html"),c=b(n?function(e,t){let{block:n,list:r,listItem:o,marks:a,types:s}=t,c=u(t,i);return l(l({},e),{},{block:y(e,t,"block"),list:y(e,t,"list"),listItem:y(e,t,"listItem"),marks:y(e,t,"marks"),types:y(e,t,"types")},c)}(m,n):m,o||x);return s.map((e,t)=>c({node:e,index:t,isInline:!1,renderNode:c})).join("")}let b=(e,t)=>function n(i){let{node:s,index:c,isInline:d}=i;return(0,r.zp)(s)?function(r,i){let o=r.children.map((e,t)=>n({node:e._key?e:l(l({},e),{},{_key:`li-${i}-${t}`}),index:i,isInline:!1,renderNode:n})),a=e.list,s=("function"==typeof a?a:a[r.listItem])||e.unknownList;if(s===e.unknownList){let e=r.listItem||"bullet";t(h(`list style "${e}"`,"list"),{nodeType:"listStyle",type:e})}return s({value:r,index:i,isInline:!1,renderNode:n,children:o.join("")})}(s,c):(0,r.n2)(s)?function(r,i){let a=w({node:r,index:i,isInline:!1,renderNode:n}),s=e.listItem,l=("function"==typeof s?s:s[r.listItem])||e.unknownListItem;if(l===e.unknownListItem){let e=r.listItem||"bullet";t(h(`list item style "${e}"`,"listItem"),{type:e,nodeType:"listItemStyle"})}let c=a.children;if(r.style&&"normal"!==r.style){let{listItem:e}=r;c=n({node:u(r,o),index:i,isInline:!1,renderNode:n})}return l({value:r,index:i,isInline:!1,renderNode:n,children:c})}(s,c):(0,r.tO)(s)?function(i){let{markDef:o,markType:a,markKey:s}=i,l=e.marks[a]||e.unknownMark,u=i.children.map((e,t)=>n({node:e,index:t,isInline:!0,renderNode:n}));return l===e.unknownMark&&t(h(`mark type "${a}"`,"marks"),{nodeType:"mark",type:a}),l({text:(0,r.fg)(i),value:o,markType:a,markKey:s,renderNode:n,children:u.join("")})}(s):(0,r.IG)(s)?function(r,i,o){let s=w({node:r,index:i,isInline:o,renderNode:n}),{_key:c}=s,d=u(s,a),f=d.node.style||"normal",p=("function"==typeof e.block?e.block:e.block[f])||e.unknownBlockStyle;return p===e.unknownBlockStyle&&t(h(`block style "${f}"`,"block"),{nodeType:"blockStyle",type:f}),p(l(l({},d),{},{value:d.node,renderNode:n}))}(s,c,d):(0,r.YA)(s)?function(t){if(t.text===`
10`){let t=e.hardBreak;return t?t():`
11`}return f(t.text)}(s):function(r,i,o){let a=e.types[r._type];return a||t(p(r._type),{nodeType:"block",type:r._type}),(a||e.unknownType)({value:r,isInline:o,index:i,renderNode:n})}(s,c,d)};function w(e){let{node:t,index:n,isInline:i,renderNode:o}=e,a=(0,r.Pq)(t).map((e,t)=>o({node:e,isInline:!0,index:t,renderNode:o}));return{_key:t._key||`block-${n}`,children:a.join(""),index:n,isInline:i,node:t}}function x(){}}
11,17304:(e,t,n)=>{"use strict";n.d(t,{u:()=>i});var r={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}};function i(e){return e?r[e]:r.trunc}},17607:e=>{e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<o.length;l++){var u=o[l];if(!s(u))return!1;var c=e[u],d=t[u];if(!1===(i=n?n.call(r,c,d,u):void 0)||void 0===i&&c!==d)return!1}return!0}},17822:(e,t,n)=>{var r=n(85930),i=n(29386);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var o=t[n],a=e[o];t[n]=[o,a,r(a)]}return t}},17861:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},17880:(e,t,n)=>{"use strict";n.d(t,{rC:()=>j,GH:()=>O,g_:()=>D});var r,i="0123456789abcdefghjkmnpqrstvwxyz",o=new Uint8Array([255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,10,11,12,13,14,15,16,17,255,18,19,255,20,21,255,22,23,24,25,26,255,27,28,29,30,31,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255]);function a(e){let t=Array(26).fill("");
11if(16!==e.length)throw Error("Invalid length");return t[0]=i[(224&e[0])>>5],t[1]=i[31&e[0]],t[2]=i[(248&e[1])>>3],t[3]=i[(7&e[1])<<2|(192&e[2])>>6],t[4]=i[(62&e[2])>>1],t[5]=i[(1&e[2])<<4|(240&e[3])>>4],t[6]=i[(15&e[3])<<1|(128&e[4])>>7],t[7]=i[(124&e[4])>>2],t[8]=i[(3&e[4])<<3|(224&e[5])>>5],t[9]=i[31&e[5]],t[10]=i[(248&e[6])>>3],t[11]=i[(7&e[6])<<2|(192&e[7])>>6],t[12]=i[(62&e[7])>>1],t[13]=i[(1&e[7])<<4|(240&e[8])>>4],t[14]=i[(15&e[8])<<1|(128&e[9])>>7],t[15]=i[(124&e[9])>>2],t[16]=i[(3&e[9])<<3|(224&e[10])>>5],t[17]=i[31&e[10]],t[18]=i[(248&e[11])>>3],t[19]=i[(7&e[11])<<2|(192&e[12])>>6],t[20]=i[(62&e[12])>>1],t[21]=i[(1&e[12])<<4|(240&e[13])>>4],t[22]=i[(15&e[13])<<1|(128&e[14])>>7],t[23]=i[(124&e[14])>>2],t[24]=i[(3&e[14])<<3|(224&e[15])>>5],t[25]=i[31&e[15]],t.join("")}function s(e){if(26!==e.length)throw Error("Invalid length");let t=new TextEncoder().encode(e);if(255===o[t[0]]||255===o[t[1]]||255===o[t[2]]||255===o[t[3]]||255===o[t[4]]||255===o[t[5]]||255===o[t[6]]||255===o[t[7]]||255===o[t[8]]||255===o[t[9]]||255===o[t[10]]||255===o[t[11]]||255===o[t[12]]||255===o[t[13]]||255===o[t[14]]||255===o[t[15]]||255===o[t[16]]||255===o[t[17]]||255===o[t[18]]||255===o[t[19]]||255===o[t[20]]||255===o[t[21]]||255===o[t[22]]||255===o[t[23]]||255===o[t[24]]||255===o[t[25]])throw Error("Invalid base32 character");let n=new Uint8Array(16);return n[0]=o[t[0]]<<5|o[t[1]],n[1]=o[t[2]]<<3|o[t[3]]>>2,n[2]=(3&o[t[3]])<<6|o[t[4]]<<1|o[t[5]]>>4,n[3]=(15&o[t[5]])<<4|o[t[6]]>>1,n[4]=(1&o[t[6]])<<7|o[t[7]]<<2|o[t[8]]>>3,n[5]=(7&o[t[8]])<<5|o[t[9]],n[6]=o[t[10]]<<3|o[t[11]]>>2,n[7]=(3&o[t[11]])<<6|o[t[12]]<<1|o[t[13]]>>4,n[8]=(15&o[t[13]])<<4|o[t[14]]>>1,n[9]=(1&o[t[14]])<<7|o[t[15]]<<2|o[t[16]]>>3,n[10]=(7&o[t[16]])<<5|o[t[17]],n[11]=o[t[18]]<<3|o[t[19]]>>2,n[12]=(3&o[t[19]])<<6|o[t[20]]<<1|o[t[21]]>>4,n[13]=(15&o[t[21]])<<4|o[t[22]]>>1,n[14]=(1&o[t[22]])<<7|o[t[23]]<<2|o[t[24]]>>3,n[15]=(7&o[t[24]])<<5|o[t[25]],n}var l=Math.pow,u="0123456789abcdef",c=class{constructor(e){if(this.bytes=e,16!==e.length)throw TypeError("not 128-bit length")}static fromFieldsV7(e,t,n,r){if(!Number.isInteger(e)||!Number.isInteger(t)||!Number.isInteger(n)||!Number.isInteger(r)||e<0||t<0||n<0||r<0||e>0xffffffffffff||t>4095||n>0x3fffffff||r>0xffffffff)throw RangeError("invalid field value");let i=new Uint8Array(16);return i[0]=e/l(2,40),i[1]=e/l(2,32),i[2]=e/l(2,24),i[3]=e/l(2,16),i[4]=e/l(2,8),i[5]=e,i[6]=112|t>>>8,i[7]=t,i[8]=128|n>>>24,i[9]=n>>>16,i[10]=n>>>8,i[11]=n,i[12]=r>>>24,i[13]=r>>>16,i[14]=r>>>8,i[15]=r,new c(i)}toString(){let e="";for(let t=0;t<this.bytes.length;t++)e+=u.charAt(this.bytes[t]>>>4),e+=u.charAt(15&this.bytes[t]),(3===t||5===t||7===t||9===t)&&(e+="-");return e}clone(){return new c(this.bytes.slice(0))}equals(e){return 0===this.compareTo(e)}compareTo(e){for(let t=0;t<16;t++){let n=this.bytes[t]-e.bytes[t];if(0!==n)return Math.sign(n)}return 0}},d=class{constructor(){this.timestamp=0,this.counter=0,this.random=new h}generate(){let e=this.generateOrAbort();return void 0!==e?e:(this.timestamp=0,this.generateOrAbort())}generateOrAbort(){let e=Date.now();if(e>this.timestamp)this.timestamp=e,this.resetCounter();else{if(!(e+1e4>this.timestamp))return;this.counter++,this.counter>0x3ffffffffff&&(this.timestamp++,this.resetCounter())}return c.fromFieldsV7(this.timestamp,Math.trunc(this.counter/l(2,30)),this.counter&l(2,30)-1,this.random.nextUint32())}resetCounter(){this.counter=1024*this.random.nextUint32()+(1023&this.random.nextUint32())}},f=e=>{if("undefined"!=typeof UUIDV7_DENY_WEAK_RNG&&UUIDV7_DENY_WEAK_RNG)throw Error("no cryptographically strong RNG available");for(let t=0;t<e.length;t++)e[t]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return e};"undefined"!=typeof crypto&&crypto.getRandomValues&&(f=e=>crypto.getRandomValues(e));var h=class{constructor(){this.buffer=new Uint32Array(8),this.cursor=99}nextUint32(){return this.cursor>=this.buffer.length&&(f(this.buffer),this.cursor=0),this.buffer[this.cursor++]}},p=class{constructor(e,t=""){if(this.prefix=e,this.suffix=t,!function(e){let t,n,r;if(e.length>63)return!1;for(n=0,r=e.length;n<r;n+=1)if(!((t=e.charCodeAt(n))>96&&t<123))return!1;return!0}(e))throw Error("Invalid prefix. Must be at most 63 ascii letters [a-z]");if(this.prefix=e,t)this.suffix=t;else{let e=(r||(r=new d)).generate();this.suffix=a(e.bytes)}if(26!==this.suffix.length)throw Error(`Invalid length. Suffix should have 26 characters, got ${t.length}`);if(this.suffix[0]>"7")throw Error("Invalid suffix. First character must be in the range [0-7]");
11s(this.suffix)}getType(){return this.prefix}getSuffix(){return this.suffix}asType(e){if(this.prefix!==e)throw Error(`Cannot convert TypeID of type ${this.prefix} to type ${e}`);return this}toUUIDBytes(){return s(this.suffix)}toUUID(){return new c(this.toUUIDBytes()).toString()}toString(){return""===this.prefix?this.suffix:`${this.prefix}_${this.suffix}`}static fromString(e){let t=e.split("_");if(1===t.length)return new p("",t[0]);if(2===t.length){if(""===t[0])throw Error(`Invalid TypeID. Prefix cannot be empty when there's a separator: ${e}`);return new p(t[0],t[1])}throw Error(`Invalid TypeID string: ${e}`)}static fromUUIDBytes(e,t){return new p(e,a(t))}static fromUUID(e,t){return new p(e,a(function(e){let t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/0x10000000000&255,n[11]=t/0x100000000&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}(t)))}};function g(e="",t=""){return new p(e,t)}var m=n(37245),y=n(29039),v=n(56769),b=n(46638),w=n(61557),x=n(91558),k=n(37060),E=n(13012),_=n(23989),S=n(79446),A=n(51620),T=n(19806),C=n(46623);function O(){return g("session").toString()}function j(e,t){var n;let r=function(e){let t=new m.B,n=new WeakMap;function r(n,r,i,o,a){t.next({sessionId:e,type:n,traceId:r,name:i.name,version:i.version,data:o,context:a,createdAt:new Date().toISOString()})}function i(n,r,i){t.next({sessionId:e,type:n,version:r.version,name:r.name,data:i,createdAt:new Date().toISOString()})}function o(e,t){if("number"==typeof e.maxSampleRate&&e.maxSampleRate>0){let r=n.get(e),o=new Date;(!r||o.getTime()-r.getTime()>e.maxSampleRate)&&(n.set(e,o),i("log",e,t))}else i("log",e,t)}return{events$:t.asObservable(),logger:{updateUserProperties(n){t.next({sessionId:e,type:"userProperties",properties:n,createdAt:new Date().toISOString()})},trace:(n,i)=>(function n(i,a,s){return{start(){r("trace.start",i,a,void 0,s)},newContext:e=>({trace:t=>n("".concat(i,".").concat(e),t,s),updateUserProperties(){},log:o}),log(e){r("trace.log",i,a,e,s)},complete(){r("trace.complete",i,a,void 0,s)},error(n){t.next({sessionId:e,type:"trace.error",traceId:i,name:a.name,version:a.version,data:{message:function(e){let t=e.indexOf("\n"),n=-1===t?1024:Math.min(t,1024),[r,i]=n<1?[e,""]:[e.substring(0,n),e.substring(n)];return r+(i?"… (+".concat(i.length,")"):"")}(n.message)},context:s,createdAt:new Date().toISOString()})},await(e,t){return this.start(),e.then(e=>(this.log(t||e),this.complete(),e),e=>{throw this.error(e),e}),e}}})(g("trace").toString(),n,i),log:o}}}(e),i=[];function o(){let e=i.slice();return i.length=0,e}function a(){let e=o();return 0===e.length?v.w:(0,b.z)([(0,w.of)(e),t.resolveConsent().catch(e=>({status:"undetermined"}))]).pipe((0,x.Z)(e=>{let[n,r]=e;return 0===n.length||"granted"!==r.status?v.w:(0,k.H)(t.sendEvents(n)).pipe((0,E.W)(e=>(i.unshift(...n),v.w)))}))}let s=null!=(n=t.flushInterval)?n:3e4;function l(){return(0,C.s)(a(),{defaultValue:void 0}).then(()=>{})}let u=r.events$.pipe((0,_.M)(e=>i.push(e)),(0,S.T)(()=>{}),(0,A.n)(()=>new y.c(e=>{let t=setTimeout(()=>{e.next(),e.complete()},s);return"function"==typeof t.unref&&t.unref(),()=>clearTimeout(t)}),{leading:!1,trailing:!0}),(0,T.H)(()=>a())).subscribe();function c(){return l().then(()=>{},()=>{}).finally(()=>{u.unsubscribe()})}return{end:c,endWithBeacon:function(){if(!t.sendBeacon)return c(),!0;let e=o();return u.unsubscribe(),!(e.length>0)||t.sendBeacon(e)},flush:l,logger:r.logger}}function D(e){return{type:"log",name:e.name,version:e.version,description:e.description,maxSampleRate:e.maxSampleRate,schema:void 0}}n(22219)},17884:(e,t,n)=>{"use strict";var r,i,o=Object.create,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,u=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of l(t))c.call(e,i)||i===n||a(e,i,{get:()=>t[i],enumerable:!(r=s(t,i))||r.enumerable});return e},f={};((e,t)=>
11{for(var n in t)a(e,n,{get:t[n],enumerable:!0})})(f,{$dispatcherGuard:()=>_,$makeReadOnly:()=>A,$reset:()=>S,$structuralCheck:()=>D,c:()=>b,clearRenderCounterRegistry:()=>C,renderCounterRegistry:()=>T,useRenderCounter:()=>O}),e.exports=d(a({},"__esModule",{value:!0}),f);var h=((e,t,n)=>(n=null!=e?o(u(e)):{},d(!t&&e&&e.__esModule?n:a(n,"default",{value:e,enumerable:!0}),e)))(n(82203)),{useRef:p,useEffect:g,isValidElement:m}=h,y=null!=(r=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)?r:h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,v=Symbol.for("react.memo_cache_sentinel"),b="function"==typeof(null==(i=h.__COMPILER_RUNTIME)?void 0:i.c)?h.__COMPILER_RUNTIME.c:function(e){return h.useMemo(()=>{let t=Array(e);for(let n=0;n<e;n++)t[n]=v;return t[v]=!0,t},[])},w={};["readContext","useCallback","useContext","useEffect","useImperativeHandle","useInsertionEffect","useLayoutEffect","useMemo","useReducer","useRef","useState","useDebugValue","useDeferredValue","useTransition","useMutableSource","useSyncExternalStore","useId","unstable_isNewReconciler","getCacheSignal","getCacheForType","useCacheRefresh"].forEach(e=>{w[e]=()=>{throw Error(`[React] Unexpected React hook call (${e}) from a React compiled function. Check that all hooks are called directly and named according to convention ('use[A-Z]') `)}});var x=null;function k(e){return y.ReactCurrentDispatcher.current=e,y.ReactCurrentDispatcher.current}w.useMemoCache=e=>{if(null!=x)return x.useMemoCache(e);throw Error("React Compiler internal invariant violation: unexpected null dispatcher")};var E=[];function _(e){let t=y.ReactCurrentDispatcher.current;if(0===e){if(E.push(t),1===E.length&&(x=t),t===w)throw Error("[React] Unexpected call to custom hook or component from a React compiled function. Check that (1) all hooks are called directly and named according to convention ('use[A-Z]') and (2) components are returned as JSX instead of being directly invoked.");k(w)}else if(1===e){let e=E.pop();if(null==e)throw Error("React Compiler internal error: unexpected null in guard stack");0===E.length&&(x=null),k(e)}else if(2===e)E.push(t),k(x);else if(3===e){let e=E.pop();if(null==e)throw Error("React Compiler internal error: unexpected null in guard stack");k(e)}else throw Error("React Compiler internal error: unreachable block"+e)}function S(e){for(let t=0;t<e.length;t++)e[t]=v}function A(){throw Error("TODO: implement $makeReadOnly in react-compiler-runtime")}var T=new Map;function C(){for(let e of T.values())e.forEach(e=>{e.count=0})}function O(e){let t=p(null);null!=t.current&&(t.current.count+=1),g(()=>{if(null==t.current){let n,r={count:0};null==(n=T.get(e))&&(n=new Set,T.set(e,n)),n.add(r),t.current=r}return()=>{null!==t.current&&function(e,t){let n=T.get(e);null!=n&&n.delete(t)}(e,t.current)}})}var j=new Set;function D(e,t,n,r,i,o){function a(e,t,a,s){let l=`${r}:${o} [${i}] ${n}${a} changed from ${e} to ${t} at depth ${s}`;j.has(l)||(j.add(l),console.error(l))}!function e(t,n,r,i){if(!(i>2)){if(t!==n)if(typeof t!=typeof n)a(`type ${typeof t}`,`type ${typeof n}`,r,i);else if("object"==typeof t){let o=Array.isArray(t),s=Array.isArray(n);if(null===t&&null!==n)a("null",`type ${typeof n}`,r,i);else if(null===n)a(`type ${typeof t}`,"null",r,i);else if(t instanceof Map)if(n instanceof Map)if(t.size!==n.size)a(`Map instance with size ${t.size}`,`Map instance with size ${n.size}`,r,i);else for(let[o,s]of t)n.has(o)?e(s,n.get(o),`${r}.get(${o})`,i+1):a(`Map instance with key ${o}`,`Map instance without key ${o}`,r,i);else a("Map instance","other value",r,i);else if(n instanceof Map)a("other value","Map instance",r,i);else if(t instanceof Set)if(n instanceof Set)if(t.size!==n.size)a(`Set instance with size ${t.size}`,`Set instance with size ${n.size}`,r,i);else for(let e of n)t.has(e)||a(`Set instance without element ${e}`,`Set instance with element ${e}`,r,i);else a("Set instance","other value",r,i);else if(n instanceof Set)a("other value","Set instance",r,i);else if(o||s)if(o!==s)a(`type ${o?"array":"object"}`,`type ${s?"array":"object"}`,r,i);else if(t.length!==n.length)a(`array with length ${t.length}`,`array with length ${n.length}`,r,i);else for(let o=0;o<t.length;o++)e(t[o],n[o],`${r}[${o}]`,i+1);else if(m(t)||m(n))m(t)!==m(n)?a(`type ${m(t)?"React element":"object"}`,`type ${m(n)?"React element":"object"}`,r,i):t.type!==n.type?a(`React element of type ${t.type}`,`React element of type ${n.type}`,r,i):e(t.props,n.props,`[props of ${r}]`,i+1);else{for(let e in n)e in t||a(`object without key ${e}`,`object with key ${e}
11`,r,i);for(let o in t)o in n?e(t[o],n[o],`${r}.${o}`,i+1):a(`object with key ${o}`,`object without key ${o}`,r,i)}}else{if("function"==typeof t)return;isNaN(t)||isNaN(n)?isNaN(t)!==isNaN(n)&&a(`${isNaN(t)?"NaN":"non-NaN value"}`,`${isNaN(n)?"NaN":"non-NaN value"}`,r,i):t!==n&&a(t,n,r,i)}}}(e,t,"",0)}},17953:(e,t,n)=>{"use strict";function r(e){return e}n.d(t,{D:()=>r})},18057:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(null==e)throw TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},e.exports=t.default},18274:(e,t,n)=>{var r=n(26825),i=n(28586);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},18287:(e,t,n)=>{"use strict";n.d(t,{w:()=>i});var r=n(6783);function i(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&r._P in e?e[r._P](t):e instanceof Date?new e.constructor(t):new Date(t)}},18449:(e,t,n)=>{"use strict";n.d(t,{S:()=>o});var r=n(27778),i=n(90449);function o(e,t){return(0,r.N)((0,i.S)(e,t,arguments.length>=2,!0))}}
11,18598:(e,t,n)=>{"use strict";let r;n.d(t,{Z:()=>l});var i=n(27313),o=n(87876),a=n(77865);let s=new WeakMap,l=(0,o._C)(()=>({name:"FunctionToString",setupOnce(){r=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=(0,a.sp)(this),n=s.has((0,i.KU)())&&void 0!==t?t:this;return r.apply(n,e)}}catch(e){}},setup(e){s.set(e,!0)}}))},18659:(e,t,n)=>{"use strict";function r(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}n.d(t,{A:()=>r})},18826:(e,t,n)=>{"use strict";n.d(t,{qf:()=>l,d4:()=>c});var r=n(82203),i=r.useLayoutEffect,o=n(88837),a=n(73730);n(12580);let s=(e,t)=>{t(e);let n=e.getSnapshot().children;n&&Object.values(n).forEach(e=>{s(e,t)})};function l(e,...[t,n]){let a=function(e,...[t]){let[[n,a],s]=(0,r.useState)(()=>{let n=(0,o.A)(e,t);return[e.config,n]});if(e.config!==n){let n=(0,o.A)(e,{...t,snapshot:a.getPersistedSnapshot({__unsafeAllowInlineActors:!0})});s([e.config,n]),a=n}return i(()=>{a.logic.implementations=e.implementations}),a}(e,t);return(0,r.useEffect)(()=>{if(!n)return;let e=a.subscribe((0,o.L)(n));return()=>{e.unsubscribe()}},[n]),(0,r.useEffect)(()=>(a.start(),()=>{let e=[];s(a,t=>{e.push([t,t.getSnapshot()]),t.observers=new Set});let t=a.system.getSnapshot?.();a.stop(),a.system._snapshot=t,e.forEach(([e,t])=>{e._processingStatus=0,e._snapshot=t})}),[a]),a}function u(e,t){return e===t}function c(e,t,n=u){let i=(0,r.useCallback)(t=>{if(!e)return()=>{};let{unsubscribe:n}=e.subscribe(t);return n},[e]),o=(0,r.useCallback)(()=>e?.getSnapshot(),[e]);return(0,a.useSyncExternalStoreWithSelector)(i,o,o,t,n)}},18902:(e,t,n)=>{"use strict";n.d(t,{s:()=>r});let r="3.92.0"},18904:(e,t,n)=>{var r=n(19741),i=n(29386);e.exports=function(e,t){return e&&r(e,t,i)}},19021:(e,t,n)=>{"use strict";n.d(t,{A_:()=>a,IM:()=>c,R8:()=>o,T4:()=>s,_S:()=>u,ct:()=>l});let r="drafts.",i="versions.";function o(e){return e.startsWith(r)}function a(e){return e.startsWith(i)}function s(e){return a(e)?r+c(e):o(e)?e:r+e}function l(e,t){if("drafts"===t||"published"===t)throw Error('Version can not be "published" or "drafts"');return`${i}${t}.${c(e)}`}function u(e){if(!a(e))return;let[t,n,...r]=e.split(".");return n}function c(e){return a(e)?e.split(".").slice(2).join("."):o(e)?e.slice(r.length):e}},19032:(e,t,n)=>{var r=n(91233),i=n(55073),o=n(15809);e.exports=i(function(e,t,n,i){r(t,o(t),e,i)})},19054:(e,t,n)=>{var r=n(11102),i=n(35842),o=n(76773),a=n(61386),s=n(85930),l=n(84169),u=n(81489);e.exports=function(e,t){return a(e)&&s(t)?l(u(e),t):function(n){var a=i(n,e);return void 0===a&&a===t?o(n,e):r(t,a,3)}}},19218:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});let r=e=>"object"==typeof e&&null!=e&&1===e.nodeType,i=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,o=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let n=getComputedStyle(e,null);return i(n.overflowY,t)||i(n.overflowX,t)||(e=>{let t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},a=(e,t,n,r,i,o,a,s)=>o<e&&a>t||o>e&&a<t?0:o<=e&&s<=n||a>=t&&s>=n?o-e-r:a>t&&s<n||o<e&&s>n?a-t+i:0,s=e=>{let t=e.parentElement;return null==t?e.getRootNode().host||null:t},l=(e,t)=>{var n,i,l,u;if("undefined"==typeof document)return[];let{scrollMode:c,block:d,inline:f,boundary:h,skipOverflowHiddenElements:p}=t,g="function"==typeof h?h:e=>e!==h;if(!r(e))throw TypeError("Invalid target");let m=document.scrollingElement||document.documentElement,y=[],v=e;for(;r(v)&&g(v);){if((v=s(v))===m){y.push(v);break}null!=v&&v===document.body&&o(v)&&!o(document.documentElement)||null!=v&&o(v,p)&&y.push(v)}let b=null!=(i=null==(n=window.visualViewport)?void 0:n.width)?i:innerWidth,w=null!=(u=null==(l=window.visualViewport)?void 0:l.height)?u:innerHeight,{scrollX:x,scrollY:k}=window,{height:E,width:_,top:S,right:A,bottom:T,left:C}=e.getBoundingClientRect(),{top:O,right:j,bottom:D,left:R}=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||
110,left:parseFloat(t.scrollMarginLeft)||0}})(e),I="start"===d||"nearest"===d?S-O:"end"===d?T+D:S+E/2-O+D,P="center"===f?C+_/2-R+j:"end"===f?A+j:C-R,M=[];for(let e=0;e<y.length;e++){let t=y[e],{height:n,width:r,top:i,right:s,bottom:l,left:u}=t.getBoundingClientRect();if("if-needed"===c&&S>=0&&C>=0&&T<=w&&A<=b&&(t===m&&!o(t)||S>=i&&T<=l&&C>=u&&A<=s))break;let h=getComputedStyle(t),p=parseInt(h.borderLeftWidth,10),g=parseInt(h.borderTopWidth,10),v=parseInt(h.borderRightWidth,10),O=parseInt(h.borderBottomWidth,10),j=0,D=0,R="offsetWidth"in t?t.offsetWidth-t.clientWidth-p-v:0,N="offsetHeight"in t?t.offsetHeight-t.clientHeight-g-O:0,$="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,L="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(m===t)j="start"===d?I:"end"===d?I-w:"nearest"===d?a(k,k+w,w,g,O,k+I,k+I+E,E):I-w/2,D="start"===f?P:"center"===f?P-b/2:"end"===f?P-b:a(x,x+b,b,p,v,x+P,x+P+_,_),j=Math.max(0,j+k),D=Math.max(0,D+x);else{j="start"===d?I-i-g:"end"===d?I-l+O+N:"nearest"===d?a(i,l,n,g,O+N,I,I+E,E):I-(i+n/2)+N/2,D="start"===f?P-u-p:"center"===f?P-(u+r/2)+R/2:"end"===f?P-s+v+R:a(u,s,r,p,v+R,P,P+_,_);let{scrollLeft:e,scrollTop:o}=t;j=0===L?0:Math.max(0,Math.min(o+j/L,t.scrollHeight-n/L+N)),D=0===$?0:Math.max(0,Math.min(e+D/$,t.scrollWidth-r/$+R)),I+=o-j,P+=e-D}M.push({el:t,top:j,left:D})}return M};function u(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;let n=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if("object"==typeof t&&"function"==typeof t.behavior)return t.behavior(l(e,t));let r="boolean"==typeof t||null==t?void 0:t.behavior;for(let{el:i,top:o,left:a}of l(e,!1===t?{block:"end",inline:"nearest"}:t===Object(t)&&0!==Object.keys(t).length?t:{block:"start",inline:"nearest"})){let e=o-n.top+n.bottom,t=a-n.left+n.right;i.scroll({top:e,left:t,behavior:r})}}},19386:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(47528),i=n(7688),o=n(71260);function a(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function s(e,t){(0,o.A)(2,arguments);var n=(0,r.A)(e),s=(0,r.A)(t),l=a(n,s),u=Math.abs((0,i.A)(n,s));n.setDate(n.getDate()-l*u);var c=Number(a(n,s)===-l),d=l*(u-c);return 0===d?0:d}},19723:(e,t,n)=>{"use strict";var r=n(82203),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&c({inst:i})},[e,n,t]),a(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},19741:(e,t,n)=>{e.exports=n(60245)()},19806:(e,t,n)=>{"use strict";n.d(t,{H:()=>o});var r=n(91558),i=n(73315);function o(e,t){return(0,i.T)(t)?(0,r.Z)(e,t,1):(0,r.Z)(e,1)}},20011:(e,t,n)=>{"use strict";n.d(t,{w:()=>d});var r=n(58555),i=n(69e3),o=n(27778),a=n(94126),s=n(74814),l=n(43048),u=n(16194),c=n(97783);function d(e){for(var t,n,d=[],f=1;f<arguments.length;f++)d[f-1]=arguments[f];var h=null!=(t=(0,u.lI)(d))?t:l.E,p=null!=(n=d[0])?n:null,g=d[1]||1/0;return(0,o.N)(function(t,n){var o=[],l=!1,u=function(e){var t=e.buffer;e.subs.unsubscribe(),(0,s.o)(o,e),n.next(t),l&&d()},d=function(){if(o){var t=new i.yU;n.add(t);var r={buffer:[],subs:t};o.push(r),(0,c.N)(t,h,function(){return u(r)},e)}};null!==p&&p>=0?(0,c.N)(n,h,d,p,!0):l=!0,d();var f=(0,a._)(n,function(e){var t,n,i=o.slice();try{for(var a=(0,r.Ju)(i),s=a.next();!s.done;s=a.next()){var l=s.value,c=l.buffer;c.push(e),g<=c.length&&u(l)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}},function(){for(;null==o?void 0:o.length;)n.next(o.shift().buffer);null==f||f.unsubscribe(),n.complete(),n.unsubscribe()},void 0,function(){return o=null});t.subscribe(f)})}},20215:(e,t,n)=>{"use strict";n.d(t,{J:()=>i,m:()=>o});var r=n(82203);function i(e){let t=o(e),[n,i]=(0,r.useState)(t),{defaultDpr:a,maxDpr:s,round:l}=e||{};return(0,r.useEffect)(()=>
11{if(!("undefined"!=typeof window&&"matchMedia"in window))return;let e=()=>i(o({defaultDpr:a,maxDpr:s,round:l})),t=window.matchMedia(`screen and (resolution: ${n}dppx)`);return t.addEventListener?t.addEventListener("change",e):t.addListener(e),()=>{t.removeEventListener?t.removeEventListener("change",e):t.removeListener(e)}},[n,a,s,l]),n}function o(e){let{defaultDpr:t=1,maxDpr:n=3,round:r=!0}=e||{},i="undefined"!=typeof window&&"number"==typeof window.devicePixelRatio?window.devicePixelRatio:t;return Math.min(Math.max(1,r?Math.floor(i):i),n)}},20536:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},20977:(e,t,n)=>{var r=n(95973);e.exports=function(e){return r(this,e).get(e)}},21020:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},21179:(e,t,n)=>{"use strict";n.d(t,{FN:()=>i,dU:()=>r}),n(39335);let r=e=>{let{transform:t}=e;return{...t,y:0}},i=e=>{let{transform:t}=e;return{...t,x:0}}},21256:(e,t,n)=>{"use strict";var r=n(44316).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(1,arguments);var n,r,u,c,d,f,h,p,g=(0,l.getDefaultOptions)(),m=(0,s.default)(null!=(n=null!=(r=null!=(u=null!=(c=null==t?void 0:t.firstWeekContainsDate)?c:null==t||null==(d=t.locale)||null==(f=d.options)?void 0:f.firstWeekContainsDate)?u:g.firstWeekContainsDate)?r:null==(h=g.locale)||null==(p=h.options)?void 0:p.firstWeekContainsDate)?n:1),y=(0,i.default)(e,t),v=new Date(0);return v.setUTCFullYear(y,0,m),v.setUTCHours(0,0,0,0),(0,a.default)(v,t)};var i=r(n(28307)),o=r(n(29024)),a=r(n(91265)),s=r(n(12431)),l=n(57285);e.exports=t.default},21434:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(47528),i=n(71260);function o(e,t){(0,i.A)(2,arguments);var n=(0,r.A)(e),o=(0,r.A)(t);return n.getTime()<o.getTime()}},21440:(e,t,n)=>{"use strict";n.d(t,{F:()=>a});var r=n(17953),i=n(27778),o=n(94126);function a(e,t){return void 0===t&&(t=r.D),e=null!=e?e:s,(0,i.N)(function(n,r){var i,a=!0;n.subscribe((0,o._)(r,function(n){var o=t(n);(a||!e(i,o))&&(a=!1,i=o,r.next(n))}))})}function s(e,t){return e===t}},21482:e=>{e.exports=function(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}},21553:(e,t,n)=>{var r=n(89931);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},21565:(e,t,n)=>{"use strict";n.d(t,{Q6:()=>eQ,MZ:()=>em,gP:()=>ey,UU:()=>t6});let r=!(typeof navigator>"u")&&"ReactNative"===navigator.product,i={timeout:r?6e4:12e4},o=function(e){let t={...i,..."string"==typeof e?{url:e}:e};if(t.timeout=function e(t){if(!1===t||0===t)return!1;if(t.connect||t.socket)return t;let n=Number(t);return isNaN(n)?e(i.timeout):{connect:n,socket:n}}(t.timeout),t.query){let{url:e,searchParams:n}=function(e){let t=e.indexOf("?");if(-1===t)return{url:e,searchParams:new URLSearchParams};let n=e.slice(0,t),i=e.slice(t+1);if(!r)return{url:n,searchParams:new URLSearchParams(i)};if("function"!=typeof decodeURIComponent)throw Error("Broken `URLSearchParams` implementation, and `decodeURIComponent` is not defined");let o=new URLSearchParams;for(let e of i.split("&")){let[t,n]=e.split("=");t&&o.append(a(t),a(n||""))}return{url:n,searchParams:o}}(t.url);for(let[r,i]of Object.entries(t.query)){if(void 0!==i)if(Array.isArray(i))for(let e of i)n.append(r,e);else n.append(r,i);let o=n.toString();o&&(t.url=`${e}?${o}`)}}return t.method=t.body&&!t.method?"POST":(t.method||"GET").toUpperCase(),t};function a(e){return decodeURIComponent(e.replace(/\+/g," "))}let s=/^https?:\/\//i,l=function(e){if(!s.test(e.url))throw Error(`"${e.url}" is not a valid URL`)},u=["request","response","progress","error","abort"],c=["processOptions","validateOptions","interceptRequest","finalizeOptions","onRequest","onResponse","onError","onReturn","onHeaders"];
11var d,f,h=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(function(){if(f)return d;f=1;var e=function(e){return e.replace(/^\s+|\s+$/g,"")};return d=function(t){if(!t)return{};for(var n,r={},i=e(t).split("\n"),o=0;o<i.length;o++){var a=i[o],s=a.indexOf(":"),l=e(a.slice(0,s)).toLowerCase(),u=e(a.slice(s+1));typeof r[l]>"u"?r[l]=u:(n=r[l],"[object Array]"===Object.prototype.toString.call(n)?r[l].push(u):r[l]=[r[l],u])}return r}}());class p{onabort;onerror;onreadystatechange;ontimeout;readyState=0;response;responseText="";responseType="";status;statusText;withCredentials;#e;#t;#n;#r={};#i;#o={};#a;open(e,t,n){this.#e=e,this.#t=t,this.#n="",this.readyState=1,this.onreadystatechange?.(),this.#i=void 0}abort(){this.#i&&this.#i.abort()}getAllResponseHeaders(){return this.#n}setRequestHeader(e,t){this.#r[e]=t}setInit(e,t=!0){this.#o=e,this.#a=t}send(e){let t="arraybuffer"!==this.responseType,n={...this.#o,method:this.#e,headers:this.#r,body:e};"function"==typeof AbortController&&this.#a&&(this.#i=new AbortController,"u">typeof EventTarget&&this.#i.signal instanceof EventTarget&&(n.signal=this.#i.signal)),"u">typeof document&&(n.credentials=this.withCredentials?"include":"omit"),fetch(this.#t,n).then(e=>(e.headers.forEach((e,t)=>{this.#n+=`${t}: ${e}\r
12`}),this.status=e.status,this.statusText=e.statusText,this.readyState=3,this.onreadystatechange?.(),t?e.text():e.arrayBuffer())).then(e=>{"string"==typeof e?this.responseText=e:this.response=e,this.readyState=4,this.onreadystatechange?.()}).catch(e=>{"AbortError"!==e.name?this.onerror?.(e):this.onabort?.()})}}let g="function"==typeof XMLHttpRequest?"xhr":"fetch",m="xhr"===g?XMLHttpRequest:p,y=(e,t)=>{let n=e.options,r=e.applyMiddleware("finalizeOptions",n),i={},o=e.applyMiddleware("interceptRequest",void 0,{adapter:g,context:e});if(o){let e=setTimeout(t,0,null,o);return{abort:()=>clearTimeout(e)}}let a=new m;a instanceof p&&"object"==typeof r.fetch&&a.setInit(r.fetch,r.useAbortSignal??!0);let s=r.headers,l=r.timeout,u=!1,c=!1,d=!1;if(a.onerror=e=>{v(a instanceof p?e instanceof Error?e:Error(`Request error while attempting to reach is ${r.url}`,{cause:e}):Error(`Request error while attempting to reach is ${r.url}${e.lengthComputable?`(${e.loaded} of ${e.total} bytes transferred)`:""}`))},a.ontimeout=e=>{v(Error(`Request timeout while attempting to reach ${r.url}${e.lengthComputable?`(${e.loaded} of ${e.total} bytes transferred)`:""}`))},a.onabort=()=>{y(!0),u=!0},a.onreadystatechange=function(){l&&(y(),i.socket=setTimeout(()=>f("ESOCKETTIMEDOUT"),l.socket)),!u&&a&&4===a.readyState&&0!==a.status&&function(){if(!(u||c||d)){if
12(0===a.status)return v(Error("Unknown XHR error"));y(),c=!0,t(null,{body:a.response||(""===a.responseType||"text"===a.responseType?a.responseText:""),url:r.url,method:r.method,headers:h(a.getAllResponseHeaders()),statusCode:a.status,statusMessage:a.statusText})}}()},a.open(r.method,r.url,!0),a.withCredentials=!!r.withCredentials,s&&a.setRequestHeader)for(let e in s)s.hasOwnProperty(e)&&a.setRequestHeader(e,s[e]);return r.rawBody&&(a.responseType="arraybuffer"),e.applyMiddleware("onRequest",{options:r,adapter:g,request:a,context:e}),a.send(r.body||null),l&&(i.connect=setTimeout(()=>f("ETIMEDOUT"),l.connect)),{abort:function(){u=!0,a&&a.abort()}};function f(t){d=!0,a.abort();let n=Error("ESOCKETTIMEDOUT"===t?`Socket timed out on request to ${r.url}`:`Connection timed out on request to ${r.url}`);n.code=t,e.channels.error.publish(n)}function y(e){(e||u||a&&a.readyState>=2&&i.connect)&&clearTimeout(i.connect),i.socket&&clearTimeout(i.socket)}function v(e){if(c)return;y(!0),c=!0,a=null;let n=e||Error(`Network error while attempting to reach ${r.url}`);n.isNetworkError=!0,n.request=r,t(n)}};var v,b,w,x,k,E=n(55036),_=n(70168).hp,S={exports:{}};k||(k=1,function(e,t){let n;t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;let n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(i=r))}),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch{}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch{}return!e&&"u">typeof E&&"env"in E&&(e=E.env.DEBUG),e},t.useColors=function(){let e;return"u">typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("u">typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"u">typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"u">typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch{}}(),n=!1,t.destroy=()=>{n||(n=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))},t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=(x?w:(x=1,w=function(e){function t(e){let r,i,o,a=null;function s(...e){if(!s.enabled)return;let n=Number(new Date);s.diff=n-(r||n),s.prev=r,s.curr=n,r=n,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,r)=>{if("%%"===n)return"%";i++;let o=t.formatters[r];if("function"==typeof o){let t=e[i];n=o.call(s,t),e.splice(i,1),i--}return n}),t.formatArgs.call(s,e),(s.log||t.log).apply(s,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function n(e,n){let r=t(this.namespace+(typeof n>"u"?":":n)+e);return r.log=this.log,r}function r(e,t){let n=0,r=0,i=-1,o=0;for(;n<e.length;)if(r<t.length&&(t[r]===e[n]||"*"===t[r]))"*"===t[r]?(i=r,o=n):n++,r++;else{if(-1===i)return!1;r=i+1,n=++o}for(;r<t.length&&"*"===t[r];)r++;return r===t.length}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){let e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){for(let n of(t.save(e),t.namespaces=e,t.names=[],t.skips=[],("string"==typeof e?e:"").trim().replace(" ",",").split(",").filter(
12Boolean)))"-"===n[0]?t.skips.push(n.slice(1)):t.names.push(n)},t.enabled=function(e){for(let n of t.skips)if(r(e,n))return!1;for(let n of t.names)if(r(e,n))return!0;return!1},t.humanize=function(){if(b)return v;b=1;function e(e,t,n,r){return Math.round(e/n)+" "+r+(t>=1.5*n?"s":"")}return v=function(t,n){n=n||{};var r,i,o=typeof t;if("string"===o&&t.length>0){var a=t;if(!((a=String(a)).length>100)){var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(a);if(s){var l=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*l;case"weeks":case"week":case"w":return 6048e5*l;case"days":case"day":case"d":return 864e5*l;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*l;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*l;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*l;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l}}}return}if("number"===o&&isFinite(t))return n.long?(i=Math.abs(t))>=864e5?e(t,i,864e5,"day"):i>=36e5?e(t,i,36e5,"hour"):i>=6e4?e(t,i,6e4,"minute"):i>=1e3?e(t,i,1e3,"second"):t+" ms":(r=Math.abs(t))>=864e5?Math.round(t/864e5)+"d":r>=36e5?Math.round(t/36e5)+"h":r>=6e4?Math.round(t/6e4)+"m":r>=1e3?Math.round(t/1e3)+"s":t+"ms";throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}}(),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t)|0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}))(t);let{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(S,S.exports)),S.exports,Object.prototype.hasOwnProperty;let A=typeof _>"u"?()=>!1:e=>_.isBuffer(e);function T(e){return"[object Object]"===Object.prototype.toString.call(e)}let C=["boolean","string","number"],O={};"u">typeof globalThis?O=globalThis:"u">typeof window?O=window:"u">typeof global?O=global:"u">typeof self&&(O=self);var j=O;let D=(e={})=>{let t=e.implementation||Promise;if(!t)throw Error("`Promise` is not available in global scope, and no implementation was passed");return{onReturn:(n,r)=>new t((t,i)=>{let o=r.options.cancelToken;o&&o.promise.then(e=>{n.abort.publish(e),i(e)}),n.error.subscribe(i),n.response.subscribe(n=>{t(e.onlyBody?n.body:n)}),setTimeout(()=>{try{n.request.publish(r)}catch(e){i(e)}},0)})}};class R{__CANCEL__=!0;message;constructor(e){this.message=e}toString(){return"Cancel"+(this.message?`: ${this.message}`:"")}}class I{promise;reason;constructor(e){if("function"!=typeof e)throw TypeError("executor must be a function.");let t=null;this.promise=new Promise(e=>{t=e}),e(e=>{this.reason||(this.reason=new R(e),t(this.reason))})}static source=()=>{let e;return{token:new I(t=>{e=t}),cancel:e}}}D.Cancel=R,D.CancelToken=I,D.isCancel=e=>!(!e||!e?.__CANCEL__);var P=(e,t,n)=>("GET"===n.method||"HEAD"===n.method)&&(e.isNetworkError||!1);function M(e){return 100*Math.pow(2,e)+100*Math.random()}let N=(e={})=>(e=>{let t=e.maxRetries||5,n=e.retryDelay||M,r=e.shouldRetry;return{onError:(e,i)=>{var o;let a=i.options,s=a.maxRetries||t,l=a.retryDelay||n,u=a.shouldRetry||r,c=a.attemptNumber||0;if(null!==(o=a.body)&&"object"==typeof o&&"function"==typeof o.pipe||!u(e,c,a)||c>=s)return e;let d=Object.assign({},i,{options:Object.assign({},a,{attemptNumber:c+1})});return setTimeout(()=>i.channels.request.publish(d),l(c)),null}}})({shouldRetry:P,...e});N.shouldRetry=P;var $=n(29039),L=n(71976),F=n(27830),U=n(61557),z=n(91558),B=n(37060),q=n(46623),V=n(86404),H=n(13012),W=n(45720),Y=n(29013),G=n(43710),K=n(23989),X=n(92010),Z=n(15319),Q=n(14656),J=n(56769),ee=n(79446),et=n(53549),en=n(93588),er=n(58555),ei=n(46638),eo=n(27778),ea=n(51734),es=n(43242),el=n(59043),eu=n(16194);function ec(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=(0,eu.ms)(e);return n?(0,el.F)(ec.apply(void 0,(0,er.fX)([],(0,er.zs)(e))),(0,es.I)(n)):(0,eo.N)(function(t,n){(0,ei.P)((0,er.fX)([t],(0,er.zs)((0,ea.K)(e))))(n)})}var ed=n(82326),ef=n(19021),eh=n(59835);let ep=/\r\n|[\n\r\u2028\u2029]/;function eg(e,t){let n=0;for(let r=0;r<t.length;r++){let i=t[r].length+1;if(n+i>e)return{line:r+1,column:e-n};n+=i}return{line:t.length,column:t[t.length-1]?.length??0}}
12class em extends Error{response;statusCode=400;responseBody;details;constructor(e,t){let n=ev(e,t);super(n.message),Object.assign(this,n)}}class ey extends Error{response;statusCode=500;responseBody;details;constructor(e){let t=ev(e);super(t.message),Object.assign(this,t)}}function ev(e,t){var n,r,i;let o=e.body,a={response:e,statusCode:e.statusCode,responseBody:(n=o,-1!==(e.headers["content-type"]||"").toLowerCase().indexOf("application/json")?JSON.stringify(n,null,2):n),message:"",details:void 0};if(!(0,en.u4)(o))return a.message=ex(e,o),a;let s=o.error;if("string"==typeof s&&"string"==typeof o.message)return a.message=`${s} - ${o.message}`,a;if("object"!=typeof s||null===s)return"string"==typeof s?a.message=s:"string"==typeof o.message?a.message=o.message:a.message=ex(e,o),a;if("type"in(r=s)&&"mutationError"===r.type&&"description"in r&&"string"==typeof r.description||"type"in(i=s)&&"actionError"===i.type&&"description"in i&&"string"==typeof i.description){let e=s.items||[],t=e.slice(0,5).map(e=>e.error?.description).filter(Boolean),n=t.length?`:
13- ${t.join(`
14- `)}`:"";return e.length>5&&(n+=`
15...and ${e.length-5} more`),a.message=`${s.description}${n}`,a.details=o.error,a}return eb(s)?(a.message=ew(s,t?.options?.query?.tag),a.details=o.error):"description"in s&&"string"==typeof s.description?(a.message=s.description,a.details=s):a.message=ex(e,o),a}function eb(e){return(0,en.u4)(e)&&"queryParseError"===e.type&&"string"==typeof e.query&&"number"==typeof e.start&&"number"==typeof e.end}function ew(e,t){let{query:n,start:r,end:i,description:o}=e;if(!n||typeof r>"u")return`GROQ query parse error: ${o}`;let a=t?`
16
17Tag: ${t}`:"";return`GROQ query parse error:
18${function(e,t,n){let r=e.split(ep),{start:i,end:o,markerLines:a}=function(e,t){let n={...e.start},r={...n,...e.end},i=n.line??-1,o=n.column??0,a=r.line,s=r.column,l=Math.max(i-3,0),u=Math.min(t.length,a+3);-1===i&&(l=0),-1===a&&(u=t.length);let c=a-i,d={};if(c)for(let e=0;e<=c;e++){let n=e+i;if(o)if(0===e){let e=t[n-1].length;d[n]=[o,e-o+1]}else if(e===c)d[n]=[0,s];else{let r=t[n-e].length;d[n]=[0,r]}else d[n]=!0}else o===s?o?d[i]=[o,0]:d[i]=!0:d[i]=[o,s-o];return{start:l,end:u,markerLines:d}}({start:eg(t.start,r),end:t.end?eg(t.end,r):void 0},r),s=`${o}`.length;return e.split(ep,o).slice(i,o).map((e,t)=>{let r=i+1+t,o=` ${` ${r}`.slice(-s)} |`,l=a[r],u=!a[r+1];if(!l)return` ${o}${e.length>0?` ${e}`:""}`;let c="";if(Array.isArray(l)){let t=e.slice(0,Math.max(l[0]-1,0)).replace(/[^\t]/g," "),r=l[1]||1;c=`
19 `+o.replace(/\d/g," ")+" "+t+"^".repeat(r),u&&n&&(c+=" "+n)}return">"+o+(e.length>0?` ${e}`:"")+c}).join(`
20`)}(n,{start:r,end:i},o)}${a}`}function ex(e,t){var n,r;let i="string"==typeof t?` (${r=100,(n=t).length>100?`${n.slice(0,r)}\u2026`:n})`:"",o=e.statusMessage?` ${e.statusMessage}`:"";return`${e.method}-request to ${e.url} resulted in HTTP ${e.statusCode}${o}${i}`}class ek extends Error{projectId;addOriginUrl;constructor({projectId:e}){super("CorsOriginError"),this.name="CorsOriginError",this.projectId=e;let t=new URL(`https://sanity.io/manage/project/${e}/api`);if("u">typeof location){let{origin:e}=location;t.searchParams.set("cors","add"),t.searchParams.set("origin",e),this.addOriginUrl=t,this.message=`The current origin is not allowed to connect to the Live Content API. Add it here: ${t}`}else this.message=`The current origin is not allowed to connect to the Live Content API. Change your configuration here: ${t}`}}let eE={onResponse:(e,t)=>{if(e.statusCode>=500)throw new ey(e);if(e.statusCode>=400)throw new em(e,t);return e}};function e_(e){return((e=[],t=y)=>(function e(t,n){let r=[],i=c.reduce((e,t)=>(e[t]=e[t]||[],e),{processOptions:[o],validateOptions:[l]});function a(e){let t,r=u.reduce((e,t)=>(e[t]=function(){let e=Object.create(null),t=0;return{publish:function(t){for(let n in e)e[n](t)},subscribe:function(n){let r=t++;return e[r]=n,function(){delete e[r]}}}}(),e),{}),o=function(e,t,...n){let r="onError"===e,o=t;for(let t=0;t<i[e].length&&(o=(0,i[e][t])(o,...n),!r||o);t++);return o},a=o("processOptions",e);o("validateOptions",a);let s={options:a,channels:r,applyMiddleware:o},l=r.request.subscribe(e=>{t=n(e,(t,n)=>((e,t,n)=>{let i=e,a=t;if(!i)try{a=o("onResponse",t,n)}catch(e){a=null,i=e}(i=i&&o("onError",i,n))?r.error.publish(i):a&&r.response.publish(a)})(t,n,e))});r.abort.subscribe(()=>{l(),t&&t.abort()});let c=o("onReturn",r,s);return c===r&&r.request.publish(s),c}return a.use=function(e){if(!e)throw Error("Tried to add middleware that resolved to fal
20sey value");if("function"==typeof e)throw Error("Tried to add middleware that was a function. It probably expects you to pass options to it.");if(e.onReturn&&i.onReturn.length>0)throw Error("Tried to add new middleware with `onReturn` handler, but another handler has already been registered for this event");return c.forEach(t=>{e[t]&&i[t].push(e[t])}),r.push(e),a},a.clone=()=>e(r,n),t.forEach(a.use),a})(e,t))([N({shouldRetry:eS}),...e,function(){let e={};return{onResponse:t=>{let n=t.headers["x-sanity-warning"];for(let t of Array.isArray(n)?n:[n])!t||e[t]||(e[t]=!0,console.warn(t));return t}}}(),{processOptions:e=>{let t=e.body;return!t||"function"==typeof t.pipe||A(t)||-1===C.indexOf(typeof t)&&!Array.isArray(t)&&!function(e){if(!1===T(e))return!1;let t=e.constructor;if(void 0===t)return!0;let n=t.prototype;return!1!==T(n)&&!1!==n.hasOwnProperty("isPrototypeOf")}(t)?e:Object.assign({},e,{body:JSON.stringify(e.body),headers:Object.assign({},e.headers,{"Content-Type":"application/json"})})}},{onResponse:e=>{let t=e.headers["content-type"]||"",n=-1!==t.indexOf("application/json");return e.body&&t&&n?Object.assign({},e,{body:function(e){try{return JSON.parse(e)}catch(e){throw e.message=`Failed to parsed response body as JSON: ${e.message}`,e}}(e.body)}):e},processOptions:e=>Object.assign({},e,{headers:Object.assign({Accept:"application/json"},e.headers)})},{onRequest:e=>{if("xhr"!==e.adapter)return;let t=e.request,n=e.context;function r(e){return t=>{let r=t.lengthComputable?t.loaded/t.total*100:-1;n.channels.progress.publish({stage:e,percent:r,total:t.total,loaded:t.loaded,lengthComputable:t.lengthComputable})}}"upload"in t&&"onprogress"in t.upload&&(t.upload.onprogress=r("upload")),"onprogress"in t&&(t.onprogress=r("download"))}},eE,function(e={}){let t=e.implementation||j.Observable;if(!t)throw Error("`Observable` is not available in global scope, and no implementation was passed");return{onReturn:(e,n)=>new t(t=>(e.error.subscribe(e=>t.error(e)),e.progress.subscribe(e=>t.next(Object.assign({type:"progress"},e))),e.response.subscribe(e=>{t.next(Object.assign({type:"response"},e)),t.complete()}),e.request.publish(n),()=>e.abort.publish()))}}({implementation:$.c})])}function eS(e,t,n){if(0===n.maxRetries)return!1;let r="GET"===n.method||"HEAD"===n.method,i=(n.uri||n.url).startsWith("/data/query"),o=e.response&&(429===e.response.statusCode||502===e.response.statusCode||503===e.response.statusCode);return(!!r||!!i)&&!!o||N.shouldRetry(e,t,n)}function eA(e){return"https://www.sanity.io/help/"+e}let eT=["image","file"],eC=["before","after","replace"],eO=e=>{if(!/^(~[a-z0-9]{1}[-\w]{0,63}|[a-z0-9]{1}[-\w]{0,63})$/.test(e))throw Error("Datasets can only contain lowercase characters, numbers, underscores and dashes, and start with tilde, and be maximum 64 characters")},ej=(e,t)=>{if(null===t||"object"!=typeof t||Array.isArray(t))throw Error(`${e}() takes an object of properties`)},eD=(e,t)=>{if("string"!=typeof t||!/^[a-z0-9_][a-z0-9_.-]{0,127}$/i.test(t)||t.includes(".."))throw Error(`${e}(): "${t}" is not a valid document ID`)},eR=(e,t)=>{if(!t._id)throw Error(`${e}() requires that the document contains an ID ("_id" property)`);eD(e,t._id)},eI=(e,t)=>{if(!t._type)throw Error(`\`${e}()\` requires that the document contains a type (\`_type\` property)`);((e,t)=>
20{if("string"!=typeof t)throw Error(`\`${e}()\`: \`${t}\` is not a valid document type`)})(e,t._type)},eP=e=>{if(!e.dataset)throw Error("`dataset` must be provided to perform queries");return e.dataset||""},eM=e=>{if("string"!=typeof e||!/^[a-z0-9._-]{1,75}$/i.test(e))throw Error("Tag can only contain alphanumeric characters, underscores, dashes and dots, and be between one and 75 characters long.");return e},eN=e=>{if(!e["~experimental_resource"])throw Error("`resource` must be provided to perform resource queries");let{type:t,id:n}=e["~experimental_resource"];switch(t){case"dataset":if(2!==n.split(".").length)throw Error('Dataset resource ID must be in the format "project.dataset"');return;case"dashboard":case"media-library":case"canvas":return;default:throw Error(`Unsupported resource type: ${t.toString()}`)}},e$=(e,t)=>{if(t["~experimental_resource"])throw Error(`\`${e}\` does not support resource-based operations`)},eL=e=>(function(e){let t=!1,n;return(...r)=>(t||(n=e(...r),t=!0),n)})((...t)=>console.warn(e.join(" "),...t)),eF=eL(["Because you set `withCredentials` to true, we will override your `useCdn`","setting to be false since (cookie-based) credentials are never set on the CDN"]),eU=eL(["Since you haven't set a value for `useCdn`, we will deliver content using our","global, edge-cached API-CDN. If you wish to have content delivered faster, set","`useCdn: false` to use the Live API. Note: You may incur higher costs using the live API."]),ez=eL(["The Sanity client is configured with the `perspective` set to `drafts` or `previewDrafts`, which doesn't support the API-CDN.","The Live API will be used instead. Set `useCdn: false` in your configuration to hide this warning."]),eB=eL(["The `previewDrafts` perspective has been renamed to  `drafts` and will be removed in a future API version"]),eq=eL(["You have configured Sanity client to use a token in the browser. This may cause unintentional security issues.",`See ${eA("js-client-browser-token")} for more information and how to hide this warning.`]),eV=eL(["You have configured Sanity client to use a token, but also provided `withCredentials: true`.","This is no longer supported - only token will be used - remove `withCredentials: true`."]),eH=eL(["Using the Sanity client without specifying an API version is deprecated.",`See ${eA("js-client-api-version")}`]),eW=(eL(["The default export of @sanity/client has been deprecated. Use the named export `createClient` instead."]),{apiHost:"https://api.sanity.io",apiVersion:"1",useProjectHostname:!0,stega:{enabled:!1}}),eY=["localhost","127.0.0.1","0.0.0.0"];function eG(e){if(Array.isArray(e)&&e.length>1&&e.includes("raw"))throw TypeError('Invalid API perspective value: "raw". The raw-perspective can not be combined with other perspectives')}let eK=(e,t)=>{let n,r={...t,...e,stega:{..."boolean"==typeof t.stega?{enabled:t.stega}:t.stega||eW.stega,..."boolean"==typeof e.stega?{enabled:e.stega}:e.stega||{}}};r.apiVersion||eH();let i={...eW,...r},o=i.useProjectHostname&&!i["~experimental_resource"];if(typeof Promise>"u"){let e=eA("js-client-promise-polyfill");throw Error(`No native Promise-implementation found, polyfill needed - see ${e}`)}if(o&&!i.projectId)throw Error("Configuration must contain `projectId`");if(i["~experimental_resource"]&&eN(i),"u">typeof i.perspective&&eG(i.perspective),"encodeSourceMap"in i)throw Error("It looks like you're using options meant for '@sanity/preview-kit/client'. 'encodeSourceMap' is not supported in '@sanity/client'. Did you mean 'stega.enabled'?");if("encodeSourceMapAtPath"in i)throw Error("It looks like you're using options meant for '@sanity/preview-kit/client'. 'encodeSourceMapAtPath' is not supported in '@sanity/client'. Did you mean 'stega.filter'?");if("boolean"!=typeof i.stega.enabled)throw Error(`stega.enabled must be a boolean, received ${i.stega.enabled}`);if(i.stega.enabled&&void 0===i.stega.studioUrl)throw Error("stega.studioUrl must be defined when stega.enabled is true");if(i.stega.enabled&&"string"!=typeof i.stega.studioUrl&&"function"!=typeof i.stega.studioUrl)throw Error(`stega.studioUrl must be a string or a function, received ${i.stega.studioUrl}`);let a="u">typeof window&&window.location&&window.location.hostname,s=a&&(n=window.location.hostname,-1!==eY.indexOf(n)),l=!!i.token;i.withCredentials&&l&&(eV(),i.withCredentials=!1),a&&s&&l&&!0!==i.ignoreBrowserTokenWarning?eq():typeof i.useCdn>"u"&&eU(),o&&(e=>{if(!/^[-a-z0-9]+$/i.test(e))throw Error("`projectId` can only contain only a-z, 0-9 and dashes")})(i.projectId),i.dataset&&eO(i.dataset),"requestTagPrefix"in i&&(i.requestTagPrefix=i.requestTagPrefix?eM(i.requestTagPrefix).replace(/\.+$/,""):void 0),i.apiVersion=`${i.apiVersion}`.replace(/^v/,""),i.isDefaultApi=i.apiHost===eW.apiHost,!0===i.useCdn&&i.withCredentials&&eF(),i.useCdn=!1!==i.useCdn&&!i.withCredentials,function(e){if("1"===e||"X"===e)return;let t=new Date(e);if(!(/^\d{4}-\d{2}-\d{2}$/.test(e)&&t instanceof Date&&t.getTime()>0))throw Error("Invalid API version string, expected `1` or date in format `YYYY-MM-DD`")}(i.apiVersion);let u=i.apiHost.split("://",2),c=u[0],d=u[1],f=i.isDefaultApi?"apicdn.sanity.io":d;return o?(i.url=`${c}://${i.projectId}.${d}/v${i.apiVersion}`,i.cdnUrl=`${c}://${i.projectId}.${f}/v${i.apiVersion}
20`):(i.url=`${i.apiHost}/v${i.apiVersion}`,i.cdnUrl=i.url),i};class eX extends Error{name="ConnectionFailedError"}class eZ extends Error{name="DisconnectError";reason;constructor(e,t,n={}){super(e,n),this.reason=t}}class eQ extends Error{name="ChannelError";data;constructor(e,t){super(e),this.data=t}}class eJ extends Error{name="MessageError";data;constructor(e,t,n={}){super(e,n),this.data=t}}class e0 extends Error{name="MessageParseError"}let e1=["channelError","disconnect"];function e2(e,t){return(0,L.v)(()=>{let t=e();return(0,F.A)(t)?t:(0,U.of)(t)}).pipe((0,z.Z)(e=>{var n,r;return n=e,r=t,new $.c(e=>{let t=r.includes("open"),i=r.includes("reconnect");function o(t){if("data"in t){let[n,r]=e5(t);e.error(n?new e0("Unable to parse EventSource error message",{cause:r}):new eJ((r?.data).message,r));return}n.readyState===n.CLOSED?e.error(new eX("EventSource connection failed")):i&&e.next({type:"reconnect"})}function a(){e.next({type:"open"})}function s(t){let[r,i]=e5(t);if(r)return void e.error(new e0("Unable to parse EventSource message",{cause:r}));if("channelError"===t.type){let t=new URL(n.url).searchParams.get("tag");e.error(new eQ(function(e,t){let n=e.error;return n?eb(n)?ew(n,t):n.description?n.description:"string"==typeof n?n:JSON.stringify(n,null,2):e.message||"Unknown listener error"}(i?.data,t),i.data));return}if("disconnect"===t.type)return void e.error(new eZ(`Server disconnected client: ${i.data?.reason||"unknown error"}`));e.next({type:t.type,id:t.lastEventId,...i.data?{data:i.data}:{}})}n.addEventListener("error",o),t&&n.addEventListener("open",a);let l=[...new Set([...e1,...r])].filter(e=>"error"!==e&&"open"!==e&&"reconnect"!==e);return l.forEach(e=>n.addEventListener(e,s)),()=>{n.removeEventListener("error",o),t&&n.removeEventListener("open",a),l.forEach(e=>n.removeEventListener(e,s)),n.close()}})}))}function e5(e){try{let t="string"==typeof e.data&&JSON.parse(e.data);return[null,{type:e.type,id:e.lastEventId,...!function(e){for(let t in e)return!1;return!0}(t)?{data:t}:{}}]}catch(e){return[e,null]}}function e3(e){if("string"==typeof e)return{id:e};if(Array.isArray(e))return{query:"*[_id in $ids]",params:{ids:e}};if("object"==typeof e&&null!==e&&"query"in e&&"string"==typeof e.query)return"params"in e&&"object"==typeof e.params&&null!==e.params?{query:e.query,params:e.params}:{query:e.query};let t=["* Document ID (<docId>)","* Array of document IDs","* Object containing `query`"].join(`
21`);throw Error(`Unknown selection - must be one of:
22
23${t}`)}class e4{selection;operations;constructor(e,t={}){this.selection=e,this.operations=t}set(e){return this._assign("set",e)}setIfMissing(e){return this._assign("setIfMissing",e)}diffMatchPatch(e){return ej("diffMatchPatch",e),this._assign("diffMatchPatch",e)}unset(e){if(!Array.isArray(e))throw Error("unset(attrs) takes an array of attributes to unset, non-array given");return this.operations=Object.assign({},this.operations,{unset:e}),this}inc(e){return this._assign("inc",e)}dec(e){return this._assign("dec",e)}insert(e,t,n){return((e,t,n)=>{let r="insert(at, selector, items)";if(-1===eC.indexOf(e)){let e=eC.map(e=>`"${e}"`).join(", ");throw Error(`${r} takes an "at"-argument which is one of: ${e}`)}if("string"!=typeof t)throw Error(`${r} takes a "selector"-argument which must be a string`);if(!Array.isArray(n))throw Error(`${r} takes an "items"-argument which must be an array`)})(e,t,n),this._assign("insert",{[e]:t,items:n})}append(e,t){return this.insert("after",`${e}[-1]`,t)}prepend(e,t){return this.insert("before",`${e}[0]`,t)}splice(e,t,n,r){let i=t<0?t-1:t,o=typeof n>"u"||-1===n?-1:Math.max(0,t+n),a=`${e}[${i}:${i<0&&o>=0?"":o}]`;return this.insert("replace",a,r||[])}ifRevisionId(e){return this.operations.ifRevisionID=e,this}serialize(){return{...e3(this.selection),...this.operations}}toJSON(){return this.serialize()}reset(){return this.operations={},this}_assign(e,t,n=!0){return ej(e,t),this.operations=Object.assign({},this.operations,{[e]:Object.assign({},n&&this.operations[e]||{},t)}),this}_set(e,t){return this._assign(e,t,!1)}}class e6 extends e4{#s;constructor(e,t,n){super(e,t),this.#s=n}clone(){return new e6(this.selection,{...this.operations},this.#s)}commit(e){if(!this.#s)throw Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");let t=Object.assign({returnFirst:"string"==typeof this.selection,returnDocuments:!0},e);return this.#s.mutate({patch:this.serialize()},t)}}class e8 extends e4{#s;constructor(e,t,n){super(e,t),this.#s=n}clone(){return new e8(this.selection,{...this.operations},this.#s)}commit(e){if(!this.#s)throw Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");let t=Object.assign({returnFirst:"string"==typeof this.selection,returnDocuments:!0},e);return this.#s.mutate({patch:this.serialize()},t)}}let e7={returnDocuments:!1};class e9{operations;trxId;constructor(e=[],t){this.operations=e,this.trxId=t}create(e){return ej("create",e),this._add({create:e})}createIfNotExists(e){let t="createIfNotExists";return ej(t,e),eR(t,e),this._add({[t]:e})}createOrReplace(e){let t="createOrReplace";return ej(t,e),eR(t,e),this._add({[t]:e})}delete(e){return eD("delete",e),this._add({delete:{id:e}})}transactionId(e){return e?(this.trxId=e,this):this.trxId}serialize(){return[...this.operations]}toJSON(){return this.serialize()}reset(){return this.operations=[],this}_add(e){return this.operations.push(e),this}}class te extends e9{#s;constructor(e,t,n){super(e,n),this.#s=t}clone(){return new te([...this.operations],this.#s,this.trxId)}commit(e){if(!this.#s)throw Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return this.#s.mutate(this.serialize(),Object.assign({transactionId:this.trxId},e7,e||{}))}patch(e,t){let n="function"==typeof t,r="string"!=typeof e&&e instanceof e8,i="object"==typeof e&&("query"in e||"id"in e);if(r)return this._add({patch:e.serialize()});if(n){let n=t(new e8(e,{},this.#s));if(!(n instanceof e8))throw Error("function passed to `patch()` must return the patch");return this._add({patch:n.serialize()})}if(i){let n=new e8(e,t||{},this.#s);return this._add({patch:n.serialize()})}return this._add({patch:{id:e,...t}})}}class tt extends e9{#s;constructor(e,t,n){super(e,n),this.#s=t}clone(){return new tt([...this.operations],this.#s,this.trxId)}commit(e){if(!this.#s)throw Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return this.#s.mutate(this.serialize(),Object.assign({transactionId:this.trxId},e7,e||{}))}patch(e,t){let n="function"==typeof t;if("string"!=typeof e&&e instanceof e6)return this._add({patch:e.serialize()});if(n){let n=t(new e6(e,{},this.#s));if(!(n instanceof e6))throw Error("function passed to `patch()` must return the patch");return this._add({patch:n.serialize()})}return this._add({patch:{id:e,...t}})}}let tn=({query:e,params:t={},options:n={}})=>{let r=new URLSearchParams,{tag:i,includeMutations:o,returnQuery:a,...s}=n;for(let[n,o]of(i&&r.append("tag",i),r.append("query",e),Object.entries(t)))void 0!==o&&r.append(`$${n}`,JSON.stringify(o));for(let[e,t]of Object.entries(s))t&&r.append(e,`${t}`);return!1===a&&r.append("returnQuery","false"),!1===o&&r.append("includeMutations","fal
23se"),`?${r}`},tr=e=>"response"===e.type,ti=e=>e.body;function to(e,t,r,i,o={},a={}){let s="stega"in a?{...r||{},..."boolean"==typeof a.stega?{enabled:a.stega}:a.stega||{}}:r,l=s.enabled?(0,en.Q)(o):o,u=!1===a.filterResponse?e=>e:e=>e.result,{cache:c,next:d,...f}={useAbortSignal:"u">typeof a.signal,resultSourceMap:s.enabled?"withKeyArraySelector":a.resultSourceMap,...a,returnQuery:!1===a.filterResponse&&!1!==a.returnQuery},h=tv(e,t,"query",{query:i,params:l},"u">typeof c||"u">typeof d?{...f,fetch:{cache:c,next:d}}:f);return s.enabled?h.pipe(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return ec.apply(void 0,(0,er.fX)([],(0,er.zs)(e)))}((0,B.H)(n.e(84558).then(n.bind(n,84558)).then(function(e){return e.stegaEncodeSourceMap$1}).then(({stegaEncodeSourceMap:e})=>e))),(0,ee.T)(([e,t])=>{let n=t(e.result,e.resultSourceMap,s);return u({...e,result:n})})):h.pipe((0,ee.T)(u))}function ta(e,t,n,r={}){let i={uri:t_(e,"doc",(()=>{if(!r.releaseId)return n;let e=(0,ef._S)(n);if(!e){if((0,ef.R8)(n))throw Error(`The document ID (\`${n}\`) is a draft, but \`options.releaseId\` is set as \`${r.releaseId}\``);return(0,ef.ct)(n,r.releaseId)}if(e!==r.releaseId)throw Error(`The document ID (\`${n}\`) is already a version of \`${e}\` release, but this does not match the provided \`options.releaseId\` (\`${r.releaseId}\`)`);return n})()),json:!0,tag:r.tag,signal:r.signal};return tk(e,t,i).pipe((0,ed.p)(tr),(0,ee.T)(e=>e.body.documents&&e.body.documents[0]))}function ts(e,t,n,r={}){let i={uri:t_(e,"doc",n.join(",")),json:!0,tag:r.tag,signal:r.signal};return tk(e,t,i).pipe((0,ed.p)(tr),(0,ee.T)(e=>{let t,r,i=(t=e.body.documents||[],r=e=>e._id,t.reduce((e,t)=>(e[r(t)]=t,e),Object.create(null)));return n.map(e=>i[e]||null)}))}function tl(e,t,n,r={}){return tv(e,t,"query",{query:"*[sanity::partOfRelease($releaseId)]",params:{releaseId:n}},r)}function tu(e,t,n,r){return eR("createIfNotExists",n),tb(e,t,n,"createIfNotExists",r)}function tc(e,t,n,r){return eR("createOrReplace",n),tb(e,t,n,"createOrReplace",r)}function td(e,t,n,r,i){return eR("createVersion",n),eI("createVersion",n),ty(e,t,{actionType:"sanity.action.document.version.create",publishedId:r,document:n},i)}function tf(e,t,n,r){return tv(e,t,"mutate",{mutations:[{delete:e3(n)}]},r)}function th(e,t,n,r=!1,i){return ty(e,t,{actionType:"sanity.action.document.version.discard",versionId:n,purge:r},i)}function tp(e,t,n,r){return eR("replaceVersion",n),eI("replaceVersion",n),ty(e,t,{actionType:"sanity.action.document.version.replace",document:n},r)}function tg(e,t,n,r,i){return ty(e,t,{actionType:"sanity.action.document.version.unpublish",versionId:n,publishedId:r},i)}function tm(e,t,n,r){let i;return tv(e,t,"mutate",{mutations:Array.isArray(i=n instanceof e8||n instanceof e6?{patch:n.serialize()}:n instanceof te||n instanceof tt?n.serialize():n)?i:[i],transactionId:r&&r.transactionId||void 0},r)}function ty(e,t,n,r){let i=Array.isArray(n)?n:[n],o=r&&r.transactionId||void 0;return tv(e,t,"actions",{actions:i,transactionId:o,skipCrossDatasetReferenceValidation:r&&r.skipCrossDatasetReferenceValidation||void 0,dryRun:r&&r.dryRun||void 0},r)}function tv(e,t,n,r,i={}){let o="mutate"===n,a="actions"===n,s=o||a?"":tn(r),l=!o&&!a&&s.length<11264,u=l?s:"",c=i.returnFirst,{timeout:d,token:f,tag:h,headers:p,returnQuery:g,lastLiveEventId:m,cacheMode:y}=i,v={method:l?"GET":"POST",uri:t_(e,n,u),json:!0,body:l?void 0:r,query:o&&((e={})=>{let t,n;return{dryRun:e.dryRun,returnIds:!0,returnDocuments:(t=e.returnDocuments,n=!0,!1===t?void 0:typeof t>"u"?n:t),visibility:e.visibility||"sync",autoGenerateArrayKeys:e.autoGenerateArrayKeys,skipCrossDatasetReferenceValidation:e.skipCrossDatasetReferenceValidation}})(i),timeout:d,headers:p,token:f,tag:h,returnQuery:g,perspective:i.perspective,resultSourceMap:i.resultSourceMap,lastLiveEventId:Array.isArray(m)?m[0]:m,cacheMode:y,canUseCdn:"query"===n,signal:i.signal,fetch:i.fetch,useAbortSignal:i.useAbortSignal,useCdn:i.useCdn};return tk(e,t,v).pipe((0,ed.p)(tr),(0,ee.T)(ti),(0,ee.T)(e=>{if(!o)return e;let t=e.results||[];if(i.returnDocuments)return c?t[0]&&t[0].document:t.map(e=>e.document);let n=c?t[0]&&t[0].id:t.map(e=>e.id);return{transactionId:e.transactionId,results:t,[c?"documentId":"documentIds"]:n}}))}function tb(e,t,n,r,i={}){return tv(e,t,"mutate",{mutations:[{[r]:n}]},Object.assign({returnFirst:!0,returnDocuments:!0},i))}let tw=e=>void 0!==e.config().dataset&&void 0!==e.config().projectId||void 0!==e.config()["~experimental_resource"],tx=(e,t)=>tw(e)&&t.startsWith(t_(e,"query"));
23function tk(e,t,n){var r;let i=n.url||n.uri,o=e.config(),a=typeof n.canUseCdn>"u"?["GET","HEAD"].indexOf(n.method||"GET")>=0&&(i.startsWith("/data/")||tx(e,i)||tw(e)&&i.startsWith(t_(e,"mutate"))||tw(e)&&i.startsWith(t_(e,"doc",""))||tw(e)&&i.startsWith(t_(e,"listen"))||tw(e)&&i.startsWith(t_(e,"history",""))):n.canUseCdn,s=(n.useCdn??o.useCdn)&&a,l=n.tag&&o.requestTagPrefix?[o.requestTagPrefix,n.tag].join("."):n.tag||o.requestTagPrefix;if(l&&null!==n.tag&&(n.query={tag:eM(l),...n.query}),["GET","HEAD","POST"].indexOf(n.method||"GET")>=0&&tx(e,i)){let e=n.resultSourceMap??o.resultSourceMap;void 0!==e&&!1!==e&&(n.query={resultSourceMap:e,...n.query});let t=n.perspective||o.perspective;"u">typeof t&&("previewDrafts"===t&&eB(),eG(t),n.query={perspective:Array.isArray(t)?t.join(","):t,...n.query},(Array.isArray(t)&&t.length>0||"previewDrafts"===t||"drafts"===t)&&s&&(s=!1,ez())),n.lastLiveEventId&&(n.query={...n.query,lastLiveEventId:n.lastLiveEventId}),!1===n.returnQuery&&(n.query={returnQuery:"false",...n.query}),s&&"noStale"==n.cacheMode&&(n.query={cacheMode:"noStale",...n.query})}let u=function(e,t={}){let n={};e.headers&&Object.assign(n,e.headers);let r=t.token||e.token;r&&(n.Authorization=`Bearer ${r}`),t.useGlobalApi||e.useProjectHostname||!e.projectId||(n["X-Sanity-Project-ID"]=e.projectId);let i=!!(typeof t.withCredentials>"u"?e.withCredentials:t.withCredentials),o=typeof t.timeout>"u"?e.timeout:t.timeout;return Object.assign({},t,{headers:Object.assign({},n,t.headers||{}),timeout:typeof o>"u"?3e5:o,proxy:t.proxy||e.proxy,json:!0,withCredentials:i,fetch:"object"==typeof t.fetch&&"object"==typeof e.fetch?{...e.fetch,...t.fetch}:t.fetch||e.fetch})}(o,Object.assign({},n,{url:tS(e,i,s)})),c=new $.c(e=>t(u,o.requester).subscribe(e));return n.signal?c.pipe((r=n.signal,e=>new $.c(t=>{let n=()=>t.error(function(e){if(tA)return new DOMException(e?.reason??"The operation was aborted.","AbortError");let t=Error(e?.reason??"The operation was aborted.");return t.name="AbortError",t}(r));if(r&&r.aborted)return void n();let i=e.subscribe(t);return r.addEventListener("abort",n),()=>{r.removeEventListener("abort",n),i.unsubscribe()}}))):c}function tE(e,t,n){return tk(e,t,n).pipe((0,ed.p)(e=>"response"===e.type),(0,ee.T)(e=>e.body))}function t_(e,t,n){let r=e.config();if(r["~experimental_resource"]){eN(r);let e=tT(r),i=void 0!==n?`${t}/${n}`:t;return`${e}/${i}`.replace(/\/($|\?)/,"$1")}let i=eP(r),o=`/${t}/${i}`;return`/data${void 0!==n?`${o}/${n}`:o}`.replace(/\/($|\?)/,"$1")}function tS(e,t,n=!1){let{url:r,cdnUrl:i}=e.config();return`${n?i:r}/${t.replace(/^\//,"")}`}let tA=!!globalThis.DOMException,tT=e=>{if(!e["~experimental_resource"])throw Error("`resource` must be provided to perform resource queries");let{type:t,id:n}=e["~experimental_resource"];switch(t){case"dataset":{let e=n.split(".");if(2!==e.length)throw Error('Dataset ID must be in the format "project.dataset"');return`/projects/${e[0]}/datasets/${e[1]}`}case"canvas":return`/canvases/${n}`;case"media-library":return`/media-libraries/${n}`;case"dashboard":return`/dashboards/${n}`;default:throw Error(`Unsupported resource type: ${t.toString()}`)}};function tC(e,t,n){let r=eP(e.config());return tE(e,t,{method:"POST",uri:`/agent/action/generate/${r}`,body:n})}function tO(e,t,n){let r=eP(e.config());return tE(e,t,{method:"POST",uri:`/agent/action/transform/${r}`,body:n})}function tj(e,t,n){let r=eP(e.config());return tE(e,t,{method:"POST",uri:`/agent/action/translate/${r}`,body:n})}class tD{#s;#l;constructor(e,t){this.#s=e,this.#l=t}generate(e){return tC(this.#s,this.#l,e)}transform(e){return tO(this.#s,this.#l,e)}translate(e){return tj(this.#s,this.#l,e)}}class tR{#s;#l;constructor(e,t){this.#s=e,this.#l=t}generate(e){return(0,q.s)(tC(this.#s,this.#l,e))}transform(e){return(0,q.s)(tO(this.#s,this.#l,e))}translate(e){return(0,q.s)(tj(this.#s,this.#l,e))}prompt(e){return(0,q.s)(function(e,t,n){let r=eP(e.config());return tE(e,t,{method:"POST",uri:`/agent/action/prompt/${r}`,body:n})}(this.#s,this.#l,e))}patch(e){return(0,q.s)(function(e,t,n){let r=eP(e.config());return tE(e,t,{method:"POST",uri:`/agent/action/patch/${r}`,body:n})}(this.#s,this.#l,e))}}class tI{#s;#l;constructor(e,t){this.#s=e,this.#l=t}upload(e,t,n){return tM(this.#s,this.#l,e,t,n)}}class tP{#s;#l;constructor(e,t){this.#s=e,this.#l=t}upload(e,t,n){let r=tM(this.#s,this.#l,e,t,n);return(0,q.s)(r.pipe((0,ed.p)(e=>"response"===e.type),(0,ee.T)(e=>e.body.document)))}}function tM(e,t,n,r,i={}){var o,a;if(-1===eT.indexOf(n))throw Error(`Invalid asset type: ${n}. Must be one of ${eT.join(", ")}`);let s=i.extract||void 0;s&&!s.length&&(s=["none"]);let l=e.config(),u=(o=i,a=r,!(typeof File>"u")&&a instanceof File?Object.assign({filename:!1===o.preserveFilename?void 0:a.name,contentType:a.type},o):o),{tag:c,label:d,title:f,description:h,creditLine:p,filename:g,source:m}=u,y={label:d,title:f,description:h,filename:g,meta:s,creditLine:p};return m&&(y.sourceId=m.id,y.sourceName=m.name,y.sourceUrl=m.url),tk(e,t,{tag:c,method:"POST",timeout:u.timeout||0,uri:function(e,t){let n="image"===t?"images":"files";if(e["~experimental_resource"]){let{type:t,id:r}=e["~experimental_resource"];switch(t){case"dataset":throw Error("Assets are not supported for dataset resources, yet. Configure the client with `{projectId: <projectId>, dataset: <datasetId>}` instead.");case"canvas":return`/canvases/${r}/assets/${n}`;case"media-library":return`/media-libraries/${r}/upload`;case"dashboard":return`/dashboards/${r}/assets/${n}`;default:throw Error(`Unsupported resource type: ${t.toString()}`)}}let r=eP(e);return`assets/${n}/${r}`}(l,n),headers:u.contentType?{"Content-Type":u.contentType}:{},query:y,body:r})}let tN=(0,L.v)(()=>n.e(15424).then(n.t.bind(n,15424,19))).pipe((0,ee.T)(({default:e})=>e),(0,V.t)(1));function t$(){return function(e){return e.pipe((0,H.W)((e,t)=>e instanceof eX?(0,W.x)((0,U.of)({type:"reconnect"}),(0,Y.O)(1e3).pipe((0,z.Z)(()=>t))):(0,G.$)(()=>e)))}}let tL=["includePreviousRevision","includeResult","includeMutations","includeAllVersions","visibility","effectFormat","tag"],tF={includeResult:!0};function tU(e,t,n={}){let{url:r,token:i,withCredentials:o,requestTagPrefix:a,headers:s}=this.config(),l=n.tag&&a?[a,n.tag].join("."):n.tag,u={...Object.keys(tF).concat(Object.keys(n)).reduce((e,t)=>
23(e[t]=typeof n[t]>"u"?tF[t]:n[t],e),{}),tag:l},c=tn({query:e,params:t,options:{tag:l,...tL.reduce((e,t)=>(typeof u[t]>"u"||(e[t]=u[t]),e),{})}}),d=`${r}${t_(this,"listen",c)}`;if(d.length>14800)return(0,G.$)(()=>Error("Query too large for listener"));let f=u.events?u.events:["mutation"],h={};return o&&(h.withCredentials=!0),(i||s)&&(h.headers={},i&&(h.headers.Authorization=`Bearer ${i}`),s&&Object.assign(h.headers,s)),e2(()=>(typeof EventSource>"u"||h.headers?tN:(0,U.of)(EventSource)).pipe((0,ee.T)(e=>new e(d,h))),f).pipe(t$(),(0,ed.p)(e=>f.includes(e.type)),(0,ee.T)(e=>({type:e.type,..."data"in e?e.data:{}})))}let tz="2021-03-25";class tB{#s;constructor(e){this.#s=e}events({includeDrafts:e=!1,tag:t}={}){var n,r,i,o;e$("live",this.#s.config());let{projectId:a,apiVersion:s,token:l,withCredentials:u,requestTagPrefix:c,headers:d}=this.#s.config(),f=s.replace(/^v/,"");if("X"!==f&&f<tz)throw Error(`The live events API requires API version ${tz} or later. The current API version is ${f}. Please update your API version to use this feature.`);if(e&&!l&&!u)throw Error("The live events API requires a token or withCredentials when 'includeDrafts: true'. Please update your client configuration. The token should have the lowest possible access role.");let h=t_(this.#s,"live/events"),p=new URL(this.#s.getUrl(h,!1)),g=t&&c?[c,t].join("."):t;g&&p.searchParams.set("tag",g),e&&p.searchParams.set("includeDrafts","true");let m={};e&&u&&(m.withCredentials=!0),(e&&l||d)&&(m.headers={},e&&l&&(m.headers.Authorization=`Bearer ${l}`),d&&Object.assign(m.headers,d));let y=`${p.href}::${JSON.stringify(m)}`,v=tq.get(y);if(v)return v;let b=e2(()=>(typeof EventSource>"u"||m.headers?tN:(0,U.of)(EventSource)).pipe((0,ee.T)(e=>new e(p.href,m))),["message","restart","welcome","reconnect","goaway"]).pipe(t$(),(0,ee.T)(e=>{if("message"===e.type){let{data:t,...n}=e;return{...n,tags:t.tags}}return e})),w=(r=p,i={method:"OPTIONS",mode:"cors",credentials:m.withCredentials?"include":"omit",headers:m.headers},new $.c(e=>{let t=new AbortController,n=t.signal;return fetch(r,{...i,signal:t.signal}).then(t=>{e.next(t),e.complete()},t=>{n.aborted||e.error(t)}),()=>t.abort()})).pipe((0,z.Z)(()=>J.w),(0,H.W)(()=>{throw new ek({projectId:a})})),x=(0,W.x)(w,b).pipe((0,X.j)(()=>tq.delete(y)),(o="function"==typeof(n={predicate:e=>"welcome"===e.type})?{predicate:n,...void 0}:n,e=>{let t,n=!1,{predicate:r,...i}=o,a=e.pipe((0,K.M)(e=>{o.predicate(e)&&(n=!0,t=e)}),(0,X.j)(()=>{n=!1,t=void 0}),(0,Z.u)(i)),s=new $.c(e=>{n&&e.next(t),e.complete()});return(0,Q.h)(a,s)}));return tq.set(y,x),x}}let tq=new Map;class tV{#s;#l;constructor(e,t){this.#s=e,this.#l=t}create(e,t){return tW(this.#s,this.#l,"PUT",e,t)}edit(e,t){return tW(this.#s,this.#l,"PATCH",e,t)}delete(e){return tW(this.#s,this.#l,"DELETE",e)}list(){return tE(this.#s,this.#l,{uri:"/datasets",tag:null})}}class tH{#s;#l;constructor(e,t){this.#s=e,this.#l=t}create(e,t){return e$("dataset",this.#s.config()),(0,q.s)(tW(this.#s,this.#l,"PUT",e,t))}edit(e,t){return e$("dataset",this.#s.config()),(0,q.s)(tW(this.#s,this.#l,"PATCH",e,t))}delete(e){return e$("dataset",this.#s.config()),(0,q.s)(tW(this.#s,this.#l,"DELETE",e))}list(){return e$("dataset",this.#s.config()),(0,q.s)(tE(this.#s,this.#l,{uri:"/datasets",tag:null}))}}function tW(e,t,n,r,i){return e$("dataset",e.config()),eO(r),tE(e,t,{method:n,uri:`/datasets/${r}`,body:i,tag:null})}class tY{#s;#l;constructor(e,t){this.#s=e,this.#l=t}list(e){e$("projects",this.#s.config());let t=e?.includeMembers===!1?"/projects?includeMembers=false":"/projects";return tE(this.#s,this.#l,{uri:t})}getById(e){return e$("projects",this.#s.config()),tE(this.#s,this.#l,{uri:`/projects/${e}`})}}class tG{#s;#l;constructor(e,t){this.#s=e,this.#l=t}list(e){e$("projects",this.#s.config());let t=e?.includeMembers===!1?"/projects?includeMembers=false":"/projects";return(0,q.s)(tE(this.#s,this.#l,{uri:t}))}getById(e){return e$("projects",this.#s.config()),(0,q.s)(tE(this.#s,this.#l,{uri:`/projects/${e}`}))}}let tK=(0,eh.d_)("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",8),tX=(e,t)=>t?(0,ef.ct)(e,t):(0,ef.T4)(e);function tZ(e,{releaseId:t,publishedId:n,document:r}
23){if(n&&r._id){let e=tX(n,t);return((e,t)=>{if(t._id&&t._id!==e)throw Error(`The provided document ID (\`${t._id}\`) does not match the generated version ID (\`${e}\`)`)})(e,r),e}if(r._id){let n=(0,ef.R8)(r._id),i=(0,ef.A_)(r._id);if(!n&&!i)throw Error(`\`${e}()\` requires a document with an \`_id\` that is a version or draft ID`);if(t){if(n)throw Error(`\`${e}()\` was called with a document ID (\`${r._id}\`) that is a draft ID, but a release ID (\`${t}\`) was also provided.`);let i=(0,ef._S)(r._id);if(i!==t)throw Error(`\`${e}()\` was called with a document ID (\`${r._id}\`) that is a version ID, but the release ID (\`${t}\`) does not match the document's version ID (\`${i}\`).`)}return r._id}if(n)return tX(n,t);throw Error(`\`${e}()\` requires either a publishedId or a document with an \`_id\``)}let tQ=(e,t)=>{let[n,r,i]=((e,t)=>{if("object"==typeof e&&null!==e&&("releaseId"in e||"metadata"in e)){let{releaseId:n=tK(),metadata:r={}}=e;return[n,r,t]}return[tK(),{},e]})(e,t);return{action:{actionType:"sanity.action.release.create",releaseId:n,metadata:{...r,releaseType:r.releaseType||"undecided"}},options:i}};class tJ{#s;#l;constructor(e,t){this.#s=e,this.#l=t}get({releaseId:e},t){return ta(this.#s,this.#l,`_.releases.${e}`,t)}create(e,t){let{action:n,options:r}=tQ(e,t),{releaseId:i,metadata:o}=n;return ty(this.#s,this.#l,n,r).pipe((0,ee.T)(e=>({...e,releaseId:i,metadata:o})))}edit({releaseId:e,patch:t},n){return ty(this.#s,this.#l,{actionType:"sanity.action.release.edit",releaseId:e,patch:t},n)}publish({releaseId:e},t){return ty(this.#s,this.#l,{actionType:"sanity.action.release.publish",releaseId:e},t)}archive({releaseId:e},t){return ty(this.#s,this.#l,{actionType:"sanity.action.release.archive",releaseId:e},t)}unarchive({releaseId:e},t){return ty(this.#s,this.#l,{actionType:"sanity.action.release.unarchive",releaseId:e},t)}schedule({releaseId:e,publishAt:t},n){return ty(this.#s,this.#l,{actionType:"sanity.action.release.schedule",releaseId:e,publishAt:t},n)}unschedule({releaseId:e},t){return ty(this.#s,this.#l,{actionType:"sanity.action.release.unschedule",releaseId:e},t)}delete({releaseId:e},t){return ty(this.#s,this.#l,{actionType:"sanity.action.release.delete",releaseId:e},t)}fetchDocuments({releaseId:e},t){return tl(this.#s,this.#l,e,t)}}class t0{#s;#l;constructor(e,t){this.#s=e,this.#l=t}get({releaseId:e},t){return(0,q.s)(ta(this.#s,this.#l,`_.releases.${e}`,t))}async create(e,t){let{action:n,options:r}=tQ(e,t),{releaseId:i,metadata:o}=n;return{...await (0,q.s)(ty(this.#s,this.#l,n,r)),releaseId:i,metadata:o}}edit({releaseId:e,patch:t},n){return(0,q.s)(ty(this.#s,this.#l,{actionType:"sanity.action.release.edit",releaseId:e,patch:t},n))}publish({releaseId:e},t){return(0,q.s)(ty(this.#s,this.#l,{actionType:"sanity.action.release.publish",releaseId:e},t))}archive({releaseId:e},t){return(0,q.s)(ty(this.#s,this.#l,{actionType:"sanity.action.release.archive",releaseId:e},t))}unarchive({releaseId:e},t){return(0,q.s)(ty(this.#s,this.#l,{actionType:"sanity.action.release.unarchive",releaseId:e},t))}schedule({releaseId:e,publishAt:t},n){return(0,q.s)(ty(this.#s,this.#l,{actionType:"sanity.action.release.schedule",releaseId:e,publishAt:t},n))}unschedule({releaseId:e},t){return(0,q.s)(ty(this.#s,this.#l,{actionType:"sanity.action.release.unschedule",releaseId:e},t))}delete({releaseId:e},t){return(0,q.s)(ty(this.#s,this.#l,{actionType:"sanity.action.release.delete",releaseId:e},t))}fetchDocuments({releaseId:e},t){return(0,q.s)(tl(this.#s,this.#l,e,t))}}class t1{#s;#l;constructor(e,t){this.#s=e,this.#l=t}getById(e){return tE(this.#s,this.#l,{uri:`/users/${e}`})}}class t2{#s;#l;constructor(e,t){this.#s=e,this.#l=t}getById(e){return(0,q.s)(tE(this.#s,this.#l,{uri:`/users/${e}`}))}}class t5{assets;datasets;live;projects;users;agent;releases;#u;#l;listen=tU;constructor(e,t=eW){this.config(t),this.#l=e,this.assets=new tI(this,this.#l),this.datasets=new tV(this,this.#l),this.live=new tB(this),this.projects=new tY(this,this.#l),this.users=new t1(this,this.#l),this.agent={action:new tD(this,this.#l)},this.releases=new tJ(this,this.#l)}clone(){return new t5(this.#l,this.config())}config(e){if(void 0===e)return{...this.#u};if(this.#u&&!1===this.#u.allowReconfigure)throw Error("Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client");return this.#u=eK(e,this.#u||{}),this}withConfig(e){let t=this.config();return new t5(this.#l,{...t,...e,stega:{...t.stega||{},..."boolean"==typeof e?.stega?{enabled:e.stega}:e?.stega||{}}})}
23fetch(e,t,n){return to(this,this.#l,this.#u.stega,e,t,n)}getDocument(e,t){return ta(this,this.#l,e,t)}getDocuments(e,t){return ts(this,this.#l,e,t)}create(e,t){return tb(this,this.#l,e,"create",t)}createIfNotExists(e,t){return tu(this,this.#l,e,t)}createOrReplace(e,t){return tc(this,this.#l,e,t)}createVersion({document:e,publishedId:t,releaseId:n},r){let i=tZ("createVersion",{document:e,publishedId:t,releaseId:n}),o={...e,_id:i},a=t||(0,ef.IM)(e._id);return td(this,this.#l,o,a,r)}delete(e,t){return tf(this,this.#l,e,t)}discardVersion({releaseId:e,publishedId:t},n,r){let i=tX(t,e);return th(this,this.#l,i,n,r)}replaceVersion({document:e,publishedId:t,releaseId:n},r){let i=tZ("replaceVersion",{document:e,publishedId:t,releaseId:n}),o={...e,_id:i};return tp(this,this.#l,o,r)}unpublishVersion({releaseId:e,publishedId:t},n){let r=(0,ef.ct)(t,e);return tg(this,this.#l,r,t,n)}mutate(e,t){return tm(this,this.#l,e,t)}patch(e,t){return new e6(e,t,this)}transaction(e){return new tt(e,this)}action(e,t){return ty(this,this.#l,e,t)}request(e){return tE(this,this.#l,e)}getUrl(e,t){return tS(this,e,t)}getDataUrl(e,t){return t_(this,e,t)}}class t3{assets;datasets;live;projects;users;agent;releases;observable;#u;#l;listen=tU;constructor(e,t=eW){this.config(t),this.#l=e,this.assets=new tP(this,this.#l),this.datasets=new tH(this,this.#l),this.live=new tB(this),this.projects=new tG(this,this.#l),this.users=new t2(this,this.#l),this.agent={action:new tR(this,this.#l)},this.releases=new t0(this,this.#l),this.observable=new t5(e,t)}clone(){return new t3(this.#l,this.config())}config(e){if(void 0===e)return{...this.#u};if(this.#u&&!1===this.#u.allowReconfigure)throw Error("Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client");return this.observable&&this.observable.config(e),this.#u=eK(e,this.#u||{}),this}withConfig(e){let t=this.config();return new t3(this.#l,{...t,...e,stega:{...t.stega||{},..."boolean"==typeof e?.stega?{enabled:e.stega}:e?.stega||{}}})}fetch(e,t,n){return(0,q.s)(to(this,this.#l,this.#u.stega,e,t,n))}getDocument(e,t){return(0,q.s)(ta(this,this.#l,e,t))}getDocuments(e,t){return(0,q.s)(ts(this,this.#l,e,t))}create(e,t){return(0,q.s)(tb(this,this.#l,e,"create",t))}createIfNotExists(e,t){return(0,q.s)(tu(this,this.#l,e,t))}createOrReplace(e,t){return(0,q.s)(tc(this,this.#l,e,t))}createVersion({document:e,publishedId:t,releaseId:n},r){let i=tZ("createVersion",{document:e,publishedId:t,releaseId:n}),o={...e,_id:i},a=t||(0,ef.IM)(e._id);return(0,et._)(td(this,this.#l,o,a,r))}delete(e,t){return(0,q.s)(tf(this,this.#l,e,t))}discardVersion({releaseId:e,publishedId:t},n,r){let i=tX(t,e);return(0,q.s)(th(this,this.#l,i,n,r))}replaceVersion({document:e,publishedId:t,releaseId:n},r){let i=tZ("replaceVersion",{document:e,publishedId:t,releaseId:n}),o={...e,_id:i};return(0,et._)(tp(this,this.#l,o,r))}unpublishVersion({releaseId:e,publishedId:t},n){let r=(0,ef.ct)(t,e);return(0,q.s)(tg(this,this.#l,r,t,n))}mutate(e,t){return(0,q.s)(tm(this,this.#l,e,t))}patch(e,t){return new e8(e,t,this)}transaction(e){return new te(e,this)}action(e,t){return(0,q.s)(ty(this,this.#l,e,t))}request(e){return(0,q.s)(tE(this,this.#l,e))}dataRequest(e,t,n){return(0,q.s)(tv(this,this.#l,e,t,n))}getUrl(e,t){return tS(this,e,t)}getDataUrl(e,t){return t_(this,e,t)}}let t4=function(e,t){return{requester:e_(e),createClient:n=>{let r=e_(e);return new t((e,t)=>(t||r)({maxRedirects:0,maxRetries:n.maxRetries,retryDelay:n.retryDelay,...e}),n)}}}([],t3),t6=(t4.requester,t4.createClient)},21568:(e,t,n)=>{var r=n(70799);e.exports=r&&new r},21803:(e,t,n)=>{"use strict";n.d(t,{DT:()=>o,mj:()=>f}),n(87489);var r=n(88837),i=n(12189);function o(e,t){let n=(0,r.t)(t);if(!n.includes(e.type)){let t=1===n.length?`type "${n[0]}"`:`one of types "${n.join('", "')}"`;throw Error(`Expected event ${JSON.stringify(e)} to have ${t}`)}}let a=new WeakMap;function s(e,t,n){let r=a.get(e);return r?t in r||(r[t]=n()):(r={[t]:n()},a.set(e,r)),r[t]}let l={},u=e=>"string"==typeof e?{type:e}:"function"==typeof e?"resolve"in e?{type:e.type}:{type:e.name}:e;class c{constructor(e,t){if(this.config=e,this.key=void 0,this.id=void 0,this.type=void 0,this.path=void 0,this.states=void 0,this.history=void 0,this.entry=void 0,this.exit=void 0,this.parent=void 0,this.machine=void 0,this.meta=void 0,this.output=void 0,this.order=-1,this.description=void 0,this.tags=[],this.transitions=void 0,this.always=void 0,this.parent=t._parent,this.key=t._key,this.machine=t._machine,this.path=this.parent?this.parent.path.concat(this.key):[],this.id=this.config.id||[this.machine.id,...this.path].join(r.S),this.type=this.config.type||(this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.description=this.config.description,this.order=this.machine.idMap.size,this.machine.idMap.set(this.id,this),this.states=this.config.states?(0,r.m)(this.config.states,(e,t)=>new c(e,{_parent:this,_key:t,_machine:this.machine})):l,"compound"===this.type&&!this.config.initial)throw Error(`No initial state specified for c
23ompound state node "#${this.id}". Try adding { initial: "${Object.keys(this.states)[0]}" } to the state config.`);this.history=!0===this.config.history?"shallow":this.config.history||!1,this.entry=(0,r.t)(this.config.entry).slice(),this.exit=(0,r.t)(this.config.exit).slice(),this.meta=this.config.meta,this.output="final"!==this.type&&this.parent?void 0:this.config.output,this.tags=(0,r.t)(e.tags).slice()}_initialize(){this.transitions=(0,r.f)(this),this.config.always&&(this.always=(0,r.a)(this.config.always).map(e=>(0,r.b)(this,r.N,e))),Object.keys(this.states).forEach(e=>{this.states[e]._initialize()})}get definition(){return{id:this.id,key:this.key,version:this.machine.version,type:this.type,initial:this.initial?{target:this.initial.target,source:this,actions:this.initial.actions.map(u),eventType:null,reenter:!1,toJSON:()=>({target:this.initial.target.map(e=>`#${e.id}`),source:`#${this.id}`,actions:this.initial.actions.map(u),eventType:null})}:void 0,history:this.history,states:(0,r.m)(this.states,e=>e.definition),on:this.on,transitions:[...this.transitions.values()].flat().map(e=>({...e,actions:e.actions.map(u)})),entry:this.entry.map(u),exit:this.exit.map(u),meta:this.meta,order:this.order||-1,output:this.output,invoke:this.invoke,description:this.description,tags:this.tags}}toJSON(){return this.definition}get invoke(){return s(this,"invoke",()=>(0,r.t)(this.config.invoke).map((e,t)=>{let{src:n,systemId:i}=e,o=e.id??(0,r.c)(this.id,t),a="string"==typeof n?n:`xstate.invoke.${(0,r.c)(this.id,t)}`;return{...e,src:a,id:o,systemId:i,toJSON(){let{onDone:t,onError:n,...r}=e;return{...r,type:"xstate.invoke",src:a,id:o}}}}))}get on(){return s(this,"on",()=>[...this.transitions].flatMap(([e,t])=>t.map(t=>[e,t])).reduce((e,[t,n])=>(e[t]=e[t]||[],e[t].push(n),e),{}))}get after(){return s(this,"delayedTransitions",()=>(0,r.g)(this))}get initial(){return s(this,"initial",()=>(0,r.d)(this,this.config.initial))}next(e,t){let n,i=t.type,o=[];for(let a of s(this,`candidates-${i}`,()=>(0,r.h)(this,i))){let{guard:s}=a,l=e.context,u=!1;try{u=!s||(0,r.e)(s,l,t,e)}catch(t){let e="string"==typeof s?s:"object"==typeof s?s.type:void 0;throw Error(`Unable to evaluate guard ${e?`'${e}' `:""}in transition for event '${i}' in state node '${this.id}':
24${t.message}`)}if(u){o.push(...a.actions),n=a;break}}return n?[n]:void 0}get events(){return s(this,"events",()=>{let{states:e}=this,t=new Set(this.ownEvents);if(e)for(let n of Object.keys(e)){let r=e[n];if(r.states)for(let e of r.events)t.add(`${e}`)}return Array.from(t)})}get ownEvents(){return Array.from(new Set([...this.transitions.keys()].filter(e=>this.transitions.get(e).some(e=>!(!e.target&&!e.actions.length&&!e.reenter)))))}}class d{constructor(e,t){this.config=e,this.version=void 0,this.schemas=void 0,this.implementations=void 0,this.__xstatenode=!0,this.idMap=new Map,this.root=void 0,this.id=void 0,this.states=void 0,this.events=void 0,this.id=e.id||"(machine)",this.implementations={actors:t?.actors??{},actions:t?.actions??{},delays:t?.delays??{},guards:t?.guards??{}},this.version=this.config.version,this.schemas=this.config.schemas,this.transition=this.transition.bind(this),this.getInitialSnapshot=this.getInitialSnapshot.bind(this),this.getPersistedSnapshot=this.getPersistedSnapshot.bind(this),this.restoreSnapshot=this.restoreSnapshot.bind(this),this.start=this.start.bind(this),this.root=new c(e,{_key:this.id,_machine:this}),this.root._initialize(),this.states=this.root.states,this.events=this.root.events}provide(e){let{actions:t,guards:n,actors:r,delays:i}=this.implementations;return new d(this.config,{actions:{...t,...e.actions},guards:{...n,...e.guards},actors:{...r,...e.actors},delays:{...i,...e.delays}})}resolveState(e){let t=(0,r.r)(this.root,e.value),n=(0,r.i)((0,r.j)(this.root,t));return(0,r.k)({_nodes:[...n],context:e.context||{},children:{},status:(0,r.l)(n,this.root)?"done":e.status||"active",output:e.output,error:e.error,historyValue:e.historyValue},this)}transition(e,t,n){return(0,r.n)(e,t,n,[]).snapshot}microstep(e,t,n){return(0,r.n)(e,t,n,[]).microstates}getTransitionData(e,t){return(0,r.o)(this.root,e.value,e,t)||[]}getPreInitialState(e,t,n){let{context:o}=this.config,a=(0,r.k)({context:"function"!=typeof o&&o?o:{},_nodes:[this.root],children:{},status:"active"},this);return"function"==typeof o?(0,r.p)(a,t,e,[(0,i.a)(({spawn:e,event:t,self:n})=>o({spawn:e,input:t.input,self:n}))],n,void 0):a}getInitialSnapshot(e,t){let n=(0,r.q)(t),i=[],o=this.getPreInitialState(e,n,i),a=(0,r.s)([{target:[...(0,r.u)(this.root)],source:this.root,reenter
24:!0,actions:[],eventType:null,toJSON:null}],o,e,n,!0,i),{snapshot:s}=(0,r.n)(a,n,e,i);return s}start(e){Object.values(e.children).forEach(e=>{"active"===e.getSnapshot().status&&e.start()})}getStateNodeById(e){let t=(0,r.v)(e),n=t.slice(1),i=(0,r.w)(t[0])?t[0].slice(1):t[0],o=this.idMap.get(i);if(!o)throw Error(`Child state node '#${i}' does not exist on machine '${this.id}'`);return(0,r.x)(o,n)}get definition(){return this.root.definition}toJSON(){return this.definition}getPersistedSnapshot(e,t){return(0,r.y)(e,t)}restoreSnapshot(e,t){let n={},i=e.children;Object.keys(i).forEach(e=>{let o=i[e],a=o.snapshot,s=o.src,l="string"==typeof s?(0,r.z)(this,s):s;if(!l)return;let u=(0,r.A)(l,{id:e,parent:t.self,syncSnapshot:o.syncSnapshot,snapshot:a,src:s,systemId:o.systemId});n[e]=u});let o=function(e,t){if(!t||"object"!=typeof t)return{};let n={};for(let r in t)for(let i of t[r]){let t=function(e,t){if(t instanceof c)return t;try{return e.machine.getStateNodeById(t.id)}catch{}}(e,i);t&&(n[r]??=[],n[r].push(t))}return n}(this.root,e.historyValue),a=(0,r.k)({...e,children:n,_nodes:Array.from((0,r.i)((0,r.j)(this.root,e.value))),historyValue:o},this),s=new Set;return!function e(t,n){if(!s.has(t))for(let i in s.add(t),t){let o=t[i];if(o&&"object"==typeof o){if("xstate$$type"in o&&o.xstate$$type===r.$){t[i]=n[o.id];continue}e(o,n)}}}(a.context,n),a}}function f({schemas:e,actors:t,actions:n,guards:r,delays:i}){return{createMachine:o=>new d({...o,schemas:e},{actors:t,actions:n,guards:r,delays:i})}}},21853:e=>{e.exports=function(){return!1}},22147:(e,t,n)=>{var r=n(65387),i=n(14700),o=n(63114),a=n(61195);e.exports=function(e,t,n){return(e=o(e),void 0===(t=n?void 0:t))?i(e)?a(e):r(e):e.match(t)||[]}},22217:(e,t,n)=>{"use strict";var r=n(44316).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(83316));t.default={date:(0,i.default)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,i.default)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,i.default)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},e.exports=t.default},22219:(e,t,n)=>{"use strict";n.d(t,{Kc:()=>a,T_:()=>o,p8:()=>s});let r={capture:!0};function i(e,t,n){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function o(e){if("onpagehide"in window)return i(window,"pagehide",e);let t=i(window,"unload",e),n=i(window,"unload",e);return()=>{t(),n()}}function a(e){return i(document,"visibilitychange",()=>{"hidden"===document.visibilityState&&e()})}let s=function(){let e={updateUserProperties(){},trace:function(t){return{start(){},log(e){},complete(){},newContext:t=>e,error(e){},await:e=>e}},log:function(e,t){}};return e}()},22230:(e,t,n)=>{"use strict";n.d(t,{S:()=>eB});var r=n(76079),i=n(63664),o=n(72254),a=n(22914),s=n(31458),l=n(66244),u=n(70763),c=n(690),d=n(44125),f=n(12878),h=n(23851),p=n(9060);let g=["jsonType","type","name","title","description","options","fieldsets","validation","readOnly","hidden","components","diffComponent","initialValue","deprecated"],m="_internal_ownProps";function y(e,t,n,r={}){return Object.defineProperty(e,t,{configurable:!0,enumerable:!1!==r.enumerable,get(){let i=n();return Object.defineProperty(e,t,{value:i,writable:!!r.writable,configurable:!1}),i}}),e}function v(e,t,n){Object.defineProperty(e,t,{enumerable:!1,writable:!1,configurable:!1,value:n})}let b=[...g],w={name:"any",type:null,jsonType:"any"},x=[...g],k={name:"array",type:null,jsonType:"array",of:[]},E={maxEntries:2,maxDepth:2,maxBreadth:2,ignoreKeys:["_id","_type","_key","_ref"]};function _(e){return"array"===e.type&&e.of&&e.of.some(e=>"block"===e.type)||!1}let S=["title","name","label","heading","header","caption"],A=["description",...S];function T(e,t){return o(e.to||[]).some(e=>e.type===t)}function C(e){return T(e,"sanity.imageAsset")}function O(e){return T(e,"sanity.fileAsset")}function j(e){return function(){return e.options&&e.options.preview&&console.warn(`Heads up! The preview config is no longer defined on "options", but instead on the type/field itself.
25Please move {options: {preview: ...}} to {..., preview: ...} on the type/field definition of "${e.name}".
26`),function(e){let t=e.preview||(e.options||{}).preview;t&&"fields"in t&&console.warn(`Heads up! "preview.fields" should be renamed to "preview.select". Please update the preview config for "${e.name}".
27`)}(e),function(e){if(!e)return e;let t=e.select||e.fields||{};return Array.isArray(t)?{...i(e,["prepare","component"]),select:t.reduce((e,t)=>
27(e[t]=t,e),{})}:{...i(e,["prepare","component"]),select:t}}(e.preview||(e.options||{}).preview)||function(e){let t={fields:[],...e},n=t.fields.filter(e=>"string"===e.type).map(e=>e.name),r=t.fields.filter(_).map(e=>e.name),o=S.find(e=>n.includes(e)||r.includes(e)),l=A.find(e=>e!==o&&(n.includes(e)||r.includes(e)));o||(o=n[0]||r[0],l=n[1]||r[1]);let u=t.fields.find(e=>"image"===e.type),c=function(e){let t=e.fields||[],n=t.find(C);if(n)return n.name;let r=t.find(e=>(e.fields||[]).some(C));return r?`${r.name}.asset`:void 0}(t);if(!o){let e=function(e){let t=e.fields||[],n=t.find(O);if(n)return n.name;let r=t.find(e=>(e.fields||[]).some(O));return r?`${r.name}.asset`:void 0}(t);e&&(o=`${e}.originalFilename`),c&&(o=`${c}.originalFilename`)}if(!o&&!c){let e=t.fields.map(e=>e.name);return{select:e.reduce((e,t)=>(e[t]=t,e),{}),prepare:t=>({title:function(e,t={}){return function e(t,n,r){if(r>n.maxDepth)return"...";if(Array.isArray(t)){if(0===t.length)return"[empty]";let i=Math.max(t.length-n.maxBreadth),o=t.slice(0,n.maxBreadth).map((t,i)=>e(t,n,r+1)).concat(i>0?`\u2026+${i}`:[]).join(", ");return 0===r?o:`[${o}]`}if("object"==typeof t&&null!==t){let o=Object.keys(t).filter(e=>!n.ignoreKeys.includes(e)&&"u">typeof t[e]);if(function(e){for(let t in e)if(e.hasOwnProperty(t))return!1;return!0}(i(t,o)))return"{empty}";let a=o.slice(0,n.maxBreadth).map(i=>`${i}: ${e(t[i],n,r+1)}`).join(", ");return 0===r?a:`{${a}}`}let o=String(t);return""===o?'""':o}(e,{maxDepth:"maxDepth"in t?t.maxDepth:2,maxBreadth:"maxBreadth"in t?t.max
27Breadth:2,ignoreKeys:"ignoreKeys"in t?t.ignoreKeys:[]},0)}(i(t,e),E)})}}return{select:s({title:o,description:l,media:u?u.name:c},a)}}(e)}}let D={type:"text",name:"text",title:"Text"},R={name:"marks",type:"array",of:[{type:"string"}],title:"Marks"},I={bullet:{title:"Bulleted list",value:"bullet",i18nTitleKey:"inputs.portable-text.list-type.bullet"},numbered:{title:"Numbered list",value:"number",i18nTitleKey:"inputs.portable-text.list-type.number"}},P=[I.bullet,I.numbered],M={normal:{title:"Normal",value:"normal",i18nTitleKey:"inputs.portable-text.style.normal"},h1:{title:"Heading 1",value:"h1",i18nTitleKey:"inputs.portable-text.style.h1"},h2:{title:"Heading 2",value:"h2",i18nTitleKey:"inputs.portable-text.style.h2"},h3:{title:"Heading 3",value:"h3",i18nTitleKey:"inputs.portable-text.style.h3"},h4:{title:"Heading 4",value:"h4",i18nTitleKey:"inputs.portable-text.style.h4"},h5:{title:"Heading 5",value:"h5",i18nTitleKey:"inputs.portable-text.style.h5"},h6:{title:"Heading 6",value:"h6",i18nTitleKey:"inputs.portable-text.style.h6"},blockquote:{title:"Quote",value:"blockquote",i18nTitleKey:"inputs.portable-text.style.quote"}},N=[M.normal,M.h1,M.h2,M.h3,M.h4,M.h5,M.h6,M.blockquote],$={strong:{title:"Strong",value:"strong",i18nTitleKey:"inputs.portable-text.decorator.strong"},em:{title:"Italic",value:"em",i18nTitleKey:"inputs.portable-text.decorator.emphasis"},code:{title:"Code",value:"code",i18nTitleKey:"inputs.portable-text.decorator.code"},underline:{title:"Underline",value:"underline",i18nTitleKey:"inputs.portable-text.decorator.underline"},strikeThrough:{title:"Strike",value:"strike-through",i18nTitleKey:"inputs.portable-text.decorator.strike-through"}},L=[$.strong,$.em,$.code,$.underline,$.strikeThrough],F=["type","name","title","jsonType","description","options","fieldsets","icon"],U={name:"block",title:"Block",type:null,jsonType:"object"},z={},B=[{type:"object",name:"link",title:"Link",i18nTitleKey:"inputs.portable-text.annotation.link",options:{modal:{type:"popover"}},fields:[{name:"href",type:"url",title:"Link",description:"A valid web, email, phone, or relative link.",validation:e=>e.uri({scheme:["http","https","tel","mailto"],allowRelative:!0})}]}],q=["type","name","title","jsonType","description","options","fieldsets","icon"],V={name:"span",title:"Span",type:null,jsonType:"object"},H={name:"marks",title:"Marks",type:"array",of:[{type:"string"}]},W={name:"text",title:"Text",type:"string"},Y={};var G={prepare:e=>({title:String(e)})};let K=[...g],X={name:"boolean",title:"Boolean",type:null,jsonType:"boolean"},Z=[{name:"_ref",title:"Referenced document ID",type:"string"},{name:"_weak",title:"Weak reference marker",type:"boolean"},{name:"_dataset",title:"Target dataset",type:"string"},{name:"_projectId",title:"Target project ID",type:"string",hidden:!0}],Q=[...g],J={name:"crossDatasetReference",type:null,jsonType:"object"},ee=[...g],et={name:"date",title:"Datetime",type:null,jsonType:"string"},en=[...g],er={name:"datetime",title:"Datetime",type:null,jsonType:"string"},ei=["title","name","label","heading","header","caption","description"],eo=["string","boolean","number"],ea=e=>eo.includes(e.type);function es(e){if(!Array.isArray(e))throw Error("The search config of a document type must be an array of search config objects");return e.map(e=>{if("defaults"===e)return e;if(!h(e))throw Error("Search config must be an object of {path: string, weight: number}");return{weight:"weight"in e?e.weight:1,path:p(e.path),mapWith:"string"==typeof e.mapWith?e.mapWith:void 0}})}let el=[...g,"orderings","__experimental_search","blockEditor","icon"],eu={get:()=>({name:"object",title:"Object",type:null,jsonType:"object"}),extend(e,t){let n,r={fields:[],...e},o={...r.options||{}},a={...r,title:r.title||(r.name?f(r.name):"Object"),options:o,orderings:r.orderings||(0===(n=ei.filter(e=>r.fields.some(t=>ea(t)&&t.name===e))).length&&(n=r.fields.filter(ea).map(e=>e.name)),n.map(e=>({name:e,i18n:{title:{key:`default-orderings.${e}`,ns:"studio"}},title:l(f(e)),by:[{field:e,direction:"asc"}]}))),fields:r.fields.map(e=>{let{name:n,fieldset:r,group:i,...o}=e;return y({name:n,group:i,fieldset:r},"type",()=>t({...o,title:e.title||f(n)}))})},s=Object.assign(i(this.get(),el),a,{type:this.get()});return y(s,"fieldsets",()=>ec(r,s.fields)),y(s,"groups",()=>(function(e,t){let n={},r=0;for(let t of e.groups||[]){if(n[t.name])throw Error(`Duplicate group name "${t.name}" found for type '${e.title?e.title:f(e.name)}
27'`);if(n[t.name]={title:f(t.name),...t,fields:[]},t.default&&++r>1)throw Error(`More than one field group defined as default for type '${e.title?e.title:f(e.name)}' - only 1 is supported`)}return t.forEach(t=>{let r=c(t.group||[]);0!==r.length&&r.forEach(r=>{let i=n[r];if(!i)throw Error(`Field group '${r}' is not defined in schema for type '${e.title?e.name:f(e.name)}'`);i.fields.push(t)})}),d(n).filter(e=>e.fields.length>0)})(r,s.fields)),y(s,"preview",j(r)),y(s,m,()=>({...a,fieldsets:s.fieldsets,groups:s.groups,preview:s.preview}),{enumerable:!1,writable:!1}),y(s,"__experimental_search",()=>{let e=r.__experimental_search?es(r.__experimental_search):null;return e?e.map(e=>"defaults"===e?es(r):e):(0,u.Lr)(s)},{enumerable:!1}),function e(t){return{get:()=>t,extend:n=>{if(n.fields)throw Error('Cannot override `fields` of subtypes of "object"');let o=i(n,el);o.title=n.title||r.title||(r.name?f(r.name):"Object");let a=Object.assign({},t,i(n,el),{type:t});return y(a,"__experimental_search",()=>t.__experimental_search),v(a,m,o),e(a)}}}(s)}};function ec(e,t){let n={};for(let t of e.fieldsets||[]){if(n[t.name])throw Error(`Duplicate fieldset name "${t.name}" found for type '${e.title?e.title:f(e.name)}'`);n[t.name]={title:f(t.name),...t,fields:[]}}let r=new Set;for(let i of t){if(!i.fieldset){r.add({single:!0,field:i});continue}let t=n[i.fieldset];if(!t)throw Error(`Fieldset '${i.fieldset}' is not defined in schema for type '${e.name}'`);t.fields.push(i),r.add(t)}return Array.from(r)}let ed={name:"document",title:"Document",type:null,jsonType:"object"},ef={get:()=>ed,extend:eu.extend},eh=[...g],ep={name:"email",title:"Email",type:null,jsonType:"string"},eg={name:"asset",type:"reference",to:{type:"sanity.fileAsset"}},em={name:"media",type:"globalDocumentReference",hidden:!0,to:[{type:"sanity.asset"}]},ey=[...g],ev={name:"file",title:"File",type:null,jsonType:"object"},eb={accept:""},ew=[{name:"_ref",title:"Referenced document ID",type:"string"},{name:"_weak",title:"Weak reference",type:"boolean"}],ex=[...g],ek={name:"globalDocumentReference",title:"Global Document Reference",type:null,jsonType:"object"},eE={name:"asset",type:"reference",to:[{type:"sanity.imageAsset"}]},e_={name:"hotspot",type:"sanity.imageHotspot"},eS={name:"crop",type:"sanity.imageCrop"},eA={name:"media",type:"globalDocumentReference",hidden:!0,to:[{type:"sanity.asset"}]},eT=[...g],eC={name:"image",title:"Image",type:null,jsonType:"object"},eO={},ej=[...g],eD={name:"number",title:"Number",type:null,jsonType:"number"},eR=[{name:"_ref",title:"Referenced document ID",type:"string"},{name:"_weak",title:"Weak reference",type:"boolean"}],eI=[...g],eP={name:"reference",title:"Reference",type:null,jsonType:"object"},eM=[...g],eN={name:"string",title:"String",type:null,jsonType:"string"},e$=[...g,"rows"],eL={name:"text",title:"Text",type:null,jsonType:"string"},eF=[...g],eU={name:"url",title:"Url",type:null,jsonType:"string"};var ez=Object.freeze({__proto__:null,any:{get:()=>w,extend(e,t){let n={...e,of:e.of.map(e=>({name:e.name,type:t(r(e,"name"))}))},o=Object.assign(i(w,b),n,{type:w});return v(o,m,n),function e(t){return{get:()=>t,extend:n=>{if(n.of)throw Error('Cannot override `of` property of subtypes of "array"');let r=i(n,b),o=Object.assign({},t,r,{type:t});return v(o,m,r),e(o)}}}(o)}},array:{get:()=>k,extend(e,t){let n=Object.assign(i(k,x),e,{type:k});return y(n,"of",()=>e.of.map(e=>t(e))),y(n,m,()=>({...e,of:n.of}),{enumerable:!1,writable:!1}),function e(t){return{get:()=>t,extend:n=>{if(n.of)throw Error('Cannot override `of` property of subtypes of "array"');let r=i(n,x),o=Object.assign({},t,r,{type:t});return v(o,m,r),e(o)}}}(n)}},block:{get:()=>U,extend(e,t){var n;let r={...e.options||z},{marks:o,styles:a,lists:s,of:l,...u}=e,c=function(e,t=[]){return{name:"children",title:"Content",type:"array",of:[{type:"span",fields:[D,R],annotations:e&&e.annotations?e.annotations:B,decorators:e&&e.decorators?e.decorators:L},...t.filter(e=>"span"!==e.type)]}}(o,l),d=[c,{name:"style",title:"Style",type:"string",options:{list:(n=a||N).some(e=>"normal"===e.value)?n:[M.normal,...n]}},{name:"listItem",title:"List type",type:"string",options:{list:s||P}},{name:"markDefs",title:"Mark definitions",type:"array",of:o?.annotations||B},{name:"level",title:"Indentation",type:"number"}].concat(e.fields||[]),f={...u,options:r},h=Object.assign(i(U,F),f,{type:U});
27return y(h,"fields",()=>d.map(e=>{let{name:n,...r}=e;return{name:n,type:t(r)}})),y(h,"preview",j(e)),y(h,m,()=>({...f,fields:h.fields,preview:h.preview}),{enumerable:!1,writable:!1}),function e(t){return{get:()=>t,extend:n=>{if(n.fields)throw Error('Cannot override `fields` of subtypes of "block"');let r=i(n,F),o=Object.assign({},t,r,{type:t});return v(o,m,r),e(o)}}}(h)}},boolean:{get:()=>X,extend(e){let t={...e,preview:G},n=Object.assign(i(X,K),t,{type:X});return v(n,m,t),function e(t){return{get:()=>t,extend:n=>{let r=i(n,K),o=Object.assign({},t,r,{type:t});return v(o,m,r),e(o)}}}(n)}},crossDatasetReference:{get:()=>J,extend(e,t){if(!e.to)throw Error(`Missing "to" field in cross dataset reference definition. Check the type ${e.name}`);let n=Object.assign(i(J,Q),e,{type:J});return y(n,"fields",()=>Z.map(e=>{let{name:n,...r}=e;return{name:n,type:t(r)}})),y(n,"to",()=>o(e.to).map(e=>({...e,__experimental_search:(0,u.bL)(e)}))),y(n,"title",()=>e.title||(n.to&&0!==n.to.length?`Cross dataset reference to ${(function(e,t){let n=e.length;if(1===n)return e[0];let r=e.slice(0,n-1),i=e[n-1];return`${r.join(", ")} or ${i}`})(o(n.to).map(e=>e.title||l(e.type)),0).toLowerCase()}`:"Cross dataset Reference")),y(n,m,()=>({...e,fields:n.fields,to:n.to,title:n.title}),{enumerable:!1,writable:!1}),function e(t){return{get:()=>t,extend:n=>{if(n.of)throw Error('Cannot override `of` of subtypes of "reference"');let r=i(n,Q),o=Object.assign({},t,r,{type:t});return v(o,m,r),e(o)}}}(n)}},date:{get:()=>et,extend(e){let t={...e,preview:G},n=Object.assign(i(et,ee),t,{type:et});return v(n,m,t),function e(t){return{get:()=>t,extend:n=>{let r=i(n,ee),o=Object.assign({},t,r,{type:t});return v(o,m,r),e(o)}}}(n)}},datetime:{get:()=>er,extend(e){let t={...e,preview:G},n=Object.assign(i(er,en),t,{type:er});return v(n,m,t),function e(t){return{get:()=>t,extend:n=>{let r=i(n,en),o=Object.assign({},t,r,{type:t});return v(o,m,r),e(o)}}}(n)}},document:ef,email:{get:()=>ep,extend(e){let t={...e,preview:G},n=Object.assign(i(ep,eh),t,{type:ep});return v(n,m,t),function e(t){return{get:()=>t,extend:n=>{let r=i(n,eh),o=Object.assign({},t,r,{type:t});return v(o,m,r),e(o)}}}(n)}},file:{get:()=>ev,extend(e,t){let n={...e.options||eb},r=[eg,em,...e.fields||[]],o={...e,fields:r},a=Object.assign(i(ev,ey),o,{type:ev,title:o.title||(o.name?f(o.name):ev.title),options:n,fields:o.fields.map(n=>{let{name:r,fieldset:i,...o}=n;
27return y({name:r,fieldset:i,isCustomized:!!e.fields},"type",()=>t({...o,title:n.title||f(r)}))})});return y(a,"fieldsets",()=>ec(o,a.fields)),y(a,"preview",j(Object.assign({},o,{fields:r}))),y(a,m,()=>({...o,options:n,fields:a.fields,title:a.title,fieldsets:a.fieldsets,preview:a.preview}),{enumerable:!1,writable:!1}),function e(t){return{get:()=>t,extend:n=>{if(n.fields)throw Error('Cannot override `fields` of subtypes of "file"');let r=i(n,ey),o=Object.assign({},t,r,{type:t});return v(o,m,r),e(o)}}}(a)}},globalDocumentReference:{get:()=>ek,extend(e,t){if(!e.to)throw Error(`Missing "to" field in global document reference definition. Check the type ${e.name}`);let n=Object.assign(i(ek,ex),e,{type:ek});return y(n,"fields",()=>ew.map(e=>{let{name:n,...r}=e;return{name:n,type:t(r)}})),y(n,"to",()=>o(e.to).map(e=>({...e}))),y(n,"title",()=>e.title||(n.to&&0!==n.to.length?`Global Document Reference to ${(function(e,t){let n=e.length;if(1===n)return e[0];let r=e.slice(0,n-1),i=e[n-1];return`${r.join(", ")} or ${i}`})(o(n.to).map(e=>e.title),0).toLowerCase()}`:"Global Document Reference")),y(n,m,()=>({...e,fields:n.fields,to:n.to,title:n.title}),{enumerable:!1,writable:!1}),function e(t){return{get:()=>t,extend:n=>{if(n.of)throw Error('Cannot override `of` of subtypes of "globalDocumentReference"');let r=i(n,ex),o=Object.assign({},t,r,{type:t});return v(o,m,r),e(o)}}}(n)}},image:{get:()=>eC,extend(e,t){let n={...e.options||eO},r=[e_,eS];n.hotspot||(r=r.map(e=>({...e,hidden:!0})));let o=[eE,eA,...r,...e.fields||[]],a={...e,fields:o},s=Object.assign(i(this.get(),eT),a,{type:eC,title:a.title||(a.name?f(a.name):eC.title),options:n,fields:a.fields.map(n=>{let{name:r,fieldset:i,...o}=n;
27return y({name:r,fieldset:i,isCustomized:!!e.fields},"type",()=>t({...o,title:n.title||f(r)}))})});return y(s,"fieldsets",()=>ec(a,s.fields)),y(s,"preview",j(Object.assign({},a,{fields:o}))),y(s,m,()=>({...a,options:n,fields:s.fields,title:s.title,fieldsets:s.fieldsets,preview:s.preview}),{enumerable:!1,writable:!1}),function e(t){return{get:()=>t,extend:n=>{if(n.fields)throw Error('Cannot override `fields` of subtypes of "image"');let r=i(n,eT),o=Object.assign({},t,r,{type:t});return v(o,m,r),e(o)}}}(s)}},number:{get:()=>eD,extend(e){let t={...e,preview:G},n=Object.assign(i(eD,ej),t,{type:eD});return v(n,m,t),function e(t){return{get:()=>t,extend:n=>{let r=i(n,ej),o=Object.assign({},t,r,{type:t});return v(o,m,r),e(o)}}}(n)}},object:eu,reference:{get:()=>eP,extend(e,t){if(!e.to)throw Error(`Missing "to" field in reference definition. Check the type ${e.name}`);let n=Object.assign(i(eP,eI),e,{type:eP});return y(n,"fields",()=>eR.map(e=>{let{name:n,...r}=e;return{name:n,type:t(r)}})),y(n,"fieldsets",()=>ec(e,n.fields)),y(n,"to",()=>o(e.to).map(e=>t(e))),y(n,"title",()=>e.title||(n.to&&0!==n.to.length?`Reference to ${(function(e,t){let n=e.length;if(1===n)return e[0];let r=e.slice(0,n-1),i=e[n-1];return`${r.join(", ")} or ${i}`})(o(n.to).map(e=>e.title),0).toLowerCase()}`:"Reference")),y(n,m,()=>({...e,fields:n.fields,fieldsets:n.fieldsets,to:n.to,title:n.title}),{enumerable:!1,writable:!1}),function e(t){return{get:()=>t,extend:n=>{if(n.of)throw Error('Cannot override `of` of subtypes of "reference"');let r=i(n,eI),o=Object.assign({},t,r,{type:t});return v(o,m,r),e(o)}}}(n)}},span:{get:()=>V,extend(e,t){let n={...e.options||Y},{annotations:r=[],marks:o=[]}=e,a=[H,W],s={...e,options:n},l=Object.assign(i(V,q),s,{type:V});return y(l,"fields",()=>a.map(e=>{let{name:n,...r}=e;return{name:n,type:t(r)}})),y(l,"annotations",()=>r.map(t)),y(l,"marks",()=>o.map(t)),y(l,"preview",j(e)),y(l,m,()=>({...s,fields:l.fields,annotations:l.annotations,marks:l.marks,preview:l.preview}),{enumerable:!1,writable:!1}),function e(t){return{get:()=>t,extend:n=>{if(n.fields)throw Error('Cannot override `fields` of subtypes of "span"');let r=i(n,q),o=Object.assign({},t,r,{type:t});return v(o,m,r),e(o)}}}(l)}},string:{get:()=>eN,extend(e){let t={...e,preview:G},n=Object.assign(i(eN,eM),t,{type:eN});return v(n,m,t),function e(t){return{get:()=>t,extend:n=>{let r=i(n,eM),o=Object.assign({},t,r,{type:t});return v(o,m,r),e(o)}}}(n)}},text:{get:()=>eL,extend(e){let t={...e,preview:G},n=Object.assign(i(eL,e$),t,{type:eL});return v(n,m,t),function e(t){return{get:()=>t,extend:n=>{let r=i(n,e$),o=Object.assign({},t,r,{type:t});return v(o,m,r),e(o)}}}(n)}},url:{get:()=>eU,extend(e){let t={...e,preview:G},n=Object.assign(i(eU,eF),t,{type:eU});return v(n,m,t),function e(t){return{get:()=>t,extend:n=>{let r=i(n,eF),o=Object.assign({},t,r,{type:t});return v(o,m,r),e(o)}}}(n)}}});let eB=class e{_original;_registry;#c;static compile(t){return new e(t)}constructor(e){this._original=e;let{registry:t,localTypeNames:n}=function(e){let t,n=Object.create(null);e.parent?(Object.assign(n,e.parent._registry),t=[]):(Object.assign(n,ez),t=Object.keys(ez));let r=e.types.reduce((e,t)=>{if(e[t.name])throw Error(`Duplicate type name added to schema: ${t.name}`);return e[t.name]=t,e},{});return e.types.forEach(a),{registry:n,localTypeNames:t};function i(e){if(!n[e]){if(!r[e])throw Error(`Unknown type: ${e}`);a(r[e])}}function o(e){return i(e.type),n[e.type].extend(e,o).get()}function a(e){i(e.type),n[e.name]||(t.push(e.name),n[e.name]=n[e.type].extend(e,o))}}(e);this._registry=t,this.#c=n}get name(){return this._original.name}get parent(){return this._original.parent}get(e){return this._registry[e]&&this._registry[e].get()}has(e){return e in this._registry}getTypeNames(){return Object.keys(this._registry)}getLocalTypeNames(){return this.#c}}},22303:(e,t,n)=>{"use strict";function r(){}n.d(t,{l:()=>r})},22324:(e,t,n)=>{"use strict";n.d(t,{T:()=>r});let r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},22338:e=>{e.exports=function(e){return function(t){return null==e?void 0:e[t]}}}
27,22899:(e,t,n)=>{var r=n(18904);e.exports=n(35547)(r)},22914:e=>{e.exports=function(e){return void 0===e}},23012:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(47528),i=n(71260);function o(e){(0,i.A)(1,arguments);var t=(0,r.A)(e).getDay();return 0===t||6===t}},23025:e=>{e.exports=function(e,t){return e.has(t)}},23027:(e,t,n)=>{"use strict";n.d(t,{Bg:()=>u,ER:()=>y,HX:()=>b,Lw:()=>f,Q:()=>k,Qm:()=>v,Rt:()=>d,UH:()=>c,Y1:()=>g,bu:()=>h,iE:()=>E,kK:()=>p,l$:()=>l,oZ:()=>m});var r=n(45885),i=n(78436),o=n(31592),a=n(24622);let s=e=>{if(e.context.selection)return e.context.selection.backward?e.context.selection.anchor:e.context.selection.focus},l=e=>{if(!e.context.selection)return[];let t=[],n=(0,i.Jo)(e),o=s(e);if(!n||!o)return t;let a=(0,r.XE)(n),l=(0,r.XE)(o);if(!a||!l)return t;let u=(0,r.qX)(n),c=(0,r.qX)(o),d=!1;for(let i of e.context.value)if(i._key===a&&(d=!0),(0,r.zS)(e.context,i)){if(i._key===a){for(let a of i.children)if((0,r.QU)(e.context,a)){if(u&&a._key===u){if(n.offset<a.text.length&&t.push({node:a,path:[{_key:i._key},"children",{_key:a._key}]}),u===c)break;continue}if(c&&a._key===c){o.offset>0&&t.push({node:a,path:[{_key:i._key},"children",{_key:a._key}]});break}t.length>0&&t.push({node:a,path:[{_key:i._key},"children",{_key:a._key}]})}if(a===l)break;continue}if(i._key===l){for(let n of i.children)if((0,r.QU)(e.context,n)){if(c&&n._key===c){o.offset>0&&t.push({node:n,path:[{_key:i._key},"children",{_key:n._key}]});break}t.push({node:n,path:[{_key:i._key},"children",{_key:n._key}]})}break}
27if(d)for(let n of i.children)(0,r.QU)(e.context,n)&&t.push({node:n,path:[{_key:i._key},"children",{_key:n._key}]})}return t},u=e=>{if(!e.context.selection)return[];let t=(0,i.wx)(e),n=l(e),o=(0,i.d2)(e);if(0===n.length||!o||1===n.length&&(0,i.WV)(e)&&(0===e.context.selection.focus.offset||e.context.selection.focus.offset===o.node.text.length))return[];let a=e.beta.activeAnnotations;return t.flatMap(t=>(0,r.zS)(e.context,t.node)?t.node.markDefs??[]:[]).filter(e=>a.includes(e._key))},c=e=>{if(!e.context.selection||!(0,i.WV)(e))return null;let t=(0,i.hH)(e),n=(0,i.Jo)(e),l=n?(0,r.iL)({context:e.context,selectionPoint:n}):void 0;if(!t||!n||!l)return null;let u=(0,i.Uv)(e),c=(0,r.u3)({context:e.context,block:t}),d=(0,i.u0)({context:{...e.context,selection:{anchor:u?{path:u.path,offset:0}:c,focus:n}}}).split(/\s+/).at(-1),f=(e=>{let t=(0,i.hH)(e),n=s(e),o=n&&(0,a.tA)(n.path[2])?n.path[2]._key:void 0;if(!t||!o)return;let l=!1,u;for(let n of t.node.children){if(n._key===o){l=!0;continue}if(!(0,r.bl)(e.context,n)&&l){u={node:n,path:[...t.path,"children",{_key:n._key}]};break}}return u})(e),h=(0,o.J8)({context:e.context,block:t}),p=(0,i.u0)({context:{...e.context,selection:{anchor:n,focus:f?{path:f.path,offset:0}:h}}}).split(/\s+/).at(0);if((void 0===d||""===d)&&(void 0===p||""===p))return null;let g=d?{...l,offset:l.offset-d.length}:l,m=p?{...l,offset:l.offset+p.length}:l,y=(0,r.m4)({context:e.context,blockOffset:g,direction:"backward"}),v=(0,r.m4)({context:e.context,blockOffset:m,direction:"forward"});if(!y||!v)return null;let b={anchor:y,focus:v};return(0,i.gR)({context:{...e.context,selection:b}})?b:null},d=e=>{let t=(0,i.jR)(e);return t&&!(0,a.bn)(t.node)?{node:t.node,path:t.path}:void 0},f=e=>{if(!e.context.selection)return[];let t=[],n=(0,r.Jo)(e.context.selection),i=(0,r.aR)(e.context.selection),o=(0,r.XE)(n),a=(0,r.XE)(i);if(!o||!a)return t;for(let n of e.context.value){if(n._key===o){if((0,r.zS)(e.context,n)&&t.pu
27sh({node:n,path:[{_key:n._key}]}),o===a)break;continue}if(n._key===a){(0,r.zS)(e.context,n)&&t.push({node:n,path:[{_key:n._key}]});break}t.length>0&&(0,r.zS)(e.context,n)&&t.push({node:n,path:[{_key:n._key}]})}return t},h=e=>{if(!e.context.selection)return e.context.selection;let t=(0,r.Jo)(e.context.selection),n=(0,r.aR)(e.context.selection),a=(0,r.XE)(t),s=(0,r.qX)(t),l=(0,r.XE)(n),u=(0,r.qX)(n);if(!a||!l)return e.context.selection;let c=!1,d,f=!1,h,p=!1,g;for(let i of e.context.value)if(!(i._key===a&&(c=!0,(0,r.zS)(e.context,i)&&(0,o.wm)(e.context,i)))&&c&&(0,r.zS)(e.context,i)){if(i._key===l&&(0,o.wm)(e.context,i))break;for(let o of i.children){if(o._key===u&&(!(0,r.QU)(e.context,o)||0===n.offset)){h=g?{path:[{_key:g.blockKey},"children",{_key:g.span._key}],offset:g.span.text.length}:void 0,p=!0;break}if(f){let t=(0,r.QU)(e.context,o)&&1===i.children.length;((0,r.QU)(e.context,o)&&o.text.length>0||t)&&(d={path:[{_key:i._key},"children",{_key:o._key}],offset:0},g={blockKey:i._key,span:o},f=!1);continue}if(o._key===s){if(!(0,r.QU)(e.context,o)){f=!0;continue}if(t.offset===o.text.length){f=!0,g=o.text.length>0?{blockKey:i._key,span:o}:g;continue}}g=(0,r.QU)(e.context,o)&&o.text.length>0?{blockKey:i._key,span:o}:g}if(i._key===l)break}let m=e.context.selection.backward?{anchor:p&&h?h:n,focus:d??t,backward:!0}:{anchor:d??t,focus:p&&h?h:n};if((0,i.WV)({context:{...e.context,selection:m}})){let t=(0,i.hH)({context:{...e.context,selection:m}});if(t&&!(0,o.wm)(e.context,t.node))return null}return m};function p(e){return t=>(0,i.wx)(t).flatMap(e=>
27(0,r.zS)(t.context,e.node)?e.node.markDefs??[]:[]).filter(n=>n._type===e&&t.beta.activeAnnotations.includes(n._key)).length>0}function g(e){return t=>{if((0,i.gR)(t)){let n=l(t);return n.length>0&&n.every(t=>t.node.marks?.includes(e))}return t.beta.activeDecorators.includes(e)}}function m(e){return t=>(e=>{if(!e.context.selection)return;let t=(0,i.wx)(e).map(e=>e.node).filter(t=>(0,r.zS)(e.context,t)),n=t.at(0);if(!n)return;let o=n.listItem;if(o&&t.every(e=>e.listItem===o))return o})(t)===e}function y(e){return t=>(e=>{if(!e.context.selection)return;let t=(0,i.wx)(e).map(e=>e.node).filter(t=>(0,r.zS)(e.context,t)),n=t.at(0);if(!n)return;let o=n.style;if(o&&t.every(e=>e.style===o))return o})(t)===e}function v(e){return t=>{if(!t.context.selection||!(0,i.WV)(t))return!1;let n=(0,o.J8)({context:t.context,block:e});return(0,o._Q)(t.context.selection.focus,n)}}function b(e){return t=>{if(!t.context.selection||!(0,i.WV)(t))return!1;let n=(0,r.u3)({context:t.context,block:e});return(0,o._Q)(t.context.selection.focus,n)}}function w(e){return t=>{if(!t.context.selection)return!1;let n=(0,r.aR)(t.context.selection),i=(0,r.XE)(n),o=(0,r.qX)(n),a=(0,r.XE)(e),s=(0,r.qX)(e);if(!a||!i)return!1;let l=!1;for(let u of t.context.value){if(u._key===i){if(u._key!==a){l=!0;break}if(!(0,r.zS)(t.context,u)||!s||!o)break;for(let t of u.children){if(t._key===o){if(t._key!==s){l=!0;break}l=e.offset>n.offset;break}if(t._key===s)break}}if(u._key===a)break}return l}}function x(e){return t=>{if(!t.context.selection)return!1;let n=(0,r.Jo)(t.context.selection),i=(0,r.XE)(n),o=(0,r.qX)(n),a=(0,r.XE)(e),s=(0,r.qX)(e);if(!a||!i)return!1;let l=!1;for(let u of t.context.value){if(u._key===a){if(u._key!==i){l=!0;break}if(!(0,r.zS)(t.context,u)||!s||!o)break;for(let t of u.children){if(t._key===s){if(t._key!==o){l=!0;break}l=e.offset<n.offset;break}if(t._key===o)break}}if(u._key===i)break}return l}}function k(e){return t=>{if(!e||!t.context.selection)return!1;let n=(0,i.Jo)({context:{...t.context,selection:e}}),r=s({context:{...t.context,selection:e}}),a=(0,i.Jo)(t),l=s(t);if(!n||!r||!a||!l)return!1;let u=x(n)(t),c=w(n)(t),d=x(r)(t),f=w(r)(t),h=x(a)({...t,context:{...t.context,selection:{anchor:n,focus:n}}}),p=w(a)({...t,context:{...t.context,selection:{anchor:n,focus:n}}}),g=x(l)({...t,context:{...t.context,selection:{anchor:r,focus:r}}}),m=w(l)({...t,context:{...t.context,selection:{anchor:r,focus:r}}}),y=(0,o._Q)(r,a),v=(0,o._Q)(n,l);return(!d||!!y)&&(!c||!!v)&&(!h&&p&&!g&&m?!y:h&&!p&&g&&!m?!v:!c||!u||!f||!d)}}let E=e=>{if(!e.context.selection)return!1;let t=e.context.selection.backward?e.context.selection.focus:e.context.selection.anchor,
27n=e.context.selection.backward?e.context.selection.anchor:e.context.selection.focus,a=(0,i.GB)(e),s=(0,i.P$)(e);if(!a||!s)return!1;let l=(0,r.u3)({context:e.context,block:a}),u=(0,o.J8)({context:e.context,block:s});return(0,o._Q)(l,t)&&(0,o._Q)(u,n)}},23098:(e,t,n)=>{var r=n(94708);e.exports=function(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:r(e,t,n)}},23339:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(47528),i=n(71260),o=n(85356);function a(e){(0,i.A)(1,arguments);var t=(0,r.A)(e),n=t.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(n+1,0,4),a.setUTCHours(0,0,0,0);var s=(0,o.A)(a),l=new Date(0);l.setUTCFullYear(n,0,4),l.setUTCHours(0,0,0,0);var u=(0,o.A)(l);return t.getTime()>=s.getTime()?n+1:t.getTime()>=u.getTime()?n:n-1}},23474:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(7531),i=n(17884),o=n(79067),a=n(64732),s=n(12878),l=n(82203),u=n(29844);function c(e){let t=function e(t){var n;return!!(n=t)&&("object"==typeof n||"function"==typeof n)&&("reference"===t.name||e(t.type))}(e)&&1===(e.to??[]).length?e.to[0].icon:void 0;return e.icon??e.type?.icon??t}function d(e,t){return{query:"change query"===t.type?t.query:e.query,groups:"select group"===t.type?e.groups.map(e=>({...e,selected:t.name===e.name})):e.groups,views:"toggle view"===t.type?e.views.map(e=>({...e,selected:t.name===e.name})):e.views}}let f="all-items",h={gridTemplateColumns:"repeat(auto-fill, minmax(118px, 1fr))"};function p(e){let t,n,u,p,v,b,x,E,_,S,A,T,C,O,j,D,R=(0,i.c)(54),I=void 0===e.showIcons||e.showIcons,P=void 0===e.filter||"auto"===e.filter?e.schemaTypes.length>5:e.filter;R[0]!==e.groups||R[1]!==e.labels?(t=e.groups?[{name:f,title:e.labels["insert-menu.filter.all-items"],selected:!0},...e.groups.map(y)]:[],R[0]=e.groups,R[1]=e.labels,R[2]=t):t=R[2],R[3]!==e.views?(n=e.views??[{name:"list"}],R[3]=e.views,R[4]=n):n=R[4],R[5]!==n?(u=n.map(m),R[5]=n,R[6]=u):u=R[6],R[7]!==t||R[8]!==u?(p={query:"",groups:t,views:u},R[7]=t,R[8]=u,R[9]=p):p=R[9];let[M,N]=(0,l.useReducer)(d,p);if(R[10]!==e||R[11]!==P||R[12]!==I||R[13]!==M.groups||R[14]!==M.query||R[15]!==M.views){var $,L,F;let t,n,i,l=($=e.schemaTypes,L=M.query,F=M.groups,$.filter(e=>(function(e,t){let n=t.find(e=>e.selected);return!n||n.name===f||n.of?.includes(e.name)})(e,F)&&function(e,t){let n=t.trim().toLowerCase();return e.title?e.title?.toLowerCase().includes(n):e.name.includes(n)}(e,L))),u=M.views.find(g),d=P||M.views.length>1,p=M.groups&&M.groups.length>0,m=d||p;x=a.W1,C=0,b=a.so,S="column",A="fill",R[25]!==m?(t=m?{style:{borderBottom:"1px solid var(--card-border-color)"},paddingBottom:1}:{},R[25]=m,R[26]=t):t=R[26],R[27]!==e.labels||R[28]!==P||R[29]!==d||R[30]!==M.query||R[31]!==M.views?(n=d?(0,r.jsxs)(a.so,{flex:"none",align:"center",paddingTop:1,paddingX:1,gap:1,children:[P?(0,r.jsx)(a.az,{flex:1,children:(0,r.jsx)(a.ks,{autoFocus:!0,border:!1,fontSize:1,icon:o.WIv,onChange:e=>{N({type:"change query",query:e.target.value})},placeholder:e.labels["insert-menu.search.placeholder"],value:M.query})}):null,M.views.length>1?(0,r.jsx)(a.az,{flex:"none",children:(0,r.jsx)(w,{views:M.views,onToggle:e=>{N({type:"toggle view",name:e})},labels:e.labels})}):null]}):null,R[27]=e.labels,R[28]=P,R[29]=d,R[30]=M.query,R[31]=M.views,R[32]=n):n=R[32],R[33]!==p||R[34]!==M.groups?(i=p?(0,r.jsx)(a.az,{paddingTop:1,paddingX:1,children:(0,r.jsx)(a.wb,{space:1,children:M.groups.map(e=>(0,r.jsx)(a.oz,{id:`${e.name}-tab`,"aria-controls":`${e.name}-panel`,label:e.title??s(e.name),selected:e.selected,onClick:()=>{N({type:"select group",name:e.name})}},e.name))})}):null,R[33]=p,R[34]=M.groups,R[35]=i):i=R[35],R[36]!==t||R[37]!==n||R[38]!==i?(T=(0,r.jsxs)(a.az,{...t,children:[n,i]}),R[36]=t,R[37]=n,R[38]=i,R[39]=T):T=R[39],v=a.az,E=1,_=0===l.length?(0,r.jsx)(a.az,{padding:2,children:(0,r.jsx)(a.EY,{muted:!0,size:1,children:e.labels["insert-menu.search.no-results"]})}):u?"grid"===u.name?(0,r.jsx)(a.xA,{autoRows:"auto",flex:1,gap:1,style:h,children:l.map(t=>(0,r.jsx)(k,{icon:I?c(t):void 0,onClick:()=>{e.onSelect(t)},previewImageUrl:u.previewImageUrl?.(t.name),schemaType:t},t.name))}):(0,r.jsx)(a.BJ,{flex:1,space:1,children:l.map(t=>(0,r.jsx)(a.Dr,{icon:I?c(t):void 0,onClick:()=>{e.onSelect(t)},text:t.title??s(t.name)},t.name))}):null,R[10]=e,R[11]=P,R[12]=I,R[13]=M.groups,R[14]=M.query,R[15]=M.views,R[16]=v,R[17]=b,R[18]=x,R[19]=E,R[20]=_,R[21]=S,R[22]=A,R[23]=T,R[24]=C}else v=R[16],b=R[17],x=R[18],E=R[19],_=R[20],S=R[21],A=R[22],T=R[23],C=R[24];return R[40]!==v||R[41]!==E||R[42]!==_?(O=(0,r.jsx)(v,{padding:E,children:_}),R[40]=v,R[41]=E,R[42]=_,R[43]=O):O=R[43],R[44]!==b||R[45]!==O||R[46]!==S||R[47]!==A||R[48]!==T?(j=(0,r.jsxs)(b,{direction:S,height:A,children:[T,O]}),R[44]=b,R[45]=O,R[46]=S,R[47]=A,R[48]=T,R[49]=j):j=R[49],R[50]!==x||R[51]!==j||R[52]!==C?(D=(0,r.jsx)(x,{padding:C,children:j}),R[50]=x,R[51]=j,R[52]=C,R[53]=D):D=R[53],D}function g(e){return e.selected}function m(e,t){return{...e,selected:0===t}}function y(e){return{...e,selected:!1}}let v={grid:o.jxC,list:o.r$9},b={grid:"insert-menu.toggle-grid-view.tooltip",list:"insert-menu.toggle-list-view.tooltip"};function w(e){let t,n,o,s,l=(0,i.c)(11),u=e.views.findIndex(x),c=e.views[u+1]??e.views[0],d=e.labels[b[c.name]];l[0]!==d?(t=(0,r.jsx)(a.EY,{size:1,children:d}),l[0]=d,l[1]=t):t=l[1];let f=v[c.name];return l[2]!==c.name||l[3]!==e?(n=()=>{e.onToggle(c.name)},l[2]=c.name,l[3]=e,l[4]=n):n=l[4],l[5]!==f||l[6]!==n?(o=(0,r.jsx)(a.$n,{mode:"bleed",icon:f,onClick:n}),l[5]=f,l[6]=n,l[7]=o):o=l[7],l[8]!==t||l[9]!==o?(s=(0,r.jsx)(a.m_,{content:t,placement:"top",portal:!0,children:o}),l[8]=t,l[9]=o,l[10]=s):s=l[10],s}function x(e){return e.selected}function k(e){let t,n,o,s,c,d,f,h,p,g=(0,i.c)(19),[m,y]=(0,l.useState)(!1),v=e.icon;g[0]===Symbol.for("react.memo_cache_sentinel")?(t={overflow:"hidden"},g[0]=t):t=g[0],g[1]===Symbol.for("react.memo_cache_sentinel")?(n={backgroundColor:"var(--card-muted-bg-color)",paddingBottom:"66.6%",position:"relative"},g[1]=n):n=g[1],g[2]!==v?(o=(0,u.isValidElementType)(v)?(0,r.jsx)(a.so,{align:"center",justify:"center",style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"},children:(0,r.jsx)(a.EY,{size:1,children:(0,r.jsx)(v,{})})}):null,g[2]=v,g[3]=o):o=g[3],g[4]!==m||g[5]!==e.previewImageUrl?(s=!e.previewImageUrl||m?null:(0,r.jsx)("img",{src:e.previewImageUrl,style:{objectFit:"contain",width:"100%",height:"100%",position:"absolute",inset:0},onError:()=>{y(!0)}}),g[4]=m,g[5]=e.previewImageUrl,g[6]=s):s=g[6],g[7]===Symbol.for("react.memo_cache_sentinel")?(c=(0,r.jsx)("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",boxShadow:"inset 0 0 0 0.5px var(--card-fg-color)",opacity:.1}}),g[7]=c):c=g[7],g[8]!==o||g[9]!==s?(d=(0,r.jsxs)(a.az,{flex:"none",style:n,children:[o,s,c]}
27),g[8]=o,g[9]=s,g[10]=d):d=g[10];let b=e.schemaType.title??e.schemaType.name;return g[11]!==b?(f=(0,r.jsx)(a.az,{flex:1,padding:2,children:(0,r.jsx)(a.EY,{size:1,weight:"medium",children:b})}),g[11]=b,g[12]=f):f=g[12],g[13]!==d||g[14]!==f?(h=(0,r.jsxs)(a.so,{direction:"column",gap:1,padding:1,children:[d,f]}),g[13]=d,g[14]=f,g[15]=h):h=g[15],g[16]!==e.onClick||g[17]!==h?(p=(0,r.jsx)(a.Dr,{padding:0,radius:2,onClick:e.onClick,style:t,children:h}),g[16]=e.onClick,g[17]=h,g[18]=p):p=g[18],p}},23548:(e,t,n)=>{"use strict";n.d(t,{$:()=>p});var r,i=n(58555),o=n(79181),a=1,s={};function l(e){return e in s&&(delete s[e],!0)}var u={setImmediate:function(e){var t=a++;return s[t]=!0,r||(r=Promise.resolve()),r.then(function(){return l(t)&&e()}),t},clearImmediate:function(e){l(e)}},c=u.setImmediate,d=u.clearImmediate,f={setImmediate:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=f.delegate;return((null==n?void 0:n.setImmediate)||c).apply(void 0,(0,i.fX)([],(0,i.zs)(e)))},clearImmediate:function(e){var t=f.delegate;return((null==t?void 0:t.clearImmediate)||d)(e)},delegate:void 0},h=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return(0,i.C6)(t,e),t.prototype.requestAsyncId=function(t,n,r){return(void 0===r&&(r=0),null!==r&&r>0)?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=f.setImmediate(t.flush.bind(t,void 0))))},t.prototype.recycleAsyncId=function(t,n,r){if(void 0===r&&(r=0),null!=r?r>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);var i,o=t.actions;null!=n&&(null==(i=o[o.length-1])?void 0:i.id)!==n&&(f.clearImmediate(n),t._scheduled===n&&(t._scheduled=void 0))},t}(o.R),p=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.C6)(t,e),t.prototype.flush=function(e){this._active=!0;var t,n=this._scheduled;this._scheduled=void 0;var r=this.actions;e=e||r.shift();do if(t=e.execute(e.state,e.delay))break;while((e=r[0])&&e.id===n&&r.shift());if(this._active=!1,t){for(;(e=r[0])&&e.id===n&&r.shift();)e.unsubscribe();throw t}},t}(n(81350).q))(h)},23607:e=>{e.exports=function(e){return e!=e}},23791:(e,t,n)=>{"use strict";n.d(t,{RV:()=>d,gd:()=>a,qQ:()=>c,vk:()=>s,yF:()=>r});let r="?",i=/\(error: (.*)\)/,o=/captureMessage|captureException/;function a(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0,a=0)=>{let s=[],u=e.split("\n");for(let e=n;e<u.length;e++){let n=u[e];if(n.length>1024)continue;let r=i.test(n)?n.replace(i,"$1"):n;if(!r.match(/\S*Error: /)){for(let e of t){let t=e(r);if(t){s.push(t);break}}if(s.length>=50+a)break}}var c=s.slice(a);if(!c.length)return[];let d=Array.from(c);return/sentryWrapped/.test(l(d).function||"")&&d.pop(),d.reverse(),o.test(l(d).function||"")&&(d.pop(),o.test(l(d).function||"")&&d.pop()),d.slice(0,50).map(e=>({...e,filename:e.filename||l(d).filename,function:e.function||r}))}}function s(e){return Array.isArray(e)?a(...e):e}function l(e){return e[e.length-1]||{}}let u="<anonymous>";function c(e){try{if(!e||"function"!=typeof e)return u;return e.name||u}catch(e){return u}}function d(e){let t=e.exception;if(t){let e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch(e){}}}},23851:(e,t,n)=>{var r=n(1786),i=n(11657),o=n(78946),a=Object.prototype,s=Function.prototype.toString,l=a.hasOwnProperty,u=s.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==u}},23989:(e,t,n)=>{"use strict";n.d(t,{M:()=>s});var r=n(73315),i=n(27778),o=n(94126),a=n(17953);function s(e,t,n){var s=(0,r.T)(e)||t||n?{next:e,error:t,complete:n}:e;return s?(0,i.N)(function(e,t){null==(n=s.subscribe)||n.call(s);var n,r=!0;e.subscribe((0,o._)(t,function(e){var n;null==(n=s.next)||n.call(s,e),t.next(e)},function(){var e;r=!1,null==(e=s.complete)||e.call(s),t.complete()},function(e){var n;r=!1,null==(n=s.error)||n.call(s,e),t.error(e)},function(){var e,t;r&&(null==(e=s.unsubscribe)||e.call(s)),null==(t=s.finalize)||t.call(s)}))}):a.D}}
27,24249:(e,t,n)=>{var r=n(87e3),i=n(75653),o=n(67912),a=n(96912);e.exports=function(e){var t=o(e),n=a[t];if("function"!=typeof n||!(t in r.prototype))return!1;if(e===n)return!0;var s=i(n);return!!s&&e===s[0]}},24539:e=>{e.exports=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return -1}},24622:(e,t,n)=>{"use strict";function r(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function i(e){return r(e)&&"string"==typeof e._ref}function o(e){return r(e)&&i(e.asset)&&e.asset._ref.startsWith("image-")}function a(e){return r(e)&&"string"==typeof e._ref&&"string"==typeof e._dataset&&"string"==typeof e._projectId}function s(e){return r(e)&&"string"==typeof e._id&&"string"==typeof e._type}function l(e){return r(e)&&"string"==typeof e._type}function u(e){return r(e)&&"string"==typeof e._key}function c(e){return!!r(e)&&"string"==typeof e._ref&&3===e._ref.split(":").length}function d(e){return"error"===e.level}function f(e){return"warning"===e.level}function h(e){return"info"===e.level}n.d(t,{$d:()=>_,AF:()=>f,A_:()=>i,Ah:()=>Y,F0:()=>function e(t){return k(t)&&("image"===t.name||e(t.type))},F3:()=>R,GC:()=>H,GX:()=>A,Gm:()=>h,I0:()=>a,IB:()=>V,JR:()=>E,Kk:()=>l,L4:()=>w,ME:()=>s,MI:()=>B,P3:()=>function e(t){return k(t)&&("crossDatasetReference"===t.name||e(t.type))},Pb:()=>$,Q9:()=>c,SA:()=>L,SP:()=>U,T4:()=>F,U8:()=>z,Uw:()=>d,XK:()=>D,Z9:()=>v,bn:()=>x,ci:()=>G,dO:()=>q,do:()=>function e(t){return k(t)&&("reference"===t.name||e(t.type))},fq:()=>P,gw:()=>C,m5:()=>T,o8:()=>u,oV:()=>O,pZ:()=>j,tA:()=>y,u5:()=>W,uC:()=>M,wD:()=>function e(t){return k(t)&&("file"===t.name||e(t.type))},wr:()=>m,wu:()=>o,zR:()=>S,zZ:()=>I});let p=/_key\s*==\s*['"](.*)['"]/,g=/^\d*:\d*$/;function m(e){return"number"==typeof e||"string"==typeof e&&/^\[\d+\]$/.test(e)}function y(e){return"string"==typeof e?p.test(e.trim()):"object"==typeof e&&"_key"in e}function v(e){if("string"==typeof e&&g.test(e))return!0;if(!Array.isArray(e)||2!==e.length)return!1;let[t,n]=e;return("number"==typeof t||""===t)&&("number"==typeof n||""===n)}function b(e){return!!e&&("object"==typeof e||"function"==typeof e)}function w(e){return b(e)&&"string"==typeof e._type&&Array.isArray(e.children)&&e.children.every(e=>b(e))&&(!("markDefs"in e)||Array.isArray(e.markDefs)&&e.markDefs.every(e=>b(e)))&&(!("style"in e)||"string"==typeof e.style)}function x(e){return b(e)&&"span"===e._type&&"string"==typeof e.text&&(!("marks"in e)||Array.isArray(e.marks)&&e.marks.every(e=>"string"==typeof e))}function k(e){return!!e&&("object"==typeof e||"function"==typeof e)}function E(e){if(!_(e))return!1;let t=e;for(;t;){if("document"===t.name)return!0;t=t.type}return!1}function _(e){return!!k(e)&&"object"===e.jsonType}function S(e){return!!k(e)&&"array"===e.jsonType}function A(e){return S(e)&&e.of.some(e=>$(e))}function T(e){return S(e)&&e.of.every(e=>_(e))}function C(e){return S(e)&&e.of.every(e=>I(e))}function O(e){return!!k(e)&&"boolean"===e.jsonType}function j(e){return!!k(e)&&"string"===e.jsonType}function D(e){return!!j(e)&&"datetime"===e.name}function R(e){return!!k(e)&&"number"===e.jsonType}function I(e){return O(e)||j(e)||R(e)}function P(e){return!!k(e)&&"u">typeof e.deprecated}function M(e){return"object"==typeof e&&null!==e&&"title"in e&&"value"in e}function N(e){return!!k(e)&&Array.isArray(e.annotations)&&Array.isArray(e.decorators)}function $(e){if(!k(e)||!Array.isArray(e.fields))return!1;let t=e.fields.find(U),n=e.fields.find(L),r=e.fields.find(F);return U(t)&&L(n)&&F(r)}function L(e){return!!k(e)&&"style"===e.name&&k(e.type)&&"string"===e.type.jsonType}function F(e){return!!k(e)&&"listItem"===e.name&&k(e.type)&&"string"===e.type.jsonType}function U(e){return!!k(e)&&"children"===e.name&&!!S(e.type)&&e.type.of.some(N)}function z(e,t){return e}function B(e,t){return e}function q(e,t){return e}let V=["groqLegacy","groq2024"];function H(e){return V.includes(e)}function W(e){return r(e)&&"string"==typeof e.current}function Y(e){return"error"===e.level}function G(e){return"warning"===e.level}},24667:(e,t,n)=>{"use strict";n.d(t,{Xg:()=>Z,ZS:()=>P,jN:()=>m,sM:()=>W});var r=n(7774),i=n(54912),o=n(59264),a=n(50437),s=n(39912),l=n(56930),u=n(79600),c=n(40567);let d=i("mutator-document");class f{_value;path;constructor(e,t){this._value=e,this.path=t||[]}containerType(){return Array.isArray(this._value)?"array":null!==this._value&&"object"==typeof this._value?"object":"primitive"}get(){return this._value}length(){if(!Array.isArray(this._value))throw Error("Won't return length of non-indexable _value");return this._value.length}getIndex(e){return!!Array.isArray(this._value)&&(e>=this.length()?null:new f(this._value[e],this.path.concat(e)))}hasAttribute(e){return!!h(this._value)&&this._value.hasOwnProperty(e)}attributeKeys(){return h(this._value)?Object.keys(this._value):[]}getAttribute(e){if(!h(this._value))throw Error("getAttribute only applies to plain objects");return this.hasAttribute(e)?new f(this._value[e],this.path.concat(e)):null}set(e){return e===this._value?this:new f(e,this.path)}setIndex(e,t){if(!Array.isArray(this._value))throw Error("setIndex only applies to arrays");if(Object.is(t,this._value[e]))return this;let n=this._value.slice();return n[e]=t,new f(n,this.path)}setIndexAccessor(e,t){return this.setIndex(e,t.get())}unsetIndices(e){if(!Array.isArray(this._value))throw Error("unsetIndices only applies to arrays");let t=this._value.length,n=[];for(let r=0;r<t;r++)-1===e.indexOf(r)&&n.push(this._value[r]);return new f(n,this.path)}insertItemsAt(e,t){if(!Array.isArray(this._value))throw Error("insertItemsAt only applies to arrays");return new f(0===this._value.length&&0===e?t:this._value.slice(0,e).concat(t).concat(this._value.slice(e)),this.path)}setAttribute(e,t){if(!h(this._value))throw Error("Unable to set attribute of non-object container");return Object.is(t,this._value[e])?this:new f(Object.assign({},this._value,{[e]:t}),this.path)}
27setAttributeAccessor(e,t){return this.setAttribute(e,t.get())}unsetAttribute(e){if(!h(this._value))throw Error("Unable to unset attribute of non-object container");let t=Object.assign({},this._value);return delete t[e],new f(t,this.path)}}function h(e){return null!==e&&"object"==typeof e}function p(e){return null!==e&&"object"==typeof e}let g=/^[a-z_$]+/;function m(e){let t="";return e.forEach((e,n)=>{var r,i;t+=(r=e,i=0===n,"number"==typeof r?`[${r}]`:p(r)?Object.keys(r).map(e=>!function(e){switch(typeof e){case"number":case"string":case"boolean":return!0;default:return!1}}(r[e])?"":`[${e}=="${r[e]}"]`).join(""):"string"==typeof r&&g.test(r)?i?r:`.${r}`:`['${r}']`)}),t}function y(e){if("path"!==e.type)return[e,null];let t=e.nodes;return 0===t.length?[null,null]:1===t.length?[t[0],null]:[t[0],{type:"path",nodes:t.slice(1)}]}let v=/[0-9]/,b=/^[a-zA-Z0-9_]$/,w=/^[a-zA-Z_]$/,x={operator:["..",".",",",":","?"],comparator:[">=","<=","<",">","==","!="],keyword:["$","@"],boolean:["true","false"],paren:["[","]"]},k=Object.keys(x);class E{source;i;length;tokenizers;constructor(e){this.source=e,this.length=e.length,this.i=0,this.tokenizers=[this.tokenizeSymbol,this.tokenizeIdentifier,this.tokenizeNumber,this.tokenizeQuoted].map(e=>e.bind(this))}tokenize(){let e=[];for(;!this.EOF();){this.chompWhitespace();let t=null;if(!this.tokenizers.some(e=>!!(t=e()))||!t)throw Error(`Invalid tokens in jsonpath '${this.source}' @ ${this.i}`);e.push(t)}return e}takeWhile(e){let t=this.i,n="";for(;!this.EOF();){let t=e(this.source[this.i]);if(null===t)break;n+=t,this.i++}return this.i===t?null:n}EOF(){return this.i>=this.length}peek(){return this.EOF()?null:this.source[this.i]}consume(e){if(this.i+e.length>this.length)throw Error(`Expected ${e} at end of jsonpath`);if(e===this.source.slice(this.i,this.i+e.length))this.i+=e.length;else throw Error(`Expected "${e}", but source contained "${this.source.slice()}`)}tryConsume(e){if(this.i+e.length>this.length)return null;if(e===this.source.slice(this.i,this.i+e.length)){if(e[0].match(b)&&this.length>this.i+e.length){let t=this.source[this.i+e.length];if(t&&t.match(b))return null}return this.i+=e.length,e}return null}chompWhitespace(){this.takeWhile(e=>" "===e?"":null)}tokenizeQuoted(){let e=this.peek();if("'"===e||'"'===e){this.consume(e);let t=!1,n=this.takeWhile(n=>t?(t=!1,n):"\\"===n?(t=!0,""):n!=e?n:null);return this.consume(e),{type:"quoted",value:n,quote:'"'===e?"double":"single"}}return null}tokenizeIdentifier(){let e=!0,t=this.takeWhile(t=>e?(e=!1,t.match(w)?t:null):t.match(b)?t:null);return null!==t?{type:"identifier",name:t}:null}tokenizeNumber(){let e=this.i,t=!1,n=!1,r=!1;"-"===this.peek()&&(r=!0,this.consume("-"));let i=this.takeWhile(e=>"."===e&&!t&&n?(t=!0,e):(n=!0,e.match(v)?e:null));return null!==i?{type:"number",value:r?-i:+i,raw:r?`-${i}`:i}:(this.i=e,null)}tokenizeSymbol(){for(let e of k){let t=x[e].find(e=>this.tryConsume(e));if(t)return{type:e,symbol:t}}return null}}class _{tokens;length;i;constructor(e){this.tokens=new E(e).tokenize(),this.length=this.tokens.length,this.i=0}parse(){return this.parsePath()}EOF(){return this.i>=this.length}peek(){return this.EOF()?null:this.tokens[this.i]}consume(){let e=this.peek();return this.i+=1,e}probe(e){let t=this.peek();return t&&Object.keys(e).every(n=>n in t&&e[n]===t[n])?t:null}match(e){return this.probe(e)?this.consume():null}parseAttribute(){let e=this.match({type:"identifier"});if(e&&"identifier"===e.type)return{type:"attribute",name:e.name};let t=this.match({type:"quoted",quote:"single"});return t&&"quoted"===t.type?{type:"attribute",name:t.value||""}:null}parseAlias(){return this.match({type:"keyword",symbol:"@"})||this.match({type:"keyword",symbol:"$"})?{type:"alias",target:"self"}:null}parseNumber(){let e=this.match({type:"number"});return e&&"number"===e.type?{type:"number",value:e.value}:null}parseNumberValue(){let e=this.parseNumber();return e?e.value:null}parseSliceSelector(){let e=this.i,t=this.parseNumberValue();if(!this.match({type:"operator",symbol:":"}))return null===t?(this.i=e,null):{type:"index",value:t};let n={type:"range",start:t,end:this.parseNumberValue()};
27return this.match({type:"operator",symbol:":"})&&(n.step=this.parseNumberValue()),null===n.start&&null===n.end?(this.i=e,null):n}parseValueReference(){return this.parseAttribute()||this.parseSliceSelector()}parseLiteralValue(){let e=this.match({type:"quoted",quote:"double"});if(e&&"quoted"===e.type)return{type:"string",value:e.value||""};let t=this.match({type:"boolean"});return t&&"boolean"===t.type?{type:"boolean",value:"true"===t.symbol}:this.parseNumber()}parseFilterExpression(){let e=this.i,t=this.parseAttribute()||this.parseAlias();if(!t)return null;if(this.match({type:"operator",symbol:"?"}))return{type:"constraint",operator:"?",lhs:t};let n=this.match({type:"comparator"});if(!n||"comparator"!==n.type)return this.i=e,null;let r=this.parseLiteralValue();if(!r)throw Error(`Operator ${n.symbol} needs a literal value at the right hand side`);return{type:"constraint",operator:n.symbol,lhs:t,rhs:r}}parseExpression(){return this.parseFilterExpression()||this.parseValueReference()}parseUnion(){if(!this.match({type:"paren",symbol:"["}))return null;let e=[],t=this.parseFilterExpression()||this.parsePath()||this.parseValueReference();for(;t&&(e.push(t),!this.match({type:"paren",symbol:"]"}));){if(!this.match({type:"operator",symbol:","}))throw Error("Expected ]");if(!(t=this.parseFilterExpression()||this.parsePath()||this.parseValueReference()))throw Error("Expected expression following ','")}return{type:"union",nodes:e}}parseRecursive(){if(!this.match({type:"operator",symbol:".."}))return null;let e=this.parsePath();if(!e)throw Error("Expected path following '..' operator");return{type:"recursive",term:e}}parsePath(){let e=[],t=this.parseAttribute()||this.parseUnion()||this.parseRecursive();if(!t)return null;for(e.push(t);!this.EOF();)if(this.match({type:"operator",symbol:"."})){let t=this.parseAttribute();if(!t)throw Error("Expected attribute name following '.");e.push(t);continue}else if(this.probe({type:"paren",symbol:"["})){let t=this.parseUnion();if(!t)throw Error("Expected union following '['");e.push(t)}else{let t=this.parseRecursive();t&&e.push(t);break}return 1===e.length?e[0]:{type:"path",nodes:e}}}function S(e){let t=new _(e).parse();if(!t)throw Error(`Failed to parse JSON path "${e}"`);return t}function A(e,t){switch(e.type){case"attribute":return e.name;case"alias":return"self"===e.target?"@":"$";case"number":return`${e.value}`;case"range":{let n=[];return t||n.push("["),e.start&&n.push(`${e.start}`),n.push(":"),e.end&&n.push(`${e.end}`),e.step&&n.push(`:${e.step}`),t||n.push("]"),n.join("")}case"index":return t?`${e.value}`:`[${e.value}]`;case"constraint":{let n=e.rhs?` ${A(e.rhs,!1)}`:"",r=`${A(e.lhs,!1)} ${e.operator}${n}`;return t?r:`[${r}]`}case"string":return JSON.stringify(e.value);case"path":{let t=[],n=e.nodes.slice();for(;n.length>0;){let e=n.shift();e&&t.push(A(e,!1));let r=n[0];r&&"["!==A(r,!1)[0]&&t.push(".")}return t.join("")}case"union":return`[${e.nodes.map(e=>A(e,!0)).join(",")}]`;default:throw Error(`Unknown node type ${e.type}`);case"recursive":return`..${A(e.term,!1)}`}}class T{expr;constructor(e){if(!e)throw Error("Attempted to create Expression from null-value");if("expr"in e?this.expr=e.expr:this.expr=e,!("type"in this.expr))throw Error("Attempt to create Expression for expression with no type")}isPath(){return"path"===this.expr.type}isUnion(){return"union"===this.expr.type}isCollection(){return this.isPath()||this.isUnion()}isConstraint(){return"constraint"===this.expr.type}isRecursive(){return"recursive"===this.expr.type}isExistenceConstraint(){return"constraint"===this.expr.type&&"?"===this.expr.operator}isIndex(){return"index"===this.expr.type}isRange(){return"range"===this.expr.type}expandRange(e){let t="start"in this.expr&&this.expr.start||0;t=O(t,e);let n="end"in this.expr&&this.expr.end||(()=>{if(!e)throw Error("expandRange() required a probe that was not passed");return e.length()})();return{start:t,end:n=O(n,e),step:"step"in this.expr&&this.expr.step||1}}isAttributeReference(){return"attribute"===this.expr.type}isIndexReference(){return this.isIndex()||this.isRange()}name(){return"name"in this.expr?this.expr.name:""}isSelfReference(){return"alias"===this.expr.type&&"self"===this.expr.target}constraintTargetIsSelf(){return"constraint"===this.expr.type&&"alias"===this.expr.lhs.type&&"self"===this.expr.lhs.target}constraintTargetIsAttribute(){return"constraint"===this.expr.type&&"attribute"===this.expr.lhs.type}testConstraint(e){let t=this.expr;if("constraint"===t.type&&"alias"===t.lhs.type&&"self"===t.lhs.target){if("primitive"!==e.containerType())return!1;if("constraint"===t.type&&"?"===t.operator)return!0;
27let n=e.get(),r=t.rhs&&"value"in t.rhs?t.rhs.value:void 0;return C(n,t.operator,r)}if("constraint"!==t.type)return!1;let n=t.lhs;if(!n)throw Error("No LHS of expression");if("attribute"!==n.type)throw Error(`Constraint target ${n.type} not supported`);if("object"!==e.containerType())return!1;let r=e.getAttribute(n.name);if(null==r||"primitive"!==r.containerType())return!1;if(this.isExistenceConstraint())return!0;let i=t.rhs&&"value"in t.rhs?t.rhs.value:void 0;return C(r.get(),t.operator,i)}pathNodes(){return"path"===this.expr.type?this.expr.nodes:[this.expr]}prepend(e){return e?new T({type:"path",nodes:e.pathNodes().concat(this.pathNodes())}):this}concat(e){return e?e.prepend(this):this}descend(){return(function(e){var t,n;let[r,i]=y(e);if(!r)throw Error("Head cannot be null");return t=r,n=i,"union"!==t.type?[[t,n]]:t.nodes.map(e=>{if("path"===e.type){let[t,r]=y(e);return[t,function(e,t){if(!e&&!t)return null;let n=e?e.nodes:[],r=t?t.nodes:[];return{type:"path",nodes:n.concat(r)}}(r,n)]}return[e,n]})})(this.expr).map(e=>{let[t,n]=e;return{head:t?new T(t):null,tail:n?new T(n):null}})}unwrapRecursive(){if("recursive"!==this.expr.type)throw Error(`Attempt to unwrap recursive on type ${this.expr.type}`);return new T(this.expr.term)}toIndicies(e){if("index"!==this.expr.type&&"range"!==this.expr.type)throw Error("Node cannot be converted to indexes");if("index"===this.expr.type)return[O(this.expr.value,e)];let t=[],n=this.expandRange(e),{start:r,end:i}=n;n.step<0&&([r,i]=[i,r]);for(let e=r;e<i;e++)t.push(e);return t}toFieldReferences(){if(this.isIndexReference())return this.toIndicies();if("attribute"===this.expr.type)return[this.expr.name];throw Error(`Can't convert ${this.expr.type} to field references`)}toString(){return A(this.expr,!1)}static fromPath(e){let t=S(e);if(!t)throw Error(`Failed to parse path "${e}"`);return new T(t)}static attributeReference(e){return new T({type:"attribute",name:e})}static indexReference(e){return new T({type:"index",value:e})}}function C(e,t,n){switch(t){case">":return e>n;case">=":return e>=n;case"<":return e<n;case"<=":return e<=n;case"==":return e===n;case"!=":return e!==n;default:throw Error(`Unsupported binary operator ${t}`)}}function O(e,t){if(e>=0)return e;if(!t)throw Error("interpretNegativeIndex() must have a probe when < 0");return e+t.length()}class j{head;tail;constructor(e,t){this.head=e,this.tail=t}iterate(e){let t=[this];if(this.head&&this.head.isConstraint()){let n=!0;for(;n;)n=(t=o(t.map(t=>t.iterateConstraints(e)))).some(e=>e.head&&e.head.isConstraint())}return t}isRecursive(){return!!(this.head&&this.head.isRecursive())}hasArrived(){return null===this.head&&null===this.tail}extractRecursives(){return this.head&&this.head.isRecursive()?new j(null,this.head.unwrapRecursive().concat(this.tail)).descend():[]}iterateConstraints(e){let t=this.head;if(null===t||!t.isConstraint())return[this];let n=[];if("primitive"===e.containerType()&&t.constraintTargetIsSelf())return t.testConstraint(e)&&n.push(...this.descend()),n;if("array"===e.containerType()){let r=e.length();for(let i=0;i<r;i++){let r=e.getIndex(i);r&&t.testConstraint(r)&&n.push(new j(new T({type:"index",value:i}),this.tail))}return n}return"object"===e.containerType()?t.constraintTargetIsSelf()?[]:t.testConstraint(e)?this.descend():n:n}descend(){return this.tail?this.tail.descend().map(e=>new j(e.head,e.tail)):[new j(null,null)]}toString(){let e=["<"];return this.head&&e.push(this.head.toString()),e.push("|"),this.tail&&e.push(this.tail.toString()),e.push(">"),e.join("")}}class D{active;recursives;payload;constructor(e,t){this.active=e||[],t?(this.recursives=t.recursives,this.payload=t.payload):this.recursives=[],this.extractRecursives()}setPayload(e){return this.payload=e,this}extractRecursives(){this.active=this.active.filter(e=>!e.isRecursive()||(this.recursives.push(...e.extractRecursives()),!1))}activeRecursives(e){return this.recursives.filter(t=>{let n=t.head;return!!n&&(!!(n.isConstraint()||"array"===e.containerType()&&n.isIndexReference())||"object"===e.containerType()&&n.isAttributeReference()&&e.hasAttribute(n.name()))})}match(e){return this.iterate(e).extractMatches(e)}iterate(e){let t=[];
27return this.active.concat(this.activeRecursives(e)).forEach(n=>{t.push(...n.iterate(e))}),new D(t,this)}isDestination(){return this.active.some(e=>e.hasArrived())}hasRecursives(){return this.recursives.length>0}extractMatches(e){let t=[],n=[];if(this.active.forEach(r=>{if(r.hasArrived())return void n.push(new T({type:"alias",target:"self"}));let i=r.head;if(i&&!("array"===e.containerType()&&!i.isIndexReference())&&!("object"===e.containerType()&&!i.isAttributeReference()))if(r.tail){let e=new D(r.descend(),this);i.toFieldReferences().forEach(()=>{t.push({target:i,matcher:e})})}else n.push(i)}),this.hasRecursives()){let n=new D([],this);if("array"===e.containerType()){let r=e.length();for(let e=0;e<r;e++)t.push({target:T.indexReference(e),matcher:n})}else"object"===e.containerType()&&e.attributeKeys().forEach(e=>{t.push({target:T.attributeReference(e),matcher:n})})}return n.length>0?{leads:t,delivery:{targets:n,payload:this.payload}}:{leads:t}}static fromPath(e){let t=S(e);if(!t)throw Error(`Failed to parse path from "${e}"`);return new D(new j(null,new T(t)).descend())}}class R{_value;path;constructor(e,t){this._value=e,this.path=t||[]}containerType(){return Array.isArray(this._value)?"array":null!==this._value&&"object"==typeof this._value?"object":"primitive"}length(){if(!Array.isArray(this._value))throw Error("Won't return length of non-indexable _value");return this._value.length}getIndex(e){return!!Array.isArray(this._value)&&(e>=this.length()?null:new R(this._value[e],this.path.concat(e)))}hasAttribute(e){return!!p(this._value)&&this._value.hasOwnProperty(e)}attributeKeys(){return p(this._value)?Object.keys(this._value):[]}getAttribute(e){if(!p(this._value))throw Error("getAttribute only applies to plain objects");return this.hasAttribute(e)?new R(this._value[e],this.path.concat(e)):null}get(){return this._value}}function I(e,t){let n=[];if(e.isIndexReference())e.toIndicies(t).forEach(e=>{n.push(t.getIndex(e))});else if(e.isAttributeReference())n.push(t.getAttribute(e.name()));else if(e.isSelfReference())n.push(t);else throw Error(`Unable to derive accessor for target ${e.toString()}`);return c(n)}function P(e,t){return(function(e,t){let n=[];return function e(t,n){let{leads:r,delivery:i}=t.match(n);r.forEach(t=>{I(t.target,n).forEach(n=>{e(t.matcher,n)})}),i&&i.targets.forEach(e=>{"function"==typeof i.payload&&i.payload(I(e,n))})}(D.fromPath(e).setPayload(function(e){n.push(...e)}),new R(t)),n})(e,t).map(e=>({path:e.path,value:e.get()}))}function M(e,t){if("string"!=typeof t)return t;let[n]=(0,a.$i)(e,t,{allowExceedingIndices:!0});return n}class N{path;dmpPatch;id;constructor(e,t,n){this.id=e,this.path=t,this.dmpPatch=(0,a.iz)(n)}apply(e,t){let n=t;if("primitive"===n.containerType())return n;for(let r of e){if(r.isIndexReference()){for(let e of r.toIndicies(t)){let t=n.getIndex(e);if(!t)continue;let r=t.get(),i=M(this.dmpPatch,r);n=n.setIndex(e,i)}continue}if(r.isAttributeReference()&&n.hasAttribute(r.name())){let e=n.getAttribute(r.name());if(!e)continue;let t=e.get(),i=M(this.dmpPatch,t);n=n.setAttribute(r.name(),i);continue}throw Error(`Unable to apply diffMatchPatch to target ${r.toString()}`)}return n}}function $(e,t){return"number"==typeof e&&Number.isFinite(e)?e+t:e}class L{path;value;id;constructor(e,t,n){this.path=t,this.value=n,this.id=e}apply(e,t){let n=t;if("primitive"===n.containerType())return n;for(let r of e){if(r.isIndexReference()){for(let e of r.toIndicies(t)){let t=n.getIndex(e);if(!t)continue;let r=t.get();n=n.setIndex(e,$(r,this.value))}continue}if(r.isAttributeReference()){let e=n.getAttribute(r.name());if(!e)continue;let t=e.get();n=n.setAttribute(r.name(),$(t,this.value));continue}throw Error(`Unable to apply to target ${r.toString()}`)}return n}}function F(e,t){let n=[];return e.forEach(e=>{e.isIndexReference()&&n.push(...e.toIndicies(t))}),n.sort()}class U{location;path;items;id;constructor(e,t,n,r){this.id=e,this.location=t,this.path=n,this.items=r}apply(e,t){var n,r;let i=t;if("array"!==t.containerType())throw Error("Attempt to apply insert patch to non-array value");switch(this.location){case"before":{let r,o=(r=l(F(n=e,t))||0,n.forEac
27h(e=>{if(e.isRange()){let{start:t}=e.expandRange();t<r&&(r=t)}}),r);i=i.insertItemsAt(o,this.items);break}case"after":{let n,o=(n=s(F(r=e,t))||0,r.forEach(e=>{if(e.isRange()){let{end:t}=e.expandRange();t>n&&(n=t)}}),n);i=i.insertItemsAt(o+1,this.items);break}case"replace":{let n=F(e,t);i=(i=i.unsetIndices(n)).insertItemsAt(n[0],this.items);break}default:throw Error(`Unsupported location atm: ${this.location}`)}return i}}class z{id;path;value;constructor(e,t,n){this.id=e,this.path=t,this.value=n}apply(e,t){let n=t;return e.forEach(e=>{if(!e.isIndexReference())if(e.isAttributeReference())"primitive"===n.containerType()?n=n.set({[e.name()]:this.value}):n.hasAttribute(e.name())||(n=t.setAttribute(e.name(),this.value));else throw Error(`Unable to apply to target ${e.toString()}`)}),n}}class B{id;path;value;constructor(e,t,n){this.id=e,this.path=t,this.value=n}apply(e,t){let n=t;return e.forEach(e=>{if(e.isSelfReference())n=n.set(this.value);else if(e.isIndexReference())e.toIndicies(t).forEach(e=>{n=n.setIndex(e,this.value)});else if(e.isAttributeReference())n="primitive"===n.containerType()?n.set({[e.name()]:this.value}):n.setAttribute(e.name(),this.value);else throw Error(`Unable to apply to target ${e.toString()}`)}),n}}class q{id;path;value;constructor(e,t){this.id=e,this.path=t}apply(e,t){let n=t;switch(t.containerType()){case"array":n=n.unsetIndices(F(e,t));break;case"object":e.forEach(e=>{n=n.unsetAttribute(e.name())});break;default:throw Error("Target value is neither indexable or an object. This error should potentially just be silently ignored?")}return n}}class V{patches;constructor(e){this.patches=function e(t){let n=[];if(Array.isArray(t))return t.reduce((t,n)=>t.concat(e(n)),n);
27let{set:r,setIfMissing:i,unset:o,diffMatchPatch:a,inc:s,dec:l,insert:u}=t;if(i&&Object.keys(i).forEach(e=>{n.push(new z(t.id,e,i[e]))}),r&&Object.keys(r).forEach(e=>{n.push(new B(t.id,e,r[e]))}),o&&o.forEach(e=>{n.push(new q(t.id,e))}),a&&Object.keys(a).forEach(e=>{n.push(new N(t.id,e,a[e]))}),s&&Object.keys(s).forEach(e=>{n.push(new L(t.id,e,s[e]))}),l&&Object.keys(l).forEach(e=>{n.push(new L(t.id,e,-l[e]))}),u){let e,r;if("before"in u)e="before",r=u.before;else if("after"in u)e="after",r=u.after;else if("replace"in u)e="replace",r=u.replace;else throw Error("Invalid insert patch");n.push(new U(t.id,e,r,u.items))}return n}(e)}apply(e){let t=new f(e);return this.applyViaAccessor(t).get()}applyViaAccessor(e){let t=e,n=e.getAttribute("_id");if(!n)throw Error("Cannot apply patch to document with no _id");let r=n.get();for(let e of this.patches)e.id===r&&(t=function e(t,n){var r;let i=t.payload instanceof B||t.payload instanceof z,o=n,{leads:a,delivery:s}=t.match(n);return a.forEach(t=>{if(t.target.isIndexReference())t.target.toIndicies().forEach(n=>{let r=o.getIndex(n);if(!r)throw Error("Index out of bounds");o=o.setIndexAccessor(n,e(t.matcher,r))});else if(t.target.isAttributeReference()){i&&"primitive"===o.containerType()&&(o=o.set({}));let n=o.getAttribute(t.target.name());if(!n&&i&&(n=(o=o.setAttribute(t.target.name(),{})).getAttribute(t.target.name())),!n)return;let r=e(t.matcher,n);n!==r&&(o=o.setAttributeAccessor(t.target.name(),r))}else throw Error(`Unable to handle target ${t.target.toString()}`)}),s&&(r=s.payload)&&"object"==typeof r&&null!==r&&"apply"in r&&"function"==typeof r.apply&&(o=s.payload.apply(s.targets,o)),o}(D.fromPath(e.path).setPayload(e),t));return t}}let H=u.A;class W{params;compiled;_appliesToMissingDocument;constructor(e){this.params=e}get transactionId(){return this.params.transactionId}get transition(){return this.params.transition}get identity(){return this.params.identity}get previousRev(){return this.params.previousRev}get resultRev(){return this.params.resultRev}get mutations(){return this.params.mutations}get timestamp(){if("string"==typeof this.params.timestamp)return new Date(this.params.timestamp)}get effects(){return this.params.effects}assignRandomTransactionId(){this.params.transactionId=H(),this.params.resultRev=this.params.transactionId}appliesToMissingDocument(){if("u">typeof this._appliesToMissingDocument)return this._appliesToMissingDocument;let e=this.mutations[0];return e?this._appliesToMissingDocument=!!(e.create||e.createIfNotExists||e.createOrReplace):this._appliesToMissingDocument=!0,this._appliesToMissingDocument}compile(){let e=[],t=e=>e?._createdAt||this.params.timestamp||new Date().toISOString();this.mutations.forEach(n=>{if(n.create){let r=n.create||{};e.push(e=>e||Object.assign(r,{_createdAt:t(r)}));return}if(n.createIfNotExists){let r=n.createIfNotExists||{};e.push(e=>null===e?Object.assign(r,{_createdAt:t(r)}):e);return}if(n.createOrReplace){let r=n.createOrReplace||{};e.push(()=>Object.assign(r,{_createdAt:t(r)}));return}if(n.delete)return void e.push(()=>null);if(n.patch){if("query"in n.patch)return;let t=new V(n.patch);e.push(e=>t.apply(e));return}throw Error(`Unsupported mutation ${JSON.stringify(n,null,2)}`)}),"string"==typeof this.params.timestamp&&e.push(e=>e?Object.assign(e,{_updatedAt:this.params.timestamp}):null);let n=this.previousRev,r=this.resultRev||this.transactionId;this.compiled=t=>{if(n&&t&&n!==t._rev)throw Error(`Previous revision for this mutation was ${n}, but the document revision is ${t._rev}`);let i=t;for(let t of e)i=t(i);return i&&r&&(i===t&&(i=Object.assign({},t)),i._rev=r),i}}apply(e){d("Applying mutation %O to document %O",this.mutations,e),this.compiled||this.compile();let t=this.compiled(e);return d("  => %O",t),t}static applyAll(e,t){return t.reduce((e,t)=>t.apply(e),e)}static squash(e,t){return new W({mutations:t.reduce((e,t)=>e.concat(...t.mutations),[])})}}class Y{incoming=[];submitted=[];pending=[];HEAD;EDGE;onRebase;onMutation;onConsistencyChanged;onRemoteMutation;inconsistentAt=null;lastStagedAt=null;constructor(e){this.reset(e),this.HEAD=e,this.EDGE=e}reset(e){this.incoming=[],this.submitted=[],this.pending=[],this.inconsistentAt=null,this.HEAD=e,this.EDGE=e,this.considerIncoming(),this.updateConsistencyFlag()}arrive(e){this.incoming.push(e),this.considerIncoming(),this.updateConsistencyFlag()}stage(e,t){if(!e.transactionId)throw Error("Mutations _must_ have transactionId when submitted");this.lastStagedAt=new Date,d("Staging mutation %s (pushed to pending)",e.transactionId),this.pending.push(e),this.EDGE=e.apply(this.EDGE),this.onMutation&&!t&&this.onMutation({mutation:e,document:this.EDGE,remote:!1});let n=e.transactionId;return this.updateConsistencyFlag(),{success:()=>{this.pendingSuccessfullySubmitted(n),this.updateConsistencyFlag()},failure:()=>{this.pendingFailed(n),this.updateConsistencyFlag()}}}isConsistent(){return!this.inconsistentAt}considerIncoming(){let e=!1,t,n=[];if(this.HEAD&&this.HEAD._updatedAt){let e=new Date(this.HEAD._updatedAt);this.incoming.find(t=>t.timestamp&&t.timestamp<e)&&(this.incoming=this.incoming.filter(t=>t.timestamp&&t.timestamp<e))}let r=0;do{if(this.HEAD){let e=this.HEAD;t=e._rev?this.incoming.find(t=>t.previousRev===e._rev):void 0}else t=this.incoming.find(e=>e.appliesToMissingDocument());if(t){let i=this.applyIncoming(t);if((e=e||i)&&n.push(t),r++>10)throw Error(`Mutator stuck flushing incoming mutations. Probably stuck here: ${JSON.stringify(t)}`)}}while(t);this.incoming.length>0&&d.enabled&&d("Unable to apply mutations %s",this.incoming.map(e=>e.transactionId).join(", ")),e&&this.rebase(n)}updateConsistencyFlag(){let e=this.isConsistent(),t=0===this.pending.length&&0===this.submitted.length&&0===this.incoming.length;t?this.inconsistentAt=null:this.inconsistentAt||(this.inconsistentAt=new Date),e!=t&&this.onConsistencyChanged&&(d(t?"Buffered document is inconsistent":"Buffered document is consistent"),this.onConsistencyChanged(t))}applyIncoming(e){if(!e)return!1;if(!e.transactionId)throw Error("Received incoming mutation without a transaction ID");if(d("Applying mutation %s -> %s to rev %s",e.previousRev,e.resultRev,this.HEAD&&this.HEAD._rev),this.HEAD=e.apply(this.HEAD),this.onRemoteMutation&&this.onRemoteMutation(e),this.incoming=this.incoming.filter(t=>t.transactionId!==e.transactionId),this.hasUnresolvedMutations()){let t=this.consumeUnresolved(e.transactionId);return d.enabled&&(d(`Incoming mutation ${e.transactionId} appeared while there were pending or submitted local mutations`),d(`Submitted txnIds: ${this.submitted.map(e=>e.transactionId).join(", ")}`),d(`Pending txnIds: ${this.pending.map(e=>e.transactionId).join(", ")}`),d("needRebase === %s",t)),t}return d("Remote mutation %s arrived w/o any pending or submitted local mutations",e.transactionId),this.EDGE=this.HEAD,this.onMutation&&this.onMutation({mutation:e,document:this.EDGE,remote:!0}),!1}hasUnresolvedMutations(){return this.submitted.length>0||this.pending.length>0}consumeUnresolved(e){if(0===this.submitted.length&&0===this.pending.length)return!1;if(0!==this.submitted.length){if(this.submitted[0].transactionId===e)return d("Remote mutation %s matches upcoming submitted mutation, consumed from 'submitted' buffer",e),this.submitted.shift(),!1}else if(this.pending.length>0&&this.pending[0].transactionId===e)return d("Remote mutation %s matches upcoming pending mutation, consumed from 'pending' buffer",e),this.pending.shift(),!1;return d("The mutation was not the upcoming mutation, scrubbing. Pending: %d, Submitted: %d",this.pending.length,this.submitted.length),this.submitted=this.submitted.filter(t=>t.transactionId!==e),this.pending=this.pending.filter(t=>t.transactionId!==e),d("After scrubbing: Pending: %d, Submitted: %d",this.pending.length,this.submitted.length),!0}pendingSuccessfullySubmitted(e){let t;if(0===this.pending.length)return;let n=this.pending[0];if(n.transactionId===e){this.pending.shift(),this.submitted.push(n);return}let r=[];this.pending.forEach(n=>{if(n.transactionId===e){t=n;return}r.push(n)}),t&&this.submitted.push(t),this.pending=r,this.rebase([])}pendingFailed(e){this.pending=this.pending.filter(t=>t.transactionId!==e),this.rebase([])}rebase(e){let t=this.EDGE;this.EDGE=W.applyAll(this.HEAD,this.submitted.concat(this.pending)),null!==t&&null!==this.EDGE&&(t._rev=this.EDGE._rev),!r(this.EDGE,t)&&this.onRebase&&this.onRebase(this.EDGE,e,this.pending)}}class G{BASIS;PRESTAGE;setOperations;documentPresent;out=[];staged;constructor(e){e?d("Reset mutation buffer to rev %s",e._rev):d("Reset mutation buffer state to document being deleted"),this.staged=[],this.setOperations={},this.documentPresent=!1,this.BASIS=e,this.PRESTAGE=e}
27add(e){e.mutations.forEach(e=>this.addOperation(e))}hasChanges(){return this.out.length>0||Object.keys(this.setOperations).length>0}purge(e){this.stashStagedOperations();let t=null;return this.out.length>0&&(d("Purged mutation buffer"),t=new W({mutations:this.out,resultRev:e,transactionId:e})),this.out=[],this.documentPresent=!1,t}addOperation(e){if(e.patch&&e.patch.set&&"id"in e.patch&&e.patch.id===this.PRESTAGE?._id&&2===Object.keys(e.patch).length){let t=e.patch.set,n={};for(let e of Object.keys(t))t.hasOwnProperty(e)&&(this.optimiseSetOperation(e,t[e])||(n[e]=t[e]));Object.keys(n).length>0&&(d("Unoptimizable set-operation detected, purging optimization buffer"),this.staged.push({patch:{id:this.PRESTAGE._id,set:n}}),this.stashStagedOperations());return}if(e.createIfNotExists&&this.PRESTAGE&&e.createIfNotExists._id===this.PRESTAGE._id){this.documentPresent||(this.staged.push(e),this.documentPresent=!0,this.stashStagedOperations());return}d("Unoptimizable mutation detected, purging optimization buffer"),this.staged.push(e),this.stashStagedOperations()}optimiseSetOperation(e,t){if("object"==typeof t)return!1;let n=P(e,this.PRESTAGE);if(1!==n.length)return!1;let r=n[0];if("object"==typeof r.value||!this.PRESTAGE)return!1;let i=null;if(r.value===t)i=null;else if("string"==typeof r.value&&"string"==typeof t)try{let n=(0,a.w1)((0,a.jW)(r.value,t));i={patch:{id:this.PRESTAGE._id,diffMatchPatch:{[e]:n}}}}catch{return!1}else i={patch:{id:this.PRESTAGE._id,set:{[e]:t}}};let o=m(r.path);return i?this.setOperations[o]=i:delete this.setOperations[o],!0}stashStagedOperations(){let e=[];Object.keys(this.setOperations).forEach(t=>{let n=this.setOperations[t];n&&e.push(n)}),e.push(...this.staged),e.length>0&&(this.PRESTAGE=new W({mutations:e}).apply(this.PRESTAGE),this.staged=[],this.setOperations={}),this.out.push(...e)}rebase(e){return this.stashStagedOperations(),null===e?(this.out=[],this.BASIS=e,this.PRESTAGE=e,this.documentPresent=!1):(this.BASIS=e,this.out?this.PRESTAGE=new W({mutations:this.out}).apply(this.BASIS):this.PRESTAGE=this.BASIS),this.PRESTAGE}}class K{mutations;tries;resolve;reject;
27constructor(e,{resolve:t,reject:n}){this.mutations=e,this.tries=0,this.resolve=t,this.reject=n}apply(e){return W.applyAll(e,this.mutations)}squash(e){let t=W.squash(e,this.mutations);return t.assignRandomTransactionId(),t}}let X=(e,t)=>e.concat(t.mutations);class Z{mutations;document;LOCAL;commits;buffer;onMutation;onRemoteMutation;onRebase;onDelete;onConsistencyChanged;commitHandler;committerRunning=!1;constructor(e){this.buffer=new G(e),this.document=new Y(e),this.document.onMutation=e=>this.handleDocMutation(e),this.document.onRemoteMutation=e=>this.onRemoteMutation&&this.onRemoteMutation(e),this.document.onRebase=(e,t,n)=>this.handleDocRebase(e,t,n),this.document.onConsistencyChanged=e=>this.handleDocConsistencyChanged(e),this.LOCAL=e,this.mutations=[],this.commits=[]}reset(e){e?d("Document state reset to revision %s",e._rev):d("Document state reset to being deleted"),this.document.reset(e),this.rebase([],[]),this.handleDocConsistencyChanged(this.document.isConsistent())}add(e){this.onConsistencyChanged&&this.onConsistencyChanged(!1),d("Staged local mutation"),this.buffer.add(e);let t=this.LOCAL;this.LOCAL=e.apply(this.LOCAL),this.onMutation&&t!==this.LOCAL&&(d("onMutation fired"),this.onMutation({mutation:e,document:this.LOCAL,remote:!1}),null===this.LOCAL&&this.onDelete&&this.onDelete(this.LOCAL))}arrive(e){if(d("Remote mutation arrived %s -> %s",e.previousRev,e.resultRev),e.previousRev===e.resultRev)throw Error(`Mutation ${e.transactionId} has previousRev === resultRev (${e.previousRev})`);return this.document.arrive(e)}commit(){return new Promise((e,t)=>{if(!this.buffer.hasChanges())return void e();d("Committing local changes");let n=this.buffer.purge();this.commits.push(new K(n?[n]:[],{resolve:e,reject:t})),this.buffer=new G(this.LOCAL),this.performCommits()})}performCommits(){if(!this.commitHandler)throw Error("No commitHandler configured for this BufferedDocument");this.committerRunning||this._cycleCommitter()}_cycleCommitter(){let e=this.commits.shift();if(!e){this.committerRunning=!1;return}this.committerRunning=!0;let t=e.squash(this.LOCAL),n=this.document.stage(t,!0),r=()=>{d("Commit succeeded"),n.success(),e.resolve(),this._cycleCommitter()},i=()=>{d("Commit failed"),e.tries+=1,null!==this.LOCAL&&this.commits.unshift(e),n.failure(),e.tries<200&&setTimeout(()=>this._cycleCommitter(),Math.min(1e3*e.tries,6e4))},o=e=>{this.commits.forEach(t=>t.reject(e)),this.commits=[],this.reset(this.document.HEAD),this.buffer=new G(this.LOCAL),this.committerRunning=!1};d("Posting commit"),this.commitHandler&&this.commitHandler({mutation:t,success:r,failure:i,cancel:o})}handleDocRebase(e,t,n){this.rebase(t,n)}handleDocumentDeleted(){d("Document deleted"),null!==this.LOCAL&&this.onDelete&&this.onDelete(this.LOCAL),this.commits=[],this.mutations=[]}handleDocMutation(e){if(0===this.commits.length&&!this.buffer.hasChanges()){d("Document mutated from remote with no local changes"),this.LOCAL=this.document.EDGE,this.buffer=new G(this.LOCAL),this.onMutation&&this.onMutation(e);return}d("Document mutated from remote with local changes"),null===this.document.EDGE&&this.handleDocumentDeleted(),this.rebase([e.mutation],[])}rebase(e,t){d("Rebasing document"),null===this.document.EDGE&&this.handleDocumentDeleted();let n=this.LOCAL;this.LOCAL=this.commits.reduce((e,t)=>t.apply(e),this.document.EDGE),this.LOCAL=this.buffer.rebase(this.LOCAL),null!==n&&null!==this.LOCAL&&(n._rev=this.LOCAL._rev),!r(this.LOCAL,n)&&this.onRebase&&this.onRebase(this.LOCAL,e.reduce(X,[]),t.reduce(X,[]))}handleDocConsistencyChanged(e){if(!this.onConsistencyChanged)return;let t=this.commits.length>0||this.buffer.hasChanges();e&&!t&&this.onConsistencyChanged(!0),e||this.onConsistencyChanged(!1)}}},24697:(e,t)=>{"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}
27(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance")}()}function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t,n){return t}t.TS=function(e,t,o){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:i;return function e(t,o,a,l){var u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:i,c=Array.isArray(a)?"array":null===a?"null":r(a);return"object"===c?function(t,r,o,a){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:i,u=n(s(t,r,o,a),2),c=u[0],d=u[1];return c?d:Object.keys(o).reduce(function(t,n){return e(t,r,o[n],a.concat(l(o[n],n,o)),l)},d)}(t,o,a,l,u):"array"===c?function(t,r,o,a){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:i,u=n(s(t,r,o,a),2),c=u[0],d=u[1];return c?d:o.reduce(function(t,n,i){return e(t,r,n,a.concat(l(n,i,o)),l)},d)}(t,o,a,l,u):n(s(t,o,a,l),2)[1]}(o,t,e,[],a)};var o={_:"SKIP_MARKER"};function a(e){return[o,e]}function s(e,t,n,r){var i=t(e,n,r);return i===a?[!0,e]:Array.isArray(i)&&i[0]===o?[!0,i[1]]:[!1,i]}},24796:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(45720),i=n(16194),o=n(27778);function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=(0,i.lI)(e);return(0,o.N)(function(t,i){(n?(0,r.x)(e,t,n):(0,r.x)(e,t)).subscribe(i)})}},25035:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>eX});var r,i,o=n(66954),a=n(82203),s="data-focus-lock",l="data-focus-lock-disabled",u=n(68807),c={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},d=n(52929),f=(0,d.C)({},function(e){return{target:e.target,currentTarget:e.currentTarget}}),h=(0,d.C)(),p=(0,d.C)(),g=(0,d.f)({async:!0,ssr:"undefined"!=typeof document}),m=(0,a.createContext)(void 0),y=[],v=(0,a.forwardRef)(function(e,t){var n,r=(0,a.useState)(),i=r[0],d=r[1],p=(0,a.useRef)(),v=(0,a.useRef)(!1),b=(0,a.useRef)(null),w=(0,a.useState)({})[1],x=e.children,k=e.disabled,E=void 0!==k&&k,_=e.noFocusGuards,S=void 0!==_&&_,A=e.persistentFocus,T=e.crossFrame,C=e.autoFocus,O=(e.allowTextSelection,e.group),j=e.className,D=e.whiteList,R=e.hasPositiveIndices,I=e.shards,P=void 0===I?y:I,M=e.as,N=e.lockProps,$=e.sideCar,L=e.returnFocus,F=void 0!==L&&L,U=e.focusOptions,z=e.onActivation,B=e.onDeactivation,q=(0,a.useState)({})[0],V=(0,a.useCallback)(function(e){var t=e.captureFocusRestore;if(!b.current){var n,r=null==(n=document)?void 0:n.activeElement;b.current=r,r!==document.body&&(b.current=t(r))}p.current&&z&&z(p.current),v.current=!0,w()},[z]),H=(0,a.useCallback)(function(){v.current=!1,B&&B(p.current),w()},[B]),W=(0,a.useCallback)(function(e){var t=b.current;if(t){var n=("function"==typeof t?t():t)||document.body,r="function"==typeof F?F(n):F;if(r){var i="object"==typeof r?r:void 0;b.current=null,e?Promise.resolve().then(function(){return n.focus(i)}):n.focus(i)}}},[F]),Y=(0,a.useCallback)(function(e){v.current&&f.useMedium(e)},[]),G=h.useMedium,K=(0,a.useCallback)(function(e){p.current!==e&&(p.current=e,d(e))},[]),X=(0,o.A)(((n={})[l]=E&&"disabled",n[s]=O,n),void 0===N?{}:N),Z=!0!==S,Q=Z&&"tail"!==S,J=(0,u.S)([t,K]),ee=(0,a.useMemo)(function(){return{observed:p,shards:P,enabled:!E,active:v.current}},[E,v.current,P,i]);return a.createElement(a.Fragment,null,Z&&[a.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:E?-1:0,style:c}),R?a.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:E?-1:1,style:c}):null],!E&&a.createElement($,{id:q,sideCar:g,observed:i,disabled:E,persistentFocus:void 0!==A&&A,crossFrame:void 0===T||T,autoFocus:void 0===C||C,whiteList:D,shards:P,onActivation:V,onDeactivation:H,returnFocus:W,focusOptions:U,noFocusGuards:S}),a.createElement(void 0===M?"div":M,(0,o.A)({ref:J},X,{className:j,onBlur:G,onFocus:Y}),a.createElement(m.Provider,{value:ee},x)),Q&&a.createElement("div",{"data-focus-guard":!0,tabIndex:E?-1:0,style:c}))});v.propTypes={};var b=n(57602),w=n(92575),x=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},k=function(e){return Array.isArray(e)?e:[e]},E=function(e){return Array.isArray(e)?e[0]:e},_=function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!!t&&!!t.getPropertyValue&&("none"===t.getPropertyValue("display")||"hidden"===t.getPropertyValue("visibility"))},S=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},A=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},T=function(e,t){var n,r,i=e.get(t);if(void 0!==i)return i;var o=(n=t,r=T.bind(void 0,e),!n||A(n)||!_(n)&&!n.hasAttribute("inert")&&r(S(n)));return e.set(t,o),o}
27,C=function(e,t){var n,r=e.get(t);if(void 0!==r)return r;var i=(n=C.bind(void 0,e),!t||!!A(t)||!!R(t)&&n(S(t)));return e.set(t,i),i},O=function(e){return e.dataset},j=function(e){return"INPUT"===e.tagName},D=function(e){return j(e)&&"radio"===e.type},R=function(e){return![!0,"true",""].includes(e.getAttribute("data-no-autofocus"))},I=function(e){var t;return!!(e&&(null==(t=O(e))?void 0:t.focusGuard))},P=function(e){return!I(e)},M=function(e){return!!e},N=function(e,t){var n=Math.max(0,e.tabIndex),r=Math.max(0,t.tabIndex),i=n-r,o=e.index-t.index;if(i){if(!n)return 1;if(!r)return -1}return i||o},$=function(e,t,n){return x(e).map(function(e,t){var r=e.tabIndex<0&&!e.hasAttribute("tabindex")?0:e.tabIndex;return{node:e,index:t,tabIndex:n&&-1===r?(e.dataset||{}).focusGuard?0:-1:r}}).filter(function(e){return!t||e.tabIndex>=0}).sort(N)},L="button:enabled,select:enabled,textarea:enabled,input:enabled,a[href],area[href],summary,iframe,object,embed,audio[controls],video[controls],[tabindex],[contenteditable],[autofocus]",F="".concat(L,", [data-focus-guard]"),U=function(e,t){return x((e.shadowRoot||e).children).reduce(function(e,n){return e.concat(n.matches(t?F:L)?[n]:[],U(n))},[])},z=function(e,t){var n;return e instanceof HTMLIFrameElement&&(null==(n=e.contentDocument)?void 0:n.body)?B([e.contentDocument.body],t):[e]},B=function(e,t){return e.reduce(function(e,n){var r,i=U(n,t),o=(r=[]).concat.apply(r,i.map(function(e){return z(e,t)}));return e.concat(o,n.parentNode?x(n.parentNode.querySelectorAll(L)).filter(function(e){return e===n}):[])},[])},q=function(e,t){return x(e).filter(function(e){return T(t,e)}).filter(function(e){var t;return!((j(t=e)||"BUTTON"===t.tagName)&&("hidden"===t.type||t.disabled))})},V=function(e,t){return void 0===t&&(t=new Map),x(e).filter(function(e){return C(t,e)})},H=function(e,t,n){return $(q(B(e,n),t),!0,n)},W=function(e,t){return $(q(B(e),t),!1)},Y=function(e,t){return e.shadowRoot?Y(e.shadowRoot,t):!!(void 0!==Object.getPrototypeOf(e).contains&&Object.getPrototypeOf(e).contains.call(e,t))||x(e.children).some(function(e){var n;if(e instanceof HTMLIFrameElement){var r=null==(n=e.contentDocument)?void 0:n.body;return!!r&&Y(r,t)}return Y(e,t)})},G=function(e){try{return e()}catch(e){return}},K=function(e){if(void 0===e&&(e=document),e&&e.activeElement){var t=e.activeElement;return t.shadowRoot?K(t.shadowRoot):t instanceof HTMLIFrameElement&&G(function(){return t.contentWindow.document})?K(t.contentWindow.document):t}},X=function(e){void 0===e&&(e=document);var t=K(e);return!!t&&x(e.querySelectorAll("[".concat("data-no-focus-lock","]"))).some(function(e){return Y(e,t)})},Z=function(e){for(var t=new Set,n=e.length,r=0;r<n;r+=1)for(var i=r+1;i<n;i+=1){var o=e[r].compareDocumentPosition(e[i]);(o&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(i),(o&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter(function(e,n){return!t.has(n)})},Q=function(e){return e.parentNode?Q(e.parentNode):e},J=function(e){return k(e).filter(Boolean).reduce(function(e,t){var n=t.getAttribute(s);return e.push.apply(e,n?Z(x(Q(t).querySelectorAll("[".concat(s,'="').concat(n,'"]:not([').concat(l,'="disabled"])')))):[t]),e},[])},ee=function(e,t){return void 0===t&&(t=K(E(e).ownerDocument)),!!t&&(!t.dataset||!t.dataset.focusGuard)&&J(e).some(function(e){var n;return Y(e,t)||(n=t,!!x(e.querySelectorAll("iframe")).some(function(e){return e===n}))})},et=function(e,t){e&&("focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},en=function(e,t){if(D(e)&&e.name)return t.filter(D).filter(function(t){return t.name===e.name}).filter(function(e){return e.checked})[0]||e;return e},er=function(e){var t=new Set;return e.forEach(function(n){return t.add(en(n,e))}),e.filter(function(e){return t.has(e)})},ei=function(e){return e[0]&&e.length>1?en(e[0],e):e[0]},eo=function(e,t){return e.indexOf(en(t,e))},ea="NEW_FOCUS",es=function(e,t,n,r,i){var o=e.length,a=e[0],s=e[o-1],l=I(r);if(!(r&&e.indexOf(r)>=0)){var u=void 0!==r?n.indexOf(r):-1,c=i?n.indexOf(i):u,d=i?e.indexOf(i):-1;if(-1===u)return -1!==d?d:ea;if(-1===d)return ea;var f=u-c,h=n.indexOf(a),p=n.indexOf(s),g=er(n),m=void 0!==r?g.indexOf(r):-1,y=i?g.indexOf(i):m,v=g.filter(function(e){return e.tabIndex>=0}),b=void 0!==r?v.indexOf(r):-1,w=i?v.indexOf(i):b;if(!f&&d>=0||0===t.length)return d;var x=eo(e,t[0]),k=eo(e,t[t.length-1]);if(u<=h&&l&&Math.abs(f)>1)return k;if(u>=p&&l&&Math.abs(f)>1)return x;if(f&&Math.abs(b>=0&&w>=0?w-b:y-m)>1)return d;if(u<=h)return k;if(u>p)return x;if(f)return Math.abs(f)>1?d:(o+d+f)%o}}
27,el=function(e,t,n){var r=V(e.map(function(e){return e.node}).filter(function(e){var t,r=null==(t=O(e))?void 0:t.autofocus;return e.autofocus||void 0!==r&&"false"!==r||n.indexOf(e)>=0}));return r&&r.length?ei(r):ei(V(t))},eu=function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&eu(e.parentNode.host||e.parentNode,t),t},ec=function(e,t){for(var n=eu(e),r=eu(t),i=0;i<n.length;i+=1){var o=n[i];if(r.indexOf(o)>=0)return o}return!1},ed=function(e,t,n){var r=k(e),i=k(t),o=r[0],a=!1;return i.filter(Boolean).forEach(function(e){a=ec(a||e,e)||a,n.filter(Boolean).forEach(function(e){var t=ec(o,e);t&&(a=!a||Y(t,a)?t:ec(t,a))})}),a},ef=function(e,t){return e.reduce(function(e,n){var r,i;return e.concat((r=n,i=t,q(x(r.querySelectorAll("[".concat("data-autofocus-inside","]"))).map(function(e){return B([e])}).reduce(function(e,t){return e.concat(t)},[]),i)))},[])},eh=function(e,t){var n=new Map;return t.forEach(function(e){return n.set(e.node,e)}),e.map(function(e){return n.get(e)}).filter(M)},ep=function(e,t){var n=K(k(e).length>0?document:E(e).ownerDocument),r=J(e).filter(P),i=ed(n||e,e,r),o=new Map,a=W(r,o),s=a.filter(function(e){return P(e.node)});if(s[0]){var l=W([i],o).map(function(e){return e.node}),u=eh(l,s),c=u.map(function(e){return e.node}),d=u.filter(function(e){return e.tabIndex>=0}).map(function(e){return e.node}),f=es(c,d,l,n,t);if(f===ea){var h=el(a,d,ef(r,o))||el(a,c,ef(r,o));return h?{node:h}:void console.warn("focus-lock: cannot find any node to move focus into")}return void 0===f?f:u[f]}},eg=0,em=!1,ey=function(e,t,n){void 0===n&&(n={});var r=ep(e,t);if(!em&&r){if(eg>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),em=!0,setTimeout(function(){em=!1},1);return}eg++,et(r.node,n.focusOptions),eg--}};function ev(e){if(!e)return null;if("undefined"==typeof WeakRef)return function(){return e||null};var t=e?new WeakRef(e):null;return function(){return(null==t?void 0:t.deref())||null}}var eb=function(e){if(!e)return null;for(var t=[],n=e;n&&n!==document.body;)t.push({current:ev(n),parent:ev(n.parentElement),left:ev(n.previousElementSibling),right:ev(n.nextElementSibling)}),n=n.parentElement;return{element:ev(e),stack:t,ownerDocument:e.ownerDocument}},ew=function(e){if(e)for(var t,n,r,i,o,a=e.stack,s=e.ownerDocument,l=new Map,u=0;u<a.length;u++){var c=a[u],d=null==(t=c.parent)?void 0:t.call(c);if(d&&s.contains(d)){for(var f=null==(n=c.left)?void 0:n.call(c),h=c.current(),p=d.contains(h)?h:void 0,g=null==(r=c.right)?void 0:r.call(c),m=H([d],l),y=null!=(o=null!=(i=null!=p?p:null==f?void 0:f.nextElementSibling)?i:g)?o:f;y;){for(var v=0;v<m.length;v++){var b=m[v];if(null==y?void 0:y.contains(b.node))return b.node}y=y.nextElementSibling}if(m.length)return m[0].node}}},ex=function(e){var t=eb(e);return function(){return ew(t)}},ek=function(e){var t=J(e).filter(P),n=$(B([ed(e,e,t)],!0),!0,!0),r=B(t,!1);return n.map(function(e){var t=e.node;return{node:t,index:e.index,lockItem:r.indexOf(t)>=0,guard:I(t)}})},eE=function(e,t,n){if(!e||!t)return console.error("no element or scope given"),{};var r=k(t);if(r.every(function(t){return!Y(t,e)}))return console.error("Active element is not contained in the scope"),{};var i=n?H(r,new Map):W(r,new Map),o=i.findIndex(function(t){return t.node===e});if(-1!==o)return{prev:i[o-1],next:i[o+1],first:i[0],last:i[i.length-1]}},e_=function(e,t){var n=t?H(k(e),new Map):W(k(e),new Map);return{first:n[0],last:n[n.length-1]}},eS=function(e,t,n){void 0===t&&(t={});var r,i=(r=t,Object.assign({scope:document.body,cycle:!0,onlyTabbable:!0},r)),o=eE(e,i.scope,i.onlyTabbable);if(o){var a=n(o,i.cycle);a&&et(a.node,i.focusOptions)}},eA=function(e,t,n){var r,i=e_(e,null==(r=t.onlyTabbable)||r)[n];i&&et(i.node,t.focusOptions)};function eT(e){setTimeout(e,1)}var eC=function(e){return e&&"current"in e?e.current:e},eO=function(){return document&&document.activeElement===document.body},ej=null,eD=null,eR=function(){return null},eI=null,eP=!1,eM=!1,eN=function(e,t){eI={observerNode:e,portaledElement:t}};function e$(e,t,n,r){var i=null,o=e;do{var a=r[o];if(a.guard)a.node.dataset.focusAutoGuard&&(i=a);else if(a.lockItem){if(o!==e)return;i=null}else break}while((o+=n)!==t);i&&(i.node.tabIndex=0)}var eL=function(e){return W(e,new Map)},eF=function(){var e=!1;
27if(ej){var t=ej,n=t.observed,r=t.persistentFocus,i=t.autoFocus,o=t.shards,a=t.crossFrame,s=t.focusOptions,l=t.noFocusGuards,u=n||eI&&eI.portaledElement;if(eO()&&eD&&eD!==document.body&&(!document.body.contains(eD)||!eL([(f=eD).parentNode]).some(function(e){return e.node===f}))){var c=eR();c&&c.focus()}var d=document&&document.activeElement;if(u){var f,h=[u].concat(o.map(eC).filter(Boolean));if((!d||(ej.whiteList||function(){return!0})(d))&&(r||function(){if(!(a?!!eP:"meanwhile"===eP)||!l||!eD||eM)return!1;var e=eL(h),t=e.findIndex(function(e){return e.node===eD});return 0===t||t===e.length-1}()||!(eO()||X())||!eD&&i)&&(u&&!(ee(h)||d&&h.some(function(e){return function e(t,n,r){return n&&(n.host===t&&(!n.activeElement||r.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,r))}(d,e,e)})||eI&&eI.portaledElement===d)&&(document&&!eD&&d&&!i?(d.blur&&d.blur(),document.body.focus()):(e=ey(h,eD,{focusOptions:s}),eI={})),(eD=document&&document.activeElement)!==document.body&&(eR=ex(eD)),eP=!1),document&&d!==document.activeElement&&document.querySelector("[data-focus-auto-guard]")){var p=document&&document.activeElement,g=ek(h),m=g.map(function(e){return e.node}).indexOf(p);m>-1&&(g.filter(function(e){var t=e.guard,n=e.node;return t&&n.dataset.focusAutoGuard}).forEach(function(e){return e.node.removeAttribute("tabIndex")}),e$(m,g.length,1,g),e$(m,-1,-1,g))}}}return e},eU=function(e){eF()&&e&&(e.stopPropagation(),e.preventDefault())},ez=function(){return eT(eF)},eB=function(){eM=!0},eq=function(){eM=!1,eP="just",eT(function(){eP="meanwhile"})},eV=function(){document.addEventListener("focusin",eU),document.addEventListener("focusout",ez),window.addEventListener("focus",eB),window.addEventListener("blur",eq)},eH=function(){document.removeEventListener("focusin",eU),document.removeEventListener("focusout",ez),window.removeEventListener("focus",eB),window.removeEventListener("blur",eq)},eW={moveFocusInside:ey,focusInside:ee,focusNextElement:function(e,t){void 0===t&&(t={}),eS(e,t,function(e,t){var n=e.next,r=e.first;return n||t&&r})},focusPrevElement:function(e,t){void 0===t&&(t={}),eS(e,t,function(e,t){var n=e.prev,r=e.last;return n||t&&r})},focusFirstElement:function(e,t){void 0===t&&(t={}),eA(e,t,"first")},focusLastElement:function(e,t){void 0===t&&(t={}),eA(e,t,"last")},captureFocusRestore:ex};f.assignSyncMedium(function(e){var t=e.target,n=e.currentTarget;n.contains(t)||eN(n,t)}),h.assignMedium(ez),p.assignMedium(function(e){return e(eW)});let eY=(r=function(e){return e.filter(function(e){return!e.disabled})},i=function(e){var t=e.slice(-1)[0];t&&!ej&&eV();var n=ej,r=n&&t&&t.id===n.id;ej=t,n&&!r&&(n.onDeactivation(),e.filter(function(e){return e.id===n.id}).length||n.returnFocus(!t)),t?(eD=null,r&&n.observed===t.observed||t.onActivation(eW),eF(!0),eT(eF)):(eH(),eD=null)},function(e){var t,n=[];function o(){i(t=r(n.map(function(e){return e.props})))}var s=function(r){function i(){return r.apply(this,arguments)||this}i.prototype=Object.create(r.prototype),i.prototype.constructor=i,(0,b.A)(i,r),i.peek=function(){return t};var s=i.prototype;return s.componentDidMount=function(){n.push(this),o()},s.componentDidUpdate=function(){o()},s.componentWillUnmount=function(){var e=n.indexOf(this);n.splice(e,1),o()},s.render=function(){return a.createElement(e,this.props)},i}(a.PureComponent);return(0,w.A)(s,"displayName","SideEffect("+(e.displayName||e.name||"Component")+")"),s})(function(){return null});var eG=(0,a.forwardRef)(function(e,t){return a.createElement(v,(0,o.A)({sideCar:eY,ref:t},e))}),eK=v.propTypes||{};eK.sideCar,function(e,t){if(null!=e){var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}}}(eK,["sideCar"]),eG.propTypes={};let eX=eG},25056:(e,t,n)=>{"use strict";n.d(t,{B3:()=>J,JW:()=>p,me:()=>ed,sR:()=>eh});var r=n(77327);let i={transparent:{lightest:"hsl(240, 100%, 95%)",lighter:"hsl(240, 100%, 70%)",light:"hsl(240, 100%, 65%)",base:"hsl(240, 100%, 50%)",dark:"hsl(240, 100%, 35%)",darker:"hsl(240, 100%, 20%)",darkest:"hsl(240, 100%, 5%)"},primary:{lightest:"hsl(240, 100%, 95%)",lighter:"hsl(240, 100%, 70%)",light:"hsl(240, 100%, 65%)",base
27:"hsl(240, 100%, 50%)",dark:"hsl(240, 100%, 35%)",darker:"hsl(240, 100%, 20%)",darkest:"hsl(240, 100%, 5%)"},positive:{lightest:"hsl(120, 100%, 95%)",lighter:"hsl(120, 100%, 70%)",light:"hsl(120, 100%, 65%)",base:"hsl(120, 100%, 50%)",dark:"hsl(120, 100%, 35%)",darker:"hsl(120, 100%, 20%)",darkest:"hsl(120, 100%, 5%)"},caution:{lightest:"hsl(60, 100%, 95%)",lighter:"hsl(60, 100%, 70%)",light:"hsl(60, 100%, 65%)",base:"hsl(60, 100%, 50%)",dark:"hsl(60, 100%, 35%)",darker:"hsl(60, 100%, 20%)",darkest:"hsl(60, 100%, 5%)"},critical:{lightest:"hsl(0, 100%, 95%)",lighter:"hsl(0, 100%, 70%)",light:"hsl(0, 100%, 65%)",base:"hsl(0, 100%, 50%)",dark:"hsl(0, 100%, 35%)",darker:"hsl(0, 100%, 20%)",darkest:"hsl(0, 100%, 5%)"}};i.transparent.darkest,i.transparent.lightest,i.transparent.lightest,i.transparent.darkest,i.transparent.darker,i.transparent.lighter,i.transparent.base,i.transparent.base,i.primary.darkest,i.primary.lightest,i.primary.lightest,i.primary.darkest,i.primary.darker,i.primary.lighter,i.primary.base,i.primary.base,i.positive.darkest,i.positive.lightest,i.positive.lightest,i.positive.darkest,i.positive.darker,i.positive.lighter,i.positive.base,i.positive.base,i.caution.darkest,i.caution.lightest,i.caution.lightest,i.caution.darkest,i.caution.darker,i.caution.lighter,i.caution.base,i.caution.base,i.critical.darkest,i.critical.lightest,i.critical.lightest,i.critical.darkest,i.critical.darker,i.critical.lighter,i.critical.base,i.critical.base;let o={avatar:{sizes:[{distance:-4,size:19},{distance:-4,size:25},{distance:-8,size:33},{distance:-12,size:49}],focusRing:{offset:1,width:1}},button:{textWeight:"medium",border:{width:1},focusRing:{offset:-1,width:1}},card:{border:{width:1},focusRing:{offset:-1,width:1},shadow:{outline:.5}},container:[320,640,960,1280,1600,1920],media:[360,600,900,1200,1800,2400],layer:{dialog:{zOffset:600},popover:{zOffset:400},tooltip:{zOffset:200}},radius:[0,1,3,6,9,12,21],shadow:[null,{umbra:[0,0,0,0],penumbra:[0,0,0,0],ambient:[0,0,0,0]},{umbra:[0,3,5,-2],penumbra:[0,6,10,0],ambient:[0,1,18,1]},{umbra:[0,7,8,-4],penumbra:[0,12,17,2],ambient:[0,5,22,4]},{umbra:[0,9,11,-5],penumbra:[0,18,28,2],ambient:[0,7,34,6]},{umbra:[0,11,15,-7],penumbra:[0,24,38,3],ambient:[0,9,46,8]}],space:[0,4,8,12,20,32,52,84,136,220],input:{border:{width:1},checkbox:{size:17,focusRing:{offset:-1,width:1}},radio:{size:17,markSize:9,focusRing:{offset:-1,width:1}},switch:{width:25,height:17,padding:5,transitionDurationMs:150,transitionTimingFunction:"ease-out",focusRing:{offset:1,width:1}},select:{focusRing:{offset:-1,width:1}},text:{focusRing:{offset:-1,width:1}}},style:{button:{root:{transition:"background-color 100ms,border-color 100ms,color 100ms"}}}},a={code:{family:"ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace",weights:{regular:400,medium:500,semibold:600,bold:700},sizes:[{ascenderHeight:4,descenderHeight:4,fontSize:10,iconSize:17,lineHeight:15,letterSpacing:0},{ascenderHeight:5,descenderHeight:5,fontSize:13,iconSize:21,lineHeight:19,letterSpacing:0},{ascenderHeight:6,descenderHeight:6,fontSize:16,iconSize:25,lineHeight:23,letterSpacing:0},{ascenderHeight:7,descenderHeight:7,fontSize:19,iconSize:29,lineHeight:27,letterSpacing:0},{ascenderHeight:8,descenderHeight:8,fontSize:22,iconSize:33,lineHeight:31,letterSpacing:0}]},heading:{family:'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Liberation Sans", Helvetica, Arial, system-ui, sans-serif',weights:{regular:700,medium:800,semibold:900,bold:900},sizes:[{ascenderHeight:5,descenderHeight:5,fontSize:13,iconSize:17,lineHeight:19,letterSpacing:0},{ascenderHeight:6,descenderHeight:6,fontSize:16,iconSize:25,lineHeight:23,letterSpacing:0},{ascenderHeight:7,descenderHeight:7,fontSize:21,iconSize:33,lineHeight:29,letterSpacing:0},{ascenderHeight:8,descenderHeight:8,fontSize:27,iconSize:41,lineHeight:35,letterSpacing:0},{ascenderHeight:9.5,descenderHeight:8.5,fontSize:33,iconSize:49,lineHeight:41,letterSpacing:0},{ascenderHeight:10.5,descenderHeight:9.5,fontSize:38,iconSize:53,lineHeight:47,letterSpacing:0}]},label:{family:'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Liberation Sans", system-ui, sans-serif',weights:{regular:600,medium:700,semibold:800,bold:900},sizes:[{ascenderHeight:2,descenderHeight:2,fontSize:8.1,iconSize:13,lineHeight:10,letterSpacing:.5},{ascenderHeight:2,descenderHeight:2,fontSize:9.5,iconSize:15,lineHeight:11,letterSpacing:.5},{ascenderHeight:2,descenderHeight:2,fontSize:10.8,iconSize:17,lineHeight:12,letterSpacing:.5},{ascenderHeight:2,descenderHeight:2,fontSize:12.25,iconSize:19,lineHeight:13,letterSpacing:.5},{ascenderHeight:2,descenderHeight:2,fontSize:13.6,iconSize:21,lineHeight:14,letterSpacing:.5},{ascenderHeight:2,descenderHeight:2,fontSize:15,iconSize:23,lineHeight:15,letterSpacing:.5}]},text:{family:'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Liberation Sans", Helvetica, Arial, system-ui, sans-serif',weights:{regular:400,medium:500,semibold:600,bold:700},sizes:[{ascenderHeight:4,descenderHeight:4,fontSize:10,iconSize:17,lineHeight:15,letterSpacing:0},{ascenderHeight:5,descenderHeight:5,fontSize:13,iconSize:21,lineHeight:19,letterSpacing:0},{ascenderHeight:6,descenderHeight:6,fontSize:15,iconSize:25,lineHeight:23,letterSpacing:0},{ascenderHeight:7,descenderHeight:7,fontSize:18,iconSize:29,lineHeight:27,letterSpacing:0}
27,{ascenderHeight:8,descenderHeight:8,fontSize:21,iconSize:33,lineHeight:31,letterSpacing:0}]}},s=new WeakMap;function l(e){let t=s.get(e);if(t)return t;let n=c(e,e.card.enabled),r={_blend:e._blend||(e.dark?"screen":"multiply"),_dark:e.dark,accent:n.accent,avatar:n.avatar,backdrop:e.base.shadow.ambient,badge:n.badge,bg:e.base.bg,border:e.base.border,button:{default:u(e,e.button.default),ghost:u(e,e.button.ghost),bleed:u(e,e.button.bleed)},code:n.code,fg:e.base.fg,focusRing:e.base.focusRing,icon:n.muted.fg,input:{default:d(e.input.default),invalid:d(e.input.invalid)},kbd:n.kbd,link:n.link,muted:{...n.muted,bg:e.selectable?.default.enabled.bg2||e.base.bg},selectable:u(e,e.selectable||e.muted),shadow:e.base.shadow,skeleton:{from:e.skeleton?.from||e.base.border,to:e.skeleton?.to||e.base.border},syntax:e.syntax};return s.set(e,r),r}function u(e,t){return{default:{enabled:c(e,t.default.enabled),hovered:c(e,t.default.hovered),pressed:c(e,t.default.pressed),selected:c(e,t.default.selected),disabled:c(e,t.default.disabled)},neutral:{enabled:c(e,t.default.enabled),hovered:c(e,t.default.hovered),pressed:c(e,t.default.pressed),selected:c(e,t.default.selected),disabled:c(e,t.default.disabled)},primary:{enabled:c(e,t.primary.enabled),hovered:c(e,t.primary.hovered),pressed:c(e,t.primary.pressed),selected:c(e,t.primary.selected),disabled:c(e,t.primary.disabled)},suggest:{enabled:c(e,t.primary.enabled),hovered:c(e,t.primary.hovered),pressed:c(e,t.primary.pressed),selected:c(e,t.primary.selected),disabled:c(e,t.primary.disabled)},positive:{enabled:c(e,t.positive.enabled),hovered:c(e,t.positive.hovered),pressed:c(e,t.positive.pressed),selected:c(e,t.positive.selected),disabled:c(e,t.positive.disabled)},caution:{enabled:c(e,t.caution.enabled),hovered:c(e,t.caution.hovered),pressed:c(e,t.caution.pressed),selected:c(e,t.caution.selected),disabled:c(e,t.caution.disabled)},critical:{enabled:c(e,t.critical.enabled),hovered:c(e,t.critical.hovered),pressed:c(e,t.critical.pressed),selected:c(e,t.critical.selected),disabled:c(e,t.critical.disabled)}}}function c(e,t){return{...t,avatar:{gray:{bg:e.spot.gray,fg:e.base.bg},blue:{bg:e.spot.blue,fg:e.base.bg},purple:{bg:e.spot.purple,fg:e.base.bg},magenta:{bg:e.spot.magenta,fg:e.base.bg},red:{bg:e.spot.red,fg:e.base.bg},orange:{bg:e.spot.orange,fg:e.base.bg},yellow:{bg:e.spot.yellow,fg:e.base.bg},green:{bg:e.spot.green,fg:e.base.bg},cyan:{bg:e.spot.cyan,fg:e.base.bg}},badge:{default:{bg:e.muted.default.enabled.bg,fg:e.muted.default.enabled.fg,dot:e.muted.default.enabled.muted.fg,icon:e.muted.default.enabled.muted.fg},neutral:{bg:e.muted.transparent.enabled.bg,fg:e.muted.transparent.enabled.fg,dot:e.muted.transparent.enabled.muted.fg,icon:e.muted.transparent.enabled.muted.fg},primary:{bg:e.muted.primary.enabled.bg,fg:e.muted.primary.enabled.fg,dot:e.muted.primary.enabled.muted.fg,icon:e.muted.primary.enabled.muted.fg},suggest:{bg:e.muted.primary.enabled.bg,fg:e.muted.primary.enabled.fg,dot:e.muted.primary.enabled.muted.fg,icon:e.muted.primary.enabled.muted.fg},positive:{bg:e.muted.positive.enabled.bg,fg:e.muted.positive.enabled.fg,dot:e.muted.positive.enabled.muted.fg,icon:e.muted.positive.enabled.muted.fg},caution:{bg:e.muted.caution.enabled.bg,fg:e.muted.caution.enabled.fg,dot:e.muted.caution.enabled.muted.fg,icon:e.muted.caution.enabled.muted.fg},critical:{bg:e.muted.critical.enabled.bg,fg:e.muted.critical.enabled.fg,dot:e.muted.critical.enabled.muted.fg,icon:e.muted.critical.enabled.muted.fg}},kbd:{bg:e.muted.default.enabled.bg,fg:e.muted.default.enabled.fg,border:e.muted.default.enabled.border},muted:{...e.muted.default.enabled.muted,bg:t.bg2||t.bg},skeleton:{from:t.skeleton?.from||t.border,to:t.skeleton?.to||t.border}}}function d(e){return{enabled:f(e.enabled),disabled:f(e.disabled),readOnly:f(e.readOnly),hovered:f(e.hovered)}}function f(e){return{bg:e.bg,border:e.border,fg:e.fg,muted:{bg:e.bg2},placeholder:e.placeholder}}let h=new WeakMap;function p(e){if(e.sanity.v2?._resolved)return e.sanity.v2;let t=h.get(e);if(t)return t;let n={_version:2,_resolved:!0,avatar:{...o.avatar,...e.sanity.avatar},button:{...o.button,...e.sanity.button},card:o.card,color:l(e.sanity.color),container:e.sanity.container,font:e.sanity.fonts,input:{...o.input,...e.sanity.input,checkbox:{...o.input.checkbox,...e.sanity.input.checkbox},radio:{...o.input.radio,...e.sanity.input.radio},switch:{...o.input.switch,...e.sanity.input.switch}},layer:e.sanity.layer??o.layer,media:e.sanity.media,radius:e.sanity.radius,shadow:e.sanity.shadows,space:e.sanity.space,style:e.sanity.styles};return h.set(e,n),n}function g(e){return 2===e._version}let m=new WeakMap,y=new WeakMap;function v(e){let t=y.get(e);if(t)return t;
27let{avatar:n,button:r,color:i,container:o,font:a,input:s,media:l,radius:u,shadow:c,space:d,style:f}=e;return{_version:0,avatar:n,button:r,container:o,color:{light:{transparent:b(i.light.transparent),default:b(i.light.default),primary:b(i.light.primary),positive:b(i.light.positive),caution:b(i.light.caution),critical:b(i.light.critical)},dark:{transparent:b(i.dark.transparent),default:b(i.dark.default),primary:b(i.dark.primary),positive:b(i.dark.positive),caution:b(i.dark.caution),critical:b(i.dark.critical)}},focusRing:s.text.focusRing,fonts:a,input:s,media:l,radius:u,shadows:c,space:d,styles:f,v2:e}}function b(e){return{base:{bg:e.bg,fg:e.fg,border:e.border,focusRing:e.focusRing,shadow:e.shadow},button:e.button,card:e.selectable.default,dark:e._dark,input:{default:w(e.input.default),invalid:w(e.input.invalid)},muted:{...e.button.ghost,transparent:e.button.ghost.default},solid:{...e.button.default,transparent:e.button.default.default},selectable:e.selectable,spot:{gray:e.avatar.gray.bg,blue:e.avatar.blue.bg,purple:e.avatar.purple.bg,magenta:e.avatar.magenta.bg,red:e.avatar.red.bg,orange:e.avatar.orange.bg,yellow:e.avatar.yellow.bg,green:e.avatar.green.bg,cyan:e.avatar.cyan.bg},syntax:e.syntax}}function w(e){return{enabled:x(e.enabled),disabled:x(e.disabled),readOnly:x(e.readOnly),hovered:x(e.hovered)}}function x(e){return{bg:e.bg,bg2:e.muted.bg,border:e.border,fg:e.fg,placeholder:e.placeholder}}let k=["multiply","screen"],E=["transparent","default","neutral","primary","suggest","positive","caution","critical"],_=["default","neutral","primary","suggest","positive","caution","critical"],S=["enabled","hovered","pressed","selected","disabled"],A=["default","ghost","bleed"],T=["default","invali
27d"],C=["enabled","hovered","readOnly","disabled"];function O(e){return r.V0.includes(e)}function j(e){return/^\d+%$/.test(e)}function D(e){var t;let n=e.split("/"),i=n.shift()||"",[o,a]=i.split(" ");if(O(o)){let e=n.shift()||"";return j(a)?{type:"color",tint:o,mix:Number(a.slice(0,-1))/100}:R(e)?{type:"color",tint:o,opacity:Number(e)}:{type:"color",tint:o}}if("black"===(t=o)||"white"===t){let e=n.shift()||"";return j(a)?{type:"color",key:o,mix:Number(a.slice(0,-1))/100}:R(e)?{type:"color",key:o,opacity:Number(e)}:{type:"color",key:o}}if(r.Cv.includes(o)){let[e,t]=(i=n.shift()||"").split(" ");if(O(e)){let r=n.shift()||"";return j(t)?{type:"color",hue:o,tint:e,mix:Number(t.slice(0,-1))/100}:R(r)?{type:"color",hue:o,tint:e,opacity:Number(r)}:{type:"color",hue:o,tint:e}}return{type:"hue",value:o}}if(k.includes(o))return{type:"blendMode",value:o}}function R(e){return"0"===e||/^0\.[0-9]+$/.test(e)||"1"===e}[...r.Cv],[...E],[..._],[...S],[...T],[...C];let I=["500","500"];function P(e,t=I){var n;let r,{hue:i,scheme:o}=e,a=D(t[+("light"!==o)]);if(!a||"color"!==a.type)throw Error(`Invalid color token: ${t[0]}`);return n={...a,hue:a.hue||i},r="",r="black"===n.key||"white"===n.key?n.key:`${n.hue}/${n.tint}`,void 0!==n.mix?`${r} ${100*n.mix}%`:(void 0!==n.opacity&&(r+=`/${n.opacity}`),r)}let M={base:{"*":{_blend:["multiply","screen"],accent:{fg:["purple/600","purple/400"]},avatar:{"*":{_blend:["screen","multiply"],bg:["500","400"],fg:["white","black"]}},backdrop:["gray/200/0.5","black/0.5"],badge:{"*":{bg:["100","900"],fg:["600","400"],icon:["500","500"],dot:["500","500"]},positive:{bg:["200 50%","900"],fg:["600","500"]},caution:{bg:["200 50%","900"],fg:["600","500"]}},bg:["50","950"],border:["200","800"],code:{bg:["50","950"],fg:["600","400"]},fg:["800","200"],focusRing:["blue/500","blue/500"],icon:["600","400"],kbd:{bg:["white","black"],fg:["600","400"],border:["200","800"]},link:{fg:["blue/600","blue/300"]},muted:{bg:["50","950"],fg:["700 75%","300 75%"]},shadow:{outline:["500/0.3","500/0.4"],umbra:["gray/500/0.1","black/0.2"],penumbra:["gray/500/0.07","black/0.14"],ambient:["gray/500/0.06","black/0.12"]},skeleton:{from:["100","900"],to:["100 50%","900 50%"]}},transparent:{bg:["50","black"]},default:{bg:["white","950"],fg:["800","200"],muted:{fg:["600","400"]}},primary:{_hue:"blue"},suggest:{_hue:"purple"},positive:{_hue:"green",shadow:{outline:["500/0.4","500/0.4"]}},caution:{_hue:"yellow",shadow:{outline:["600/0.3","500/0.4"]}},critical:{_hue:"red"}},button:{default:{"*":{"*":{_blend:["screen","multiply"],accent:{fg:["purple/300","purple/700"]},avatar:{"*":{_blend:["screen","multiply"],bg:["500","400"],fg:["white","black"]}},badge:{"*":{bg:["900","100"],fg:["400","600"],dot:["500","500"],icon:["500","500"]}},bg:["500","400"],border:["500/0","400/0"],code:{bg:["500 20%","400 20%"],fg:["200","600"]},fg:["white","black"],icon:["100 70%","900 70%"],kbd:{bg:["black","white"],fg:["200","600"],border:["800","200"]},link:{fg:["blue/200","blue/600"]},muted:{bg:["950","50"],fg:["100 70%","900 70%"]},skeleton:{from:["900","100"],to:["900 50%","100 50%"]}},hovered:{bg:["600","300"],border:["700/0","300/0"]},pressed:{bg:["700","300"]},selected:{bg:["700","300"]},disabled:{_hue:"gray",accent:{fg:["100 70%","900 70%"]},avatar:{"*":{_blend:["screen","multiply"],bg:["gray/500","gray/400"],fg:["white","black"]}},badge:{"*":{bg:["gray/700","gray/300"],fg:["white","black"],dot:["white","black"],icon:["white","black"]}},bg:["300","600"],code:{bg:["950","50"],fg:["300","600"]},fg:["300","600"],muted:{bg:["950","50"],fg:["300","600"]},kbd:{bg:["black","white"],fg:["white","black"],border:["700","300"]},link:{fg:["100 70%","900 70%"]}}},default:{"*":{avatar:{"*":{_blend:["screen","multiply"],bg:["500","400"],fg:["white","black"]}},bg:["800","200"],muted:{bg:["950","50"],fg:["400","600"]}},hovered:{bg:["900","100"]},pressed:{bg:["black","white"]},selected:{bg:["black","white"]}}},ghost:{"*":{"*":{_blend:["multiply","screen"],accent:{fg:["purple/700 60%","purple/300 70%"]},avatar:{"*":{_blend:["screen","multiply"],bg:["500","400"],fg:["white","black"]}},badge:{"*":{bg:["100","900"],fg:["600","400"],dot:["500","500"],icon:["500","500"]}},bg:["50","950"],border:["100","900"],code:{bg:["500 10%","400 10%"],fg:["700 60%","400 60%"]},fg:["600","400"],icon:["700 60%","300 60%"],kbd:{bg:["white","black"],fg:["600","400"],border:["200","800"]},link:{fg:["blue/700 60%","blue/300 60%"]},muted:{bg:["100","950"],fg:["700 60%","300 60%"]},skeleton:{from:["100","900"],to:["100 50%","900 50%"]}},hovered:{bg:["100","900"],fg:["700","300"]},pressed:{bg:["200","800"],fg:["800","200"]},selected:{bg:["200","800"],fg:["800","200"]},disabled:{_hue:"gray",accent:{fg:["200","800"]},avatar:{"*":{_blend:["screen","multiply"],bg:["gray/100","gray/900"],fg:["white","black"]}}
27,badge:{"*":{_hue:"gray",bg:["50","950"],fg:["gray/200","gray/800"],dot:["gray/200","gray/800"],icon:["gray/200","gray/800"]}},border:["100","900"],code:{bg:["50","950"],fg:["200","800"]},fg:["400","600"],icon:["300","700"],muted:{fg:["300","700"]},kbd:{bg:["white","black"],fg:["200","800"],border:["100","900"]},link:{fg:["200","800"]}}},positive:{"*":{border:["600 20%","800"]}},caution:{"*":{border:["600 20%","800"]}}},bleed:{"*":{"*":{_blend:["multiply","screen"],accent:{fg:["purple/700 70%","purple/300 70%"]},avatar:{"*":{_blend:["screen","multiply"],bg:["500","400"],fg:["white","black"]}},badge:{"*":{bg:["100","900"],fg:["600","400"],dot:["500","500"],icon:["500","500"]}},bg:["white","black"],border:["white/0","black/0"],code:{bg:["50","950"],fg:["700 75%","300 75%"]},fg:["700","300"],icon:["700 75%","300 75%"],kbd:{bg:["white","black"],fg:["700","300"],border:["200","800"]},link:{fg:["blue/700 70%","blue/300 70%"]},muted:{bg:["100","950"],fg:["700 75%","300 75%"]},skeleton:{from:["100","900"],to:["100 50%","900 50%"]}},hovered:{bg:["50","900"],fg:["800","200"],icon:["800 70%","300 70%"]},pressed:{bg:["100","800"],fg:["800","200"],icon:["800 70%","200 70%"]},selected:{bg:["100","900"],fg:["800","200"],icon:["800 60%","200 60%"]},disabled:{_hue:"gray",accent:{fg:["200","800"]},avatar:{"*":{_blend:["screen","multiply"],bg:["gray/100","gray/900"],fg:["white","black"]}},badge:{"*":{_hue:"gray",bg:["50","950"],fg:["gray/200","gray/800"],dot:["gray/200","gray/800"],icon:["gray/200","gray/800"]}},code:{bg:["50","950"],fg:["200","800"]},fg:["400","600"],icon:["300","700"],muted:{fg:["400","600"]},kbd:{bg:["white","black"],fg:["200","800"],border:["100","900"]},link:{fg:["200","800"]}}}}},input:{"*":{"*":{_blend:["multiply","screen"],bg:["white","black"],border:["200","700"],fg:["black","200"],muted:{bg:["50","950"]},placeholder:["400","600"]},hovered:{border:["300","700"]},readOnly:{bg:["50","950"],border:["200","800"],fg:["800","200"]},disabled:{bg:["50","950"],fg:["400","600"],border:["100","900"],placeholder:["200","800 50%"]}},invalid:{"*":{_hue:"red",bg:["100","950"]}}},selectable:{"*":{"*":{_blend:["multiply","screen"],accent:{fg:["purple/700 70%","purple/300 70%"]},avatar:{"*":{_blend:["screen","multiply"],bg:["500","400"],fg:["white","black"]}},badge:{"*":{bg:["100","900"],fg:["600","400"],dot:["500","500"],icon:["500","500"]}},bg:["white","black"],border:["200","800"],code:{bg:["50","950"],fg:["600","400"]},fg:["700","300"],icon:["700 75%","300 75%"],kbd:{bg:["white","black"],fg:["600","400"],border:["200","800"]},link:{fg:["blue/700 70%","blue/300 70%"]},muted:{bg:["50","950"],fg:["700 75%","300 75%"]},skeleton:{from:["100","900"],to:["100 50%","900 50%"]}},hovered:{bg:["50","950"]},pressed:{bg:["100","900"]},selected:{_blend:["screen","multiply"],accent:{fg:["purple/300","purple/700"]},avatar:{"*":{_blend:["multiply","screen"],bg:["white","black"],fg:["black","white"]}},badge:{"*":{bg:["900","100"],fg:["400","600"],dot:["500","500"],icon:["500","500"]}},bg:["500","400"],border:["500 20%","400 20%"],code:{bg:["500 20%","400 20%"],fg:["200","600"]},fg:["white","black"],icon:["100 70%","900 70%"],kbd:{bg:["black","white"],fg:["200","600"],border:["800","200"]},link:{fg:["blue/200","blue/600"]},muted:{bg:["500 10%","400 10%"],fg:["100 70%","900 70%"]},skeleton:{from:["900","100"],to:["900 50%","100 50%"]}},disabled:{_hue:"gray",accent:{fg:["200","800"]},avatar:{"*":{_blend:["screen","multiply"],bg:["gray/100","gray/900"],fg:["white","black"]}},badge:{"*":{_hue:"gray",bg:["50","950"],fg:["gray/200","gray/800"],dot:["gray/200","gray/800"],icon:["gray/200","gray/800"]}},border:["100","900"],code:{bg:["50","950"],fg:["200","800"]},fg:["200","800"],icon:["200","800"],kbd:{bg:["white","black"],fg:["200","800"],border:["100","900"]},link:{fg:["200","800"]},muted:{bg:["50 50%","950 50%"],fg:["200","800"]}}},default:{selected:{_hue:"blue"}},critical:{disabled:{bg:["50 50%","950 50%"]}}},syntax:{atrule:["purple/600","purple/400"],attrName:["green/600","green/400"],attrValue:["yellow/600","yellow/400"],attribute:["yellow/600","yellow/400"],boolean:["purple/600","purple/400"],builtin:["purple/600","purple/400"],c
27data:["yellow/600","yellow/400"],char:["yellow/600","yellow/400"],class:["orange/600","orange/400"],className:["cyan/600","cyan/400"],comment:["gray/400","gray/600"],constant:["purple/600","purple/400"],deleted:["red/600","red/400"],entity:["red/600","red/400"],function:["green/600","green/400"],hexcode:["blue/600","blue/400"],id:["purple/600","purple/400"],important:["purple/600","purple/400"],inserted:["yellow/600","yellow/400"],keyword:["magenta/600","magenta/400"],number:["purple/600","purple/400"],operator:["magenta/600","magenta/400"],property:["blue/600","blue/400"],pseudoClass:["yellow/600","yellow/400"],pseudoElement:["yellow/600","yellow/400"],punctuation:["gray/600","gray/400"],regex:["blue/600","blue/400"],selector:["red/600","red/400"],string:["yellow/600","yellow/400"],symbol:["purple/600","purple/400"],tag:["red/600","red/400"],unit:["orange/600","orange/400"],url:["red/600","red/400"],variable:["red/600","red/400"]}};function N(e){return!!(e&&"object"==typeof e&&!Array.isArray(e))}function $(...e){let t=e.filter(Boolean);return 0===t.length?{}:t.reduce(L,{})}function L(e,t){for(let n of Object.keys(t)){let r=e[n],i=t[n];N(r)&&N(i)?e[n]=$(r,i):e[n]=i}return e}function F(e,t){let{scheme:n}=e,r={};for(let e of E)r[e]=function(e,t){let{scheme:n,tone:r}=e,i=t?.color?.base?.[r],o={hue:i?._hue||"gray",scheme:n};return{_blend:(i?._blend||["multiply","screen"])[+("light"!==n)],_dark:"dark"===n,accent:{fg:P(o,i?.accent?.fg)},avatar:U({scheme:n},i),backdrop:P(o,i?.backdrop),badge:B(i?.badge,{scheme:n},t),bg:P(o,i?.bg),border:P(o,i?.border),button:function(e,t){let{scheme:n,tone:r}=e,i={};for(let e of A)i[e]=function(e,t){let{cardTone:n,mode:r,scheme:i}=e,o={};for(let e of _)o[e]=function(e,t){let{cardTone:n,mode:r,scheme:i,tone:o}=e,a={};for(let e of S)a[e]=function(e,t){let{cardTone:n,mode:r,tone:i,scheme:o,state:a}=e,s=t?.color?.base?.[n],l=t?.color?.button?.[r]?.[i]?.[a],u=l?._hue||s?._hue||"gray",c=l?._blend||["screen","multiply"],d={hue:u,scheme:o};return{_blend:c[+("light"!==o)],accent:{fg:P(d,l?.accent?.fg)},avatar:U({scheme:o},l),badge:B(l?.badge,{scheme:o},t),bg:P(d,l?.bg),border:P(d,l?.border),code:{bg:P(d,l?.code?.bg),fg:P(d,l?.code?.fg)},fg:P(d,l?.fg),icon:P(d,l?.icon),muted:{bg:P(d,l?.muted?.bg),fg:P(d,l?.muted?.fg)},kbd:{bg:P(d,l?.kbd?.bg),fg:P(d,l?.kbd?.fg),border:P(d,l?.kbd?.border)},link:{fg:P(d,l?.link?.fg)},skeleton:{from:P(d,l?.skeleton?.from),to:P(d,l?.skeleton?.to)}}}({cardTone:n,mode:r,tone:o,scheme:i,state:e},t);return a}({cardTone:n,mode:r,scheme:i,tone:e},t);return o}({cardTone:r,scheme:n,mode:e},t);return i}({scheme:n,tone:r},t),code:{bg:P(o,i?.code?.bg),fg:P(o,i?.code?.fg)},fg:P(o,i?.fg),focusRing:P(o,i?.focusRing),icon:P(o,i?.icon),input:function(e,t){let{scheme:n,tone:r}=e;return{default:q({mode:"default",scheme:n,tone:r},t),invalid:q({mode:"invalid",scheme:n,tone:r},t)}}({scheme:n,tone:r},t),kbd:{bg:P(o,i?.kbd?.bg),fg:P(o,i?.kbd?.fg),border:P(o,i?.kbd?.border)},link:{fg:P(o,i?.link?.fg)},muted:{bg:P(o,i?.muted?.bg),fg:P(o,i?.muted?.fg)},selectable:function(e,t){let{scheme:n,tone:r}=e,i={};for(let e of _)i[e]=function(e,t){let{cardTone:n,scheme:r,tone:i}=e,o={};for(let e of S)o[e]=function(e,t){let{cardTone:n,scheme:r,state:i,tone:o}=e,a=t?.color?.base?.[n],s=t?.color?.selectable?.[o]?.[i],l=s?._hue||a?._hue||"gray",u=s?._blend||["screen","multiply"],c={hue:l,scheme:r};return{_blend:u[+("light"!==r)],accent:{fg:P(c,s?.accent?.fg)},avatar:U({scheme:r},s),badge:B(s?.badge,{scheme:r},t),bg:P(c,s?.bg),border:P(c,s?.border),code:{bg:P(c,s?.code?.bg),fg:P(c,s?.code?.fg)},fg:P(c,s?.fg),icon:P(c,s?.icon),muted:{bg:P(c,s?.muted?.bg),fg:P(c,s?.muted?.fg)},kbd:{bg:P(c,s?.kbd?.bg),fg:P(c,s?.kbd?.fg),border:P(c,s?.kbd?.border)},link:{fg:P(c,s?.link?.fg)},skeleton:{from:P(c,s?.skeleton?.from),to:P(c,s?.skeleton?.to)}}}({cardTone:n,tone:i,scheme:r,state:e},t);return o}({cardTone:r,scheme:n,tone:e},t);return i}({scheme:n,tone:r},t),shadow:function(e,t){let{scheme:n,tone:r}=e,i=t?.color?.base?.[r],o={hue:i?._hue||"gray",scheme:n};return{outline:P(o,i?.shadow?.outline),umbra:P(o,i?.shadow?.umbra),penumbra:P(o,i?.shadow?.penumbra),ambient:P(o,i?.shadow?.ambient)}}
27({scheme:n,tone:r},t),skeleton:{from:P(o,i?.skeleton?.from),to:P(o,i?.skeleton?.to)},syntax:function(e,t){let{scheme:n}=e,r=t?.color?.syntax,i={hue:"gray",scheme:n};return{atrule:P(i,r?.atrule),attrName:P(i,r?.attrName),attrValue:P(i,r?.attrValue),attribute:P(i,r?.attribute),boolean:P(i,r?.boolean),builtin:P(i,r?.builtin),cdata:P(i,r?.cdata),char:P(i,r?.char),class:P(i,r?.class),className:P(i,r?.className),comment:P(i,r?.comment),constant:P(i,r?.constant),deleted:P(i,r?.deleted),doctype:P(i,r?.doctype),entity:P(i,r?.entity),function:P(i,r?.function),hexcode:P(i,r?.hexcode),id:P(i,r?.id),important:P(i,r?.important),inserted:P(i,r?.inserted),keyword:P(i,r?.keyword),number:P(i,r?.number),operator:P(i,r?.operator),prolog:P(i,r?.prolog),property:P(i,r?.property),pseudoClass:P(i,r?.pseudoClass),pseudoElement:P(i,r?.pseudoElement),punctuation:P(i,r?.punctuation),regex:P(i,r?.regex),selector:P(i,r?.selector),string:P(i,r?.string),symbol:P(i,r?.symbol),tag:P(i,r?.tag),unit:P(i,r?.unit),url:P(i,r?.url),variable:P(i,r?.variable)}}({scheme:n},t)}}({scheme:n,tone:e},t);return r}function U(e,t){let{scheme:n}=e;return{gray:z({color:"gray",scheme:n},t),blue:z({color:"blue",scheme:n},t),purple:z({color:"purple",scheme:n},t),magenta:z({color:"magenta",scheme:n},t),red:z({color:"red",scheme:n},t),orange:z({color:"orange",scheme:n},t),yellow:z({color:"yellow",scheme:n},t),green:z({color:"green",scheme:n},t),cyan:z({color:"cyan",scheme:n},t)}}function z(e,t){let{color:n,scheme:r}=e,i=t?.avatar?.[n],o={hue:i?._hue||"gray",scheme:r};return{_blend:(i?._blend||["screen","multiply"])[+("light"!==r)],bg:P(o,i?.bg),fg:P(o,i?.fg)}}function B(e,t,n){let{scheme:r}=t,i={};for(let t of _)i[t]=function(e,t,n){let{scheme:r,tone:i}=t,o=e?.[i],a={hue:o?._hue||n?.color?.base?.[i]?._hue||"gray",scheme:r};return{bg:P(a,o?.bg),fg:P(a,o?.fg),dot:P(a,o?.dot),icon:P(a,o?.icon)}}(e,{scheme:r,tone:t},n);return i}function q(e,t){let{mode:n,scheme:r,tone:i}=e;return{enabled:V({mode:n,scheme:r,state:"enabled",cardTone:i},t),hovered:V({mode:n,scheme:r,state:"hovered",cardTone:i},t),readOnly:V({mode:n,scheme:r,state:"readOnly",cardTone:i},t),disabled:V({mode:n,scheme:r,state:"disabled",cardTone:i},t)}}function V(e,t){let{cardTone:n,mode:r,scheme:i,state:o}=e,a=t?.color?.base?.[n],s=t?.color?.input?.[r]?.[o],l=s?._hue||a?._hue||"gray",u=s?._blend||["screen","multiply"],c={hue:l,scheme:i};return{_blend:u[+("light"!==i)],bg:P(c,s?.bg),border:P(c,s?.border),fg:P(c,s?.fg),muted:{bg:P(c,s?.muted?.bg)},placeholder:P(c,s?.placeholder)}}let H=r.yW;function W(e,t=0,n=1){return Math.min(n,Math.max(t,e))}function Y(e,t,n,r,i){var o;return n*(1-(o=W((i-e)/(t-e))))+r*o}function G(e){return Math.round(e)}function K(e){if(4===e.length){let t=e.slice(1,2),n=e.slice(2,3),r=e.slice(3,4);return{r:parseInt(t+t,16),g:parseInt(n+n,16),b:parseInt(r+r,16)}}return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16)}}function X(e){let t=G(W(Math.round(e.r),0,255)),n=G(W(Math.round(e.g),0,255)),r=G(W(Math.round(e.b),0,255));return"a"in e?`rgba(${t},${n},${r},${e.a})`:"#"+(0x1000000+(t<<16)+(n<<8)+r).toString(16).slice(1)}let Z=/hsl\(\s*(\d+)\s*,\s*((\d+(?:\.\d+)?)%)\s*,\s*((\d+(?:\.\d+)?)%)\s*\)/i;function Q(e){if(!e)return{r:0,g:0,b:0};if("string"!=typeof e)throw Error("parseColor: expected a string");if("#"===e[0]&&(4===e.length||7===e.length)&&function(e){for(let t of e)if(-1==="0123456789ABCDEFabcdef".indexOf(t))return!1;return!0}(e.slice(1)))return K(e);if(e.startsWith("hsl("))return function(e){let t=e.s/100,n=e.l/100,r=(1-Math.abs(2*n-1))*t,i=r*(1-Math.abs(e.h/60%2-1)),o=n-r/2,a=0,s=0,l=0;return 0<=e.h&&e.h<60?(a=r,s=i,l=0):60<=e.h&&e.h<120?(a=i,s=r,l=0):120<=e.h&&e.h<180?(a=0,s=r,l=i):180<=e.h&&e.h<240?(a=0,s=i,l=r):240<=e.h&&e.h<300?(a=i,s=0,l=r):300<=e.h&&e.h<360&&(a=r,s=0,l=i),{r:Math.round((a+o)*255),g:Math.round((s+o)*255),b:Math.round((l+o)*255)}}(function(e){let t=Z.exec(e);if(!t)throw Error(`parseHsl: string is not a HSL color: "${e}"`);return{h:parseInt(t[1]),s:parseFloat(t[3]),l:parseFloat(t[5])}}(e));if(e.startsWith("rgba(")){let t=e.replace(/rgba\(|\)/g,"").split(",");return{r:parseInt(t[0]),g:parseInt(t[1]),b:parseInt(t[2]),a:parseFloat(t[3])}}throw Error(`parseColor: unexpected color format: "${e}"`)}function J(e,t){let n=Q(e);return`rgba(${n.r},${n.g},${n.b},${t})`}let ee=[0,255];function et(e,t){let{bg:n,blendMode:r,colorPalette:i}=t;if("white"===n)throw Error("Cannot blend with white background");let o=D(e);if(!o||"color"!==o.type)throw Error(`Invalid color token value: ${e}`);let a="";if("black"===o.key&&(a=en(i.black)),"white"===o.key&&(a=en(i.white)),o.hue&&o.tint&&(a=en(i[o.hue][o.tint])),!a)throw Error(`Invalid color token value: ${e}`);let s=a,l={blendMode:r,bg:n,black:en(i.black),white:en(i.white)};try{if(a=function(e,t){var n,r,i,o,a,s;let{blendMode:l}=t,u=Q(e),c=Q(t.black),d=Q(t.white),f=t.bg?Q(t.bg):"multiply"===l?d:c,h={r:[c.r,d.r],g:[c.g,d.g],b:[c.b,d.b]},p={r:W(Y(...h.r,...ee,f.r),...ee),g:W(Y(...h.g,...ee,f.g),...ee),b:W(Y(...h.b,...ee,f.b),...ee)},g={r:W(Y(...h.r,...ee,u.r),...ee),g:W(Y(...h.g,...ee,u.g),...ee),b:W(Y(...h.b,...ee,u.b),...ee)},m="multiply"===l?{r:255*(p.r/255*(g.r/255)),g:255*(p.g/255*(g.g/255)),b:255*(p.b/255*(g.b/255))}:{r:255*((n=p.r/255)+(r=g.r/255)-n*r),g:255*((i=p.g/255)+(o=g.g/255)-i*o),b:255*((a=p.b/255)+(s=g.b/255)-a*s)};return X({r:W(Y(...ee,...h.r,m.r),...h.r),g:W(Y(...ee,...h.g,m.g),...h.g),b:W(Y(...ee,...h.b,m.b),...h.b)})}(a,l),n&&void 0!==o.mix){var u,c,d,f,h,p,g;let e=K(n),t=K(a);a=X((u=o.mix,{r:(c=e.r,d=t.r,c+(d-c)*u),g:(f=e.g,h=t.g,f+(h-f)*u),b:(p=e.b,g=t.b,p+(g-p)*u)}))}}catch(e){throw console.warn("could not blend",a,l),e}
27return"#aN"===a&&(console.warn(`invalid color token value: ${e}`),a=s),void 0!==o.opacity&&(a=J(a,o.opacity)),a}function en(e){return"string"==typeof e?e:e.hex}function er(e,t){let n=Object.entries(t),[,r]=n.find(([e])=>"transparent"===e),[,i]=n.find(([e])=>"default"===e),o=ei(r,{colorPalette:e}),a=ei(i,{colorPalette:e}),s=a.bg;if("white"===s)throw Error("Cannot blend with white background");return Object.fromEntries([["transparent",o],["default",a],...n.filter(([e])=>"default"!==e&&"transparent"!==e).map(([t,n])=>[t,ei(n,{bg:s,colorPalette:e})])])}function ei(e,t){var n,r,i,o;let{colorPalette:a,bg:s}=t,l=e._blend||"multiply",u=et(e.bg,{colorPalette:a,bg:s,blendMode:l}),c={colorPalette:a,bg:u,blendMode:l},d=(n=e.button,r={baseBg:u,blendMode:l,colorPalette:a},{default:es(n.default,r),ghost:es(n.ghost,r),bleed:es(n.bleed,r)}),f=function(e,t){let n={};for(let o of _){var r,i;n[o]=(r=e[o],i=t,{enabled:el(r.enabled,i),hovered:el(r.hovered,i),pressed:el(r.pressed,i),selected:el(r.selected,i),disabled:el(r.disabled,i)})}return n}(e.selectable,{colorPalette:a,baseBg:u,blendMode:l}),h={outline:et(e.shadow.outline,c),umbra:et(e.shadow.umbra,{...c,bg:void 0,colorPalette:{...a,black:"#000000"}}),penumbra:et(e.shadow.penumbra,{...c,bg:void 0,colorPalette:{...a,black:"#000000"}}),ambient:et(e.shadow.ambient,{...c,bg:void 0,colorPalette:{...a,black:"#000000"}})};return{_blend:l,_dark:e._dark,accent:{fg:et(e.accent.fg,c)},avatar:eo(e.avatar,{baseBg:u,colorPalette:a,blendMode:l}),backdrop:et(e.backdrop,c),badge:ea(e.badge,{baseBg:u,colorPalette:a,blendMode:l}),bg:u,border:et(e.border,c),button:d,code:{bg:et(e.code.bg,c),fg:et(e.code.fg,c)},fg:et(e.fg,c),focusRing:et(e.focusRing,c),icon:et(e.icon,c),input:(i=e.input,o={baseBg:u,colorPalette:a,blendMode:l},{default:eu(i.default,o),invalid:eu(i.invalid,o)}),kbd:function(e,t){let{baseBg:n,blendMode:r,colorPalette:i}=t,o=et(e.bg,{bg:n,blendMode:r,colorPalette:i}),a={bg:o,blendMode:r,colorPalette:i};return{bg:o,fg:et(e.fg,a),border:et(e.border,a)}}(e.kbd,{baseBg:u,colorPalette:a,blendMode:l}),link:{fg:et(e.link.fg,c)},muted:{bg:et(e.muted.bg,c),fg:et(e.muted.fg,c)},shadow:h,skeleton:{from:et(e.skeleton.from,c),to:et(e.skeleton.to,c)},syntax:function(e,t){let{colorPalette:n,baseBg:r,blendMode:i}=t,o={colorPalette:n,bg:r,blendMode:i};return{atrule:et(e.atrule,o),attrName:et(e.attrName,o),attrValue:et(e.attrValue,o),attribute:et(e.attribute,o),boolean:et(e.boolean,o),builtin:et(e.builtin,o),cdata:et(e.cdata,o),char:et(e.char,o),class:et(e.class,o),className:et(e.className,o),comment:et(e.comment,o),constant:et(e.constant,o),deleted:et(e.deleted,o),doctype:et(e.doctype,o),entity:et(e.entity,o),function:et(e.function,o),hexcode:et(e.hexcode,o),id:et(e.id,o),important:et(e.important,o),inserted:et(e.inserted,o),keyword:et(e.keyword,o),number:et(e.number,o),operator:et(e.operator,o),prolog:et(e.prolog,o),property:et(e.property,o),pseudoClass:et(e.pseudoClass,o),pseudoElement:et(e.pseudoElement,o),punctuation:et(e.punctuation,o),regex:et(e.regex,o),selector:et(e.selector,o),string:et(e.string,o),symbol:et(e.symbol,o),tag:et(e.tag,o),unit:et(e.unit,o),url:et(e.url,o),variable:et(e.variable,o)}}(e.syntax,{baseBg:u,colorPalette:a,blendMode:l}),selectable:f}}function eo(e,t){let n={};for(let i of r.Cv)n[i]=function(e,t){let{baseBg:n,blendMode:r,colorPalette:i}=t,o=e._blend||"multiply",a=et(e.bg,{bg:n,blendMode:r,colorPalette:i});return{_blend:o,bg:a,fg:et(e.fg,{bg:a,blendMode:o,colorPalette:i})}}(e[i],t);return n}function ea(e,t){let n={};for(let r of _)n[r]=function(e,t){let{baseBg:n,blendMode:r,colorPalette:i}=t,o=et(e.bg,{bg:n,blendMode:r,colorPalette:i}),a={bg:o,blendMode:r,colorPalette:i};return{bg:o,dot:et(e.dot,a),fg:et(e.fg,a),icon:et(e.icon,a)}}(e[r],t);return n}function es(e,t){let n={};for(let o of _){var r,i;n[o]=(r=e[o],i=t,{enabled:el(r.enabled,i),hovered:el(r.hovered,i),pressed:el(r.pressed,i),selected:el(r.selected,i),disabled:el(r.disabled,i)})}return n}function el(e,t){let{baseBg:n,blendMode:r,colorPalette:i}=t,o=e._blend||"multiply",a=et(e.bg,{bg:n,blendMode:r,colorPalette:i}),s={bg:a,blendMode:o,colorPalette:i};
27return{_blend:o,accent:{fg:et(e.accent.fg,s)},avatar:eo(e.avatar,{baseBg:a,colorPalette:i,blendMode:o}),badge:ea(e.badge,{baseBg:a,colorPalette:i,blendMode:o}),bg:a,border:et(e.border,s),code:{bg:et(e.code.bg,s),fg:et(e.code.fg,s)},fg:et(e.fg,s),icon:et(e.icon,s),link:{fg:et(e.link.fg,s)},muted:{bg:et(e.muted.bg,s),fg:et(e.muted.fg,s)},kbd:{bg:et(e.kbd.bg,s),fg:et(e.kbd.fg,s),border:et(e.kbd.border,s)},skeleton:{from:et(e.skeleton?.from,s),to:et(e.skeleton?.to,s)}}}function eu(e,t){return{enabled:ec(e.enabled,t),hovered:ec(e.hovered,t),readOnly:ec(e.readOnly,t),disabled:ec(e.disabled,t)}}function ec(e,t){let{baseBg:n,blendMode:r,colorPalette:i}=t,o=e._blend||"multiply",a=et(e.bg,{colorPalette:i,bg:n,blendMode:r}),s={colorPalette:i,bg:a,blendMode:o};return{_blend:o,bg:a,border:et(e.border,s),fg:et(e.fg,s),muted:{bg:et(e.muted.bg,s)},placeholder:et(e.placeholder,s)}}function ed(e){let t=function(e){let t={color:function(e){let t=$(M,e);return{base:function(e){let t={};for(let n of E)t[n]=function(e,t){let n=$(e?.base?.["*"],e?.base?.[t]),i=n._hue||e?.base?.[t]?._hue||"gray";return{...n,_hue:i,avatar:r.Cv.reduce((e,t)=>({...e,[t]:$({_hue:t},n.avatar?.["*"],n.avatar?.[t])}),{}),badge:_.reduce((t,r)=>({...t,[r]:{_hue:e?.base?.[r]?._hue||i,...n.badge?.["*"],...n.badge?.[r]}}),{})}}(e,n);return t}(t),button:function(e){let t={};for(let n of A)t[n]=function(e,t){let n={};for(let i of _)n[i]=function(e,t,n){let i={};for(let o of S)i[o]=function(e,t,n,i){let o=$(e?.button?.[n]?.["*"]?.["*"],e?.button?.[n]?.[t]?.["*"],e?.button?.[n]?.["*"]?.[i],e?.button?.[n]?.[t]?.[i]),a=o._hue||e?.base?.[t]?._hue;return{...o,_hue:a,avatar:r.Cv.reduce((e,t)=>({...e,[t]:$({_hue:t},o.avatar?.["*"],o.avatar?.[t])}),{}),badge:_.reduce((t,n)=>({...t,[n]:{_hue:e?.base?.[n]?._hue||a,...o.badge?.["*"],...o.badge?.[n]}}),{})}}(e,n,t,o);return i}(e,t,i);return n}(e,n);return t}(t),input:function(e){let t={};for(let n of T)t[n]=function(e,t){let n={};for(let r of C)n[r]=function(e,t,n){let r=$(e?.input?.["*"]?.["*"],e?.
27input?.[t]?.["*"],e?.input?.["*"]?.[n],e?.input?.[t]?.[n]),i=r._hue||e?.input?.[t]?._hue;return{...r,_hue:i}}(e,t,r);return n}(e,n);return t}(t),selectable:function(e){let t={};for(let n of _)t[n]=function(e,t){let n={_hue:e?.selectable?.[t]?._hue||e?.base?.[t]?._hue};for(let i of S)n[i]=function(e,t,n){let i=$(e?.selectable?.["*"]?.["*"],e?.selectable?.[t]?.["*"],e?.selectable?.["*"]?.[n],e?.selectable?.[t]?.[n]),o=i._hue||e?.base?.[t]?._hue;return{...i,_hue:o,avatar:r.Cv.reduce((e,t)=>({...e,[t]:$({_hue:t},i.avatar?.["*"],i.avatar?.[t])}),{}),badge:_.reduce((t,n)=>({...t,[n]:{_hue:e?.base?.[n]?._hue||o,...i.badge?.["*"],...i.badge?.[n]}}),{})}}(e,t,i);return n}(e,n);return t}(t),syntax:t.syntax}}(e?.color)};return{light:F({scheme:"light"},t),dark:F({scheme:"dark"},t)}}(e);return v({_version:2,avatar:e?.avatar??o.avatar,button:e?.button??o.button,card:e?.card??o.card,color:function(e,t){let n=t?.palette??H;return{light:er(n,e.light),dark:er(n,e.dark)}}(t,e),container:e?.container??o.container,font:e?.font??a,input:e?.input??o.input,layer:e?.layer??o.layer,media:e?.media??o.media,radius:e?.radius??o.radius,shadow:e?.shadow??o.shadow,space:e?.space??o.space,style:e?.style??o.style})}let ef=new Map;function eh(e,t,n){var r;let i=function(e,t,n){let r=ef.get(t);if(!r)return;let i=r.get(n);if(i)return i.get(e)}(e,t,n);if(i)return i;let a=g(e)?v(e):e,s=g(e)?e:function(e){if(e.v2)return e.v2;let t=m.get(e);if(t)return t;let{avatar:n,button:r,color:i,container:a,fonts:s,input:u,layer:c,media:d,radius:f,shadows:h,space:p,styles:g}=e,y={_version:2,avatar:{...o.avatar,...n},button:{...o.button,...r},card:o.card,color:{light:{transparent:l(i.light.transparent),default:l(i.light.default),neutral:l(i.light.transparent),primary:l(i.light.primary),suggest:l(i.light.primary),positive:l(i.light.positive),caution:l(i.light.caution),critical:l(i.light.critical)},dark:{transparent:l(i.dark.transparent),default:l(i.dark.default),neutral:l(i.dark.transparent),primary:l(i.dark.primary),suggest:l(i.dark.primary),positive:l(i.dark.positive),caution:l(i.dark.caution),critical:l(i.dark.critical)}},container:a,font:s,input:{...o.input,...u,checkbox:{...o.input.checkbox,...u.checkbox},radio:{...o.input.radio,...u.radio},switch:{...o.input.switch,...u.switch}},layer:c??o.layer,media:d,radius:f,shadow:h,space:p,style:g};return m.set(e,y),y}(e),u=a.color[t]||a.color.light,c=u[n]||u.default,d=a.layer||o.layer,f=s.color[t]||s.color.light,h="neutral"in(r=f[n]||f.default).badge?r:{...r,badge:{...r.badge,neutral:r.badge.default,suggest:r.badge.primary},button:{bleed:{...r.button.bleed,neutral:r.button.bleed.default,suggest:r.button.bleed.primary},default:{...r.button.default,neutral:r.button.default.default,suggest:r.button.default.primary},ghost:{...r.button.ghost,neutral:r.button.ghost.default,suggest:r.button.ghost.primary}},selectable:{...r.selectable,neutral:r.selectable.default,suggest:r.selectable.primary}},p=s.layer||o.layer,y={sanity:{...a,color:c,layer:d,v2:{...s,_resolved:!0,color:h,layer:p}}};return function(e,t,n,r){ef.has(t)||ef.set(t,new Map);let i=ef.get(t);i.has(n)||i.set(n,new WeakMap),i.get(n).set(e,r)}(e,t,n,y),y}},25191:(e,t,n)=>{var r=n(50466),i=n(94708);e.exports=function(e,t){return t.length<2?e:r(e,i(t,0,-1))}},25411:(e,t,n)=>{"use strict";n.d(t,{H:()=>p});var r=n(67122),i=n(29378),o=n(87086),a=n(12378),s=n(3039),l=n(72871),u=n(91264),c=n(77865);let d="_sentrySpan";
27function f(e,t){t?(0,c.my)(e,d,t):delete e[d]}class h{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:(0,s.el)(),spanId:(0,s.ZF)()}}clone(){let e=new h;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,f(e,this[d]),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&(0,r.qO)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let t="function"==typeof e?e(this):e,[n,r]=t instanceof p?[t.getScopeData(),t.getRequestSession()]:(0,i.Qd)(t)?[e,e.requestSession]:[],{tags:o,extra:a,user:s,contexts:l,level:u,fingerprint:c=[],propagationContext:d}=n||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...a},this._contexts={...this._contexts,...l},s&&Object.keys(s).length&&(this._user=s),u&&(this._level=u),c.length&&(this._fingerprint=c),d&&(this._propagationContext=d),r&&(this._requestSession=r),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,f(this,void 0),this._attachments=[],this.setPropagationContext({traceId:(0,s.el)()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n="number"==typeof t?t:100;if(n<=0)return this;let r={timestamp:(0,l.lu)(),...e};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client&&this._client.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:this[d]}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=(0,u.h)(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext={spanId:(0,s.ZF)(),...e},this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t&&t.event_id?t.event_id:(0,a.eJ)();if(!this._client)return o.vF.warn("No client configured on scope - will not capture exception!"),n;let r=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){let r=n&&n.event_id?n.event_id:(0,a.eJ)();if(!this._client)return o.vF.warn("No client configured on scope - will not capture message!"),r;let i=Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){let n=t&&t.event_id?t.event_id:(0,a.eJ)();return this._client?this._client.captureEvent(e,{...t,event_id:n},this):o.vF.warn("No client configured on scope - will not capture event!"),n}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
27h(e=>{e(this)}),this._notifyingListeners=!1)}}let p=h},25418:(e,t,n)=>{"use strict";n.d(t,{L:()=>l});var r=n(27778),i=n(94126),o=n(17953),a=n(29013),s=n(12884);function l(e){void 0===e&&(e=1/0);var t=e&&"object"==typeof e?e:{count:e},n=t.count,l=void 0===n?1/0:n,u=t.delay,c=t.resetOnSuccess,d=void 0!==c&&c;return l<=0?o.D:(0,r.N)(function(e,t){var n,r=0,o=function(){var c=!1;n=e.subscribe((0,i._)(t,function(e){d&&(r=0),t.next(e)},void 0,function(e){if(r++<l){var d=function(){n?(n.unsubscribe(),n=null,o()):c=!0};if(null!=u){var f="number"==typeof u?(0,a.O)(u):(0,s.Tg)(u(e,r)),h=(0,i._)(t,function(){h.unsubscribe(),d()},function(){t.complete()});f.subscribe(h)}else d()}else t.error(e)})),c&&(n.unsubscribe(),n=null,o())};o()})}},25471:(e,t,n)=>{var r=n(59741),i=n(11253),o=n(74922),a=n(23025),s=n(16758),l=n(67527);e.exports=function(e,t,n){var u=-1,c=i,d=e.length,f=!0,h=[],p=h;if(n)f=!1,c=o;else if(d>=200){var g=t?null:s(e);if(g)return l(g);f=!1,c=a,p=new r}else p=t?[]:h;e:for(;++u<d;){var m=e[u],y=t?t(m):m;if(m=n||0!==m?m:0,f&&y==y){for(var v=p.length;v--;)if(p[v]===y)continue e;t&&p.push(y),h.push(m)}else c(p,y,n)||(p!==h&&p.push(y),h.push(m))}return h}},25870:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(47528),i=n(71260);function o(e){(0,i.A)(1,arguments);var t=(0,r.A)(e);return t.setMinutes(0,0,0),t}},25908:(e,t,n)=>{var r=n(8290),i=n(38164),o=n(88567);e.exports=function(e){return(o(e)?r:i)(e)}},25922:(e,t,n)=>{"use strict";e.exports=a;var r=n(48179),i=n(69803),o="skip";function a(e,t,n,a){var s,l;"function"==typeof t&&"function"!=typeof n&&(a=n,n=t,t=null),l=r(t),s=a?-1:1,(function e(r,u,c){var d,f="object"==typeof r&&null!==r?r:{};return"string"==typeof f.type&&(d="string"==typeof f.tagName?f.tagName:"string"==typeof f.name?f.name:void 0,h.displayName="node ("+i(f.type+(d?"<"+d+">":""))+")"),h;function h(){var i,d,f,h=c.concat(r),p=[];if((!t||l(r,u,c[c.length-1]||null))&&!1===(p=null!==(i=n(r,c))&&"object"==typeof i&&"length"in i?i:"number"==typeof i?[!0,i]:[i])[0])return p;if(r.children&&p[0]!==o)for(f=(a?r.children.length:-1)+s;f>-1&&f<r.children.length;){if(!1===(d=e(r.children[f],f,h)())[0])return d;f="number"==typeof d[1]?d[1]:f+s}return p}})(e,null,[])()}a.CONTINUE=!0,a.SKIP=o,a.EXIT=!1},26011:(e,t,n)=>{"use strict";var r=n(60364),i=n(88559),o=n(32614),a=r.boolean,s=r.overloadedBoolean,l=r.booleanish,u=r.number,c=r.spaceSeparated,d=r.commaSeparated;e.exports=i({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:o,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:d,acceptCharset:c,accessKey:c,action:null,allow:null,allowFullScreen:a,allowPaymentRequest:a,allowUserMedia:a,alt:null,as:null,async:a,autoCapitalize:null,autoComplete:c,autoFocus:a,autoPlay:a,capture:a,charSet:null,checked:a,cite:null,className:c,cols:u,colSpan:null,content:null,contentEditable:l,controls:a,controlsList:c,coords:u|d,crossOrigin:null,data:null,dateTime:null,decoding:null,default:a,defer:a,dir:null,dirName:null,disabled:a,download:s,draggable:l,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:a,formTarget:null,headers:c,height:u,hidden:a,high:u,href:null,hrefLang:null,htmlFor:c,httpEquiv:c,id:null,imageSizes:null,imageSrcSet:d,inputMode:null,integrity:null,is:null,isMap:a,itemId:null,itemProp:c,itemRef:c,itemScope:a,itemType:c,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:a,low:u,manifest:null,max:null,maxLength:u,media:null,method:null,min:null,minLength:u,multiple:a,muted:a,name:null,nonce:null,noModule:a,noValidate:a,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:a,optimum:u,pattern:null,ping:c,placeholder:null,playsInl
27ine:a,poster:null,preload:null,readOnly:a,referrerPolicy:null,rel:c,required:a,reversed:a,rows:u,rowSpan:u,sandbox:c,scope:null,scoped:a,seamless:a,selected:a,shape:null,size:u,sizes:null,slot:null,span:u,spellCheck:l,src:null,srcDoc:null,srcLang:null,srcSet:d,start:u,step:null,style:null,tabIndex:u,target:null,title:null,translate:null,type:null,typeMustMatch:a,useMap:null,value:l,width:u,wrap:null,align:null,aLink:null,archive:c,axis:null,background:null,bgColor:null,border:u,borderColor:null,bottomMargin:u,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:a,declare:a,event:null,face:null,frame:null,frameBorder:null,hSpace:u,leftMargin:u,link:null,longDesc:null,lowSrc:null,marginHeight:u,marginWidth:u,noResize:a,noHref:a,noShade:a,noWrap:a,object:null,profile:null,prompt:null,rev:null,rightMargin:u,rules:null,scheme:null,scrolling:l,standby:null,summary:null,text:null,topMargin:u,valueType:null,version:null,vAlign:null,vLink:null,vSpace:u,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:a,disableRemotePlayback:a,prefix:null,property:null,results:u,security:null,unselectable:null}})},26167:(e,t,n)=>{"use strict";n.d(t,{T:()=>i});var r=n(73315);function i(e){return Symbol.asyncIterator&&(0,r.T)(null==e?void 0:e[Symbol.asyncIterator])}},26242:(e,t,n)=>{"use strict";let r=n(74412);e.exports=(e,t)=>{let n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}},26319:(e,t,n)=>{"use strict";n.d(t,{k:()=>o});var r=n(52826),i=n(28975);function o(e,t){let n=(0,r.q)(),o=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=(0,i.a)(e,t?.in),s=a.getDay();return a.setDate(a.getDate()-(7*(s<o)+s-o)),a.setHours(0,0,0,0),a}},26733:(e,t,n)=>{"use strict";var r=n(44316).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=r(n(27162)).default,e.exports=t.default},26734:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(18659),i=n(47528),o=n(71260);function a(e,t){(0,o.A)(2,arguments);var n=(0,i.A)(e),a=(0,r.A)(t);return n.setHours(a),n}},26825:(e,t,n)=>{var r=n(65550),i=n(40646),o=n(68685),a=n(95507),s=/^\[object .+?Constructor\]$/,l=Object.prototype,u=Function.prototype.toString,c=l.hasOwnProperty,d=RegExp("^"+u.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?d:s).test(a(e))}},26922:(e,t,n)=>{"use strict";n.d(t,{L:()=>v,g:()=>d});var r=n(50437);function i(e,t,n){return delete e[t],e[t]=n,n}function o(e,t,n,r){let i=e.value,o=t.value;return r?{type:"array",action:"changed",isChanged:!0,fromValue:i,toValue:o,items:n,annotation:t.annotation}:{type:"array",action:"unchanged",isChanged:!1,fromValue:i,toValue:o,items:n}}function a(e,t,n){if(e.length!==t.length)return;let r=[];for(let i=0;i<e.length;i++){let o=d(e.at(i),t.at(i),n);if(o.isChanged)return;r.push({fromIndex:i,toIndex:i,hasMoved:!1,diff:o,annotation:t.annotationAt(i)})}return r}function s(e,t){if(void 0!==e.toIndex&&void 0!==t.toIndex)return e.toIndex-t.toIndex;if(void 0!==e.fromIndex&&void 0!==t.fromIndex)return e.fromIndex-t.fromIndex;if(void 0!==e.fromIndex&&void 0!==t.toIndex)return -1;if(void 0!==e.toIndex&&void 0!==t.fromIndex)return 1;throw Error("invalid item diff comparison")}function l(e,t,n){let r=e.get(t);(function(e,t){let n=e.indexOf(t);if(-1===n)throw Error("value not found");e.splice(n,1)})(r,n),0===r.length&&e.delete(t)}function u(e){let t=new Map,n=[],r=e.length;for(let i=0;i<r;i++){let r=e.at(i),o=null;switch(r.type){case"string":o=`s${r.value}`;break;case"number":case"boolean":o=r.value;break;case"null":o="n";break;case"object":{let e=r.get("_key");if(e&&"string"===e.type&&(o=`k${e.value}`,t.has(o)))return}}if(null===o)return;n.push(o);let a=t.get(o);a||(a=[],t.set(o,a)),a.push(i)}return{keys:n,index:t}}let c=new Set(["_id","_type","_createdAt","_updatedAt","_rev","_weak"]);function d(e,t,n={}){return e.type!==t.type?"null"===e.type?h(t,null):"null"===t.type?f(e,null):{type:"typeChange",action:"changed",isChanged:!0,fromType:e.type,fromValue:e.value,fromDiff:f(e,void 0),toType:t.type,toValue:t.value,toDiff:h(t,void 0),annotation:t.annotation}:function(e,t,n,p){switch(e){case"null":return{type:"null",action:"unchanged",isChanged:!1,toValue:null,fromValue:null};case"boolean":return function(e,t,n){let r=e.value,i=t.value,o=e.type;return r===i?{type:o,action:"unchanged",fromValue:r,toValue:i,isChanged:!1}:{type:e.type,action:"changed",isChanged:!0,fromValue:r,toValue:i,annotation:t.annotation}}(t,n);case"number":return function(e,t,n){let r=e.value,i=t.value,o=e.type;return r===i?{type:o,action:"unchanged",fromValue:r,toValue:i,isChanged:!1}:{type:e.type,action:"changed",isChanged:!0,fromValue:r,toValue:i,annotation:t.annotation}}(t,n);case"string":let g=t.value,m=n.value;return g===m?{type:"string",action:"unchanged",isChanged:!1,fromValue:g,toValue:m,segments:[{type:"stringSegment",action:"unchanged",text:g}]}:{type:"string",action:"changed",isChanged:!0,fromValue:g,toValue:m,annotation:n.annotation,get segments(){return i(this,"segments",function(e,t){let n=[],i=(0,r.Vx)((0,r.iU)(e.value,t.value)),o=0,a=0;for(let[s,l]of i)switch(s){case r.lw:n.push({type:"stringSegment",action:"unchanged",text:l}),o+=l.length,a+=l.length;break;case r.Cm:for(let t of e.sliceAnnotation(o,o+l.length))n.push({type:"stringSegment",action:"removed",text:t.text,annotation:t.annotation});o+=l.length;break;case r.Ug:for(let e of t.sliceAnnotation(a,a+l.length))n.push({type:"stringSegment",action:"added",text:e.text,annotation:e.annotation});a+=l.length;break;default:throw Error(`Unhandled diff-match-patch operation "${s}"`)}return n}(t,n))}};case"array":if(t===n)return{type:"array",action:"unchanged",isChanged:!1,fromValue:t.value,toValue:n.value,get items(){let e=a(t,n,p);if(!e)throw Error("invariant broken: equivalent input, but diff detected");return i(this,"items",e)}};let y=u(t),v=u(n);if(y&&v)return function(e,t,n,r,i){var a,u;let c=[],p=!1;
27function g(i,o,a,s){l(t.index,i,o),l(r.index,i,a);let u=d(e.at(o),n.at(a));c.push({fromIndex:o,toIndex:a,hasMoved:s,diff:u,annotation:n.annotationAt(a)}),(u.isChanged||o!==a)&&(p=!0)}let m=function(e,t,n){let r=t.length,i=n.length,o={sequence:[],prevIndices:[],nextIndices:[]};for(;0!==r&&0!==i;)t[r-1]===n[i-1]?(o.sequence.unshift(t[r-1]),o.prevIndices.unshift(r-1),o.nextIndices.unshift(i-1),--r,--i):e[r][i-1]>e[r-1][i]?--i:--r;return o}(function(e,t){let n=e.length,r=t.length,i=0,o=0,a=Array(n+1);for(i=0;i<n+1;i++)for(a[i]=[r+1],o=0;o<r+1;o++)a[i][o]=0;for(i=1;i<n+1;i++)for(o=1;o<r+1;o++)e[i-1]===t[o-1]?a[i][o]=a[i-1][o-1]+1:a[i][o]=Math.max(a[i-1][o],a[i][o-1]);return a}(a=t.keys,u=r.keys),a,u);for(let n=0;n<t.keys.length;n++){let i=t.keys[n],o=m.prevIndices.indexOf(n);if(-1!==o){g(i,n,m.nextIndices[o],!1);continue}let a=r.index.get(i),s=a&&a.find(e=>!m.nextIndices.includes(e));if(void 0!==s){g(i,n,s,!0);continue}let l=e.at(n);c.push({fromIndex:n,toIndex:void 0,hasMoved:!1,diff:f(l,void 0),annotation:e.annotationAt(n)}),p=!0}for(let e of r.index.values()){for(let t of e){let e=n.at(t);c.push({fromIndex:void 0,toIndex:t,hasMoved:!1,diff:h(e,void 0),annotation:n.annotationAt(t)})}p=!0}return c.sort(s),o(e,n,c,p)}(t,y,n,v);let b=a(t,n,p);return b?o(t,n,b,!1):function(e,t,n){let r=[];for(let e=0;e<t.length;e++){let n=t.at(e);r.push({fromIndex:void 0,toIndex:e,hasMoved:!1,diff:h(n,void 0),annotation:n.annotation})}for(let t=0;t<e.length;t++){let n=e.at(t);r.push({fromIndex:t,toIndex:void 0,hasMoved:!1,diff:f(n,void 0),annotation:n.annotation})}return o(e,t,r,!0)}(t,n);case"object":return function(e,t,n){let r={},i=!1;for(let o of e.keys){if(c.has(o))continue;let a=e.get(o),s=t.get(o);if(s){let e=d(a,s,n);r[o]=e,e.isChanged&&(i=!0)}else r[o]=f(a,void 0),i=!0}for(let n of t.keys){if(c.has(n)||e.get(n))continue;let o=t.get(n);r[n]=h(o,void 0),i=!0}let o=e.value,a=t.value;return i?{type:"object",action:"changed",isChanged:!0,fromValue:o,toValue:a,fields:r,annotation:t.annotation}:{type:"object",action:"unchanged",isChanged:!1,fromValue:o,toValue:a,fields:r}}(t,n,p);default:throw Error(`Unhandled diff type "${e}"`)}}(e.type,e,t,n)}function f(e,t,n){switch(e.type){case"null":return{type:"null",action:"removed",isChanged:!0,fromValue:null,toValue:t,annotation:e.annotation};case"boolean":return{type:"boolean",action:"removed",isChanged:!0,fromValue:e.value,toValue:t,annotation:e.annotation};case"number":return{type:"number",action:"removed",isChanged:!0,fromValue:e.value,toValue:t,annotation:e.annotation};case"string":return{type:"string",action:"removed",isChanged:!0,fromValue:e.value,toValue:t,annotation:e.annotation,get segments(){return i(this,"segments",e.sliceAnnotation(0,e.value.length).map(e=>({type:"stringSegment",action:"removed",...e})))}};case"array":return{type:"array",action:"removed",isChanged:!0,fromValue:e.value,toValue:t,annotation:e.annotation,get items(){let t=[];for(let n=0;n<e.length;n++){let r=e.at(n);t.push({fromIndex:n,toIndex:void 0,hasMoved:!1,diff:f(r,void 0),annotation:e.annotationAt(n)})}return i(this,"items",t)}};case"object":return{type:"object",action:"removed",isChanged:!0,fromValue:e.value,toValue:t,annotation:e.annotation,get fields(){let t={};for(let n of e.keys){let r=e.get(n);t[n]=f(r,void 0)}return i(this,"fields",t)}};default:throw Error("Unhandled diff type")}}function h(e,t,n){switch(e.type){case"null":return{type:"null",action:"added",isChanged:!0,fromValue:t,toValue:null,annotation:e.annotation};case"boolean":return{type:"boolean",action:"added",isChanged:!0,fromValue:t,toValue:e.value,annotation:e.annotation};case"number":return{type:"number",action:"added",isChanged:!0,fromValue:t,toValue:e.value,annotation:e.annotation};case"string":return{type:"string",action:"added",isChanged:!0,fromValue:t,toValue:e.value,annotation:e.annotation,get segments(){return i(this,"segments",e.sliceAnnotation(0,e.value.length).map(e=>({type:"stringSegment",action:"added",...e})))}};case"array":return{type:"array",action:"added",isChanged:!0,fromValue:t,toValue:e.value,annotation:e.annotation,get items(){let t=[];for(let n=0;n<e.length;n++){let r=e.at(n);t.push({fromIndex:void 0,toIndex:n,hasMoved:!1,diff:h(r,void 0),annotation:e.annotationAt(n)})}return i(this,"items",t)}};case"object":return{type:"object",action:"added",isChanged:!0,fromValue:t,toValue:e.value,annotation:e.annotation,get fields(){let t={};for(let n of e.keys){let r=e.get(n);t[n]=h(r,void 0)}return i(this,"fields",t)}};default:throw Error("Unhandled diff type")}}class p{type="array";length;value;annotation;elements=[];constructor(e,t){this.annotation=t,this.value=e,this.length=e.length}at(e){if(e>=this.length)throw Error("out of bounds");return this.elements[e]||(this.elements[e]=v(this.value[e],this.annotation))}annotationAt(){return this.annotation}}class g{type;value;annotation;constructor(e,t,n){this.type=e,this.value=t,this.annotation=n}}class m{type="object";value;keys;annotation;fields={};constructor(e,t){this.value=e,this.annotation=t,this.keys=Object.keys(e)}get(e){let t=this.fields[e];if(t)return t;if(!this.value.hasOwnProperty(e))return;let n=this.value[e];return this.fields[e]=v(n,this.annotation)}}class y{type="string";value;annotation;constructor(e,t){this.value=e,this.annotation=t}sliceAnnotation(e,t){return[{text:this.value.slice(e,t),annotation:this.annotation}]}}function v(e,t){if(Array.isArray(e))return new p(e,t);if(null===e)return new g("null",e,t);let n=typeof e;switch(n){case"number":case"boolean":return new g(n,e,t);case"object":return new m(e,t);case"string":return new y(e,t);default:throw Error(`cannot wrap value of type: ${n}`)}}}
27,26943:(e,t,n)=>{var r=n(65206),i="object"==typeof self&&self&&self.Object===Object&&self;e.exports=r||i||Function("return this")()},26982:(e,t,n)=>{"use strict";n.d(t,{q:()=>h});var r=n(15319),i=n(18449),o=n(82326),a=n(91558),s=n(14656),l=n(95085),u=n(79446),c=n(62739);let d={current:[],added:[],removed:[]},f=[];function h(e,t=(e,t)=>e===t){return n=>{let h=n.pipe((0,r.u)()),g=h.pipe((0,i.S)((e,n)=>{let r=n.filter(n=>!e.current.find(e=>t(e,n))),i=e.current.filter(e=>!n.find(n=>t(n,e)));return{current:n,added:p(r,t),removed:p(i,t)}},d)).pipe((0,r.u)(),(0,o.p)(e=>e.added.length>0||e.removed.length>0)),m=g.pipe((0,a.Z)(e=>e.removed)),y=g.pipe((0,a.Z)(e=>e.added)),v=h.pipe((0,o.p)(e=>0===e.length),(0,u.T)(()=>f)),b=y.pipe((0,a.Z)(n=>{let i=m.pipe((0,o.p)(e=>t(e,n))).pipe((0,r.u)());return(0,s.h)(i.pipe((0,u.T)(()=>({type:"remove",element:n}))),e(n).pipe((0,l.Q)(i),(0,u.T)(e=>({type:"emit",element:n,projected:e}))))}),(0,c.E)(h),(0,i.S)((e,[n,r])=>r.flatMap(r=>t(r,n.element)?"remove"===n.type?[]:{item:r,emitted:!0,value:n.projected}:e.find(e=>e&&t(e.item,r))),[]),(0,o.p)(e=>e.every(e=>null==e?void 0:e.emitted)),(0,u.T)(e=>e.map(e=>e.value)));return(0,s.h)(v,b)}}function p(e,t){let n=[],r=!1;for(let i of e)n.find(e=>t(e,i))?r=!0:n.push(i);return r?n:e}},27162:(e,t,n)=>{"use strict";var r=n(44316).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(68268)),o=r(n(22217)),a=r(n(52339)),s=r(n(49107)),l=r(n(42767));t.default={code:"en-US",formatDistance:i.default,formatLong:o.default,formatRelative:a.default,localize:s.default,match:l.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},e.exports=t.default},27271:(e,t,n)=>{var r=n(48473),i=n(68160),o=n(25471);e.exports=function(e,t,n){var a=e.length;if(a<2)return a?o(e[0]):[];for(var s=-1,l=Array(a);++s<a;)for(var u=e[s],c=-1;++c<a;)c!=s&&(l[s]=r(l[s]||u,e[c],t,n));return o(i(l,1),t,n)}},27313:(e,t,n)=>{"use strict";n.d(t,{KU:()=>w,o5:()=>m,m6:()=>v,rm:()=>y,vn:()=>x,v4:()=>b});var r=n(87014),i=n(6541);function o(){return a(i.O),i.O}function a(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||r.M,t[r.M]=t[r.M]||{}}var s=n(25411),l=n(29378);class u{constructor(e,t){let n,r;n=e||new s.H,r=t||new s.H,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t,n=this._pushScope();try{t=e(n)}catch(e){throw this._popScope(),e}return(0,l.Qg)(t)?t.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(this._popScope(),t)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function c(){let e=a(o());return e.stack=e.stack||new u((0,i.B)("defaultCurrentScope",()=>new s.H),(0,i.B)("defaultIsolationScope",()=>new s.H))}function d(e){return c().withScope(e)}function f(e,t){let n=c();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function h(e){return c().withScope(()=>e(c().getIsolationScope()))}function p(e){let t=a(e);return t.acs?t.acs:{withIsolationScope:h,withScope:d,withSetScope:f,withSetIsolationScope:(e,t)=>h(t),getCurrentScope:()=>c().getScope(),getIsolationScope:()=>c().getIsolationScope()}}var g=n(77865);function m(){return p(o()).getCurrentScope()}function y(){return p(o()).getIsolationScope()}function v(){return(0,i.B)("globalScope",()=>new s.H)}function b(...e){let t=p(o());if(2===e.length){let[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function w(){return m().getClient()}function x(e){let{traceId:t,spanId:n,parentSpanId:r}=e.getPropagationContext();return(0,g.Ce)({trace_id:t,span_id:n,parent_span_id:r})}},27429:(e,t,n)=>{"use strict";var r="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof n.g?n.g:{}
27,i=function(){var e="Prism"in r,t=e?r.Prism:void 0;return function(){e?r.Prism=t:delete r.Prism,e=void 0,t=void 0}}();r.Prism={manual:!0,disableWorkerMessageHandler:!0};var o=n(59133),a=n(71241),s=n(88071),l=n(50195),u=n(52413),c=n(55087),d=n(40944);i();var f={}.hasOwnProperty;function h(){}h.prototype=s;var p=new h;function g(e){if("function"!=typeof e||!e.displayName)throw Error("Expected `function` for `grammar`, got `"+e+"`");void 0===p.languages[e.displayName]&&e(p)}e.exports=p,p.highlight=function(e,t){var n,r=s.highlight;if("string"!=typeof e)throw Error("Expected `string` for `value`, got `"+e+"`");if("Object"===p.util.type(t))n=t,t=null;else{if("string"!=typeof t)throw Error("Expected `string` for `name`, got `"+t+"`");if(f.call(p.languages,t))n=p.languages[t];else throw Error("Unknown language: `"+t+"` is not registered")}return r.call(this,e,n,t)},p.register=g,p.alias=function(e,t){var n,r,i,o,a=p.languages,s=e;for(n in t&&((s={})[e]=t),s)for(i=(r="string"==typeof(r=s[n])?[r]:r).length,o=-1;++o<i;)a[r[o]]=a[n]},p.registered=function(e){if("string"!=typeof e)throw Error("Expected `string` for `language`, got `"+e+"`");return f.call(p.languages,e)},p.listLanguages=function(){var e,t=p.languages,n=[];for(e in t)f.call(t,e)&&"object"==typeof t[e]&&n.push(e);return n},g(l),g(u),g(c),g(d),p.util.encode=function(e){return e},p.Token.stringify=function(e,t,n){var r;return"string"==typeof e?{type:"text",value:e}:"Array"===p.util.type(e)?function(e,t){for(var n,r=[],i=e.length,o=-1;++o<i;)""!==(n=e[o])&&null!=n&&r.push(n);for(o=-1,i=r.length;++o<i;)n=r[o],r[o]=p.Token.stringify(n,t,r);return r}(e,t):(r={type:e.type,content:p.Token.stringify(e.content,t,n),tag:"span",classes:["token",e.type],attributes:{},language:t,parent:n},e.alias&&(r.classes=r.classes.concat(e.alias)),p.hooks.run("wrap",r),o(r.tag+"."+r.classes.join("."),function(e){var t;for(t in e)e[t]=a(e[t]);return e}(r.attributes),r.content))}},27778:(e,t,n)=>{"use strict";n.d(t,{N:()=>o,S:()=>i});var r=n(73315);function i(e){return(0,r.T)(null==e?void 0:e.lift)}function o(e){return function(t){if(i(t))return t.lift(function(t){try{return e(t,this)}catch(e){this.error(e)}});throw TypeError("Unable to lift unknown Observable type")}}},27830:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(29039),i=n(73315);function o(e){return!!e&&(e instanceof r.c||(0,i.T)(e.lift)&&(0,i.T)(e.subscribe))}},27842:(e,t,n)=>{"use strict";let r=n(32112);e.exports=(e,t,n)=>r(e,t,n)>0},27886:function(e,t){var n;!function(r){"use strict";var i={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"Ae",Å:"A",Æ:"AE",Ç:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"Oe",Ő:"O",Ø:"O",Ù:"U",Ú:"U",Û:"U",Ü:"Ue",Ű:"U",Ý:"Y",Þ:"TH",ß:"ss",à:"a",á:"a",â:"a",ã:"a",ä:"ae",å:"a",æ:"ae",ç:"c",è:"e",é:"e",ê:"e",ë:"e",ì:"i",í:"i",î:"i",ï:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"oe",ő:"o",ø:"o",ù:"u",ú:"u",û:"u",ü:"ue",ű:"u",ý:"y",þ:"th",ÿ:"y",ẞ:"SS",ا:"a",أ:"a",إ:"i",آ:"aa",ؤ:"u",ئ:"e",ء:"a",ب:"b",ت:"t",ث:"th",ج:"j",ح:"h",خ:"kh",د:"d",ذ:"th",ر:"r",ز:"z",س:"s",ش:"sh",ص:"s",ض:"dh",ط:"t",ظ:"z",ع:"a",غ:"gh",ف:"f",ق:"q",ك:"k",ل:"l",م:"m",ن:"n",ه:"h",و:"w",ي:"y",ى:"a",ة:"h",ﻻ:"la",ﻷ:"laa",ﻹ:"lai",ﻵ:"laa",گ:"g",چ:"ch",پ:"p",ژ:"zh",ک:"k",ی:"y","َ":"a","ً":"an","ِ":"e","ٍ":"en","ُ":"u","ٌ":"on","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9",က:"k",ခ:"kh",ဂ:"g",ဃ:"ga",င:"ng",စ:"s",ဆ:"sa",ဇ:"z",စျ:"za",ည:"ny",ဋ:"t",ဌ:"ta",ဍ:"d",ဎ:"da",ဏ:"na",တ:"t",ထ:"ta",ဒ:"d",ဓ:"da",န:"n",ပ:"p",ဖ:"pa",ဗ:"b",ဘ:"ba",မ:"m",ယ:"y",ရ:"ya",လ:"l",ဝ:"w",သ:"th",ဟ:"h",ဠ:"la",အ:"a","ြ":"y","ျ":"ya","ွ":"w","ြွ":"yw","ျွ":"ywa","ှ":"h",ဧ:"e","၏":"-e",ဣ:"i",ဤ:"-i",ဉ:"u",ဦ:"-u",ဩ:"aw",သြော:"aw",ဪ:"aw","၀":"0","၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","္":"","့":"","း":"",č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z",ހ:"h",ށ:"sh",ނ:"n",ރ:"r",ބ:"b",ޅ:"lh",ކ:"k",އ:"a",ވ:"v",މ:"m",ފ:"f",ދ:"dh",ތ:"th",ލ:"l",ގ:"g",ޏ:"gn",ސ:"s",ޑ:"d",ޒ:"z",ޓ:"t",ޔ:"y",ޕ:"p",ޖ:"j",ޗ:"ch",ޘ:"tt",
27ޙ:"hh",ޚ:"kh",ޛ:"th",ޜ:"z",ޝ:"sh",ޞ:"s",ޟ:"d",ޠ:"t",ޡ:"z",ޢ:"a",ޣ:"gh",ޤ:"q",ޥ:"w","ަ":"a","ާ":"aa","ި":"i","ީ":"ee","ު":"u","ޫ":"oo","ެ":"e","ޭ":"ey","ޮ":"o","ޯ":"oa","ް":"",ა:"a",ბ:"b",გ:"g",დ:"d",ე:"e",ვ:"v",ზ:"z",თ:"t",ი:"i",კ:"k",ლ:"l",მ:"m",ნ:"n",ო:"o",პ:"p",ჟ:"zh",რ:"r",ს:"s",ტ:"t",უ:"u",ფ:"p",ქ:"k",ღ:"gh",ყ:"q",შ:"sh",ჩ:"ch",ც:"ts",ძ:"dz",წ:"ts",ჭ:"ch",ხ:"kh",ჯ:"j",ჰ:"h",α:"a",β:"v",γ:"g",δ:"d",ε:"e",ζ:"z",η:"i",θ:"th",ι:"i",κ:"k",λ:"l",μ:"m",ν:"n",ξ:"ks",ο:"o",π:"p",ρ:"r",σ:"s",τ:"t",υ:"y",φ:"f",χ:"x",ψ:"ps",ω:"o",ά:"a",έ:"e",ί:"i",ό:"o",ύ:"y",ή:"i",ώ:"o",ς:"s",ϊ:"i",ΰ:"y",ϋ:"y",ΐ:"i",Α:"A",Β:"B",Γ:"G",Δ:"D",Ε:"E",Ζ:"Z",Η:"I",Θ:"TH",Ι:"I",Κ:"K",Λ:"L",Μ:"M",Ν:"N",Ξ:"KS",Ο:"O",Π:"P",Ρ:"R",Σ:"S",Τ:"T",Υ:"Y",Φ:"F",Χ:"X",Ψ:"PS",Ω:"O",Ά:"A",Έ:"E",Ί:"I",Ό:"O",Ύ:"Y",Ή:"I",Ώ:"O",Ϊ:"I",Ϋ:"Y",ā:"a",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",ū:"u",Ā:"A",Ē:"E",Ģ:"G",Ī:"I",Ķ:"k",Ļ:"L",Ņ:"N",Ū:"U",Ќ:"Kj",ќ:"kj",Љ:"Lj",љ:"lj",Њ:"Nj",њ:"nj",Тс:"Ts",тс:"ts",ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"E",Ł:"L",Ń:"N",Ś:"S",Ź:"Z",Ż:"Z",Є:"Ye",І:"I",Ї:"Yi",Ґ:"G",є:"ye",і:"i",ї:"yi",ґ:"g",ă:"a",Ă:"A",ș:"s",Ș:"S",ț:"t",Ț:"T",ţ:"t",Ţ:"T",а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"i",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"kh",ц:"c",ч:"ch",ш:"sh",щ:"sh",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya",А:"A",Б:"B",В:"V",Г:"G",Д:"D",Е:"E",Ё:"Yo",Ж:"Zh",З:"Z",И:"I",Й:"I",К:"K",Л:"L",М:"M",Н:"N",О:"O",П:"P",Р:"R",С:"S",Т:"T",У:"U",Ф:"F",Х:"Kh",Ц:"C",Ч:"Ch",Ш:"Sh",Щ:"Sh",Ъ:"",Ы:"Y",Ь:"",Э:"E",Ю:"Yu",Я:"Ya",ђ:"dj",ј:"j",ћ:"c",џ:"dz",Ђ:"Dj",Ј:"j",Ћ:"C",Џ:"Dz",ľ:"l",ĺ:"l",ŕ:"r",Ľ:"L",Ĺ:"L",Ŕ:"R",ş:"s",Ş:"S",ı:"i",İ:"I",ğ:"g",Ğ:"G",ả:"a",Ả:"A",ẳ:"a",Ẳ:"A",ẩ:"a",Ẩ:"A",đ:"d",Đ:"D",ẹ:"e",Ẹ:"E",ẽ:"e",Ẽ:"E",ẻ:"e",Ẻ:"E",ế:"e",Ế:"E",ề:"e",Ề:"E",ệ:"e",Ệ:"E",ễ:"e",Ễ:"E",ể:"e",Ể:"E",ỏ:"o",ọ:"o",Ọ:"o",ố:"o",Ố:"O",ồ:"o",Ồ:"O",ổ:"o",Ổ:"O",ộ:"o",Ộ:"O",ỗ:"o",Ỗ:"O",ơ:"o",Ơ:"O",ớ:"o",Ớ:"O",ờ:"o",Ờ:"O",ợ:"o",Ợ:"O",ỡ:"o",Ỡ:"O",Ở:"o",ở:"o",ị:"i",Ị:"I",ĩ:"i",Ĩ:"I",ỉ:"i",Ỉ:"i",ủ:"u",Ủ:"U",ụ:"u",Ụ:"U",ũ:"u",Ũ:"U",ư:"u",Ư:"U",ứ:"u",Ứ:"U",ừ:"u",Ừ:"U",ự:"u",Ự:"U",ữ:"u",Ữ:"U",ử:"u",Ử:"ư",ỷ:"y",Ỷ:"y",ỳ:"y",Ỳ:"Y",ỵ:"y",Ỵ:"Y",ỹ:"y",Ỹ:"Y",ạ:"a",Ạ:"A",ấ:"a",Ấ:"A",ầ:"a",Ầ:"A",ậ:"a",Ậ:"A",ẫ:"a",Ẫ:"A",ắ:"a",Ắ:"A",ằ:"a",Ằ:"A",ặ:"a",Ặ:"A",ẵ:"a",Ẵ:"A","⓪":"0","①":"1","②":"2","③":"3","④":"4","⑤":"5","⑥":"6","⑦":"7","⑧":"8","⑨":"9","⑩":"10","⑪":"11","⑫":"12","⑬":"13","⑭":"14","⑮":"15","⑯":"16","⑰":"17","⑱":"18","⑲":"18","⑳":"18","⓵":"1","⓶":"2","⓷":"3","⓸":"4","⓹":"5","⓺":"6","⓻":"7","⓼":"8","⓽":"9","⓾":"10","⓿":"0","⓫":"11","⓬":"12","⓭":"13","⓮":"14","⓯":"15","⓰":"16","⓱":"17","⓲":"18","⓳":"19","⓴":"20","Ⓐ":"A","Ⓑ":"B","Ⓒ":"C","Ⓓ":"D","Ⓔ":"E","Ⓕ":"F","Ⓖ":"G","Ⓗ":"H","Ⓘ":"I","Ⓙ":"J","Ⓚ":"K","Ⓛ":"L","Ⓜ":"M","Ⓝ":"N","Ⓞ":"O","Ⓟ":"P","Ⓠ":"Q","Ⓡ":"R","Ⓢ":"S","Ⓣ":"T","Ⓤ":"U","Ⓥ":"V","Ⓦ":"W","Ⓧ":"X","Ⓨ":"Y","Ⓩ":"Z","ⓐ":"a","ⓑ":"b","ⓒ":"c","ⓓ":"d","ⓔ":"e","ⓕ":"f","ⓖ":"g","ⓗ":"h","ⓘ":"i","ⓙ":"j","ⓚ":"k","ⓛ":"l","ⓜ":"m","ⓝ":"n","ⓞ":"o","ⓟ":"p","ⓠ":"q","ⓡ":"r","ⓢ":"s","ⓣ":"t","ⓤ":"u","ⓦ":"v","ⓥ":"w","ⓧ":"x","ⓨ":"y","ⓩ":"z","“":'"',"”":'"',"‘":"'","’":"'","∂":"d",ƒ:"f","™":"(TM)","\xa9":"(C)",œ:"oe",Œ:"OE","\xae":"(R)","†":"+","℠":"(SM)","…":"...","˚":"o",º:"o",ª:"a","•":"*","၊":",","။":".",$:"USD","€":"EUR","₢":"BRN","₣":"FRF","\xa3":"GBP","₤":"ITL","₦":"NGN","₧":"ESP","₩":"KRW","₪":"ILS","₫":"VND","₭":"LAK","₮":"MNT","₯":"GRD","₱":"ARS","₲":"PYG","₳":"ARA","₴":"UAH","₵":"GHS","\xa2":"cent","\xa5":"CNY",元:"CNY",円:"YEN","﷼":"IRR","₠":"EWE","฿":"THB","₨":"INR","₹":"INR","₰":"PF","₺":"TRY","؋":"AFN","₼":"AZN",лв:"BGN","៛":"KHR","₡":"CRC","₸"
27:"KZT",ден:"MKD",zł:"PLN","₽":"RUB","₾":"GEL"},o=["်","ް"],a={"ာ":"a","ါ":"a","ေ":"e","ဲ":"e","ိ":"i","ီ":"i","ို":"o","ု":"u","ူ":"u","ေါင်":"aung","ော":"aw","ော်":"aw","ေါ":"aw","ေါ်":"aw","်":"်",က်:"et","ိုက်":"aik","ောက်":"auk",င်:"in","ိုင်":"aing","ောင်":"aung",စ်:"it",ည်:"i",တ်:"at","ိတ်":"eik","ုတ်":"ok","ွတ်":"ut","ေတ်":"it",ဒ်:"d","ိုဒ်":"ok","ုဒ်":"ait",န်:"an","ာန်":"an","ိန်":"ein","ုန်":"on","ွန်":"un",ပ်:"at","ိပ်":"eik","ုပ်":"ok","ွပ်":"ut",န်ုပ်:"nub",မ်:"an","ိမ်":"ein","ုမ်":"on","ွမ်":"un",ယ်:"e","ိုလ်":"ol",ဉ်:"in","ံ":"an","ိံ":"ein","ုံ":"on","ައް":"ah","ަށް":"ah"},s={en:{},az:{ç:"c",ə:"e",ğ:"g",ı:"i",ö:"o",ş:"s",ü:"u",Ç:"C",Ə:"E",Ğ:"G",İ:"I",Ö:"O",Ş:"S",Ü:"U"},cs:{č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z"},fi:{ä:"a",Ä:"A",ö:"o",Ö:"O"},hu:{ä:"a",Ä:"A",ö:"o",Ö:"O",ü:"u",Ü:"U",ű:"u",Ű:"U"},lt:{ą:"a",č:"c",ę:"e",ė:"e",į:"i",š:"s",ų:"u",ū:"u",ž:"z",Ą:"A",Č:"C",Ę:"E",Ė:"E",Į:"I",Š:"S",Ų:"U",Ū:"U"},lv:{ā:"a",č:"c",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",š:"s",ū:"u",ž:"z",Ā:"A",Č:"C",Ē:"E",Ģ:"G",Ī:"i",Ķ:"k",Ļ:"L",Ņ:"N",Š:"S",Ū:"u",Ž:"Z"},pl:{ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ó:"o",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"e",Ł:"L",Ń:"N",Ó:"O",Ś:"S",Ź:"Z",Ż:"Z"},sv:{ä:"a",Ä:"A",ö:"o",Ö:"O"},sk:{ä:"a",Ä:"A"},sr:{љ:"lj",њ:"nj",Љ:"Lj",Њ:"Nj",đ:"dj",Đ:"Dj"},tr:{Ü:"U",Ö:"O",ü:"u",ö:"o"}},l={ar:{"∆":"delta","∞":"la-nihaya","♥":"hob","&":"wa","|":"aw","<":"aqal-men",">":"akbar-men","∑":"majmou","\xa4":"omla"},az:{},ca:{"∆":"delta","∞":"infinit","♥":"amor","&":"i","|":"o","<":"menys que",">":"mes que","∑":"suma dels","\xa4":"moneda"},cs:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"nebo","<":"mensi nez",">":"vetsi nez","∑":"soucet","\xa4":"mena"},de:{"∆":"delta","∞":"unendlich","♥":"Liebe","&":"und","|":"oder","<":"kleiner als",">":"groesser als","∑":"Summe von","\xa4":"Waehrung"},dv:{"∆":"delta","∞":"kolunulaa","♥":"loabi","&":"aai","|":"noonee","<":"ah vure kuda",">":"ah vure bodu","∑":"jumula","\xa4":"faisaa"},en:{"∆":"delta","∞":"infinity","♥":"love","&":"and","|":"or","<":"less than",">":"greater than","∑":"sum","\xa4":"currency"},es:{"∆":"delta","∞":"infinito","♥":"amor","&":"y","|":"u","<":"menos que",">":"mas que","∑":"suma de los","\xa4":"moneda"},fa:{"∆":"delta","∞":"bi-nahayat","♥":"eshgh","&":"va","|":"ya","<":"kamtar-az",">":"bishtar-az","∑":"majmooe","\xa4":"vahed"},fi:{"∆":"delta","∞":"aarettomyys","♥":"rakkaus","&":"ja","|":"tai","<":"pienempi kuin",">":"suurempi kuin","∑":"summa","\xa4":"valuutta"},fr:{"∆":"delta","∞":"infiniment","♥":"Amour","&":"et","|":"ou","<":"moins que",">":"superieure a","∑":"somme des","\xa4":"monnaie"},ge:{"∆":"delta","∞":"usasruloba","♥":"siqvaruli","&":"da","|":"an","<":"naklebi",">":"meti","∑":"jami","\xa4":"valuta"},gr:{},hu:{"∆":"delta","∞":"vegtelen","♥":"szerelem","&":"es","|":"vagy","<":"kisebb mint",">":"nagyobb mint","∑":"szumma","\xa4":"penznem"},it:{"∆":"delta","∞":"infinito","♥":"amore","&":"e","|":"o","<":"minore di",">":"maggiore di","∑":"somma","\xa4":"moneta"},lt:{"∆":"delta","∞":"begalybe","♥":"meile","&":"ir","|":"ar","<":"maziau nei",">":"daugiau nei","∑":"suma","\xa4":"valiuta"},lv:{"∆":"delta","∞":"bezgaliba","♥":"milestiba","&":"un","|":"vai","<":"mazak neka",">":"lielaks neka","∑":"summa","\xa4":"valuta"},my:{"∆":"kwahkhyaet","∞":"asaonasme","♥":"akhyait","&":"nhin","|":"tho","<":"ngethaw",">":"kyithaw","∑":"paungld","\xa4":"ngwekye"},mk:{},nl:{"∆":"delta","∞":"oneindig","♥":"liefde","&":"en","|":"of","<":"kleiner dan",">":"groter dan","∑":"som","\xa4":"valuta"},pl:{"∆":"delta","∞":"nieskonczonosc","♥":"milosc","&":"i","|":"lub","<":"mniejsze niz",">":"wieksze niz","∑":"suma","\xa4":"waluta"},pt:{"∆":"delta","∞":"infinito","♥":"amor","&":"e","|":"ou","<":"menor que",">":"maior que","∑":"soma","\xa4":"moeda"},ro:{"∆":"delta","∞":"infinit","♥":"dragoste","&":"si","|":"sau","<":"mai mic ca",">":"mai mare ca","∑":"suma","\xa4":"valuta"},ru:{"∆":"delta","∞":"beskonechno","♥":"lubov","&":"i","|":"ili","<":"menshe",">":"bolshe","∑":"summa","\xa4":"valjuta"},sk:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"alebo","<":"menej ako",">":"viac ako","∑":"sucet","\xa4":"mena"},sr:{},tr:{"∆":"delta","∞":"sonsuzluk","♥":"ask","&":"ve","|":"veya","<":"kucuktur",">":"buyuktur","∑":"toplam","\xa4":"para birimi"},uk:{"∆":"delta","∞":"bezkinechnist","♥":"lubov","&":"i","|":"abo","<":"menshe",">":"bilshe","∑":"suma","\xa4":"valjuta"},vn:{"∆":"delta","∞":"vo cuc","♥":"yeu","&":"va","|":"hoac","<":"nho hon",">":"lon hon","∑":"tong","\xa4":"tien te"}},u=";?:@&=+$,/",c=";?:@&=+$,",d=function(e,t){var n,r,d,p,g,m,y,v,b,w,x,k,E,_,S="-",A="",T="",C=!0,O={},j="";if("string"!=typeof e)return"";if("string"==typeof t&&(S=t),y=l.en,v=s.en,"object"==typeof t)for(x in n=t.maintainCase||!1,O=t.custom&&"object"==typeof t.custom?t.custom:O,d=+t.truncate>1&&t.truncate||!1,p=t.uric||!1,g=t.uricNoSlash||!1,m=t.mark||!1,C=!1!==t.symbols&&!1!==t.lang,S=t.separator||S,p&&(j+=u),g&&(j+=c),m&&(j+=".!~*'()"),y=t.lang&&l[t.lang]&&C?l[t.lang]:C?l.en:{},v=t.lang&&s[t.lang]?s[t.lang]:!1===t.lang||!0===t.lang?{}:s.en,t.titleCase&&"number"==typeof t.titleCase.length&&Array.prototype.toString.call(t.titleCase)?(t.titleCase.forEach(function(e){O[e+""]=e+""}),r=!0):r=!!t.titleCase,t.custom&&"number"==typeof t.custom.length&&Array.prototype.toString.call(t.custom)&&t.custom.forEach(function(e){O[e+""]=e+""}),Object.keys(O).forEach(function(t){var n;n=t.length>1?RegExp("\\b"+f(t)+"\\b","gi"):RegExp(f(t),"gi"),e=e.replace(n,O[t])}),O)j+=x;for(j+=S,j=f(j),e=e.replace(/(^\s+|\s+$)/g,""),E=!1,_=!1,w=0,k=e.length;w<k;w++)h(x=e[w],O)?E=!1:v[x]?(x=E&&v[x].match(/[A-Za-z0-9]/)?" "+v[x]:v[x],E=!1):x in i?(w+1<k&&o.indexOf(e[w+1])>=0?(T+=x,x=""):!0===_?(x=a[T]+i[x],T=""):x=E&&i[x].match(/[A-Za-z0-9]/)?" "+i[x]:i[x],E=!1,_=!1):x in a?(T+=x,x="",w===k-1&&(x=a[T]),_=!0):!y[x]||p&&-1!==u.indexOf(x)||g&&-1!==c.indexOf(x)?(!0===_?
27(x=a[T]+x,T="",_=!1):E&&(/[A-Za-z0-9]/.test(x)||A.substr(-1).match(/A-Za-z0-9]/))&&(x=" "+x),E=!1):(x=(E||A.substr(-1).match(/[A-Za-z0-9]/)?S+y[x]:y[x])+(void 0!==e[w+1]&&e[w+1].match(/[A-Za-z0-9]/)?S:""),E=!0),A+=x.replace(RegExp("[^\\w\\s"+j+"_-]","g"),S);return r&&(A=A.replace(/(\w)(\S*)/g,function(e,t,n){var r=t.toUpperCase()+(null!==n?n:"");return 0>Object.keys(O).indexOf(r.toLowerCase())?r:r.toLowerCase()})),A=A.replace(/\s+/g,S).replace(RegExp("\\"+S+"+","g"),S).replace(RegExp("(^\\"+S+"+|\\"+S+"+$)","g"),""),d&&A.length>d&&(b=A.charAt(d)===S,A=A.slice(0,d),b||(A=A.slice(0,A.lastIndexOf(S)))),n||r||(A=A.toLowerCase()),A},f=function(e){return e.replace(/[-\\^$*+?.()|[\]{}\/]/g,"\\$&")},h=function(e,t){for(var n in t)if(t[n]===e)return!0};e.exports?(e.exports=d,e.exports.createSlug=function(e){return function(t){return d(t,e)}}):void 0===(n=(function(){return d}).apply(t,[]))||(e.exports=n)}(0)},27896:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},28065:e=>{"use strict";let t=/^[0-9]+$/,n=(e,n)=>{let r=t.test(e),i=t.test(n);return r&&i&&(e*=1,n*=1),e===n?0:r&&!i?-1:i&&!r?1:e<n?-1:1};e.exports={compareIdentifiers:n,rcompareIdentifiers:(e,t)=>n(t,e)}},28183:(e,t,n)=>{"use strict";function r(e,t){return e.reduce(function(e,n,r){return e[n]=t[r],e},{})}n.d(t,{e:()=>r})},28307:(e,t,n)=>{"use strict";var r=n(44316).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(1,arguments);var n,r,u,c,d,f,h,p,g=(0,i.default)(e),m=g.getUTCFullYear(),y=(0,l.getDefaultOptions)(),v=(0,s.default)(null!=(n=null!=(r=null!=(u=null!=(c=null==t?void 0:t.firstWeekContainsDate)?c:null==t||null==(d=t.locale)||null==(f=d.options)?void 0:f.firstWeekContainsDate)?u:y.firstWeekContainsDate)?r:null==(h=y.locale)||null==(p=h.options)?void 0:p.firstWeekContainsDate)?n:1);if(!(v>=1&&v<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(m+1,0,v),b.setUTCHours(0,0,0,0);var w=(0,a.default)(b,t),x=new Date(0);x.setUTCFullYear(m,0,v),x.setUTCHours(0,0,0,0);var k=(0,a.default)(x,t);return g.getTime()>=w.getTime()?m+1:g.getTime()>=k.getTime()?m:m-1};var i=r(n(75628)),o=r(n(29024)),a=r(n(91265)),s=r(n(12431)),l=n(57285);e.exports=t.default},28576:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(47528),i=n(18659),o=n(71260),a=n(29449);function s(e,t){(0,o.A)(1,arguments);var n,s,l,u,c,d,f,h,p=(0,a.q)(),g=(0,i.A)(null!=(n=null!=(s=null!=(l=null!=(u=null==t?void 0:t.weekStartsOn)?u:null==t||null==(c=t.locale)||null==(d=c.options)?void 0:d.weekStartsOn)?l:p.weekStartsOn)?s:null==(f=p.locale)||null==(h=f.options)?void 0:h.weekStartsOn)?n:0);if(!(g>=0&&g<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=(0,r.A)(e),y=m.getDay();return m.setDate(m.getDate()-(7*(y<g)+y-g)),m.setHours(0,0,0,0),m}},28586:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},28644:(e,t,n)=>{"use strict";n.d(t,{v:()=>a});var r=n(29039),i=n(12884),o=n(56769);function a(e,t){return new r.c(function(n){var r=e(),a=t(r);return(a?(0,i.Tg)(a):o.w).subscribe(n),function(){r&&r.unsubscribe()}})}},28760:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},28830:(e,t,n)=>{"use strict";n.d(t,{Te:()=>s});var r=n(82203),i=n(1434),o=n(97230);let a="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;function s(e){return function(e){let t=r.useReducer(()=>({}),{})[1],n={...e,onChange:(n,r)=>{var o;r?(0,i.flushSync)(t):t(),null==(o=e.onChange)||o.call(e,n,r)}},[s]=r.useState(()=>new o.YV(n));return s.setOptions(n),a(()=>s._didMount(),[]),a(()=>s._willUpdate()),s}({observeElementRect:o.T6,observeElementOffset:o.AO,scrollToFn:o.Ox,...e})}},28975:(e,t,n)=>{"use strict";n.d(t,{a:()=>i});var r=n(18287);function i(e,t){return(0,r.w)(t||e,e)}},29013:(e,t,n)=>{"use strict";n.d(t,{O:()=>s});var r=n(29039),i=n(43048),o=n(30172),a=n(83571);function s(e,t,n){void 0===e&&(e=0),void 0===n&&(n=i.b);var s=-1;return null!=t&&((0,o.m)(t)?n=t:s=t),new r.c(function(t){var r=(0,a.v)(e)?e-n.now():e;r<0&&(r=0);var i=0;return n.schedule(function(){t.closed||(t.next(i++),0<=s?this.schedule(void 0,s):t.complete())},r)})}},29024:(e,t)=>{"use strict";
27Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(t.length<e)throw TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")},e.exports=t.default},29039:(e,t,n)=>{"use strict";n.d(t,{c:()=>c});var r=n(14518),i=n(69e3),o=n(65681),a=n(59043),s=n(36116),l=n(73315),u=n(97718),c=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var o=this,a=!function(e){return e&&e instanceof r.vU||e&&(0,l.T)(e.next)&&(0,l.T)(e.error)&&(0,l.T)(e.complete)&&(0,i.Uv)(e)}(e)?new r.Ms(e,t,n):e;return(0,u.Y)(function(){var e=o.operator,t=o.source;a.add(e?e.call(a,t):t?o._subscribe(a):o._trySubscribe(a))}),a},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=d(t))(function(t,i){var o=new r.Ms({next:function(t){try{e(t)}catch(e){i(e),o.unsubscribe()}},error:i,complete:t});n.subscribe(o)})},e.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},e.prototype[o.s]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,a.m)(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=d(e))(function(e,n){var r;t.subscribe(function(e){return r=e},function(e){return n(e)},function(){return e(r)})})},e.create=function(t){return new e(t)},e}();function d(e){var t;return null!=(t=null!=e?e:s.$.Promise)?t:Promise}},29069:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(39292),i=n(47528),o=n(99915),a=n(18659),s=n(71260);function l(e,t){if((0,s.A)(2,arguments),"object"!==(0,r.A)(t)||null===t)throw RangeError("values parameter must be an object");var n=(0,i.A)(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=(0,o.A)(n,t.month)),null!=t.date&&n.setDate((0,a.A)(t.date)),null!=t.hours&&n.setHours((0,a.A)(t.hours)),null!=t.minutes&&n.setMinutes((0,a.A)(t.minutes)),null!=t.seconds&&n.setSeconds((0,a.A)(t.seconds)),null!=t.milliseconds&&n.setMilliseconds((0,a.A)(t.milliseconds)),n)}},29203:e=>{e.exports=function(){}},29378:(e,t,n)=>{"use strict";n.d(t,{BD:()=>s,Kg:()=>u,L2:()=>b,NF:()=>c,Qd:()=>f,Qg:()=>m,T2:()=>a,W6:()=>l,bJ:()=>i,gd:()=>g,mE:()=>y,sO:()=>d,tH:()=>v,vq:()=>p,xH:()=>h});let r=Object.prototype.toString;function i(e){switch(r.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return v(e,Error)}}function o(e,t){return r.call(e)===`[object ${t}]`}function a(e){return o(e,"ErrorEvent")}function s(e){return o(e,"DOMError")}function l(e){return o(e,"DOMException")}function u(e){return o(e,"String")}function c(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function d(e){return null===e||c(e)||"object"!=typeof e&&"function"!=typeof e}function f(e){return o(e,"Object")}function h(e){return"undefined"!=typeof Event&&v(e,Event)}function p(e){return"undefined"!=typeof Element&&v(e,Element)}function g(e){return o(e,"RegExp")}function m(e){return!!(e&&e.then&&"function"==typeof e.then)}function y(e){return f(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function v(e,t){try{return e instanceof t}catch(e){return!1}}function b(e){return!!("object"==typeof e&&null!==e&&(e.__isVue||e._isVue))}},29386:(e,t,n)=>{var r=n(73292),i=n(1674),o=n(11088);e.exports=function(e){return o(e)?r(e):i(e)}},29449:(e,t,n)=>{"use strict";n.d(t,{q:()=>i});var r={};function i(){return r}},29643:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},29844:(e,t,n)=>{"use strict";e.exports=n(98368)},29926:(e,t,n)=>{var r=n(15831),i=n(78946);e.exports=function(e){return i(e)&&"[object Set]"==r(e)}},30020:(e,t,n)=>{"use strict";var r=n(48179);e.exports=function(e,t,n){var o=r(n||t),a=null==t.cascade||t.cascade;return function e(t,n,r){var s,l,u,c,d;if(!o(t,n,r))return null;if(t.children){for(s=[],l=-1;++l<t.children.length;)(u=e(t.children[l],l,t))&&s.push(u);if(a&&t.children.length&&!s.length)return null}for(d in c={},t)i.call(t,d)&&(c[d]="children"===d?s:t[d]);return c}(e,null,null)};var i={}.hasOwnProperty}
27,30172:(e,t,n)=>{"use strict";n.d(t,{m:()=>i});var r=n(73315);function i(e){return e&&(0,r.T)(e.schedule)}},30443:(e,t,n)=>{"use strict";n.d(t,{C:()=>o});var r=n(91558),i=n(73315);function o(e,t,n){return(void 0===n&&(n=1/0),(0,i.T)(t))?(0,r.Z)(function(){return e},t,n):("number"==typeof t&&(n=t),(0,r.Z)(function(){return e},n))}},30572:(e,t,n)=>{"use strict";let r=n(74907),i=n(93342),{ANY:o}=i,a=n(50134),s=n(32112),l=[new i(">=0.0.0-0")],u=[new i(">=0.0.0")],c=(e,t,n)=>{let r,i,c,h,p,g,m;if(e===t)return!0;if(1===e.length&&e[0].semver===o)if(1===t.length&&t[0].semver===o)return!0;else e=n.includePrerelease?l:u;if(1===t.length&&t[0].semver===o)if(n.includePrerelease)return!0;else t=u;let y=new Set;for(let t of e)">"===t.operator||">="===t.operator?r=d(r,t,n):"<"===t.operator||"<="===t.operator?i=f(i,t,n):y.add(t.semver);if(y.size>1)return null;if(r&&i&&((c=s(r.semver,i.semver,n))>0||0===c&&(">="!==r.operator||"<="!==i.operator)))return null;for(let e of y){if(r&&!a(e,String(r),n)||i&&!a(e,String(i),n))return null;for(let r of t)if(!a(e,String(r),n))return!1;return!0}let v=!!i&&!n.includePrerelease&&!!i.semver.prerelease.length&&i.semver,b=!!r&&!n.includePrerelease&&!!r.semver.prerelease.length&&r.semver;for(let e of(v&&1===v.prerelease.length&&"<"===i.operator&&0===v.prerelease[0]&&(v=!1),t)){if(m=m||">"===e.operator||">="===e.operator,g=g||"<"===e.operator||"<="===e.operator,r){if(b&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===b.major&&e.semver.minor===b.minor&&e.semver.patch===b.patch&&(b=!1),">"===e.operator||">="===e.operator){if((h=d(r,e,n))===e&&h!==r)return!1}else if(">="===r.operator&&!a(r.semver,String(e),n))return!1}if(i){if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),"<"===e.operator||"<="===e.operator){if((p=f(i,e,n))===e&&p!==i)return!1}else if("<="===i.operator&&!a(i.semver,String(e),n))return!1}if(!e.operator&&(i||r)&&0!==c)return!1}return(!r||!g||!!i||0===c)&&(!i||!m||!!r||0===c)&&!b&&!v&&!0},d=(e,t,n)=>{if(!e)return t;let r=s(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},f=(e,t,n)=>{if(!e)return t;let r=s(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,n={})=>{if(e===t)return!0;e=new r(e,n),t=new r(t,n);let i=!1;t:for(let r of e.set){for(let e of t.set){let t=c(r,e,n);if(i=i||null!==t,t)continue t}if(i)return!1}return!0}},30644:(e,t,n)=>{e=n.nmd(e);var r=n(26943),i=n(21853),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,l=s?s.isBuffer:void 0;e.exports=l||i},30673:(e,t,n)=>{"use strict";var r,i,o=Object.create,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,u=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of l(t))c.call(e,i)||i===n||a(e,i,{get:()=>t[i],enumerable:!(r=s(t,i))||r.enumerable});return e},f={};((e,t)=>{for(var n in t)a(e,n,{get:t[n],enumerable:!0})})(f,{$dispatcherGuard:()=>_,$makeReadOnly:()=>A,$reset:()=>S,$structuralCheck:()=>D,c:()=>b,clearRenderCounterRegistry:()=>C,renderCounterRegistry:()=>T,useRenderCounter:()=>O}),e.exports=d(a({},"__esModule",{value:!0}),f);var h=((e,t,n)=>(n=null!=e?o(u(e)):{},d(!t&&e&&e.__esModule?n:a(n,"default",{value:e,enumerable:!0}),e)))(n(82203)),{useRef:p,useEffect:g,isValidElement:m}=h,y=null!=(r=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)?r:h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,v=Symbol.for("react.memo_cache_sentinel"),b="function"==typeof(null==(i=h.__COMPILER_RUNTIME)?void 0:i.c)?h.__COMPILER_RUNTIME.c:function(e){return h.useMemo(()=>{let t=Array(e);for(let n=0;n<e;n++)t[n]=v;return t[v]=!0,t},[])},w={};["readContext","useCallback","useContext","useEffect","useImperativeHandle","useInsertionEffect","useLayoutEffect","useMemo","useReducer","useRef","useState","useDebugValue","useDeferredValue","useTransition","useMutableSource","useSyncExternalStore","useId","unstable_isNewReconciler","getCacheSignal","getCacheForType","useCacheRefresh"].forEach(e
27=>{w[e]=()=>{throw Error(`[React] Unexpected React hook call (${e}) from a React compiled function. Check that all hooks are called directly and named according to convention ('use[A-Z]') `)}});var x=null;function k(e){return y.ReactCurrentDispatcher.current=e,y.ReactCurrentDispatcher.current}w.useMemoCache=e=>{if(null!=x)return x.useMemoCache(e);throw Error("React Compiler internal invariant violation: unexpected null dispatcher")};var E=[];function _(e){let t=y.ReactCurrentDispatcher.current;if(0===e){if(E.push(t),1===E.length&&(x=t),t===w)throw Error("[React] Unexpected call to custom hook or component from a React compiled function. Check that (1) all hooks are called directly and named according to convention ('use[A-Z]') and (2) components are returned as JSX instead of being directly invoked.");k(w)}else if(1===e){let e=E.pop();if(null==e)throw Error("React Compiler internal error: unexpected null in guard stack");0===E.length&&(x=null),k(e)}else if(2===e)E.push(t),k(x);else if(3===e){let e=E.pop();if(null==e)throw Error("React Compiler internal error: unexpected null in guard stack");k(e)}else throw Error("React Compiler internal error: unreachable block"+e)}function S(e){for(let t=0;t<e.length;t++)e[t]=v}function A(){throw Error("TODO: implement $makeReadOnly in react-compiler-runtime")}var T=new Map;function C(){for(let e of T.values())e.forEach(e=>{e.count=0})}function O(e){let t=p(null);null!=t.current&&(t.current.count+=1),g(()=>{if(null==t.current){let n,r={count:0};null==(n=T.get(e))&&(n=new Set,T.set(e,n)),n.add(r),t.current=r}return()=>{null!==t.current&&function(e,t){let n=T.get(e);null!=n&&n.delete(t)}(e,t.current)}})}var j=new Set;function D(e,t,n,r,i,o){function a(e,t,a,s){let l=`${r}:${o} [${i}] ${n}${a} changed from ${e} to ${t} at depth ${s}`;j.has(l)||(j.add(l),console.error(l))}!function e(t,n,r,i){if(!(i>2)){if(t!==n)if(typeof t!=typeof n)a(`type ${typeof t}`,`type ${typeof n}`,r,i);else if("object"==typeof t){let o=Array.isArray(t),s=Array.isArray(n);if(null===t&&null!==n)a("null",`type ${typeof n}`,r,i);else if(null===n)a(`type ${typeof t}`,"null",r,i);else if(t instanceof Map)if(n instanceof Map)if(t.size!==n.size)a(`Map instance with size ${t.size}`,`Map instance with size ${n.size}`,r,i);else for(let[o,s]of t)n.has(o)?e(s,n.get(o),`${r}.get(${o})`,i+1):a(`Map instance with key ${o}`,`Map instance without key ${o}`,r,i);else a("Map instance","other value",r,i);else if(n instanceof Map)a("other value","Map instance",r,i);else if(t instanceof Set)if(n instanceof Set)if(t.size!==n.size)a(`Set instance with size ${t.size}`,`Set instance with size ${n.size}`,r,i);else for(let e of n)t.has(e)||a(`Set instance without element ${e}`,`Set instance with element ${e}`,r,i);else a("Set instance","other value",r,i);else if(n instanceof Set)a("other value","Set instance",r,i);else if(o||s)if(o!==s)a(`type ${o?"array":"object"}`,`type ${s?"array":"object"}`,r,i);else if(t.length!==n.length)a(`array with length ${t.length}`,`array with length ${n.length}`,r,i);else for(let o=0;o<t.length;o++)e(t[o],n[o],`${r}[${o}]`,i+1);else if(m(t)||m(n))m(t)!==m(n)?a(`type ${m(t)?"React element":"object"}`,`type ${m(n)?"React element":"object"}`,r,i):t.type!==n.type?a(`React element of type ${t.type}`,`React element of type ${n.type}`,r,i):e(t.props,n.props,`[props of ${r}]`,i+1);else{for(let e in n)e in t||a(`object without key ${e}`,`object with key ${e}`,r,i);for(let o in t)o in n?e(t[o],n[o],`${r}.${o}`,i+1):a(`object with key ${o}`,`object without key ${o}`,r,i)}}else{if("function"==typeof t)return;isNaN(t)||isNaN(n)?isNaN(t)!==isNaN(n)&&a(`${isNaN(t)?"NaN":"non-NaN value"}`,`${isNaN(n)?"NaN":"non-NaN value"}`,r,i):t!==n&&a(t,n,r,i)}}}(e,t,"",0)}},30905:(e,t,n)=>{"use strict";n.d(t,{L:()=>h});var r=n(71976),i=n(37245),o=n(31524),a=n(43048),s=n(51620),l=n(79446),u=n(12884),c=n(27778),d=n(94126),f=n(92010);function h(e){return t=>(0,r.v)(()=>{let n=new i.B;return t.pipe((0,s.n)(()=>n,{leading:!0,trailing:!0}),function e(t,n){return n?function(r){return r.pipe(e(function(e,r){return(0,u.Tg)(t(e,r)).pipe((0,l.T)(function(t,i){return n(e,t,r,i)}))}))}:(0,c.N)(function(e,n){var r=0,i=null,o=!1;e.subscribe((0,d._)(n,function(e){i||(i=(0,d._)(n,void 0,function(){i=null,o&&n.complete()}),(0,u.Tg)(t(e,r++)).subscribe(i))},function(){o=!0,i||n.complete()}
27))})}((t,r)=>(0,o.c)(e(t,r),a.E).pipe((0,f.j)(()=>{n.next()}))))})}},31101:e=>{"use strict";e.exports=JSON.parse('{"AElig":"\xc6","AMP":"&","Aacute":"\xc1","Acirc":"\xc2","Agrave":"\xc0","Aring":"\xc5","Atilde":"\xc3","Auml":"\xc4","COPY":"\xa9","Ccedil":"\xc7","ETH":"\xd0","Eacute":"\xc9","Ecirc":"\xca","Egrave":"\xc8","Euml":"\xcb","GT":">","Iacute":"\xcd","Icirc":"\xce","Igrave":"\xcc","Iuml":"\xcf","LT":"<","Ntilde":"\xd1","Oacute":"\xd3","Ocirc":"\xd4","Ograve":"\xd2","Oslash":"\xd8","Otilde":"\xd5","Ouml":"\xd6","QUOT":"\\"","REG":"\xae","THORN":"\xde","Uacute":"\xda","Ucirc":"\xdb","Ugrave":"\xd9","Uuml":"\xdc","Yacute":"\xdd","aacute":"\xe1","acirc":"\xe2","acute":"\xb4","aelig":"\xe6","agrave":"\xe0","amp":"&","aring":"\xe5","atilde":"\xe3","auml":"\xe4","brvbar":"\xa6","ccedil":"\xe7","cedil":"\xb8","cent":"\xa2","copy":"\xa9","curren":"\xa4","deg":"\xb0","divide":"\xf7","eacute":"\xe9","ecirc":"\xea","egrave":"\xe8","eth":"\xf0","euml":"\xeb","frac12":"\xbd","frac14":"\xbc","frac34":"\xbe","gt":">","iacute":"\xed","icirc":"\xee","iexcl":"\xa1","igrave":"\xec","iquest":"\xbf","iuml":"\xef","laquo":"\xab","lt":"<","macr":"\xaf","micro":"\xb5","middot":"\xb7","nbsp":"\xa0","not":"\xac","ntilde":"\xf1","oacute":"\xf3","ocirc":"\xf4","ograve":"\xf2","ordf":"\xaa","ordm":"\xba","oslash":"\xf8","otilde":"\xf5","ouml":"\xf6","para":"\xb6","plusmn":"\xb1","pound":"\xa3","quot":"\\"","raquo":"\xbb","reg":"\xae","sect":"\xa7","shy":"\xad","sup1":"\xb9","sup2":"\xb2","sup3":"\xb3","szlig":"\xdf","thorn":"\xfe","times":"\xd7","uacute":"\xfa","ucirc":"\xfb","ugrave":"\xf9","uml":"\xa8","uuml":"\xfc","yacute":"\xfd","yen":"\xa5","yuml":"\xff"}')},31179:(e,t,n)=>{"use strict";n.d(t,{LV:()=>function e(t,n={}){if("function"!=typeof t)return t;try{let e=t.__sentry_wrapped__;if(e)if("function"==typeof e)return e;else return t;if((0,i.sp)(t))return t}catch(e){return t}let r=function(...r){try{let i=r.map(t=>e(t,n));return t.apply(this,i)}catch(e){throw u++,setTimeout(()=>{u--}),(0,o.v4)(t=>{t.addEventProcessor(e=>(n.mechanism&&((0,a.gO)(e,void 0,void 0),(0,a.M6)(e,n.mechanism)),e.extra={...e.extra,arguments:r},e)),(0,s.Cp)(e)}),e}};try{for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=t[e])}catch(e){}(0,i.pO)(r,t),(0,i.my)(t,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>t.name})}catch(e){}return r},jN:()=>c,jf:()=>l});var r=n(6541),i=n(77865),o=n(27313),a=n(12378),s=n(88093);let l=r.O,u=0;function c(){return u>0}},31352:(e,t,n)=>{"use strict";var r=n(60364),i=n(88559),o=r.booleanish,a=r.number,s=r.spaceSeparated;e.exports=i({transform:function(e,t){return"role"===t?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:o,ariaAutoComplete:null,ariaBusy:o,ariaChecked:o,ariaColCount:a,ariaColIndex:a,ariaColSpan:a,ariaControls:s,ariaCurrent:null,ariaDescribedBy:s,ariaDetails:null,ariaDisabled:o,ariaDropEffect:s,ariaErrorMessage:null,ariaExpanded:o,ariaFlowTo:s,ariaGrabbed:o,ariaHasPopup:null,ariaHidden:o,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:s,ariaLevel:a,ariaLive:null,ariaModal:o,ariaMultiLine:o,ariaMultiSelectable:o,ariaOrientation:null,ariaOwns:s,ariaPlaceholder:null,ariaPosInSet:a,ariaPressed:o,ariaReadOnly:o,ariaRelevant:null,ariaRequired:o,ariaRoleDescription:s,ariaRowCount:a,ariaRowIndex:a,ariaRowSpan:a,ariaSelected:o,ariaSetSize:a,ariaSort:null,ariaValueMax:a,ariaValueMin:a,ariaValueNow:a,ariaValueText:null,role:null}})},31458:(e,t,n)=>{var r=n(1247),i=n(21020),o=n(87398);e.exports=function(e,t){return o(e,i(r(t)))}},31524:(e,t,n)=>{"use strict";n.d(t,{c:()=>w});var r=n(12884),i=n(97783),o=n(27778),a=n(94126);function s(e,t){return void 0===t&&(t=0),(0,o.N)(function(n,r){n.subscribe((0,a._)(r,function(n){return(0,i.N)(r,e,function(){return r.next(n)},t)},function(){return(0,i.N)(r,e,function(){return r.complete()},t)},function(n){return(0,i.N)(r,e,function(){return r.error(n)},t)}))})}function l(e,t){return void 0===t&&(t=0),(0,o.N)(function(n,r){r.add(e.schedule(function(){return n.subscribe(r)},t))})}var u=n(29039),c=n(89973),d=n(73315);function f(e,t){if(!e)throw Error("Iterable cannot be null");return new u.c(function(n){(0,i.N)(n,t,function(){var r=e[Symbol.asyncIterator]();(0,i.N)(n,t,function(){r.next().then(function(e){e.done?n.complete():n.next(e.value)})},0,!0)})})}var h=n(68053),p=n(4708),g=n(73711),m=n(12601),y=n(26167),v=n(41655),b=n(98064);function w(e,t){if(null!=e){if((0,h.l)(e))return(0,r.Tg)(e).pipe(l(t),s(t));if((0,g.X)(e))return new u.c(function(n){var r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})});if((0,p.y)(e))return(0,r.Tg)(e).pipe(l(t),s(t));if((0,y.T)(e))return f(e,t);if((0,m.x)(e))return new u.c(function(n){var r;return(0,i.N)(n,t,function(){r=e[c.l](),(0,i.N)(n,t,function(){var e,t,i;try{t=(e=r.next()).value,i=e.done}catch(e){n.error(e);return}i?n.complete():n.next(t)},0,!0)}),function(){return(0,d.T)(null==r?void 0:r.return)&&r.return()}});if((0,b.U)(e))return f((0,b.C)(e),t)}throw(0,v.L)(e)}},31592:(e,t,n)=>{"use strict";n.d(t,{J8:()=>i,_Q:()=>a,wm:()=>o});var r=n(45885);function i({context:e,block:t}
27){if((0,r.zS)(e,t.node)){let n=t.node.children[t.node.children.length-1];if(n)return{path:[...t.path,"children",{_key:n._key}],offset:(0,r.QU)(e,n)?n.text.length:0}}return{path:t.path,offset:0}}function o(e,t){if(!(0,r.zS)(e,t))return!1;let n=t.children.every(t=>(0,r.QU)(e,t)),i=(0,r.so)(t);return n&&""===i}function a(e,t){return e.offset===t.offset&&JSON.stringify(e.path)===JSON.stringify(t.path)}},31976:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){for(var n=Math.abs(e).toString();n.length<t;)n="0"+n;return(e<0?"-":"")+n},e.exports=t.default},32039:(e,t,n)=>{"use strict";n.d(t,{t:()=>r});let r=(0,n(82203).createContext)(null)},32112:(e,t,n)=>{"use strict";let r=n(80726);e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n))},32196:(e,t,n)=>{"use strict";let r=n(80726),i=n(74907),o=n(27842);e.exports=(e,t)=>{e=new i(e,t);let n=new r("0.0.0");if(e.test(n)||(n=new r("0.0.0-0"),e.test(n)))return n;n=null;for(let t=0;t<e.set.length;++t){let i=e.set[t],a=null;i.forEach(e=>{let t=new r(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!a||o(t,a))&&(a=t);break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),a&&(!n||o(n,a))&&(n=a)}return n&&e.test(n)?n:null}},32235:(e,t,n)=>{var r=n(91233),i=n(84962);e.exports=function(e,t){return r(e,i(e),t)}},32341:(e,t,n)=>{var r=n(11087);e.exports=function(e){return r(e,5)}},32343:(e,t,n)=>{"use strict";n.d(t,{w:()=>o});var r=n(90046),i=n(17953);function o(){return(0,r.n)(i.D)}},32349:(e,t,n)=>{"use strict";var r=n(44316).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,s.default)(1,arguments);var t=(0,i.default)(e);return Math.round(((0,o.default)(t).getTime()-(0,a.default)(t).getTime())/6048e5)+1};var i=r(n(75628)),o=r(n(86208)),a=r(n(46225)),s=r(n(29024));e.exports=t.default},32614:(e,t,n)=>{"use strict";var r=n(64263);e.exports=function(e,t){return r(e,t.toLowerCase())}},33129:(e,t,n)=>{"use strict";let r=n(74412);e.exports=(e,t)=>{let n=r(e,t);return n?n.version:null}},33157:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function i(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var o={date:i({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:i({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:i({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},a={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function s(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=null!=n&&n.width?String(n.width):i;r=e.formattingValues[o]||e.formattingValues[i]}else{var a=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function l(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.width,o=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;var s=a[0],l=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}(l,function(e){return e.test(s)}):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}(l,function(e){return e.test(s)});return n=e.valueCallback?e.valueCallback(u):u,{value:n=r.valueCallback?r.valueCallback(n):n,rest:t.slice(s.length)}}}let u={code:"en-US",formatDistance:function(e,t,n){var i,o=r[e];if(i="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix)if(n.comparison&&n.comparison>0)return"in "+i;else return i+" ago";return i},formatLong:o,formatRelative:function(e,t,n,r){return a[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:s({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:s({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:s({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:s({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
27ay","Saturday"]},defaultWidth:"wide"}),dayPeriod:s({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],o=t.match(e.parsePattern);if(!o)return null;var a=e.valueCallback?e.valueCallback(o[0]):o[0];return{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(i.length)}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:l({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:l({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:l({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:l({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:l({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},33171:(e,t,n)=>{var r=n(78329),i=n(97288),o=n(99912);e.exports=i(function(e,t){try{return r(e,void 0,t)}catch(e){return o(e)?e:Error(e)}})},33217:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(75776),i=n(71260),o=n(18659);function a(e,t){(0,i.A)(1,arguments);var n,a,g,m=(0,o.A)(null!=(n=null==t?void 0:t.additionalDigits)?n:2);if(2!==m&&1!==m&&0!==m)throw RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var y=function(e){var t,n={},r=e.split(s.dateTimeDelimiter);if(r.length>2)return n;if(/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],s.timeZoneDelimiter.test(n.date)&&(n.date=e.split(s.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){var i=s.timezone.exec(t);i?(n.time=t.replace(i[1],""),n.timezone=i[1]):n.time=t}return n}(e);if(y.date){var v=function(e,t){var n=RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:null===o?i:100*o,restDateString:e.slice((r[1]||r[2]).length)}}(y.date,m);a=function(e,t){if(null===t)return new Date(NaN);var n,r,i,o,a,s,u,c,f,g,m,y,v=e.match(l);if(!v)return new Date(NaN);var b=!!v[4],w=d(v[1]),x=d(v[2])-1,k=d(v[3]),E=d(v[4]),_=d(v[5])-1;if(b){return(n=E,r=_,n>=1&&n<=53&&r>=0&&r<=6)?(i=t,o=E,a=_,(s=new Date(0)).setUTCFullYear(i,0,4),u=s.getUTCDay()||7,s.setUTCDate(s.getUTCDate()+((o-1)*7+a+1-u)),s):new Date(NaN)}var S=new Date(0);return(c=t,f=x,g=k,f>=0&&f<=11&&g>=1&&g<=(h[f]||(p(c)?29:28))&&(m=t,(y=w)>=1&&y<=(p(m)?366:365)))?(S.setUTCFullYear(t,x,Math.max(w,k)),S):new Date(NaN)}(v.restDateString,v.year)}if(!a||isNaN(a.getTime()))return new Date(NaN);var b=a.getTime(),w=0;if(y.time&&isNaN(w=function(e){var t,n,i,o=e.match(u);if(!o)return NaN;var a=f(o[1]),s=f(o[2]),l=f(o[3]);return(t=a,n=s,i=l,24===t?0===n&&0===i:i>=0&&i<60&&n>=0&&n<60&&t>=0&&t<25)?a*r.s0+s*r.Cg+1e3*l:NaN}(y.time)))return new Date(NaN);if(y.timezone){if(isNaN(g=function(e){if("Z"===e)return 0;var t,n=e.match(c);if(!n)return 0;var i="+"===n[1]?-1:1,o=parseInt(n[2]),a=n[3]&&parseInt(n[3])||0;return(t=a)>
27=0&&t<=59?i*(o*r.s0+a*r.Cg):NaN}(y.timezone)))return new Date(NaN)}else{var x=new Date(b+w),k=new Date(0);return k.setFullYear(x.getUTCFullYear(),x.getUTCMonth(),x.getUTCDate()),k.setHours(x.getUTCHours(),x.getUTCMinutes(),x.getUTCSeconds(),x.getUTCMilliseconds()),k}return new Date(b+w+g)}var s={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},l=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,u=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,c=/^([+-])(\d{2})(?::?(\d{2}))?$/;function d(e){return e?parseInt(e):1}function f(e){return e&&parseFloat(e.replace(",","."))||0}var h=[31,null,31,30,31,30,31,31,30,31,30,31];function p(e){return e%400==0||e%4==0&&e%100!=0}},33368:e=>{"use strict";e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||0x1fffffffffffff,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},33597:(e,t,n)=>{"use strict";n.d(t,{X:()=>h,r:()=>d});let r=["Value","Copy","Blank","ReturnIntoArray","ReturnIntoObject","ReturnIntoObjectSameKey","PushField","PushElement","PushParent","Pop","PushFieldCopy","PushFieldBlank","PushElementCopy","PushElementBlank","ReturnIntoObjectPop","ReturnIntoObjectSameKeyPop","ReturnIntoArrayPop","ObjectSetFieldValue","ObjectCopyField","ObjectDeleteField","ArrayAppendValue","ArrayAppendSlice","StringAppendString","StringAppendSlice"];class i{model;root;patch;i;inputStack;outputStack;constructor(e,t,n){this.model=e,this.root=t,this.patch=n,this.i=0,this.inputStack=[],this.outputStack=[]}read(){return this.patch[this.i++]}process(){for(this.inputStack.push({value:this.root}),this.outputStack.push({value:this.root});this.i<this.patch.length;){let e=this.read(),t=r[e];if(!t)throw Error(`Unknown opcode: ${e}`);this[`process${t}`].apply(this)}let e=this.outputStack.pop();return this.finalizeOutput(e)}inputEntry(){return this.inputStack[this.inputStack.length-1]}inputKey(e,t){return e.keys||(e.keys=this.model.objectGetKeys(e.value).sort()),e.keys[t]}outputEntry(){return this.outputStack[this.outputStack.length-1]}outputArray(){let e=this.outputEntry();return e.writeValue||(e.writeValue=this.model.copyArray(e.value)),e.writeValue}outputObject(){let e=this.outputEntry();return e.writeValue||(e.writeValue=this.model.copyObject(e.value)),e.writeValue}outputString(){let e=this.outputEntry();return e.writeValue||(e.writeValue=this.model.copyString(e.value)),e.writeValue}finalizeOutput(e){return e.writeValue?this.model.finalize(e.writeValue):e.value}processValue(){let e=this.model.wrap(this.read());this.outputStack.push({value:e})}processCopy(){let e=this.inputEntry();this.outputStack.push({value:e.value})}processBlank(){this.outputStack.push({value:null})}processReturnIntoArray(){let e=this.outputStack.pop(),t=this.finalizeOutput(e),n=this.outputArray();this.model.arrayAppendValue(n,t)}processReturnIntoObject(){let e=this.read(),t=this.outputStack.pop(),n=this.finalizeOutput(t);n=this.model.markChanged(n);let r=this.outputObject();this.model.objectSetField(r,e,n)}processReturnIntoObjectSameKey(){let e=this.inputEntry(),t=this.outputStack.pop(),n=this.finalizeOutput(t),r=this.outputObject();this.model.objectSetField(r,e.key,n)}processPushField(){let e=this.read(),t=this.inputEntry(),n=this.inputKey(t,e),r=this.model.objectGetField(t.value,n);this.inputStack.push({value:r,key:n})}processPushElement(){let e=this.read(),t=this.inputEntry(),n=this.model.arrayGetElement(t.value,e);this.inputStack.push({value:n})}processPop(){this.inputStack.pop()}processPushFieldCopy(){this.processPushField(),this.processCopy()}processPushFieldBlank(){this.processPushField(),this.processBlank()}processPushElementCopy(){this.processPushElement(),this.processCopy()}processPushElementBlank(){this.processPushElement(),this.processBlank()}processReturnIntoObjectPop(){this.processReturnIntoObject(),this.processPop()}processReturnIntoObjectSameKeyPop(){this.processReturnIntoObjectSameKey(),this.processPop()}processReturnIntoArrayPop(){this.processReturnIntoArray(),this.processPop()}processObjectSetFieldValue(){this.processValue(),this.processReturnIntoObject()}processObjectCopyField(){this.processPushField(),this.processCopy(),this.processReturnIntoObjectSameKey(),this.processPop()}processObjectDeleteField(){let e=this.read(),t=this.inputEntry(),n=this.inputKey(t,e),r=this.outputObject();this.model.objectDeleteField(r,n)}processArrayAppendValue(){let e=this.model.wrap(this.read()),t=this.outputArray();this.model.arrayAppendValue(t,e)}processArrayAppendSlice(){let e=this.read(),t=this.read(),n=this.outputArray(),r=this.inputEntry().value;this.model.arrayAppendSlice(n,r,e,t)}processStringAppendString(){let e=this.model.wrap(this.read()),t=this.outputString();this.model.stringAppendValue(t,e)}processStringAppendSlice(){let e=this.read(),t=this.read(),n=this.outputString(),r=this.inputEntry().value;this.model.stringAppendSlice(n,r,e,t)}}function o(e){return e>>16?4:e>>11?3:e>>7?2:1}function a(e){let t=0;for(let n=0;n<e.length;n++){let r=o(e.codePointAt(n));4==r&&n++,t+=r}return t}function s(e,t,n=0){let r=n,i=0;for(i=n;r<t;
27i++){let t=o(e.codePointAt(i));4===t&&i++,r+=t}return i}class l{meta;constructor(e){this.meta=e}wrap(e){return this.wrapWithMeta(e,this.meta,this.meta)}wrapWithMeta(e,t,n=this.meta){return{data:e,startMeta:t,endMeta:n}}asObject(e){if(!e.content){let t={};for(let[n,r]of Object.entries(e.data))t[n]=this.wrapWithMeta(r,e.startMeta);e.content={type:"object",fields:t}}return e.content}asArray(e){if(!e.content){let t=e.data.map(t=>this.wrapWithMeta(t,e.startMeta)),n=t.map(()=>this.meta);e.content={type:"array",elements:t,metas:n}}return e.content}asString(e){if(!e.content){let t=e.data,n={value:t,utf8size:a(t),uses:[],startMeta:e.startMeta,endMeta:e.endMeta};e.content=this.stringFromParts([n])}return e.content}stringFromParts(e){let t={type:"string",parts:e};for(let n of e)n.uses.push(t);return t}objectGetKeys(e){return e.content?Object.keys(e.content.fields):Object.keys(e.data)}objectGetField(e,t){return this.asObject(e).fields[t]}arrayGetElement(e,t){return this.asArray(e).elements[t]}finalize(e){return this.updateEndMeta(e),{content:e,startMeta:this.meta,endMeta:this.meta}}markChanged(e){return this.wrap(u(e))}updateEndMeta(e){if("string"==e.type)for(let t of e.parts)t.endMeta=this.meta;else if("array"===e.type)for(let t of e.elements)t.content&&t.endMeta!==this.meta&&this.updateEndMeta(t.content),t.endMeta=this.meta;else for(let t of Object.values(e.fields))t.content&&t.endMeta!==this.meta&&this.updateEndMeta(t.content),t.endMeta=this.meta}copyString(e){if(!e)return{type:"string",parts:[]};{let t=this.asString(e);return this.stringFromParts(t.parts.slice())}}copyObject(e){let t={type:"object",fields:{}};if(e){let n=this.asObject(e);Object.assign(t.fields,n.fields)}return t}copyArray(e){let t=e?this.asArray(e):null;return{type:"array",elements:t?t.elements:[],metas:t?t.metas:[]}}objectSetField(e,t,n){e.fields[t]=n}objectDeleteField(e,t){delete e.fields[t]}arrayAppendValue(e,t){e.elements.push(t),e.metas.push(this.meta)}arrayAppendSlice(e,t,n,r){let i=this.asArray(t),o=i.elements.length===n;if(e.elements.push(...i.elements.slice(n,r)),o)e.metas.push(...i.metas.slice(n,r));else for(let t=n;t<r;t++)e.metas.push(this.meta)}stringAppendValue(e,t){for(let n of this.asString(t).parts)this.stringAppendPart(e,n)}stringAppendPart(e,t){e.parts.push(t),t.uses.push(e)}resolveStringPart(e,t,n){if(0===n)return t;for(let r=t;r<e.parts.length;r++){let t=e.parts[r];if(n===t.utf8size)return r+1;if(n<t.utf8size)return this.splitString(t,n),r+1;n-=t.utf8size}throw Error("splitting string out of bounds")}splitString(e,t){let n,r=t,i=e.utf8size-r;if(e.utf8size!==e.value.length){let n=0;for(t=0;n<r;t++){let r=o(e.value.codePointAt(t));4===r&&t++,n+=r}}n=e.value.slice(0,t);let a={value:e.value.slice(t),utf8size:i,uses:e.uses.slice(),startMeta:e.startMeta,endMeta:e.endMeta};for(let t of(e.value=n,e.utf8size=r,e.uses)){let n=t.parts.indexOf(e);if(-1===n)throw Error("bug: mismatch between string parts and use.");t.parts.splice(n+1,0,a)}}stringAppendSlice(e,t,n,r){let i=this.asString(t),o=this.resolveStringPart(i,0,n),a=this.resolveStringPart(i,o,r-n);for(let t=o;t<a;t++){let n=i.parts[t];this.stringAppendPart(e,n)}}}function u(e){if("u">typeof e.data)return e.data;let t,n=e.content;switch(n.type){case"string":t=n.parts.map(e=>e.value).join("");break;case"array":t=n.elements.map(e=>u(e));break;case"object":for(let[e,r]of(t={},Object.entries(n.fields)))t[e]=u(r)}return e.data=t,t}function c(e){return e.content?e.content.type:Array.isArray(e.data)?"array":null===e.data?"null":typeof e.data}var d=Object.freeze({__proto__:null,applyPatch:function(e,t,n){return new i(new l(n),e,t).process()},getType:c,rebaseValue:function e(t,n){let r=c(t);if(r!==c(n))return n;let i=new l(t.endMeta),s=new l(n.endMeta);switch(r){case"object":{let r=i.asObject(t),o=s.asObject(n),a=0,l=Object.keys(r.fields).length,u=Object.keys(o.fields).length;for(let[t,n]of Object.entries(o.fields)){let i=r.fields[t];i&&(o.fields[t]=e(i,n),o.fields[t]===i&&a++)}return l===u&&l===a?t:n}case"array":{let r=i.asArray(t),o=s.asArray(n);if(r.elements.length!==o.elements.length)break;let a=0;for(let t=0;t<o.elements.length;t++)o.elements[t]=e(r.elements[t],o.elements[t]),o.elements[t]!==r.elements[t]&&a++;return 0===a?t:n}case"null":case"boolean":case"number":if(u(t)===u(n))return t;break;case"string":{let e=u(t),r=u(n);if(e===r)return t;let i=s.copyString(null),l=function(e,t){let n=Math.min(e.length,t.length),r=0;for(let i=0;i<n;){let n=e.codePointAt(i);if(n!==t.codePointAt(i))break;let a=o(n);r+=a,i+=4===a?2:1}return r}(e,r),c=function(e,t,n=0){let r=Math.min(e.length,t.length)-n,i=0;for(let n=0;n<r;){let r=e.codePointAt(e.length-1-n);if(r!==t.codePointAt(t.length-1-n))break;let a=o(r);i+=a,n+=4===a?2:1}return i}(e,r,l),d=a(r),f=a(e);0<l&&s.stringAppendSlice(i,t,0,l),l<d-c&&s.stringAppendSlice(i,n,l,d-c),f-c<f&&s.stringAppendSlice(i,t,f-c,f);let h=s.finalize(i);if(u(h)!==r)throw Error("incorrect string rebase");return h}}return n},unwrap:u,wrap:function(e,t){return{data:e,startMeta:t,endMeta:t}}});class f{wrap(e){return e}finalize(e){return Array.isArray(e)?e:e.data}markChanged(e){return e}objectGetKeys(e){return Object.keys(e)}
27objectGetField(e,t){return e[t]}arrayGetElement(e,t){return e[t]}copyObject(e){let t={type:"object",data:{}};if(null!==e)for(let[n,r]of Object.entries(e))t.data[n]=r;return t}copyArray(e){return null===e?[]:e.slice()}copyString(e){return{type:"string",data:null===e?"":e}}objectSetField(e,t,n){e.data[t]=n}objectDeleteField(e,t){delete e.data[t]}arrayAppendValue(e,t){e.push(t)}arrayAppendSlice(e,t,n,r){e.push(...t.slice(n,r))}stringAppendSlice(e,t,n,r){let i=s(t,n),o=s(t,r,i);e.data+=t.slice(i,o)}stringAppendValue(e,t){e.data+=t}}function h(e,t){return new i(new f,e,t).process()}},33607:(e,t,n)=>{var r=n(94598),i=n(50466),o=n(1247),a=n(61328),s=n(79459),l=n(56957),u=n(33790),c=n(9044),d=n(88567);e.exports=function(e,t,n){t=t.length?r(t,function(e){return d(e)?function(t){return i(t,1===e.length?e[0]:e)}:e}):[c];var f=-1;return t=r(t,l(o)),s(a(e,function(e,n,i){return{criteria:r(t,function(t){return t(e)}),index:++f,value:e}}),function(e,t){return u(e,t,n)})}},33648:e=>{"use strict";function t(e){var t;e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"],t=e.languages.extend("typescript",{}),delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}
27e.exports=t,t.displayName="typescript",t.aliases=["ts"]},33655:(e,t,n)=>{"use strict";let r=n(32112);e.exports=(e,t)=>r(e,t,!0)},33672:(e,t,n)=>{"use strict";n.d(t,{R:()=>function e(t,n,p,g){if((0,l.T)(p)&&(g=p,p=void 0),g)return e(t,n,p).pipe((0,u.I)(g));var m,y,v,b=(0,r.zs)((m=t,(0,l.T)(m.addEventListener)&&(0,l.T)(m.removeEventListener))?d.map(function(e){return function(r){return t[e](n,r,p)}}):(y=t,(0,l.T)(y.addListener)&&(0,l.T)(y.removeListener))?c.map(h(t,n)):(v=t,(0,l.T)(v.on)&&(0,l.T)(v.off))?f.map(h(t,n)):[],2),w=b[0],x=b[1];if(!w&&(0,s.X)(t))return(0,a.Z)(function(t){return e(t,n,p)})((0,i.Tg)(t));if(!w)throw TypeError("Invalid event target");return new o.c(function(e){var t=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.next(1<t.length?t:t[0])};return w(t),function(){return x(t)}})}});var r=n(58555),i=n(12884),o=n(29039),a=n(91558),s=n(73711),l=n(73315),u=n(43242),c=["addListener","removeListener"],d=["addEventListener","removeEventListener"],f=["on","off"];function h(e,t){return function(n){return function(r){return e[n](t,r)}}}},33790:(e,t,n)=>{var r=n(96856);e.exports=function(e,t,n){for(var i=-1,o=e.criteria,a=t.criteria,s=o.length,l=n.length;++i<s;){var u=r(o[i],a[i]);if(u){if(i>=l)return u;return u*("desc"==n[i]?-1:1)}}return e.index-t.index}},33801:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(39292);function i(e){var t=function(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=(0,r.A)(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,r.A)(t)?t:t+""}},33825:e=>{"use strict";function t(e){!function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_
27CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>
27&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var i=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=r.variable[1].inside,a=0;a<i.length;a++)o[i[a]]=e.languages.bash[i[a]];e.languages.shell=e.languages.bash}(e)}e.exports=t,t.displayName="bash",t.aliases=["shell"]},33917:e=>{e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},34010:(e,t,n)=>{var r=n(44258),i=n(68685),o=n(88002),a=0/0,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return a;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):s.test(e)?a:+e}},34293:(e,t,n)=>{"use strict";function r(e){return"object"==typeof e&&null!==e}n.d(t,{G:()=>r})},34589:(e,t,n)=>{"use strict";var r=n(44316).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(76682)),o=r(n(32349)),a=r(n(86396)),s=r(n(61942)),l=r(n(28307)),u=r(n(31976)),c=r(n(93759)),d={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"};function f(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;return 0===o?n+String(i):n+String(i)+(t||"")+(0,u.default)(o,2)}function h(e,t){return e%60==0?(e>0?"-":"+")+(0,u.default)(Math.abs(e)/60,2):p(e,t)}function p(e,t){var n=Math.abs(e);return(e>0?"-":"+")+(0,u.default)(Math.floor(n/60),2)+(t||"")+(0,u.default)(n%60,2)}t.default={G:function(e,t,n){var r=+(e.getUTCFullYear()>0);switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear();return n.ordinalNumber(r>0?r:1-r,{unit:"year"})}return c.default.y(e,t)},Y:function(e,t,n,r){var i=(0,l.default)(e,r),o=i>0?i:1-i;if("YY"===t){var a=o%100;return(0,u.default)(a,2)}return"Yo"===t?n.ordinalNumber(o,{unit:"year"}):(0,u.default)(o,t.length)},R:function(e,t){var n=(0,a.default)(e);return(0,u.default)(n,t.length)},u:function(e,t){var n=e.getUTCFullYear();return(0,u.default)(n,t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return(0,u.default)(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return(0,u.default)(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return c.default.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return(0,u.default)(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var i=(0,s.default)(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):(0,u.default)(i,t.length)},I:function(e,t,n){var r=(0,o.default)(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):(0,u.default)(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):c.default.d(e,t)},D:function(e,t,n){var r=(0,i.default)(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):(0,u.default)(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return(0,u.default)(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return(0,u.default)(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return(0,u.default)(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,i=e.getUTCHours();switch(r=12===i?d.noon:0===i?d.midnight:i/12>
27=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,i=e.getUTCHours();switch(r=i>=17?d.evening:i>=12?d.afternoon:i>=4?d.morning:d.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return c.default.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):c.default.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,u.default)(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return(0===r&&(r=24),"ko"===t)?n.ordinalNumber(r,{unit:"hour"}):(0,u.default)(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):c.default.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):c.default.s(e,t)},S:function(e,t){return c.default.S(e,t)},X:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return h(i);case"XXXX":case"XX":return p(i);default:return p(i,":")}},x:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return h(i);case"xxxx":case"xx":return p(i);default:return p(i,":")}},O:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+f(i,":");default:return"GMT"+p(i,":")}},z:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+f(i,":");default:return"GMT"+p(i,":")}},t:function(e,t,n,r){var i=Math.floor((r._originalDate||e).getTime()/1e3);return(0,u.default)(i,t.length)},T:function(e,t,n,r){var i=(r._originalDate||e).getTime();return(0,u.default)(i,t.length)}},e.exports=t.default},34846:(e,t,n)=>{"use strict";n.d(t,{DN:()=>Y,GD:()=>H,RZ:()=>b,VK:()=>z,cQ:()=>v,fA:()=>D,ks:()=>K,nk:()=>R,pg:()=>q,rd:()=>m,s8:()=>G,wE:()=>M});var r=n(7531),i=n(17884),o=n(82203),a=n(7813),s=n(52921),l=n(12407),u=n(23851),c=n(63664),d=n(54912),f=n(78711),h=n(76864),p=n(49092),g=n(9044);function m(){let e=(0,o.useContext)(a.zA);if(!e)throw Error("Router: missing context value");return e}function y(e){let t,n,r=(0,i.c)(8),{onClick:o,href:a,target:s,replace:l}=e,u=void 0!==l&&l,{navigateUrl:c}=m();r[0]!==a||r[1]!==c||r[2]!==o||r[3]!==u||r[4]!==s?(t=e=>{e.isDefaultPrevented()||a&&(o&&o(e),!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||0!==e.button)&&(s||(e.preventDefault(),c({path:a,replace:u}))))},r[0]=a,r[1]=c,r[2]=o,r[3]=u,r[4]=s,r[5]=t):t=r[5];let d=t;return r[6]!==d?(n={onClick:d},r[6]=d,r[7]=n):n=r[7],n}function v(e){let t,n,r,o,a=(0,i.c)(13),{intent:s,onClick:l,params:u,replace:c,target:d,searchParams:f}=e,{resolveIntentLink:h}=m();a[0]!==s||a[1]!==u||a[2]!==h||a[3]!==f?(n=h(s,u,f),a[0]=s,a[1]=u,a[2]=h,a[3]=f,a[4]=n):n=a[4],t=n,a[5]!==t||a[6]!==l||a[7]!==c||a[8]!==d?(r={href:t,onClick:l,replace:c,target:d},a[5]=t,a[6]=l,a[7]=c,a[8]=d,a[9]=r):r=a[9];let{onClick:p}=y(r);return a[10]!==t||a[11]!==p?(o={onClick:p,href:t},a[10]=t,a[11]=p,a[12]=o):o=a[12],o}let b=(0,o.forwardRef)(function(e,t){let n,o,a,s,l,u,c,d=(0,i.c)(18);d[0]!==e?({intent:n,params:o,target:l,searchParams:s,...a}=e,d[0]=e,d[1]=n,d[2]=o,d[3]=a,d[4]=s,d[5]=l):(n=d[1],o=d[2],a=d[3],s=d[4],l=d[5]),d[6]!==n||d[7]!==o||d[8]!==e.onClick||d[9]!==s||d[10]!==l?(u={intent:n,params:o,target:l,onClick:e.onClick,searchParams:s},d[6]=n,d[7]=o,d[8]=e.onClick,d[9]=s,d[10]=l,d[11]=u):u=d[11];let{onClick:f,href:h}=v(u);return d[12]!==h||d[13]!==f||d[14]!==t||d[15]!==a||d[16]!==l?(c=(0,r.jsx)("a",{...a,href:h,onClick:f,ref:t,target:l}),d[12]=h,d[13]=f,d[14]=t,d[15]=a,d[16]=l,d[17]=c):c=d[17],c}),w=((0,o.forwardRef)(function(e,t){let n,o,a,s,l,u,c,d=(0,i.c)(17);d[0]!==e?({onClick:o,href:n,target:l,replace:a,...s}=e,d[0]=e,d[1]=n,d[2]=o,d[3]=a,d[4]=s,d[5]=l):(n=d[1],o=d[2],a=d[3],s=d[4],l=d[5]),d[6]!==n||d[7]!==o||d[8]!==a||d[9]!==l?
27(u={onClick:o,href:n,target:l,replace:a},d[6]=n,d[7]=o,d[8]=a,d[9]=l,d[10]=u):u=d[10];let{onClick:f}=y(u);return d[11]!==n||d[12]!==f||d[13]!==t||d[14]!==s||d[15]!==l?(c=(0,r.jsx)("a",{...s,onClick:f,href:n,target:l,ref:t}),d[11]=n,d[12]=f,d[13]=t,d[14]=s,d[15]=l,d[16]=c):c=d[16],c}),/^[a-zA-Z0-9_-]+$/);function x(e){if(!e)return null;if(e.startsWith(":")){let t=e.slice(1);if(!w.test(t)){let t=e.includes("*")?" Splats are not supported. Consider using child routes instead":"";console.error(Error(`Warning: Param segments "${e}" includes invalid characters.${t}`))}return{type:"param",name:t}}return{type:"dir",name:e}}function k(e){return Array.isArray(e)?e:e?[e]:[]}function E(e,t,n){return{type:"error",node:e,missingKeys:t,unmappableStateKeys:n}}function _(e,t,n,r){return{type:"ok",node:e,matchedState:t,searchParams:n,child:r}}function S(e,t){let n=[...String(e)],r="";for(let e=0;e<n.length;e++){let i=n[e];t.includes(i)?r+=i:r+=encodeURIComponent(i)}return r}let A=d("state-router");function T(e){return`[${e}]`}function C(e){return`"${e}"`}function O(e){return String.fromCharCode(parseInt(e.slice(1),16))}function j(e){return`%${`00${e.charCodeAt(0).toString(16)}`.slice(-2)}`}function D(e=""){let t=decodeURIComponent(e);if(!t)return{};try{var n;return JSON.parse((n=t.replace(/-/g,"+").replace(/_/g,"/"),decodeURIComponent(Array.from(atob(n),j).join(""))))}catch{}try{return JSON.parse(atob(t))}catch{}try{return JSON.parse(t)}catch{console.warn("Failed to parse JSON parameters")}return{}}function R(e){return e?btoa(encodeURIComponent(JSON.stringify(e)).replace(/%[0-9A-F]{2}/g,O)).replace(/\//g,"_").replace(/\+/g,"-").replace(/[=]+$/,""):""}function I(e){return e.split(";").reduce((e,t)=>{let[n,r]=t.split("=");return e[decodeURIComponent(n)]=decodeURIComponent(r),e},{})}function P(e){return Object.entries(e).filter(([,e])=>null!=e).map(([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(t)}`).join(";")}let M={create:(e,t,n)=>U($(e,t,n)),intents:e=>{let t=(function(...e){return e.reduce((e,t)=>e.concat(t.split("/")),[]).filter(Boolean)})(e).join("/");return M.create(`${t}/:intent`,[M.create(":params",{transform:{params:{toState:I,toPath:P}}},[M.create(":payload",{transform:{payload:{toState:D,toPath:R}}})])])},scope:(e,t,n,r)=>U({...$(t,n,r),scope:e})};function N(e){return Array.isArray(e)||"function"==typeof e?e:e?[e]:[]}function $(e,t,n){return"object"==typeof e?e:Array.isArray(t)||"function"==typeof t||t&&"_isRoute"in t?{path:e,children:N(t)}:n?{path:e,...t,children:N(n)}:{path:e,...t}}let L={};function F(e){return e.split("/").every(e=>!e)}function U(e){let{path:t,scope:n,transform:r,children:i,__unsafe_disableScopedSearchParams:o}=e;if(!t)throw TypeError("Missing path");return{_isRoute:!0,scope:n,__unsafe_disableScopedSearchParams:o,route:function(e){let[t]=e.split("?");return{raw:e,segments:t.split("/").map(x).filter(Boolean)}}(t),children:i||[],transform:r,encode(e){return function(e,t){A("Resolving path from state %o",t);let n=function e(t,n){if(!n)return _(t,{},[]);let{_searchParams:r=[],...i}=(t.scope?n[t.scope]:n)||{},o=t.route.segments.filter(e=>"param"===e.type).map(e=>e.name),a=u(i)?Object.keys(i):[],d=l(a,o),f=s(o,d),h=s(a,d);if(f.length>0)return E(t,f,[]);let p=r.map(([e,t])=>[[e],t]),g=c(i,d);if(0===h.length)return _(t,g,p);let m=k(("function"==typeof t.children?t.children(u(i)?i:{}):t.children)||[]);if(h.length>0&&0===m.length)return E(t,[],h);let y=c(i,h),v=m.map(t=>e(t,y)).find(e=>"ok"===e.type);return v?_(t,g,p,v):E(t,[],h)}(e,t);if("error"===n.type){let e=n.unmappableStateKeys;if(e.length>0)throw Error(`Unable to find matching route for state. Could not map the following state key${1==e.length?"":"s"} to a valid url: ${e.map(C).join(", ")}`);let t=n.missingKeys;throw Error(`Unable to find matching route for state. State object is missing the following key${1==t.length?"":"s"} defined in route: ${t.map(C).join(", ")}`)}let{path:r,searchParams:i}=function e(t){let n=t.matchedState,r=t.node.route.segments.map(e=>{if("dir"===e.type)return e.name;let r=t.node.transform&&t.node.transform[e.name];return r?r.toPath(n[e.name]):n[e.name]}),i=t.child?e(t.child):void 0,o=i?.searchParams?[...t.searchParams,...i.searchParams]:t.searchParams;return{searchParams:function(e,t){let n=e.scope;return n&&!e.__unsafe_disableScopedSearchParams?t.map(([e,t])=>[[n,...e],t]):t}(t.node,o),path:[...r||[],...i?.path||[]]}}(n),o=i.length>0?i.flatMap(([e,t])=>void 0===t?[]:[S(function(e){let[t,...n]=e;return n.length>0?[t,...n.map(T)].join(""):t}(e),"[]"),S(t,"/")].join("=")).join("&"):"";return`/${r.join("/")}${o?`?${o}`:""}`}(this,e)},decode(e){A("resolving state from path %s",e);let[t,n]=e.split("?"),r=function e(t,n,r){var i,o;
27let a=n.split("/").filter(Boolean),s=t.route.segments.length;if(a.length<s)return null;let l={};if(!t.route.segments.every((e,n)=>{if("dir"===e.type)return e.name===a[n];let r=t.transform&&t.transform[e.name];return l[e.name]=r?r.toState(a[n]):a[n],!0}))return null;let u=a.slice(s),c=null,d="function"==typeof t.children?k(t.children(l)):t.children,f=(i=t.scope,o=r,i?o.map(([e,t])=>[e[0]===i?e.slice(1):e,t]):o);if(d.some(t=>{if(t){let n=t.scope?f.filter(([e])=>t.scope===e[0]):f;return c=e(t,u.join("/"),n)}}),u.length>0&&!c)return null;let h=f.flatMap(([e,t])=>1===e.length?[[e[0],t]]:[]),p={...l,...c||{},...h.length>0?{_searchParams:h}:{}};return t.scope?{[t.scope]:p}:p}(this,t,Array.from(new URLSearchParams(n).entries()).map(([e,t])=>[function(e){let t=[],n=0,r=0;for(;n<e.length;){let i=e.indexOf("[",n);if(-1===i){t.push(e.slice(n,e.length));break}if(1===r)throw Error("Nested brackets not supported");r=1,i>n&&(t.push(e.slice(n,i)),n=i);let o=e.indexOf("]",i);if(-1===o){if(1===r)throw Error("Unclosed bracket");break}r=0,t.push(e.slice(n+1,o)),n=o+1}return t}(e),t]));return A("resolved: %o",r||null),r||null},isRoot:F,isNotFound(e){return null===this.decode(e)},getBasePath(){return this.encode(L)},getRedirectBase(e){if(F(e)){let t=this.getBasePath();if(e!==t)return t}return null}}}let z=["perspective","excludedPerspectives"],B=e=>{if("object"!=typeof e||null===e||Array.isArray(e)||!("replace"in e||"stickyParams"in e||"state"in e))return!1;if("state"in e){let{state:t}=e;return null==t||"object"==typeof t}return!0};function q(e){let{onNavigate:t,router:n,state:i}=e,s=(0,o.useCallback)((e,t,r)=>{let[o,a]=Array.isArray(t)?t:[t];return n.encode({intent:e,params:o,payload:a,_searchParams:p({...f((i._searchParams??[]).filter(([e])=>z.includes(e))),...f(r??[])})})},[n,i._searchParams]),l=(0,o.useCallback)(e=>{let t=i._searchParams||[],r=e?._searchParams||[],o=z.reduce((e,n)=>(function(e,t,n){let r=e.filter(([e])=>e!==t);return void 0===n||""==n?r:[...r,[t,n]]})(e,n,V(r,n)??V(t,n)),r||[]);return n.encode({...e,_searchParams:o})},[n,i]),u=(0,o.useCallback)((e,n)=>{let r=B(e)&&!n?e:n||{},o=B(e)?(u=e,c=i,(B(u)?null===u.state?{}:u.state??c:null)??i):e,a=i._searchParams||[],s=r.stickyParams??Object.fromEntries(a.filter(([e])=>z.includes(e)));var u,c,d,f,h=s;if(Object.keys(h).some(e=>!z.includes(e)))throw Error("One or more parameters are not sticky");let p=(d=o._searchParams||[],(f=s)?[...d.filter(([e])=>!Object.hasOwn(f,e)),...Object.entries(f).filter(e=>void 0!==e[1]).map(e=>[e[0],null===e[1]?"":e[1]])]:d);t({path:l({...o,_searchParams:p}),replace:r.replace})},[t,l,i]),c=(0,o.useCallback)((e,t={})=>u({stickyParams:e,...t,state:void 0}),[u]),d=(0,o.useCallback)((e,n,r={})=>{t({path:s(e,n),replace:r.replace})},[t,s]),[g,m]=(0,o.useMemo)(()=>{if(!i._searchParams)return[i,null];let{_searchParams:e,...t}=i,[n,r]=h(e,([e])=>z.includes(e));return 0===n.length?[i,null]:[{...t,_searchParams:r},n]},[i]),y=(0,o.useMemo)(()=>Object.fromEntries(m||[]),[m]),v=(0,o.useMemo)(()=>({navigate:u,navigateIntent:d,navigateStickyParams:c,navigateUrl:t,resolveIntentLink:s,resolvePathFromState:l,state:g,stickyParams:y}),[c,u,d,t,s,l,g,y]);return(0,r.jsx)(a.zA.Provider,{value:v,children:e.children})}function V(e,t){let n=e.find(([e])=>e===t);return n?n[1]:void 0}let H=function(e){let t,n,s,l,u,c,d,f,h,p,g=(0,i.c)(27),{children:y,scope:v,__unsafe_disableScopedSearchParams:b}=e,w=m(),{resolvePathFromState:x,navigate:k}=w,E=(0,o.useRef)(w.state);g[0]!==w.state?(t=()=>{E.current=w.state},n=[w.state],g[0]=w.state,g[1]=t,g[2]=n):(t=g[1],n=g[2]),(0,o.useEffect)(t,n),g[3]!==b||g[4]!==v?(s=e=>{var t;if(null===e)return null;let{_searchParams:n,...r}=e||{},i=(t=E.current,r&&{...t,[v]:r});return b?i._searchParams=n:i[v]._searchParams=n,i},g[3]=b,g[4]=v,g[5]=s):s=g[5];let _=s;g[6]!==x||g[7]!==_?(l=e=>x(_(e)),g[6]=x,g[7]=_,g[8]=l):l=g[8];let S=l;g[9]!==k||g[10]!==_?(u=(e,t)=>{if(B(e)&&!t){let{state:t}=e;if(t){let n=_(t);return k(null===n?{}:n,e)}return k(e)}let n=B(e)?_(null):_(e);return k(null===n?{}:n,t||{})},g[9]=k,g[10]=_,g[11]=u):u=g[11];let A=u,T=w.state;return g[12]!==T||g[13]!==v?(d=T[v]||{},g[12]=T,g[13]=v,g[14]=d):d=g[14],g[15]!==b||g[16]!==T._searchParams||g[17]!==d?(f={...d},b&&(f._searchParams=T._searchParams),g[15]=b,g[16]=T._searchParams,g[17]=d,g[18]=f):f=g[18],g[19]!==f||g[20]!==A||g[21]!==w||g[22]!==S?(h={...w,navigate:A,resolvePathFromState:S,state:f},g[19]=f,g[20]=A,g[21]=w,g[22]=S,g[23]=h):h=g[23],c=h,g[24]!==c||g[25]!==y?(p=(0,r.jsx)(a.zA.Provider,{value:c,children:y}),g[24]=c,g[25]=y,g[26]=p):p=g[26],p};H.displayName="RouteScope";let W={};function Y(e){let t,n,r,o,a=(0,i.c)(11),{onClick:s,replace:l,state:u,target:c,toIndex:d}=e,f=void 0!==d&&d;if(u&&f)throw Error("Passing both `state` and `toIndex={true}
27` as props to StateLink is invalid");u||f||console.error(Error("No state passed to StateLink. If you want to link to an empty state, its better to use the the `toIndex` property"));let{resolvePathFromState:h}=m(),p=f?W:u||W;a[0]!==h||a[1]!==p?(n=h(p),a[0]=h,a[1]=p,a[2]=n):n=a[2],t=n,a[3]!==t||a[4]!==s||a[5]!==l||a[6]!==c?(r={href:t,onClick:s,replace:l,target:c},a[3]=t,a[4]=s,a[5]=l,a[6]=c,a[7]=r):r=a[7];let{onClick:g}=y(r);return a[8]!==t||a[9]!==g?(o={onClick:g,href:t},a[8]=t,a[9]=g,a[10]=o):o=a[10],o}let G=(0,o.forwardRef)(function(e,t){let n,o,a,s,l,u,c,d,f=(0,i.c)(18);f[0]!==e?({onClick:n,replace:o,state:s,target:u,toIndex:l,...a}=e,f[0]=e,f[1]=n,f[2]=o,f[3]=a,f[4]=s,f[5]=l,f[6]=u):(n=f[1],o=f[2],a=f[3],s=f[4],l=f[5],u=f[6]);let h=void 0!==l&&l;f[7]!==n||f[8]!==o||f[9]!==s||f[10]!==u||f[11]!==h?(c={onClick:n,replace:o,state:s,target:u,toIndex:h},f[7]=n,f[8]=o,f[9]=s,f[10]=u,f[11]=h,f[12]=c):c=f[12];let{onClick:p,href:g}=Y(c);return f[13]!==g||f[14]!==p||f[15]!==t||f[16]!==a?(d=(0,r.jsx)("a",{...a,href:g,onClick:p,ref:t}),f[13]=g,f[14]=p,f[15]=t,f[16]=a,f[17]=d):d=f[17],d});function K(e){let t,n=(0,i.c)(3),r=void 0===e?g:e,{state:o}=m();return n[0]!==r||n[1]!==o?(t=r(o),n[0]=r,n[1]=o,n[2]=t):t=n[2],t}!function(e){e.displayName||e.name}(e=>e.children(e.router))},35346:(e,t,n)=>{"use strict";function r(e,t,n){return Math.min(Math.max(e,n),t)}n.d(t,{Uv:()=>b,W0:()=>x,a:()=>w,e$:()=>m});class i extends Error{constructor(e){super(`Failed to parse color: "${e}"`)}}function o(e){if("string"!=typeof e)throw new i(e);if("transparent"===e.trim().toLowerCase())return[0,0,0,0];let t=e.trim();t=h.test(e)?function(e){let t=s[function(e){let t=5381,n=e.length;for(;n;)t=33*t^e.charCodeAt(--n);return(t>>>0)%2341}(e.toLowerCase().trim())];if(!t)throw new i(e);return`#${t}`}(e):e;let n=u.exec(t);if(n){let e=Array.from(n).slice(1);return[...e.slice(0,3).map(e=>parseInt(l(e,2),16)),parseInt(l(e[3]||"f",2),16)/255]}let o=c.exec(t);if(o){let e=Array.from(o).slice(1);return[...e.slice(0,3).map(e=>parseInt(e,16)),parseInt(e[3]||"ff",16)/255]}let a=d.exec(t);if(a){let e=Array.from(a).slice(1);return[...e.slice(0,3).map(e=>parseInt(e,10)),parseFloat(e[3]||"1")]}let p=f.exec(t);if(p){let[t,n,o,a]=Array.from(p).slice(1).map(parseFloat);if(r(0,100,n)!==n||r(0,100,o)!==o)throw new i(e);return[...g(t,n,o),Number.isNaN(a)?1:a]}throw new i(e)}let a=e=>parseInt(e.replace(/_/g,""),36),s="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{let n=a(t.substring(0,3)),r=a(t.substring(3)).toString(16),i="";for(let e=0;e<6-r.length;e++)i+="0";return e[n]=`${i}${r}`,e},{}),l=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),u=RegExp(`^#${l("([a-f0-9])",3)}([a-f0-9])?$`,"i"),c=RegExp(`^#${l("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),d=RegExp(`^rgba?\\(\\s*(\\d+)\\s*${l(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),f=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,h=/^[a-z]+$/i,p=e=>Math.round(255*e),g=(e,t,n)=>{let r=n/100;if(0===t)return[r,r,r].map(p);let i=(e%360+360)%360/60,o=t/100*(1-Math.abs(2*r-1)),a=o*(1-Math.abs(i%2-1)),s=0,l=0,u=0;i>=0&&i<1?(s=o,l=a):i>=1&&i<2?(s=a,l=o):i>=2&&i<3?(l=o,u=a):i>
27=3&&i<4?(l=a,u=o):i>=4&&i<5?(s=a,u=o):i>=5&&i<6&&(s=o,u=a);let c=r-o/2;return[s+c,l+c,u+c].map(p)};function m(e,t){var n;let[i,a,s,l]=function(e){let[t,n,r,i]=o(e).map((e,t)=>3===t?e:e/255),a=Math.max(t,n,r),s=Math.min(t,n,r),l=(a+s)/2;if(a===s)return[0,0,l,i];let u=a-s;return[60*(t===a?(n-r)/u+6*(n<r):n===a?(r-t)/u+2:(t-n)/u+4),l>.5?u/(2-a-s):u/(a+s),l,i]}(e);return n=s-t,`hsla(${(i%360).toFixed()}, ${r(0,100,100*a).toFixed()}%, ${r(0,100,100*n).toFixed()}%, ${parseFloat(r(0,1,l).toFixed(3))})`}function y(e){if("transparent"===e)return 0;function t(e){let t=e/255;return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}let[n,r,i]=o(e);return .2126*t(n)+.7152*t(r)+.0722*t(i)}let v={decorative:1.5,readable:3,aa:4.5,aaa:7};function b(e,t="aa",n="#fff"){return function(e,t){let n=y(e),r=y(t);return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}(e,n)<v[t]}function w(e,t){return m(e,-t)}function x(e){return y(e)>.179?"#000":"#fff"}},35547:(e,t,n)=>{var r=n(11088);e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var o=n.length,a=t?o:-1,s=Object(n);(t?a--:++a<o)&&!1!==i(s[a],a,s););return n}}},35842:(e,t,n)=>{var r=n(50466);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},36116:(e,t,n)=>{"use strict";n.d(t,{$:()=>r});var r={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},36234:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(47528),i=n(89149),o=n(38079),a=n(71260),s=n(18659),l=n(29449);function u(e,t){(0,a.A)(1,arguments);var n=(0,r.A)(e);return Math.round(((0,i.A)(n,t).getTime()-(function(e,t){(0,a.A)(1,arguments);var n,r,u,c,d,f,h,p,g=(0,l.q)(),m=(0,s.A)(null!=(n=null!=(r=null!=(u=null!=(c=null==t?void 0:t.firstWeekContainsDate)?c:null==t||null==(d=t.locale)||null==(f=d.options)?void 0:f.firstWeekContainsDate)?u:g.firstWeekContainsDate)?r:null==(h=g.locale)||null==(p=h.options)?void 0:p.firstWeekContainsDate)?n:1),y=(0,o.A)(e,t),v=new Date(0);return v.setUTCFullYear(y,0,m),v.setUTCHours(0,0,0,0),(0,i.A)(v,t)})(n,t).getTime())/6048e5)+1}},36462:(e,t,n)=>{"use strict";n.d(t,{h:()=>a});var r=n(12884),i=n(97783),o=n(94126);function a(e,t,n,a,s,l,u,c){var d=[],f=0,h=0,p=!1,g=function(){!p||d.length||f||t.complete()},m=function(e){return f<a?y(e):d.push(e)},y=function(e){l&&t.next(e),f++;var c=!1;(0,r.Tg)(n(e,h++)).subscribe((0,o._)(t,function(e){null==s||s(e),l?m(e):t.next(e)},function(){c=!0},void 0,function(){if(c)try{for(f--;d.length&&f<a;)!function(){var e=d.shift();u?(0,i.N)(t,u,function(){return y(e)}):y(e)}();g()}catch(e){t.error(e)}}))};return e.subscribe((0,o._)(t,m,function(){p=!0,g()})),function(){null==c||c()}}},36751:(e,t,n)=>{"use strict";let r=n(80726);e.exports=(e,t,n,i,o)=>{"string"==typeof n&&(o=i,i=n,n=void 0);try{return new r(e instanceof r?e.version:e,n).inc(t,i,o).version}catch(e){return null}}},37060:(e,t,n)=>{"use strict";n.d(t,{H:()=>o});var r=n(31524),i=n(12884);function o(e,t){return t?(0,r.c)(e,t):(0,i.Tg)(e)}}
27,37070:e=>{e.exports=function(e,t){return e<t}},37245:(e,t,n)=>{"use strict";n.d(t,{B:()=>u});var r=n(58555),i=n(29039),o=n(69e3),a=(0,n(62553).L)(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),s=n(74814),l=n(97718),u=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return(0,r.C6)(t,e),t.prototype.lift=function(e){var t=new c(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new a},t.prototype.next=function(e){var t=this;(0,l.Y)(function(){var n,i;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var o=(0,r.Ju)(t.currentObservers),a=o.next();!a.done;a=o.next())a.value.next(e)}catch(e){n={error:e}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}}})},t.prototype.error=function(e){var t=this;(0,l.Y)(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}})},t.prototype.complete=function(){var e=this;(0,l.Y)(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null==(e=this.observers)?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=this.hasError,r=this.isStopped,i=this.observers;return n||r?o.Kn:(this.currentObservers=null,i.push(e),new o.yU(function(){t.currentObservers=null,(0,s.o)(i,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,n=this.thrownError,r=this.isStopped;t?e.error(n):r&&e.complete()},t.prototype.asObservable=function(){var e=new i.c;return e.source=this,e},t.create=function(e,t){return new c(e,t)},t}(i.c),c=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return(0,r.C6)(t,e),t.prototype.next=function(e){var t,n;null==(n=null==(t=this.destination)?void 0:t.next)||n.call(t,e)},t.prototype.error=function(e){var t,n;null==(n=null==(t=this.destination)?void 0:t.error)||n.call(t,e)},t.prototype.complete=function(){var e,t;null==(t=null==(e=this.destination)?void 0:e.complete)||t.call(e)},t.prototype._subscribe=function(e){var t,n;return null!=(n=null==(t=this.source)?void 0:t.subscribe(e))?n:o.Kn},t}(u)},37512:(e,t,n)=>{"use strict";n.d(t,{H:()=>h});var r=n(68747),i=n(58555),o=n(29039),a=n(69e3),s=n(83920),l=n(94126),u=n(27778),c=function(e){function t(t,n){var r=e.call(this)||this;return r.source=t,r.subjectFactory=n,r._subject=null,r._refCount=0,r._connection=null,(0,u.S)(t)&&(r.lift=t.lift),r}return(0,i.C6)(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject},t.prototype._teardown=function(){this._refCount=0;var e=this._connection;this._subject=this._connection=null,null==e||e.unsubscribe()},t.prototype.connect=function(){var e=this,t=this._connection;if(!t){t=this._connection=new a.yU;var n=this.getSubject();t.add(this.source.subscribe((0,l._)(n,void 0,function(){e._teardown(),n.complete()},function(t){e._teardown(),n.error(t)},function(){return e._teardown()}))),t.closed&&(this._connection=null,t=a.yU.EMPTY)}return t},t.prototype.refCount=function(){return(0,s.B)()(this)},t}(o.c),d=n(73315),f=n(9812);function h(e,t,n,i){n&&!(0,d.T)(n)&&(i=n);var o=(0,d.T)(n)?n:void 0;return function(n){var a,s;return(a=new r.m(e,t,i),s=(0,d.T)(a)?a:function(){return a},(0,d.T)(o)?(0,f.N)(o,{connector:s}):function(e){return new c(e,s)})(n)}}},37758:e=>{e.exports=function(){}},38079:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(47528),i=n(71260),o=n(89149),a=n(18659),s=n(29449);function l(e,t){(0,i.A)(1,arguments);var n,l,u,c,d,f,h,p,g=(0,r.A)(e),m=g.getUTCFullYear(),y=(0,s.q)(),v=(0,a.A)(null!=(n=null!=(l=null!=(u=null!=(c=null==t?void 0:t.firstWeekContainsDate)?c:null==t||null==(d=t.locale)||null==(f=d.options)?void 0:f.firstWeekContainsDate)?u:y.firstWeekContainsDate)?l:null==(h=y.locale)||null==(p=h.options)?void 0:p.firstWeekContainsDate)?n:1);if(!(v>=1&&v<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(m+1,0,v),b.setUTCHours(0,0,0,0);var w=(0,o.A)(b,t),x=new Date(0);x.setUTCFullYear(m,0,v),x.setUTCHours(0,0,0,0);var k=(0,o.A)(x,t);return g.getTime()>=w.getTime()?m+1:g.getTime()>=k.getTime()?m:m-1}}
27,38164:(e,t,n)=>{var r=n(8290),i=n(51840);e.exports=function(e){return r(i(e))}},38333:(e,t,n)=>{var r=n(80809);e.exports={escape:n(57473),evaluate:n(40305),interpolate:n(6117),variable:"",imports:{_:{escape:r}}}},38628:(e,t,n)=>{"use strict";n.d(t,{v:()=>a});var r=n(7350),i=n(27778),o=n(94126);function a(e){return void 0===e&&(e=s),(0,i.N)(function(t,n){var r=!1;t.subscribe((0,o._)(n,function(e){r=!0,n.next(e)},function(){return r?n.complete():n.error(e())}))})}function s(){return new r.G}},38859:(e,t,n)=>{"use strict";let r=n(32112);e.exports=(e,t,n)=>0!==r(e,t,n)},39020:(e,t,n)=>{"use strict";n.d(t,{r:()=>s});var r=n(7531),i=n(17884),o=n(64732),a=n(43498);let s=e=>{let t,n,s,l=(0,i.c)(8),{tooltipProps:u}=e;l[0]!==u?(t=e=>(0,r.jsx)(a.m_,{content:u?.content,portal:!0,...u,children:(0,r.jsx)("div",{children:e})}),l[0]=u,l[1]=t):t=l[1];let c=t,d=!!u;return l[2]!==e?(n=(0,r.jsx)(o.rX,{...e,fontSize:1,padding:3}),l[2]=e,l[3]=n):n=l[3],l[4]!==c||l[5]!==d||l[6]!==n?(s=(0,r.jsx)(a.e7,{condition:d,wrapper:c,children:n}),l[4]=c,l[5]=d,l[6]=n,l[7]=s):s=l[7],s}},39095:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},39292:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{A:()=>r})},39335:(e,t,n)=>{"use strict";n.d(t,{$$:()=>g,Es:()=>h,KG:()=>y,Ks:()=>T,Ll:()=>s,Re:()=>_,Sw:()=>o,TW:()=>f,WQ:()=>E,YG:()=>x,YN:()=>m,ZC:()=>b,_q:()=>p,ag:()=>O,e_:()=>A,jn:()=>i,kx:()=>S,l6:()=>a,lk:()=>v,sb:()=>c,wz:()=>u,xZ:()=>d,zk:()=>l});var r=n(82203);function i(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.useMemo)(()=>e=>{t.forEach(t=>t(e))},t)}let o="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function a(e){let t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function s(e){return"nodeType"in e}function l(e){var t,n;return e?a(e)?e:s(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function u(e){let{Document:t}=l(e);return e instanceof t}function c(e){return!a(e)&&e instanceof l(e).HTMLElement}function d(e){return e instanceof l(e).SVGElement}function f(e){return e?a(e)?e.document:s(e)?u(e)?e:c(e)||d(e)?e.ownerDocument:document:document:document}let h=o?r.useLayoutEffect:r.useEffect;function p(e){let t=(0,r.useRef)(e);return h(()=>{t.current=e}),(0,r.useCallback)(function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}function g(){let e=(0,r.useRef)(null);return[(0,r.useCallback)((t,n)=>{e.current=setInterval(t,n)},[]),(0,r.useCallback)(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[])]}function m(e,t){void 0===t&&(t=[e]);let n=(0,r.useRef)(e);return h(()=>{n.current!==e&&(n.current=e)},t),n}function y(e,t){let n=(0,r.useRef)();return(0,r.useMemo)(()=>{let t=e(n.current);return n.current=t,t},[...t])}function v(e){let t=p(e),n=(0,r.useRef)(null),i=(0,r.useCallback)(e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e},[]);return[n,i]}function b(e){let t=(0,r.useRef)();return(0,r.useEffect)(()=>{t.current=e},[e]),t.current}let w={};function x(e,t){return(0,r.useMemo)(()=>{if(t)return t;let n=null==w[e]?0:w[e]+1;return w[e]=n,e+"-"+n},[e,t])}function k(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce((t,n)=>{for(let[r,i]of Object.entries(n)){let n=t[r];null!=n&&(t[r]=n+e*i)}return t},{...t})}}let E=k(1),_=k(-1);function S(e){if(!e)return!1;let{KeyboardEvent:t}=l(e.target);return t&&e instanceof t}function A(e){if(function(e){if(!e)return!1;let{TouchEvent:t}=l(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return"clientX"in e&&"clientY"in e?{x:e.clientX,y:e.clientY}:null}let T=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[T.Translate.toString(e),T.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),C="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function O(e){return e.matches(C)?e:e.querySelector(C)}},39473:(e,t,n)=>{"use strict";let r=n(80726);e.exports=(e,t)=>new r(e,t).patch},39636:(e,t,n)=>{"use strict";n.d(t,{A:()=>
27o});var r=n(47528),i=n(71260);function o(e){(0,i.A)(1,arguments);var t=(0,r.A)(e);return t.setSeconds(0,0),t}},39753:(e,t,n)=>{"use strict";n.d(t,{D:()=>s});var r=Array.isArray,i=Object.getPrototypeOf,o=Object.prototype,a=Object.keys;function s(e){if(1===e.length){var t,n=e[0];if(r(n))return{args:n,keys:null};if((t=n)&&"object"==typeof t&&i(t)===o){var s=a(n);return{args:s.map(function(e){return n[e]}),keys:s}}}return{args:e,keys:null}}},39912:(e,t,n)=>{var r=n(57165),i=n(1033),o=n(9044);e.exports=function(e){return e&&e.length?r(e,o,i):void 0}},40040:(e,t,n)=>{var r=n(95973);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=!!t,t}},40305:e=>{e.exports=/<%([\s\S]+?)%>/g},40567:e=>{e.exports=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i}},40570:(e,t,n)=>{var r="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&i&&"function"==typeof i.get?i.get:null,a=r&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=s&&l&&"function"==typeof l.get?l.get:null,c=s&&Set.prototype.forEach,d="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,h="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,g=Object.prototype.toString,m=Function.prototype.toString,y=String.prototype.match,v=String.prototype.slice,b=String.prototype.replace,w=String.prototype.toUpperCase,x=String.prototype.toLowerCase,k=RegExp.prototype.test,E=Array.prototype.concat,_=Array.prototype.join,S=Array.prototype.slice,A=Math.floor,T="function"==typeof BigInt?BigInt.prototype.valueOf:null,C=Object.getOwnPropertySymbols,O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,j="function"==typeof Symbol&&"object"==typeof Symbol.iterator,D="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===j?"object":"symbol")?Symbol.toStringTag:null,R=Object.prototype.propertyIsEnumerable,I=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function P(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||k.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-A(-e):A(e);if(r!==e){var i=String(r),o=v.call(t,i.length+1);return b.call(i,n,"$&_")+"."+b.call(b.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,n,"$&_")}var M=n(22179),N=M.custom,$=V(N)?N:null,L={__proto__:null,double:'"',single:"'"},F={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function U(e,t,n){var r=L[n.quoteStyle||t];return r+e+r}function z(e){return!D||!("object"==typeof e&&(D in e||void 0!==e[D]))}function B(e){return"[object Array]"===Y(e)&&z(e)}function q(e){return"[object RegExp]"===Y(e)&&z(e)}function V(e){if(j)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!O)return!1;try{return O.call(e),!0}catch(e){}return!1}e.exports=function e(t,r,i,s){var l,g,w,k,A,C=r||{};if(W(C,"quoteStyle")&&!W(L,C.quoteStyle))throw TypeError('option "quoteStyle" must be "single" or "double"');if(W(C,"maxStringLength")&&("number"==typeof C.maxStringLength?C.maxStringLength<0&&C.maxStringLength!==1/0:null!==C.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var N=!W(C,"customInspect")||C.customInspect;if("boolean"!=typeof N&&"symbol"!==N)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(W(C,"indent")&&null!==C.indent&&"	"!==C.indent&&!(parseInt(C.indent,10)===C.indent&&C.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(W(C,"numericSeparator")&&"boolean"!=typeof C.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var H=C.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return function e(t,n){if(t.length>n.maxStringLength){var r=t.length-n.maxStringLength;return e(v.call(t,0,n.maxStringLength),n)+("... "+r)+" more character"+(r>1?"s":"")}var i=F[n.quoteStyle||"single"];return i.lastIndex=0,U(b.call(b.call(t,i,"\\$1"),/[\x00-\x1f]/g,K
27),"single",n)}(t,C);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var et=String(t);return H?P(t,et):et}if("bigint"==typeof t){var en=String(t)+"n";return H?P(t,en):en}var er=void 0===C.depth?5:C.depth;if(void 0===i&&(i=0),i>=er&&er>0&&"object"==typeof t)return B(t)?"[Array]":"[Object]";var ei=function(e,t){var n;if("	"===e.indent)n="	";else{if("number"!=typeof e.indent||!(e.indent>0))return null;n=_.call(Array(e.indent+1)," ")}return{base:n,prev:_.call(Array(t+1),n)}}(C,i);if(void 0===s)s=[];else if(G(s,t)>=0)return"[Circular]";function eo(t,n,r){if(n&&(s=S.call(s)).push(n),r){var o={depth:C.depth};return W(C,"quoteStyle")&&(o.quoteStyle=C.quoteStyle),e(t,o,i+1,s)}return e(t,C,i+1,s)}if("function"==typeof t&&!q(t)){var ea=function(e){if(e.name)return e.name;var t=y.call(m.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),es=ee(t,eo);return"[Function"+(ea?": "+ea:" (anonymous)")+"]"+(es.length>0?" { "+_.call(es,", ")+" }":"")}if(V(t)){var el=j?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):O.call(t);return"object"!=typeof t||j?el:X(el)}if((eu=t)&&"object"==typeof eu&&("undefined"!=typeof HTMLElement&&eu instanceof HTMLElement||"string"==typeof eu.nodeName&&"function"==typeof eu.getAttribute)){for(var eu,ec,ed="<"+x.call(String(t.nodeName)),ef=t.attributes||[],eh=0;eh<ef.length;eh++){ed+=" "+ef[eh].name+"="+U((ec=ef[eh].value,b.call(String(ec),/"/g,"&quot;")),"double",C)}return ed+=">",t.childNodes&&t.childNodes.length&&(ed+="..."),ed+="</"+x.call(String(t.nodeName))+">"}if(B(t)){if(0===t.length)return"[]";var ep=ee(t,eo);return ei&&!function(e){for(var t=0;t<e.length;t++)if(G(e[t],"\n")>=0)return!1;return!0}(ep)?"["+J(ep,ei)+"]":"[ "+_.call(ep,", ")+" ]"}if("[object Error]"===Y(l=t)&&z(l)){var eg=ee(t,eo);return"cause"in Error.prototype||!("cause"in t)||R.call(t,"cause")?0===eg.length?"["+String(t)+"]":"{ ["+String(t)+"] "+_.call(eg,", ")+" }":"{ ["+String(t)+"] "+_.call(E.call("[cause]: "+eo(t.cause),eg),", ")+" }"}
27if("object"==typeof t&&N){if($&&"function"==typeof t[$]&&M)return M(t,{depth:er-i});else if("symbol"!==N&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!=typeof e)return!1;try{o.call(e);try{u.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var em=[];return a&&a.call(t,function(e,n){em.push(eo(n,t,!0)+" => "+eo(e,t))}),Q("Map",o.call(t),em,ei)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);try{o.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ey=[];return c&&c.call(t,function(e){ey.push(eo(e,t))}),Q("Set",u.call(t),ey,ei)}if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Z("WeakMap");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Z("WeakSet");if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{return h.call(e),!0}catch(e){}return!1}(t))return Z("WeakRef");if("[object Number]"===Y(g=t)&&z(g))return X(eo(Number(t)));if(function(e){if(!e||"object"!=typeof e||!T)return!1;try{return T.call(e),!0}catch(e){}return!1}(t))return X(eo(T.call(t)));if("[object Boolean]"===Y(w=t)&&z(w))return X(p.call(t));if("[object String]"===Y(k=t)&&z(k))return X(eo(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==n.g&&t===n.g)return"{ [object globalThis] }";if(!("[object Date]"===Y(A=t)&&z(A))&&!q(t)){var ev=ee(t,eo),eb=I?I(t)===Object.prototype:t instanceof Object||t.constructor===Object,ew=t instanceof Object?"":"null prototype",ex=!eb&&D&&Object(t)===t&&D in t?v.call(Y(t),8,-1):ew?"Object":"",ek=(eb||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(ex||ew?"["+_.call(E.call([],ex||[],ew||[]),": ")+"] ":"");return 0===ev.length?ek+"{}":ei?ek+"{"+J(ev,ei)+"}":ek+"{ "+_.call(ev,", ")+" }"}return String(t)};var H=Object.prototype.hasOwnProperty||function(e){return e in this};function W(e,t){return H.call(e,t)}function Y(e){return g.call(e)}function G(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return -1}function K(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function X(e){return"Object("+e+")"}function Z(e){return e+" { ? }"}function Q(e,t,n,r){return e+" ("+t+") {"+(r?J(n,r):_.call(n,", "))+"}"}function J(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+_.call(e,","+n)+"\n"+t.prev}function ee(e,t){var n,r=B(e),i=[];if(r){i.length=e.length;for(var o=0;o<e.length;o++)i[o]=W(e,o)?t(e[o],e):""}var a="function"==typeof C?C(e):[];if(j){n={};for(var s=0;s<a.length;s++)n["$"+a[s]]=a[s]}for(var l in e)if(W(e,l)&&(!r||String(Number(l))!==l||!(l<e.length)))if(j&&n["$"+l]instanceof Symbol)continue;else k.call(/[^\w$]/,l)?i.push(t(l,e)+": "+t(e[l],e)):i.push(l+": "+t(e[l],e));if("function"==typeof C)for(var u=0;u<a.length;u++)R.call(e,a[u])&&i.push("["+t(a[u])+"]: "+t(e[a[u]],e));return i}},40646:(e,t,n)=>{var r=n(78583),i=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!i&&i in e}},40944:e=>{"use strict";function t(e){e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source)+"|"+/(?:\d+(?:_\d+)*(?
27:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}e.exports=t,t.displayName="javascript",t.aliases=["js"]}
27,41029:(e,t,n)=>{"use strict";n.d(t,{N:()=>v});var r=n(7531),i=n(82203),o=n(80856),a=n(50191),s=n(80080),l=n(32039),u=n(95890),c=n(52182);class d extends i.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=t.offsetParent,n=(0,u.s)(e)&&e.offsetWidth||0,r=this.props.sizeRef.current;r.height=t.offsetHeight||0,r.width=t.offsetWidth||0,r.top=t.offsetTop,r.left=t.offsetLeft,r.right=n-r.width-r.left}return null}componentDidUpdate(){}render(){return this.props.children}}function f({children:e,isPresent:t,anchorX:n}){let o=(0,i.useId)(),a=(0,i.useRef)(null),s=(0,i.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:l}=(0,i.useContext)(c.Q);return(0,i.useInsertionEffect)(()=>{let{width:e,height:r,top:i,left:u,right:c}=s.current;if(t||!a.current||!e||!r)return;let d="left"===n?`left: ${u}`:`right: ${c}`;a.current.dataset.motionPopId=o;let f=document.createElement("style");return l&&(f.nonce=l),document.head.appendChild(f),f.sheet&&f.sheet.insertRule(`
28          [data-motion-pop-id="${o}"] {
29            position: absolute !important;
30            width: ${e}px !important;
31            height: ${r}px !important;
32            ${d}px !important;
33            top: ${i}px !important;
34          }
35        `),()=>{document.head.contains(f)&&document.head.removeChild(f)}},[t]),(0,r.jsx)(d,{isPresent:t,childRef:a,sizeRef:s,children:i.cloneElement(e,{ref:a})})}let h=({children:e,initial:t,isPresent:n,onExitComplete:o,custom:s,presenceAffectsLayout:u,mode:c,anchorX:d})=>{let h=(0,a.M)(p),g=(0,i.useId)(),m=!0,y=(0,i.useMemo)(()=>(m=!1,{id:g,initial:t,isPresent:n,custom:s,onExitComplete:e=>{for(let t of(h.set(e,!0),h.values()))if(!t)return;o&&o()},register:e=>(h.set(e,!1),()=>h.delete(e))}),[n,h,o]);return u&&m&&(y={...y}),(0,i.useMemo)(()=>{h.forEach((e,t)=>h.set(t,!1))},[n]),i.useEffect(()=>{n||h.size||!o||o()},[n]),"popLayout"===c&&(e=(0,r.jsx)(f,{isPresent:n,anchorX:d,children:e})),(0,r.jsx)(l.t.Provider,{value:y,children:e})};function p(){return new Map}var g=n(94912);let m=e=>e.key||"";function y(e){let t=[];return i.Children.forEach(e,e=>{(0,i.isValidElement)(e)&&t.push(e)}),t}let v=({children:e,custom:t,initial:n=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:c="sync",propagate:d=!1,anchorX:f="left"})=>{let[p,v]=(0,g.xQ)(d),b=(0,i.useMemo)(()=>y(e),[e]),w=d&&!p?[]:b.map(m),x=(0,i.useRef)(!0),k=(0,i.useRef)(b),E=(0,a.M)(()=>new Map),[_,S]=(0,i.useState)(b),[A,T]=(0,i.useState)(b);(0,s.E)(()=>{x.current=!1,k.current=b;for(let e=0;e<A.length;e++){let t=m(A[e]);w.includes(t)?E.delete(t):!0!==E.get(t)&&E.set(t,!1)}},[A,w.length,w.join("-")]);let C=[];if(b!==_){let e=[...b];for(let t=0;t<A.length;t++){let n=A[t],r=m(n);w.includes(r)||(e.splice(t,0,n),C.push(n))}return"wait"===c&&C.length&&(e=C),T(y(e)),S(b),null}let{forceRender:O}=(0,i.useContext)(o.L);return(0,r.jsx)(r.Fragment,{children:A.map(e=>{let i=m(e),o=(!d||!!p)&&(b===A||w.includes(i));return(0,r.jsx)(h,{isPresent:o,initial:(!x.current||!!n)&&void 0,custom:t,presenceAffectsLayout:u,mode:c,onExitComplete:o?void 0:()=>{if(!E.has(i))return;E.set(i,!0);let e=!0;E.forEach(t=>{t||(e=!1)}),e&&(O?.(),T(k.current),d&&v?.(),l&&l())},anchorX:f,children:e},i)})})}},41207:(e,t,n)=>{var r=n(83968),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,a,s){var l=1&n,u=r(e),c=u.length;if(c!=r(t).length&&!l)return!1;for(var d=c;d--;){var f=u[d];if(!(l?f in t:i.call(t,f)))return!1}var h=s.get(e),p=s.get(t);if(h&&p)return h==t&&p==e;var g=!0;s.set(e,t),s.set(t,e);for(var m=l;++d<c;){var y=e[f=u[d]],v=t[f];if(o)var b=l?o(v,y,f,t,e,s):o(y,v,f,e,t,s);if(!(void 0===b?y===v||a(y,v,n,o,s):b)){g=!1;break}m||(m="constructor"==f)}if(g&&!m){var w=e.constructor,x=t.constructor;w!=x&&"constructor"in e&&"constructor"in t&&!("function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x)&&(g=!1)}return s.delete(e),s.delete(t),g}},41594:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},41655:(e,t,n)=>{"use strict";function r(e){return TypeError("You provided "+(null!==e&&"object"==typeof e?"an invali
35d object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}n.d(t,{L:()=>r})},42249:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=o(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=o(t,n));return t}(n)))}return e}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(n=(function(){return i}).apply(t,[]))||(e.exports=n)}()},42767:(e,t,n)=>{"use strict";var r=n(44316).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(64976));t.default={ordinalNumber:(0,r(n(74820)).default)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,i.default)({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:(0,i.default)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,i.default)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,i.default)({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,i.default)({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},e.exports=t.default},42869:(e,t,n)=>{"use strict";let r=n(52458),i=n(33368),o=n(80726),a=n(28065),s=n(74412),l=n(33129),u=n(26242),c=n(36751),d=n(58098),f=n(3786),h=n(59142),p=n(39473),g=n(80207),m=n(32112),y=n(63944),v=n(33655),b=n(56685),w=n(4701),x=n(1045),k=n(27842),E=n(16557),_=n(57191),S=n(38859),A=n(99681),T=n(63208),C=n(48835),O=n(46276),j=n(93342),D=n(74907),R=n(50134),I=n(71819),P=n(57396),M=n(62606),N=n(32196),$=n(96524),L=n(5525),F=n(98753),U=n(76008),z=n(12740);e.exports={parse:s,valid:l,clean:u,inc:c,diff:d,major:f,minor:h,patch:p,prerelease:g,compare:m,rcompare:y,compareLoose:v,compareBuild:b,sort:w,rsort:x,gt:k,lt:E,eq:_,neq:S,gte:A,lte:T,cmp:C,coerce:O,Comparator:j,Range:D,satisfies:R,toComparators:I,maxSatisfying:P,minSatisfying:M,minVersion:N,validRange:$,outside:L,gtr:F,ltr:U,intersects:z,simplifyRange:n(76153),subset:n(30572),SemVer:o,re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,RELEASE_TYPES:i.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}},42908:(e,t,n)=>{var r=n(19032),i=n(33171),o=n(96960),a=n(63132),s=n(54229),l=n(99912),u=n(9638),c=n(29386),d=n(6117),f=n(38333),h=n(63114),p=/\b__p \+= '';/g,g=/\b(__p \+=) '' \+/g,m=/(__e\(.*?\)|\b__t\)) \+\n'';/g,y=/[()=,{}\[\]\/\s]/,v=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,b=/($^)/,w=/['\n\r\u2028\u2029\\]/g,x=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var k=f.imports._.templateSettings||f;n&&u(e,t,n)&&(t=void 0),e=h(e),t=r({},t,k,a);var E,_,S=r({},t.imports,k.imports,a),A=c(S),T=o(S,A),C=0,O=t.interpolate||b,j="__p += '",D=RegExp((t.escape||b).source+"|"+O.source+"|"+(O===d?v:b).source+"|"+(t.evaluate||b).source+"|$","g"),R=x.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+"\n":"";e.replace(D,function(t,n,r,i,o,a){return r||(r=i),j+=e.slice(C,a).replace(w,s),n&&(E=!0,j+="' +\n__e("+n+") +\n'"),o&&(_=!0,j+="';\n"+o+";\n__p += '"),r&&(j+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),C=a+t.length,t}),j+="';\n";var I=x.call(t,"variable")&&t.variable;if(I){if(y.test(I))throw Error("Invalid `variable` option passed into `_.template`")}else j="with (obj) {\n"+j+"\n}\n";j=(_?j.replace(p,""):j).replace(g,"$1").replace(m,"$1;"),j="function("+(I||"obj")+") {\n"+(I?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(E?", __e = _.escape":"")+(_?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";
35\n")+j+"return __p\n}";var P=i(function(){return Function(A,R+"return "+j).apply(void 0,T)});if(P.source=j,l(P))throw P;return P}},43048:(e,t,n)=>{"use strict";n.d(t,{E:()=>i,b:()=>o});var r=n(79181),i=new(n(81350)).q(r.R),o=i},43242:(e,t,n)=>{"use strict";n.d(t,{I:()=>a});var r=n(58555),i=n(79446),o=Array.isArray;function a(e){return(0,i.T)(function(t){return o(t)?e.apply(void 0,(0,r.fX)([],(0,r.zs)(t))):e(t)})}},43498:(e,t,n)=>{"use strict";n.d(t,{$n:()=>m,AM:()=>j,Dr:()=>O,IU:()=>b,e7:()=>f,iB:()=>I,lG:()=>y,m_:()=>A,oz:()=>D,qW:()=>w,tH:()=>v,vE:()=>R});var r=n(7531),i=n(64732),o=n(82011),a=n(82203),s=n(7813),l=n(17884),u=n(29844),c=n(49496),d=n(47733);function f({children:e,condition:t,wrapper:n}){return t?n(e):e}let h={space:3,padding:3},p={space:2,padding:2},g=c.I4.span`
36  display: inline-flex;
37`,m=(0,a.forwardRef)(function(e,t){let n,o,a,s,u,c,d,m,y,v=(0,l.c)(20);v[0]!==e?({size:a,mode:s,paddingY:n,tone:u,tooltipProps:c,...o}=e,v[0]=e,v[1]=n,v[2]=o,v[3]=a,v[4]=s,v[5]=u,v[6]=c):(n=v[1],o=v[2],a=v[3],s=v[4],u=v[5],c=v[6]);let b=void 0===a?"default":a,w=void 0===s?"default":s,x=void 0===u?"default":u;v[7]!==c?(d=e=>(0,r.jsx)(A,{content:c?.content,portal:!0,...c,children:(0,r.jsx)(g,{children:e})}),v[7]=c,v[8]=d):d=v[8];let k=d,E="default"===b?p:h,_=!!c;return v[9]!==w||v[10]!==n||v[11]!==t||v[12]!==o||v[13]!==E||v[14]!==x?(m=(0,r.jsx)(i.$n,{...o,...E,paddingY:n,ref:t,mode:w,tone:x}),v[9]=w,v[10]=n,v[11]=t,v[12]=o,v[13]=E,v[14]=x,v[15]=m):m=v[15],v[16]!==k||v[17]!==_||v[18]!==m?(y=(0,r.jsx)(f,{condition:_,wrapper:k,children:m}),v[16]=k,v[17]=_,v[18]=m,v[19]=y):y=v[19],y}),y=(0,a.forwardRef)(function(e,t){let n,a,s,u,c,f,h,p,g=(0,l.c)(19);g[0]!==e?({bodyHeight:n,children:a,footer:s,padding:c,...u}=e,g[0]=e,g[1]=n,g[2]=a,g[3]=s,g[4]=u,g[5]=c):(n=g[1],a=g[2],s=g[3],u=g[4],
37c=g[5]);let m=void 0===c||c,{t:y}=(0,d.Bd)();g[6]!==s||g[7]!==u||g[8]!==y?(f=(s?.confirmButton||s?.cancelButton)&&(0,r.jsxs)(i.so,{width:"full",gap:3,justify:"flex-end",padding:3,align:"center",children:[s?.description&&(0,r.jsx)(i.az,{flex:1,paddingLeft:1,children:(0,r.jsx)(i.EY,{size:1,muted:!0,children:s.description})}),u.onClose&&(0,r.jsx)(i.$n,{mode:"bleed",padding:2,text:y("common.dialog.cancel-button.text"),tone:"default",onClick:u.onClose,"data-testid":"cancel-button",...s.cancelButton}),s.confirmButton&&(0,r.jsx)(i.$n,{mode:"default",padding:2,text:y("common.dialog.confirm-button.text"),tone:"critical","data-testid":"confirm-button",...s.confirmButton})]}),g[6]=s,g[7]=u,g[8]=y,g[9]=f):f=g[9];let v=4*!!m;return g[10]!==n||g[11]!==a||g[12]!==v?(h=(0,r.jsx)(i.az,{height:n,padding:v,children:a}),g[10]=n,g[11]=a,g[12]=v,g[13]=h):h=g[13],g[14]!==u||g[15]!==t||g[16]!==f||g[17]!==h?(p=(0,r.jsx)(o.lG,{...u,animate:!0,ref:t,footer:f,children:h}),g[14]=u,g[15]=t,g[16]=f,g[17]=h,g[18]=p):p=g[18],p});function v({onCatch:e,...t}){let n=(0,a.useContext)(s.lH),i=(0,a.useCallback)(({error:t,info:r})=>{try{n?.onUncaughtError?.(t,r)}catch(e){e.message=`Encountered an additional error when calling custom "onUncaughtError()": ${e.message}`,console.error(e)}e?.({error:t,info:r})},[n,e]);return(0,r.jsx)(o.tH,{...t,onCatch:i})}let b=(0,a.forwardRef)(function(e,t){let n,i,a=(0,l.c)(6);return a[0]!==e.popover?(n={...e.popover,animate:!0},a[0]=e.popover,a[1]=n):n=a[1],a[2]!==e||a[3]!==t||a[4]!==n?(i=(0,r.jsx)(o.IU,{...e,ref:t,popover:n}),a[2]=e,a[3]=t,a[4]=n,a[5]=i):i=a[5],i});function w(e){let t,n,o,a,s,u,c=(0,l.c)(12);c[0]!==e?({makePlatformAware:n,keys:o,...t}=e,c[0]=e,c[1]=t,c[2]=n,c[3]=o):(t=c[1],n=c[2],o=c[3]);let d=void 0===n||n;c[4]!==o?(a=void 0===o?[]:o,c[4]=o,c[5]=a):a=c[5];let f=a;c[6]!==f||c[7]!==d?(s=d?f.map(k):f,c[6]=f,c[7]=d,c[8]=s):s=c[8];let h=s;return c[9]!==h||c[10]!==t?(u=(0,r.jsx)(i.qW,{...t,keys:h}),c[9]=h,c[10]=t,c[11]=u):u=c[11],u}let x=!(typeof navigator>"u")&&"string"==typeof navigator.platform&&/Mac|iPod|iPhone|iPad/.test(navigator.platform||"");function k(e){let t=e.toLowerCase();return"alt"===t&&x?E(e,"option"):"option"!==t||x?e:E(e,"alt")}function E(e,t){let n=e.length;return t.replace(/./g,(t,r)=>r<n&&e[r]===e[r].toUpperCase()?t.toUpperCase():t)}let _={open:400},S={animate:!0,arrow:!1,boundaryElement:null,delay:_,fallbackPlacements:["bottom-start","bottom-end","top-start","top-end"],placement:"bottom",portal:!0},A=(0,a.forwardRef)(function(e,t){let n,o,a,s,u=(0,l.c)(19);if(u[0]!==e?({content:n,hotkeys:o,...a}=e,u[0]=e,u[1]=n,u[2]=o,u[3]=a):(n=u[1],o=u[2],a=u[3]),"string"==typeof n){let e,s,l,c;return u[4]!==n?(e=n&&(0,r.jsx)(i.az,{flex:1,padding:1,children:(0,r.jsx)(i.EY,{size:1,children:n})}),u[4]=n,u[5]=e):e=u[5],u[6]!==o?(s=o&&(0,r.jsx)(i.az,{flex:"none",children:(0,r.jsx)(w,{keys:o})}),u[6]=o,u[7]=s):s=u[7],u[8]!==e||u[9]!==s?(l=(0,r.jsxs)(i.so,{align:"center",children:[e,s]}),u[8]=e,u[9]=s,u[10]=l):l=u[10],u[11]!==t||u[12]!==a||u[13]!==l?(c=(0,r.jsx)(i.m_,{...S,content:l,padding:1,ref:t,...a}),u[11]=t,u[12]=a,u[13]=l,u[14]=c):c=u[14],c}return u[15]!==n||u[16]!==t||u[17]!==a?(s=(0,r.jsx)(i.m_,{...S,content:n,ref:t,...a}),u[15]=n,u[16]=t,u[17]=a,u[18]=s):s=u[18],s}),T=(0,c.I4)(i.EY)`
38  margin-top: 2px;
39`,C=(0,c.I4)(i.az)`
40  height: 25px;
41  width: 25px;
42  overflow: hidden;
43`,O=(0,a.forwardRef)(function(e,t){let n,o,s,c,d,h,p,g,m,y,v,b,x,k,E,_,S,O,j,D,R,I,P,M=(0,l.c)(49);M[0]!==e?({badgeText:d,children:h,disabled:p,hotkeys:g,icon:n,iconRight:o,preview:v,renderMenuItem:m,text:b,tooltipProps:x,__unstable_subtitle:c,__unstable_space:s,...y}=e,M[0]=e,M[1]=n,M[2]=o,M[3]=s,M[4]=c,M[5]=d,M[6]=h,M[7]=p,M[8]=g,M[9]=m,M[10]=y,M[11]=v,M[12]=b,M[13]=x):(n=M[1],o=M[2],s=M[3],c=M[4],d=M[5],h=M[6],p=M[7],g=M[8],m=M[9],y=M[10],v=M[11],b=M[12],x=M[13]);let N=void 0===v?null:v;M[14]!==s||M[15]!==p||M[16]!==N?(E=N&&(0,r.jsx)(C,{style:{opacity:p?.25:void 0},paddingRight:+!!s,children:(0,r.jsx)(i.so,{align:"center",height:"fill",justify:"center",children:N})}),M[14]=s,M[15]=p,M[16]=N,M[17]=E):E=M[17],M[18]!==n?(_=n&&(0,r.jsx)(i.az,{paddingRight:1,children:(0,r.jsxs)(i.EY,{size:1,children:[(0,a.isValidElement)(n)&&n,(0,u.isValidElementType)(n)&&(0,r.jsx)(n,{})]})}
43),M[18]=n,M[19]=_):_=M[19],M[20]!==c||M[21]!==b?(S=b&&(0,r.jsxs)(i.BJ,{flex:1,space:c?1:2,paddingLeft:+!!c,children:[(0,r.jsx)(i.EY,{size:1,textOverflow:"ellipsis",weight:"medium",children:b}),c&&(0,r.jsx)(T,{size:0,textOverflow:"ellipsis",weight:"medium",muted:!0,children:c})]}),M[20]=c,M[21]=b,M[22]=S):S=M[22],M[23]!==o||M[24]!==d||M[25]!==g?(O=(d||g||o)&&(0,r.jsxs)(i.so,{align:"center",gap:3,marginLeft:3,children:[g&&(0,r.jsx)(w,{keys:g,style:{marginTop:-4,marginBottom:-4}}),d&&(0,r.jsx)(i.Ex,{fontSize:0,style:{marginTop:-4,marginBottom:-4},children:d}),o&&(0,r.jsxs)(i.EY,{size:1,children:[(0,a.isValidElement)(o)&&o,(0,u.isValidElementType)(o)&&(0,r.jsx)(o,{})]})]}),M[23]=o,M[24]=d,M[25]=g,M[26]=O):O=M[26],M[27]!==E||M[28]!==_||M[29]!==S||M[30]!==O?(j=(0,r.jsxs)(i.so,{align:"center",gap:2,children:[E,_,S,O]}),M[27]=E,M[28]=_,M[29]=S,M[30]=O,M[31]=j):j=M[31],k=j,M[32]!==x?(D=e=>(0,r.jsx)(A,{content:x?.content,portal:!0,...x,children:(0,r.jsx)("div",{children:e})}),M[32]=x,M[33]=D):D=M[33];let $=D,L=!!x,F=N?1:3,U=N?1:3;return M[34]!==h||M[35]!==k||M[36]!==m?(R=typeof h>"u"&&"function"==typeof m?m(k):k,M[34]=h,M[35]=k,M[36]=m,M[37]=R):R=M[37],M[38]!==p||M[39]!==t||M[40]!==y||M[41]!==F||M[42]!==U||M[43]!==R?(I=(0,r.jsx)(i.Dr,{disabled:p,paddingLeft:F,paddingRight:3,paddingY:U,ref:t,...y,children:R}),M[38]=p,M[39]=t,M[40]=y,M[41]=F,M[42]=U,M[43]=R,M[44]=I):I=M[44],M[45]!==$||M[46]!==I||M[47]!==L?(P=(0,r.jsx)(f,{condition:L,wrapper:$,children:I}),M[45]=$,M[46]=I,M[47]=L,M[48]=P):P=M[48],P}),j=(0,a.forwardRef)(function(e,t){let n,o=(0,l.c)(3);return o[0]!==e||o[1]!==t?(n=(0,r.jsx)(i.AM,{...e,animate:!0,ref:t}),o[0]=e,o[1]=t,o[2]=n):n=o[2],n}),D=(0,a.forwardRef)(function(e,t){let n,o,a,s=(0,l.c)(7);s[0]!==e?({tone:o,...n}=e,s[0]=e,s[1]=n,s[2]=o):(n=s[1],o=s[2]);let u=void 0===o?"default":o;return s[3]!==n||s[4]!==t||s[5]!==u?(a=(0,r.jsx)(i.oz,{...n,muted:!0,padding:2,ref:t,tone:u}),s[3]=n,s[4]=t,s[5]=u,s[6]=a):a=s[6],a}),R=e=>{let t,n=(0,l.c)(2);return n[0]!==e.children?(t=(0,r.jsx)(i.vE,{delay:_,children:e.children}),n[0]=e.children,n[1]=t):t=n[1],t};function I(e){return"https://docs.sanity.io/help/"+e}}
43,43659:(e,t,n)=>{var r=n(84779),i=n(56957),o=n(74883),a=o&&o.isTypedArray;e.exports=a?i(a):r},43710:(e,t,n)=>{"use strict";n.d(t,{$:()=>o});var r=n(29039),i=n(73315);function o(e,t){var n=(0,i.T)(e)?e:function(){return e},o=function(e){return e.error(n())};return new r.c(t?function(e){return t.schedule(o,0,e)}:o)}},43866:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isProtectedDayOfYearToken=function(e){return -1!==n.indexOf(e)},t.isProtectedWeekYearToken=function(e){return -1!==r.indexOf(e)},t.throwProtectedError=function(e,t,n){if("YYYY"===e)throw RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").
43concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))};var n=["D","DD"],r=["YY","YYYY"]},44125:(e,t,n)=>{var r=n(68160),i=n(57200);e.exports=function(e,t){return r(i(e,t),1)}},44155:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(47528),i=n(71260);function o(e){(0,i.A)(1,arguments);var t=(0,r.A)(e);return t.setHours(23,59,59,999),t}},44258:(e,t,n)=>{var r=n(20536),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},44316:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},44398:(e,t,n)=>{"use strict";n.d(t,{t:()=>o});var r=n(29039),i=n(22303),o=new r.c(i.l)},44663:(e,t,n)=>{var r=n(59741),i=n(11253),o=n(74922),a=n(94598),s=n(56957),l=n(23025),u=Math.min;e.exports=function(e,t,n){for(var c=n?o:i,d=e[0].length,f=e.length,h=f,p=Array(f),g=1/0,m=[];h--;){var y=e[h];h&&t&&(y=a(y,s(t))),g=u(y.length,g),p[h]=!n&&(t||d>=120&&y.length>=120)?new r(h&&y):void 0}y=e[0];var v=-1,b=p[0];e:for(;++v<d&&m.length<g;){var w=y[v],x=t?t(w):w;if(w=n||0!==w?w:0,!(b?l(b,x):c(m,x,n))){for(h=f;--h;){var k=p[h];if(!(k?l(k,x):c(e[h],x,n)))continue e}b&&b.push(x),m.push(w)}}return m}},44749:(e,t,n)=>{var r=n(95973);e.exports=function(e){return r(this,e).has(e)}},44845:(e,t,n)=>{"use strict";n.d(t,{AS:()=>u,aj:()=>c,s5:()=>l});var r=n(22324),i=n(87086),o=n(23791);let a={},s={};function l(e,t){a[e]=a[e]||[],a[e].push(t)}function u(e,t){if(!s[e]){s[e]=!0;try{t()}catch(t){r.T&&i.vF.error(`Error while instrumenting ${e}`,t)}}}function c(e,t){let n=e&&a[e];if(n)for(let a of n)try{a(t)}catch(t){r.T&&i.vF.error(`Error while triggering instrumentation handler.
44Type: ${e}
45Name: ${(0,o.qQ)(a)}
46Error:`,t)}}},44887:(e,t,n)=>{var r=n(23098),i=n(73336),o=n(55396),a=n(63114);e.exports=function(e){return function(t){var n=i(t=a(t))?o(t):void 0,s=n?n[0]:t.charAt(0),l=n?r(n,1).join(""):t.slice(1);return s[e]()+l}}},44901:(e,t,n)=>{"use strict";n.d(t,{AF:()=>function e(t){if(null==t)return!0;let n=typeof t;return Array.isArray(t)?function(t){for(let n=0;n<t.length;n++)if(!e(t[n]))return!1;return!0}(t):"object"===n&&function(t){for(let n in t)if("_type"!==n&&"_key"!==n&&i(t,n)&&!e(t[n]))return!1;return!0}(t)},RN:()=>o,Xp:()=>s,yu:()=>u});var r=n(9745),i=Object.prototype.hasOwnProperty.call.bind(Object.prototype.hasOwnProperty);function o(e){for(let t in e)if("_type"!==t&&"_key"!==t&&i(e,t)&&void 0!==e[t])return!1;return!0}let a=(()=>{let e;return()=>{if(e)return e;e=[];for(let t=0;t<256;++t)e[t]=(t+256).toString(16).slice(1);return e}})();function s(e){let t=a();return(function(e=16){let t=new Uint8Array(e);return(0,r.A)(t),t})(e).reduce((e,n)=>e+t[n],"").slice(0,e)}let l=Object.prototype.toString;function u(e){let t=function(e){switch(l.call(e)){case"[object Function]":return"function";case"[object Date]":return"date";case"[object RegExp]":return"regexp";case"[object Arguments]":return"arguments";case"[object Array]":return"array";case"[object String]":return"string"}if("object"==typeof e&&e&&"number"==typeof e.length)try{if("function"==typeof e.callee)return"arguments"}catch(e){if(e instanceof TypeError)return"arguments"}return null===e?"null":void 0===e?"undefined":e&&1===e.nodeType?"element":e===Object(e)?"object":typeof e}(e);return"object"!==t?t:"_type"in e&&e._type||t}},44967:(e,t,n)=>{var r=n(47782),i=n(97288),o=n(27271),a=n(57127);e.exports=i(function(e){return o(r(e,a))})},45165:(e,t,n)=>{"use strict";function r(e,t){if(null==e)throw TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}n.d(t,{A:()=>r})},45430:(e,t,n)=>{e.exports=n(26943).Uint8Array},45587:(e,t,n)=>{var r=n(86853),i=n(52441),o=n(15809);e.exports=function(e){return r(e,o,i)}},45679:(e,t,n)=>{var r=n(11087);e.exports=function(e){return r(e,4)}},45720:(e,t,n)=>{"use strict";n.d(t,{x:()=>a});var r=n(9751),i=n(16194),o=n(37060);function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,r.K)()((0,o.H)(e,(0,i.lI)(e)))}},45775:(e,t,n)=>{"use strict";var r=n(44316).default;
46Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(1,arguments),(!!(0,i.default)(e)||"number"==typeof e)&&!isNaN(Number((0,o.default)(e)))};var i=r(n(86693)),o=r(n(75628)),a=r(n(29024));e.exports=t.default},45885:(e,t,n)=>{"use strict";function r(e){var t;return!!(t=e)&&("object"==typeof t||"function"==typeof t)&&"string"==typeof e._type}function i({context:e,blocks:t,options:n}){return Array.isArray(t)?t.flatMap(t=>{let r=o({context:e,block:t,options:n});return r?[r]:[]}):[]}function o({context:e,block:t,options:n}){return function({block:e,context:t,options:n}){if(!r(e))return;let i={};for(let t of Object.keys(e))"_type"!==t&&"_key"!==t&&"children"!==t&&"markDefs"!==t&&"style"!==t&&"listItem"!==t&&"level"!==t&&(i[t]=e[t]);if(e._type!==t.schema.block.name)return;let o=n.refreshKeys?t.keyGenerator():"string"==typeof e._key?e._key:t.keyGenerator(),a=Array.isArray(e.markDefs)?e.markDefs:[],s=new Map,l=a.flatMap(e=>{if(!r(e))return[];let i=t.schema.annotations.find(({name:t})=>t===e._type);if(!i||"string"!=typeof e._key)return[];let o=d({object:e,context:{schemaType:i,keyGenerator:t.keyGenerator},options:n});return o?(s.set(e._key,o._key),[o]):[]}),c=(Array.isArray(e.children)?e.children:[]).map(e=>(function({span:e,context:t,markDefKeyMap:n,options:i}){if(!r(e))return;let o={};for(let t of Object.keys(e))"_type"!==t&&"_key"!==t&&"text"!==t&&"marks"!==t&&(o[t]=e[t]);if(e._type!==t.schema.span.name||"span"!==e._type)return;let a=(Array.isArray(e.marks)?e.marks:[]).flatMap(e=>{if("string"!=typeof e)return[];let r=n.get(e);return void 0!==r?[r]:t.schema.decorators.some(t=>t.name===e)?[e]:[]});return{_type:"span",_key:i.refreshKeys?t.keyGenerator():"string"==typeof e._key?e._key:t.keyGenerator(),text:"string"==typeof e.text?e.text:"",marks:a,...i.validateFields?{}:o}})({span:e,context:t,markDefKeyMap:s,options:n})??u({inlineObject:e,context:t,options:n})).filter(e=>void 0!==e),f={_type:t.schema.block.name,_key:o,children:c.length>0?c:[{_key:t.keyGenerator(),_type:t.schema.span.name,text:"",marks:[]}],markDefs:l,...n.validateFields?{}:i};if("string"==typeof e.style&&t.schema.styles.find(t=>t.name===e.style))f.style=e.style;else{let e=t.schema.styles.at(0)?.name;void 0!==e?f.style=e:console.error("Expected default style")}return"string"==typeof e.listItem&&t.schema.lists.find(t=>t.name===e.listItem)&&(f.listItem=e.listItem),"number"==typeof e.level&&(f.level=e.level),f}({block:t,context:e,options:n})??function({blockObject:e,context:t,options:n}){if(!r(e))return;let i=t.schema.blockObjects.find(({name:t})=>t===e._type);if(i)return d({object:e,context:{keyGenerator:t.keyGenerator,schemaType:i},options:n})}({blockObject:t,context:e,options:n})}function a(e,t){return s(e,t)&&void 0!==t.level&&void 0!==t.listItem}function s(e,t){return!(!r(t)||t._type!==e.schema.block.name||!Array.isArray(t.children))}function l(e,t){return!(!r(t)||t._type!==e.schema.span.name||"string"!=typeof t.text)}function u({inlineObject:e,context:t,options:n}){if(!r(e))return;let i=t.schema.inlineObjects.find(({name:t})=>t===e._type);if(i)return d({object:e,context:{keyGenerator:t.keyGenerator,schemaType:i},options:n})}function c({annotation:e,context:t,options:n}){if(!r(e))return;let i=t.schema.annotations.find(({name:t})=>t===e._type);if(i)return d({object:e,context:{keyGenerator:t.keyGenerator,schemaType:i},options:n})}function d({object:e,context:t,options:n}){let{_type:r,_key:i,...o}=e,a=n.validateFields?t.schemaType.fields.reduce((t,n)=>{let r=e[n.name];return void 0!==r&&(t[n.name]=r),t},{}):o;return{_type:t.schemaType.name,_key:n.refreshKeys?t.keyGenerator():"string"==typeof e._key?e._key:t.keyGenerator(),...a}}function f({context:e,blockOffset:t,direction:n}){let r=t.offset,i,o=!1;for(let a of e.value)if(a._key===t.path[0]._key&&s(e,a))for(let s of a.children){if("forward"===n){if(!l(e,s))continue;if(r<=s.text.length){i={path:[...t.path,"children",{_key:s._key}],offset:r};break}r-=s.text.length;continue}if(!l(e,s)){o=!0;continue}if(0===r&&i&&!o){o&&(i={path:[...t.path,"children",{_key:s._key}],offset:0});break}if(r>s.text.length){r-=s.text.length;continue}if(r<=s.text.length&&(i={path:[...t.path,"children",{_key:s._key}],offset:r},0!=(r-=s.text.length)))break}return i}function h({context:e,selectionPoint:t}){let n=0,r=x(t),i=k(t);if(!(!r||!i)){for(let o of e.value)if(o._key===r&&s(e,o)){for(let r of o.children)if(l(e,r)){if(r._key===i)return{path:[{_key:o._key}],offset:n+t.offset};n+=r.text.length}}}}function p({context:e,block:t}
46){return s(e,t.node)?{path:[...t.path,"children",{_key:t.node.children[0]._key}],offset:0}:{path:t.path,offset:0}}function g(e){return e?e.backward?e.anchor:e.focus:null}function m(e){return e?e.backward?e.focus:e.anchor:null}function y(e){return e.children.map(e=>e.text??"").join("")}function v(e){return"object"==typeof e&&null!==e&&"_key"in e}function b(e,t){return t._type===e.schema.span.name}function w({context:e,blocks:t}){let n,r,i=[];if(!e.selection)return i;let o=[],a=m(e.selection),u=g(e.selection),c=x(a),d=k(a),f=x(u),h=k(u);if(!c||!f)return i;for(let i of t){if(!s(e,i)&&i._key===c&&i._key===f){n=i;break}if(i._key===c){if(!s(e,i)){n=i;continue}if(d){for(let t of i.children){if(t._key===d){if(l(e,t)){let e=t._key===h?t.text.slice(a.offset,u.offset):t.text.slice(a.offset);n={...i,children:[{...t,text:e}]}}else n={...i,children:[t]};if(d===h)break;continue}if(n&&s(e,n)&&(h&&t._key===h&&l(e,t)?n.children.push({...t,text:t.text.slice(0,u.offset)}):n.children.push(t),i._key===f&&h&&t._key===h))break}if(c===f)break;continue}if(n=i,c===f)break}if(i._key===f){if(!s(e,i)){r=i;break}if(h){for(let t of(r={...i,children:[]},i.children))if(r&&s(e,r)){if(t._key===h&&l(e,t)){r.children.push({...t,text:t.text.slice(0,u.offset)});break}if(r.children.push(t),h&&t._key===h)break}break}r=i;break}n&&o.push(i)}return[...n?[n]:[],...o,...r?[r]:[]]}function x(e){let t=e.path.at(0);if(v(t))return t._key}function k(e){let t=e.path.at(2);if(v(t))return t._key}n.d(t,{Eg:()=>a,Jo:()=>m,Kk:()=>r,QU:()=>l,RJ:()=>w,SV:()=>i,XE:()=>x,aR:()=>g,bl:()=>b,fr:()=>c,iL:()=>h,lV:()=>u,m4:()=>f,qX:()=>k,rT:()=>o,so:()=>y,u3:()=>p,wE:()=>v,zS:()=>s})},46031:(e,t,n)=>{"use strict";n.d(t,{U:()=>o});var r=n(91558),i=n(17953);function o(e){return void 0===e&&(e=1/0),(0,r.Z)(i.D,e)}},46051:(e,t,n)=>{var r=n(65576),i=n(90648),o=n(6081),a=n(95997),s=n(10557);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},46225:(e,t,n)=>{"use strict";var r=n(44316).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,a.default)(1,arguments);var t=(0,i.default)(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),(0,o.default)(n)};var i=r(n(86396)),o=r(n(86208)),a=r(n(29024));e.exports=t.default},46276:(e,t,n)=>{"use strict";let r=n(80726),i=n(74412),{safeRe:o,t:a}=n(52458);e.exports=(e,t)=>{if(e instanceof r)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let n=null;if((t=t||{}).rtl){let r,i=t.includePrerelease?o[a.COERCERTLFULL]:o[a.COERCERTL];for(;(r=i.exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),i.lastIndex=r.index+r[1].length+r[2].length;i.lastIndex=-1}else n=e.match(t.includePrerelease?o[a.COERCEFULL]:o[a.COERCE]);if(null===n)return null;let s=n[2],l=n[3]||"0",u=n[4]||"0",c=t.includePrerelease&&n[5]?`-${n[5]}`:"",d=t.includePrerelease&&n[6]?`+${n[6]}`:"";return i(`${s}.${l}.${u}${c}${d}`,t)}},46316:(e,t,n)=>{"use strict";n.d(t,{T:()=>T});var r=n(88093),i=n(51438),o=n(18598),a=n(67913),s=n(87086),l=n(96694),u=n(23791),c=n(87876),d=n(27313),f=n(53056),h=n(60435),p=n(13048),g=n(31179),m=n(61103),y=n(50593),v=n(15572);let b=(0,c._C)(()=>({name:"BrowserSession",setupOnce(){if(void 0===g.jf.document){p.T&&s.vF.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}(0,r.J0)({ignoreDuration:!0}),(0,r.J5)(),(0,v._)(({from:e,to:t})=>{void 0!==e&&e!==t&&((0,r.J0)({ignoreDuration:!0}),(0,r.J5)())})}}));var w=n(46562),x=n(74061),k=n(47191),E=n(1435),_=n(57805),S=n(50513),A=n(82203);function T(e){let t={...e};return(0,S.K)(t,"react"),(0,r.o)("react",{version:A.version}),function(e={}){let t=function(e={}){let t={defaultIntegrations:function(e){let t=[(0,i.D)(),(0,o.Z)(),(0,y.G)(),(0,m.F)(),(0,w.L)(),(0,k.p)(),(0,a.s)(),(0,x.M)()];return!1!==e.autoSessionTracking&&t.push(b()),t}(e),release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:g.jf.SENTRY_RELEASE&&g.jf.SENTRY_RELEASE.id?g.jf.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return null==e.defaultIntegrations&&delete e.defaultIntegrations,{...t,...e}}(e);if(!t.skipBrowserExtensionCheck&&function(){let e=void 0!==g.jf.window&&g.jf;if(!e)return!1;let t=e.chrome?"chrome":"browser",n=e[t],r=n&&n.runtime&&n.runtime.id,i=g.jf.location&&g.jf.location.href||"",o=!!r&&g.jf===g.jf.top&&["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"].some(e=>i.startsWith(`${e}//`)),a=void 0!==e.nw;return!!r&&!o&&!a}())return void(0,s.pq)(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")});p.T&&!(0,l.vm)()&&s.vF.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill.");let n={...t,stackParser:(0,u.vk)(t.stackParser||E.lG),integrations:(0,c.mH)(t),transport:t.transport||_._};var r,v=h.y;!0===n.debug&&(f.T?s.vF.enable():(0,s.pq)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),(0,d.o5)().update(n.initialScope);let S=new v(n);return r=S,(0,d.o5)().setClient(r),S.init(),S}(t)}},46422:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(75776),i=n(5605),o=n(71260),a=n(17304);function s(e,t,n){(0,o.A)(2,arguments);var s=(0,i.A)(e,t)/r.s0;return(0,a.u)(null==n?void 0:n.roundingMethod)(s)}},46459:(e,t,n)=>{var r=n(91233),i=n(29386);e.exports=function(e,t){return e&&r(t,i(t),e)}}
46,46562:(e,t,n)=>{"use strict";n.d(t,{L:()=>b});var r=n(87876),i=n(6541),o=n(44845);let a=null;function s(){a=i.O.onerror,i.O.onerror=function(e,t,n,r,i){return(0,o.aj)("error",{column:r,error:i,line:n,msg:e,url:t}),!!a&&a.apply(this,arguments)},i.O.onerror.__SENTRY_INSTRUMENTED__=!0}var l=n(27313),u=n(88093);let c=null;function d(){c=i.O.onunhandledrejection,i.O.onunhandledrejection=function(e){return(0,o.aj)("unhandledrejection",e),!c||c.apply(this,arguments)},i.O.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var f=n(29378),h=n(95746),p=n(23791),g=n(87086),m=n(13048),y=n(83333),v=n(31179);let b=(0,r._C)((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(function(e){let t="error";(0,o.s5)(t,t=>{let{stackParser:n,attachStacktrace:r}=x();if((0,l.KU)()!==e||(0,v.jN)())return;let{msg:i,url:o,line:a,column:s,error:c}=t,d=function(e,t,n,r){let i=e.exception=e.exception||{},o=i.values=i.values||[],a=o[0]=o[0]||{},s=a.stacktrace=a.stacktrace||{},l=s.frames=s.frames||[],u=(0,f.Kg)(t)&&t.length>0?t:(0,h.$N)();return 0===l.length&&l.push({colno:r,filename:u,function:p.yF,in_app:!0,lineno:n}),e}((0,y.H7)(n,c||i,void 0,r,!1),o,a,s);d.level="error",(0,u.r)(d,{originalException:c,mechanism:{handled:!1,type:"onerror"}})}),(0,o.AS)(t,s)}(e),w("onerror")),t.onunhandledrejection&&(function(e){let t="unhandledrejection";(0,o.s5)(t,t=>{var n;let{stackParser:r,attachStacktrace:i}=x();if((0,l.KU)()!==e||(0,v.jN)())return;let o=function(e){if((0,f.sO)(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(e){}return e}(t),a=(0,f.sO)(o)?(n=o,{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(n)}`}]}}):(0,y.H7)(r,o,void 0,i,!0);a.level="error",(0,u.r)(a,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})}),(0,o.AS)(t,d)}(e),w("onunhandledrejection"))}}});function w(e){m.T&&g.vF.log(`Global Handler attached: ${e}`)}function x(){let e=(0,l.KU)();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}},46623:(e,t,n)=>{"use strict";n.d(t,{s:()=>i});var r=n(7350);function i(e,t){var n="object"==typeof t;return new Promise(function(i,o){var a,s=!1;e.subscribe({next:function(e){a=e,s=!0},error:o,complete:function(){s?i(a):n?i(t.defaultValue):o(new r.G)}})})}},46638:(e,t,n)=>{"use strict";n.d(t,{P:()=>h,z:()=>f});var r=n(29039),i=n(39753),o=n(37060),a=n(17953),s=n(43242),l=n(16194),u=n(28183),c=n(94126),d=n(97783);function f(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=(0,l.lI)(e),c=(0,l.ms)(e),d=(0,i.D)(e),f=d.args,p=d.keys;if(0===f.length)return(0,o.H)([],n);var g=new r.c(h(f,n,p?function(e){return(0,u.e)(p,e)}:a.D));return c?g.pipe((0,s.I)(c)):g}function h(e,t,n){return void 0===n&&(n=a.D),function(r){p(t,function(){for(var i=e.length,a=Array(i),s=i,l=i,u=function(i){p(t,function(){var u=(0,o.H)(e[i],t),d=!1;u.subscribe((0,c._)(r,function(e){a[i]=e,!d&&(d=!0,l--),l||r.next(n(a.slice()))},function(){--s||r.complete()}))},r)},d=0;d<i;d++)u(d)},r)}}function p(e,t,n){e?(0,d.N)(n,e,t):t()}},46648:(e,t,n)=>{"use strict";n.d(t,{Un:()=>x,LK:()=>k});var r=n(30673),i=n(82203),o=n(56703),a=n(18826),s=n(7774),l=n(21803),u=n(87489),c=n(12189),d=n(45885),f=n(12346),h=n(78436);let p=e=>{if(!e.context.selection)return"";let t=(0,d.Jo)(e.context.selection),n=(0,h.gU)({context:{...e.context,selection:{anchor:t,focus:t}}});if(!n)return"";let r=(0,d.u3)({context:e.context,block:n});return(0,h.u0)({context:{...e.context,selection:{anchor:r,focus:t}}})};var g=n(58103),m=n(4368),y=n(7531);function v(e,t){return(0,d.Kk)(t)&&t._type===e.schema.block.name}function b(e){let t,n=(0,r.c)(4),i=(0,o.h)();return n[0]!==e.decorator||n[1]!==e.pair||n[2]!==i?(t={input:{editor:i,decorator:e.decorator,pair:e.pair}},n[0]=e.decorator,n[1]=e.pair,n[2]=i,n[3]=t):t=n[3],(0,a.qf)(w,t),null}let w=(0,l.mj)({types:{context:{},input:{},events:{}},actors:{"emphasis listener":(0,u.SP)(({sendBack:e,input:t})=>t.editor.registerBehavior({behavior:function(e){e.pair.amount<1&&console.warn("The amount of characters in the pair should be greater than 0");let t=function(e,t){let n=`(?<!\\${e})`,r=`\\${e}`.repeat(Math.max(t,1)),i=`([^${e}\\n]+?)`,o=`\\${e}`.repeat(Math.max(t,1)),a=`(?!\\${e})`;return`${n}${r}(?!\\s)${i}(?<!\\s)${o}${a}`}(e.pair.char,e.pair.amount),n=RegExp(`(${t})$`);return(0,g.Ke)({on:"insert.text",guard:({snapshot:t,event:r})=>{if(e.pair.amount<1)return!1;let i=e.decorator({schema:t.context.schema});if(void 0===i)return!1;let o=(0,h.hH)(t),a=(0,h.Jo)(t),s=a?(0,d.iL)({context:{schema:t.context.schema,value:t.context.value},selectionPoint:a}):void 0;if(!o||!s)return!1;let l=`${p(t)}${r.text}`,u=l.match(n)?.at(0);if(void 0===u)return!1;let c={anchor:{path:o.path,offset:l.length-u.length},focus:{path:o.path,offset:l.length-u.length+e.pair.char.length*e.pair.amount}},g={anchor:{path:o.path,offset:s.offset+r.text.length-e.pair.char.length*e.pair.amount},focus:{path:o.path,offset:s.offset+r.text.length}};if(c.focus.offset-c.anchor.offset>1){let e=(0,f.lv)({context:t.context,offsets:c}
46),n=(0,h.Uv)({context:{...t.context,selection:e?{anchor:e.focus,focus:e.focus}:null}}),r=n?(0,f.GR)({context:{schema:t.context.schema,value:t.context.value},selectionPoint:{path:n.path,offset:0}}):void 0;if(r&&r.offset>c.anchor.offset&&r.offset<c.focus.offset)return!1}if(g.focus.offset-g.anchor.offset>1){let e=(0,h.Uv)(t),n=e?(0,f.GR)({context:{schema:t.context.schema,value:t.context.value},selectionPoint:{path:e.path,offset:0}}):void 0;if(n&&n.offset>g.anchor.offset&&n.offset<g.focus.offset)return!1}return{prefixOffsets:c,suffixOffsets:g,decorator:i}},actions:[({event:e})=>[(0,g.g7)(e)],(t,{prefixOffsets:n,suffixOffsets:r,decorator:i})=>[(0,g.g7)({type:"decorator.add",decorator:i,at:{anchor:n.focus,focus:r.anchor}}),(0,g.g7)({type:"delete.text",at:r}),(0,g.g7)({type:"delete.text",at:n}),(0,g.g7)({type:"decorator.remove",decorator:i}),(0,g.QZ)(()=>{e.onDecorate({...r.anchor,offset:r.anchor.offset-(n.focus.offset-n.anchor.offset)})})]]})}({decorator:t.decorator,pair:t.pair,onDecorate:t=>{e({type:"emphasis.add",blockOffset:t})}})})),"delete.backward listener":(0,u.SP)(({sendBack:e,input:t})=>t.editor.registerBehavior({behavior:(0,g.Ke)({on:"delete.backward",actions:[()=>[(0,g.g7)({type:"history.undo"}),(0,g.QZ)(()=>{e({type:"delete.backward"})})]]})})),"selection listener":(0,u.SP)(({sendBack:e,input:t})=>t.editor.registerBehavior({behavior:(0,g.Ke)({on:"select",guard:({snapshot:e,event:t})=>{if(!t.at)return{blockOffsets:void 0};let n=(0,d.iL)({context:e.context,selectionPoint:t.at.anchor}),r=(0,d.iL)({context:e.context,selectionPoint:t.at.focus});return n&&r?{blockOffsets:{anchor:n,focus:r}}:{blockOffsets:void 0}},actions:[({event:t},{blockOffsets:n})=>[{type:"effect",effect:()=>{e({type:"selection",blockOffsets:n})}},(0,g.sY)(t)]]})}))}}).createMachine({id:"decorator pair",context:({input:e})=>({decorator:e.decorator,editor:e.editor,pair:e.pair}),initial:"idle",states:{idle:{invoke:[{src:"emphasis listener",input:({context:e})=>({decorator:e.decorator,editor:e.editor,pair:e.pair})}],on:{"emphasis.add":{target:"emphasis added",actions:(0,c.a)({offsetAfterEmphasis:({event:e})=>e.blockOffset})}}},"emphasis added":{exit:[(0,c.a)({offsetAfterEmphasis:void 0})],invoke:[{src:"selection listener",input:({context:e})=>({editor:e.editor})},{src:"delete.backward listener",input:({context:e})=>({editor:e.editor})}],on:{selection:{target:"idle",guard:({context:e,event:t})=>!s({anchor:e.offsetAfterEmphasis,focus:e.offsetAfterEmphasis},t.blockOffsets)},"delete.backward":{target:"idle"}}}}});function x(e){let t,n,a=(0,r.c)(5),s=(0,o.h)(),l=(0,m.J)(e.on);return a[0]!==s||a[1]!==l?(t=()=>{let e=s.on("*",l);return()=>{e.unsubscribe()}},a[0]=s,a[1]=l,a[2]=t):t=a[2],a[3]!==s?(n=[s],a[3]=s,a[4]=n):n=a[4],(0,i.useEffect)(t,n),null}function k(e){let t,n,a,s,l,u,c,f=(0,r.c)(17),m=(0,o.h)();return f[0]!==m||f[1]!==e.config?(t=()=>{let t=(function(e){let t=(0,g.Ke)({on:"insert.text",guard:({snapshot:t,event:n})=>{if(" "!==n.text)return!1;let r=(0,h.WV)(t),i=(0,h.hH)(t),o=(0,h.d2)(t);if(!r||!i||!o)return!1;let a=(0,h.Uv)(t),s=(0,d.iL)({context:t.context,selectionPoint:{path:[{_key:i.node._key},"children",{_key:o.node._key}],offset:t.context.selection?.focus.offset??0}});if(a||!s)return!1;let l=(0,d.so)(i.node),u=1===s.offset,c=/^>/.test(l),f=e.blockquoteStyle?.(t.context);return!!u&&!!c&&void 0!==f&&{focusTextBlock:i,style:f}},actions:[()=>[(0,g.g7)({type:"insert.text",text:" "})],(e,{focusTextBlock:t,style:n})=>[(0,g.g7)({type:"block.unset",props:["listItem","level"],at:t.path}),(0,g.g7)({type:"block.set",props:{style:n},at:t.path}),(0,g.g7)({type:"delete.text",at:{anchor:{path:t.path,offset:0},focus:{path:t.path,offset:2}}})]]}),n=(0,g.Ke)({on:"insert.text",guard:({snapshot:t,event:n})=>{let r="-"===n.text?"-":"*"===n.text?"*":"_"===n.text?"_":void 0;if(void 0===r)return!1;let i=e.horizontalRuleObject?.(t.context),o=(0,h.hH)(t),a=(0,h.WV)(t);if(!i||!o||!a)return!1;let s=(0,h.Uv)(t),l=p(t),u={anchor:{path:o.path,offset:0},focus:{path:o.path,offset:3}};return!s&&l===`${r}${r}`&&{hrObject:i,focusBlock:o,hrCharacter:r,hrBlockOffsets:u}},actions:[(e,{hrCharacter:t})=>[(0,g.g7)({type:"insert.text",text:t})],(e,{hrObject:t,hrBlockOffsets:n})=>[(0,g.g7)({type:"insert.block",placement:"before",block:{_type:t.name,...t.value??{}}}),(0,g.g7)({type:"delete.text",at:n})]]}),r=(0,g.Ke)({on:"clipboard.paste",guard:({snapshot:t,event:n})=>{let r=n.originEvent.dataTransfer.getData("text/plain"),i=r.match(/^(---)$|(___)$|(\*\*\*)$/)?.[0],o=e.horizontalRuleObject?.(t.context),a=(0,h.gU)(t);return!!i&&!!o&&!!a&&{hrCharacters:i,hrObject:o,focusBlock:a}},actions:[(e,{hrCharacters:t})=>[(0,g.g7)({type:"insert.text",text:t})],({snapshot:e},{hrObject:t,focusBlock:n})=>(0,d.zS)(e.context,n.node)?[(0,g.g7)({type:"insert.block",block:{_type:e.context.schema.block.name,children:n.node.children},placement:"after"}),(0,g.g7)({type:"insert.block",block:{_type:t.name,...t.value??{}},placement:"after"}),(0,g.g7)({type:"delete.block",at:n.path})]:[(0,g.g7)({type:"insert.block",block:{_type:t.name,...t.value??{}},placement:"after"})]]}),i=(0,g.Ke)({on:"insert.text",guard:({snapshot:t,event:n})=>{if(" "!==n.text)return!1;let r=(0,h.WV)(t),i=(0,h.hH)(t),o=(0,h.d2)(t);if(!r||!i||!o)return!1;let a=(0,d.iL)({context:t.context,selectionPoint:{path:[{_key:i.node._key},"children",{_key:o.node._key}],offset:t.context.selection?.focus.offset??0}});if(!a)return!1;let s=(0,h.Uv)(t),l=(0,d.so)(i.node),u=/^#+/.exec(l),c=u?u[0].length:void 0,f=a.offset===c;if(s||!f)return!1;let p=void 0!==c?e.headingStyle?.({schema:t.context.schema,level:c}):void 0;return void 0!==c&&void 0!==p&&{focusTextBlock:i,style:p,level:c}},actions:[({event:e})=>[(0,g.g7)(e)],(e,{focusTextBlock:t,style:n,level:r})=>[(0,g.g7)({type:"block.unset",props:["listItem","level"],at:t.path}),(0,g.g7)({type:"block.set",props:{style:n},at:t.path}),(0,g.g7)({type:"delete.text",at:{anchor:{path:t.path,offset:0},focus:{path:t.path,offset:r+1}}})]]});return[t,i,n,r,(0,g.Ke)({on:"delete.backward",guard:({snapshot:t})=>{let n=(0,h.WV)(t),r=(0,h.hH)(t),i=(0,h.d2)(t);if(!n||!r||!i)return!1;let o=r.node.children[0]._key===i.node._key&&t.context.selection?.focus.offset===0,a=e.defaultStyle?.(t.context);return!!o&&!!a&&r.node.style!==a&&{defaultStyle:a,focusTextBlock:r}},actions:[(e,{defaultStyle:t,focusTextBlock:n})=>[(0,g.g7)({type:"block.set",props:{style:t},at:n.path})]]}),(0,g.Ke)({on:"insert.text",guard:({snapshot:t,event:n})=>{if(" "!==n.text)return!1;let r=(0,h.WV)(t),i=(0,h.hH)(t),o=(0,h.d2)(t);if(!r||!i||!o)return!1;let a=(0,h.Uv)(t),s=(0,d.iL)({context:t.context,selectionPoint:{path:[{_key:i.node._key},"children",{_key:o.node._key}],offset:t.context.selection?.focus.offset??0}});if(a||!s)return!1;let l=(0,d.so)(i.node),u=e.defaultStyle?.(t.context),c=/^(-|\*)/.test(l),f=e.unorderedListStyle?.(t.context),p=1===s.offset;if(u&&p&&c&&void 0!==f)return{focusTextBlock:i,listItem:f,listItemLength:1,style:u};let g=/^1\./.test(l),m=e.orderedListStyle?.(t.context),y=2===s.offset;return!!u&&!!y&&!!g&&void 0!==m&&{focusTextBlock:i,listItem:m,listItemLength:2,
46style:u}},actions:[({event:e})=>[(0,g.g7)(e)],(e,{focusTextBlock:t,style:n,listItem:r,listItemLength:i})=>[(0,g.g7)({type:"block.set",props:{listItem:r,level:1,style:n},at:t.path}),(0,g.g7)({type:"delete.text",at:{anchor:{path:t.path,offset:0},focus:{path:t.path,offset:i+1}}})]]})]})(e.config).map(e=>m.registerBehavior({behavior:e}));return()=>{for(let e of t)e()}},n=[m,e.config],f[0]=m,f[1]=e.config,f[2]=t,f[3]=n):(t=f[2],n=f[3]),(0,i.useEffect)(t,n),f[4]!==e.config.boldDecorator?(a=e.config.boldDecorator?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(b,{decorator:e.config.boldDecorator,pair:{char:"*",amount:2}}),(0,y.jsx)(b,{decorator:e.config.boldDecorator,pair:{char:"_",amount:2}})]}):null,f[4]=e.config.boldDecorator,f[5]=a):a=f[5],f[6]!==e.config.codeDecorator?(s=e.config.codeDecorator?(0,y.jsx)(b,{decorator:e.config.codeDecorator,pair:{char:"`",amount:1}}):null,f[6]=e.config.codeDecorator,f[7]=s):s=f[7],f[8]!==e.config.italicDecorator?(l=e.config.italicDecorator?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(b,{decorator:e.config.italicDecorator,pair:{char:"*",amount:1}}),(0,y.jsx)(b,{decorator:e.config.italicDecorator,pair:{char:"_",amount:1}})]}):null,f[8]=e.config.italicDecorator,f[9]=l):l=f[9],f[10]!==e.config.strikeThroughDecorator?(u=e.config.strikeThroughDecorator?(0,y.jsx)(b,{decorator:e.config.strikeThroughDecorator,pair:{char:"~",amount:2}}):null,f[10]=e.config.strikeThroughDecorator,f[11]=u):u=f[11],f[12]!==a||f[13]!==s||f[14]!==l||f[15]!==u?(c=(0,y.jsxs)(y.Fragment,{children:[a,s,l,u]}),f[12]=a,f[13]=s,f[14]=l,f[15]=u,f[16]=c):c=f[16],c}i.forwardRef((e,t)=>{let n,a,s=(0,r.c)(2),l=(0,o.h)(),u=i.useRef(l);return s[0]===Symbol.for("react.memo_cache_sentinel")?(n=()=>u.current,a=[],s[0]=n,s[1]=a):(n=s[0],a=s[1]),i.useImperativeHandle(t,n,a),null}).displayName="EditorRefPlugin",(0,g.Ke)({on:"insert.break",guard:({snapshot:e})=>!!(e.context.selection&&(0,h.gR)(e))&&{selection:e.context.selection},actions:[(e,{selection:t})=>[(0,g.g7)({type:"delete",at:t})]]}),(0,g.Ke)({on:"insert.break",actions:[]}),(0,g.Ke)({on:"insert.block",guard:({event:e})=>"before"===e.placement||"after"===e.placement,actions:[]}),(0,g.Ke)({on:"insert.block",guard:({snapshot:e,event:t})=>!(!(0,h.hH)(e)||!v(e.context,t.block)),actions:[({event:e})=>[(0,g.g7)({type:"insert.block",block:e.block,placement:"auto",select:"end"})]]}),(0,g.Ke)({on:"insert.block",actions:[]}),(0,g.Ke)({on:"insert.blocks",guard:({snapshot:e,event:t})=>{let n=t.blocks.filter(t=>v(e.context,t));return 0!==n.length&&n.reduce((t,n)=>(function({context:e,targetBlock:t,incomingBlock:n}){let r=(0,d.rT)({context:e,block:n,options:{refreshKeys:!0,validateFields:!0}});return r&&v(e,r)?{...t,children:[...t.children,...r.children],markDefs:[...t.markDefs??[],...r.markDefs??[]]}:t})({context:e.context,targetBlock:t,incomingBlock:n}))},actions:[(e,t)=>[(0,g.xl)({type:"insert.block",block:t,placement:"auto"})]]}),(0,g.Ke)({on:"insert.blocks",actions:[]})},46787:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},i=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}};let o={p:i,P:function(e,t){var n,o=e.match(/(P+)(p+)?/)||[],a=o[1],s=o[2];if(!s)return r(e,t);switch(a){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",r(a,t)).replace("{{time}}",i(s,t))}}},47191:(e,t,n)=>{"use strict";n.d(t,{p:()=>u});var r=n(29378),i=n(7207);function o(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function a(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}var s=n(87876),l=n(83333);let u=(0,s._C)((e={})=>{let t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,s,u){let c=u.getOptions();!function(e,t,n=250,s,l,u,c){var d,f;if(!u.exception||!u.exception.values||!c||!(0,r.tH)(c.originalException,Error))return;let h=u.exception.values.length>0?u.exception.values[u.exception.values.length-1]:void 0;h&&(u.exception.values=(d=function e(t,n,i,s,l,u,c,d){if(u.length>=i+1)return u;let f=[...u];
46if((0,r.tH)(s[l],Error)){o(c,d);let r=t(n,s[l]),u=f.length;a(r,l,u,d),f=e(t,n,i,s[l],l,[r,...f],r,u)}return Array.isArray(s.errors)&&s.errors.forEach((s,u)=>{if((0,r.tH)(s,Error)){o(c,d);let r=t(n,s),h=f.length;a(r,`errors[${u}]`,h,d),f=e(t,n,i,s,l,[r,...f],r,h)}}),f}(e,t,l,c.originalException,s,u.exception.values,h,0),f=n,d.map(e=>(e.value&&(e.value=(0,i.xv)(e.value,f)),e))))}(l.K8,c.stackParser,c.maxValueLength,n,t,e,s)}}})},47528:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(39292),i=n(71260);function o(e){(0,i.A)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===(0,r.A)(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&"undefined"!=typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(Error().stack)),new Date(NaN))}},47605:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var i=t(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},47733:(e,t,n)=>{"use strict";let r;n.d(t,{xC:()=>b,r9:()=>p,Bd:()=>v});var i=n(82203);n(74811);let o={};function a(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"==typeof t[0]&&o[t[0]]||("string"==typeof t[0]&&(o[t[0]]=new Date),function(){if(console&&console.warn){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"==typeof t[0]&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}(...t))}let s=(e,t)=>()=>{if(e.isInitialized)t();else{let n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}};function l(e,t,n){e.loadNamespaces(t,s(e,n))}function u(e,t,n,r){"string"==typeof n&&(n=[n]),n.forEach(t=>{0>e.options.ns.indexOf(t)&&e.options.ns.push(t)}),e.loadLanguages(t,s(e,r))}let c=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,d={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"\xa9","&#169;":"\xa9","&reg;":"\xae","&#174;":"\xae","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},f=e=>d[e],h={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(c,f)},p={type:"3rdParty",init(e){!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};h={...h,...e}}(e.options.react),r=e}},g=(0,i.createContext)();class m{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}function y(e,t,n,r){return e.getFixedT(t,n,r)}function v(e){var t,n;let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{i18n:s}=o,{i18n:c,defaultNS:d}=(0,i.useContext)(g)||{},f=s||c||r;if(f&&!f.reportNamespaces&&(f.reportNamespaces=new m),!f){a("You will need to pass in an i18next instance by using initReactI18next");let e=(e,t)=>"string"==typeof t?t:t&&"object"==typeof t&&"string"==typeof t.defaultValue?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}f.options.react&&void 0!==f.options.react.wait&&a("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");let p={...h,...f.options.react,...o},{useSuspense:v,keyPrefix:b}=p,w=e||d||f.options&&f.options.defaultNS;w="string"==typeof w?[w]:w||["translation"],f.reportNamespaces.addUsedNamespaces&&f.reportNamespaces.addUsedNamespaces(w);let x=(f.isInitialized||f.initializedStoreOnce)&&w.every(e=>(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.languages&&t.languages.length?void 0===t.options.ignoreJSONStructure?function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.languages[0],i=!!t.options&&t.options.fallbackLng,o=t.languages[t.languages.length-1];if("cimode"===r.toLowerCase())return!0;let a=(e,n)=>{let r=t.services.backendConnector.state[`${e}|${n}`];return -1===r||2===r};return(!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1)||!t.services.backendConnector.backend||!t.isLanguageChangingTo||!!a(t.isLanguageChangingTo,e))&&!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||a(r,e)&&(!i||a(o,e)))}
46(e,t,n):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):(a("i18n.languages were undefined or empty",t.languages),!0)})(e,f,p)),k=(t=o.lng||null,n="fallback"===p.nsMode?w:w[0],(0,i.useCallback)(y(f,t,n,b),[f,t,n,b])),E=()=>k,[_,S]=(0,i.useState)(E),A=w.join();o.lng&&(A=`${o.lng}${A}`);let T=((e,t)=>{let n=(0,i.useRef)();return(0,i.useEffect)(()=>{n.current=t?n.current:e},[e,t]),n.current})(A),C=(0,i.useRef)(!0);(0,i.useEffect)(()=>{let{bindI18n:e,bindI18nStore:t}=p;function n(){C.current&&S(E)}return C.current=!0,x||v||(o.lng?u(f,o.lng,w,()=>{C.current&&S(E)}):l(f,w,()=>{C.current&&S(()=>y(f,o.lng||null,"fallback"===p.nsMode?w:w[0],b))})),x&&T&&T!==A&&C.current&&S(E),e&&f&&f.on(e,n),t&&f&&f.store.on(t,n),()=>{C.current=!1,e&&f&&e.split(" ").forEach(e=>f.off(e,n)),t&&f&&t.split(" ").forEach(e=>f.store.off(e,n))}},[f,A]);let O=(0,i.useRef)(!0);(0,i.useEffect)(()=>{C.current&&!O.current&&S(E),O.current=!1},[f,b]);let j=[_,f,x];if(j.t=_,j.i18n=f,j.ready=x,x||!x&&!v)return j;throw new Promise(e=>{o.lng?u(f,o.lng,w,()=>e()):l(f,w,()=>e())})}function b(e){let{i18n:t,defaultNS:n,children:r}=e,o=(0,i.useMemo)(()=>({i18n:t,defaultNS:n}),[t,n]);return(0,i.createElement)(g.Provider,{value:o},r)}},47737:(e,t,n)=>{var r=n(89931);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},47782:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}},47849:(e,t,n)=>{"use strict";n.d(t,{v_:()=>l});let r="u">typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),i={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},o={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:r?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},a={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222};for(var s=1;s<20;s++)a["f"+s]=111+s;function l(e,t,n){!t||"byKey"in t||(n=t,t=null),Array.isArray(e)||(e=[e]);let r=e.map(e=>(function(e,t){let n=t&&t.byKey,r={},s=(e=e.replace("++","+add")).split("+"),{length:l}=s;for(let e in i)r[i[e]]=!1;for(let e of s){var c;let t=e.endsWith("?")&&e.length>1;t&&(e=e.slice(0,-1));let s=u(e),d=i[s];if(e.length>1&&!d&&!o[e]&&!a[s])throw TypeError(`Unknown modifier: "${e}"`);1!==l&&d||(n?r.key=s:r.which=a[c=u(c=e)]||c.toUpperCase().charCodeAt(0)),d&&(r[d]=!t||null)}return r})(e,t)),s=e=>r.some(t=>(function(e,t){for(let n in e){let r,i=e[n];if(null!=i&&(null!=(r="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===i&&93===t.which?91:t.which:t[n])||!1!==i)&&r!==i)return!1}return!0})(t,e));return null==n?s:s(n)}function u(e){return o[e=e.toLowerCase()]||e}},48179:e=>{"use strict";function t(){return!0}e.exports=function e(n){var r,i;if(null==n)return t;if("string"==typeof n){return r=n,function(e){return!!(e&&e.type===r)}}if("object"==typeof n){return"length"in n?function(t){for(var n=[],r=-1;++r<t.length;)n[r]=e(t[r]);return function(){for(var e=-1;++e<n.length;)if(n[e].apply(this,arguments))return!0;return!1}}(n):(i=n,function(e){var t;for(t in i)if(e[t]!==i[t])return!1;return!0})}if("function"==typeof n)return n;throw Error("Expected function, string, or object as test")}},48341:(e,t,n)=>{var r=n(10947),i=n(62614),o=n(41594),a=n(61403),s=n(58583),l=n(65903);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=i,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,e.exports=u},48473:(e,t,n)=>{var r=n(59741),i=n(11253),o=n(74922),a=n(94598),s=n(56957),l=n(23025);e.exports=function(e,t,n,u){var c=-1,d=i,f=!0,h=e.length,p=[],g=t.length;
46if(!h)return p;n&&(t=a(t,s(n))),u?(d=o,f=!1):t.length>=200&&(d=l,f=!1,t=new r(t));e:for(;++c<h;){var m=e[c],y=null==n?m:n(m);if(m=u||0!==m?m:0,f&&y==y){for(var v=g;v--;)if(t[v]===y)continue e;p.push(m)}else d(t,y,u)||p.push(m)}return p}},48637:(e,t,n)=>{"use strict";n.d(t,{W:()=>o,e:()=>a});var r=n(45885),i=n(12346);function o(e){return!!e&&JSON.stringify(e.anchor.path)===JSON.stringify(e.focus.path)&&e.anchor.offset===e.focus.offset}function a({context:e,selectionPoint:t}){let n=(0,r.XE)(t);return 1===t.path.length&&void 0!==n?{path:[{_key:n}],offset:t.offset}:(0,i.GR)({context:e,selectionPoint:t})}},48770:(e,t,n)=>{var r=n(23851);e.exports=function(e){return r(e)?void 0:e}},48835:(e,t,n)=>{"use strict";let r=n(57191),i=n(38859),o=n(27842),a=n(99681),s=n(16557),l=n(63208);e.exports=(e,t,n,u)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return r(e,n,u);case"!=":return i(e,n,u);case">":return o(e,n,u);case">=":return a(e,n,u);case"<":return s(e,n,u);case"<=":return l(e,n,u);default:throw TypeError(`Invalid operator: ${t}`)}}},48871:(e,t,n)=>{var r=n(33607),i=n(88567);e.exports=function(e,t,n,o){return null==e?[]:(i(t)||(t=null==t?[]:[t]),i(n=o?void 0:n)||(n=null==n?[]:[n]),r(e,t,n))}},48914:(e,t,n)=>{"use strict";n.d(t,{A:()=>O});var r=n(54802),i=n(8729),o=n(47528),a=n(71260),s=n(79185),l=n(23339),u=n(36234),c=n(38079);function d(e,t){for(var n=Math.abs(e).toString();n.length<t;)n="0"+n;return(e<0?"-":"")+n}let f={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return d("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):d(n+1,2)},d:function(e,t){return d(e.getUTCDate(),t.length)},h:function(e,t){return d(e.getUTCHours()%12||12,t.length)},H:function(e,t){return d(e.getUTCHours(),t.length)},m:function(e,t){return d(e.getUTCMinutes(),t.length)},s:function(e,t){return d(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length;return d(Math.floor(e.getUTCMilliseconds()*Math.pow(10,n-3)),t.length)}};var h={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"};function p(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;return 0===o?n+String(i):n+String(i)+(t||"")+d(o,2)}function g(e,t){return e%60==0?(e>0?"-":"+")+d(Math.abs(e)/60,2):m(e,t)}function m(e,t){var n=Math.abs(e);return(e>0?"-":"+")+d(Math.floor(n/60),2)+(t||"")+d(n%60,2)}let y={G:function(e,t,n){var r=+(e.getUTCFullYear()>0);switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear();return n.ordinalNumber(r>0?r:1-r,{unit:"year"})}return f.y(e,t)},Y:function(e,t,n,r){var i=(0,c.A)(e,r),o=i>0?i:1-i;return"YY"===t?d(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):d(o,t.length)},R:function(e,t){return d((0,l.A)(e),t.length)},u:function(e,t){return d(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return d(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return d(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return f.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return d(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var i=(0,u.A)(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):d(i,t.length)},I:function(e,t,n){var r=(0,s.A)(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):d(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):f.d(e,t)},D:function(e,t,n){var r=function(e){(0,a.A)(1,arguments);var t=(0,o.A)(e),n=t.getTime();return t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0),Math.floor((n-t.getTime())/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):d(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return d(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return d(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return d(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,i=e.getUTCHours();switch(r=12===i?h.noon:0===i?h.midnight:i/12>
46=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,i=e.getUTCHours();switch(r=i>=17?h.evening:i>=12?h.afternoon:i>=4?h.morning:h.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return f.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):f.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):d(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return(0===r&&(r=24),"ko"===t)?n.ordinalNumber(r,{unit:"hour"}):d(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):f.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):f.s(e,t)},S:function(e,t){return f.S(e,t)},X:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return g(i);case"XXXX":case"XX":return m(i);default:return m(i,":")}},x:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return g(i);case"xxxx":case"xx":return m(i);default:return m(i,":")}},O:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+p(i,":");default:return"GMT"+m(i,":")}},z:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+p(i,":");default:return"GMT"+m(i,":")}},t:function(e,t,n,r){return d(Math.floor((r._originalDate||e).getTime()/1e3),t.length)},T:function(e,t,n,r){return d((r._originalDate||e).getTime(),t.length)}};var v=n(46787),b=n(16547),w=n(76774),x=n(18659),k=n(29449),E=n(33157),_=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,S=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,A=/^'([^]*?)'?$/,T=/''/g,C=/[a-zA-Z]/;function O(e,t,n){(0,a.A)(2,arguments);var s,l,u,c,d,f,h,p,g,m,O,j,D,R,I,P,M,N,$=String(t),L=(0,k.q)(),F=null!=(s=null!=(l=null==n?void 0:n.locale)?l:L.locale)?s:E.A,U=(0,x.A)(null!=(u=null!=(c=null!=(d=null!=(f=null==n?void 0:n.firstWeekContainsDate)?f:null==n||null==(h=n.locale)||null==(p=h.options)?void 0:p.firstWeekContainsDate)?d:L.firstWeekContainsDate)?c:null==(g=L.locale)||null==(m=g.options)?void 0:m.firstWeekContainsDate)?u:1);if(!(U>=1&&U<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var z=(0,x.A)(null!=(O=null!=(j=null!=(D=null!=(R=null==n?void 0:n.weekStartsOn)?R:null==n||null==(I=n.locale)||null==(P=I.options)?void 0:P.weekStartsOn)?D:L.weekStartsOn)?j:null==(M=L.locale)||null==(N=M.options)?void 0:N.weekStartsOn)?O:0);if(!(z>=0&&z<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!F.localize)throw RangeError("locale must contain localize property");if(!F.formatLong)throw RangeError("locale must contain formatLong property");var B=(0,o.A)(e);if(!(0,r.A)(B))throw RangeError("Invalid time value");var q=(0,b.A)(B),V=(0,i.A)(B,q),H={firstWeekContainsDate:U,weekStartsOn:z,locale:F,_originalDate:B};return $.match(S).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,v.A[t])(e,F.formatLong):e}).join("").match(_).map(function(r){if("''"===r)return"'";var i,o,a=r[0];if("'"===a){return(o=(i=r).match(A))?o[1].replace(T,"'"):i}var s=y[a];if(s)return!(null!=n&&n.useAdditionalWeekYearTokens)&&(0,w.xM)(r)&&(0,w.lJ)(r,t,String(e)),!(null!=n&&n.useAdditionalDayOfYearTokens)&&(0,w.ef)(r)&&(0,w.lJ)(r,t,String(e)),s(V,r,F.localize,H);if(a.match(C))throw RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");return r}).join("")}},48942:function(e,t){(function(){(null!==t?t:this).ExifReader=function(){function e(){var e=this;this._getTagValueAt={1:function(t){return e._getByteAt(t)},2:function(t){return e._getAsciiAt(t)},3:function(t){return e._getShortAt(t)}
46,4:function(t){return e._getLongAt(t)},5:function(t){return e._getRationalAt(t)},7:function(t){return e._getUndefinedAt(t)},9:function(t){return e._getSlongAt(t)},10:function(t){return e._getSrationalAt(t)}},this._tiffHeaderOffset=0}return e.prototype._MIN_DATA_BUFFER_LENGTH=2,e.prototype._JPEG_ID_SIZE=2,e.prototype._JPEG_ID=65496,e.prototype._APP_MARKER_SIZE=2,e.prototype._APP0_MARKER=65504,e.prototype._APP1_MARKER=65505,e.prototype._APP15_MARKER=65519,e.prototype._APP_ID_OFFSET=4,e.prototype._BYTES_Exif=0x45786966,e.prototype._TIFF_HEADER_OFFSET=10,e.prototype._BYTE_ORDER_BIG_ENDIAN=18761,e.prototype._BYTE_ORDER_LITTLE_ENDIAN=19789,e.prototype.load=function(e){return this.loadView(new DataView(e))},e.prototype.loadView=function(e){return this._dataView=e,this._tags={},this._checkImageHeader(),this._readTags()},e.prototype._checkImageHeader=function(){var e;if((e=this._dataView).byteLength<this._MIN_DATA_BUFFER_LENGTH||e.getUint16(0,!1)!==this._JPEG_ID)throw Error("Invalid image format");if(this._parseAppMarkers(e),!this._hasExifData())throw Error("No Exif data")},e.prototype._parseAppMarkers=function(e){var t,n,r;for(t=this._JPEG_ID_SIZE,r=[];!(e.byteLength<t+this._APP_ID_OFFSET+5);){if(this._isApp1ExifMarker(e,t))n=e.getUint16(t+this._APP_MARKER_SIZE,!1),this._tiffHeaderOffset=t+this._TIFF_HEADER_OFFSET;else if(this._isAppMarker(e,t))n=e.getUint16(t+this._APP_MARKER_SIZE,!1);else break;r.push(t+=this._APP_MARKER_SIZE+n)}return r},e.prototype._isApp1ExifMarker=function(e,t){return e.getUint16(t,!1)===this._APP1_MARKER&&e.getUint32(t+this._APP_ID_OFFSET,!1)===this._BYTES_Exif&&0===e.getUint8(t+this._APP_ID_OFFSET+4,!1)},e.prototype._isAppMarker=function(e,t){var n;return(n=e.getUint16(t,!1))>=this._APP0_MARKER&&n<=this._APP15_MARKER},e.prototype._hasExifData=function(){return 0!==this._tiffHeaderOffset},e.prototype._readTags=function(){return this._setByteOrder(),this._read0thIfd(),this._readExifIfd(),this._readGpsIfd(),this._readInteroperabilityIfd()},e.prototype._setByteOrder=function(){if(this._dataView.getUint16(this._tiffHeaderOffset)===this._BYTE_ORDER_BIG_ENDIAN)return this._littleEndian=!0;if(this._dataView.getUint16(this._tiffHeaderOffset)===this._BYTE_ORDER_LITTLE_ENDIAN)return this._littleEndian=!1;throw Error("Illegal byte order value. Faulty image.")},e.prototype._read0thIfd=function(){var e;return e=this._getIfdOffset(),this._readIfd("0th",e)},e.prototype._getIfdOffset=function(){return this._tiffHeaderOffset+this._getLongAt(this._tiffHeaderOffset+4)},e.prototype._readExifIfd=function(){var e;if(null!=this._tags["Exif IFD Pointer"])return e=this._tiffHeaderOffset+this._tags["Exif IFD Pointer"].value,this._readIfd("exif",e)},e.prototype._readGpsIfd=function(){var e;if(null!=this._tags["GPS Info IFD Pointer"])return e=this._tiffHeaderOffset+this._tags["GPS Info IFD Pointer"].value,this._readIfd("gps",e)},e.prototype._readInteroperabilityIfd=function(){var e;if(null!=this._tags["Interoperability IFD Pointer"])return e=this._tiffHeaderOffset+this._tags["Interoperability IFD Pointer"].value,this._readIfd("interoperability",e)},e.prototype._readIfd=function(e,t){var n,r,i,o;for(n=this._getShortAt(t),t+=2,o=[],i=0;0<=n?i<n:i>n;0<=n?++i:--i)r=this._readTag(e,t),this._tags[r.name]={value:r.value,description:r.description},o.push(t+=12);return o},e.prototype._readTag=function(e,t){var n,r,i,o,a,s,l;return(n=this._getShortAt(t),a=this._getShortAt(t+2),r=this._getLongAt(t+4),this._typeSizes[a]*r<=4?s=this._getTagValue(t+8,a,r):(l=this._getLongAt(t+8),s=this._getTagValue(this._tiffHeaderOffset+l,a,r)),a===this._tagTypes.ASCII&&(s=this._splitNullSeparatedAsciiString(s)),null!=this._tagNames[e][n])?(null!=this._tagNames[e][n].name&&null!=this._tagNames[e][n].description?(o=this._tagNames[e][n].name,i=this._tagNames[e][n].description(s)):(o=this._tagNames[e][n],i=s instanceof Array?s.join(", "):s),{name:o,value:s,description:i}):{name:"undefined-"+n,value:s,description:s}},e.prototype._getTagValue=function(e,t,n){var r,i;return 1===(i=(function(){var i,o;for(o=[],i=0;0<=n?i<n:i>n;0<=n?++i:--i)r=this._getTagValueAt[t](e),e+=this._typeSizes[t],o.push(r);return o}
46).call(this)).length?i=i[0]:t===this._tagTypes.ASCII&&(i=this._getAsciiValue(i)),i},e.prototype._getAsciiValue=function(e){var t,n,r,i;for(n=0,i=[],r=e.length;n<r;n++)t=e[n],i.push(String.fromCharCode(t));return i},e.prototype._getByteAt=function(e){return this._dataView.getUint8(e)},e.prototype._getAsciiAt=function(e){return this._dataView.getUint8(e)},e.prototype._getShortAt=function(e){return this._dataView.getUint16(e,this._littleEndian)},e.prototype._getLongAt=function(e){return this._dataView.getUint32(e,this._littleEndian)},e.prototype._getRationalAt=function(e){return this._getLongAt(e)/this._getLongAt(e+4)},e.prototype._getUndefinedAt=function(e){return this._getByteAt(e)},e.prototype._getSlongAt=function(e){return this._dataView.getInt32(e,this._littleEndian)},e.prototype._getSrationalAt=function(e){return this._getSlongAt(e)/this._getSlongAt(e+4)},e.prototype._splitNullSeparatedAsciiString=function(e){var t,n,r,i,o;for(i=0,r=[],n=0,o=e.length;i<o;i++){if("\0"===(t=e[i])){n++;continue}null==r[n]&&(r[n]=""),r[n]+=t}return r},e.prototype._typeSizes={1:1,2:1,3:2,4:4,5:8,7:1,9:4,10:8},e.prototype._tagTypes={BYTE:1,ASCII:2,SHORT:3,LONG:4,RATIONAL:5,UNDEFINED:7,SLONG:9,SRATIONAL:10},e.prototype._tagNames={"0th":{256:"ImageWidth",257:"ImageLength",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",270:"ImageDescription",271:"Make",272:"Model",273:"StripOffsets",274:{name:"Orientation",description:function(e){switch(e){case 1:return"top-left";case 2:return"top-right";case 3:return"bottom-right";case 4:return"bottom-left";case 5:return"left-top";case 6:return"right-top";case 7:return"right-bottom";case 8:return"left-bottom";default:return"Undefined"}}},277:"SamplesPerPixel",278:"RowsPerStrip",279:"StripByteCounts",282:"XResolution",283:"YResolution",284:"PlanarConfiguration",296:{name:"ResolutionUnit",description:function(e){switch(e){case 2:return"inches";case 3:return"centimeters";default:return"Unknown"}}},301:"TransferFunction",305:"Software",306:"DateTime",315:"Artist",318:"WhitePoint",319:"PrimaryChromaticities",513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",529:"YCbCrCoefficients",530:"YCbCrSubSampling",531:{name:"YCbCrPositioning",description:function(e){switch(e){case 1:return"centered";case 2:return"co-sited";default:return"undefied "+e}}},532:"ReferenceBlackWhite",33432:{name:"Copyright",description:function(e){return e.join("; ")}},34665:"Exif IFD Pointer",34853:"GPS Info IFD Pointer"},exif:{33434:"ExposureTime",33437:"FNumber",34850:{name:"ExposureProgram",description:function(e){switch(e){case 0:return"Undefined";case 1:return"Manual";case 2:return"Normal program";case 3:return"Aperture priority";case 4:return"Shutter priority";case 5:return"Creative program";case 6:return"Action program";case 7:return"Portrait mode";case 8:return"Landscape mode";default:return"Unknown"}}},34852:"SpectralSensitivity",34855:"ISOSpeedRatings",34856:{name:"OECF",description:function(e){return"[Raw OECF table data]"}},36864:{name:"ExifVersion",description:function(e){var t,n,r;for(n=0,t="",r=e.length;n<r;n++)t+=String.fromCharCode(e[n]);return t}},36867:"DateTimeOriginal",36868:"DateTimeDigitized",37121:{name:"ComponentsConfiguration",description:function(e){var t,n,r;for(n=0,t="",r=e.length;n<r;n++)switch(e[n]){case 49:t+="Y";break;case 50:t+="Cb";break;case 51:t+="Cr";break;case 52:t+="R";break;case 53:t+="G";break;case 54:t+="B"}return t}},37122:"CompressedBitsPerPixel",37377:"ShutterSpeedValue",37378:"ApertureValue",37379:"BrightnessValue",37380:"ExposureBiasValue",37381:"MaxApertureValue",37382:"SubjectDistance",37383:{name:"MeteringMode",description:function(e){switch(e){case 1:return"Average";case 2:return"CenterWeightedAverage";case 3:return"Spot";case 4:return"MultiSpot";case 5:return"Pattern";case 6:return"Partial";case 255:return"Other";default:return"Unknown"}}},37384:{name:"LightSource",description:function(e){switch(e){case 1:return"Daylight";case 2:return"Fluorescent";case 3:return"Tungsten (incandescent light)";case 4:return"Flash";case 9:return"Fine weather";case 10:return"Cloudy weather";case 11:return"Shade";case 12:return"Daylight fluorescent (D 5700 – 7100K)";case 13:return"Day white fluorescent (N 4600 – 5400K)";case 14:return"Cool white fluorescent (W 3900 – 4500K)";case 15:return"White fluorescent (WW 3200 – 3700K)";case 17:return"Standard light A";case 18:return"Standard light B";case 19:return"Standard light C";case 20:return"D55";case 21:return"D65";case 22:return"D75";case 23:return"D50";case 24:return"ISO studio tungsten";case 255:return"Other light source";default:return"Unknown"}}},37385:{name:"Flash",description:function(e){switch(e){case 0:return"Flas
46h did not fire";case 1:return"Flash fired";case 5:return"Strobe return light not detected";case 7:return"Strobe return light detected";case 9:return"Flash fired, compulsory flash mode";case 13:return"Flash fired, compulsory flash mode, return light not detected";case 15:return"Flash fired, compulsory flash mode, return light detected";case 16:return"Flash did not fire, compulsory flash mode";case 24:return"Flash did not fire, auto mode";case 25:return"Flash fired, auto mode";case 29:return"Flash fired, auto mode, return light not detected";case 31:return"Flash fired, auto mode, return light detected";case 32:return"No flash function";case 65:return"Flash fired, red-eye reduction mode";case 69:return"Flash fired, red-eye reduction mode, return light not detected";case 71:return"Flash fired, red-eye reduction mode, return light detected";case 73:return"Flash fired, compulsory flash mode, red-eye reduction mode";case 77:return"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected";case 79:return"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected";case 89:return"Flash fired, auto mode, red-eye reduction mode";case 93:return"Flash fired, auto mode, return light not detected, red-eye reduction mode";case 95:return"Flash fired, auto mode, return light detected, red-eye reduction mode";default:return"Unknown"}}},37386:"FocalLength",37396:{name:"SubjectArea",description:function(e){switch(e.length){case 2:return"Location; X: "+e[0]+", Y: "+e[1];case 3:return"Circle; X: "+e[0]+", Y: "+e[1]+", diameter: "+e[2];case 4:return"Rectangle; X: "+e[0]+", Y: "+e[1]+", width: "+e[2]+", height: "+e[3];default:return"Unknown"}}},37500:{name:"MakerNote",description:function(e){return"[Raw maker note data]"}},37510:{name:"UserComment",description:function(e){switch(e.slice(0,8).map(function(e){return String.fromCharCode(e)}).join("")){case"ASCII\0\0\0":return e.slice(8,e.length).map(function(e){return String.fromCharCode(e)}).join("");case"JIS\0\0\0\0\0":return"[JIS encoded text]";case"UNICODE\0":return"[Unicode encoded text]";case"\0\0\0\0\0\0\0\0":return"[Undefined encoding]"}}},37520:"SubSecTime",37521:"SubSecTimeOriginal",37522:"SubSecTimeDigitized",40960:{name:"FlashpixVersion",description:function(e){var t,n,r;for(n=0,t="",r=e.length;n<r;n++)t+=String.fromCharCode(e[n]);return t}},40961:{name:"ColorSpace",description:function(e){switch(e){case 1:return"sRGB";case 65535:return"Uncalibrated";default:return"Unknown"}}},40962:"PixelXDimension",40963:"PixelYDimension",40964:"RelatedSoundFile",40965:"Interoperability IFD Pointer",41483:"FlashEnergy",41484:{name:"SpatialFrequencyResponse",description:function(e){return"[Raw SFR table data]"}},41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:{name:"FocalPlaneResolutionUnit",description:function(e){switch(e){case 2:return"inches";case 3:return"centimeters";default:return"Unknown"}}},41492:{name:"SubjectLocation",description:function(e){return"X: "+e[0]+", Y: "+e[1]}},41493:"ExposureIndex",41495:{name:"SensingMethod",description:function(e){switch(e){case 1:return"Undefined";case 2:return"One-chip color area sensor";case 3:return"Two-chip color area sensor";case 4:return"Three-chip color area sensor";case 5:return"Color sequential area sensor";case 7:return"Trilinear sensor";case 8:return"Color sequential linear sensor";default:return"Unknown"}}},41728:{name:"FileSource",description:function(e){return 3===e?"DSC":"Unknown"}},41729:{name:"SceneType",description:function(e){return 1===e?"A directly photographed image":"Unknown"}},41730:{name:"CFAPattern",description:function(e){return"[Raw CFA pattern table data]"}},41985:{name:"CustomRendered",description:function(e){switch(e){case 0:return"Normal process";case 1:return"Custom process";default:return"Unknown"}}},41986:{name:"ExposureMode",description:function(e){switch(e){case 0:return"Auto exposure";case 1:return"Manual exposure";case 2:return"Auto bracket";default:return"Unknown"}}},41987:{name:"WhiteBalance",description:function(e){switch(e){case 0:return"Auto white balance";case 1:return"Manual white balance";default:return"Unknown"}}},41988:{name:"DigitalZoomRatio",description:function(e){return 0===e?"Digital zoom was not used":e}},41989:{name:"FocalLengthIn35mmFilm",description:function(e){return 0===e?"Unknown":e}},41990:{name:"SceneCaptureType",description:function(e){switch(e){case 0:return"Standard";case 1:return"Landscape";case 2:return"Portrait";case 3:return"Night scene";default:return"Unknown"}}},41991:{name:"GainControl",description:function(e){switch(e){case 0:return"None";case 1:return"Low gain up";case 2:return"High gain up";case 3:return"Low gain down";case 4:return"High gain down";default:return"Unknown"}}},41992:{name:"Contrast",description:function(e){switch(e){case 0:return"Normal";case 1:return"Soft";case 2:return"Hard";default:return"Unknown"}}},41993:{name:"Saturation",description:function(e){switch(e){case 0:return"Normal";case 1:return"Low saturation";case 2:return"High saturation";default:return"Unknown"}}},41994:{name:"Sharpness",description:function(e){switch(e){case 0:return"Normal";case 1:return"Soft";case 2:return"Hard";default:return"Unknown"}}},41995:{name:"DeviceSettingDescription",description:function(e){return"[Raw device settings table data]"}},41996:{name:"SubjectDistanceRange",description:function(e){switch(e){case 1:return"Macro";case 2:return"Close view";case 3:return"Distant view";default:return"Unknown"}}},42016:"ImageUniqueID"},gps:{0:{name:"GPSVersionID",description:function(e){var t,n;return e[0]===(t=e[1])&&2===t&&e[2]===(n=e[3])&&0===n?"Version 2.2":"Unknown"}},1:{name:"GPSLatitudeRef",description:function(e){switch(e.join("")){case"N":return"North latitude";case"S":return"South latitude";default:return"Unknown"}}},2:{name:"GPSLatitude",description:function(e){return e[0]+e[1]/60+e[2]/3600}},3:{name:"GPSLongitudeRef",description:function(e){switch(e.join("")){case"E":return"East longitude";case"W":return"West longitude";default:return"Unknown"}}},4:{name:"GPSLongitude",description:function(e){return e[0]+e[1]/60+e[2]/3600}},5:{name:"GPSAltitudeRef",description:function(e){switch(e){case 0:return"Sea level";case 1:return"Sea level reference (negative value)";default:return"Unknown"}}},6:{name:"GPSAltitude",description:function(e){return e+" m"}},7:{name:"GPSTimeStamp",description:function(e){return e.map(function(e){return function(){var t,n,r;for(r=[],t=0,n=2-(""+Math.floor(e)).length;0<=n?t<n:t>n;0<=n?++t:--t)r.push("0");return r}()+e}).join(":")}},8:"GPSSatellites",9:{name:"GPSStatus",description:function(e){switch(e.join("")){case"A":return"Measurement in progress";case"V":return"Measurement Interoperability";default:return"Unknown"}}},10:{name:"GPSMeasureMode",description:function(e){switch(e.join("")){case"2":return"2-dimensional measurement";case"3":return"3-dimensional measurement";default:return"Unknown"}}},11:"GPSDOP",12:{name:"GPSSpeedRef",description:function(e){switch(e.join("")){case"K":return"Kilometers per hour";case"M":return"Miles per hour";case"N":return"Knots";default:return"Unknown"}}},13:"GPSSpeed",14:{name:"GPSTrackRef",description:function(e){switch(e.join("")){case"T":return"True direction";case"M":return"Magnetic direction";default:return"Unknown"}}},15:"GPSTrack",16:{name:"GPSImgDirectionRef",description:function(e){switch(e.join("")){case"T":return"True direction";case"M":return"Magnetic direction";default:return"Unknown"}}},17:"GPSImgDirection",18:"GPSMapDatum",19:{name:"GPSDestLatitudeRef",description:function(e){switch(e.join("")){case"N":return"North latitude";case"S":return"South latitude";default:return"Unknown"}}},20:{name:"GPSDestLatitude",description:function(e){return e[0]+e[1]/60+e[2]/3600}},21:{name:"GPSDestLongitudeRef",description:function(e){switch(e.join("")){case"E":return"East longitude";case"W":return"West longitude";default:return"Unknown"}}},22:{name:"GPSDestLongitude",description:function(e){return e[0]+e[1]/60+e[2]/3600}},23:{name:"GPSDestBearingRef",description:function(e){switch(e.join("")){case"T":return"True direction";case"M":return"Magnetic direction";default:return"Unknown"}}},24:"GPSDestBearing",25:{name:"GPSDestDistanceRef",description:function(e){switch(e.join("")){case"K":return"Kilometers";case"M":return"Miles";case"N":return"Knots";default:return"Unknown"}}},26:"GPSDestDistance",27:{name:"GPSProcessingMethod",description:function(e){switch(e.slice(0,8).map(function(e){return String.fromCharCode(e)}).join("")){case"ASCII\0\0\0":return e.slice(8,e.length).map(function(e){return String.fromCharCode(e)}).join("");case"JIS\0\0\0\0\0":return"[JIS encoded text]";case"UNICODE\0":return"[Unicode encoded text]";case"\0\0\0\0\0\0\0\0":return"[Undefined encoding]"}}},28:{name:"GPSAreaInformation",description:function(e){switch(e.slice(0,8).map(function(e){return String.fromCharCode(e)}).join("")){case"ASCII\0\0\0":return e.slice(8,e.length).map(function(e){return String.fromCharCode(e)}).join("");case"JIS\0\0\0\0\0":return"[JIS encoded text]";case"UNICODE\0":return"[Unicode encoded text]";case"\0\0\0\0\0\0\0\0":return"[Undefined encoding]"}}},29:"GPSDateStamp",30:{name:"GPSDifferential",description:function(e){switch(e){case 0:return"Measurement without differential correction";
46case 1:return"Differential correction applied";default:return"Unknown"}}}},interoperability:{1:"InteroperabilityIndex",2:"UnknownInteroperabilityTag0x0002",4097:"UnknownInteroperabilityTag0x1001",4098:"UnknownInteroperabilityTag0x1002"}},e.prototype.getTagValue=function(e){return null!=this._tags[e]?this._tags[e].value:void 0},e.prototype.getTagDescription=function(e){return null!=this._tags[e]?this._tags[e].description:void 0},e.prototype.getAllTags=function(){return this._tags},e}()}).call(this)},49092:(e,t,n)=>{e.exports=n(65771)(n(29386))},49107:(e,t,n)=>{"use strict";var r=n(44316).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(77398));t.default={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:(0,i.default)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:(0,i.default)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,i.default)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:(0,i.default)({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:(0,i.default)({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},e.exports=t.default},49354:(e,t,n)=>{var r=n(65081),i=n(68685);e.exports=function(e,t,n){var o=!0,a=!0;if("function"!=typeof e)throw TypeError("Expected a function");return i(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:o,maxWait:t,trailing:a})}},49409:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(18659),i=n(47528),o=n(71260);function a(e,t){(0,o.A)(2,arguments);var n=(0,i.A)(e),a=(0,r.A)(t);if(isNaN(a))return new Date(NaN);if(!a)return n;var s=n.getDate(),l=new Date(n.getTime());return(l.setMonth(n.getMonth()+a+1,0),s>=l.getDate())?l:(n.setFullYear(l.getFullYear(),l.getMonth(),s),n)}},49489:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(82904),i=n(71260);function o(e,t){(0,i.A)(2,arguments);var n=(0,r.A)(e),o=(0,r.A)(t);return n.getTime()===o.getTime()}},49496:(e,t,n)=>{"use strict";n.d(t,{E:()=>tw,ID:()=>e7,NP:()=>tu,DU:()=>tv,AH:()=>tp,i7:()=>tb,I4:()=>tm,DP:()=>tl});var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.create;function i(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,"function"==typeof SuppressedError&&SuppressedError;var o=n(82203),a=n(17607),s=n.n(a),l="-ms-",u="-moz-",c="-webkit-",d="comm",f="rule",h="decl",p="@ke
46yframes",g=Math.abs,m=String.fromCharCode,y=Object.assign;function v(e,t){return(e=t.exec(e))?e[0]:e}function b(e,t,n){return e.replace(t,n)}function w(e,t,n){return e.indexOf(t,n)}function x(e,t){return 0|e.charCodeAt(t)}function k(e,t,n){return e.slice(t,n)}function E(e){return e.length}function _(e,t){return t.push(e),e}function S(e,t){return e.filter(function(e){return!v(e,t)})}var A=1,T=1,C=0,O=0,j=0,D="";function R(e,t,n,r,i,o,a,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:A,column:T,length:a,return:"",siblings:s}}function I(e,t){return y(R("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function P(e){for(;e.root;)e=I(e.root,{children:[e]});_(e,e.siblings)}function M(){return j=O<C?x(D,O++):0,T++,10===j&&(T=1,A++),j}function N(){return x(D,O)}function $(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function L(e){var t,n;return(t=O-1,n=function e(t){for(;M();)switch(j){case t:return O;case 34:case 39:34!==t&&39!==t&&e(j);break;case 40:41===t&&e(t);break;case 92:M()}return O}(91===e?e+2:40===e?e+1:e),k(D,t,n)).trim()}function F(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function U(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case h:return e.return=e.return||e.value;case d:return"";case p:return e.return=e.value+"{"+F(e.children,r)+"}";case f:if(!E(e.value=e.props.join(",")))return""}return E(n=F(e.children,r))?e.return=e.value+"{"+n+"}":""}function z(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case h:e.return=function e(t,n,r){var i;switch(i=n,45^x(t,0)?(((i<<2^x(t,0))<<2^x(t,1))<<2^x(t,2))<<2^x(t,3):0){case 5103:return c+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return c+t+t;case 4789:return u+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return c+t+u+t+l+t+t;case 5936:switch(x(t,n+11)){case 114:return c+t+l+b(t,/[svh]\w+-[tblr]{2}/,"tb")+t;
vendor: 11,670 bytes, line 46
46case 108:return c+t+l+b(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return c+t+l+b(t,/[svh]\w+-[tblr]{2}/,"lr")+t}case 6828:case 4268:case 2903:return c+t+l+t+t;case 6165:return c+t+l+"flex-"+t+t;case 5187:return c+t+b(t,/(\w+).+(:[^]+)/,c+"box-$1$2"+l+"flex-$1$2")+t;case 5443:return c+t+l+"flex-item-"+b(t,/flex-|-self/g,"")+(v(t,/flex-|baseline/)?"":l+"grid-row-"+b(t,/flex-|-self/g,""))+t;case 4675:return c+t+l+"flex-line-pack"+b(t,/align-content|flex-|-self/g,"")+t;case 5548:return c+t+l+b(t,"shrink","negative")+t;case 5292:return c+t+l+b(t,"basis","preferred-size")+t;case 6060:return c+"box-"+b(t,"-grow","")+c+t+l+b(t,"grow","positive")+t;case 4554:return c+b(t,/([^-])(transform)/g,"$1"+c+"$2")+t;case 6187:return b(b(b(t,/(zoom-|grab)/,c+"$1"),/(image-set)/,c+"$1"),t,"")+t;case 5495:case 3959:return b(t,/(image-set\([^]*)/,c+"$1$`$1");case 4968:return b(b(t,/(.+:)(flex-)?(.*)/,c+"box-pack:$3"+l+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+c+t+t;case 4200:if(!v(t,/flex-|baseline/))return l+"grid-column-align"+k(t,n)+t;break;case 2592:case 3360:return l+b(t,"template-","")+t;case 4384:case 3616:if(r&&r.some(function(e,t){return n=t,v(e.props,/grid-\w+-end/)}))return~w(t+(r=r[n].value),"span",0)?t:l+b(t,"-start","")+t+l+"grid-row-span:"+(~w(r,"span",0)?v(r,/\d+/):v(r,/\d+/)-v(t,/\d+/))+";";return l+b(t,"-start","")+t;case 4896:case 4128:return r&&r.some(function(e){return v(e.props,/grid-\w+-start/)})?t:l+b(b(t,"-end","-span"),"span ","")+t;case 4095:case 3583:case 4068:case 2532:return b(t,/(.+)-inline(.+)/,c+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(E(t)-1-n>6)switch(x(t,n+1)){case 109:if(45!==x(t,n+4))break;case 102:return b(t,/(.+:)(.+)-([^]+)/,"$1"+c+"$2-$3$1"+u+(108==x(t,n+3)?"$3":"$2-$3"))+t;case 115:return~w(t,"stretch",0)?e(b(t,"stretch","fill-available"),n,r)+t:t}break;case 5152:case 5920:return b(t,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(e,n,r,i,o,a,s){return l+n+":"+r+s+(i?l+n+"-span:"+(o?a:a-r)+s:"")+t});case 4949:if(121===x(t,n+6))return b(t,":",":"+c)+t;break;case 6444:switch(x(t,45===x(t,14)?18:11)){case 120:return b(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+c+(45===x(t,14)?"inline-":"")+"box$3$1"+c+"$2$3$1"+l+"$2box$3")+t;case 100:return b(t,":",":"+l)+t}break;case 5719:case 2647:case 2135:case 3927:case 2391:return b(t,"scroll-","scroll-snap-")+t}return t}(e.value,e.length,n);return;case p:return F([I(e,{value:b(e.value,"@","@"+c)})],r);case f:if(e.length){var i,o;return i=n=e.props,o=function(t){switch(v(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":P(I(e,{props:[b(t,/:(read-\w+)/,":"+u+"$1")]})),P(I(e,{props:[t]})),y(e,{props:S(n,r)});break;case"::placeholder":P(I(e,{props:[b(t,/:(plac\w+)/,":"+c+"input-$1")]})),P(I(e,{props:[b(t,/:(plac\w+)/,":"+u+"$1")]})),P(I(e,{props:[b(t,/:(plac\w+)/,l+"input-$1")]})),P(I(e,{props:[t]})),y(e,{props:S(n,r)})}return""},i.map(o).join("")}}}function B(e,t,n,r,i,o,a,s,l,u,c,d){for(var h=i-1,p=0===i?o:[""],m=p.length,y=0,v=0,w=0;y<r;++y)for(var x=0,E=k(e,h+1,h=g(v=a[y])),_=e;x<m;++x)(_=(v>0?p[x]+" "+E:b(E,/&\f/g,p[x])).trim())&&(l[w++]=_);return R(e,t,n,0===i?f:s,l,u,c,d)}function q(e,t,n,r,i){return R(e,t,n,h,k(e,0,r),k(e,r+1,-1),r,i)}var V={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},H=n(55036),W=void 0!==H&&void 0!==H.env&&(H.env.REACT_APP_SC_ATTR||H.env.SC_ATTR)||"data-styled",Y="active",G="data-styled-version",K="6.1.19",X="/*!sc*/\n",Z="undefined"!=typeof window&&"undefined"!=typeof document,Q=!!("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==H&&void 0!==H.env&&void 0!==H.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==H.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==H.env.REACT_APP_SC_DISABLE_SPEEDY&&H.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==H&&void 0!==H.env&&void 0!==H.env.SC_DISABLE_SPEEDY&&""!==H.env.SC_DISABLE_SPEEDY&&"false"!==H.env.SC_DISABLE_SPEEDY&&H.env.SC_DISABLE_SPEEDY),J={},ee=Object.freeze([]),et=Object.freeze({});function en(e,t,n){return void 0===n&&(n=et),e.theme!==n.theme&&e.theme||t||n.theme}var er=new Set(["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","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","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","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),ei=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,eo=/(^-|-$)/g;function ea(e){return e.replace(ei,"-").replace(eo,"")}var es=/(a)(d)/gi,el=function(e){return String.fromCharCode(e+(e>25?39:97))};function eu(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=el(t%52)+n;return(el(t%52)+n).replace(es,"$1-$2")}var ec,ed=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},ef=function(e){return ed(5381,e)};function eh(e){return eu(ef(e)>>>0)}function ep(e){return"string"==typeof e}var eg="function"==typeof Symbol&&Symbol.for,em=eg?Symbol.for("react.memo"):60115,ey=eg?Symbol.for("react.forward_ref"):60112,ev={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},eb={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ew={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ex=((ec={})[ey]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ec[em]=ew,ec);function ek(e){return("type"in e&&e.type.$$typeof)===em?ew:"$$typeof"in e?ex[e.$$typeof]:ev}var eE=Object.defineProperty,e_=Object.getOwnPropertyNames,eS=Object.getOwnPropertySymbols,eA=Object.getOwnPropertyDescriptor,eT=Object.getPrototypeOf,eC=Object.prototype;function eO(e){return"function"==typeof e}function ej(e){return"object"==typeof e&&"styledComponentId"in e}function eD(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function eR(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function eI(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function eP(e,t){Object.defineProperty(e,"toString",{value:t})}function eM(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var eN=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)if((i<<=1)<0)throw eM(16,"".concat(e));this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var o=r;o<i;o++)this.groupSizes[o]=0}for(var a=this.indexOfGroup(e+1),s=(o=0,t.length);o<s;o++)this.tag.insertRule(a,t[o])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var i=n;i<r;i++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,o=r;o<i;o++)t+="".concat(this.tag.getRule(o)).concat(X);return t},e}(),e$=new Map,eL=new Map,eF=1,eU=function(e){if(e$.has(e))return e$.get(e);for(;eL.has(eF);)eF++;var t=eF++;return e$.set(e,t),eL.set(t,e),t},ez=function(e,t){eF=t+1,e$.set(e,t),eL.set(t,e)},eB="style[".concat(W,"][").concat(G,'="').concat(K,'"]'),eq=new RegExp("^".concat(W,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),eV=function(e,t,n){for(var r,i=n.split(","),o=0,a=i.length;o<a;o++)(r=i[o])&&e.registerName(t,r)},eH=function(e,t){for(var n,r=(null!=(n=t.textContent)?n:"").split(X),i=[],o=0,a=r.length;o<a;o++){var s=r[o].trim();if(s){var l=s.match(eq);if(l){var u=0|parseInt(l[1],10),c=l[2];0!==u&&(ez(c,u),eV(e,c,l[3]),e.getTag().insertRules(u,i)),i.length=0}else i.push(s)}}},eW=function(e){for(var t=document.querySelectorAll(eB),n=0,r=t.length;n<r;n++){var i=t[n];i&&i.getAttribute(W)!==Y&&(eH(e,i),i.parentNode&&i.parentNode.removeChild(i))}},eY=function(e){var t,r=document.head,i=e||r,o=document.createElement("style"),a=(t=Array.from(i.querySelectorAll("style[".concat(W,"]"))))[t.length-1],s=void 0!==a?a.nextSibling:null;o.setAttribute(W,Y),o.setAttribute(G,K);var l=n.nc;return l&&o.setAttribute("nonce",l),i.insertBefore(o,s),o},eG=function(){function e(e){this.element=eY(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var i=t[n];if(i.ownerNode===e)return i}throw eM(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),eK=function(){function e(e){this.element=eY(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),eX=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),eZ=Z,eQ={isServer:!Z,useCSSOMInjection:!Q},eJ=function(){function e(e,t,n){void 0===e&&(e=et),void 0===t&&(t={});var i=this;this.options=r(r({},eQ),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&Z&&eZ&&(eZ=!1,eW(this)),eP(this,function(){for(var e=i.getTag(),t=e.length,n="",r=0;r<t;r++)!function(t){var r=eL.get(t);if(void 0===r)return;var o=i.names.get(r),a=e.getGroup(t);
46if(void 0!==o&&o.size&&0!==a.length){var s="".concat(W,".g").concat(t,'[id="').concat(r,'"]'),l="";void 0!==o&&o.forEach(function(e){e.length>0&&(l+="".concat(e,","))}),n+="".concat(a).concat(s,'{content:"').concat(l,'"}').concat(X)}}(r);return n})}return e.registerId=function(e){return eU(e)},e.prototype.rehydrate=function(){!this.server&&Z&&eW(this)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(r(r({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){var e,t,n;return this.tag||(this.tag=(t=(e=this.options).useCSSOMInjection,n=e.target,new eN(e.isServer?new eX(n):t?new eG(n):new eK(n))))},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(eU(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(eU(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(eU(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),e0=/&/g,e1=/^\s*\/\/.*$/gm;function e2(e){var t,n,r,i=void 0===e?et:e,o=i.options,a=void 0===o?et:o,s=i.plugins,l=void 0===s?ee:s,u=function(e,r,i){return i.startsWith(n)&&i.endsWith(n)&&i.replaceAll(n,"").length>0?".".concat(t):e},c=l.slice();c.push(function(e){e.type===f&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(e0,n).replace(r,u))}),a.prefix&&c.push(z),c.push(U);var h=function(e,i,o,s){void 0===i&&(i=""),void 0===o&&(o=""),void 0===s&&(s="&"),t=s,n=i,r=RegExp("\\".concat(n,"\\b"),"g");var l,u,f,h,p,y,v=e.replace(e1,""),S=(p=function e(t,n,r,i,o,a,s,l,u){for(var c,f,h,p,y=0,v=0,S=s,C=0,I=0,P=0,F=1,U=1,z=1,V=0,H="",W=o,Y=a,G=i,K=H;U;)switch(P=V,V=M()){case 40:if(108!=P&&58==x(K,S-1)){-1!=w(K+=b(L(V),"&","&\f"),"&\f",g(y?l[y-1]:0))&&(z=-1);break}case 34:case 39:case 91:K+=L(V);break;case 9:case 10:case 13:case 32:K+=function(e){for(;j=N();)if(j<33)M();else break;return $(e)>2||$(j)>3?"":" "}(P);break;case 92:K+=function(e,t){for(var n;--t&&M()&&!(j<48)&&!(j>102)&&(!(j>57)||!(j<65))&&(!(j>70)||!(j<97)););return n=O+(t<6&&32==N()&&32==M()),k(D,e,n)}(O-1,7);continue;case 47:switch(N()){case 42:case 47:_((c=function(e,t){for(;M();)if(e+j===57)break;else if(e+j===84&&47===N())break;return"/*"+k(D,t,O-1)+"*"+m(47===e?e:M())}(M(),O),f=n,h=r,p=u,R(c,f,h,d,m(j),k(c,2,-2),0,p)),u);break;default:K+="/"}break;case 123*F:l[y++]=E(K)*z;case 125*F:case 59:case 0:switch(V){case 0:case 125:U=0;case 59+v:-1==z&&(K=b(K,/\f/g,"")),I>0&&E(K)-S&&_(I>32?q(K+";",i,r,S-1,u):q(b(K," ","")+";",i,r,S-2,u),u);break;case 59:K+=";";default:if(_(G=B(K,n,r,y,v,o,l,H,W=[],Y=[],S,a),a),123===V)if(0===v)e(K,n,G,G,W,a,S,l,Y);else switch(99===C&&110===x(K,3)?100:C){case 100:case 108:case 109:case 115:e(t,G,G,i&&_(B(t,G,G,0,0,o,l,H,o,W=[],S,Y),Y),o,Y,S,l,i?W:Y);break;default:e(K,G,G,G,[""],Y,0,l,Y)}}y=v=I=0,F=z=1,H=K="",S=s;break;case 58:S=1+E(K),I=P;default:if(F<1){if(123==V)--F;else if(125==V&&0==F++&&125==(j=O>0?x(D,--O):0,T--,10===j&&(T=1,A--),j))continue}switch(K+=m(V),V*F){case 38:z=v>0?1:(K+="\f",-1);break;case 44:l[y++]=(E(K)-1)*z,z=1;break;case 64:45===N()&&(K+=L(M())),C=N(),v=S=E(H=K+=function(e){for(;!$(N());)M();return k(D,e,O)}(O)),V++;break;case 45:45===P&&2==E(K)&&(F=0)}}return a}("",null,null,null,[""],(h=f=o||i?"".concat(o," ").concat(i," { ").concat(v," }"):v,A=T=1,C=E(D=h),O=0,f=[]),0,[0],f),D="",p);a.namespace&&(S=function e(t,n){return t.map(function(t){return"rule"===t.type&&(t.value="".concat(n," ").concat(t.value),t.value=t.value.replaceAll(",",",".concat(n," ")),t.props=t.props.map(function(e){return"".concat(n," ").concat(e)})),Array.isArray(t.children)&&"@keyframes"!==t.type&&(t.children=e(t.children,n)),t})}(S,a.namespace));var I=[];return F(S,(u=(l=c.concat((y=function(e){return I.push(e)},function(e){!e.root&&(e=e.return)&&y(e)}))).length,function(e,t,n,r){for(var i="",o=0;o<u;o++)i+=l[o](e,t,n,r)||"";return i})),I};return h.hash=l.length?l.reduce(function(e,t){return t.name||eM(15),ed(e,t.name)},5381).toString():"",h}var e5=new eJ,e3=e2(),e4=o.createContext({shouldForwardProp:void 0,styleSheet:e5,stylis:e3}),e6=(e4.Consumer,o.createContext(void 0));function e8(){return(0,o.useContext)(e4)}function e7(e){var t=(0,o.useState)(e.stylisPlugins),n=t[0],r=t[1],i=e8().styleSheet,a=(0,o.useMemo)(function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.sheet,e.target,i]),l=(0,o.useMemo)(function(){return e2({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:n})},[e.enableVendorPrefixes,e.namespace,n]);(0,o.useEffect)(function(){s()(n,e.stylisPlugins)||r(e.stylisPlugins)},[e.stylisPlugins]);var u=(0,o.useMemo)(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:a,stylis:l}},[e.shouldForwardProp,a,l]);return o.createElement(e4.Provider,{value:u},o.createElement(e6.Provider,{value:l},e.children))}var e9=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=e3);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,eP(this,function(){throw eM(12,String(n.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=e3),this.name+e.hash},e}();function te(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;r>="A"&&r<="Z"?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var tt=function(e){return null==e||!1===e||""===e},tn=function(e){var t=[];for(var n in e){var r=e[n];e.hasOwnProperty(n)&&!tt(r)&&(Array.isArray(r)&&r.isCss||eO(r)?t.push("".concat(te(n),":"),r,";"):eI(r)?t.push.apply(t,i(i(["".concat(n," {")],tn(r),!1),["}"],!1)):t.push("".concat(te(n),": ").concat(null==r||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||n in V||n.startsWith("--")?String(r).trim():"".concat(r,"px"),";")))}return t};function tr(e,t,n,r){if(tt(e))return[];if(ej(e))return[".".concat(e.styledComponentId)];if(eO(e))return!eO(e)||e.prototype&&e.prototype.isReactComponent||!t?[e]:tr(e(t),t,n,r);return e instanceof e9?n?(e.inject(n,r),[e.getName(r)]):[e]:eI(e)?tn(e):Array.isArray(e)?Array.prototype.concat.apply(ee,e.map(function(e){return tr(e,t,n,r)})):[e.toString()]}function ti(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(eO(n)&&!ej(n))return!1}return!0}var to=ef(K),ta=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&ti(e),this.componentId=t,this.baseHash=ed(to,t),this.baseStyle=n,eJ.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n
vendor: 4,463 bytes, line 46
46):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=eD(r,this.staticRulesId);else{var i=eR(tr(this.rules,e,t,n)),o=eu(ed(this.baseHash,i)>>>0);if(!t.hasNameForId(this.componentId,o)){var a=n(i,".".concat(o),void 0,this.componentId);t.insertRules(this.componentId,o,a)}r=eD(r,o),this.staticRulesId=o}else{for(var s=ed(this.baseHash,n.hash),l="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)l+=c;else if(c){var d=eR(tr(c,e,t,n));s=ed(s,d+u),l+=d}}if(l){var f=eu(s>>>0);t.hasNameForId(this.componentId,f)||t.insertRules(this.componentId,f,n(l,".".concat(f),void 0,this.componentId)),r=eD(r,f)}}return r},e}(),ts=o.createContext(void 0);function tl(){var e=(0,o.useContext)(ts);if(!e)throw eM(18);return e}function tu(e){var t=o.useContext(ts),n=(0,o.useMemo)(function(){var n=e.theme;if(!n)throw eM(14);if(eO(n))return n(t);if(Array.isArray(n)||"object"!=typeof n)throw eM(8);return t?r(r({},t),n):n},[e.theme,t]);return e.children?o.createElement(ts.Provider,{value:n},e.children):null}ts.Consumer;var tc={};function td(e,t,n){var i,a,s,l,u=ej(e),c=!ep(e),d=t.attrs,f=void 0===d?ee:d,h=t.componentId,p=void 0===h?(i=t.displayName,a=t.parentComponentId,tc[s="string"!=typeof i?"sc":ea(i)]=(tc[s]||0)+1,l="".concat(s,"-").concat(eh(K+s+tc[s])),a?"".concat(a,"-").concat(l):l):h,g=t.displayName,m=void 0===g?ep(e)?"styled.".concat(e):"Styled(".concat(e.displayName||e.name||"Component",")"):g,y=t.displayName&&t.componentId?"".concat(ea(t.displayName),"-").concat(t.componentId):t.componentId||p,v=u&&e.attrs?e.attrs.concat(f).filter(Boolean):f,b=t.shouldForwardProp;if(u&&e.shouldForwardProp){var w=e.shouldForwardProp;if(t.shouldForwardProp){var x=t.shouldForwardProp;b=function(e,t){return w(e,t)&&x(e,t)}}else b=w}var k=new ta(n,y,u?e.componentStyle:void 0);function E(e,t){return function(e,t,n){var i,a=e.attrs,s=e.componentStyle,l=e.defaultProps,u=e.foldedComponentIds,c=e.styledComponentId,d=e.target,f=o.useContext(ts),h=e8(),p=e.shouldForwardProp||h.shouldForwardProp,g=en(t,f,l)||et,m=function(e,t,n){for(var i,o=r(r({},t),{className:void 0,theme:n}),a=0;a<e.length;a+=1){var s=eO(i=e[a])?i(o):i;for(var l in s)o[l]="className"===l?eD(o[l],s[l]):"style"===l?r(r({},o[l]),s[l]):s[l]}return t.className&&(o.className=eD(o.className,t.className)),o}(a,t,g),y=m.as||d,v={};for(var b in m)void 0===m[b]||"$"===b[0]||"as"===b||"theme"===b&&m.theme===g||("forwardedAs"===b?v.as=m.forwardedAs:p&&!p(b,y)||(v[b]=m[b]));var w=(i=e8(),s.generateAndInjectStyles(m,i.styleSheet,i.stylis)),x=eD(u,c);return w&&(x+=" "+w),m.className&&(x+=" "+m.className),v[ep(y)&&!er.has(y)?"class":"className"]=x,n&&(v.ref=n),(0,o.createElement)(y,v)}(_,e,t)}E.displayName=m;var _=o.forwardRef(E);return _.attrs=v,_.componentStyle=k,_.displayName=m,_.shouldForwardProp=b,_.foldedComponentIds=u?eD(e.foldedComponentIds,e.styledComponentId):"",_.styledComponentId=y,_.target=u?e.target:e,Object.defineProperty(_,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=u?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0;r<t.length;r++)!function e(t,n,r){if(void 0===r&&(r=!1),!r&&!eI(t)&&!Array.isArray(t))return n;if(Array.isArray(n))for(var i=0;i<n.length;i++)t[i]=e(t[i],n[i]);else if(eI(n))for(var i in n)t[i]=e(t[i],n[i]);return t}(e,t[r],!0);return e}({},e.defaultProps,t):t}}),eP(_,function(){return".".concat(_.styledComponentId)}),c&&function e(t,n,r){if("string"!=typeof n){if(eC){var i=eT(n);i&&i!==eC&&e(t,i,r)}var o=e_(n);eS&&(o=o.concat(eS(n)));for(var a=ek(t),s=ek(n),l=0;l<o.length;++l){var u=o[l];if(!(u in eb||r&&r[u]||s&&u in s||a&&u in a)){var c=eA(n,u);try{eE(t,u,c)}catch(e){}}}}return t}(_,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),_}function tf(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n}var th=function(e){return Object.assign(e,{isCss:!0})};function tp(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return eO(e)||eI(e)?th(tr(tf(ee,i([e],t,!0)))):0===t.length&&1===e.length&&"string"==typeof e[0]?tr(e):th(tr(tf(e,t)))}var tg=function(e){return function e(t,n,o){if(void 0===o&&(o=et),!n)throw eM(1,n);var a=function(e){for(var r=[],a=1;a<arguments.length;a++)r[a-1]=arguments[a];return t(n,o,tp.apply(void 0,i([e],r,!1)))};return a.attrs=function(i){return e(t,n,r(r({}
46,o),{attrs:Array.prototype.concat(o.attrs,i).filter(Boolean)}))},a.withConfig=function(i){return e(t,n,r(r({},o),i))},a}(td,e)},tm=tg;er.forEach(function(e){tm[e]=tg(e)});var ty=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=ti(e),eJ.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var i=r(eR(tr(this.rules,t,n,r)),""),o=this.componentId+e;n.insertRules(o,o,i)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&eJ.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function tv(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var a=tp.apply(void 0,i([e],t,!1)),s="sc-global-".concat(eh(JSON.stringify(a))),l=new ty(a,s),u=function(e){var t=e8(),n=o.useContext(ts),r=o.useRef(t.styleSheet.allocateGSInstance(s)).current;return t.styleSheet.server&&c(r,e,t.styleSheet,n,t.stylis),o.useLayoutEffect(function(){if(!t.styleSheet.server)return c(r,e,t.styleSheet,n,t.stylis),function(){return l.removeStyles(r,t.styleSheet)}},[r,e,t.styleSheet,n,t.stylis]),null};function c(e,t,n,i,o){if(l.isStatic)l.renderStyles(e,J,n,o);else{var a=r(r({},t),{theme:en(t,i,u.defaultProps)});l.renderStyles(e,a,n,o)}}return o.memo(u)}function tb(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=eR(tp.apply(void 0,i([e],t,!1)));return new e9(eh(r),r)}var tw=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var r=n.nc,i=eR([r&&'nonce="'.concat(r,'"'),"".concat(W,'="true"'),"".concat(G,'="').concat(K,'"')].filter(Boolean)," ");return"<style ".concat(i,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw eM(2);return e._emitSheetCSS()}
46,this.getStyleElement=function(){if(e.sealed)throw eM(2);var t,i=e.instance.toString();if(!i)return[];var a=((t={})[W]="",t[G]=K,t.dangerouslySetInnerHTML={__html:i},t),s=n.nc;return s&&(a.nonce=s),[o.createElement("style",r({},a,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new eJ({isServer:!0}),this.sealed=!1}return e.prototype.collectStyles=function(e){if(this.sealed)throw eM(2);return o.createElement(e7,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw eM(3)},e}()},49903:(e,t,n)=>{"use strict";n.d(t,{t:()=>o});var r=n(37245),i=function(e){return e};function o(e){void 0===e&&(e=i);var t=new r.B;return[t.pipe(e),function(e){return t.next(e)}]}},50134:(e,t,n)=>{"use strict";let r=n(74907);e.exports=(e,t,n)=>{try{t=new r(t,n)}catch(e){return!1}return t.test(e)}},50191:(e,t,n)=>{"use strict";n.d(t,{M:()=>i});var r=n(82203);function i(e){let t=(0,r.useRef)(null);return null===t.current&&(t.current=e()),t.current}},50195:e=>{"use strict";function t(e){e.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.value.replace(/&amp;/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(t,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};i["language-"+n]={pattern:/[\s\S]+/,inside:e.languages[n]};var o={};o[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return t}),"i"),lookbehind:!0,greedy:!0,inside:i},e.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}e.exports=t,t.displayName="markup",t.aliases=["html","mathml","svg","xml","ssml","atom","rss"]},50233:(e,t,n)=>{"use strict";let r;function i(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function o(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function a(e,t,n,r){if("function"==typeof t){let[i,a]=o(r);t=t(void 0!==n?n:e.custom,i,a)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[i,a]=o(r);t=t(void 0!==n?n:e.custom,i,a)}return t}function s(e,t,n){let r=e.getProps();return a(r,t,void 0!==n?n:r.custom,e)}function l(e,t){return e?.[t]??e?.default??e}n.d(t,{P:()=>op});let u=e=>e,c={},d=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],f={value:null,addProjectionMetrics:null};function h(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=d.reduce((e,n)=>(e[n]=function(e,t){let n=new Set,r=new Set,i=!1,o=!1,a=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},l=0;function u(t){a.has(t)&&(c.schedule(t),e()),l++,t(s)}let c={schedule:(e,t=!1,o=!1)=>{let s=o&&i?n:r;return t&&a.add(e),s.has(e)||s.add(e),e},cancel:e=>{r.delete(e),a.delete(e)},process:e=>{if(s=e,i){o=!0;return}
46i=!0,[n,r]=[r,n],n.forEach(u),t&&f.value&&f.value.frameloop[t].push(l),l=0,n.clear(),i=!1,o&&(o=!1,c.process(e))}};return c}(o,t?n:void 0),e),{}),{setup:s,read:l,resolveKeyframes:u,preUpdate:h,update:p,preRender:g,render:m,postRender:y}=a,v=()=>{let o=c.useManualTiming?i.timestamp:performance.now();n=!1,c.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,40),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),l.process(i),u.process(i),h.process(i),p.process(i),g.process(i),m.process(i),y.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(v))};return{schedule:d.reduce((t,o)=>{let s=a[o];return t[o]=(t,o=!1,a=!1)=>(!n&&(n=!0,r=!0,i.isProcessing||e(v)),s.schedule(t,o,a)),t},{}),cancel:e=>{for(let t=0;t<d.length;t++)a[d[t]].cancel(e)},state:i,steps:a}}let{schedule:p,cancel:g,state:m,steps:y}=h("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:u,!0),v=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],b=new Set(v),w=new Set(["width","height","top","left","right","bottom",...v]);function x(e,t){-1===e.indexOf(t)&&e.push(t)}function k(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class E{constructor(){this.subscriptions=[]}add(e){return x(this.subscriptions,e),()=>k(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function _(){r=void 0}let S={now:()=>(void 0===r&&S.set(m.isProcessing||c.useManualTiming?m.timestamp:performance.now()),r),set:e=>{r=e,queueMicrotask(_)}},A={current:void 0};class T{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{let n=S.now();if(this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty();t&&this.events.renderRequest?.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=S.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new E);let n=this.events[e].add(t);return"change"===e?()=>{n(),p.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return A.current&&A.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e;let t=S.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let n=Math.min(this.updatedAt-this.prevUpdatedAt,30);return e=parseFloat(this.current)-parseFloat(this.prevFrameValue),n?1e3/n*e:0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),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.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function C(e,t){return new T(e,t)}let O=e=>Array.isArray(e),j=e=>!!(e&&e.getVelocity);function D(e,t){let n=e.getValue("willChange");if(j(n)&&n.add)return n.add(t);if(!n&&c.WillChange){let n=new c.WillChange("auto");e.addValue("willChange",n),n.add(t)}}let R=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),I="data-"+R("framerAppearId"),P=(e,t)=>n=>t(e(n)),M=(...e)=>e.reduce(P),N=(e,t,n)=>n>t?t:n<e?e:n,$=e=>1e3*e,L={layout:0,mainThread:0,waapi:0},F=()=>{},U=()=>{},z=e=>t=>"string"==typeof t&&t.startsWith(e),B=z("--"),q=z("var(--"),V=e=>!!q(e)&&H.test(e.split("/*")[0].trim()),H=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,W={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Y={...W,transform:e=>N(0,1,e)},G={...W,default:1},K=e=>Math.round(1e5*e)/1e5,X=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,Z=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Q=(e,t)=>n=>!!("string"==typeof n&&Z.test(n)&&n.startsWith(e)||t&&null!=n&&Object.prototype.hasOwnProperty.call(n,t)),J=(e,t,n
46)=>r=>{if("string"!=typeof r)return r;let[i,o,a,s]=r.match(X);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},ee={...W,transform:e=>Math.round(N(0,255,e))},et={test:Q("rgb","red"),parse:J("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ee.transform(e)+", "+ee.transform(t)+", "+ee.transform(n)+", "+K(Y.transform(r))+")"},en={test:Q("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:et.transform},er=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),ei=er("deg"),eo=er("%"),ea=er("px"),es=er("vh"),el=er("vw"),eu={...eo,parse:e=>eo.parse(e)/100,transform:e=>eo.transform(100*e)},ec={test:Q("hsl","hue"),parse:J("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+eo.transform(K(t))+", "+eo.transform(K(n))+", "+K(Y.transform(r))+")"},ed={test:e=>et.test(e)||en.test(e)||ec.test(e),parse:e=>et.test(e)?et.parse(e):ec.test(e)?ec.parse(e):en.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?et.transform(e):ec.transform(e),getAnimatableNone:e=>{let t=ed.parse(e);return t.alpha=0,ed.transform(t)}},ef=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,eh="number",ep="color",eg=/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 em(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],o=0,a=t.replace(eg,e=>(ed.test(e)?(r.color.push(o),i.push(ep),n.push(ed.parse(e))):e.startsWith("var(")?(r.var.push(o),i.push("var"),n.push(e)):(r.number.push(o),i.push(eh),n.push(parseFloat(e))),++o,"${}")).split("${}");return{values:n,split:a,indexes:r,types:i}}function ey(e){return em(e).values}function ev(e){let{split:t,types:n}=em(e),r=t.length;return e=>{let i="";for(let o=0;o<r;o++)if(i+=t[o],void 0!==e[o]){let t=n[o];t===eh?i+=K(e[o]):t===ep?i+=ed.transform(e[o]):i+=e[o]}return i}}let eb=e=>"number"==typeof e?0:ed.test(e)?ed.getAnimatableNone(e):e,ew={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(X)?.length||0)+(e.match(ef)?.length||0)>0},parse:ey,createTransformer:ev,getAnimatableNone:function(e){let t=ey(e);return ev(e)(t.map(eb))}};function ex(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ek(e,t){return n=>n>0?t:e}let eE=(e,t,n)=>e+(t-e)*n,e_=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},eS=[en,et,ec];function eA(e){let t=eS.find(t=>t.test(e));if(F(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===ec&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,o=0,a=0;if(t/=100){let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=ex(s,r,e+1/3),o=ex(s,r,e),a=ex(s,r,e-1/3)}else i=o=a=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:r}}(n)),n}let eT=(e,t)=>{let n=eA(e),r=eA(t);if(!n||!r)return ek(e,t);let i={...n};return e=>(i.red=e_(n.red,r.red,e),i.green=e_(n.green,r.green,e),i.blue=e_(n.blue,r.blue,e),i.alpha=eE(n.alpha,r.alpha,e),et.transform(i))},eC=new Set(["none","hidden"]);function eO(e,t){return n=>eE(e,t,n)}function ej(e){return"number"==typeof e?eO:"string"==typeof e?V(e)?ek:ed.test(e)?eT:eI:Array.isArray(e)?eD:"object"==typeof e?ed.test(e)?eT:eR:ek}function eD(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>ej(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function eR(e,t){let n={...e,...t},r={};for(let i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=ej(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}let eI=(e,t)=>{let n=ew.createTransformer(t),r=em(e),i=em(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>
46=i.indexes.number.length?eC.has(e)&&!i.values.length||eC.has(t)&&!r.values.length?function(e,t){return eC.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):M(eD(function(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let o=t.types[i],a=e.indexes[o][r[o]],s=e.values[a]??0;n[i]=s,r[o]++}return n}(r,i),i.values),n):(F(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),ek(e,t))};function eP(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?eE(e,t,n):ej(e)(e,t)}let eM=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>p.update(t,e),stop:()=>g(t),now:()=>m.isProcessing?m.timestamp:S.now()}},eN=(e,t,n=10)=>{let r="",i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(1e4*e(t/(i-1)))/1e4+", ";return`linear(${r.substring(0,r.length-2)})`};function e$(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}
46function eL(e,t,n){var r,i;let o=Math.max(t-5,0);return r=n-e(o),(i=t-o)?1e3/i*r:0}let eF={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function eU(e,t){return e*Math.sqrt(1-t*t)}let ez=["duration","bounce"],eB=["stiffness","damping","mass"];function eq(e,t){return t.some(t=>void 0!==e[t])}function eV(e=eF.visualDuration,t=eF.bounce){let n,r="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:i,restDelta:o}=r,a=r.keyframes[0],s=r.keyframes[r.keyframes.length-1],l={done:!1,value:a},{stiffness:u,damping:c,mass:d,duration:f,velocity:h,isResolvedFromDuration:p}=function(e){let t={velocity:eF.velocity,stiffness:eF.stiffness,damping:eF.damping,mass:eF.mass,isResolvedFromDuration:!1,...e};if(!eq(e,eB)&&eq(e,ez))if(e.visualDuration){let n=2*Math.PI/(1.2*e.visualDuration),r=n*n,i=2*N(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:eF.mass,stiffness:r,damping:i}}else{let n=function({duration:e=eF.duration,bounce:t=eF.bounce,velocity:n=eF.velocity,mass:r=eF.mass}){let i,o;F(e<=$(eF.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=N(eF.minDamping,eF.maxDamping,a),e=N(eF.minDuration,eF.maxDuration,e/1e3),a<1?(i=t=>{let r=t*a,i=r*e;return .001-(r-n)/eU(t,a)*Math.exp(-i)},o=t=>{let r=t*a*e,o=Math.pow(a,2)*Math.pow(t,2)*e,s=Math.exp(-r),l=eU(Math.pow(t,2),a);return(r*n+n-o)*s*(-i(t)+.001>0?-1:1)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),o=t=>e*e*(n-t)*Math.exp(-t*e));let s=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(i,o,5/e);if(e=$(e),isNaN(s))return{stiffness:eF.stiffness,damping:eF.damping,duration:e};{let t=Math.pow(s,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}(e);(t={...t,...n,mass:eF.mass}).isResolvedFromDuration=!0}return t}({...r,velocity:-((r.velocity||0)/1e3)}),g=h||0,m=c/(2*Math.sqrt(u*d)),y=s-a,v=Math.sqrt(u/d)/1e3,b=5>Math.abs(y);if(i||(i=b?eF.restSpeed.granular:eF.restSpeed.default),o||(o=b?eF.restDelta.granular:eF.restDelta.default),m<1){let e=eU(v,m);n=t=>s-Math.exp(-m*v*t)*((g+m*v*y)/e*Math.sin(e*t)+y*Math.cos(e*t))}else if(1===m)n=e=>s-Math.exp(-v*e)*(y+(g+v*y)*e);else{let e=v*Math.sqrt(m*m-1);n=t=>{let n=Math.exp(-m*v*t),r=Math.min(e*t,300);return s-n*((g+m*v*y)*Math.sinh(r)+e*y*Math.cosh(r))/e}}let w={calculatedDuration:p&&f||null,next:e=>{let t=n(e);if(p)l.done=e>=f;else{let r=0===e?g:0;m<1&&(r=0===e?$(g):eL(n,e,t));let a=Math.abs(s-t)<=o;l.done=Math.abs(r)<=i&&a}return l.value=l.done?s:t,l},toString:()=>{let e=Math.min(e$(w),2e4),t=eN(t=>w.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return w}function eH({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:s,max:l,restDelta:u=.5,restSpeed:c}){let d,f,h=e[0],p={done:!1,value:h},g=n*t,m=h+g,y=void 0===a?m:a(m);y!==m&&(g=y-h);let v=e=>-g*Math.exp(-e/r),b=e=>y+v(e),w=e=>{let t=v(e),n=b(e);p.done=Math.abs(t)<=u,p.value=p.done?y:n},x=e=>{let t;if(t=p.value,void 0!==s&&t<s||void 0!==l&&t>l){var n;d=e,f=eV({keyframes:[p.value,(n=p.value,void 0===s?l:void 0===l||Math.abs(s-n)<Math.abs(l-n)?s:l)],velocity:eL(b,e,p.value),damping:i,stiffness:o,restDelta:u,restSpeed:c})}};return x(0),{calculatedDuration:null,next:e=>{let t=!1;return(f||void 0!==d||(t=!0,w(e),x(e)),void 0!==d&&e>=d)?f.next(e-d):(t||w(e),p)}}}eV.applyToOptions=e=>{let t=function(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(e$(r),2e4);return{type:"keyframes",ease:e=>r.next(i*e).value/t,duration:i/1e3}}(e,100,eV);return e.ease=t.ease,e.duration=$(t.duration),e.type="keyframes",e};let eW=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function eY(e,t,n,r){return e===t&&n===r?u:i=>0===i||1===i?i:eW(function(e,t,n,r,i){let o,a,s=0;do(o=eW(a=t+(n-t)/2,r,i)-e)>0?n=a:t=a;while(Math.abs(o)>1e-7&&++s<12);return a}(i,0,1,e,n),t,r)}let eG=eY(.42,0,1,1),eK=eY(0,0,.58,1),eX=eY(.42,0,.58,1),eZ=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,eQ=e=>t=>1-e(1-t),eJ=eY(.33,1.53,.69,.99),e0=eQ(eJ),e1=eZ(e0),e2=e=>(e*=2)<1?.5*e0(e):.5*(2-Math.pow(2,-10*(e-1))),e5=e=>1-Math.sin(Math.acos(e)),e3=eQ(e5),e4=eZ(e5),e6=e=>Array.isArray(e)&&"number"==typeof e[0],e8={linear:u,easeIn:eG,easeInOut:eX,easeOut:eK,circIn:e5,circInOut:e4,circOut:e3,backIn:e0,backInOut:e1,backOut:eJ,anticipate:e2},e7=e=>{if(e6(e)){U(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,n,r,i]=e;return eY(t,n,r,i)}return"string"==typeof e?(U(void 0!==e8[e],`Invalid easing type '${e}'`),e8[e]):e}
46,e9=(e,t,n)=>{let r=t-e;return 0===r?1:(n-e)/r};function te({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){var i;let o=Array.isArray(r)&&"number"!=typeof r[0]?r.map(e7):e7(r),a={done:!1,value:t[0]},s=function(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let o=e.length;if(U(o===t.length,"Both input and output ranges must be the same length"),1===o)return()=>t[0];if(2===o&&t[0]===t[1])return()=>t[1];let a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=function(e,t,n){let r=[],i=n||c.mix||eP,o=e.length-1;for(let n=0;n<o;n++){let o=i(e[n],e[n+1]);t&&(o=M(Array.isArray(t)?t[n]||u:t,o)),r.push(o)}return r}(t,r,i),l=s.length,d=n=>{if(a&&n<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=e9(e[r],e[r+1],n);return s[r](i)};return n?t=>d(N(e[0],e[o-1],t)):d}((i=n&&n.length===t.length?n:function(e){let t=[0];return!function(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=e9(0,t,r);e.push(eE(n,1,i))}}(t,e.length-1),t}(t),i.map(t=>t*e)),t,{ease:Array.isArray(o)?o:t.map(()=>o||eX).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(a.value=s(t),a.done=t>=e,a)}}let tt=e=>null!==e;function tn(e,{repeat:t,repeatType:n="loop"},r,i=1){let o=e.filter(tt),a=i<0||t&&"loop"!==n&&t%2==1?0:o.length-1;return a&&void 0!==r?r:o[a]}let tr={decay:eH,inertia:eH,tween:te,keyframes:te,spring:eV};function ti(e){"string"==typeof e.type&&(e.type=tr[e.type])}class to{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let ta=e=>e/100;class ts extends to{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==S.now()&&this.tick(S.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},L.mainThread++,this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;ti(e);let{type:t=te,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:o=0}=e,{keyframes:a}=e,s=t||te;s!==te&&"number"!=typeof a[0]&&(this.mixKeyframes=M(ta,eP(a[0],a[1])),a=[0,100]);let l=s({...e,keyframes:a});"mirror"===i&&(this.mirroredGenerator=s({...e,keyframes:[...a].reverse(),velocity:-o})),null===l.calculatedDuration&&(l.calculatedDuration=e$(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:s}=this;if(null===this.startTime)return n.next(0);let{delay:l=0,keyframes:u,repeat:c,repeatType:d,repeatDelay:f,type:h,onUpdate:p,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let m=this.currentTime-l*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?m<0:m>r;this.currentTime=Math.max(m,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let v=this.currentTime,b=n;if(c){let e=Math.min(this.currentTime,r)/a,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,(t=Math.min(t,c+1))%2&&("reverse"===d?(n=1-n,f&&(n-=f/a)):"mirror"===d&&(b=o)),v=N(0,1,n)*a}let w=y?{done:!1,value:u[0]}:b.next(v);i&&(w.value=i(w.value));let{done:x}=w;y||null===s||(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let k=null===this.holdTime&&("finished"===this.state||"running"===this.state&&x);return k&&h!==eH&&(w.value=tn(u,this.options,g,this.speed)),p&&p(w.value),k&&this.finish(),w}then(e,t){return this.finished.then(e,t)}get duration(){return this.calculatedDuration/1e3}get time(){return this.currentTime/1e3}set time(e){e=$(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(S.now());let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:e=eM,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=t??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(S.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,L.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}let tl=e=>180*e/Math.PI,tu=e=>td(tl(Math.atan2(e[1],e[0]))),tc={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:tu,rotateZ:tu,skewX:e=>tl(Math.atan(e[1])),skewY:e=>tl(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},td=e=>((e%=360)<0&&(e+=360),e),tf=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),th=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),tp={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tf,scaleY:th,scale:e=>(tf(e)+th(e))/2,rotateX:e=>td(tl(Math.atan2(e[6],e[5]))),rotateY:e=>td(tl(Math.atan2(-e[2],e[0]))),rotateZ:tu,rotate:tu,skewX:e=>tl(Math.atan(e[4])),skewY:e=>tl(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function tg(e){return+!!e.includes("scale")}function tm(e,t){let n,r;if(!e||"none"===e)return tg(t);let i=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(i)n=tp,r=i;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=tc,r=t}if(!r)return tg(t);let o=n[t],a=r[1].split(",").map(ty);return"function"==typeof o?o(a):a[o]}function ty(e){return parseFloat(e.trim())}let tv=e=>e===W||e===ea,tb=new Set(["x","y","z"]),tw=v.filter(e=>!tb.has(e)),tx={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>tm(t,"x"),y:(e,{transform:t})=>tm(t,"y")};tx.translateX=tx.x,tx.translateY=tx.y;
46let tk=new Set,tE=!1,t_=!1,tS=!1;function tA(){if(t_){let e=Array.from(tk).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=function(e){let t=[];return tw.forEach(n=>{let r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(+!!n.startsWith("scale")))}),t}(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}t_=!1,tE=!1,tk.forEach(e=>e.complete(tS)),tk.clear()}function tT(){tk.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(t_=!0)})}class tC{constructor(e,t,n,r,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(tk.add(this),tE||(tE=!0,p.read(tT),p.resolveKeyframes(tA))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(null===e[0]){let i=r?.get(),o=e[e.length-1];if(void 0!==i)e[0]=i;else if(n&&t){let r=n.readValue(t,o);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=o),r&&void 0===i&&r.set(e[0])}for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),tk.delete(this)}cancel(){"scheduled"===this.state&&(tk.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}function tO(e){let t;return()=>(void 0===t&&(t=e()),t)}let tj=tO(()=>void 0!==window.ScrollTimeline),tD={},tR=function(e,t){let n=tO(e);return()=>tD[t]??n()}(()=>{try{document.createElement("div").animate({opacity:0}
46,{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),tI=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,tP={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:tI([0,.65,.55,1]),circOut:tI([.55,0,1,.45]),backIn:tI([.31,.01,.66,-.59]),backOut:tI([.33,1.53,.69,.99])};function tM(e){return"function"==typeof e&&"applyToOptions"in e}class tN extends to{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:a,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=o,this.options=e,U("string"!=typeof e.type,'animateMini doesn\'t support "type" as a string. Did you mean to import { spring } from "motion"?');let l=function({type:e,...t}){return tM(e)&&tR()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:s="easeOut",times:l}={},u){let c={[t]:n};l&&(c.offset=l);let d=function e(t,n){if(t)return"function"==typeof t?tR()?eN(t,n):"ease-out":e6(t)?tI(t):Array.isArray(t)?t.map(t=>e(t,n)||tP.easeOut):tP[t]}(s,i);Array.isArray(d)&&(c.easing=d),f.value&&L.waapi++;let h={delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"};u&&(h.pseudoElement=u);let p=e.animate(c,h);return f.value&&p.finished.finally(()=>{L.waapi--}),p}(t,n,r,l,i),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=tn(r,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(e):function(e,t,n){t.startsWith("--")?e.style.setProperty(t,n):e.style[t]=n}(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(e){this.finishedTime=null,this.animation.currentTime=$(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&tj())?(this.animation.timeline=e,u):t(this)}}let t$={anticipate:e2,backInOut:e1,circInOut:e4};class tL extends tN{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in t$&&(e.ease=t$[e.ease])}(e),ti(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...o}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let a=new ts({...o,autoplay:!1}),s=$(this.finishedTime??this.time);t.setWithVelocity(a.sample(s-10).value,a.sample(s).value,10),a.stop()}}let tF=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(ew.test(e)||"0"===e)&&!e.startsWith("url("));var tU,tz,tB=n(95890);let tq=new Set(["opacity","clipPath","filter","transform"]),tV=tO(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class tH extends to{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o="loop",keyframes:a,name:s,motionValue:l,element:u,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=S.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:
46o,name:s,motionValue:l,element:u,...c},f=u?.KeyframeResolver||tC;this.keyframeResolver=new f(a,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:o,velocity:a,delay:s,isHandoff:l,onUpdate:d}=n;this.resolvedAt=S.now(),!function(e,t,n,r){let i=e[0];if(null===i)return!1;if("display"===t||"visibility"===t)return!0;let o=e[e.length-1],a=tF(i,t),s=tF(o,t);return F(a===s,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!!a&&!!s&&(function(e){let t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||tM(n))&&r)}(e,i,o,a)&&((c.instantAnimations||!s)&&d?.(tn(e,n,t)),e[0]=e[e.length-1],n.duration=0,n.repeat=0);let f={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},h=!l&&function(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:o,type:a}=e;if(!(0,tB.s)(t?.owner?.current))return!1;let{onUpdate:s,transformTemplate:l}=t.owner.getProps();return tV()&&n&&tq.has(n)&&("transform"!==n||!l)&&!s&&!r&&"mirror"!==i&&0!==o&&"inertia"!==a}(f)?new tL({...f,element:f.motionValue.owner.current}):new ts(f);h.finished.then(()=>this.notifyFinished()).catch(u),this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),tS=!0,tT(),tA(),tS=!1),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let tW=e=>null!==e,tY={type:"spring",stiffness:500,damping:25,restSpeed:10},tG={type:"keyframes",duration:.8},tK={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},tX=(e,t,n,r={},i,o)=>a=>{let s=l(r,e)||{},u=s.delay||r.delay||0,{elapsed:d=0}=r;d-=$(u);let f={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-d,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:o?void 0:i};!function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(s)&&Object.assign(f,((e,{keyframes:t})=>t.length>2?tG:b.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:tY:tK)(e,f)),f.duration&&(f.duration=$(f.duration)),f.repeatDelay&&(f.repeatDelay=$(f.repeatDelay)),void 0!==f.from&&(f.keyframes[0]=f.from);let h=!1;if(!1!==f.type&&(0!==f.duration||f.repeatDelay)||(f.duration=0,0===f.delay&&(h=!0)),(c.instantAnimations||c.skipAnimations)&&(h=!0,f.duration=0,f.delay=0),f.allowFlatten=!s.type&&!s.ease,h&&!o&&void 0!==t.get()){let e=function(e,{repeat:t,repeatType:n="loop"},r){let i=e.filter(tW),o=t&&"loop"!==n&&t%2==1?0:i.length-1;return i[o]}(f.keyframes,s);if(void 0!==e)return void p.update(()=>{f.onUpdate(e),f.onComplete()})}return s.isSync?new ts(f):new tH(f)};function tZ(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:a,...u}=t;r&&(o=r);let c=[],d=i&&e.animationState&&e.animationState.getState()[i];for(let t in u){let r=e.getValue(t,e.latestValues[t]??null),i=u[t];if(void 0===i||d&&function({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}(d,t))continue;let a={delay:n,...l(o||{},t)},s=r.get();if(void 0!==s&&!r.isAnimating&&!Array.isArray(i)&&i===s&&!a.velocity)continue;let f=!1;if(window.MotionHandoffAnimation){let n=e.props[I];if(n){let e=window.MotionHandoffAnimation(n,t,p);null!==e&&(a.startTime=e,f=!0)}}D(e,t),r.start(tX(t,r,i,e.shouldReduceMotion&&w.has(t)?{type:!1}:a,e,f));let h=r.animation;h&&c.push(h)}return a&&Promise.all(c).then(()=>{p.update(()=>{a&&function(e,t){let{transitionEnd:n={},transition:r={},...i}=s(e,t)||{};for(let t in i={...i,...n}){var o;let n=O(o=i[t])?o[o.length-1]||0:o;e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,C(n))}}(e,a)})}),c}function tQ(e,t,n={}){let r=s(e,t,"exit"===n.type?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let o=r?()=>Promise.all(tZ(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:o=0,staggerChildren:a,staggerDirection:s}=i;return function(e,t,n=0,r=0,i=1,o){let a=[],s=(e.variantChildren.size-1)*r,l=1===i?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(tJ).forEach((e,r)=>{e.notify("AnimationStart",t),a.push(tQ(e,t,{...o,delay:n+l(r)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,o+r,a,s,n)}:()=>Promise.resolve(),{when:l}=i;if(!l)return Promise.all([o(),a(n.delay)]);{let[e,t]="beforeChildren"===l?[o,a]:[a,o];return e().then(()=>t())}}function tJ(e,t){return e.sortNodePosition(t)}function t0(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function t1(e){return"string"==typeof e||Array.isArray(e)}let t2=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],t5=["initial",...t2],t3=t5.length,t4=[...t2].reverse(),t6=t2.length;function t8(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function t7(){return{animate:t8(!0),whileInView:t8(),whileHover:t8(),whileTap:t8(),whileDrag:t8(),whileFocus:t8(),exit:t8()}}class t9{constructor(e){this.isMounted=!1,this.node=e}update(){}}class ne extends t9{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t))r=Promise.all(t.map(t=>tQ(e,t,n)));else if("string"==typeof t)r=tQ(e,t,n);else{let i="function"==typeof t?s(e,t,n.custom):t;r=Promise.all(tZ(e,i,n))}return r.then(()=>
46{e.notify("AnimationComplete",t)})})(e,t,n))),n=t7(),r=!0,o=t=>(n,r)=>{let i=s(e,r,"exit"===t?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function a(a){let{props:l}=e,u=function e(t){if(!t)return;if(!t.isControllingVariants){let n=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(n.initial=t.props.initial),n}let n={};for(let e=0;e<t3;e++){let r=t5[e],i=t.props[r];(t1(i)||!1===i)&&(n[r]=i)}return n}(e.parent)||{},c=[],d=new Set,f={},h=1/0;for(let t=0;t<t6;t++){var p,g;let s=t4[t],m=n[s],y=void 0!==l[s]?l[s]:u[s],v=t1(y),b=s===a?m.isActive:null;!1===b&&(h=t);let w=y===u[s]&&y!==l[s]&&v;if(w&&r&&e.manuallyAnimateOnMount&&(w=!1),m.protectedKeys={...f},!m.isActive&&null===b||!y&&!m.prevProp||i(y)||"boolean"==typeof y)continue;let x=(p=m.prevProp,"string"==typeof(g=y)?g!==p:!!Array.isArray(g)&&!t0(g,p)),k=x||s===a&&m.isActive&&!w&&v||t>h&&v,E=!1,_=Array.isArray(y)?y:[y],S=_.reduce(o(s),{});!1===b&&(S={});let{prevResolvedValues:A={}}=m,T={...A,...S},C=t=>{k=!0,d.has(t)&&(E=!0,d.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in T){let t=S[e],n=A[e];if(!f.hasOwnProperty(e))(O(t)&&O(n)?t0(t,n):t===n)?void 0!==t&&d.has(e)?C(e):m.protectedKeys[e]=!0:null!=t?C(e):d.add(e)}m.prevProp=y,m.prevResolvedValues=S,m.isActive&&(f={...f,...S}),r&&e.blockInitialAnimation&&(k=!1);let j=!(w&&x)||E;k&&j&&c.push(..._.map(e=>({animation:e,options:{type:s}})))}if(d.size){let t={};if("boolean"!=typeof l.initial){let n=s(e,Array.isArray(l.initial)?l.initial[0]:l.initial);n&&n.transition&&(t.transition=n.transition)}d.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),c.push({animation:t})}let m=!!c.length;return r&&(!1===l.initial||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(c):Promise.resolve()}return{animateChanges:a,setActive:function(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=a(t);for(let e in n)n[e].protectedKeys={};return i},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=t7(),r=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();i(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let nt=0;class nn extends t9{constructor(){super(...arguments),this.id=nt++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;let r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>{t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}let nr={x:!1,y:!1};function ni(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}let no=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function na(e){return{point:{x:e.pageX,y:e.pageY}}}function ns(e,t,n,r){return ni(e,t,e=>no(e)&&n(e,na(e)),r)}function nl({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function nu(e){return e.max-e.min}function nc(e,t,n,r=.5){e.origin=r,e.originPoint=eE(t.min,t.max,e.origin),e.scale=nu(n)/nu(t),e.translate=eE(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function nd(e,t,n,r){nc(e.x,t.x,n.x,r?r.originX:void 0),nc(e.y,t.y,n.y,r?r.originY:void 0)}function nf(e,t,n){e.min=n.min+t.min,e.max=e.min+nu(t)}function nh(e,t,n){e.min=t.min-n.min,e.max=e.min+nu(t)}
46function np(e,t,n){nh(e.x,t.x,n.x),nh(e.y,t.y,n.y)}let ng=()=>({translate:0,scale:1,origin:0,originPoint:0}),nm=()=>({x:ng(),y:ng()}),ny=()=>({min:0,max:0}),nv=()=>({x:ny(),y:ny()});function nb(e){return[e("x"),e("y")]}function nw(e){return void 0===e||1===e}function nx({scale:e,scaleX:t,scaleY:n}){return!nw(e)||!nw(t)||!nw(n)}function nk(e){return nx(e)||nE(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function nE(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function n_(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function nS(e,t=0,n=1,r,i){e.min=n_(e.min,t,n,r,i),e.max=n_(e.max,t,n,r,i)}function nA(e,{x:t,y:n}){nS(e.x,t.translate,t.scale,t.originPoint),nS(e.y,n.translate,n.scale,n.originPoint)}function nT(e,t){e.min=e.min+t,e.max=e.max+t}function nC(e,t,n,r,i=.5){let o=eE(e.min,e.max,i);nS(e,t,n,o,r)}function nO(e,t){nC(e.x,t.x,t.scaleX,t.scale,t.originX),nC(e.y,t.y,t.scaleY,t.scale,t.originY)}function nj(e,t){return nl(function(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}let nD=({current:e})=>e?e.ownerDocument.defaultView:null;function nR(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}let nI=(e,t)=>Math.abs(e-t);class nP{constructor(e,t,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=n$(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){return Math.sqrt(nI(e.x,t.x)**2+nI(e.y,t.y)**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=m;this.history.push({...r,timestamp:i});let{onStart:o,onMove:a}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=nM(t,this.transformPagePoint),p.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=n$("pointercancel"===e.type?this.lastMoveEventInfo:nM(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!no(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;let o=nM(na(e),this.transformPagePoint),{point:a}=o,{timestamp:s}=m;this.history=[{...a,timestamp:s}];let{onSessionStart:l}=t;l&&l(e,n$(o,this.history)),this.removeListeners=M(ns(this.contextWindow,"pointermove",this.handlePointerMove),ns(this.contextWindow,"pointerup",this.handlePointerUp),ns(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),g(this.updatePoint)}}function nM(e,t){return t?{point:t(e.point)}:e}function nN(e,t){return{x:e.x-t.x,y:e.y-t.y}}function n$({point:e},t){return{point:e,delta:nN(e,nL(t)),offset:nN(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=nL(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>$(.1)));)n--;if(!r)return{x:0,y:0};let o=(i.timestamp-r.timestamp)/1e3;if(0===o)return{x:0,y:0};let a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,.1)}}function nL(e){return e[e.length-1]}function nF(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function nU(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function nz(e,t,n){return{min:nB(e,t),max:nB(e,n)}}function nB(e,t){return"number"==typeof e?e:e[t]||0}let nq=new WeakMap;class nV{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=nv(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let r=e=>{let{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(na(e).point)},i=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"
46y"===e)if(nr[e])return null;else return nr[e]=!0,()=>{nr[e]=!1};return nr.x||nr.y?null:(nr.x=nr.y=!0,()=>{nr.x=nr.y=!1})}(n),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),nb(e=>{let t=this.getAxisMotionValue(e).get()||0;if(eo.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=nu(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&p.postRender(()=>i(e,t)),D(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},o=(e,t)=>{let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:a}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(a),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),o&&o(e,t)},a=(e,t)=>this.stop(e,t),s=()=>nb(e=>"paused"===this.getAnimationState(e)&&this.getAxisMotionValue(e).animation?.play()),{dragSnapToOrigin:l}=this.getProps();this.panSession=new nP(e,{onSessionStart:r,onStart:i,onMove:o,onSessionEnd:a,resumeAnimation:s},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:nD(this.visualElement)})}stop(e,t){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=t;this.startAnimation(r);let{onDragEnd:i}=this.getProps();i&&p.postRender(()=>i(e,t))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!nH(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?eE(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?eE(n,e,r.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&nR(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:nF(e.x,n,i),y:nF(e.y,t,r)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:nz(e,"left","right"),y:nz(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&nb(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!nR(t))return!1;let r=t.current;U(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let o=function(e,t,n){let r=nj(e,n),{scroll:i}=t;return i&&(nT(r.x,i.offset.x),nT(r.y,i.offset.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),a=(e=i.layout.layoutBox,{x:nU(e.x,o.x),y:nU(e.y,o.y)});if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=nl(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{};return Promise.all(nb(a=>{if(!nH(a,t,this.currentDirection))return;let l=s&&s[a]||{};o&&(l={min:0,max:0});let u={type:"inertia",velocity:n?e[a]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(a,u)})).then(a)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return D(this.visualElement,e),n.start(tX(e,n,0,t,this.visualElement,!1))}stopAnimation(){nb(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){nb(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){nb(t=>{let{drag:n}=this.getProps();if(!nH(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:o}=r.layout.layoutBox[t];i.set(e[t]-eE(n,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!nR(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};nb(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){let n=t.get();r[e]=function(e,t){let n=.5,r=nu(e),i=nu(t);return i>r?n=e9(t.min,t.max-r,e.min):r>i&&(n=e9(e.min,e.max-i,t.min)),N(0,1,n)}({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),nb(t=>{if(!nH(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];n.set(eE(i,o,r[t]))})}addListeners(){if(!this.visualElement.current)return;nq.set(this.visualElement,this);let e=ns(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:n=!0}
46=this.getProps();t&&n&&this.start(e)}),t=()=>{let{dragConstraints:e}=this.getProps();nR(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),p.read(t);let i=ni(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(nb(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{i(),e(),r(),o&&o()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function nH(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}class nW extends t9{constructor(e){super(e),this.removeGroupControls=u,this.removeListeners=u,this.controls=new nV(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||u}unmount(){this.removeGroupControls(),this.removeListeners()}}let nY=e=>(t,n)=>{e&&p.postRender(()=>e(t,n))};class nG extends t9{constructor(){super(...arguments),this.removePointerDownListener=u}onPointerDown(e){this.session=new nP(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:nD(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:nY(e),onStart:nY(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&p.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=ns(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var nK=n(7531);let{schedule:nX}=h(queueMicrotask,!1);var nZ=n(82203),nQ=n(94912),nJ=n(80856);let n0=(0,nZ.createContext)({}),n1={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function n2(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let n5={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!ea.test(e))return e;else e=parseFloat(e);let n=n2(e,t.target.x),r=n2(e,t.target.y);return`${n}% ${r}%`}},n3={};class n4 extends nZ.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;for(let e in n8)n3[e]=n8[e],B(e)&&(n3[e].isCSSVariable=!0);i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),n1.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:o}=n;return o&&(o.isPresent=i,r||e.layoutDependency!==t||void 0===t||e.isPresent!==i?o.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?o.promote():o.relegate()||p.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),nX.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function n6(e){let[t,n]=(0,nQ.xQ)(),r=(0,nZ.useContext)(nJ.L);return(0,nK.jsx)(n4,{...e,layoutGroup:r,switchLayoutGroup:(0,nZ.useContext)(n0),isPresent:t,safeToRemove:n})}let n8={borderRadius:{...n5,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:n5,borderTopRightRadius:n5,borderBottomLeftRadius:n5,borderBottomRightRadius:n5,boxSh
46adow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let r=ew.parse(e);if(r.length>5)return e;let i=ew.createTransformer(e),o=+("number"!=typeof r[0]),a=n.x.scale*t.x,s=n.y.scale*t.y;r[0+o]/=a,r[1+o]/=s;let l=eE(a,s,.5);return"number"==typeof r[2+o]&&(r[2+o]/=l),"number"==typeof r[3+o]&&(r[3+o]/=l),i(r)}}};var n7=n(34293);function n9(e){return(0,n7.G)(e)&&"ownerSVGElement"in e}let re=(e,t)=>e.depth-t.depth;class rt{constructor(){this.children=[],this.isDirty=!1}add(e){x(this.children,e),this.isDirty=!0}remove(e){k(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(re),this.isDirty=!1,this.children.forEach(e)}}function rn(e){return j(e)?e.get():e}let rr=["TopLeft","TopRight","BottomLeft","BottomRight"],ri=rr.length,ro=e=>"string"==typeof e?parseFloat(e):e,ra=e=>"number"==typeof e||ea.test(e);function rs(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let rl=rc(0,.5,e3),ru=rc(.5,.95,u);function rc(e,t,n){return r=>r<e?0:r>t?1:n(e9(e,t,r))}function rd(e,t){e.min=t.min,e.max=t.max}function rf(e,t){rd(e.x,t.x),rd(e.y,t.y)}function rh(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function rp(e,t,n,r,i){return e-=t,e=r+1/n*(e-r),void 0!==i&&(e=r+1/i*(e-r)),e}function rg(e,t,[n,r,i],o,a){!function(e,t=0,n=1,r=.5,i,o=e,a=e){if(eo.test(t)&&(t=parseFloat(t),t=eE(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let s=eE(o.min,o.max,r);e===o&&(s-=t),e.min=rp(e.min,t,n,s,i),e.max=rp(e.max,t,n,s,i)}(e,t[n],t[r],t[i],t.scale,o,a)}
46let rm=["x","scaleX","originX"],ry=["y","scaleY","originY"];function rv(e,t,n,r){rg(e.x,t,rm,n?n.x:void 0,r?r.x:void 0),rg(e.y,t,ry,n?n.y:void 0,r?r.y:void 0)}function rb(e){return 0===e.translate&&1===e.scale}function rw(e){return rb(e.x)&&rb(e.y)}function rx(e,t){return e.min===t.min&&e.max===t.max}function rk(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function rE(e,t){return rk(e.x,t.x)&&rk(e.y,t.y)}function r_(e){return nu(e.x)/nu(e.y)}function rS(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class rA{constructor(){this.members=[]}add(e){x(this.members,e),e.scheduleRender()}remove(e){if(k(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t,n=this.members.findIndex(t=>e===t);if(0===n)return!1;for(let e=n;e>=0;e--){let n=this.members[e];if(!1!==n.isPresent){t=n;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let rT={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},rC=["","X","Y","Z"],rO={visibility:"hidden"},rj=0;function rD(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function rR({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=rj++,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,f.value&&(rT.nodes=rT.calculatedTargetDeltas=rT.calculatedProjections=0),this.nodes.forEach(rM),this.nodes.forEach(rB),this.nodes.forEach(rq),this.nodes.forEach(rN),f.addProjectionMetrics&&f.addProjectionMetrics(rT)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,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 rt)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new E),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=n9(t)&&!(n9(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){let n=S.now(),r=({timestamp:t})=>{let i=t-n;i>=250&&(g(r),e(i-250))};return p.setup(r,!0),()=>g(r)}(r,250),n1.hasAnimatedSinceResize&&(n1.hasAnimatedSinceResize=!1,this.nodes.forEac
46h(rz))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&i&&(n||r)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let o=this.options.transition||i.getDefaultTransition()||rK,{onLayoutAnimationStart:a,onLayoutAnimationComplete:s}=i.getProps(),u=!this.targetLayout||!rE(this.targetLayout,r),c=!t&&n;if(this.options.layoutRoot||this.resumeFrom||c||t&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...l(o,"layout"),onPlay:a,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,c)}else t||rz(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),g(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(rV),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:n}=t.options;if(!n)return;let r=n.props[I];if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:e,layoutId:n}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",p,!(e||n))}let{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&e(i)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(rL);return}this.isUpdating||this.nodes.forEach(rF),this.isUpdating=!1,this.nodes.forEach(rU),this.nodes.forEach(rI),this.nodes.forEach(rP),this.clearAllSnapshots();let e=S.now();m.delta=N(0,1e3/60,e-m.timestamp),m.timestamp=e,m.isProcessing=!0,y.update.process(m),y.preRender.process(m),y.render.process(m),m.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,nX.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(r$),this.sharedNodes.forEach(rH)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,p.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){p.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||nu(this.snapshot.measuredBox.x)||nu(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=nv(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!rw(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,o=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||nk(this.latestValues)||o)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let n=this.measurePageBox(),r=this.removeElementScroll(n);return e&&(r=this.removeTransform(r)),rQ((t=r).x),rQ(t.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return nv();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(r0))){let{scroll:e}=this.root;e&&(nT(t.x,e.offset.x),nT(t.y,e.offset.y))}return t}removeElementScroll(e){let t=nv();if(rf(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:o}=r;r!==this.root&&i&&o.layoutScroll&&(i.wasRoot&&rf(t,e),nT(t.x,i.offset.x),nT(t.y,i.offset.y))}return t}applyTransform(e,t=!1){let n=nv();rf(n,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&nO(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),nk(r.latestValues)&&nO(n,r.latestValues)}return nk(this.latestValues)&&nO(n,this.latestValues),n}removeTransform(e){let t=nv();rf(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!nk(n.latestValues))continue;nx(n.latestValues)&&n.updateSnapshot();let r=nv();rf(r,n.measurePageBox()),rv(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return nk(this.latestValues)&&rv(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.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!==m.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.
46isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(this.layout&&(r||i)){if(this.resolvedRelativeTargetAt=m.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=nv(),this.relativeTargetOrigin=nv(),np(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),rf(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if(this.target||(this.target=nv(),this.targetWithTransforms=nv()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var o,a,s;this.forceRelativeParentToResolveTarget(),o=this.target,a=this.relativeTarget,s=this.relativeParent.target,nf(o.x,a.x,s.x),nf(o.y,a.y,s.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rf(this.target,this.layout.layoutBox),nA(this.target,this.targetDelta)):rf(this.target,this.layout.layoutBox);if(this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=nv(),this.relativeTargetOrigin=nv(),np(this.relativeTargetOrigin,this.target,e.target),rf(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}f.value&&rT.calculatedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||nx(this.parent.latestValues)||nE(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===m.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;rf(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;!function(e,t,n,r=!1){let i,o,a=n.length;if(a){t.x=t.y=1;for(let s=0;s<a;s++){o=(i=n[s]).projectionDelta;let{visualElement:a}=i.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&nO(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,nA(e,o)),r&&nk(i.latestValues)&&nO(e,i.latestValues))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=nv());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(rh(this.prevProjectionDelta.x,this.projectionDelta.x),rh(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),nd(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&rS(this.projectionDelta.x,this.prevProjectionDelta.x)&&rS(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",s)),f.value&&rT.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=nm(),this.projectionDelta=nm(),this.projectionDeltaWithTransform=nm()}setAnimationOrigin(e,t=!1){let n,r=this.snapshot,i=r?r.latestValues:{},o={...this.latestValues},a=nm();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=nv(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,d=!!(l&&!c&&!0===this.options.crossfade&&!this.path.some(rG));this.animationProgress=0,this.mixTargetDelta=t=>{let r=t/1e3;if(rW(a.x,e.x,r),rW(a.y,e.y,r),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,f,h,p,g,m;np(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),h=this.relativeTarget,p=this.relativeTargetOrigin,g=s,m=r,rY(h.x,p.x,g.x,m),rY(h.y,p.y,g.y,m),n&&(u=this.relativeTarget,f=n,rx(u.x,f.x)&&rx(u.y,f.y))&&(this.isProjectionDirty=!1),n||(n=nv()),rf(n,this.relativeTarget)}l&&(this.animationValues=o,function(e,t,n,r,i,o){i?(e.opacity=eE(0,n.opacity??1,rl(r)),e.o
46pacityExit=eE(t.opacity??1,0,ru(r))):o&&(e.opacity=eE(t.opacity??1,n.opacity??1,r));for(let i=0;i<ri;i++){let o=`border${rr[i]}Radius`,a=rs(t,o),s=rs(n,o);(void 0!==a||void 0!==s)&&(a||(a=0),s||(s=0),0===a||0===s||ra(a)===ra(s)?(e[o]=Math.max(eE(ro(a),ro(s),r),0),(eo.test(s)||eo.test(a))&&(e[o]+="%")):e[o]=s)}(t.rotate||n.rotate)&&(e.rotate=eE(t.rotate||0,n.rotate||0,r))}(o,i,this.latestValues,r,d,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(g(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=p.update(()=>{n1.hasAnimatedSinceResize=!0,L.layout++,this.motionValue||(this.motionValue=C(0)),this.currentAnimation=function(e,t,n){let r=j(e)?e:C(e);return r.start(tX("",r,t,n)),r.animation}(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{L.layout--},onComplete:()=>{L.layout--,e.onComplete&&e.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);let e=this.getStack();e&&e.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(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&rJ(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||nv();let t=nu(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=nu(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}rf(t,n),nO(t,i),nd(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new rA),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&rD("z",e,r,this.animationValues);for(let t=0;t<rC.length;t++)rD(`rotate${rC[t]}`,e,r,this.animationValues),rD(`skew${rC[t]}`,e,r,this.animationValues);for(let t in e.render(),r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}getProjectionStyles(e){if(!this.instance||this.isSVG)return;if(!this.isVisible)return rO;let t={visibility:""},n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,t.opacity="",t.pointerEvents=rn(e?.pointerEvents)||"",t.transform=n?n(this.latestValues,""):"none",t;let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){let t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=rn(e?.pointerEvents)||""),this.hasProjected&&!nk(this.latestValues)&&(t.transform=n?n({},""):"none",this.hasProjected=!1),t}let i=r.animationValues||r.latestValues;this.applyTransformsToTarget(),t.transform=function(e,t,n){let r="",i=e.x.translate/t.x,o=e.
46y.translate/t.y,a=n?.z||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(1!==t.x||1!==t.y)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:o,skewX:a,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),o&&(r+=`rotateY(${o}deg) `),a&&(r+=`skewX(${a}deg) `),s&&(r+=`skewY(${s}deg) `)}let s=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==s||1!==l)&&(r+=`scale(${s}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,i),n&&(t.transform=n(i,t.transform));let{x:o,y:a}=this.projectionDelta;for(let e in t.transformOrigin=`${100*o.origin}% ${100*a.origin}% 0`,r.animationValues?t.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:t.opacity=r===this?void 0!==i.opacity?i.opacity:"":void 0!==i.opacityExit?i.opacityExit:0,n3){if(void 0===i[e])continue;let{correct:n,applyTo:o,isCSSVariable:a}=n3[e],s="none"===t.transform?i[e]:n(i[e],r);if(o){let e=o.length;for(let n=0;n<e;n++)t[o[n]]=s}else a?this.options.visualElement.renderState.vars[e]=s:t[e]=s}return this.options.layoutId&&(t.pointerEvents=r===this?rn(e?.pointerEvents)||"":"none"),t}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(rL),this.root.sharedNodes.clear()}}}function rI(e){e.updateLayout()}function rP(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,o=t.source!==e.layout.source;"size"===i?nb(e=>{let r=o?t.measuredBox[e]:t.layoutBox[e],i=nu(r);r.min=n[e].min,r.max=r.min+i}):rJ(i,t.layoutBox,n)&&nb(r=>{let i=o?t.measuredBox[r]:t.layoutBox[r],a=nu(n[r]);i.max=i.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)});let a=nm();nd(a,n,t.layoutBox);let s=nm();o?nd(s,e.applyTransform(r,!0),t.measuredBox):nd(s,n,t.layoutBox);let l=!rw(a),u=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:o}=r;if(i&&o){let a=nv();np(a,t.layoutBox,i.layoutBox);let s=nv();np(s,n,o.layoutBox),rE(a,s)||(u=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function rM(e){f.value&&rT.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function rN(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function r$(e){e.clearSnapshot()}function rL(e){e.clearMeasurements()}function rF(e){e.isLayoutDirty=!1}function rU(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function rz(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function rB(e){e.resolveTargetDelta()}function rq(e){e.calcProjection()}function rV(e){e.resetSkewAndRotation()}function rH(e){e.removeLeadSnapshot()}function rW(e,t,n){e.translate=eE(t.translate,0,n),e.scale=eE(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function rY(e,t,n,r){e.min=eE(t.min,n.min,r),e.max=eE(t.max,n.max,r)}function rG(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let rK={duration:.45,ease:[.4,0,.1,1]},rX=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),rZ=rX("applewebkit/")&&!rX("chrome/")?Math.round:u;function rQ(e){e.min=rZ(e.min),e.max=rZ(e.max)}function rJ(e,t,n){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(r_(t)-r_(n)))}function r0(e){return e!==e.root&&e.scroll?.wasRoot}let r1=rR({attachResizeListener:(e,t)=>ni(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),r2={current:void 0},r5=rR({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!r2.current){let e=new r1({});e.mount(window),e.setOptions({layoutScroll:!0}),r2.current=e}return r2.current},resetTransform:(e,t)=>
46{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function r3(e,t){let n=function(e,t,n){if(e instanceof EventTarget)return[e];if("string"==typeof e){let t=document,n=(void 0)??t.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e)}(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function r4(e){return!("touch"===e.pointerType||nr.x||nr.y)}function r6(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);let i=r["onHover"+n];i&&p.postRender(()=>i(t,na(t)))}class r8 extends t9{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){let[r,i,o]=r3(e,n),a=e=>{if(!r4(e))return;let{target:n}=e,r=t(n,e);if("function"!=typeof r||!n)return;let o=e=>{r4(e)&&(r(e),n.removeEventListener("pointerleave",o))};n.addEventListener("pointerleave",o,i)};return r.forEach(e=>{e.addEventListener("pointerenter",a,i)}),o}(e,(e,t)=>(r6(this.node,t,"Start"),e=>r6(this.node,e,"End"))))}unmount(){}}class r7 extends t9{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&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=M(ni(this.node.current,"focus",()=>this.onFocus()),ni(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let r9=(e,t)=>!!t&&(e===t||r9(e,t.parentElement)),ie=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),it=new WeakSet;function ir(e){return t=>{"Enter"===t.key&&e(t)}}function ii(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function io(e){return no(e)&&!(nr.x||nr.y)}function ia(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);let i=r["onTap"+("End"===n?"":n)];i&&p.postRender(()=>i(t,na(t)))}class is extends t9{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){let[r,i,o]=r3(e,n),a=e=>{let r=e.currentTarget;if(!io(e))return;it.add(r);let o=t(r,e),a=(e,t)=>{window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",l),it.has(r)&&it.delete(r),io(e)&&"function"==typeof o&&o(e,{success:t})},s=e=>{a(e,r===window||r===document||n.useGlobalTarget||r9(r,e.target))},l=e=>{a(e,!1)};window.addEventListener("pointerup",s,i),window.addEventListener("pointercancel",l,i)};return r.forEach(e=>{((n.useGlobalTarget?window:e).addEventListener("pointerdown",a,i),(0,tB.s)(e))&&(e.addEventListener("focus",e=>((e,t)=>{let n=e.currentTarget;if(!n)return;let r=ir(()=>{if(it.has(n))return;ii(n,"down");let e=ir(()=>{ii(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>ii(n,"cancel"),t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)})(e,i)),ie.has(e.tagName)||-1!==e.tabIndex||e.hasAttribute("tabindex")||(e.tabIndex=0))}),o}(e,(e,t)=>(ia(this.node,t,"Start"),(e,{success:t})=>ia(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let il=new WeakMap,iu=new WeakMap,ic=e=>{let t=il.get(e.target);t&&t(e)},id=e=>{e.forEach(ic)},ih={some:0,all:1};class ip extends t9{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:i}=e,o={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:ih[r]},a=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),o=t?n:r;o&&o(e)};var s=this.node.current;let l=function({root:e,...t}){let n=e||document;iu.has(n)||iu.set(n,{});let r=iu.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(id,{root:e,...t})),r[i]}(o);return il.set(s,a),l.observe(s),()=>{il.delete(s),l.unobserve(s)}}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}let ig=(0,nZ.createContext)({strict:!1});var im=n(52182);let iy=(0,nZ.createContext)({});function iv(e){return i(e.animate)||t5.some(t=>t1(e[t]))}function ib(e){return!!(iv(e)||e.variants)}function iw(e){return Array.isArray(e)?e.join(" "):e}var ix=n(83530);let ik={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"]},iE={};for(let e in ik)iE[e]={isEnabled:t=>ik[e].some(e=>!!t[e])};let i_=Symbol.for("motionComponentSymbol");var iS=n(32039),iA=n(80080);function iT(e,{layout:t,layoutId:n}){return b.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!n3[e]||"opacity"===e)}let iC=(e,t)=>t&&"number"==typeof e?t.transform(e):e,iO={...W,transform:Math.round},ij={borderWidth:ea,borderTopWidth:ea,borderRightWidth:ea,borderBottomWidth:ea,borderLeftWidth:ea,borderRadius:ea,radius:ea,borderTopLeftRadius:ea,borderTopRightRadius:ea,borderBottomRightRadius:ea,borderBottomLeftRadius:ea,width:ea,maxWidth:ea,height:ea,maxHeight:ea,top:ea,right:ea,bottom:ea,left:ea,padding:ea,paddingTop:ea,paddingRight:ea,paddingBottom:ea,paddingLeft:ea,margin:ea,marginTop:ea,marginRight:ea,marginBottom:ea,marginLeft:ea,backgroundPositionX:ea,backgroundPositionY:ea,rotate:ei,rotateX:ei,rotateY:ei,rotateZ:ei,scale:G,scaleX:G,scaleY:G,scaleZ:G,skew:ei,skewX:ei,skewY:ei,distance:ea,translateX:ea,translateY:ea,translateZ:ea,x:ea,y:ea,z:ea,perspective:ea,transformPerspective:ea,opacity:Y,originX:eu,originY:eu,originZ:ea,zIndex:iO,fillOpacity:Y,strokeOpacity:Y,numOctaves:iO},iD={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},iR=v.length;function iI(e,t,n){let{style:r,vars:i,transformOrigin:o}=e,a=!1,s=!1;for(let e in t){let n=t[e];if(b.has(e)){a=!0;continue}if(B(e)){i[e]=n;continue}{let t=iC(n,ij[e]);e.startsWith("origin")?(s=!0,o[e]=t):r[e]=t}}if(!t.transform&&(a||n?r.transform=function(e,t,n){let r="",i=!0;for(let o=0;o<iR;o++){let a=v[o],s=e[a];if(void 0===s)continue;let l=!0;if(!(l="number"==typeof s?s===+!!a.startsWith("scale"):0===parseFloat(s))||n){let e=iC(s,ij[a]);if(!l){i=!1;let t=iD[a]||a;r+=`${t}(${e}) `}n&&(t[a]=e)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),s){let{originX:e="50%",originY:t="50%",originZ:n=0}=o;r.transformOrigin=`${e} ${t} ${n}`}}let iP=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function iM(e,t,n){for(let r in t)j(t[r])||iT(r,n)||(e[r]=t[r])}let iN={offset:"stroke-dashoffset",array:"stroke-dasharray"},i$={offset:"strokeDashoffset",array:"strokeDasharray"};function iL(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:o=1,pathOffset:a=0,...s}
46,l,u,c){if(iI(e,s,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=c?.transformBox??"fill-box",delete d.transformBox),void 0!==t&&(d.x=t),void 0!==n&&(d.y=n),void 0!==r&&(d.scale=r),void 0!==i&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;let o=i?iN:i$;e[o.offset]=ea.transform(-r);let a=ea.transform(t),s=ea.transform(n);e[o.array]=`${a} ${s}`}(d,i,o,a,!1)}let iF=()=>({...iP(),attrs:{}}),iU=e=>"string"==typeof e&&"svg"===e.toLowerCase(),iz=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 iB(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||iz.has(e)}let iq=e=>!iB(e);try{!function(e){"function"==typeof e&&(iq=t=>t.startsWith("on")?!iB(t):e(t))}(require("@emotion/is-prop-valid").default)}catch{}let iV=["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 iH(e){if("string"!=typeof e||e.includes("-"));else if(iV.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}var iW=n(50191);let iY=e=>(t,n)=>{let r=(0,nZ.useContext)(iy),o=(0,nZ.useContext)(iS.t),s=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:function(e,t,n,r){let o={},s=r(e,{});for(let e in s)o[e]=rn(s[e]);let{initial:l,animate:u}=e,c=iv(e),d=ib(e);t&&d&&!c&&!1!==e.inherit&&(void 0===l&&(l=t.initial),void 0===u&&(u=t.animate));let f=!!n&&!1===n.initial,h=(f=f||!1===l)?u:l;if(h&&"boolean"!=typeof h&&!i(h)){let t=Array.isArray(h)?h:[h];for(let n=0;n<t.length;n++){let r=a(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=f?t.length-1:0;t=t[e]}null!==t&&(o[e]=t)}for(let t in e)o[t]=e[t]}}}return o}(n,r,o,e),renderState:t()}})(e,t,r,o);return n?s():(0,iW.M)(s)};function iG(e,t,n){let{style:r}=e,i={};for(let o in r)(j(r[o])||t.style&&j(t.style[o])||iT(o,e)||n?.getValue(o)?.liveStyle!==void 0)&&(i[o]=r[o]);return i}let iK={useVisualState:iY({scrapeMotionValuesFromProps:iG,createRenderState:iP})};function iX(e,t,n){let r=iG(e,t,n);for(let n in e)(j(e[n])||j(t[n]))&&(r[-1!==v.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return r}let iZ={useVisualState:iY({scrapeMotionValuesFromProps:iX,createRenderState:iF})},iQ=e=>t=>t.test(e),iJ=[W,ea,eo,ei,el,es,{test:e=>"auto"===e,parse:e=>e}],i0=e=>iJ.find(iQ(e)),i1=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),i2=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,i5=e=>/^0[^.\s]+$/u.test(e),i3=new Set(["brightness","contrast","saturate","opacity"]);function i4(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(X)||[];if(!r)return e;let i=n.replace(r,""),o=+!!i3.has(t);return r!==n&&(o*=100),t+"("+o+i+")"}let i6=/\b([a-z-]*)\(.*?\)/gu,i8={...ew,getAnimatableNone:e=>{let t=e.match(i6);return t?t.map(i4).join(" "):e}},i7={...ij,color:ed,backgroundColor:ed,outlineColor:ed,fill:ed,stroke:ed,borderColor:ed,borderTopColor:ed,borderRightColor:ed,borderBottomColor:ed,borderLeftColor:ed,filter:i8,WebkitFilter:i8},i9=e=>i7[e];function oe(e,t){let n=i9(e);return n!==i8&&(n=ew),n.getAnimatableNone?n.getAnimatableNone(t):void 0}let ot=new Set(["auto","none","0"]);class on extends tC{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&V(r=r.trim())){let i=function e(t,n,r=1){U(r<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[i,o]=function(e){let t=i2.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}(t);if(!i)return;let a=window.getComputedStyle(n).getPropertyValue(i);if(a){let e=a.trim();return i1(e)?parseFloat(e):e}return V(o)?e(o,n,r+1):o}(r,t.current);void 0!==i&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!w.has(n)||2!==e.length)return;let[r,i]=e,o=i0(r),a=i0(i);if(o!==a)if(tv(o)&&tv(a))for(let t=0;t<e.length;t++){let n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else tx[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++){var r;(null===e[t]||("number"==typeof(r=e[t])?0===r:null===r||"none"===r||"0"===r||i5(r)))&&n.push(t)}n.length&&function(e,t,n){let r,i=0;for(;i<e.length&&!r;){let t=e[i];"string"==typeof t&&!ot.has(t)&&em(t).values.length&&(r=e[i]),i++}if(r&&n)for(let i of t)e[i]=oe(n,r)}(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tx[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,o=n[i];n[i]=tx[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEac
46h(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}}let or=[...iJ,ed,ew],oi={current:null},oo={current:!1},oa=new WeakMap,os=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class ol{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:i,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=tC,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=S.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,p.render(this.render,!1,!0))};let{latestValues:s,renderState:l}=o;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=iv(t),this.isVariantNode=ib(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...c}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in c){let t=c[e];void 0!==s[e]&&j(t)&&t.set(s[e],!1)}}mount(e){this.current=e,oa.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),oo.current||function(){if(oo.current=!0,ix.B)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>oi.current=e.matches;e.addListener(t),t()}else oi.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||oi.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in this.projection&&this.projection.unmount(),g(this.notifyUpdate),g(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){let n;this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let r=b.has(e);r&&this.onBindTransform&&this.onBindTransform();let i=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&p.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=t.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{i(),o(),n&&n(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in iE){let t=iE[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):nv()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<os.length;t++){let n=os[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){for(let r in t){let i=t[r],o=n[r];if(j(i))e.addValue(r,i);else if(j(o))e.addValue(r,C(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){let t=e.getValue(r);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,C(void 0!==t?t:i,{owner:e}))}}for(let r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}
46addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=C(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=n){if("string"==typeof n&&(i1(n)||i5(n)))n=parseFloat(n);else{let r;r=n,!or.find(iQ(r))&&ew.test(t)&&(n=oe(e,t))}this.setBaseTarget(e,j(n)?n.get():n)}return j(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let r=a(this.props,n,this.presenceContext?.custom);r&&(t=r[e])}if(n&&void 0!==t)return t;let r=this.getBaseTargetFromProps(this.props,e);return void 0===r||j(r)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:r}on(e,t){return this.events[e]||(this.events[e]=new E),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class ou extends ol{constructor(){super(...arguments),this.KeyframeResolver=on}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;j(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function oc(e,{style:t,vars:n},r,i){for(let o in Object.assign(e.style,t,i&&i.getProjectionStyles(r)),n)e.style.setProperty(o,n[o])}class od extends ou{constructor(){super(...arguments),this.type="html",this.renderInstance=oc}readValueFromInstance(e,t){if(b.has(t))return this.projection?.isProjecting?tg(t):((e,t)=>{let{transform:n="none"}=getComputedStyle(e);return tm(n,t)})(e,t);{let n=window.getComputedStyle(e),r=(B(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return nj(e,t)}build(e,t,n){iI(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return iG(e,t,n)}}let of=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"]);class oh extends ou{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=nv}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(b.has(t)){let e=i9(t);return e&&e.default||0}return t=of.has(t)?t:R(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return iX(e,t,n)}
46build(e,t,n){iL(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){for(let n in oc(e,t,void 0,r),t.attrs)e.setAttribute(of.has(n)?n:R(n),t.attrs[n])}mount(e){this.isSVGTag=iU(e.tagName),super.mount(e)}}let op=function(e){if("undefined"==typeof Proxy)return e;let t=new Map;return new Proxy((...t)=>e(...t),{get:(n,r)=>"create"===r?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}((tU={animation:{Feature:ne},exit:{Feature:nn},inView:{Feature:ip},tap:{Feature:is},focus:{Feature:r7},hover:{Feature:r8},pan:{Feature:nG},drag:{Feature:nW,ProjectionNode:r5,MeasureLayout:n6},layout:{ProjectionNode:r5,MeasureLayout:n6}},tz=(e,t)=>iH(e)?new oh(t):new od(t,{allowProjection:e!==nZ.Fragment}),function(e,{forwardMotionProps:t}={forwardMotionProps:!1}){return function({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){function o(e,o){var a;let s,l={...(0,nZ.useContext)(im.Q),...e,layoutId:function({layoutId:e}){let t=(0,nZ.useContext)(nJ.L).id;return t&&void 0!==e?t+"-"+e:e}(e)},{isStatic:u}=l,c=function(e){let{initial:t,animate:n}=function(e,t){if(iv(e)){let{initial:t,animate:n}=e;return{initial:!1===t||t1(t)?t:void 0,animate:t1(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,nZ.useContext)(iy));return(0,nZ.useMemo)(()=>({initial:t,animate:n}),[iw(t),iw(n)])}(e),d=r(e,u);if(!u&&ix.B){(0,nZ.useContext)(ig).strict;let e=function(e){let{drag:t,layout:n}=iE;if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(l);s=e.MeasureLayout,c.visualElement=function(e,t,n,r,i){let{visualElement:o}=(0,nZ.useContext)(iy),a=(0,nZ.useContext)(ig),s=(0,nZ.useContext)(iS.t),l=(0,nZ.useContext)(im.Q).reducedMotion,u=(0,nZ.useRef)(null);r=r||a.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:o,props:n,presenceContext:s,blockInitialAnimation:!!s&&!1===s.initial,reducedMotionConfig:l}));let c=u.current,d=(0,nZ.useContext)(n0);c&&!c.projection&&i&&("html"===c.type||"svg"===c.type)&&function(e,t,n,r){let{layoutId:i,layout:o,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||s&&nR(s),visualElement:e,animationType:"string"==typeof o?o:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:l,layoutRoot:u})}(u.current,n,i,d);let f=(0,nZ.useRef)(!1);(0,nZ.useInsertionEffect)(()=>{c&&f.current&&c.update(n,s)});let h=n[I],p=(0,nZ.useRef)(!!h&&!window.MotionHandoffIsComplete?.(h)&&window.MotionHasOptimisedAnimation?.(h));return(0,iA.E)(()=>{c&&(f.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),nX.render(c.render),p.current&&c.animationState&&c.animationState.animateChanges())}),(0,nZ.useEffect)(()=>{c&&(!p.current&&c.animationState&&c.animationState.animateChanges(),p.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(h)}),p.current=!1))}),c}(i,d,l,t,e.ProjectionNode)}return(0,nK.jsxs)(iy.Provider,{value:c,children:[s&&c.visualElement?(0,nK.jsx)(s,{visualElement:c.visualElement,...l}):null,n(i,e,(a=c.visualElement,(0,nZ.useCallback)(e=>{e&&d.onMount&&d.onMount(e),a&&(e?a.mount(e):a.unmount()),o&&("function"==typeof o?o(e):nR(o)&&(o.current=e))},[a])),d,u,c.visualElement)]})}e&&function(e){for(let t in e)iE[t]={...iE[t],...e[t]}}(e),o.displayName=`motion.${"string"==typeof i?i:`create(${i.displayName??i.name??""})`}`;let a=(0,nZ.forwardRef)(o);return a[i_]=i,a}({...iH(e)?iZ:iK,preloadedFeatures:tU,useRender:function(e=!1){return(t,n,r,{latestValues:i},o)=>{let a=(iH(t)?function(e,t,n,r){let i=(0,nZ.useMemo)(()=>{let n=iF();return iL(n,t,iU(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};iM(t,e.style,e),i.style={...t,...i.style}}return i}:function(e,t){let n={},r=function(e,t){let n=e.style||{},r={};return iM(r,n,e),Object.assign(r,function({transformTemplate:e},t){return(0,nZ.useMemo)(()=>{let n=iP();return iI(n,t,e),Object.assign({},n.vars,n.style)},[t])}(e,t)),r}(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}
46`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n})(n,i,o,t),s=function(e,t,n){let r={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&(iq(i)||!0===n&&iB(i)||!t&&!iB(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(n,"string"==typeof t,e),l=t!==nZ.Fragment?{...s,...a,ref:r}:{},{children:u}=n,c=(0,nZ.useMemo)(()=>j(u)?u.get():u,[u]);return(0,nZ.createElement)(t,{...l,children:c})}}(t),createVisualElement:tz,Component:e})}))},50437:(e,t,n)=>{"use strict";function r(e){let[t,n]=e;return[t,n]}function i(e,t){let n=e,r=t,i=n.length,o=r.length;if(0===i||0===o)return 0;i>o?n=n.substring(i-o):i<o&&(r=r.substring(0,i));let a=Math.min(i,o);if(n===r)return a;let s=0,l=1;for(let e=0;-1!==e;){let t=n.substring(a-l);if(-1===(e=r.indexOf(t)))break;l+=e,(0===e||n.substring(a-l)===r.substring(0,l))&&(s=l,l++)}return s}function o(e,t){if(!e||!t||e[0]!==t[0])return 0;let n=0,r=Math.min(e.length,t.length),i=r,o=0;for(;n<i;)e.substring(o,i)===t.substring(o,i)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return i}function a(e,t){if(!e||!t||e[e.length-1]!==t[t.length-1])return 0;let n=0,r=Math.min(e.length,t.length),i=r,o=0;for(;n<i;)e.substring(e.length-i,e.length-o)===t.substring(t.length-i,t.length-o)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return i}function s(e){let t=e.charCodeAt(0);return t>=56320&&t<=57343}function l(e,t,n,r,i){let o=e.substring(0,n),a=t.substring(0,r),s=e.substring(n),l=t.substring(r),u=b(o,a,{checkLines:!1,deadline:i}),c=b(s,l,{checkLines:!1,deadline:i});return u.concat(c)}function u(e,t,n){let r=e.slice(n,n+Math.floor(e.length/4)),i=-1,s="",l,u,c,d;for(;-1!==(i=t.indexOf(r,i+1));){let r=o(e.slice(n),t.slice(i)),f=a(e.slice(0,n),t.slice(0,i));s.length<f+r&&(s=t.slice(i-f,i)+t.slice(i,i+r),l=e.slice(0,n-f),u=e.slice(n+r),c=t.slice(0,i-f),d=t.slice(i+r))}return 2*s.length>=e.length?[l||"",u||"",c||"",d||"",s||""]:null}n.d(t,{$i:()=>W,Cm:()=>g,Ug:()=>m,Vx:()=>E,iU:()=>v,iz:()=>eo,jW:()=>et,lw:()=>y,sw:()=>D,w1:()=>es});var c=Object.defineProperty,d=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,p=(e,t,n)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;let g=-1,m=1,y=0;function v(e,t,n){if(null===e||null===t)throw Error("Null input. (diff)");let r=b(e,t,function(e){let t;var n,r={checkLines:!0,deadline:(n=e.timeout||1,t=1,"u">typeof n&&(t=n<=0?Number.MAX_VALUE:n),Date.now()+1e3*t)},i=e;for(var o in i||(i={}))f.call(i,o)&&p(r,o,i[o]);if(d)for(var o of d(i))h.call(i,o)&&p(r,o,i[o]);return r}(n||{}));return function(e){for(let t=0;t<e.length;t++){let[n,r]=e[t];if(0===r.length)continue;let i=r[0];(function(e){let t=e.charCodeAt(0);return t>=55296&&t<=56319})(r[r.length-1])&&n===y&&k(e,t,1),s(i)&&n===y&&k(e,t,-1)}for(let t=0;t<e.length;t++)0===e[t][1].length&&e.splice(t,1)}(r),r}function b(e,t,n){let r=e,i=t;if(r===i)return r?[[y,r]]:[];let s=o(r,i),c=r.substring(0,s);s=a(r=r.substring(s),i=i.substring(s));let d=r.substring(r.length-s),f=function(e,t,n){let r;if(!e)return[[m,t]];if(!t)return[[g,e]];let i=e.length>t.length?e:t,o=e.length>t.length?t:e,a=i.indexOf(o);if(-1!==a)return r=[[m,i.substring(0,a)],[y,o],[m,i.substring(a+o.length)]],e.length>t.length&&(r[0][0]=g,r[2][0]=g),r;if(1===o.length)return[[g,e],[m,t]];let s=function(e,t,n=1){let r,i,o,a,s;if(n<=0)return null;let l=e.length>t.length?e:t,c=e.length>t.length?t:e;if(l.length<4||2*c.length<l.length)return null;let d=u(l,c,Math.ceil(l.length/4)),f=u(l,c,Math.ceil(l.length/2));if(d&&f)r=d[4].length>f[4].length?d:f;else{if(!d&&!f)return null;f?d||(r=f):r=d}if(!r)throw Error("Unable to find a half match.");return e.length>t.length?(i=r[0],o=r[1],a=r[2],s=r[3]):(a=r[0],s=r[1],i=r[2],o=r[3]),[i,o,a,s,r[4]]}(e,t);if(s){let e=s[0],t=s[1],r=s[2],i=s[3],o=s[4],a=b(e,r,n),l=b(t,i,n);return a.concat([[y,o]],l)}return n.checkLines&&e.length>100&&t.length>100?function(e,t,n){let r=e,i=t,o=function(e,t){let n=[],r={};function i(e){let t="",i=0,a=-1,s=n.length;for(;a<e.length-1;){-1===(a=e.indexOf(`
47`,i))&&(a=e.length-1);let l=e.slice(i,a+1);(r.hasOwnProperty?r.hasOwnProperty(l):void 0!==r[l])?t+=String.fromCharCode(r[l]):(s===o&&(l=e.slice(i),a=e.length),t+=String.fromCharCode(s),r[l]=s,n[s++]=l),i=a+1}return t}n[0]="";let o=4e4,a=i(e);return o=65535,{chars1:a,chars2:i(t),lineArray:n}}(r,i);r=o.chars1,i=o.chars2;let a=o.lineArray,s=b(r,i,{checkLines:!1,deadline:n.deadline});(function(e,t){for(let n=0;n<e.length;n++){let r=e[n][1],i=[];for(let e=0;e<r.length;e++)i[e]=t[r.charCodeAt(e)];e[n][1]=i.join("")}})(s,a),(s=E(s)).push([y,""]);let l=0,u=0,c=0,d="",f="";for(;l<s.length;){switch(s[l][0]){case m:c++,f+=s[l][1];break;case g:u++,d+=s[l][1];break;case y:if(u>=1&&c>=1){s.splice(l-u-c,u+c),l=l-u-c;let e=b(d,f,{checkLines:!1,deadline:n.deadline});for(let t=e.length-1;t>=0;t--)s.splice(l,0,e[t]);l+=e.length}c=0,u=0,d="",f="";break;default:throw Error("Unknown diff operation.")}l++}return s.pop(),s}
47(e,t,n):function(e,t,n){let r=e.length,i=t.length,o=Math.ceil((r+i)/2),a=2*o,s=Array(a),u=Array(a);for(let e=0;e<a;e++)s[e]=-1,u[e]=-1;s[o+1]=0,u[o+1]=0;let c=r-i,d=c%2!=0,f=0,h=0,p=0,y=0;for(let g=0;g<o&&!(Date.now()>n);g++){for(let p=-g+f;p<=g-h;p+=2){let m,y=o+p,v=(m=p===-g||p!==g&&s[y-1]<s[y+1]?s[y+1]:s[y-1]+1)-p;for(;m<r&&v<i&&e.charAt(m)===t.charAt(v);)m++,v++;if(s[y]=m,m>r)h+=2;else if(v>i)f+=2;else if(d){let i=o+c-p;if(i>=0&&i<a&&-1!==u[i]&&m>=r-u[i])return l(e,t,m,v,n)}}for(let f=-g+p;f<=g-y;f+=2){let h,m=o+f,v=(h=f===-g||f!==g&&u[m-1]<u[m+1]?u[m+1]:u[m-1]+1)-f;for(;h<r&&v<i&&e.charAt(r-h-1)===t.charAt(i-v-1);)h++,v++;if(u[m]=h,h>r)y+=2;else if(v>i)p+=2;else if(!d){let i=o+c-f;if(i>=0&&i<a&&-1!==s[i]){let a=s[i],u=o+a-i;if(a>=(h=r-h))return l(e,t,a,u,n)}}}}return[[g,e],[m,t]]}(e,t,n.deadline)}(r=r.substring(0,r.length-s),i=i.substring(0,i.length-s),n);return c&&f.unshift([y,c]),d&&f.push([y,d]),f=j(f)}function w(e,t,n){return 1===n?e+t:t+e}function x(e,t){return 1===t?[e.substring(0,e.length-1),e[e.length-1]]:[e.substring(1),e[0]]}function k(e,t,n){var r,i;let o=1===n?-1:1,a=null,s=null,l=t+n;for(;l>=0&&l<e.length&&(null===a||null===s);l+=n){let[r,i]=e[l];if(0!==i.length){if(r===m){null===a&&(a=l);continue}else if(r===g){null===s&&(s=l);continue}else if(r===y){if(null===a&&null===s){let[r,i]=x(e[t][1],n);e[t][1]=r,e[l][1]=w(e[l][1],i,o);return}break}}}if(null!==a&&null!==s&&(r=a,i=s,1===n?e[r][1][e[r][1].length-1]===e[i][1][e[i][1].length-1]:e[r][1][0]===e[i][1][0])){let[r,i]=x(e[a][1],o),[l]=x(e[s][1],o);e[a][1]=r,e[s][1]=l,e[t][1]=w(e[t][1],i,n);return}let[u,c]=x(e[t][1],n);e[t][1]=u,null===a?(e.splice(l,0,[m,c]),null!==s&&s>=l&&s++):e[a][1]=w(e[a][1],c,o),null===s?e.splice(l,0,[g,c]):e[s][1]=w(e[s][1],c,o)}function E(e){let t=e.map(e=>r(e)),n=!1,o=[],a=0,s=null,l=0,u=0,c=0,d=0,f=0;for(;l<t.length;)t[l][0]===y?(o[a++]=l,u=d,c=f,d=0,f=0,s=t[l][1]):(t[l][0]===m?d+=t[l][1].length:f+=t[l][1].length,s&&s.length<=Math.max(u,c)&&s.length<=Math.max(d,f)&&(t.splice(o[a-1],0,[g,s]),t[o[a-1]+1][0]=m,a--,l=--a>0?o[a-1]:-1,u=0,c=0,d=0,f=0,s=null,n=!0)),l++;for(n&&(t=j(t)),t=O(t),l=1;l<t.length;){if(t[l-1][0]===g&&t[l][0]===m){let e=t[l-1][1],n=t[l][1],r=i(e,n),o=i(n,e);r>=o?(r>=e.length/2||r>=n.length/2)&&(t.splice(l,0,[y,n.substring(0,r)]),t[l-1][1]=e.substring(0,e.length-r),t[l+1][1]=n.substring(r),l++):(o>=e.length/2||o>=n.length/2)&&(t.splice(l,0,[y,e.substring(0,o)]),t[l-1][0]=m,t[l-1][1]=n.substring(0,n.length-o),t[l+1][0]=g,t[l+1][1]=e.substring(o),l++),l++}l++}return t}let _=/[^a-zA-Z0-9]/,S=/\s/,A=/[\r\n]/,T=/\n\r?\n$/,C=/^\r?\n\r?\n/;function O(e){let t=e.map(e=>r(e));function n(e,t){if(!e||!t)return 6;let n=e.charAt(e.length-1),r=t.charAt(0),i=n.match(_),o=r.match(_),a=i&&n.match(S),s=o&&r.match(S),l=a&&n.match(A),u=s&&r.match(A),c=l&&e.match(T),d=u&&t.match(C);return c||d?5:l||u?4:i&&!a&&s?3:a||s?2:i||o?1:0}let i=1;for(;i<t.length-1;){if(t[i-1][0]===y&&t[i+1][0]===y){let e=t[i-1][1],r=t[i][1],o=t[i+1][1],s=a(e,r);if(s){let t=r.substring(r.length-s);e=e.substring(0,e.length-s),r=t+r.substring(0,r.length-s),o=t+o}let l=e,u=r,c=o,d=n(e,r)+n(r,o);for(;r.charAt(0)===o.charAt(0);){e+=r.charAt(0),r=r.substring(1)+o.charAt(0),o=o.substring(1);let t=n(e,r)+n(r,o);t>=d&&(d=t,l=e,u=r,c=o)}t[i-1][1]!==l&&(l?t[i-1][1]=l:(t.splice(i-1,1),i--),t[i][1]=u,c?t[i+1][1]=c:(t.splice(i+1,1),i--))}i++}return t}function j(e){let t=e.map(e=>r(e));t.push([y,""]);let n=0,i=0,s=0,l="",u="",c;for(;n<t.length;)switch(t[n][0]){case m:s++,u+=t[n][1],n++;break;case g:i++,l+=t[n][1],n++;break;case y:i+s>1?(0!==i&&0!==s&&(0!==(c=o(u,l))&&(n-i-s>0&&t[n-i-s-1][0]===y?t[n-i-s-1][1]+=u.substring(0,c):(t.splice(0,0,[y,u.substring(0,c)]),n++),u=u.substring(c),l=l.substring(c)),0!==(c=a(u,l))&&(t[n][1]=u.substring(u.length-c)+t[n][1],u=u.substring(0,u.length-c),l=l.substring(0,l.length-c))),n-=i+s,t.splice(n,i+s),l.length&&(t.splice(n,0,[g,l]),n++),u.length&&(t.splice(n,0,[m,u]),n++),n++):0!==n&&t[n-1][0]===y?(t[n-1][1]+=t[n][1],t.splice(n,1)):n++,s=0,i=0,l="",u="";break;default:throw Error("Unknown diff operation")}""===t[t.length-1][1]&&t.pop();let d=!1;for(n=1;n<t.length-1;)t[n-1][0]===y&&t[n+1][0]===y&&(t[n][1].substring(t[n][1].length-t[n-1][1].length)===t[n-1][1]?(t[n][1]=t[n-1][1]+t[n][1].substring(0,t[n][1].length-t[n-1][1].length),t[n+1][1]=t[n-1][1]+t[n+1][1],t.splice(n-1,1),d=!0):t[n][1].substring(0,t[n+1][1].length)===t[n+1][1]&&(t[n-1][1]+=t[n+1][1],t[n][1]=t[n][1].substring(t[n+1][1].length)+t[n+1][1],t.splice(n+1,1),d=!0)),n++;return d&&(t=j(t)),t}function D(e,t=4){let n=e.map(e=>r(e)),i=!1,o=[],a=0,s=null,l=0,u=!1,c=!1,d=!1,f=!1;for(;l<n.length;)n[l][0]===y?(n[l][1].length<t&&(d||f)?(o[a++]=l,u=d,c=f,s=n[l][1]):(a=0,s=null),d=!1,f=!1):(n[l][0]===g?f=!0:d=!0,s&&(u&&c&&d&&f||s.length<t/2&&3===function(...e){return e.reduce((e,t)=>
47e+ +!!t,0)}(u,c,d,f))&&(n.splice(o[a-1],0,[g,s]),n[o[a-1]+1][0]=m,a--,s=null,u&&c?(d=!0,f=!0,a=0):(l=--a>0?o[a-1]:-1,d=!1,f=!1),i=!0)),l++;return i&&(n=j(n)),n}var R=Object.defineProperty,I=Object.getOwnPropertySymbols,P=Object.prototype.hasOwnProperty,M=Object.prototype.propertyIsEnumerable,N=(e,t,n)=>t in e?R(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$=(e,t)=>{for(var n in t||(t={}))P.call(t,n)&&N(e,n,t[n]);if(I)for(var n of I(t))M.call(t,n)&&N(e,n,t[n]);return e};let L={threshold:.5,distance:1e3};function F(e,t,n,r={}){if(null===e||null===t||null===n)throw Error("Null input. (match())");let i=Math.max(0,Math.min(n,e.length));return e===t?0:e.length?e.substring(i,i+t.length)===t?i:function(e,t,n,r={}){if(t.length>32)throw Error("Pattern too long for this browser.");let i=$($({},L),r),o=function(e){let t={};for(let n=0;n<e.length;n++)t[e.charAt(n)]=0;for(let n=0;n<e.length;n++)t[e.charAt(n)]|=1<<e.length-n-1;return t}(t);function a(e,r){let o=e/t.length,a=Math.abs(n-r);return i.distance?o+a/i.distance:a?1:o}let s=i.threshold,l=e.indexOf(t,n);-1!==l&&(s=Math.min(a(0,l),s),-1!==(l=e.lastIndexOf(t,n+t.length))&&(s=Math.min(a(0,l),s)));let u=1<<t.length-1;l=-1;let c,d,f=t.length+e.length,h=[];for(let r=0;r<t.length;r++){for(c=0,d=f;c<d;)a(r,n+d)<=s?c=d:f=d,d=Math.floor((f-c)/2+c);f=d;let i=Math.max(1,n-d+1),p=Math.min(n+d,e.length)+t.length,g=Array(p+2);g[p+1]=(1<<r)-1;for(let t=p;t>=i;t--){let c=o[e.charAt(t-1)];if(0===r?g[t]=(g[t+1]<<1|1)&c:g[t]=(g[t+1]<<1|1)&c|((h[t+1]|h[t])<<1|1)|h[t+1],g[t]&u){let e=a(r,t-1);if(e<=s)if(s=e,(l=t-1)>n)i=Math.max(1,2*n-l);else break}}if(a(r+1,n)>s)break;h=g}return l}(e,t,i,r):-1}function U(e){let t=[];for(let n=0;n<e.length;n++)e[n][0]!==m&&(t[n]=e[n][1]);return t.join("")}function z(e){let t=[];for(let n=0;n<e.length;n++)e[n][0]!==g&&(t[n]=e[n][1]);return t.join("")}function B(e,t){let n=0,r=0,i=0,o=0,a;for(a=0;a<e.length&&(e[a][0]!==m&&(n+=e[a][1].length),e[a][0]!==g&&(r+=e[a][1].length),!(n>t));a++)i=n,o=r;return e.length!==a&&e[a][0]===g?o:o+(t-i)}function q(e){let t=0;for(let n=0;n<e.length;n++){let r=e.codePointAt(n);if(typeof r>"u")throw Error("Failed to get codepoint");t+=V(r)}return t}function V(e){return e<=127?1:e<=2047?2:e<=65535?3:4}function H(e,t){return{diffs:[],start1:e,start2:t,utf8Start1:e,utf8Start2:t,length1:0,length2:0,utf8Length1:0,utf8Length2:0}}function W(e,t,n={}){if("string"==typeof e)throw Error("Patches must be an array - pass the patch to `parsePatch()` first");let i=t;if(0===e.length)return[i,[]];let o=function(e,t,n={}){let i=0,o=0;function a(e){for(;i<e;){let e=t.codePointAt(o);if(typeof e>"u")return o;i+=V(e),e>65535?o+=2:o+=1}if(!n.allowExceedingIndices&&i!==e)throw Error("Failed to determine byte offset");return o}let s=[];for(let t of e)s.push({diffs:t.diffs.map(e=>r(e)),start1:a(t.start1),start2:a(t.start2),utf8Start1:t.utf8Start1,utf8Start2:t.utf8Start2,length1:t.length1,length2:t.length2,utf8Length1:t.utf8Length1,utf8Length2:t.utf8Length2});return s}(e,i,{allowExceedingIndices:n.allowExceedingIndices}),a=n.margin||4,s=n.deleteThreshold||.4,l=function(e,t=4){let n="";for(let e=1;e<=t;e++)n+=String.fromCharCode(e);for(let n of e)n.start1+=t,n.start2+=t,n.utf8Start1+=t,n.utf8Start2+=t;let r=e[0],i=r.diffs;if(0===i.length||i[0][0]!==y)i.unshift([y,n]),r.start1-=t,r.start2-=t,r.utf8Start1-=t,r.utf8Start2-=t,r.length1+=t,r.length2+=t,r.utf8Length1+=t,r.utf8Length2+=t;else if(t>i[0][1].length){let e=i[0][1].length,o=t-e;i[0][1]=n.substring(e)+i[0][1],r.start1-=o,r.start2-=o,r.utf8Start1-=o,r.utf8Start2-=o,r.length1+=o,r.length2+=o,r.utf8Length1+=o,r.utf8Length2+=o}if(0===(i=(r=e[e.length-1]).diffs).length||i[i.length-1][0]!==y)i.push([y,n]),r.length1+=t,r.length2+=t,r.utf8Length1+=t,r.utf8Length2+=t;else if(t>i[i.length-1][1].length){let e=t-i[i.length-1][1].length;i[i.length-1][1]+=n.substring(0,e),r.length1+=e,r.length2+=e,r.utf8Length1+=e,r.utf8Length2+=e}return n}(o,a);i=l+i+l,function(e,t=4){for(let n=0;n<e.length;n++){if(e[n].length1<=32)continue;let r=e[n];e.splice(n--,1);let i=r.start1,o=r.start2,a="";for(;0!==r.diffs.length;){let s=H(i-a.length,o-a.length),l=!0;if(""!==a){let e=q(a);s.length1=a.length,s.utf8Length1=e,s.length2=a.length,s.utf8Length2=e,s.diffs.push([y,a])}for(;0!==r.diffs.length&&s.length1<32-t;){let e=r.diffs[0][0],n=r.diffs[0][1],a=q(n);if(e===m){s.length2+=n.length,s.utf8Length2+=a,o+=n.length;let e=r.diffs.shift();e&&s.diffs.push(e),l=!1}else e===g&&1===s.diffs.length&&s.diffs[0][0]===y&&n.length>64?(s.length1+=n.length,s.utf8Length1+=a,i+=n.length,l=!1,s.diffs.push([e,n]),r.diffs.shift()):(a=q(n=n.substring(0,32-s.length1-t)),s.length1+=n.length,s.utf8Length1+=a,i+=n.length,e===y?(s.length2+=n.length,s.utf8Length2+=a,o+=n.length):l=!1,s.diffs.push([e,n]),n===r.diffs[0][1]?r.diffs.shift():r.diffs[0][1]=r.diffs[0][1].substring(n.length))}a=(a=z(s.diffs)).substring(a.length-t);let u=U(r.diffs).substring(0,t),c=q(u);""!==u&&(s.length1+=u.length,s.length2+=u.length,s.utf8Length1+=c,s.utf8Length2+=c,0!==s.diffs.length&&s.diffs[s.diffs.length-1][0]===y?s.diffs[s.diffs.length-1][1]+=u:s.diffs.push([y,u])),l||e.splice(++n,0,s)}}}(o,a);let u=0,c=[];for(let e=0;e<o.length;
47e++){let t=o[e].start2+u,n=U(o[e].diffs),r,a=-1;if(n.length>32?-1!==(r=F(i,n.substring(0,32),t))&&(-1===(a=F(i,n.substring(n.length-32),t+n.length-32))||r>=a)&&(r=-1):r=F(i,n,t),-1===r)c[e]=!1,u-=o[e].length2-o[e].length1;else{let l;if(c[e]=!0,u=r-t,l=-1===a?i.substring(r,r+n.length):i.substring(r,a+32),n===l)i=i.substring(0,r)+z(o[e].diffs)+i.substring(r+n.length);else{let t=v(n,l,{checkLines:!1});if(n.length>32&&function(e){let t=0,n=0,r=0;for(let i=0;i<e.length;i++){let o=e[i][0],a=e[i][1];switch(o){case m:n+=a.length;break;case g:r+=a.length;break;case y:t+=Math.max(n,r),n=0,r=0;break;default:throw Error("Unknown diff operation.")}}return t+Math.max(n,r)}(t)/n.length>s)c[e]=!1;else{t=O(t);let n=0,a=0;for(let s=0;s<o[e].diffs.length;s++){let l=o[e].diffs[s];l[0]!==y&&(a=B(t,n)),l[0]===m?i=i.substring(0,r+a)+l[1]+i.substring(r+a):l[0]===g&&(i=i.substring(0,r+a)+i.substring(r+B(t,n+l[1].length))),l[0]!==g&&(n+=l[1].length)}}}}}return[i=i.substring(l.length,i.length-l.length),c]}var Y=Object.defineProperty,G=Object.getOwnPropertySymbols,K=Object.prototype.hasOwnProperty,X=Object.prototype.propertyIsEnumerable,Z=(e,t,n)=>t in e?Y(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Q=(e,t)=>{for(var n in t||(t={}))K.call(t,n)&&Z(e,n,t[n]);if(G)for(var n of G(t))X.call(t,n)&&Z(e,n,t[n]);return e};let J={margin:4};function ee(e={}){return Q(Q({},J),e)}function et(e,t,n){if("string"==typeof e&&"string"==typeof t){let r=v(e,t,{checkLines:!0});return r.length>2&&(r=D(r=E(r))),en(e,r,ee(n))}if(e&&Array.isArray(e)&&typeof t>"u")return en(U(e),e,ee(n));if("string"==typeof e&&t&&Array.isArray(t))return en(e,t,ee(n));throw Error("Unknown call format to make()")}function en(e,t,n){if(0===t.length)return[];let r=[],i=H(0,0),o=0,a=0,s=0,l=0,u=0,c=e,d=e;for(let e=0;e<t.length;e++){let f=t[e],[h,p]=f,v=p.length,b=q(p);switch(!o&&h!==y&&(i.start1=a,i.start2=s,i.utf8Start1=l,i.utf8Start2=u),h){case m:i.diffs[o++]=f,i.length2+=v,i.utf8Length2+=b,d=d.substring(0,s)+p+d.substring(s);break;case g:i.length1+=v,i.utf8Length1+=b,i.diffs[o++]=f,d=d.substring(0,s)+d.substring(s+v);break;case y:v<=2*n.margin&&o&&t.length!==e+1?(i.diffs[o++]=f,i.length1+=v,i.length2+=v,i.utf8Length1+=b,i.utf8Length2+=b):v>=2*n.margin&&o&&(er(i,c,n),r.push(i),i=H(-1,-1),o=0,c=d,a=s,l=u);break;default:throw Error("Unknown diff type")}h!==m&&(a+=v,l+=b),h!==g&&(s+=v,u+=b)}return o&&(er(i,c,n),r.push(i)),r}function er(e,t,n){if(0===t.length)return;let r=t.substring(e.start2,e.start2+e.length1),i=0;for(;t.indexOf(r)!==t.lastIndexOf(r)&&r.length<32-n.margin-n.margin;)i+=n.margin,r=t.substring(e.start2-i,e.start2+e.length1+i);i+=n.margin;let o=e.start2-i;o>=1&&s(t[o])&&o--;let a=t.substring(o,e.start2);a&&e.diffs.unshift([y,a]);let l=a.length,u=q(a),c=e.start2+e.length1+i;c<t.length&&s(t[c])&&c++;let d=t.substring(e.start2+e.length1,c);d&&e.diffs.push([y,d]);let f=d.length,h=q(d);e.start1-=l,e.start2-=l,e.utf8Start1-=u,e.utf8Start2-=u,e.length1+=l+f,e.length2+=l+f,e.utf8Length1+=u+h,e.utf8Length2+=u+h}let ei=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;function eo(e){if(!e)return[];let t=[],n=e.split(`
48`),r=0;for(;r<n.length;){let e=n[r].match(ei);if(!e)throw Error(`Invalid patch string: ${n[r]}`);let i=H(ea(e[1]),ea(e[3]));for(t.push(i),""===e[2]?(i.start1--,i.utf8Start1--,i.length1=1,i.utf8Length1=1):"0"===e[2]?(i.length1=0,i.utf8Length1=0):(i.start1--,i.utf8Start1--,i.utf8Length1=ea(e[2]),i.length1=i.utf8Length1),""===e[4]?(i.start2--,i.utf8Start2--,i.length2=1,i.utf8Length2=1):"0"===e[4]?(i.length2=0,i.utf8Length2=0):(i.start2--,i.utf8Start2--,i.utf8Length2=ea(e[4]),i.length2=i.utf8Length2),r++;r<n.length;){let e,t=n[r],o=t.charAt(0);if("@"===o)break;if(""===o){r++;continue}try{e=decodeURI(t.slice(1))}catch(e){throw Error(`Illegal escape in parse: ${t}`)}let a=q(e)-e.length;if("-"===o)i.diffs.push([g,e]),i.length1-=a;else if("+"===o)i.diffs.push([m,e]),i.length2-=a;else if(" "===o)i.diffs.push([y,e]),i.length1-=a,i.length2-=a;else throw Error(`Invalid patch mode "${o}" in: ${e}`);r++}}return t}function ea(e){return parseInt(e,10)}function es(e){return e.map(el).join("")}function el(e){let t,n,r,{utf8Length1:i,utf8Length2:o,utf8Start1:a,utf8Start2:s,diffs:l}=e;t=0===i?`${a},0`:1===i?`${a+1}`:`${a+1},${i}`,n=0===o?`${s},0`:1===o?`${s+1}`:`${s+1},${o}`;let u=[`@@ -${t} +${n} @@
49`];for(let e=0;e<l.length;e++){switch(l[e][0]){case m:r="+";break;case g:r="-";break;case y:r=" ";break;default:throw Error("Unknown patch operation.")}u[e+1]=`${r+encodeURI(l[e][1])}
50`}return u.join("").replace(/%20/g," ")}},50466:(e,t,n)=>{var r=n(3836),i=n(81489);e.exports=function(e,t){t=r(t,e);for(var n=0,o=t.length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},50480:(e,t)=>{"use strict";t.q=function(e){for(var t,n=[],r=String(e||""),i=r.indexOf(","),o=0,a=!1;!a;)-1===i&&(i=r.length,a=!0),((t=r.slice(o,i).trim())||!a)&&n.push(t),o=i+1,i=r.indexOf(",",o);return n}},50513:(e,t,n)=>{"use strict";n.d(t,{K:()=>i});var r=n(87014);function i(e,t,n=[t],o="npm"){let a=e._metadata||{};a.sdk||(a.sdk={name:`sentry.javascript.${t}`,packages:n.map(e=>({name:`${o}:@sentry/${e}`,version:r.M})),version:r.M}),e._metadata=a}}
50,50593:(e,t,n)=>{"use strict";n.d(t,{G:()=>l});var r=n(77865),i=n(87876),o=n(23791),a=n(31179);let s=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],l=(0,i._C)((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&(0,r.GS)(a.jf,"setTimeout",u),t.setInterval&&(0,r.GS)(a.jf,"setInterval",u),t.requestAnimationFrame&&(0,r.GS)(a.jf,"requestAnimationFrame",c),t.XMLHttpRequest&&"XMLHttpRequest"in a.jf&&(0,r.GS)(XMLHttpRequest.prototype,"send",d);let e=t.eventTarget;e&&(Array.isArray(e)?e:s).forEach(f)}}});function u(e){return function(...t){let n=t[0];return t[0]=(0,a.LV)(n,{mechanism:{data:{function:(0,o.qQ)(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function c(e){return function(t){return e.apply(this,[(0,a.LV)(t,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,o.qQ)(e)},handled:!1,type:"instrument"}})])}}function d(e){return function(...t){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&(0,r.GS)(n,e,function(t){let n={mechanism:{data:{function:e,handler:(0,o.qQ)(t)},handled:!1,type:"instrument"}},i=(0,r.sp)(t);return i&&(n.mechanism.data.handler=(0,o.qQ)(i)),(0,a.LV)(t,n)})}),e.apply(this,t)}}function f(e){let t=a.jf[e],n=t&&t.prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,r.GS)(n,"addEventListener",function(t){return function(n,r,i){try{var s;s=r,"function"==typeof s.handleEvent&&(r.handleEvent=(0,a.LV)(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,o.qQ)(r),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[n,(0,a.LV)(r,{mechanism:{data:{function:"addEventListener",handler:(0,o.qQ)(r),target:e},handled:!1,type:"instrument"}}),i])}}),(0,r.GS)(n,"removeEventListener",function(e){return function(t,n,r){try{let i=n.__sentry_wrapped__;i&&e.call(this,t,i,r)}catch(e){}return e.call(this,t,n,r)}}))}},50950:(e,t,n)=>{"use strict";n.d(t,{A:()=>eM});var r=n(39292);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function o(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return i(e,void 0);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,void 0):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}}var a=n(33157),s=n(8729),l=n(47528),u=n(45165),c=n(46787),d=n(16547),f=n(76774),h=n(18659),p=n(71260);function g(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var m=n(57602);function y(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,m.A)(e,t)}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(b=function(){return!!e})()}function w(e){var t=b();return function(){var n,i=v(e);n=t?Reflect.construct(i,arguments,v(this).constructor):i.apply(this,arguments);if(n&&("object"==(0,r.A)(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return g(this)}}function x(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}var k=n(33801);function E(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(0,k.A)(r.key),r)}}function _(e,t,n){return t&&E(e.prototype,t),n&&E(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var S=n(92575),A=function(){function e(){x(this,e),(0,S.A)(this,"priority",void 0),(0,S.A)(this,"subPriority",0)}return _(e,[{key:"validate",value:function(e,t){return!0}}]),e}(),T=function(e){y(n,e);var t=w(n);function n(e,r,i,o,a){var s;return x(this,n),(s=t.call(this)).value=e,s.validateValue=r,s.setValue=i,s.priority=o,a&&(s.subPriority=a),s}return _(n,[{key:"validate",value:function(e,t){return this.validateValue(e,this.value,t)}},{key:"set",value:function(e,t,n){return this.setValue(e,t,this.value,
50n)}}]),n}(A),C=function(e){y(n,e);var t=w(n);function n(){var e;x(this,n);for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,S.A)(g(e),"priority",10),(0,S.A)(g(e),"subPriority",-1),e}return _(n,[{key:"set",value:function(e,t){if(t.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}}]),n}(A),O=function(){function e(){x(this,e),(0,S.A)(this,"incompatibleTokens",void 0),(0,S.A)(this,"priority",void 0),(0,S.A)(this,"subPriority",void 0)}return _(e,[{key:"run",value:function(e,t,n,r){var i=this.parse(e,t,n,r);return i?{setter:new T(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}},{key:"validate",value:function(e,t,n){return!0}}]),e}(),j=function(e){y(n,e);var t=w(n);function n(){var e;x(this,n);for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,S.A)(g(e),"priority",140),(0,S.A)(g(e),"incompatibleTokens",["R","u","t","T"]),e}return _(n,[{key:"parse",value:function(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}},{key:"set",value:function(e,t,n){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(O),D=n(75776),R={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},I={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function P(e,t){return e?{value:t(e.value),rest:e.rest}:e}function M(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function N(e,t){var n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};var r="+"===n[1]?1:-1,i=n[2]?parseInt(n[2],10):0,o=n[3]?parseInt(n[3],10):0,a=n[5]?parseInt(n[5],10):0;return{value:r*(i*D.s0+o*D.Cg+a*D._m),rest:t.slice(n[0].length)}}function $(e){return M(R.anyDigitsSigned,e)}function L(e,t){switch(e){case 1:return M(R.singleDigit,t);case 2:return M(R.twoDigits,t);case 3:return M(R.threeDigits,t);case 4:return M(R.fourDigits,t);default:return M(RegExp("^\\d{1,"+e+"}"),t)}}function F(e,t){switch(e){case 1:return M(R.singleDigitSigned,t);case 2:return M(R.twoDigitsSigned,t);case 3:return M(R.threeDigitsSigned,t);case 4:return M(R.fourDigitsSigned,t);default:return M(RegExp("^-?\\d{1,"+e+"}"),t)}}function U(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function z(e,t){var n,r=t>0,i=r?t:1-t;if(i<=50)n=e||100;else{var o=i+50;n=e+100*Math.floor(o/100)-100*(e>=o%100)}return r?n:1-n}function B(e){return e%400==0||e%4==0&&e%100!=0}var q=function(e){y(n,e);var t=w(n);function n(){var e;x(this,n);for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,S.A)(g(e),"priority",130),(0,S.A)(g(e),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),e}return _(n,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return P(L(4,e),r);case"yo":return P(n.ordinalNumber(e,{unit:"year"}),r);default:return P(L(t.length,e),r)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n){var r=e.getUTCFullYear();if(n.isTwoDigitYear){var i=z(n.year,r);return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e}var o="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(O),V=n(38079),H=n(89149),W=function(e){y(n,e);var t=w(n);function n(){var e;x(this,n);for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,S.A)(g(e),"priority",130),(0,S.A)(g(e),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),e}return _(n,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return P(L(4,e),r);case"Yo":return P(n.ordinalNumber(e,{unit:"year"}),r);default:return P(L(t.length,e),r)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n,r){var i=(0,V.A)(e,r);if(n.isTwoDigitYear){var o=z(n.year,i);return e.setUTCFullYear(o,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,H.A)(e,r)}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,H.A)(e,r)}}]),n}(O),Y=n(85356),G=function(e){y(n,e);var t=w(n);function n(){var e;x(this,n);for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,S.A)(g(e),"priority",130),(0,S.A)(g(e),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),e}return _(n,[{key:"parse",value:function(e,t){return"R"===t?F(4,e):F(t.length,e)}},{key:"set",value:function(e,t,n){var r=new Date(0);return r.setUTCFullYear(n,0,4),r.setUTCHours(0,0,0,0),(0,Y.A)(r)}}]),n}(O),K=function(e){y(n,e);var t=w(n);function n(){var e;x(this,n);for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,S.A)(g(e),"priority",130),(0,S.A)(g(e),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),e}return _(n,[{key:"parse",value:function(e,t){return"u"===t?F(4,e):F(t.length,e)}},{key:"set",value:function(e,t,n){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),n}
50(O),X=function(e){y(n,e);var t=w(n);function n(){var e;x(this,n);for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,S.A)(g(e),"priority",120),(0,S.A)(g(e),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),e}return _(n,[{key:"parse",value:function(e,t,n){switch(t){case"Q":case"QQ":return L(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth((n-1)*3,1),e.setUTCHours(0,0,0,0),e}}]),n}(O),Z=function(e){y(n,e);var t=w(n);function n(){var e;x(this,n);for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,S.A)(g(e),"priority",120),(0,S.A)(g(e),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),e}return _(n,[{key:"parse",value:function(e,t,n){switch(t){case"q":case"qq":return L(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth((n-1)*3,1),e.setUTCHours(0,0,0,0),e}}]),n}(O),Q=function(e){y(n,e);var t=w(n);function n(){var e;x(this,n);for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,S.A)(g(e),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),(0,S.A)(g(e),"priority",110),e}return _(n,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"M":return P(M(R.month,e),r);case"MM":return P(L(2,e),r);case"Mo":return P(n.ordinalNumber(e,{unit:"month"}),r);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(O),J=function(e){y(n,e);var t=w(n);function n(){var e;x(this,n);for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,S.A)(g(e),"priority",110),(0,S.A)(g(e),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),e}return _(n,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"L":return P(M(R.month,e),r);case"LL":return P(L(2,e),r);case"Lo":return P(n.ordinalNumber(e,{unit:"month"}),r);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(O),ee=n(36234),et=function(e){y(n,e);var t=w(n);function n(){var e;x(this,n);for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,S.A)(g(e),"priority",100),(0,S.A)(g(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),e}return _(n,[{key:"parse",value:function(e,t,n){switch(t){case"w":return M(R.week,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return L(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n,r){return(0,H.A)(function(e,t,n){(0,p.A)(2,arguments);var r=(0,l.A)(e),i=(0,h.A)(t),o=(0,ee.A)(r,n)-i;return r.setUTCDate(r.getUTCDate()-7*o),r}(e,n,r),r)}}]),n}(O),en=n(79185),er=function(e){y(n,e);var t=w(n);function n(){var e;x(this,n);for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,S.A)(g(e),"priority",100),(0,S.A)(g(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),e}return _(n,[{key:"parse",value:function(e,t,n){switch(t){case"I":return M(R.week,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return L(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n){return(0,Y.A)(function(e,t){(0,p.A)(2,arguments);var n=(0,l.A)(e),r=(0,h.A)(t),i=(0,en.A)(n)-r;return n.setUTCDate(n.getUTCDate()-7*i),n}(e,n))}}]),n}(O),ei=[31,28,31,30,31,30,31,31,30,31,30,31],eo=[31,29,31,30,31,30,31,31,30,31,30,31],ea=function(e){y(n,e);var t=w(n);function n(){var e;x(this,n);for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,S.A)(g(e),"priority",90),(0,S.A)(g(e),"subPriority",1),(0,S.A)(g(e),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),e}return _(n,[{key:"parse",value:function(e,t,n){switch(t){case"d":return M(R.date,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return L(t.length,e)}}},{key:"validate",value:function(e,t){var n=B(e.getUTCFullYear()),r=e.getUTCMonth();return n?t>=1&&t<=eo[r]:t>=1&&t<=ei[r]}},{key:"set",value:function(e,t,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}}]),n}(O),es=function(e){y(n,e);var t=w(n);function n(){var e;x(this,n);for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,S.A)(g(e),"priority",90),(0,S.A)(g(e),"subpriority",1),(0,S.A)(g(e),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),e}return _(n,[{key:"parse",value:function(e,t,n){switch(t){case"D":case"DD":return M(R.dayOfYear,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return L(t.length,e)}}},{key:"validate",value:function(e,t){return B(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365}},{key:"set",value:function(e,t,n){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}}]),n}(O),el=n(29449);function eu(e,t,n){(0,p.A)(2,arguments);var r,i,o,a,s,u,c,d,f=(0,el.q)(),g=(0,h.A)(null!=(r=null!=(i=null!=(o=null!=(a=null==n?void 0:n.weekStartsOn)?a:null==n||null==(s=n.locale)||null==(u=s.options)?void 0:u.weekStartsOn)?o:f.
50weekStartsOn)?i:null==(c=f.locale)||null==(d=c.options)?void 0:d.weekStartsOn)?r:0);if(!(g>=0&&g<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=(0,l.A)(e),y=(0,h.A)(t),v=7*((y%7+7)%7<g)+y-m.getUTCDay();return m.setUTCDate(m.getUTCDate()+v),m}var ec=function(e){y(n,e);var t=w(n);function n(){var e;x(this,n);for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,S.A)(g(e),"priority",90),(0,S.A)(g(e),"incompatibleTokens",["D","i","e","c","t","T"]),e}return _(n,[{key:"parse",value:function(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=eu(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(O),ed=function(e){y(n,e);var t=w(n);function n(){var e;x(this,n);for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,S.A)(g(e),"priority",90),(0,S.A)(g(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),e}return _(n,[{key:"parse",value:function(e,t,n,r){var i=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return P(L(t.length,e),i);case"eo":return P(n.ordinalNumber(e,{unit:"day"}),i);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=eu(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(O),ef=function(e){y(n,e);var t=w(n);function n(){var e;x(this,n);for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,S.A)(g(e),"priority",90),(0,S.A)(g(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),e}return _(n,[{key:"parse",value:function(e,t,n,r){var i=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return P(L(t.length,e),i);case"co":return P(n.ordinalNumber(e,{unit:"day"}),i);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=eu(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(O),eh=function(e){y(n,e);var t=w(n);function n(){var e;x(this,n);for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,S.A)(g(e),"priority",90),(0,S.A)(g(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),e}return _(n,[{key:"parse",value:function(e,t,n){var r=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return L(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return P(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return P(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return P(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);default:return P(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r)}}},{key:"validate",value:function(e,t){return t>=1&&t<=7}},{key:"set",value:function(e,t,n){return(e=function(e,t){(0,p.A)(2,arguments);var n=(0,h.A)(t);n%7==0&&(n-=7);var r=(0,l.A)(e),i=7*((n%7+7)%7<1)+n-r.getUTCDay();return r.setUTCDate(r.getUTCDate()+i),r}(e,n)).setUTCHours(0,0,0,0),e}}]),n}(O),ep=function(e){y(n,e);var t=w(n);function n(){var e;x(this,n);for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,S.A)(g(e),"priority",80),(0,S.A)(g(e),"incompatibleTokens",["b","B","H","k","t","T"]),e}return _(n,[{key:"parse",value:function(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(U(n),0,0,0),e}}]),n}(O),eg=function(e){y(n,e);var t=w(n);function n(){var e;x(this,n);for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,S.A)(g(e),"priority",80),(0,S.A)(g(e),"incompatibleTokens",["a","B","H","k","t","T"]),e}return _(n,[{key:"parse",value:function(e,t,n){switch(t){case"b":case"bb"
50:case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(U(n),0,0,0),e}}]),n}(O),em=function(e){y(n,e);var t=w(n);function n(){var e;x(this,n);for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,S.A)(g(e),"priority",80),(0,S.A)(g(e),"incompatibleTokens",["a","b","t","T"]),e}return _(n,[{key:"parse",value:function(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(U(n),0,0,0),e}}]),n}(O),ey=function(e){y(n,e);var t=w(n);function n(){var e;x(this,n);for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,S.A)(g(e),"priority",70),(0,S.A)(g(e),"incompatibleTokens",["H","K","k","t","T"]),e}return _(n,[{key:"parse",value:function(e,t,n){switch(t){case"h":return M(R.hour12h,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return L(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=12}},{key:"set",value:function(e,t,n){var r=e.getUTCHours()>=12;return r&&n<12?e.setUTCHours(n+12,0,0,0):r||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e}}]),n}(O),ev=function(e){y(n,e);var t=w(n);function n(){var e;x(this,n);for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,S.A)(g(e),"priority",70),(0,S.A)(g(e),"incompatibleTokens",["a","b","h","K","k","t","T"]),e}return _(n,[{key:"parse",value:function(e,t,n){switch(t){case"H":return M(R.hour23h,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return L(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=23}},{key:"set",value:function(e,t,n){return e.setUTCHours(n,0,0,0),e}}]),n}(O),eb=function(e){y(n,e);var t=w(n);function n(){var e;x(this,n);for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,S.A)(g(e),"priority",70),(0,S.A)(g(e),"incompatibleTokens",["h","H","k","t","T"]),e}return _(n,[{key:"parse",value:function(e,t,n){switch(t){case"K":return M(R.hour11h,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return L(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}}]),n}(O),ew=function(e){y(n,e);var t=w(n);function n(){var e;x(this,n);for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,S.A)(g(e),"priority",70),(0,S.A)(g(e),"incompatibleTokens",["a","b","h","H","K","t","T"]),e}return _(n,[{key:"parse",value:function(e,t,n){switch(t){case"k":return M(R.hour24h,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return L(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=24}},{key:"set",value:function(e,t,n){return e.setUTCHours(n<=24?n%24:n,0,0,0),e}}]),n}(O),ex=function(e){y(n,e);var t=w(n);function n(){var e;x(this,n);for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,S.A)(g(e),"priority",60),(0,S.A)(g(e),"incompatibleTokens",["t","T"]),e}return _(n,[{key:"parse",value:function(e,t,n){switch(t){case"m":return M(R.minute,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return L(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCMinutes(n,0,0),e}}]),n}(O),ek=function(e){y(n,e);var t=w(n);function n(){var e;x(this,n);for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,S.A)(g(e),"priority",50),(0,S.A)(g(e),"incompatibleTokens",["t","T"]),e}return _(n,[{key:"parse",value:function(e,t,n){switch(t){case"s":return M(R.second,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return L(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCSeconds(n,0),e}}]),n}(O),eE=function(e){y(n,e);var t=w(n);function n(){var e;x(this,n);for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,S.A)(g(e),"priority",30),(0,S.A)(g(e),"incompatibleTokens",["t","T"]),e}return _(n,[{key:"parse",value:function(e,t){return P(L(t.length,e),function(e){return Math.floor(e*Math.pow(10,-t.length+3))})}},{key:"set",value:function(e,t,n){return e.setUTCMilliseconds(n),e}}]),n}(O),e_=function(e){y(n,e);var t=w(n);function n(){var e;x(this,n);for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,S.A)(g(e),"priority",10),(0,S.A)(g(e),"incompatibleTokens",["t","T","x"]),e}return _(n,[{key:"parse",value:function(e,t){switch(t){case"X":return N(I.basicOptionalMinutes,e);case"XX":return N(I.basic,e);case"XXXX":return N(I.basicOptionalSeconds,e);case"XXXXX":return N(I.extendedOptionalSeconds,e);default:return N(I.extended,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(O),eS=function(e){y(n,e);var t=w(n);function n(){var e;x(this,n);for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,S.A)(g(e),"priority",10),(0,S.A)(g(e),"incompatibleTokens",["t","T","X"]),e}return _(n,[{key:"parse",value:function(e,t){switch(t){case"x":return N(I.basicOptionalMinutes,e);case"xx":return N(I.basic,e);case"xxxx":return N(I.basicOptionalSeconds,e);case"xxxxx":return N(I.extendedOptionalSeconds,e);default:return N(I.extended,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(O),eA=function(e){y(n,e);var t=w(n);function n(){var e;x(this,n);for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,S.A)(g(e),"priority",40),(0,S.A)(g(e),"incompatibleTokens","*"),e}return _(n,[{key:"parse",value:function(e){return $(e)}},{key:"set",value:function(e,t,n){return[new Date(1e3*n),{timestampIsSet:!0}]}}]),n}(O),eT=function(e){y(n,e);var t=w(n);function n(){var e;x(this,n);for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,S.A)(g(e),"priority",20),(0,S.A)(g(e),"incompatibleTokens","*"),e}return _(n,[{key:"parse",value:function(e){return $(e)}},{key:"set",value:function(e,t,n){return[new Date(n),{timestampIsSet:!0}]}}]),n}(O),eC={G:new j,y:new q,Y:new W,R:new G,u:new K,Q:new X,q:new Z,M:new Q,L:new J,w:new et,I:new er,d:new ea,D:new es,E:new ec,e:new ed,c:new ef,i:new eh,a:new ep,b:new eg,B:new em,h:new ey,H:new ev,K:new eb,k:new ew,m:new ex,s:new ek,S:new eE,X:new e_,x:new eS,t:new eA,T:new eT},eO=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ej=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,eD=/^'([^]*?)'?$/,eR=/''/g,eI=/\S/,eP=/[a-zA-Z]/;function eM(e,t,n,i){(0,p.A)(3,arguments);var g=String(e),m=String(t),y=(0,el.q)(),v=null!=(x=null!=(k=null==i?void 0:i.locale)?k:y.locale)?x:a.A;if(!v.match)throw RangeError("locale must contain match property");var b=(0,h.A)(null!=(E=null!=(_=null!=(S=null!=(A=null==i?void 0:i.firstWeekContainsDate)?A:null==i||null==(T=i.locale)||null==(O=T.options)?void 0:O.firstWeekContainsDate)?S:y.firstWeekContainsDate)?_:null==(j=y.locale)||null==(D=j.options)?void 0:D.firstWeekContainsDate)?E:1);if(!(b>=1&&b<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var w=(0,h.A)(null!=(R=null!=(I=null!=(P=null!=(M=null==i?void 0:i.weekStartsOn)?M:null==i||null==(N=i.locale)||null==($=N.options)?void 0:$.weekStartsOn)?P:y.weekStartsOn)?I:null==(L=y.locale)||null==(F=L.options)?void 0:F.weekStartsOn)?R:0);if(!(w>=0&&w<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===m)if(""===g)return(0,l.A)(n);else return new Date(NaN);var x,k,E,_,S,A,T,O,j,D,R,I,P,M,N,$,L,F,U,z={firstWeekContainsDate:b,weekStartsOn:w,locale:v},B=[new C],q=m.match(ej).map(function(e){var t=e[0];return t in c.A?(0,c.A[t])(e,v.formatLong):e}).join("").match(eO),V=[],H=o(q);try{for(H.s();!(U=H.n()).done;){var W=function(){var t=U.value;!(null!=i&&i.useAdditionalWeekYearTokens)&&(0,f.xM)(t)&&(0,f.lJ)(t,m,e),!(null!=i&&i.useAdditionalDayOfYearTokens)&&(0,f.ef)(t)&&(0,f.lJ)(t,m,e);var n=t[0],r=eC[n];if(r){var o=r.incompatibleTokens;if(Array.isArray(o)){var a=V.find(function(e){return o.includes(e.token)||e.token===n});
50if(a)throw RangeError("The format string mustn't contain `".concat(a.fullToken,"` and `").concat(t,"` at the same time"))}else if("*"===r.incompatibleTokens&&V.length>0)throw RangeError("The format string mustn't contain `".concat(t,"` and any other token at the same time"));V.push({token:n,fullToken:t});var s=r.run(g,t,v.match,z);if(!s)return{v:new Date(NaN)};B.push(s.setter),g=s.rest}else{if(n.match(eP))throw RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===t?t="'":"'"===n&&(t=t.match(eD)[1].replace(eR,"'")),0!==g.indexOf(t))return{v:new Date(NaN)};g=g.slice(t.length)}}();if("object"===(0,r.A)(W))return W.v}}catch(e){H.e(e)}finally{H.f()}if(g.length>0&&eI.test(g))return new Date(NaN);var Y=B.map(function(e){return e.priority}).sort(function(e,t){return t-e}).filter(function(e,t,n){return n.indexOf(e)===t}).map(function(e){return B.filter(function(t){return t.priority===e}).sort(function(e,t){return t.subPriority-e.subPriority})}).map(function(e){return e[0]}),G=(0,l.A)(n);if(isNaN(G.getTime()))return new Date(NaN);var K,X=(0,s.A)(G,(0,d.A)(G)),Z={},Q=o(Y);try{for(Q.s();!(K=Q.n()).done;){var J=K.value;if(!J.validate(X,z))return new Date(NaN);var ee=J.set(X,Z,z);Array.isArray(ee)?(X=ee[0],(0,u.A)(Z,ee[1])):X=ee}}catch(e){Q.e(e)}finally{Q.f()}return X}},50979:(e,t,n)=>{var r=n(48942).ExifReader;e.exports=function(e){var t=new r;t.load(e);var n=t.getAllTags(),i={};for(var o in n)i[o.replace(/([A-Z][a-z])|([a-z][A-Z])|([A-Z])/g,function(e){return 1==e.length?e.toLowerCase():e[0]==e[0].toUpperCase()?" "+e.toLowerCase():e[0]+" "+e[1].toLowerCase()}).replace(/^\s+|\s+$/g,"")]=n[o].description;return i}},51162:e=>{e.exports=function(e){return function(){return e}}},51176:(e,t,n)=>{var r=n(24539),i=n(1247),o=n(92115),a=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return -1;var l=null==n?0:o(n);return l<0&&(l=a(s+l,0)),r(e,i(t,3),l)}},51199:(e,t,n)=>{var r=n(96408),i=n(14492),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];o.call(e,t)&&i(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},51438:(e,t,n)=>{"use strict";n.d(t,{D:()=>u});var r=n(53056),i=n(87876),o=n(87086),a=n(12378),s=n(7207);let l=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/],u=(0,i._C)((e={})=>({name:"InboundFilters",processEvent:(t,n,i)=>!function(e,t){var n,i,l;return t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e)?(r.T&&o.vF.warn(`Event dropped due to being internal Sentry Error.
51Event: ${(0,a.$X)(e)}`),!0):(n=e,i=t.ignoreErrors,!n.type&&i&&i.length&&(function(e){let t,n=[];e.message&&n.push(e.message);try{t=e.exception.values[e.exception.values.length-1]}catch(e){}return t&&t.value&&(n.push(t.value),t.type&&n.push(`${t.type}: ${t.value}`)),n})(n).some(e=>(0,s.Xr)(e,i)))?(r.T&&o.vF.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
52Event: ${(0,a.$X)(e)}`),!0):(l=e).type||!l.exception||!l.exception.values||0===l.exception.values.length||l.message||l.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value)?!function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;let n=e.transaction;return!!n&&(0,s.Xr)(n,t)}(e,t.ignoreTransactions)?!function(e,t){if(!t||!t.length)return!1;let n=c(e);return!!n&&(0,s.Xr)(n,t)}(e,t.denyUrls)?!function(e,t){if(!t||!t.length)return!0;let n=c(e);return!n||(0,s.Xr)(n,t)}(e,t.allowUrls)&&(r.T&&o.vF.warn(`Event dropped due to not being matched by \`allowUrls\` option.
53Event: ${(0,a.$X)(e)}.
54Url: ${c(e)}`),!0):(r.T&&o.vF.warn(`Event dropped due to being matched by \`denyUrls\` option.
55Event: ${(0,a.$X)(e)}.
56Url: ${c(e)}`),!0):(r.T&&o.vF.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
57Event: ${(0,a.$X)(e)}`),!0):(r.T&&o.vF.warn(`Event dropped due to not having an error message, error type or stacktrace.
58Event: ${(0,a.$X)(e)}`),!0)}(t,function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:l],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,i.getOptions()))?t:null}));function c(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return r.T&&o.vF.error(`Cannot extract url for event ${(0,a.$X)(e)}`),null}}},51620:(e,t,n)=>{"use strict";n.d(t,{n:()=>a});var r=n(27778),i=n(94126),o=n(12884);function a(e,t){return(0,r.N)(function(n,r){var a=null!=t?t:{},s=a.leading,l=void 0===s||s,u=a.trailing,c=void 0!==u&&u,d=!1,f=null,h=null,p=!1,g=function(){null==h||h.unsubscribe(),h=null,c&&(v(),p&&r.complete())},m=function(){h=null,p&&r.complete()},y=function(t){return h=(0,o.Tg)(e(t)).subscribe((0,i._)(r,g,m))},v=function(){if(d){d=!1;var e=f;f=null,r.next(e),p||y(e)}};
58n.subscribe((0,i._)(r,function(e){d=!0,f=e,h&&!h.closed||(l?v():y(e))},function(){p=!0,c&&d&&h&&!h.closed||r.complete()}))})}},51651:(e,t,n)=>{var r=n(98278),i=n(76773);e.exports=function(e,t){return r(e,t,function(t,n){return i(e,n)})}},51734:(e,t,n)=>{"use strict";n.d(t,{K:()=>i});var r=Array.isArray;function i(e){return 1===e.length&&r(e[0])?e[0]:e}},51840:(e,t,n)=>{var r=n(96960),i=n(29386);e.exports=function(e){return null==e?[]:r(e,i(e))}},51947:(e,t,n)=>{"use strict";n.d(t,{u:()=>l});var r=n(56769),i=n(27778),o=n(94126),a=n(12884),s=n(29013);function l(e){var t,n,l=1/0;return null!=e&&("object"==typeof e?(l=void 0===(t=e.count)?1/0:t,n=e.delay):l=e),l<=0?function(){return r.w}:(0,i.N)(function(e,t){var r,i=0,u=function(){if(null==r||r.unsubscribe(),r=null,null!=n){var e="number"==typeof n?(0,s.O)(n):(0,a.Tg)(n(i)),l=(0,o._)(t,function(){l.unsubscribe(),c()});e.subscribe(l)}else c()},c=function(){var n=!1;r=e.subscribe((0,o._)(t,void 0,function(){++i<l?r?u():n=!0:t.complete()})),n&&u()};c()})}},52129:(e,t,n)=>{"use strict";n.d(t,{Jy:()=>h});var r=n(50437);let i=/^[A-Za-z_][A-Za-z0-9_]*$/;function o(e){return e.reduce((e,t,n)=>{var r;if(Array.isArray(t))return`${e}[${t.join(":")}]`;if("object"==typeof(r=t)&&"string"==typeof r._key)return`${e}[_key=="${t._key}"]`;if("number"==typeof t)return`${e}[${t}]`;if("string"==typeof t&&!i.test(t))return`${e}['${t}']`;if("string"==typeof t)return`${e}${0===n?"":"."}${t}`;throw Error(`Unsupported path segment "${t}"`)},"")}class a extends Error{path;value;serializedPath;constructor(e,t,n){let r=o(t);super(`${e} (at '${r}')`),this.path=t,this.serializedPath=r,this.value=n}}let s=/^[a-z0-9][a-z0-9_.-]+$/i,l=/^[a-zA-Z_][a-zA-Z0-9_-]*$/,u=/^[a-z_]/i;function c(e,t,n){if(!u.test(e))throw new a("Keys must start with a letter (a-z)",n.concat(e),t);if(!l.test(e))throw new a("Keys can only contain letters, numbers and underscores",n.concat(e),t);if("_key"===e||"_ref"===e||"_type"===e){if("string"!=typeof t)throw new a("Keys must be strings",n.concat(e),t);if(!s.test(t))throw new a("Invalid key - use less exotic characters",n.concat(e),t)}return e}let d=["_id","_type","_createdAt","_updatedAt","_rev"],f={hideWarnings:!1,diffMatchPatch:{enabled:!0,lengthThresholdAbsolute:30,lengthThresholdRelative:1.2}};function h(e,t,n=f,i=[],o=[]){if(e===t)return o;let s=Array.isArray(e)?"array":typeof e,l=Array.isArray(t)?"array":typeof t,u="undefined"===s,d="undefined"===l;if(u&&!d)return o.push({op:"set",path:i,value:t}),o;if(!u&&d)return o.push({op:"unset",path:i}),o;let w={...f,...n,diffMatchPatch:{...f.diffMatchPatch,...n.diffMatchPatch||{}}},x=u?l:s;return"object"===x||"array"===x?s!==l?(o.push({op:"set",path:i,value:t}),o):"array"===x?function(e,t,n,r,i){if(t.length>e.length&&i.push({op:"insert",after:r.concat([-1]),items:t.slice(e.length).map((e,t)=>v(e,r,t,n))}),t.length<e.length){let o=e.length-t.length==1,a=e.slice(t.length);n.ifRevisionID||!m(a)?i.push({op:"unset",path:r.concat([o?t.length:[t.length,""]])}):i.push(...a.map(e=>({op:"unset",path:r.concat({_key:e._key})})))}for(let e=0;e<t.length;e++)if(Array.isArray(t[e]))throw new a("Multi-dimensional arrays not supported",r.concat(e),t[e]);let o=Math.min(e.length,t.length),s=e.slice(0,o),l=t.slice(0,o);return m(s)&&m(l)?function(e,t,n,r,i){var o,a;let s=y(e),l=y(t);if(o=s.keys,a=l.keys,!(o.length===a.length&&o.every((e,t)=>a[t]===e)))return p(e,t,n,r,i);for(let e=0;e<l.keys.length;e++){let t=l.keys[e];h(s.index[t],v(l.index[t],r,e,n),n,r.concat({_key:t}),i)}return i}(s,l,n,r,i):p(s,l,n,r,i)}(e,t,w,i,o):function(e,t,n,r,i){let o=0===r.length,a=Object.keys(e).filter(o?g:b).map(t=>c(t,e[t],r)),s=a.length,l=Object.keys(t).filter(o?g:b).map(e=>c(e,t[e],r)),u=l.length;for(let e=0;e<s;e++){let n=a[e];n in t||i.push({op:"unset",path:r.concat(n)})}for(let o=0;o<u;o++){let a=l[o];h(e[a],t[a],n,r.concat([a]),i)}return i}(e,t,w,i,o):function(e,t,n,i,o){let a=function(e,t,n,i){let{enabled:o,lengthThresholdRelative:a,lengthThresholdAbsolute:s}=n.diffMatchPatch,l=i[i.length-1];if(!o||"string"!=typeof e||"string"!=typeof t||"string"==typeof l&&"_"===l[0]||t.length<s)return;let u="";try{let n=(0,r.iU)(e,t),i=(0,r.sw)(n);u=(0,r.w1)((0,r.jW)(i))}catch{return}return u.length>t.length*a?void 0:{op:"diffMatchPatch",path:i,value:u}}(e,t,n,i);return o.push(a||{op:"set",path:i,value:t}),o}(e,t,w,i,o)}function p(e,t,n,r,i){for(let o=0;o<e.length;o++)h(e[o],v(t[o],r,o,n),n,r.concat(o),i);return i}function g(e){return -1===d.indexOf(e)}function m(e){let t=[];for(let r=0;r<e.length;r++){var n;
58let i="object"==typeof(n=e[r])&&null!==n&&n._key;if(!i||-1!==t.indexOf(i))return!1;t.push(i)}return!0}function y(e){return e.reduce((e,t)=>(e.keys.push(t._key),e.index[t._key]=t,e),{keys:[],index:{}})}function v(e,t,n,r){if("u">typeof e)return e;if(!r.hideWarnings){let e=o(t.concat(n));console.warn(`undefined value in array converted to null (at '${e}')`)}return null}function b(e){return!0}},52182:(e,t,n)=>{"use strict";n.d(t,{Q:()=>r});let r=(0,n(82203).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},52196:(e,t,n)=>{var r=n(84807),i=n(9638),o=n(99756);e.exports=function(e){return function(t,n,a){return a&&"number"!=typeof a&&i(t,n,a)&&(n=a=void 0),t=o(t),void 0===n?(n=t,t=0):n=o(n),a=void 0===a?t<n?1:-1:o(a),r(t,n,a,e)}}},52339:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};t.default=function(e,t,r,i){return n[e]},e.exports=t.default},52413:e=>{"use strict";function t(e){var t,n;t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css,(n=e.languages.markup)&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}e.exports=t,t.displayName="css",t.aliases=[]},52441:(e,t,n)=>{var r=n(7328),i=n(11657),o=n(84962),a=n(75899);e.exports=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,o(e)),e=i(e);return t}:a},52458:(e,t,n)=>{"use strict";let{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:o}=n(33368),a=n(96818),s=(t=e.exports={}).re=[],l=t.safeRe=[],u=t.src=[],c=t.safeSrc=[],d=t.t={},f=0,h="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",o],[h,i]],g=(e,t,n)=>{let r=(e=>{for(let[t,n]of p)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e})(t),i=f++;a(e,i,t),d[e]=i,u[i]=t,c[i]=r,s[i]=new RegExp(t,n?"g":void 0),l[i]=new RegExp(r,n?"g":void 0)};g("NUMERICIDENTIFIER","0|[1-9]\\d*"),g("NUMERICIDENTIFIERLOOSE","\\d+"),g("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${h}*`),g("MAINVERSION",`(${u[d.NUMERICIDENTIFIER]})\\.(${u[d.NUMERICIDENTIFIER]})\\.(${u[d.NUMERICIDENTIFIER]})`),g("MAINVERSIONLOOSE",`(${u[d.NUMERICIDENTIFIERLOOSE]})\\.(${u[d.NUMERICIDENTIFIERLOOSE]})\\.(${u[d.NUMERICIDENTIFIERLOOSE]})`),g("PRERELEASEIDENTIFIER",`(?:${u[d.NONNUMERICIDENTIFIER]}|${u[d.NUMERICIDENTIFIER]})`),g("PRERELEASEIDENTIFIERLOOSE",`(?:${u[d.NONNUMERICIDENTIFIER]}|${u[d.NUMERICIDENTIFIERLOOSE]})`),g("PRERELEASE",`(?:-(${u[d.PRERELEASEIDENTIFIER]}(?:\\.${u[d.PRERELEASEIDENTIFIER]})*))`),g("PRERELEASELOOSE",`(?:-?(${u[d.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[d.PRERELEASEIDENTIFIERLOOSE]})*))`),g("BUILDIDENTIFIER",`${h}+`),g("BUILD",`(?:\\+(${u[d.BUILDIDENTIFIER]}(?:\\.${u[d.BUILDIDENTIFIER]})*))`),g("FULLPLAIN",`v?${u[d.MAINVERSION]}${u[d.PRERELEASE]}?${u[d.BUILD]}?`),g("FULL",`^${u[d.FULLPLAIN]}$`),g("LOOSEPLAIN",`[v=\\s]*${u[d.MAINVERSIONLOOSE]}${u[d.PRERELEASELOOSE]}?${u[d.BUILD]}?`),g("LOOSE",`^${u[d.LOOSEPLAIN]}$`),g("GTLT","((?:<|>)?=?)"),g("XRANGEIDENTIFIERLOOSE",`${u[d.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),g("XRANGEIDENTIFIER",`${u[d.NUMERICIDENTIFIER]}|x|X|\\*`),g("XRANGEPLAIN",`[v=\\s]*(${u[d.XRANGEIDENTIFIER]})(?:\\.(${u[d.XRANGEIDENTIFIER]})(?:\\.(${u[d.XRANGEIDENTIFIER]})(?:${u[d.PRERELEASE]})?${u[d.BUILD]}?)?)?`),g("XRANGEPLAINLOOSE",`[v=\\s]*(${u[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[d.XRANGEIDENTIFIERLOOSE]})(?:${u[d.PRERELEASELOOSE]})?${u[d.BUILD]}?)?)?`),g("XRANGE",`^${u[d.GTLT]}\\s*${u[d.XRANGEPLAIN]}$`),g("XRANGELOOSE",`^${u[d.GTLT]}\\s*${u[d.XRANGEPLAINLOOSE]}$`),g("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),g("COERCE",`${u[d.COERCEPLAIN]}(?:$|[^\\d])`),g("COERCEFULL",u[d.COERCEPLAIN]+`(?:${u[d.PRERELEASE]})?`+`(?:${u[d.BUILD]})?`+"(?:$|[^\\d])"),g("COERCERTL",u[d.COERCE],!0),g("COERCERTLFULL",u[d.COERCEFULL],!0),g("LONETILDE","(?:~>?)"),g("TILDETRIM",`(\\s*)${u[d.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",g("TILDE",`^${u[d.LONETILDE]}${u[d.XRANGEPLAIN]}$`),g("TILDELOOSE",`^${u[d.LONETILDE]}${u[d.XRANGEPLAINLOOSE]}$`),g("LONECARET","(?:\\^)"),g("CARETTRIM",`(\\s*)${u[d.LONECARET]}
58\\s+`,!0),t.caretTrimReplace="$1^",g("CARET",`^${u[d.LONECARET]}${u[d.XRANGEPLAIN]}$`),g("CARETLOOSE",`^${u[d.LONECARET]}${u[d.XRANGEPLAINLOOSE]}$`),g("COMPARATORLOOSE",`^${u[d.GTLT]}\\s*(${u[d.LOOSEPLAIN]})$|^$`),g("COMPARATOR",`^${u[d.GTLT]}\\s*(${u[d.FULLPLAIN]})$|^$`),g("COMPARATORTRIM",`(\\s*)${u[d.GTLT]}\\s*(${u[d.LOOSEPLAIN]}|${u[d.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",g("HYPHENRANGE",`^\\s*(${u[d.XRANGEPLAIN]})\\s+-\\s+(${u[d.XRANGEPLAIN]})\\s*$`),g("HYPHENRANGELOOSE",`^\\s*(${u[d.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[d.XRANGEPLAINLOOSE]})\\s*$`),g("STAR","(<|>)?=?\\s*\\*"),g("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),g("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},52826:(e,t,n)=>{"use strict";n.d(t,{q:()=>i});let r={};function i(){return r}},52834:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},52921:(e,t,n)=>{var r=n(48473),i=n(68160),o=n(97288),a=n(57127);e.exports=o(function(e,t){return a(e)?r(e,i(t,1,a,!0)):[]})},53027:(e,t,n)=>{"use strict";n.d(t,{$:()=>u});var r=n(58555),i=n(27778),o=n(9751),a=n(16194),s=n(37060);function l(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=(0,a.lI)(e);return(0,i.N)(function(t,i){(0,o.K)()((0,s.H)((0,r.fX)([t],(0,r.zs)(e)),n)).subscribe(i)})}function u(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return l.apply(void 0,(0,r.fX)([],(0,r.zs)(e)))}},53056:(e,t,n)=>{"use strict";n.d(t,{T:()=>r});let r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},53064:e=>{e.exports=function(){this.__data__=[],this.size=0}},53191:(e,t,n)=>{var r=n(86531),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},53452:(e,t,n)=>{"use strict";n.d(t,{d:()=>s});var r=n(27778),i=n(94126),o=n(22303),a=n(12884);function s(e,t){return(0,r.N)(function(n,r){var s=new Set;n.subscribe((0,i._)(r,function(t){var n=e?e(t):t;s.has(n)||(s.add(n),r.next(t))})),t&&(0,a.Tg)(t).subscribe((0,i._)(r,function(){return s.clear()},o.l))})}},53549:(e,t,n)=>{"use strict";n.d(t,{_:()=>o});var r=n(7350),i=n(14518);function o(e,t){var n="object"==typeof t;return new Promise(function(o,a){var s=new i.Ms({next:function(e){o(e),s.unsubscribe()},error:a,complete:function(){n?o(t.defaultValue):a(new r.G)}});e.subscribe(s)})}},53722:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}},53858:(e,t,n)=>{"use strict";var r,i=n(55036),o=function(){function e(e,t){var n;if("function"!=typeof e)throw TypeError("DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but got: "+e+".");this._batchLoadFn=e,this._maxBatchSize=function(e){if(!(!e||!1!==e.batch))return 1;var t=e&&e.maxBatchSize;if(void 0===t)return 1/0;if("number"!=typeof t||t<1)throw TypeError("maxBatchSize must be a positive number: "+t);return t}(t),this._batchScheduleFn=function(e){var t=e&&e.batchScheduleFn;if(void 0===t)return a;
58if("function"!=typeof t)throw TypeError("batchScheduleFn must be a function: "+t);return t}(t),this._cacheKeyFn=function(e){var t=e&&e.cacheKeyFn;if(void 0===t)return function(e){return e};if("function"!=typeof t)throw TypeError("cacheKeyFn must be a function: "+t);return t}(t),this._cacheMap=function(e){if(!(!e||!1!==e.cache))return null;var t=e&&e.cacheMap;if(void 0===t)return new Map;if(null!==t){var n=["get","set","delete","clear"].filter(function(e){return t&&"function"!=typeof t[e]});if(0!==n.length)throw TypeError("Custom cacheMap missing methods: "+n.join(", "))}return t}(t),this._batch=null,this.name=(n=t)&&n.name?n.name:null}var t=e.prototype;return t.load=function(e){if(null==e)throw TypeError("The loader.load() function must be called with a value, but got: "+String(e)+".");var t,n=function(e){var t=e._batch;if(null!==t&&!t.hasDispatched&&t.keys.length<e._maxBatchSize)return t;var n={hasDispatched:!1,keys:[],callbacks:[]};return e._batch=n,e._batchScheduleFn(function(){!function(e,t){var n;if(t.hasDispatched=!0,0===t.keys.length)return l(t);try{n=e._batchLoadFn(t.keys)}catch(n){return s(e,t,TypeError("DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function errored synchronously: "+String(n)+"."))}if(!n||"function"!=typeof n.then)return s(e,t,TypeError("DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function did not return a Promise: "+String(n)+"."));n.then(function(e){if(!u(e))throw TypeError("DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function did not return a Promise of an Array: "+String(e)+".");if(e.length!==t.keys.length)throw TypeError("DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function did not return a Promise of an Array of the same length as the Array of keys.\n\nKeys:\n"+String(t.keys)+"\n\nValues:\n"+String(e));l(t);for(var n=0;n<t.callbacks.length;n++){var r=e[n];r instanceof Error?t.callbacks[n].reject(r):t.callbacks[n].resolve(r)}}).catch(function(n){s(e,t,n)})}(e,n)}),n}(this),r=this._cacheMap;if(r){t=this._cacheKeyFn(e);var i=r.get(t);if(i){var o=n.cacheHits||(n.cacheHits=[]);return new Promise(function(e){o.push(function(){e(i)})})}}n.keys.push(e);var a=new Promise(function(e,t){n.callbacks.push({resolve:e,reject:t})});return r&&r.set(t,a),a},t.loadMany=function(e){if(!u(e))throw TypeError("The loader.loadMany() function must be called with Array<key> but got: "+e+".");for(var t=[],n=0;n<e.length;n++)t.push(this.load(e[n]).catch(function(e){return e}));return Promise.all(t)},t.clear=function(e){var t=this._cacheMap;if(t){var n=this._cacheKeyFn(e);t.delete(n)}return this},t.clearAll=function(){var e=this._cacheMap;return e&&e.clear(),this},t.prime=function(e,t){var n=this._cacheMap;if(n){var r,i=this._cacheKeyFn(e);void 0===n.get(i)&&(t instanceof Error?(r=Promise.reject(t)).catch(function(){}):r=Promise.resolve(t),n.set(i,r))}return this},e}(),a="object"==typeof i&&"function"==typeof i.nextTick?function(e){r||(r=Promise.resolve()),r.then(function(){i.nextTick(e)})}:"function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){setTimeout(e)};function s(e,t,n){l(t);for(var r=0;r<t.keys.length;r++)e.clear(t.keys[r]),t.callbacks[r].reject(n)}function l(e){if(e.cacheHits)for(var t=0;t<e.cacheHits.length;t++)e.cacheHits[t]()}function u(e){return"object"==typeof e&&null!==e&&"number"==typeof e.length&&(0===e.length||e.length>0&&Object.prototype.hasOwnProperty.call(e,e.length-1))}e.exports=o},53992:(e,t,n)=>{"use strict";var r=n(69644),i=n(72960);e.exports=function(e){return r(e)||i(e)}},54064:(e,t,n)=>{"use strict";e.exports=n(88559)({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:n(32614),properties:{xmlns:null,xmlnsXLink:null}})},54229:e=>{var t={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};e.exports=function(e){return"\\"+t[e]}},54802:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(39292),i=n(71260),o=n(47528);function a(e){return(0,i.A)(1,arguments),(!!function(e){return(0,i.A)(1,arguments),e instanceof Date||"object"===(0,r.A)(e)&&"[object Date]"===Object.prototype.toString.call(e)}(e)||"number"==typeof e)&&!isNaN(Number((0,o.A)(e)))}}
58,54912:(e,t,n)=>{var r=n(55036);t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;let n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(i=r))}),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}return!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG),e},t.useColors=function(){let e;return"undefined"!=typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(80417)(t);let{formatters:i}=e.exports;i.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},55042:(e,t,n)=>{"use strict";n.d(t,{f:()=>o});var r=n(18287),i=n(28975);function o(e,t,n){let o=(0,i.a)(e,n?.in);return isNaN(t)?(0,r.w)(n?.in||e,NaN):(t&&o.setDate(o.getDate()+t),o)}},55073:(e,t,n)=>{var r=n(97288),i=n(9638);e.exports=function(e){return r(function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++r<o;){var l=n[r];l&&e(t,l,r,a)}return t})}},55087:e=>{"use strict";function t(e){e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}e.exports=t,t.displayName="clike",t.aliases=[]},55384:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(47528),i=n(71260);function o(e){return(0,i.A)(1,arguments),(0,r.A)(e).getMinutes()}},55396:(e,t,n)=>{var r=n(65692),i=n(73336),o=n(68764);e.exports=function(e){return i(e)?o(e):r(e)}},55435:(e,t,n)=>{"use strict";var r=n(7573),i=n(79978);e.exports=r([n(55719),i,n(54064),n(31352),n(26011)])},55607:(e,t,n)=>{"use strict";n.d(t,{JD:()=>a,i_:()=>r,sy:()=>i,uT:()=>
58o});let r="sentry.source",i="sentry.sample_rate",o="sentry.op",a="sentry.origin"},55644:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},55719:(e,t,n)=>{"use strict";e.exports=n(88559)({space:"xml",transform:function(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}})},55810:(e,t,n)=>{var r=n(1066),i=n(44258),o=n(23098),a=n(74871),s=n(99576),l=n(55396),u=n(63114);e.exports=function(e,t,n){if((e=u(e))&&(n||void 0===t))return i(e);if(!e||!(t=r(t)))return e;var c=l(e),d=l(t),f=s(c,d),h=a(c,d)+1;return o(c,f,h).join("")}},55936:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(5605),i=n(71260),o=n(17304);function a(e,t,n){(0,i.A)(2,arguments);var a=(0,r.A)(e,t)/1e3;return(0,o.u)(null==n?void 0:n.roundingMethod)(a)}},56626:(e,t,n)=>{var r=n(58706),i=n(78946),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable;e.exports=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")}},56685:(e,t,n)=>{"use strict";let r=n(80726);e.exports=(e,t,n)=>{let i=new r(e,n),o=new r(t,n);return i.compare(o)||i.compareBuild(o)}},56703:(e,t,n)=>{"use strict";n.d(t,{h:()=>a,p:()=>o});var r=n(82203);let i=function(){if("u">typeof globalThis)return globalThis;if("u">typeof window)return window;if("u">typeof self)return self;if("u">typeof global)return global;throw Error("@portabletext/editor: could not locate global scope")}(),o=function(e,t){let n=Symbol.for(e);return typeof document>"u"?(0,r.createContext)(null):(i[n]=i[n]??(0,r.createContext)(null),i[n])}("@portabletext/editor/context/editor",null);function a(){let e=r.useContext(o);if(!e)throw Error("No Editor set. Use EditorProvider to set one.");return e}},56769:(e,t,n)=>{"use strict";n.d(t,{w:()=>r});var r=new(n(29039)).c(function(e){return e.complete()})},56891:(e,t,n)=>{"use strict";n.d(t,{u:()=>i});var r=n(79446);function i(e){return(0,r.T)(function(){return e})}},56922:(e,t,n)=>{"use strict";n.d(t,{f:()=>i});var r=n(58555),i={setTimeout:function(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];var a=i.delegate;return(null==a?void 0:a.setTimeout)?a.setTimeout.apply(a,(0,r.fX)([e,t],(0,r.zs)(n))):setTimeout.apply(void 0,(0,r.fX)([e,t],(0,r.zs)(n)))},clearTimeout:function(e){var t=i.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0}},56930:(e,t,n)=>{var r=n(57165),i=n(37070),o=n(9044);e.exports=function(e){return e&&e.length?r(e,o,i):void 0}},56957:e=>{e.exports=function(e){return function(t){return e(t)}}},56993:(e,t,n)=>{var r=n(68685),i=n(64843),o=n(29643),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=i(e),n=[];for(var s in e)"constructor"==s&&(t||!a.call(e,s))||n.push(s);return n}},57061:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(47528),i=n(71260);function o(e,t){(0,i.A)(2,arguments);var n=(0,r.A)(e),o=(0,r.A)(t),a=n.getTime()-o.getTime();return a<0?-1:a>0?1:a}},57127:(e,t,n)=>{var r=n(11088),i=n(78946);e.exports=function(e){return i(e)&&r(e)}},57134:(e,t,n)=>{e.exports=n(18274)(n(26943),"DataView")},57151:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},r=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}};t.default={p:r,P:function(e,t){var i,o=e.match(/(P+)(p+)?/)||[],a=o[1],s=o[2];if(!s)return n(e,t);switch(a){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;default:i=t.dateTime({width:"full"})}return i.replace("{{date}}",n(a,t)).replace("{{time}}",r(s,t))}},e.exports=t.default},57165:(e,t,n)=>{var r=n(88002);e.exports=function(e,t,n){for(var i=-1,o=e.length;++i<o;){var a=e[i],s=t(a);if(null!=s&&(void 0===l?s==s&&!r(s):n(s,l)))var l=s,u=a}return u}},57191:(e,t,n)=>{"use strict";let r=n(32112);e.exports=(e,t,n)=>0===r(e,t,n)},57200:(e,t,n)=>{var r=n(94598),i=n(1247),o=n(61328),a=n(88567);e.exports=function(e,t){return(a(e)?r:o)(e,i(t,3))}},57285:(e,t)=>{"use strict";
58Object.defineProperty(t,"__esModule",{value:!0}),t.getDefaultOptions=function(){return n},t.setDefaultOptions=function(e){n=e};var n={}},57396:(e,t,n)=>{"use strict";let r=n(80726),i=n(74907);e.exports=(e,t,n)=>{let o=null,a=null,s=null;try{s=new i(t,n)}catch(e){return null}return e.forEach(e=>{s.test(e)&&(!o||-1===a.compare(e))&&(a=new r(o=e,n))}),o}},57400:(e,t,n)=>{"use strict";n.d(t,{p:()=>c});var r=n(29039),i=n(39753),o=n(12884),a=n(16194),s=n(94126),l=n(43242),u=n(28183);function c(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=(0,a.ms)(e),c=(0,i.D)(e),d=c.args,f=c.keys,h=new r.c(function(e){var t=d.length;if(!t)return void e.complete();for(var n=Array(t),r=t,i=t,a=function(t){var a=!1;(0,o.Tg)(d[t]).subscribe((0,s._)(e,function(e){!a&&(a=!0,i--),n[t]=e},function(){return r--},void 0,function(){r&&a||(i||e.next(f?(0,u.e)(f,n):n),e.complete())}))},l=0;l<t;l++)a(l)});return n?h.pipe((0,l.I)(n)):h}},57473:e=>{e.exports=/<%-([\s\S]+?)%>/g},57551:(e,t,n)=>{var r=n(24539),i=n(23607),o=n(72835);e.exports=function(e,t,n){return t==t?o(e,t,n):r(e,i,n)}},57602:(e,t,n)=>{"use strict";function r(e,t){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,{A:()=>r})},57639:(e,t)=>{"use strict";for(var n="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),r={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},i={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:n?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},o={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},a=1;a<20;a++)o["f"+a]=111+a;function s(e){return i[e=e.toLowerCase()]||e}t.v_=function(e,t,n){!t||"byKey"in t||(n=t,t=null),Array.isArray(e)||(e=[e]);var a=e.map(function(e){return function(e,t){var n=t&&t.byKey,a={},l=(e=e.replace("++","+add")).split("+"),u=l.length;for(var c in r)a[r[c]]=!1;var d=!0,f=!1,h=void 0;try{for(var p,g=l[Symbol.iterator]();!(d=(p=g.next()).done);d=!0){var m=p.value,y=m.endsWith("?")&&m.length>1;y&&(m=m.slice(0,-1));var v=s(m),b=r[v];if(m.length>1&&!b&&!i[m]&&!o[v])throw TypeError('Unknown modifier: "'+m+'"');1!==u&&b||(n?a.key=v:a.which=function(e){return o[e=s(e)]||e.toUpperCase().charCodeAt(0)}(m)),b&&(a[b]=!y||null)}}catch(e){f=!0,h=e}finally{try{!d&&g.return&&g.return()}finally{if(f)throw h}}return a}(e,t)}),l=function(e){return a.some(function(t){return function(e,t){for(var n in e){var r=e[n],i=void 0;if(null!=r&&(null!=(i="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&i!==r)return!1}return!0}(t,e)})};return null==n?l:l(n)}},57657:(e,t,n)=>{"use strict";function r(){let e=Object.create(null),t=0;return{publish:function(t){for(let n in e)e[n](t)},subscribe:function(n){let r=t++;return e[r]=n,function(){delete e[r]}}}}n.d(t,{A:()=>r})},57724:e=>{"use strict";function t(e){!function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,i=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function o(e,t){return RegExp(e=e.replace(/<S>/g,function(){return n}).replace(/<BRACES>/g,function(){return r}).replace(/<SPREAD>/g,function(){return i}),t)}i=o(i).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=o(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:o(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:o(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var a=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(a).join(""):""},s=function(t){for(var n=[],r=0;r<t.length;r++){var i=t[r],o=!1;if("string"!=typeof i&&("tag"===i.type&&i.content[0]&&"tag"===i.content[0].type?"</"===i.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===a(i.content[0].content[1])&&n.pop():"/>"===i.content[i.content.length-1].content||n.push({tagName:a(i.content[0].content[1]),openedBraces:0}):n.length>
580&&"punctuation"===i.type&&"{"===i.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===i.type&&"}"===i.content?n[n.length-1].openedBraces--:o=!0),(o||"string"==typeof i)&&n.length>0&&0===n[n.length-1].openedBraces){var l=a(i);r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(l+=a(t[r+1]),t.splice(r+1,1)),r>0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(l=a(t[r-1])+l,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",l,null,l)}i.content&&"string"!=typeof i.content&&s(i.content)}};e.hooks.add("after-tokenize",function(e){("jsx"===e.language||"tsx"===e.language)&&s(e.tokens)})}(e)}e.exports=t,t.displayName="jsx",t.aliases=[]},57805:(e,t,n)=>{"use strict";n.d(t,{_:()=>h});var r=n(96694),i=n(87086);let o="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;var a=n(15089);let s={};var l=n(7706),u=n(53056),c=n(902),d=n(5460);function f(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}function h(e,t=function(e){let t=s[e];if(t)return t;let n=a.j[e];if((0,r.a3)(n))return s[e]=n.bind(a.j);let l=a.j.document;if(l&&"function"==typeof l.createElement)try{let t=l.createElement("iframe");t.hidden=!0,l.head.appendChild(t);let r=t.contentWindow;r&&r[e]&&(n=r[e]),l.head.removeChild(t)}catch(t){o&&i.vF.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n?s[e]=n.bind(a.j):n}("fetch")){let n=0,p=0;return function(e,t,n=function(e){let t=[];function n(e){return t.splice(t.indexOf(e),1)[0]||Promise.resolve(void 0)}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return(0,l.xg)(new d.U("Not adding Promise because buffer limit was reached."));let i=r();return -1===t.indexOf(i)&&t.push(i),i.then(()=>n(i)).then(null,()=>n(i).then(null,()=>{})),i},drain:function(e){return new l.T2((n,r)=>{let i=t.length;if(!i)return n(!0);let o=setTimeout(()=>{e&&e>0&&n(!1)},e);t.forEach(e=>{(0,l.XW)(e).then(()=>{--i||(clearTimeout(o),n(!0))},r)})})}}}(e.bufferSize||64)){let r={};return{send:function(o){let a=[];if((0,c.yH)(o,(t,n)=>{let i=(0,c.zk)(n);if(function(e,t,n=Date.now()){return(e[t]||e.all||0)>n}(r,i)){let r=f(t,n);e.recordDroppedEvent("ratelimit_backoff",i,r)}else a.push(t)}),0===a.length)return(0,l.XW)({});let s=(0,c.h4)(o[0],a),h=t=>{(0,c.yH)(s,(n,r)=>{let i=f(n,r);e.recordDroppedEvent(t,(0,c.zk)(r),i)})};return n.add(()=>t({body:(0,c.bN)(s)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&u.T&&i.vF.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=function(e,{statusCode:t,headers:n},r=Date.now()){let i={...e},o=n&&n["x-sentry-rate-limits"],a=n&&n["retry-after"];if(o)for(let e of o.trim().split(",")){let[t,n,,,o]=e.split(":",5),a=parseInt(t,10),s=(isNaN(a)?60:a)*1e3;if(n)for(let e of n.split(";"))"metric_bucket"===e?(!o||o.split(";").includes("custom"))&&(i[e]=r+s):i[e]=r+s;else i.all=r+s}else a?i.all=r+function(e,t=Date.now()){let n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;let r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}(a,r):429===t&&(i.all=r+6e4);return i}(r,e),e),e=>{throw h("network_error"),e})).then(e=>e,e=>{if(e instanceof d.U)return u.T&&i.vF.error("Skipped sending event because buffer is full."),h("queue_overflow"),(0,l.XW)({});throw e})},flush:e=>n.drain(e)}}(e,function(r){let i=r.body.length;n+=i,p++;let o={body:r.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&p<15,...e.fetchOptions};if(!t)return s.fetch=void 0,(0,l.xg)("No fetch implementation available");try{return t(e.url,o).then(e=>(n-=i,p--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}}))}catch(e){return s.fetch=void 0,n-=i,p--,(0,l.xg)(e)}})}},57927:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(47528),i=n(71260),o=n(57061);function a(e,t){(0,i.A)(2,arguments);var n=(0,r.A)(e),a=(0,r.A)(t),s=(0,o.A)(n,a),l=Math.abs(function(e,t){(0,i.A)(2,arguments);var n=(0,r.A)(e),o=(0,r.A)(t);return n.getFullYear()-o.getFullYear()}(n,a));n.setFullYear(1584),a.setFullYear(1584);var u=(0,o.A)(n,a)===-s,c=s*(l-Number(u));return 0===c?0:c}}
58,58098:(e,t,n)=>{"use strict";let r=n(74412);e.exports=(e,t)=>{let n=r(e,null,!0),i=r(t,null,!0),o=n.compare(i);if(0===o)return null;let a=o>0,s=a?n:i,l=a?i:n,u=!!s.prerelease.length;if(l.prerelease.length&&!u){if(!l.patch&&!l.minor)return"major";if(0===l.compareMain(s))return l.minor&&!l.patch?"minor":"patch"}let c=u?"pre":"";return n.major!==i.major?c+"major":n.minor!==i.minor?c+"minor":n.patch!==i.patch?c+"patch":"prerelease"}},58103:(e,t,n)=>{"use strict";function r(e){return{type:"execute",event:e}}function i(e){return{type:"forward",event:e}}function o(e){return{type:"raise",event:e}}function a(e){return{type:"effect",effect:e}}function s(e){return e}n.d(t,{Ke:()=>s,QZ:()=>a,g7:()=>r,sY:()=>i,xl:()=>o})},58467:(e,t,n)=>{"use strict";n.d(t,{tb:()=>H});var r,i,o=[],a="ResizeObserver loop completed with undelivered notifications.",s=function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:a}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=a),window.dispatchEvent(e)};!function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(r||(r={}));var l=function(e){return Object.freeze(e)},u=function(e,t){this.inlineSize=e,this.blockSize=t,l(this)},c=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,l(this)}return e.prototype.toJSON=function(){return{x:this.x,y:this.y,top:this.top,right:this.right,bottom:this.bottom,left:this.left,width:this.width,height:this.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),d=function(e){return e instanceof SVGElement&&"getBBox"in e},f=function(e){if(d(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e.offsetWidth,o=e.offsetHeight;return!(i||o||e.getClientRects().length)},h=function(e){if(e instanceof Element)return!0;var t,n=null==(t=null==e?void 0:e.ownerDocument)?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},p=function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},g="undefined"!=typeof window?window:{},m=new WeakMap,y=/auto|scroll/,v=/^tb|vertical/,b=/msie|trident/i.test(g.navigator&&g.navigator.userAgent),w=function(e){return parseFloat(e||"0")},x=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new u((n?t:e)||0,(n?e:t)||0)},k=l({devicePixelContentBoxSize:x(),borderBoxSize:x(),contentBoxSize:x(),contentRect:new c(0,0,0,0)}),E=function(e,t){if(void 0===t&&(t=!1),m.has(e)&&!t)return m.get(e);if(f(e))return m.set(e,k),k;var n=getComputedStyle(e),r=d(e)&&e.ownerSVGElement&&e.getBBox(),i=!b&&"border-box"===n.boxSizing,o=v.test(n.writingMode||""),a=!r&&y.test(n.overflowY||""),s=!r&&y.test(n.overflowX||""),u=r?0:w(n.paddingTop),h=r?0:w(n.paddingRight),p=r?0:w(n.paddingBottom),g=r?0:w(n.paddingLeft),E=r?0:w(n.borderTopWidth),_=r?0:w(n.borderRightWidth),S=r?0:w(n.borderBottomWidth),A=r?0:w(n.borderLeftWidth),T=g+h,C=u+p,O=A+_,j=E+S,D=s?e.offsetHeight-j-e.clientHeight:0,R=a?e.offsetWidth-O-e.clientWidth:0,I=r?r.width:w(n.width)-(i?T+O:0)-R,P=r?r.height:w(n.height)-(i?C+j:0)-D,M=I+T+R+O,N=P+C+D+j,$=l({devicePixelContentBoxSize:x(Math.round(I*devicePixelRatio),Math.round(P*devicePixelRatio),o),borderBoxSize:x(M,N,o),contentBoxSize:x(I,P,o),contentRect:new c(g,u,I,P)});return m.set(e,$),$},_=function(e,t,n){var i=E(e,n),o=i.borderBoxSize,a=i.contentBoxSize,s=i.devicePixelContentBoxSize;switch(t){case r.DEVICE_PIXEL_CONTENT_BOX:return s;case r.BORDER_BOX:return o;default:return a}},S=function(e){var t=E(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=l([t.borderBoxSize]),this.contentBoxSize=l([t.contentBoxSize]),this.devicePixelContentBoxSize=l([t.devicePixelContentBoxSize])},A=function(e){if(f(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},T=function(){var e=1/0,t=[];o.forEach(function(n){if(0!==n.activeTargets.length){var r=[];
58n.activeTargets.forEach(function(t){var n=new S(t.target),i=A(t.target);r.push(n),t.lastReportedSize=_(t.target,t.observedBox),i<e&&(e=i)}),t.push(function(){n.callback.call(n.observer,r,n.observer)}),n.activeTargets.splice(0,n.activeTargets.length)}});for(var n=0;n<t.length;n++)(0,t[n])();return e},C=function(e){o.forEach(function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach(function(n){n.isActive()&&(A(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))})})},O=function(){var e=0;for(C(0);o.some(function(e){return e.activeTargets.length>0});)C(e=T());return o.some(function(e){return e.skippedTargets.length>0})&&s(),e>0},j=[],D=function(e){if(!i){var t=0,n=document.createTextNode("");new MutationObserver(function(){return j.splice(0).forEach(function(e){return e()})}).observe(n,{characterData:!0}),i=function(){n.textContent="".concat(t?t--:t++)}}j.push(e),i()},R=function(e){D(function(){requestAnimationFrame(e)})},I=0,P={attributes:!0,characterData:!0,childList:!0,subtree:!0},M=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],N=function(e){return void 0===e&&(e=0),Date.now()+e},$=!1,L=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!$){$=!0;var n=N(e);R(function(){var r=!1;try{r=O()}finally{if($=!1,e=n-N(),!I)return;r?t.run(1e3):e>0?t.run(e):t.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,P)};document.body?t():g.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),M.forEach(function(t){return g.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),M.forEach(function(t){return g.removeEventListener(t,e.listener,!0)}),this.stopped=!0)},e}()),F=function(e){!I&&e>0&&L.start(),(I+=e)||L.stop()},U=function(){function e(e,t){this.target=e,this.observedBox=t||r.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=_(this.target,this.observedBox,!0);return d(e=this.target)||p(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),z=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},B=new WeakMap,q=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return -1},V=function(){function e(){}return e.connect=function(e,t){var n=new z(e,t);B.set(e,n)},e.observe=function(e,t,n){var r=B.get(e),i=0===r.observationTargets.length;0>q(r.observationTargets,t)&&(i&&o.push(r),r.observationTargets.push(new U(t,n&&n.box)),F(1),L.schedule())},e.unobserve=function(e,t){var n=B.get(e),r=q(n.observationTargets,t),i=1===n.observationTargets.length;r>=0&&(i&&o.splice(o.indexOf(n),1),n.observationTargets.splice(r,1),F(-1))},e.disconnect=function(e){var t=this,n=B.get(e);n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),H=function(){function e(e){if(0==arguments.length)throw TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");V.connect(this,e)}return e.prototype.observe=function(e,t){if(0==arguments.length)throw TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!h(e))throw TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");V.observe(this,e,t)},e.prototype.unobserve=function(e){if(0==arguments.length)throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!h(e))throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");V.unobserve(this,e)},e.prototype.disconnect=function(){V.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}()},58583:e=>{e.exports=function(e){return this.__data__.has(e)}},58706:(e,t,n)=>{var r=n(1786),i=n(78946);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},58861:e=>{e.exports={}},58971:(e,t,n)=>{"use strict";n.d(t,{A:()=>
58o});var r=n(47528),i=n(71260);function o(e,t){(0,i.A)(2,arguments);var n=(0,r.A)(e),o=(0,r.A)(t);return n.getTime()>o.getTime()}},58989:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(47528),i=n(71260);function o(e,t){(0,i.A)(2,arguments);var n=(0,r.A)(e),o=(0,r.A)(t);return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()}},59043:(e,t,n)=>{"use strict";n.d(t,{F:()=>i,m:()=>o});var r=n(17953);function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o(e)}function o(e){return 0===e.length?r.D:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}}},59133:(e,t,n)=>{"use strict";e.exports=n(84818)},59142:(e,t,n)=>{"use strict";let r=n(80726);e.exports=(e,t)=>new r(e,t).minor},59264:(e,t,n)=>{var r=n(68160);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},59407:(e,t,n)=>{"use strict";var r,i;r=n(75083),i=n(34938),r.version,t.F0=r.renderToString,r.renderToStaticMarkup,i.renderToReadableStream,i.resume&&i.resume},59461:(e,t,n)=>{e.exports=n(27886)},59741:(e,t,n)=>{var r=n(16371),i=n(55644),o=n(79423);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},59835:(e,t,n)=>{"use strict";n.d(t,{Ak:()=>o,d_:()=>i});let r=e=>crypto.getRandomValues(new Uint8Array(e)),i=(e,t=21)=>((e,t,n)=>{let r=(2<<Math.log(e.length-1)/Math.LN2)-1,i=-~(1.6*r*t/e.length);return (o=t)=>{let a="";for(;;){let t=n(i),s=0|i;for(;s--;)if((a+=e[t[s]&r]||"").length===o)return a}}})(e,t,r),o=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((e,t)=>((t&=63)<36?e+=t.toString(36):t<62?e+=(t-26).toString(36).toUpperCase():t>62?e+="-":e+="_",e),"")},60245:e=>{e.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}},60284:(e,t,n)=>{"use strict";n.d(t,{uz:()=>N});var r,i=n(90046),o=n(91558),a=n(15319),s=n(21440),l=n(15911),u=n(56891),c=n(86404),d=n(82326),f=n(79446),h=n(92010),p=n(66894),g=n(33672),m=n(56769),y=n(61557),v=n(46638),b=n(14656),w=n(71976),x=n(59835),k=function(){return(k=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},E=(0,x.d_)("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-",20);function _(e,t,n){return JSON.stringify({jsonrpc:"2.0",method:e,params:k(k({},t),{apiVersion:"v1"}),id:n})}var S=function(e,t){void 0===t&&(t={});var n=t.token$,r=t.getNextRequestId,x=void 0===r?E:r,k=(0,p.j)(e.pipe((0,i.n)(function(e){return(0,g.R)(e,"message")})),function(e){return"♥"===e.data}),S=k[0],A=k[1],T=A.pipe((0,o.Z)(function(e){var t=function(e){try{return[null,JSON.parse(e)]}catch(e){return e instanceof Error?[e]:[Error("".concat(e))]}}(e.data),n=t[0],r=t[1];return n?(console.warn("Unable to parse message: %s",n.message),m.w):r&&r.jsonrpc?(0,y.of)(r):(console.warn("Received empty or non-jsonrpc message: %s",r),m.w)}),(0,a.u)()),C=n?(0,v.z)([n,e]).pipe((0,s.F)(function(e,t){var n=e[0],r=e[1],i=t[0],o=t[1];return n===i&&r===o}),(0,i.n)(function(e){var t=e[0],n=e[1];return t?O(n,"authorization",{authorization:"Bearer ".concat(t)}).pipe((0,l.s)(1),(0,u.u)(n)):(0,y.of)(n)}),(0,c.t)({refCount:!0,bufferSize:1})):e;function O(e,t,n){void 0===n&&(n={});var r=x();return(0,b.h)(T.pipe((0,d.p)(function(e){return e.id===r}),(0,f.T)(function(e){return e.result})),(0,w.v)(function(){return e.send(_(t,n,r)),m.w}))}return{heartbeats:(0,b.h)(C,S,A).pipe((0,f.T)(function(){return new Date})),listen:function(e,t){return C.pipe((0,l.s)(1),(0,o.Z)(function(n){return O(n,"".concat(e,"_subscribe"),t).pipe((0,l.s)(1),(0,o.Z)(function(t){return T.pipe((0,d.p)(function(n){return n.method==="".concat(e,"_subscription")&&n.params.subscription===t}),(0,f.T)(function(e){return e.params.result}),(0,h.j)(function(){n.readyState!==n.CLOSED&&n.readyState!==n.CLOSING&&n.send(_("".concat(e,"_unsubscribe"),{subscriptionId:t},x()))}))}))}))},request:function(e,t){return C.pipe((0,l.s)(1),(0,o.Z)(function(n){return O(n,e,t).pipe((0,l.s)(1))}))}}},A=n(29039),T=function(){var e=function(t,n){return(e=Object.setPrototypeOf||({__proto__:[]}
58)instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),C=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.type=n,o.code=r,o.reason=i,o}return T(t,e),t}(Error),O=n(12884),j=n(51734),D=n(94126),R=n(29013),I=n(95085),P=n(43710);!function(e){e[e.BAD_REQUEST=4e3]="BAD_REQUEST",e[e.UNAUTHORIZED=4001]="UNAUTHORIZED",e[e.NOT_FOUND=4004]="NOT_FOUND",e[e.INVALID_REQUEST=-32600]="INVALID_REQUEST",e[e.METHOD_NOT_FOUND=-32601]="METHOD_NOT_FOUND",e[e.INVALID_PARAMS=-32602]="INVALID_PARAMS",e[e.SUBSCRIPTION_NOT_FOUND=-32602]="SUBSCRIPTION_NOT_FOUND",e[e.PARSE_ERROR=-32700]="PARSE_ERROR"}(r||(r={}));var M=function(e){return e};function N(e,t){void 0===t&&(t={});var n,r,i=t.timeout,a=t.token$;return S((n=function(e,t){return new window.WebSocket(e,t)},function(e){return new A.c(function(t){var r=n(e),i=!1;return r.onopen=function(){t.next(r)},r.onclose=function(e){i?t.complete():t.error(new C("WebSocket connection error","CONNECTION_CLOSED",e.code,e.reason))},r.onerror=function(){t.error(new C("WebSocket connection error","CONNECTION_ERROR"))},function(){i=!0,r.close(1e3,"WebSockets connection closed by client")}})})(e).pipe(i?(r=(0,P.$)(function(){return Error("Timeout after ".concat(i," while establishing WebSockets connection"))}),function(e){return function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return 1===(t=(0,j.K)(t)).length?(0,O.Tg)(t[0]):new A.c((e=t,function(t){for(var n=[],r=function(r){n.push((0,O.Tg)(e[r]).subscribe((0,D._)(t,function(e){if(n){for(var i=0;i<n.length;i++)i!==r&&n[i].unsubscribe();n=null}t.next(e)})))},i=0;n&&!t.closed&&i<e.length;i++)r(i)}))}(e,(0,R.O)(i).pipe((0,o.Z)(function(){return r})))}):M,(0,c.t)({refCount:!0}),(0,I.Q)((0,g.R)(window,"beforeunload"))),{token$:a})}},60364:(e,t)=>{"use strict";var n=0;function r(){return Math.pow(2,++n)}t.boolean=r(),t.booleanish=r(),t.overloadedBoolean=r(),t.number=r(),t.spaceSeparated=r(),t.commaSeparated=r(),t.commaOrSpaceSeparated=r()},60435:(e,t,n)=>{"use strict";n.d(t,{y:()=>A});var r=n(27313),i=n(53056),o=n(90279),a=n(902),s=n(87876),l=n(67122),u=n(72777),c=n(72871),d=n(5460),f=n(29378),h=n(87086),p=n(12378),g=n(7706),m=n(92668),y=n(70259);let v="Not capturing exception because it's already been captured.";class b{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=(0,o.AD)(e.dsn):i.T&&h.vF.warn("No DSN provided, client will not send events."),this._dsn){let t=function(e,t,n){return t||`${function(e){let t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}(e)}${e.projectId}/envelope/?${function(e,t){let n={sentry_version:"7"};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}(e,n)}`}(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}let t=["enableTracing","tracesSampleRate","tracesSampler"].find(t=>t in e&&void 0==e[t]);t&&(0,h.pq)(()=>{console.warn(`[Sentry] Deprecation warning: \`${t}\` is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`)})}captureException(e,t,n){let r=(0,p.eJ)();if((0,p.GR)(e))return i.T&&h.vF.log(v),r;let o={event_id:r,...t};return this._process(this.eventFromException(e,o).then(e=>this._captureEvent(e,o,n))),o.event_id}captureMessage(e,t,n,r){let i={event_id:(0,p.eJ)(),...n},o=(0,f.NF)(e)?e:String(e),a=(0,f.sO)(e)?this.eventFromMessage(o,t,i):this.eventFromException(e,i);return this._process(a.then(e=>this._captureEvent(e,i,r))),i.event_id}captureEvent(e,t,n){let r=(0,p.eJ)();if(t&&t.originalException&&(0,p.GR)(t.originalException))return i.T&&h.vF.log(v),r;let o={event_id:r,...t},a=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,o,a||n)),o.event_id}captureSession(e){"string"!=typeof e.release?i.T&&h.vF.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),(0,l.qO)(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){let t=this._transport;
58return t?(this.emit("flush"),this._isClientDoneProcessing(e).then(n=>t.flush(e).then(e=>n&&e))):(0,g.XW)(!0)}close(e){return this.flush(e).then(e=>(this.getOptions().enabled=!1,this.emit("close"),e))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){let t=this._integrations[e.name];(0,s.qm)(this,e,this._integrations),t||(0,s.lc)(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=function(e,t,n,r){var i;let o=(0,a.Cj)(n),s=e.type&&"replay_event"!==e.type?e.type:"event";(i=n&&n.sdk)&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||i.name,e.sdk.version=e.sdk.version||i.version,e.sdk.integrations=[...e.sdk.integrations||[],...i.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...i.packages||[]]);let l=(0,a.n2)(e,o,r,t);delete e.sdkProcessingMetadata;let u=[{type:s},e];return(0,a.h4)(l,[u])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])n=(0,a.W3)(n,(0,a.bm)(e));let r=this.sendEnvelope(n);r&&r.then(t=>this.emit("afterSendEvent",e,t),null)}sendSession(e){let t=function(e,t,n,r){let i=(0,a.Cj)(n),s={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:(0,o.SB)(t)}},l="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return(0,a.h4)(s,[l])}(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){let r="number"==typeof n?n:1,o=`${e}:${t}`;i.T&&h.vF.log(`Recording outcome: "${o}"${r>1?` (${r} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+r}}on(e,t){let n=this._hooks[e]=this._hooks[e]||[];return n.push(t),()=>{let e=n.indexOf(t);e>-1&&n.splice(e,1)}}emit(e,...t){let n=this._hooks[e];n&&n.forEach(e=>e(...t))}sendEnvelope(e){return(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)?this._transport.send(e).then(null,e=>(i.T&&h.vF.error("Error while sending envelope:",e),e)):(i.T&&h.vF.error("Transport disabled"),(0,g.XW)({}))}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=(0,s.P$)(this,e),(0,s.lc)(this,e)}_updateSessionFromEvent(e,t){let n="fatal"===t.level,r=!1,i=t.exception&&t.exception.values;if(i)for(let e of(r=!0,i)){let t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}let o="ok"===e.status;(o&&0===e.errors||o&&n)&&((0,l.qO)(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new g.T2(t=>{let n=0,r=setInterval(()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n=(0,r.o5)(),i=(0,r.rm)()){let o=this.getOptions(),a=Object.keys(this._integrations);return!t.integrations&&a.length>0&&(t.integrations=a),this.emit("preprocessEvent",e,t),e.type||i.setLastEventId(e.event_id||t.event_id),(0,m.mG)(o,e,t,n,this,i).then(e=>(null===e||(e.contexts={trace:(0,r.vn)(n),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:(0,u.ao)(this,n),...e.sdkProcessingMetadata}),e))}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then(e=>e.event_id,e=>{i.T&&(e instanceof d.U&&"log"===e.logLevel?h.vF.log(e.message):h.vF.warn(e))})}_processEvent(e,t,n){let r=this.getOptions(),{sampleRate:o}=r,a=x(e),s=w(e),l=e.type||"error",u=`before send for type \`${l}\``,c=void 0===o?void 0:function(e){if("boolean"==typeof e)return Number(e);let t="string"==typeof e?parseFloat(e):e;if("number"!=typeof t||isNaN(t)||t<0||t>1){i.T&&h.vF.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`);return}return t}(o);if(s&&"number"==typeof c&&Math.random()>c)return this.recordDroppedEvent("sample_rate","error",e),(0,g.xg)(new d.U(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));let p="replay_event"===l?"replay":l,m=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,n,m).then(n=>{if(null===n)throw this.recordDroppedEvent("event_processor",p,e),new d.U("An event processor returned `null`, will not send event.","log");return t.data&&!0===t.data.__sentry__?n:function(e,t){let n=`${t} must return \`null\` or a valid event.`;if((0,f.Qg)(e))return e.then(e=>{if(!(0,f.Qd)(e)&&null!==e)throw new d.U(n);return e},e=>{throw new d.U(`${t} rejected with ${e}`)});if(!(0,f.Qd)(e)&&null!==e)throw new d.U(n);return e}(function(e,t,n,r){let{beforeSend:i,beforeSendTransaction:o,beforeSendSpan:a}=t;if(w(n)&&i)return i(n,r);if(x(n)){if(n.spans&&a){let t=[];for(let r of n.spans){let n=a(r);n?t.push(n):((0,y.xl)(),e.recordDroppedEvent("before_send","span"))}n.spans=t}if(o){if(n.spans){let e=n.spans.length;n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return o(n,r)}}return n}(this,r,n,t),u)}).then(r=>{if(null===r){if(this.recordDroppedEvent("before_send",p,e),a){let t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw new d.U(`${u} returned \`null\`, will not send event.`,"log")}let i=n&&n.getSession();if(!a&&i&&this._updateSessionFromEvent(i,r),a){let e=(r.sdkProcessingMetadata&&r.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(r.spans?r.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}let o=r.transaction_info;return a&&o&&r.transaction!==e.transaction&&(r.transaction_info={...o,source:"custom"}),this.sendEvent(r,t),r}).then(null,e=>{if(e instanceof d.U)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new d.U(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
59Reason: ${e}`)})}_process(e){this._numProcessing++,e.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[n,r]=e.split(":");return{reason:n,category:r,quantity:t}})}_flushOutcomes(){i.T&&h.vF.log("Flushing outcomes...");let e=this._clearOutcomes();if(0===e.length){i.T&&h.vF.log("No outcomes to send");return}if(!this._dsn){i.T&&h.vF.log("No dsn provided, will not send outcomes");return}i.T&&h.vF.log("Sending outcomes:",e);let t=function(e,t,n){let r=[{type:"client_report"},{timestamp:(0,c.lu)(),discarded_events:e}];return(0,a.h4)(t?{dsn:t}:{},[r])}(e,this._options.tunnel&&(0,o.SB)(this._dsn));this.sendEnvelope(t)}}function w(e){return void 0===e.type}function x(e){return"transaction"===e.type}var k=n(50513),E=n(13048),_=n(83333),S=n(31179);class A extends b{constructor(e){let t={parentSpanIsAlwaysRootSpan:!0,...e},n=S.jf.SENTRY_SDK_SOURCE||"npm";(0,k.K)(t,"browser",["browser"],n),super(t),t.sendClientReports&&S.jf.document&&S.jf.document.addEventListener("visibilitychange",()=>{"hidden"===S.jf.document.visibilityState&&this._flushOutcomes()})}eventFromException(e,t){return(0,_.u)(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return(0,_.qv)(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled()){E.T&&h.vF.warn("SDK not enabled, will not capture user feedback.");return}let t=function(e,{metadata:t,tunnel:n,dsn:r}){let i={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:(0,o.SB)(r)}},s=[{type:"user_report"},e];return(0,a.h4)(i,[s])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}}},60460:(e,t,n)=>{var r=n(96408);e.exports=n(78866)(function(e,t,n){r(e,n,t)})}
59,60929:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(29449),i=n(57061),o=n(77907),a=n(55936),s=n(33157),l=n(47528),u=n(45165),c=n(16547),d=n(71260);function f(e,t,n){(0,d.A)(2,arguments);var f,h,p,g,m,y=(0,r.q)(),v=null!=(f=null!=(h=null==n?void 0:n.locale)?h:y.locale)?f:s.A;if(!v.formatDistance)throw RangeError("locale must contain formatDistance property");var b=(0,i.A)(e,t);if(isNaN(b))throw RangeError("Invalid time value");var w=(0,u.A)((0,u.A)({},n),{addSuffix:!!(null==n?void 0:n.addSuffix),comparison:b});b>0?(p=(0,l.A)(t),g=(0,l.A)(e)):(p=(0,l.A)(e),g=(0,l.A)(t));var x=(0,a.A)(g,p),k=Math.round((x-((0,c.A)(g)-(0,c.A)(p))/1e3)/60);if(k<2)if(null!=n&&n.includeSeconds)if(x<5)return v.formatDistance("lessThanXSeconds",5,w);else if(x<10)return v.formatDistance("lessThanXSeconds",10,w);else if(x<20)return v.formatDistance("lessThanXSeconds",20,w);else if(x<40)return v.formatDistance("halfAMinute",0,w);else if(x<60)return v.formatDistance("lessThanXMinutes",1,w);else return v.formatDistance("xMinutes",1,w);else if(0===k)return v.formatDistance("lessThanXMinutes",1,w);else return v.formatDistance("xMinutes",k,w);if(k<45)return v.formatDistance("xMinutes",k,w);if(k<90)return v.formatDistance("aboutXHours",1,w);if(k<1440){var E=Math.round(k/60);return v.formatDistance("aboutXHours",E,w)}if(k<2520)return v.formatDistance("xDays",1,w);else if(k<43200){var _=Math.round(k/1440);return v.formatDistance("xDays",_,w)}else if(k<86400)return m=Math.round(k/43200),v.formatDistance("aboutXMonths",m,w);if((m=(0,o.A)(g,p))<12){var S=Math.round(k/43200);return v.formatDistance("xMonths",S,w)}var A=m%12,T=Math.floor(m/12);return A<3?v.formatDistance("aboutXYears",T,w):A<9?v.formatDistance("overXYears",T,w):v.formatDistance("almostXYears",T+1,w)}},61103:(e,t,n)=>{"use strict";let r,i,o;n.d(t,{F:()=>R});var a=n(44845),s=n(77865),l=n(12378),u=n(15089);function c(){if(!u.j.document)return;let e=a.aj.bind(null,"dom"),t=d(e,!0);u.j.document.addEventListener("click",t,!1),u.j.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let n=u.j[t],r=n&&n.prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&((0,s.GS)(r,"addEventListener",function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{let r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},o=r[n]=r[n]||{refCount:0};if(!o.handler){let r=d(e);o.handler=r,t.call(this,n,r,i)}o.refCount++}catch(e){}return t.call(this,n,r,i)}}),(0,s.GS)(r,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{let n=this.__sentry_instrumentation_handlers__||{},i=n[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}}))})}function d(e,t=!1){return n=>{var a;if(!n||n._sentryCaptured)return;let c=function(e){try{return e.target}catch(e){return null}}(n);if(a=n.type,"keypress"===a&&(!c||!c.tagName||"INPUT"!==c.tagName&&"TEXTAREA"!==c.tagName&&!c.isContentEditable&&1))return;(0,s.my)(n,"_sentryCaptured",!0),c&&!c._sentryId&&(0,s.my)(c,"_sentryId",(0,l.eJ)());let d="keypress"===n.type?"input":n.type;!function(e){if(e.type!==i)return!1;try{if(!e.target||e.target._sentryId!==o)return!1}catch(e){}return!0}(n)&&(e({event:n,name:d,global:t}),i=n.type,o=c?c._sentryId:void 0),clearTimeout(r),r=u.j.setTimeout(()=>{o=void 0,i=void 0},1e3)}}var f=n(72871),h=n(29378);let p="__sentry_xhr_v3__";function g(){if(!u.j.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){let r=Error(),i=1e3*(0,f.zf)(),o=(0,h.Kg)(n[0])?n[0].toUpperCase():void 0,s=function(e){if((0,h.Kg)(e))return e;try{return e.toString()}catch(e){}}(n[1]);if(!o||!s)return e.apply(t,n);t[p]={method:o,url:s,request_headers:{}},"POST"===o&&s.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let l=()=>{let e=t[p];if(e&&4===t.readyState){try{e.status_code=t.status}catch(e){}let n={endTimestamp:1e3*(0,f.zf)(),startTimestamp:i,xhr:t,virtualError:r};(0,a.aj)("xhr",n)}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,n)=>(l(),e.apply(t,n))}):t.addEventListener("readystatechange",l),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){let[r,i]=n,o=t[p];return o&&(0,h.Kg)(r)&&(0,h.Kg)(i)&&(o.request_headers[r.toLowerCase()]=i),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){let r=t[p];if(!r)return e.apply(t,n);void 0!==n[0]&&(r.body=n[0]);let i={startTimestamp:1e3*(0,f.zf)(),xhr:t};return(0,a.aj)("xhr",i),e.apply(t,n)}})}var m=n(15572),y=n(87086),v=n(6541);
59function b(){"console"in v.O&&y.Ow.forEach(function(e){e in v.O.console&&(0,s.GS)(v.O.console,e,function(t){return y.Z9[e]=t,function(...t){(0,a.aj)("console",{args:t,level:e});let n=y.Z9[e];n&&n.apply(v.O.console,t)}})})}var w=n(96694);function x(e,t){return!!e&&"object"==typeof e&&!!e[t]}function k(e){return"string"==typeof e?e:e?x(e,"url")?e.url:e.toString?e.toString():"":""}var E=n(87876),_=n(27313);function S(e,t){let n=(0,_.KU)(),r=(0,_.rm)();if(!n)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:o=100}=n.getOptions();if(o<=0)return;let a={timestamp:(0,f.lu)(),...e},s=i?(0,y.pq)(()=>i(a,t)):a;null!==s&&(n.emit&&n.emit("beforeAddBreadcrumb",s,t),r.addBreadcrumb(s,o))}var A=n(95746),T=n(7207);function C(e){if(void 0!==e)return e>=400&&e<500?"warning":e>=500?"error":void 0}function O(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}var j=n(13048),D=n(31179);let R=(0,E._C)((e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var n,r,i,o,u,d,E;t.console&&function(e){let t="console";(0,a.s5)(t,e),(0,a.AS)(t,b)}((n=e,function(e){var t;if((0,_.KU)()!==n)return;let r={category:"console",data:{arguments:e.args,logger:"console"},level:"warn"===(t=e.level)?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log",message:(0,T.gt)(e.args," ")};if("assert"===e.level)if(!1!==e.args[0])return;else r.message=`Assertion failed: ${(0,T.gt)(e.args.slice(1)," ")||"console.assert"}`,r.data.arguments=e.args.slice(1);S(r,{input:e.args,level:e.level})})),t.dom&&(r=e,i=t.dom,(0,a.s5)("dom",function(e){let t,n;if((0,_.KU)()!==r)return;let o="object"==typeof i?i.serializeAttribute:void 0,a="object"==typeof i&&"number"==typeof i.maxStringLength?i.maxStringLength:void 0;a&&a>1024&&(j.T&&y.vF.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${a} was configured. Sentry will use 1024 instead.`),a=1024),"string"==typeof o&&(o=[o]);try{var s;let r=e.event,i=(s=r)&&s.target?r.target:r;t=(0,A.Hd)(i,{keyAttrs:o,maxStringLength:a}),n=(0,A.xE)(i)}catch(e){t="<unknown>"}if(0===t.length)return;let l={category:`ui.${e.name}`,message:t};n&&(l.data={"ui.component_name":n}),S(l,{event:e.event,name:e.name,global:e.global})}),(0,a.AS)("dom",c)),t.xhr&&(o=e,(0,a.s5)("xhr",function(e){if((0,_.KU)()!==o)return;let{startTimestamp:t,endTimestamp:n}=e,r=e.xhr[p];if(!t||!n||!r)return;let{method:i,url:a,status_code:s,body:l}=r,u={xhr:e.xhr,input:l,startTimestamp:t,endTimestamp:n};S({category:"xhr",data:{method:i,url:a,status_code:s},type:"http",level:C(s)},u)}),(0,a.AS)("xhr",g)),t.fetch&&function(e,t){let n="fetch";(0,a.s5)(n,e),(0,a.AS)(n,()=>(function(e,t=!1){(!t||(0,w.m7)())&&(0,s.GS)(v.O,"fetch",function(t){return function(...n){let r=Error(),{method:i,url:o}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,n]=e;return{url:k(t),method:x(n,"method")?String(n.method).toUpperCase():"GET"}}let t=e[0];return{url:k(t),method:x(t,"method")?String(t.method).toUpperCase():"GET"}}(n),l={args:n,fetchData:{method:i,url:o},startTimestamp:1e3*(0,f.zf)(),virtualError:r};return e||(0,a.aj)("fetch",{...l}),t.apply(v.O,n).then(async t=>(e?e(t):(0,a.aj)("fetch",{...l,endTimestamp:1e3*(0,f.zf)(),response:t}),t),e=>{throw(0,a.aj)("fetch",{...l,endTimestamp:1e3*(0,f.zf)(),error:e}),(0,h.bJ)(e)&&void 0===e.stack&&(e.stack=r.stack,(0,s.my)(e,"framesToPop",1)),e})}})})(void 0,void 0))}((u=e,function(e){if((0,_.KU)()!==u)return;let{startTimestamp:t,endTimestamp:n}=e;if(n&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.error)S({category:"fetch",data:e.fetchData,level:"error",type:"http"},{data:e.error,input:e.args,startTimestamp:t,endTimestamp:n});else{let r=e.response,i={...e.fetchData,status_code:r&&r.status},o={input:e.args,response:r,startTimestamp:t,endTimestamp:n},a=C(i.status_code);S({category:"fetch",data:i,type:"http",level:a},o)}})),t.history&&(0,m._)((d=e,function(e){if((0,_.KU)()!==d)return;let t=e.from,n=e.to,r=O(D.jf.location.href),i=t?O(t):void 0,o=O(n);i&&i.path||(i=r),r.protocol===o.protocol&&r.host===o.host&&(n=o.relative),r.protocol===i.protocol&&r.host===i.host&&(t=i.relative),S({category:"navigation",data:{from:t,to:n}})})),t.sentry&&e.on("beforeSendEvent",(E=e,function(e){(0,_.KU)()===E&&S({category:`sentry.${"transaction"===e.type?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:(0,l.$X)(e)},{event:e})}))}}})},61195:e=>{var t="\ud800-\udfff",n="\\u2700-\\u27bf",r="a-z\\xdf-\\xf6\\xf8-\\xff",i="A-Z\\xc0-\\xd6\\xd8-\\xde",o="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="['’]",s="["+o+"]",l="["+r+"]",u="[^"+t+o+"\\d+"+n+r+i+"]",c="(?:\ud83c[\udde6-\uddff]){2}",d="[\ud800-\udbff][\udc00-\udfff]",f="["+i+"]",h="(?:"+l+"|"+u+")",p="(?:"+f+"|"+u+")",g="(?:"+a+"(?:d|ll|m|re|s|t|ve))?",m="(?:"+a+"(?:D|LL|M|RE|S|T|VE))?",y="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\ud83c[\udffb-\udfff])?",v="[\\ufe0e\\ufe0f]?",b="(?:\\u200d(?:"+["[^"+t+"]",c,d].join("|")+")"+v+y+")*",w="(?:"+["["+n+"]",c,d].join("|")+")"+(v+y+b),x=RegExp([f+"?"+l+"+"+g+"(?="+[s,f,"$"].join("|")+")",p+"+"+m+"(?="+[s,f+h,"$"].join("|")+")",f+"?"+h+"+"+g,f+"+"+m,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])|\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])|\\d+",w].join("|"),"g");e.exports=function(e){return e.match(x)||[]}},61206:(e,t,n)=>{"use strict";n.d(t,{A:()=>
59o});var r=n(47528),i=n(71260);function o(e){(0,i.A)(1,arguments);var t=(0,r.A)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}},61328:(e,t,n)=>{var r=n(22899),i=n(11088);e.exports=function(e,t){var n=-1,o=i(e)?Array(e.length):[];return r(e,function(e,r,i){o[++n]=t(e,r,i)}),o}},61356:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(18659),i=n(47528),o=n(71260);function a(e,t){(0,o.A)(2,arguments);var n=(0,i.A)(e),a=(0,r.A)(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(a),n)}},61386:(e,t,n)=>{var r=n(88567),i=n(88002),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!!("number"==n||"symbol"==n||"boolean"==n||null==e||i(e))||a.test(e)||!o.test(e)||null!=t&&e in Object(t)}},61403:e=>{e.exports=function(e){return this.__data__.get(e)}},61496:(e,t,n)=>{"use strict";n.d(t,{v:()=>o});var r=n(27778),i=n(94126);function o(e,t){return void 0===t&&(t=!1),(0,r.N)(function(n,r){var o=0;n.subscribe((0,i._)(r,function(n){var i=e(n,o++);(i||t)&&r.next(n),i||r.complete()}))})}},61557:(e,t,n)=>{"use strict";n.d(t,{of:()=>o});var r=n(16194),i=n(37060);function o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=(0,r.lI)(e);return(0,i.H)(e,n)}},61624:(e,t,n)=>{var r=n(46051),i=n(10947),o=n(12227);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},61942:(e,t,n)=>{"use strict";var r=n(44316).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,s.default)(1,arguments);var n=(0,i.default)(e);return Math.round(((0,o.default)(n,t).getTime()-(0,a.default)(n,t).getTime())/6048e5)+1};var i=r(n(75628)),o=r(n(91265)),a=r(n(21256)),s=r(n(29024));e.exports=t.default},62077:(e,t,n)=>{var r=n(85411);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},62319:(e,t,n)=>{"use strict";n.d(t,{i:()=>o});var r=n(82203),i=((()=>{try{return!0}catch(e){return!1}})(),(()=>{try{return!1}catch(e){return!1}})());function o(e){if(i){var t;return t=e,void(0,r.useEffect)(()=>{},[t])}}},62415:(e,t,n)=>{"use strict";n.d(t,{Q_:()=>G});let r=e=>"string"==typeof e,i=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},o=e=>null==e?"":""+e,a=/###/g,s=e=>e&&e.indexOf("###")>-1?e.replace(a,"."):e,l=e=>!e||r(e),u=(e,t,n)=>{let i=r(t)?t.split("."):t,o=0;for(;o<i.length-1;){if(l(e))return{};let t=s(i[o]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++o}return l(e)?{}:{obj:e,k:s(i[o])}},c=(e,t,n)=>{let{obj:r,k:i}=u(e,t,Object);if(void 0!==r||1===t.length){r[i]=n;return}let o=t[t.length-1],a=t.slice(0,t.length-1),s=u(e,a,Object);for(;void 0===s.obj&&a.length;)o=`${a[a.length-1]}.${o}`,(s=u(e,a=a.slice(0,a.length-1),Object))&&s.obj&&void 0!==s.obj[`${s.k}.${o}`]&&(s.obj=void 0);s.obj[`${s.k}.${o}`]=n},d=(e,t)=>{let{obj:n,k:r}=u(e,t);if(n)return n[r]},f=(e,t,n)=>{for(let i in t)"__proto__"!==i&&"constructor"!==i&&(i in e?r(e[i])||e[i]instanceof String||r(t[i])||t[i]instanceof String?n&&(e[i]=t[i]):f(e[i],t[i],n):e[i]=t[i]);return e},h=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var p={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};let g=e=>r(e)?e.replace(/[&<>"'\/]/g,e=>p[e]):e;class m{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(void 0!==t)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}let y=[" ",",","?","!",";"],v=new m(20),b=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];let r=t.split(n),i=e;for(let e=0;e<r.length;){let t;if(!i||"object"!=typeof i)return;let o="";for(let a=e;a<r.length;++a)if(a!==e&&(o+=n),o+=r[a],void 0!==(t=i[o])){if(["string","number","boolean"].indexOf(typeof t)>-1&&a<r.length-1)continue;e+=a-e+1;break}i=t}return i},w=e=>e&&e.replace("_","-"),x={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class k{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||x,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,i){return i&&!this.debug?null:(r(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new k(this.logger,{...{prefix:`${this.prefix}:${e}:`},...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new k(this.logger,e)}}var E=new k;class _{constructor(){this.observers={}}
59on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t)return void delete this.observers[e];this.observers[e].delete(t)}}emit(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(e=>{let[t,r]=e;for(let e=0;e<r;e++)t(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(t=>{let[r,i]=t;for(let t=0;t<i;t++)r.apply(r,[e,...n])})}}class S extends _{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){let i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,s=void 0!==o.ignoreJSONStructure?o.ignoreJSONStructure:this.options.ignoreJSONStructure;e.indexOf(".")>-1?i=e.split("."):(i=[e,t],n&&(Array.isArray(n)?i.push(...n):r(n)&&a?i.push(...n.split(a)):i.push(n)));let l=d(this.data,i);return(!l&&!t&&!n&&e.indexOf(".")>-1&&(e=i[0],t=i[1],n=i.slice(2).join(".")),!l&&s&&r(n))?b(this.data&&this.data[e]&&this.data[e][t],n,a):l}addResource(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,a=[e,t];
59n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."),r=t,t=a[1]),this.addNamespaces(t),c(this.data,a,r),i.silent||this.emit("added",e,t,n,r)}addResources(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(let i in n)(r(n[i])||Array.isArray(n[i]))&&this.addResource(e,t,i,n[i],{silent:!0});i.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),r=n,n=t,t=a[1]),this.addNamespaces(t);let s=d(this.data,a)||{};o.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?f(s,n,i):s={...s,...n},c(this.data,a,s),o.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return(t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var A={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{this.processors[e]&&(t=this.processors[e].process(t,n,r,i))}),t}};let T={};class C extends _{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),((e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})})(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
59i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=E.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;let n=this.resolve(e,t);return n&&void 0!==n.res}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");let i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS||[],a=n&&e.indexOf(n)>-1,s=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!((e,t,n)=>{t=t||"",n=n||"";let r=y.filter(e=>0>t.indexOf(e)&&0>n.indexOf(e));if(0===r.length)return!0;let i=v.getRegExp(`(${r.map(e=>"?"===e?"\\?":e).join("|")})`),o=!i.test(e);if(!o){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(o=!0)}return o})(e,n,i);if(a&&!s){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:r(o)?[o]:o};let a=e.split(n);(n!==i||n===i&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),e=a.join(i)}return{key:e,namespaces:r(o)?[o]:o}}translate(e,t,n){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof t&&(t={...t}),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);let i=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:a,namespaces:s}=this.extractFromKey(e[e.length-1],t),l=s[s.length-1],u=t.lng||this.language,c=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&"cimode"===u.toLowerCase()){if(c){let e=t.nsSeparator||this.options.nsSeparator;return i?{res:`${l}${e}${a}`,usedKey:a,exactUsedKey:a,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(t)}:`${l}${e}${a}`}return i?{res:a,usedKey:a,exactUsedKey:a,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(t)}:a}let d=this.resolve(e,t),f=d&&d.res,h=d&&d.usedKey||a,p=d&&d.exactUsedKey||a,g=Object.prototype.toString.apply(f),m=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,v=!r(f)&&"boolean"!=typeof f&&"number"!=typeof f;if(y&&f&&v&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(g)&&!(r(m)&&Array.isArray(f))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,f,{...t,ns:s}):`key '${a} (${this.language})' returned an object instead of string.`;return i?(d.res=e,d.usedParams=this.getUsedParamsDetails(t),d):e}if(o){let e=Array.isArray(f),n=e?[]:{},r=e?p:h;for(let e in f)if(Object.prototype.hasOwnProperty.call(f,e)){let i=`${r}${o}${e}`;n[e]=this.translate(i,{...t,joinArrays:!1,ns:s}),n[e]===i&&(n[e]=f[e])}f=n}}else if(y&&r(m)&&Array.isArray(f))(f=f.join(m))&&(f=this.extendTranslation(f,e,t,n));else{let i=!1,s=!1,c=void 0!==t.count&&!r(t.count),h=C.hasDefaultValue(t),p=c?this.pluralResolver.getSuffix(u,t.count,t):"",g=t.ordinal&&c?this.pluralResolver.getSuffix(u,t.count,{ordinal:!1}):"",m=c&&!t.ordinal&&0===t.count&&this.pluralResolver.shouldUseIntlApi(),y=m&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${p}`]||t[`defaultValue${g}`]||t.defaultValue;!this.isValidLookup(f)&&h&&(i=!0,f=y),this.isValidLookup(f)||(s=!0,f=a);let v=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&s?void 0:f,b=h&&y!==f&&this.options.updateMissing;if(s||i||b){if(this.logger.log(b?"updateKey":"missingKey",u,l,a,b?y:f),o){let e=this.resolve(a,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[],n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let t=0;t<n.length;t++)e.push(n[t]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(t.lng||this.language):e.push(t.lng||this.language);let r=(e,n,r)=>{let i=h&&r!==f?r:v;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,n,i,b,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,l,n,i,b,t),this.emit
59("missingKey",e,l,n,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&c?e.forEach(e=>{let n=this.pluralResolver.getSuffixes(e,t);m&&t[`defaultValue${this.options.pluralSeparator}zero`]&&0>n.indexOf(`${this.options.pluralSeparator}zero`)&&n.push(`${this.options.pluralSeparator}zero`),n.forEach(n=>{r([e],a+n,t[`defaultValue${n}`]||y)})}):r(e,a,y))}f=this.extendTranslation(f,e,t,d,n),s&&f===a&&this.options.appendNamespaceToMissingKey&&(f=`${l}:${a}`),(s||i)&&this.options.parseMissingKeyHandler&&(f="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${a}`:a,i?f:void 0):this.options.parseMissingKeyHandler(f))}return i?(d.res=f,d.usedParams=this.getUsedParamsDetails(t),d):f}extendTranslation(e,t,n,i,o){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!n.skipInterpolation){let s;n.interpolation&&this.interpolator.init({...n,...{interpolation:{...this.options.interpolation,...n.interpolation}}});let l=r(e)&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(l){let t=e.match(this.interpolator.nestingRegexp);s=t&&t.length}let u=n.replace&&!r(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(u={...this.options.interpolation.defaultVariables,...u}),e=this.interpolator.interpolate(e,u,n.lng||this.language||i.usedLng,n),l){let t=e.match(this.interpolator.nestingRegexp);s<(t&&t.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&i&&i.res&&(n.lng=this.language||i.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];return o&&o[0]===r[0]&&!n.context?(a.logger.warn(`It seems you are nesting recursively key: ${r[0]} in key: ${t[0]}`),null):a.translate(...r,t)},n)),n.interpolation&&this.interpolator.reset()}let s=n.postProcess||this.options.postProcess,l=r(s)?[s]:s;return null!=e&&l&&l.length&&!1!==n.applyPostProcessor&&(e=A.handle(l,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e){let t,n,i,o,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(t))return;let l=this.extractFromKey(e,s),u=l.key;n=u;let c=l.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));let d=void 0!==s.count&&!r(s.count),f=d&&!s.ordinal&&0===s.count&&this.pluralResolver.shouldUseIntlApi(),h=void 0!==s.context&&(r(s.context)||"number"==typeof s.context)&&""!==s.context,p=s.lngs?s.lngs:this.languageUtils.toResolveHierarchy(s.lng||this.language,s.fallbackLng);
59c.forEach(e=>{this.isValidLookup(t)||(a=e,!T[`${p[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(T[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${n}" for languages "${p.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach(n=>{let r;if(this.isValidLookup(t))return;o=n;let a=[u];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(a,u,n,e,s);else{let e;d&&(e=this.pluralResolver.getSuffix(n,s.count,s));let t=`${this.options.pluralSeparator}zero`,r=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(a.push(u+e),s.ordinal&&0===e.indexOf(r)&&a.push(u+e.replace(r,this.options.pluralSeparator)),f&&a.push(u+t)),h){let n=`${u}${this.options.contextSeparator}${s.context}`;a.push(n),d&&(a.push(n+e),s.ordinal&&0===e.indexOf(r)&&a.push(n+e.replace(r,this.options.pluralSeparator)),f&&a.push(n+t))}}for(;r=a.pop();)this.isValidLookup(t)||(i=r,t=this.getResource(n,e,r,s))}))})}),{res:t,usedKey:n,exactUsedKey:i,usedLng:o,usedNS:a}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.replace&&!r(e.replace),n=t?e.replace:e;if(t&&void 0!==e.count&&(n.count=e.count),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!t)for(let e of(n={...n},["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"]))delete n[e];return n}static hasDefaultValue(e){let t="defaultValue";for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}let O=e=>e.charAt(0).toUpperCase()+e.slice(1);class j{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=E.create("languageUtils")}getScriptPartFromCode(e){if(!(e=w(e))||0>e.indexOf("-"))return null;let t=e.split("-");return 2===t.length||(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(!(e=w(e))||0>e.indexOf("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(r(e)&&e.indexOf("-")>-1){if("undefined"!=typeof Intl&&void 0!==Intl.getCanonicalLocales)try{let t=Intl.getCanonicalLocales(e)[0];if(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)return t}catch(e){}let t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map(e=>e.toLowerCase()):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=O(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=O(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=O(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){let t;return e?(e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find(e=>{if(e===n||!(0>e.indexOf("-")&&0>n.indexOf("-"))&&(e.indexOf("-")>0&&0>n.indexOf("-")&&e.substring(0,e.indexOf("-"))===n||0===e.indexOf(n)&&n.length>1))return e})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),r(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];
59return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),i=[],o=e=>{e&&(this.isSupportedCode(e)?i.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return r(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):r(e)&&o(this.formatLanguageCode(e)),n.forEach(e=>{0>i.indexOf(e)&&o(this.formatLanguageCode(e))}),i}}let D=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],R={1:e=>Number(e>1),2:e=>Number(1!=e),3:e=>0,4:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),5:e=>Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5),6:e=>Number(1==e?0:e>=2&&e<=4?1:2),7:e=>Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),8:e=>Number(1==e?0:2==e?1:8!=e&&11!=e?2:3),9:e=>Number(e>=2),10:e=>Number(1==e?0:2==e?1:e<7?2:e<11?3:4),11:e=>Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3),12:e=>Number(e%10!=1||e%100==11),13:e=>Number(0!==e),14:e=>Number(1==e?0:2==e?1:3==e?2:3),15:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2),16:e=>Number(e%10==1&&e%100!=11?0:0!==e?1:2),17:e=>Number(+(1!=e&&(e%10!=1||e%100==11))),18:e=>Number(0==e?0:1==e?1:2),19:e=>Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3),20:e=>Number(1==e?0:0==e||e%100>0&&e%100<20?1:2),21:e=>Number(e%100==1?1:e%100==2?2:3*(e%100==3||e%100==4)),22:e=>Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)},I=["v1","v2","v3"],P=["v4"],M={zero:0,one:1,two:2,few:3,many:4,other:5};class N{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=E.create("pluralResolver"),(!this.options.compatibilityJSON||P.includes(this.options.compatibilityJSON))&&("undefined"==typeof Intl||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(()=>{let e={};return D.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:R[t.fc]}})}),e})(),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi()){let n,r=w("dev"===e?"en":e),i=t.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:r,type:i});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];try{n=new Intl.PluralRules(r,{type:i})}catch(i){if(!e.match(/-|_/))return;let r=this.languageUtils.getLanguagePartFromCode(e);n=this.getRule(r,t)}return this.pluralRulesCache[o]=n,n}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};
59return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((e,t)=>M[e]-M[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):n.numbers.map(n=>this.getSuffix(e,n,t)):[]}getSuffix(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:this.getSuffixRetroCompatible(r,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){let n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),r=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));let i=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?`_plural_${r.toString()}`:i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?i():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}
59shouldUseIntlApi(){return!I.includes(this.options.compatibilityJSON)}}let $=function(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",o=!(arguments.length>4)||void 0===arguments[4]||arguments[4],a=((e,t,n)=>{let r=d(e,n);return void 0!==r?r:d(t,n)})(e,t,n);return!a&&o&&r(n)&&void 0===(a=b(e,n,i))&&(a=b(t,n,i)),a},L=e=>e.replace(/\$/g,"$$$$");class F{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=E.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:o,suffix:a,suffixEscaped:s,formatSeparator:l,unescapeSuffix:u,unescapePrefix:c,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:m,nestingOptionsSeparator:y,maxReplaces:v,alwaysFormat:b}=e.interpolation;this.escape=void 0!==t?t:g,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=i?h(i):o||"{{",this.suffix=a?h(a):s||"}}",this.formatSeparator=l||",",this.unescapePrefix=u?"":c||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=d?h(d):f||h("$t("),this.nestingSuffix=p?h(p):m||h(")"),this.nestingOptionsSeparator=y||",",this.maxReplaces=v||1e3,this.alwaysFormat=void 0!==b&&b,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,n,i){let a,s,l,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(0>e.indexOf(this.formatSeparator)){let r=$(t,u,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(r,void 0,n,{...i,...t,interpolationkey:e}):r}let r=e.split(this.formatSeparator),o=r.shift().trim(),a=r.join(this.formatSeparator).trim();return this.format($(t,u,o,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,{...i,...t,interpolationkey:o})};this.resetRegExp();let d=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,f=i&&i.interpolation&&void 0!==i.interpolation.skipOnVariables?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>L(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?L(this.escape(e)):L(e)}].forEach(t=>{for(l=0;a=t.regex.exec(e);){let n=a[1].trim();if(void 0===(s=c(n)))if("function"==typeof d){let t=d(e,a,i);s=r(t)?t:""}else if(i&&Object.prototype.hasOwnProperty.call(i,n))s="";else if(f){s=a[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),s="";else r(s)||this.useRawValueToEscape||(s=o(s));let u=t.safeValue(s);if(e=e.replace(a[0],u),f?(t.regex.lastIndex+=s.length,t.regex.lastIndex-=a[0].length):t.regex.lastIndex=0,++l>=this.maxReplaces)break}}),e}nest(e,t){let n,i,a,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=(e,t)=>{let n=this.nestingOptionsSeparator;if(0>e.indexOf(n))return e;let r=e.split(RegExp(`${n}[ ]*{`)),i=`{${r[1]}`;e=r[0];let o=(i=this.interpolate(i,a)).match(/'/g),s=i.match(/"/g);(o&&o.length%2==0&&!s||s.length%2!=0)&&(i=i.replace(/'/g,'"'));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,e};for(;n=this.nestingRegexp.exec(e);){let u=[];(a=(a={...s}).replace&&!r(a.replace)?a.replace:a).applyPostProcessor=!1,delete a.defaultValue;let c=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){let e=n[1].split(this.formatSeparator).map(e=>e.trim());n[1]=e.shift(),u=e,c=!0}if((i=t(l.call(this,n[1].trim(),a),a))&&n[0]===e&&!r(i))return i;r(i)||(i=o(i)),i||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}
59`),i=""),c&&(i=u.reduce((e,t)=>this.format(e,t,s.lng,{...s,interpolationkey:n[1].trim()}),i.trim())),e=e.replace(n[0],i),this.regexp.lastIndex=0}return e}}let U=e=>{let t={};return(n,r,i)=>{let o=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(o={...o,[i.interpolationkey]:void 0});let a=r+JSON.stringify(o),s=t[a];return s||(s=e(w(r),i),t[a]=s),s(n)}};class z{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=E.create("formatter"),this.options=e,this.formats={number:U((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:U((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)}),datetime:U((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:U((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")}),list:U((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})},this.init(e)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=U(t)}format(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&0>i[0].indexOf(")")&&i.find(e=>e.indexOf(")")>-1)){let e=i.findIndex(e=>e.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce((e,t)=>{let{formatName:i,formatOptions:o}=(e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){let r=e.split("(");t=r[0].toLowerCase().trim();let i=r[1].substring(0,r[1].length-1);"currency"===t&&0>i.indexOf(":")?n.currency||(n.currency=i.trim()):"relativetime"===t&&0>i.indexOf(":")?n.range||(n.range=i.trim()):i.split(";").forEach(e=>{if(e){let[t,...r]=e.split(":"),i=r.join(":").trim().replace(/^'+|'+$/g,""),o=t.trim();n[o]||(n[o]=i),"false"===i&&(n[o]=!1),"true"===i&&(n[o]=!0),isNaN(i)||(n[o]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}})(t);if(this.formats[i]){let t=e;try{let a=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},s=a.locale||a.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...o,...r,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${i}`),e},e)}}class B extends _{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=E.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,r.backend,r)}queueLoad(e,t,n,r){let i={},o={},a={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let a=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===o[a]&&(o[a]=!0):(this.state[a]=1,r=!1,void 0===o[a]&&(o[a]=!0),void 0===i[a]&&(i[a]=!0),void 0===s[t]&&(s[t]=!0)))}),r||(a[e]=!0)}),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let r=e.split("|"),i=r[0],o=r[1];t&&this.emit("failedLoading",i,o,t),!t&&n&&this.store.addResourceBundle(i,o,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let a={};this.queue.forEach(n=>{((e,t,n,r)=>{let{obj:i,k:o}=u(e,t,Object);i[o]=i[o]||[],i[o].push(n)}
59)(n.loaded,[i],o),void 0!==n.pending[e]&&(delete n.pending[e],n.pendingCount--),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(e=>{a[e]||(a[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{void 0===a[e][t]&&(a[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:o});this.readingCalls++;let a=(a,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(a&&s&&r<this.maxRetries)return void setTimeout(()=>{this.read.call(this,e,t,n,r+1,2*i,o)},i);o(a,s)},s=this.backend[n].bind(this.backend);if(2===s.length){try{let n=s(e,t);n&&"function"==typeof n.then?n.then(e=>a(null,e)).catch(a):a(null,n)}catch(e){a(e)}return}return s(e,t,a)}prepareLoading(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();r(e)&&(e=this.languageUtils.toResolveHierarchy(e)),r(t)&&(t=[t]);let o=this.queueLoad(e,t,n,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.split("|"),r=n[0],i=n[1];this.read(r,i,"read",void 0,void 0,(n,o)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&o&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,o),this.loaded(e,n,o)})}saveMissing(e,t,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))return void this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");if(null!=n&&""!==n){if(this.backend&&this.backend.create){let s={...o,isUpdate:i},l=this.backend.create.bind(this.backend);if(l.length<6)try{let i;(i=5===l.length?l(e,t,n,r,s):l(e,t,n,r))&&"function"==typeof i.then?i.then(e=>a(null,e)).catch(a):a(null,i)}catch(e){a(e)}else l(e,t,n,r,a,s)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}}let q=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),r(e[1])&&(t.defaultValue=e[1]),r(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),V=e=>(r(e.ns)&&(e.ns=[e.ns]),r(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),r(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),H=()=>{};class W extends _{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=V(e),this.services={},this.logger=E,this.modules={external:[]},(e=>
59{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{"function"==typeof e[t]&&(e[t]=e[t].bind(e))})})(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&(r(t.ns)?t.defaultNS=t.ns:0>t.ns.indexOf("translation")&&(t.defaultNS=t.ns[0]));let o=q();this.options={...o,...this.options,...V(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...o.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator);let a=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let t;this.modules.logger?E.init(a(this.modules.logger),this.options):E.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=z);let n=new j(this.options);this.store=new S(this.options.resources,this.options);let r=this.services;r.logger=E,r.resourceStore=this.store,r.languageUtils=n,r.pluralResolver=new N(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),t&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(r.formatter=a(t),r.formatter.init(r,this.options),this.options.interpolation.format=r.formatter.format.bind(r.formatter)),r.interpolator=new F(this.options),r.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},r.backendConnector=new B(a(this.modules.backend),r.resourceStore,r,this.options),r.backendConnector.on("*",function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit(t,...r)}),this.modules.languageDetector&&(r.languageDetector=a(this.modules.languageDetector),r.languageDetector.init&&r.languageDetector.init(r,this.options.detection,this.options)),this.modules.i18nFormat&&(r.i18nFormat=a(this.modules.i18nFormat),r.i18nFormat.init&&r.i18nFormat.init(this)),this.translator=new C(this.services,this.options),this.translator.on("*",function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit(t,...r)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,n||(n=H),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(t=>{this[t]=function(){return e.store[t](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(t=>{this[t]=function(){return e.store[t](...arguments),e}});let s=i(),l=()=>{let e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),s.resolve(t),n(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),s}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:H,n=t,i=r(e)?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(i&&"cimode"===i.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return n();let e=[],t=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&0>e.indexOf(t)&&e.push(t)})};i?t(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e
59=>t(e)),this.options.preload&&this.options.preload.forEach(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let r=i();return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=H),this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&A.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;let o=i();this.emit("languageChanging",e);let a=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},s=(e,r)=>{r?(a(r),this.translator.changeLanguage(r),this.isLanguageChangingTo=void 0,this.emit("languageChanged",r),this.logger.log("languageChanged",r)):this.isLanguageChangingTo=void 0,o.resolve(function(){return n.t(...arguments)}),t&&t(e,function(){return n.t(...arguments)})},l=t=>{e||t||!this.services.languageDetector||(t=[]);let n=r(t)?t:this.services.languageUtils.getBestMatchFromCodes(t);n&&(this.language||a(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,e=>{s(e,n)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(e):l(this.services.languageDetector.detect()),o}getFixedT(e,t,n){var i=this;let o=function(e,t){let r,a;if("object"!=typeof t){for(var s=arguments.length,l=Array(s>2?s-2:0),u=2;u<s;u++)l[u-2]=arguments[u];r=i.options.overloadTranslationOptionHandler([e,t].concat(l))}else r={...t};r.lng=r.lng||o.lng,r.lngs=r.lngs||o.lngs,r.ns=r.ns||o.ns,""!==r.keyPrefix&&(r.keyPrefix=r.keyPrefix||n||o.keyPrefix);let c=i.options.keySeparator||".";return a=r.keyPrefix&&Array.isArray(e)?e.map(e=>`${r.keyPrefix}${c}${e}`):r.keyPrefix?`${r.keyPrefix}${c}${e}`:e,i.t(a,r)};return r(e)?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
59if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;let o=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return -1===n||0===n||2===n};if(t.precheck){let e=t.precheck(this,o);if(void 0!==e)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(n,e)&&(!r||o(i,e)))}loadNamespaces(e,t){let n=i();return this.options.ns?(r(e)&&(e=[e]),e.forEach(e=>{0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=i();r(e)&&(e=[e]);let o=this.options.preload||[],a=e.filter(e=>0>o.indexOf(e)&&this.services.languageUtils.isSupportedCode(e));return a.length?(this.options.preload=o.concat(a),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){return(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),e)?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf((this.services&&this.services.languageUtils||new j(q())).getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}static createInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new W(e,t)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:H,n=e.forkResourceStore;n&&delete e.forkResourceStore;let r={...this.options,...e,isClone:!0},i=new W(r);return(void 0!==e.debug||void 0!==e.prefix)&&(i.logger=i.logger.clone(e)),["store","services","language"].forEach(e=>{i[e]=this[e]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n&&(i.store=new S(this.store.data,r),i.services.resourceStore=i.store),i.translator=new C(i.services,r),i.translator.on("*",function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit(e,...n)}),i.init(r,t),i.translator.options=r,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}let Y=W.createInstance();Y.createInstance=W.createInstance;let G=Y.createInstance;Y.dir,Y.init,Y.loadResources,Y.reloadResources,Y.use,Y.changeLanguage,Y.getFixedT,Y.t,Y.exists,Y.setDefaultNamespace,Y.hasLoadedNamespace,Y.loadNamespaces,Y.loadLanguages},62553:(e,t,n)=>{"use strict";function r(e){var t=e(function(e){Error.call(e),e.stack=Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}n.d(t,{L:()=>r})},62606:(e,t,n)=>{"use strict";let r=n(80726),i=n(74907);e.exports=(e,t,n)=>{let o=null,a=null,s=null;try{s=new i(t,n)}catch(e){return null}return e.forEach(e=>{s.test(e)&&(!o||1===a.compare(e))&&(a=new r(o=e,n))}),o}},62614:(e,t,n)=>{var r=n(10947);e.exports=function(){this.__data__=new r,this.size=0}},62739:(e,t,n)=>{"use strict";n.d(t,{E:()=>c});var r=n(58555),i=n(27778),o=n(94126),a=n(12884),s=n(17953),l=n(22303),u=n(16194);function c(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=(0,u.ms)(e);return(0,i.N)(function(t,i){for(var u=e.length,c=Array(u),d=e.map(function(){return!1}),f=!1,h=function(t){(0,a.Tg)(e[t]).subscribe((0,o._)(i,function(e){c[t]=e,!f&&!d[t]&&(d[t]=!0,(f=d.every(s.D))&&(d=null))},l.l))},p=0;p<u;p++)h(p);t.subscribe((0,o._)(i,function(e){if(f){var t=(0,r.fX)([e],(0,r.zs)(c));i.next(n?n.apply(void 0,(0,r.fX)([],(0,r.zs)(t))):t)}}))})}},63021:e=>{"use strict";e.exports=function(e){return e.toLowerCase()}},63032:(e,t,n)=>{var r=n(71017),i=n(63114),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
597f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=i(e))&&e.replace(o,r).replace(a,"")}},63099:(e,t,n)=>{var r,i=1/0,o=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,a=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,s="\ud800-\udfff",l="\\u0300-\\u036f\\ufe20-\\ufe23",u="\\u20d0-\\u20f0",c="\\u2700-\\u27bf",d="a-z\\xdf-\\xf6\\xf8-\\xff",f="A-Z\\xc0-\\xd6\\xd8-\\xde",h="\\ufe0e\\ufe0f",p="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",g="['’]",m="["+p+"]",y="["+l+u+"]",v="["+d+"]",b="[^"+s+p+"\\d+"+c+d+f+"]",w="\ud83c[\udffb-\udfff]",x="[^"+s+"]",k="(?:\ud83c[\udde6-\uddff]){2}",E="[\ud800-\udbff][\udc00-\udfff]",_="["+f+"]",S="\\u200d",A="(?:"+v+"|"+b+")",T="(?:"+_+"|"+b+")",C="(?:"+g+"(?:d|ll|m|re|s|t|ve))?",O="(?:"+g+"(?:D|LL|M|RE|S|T|VE))?",j="(?:"+y+"|"+w+")?",D="["+h+"]?",R="(?:"+S+"(?:"+[x,k,E].join("|")+")"+D+j+")*",I=D+j+R,P="(?:"+["["+c+"]",k,E].join("|")+")"+I,M="(?:"+[x+y+"?",y,k,E,"["+s+"]"].join("|")+")",N=RegExp(g,"g"),$=RegExp(y,"g"),L=RegExp(w+"(?="+w+")|"+M+I,"g"),F=RegExp([_+"?"+v+"+"+C+"(?="+[m,_,"$"].join("|")+")",T+"+"+O+"(?="+[m,_+A,"$"].join("|")+")",_+"?"+A+"+"+C,_+"+"+O,"\\d+",P].join("|"),"g"),U=RegExp("["+S+s+l+u+h+"]"),z=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,B="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,q="object"==typeof self&&self&&self.Object===Object&&self,V=B||q||Function("return this")(),H=function(e){return function(t){return null==e?void 0:e[t]}}({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"ss"}),W=Object.prototype.toString,Y=V.Symbol,G=Y?Y.prototype:void 0,K=G?G.toString:void 0;function X(e){return null==e?"":function(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||!!e&&"object"==typeof e&&"[object Symbol]"==W.call(e)}(e))return K?K.call(e):"";var t=e+"";return"0"==t&&1/e==-i?"-0":t}(e)}var Z=(r=function(e,t,n){return e+(n?" ":"")+Q(t)},function(e){var t;return function(e,t,n,r){for(var i=-1,o=e?e.length:0;++i<o;)n=t(n,e[i],i,e);return n}(function(e,t,n){if(e=X(e),void 0===t){var r;return(r=e,z.test(r))?e.match(F)||[]:e.match(o)||[]}return e.match(t)||[]}(((t=X(t=e))&&t.replace(a,H).replace($,"")).replace(N,"")),r,"")}),Q=function(e){var t,n,r,i=(t=e=X(e),U.test(t))?function(e){return U.test(e)?e.match(L)||[]:e.split("")}(e):void 0,o=i?i[0]:e.charAt(0),a=i?(r=i.length,function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}(i,1,n=void 0===n?r:n)).join(""):e.slice(1);return o.toUpperCase()+a};e.exports=Z},63114:(e,t,n)=>{var r=n(1066);e.exports=function(e){return null==e?"":r(e)}},63132:(e,t,n)=>{var r=n(14492),i=Object.prototype,o=i.hasOwnProperty;e.exports=function(e,t,n,a){return void 0===e||r(e,i[n])&&!o.call(a,n)?t:e}},63208:(e,t,n)=>{"use strict";let r=n(32112);e.exports=(e,t,n)=>0>=r(e,t,n)}
59,63502:(e,t,n)=>{var r=n(59264),i=n(82307),o=n(82261);e.exports=function(e){return o(i(e,void 0,r),e+"")}},63664:(e,t,n)=>{var r=n(51651);e.exports=n(63502)(function(e,t){return null==e?{}:r(e,t)})},63944:(e,t,n)=>{"use strict";let r=n(32112);e.exports=(e,t,n)=>r(t,e,n)},64166:(e,t,n)=>{"use strict";n.d(t,{Uh:()=>x,Yh:()=>g,i6:()=>eu,jN:()=>m});var r=n(52921),i=n(59264),o=n(35842),a=n(64703),s=n(3907),l=n(76864),u=n(23851),c=n(76079),d=n(7037),f=n(40570);let h="__experimental_actions",p=["create","update","delete","publish"],g=(e,t)=>(e=>((e,t)=>{if(!Array.isArray(t))throw Error(`The value of <type>.${h} should be an array with any of the actions ${p.join(", ")}`);let n=r(t,p);if(n.length>0)throw Error(`Invalid action${n.length>1?"s":""} configured for schema type "${e}": ${n.join(", ")}. Valid actions are: ${p.join(", ")}`);return t})(e.name,(e=>h in e?e[h]:p)(e)))(e).includes(t),m=[{name:"sanity.assetSourceData",title:"Asset Source Data",type:"object",fields:[{name:"name",title:"Source name",description:"A canonical name for the source this asset is originating from",type:"string"},{name:"id",title:"Asset Source ID",description:"The unique ID for the asset within the originating source so you can programatically find back to it",type:"string"},{name:"url",title:"Asset information URL",description:"A URL to find more information about this asset in the originating source",type:"string"}]},{title:"Slug",name:"slug",type:"object",fields:[{name:"current",title:"Current slug",type:"string",validation:e=>e.required()},{name:"source",title:"Source field",type:"string",hidden:!0}]},{title:"Geographical Point",name:"geopoint",type:"object",fields:[{name:"lat",type:"number",title:"Latitude"},{name:"lng",type:"number",title:"Longitude"},{name:"alt",type:"number",title:"Altitude"}]},{name:"sanity.imageAsset",title:"Image",type:"document",fieldsets:[{name:"system",title:"System fields",description:"These fields are managed by the system and not editable"}],fields:[{name:"originalFilename",type:"string",title:"Original file name",readOnly:!0},{name:"label",type:"string",title:"Label"},{name:"title",type:"string",title:"Title"},{name:"description",type:"string",title:"Description"},{name:"altText",type:"string",title:"Alternative text"},{name:"sha1hash",type:"string",title:"SHA1 hash",readOnly:!0,fieldset:"system"},{name:"extension",type:"string",readOnly:!0,title:"File extension",fieldset:"system"},{name:"mimeType",type:"string",readOnly:!0,title:"Mime type",fieldset:"system"},{name:"size",type:"number",title:"File size in bytes",readOnly:!0,fieldset:"system"},{name:"assetId",type:"string",title:"Asset ID",readOnly:!0,fieldset:"system"},{name:"uploadId",type:"string",readOnly:!0,hidden:!0,fieldset:"system"},{name:"path",type:"string",title:"Path",readOnly:!0,fieldset:"system"},{name:"url",type:"string",title:"Url",readOnly:!0,fieldset:"system"},{name:"metadata",type:"sanity.imageMetadata",title:"Metadata"},{name:"source",type:"sanity.assetSourceData",title:"Source",readOnly:!0,fieldset:"system"}],preview:{select:{id:"_id",title:"originalFilename",mimeType:"mimeType",size:"size"},prepare:e=>({title:e.title||"string"==typeof e.path&&e.path.split("/").slice(-1)[0],media:{asset:{_ref:e.id}},subtitle:`${e.mimeType} (${(Number(e.size)/1024/1024).toFixed(2)} MB)`})},orderings:[{title:"File size",name:"fileSizeDesc",by:[{field:"size",direction:"desc"}]}]},{name:"sanity.fileAsset",title:"File",type:"document",fieldsets:[{name:"system",title:"System fields",description:"These fields are managed by the system and not editable"}],fields:[{name:"originalFilename",type:"string",title:"Original file name",readOnly:!0},{name:"label",type:"string",title:"Label"},{name:"title",type:"string",title:"Title"},{name:"description",type:"string",title:"Description"},{name:"altText",type:"string",title:"Alternative text"},{name:"sha1hash",type:"string",title:"SHA1 hash",readOnly:!0,fieldset:"system"},{name:"extension",type:"string",title:"File extension",readOnly:!0,fieldset:"system"},{name:"mimeType",type:"string",title:"Mime type",readOnly:!0,fieldset:"system"},{name:"size",type:"number",title:"File size in bytes",readOnly:!0,fieldset:"system"},{name:"assetId",type:"string",title:"Asset ID",readOnly:!0,fieldset:"system"},{name:"uploadId",type:"string",readOnly:!0,hidden:!0,fieldset:"system"},{name:"path",type:"string",title:"Path",readOnly:!0,fieldset:"system"},{name:"url",type:"string",title:"Url",readOnly:!0,fieldset:"system"},{name:"source",type:"sanity.assetSourceData",title:"Source",readOnly:!0,fieldset:"system"}],preview:{select:{title:"originalFilename",path:"path",mimeType:"mimeType",size:"size"},prepare:e=>({title:e.title||e.path.split("/").slice(-1)[0],subtitle:`${e.mimeType} (${(e.size/1024/1024).toFixed(2)} MB)`})},orderings:[{title:"File size",name:"fileSizeDesc",by:[{field:"size",direction:"desc"}]}]},{name:"sanity.imageCrop",title:"Image crop",type:"object",fields:[{name:"top",type:"number"},{name:"bottom",type:"number"},{name:"left",type:"number"},{name:"right",type:"number"}]},{name:"sanity.imageHotspot",title:"Image hotspot",type:"object",fields:[{name:"x",type:"number"},{name:"y",type:"number"},{name:"height",type:"number"},{name:"width",type:"number"}]},{name:"sanity.imageMetadata",title:"Image metadata",type:"object",fieldsets:[{name:"extra",title:"Extra metadata…",options:{collapsable:!0}}],fields:[{name:"location",type:"geopoint"},{name:"dimensions",title:"Dimensions",type:"sanity.imageDimensions",fieldset:"extra"},{name:"palette",type:"sanity.imagePalette",title:"Palette",fieldset:"extra"},{name:"lqip",title:"LQIP (Low-Quality Image Placeholder)",type:"string",readOnly:!0}
59,{name:"blurHash",title:"BlurHash",type:"string",readOnly:!0},{name:"hasAlpha",title:"Has alpha channel",type:"boolean",readOnly:!0},{name:"isOpaque",title:"Is opaque",type:"boolean",readOnly:!0}]},{name:"sanity.imageDimensions",type:"object",title:"Image dimensions",fields:[{name:"height",type:"number",title:"Height",readOnly:!0},{name:"width",type:"number",title:"Width",readOnly:!0},{name:"aspectRatio",type:"number",title:"Aspect ratio",readOnly:!0}]},{name:"sanity.imagePalette",title:"Image palette",type:"object",fields:[{name:"darkMuted",type:"sanity.imagePaletteSwatch",title:"Dark Muted"},{name:"lightVibrant",type:"sanity.imagePaletteSwatch",title:"Light Vibrant"},{name:"darkVibrant",type:"sanity.imagePaletteSwatch",title:"Dark Vibrant"},{name:"vibrant",type:"sanity.imagePaletteSwatch",title:"Vibrant"},{name:"dominant",type:"sanity.imagePaletteSwatch",title:"Dominant"},{name:"lightMuted",type:"sanity.imagePaletteSwatch",title:"Light Muted"},{name:"muted",type:"sanity.imagePaletteSwatch",title:"Muted"}]},{name:"sanity.imagePaletteSwatch",title:"Image palette swatch",type:"object",fields:[{name:"background",type:"string",title:"Background",readOnly:!0},{name:"foreground",type:"string",title:"Foreground",readOnly:!0},{name:"population",type:"number",title:"Population",readOnly:!0},{name:"title",type:"string",title:"String",readOnly:!0}]}],y={TYPE_INVALID:"schema-type-invalid",TYPE_IS_ESM_MODULE:"schema-type-is-esm-module",TYPE_NAME_RESERVED:"schema-type-name-reserved",TYPE_MISSING_NAME:"schema-type-missing-name-or-type",TYPE_MISSING_TYPE:"schema-type-missing-name-or-type",TYPE_TITLE_RECOMMENDED:"schema-type-title-is-recommended",TYPE_TITLE_INVALID:"schema-type-title-is-recommended",OBJECT_FIELDS_INVALID:"schema-object-fields-invalid",OBJECT_FIELD_NOT_UNIQUE:"schema-object-fields-invalid",OBJECT_FIELD_NAME_INVALID:"schema-object-fields-invalid",OBJECT_FIELD_DEFINITION_INVALID_TYPE:"schema-object-fields-invalid",ARRAY_PREDEFINED_CHOICES_INVALID:"schema-predefined-choices-invalid",ARRAY_OF_ARRAY:"schema-array-of-array",ARRAY_OF_INVALID:"schema-array-of-invalid",ARRAY_OF_NOT_UNIQUE:"schema-array-of-invalid",ARRAY_OF_TYPE_GLOBAL_TYPE_CONFLICT:"schema-array-of-type-global-type-conflict",ARRAY_OF_TYPE_BUILTIN_TYPE_CONFLICT:"schema-array-of-type-builtin-type-conflict",REFERENCE_TO_INVALID:"schema-reference-to-invalid",REFERENCE_TO_NOT_UNIQUE:"schema-reference-to-invalid",REFERENCE_INVALID_OPTIONS:"schema-reference-invalid-options",REFERENCE_INVALID_OPTIONS_LOCATION:"schema-reference-options-nesting",REFERENCE_INVALID_FILTER_PARAMS_COMBINATION:"schema-reference-filter-params-combination",SLUG_SLUGIFY_FN_RENAMED:"slug-slugifyfn-renamed",ASSET_METADATA_FIELD_INVALID:"asset-metadata-field-invalid",CROSS_DATASET_REFERENCE_INVALID:"cross-dataset-reference-invalid",GLOBAL_DOCUMENT_REFERENCE_INVALID:"global-document-reference-invalid",DEPRECATED_BLOCKEDITOR_KEY:"schema-deprecated-blockeditor-key",STANDALONE_BLOCK_TYPE:"schema-standalone-block-type"};function v(e,t,n){if(n&&!Object.keys(y).some(e=>y[e]===n))throw Error(`Used the unknown helpId "${n}", please add it to the array in createValidationResult.js`);return{severity:e,message:t,helpId:n}}let b=(e,t)=>v("error",e,t),w=(e,t)=>v("warning",e,t);function x(e){return i(e.map(e=>j(e))).filter(e=>e.problems.length>0)}function k(e,t=t=>o(t,e)){return function(n,r){let o=[...r,{kind:"type",type:n.type,name:n.name}],a=t(n)||[],s=Array.isArray(a)?a.map(t=>j(t,[...o,{kind:"property",name:e}])):[[{path:o,problems:[b(`Member declaration (${e}) is not an array`)]}]];return[{path:o,problems:n._problems||[]},...i(s)]}}let E=k("fields"),_=k("fields"),S=k("fields"),A=k("of"),T=k("to",e=>"to"in e?(e=>Array.isArray(e)?e:typeof e>"u"&&[]||[e])(e.to):[]),C=k("marks.annotations"),O=k("of");function j(e,t=[]){switch(e.type){case"object":case"document":return E(e,t);case"array":return A(e,t);case"reference":return T(e,t);case"block":return[...C(e,t),...O(e,t)];case"image":return _(e,t);case"file":return S(e,t);default:return function(e,t=[]){return[{path:[...t,{kind:"type",type:e.type,name:e.name}],problems:e._problems||[]}]}(e,t)}}function D(e,t=e=>e){let n=e.reduce((e,n)=>{let r=t(n);return e[r]||(e[r]=[]),e[r].push(n),e},{});return Object.keys(n).map(e=>n[e].length>
591?n[e]:null).filter(Boolean)}let R={name:"type",type:null},I=["any","time","date"],P=[{name:"array",jsonType:"array",type:"type"},{name:"block",jsonType:"object",type:"type"},{name:"boolean",jsonType:"boolean",type:"type"},{name:"datetime",jsonType:"string",type:"type"},{name:"date",jsonType:"string",type:"type"},{name:"document",jsonType:"object",type:"type"},{name:"email",jsonType:"string",type:"type"},{name:"file",jsonType:"object",type:"type"},{name:"geopoint",jsonType:"object",type:"type"},{name:"image",jsonType:"object",type:"type"},{name:"number",jsonType:"number",type:"type"},{name:"object",jsonType:"object",type:"type"},{name:"reference",jsonType:"object",type:"type"},{name:"crossDatasetReference",jsonType:"object",type:"type"},{name:"globalDocumentReference",jsonType:"object",type:"type"},{name:"slug",jsonType:"object",type:"type"},{name:"span",jsonType:"object",type:"type"},{name:"string",jsonType:"string",type:"type"},{name:"telephone",jsonType:"string",type:"type"},{name:"text",jsonType:"string",type:"type"},{name:"url",jsonType:"string",type:"type"}],M=P.map(e=>e.name);function N(e){return"string"===e||"number"===e||"boolean"===e}function $(e){return`"${e}"`}function L(e,t="s"){return 1===e.length?"":t}function F(e){return Array.isArray(e)?`array with ${e.length} entries`:"object"==typeof e&&null!==e?`object with keys ${s(Object.keys(e).map($))}`:$(e)}let U=e=>Array.isArray(e)?"array":typeof e,z=e=>`"${e}"`,B=["components","lists","marks","name","of","options","styles","title","type","validation"],q=["decorators","annotations"],V=["blockEditor","title","value","icon","component"],H=["blockEditor","title","value","icon","component"],W=["title","value","icon","component"],Y=["file","image","object","reference","crossDatasetReference","globalDocumentReference"],G=e=>`"${e}"`;var K=(e,t)=>({...e,_problems:[...function(e,t){let n=t.getTypeNames();if(!e)return[b("Type is missing a type.",y.TYPE_MISSING_TYPE)];if("string"!=typeof e)return[b('Type has an invalid "type"-property - should be a string.',y.TYPE_MISSING_TYPE)];if(!n.includes(e)){let t=n.map(t=>[d(e,t),t]).filter(([e])=>e<3).map(([e,t])=>t),r=t.length>0?` Did you mean ${s(t.map(G),{conjunction:"or"})}?`:"";return[b(`Unknown type: ${e}.${r}`)]}return[]}(e.type,t),...function(e,t){if(!("fields"in e))return[];let n=e;for(;n&&!n.jsonType;)n=t.getType(n.type);return n&&"object"!==n.jsonType?[b('Type has propery "fields", but is not an object/document type.')]:[]}(e,t),...function(e){let t=[];return e?.inputComponent&&t.push(w('The "inputComponent" property is deprecated. Use "components.input" instead.')),e?.preview?.component&&t.push(w('The "preview.component" property is deprecated. Use "components.preview" instead.')),e?.diffComponent&&t.push(w('The "diffComponent" property is deprecated. Use "components.diff" instead.')),e?.options?.editModal&&t.push(w('The "options.editModal" property is deprecated. Use "options.modal" instead.')),e?.options?.isHighlighted&&t.push(w('The "options.isHighlighted" property is deprecated. You can put fields behind a collapsed fieldset if you want to hide them from plain sight.')),t}(e)].filter(Boolean)});let X=/^[a-z0-9~][-_a-z0-9]+$/,Z=/^Symbol\(react\..+\)$/;function Q(e){return"function"==typeof e||"symbol"==typeof e?.$$typeof&&Z.test(String(e?.$$typeof))}function J(e){let t="components"in e&&e.components;if(!t)return[];let n=[];return t.input&&!Q(t.input)&&n.push(w(`The \`components.input\` property is set but does not appear to be a valid React component (expected a function, but saw ${f(t.input)}). If you have imported a custom input component, please verify that you have imported the correct named/default export.`)),t.field&&!Q(t.field)&&n.push(w(`The \`components.field\` property is set but does not appear to be a valid React component (expected a function, but saw ${f(t.field)}). If you have imported a custom field component, please verify that you have imported the correct named/default export.`)),t.item&&!Q(t.item)&&n.push(w(`The \`components.item\` property is set but does not appear to be a valid React component (expected a function, but saw ${f(t.item)}). If you have imported a custom item component, please verify that you have imported the correct named/default export.`)),t.preview&&!Q(t.preview)&&n.push(w(`The \`components.preview\` property is set but does not appear to be a valid React component (expected a function, but saw ${f(t.preview)}). If you have imported a custom preview component, please verify that you have imported the correct named/default export.`)),n}let ee=/^[A-Za-z]+[0-9A-Za-z_]*$/,et=/^[A-Za-z_]+[0-9A-Za-z_]*$/;function en(e,t){var n;if(!u(e))return[b(`Incorrect type for field definition - should be an object, saw ${f(e)}
59`,y.OBJECT_FIELD_DEFINITION_INVALID_TYPE)];let r=[];return r.push(..."name"in e?"string"!=typeof(n=e.name)?[b(`Field names must be strings. Saw "${f(n)}"`,y.OBJECT_FIELD_NAME_INVALID)]:n.startsWith("_")?[b(`Invalid field name "${n}". Field names cannot start with underscores "_" as it's reserved for system fields.`,y.OBJECT_FIELD_NAME_INVALID)]:ee.test(n)?et.test(n)?[]:[w("Thats an interesting field name for sure! But it is... how to put it... a bit... unconventional? It may be wise to keep special characters out of field names for easier access later on."),y.OBJECT_FIELD_NAME_INVALID]:[b(`Invalid field name: "${n}". Fields can only contain characters from A-Z, numbers and underscores and should not start with a number (must pass the regular expression ${String(ee)}).`,y.OBJECT_FIELD_NAME_INVALID)]:[b("Missing field name",y.OBJECT_FIELD_NAME_INVALID)]),r.push(...J(e)),r}function er(e,t={allowEmpty:!1}){let n=[];if(!Array.isArray(e))return[b(`The "fields" property must be an array of fields. Instead saw "${typeof e}"`,y.OBJECT_FIELDS_INVALID)];(function(e){let t={};return e.forEach(e=>{t[e.name]||(t[e.name]=[]),t[e.name].push(e)}),Object.keys(t).map(e=>t[e].length>1?t[e]:null).filter(Boolean)})(e.filter(e=>"string"==typeof e.name)).forEach(e=>{n.push(b(`Found ${e.length} fields with name "${e[0].name}" in object`,y.OBJECT_FIELD_NOT_UNIQUE))}),0!==e.length||t.allowEmpty||n.push(b("Object should have at least one field",y.OBJECT_FIELDS_INVALID));let r=e.filter(e=>"block"===e.type).map(e=>`"${e.name}"`);if(r.length>0){let e=r.join(", ");n.push(b(`Invalid standalone block field(s) ${e}. Block content must be defined as an array of blocks`,y.STANDALONE_BLOCK_TYPE))}return n}var ei=(e,t)=>{let n=er(e.fields),r=e.preview;if(r){let t=function(e){return u(e)?"u">typeof e.prepare&&"function"!=typeof e.prepare?[b(`The "preview.prepare" property must be a function, instead saw "${typeof e.prepare}"`)]:e.select?u(e.select)?Object.keys(e.select).reduce((t,n)=>"string"==typeof e.select[n]?t:t.concat(b(`The key "${n}" of "preview.select" must be a string, instead saw "${typeof e.select[n]}"`)),[]):[b(`The "preview.select" property must be an object, instead saw "${typeof e.prepare}"`)]:[]:[b(`The "preview" property must be an object, instead saw "${typeof e}"`)]}(e.preview);n=n.concat(t),r=t.some(e=>"error"===e.severity)?{}:r}return"document"!==e.type&&"object"!==e.type&&"u">typeof e.initialValue&&n.push(b('The "initialValue" property is currently only supported for document & object types.')),{...e,preview:r,fields:(Array.isArray(e.fields)?e.fields:[]).map((e,n)=>{let{name:r,...i}=e,{_problems:o,...a}=t.visit(i,n);return{name:r,...a,_problems:en(e).concat(o||[])}}),_problems:n}};let eo=["dimensions","hasAlpha","isOpaque"];var ea=(e,t)=>{let n=!!e.name;if(!n&&1===Object.keys(e).length)return{...e,_problems:[b("Invalid/undefined type declaration, check declaration or the import/export of the schema type.",y.TYPE_INVALID)]};let r=[];return!function(e){return!e.name&&e.default&&(e.default.name||e.default.title)}(e)?n?t.isReserved(e.name)&&r.push(b(`Invalid type name: "${e.name}" is a reserved name.`,y.TYPE_NAME_RESERVED)):r.push(b("Missing type name",y.TYPE_MISSING_NAME)):r.push(b("Type appears to be an ES6 module imported through CommonJS require - use an import statement or access the `.default` property",y.TYPE_IS_ESM_MODULE)),t.isDuplicate(e.name)&&r.push(b(`Invalid type name: A type with name "${e.name}" is already defined in the schema.`)),r.push(...J(e)),"title"in e&&"string"!=typeof e.title&&r.push(w("Type title is not a string.",y.TYPE_TITLE_INVALID)),{...e,_problems:r}};let es={array:(e,t)=>{let n=Array.isArray(e.of);if(n){let n=e.of.reduce((e,n,r)=>{if("string"==typeof n.name&&n.name!==n.type&&M.includes(n.name))return e.concat(b(`Found array member declaration with the same type name as a built-in type ("${n.name}"). Array members can not be given the same name as a built-in type.`,y.ARRAY_OF_TYPE_BUILTIN_TYPE_CONFLICT));if("object"===n.type&&n.name&&t.getType(n.name))return e.concat(w(`Found array member declaration with the same name as the global schema type "${n.name}". It's recommended to use a unique name to avoid possibly incompatible data types that shares the same name.`,y.ARRAY_OF_TYPE_GLOBAL_TYPE_CONFLICT));if("array"===n.type)return e.concat(b('Found array member declaration of type "array" - multidimensional arrays are not currently supported by Sanity',y.ARRAY_OF_ARRAY));if(n)return e;let i=`Found ${null===n?"null":typeof n}, expected member declaration`;return e.concat(b(`Found invalid type member declaration in array at index ${r}: ${i}`,y.ARRAY_OF_INVALID))},[]);if(n.length>0)return{...e,of:[],_problems:n}}let r=i([n?D(e.of,e=>`${e.name};${e.type}`).map(e=>b(`Found ${e.length} members with same type, but not unique names "${e[0].type}" in array. This makes it impossible to tell their values apart and you should consider naming them`,y.ARRAY_OF_NOT_UNIQUE)):b('The array type is missing or having an invali
59d value for the required "of" property',y.ARRAY_OF_INVALID)]),o=n?e.of:[],a=o.some(e=>"object"===e.type&&typeof e.name>"u");o.some(e=>"block"===e.type)&&a&&r.push(b("The array type's 'of' property can't have an object type without a 'name' property as member, when the 'block' type is also a member of that array.",y.ARRAY_OF_INVALID));let[u,c]=l(o,e=>N(e.type)||N(t.getType(e.type)?.jsonType)),d=u.length>0&&c.length>0;if(d){let e=u.map(e=>e.type),t=c.map(e=>e.type);r.push(b(`The array type's 'of' property can't have both object types and primitive types (found primitive type ${L(e)} ${s(e.map($))} and object type${L(t)} ${s(t.map($))})`,y.ARRAY_OF_INVALID))}let f=e?.options?.list;return!d&&Array.isArray(f)&&(u.length>0?f.forEach(e=>{let n=e?.value??e;if(!u.some(e=>typeof n===t.getType(e.type).jsonType)){let e=s(u.map(e=>e.name||e.type),{conjunction:"or"});r.push(b(`An invalid entry found in options.list: ${F(n)}. Must be either a value of type ${e}, or an object with {title: string, value: ${e}}`,y.ARRAY_PREDEFINED_CHOICES_INVALID))}}):f.forEach(e=>{let t=e._type||"object";c.some(e=>(function(e,t){return("string"==typeof t.name?t.name:t.type)===e})(t,e))||r.push(b(`An invalid entry found in options.list: ${F(e)}. Must be an object with "_type" set to ${s(c.map(e=>e.name||e.type).map(e=>"object"===e?"undefined":$(e)),{conjunction:"or"})}`,y.ARRAY_PREDEFINED_CHOICES_INVALID))})),e?.options?.list&&e?.options?.layout==="tags"&&r.push(w("Found array member declaration with both tags layout and a list of predefined values. If you want to display a list of predefined values, remove the tags layout from `options`.")),{...e,of:o.map(t.visit),_problems:r}},object:ei,slug:(e,t)=>{let n=[];return e.options&&e.options.slugifyFn&&(n.push(w('Heads up! The "slugifyFn" option has been renamed to "slugify".',y.SLUG_SLUGIFY_FN_RENAMED)),e.options.slugify=e.options.slugifyFn),{...e,_problems:n}},file:(e,t)=>{let n=[],r=e.fields;r&&n.push(...er(r,{allowEmpty:!0}));let i=Array.isArray(r)?r?.filter(e=>"asset"===e.name):[];return e.options&&"u">typeof e.options.metadata&&!Array.isArray(e.options.metadata)?n.push(b("Invalid type for file `metadata` field - must be an array of strings",y.ASSET_METADATA_FIELD_INVALID)):i.length>0&&n.push(b("The name `asset` is not a valid field name for type `file`.")),{...e,fields:(Array.isArray(r)?r:[]).map((e,n)=>{let{name:r,...i}=e,{_problems:o,...a}=t.visit(i,n);return{name:r,...a,_problems:en(e).concat(o||[])}}),_problems:n}},image:(e,t)=>{let n=[],r=e.fields;r&&n.push(...er(r,{allowEmpty:!0}));let i=e.options,o=i?.metadata,a=Array.isArray(o)?o.filter(e=>eo.includes(e)):[],s=["asset","hotspot","crop"],l=Array.isArray(r)?r?.filter(e=>s.includes(e.name)):[];return"u">typeof o&&!Array.isArray(o)?n.push(b("Invalid type for image `metadata` field - must be an array of strings",y.ASSET_METADATA_FIELD_INVALID)):a.length>0?(n.push(w(`Image \`metadata\` field contains superfluous properties (they are always included): ${a.join(", ")}`)),i={...i,metadata:o.filter(e=>!eo.includes(e))}):l.length>0&&n.push(b(`The names \`${s.join("`, `")}\` are invalid field names for type \`image\`.`)),{...e,options:i,fields:(Array.isArray(r)?r:[]).map((e,n)=>{let{name:r,...i}=e,{_problems:o,...a}=t.visit(i,n);return{name:r,...a,_problems:en(e).concat(o||[])}}),_problems:n}},block:function(e,t){var n,r,i,o,a,l,d,f,h;let p=[],g=e.styles,m=e.lists,v=e.marks,x=e.of,k=Object.keys(e).filter(e=>!B.includes(e)&&!e.startsWith("_"));return k.length>0&&p.push(b(`Found unknown properties for block declaration: ${s(k.map(z))}`)),v&&(v=function(e,t,n){var r,i,o,a,l,c;let d=e.decorators,f=e.annotations;if(!u(e))return n.push(b(`"marks" declaration should be an object, got ${U(e)}`)),n;let h=Object.keys(e).filter(e=>!q.includes(e)&&!e.startsWith("_"));return h.length>0&&n.push(b(`Found unknown properties for block declaration: ${s(h.map(z))}`)),d&&!Array.isArray(d)?n.push(b(`"marks.decorators" declaration should be an array, got ${U(d)}`)):d&&(d.filter(e=>!!e.blockEditor).forEach(e=>{e.icon=e.blockEditor.icon,e.component=e.blockEditor.render}),r=d,i=0,o=n,r.forEach((e,t)=>{if(!u(e))return void o.push(b(`Annotation must be an object, got ${U(e)}`));let n=e.value||`#${t}`,r=Object.keys(e).filter(e=>!H.includes(e)&&!e.startsWith("_"));r.length>0&&o.push(b(`Found unknown properties for decorator ${n}: ${s(r.map(z))}`)),e.value?"string"!=typeof e.value?o.push(b(`Decorator #${t}
59 has an invalid "value" property, expected string, got ${U(e.value)}`)):e.title||o.push(w(`Decorator ${n} is missing recommended "title" property`)):o.push(b(`Decorator #${t} is missing required "value" property`)),"u">typeof e.blockEditor&&(o.push(w(`Decorator "${n}" has deprecated key "blockEditor", please refer to the documentation on how to configure the block type for version 3.`,y.DEPRECATED_BLOCKEDITOR_KEY)),e.icon=e.icon||e.blockEditor.icon,e.component=e.component||e.blockEditor.render)}),d=r),f&&!Array.isArray(f)?n.push(b(`"marks.annotations" declaration should be an array, got ${U(f)}`)):f&&(a=f,l=t,c=n,f=a.map(e=>{if(!u(e))return{...e,_problems:[b(`Annotation must be an object, got ${U(e)}`)]};let{_problems:t}=l.visit(e,l),n=e.type&&l.getType(e.type);return n&&!function e(t,n,r){if("jsonType"in t)return t.jsonType===n;let i=r.getType(t.type);if(!i)throw Error(`Could not resolve jsonType of ${t.name}. No parent type found`);return e(i,n,r)}(n,"object",l)&&t.push(b(`Annotation cannot have type "${e.type}" - annotation types must inherit from object`)),"u">typeof e.blockEditor&&(c.push(w('Annotation has deprecated key "blockEditor", please refer to the documentation on how to configure the block type for version 3.',y.DEPRECATED_BLOCKEDITOR_KEY)),e.icon=e.icon||e.blockEditor.icon,e.blockEditor?.render&&!e.components?.annotation&&(e.components=e.components||{},e.components.annotation=e.components.annotation||e.blockEditor.render)),{...e,_problems:t}})),{...e,decorators:d,annotations:f}}(e.marks,t,p)),g&&(n=g,r=0,i=p,g=Array.isArray(n)?(n.forEach((e,t)=>{if(!u(e))return void i.push(b(`Style must be an object, got ${U(e)}`));let n=e.value||`#${t}`,r=Object.keys(e).filter(e=>!V.includes(e)&&!e.startsWith("_"));r.length>0&&i.push(b(`Found unknown properties for style ${n}: ${s(r.map(z))}`)),e.value?"string"!=typeof e.value?i.push(b(`Style #${t} has an invalid "value" property, expected string, got ${U(e.value)}`)):e.title||i.push(w(`Style ${n} is missing recommended "title" property`)):i.push(b(`Style #${t} is missing required "value" property`)),"u">typeof e.blockEditor&&(i.push(w('Style has deprecated key "blockEditor", please refer to the documentation on how to configure the block type for version 3.',y.DEPRECATED_BLOCKEDITOR_KEY)),e.component=e.component||e.blockEditor.render)}),n):(i.push(b(`"styles" declaration should be an array, got ${U(n)}`)),i)),m&&(o=m,a=0,l=p,m=Array.isArray(o)?(o.forEach((e,t)=>{if(!u(e))return void l.push(b(`List must be an object, got ${U(e)}`));let n=e.value||`#${t}`,r=Object.keys(e).filter(e=>!W.includes(e)&&!e.startsWith("_"));r.length>0&&l.push(b(`Found unknown properties for list ${n}: ${s(r.map(z))}`)),e.value?"string"!=typeof e.value?l.push(b(`List type #${t} has an invalid "value" property, expected string, got ${U(e.value)}`)):e.title||l.push(w(`List type ${n} is missing recommended "title" property`)):l.push(b(`List #${t} is missing required "value" property`))}),o):(l.push(b(`"lists" declaration should be an array, got ${U(o)}`)),l)),x&&(d=x,f=t,h=p,x=Array.isArray(d)?d.map(e=>{let{_problems:t}=f.visit(e,f);if("object"===e.type&&e.name&&f.getType(e.name))return{...e,_problems:[w(`Found array member declaration with the same name as the global schema type "${e.name}". It's recommended to use a unique name to avoid possibly incompatible data types that shares the same name.`,y.ARRAY_OF_TYPE_GLOBAL_TYPE_CONFLICT)]};let n=e;for(;n&&!n.jsonType;)n=f.getType(n.type);let r=M.filter(e=>!Y.includes(e));return n&&"object"!==n.jsonType||r.some(t=>t===e.type)?{...e,_problems:[b(`Block member types must be a supported object-like type. The following built-in types are supported: '${Y.join("', '")}'. You can also use shorthands for previously defined object types like {type: 'myObjectType'}`,y.ARRAY_OF_TYPE_BUILTIN_TYPE_CONFLICT)]}:{...e,_problems:t}}):void h.push(b(`"of" declaration should be an array, got ${U(d)}`))),{...c(e,k),marks:v,styles:g,name:e.name||e.type,of:x,_problems:p}},document:(e,t)=>{let n=ei(e,t),{initialValue:r,initialValues:i}=n;return"u">typeof r&&!u(r)&&"function"!=typeof r&&n._problems.push(b('The "initialValue" property must be either a plain object or a function')),"u">typeof i&&n._problems.push(b('Found property "initialValues" - did you mean "initialValue"?')),n},reference:(e,t)=>{let n=Array.isArray(e.to)||u(e.to),r=function(e){return Array.isArray(e.to)?e.to:e.to?[e.to]:e.to}(e),o=i([n?D(r,e=>`${e.name};${e.type}`).map(e=>b(`Found ${e.length} members with same type, but not unique names "${e[0].type}" in reference. This makes it impossible to tell their values apart and you should consider naming them`,y.REFERENCE_TO_INVALID)):b('The reference type is missing or having an invali
59d value for the required "to" property. It should be an array of accepted types.',y.REFERENCE_TO_INVALID)]);return n&&0===r.length&&o.push(b('The reference type should define at least one accepted type. Please check the "to" property.',y.REFERENCE_TO_INVALID)),o.push(...function(e){let{options:t}=e,n=[];return n.push(...["filter","filterParams"].filter(t=>t in e).map(e=>b(`\`${e}\` is not allowed on a reference type definition - did you mean \`options.${e}\`?`,y.REFERENCE_INVALID_OPTIONS_LOCATION))),t?u(t)?"function"==typeof t.filter&&"u">typeof t.filterParams?n.concat(b("`filterParams` cannot be used if `filter` is a function. Either statically define `filter` as a string, or return `params` from the `filter`-function.",y.REFERENCE_INVALID_FILTER_PARAMS_COMBINATION)):"function"!=typeof t.filter&&(t.filter||t.filterParams)?"string"!=typeof t.filter?n.concat(b(`If set, \`filter\` must be a string. Got ${typeof t.filter}`)):"u">typeof t.filterParams&&!u(t.filterParams)?n.concat(b("If set, `filterParams` must be an object.")):t.filterParams?n.concat(Object.keys(t.filterParams).filter(e=>e.startsWith("__")||e.startsWith("$")).map(e=>b(`Filter parameter cannot be prefixed with "$" or "__". Got ${e}".`))):n:n:n.concat(b("The reference type expects `options` to be an object",y.REFERENCE_INVALID_OPTIONS)):n}(e)),{...e,to:(n?r:[]).map(t.visit),_problems:o}},crossDatasetReference:(e,t)=>{let n=Array.isArray(e.to)||u(e.to),r=function(e){return Array.isArray(e.to)?e.to:e.to?[e.to]:e.to}(e),o=i([n?D(r,e=>`${e.name};${e.type}`).map(e=>b(`Found ${e.length} members with same type, but not unique names "${e[0].type}" in reference. This makes it impossible to tell their values apart and you should consider naming them`,y.CROSS_DATASET_REFERENCE_INVALID)):b('The cross dataset reference type is missing or having an invalid value for the required "to" property. It should be an array of accepted types.',y.CROSS_DATASET_REFERENCE_INVALID)]);if(n&&0===r.length&&o.push(b('The cross dataset reference type should define at least one referenced type. Please check the "to" property.',y.CROSS_DATASET_REFERENCE_INVALID)),r.forEach((e,t)=>{e.type||o.push(b(`The referenced type at index ${t} must be named. Specify the name of the type you want to create references to.`,y.CROSS_DATASET_REFERENCE_INVALID)),u(e.preview)||o.push(b(`Missing required preview config for the referenced type "${e.type||"<unknown type>"}"`,y.CROSS_DATASET_REFERENCE_INVALID))}),"string"==typeof e.dataset){let t=function(e){return e.length>=2&&e.toLowerCase()===e&&X.test(e)||`The provided dataset "${e}" doesn't look like a valid dataset. Dataset names must be more than 2 characters, can only contain lowercase characters, numbers, underscores and dashes and can not start with a dash or an underscore`}(e.dataset);!0!==t&&o.push(b(t,y.CROSS_DATASET_REFERENCE_INVALID))}else o.push(b("A cross dataset reference must specify a `dataset`",y.CROSS_DATASET_REFERENCE_INVALID));return e.studioUrl&&"function"!=typeof e.studioUrl&&o.push(b('The "studioUrl" property on a cross dataset reference must be a function taking "{id, type}" as argument and returning a studio url.',y.CROSS_DATASET_REFERENCE_INVALID)),o.push(...function(e){let{options:t}=e,n=[];return n.push(...["filter","filterParams"].filter(t=>t in e).map(e=>b(`\`${e}\` is not allowed on a reference type definition - did you mean \`options.${e}\`?`,y.REFERENCE_INVALID_OPTIONS_LOCATION))),t?u(t)?"function"==typeof t.filter&&"u">typeof t.filterParams?n.concat(b("`filterParams` cannot be used if `filter` is a function. Either statically define `filter` as a string, or return `params` from the `filter`-function.",y.REFERENCE_INVALID_FILTER_PARAMS_COMBINATION)):"function"!=typeof t.filter&&(t.filter||t.filterParams)?"string"!=typeof t.filter?n.concat(b(`If set, \`filter\` must be a string. Got ${typeof t.filter}`)):"u">typeof t.filterParams&&!u(t.filterParams)?n.concat(b("If set, `filterParams` must be an object.")):t.filterParams?n.concat(Object.keys(t.filterParams).filter(e=>e.startsWith("__")||e.startsWith("$")).map(e=>b(`Filter parameter cannot be prefixed with "$" or "__". Got ${e}".`))):n:n:n.concat(b("The reference type expects `options` to be an object",y.REFERENCE_INVALID_OPTIONS)):n}(e)),{...e,_problems:o}},globalDocumentReference:(e,t)=>{let n=Array.isArray(e.to)||u(e.to),r=function(e){return Array.isArray(e.to)?e.to:e.to?[e.to]:e.to}(e),o=i([n?D(r,e=>`${e.name};${e.type}`).map(e=>b(`Found ${e.length} members with same type, but not unique names "${e[0].type}" in reference. This makes it impossible to tell their values apart and you should consider naming them`,y.GLOBAL_DOCUMENT_REFERENCE_INVALID)):b('The global document reference type is missing or having an invali
59d value for the required "to" property. It should be an array of accepted types.',y.GLOBAL_DOCUMENT_REFERENCE_INVALID)]);if(n&&0===r.length&&o.push(b('The global document reference type should define at least one referenced type. Please check the "to" property.',y.GLOBAL_DOCUMENT_REFERENCE_INVALID)),r.forEach((e,t)=>{e.type||o.push(b(`The referenced type at index ${t} must be named. Specify the name of the type you want to create references to.`,y.GLOBAL_DOCUMENT_REFERENCE_INVALID)),u(e.preview)||o.push(b(`Missing required preview config for the referenced type "${e.type||"<unknown type>"}"`,y.GLOBAL_DOCUMENT_REFERENCE_INVALID))}),"string"==typeof e.resourceType){let t=function(e){return e?"media-library"==e||"dataset"==e||'The resource type must be either "media-library" or "dataset"':"The resource type must be a non-empty string"}(e.resourceType);!0!==t&&o.push(b(t,y.GLOBAL_DOCUMENT_REFERENCE_INVALID))}else o.push(b("A global document reference must specify a `resourceType`",y.GLOBAL_DOCUMENT_REFERENCE_INVALID));if("string"==typeof e.resourceId){let t=function(e,t){return t?"dataset"===e?2===t.split(".").length||'The resource ID for a dataset reference must be on the form "<projectId>.<datasetName>"':"media-library"===e||`Cannot validate resource ID for resource type: ${e}`:"The resource ID must be a non-empty string"}(e.resourceType,e.resourceId);!0!==t&&o.push(b(t,y.GLOBAL_DOCUMENT_REFERENCE_INVALID))}else o.push(b("A global document reference must specify a `resourceId`",y.GLOBAL_DOCUMENT_REFERENCE_INVALID));return e.studioUrl&&"function"!=typeof e.studioUrl&&"string"!=typeof e.studioUrl&&o.push(b('The "studioUrl" property on a global document reference must either be a function taking "{id, type}" as argument and returning a studio url, or a string being the base url pointing to a studio.',y.GLOBAL_DOCUMENT_REFERENCE_INVALID)),o.push(...function(e){let{options:t}=e,n=[];return n.push(...["filter","filterParams"].filter(t=>t in e).map(e=>b(`\`${e}\` is not allowed on a reference type definition - did you mean \`options.${e}\`?`,y.REFERENCE_INVALID_OPTIONS_LOCATION))),t?u(t)?"function"==typeof t.filter&&"u">typeof t.filterParams?n.concat(b("`filterParams` cannot be used if `filter` is a function. Either statically define `filter` as a string, or return `params` from the `filter`-function.",y.REFERENCE_INVALID_FILTER_PARAMS_COMBINATION)):"function"!=typeof t.filter&&(t.filter||t.filterParams)?"string"!=typeof t.filter?n.concat(b(`If set, \`filter\` must be a string. Got ${typeof t.filter}`)):"u">typeof t.filterParams&&!u(t.filterParams)?n.concat(b("If set, `filterParams` must be an object.")):t.filterParams?n.concat(Object.keys(t.filterParams).filter(e=>e.startsWith("__")||e.startsWith("$")).map(e=>b(`Filter parameter cannot be prefixed with "$" or "__". Got ${e}".`))):n:n:n.concat(b("The reference type expects `options` to be an object",y.REFERENCE_INVALID_OPTIONS)):n}(e)),{...e,_problems:o}}};function el(...e){return(t,n)=>e.reduce((e,t)=>{let r=t(e,n);return{...r,_problems:e._problems.concat(r._problems)}},{_problems:[],...t})}function eu(e,{transformTypeVisitors:t=e=>e}={}){return function(e=[],t=[],n=e=>e){let r=Object.create(null),o=Object.create(null),s=t.map(e=>e.name),l=I.concat(s),u=e.map(e=>e&&e.name).filter(Boolean);function c(e){return"type"===e?R:r[e]||o[e]||null}t.forEach(e=>{r[e.name]=e}),e.forEach((e,t)=>{o[e&&e.name||`__unnamed_${t}`]={}});let d=a(i(D(u)));function f(e){return d.includes(e)}function h(){return u.concat(s)}function p(e){return"type"===e||l.includes(e)}let g=e=>(t,r)=>n(t,{visit:g(!1),isRoot:e,getType:c,getTypeNames:h,isReserved:p,isDuplicate:f,index:r});return t.forEach(e=>{Object.assign(r[e.name],g(e))}),e.forEach((e,t)=>{Object.assign(o[e&&e.name||`__unnamed_${t}`],g(!0)(e,t))}),{get(e){let t=o[e]||r[e];if(t)return t;throw Error(`No such type: ${e}`)},has:e=>e in o||e in r,getTypeNames:()=>Object.keys(o),getTypes(){return this.getTypeNames().map(this.get)},toJSON(){return this.getTypes()}}}(e,P,(e,n)=>{let r=e&&e.type&&t(es)[e.type]||(e=>({name:`<unnamed_type_@_index_${n.index}>`,...e,_problems:[]}));return n.isRoot?el(ea,K,r)(e,n):el(K,r)(e,n)})}},64241:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(18659),i=n(47528),o=n(71260);function a(e,t){(0,o.A)(2,arguments);var n=(0,i.A)(e),a=(0,r.A)(t);return isNaN(a)?new Date(NaN):(a&&n.setDate(n.getDate()+a),n)}},64263:e=>{"use strict";e.exports=function(e,t){return t in e?e[t]:t}},64435:(e,t,n)=>{"use strict";n.d(t,{_3:()=>I,qg:()=>ek});var r=n(54912);class i{pattern;
59patternRe;constructor(e){this.pattern=e,this.patternRe=function(e){let t=[];for(let n of e.split("."))"*"===n?t.push("[^.]+"):"**"===n?t.push(".*"):t.push(n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"));return RegExp(`^${t.join(".")}$`)}(e)}matches(e){return this.patternRe.test(e)}toJSON(){return this.pattern}}class o{type="stream";generator;ticker;isDone;data;constructor(e){this.generator=e,this.ticker=null,this.isDone=!1,this.data=[]}isArray(){return!0}async get(){let e=[];for await(let t of this)e.push(await t.get());return e}async *[Symbol.asyncIterator](){let e=0;for(;;){for(;e<this.data.length;e++)yield this.data[e];if(this.isDone)return;await this._nextTick()}}_nextTick(){let e;if(this.ticker)return this.ticker;let t=()=>{this.ticker=new Promise(t=>{e=t})},n=()=>{e(),t()},r=async()=>{for await(let e of this.generator())this.data.push(e),n();this.isDone=!0,n()};return t(),r(),this.ticker}}let a=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|([-+]\d{2}:\d{2}))$/;function s(e,t){let n=e.toString();for(;n.length<t;)n=`0${n}`;return n}class l{data;type;constructor(e,t){this.data=e,this.type=t}isArray(){return"array"===this.type}async get(){return this.data}[Symbol.asyncIterator](){if(Array.isArray(this.data))return function*(e){for(let t of e)yield m(t)}(this.data);throw Error(`Cannot iterate over: ${this.type}`)}}let u=new l(null,"null"),c=new l(!0,"boolean"),d=new l(!1,"boolean");class f{date;constructor(e){this.date=e}static parseToValue(e){let t=a.test(e)?new Date(e):null;return t?new l(new f(t),"datetime"):u}equals(e){return this.date.getTime()==e.date.getTime()}add(e){let t=new Date(this.date.getTime());return t.setTime(t.getTime()+1e3*e),new f(t)}difference(e){return(this.date.getTime()-e.date.getTime())/1e3}compareTo(e){return this.date.getTime()-e.date.getTime()}toString(){return function(e){let t=s(e.getUTCFullYear(),4),n=s(e.getUTCMonth()+1,2),r=s(e.getUTCDate(),2),i=s(e.getUTCHours(),2),o=s(e.getUTCMinutes(),2),a=s(e.getUTCSeconds(),2),l="",u=e.getMilliseconds();return 0!=u&&(l=`.${s(u,3)}`),`${t}-${n}-${r}T${i}:${o}:${a}${l}Z`}(this.date)}toJSON(){return this.toString()}}function h(e){return Number.isFinite(e)?new l(e,"number"):u}function p(e){return new l(e,"string")}function g(e){return new l(e,"datetime")}function m(e){return e&&"function"==typeof e.next?new o(async function*(){for await(let t of e)yield m(t)}):null==e?u:new l(e,y(e))}function y(e){return null===e||typeof e>"u"?"null":Array.isArray(e)?"array":e instanceof i?"path":e instanceof f?"datetime":typeof e}function v(e,t){return"string"===e.type&&"string"===t.type||"boolean"===e.type&&"boolean"===t.type||"null"===e.type&&"null"===t.type||"number"===e.type&&"number"===t.type?e.data===t.data:"datetime"===e.type&&"datetime"===t.type&&e.data.equals(t.data)}let b=/([^!@#$%^&*(),\\/?";:{}|[\]+<>\s-])+/g,w=/([^!@#$%^&(),\\/?";:{}|[\]+<>\s-])+/g,x=/(\b\.+|\.+\b)/g;function k(e){return e.replace(x,"").match(b)||[]}function E(e){return(e.replace(x,"").match(w)||[]).map(e=>RegExp(`^${e.slice(0,1024).replace(/\*/g,".*")}$`,"i"))}async function _(e,t){if("string"===e.type)return t(e.data),!0;if(e.isArray()){let n=!0;for await(let r of e)"string"===r.type?t(r.data):n=!1;return n}return!1}let S={datetime:1,number:2,string:3,boolean:4};function A(e,t){let n=y(e);if(n!==y(t))return null;switch(n){case"number":case"boolean":return e-t;case"string":return e<t?-1:+(e>t);case"datetime":return e.compareTo(t);default:return null}}let T={"==":function(e,t){return v(e,t)?c:d},"!=":function(e,t){return v(e,t)?d:c},">":function(e,t){if("stream"===e.type||"stream"===t.type)return u;let n=A(e.data,t.data);return null===n?u:n>0?c:d},">=":function(e,t){if("stream"===e.type||"stream"===t.type)return u;let n=A(e.data,t.data);return null===n?u:n>=0?c:d},"<":function(e,t){if("stream"===e.type||"stream"===t.type)return u;let n=A(e.data,t.data);return null===n?u:n<0?c:d},"<=":function(e,t){if("stream"===e.type||"stream"===t.type)return u;let n=A(e.data,t.data);return null===n?u:n<=0?c:d},in:async function(e,t){if("path"===t.type)return"string"!==e.type?u:t.data.matches(e.data)?c:d;if(t.isArray()){for await(let n of t)if(v(e,n))return c;return d}return u},match:async function(e,t){var n,r;let i=[],o=[];return await _(e,e=>{i=i.concat(k(e))}),await _(t,e=>{o=o.concat(E(e).map(e=>t=>t.some(t=>e.test(t))))})&&(n=i,r=o,0!==n.length&&0!==r.length&&r.every(e=>e(n)))?c:d},"+":function(e,t){return"datetime"===e.type&&"number"===t.type?g(e.data.add(t.data)):"number"===e.type&&"number"===t.type?h(e.data+t.data):"string"===e.type&&"string"===t.type?p(e.data+t.data):"object"===e.type&&"object"===t.type?m({...e.data,...t.data}):"array"===e.type&&"array"===t.type?m(e.data.concat(t.data)):e.isArray()&&t.isArray()?new o(async function*(){for await(let t of e)yield t;for await(let e of t)yield e}):u},"-":function(e,t){return"datetime"===e.type&&"number"===t.type?g(e.data.add(-t.data)):"datetime"===e.type&&"datetime"===t.type?h(e.data.difference(t.data)):"number"===e.type&&"number"===t.type?h(e.data-t.data):u},"*":C((e,t)=>e*t),"/":C((e,t)=>e/t),"%":C((e,t)=>e%t),"**":C((e,t)=>Math.pow(e,t))};function C(e){return function(t,n){return"number"===t.type&&"number"===n.type?h(e(t.data,n.data)):u}}let O=class e{params;source;value;parent;context;isHidden=!1;constructor(e,t,n,r,i){this.params=e,this.source=t,this.value=n,this.context=r,this.parent=i}createNested(t){return this.isHidden?new e(this.params,this.source,t,this.context,this.parent):new e(this.params,this.source,t,this.context,this)}createHidden(e){let t=this.createNested(e);return t.isHidden=!0,t}};
59function j(e,t,n=j){return(0,R[e.type])(e,t,n)}function D(e,t){return"then"in e?e.then(t):t(e)}let R={This:(e,t)=>t.value,Selector(){throw Error("Selectors can not be evaluated")},Everything:(e,t)=>t.source,Parameter:({name:e},t)=>m(t.params[e]),Context({key:e},t){if("before"===e||"after"===e)return t.context[e]||u;throw Error(`unknown context key: ${e}`)},Parent({n:e},t){let n=t;for(let t=0;t<e;t++){if(!n.parent)return u;n=n.parent}return n.value},OpCall({op:e,left:t,right:n},r,i){let o=T[e];if(!o)throw Error(`Unknown operator: ${e}`);let a=i(t,r),s=i(n,r);return"then"in a||"then"in s?(async()=>o(await a,await s))():o(a,s)},async Select({alternatives:e,fallback:t},n,r){for(let t of e){let e=await r(t.condition,n);if("boolean"===e.type&&!0===e.data)return r(t.value,n)}return t?r(t,n):u},async InRange({base:e,left:t,right:n,isInclusive:r},i,o){let a=await o(e,i),s=await o(t,i),l=await o(n,i),f=A(await a.get(),await s.get());if(null===f)return u;let h=A(await a.get(),await l.get());return null===h?u:r?f>=0&&h<=0?c:d:f>=0&&h<0?c:d},async Filter({base:e,expr:t},n,r){let i=await r(e,n);return i.isArray()?new o(async function*(){for await(let e of i){let i=n.createNested(e),o=await r(t,i);"boolean"===o.type&&!0===o.data&&(yield e)}}):u},async Projection({base:e,expr:t},n,r){let i=await r(e,n);return"object"!==i.type?u:r(t,n.createNested(i))},FuncCall:({func:e,args:t},n,r)=>e(t,n,r),PipeFuncCall:async({func:e,base:t,args:n},r,i)=>e(await i(t,r),n,r,i),async AccessAttribute({base:e,name:t},n,r){let i=n.value;return e&&(i=await r(e,n)),"object"===i.type&&i.data.hasOwnProperty(t)?m(i.data[t]):u},async AccessElement({base:e,index:t},n,r){let i=await r(e,n);if(!i.isArray())return u;let o=await i.get(),a=t<0?t+o.length:t;return m(o[a])},async Slice({base:e,left:t,right:n,isInclusive:r},i,o){let a=await o(e,i);if(!a.isArray())return u;let s=await a.get(),l=t,c=n;return l<0&&(l=s.length+l),c<0&&(c=s.length+c),r&&c++,l<0&&(l=0),c<0&&(c=0),m(s.slice(l,c))}
59,async Deref({base:e},t,n){let r=await n(e,t);if(!t.source.isArray()||"object"!==r.type)return u;let i=r.data._ref;if("string"!=typeof i)return u;if(t.context.dereference)return m(await t.context.dereference({_ref:i}));for await(let e of t.source)if("object"===e.type&&i===e.data._id)return e;return u},Value:({value:e})=>m(e),Group:({base:e},t,n)=>n(e,t),async Object({attributes:e},t,n){let r={};for(let i of e){let e=i.type;switch(i.type){case"ObjectAttributeValue":{let e=await n(i.value,t);r[i.name]=await e.get();break}case"ObjectConditionalSplat":{let e=await n(i.condition,t);if("boolean"!==e.type||!1===e.data)continue;let o=await n(i.value,t);"object"===o.type&&Object.assign(r,o.data);break}case"ObjectSplat":{let e=await n(i.value,t);"object"===e.type&&Object.assign(r,e.data);break}default:throw Error(`Unknown node type: ${e}`)}}return m(r)},Array:({elements:e},t,n)=>new o(async function*(){for(let r of e){let e=await n(r.value,t);if(r.isSplat){if(e.isArray())for await(let t of e)yield t}else yield e}}),Tuple(){throw Error("tuples can not be evaluated")},async Or({left:e,right:t},n,r){let i=await r(e,n),o=await r(t,n);return"boolean"===i.type&&!0===i.data||"boolean"===o.type&&!0===o.data?c:"boolean"!==i.type||"boolean"!==o.type?u:d},async And({left:e,right:t},n,r){let i=await r(e,n),o=await r(t,n);return"boolean"===i.type&&!1===i.data||"boolean"===o.type&&!1===o.data?d:"boolean"!==i.type||"boolean"!==o.type?u:c},async Not({base:e},t,n){let r=await n(e,t);return"boolean"!==r.type?u:r.data?d:c},Neg:({base:e},t,n)=>D(n(e,t),e=>"number"!==e.type?u:h(-e.data)),Pos:({base:e},t,n)=>D(n(e,t),e=>"number"!==e.type?u:h(e.data)),Asc:()=>u,Desc:()=>u,async ArrayCoerce({base:e},t,n){let r=await n(e,t);return r.isArray()?r:u},async Map({base:e,expr:t},n,r){let i=await r(e,n);return i.isArray()?new o(async function*(){for await(let e of i){let i=n.createHidden(e);yield await r(t,i)}}):u},async FlatMap({base:e,expr:t},n,r){let i=await r(e,n);return i.isArray()?new o(async function*(){for await(let e of i){let i=n.createHidden(e),o=await r(t,i);if(o.isArray())for await(let e of o)yield e;else yield o}}):u}};function I(e,t={}){let n=m(t.root),r=m(t.dataset);return j(e,new O({...t.params},r,n,{timestamp:t.timestamp||new Date,identity:void 0===t.identity?"me":t.identity,sanity:t.sanity,after:t.after?m(t.after):null,before:t.before?m(t.before):null,dereference:t.dereference},null))}let P=new O({},u,u,{timestamp:new Date(0),identity:"me",before:null,after:null},null);function M(e){return!function e(t){switch(t.type){case"Group":case"Pos":case"Neg":return e(t.base);case"Value":case"Parameter":return!0;case"OpCall":switch(t.op){case"+":case"-":case"*":case"/":case"%":case"**":return e(t.left)&&e(t.right);default:return!1}default:return!1}}(e)?null:function e(t){let n=j(t,P,e);if("then"in n)throw Error("BUG: constant evaluate should never return a promise");return n}(e)}async function N(e){if("object"===e.type)return L(e.data);if(e.isArray()){let t=await $(e);if(t.length>0)return t.join(`
60
61`)}return null}async function $(e,t=[]){for await(let n of e)if("object"===n.type){let e=L(n.data);null!==e&&t.push(e)}else n.isArray()&&await $(n,t);return t}function L(e){if("string"!=typeof e._type)return null;let t=e.children;if(!Array.isArray(t))return null;let n="";for(let e of t)e&&"object"==typeof e&&"string"==typeof e._type&&"span"===e._type&&"string"==typeof e.text&&(n+=e.text);return n}async function F(e,t,n){if("OpCall"===e.type&&"match"===e.op)return U(e.left,e.right,t,n);if("FuncCall"===e.type&&"boost"===e.name){let r=await F(e.args[0],t,n),i=await n(e.args[1],t);return"number"===i.type&&r>0?r+i.data:0}switch(e.type){case"Or":return await F(e.left,t,n)+await F(e.right,t,n);case"And":{let r=await F(e.left,t,n),i=await F(e.right,t,n);return 0===r||0===i?0:r+i}default:{let r=await n(e,t);return+("boolean"===r.type&&!0===r.data)}}}async function U(e,t,n,r){let i=await r(e,n),o=await r(t,n),a=[],s=[];if(await _(i,e=>{a=a.concat(k(e))}),!await _(o,e=>{s=s.concat(E(e))})||0===a.length||0===s.length)return 0;let l=0;for(let e of s){let t=a.reduce((t,n)=>t+ +!!e.test(n),0);l+=2.2*t/(t+1.2)}return l}let z={};z.anywhere=async function(){throw Error("not implemented")},z.anywhere.arity=1,z.coalesce=async function(e,t,n){for(let r of e){let e=await n(r,t);if("null"!==e.type)return e}return u},z.count=async function(e,t,n){let r=await n(e[0],t);
61if(!r.isArray())return u;let i=0;for await(let e of r)i++;return h(i)},z.count.arity=1,z.dateTime=async function(e,t,n){let r=await n(e[0],t);return"datetime"===r.type?r:"string"!==r.type?u:f.parseToValue(r.data)},z.dateTime.arity=1,z.defined=async function(e,t,n){return"null"===(await n(e[0],t)).type?d:c},z.defined.arity=1,z.identity=async function(e,t){return p(t.context.identity)},z.identity.arity=0,z.length=async function(e,t,n){let r=await n(e[0],t);if("string"===r.type)return h(function(e){let t=0;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);r>=55296&&r<=56319||t++}return t}(r.data));if(r.isArray()){let e=0;for await(let t of r)e++;return h(e)}return u},z.length.arity=1,z.path=async function(e,t,n){let r=await n(e[0],t);return"string"!==r.type?u:new l(new i(r.data),"path")},z.path.arity=1,z.string=async function(e,t,n){let r=await n(e[0],t);switch(r.type){case"number":case"string":case"boolean":case"datetime":return p(`${r.data}`);default:return u}},z.string.arity=1,z.references=async function(e,t,n){let r=new Set;for(let i of e){let e=await n(i,t);if("string"===e.type)r.add(e.data);else if(e.isArray())for await(let t of e)"string"===t.type&&r.add(t.data)}return 0===r.size||!function e(t,n){switch(y(t)){case"array":for(let r of t)if(e(r,n))return!0;break;case"object":if(t._ref)return n.has(t._ref);for(let r of Object.values(t))if(e(r,n))return!0}return!1}(await t.value.get(),r)?d:c},z.references.arity=e=>e>=1,z.round=async function(e,t,n){let r=await n(e[0],t);if("number"!==r.type)return u;let i=r.data,o=0;if(2===e.length){let r=await n(e[1],t);if("number"!==r.type||r.data<0||!Number.isInteger(r.data))return u;o=r.data}return 0===o?i<0?h(-Math.round(-i)):h(Math.round(i)):h(Number(i.toFixed(o)))},z.round.arity=e=>e>=1&&e<=2,z.now=async function(e,t){return p(t.context.timestamp.toISOString())},z.now.arity=0,z.boost=async function(){throw Error("unexpected boost call")},z.boost.arity=2;let B={};B.lower=async function(e,t,n){let r=await n(e[0],t);return"string"!==r.type?u:p(r.data.toLowerCase())},B.lower.arity=1,B.upper=async function(e,t,n){let r=await n(e[0],t);return"string"!==r.type?u:p(r.data.toUpperCase())},B.upper.arity=1,B.split=async function(e,t,n){let r=await n(e[0],t);if("string"!==r.type)return u;let i=await n(e[1],t);return"string"!==i.type?u:0===r.data.length?m([]):0===i.data.length?m(Array.from(r.data)):m(r.data.split(i.data))},B.split.arity=2,z.lower=B.lower,z.upper=B.upper,B.startsWith=async function(e,t,n){let r=await n(e[0],t);if("string"!==r.type)return u;let i=await n(e[1],t);return"string"!==i.type?u:r.data.startsWith(i.data)?c:d},B.startsWith.arity=2;let q={};q.join=async function(e,t,n){let r=await n(e[0],t);if(!r.isArray())return u;let i=await n(e[1],t);if("string"!==i.type)return u;let o="",a=!1;for await(let e of r){switch(a&&(o+=i.data),e.type){case"number":case"string":case"boolean":case"datetime":o+=`${e.data}`;break;default:return u}a=!0}return m(o)},q.join.arity=2,q.compact=async function(e,t,n){let r=await n(e[0],t);return r.isArray()?new o(async function*(){for await(let e of r)"null"!==e.type&&(yield e)}):u},q.compact.arity=1,q.unique=async function(e,t,n){let r=await n(e[0],t);return r.isArray()?new o(async function*(){let e=new Set;for await(let t of r)switch(t.type){case"number":case"string":case"boolean":case"datetime":e.has(t.data)||(e.add(t.data),yield t);break;default:yield t}}):u},q.unique.arity=1,q.intersects=async function(e,t,n){let r=await n(e[0],t);if(!r.isArray())return u;let i=await n(e[1],t);if(!i.isArray())return u;for await(let e of r)for await(let t of i)if(v(e,t))return c;return d},q.intersects.arity=2;let V={};V.text=async function(e,t,n){let r=await n(e[0],t),i=await N(r);return null===i?u:p(i)},V.text.arity=1;let H={};H.projectId=async function(e,t){return t.context.sanity?p(t.context.sanity.projectId):u},H.dataset=async function(e,t){return t.context.sanity?p(t.context.sanity.dataset):u},H.versionOf=async function(e,t,n){if(!t.source.isArray())return u;let r=await n(e[0],t);if("string"!==r.type)return u;let i=r.data,o=[];for await(let e of t.source)if("object"===y(e)){let t=await e.get();if(t&&"string"==typeof t._id){let e=t._id.split(".");(t._id===i||e.length>=3&&"versions"===e[0]&&e.slice(2).join(".")===i||e.length>=2&&"drafts"===e[0]&&e.slice(1).join(".")===i)&&o.push(t._id)}}return m(o)},H.versionOf.arity=1,H.partOfRelease=async function(e,t,n){if(!t.source.isArray())return u;let r=await n(e[0],t);
61if("string"!==r.type)return u;let i=r.data,o=[];for await(let e of t.source)if("object"===y(e)){let t=await e.get();if(t&&"string"==typeof t._id){let e=t._id.split(".");e.length>=3&&"versions"===e[0]&&e[1]===i&&o.push(t._id)}}return m(o)},H.partOfRelease.arity=1;let W={};W.all=async function(e,t){let n=[];for await(let e of t.source)if("object"===y(e)){let t=await e.get();t&&"_type"in t&&"system.release"===t._type&&n.push(t)}return m(n)},W.all.arity=0;let Y={};Y.order=async function(e,t,n,r){if(await !0,!e.isArray())return u;let i=[],o=[],a=0;for(let e of t){let t="asc";"Desc"===e.type?(t="desc",e=e.base):"Asc"===e.type&&(e=e.base),i.push(e),o.push(t),a++}let s=[],l=0;for await(let t of e){let e=n.createNested(t),o=[await t.get(),l];for(let t=0;t<a;t++){let n=await r(i[t],e);o.push(await n.get())}s.push(o),l++}return s.sort((e,t)=>{for(let n=0;n<a;n++){let r=function(e,t){let n=y(e),r=y(t),i=S[n]||100,o=S[r]||100;if(i!==o)return i-o;let a=A(e,t);return null===a&&(a=0),a}(e[n+2],t[n+2]);if("desc"===o[n]&&(r=-r),0!==r)return r}return e[1]-t[1]}),m(s.map(e=>e[0]))},Y.order.arity=e=>e>=1,Y.score=async function(e,t,n,r){if(!e.isArray())return u;let i=[],o=[];for await(let a of e){if("object"!==a.type){i.push(await a.get());continue}let e=n.createNested(a),s="number"==typeof a.data._score?a.data._score:0;for(let n of t)s+=await F(n,e,r);let l=Object.assign({},a.data,{_score:s});o.push(l)}return o.sort((e,t)=>t._score-e._score),m(o)},Y.score.arity=e=>e>=1;let G={};G.operation=async function(e,t){let n=null!==t.context.before,r=null!==t.context.after;return n&&r?p("update"):r?p("create"):n?p("delete"):u},G.changedAny=()=>{throw Error("not implemented")},G.changedAny.arity=1,G.changedAny.mode="delta",G.changedOnly=()=>{throw Error("not implemented")},G.changedOnly.arity=1,G.changedOnly.mode="delta";let K={};K.changedAny=()=>{throw Error("not implemented")},K.changedAny.arity=3,K.changedOnly=()=>{throw Error("not implemented")},K.changedOnly.arity=3;let X={};X.min=async function(e,t,n){let r,i=await n(e[0],t);if(!i.isArray())return u;for await(let e of i)if("null"!==e.type){if("number"!==e.type)return u;(void 0===r||e.data<r)&&(r=e.data)}return m(r)},X.min.arity=1,X.max=async function(e,t,n){let r,i=await n(e[0],t);if(!i.isArray())return u;for await(let e of i)if("null"!==e.type){if("number"!==e.type)return u;(void 0===r||e.data>r)&&(r=e.data)}return m(r)},X.max.arity=1,X.sum=async function(e,t,n){let r=await n(e[0],t);if(!r.isArray())return u;let i=0;for await(let e of r)if("null"!==e.type){if("number"!==e.type)return u;i+=e.data}return m(i)},X.sum.arity=1,X.avg=async function(e,t,n){let r=await n(e[0],t);if(!r.isArray())return u;let i=0,o=0;for await(let e of r)if("null"!==e.type){if("number"!==e.type)return u;i+=e.data,o++}return 0===o?u:m(i/o)},X.avg.arity=1;let Z={};Z.now=async function(e,t){return g(new f(t.context.timestamp))},Z.now.arity=0;let Q={};Q.query=()=>{throw Error("not implemented")},Q.query.arity=1;let J={global:z,string:B,array:q,pt:V,delta:G,diff:K,sanity:H,math:X,dateTime:Z,releases:W,text:Q};class ee{string;marks;index;parseOptions;allowBoost=!1;constructor(e,t,n){this.string=e,this.marks=t,this.index=0,this.parseOptions=n}hasMark(e=0){return this.index+e<this.marks.length}getMark(e=0){return this.marks[this.index+e]}shift(){this.index+=1}process(e){let t=this.marks[this.index];this.shift();let n=e[t.name];if(!n)throw Error(`Unknown handler: ${t.name}`);return n.call(e,this,t)}processString(){return this.shift(),this.processStringEnd()}processStringEnd(){let e=this.marks[this.index-1],t=this.marks[this.index];return this.shift(),this.string.slice(e.position,t.position)}slice(e){let t=this.marks[this.index].position;return this.string.slice(t,t+e)}}let et=/^([\t\n\v\f\r \u0085\u00A0]|(\/\/[^\n]*\n))+/,en=/^\d+/,er=/^[a-zA-Z_][a-zA-Z_0-9]*/;function ei(e,t,n){let r=t,i;switch(e[t]){case"+":{let n=ei(e,el(e,t+1),10);if("error"===n.type)return n;i=[{name:"pos",position:r}].concat(n.marks),t=n.position;break}case"-":{let n=ei(e,el(e,t+1),8);if("error"===n.type)return n;i=[{name:"neg",position:r}].concat(n.marks),t=n.position;break}case"(":{let n=ei(e,el(e,t+1),0);if("error"===n.type)return n;switch(t=el(e,n.position),e[t]){case",":for(i=[{name:"tuple",position:r}].concat(n.marks),t=el(e,t+1);;){if("error"===(n=ei(e,t,0)).type)return n;if(t=el(e,n.position),","!==e[t])break;t=el(e,t+1)}if(")"!==e[t])return{type:"error",position:t};t++,i.push({name:"tuple_end",position:t});break;case")":t++,i=[{name:"group",position:r}].concat(n.marks);break;default:return{type:"error",position:t}}break}case"!":{let n=ei(e,el(e,t+1),10);if("error"===n.type)return n;i=[{name:"not",position:r}].concat(n.marks),t=n.position;break}case"{":{let n=es(e,t);if("error"===n.type)return n;i=n.marks,t=n.position;break}case"[":if(i=[{name:"array",position:t}],t=el(e,t+1),"]"!==e[t])for(;;){"..."===e.slice(t,t+3)&&(i.push({name:"array_splat",position:t}),t=el(e,t+3));let n=ei(e,t,0);if("error"===n.type)return n;if(i=i.concat(n.marks),t=el(e,t=n.position),","!==e[t]||(t=el(e,t+1),"]"===e[t]))break}if("]"!==e[t])return{type:"error",position:t};t++,i.push({name:"array_end",position:t});break;case"'":case'"':{let n=function(e,t){let n=e[t],r=[{name:"str",position:t+=1}];n:for(;;t++){if(t>e.length)return{type:"error",position:t};switch(e[t]){case n:r.push({name:"str_end",position:t}),t++;break n;case"\\":r.push({name:"str_pause",position:t}),"u"===e[t+1]?"{"===e[t+2]?(r.push({name:"unicode_hex",position:t+3}),t=e.indexOf("}",t+3),r.push({name:"unicode_hex_end",position:t})):(r.push({name:"unicode_hex",position:t+2}),r.push({name:"unicode_hex_end",position:t+6}),t+=5):(r.push({name:"single_escape",position:t+1}),t+=1),r.push({name:"str_start",position:t+1})}}return{type:"success",marks:r,position:t}}(e,t);if("error"===n.type)return n;i=n.marks,t=n.position;break}case"^":for(t++,i=[];"."===e[t]&&"^"===e[t+1];)i.push({name:"dblparent",position:r}),t+=2;i.push({name:"parent",position:r});break;case"@":i=[{name:"this",position:r}],t++;break;case"*":i=[{name:"everything",position:r}],t++;break;case"$":{let n=eu(e,t+1,er);n&&(t+=1+n,i=[{name:"param",position:r},{name:"ident",position:r+1},{name:"ident_end",position:t}]);break}default:{let n=eu(e,t,en);if(n){let o="integer";if("."===e[t+=n]){let n=eu(e,t+1,en);n&&(o="float",t+=1+n)}if("e"===e[t]||"E"===e[t]){o="sci",("+"===e[++t]||"-"===e[t])&&t++;let n=eu(e,t,en);if(!n)return{type:"error",position:t};t+=n}i=[{name:o,position:r},{name:o+"_end",position:t}];break}let o=eu(e,t,er);if(o)switch(e[t+=o]){case":":case"(":{let n=ea(e,r,t);if("error"===n.type)return n;i=n.marks,t=n.position;break}default:i=[{name:"this_attr",position:r},{name:"ident",position:r},{name:"ident_end",position:t}]}}}if(!i)return{type:"error",position:t};let o=12,a;r:for(;;){let s=el(e,t);if(s===e.length){t=s;break}if("success"===(a=eo(e,s)).type){for(i.unshift({name:"traverse",position:r});"success"===a.type;)i=i.concat(a.marks),a=eo(e,el(e,t=a.position));i.push({name:"traversal_end",position:t});continue}switch(e[s]){case"=":switch(e[s+1]){case">":{if(n>1||o<=1)break r;let a=ei(e,el(e,s+2),1);if("error"===a.type)return a;(i=i.concat(a.marks)).unshift({name:"pair",position:r}),t=a.position,o=1;break}case"=":{if(n>4||o<=4)break r;let a=ei(e,el(e,s+2),5);if("error"===a.type)return a;i.unshift({name:"comp",position:r}),i.push({name:"op",position:s},{name:"op_end",position:s+2}),i=i.concat(a.marks),t=a.position,o=4;break}default:break r}break;case"+":{if(n>6||o<6)break r;let a=ei(e,el(e,s+1),7);if("error"===a.type)return a;(i=i.concat(a.marks)).unshift({name:"add",position:r}),t=a.position,o=6;break}case"-":{if(n>6||o<6)break r;let a=ei(e,el(e,s+1),7);if("error"===a.type)return a;(i=i.concat(a.marks)).unshift({name:"sub",position:r}),t=a.position,o=6;break}case"*":{if("*"===e[s+1]){if(n>8||o<=8)break r;let a=ei(e,el(e,s+2),8);
61if("error"===a.type)return a;(i=i.concat(a.marks)).unshift({name:"pow",position:r}),t=a.position,o=8;break}if(n>7||o<7)break r;let a=ei(e,el(e,s+1),8);if("error"===a.type)return a;(i=i.concat(a.marks)).unshift({name:"mul",position:r}),t=a.position,o=7;break}case"/":{if(n>7||o<7)break r;let a=ei(e,el(e,s+1),8);if("error"===a.type)return a;(i=i.concat(a.marks)).unshift({name:"div",position:r}),t=a.position,o=7;break}case"%":{if(n>7||o<7)break r;let a=ei(e,el(e,s+1),8);if("error"===a.type)return a;(i=i.concat(a.marks)).unshift({name:"mod",position:r}),t=a.position,o=7;break}case"<":case">":{if(n>4||o<=4)break r;let a=s+1;"="===e[a]&&a++;let l=ei(e,el(e,a),5);if("error"===l.type)return l;i.unshift({name:"comp",position:r}),i.push({name:"op",position:s},{name:"op_end",position:a}),i=i.concat(l.marks),t=l.position,o=4;break}case"|":if("|"===e[s+1]){if(n>2||o<2)break r;let a=ei(e,el(e,s+2),3);if("error"===a.type)return a;(i=i.concat(a.marks)).unshift({name:"or",position:r}),t=a.position,o=2}else{if(n>11||o<11)break r;let a=el(e,s+1),l=eu(e,a,er);if(!l)return{type:"error",position:a};if("("===e[t=a+l]||":"===e[t]){let n=ea(e,a,t);if("error"===n.type)return n;(i=i.concat(n.marks)).unshift({name:"pipecall",position:r}),t=n.position,o=11}}break;case"&":{if("&"!=e[s+1]||n>3||o<3)break r;let a=ei(e,el(e,s+2),4);if("error"===a.type)return a;(i=i.concat(a.marks)).unshift({name:"and",position:r}),t=a.position,o=3;break}case"!":{if("="!==e[s+1]||n>4||o<=4)break r;let a=ei(e,el(e,s+2),5);if("error"===a.type)return a;i.unshift({name:"comp",position:r}),i.push({name:"op",position:s},{name:"op_end",position:s+2}),i=i.concat(a.marks),t=a.position,o=4;break}case"d":if("desc"!==e.slice(s,s+4)||n>4||o<4)break r;i.unshift({name:"desc",position:r}),t=s+4,o=4;break;case"a":if("asc"!==e.slice(s,s+3)||n>4||o<4)break r;i.unshift({name:"asc",position:r}),t=s+3,o=4;break;default:switch(function(e,t,n){let r=n.exec(e.slice(t));return r?r[0]:null}(e,s,er)){case"in":{if(n>4||o<=4)break r;t=el(e,s+2);let a=!1;"("===e[t]&&(a=!0,t=el(e,t+1));let l=t,u=ei(e,t,5);if("error"===u.type)return u;if(t=el(e,u.position),"."===e[t]&&"."===e[t+1]){let n="inc_range";"."===e[t+2]?(n="exc_range",t=el(e,t+3)):t=el(e,t+2);let o=ei(e,t,5);if("error"===o.type)return o;i.unshift({name:"in_range",position:r}),i=i.concat({name:n,position:l},u.marks,o.marks),t=o.position}else i.unshift({name:"comp",position:r}),i.push({name:"op",position:s},{name:"op_end",position:s+2}),i=i.concat(u.marks);if(a){if(t=el(e,t),")"!==e[t])return{type:"error",position:t};t++}o=4;break}case"match":{if(n>4||o<=4)break r;let a=ei(e,el(e,s+5),5);if("error"===a.type)return a;i.unshift({name:"comp",position:r}),i.push({name:"op",position:s},{name:"op_end",position:s+5}),i=i.concat(a.marks),t=a.position,o=4;break}default:break r}}}return{type:"success",marks:i,position:t,failPosition:a?.type==="error"&&a.position}}function eo(e,t){let n=t;switch(e[t]){case".":{let r=t=el(e,t+1),i=eu(e,t,er);return i?{type:"success",marks:[{name:"attr_access",position:n},{name:"ident",position:r},{name:"ident_end",position:t+=i}],position:t}:{type:"error",position:t}}case"-":if(">"!==e[t+1])break;let r=[{name:"deref",position:n}],i=el(e,t+=2),o=eu(e,i,er);return o&&(t=i+o,r.push({name:"deref_attr",position:i},{name:"ident",position:i},{name:"ident_end",position:t})),{type:"success",marks:r,position:t};case"[":{if(t=el(e,t+1),"]"===e[t])return{type:"success",marks:[{name:"array_postfix",position:n}],position:t+1};let r=t,i=ei(e,t,0);if("error"===i.type)return i;if(t=el(e,i.position),"."===e[t]&&"."===e[t+1]){let o="inc_range";"."===e[t+2]?(o="exc_range",t+=3):t+=2,t=el(e,t);let a=ei(e,t,0);return"error"===a.type?a:(t=el(e,a.position),"]"!==e[t]?{type:"error",position:t}:{type:"success",marks:[{name:"slice",position:n},{name:o,position:r}].concat(i.marks,a.marks),position:t+1})}return"]"!==e[t]?{type:"error",position:t}:{type:"success",marks:[{name:"square_bracket",position:n}].concat(i.marks),position:t+1}}case"|":if(t=el(e,t+1),"{"===e[t]){let r=es(e,t);return"error"===r.type||r.marks.unshift({name:"projection",position:n}),r}break;case"{":{let r=es(e,t);return"error"===r.type||r.marks.unshift({name:"projection",position:n}),r}}return{type:"error",position:t}}function ea(e,t,n){let r=[];if(r.push({name:"func_call",position:t}),":"===e[n]&&":"===e[n+1]){r.push({name:"namespace",position:t}),r.push({name:"ident",position:t},{name:"ident_end",position:n}),n=el(e,n+2);let i=eu(e,n,er);if(!i||(r.push({name:"ident",position:n},{name:"ident_end",position:n+i}),n=el(e,n+i),"("!==e[n]))return{type:"error",position:n};n=el(e,++n)}else r.push({name:"ident",position:t},{name:"ident_end",position:n}),n=el(e,n+1);let i=n;if(")"!==e[n])for(;;){let t=ei(e,n,0);if("error"===t.type)return t;if(r=r.concat(t.marks),i=t.position,n=el(e,t.position),","!==e[n]||(n=el(e,n+1),")"===e[n]))break}return")"!==e[n]?{type:"error",position:n}:(r.push({name:"func_args_end",position:i}),{type:"success",marks:r,position:n+1})}function es(e,t){let n=[{name:"object",position:t}];for(t=el(e,t+1);"}"!==e[t];){let r=t;if("..."===e.slice(t,t+3))if(t=el(e,t+3),"}"!==e[t]&&","!==e[t]){let i=ei(e,t,0);if("error"===i.type)return i;n.push({name:"object_splat",position:r}),n=n.concat(i.marks),t=i.position}else n.push({name:"object_splat_this",position:r});else{let i=ei(e,t,0);if("error"===i.type)return i;
61let o=el(e,i.position);if("str"===i.marks[0].name&&":"===e[o]){let a=ei(e,el(e,o+1),0);if("error"===a.type)return a;n.push({name:"object_pair",position:r}),n=n.concat(i.marks,a.marks),t=a.position}else n=n.concat({name:"object_expr",position:t},i.marks),t=i.position}if(t=el(e,t),","!==e[t])break;t=el(e,t+1)}return"}"!==e[t]?{type:"error",position:t}:(t++,n.push({name:"object_end",position:t}),{type:"success",marks:n,position:t})}function el(e,t){return t+eu(e,t,et)}function eu(e,t,n){let r=n.exec(e.slice(t));return r?r[0].length:0}function ec(e,t){return n=>t(e(n))}function ed(e){return t=>({type:"Map",base:t,expr:e({type:"This"})})}function ef(e,t){if(!t)return{type:"a-a",build:e};switch(t.type){case"a-a":return{type:"a-a",build:ec(e,t.build)};case"a-b":return{type:"a-b",build:ec(e,t.build)};case"b-b":return{type:"a-a",build:ec(e,ed(t.build))};case"b-a":var n;return{type:"a-a",build:ec(e,(n=t.build,e=>({type:"FlatMap",base:e,expr:n({type:"This"})})))};default:throw Error(`unknown type: ${t.type}`)}}function eh(e,t){if(!t)return{type:"b-b",build:e};switch(t.type){case"a-a":case"b-a":return{type:"b-a",build:ec(e,t.build)};case"a-b":case"b-b":return{type:"b-b",build:ec(e,t.build)};default:throw Error(`unknown type: ${t.type}`)}}let ep={"'":"'",'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
62`,r:"\r",t:"	"};class eg extends Error{name="GroqQueryError"}let em={group:e=>({type:"Group",base:e.process(em)}),everything:()=>({type:"Everything"}),this:()=>({type:"This"}),parent:()=>({type:"Parent",n:1}),dblparent:e=>({type:"Parent",n:e.process(em).n+1}),traverse(e){let t=e.process(em),n=[];for(;"traversal_end"!==e.getMark().name;)n.push(e.process(ev));e.shift();let r=null;for(let e=n.length-1;e>=0;e--)r=n[e](r);if(("Everything"===t.type||"Array"===t.type||"PipeFuncCall"===t.type)&&(r=ef(e=>e,r)),null===r)throw Error("BUG: unexpected empty traversal");return r.build(t)},this_attr(e){let t=e.processString();return"null"===t?{type:"Value",value:null}:"true"===t?{type:"Value",value:!0}:"false"===t?{type:"Value",value:!1}:{type:"AccessAttribute",name:t}},neg:e=>({type:"Neg",base:e.process(em)}),pos:e=>({type:"Pos",base:e.process(em)}),add:e=>({type:"OpCall",op:"+",left:e.process(em),right:e.process(em)}),sub:e=>({type:"OpCall",op:"-",left:e.process(em),right:e.process(em)}),mul:e=>({type:"OpCall",op:"*",left:e.process(em),right:e.process(em)}),div:e=>({type:"OpCall",op:"/",left:e.process(em),right:e.process(em)}),mod:e=>({type:"OpCall",op:"%",left:e.process(em),right:e.process(em)}),pow:e=>({type:"OpCall",op:"**",left:e.process(em),right:e.process(em)}),comp(e){let t=e.process(em);return{type:"OpCall",op:e.processString(),left:t,right:e.process(em)}},in_range(e){let t=e.process(em),n="inc_range"===e.getMark().name;return e.shift(),{type:"InRange",base:t,left:e.process(em),right:e.process(em),isInclusive:n}},str(e){let t="";r:for(;e.hasMark();){let n=e.getMark();switch(n.name){case"str_end":t+=e.processStringEnd();break r;case"str_pause":t+=e.processStringEnd();break;case"str_start":e.shift();break;case"single_escape":{let n=e.slice(1);e.shift(),t+=ep[n];break}case"unicode_hex":e.shift(),t+=String.fromCharCode(parseInt(e.processStringEnd(),16));break;default:throw Error(`unexpected mark: ${n.name}`)}}return{type:"Value",value:t}},integer:e=>({type:"Value",value:Number(e.processStringEnd())}),float:e=>({type:"Value",value:Number(e.processStringEnd())}),sci:e=>({type:"Value",value:Number(e.processStringEnd())}),object(e){let t=[];for(;"object_end"!==e.getMark().name;)t.push(e.process(ey));return e.shift(),{type:"Object",attributes:t}},array(e){let t=[];for(;"array_end"!==e.getMark().name;){let n=!1;"array_splat"===e.getMark().name&&(n=!0,e.shift());let r=e.process(em);t.push({type:"ArrayElement",value:r,isSplat:n})}return e.shift(),{type:"Array",elements:t}},tuple(e){let t=[];for(;"tuple_end"!==e.getMark().name;)t.push(e.process(em));return e.shift(),{type:"Tuple",members:t}},func_call(e){let t="global";"namespace"===e.getMark().name&&(e.shift(),t=e.processString());let n=e.processString();if("global"===t&&"select"===n){let t={type:"Select",alternatives:[]};for(;"func_args_end"!==e.getMark().name;)if("pair"===e.getMark().name){if(t.fallback)throw new eg("unexpected argument to select()");e.shift();let n=e.process(em),r=e.process(em);t.alternatives.push({type:"SelectAlternative",condition:n,value:r})}else{if(t.fallback)throw new eg("unexpected argument to select()");t.fallback=e.process(em)}return e.shift(),t}let r=[];for(;"func_args_end"!==e.getMark().name;){var i,o,a;(i=t,o=n,a=r.length,"diff"==i&&2==a&&["changedAny","changedOnly"].includes(o))?(e.process(eb),r.push({type:"Selector"})):r.push(e.process(em))}if(e.shift(),"global"===t&&("before"===n||"after"===n)&&"delta"===e.parseOptions.mode)return{type:"Context",key:n};if("global"===t&&"boost"===n&&!e.allowBoost)throw new eg("unexpected boost");let s=J[t];if(!s)throw new eg(`Undefined namespace: ${t}`);let l=s[n];if(!l||(void 0!==l.arity&&ew(n,l.arity,r.length),void 0!==l.mode&&l.mode!==e.parseOptions.mode))throw new eg(`Undefined function: ${n}`);return{type:"FuncCall",func:l,namespace:t,name:n,args:r}},pipecall(e){let t=e.process(em);e.shift();let n="global";
62if("namespace"===e.getMark().name&&(e.shift(),n=e.processString()),"global"!==n)throw new eg(`Undefined namespace: ${n}`);let r=e.processString(),i=[],o=e.allowBoost;for("score"===r&&(e.allowBoost=!0);;){let t=e.getMark().name;if("func_args_end"===t)break;if("order"===r){if("asc"===t){e.shift(),i.push({type:"Asc",base:e.process(em)});continue}else if("desc"===t){e.shift(),i.push({type:"Desc",base:e.process(em)});continue}}i.push(e.process(em))}e.shift(),e.allowBoost=o;let a=Y[r];if(!a)throw new eg(`Undefined pipe function: ${r}`);return a.arity&&ew(r,a.arity,i.length),{type:"PipeFuncCall",func:a,base:t,name:r,args:i}},pair(){throw new eg("unexpected =>")},and:e=>({type:"And",left:e.process(em),right:e.process(em)}),or:e=>({type:"Or",left:e.process(em),right:e.process(em)}),not:e=>({type:"Not",base:e.process(em)}),asc(){throw new eg("unexpected asc")},desc(){throw new eg("unexpected desc")},param(e){let t=e.processString();return e.parseOptions.params&&e.parseOptions.params.hasOwnProperty(t)?{type:"Value",value:e.parseOptions.params[t]}:{type:"Parameter",name:t}}},ey={object_expr(e){if("pair"===e.getMark().name)return e.shift(),{type:"ObjectConditionalSplat",condition:e.process(em),value:e.process(em)};let t=e.process(em);return{type:"ObjectAttributeValue",name:function e(t){if("AccessAttribute"===t.type&&!t.base)return t.name;if("PipeFuncCall"===t.type||"Deref"===t.type||"Map"===t.type||"Projection"===t.type||"Slice"===t.type||"Filter"===t.type||"AccessElement"===t.type||"ArrayCoerce"===t.type||"Group"===t.type)return e(t.base);throw new eg(`Cannot determine property key for type: ${t.type}`)}(t),value:t}},object_pair(e){let t=e.process(em);if("Value"!==t.type)throw Error("name must be string");let n=e.process(em);return{type:"ObjectAttributeValue",name:t.value,value:n}},object_splat:e=>({type:"ObjectSplat",value:e.process(em)}),object_splat_this:()=>({type:"ObjectSplat",value:{type:"This"}})},ev={square_bracket(e){let t=e.process(em),n=M(t);return n&&"number"===n.type?e=>(function(e,t){if(!t)return{type:"a-b",build:e};switch(t.type){case"a-a":case"b-a":return{type:"a-a",build:ec(e,t.build)};case"a-b":case"b-b":return{type:"a-b",build:ec(e,t.build)};default:throw Error(`unknown type: ${t.type}`)}})(e=>({type:"AccessElement",base:e,index:n.data}),e):n&&"string"===n.type?e=>eh(e=>({type:"AccessAttribute",base:e,name:n.data}),e):e=>ef(e=>({type:"Filter",base:e,expr:t}),e)},slice(e){let t="inc_range"===e.getMark().name;e.shift();let n=e.process(em),r=e.process(em),i=M(n),o=M(r);if(!i||!o||"number"!==i.type||"number"!==o.type)throw new eg("slicing must use constant numbers");return e=>ef(e=>({type:"Slice",base:e,left:i.data,right:o.data,isInclusive:t}),e)},projection(e){let t=e.process(em);return e=>(function(e,t){if(!t)return{type:"b-b",build:e};switch(t.type){case"a-a":return{type:"a-a",build:ec(ed(e),t.build)};case"a-b":return{type:"a-b",build:ec(ed(e),t.build)};case"b-a":return{type:"b-a",build:ec(e,t.build)};case"b-b":return{type:"b-b",build:ec(e,t.build)};default:throw Error(`unknown type: ${t.type}`)}})(e=>({type:"Projection",base:e,expr:t}),e)},attr_access(e){let t=e.processString();return e=>eh(e=>({type:"AccessAttribute",base:e,name:t}),e)},deref(e){let t=null;return"deref_attr"===e.getMark().name&&(e.shift(),t=e.processString()),e=>eh(e=>{let n;return n={type:"Deref",base:e},t?{type:"AccessAttribute",base:n,name:t}:n},e)},array_postfix:()=>e=>ef(e=>({type:"ArrayCoerce",base:e}),e)},eb={group:e=>(e.process(eb),null),everything(){throw Error("Invalid selector syntax")},this(){throw Error("Invalid selector syntax")},parent(){throw Error("Invalid selector syntax")},dblparent(){throw Error("Invalid selector syntax")},traverse(e){for(e.process(eb);"traversal_end"!==e.getMark().name;)e.process(ev);return e.shift(),null},this_attr:e=>(e.processString(),null),neg(){throw Error("Invalid selector syntax")},pos(){throw Error("Invalid selector syntax")},add(){throw Error("Invalid selector syntax")},sub(){throw Error("Invalid selector syntax")},mul(){throw Error("Invalid selector syntax")},div(){throw Error("Invalid selector syntax")},mod(){throw Error("Invalid selector syntax")},pow(){throw Error("Invalid selector syntax")},comp(){throw Error("Invalid selector syntax")},in_range(){throw Error("Invalid selector syntax")},str(){throw Error("Invalid selector syntax")},integer(){throw Error("Invalid selector syntax")},float(){throw Error("Invalid selector syntax")},sci(){throw Error("Invalid selector syntax")},object(){throw Error("Invalid selector syntax")},array(){throw Error("Invalid selector syntax")},tuple(){throw Error("Invalid selector syntax")},func_call(e,t){let n=em.func_call(e,t);if("anywhere"===n.name&&1===n.args.length)return null;throw Error("Invalid selector syntax")},pipecall(){throw Error("Invalid selector syntax")},pair(){throw Error("Invalid selector syntax")},and(){throw Error("Invalid selector syntax")},or(){throw Error("Invalid selector syntax")},not(){throw Error("Invalid selector syntax")},asc(){throw Error("Invalid selector syntax")},desc(){throw Error("Invalid selector syntax")},param(){throw Error("Invalid selector syntax")}};
62function ew(e,t,n){if("number"==typeof t){if(n!==t)throw new eg(`Incorrect number of arguments to function ${e}(). Expected ${t}, got ${n}.`)}else if(t&&!t(n))throw new eg(`Incorrect number of arguments to function ${e}().`)}class ex extends Error{position;name="GroqSyntaxError";constructor(e){super(`Syntax error in GROQ query at position ${e}`),this.position=e}}function ek(e,t={}){let n,r,i=(n=0,n=el(e,0),"error"===(r=ei(e,n,0)).type?r:(n=el(e,r.position))!==e.length?(r.failPosition&&(n=r.failPosition-1),{type:"error",position:n}):(delete r.position,delete r.failPosition,r));if("error"===i.type)throw new ex(i.position);return new ee(e,i.marks,t).process(em)}let{compare:eE}=new Intl.Collator("en");r("typeEvaluator:scope:trace").log=console.log.bind(console),r("typeEvaluator:evaluate:trace").log=console.log.bind(console),r("typeEvaluator:evaluate:debug").log=console.log.bind(console),r("typeEvaluator:evaluate:warn"),Symbol("groq-js.type")},64703:(e,t,n)=>{var r=n(25471);e.exports=function(e){return e&&e.length?r(e):[]}},64760:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(18659),i=n(47528),o=n(71260);function a(e,t){return(0,o.A)(2,arguments),new Date((0,i.A)(e).getTime()+(0,r.A)(t))}},64843:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},64976:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.width,o=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;var s=a[0],l=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}(l,function(e){return e.test(s)}):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}(l,function(e){return e.test(s)});return n=e.valueCallback?e.valueCallback(u):u,{value:n=r.valueCallback?r.valueCallback(n):n,rest:t.slice(s.length)}}},e.exports=t.default},65060:e=>{e.exports=function(e,t,n){if(null===e!=(null===t))return!1;var r,i=Array.isArray(e);if(i!==Array.isArray(t))return!1;var o=typeof e;return o===typeof t&&("function"!==(r=o)&&"object"!==r?n?n(e,t):e===t:i?function(e,t,n){var r=e.length;if(r!==t.length)return!1;if(n){for(var i=0;i<r;i++)if(!n(e[i],t[i]))return!1}else for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0}(e,t,n):function(e,t,n){var r=0,i=0;if(n)for(var o in e){if(e.hasOwnProperty(o)&&!n(e[o],t[o]))return!1;r++}else for(var o in e){if(e.hasOwnProperty(o)&&e[o]!==t[o])return!1;r++}for(var o in t)t.hasOwnProperty(o)&&i++;return r===i}(e,t,n))}},65081:(e,t,n)=>{var r=n(68685),i=n(93718),o=n(34010),a=Math.max,s=Math.min;e.exports=function(e,t,n){var l,u,c,d,f,h,p=0,g=!1,m=!1,y=!0;if("function"!=typeof e)throw TypeError("Expected a function");function v(t){var n=l,r=u;return l=u=void 0,p=t,d=e.apply(r,n)}function b(e){var n=e-h,r=e-p;return void 0===h||n>=t||n<0||m&&r>=c}function w(){var e,n,r,o=i();if(b(o))return x(o);f=setTimeout(w,(e=o-h,n=o-p,r=t-e,m?s(r,c-n):r))}function x(e){return(f=void 0,y&&l)?v(e):(l=u=void 0,d)}function k(){var e,n=i(),r=b(n);if(l=arguments,u=this,h=n,r){if(void 0===f)return p=e=h,f=setTimeout(w,t),g?v(e):d;if(m)return clearTimeout(f),f=setTimeout(w,t),v(h)}return void 0===f&&(f=setTimeout(w,t)),d}return t=o(t)||0,r(n)&&(g=!!n.leading,c=(m="maxWait"in n)?a(o(n.maxWait)||0,t):c,y="trailing"in n?!!n.trailing:y),k.cancel=function(){void 0!==f&&clearTimeout(f),p=0,l=h=u=f=void 0},k.flush=function(){return void 0===f?d:x(i())},k}},65142:(e,t,n)=>{"use strict";n.d(t,{$:()=>a});var r=n(71962),i=n(27778),o=function(e,t){return e.push(t),e};function a(){return(0,i.N)(function(e,t){(0,r.T)(o,[])(e).subscribe(t)})}},65206:(e,t,n)=>{e.exports="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g},65258:(e,t,n)=>{"use strict";n.d(t,{m:()=>o});var r=n(36116),i=n(56922);function o(e){i.f.setTimeout(function(){var t=r.$.onUnhandledError;if(t)t(e);else throw e})}},65295:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input
62=e.input),r}},65387:e=>{var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},65528:(e,t,n)=>{"use strict";n.d(t,{T:()=>i});var r=n(71976);function i(e,t,n){return(0,r.v)(function(){return e()?t:n})}},65550:(e,t,n)=>{var r=n(1786),i=n(68685);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},65576:(e,t,n)=>{var r=n(8832);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},65681:(e,t,n)=>{"use strict";n.d(t,{s:()=>r});var r="function"==typeof Symbol&&Symbol.observable||"@@observable"},65692:e=>{e.exports=function(e){return e.split("")}},65732:(e,t,n)=>{var r=n(96844),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g;e.exports=r(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)}),t})},65745:(e,t,n)=>{var r=n(89931),i=n(47737),o=n(7565),a=n(86284),s=n(21553);e.exports=function(e,t,n){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return i(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,n);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return o(e);case"[object Symbol]":return a(e)}}},65771:(e,t,n)=>{var r=n(95620),i=n(15831),o=n(7447),a=n(525);e.exports=function(e){return function(t){var n=i(t);return"[object Map]"==n?o(t):"[object Set]"==n?a(t):r(t,e(t))}}},65903:(e,t,n)=>{var r=n(10947),i=n(12227),o=n(16371);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},66244:(e,t,n)=>{var r=n(63114),i=n(6820);e.exports=function(e){return i(r(e).toLowerCase())}},66496:(e,t,n)=>{"use strict";n.d(t,{s:()=>s});var r=n(27778),i=n(22303),o=n(94126),a=n(12884);function s(e){return(0,r.N)(function(t,n){var r=!1,s=null,l=null,u=function(){if(null==l||l.unsubscribe(),l=null,r){r=!1;var e=s;s=null,n.next(e)}};t.subscribe((0,o._)(n,function(t){null==l||l.unsubscribe(),r=!0,s=t,l=(0,o._)(n,u,i.l),(0,a.Tg)(e(t)).subscribe(l)},function(){u(),n.complete()},void 0,function(){s=l=null}))})}},66647:(e,t,n)=>{var r=n(59741),i=n(27896),o=n(23025);e.exports=function(e,t,n,a,s,l){var u=1&n,c=e.length,d=t.length;if(c!=d&&!(u&&d>c))return!1;var f=l.get(e),h=l.get(t);if(f&&h)return f==t&&h==e;var p=-1,g=!0,m=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++p<c;){var y=e[p],v=t[p];if(a)var b=u?a(v,y,p,t,e,l):a(y,v,p,e,t,l);if(void 0!==b){if(b)continue;g=!1;break}if(m){if(!i(t,function(e,t){if(!o(m,t)&&(y===e||s(y,e,n,a,l)))return m.push(t)})){g=!1;break}}else if(!(y===v||s(y,v,n,a,l))){g=!1;break}}return l.delete(e),l.delete(t),g}},66894:(e,t,n)=>{"use strict";n.d(t,{j:()=>o});var r=n(82326),i=n(12884);function o(e,t,n){return[(0,r.p)(t,n)((0,i.Tg)(e)),(0,r.p)(function(e,r){return!t.call(n,e,r)})((0,i.Tg)(e))]}}
62,66954:(e,t,n)=>{"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}n.d(t,{A:()=>r})},67006:(e,t,n)=>{"use strict";n.d(t,{$M:()=>T,$Z:()=>P,BA:()=>ey,BG:()=>ee,Bo:()=>eu,CN:()=>ev,CT:()=>eC,FT:()=>es,Fe:()=>d,G_:()=>j,Hk:()=>eA,Hq:()=>I,KW:()=>M,Lo:()=>w,MB:()=>q,MX:()=>$,NH:()=>eo,Ni:()=>A,P5:()=>er,PH:()=>Y,Rf:()=>J,Rx:()=>ec,T4:()=>h,Vh:()=>W,WQ:()=>V,Yc:()=>x,_8:()=>K,_y:()=>C,b0:()=>Z,bq:()=>k,dM:()=>ep,dY:()=>Q,eA:()=>B,eX:()=>em,fe:()=>ei,hK:()=>el,j$:()=>u,nW:()=>ed,pz:()=>_,qW:()=>eI,qx:()=>N,sh:()=>eh,ts:()=>g,tv:()=>ea,ty:()=>H,vA:()=>f,wC:()=>eL,wE:()=>ef,wc:()=>G,xd:()=>eF,y1:()=>eg,zJ:()=>en,zh:()=>eb,zk:()=>et});var r,i,o=n(24268),a=n(57639),s=globalThis.Node;globalThis.Element;var l=globalThis.Text;globalThis.Range,globalThis.Selection,globalThis.StaticRange;var u=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView||null,c=e=>f(e)&&8===e.nodeType,d=e=>f(e)&&1===e.nodeType,f=e=>{var t=u(e);return!!t&&e instanceof t.Node},h=e=>{var t=e&&e.anchorNode&&u(e.anchorNode);return!!t&&e instanceof t.Selection},p=e=>
62f(e)&&3===e.nodeType,g=e=>e.clipboardData&&""!==e.clipboardData.getData("text/plain")&&1===e.clipboardData.types.length,m=(e,t,n)=>{for(var{childNodes:r}=e,i=r[t],o=t,a=!1,s=!1;(c(i)||d(i)&&0===i.childNodes.length||d(i)&&"false"===i.getAttribute("contenteditable"))&&(!a||!s);){if(o>=r.length){a=!0,o=t-1,n="backward";continue}if(o<0){s=!0,o=t+1,n="forward";continue}i=r[o],t=o,o+="forward"===n?1:-1}return[i,t]},y=(e,t,n)=>{var[r]=m(e,t,n);return r},v=e=>{var t="";if(p(e)&&e.nodeValue)return e.nodeValue;if(d(e)){for(var n of Array.from(e.childNodes))t+=v(n);var r=getComputedStyle(e).getPropertyValue("display");("block"===r||"list"===r||"BR"===e.tagName)&&(t+="\n")}return t},b=/data-slate-fragment="(.+?)"/m,w=e=>null!=e.getSelection?e.getSelection():document.getSelection(),x=(e,t,n)=>{var{target:r}=t;if(d(r)&&r.matches('[contentEditable="false"]'))return!1;var{document:i}=ef.getWindow(e);if(i.contains(r))return ef.hasDOMNode(e,r,{editable:!0});var o=n.find(e=>{var{addedNodes:t,removedNodes:n}=e;for(var i of t)if(i===r||i.contains(r))return!0;for(var o of n)if(o===r||o.contains(r))return!0});return!!o&&o!==t&&x(e,o,n)},k=()=>{for(var e,t,n,r=document.activeElement;null!=(e=r)&&e.shadowRoot&&null!=(t=r.shadowRoot)&&t.activeElement;)r=null==(n=r)||null==(n=n.shadowRoot)?void 0:n.activeElement;return r},E=(e,t)=>!!(e.compareDocumentPosition(t)&s.DOCUMENT_POSITION_PRECEDING),_="undefined"!=typeof navigator&&"undefined"!=typeof window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,S="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),A="undefined"!=typeof navigator&&/Android/.test(navigator.userAgent),T="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),C="undefined"!=typeof navigator&&/AppleWebKit(?!.*Chrome)/i.test(navigator.userAgent),O="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),j="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent),D="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),R=A&&"undefined"!=typeof navigator&&/Chrome?\/(?:[0-5]?\d)(?:\.)/i.test(navigator.userAgent),I="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent),P="undefined"!=typeof navigator&&/.*UCBrowser/.test(navigator.userAgent),M="undefined"!=typeof navigator&&/.*Wechat/.test(navigator.userAgent)&&!/.*MacWechat/.test(navigator.userAgent),N="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;"undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&/Version\/(\d+)/.test(navigator.userAgent)&&null!=(r=navigator.userAgent.match(/Version\/(\d+)/))&&r[1]&&parseInt(null==(i=navigator.userAgent.match(/Version\/(\d+)/))?void 0:i[1],10);var $=(!D||!R)&&!O&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges;function L(e){return(L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function F(e,t,n){var r;return r=function(e,t){if("object"!==L(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==L(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"===L(r)?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var U=0;class z{constructor(){F(this,"id",void 0),this.id="".concat(U++)}}var B=new WeakMap,q=new WeakMap,V=new WeakMap,H=new WeakMap,W=new WeakMap,Y=new WeakMap,G=new WeakMap,K=new WeakMap,X=new WeakMap,Z=new WeakMap,Q=new WeakMap,J=new WeakMap,ee=new WeakMap,et=new WeakMap,en=new WeakMap,er=new WeakMap,ei=new WeakMap,eo=new WeakMap,ea=new WeakMap,es=new WeakMap,el=new WeakMap,eu=new WeakMap,ec=Symbol("placeholder"),ed=Symbol("mark-placeholder"),ef={androidPendingDiffs:e=>ea.get(e),androidScheduleFlush:e=>{var t;null==(t=er.get(e))||t()},blur:e=>{var t=ef.toDOMNode(e,e),n=ef.findDocumentOrShadowRoot(e);J.set(e,!1),n.activeElement===t&&t.blur()},deselect:e=>{var{selection:t}=e,n=w(ef.findDocumentOrShadowRoot(e));n&&n.rangeCount>0&&n.removeAllRanges(),t&&o.gB.deselect(e)},findDocumentOrShadowRoot:e=>{var t=ef.toDOMNode(e,e),n=t.getRootNode();return n instanceof Document||n instanceof ShadowRoot?n:t.ownerDocument},findEventRange:(e,t)=>
62{"nativeEvent"in t&&(t=t.nativeEvent);var n,{clientX:r,clientY:i,target:a}=t;if(null==r||null==i)throw Error("Cannot resolve a Slate range from a DOM event: ".concat(t));var s=ef.toSlateNode(e,t.target),l=ef.findPath(e,s);if(o.Hg.isElement(s)&&o.KE.isVoid(e,s)){var u=a.getBoundingClientRect(),c=e.isInline(s)?r-u.left<u.left+u.width-r:i-u.top<u.top+u.height-i,d=o.KE.point(e,l,{edge:c?"start":"end"}),f=c?o.KE.before(e,d):o.KE.after(e,d);if(f)return o.KE.range(e,f)}var{document:h}=ef.getWindow(e);if(h.caretRangeFromPoint)n=h.caretRangeFromPoint(r,i);else{var p=h.caretPositionFromPoint(r,i);p&&((n=h.createRange()).setStart(p.offsetNode,p.offset),n.setEnd(p.offsetNode,p.offset))}if(!n)throw Error("Cannot resolve a Slate range from a DOM event: ".concat(t));return ef.toSlateRange(e,n,{exactMatch:!1,suppressThrow:!1})},findKey:(e,t)=>{var n=X.get(t);return n||(n=new z,X.set(t,n)),n},findPath:(e,t)=>{for(var n=[],r=t;;){var i=V.get(r);if(null==i)if(o.KE.isEditor(r))return n;else break;var a=q.get(r);if(null==a)break;n.unshift(a),r=i}throw Error("Unable to find the path for Slate node: ".concat(o.h6.stringify(t)))},focus:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{retries:5};if(!J.get(e)){if(t.retries<=0)throw Error("Could not set focus, editor seems stuck with pending operations");if(e.operations.length>0)return void setTimeout(()=>{ef.focus(e,{retries:t.retries-1})},10);var n=ef.toDOMNode(e,e),r=ef.findDocumentOrShadowRoot(e);if(r.activeElement!==n){if(e.selection&&r instanceof Document){var i=w(r),a=ef.toDOMRange(e,e.selection);null==i||i.removeAllRanges(),null==i||i.addRange(a)}e.selection||o.gB.select(e,o.KE.start(e,[])),J.set(e,!0),n.focus({preventScroll:!0})}}},getWindow:e=>{var t=H.get(e);if(!t)throw Error("Unable to find a host window element for this editor");return t},hasDOMNode:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{editable:i=!1}=r,o=ef.toDOMNode(e,e);try{n=d(t)?t:t.parentElement}catch(e){if(e instanceof Error&&!e.message.includes('Permission denied to access property "nodeType"'))throw e}return!!n&&n.closest("[data-slate-editor]")===o&&(!i||!!n.isContentEditable||"boolean"==typeof n.isContentEditable&&n.closest('[contenteditable="false"]')===o||!!n.getAttribute("data-slate-zero-width"))},hasEditableTarget:(e,t)=>f(t)&&ef.hasDOMNode(e,t,{editable:!0}),hasRange:(e,t)=>
62{var{anchor:n,focus:r}=t;return o.KE.hasPath(e,n.path)&&o.KE.hasPath(e,r.path)},hasSelectableTarget:(e,t)=>ef.hasEditableTarget(e,t)||ef.isTargetInsideNonReadonlyVoid(e,t),hasTarget:(e,t)=>f(t)&&ef.hasDOMNode(e,t),insertData:(e,t)=>{e.insertData(t)},insertFragmentData:(e,t)=>e.insertFragmentData(t),insertTextData:(e,t)=>e.insertTextData(t),isComposing:e=>!!ee.get(e),isFocused:e=>!!J.get(e),isReadOnly:e=>!!Q.get(e),isTargetInsideNonReadonlyVoid:(e,t)=>{if(Q.get(e))return!1;var n=ef.hasTarget(e,t)&&ef.toSlateNode(e,t);return o.Hg.isElement(n)&&o.KE.isVoid(e,n)},setFragmentData:(e,t,n)=>e.setFragmentData(t,n),toDOMNode:(e,t)=>{var n=Z.get(e),r=o.KE.isEditor(t)?W.get(e):null==n?void 0:n.get(ef.findKey(e,t));if(!r)throw Error("Cannot resolve a DOM node from Slate node: ".concat(o.h6.stringify(t)));return r},toDOMPoint:(e,t)=>{var[n]=o.KE.node(e,t.path),r=ef.toDOMNode(e,n);o.KE.void(e,{at:t})&&(t={path:t.path,offset:0});for(var i=Array.from(r.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),a=0,s=0;s<i.length;s++){var u=i[s],c=u.childNodes[0];if(null!=c&&null!=c.textContent){var{length:d}=c.textContent,f=u.getAttribute("data-slate-length"),h=a+(null==f?d:parseInt(f,10)),p=i[s+1];if(t.offset===h&&null!=p&&p.hasAttribute("data-slate-mark-placeholder")){var g,m,y=p.childNodes[0];g=[y instanceof l?y:p,null!=(m=p.textContent)&&m.startsWith("\uFEFF")?1:0];break}if(t.offset<=h){g=[c,Math.min(d,Math.max(0,t.offset-a))];break}a=h}}if(!g)throw Error("Cannot resolve a DOM point from Slate point: ".concat(o.h6.stringify(t)));return g},toDOMRange:(e,t)=>
62{var{anchor:n,focus:r}=t,i=o.Q6.isBackward(t),a=ef.toDOMPoint(e,n),s=o.Q6.isCollapsed(t)?a:ef.toDOMPoint(e,r),l=ef.getWindow(e).document.createRange(),[u,c]=i?s:a,[f,h]=i?a:s,p=!!(d(u)?u:u.parentElement).getAttribute("data-slate-zero-width"),g=!!(d(f)?f:f.parentElement).getAttribute("data-slate-zero-width");return l.setStart(u,p?1:c),l.setEnd(f,g?1:h),l},toSlateNode:(e,t)=>{var n=d(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?G.get(n):null;if(!r)throw Error("Cannot resolve a Slate node from DOM node: ".concat(n));return r},toSlatePoint:(e,t,n)=>{var{exactMatch:r,suppressThrow:i,searchDirection:a="backward"}=n,[l,u]=r?t:(e=>{var[t,n]=e;if(d(t)&&t.childNodes.length){var r=n===t.childNodes.length,i=r?n-1:n;for([t,i]=m(t,i,r?"backward":"forward"),r=i<n;d(t)&&t.childNodes.length;){var o=r?t.childNodes.length-1:0;t=y(t,o,r?"backward":"forward")}n=r&&null!=t.textContent?t.textContent.length:0}return[t,n]})(t),c=l.parentNode,f=null,h=0;if(c){var p=ef.toDOMNode(e,e),g=c.closest('[data-slate-void="true"]'),v=g&&p.contains(g)?g:null,b=c.closest('[contenteditable="false"]'),w=b&&p.contains(b)?b:null,x=c.closest("[data-slate-leaf]"),k=null;if(x){if(f=x.closest('[data-slate-node="text"]')){var _=ef.getWindow(e).document.createRange();_.setStart(f,0),_.setEnd(l,u);var S=_.cloneContents();[...Array.prototype.slice.call(S.querySelectorAll("[data-slate-zero-width]")),...Array.prototype.slice.call(S.querySelectorAll("[contenteditable=false]"))].forEac
62h(e=>{if(A&&!r&&e.hasAttribute("data-slate-zero-width")&&e.textContent.length>0&&"\uFEFF"!==e.textContext){e.textContent.startsWith("\uFEFF")&&(e.textContent=e.textContent.slice(1));return}e.parentNode.removeChild(e)}),h=S.textContent.length,k=f}}else if(v){for(var C=v.querySelectorAll("[data-slate-leaf]"),O=0;O<C.length;O++){var j=C[O];if(ef.hasDOMNode(e,j)){x=j;break}}x?(f=x.closest('[data-slate-node="text"]'),h=(k=x).textContent.length,k.querySelectorAll("[data-slate-zero-width]").forEach(e=>{h-=e.textContent.length})):h=1}else if(w){var D,R,I,P,M=e=>e?e.querySelectorAll("[data-slate-leaf]:not(:scope [data-slate-editor] [data-slate-leaf])"):[],N=w.closest('[data-slate-node="element"]');(x="forward"===a?null!=(I=[...M(N),...M(null==N?void 0:N.nextElementSibling)].find(e=>!!(w.compareDocumentPosition(e)&s.DOCUMENT_POSITION_FOLLOWING)))?I:null:null!=(P=[...M(null==N?void 0:N.previousElementSibling),...M(N)].findLast(e=>E(w,e)))?P:null)&&(f=x.closest('[data-slate-node="text"]'),k=x,"forward"===a?h=0:(h=k.textContent.length,k.querySelectorAll("[data-slate-zero-width]").forEach(e=>{h-=e.textContent.length})))}k&&h===k.textContent.length&&A&&"z"===k.getAttribute("data-slate-zero-width")&&null!=(D=k.textContent)&&D.startsWith("\uFEFF")&&(c.hasAttribute("data-slate-zero-width")||T&&null!=(R=k.textContent)&&R.endsWith("\n\n"))&&h--}if(A&&!f&&!r){var $=c.hasAttribute("data-slate-node")?c:c.closest("[data-slate-node]");if($&&ef.hasDOMNode(e,$,{editable:!0})){var L=ef.toSlateNode(e,$),{path:F,offset:U}=o.KE.start(e,ef.findPath(e,L));return $.querySelector("[data-slate-leaf]")||(U=u),{path:F,offset:U}}}if(!f){if(i)return null;throw Error("Cannot resolve a Slate point from DOM point: ".concat(t))}var z=ef.toSlateNode(e,f);return{path:ef.findPath(e,z),offset:h}},toSlateRange:(e,t,n)=>{var r,i,a,s,l,u,{exactMatch:c,suppressThrow:f}=n;if(h(t)?t.anchorNode:t.startContainer)if(h(t)){if(T&&t.rangeCount>1){s=t.focusNode;var p=t.getRangeAt(0),g=t.getRangeAt(t.rangeCount-1);if(s instanceof HTMLTableRowElement&&p.startContainer instanceof HTMLTableRowElement&&g.startContainer instanceof HTMLTableRowElement){function m(e){return e.childElementCount>0?m(e.children[0]):e}var y=p.startContainer,v=g.startContainer,b=m(y.children[p.startOffset]),w=m(v.children[g.startOffset]);l=0,i=w.childNodes.length>0?w.childNodes[0]:w,s=b.childNodes.length>0?b.childNodes[0]:b,a=w instanceof HTMLElement?w.innerHTML.length:0}else p.startContainer===s?(i=g.endContainer,a=g.endOffset,l=p.startOffset):(i=p.startContainer,a=p.endOffset,l=g.startOffset)}else i=t.anchorNode,a=t.anchorOffset,s=t.focusNode,l=t.focusOffset;u=j&&(e=>{for(var t=e&&e.parentNode;t;){if("[object ShadowRoot]"===t.toString())return!0;t=t.parentNode}return!1})(i)||T?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed}else i=t.startContainer,a=t.startOffset,s=t.endContainer,l=t.endOffset,u=t.collapsed;if(null==i||null==s||null==a||null==l)throw Error("Cannot resolve a Slate range from DOM range: ".concat(t));T&&null!=(r=s.textContent)&&r.endsWith("\n\n")&&l===s.textContent.length&&l--;var x=ef.toSlatePoint(e,[i,a],{exactMatch:c,suppressThrow:f});if(!x)return null;var k=E(i,s)||i===s&&l<a,_=u?x:ef.toSlatePoint(e,[s,l],{exactMatch:c,suppressThrow:f,searchDirection:k?"forward":"backward"});if(!_)return null;var S={anchor:x,focus:_};return o.Q6.isExpanded(S)&&o.Q6.isForward(S)&&d(s)&&o.KE.void(e,{at:S.focus,mode:"highest"})&&(S=o.KE.unhangRange(e,S,{voids:!0})),S}};function eh(e,t){var{path:n,diff:r}=t;if(!o.KE.hasPath(e,n))return!1;var i=o.bP.get(e,n);if(!o.EY.isText(i))return!1;if(r.start!==i.text.length||0===r.text.length)return i.text.slice(r.start,r.start+r.text.length)===r.text;var a=o.wA.next(n);if(!o.KE.hasPath(e,a))return!1;var s=o.bP.get(e,a);return o.EY.isText(s)&&s.text.startsWith(r.text)}function ep(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce((e,t)=>e.slice(0,t.start)+t.text+e.slice(t.end),e)}function eg(e,t){var{start:n,end:r,text:i}=t,o=e.slice(n,r),a=function(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++)if(e.charAt(r)!==t.charAt(r))return r;return n}(o,i),s=Math.min(o.length-a,i.length-a),l=function(e,t,n){for(var r=Math.min(e.length,t.length,n),i=0;i<r;i++)if(e.charAt(e.length-i-1)!==t.charAt(t.length-i-1))return i;return r}(o,i,s),u={start:n+a,end:r-l,text:i.slice(a,i.length-l)};return u.start===u.end&&0===u.text.length?null:u}function em(e,t,n){var r=Math.min(t.start,n.start),i=Math.max(0,Math.min(t.start+t.text.length,n.end)-n.start),o=ep(e,t,n),a=Math.max(n.start+n.text.length,t.start+t.text.length+(t.start+t.text.length>n.start?n.text.length:0)-i),s=o.slice(r,a);return eg(e,{start:r,end:Math.max(t.end,n.end-t.text.length+(t.end-t.start)),text:s})}function ey(e){var{path:t,diff:n}=e;return{anchor:{path:t,offset:n.start},focus:{path:t,offset:n.end}}}function ev(e,t){var{path:n,offset:r}=t;if(!o.KE.hasPath(e,n))return null;var i=o.bP.get(e,n);if(!o.EY.isText(i))return null;var a=o.KE.above(e,{match:t=>o.Hg.isElement(t)&&o.KE.isBlock(e,t),at:n});if(!a)return null;for(;r>i.text.length;){var s=o.KE.next(e,{at:n,match:o.EY.isText});if(!s||!o.wA.isDescendant(s[1],a[1]))return null;r-=i.text.length,i=s[0],n=s[1]}return{path:n,offset:r}}function eb(e,t){var n=ev(e,t.anchor);if(!n)return null;if(o.Q6.isCollapsed(t))return{anchor:n,focus:n};var r=ev(e,t.focus);
62return r?{anchor:n,focus:r}:null}function ew(e,t,n){var r=ea.get(e),i=null==r?void 0:r.find(e=>{var{path:n}=e;return o.wA.equals(n,t.path)});if(!i||t.offset<=i.diff.start)return o.bR.transform(t,n,{affinity:"backward"});var{diff:a}=i;if(t.offset<=a.start+a.text.length){var s={path:t.path,offset:a.start},l=o.bR.transform(s,n,{affinity:"backward"});return l?{path:l.path,offset:l.offset+t.offset-a.start}:null}var u={path:t.path,offset:t.offset-a.text.length+a.end-a.start},c=o.bR.transform(u,n,{affinity:"backward"});return c?"split_node"===n.type&&o.wA.equals(n.path,t.path)&&u.offset<n.position&&a.start<n.position?c:{path:c.path,offset:c.offset+a.text.length-a.end+a.start}:null}function ex(e,t,n){var r=ew(e,t.anchor,n);if(!r)return null;if(o.Q6.isCollapsed(t))return{anchor:r,focus:r};var i=ew(e,t.focus,n);return i?{anchor:r,focus:i}:null}var ek=(e,t)=>{var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},eE=(e,t,n)=>{var r=ef.toDOMRange(e,t).getBoundingClientRect(),i=ef.toDOMRange(e,n).getBoundingClientRect();return ek(r,i)&&ek(i,r)};function e_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?e_(Object(n),!0).forEach(function(t){F(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var eA=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x-slate-fragment",{apply:n,onChange:r,deleteBackward:i,addMark:a,removeMark:s}=e;return Z.set(e,new WeakMap),e.addMark=(t,n)=>{var r,i;null==(r=er.get(e))||r(),!ei.get(e)&&null!=(i=ea.get(e))&&i.length&&ei.set(e,null),eo.delete(e),a(t,n)},e.removeMark=t=>{var n;!ei.get(e)&&null!=(n=ea.get(e))&&n.length&&ei.set(e,null),eo.delete(e),s(t)},e.deleteBackward=t=>{if("line"!==t)return i(t);if(e.selection&&o.Q6.isCollapsed(e.selection)){var n=o.KE.above(e,{match:t=>o.Hg.isElement(t)&&o.KE.isBlock(e,t),at:e.selection});if(n){var[,r]=n,a=o.KE.range(e,r,e.selection.anchor),s=((e,t)=>{var n=o.KE.range(e,o.Q6.end(t)),r=Array.from(o.KE.positions(e,{at:t})),i=0,a=r.length,s=Math.floor(a/2);if(eE(e,o.KE.range(e,r[i]),n))return o.KE.range(e,r[i],n);if(r.length<2)return o.KE.range(e,r[r.length-1],n);for(;s!==r.length&&s!==i;)eE(e,o.KE.range(e,r[s]),n)?a=s:i=s,s=Math.floor((i+a)/2);return o.KE.range(e,r[i],n)})(e,a);o.Q6.isCollapsed(s)||o.gB.delete(e,{at:s})}}},e.apply=t=>{var r=[],i=[],a=ea.get(e);if(null!=a&&a.length){var s=a.map(e=>(function(e,t){var{path:n,diff:r,id:i}=e;switch(t.type){case"insert_text":if(!o.wA.equals(t.path,n)||t.offset>=r.end)return e;if(t.offset<=r.start)return{diff:{start:t.text.length+r.start,end:t.text.length+r.end,text:r.text},id:i,path:n};return{diff:{start:r.start,end:r.end+t.text.length,text:r.text},id:i,path:n};case"remove_text":if(!o.wA.equals(t.path,n)||t.offset>=r.end)return e;if(t.offset+t.text.length<=r.start)return{diff:{start:r.start-t.text.length,end:r.end-t.text.length,text:r.text},id:i,path:n};return{diff:{start:r.start,end:r.end-t.text.length,text:r.text},id:i,path:n};case"split_node":if(!o.wA.equals(t.path,n)||t.position>=r.end)return{diff:r,id:i,path:o.wA.transform(n,t,{affinity:"backward"})};if(t.position>r.start)return{diff:{start:r.start,end:Math.min(t.position,r.end),text:r.text},id:i,path:n};return{diff:{start:r.start-t.position,end:r.end-t.position,text:r.text},id:i,path:o.wA.transform(n,t,{affinity:"forward"})};case"merge_node":if(!o.wA.equals(t.path,n))return{diff:r,id:i,path:o.wA.transform(n,t)};return{diff:{start:r.start+t.position,end:r.end+t.position,text:r.text},id:i,path:o.wA.transform(n,t)}}var a=o.wA.transform(n,t);return a?{diff:r,path:a,id:i}:null})(e,t)).filter(Boolean);ea.set(e,s)}var l=el.get(e);l&&el.set(e,ex(e,l,t));var u=es.get(e);if(null!=u&&u.at){var c=o.bR.isPoint(null==u?void 0:u.at)?ew(e,u.at,t):ex(e,u.at,t);es.set(e,c?eS(eS({},u),{},{at:c}):null)}switch(t.type){case"insert_text":case"remove_text":case"set_node":case"split_node":r.push(...eT(e,t.path));break;case"set_selection":null==(d=et.get(e))||d.unref(),et.delete(e);break;case"insert_node":case"remove_node":r.push(...eT(e,o.wA.parent(t.path)));break;case"merge_node":r.push(...eT(e,o.wA.previous(t.path)));break;case"move_node":r.push(...eT(e,o.wA.common(o.wA.parent(t.path),o.wA.parent(t.newPath)))),o.wA.isBefore(t.path,t.newPath)?(r.push(...eT(e,o.wA.parent(t.path))),f=t.newPath):(r.push(...eT(e,o.wA.parent(t.newPath))),f=t.path);var d,f,h=o.bP.get(e,o.wA.parent(f)),p=ef.findKey(e,h);i.push([o.KE.pathRef(e,o.wA.parent(f)),p])}switch(n(t),t.type){case"insert_node":case"remove_node":case"merge_node":case"move_node":case"split_node":case"insert_text":case"remove_text":case"set_selection":B.set(e,!0)}for(var[g,m]of r){var[y]=o.KE.node(e,g);X.set(y,m)}for(var[v,b]of i){if(v.current){var[w]=o.KE.node(e,v.current);X.set(w,b)}v.unref()}},e.setFragmentData=n=>
62{var{selection:r}=e;if(r){var[i,a]=o.Q6.edges(r),s=o.KE.void(e,{at:i.path}),l=o.KE.void(e,{at:a.path});if(!o.Q6.isCollapsed(r)||s){var u=ef.toDOMRange(e,r),c=u.cloneContents(),d=c.childNodes[0];if(c.childNodes.forEach(e=>{e.textContent&&""!==e.textContent.trim()&&(d=e)}),l){var[f]=l,h=u.cloneRange(),g=ef.toDOMNode(e,f);h.setEndAfter(g),c=h.cloneContents()}if(s&&(d=c.querySelector("[data-slate-spacer]")),Array.from(c.querySelectorAll("[data-slate-zero-width]")).forEach(e=>{var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""}),p(d)){var m=d.ownerDocument.createElement("span");m.style.whiteSpace="pre",m.appendChild(d),c.appendChild(m),d=m}var y=JSON.stringify(e.getFragment()),b=window.btoa(encodeURIComponent(y));d.setAttribute("data-slate-fragment",b),n.setData("application/".concat(t),b);var w=c.ownerDocument.createElement("div");return w.appendChild(c),w.setAttribute("hidden","true"),c.ownerDocument.body.appendChild(w),n.setData("text/html",w.innerHTML),n.setData("text/plain",v(w)),c.ownerDocument.body.removeChild(w),n}}},e.insertData=t=>{e.insertFragmentData(t)||e.insertTextData(t)},e.insertFragmentData=n=>{var r=n.getData("application/".concat(t))||(e=>{var[,t]=e.getData("text/html").match(b)||[];return t})(n);if(r){var i=JSON.parse(decodeURIComponent(window.atob(r)));return e.insertFragment(i),!0}return!1},e.insertTextData=t=>{var n=t.getData("text/plain");if(n){var r=n.split(/\r\n|\r|\n/),i=!1;for(var a of r)i&&o.gB.splitNodes(e,{always:!0}),e.insertText(a),i=!0;return!0}return!1},e.onChange=t=>{var n=en.get(e);n&&n(t),r(t)},e},eT=(e,t)=>{var n=[];for(var[r,i]of o.KE.levels(e,{at:t})){var a=ef.findKey(e,r);n.push([i,a])}return n},eC=3,eO={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",insertSoftBreak:"shift+enter",splitBlock:"enter",undo:"mod+z"},ej={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},eD={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},eR=e=>{var t=eO[e],n=ej[e],r=eD[e],i=t&&(0,a.v_)(t),o=n&&(0,a.v_)(n),s=r&&(0,a.v_)(r);return e=>!!(i&&i(e)||S&&o&&o(e)||!S&&s&&s(e))},eI={isBold:eR("bold"),isCompose:eR("compose"),isMoveBackward:eR("moveBackward"),isMoveForward:eR("moveForward"),isDeleteBackward:eR("deleteBackward"),isDeleteForward:eR("deleteForward"),isDeleteLineBackward:eR("deleteLineBackward"),isDeleteLineForward:eR("deleteLineForward"),isDeleteWordBackward:eR("deleteWordBackward"),isDeleteWordForward:eR("deleteWordForward"),isExtendBackward:eR("extendBackward"),isExtendForward:eR("extendForward"),isExtendLineBackward:eR("extendLineBackward"),isExtendLineForward:eR("extendLineForward"),isItalic:eR("italic"),isMoveLineBackward:eR("moveLineBackward"),isMoveLineForward:eR("moveLineForward"),isMoveWordBackward:eR("moveWordBackward"),isMoveWordForward:eR("moveWordForward"),isRedo:eR("redo"),isSoftBreak:eR("insertSoftBreak"),isSplitBlock:eR("splitBlock"),isTransposeCharacter:eR("transposeCharacter"),isUndo:eR("und
62o")};function eP(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var eM=["anchor","focus"],eN=["anchor","focus"],e$=(e,t)=>{var n=eP(e,eM),r=eP(t,eN);return e[ec]===t[ec]&&((e,t)=>Object.keys(e).length===Object.keys(t).length&&Object.keys(e).every(n=>t.hasOwnProperty(n)&&e[n]===t[n]))(n,r)},eL=(e,t)=>{if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var r=e[n],i=t[n];if(!o.Q6.equals(r,i)||!e$(r,i))return!1}return!0},eF=(e,t)=>{if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var r=e[n],i=t[n];if(r.anchor.offset!==i.anchor.offset||r.focus.offset!==i.focus.offset||!e$(r,i))return!1}return!0}},67122:(e,t,n)=>{"use strict";n.d(t,{Vu:()=>l,fj:()=>a,qO:()=>s});var r=n(77865),i=n(72871),o=n(12378);function a(e){let t=(0,i.zf)(),n={sid:(0,o.eJ)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>{var e;return e=n,(0,r.Ce)({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}};return e&&s(n,e),n}function s(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,i.zf)(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,o.eJ)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function l(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),s(e,n)}},67511:(e,t,n)=>{"use strict";n.d(t,{U:()=>r});let r="production"},67527:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},67912:(e,t,n)=>{var r=n(58861),i=Object.prototype.hasOwnProperty;e.exports=function(e){for(var t=e.name+"",n=r[t],o=i.call(r,t)?n.length:0;o--;){var a=n[o],s=a.func;if(null==s||s==e)return a.name}return t}},67913:(e,t,n)=>{"use strict";n.d(t,{s:()=>s});var r=n(87876),i=n(53056),o=n(87086),a=n(23791);let s=(0,r._C)(()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{var n,r;if(n=t,(r=e)&&(function(e,t){let n=e.message,r=t.message;return(!!n||!!r)&&(!n||!!r)&&(!!n||!r)&&n===r&&!!u(e,t)&&!!l(e,t)&&!0}(n,r)||function(e,t){let n=c(t),r=c(e);return!!n&&!!r&&n.type===r.type&&n.value===r.value&&!!u(e,t)&&!!l(e,t)}(n,r)))return i.T&&o.vF.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}});function l(e,t){let n=(0,a.RV)(e),r=(0,a.RV)(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||r.length!==n.length)return!1;for(let e=0;e<r.length;e++){let t=r[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function u(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return n.join("")===r.join("")}catch(e){return!1}}function c(e){return e.exception&&e.exception.values&&e.exception.values[0]}},68053:(e,t,n)=>{"use strict";n.d(t,{l:()=>o});var r=n(65681),i=n(73315);function o(e){return(0,i.T)(e[r.s])}}
62,68138:(e,t,n)=>{"use strict";n.d(t,{Hb:()=>s,Jr:()=>l});var r=n(82203),i=n(7531),o=n(22219);let a=(0,r.createContext)(o.p8);function s(e){let{children:t,store:n}=e;return(0,r.useEffect)(()=>(0,o.Kc)(n.flush),[n.flush]),(0,r.useEffect)(()=>(0,o.T_)(n.endWithBeacon),[n.endWithBeacon]),(0,i.jsx)(a.Provider,{value:n.logger,children:t})}function l(){return(0,r.useContext)(a)}},68160:(e,t,n)=>{var r=n(7328),i=n(84907);e.exports=function e(t,n,o,a,s){var l=-1,u=t.length;for(o||(o=i),s||(s=[]);++l<u;){var c=t[l];n>0&&o(c)?n>1?e(c,n-1,o,a,s):r(s,c):a||(s[s.length]=c)}return s}},68255:(e,t,n)=>{"use strict";n.d(t,{D2:()=>tc,EN:()=>td,GP:()=>th,t$:()=>tg,qg:()=>tp,WI:()=>tt}),Symbol.for("constructDateFrom");let r={},i={};function o(e,t){try{let n=(r[e]||=new Intl.DateTimeFormat("en-GB",{timeZone:e,hour:"numeric",timeZoneName:"longOffset"}).format)(t).split("GMT")[1]||"";if(n in i)return i[n];return s(n,n.split(":"))}catch{if(e in i)return i[e];let t=e?.match(a);if(t)return s(e,t.slice(1));return NaN}}let a=/([+-]\d\d):?(\d\d)?/;function s(e,t){let n=+t[0],r=+(t[1]||0);return i[e]=n>0?60*n+r:60*n-r}class l extends Date{constructor(...e){super(),e.length>1&&"string"==typeof e[e.length-1]&&(this.timeZone=e.pop()),this.internal=new Date,isNaN(o(this.timeZone,this))?this.setTime(NaN):e.length?"number"==typeof e[0]&&(1===e.length||2===e.length&&"number"!=typeof e[1])?this.setTime(e[0]):"string"==typeof e[0]?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),d(this,NaN),c(this)):this.setTime(Date.now())}static tz(e,...t){return t.length?new l(...t,e):new l(Date.now(),e)}withTimeZone(e){return new l(+this,e)}getTimezoneOffset(){return-o(this.timeZone,this)}setTime(e){return Date.prototype.setTime.apply(this,arguments),c(this),+this}[Symbol.for("constructDateFrom")](e){return new l(+new Date(e),this.timeZone)}}let u=/^(get|set)(?!UTC)/;function c(e){e.internal.setTime(+e),e.internal.setUTCMinutes(e.internal.getUTCMinutes()-e.getTimezoneOffset())}function d(e){let t=o(e.timeZone,e),n=new Date(+e);n.setUTCHours(n.getUTCHours()-1);let r=-new Date(+e).getTimezoneOffset(),i=r- -new Date(+n).getTimezoneOffset(),a=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();i&&a&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+i);let s=r-t;s&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+s);let l=o(e.timeZone,e),u=-new Date(+e).getTimezoneOffset()-l-s;if(l!==t&&u){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+u);let t=l-o(e.timeZone,e);t&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+t),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+t))}}Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!u.test(e))return;let t=e.replace(u,"$1UTC");l.prototype[t]&&(e.startsWith("get")?l.prototype[e]=function(){return this.internal[t]()}:(l.prototype[e]=function(){var e;return Date.prototype[t].apply(this.internal,arguments),e=this,Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),d(e),+this},l.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),c(this),+this}))});class f extends l{static tz(e,...t){return t.length?new f(...t,e):new f(Date.now(),e)}toISOString(){let[e,t,n]=this.tzComponents(),r=`${e}${t}:${n}`;return this.internal.toISOString().slice(0,-1)+r}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){let[e,t,n,r]=this.internal.toUTCString().split(" ");return`${e?.slice(0,-1)} ${n} ${t} ${r}`}toTimeString(){var e,t;let n=this.internal.toUTCString().split(" ")[4],[r,i,o]=this.tzComponents();return`${n} GMT${r}${i}${o} (${e=this.timeZone,t=this,new Intl.DateTimeFormat("en-GB",{timeZone:e,timeZoneName:"long"}).format(t).slice(12)})`}toLocaleString(e,t){return Date.prototype.toLocaleString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleDateString(e,t){return Date.prototype.toLocaleDateString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleTimeString(e,t){return Date.prototype.toLocaleTimeString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}tzComponents(){let e=this.getTimezoneOffset(),t=String(Math.floor(Math.abs(e)/60)).padStart(2,"0"),n=String(Math.abs(e)%60).padStart(2,"0");return[e>0?"-":"+",t,n]}withTimeZone(e){return new f(+this,e)}[Symbol.for("constructDateFrom")](e){return new f(+new Date(e),this.timeZone)}}class h extends Date{constructor(){super(),this.setTime(0==arguments.length?Date.now():1==arguments.length?"string"==typeof arguments[0]?+new Date(arguments[0]):arguments[0]:Date.UTC(...arguments))}getTimezoneOffset(){return 0}}let p=/^(get|set)(?!UTC)/;
62Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(p.test(e)){let t=Date.prototype[e.replace(p,"$1UTC")];t&&(h.prototype[e]=t)}}),new Intl.DateTimeFormat("en-US",{weekday:"short",timeZone:"UTC"}),new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",timeZone:"UTC"}),new Intl.DateTimeFormat("en-GB",{hour12:!1,hour:"numeric",minute:"numeric",second:"numeric",timeZone:"UTC"});let g={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function m(e){return (t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}let y={date:m({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:m({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:m({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},v={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function b(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,i=n?.width?String(n.width):t;r=e.formattingValues[i]||e.formattingValues[t]}else{let t=e.defaultWidth,i=n?.width?String(n.width):e.defaultWidth;r=e.values[i]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function w(e){return(t,n={})=>{let r,i=n.width,o=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;let s=a[0],l=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}(l,e=>e.test(s)):function(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}(l,e=>e.test(s));return r=e.valueCallback?e.valueCallback(u):u,{value:r=n.valueCallback?n.valueCallback(r):r,rest:t.slice(s.length)}}}let x={code:"en-US",formatDistance:(e,t,n)=>{let r,i=g[e];if(r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),n?.addSuffix)if(n.comparison&&n.comparison>0)return"in "+r;else return r+" ago";return r},formatLong:y,formatRelative:(e,t,n,r)=>v[e],localize:{ordinalNumber:(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:b({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:b({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:b({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:b({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
62ay","Saturday"]},defaultWidth:"wide"}),dayPeriod:b({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:function(e){return(t,n={})=>{let r=t.match(e.matchPattern);if(!r)return null;let i=r[0],o=t.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];return{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(i.length)}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:w({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:w({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:w({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:w({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:w({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};var k=n(52826),E=n(28975);function _(e){let t=(0,E.a)(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),e-n}var S=n(18287),A=n(6783);function T(e,t){let n=(0,E.a)(e,t?.in);return n.setHours(0,0,0,0),n}var C=n(26319);function O(e,t){return(0,C.k)(e,{...t,weekStartsOn:1})}function j(e,t){let n=(0,E.a)(e,t?.in),r=n.getFullYear(),i=(0,S.w)(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);let o=O(i),a=(0,S.w)(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);let s=O(a);return n.getTime()>=o.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function D(e,t){let n=(0,E.a)(e,t?.in);return Math.round((O(n)-function(e,t){let n=j(e,void 0),r=(0,S.w)(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),O(r)}(n))/A.my)+1}function R(e,t){let n=(0,E.a)(e,t?.in),r=n.getFullYear(),i=(0,k.q)(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,a=(0,S.w)(t?.
62in||e,0);a.setFullYear(r+1,0,o),a.setHours(0,0,0,0);let s=(0,C.k)(a,t),l=(0,S.w)(t?.in||e,0);l.setFullYear(r,0,o),l.setHours(0,0,0,0);let u=(0,C.k)(l,t);return+n>=+s?r+1:+n>=+u?r:r-1}function I(e,t){let n=(0,E.a)(e,t?.in);return Math.round(((0,C.k)(n,t)-function(e,t){let n=(0,k.q)(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=R(e,t),o=(0,S.w)(t?.in||e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),(0,C.k)(o,t)}(n,t))/A.my)+1}function P(e,t){let n=Math.abs(e).toString().padStart(t,"0");return(e<0?"-":"")+n}let M={y(e,t){let n=e.getFullYear(),r=n>0?n:1-n;return P("yy"===t?r%100:r,t.length)},M(e,t){let n=e.getMonth();return"M"===t?String(n+1):P(n+1,2)},d:(e,t)=>P(e.getDate(),t.length),a(e,t){let n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>P(e.getHours()%12||12,t.length),H:(e,t)=>P(e.getHours(),t.length),m:(e,t)=>P(e.getMinutes(),t.length),s:(e,t)=>P(e.getSeconds(),t.length),S(e,t){let n=t.length;return P(Math.trunc(e.getMilliseconds()*Math.pow(10,n-3)),t.length)}},N={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},$={G:function(e,t,n){let r=+(e.getFullYear()>0);switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){let t=e.getFullYear();return n.ordinalNumber(t>0?t:1-t,{unit:"year"})}return M.y(e,t)},Y:function(e,t,n,r){let i=R(e,r),o=i>0?i:1-i;return"YY"===t?P(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):P(o,t.length)},R:function(e,t){return P(j(e),t.length)},u:function(e,t){return P(e.getFullYear(),t.length)},Q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return P(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return P(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){let r=e.getMonth();switch(t){case"M":case"MM":return M.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){let r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return P(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){let i=I(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):P(i,t.length)},I:function(e,t,n){let r=D(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):P(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):M.d(e,t)},D:function(e,t,n){let r=function(e,t){let n=(0,E.a)(e,void 0);return function(e,t,n){let[r,i]=function(e,...t){let n=S.w.bind(null,e||t.find(e=>"object"==typeof e));return t.map(n)}(void 0,e,t),o=T(r),a=T(i);return Math.round((o-_(o)-(a-_(a)))/A.w4)}(n,function(e,t){let n=(0,E.a)(e,void 0);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}(n))+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):P(r,t.length)},E:function(e,t,n){let r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){let i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return P(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){let i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return P(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){let r=e.getDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return P(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){let r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){let r,i=e.getHours();switch(r=12===i?N.noon:0===i?N.midnight:i/12>
62=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){let r,i=e.getHours();switch(r=i>=17?N.evening:i>=12?N.afternoon:i>=4?N.morning:N.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return M.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):M.H(e,t)},K:function(e,t,n){let r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):P(r,t.length)},k:function(e,t,n){let r=e.getHours();return(0===r&&(r=24),"ko"===t)?n.ordinalNumber(r,{unit:"hour"}):P(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):M.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):M.s(e,t)},S:function(e,t){return M.S(e,t)},X:function(e,t,n){let r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return F(r);case"XXXX":case"XX":return U(r);default:return U(r,":")}},x:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"x":return F(r);case"xxxx":case"xx":return U(r);default:return U(r,":")}},O:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+L(r,":");default:return"GMT"+U(r,":")}},z:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+L(r,":");default:return"GMT"+U(r,":")}},t:function(e,t,n){return P(Math.trunc(e/1e3),t.length)},T:function(e,t,n){return P(+e,t.length)}};function L(e,t=""){let n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return 0===o?n+String(i):n+String(i)+t+P(o,2)}function F(e,t){return e%60==0?(e>0?"-":"+")+P(Math.abs(e)/60,2):U(e,t)}function U(e,t=""){let n=Math.abs(e);return(e>0?"-":"+")+P(Math.trunc(n/60),2)+t+P(n%60,2)}let z=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},B=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},q={p:B,P:(e,t)=>{let n,r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return z(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",z(i,t)).replace("{{time}}",B(o,t))}},V=/^D+$/,H=/^Y+$/,W=["D","DD","YY","YYYY"];function Y(e,t,n){let r=function(e,t,n){let r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(r),W.includes(e))throw RangeError(r)}let G=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,K=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,X=/^'([^]*?)'?$/,Z=/''/g,Q=/[a-zA-Z]/;function J(e,t,n){let r=(0,k.q)(),i=n?.locale??r.locale??x,o=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=(0,E.a)(e,n?.in);if(!(s instanceof Date||"object"==typeof s&&"[object Date]"===Object.prototype.toString.call(s))&&"number"!=typeof s||isNaN(+(0,E.a)(s)))throw RangeError("Invalid time value");let l=t.match(K).map(e=>{let t=e[0];return"p"===t||"P"===t?(0,q[t])(e,i.formatLong):e}).join("").match(G).map(e=>{if("''"===e)return{isToken:!1,value:"'"};let t=e[0];if("'"===t)return{isToken:!1,value:function(e){let t=e.match(X);return t?t[1].replace(Z,"'"):e}(e)};if($[t])return{isToken:!0,value:e};
62if(t.match(Q))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});i.localize.preprocessor&&(l=i.localize.preprocessor(s,l));let u={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return l.map(r=>{if(!r.isToken)return r.value;let o=r.value;return(!n?.useAdditionalWeekYearTokens&&H.test(o)||!n?.useAdditionalDayOfYearTokens&&V.test(o))&&Y(o,t,String(e)),(0,$[o[0]])(s,o,i.localize,u)}).join("")}class ee{validate(e,t){return!0}constructor(){this.subPriority=0}}class et extends ee{constructor(e,t,n,r,i){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=r,i&&(this.subPriority=i)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}}class en extends ee{constructor(e,t){super(),this.priority=10,this.subPriority=-1,this.context=e||(e=>(0,S.w)(t,e))}set(e,t){return t.timestampIsSet?e:(0,S.w)(e,function(e,t){var n;let r="function"==typeof(n=t)&&n.prototype?.constructor===n?new t(0):(0,S.w)(t,0);return r.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),r.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),r}(e,this.context))}}class er{run(e,t,n,r){let i=this.parse(e,t,n,r);return i?{setter:new et(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(e,t,n){return!0}}class ei extends er{parse(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}set(e,t,n){return t.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}constructor(...e){super(...e),this.priority=140,this.incompatibleTokens=["R","u","t","T"]}}let eo={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},ea={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function es(e,t){return e?{value:t(e.value),rest:e.rest}:e}function el(e,t){let n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function eu(e,t){let n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};let r="+"===n[1]?1:-1,i=n[2]?parseInt(n[2],10):0,o=n[3]?parseInt(n[3],10):0,a=n[5]?parseInt(n[5],10):0;return{value:r*(i*A.s0+o*A.Cg+a*A._m),rest:t.slice(n[0].length)}}function ec(e){return el(eo.anyDigitsSigned,e)}function ed(e,t){switch(e){case 1:return el(eo.singleDigit,t);case 2:return el(eo.twoDigits,t);case 3:return el(eo.threeDigits,t);case 4:return el(eo.fourDigits,t);default:return el(RegExp("^\\d{1,"+e+"}"),t)}}function ef(e,t){switch(e){case 1:return el(eo.singleDigitSigned,t);case 2:return el(eo.twoDigitsSigned,t);case 3:return el(eo.threeDigitsSigned,t);case 4:return el(eo.fourDigitsSigned,t);default:return el(RegExp("^-?\\d{1,"+e+"}"),t)}}function eh(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function ep(e,t){let n,r=t>0,i=r?t:1-t;if(i<=50)n=e||100;else{let t=i+50;n=e+100*Math.trunc(t/100)-100*(e>=t%100)}return r?n:1-n}function eg(e){return e%400==0||e%4==0&&e%100!=0}class em extends er{parse(e,t,n){let r=e=>({year:e,isTwoDigitYear:"yy"===t});switch(t){case"y":return es(ed(4,e),r);case"yo":return es(n.ordinalNumber(e,{unit:"year"}),r);default:return es(ed(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n){let r=e.getFullYear();if(n.isTwoDigitYear){let t=ep(n.year,r);return e.setFullYear(t,0,1),e.setHours(0,0,0,0),e}let i="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}constructor(...e){super(...e),this.priority=130,this.incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"]}}class ey extends er{parse(e,t,n){let r=e=>({year:e,isTwoDigitYear:"YY"===t});switch(t){case"Y":return es(ed(4,e),r);case"Yo":return es(n.ordinalNumber(e,{unit:"year"}),r);default:return es(ed(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,r){let i=R(e,r);if(n.isTwoDigitYear){let t=ep(n.year,i);return e.setFullYear(t,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),(0,C.k)(e,r)}let o="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(o,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),(0,C.k)(e,r)}constructor(...e){super(...e),this.priority=130,this.incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]}}class ev extends er{parse(e,t){return"R"===t?ef(4,e):ef(t.length,e)}set(e,t,n){let r=(0,S.w)(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),O(r)}constructor(...e){super(...e),this.priority=130,this.incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]}}class eb extends er{parse(e,t){return"u"===t?ef(4,e):ef(t.length,e)}set(e,t,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}constructor(...e){super(...e),this.priority=130,this.incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]}}class ew extends er{parse(e,t,n){switch(t){case"Q":case"QQ":return ed(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth((n-1)*3,1),e.setHours(0,0,0,0),e}constructor(...e){super(...e),this.priority=120,this.incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]}}class ex extends er{parse(e,t,n){switch(t){case"q":case"qq":return ed(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth((n-1)*3,1),e.setHours(0,0,0,0),e}constructor(...e){super(...e),this.priority=120,this.incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]}}class ek extends er{parse(e,t,n){let r=e=>e-1;switch(t){case"M":return es(el(eo.month,e),r);case"MM":return es(ed(2,e),r);case"Mo":return es(n.ordinalNumber(e,{unit:"month"}),r);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}constructor(...e){super(...e),this.incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"],this.priority=110}}class eE extends er{parse(e,t,n){let r=e=>e-1;switch(t){case"L":return es(el(eo.month,e),r);case"LL":return es(ed(2,e),r);case"Lo":return es(n.ordinalNumber(e,{unit:"month"}),r);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}constructor(...e){super(...e),this.priority=110,this.incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]}}class e_ extends er{parse(e,t,n){switch(t){case"w":return el(eo.week,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return ed(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,r){return(0,C.k)(function(e,t,n){let r=(0,E.a)(e,n?.in),i=I(r,n)-t;return r.setDate(r.getDate()-7*i),(0,E.a)(r,n?.in)}(e,n,r),r)}constructor(...e){super(...e),this.priority=100,this.incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]}}class eS extends er{parse(e,t,n){switch(t){case"I":return el(eo.week,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return ed(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return O(function(e,t,n){let r=(0,E.a)(e,void 0),i=D(r,void 0)-t;return r.setDate(r.getDate()-7*i),r}(e,n))}constructor(...e){super(...e),this.priority=100,this.incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]}}let eA=[31,28,31,30,31,30,31,31,30,31,30,31],eT=[31,29,31,30,31,30,31,31,30,31,30,31];class eC extends er{parse(e,t,n){switch(t){case"d":return el(eo.date,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return ed(t.length,e)}}validate(e,t){let n=eg(e.getFullYear()),r=e.getMonth();return n?t>=1&&t<=eT[r]:t>=1&&t<=eA[r]}set(e,t,n){return e.setDate(n),e.setHours(0,0,0,0),e}constructor(...e){super(...e),this.priority=90,this.subPriority=1,this.incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]}}class eO extends er{parse(e,t,n){switch(t){case"D":case"DD":return el(eo.dayOfYear,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return ed(t.length,e)}}validate(e,t){return eg(e.getFullYear())?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}constructor(...e){super(...e),this.priority=90,this.subpriority=1,this.incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]}}var ej=n(55042);function eD(e,t,n){let r=(0,k.q)(),i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=(0,E.a)(e,n?.in),a=o.getDay(),s=7-i,l=t<0||t>6?t-(a+s)%7:((t%7+7)%7+s)%7-(a+s)%7;return(0,ej.f)(o,l,n)}class eR extends er{parse(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=eD(e,n,r)).setHours(0,0,0,0),e}constructor(...e){super(...e),this.priority=90,this.incompatibleTokens=["D","i","e","c","t","T"]}}class eI extends er{parse(e,t,n,r){let i=e=>{let t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return es(ed(t.length,e),i);case"eo":return es(n.ordinalNumber(e,{unit:"day"}),i);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=eD(e,n,r)).setHours(0,0,0,0),e}constructor(...e){super(...e),this.priority=90,this.incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]}}class eP extends er{parse(e,t,n,r){let i=e=>{let t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return es(ed(t.length,e),i);case"co":return es(n.ordinalNumber(e,{unit:"day"}),i);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=eD(e,n,r)).setHours(0,0,0,0),e}constructor(...e){super(...e),this.priority=90,this.incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]}}class eM extends er{parse(e,t,n){let r=e=>0===e?7:e;switch(t){case"i":case"ii":return ed(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return es(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return es(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return es(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);default:return es(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r)}}validate(e,t){return t>=1&&t<=7}set(e,t,n){return(e=function(e,t,n){let r=(0,E.a)(e,void 0),i=function(e,t){let n=(0,E.a)(e,t?.in).getDay();return 0===n?7:n}(r,void 0);return(0,ej.f)(r,t-i,n)}
62(e,n)).setHours(0,0,0,0),e}constructor(...e){super(...e),this.priority=90,this.incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]}}class eN extends er{parse(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(eh(n),0,0,0),e}constructor(...e){super(...e),this.priority=80,this.incompatibleTokens=["b","B","H","k","t","T"]}}class e$ extends er{parse(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(eh(n),0,0,0),e}constructor(...e){super(...e),this.priority=80,this.incompatibleTokens=["a","B","H","k","t","T"]}}class eL extends er{parse(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(eh(n),0,0,0),e}constructor(...e){super(...e),this.priority=80,this.incompatibleTokens=["a","b","t","T"]}}class eF extends er{parse(e,t,n){switch(t){case"h":return el(eo.hour12h,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return ed(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){let r=e.getHours()>=12;return r&&n<12?e.setHours(n+12,0,0,0):r||12!==n?e.setHours(n,0,0,0):e.setHours(0,0,0,0),e}constructor(...e){super(...e),this.priority=70,this.incompatibleTokens=["H","K","k","t","T"]}}class eU extends er{parse(e,t,n){switch(t){case"H":return el(eo.hour23h,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return ed(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setHours(n,0,0,0),e}constructor(...e){super(...e),this.priority=70,this.incompatibleTokens=["a","b","h","K","k","t","T"]}}class ez extends er{parse(e,t,n){switch(t){case"K":return el(eo.hour11h,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return ed(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}constructor(...e){super(...e),this.priority=70,this.incompatibleTokens=["h","H","k","t","T"]}}class eB extends er{parse(e,t,n){switch(t){case"k":return el(eo.hour24h,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return ed(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){return e.setHours(n<=24?n%24:n,0,0,0),e}constructor(...e){super(...e),this.priority=70,this.incompatibleTokens=["a","b","h","H","K","t","T"]}}class eq extends er{parse(e,t,n){switch(t){case"m":return el(eo.minute,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return ed(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setMinutes(n,0,0),e}constructor(...e){super(...e),this.priority=60,this.incompatibleTokens=["t","T"]}}class eV extends er{parse(e,t,n){switch(t){case"s":return el(eo.second,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return ed(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setSeconds(n,0),e}constructor(...e){super(...e),this.priority=50,this.incompatibleTokens=["t","T"]}}class eH extends er{parse(e,t){return es(ed(t.length,e),e=>Math.trunc(e*Math.pow(10,-t.length+3)))}set(e,t,n){return e.setMilliseconds(n),e}constructor(...e){super(...e),this.priority=30,this.incompatibleTokens=["t","T"]}}class eW extends er{parse(e,t){switch(t){case"X":return eu(ea.basicOptionalMinutes,e);case"XX":return eu(ea.basic,e);case"XXXX":return eu(ea.basicOptionalSeconds,e);case"XXXXX":return eu(ea.extendedOptionalSeconds,e);default:return eu(ea.extended,e)}}set(e,t,n){return t.timestampIsSet?e:(0,S.w)(e,e.getTime()-_(e)-n)}constructor(...e){super(...e),this.priority=10,this.incompatibleTokens=["t","T","x"]}}class eY extends er{parse(e,t){switch(t){case"x":return eu(ea.basicOptionalMinutes,e);case"xx":return eu(ea.basic,e);case"xxxx":return eu(ea.basicOptionalSeconds,e);case"xxxxx":return eu(ea.extendedOptionalSeconds,e);default:return eu(ea.extended,e)}}set(e,t,n){return t.timestampIsSet?e:(0,S.w)(e,e.getTime()-_(e)-n)}constructor(...e){super(...e),this.priority=10,this.incompatibleTokens=["t","T","X"]}}class eG extends er{parse(e){return ec(e)}set(e,t,n){return[(0,S.w)(e,1e3*n),{timestampIsSet:!0}]}constructor(...e){super(...e),this.priority=40,this.incompatibleTokens="*"}}class eK extends er{parse(e){return ec(e)}set(e,t,n){return[(0,S.w)(e,n),{timestampIsSet:!0}]}constructor(...e){super(...e),this.priority=20,this.incompatibleTokens="*"}}let eX={G:new ei,y:new em,Y:new ey,R:new ev,u:new eb,Q:new ew,q:new ex,M:new ek,L:new eE,w:new e_,I:new eS,d:new eC,D:new eO,E:new eR,e:new eI,c:new eP,i:new eM,a:new eN,b:new e$,B:new eL,h:new eF,H:new eU,K:new ez,k:new eB,m:new eq,s:new eV,S:new eH,X:new eW,x:new eY,t:new eG,T:new eK},eZ=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,eQ=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,eJ=/^'([^]*?)'?$/,e0=/''/g,e1=/\S/,e2=/[a-zA-Z]/,e5={dateTimeDelimiter:
62/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},e3=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,e4=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,e6=/^([+-])(\d{2})(?::?(\d{2}))?$/;function e8(e){return e?parseInt(e):1}function e7(e){return e&&parseFloat(e.replace(",","."))||0}let e9=[31,null,31,30,31,30,31,31,30,31,30,31];function te(e){return e%400==0||e%4==0&&e%100!=0}let tt=e=>e.replace(/@posix$/,"");function tn(e,t="long",n="en-US"){let r=tt(n);return new Intl.DateTimeFormat(r,{month:t}).format(e)}function tr(e,t="long",n="en-US"){let r=tt(n);return new Intl.DateTimeFormat(r,{weekday:t}).format(e)}function ti(e,t){return String(e).padStart(t,"0")}function to(e){let t=e%10,n=e%100;return 1===t&&11!==n?`${e}st`:2===t&&12!==n?`${e}nd`:3===t&&13!==n?`${e}rd`:`${e}th`}function ta(e){let t=e.getDay();return 0===t?7:t}function ts(e){let t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())),n=ta(t);return t.setUTCDate(t.getUTCDate()-n+4),t.getUTCFullYear()}function tl(e){let t=new Date(Date.UTC(e.getFullYear(),0,1));return Math.floor((e.valueOf()-t.valueOf()+(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/864e5)+1}function tu(e){let t=new Intl.DateTimeFormat(tt("en-US"),{timeZoneName:"short"}).formatToParts(e).find(e=>"timeZoneName"===e.type);return t?t.value:""}let tc="YYYY-MM-DD",td="HH:mm",tf=Intl.DateTimeFormat().resolvedOptions().timeZone;function th(e,t,n={useUTC:!1,timeZone:void 0}){let{useUTC:r,timeZone:i}=n;return function(e,t){let n=[],r=t.replace(/\[([^\]]+)\]/g,(e,t)=>(n.push(t),"")),i=e.getFullYear(),o=e.getMonth(),a=e.getDate(),s=e.getDay(),l=e.getHours(),u=e.getMinutes(),c=e.getSeconds(),d=function(e){let t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())),n=ta(t);t.setUTCDate(t.getUTCDate()-n+4);let r=new Date(Date.UTC(t.getUTCFullYear(),0,1));return Math.ceil(((t.valueOf()-r.valueOf())/864e5+1)/7)}(e),f=ts(e),h=ts(e),p=e.getTime(),g=Math.floor(p/1e3),m=[{key:"YYYY",value:String(i)},{key:"YY",value:String(i).slice(-2)},{key:"Y",value:String(i)},{key:"YYYYY",value:ti(i,5)},{key:"GGGG",value:String(f)},{key:"GG",value:String(f).slice(-2)},{key:"gggg",value:String(h)},{key:"gg",value:String(h).slice(-2)},{key:"Q",value:String(Math.floor(o/3)+1)},{key:"Qo",value:to(Math.floor(o/3)+1)},{key:"MMMM",value:tn(e,"long")},{key:"MMM",value:tn(e,"short")},{key:"MM",value:ti(o+1,2)},{key:"M",value:String(o+1)},{key:"Mo",value:to(o+1)},{key:"DD",value:ti(a,2)},{key:"D",value:String(a)},{key:"Do",value:to(a)},{key:"dddd",value:tr(e,"long")},{key:"ddd",value:tr(e,"short")},{key:"dd",value:tr(e,"short").slice(0,2)},{key:"d",value:String(s)},{key:"do",value:to(s+1)},{key:"DDDD",value:ti(tl(e),3)},{key:"DDD",value:String(tl(e))},{key:"DDDo",value:to(tl(e))},{key:"E",value:String(ta(e))},{key:"DDDD",value:ti(tl(e),3)},{key:"DDD",value:String(tl(e))},{key:"w",value:ti(d,2)},{key:"wo",value:to(d)},{key:"ww",value:ti(d,2)},{key:"WW",value:ti(d,2)},{key:"W",value:String(d)},{key:"Wo",value:to(d)},{key:"HH",value:ti(l,2)},{key:"H",value:String(l)},{key:"hh",value:ti((l+11)%12+1,2)},{key:"h",value:String((l+11)%12+1)},{key:"k",value:String(l||24)},{key:"kk",value:ti(l||24,2)},{key:"mm",value:ti(u,2)},{key:"m",value:String(u)},{key:"ss",value:ti(c,2)},{key:"s",value:String(c)},{key:"A",value:l<12?"AM":"PM"},{key:"a",value:l<12?"am":"pm"},{key:"X",value:String(g)},{key:"x",value:String(p)},{key:"N",value:i<0?"BC":"AD"},{key:"NN",value:i<0?"BC":"AD"},{key:"NNN",value:i<0?"BC":"AD"},{key:"NNNN",value:i<0?"Before Christ":"Anno Domini"},{key:"NNNNN",value:i<0?"BC":"AD"},{key:"z",value:tu(e)},{key:"zz",value:tu(e)},{key:"Z",value:J(e,"xxx")},{key:"ZZ",value:J(e,"xx")}];m.sort((e,t)=>t.key.length-e.key.length);let y=r.replace(/(S{1,4})/g,t=>(function(e,t){let n=ti(e.getMilliseconds(),3);return 1===t?n.slice(0,1):2===t?n.slice(0,2):3===t?n:`${n}0`})(e,t.length));for(let{key:e,value:t}of m){let n=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),r=RegExp(`(^|[^A-Z0-9a-z])(${n})(?![A-Z0-9a-z])`,"g");y=y.replace(r,`$1${t}`)}return y.replace(RegExp("","g"),()=>n.shift()||"")}(r?new h(e):i?new l(e,i||tf):new Date(e),t)}function tp(e,t,n){let r=t?function(e){let t={YYYY:"yyyy",YY:"yy",MMMM:"MMMM",MMM:"MM
62M",MM:"MM",M:"M",DD:"dd",D:"d",dddd:"EEEE",ddd:"EEE",HH:"HH",H:"H",hh:"hh",h:"h",mm:"mm",m:"m",ss:"ss",s:"s",A:"a",a:"a"};return Object.keys(t).reduce((e,n)=>e.replace(RegExp(n,"g"),t[n]),e)}(t):void 0,i=r?function(e,t,n,r){let i=()=>(0,S.w)(n,NaN),o=Object.assign({},(0,k.q)()),a=(void 0)??o.locale??x,s=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,l=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0;if(!t)return e?i():(0,E.a)(n,r?.in);let u={firstWeekContainsDate:s,weekStartsOn:l,locale:a},c=[new en(r?.in,n)],d=t.match(eQ).map(e=>{let t=e[0];return t in q?(0,q[t])(e,a.formatLong):e}).join("").match(eZ),f=[];for(let n of d){var h,p;!r?.useAdditionalWeekYearTokens&&(h=n,H.test(h))&&Y(n,t,e),!r?.useAdditionalDayOfYearTokens&&(p=n,V.test(p))&&Y(n,t,e);let o=n[0],s=eX[o];if(s){let{incompatibleTokens:t}=s;if(Array.isArray(t)){let e=f.find(e=>t.includes(e.token)||e.token===o);if(e)throw RangeError(`The format string mustn't contain \`${e.fullToken}\` and \`${n}\` at the same time`)}else if("*"===s.incompatibleTokens&&f.length>0)throw RangeError(`The format string mustn't contain \`${n}\` and any other token at the same time`);f.push({token:o,fullToken:n});let r=s.run(e,n,a.match,u);if(!r)return i();c.push(r.setter),e=r.rest}else{if(o.match(e2))throw RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");if("''"===n?n="'":"'"===o&&(n=n.match(eJ)[1].replace(e0,"'")),0!==e.indexOf(n))return i();e=e.slice(n.length)}}if(e.length>0&&e1.test(e))return i();let g=c.map(e=>e.priority).sort((e,t)=>t-e).filter((e,t,n)=>n.indexOf(e)===t).map(e=>c.filter(t=>t.priority===e).sort((e,t)=>t.subPriority-e.subPriority)).map(e=>e[0]),m=(0,E.a)(n,r?.in);if(isNaN(+m))return i();let y={};for(let e of g){if(!e.validate(m,u))return i();let t=e.set(m,y,u);Array.isArray(t)?(m=t[0],Object.assign(y,t[1])):m=t}return m}(e,r,new Date):function(e,t){let n,r,i=()=>(0,S.w)(void 0,NaN),o=(void 0)??2,a=function(e){let t,n={},r=e.split(e5.dateTimeDelimiter);if(r.length>2)return n;if(/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],e5.timeZoneDelimiter.test(n.date)&&(n.date=e.split(e5.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){let e=e5.timezone.exec(t);e?(n.time=t.replace(e[1],""),n.timezone=e[1]):n.time=t}return n}(e);if(a.date){let e=function(e,t){let n=RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};let i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:null===o?i:100*o,restDateString:e.slice((r[1]||r[2]).length)}}(a.date,o);n=function(e,t){var n,r,i,o,a,s,l;if(null===t)return new Date(NaN);let u=e.match(e3);if(!u)return new Date(NaN);let c=!!u[4],d=e8(u[1]),f=e8(u[2])-1,h=e8(u[3]),p=e8(u[4]),g=e8(u[5])-1;if(c){return(n=p,r=g,n>=1&&n<=53&&r>=0&&r<=6)?function(e,t,n){let r=new Date(0);r.setUTCFullYear(e,0,4);let i=r.getUTCDay()||7;return r.setUTCDate(r.getUTCDate()+((t-1)*7+n+1-i)),r}(t,p,g):new Date(NaN)}{let e=new Date(0);return(i=t,o=f,a=h,o>=0&&o<=11&&a>=1&&a<=(e9[o]||(te(i)?29:28))&&(s=t,(l=d)>=1&&l<=(te(s)?366:365)))?(e.setUTCFullYear(t,f,Math.max(d,h)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!n||isNaN(+n))return i();let s=+n,l=0;if(a.time&&isNaN(l=function(e){var t,n,r;let i=e.match(e4);if(!i)return NaN;let o=e7(i[1]),a=e7(i[2]),s=e7(i[3]);return(t=o,n=a,r=s,24===t?0===n&&0===r:r>=0&&r<60&&n>=0&&n<60&&t>=0&&t<25)?o*A.s0+a*A.Cg+1e3*s:NaN}(a.time)))return i();if(a.timezone){if(isNaN(r=function(e){var t;if("Z"===e)return 0;let n=e.match(e6);if(!n)return 0;let r="+"===n[1]?-1:1,i=parseInt(n[2]),o=n[3]&&parseInt(n[3])||0;return(t=o)>=0&&t<=59?r*(i*A.s0+o*A.Cg):NaN}(a.timezone)))return i()}else{let e=new Date(s+l),n=(0,E.a)(0,t?.in);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}return(0,E.a)(s+l+r,t?.in)}(e);return i&&!isNaN(i.getTime())?{isValid:!0,date:n&&tg(n)?new l(i,n):i}:{isValid:!1,error:`Invalid date. Must be on the format "${t}"`}}function tg(e){return Intl.supportedValuesOf("timeZone").includes(e)}},68268:(e,t)=>{"use strict";
62Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};t.default=function(e,t,r){var i,o=n[e];if(i="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=r&&r.addSuffix)if(r.comparison&&r.comparison>0)return"in "+i;else return i+" ago";return i},e.exports=t.default},68475:(e,t,n)=>{var r=n(3836),i=n(79758),o=n(25191),a=n(81489);e.exports=function(e,t){return t=r(t,e),null==(e=o(e,t))||delete e[a(i(t))]}},68685:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},68747:(e,t,n)=>{"use strict";n.d(t,{m:()=>a});var r=n(58555),i=n(37245),o=n(92633),a=function(e){function t(t,n,r){void 0===t&&(t=1/0),void 0===n&&(n=1/0),void 0===r&&(r=o.U);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=n,i._timestampProvider=r,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,n),i}return(0,r.C6)(t,e),t.prototype.next=function(t){var n=this.isStopped,r=this._buffer,i=this._infiniteTimeWindow,o=this._timestampProvider,a=this._windowTime;!n&&(r.push(t),i||r.push(o.now()+a)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this._infiniteTimeWindow,r=this._buffer.slice(),i=0;i<r.length&&!e.closed;i+=n?1:2)e.next(r[i]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,n=this._buffer,r=this._infiniteTimeWindow,i=(r?1:2)*e;if(e<1/0&&i<n.length&&n.splice(0,n.length-i),!r){for(var o=t.now(),a=0,s=1;s<n.length&&n[s]<=o;s+=2)a=s;a&&n.splice(0,a+1)}},t}(i.B)},68764:e=>{var t="\ud800-\udfff",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\ud83c[\udffb-\udfff]",i="[^"+t+"]",o="(?:\ud83c[\udde6-\uddff]){2}",a="[\ud800-\udbff][\udc00-\udfff]",s="(?:"+n+"|"+r+")?",l="[\\ufe0e\\ufe0f]?",u="(?:\\u200d(?:"+[i,o,a].join("|")+")"+l+s+")*",c=RegExp(r+"(?="+r+")|"+("(?:"+[i+n+"?",n,o,a,"["+t+"]"].join("|"))+")"+(l+s+u),"g");e.exports=function(e){return e.match(c)||[]}},69e3:(e,t,n)=>{"use strict";n.d(t,{Kn:()=>l,yU:()=>s,Uv:()=>u});var r=n(58555),i=n(73315),o=(0,n(62553).L)(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n  "):"",this.name="UnsubscriptionError",this.errors=t}}),a=n(74814),s=function(){var e;function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e,t,n,a,s,l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var u=(0,r.Ju)(l),d=u.next();!d.done;d=u.next())d.value.remove(this)}catch(t){e={error:t}}finally{try{d&&!d.done&&(t=u.return)&&t.call(u)}finally{if(e)throw e.error}}else l.remove(this);var f=this.initialTeardown;if((0,i.T)(f))try{f()}catch(e){s=e instanceof o?e.errors:[e]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var p=(0,r.Ju)(h),g=p.next();!g.done;g=p.next()){var m=g.value;try{c(m)}catch(e){s=null!=s?s:[],e instanceof o?s=(0,r.fX)((0,r.fX)([],(0,r.zs)(s)),(0,r.zs)(e.errors)):s.push(e)}}}catch(e){n={error:e}}finally{try{g&&!g.done&&(a=p.return)&&a.call(p)}finally{if(n)throw n.error}}}if(s)throw new o(s)}},t.prototype.add=function(e){var n;if(e&&e!==this)if(this.closed)c(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(n=this._finalizers)?n:[]).push(e)}},t.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},t.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},t.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&(0,a.o)(t,e)},t.prototype.remove=function(e){var n=this._finalizers;n&&(0,a.o)(n,e),e instanceof t&&e._removeParent(this)},(e=new t).closed=!0,t.EMPTY=e,t}(),l=s.EMPTY;function u(e){return e instanceof s||e&&"closed"in e&&(0,i.T)(e.remove)&&(0,i.T)(e.add)&&(0,i.T)(e.unsubscribe)}function c(e){(0,i.T)(e)?e():e.unsubscribe()}},69037:(e,t,n)=>{var r=n(95973);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=+(n.size!=i),this}},69571:(e,t,n)=>{var r=n(48341),i=n(11102);e.exports=function(e,t,n,o){var a=n.length,s=a,l=!o;if(null==e)return!s;for(e=Object(e);a--;){var u=n[a];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++a<s;){var c=(u=n[a])[0],d=e[c],f=u[1];if(l&&u[2]){if(void 0===d&&!(c in e))return!1}else{var h=new r;if(o)var p=o(d,f,c,e,t,h);if(!(void 0===p?i(f,d,3,o,h):p))return!1}}return!0}},69644:e=>{"use strict";e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}},69803:e=>{e.exports=function(e){return e}},70259:(e,t,n)=>{"use strict";n.d(t,{zU:()=>p,xl:()=>g,pK:()=>h,et:()=>f,kX:()=>u});var r=n(77865),i=n(55607),o=n(87086),a=n(3039),s=n(72871);let l=!1;function u(e){let{spanId:t,traceId:n,isRemote:i}=e.spanContext(),o=i?t:f(e).parent_span_id,s=i?(0,a.ZF)():t;return(0,r.Ce)({parent_span_id:o,span_id:s,trace_id:n})}function c(e){return"number"==typeof e?d(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?d(e.getTime()):(0,s.zf)()}function d(e){return e>0x2540be3ff?e/1e3:e}function f(e){if("function"==typeof e.getSpanJSON)return e.getSpanJSON();try{var t;let{spanId:n,traceId:o}=e.spanContext();if((t=e).attributes&&t.startTime&&t.name&&t.endTime&&t.status){let{attributes:t,startTime:a,name:s,endTime:l,parentSpanId:u,status:d}=e;return(0,r.Ce)({span_id:n,trace_id:o,data:t,description:s,parent_span_id:u,start_timestamp:c(a),timestamp:c(l)||void 0,status:function(e){if(e&&0!==e.code)return 1===e.code?"ok":e.message||"unknown_error"}(d),op:t[i.uT],origin:t[i.JD],_metrics_summary:function(e){let t=e._sentryMetrics;if(!t)return;let n={};for(let[,[e,i]]of t)(n[e]||(n[e]=[])).push((0,r.Ce)(i));return n}(e)})}return{span_id:n,trace_id:o}}catch(e){return{}}}function h(e){let{traceFlags:t}=e.spanContext();return 1===t}function p(e){return e._sentryRootSpan||e}function g(){l||((0,o.pq)(()=>{console.warn("[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK ver
62sion 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.")}),l=!0)}},70501:(e,t,n)=>{"use strict";n.d(t,{$x:()=>G,l$:()=>K});var r=n(59264),i=n(24622),o=n(7774),a=n(64703),s=n(9745);function l(e){return e.type?l(e.type):"block"===e.name}let u=Object.prototype.toString;function c(e){switch(u.call(e)){case"[object Function]":return"function";case"[object Date]":return"date";case"[object RegExp]":return"regexp";case"[object Arguments]":return"arguments";case"[object Array]":return"array";case"[object String]":return"string"}return null===e?"null":void 0===e?"undefined":e&&"object"==typeof e&&"nodeType"in e&&1===e.nodeType?"element":e===Object(e)?"object":typeof e}var d={0:8203,1:8204,2:8205,3:8290,4:8291,5:8288,6:65279,7:8289,8:119155,9:119156,a:119157,b:119158,c:119159,d:119160,e:119161,f:119162},f={0:8203,1:8204,2:8205,3:65279};[,,,,].fill(String.fromCodePoint(f[0])).join(""),Object.fromEntries(Object.entries(f).map(e=>e.reverse())),Object.fromEntries(Object.entries(d).map(e=>e.reverse()));var h=`${Object.values(d).map(e=>`\\u{${e.toString(16)}}`).join("")}`,p=RegExp(`[${h}]{4,}`,"gu");let g=["pre","textarea","code"],m="normal",y=Object.freeze({_type:"block",markDefs:[],style:m}),v=Object.freeze({_type:"span",marks:[]}),b={p:y,blockquote:{...y,style:"blockquote"}},w={span:{object:"text"}},x={ol:{object:null},ul:{object:null}},k={h1:{...y,style:"h1"},h2:{...y,style:"h2"},h3:{...y,style:"h3"},h4:{...y,style:"h4"},h5:{...y,style:"h5"},h6:{...y,style:"h6"}},E={br:{...y,style:m}},_={b:"strong",strong:"strong",i:"em",em:"em",u:"underline",s:"strike-through",strike:"strike-through",del:"strike-through",code:"code",sup:"sup",sub:"sub",ins:"ins",mark:"mark",small:"small"},S={li:{...y,style:m,level:1,listItem:"bullet"}};function A(e){let t=e?e.list:void 0;return Array.isArray(t)?t.map(e=>(0,i.uC)(e)?e:{title:e,value:e}):[]}a(Object.values({...b,...w,...x,...S,...k,...E}).filter(e=>"style"in e).map(e=>e.style)),a(Object.values(_));let T={BOOLEAN_TYPE:3,ORDERED_NODE_ITERATOR_TYPE:5,UNORDERED_NODE_SNAPSHOT_TYPE:6},C=["/html/text()","/html/head/text()","/html/body/text()","/html/body/ul/text()","/html/body/ol/text()","//comment()","//style","//xml","//script","//meta","//link"],O=/(class="?Mso|style=(?:"|')[^"]*?\bmso-|w:WordDocument|<o:\w+>|<\/font>)/,j=["//o:p","//span[@style='mso-list:Ignore']","//span[@style='mso-list: Ignore']"],D=["//p[@class='MsoTocHeading']","//p[@class='MsoTitle']","//p[@class='MsoToaHeading']","//p[@class='MsoSubtitle']","//span[@class='MsoSubtleEmphasis']","//span[@class='MsoIntenseEmphasis']"],R={MsoTocHeading:["h3"],MsoTitle:["h1"],MsoToaHeading:["h2"],MsoSubtitle:["h5"],MsoSubtleEmphasis:["span","em"],MsoIntenseEmphasis:["span","em","strong"]};var I=[(e,t)=>((function e(t){if(t.nodeType!==T.BOOLEAN_TYPE||g.includes(t.parentElement?.tagName.toLowerCase()||""))for(let n=0;n<t.childNodes.length;n++)e(t.childNodes[n]);else t.textContent=t.textContent?.replace(/\s\s+/g," ").replace(/[\r\n]+/g," ")||""})(t.body),t),(e,t)=>{if(e.match(/<!-- notionvc:.*?-->/g)){let e=t.evaluate("//*",t,null,T.UNORDERED_NODE_SNAPSHOT_TYPE,null);for(let t=e.snapshotLength-1;t>=0;t--)e.snapshotItem(t)?.setAttribute("data-is-notion","true")}return t},(e,t)=>{if(!O.test(e))return t;let n=t.evaluate(j.join("|"),t,e=>"o"===e?"urn:schemas-microsoft-com:office:office":null,T.UNORDERED_NODE_SNAPSHOT_TYPE,null);for(let e=n.snapshotLength-1;e>=0;e--){let t=n.snapshotItem(e);t?.parentNode&&t.parentNode.removeChild(t)}let r=t.evaluate(D.join("|"),t,null,T.UNORDERED_NODE_SNAPSHOT_TYPE,null);for(let e=r.snapshotLength-1;e>=0;e--){let n=r.snapshotItem(e),i=R[n.className],o=t.createTextNode(n.textContent||"");if(!i)continue;let a=t.createElement(i[0]),s=a,l=a;i.slice(1).forEach(e=>{l=t.createElement(e),s.appendChild(l),s=l}),l.appendChild(o),n?.parentNode?.replaceChild(a,n)}return t},(e,t,n)=>{let r=n?.unstable_whitespaceOnPasteMode||"preserve",i=t.evaluate('//*[@id and contains(@id, "docs-internal-guid")]',t,null,T.ORDERED_NODE_ITERATOR_TYPE,null).iterateNext();if(i){let e="b"===P(i);switch(e||(i=t.body),r){case"normalize":!function e(t){let n=0,r=null,i=[];for(let a=t.firstChild;a;a=a.nextSibling){var o;
62if(!U(a)){e(a),n=0;continue}let t=a;["p","br"].includes(P(o=t)||"")&&!o.textContent?.trim()?(r&&t.parentElement===r?++n>1&&i.push(t):n=1,r=t.parentElement):(e(a),n=0)}i.forEach(e=>e.parentElement?.removeChild(e))}(i);break;case"remove":!function(e){let t=[];(function e(n){if(U(n)){if("br"===P(n)&&("p"===P(n.nextElementSibling)||"p"===P(n.previousElementSibling))||("p"===P(n)||"br"===P(n))&&n?.firstChild?.textContent?.trim()==="")return void t.push(n);for(let t=n.firstChild;t;t=t.nextSibling)e(t)}})(e),t.forEach(e=>e.parentElement?.removeChild(e))}(i)}let n=t.evaluate("//*",t,null,T.UNORDERED_NODE_SNAPSHOT_TYPE,null);for(let r=n.snapshotLength-1;r>=0;r--){let o=n.snapshotItem(r);o?.setAttribute("data-is-google-docs","true"),o?.parentElement!==i&&(e||o.parentElement!==t.body)||(o?.setAttribute("data-is-root-node","true"),P(o)),"li"===P(o)&&o.firstChild&&"img"===P(o?.firstChild)&&o.removeChild(o.firstChild)}return e&&t.body.firstElementChild?.replaceWith(...Array.from(i.childNodes)),t}return t},(e,t)=>{let n=t.evaluate("/html/body/text()",t,null,T.UNORDERED_NODE_SNAPSHOT_TYPE,null);for(let e=n.snapshotLength-1;e>=0;e--){let r=n.snapshotItem(e),i=r.textContent||"";if(i.replace(/[^\S\n]+$/g,"")){let e=t.createElement("span");e.appendChild(t.createTextNode(i)),r.parentNode?.replaceChild(e,r)}else r.parentNode?.removeChild(r)}let r=t.evaluate(C.join("|"),t,null,T.UNORDERED_NODE_SNAPSHOT_TYPE,null);for(let e=r.snapshotLength-1;e>=0;e--){let t=r.snapshotItem(e);t&&t.parentNode?.removeChild(t)}return t}];function P(e){if(e&&"tagName"in e)return e.tagName.toLowerCase()}function M(e){return["\xa0"," "].includes(e)}function N(e){return"span"===e._type}function $(e){return"block"===e._type}function L(e){return"__decorator"===e._type}function F(e){return"__annotation"===e._type}function U(e){return 1===e.nodeType}let z=Object.keys(x);function B(e){return U(e)&&!!e.getAttribute("data-is-google-docs")}let q={...b,...k};function V(){var e;return e=12,(function(e=16){let t=new Uint8Array(e);return(0,s.A)(t),t})(12).reduce((e,t)=>e+H[t],"").slice(0,e)}let H=[];for(let e=0;e<256;++e)H[e]=(e+256).toString(16).slice(1);let W={deserialize:e=>"#text"===e.nodeName&&function(e){return(3===e.nodeType&&" "===(e.textContent||"").replace(/[\r\n]/g," ").replace(/\s\s+/g," ")&&e.nextSibling&&3!==e.nextSibling.nodeType&&e.previousSibling&&3!==e.previousSibling.nodeType||" "!==e.textContent)&&"body"!==P(e.parentNode)}(e)?{...v,marks:[],text:(e.textContent??"").replace(/\s\s+/g," ")}:void 0};class Y{blockContentType;rules;parseHtml;_markDefs=[];constructor(e,t={}){let{rules:n=[],unstable_whitespaceOnPasteMode:r="preserve"}=t;if(!e)throw Error("Parameter 'blockContentType' is required");let o=function(e,t){return[{deserialize(e,t){var n;if("p"===P(e)&&U(n=e)&&n.className&&("MsoListParagraphCxSpFirst"===n.className||"MsoListParagraphCxSpMiddle"===n.className||"MsoListParagraphCxSpLast"===n.className))return{...y,listItem:function(e){let t=U(e)&&e.getAttribute("style");if(t&&t.match(/lfo\d+/))return t.match("lfo1")?"bullet":"number"}(e),level:function(e){let t=U(e)&&e.getAttribute("style");if(!t)return;let n=t.match(/level\d+/);if(!n)return;let[r]=n[0].match(/\d/)||[];return(r?Number.parseInt(r,10):1)||1}(e),style:m,children:t(e.childNodes)}}},{deserialize(e){var t;if(U(e)&&"span"===P(e)&&U(t=e)&&t.getAttribute("data-is-notion")){let t={...v,marks:[],text:e.textContent};return function(e){let t=U(e)&&e.getAttribute("style");return/font-weight:700/.test(t||"")||/font-weight:600/.test(t||"")}(e)&&t.marks.push("strong"),function(e){let t=U(e)&&e.getAttribute("style");return/text-decoration:underline/.test(t||"")}(e)&&t.marks.push("underline"),function(e){let t=U(e)&&e.getAttribute("style");return/font-style:italic/.test(t||"")}(e)&&t.marks.push("em"),t}}},{deserialize(e){if(U(e)&&"span"===P(e)&&B(e)){let t={...v,marks:[],text:e.textContent};return function(e){let t=U(e)&&e.getAttribute("style");return/font-weight\s*:\s*700/.test(t||"")}(e)&&t.marks.push("strong"),function(e){if(!U(e)||"a"===P(e.parentNode))return!1;let t=U(e)&&e.getAttribute("style");
62return/text-decoration\s*:\s*underline/.test(t||"")}(e)&&t.marks.push("underline"),function(e){let t=U(e)&&e.getAttribute("style");return/text-decoration\s*:\s*(?:.*line-through.*;)/.test(t||"")}(e)&&t.marks.push("strike-through"),function(e){let t=U(e)&&e.getAttribute("style");return/font-style\s*:\s*italic/.test(t||"")}(e)&&t.marks.push("em"),t}}},{deserialize(e,n){if("li"===P(e)&&B(e))return{...y,listItem:function(e){let t=P(e.parentNode);if(!(t&&!z.includes(t)))return"ul"===P(e.parentNode)?"bullet":"number"}(e),level:function(e){let t=0;if("li"===P(e)){let n=e.parentNode;for(;n;){let e=P(n);e&&z.includes(e)&&t++,n=n.parentNode}}else t=1;return t}(e),style:function(e,t){let n=P(e.firstChild),r=n&&q[n];return r&&t.includes(r.style)?r.style:m}(e,t.enabledBlockStyles),children:n(e.firstChild?.childNodes||[])}}},{deserialize(e){var t;if("br"===P(e)&&B(e)&&U(e)&&e.classList.contains("apple-interchange-newline")||"br"===P(e)&&B(e)&&U(e)&&e?.parentNode?.textContent===""||"br"===P(e)&&B(e)&&U(e)&&U(t=e)&&t.getAttribute("data-is-root-node"))return{...v,text:""}}},W,{deserialize(e){if("pre"!==P(e))return;let n=t.enabledBlockStyles.includes("code");return{_type:"block",style:"normal",markDefs:[],children:[{...v,marks:n?["code"]:[],text:e.textContent||""}]}}},{deserialize(e,t){if("blockquote"!==P(e))return;let n={...b,...k};delete n.blockquote;let r=Object.keys(n),i=[];return e.childNodes.forEach((t,n)=>{if(e.ownerDocument)if(1===t.nodeType&&r.includes(t.localName.toLowerCase())){let r=e.ownerDocument.createElement("span"),o=i[i.length-1];o&&3===o.nodeType&&o.textContent?.trim()&&r.appendChild(e.ownerDocument.createTextNode("\r")),t.childNodes.forEach(e=>{r.appendChild(e.cloneNode(!0))}),n!==e.childNodes.length&&r.appendChild(e.ownerDocument.createTextNode("\r")),i.push(r)}else i.push(t)}),{_type:"block",style:"blockquote",markDefs:[],children:t(i)}}},{deserialize(e,n){let r={...b,...k},i=P(e),o=i?r[i]:void 0;if(o)return e.parentNode&&"li"===P(e.parentNode)?n(e.childNodes):(t.enabledBlockStyles.includes(o.style)||(o=y),{...o,children:n(e.childNodes)})}},{deserialize(e,t){let n=P(e);if(!(!n||!(n in w)))return t(e.childNodes)}},{deserialize(e,t){if("div"===P(e))return t(e.childNodes)}},{deserialize(e,t){let n=P(e);if(!(!n||!(n in x)))return t(e.childNodes)}},{deserialize(e){if("br"===P(e))return{...v,text:`
63`}}},{deserialize(e,n,r){var i;let o=P(e),a=o?S[o]:void 0,s=P(e.parentNode)||"";if(!a||!e.parentNode||!x[s])return;let l=(i=t.enabledListTypes,"ul"===s&&i.includes("bullet")?"bullet":"ol"===s&&i.includes("number")?"number":void 0);return l?(a.listItem=l,{...a,children:n(e.childNodes)}):r({_type:"block",children:n(e.childNodes)})}},{deserialize(e,n){let r=_[P(e)||""];if(!(!r||!t.enabledSpanDecorators.includes(r)))return{_type:"__decorator",name:r,children:n(e.childNodes)}}},{deserialize(e,n){if("a"!==P(e))return;let r=t.enabledBlockAnnotations.includes("link"),i=U(e)&&e.getAttribute("href");return i?r?{_type:"__annotation",markDef:{_key:t.keyGenerator?t.keyGenerator():V(),_type:"link",href:i},children:n(e.childNodes)}:e.appendChild(e.ownerDocument.createTextNode(` (${i})`))&&n(e.childNodes):n(e.childNodes)}}]}(0,{...function(e){let t=function(e){if(!e)throw Error("Parameter 'blockContentType' required");let t=e.of.find(l);if(!(0,i.Pb)(t))throw Error("'block' type is not defined in this schema (required).");let n=t.fields.find(i.SP)?.type?.of;if(!n)throw Error("No `of` declaration found for blocks `children` field");let r=n.find(e=>"span"===e.name);if(!r)throw Error("No `span` type found in `block` schema type `children` definition");let o=n.filter(e=>"span"!==e.name&&(0,i.$d)(e)),a=e.of.filter(e=>e.name!==t.name&&(0,i.$d)(e));return{styles:function(e){let t=e.fields.find(i.SA);if(!t)throw Error("A field with name 'style' is not defined in the block type (required).");let n=A(t.type.options);if(0===n.length)throw Error("The style fields need at least one style defined. I.e: {title: 'Normal', value: 'normal'}.");return n}(t),decorators:r.decorators,annotations:r.annotations.map(e=>({title:e.title,type:e,value:e.name,icon:e.icon})),lists:function(e){let t=e.fields.find(i.T4);if(!t)throw Error("A field with name 'list' is not defined in the block type (required).");let n=A(t.type.options);if(!n)throw Error("The list field need at least to be an empty array");return n}(t),types:{block:e,span:r,inlineObjects:o,blockObjects:a}}}(e),n=t.styles.map(e=>e.value||e.title),r=t.decorators.map(e=>e.value||e.title);return{enabledBlockStyles:n,enabledSpanDecorators:r,enabledBlockAnnotations:t.annotations.map(e=>e.value||e.title||""),enabledListTypes:t.lists.map(e=>e.value||e.title||"")}}(e),keyGenerator:t.keyGenerator});this.rules=[...n,...o];let a=t.parseHtml||function(){if("undefined"===c(DOMParser))throw Error("The native `DOMParser` global which the `Html` deserializer uses by default is not present in this environment. You must supply the `options.parseHtml` function instead.");return e=>new DOMParser().parseFromString(e,"text/html")}();this.blockContentType=e,this.parseHtml=e=>(function(e,t,n){var r,i;let o=e&&JSON.parse({cleaned:(r=JSON.stringify(e)).replace(p,""),encoded:(null==(i=r.match(p))?void 0:i[0])||""}.cleaned),a=t(o.trim());
63return I.forEach(e=>{e(o,a,n)}),a})(e,a,{unstable_whitespaceOnPasteMode:r}).body}deserialize=e=>{this._markDefs=[];let{parseHtml:t}=this,n=Array.from(t(e).childNodes),a=function(e){return e.forEach(e=>{(0,i.L4)(e)&&e.children.forEach((t,n)=>{if(!N(t))return;let r=function(e,t){let n=e.children[t+1];return n&&"span"===n._type?n:null}(e,n),i=function(e,t){let n=e.children[t-1];return n&&"span"===n._type?n:null}(e,n);0===n&&(t.text=t.text.replace(/^[^\S\n]+/g,"")),n===e.children.length-1&&(t.text=t.text.replace(/[^\S\n]+$/g,"")),/\s/.test(t.text.slice(Math.max(0,t.text.length-1)))&&r&&N(r)&&/\s/.test(r.text.slice(0,1))&&(t.text=t.text.replace(/[^\S\n]+$/g,"")),/\s/.test(t.text.slice(0,1))&&i&&N(i)&&/\s/.test(i.text.slice(Math.max(0,i.text.length-1)))&&(t.text=t.text.replace(/^[^\S\n]+/g,"")),t.text||e.children.splice(n,1),i&&o(i.marks,t.marks)&&M(t.text)?(i.text+=" ",e.children.splice(n,1)):r&&o(r.marks,t.marks)&&M(t.text)&&(r.text=` ${r.text}`,e.children.splice(n,1))})}),e}(function(e){let t=0,n=[],r=e=>{let o=[];e.forEach(e=>{0===t&&n.push(e),(0,i.L4)(e)&&(t>0&&(o.push(e),n.push(e)),t++,r(e.children)),"__block"===e._type&&(o.push(e),n.push(e.block))}),o.forEach(t=>{e.splice(e.indexOf(t),1)}),t--};return r(e),n}(this.deserializeElements(n).reduce((e,t,n,r)=>{if("block"===t._type)return e.push(t),e;if("__block"===t._type)return e.push(t.block),e;let o=e[e.length-1];if(n>0&&!(0,i.L4)(r[n-1])&&(0,i.L4)(o))return o.children.push(t),e;let a={...y,children:[t]};return e.push(a),e},[])));this._markDefs.length>0&&a.filter(e=>"block"===e._type).forEach(e=>{e.markDefs=e.markDefs||[],e.markDefs=e.markDefs.concat(this._markDefs.filter(t=>r(e.children.map(e=>e.marks||[])).includes(t._key)))});let s=this.blockContentType.of.find(l);return s?a.map(e=>("block"===e._type&&(e._type=s.name),e)):a};deserializeElements=(e=[])=>{let t=[];return e.forEach(e=>{t=t.concat(this.deserializeElement(e))}),t};deserializeElement=e=>{let t,n=e=>"[object NodeList]"===Object.prototype.toString.call(e)?this.deserializeElements(Array.from(e)):Array.isArray(e)?this.deserializeElements(e):e?this.deserializeElement(e):void 0,r=e=>({_type:"__block",block:e});for(let i=0;i<this.rules.length;i++){let o=this.rules[i];if(!o.deserialize)continue;let a=o.deserialize(e,n,r),s=c(a);if("array"!==s&&"object"!==s&&"null"!==s&&"undefined"!==s)throw Error(`A rule returned an invalid deserialized representation: "${t}".`);if(void 0!==a){if(null===a)throw Error("Deserializer rule returned `null`");if(t=Array.isArray(a)?a:L(a)?this.deserializeDecorator(a):F(a)?this.deserializeAnnotation(a):a,a&&!Array.isArray(a)&&$(a)&&"listItem"in a){let t=e.parentNode?.parentNode;for(;t&&"li"===P(t);)t=t.parentNode?.parentNode,a.level=a.level?a.level+1:1}a&&!Array.isArray(a)&&$(a)&&"blockquote"===a.style&&a.children.forEach((e,t)=>{N(e)&&"\r"===e.text&&(e.text=`
64`,(0===t||t===a.children.length-1)&&a.children.splice(t,1))});break}}return t||n(e.childNodes)||[]};deserializeDecorator=e=>{let{name:t}=e,n=e=>L(e)?this.deserializeDecorator(e):(N(e)?(e.marks=e.marks||[],e.text.trim()&&e.marks.unshift(t)):"children"in e&&Array.isArray(e.children)&&(e.children=e.children.map(n)),e);return e.children.reduce((e,t)=>{let r=n(t);return Array.isArray(r)?e.concat(r):(e.push(r),e)},[])};deserializeAnnotation=e=>{let{markDef:t}=e;this._markDefs.push(t);let n=e=>F(e)?this.deserializeAnnotation(e):(N(e)?(e.marks=e.marks||[],e.text.trim()&&e.marks.unshift(t._key)):"children"in e&&Array.isArray(e.children)&&(e.children=e.children.map(n)),e);return e.children.reduce((e,t)=>{let r=n(t);return Array.isArray(r)?e.concat(r):(e.push(r),e)},[])}}function G(e,t={}){if(e._type!==(t.blockTypeName||"block"))return"_key"in e?e:{...e,_key:t.keyGenerator?t.keyGenerator():V()};let n={_key:t.keyGenerator?t.keyGenerator():V(),children:[],markDefs:[],...e},r=n.children[n.children.length-1];if(!r)return n.children=[{_type:"span",_key:t.keyGenerator?t.keyGenerator():V(),text:"",marks:[]}],n;let a=[],s=!!(t.allowedDecorators&&Array.isArray(t.allowedDecorators))&&t.allowedDecorators;return n.children=n.children.reduce((e,t)=>{let a=e[e.length-1];return a&&(0,i.bn)(t)&&(0,i.bn)(a)&&o(a.marks,t.marks)?r&&r===t&&""===t.text&&n.children.length>1||(a.text+=t.text):e.push(t),e},[]).map(e=>{if(!e)throw Error("missing child");return e._key=t.keyGenerator?t.keyGenerator():V(),(0,i.bn)(e)&&(e.marks?s&&(e.marks=e.marks.filter(e=>{let t=s.includes(e),r=n.markDefs?.some(t=>t._key===e);return t||r})):e.marks=[],a.push(...e.marks)),e}),n.markDefs=(n.markDefs||[]).filter(e=>a.includes(e._key)),n}function K(e,t,n={}){return new Y(t,n).deserialize(e).map(e=>G(e,{keyGenerator:n.keyGenerator}))}}
64,70514:(e,t,n)=>{"use strict";n.d(t,{Wm:()=>d,Yr:()=>h,hZ:()=>p,jo:()=>f,wC:()=>g,yl:()=>c});var r=n(51176),i=n(45679),o=n(76079),a=n(50437);let s="before",l="after";function u(...e){return e.reduce((e,t)=>e.concat(t),[])}function c(e,t){return t.reduce(function e(t,n){var c;return Array.isArray(t)?function(t,n){let i=t.slice();if(0===n.path.length){if("setIfMissing"===n.type){if(!Array.isArray(n.value))throw Error("Cannot set value of an array to a non-array");return void 0===t?n.value:t}if("set"===n.type){if(!Array.isArray(n.value))throw Error("Cannot set value of an array to a non-array");return n.value}if("unset"===n.type)return;throw Error(`Invalid array operation: ${n.type}`)}let[o,...a]=n.path,c=function(e,t){if("number"==typeof t)return t;let n=r(e,t);return -1!==n&&n}(t,o);if(!1===c)return i;if(0===a.length){if("insert"===n.type){let{position:e,items:r}=n;return function(e,t,n,...r){if(t!==s&&t!==l)throw Error(`Invalid position "${t}", must be either ${s} or ${l}`);let i=u(...r);if(0===e.length)return i;let o=e.length,a=Math.abs((o+n)%o)%o,c=e.slice();return c.splice("after"===t?a+1:a,0,...u(i)),c}(t,e,c,r)}else if("unset"===n.type){if("number"!=typeof c)throw Error(`Expected array index to be a number, instead got "${c}"`);return i.splice(c,1),i}}return i[c]=e(i[c],{...n,path:a}),i}(t,n):"string"==typeof t?function(e,t){if(t.path.length>0)throw Error(`Cannot apply deep operations on string values. Received patch with type "${t.type}" and path "${t.path.join(".")} that targeted the value "${JSON.stringify(e)}"`);if("diffMatchPatch"===t.type){let[n]=(0,a.$i)((0,a.iz)(t.value),e,{allowExceedingIndices:!0});return n}if("setIfMissing"===t.type)return void 0===e?t.value:e;if("set"===t.type)return t.value;if("unset"!==t.type)throw Error(`Received patch of unsupported type: "${JSON.stringify(t.type)}" for string. This is most likely a bug.`)}(t,n):"object"!=typeof(c=t)||null===c||Array.isArray(c)?"number"==typeof t?function(e,t){if(t.path.length>0)throw Error(`Cannot apply deep operations on primitive values. Received patch with type "${t.type}" and path "${t.path.map(e=>JSON.stringify(e)).join(".")} that targeted the value "${JSON.stringify(e)}"`);if("set"===t.type)return t.value;if("setIfMissing"===t.type)return void 0===e?t.value:e;if("unset"!==t.type){if("inc"===t.type){if("number"!=typeof t.value)throw Error("Cannot increment with a non-number");return e+t.value}if("dec"===t.type){if("number"!=typeof t.value)throw Error("Cannot decrement with a non-number");return e-t.value}throw Error(`Received patch of unsupported type: "${JSON.stringify(t.type)}" for number. This is most likely a bug.`)}}(t,n):function(e,t){if(t.path.length>0)throw Error(`Cannot apply deep operations on primitive values. Received patch with type "${t.type}" and path "${t.path.map(e=>JSON.stringify(e)).join(".")} that targeted the value "${JSON.stringify(e)}"`);if("set"===t.type)return t.value;if("setIfMissing"===t.type)return void 0===e?t.value:e;if("unset"!==t.type)throw Error(`Received patch of unsupported type: "${JSON.stringify(t.type)}" for primitives. This is most likely a bug.`)}(t,n):function(t,n){let r=i(t);if(0===n.path.length){if("set"===n.type){if("object"==typeof n.value&&null!==n.value&&!Array.isArray(n.value))return n.value;throw Error("Cannot set value of an object to a non-object")}if("unset"===n.type)return;throw Error(`Invalid object operation: ${n.type}`)}let[a,...s]=n.path;if("string"!=typeof a)throw Error(`Expected field name to be a string, instead got: ${a}`);return 0===s.length&&"unset"===n.type?o(r,a):(r[a]=e(r[a],{...n,path:s}),r)}(t,n)},e)}function d(e,t=[]){return{type:"setIfMissing",path:t,value:e}}function f(e,t,n=[]){let r=(0,a.jW)(e,t);return{type:"diffMatchPatch",path:n,value:(0,a.w1)(r)}}function h(e,t,n=[]){return{type:"insert",path:n,position:t,items:e}}function p(e,t=[]){return{type:"set",path:t,value:e}}function g(e=[]){return{type:"unset",path:e}}},70763:(e,t,n)=>{"use strict";n.d(t,{Lr:()=>g,ab:()=>o,bL:()=>p});var r=n(74253),i=n(7250);let o=5,a={},s=e=>(a[e]||(a[e]=Symbol(`__cachedStringFields_${e}`)),a[e]),l=["style","list"],u=e=>"block"===e.name||e.type&&u(e.type);function c(e,t,n,r=[],i){var o,a,s,d,f;if(i<0)return n;let h=t(n,e,r);return"array"===e.jsonType&&Array.isArray(e.of)?(o=e,a=t,s=h,d=r,f=i,o.of.reduce((e,t)=>
64c(t,a,e,d,f-1),s)):"object"===e.jsonType&&Array.isArray(e.fields)&&!(e.type&&"reference"===e.type.name)?function(e,t,n,r,i){let o=u(e);return e.fields.reduce((e,n)=>{if(o&&l.includes(n.name))return e;let a=[n.name].concat("array"===n.type.jsonType?[[]]:[]);return c(n.type,t,e,r.concat(a),i-1)},n)}(e,t,h,r,i):h}let d=[{weight:1,path:["_id"]},{weight:1,path:["_type"]}],f={title:10,subtitle:5,description:1.5};function h(e,t){let n=e?.preview?.select;if(!n)return[];let r=[];for(let e of Object.keys(n)){if(!(e in f))continue;let i=n[e].split(".");t>-1&&i.length-1>t||r.push({weight:f[e],path:i})}return r}function p(e,t){var n=m(t);let r=s(n);return e[r]||(e[r]=i([...d,...h(e,n)],e=>e.path.join("."))),e[r]}function g(e,t){var n=m(t);let r=s(n);return e[r]||(e[r]=i([...d,...h(e,n),...c(e,(e,t,n)=>"string"===t.jsonType?[...e,n]:e,[],[],n).map(e=>({weight:1,path:e})),...c(e,(e,t,n)=>"array"===t.jsonType&&Array.isArray(t.of)&&t.of.some(u)?[...e,n]:e,[],[],n).map(e=>({weight:1,path:e,mapWith:"pt::text"}))],e=>e.path.join("."))),e[r]}function m(e){return!r(e)||e<1||e>o?o-1:e-1}},70799:(e,t,n)=>{e.exports=n(18274)(n(26943),"WeakMap")},71017:(e,t,n)=>{e.exports=n(22338)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"})},71071:(e,t,n)=>{"use strict";var r=n(5847),i=n(60364);e.exports=s,s.prototype=new r,s.prototype.defined=!0;var o=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],a=o.length;function s(e,t,n,s){var l,u,c,d,f,h,p=-1;for(l=this,(u=s)&&(l.space=u),r.call(this,e,t);++p<a;){c=this,d=h=o[p],(f=(n&i[h])===i[h])&&(c[d]=f)}}},71241:(e,t,n)=>{"use strict";var r=n(31101),i=n(78741),o=n(72960),a=n(99224),s=n(53992),l=n(87257);e.exports=function(e,t){var n,o,a={};for(o in t||(t={}),f)n=t[o],a[o]=null==n?f[o]:n;return(a.position.indent||a.position.start)&&(a.indent=a.position.indent||[],a.position=a.position.start),function(e,t){var n,o,a,f,b,w,x,k,E,_,S,A,T,C,O,j,D,R,I,P,M,N=t.additional,$=t.nonTerminated,L=t.text,F=t.reference,U=t.warning,z=t.textContext,B=t.referenceContext,q=t.warningContext,V=t.position,H=t.indent||[],W=e.length,Y=0,G=-1,K=V.column||1,X=V.line||1,Z="",Q=[];for("string"==typeof N&&(N=N.charCodeAt(0)),R=J(),_=U?function(e,t){var n=J();n.column+=t,n.offset+=t,U.call(q,v[e],n,e)}:d,Y--,W++;++Y<W;)if(10===x&&(K=H[G]||1),38===(x=e.charCodeAt(Y))){if(9===(E=e.charCodeAt(Y+1))||10===E||12===E||32===E||38===E||60===E||E!=E||N&&E===N){Z+=c(x),K++;continue}for(C=O=Y+1,M=O,35===E?(M=++C,88===(E=e.charCodeAt(M))||120===E?(j=p,M=++C):j=g):j=h,a="",T="",w="",D=y[j],M--;++M<W&&D(E=e.charCodeAt(M));)w+=c(E),j===h&&u.call(r,w)&&(a=w,T=r[w]);if((b=59===e.charCodeAt(M))&&(M++,(f=j===h&&l(w))&&(a=w,T=f)),P=1+M-O,b||$){w?j===h?(b&&!T?_(5,1):(a!==w&&(P=1+(M=C+a.length)-C,b=!1),b||(S=a?1:3,t.attribute?61===(E=e.charCodeAt(M))?(_(S,P),T=null):s(E)?T=null:_(S,P):_(S,P))),k=T):(b||_(2,P),(n=k=parseInt(w,m[j]))>=55296&&n<=57343||n>1114111?(_(7,P),k=c(65533)):k in i?(_(6,P),k=i[k]):(A="",((o=k)>=1&&o<=8||11===o||o>=13&&o<=31||o>=127&&o<=159||o>=64976&&o<=65007||(65535&o)==65535||(65535&o)==65534)&&_(6,P),k>
6465535&&(k-=65536,A+=c(k>>>10|55296),k=56320|1023&k),k=A+c(k))):j!==h&&_(4,P)}k?(ee(),R=J(),Y=M-1,K+=M-O+1,Q.push(k),I=J(),I.offset++,F&&F.call(B,k,{start:R,end:I},e.slice(O-1,M)),R=I):(w=e.slice(O-1,M),Z+=w,K+=w.length,Y=M-1)}else 10===x&&(X++,G++,K=0),x==x?(Z+=c(x),K++):ee();return Q.join("");function J(){return{line:X,column:K,offset:Y+(V.offset||0)}}function ee(){Z&&(Q.push(Z),L&&L.call(z,Z,{start:R,end:J()}),Z="")}}(e,a)};var u={}.hasOwnProperty,c=String.fromCharCode,d=Function.prototype,f={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},h="named",p="hexadecimal",g="decimal",m={};m[p]=16,m[g]=10;var y={};y[h]=s,y[g]=o,y[p]=a;var v={};v[1]="Named character references must be terminated by a semicolon",v[2]="Numeric character references must be terminated by a semicolon",v[3]="Named character references cannot be empty",v[4]="Numeric character references cannot be empty",v[5]="Named character references must be known",v[6]="Numeric character references cannot be disallowed",v[7]="Numeric character references cannot be outside the permissible Unicode range"},71260:(e,t,n)=>{"use strict";function r(e,t){if(t.length<e)throw TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{A:()=>r})}
64,71312:(e,t,n)=>{"use strict";var r=n(82203),i=n(27429),o=n(73503),a=n(2196),s=r.createElement;function l(e){var t="language-".concat(e.language),n={className:t},r={className:[e.className||"refractor",t].filter(Boolean).join(" ")};e.inline&&(n.style={display:"inline"},n.className=e.className||"refractor");var l=i.highlight(e.value,e.language);e.markers&&e.markers.length>0&&(l=a(l,{markers:e.markers}));var u=s("code",n,0===l.length?e.value:l.map(o.depth(0)));return e.inline?u:s("pre",r,u)}l.registerLanguage=function(e){return i.register(e)},l.hasLanguage=function(e){return i.registered(e)},e.exports=l},71819:(e,t,n)=>{"use strict";let r=n(74907);e.exports=(e,t)=>new r(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "))},71962:(e,t,n)=>{"use strict";n.d(t,{T:()=>o});var r=n(90449),i=n(27778);function o(e,t){return(0,i.N)((0,r.S)(e,t,arguments.length>=2,!1,!0))}},71976:(e,t,n)=>{"use strict";n.d(t,{v:()=>o});var r=n(29039),i=n(12884);function o(e){return new r.c(function(t){(0,i.Tg)(e()).subscribe(t)})}},72140:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(43048),i=n(27778),o=n(12884),a=n(94126),s=n(29013);function l(e,t){var n;return void 0===t&&(t=r.E),n=function(){return(0,s.O)(e,t)},(0,i.N)(function(e,t){var r=!1,i=null,s=null,l=!1,u=function(){if(null==s||s.unsubscribe(),s=null,r){r=!1;var e=i;i=null,t.next(e)}l&&t.complete()},c=function(){s=null,l&&t.complete()};e.subscribe((0,a._)(t,function(e){r=!0,i=e,s||(0,o.Tg)(n(e)).subscribe(s=(0,a._)(t,u,c))},function(){l=!0,r&&s&&!s.closed||t.complete()}))})}},72254:e=>{"use strict";e.exports=e=>null==e?[]:Array.isArray(e)?e:"string"==typeof e?[e]:"function"==typeof e[Symbol.iterator]?[...e]:[e]},72565:e=>{var t=Math.floor,n=Math.random;e.exports=function(e,r){return e+t(n()*(r-e+1))}},72777:(e,t,n)=>{"use strict";n.d(t,{ao:()=>f,k1:()=>h});var r=n(67511),i=n(27313),o=n(55607),a=n(29378);let s=/^sentry-/;function l(e){return e.split(",").map(e=>e.split("=").map(e=>decodeURIComponent(e.trim()))).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}var u=n(77865),c=n(70259);function d(e,t){let n=t.getOptions(),{publicKey:i}=t.getDsn()||{},o=(0,u.Ce)({environment:n.environment||r.U,release:n.release,public_key:i,trace_id:e});return t.emit("createDsc",o),o}function f(e,t){let n=t.getPropagationContext();return n.dsc||d(n.traceId,e)}function h(e){let t=(0,i.KU)();if(!t)return{};let n=(0,c.zU)(e),r=n._frozenDsc;if(r)return r;let u=n.spanContext().traceState,f=u&&u.get("sentry.dsc"),h=f&&function(e){let t=function(e){if(e&&((0,a.Kg)(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>(Object.entries(l(t)).forEach(([t,n])=>{e[t]=n}),e),{}):l(e)}(e);if(!t)return;let n=Object.entries(t).reduce((e,[t,n])=>(t.match(s)&&(e[t.slice(7)]=n),e),{});return Object.keys(n).length>0?n:void 0}(f);if(h)return h;let p=d(e.spanContext().traceId,t),g=(0,c.et)(n),m=g.data||{},y=m[o.sy];null!=y&&(p.sample_rate=`${y}`);let v=m[o.i_],b=g.description;return"url"!==v&&b&&(p.transaction=b),function(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let t=(0,i.KU)(),n=t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}()&&(p.sampled=String((0,c.pK)(n))),t.emit("createDsc",p,n),p}},72835:e=>{e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return -1}},72871:(e,t,n)=>{"use strict";n.d(t,{lu:()=>i,zf:()=>o});var r=n(6541);function i(){return Date.now()/1e3}let o=function(){let{performance:e}=r.O;if(!e||!e.now)return i;let t=Date.now()-e.now(),n=void 0==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/1e3}();(()=>{let{performance:e}=r.O;if(!e||!e.now)return;let t=e.now(),n=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+t-n):36e5,o=e.timing&&e.timing.navigationStart,a="number"==typeof o?Math.abs(o+t-n):36e5;if((i<36e5||a<36e5)&&i<=a)return e.timeOrigin})()},72925:(e,t,n)=>{var r=n(18274);e.exports=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}()},72960:e=>{"use strict";e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}},73292:(e,t,n)=>{var r=n(28760),i=n(56626),o=n(88567),a=n(30644),s=n(86809),l=n(43659),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),c=!n&&i(e),d=!n&&!c&&a(e),f=!n&&!c&&!
64d&&l(e),h=n||c||d||f,p=h?r(e.length,String):[],g=p.length;for(var m in e)(t||u.call(e,m))&&!(h&&("length"==m||d&&("offset"==m||"parent"==m)||f&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,g)))&&p.push(m);return p}},73315:(e,t,n)=>{"use strict";function r(e){return"function"==typeof e}n.d(t,{T:()=>r})},73336:e=>{var t=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},73422:(e,t,n)=>{"use strict";n.d(t,{$:()=>l});var r=n(29039),i=n(12884),o=n(37245),a=n(27778),s=n(94126);function l(e,t,n,l){return(0,a.N)(function(a,u){t&&"function"!=typeof t?(n=t.duration,c=t.element,l=t.connector):c=t;var c,d=new Map,f=function(e){d.forEach(e),e(u)},h=function(e){return f(function(t){return t.error(e)})},p=0,g=!1,m=new s.H(u,function(t){try{var a=e(t),f=d.get(a);if(!f){d.set(a,f=l?l():new o.B);var y,v,b,w=(y=a,v=f,(b=new r.c(function(e){p++;var t=v.subscribe(e);return function(){t.unsubscribe(),0==--p&&g&&m.unsubscribe()}})).key=y,b);if(u.next(w),n){var x=(0,s._)(f,function(){f.complete(),null==x||x.unsubscribe()},void 0,void 0,function(){return d.delete(a)});m.add((0,i.Tg)(n(w)).subscribe(x))}}f.next(c?c(t):t)}catch(e){h(e)}},function(){return f(function(e){return e.complete()})},h,function(){return d.clear()},function(){return g=!0,0===p});a.subscribe(m)})}},73503:(e,t,n)=>{"use strict";var r=n(82203);t.depth=function e(t){return function(n,i){if(n.tagName){var o=n.properties&&Array.isArray(n.properties.className)?n.properties.className.join(" "):n.properties.className;return r.createElement(n.tagName,Object.assign({key:"fract-".concat(t,"-").concat(i)},n.properties,{className:o}),n.children&&n.children.map(e(t+1)))}return n.value}}},73711:(e,t,n)=>{"use strict";n.d(t,{X:()=>r});var r=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},73730:(e,t,n)=>{"use strict";e.exports=n(7772)},74061:(e,t,n)=>{"use strict";n.d(t,{M:()=>o});var r=n(87876),i=n(31179);let o=(0,r._C)(()=>({name:"HttpContext",preprocessEvent(e){if(!i.jf.navigator&&!i.jf.location&&!i.jf.document)return;let t=e.request&&e.request.url||i.jf.location&&i.jf.location.href,{referrer:n}=i.jf.document||{},{userAgent:r}=i.jf.navigator||{},o={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},a={...e.request,...t&&{url:t},headers:o};e.request=a}}))},74253:(e,t,n)=>{var r=n(26943).isFinite;e.exports=function(e){return"number"==typeof e&&r(e)}},74412:(e,t,n)=>{"use strict";let r=n(80726);e.exports=(e,t,n=!1)=>
64{if(e instanceof r)return e;try{return new r(e,t)}catch(e){if(!n)return null;throw e}}},74811:(e,t,n)=>{"use strict";n(33917),Object.create(null)},74814:(e,t,n)=>{"use strict";function r(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}n.d(t,{o:()=>r})},74820:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],o=t.match(e.parsePattern);if(!o)return null;var a=e.valueCallback?e.valueCallback(o[0]):o[0];return{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(i.length)}}},e.exports=t.default},74871:(e,t,n)=>{var r=n(57551);e.exports=function(e,t){for(var n=e.length;n--&&r(t,e[n],0)>-1;);return n}},74883:(e,t,n)=>{e=n.nmd(e);var r=n(65206),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;if(e)return e;return a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},74907:(e,t,n)=>{"use strict";let r=/\s+/g;class i{constructor(e,t){if(t=a(t),e instanceof i)if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;else return new i(e.raw,t);if(e instanceof s)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(r," "),this.set=this.raw.split("||").map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!y(e[0])),0===this.set.length)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(1===e.length&&v(e[0])){this.set=[e];break}}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");let t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let t=((this.options.includePrerelease&&g)|(this.options.loose&&m))+":"+e,n=o.get(t);if(n)return n;let r=this.options.loose,i=r?c[d.HYPHENRANGELOOSE]:c[d.HYPHENRANGE];l("hyphen replace",e=e.replace(i,j(this.options.includePrerelease))),l("comparator trim",e=e.replace(c[d.COMPARATORTRIM],f)),l("tilde trim",e=e.replace(c[d.TILDETRIM],h)),l("caret trim",e=e.replace(c[d.CARETTRIM],p));let a=e.split(" ").map(e=>w(e,this.options)).join(" ").split(/\s+/).map(e=>O(e,this.options));r&&(a=a.filter(e=>(l("loose invalid filter",e,this.options),!!e.match(c[d.COMPARATORLOOSE])))),l("range list",a);let u=new Map;for(let e of a.map(e=>new s(e,this.options))){if(y(e))return[e];u.set(e.value,e)}u.size>1&&u.has("")&&u.delete("");let v=[...u.values()];return o.set(t,v),v}intersects(e,t){if(!(e instanceof i))throw TypeError("a Range is required");return this.set.some(n=>b(n,t)&&e.set.some(e=>b(e,t)&&n.every(n=>e.every(e=>n.intersects(e,t)))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(D(this.set[t],e,this.options))return!0;return!1}}e.exports=i;let o=new(n(546)),a=n(97793),s=n(93342),l=n(96818),u=n(80726),{safeRe:c,t:d,comparatorTrimReplace:f,tildeTrimReplace:h,c
64aretTrimReplace:p}=n(52458),{FLAG_INCLUDE_PRERELEASE:g,FLAG_LOOSE:m}=n(33368),y=e=>"<0.0.0-0"===e.value,v=e=>""===e.value,b=(e,t)=>{let n=!0,r=e.slice(),i=r.pop();for(;n&&r.length;)n=r.every(e=>i.intersects(e,t)),i=r.pop();return n},w=(e,t)=>(l("comp",e,t),l("caret",e=_(e,t)),l("tildes",e=k(e,t)),l("xrange",e=A(e,t)),l("stars",e=C(e,t)),e),x=e=>!e||"x"===e.toLowerCase()||"*"===e,k=(e,t)=>e.trim().split(/\s+/).map(e=>E(e,t)).join(" "),E=(e,t)=>{let n=t.loose?c[d.TILDELOOSE]:c[d.TILDE];return e.replace(n,(t,n,r,i,o)=>{let a;return l("tilde",e,t,n,r,i,o),x(n)?a="":x(r)?a=`>=${n}.0.0 <${+n+1}.0.0-0`:x(i)?a=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:o?(l("replaceTilde pr",o),a=`>=${n}.${r}.${i}-${o} <${n}.${+r+1}.0-0`):a=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,l("tilde return",a),a})},_=(e,t)=>e.trim().split(/\s+/).map(e=>S(e,t)).join(" "),S=(e,t)=>{l("caret",e,t);let n=t.loose?c[d.CARETLOOSE]:c[d.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,(t,n,i,o,a)=>{let s;return l("caret",e,t,n,i,o,a),x(n)?s="":x(i)?s=`>=${n}.0.0${r} <${+n+1}.0.0-0`:x(o)?s="0"===n?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:a?(l("replaceCaret pr",a),s="0"===n?"0"===i?`>=${n}.${i}.${o}-${a} <${n}.${i}.${+o+1}-0`:`>=${n}.${i}.${o}-${a} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${o}-${a} <${+n+1}.0.0-0`):(l("no pr"),s="0"===n?"0"===i?`>=${n}.${i}.${o}${r} <${n}.${i}.${+o+1}-0`:`>=${n}.${i}.${o}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${o} <${+n+1}.0.0-0`),l("caret return",s),s})},A=(e,t)=>(l("replaceXRanges",e,t),e.split(/\s+/).map(e=>T(e,t)).join(" ")),T=(e,t)=>{e=e.trim();let n=t.loose?c[d.XRANGELOOSE]:c[d.XRANGE];return e.replace(n,(n,r,i,o,a,s)=>{l("xRange",e,n,r,i,o,a,s);let u=x(i),c=u||x(o),d=c||x(a);return"="===r&&d&&(r=""),s=t.includePrerelease?"-0":"",u?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&d?(c&&(o=0),a=0,">"===r?(r=">=",c?(i=+i+1,o=0):o=+o+1,a=0):"<="===r&&(r="<",c?i=+i+1:o=+o+1),"<"===r&&(s="-0"),n=`${r+i}.${o}.${a}${s}`):c?n=`>=${i}.0.0${s} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${o}.0${s} <${i}.${+o+1}.0-0`),l("xRange return",n),n})},C=(e,t)=>(l("replaceStars",e,t),e.trim().replace(c[d.STAR],"")),O=(e,t)=>(l("replaceGTE0",e,t),e.trim().replace(c[t.includePrerelease?d.GTE0PRE:d.GTE0],"")),j=e=>(t,n,r,i,o,a,s,l,u,c,d,f)=>(n=x(r)?"":x(i)?`>=${r}.0.0${e?"-0":""}`:x(o)?`>=${r}.${i}.0${e?"-0":""}`:a?`>=${n}`:`>=${n}${e?"-0":""}`,l=x(u)?"":x(c)?`<${+u+1}.0.0-0`:x(d)?`<${u}.${+c+1}.0-0`:f?`<=${u}.${c}.${d}-${f}`:e?`<${u}.${c}.${+d+1}-0`:`<=${l}`,`${n} ${l}`.trim()),D=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(l(e[n].semver),e[n].semver!==s.ANY&&e[n].semver.prerelease.length>0){let r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}},74922:e=>{e.exports=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}},75155:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},75169:(e,t,n)=>{e.exports=n(22338)({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"})},75441:(e,t,n)=>{var r=n(21482),i=n(63032),o=n(22147),a=RegExp("['’]","g");e.exports=function(e){return function(t){return r(o(i(t).replace(a,"")),e,"")}}},75628:(e,t,n)=>{"use strict";var r=n(44316).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===(0,i.default)(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&"undefined"!=typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(Error().stack)),new Date(NaN))};var i=r(n(294)),o=r(n(29024));e.exports=t.default},75653:(e,t,n)=>{var r=n(21568),i=n(37758);e.exports=r?function(e){return r.get(e)}:i},75776:(e,t,n)=>{"use strict";n.d(t,{Cg:()=>r,_m:()=>o,s0:()=>i});var r=6e4,i=36e5,o=1e3},75827:(e,t,n)=>{"use strict";n.d(t,{w:()=>d});var r=n(43048),i=n(83571),o=n(27778),a=n(12884),s=n(62553),l=n(94126),u=n(97783),c=(0,s.L)(function(e){return function(t){void 0===t&&(t=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}});function d(e,t){var n=(0,i.v)(e)?{first:e}:"number"==typeof e?{each:e}:e,s=n.first,c=n.each,d=n.with,h=void 0===d?f:d,p=n.scheduler,g=void 0===p?null!=t?t:r.E:p,m=n.meta,y=void 0===m?null:m;if(null==s&&null==c)throw TypeError("No timeout provided.");return(0,o.N)(function(e,t){var n,r,i=null,o=0,d=function(e){r=(0,u.N)(t,g,function(){try{n.unsubscribe(),(0,a.Tg)(h({meta:y,lastValue:i,seen:o})).subscribe(t)}catch(e){t.error(e)}},e)};n=e.subscribe((0,l._)(t,function(e){null==r||r.unsubscribe(),o++,t.next(i=e),c>0&&d(c)},void 0,void 0,function(){(null==r?void 0:r.closed)||null==r||r.unsubscribe(),i=null})),o||d(null!=s?"number"==typeof s?s:s-g.now():c)})}function f(e){throw new c(e)}},75899:e=>{e.exports=function(){return[]}},76008:(e,t,n)=>{"use strict";let r=n(5525);e.exports=(e,t,n)=>r(e,t,"<",n)},76079:(e,t,n)=>{var r=n(94598),i=n(11087),o=n(68475),a=n(3836),s=n(91233),l=n(48770),u=n(63502),c=n(45587);e.exports=u(function(e,t){var n={};if(null==e)return n;var u=!1;t=r(t,function(t){return t=a(t,e),u||(u=t.length>1),t}),s(e,c(e),n),u&&(n=i(n,7,l));for(var d=t.length;d--;)o(n,t[d]);return n})},76153:(e,t,n)=>{"use strict";let r=n(50134),i=n(32112);e.exports=(e,t,n)=>{let o=[],a=null,s=null,l=e.sort((e,t)=>
64i(e,t,n));for(let e of l)r(e,t,n)?(s=e,a||(a=e)):(s&&o.push([a,s]),s=null,a=null);a&&o.push([a,null]);let u=[];for(let[e,t]of o)e===t?u.push(e):t||e!==l[0]?t?e===l[0]?u.push(`<=${t}`):u.push(`${e} - ${t}`):u.push(`>=${e}`):u.push("*");let c=u.join(" || "),d="string"==typeof t.raw?t.raw:String(t);return c.length<d.length?c:t}},76348:(e,t,n)=>{"use strict";n.d(t,{_:()=>r});class r{constructor(e){this.max=e}current=0;resolvers=[];ready=()=>this.max===1/0?Promise.resolve():this.current<this.max?(this.current++,Promise.resolve()):new Promise(e=>{this.resolvers.push(e)});release=()=>{if(this.max===1/0)return;let e=this.resolvers.shift();if(e)return void e();this.current=Math.max(0,this.current-1)}}},76682:(e,t,n)=>{"use strict";var r=n(44316).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(1,arguments);var t=(0,i.default)(e),n=t.getTime();return t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0),Math.floor((n-t.getTime())/864e5)+1};var i=r(n(75628)),o=r(n(29024));e.exports=t.default},76773:(e,t,n)=>{var r=n(17861),i=n(80418);e.exports=function(e,t){return null!=e&&i(e,t,r)}},76774:(e,t,n)=>{"use strict";n.d(t,{ef:()=>o,lJ:()=>s,xM:()=>a});var r=["D","DD"],i=["YY","YYYY"];function o(e){return -1!==r.indexOf(e)}function a(e){return -1!==i.indexOf(e)}function s(e,t,n){if("YYYY"===e)throw RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").
64concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}},76864:(e,t,n)=>{e.exports=n(78866)(function(e,t,n){e[+!n].push(t)},function(){return[[],[]]})},76893:e=>{e.exports=function(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}},77327:(e,t,n)=>{"use strict";n.d(t,{Cv:()=>r,D9:()=>d,ON:()=>a,OZ:()=>h,Ql:()=>o,V0:()=>i,Zp:()=>u,wL:()=>f,wm:()=>s,wv:()=>c,yW:()=>p,z1:()=>l});let r=["gray","blue","purple","magenta","red","orange","yellow","green","cyan"],i=["50","100","200","300","400","500","600","700","800","900","950"],o={title:"Black",hex:"#0d0e12"},a={title:"White",hex:"#ffffff"},s={50:{title:"Gray 50",hex:"#f6f6f8"},100:{title:"Gray 100",hex:"#eeeef1"},200:{title:"Gray 200",hex:"#e3e4e8"},300:{title:"Gray 300",hex:"#bbbdc9"},400:{title:"Gray 400",hex:"#9499ad"},500:{title:"Gray 500",hex:"#727892"},600:{title:"Gray 600",hex:"#515870"},700:{title:"Gray 700",hex:"#383d51"},800:{title:"Gray 800",hex:"#252837"},900:{title:"Gray 900",hex:"#1b1d27"},950:{title:"Gray 950",hex:"#13141b"}},l={50:{title:"Blue 50",hex:"#f5f8ff"},100:{title:"Blue 100",hex:"#e5edff"},200:{title:"Blue 200",hex:"#dbe5ff"},300:{title:"Blue 300",hex:"#a8bfff"},400:{title:"Blue 400",hex:"#7595ff"},500:{title:"Blue 500",hex:"#556bfc"},600:{title:"Blue 600",hex:"#4043e7"},700:{title:"Blue 700",hex:"#2927aa"},800:{title:"Blue 800",hex:"#192457"},900:{title:"Blue 900",hex:"#161a41"},950:{title:"Blue 950",hex:"#101228"}},u={50:{title:"Purple 50",hex:"#f8f5ff"},100:{title:"Purple 100",hex:"#f1ebff"},200:{title:"Purple 200",hex:"#ece1fe"},300:{title:"Purple 300",hex:"#ccb1fc"},400:{title:"Purple 400",hex:"#b087f7"},500:{title:"Purple 500",hex:"#8f57ef"},600:{title:"Purple 600",hex:"#721fe5"},700:{title:"Purple 700",hex:"#4c1a9e"},800:{title:"Purple 800",hex:"#2f1862"},900:{title:"Purple 900",hex:"#23173f"},950:{title:"Purple 950",hex:"#181128"}},c={50:{title:"Red 50",hex:"#fff6f5"},100:{title:"Red 100",hex:"#ffe7e5"},200:{title:"Red 200",hex:"#ffdedc"},300:{title:"Red 300",hex:"#fdada5"},400:{title:"Red 400",hex:"#f77769"},500:{title:"Red 500",hex:"#ef4434"},600:{title:"Red 600",hex:"#cc2819"},700:{title:"Red 700",hex:"#8b2018"},800:{title:"Red 800",hex:"#4d1714"},900:{title:"Red 900",hex:"#321615"},950:{title:"Red 950",hex:"#1e1011"}},d={50:{title:"Yellow 50",hex:"#fefae1"},100:{title:"Yellow 100",hex:"#fcf3bb"},200:{title:"Yellow 200",hex:"#f9e994"},300:{title:"Yellow 300",hex:"#f7d455"},400:{title:"Yellow 400",hex:"#f9bc15"},500:{title:"Yellow 500",hex:"#d28a04"},600:{title:"Yellow 600",hex:"#965908"},700:{title:"Yellow 700",hex:"#653a0b"},800:{title:"Yellow 800",hex:"#3b220c"},900:{title:"Yellow 900",hex:"#271a11"},950:{title:"Yellow 950",hex:"#181410"}},f={50:{title:"Green 50",hex:"#e7fef5"},100:{title:"Green 100",hex:"#c5fce8"},200:{title:"Green 200",hex:"#a9f9dc"},300:{title:"Green 300",hex:"#59f3ba"},400:{title:"Green 400",hex:"#0ff0a1"},500:{title:"Green 500",hex:"#04b97a"},600:{title:"Green 600",hex:"#01794f"},700:{title:"Green 700",hex:"#015133"},800:{title:"Green 800",hex:"#023120"},900:{title:"Green 900",hex:"#06231a"},950:{title:"Green 950",hex:"#071715"}},h={gray:s,blue:l,purple:u,magenta:{50:{title:"Magenta 50",hex:"#fef6f9"},100:{title:"Magenta 100",hex:"#fde8ef"},200:{title:"Magenta 200",hex:"#fcdee9"},300:{title:"Magenta 300",hex:"#f7abc5"},400:{title:"Magenta 400",hex:"#f0709b"},500:{title:"Magenta 500",hex:"#e72767"},600:{title:"Magenta 600",hex:"#b11651"},700:{title:"Magenta 700",hex:"#7c1342"},800:{title:"Magenta 800",hex:"#4b1130"},900:{title:"Magenta 900",hex:"#341325"},950:{title:"Magenta 950",hex:"#1f0f14"}},red:c,orange:{50:{title:"Orange 50",hex:"#fff7f0"},100:{title:"Orange 100",hex:"#ffeadb"},200:{title:"Orange 200",hex:"#ffddc7"},300:{title:"Orange 300",hex:"#ffb685"},400:{title:"Orange 400",hex:"#ff8e42"},500:{title:"Orange 500",hex:"#fa6400"},600:{title:"Orange 600",hex:"#b14802"},700:{title:"Orange 700",hex:"#7c3404"},800:{title:"Orange 800",hex:"#461e07"},900:{title:"Orange 900",hex:"#32160b"},950:{title:"Orange 950",hex:"#21120d"}},yellow:d,green:f,cyan:{50:{title:"Cyan 50",hex:"#e7fefe"},100:{title:"Cyan 100",hex:"#c5fcfc"},200:{title:"Cyan 200",hex:"#96f8f8"},300:{title:"Cyan 300",hex:"#62efef"},400:{title:"Cyan 400",hex:"#18e2e2"},500:{title:"Cyan 500",hex:"#04b8be"},600:{title:"Cyan 600",hex:"#037782"},700:{title:"Cyan 700",hex:"#024950"},800:{title:"Cyan 800",hex:"#042f34"},900:{title:"Cyan 900",hex:"#072227"},950:{title:"Cyan 950",hex:"#0d181c"}}},p={black:o,white:a,...h}},77398:(e,t)=>
64{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=null!=n&&n.width?String(n.width):i;r=e.formattingValues[o]||e.formattingValues[i]}else{var a=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}},e.exports=t.default},77865:(e,t,n)=>{"use strict";n.d(t,{Ce:()=>m,GS:()=>l,HF:()=>g,W4:()=>f,my:()=>u,pO:()=>c,sp:()=>d});var r=n(95746),i=n(22324),o=n(29378),a=n(87086),s=n(7207);function l(e,t,n){if(!(t in e))return;let r=e[t],o=n(r);"function"==typeof o&&c(o,r);try{e[t]=o}catch(n){i.T&&a.vF.log(`Failed to replace method "${t}" in object`,e)}}function u(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){i.T&&a.vF.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function c(e,t){try{let n=t.prototype||{};e.prototype=t.prototype=n,u(e,"__sentry_original__",t)}catch(e){}}function d(e){return e.__sentry_original__}function f(e){if((0,o.bJ)(e))return{message:e.message,name:e.name,stack:e.stack,...p(e)};if(!(0,o.xH)(e))return e;{let t={type:e.type,target:h(e.target),currentTarget:h(e.currentTarget),...p(e)};return"undefined"!=typeof CustomEvent&&(0,o.tH)(e,CustomEvent)&&(t.detail=e.detail),t}}function h(e){try{return(0,o.vq)(e)?(0,r.Hd)(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function p(e){if("object"!=typeof e||null===e)return{};{let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}}function g(e,t=40){let n=Object.keys(f(e));n.sort();let r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return(0,s.xv)(r,t);for(let e=n.length;e>0;e--){let r=n.slice(0,e).join(", ");if(!(r.length>t)){if(e===n.length)return r;return(0,s.xv)(r,t)}}return""}function m(e){return function e(t,n){if(function(e){if(!(0,o.Qd)(e))return!1;try{let t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(t)){let r=n.get(t);if(void 0!==r)return r;let i={};for(let r of(n.set(t,i),Object.getOwnPropertyNames(t)))void 0!==t[r]&&(i[r]=e(t[r],n));return i}if(Array.isArray(t)){let r=n.get(t);if(void 0!==r)return r;let i=[];return n.set(t,i),t.forEach(t=>{i.push(e(t,n))}),i}return t}(e,new Map)}},77899:(e,t,n)=>{"use strict";n.d(t,{S8:()=>a,cd:()=>function e(t,n=3,r=102400){let i=a(t,n);return~-encodeURI(JSON.stringify(i)).split(/%..|./).length>r?e(t,n-1,r):i}});var r=n(29378),i=n(77865),o=n(23791);function a(e,t=100,n=Infinity){try{return function e(t,n,a=Infinity,s=Infinity,l=function(){let e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){let[u,c]=l;if(null==n||["boolean","string"].includes(typeof n)||"number"==typeof n&&Number.isFinite(n))return n;let d=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!=typeof global&&t===global)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if((0,r.L2)(t))return"[VueViewModel]";if((0,r.mE)(t))return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${(0,o.qQ)(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;let n=function(e){let t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);if(/^HTML(\w*)Element$/.test(n))return`[HTMLElement: ${n}]`;return`[object ${n}]`}catch(e){return`**non-serializable** (${e})`}}(t,n);if(!d.startsWith("[object "))return d;if(n.__sentry_skip_normalization__)return n;let f="number"==typeof n.__sentry_override_normalization_depth__?n.__sentry_override_normalization_depth__:a;if(0===f)return d.replace("object ","");if(u(n))return"[Circular ~]";if(n&&"function"==typeof n.toJSON)try{let t=n.toJSON();return e("",t,f-1,s,l)}catch(e){}let h=Array.isArray(n)?[]:{},p=0,g=(0,i.W4)(n);for(let t in g){if(!Object.prototype.hasOwnProperty.call(g,t))continue;if(p>=s){h[t]="[MaxProperties ~]";break}let n=g[t];h[t]=e(t,n,f-1,s,l),p++}return c(n),h}("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}},77907:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(47528),i=n(71260),o=n(57061),a=n(44155);function s(e,t){(0,i.A)(2,arguments);var n,s=(0,r.A)(e),l=(0,r.A)(t),u=(0,o.A)(s,l),c=Math.abs(function(e,t){(0,i.A)(2,arguments);var n=(0,r.A)(e),o=(0,r.A)(t);return 12*(n.getFullYear()-o.getFullYear())+(n.getMonth()-o.getMonth())}(s,l));if(c<1)n=0;else{1===s.getMonth()&&s.getDate()>27&&s.setDate(30),s.setMonth(s.getMonth()-u*c);var d=(0,o.A)(s,l)===-u;(function(e){(0,i.A)(1,arguments);var t=(0,r.A)(e);return(0,a.A)(t).getTime()===(function(e){(0,i.A)(1,arguments);var t=(0,r.A)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t})(t).getTime()})((0,r.A)(e))&&1===c&&1===(0,o.A)(e,l)&&(d=!1),n=u*(c-Number(d))}return 0===n?0:n}}
64,78039:(e,t,n)=>{"use strict";var r=n(44316).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,a.default)(2,arguments),new Date((0,o.default)(e).getTime()+(0,i.default)(t))};var i=r(n(12431)),o=r(n(75628)),a=r(n(29024));e.exports=t.default},78325:(e,t,n)=>{"use strict";var r=n(63021),i=n(71071),o=n(5847),a="data";e.exports=function(e,t){var n,f,h,p=r(t),g=t,m=o;return p in e.normal?e.property[e.normal[p]]:(p.length>4&&p.slice(0,4)===a&&s.test(t)&&("-"===t.charAt(4)?g=a+(n=t.slice(5).replace(l,d)).charAt(0).toUpperCase()+n.slice(1):(h=(f=t).slice(4),t=l.test(h)?f:("-"!==(h=h.replace(u,c)).charAt(0)&&(h="-"+h),a+h)),m=i),new m(g,t))};var s=/^data[-\w.:]+$/i,l=/-[a-z]/g,u=/[A-Z]/g;function c(e){return"-"+e.toLowerCase()}function d(e){return e.charAt(1).toUpperCase()}},78329:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},78375:(e,t,n)=>{"use strict";n.d(t,{JR:()=>S,_G:()=>f,gB:()=>g,gl:()=>k,m$:()=>u});var r=n(82203),i=n(87964),o=n(39335);function a(e,t,n){let r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function s(e){return null!==e&&e>=0}let l={scaleX:1,scaleY:1},u=e=>{var t;let{rects:n,activeNodeRect:r,activeIndex:i,overIndex:o,index:a}=e,s=null!=(t=n[i])?t:r;if(!s)return null;let u=function(e,t,n){let r=e[t],i=e[t-1],o=e[t+1];return r&&(i||o)?n<t?i?r.left-(i.left+i.width):o.left-(r.left+r.width):o?o.left-(r.left+r.width):r.left-(i.left+i.width):0}(n,a,i);if(a===i){let e=n[o];return e?{x:i<o?e.left+e.width-(s.left+s.width):e.left-s.left,y:0,...l}:null}return a>i&&a<=o?{x:-s.width-u,y:0,...l}:a<i&&a>=o?{x:s.width+u,y:0,...l}:{x:0,y:0,...l}},c=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e,o=a(t,r,n),s=t[i],l=o[i];return l&&s?{x:l.left-s.left,y:l.top-s.top,scaleX:l.width/s.width,scaleY:l.height/s.height}:null},d={scaleX:1,scaleY:1},f=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:i,rects:o,overIndex:a}=e,s=null!=(t=o[n])?t:r;if(!s)return null;if(i===n){let e=o[a];return e?{x:0,y:n<a?e.top+e.height-(s.top+s.height):e.top-s.top,...d}:null}let l=function(e,t,n){let r=e[t],i=e[t-1],o=e[t+1];return r?n<t?i?r.top-(i.top+i.height):o?o.top-(r.top+r.height):0:o?o.top-(r.top+r.height):i?r.top-(i.top+i.height):0:0}(o,i,n);return i>n&&i<=a?{x:0,y:-s.height-l,...d}:i<n&&i>=a?{x:0,y:s.height+l,...d}:{x:0,y:0,...d}},h="Sortable",p=r.createContext({activeIndex:-1,containerId:h,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:c,disabled:{draggable:!1,droppable:!1}});function g(e){let{children:t,id:n,items:a,strategy:s=c,disabled:l=!1}=e,{active:u,dragOverlay:d,droppableRects:f,over:g,measureDroppableContainers:m}=(0,i.fF)(),y=(0,o.YG)(h,n),v=null!==d.rect,b=(0,r.useMemo)(()=>a.map(e=>"object"==typeof e&&"id"in e?e.id:e),[a]),w=null!=u,x=u?b.indexOf(u.id):-1,k=g?b.indexOf(g.id):-1,E=(0,r.useRef)(b),_=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(b,E.current),S=-1!==k&&-1===x||_,A="boolean"==typeof l?{draggable:l,droppable:l}:l;(0,o.Es)(()=>{_&&w&&m(b)},[_,b,w,m]),(0,r.useEffect)(()=>{E.current=b},[b]);let T=(0,r.useMemo)(()=>({activeIndex:x,containerId:y,disabled:A,disableTransforms:S,items:b,overIndex:k,useDragOverlay:v,sortedRects:b.reduce((e,t,n)=>{let r=f.get(t);return r&&(e[n]=r),e},Array(b.length)),strategy:s}),[x,y,A.draggable,A.droppable,S,b,k,f,v,s]);return r.createElement(p.Provider,{value:T},t)}let m=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return a(n,r,i).indexOf(t)},y=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:o,newIndex:a,previousItems:s,previousContainerId:l,transition:u}=e;return!!u&&!!r&&(s===o||i!==a)&&(!!n||a!==i&&t===l)},v={duration:200,easing:"ease"},b="transform",w=o.Ks.Transition.toString({property:b,duration:0,easing:"linear"}),x={roleDescription:"sortable"};function k(e){var t,n,a,l;let{animateLayoutChanges:u=y,attributes:c,disabled:d,data:f,getNewIndex:h=m,id:g,strategy:k,resizeObserverConfig:E,transition:_=v}=e,{items:S,containerId:A,activeIndex:T,disabled:C,disableTransforms:O,sortedRects:j,overIndex:D,useDragOverlay:R,strategy:I}=(0,r.useContext)(p),P=(t=d,n=C,"boolean"==typeof t?{draggable:t,droppable:!1}:{draggable:null!=(a=null==t?void 0:t.draggable)?a:n.draggable,droppable:null!=(l=null==t?void 0:t.droppable)?l:n.droppable}),M=S.indexOf(g),N=(0,r.useMemo)(()=>({sortable:{containerId:A,index:M,items:S},...f}),[A,f,M,S]),$=(0,r.useMemo)(()=>S.slice(S.indexOf(g)),[S,g]),{rect:L,node:F,isOver:U,setNodeRef:z}=(0,i.zM)({id:g,data:N,disabled:P.droppable,resizeObserverConfig:{updateMeasurementsFor:$,...E}}),{active:B,activatorEvent:q,activeNodeRect:V,attributes:H,setNodeRef:W,listeners:Y,isDragging:G,over:K,setActivatorNodeRef:X,transform:Z}=(0,i.PM)({id:g,data:N,attributes:{...x,...c},disabled:P.draggable}),Q=(0,o.jn)(z,W),J=!!B,ee=J&&!O&&s(T)&&s(D),et=!R&&G,en=et&&ee?Z:null,er=ee?null!=en?en:(null!=k?k:I)({rects:j,activeNodeRect:V,activeIndex:T,overIndex:D,index:M}):null,ei=s(T)&&s(D)?h({id:g,items:S,activeIndex:T,overIndex:D}):M,eo=null==B?void 0:B.id,ea=(0,r.useRef)({activeId:eo,items:S,newIndex:ei,containerId:A}),es=S!==ea.current.items,el=u({active:B,containerId:A,isDragging:G,
64isSorting:J,id:g,index:M,items:S,newIndex:ea.current.newIndex,previousItems:ea.current.items,previousContainerId:ea.current.containerId,transition:_,wasDragging:null!=ea.current.activeId}),eu=function(e){let{disabled:t,index:n,node:a,rect:s}=e,[l,u]=(0,r.useState)(null),c=(0,r.useRef)(n);return(0,o.Es)(()=>{if(!t&&n!==c.current&&a.current){let e=s.current;if(e){let t=(0,i.Sj)(a.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&u(n)}}n!==c.current&&(c.current=n)},[t,n,a,s]),(0,r.useEffect)(()=>{l&&u(null)},[l]),l}({disabled:!el,index:M,node:F,rect:L});return(0,r.useEffect)(()=>{J&&ea.current.newIndex!==ei&&(ea.current.newIndex=ei),A!==ea.current.containerId&&(ea.current.containerId=A),S!==ea.current.items&&(ea.current.items=S)},[J,ei,A,S]),(0,r.useEffect)(()=>{if(eo===ea.current.activeId)return;if(eo&&!ea.current.activeId){ea.current.activeId=eo;return}let e=setTimeout(()=>{ea.current.activeId=eo},50);return()=>clearTimeout(e)},[eo]),{active:B,activeIndex:T,attributes:H,data:N,rect:L,index:M,newIndex:ei,items:S,isOver:U,isSorting:J,isDragging:G,listeners:Y,node:F,overIndex:D,over:K,setNodeRef:Q,setActivatorNodeRef:X,setDroppableNodeRef:z,setDraggableNodeRef:W,transform:null!=eu?eu:er,transition:eu||es&&ea.current.newIndex===M?w:(!et||(0,o.kx)(q))&&_&&(J||el)?o.Ks.Transition.toString({..._,property:b}):void 0}}function E(e){if(!e)return!1;let t=e.data.current;return!!t&&"sortable"in t&&"object"==typeof t.sortable&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable}let _=[i.vL.Down,i.vL.Right,i.vL.Up,i.vL.Left],S=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:a,droppableContainers:s,over:l,scrollableAncestors:u}}=t;if(_.includes(e.code)){if(e.preventDefault(),!n||!r)return;let t=[];s.getEnabled().forEach(n=>{if(!n||null!=n&&n.disabled)return;let o=a.get(n.id);
64if(o)switch(e.code){case i.vL.Down:r.top<o.top&&t.push(n);break;case i.vL.Up:r.top>o.top&&t.push(n);break;case i.vL.Left:r.left>o.left&&t.push(n);break;case i.vL.Right:r.left<o.left&&t.push(n)}});let c=(0,i.y$)({active:n,collisionRect:r,droppableRects:a,droppableContainers:t,pointerCoordinates:null}),d=(0,i.Vy)(c,"id");if(d===(null==l?void 0:l.id)&&c.length>1&&(d=c[1].id),null!=d){let e=s.get(n.id),t=s.get(d),l=t?a.get(t.id):null,c=null==t?void 0:t.node.current;if(c&&l&&e&&t){let n=(0,i.sl)(c).some((e,t)=>u[t]!==e),a=A(e,t),s=function(e,t){return!!E(e)&&!!E(t)&&!!A(e,t)&&e.data.current.sortable.index<t.data.current.sortable.index}(e,t),d=n||!a?{x:0,y:0}:{x:s?r.width-l.width:0,y:s?r.height-l.height:0},f={x:l.left,y:l.top};return d.x&&d.y?f:(0,o.Re)(f,d)}}}};function A(e,t){return!!E(e)&&!!E(t)&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}},78436:(e,t,n)=>{"use strict";n.d(t,{GB:()=>m,HA:()=>v,Jo:()=>o,P$:()=>y,RL:()=>b,Uv:()=>w,W2:()=>h,WV:()=>a,d2:()=>f,gR:()=>k,gU:()=>s,hH:()=>u,iL:()=>l,jR:()=>d,lA:()=>c,qm:()=>p,u0:()=>x,wx:()=>g});var r=n(24622),i=n(45885);let o=e=>{if(e.context.selection)return e.context.selection.backward?e.context.selection.focus:e.context.selection.anchor},a=e=>!!e.context.selection&&JSON.stringify(e.context.selection.anchor.path)===JSON.stringify(e.context.selection.focus.path)&&e.context.selection?.anchor.offset===e.context.selection?.focus.offset,s=e=>{if(!e.context.selection)return;let t=(0,i.XE)(e.context.selection.focus),n=t?e.context.value.find(e=>e._key===t):void 0;return n&&t?{node:n,path:[{_key:t}]}:void 0},l=e=>{let t=u(e);return t&&(0,i.Eg)(e.context,t.node)?{node:t.node,path:t.path}:void 0},u=e=>{let t=s(e);return t&&(0,i.zS)(e.context,t.node)?{node:t.node,path:t.path}:void 0},c=e=>{let t=s(e);return t&&!(0,i.zS)(e.context,t.node)?{node:t.node,path:t.path}:void 0},d=e=>{if(!e.context.selection)return;let t=u(e);if(!t)return;let n=(0,i.qX)(e.context.selection.focus),r=n?t.node.children.find(e=>e._key===n):void 0;return r&&n?{node:r,path:[...t.path,"children",{_key:n}]}:void 0},f=e=>{let t=d(e);return t&&(0,i.QU)(e.context,t.node)?{node:t.node,path:t.path}:void 0},h=e=>{let t=e.context.value[0];return t?{node:t,path:[{_key:t._key}]}:void 0},p=e=>{let t=e.context.value[e.context.value.length-1]?e.context.value[e.context.value.length-1]:void 0;return t?{node:t,path:[{_key:t._key}]}:void 0},g=e=>{if(!e.context.selection)return[];let t=[],n=(0,i.Jo)(e.context.selection),r=(0,i.aR)(e.context.selection),o=(0,i.XE)(n),a=(0,i.XE)(r);if(!o||!a)return t;for(let n of e.context.value){if(n._key===o){if(t.push({node:n,path:[{_key:n._key}]}),o===a)break;continue}if(n._key===a){t.push({node:n,path:[{_key:n._key}]});break}t.length>0&&t.push({node:n,path:[{_key:n._key}]})}return t},m=e=>{if(!e.context.selection)return;let t=(0,i.Jo)(e.context.selection),n=(0,i.XE)(t),r=n?e.context.value.find(e=>e._key===n):void 0;return r&&n?{node:r,path:[{_key:n}]}:void 0},y=e=>{if(!e.context.selection)return;let t=(0,i.aR)(e.context.selection),n=(0,i.XE)(t),r=n?e.context.value.find(e=>e._key===n):void 0;return r&&n?{node:r,path:[{_key:n}]}:void 0},v=e=>{let t,n=m(e);if(!n)return;let r=!1;for(let i of e.context.value){if(i._key===n.node._key){r=!0;break}t={node:i,path:[{_key:i._key}]}}if(r&&t)return t},b=e=>{let t,n=y(e);if(!n)return;let r=!1;for(let i of e.context.value){if(i._key===n.node._key){r=!0;continue}if(r){t={node:i,path:[{_key:i._key}]};break}}if(r&&t)return t},w=e=>{let t,n=u(e),a=o(e),s=a&&(0,r.tA)(a.path[2])?a.path[2]._key:void 0;if(n&&s){for(let r of n.node.children){if(r._key===s)break;(0,i.bl)(e.context,r)||(t={node:r,path:[...n.path,"children",{_key:r._key}]})}return t}},x=e=>(e=>(0,i.RJ)({context:e.context,blocks:e.context.value}))(e).reduce((t,n)=>(0,i.zS)(e.context,n)?t+n.children.reduce((t,n)=>(0,i.QU)(e.context,n)?t+n.text:t,""):t,""),k=e=>!a(e)},78515:(e,t,n)=>{var r=n(1674),i=n(15831),o=n(56626),a=n(88567),s=n(11088),l=n(30644),u=n(64843),c=n(43659),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||c(e)||o(e)))return!e.length;var t=i(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(u(e))return!r(e).length;
64for(var n in e)if(d.call(e,n))return!1;return!0}},78567:(e,t,n)=>{var r=n(12953),i=n(63502),o=n(75653),a=n(67912),s=n(88567),l=n(24249);e.exports=function(e){return i(function(t){var n=t.length,i=n,u=r.prototype.thru;for(e&&t.reverse();i--;){var c=t[i];if("function"!=typeof c)throw TypeError("Expected a function");if(u&&!d&&"wrapper"==a(c))var d=new r([],!0)}for(i=d?i:n;++i<n;){var f=a(c=t[i]),h="wrapper"==f?o(c):void 0;d=h&&l(h[0])&&424==h[1]&&!h[4].length&&1==h[9]?d[a(h[0])].apply(d,h[3]):1==c.length&&l(c)?d[f]():d.thru(c)}return function(){var e=arguments,r=e[0];if(d&&1==e.length&&s(r))return d.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}})}},78583:(e,t,n)=>{e.exports=n(26943)["__core-js_shared__"]},78604:(e,t,n)=>{var r=n(63114),i=0;e.exports=function(e){var t=++i;return r(e)+t}},78653:e=>{"use strict";function t(e){e.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},e.languages.webmanifest=e.languages.json}e.exports=t,t.displayName="json",t.aliases=["webmanifest"]},78711:e=>{e.exports=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r}},78741:e=>{"use strict";e.exports=JSON.parse('{"0":"�","128":"€","130":"‚","131":"ƒ","132":"„","133":"…","134":"†","135":"‡","136":"ˆ","137":"‰","138":"Š","139":"‹","140":"Œ","142":"Ž","145":"‘","146":"’","147":"“","148":"”","149":"•","150":"–","151":"—","152":"˜","153":"™","154":"š","155":"›","156":"œ","158":"ž","159":"Ÿ"}')},78808:e=>{"use strict";e.exports=function(e,n){for(var r,i,o,a=e||"",s=n||"div",l={},u=0;u<a.length;)t.lastIndex=u,o=t.exec(a),(r=a.slice(u,o?o.index:a.length))&&(i?"#"===i?l.id=r:l.className?l.className.push(r):l.className=[r]:s=r,u+=r.length),o&&(i=o[0],u++);return{type:"element",tagName:s,properties:l,children:[]}};var t=/[#.]/g},78866:(e,t,n)=>{var r=n(76893),i=n(88435),o=n(1247),a=n(88567);e.exports=function(e,t){return function(n,s){var l=a(n)?r:i,u=t?t():{};return l(n,e,o(s,2),u)}}},78946:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},79073:(e,t,n)=>{var r=n(85411);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},79092:(e,t,n)=>{var r=n(91233),i=n(52441);e.exports=function(e,t){return r(e,i(e),t)}},79130:e=>{var t="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,i="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;e.exports=function(e,o){try{return function e(o,a){if(o===a)return!0;if(o&&a&&"object"==typeof o&&"object"==typeof a){var s,l,u,c;if(o.constructor!==a.constructor)return!1;if(Array.isArray(o)){if((s=o.length)!=a.length)return!1;for(l=s;0!=l--;)if(!e(o[l],a[l]))return!1;return!0}if(n&&o instanceof Map&&a instanceof Map){if(o.size!==a.size)return!1;for(c=o.entries();!(l=c.next()).done;)if(!a.has(l.value[0]))return!1;for(c=o.entries();!(l=c.next()).done;)if(!e(l.value[1],a.get(l.value[0])))return!1;return!0}if(r&&o instanceof Set&&a instanceof Set){if(o.size!==a.size)return!1;for(c=o.entries();!(l=c.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(o)&&ArrayBuffer.isView(a)){if((s=o.length)!=a.length)return!1;for(l=s;0!=l--;)if(o[l]!==a[l])return!1;return!0}if(o.constructor===RegExp)return o.source===a.source&&o.flags===a.flags;if(o.valueOf!==Object.prototype.valueOf&&"function"==typeof o.valueOf&&"function"==typeof a.valueOf)return o.valueOf()===a.valueOf();if(o.toString!==Object.prototype.toString&&"function"==typeof o.toString&&"function"==typeof a.toString)return o.toString()===a.toString();if((s=(u=Object.keys(o)).length)!==Object.keys(a).length)return!1;for(l=s;0!=l--;)if(!Object.prototype.hasOwnProperty.call(a,u[l]))return!1;if(t&&o instanceof Element)return!1;for(l=s;0!=l--;)if(("_owner"!==u[l]&&"__v"!==u[l]&&"__o"!==u[l]||!o.$$typeof)&&!e(o[u[l]],a[u[l]]))return!1;return!0}return o!=o&&a!=a}(e,o)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},79181:(e,t,n)=>{"use strict";n.d(t,{R:()=>s});var r=n(58555),i=function(e){function t(t,n){return e.call(this)||this}return(0,r.C6)(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(n(69e3).yU),o={setInterval:function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var a=o.delegate;return(null==a?void 0:a.setInterval)?a.setInterval.apply(a,(0,r.fX)([e,t],(0,r.zs)(n))):setInterval.apply(void 0,(0,r.fX)([e,t],(0,r.zs)(n)))},clearInterval:function(e){var t=o.delegate;return((null==t?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0},a=n(74814),s=function(e){function t(t,n){var r=e.call(this,t,n)||this;
64return r.scheduler=t,r.work=n,r.pending=!1,r}return(0,r.C6)(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n,r=this.id,i=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(i,r,t)),this.pending=!0,this.delay=t,this.id=null!=(n=this.id)?n:this.requestAsyncId(i,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),o.setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!=n&&this.delay===n&&!1===this.pending)return t;null!=t&&o.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n,r=!1;try{this.work(e)}catch(e){r=!0,n=e||Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),n},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,n=this.scheduler,r=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,(0,a.o)(r,this),null!=t&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(i)},79185:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(47528),i=n(85356),o=n(23339),a=n(71260);function s(e){(0,a.A)(1,arguments);var t=(0,r.A)(e);return Math.round(((0,i.A)(t).getTime()-(function(e){(0,a.A)(1,arguments);var t=(0,o.A)(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),(0,i.A)(n)})(t).getTime())/6048e5)+1}},79423:e=>{e.exports=function(e){return this.__data__.has(e)}},79446:(e,t,n)=>{"use strict";n.d(t,{T:()=>o});var r=n(27778),i=n(94126);function o(e,t){return(0,r.N)(function(n,r){var o=0;n.subscribe((0,i._)(r,function(n){r.next(e.call(t,n,o++))}))})}},79459:e=>{e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},79600:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r,i=new Uint8Array(16);let o=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var a=[],s=0;s<256;++s)a.push((s+256).toString(16).substr(1));let l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(a[e[t+0]]+a[e[t+1]]+a[e[t+2]]+a[e[t+3]]+"-"+a[e[t+4]]+a[e[t+5]]+"-"+a[e[t+6]]+a[e[t+7]]+"-"+a[e[t+8]]+a[e[t+9]]+"-"+a[e[t+10]]+a[e[t+11]]+a[e[t+12]]+a[e[t+13]]+a[e[t+14]]+a[e[t+15]]).toLowerCase();if(!("string"==typeof n&&o.test(n)))throw TypeError("Stringified UUID is invalid");return n},u=function(e,t,n){var o=(e=e||{}).random||(e.rng||function(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(i)})();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(var a=0;a<16;++a)t[n+a]=o[a];return t}return l(o)}},79758:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},79978:(e,t,n)=>{"use strict";e.exports=n(88559)({space:"xlink",transform:function(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}})},80077:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(47528),i=n(71260);function o(e){(0,i.A)(1,arguments);var t=(0,r.A)(e);return t.setSeconds(59,999),t}},80080:(e,t,n)=>{"use strict";n.d(t,{E:()=>i});var r=n(82203);let i=n(83530).B?r.useLayoutEffect:r.useEffect},80207:(e,t,n)=>{"use strict";let r=n(74412);e.exports=(e,t)=>{let n=r(e,t);return n&&n.prerelease.length?n.prerelease:null}},80294:(e,t,n)=>{e.exports=n(78567)()},80417:(e,t,n)=>{e.exports=function(e){function t(e){let n,i,o,a=null;function s(...e){if(!s.enabled)return;let r=Number(new Date);s.diff=r-(n||r),s.prev=n,s.curr=r,n=r,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,r)=>{if("%%"===n)return"%";i++;let o=t.formatters[r];if("function"==typeof o){let t=e[i];n=o.call(s,t),e.splice(i,1),i--}return n}),t.formatArgs.call(s,e),(s.log||t.log).apply(s,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=r,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function r(e,n){let r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function i(e,t){let n=0,r=0,i=-1,o=0;for(;n<e.length;)if(r<t.length&&(t[r]===e[n]||"*"===t[r]))"*"===t[r]?(i=r,o=n):n++,r++;else{if(-1===i)return!1;r=i+1,n=++o}for(;r<t.length&&"*"===t[r];)r++;return r===t.length}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){let e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){for(let n of(t.save(e),t.namespaces=e,t.names=[],t.skips=[],("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(
64Boolean)))"-"===n[0]?t.skips.push(n.slice(1)):t.names.push(n)},t.enabled=function(e){for(let n of t.skips)if(i(e,n))return!1;for(let n of t.names)if(i(e,n))return!0;return!1},t.humanize=n(95215),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t)|0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},80418:(e,t,n)=>{var r=n(3836),i=n(56626),o=n(88567),a=n(86809),s=n(53722),l=n(81489);e.exports=function(e,t,n){t=r(t,e);for(var u=-1,c=t.length,d=!1;++u<c;){var f=l(t[u]);if(!(d=null!=e&&n(e,f)))break;e=e[f]}return d||++u!=c?d:!!(c=null==e?0:e.length)&&s(c)&&a(f,c)&&(o(e)||i(e))}},80602:(e,t,n)=>{var r=n(51162),i=n(72925),o=n(9044);e.exports=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o},80726:(e,t,n)=>{"use strict";let r=n(96818),{MAX_LENGTH:i,MAX_SAFE_INTEGER:o}=n(33368),{safeRe:a,t:s}=n(52458),l=n(97793),{compareIdentifiers:u}=n(28065);class c{constructor(e,t){if(t=l(t),e instanceof c)if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;else e=e.version;else if("string"!=typeof e)throw TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>i)throw TypeError(`version is longer than ${i} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let n=e.trim().match(t.loose?a[s.LOOSE]:a[s.FULL]);if(!n)throw TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||this.major<0)throw TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t<o)return t}return e}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(r("SemVer.compare",this.version,this.options,e),!(e instanceof c)){if("string"==typeof e&&e===this.version)return 0;e=new c(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof c||(e=new c(e,this.options)),u(this.major,e.major)||u(this.minor,e.minor)||u(this.patch,e.patch)}comparePre(e){if(e instanceof c||(e=new c(e,this.options)),this.prerelease.length&&!e.prerelease.length)return -1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{let n=this.prerelease[t],i=e.prerelease[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return -1;else if(n===i)continue;else return u(n,i)}while(++t)}compareBuild(e){e instanceof c||(e=new c(e,this.options));let t=0;do{let n=this.build[t],i=e.build[t];if(r("build compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return -1;else if(n===i)continue;else return u(n,i)}while(++t)}inc(e,t,n){if(e.startsWith("pre")){if(!t&&!1===n)throw Error("invalid increment argument: identifier is empty");if(t){let e=`-${t}`.match(this.options.loose?a[s.PRERELEASELOOSE]:a[s.PRERELEASE]);if(!e||e[1]!==t)throw Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"release":if(0===this.prerelease.length)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{let e=+!!Number(n);if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);
64if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===u(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=c},80809:(e,t,n)=>{var r=n(75169),i=n(63114),o=/[&<>"']/g,a=RegExp(o.source);e.exports=function(e){return(e=i(e))&&a.test(e)?e.replace(o,r):e}},80856:(e,t,n)=>{"use strict";n.d(t,{L:()=>r});let r=(0,n(82203).createContext)({})},81145:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},81304:(e,t,n)=>{var r=n(96408),i=n(78866),o=Object.prototype.hasOwnProperty;e.exports=i(function(e,t,n){o.call(e,n)?e[n].push(t):r(e,n,[t])})},81350:(e,t,n)=>{"use strict";n.d(t,{q:()=>a});var r=n(58555),i=n(92633),o=function(){function e(t,n){void 0===n&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(n,t)},e.now=i.U.now,e}(),a=function(e){function t(t,n){void 0===n&&(n=o.now);var r=e.call(this,t,n)||this;return r.actions=[],r._active=!1,r}return(0,r.C6)(t,e),t.prototype.flush=function(e){var t,n=this.actions;if(this._active)return void n.push(e);this._active=!0;do if(t=e.execute(e.state,e.delay))break;while(e=n.shift());if(this._active=!1,t){for(;e=n.shift();)e.unsubscribe();throw t}},t}(o)},81489:(e,t,n)=>{var r=n(88002),i=1/0;e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}},82011:(e,t,n)=>{"use strict";n.d(t,{BI:()=>M,Co:()=>Y,EA:()=>ee,IU:()=>G,Ki:()=>m,Kp:()=>er,Ls:()=>v,X:()=>h,dj:()=>eO,jT:()=>R,lG:()=>W,r5:()=>en,s5:()=>g,sQ:()=>b,tE:()=>eT,tH:()=>w});var r=n(64732),i=n(7531),o=n(79067),a=n(82203),s=n(49496),l=n(17884),u=n(25056),c=n(50233),d=n(41029);function f(e){let t=requestAnimationFrame(e);return()=>{cancelAnimationFrame(t)}}function h(e){let t=null,n=f(()=>{t=f(e)});return()=>{t&&t(),n()}}function p(e){if(!(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex")||((0,r.nY)(e)?!!e.href&&"ignore"!==e.rel:(0,r.A3)(e)?"hidden"!==e.type&&"file"!==e.type&&!e.disabled:!!((0,r.WE)(e)||(0,r.q4)(e)||(0,r.QY)(e))&&!e.disabled)))return!1;try{e.focus()}catch{}return document.activeElement===e}function g(e){for(let t=0;t<e.childNodes.length;t++){let n=e.childNodes[t];if((0,r.sb)(n)&&(p(n)||g(n)))return!0}return!1}function m(e){for(let t=e.childNodes.length-1;t>=0;t--){let n=e.childNodes[t];if((0,r.sb)(n)&&(p(n)||m(n)))return!0}return!1}function y(e,t){let n=[e];for(let e of t)Array.isArray(e)?n.push(...e):n.push(e);return n.filter(Boolean)}function v(e,t,n){let i,o,s,u,c,d=(0,l.c)(12),f=void 0===t?r.Ml:t,[h,p]=(0,a.useState)(null);d[0]!==h||d[1]!==f?(i=()=>y(h,f),d[0]=h,d[1]=f,d[2]=i):i=d[2];let[g,m]=(0,a.useState)(i),v=(0,a.useRef)(g);return d[3]!==h||d[4]!==f?(o=()=>{let e=v.current,t=y(h,f);if(e.length!==t.length){m(t),v.current=t;return}for(let n of e)if(!t.includes(n)){m(t),v.current=t;return}for(let n of t)if(!e.includes(n)){m(t),v.current=t;return}},s=[h,f],d[3]=h,d[4]=f,d[5]=o,d[6]=s):(o=d[5],s=d[6]),(0,a.useEffect)(o,s),d[7]!==n||d[8]!==g||d[9]!==e?(u=()=>{if(!e)return;let t=t=>{let r=t.target;if(r instanceof Node&&!(n&&!n.contains(r))){for(let e of g)if(r===e||e.contains(r))return;e(t)}};return window.addEventListener("mousedown",t),()=>{window.removeEventListener("mousedown",t)}},c=[n,e,g],d[7]=n,d[8]=g,d[9]=e,d[10]=u,d[11]=c):(u=d[10],c=d[11]),(0,a.useEffect)(u,c),p}function b(e){return(0,r.cF)(e)?._contentRect||null}class w extends a.Component{state={error:null};static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){this.props.onCatch({error:e,info:t})}render(){let{error:e}=this.state;if(e){let t="string"==typeof e?.message?e.message:"Error";return(0,i.jsx)(r.Cy,{children:t})}return this.props.children}}let x=s.I4.div.withConfig({displayName:"StyledAutocomplete",componentId:"sc-1igauft-0"})`line-height:0;`,k=(0,s.I4)(r.az).withConfig({displayName:"ListBox",componentId:"sc-1igauft-1"})`& > ul{list-style:none;padding:0;margin:0;}`,E=(0,s.i7)`
65  from {
66    transform: rotate(0deg);
67  }
68
69  to {
70    transform: rotate(360deg);
71  }
72`,_=(0,s.I4)(o.Nl1).withConfig({displayName:"AnimatedSpinnerIcon",componentId:"sc-1igauft-2"})`animation:${E} 500ms linear infinite;`;function S(e){let t,n,o,a=(0,l.c)(11),{children:s,id:u,onSelect:c,selected:d,value:f}=e;a[0]!==c||a[1]!==f?(t=()=>{setTimeout(()=>{c(f)},0)},a[0]=c,a[1]=f,a[2]=t):t=a[2];let h=t;a[3]!==h?(n=e=>{"Enter"!==e.key||(0,r.zd)(e.currentTarget)||h()},a[3]=h,a[4]=n):n=a[4];let p=n;return a[5]!==s||a[6]!==h||a[7]!==p||a[8]!==u||a[9]!==d?(o=(0,i.jsx)("li",{"aria-selected":d,"data-ui":"AutocompleteOption",id:u,role:"option",onClick:h,onKeyDown:p,children:s}),a[5]=s,a[6]=h,a[7]=p,a[8]=u,a[9]=d,a[10]=o):o=a[10],o}function A(e,t){return"input/change"===t.type?{...e,activeValue:null,focused:!0,query:t.query}:"input/focus"===t.type?{...e,focused:!0}:"root/blur"===t.type?{...e,focused:!1,query:null}:"root/clear"===t.type?{...e,activeValue:null,query:null,value:null}:"root/escape"===t.type?{...e,focused:!1,query:null}:"root/open"===t.type?{...e,query:e.query||t.query}:"root/setActiveValue"===t.type?{...e,activeValue:t.value,listFocused:t.listFocused||e.listFocused}:"root/setListFocused"===t.type?{...e,listFocused:t.listFocused}:"value/change"===t.type?{...e,activeValue:t.value,query:null,value:t.value}:e}let T=["Control","Shift","Alt","Enter","Home","End","PageUp","PageDown","Meta","Tab","CapsLock"],C=["bottom-start","to
72p-start"],O=(e,t)=>t?t.value:e,j=(e,t)=>t.value.toLowerCase().indexOf(e.toLowerCase())>-1,D=(0,a.forwardRef)(function(e,t){let{border:n=!0,customValidity:s,disabled:l,filterOption:u,fontSize:c=2,icon:d,id:h,listBox:p=r.sU,loading:m,onBlur:y,onChange:v,onFocus:b,onQueryChange:w,onSelect:E,openButton:D,openOnFocus:R,options:I,padding:P=3,popover:M=r.sU,prefix:N,radius:$=2,readOnly:L,relatedElements:F,renderOption:U,renderPopover:z,renderValue:B=O,suffix:q,value:V,...H}=e,[W,Y]=(0,a.useReducer)(A,{activeValue:V||null,focused:!1,listFocused:!1,query:null,value:V||null}),{activeValue:G,focused:K,listFocused:X,query:Z,value:Q}=W,J=(0,a.useCallback)(({value:e})=>(0,i.jsx)(r.Zp,{"data-as":"button",padding:P,radius:2,tone:"inherit",children:(0,i.jsx)(r.EY,{size:c,textOverflow:"ellipsis",children:e})}),[c,P]),ee="function"==typeof U?U:J,et="function"==typeof u?u:j,en=(0,a.useRef)(null),er=(0,a.useRef)(null),ei=(0,a.useRef)(null),eo=(0,a.useRef)(null),ea=(0,a.useRef)(!1),es=(0,a.useRef)(Q),el=(0,a.useRef)(V),eu=(0,a.useRef)(!1);(0,a.useImperativeHandle)(t,()=>ei.current);let ec=`${h}-listbox`,ed=Array.isArray(I)?I:r.Ml,ef=(0,r.KC)(P),eh=(0,a.useMemo)(()=>null!==Q?ed.find(e=>e.value===Q):void 0,[ed,Q]),ep=(0,a.useMemo)(()=>ed.filter(e=>!Z||et(Z,e)),[et,ed,Z]),eg=ep.length,em=G?`${h}-option-${G}`:void 0,ey=null!==Z&&m||K&&null!==Z,ev=(0,a.useCallback)(e=>{setTimeout(()=>{if(eu.current)return;let t=(F||[]).concat(en.current?[en.current]:[],er.current?[er.current]:[]),n=!1;if(document.activeElement){for(let e of t)if(e===document.activeElement||e.contains(document.activeElement)){n=!0;break}}!1===n&&(Y({type:"root/blur"}),eu.current=!1,w&&w(null),y&&y(e))},0)},[y,w,F]),eb=(0,a.useCallback)(e=>{let t=eo.current,n=e.target instanceof HTMLElement?e.target:null,r=t?.contains(n)||!1;r!==ea.current&&(ea.current=r,Y({type:"root/setListFocused",listFocused:r}))},[]),ew=(0,a.useCallback)(e=>{Y({type:"value/change",value:e}),eu.current=!1,E&&E(e),es.current=e,v&&v(e),w&&w(null),ei.current?.focus()},[v,E,w]),ex=(0,a.useCallback)(e=>{if("ArrowDown"===e.key){if(e.preventDefault(),!eg)return;let t=ep.find(e=>e.value===G),n=t?ep.indexOf(t):-1,r=ep[(n+1)%eg];r&&Y({type:"root/setActiveValue",value:r.value,listFocused:!0});return}if("ArrowUp"===e.key){if(e.preventDefault(),!eg)return;let t=ep.find(e=>e.value===G),n=t?ep.indexOf(t):-1,r=ep[-1===n?eg-1:(eg+n-1)%eg];r&&Y({type:"root/setActiveValue",value:r.value,listFocused:!0});return}if("Escape"===e.key){Y({type:"root/escape"}),eu.current=!1,w&&w(null),ei.current?.focus();return}let t=e.target,n=eo.current;if((n===t||n?.contains(t))&&!T.includes(e.key))return void ei.current?.focus()},[G,ep,eg,w]),ek=(0,a.useCallback)(e=>{let t=e.currentTarget.value;Y({type:"input/change",query:t}),w&&w(t)},[w]),eE=(0,a.useCallback)(()=>{Y({type:"root/open",query:Q?B(Q,eh):""})},[eh,B,Q]),e_=(0,a.useCallback)(e=>{K||(Y({type:"input/focus"}),b&&b(e),R&&eE())},[K,b,R,eE]),eS=(0,a.useCallback)(()=>{eu.current=!0},[]),eA=(0,a.useCallback)(()=>{eu.current=!1},[]),eT=(0,a.useCallback)(()=>{Y({type:"root/clear"}),es.current="",v&&v(""),w&&w(null),ei.current?.focus()},[v,w]),eC=(0,a.useCallback)(()=>{Y({type:"input/focus"})},[]);(0,a.useEffect)(()=>{if(V!==el.current){el.current=V,void 0!==V&&(Y({type:"value/change",value:V}),es.current=V);return}V!==es.current&&(es.current=V||null,Y({type:"value/change",value:V||null}))},[V]),(0,a.useEffect)(()=>{!K&&es.current&&Y({type:"root/setActiveValue",value:es.current})},[K]),(0,a.useEffect)(()=>{let e=eo.current;if(!e)return;let t=ep.find(e=>e.value===G);if(t){let n=ep.indexOf(t),r=e.childNodes[n];if(r){if(document.activeElement&&r.contains(document.activeElement))return;g(r)}}},[G,ep]);let eO=(0,a.useMemo)(()=>{if(!m&&!l&&Q)return{"aria-label":"Clear",onFocus:eC}},[l,eC,m,Q]),ej=(0,a.useMemo)(()=>ef.map(e=>0===e?0:1===e||2===e?1:e-2),[ef]),eD=(0,a.useMemo)(()=>ef.map(e=>Math.max(e-1,0)),[ef]),eR=(0,a.useMemo)(()=>"object"==typeof D?D:r.sU,[D]),eI=(0,a.useCallback)(e=>{eE(),eR.onClick&&eR.onClick(e),f(()=>ei.current?.focus())},[eR,eE]),eP=(0,a.useMemo)(()=>l||L||!D?void 0:(0,i.jsx)(r.az,{"aria-hidden":ey,padding:ej,children:(0,i.jsx)(r.$n,{"aria-label":"Open",disabled:ey,fontSize:c,icon:o.D3D,mode:"bleed",padding:eD,...eR,onClick:eI})}),[l,ey,c,eI,D,ej,eD,eR,L]),eM=(0,a.useMemo)(()=>null===Z?null!==Q?B(Q,eh):"":Z,[eh,Z,B,Q]),eN=(0,i.jsx)(r.ks,{...H,"aria-activedescendant":em,"aria-autocomplete":"list","aria-expanded":ey,"aria-owns":ec,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",border:n,clearButton:eO,customValidity:s,disabled:l,fontSize:c,icon:d,iconRight:m&&_,id:h,inputMode:"search",onChange:ek,onClear:eT,onF
72ocus:e_,padding:ef,prefix:N,radius:$,readOnly:L,ref:ei,role:"combobox",spellCheck:!1,suffix:q||eP,value:eM}),e$=(0,a.useCallback)(e=>{"Tab"===e.key&&X&&ei.current?.focus()},[X]),eL=(0,a.useMemo)(()=>0===ep.length?null:(0,i.jsx)(k,{"data-ui":"AutoComplete__results",onKeyDown:e$,padding:1,...p,tabIndex:-1,children:(0,i.jsx)(r.BJ,{as:"ul","aria-multiselectable":!1,"data-ui":"AutoComplete__resultsList",id:ec,ref:eo,role:"listbox",space:1,children:ep.map(e=>{let t=null!==G?e.value===G:eh===e;return(0,i.jsx)(S,{id:`${h}-option-${e.value}`,onSelect:ew,selected:t,value:e.value,children:(0,a.cloneElement)(ee(e),{disabled:m,selected:t,tabIndex:X&&t?0:-1})},e.value)})})}),[G,eh,ep,ew,e$,h,p,ec,X,m,ee]),eF=(0,a.useMemo)(()=>z?z({content:eL,hidden:!ey,inputElement:ei.current,onMouseEnter:eS,onMouseLeave:eA},er):0===eg?null:(0,i.jsx)(r.AM,{arrow:!1,constrainSize:!0,content:eL,fallbackPlacements:C,matchReferenceWidth:!0,onMouseEnter:eS,onMouseLeave:eA,open:ey,overflow:"auto",placement:"bottom-start",portal:!0,radius:$,ref:er,referenceElement:ei.current,...M}),[eL,ey,eg,eS,eA,M,$,z]);return(0,i.jsxs)(x,{"data-ui":"Autocomplete",onBlur:ev,onFocus:eb,onKeyDown:ex,ref:en,children:[eN,eF]})});D.displayName="ForwardRef(Autocomplete)";let R=D,I=s.I4.ol.withConfig({displayName:"StyledBreadcrumbs",componentId:"sc-1es8h8q-0"})`margin:0;padding:0;display:flex;list-style:none;align-items:center;white-space:nowrap;line-height:0;`,P=(0,s.I4)(r.$n).withConfig({displayName:"ExpandButton",componentId:"sc-1es8h8q-1"})`appearance:none;margin:-4px;`,M=(0,a.forwardRef)(function(e,t){let{children:n,maxLength:o,separator:s,space:l=2,...u}=e,c=(0,r.KC)(l),[d,f]=(0,a.useState)(!1),h=(0,a.useRef)(null),p=(0,a.useRef)(null),g=(0,a.useCallback)(()=>f(!1),[]),m=(0,a.useCallback)(()=>f(!0),[]);(0,r.PR)(g,()=>[h.current,p.current]);let y=(0,a.useMemo)(()=>a.Children.toArray(n).filter(a.isValidElement),[n]),v=(0,a.useMemo)(()=>{let e=y.length;if(o&&e>o){let t=Math.ceil(o/2),n=Math.floor(o/2);return[...y.slice(0,t-1),(0,i.jsx)(r.AM,{constrainSize:!0,content:(0,i.jsx)(r.BJ,{as:"ol",overflow:"auto",padding:c,space:c,children:y.slice(t-1,e-n)}),open:d,placement:"top",portal:!0,ref:p,children:(0,i.jsx)(P,{fontSize:1,mode:"bleed",onClick:d?g:m,padding:1,ref:h,selected:d,text:"…"})},"button"),...y.slice(e-n)]}return y},[g,m,o,d,y,c]);return(0,i.jsx)(I,{"data-ui":"Breadcrumbs",...u,ref:t,children:v.map((e,t)=>(0,i.jsxs)(a.Fragment,{children:[t>0&&(0,i.jsx)(r.az,{"aria-hidden":!0,as:"li",paddingX:c,children:s||(0,i.jsx)(r.EY,{muted:!0,children:"/"})}),(0,i.jsx)(r.az,{as:"li",children:e})]},t))})});M.displayName="ForwardRef(Breadcrumbs)";let N=(0,r.bz)("@sanity/ui/context/dialog",{version:0});function $(e,t,n){return!e||!t||(0,r.Q3)(e,n)||(0,r.Q3)(t,n)}let L=(0,s.I4)(r.Wd).withConfig({displayName:"StyledDialog",componentId:"sc-4n4xb3-0"})(r.l_,function({theme:e}){let{color:t}=(0,u.JW)(e);return{"&:not([hidden])":{display:"flex"},top:0,left:0,right:0,bottom:0,alignItems:"center",justifyContent:"center",outline:"none",background:t.backdrop}},function(e){let{media:t}=(0,u.JW)(e.theme);return(0,r.U1)(t,e.$position,e=>({"&&":{position:e}}))},function(e){return e.$animate?(0,s.AH)`
73    @keyframes zoomIn {
74      from {
75        opacity: 0;
76        transform: scale(0.95);
77      }
78      to {
79        opacity: 1;
80        transform: scale(1);
81      }
82    }
83    @keyframes fadeIn {
84      from {
85        opacity: 0;
86      }
87      to {
88        opacity: 1;
89      }
90    }
91
92    animation: fadeIn 200ms ease-out;
93    // Animates the dialog card.
94    & > [data-ui='DialogCard'] {
95      animation: zoomIn 200ms ease-out;
96    }
97  `:(0,s.AH)``}),F=(0,s.I4)(r.mc).withConfig({displayName:"DialogContainer",componentId:"sc-4n4xb3-1"})`&:not([hidden]){display:flex;}width:100%;height:100%;flex-direction:column;align-items:center;justify-content:center;`,U=(0,s.I4)(r.Zp).withConfig({displayName:"DialogCardRoot",componentId:"sc-4n4xb3-2"})`&:not([hidden]){display:flex;}width:100%;min-height:0;max-height:100%;overflow:hidden;overflow:clip;`,z=(0,s.I4)(r.so).withConfig({displayName:"DialogLayout",componentId:"sc-4n4xb3-3"})`flex:1;min-height:0;width:100%;`,B=(0,s.I4)(r.az).withConfig({displayName:"DialogHeader",componentId:"sc-4n4xb3-4"})`position:relative;z-index:2;`,q=(0,s.I4)(r.az).withConfig({displayName:"DialogContent",componentId:"sc-4n4xb3-5"})`position:relative;z-index:1;overflow:auto;outline:none;`,V=(0,s.I4)(r.az).withConfig({displayName:"DialogFooter",componentId:"sc-4n4xb3-6"})`position:relative;z-index:3;`,H=(0,a.forwardRef)(function(e,t){let n,s,u,c,d,f,h,p,m,y,v,b,w,x=(0,l.c)(38),{__unstable_autoFocus:k,__unstable_hideCloseButton:E,children:_,contentRef:S,footer:A,header:T,id:C,onClickOutside:O,onClose:j,portal:D,radius:R,scheme:I,shadow:P,width:M}=e,N=(0,r.WP)(),L=D?N.elements?.[D]||null:N.element,H=(0,r.$w)().element,W=(0,r.KC)(R),Y=(0,r.KC)(P),G=(0,r.KC)(M),K=(0,a.useRef)(null),X=(0,a.useRef)(null),{isTopLayer:Z}=(0,r.Z4)(),Q=`${C}_label`,J=!!j&&!1===E,ee=!!T||J;return x[0]===Symbol.for("react.memo_cache_sentinel")?(n=()=>K.current,x[0]=n):n=x[0],(0,a.useImperativeHandle)(t,n),x[1]===Symbol.for("react.memo_cache_sentinel")?(s=()=>X.current,x[1]=s):s=x[1],(0,a.useImperativeHandle)(S,s),x[2]!==k?(u=()=>{k&&K.current&&g(K.current)},c=[k,K],x[2]=k,x[3]=u,x[4]=c):(u=x[3],c=x[4]),(0,a.useEffect)(u,c),x[5]!==H||x[6]!==Z||x[7]!==j||x[8]!==L?(d=e=>{if(!Z||!j)return;let t=document.activeElement;t&&!$(H,L,t)||"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),j())}
97,x[5]=H,x[6]=Z,x[7]=j,x[8]=L,x[9]=d):d=x[9],(0,r.Pm)(d),x[10]!==H||x[11]!==Z||x[12]!==O||x[13]!==L?(f=Z&&O&&(e=>{let t=e.target;t&&!$(H,L,t)||O()}),x[10]=H,x[11]=Z,x[12]=O,x[13]=L,x[14]=f):f=x[14],x[15]===Symbol.for("react.memo_cache_sentinel")?(h=()=>[K.current],x[15]=h):h=x[15],(0,r.PR)(f,h),x[16]!==T||x[17]!==Q||x[18]!==j||x[19]!==J||x[20]!==ee?(p=ee&&(0,i.jsx)(B,{children:(0,i.jsxs)(r.so,{align:"flex-start",padding:3,children:[(0,i.jsx)(r.az,{flex:1,padding:2,children:T&&(0,i.jsx)(r.EY,{id:Q,size:1,weight:"semibold",children:T})}),J&&(0,i.jsx)(r.az,{flex:"none",children:(0,i.jsx)(r.$n,{"aria-label":"Close dialog",disabled:!j,icon:o.USm,mode:"bleed",onClick:j,padding:2})})]})}),x[16]=T,x[17]=Q,x[18]=j,x[19]=J,x[20]=ee,x[21]=p):p=x[21],x[22]!==_?(m=(0,i.jsx)(q,{flex:1,ref:X,tabIndex:-1,children:_}),x[22]=_,x[23]=m):m=x[23],x[24]!==A?(y=A&&(0,i.jsx)(V,{children:A}),x[24]=A,x[25]=y):y=x[25],x[26]!==p||x[27]!==m||x[28]!==y?(v=(0,i.jsxs)(z,{direction:"column",children:[p,m,y]}),x[26]=p,x[27]=m,x[28]=y,x[29]=v):v=x[29],x[30]!==W||x[31]!==I||x[32]!==Y||x[33]!==v?(b=(0,i.jsx)(U,{radius:W,ref:K,scheme:I,shadow:Y,children:v}),x[30]=W,x[31]=I,x[32]=Y,x[33]=v,x[34]=b):b=x[34],x[35]!==b||x[36]!==G?(w=(0,i.jsx)(F,{"data-ui":"DialogCard",width:G,children:b}),x[35]=b,x[36]=G,x[37]=w):w=x[37],w});H.displayName="ForwardRef(DialogCard)";let W=(0,a.forwardRef)(function(e,t){let n,o,s,u,c,d,f,h,p,y,v,b,w,x,k,E,_,S,A,T,C,O,j,D,R,I,P,M,F=(0,l.c)(60),U=(0,a.useContext)(N),{layer:z}=(0,r.M4)();F[0]!==e?({__unstable_autoFocus:k,__unstable_hideCloseButton:E,cardRadius:_,cardShadow:S,children:s,contentRef:u,footer:c,header:d,id:f,onActivate:h,onClickOutside:p,onClose:y,onFocus:v,padding:A,portal:b,position:n,scheme:x,width:T,zOffset:o,animate:C,...w}=e,F[0]=e,F[1]=n,F[2]=o,F[3]=s,F[4]=u,F[5]=c,F[6]=d,F[7]=f,F[8]=h,F[9]=p,F[10]=y,F[11]=v,F[12]=b,F[13]=w,F[14]=x,F[15]=k,F[16]=E,F[17]=_,F[18]=S,F[19]=A,F[20]=T,F[21]=C):(n=F[1],o=F[2],s=F[3],u=F[4],c=F[5],d=F[6],f=F[7],h=F[8],p=F[9],y=F[10],v=F[11],b=F[12],w=F[13],x=F[14],k=F[15],E=F[16],_=F[17],S=F[18],A=F[19],T=F[20],C=F[21]);let B=void 0===k||k,q=void 0!==E&&E,V=void 0===_?4:_,W=void 0===S?3:S,Y=void 0===A?3:A,G=void 0===T?0:T,K=void 0!==C&&C,X=n??(U.position||"fixed"),Z=o??(U.zOffset||z.dialog.zOffset),Q=!(0,r.jt)()&&K,J=(0,r.WP)(),ee=b?J.elements?.[b]||null:J.element,et=(0,r.$w)().element,en=(0,r.KC)(V),er=(0,r.KC)(Y),ei=(0,r.KC)(X),eo=(0,r.KC)(G),ea=(0,r.KC)(Z),es=(0,a.useRef)(null),el=(0,a.useRef)(null),eu=(0,a.useRef)(null),ec=(0,a.useRef)(null);F[22]!==v?(O=e=>{v?.(e);let t=e.target,n=eu.current;return n&&t===es.current?void m(n):n&&t===el.current?void g(n):void((0,r.sb)(e.target)&&(ec.current=e.target))},F[22]=v,F[23]=O):O=F[23];let ed=O,ef=`${f}_label`,eh=(0,a.useRef)(void 0);F[24]!==et||F[25]!==ee?(j=()=>{eh.current&&clearTimeout(eh.current),eh.current=setTimeout(()=>{let e=document.activeElement;if(e&&!$(et,ee,e)){let e=ec.current;if(!e||!document.body.contains(e)){let e=eu.current;e&&g(e);return}
97e.focus()}},0)},F[24]=et,F[25]=ee,F[26]=j):j=F[26];let ep=j;return F[27]===Symbol.for("react.memo_cache_sentinel")?(D=(0,i.jsx)("div",{ref:es,tabIndex:0}),F[27]=D):D=F[27],F[28]!==B||F[29]!==en||F[30]!==W||F[31]!==s||F[32]!==u||F[33]!==c||F[34]!==d||F[35]!==q||F[36]!==f||F[37]!==p||F[38]!==y||F[39]!==b||F[40]!==x||F[41]!==eo?(R=(0,i.jsx)(H,{__unstable_autoFocus:B,__unstable_hideCloseButton:q,contentRef:u,footer:c,header:d,id:f,onClickOutside:p,onClose:y,portal:b,radius:en,ref:eu,scheme:x,shadow:W,width:eo,children:s}),F[28]=B,F[29]=en,F[30]=W,F[31]=s,F[32]=u,F[33]=c,F[34]=d,F[35]=q,F[36]=f,F[37]=p,F[38]=y,F[39]=b,F[40]=x,F[41]=eo,F[42]=R):R=F[42],F[43]===Symbol.for("react.memo_cache_sentinel")?(I=(0,i.jsx)("div",{ref:el,tabIndex:0}),F[43]=I):I=F[43],F[44]!==Q||F[45]!==ed||F[46]!==ep||F[47]!==f||F[48]!==ef||F[49]!==h||F[50]!==er||F[51]!==ei||F[52]!==t||F[53]!==w||F[54]!==R||F[55]!==ea?(P=(0,i.jsxs)(L,{...w,$animate:Q,$padding:er,$position:ei,"aria-labelledby":ef,"aria-modal":!0,"data-ui":"Dialog",id:f,onActivate:h,onClick:ep,onFocus:ed,ref:t,role:"dialog",zOffset:ea,children:[D,R,I]}),F[44]=Q,F[45]=ed,F[46]=ep,F[47]=f,F[48]=ef,F[49]=h,F[50]=er,F[51]=ei,F[52]=t,F[53]=w,F[54]=R,F[55]=ea,F[56]=P):P=F[56],F[57]!==b||F[58]!==P?(M=(0,i.jsx)(r.ZL,{__unstable_name:b,children:P}),F[57]=b,F[58]=P,F[59]=M):M=F[59],M});function Y(e){let t,n,r,o=(0,l.c)(6),{children:a,position:s,zOffset:u}=e;return o[0]!==s||o[1]!==u?(n={version:0,position:s,zOffset:u},o[0]=s,o[1]=u,o[2]=n):n=o[2],t=n,o[3]!==a||o[4]!==t?(r=(0,i.jsx)(N.Provider,{value:t,children:a}),o[3]=a,o[4]=t,o[5]=r):r=o[5],r}W.displayName="ForwardRef(Dialog)",Y.displayName="DialogProvider";let G=(0,a.forwardRef)(function(e,t){let n,o,s,u,c,d,f,h,p,g,m,y,v,b,w,x,k,E,_,S,A,T,C,O,j,D=(0,l.c)(62),{__unstable_disableRestoreFocusOnClose:R,boundaryElement:I,button:P,id:M,menu:N,onClose:$,onOpen:L,placement:F,popoverScheme:U,portal:z,popover:B,popoverRadius:q,preventOverflow:V}=e,H=void 0!==R&&R,W=void 0===z||z,[Y,G]=(0,a.useState)(!1),[X,Z]=(0,a.useState)(null),[Q,J]=(0,a.useState)(null);D[0]===Symbol.for("react.memo_cache_sentinel")?(n=[],D[0]=n):n=D[0];let[ee,et]=(0,a.useState)(n),en=(0,a.useRef)(Y);D[1]!==L||D[2]!==Y?(o=()=>{L&&Y&&!en.current&&L()},s=[L,Y],D[1]=L,D[2]=Y,D[3]=o,D[4]=s):(o=D[3],s=D[4]),(0,a.useEffect)(o,s),D[5]!==$||D[6]!==Y?(u=()=>{$&&!Y&&en.current&&$()},c=[$,Y],D[5]=$,D[6]=Y,D[7]=u,D[8]=c):(u=D[7],c=D[8]),(0,a.useEffect)(u,c),D[9]!==Y?(d=()=>{en.current=Y},f=[Y],D[9]=Y,D[10]=d,D[11]=f):(d=D[10],f=D[11]),(0,a.useEffect)(d,f),D[12]===Symbol.for("react.memo_cache_sentinel")?(h=()=>{G(K),Z(null)},D[12]=h):h=D[12];let er=h;D[13]!==Y?(p=e=>{Y&&e.preventDefault()},D[13]=Y,D[14]=p):p=D[14];let ei=p;D[15]===Symbol.for("react.memo_cache_sentinel")?(g=e=>{if("ArrowDown"===e.key||"Enter"===e.key||" "===e.key){e.preventDefault(),G(!0),Z("first");return}if("ArrowUp"===e.key){e.preventDefault(),G(!0),Z("last");return}},D[15]=g):g=D[15];let eo=g;D[16]!==Q||D[17]!==ee?(m=e=>{let t=e.target;if(t instanceof Node&&!(Q&&(t===Q||Q.contains(t)))){for(let e of ee)if(t===e||e.contains(t))return;G(!1)}},D[16]=Q,D[17]=ee,D[18]=m):m=D[18];let ea=m;D[19]!==Q||D[20]!==H?(y=()=>{G(!1),!H&&Q&&Q.focus()},D[19]=Q,D[20]=H,D[21]=y):y=D[21];let es=y;D[22]!==ee?(v=e=>{let t=e.relatedTarget;if(t instanceof Node){for(let e of ee)if(e===t||e.contains(t))return;G(!1)}},D[22]=ee,D[23]=v):v=D[23];let el=v;D[24]!==Q||D[25]!==H?(b=()=>{G(!1),!H&&Q&&Q.focus()},D[24]=Q,D[25]=H,D[26]=b):b=D[26];let eu=b;D[27]===Symbol.for("react.memo_cache_sentinel")?(w=e=>(et(t=>t.concat([e])),()=>et(t=>t.filter(t=>t!==e))),D[27]=w):w=D[27];let ec=w;D[28]!==Q||D[29]!==el||D[30]!==eu||D[31]!==ea||D[32]!==es||D[33]!==M||D[34]!==N||D[35]!==X?(x=N&&(0,a.cloneElement)(N,{"aria-labelledby":M,onBlurCapture:el,onClickOutside:ea,onEscape:es,onItemClick:eu,originElement:Q,registerElement:ec,shouldFocus:X}),D[28]=Q,D[29]=el,D[30]=eu,D[31]=ea,D[32]=es,D[33]=M,D[34]=N,D[35]=X,D[36]=x):x=D[36];let ed=x;return D[37]!==P||D[38]!==ei||D[39]!==M||D[40]!==Y?(E=P&&(0,a.cloneElement)(P,{"data-ui":"MenuButton",id:M,onClick:er,onKeyDown:eo,onMouseDown:ei,"aria-haspopup":!0,"aria-expanded":Y,ref:J,selected:P.props.selected??Y}),D[37]=P,D[38]=ei,D[39]=M,D[40]=Y,D[41]=E):E=D[41],k=E,D[42]!==Q?(_=()=>Q,S=[Q],D[42]=Q,D[43]=_,D[44]=S):(_=D[43],S=D[44]),(0,a.useImperativeHandle)(t,_,S),D[45]!==B?(T=B||{},D[45]=B,D[46]=T):T=D[46],D[47]!==I||D[48]!==F||D[49]!==q||D[50]!==U||D[51]!==W||D[52]!==V||D[53]!==T?(C={boundaryElement:I,overflow:"auto",placement:F,portal:W,preventOverflow:V,radius:q,scheme:U,...T},D[47]=I,D[48]=F,D[49]=q,D[50]=U,D[51]=W,D[52]=V,D[53]=T,D[54]=C):C=D[54],A=C,D[55]!==k?(O=k||(0,i.jsx)(i.Fragment,{}),D[55]=k,D[56]=O):O=D[56],D[57]!==ed||D[58]!==Y||D[59]!==A||D[60]!==O?(j=(0,i.jsx)(r.AM,{"data-ui":"MenuButton__popover",...A,content:ed,open:Y,children:O}),D[57]=ed,D[58]=Y,D[59]=A,D[60]=O,D[61]=j):j=D[61],j});function K(e){return!e}G.displayName="ForwardRef(MenuButton)";let X=(0,s.i7)`
98  0% {
99    background-position: 100%;
100  }
101  100% {
102    background-position: -100%;
103  }
104`,Z=(0,s.AH)`
105  background-image: linear-gradient(
106    to right,
107    var(--card-skeleton-color-from),
108    var(--card-skeleton-color-to),
109    var(--card-skeleton-color-from),
110    var(--card-skeleton-color-from),
111    var(--card-skeleton-color-from)
112  );
113  background-position: 100%;
114  background-size: 200% 100%;
115  background-attachment: fixed;
116  animation-name: ${X};
117  animation-timing-function: ease-in-out;
118  animation-iteration-count: infinite;
119  animation-duration: 2000ms;
120`,Q=(0,s.AH)`
121  opacity: ${({$visible:e})=>+!!e};
122  transition: opacity 200ms ease-in;
123
124  @media screen and (prefers-reduced-motion: no-preference) {
125    ${({$animated:e})=>e?Z:(0,s.AH)`
126            background-color: var(--card-skeleton-color-from);
127          `}
128  }
129
130  @media screen and (prefers-reduced-motion: reduce) {
131    background-color: var(--card-skeleton-color-from);
132  }
133`,J=(0,s.I4)(r.az).withConfig({displayName:"StyledSkeleton",componentId:"sc-ebtpni-0"})(r.gK,Q),ee=(0,a.forwardRef)(function(e,t){let n,o,s,u,c,d,f,h=(0,l.c)(14);h[0]!==e?({animated:u,delay:n,radius:o,...s}=e,h[0]=e,h[1]=n,h[2]=o,h[3]=s,h[4]=u):(n=h[1],o=h[2],s=h[3],u=h[4]);let p=void 0!==u&&u,[g,m]=(0,a.useState)(!n);h[5]!==n?(c=()=>
133{if(!n)return m(!0);let e=setTimeout(()=>{m(!0)},n);return()=>{clearTimeout(e)}},d=[n],h[5]=n,h[6]=c,h[7]=d):(c=h[6],d=h[7]),(0,a.useEffect)(c,d);let y=(0,r.KC)(o);return h[8]!==p||h[9]!==t||h[10]!==s||h[11]!==y||h[12]!==g?(f=(0,i.jsx)(J,{...s,$animated:p,$radius:y,$visible:g,ref:t}),h[8]=p,h[9]=t,h[10]=s,h[11]=y,h[12]=g,h[13]=f):f=h[13],f});ee.displayName="ForwardRef(Skeleton)";let et=(0,s.I4)(ee).withConfig({displayName:"StyledSkeleton",componentId:"sc-2p7a1v-0"})(e=>{let{$size:t,$style:n}=e,{font:i,media:o}=(0,u.JW)(e.theme),a=i[n];return(0,r.U1)(o,t,e=>{let t=a.sizes[e];return{height:t.lineHeight-t.ascenderHeight-t.descenderHeight}})}),en=(0,a.forwardRef)(function(e,t){let n,o,a,s=(0,l.c)(7);s[0]!==e?({size:o,...n}=e,s[0]=e,s[1]=n,s[2]=o):(n=s[1],o=s[2]);let u=(0,r.KC)(void 0===o?2:o);return s[3]!==u||s[4]!==t||s[5]!==n?(a=(0,i.jsx)(et,{...n,$size:u,ref:t,$style:"text"}),s[3]=u,s[4]=t,s[5]=n,s[6]=a):a=s[6],a});en.displayName="ForwardRef(TextSkeleton)",(0,a.forwardRef)(function(e,t){let n,o,a,s=(0,l.c)(7);s[0]!==e?({size:o,...n}=e,s[0]=e,s[1]=n,s[2]=o):(n=s[1],o=s[2]);let u=(0,r.KC)(void 0===o?2:o);return s[3]!==u||s[4]!==t||s[5]!==n?(a=(0,i.jsx)(et,{...n,$size:u,ref:t,$style:"label"}),s[3]=u,s[4]=t,s[5]=n,s[6]=a):a=s[6],a}).displayName="ForwardRef(LabelSkeleton)",(0,a.forwardRef)(function(e,t){let n,o,a,s=(0,l.c)(7);s[0]!==e?({size:o,...n}=e,s[0]=e,s[1]=n,s[2]=o):(n=s[1],o=s[2]);let u=(0,r.KC)(void 0===o?2:o);return s[3]!==u||s[4]!==t||s[5]!==n?(a=(0,i.jsx)(et,{...n,$size:u,ref:t,$style:"heading"}),s[3]=u,s[4]=t,s[5]=n,s[6]=a):a=s[6],a}).displayName="ForwardRef(HeadingSkeleton)",(0,a.forwardRef)(function(e,t){let n,o,a,s=(0,l.c)(7);s[0]!==e?({size:o,...n}=e,s[0]=e,s[1]=n,s[2]=o):(n=s[1],o=s[2]);let u=(0,r.KC)(void 0===o?2:o);return s[3]!==u||s[4]!==t||s[5]!==n?(a=(0,i.jsx)(et,{...n,$size:u,ref:t,$style:"code"}),s[3]=u,s[4]=t,s[5]=n,s[6]=a):a=s[6],a}).displayName="ForwardRef(CodeSkeleton)";let er=(0,a.forwardRef)(function(e,t){let n,o,a,s=(0,l.c)(9);s[0]!==e?({flex:n,...o}=e,s[0]=e,s[1]=n,s[2]=o):(n=s[1],o=s[2]);let u=void 0===e.tabIndex?0:e.tabIndex;return s[3]!==n||s[4]!==e.children||s[5]!==t||s[6]!==o||s[7]!==u?(a=(0,i.jsx)(r.az,{"data-ui":"TabPanel",...o,flex:n,ref:t,role:"tabpanel",tabIndex:u,children:e.children}),s[3]=n,s[4]=e.children,s[5]=t,s[6]=o,s[7]=u,s[8]=a):a=s[8],a});er.displayName="ForwardRef(TabPanel)";let ei={error:"critical",warning:"caution",success:"positive",info:"neutral"},eo={error:"critical",warning:"caution",success:"positive",info:"neutral"},ea=(0,s.I4)(r.so).withConfig({displayName:"TextBox",componentId:"sc-1rr7rxo-0"})`overflow-x:auto;`,es=(0,s.I4)(r.Zp).withConfig({displayName:"StyledToast",componentId:"sc-1rr7rxo-1"})`pointer-events:all;width:100%;position:relative;overflow:hidden;overflow:clip;&[data-has-duration]{padding-bottom:calc(${2}px / 2);}`,el=s.I4.div.withConfig({displayName:"LoadingBar",componentId:"sc-1rr7rxo-2"})`display:flex;position:absolute;bottom:0px;top:0px;left:0px;right:0px;pointer-events:none;z-index:-1;overflow:hidden;overflow:clip;background:transparent;align-items:flex-end;will-change:opacity;`,eu=(0,s.I4)(r.Zp).withConfig({displayName:"LoadingBarMask",componentId:"sc-1rr7rxo-3"})`position:absolute;top:0;left:-${2}px;right:-${2}px;bottom:${2}px;z-index:1;`,ec=(0,s.I4)(r.Zp).withConfig({displayName:"LoadingBarProgress",componentId:"sc-1rr7rxo-4"})`display:block;height:100%;width:100%;transform-origin:0% 50%;background-color:${e=>{let{color:t}=(0,u.JW)(e.theme);return t.button.default[e.tone].enabled.bg}};`,ed={error:"alert",warning:"alert",success:"alert",info:"alert"};function ef(e){let t,n,a,s,u,c,d,f,h,p,g,m,y,v,b,w,x,k,E,_,S=(0,l.c)(50);S[0]!==e?({closable:t,description:n,duration:a,onClose:s,radius:d,title:f,status:c,updatedAt:h,...u}=e,S[0]=e,S[1]=t,S[2]=n,S[3]=a,S[4]=s,S[5]=u,S[6]=c,S[7]=d,S[8]=f,S[9]=h):(t=S[1],n=S[2],a=S[3],s=S[4],u=S[5],c=S[6],d=S[7],f=S[8],h=S[9]);let A=void 0===d?3:d,T=c?ei[c]:"default",C=c?eo[c]:"default",O=c?ed[c]:"status",j=.26*!(0,r.jt)();S[10]!==j?(p=j?{type:"spring",visualDuration:j,bounce:.25}:{duration:0},S[10]=j,S[11]=p):p=S[11];let D=p,R=a&&isFinite(a)&&a<20736e5;S[12]===Symbol.for("react.memo_cache_sentinel")?(g=["hidden","initial"],S[12]=g):g=S[12];let I=g;S[13]===Symbol.for("react.memo_cache_sentinel")?(m=["visible","slideIn"],S[13]=m):m=S[13];let P=m;S[14]===Symbol.for("react.memo_cache_sentinel")?(y=["hidden","slideOut"],S[14]=y):y=S[14];let M=y,N=R?"":void 0;return S[15]!==f?(v=f&&(0,i.jsx)(r.EY,{size:1,weight:"medium",children:f}),S[15]=f,S[16]=v):v=S[16],S[17]!==n||S[18]!==D?(b=n&&(0,i.jsx)(ey,{muted:!0,size:1,variants:ep,transition:D,children:n}),S[17]=n,S[18]=D,S[19]=b):b=S[19],S[20]!==v||S[21]!==b?(w=(0,i.jsx)(ea,{flex:1,padding:3,children:(0,i.jsxs)(r.BJ,{space:3,children:[v,b]})}),S[20]=v,S[21]=b,S[22]=w):w=S[22],S[23]!==C||S[24]!==t||S[25]!==s?(x=t&&(0,i.jsx)(r.az,{padding:1,children:(0,i.jsx)(r.$n,{as:"button",icon:o.USm,mode:"bleed",padding:2,tone:C,onClick:s,style:{verticalAlign:"top"}})}),S[23]=C,S[24]=t,S[25]=s,S[26]=x):x=S[26],S[27]!==w||S[28]!==x||S[29]!==D?(k=(0,i.jsxs)(em,{align:"flex-start",variants:ep,transition:D,children:[w,x]}),S[27]=w,S[28]=x,S[29]=D,S[30]=k):k=S[30],S[31]!==T||S[32]!==a||S[33]!==R||S[34]!==s||S[35]!==A||S[36]!==D||S[37]!==h||S[38]!==j?(E=R&&(0,i.jsxs)(ev,{variants:ep,transition:D,children:[(0,i.jsx)(eu,{tone:T,radius:A}),(0,i.jsx)(eb,{tone:T,initial:{scaleX:0},animate:{scaleX:1},transition:{delay:j,duration:a/1e3,ease:"linear"},onAnimationComplete:s},`progress-${h}
133`)]}),S[31]=T,S[32]=a,S[33]=R,S[34]=s,S[35]=A,S[36]=D,S[37]=h,S[38]=j,S[39]=E):E=S[39],S[40]!==T||S[41]!==A||S[42]!==u||S[43]!==O||S[44]!==k||S[45]!==E||S[46]!==N||S[47]!==D||S[48]!==j?(_=(0,i.jsxs)(eg,{"data-ui":"Toast",role:O,...u,"data-has-duration":N,custom:j,radius:A,shadow:2,tone:T,forwardedAs:"li",layout:"position",variants:eh,initial:I,animate:P,exit:M,transition:D,children:[k,E]}),S[40]=T,S[41]=A,S[42]=u,S[43]=O,S[44]=k,S[45]=E,S[46]=N,S[47]=D,S[48]=j,S[49]=_):_=S[49],_}ef.displayName="Toast";let eh={initial:{y:32,scale:.5,zIndex:1},hidden:{opacity:0},visible:e=>e?{opacity:1,transition:{when:"beforeChildren",staggerChildren:e/3,duration:e/3}}:{opacity:1},slideIn:{y:0,scale:1},slideOut:{zIndex:0,scale:.75}},ep={initial:{willChange:"transform"},hidden:{opacity:0},visible:{opacity:1}},eg=c.P.create(es),em=c.P.create(r.so),ey=c.P.create(r.EY),ev=c.P.create(el),eb=c.P.create(ec);function ew(){return!1}function ex(){return!0}let ek=()=>()=>{},eE=(0,r.bz)("@sanity/ui/context/toast",null);function e_(e){let t,n,o=(0,l.c)(9),{children:a,padding:s,paddingX:u,paddingY:c,gap:d}=e,f=void 0===s?4:s,h=void 0===d?3:d,{zIndex:p}=(0,r.Z4)();return o[0]!==p?(t={zIndex:p},o[0]=p,o[1]=t):t=o[1],o[2]!==a||o[3]!==h||o[4]!==f||o[5]!==u||o[6]!==c||o[7]!==t?(n=(0,i.jsx)(eS,{forwardedAs:"ul","data-ui":"ToastProvider",padding:f,paddingX:u,paddingY:c,gap:h,columns:1,style:t,children:a}),o[2]=a,o[3]=h,o[4]=f,o[5]=u,o[6]=c,o[7]=t,o[8]=n):n=o[8],n}e_.displayName="ToastLayer";let eS=(0,s.I4)(r.xA).withConfig({displayName:"StyledLayer",componentId:"sc-1tbwn58-0"})`box-sizing:border-box;position:fixed;right:0;bottom:0;list-style:none;pointer-events:none;max-width:420px;width:100%;`,eA=0;function eT(e){let t,n,o,s,u,c=(0,l.c)(13),{children:f,padding:h,paddingX:p,paddingY:g,gap:m,zOffset:y}=e,v=void 0===y?1:y;c[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],c[0]=t):t=c[0];let[b,w]=(0,a.useState)(t),x=(0,a.useSyncExternalStore)(ek,ex,ew);return c[1]===Symbol.for("react.memo_cache_sentinel")?(o={version:0,push:e=>{let t=e.id||String(eA++),n=e.duration||5e3;return(0,a.startTransition)(()=>{w(r=>.01===n?r.filter(e=>e.id!==t):[...r.filter(e=>e.id!==t),{dismiss:()=>(0,a.startTransition)(()=>w(e=>e.filter(e=>e.id!==t))),id:t,updatedAt:Date.now(),params:{...e,duration:n}}])}),t}},c[1]=o):o=c[1],n=o,c[2]!==m||c[3]!==x||c[4]!==h||c[5]!==p||c[6]!==g||c[7]!==b||c[8]!==v?(s=x&&(0,i.jsx)(r.XS,{zOffset:v,children:(0,i.jsx)(e_,{padding:h,paddingX:p,paddingY:g,gap:m,children:(0,i.jsx)(d.N,{initial:!1,mode:"popLayout",children:b.map(eC)})})}),c[2]=m,c[3]=x,c[4]=h,c[5]=p,c[6]=g,c[7]=b,c[8]=v,c[9]=s):s=c[9],c[10]!==f||c[11]!==s?(u=(0,i.jsxs)(eE.Provider,{value:n,children:[f,s]}),c[10]=f,c[11]=s,c[12]=u):u=c[12],u}function eC(e){let{dismiss:t,id:n,params:r,updatedAt:o}=e;return(0,i.jsx)(ef,{closable:r.closable,description:r.description,onClose:t,status:r.status,title:r.title,duration:r.duration,updatedAt:o},n)}function eO(){let e=(0,a.useContext)(eE);if(!e)throw Error("useToast(): missing context value");if(!(0,r.u4)(e)||0!==e.version)throw Error("useToast(): the context value is not compatible");return e}function ej(e){if("treeitem"===e.getAttribute("role")&&e.focus(),"none"===e.getAttribute("role")){let t=e.firstChild;t&&t instanceof HTMLElement&&t.focus()}}eT.displayName="ToastProvider";let eD=(0,r.bz)("@sanity/ui/context/tree",null);function eR(){let e=(0,a.useContext)(eD);if(!e)throw Error("Tree: missing context value");return e}(0,a.memo)((0,a.forwardRef)(function(e,t){let n,o,s,u,c,d,f,h,p,g,m,y,v,b,w,x,k,E,_,S,A,T,C,O=(0,l.c)(37);O[0]!==e?({children:n,space:u,onFocus:o,...s}=e,O[0]=e,O[1]=n,O[2]=o,O[3]=s,O[4]=u):(n=O[1],o=O[2],s=O[3],u=O[4]);let j=void 0===u?1:u,D=(0,a.useRef)(null),[R,I]=(0,a.useState)(null),P=(0,a.useRef)(R);O[5]===Symbol.for("react.memo_cache_sentinel")?(d=[],O[5]=d):d=O[5],c=d,O[6]===Symbol.for("react.memo_cache_sentinel")?(f=[],O[6]=f):f=O[6];let[M,N]=(0,a.useState)(f);O[7]===Symbol.for("react.memo_cache_sentinel")?(h={},O[7]=h):h=O[7];let[$,L]=(0,a.useState)(h),F=(0,a.useRef)($);O[8]===Symbol.for("react.memo_cache_sentinel")?(p=()=>D.current,O[8]=p):p=O[8],(0,a.useImperativeHandle)(t,p),O[9]!==R?(g=()=>{P.current=R},m=[R],O[9]=R,O[10]=g,O[11]=m):(g=O[10],m=O[11]),(0,a.useEffect)(g,m),O[12]!==$?(y=()=>{F.current=$},v=[$],O[12]=$,O[13]=y,O[14]=v):(y=O[13],v=O[14]),(0,a.useEffect)(y,v),O[15]===Symbol.for("react.memo_cache_sentinel")?(b=(e,t,n,r)=>(L(r=>({...r,[t]:{element:e,expanded:n}})),r&&I(e),()=>{L(e=>{let n={...e};return delete n[t],n})}),O[15]=b):b=O[15];let U=b;O[16]===Symbol.for("react.memo_cache_sentinel")?(w=(e,t)=>{L(n=>{let r=n[e];return r?{...n,[e]:{...r,expanded:t}}:n})},O[16]=w):w=O[16];let z=w,B=R||M[0]||null;O[17]!==j||O[18]!==$||O[19]!==B?(k={version:0,focusedElement:B,level:0,path:c,registerItem:U,setExpanded:z,setFocusedElement:I,space:j,state:$},O[17]=j,O[18]=$,O[19]=B,O[20]=k):k=O[20],x=k,O[21]!==M?(E=e=>{if(P.current){if("ArrowDown"===e.key){e.preventDefault();let t=function(e,t,n){let r=t.indexOf(n),i=t.slice(r),o=t.length;for(let t=1;t<o;t+=1){if(!i[t])continue;let n=i[t].getAttribute("data-tree-key");if(!n)continue;let r=n.split("/");r.pop();let o=[],a=!0;for(let t=0;t<r.length;t+=1){o.push(r[t]);let n=o.join("/");if(!e[n]?.expanded){a=!1;break}}if(a)return i[t]}return null}(F.current,M,P.current);t&&(ej(t),I(t));return}if("ArrowUp"===e.key){e.preventDefault();let t=function(e,t,n){let r=t.indexOf(n),i=t.slice(0,r),o=i.length;for(let t=o-1;t>=0;t-=1){let n=i[t].getAttribute("data-tree-key");if(!n)continue;let r=n.split("/");r.pop();let o=[],a=!0;for(let t=0;t<r.length;t+=1){o.push(r[t]);let n=o.join("/");if(!e[n]?.expanded){a=!1;break}}if(a)return i[t]}return null}(F.current,M,P.current);t&&(ej(t),I(t));return}if("ArrowLeft"===e.key){e.preventDefault();let t=P.current.getAttribute("data-tree-key");if(!t)return;let n=F.current[t];if(!n)return;if(n.expanded)L(e=>{let n=e[t];return n?{...e,[t]:{...n,expanded:!1}}:e});else{let e=t.split("/");e.pop();let n=e.join("/"),r=n&&F.current[n];r&&(r.element.focus(),I(r.element))}return}if("ArrowRight"===e.key){e.preventDefault();let t=P.current.getAttribute("data-tree-key");if(!t)return;F.current[t]?.expanded||L(e=>{let n=e[t];return n?{...e,[t]:{...n,expanded:!0}}:e});return}}},O[21]=M,O[22]=E):E=O[22];let q=E;O[23]!==o?(_=e=>{I(e.target),o?.(e)},O[23]=o,O[24]=_):_=O[24];let V=_;return O[25]===Symbol.for("react.memo_cache_sentinel")?(S=()=>{D.current&&N(Array.from(D.current.querySelectorAll('[data-ui="TreeItem"]')))},O[25]=S):S=O[25],O[26]!==n?(A=[n],O[26]=n,O[27]=A):A=O[27],(0,a.useEffect)(S,A),O[28]!==n||O[29]!==V||O[30]!==q||O[31]!==s||O[32]!==j?(T=(0,i.jsx)(r.BJ,{as:"ul","data-ui":"Tree",...s,onFocus:V,onKeyDown:q,ref:D,role:"tree",space:j,children:n}),O[28]=n,O[29]=V,O[30]=q,O[31]=s,O[32]=j,O[33]=T):T=O[33],O[34]!==x||O[35]!==T?(C=(0,i.jsx)(eD.Provider,{value:x,children:T}),O[34]=x,O[35]=T,O[36]=C):C=O[36],C}
133)).displayName="Memo(ForwardRef(Tree))";let eI=(0,a.memo)(function(e){let t,n,o,a,s=(0,l.c)(9);s[0]!==e?({children:t,expanded:o,...n}=e,s[0]=e,s[1]=t,s[2]=n,s[3]=o):(t=s[1],n=s[2],o=s[3]);let u=void 0!==o&&o,c=eR(),d=!u;return s[4]!==t||s[5]!==n||s[6]!==d||s[7]!==c.space?(a=(0,i.jsx)(r.BJ,{as:"ul","data-ui":"TreeGroup",...n,hidden:d,marginTop:c.space,role:"group",space:c.space,children:t}),s[4]=t,s[5]=n,s[6]=d,s[7]=c.space,s[8]=a):a=s[8],a}),eP=(0,a.memo)(s.I4.li.withConfig({displayName:"StyledTreeItem",componentId:"sc-iiskig-0"})(function(){return(0,s.AH)`
134    &[role='none'] > [role='treeitem'] {
135      outline: none;
136      cursor: default;
137      border-radius: 3px;
138
139      background-color: var(--card-bg-color);
140      color: var(--treeitem-fg-color);
141
142      &:focus {
143        position: relative;
144      }
145    }
146
147    &[role='treeitem'] {
148      outline: none;
149
150      & > div {
151        cursor: default;
152        border-radius: 3px;
153
154        background-color: var(--card-bg-color);
155        color: var(--treeitem-fg-color);
156      }
157
158      &:focus > div {
159        position: relative;
160      }
161    }
162  `},function(e){let{color:t}=(0,u.JW)(e.theme),n=t.selectable.default;return(0,s.AH)`
163    &[role='none'] {
164      & > [role='treeitem'] {
165        ${(0,r.g5)(t,n.enabled)}
166      }
167
168      &[data-selected] > [role='treeitem'] {
169        ${(0,r.g5)(t,n.pressed)}
170      }
171
172      @media (hover: hover) {
173        &:not([data-selected]) > [role='treeitem']:not(:focus):hover {
174          ${(0,r.g5)(t,n.hovered)}
175        }
176
177        & > [role='treeitem']:focus {
178          ${(0,r.g5)(t,n.selected)}
179        }
180      }
181    }
182
183    &[role='treeitem'] {
184      & > [data-ui='TreeItem__box'] {
185        ${(0,r.g5)(t,n.enabled)}
186      }
187
188      &[data-selected] > [data-ui='TreeItem__box'] {
189        ${(0,r.g5)(t,n.pressed)}
190      }
191
192      @media (hover: hover) {
193        &:not([data-selected]):not(:focus) > [data-ui='TreeItem__box']:hover {
194          ${(0,r.g5)(t,n.hovered)}
195        }
196
197        &:focus > [data-ui='TreeItem__box'] {
198          ${(0,r.g5)(t,n.selected)}
199        }
200      }
201    }
202  `})),eM=(0,s.I4)(r.az).attrs({forwardedAs:"a"}).withConfig({displayName:"TreeItemBox",componentId:"sc-iiskig-1"})(function(e){let{$level:t}=e,{space:n}=(0,u.JW)(e.theme);return(0,s.AH)`
203    padding-left: ${(0,r.D0)(n[2]*t)};
204
205    &[data-as='a'] {
206      text-decoration: none;
207    }
208  `}),eN=(0,s.I4)(r.EY).withConfig({displayName:"ToggleArrowText",componentId:"sc-iiskig-2"})`& > svg{transition:transform 100ms;}`;(0,a.memo)(function(e){let{children:t,expanded:n=!1,fontSize:s=1,href:l,icon:u,id:c,linkAs:d,muted:f,onClick:h,padding:p=2,selected:g=!1,space:m=2,text:y,weight:v,...b}=e,w=(0,a.useRef)(null),x=(0,a.useRef)(null),k=eR(),{path:E,registerItem:_,setExpanded:S,setFocusedElement:A}=k,T=(0,a.useId)(),C=c||T,O=(0,a.useMemo)(()=>E.concat([C||""]),[C,E]),j=O.join("/"),D=k.state[j],R=k.focusedElement===w.current,I=D?.expanded===void 0?n:D?.expanded||!1,P=k.focusedElement&&k.focusedElement===w.current?0:-1,M=(0,a.useMemo)(()=>({...k,level:k.level+1,path:O}),[O,k]),N=(0,a.useCallback)(e=>{h&&h(e);let t=e.target;t instanceof HTMLElement&&("TreeItem"===t.getAttribute("data-ui")||t.closest('[data-ui="TreeItem__box"]'))&&(e.stopPropagation(),S(j,!I),A(w.current))},[I,j,h,S,A]),$=(0,a.useCallback)(e=>{R&&"Enter"===e.key&&(x.current||w.current)?.click()},[R]);(0,a.useEffect)(()=>{if(w.current)return _(w.current,O.join("/"),I,g)},[I,O,_,g]);let L=(0,i.jsxs)(r.so,{padding:p,children:[(0,i.jsxs)(r.az,{marginRight:m,style:{visibility:u||t?"visible":"hidden",pointerEvents:"none"},children:[u&&(0,i.jsx)(r.EY,{muted:f,size:s,weight:v,children:(0,i.jsx)(u,{})}),!u&&(0,i.jsx)(eN,{muted:f,size:s,weight:v,children:(0,i.jsx)(o.nVd,{style:{transform:I?"rotate(90deg)":void 0}})})]}),(0,i.jsx)(r.az,{flex:1,children:(0,i.jsx)(r.EY,{muted:f,size:s,textOverflow:"ellipsis",weight:v,children:y})})]});return l?(0,i.jsxs)(eP,{"data-selected":g?"":void 0,"data-tree-id":C,"data-tree-key":j,"data-ui":"TreeItem",...b,onClick:N,ref:w,role:"none",children:[(0,i.jsx)(eM,{$level:k.level,"aria-expanded":I,as:d,"data-ui":"TreeItem__box",href:l,ref:x,role:"treeitem",tabIndex:P,children:L}),(0,i.jsx)(eD.Provider,{value:M,children:t&&(0,i.jsx)(eI,{hidden:!I,children:t})})]}):(0,i.jsxs)(eP,{"data-selected":g?"":void 0,"data-ui":"TreeItem","data-tree-id":C,"data-tree-key":j,...b,"aria-expanded":I,onClick:N,onKeyDown:$,ref:w,role:"treeitem",tabIndex:P,children:[(0,i.jsx)(eM,{$level:k.level,as:"div","data-ui":"TreeItem__box",children:L}),(0,i.jsx)(eD.Provider,{value:M,children:t&&(0,i.jsx)(eI,{expanded:I,children:t})})]})}).displayName="Memo(TreeItem)"},82030:(e,t,n)=>{var r=n(51199),i=n(3836),o=n(86809),a=n(68685),s=n(81489);e.exports=function(e,t,n,l){if(!a(e))return e;t=i(t,e);for(var u=-1,c=t.length,d=c-1,f=e;null!=f&&++u<c;){var h=s(t[u]),p=n;if("__proto__"===h||"constructor"===h||"prototype"===h)break;if(u!=d){var g=f[h];void 0===(p=l?l(g,h,f):void 0)&&(p=a(g)?g:o(t[u+1])?[]:{})}r(f,h,p),f=f[h]}return e}},82253:(e,t,n)=>{"use strict";var r=n(44316).default;
208Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(2,arguments);var n=(0,a.default)(t);return(0,i.default)(e,-n)};var i=r(n(78039)),o=r(n(29024)),a=r(n(12431));e.exports=t.default},82261:(e,t,n)=>{var r=n(80602);e.exports=n(47605)(r)},82307:(e,t,n)=>{var r=n(78329),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),l=Array(s);++a<s;)l[a]=o[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=o[a];return u[t]=n(l),r(e,this,u)}}},82319:(e,t,n)=>{"use strict";n.d(t,{U:()=>i});var r=n(71962);function i(e){return(0,r.T)(function(t,n,r){return!e||e(n,r)?t+1:t},0)}},82326:(e,t,n)=>{"use strict";n.d(t,{p:()=>o});var r=n(27778),i=n(94126);function o(e,t){return(0,r.N)(function(n,r){var o=0;n.subscribe((0,i._)(r,function(n){return e.call(t,n,o++)&&r.next(n)}))})}},82333:(e,t,n)=>{var r=n(85411);e.exports=function(e){return r(this.__data__,e)>-1}},82475:e=>{e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},82516:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},82541:function(e,t,n){var r=n(55036);(function(){var t,n,i,o;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:null!=r&&r.hrtime?(e.exports=function(){return(t()-o)/1e6},n=r.hrtime,o=(t=function(){var e;return 1e9*(e=n())[0]+e[1]})()-1e9*r.uptime()):Date.now?(e.exports=function(){return Date.now()-i},i=Date.now()):(e.exports=function(){return new Date().getTime()-i},i=new Date().getTime())}).call(this)},82904:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(47528),i=n(71260);function o(e){(0,i.A)(1,arguments);var t=(0,r.A)(e);return t.setHours(0,0,0,0),t}},83202:(e,t,n)=>{"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function o(e){return"span"===e._type&&"text"in e&&"string"==typeof e.text&&(typeof e.marks>"u"||Array.isArray(e.marks)&&e.marks.every(e=>"string"==typeof e))}function a(e){return"string"==typeof e._type&&"@"!==e._type[0]&&(!("markDefs"in e)||!e.markDefs||Array.isArray(e.markDefs)&&e.markDefs.every(e=>"string"==typeof e._key))&&"children"in e&&Array.isArray(e.children)&&e.children.every(e=>"object"==typeof e&&"_type"in e)}function s(e){return a(e)&&"listItem"in e&&"string"==typeof e.listItem&&(typeof e.level>"u"||"number"==typeof e.level)}function l(e){return"@list"===e._type}function u(e){return"@span"===e._type}function c(e){return"@text"===e._type}n.d(t,{IG:()=>a,Pq:()=>h,YA:()=>c,bo:()=>b,fg:()=>function e(t){let n="";return t.children.forEach(t=>{c(t)?n+=t.text:u(t)&&(n+=e(t))}),n},iS:()=>p,mn:()=>w,n2:()=>s,tO:()=>u,zp:()=>l});let d=["strong","em","code","underline","strike-through"];function f(e,t,n){if(!o(e)||!e.marks||!e.marks.length)return[];let r=e.marks.slice(),i={};return r.forEach(e=>{i[e]=1;for(let r=t+1;r<n.length;r++){let t=n[r];if(t&&o(t)&&Array.isArray(t.marks)&&-1!==t.marks.indexOf(e))i[e]++;else break}}),r.sort((e,t)=>(function(e,t,n){let r=e[t],i=e[n];if(r!==i)return i-r;let o=d.indexOf(t),a=d.indexOf(n);return o!==a?o-a:t.localeCompare(n)})(i,e,t))}function h(e){var t,n;let{children:r}=e,i=null!=(t=e.markDefs)?t:[];if(!r||!r.length)return[];let a=r.map(f),s={_type:"@span",children:[],markType:"<unknown>"},l=[s];for(let e=0;e<r.length;e++){let t=r[e];if(!t)continue;let s=a[e]||[],u=1;if(l.length>1)for(;u<l.length;u++){let e=(null==(n=l[u])?void 0:n.markKey)||"",t=s.indexOf(e);if(-1===t)break;s.splice(t,1)}let c=(l=l.slice(0,u))[l.length-1];if(c){for(let e of s){let n=null==i?void 0:i.find(t=>t._key===e),r=n?n._type:e,o={_type:"@span",_key:t._key,children:[],markDef:n,markType:r,markKey:e};c.children.push(o),l.push(o),c=o}if(o(t)){let e=t.text.split(`
209`);for(let t=e.length;t-- >1;)e.splice(t,0,`
210`);c.children=c.children.concat(e.map(e=>
210({_type:"@text",text:e})))}else c.children=c.children.concat(t)}}return s.children}function p(e,t){let n,r=[];for(let l=0;l<e.length;l++){let u=e[l];if(u){var o,a;if(!s(u)){r.push(u),n=void 0;continue}if(!n){n=g(u,l,t),r.push(n);continue}if(o=u,a=n,(o.level||1)===a.level&&o.listItem===a.listItem){n.children.push(u);continue}if((u.level||1)>n.level){let e=g(u,l,t);if("html"===t){let t=n.children[n.children.length-1],r=i(i({},t),{},{children:[...t.children,e]});n.children[n.children.length-1]=r}else n.children.push(e);n=e;continue}if((u.level||1)<n.level){let e=r[r.length-1],i=e&&m(e,u);if(i){(n=i).children.push(u);continue}n=g(u,l,t),r.push(n);continue}if(u.listItem!==n.listItem){let e=r[r.length-1],i=e&&m(e,{level:u.level||1});if(i&&i.listItem===u.listItem){(n=i).children.push(u);continue}n=g(u,l,t),r.push(n);continue}console.warn("Unknown state encountered for block",u),r.push(u)}}return r}function g(e,t,n){return{_type:"@list",_key:`${e._key||`${t}`}-parent`,mode:n,level:e.level||1,listItem:e.listItem,children:[e]}}function m(e,t){let n=t.level||1,r=t.listItem||"normal",i="string"==typeof t.listItem;if(l(e)&&(e.level||1)===n&&i&&(e.listItem||"normal")===r)return e;if(!("children"in e))return;let a=e.children[e.children.length-1];return a&&!o(a)?m(a,t):void 0}let y=/^\s/,v=/\s$/;function b(e){let t=Array.isArray(e)?e:[e],n="";return t.forEach((e,r)=>{if(!a(e))return;let i=!1;e.children.forEach(e=>{o(e)?(n+=i&&n&&!v.test(n)&&!y.test(e.text)?" ":"",n+=e.text,i=!1):i=!0}),r!==t.length-1&&(n+=`
211
212`)}),n}let w="html"},83316:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}},e.exports=t.default},83333:(e,t,n)=>{"use strict";n.d(t,{H7:()=>m,K8:()=>u,qv:()=>g,u:()=>p});var r=n(27313),i=n(77899),o=n(29378),a=n(12378),s=n(7706),l=n(77865);function u(e,t){let n=d(e,t),r={type:function(e){let t=e&&e.name;return!t&&h(e)?e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception":t}(t),value:function(e){let t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:h(e)&&Array.isArray(e.message)&&2==e.message.length?e.message[1]:t:"No error message"}(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function c(e,t){return{exception:{values:[u(e,t)]}}}function d(e,t){var n,r;let i=t.stacktrace||t.stack||"",o=(n=t)&&f.test(n.message)?1:0,a="number"==typeof(r=t).framesToPop?r.framesToPop:0;try{return e(i,o,a)}catch(e){}return[]}let f=/Minified React error #\d+;/i;function h(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function p(e,t,n,r){let i=m(e,t,n&&n.syntheticException||void 0,r);return(0,a.M6)(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),(0,s.XW)(i)}function g(e,t,n="info",r,i){let o=y(e,t,r&&r.syntheticException||void 0,i);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),(0,s.XW)(o)}function m(e,t,n,s,f){let h;if((0,o.T2)(t)&&t.error)return c(e,t.error);if((0,o.BD)(t)||(0,o.W6)(t)){if("stack"in t)h=c(e,t);else{let r=t.name||((0,o.BD)(t)?"DOMError":"DOMException"),i=t.message?`${r}: ${t.message}`:r;h=y(e,i,n,s),(0,a.gO)(h,i)}return"code"in t&&(h.tags={...h.tags,"DOMException.code":`${t.code}`}),h}return(0,o.bJ)(t)?c(e,t):((0,o.Qd)(t)||(0,o.xH)(t)?h=function(e,t,n,a){let s=(0,r.KU)(),c=s&&s.getOptions().normalizeDepth,f=function(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let n=e[t];if(n instanceof Error)return n}}(t),h={__serialized__:(0,i.cd)(t,c)};if(f)return{exception:{values:[u(e,f)]},extra:h};let p={exception:{values:[{type:(0,o.xH)(t)?t.constructor.name:a?"UnhandledRejection":"Error",value:function(e,{isUnhandledRejection:t}){let n=(0,l.HF)(e),r=t?"promise rejection":"exception";if((0,o.T2)(e))return`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``;if((0,o.xH)(e)){let t=function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e);return`Event \`${t}\` (type=${e.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}(t,{isUnhandledRejection:a})}]},extra:h};if(n){let t=d(e,n);t.length&&(p.exception.values[0].stacktrace={frames:t})}return p}(e,t,n,f):(h=y(e,t,n,s),(0,a.gO)(h,`${t}`,void 0)),(0,a.M6)(h,{synthetic:!0}),h)}function y(e,t,n,r){let i={};if(r&&n){let r=d(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]}),(0,a.M6)(i,{synthetic:!0})}
212if((0,o.NF)(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}},83530:(e,t,n)=>{"use strict";n.d(t,{B:()=>r});let r="undefined"!=typeof window},83571:(e,t,n)=>{"use strict";function r(e){return e instanceof Date&&!isNaN(e)}n.d(t,{v:()=>r})},83617:(e,t,n)=>{"use strict";n.d(t,{c:()=>h});var r=n(43048),i=n(45720),o=n(15911),a=n(27778),s=n(94126),l=n(22303),u=n(56891),c=n(91558),d=n(12884),f=n(29013);function h(e,t){void 0===t&&(t=r.E);var n=(0,f.O)(e,t);return function e(t,n){return n?function(r){return(0,i.x)(n.pipe((0,o.s)(1),(0,a.N)(function(e,t){e.subscribe((0,s._)(t,l.l))})),r.pipe(e(t)))}:(0,c.Z)(function(e,n){return(0,d.Tg)(t(e,n)).pipe((0,o.s)(1),(0,u.u)(e))})}(function(){return n})}},83715:(e,t,n)=>{for(var r=n(82541),i="undefined"==typeof window?n.g:window,o=["moz","webkit"],a="AnimationFrame",s=i["request"+a],l=i["cancel"+a]||i["cancelRequest"+a],u=0;!s&&u<o.length;u++)s=i[o[u]+"Request"+a],l=i[o[u]+"Cancel"+a]||i[o[u]+"CancelRequest"+a];if(!s||!l){var c=0,d=0,f=[],h=1e3/60;s=function(e){if(0===f.length){var t=r(),n=Math.max(0,h-(t-c));c=n+t,setTimeout(function(){var e=f.slice(0);f.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(c)}catch(e){setTimeout(function(){throw e},0)}},Math.round(n))}return f.push({handle:++d,callback:e,cancelled:!1}),d},l=function(e){for(var t=0;t<f.length;t++)f[t].handle===e&&(f[t].cancelled=!0)}}e.exports=function(e){return s.call(i,e)},e.exports.cancel=function(){l.apply(i,arguments)},e.exports.polyfill=function(e){e||(e=i),e.requestAnimationFrame=s,e.cancelAnimationFrame=l}},83881:(e,t,n)=>{"use strict";n.d(t,{Y:()=>o});var r=n(43048),i=n(29013);function o(e,t){return void 0===e&&(e=0),void 0===t&&(t=r.E),e<0&&(e=0),(0,i.O)(e,e,t)}},83920:(e,t,n)=>{"use strict";n.d(t,{B:()=>o});var r=n(27778),i=n(94126);function o(){return(0,r.N)(function(e,t){var n=null;e._refCount++;var r=(0,i._)(t,void 0,void 0,void 0,function(){if(!e||e._refCount<=0||0<--e._refCount){n=null;return}var r=e._connection,i=n;n=null,r&&(!i||r===i)&&r.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}},83968:(e,t,n)=>{var r=n(86853),i=n(84962),o=n(29386);e.exports=function(e){return r(e,o,i)}},84169:e=>{e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},84476:(e,t,n)=>{e.exports=n(18274)(n(26943),"Promise")},84779:(e,t,n)=>{var r=n(1786),i=n(53722),o=n(78946),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},84796:(e,t,n)=>{"use strict";n.d(t,{t:()=>i});var r=n(58555),i=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return(0,r.C6)(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n.closed||t.next(this._value),n},t.prototype.getValue=function(){var e=this.hasError,t=this.thrownError,n=this._value;if(e)throw t;return this._throwIfClosed(),n},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(n(37245).B)},84807:e=>{var t=Math.ceil,n=Math.max;e.exports=function(e,r,i,o){for(var a=-1,s=n(t((r-e)/(i||1)),0),l=Array(s);s--;)l[o?s:++a]=e,e+=i;return l}},84818:(e,t,n)=>{"use strict";var r=n(55435),i=n(11819)(r,"div");i.displayName="html",e.exports=i},84907:(e,t,n)=>{var r=n(86531),i=n(56626),o=n(88567),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||i(e)||!!(a&&e&&e[a])}}
212,84962:(e,t,n)=>{var r=n(47782),i=n(75899),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols;e.exports=a?function(e){return null==e?[]:r(a(e=Object(e)),function(t){return o.call(e,t)})}:i},85356:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(47528),i=n(71260);function o(e){(0,i.A)(1,arguments);var t=(0,r.A)(e),n=t.getUTCDay();return t.setUTCDate(t.getUTCDate()-(7*(n<1)+n-1)),t.setUTCHours(0,0,0,0),t}},85411:(e,t,n)=>{var r=n(14492);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return -1}},85930:(e,t,n)=>{var r=n(68685);e.exports=function(e){return e==e&&!r(e)}},86208:(e,t,n)=>{"use strict";var r=n(44316).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(1,arguments);var t=(0,i.default)(e),n=t.getUTCDay();return t.setUTCDate(t.getUTCDate()-(7*(n<1)+n-1)),t.setUTCHours(0,0,0,0),t};var i=r(n(75628)),o=r(n(29024));e.exports=t.default},86228:e=>{"use strict";function t(){this.map=new WeakMap}function n(){this.keys=[],this.values=[]}e.exports="function"==typeof WeakMap?t:n,t.prototype.has=function(e){return this.map.has(e)},t.prototype.set=function(e,t){return this.map.set(e,t),this},t.prototype.get=function(e){return this.map.get(e)},t.prototype.clear=function(){},n.prototype.has=function(e){return -1!==this.keys.indexOf(e)},n.prototype.set=function(e,t){var n=this.keys.indexOf(e);return -1===n?(this.keys.push(e),this.values.push(t)):this.values[n]=t,this},n.prototype.get=function(e){var t=this.keys.indexOf(e);return -1===t?void 0:this.values[t]},n.prototype.clear=function(){this.keys=[],this.values=[]}},86284:(e,t,n)=>{var r=n(86531),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},86396:(e,t,n)=>{"use strict";var r=n(44316).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(1,arguments);var t=(0,i.default)(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var s=(0,a.default)(r),l=new Date(0);l.setUTCFullYear(n,0,4),l.setUTCHours(0,0,0,0);var u=(0,a.default)(l);return t.getTime()>=s.getTime()?n+1:t.getTime()>=u.getTime()?n:n-1};var i=r(n(75628)),o=r(n(29024)),a=r(n(86208));e.exports=t.default},86404:(e,t,n)=>{"use strict";n.d(t,{t:()=>o});var r=n(68747),i=n(15319);function o(e,t,n){var o,a,s,l,u=!1;return e&&"object"==typeof e?(l=void 0===(o=e.bufferSize)?1/0:o,t=void 0===(a=e.windowTime)?1/0:a,u=void 0!==(s=e.refCount)&&s,n=e.scheduler):l=null!=e?e:1/0,(0,i.u)({connector:function(){return new r.m(l,t,n)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:u})}},86531:(e,t,n)=>{e.exports=n(26943).Symbol},86693:(e,t,n)=>{"use strict";var r=n(44316).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(1,arguments),e instanceof Date||"object"===(0,i.default)(e)&&"[object Date]"===Object.prototype.toString.call(e)};var i=r(n(294)),o=r(n(29024));e.exports=t.default},86809:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?0x1fffffffffffff:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},86853:(e,t,n)=>{var r=n(7328),i=n(88567);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},87e3:(e,t,n)=>{function r(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=0xffffffff,this.__views__=[]}r.prototype=n(1514)(n(29203).prototype),r.prototype.constructor=r,e.exports=r},87014:(e,t,n)=>{"use strict";n.d(t,{M:()=>r});let r="8.55.0"},87086:(e,t,n)=>{"use strict";n.d(t,{Ow:()=>o,Z9:()=>a,pq:()=>s,vF:()=>l});var r=n(22324),i=n(6541);let o=["debug","info","warn","error","log","assert","trace"],a={};function s(e){if(!("console"in i.O))return e();let t=i.O.console,n={},r=Object.keys(a);r.forEach(e=>{let r=a[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}let l=(0,i.B)("logger",function(){let e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return r.T?o.forEach(n=>{t[n]=(...t)=>{e&&s(()=>{i.O.console[n](`Sentry Logger [${n}]:`,...t)})}}
212):o.forEach(e=>{t[e]=()=>void 0}),t})},87104:e=>{"use strict";class t{constructor(e={}){if(!(e.maxSize&&e.maxSize>0))throw TypeError("`maxSize` must be a number greater than 0");this.maxSize=e.maxSize,this.onEviction=e.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(e,t){if(this.cache.set(e,t),this._size++,this._size>=this.maxSize){if(this._size=0,"function"==typeof this.onEviction)for(let[e,t]of this.oldCache.entries())this.onEviction(e,t);this.oldCache=this.cache,this.cache=new Map}}get(e){if(this.cache.has(e))return this.cache.get(e);if(this.oldCache.has(e)){let t=this.oldCache.get(e);return this.oldCache.delete(e),this._set(e,t),t}}set(e,t){return this.cache.has(e)?this.cache.set(e,t):this._set(e,t),this}has(e){return this.cache.has(e)||this.oldCache.has(e)}peek(e){return this.cache.has(e)?this.cache.get(e):this.oldCache.has(e)?this.oldCache.get(e):void 0}delete(e){let t=this.cache.delete(e);return t&&this._size--,this.oldCache.delete(e)||t}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(let[e]of this)yield e}*values(){for(let[,e]of this)yield e}*[Symbol.iterator](){for(let e of this.cache)yield e;for(let e of this.oldCache){let[t]=e;this.cache.has(t)||(yield e)}}get size(){let e=0;for(let t of this.oldCache.keys())!this.cache.has(t)&&e++;return Math.min(this._size+e,this.maxSize)}}e.exports=t},87257:e=>{"use strict";var t;e.exports=function(e){var n,r="&"+e+";";return(t=t||document.createElement("i")).innerHTML=r,(59!==(n=t.textContent).charCodeAt(n.length-1)||"semi"===e)&&n!==r&&n}},87398:(e,t,n)=>{var r=n(94598),i=n(1247),o=n(98278),a=n(45587);e.exports=function(e,t){if(null==e)return{};var n=r(a(e),function(e){return[e]});return t=i(t),o(e,n,function(e,n){return t(e,n[0])})}},87489:(e,t,n)=>{"use strict";n.d(t,{OX:()=>c,SP:()=>s});var r,i,o=n(88837);let a=new WeakMap;function s(e){return{config:e,start:(t,n)=>{let{self:r,system:i,emit:o}=n,s={receivers:void 0,dispose:void 0};a.set(r,s),s.dispose=e({input:t.input,system:i,self:r,sendBack:e=>{"stopped"!==r.getSnapshot().status&&r._parent&&i._relay(r,r._parent,e)},receive:e=>{s.receivers??=new Set,s.receivers.add(e)},emit:o})},transition:(e,t,n)=>{let r=a.get(n.self);return t.type===o.X?(e={...e,status:"stopped",error:void 0},r.dispose?.()):r.receivers?.forEach(e=>e(t)),e},getInitialSnapshot:(e,t)=>({status:"active",output:void 0,error:void 0,input:t}),getPersistedSnapshot:e=>e,restoreSnapshot:e=>e}}let l="xstate.observable.error",u="xstate.observable.complete";function c(e){return{config:e,transition:(e,t)=>{if("active"!==e.status)return e;switch(t.type){case l:return{...e,status:"error",error:t.data,input:void 0,_subscription:void 0};case u:return{...e,status:"done",input:void 0,_subscription:void 0};case o.X:return e._subscription.unsubscribe(),{...e,status:"stopped",input:void 0,_subscription:void 0};default:return e}},getInitialSnapshot:(e,t)=>({status:"active",output:void 0,error:void 0,context:void 0,input:t,_subscription:void 0}),start:(t,{self:n,system:r,emit:i})=>{"done"!==t.status&&(t._subscription=e({input:t.input,system:r,self:n,emit:i}).subscribe({next:e=>{n._parent&&r._relay(n,n._parent,e)},error:e=>{r._relay(n,n,{type:l,data:e})},complete:()=>{r._relay(n,n,{type:u})}}))},getPersistedSnapshot:({_subscription:e,...t})=>t,restoreSnapshot:e=>({...e,_subscription:void 0})}}new WeakMap,r=e=>void 0,i=0},87876:(e,t,n)=>{"use strict";n.d(t,{P$:()=>s,_C:()=>c,lc:()=>l,mH:()=>a,qm:()=>u});var r=n(53056),i=n(87086);let o=[];function a(e){let t,n=e.defaultIntegrations||[],r=e.integrations;if(n.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(r))t=[...n,...r];else if("function"==typeof r){let e=r(n);t=Array.isArray(e)?e:[e]}else t=n;let i=function(e){let t={};return e.forEach(e=>{let{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.values(t)}(t),o=i.findIndex(e=>"Debug"===e.name);if(o>-1){let[e]=i.splice(o,1);i.push(e)}return i}function s(e,t){let n={};return t.forEach(t=>{t&&u(e,t,n)}),n}function l(e,t){for(let n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function u(e,t,n){if(n[t.name]){r.T&&i.vF.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,-1===o.indexOf(t.name)&&"function"==typeof t.setupOnce&&(t.setupOnce(),o.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){let n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,r)=>n(t,r,e))}if("function"==typeof t.processEvent){let n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}r.T&&i.vF.log(`Integration installed: ${t.name}`)}function c(e){return e}}
212,87964:(e,t,n)=>{"use strict";n.d(t,{Mp:()=>e$,vL:()=>a,uN:()=>eo,AN:()=>ec,fp:()=>I,y$:()=>P,Sj:()=>F,Vy:()=>D,sl:()=>z,fF:()=>ez,PM:()=>eU,zM:()=>eq,MS:()=>_,FR:()=>S});var r,i,o,a,s,l,u,c,d,f,h=n(82203),p=n(1434),g=n(39335);let m={display:"none"};function y(e){let{id:t,value:n}=e;return h.createElement("div",{id:t,style:m},n)}function v(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;return h.createElement("div",{id:t,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":r,"aria-atomic":!0},n)}let b=(0,h.createContext)(null),w={draggable:"\n    To pick up a draggable item, press the space bar.\n    While dragging, use the arrow keys to move the item.\n    Press space again to drop the item in its new position, or press escape to cancel.\n  "},x={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function k(e){let{announcements:t=x,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=w}=e,{announce:o,announcement:a}=function(){let[e,t]=(0,h.useState)("");return{announce:(0,h.useCallback)(e=>{null!=e&&t(e)},[]),announcement:e}}(),s=(0,g.YG)("DndLiveRegion"),[l,u]=(0,h.useState)(!1);(0,h.useEffect)(()=>{u(!0)},[]);var c=(0,h.useMemo)(()=>({onDragStart(e){let{active:n}=e;o(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&o(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;o(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;o(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;o(t.onDragCancel({active:n,over:r}))}}),[o,t]);let d=(0,h.useContext)(b);if((0,h.useEffect)(()=>{if(!d)throw Error("useDndMonitor must be used within a children of <DndContext>");return d(c)},[c,d]),!l)return null;let f=h.createElement(h.Fragment,null,h.createElement(y,{id:r,value:i.draggable}),h.createElement(v,{id:s,announcement:a}));return n?(0,p.createPortal)(f,n):f}function E(){}function _(e,t){return(0,h.useMemo)(()=>({sensor:e,options:null!=t?t:{}}),[e,t])}function S(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,h.useMemo)(()=>[...t].filter(e=>null!=e),[...t])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(r||(r={}));let A=Object.freeze({x:0,y:0});function T(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function C(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function O(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function j(e){let{left:t,top:n,height:r,width:i}=e;return[{x:t,y:n},{x:t+i,y:n},{x:t,y:n+r},{x:t+i,y:n+r}]}function D(e,t){if(!e||0===e.length)return null;let[n]=e;return t?n[t]:n}function R(e,t,n){return void 0===t&&(t=e.left),void 0===n&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}let I=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=R(t,t.left,t.top),o=[];for(let e of r){let{id:t}=e,r=n.get(t);if(r){let n=T(R(r),i);o.push({id:t,data:{droppableContainer:e,value:n}})}}return o.sort(C)},P=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=j(t),o=[];for(let e of r){let{id:t}=e,r=n.get(t);if(r){let n=j(r),a=Number((i.reduce((e,t,r)=>e+T(n[r],t),0)/4).toFixed(4));o.push({id:t,data:{droppableContainer:e,value:a}})}}return o.sort(C)},M=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=[];for(let e of r){let{id:r}=e,o=n.get(r);if(o){let n=function(e,t){let n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height);if(r<i&&n<o){let a=t.width*t.height,s=e.width*e.height,l=(i-r)*(o-n);return Number((l/(a+s-l)).toFixed(4))}return 0}(o,t);n>0&&i.push({id:r,data:{droppableContainer:e,value:n}})}}return i.sort(O)};function N(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:A}let $=function(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x}),{...t})}}(1),L={ignoreTransform:!1};function F(e,t){void 0===t&&(t=L);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:r}=(0,g.zk)(e).getComputedStyle(e);t&&(n=function(e,t,n){let r=function(e){if(e.startsWith("matrix3d(")){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(t);if(!r)return e;let{scaleX:i,scaleY:o,x:a,y:s}=r,l=e.left-a-(1-i)*parseFloat(n),u=e.top-s-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),c=i?e.width/i:e.width,d=o?e.height/o:e.he
212ight;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l}}(n,t,r))}let{top:r,left:i,width:o,height:a,bottom:s,right:l}=n;return{top:r,left:i,width:o,height:a,bottom:s,right:l}}function U(e){return F(e,{ignoreTransform:!0})}function z(e,t){let n=[];return e?function r(i){var o;if(null!=t&&n.length>=t||!i)return n;if((0,g.wz)(i)&&null!=i.scrollingElement&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!(0,g.sb)(i)||(0,g.xZ)(i)||n.includes(i))return n;let a=(0,g.zk)(e).getComputedStyle(i);return(i!==e&&function(e,t){void 0===t&&(t=(0,g.zk)(e).getComputedStyle(e));let n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{let r=t[e];return"string"==typeof r&&n.test(r)})}(i,a)&&n.push(i),void 0===(o=a)&&(o=(0,g.zk)(i).getComputedStyle(i)),"fixed"===o.position)?n:r(i.parentNode)}(e):n}function B(e){let[t]=z(e,1);return null!=t?t:null}function q(e){return g.Sw&&e?(0,g.l6)(e)?e:(0,g.Ll)(e)?(0,g.wz)(e)||e===(0,g.TW)(e).scrollingElement?window:(0,g.sb)(e)?e:null:null:null}function V(e){return(0,g.l6)(e)?e.scrollX:e.scrollLeft}function H(e){return(0,g.l6)(e)?e.scrollY:e.scrollTop}function W(e){return{x:V(e),y:H(e)}}function Y(e){return!!g.Sw&&!!e&&e===document.scrollingElement}function G(e){let t={x:0,y:0},n=Y(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},i=e.scrollTop<=t.y,o=e.scrollLeft<=t.x;return{isTop:i,isLeft:o,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(i||(i={}));let K={x:.2,y:.2};function X(e){return e.reduce((e,t)=>(0,g.WQ)(e,W(t)),A)}let Z=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+V(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+H(t),0)}]];class Q{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;let n=z(t),r=X(n);for(let[t,i,o]of(this.rect={...e},this.width=e.width,this.height=e.height,Z))for(let e of i)Object.defineProperty(this,e,{get:()=>{let i=o(n),a=r[t]-i;return this.rect[e]+a},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class J{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)})},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function ee(e,t){let n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}function et(e){e.preventDefault()}function en(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(o||(o={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"}(a||(a={}));let er={start:[a.Space,a.Enter],cancel:[a.Esc],end:[a.Space,a.Enter,a.Tab]},ei=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case a.Right:return{...n,x:n.x+25};case a.Left:return{...n,x:n.x-25};case a.Down:return{...n,y:n.y+25};case a.Up:return{...n,y:n.y-25}}};class eo{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;let{event:{target:t}}=e;this.props=e,this.listeners=new J((0,g.TW)(t)),this.windowListeners=new J((0,g.zk)(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(o.Resize,this.handleCancel),this.windowListeners.add(o.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(o.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&function(e,t){if(void 0===t&&(t=F),!e)return;let{top:n,left:r,bottom:i,right:o}=t(e);B(e)&&(i<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}(n),t(A)}handleKeyDown(e){if((0,g.kx)(e)){let{active:t,context:n,options:r}=this.props,{keyboardCodes:i=er,coordinateGetter:o=ei,scrollBehavior:s="smooth"}=r,{code:l}=e;if(i.end.includes(l))return void this.handleEnd(e);if(i.cancel.includes(l))return void this.handleCancel(e);let{collisionRect:u}=n.current,c=u?{x:u.left,y:u.top}:A;this.referenceCoordinates||(this.referenceCoordinates=c);let d=o(e,{active:t,context:n.current,currentCoordinates:c});
212if(d){let t=(0,g.Re)(d,c),r={x:0,y:0},{scrollableAncestors:i}=n.current;for(let n of i){let i=e.code,{isTop:o,isRight:l,isLeft:u,isBottom:c,maxScroll:f,minScroll:h}=G(n),p=function(e){if(e===document.scrollingElement){let{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}let{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}(n),g={x:Math.min(i===a.Right?p.right-p.width/2:p.right,Math.max(i===a.Right?p.left:p.left+p.width/2,d.x)),y:Math.min(i===a.Down?p.bottom-p.height/2:p.bottom,Math.max(i===a.Down?p.top:p.top+p.height/2,d.y))},m=i===a.Right&&!l||i===a.Left&&!u,y=i===a.Down&&!c||i===a.Up&&!o;if(m&&g.x!==d.x){let e=n.scrollLeft+t.x,o=i===a.Right&&e<=f.x||i===a.Left&&e>=h.x;if(o&&!t.y)return void n.scrollTo({left:e,behavior:s});o?r.x=n.scrollLeft-e:r.x=i===a.Right?n.scrollLeft-f.x:n.scrollLeft-h.x,r.x&&n.scrollBy({left:-r.x,behavior:s});break}if(y&&g.y!==d.y){let e=n.scrollTop+t.y,o=i===a.Down&&e<=f.y||i===a.Up&&e>=h.y;if(o&&!t.x)return void n.scrollTo({top:e,behavior:s});o?r.y=n.scrollTop-e:r.y=i===a.Down?n.scrollTop-f.y:n.scrollTop-h.y,r.y&&n.scrollBy({top:-r.y,behavior:s});break}}this.handleMove(e,(0,g.WQ)((0,g.Re)(d,this.referenceCoordinates),r))}}}handleMove(e,t){let{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){let{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){let{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function ea(e){return!!(e&&"distance"in e)}function es(e){return!!(e&&"delay"in e)}eo.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=er,onActivation:i}=t,{active:o}=n,{code:a}=e.nativeEvent;if(r.start.includes(a)){let t=o.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==i||i({event:e.nativeEvent}),!0)}return!1}}];class el{constructor(e,t,n){var r;void 0===n&&(n=function(e){let{EventTarget:t}=(0,g.zk)(e);return e instanceof t?e:(0,g.TW)(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;let{event:i}=e,{target:o}=i;this.props=e,this.events=t,this.document=(0,g.TW)(o),this.documentListeners=new J(this.document),this.listeners=new J(n),this.windowListeners=new J((0,g.zk)(o)),this.initialCoordinates=null!=(r=(0,g.e_)(i))?r:A,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(o.Resize,this.handleCancel),this.windowListeners.add(o.DragStart,et),this.windowListeners.add(o.VisibilityChange,this.handleCancel),this.windowListeners.add(o.ContextMenu,et),this.documentListeners.add(o.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(es(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(ea(t))return void this.handlePending(t)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){let{active:n,onPending:r}=this.props;r(n,e,this.initialCoordinates,t)}handleStart(){let{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(o.Click,en,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(o.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;let{activated:n,initialCoordinates:r,props:i}=this,{onMove:o,options:{activationConstraint:a}}=i;if(!r)return;let s=null!=(t=(0,g.e_)(e))?t:A,l=(0,g.Re)(r,s);if(!n&&a){if(ea(a)){if(null!=a.tolerance&&ee(l,a.tolerance))return this.handleCancel();if(ee(l,a.distance))return this.handleStart()}return es(a)&&ee(l,a.tolerance)?this.handleCancel():void this.handlePending(a,l)}e.cancelable&&e.preventDefault(),o(s)}handleEnd(){let{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){let{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===a.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}let eu={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class ec extends el{constructor(e){let{event:t}=e;super(e,eu,(0,g.TW)(t.target))}}ec.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!!n.isPrimary&&0===n.button&&(null==r||r({event:n}),!0)}}];let ed={move:{name:"mousemove"},end:{name:"mouseup"}};!function(e){e[e.RightClick=2]="RightClick"}(s||(s={}));class ef extends el{constructor(e){super(e,ed,(0,g.TW)(e.event.target))}}ef.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==s.RightClick&&(null==r||r({event:n}),!0)}}];let eh={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class ep extends el{constructor(e){super(e,eh)}static setup(){return window.addEventListener(eh.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(eh.move.name,e)};function e(){}}}ep.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t,{touches:i}=n;return!(i.length>1)&&(null==r||r({event:n}),!0)}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(l||(l={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="Rever
212sedTreeOrder"}(u||(u={}));let eg={x:{[i.Backward]:!1,[i.Forward]:!1},y:{[i.Backward]:!1,[i.Forward]:!1}};!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(c||(c={})),(d||(d={})).Optimized="optimized";let em=new Map;function ey(e,t){return(0,g.KG)(n=>e?n||("function"==typeof t?t(e):e):null,[t,e])}function ev(e){let{callback:t,disabled:n}=e,r=(0,g._q)(t),i=(0,h.useMemo)(()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;let{ResizeObserver:e}=window;return new e(r)},[n]);return(0,h.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}function eb(e){return new Q(F(e),e)}function ew(e,t,n){void 0===t&&(t=eb);let[r,i]=(0,h.useState)(null);function o(){i(r=>{if(!e)return null;if(!1===e.isConnected){var i;return null!=(i=null!=r?r:n)?i:null}let o=t(e);return JSON.stringify(r)===JSON.stringify(o)?r:o})}let a=function(e){let{callback:t,disabled:n}=e,r=(0,g._q)(t),i=(0,h.useMemo)(()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;let{MutationObserver:e}=window;return new e(r)},[r,n]);return(0,h.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}({callback(t){if(e)for(let n of t){let{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){o();break}}}}),s=ev({callback:o});return(0,g.Es)(()=>{o(),e?(null==s||s.observe(e),null==a||a.observe(document.body,{childList:!0,subtree:!0})):(null==s||s.disconnect(),null==a||a.disconnect())},[e]),r}let ex=[];function ek(e,t){void 0===t&&(t=[]);let n=(0,h.useRef)(null);return(0,h.useEffect)(()=>{n.current=null},t),(0,h.useEffect)(()=>{let t=e!==A;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?(0,g.Re)(e,n.current):A}function eE(e){return(0,h.useMemo)(()=>e?function(e){let t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null,[e])}let e_=[],eS=[{sensor:ec,options:{}},{sensor:eo,options:{}}],eA={current:{}},eT={draggable:{measure:U},droppable:{measure:U,strategy:c.WhileDragging,frequency:d.Optimized},dragOverlay:{measure:F}};class eC extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}let eO={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new eC,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:E},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:eT,measureDroppableContainers:E,windowRect:null,measuringScheduled:!1},ej={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:E,draggableNodes:new Map,over:null,measureDroppableContainers:E},eD=(0,h.createContext)(ej),eR=(0,h.createContext)(eO);function eI(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new eC}}}function eP(e,t){switch(t.type){case r.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case r.DragMove:if(null==e.draggable.active)return e;return{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case r.DragEnd:case r.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case r.RegisterDroppable:{let{element:n}=t,{id:r}=n,i=new eC(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case r.SetDroppableDisabled:{let{id:n,key:r,disabled:i}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;let a=new eC(e.droppable.containers);return a.set(n,{...o,disabled:i}),{...e,droppable:{...e.droppable,containers:a}}}case r.UnregisterDroppable:{let{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;
212let o=new eC(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function eM(e){let{disabled:t}=e,{active:n,activatorEvent:r,draggableNodes:i}=(0,h.useContext)(eD),o=(0,g.ZC)(r),a=(0,g.ZC)(null==n?void 0:n.id);return(0,h.useEffect)(()=>{if(!t&&!r&&o&&null!=a){if(!(0,g.kx)(o)||document.activeElement===o.target)return;let e=i.get(a);if(!e)return;let{activatorNode:t,node:n}=e;(t.current||n.current)&&requestAnimationFrame(()=>{for(let e of[t.current,n.current]){if(!e)continue;let t=(0,g.ag)(e);if(t){t.focus();break}}})}},[r,t,i,a,o]),null}let eN=(0,h.createContext)({...A,scaleX:1,scaleY:1});!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(f||(f={}));let e$=(0,h.memo)(function(e){var t,n,o,a,s,d;let{id:m,accessibility:y,autoScroll:v=!0,children:w,sensors:x=eS,collisionDetection:E=M,measuring:_,modifiers:S,...T}=e,[C,O]=(0,h.useReducer)(eP,void 0,eI),[j,R]=function(){let[e]=(0,h.useState)(()=>new Set),t=(0,h.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,h.useCallback)(t=>{let{type:n,event:r}=t;e.forEach(e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)})},[e]),t]}(),[I,P]=(0,h.useState)(f.Uninitialized),L=I===f.Initialized,{draggable:{active:U,nodes:V,translate:H},droppable:{containers:Z}}=C,J=null!=U?V.get(U):null,ee=(0,h.useRef)({initial:null,translated:null}),et=(0,h.useMemo)(()=>{var e;return null!=U?{id:U,data:null!=(e=null==J?void 0:J.data)?e:eA,rect:ee}:null},[U,J]),en=(0,h.useRef)(null),[er,ei]=(0,h.useState)(null),[eo,ea]=(0,h.useState)(null),es=(0,g.YN)(T,Object.values(T)),el=(0,g.YG)("DndDescribedBy",m),eu=(0,h.useMemo)(()=>Z.getEnabled(),[Z]),ec=(0,h.useMemo)(()=>({draggable:{...eT.draggable,...null==_?void 0:_.draggable},droppable:{...eT.droppable,...null==_?void 0:_.droppable},dragOverlay:{...eT.dragOverlay,...null==_?void 0:_.dragOverlay}}),[null==_?void 0:_.draggable,null==_?void 0:_.droppable,null==_?void 0:_.dragOverlay]),{droppableRects:ed,measureDroppableContainers:ef,measuringScheduled:eh}=function(e,t){let{dragging:n,dependencies:r,config:i}=t,[o,a]=(0,h.useState)(null),{frequency:s,measure:l,strategy:u}=i,d=(0,h.useRef)(e),f=function(){switch(u){case c.Always:return!1;case c.BeforeDragging:return n;default:return!n}}(),p=(0,g.YN)(f),m=(0,h.useCallback)(function(e){void 0===e&&(e=[]),p.current||a(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[p]),y=(0,h.useRef)(null),v=(0,g.KG)(t=>{if(f&&!n)return em;if(!t||t===em||d.current!==e||null!=o){let t=new Map;for(let n of e){if(!n)continue;if(o&&o.length>0&&!o.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}let e=n.node.current,r=e?new Q(l(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t},[e,o,n,f,l]);return(0,h.useEffect)(()=>{d.current=e},[e]),(0,h.useEffect)(()=>{f||m()},[n,f]),(0,h.useEffect)(()=>{o&&o.length>0&&a(null)},[JSON.stringify(o)]),(0,h.useEffect)(()=>{f||"number"!=typeof s||null!==y.current||(y.current=setTimeout(()=>{m(),y.current=null},s))},[s,f,m,...r]),{droppableRects:v,measureDroppableContainers:m,measuringScheduled:null!=o}}(eu,{dragging:L,dependencies:[H.x,H.y],config:ec.droppable}),ep=function(e,t){let n=null!=t?e.get(t):void 0,r=n?n.node.current:null;return(0,g.KG)(e=>{var n;return null==t?null:null!=(n=null!=r?r:e)?n:null},[r,t])}(V,U),eb=(0,h.useMemo)(()=>eo?(0,g.e_)(eo):null,[eo]),eC=function(){let e=(null==er?void 0:er.autoScrollEnabled)===!1,t="object"==typeof v?!1===v.enabled:!1===v,n=L&&!e&&!t;return"object"==typeof v?{...v,enabled:n}:{enabled:n}}(),eO=ey(ep,ec.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e,o=(0,h.useRef)(!1),{x:a,y:s}="boolean"==typeof i?{x:i,y:i}:i;(0,g.Es)(()=>{if(!a&&!s||!t){o.current=!1;return}if(o.current||!r)return;let e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;let i=N(n(e),r);if(a||(i.x=0),s||(i.y=0),o.current=!0,Math.abs(i.x)>0||Math.abs(i.y)>0){let t=B(e);t&&t.scrollBy({top:i.y,left:i.x})}},[t,a,s,r,n])}({activeNode:null!=U?V.get(U):null,config:eC.layoutShiftCompensation,initialRect:eO,measure:ec.draggable.measure});let ej=ew(ep,ec.draggable.measure,eO),e$=ew(ep?ep.parentElement:null),eL=(0,h.useRef)({activatorEvent:null,active:null,activeNode:ep,collisionRect:null,collisions:null,droppableRects:ed,draggableNodes:V,draggingNode:null,draggingNodeRect:null,droppableContainers:Z,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),eF=Z.getNodeFor(null==(t=eL.current.over)?void 0:t.id),eU=function(e){let{measure:t}=e,[n,r]=(0,h.useState)(null),i=ev({callback:(0,h.useCallback)(e=>{for(let{target:n}of e)if((0,g.sb)(n)){r(e=>{let r=t(n);return e?{...e,width:r.width,height:r.height}:r});break}},[t])}),o=(0,h.useCallback)(e=>{let n=function(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return(0,g.sb)(t)?t:e}(e);null==i||i.disconnect(),n&&(null==i||i.observe(n)),r(n?t(n):null)},[t,i]),[a,s]=(0,g.lk)(o);return(0,h.useMemo)(()=>({nodeRef:a,rect:n,setRef:s}),[n,a,s])}({measure:ec.dragOverlay.measure}
212),ez=null!=(n=eU.nodeRef.current)?n:ep,eB=L?null!=(o=eU.rect)?o:ej:null,eq=!!(eU.nodeRef.current&&eU.rect),eV=function(e){let t=ey(e);return N(e,t)}(eq?null:ej),eH=eE(ez?(0,g.zk)(ez):null),eW=function(e){let t=(0,h.useRef)(e),n=(0,g.KG)(n=>e?n&&n!==ex&&e&&t.current&&e.parentNode===t.current.parentNode?n:z(e):ex,[e]);return(0,h.useEffect)(()=>{t.current=e},[e]),n}(L?null!=eF?eF:ep:null),eY=function(e,t){void 0===t&&(t=F);let[n]=e,r=eE(n?(0,g.zk)(n):null),[i,o]=(0,h.useState)(e_);function a(){o(()=>e.length?e.map(e=>Y(e)?r:new Q(t(e),e)):e_)}let s=ev({callback:a});return(0,g.Es)(()=>{null==s||s.disconnect(),a(),e.forEach(e=>null==s?void 0:s.observe(e))},[e]),i}(eW),eG=function(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...r}),n):n}(S,{transform:{x:H.x-eV.x,y:H.y-eV.y,scaleX:1,scaleY:1},activatorEvent:eo,active:et,activeNodeRect:ej,containerNodeRect:e$,draggingNodeRect:eB,over:eL.current.over,overlayNodeRect:eU.rect,scrollableAncestors:eW,scrollableAncestorRects:eY,windowRect:eH}),eK=eb?(0,g.WQ)(eb,H):null,eX=function(e){let[t,n]=(0,h.useState)(null),r=(0,h.useRef)(e),i=(0,h.useCallback)(e=>{let t=q(e.target);t&&n(e=>e?(e.set(t,W(t)),new Map(e)):null)},[]);return(0,h.useEffect)(()=>{let t=r.current;if(e!==t){o(t);let a=e.map(e=>{let t=q(e);return t?(t.addEventListener("scroll",i,{passive:!0}),[t,W(t)]):null}).filter(e=>null!=e);n(a.length?new Map(a):null),r.current=e}return()=>{o(e),o(t)};function o(e){e.forEach(e=>{let t=q(e);null==t||t.removeEventListener("scroll",i)})}},[i,e]),(0,h.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>(0,g.WQ)(e,t),A):X(e):A,[e,t])}(eW),eZ=ek(eX),eQ=ek(eX,[ej]),eJ=(0,g.WQ)(eG,eZ),e0=eB?$(eB,eG):null,e1=et&&e0?E({active:et,collisionRect:e0,droppableRects:ed,droppableContainers:eu,pointerCoordinates:eK}):null,e2=D(e1,"id"),[e5,e3]=(0,h.useState)(null),e4=(s=eq?eG:(0,g.WQ)(eG,eQ),d=null!=(a=null==e5?void 0:e5.rect)?a:null,{...s,scaleX:d&&ej?d.width/ej.width:1,scaleY:d&&ej?d.height/ej.height:1}),e6=(0,h.useRef)(null),e8=(0,h.useCallback)((e,t)=>{let{sensor:n,options:i}=t;if(null==en.current)return;let o=V.get(en.current);if(!o)return;let a=e.nativeEvent,s=new n({active:en.current,activeNode:o,event:a,options:i,context:eL,onAbort(e){if(!V.get(e))return;let{onDragAbort:t}=es.current,n={id:e};null==t||t(n),j({type:"onDragAbort",event:n})},onPending(e,t,n,r){if(!V.get(e))return;let{onDragPending:i}=es.current,o={id:e,constraint:t,initialCoordinates:n,offset:r};null==i||i(o),j({type:"onDragPending",event:o})},onStart(e){let t=en.current;if(null==t)return;let n=V.get(t);if(!n)return;let{onDragStart:i}=es.current,o={activatorEvent:a,active:{id:t,data:n.data,rect:ee}};(0,p.unstable_batchedUpdates)(()=>{null==i||i(o),P(f.Initializing),O({type:r.DragStart,initialCoordinates:e,active:t}),j({type:"onDragStart",event:o}),ei(e6.current),ea(a)})},onMove(e){O({type:r.DragMove,coordinates:e})},onEnd:l(r.DragEnd),onCancel:l(r.DragCancel)});function l(e){return async function(){let{active:t,collisions:n,over:i,scrollAdjustedTranslate:o}=eL.current,s=null;if(t&&o){let{cancelDrop:l}=es.current;s={activatorEvent:a,active:t,collisions:n,delta:o,over:i},e===r.DragEnd&&"function"==typeof l&&await Promise.resolve(l(s))&&(e=r.DragCancel)}en.current=null,(0,p.unstable_batchedUpdates)(()=>{O({type:e}),P(f.Uninitialized),e3(null),ei(null),ea(null),e6.current=null;let t=e===r.DragEnd?"onDragEnd":"onDragCancel";if(s){let e=es.current[t];null==e||e(s),j({type:t,event:s})}})}}e6.current=s},[V]),e7=(0,h.useCallback)((e,t)=>(n,r)=>{let i=n.nativeEvent,o=V.get(r);null!==en.current||!o||i.dndKit||i.defaultPrevented||!0===e(n,t.options,{active:o})&&(i.dndKit={capturedBy:t.sensor},en.current=r,e8(n,t))},[V,e8]),e9=(0,h.useMemo)(()=>x.reduce((e,t)=>{let{sensor:n}=t;return[...e,...n.activators.map(e=>({eventName:e.eventName,handler:e7(e.handler,t)}))]},[]),[x,e7]);(0,h.useEffect)(()=>{if(!g.Sw)return;let e=x.map(e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()});return()=>{for(let t of e)null==t||t()}},x.map(e=>{let{sensor:t}=e;return t})),(0,g.Es)(()=>{ej&&I===f.Initializing&&P(f.Initialized)},[ej,I]),(0,h.useEffect)(()=>{let{onDragMove:e}=es.current,{active:t,activatorEvent:n,collisions:r,over:i}=eL.current;if(!t||!n)return;let o={active:t,activatorEvent:n,collisions:r,delta:{x:eJ.x,y:eJ.y},over:i};(0,p.unstable_batchedUpdates)(()=>{null==e||e(o),j({type:"onDragMove",event:o})})},[eJ.x,eJ.y]),(0,h.useEffect)(()=>{let{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=eL.current;if(!e||null==en.current||!t||!i)return;let{onDragOver:o}=es.current,a=r.get(e2),s=a&&a.rect.current?{id:a.id,rect:a.rect.current,data:a.data,disabled:a.disabled}:null,l={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:s};(0,p.unstable_batchedUpdates)(()=>{e3(s),null==o||o(l),j({type:"onDragOver",event:l})})},[e2]),(0,g.Es)(()=>{eL.current={activatorEvent:eo,active:et,activeNode:ep,collisionRect:e0,collisions:e1,droppableRects:ed,draggableNodes:V,draggingNode:ez,draggingNodeRect:eB,droppableContainers:Z,over:e5,scrollableAncestors:eW,scrollAdjustedTranslate:eJ},ee.current={initial:eB,translated:e0}},[et,ep,e1,e0,V,ez,eB,ed,Z,e5,eW,eJ]),function(e){let{acceleration:t,activator:n=l.Pointer,canScroll:r,draggingRect:o,enabled:a,interval:s=5,order:c=u.TreeOrder,pointerCoordinates:d,scrollableAncestors:f,scrollableAncestorRects:p,delta:m,threshold:y}=e,v=function(e){let{delta:t,disabled:n}=e,r=(0,g.ZC)(t);return(0,g.KG)(e=>{if(n||!r||!e)return eg;
212let o={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[i.Backward]:e.x[i.Backward]||-1===o.x,[i.Forward]:e.x[i.Forward]||1===o.x},y:{[i.Backward]:e.y[i.Backward]||-1===o.y,[i.Forward]:e.y[i.Forward]||1===o.y}}},[n,t,r])}({delta:m,disabled:!a}),[b,w]=(0,g.$$)(),x=(0,h.useRef)({x:0,y:0}),k=(0,h.useRef)({x:0,y:0}),E=(0,h.useMemo)(()=>{switch(n){case l.Pointer:return d?{top:d.y,bottom:d.y,left:d.x,right:d.x}:null;case l.DraggableRect:return o}},[n,o,d]),_=(0,h.useRef)(null),S=(0,h.useCallback)(()=>{let e=_.current;if(!e)return;let t=x.current.x*k.current.x,n=x.current.y*k.current.y;e.scrollBy(t,n)},[]),A=(0,h.useMemo)(()=>c===u.TreeOrder?[...f].reverse():f,[c,f]);(0,h.useEffect)(()=>{if(!a||!f.length||!E)return void w();for(let e of A){if((null==r?void 0:r(e))===!1)continue;let n=p[f.indexOf(e)];if(!n)continue;let{direction:o,speed:a}=function(e,t,n,r,o){let{top:a,left:s,right:l,bottom:u}=n;void 0===r&&(r=10),void 0===o&&(o=K);let{isTop:c,isBottom:d,isLeft:f,isRight:h}=G(e),p={x:0,y:0},g={x:0,y:0},m={height:t.height*o.y,width:t.width*o.x};return!c&&a<=t.top+m.height?(p.y=i.Backward,g.y=r*Math.abs((t.top+m.height-a)/m.height)):!d&&u>=t.bottom-m.height&&(p.y=i.Forward,g.y=r*Math.abs((t.bottom-m.height-u)/m.height)),!h&&l>=t.right-m.width?(p.x=i.Forward,g.x=r*Math.abs((t.right-m.width-l)/m.width)):!f&&s<=t.left+m.width&&(p.x=i.Backward,g.x=r*Math.abs((t.left+m.width-s)/m.width)),{direction:p,speed:g}}(e,n,E,t,y);for(let e of["x","y"])v[e][o[e]]||(a[e]=0,o[e]=0);if(a.x>0||a.y>0){w(),_.current=e,b(S,s),x.current=a,k.current=o;return}}x.current={x:0,y:0},k.current={x:0,y:0},w()},[t,S,r,w,a,s,JSON.stringify(E),JSON.stringify(v),b,f,A,p,JSON.stringify(y)])}({...eC,delta:H,draggingRect:e0,pointerCoordinates:eK,scrollableAncestors:eW,scrollableAncestorRects:eY});let te=(0,h.useMemo)(()=>({active:et,activeNode:ep,activeNodeRect:ej,activatorEvent:eo,collisions:e1,containerNodeRect:e$,dragOverlay:eU,draggableNodes:V,droppableContainers:Z,droppableRects:ed,over:e5,measureDroppableContainers:ef,scrollableAncestors:eW,scrollableAncestorRects:eY,measuringConfiguration:ec,measuringScheduled:eh,windowRect:eH}),[et,ep,ej,eo,e1,e$,eU,V,Z,ed,e5,ef,eW,eY,ec,eh,eH]),tt=(0,h.useMemo)(()=>({activatorEvent:eo,activators:e9,active:et,activeNodeRect:ej,ariaDescribedById:{draggable:el},dispatch:O,draggableNodes:V,over:e5,measureDroppableContainers:ef}),[eo,e9,et,ej,O,el,V,e5,ef]);return h.createElement(b.Provider,{value:R},h.createElement(eD.Provider,{value:tt},h.createElement(eR.Provider,{value:te},h.createElement(eN.Provider,{value:e4},w)),h.createElement(eM,{disabled:(null==y?void 0:y.restoreFocus)===!1})),h.createElement(k,{...y,hiddenTextDescribedById:el}))}),eL=(0,h.createContext)(null),eF="button";function eU(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e,o=(0,g.YG)("Draggable"),{activators:a,activatorEvent:s,active:l,activeNodeRect:u,ariaDescribedById:c,draggableNodes:d,over:f}=(0,h.useContext)(eD),{role:p=eF,roleDescription:m="draggable",tabIndex:y=0}=null!=i?i:{},v=(null==l?void 0:l.id)===t,b=(0,h.useContext)(v?eN:eL),[w,x]=(0,g.lk)(),[k,E]=(0,g.lk)(),_=(0,h.useMemo)(()=>a.reduce((e,n)=>{let{eventName:r,handler:i}=n;return e[r]=e=>{i(e,t)},e},{}),[a,t]),S=(0,g.YN)(n);return(0,g.Es)(()=>(d.set(t,{id:t,key:o,node:w,activatorNode:k,data:S}
212),()=>{let e=d.get(t);e&&e.key===o&&d.delete(t)}),[d,t]),{active:l,activatorEvent:s,activeNodeRect:u,attributes:(0,h.useMemo)(()=>({role:p,tabIndex:y,"aria-disabled":r,"aria-pressed":!!v&&p===eF||void 0,"aria-roledescription":m,"aria-describedby":c.draggable}),[r,p,y,v,m,c.draggable]),isDragging:v,listeners:r?void 0:_,node:w,over:f,setNodeRef:x,setActivatorNodeRef:E,transform:b}}function ez(){return(0,h.useContext)(eR)}let eB={timeout:25};function eq(e){let{data:t,disabled:n=!1,id:i,resizeObserverConfig:o}=e,a=(0,g.YG)("Droppable"),{active:s,dispatch:l,over:u,measureDroppableContainers:c}=(0,h.useContext)(eD),d=(0,h.useRef)({disabled:n}),f=(0,h.useRef)(!1),p=(0,h.useRef)(null),m=(0,h.useRef)(null),{disabled:y,updateMeasurementsFor:v,timeout:b}={...eB,...o},w=(0,g.YN)(null!=v?v:i),x=ev({callback:(0,h.useCallback)(()=>{if(!f.current){f.current=!0;return}null!=m.current&&clearTimeout(m.current),m.current=setTimeout(()=>{c(Array.isArray(w.current)?w.current:[w.current]),m.current=null},b)},[b]),disabled:y||!s}),k=(0,h.useCallback)((e,t)=>{x&&(t&&(x.unobserve(t),f.current=!1),e&&x.observe(e))},[x]),[E,_]=(0,g.lk)(k),S=(0,g.YN)(t);return(0,h.useEffect)(()=>{x&&E.current&&(x.disconnect(),f.current=!1,x.observe(E.current))},[E,x]),(0,h.useEffect)(()=>(l({type:r.RegisterDroppable,element:{id:i,key:a,disabled:n,node:E,rect:p,data:S}}),()=>l({type:r.UnregisterDroppable,key:a,id:i})),[i]),(0,h.useEffect)(()=>{n!==d.current.disabled&&(l({type:r.SetDroppableDisabled,id:i,key:a,disabled:n}),d.current.disabled=n)},[i,a,n,l]),{active:s,rect:p,isOver:(null==u?void 0:u.id)===i,node:E,over:u,setNodeRef:_}}},88002:(e,t,n)=>{var r=n(1786),i=n(78946);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},88071:(e,t,n)=>{var r=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},i={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,o;switch(n=n||{},i.util.type(t)){case"Object":if(n[o=i.util.objId(t)])return n[o];for(var a in r={},n[o]=r,t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":if(n[o=i.util.objId(t)])return n[o];return r=[],n[o]=r,t.forEach(function(t,i){r[i]=e(t,n)}),r;default:return t}},getLanguage:function(e){for(;e;){var n=t.exec(e.className);if(n)return n[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,n){e.className=e.className.replace(RegExp(t,"gi"),""),e.classList.add("language-"+n)},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw Error()}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var i=e.classList;if(i.contains(t))return!0;if(i.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=i.util.clone(i.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var o=(r=r||i.languages)[e],a={};for(var s in o)if(o.hasOwnProperty(s)){if(s==t)for(var l in n)n.hasOwnProperty(l)&&(a[l]=n[l]);n.hasOwnProperty(s)||(a[s]=o[s])}var u=r[e];return r[e]=a,i.languages.DFS(i.languages,function(t,n){n===u&&t!=e&&(this[t]=a)}),a},DFS:function e(t,n,r,o){o=o||{};var a=i.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],r||s);var l=t[s],u=i.util.type(l);"Object"!==u||o[a(l)]?"Array"!==u||o[a(l)]||(o[a(l)]=!0,e(l,n,s,o)):(o[a(l)]=!0,e(l,n,null,o))}}},plugins:{},highlightAll:function(e,t){i.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};i.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),i.hooks.run("before-all-elements-highlight",r);for(var o,a=0;o=r.elements[a++];)i.highlightElement(o,!0===t,r.callback)},highlightElement:function(t,n,r){var o=i.util.getLanguage(t),a=i.languages[o];i.util.setLanguage(t,o);var s=t.parentElement;s&&"pre"===s.nodeName.toLowerCase()&&i.util.setLanguage(s,o);var l=t.textContent,u={element:t,language:o,grammar:a,code:l};function c(e){u.highlightedCode=e,i.hooks.run("before-insert",u),u.element.innerHTML=u.highlightedCode,i.hooks.run("after-highlight",u),i.hooks.run("complete",u),r&&r.call(u.element)}if(i.hooks.run("before-sanity-check",u),(s=u.element.parentElement)&&"pre"===s.nodeName.toLowerCase()&&!s.hasAttribute("tabindex")&&s.setAttribute("tabindex","0"),!u.code){i.hooks.run("complete",u),r&&r.call(u.element);return}if(i.hooks.run("before-highlight",u),!u.grammar)return void c(i.util.encode(u.code));if(n&&e.Worker){var d=new Worker(i.filename);d.onmessage=function(e){c(e.data)},d.postMessage(JSON.stringify({language:u.language,code:u.code,immediateClose:!0}))}else c(i.highlight(u.code,u.grammar,u.language))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(i.hooks.run("before-tokenize",r),!r.grammar)throw Error('The language "'+r.language+'" has no grammar.');return r.tokens=i.tokenize(r.code,r.grammar),i.hooks.run("after-tokenize",r),o.stringify(i.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var u=new s;return l(u,u.head,e),function e(t,n,r,s,u,c){for(var d in r)if(r.hasOwnProperty(d)&&r[d]){var f=r[d];f=Array.isArray(f)?f:[f];for(var h=0;h<f.length;++h){if(c&&c.cause==d+","+h)return;var p=f[h],g=p.inside,m=!!p.lookbehind,y=!!p.greedy,v=p.alias;if(y&&!p.pattern.global){var b=p.pattern.toString().match(/[imsuy]*$/)[0];p.pattern=RegExp(p.pattern.source,b+"g")}for(var w=p.pattern||p,x=s.next,k=u;x!==n.tail&&(!c||!(k>
212=c.reach));k+=x.value.length,x=x.next){var E,_=x.value;if(n.length>t.length)return;if(!(_ instanceof o)){var S=1;if(y){if(!(E=a(w,k,t,m))||E.index>=t.length)break;var A=E.index,T=E.index+E[0].length,C=k;for(C+=x.value.length;A>=C;)C+=(x=x.next).value.length;if(C-=x.value.length,k=C,x.value instanceof o)continue;for(var O=x;O!==n.tail&&(C<T||"string"==typeof O.value);O=O.next)S++,C+=O.value.length;S--,_=t.slice(k,C),E.index-=k}else if(!(E=a(w,0,_,m)))continue;var A=E.index,j=E[0],D=_.slice(0,A),R=_.slice(A+j.length),I=k+_.length;c&&I>c.reach&&(c.reach=I);var P=x.prev;if(D&&(P=l(n,P,D),k+=D.length),function(e,t,n){for(var r=t.next,i=0;i<n&&r!==e.tail;i++)r=r.next;t.next=r,r.prev=t,e.length-=i}(n,P,S),x=l(n,P,new o(d,g?i.tokenize(j,g):j,v,j)),R&&l(n,x,R),S>1){var M={cause:d+","+h,reach:I};e(t,n,r,x.prev,k,M),c&&M.reach>c.reach&&(c.reach=M.reach)}}}}}}(e,u,t,u.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(u)},hooks:{all:{},add:function(e,t){var n=i.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=i.hooks.all[e];if(n&&n.length)for(var r,o=0;r=n[o++];)r(t)}},Token:o};function o(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function a(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var o=i[1].length;i.index+=o,i[0]=i[0].slice(o)}return i}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}if(e.Prism=i,o.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach(function(t){r+=e(t,n)}),r}var o={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(o.classes,a):o.classes.push(a)),i.hooks.run("wrap",o);var s="";for(var l in o.attributes)s+=" "+l+'="'+(o.attributes[l]||"").replace(/"/g,"&quot;")+'"';return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+s+">"+o.content+"</"+o.tag+">"},!e.document)return e.addEventListener&&(i.disableWorkerMessageHandler||e.addEventListener("message",function(t){var n=JSON.parse(t.data),r=n.language,o=n.code,a=n.immediateClose;e.postMessage(i.highlight(o,i.languages[r],r)),a&&e.close()},!1)),i;var u=i.util.currentScript();function c(){i.manual||i.highlightAll()}if(u&&(i.filename=u.src,u.hasAttribute("data-manual")&&(i.manual=!0)),!i.manual){var d=document.readyState;"loading"===d||"interactive"===d&&u&&u.defer?document.addEventListener("DOMContentLoaded",c):window.requestAnimationFrame?window.requestAnimationFrame(c):window.setTimeout(c,16)}return i}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=r),void 0!==n.g&&(n.g.Prism=r)},88093:(e,t,n)=>{"use strict";n.d(t,{Cp:()=>l,Dp:()=>d,J0:()=>f,J5:()=>g,o:()=>c,r:()=>u});var r=n(67511),i=n(27313),o=n(67122),a=n(6541),s=n(92668);function l(e,t){return(0,i.o5)().captureException(e,(0,s.li)(t))}function u(e,t){return(0,i.o5)().captureEvent(e,t)}function c(e,t){(0,i.rm)().setContext(e,t)}function d(){return!!(0,i.KU)()}function f(e){let t=(0,i.KU)(),n=(0,i.rm)(),s=(0,i.o5)(),{release:l,environment:u=r.U}=t&&t.getOptions()||{},{userAgent:c}=a.O.navigator||{},d=(0,o.fj)({release:l,environment:u,user:s.getUser()||n.getUser(),...c&&{userAgent:c},...e}),f=n.getSession();return f&&"ok"===f.status&&(0,o.qO)(f,{status:"exited"}),h(),n.setSession(d),s.setSession(d),d}function h(){let e=(0,i.rm)(),t=(0,i.o5)(),n=t.getSession()||e.getSession();n&&(0,o.Vu)(n),p(),e.setSession(),t.setSession()}function p(){let e=(0,i.rm)(),t=(0,i.o5)(),n=(0,i.KU)(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}function g(e=!1){if(e)return void h();p()}},88435:(e,t,n)=>{var r=n(22899);e.exports=function(e,t,n,i){return r(e,function(e,r,o){t(i,e,n(e),o)}),i}},88440:e=>{"use strict";e.exports=function(e){return(e=String(e||""),r.test(e))?"rtl":i.test(e)?"ltr":"neutral"};var t="֑-߿יִ-﷽ﹰ-ﻼ",n="A-Za-z\xc0-\xd6\xd8-\xf6\xf8-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",r=RegExp("^[^"+n+"]*["+t+"]"),i=RegExp("^[^"+t+"]*["+n+"]")},88559:(e,t,n)=>{"use strict";var r=n(63021),i=n(3728),o=n(71071);e.exports=function(e){var t,n,a=e.space,s=e.mustUseProperty||[],l=e.attributes||{},u=e.properties,c=e.transform,d={},f={};for(t in u)n=new o(t,c(l,t),u[t],a),-1!==s.indexOf(t)&&(n.mustUseProperty=!0),d[t]=n,f[r(t)]=t,f[r(n.attribute)]=t;return new i(d,f,a)}},88567:e=>{e.exports=Array.isArray},88837:(e,t,n)=>{"use strict";n.d(t,{$:()=>C,A:()=>R,D:()=>Y,E:()=>H,G:()=>q,L:()=>k,M:()=>M,N:()=>o,O:()=>eL,P:()=>L,R:()=>z,S:()=>i,T:()=>O,U:()=>eP,V:()=>s,W:()=>c,X:()=>l,a:()=>w,b:()=>eo,c:()=>E,d:()=>es,e:()=>G,f:()=>ea,g:()=>ei,h:()=>er,i:()=>Q,j:()=>ep,k:()=>eI,l:()=>et,m:()=>m,n:()=>e_,o:()=>function e(t,n,r,i){if("string"==typeof n){let e=ef(t,n).next(r,i);return e&&e.length?e:t.next(r,i)}if(1===Object.keys(n).length){let o=Object.keys(n),a=e(ef(t,o[0]),n[o[0]],r,i);return a&&a.length?a:t.next(r,i)}let o=[];for(let a of Object.keys(n)){let s=n[a];if(!s)continue;let l=e(ef(t,a),s,r,i);l&&o.push(...l)}return o.length?o:t.next(r,i)},p:()=>eE,q:()=>d,r:()=>eT,s:()=>ew,t:()=>y,u:()=>ed,v:()=>p,w:()=>en,x:()=>eh,y:()=>eM,z:()=>_});
212class r{constructor(e){this._process=e,this._active=!1,this._current=null,this._last=null}start(){this._active=!0,this.flush()}clear(){this._current&&(this._current.next=null,this._last=this._current)}enqueue(e){let t={value:e,next:null};if(this._current){this._last.next=t,this._last=t;return}this._current=t,this._last=t,this._active&&this.flush()}flush(){for(;this._current;){let e=this._current;this._process(e.value),this._current=e.next}this._last=null}}let i=".",o="",a="xstate.init",s="xstate.error",l="xstate.stop";function u(e,t){return{type:`xstate.done.state.${e}`,output:t}}function c(e,t){return{type:`xstate.error.actor.${e}`,error:t,actorId:e}}function d(e){return{type:a,input:e}}function f(e){setTimeout(()=>{throw e})}let h="function"==typeof Symbol&&Symbol.observable||"@@observable";function p(e){if(b(e))return e;let t=[],n="";for(let r=0;r<e.length;r++){switch(e.charCodeAt(r)){case 92:n+=e[r+1],r++;continue;case 46:t.push(n),n="";continue}n+=e[r]}return t.push(n),t}function g(e){var t;return(t=e)&&"object"==typeof t&&"machine"in t&&"value"in t?e.value:"string"!=typeof e?e:function(e){if(1===e.length)return e[0];let t={},n=t;for(let t=0;t<e.length-1;t++)if(t===e.length-2)n[e[t]]=e[t+1];else{let r=n;n={},r[e[t]]=n}return t}(p(e))}function m(e,t){let n={},r=Object.keys(e);for(let i=0;i<r.length;i++){let o=r[i];n[o]=t(e[o],o,e,i)}return n}function y(e){var t;return void 0===e?[]:b(t=e)?t:[t]}function v(e,t,n,r){return"function"==typeof e?e({context:t,event:n,self:r}):e}function b(e){return Array.isArray(e)}function w(e){var t;return(b(t=e)?t:[t]).map(e=>void 0===e||"string"==typeof e?{target:e}:e)}function x(e){if(void 0!==e&&""!==e)return y(e)}function k(e,t,n){let r="object"==typeof e,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}function E(e,t){return`${t}.${e}`}function _(e,t){let n=t.match(/^xstate\.invoke\.(\d+)\.(.*)/);if(!n)return e.implementations.actors[t];let[,r,i]=n,o=e.getStateNodeById(i).config.invoke;return(Array.isArray(o)?o[r]:o).src}function S(e,t){return`${e.sessionId}.${t}`}let A=0,T=!1,C=1,O=function(e){return e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped",e}({}),j={clock:{setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e)},logger:console.log.bind(console),devTools:!1};class D{constructor(e,t){this.logic=e,this._snapshot=void 0,this.clock=void 0,this.options=void 0,this.id=void 0,this.mailbox=new r(this._process.bind(this)),this.observers=new Set,this.eventListeners=new Map,this.logger=void 0,this._processingStatus=O.NotStarted,this._parent=void 0,this._syncSnapshot=void 0,this.ref=void 0,this._actorScope=void 0,this._systemId=void 0,this.sessionId=void 0,this.system=void 0,this._doneEvent=void 0,this.src=void 0,this._deferred=[];let n={...j,...t},{clock:i,logger:o,parent:a,syncSnapshot:s,id:l,systemId:u,inspect:c}=n;this.system=a?a.system:function(e,t){let n=new Map,r=new Map,i=new WeakMap,o=new Set,a={},{clock:s,logger:l}=t,u={schedule:(e,t,n,r,i=Math.random().toString(36).slice(2))=>{let o={source:e,target:t,event:n,delay:r,id:i,startedAt:Date.now()},l=S(e,i);c._snapshot._scheduledEvents[l]=o;let u=s.setTimeout(()=>{delete a[l],delete c._snapshot._scheduledEvents[l],c._relay(e,t,n)},r);a[l]=u},cancel:(e,t)=>{let n=S(e,t),r=a[n];delete a[n],delete c._snapshot._scheduledEvents[n],void 0!==r&&s.clearTimeout(r)},cancelAll:e=>{for(let t in c._snapshot._scheduledEvents){let n=c._snapshot._scheduledEvents[t];n.source===e&&u.cancel(e,n.id)}}},c={_snapshot:{_scheduledEvents:(t?.snapshot&&t.snapshot.scheduler)??{}},_bookId:()=>`x:${A++}`,_register:(e,t)=>(n.set(e,t),e),_unregister:e=>{n.delete(e.sessionId);let t=i.get(e);void 0!==t&&(r.delete(t),i.delete(e))},get:e=>
212r.get(e),_set:(e,t)=>{let n=r.get(e);if(n&&n!==t)throw Error(`Actor with system ID '${e}' already exists.`);r.set(e,t),i.set(t,e)},inspect:e=>{let t=k(e);return o.add(t),{unsubscribe(){o.delete(t)}}},_sendInspectionEvent:t=>{if(!o.size)return;let n={...t,rootId:e.sessionId};o.forEach(e=>e.next?.(n))},_relay:(e,t,n)=>{c._sendInspectionEvent({type:"@xstate.event",sourceRef:e,actorRef:t,event:n}),t._send(n)},scheduler:u,getSnapshot:()=>({_scheduledEvents:{...c._snapshot._scheduledEvents}}),start:()=>{let e=c._snapshot._scheduledEvents;for(let t in c._snapshot._scheduledEvents={},e){let{source:n,target:r,event:i,delay:o,id:a}=e[t];u.schedule(n,r,i,o,a)}},_clock:s,_logger:l};return c}(this,{clock:i,logger:o}),c&&!a&&this.system.inspect(k(c)),this.sessionId=this.system._bookId(),this.id=l??this.sessionId,this.logger=t?.logger??this.system._logger,this.clock=t?.clock??this.system._clock,this._parent=a,this._syncSnapshot=s,this.options=n,this.src=n.src??e,this.ref=this,this._actorScope={self:this,id:this.id,sessionId:this.sessionId,logger:this.logger,defer:e=>{this._deferred.push(e)},system:this.system,stopChild:e=>{if(e._parent!==this)throw Error(`Cannot stop child actor ${e.id} of ${this.id} because it is not a child`);e._stop()},emit:e=>{let t=this.eventListeners.get(e.type),n=this.eventListeners.get("*");if(t||n)for(let r of[...t?t.values():[],...n?n.values():[]])r(e)},actionExecutor:e=>{let t=()=>{if(this._actorScope.system._sendInspectionEvent({type:"@xstate.action",actorRef:this,action:{type:e.type,params:e.params}}),!e.exec)return;let t=T;try{T=!0,e.exec(e.info,e.params)}finally{T=t}};this._processingStatus===O.Running?t():this._deferred.push(t)}},this.send=this.send.bind(this),this.system._sendInspectionEvent({type:"@xstate.actor",actorRef:this}),u&&(this._systemId=u,this.system._set(u,this)),this._initState(t?.snapshot??t?.state),u&&"active"!==this._snapshot.status&&this.system._unregister(this)}_initState(e){try{this._snapshot=e?this.logic.restoreSnapshot?this.logic.restoreSnapshot(e,this._actorScope):e:this.logic.getInitialSnapshot(this._actorScope,this.options?.input)}catch(e){this._snapshot={status:"error",output:void 0,error:e}}}update(e,t){let n;for(this._snapshot=e;n=this._deferred.shift();)try{n()}catch(t){this._deferred.length=0,this._snapshot={...e,status:"error",error:t}}switch(this._snapshot.status){case"active":for(let t of this.observers)try{t.next?.(e)}catch(e){f(e)}break;case"done":var r;for(let t of this.observers)try{t.next?.(e)}catch(e){f(e)}this._stopProcedure(),this._complete(),this._doneEvent=(r=this.id,{type:`xstate.done.actor.${r}`,output:this._snapshot.output,actorId:r}),this._parent&&this.system._relay(this,this._parent,this._doneEvent);break;case"error":this._error(this._snapshot.error)}this.system._sendInspectionEvent({type:"@xstate.snapshot",actorRef:this,event:t,snapshot:e})}subscribe(e,t,n){let r=k(e,t,n);if(this._processingStatus!==O.Stopped)this.observers.add(r);else switch(this._snapshot.status){case"done":try{r.complete?.()}catch(e){f(e)}break;case"error":{let e=this._snapshot.error;if(r.error)try{r.error(e)}catch(e){f(e)}else f(e)}}return{unsubscribe:()=>{this.observers.delete(r)}}}on(e,t){let n=this.eventListeners.get(e);n||(n=new Set,this.eventListeners.set(e,n));let r=t.bind(void 0);return n.add(r),{unsubscribe:()=>{n.delete(r)}}}start(){if(this._processingStatus===O.Running)return this;this._syncSnapshot&&this.subscribe({next:e=>{"active"===e.status&&this.system._relay(this,this._parent,{type:`xstate.snapshot.${this.id}`,snapshot:e})},error:()=>{}}),this.system._register(this.sessionId,this),this._systemId&&this.system._set(this._systemId,this),this._processingStatus=O.Running;let e=d(this.options.input);switch(this.system._sendInspectionEvent({type:"@xstate.event",sourceRef:this._parent,actorRef:this,event:e}),this._snapshot.status){case"done":return this.update(this._snapshot,e),this;case"error":return this._error(this._snapshot.error),this}if(this._parent||this.system.start(),this.logic.start)try{this.logic.start(this._snapshot,this._actorScope)}catch(e){return this._snapshot={...this._snapshot,status:"error",error:e},this._error(e),this}return this.update(this._snapshot,e),this.options.devTools&&this.attachDevTools(),this.mailbox.start(),this}_process(e){let t,n;try{t=this.logic.transition(this._snapshot,e,this._actorScope)}catch(e){n={err:e}}if(n){let{err:e}=n;this._snapshot={...this._snapshot,status:"error",error:e},this._error(e);return}this.update(t,e),e.type===l&&(this._stopProcedure(),this._complete())}_stop(){return this._processingStatus===O.Stopped||((this.mailbox.clear(),this._processingStatus===O.NotStarted)?this._processingStatus=O.Stopped:this.mailbox.enqueue({type:l})),this}stop(){if(this._parent)throw Error("A non-root actor cannot be stopped directly.");return this._stop()}_complete(){for(let e of this.observers)try{e.complete?.()}catch(e){f(e)}this.observers.clear()}_reportError(e){if(!this.observers.size){this._parent||f(e);return}let t=!1;for(let n of this.observers){let r=n.error;t||=!r;try{r?.(e)}catch(e){f(e)}}this.observers.clear(),t&&f(e)}_error(e){this._stopProcedure(),this._reportError(e),this._parent&&this.system._relay(this,this._parent,c(this.id,e))}_stopProcedure(){return this._processingStatus!==O.Running||(this.system.scheduler.cancelAll(this),this.mailbox.clear(),this.mailbox=new r(this._process.bind(this)),this._processingStatus=O.Stopped,this.system._unregister(this)),this}_send(e){this._processingStatus!==O.Stopped&&this.mailbox.enqueue(e)}send(e){this.system._relay(void 0,this,e)}attachDevTools(){let{devTools:e}=this.options;e&&("function"==typeof e?e:e=>{if("undefined"==typeof window)return;let t=function(){let e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:void 0;if(e.__xstate__)return e.__xstate__}();t&&t.register(e)})(this)}toJSON(){return{xstate$$type:C,id:this.id}}getPersistedSnapshot(e){return this.logic.getPersistedSnapshot(this._snapshot,e)}[h](){return this}getSnapshot(){return this._snapshot}}function R(e,...[t]){return new D(e,t)}function I(e,t,n,r,{sendId:i}){return[t,{sendId:"function"==typeof i?i(n,r):i},void 0]}function P(e,t){e.defer(()=>{e.system.scheduler.cancel(e.self,t.sendId)})}function M(e){function t(e,t){}return t.type="xstate.cancel",t.sendId=e,t.resolve=I,t.execute=P,t}function N(e,t,n,r,{id:i,systemId:o,src:a,input:s,syncSnapshot:l}){let u,c,d="string"==typeof a?_(t.machine,a):a,f="function"==typeof i?i(n):i;return d&&(c="function"==typeof s?s({context:t.context,event:n.event,self:e.self}):s,u=R(d,{id:f,src:a,parent:e.self,syncSnapshot:l,systemId:o,input:c})),[eP(t,{children:{...t.children,[f]:u}}),{id:i,systemId:o,actorRef:u,src:a,input:c},void 0]}function $(e,{actorRef:t}){t&&e.defer(()=>{t._processingStatus!==O.Stopped&&t.start()})}function L(...[e,{id:t,systemId:n,input:r,syncSnapshot:i=!1}={}]){function o(e,t){}return o.type="xstate.spawnChild",o.id=t,o.systemId=n,o.src=e,o.input=r,o.syncSnapshot=i,o.resolve=N,o.execute=$,o}function F(e,t,n,r,{actorRef:i}){let o="function"==typeof i?i(n,r):i,a="string"==typeof o?t.children[o]:o,s=t.children;return a&&(s={...s},delete s[a.id]),[eP(t,{children:s}),a,void 0]}function U(e,t){if(t){if(e.system._unregister(t),t._processingStatus!==O.Running)return void e.stopChild(t);e.defer(()=>{e.stopChild(t)})}}function z(e){function t(e,t){}return t.type="xstate.stopChild",t.actorRef=e,t.resolve=F,t.execute=U,t}function B(e,t,{stateValue:n}){if("string"==typeof n&&en(n)){let t=e.machine.getStateNodeById(n);return e._nodes.some(e=>e===t)}return e.matches(n)}function q(e){function t(){return!1}return t.check=B,t.stateValue=e,t}function V(e,{context:t,event:n},{guards:r}){return!G(r[0],t,n,e)}function H(e){function t(e,t){return!1}return t.check=V,t.guards=[e],t}function W(e,{context:t,event:n},{guards:r}){return r.every(r=>G(r,t,n,e))}function Y(e){function t(e,t){return!1}return t.check=W,t.guards=e,t}function G(e,t,n,r){let{machine:i}=r,o="function"==typeof e,a=o?e:i.implementations.guards["string"==typeof e?e:e.type];if(!o&&!a)throw Error(`Guard '${"string"==typeof e?e:e.type}' is not implemented.'.`);if("function"!=typeof a)return G(a,t,n,r);let s={context:t,event:n},l=o||"string"==typeof e?void 0:"params"in e?"function"==typeof e.params?e.params({context:t,event:n}):e.params:void 0;return"check"in a?a.check(r,s,a):a(s,l)}let K=e=>"atomic"===e.type||"final"===e.type;function X(e){return Object.values(e.states).filter(e=>"history"!==e.type)}function Z(e,t){let n=[];if(t===e)return n;let r=e.parent;for(;r&&r!==t;)n.push(r),r=r.parent;return n}function Q(e){let t=new Set(e),n=J(t);for(let e of t)if("compound"!==e.type||n.get(e)&&n.get(e).length){if("parallel"===e.type){for(let n of X(e))if("history"!==n.type&&!t.has(n))for(let e of ec(n))t.add(e)}}
212else ec(e).forEach(e=>t.add(e));for(let e of t){let n=e.parent;for(;n;)t.add(n),n=n.parent}return t}function J(e){let t=new Map;for(let n of e)t.has(n)||t.set(n,[]),n.parent&&(t.has(n.parent)||t.set(n.parent,[]),t.get(n.parent).push(n));return t}function ee(e,t){return function e(t,n){let r=n.get(t);if(!r)return{};if("compound"===t.type){let e=r[0];if(!e)return{};if(K(e))return e.key}let i={};for(let t of r)i[t.key]=e(t,n);return i}(e,J(Q(t)))}function et(e,t){return"compound"===t.type?X(t).some(t=>"final"===t.type&&e.has(t)):"parallel"===t.type?X(t).every(t=>et(e,t)):"final"===t.type}let en=e=>"#"===e[0];function er(e,t){return e.transitions.get(t)||[...e.transitions.keys()].filter(e=>{if("*"===e)return!0;if(!e.endsWith(".*"))return!1;let n=e.split("."),r=t.split(".");for(let e=0;e<n.length;e++){let t=n[e],i=r[e];if("*"===t)return e===n.length-1;if(t!==i)return!1}return!0}).sort((e,t)=>t.length-e.length).flatMap(t=>e.transitions.get(t))}function ei(e){let t=e.config.after;return t?Object.keys(t).flatMap(n=>{let r=t[n],i=Number.isNaN(+n)?n:+n,o=(t=>{var n;let r=(n=e.id,{type:`xstate.after.${t}.${n}`}),i=r.type;return e.entry.push(eL(r,{id:i,delay:t})),e.exit.push(M(i)),i})(i);return y("string"==typeof r?{target:r}:r).map(e=>({...e,event:o,delay:i}))}).map(t=>{let{delay:n}=t;return{...eo(e,t.event,t),delay:n}}):[]}function eo(e,t,n){let r=x(n.target),o=n.reenter??!1,a=function(e,t){if(void 0!==t)return t.map(t=>{if("string"!=typeof t)return t;if(en(t))return e.machine.getStateNodeById(t);let n=t[0]===i;if(n&&!e.parent)return eh(e,t.slice(1));let r=n?e.key+t:t;if(e.parent)try{return eh(e.parent,r)}catch(t){throw Error(`Invalid transition definition for state node '${e.id}':
213${t.message}`)}throw Error(`Invalid target: "${t}" is not a valid target from the root node. Did you mean ".${t}"?`)})}(e,r),s={...n,actions:y(n.actions),guard:n.guard,target:a,source:e,reenter
213:o,eventType:t,toJSON:()=>({...s,source:`#${e.id}`,target:a?a.map(e=>`#${e.id}`):void 0})};return s}function ea(e){let t=new Map;if(e.config.on)for(let n of Object.keys(e.config.on)){if(n===o)throw Error('Null events ("") cannot be specified as a transition key. Use `always: { ... }` instead.');let r=e.config.on[n];t.set(n,w(r).map(t=>eo(e,n,t)))}if(e.config.onDone){let n=`xstate.done.state.${e.id}`;t.set(n,w(e.config.onDone).map(t=>eo(e,n,t)))}for(let n of e.invoke){if(n.onDone){let r=`xstate.done.actor.${n.id}`;t.set(r,w(n.onDone).map(t=>eo(e,r,t)))}if(n.onError){let r=`xstate.error.actor.${n.id}`;t.set(r,w(n.onError).map(t=>eo(e,r,t)))}if(n.onSnapshot){let r=`xstate.snapshot.${n.id}`;t.set(r,w(n.onSnapshot).map(t=>eo(e,r,t)))}}for(let n of e.after){let e=t.get(n.eventType);e||(e=[],t.set(n.eventType,e)),e.push(n)}return t}function es(e,t){let n="string"==typeof t?e.states[t]:t?e.states[t.target]:void 0;if(!n&&t)throw Error(`Initial state node "${t}" not found on parent state node #${e.id}`);let r={source:e,actions:t&&"string"!=typeof t?y(t.actions):[],eventType:null,reenter:!1,target:n?[n]:[],toJSON:()=>({...r,source:`#${e.id}`,target:n?[`#${n.id}`]:[]})};return r}function el(e){let t=x(e.config.target);return t?{target:t.map(t=>"string"==typeof t?eh(e.parent,t):t)}:e.parent.initial}function eu(e){return"history"===e.type}function ec(e){let t=ed(e);for(let n of t)for(let r of Z(n,e))t.add(r);return t}function ed(e){let t=new Set;return!function e(n){if(!t.has(n)){if(t.add(n),"compound"===n.type)e(n.initial.target[0]);else if("parallel"===n.type)for(let t of X(n))e(t)}}(e),t}function ef(e,t){if(en(t))return e.machine.getStateNodeById(t);if(!e.states)throw Error(`Unable to retrieve child state '${t}' from '${e.id}'; no child states exist.`);let n=e.states[t];if(!n)throw Error(`Child state '${t}' does not exist on '${e.id}'`);return n}function eh(e,t){if("string"==typeof t&&en(t))try{return e.machine.getStateNodeById(t)}catch{}let n=p(t).slice(),r=e;for(;n.length;){let e=n.shift();if(!e.length)break;r=ef(r,e)}return r}function ep(e,t){if("string"==typeof t){let n=e.states[t];if(!n)throw Error(`State '${t}' does not exist on '${e.id}'`);return[e,n]}let n=Object.keys(t),r=n.map(t=>ef(e,t)).filter(Boolean);return[e.machine.root,e].concat(r,n.reduce((n,r)=>{let i=ef(e,r);if(!i)return n;let o=ep(i,t[r]);return n.concat(o)},[]))}function eg(e,t){let n=e;for(;n.parent&&n.parent!==t;)n=n.parent;return n.parent===t}function em(e,t,n){let r=new Set;for(let i of e){let e=!1,o=new Set;for(let a of r)if(function(e,t){let n=new Set(e),r=new Set(t);for(let e of n)if(r.has(e))return!0;for(let e of r)if(n.has(e))return!0;return!1}(eb([i],t,n),eb([a],t,n)))if(eg(i.source,a.source))o.add(a);else{e=!0;break}if(!e){for(let e of o)r.delete(e);r.add(i)}}return Array.from(r)}function ey(e,t){if(!e.target)return[];let n=new Set;for(let r of e.target)if(eu(r))if(t[r.id])for(let e of t[r.id])n.add(e);else for(let e of ey(el(r),t))n.add(e);else n.add(r);return[...n]}function ev(e,t){let n=ey(e,t);if(!n)return;if(!e.reenter&&n.every(t=>t===e.source||eg(t,e.source)))return e.source;let r=function(e){let[t,...n]=e;for(let e of Z(t,void 0))if(n.every(t=>eg(t,e)))return e}(n.concat(e.source));return r||(e.reenter?void 0:e.source.machine.root)}function eb(e,t,n){let r=new Set;for(let i of e)if(i.target?.length){let e=ev(i,n);for(let n of(i.reenter&&i.source===e&&r.add(e),t))eg(n,e)&&r.add(n)}return[...r]}function ew(e,t,n,r,i,o){if(!e.length)return t;let a=new Set(t._nodes),s=t.historyValue,l=em(e,a,s),c=t;i||([c,s]=function(e,t,n,r,i,o,a,s){let l,u=e,c=eb(r,i,o);for(let e of(c.sort((e,t)=>t.order-e.order),c))for(let t of function(e){return Object.keys(e.states).map(t=>e.states[t]).filter(e=>"history"===e.type)}(e)){let n;n="deep"===t.history?t=>K(t)&&eg(t,e):t=>t.parent===e,(l??={...o})[t.id]=Array.from(i).filter(n)}for(let e of c)u=eE(u,t,n,[...e.exit,...e.invoke.map(e=>z(e.id))],a,void 0),i.delete(e);return[u,l||o]}(c,r,n,l,a,s,o,n.actionExecutor)),c=function(e,t,n,r,i,o,a,s){let l=e,c=new Set,d=new Set;(function(e,t,n,r){for(let i of e){let e=ev(i,t);for(let o of i.target||[])!eu(o)&&(i.source!==o||i.source!==e||i.reenter)&&(r.add(o),n.add(o)),ex(o,t,n,r);for(let o of ey(i,t)){let a=Z(o,e);e?.type==="parallel"&&a.push(e),ek(r,t,n,a,!i.source.parent&&i.reenter?void 0:e)}}})(r,a,d,c),s&&d.add(e.machine.root);let f=new Set;for(let e of[...c].sort((e,t)=>
213e.order-t.order)){i.add(e);let r=[];for(let t of(r.push(...e.entry),e.invoke))r.push(L(t.src,{...t,syncSnapshot:!!t.onSnapshot}));if(d.has(e)){let t=e.initial.actions;r.push(...t)}if(l=eE(l,t,n,r,o,e.invoke.map(e=>e.id)),"final"===e.type){let r=e.parent,a=r?.type==="parallel"?r:r?.parent,s=a||e;for(r?.type==="compound"&&o.push(u(r.id,void 0!==e.output?v(e.output,l.context,t,n.self):void 0));a?.type==="parallel"&&!f.has(a)&&et(i,a);)f.add(a),o.push(u(a.id)),s=a,a=a.parent;if(a)continue;l=eP(l,{status:"done",output:function(e,t,n,r,i){if(void 0===r.output)return;let o=u(i.id,void 0!==i.output&&i.parent?v(i.output,e.context,t,n.self):void 0);return v(r.output,e.context,o,n.self)}(l,t,n,l.machine.root,s)})}}return l}(c=eE(c,r,n,l.flatMap(e=>e.actions),o,void 0),r,n,l,a,o,s,i);let d=[...a];"done"===c.status&&(c=eE(c,r,n,d.sort((e,t)=>t.order-e.order).flatMap(e=>e.exit),o,void 0));try{if(s===t.historyValue&&function(e,t){if(e.length!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}(t._nodes,a))return c;return eP(c,{_nodes:d,historyValue:s})}catch(e){throw e}}function ex(e,t,n,r){var i,o,a,s;if(eu(e))if(t[e.id]){let a=t[e.id];for(let e of a)r.add(e),ex(e,t,n,r);for(let s of a){i=s,o=e.parent,ek(r,t,n,Z(i,o))}}else{let i=el(e);for(let o of i.target)r.add(o),i===e.parent?.initial&&n.add(e.parent),ex(o,t,n,r);for(let o of i.target){a=o,s=e.parent,ek(r,t,n,Z(a,s))}}else if("compound"===e.type){let[i]=e.initial.target;eu(i)||(r.add(i),n.add(i)),ex(i,t,n,r),ek(r,t,n,Z(i,e))}else if("parallel"===e.type)for(let i of X(e).filter(e=>!eu(e)))[...r].some(e=>eg(e,i))||(eu(i)||(r.add(i),n.add(i)),ex(i,t,n,r))}function ek(e,t,n,r,i){for(let o of r)if((!i||eg(o,i))&&e.add(o),"parallel"===o.type)for(let r of X(o).filter(e=>!eu(e)))[...e].some(e=>eg(e,r))||(e.add(r),ex(r,t,n,e))}function eE(e,t,n,r,i,o){let a=o?[]:void 0,s=function e(t,n,r,i,o,a){let{machine:s}=t,l=t;for(let t of i){var u;let i="function"==typeof t,c=i?t:(u="string"==typeof t?t:t.type,s.implementations.actions[u]),d={context:l.context,event:n,self:r.self,system:r.system},f=i||"string"==typeof t?void 0:"params"in t?"function"==typeof t.params?t.params({context:l.context,event:n}):t.params:void 0;if(!c||!("resolve"in c)){r.actionExecutor({type:"string"==typeof t?t:"object"==typeof t?t.type:t.name||"(anonymous)",info:d,params:f,exec:c});continue}let[h,p,g]=c.resolve(r,l,d,f,c,o);l=h,"retryResolve"in c&&a?.push([c,p]),"execute"in c&&r.actionExecutor({type:c.type,info:d,params:p,exec:c.execute.bind(null,r,p)}),g&&(l=e(l,n,r,g,o,a))}return l}(e,t,n,r,{internalQueue:i,deferredActorIds:o},a);return a?.forEach(([e,t])=>{e.retryResolve(n,s,t)}),s}function e_(e,t,n,r){let i=e,o=[];function s(e,t,r){n.system._sendInspectionEvent({type:"@xstate.microstep",actorRef:n.self,event:t,snapshot:e,_transitions:r}),o.push(e)}if(t.type===l)return s(i=eP(eS(i,t,n),{status:"stopped"}),t,[]),{snapshot:i,microstates:o};let u=t;if(u.type!==a){let t=u,a=t.type.startsWith("xstate.error.actor"),l=eA(t,i);if(a&&!l.length)return s(i=eP(e,{status:"error",error:t.error}),t,[]),{snapshot:i,microstates:o};s(i=ew(l,e,n,u,!1,r),t,l)}let c=!0;for(;"active"===i.status;){let e=c?function(e,t){let n=new Set;for(let r of e._nodes.filter(K))r:for(let i of[r].concat(Z(r,void 0)))if(i.always){for(let r of i.always)if(void 0===r.guard||G(r.guard,e.context,t,e)){n.add(r);break r}}return em(Array.from(n),new Set(e._nodes),e.historyValue)}(i,u):[],t=e.length?i:void 0;if(!e.length){if(!r.length)break;e=eA(u=r.shift(),i)}c=(i=ew(e,i,n,u,!1,r))!==t,s(i,u,e)}return"active"!==i.status&&eS(i,u,n),{snapshot:i,microstates:o}}function eS(e,t,n){return eE(e,t,n,Object.values(e.children).map(e=>z(e)),[],void 0)}function eA(e,t){return t.machine.getTransitionData(t,e)}function eT(e,t){let n=Q(ep(e,t));return ee(e,[...n])}let eC=function(e){return function e(t,n){let r=g(t),i=g(n);return"string"==typeof i?"string"==typeof r&&i===r:"string"==typeof r?r in i:Object.keys(r).every(t=>t in i&&e(r[t],i[t]))}(e,this.value)},eO=function(e){return this.tags.has(e)},ej=function(e){let t=this.machine.getTransitionData(this,e);return!!t?.length&&t.some(e=>void 0!==e.target||e.actions.length)},eD=function(){let{_nodes:e,tags:t,machine:n,getMeta:r,toJSON:i,can:o,hasTag:a,matches:s,...l}=this;return{...l,tags:Array.from(t)}},eR=function(){return this._nodes.reduce((e,t)=>
213(void 0!==t.meta&&(e[t.id]=t.meta),e),{})};function eI(e,t){return{status:e.status,output:e.output,error:e.error,machine:t,context:e.context,_nodes:e._nodes,value:ee(t.root,e._nodes),tags:new Set(e._nodes.flatMap(e=>e.tags)),children:e.children,historyValue:e.historyValue||{},matches:eC,hasTag:eO,can:ej,getMeta:eR,toJSON:eD}}function eP(e,t={}){return eI({...e,...t},e.machine)}function eM(e,t){let{_nodes:n,tags:r,machine:i,children:o,context:a,can:s,hasTag:l,matches:u,getMeta:c,toJSON:d,...f}=e,h={};for(let e in o){let n=o[e];h[e]={snapshot:n.getPersistedSnapshot(t),src:n.src,systemId:n._systemId,syncSnapshot:n._syncSnapshot}}return{...f,context:function e(t){let n;for(let r in t){let i=t[r];if(i&&"object"==typeof i)if("sessionId"in i&&"send"in i&&"ref"in i)(n??=Array.isArray(t)?t.slice():{...t})[r]={xstate$$type:C,id:i.id};else{let o=e(i);o!==i&&((n??=Array.isArray(t)?t.slice():{...t})[r]=o)}}return n??t}(a),children:h,historyValue:function(e){if("object"!=typeof e||null===e)return{};let t={};for(let n in e){let r=e[n];Array.isArray(r)&&(t[n]=r.map(e=>({id:e.id})))}return t}(f.historyValue)}}function eN(e,t,n,r,{event:i,id:o,delay:a},{internalQueue:s}){let l,u=t.machine.implementations.delays;if("string"==typeof i)throw Error(`Only event objects may be used with raise; use raise({ type: "${i}" }) instead`);let c="function"==typeof i?i(n,r):i;if("string"==typeof a){let e=u&&u[a];l="function"==typeof e?e(n,r):e}else l="function"==typeof a?a(n,r):a;return"number"!=typeof l&&s.push(c),[t,{event:c,id:o,delay:l},void 0]}function e$(e,t){let{event:n,delay:r,id:i}=t;if("number"==typeof r)return void e.defer(()=>{let t=e.self;e.system.scheduler.schedule(t,t,n,r,i)})}function eL(e,t){function n(e,t){}return n.type="xstate.raise",n.event=e,n.id=t?.id,n.delay=t?.delay,n.resolve=eN,n.execute=e$,n}},89027:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(18659),i=n(64760),o=n(71260);function a(e,t){(0,o.A)(2,arguments);var n=(0,r.A)(t);return(0,i.A)(e,36e5*n)}},89149:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(47528),i=n(71260),o=n(18659),a=n(29449);function s(e,t){(0,i.A)(1,arguments);var n,s,l,u,c,d,f,h,p=(0,a.q)(),g=(0,o.A)(null!=(n=null!=(s=null!=(l=null!=(u=null==t?void 0:t.weekStartsOn)?u:null==t||null==(c=t.locale)||null==(d=c.options)?void 0:d.weekStartsOn)?l:p.weekStartsOn)?s:null==(f=p.locale)||null==(h=f.options)?void 0:h.weekStartsOn)?n:0);if(!(g>=0&&g<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=(0,r.A)(e),y=m.getUTCDay();return m.setUTCDate(m.getUTCDate()-(7*(y<g)+y-g)),m.setUTCHours(0,0,0,0),m}},89931:(e,t,n)=>{var r=n(45430);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},89973:(e,t,n)=>{"use strict";n.d(t,{l:()=>r});var r="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},90046:(e,t,n)=>{"use strict";n.d(t,{n:()=>a});var r=n(12884),i=n(27778),o=n(94126);function a(e,t){return(0,i.N)(function(n,i){var a=null,s=0,l=!1,u=function(){return l&&!a&&i.complete()};n.subscribe((0,o._)(i,function(n){null==a||a.unsubscribe();var l=0,c=s++;(0,r.Tg)(e(n,c)).subscribe(a=(0,o._)(i,function(e){return i.next(t?t(n,e,c,l++):e)},function(){a=null,u()}))},function(){l=!0,u()}))})}},90279:(e,t,n)=>{"use strict";n.d(t,{AD:()=>l,SB:()=>a});var r=n(22324),i=n(87086);let o=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function a(e,t=!1){let{host:n,path:r,pass:i,port:o,projectId:s,protocol:l,publicKey:u}=e;return`${l}://${u}${t&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r?`${r}/`:r}${s}`}function s(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function l(e){let t="string"==typeof e?function(e){let t=o.exec(e);if(!t)return void(0,i.pq)(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});let[n,r,a="",l="",u="",c=""]=t.slice(1),d="",f=c,h=f.split("/");if(h.length>1&&(d=h.slice(0,-1).join("/"),f=h.pop()),f){let e=f.match(/^\d+/);e&&(f=e[0])}return s({host:l,pass:a,path:d,projectId:f,port:u,protocol:n,publicKey:r})}(e):s(e);if(t&&function(e){if(!r.T)return!0;let{port:t,projectId:n,protocol:o}=e;return!["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(i.vF.error(`Invalid Sentry Dsn: ${t} missing`),!0))&&(n.match(/^\d+$/)?"http"!==o&&"https"!==o?(i.vF.error(`Invalid Sentry Dsn: Invalid protocol ${o}`),!1):!(t&&isNaN(parseInt(t,10)))||(i.vF.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):(i.vF.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1))}(t))return t}}
213,90449:(e,t,n)=>{"use strict";n.d(t,{S:()=>i});var r=n(94126);function i(e,t,n,i,o){return function(a,s){var l=n,u=t,c=0;a.subscribe((0,r._)(s,function(t){var n=c++;u=l?e(u,t,n):(l=!0,t),i&&s.next(u)},o&&function(){l&&s.next(u),s.complete()}))}}},90648:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t}},90926:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(39292),i=n(64241),o=n(71260),a=n(18659),s=n(49409);function l(e,t){if((0,o.A)(2,arguments),!t||"object"!==(0,r.A)(t))return new Date(NaN);var n=t.years?(0,a.A)(t.years):0,l=t.months?(0,a.A)(t.months):0,u=t.weeks?(0,a.A)(t.weeks):0,c=t.days?(0,a.A)(t.days):0,d=t.hours?(0,a.A)(t.hours):0,f=t.minutes?(0,a.A)(t.minutes):0,h=t.seconds?(0,a.A)(t.seconds):0;return new Date((function(e,t){(0,o.A)(2,arguments);var n=(0,a.A)(t);return(0,i.A)(e,-n)})(function(e,t){(0,o.A)(2,arguments);var n=(0,a.A)(t);return(0,s.A)(e,-n)}(e,l+12*n),c+7*u).getTime()-1e3*(h+60*(f+60*d)))}},90965:(e,t,n)=>{"use strict";n.d(t,{A:()=>eE,Fo:()=>ed,RV:()=>b,Zi:()=>et,f7:()=>X,o$:()=>e_,rL:()=>w});var r=n(88440),i=n.n(r),o=n(65081),a=n.n(o),s=n(49354),l=n.n(s),u=n(82203),c=n(19218),d=n(24268),f=n(67006),h=n(58467),p=n(1434);function g(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(e,t,n){var r;return r=function(e,t){if("object"!==m(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==m(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"===m(r)?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=(0,u.createContext)(null),b=()=>{var e=(0,u.useContext)(v);if(!e)throw Error("The `useSlateStatic` hook must be used inside the <Slate> component's context.");return e},w=f.wE;function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var E=function(){},_=f.qx?u.useLayoutEffect:u.useEffect,S=["node"];function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var T={subtree:!0,childList:!0,characterData:!0},C=f.Ni?e=>{var{node:t}=e,n=g(e,S);if(!f.Ni)return null;var r=b(),i=function(){var e=(0,u.useRef)(!1);return(0,u.useEffect)(()=>(e.current=!0,()=>{e.current=!1}),[]),e.current}(),[o]=(0,u.useState)(()=>(function(e){var{editor:t,scheduleOnDOMSelectionChange:n,onDOMSelectionChange:r}=e,i=!1,o=null,a=null,s=null,l=0,u=!1,c=()=>{var e=f.hK.get(t);if(f.hK.delete(t),e){var{selection:n}=t,r=(0,f.zh)(t,e);!r||n&&d.Q6.equals(r,n)||d.gB.select(t,r)}},h=()=>{if(a&&(clearTimeout(a),a=null),s&&(clearTimeout(s),s=null),!v()&&!y())return void c();i||(i=!0,setTimeout(()=>i=!1)),y()&&(i="action");var e=t.selection&&d.KE.rangeRef(t,t.selection,{affinity:"forward"});f.NH.set(t,t.marks),E("flush",f.FT.get(t),f.tv.get(t));for(var o=v();l=null==(h=f.tv.get(t))?void 0:h[0];){var l,h,p,g=f.fe.get(t);void 0!==g&&(f.fe.delete(t),t.marks=g),g&&!1===u&&(u=null);var m=(0,f.BA)(l);t.selection&&d.Q6.equals(t.selection,m)||d.gB.select(t,m),l.diff.text?d.KE.insertText(t,l.diff.text):d.KE.deleteFragment(t),f.tv.set(t,null==(p=f.tv.get(t))?void 0:p.filter(e=>{var{id:t}=e;return t!==l.id})),(0,f.sh)(t,l)||(o=!1,f.FT.delete(t),f.NH.delete(t),i="action",f.hK.delete(t),n.cancel(),r.cancel(),null==e||e.unref())}var b=null==e?void 0:e.unref();if(!b||f.hK.get(t)||t.selection&&d.Q6.equals(b,t.selection)||d.gB.select(t,b),y())return void(()=>{var e=f.FT.get(t);if(f.FT.delete(t),e){if(e.at){var n=d.bR.isPoint(e.at)?(0,f.CN)(t,e.at):(0,f.zh)(t,e.at);if(!n)return;var r=d.KE.range(t,n);t.selection&&d.Q6.equals(t.selection,r)||d.gB.select(t,n)}e.run()}})();o&&n(),n.flush(),r.flush(),c();var w=f.NH.get(t);f.NH.delete(t),void 0!==w&&(t.marks=w,t.onChange())},p=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=f.PH.get(t);if(n){if(v()||e){n.style.display="none";return}n.style.removeProperty("display")}},g=(e,n)=>{var r,i=null!=(r=f.tv.get(t))?r:[];f.tv.set(t,i);var o=d.bP.leaf(t,e),a=i.findIndex(t=>d.wA.equals(t.path,e));if(a<0){(0,f.y1)(o.text,n)&&i.push({path:e,diff:n,id:l++}),p();return}var s=(0,f.eX)(o.text,i[a].diff,n);if(!s){i.splice(a,1),p();return}i[a]=k(k({},i[a]),{},{diff:s})},m=function(e){var{at:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u=!1,f.hK.delete(t),n.cancel(),r.cancel(),y()&&h(),f.FT.set(t,{at:i,run:e}),s=setTimeout(h)},y=()=>!!f.FT.get(t),v=()=>{var e;return!!(null!=(e=f.tv.get(t))&&e.length)},b=e=>{f.hK.set(t,e),a&&(clearTimeout(a),a=null);var{selection:n}=t;if(e){var r=!n||!d.wA.equals(n.anchor.path,e.anchor.path),i=!n||!d.wA.equals(n.anchor.path.slice(0,-1),e.anchor.path.slice(0,-1));(r&&u||i)&&(u=!1),(r||v())&&(a=setTimeout(h,200))}},x=()=>
213{y()||(s=setTimeout(h))};return{flush:h,scheduleFlush:x,hasPendingDiffs:v,hasPendingAction:y,hasPendingChanges:()=>y()||v(),isFlushing:()=>i,handleUserSelect:b,handleCompositionEnd:e=>{o&&clearTimeout(o),o=setTimeout(()=>{f.BG.set(t,!1),h()},25)},handleCompositionStart:e=>{f.BG.set(t,!0),o&&(clearTimeout(o),o=null)},handleDOMBeforeInput:e=>{if(a&&(clearTimeout(a),a=null),!f.eA.get(t)){var{inputType:n}=e,r=null,i=e.dataTransfer||e.data||void 0;!1!==u&&"insertText"!==n&&"insertCompositionText"!==n&&(u=!1);var[o]=e.getTargetRanges();o&&(r=w.toSlateRange(t,o,{exactMatch:!1,suppressThrow:!0}));var s=w.getWindow(t).getSelection();if(!r&&s&&(o=s,r=w.toSlateRange(t,s,{exactMatch:!1,suppressThrow:!0})),r=null!=(I=r)?I:t.selection){var l=!0;if(n.startsWith("delete")){if(d.Q6.isExpanded(r)){var[c,h]=d.Q6.edges(r);if(d.bP.leaf(t,c.path).text.length===c.offset&&0===h.offset){var p=d.KE.next(t,{at:c.path,match:d.EY.isText});p&&d.wA.equals(p[1],h.path)&&(r={anchor:h,focus:h})}}var y=n.endsWith("Backward")?"backward":"forward",[v,E]=d.Q6.edges(r),[_,S]=d.KE.leaf(t,v.path),A={text:"",start:v.offset,end:E.offset},T=f.tv.get(t),C=null==T?void 0:T.find(e=>d.wA.equals(e.path,S)),O=C?[C.diff,A]:[A];if(0===(0,f.dM)(_.text,...O).length&&(l=!1),d.Q6.isExpanded(r)){if(l&&d.wA.equals(r.anchor.path,r.focus.path)){var j={path:r.anchor.path,offset:v.offset};return b(d.KE.range(t,j,j)),g(r.anchor.path,{text:"",end:E.offset,start:v.offset})}return m(()=>d.KE.deleteFragment(t,{direction:y}),{at:r})}}switch(n){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":return m(()=>d.KE.deleteFragment(t),{at:r});case"deleteContent":case"deleteContentForward":var{anchor:D}=r;if(l&&d.Q6.isCollapsed(r)){var R=d.bP.leaf(t,D.path);if(D.offset<R.text.length)return g(D.path,{text:"",start:D.offset,end:D.offset+1})}return m(()=>d.KE.deleteForward(t),{at:r});case"deleteContentBackward":var I,P,{anchor:M}=r,N=(0,f.T4)(o)?o.isCollapsed:!!(null!=(P=o)&&P.collapsed);if(l&&N&&d.Q6.isCollapsed(r)&&M.offset>0)return g(M.path,{text:"",start:M.offset-1,end:M.offset});return m(()=>d.KE.deleteBackward(t),{at:r});case"deleteEntireSoftLine":return m(()=>{d.KE.deleteBackward(t,{unit:"line"}),d.KE.deleteForward(t,{unit:"line"})},{at:r});case"deleteHardLineBackward":return m(()=>d.KE.deleteBackward(t,{unit:"block"}),{at:r});case"deleteSoftLineBackward":return m(()=>d.KE.deleteBackward(t,{unit:"line"}),{at:r});case"deleteHardLineForward":return m(()=>d.KE.deleteForward(t,{unit:"block"}),{at:r});case"deleteSoftLineForward":return m(()=>d.KE.deleteForward(t,{unit:"line"}),{at:r});case"deleteWordBackward":return m(()=>d.KE.deleteBackward(t,{unit:"word"}),{at:r});
213case"deleteWordForward":return m(()=>d.KE.deleteForward(t,{unit:"word"}),{at:r});case"insertLineBreak":return m(()=>d.KE.insertSoftBreak(t),{at:r});case"insertParagraph":return m(()=>d.KE.insertBreak(t),{at:r});case"insertCompositionText":case"deleteCompositionText":case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if((null==i?void 0:i.constructor.name)==="DataTransfer")return m(()=>w.insertData(t,i),{at:r});var $=null!=i?i:"";if(f.fe.get(t)&&($=$.replace("\uFEFF","")),"insertText"===n&&/.*\n.*\n$/.test($)&&($=$.slice(0,-1)),$.includes("\n"))return m(()=>{var e=$.split("\n");e.forEach((n,r)=>{n&&d.KE.insertText(t,n),r!==e.length-1&&d.KE.insertSoftBreak(t)})},{at:r});if(d.wA.equals(r.anchor.path,r.focus.path)){var[L,F]=d.Q6.edges(r),U={start:L.offset,end:F.offset,text:$};if($&&u&&"insertCompositionText"===n){var z=u.start+u.text.search(/\S|$/);U.start+U.text.search(/\S|$/)===z+1&&U.end===u.start+u.text.length?(U.start-=1,u=null,x()):u=!1}else u="insertText"===n&&(null===u?U:!!(u&&d.Q6.isCollapsed(r))&&u.end+u.text.length===L.offset&&k(k({},u),{},{text:u.text+$}));if(l)return void g(L.path,U)}return m(()=>d.KE.insertText(t,$),{at:r})}}}},handleKeyDown:e=>{v()||(p(!0),setTimeout(p))},handleDomMutations:e=>{if(!(v()||y())&&e.some(n=>(0,f.Yc)(t,n,e))){var n;null==(n=f.Bo.get(t))||n()}},handleInput:()=>{(y()||!v())&&h()}}})(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({editor:r},n)));return!function(e,t,n){var[r]=(0,u.useState)(()=>new MutationObserver(t));_(()=>{r.takeRecords()}),(0,u.useEffect)(()=>{if(!e.current)throw Error("Failed to attach MutationObserver, `node` is undefined");return r.observe(e.current,n),()=>r.disconnect()},[r,e,n])}(t,o.handleDomMutations,T),f.P5.set(r,o.scheduleFlush),i&&o.flush(),o}:()=>null;function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var j=e=>{var{isLast:t,leaf:n,parent:r,text:i}=e,o=b(),a=w.findPath(o,i),s=d.wA.parent(a),l=!!n[f.nW];return o.isVoid(r)?u.createElement(I,{length:d.bP.string(r).length}):""!==n.text||r.children[r.children.length-1]!==i||o.isInline(r)||""!==d.KE.string(o,s)?""===n.text?u.createElement(I,{isMarkPlaceholder:l}):t&&"\n"===n.text.slice(-1)?u.createElement(D,{isTrailing:!0,text:n.text}):u.createElement(D,{text:n.text}):u.createElement(I,{isLineBreak:!0,isMarkPlaceholder:l})},D=e=>{var{text:t,isTrailing:n=!1}=e,r=(0,u.useRef)(null),i=()=>"".concat(null!=t?t:"").concat(n?"\n":""),[o]=(0,u.useState)(i);return _(()=>{var e=i();r.current&&r.current.textContent!==e&&(r.current.textContent=e)}),u.createElement(R,{ref:r},o)},R=(0,u.memo)((0,u.forwardRef)((e,t)=>u.createElement("span",{"data-slate-string":!0,ref:t},e.children))),I=e=>{var{length:t=0,isLineBreak:n=!1,isMarkPlaceholder:r=!1}=e,i={"data-slate-zero-width":n?"n":"z","data-slate-length":t};return r&&(i["data-slate-mark-placeholder"]=!0),u.createElement("span",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},i),(f.Ni||f.pz)&&n?null:"\uFEFF",n?u.createElement("br",null):null)};function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
213t%2?P(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var N=300*!!f.Ni;function $(e){e.current&&(clearTimeout(e.current),e.current=null)}var L=u.memo(e=>{var{leaf:t,isLast:n,text:r,parent:i,renderPlaceholder:o,renderLeaf:a=e=>u.createElement(F,M({},e)),leafPosition:s}=e,l=b(),c=(0,u.useRef)(null),d=(0,u.useRef)(null),[p,g]=(0,u.useState)(!1),m=(0,u.useRef)(null),y=(0,u.useCallback)(e=>{if(!function(e,t){e.current&&(e.current.disconnect(),t&&(e.current=null))}(c,null==e),null==e){var n;f.PH.delete(l),null==(n=t.onPlaceholderResize)||n.call(t,null)}else f.PH.set(l,e),c.current||(c.current=new(window.ResizeObserver||h.tb)(()=>{var n;null==(n=t.onPlaceholderResize)||n.call(t,e)})),c.current.observe(e),d.current=e},[d,t,l]),v=u.createElement(j,{isLast:n,leaf:t,parent:i,text:r}),w=!!t[f.Rx];if((0,u.useEffect)(()=>(w?m.current||(m.current=setTimeout(()=>{g(!0),m.current=null},N)):($(m),g(!1)),()=>$(m)),[w,g]),w&&p){var x={children:t.placeholder,attributes:{"data-slate-placeholder":!0,style:{position:"absolute",top:0,pointerEvents:"none",width:"100%",maxWidth:"100%",display:"block",opacity:"0.333",userSelect:"none",textDecoration:"none",WebkitUserModify:f._y?"inherit":void 0},contentEditable:!1,ref:y}};v=u.createElement(u.Fragment,null,o(x),v)}return a({attributes:{"data-slate-leaf":!0},children:v,leaf:t,text:r,leafPosition:s})},(e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&d.EY.equals(t.leaf,e.leaf)&&t.leaf[f.Rx]===e.leaf[f.Rx]),F=e=>{var{attributes:t,children:n}=e;return u.createElement("span",M({},t),n)};function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var B=u.memo(e=>{for(var{decorations:t,isLast:n,parent:r,renderPlaceholder:i,renderLeaf:o,renderText:a=e=>u.createElement(q,z({},e)),text:s}=e,l=b(),c=(0,u.useRef)(null),h=d.EY.decorations(s,t),p=w.findKey(l,s),g=[],m=0;m<h.length;m++){var{leaf:y,position:v}=h[m];g.push(u.createElement(L,{isLast:n&&m===h.length-1,key:"".concat(p.id,"-").concat(m),renderPlaceholder:i,leaf:y,leafPosition:v,text:s,parent:r,renderLeaf:o}))}var x=(0,u.useCallback)(e=>{var t=f.b0.get(l);e?(null==t||t.set(p,e),f._8.set(s,e),f.wc.set(e,s)):(null==t||t.delete(p),f._8.delete(s),c.current&&f.wc.delete(c.current)),c.current=e},[c,l,p,s]);return a({text:s,children:g,attributes:{"data-slate-node":"text",ref:x}})},(e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderText===e.renderText&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&(0,f.xd)(t.decorations,e.decorations)),q=e=>{var{attributes:t,children:n}=e;return u.createElement("span",z({},t),n)};function V(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function H(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?V(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var W=u.memo(e=>{var{decorations:t,element:n,renderElement:r=e=>u.createElement(Y,H({},e)),renderPlaceholder:o,renderLeaf:a,renderText:s,selection:l}=e,c=b(),h=J(),p=c.isInline(n),g=w.findKey(c,n),m=(0,u.useCallback)(e=>{var t=f.b0.get(c);e?(null==t||t.set(g,e),f._8.set(n,e),f.wc.set(e,n)):(null==t||t.delete(g),f._8.delete(n))},[c,g,n]),y=Z({decorations:t,node:n,renderElement:r,renderPlaceholder:o,renderLeaf:a,renderText:s,selection:l}),v={"data-slate-node":"element",ref:m};if(p&&(v["data-slate-inline"]=!0),!p&&d.KE.hasInlines(c,n)){var x=d.bP.string(n),k=i()(x);"rtl"===k&&(v.dir=k)}if(d.KE.isVoid(c,n)){v["data-slate-void"]=!0,!h&&p&&(v.contentEditable=!1);var[[E]]=d.bP.texts(n);
213y=u.createElement(p?"span":"div",{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},u.createElement(B,{renderPlaceholder:o,decorations:[],isLast:!1,parent:n,text:E})),f.MB.set(E,0),f.WQ.set(E,n)}return r({attributes:v,children:y,element:n})},(e,t)=>e.element===t.element&&e.renderElement===t.renderElement&&e.renderText===t.renderText&&e.renderLeaf===t.renderLeaf&&e.renderPlaceholder===t.renderPlaceholder&&(0,f.wC)(e.decorations,t.decorations)&&(e.selection===t.selection||!!e.selection&&!!t.selection&&d.Q6.equals(e.selection,t.selection))),Y=e=>{var{attributes:t,children:n,element:r}=e,i=b().isInline(r)?"span":"div";return u.createElement(i,H(H({},t),{},{style:{position:"relative"}}),n)},G=(0,u.createContext)(()=>[]),K=(0,u.createContext)(!1),X=()=>(0,u.useContext)(K),Z=e=>{var{decorations:t,node:n,renderElement:r,renderPlaceholder:i,renderText:o,renderLeaf:a,selection:s}=e,l=(0,u.useContext)(G),c=b();f.eA.set(c,!1);for(var h=w.findPath(c,n),p=[],g=d.Hg.isElement(n)&&!c.isInline(n)&&d.KE.hasInlines(c,n),m=0;m<n.children.length;m++){var y=h.concat(m),v=n.children[m],x=w.findKey(c,v),k=d.KE.range(c,y),E=s&&d.Q6.intersection(k,s),_=l([v,y]);for(var S of t){var A=d.Q6.intersection(S,k);A&&_.push(A)}d.Hg.isElement(v)?p.push(u.createElement(K.Provider,{key:"provider-".concat(x.id),value:!!E},u.createElement(W,{decorations:_,element:v,key:x.id,renderElement:r,renderPlaceholder:i,renderLeaf:a,renderText:o,selection:E}))):p.push(u.createElement(B,{decorations:_,key:x.id,isLast:g&&m===n.children.length-1,parent:n,renderPlaceholder:i,renderLeaf:a,renderText:o,text:v})),f.MB.set(v,m),f.WQ.set(v,n)}return p},Q=(0,u.createContext)(!1),J=()=>(0,u.useContext)(Q),ee=(0,u.createContext)(null),et=()=>{var e=(0,u.useContext)(ee);if(!e)throw Error("The `useSlate` hook must be used inside the <Slate> component's context.");var{editor:t}=e;return t},en={subtree:!0,childList:!0,characterData:!0,characterDataOldValue:!0};class er extends u.Component{constructor(){super(...arguments),y(this,"context",null),y(this,"manager",null),y(this,"mutationObserver",null)}observe(){var e,{node:t}=this.props;if(!t.current)throw Error("Failed to attach MutationObserver, `node` is undefined");null==(e=this.mutationObserver)||e.observe(t.current,en)}componentDidMount(){var e,t,{receivedUserInput:n}=this.props,r=this.context;this.manager=(e=[],{registerMutations:t=>{if(n.current){var i=t.filter(e=>(0,f.Yc)(r,e,t));e.push(...i)}},restoreDOM:function(){e.length>0&&(e.reverse().forEach(e=>{"characterData"!==e.type&&(e.removedNodes.forEach(t=>{e.target.insertBefore(t,e.nextSibling)}),e.addedNodes.forEach(t=>{e.target.removeChild(t)}))}),t())},clear:t=()=>{e=[]}}),this.mutationObserver=new MutationObserver(this.manager.registerMutations),this.observe()}getSnapshotBeforeUpdate(){var e,t,n,r,i=null==(e=this.mutationObserver)?void 0:e.takeRecords();return null!=i&&i.length&&(null==(r=this.manager)||r.registerMutations(i)),null==(t=this.mutationObserver)||t.disconnect(),null==(n=this.manager)||n.restoreDOM(),null}componentDidUpdate(){var e;null==(e=this.manager)||e.clear(),this.observe()}componentWillUnmount(){var e;null==(e=this.mutationObserver)||e.disconnect()}render(){return this.props.children}}y(er,"contextType",v);var ei=f.Ni?er:e=>{var{children:t}=e;return u.createElement(u.Fragment,null,t)},eo=(0,u.createContext)(!1),ea=["autoFocus","decorate","onDOMBeforeInput","placeholder","readOnly","renderElement","renderLeaf","renderText","renderPlaceholder","scrollSelectionIntoView","style","as","disableDefaultStyles"],es=["text"];function el(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?el(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):el(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ec=e=>u.createElement(u.Fragment,null,Z(e)),ed=(0,u.forwardRef)((e,t)=>{var n=(0,u.useCallback)(e=>u.createElement(ef,eu({},e)),[]),{autoFocus:r,decorate:o=eh,onDOMBeforeInput:s,placeholder:c,readOnly:h=!1,renderElement:p,renderLeaf:m,renderText:y,renderPlaceholder:v=n,scrollSelectionIntoView:x=ep,style:k={},as:E="div",disableDefaultStyles:S=!1}
213=e,A=g(e,ea),T=et(),[O,j]=(0,u.useState)(!1),D=(0,u.useRef)(null),R=(0,u.useRef)([]),[I,P]=(0,u.useState)(),M=(0,u.useRef)(!1),{onUserInput:N,receivedUserInput:$}=function(){var e=b(),t=(0,u.useRef)(!1),n=(0,u.useRef)(0),r=(0,u.useCallback)(()=>{if(!t.current){t.current=!0;var r=w.getWindow(e);r.cancelAnimationFrame(n.current),n.current=r.requestAnimationFrame(()=>{t.current=!1})}},[e]);return(0,u.useEffect)(()=>()=>cancelAnimationFrame(n.current),[]),{receivedUserInput:t,onUserInput:r}}(),[,L]=(0,u.useReducer)(e=>e+1,0);f.Bo.set(T,L),f.dY.set(T,h);var F=(0,u.useMemo)(()=>({isDraggingInternally:!1,isUpdatingSelection:!1,latestElement:null,hasMarkPlaceholder:!1}),[]);(0,u.useEffect)(()=>{D.current&&r&&D.current.focus()},[r]);var U=(0,u.useRef)(),z=(0,u.useMemo)(()=>l()(()=>{if(f.eA.get(T))return void z();var e=w.toDOMNode(T,T).getRootNode();if(!M.current&&f._y&&e instanceof ShadowRoot){M.current=!0,(0,f.bq)()?document.execCommand("indent"):d.gB.deselect(T),M.current=!1;return}var t=U.current;if((f.Ni||!w.isComposing(T))&&(!F.isUpdatingSelection||null!=t&&t.isFlushing())&&!F.isDraggingInternally){var n=w.findDocumentOrShadowRoot(T),{activeElement:r}=n,i=w.toDOMNode(T,T),o=(0,f.Lo)(n);if(r===i?(F.latestElement=r,f.Rf.set(T,!0)):f.Rf.delete(T),!o)return d.gB.deselect(T);var{anchorNode:a,focusNode:s}=o,l=w.hasEditableTarget(T,a)||w.isTargetInsideNonReadonlyVoid(T,a),u=w.hasTarget(T,s);if(l&&u){var c=w.toSlateRange(T,o,{exactMatch:!1,suppressThrow:!0});c&&(w.isComposing(T)||null!=t&&t.hasPendingChanges()||null!=t&&t.isFlushing()?null==t||t.handleUserSelect(c):d.gB.select(T,c))}!h||l&&u||d.gB.deselect(T)}},100),[T,h,F]),B=(0,u.useMemo)(()=>a()(z,0),[z]);U.current=C({node:D,onDOMSelectionChange:z,scheduleOnDOMSelectionChange:B}),_(()=>{D.current&&(n=(0,f.j$)(D.current))?(f.ty.set(T,n),f.Vh.set(T,D.current),f._8.set(T,D.current),f.wc.set(D.current,T)):f._8.delete(T);var e,t,n,{selection:r}=T,i=w.findDocumentOrShadowRoot(T),o=(0,f.Lo)(i);if(!(!o||!w.isFocused(T)||null!=(e=U.current)&&e.hasPendingAction())){var a=e=>{var t="None"!==o.type;if(r||t){var n=o.focusNode;if(f.$M&&o.rangeCount>1){var i=o.getRangeAt(0),a=o.getRangeAt(o.rangeCount-1);u=i.startContainer===n?a.endContainer:i.startContainer}else u=o.anchorNode;var s=f.Vh.get(T),l=!1;if(s.contains(u)&&s.contains(n)&&(l=!0),t&&l&&r&&!e){var u,c,h=w.toSlateRange(T,o,{exactMatch:!0,suppressThrow:!0});if(h&&d.Q6.equals(h,r)&&(!F.hasMarkPlaceholder||null!=(c=u)&&null!=(c=c.parentElement)&&c.hasAttribute("data-slate-mark-placeholder")))return}if(r&&!w.hasRange(T,r)){T.selection=w.toSlateRange(T,o,{exactMatch:!1,suppressThrow:!0});return}F.isUpdatingSelection=!0;var p=null;try{p=r&&w.toDOMRange(T,r)}catch(e){}return p?(w.isComposing(T)&&!f.Ni?o.collapseToEnd():d.Q6.isBackward(r)?o.setBaseAndExtent(p.endContainer,p.endOffset,p.startContainer,p.startOffset):o.setBaseAndExtent(p.startContainer,p.startOffset,p.endContainer,p.endOffset),x(T,p)):o.removeAllRanges(),p}};o.rangeCount<=1&&a();var s=(null==(t=U.current)?void 0:t.isFlushing())==="action";if(!f.Ni||!s)return void setTimeout(()=>{F.isUpdatingSelection=!1});var l=null,u=requestAnimationFrame(()=>{if(s){var e=e=>{try{w.toDOMNode(T,T).focus(),a(e)}catch(e){}};e(),l=setTimeout(()=>{e(!0),F.isUpdatingSelection=!1})}});return()=>{cancelAnimationFrame(u),l&&clearTimeout(l)}}});var q=(0,u.useCallback)(e=>{ev(T,e);var t=w.toDOMNode(T,T).getRootNode();if(null!=M&&M.current&&f._y&&t instanceof ShadowRoot){var n=e.getTargetRanges()[0],r=new window.Range;r.setStart(n.startContainer,n.startOffset),r.setEnd(n.endContainer,n.endOffset);var i=w.toSlateRange(T,r,{exactMatch:!1,suppressThrow:!1});d.gB.select(T,i),e.preventDefault(),e.stopImmediatePropagation();return}if(N(),!h&&w.hasEditableTarget(T,e.target)&&!ey(e,s)){if(U.current)return U.current.handleDOMBeforeInput(e);B.flush(),z.flush();var{selection:o}=T,{inputType:a}=e,l=e.dataTransfer||e.data||void 0,u="insertCompositionText"===a||"deleteCompositionText"===a;if(u&&w.isComposing(T))return;var c=!1;if("insertText"===a&&o&&d.Q6.isCollapsed(o)&&e.data&&1===e.data.length&&/[a-z ]/i.test(e.data)&&0!==o.anchor.offset&&(c=!0,T.marks&&(c=!1),!f.eA.get(T))){var{anch
213or:p}=o,[g,m]=w.toDOMPoint(T,p),y=null==(x=g.parentElement)?void 0:x.closest("a"),v=w.getWindow(T);if(c&&y&&w.hasDOMNode(T,y)){var b,x,k,E,_=null==v?void 0:v.document.createTreeWalker(y,NodeFilter.SHOW_TEXT).lastChild();_===g&&(null==(E=_.textContent)?void 0:E.length)===m&&(c=!1)}if(c&&g.parentElement&&(null==v||null==(k=v.getComputedStyle(g.parentElement))?void 0:k.whiteSpace)==="pre"){var S=d.KE.above(T,{at:p.path,match:e=>d.Hg.isElement(e)&&d.KE.isBlock(T,e)});S&&d.bP.string(S[0]).includes("	")&&(c=!1)}}if((!a.startsWith("delete")||a.startsWith("deleteBy"))&&!f.eA.get(T)){var[A]=e.getTargetRanges();if(A){var C=w.toSlateRange(T,A,{exactMatch:!1,suppressThrow:!1});if(!o||!d.Q6.equals(o,C)){c=!1;var O=!u&&T.selection&&d.KE.rangeRef(T,T.selection);d.gB.select(T,C),O&&f.zk.set(T,O)}}}if(u)return;if(c||e.preventDefault(),o&&d.Q6.isExpanded(o)&&a.startsWith("delete")){var D=a.endsWith("Backward")?"backward":"forward";d.KE.deleteFragment(T,{direction:D});return}switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":d.KE.deleteFragment(T);break;case"deleteContent":case"deleteContentForward":d.KE.deleteForward(T);break;case"deleteContentBackward":d.KE.deleteBackward(T);break;case"deleteEntireSoftLine":d.KE.deleteBackward(T,{unit:"line"}),d.KE.deleteForward(T,{unit:"line"});break;case"deleteHardLineBackward":d.KE.deleteBackward(T,{unit:"block"});break;case"deleteSoftLineBackward":d.KE.deleteBackward(T,{unit:"line"});break;case"deleteHardLineForward":d.KE.deleteForward(T,{unit:"block"});break;case"deleteSoftLineForward":d.KE.deleteForward(T,{unit:"line"});break;case"deleteWordBackward":d.KE.deleteBackward(T,{unit:"word"});break;
213case"deleteWordForward":d.KE.deleteForward(T,{unit:"word"});break;case"insertLineBreak":d.KE.insertSoftBreak(T);break;case"insertParagraph":d.KE.insertBreak(T);break;case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":"insertFromComposition"===a&&w.isComposing(T)&&(j(!1),f.BG.set(T,!1)),(null==l?void 0:l.constructor.name)==="DataTransfer"?w.insertData(T,l):"string"==typeof l&&(c?R.current.push(()=>d.KE.insertText(T,l)):d.KE.insertText(T,l))}var I=null==(b=f.zk.get(T))?void 0:b.unref();f.zk.delete(T),!I||T.selection&&d.Q6.equals(T.selection,I)||d.gB.select(T,I)}},[T,z,N,s,h,B]),V=(0,u.useCallback)(e=>{null==e?(z.cancel(),B.cancel(),f.Vh.delete(T),f._8.delete(T),D.current&&f.MX&&D.current.removeEventListener("beforeinput",q)):f.MX&&e.addEventListener("beforeinput",q),D.current=e,"function"==typeof t?t(e):t&&(t.current=e)},[z,B,T,q,t]);_(()=>{var e=w.getWindow(T),t=e=>{var{target:t}=e,n=t instanceof HTMLElement?t:null,r=null==n?void 0:n.tagName;"INPUT"!==r&&"TEXTAREA"!==r&&B()};e.document.addEventListener("selectionchange",t);var n=()=>{F.isDraggingInternally=!1};return e.document.addEventListener("dragend",n),e.document.addEventListener("drop",n),()=>{e.document.removeEventListener("selectionchange",t),e.document.removeEventListener("dragend",n),e.document.removeEventListener("drop",n)}},[B,F]);var H=o([T,[]]),W=c&&1===T.children.length&&1===Array.from(d.bP.texts(T)).length&&""===d.bP.string(T)&&!O,Y=(0,u.useCallback)(e=>{if(e&&W){var t;P(null==(t=e.getBoundingClientRect())?void 0:t.height)}else P(void 0)},[W]);if(W){var K=d.KE.start(T,[]);H.push({[f.Rx]:!0,placeholder:c,onPlaceholderResize:Y,anchor:K,focus:K})}var{marks:X}=T;if(F.hasMarkPlaceholder=!1,T.selection&&d.Q6.isCollapsed(T.selection)&&X){var{anchor:Z}=T.selection,J=d.bP.leaf(T,Z.path),ee=g(J,es);if(!d.EY.equals(J,X,{loose:!0})){F.hasMarkPlaceholder=!0;var en=Object.fromEntries(Object.keys(ee).map(e=>[e,null]));H.push(eu(eu(eu({[f.nW]:!0},en),X),{},{anchor:Z,focus:Z}))}}return(0,u.useEffect)(()=>{setTimeout(()=>{var{selection:e}=T;if(e){var{anchor:t}=e,n=d.bP.leaf(T,t.path);
213if(X&&!d.EY.equals(n,X,{loose:!0}))return void f.fe.set(T,X)}f.fe.delete(T)})}),u.createElement(Q.Provider,{value:h},u.createElement(eo.Provider,{value:O},u.createElement(G.Provider,{value:o},u.createElement(ei,{node:D,receivedUserInput:$},u.createElement(E,eu(eu({role:h?void 0:"textbox","aria-multiline":!h||void 0},A),{},{spellCheck:(!!f.MX||!f.qx)&&A.spellCheck,autoCorrect:f.MX||!f.qx?A.autoCorrect:"false",autoCapitalize:f.MX||!f.qx?A.autoCapitalize:"false","data-slate-editor":!0,"data-slate-node":"value",contentEditable:!h,zindex:-1,suppressContentEditableWarning:!0,ref:V,style:eu(eu({},S?{}:eu({position:"relative",whiteSpace:"pre-wrap",wordWrap:"break-word"},I?{minHeight:I}:{})),k),onBeforeInput:(0,u.useCallback)(e=>{if(!f.MX&&!h&&!eg(e,A.onBeforeInput)&&w.hasSelectableTarget(T,e.target)&&(e.preventDefault(),!w.isComposing(T))){var t=e.data;d.KE.insertText(T,t)}},[A.onBeforeInput,T,h]),onInput:(0,u.useCallback)(e=>{if(!eg(e,A.onInput)){if(U.current)return void U.current.handleInput();for(var t of R.current)t();R.current=[],w.isFocused(T)||ev(T,e.nativeEvent)}},[A.onInput,T]),onBlur:(0,u.useCallback)(e=>{if(h||F.isUpdatingSelection||!w.hasSelectableTarget(T,e.target)||eg(e,A.onBlur))return;var t=w.findDocumentOrShadowRoot(T);if(F.latestElement!==t.activeElement){var{relatedTarget:n}=e;if(n!==w.toDOMNode(T,T)&&!((0,f.Fe)(n)&&n.hasAttribute("data-slate-spacer"))){if(null!=n&&(0,f.vA)(n)&&w.hasDOMNode(T,n)){var r=w.toSlateNode(T,n);if(d.Hg.isElement(r)&&!T.isVoid(r))return}if(f._y){var i=(0,f.Lo)(t);null==i||i.removeAllRanges()}f.Rf.delete(T)}}},[h,F.isUpdatingSelection,F.latestElement,T,A.onBlur]),onClick:(0,u.useCallback)(e=>{if(w.hasTarget(T,e.target)&&!eg(e,A.onClick)&&(0,f.vA)(e.target)){var t=w.toSlateNode(T,e.target),n=w.findPath(T,t);if(d.KE.hasPath(T,n)&&d.bP.get(T,n)===t){if(e.detail===f.CT&&n.length>=1){var r=n;if(!(d.Hg.isElement(t)&&d.KE.isBlock(T,t))){var i,o=d.KE.above(T,{match:e=>d.Hg.isElement(e)&&d.KE.isBlock(T,e),at:n});r=null!=(i=null==o?void 0:o[1])?i:n.slice(0,1)}var a=d.KE.range(T,r);d.gB.select(T,a);return}if(!h){var s=d.KE.start(T,n),l=d.KE.end(T,n),u=d.KE.void(T,{at:s}),c=d.KE.void(T,{at:l});if(u&&c&&d.wA.equals(u[1],c[1])){var p=d.KE.range(T,s);d.gB.select(T,p)}}}}},[T,A.onClick,h]),onCompositionEnd:(0,u.useCallback)(e=>{if(w.hasSelectableTarget(T,e.target)){var t;if(w.isComposing(T)&&Promise.resolve().then(()=>{j(!1),f.BG.set(T,!1)}),null==(t=U.current)||t.handleCompositionEnd(e),!eg(e,A.onCompositionEnd)&&!f.Ni&&!f._y&&!f.Hq&&!f.pz&&!f.KW&&!f.$Z&&e.data){var n=f.fe.get(T);f.fe.delete(T),void 0!==n&&(f.NH.set(T,T.marks),T.marks=n),d.KE.insertText(T,e.data);var r=f.NH.get(T);f.NH.delete(T),void 0!==r&&(T.marks=r)}}},[A.onCompositionEnd,T]),onCompositionUpdate:(0,u.useCallback)(e=>{!w.hasSelectableTarget(T,e.target)||eg(e,A.onCompositionUpdate)||w.isComposing(T)||(j(!0),f.BG.set(T,!0))},[A.onCompositionUpdate,T]),onCompositionStart:(0,u.useCallback)(e=>{if(w.hasSelectableTarget(T,e.target)&&(null==(t=U.current)||t.handleCompositionStart(e),!eg(e,A.onCompositionStart)&&!f.Ni)){j(!0);var t,{selection:n}=T;if(n&&d.Q6.isExpanded(n))return void d.KE.deleteFragment(T)}},[A.onCompositionStart,T]),onCopy:(0,u.useCallback)(e=>{!w.hasSelectableTarget(T,e.target)||eg(e,A.onCopy)||em(e)||(e.preventDefault(),w.setFragmentData(T,e.clipboardData,"copy"))},[A.onCopy,T]),onCut:(0,u.useCallback)(e=>{if(!h&&w.hasSelectableTarget(T,e.target)&&!eg(e,A.onCut)&&!em(e)){e.preventDefault(),w.setFragmentData(T,e.clipboardData,"cut");var{selection:t}=T;if(t)if(d.Q6.isExpanded(t))d.KE.deleteFragment(T);else{var n=d.bP.parent(T,t.anchor.path);d.KE.isVoid(T,n)&&d.gB.delete(T)}}},[h,T,A.onCut]),onDragOver:(0,u.useCallback)(e=>{if(w.hasTarget(T,e.target)&&!eg(e,A.onDragOver)){var t=w.toSlateNode(T,e.target);d.Hg.isElement(t)&&d.KE.isVoid(T,t)&&e.preventDefault()}},[A.onDragOver,T]),onDragStart:(0,u.useCallback)(e=>{if(!h&&w.hasTarget(T,e.target)&&!eg(e,A.onDragStart)){var t=w.toSlateNode(T,e.target),n=w.findPath(T,t);if(d.Hg.isElement(t)&&d.KE.isVoid(T,t)||d.KE.void(T,{at:n,voids:!0})){var r=d.KE.range(T,n);d.gB.select(T,r)}F.isDraggingInternally=!0,w.setFragmentData(T,e.dataTransfer,"drag")}},[h,T,A.onDragStart,F]),onDrop:(0,u.useCallback)(e=>{if(!h&&w.hasTarget(T,e.target)&&!eg(e,A.onDrop)){e.preventDefault();var t=T.selection,n=w.findEventRange(T,e),r=e.dataTransfer;d.gB.select(T,n),F.isDraggingInternally&&t&&!d.Q6.equals(t,n)&&!d.KE.void(T,{at:n,voids:!0})&&d.gB.delete(T,{at:t}),w.insertData(T,r),w.isFocused(T)||w.focus(T)}},[h,T,A.onDrop,F]),onDragEnd:(0,u.useCallback)(e=>{!h&&F.isDraggingInternally&&A.onDragEnd&&w.hasTarget(T,e.target)&&A.onDragEnd(e)},[h,F,A,T]),onFocus:(0,u.useCallback)(e=>{if(!h&&!F.isUpdatingSelection&&w.hasEditableTarget(T,e.target)&&!eg(e,A.onFocus)){var t=w.toDOMNode(T,T);if(F.latestElement=w.findDocumentOrShadowRoot(T).activeElement,f.$M&&e.target!==t)return void t.focus();f.Rf.set(T,!0)}},[h,F,T,A.onFocus]),onKeyDown:(0,u.useCallback)(e=>{if(!h&&w.hasEditableTarget(T,e.target)){null==(t=U.current)||t.handleKeyDown(e);var t,{nativeEvent:n}=e;if(w.isComposing(T)&&!1===n.isComposing&&(f.BG.set(T,!1),j(!1)),!(eg(e,A.onKeyDown)||w.isComposing(T))){var{selection:r}=T,o=T.children[null!==r?r.focus.path[0]:0],a="rtl"===i()(d.bP.string(o));if(f.qW.isRedo(n)){e.preventDefault(),"function"==typeof T.redo&&T.redo();return}if(f.qW.isUndo(n)){e.preventDefault(),"function"==typeof T.undo&&T.undo();return}if(f.qW.isMoveLineBackward(n)){e.preventDefault(),d.gB.move(T,{unit:"line",reverse:!0});return}if(f.qW.isMoveLineForward(n)){e.preventDefault(),d.gB.move(T,{unit:"line"});return}if(f.qW.isExtendLineBackward(n)){e.preventDefault(),d.gB.move(T,{unit:"line",edge:"focus",reverse:!0});return}if(f.qW.isExtendLineForward(n)){e.preventDefault(),d.gB.move(T,{unit:"line",edge:"focus"});return}if(f.qW.isMoveBackward(n)){e.preventDefault(),r&&d.Q6.isCollapsed(r)?d.gB.move(T,{reverse:!a}):d.gB.collapse(T,{edge:a?"end":"start"});return}if(f.qW.isMoveForward(n)){e.preventDefault(),r&&d.Q6.isCollapsed(r)?d.gB.move(T,{reverse:a}):d.gB.collapse(T,{edge:a?"start":"end"});return}if(f.qW.isMoveWordBackward(n)){e.preventDefault(),r&&d.Q6.isExpanded(r)&&d.gB.collapse(T,{edge:"focus"}),d.gB.move(T,{unit:"word",reverse:!a});return}
213if(f.qW.isMoveWordForward(n)){e.preventDefault(),r&&d.Q6.isExpanded(r)&&d.gB.collapse(T,{edge:"focus"}),d.gB.move(T,{unit:"word",reverse:a});return}if(f.MX){if((f.G_||f._y)&&r&&(f.qW.isDeleteBackward(n)||f.qW.isDeleteForward(n))&&d.Q6.isCollapsed(r)){var s=d.bP.parent(T,r.anchor.path);if(d.Hg.isElement(s)&&d.KE.isVoid(T,s)&&(d.KE.isInline(T,s)||d.KE.isBlock(T,s))){e.preventDefault(),d.KE.deleteBackward(T,{unit:"block"});return}}}else{if(f.qW.isBold(n)||f.qW.isItalic(n)||f.qW.isTransposeCharacter(n))return void e.preventDefault();if(f.qW.isSoftBreak(n)){e.preventDefault(),d.KE.insertSoftBreak(T);return}if(f.qW.isSplitBlock(n)){e.preventDefault(),d.KE.insertBreak(T);return}if(f.qW.isDeleteBackward(n)){e.preventDefault(),r&&d.Q6.isExpanded(r)?d.KE.deleteFragment(T,{direction:"backward"}):d.KE.deleteBackward(T);return}if(f.qW.isDeleteForward(n)){e.preventDefault(),r&&d.Q6.isExpanded(r)?d.KE.deleteFragment(T,{direction:"forward"}):d.KE.deleteForward(T);return}if(f.qW.isDeleteLineBackward(n)){e.preventDefault(),r&&d.Q6.isExpanded(r)?d.KE.deleteFragment(T,{direction:"backward"}):d.KE.deleteBackward(T,{unit:"line"});return}if(f.qW.isDeleteLineForward(n)){e.preventDefault(),r&&d.Q6.isExpanded(r)?d.KE.deleteFragment(T,{direction:"forward"}):d.KE.deleteForward(T,{unit:"line"});return}if(f.qW.isDeleteWordBackward(n)){e.preventDefault(),r&&d.Q6.isExpanded(r)?d.KE.deleteFragment(T,{direction:"backward"}):d.KE.deleteBackward(T,{unit:"word"});return}if(f.qW.isDeleteWordForward(n)){e.preventDefault(),r&&d.Q6.isExpanded(r)?d.KE.deleteFragment(T,{direction:"forward"}):d.KE.deleteForward(T,{unit:"word"});return}}}}},[h,T,A.onKeyDown]),onPaste:(0,u.useCallback)(e=>{!h&&w.hasEditableTarget(T,e.target)&&!eg(e,A.onPaste)&&(!f.MX||(0,f.ts)(e.nativeEvent)||f._y)&&(e.preventDefault(),w.insertData(T,e.clipboardData))},[h,T,A.onPaste])}),u.createElement(ec,{decorations:H,node:T,renderElement:p,renderPlaceholder:v,renderLeaf:m,renderText:y,selection:T.selection}))))))}),ef=e=>{var{attributes:t,children:n}=e;return u.createElement("span",eu({},t),n,f.Ni&&u.createElement("br",null))},eh=()=>[],ep=(e,t)=>{if(t.getBoundingClientRect&&(!e.selection||e.selection&&d.Q6.isCollapsed(e.selection))){var n=t.startContainer.parentElement;n.getBoundingClientRect=t.getBoundingClientRect.bind(t),(0,c.A)(n,{scrollMode:"if-needed"}),delete n.getBoundingClientRect}},eg=(e,t)=>{if(!t)return!1;var n=t(e);return null!=n?n:e.isDefaultPrevented()||e.isPropagationStopped()},em=e=>(0,f.vA)(e.target)&&(e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement),ey=(e,t)=>{if(!t)return!1;var n=t(e);return null!=n?n:e.defaultPrevented},ev=(e,t)=>"historyUndo"===t.inputType&&"function"==typeof e.undo?void e.undo():"historyRedo"===t.inputType&&"function"==typeof e.redo?void e.redo():void 0,eb=(0,u.createContext)(!1),ew=(0,u.createContext)({}),ex=parseInt(u.version.split(".")[0],10),ek=["editor","children","onChange","onSelectionChange","onValueChange","initialValue"],eE=e=>{var{editor:t,children:n,onChange:r,onSelectionChange:i,onValueChange:o,initialValue:a}=e,s=g(e,ek),[l,c]=u.useState(()=>{if(!d.bP.isNodeList(a))throw Error("[Slate] initialValue is invalid! Expected a list of elements but got: ".concat(d.h6.stringify(a)));if(!d.KE.isEditor(t))throw Error("[Slate] editor is invalid! You passed: ".concat(d.h6.stringify(t)));return t.children=a,Object.assign(t,s),{v:0,editor:t}}),{selectorContext:h,onChange:p}=function(e){var t=(0,u.useRef)([]).current,n=(0,u.useRef)({editor:e}).current,r=(0,u.useCallback)(e=>{n.editor=e,t.forEach(t=>t(e))},[t,n]);return{selectorContext:(0,u.useMemo)(()=>({getSlate:()=>n.editor,addEventListener:e=>(t.push(e),()=>{t.splice(t.indexOf(e),1)})}),[t,n]),onChange:r}}(t),m=(0,u.useCallback)(e=>{var n;r&&r(t.children),(null==e||null==(n=e.operation)?void 0:n.type)==="set_selection"?null==i||i(t.selection):null==o||o(t.children),c(e=>({v:e.v+1,editor:t})),p(t)},[t,p,r,i,o]);(0,u.useEffect)(()=>(f.zJ.set(t,m),()=>{f.zJ.set(t,()=>{})}),[t,m]);var[y,b]=(0,u.useState)(w.isFocused(t));return(0,u.useEffect)(()=>{b(w.isFocused(t))},[t]),_(()=>{var e=()=>b(w.isFocused(t));return ex>=17?(document.addEventListener("focusin",e),document.addEventListener("focusout",e),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",e)}):(document.addEventListener("focus",e,!0),document.addEventListener("blur",e,!0),()=>{document.removeEventListener("focus",e,!0),document.removeEventListener("blur",e,!0)})},[]),u.createElement(ew.Provider,{value:h},u.createElement(ee.Provider,{value:l},u.createElement(v.Provider,{value:l.editor},u.createElement(eb.Provider,{value:y},n))))},e_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x-slate-fragment",n=e,{onChange:r}=n=(0,f.Hk)(n,t);return n.onChange=e=>{(ex<18?p.unstable_batchedUpdates:e=>e())(()=>{r(e)})},n}},90970:(e,t,n)=>{e=n.nmd(e);var r=n(26943),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}}
213,91233:(e,t,n)=>{var r=n(51199),i=n(96408);e.exports=function(e,t,n,o){var a=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var u=t[s],c=o?o(n[u],e[u],u,n,e):void 0;void 0===c&&(c=e[u]),a?i(n,u,c):r(n,u,c)}return n}},91264:(e,t,n)=>{"use strict";n.d(t,{h:()=>function e(t,n,r=2){if(!n||"object"!=typeof n||r<=0)return n;if(t&&n&&0===Object.keys(n).length)return t;let i={...t};for(let t in n)Object.prototype.hasOwnProperty.call(n,t)&&(i[t]=e(i[t],n[t],r-1));return i}})},91265:(e,t,n)=>{"use strict";var r=n(44316).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(1,arguments);var n,r,l,u,c,d,f,h,p=(0,s.getDefaultOptions)(),g=(0,a.default)(null!=(n=null!=(r=null!=(l=null!=(u=null==t?void 0:t.weekStartsOn)?u:null==t||null==(c=t.locale)||null==(d=c.options)?void 0:d.weekStartsOn)?l:p.weekStartsOn)?r:null==(f=p.locale)||null==(h=f.options)?void 0:h.weekStartsOn)?n:0);if(!(g>=0&&g<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=(0,i.default)(e),y=m.getUTCDay();return m.setUTCDate(m.getUTCDate()-(7*(y<g)+y-g)),m.setUTCHours(0,0,0,0),m};var i=r(n(75628)),o=r(n(29024)),a=r(n(12431)),s=n(57285);e.exports=t.default},91558:(e,t,n)=>{"use strict";n.d(t,{Z:()=>function e(t,n,l){return(void 0===l&&(l=1/0),(0,s.T)(n))?e(function(e,o){return(0,r.T)(function(t,r){return n(e,t,o,r)})((0,i.Tg)(t(e,o)))},l):("number"==typeof n&&(l=n),(0,o.N)(function(e,n){return(0,a.h)(e,n,t,l)}))}});var r=n(79446),i=n(12884),o=n(27778),a=n(36462),s=n(73315)},91696:(e,t,n)=>{"use strict";n.d(t,{Qx:()=>u,jM:()=>q,mq:()=>V,vD:()=>H});var r,i=Symbol.for("immer-nothing"),o=Symbol.for("immer-draftable"),a=Symbol.for("immer-state");function s(e){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var l=Object.getPrototypeOf;function u(e){return!!e&&!!e[a]}function c(e){return!!e&&(f(e)||Array.isArray(e)||!!e[o]||!!e.constructor?.[o]||y(e)||v(e))}var d=Object.prototype.constructor.toString();function f(e){if(!e||"object"!=typeof e)return!1;let t=l(e);if(null===t)return!0;let n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===d}function h(e,t){0===p(e)?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function p(e){let t=e[a];return t?t.type_:Array.isArray(e)?1:y(e)?2:3*!!v(e)}function g(e,t){return 2===p(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function m(e,t,n){let r=p(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function y(e){return e instanceof Map}function v(e){return e instanceof Set}function b(e){return e.copy_||e.base_}function w(e,t){if(y(e))return new Map(e);if(v(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);let n=f(e);if(!0!==t&&("class_only"!==t||n)){let t=l(e);return null!==t&&n?{...e}:Object.assign(Object.create(t),e)}{let t=Object.getOwnPropertyDescriptors(e);delete t[a];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(l(e),t)}}function x(e,t=!1){return E(e)||u(e)||!c(e)||(p(e)>1&&(e.set=e.add=e.clear=e.delete=k),Object.freeze(e),t&&Object.entries(e).forEach(([e,t])=>x(t,!0))),e}function k(){s(2)}function E(e){return Object.isFrozen(e)}var _={};function S(e){let t=_[e];return t||s(0,e),t}function A(e,t){t&&(S("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function T(e){C(e),e.drafts_.forEach(j),e.drafts_=null}function C(e){e===r&&(r=e.parent_)}function O(e){return r={drafts_:[],parent_:r,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function j(e){let t=e[a];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function D(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];return void 0!==e&&e!==n?(n[a].modified_&&(T(t),s(4)),c(e)&&(e=R(t,e),t.parent_||P(t,e)),t.patches_&&S("Patches").generateReplacementPatches_(n[a].base_,e,t.patches_,t.inversePatches_)):e=R(t,n,[]),T(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==i?e:void 0}function R(e,t,n){if(E(t))return t;let r=t[a];if(!r)return h(t,(i,o)=>I(e,r,t,i,o,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return P(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;let t=r.copy_,i=t,o=!1;3===r.type_&&(i=new Set(t),t.clear(),o=!0),h(i,(i,a)=>I(e,r,t,i,a,n,o)),P(e,t,!1),n&&e.patches_&&S("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function I(e,t,n,r,i,o,a){if(u(i)){let a=R(e,i,o&&t&&3!==t.type_&&!g(t.assigned_,r)?o.concat(r):void 0);if(m(n,r,a),!u(a))return;e.canAutoFreeze_=!1}else a&&n.add(i);if(c(i)&&!E(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;R(e,i),(!t||!t.scope_.parent_)&&"symbol"!=typeof r&&Object.prototype.propertyIsEnumerable.call(n,r)&&P(e,i)}}function P(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&x(t,n)}var M={get(e,t){if(t===a)return e;let n=b(e);if(!g(n,t)){var r=e,i=n,o=t;let a=L(i,o);return a?"value"in a?a.value:a.get?.call(r.draft_):void 0}let s=n[t];return e.finalized_||!c(s)?s:s===$(e.base_,t)?(U(e),e.copy_[t]=z(s,e)):s},has:(e,t)=>t in b(e),ownKeys:e=>Reflect.ownKeys(b(e)),set(e,t,n){let r=L(b(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=$(b(e),t),i=r?.[a];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if((n===r?0!==n||1/n==1/r:n!=n&&r!=r)&&(void 0!==n||g(e.base_,t)))return!0;U(e),F(e)}return!!(e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t]))||
213(e.copy_[t]=n,e.assigned_[t]=!0,!0)},deleteProperty:(e,t)=>(void 0!==$(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,U(e),F(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){let n=b(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty(){s(11)},getPrototypeOf:e=>l(e.base_),setPrototypeOf(){s(12)}},N={};function $(e,t){let n=e[a];return(n?b(n):e)[t]}function L(e,t){if(!(t in e))return;let n=l(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=l(n)}}function F(e){!e.modified_&&(e.modified_=!0,e.parent_&&F(e.parent_))}function U(e){e.copy_||(e.copy_=w(e.base_,e.scope_.immer_.useStrictShallowCopy_))}function z(e,t){let n=y(e)?S("MapSet").proxyMap_(e,t):v(e)?S("MapSet").proxySet_(e,t):function(e,t){let n=Array.isArray(e),i={type_:+!!n,scope_:t?t.scope_:r,modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1},o=i,a=M;n&&(o=[i],a=N);let{revoke:s,proxy:l}=Proxy.revocable(o,a);return i.draft_=l,i.revoke_=s,l}(e,t);return(t?t.scope_:r).drafts_.push(n),n}h(M,(e,t)=>{N[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),N.deleteProperty=function(e,t){return N.set.call(this,e,t,void 0)},N.set=function(e,t,n){return M.set.call(this,e[0],t,n,e[0])};var B=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{let r;if("function"==typeof e&&"function"!=typeof t){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}if("function"!=typeof t&&s(6),void 0!==n&&"function"!=typeof n&&s(7),c(e)){let i=O(this),o=z(e,void 0),a=!0;try{r=t(o),a=!1}finally{a?T(i):C(i)}return A(i,n),D(r,i)}if(e&&"object"==typeof e)s(1,e);else{if(void 0===(r=t(e))&&(r=e),r===i&&(r=void 0),this.autoFreeze_&&x(r,!0),n){let t=[],i=[];S("Patches").generateReplacementPatches_(e,r,t,i),n(t,i)}return r}},this.produceWithPatches=(e,t)=>{let n,r;return"function"==typeof e?(t,...n)=>this.produceWithPatches(t,t=>e(t,...n)):[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){var t;c(e)||s(8),u(e)&&(u(t=e)||s(10,t),e=function e(t){let n;if(!c(t)||E(t))return t;let r=t[a];if(r){if(!r.modified_)return r.base_;r.finalized_=!0,n=w(t,r.scope_.immer_.useStrictShallowCopy_)}else n=w(t,!0);return h(n,(t,r)=>{m(n,t,e(r))}),r&&(r.finalized_=!1),n}(t));let n=O(this),r=z(e,void 0);return r[a].isManual_=!0,C(n),r}finishDraft(e,t){let n=e&&e[a];n&&n.isManual_||s(9);let{scope_:r}=n;return A(r,t),D(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));let r=S("Patches").applyPatches_;return u(e)?r(e,t):this.produce(e,e=>r(e,t))}},q=B.produce;B.produceWithPatches.bind(B),B.setAutoFreeze.bind(B),B.setUseStrictShallowCopy.bind(B),B.applyPatches.bind(B);var V=B.createDraft.bind(B),H=B.finishDraft.bind(B)},92010:(e,t,n)=>{"use strict";n.d(t,{j:()=>i});var r=n(27778);function i(e){return(0,r.N)(function(t,n){try{t.subscribe(n)}finally{n.add(e)}})}},92115:(e,t,n)=>{var r=n(99756);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},92557:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(18659),i=n(64241),o=n(71260);function a(e,t){(0,o.A)(2,arguments);var n=(0,r.A)(t);return(0,i.A)(e,7*n)}},92575:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(33801);function i(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},92633:(e,t,n)=>{"use strict";n.d(t,{U:()=>r});var r={now:function(){return(r.delegate||Date).now()},delegate:void 0}},92668:(e,t,n)=>{"use strict";let r,i,o;n.d(t,{li:()=>S,mG:()=>_});var a=n(67511),s=n(27313),l=n(53056),u=n(29378),c=n(87086),d=n(7706),f=n(25411),h=n(6541),p=n(12378),g=n(77899),m=n(7207),y=n(72871),v=n(72777),b=n(77865),w=n(91264),x=n(70259);function k(e,t){let{extra:n,tags:r,user:i,contexts:o,level:a,sdkProcessingMetadata:s,breadcrumbs:l,fingerprint:u,eventProcessors:c,attachments:d,propagationContext:f,transactionName:h,span:p}=t;E(e,"extra",n),E(e,"tags",r),E(e,"user",i),E(e,"contexts",o),e.sdkProcessingMetadata=(0,w.h)(e.sdkProcessingMetadata,s,2),a&&(e.level=a),h&&(e.transactionName=h),p&&(e.span=p),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),c.length&&(e.eventProcessors=[...e.eventProcessors,...c]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...f}}function E(e,t,n){e[t]=(0,w.h)(e[t],n,1)}function _(e,t,n,w,E,_){var S,A,T,C,O,j;let{normalizeDepth:D=3,normalizeMaxBreadth:R=1e3}
213=e,I={...t,event_id:t.event_id||n.event_id||(0,p.eJ)(),timestamp:t.timestamp||(0,y.lu)()},P=n.integrations||e.integrations.map(e=>e.name);(function(e,t){let{environment:n,release:r,dist:i,maxValueLength:o=250}=t;e.environment=e.environment||n||a.U,!e.release&&r&&(e.release=r),!e.dist&&i&&(e.dist=i),e.message&&(e.message=(0,m.xv)(e.message,o));let s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=(0,m.xv)(s.value,o));let l=e.request;l&&l.url&&(l.url=(0,m.xv)(l.url,o))})(I,e),S=I,(A=P).length>0&&(S.sdk=S.sdk||{},S.sdk.integrations=[...S.sdk.integrations||[],...A]),E&&E.emit("applyFrameMetadata",t),void 0===t.type&&function(e,t){let n=function(e){let t=h.O._sentryDebugIds;if(!t)return{};let n=Object.keys(t);return o&&n.length===i?o:(i=n.length,o=n.reduce((n,i)=>{r||(r={});let o=r[i];if(o)n[o[0]]=o[1];else{let o=e(i);for(let e=o.length-1;e>=0;e--){let a=o[e],s=a&&a.filename,l=t[i];if(s&&l){n[s]=l,r[i]=[s,l];break}}}return n},{}))}(t);try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{n&&e.filename&&(e.debug_id=n[e.filename])})})}catch(e){}}(I,e.stackParser);let M=function(e,t){if(!t)return e;let n=e?e.clone():new f.H;return n.update(t),n}(w,n.captureContext);n.mechanism&&(0,p.M6)(I,n.mechanism);let N=E?E.getEventProcessors():[],$=(0,s.m6)().getScopeData();_&&k($,_.getScopeData()),M&&k($,M.getScopeData());let L=[...n.attachments||[],...$.attachments];L.length&&(n.attachments=L);let{fingerprint:F,span:U,breadcrumbs:z,sdkProcessingMetadata:B}=$;return function(e,t){let{extra:n,tags:r,user:i,contexts:o,level:a,transactionName:s}=t,l=(0,b.Ce)(n);l&&Object.keys(l).length&&(e.extra={...l,...e.extra});let u=(0,b.Ce)(r);u&&Object.keys(u).length&&(e.tags={...u,...e.tags});let c=(0,b.Ce)(i);c&&Object.keys(c).length&&(e.user={...c,...e.user});let d=(0,b.Ce)(o);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),a&&(e.level=a),s&&"transaction"!==e.type&&(e.transaction=s)}(I,$),U&&function(e,t){e.contexts={trace:(0,x.kX)(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:(0,v.k1)(t),...e.sdkProcessingMetadata};let n=(0,x.zU)(t),r=(0,x.et)(n).description;r&&!e.transaction&&"transaction"===e.type&&(e.transaction=r)}(I,U),T=I,C=F,T.fingerprint=T.fingerprint?Array.isArray(T.fingerprint)?T.fingerprint:[T.fingerprint]:[],C&&(T.fingerprint=T.fingerprint.concat(C)),T.fingerprint&&!T.fingerprint.length&&delete T.fingerprint,function(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(I,z),O=I,j=B,O.sdkProcessingMetadata={...O.sdkProcessingMetadata,...j},(function e(t,n,r,i=0){return new d.T2((o,a)=>{let s=t[i];if(null===n||"function"!=typeof s)o(n);else{let d=s({...n},r);l.T&&s.id&&null===d&&c.vF.log(`Event processor "${s.id}" dropped event`),(0,u.Qg)(d)?d.then(n=>e(t,n,r,i+1).then(o)).then(null,a):e(t,d,r,i+1).then(o).then(null,a)}})})([...N,...$.eventProcessors],I,n).then(e=>(e&&function(e){let t={};try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})})}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{n.push({type:"sourcemap",code_file:e,debug_id:t})})}(e),"number"==typeof D&&D>0)?function(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:(0,g.S8)(e.data,t,n)}}))},...e.user&&{user:(0,g.S8)(e.user,t,n)},...e.contexts&&{contexts:(0,g.S8)(e.contexts,t,n)},...e.extra&&{extra:(0,g.S8)(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=(0,g.S8)(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:(0,g.S8)(e.data,t,n)}}))),e.contexts&&e.contexts.flags&&r.contexts&&(r.contexts.flags=(0,g.S8)(e.contexts.flags,3,n)),r}(e,D,R):e)}function S(e){if(e){var t;return(t=e)instanceof f.H||"function"==typeof t||Object.keys(e).some(e=>A.includes(e))?{captureContext:e}:e}}let A=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"]},93342:(e,t,n)=>{"use strict";let r=Symbol("SemVer ANY");
213class i{static get ANY(){return r}constructor(e,t){if(t=o(t),e instanceof i)if(!!t.loose===e.loose)return e;else e=e.value;u("comparator",e=e.trim().split(/\s+/).join(" "),t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===r?this.value="":this.value=this.operator+this.semver.version,u("comp",this)}parse(e){let t=this.options.loose?a[s.COMPARATORLOOSE]:a[s.COMPARATOR],n=e.match(t);if(!n)throw TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new c(n[2],this.options.loose):this.semver=r}toString(){return this.value}test(e){if(u("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new c(e,this.options)}catch(e){return!1}return l(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof i))throw TypeError("a Comparator is required");return""===this.operator?""===this.value||new d(e.value,t).test(this.value):""===e.operator?""===e.value||new d(this.value,t).test(e.semver):!((t=o(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||l(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||l(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">"))}}e.exports=i;let o=n(97793),{safeRe:a,t:s}=n(52458),l=n(48835),u=n(96818),c=n(80726),d=n(74907)},93588:(e,t,n)=>{"use strict";function r(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}n.d(t,{C:()=>s,Q:()=>c,u4:()=>r});var i={0:8203,1:8204,2:8205,3:8290,4:8291,5:8288,6:65279,7:8289,8:119155,9:119156,a:119157,b:119158,c:119159,d:119160,e:119161,f:119162},o={0:8203,1:8204,2:8205,3:65279},a=[,,,,].fill(String.fromCodePoint(o[0])).join("");function s(e,t,n="auto"){let r;return!0===n||"auto"===n&&(!(!Number.isNaN(Number(e))||/[a-z]/i.test(e)&&!/\d+(?:[-:\/]\d+){2}(?:T\d+(?:[-:\/]\d+){1,2}(\.\d+)?Z?)?/.test(e))&&Date.parse(e)||function(e){try{new URL(e,e.startsWith("/")?"https://acme.com":void 0)}catch{return!1}return!0}(e))?e:`${e}${r=JSON.stringify(t),`${a}${Array.from(r).map(e=>{let t=e.charCodeAt(0);if(t>255)throw Error(`Only ASCII edit info can be encoded. Error attempting to encode ${r} on character ${e} (${t})`);return Array.from(t.toString(4).padStart(4,"0")).map(e=>String.fromCodePoint(o[e])).join("")}).join("")}`}`}Object.fromEntries(Object.entries(o).map(e=>e.reverse())),Object.fromEntries(Object.entries(i).map(e=>e.reverse()));var l=`${Object.values(i).map(e=>`\\u{${e.toString(16)}}`).join("")}`,u=RegExp(`[${l}]{4,}`,"gu");function c(e){var t,n;return e&&JSON.parse({cleaned:(t=JSON.stringify(e)).replace(u,""),encoded:(null==(n=t.match(u))?void 0:n[0])||""}.cleaned)}},93641:(e,t,n)=>{"use strict";n.d(t,{U5:()=>s,jM:()=>u});var r=n(7531),i=n(77327),o=n(82203);(0,o.forwardRef)(function(e,t){return(0,r.jsxs)("svg",{"data-sanity-icon":"groq-logo",height:"1em",viewBox:"0 0 304 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,r.jsx)("path",{d:"M32 0L0 32H32V0Z",fill:i.OZ.magenta[400].hex}),(0,r.jsx)("path",{d:"M32 32H0L32 64V32Z",fill:i.OZ.green[300].hex}),(0,r.jsx)("path",{d:"M64 32H32V64L64 32Z",fill:i.OZ.purple[300].hex}),(0,r.jsx)("path",{d:"M112 0L80 32H112V0Z",fill:i.OZ.green[300].hex}),(0,r.jsx)("path",{d:"M112 0H80V32L112 0Z",fill:i.OZ.purple[300].hex}),(0,r.jsx)("path",{d:"M112 32H80L112 64V32Z",fill:i.OZ.yellow[200].hex}),(0,r.jsx)("path",{d:"M144 64L112 32V64H144Z",fill:i.OZ.blue[300].hex}),(0,r.jsx)("path",{d:"M80 32V64H112L80 32Z",fill:i.OZ.orange[400].hex}),(0,r.jsx)("path",{d:"M112 0V32H144L112 0Z",fill:i.OZ.magenta[400].hex}),(0,r.jsx)("path",{d:"M192 0L160 32H192V0Z",fill:i.OZ.yellow[200].hex}),(0,r.jsx)("path",{d:"M192 32H160L192 64V32Z",fill:i.OZ.orange[400].hex}),(0,r.jsx)("path",{d:"M224 32H192V64L224 32Z",fill:i.OZ.green[300].hex}),(0,r.jsx)("path",{d:"M192 0V32H224L192 0Z",fill:i.OZ.blue[300].hex}),(0,r.jsx)("path",{d:"M272 0L240 32H272V0Z",fill:i.OZ.purple[300].hex}),(0,r.jsx)("path",{d:"M304 32L272 64H304V32Z",fill:i.OZ.magenta[400].hex}),(0,r.jsx)("path",{d:"M272 32H240L272 64V32Z",fill:i.OZ.blue[300].hex}),(0,r.jsx)("path",{d:"M304 32H272V64L304 32Z",fill:i.OZ.yellow[200].hex}),(0,r.jsx)("path",{d:"M272 0V32H304L272 0Z",fill:i.OZ.green[300].hex})]})}).displayName="ForwardRef(GroqLogo)",(0,o.forwardRef)(function(e,t){return(0,r.jsxs)("svg",{"data-sanity-icon":"groq-monogram",width:"1em",height:"1em",viewBox:"0 0 128 128",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,r.jsx)("rect",{width:"128",height:"128",rx:"8",fill:i.OZ.green[950].hex}),(0,r.jsx)("rect",{y:"32",width:"64",height:"64",fill:i.OZ.green[800].hex}),(0,r.jsx)("path",{d:"M64 32L32 64H64V32Z",fill:i.OZ.magenta[400].hex}),(0,r.jsx)("path",{d:"M64 64H32L64 96V64Z",fill:i.OZ.green[300].hex}),(0,r.jsx)("path",{d:"M96 64H64V96L96 64Z",fill:i.OZ.purple[300].hex})]})}).displayName="ForwardRef(GroqMonogram)";let a="#0D0E12",s=(0,o.forwardRef)(function(e,t){let{dark:n,...o}=e,s=n?i.ON.hex:a;return(0,r.jsxs)("svg",{"data-sanity-icon":"sanity-logo",height:"1em",viewBox:"0 0 435 154",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o,ref:t,children:[(0,r.jsx)("path",{d:"M44.883 52.4463C33.4181 43.7972 21.8121 37.1021 21.8121 27.3381C21.8121 21.482 26.9827 15.4851 34.1181 15.4851C46.983 15.4851 54.5302 28.8754 61.942 45.6103H66.5538
213V7.11182H34.3946C7.82952 7.11182 0 23.1543 0 35.7055C0 52.1647 13.5649 61.9287 28.9416 73.365C39.7064 81.3158 48.7948 88.7092 48.7948 97.2175C48.7948 106.424 42.5006 111.723 34.5299 111.723C26.0004 111.723 13.4178 100.562 4.60595 77.4137H0V120.096H36.777C59.4302 120.096 70.7539 102.24 71.1716 87.876C71.7304 71.1411 57.3302 61.7937 44.883 52.4463Z",fill:s}),(0,r.jsx)("path",{d:"M145.002 106.841V61.7878C145.002 42.2598 132.837 37.1021 115.219 37.1021H83.8952L84.0364 68.9054H89.2071C94.6601 55.3743 102.49 45.4754 110.878 45.4754C118.149 45.4754 121.366 51.7539 121.366 58.3082V64.4459C109.619 71.4227 78.301 77.2788 78.301 98.4791C78.301 110.754 86.8306 120.935 99.2778 120.935C110.043 120.935 117.454 113.958 121.231 105.732C121.931 112.568 126.402 120.096 136.614 120.096H152.696V113.958C147.525 113.958 145.008 110.473 145.008 106.847L145.002 106.841ZM120.949 99.8639C118.713 103.074 115.213 106.7 111.019 106.7C105.148 106.7 101.372 102.234 101.372 93.3096C101.372 83.129 115.072 76.5746 120.949 71.6926V99.8697V99.8639Z",fill:s}),(0,r.jsx)("path",{d:"M270.145 28.4529C279.092 28.4529 284.686 22.1744 284.686 14.0885C284.686 6.00274 279.092 0 270.145 0C261.198 0 255.462 5.99688 255.462 14.0885C255.462 22.1802 261.474 28.4529 270.145 28.4529Z",fill:s}),(0,r.jsx)("path",{d:"M409.135 37.102V43.2397C417.947 43.2397 420.459 47.84 416.129 60.2563L405.641 88.5683L392.217 54.1186C389.141 47.4234 390.817 43.2397 397.252 43.2397V37.102H330.557V9.20654H324.263C322.446 18.6889 312.516 37.102 295.598 37.102V43.2397H306.504V100.568C306.504 110.191 309.722 121.07 328.457 121.07H357.54V89.5482H352.37C350.269 96.9417 345.94 111.723 336.569 111.723C331.399 111.723 330.557 106.002 330.557 101.401V45.8861H357.264C360.481 45.8861 363.834 46.3027 365.511 50.2106L393.894 120.231C388.441 132.647 379.07 134.595 362.293 129.437V153.988C366.629 153.988 377.811 154.129 379.77 153.572C390.817 150.362 398.364 128.745 401.441 120.378L425.488 55.521C428.147 48.4092 430.382 43.2456 434.994 43.2456V37.1079H409.129L409.135 37.102Z",fill:s}),(0,r.jsx)("path",{d:"M237.703 106.841V59.2764C237.703 44.3546 230.574 35.4238 216.45 35.4238C204.009 35.4238 196.803 44.0319 191.279 52.0414V37.0961H159.396V43.2338C164.849 43.2338 167.226 46.5785 167.226 50.4864V106.835C167.226 110.602 164.432 113.947 159.396 113.947V120.084H199.109V113.947C194.073 113.947 191.279 110.602 191.279 106.835V59.646C194.503 55.3743 198.214 50.7681 204.42 50.7681C210.291 50.7681 213.65 55.5093 213.65 61.2303V106.841C213.65 110.608 210.856 113.952 205.82 113.952V120.09H245.533V113.952C240.497 113.952 237.703 110.608 237.703 106.841Z",fill:s}),(0,r.jsx)("path",{d:"M284.127 106.841V37.1021H252.245V43.2398C257.698 43.2398 260.074 46.5844 260.074 50.4923V106.841C260.074 110.608 257.28 113.952 252.245 113.952V120.09H291.957V113.952C286.922 113.952 284.127 110.608 284.127 106.841Z",fill:s})]})});s.displayName="ForwardRef(SanityLogo)";let l={light:{bg:i.ON.hex,fg:a},dark:{bg:a,fg:i.ON.hex},default:{bg:"#FF5500",fg:a}},u=(0,o.forwardRef)(function(e,t){let{scheme:n="default",color:i,...o}=e,a=i?.bg1||l[n].bg,s=i?.fg||l[n].fg;return(0,r.jsxs)("svg",{"data-sanity-icon":"sanity-monogram",height:"1em",viewBox:"0 0 192 192",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o,ref:t,children:[(0,r.jsx)("rect",{width:"192",height:"192",fill:a}),(0,r.jsx)("path",{d:"M160.077 112.697L154.865 103.629L129.659 118.981L157.655 83.3368L161.888 80.8533L160.841 79.2802L162.764 76.8232L153.929 69.4699L149.886 74.6225L68.2657 122.375L98.4429 86.0855L154.651 55.2759L149.311 44.953L118.696 61.7277L133.771 43.6096L125.134 36L91.2055 76.7966L57.5083 95.2771L83.307 61.1709L99.4731 52.757L94.3391 42.3192L47.2403 66.8361L60.0839 49.8405L51.1123 42.6551L24 78.5378L24.4207 78.8736L29.486 89.1877L59.543 73.5354L32.1474 109.745L36.6375 113.342L39.3075 118.504L70.9528 101.154L36.1052 143.065L44.742 150.674L46.4762 148.588L130.543 99.2454L102.632 134.792L103.088 135.172L103.045 135.199L108.831 145.265L145.954 122.649L131.659 145.716L141.24 152L164 115.278L160.077 112.697Z",fill:s})]})});u.displayName="ForwardRef(SanityMonogram)"},93718:(e,t,n)=>{var r=n(26943);e.exports=function(){return r.Date.now()}},93759:(e,t,n)=>{"use strict";var r=n(44316).default;
213Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(31976));t.default={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return(0,i.default)("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):(0,i.default)(n+1,2)},d:function(e,t){return(0,i.default)(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return(0,i.default)(e.getUTCHours()%12||12,t.length)},H:function(e,t){return(0,i.default)(e.getUTCHours(),t.length)},m:function(e,t){return(0,i.default)(e.getUTCMinutes(),t.length)},s:function(e,t){return(0,i.default)(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=Math.floor(e.getUTCMilliseconds()*Math.pow(10,n-3));return(0,i.default)(r,t.length)}},e.exports=t.default},94126:(e,t,n)=>{"use strict";n.d(t,{H:()=>o,_:()=>i});var r=n(58555);function i(e,t,n,r,i){return new o(e,t,n,r,i)}var o=function(e){function t(t,n,r,i,o,a){var s=e.call(this,t)||this;return s.onFinalize=o,s.shouldUnsubscribe=a,s._next=n?function(e){try{n(e)}catch(e){t.error(e)}}:e.prototype._next,s._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,s._complete=r?function(){try{r()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,s}return(0,r.C6)(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),n||null==(t=this.onFinalize)||t.call(this)}},t}(n(14518).vU)},94174:(e,t,n)=>{"use strict";n.d(t,{B:()=>a});var r=n(43048),i=n(27778),o=n(94126);function a(e,t){return void 0===t&&(t=r.E),(0,i.N)(function(n,r){var i=null,a=null,s=null,l=function(){if(i){i.unsubscribe(),i=null;var e=a;a=null,r.next(e)}};function u(){var n=s+e,o=t.now();if(o<n){i=this.schedule(void 0,n-o),r.add(i);return}l()}n.subscribe((0,o._)(r,function(n){a=n,s=t.now(),i||(i=t.schedule(u,e),r.add(i))},function(){l(),r.complete()},void 0,function(){a=i=null}))})}},94188:(e,t,n)=>{var r=n(1247),i=n(11088),o=n(29386);e.exports=function(e){return function(t,n,a){var s=Object(t);if(!i(t)){var l=r(n,3);t=o(t),n=function(e){return l(s[e],e,s)}}var u=e(t,n,a);return u>-1?s[l?t[u]:u]:void 0}}},94232:(e,t,n)=>{var r=n(96216),i=n(56957),o=n(74883),a=o&&o.isMap;e.exports=a?i(a):r},94598:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},94708:e=>{e.exports=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}},94912:(e,t,n)=>{"use strict";n.d(t,{xQ:()=>o});var r=n(82203),i=n(32039);function o(e=!0){let t=(0,r.useContext)(i.t);if(null===t)return[!0,null];let{isPresent:n,onExitComplete:a,register:s}=t,l=(0,r.useId)();(0,r.useEffect)(()=>{if(e)return s(l)},[e]);let u=(0,r.useCallback)(()=>e&&a&&a(l),[l,a,e]);return!n&&a?[!1,u]:[!0]}},94964:(e,t,n)=>{"use strict";e.exports=n(9692)},95085:(e,t,n)=>{"use strict";n.d(t,{Q:()=>s});var r=n(27778),i=n(94126),o=n(12884),a=n(22303);function s(e){return(0,r.N)(function(t,n){(0,o.Tg)(e).subscribe((0,i._)(n,function(){return n.complete()},a.l)),n.closed||t.subscribe(n)})}},95215:e=>{function t(e,t,n,r){return Math.round(e/n)+" "+r+(t>=1.5*n?"s":"")}
213e.exports=function(e,n){n=n||{};var r,i,o,a,s=typeof e;if("string"===s&&e.length>0){var l=e;if(!((l=String(l)).length>100)){var u=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(l);if(u){var c=parseFloat(u[1]);switch((u[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*c;case"weeks":case"week":case"w":return 6048e5*c;case"days":case"day":case"d":return 864e5*c;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*c;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*c;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*c;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:break}}}return}if("number"===s&&isFinite(e)){return n.long?(i=Math.abs(r=e))>=864e5?t(r,i,864e5,"day"):i>=36e5?t(r,i,36e5,"hour"):i>=6e4?t(r,i,6e4,"minute"):i>=1e3?t(r,i,1e3,"second"):r+" ms":(a=Math.abs(o=e))>=864e5?Math.round(o/864e5)+"d":a>=36e5?Math.round(o/36e5)+"h":a>=6e4?Math.round(o/6e4)+"m":a>=1e3?Math.round(o/1e3)+"s":o+"ms"}throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},95492:(e,t,n)=>{var r=n(91233),i=n(15809);e.exports=function(e,t){return e&&r(t,i(t),e)}},95507:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},95618:(e,t,n)=>{"use strict";n.d(t,{H:()=>d});var r=n(7350),i=n(82326),o=n(58555),a=(n(56769),n(27778)),s=n(94126),l=n(38628),u=n(8883),c=n(17953);function d(e,t){var n=arguments.length>=2;return function(d){return d.pipe(e?(0,i.p)(function(t,n){return e(t,n,d)}):c.D,(0,a.N)(function(e,t){var n=[];e.subscribe((0,s._)(t,function(e){n.push(e),1<n.length&&n.shift()},function(){var e,r;try{for(var i=(0,o.Ju)(n),a=i.next();!a.done;a=i.next()){var s=a.value;t.next(s)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}t.complete()},void 0,function(){n=null}))}),n?(0,u.U)(t):(0,l.v)(function(){return new r.G}))}}},95620:(e,t,n)=>{var r=n(94598);e.exports=function(e,t){return r(t,function(t){return[t,e[t]]})}},95746:(e,t,n)=>{"use strict";n.d(t,{$N:()=>a,Hd:()=>o,xE:()=>s});var r=n(29378);let i=n(6541).O;function o(e,t={}){if(!e)return"<unknown>";try{let n,o=e,a=[],s=0,l=0,u=Array.isArray(t)?t:t.keyAttrs,c=!Array.isArray(t)&&t.maxStringLength||80;for(;o&&s++<5&&(n=function(e,t){let n=[];if(!e||!e.tagName)return"";if(i.HTMLElement&&e instanceof HTMLElement&&e.dataset){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}n.push(e.tagName.toLowerCase());let o=t&&t.length?t.filter(t=>e.getAttribute(t)).map(t=>[t,e.getAttribute(t)]):null;if(o&&o.length)o.forEach(e=>{n.push(`[${e[0]}="${e[1]}"]`)});else{e.id&&n.push(`#${e.id}`);let t=e.className;if(t&&(0,r.Kg)(t))for(let e of t.split(/\s+/))n.push(`.${e}`)}for(let t of["aria-label","type","name","title","alt"]){let r=e.getAttribute(t);r&&n.push(`[${t}="${r}"]`)}return n.join("")}(o,u),"html"!==n&&(!(s>1)||!(l+3*a.length+n.length>=c)));)a.push(n),l+=n.length,o=o.parentNode;return a.reverse().join(" > ")}catch(e){return"<unknown>"}}function a(){try{return i.document.location.href}catch(e){return""}}function s(e){if(!i.HTMLElement)return null;let t=e;for(let e=0;e<5&&t;e++){if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}},95890:(e,t,n)=>{"use strict";n.d(t,{s:()=>i});var r=n(34293);function i(e){return(0,r.G)(e)&&"offsetHeight"in e}},95973:(e,t,n)=>{var r=n(52834);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},95997:(e,t,n)=>{var r=n(8832),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},95999:(e,t,n)=>{var r=n(69571),i=n(17822),o=n(84169);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},96101:(e,t,n)=>{"use strict";n.d(t,{J:()=>v,N:()=>E});var r=n(17884),i=n(82203),o=n(13012),a=n(92010),s=n(15319),l=n(29013),u=n(23548),c=n(61557),d=n(79446),f=n(23989),h=n(49903);let p=i.createContext(!0);function g(){throw Error("A function wrapped in useEffectEvent can't be called during rendering.")}function m(e){return"function"==typeof e?e():e}let y=new WeakMap;function v(e,t){let n,l,u,c,h,p=(0,r.c)(9);
213if(!y.has(e)){let t={didEmit:!1},n={state:t,observable:e.pipe((0,d.T)(k),(0,o.W)(x),(0,f.M)(e=>{let{snapshot:n,error:r}=e;t.didEmit=!0,t.snapshot=n,t.error=r}),(0,d.T)(w),(0,a.j)(()=>y.delete(e)),(0,s.u)({resetOnRefCountZero:b})),getSnapshot:e=>{if(t.error)throw t.error;return t.didEmit?t.snapshot:m(e)}};n.observable.subscribe().unsubscribe(),y.set(e,n)}p[0]!==e?(l=y.get(e),p[0]=e,p[1]=l):l=p[1],n=l,p[2]!==n.observable?(u=e=>{let t=n.observable.subscribe(e);return()=>{t.unsubscribe()}},p[2]=n.observable,p[3]=u):u=p[3];let g=u;return p[4]!==t||p[5]!==n?(c=()=>n.getSnapshot(t),p[4]=t,p[5]=n,p[6]=c):c=p[6],p[7]!==t?(h=typeof t>"u"?void 0:()=>m(t),p[7]=t,p[8]=h):h=p[8],(0,i.useSyncExternalStore)(g,c,h)}function b(){return(0,l.O)(0,u.$)}function w(e){}function x(e){return(0,c.of)({snapshot:void 0,error:e})}function k(e){return{snapshot:e,error:void 0}}function E(e){let t,n,o,a=(0,r.c)(7),[s]=(0,i.useState)(_),[l,u]=s;a[0]!==e?(t=t=>e(t),a[0]=e,a[1]=t):t=a[1];let c=function(e){let t=i.useRef(g);return i.useInsertionEffect(()=>{t.current=e},[e]),(...e)=>((()=>{try{return i.use(p)}catch{return!1}})()&&g(),(0,t.current)(...e))}(t);return a[2]!==l||a[3]!==c?(n=()=>{let e=l.pipe(e=>c(e)).subscribe();return()=>e.unsubscribe()},a[2]=l,a[3]=c,a[4]=n):n=a[4],a[5]!==l?(o=[l],a[5]=l,a[6]=o):o=a[6],(0,i.useEffect)(n,o),u}function _(){return(0,h.t)()}},96193:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(18659),i=n(47528),o=n(71260);function a(e,t){(0,o.A)(2,arguments);var n=(0,i.A)(e),a=(0,r.A)(t);return n.setDate(a),n}},96216:(e,t,n)=>{var r=n(15831),i=n(78946);e.exports=function(e){return i(e)&&"[object Map]"==r(e)}},96330:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(29449),i=n(7688),o=n(48914),a=n(33157),s=n(8729),l=n(47528),u=n(16547),c=n(71260),d=n(18659);function f(e,t,n){(0,c.A)(2,arguments);var f,h,p,g,m,y,v,b,w,x,k,E=(0,l.A)(e),_=(0,l.A)(t),S=(0,r.q)(),A=null!=(f=null!=(h=null==n?void 0:n.locale)?h:S.locale)?f:a.A,T=(0,d.A)(null!=(p=null!=(g=null!=(m=null!=(y=null==n?void 0:n.weekStartsOn)?y:null==n||null==(v=n.locale)||null==(b=v.options)?void 0:b.weekStartsOn)?m:S.weekStartsOn)?g:null==(w=S.locale)||null==(x=w.options)?void 0:x.weekStartsOn)?p:0);if(!A.localize)throw RangeError("locale must contain localize property");if(!A.formatLong)throw RangeError("locale must contain formatLong property");if(!A.formatRelative)throw RangeError("locale must contain formatRelative property");var C=(0,i.A)(E,_);if(isNaN(C))throw RangeError("Invalid time value");k=C<-6?"other":C<-1?"lastWeek":C<0?"yesterday":C<1?"today":C<2?"tomorrow":C<7?"nextWeek":"other";var O=(0,s.A)(E,(0,u.A)(E)),j=(0,s.A)(_,(0,u.A)(_)),D=A.formatRelative(k,O,j,{locale:A,weekStartsOn:T});return(0,o.A)(E,D,{locale:A,weekStartsOn:T})}},96408:(e,t,n)=>{var r=n(72925);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},96524:(e,t,n)=>{"use strict";let r=n(74907);e.exports=(e,t)=>{try{return new r(e,t).range||"*"}catch(e){return null}}},96651:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(28576),i=n(47528),o=n(18659),a=n(71260),s=n(29449);function l(e,t){(0,a.A)(1,arguments);var n=(0,i.A)(e);return Math.round(((0,r.A)(n,t).getTime()-(function(e,t){(0,a.A)(1,arguments);var n,l,u,c,d,f,h,p,g=(0,s.q)(),m=(0,o.A)(null!=(n=null!=(l=null!=(u=null!=(c=null==t?void 0:t.firstWeekContainsDate)?c:null==t||null==(d=t.locale)||null==(f=d.options)?void 0:f.firstWeekContainsDate)?u:g.firstWeekContainsDate)?l:null==(h=g.locale)||null==(p=h.options)?void 0:p.firstWeekContainsDate)?n:1),y=function(e,t){(0,a.A)(1,arguments);var n,l,u,c,d,f,h,p,g=(0,i.A)(e),m=g.getFullYear(),y=(0,s.q)(),v=(0,o.A)(null!=(n=null!=(l=null!=(u=null!=(c=null==t?void 0:t.firstWeekContainsDate)?c:null==t||null==(d=t.locale)||null==(f=d.options)?void 0:f.firstWeekContainsDate)?u:y.firstWeekContainsDate)?l:null==(h=y.locale)||null==(p=h.options)?void 0:p.firstWeekContainsDate)?n:1);if(!(v>=1&&v<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setFullYear(m+1,0,v),b.setHours(0,0,0,0);var w=(0,r.A)(b,t),x=new Date(0);x.setFullYear(m,0,v),x.setHours(0,0,0,0);var k=(0,r.A)(x,t);return g.getTime()>=w.getTime()?m+1:g.getTime()>=k.getTime()?m:m-1}(e,t),v=new Date(0);return v.setFullYear(y,0,m),v.setHours(0,0,0,0),(0,r.A)(v,t)})(n,t).getTime())/6048e5)+1}},96694:(e,t,n)=>{"use strict";n.d(t,{a3:()=>s,m7:()=>l,vm:()=>a});var r=n(22324),i=n(87086);let o=n(6541).O;function a(){if(!("fetch"in o))return!1;
213try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function s(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function l(){if("string"==typeof EdgeRuntime)return!0;if(!a())return!1;if(s(o.fetch))return!0;let e=!1,t=o.document;if(t&&"function"==typeof t.createElement)try{let n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=s(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){r.T&&i.vF.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}},96818:(e,t,n)=>{"use strict";var r=n(55036);e.exports="object"==typeof r&&r.env&&r.env.NODE_DEBUG&&/\bsemver\b/i.test(r.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{}},96833:(e,t,n)=>{e.exports=n(18274)(n(26943),"Set")},96844:(e,t,n)=>{var r=n(6586);e.exports=function(e){var t=r(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},96856:(e,t,n)=>{var r=n(88002);e.exports=function(e,t){if(e!==t){var n=void 0!==e,i=null===e,o=e==e,a=r(e),s=void 0!==t,l=null===t,u=t==t,c=r(t);if(!l&&!c&&!a&&e>t||a&&s&&u&&!l&&!c||i&&s&&u||!n&&u||!o)return 1;if(!i&&!a&&!c&&e<t||c&&n&&o&&!i&&!a||l&&n&&o||!s&&o||!u)return -1}return 0}}
213,96912:(e,t,n)=>{var r=n(87e3),i=n(12953),o=n(29203),a=n(88567),s=n(78946),l=n(2427),u=Object.prototype.hasOwnProperty;function c(e){if(s(e)&&!a(e)&&!(e instanceof r)){if(e instanceof i)return e;if(u.call(e,"__wrapped__"))return l(e)}return new i(e)}c.prototype=o.prototype,c.prototype.constructor=c,e.exports=c},96960:(e,t,n)=>{var r=n(94598);e.exports=function(e,t){return r(t,function(t){return e[t]})}},97230:(e,t,n)=>{"use strict";function r(e,t,n){let r,i=n.initialDeps??[];function o(){var o,a,s,l;let u,c;n.key&&(null==(o=n.debug)?void 0:o.call(n))&&(u=Date.now());let d=e();if(!(d.length!==i.length||d.some((e,t)=>i[t]!==e)))return r;if(i=d,n.key&&(null==(a=n.debug)?void 0:a.call(n))&&(c=Date.now()),r=t(...d),n.key&&(null==(s=n.debug)?void 0:s.call(n))){let e=Math.round((Date.now()-u)*100)/100,t=Math.round((Date.now()-c)*100)/100,r=t/16,i=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${i(t,5)} /${i(e,5)} ms`,`
214            font-size: .6rem;
215            font-weight: bold;
216            color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,null==n?void 0:n.key)}return null==(l=null==n?void 0:n.onChange)||l.call(n,r),r}return o.updateDeps=e=>{i=e},o}function i(e,t){if(void 0!==e)return e;throw Error(`Unexpected undefined${t?`: ${t}`:""}`)}n.d(t,{YV:()=>p,vp:()=>s,Ox:()=>h,AO:()=>d,T6:()=>l});let o=e=>{let{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},a=e=>e,s=e=>{let t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let e=t;e<=n;e++)r.push(e);return r},l=(e,t)=>{let n=e.scrollElement;if(!n)return;let r=e.targetWindow;if(!r)return;let i=e=>{let{width:n,height:r}=e;t({width:Math.round(n),height:Math.round(r)})};if(i(o(n)),!r.ResizeObserver)return()=>{};let a=new r.ResizeObserver(t=>{let r=()=>{let e=t[0];if(null==e?void 0:e.borderBoxSize){let t=e.borderBoxSize[0];if(t)return void i({width:t.inlineSize,height:t.blockSize})}i(o(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(r):r()});return a.observe(n,{box:"border-box"}),()=>{a.unobserve(n)}},u={passive:!0},c="undefined"==typeof window||"onscrollend"in window,d=(e,t)=>{let n=e.scrollElement;if(!n)return;let r=e.targetWindow;if(!r)return;let i=0,o=e.options.useScrollendEvent&&c?()=>void 0:((e,t,n)=>{let r;return function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n)}})(r,()=>{t(i,!1)},e.options.isScrollingResetDelay),a=r=>()=>{let{horizontal:a,isRtl:s}=e.options;i=a?n.scrollLeft*(s&&-1||1):n.scrollTop,o(),t(i,r)},s=a(!0),l=a(!1);l(),n.addEventListener("scroll",s,u);let d=e.options.useScrollendEvent&&c;return d&&n.addEventListener("scrollend",l,u),()=>{n.removeEventListener("scroll",s),d&&n.removeEventListener("scrollend",l)}},f=(e,t,n)=>{if(null==t?void 0:t.borderBoxSize){let e=t.borderBoxSize[0];if(e)return Math.round(e[n.options.horizontal?"inlineSize":"blockSize"])}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},h=(e,{adjustments:t=0,behavior:n},r)=>{var i,o;null==(o=null==(i=r.scrollElement)?void 0:i.scrollTo)||o.call(i,{[r.options.horizontal?"left":"top"]:e+t,behavior:n})};class p{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null,t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{let t=()=>{this._measureElement(e.target,e)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()})}):null);return{disconnect:()=>{var n;null==(n=t())||n.disconnect(),e=null},observe:e=>{var n;return null==(n=t())?void 0:n.observe(e,{box:"border-box"})},unobserve:e=>{var n;return null==(n=t())?void 0:n.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([t,n])=>{void 0===n&&delete e[t]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:a,rangeExtractor:s,onChange:()=>{},measureElement:f,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...e}},this.notify=e=>{var t,n;null==(n=(t=this.options).onChange)||n.call(t,this,e)},this.maybeNotify=r(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>
216{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;let t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t)return void this.maybeNotify();this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,t)=>{let n=new Map,r=new Map;for(let i=t-1;i>=0;i--){let t=e[i];if(n.has(t.lane))continue;let o=r.get(t.lane);if(null==o||t.end>o.end?r.set(t.lane,t):t.end<o.end&&n.set(t.lane,!0),n.size===this.options.lanes)break}return r.size===this.options.lanes?Array.from(r.values()).sort((e,t)=>e.end===t.end?e.index-t.index:e.end-t.end)[0]:void 0},this.getMeasurementOptions=r(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,t,n,r,i)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i}),{key:!1}),this.getMeasurements=r(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i},o)=>{if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),[];0===this.measurementsCache.length&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));let a=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let s=this.measurementsCache.slice(0,a);for(let i=a;i<e;i++){let e=r(i),a=1===this.options.lanes?s[i-1]:this.getFurthestMeasurement(s,i),l=a?a.end+this.options.gap:t+n,u=o.get(e),c="number"==typeof u?u:this.options.estimateSize(i),d=l+c,f=a?a.lane:i%this.options.lanes;s[i]={index:i,start:l,size:c,end:d,key:e,lane:f}}return this.measurementsCache=s,s},{key:!1,debug:()=>this.options.debug}),this.calculateRange=r(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,n,r)=>this.range=e.length>0&&t>0?function({measurements:e,outerSize:t,scrollOffset:n,lanes:r}){let i=e.length-1;if(e.length<=r)return{startIndex:0,endIndex:i};let o=g(0,i,t=>e[t].start,n),a=o;if(1===r)for(;a<i&&e[a].end<n+t;)a++;else if(r>1){let s=Array(r).fill(0);for(;a<i&&s.some(e=>e<n+t);){let t=e[a];s[t.lane]=t.end,a++}let l=Array(r).fill(n+t);for(;o>=0&&l.some(e=>e>=n);){let t=e[o];l[t.lane]=t.start,o--}o=Math.max(0,o-o%r),a=Math.min(i,a+(r-1-a%r))}return{startIndex:o,endIndex:a}}({measurements:e,outerSize:t,scrollOffset:n,lanes:r}):null,{key:!1,debug:()=>this.options.debug}
216),this.getVirtualIndexes=r(()=>{let e=null,t=null,n=this.calculateRange();return n&&(e=n.startIndex,t=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,n,r,i)=>null===r||null===i?[]:e({startIndex:r,endIndex:i,overscan:t,count:n}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this._measureElement=(e,t)=>{let n=this.indexFromElement(e),r=this.measurementsCache[n];if(!r)return;let i=r.key,o=this.elementsCache.get(i);o!==e&&(o&&this.observer.unobserve(o),this.observer.observe(e),this.elementsCache.set(i,e)),e.isConnected&&this.resizeItem(n,this.options.measureElement(e,t,this))},this.resizeItem=(e,t)=>{let n=this.measurementsCache[e];if(!n)return;let r=t-(this.itemSizeCache.get(n.key)??n.size);0!==r&&((void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(n,r,this):"backward"===this.scrollDirection&&n.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=r,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(n.index),this.itemSizeCache=new Map(this.itemSizeCache.set(n.key,t)),this.notify(!1))},this.measureElement=e=>{if(!e)return void this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))});this._measureElement(e,void 0)},this.getVirtualItems=r(()=>
216[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{let n=[];for(let r=0,i=e.length;r<i;r++){let i=t[e[r]];n.push(i)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();if(0!==t.length)return i(t[g(0,t.length-1,e=>i(t[e]).start,e)])},this.getOffsetForAlignment=(e,t,n=0)=>{let r=this.getSize(),i=this.getScrollOffset();return"auto"===t&&(t=e>=i+r?"end":"start"),"center"===t?e+=(n-r)/2:"end"===t&&(e-=r),Math.max(Math.min(this.getTotalSize()-r,e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let n=this.measurementsCache[e];if(!n)return;let r=this.getSize(),i=this.getScrollOffset();if("auto"===t)if(n.end>=i+r-this.options.scrollPaddingEnd)t="end";else{if(!(n.start<=i+this.options.scrollPaddingStart))return[i,t];t="start"}let o="end"===t?n.end+this.options.scrollPaddingEnd:n.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(o,t,n.size),t]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{null!==this.scrollToIndexTimeoutId&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(e,{align:t="start",behavior:n}={})=>{this.cancelScrollToIndex(),"smooth"===n&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,t),{adjustments:void 0,behavior:n})},this.scrollToIndex=(e,{align:t="auto",behavior:n}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),"smooth"===n&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");let r=this.getOffsetForIndex(e,t);if(!r)return;let[i,o]=r;this._scrollToOffset(i,{adjustments:void 0,behavior:n}),"smooth"!==n&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(e))){let t=this.getOffsetForIndex(e,o);if(!t)return;let[r]=t;1>=Math.abs(r-this.getScrollOffset())||this.scrollToIndex(e,{align:o,behavior:n})}else this.scrollToIndex(e,{align:o,behavior:n})}))},this.scrollBy=(e,{behavior:t}={})=>{this.cancelScrollToIndex(),"smooth"===t&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adju
216stments:void 0,behavior:t})},this.getTotalSize=()=>{var e;let t,n=this.getMeasurements();if(0===n.length)t=this.options.paddingStart;else if(1===this.options.lanes)t=(null==(e=n[n.length-1])?void 0:e.end)??0;else{let e=Array(this.options.lanes).fill(null),r=n.length-1;for(;r>=0&&e.some(e=>null===e);){let t=n[r];null===e[t.lane]&&(e[t.lane]=t.end),r--}t=Math.max(...e.filter(e=>null!==e))}return Math.max(t-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(e)}}let g=(e,t,n,r)=>{for(;e<=t;){let i=(e+t)/2|0,o=n(i);if(o<r)e=i+1;else{if(!(o>r))return i;t=i-1}}return e>0?e-1:0}},97288:(e,t,n)=>{var r=n(9044),i=n(82307),o=n(82261);e.exports=function(e,t){return o(i(e,t,r),e+"")}},97356:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(18659),i=n(47528),o=n(71260);function a(e,t){(0,o.A)(2,arguments);var n=(0,i.A)(e),a=(0,r.A)(t);return n.setMinutes(a),n}},97420:(e,t,n)=>{"use strict";var r=n(44316).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)({},e)};var i=r(n(18057));e.exports=t.default},97488:(e,t,n)=>{var r=n(63114);e.exports=function(e){return r(e).toLowerCase()}},97718:(e,t,n)=>{"use strict";n.d(t,{Y:()=>o,l:()=>a});var r=n(36116),i=null;function o(e){if(r.$.useDeprecatedSynchronousErrorHandling){var t=!i;if(t&&(i={errorThrown:!1,error:null}),e(),t){var n=i,o=n.errorThrown,a=n.error;if(i=null,o)throw a}}else e()}function a(e){r.$.useDeprecatedSynchronousErrorHandling&&i&&(i.errorThrown=!0,i.error=e)}},97783:(e,t,n)=>{"use strict";function r(e,t,n,r,i){void 0===r&&(r=0),void 0===i&&(i=!1);var o=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}n.d(t,{N:()=>r})},97793:e=>{"use strict";let t=Object.freeze({loose:!0}),n=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:n},98064:(e,t,n)=>{"use strict";n.d(t,{C:()=>o,U:()=>a});var r=n(58555),i=n(73315);function o(e){return(0,r.AQ)(this,arguments,function(){var t,n,i;return(0,r.YH)(this,function(o){switch(o.label){case 0:t=e.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,(0,r.N3)(t.read())];case 3:if(i=(n=o.sent()).value,!n.done)return[3,5];return[4,(0,r.N3)(void 0)];case 4:return[2,o.sent()];case 5:return[4,(0,r.N3)(i)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function a(e){return(0,i.T)(null==e?void 0:e.getReader)}},98244:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(75776),i=n(5605),o=n(71260),a=n(17304);function s(e,t,n){(0,o.A)(2,arguments);var s=(0,i.A)(e,t)/r.Cg;return(0,a.u)(null==n?void 0:n.roundingMethod)(s)}},98278:(e,t,n)=>{var r=n(50466),i=n(82030),o=n(3836);e.exports=function(e,t,n){for(var a=-1,s=t.length,l={};++a<s;){var u=t[a],c=r(e,u);n(c,u)&&i(l,o(u,e),c)}return l}},98368:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function y(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case s:case a:case f:case h:return e;default:switch(e=e&&e.$$typeof){case c:case u:case d:case g:case p:case l:return e;default:return t}}case i:return t}}}n=Symbol.for("react.module.reference"),t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=d,t.Fragment=o,t.Lazy=g,t.Memo=p,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.SuspenseList=h,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return y(e)===u},t.isContextProvider=function(e){return y(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return y(e)===d},t.isFragment=function(e){return y(e)===o},t.isLazy=function(e){return y(e)===g},t.isMemo=function(e){return y(e)===p},t.isPortal=function(e){return y(e)===i},t.isProfiler=function(e){return y(e)===s},t.isStrictMode=function(e){return y(e)===a},t.isSuspense=function(e){return y(e)===f},t.isSuspenseList=function(e){return y(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===s||e===a||e===f||e===h||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===p||e.$$typeof===l||e.$$typeof===u||e.$$typeof===d||e.$$typeof===n||void 0!==e.getModuleId)||!1},t.typeOf=y},98566:(e,t,n)=>{var r=n(29926),i=n(56957),o=n(74883),a=o&&o.isSet;e.exports=a?i(a):r}
216,98629:(e,t,n)=>{var r=n(1514),i=n(11657),o=n(64843);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:r(i(e))}},98753:(e,t,n)=>{"use strict";let r=n(5525);e.exports=(e,t,n)=>r(e,t,">",n)},99224:e=>{"use strict";e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}},99553:(e,t,n)=>{e.exports=n(94188)(n(51176))},99576:(e,t,n)=>{var r=n(57551);e.exports=function(e,t){for(var n=-1,i=e.length;++n<i&&r(t,e[n],0)>-1;);return n}},99647:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(28576),i=n(71260);function o(e){return(0,i.A)(1,arguments),function(e,t){return(0,i.A)(2,arguments),function(e,t,n){(0,i.A)(2,arguments);var o=(0,r.A)(e,n),a=(0,r.A)(t,n);return o.getTime()===a.getTime()}(e,t,{weekStartsOn:1})}(e,Date.now())}},99681:(e,t,n)=>{"use strict";let r=n(32112);e.exports=(e,t,n)=>r(e,t,n)>=0},99756:(e,t,n)=>{var r=n(34010),i=1/0;e.exports=function(e){return e?(e=r(e))===i||e===-i?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},99861:(e,t,n)=>{var r=n(68160),i=n(97288),o=n(25471),a=n(57127);e.exports=i(function(e){return o(r(e,1,a,!0))})},99912:(e,t,n)=>{var r=n(1786),i=n(78946),o=n(23851);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!o(e)}},99915:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(18659),i=n(47528),o=n(71260);function a(e,t){(0,o.A)(2,arguments);var n=(0,i.A)(e),a=(0,r.A)(t),s=n.getFullYear(),l=n.getDate(),u=new Date(0);u.setFullYear(s,a,15),u.setHours(0,0,0,0);var c=function(e){(0,o.A)(1,arguments);var t=(0,i.A)(e),n=t.getFullYear(),r=t.getMonth(),a=new Date(0);return a.setFullYear(n,r+1,0),a.setHours(0,0,0,0),a.getDate()}(u);return n.setMonth(a,Math.min(l,c)),n}}}]);

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.