PageSourceSearch

https://modamortgages.co.uk/_next/static/chunks/3346-fc27e7101afd5615.js

js modamortgages.co.uk collected 2026-10-08 01:58:44 UTC 1,245,305 bytes, 77 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3346],{25:(e,t,r)=>{"use strict";r.d(t,{j:()=>a});var n=r(41325),i=r(91864),s=r(13096);function a(e,t,r){var a,o,l;let{years:u=0,months:c=0,weeks:d=0,days:h=0,hours:f=0,minutes:p=0,seconds:m=0}=t,g=(a=c+12*u,o=(0,s.P)(e,-a,r),l=h+7*d,(0,i.f)(o,-l,r));return(0,n.w)((null==r?void 0:r.in)||e,g-1e3*(m+60*(p+60*f)))}},329:(e,t,r)=>{"use strict";r.d(t,{L:()=>f});var n=r(24617),i=r(28167),s=r(63),a=r(43523),o=r(52125),l=r(27381),u=r(2297),c=r(84841),d=r(81451),h=r(35159);function f(e){return t=>(0,n.v)(()=>{let r=new i.B;return t.pipe((0,o.n)(()=>r,{leading:!0,trailing:!0}),function e(t,r){return r?function(n){return n.pipe(e(function(e,n){return(0,u.Tg)(t(e,n)).pipe((0,l.T)(function(t,i){return r(e,t,n,i)}))}))}:(0,c.N)(function(e,r){var n=0,i=null,s=!1;e.subscribe((0,d._)(r,function(e){i||(i=(0,d._)(r,void 0,function(){i=null,s&&r.complete()}),(0,u.Tg)(t(e,n++)).subscribe(i))},function(){s=!0,i||r.complete()}))})}((t,n)=>(0,s.c)(e(t,n),a.E).pipe((0,h.j)(()=>{r.next()}))))})}},386:(e,t,r)=>{e.exports=r(43960)(r(36169),"Promise")},891:(e,t,r)=>{"use strict";let n=r(98520),i=r(97504),{ANY:s}=i,a=r(27353),o=r(38576),l=r(7700),u=r(5715),c=r(72458),d=r(9783);e.exports=(e,t,r,h)=>{let f,p,m,g,y;switch(e=new n(e,h),t=new a(t,h),r){case">":f=l,p=c,m=u,g=">",y=">=";break;case"<":f=u,p=d,m=l,g="<",y="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(o(e,t,h))return!1;for(let r=0;r<t.set.length;++r){let n=t.set[r],a=null,o=null;if(n.forEach(e=>{e.semver===s&&(e=new i(">=0.0.0")),a=a||e,o=o||e,f(e.semver,a.semver,h)?a=e:m(e.semver,o.semver,h)&&(o=e)}),a.operator===g||a.operator===y||(!o.operator||o.operator===g)&&p(e,o.semver)||o.operator===y&&m(e,o.semver))return!1}return!0}},985:(e,t,r)=>{"use strict";let n,i,s;r.d(t,{F:()=>j});var a=r(33900),o=r(33806),l=r(2541),u=r(29356);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 r=u.j[t],n=r&&r.prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,o.GS)(n,"addEventListener",function(t){return function(r,n,i){if("click"===r||"keypress"==r)try{let n=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},s=n[r]=n[r]||{refCount:0};if(!s.handler){let n=d(e);s.handler=n,t.call(this,r,n,i)}s.refCount++}catch(e){}return t.call(this,r,n,i)}}),(0,o.GS)(n,"removeEventListener",function(e){return function(t,r,n){if("click"===t||"keypress"==t)try{let r=this.__sentry_instrumentation_handlers__||{},i=r[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,n),i.handler=void 0,delete r[t]),0===Object.keys(r).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,r,n)}}))})}function d(e,t=!1){return r=>{var a;if(!r||r._sentryCaptured)return;let c=function(e){try{return e.target}catch(e){return null}}(r);if(a=r.type,"keypress"===a&&(!c||!c.tagName||"INPUT"!==c.tagName&&"TEXTAREA"!==c.tagName&&!c.isContentEditable&&1))return;(0,o.my)(r,"_sentryCaptured",!0),c&&!c._sentryId&&(0,o.my)(c,"_sentryId",(0,l.eJ)());let d="keypress"===r.type?"input":r.type;!function(e){if(e.type!==i)return!1;try{if(!e.target||e.target._sentryId!==s)return!1}catch(e){}return!0}(r)&&(e({event:r,name:d,global:t}),i=r.type,s=c?c._sentryId:void 0),clearTimeout(n),n=u.j.setTimeout(()=>{s=void 0,i=void 0},1e3)}}var h=r(29060),f=r(28077);let p="__sentry_xhr_v3__";function m(){if(!u.j.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,r){let n=Error(),i=1e3*(0,h.zf)(),s=(0,f.Kg)(r[0])?r[0].toUpperCase():void 0,o=function(e){if((0,f.Kg)(e))return e;try{return e.toString()}catch(e){}}(r[1]);if(!s||!o)return e.apply(t,r);t[p]={method:s,url:o,request_headers:{}},"POST"===s&&o.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 r={endTimestamp:1e3*(0,h.zf)(),startTimestamp:i,xhr:t,virtualError:n};(0,a.aj)("xhr",r)}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,r)=>(l(),e.apply(t,r))}):t.addEventListener("readystatechange",l),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,r){let[n,i]=r,s=t[p];return s&&(0,f.Kg)(n)&&(0,f.Kg)(i)&&(s.request_headers[n.toLowerCase()]=i),e.apply(t,r)}}),e.apply(t,r)}}),e.send=new Proxy(e.send,{apply(e,t,r){let n=t[p];if(!n)return e.apply(t,r);void 0!==r[0]&&(n.body=r[0]);let i={startTimestamp:1e3*(0,h.zf)(),xhr:t};return(0,a.aj)("xhr",i),e.apply(t,r)}})}var g=r(21782),y=r(87865),b=r(26088);
1function v(){"console"in b.O&&y.Ow.forEach(function(e){e in b.O.console&&(0,o.GS)(b.O.console,e,function(t){return y.Z9[e]=t,function(...t){(0,a.aj)("console",{args:t,level:e});let r=y.Z9[e];r&&r.apply(b.O.console,t)}})})}var _=r(63197);function w(e,t){return!!e&&"object"==typeof e&&!!e[t]}function x(e){return"string"==typeof e?e:e?w(e,"url")?e.url:e.toString?e.toString():"":""}var k=r(32785),E=r(23821);function S(e,t){let r=(0,E.KU)(),n=(0,E.rm)();if(!r)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:s=100}=r.getOptions();if(s<=0)return;let a={timestamp:(0,h.lu)(),...e},o=i?(0,y.pq)(()=>i(a,t)):a;null!==o&&(r.emit&&r.emit("beforeAddBreadcrumb",o,t),n.addBreadcrumb(o,s))}var A=r(53515),O=r(3352);function C(e){if(void 0!==e)return e>=400&&e<500?"warning":e>=500?"error":void 0}function T(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let r=t[6]||"",n=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:r,hash:n,relative:t[5]+r+n}}var I=r(72501),D=r(51622);let j=(0,k._C)((e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var r,n,i,s,u,d,k;t.console&&function(e){let t="console";(0,a.s5)(t,e),(0,a.AS)(t,v)}((r=e,function(e){var t;if((0,E.KU)()!==r)return;let n={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,O.gt)(e.args," ")};if("assert"===e.level)if(!1!==e.args[0])return;else n.message=`Assertion failed: ${(0,O.gt)(e.args.slice(1)," ")||"console.assert"}`,n.data.arguments=e.args.slice(1);S(n,{input:e.args,level:e.level})})),t.dom&&(n=e,i=t.dom,(0,a.s5)("dom",function(e){let t,r;if((0,E.KU)()!==n)return;let s="object"==typeof i?i.serializeAttribute:void 0,a="object"==typeof i&&"number"==typeof i.maxStringLength?i.maxStringLength:void 0;a&&a>1024&&(I.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 s&&(s=[s]);try{var o;let n=e.event,i=(o=n)&&o.target?n.target:n;t=(0,A.Hd)(i,{keyAttrs:s,maxStringLength:a}),r=(0,A.xE)(i)}catch(e){t="<unknown>"}if(0===t.length)return;let l={category:`ui.${e.name}`,message:t};r&&(l.data={"ui.component_name":r}),S(l,{event:e.event,name:e.name,global:e.global})}),(0,a.AS)("dom",c)),t.xhr&&(s=e,(0,a.s5)("xhr",function(e){if((0,E.KU)()!==s)return;let{startTimestamp:t,endTimestamp:r}=e,n=e.xhr[p];if(!t||!r||!n)return;let{method:i,url:a,status_code:o,body:l}=n,u={xhr:e.xhr,input:l,startTimestamp:t,endTimestamp:r};S({category:"xhr",data:{method:i,url:a,status_code:o},type:"http",level:C(o)},u)}),(0,a.AS)("xhr",m)),t.fetch&&function(e,t){let r="fetch";(0,a.s5)(r,e),(0,a.AS)(r,()=>(function(e,t=!1){(!t||(0,_.m7)())&&(0,o.GS)(b.O,"fetch",function(t){return function(...r){let n=Error(),{method:i,url:s}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,r]=e;return{url:x(t),method:w(r,"method")?String(r.method).toUpperCase():"GET"}}let t=e[0];return{url:x(t),method:w(t,"method")?String(t.method).toUpperCase():"GET"}}(r),l={args:r,fetchData:{method:i,url:s},startTimestamp:1e3*(0,h.zf)(),virtualError:n};return e||(0,a.aj)("fetch",{...l}),t.apply(b.O,r).then(async t=>(e?e(t):(0,a.aj)("fetch",{...l,endTimestamp:1e3*(0,h.zf)(),response:t}),t),e=>{throw(0,a.aj)("fetch",{...l,endTimestamp:1e3*(0,h.zf)(),error:e}),(0,f.bJ)(e)&&void 0===e.stack&&(e.stack=n.stack,(0,o.my)(e,"framesToPop",1)),e})}})})(void 0,void 0))}((u=e,function(e){if((0,E.KU)()!==u)return;let{startTimestamp:t,endTimestamp:r}=e;if(r&&(!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:r});else{let n=e.response,i={...e.fetchData,status_code:n&&n.status},s={input:e.args,response:n,startTimestamp:t,endTimestamp:r},a=C(i.status_code);S({category:"fetch",data:i,type:"http",level:a},s)}})),t.history&&(0,g._)((d=e,function(e){if((0,E.KU)()!==d)return;let t=e.from,r=e.to,n=T(D.jf.location.href),i=t?T(t):void 0,s=T(r);i&&i.path||(i=n),n.protocol===s.protocol&&n.host===s.host&&(r=s.relative),n.protocol===i.protocol&&n.host===i.host&&(t=i.relative),S({category:"navigation",data:{from:t,to:r}})})),t.sentry&&e.on("beforeSendEvent",(k=e,function(e){(0,E.KU)()===k&&S({category:`sentry.${"transaction"===e.type?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:(0,l.$X)(e)},{event:e})}))}}})},1053:(e,t,r)=>{var n=r(37864),i=r(45014);e.exports=function(e,t){return t.length<2?e:n(e,i(t,0,-1))}},1067:(e,t,r)=>{var n=r(80597);e.exports=function(e){return n(e,5)}},1445:(e,t,r)=>{var n=r(25473),i=r(25325),s=r(99577);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new s(a)}return r.set(e,t),this.size=r.size,this}},1723:(e,t,r)=>{"use strict";r.d(t,{L:()=>a});var n=r(41325),i=r(97537),s=r(86337);function a(e,t,r){var a;return a=t*s.s0,(0,n.w)((null==r?void 0:r.in)||e,+(0,i.a)(e)+a)}},1859:(e,t,r)=>{"use strict";r.d(t,{T:()=>s});var n=r(58558),i=r(84841);function s(e,t){return(0,i.N)((0,n.S)(e,t,arguments.length>=2,!1,!0))}},2541:(e,t,r)=>{"use strict";r.d(t,{$X:()=>o,GR:()=>c,M6:()=>u,eJ:()=>s,gO:()=>l});var n=r(33806),i=r(26088);function s(){let e=i.O,t=e.crypto||e.msCrypto,r=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(r=()=>{let e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return"10000000100040008000100000000000".replace(/[018]/g,e=>(e^(15&r())>>e/4).toString(16))}function a(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function o(e){let{message:t,event_id:r}=e;if(t)return t;let n=a(e);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"<unknown>":r||"<unknown>"}function l(e,t,r){let n=e.exception=e.exception||{},i=n.values=n.values||[],s=i[0]=i[0]||{};s.value||(s.value=t||""),s.type||(s.type=r||"Error")}function u(e,t){let r=a(e);if(!r)return;let n=r.mechanism;if(r.mechanism={type:"generic",handled:!0,...n,...t},t&&"data"in t){let e={...n&&n.data,...t.data};r.mechanism.data=e}}function c(e){if(function(e){try{return e.__sentry_captured__}catch(e){}}(e))return!0;try{(0,n.my)(e,"__sentry_captured__",!0)}catch(e){}return!1}},3060:(e,t,r)=>{"use strict";function n(e){return"https://www.sanity.io/docs/help/"+e}r.d(t,{i:()=>n})},3131:(e,t,r)=>{var n=r(18053);e.exports=function(e){return n(this.__data__,e)>-1}},3138:(e,t,r)=>{var n=r(79845),i=r(15536),s=r(99674),a=r(31709),o=r(27329),l=r(56803),u=n?n.prototype:void 0,c=u?u.valueOf:void 0;e.exports=function(e,t,r,n,u,d,h){switch(r){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 s(+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 f=o;case"[object Set]":var p=1&n;if(f||(f=l),e.size!=t.size&&!p)break;var m=h.get(e);if(m)return m==t;n|=2,h.set(e,t);var g=a(f(e),f(t),n,u,d,h);return h.delete(e),g;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},3191:(e,t,r)=>{var n=r(36383),i=r(14476),s=r(48824),a=Math.max,o=Math.min;e.exports=function(e,t,r){var l,u,c,d,h,f,p=0,m=!1,g=!1,y=!0;if("function"!=typeof e)throw TypeError("Expected a function");function b(t){var r=l,n=u;return l=u=void 0,p=t,d=e.apply(n,r)}function v(e){var r=e-f,n=e-p;return void 0===f||r>=t||r<0||g&&n>=c}
1function _(){var e,r,n,s=i();if(v(s))return w(s);h=setTimeout(_,(e=s-f,r=s-p,n=t-e,g?o(n,c-r):n))}function w(e){return(h=void 0,y&&l)?b(e):(l=u=void 0,d)}function x(){var e,r=i(),n=v(r);if(l=arguments,u=this,f=r,n){if(void 0===h)return p=e=f,h=setTimeout(_,t),m?b(e):d;if(g)return clearTimeout(h),h=setTimeout(_,t),b(f)}return void 0===h&&(h=setTimeout(_,t)),d}return t=s(t)||0,n(r)&&(m=!!r.leading,c=(g="maxWait"in r)?a(s(r.maxWait)||0,t):c,y="trailing"in r?!!r.trailing:y),x.cancel=function(){void 0!==h&&clearTimeout(h),p=0,l=f=u=h=void 0},x.flush=function(){return void 0===h?d:w(i())},x}},3244:(e,t,r)=>{"use strict";let n=r(42838);e.exports=(e,t)=>{let r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}},3352:(e,t,r)=>{"use strict";r.d(t,{Xr:()=>a,gt:()=>s,xv:()=>i});var n=r(28077);function i(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function s(e,t){if(!Array.isArray(e))return"";let r=[];for(let t=0;t<e.length;t++){let i=e[t];try{(0,n.L2)(i)?r.push("[VueViewModel]"):r.push(String(i))}catch(e){r.push("[value cannot be serialized]")}}return r.join(t)}function a(e,t=[],r=!1){return t.some(t=>(function(e,t,r=!1){return!!(0,n.Kg)(e)&&((0,n.gd)(t)?t.test(e):!!(0,n.Kg)(t)&&(r?e===t:e.includes(t)))})(e,t,r))}},3556:(e,t,r)=>{"use strict";r.d(t,{GR:()=>o,Y4:()=>l,lv:()=>a});var n=r(93790),i=r(98833);function s({context:e,blockOffset:t,direction:r}){return(0,n.m4)({context:e,blockOffset:t,direction:r})||function({context:e,blockOffset:t}){let r;for(let n of e.value)if(n._key===t.path[0]._key){r={path:[{_key:n._key}],offset:t.offset};break}return r}({context:e,blockOffset:t})}function a({context:e,offsets:t,backward:r}){let n=s({context:e,blockOffset:t.anchor,direction:r?"backward":"forward"}),i=s({context:e,blockOffset:t.focus,direction:r?"forward":"backward"});return n&&i?{anchor:n,focus:i,backward:r}:null}function o({context:e,selectionPoint:t}){let r=0,s=(0,n.XE)(t),a=(0,n.qX)(t);if(!(!s||!a)){for(let n of e.value)if(n._key===s&&(0,i.zS)(e,n))for(let s of n.children){if(s._key===a)return{path:[{_key:n._key}],offset:r+t.offset};(0,i.bl)(e,s)&&(r+=s.text.length)}}}function l({context:e,targetBlock:t,incomingBlock:r}){let s=(0,n.rT)({context:e,block:r,options:{normalize:!1,removeUnusedMarkDefs:!0,validateFields:!1}});return s&&(0,i.zS)(e,s)?{...t,children:[...t.children,...s.children],markDefs:[...t.markDefs??[],...s.markDefs??[]]}:t}},3585:(e,t,r)=>{"use strict";r.d(t,{s:()=>l});var n=r(86337),i=r(4010),s=r(41325),a=r(66420),o=r(97537);function l(e,t){let r=(0,o.a)(e,null==t?void 0:t.in);return Math.round(((0,i.b)(r)-function(e,t){let r=(0,a.p)(e,void 0),n=(0,s.w)(e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),(0,i.b)(n)}(r))/n.my)+1}},3842:(e,t,r)=>{"use strict";let n;r.d(t,{UL:()=>z,jN:()=>eo,Uh:()=>eh,Yh:()=>ea,hF:()=>en,i6:()=>e0});let i=[0x428a2f98,0x71374491,-0x4a3f0431,-0x164a245b,0x3956c25b,0x59f111f1,-0x6dc07d5c,-0x54e3a12b,-0x27f85568,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,-0x7f214e02,-0x6423f959,-0x3e640e8c,-0x1b64963f,-0x1041b87a,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,-0x67c1aeae,-0x57ce3993,-0x4ffcd838,-0x40a68039,-0x391ff40d,-0x2a586eb9,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,-0x7e3d36d2,-0x6d8dd37b,-0x5d40175f,-0x57e599b5,-0x3db47490,-0x3893ae5d,-0x2e6d17e7,-0x2966f9dc,-0xbf1ca7b,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,-0x7b3787ec,-0x7338fdf8,-0x6f410006,-0x5baf9315,-0x41065c09,-0x398e870e];class s{constructor(){this.A=0x6a09e667,this.B=-0x4498517b,this.C=0x3c6ef372,this.D=-0x5ab00ac6,this.E=0x510e527f,this.F=-0x64fa9774,this.G=0x1f83d9ab,this.H=0x5be0cd19,this._size=0,this._sp=0,(!n||o>=8e3)&&(n=new ArrayBuffer(8e3),o=0),this._byte=new Uint8Array(n,o,80),this._word=new Int32Array(n,o,20),o+=80}update(e){if("string"==typeof e)return this._utf8(e);if(null==e)throw TypeError("Invalid type: "+typeof e);let t=e.byteOffset,r=e.byteLength,n=r/64|0,i=0;if(n&&!(3&t)&&!(this._size%64)){let r=new Int32Array(e.buffer,t,16*n);for(;n--;)this._int32(r,i>>2),i+=64;this._size+=i}if(1!==e.BYTES_PER_ELEMENT&&e.buffer){let n=new Uint8Array(e.buffer,t+i,r-i);return this._uint8(n)}return i===r?this:this._uint8(e,i)}_uint8(e,t){let{_byte:r,_word:n}=this,i=e.length;for(t|=0;t<i;){let s=this._size%64,a=s;for(;t<i&&a<64;)r[a++]=e[t++];a>=64&&this._int32(n),this._size+=a-s}return this}_utf8(e){let{_byte:t,_word:r}=this,n=e.length,i=this._sp;for(let s=0;s<n;){let a=this._size%64,o=a;for(;s<n&&o<64;){let r=0|e.charCodeAt(s++);r<128?t[o++]=r:r<2048?(t[o++]=192|r>>>6,t[o++]=128|63&r):r<55296||r>57343?(t[o++]=224|r>>>12,t[o++]=128|r>>>6&63,t[o++]=128|63&r):i?(r=((1023&i)<<10)+(1023&r)+65536,t[o++]=240|r>>>18,t[o++]=128|r>>>12&63,t[o++]=128|r>>>6&63,t[o++]=128|63&r,i=0):i=r}o>=64&&(this._int32(r),r[0]=r[16]),this._size+=o-a}return this._sp=i,this}_int32(e,t){let{A:r,B:n,C:s,D:o,E:l,F:g,G:y,H:b}=this,v=0;for(t|=0;v<16;)a[v++]=u(e[t++]);for(v=16;v<64;v++)a[v]=m(a[v-2])+a[v-7]+p(a[v-15])+a[v-16]|0;for(v=0;v<64;v++){let e=b+f(l)+c(l,g,y)+i[v]+a[v]|0,t=h(r)+d(r,n,s)|0;b=y,y=g,g=l,l=o+e|0,o=s,s=n,n=r,r=e+t|0}this.A=r+this.A|0,this.B=n+this.B|0,this.C=s+this.C|0,this.D=o+this.D|0,this.E=l+this.E|0,this.F=g+this.F|0,this.G=y+this.G|0,this.H=b+this.H|0}digest(e){let{_byte:t,_word:r}=this,n=this._size%64|0;for(t[n++]=128;3&n;)t[n++]=0;if((n>>=2)>14){for(;n<16;)r[n++]=0;n=0,this._int32(r)}for(;n<16;)r[n++]=0;let i=8*this._size,s=(0|i)>>>0,a=(i-s)/0x100000000;return a&&(r[14]=u(a)),s&&(r[15]=u(s)),this._int32(r),"hex"===e?this._hex():this._bin()}_hex(){let{A:e,B:t,C:r,D:n,E:i,F:s,G:a,H:o}=this;return l(e)+l(t)+l(r)+l(n)+l(i)+l(s)+l(a)+l(o)}_bin(){let{A:e,B:t,C:r,D:n,E:i,F:s,G:a,H:o,_byte:l,_word:c}=this;return c[0]=u(e),c[1]=u(t),c[2]=u(r),c[3]=u(n),c[4]=u(i),c[5]=u(s),c[6]=u(a),c[7]=u(o),l.slice(0,32)}}let a=new Int32Array(64),o=0,l=e=>(e+0x100000000).toString(16).substr(-8),u=254===new Uint8Array(new Uint16Array([65279]).buffer)[0]?e=>e:e=>e<<24&0xff000000|e<<8&0xff0000|e>>8&65280|e>>24&255,c=(e,t,r)=>r^e&(t^r),d=(e,t,r)=>e&t|r&(e|t),h=e=>(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),f=e=>(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7),p=e=>(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3,m=e=>(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10;function g(e,t){for(let r=0;r<e.length;r++){if(e[r]<t[r])return -1;if(e[r]>t[r])return 1}return 0}function y(e){for(let t=0;t<e.length;t++)if(0!=e[t])return!1;return!0}class b{hash=new s;buffer=new ArrayBuffer(4);rewriteMap;uint8=new Uint8Array(this.buffer);uint8_byte=new Uint8Array(this.buffer,0,1);int32=new Int32Array(this.buffer);constructor(e){this.rewriteMap=e}encodeByte(e){this.uint8_byte[0]=e,this.hash.update(this.uint8_byte)}encodeString(e){this.hash.update(e,"utf8")}encodeInt32(e){if(this.int32[0]=e,this.int32[0]!==e)throw Error("Only 32-bit numbers can be encoded as descriptors");this.hash.update(this.uint8)}encodeValue(e){let t=this.rewriteMap.get(e);if(t){let r=this.encodeValue(t);return r!==t&&this.rewriteMap.set(e,r),r}if(null===e)return this.encodeByte(110),e;if(!0===e)return this.encodeByte(116),e;if(!1===e)return this.encodeByte(102),e;if("string"==typeof e)return this.encodeByte(115),this.encodeString(e),e;if(Array.isArray(e)){let t;this.encodeByte(97);let r=0;for(let n of e){let i=this.encodeValue(n);
1t?t.push(i):i!==n&&(t=e.slice(0,r)).push(i),r++}return this.encodeByte(65),t||e}{let t=[],r,n=0,i=Object.entries(e);for(let[e,s]of i){if(void 0===s){n++;continue}let a=new b(this.rewriteMap);a.encodeString(e);let o=a.encodeValue(s);if(t.push(a.getDigest()),r)r[e]=o;else if(o!==s){for(let[e,t]of(r={},i.slice(0,n)))r[e]=t;r[e]=o}n++}for(let e of(t.sort((e,t)=>g(e,t)),this.encodeByte(111),t))this.hash.update(e);return this.encodeByte(79),r||e}}encodeObjectWithType(e,t){let r={type:e},n=[];for(let[e,i]of Object.entries(t)){if(void 0===i)continue;let t=new b(this.rewriteMap);t.encodeString(e),r[e]=t.encodeValue(i),n.push(t.getDigest())}let i=new b(this.rewriteMap);for(let t of(i.encodeString("type"),i.encodeValue(e),n.push(i.getDigest()),n.sort((e,t)=>g(e,t)),this.encodeByte(111),n))this.hash.update(t);return this.encodeByte(79),r}getDigest(){return this.hash.digest()}}let v=new Map;function _(e,t,r){let n=new b(r?.rewriteMap||v),i=n.encodeObjectWithType(e,t),s=n.getDigest();return r?.withDigest&&r.withDigest(s),{id:function(e,t=""){let r=t;for(let t=0;t<e.length;t++)r+=String.fromCharCode(e[t]);return"u"+globalThis.btoa(r).replaceAll("+","-").replaceAll("/","_").replaceAll("=","")}(s,"\x12 "),...i}}class w{arr;byteSize;numBuckets;constructor(e,t){if(t>=31)throw Error("numBuckets must be less than 31");this.byteSize=e,this.numBuckets=t,this.arr=new Uint8Array(this.byteSize*this.numBuckets)}toggle(e,t){for(let r=0;r<3;r++){let n=e[r]%this.numBuckets;t&&t(n);let i=n*this.byteSize;for(let t=0;t<this.byteSize;t++)this.arr[i+t]^=e[t]}}toggleAll(e){for(let t=0;t<this.arr.length;t++)this.arr[t]^=e.arr[t]}copy(){let e=new w(this.byteSize,this.numBuckets);for(let t=0;t<this.arr.length;t++)e.arr[t]=this.arr[t];return e}decode(){let e=2*this.numBuckets,t=new x(this.byteSize,e),r=new k(this.numBuckets),n=0;for(;!r.isEmpty();){let i=r.pop();if(this.looksPure(i)){if(n>=e)return null;let s=i*this.byteSize,a=this.arr.slice(s,s+this.byteSize);t.toggle(a),this.toggle(a,e=>{e!==i&&r.set(e)}),n++}}return y(this.arr)?t:null}looksPure(e){let t=e*this.byteSize,r=this.arr.subarray(t,t+this.byteSize);if(y(r))return!1;let n=0;for(let t=0;t<3;t++)r[t]%this.numBuckets===e&&n++;return n%2==1}}class x{arr;byteSize;length;capacity;constructor(e,t){this.arr=new Uint8Array(e*t),this.byteSize=e,this.length=0,this.capacity=t}toggle(e){for(let t=0;t<this.length;t++){let r=t*this.byteSize,n=this.arr.subarray(r,r+this.byteSize);if(function(e,t){for(let r=0;r<e.length;r++)if(e[r]!=t[r])return!1;return!0}(e,n)){if(t!=this.length-1){let e=(this.length-1)*this.byteSize;for(let t=0;t<this.byteSize;t++)n[t]=this.arr[e+t]}this.length--;return}}if(this.length===this.capacity)throw Error("BufferSet is full");let t=this.length*this.byteSize;for(let r=0;r<this.byteSize;r++)this.arr[t+r]=e[r];this.length++}forEach(e){for(let t=0;t<this.length;t++){let r=t*this.byteSize;e(this.arr.subarray(r,r+this.byteSize))}}toJSON(){let e=[];return this.forEach(t=>{e.push(Array.from(t))}),e.sort((e,t)=>g(e,t)),e}}class k{bitset;queue;constructor(e){this.bitset=(1<<e)-1,this.queue=Array.from({length:e},(e,t)=>t)}set(e){let t=1<<e;this.bitset&t||(this.queue.push(e),this.bitset|=t)}isEmpty(){return 0===this.bitset}pop(){let e=this.queue.shift();return this.bitset&=~(1<<e),e}}class E{objectValues={};setValues={};keys=[];sketch=new w(32,8);rewriteMap;constructor({rewriteMap:e}={}){this.rewriteMap=e}addObject(e,t){let r=_(e,t,{withDigest:e=>{this.sketch.toggle(e)},rewriteMap:this.rewriteMap});this.objectValues[r.id]=r,this.keys.push(r.id)}addSet(e){this.setValues[e.set.id]=e,this.sketch.toggle(e.digest),this.keys.push(e.set.id)}build(e){let t;return this.keys.sort(),{set:_(e,{keys:this.keys},{withDigest:e=>{t=e}}),digest:t,objectValues:this.objectValues,setValues:this.setValues,sketch:this.sketch}}}var S=r(38980),A=r(36383),O=r(73111),C=r(36507);r(1067);var T=r(60194),I=r(45872),D=r(20937),j=r(17366),R=r(86534),N=r(283),$=r(11057),M=r(77724),F=r(71301);class P{#e=[];#t;constructor(e){this.#t=performance.now(),this.#e=e}async map(e,t){let r=[];for(let n of e){let e=this._tryPause();e&&await e,r.push(t(n))}return r}async forEach(e,t){for(let r of e){let e=this._tryPause();e&&await e,t(r)}}async forEachIter(e,t){for(let r of e){let e=this._tryPause();e&&await e,t(r)}}end(){this.#e.push(performance.now()-this.#t)}_tryPause(){let e=performance.now()-this.#t;if(!(e<8.333333333333334))return this.#e.push(e),new Promise(e=>{let t=()=>{this.#t=performance.now(),e()};"function"==typeof requestIdleCallback?requestIdleCallback(t,{timeout:1}):"function"==typeof requestAnimationFrame?requestAnimationFrame(t):setTimeout(t,0)})}}let L={map:async(e,t)=>e.map(t),forEach:async(e,t)=>e.forEach(t),async forEachIter(e,t){for(let r of e)t(r)}};class z{cache=new WeakMap;async get(e,t){let r,n=this.cache.get(e);if(n)return n;let i=t?.scheduler||(t?.pauseDurations?r=new P(t.pauseDurations):L),s={fields:new Map,duplicateFields:new Map,arrayElements:new Map,duplicateArrayElements:new Map},a=await i.map(e.getLocalTypeNames(),t=>{let r=function e(t,r,n){let i=function(t,r,n){var i;let s,a,o,l,u=O.kH in t?t[O.kH]:t;Array.isArray(u.fields)&&(s=u.fields.map(t=>{var i;let s=`${r}.${t.name}`,a=n.fields.get(t);if(a){let e=n.duplicateFields.get(a);return(!e||er(s,e))&&n.duplicateFields.set(a,s),a}let{name:o,group:l,fieldset:u,type:c}
1=t,d={name:o,typeDef:e(c,s,n),groups:"string"==typeof(i=l)?[i]:Array.isArray(i)?i.filter(e=>"string"==typeof e):void 0,fieldset:u};return n.fields.set(t,d),d})),Array.isArray(u.fieldsets)&&(a=V("name",u.fieldsets.map(({name:e,title:t,description:r,group:n,hidden:i,readOnly:s,options:a})=>({name:e,title:q(t),description:q(r),group:q(n),hidden:B(i),readOnly:B(s),options:K(a)})))),Array.isArray(u.groups)&&(o=V("name",u.groups.map(({name:e,title:t,hidden:r,default:n,i18n:i})=>({name:e,title:q(t),hidden:B(r),default:U(n),i18n:ee(i)}))));let c=u.deprecated?.reason;return Array.isArray(u.orderings)&&(l=u.orderings.map(et).filter(e=>void 0!==e)),{title:q(u.title),description:function(e){if("string"==typeof e)return e;if(A(e)&&"$$typeof"in e&&"type"in e&&"props"in e){let{type:t,props:r}=e,n="function"==typeof t?t.name:t;return"string"!=typeof n?void 0:{__type:"jsx",type:n,props:K(r)}}}(u.description),readOnly:B(u.readOnly),hidden:B(u.hidden),liveEdit:U(u.liveEdit),options:K(u.options),initialValue:K(u.initialValue),deprecated:"string"==typeof c?{reason:c}:void 0,placeholder:q(u.placeholder),rows:"number"==typeof(i=u.rows)?i.toString():void 0,fields:s,fieldsets:a,groups:o,validation:function(e){if(!A(e)||!("type"in e))return;let t=[];switch("options"in e&&A(e.options)&&"list"in e.options&&Array.isArray(e.options.list)&&t.push({type:"enum",values:e.options.list.map(t=>{var r,n;return K((r=t,"object"===(n=e).jsonType&&function e(t){return!!t&&"object"==typeof t&&("fields"in t?!!Array.isArray(t.fields)&&t.fields.some(e=>"value"===e.name):"type"in t&&!!t.type&&e(t.type))}(n)?r:A(r)&&"value"in r&&r.value?r.value:r))}).filter(e=>void 0!==e)}),e.type){case"url":t.push({type:"uri",allowRelative:!1});break;case"slug":t.push({type:"custom"});break;case"reference":t.push({type:"reference"});break;case"email":t.push({type:"email"})}if(!("validation"in e)||!e.validation)return t.length>0?[{level:"error",rules:t}]:void 0;let r=[];for(let n of Array.isArray(e.validation)?e.validation:[e.validation]){let e=function e(t){if(t){if("function"==typeof t)try{let r=t(new O.jO);if(J(r))return e(r);throw Error("failed to convert to plain rule")}catch{return{level:"error",rules:[{type:"custom",name:"function"}]}}if(J(t)){let r=t._level||"error",n=function(e){if("string"==typeof e)return e;if(!A(e)||Array.isArray(e))return;let t={};for(let[r,n]of Object.entries(e))"string"!=typeof r||"string"!=typeof n||(t[r]=n);return Object.keys(t).length>0?t:void 0}(t._message),i=[];for(let r of t._rules||[]){let n=function(t,r){if(!A(t)||!("flag"in t))return;let n="constraint"in t?t.constraint:void 0;switch(t.flag){case"integer":return{type:"integer"};case"email":return{type:"email"};case"unique":return{type:"uniqueItems"};case"reference":return{type:"reference"};case"assetRequired":return{type:"assetRequired"};case"stringCasing":return"uppercase"===n?{type:"uppercase"}:"lowercase"===n?{type:"lowercase"}:void 0;case"all":if(Array.isArray(n)){let t=n.map(t=>e(t)).filter(e=>void 0!==e);if(t.length>0)return{type:"allOf",children:t}}return;case"either":if(Array.isArray(n)){let t=n.map(t=>e(t)).filter(e=>void 0!==e);if(t.length>0)return{type:"anyOf",children:t}}return;case"valid":return Array.isArray(n)?{type:"enum",values:n.map(e=>K(e)).filter(e=>void 0!==e)}:void 0;case"min":return{type:"minimum",value:X(n)};case"max":return{type:"maximum",value:X(n)};case"length":return{type:"length",value:X(n)};case"precision":return{type:"precision",value:X(n)};case"lessThan":return{type:"exclusiveMaximum",value:X(n)};case"greaterThan":return{type:"exclusiveMinimum",value:X(n)};case"regex":if(A(n)&&"pattern"in n){let{pattern:e}=n,t="invert"in n?Q(n.invert):void 0;if(e instanceof RegExp)return{type:"regex",pattern:e.source,...t&&{invert:!0}}}return;case"uri":{let e=A(n)&&"options"in n&&A(n.options)&&"allowRelative"in n.options?Q(n.options.allowRelative):void 0;return{type:"uri",...void 0!==e&&{allowRelative:e}}}case"custom":return{type:"custom",...r&&{optional:r}};case"media":return{type:"custom",name:"media"};case"type":default:return;case"presence":return"required"===n?{type:"required"}:void 0}}(r,"optional"===t._required||void 0);void 0!==n&&(i.some(e=>S(e,n))||i.push(n))}return 0===i.length?void 0:{level:r,rules:i,...n&&{message:n}}}}}(n);if(void 0===e)continue;let i=t.filter(t=>!e.rules.some(e=>S(e,t)));i.length>0&&e.rules.unshift(...i),r.some(t=>S(t,e))||r.push(e)}return r.length>0?r:void 0}(u),orderings:l}}(t,r,n);if(!t.type)return{extends:null,jsonType:t.jsonType,...i};switch(t.type.name){case"array":return{extends:"array",of:t.of.map((t,i)=>{let s=`${r}.${t.name}`,a=n.arrayElements.get(t);if(a){let e=n.duplicateArrayElements.get(a);return(!e||er(s,e))&&n.duplicateArrayElements.set(a,s),a}let o={name:t.name,typeDef:e(t,`${r}.${t.name}`,n)};return n.arrayElements.set(t,o),o}),...i};case"reference":case"globalDocumentReference":case"crossDatasetReference":return{extends:t.type.name,to:V("name",t.to.map(e=>({name:e.name||e.type?.name||e.type}))),...i};default:return{extends:t.type.name,...i}}}(e.get(t),t,s);return{name:t,typeDef:r}}),o=new Map;for(let[e,t]of s.duplicateFields.entries())o.set(e,{__type:"hoisted",key:t});for(let[e,t]of s.duplicateArrayElements.entries())o.set(e,{__type:"hoisted",key:t});let l=new E({rewriteMap:o});
1return await i.forEachIter(s.duplicateFields.entries(),([e,t])=>{l.addObject("sanity.schema.hoisted",{key:t,value:{...e}})}),await i.forEachIter(s.duplicateArrayElements.entries(),([e,t])=>{l.addObject("sanity.schema.hoisted",{key:t,value:{...e}})}),await i.forEach(a,e=>{l.addObject("sanity.schema.namedType",e)}),e.parent&&l.addSet(await this.get(e.parent,{scheduler:i})),n=l.build("sanity.schema.registry"),this.cache.set(e,n),r&&r.end(),n}}function q(e){return"string"==typeof e?e:void 0}function U(e){return!0===e||void 0}function B(e){return"function"==typeof e?H:U(e)}function V(e,t){return t.filter(t=>"string"==typeof t[e])}let H={__type:"function"},G={__type:"unknown"},W={__type:"undefined"},Z={__type:"cyclic"},Y={__type:"maxDepth"};function K(e,t=new Set,r=5){if(0===r)return Y;if("string"==typeof e||"boolean"==typeof e||null==e)return e;if("number"==typeof e)return{__type:"number",value:e.toString()};if("function"==typeof e)return H;if(t.has(e))return Z;if(t.add(e),A(e)){if(Array.isArray(e))return e.map(e=>{let n=K(e,t,r-1);return void 0===n?W:n});if("$$typeof"in e&&"type"in e&&"props"in e){let{type:n,props:i}=e,s="function"==typeof n?n.name:n;return"string"!=typeof s?void 0:{__type:"jsx",type:s,props:K(i,t,r-1)}}let n=!1,i={};for(let[s,a]of Object.entries(e))"__type"===s&&(n=!0),i[s]=K(a,t,r-1);return n?{__type:"object",value:i}:i}return G}function J(e){return A(e)&&"_rules"in e}function X(e){return A(e)&&"type"in e&&"path"in e&&e.type&&e.path?{type:"fieldReference",path:Array.isArray(e.path)?e.path:[e.path]}:String(e)}function Q(e){if("boolean"==typeof e)return e}function ee(e){if(!A(e)||Array.isArray(e))return;let t={};for(let r of Object.entries(e))if(function(e){let[t,r]=e;return"string"==typeof t&&!!r&&"object"==typeof r&&"key"in r&&"ns"in r&&"string"==typeof r.key&&"string"==typeof r.ns}(r)){let[e,n]=r;t[e]={ns:n.ns,key:n.key}}return Object.keys(t).length>0?t:void 0}function et(e){if(!A(e)||Array.isArray(e))return;let t="name"in e&&"string"==typeof e.name?e.name:void 0;if(void 0===t)return;let r="title"in e&&"string"==typeof e.title?e.title:t,n="by"in e&&Array.isArray(e.by)?e.by:[],i=[];for(let e of n){let t=function(e){if(!A(e)||Array.isArray(e))return;let t="field"in e&&"string"==typeof e.field?e.field:void 0,r="direction"in e&&("asc"===e.direction||"desc"===e.direction)?e.direction:void 0;if(!(!t||!r))return{field:t,direction:r}}(e);t&&i.push(t)}if(0===i.length)return;let s="i18n"in e?ee(e.i18n):void 0;return{name:t,title:r,by:i,...s&&{i18n:s}}}function er(e,t){return e.length<t.length||e.length===t.length&&e<t}function en(e,t){let r=e.set.id;if(!t)return{id:r};if("complete"===t.type)return null;let n=[];for(let r of t.missingIds){let t=function e(t,r){if(t.set.id===r)return t.set;let n=t.objectValues[r];if(n)return n;for(let n of Object.values(t.setValues)){let t=e(n,r);if(t)return t}return null}(e,r);if(!t)throw Error("Synchronization server is requested an unknonwn descriptor");n.push(t)}return{id:r,descriptors:n}}let ei="__experimental_actions",es=["create","update","delete","publish"],ea=(e,t)=>(e=>((e,t)=>{if(!Array.isArray(t))throw Error(`The value of <type>.${ei} should be an array with any of the actions ${es.join(", ")}`);let r=C(t,es);if(r.length>0)throw Error(`Invalid action${r.length>1?"s":""} configured for schema type "${e}": ${r.join(", ")}. Valid actions are: ${es.join(", ")}`);return t})(e.name,(e=>ei in e?e[ei]:es)(e)))(e).includes(t),eo=[{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",media:"media"},prepare:e=>({title:e.title||"string"==typeof e.path&&e.path.split("/").slice(-1)[0],media:{asset:{_ref:e.id},...e.media?{media:e.media}:{}},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",validation:e=>e.required()},{name:"bottom",type:"number",validation:e=>e.required()},{name:"left",type:"number",validation:e=>e.required()},{name:"right",type:"number",validation:e=>e.required()}]},{name:"sanity.imageHotspot",title:"Image hotspot",type:"object",fields:[{name:"x",type:"number",validation:e=>e.required()},{name:"y",type:"number",validation:e=>e.required()},{name:"height",type:"number",validation:e=>e.required()},{name:"width",type:"number",validation:e=>e.required()}]},{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}
1,{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,validation:e=>e.required()},{name:"width",type:"number",title:"Width",readOnly:!0,validation:e=>e.required()},{name:"aspectRatio",type:"number",title:"Aspect ratio",readOnly:!0,validation:e=>e.required()}]},{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}]}],el={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 eu(e,t,r){if(r&&!Object.keys(el).some(e=>el[e]===r))throw Error(`Used the unknown helpId "${r}", please add it to the array in createValidationResult.js`);return{severity:e,message:t,helpId:r}}let ec=(e,t)=>eu("error",e,t),ed=(e,t)=>eu("warning",e,t);function eh(e){return T(e.map(e=>ew(e))).filter(e=>e.problems.length>0)}function ef(e,t=t=>I(t,e)){return function(r,n){let i=[...n,{kind:"type",type:r.type,name:r.name}],s=t(r)||[],a=Array.isArray(s)?s.map(t=>ew(t,[...i,{kind:"property",name:e}])):[[{path:i,problems:[ec(`Member declaration (${e}) is not an array`)]}]];return[{path:i,problems:r._problems||[]},...T(a)]}}let ep=ef("fields"),em=ef("fields"),eg=ef("fields"),ey=ef("of"),eb=ef("to",e=>"to"in e?(e=>Array.isArray(e)?e:typeof e>"u"&&[]||[e])(e.to):[]),ev=ef("marks.annotations"),e_=ef("of");function ew(e,t=[]){switch(e.type){case"object":case"document":return ep(e,t);case"array":return ey(e,t);case"reference":return eb(e,t);case"block":return[...ev(e,t),...e_(e,t)];case"image":return em(e,t);case"file":return eg(e,t);default:return function(e,t=[]){return[{path:[...t,{kind:"type",type:e.type,name:e.name}],problems:e._problems||[]}]}(e,t)}}function ex(e,t=e=>e){let r=e.reduce((e,r)=>{let n=t(r);return e[n]||(e[n]=[]),e[n].push(r),e},{});return Object.keys(r).map(e=>r[e].length>
11?r[e]:null).filter(Boolean)}let ek={name:"type",type:null},eE=["any","time","date"],eS=[{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"}],eA=eS.map(e=>e.name);function eO(e){return"string"===e||"number"===e||"boolean"===e}function eC(e){return`"${e}"`}function eT(e,t="s"){return 1===e.length?"":t}function eI(e){return Array.isArray(e)?`array with ${e.length} entries`:"object"==typeof e&&null!==e?`object with keys ${j(Object.keys(e).map(eC))}`:eC(e)}let eD=e=>Array.isArray(e)?"array":typeof e,ej=e=>`"${e}"`,eR=["components","lists","marks","name","of","options","styles","title","type","validation"],eN=["decorators","annotations"],e$=["blockEditor","title","value","icon","component"],eM=["blockEditor","title","value","icon","component"],eF=["title","value","icon","component"],eP=["file","image","object","reference","crossDatasetReference","globalDocumentReference"],eL=e=>`"${e}"`;var ez=(e,t)=>({...e,_problems:[...function(e,t){let r=t.getTypeNames();if(!e)return[ec("Type is missing a type.",el.TYPE_MISSING_TYPE)];if("string"!=typeof e)return[ec('Type has an invalid "type"-property - should be a string.',el.TYPE_MISSING_TYPE)];if(!r.includes(e)){let t=r.map(t=>[M(e,t),t]).filter(([e])=>e<3).map(([e,t])=>t),n=t.length>0?` Did you mean ${j(t.map(eL),{conjunction:"or"})}?`:"";return[ec(`Unknown type: ${e}.${n}`)]}return[]}(e.type,t),...function(e,t){if(!("fields"in e))return[];let r=e;for(;r&&!r.jsonType;)r=t.getType(r.type);return r&&"object"!==r.jsonType?[ec('Type has propery "fields", but is not an object/document type.')]:[]}(e,t),...function(e){let t=[];return e?.inputComponent&&t.push(ed('The "inputComponent" property is deprecated. Use "components.input" instead.')),e?.preview?.component&&t.push(ed('The "preview.component" property is deprecated. Use "components.preview" instead.')),e?.diffComponent&&t.push(ed('The "diffComponent" property is deprecated. Use "components.diff" instead.')),e?.options?.editModal&&t.push(ed('The "options.editModal" property is deprecated. Use "options.modal" instead.')),e?.options?.isHighlighted&&t.push(ed('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 eq=/^[a-z0-9~][-_a-z0-9]+$/,eU=/^Symbol\(react\..+\)$/;function eB(e){return"function"==typeof e||"symbol"==typeof e?.$$typeof&&eU.test(String(e?.$$typeof))}function eV(e){let t="components"in e&&e.components;if(!t)return[];let r=[];return t.input&&!eB(t.input)&&r.push(ed(`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&&!eB(t.field)&&r.push(ed(`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&&!eB(t.item)&&r.push(ed(`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&&!eB(t.preview)&&r.push(ed(`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.`)),r}let eH=/^[A-Za-z]+[0-9A-Za-z_]*$/,eG=/^[A-Za-z_]+[0-9A-Za-z_]*$/;function eW(e,t){var r;if(!N(e))return[ec(`Incorrect type for field definition - should be an object, saw ${F(e)}
1`,el.OBJECT_FIELD_DEFINITION_INVALID_TYPE)];let n=[];return n.push(..."name"in e?"string"!=typeof(r=e.name)?[ec(`Field names must be strings. Saw "${F(r)}"`,el.OBJECT_FIELD_NAME_INVALID)]:r.startsWith("_")?[ec(`Invalid field name "${r}". Field names cannot start with underscores "_" as it's reserved for system fields.`,el.OBJECT_FIELD_NAME_INVALID)]:eH.test(r)?eG.test(r)?[]:[ed("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."),el.OBJECT_FIELD_NAME_INVALID]:[ec(`Invalid field name: "${r}". Fields can only contain characters from A-Z, numbers and underscores and should not start with a number (must pass the regular expression ${String(eH)}).`,el.OBJECT_FIELD_NAME_INVALID)]:[ec("Missing field name",el.OBJECT_FIELD_NAME_INVALID)]),n.push(...eV(e)),n}function eZ(e,t={allowEmpty:!1}){let r=[];if(!Array.isArray(e))return[ec(`The "fields" property must be an array of fields. Instead saw "${typeof e}"`,el.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=>{r.push(ec(`Found ${e.length} fields with name "${e[0].name}" in object`,el.OBJECT_FIELD_NOT_UNIQUE))}),0!==e.length||t.allowEmpty||r.push(ec("Object should have at least one field",el.OBJECT_FIELDS_INVALID));let n=e.filter(e=>"block"===e.type).map(e=>`"${e.name}"`);if(n.length>0){let e=n.join(", ");r.push(ec(`Invalid standalone block field(s) ${e}. Block content must be defined as an array of blocks`,el.STANDALONE_BLOCK_TYPE))}return r}var eY=(e,t)=>{let r=eZ(e.fields),n=e.preview;if(n){let t=function(e){return N(e)?"u">typeof e.prepare&&"function"!=typeof e.prepare?[ec(`The "preview.prepare" property must be a function, instead saw "${typeof e.prepare}"`)]:e.select?N(e.select)?Object.keys(e.select).reduce((t,r)=>"string"==typeof e.select[r]?t:t.concat(ec(`The key "${r}" of "preview.select" must be a string, instead saw "${typeof e.select[r]}"`)),[]):[ec(`The "preview.select" property must be an object, instead saw "${typeof e.prepare}"`)]:[]:[ec(`The "preview" property must be an object, instead saw "${typeof e}"`)]}(e.preview);r=r.concat(t),n=t.some(e=>"error"===e.severity)?{}:n}return"document"!==e.type&&"object"!==e.type&&"u">typeof e.initialValue&&r.push(ec('The "initialValue" property is currently only supported for document & object types.')),{...e,preview:n,fields:(Array.isArray(e.fields)?e.fields:[]).map((e,r)=>{let{name:n,...i}=e,{_problems:s,...a}=t.visit(i,r);return{name:n,...a,_problems:eW(e).concat(s||[])}}),_problems:r}};let eK=["dimensions","hasAlpha","isOpaque"];var eJ=(e,t)=>{let r=!!e.name;if(!r&&1===Object.keys(e).length)return{...e,_problems:[ec("Invalid/undefined type declaration, check declaration or the import/export of the schema type.",el.TYPE_INVALID)]};let n=[];return!function(e){return!e.name&&e.default&&(e.default.name||e.default.title)}(e)?r?t.isReserved(e.name)&&n.push(ec(`Invalid type name: "${e.name}" is a reserved name.`,el.TYPE_NAME_RESERVED)):n.push(ec("Missing type name",el.TYPE_MISSING_NAME)):n.push(ec("Type appears to be an ES6 module imported through CommonJS require - use an import statement or access the `.default` property",el.TYPE_IS_ESM_MODULE)),t.isDuplicate(e.name)&&n.push(ec(`Invalid type name: A type with name "${e.name}" is already defined in the schema.`)),n.push(...eV(e)),"title"in e&&"string"!=typeof e.title&&n.push(ed("Type title is not a string.",el.TYPE_TITLE_INVALID)),{...e,_problems:n}};let eX={array:(e,t)=>{let r=Array.isArray(e.of);if(r){let r=e.of.reduce((e,r,n)=>{if("string"==typeof r.name&&r.name!==r.type&&eA.includes(r.name))return e.concat(ec(`Found array member declaration with the same type name as a built-in type ("${r.name}"). Array members can not be given the same name as a built-in type.`,el.ARRAY_OF_TYPE_BUILTIN_TYPE_CONFLICT));if("object"===r.type&&r.name&&t.getType(r.name))return e.concat(ed(`Found array member declaration with the same name as the global schema type "${r.name}". It's recommended to use a unique name to avoid possibly incompatible data types that shares the same name.`,el.ARRAY_OF_TYPE_GLOBAL_TYPE_CONFLICT));if("array"===r.type)return e.concat(ec('Found array member declaration of type "array" - multidimensional arrays are not currently supported by Sanity',el.ARRAY_OF_ARRAY));if(r)return e;let i=`Found ${null===r?"null":typeof r}, expected member declaration`;return e.concat(ec(`Found invalid type member declaration in array at index ${n}: ${i}`,el.ARRAY_OF_INVALID))},[]);if(r.length>0)return{...e,of:[],_problems:r}}let n=T([r?ex(e.of,e=>`${e.name};${e.type}`).map(e=>ec(`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`,el.ARRAY_OF_NOT_UNIQUE)):ec('The array type is missing or having an invali
1d value for the required "of" property',el.ARRAY_OF_INVALID)]),i=r?e.of:[],s=i.some(e=>"object"===e.type&&typeof e.name>"u");i.some(e=>"block"===e.type)&&s&&n.push(ec("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.",el.ARRAY_OF_INVALID));let[a,o]=R(i,e=>eO(e.type)||eO(t.getType(e.type)?.jsonType)),l=a.length>0&&o.length>0;if(l){let e=a.map(e=>e.type),t=o.map(e=>e.type);n.push(ec(`The array type's 'of' property can't have both object types and primitive types (found primitive type ${eT(e)} ${j(e.map(eC))} and object type${eT(t)} ${j(t.map(eC))})`,el.ARRAY_OF_INVALID))}let u=e?.options?.list;return!l&&Array.isArray(u)&&(a.length>0?u.forEach(e=>{let r=e?.value??e;if(!a.some(e=>typeof r===t.getType(e.type).jsonType)){let e=j(a.map(e=>e.name||e.type),{conjunction:"or"});n.push(ec(`An invalid entry found in options.list: ${eI(r)}. Must be either a value of type ${e}, or an object with {title: string, value: ${e}}`,el.ARRAY_PREDEFINED_CHOICES_INVALID))}}):u.forEach(e=>{let t=e._type||"object";o.some(e=>(function(e,t){return("string"==typeof t.name?t.name:t.type)===e})(t,e))||n.push(ec(`An invalid entry found in options.list: ${eI(e)}. Must be an object with "_type" set to ${j(o.map(e=>e.name||e.type).map(e=>"object"===e?"undefined":eC(e)),{conjunction:"or"})}`,el.ARRAY_PREDEFINED_CHOICES_INVALID))})),e?.options?.list&&e?.options?.layout==="tags"&&n.push(ed("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:i.map(t.visit),_problems:n}},object:eY,slug:(e,t)=>{let r=[];return e.options&&e.options.slugifyFn&&(r.push(ed('Heads up! The "slugifyFn" option has been renamed to "slugify".',el.SLUG_SLUGIFY_FN_RENAMED)),e.options.slugify=e.options.slugifyFn),{...e,_problems:r}},file:(e,t)=>{let r=[],n=e.fields;n&&r.push(...eZ(n,{allowEmpty:!0}));let i=Array.isArray(n)?n?.filter(e=>"asset"===e.name):[];return e.options&&"u">typeof e.options.metadata&&!Array.isArray(e.options.metadata)?r.push(ec("Invalid type for file `metadata` field - must be an array of strings",el.ASSET_METADATA_FIELD_INVALID)):i.length>0&&r.push(ec("The name `asset` is not a valid field name for type `file`.")),{...e,fields:(Array.isArray(n)?n:[]).map((e,r)=>{let{name:n,...i}=e,{_problems:s,...a}=t.visit(i,r);return{name:n,...a,_problems:eW(e).concat(s||[])}}),_problems:r}},image:(e,t)=>{let r=[],n=e.fields;n&&r.push(...eZ(n,{allowEmpty:!0}));let i=e.options,s=i?.metadata,a=Array.isArray(s)?s.filter(e=>eK.includes(e)):[],o=["asset","hotspot","crop"],l=Array.isArray(n)?n?.filter(e=>o.includes(e.name)):[];return"u">typeof s&&!Array.isArray(s)?r.push(ec("Invalid type for image `metadata` field - must be an array of strings",el.ASSET_METADATA_FIELD_INVALID)):a.length>0?(r.push(ed(`Image \`metadata\` field contains superfluous properties (they are always included): ${a.join(", ")}`)),i={...i,metadata:s.filter(e=>!eK.includes(e))}):l.length>0&&r.push(ec(`The names \`${o.join("`, `")}\` are invalid field names for type \`image\`.`)),{...e,options:i,fields:(Array.isArray(n)?n:[]).map((e,r)=>{let{name:n,...i}=e,{_problems:s,...a}=t.visit(i,r);return{name:n,...a,_problems:eW(e).concat(s||[])}}),_problems:r}},block:function(e,t){var r,n,i,s,a,o,l,u,c;let d=[],h=e.styles,f=e.lists,p=e.marks,m=e.of,g=Object.keys(e).filter(e=>!eR.includes(e)&&!e.startsWith("_"));return g.length>0&&d.push(ec(`Found unknown properties for block declaration: ${j(g.map(ej))}`)),p&&(p=function(e,t,r){var n,i,s,a,o,l;let u=e.decorators,c=e.annotations;if(!N(e))return r.push(ec(`"marks" declaration should be an object, got ${eD(e)}`)),r;let d=Object.keys(e).filter(e=>!eN.includes(e)&&!e.startsWith("_"));return d.length>0&&r.push(ec(`Found unknown properties for block declaration: ${j(d.map(ej))}`)),u&&!Array.isArray(u)?r.push(ec(`"marks.decorators" declaration should be an array, got ${eD(u)}`)):u&&(u.filter(e=>!!e.blockEditor).forEach(e=>{e.icon=e.blockEditor.icon,e.component=e.blockEditor.render}
1),n=u,i=0,s=r,n.forEach((e,t)=>{if(!N(e))return void s.push(ec(`Annotation must be an object, got ${eD(e)}`));let r=e.value||`#${t}`,n=Object.keys(e).filter(e=>!eM.includes(e)&&!e.startsWith("_"));n.length>0&&s.push(ec(`Found unknown properties for decorator ${r}: ${j(n.map(ej))}`)),e.value?"string"!=typeof e.value?s.push(ec(`Decorator #${t} has an invalid "value" property, expected string, got ${eD(e.value)}`)):e.title||s.push(ed(`Decorator ${r} is missing recommended "title" property`)):s.push(ec(`Decorator #${t} is missing required "value" property`)),"u">typeof e.blockEditor&&(s.push(ed(`Decorator "${r}" has deprecated key "blockEditor", please refer to the documentation on how to configure the block type for version 3.`,el.DEPRECATED_BLOCKEDITOR_KEY)),e.icon=e.icon||e.blockEditor.icon,e.component=e.component||e.blockEditor.render)}),u=n),c&&!Array.isArray(c)?r.push(ec(`"marks.annotations" declaration should be an array, got ${eD(c)}`)):c&&(a=c,o=t,l=r,c=a.map(e=>{if(!N(e))return{...e,_problems:[ec(`Annotation must be an object, got ${eD(e)}`)]};let{_problems:t}=o.visit(e,o),r=e.type&&o.getType(e.type);return r&&!function e(t,r,n){if("jsonType"in t)return t.jsonType===r;let i=n.getType(t.type);if(!i)throw Error(`Could not resolve jsonType of ${t.name}. No parent type found`);return e(i,r,n)}(r,"object",o)&&t.push(ec(`Annotation cannot have type "${e.type}" - annotation types must inherit from object`)),"u">typeof e.blockEditor&&(l.push(ed('Annotation has deprecated key "blockEditor", please refer to the documentation on how to configure the block type for version 3.',el.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:u,annotations:c}}(e.marks,t,d)),h&&(r=h,n=0,i=d,h=Array.isArray(r)?(r.forEach((e,t)=>{if(!N(e))return void i.push(ec(`Style must be an object, got ${eD(e)}`));let r=e.value||`#${t}`,n=Object.keys(e).filter(e=>!e$.includes(e)&&!e.startsWith("_"));n.length>0&&i.push(ec(`Found unknown properties for style ${r}: ${j(n.map(ej))}`)),e.value?"string"!=typeof e.value?i.push(ec(`Style #${t} has an invalid "value" property, expected string, got ${eD(e.value)}`)):e.title||i.push(ed(`Style ${r} is missing recommended "title" property`)):i.push(ec(`Style #${t} is missing required "value" property`)),"u">typeof e.blockEditor&&(i.push(ed('Style has deprecated key "blockEditor", please refer to the documentation on how to configure the block type for version 3.',el.DEPRECATED_BLOCKEDITOR_KEY)),e.component=e.component||e.blockEditor.render)}),r):(i.push(ec(`"styles" declaration should be an array, got ${eD(r)}`)),i)),f&&(s=f,a=0,o=d,f=Array.isArray(s)?(s.forEach((e,t)=>{if(!N(e))return void o.push(ec(`List must be an object, got ${eD(e)}`));let r=e.value||`#${t}`,n=Object.keys(e).filter(e=>!eF.includes(e)&&!e.startsWith("_"));n.length>0&&o.push(ec(`Found unknown properties for list ${r}: ${j(n.map(ej))}`)),e.value?"string"!=typeof e.value?o.push(ec(`List type #${t} has an invalid "value" property, expected string, got ${eD(e.value)}`)):e.title||o.push(ed(`List type ${r} is missing recommended "title" property`)):o.push(ec(`List #${t} is missing required "value" property`))}),s):(o.push(ec(`"lists" declaration should be an array, got ${eD(s)}`)),o)),m&&(l=m,u=t,c=d,m=Array.isArray(l)?l.map(e=>{let{_problems:t}=u.visit(e,u);if("object"===e.type&&e.name&&u.getType(e.name))return{...e,_problems:[ed(`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.`,el.ARRAY_OF_TYPE_GLOBAL_TYPE_CONFLICT)]};let r=e;for(;r&&!r.jsonType;)r=u.getType(r.type);let n=eA.filter(e=>!eP.includes(e));return r&&"object"!==r.jsonType||n.some(t=>t===e.type)?{...e,_problems:[ec(`Block member types must be a supported object-like type. The following built-in types are supported: '${eP.join("', '")}'. You can also use shorthands for previously defined object types like {type: 'myObjectType'}`,el.ARRAY_OF_TYPE_BUILTIN_TYPE_CONFLICT)]}:{...e,_problems:t}}):void c.push(ec(`"of" declaration should be an array, got ${eD(l)}`))),{...$(e,g),marks:p,styles:h,name:e.name||e.type,of:m,_problems:d}},document:(e,t)=>
1{let r=eY(e,t),{initialValue:n,initialValues:i}=r;return"u">typeof n&&!N(n)&&"function"!=typeof n&&r._problems.push(ec('The "initialValue" property must be either a plain object or a function')),"u">typeof i&&r._problems.push(ec('Found property "initialValues" - did you mean "initialValue"?')),r},reference:(e,t)=>{let r=Array.isArray(e.to)||N(e.to),n=function(e){return Array.isArray(e.to)?e.to:e.to?[e.to]:e.to}(e),i=T([r?ex(n,e=>`${e.name};${e.type}`).map(e=>ec(`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`,el.REFERENCE_TO_INVALID)):ec('The reference type is missing or having an invalid value for the required "to" property. It should be an array of accepted types.',el.REFERENCE_TO_INVALID)]);return r&&0===n.length&&i.push(ec('The reference type should define at least one accepted type. Please check the "to" property.',el.REFERENCE_TO_INVALID)),i.push(...function(e){let{options:t}=e,r=[];return r.push(...["filter","filterParams"].filter(t=>t in e).map(e=>ec(`\`${e}\` is not allowed on a reference type definition - did you mean \`options.${e}\`?`,el.REFERENCE_INVALID_OPTIONS_LOCATION))),t?N(t)?"function"==typeof t.filter&&"u">typeof t.filterParams?r.concat(ec("`filterParams` cannot be used if `filter` is a function. Either statically define `filter` as a string, or return `params` from the `filter`-function.",el.REFERENCE_INVALID_FILTER_PARAMS_COMBINATION)):"function"!=typeof t.filter&&(t.filter||t.filterParams)?"string"!=typeof t.filter?r.concat(ec(`If set, \`filter\` must be a string. Got ${typeof t.filter}`)):"u">typeof t.filterParams&&!N(t.filterParams)?r.concat(ec("If set, `filterParams` must be an object.")):t.filterParams?r.concat(Object.keys(t.filterParams).filter(e=>e.startsWith("__")||e.startsWith("$")).map(e=>ec(`Filter parameter cannot be prefixed with "$" or "__". Got ${e}".`))):r:r:r.concat(ec("The reference type expects `options` to be an object",el.REFERENCE_INVALID_OPTIONS)):r}(e)),{...e,to:(r?n:[]).map(t.visit),_problems:i}},crossDatasetReference:(e,t)=>{let r=Array.isArray(e.to)||N(e.to),n=function(e){return Array.isArray(e.to)?e.to:e.to?[e.to]:e.to}(e),i=T([r?ex(n,e=>`${e.name};${e.type}`).map(e=>ec(`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`,el.CROSS_DATASET_REFERENCE_INVALID)):ec('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.',el.CROSS_DATASET_REFERENCE_INVALID)]);if(r&&0===n.length&&i.push(ec('The cross dataset reference type should define at least one referenced type. Please check the "to" property.',el.CROSS_DATASET_REFERENCE_INVALID)),n.forEach((e,t)=>{e.type||i.push(ec(`The referenced type at index ${t} must be named. Specify the name of the type you want to create references to.`,el.CROSS_DATASET_REFERENCE_INVALID)),N(e.preview)||i.push(ec(`Missing required preview config for the referenced type "${e.type||"<unknown type>"}"`,el.CROSS_DATASET_REFERENCE_INVALID))}),"string"==typeof e.dataset){let t=function(e){return e.length>=2&&e.toLowerCase()===e&&eq.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&&i.push(ec(t,el.CROSS_DATASET_REFERENCE_INVALID))}else i.push(ec("A cross dataset reference must specify a `dataset`",el.CROSS_DATASET_REFERENCE_INVALID));return e.studioUrl&&"function"!=typeof e.studioUrl&&i.push(ec('The "studioUrl" property on a cross dataset reference must be a function taking "{id, type}" as argument and returning a studio url.',el.CROSS_DATASET_REFERENCE_INVALID)),i.push(...function(e){let{options:t}=e,r=[];return r.push(...["filter","filterParams"].filter(t=>t in e).map(e=>ec(`\`${e}\` is not allowed on a reference type definition - did you mean \`options.${e}\`?`,el.REFERENCE_INVALID_OPTIONS_LOCATION))),t?N(t)?"function"==typeof t.filter&&"u">typeof t.filterParams?r.concat(ec("`filterParams` cannot be used if `filter` is a function. Either statically define `filter` as a string, or return `params` from the `filter`-function.",el.REFERENCE_INVALID_FILTER_PARAMS_COMBINATION)):"function"!=typeof t.filter&&(t.filter||t.filterParams)?"string"!=typeof t.filter?r.concat(ec(`If set, \`filter\` must be a string. Got ${typeof t.filter}`)):"u">typeof t.filterParams&&!N(t.filterParams)?r.concat(ec("If set, `filterParams` must be an object.")):t.filterParams?r.concat(Object.keys(t.filterParams).filter(e=>e.startsWith("__")||e.startsWith("$")).map(e=>ec(`Filter parameter cannot be prefixed with "$" or "__". Got ${e}".`))):r:r:r.concat(ec("The reference type expects `options` to be an object",el.REFERENCE_INVALID_OPTIONS)):r}(e)),{...e,_problems:i}},globalDocumentReference:(e,t)=>{let r=Array.isArray(e.to)||N(e.to),n=function(e){return Array.isArray(e.to)?e.to:e.to?[e.to]:[]}(e),i=T([r?ex(n,e=>`${e.name};${e.type}`).map(e=>ec(`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`,el.GLOBAL_DOCUMENT_REFERENCE_INVALID)):ec('The global document reference type is missing or having an invali
1d value for the required "to" property. It should be an array of accepted types.',el.GLOBAL_DOCUMENT_REFERENCE_INVALID)]);if(r&&0===n.length&&i.push(ec('The global document reference type should define at least one referenced type. Please check the "to" property.',el.GLOBAL_DOCUMENT_REFERENCE_INVALID)),n.forEach((e,t)=>{e.type||i.push(ec(`The referenced type at index ${t} must be named. Specify the name of the type you want to create references to.`,el.GLOBAL_DOCUMENT_REFERENCE_INVALID)),N(e.preview)||i.push(ec(`Missing required preview config for the referenced type "${e.type||"<unknown type>"}"`,el.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&&i.push(ec(t,el.GLOBAL_DOCUMENT_REFERENCE_INVALID))}else i.push(ec("A global document reference must specify a `resourceType`",el.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&&i.push(ec(t,el.GLOBAL_DOCUMENT_REFERENCE_INVALID))}else i.push(ec("A global document reference must specify a `resourceId`",el.GLOBAL_DOCUMENT_REFERENCE_INVALID));return e.studioUrl&&"function"!=typeof e.studioUrl&&"string"!=typeof e.studioUrl&&i.push(ec('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.',el.GLOBAL_DOCUMENT_REFERENCE_INVALID)),i.push(...function(e){let{options:t}=e,r=[];return r.push(...["filter","filterParams"].filter(t=>t in e).map(e=>ec(`\`${e}\` is not allowed on a reference type definition - did you mean \`options.${e}\`?`,el.REFERENCE_INVALID_OPTIONS_LOCATION))),t?N(t)?"function"==typeof t.filter&&"u">typeof t.filterParams?r.concat(ec("`filterParams` cannot be used if `filter` is a function. Either statically define `filter` as a string, or return `params` from the `filter`-function.",el.REFERENCE_INVALID_FILTER_PARAMS_COMBINATION)):"function"!=typeof t.filter&&(t.filter||t.filterParams)?"string"!=typeof t.filter?r.concat(ec(`If set, \`filter\` must be a string. Got ${typeof t.filter}`)):"u">typeof t.filterParams&&!N(t.filterParams)?r.concat(ec("If set, `filterParams` must be an object.")):t.filterParams?r.concat(Object.keys(t.filterParams).filter(e=>e.startsWith("__")||e.startsWith("$")).map(e=>ec(`Filter parameter cannot be prefixed with "$" or "__". Got ${e}".`))):r:r:r.concat(ec("The reference type expects `options` to be an object",el.REFERENCE_INVALID_OPTIONS)):r}(e)),{...e,_problems:i}}};function eQ(...e){return(t,r)=>e.reduce((e,t)=>{let n=t(e,r);return{...n,_problems:e._problems.concat(n._problems)}},{_problems:[],...t})}function e0(e,{transformTypeVisitors:t=e=>e,transformCommonVisitors:r=e=>e}={}){return function(e=[],t=[],r=e=>e){let n=Object.create(null),i=Object.create(null),s=t.map(e=>e.name),a=eE.concat(s),o=e.map(e=>e&&e.name).filter(Boolean);function l(e){return"type"===e?ek:n[e]||i[e]||null}t.forEach(e=>{n[e.name]=e}),e.forEach((e,t)=>{i[e&&e.name||`__unnamed_${t}`]={}});let u=D(T(ex(o)));function c(e){return u.includes(e)}function d(){return o.concat(s)}function h(e){return"type"===e||a.includes(e)}let f=e=>(t,n)=>r(t,{visit:f(!1),isRoot:e,getType:l,getTypeNames:d,isReserved:h,isDuplicate:c,index:n});return t.forEach(e=>{Object.assign(n[e.name],f(e))}),e.forEach((e,t)=>{Object.assign(i[e&&e.name||`__unnamed_${t}`],f(!0)(e,t))}),{get(e){let t=i[e]||n[e];if(t)return t;throw Error(`No such type: ${e}`)},has:e=>e in i||e in n,getTypeNames:()=>Object.keys(i),getTypes(){return this.getTypeNames().map(this.get)},toJSON(){return this.getTypes()}}}(e,eS,(e,n)=>{let i=e&&e.type&&t(eX)[e.type]||(e=>({name:`<unnamed_type_@_index_${n.index}>`,...e,_problems:[]})),s=r([ez]);return n.isRoot?eQ(eJ,...s,i)(e,n):eQ(...s,i)(e,n)})}O.Sj.compile({name:"studio",types:eo})},4010:(e,t,r)=>{"use strict";r.d(t,{b:()=>i});var n=r(13321);function i(e,t){return(0,n.k)(e,{...t,weekStartsOn:1}
1)}},4016:(e,t,r)=>{e.exports=r(80585)()},4146:(e,t,r)=>{var n=r(66709);e.exports=function(e,t){for(var r=-1,i=e.length;++r<i&&n(t,e[r],0)>-1;);return r}},4165:(e,t,r)=>{"use strict";let n=r(43166);e.exports=(e,t,r)=>0===n(e,t,r)},4355:(e,t,r)=>{"use strict";r.d(t,{o:()=>l});var n=r(59888),i=r(35508),s=r(13177),a=r(88693),o=r(86752);function l(e,t,r){var l,u,c,d,h,f,p,m,g,y;let b,[v,_]=(0,s.x)(null==r?void 0:r.in,e,t),w=(0,i.q)(),x=null!=(f=null!=(h=null==r?void 0:r.locale)?h:w.locale)?f:n.c,k=null!=(y=null!=(g=null!=(m=null!=(p=null==r?void 0:r.weekStartsOn)?p:null==r||null==(u=r.locale)||null==(l=u.options)?void 0:l.weekStartsOn)?m:w.weekStartsOn)?g:null==(d=w.locale)||null==(c=d.options)?void 0:c.weekStartsOn)?y:0,E=(0,a.m)(v,_);if(isNaN(E))throw RangeError("Invalid time value");b=E<-6?"other":E<-1?"lastWeek":E<0?"yesterday":E<1?"today":E<2?"tomorrow":E<7?"nextWeek":"other";let S=x.formatRelative(b,v,_,{locale:x,weekStartsOn:k});return(0,o.GP)(v,S,{locale:x,weekStartsOn:k})}},4698:(e,t,r)=>{var n=r(77180);e.exports=function(e){return n(e).toLowerCase()}},4782:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},4890:(e,t,r)=>{var n=r(98188);e.exports=function(e){var t=n(e,function(e){return 500===r.size&&r.clear(),e}),r=t.cache;return t}},4937:(e,t,r)=>{"use strict";r.d(t,{y:()=>A});var n=r(23821),i=r(87809),s=r(57026),a=r(38437),o=r(32785),l=r(25220),u=r(92298),c=r(29060),d=r(92521),h=r(28077),f=r(87865),p=r(2541),m=r(14919),g=r(41058),y=r(74157);let b="Not capturing exception because it's already been captured.";class v{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=(0,s.AD)(e.dsn):i.T&&f.vF.warn("No DSN provided, client will not send events."),this._dsn){let t=function(e,t,r){return t||`${function(e){let t=e.protocol?`${e.protocol}:`:"",r=e.port?`:${e.port}`:"";return`${t}//${e.host}${r}${e.path?`/${e.path}`:""}/api/`}(e)}${e.projectId}/envelope/?${function(e,t){let r={sentry_version:"7"};return e.publicKey&&(r.sentry_key=e.publicKey),t&&(r.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(r).toString()}(e,r)}`}(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,f.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,r){let n=(0,p.eJ)();if((0,p.GR)(e))return i.T&&f.vF.log(b),n;let s={event_id:n,...t};return this._process(this.eventFromException(e,s).then(e=>this._captureEvent(e,s,r))),s.event_id}captureMessage(e,t,r,n){let i={event_id:(0,p.eJ)(),...r},s=(0,h.NF)(e)?e:String(e),a=(0,h.sO)(e)?this.eventFromMessage(s,t,i):this.eventFromException(e,i);return this._process(a.then(e=>this._captureEvent(e,i,n))),i.event_id}captureEvent(e,t,r){let n=(0,p.eJ)();if(t&&t.originalException&&(0,p.GR)(t.originalException))return i.T&&f.vF.log(b),n;let s={event_id:n,...t},a=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,s,a||r)),s.event_id}captureSession(e){"string"!=typeof e.release?i.T&&f.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;
1return t?(this.emit("flush"),this._isClientDoneProcessing(e).then(r=>t.flush(e).then(e=>r&&e))):(0,m.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,o.qm)(this,e,this._integrations),t||(0,o.lc)(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let r=function(e,t,r,n){var i;let s=(0,a.Cj)(r),o=e.type&&"replay_event"!==e.type?e.type:"event";(i=r&&r.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,s,n,t);delete e.sdkProcessingMetadata;let u=[{type:o},e];return(0,a.h4)(l,[u])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])r=(0,a.W3)(r,(0,a.bm)(e));let n=this.sendEnvelope(r);n&&n.then(t=>this.emit("afterSendEvent",e,t),null)}sendSession(e){let t=function(e,t,r,n){let i=(0,a.Cj)(r),o={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!n&&t&&{dsn:(0,s.SB)(t)}},l="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return(0,a.h4)(o,[l])}(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(t)}recordDroppedEvent(e,t,r){if(this._options.sendClientReports){let n="number"==typeof r?r:1,s=`${e}:${t}`;i.T&&f.vF.log(`Recording outcome: "${s}"${n>1?` (${n} times)`:""}`),this._outcomes[s]=(this._outcomes[s]||0)+n}}on(e,t){let r=this._hooks[e]=this._hooks[e]||[];return r.push(t),()=>{let e=r.indexOf(t);e>-1&&r.splice(e,1)}}emit(e,...t){let r=this._hooks[e];r&&r.forEach(e=>e(...t))}sendEnvelope(e){return(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)?this._transport.send(e).then(null,e=>(i.T&&f.vF.error("Error while sending envelope:",e),e)):(i.T&&f.vF.error("Transport disabled"),(0,m.XW)({}))}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=(0,o.P$)(this,e),(0,o.lc)(this,e)}_updateSessionFromEvent(e,t){let r="fatal"===t.level,n=!1,i=t.exception&&t.exception.values;if(i)for(let e of(n=!0,i)){let t=e.mechanism;if(t&&!1===t.handled){r=!0;break}}let s="ok"===e.status;(s&&0===e.errors||s&&r)&&((0,l.qO)(e,{...r&&{status:"crashed"},errors:e.errors||Number(n||r)}),this.captureSession(e))}_isClientDoneProcessing(e){return new m.T2(t=>{let r=0,n=setInterval(()=>{0==this._numProcessing?(clearInterval(n),t(!0)):(r+=1,e&&r>=e&&(clearInterval(n),t(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,r=(0,n.o5)(),i=(0,n.rm)()){let s=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,g.mG)(s,e,t,r,this,i).then(e=>(null===e||(e.contexts={trace:(0,n.vn)(r),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:(0,u.ao)(this,r),...e.sdkProcessingMetadata}),e))}_captureEvent(e,t={},r){return this._processEvent(e,t,r).then(e=>e.event_id,e=>{i.T&&(e instanceof d.U&&"log"===e.logLevel?f.vF.log(e.message):f.vF.warn(e))})}_processEvent(e,t,r){let n=this.getOptions(),{sampleRate:s}=n,a=w(e),o=_(e),l=e.type||"error",u=`before send for type \`${l}\``,c=void 0===s?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&&f.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}(s);if(o&&"number"==typeof c&&Math.random()>c)return this.recordDroppedEvent("sample_rate","error",e),(0,m.xg)(new d.U(`Discarding event because it's not included in the random sample (sampling rate = ${s})`,"log"));let p="replay_event"===l?"replay":l,g=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,r,g).then(r=>{if(null===r)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__?r:function(e,t){let r=`${t} must return \`null\` or a valid event.`;if((0,h.Qg)(e))return e.then(e=>{if(!(0,h.Qd)(e)&&null!==e)throw new d.U(r);return e},e=>{throw new d.U(`${t} rejected with ${e}`)});if(!(0,h.Qd)(e)&&null!==e)throw new d.U(r);return e}(function(e,t,r,n){let{beforeSend:i,beforeSendTransaction:s,beforeSendSpan:a}=t;if(_(r)&&i)return i(r,n);if(w(r)){if(r.spans&&a){let t=[];for(let n of r.spans){let r=a(n);r?t.push(r):((0,y.xl)(),e.recordDroppedEvent("before_send","span"))}r.spans=t}if(s){if(r.spans){let e=r.spans.length;r.sdkProcessingMetadata={...r.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return s(r,n)}}return r}(this,n,r,t),u)}).then(n=>{if(null===n){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=r&&r.getSession();if(!a&&i&&this._updateSessionFromEvent(i,n),a){let e=(n.sdkProcessingMetadata&&n.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(n.spans?n.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}let s=n.transaction_info;return a&&s&&n.transaction!==e.transaction&&(n.transaction_info={...s,source:"custom"}),this.sendEvent(n,t),n}).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.
2Reason: ${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[r,n]=e.split(":");return{reason:r,category:n,quantity:t}})}_flushOutcomes(){i.T&&f.vF.log("Flushing outcomes...");let e=this._clearOutcomes();if(0===e.length){i.T&&f.vF.log("No outcomes to send");return}if(!this._dsn){i.T&&f.vF.log("No dsn provided, will not send outcomes");return}i.T&&f.vF.log("Sending outcomes:",e);let t=function(e,t,r){let n=[{type:"client_report"},{timestamp:(0,c.lu)(),discarded_events:e}];return(0,a.h4)(t?{dsn:t}:{},[n])}(e,this._options.tunnel&&(0,s.SB)(this._dsn));this.sendEnvelope(t)}}function _(e){return void 0===e.type}function w(e){return"transaction"===e.type}var x=r(11343),k=r(72501),E=r(16566),S=r(51622);class A extends v{constructor(e){let t={parentSpanIsAlwaysRootSpan:!0,...e},r=S.jf.SENTRY_SDK_SOURCE||"npm";(0,x.K)(t,"browser",["browser"],r),super(t),t.sendClientReports&&S.jf.document&&S.jf.document.addEventListener("visibilitychange",()=>{"hidden"===S.jf.document.visibilityState&&this._flushOutcomes()})}eventFromException(e,t){return(0,E.u)(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",r){return(0,E.qv)(this._options.stackParser,e,t,r,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled()){k.T&&f.vF.warn("SDK not enabled, will not capture user feedback.");return}let t=function(e,{metadata:t,tunnel:r,dsn:n}){let i={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!r&&!!n&&{dsn:(0,s.SB)(n)}},o=[{type:"user_report"},e];return(0,a.h4)(i,[o])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(t)}_prepareEvent(e,t,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,r)}}},5333:(e,t,r)=>{"use strict";r.d(t,{i:()=>s});var n=r(41325),i=r(97537);function s(e,t,r){let s=(0,i.a)(e,null==r?void 0:r.in);return isNaN(+s)?(0,n.w)((null==r?void 0:r.in)||e,NaN):(s.setFullYear(t),s)}},5715:(e,t,r)=>{"use strict";let n=r(43166);e.exports=(e,t,r)=>0>n(e,t,r)},5815: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)}
2,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,r,n;for(t=this._JPEG_ID_SIZE,n=[];!(e.byteLength<t+this._APP_ID_OFFSET+5);){if(this._isApp1ExifMarker(e,t))r=e.getUint16(t+this._APP_MARKER_SIZE,!1),this._tiffHeaderOffset=t+this._TIFF_HEADER_OFFSET;else if(this._isAppMarker(e,t))r=e.getUint16(t+this._APP_MARKER_SIZE,!1);else break;n.push(t+=this._APP_MARKER_SIZE+r)}return n},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 r;return(r=e.getUint16(t,!1))>=this._APP0_MARKER&&r<=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 r,n,i,s;for(r=this._getShortAt(t),t+=2,s=[],i=0;0<=r?i<r:i>r;0<=r?++i:--i)n=this._readTag(e,t),this._tags[n.name]={value:n.value,description:n.description},s.push(t+=12);return s},e.prototype._readTag=function(e,t){var r,n,i,s,a,o,l;return(r=this._getShortAt(t),a=this._getShortAt(t+2),n=this._getLongAt(t+4),this._typeSizes[a]*n<=4?o=this._getTagValue(t+8,a,n):(l=this._getLongAt(t+8),o=this._getTagValue(this._tiffHeaderOffset+l,a,n)),a===this._tagTypes.ASCII&&(o=this._splitNullSeparatedAsciiString(o)),null!=this._tagNames[e][r])?(null!=this._tagNames[e][r].name&&null!=this._tagNames[e][r].description?(s=this._tagNames[e][r].name,i=this._tagNames[e][r].description(o)):(s=this._tagNames[e][r],i=o instanceof Array?o.join(", "):o),{name:s,value:o,description:i}):{name:"undefined-"+r,value:o,description:o}},e.prototype._getTagValue=function(e,t,r){var n,i;return 1===(i=(function(){var i,s;for(s=[],i=0;0<=r?i<r:i>r;0<=r?++i:--i)n=this._getTagValueAt[t](e),e+=this._typeSizes[t],s.push(n);return s}).call(this)).length?i=i[0]:t===this._tagTypes.ASCII&&(i=this._getAsciiValue(i)),i},e.prototype._getAsciiValue=function(e){var t,r,n,i;for(r=0,i=[],n=e.length;r<n;r++)t=e[r],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,r,n,i,s;for(i=0,n=[],r=0,s=e.length;i<s;i++){if("\0"===(t=e[i])){r++;continue}null==n[r]&&(n[r]=""),n[r]+=t}return n},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"}}}
2,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,r,n;for(r=0,t="",n=e.length;r<n;r++)t+=String.fromCharCode(e[r]);return t}},36867:"DateTimeOriginal",36868:"DateTimeDigitized",37121:{name:"ComponentsConfiguration",description:function(e){var t,r,n;for(r=0,t="",n=e.length;r<n;r++)switch(e[r]){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"Flash 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";
2case 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,r,n;for(r=0,t="",n=e.length;r<n;r++)t+=String.fromCharCode(e[r]);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,r;return e[0]===(t=e[1])&&2===t&&e[2]===(r=e[3])&&0===r?"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,r,n;for(n=[],t=0,r=2-(""+Math.floor(e)).length;0<=r?t<r:t>r;0<=r?++t:--t)n.push("0");return n}()+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";
2case 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)},5974:(e,t,r)=>{var n=r(58516),i=r(31749),s=r(42725),a=r(70368),o=r(82502),l=r(46939),u=r(77180);e.exports=function(e){return s(e)?n(e,l):a(e)?[e]:i(o(u(e)))}},6100:(e,t,r)=>{"use strict";r.d(t,{JW:()=>p,me:()=>ec,sR:()=>eh});var n=r(78280);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:"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 s={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}
2,{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},{ascenderHeight:8,descenderHeight:8,fontSize:21,iconSize:33,lineHeight:31,letterSpacing:0}]}},o=new WeakMap;function l(e){let t=o.get(e);if(t)return t;let r=c(e,e.card.enabled),n={_blend:e._blend||(e.dark?"screen":"multiply"),_dark:e.dark,accent:r.accent,avatar:r.avatar,backdrop:e.base.shadow.ambient,badge:r.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:r.code,fg:e.base.fg,focusRing:e.base.focusRing,icon:r.muted.fg,input:{default:d(e.input.default),invalid:d(e.input.invalid)},kbd:r.kbd,link:r.link,muted:{...r.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 o.set(e,n),n}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}
2,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:h(e.enabled),disabled:h(e.disabled),readOnly:h(e.readOnly),hovered:h(e.hovered)}}function h(e){return{bg:e.bg,border:e.border,fg:e.fg,muted:{bg:e.bg2},placeholder:e.placeholder}}let f=new WeakMap;function p(e){if(e.sanity.v2?._resolved)return e.sanity.v2;let t=f.get(e);if(t)return t;let r={_version:2,_resolved:!0,avatar:{...s.avatar,...e.sanity.avatar},button:{...s.button,...e.sanity.button},card:s.card,color:l(e.sanity.color),container:e.sanity.container,font:e.sanity.fonts,input:{...s.input,...e.sanity.input,checkbox:{...s.input.checkbox,...e.sanity.input.checkbox},radio:{...s.input.radio,...e.sanity.input.radio},switch:{...s.input.switch,...e.sanity.input.switch}},layer:e.sanity.layer??s.layer,media:e.sanity.media,radius:e.sanity.radius,shadow:e.sanity.shadows,space:e.sanity.space,style:e.sanity.styles};return f.set(e,r),r}function m(e){return 2===e._version}let g=new WeakMap,y=new WeakMap;function b(e){let t=y.get(e);if(t)return t;let{avatar:r,button:n,color:i,container:s,font:a,input:o,media:l,radius:u,shadow:c,space:d,style:h}=e;return{_version:0,avatar:r,button:n,container:s,color:{light:{transparent:v(i.light.transparent),default:v(i.light.default),primary:v(i.light.primary),positive:v(i.light.positive),caution:v(i.light.caution),critical:v(i.light.critical)},dark:{transparent:v(i.dark.transparent),default:v(i.dark.default),primary:v(i.dark.primary),positive:v(i.dark.positive),caution:v(i.dark.caution),critical:v(i.dark.critical)}},focusRing:o.text.focusRing,fonts:a,input:o,media:l,radius:u,shadows:c,space:d,styles:h,v2:e}}function v(e){return{base:{bg:e.bg,fg:e.fg,border:e.border,focusRing:e.focu
2sRing,shadow:e.shadow},button:e.button,card:e.selectable.default,dark:e._dark,input:{default:_(e.input.default),invalid:_(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 _(e){return{enabled:w(e.enabled),disabled:w(e.disabled),readOnly:w(e.readOnly),hovered:w(e.hovered)}}function w(e){return{bg:e.bg,bg2:e.muted.bg,border:e.border,fg:e.fg,placeholder:e.placeholder}}let x=["multiply","screen"],k=["transparent","default","neutral","primary","suggest","positive","caution","critical"],E=["default","neutral","primary","suggest","positive","caution","critical"],S=["enabled","hovered","pressed","selected","disabled"],A=["default","ghost","bleed"],O=["default","invalid"],C=["enabled","hovered","readOnly","disabled"];function T(e){return n.V0.includes(e)}function I(e){return/^\d+%$/.test(e)}function D(e){var t;let r=e.split("/"),i=r.shift()||"",[s,a]=i.split(" ");if(T(s)){let e=r.shift()||"";return I(a)?{type:"color",tint:s,mix:Number(a.slice(0,-1))/100}:j(e)?{type:"color",tint:s,opacity:Number(e)}:{type:"color",tint:s}}if("black"===(t=s)||"white"===t){let e=r.shift()||"";return I(a)?{type:"color",key:s,mix:Number(a.slice(0,-1))/100}:j(e)?{type:"color",key:s,opacity:Number(e)}:{type:"color",key:s}}if(n.Cv.includes(s)){let[e,t]=(i=r.shift()||"").split(" ");if(T(e)){let n=r.shift()||"";return I(t)?{type:"color",hue:s,tint:e,mix:Number(t.slice(0,-1))/100}:j(n)?{type:"color",hue:s,tint:e,opacity:Number(n)}:{type:"color",hue:s,tint:e}}return{type:"hue",value:s}}if(x.includes(s))return{type:"blendMode",value:s}}function j(e){return"0"===e||/^0\.[0-9]+$/.test(e)||"1"===e}[...n.Cv],[...k],[...E],[...S],[...O],[...C];let R=["500","500"];function N(e,t=R){var r;let n,{hue:i,scheme:s}=e,a=D(t[+("light"!==s)]);if(!a||"color"!==a.type)throw Error(`Invalid color token: ${t[0]}`);return r={...a,hue:a.hue||i},n="",n="black"===r.key||"white"===r.key?r.key:`${r.hue}/${r.tint}`,void 0!==r.mix?`${n} ${100*r.mix}%`:(void 0!==r.opacity&&(n+=`/${r.opacity}`),n)}let $={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"]}}
2,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
2data:["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 M(e){return!!(e&&"object"==typeof e&&!Array.isArray(e))}function F(...e){let t=e.filter(Boolean);return 0===t.length?{}:t.reduce(P,{})}function P(e,t){for(let r of Object.keys(t)){let n=e[r],i=t[r];M(n)&&M(i)?e[r]=F(n,i):e[r]=i}return e}function L(e,t){let{scheme:r}=e,n={};for(let e of k)n[e]=function(e,t){let{scheme:r,tone:n}=e,i=t?.color?.base?.[n],s={hue:i?._hue||"gray",scheme:r};return{_blend:(i?._blend||["multiply","screen"])[+("light"!==r)],_dark:"dark"===r,accent:{fg:N(s,i?.accent?.fg)},avatar:z({scheme:r},i),backdrop:N(s,i?.backdrop),badge:U(i?.badge,{scheme:r},t),bg:N(s,i?.bg),border:N(s,i?.border),button:function(e,t){let{scheme:r,tone:n}=e,i={};for(let e of A)i[e]=function(e,t){let{cardTone:r,mode:n,scheme:i}=e,s={};for(let e of E)s[e]=function(e,t){let{cardTone:r,mode:n,scheme:i,tone:s}=e,a={};for(let e of S)a[e]=function(e,t){let{cardTone:r,mode:n,tone:i,scheme:s,state:a}=e,o=t?.color?.base?.[r],l=t?.color?.button?.[n]?.[i]?.[a],u=l?._hue||o?._hue||"gray",c=l?._blend||["screen","multiply"],d={hue:u,scheme:s};return{_blend:c[+("light"!==s)],accent:{fg:N(d,l?.accent?.fg)},avatar:z({scheme:s},l),badge:U(l?.badge,{scheme:s},t),bg:N(d,l?.bg),border:N(d,l?.border),code:{bg:N(d,l?.code?.bg),fg:N(d,l?.code?.fg)},fg:N(d,l?.fg),icon:N(d,l?.icon),muted:{bg:N(d,l?.muted?.bg),fg:N(d,l?.muted?.fg)},kbd:{bg:N(d,l?.kbd?.bg),fg:N(d,l?.kbd?.fg),border:N(d,l?.kbd?.border)},link:{fg:N(d,l?.link?.fg)},skeleton:{from:N(d,l?.skeleton?.from),to:N(d,l?.skeleton?.to)}}}({cardTone:r,mode:n,tone:s,scheme:i,state:e},t);return a}({cardTone:r,mode:n,scheme:i,tone:e},t);return s}({cardTone:n,scheme:r,mode:e},t);return i}({scheme:r,tone:n},t),code:{bg:N(s,i?.code?.bg),fg:N(s,i?.code?.fg)},fg:N(s,i?.fg),focusRing:N(s,i?.focusRing),icon:N(s,i?.icon),input:function(e,t){let{scheme:r,tone:n}=e;return{default:B({mode:"default",scheme:r,tone:n},t),invalid:B({mode:"invalid",scheme:r,tone:n},t)}}({scheme:r,tone:n},t),kbd:{bg:N(s,i?.kbd?.bg),fg:N(s,i?.kbd?.fg),border:N(s,i?.kbd?.border)},link:{fg:N(s,i?.link?.fg)},muted:{bg:N(s,i?.muted?.bg),fg:N(s,i?.muted?.fg)},selectable:function(e,t){let{scheme:r,tone:n}=e,i={};for(let e of E)i[e]=function(e,t){let{cardTone:r,scheme:n,tone:i}=e,s={};for(let e of S)s[e]=function(e,t){let{cardTone:r,scheme:n,state:i,tone:s}=e,a=t?.color?.base?.[r],o=t?.color?.selectable?.[s]?.[i],l=o?._hue||a?._hue||"gray",u=o?._blend||["screen","multiply"],c={hue:l,scheme:n};return{_blend:u[+("light"!==n)],accent:{fg:N(c,o?.accent?.fg)},avatar:z({scheme:n},o),badge:U(o?.badge,{scheme:n},t),bg:N(c,o?.bg),border:N(c,o?.border),code:{bg:N(c,o?.code?.bg),fg:N(c,o?.code?.fg)},fg:N(c,o?.fg),icon:N(c,o?.icon),muted:{bg:N(c,o?.muted?.bg),fg:N(c,o?.muted?.fg)},kbd:{bg:N(c,o?.kbd?.bg),fg:N(c,o?.kbd?.fg),border:N(c,o?.kbd?.border)},link:{fg:N(c,o?.link?.fg)},skeleton:{from:N(c,o?.skeleton?.from),to:N(c,o?.skeleton?.to)}}}({cardTone:r,tone:i,scheme:n,state:e},t);return s}({cardTone:n,scheme:r,tone:e},t);return i}({scheme:r,tone:n},t),shadow:function(e,t){let{scheme:r,tone:n}=e,i=t?.color?.base?.[n],s={hue:i?._hue||"gray",scheme:r};return{outline:N(s,i?.shadow?.outline),umbra:N(s,i?.shadow?.umbra),penumbra:N(s,i?.shadow?.penumbra),ambient:N(s,i?.shadow?.ambient)}}
2({scheme:r,tone:n},t),skeleton:{from:N(s,i?.skeleton?.from),to:N(s,i?.skeleton?.to)},syntax:function(e,t){let{scheme:r}=e,n=t?.color?.syntax,i={hue:"gray",scheme:r};return{atrule:N(i,n?.atrule),attrName:N(i,n?.attrName),attrValue:N(i,n?.attrValue),attribute:N(i,n?.attribute),boolean:N(i,n?.boolean),builtin:N(i,n?.builtin),cdata:N(i,n?.cdata),char:N(i,n?.char),class:N(i,n?.class),className:N(i,n?.className),comment:N(i,n?.comment),constant:N(i,n?.constant),deleted:N(i,n?.deleted),doctype:N(i,n?.doctype),entity:N(i,n?.entity),function:N(i,n?.function),hexcode:N(i,n?.hexcode),id:N(i,n?.id),important:N(i,n?.important),inserted:N(i,n?.inserted),keyword:N(i,n?.keyword),number:N(i,n?.number),operator:N(i,n?.operator),prolog:N(i,n?.prolog),property:N(i,n?.property),pseudoClass:N(i,n?.pseudoClass),pseudoElement:N(i,n?.pseudoElement),punctuation:N(i,n?.punctuation),regex:N(i,n?.regex),selector:N(i,n?.selector),string:N(i,n?.string),symbol:N(i,n?.symbol),tag:N(i,n?.tag),unit:N(i,n?.unit),url:N(i,n?.url),variable:N(i,n?.variable)}}({scheme:r},t)}}({scheme:r,tone:e},t);return n}function z(e,t){let{scheme:r}=e;return{gray:q({color:"gray",scheme:r},t),blue:q({color:"blue",scheme:r},t),purple:q({color:"purple",scheme:r},t),magenta:q({color:"magenta",scheme:r},t),red:q({color:"red",scheme:r},t),orange:q({color:"orange",scheme:r},t),yellow:q({color:"yellow",scheme:r},t),green:q({color:"green",scheme:r},t),cyan:q({color:"cyan",scheme:r},t)}}function q(e,t){let{color:r,scheme:n}=e,i=t?.avatar?.[r],s={hue:i?._hue||"gray",scheme:n};return{_blend:(i?._blend||["screen","multiply"])[+("light"!==n)],bg:N(s,i?.bg),fg:N(s,i?.fg)}}function U(e,t,r){let{scheme:n}=t,i={};for(let t of E)i[t]=function(e,t,r){let{scheme:n,tone:i}=t,s=e?.[i],a={hue:s?._hue||r?.color?.base?.[i]?._hue||"gray",scheme:n};return{bg:N(a,s?.bg),fg:N(a,s?.fg),dot:N(a,s?.dot),icon:N(a,s?.icon)}}(e,{scheme:n,tone:t},r);return i}function B(e,t){let{mode:r,scheme:n,tone:i}=e;return{enabled:V({mode:r,scheme:n,state:"enabled",cardTone:i},t),hovered:V({mode:r,scheme:n,state:"hovered",cardTone:i},t),readOnly:V({mode:r,scheme:n,state:"readOnly",cardTone:i},t),disabled:V({mode:r,scheme:n,state:"disabled",cardTone:i},t)}}function V(e,t){let{cardTone:r,mode:n,scheme:i,state:s}=e,a=t?.color?.base?.[r],o=t?.color?.input?.[n]?.[s],l=o?._hue||a?._hue||"gray",u=o?._blend||["screen","multiply"],c={hue:l,scheme:i};return{_blend:u[+("light"!==i)],bg:N(c,o?.bg),border:N(c,o?.border),fg:N(c,o?.fg),muted:{bg:N(c,o?.muted?.bg)},placeholder:N(c,o?.placeholder)}}let H=n.yW;function G(e,t=0,r=1){return Math.min(r,Math.max(t,e))}function W(e,t,r,n,i){var s;return r*(1-(s=G((i-e)/(t-e))))+n*s}function Z(e){return Math.round(e)}function Y(e){if(4===e.length){let t=e.slice(1,2),r=e.slice(2,3),n=e.slice(3,4);return{r:parseInt(t+t,16),g:parseInt(r+r,16),b:parseInt(n+n,16)}}return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16)}}function K(e){let t=Z(G(Math.round(e.r),0,255)),r=Z(G(Math.round(e.g),0,255)),n=Z(G(Math.round(e.b),0,255));return"a"in e?`rgba(${t},${r},${n},${e.a})`:"#"+(0x1000000+(t<<16)+(r<<8)+n).toString(16).slice(1)}let J=/hsl\(\s*(\d+)\s*,\s*((\d+(?:\.\d+)?)%)\s*,\s*((\d+(?:\.\d+)?)%)\s*\)/i;function X(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 Y(e);if(e.startsWith("hsl("))return function(e){let t=e.s/100,r=e.l/100,n=(1-Math.abs(2*r-1))*t,i=n*(1-Math.abs(e.h/60%2-1)),s=r-n/2,a=0,o=0,l=0;return 0<=e.h&&e.h<60?(a=n,o=i,l=0):60<=e.h&&e.h<120?(a=i,o=n,l=0):120<=e.h&&e.h<180?(a=0,o=n,l=i):180<=e.h&&e.h<240?(a=0,o=i,l=n):240<=e.h&&e.h<300?(a=i,o=0,l=n):300<=e.h&&e.h<360&&(a=n,o=0,l=i),{r:Math.round((a+s)*255),g:Math.round((o+s)*255),b:Math.round((l+s)*255)}}(function(e){let t=J.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}"`)}let Q=[0,255];function ee(e,t){let{bg:r,blendMode:n,colorPalette:i}=t;if("white"===r)throw Error("Cannot blend with white background");let s=D(e);if(!s||"color"!==s.type)throw Error(`Invalid color token value: ${e}`);let a="";if("black"===s.key&&(a=et(i.black)),"white"===s.key&&(a=et(i.white)),s.hue&&s.tint&&(a=et(i[s.hue][s.tint])),!a)throw Error(`Invalid color token value: ${e}`);let o=a,l={blendMode:n,bg:r,black:et(i.black),white:et(i.white)};try{if(a=function(e,t){var r,n,i,s,a,o;let{blendMode:l}=t,u=X(e),c=X(t.black),d=X(t.white),h=t.bg?X(t.bg):"multiply"===l?d:c,f={r:[c.r,d.r],g:[c.g,d.g],b:[c.b,d.b]},p={r:G(W(...f.r,...Q,h.r),...Q),g:G(W(...f.g,...Q,h.g),...Q),b:G(W(...f.b,...Q,h.b),...Q)},m={r:G(W(...f.r,...Q,u.r),...Q),g:G(W(...f.g,...Q,u.g),...Q),b:G(W(...f.b,...Q,u.b),...Q)},g="multiply"===l?{r:255*(p.r/255*(m.r/255)),g:255*(p.g/255*(m.g/255)),b:255*(p.b/255*(m.b/255))}:{r:255*((r=p.r/255)+(n=m.r/255)-r*n),g:255*((i=p.g/255)+(s=m.g/255)-i*s),b:255*((a=p.b/255)+(o=m.b/255)-a*o)};return K({r:G(W(...Q,...f.r,g.r),...f.r),g:G(W(...Q,...f.g,g.g),...f.g),b:G(W(...Q,...f.b,g.b),...f.b)})}(a,l),r&&void 0!==s.mix){var u,c,d,h,f,p,m;let e=Y(r),t=Y(a);a=K((u=s.mix,{r:(c=e.r,d=t.r,c+(d-c)*u),g:(h=e.g,f=t.g,h+(f-h)*u),b:(p=e.b,m=t.b,p+(m-p)*u)}))}}catch(e){throw console.warn("could not blend",a,l),e}
2return"#aN"===a&&(console.warn(`invalid color token value: ${e}`),a=o),void 0!==s.opacity&&(a=function(e,t){let r=X(e);return`rgba(${r.r},${r.g},${r.b},${t})`}(a,s.opacity)),a}function et(e){return"string"==typeof e?e:e.hex}function er(e,t){let r=Object.entries(t),[,n]=r.find(([e])=>"transparent"===e),[,i]=r.find(([e])=>"default"===e),s=en(n,{colorPalette:e}),a=en(i,{colorPalette:e}),o=a.bg;if("white"===o)throw Error("Cannot blend with white background");return Object.fromEntries([["transparent",s],["default",a],...r.filter(([e])=>"default"!==e&&"transparent"!==e).map(([t,r])=>[t,en(r,{bg:o,colorPalette:e})])])}function en(e,t){var r,n,i,s;let{colorPalette:a,bg:o}=t,l=e._blend||"multiply",u=ee(e.bg,{colorPalette:a,bg:o,blendMode:l}),c={colorPalette:a,bg:u,blendMode:l},d=(r=e.button,n={baseBg:u,blendMode:l,colorPalette:a},{default:ea(r.default,n),ghost:ea(r.ghost,n),bleed:ea(r.bleed,n)}),h=function(e,t){let r={};for(let s of E){var n,i;r[s]=(n=e[s],i=t,{enabled:eo(n.enabled,i),hovered:eo(n.hovered,i),pressed:eo(n.pressed,i),selected:eo(n.selected,i),disabled:eo(n.disabled,i)})}return r}(e.selectable,{colorPalette:a,baseBg:u,blendMode:l}),f={outline:ee(e.shadow.outline,c),umbra:ee(e.shadow.umbra,{...c,bg:void 0,colorPalette:{...a,black:"#000000"}}),penumbra:ee(e.shadow.penumbra,{...c,bg:void 0,colorPalette:{...a,black:"#000000"}}),ambient:ee(e.shadow.ambient,{...c,bg:void 0,colorPalette:{...a,black:"#000000"}})};return{_blend:l,_dark:e._dark,accent:{fg:ee(e.accent.fg,c)},avatar:ei(e.avatar,{baseBg:u,colorPalette:a,blendMode:l}),backdrop:ee(e.backdrop,c),badge:es(e.badge,{baseBg:u,colorPalette:a,blendMode:l}),bg:u,border:ee(e.border,c),button:d,code:{bg:ee(e.code.bg,c),fg:ee(e.code.fg,c)},fg:ee(e.fg,c),focusRing:ee(e.focusRing,c),icon:ee(e.icon,c),input:(i=e.input,s={baseBg:u,colorPalette:a,blendMode:l},{default:el(i.default,s),invalid:el(i.invalid,s)}),kbd:function(e,t){let{baseBg:r,blendMode:n,colorPalette:i}=t,s=ee(e.bg,{bg:r,blendMode:n,colorPalette:i}),a={bg:s,blendMode:n,colorPalette:i};return{bg:s,fg:ee(e.fg,a),border:ee(e.border,a)}}(e.kbd,{baseBg:u,colorPalette:a,blendMode:l}),link:{fg:ee(e.link.fg,c)},muted:{bg:ee(e.muted.bg,c),fg:ee(e.muted.fg,c)},shadow:f,skeleton:{from:ee(e.skeleton.from,c),to:ee(e.skeleton.to,c)},syntax:function(e,t){let{colorPalette:r,baseBg:n,blendMode:i}=t,s={colorPalette:r,bg:n,blendMode:i};return{atrule:ee(e.atrule,s),attrName:ee(e.attrName,s),attrValue:ee(e.attrValue,s),attribute:ee(e.attribute,s),boolean:ee(e.boolean,s),builtin:ee(e.builtin,s),cdata:ee(e.cdata,s),char:ee(e.char,s),class:ee(e.class,s),className:ee(e.className,s),comment:ee(e.comment,s),constant:ee(e.constant,s),deleted:ee(e.deleted,s),doctype:ee(e.doctype,s),entity:ee(e.entity,s),function:ee(e.function,s),hexcode:ee(e.hexcode,s),id:ee(e.id,s),important:ee(e.important,s),inserted:ee(e.inserted,s),keyword:ee(e.keyword,s),number:ee(e.number,s),operator:ee(e.operator,s),prolog:ee(e.prolog,s),property:ee(e.property,s),pseudoClass:ee(e.pseudoClass,s),pseudoElement:ee(e.pseudoElement,s),punctuation:ee(e.punctuation,s),regex:ee(e.regex,s),selector:ee(e.selector,s),string:ee(e.string,s),symbol:ee(e.symbol,s),tag:ee(e.tag,s),unit:ee(e.unit,s),url:ee(e.url,s),variable:ee(e.variable,s)}}(e.syntax,{baseBg:u,colorPalette:a,blendMode:l}),selectable:h}}function ei(e,t){let r={};for(let i of n.Cv)r[i]=function(e,t){let{baseBg:r,blendMode:n,colorPalette:i}=t,s=e._blend||"multiply",a=ee(e.bg,{bg:r,blendMode:n,colorPalette:i});return{_blend:s,bg:a,fg:ee(e.fg,{bg:a,blendMode:s,colorPalette:i})}}(e[i],t);return r}function es(e,t){let r={};for(let n of E)r[n]=function(e,t){let{baseBg:r,blendMode:n,colorPalette:i}=t,s=ee(e.bg,{bg:r,blendMode:n,colorPalette:i}),a={bg:s,blendMode:n,colorPalette:i};return{bg:s,dot:ee(e.dot,a),fg:ee(e.fg,a),icon:ee(e.icon,a)}}(e[n],t);return r}function ea(e,t){let r={};for(let s of E){var n,i;r[s]=(n=e[s],i=t,{enabled:eo(n.enabled,i),hovered:eo(n.hovered,i),pressed:eo(n.pressed,i),selected:eo(n.selected,i),disabled:eo(n.disabled,i)})}return r}function eo(e,t){let{baseBg:r,blendMode:n,colorPalette:i}=t,s=e._blend||"multiply",a=ee(e.bg,{bg:r,blendMode:n,colorPalette:i}),o={bg:a,blendMode:s,colorPalette:i};return{_blend:s,accent:{fg:ee(e.accent.fg,o)}
2,avatar:ei(e.avatar,{baseBg:a,colorPalette:i,blendMode:s}),badge:es(e.badge,{baseBg:a,colorPalette:i,blendMode:s}),bg:a,border:ee(e.border,o),code:{bg:ee(e.code.bg,o),fg:ee(e.code.fg,o)},fg:ee(e.fg,o),icon:ee(e.icon,o),link:{fg:ee(e.link.fg,o)},muted:{bg:ee(e.muted.bg,o),fg:ee(e.muted.fg,o)},kbd:{bg:ee(e.kbd.bg,o),fg:ee(e.kbd.fg,o),border:ee(e.kbd.border,o)},skeleton:{from:ee(e.skeleton?.from,o),to:ee(e.skeleton?.to,o)}}}function el(e,t){return{enabled:eu(e.enabled,t),hovered:eu(e.hovered,t),readOnly:eu(e.readOnly,t),disabled:eu(e.disabled,t)}}function eu(e,t){let{baseBg:r,blendMode:n,colorPalette:i}=t,s=e._blend||"multiply",a=ee(e.bg,{colorPalette:i,bg:r,blendMode:n}),o={colorPalette:i,bg:a,blendMode:s};return{_blend:s,bg:a,border:ee(e.border,o),fg:ee(e.fg,o),muted:{bg:ee(e.muted.bg,o)},placeholder:ee(e.placeholder,o)}}function ec(e){let t=function(e){let t={color:function(e){let t=F($,e);return{base:function(e){let t={};for(let r of k)t[r]=function(e,t){let r=F(e?.base?.["*"],e?.base?.[t]),i=r._hue||e?.base?.[t]?._hue||"gray";return{...r,_hue:i,avatar:n.Cv.reduce((e,t)=>({...e,[t]:F({_hue:t},r.avatar?.["*"],r.avatar?.[t])}),{}),badge:E.reduce((t,n)=>({...t,[n]:{_hue:e?.base?.[n]?._hue||i,...r.badge?.["*"],...r.badge?.[n]}}),{})}}(e,r);return t}(t),button:function(e){let t={};for(let r of A)t[r]=function(e,t){let r={};for(let i of E)r[i]=function(e,t,r){let i={};for(let s of S)i[s]=function(e,t,r,i){let s=F(e?.button?.[r]?.["*"]?.["*"],e?.button?.[r]?.[t]?.["*"],e?.button?.[r]?.["*"]?.[i],e?.button?.[r]?.[t]?.[i]),a=s._hue||e?.base?.[t]?._hue;return{...s,_hue:a,avatar:n.Cv.reduce((e,t)=>({...e,[t]:F({_hue:t},s.avatar?.["*"],s.avatar?.[t])}),{}),badge:E.reduce((t,r)=>({...t,[r]:{_hue:e?.base?.[r]?._hue||a,...s.badge?.["*"],...s.badge?.[r]}}),{})}}(e,r,t,s);return i}(e,t,i);return r}(e,r);return t}(t),input:function(e){let t={};for(let r of O)t[r]=function(e,t){let r={};for(let n of C)r[n]=function(e,t,r){let n=F(e?.input?.["*"]?.["*"],e?.
2input?.[t]?.["*"],e?.input?.["*"]?.[r],e?.input?.[t]?.[r]),i=n._hue||e?.input?.[t]?._hue;return{...n,_hue:i}}(e,t,n);return r}(e,r);return t}(t),selectable:function(e){let t={};for(let r of E)t[r]=function(e,t){let r={_hue:e?.selectable?.[t]?._hue||e?.base?.[t]?._hue};for(let i of S)r[i]=function(e,t,r){let i=F(e?.selectable?.["*"]?.["*"],e?.selectable?.[t]?.["*"],e?.selectable?.["*"]?.[r],e?.selectable?.[t]?.[r]),s=i._hue||e?.base?.[t]?._hue;return{...i,_hue:s,avatar:n.Cv.reduce((e,t)=>({...e,[t]:F({_hue:t},i.avatar?.["*"],i.avatar?.[t])}),{}),badge:E.reduce((t,r)=>({...t,[r]:{_hue:e?.base?.[r]?._hue||s,...i.badge?.["*"],...i.badge?.[r]}}),{})}}(e,t,i);return r}(e,r);return t}(t),syntax:t.syntax}}(e?.color)};return{light:L({scheme:"light"},t),dark:L({scheme:"dark"},t)}}(e);return b({_version:2,avatar:e?.avatar??s.avatar,button:e?.button??s.button,card:e?.card??s.card,color:function(e,t){let r=t?.palette??H;return{light:er(r,e.light),dark:er(r,e.dark)}}(t,e),container:e?.container??s.container,font:e?.font??a,input:e?.input??s.input,layer:e?.layer??s.layer,media:e?.media??s.media,radius:e?.radius??s.radius,shadow:e?.shadow??s.shadow,space:e?.space??s.space,style:e?.style??s.style})}let ed=new Map;function eh(e,t,r){var n;let i=function(e,t,r){let n=ed.get(t);if(!n)return;let i=n.get(r);if(i)return i.get(e)}(e,t,r);if(i)return i;let a=m(e)?b(e):e,o=m(e)?e:function(e){if(e.v2)return e.v2;let t=g.get(e);if(t)return t;let{avatar:r,button:n,color:i,container:a,fonts:o,input:u,layer:c,media:d,radius:h,shadows:f,space:p,styles:m}=e,y={_version:2,avatar:{...s.avatar,...r},button:{...s.button,...n},card:s.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)}}
2,container:a,font:o,input:{...s.input,...u,checkbox:{...s.input.checkbox,...u.checkbox},radio:{...s.input.radio,...u.radio},switch:{...s.input.switch,...u.switch}},layer:c??s.layer,media:d,radius:h,shadow:f,space:p,style:m};return g.set(e,y),y}(e),u=a.color[t]||a.color.light,c=u[r]||u.default,d=a.layer||s.layer,h=o.color[t]||o.color.light,f="neutral"in(n=h[r]||h.default).badge?n:{...n,badge:{...n.badge,neutral:n.badge.default,suggest:n.badge.primary},button:{bleed:{...n.button.bleed,neutral:n.button.bleed.default,suggest:n.button.bleed.primary},default:{...n.button.default,neutral:n.button.default.default,suggest:n.button.default.primary},ghost:{...n.button.ghost,neutral:n.button.ghost.default,suggest:n.button.ghost.primary}},selectable:{...n.selectable,neutral:n.selectable.default,suggest:n.selectable.primary}},p=o.layer||s.layer,y={sanity:{...a,color:c,layer:d,v2:{...o,_resolved:!0,color:f,layer:p}}};return function(e,t,r,n){ed.has(t)||ed.set(t,new Map);let i=ed.get(t);i.has(r)||i.set(r,new WeakMap),i.get(r).set(e,n)}(e,t,r,y),y}},6197:(e,t,r)=>{"use strict";r.d(t,{n:()=>a});var n=r(2297),i=r(84841),s=r(81451);function a(e,t){return(0,i.N)(function(r,i){var a=null,o=0,l=!1,u=function(){return l&&!a&&i.complete()};r.subscribe((0,s._)(i,function(r){null==a||a.unsubscribe();var l=0,c=o++;(0,n.Tg)(e(r,c)).subscribe(a=(0,s._)(i,function(e){return i.next(t?t(r,e,c,l++):e)},function(){a=null,u()}))},function(){l=!0,u()}))})}},6240:(e,t,r)=>{"use strict";r.d(t,{_:()=>n});class n{current=0;resolvers=[];max;constructor(e){this.max=e}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)}}},6261:(e,t,r)=>{var n=r(15536);e.exports=function(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}},6975:e=>{var t=Math.floor,r=Math.random;e.exports=function(e,n){return e+t(r()*(n-e+1))}},7056:(e,t,r)=>{var n=r(57201),i=r(10866),s=r(80880);e.exports=function(e,t){return s(e,i(n(t)))}},7117:(e,t,r)=>{var n=r(73364),i=r(25325),s=r(386),a=r(47479),o=r(12561),l=r(33147),u=r(50613),c="[object Map]",d="[object Promise]",h="[object Set]",f="[object WeakMap]",p="[object DataView]",m=u(n),g=u(i),y=u(s),b=u(a),v=u(o),_=l;
2(n&&_(new n(new ArrayBuffer(1)))!=p||i&&_(new i)!=c||s&&_(s.resolve())!=d||a&&_(new a)!=h||o&&_(new o)!=f)&&(_=function(e){var t=l(e),r="[object Object]"==t?e.constructor:void 0,n=r?u(r):"";if(n)switch(n){case m:return p;case g:return c;case y:return d;case b:return h;case v:return f}return t}),e.exports=_},7290:(e,t,r)=>{var n=r(38726),i=r(47549);e.exports=function e(t,r,s,a,o){var l=-1,u=t.length;for(s||(s=i),o||(o=[]);++l<u;){var c=t[l];r>0&&s(c)?r>1?e(c,r-1,s,a,o):n(o,c):a||(o[o.length]=c)}return o}},7488:(e,t,r)=>{"use strict";r.d(t,{R:()=>i});var n=r(97537);function i(e){return+(0,n.a)(e)<Date.now()}},7700:(e,t,r)=>{"use strict";let n=r(43166);e.exports=(e,t,r)=>n(e,t,r)>0},7727:(e,t,r)=>{"use strict";r.d(t,{BB:()=>f,q:()=>l,tz:()=>p}),Symbol.for("constructDateFrom");let n={},i={};function s(e,t){try{let r=(n[e]||=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format)(t).split("GMT")[1];if(r in i)return i[r];return o(r,r.split(":"))}catch{if(e in i)return i[e];let t=e?.match(a);if(t)return o(e,t.slice(1));return NaN}}let a=/([+-]\d\d):?(\d\d)?/;function o(e,t){let r=+(t[0]||0),n=+(t[1]||0),s=(t[2]||0)/60;return i[e]=60*r+n>0?60*r+n+s:60*r-n-s}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(s(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,e)):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(){let e=-s(this.timeZone,this);return e>0?Math.floor(e):Math.ceil(e)}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.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-(60*s(e.timeZone,e))))}function d(e,t){var r;let n=Array.isArray(t)?Date.UTC((r=t)[0],r.length>1?r[1]:0,r.length>2?r[2]:1,...r.slice(3)):+e.internal,i=s(e.timeZone,e),a=i>0?Math.floor(i):Math.ceil(i),o=new Date(+e);o.setUTCHours(o.getUTCHours()-1);let l=-new Date(+e).getTimezoneOffset(),u=-new Date(+o).getTimezoneOffset(),d=l;if(l-u&&l!==a&&Date.prototype.getHours.apply(e)!==(Array.isArray(t)?t[3]||0:e.internal.getUTCHours())){let t=new Date(+e),r=l-a;r&&t.setUTCMinutes(t.getUTCMinutes()+r);let n=s(e.timeZone,t);(n>0?Math.floor(n):Math.ceil(n))===a&&(d=u)}let f=d-a;f&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+f);let p=new Date(+e);p.setUTCSeconds(0);let m=l>0?p.getSeconds():(p.getSeconds()-60)%60,g=Math.round(-(60*s(e.timeZone,e)))%60;(g||m)&&Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+g+m);let y=s(e.timeZone,e),b=y>0?Math.floor(y):Math.ceil(y),v=-new Date(+e).getTimezoneOffset()-b-f,_=b-a,w=_>0&&h(e)-n==60*_*1e3&&h(e,n-60*b*1e3)!==n;if(b!==a&&v&&!w){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+v);let t=s(e.timeZone,e),r=b-(t>0?Math.floor(t):Math.ceil(t));r&&v<0&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+r)}c(e);let x=(t?n:n+1e3*g)-e.internal;x&&18e5>Math.abs(x)&&(Date.prototype.setTime.call(e,+e+x),c(e))}function h(e,t){let r=new Date(t??+e);return r.setUTCSeconds(r.getUTCSeconds()-Math.round(-(60*s(e.timeZone,r)))),+r}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,r]=this.tzComponents(),n=`${e}${t}:${r}`;return this.internal.toISOString().slice(0,-1)+n}toString(){return`${this.toDateString()}
2 ${this.toTimeString()}`}toDateString(){let[e,t,r,n]=this.internal.toUTCString().split(" ");return`${e?.slice(0,-1)} ${r} ${t} ${n}`}toTimeString(){let e=this.internal.toUTCString().split(" ")[4],[t,r,n]=this.tzComponents();return`${e} GMT${t}${r}${n} (${function(e,t,r="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:r}).format(t).split(/\s/g).slice(2).join(" ")}(this.timeZone,this)})`}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"),r=String(Math.abs(e)%60).padStart(2,"0");return[e>0?"-":"+",t,r]}withTimeZone(e){return new f(+this,e)}[Symbol.for("constructDateFrom")](e){return new f(+new Date(e),this.timeZone)}}let p=e=>t=>f.tz(e,+new Date(t))},8635:(e,t,r)=>{"use strict";r.d(t,{$M:()=>T,$Z:()=>M,BA:()=>ev,BG:()=>er,Bo:()=>ed,CN:()=>e_,CT:()=>eI,FT:()=>eu,Fe:()=>d,G_:()=>j,Hk:()=>eC,Hq:()=>$,KW:()=>F,L6:()=>eV,Lo:()=>_,MB:()=>H,MX:()=>L,NH:()=>eo,Ni:()=>C,P5:()=>es,PH:()=>Y,Rf:()=>et,Rx:()=>eh,T4:()=>f,Uz:()=>B,Vh:()=>Z,WQ:()=>G,Yc:()=>w,_8:()=>J,_y:()=>I,b0:()=>Q,bq:()=>x,cM:()=>S,dM:()=>eg,dY:()=>ee,eA:()=>V,eX:()=>eb,fe:()=>ea,hK:()=>ec,j$:()=>u,nW:()=>ef,pz:()=>A,qW:()=>e$,qx:()=>P,sh:()=>em,ts:()=>m,tv:()=>el,ty:()=>W,vA:()=>h,wC:()=>eU,wE:()=>ep,wc:()=>K,xd:()=>eB,y1:()=>ey,zJ:()=>ei,zh:()=>ew,zk:()=>en});var n,i,s=r(48036),a=r(23994),o=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=>h(e)&&8===e.nodeType,d=e=>h(e)&&1===e.nodeType,h=e=>{var t=u(e);return!!t&&e instanceof t.Node},f=e=>{var t=e&&e.anchorNode&&u(e.anchorNode);return!!t&&e instanceof t.Selection},p=e=>h(e)&&3===e.nodeType,m=e=>e.clipboardData&&""!==e.clipboardData.getData("text/plain")&&1===e.clipboardData.types.length,g=(e,t,r)=>{for(var{childNodes:n}=e,i=n[t],s=t,a=!1,o=!1;(c(i)||d(i)&&0===i.childNodes.length||d(i)&&"false"===i.getAttribute("contenteditable"))&&(!a||!o);){if(s>=n.length){a=!0,s=t-1,r="backward";continue}if(s<0){o=!0,s=t+1,r="forward";continue}i=n[s],t=s,s+="forward"===r?1:-1}return[i,t]},y=(e,t,r)=>{var[n]=g(e,t,r);return n},b=e=>{var t="";if(p(e)&&e.nodeValue)return e.nodeValue;if(d(e)){for(var r of Array.from(e.childNodes))t+=b(r);var n=getComputedStyle(e).getPropertyValue("display");("block"===n||"list"===n||"BR"===e.tagName)&&(t+="\n")}return t},v=/data-slate-fragment="(.+?)"/m,_=e=>null!=e.getSelection?e.getSelection():document.getSelection(),w=(e,t,r)=>{var{target:n}=t;if(d(n)&&n.matches('[contentEditable="false"]'))return!1;var{document:i}=ep.getWindow(e);if(S(i,n))return ep.hasDOMNode(e,n,{editable:!0});var s=r.find(e=>{var{addedNodes:t,removedNodes:r}=e;for(var i of t)if(i===n||S(i,n))return!0;for(var s of r)if(s===n||S(s,n))return!0});return!!s&&s!==t&&w(e,s,r)},x=()=>{for(var e,t,r,n=document.activeElement;null!=(e=n)&&e.shadowRoot&&null!=(t=n.shadowRoot)&&t.activeElement;)n=null==(r=n)||null==(r=r.shadowRoot)?void 0:r.activeElement;return n},k=(e,t)=>!!(e.compareDocumentPosition(t)&o.DOCUMENT_POSITION_PRECEDING),E=(e,t)=>{if(!e)return null;for(var r=e;r;){if(r.matches&&r.matches(t))return r;if(r.parentElement)r=r.parentElement;else if(r.parentNode&&"host"in r.parentNode)r=r.parentNode.host;else break}return null},S=(e,t)=>{if(!e||!t)return!1;if(e.contains(t))return!0;for(var r=t;r;){if(r===e)return!0;if(r.parentNode)r="host"in r.parentNode?r.parentNode.host:r.parentNode;else break}return!1},A="undefined"!=typeof navigator&&"undefined"!=typeof window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,O="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),C="undefined"!=typeof navigator&&/Android/.test(navigator.userAgent),T="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),I="undefined"!=typeof navigator&&/AppleWeb
2Kit(?!.*Chrome)/i.test(navigator.userAgent),D="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),R="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),N=C&&"undefined"!=typeof navigator&&/Chrome?\/(?:[0-5]?\d)(?:\.)/i.test(navigator.userAgent),$="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent),M="undefined"!=typeof navigator&&/.*UCBrowser/.test(navigator.userAgent),F="undefined"!=typeof navigator&&/.*Wechat/.test(navigator.userAgent)&&!/.*MacWechat/.test(navigator.userAgent)&&(!j||R),P="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!=(n=navigator.userAgent.match(/Version\/(\d+)/))&&n[1]&&parseInt(null==(i=navigator.userAgent.match(/Version\/(\d+)/))?void 0:i[1],10);var L=(!R||!N)&&!D&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges;function z(e){return(z="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 q(e,t,r){var n;return n=function(e,t){if("object"!==z(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==z(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"===z(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var U=0;class B{constructor(){q(this,"id",void 0),this.id="".concat(U++)}}var V=new WeakMap,H=new WeakMap,G=new WeakMap,W=new WeakMap,Z=new WeakMap,Y=new WeakMap,K=new WeakMap,J=new WeakMap,X=new WeakMap,Q=new WeakMap,ee=new WeakMap,et=new WeakMap,er=new WeakMap,en=new WeakMap,ei=new WeakMap,es=new WeakMap,ea=new WeakMap,eo=new WeakMap,el=new WeakMap,eu=new WeakMap,ec=new WeakMap,ed=new WeakMap,eh=Symbol("placeholder"),ef=Symbol("mark-placeholder"),ep={androidPendingDiffs:e=>el.get(e),androidScheduleFlush:e=>{var t;null==(t=es.get(e))||t()},blur:e=>{var t=ep.toDOMNode(e,e),r=ep.findDocumentOrShadowRoot(e);et.set(e,!1),r.activeElement===t&&t.blur()},deselect:e=>{var{selection:t}=e,r=_(ep.findDocumentOrShadowRoot(e));r&&r.rangeCount>0&&r.removeAllRanges(),t&&s.gB.deselect(e)},findDocumentOrShadowRoot:e=>{var t=ep.toDOMNode(e,e),r=t.getRootNode();return r instanceof Document||r instanceof ShadowRoot?r:t.ownerDocument},findEventRange:(e,t)=>{"nativeEvent"in t&&(t=t.nativeEvent);var r,{clientX:n,clientY:i,target:a}=t;if(null==n||null==i)throw Error("Cannot resolve a Slate range from a DOM event: ".concat(t));var o=ep.toSlateNode(e,t.target),l=ep.findPath(e,o);if(s.Hg.isElement(o)&&s.KE.isVoid(e,o)){var u=a.getBoundingClientRect(),c=e.isInline(o)?n-u.left<u.left+u.width-n:i-u.top<u.top+u.height-i,d=s.KE.point(e,l,{edge:c?"start":"end"}),h=c?s.KE.before(e,d):s.KE.after(e,d);if(h)return s.KE.range(e,h)}var{document:f}=ep.getWindow(e);if(f.caretRangeFromPoint)r=f.caretRangeFromPoint(n,i);else{var p=f.caretPositionFromPoint(n,i);p&&((r=f.createRange()).setStart(p.offsetNode,p.offset),r.setEnd(p.offsetNode,p.offset))}if(!r)throw Error("Cannot resolve a Slate range from a DOM event: ".concat(t));return ep.toSlateRange(e,r,{exactMatch:!1,suppressThrow:!1})},findKey:(e,t)=>{var r=X.get(t);return r||(r=new B,X.set(t,r)),r},findPath:(e,t)=>{for(var r=[],n=t;;){var i=G.get(n);if(null==i)if(s.KE.isEditor(n))return r;else break;var a=H.get(n);if(null==a)break;r.unshift(a),n=i}throw Error("Unable to find the path for Slate node: ".concat(s.h6.stringify(t)))},focus:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{retries:5};if(!et.get(e)&&Z.get(e)){if(t.retries<=0)throw Error("Could not set focus, editor seems stuck with pending operations");
2if(e.operations.length>0)return void setTimeout(()=>{ep.focus(e,{retries:t.retries-1})},10);var r=ep.toDOMNode(e,e),n=ep.findDocumentOrShadowRoot(e);if(n.activeElement!==r){if(e.selection&&n instanceof Document){var i=_(n),a=ep.toDOMRange(e,e.selection);null==i||i.removeAllRanges(),null==i||i.addRange(a)}e.selection||s.gB.select(e,s.KE.start(e,[])),et.set(e,!0),r.focus({preventScroll:!0})}}},getWindow:e=>{var t=W.get(e);if(!t)throw Error("Unable to find a host window element for this editor");return t},hasDOMNode:function(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{editable:i=!1}=n,s=ep.toDOMNode(e,e);try{r=d(t)?t:t.parentElement}catch(e){if(e instanceof Error&&!e.message.includes('Permission denied to access property "nodeType"'))throw e}return!!r&&E(r,"[data-slate-editor]")===s&&(!i||!!r.isContentEditable||"boolean"==typeof r.isContentEditable&&E(r,'[contenteditable="false"]')===s||!!r.getAttribute("data-slate-zero-width"))},hasEditableTarget:(e,t)=>h(t)&&ep.hasDOMNode(e,t,{editable:!0}),hasRange:(e,t)=>
2{var{anchor:r,focus:n}=t;return s.KE.hasPath(e,r.path)&&s.KE.hasPath(e,n.path)},hasSelectableTarget:(e,t)=>ep.hasEditableTarget(e,t)||ep.isTargetInsideNonReadonlyVoid(e,t),hasTarget:(e,t)=>h(t)&&ep.hasDOMNode(e,t),insertData:(e,t)=>{e.insertData(t)},insertFragmentData:(e,t)=>e.insertFragmentData(t),insertTextData:(e,t)=>e.insertTextData(t),isComposing:e=>!!er.get(e),isFocused:e=>!!et.get(e),isReadOnly:e=>!!ee.get(e),isTargetInsideNonReadonlyVoid:(e,t)=>{if(ee.get(e))return!1;var r=ep.hasTarget(e,t)&&ep.toSlateNode(e,t);return s.Hg.isElement(r)&&s.KE.isVoid(e,r)},setFragmentData:(e,t,r)=>e.setFragmentData(t,r),toDOMNode:(e,t)=>{var r=Q.get(e),n=s.KE.isEditor(t)?Z.get(e):null==r?void 0:r.get(ep.findKey(e,t));if(!n)throw Error("Cannot resolve a DOM node from Slate node: ".concat(s.h6.stringify(t)));return n},toDOMPoint:(e,t)=>{var[r]=s.KE.node(e,t.path),n=ep.toDOMNode(e,r);s.KE.void(e,{at:t})&&(t={path:t.path,offset:0});for(var i=Array.from(n.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),a=0,o=0;o<i.length;o++){var u=i[o],c=u.childNodes[0];if(null!=c&&null!=c.textContent){var{length:d}=c.textContent,h=u.getAttribute("data-slate-length"),f=a+(null==h?d:parseInt(h,10)),p=i[o+1];if(t.offset===f&&null!=p&&p.hasAttribute("data-slate-mark-placeholder")){var m,g,y=p.childNodes[0];m=[y instanceof l?y:p,null!=(g=p.textContent)&&g.startsWith("\uFEFF")?1:0];break}if(t.offset<=f){m=[c,Math.min(d,Math.max(0,t.offset-a))];break}a=f}}if(!m)throw Error("Cannot resolve a DOM point from Slate point: ".concat(s.h6.stringify(t)));return m},toDOMRange:(e,t)=>
2{var{anchor:r,focus:n}=t,i=s.Q6.isBackward(t),a=ep.toDOMPoint(e,r),o=s.Q6.isCollapsed(t)?a:ep.toDOMPoint(e,n),l=ep.getWindow(e).document.createRange(),[u,c]=i?o:a,[h,f]=i?a:o,p=!!(d(u)?u:u.parentElement).getAttribute("data-slate-zero-width"),m=!!(d(h)?h:h.parentElement).getAttribute("data-slate-zero-width");return l.setStart(u,p?1:c),l.setEnd(h,m?1:f),l},toSlateNode:(e,t)=>{var r=d(t)?t:t.parentElement;r&&!r.hasAttribute("data-slate-node")&&(r=r.closest("[data-slate-node]"));var n=r?K.get(r):null;if(!n)throw Error("Cannot resolve a Slate node from DOM node: ".concat(r));return n},toSlatePoint:(e,t,r)=>{var{exactMatch:n,suppressThrow:i,searchDirection:a}=r,[l,u]=n?t:(e=>{var[t,r]=e;if(d(t)&&t.childNodes.length){var n=r===t.childNodes.length,i=n?r-1:r;for([t,i]=g(t,i,n?"backward":"forward"),n=i<r;d(t)&&t.childNodes.length;){var s=n?t.childNodes.length-1:0;t=y(t,s,n?"backward":"forward")}r=n&&null!=t.textContent?t.textContent.length:0}return[t,r]})(t),c=l.parentNode,h=null,f=0;if(c){var p=ep.toDOMNode(e,e),m=c.closest('[data-slate-void="true"]'),b=m&&S(p,m)?m:null,v=c.closest('[contenteditable="false"]'),_=v&&S(p,v)?v:null,w=c.closest("[data-slate-leaf]"),x=null;if(w){if(h=w.closest('[data-slate-node="text"]')){var E=ep.getWindow(e).document.createRange();E.setStart(h,0),E.setEnd(l,u);var A=E.cloneContents();[...Array.prototype.slice.call(A.querySelectorAll("[data-slate-zero-width]")),...Array.prototype.slice.call(A.querySelectorAll("[contenteditable=false]"))].forEac
2h(e=>{if(C&&!n&&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)}),f=A.textContent.length,x=h}}else if(b){for(var O=b.querySelectorAll("[data-slate-leaf]"),I=0;I<O.length;I++){var D=O[I];if(ep.hasDOMNode(e,D)){w=D;break}}w?(h=w.closest('[data-slate-node="text"]'),f=(x=w).textContent.length,x.querySelectorAll("[data-slate-zero-width]").forEach(e=>{f-=e.textContent.length})):f=1}else if(_){var j,R,N,$,M=e=>e?e.querySelectorAll("[data-slate-leaf]:not(:scope [data-slate-editor] [data-slate-leaf])"):[],F=_.closest('[data-slate-node="element"]');"backward"!==a&&a||(w=null!=(N=[...M(null==F?void 0:F.previousElementSibling),...M(F)].findLast(e=>k(_,e)))?N:null),"forward"!==a&&a||(w=null!=($=[...M(F),...M(null==F?void 0:F.nextElementSibling)].find(e=>!!(_.compareDocumentPosition(e)&o.DOCUMENT_POSITION_FOLLOWING)))?$:null),w&&(h=w.closest('[data-slate-node="text"]'),x=w,"forward"===a?f=0:(f=x.textContent.length,x.querySelectorAll("[data-slate-zero-width]").forEach(e=>{f-=e.textContent.length})))}x&&f===x.textContent.length&&C&&"z"===x.getAttribute("data-slate-zero-width")&&null!=(j=x.textContent)&&j.startsWith("\uFEFF")&&(c.hasAttribute("data-slate-zero-width")||T&&null!=(R=x.textContent)&&R.endsWith("\n\n"))&&f--}if(C&&!h&&!n){var P=c.hasAttribute("data-slate-node")?c:c.closest("[data-slate-node]");if(P&&ep.hasDOMNode(e,P,{editable:!0})){var L=ep.toSlateNode(e,P),{path:z,offset:q}=s.KE.start(e,ep.findPath(e,L));return P.querySelector("[data-slate-leaf]")||(q=u),{path:z,offset:q}}}if(!h){if(i)return null;throw Error("Cannot resolve a Slate point from DOM point: ".concat(t))}var U=ep.toSlateNode(e,h);
2return{path:ep.findPath(e,U),offset:f}},toSlateRange:(e,t,r)=>{var n,i,a,o,l,u,{exactMatch:c,suppressThrow:h}=r;if(f(t)?t.anchorNode:t.startContainer)if(f(t)){if(T&&t.rangeCount>1){o=t.focusNode;var p=t.getRangeAt(0),m=t.getRangeAt(t.rangeCount-1);if(o instanceof HTMLTableRowElement&&p.startContainer instanceof HTMLTableRowElement&&m.startContainer instanceof HTMLTableRowElement){function g(e){return e.childElementCount>0?g(e.children[0]):e}var y=p.startContainer,b=m.startContainer,v=g(y.children[p.startOffset]),_=g(b.children[m.startOffset]);l=0,i=_.childNodes.length>0?_.childNodes[0]:_,o=v.childNodes.length>0?v.childNodes[0]:v,a=_ instanceof HTMLElement?_.innerHTML.length:0}else p.startContainer===o?(i=m.endContainer,a=m.endOffset,l=p.startOffset):(i=p.startContainer,a=p.endOffset,l=m.startOffset)}else i=t.anchorNode,a=t.anchorOffset,o=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,o=t.endContainer,l=t.endOffset,u=t.collapsed;if(null==i||null==o||null==a||null==l)throw Error("Cannot resolve a Slate range from DOM range: ".concat(t));T&&null!=(n=o.textContent)&&n.endsWith("\n\n")&&l===o.textContent.length&&l--;var w=ep.toSlatePoint(e,[i,a],{exactMatch:c,suppressThrow:h});if(!w)return null;var x=k(i,o)||i===o&&l<a,E=u?w:ep.toSlatePoint(e,[o,l],{exactMatch:c,suppressThrow:h,searchDirection:x?"forward":"backward"});if(!E)return null;var S={anchor:w,focus:E};return s.Q6.isExpanded(S)&&s.Q6.isForward(S)&&d(o)&&s.KE.void(e,{at:S.focus,mode:"highest"})&&(S=s.KE.unhangRange(e,S,{voids:!0})),S}};function em(e,t){var{path:r,diff:n}=t;if(!s.KE.hasPath(e,r))return!1;var i=s.bP.get(e,r);if(!s.EY.isText(i))return!1;if(n.start!==i.text.length||0===n.text.length)return i.text.slice(n.start,n.start+n.text.length)===n.text;var a=s.wA.next(r);if(!s.KE.hasPath(e,a))return!1;var o=s.bP.get(e,a);return s.EY.isText(o)&&o.text.startsWith(n.text)}function eg(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return r.reduce((e,t)=>e.slice(0,t.start)+t.text+e.slice(t.end),e)}function ey(e,t){var{start:r,end:n,text:i}=t,s=e.slice(r,n),a=function(e,t){for(var r=Math.min(e.length,t.length),n=0;n<r;n++)if(e.charAt(n)!==t.charAt(n))return n;return r}(s,i),o=Math.min(s.length-a,i.length-a),l=function(e,t,r){for(var n=Math.min(e.length,t.length,r),i=0;i<n;i++)if(e.charAt(e.length-i-1)!==t.charAt(t.length-i-1))return i;return n}(s,i,o),u={start:r+a,end:n-l,text:i.slice(a,i.length-l)};return u.start===u.end&&0===u.text.length?null:u}function eb(e,t,r){var n=Math.min(t.start,r.start),i=Math.max(0,Math.min(t.start+t.text.length,r.end)-r.start),s=eg(e,t,r),a=Math.max(r.start+r.text.length,t.start+t.text.length+(t.start+t.text.length>r.start?r.text.length:0)-i),o=s.slice(n,a);return ey(e,{start:n,end:Math.max(t.end,r.end-t.text.length+(t.end-t.start)),text:o})}function ev(e){var{path:t,diff:r}=e;return{anchor:{path:t,offset:r.start},focus:{path:t,offset:r.end}}}function e_(e,t){var{path:r,offset:n}=t;if(!s.KE.hasPath(e,r))return null;var i=s.bP.get(e,r);if(!s.EY.isText(i))return null;var a=s.KE.above(e,{match:t=>s.Hg.isElement(t)&&s.KE.isBlock(e,t),at:r});if(!a)return null;for(;n>i.text.length;){var o=s.KE.next(e,{at:r,match:s.EY.isText});if(!o||!s.wA.isDescendant(o[1],a[1]))return null;n-=i.text.length,i=o[0],r=o[1]}return{path:r,offset:n}}function ew(e,t){var r=e_(e,t.anchor);if(!r)return null;if(s.Q6.isCollapsed(t))return{anchor:r,focus:r};var n=e_(e,t.focus);return n?{anchor:r,focus:n}:null}function ex(e,t,r){var n=el.get(e),i=null==n?void 0:n.find(e=>{var{path:r}=e;return s.wA.equals(r,t.path)});if(!i||t.offset<=i.diff.start)return s.bR.transform(t,r,{affinity:"backward"});var{diff:a}=i;if(t.offset<=a.start+a.text.length){var o={path:t.path,offset:a.start},l=s.bR.transform(o,r,{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=s.bR.transform(u,r,{affinity:"backward"});return c?"split_node"===r.type&&s.wA.equals(r.path,t.path)&&u.offset<r.position&&a.start<r.position?c:{path:c.path,offset:c.offset+a.text.length-a.end+a.start}:null}function ek(e,t,r){var n=ex(e,t.anchor,r);if(!n)return null;if(s.Q6.isCollapsed(t))return{anchor:n,focus:n};var i=ex(e,t.focus,r);return i?{anchor:n,focus:i}:null}var eE=(e,t)=>{var r=(t.top+t.bottom)/2;return e.top<=r&&e.bottom>=r},eS=(e,t,r)=>{var n=ep.toDOMRange(e,t).getBoundingClientRect(),i=ep.toDOMRange(e,r).getBoundingClientRect();return eE(n,i)&&eE(i,n)};function eA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function eO(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?eA(Object(r),!0).forEach(function(t){q(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eA(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var eC=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x-slate-fragment",{apply:r,onChange:n,deleteBackward:i,addMark:a,removeMark:o}=e;return Q.set(e,new WeakMap),e.addMark=(t,r)=>{var n,i;null==(n=es.get(e))||n(),!ea.get(e)&&null!=(i=el.get(e))&&i.length&&ea.set(e,null),eo.delete(e),a(t,r)},e.removeMark=t=>{var r;!ea.get(e)&&null!=(r=el.get(e))&&r.length&&ea.set(e,null),eo.delete(e),o(t)},e.deleteBackward=t=>{if("line"!==t)return i(t);if(e.selection&&s.Q6.isCollapsed(e.selection)){var r=s.KE.above(e,{match:t=>s.Hg.isElement(t)&&s.KE.isBlock(e,t),at:e.selection});if(r){var[,n]=r,a=s.KE.range(e,n,e.selection.anchor),o=((e,t)=>{var r=s.KE.range(e,s.Q6.end(t)),n=Array.from(s.KE.positions(e,{at:t})),i=0,a=n.length,o=Math.floor(a/2);if(eS(e,s.KE.range(e,n[i]),r))return s.KE.range(e,n[i],r);if(n.length<2)return s.KE.range(e,n[n.length-1],r);for(;o!==n.length&&o!==i;)eS(e,s.KE.range(e,n[o]),r)?a=o:i=o,o=Math.floor((i+a)/2);return s.KE.range(e,n[i],r)})(e,a);s.Q6.isCollapsed(o)||s.gB.delete(e,{at:o})}}},e.apply=t=>{var n=[],i=[],a=el.get(e);if(null!=a&&a.length){var o=a.map(e=>(function(e,t){var{path:r,diff:n,id:i}=e;switch(t.type){case"insert_text":if(!s.wA.equals(t.path,r)||t.offset>=n.end)return e;if(t.offset<=n.start)return{diff:{start:t.text.length+n.start,end:t.text.length+n.end,text:n.text},id:i,path:r};return{diff:{start:n.start,end:n.end+t.text.length,text:n.text},id:i,path:r};case"remove_text":if(!s.wA.equals(t.path,r)||t.offset>=n.end)return e;if(t.offset+t.text.length<=n.start)return{diff:{start:n.start-t.text.length,end:n.end-t.text.length,text:n.text},id:i,path:r};return{diff:{start:n.start,end:n.end-t.text.length,text:n.text},id:i,path:r};case"split_node":if(!s.wA.equals(t.path,r)||t.position>=n.end)return{diff:n,id:i,path:s.wA.transform(r,t,{affinity:"backward"})};if(t.position>n.start)return{diff:{start:n.start,end:Math.min(t.position,n.end),text:n.text},id:i,path:r};return{diff:{start:n.start-t.position,end:n.end-t.position,text:n.text},id:i,path:s.wA.transform(r,t,{affinity:"forward"})};case"merge_node":if(!s.wA.equals(t.path,r))return{diff:n,id:i,path:s.wA.transform(r,t)};return{diff:{start:n.start+t.position,end:n.end+t.position,text:n.text},id:i,path:s.wA.transform(r,t)}}var a=s.wA.transform(r,t);return a?{diff:n,path:a,id:i}:null})(e,t)).filter(Boolean);el.set(e,o)}var l=ec.get(e);l&&ec.set(e,ek(e,l,t));var u=eu.get(e);if(null!=u&&u.at){var c=s.bR.isPoint(null==u?void 0:u.at)?ex(e,u.at,t):ek(e,u.at,t);eu.set(e,c?eO(eO({},u),{},{at:c}):null)}switch(t.type){case"insert_text":case"remove_text":case"set_node":case"split_node":n.push(...eT(e,t.path));break;case"set_selection":null==(d=en.get(e))||d.unref(),en.delete(e);break;case"insert_node":case"remove_node":n.push(...eT(e,s.wA.parent(t.path)));break;case"merge_node":n.push(...eT(e,s.wA.previous(t.path)));break;case"move_node":n.push(...eT(e,s.wA.common(s.wA.parent(t.path),s.wA.parent(t.newPath)))),s.wA.isBefore(t.path,t.newPath)?(n.push(...eT(e,s.wA.parent(t.path))),h=t.newPath):(n.push(...eT(e,s.wA.parent(t.newPath))),h=t.path);var d,h,f=s.bP.get(e,s.wA.parent(h)),p=ep.findKey(e,f);i.push([s.KE.pathRef(e,s.wA.parent(h)),p])}switch(r(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":V.set(e,!0)}for(var[m,g]of n){var[y]=s.KE.node(e,m);X.set(y,g)}for(var[b,v]of i){if(b.current){var[_]=s.KE.node(e,b.current);X.set(_,v)}b.unref()}},e.setFragmentData=r=>{var{selection:n}=e;if(n){var[i,a]=s.Q6.edges(n),o=s.KE.void(e,{at:i.path}),l=s.KE.void(e,{at:a.path});if(!s.Q6.isCollapsed(n)||o){var u=ep.toDOMRange(e,n),c=u.cloneContents(),d=c.childNodes[0];if(c.childNodes.forEach(e=>{e.textContent&&""!==e.textContent.trim()&&(d=e)}),l){var[h]=l,f=u.cloneRange(),m=ep.toDOMNode(e,h);f.setEndAfter(m),c=f.cloneContents()}if(o&&(d=c.querySelector("[data-slate-spacer]")),Array.from(c.querySelectorAll("[data-slate-zero-width]")).forEac
2h(e=>{var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""}),p(d)){var g=d.ownerDocument.createElement("span");g.style.whiteSpace="pre",g.appendChild(d),c.appendChild(g),d=g}var y=JSON.stringify(e.getFragment()),v=window.btoa(encodeURIComponent(y));d.setAttribute("data-slate-fragment",v),r.setData("application/".concat(t),v);var _=c.ownerDocument.createElement("div");return _.appendChild(c),_.setAttribute("hidden","true"),c.ownerDocument.body.appendChild(_),r.setData("text/html",_.innerHTML),r.setData("text/plain",b(_)),c.ownerDocument.body.removeChild(_),r}}},e.insertData=t=>{e.insertFragmentData(t)||e.insertTextData(t)},e.insertFragmentData=r=>{var n=r.getData("application/".concat(t))||(e=>{var[,t]=e.getData("text/html").match(v)||[];return t})(r);if(n){var i=JSON.parse(decodeURIComponent(window.atob(n)));return e.insertFragment(i),!0}return!1},e.insertTextData=t=>{var r=t.getData("text/plain");if(r){var n=r.split(/\r\n|\r|\n/),i=!1;for(var a of n)i&&s.gB.splitNodes(e,{always:!0}),e.insertText(a),i=!0;return!0}return!1},e.onChange=t=>{var r=ei.get(e);r&&r(t),n(t)},e},eT=(e,t)=>{var r=[];for(var[n,i]of s.KE.levels(e,{at:t})){var a=ep.findKey(e,n);r.push([i,a])}return r},eI=3,eD={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"},eR={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},eN=e=>{var t=eD[e],r=ej[e],n=eR[e],i=t&&(0,a.v_)(t),s=r&&(0,a.v_)(r),o=n&&(0,a.v_)(n);return e=>!!(i&&i(e)||O&&s&&s(e)||!O&&o&&o(e))},e$={isBold:eN("bold"),isCompose:eN("compose"),isMoveBackward:eN("moveBackward"),isMoveForward:eN("moveForward"),isDeleteBackward:eN("deleteBackward"),isDeleteForward:eN("deleteForward"),isDeleteLineBackward:eN("deleteLineBackward"),isDeleteLineForward:eN("deleteLineForward"),isDeleteWordBackward:eN("deleteWordBackward"),isDeleteWordForward:eN("deleteWordForward"),isExtendBackward:eN("extendBackward"),isExtendForward:eN("extendForward"),isExtendLineBackward:eN("extendLineBackward"),isExtendLineForward:eN("extendLineForward"),isItalic:eN("italic"),isMoveLineBackward:eN("moveLineBackward"),isMoveLineForward:eN("moveLineForward"),isMoveWordBackward:eN("moveWordBackward"),isMoveWordForward:eN("moveWordForward"),isRedo:eN("redo"),isSoftBreak:eN("insertSoftBreak"),isSplitBlock:eN("splitBlock"),isTransposeCharacter:eN("transposeCharacter"),isUndo:eN("undo")};function eM(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},s=Object.keys(e);for(n=0;n<s.length;n++)r=s[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n<s.length;n++)r=s[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var eF=["anchor","focus"],eP=["anchor","focus"];function eL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ez(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?eL(Object(r),!0).forEach(function(t){q(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eL(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var eq=(e,t)=>
2{var r=eM(e,eF),n=eM(t,eP);return e[eh]===t[eh]&&((e,t)=>Object.keys(e).length===Object.keys(t).length&&Object.keys(e).every(r=>t.hasOwnProperty(r)&&e[r]===t[r]))(r,n)},eU=(e,t)=>{if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(var r=0;r<e.length;r++){var n=e[r],i=t[r];if(!s.Q6.equals(n,i)||!eq(n,i))return!1}return!0},eB=(e,t)=>{if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(var r=0;r<e.length;r++){var n=e[r],i=t[r];if(n.anchor.offset!==i.anchor.offset||n.focus.offset!==i.focus.offset||!eq(n,i))return!1}return!0},eV=(e,t,r)=>{var n=Array.from(t.children,()=>[]);if(0===r.length)return n;var i=ep.findPath(e,t),a=i.length,o=s.KE.range(e,i),l=Array(t.children.length),u=t=>{var r=l[t];if(r)return r;var n=s.KE.range(e,[...i,t]);return l[t]=n,n};for(var c of r){var d=s.Q6.intersection(o,c);if(d)for(var[h,f]=s.Q6.edges(d),p=h.path[a],m=f.path[a],g=p;g<=m;g++){var y=n[g];if(y){var b=u(g),v=s.Q6.intersection(b,c);v&&y.push(ez(ez({},c),v))}}}return n}},8946:(e,t,r)=>{"use strict";let n=r(98520),i=r(42838),{safeRe:s,t:a}=r(54108);e.exports=(e,t)=>{if(e instanceof n)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){let n,i=t.includePrerelease?s[a.COERCERTLFULL]:s[a.COERCERTL];for(;(n=i.exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&n.index+n[0].length===r.index+r[0].length||(r=n),i.lastIndex=n.index+n[1].length+n[2].length;i.lastIndex=-1}else r=e.match(t.includePrerelease?s[a.COERCEFULL]:s[a.COERCE]);if(null===r)return null;let o=r[2],l=r[3]||"0",u=r[4]||"0",c=t.includePrerelease&&r[5]?`-${r[5]}`:"",d=t.includePrerelease&&r[6]?`+${r[6]}`:"";return i(`${o}.${l}.${u}${c}${d}`,t)}},9193:(e,t,r)=>{"use strict";var n=r(60266),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=n.useSyncExternalStore,a=n.useRef,o=n.useEffect,l=n.useMemo,u=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,c){var d=a(null);if(null===d.current){var h={hasValue:!1,value:null};d.current=h}else h=d.current;var f=s(e,(d=l(function(){function e(e){if(!o){if(o=!0,s=e,e=n(e),void 0!==c&&h.hasValue){var t=h.value;if(c(t,e))return a=t}return a=e}if(t=a,i(s,e))return t;var r=n(e);return void 0!==c&&c(t,r)?(s=e,t):(s=e,a=r)}var s,a,o=!1,l=void 0===r?null:r;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,r,n,c]))[0],d[1]);return o(function(){h.hasValue=!0,h.value=f},[f]),u(f),f}},9401:function(e,t){var r;!function(n){"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",
2ޙ:"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","₸"
2:"KZT",ден:"MKD",zł:"PLN","₽":"RUB","₾":"GEL"},s=["်","ް"],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"},o={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 r,n,d,p,m,g,y,b,v,_,w,x,k,E,S="-",A="",O="",C=!0,T={},I="";if("string"!=typeof e)return"";if("string"==typeof t&&(S=t),y=l.en,b=o.en,"object"==typeof t)for(w in r=t.maintainCase||!1,T=t.custom&&"object"==typeof t.custom?t.custom:T,d=+t.truncate>1&&t.truncate||!1,p=t.uric||!1,m=t.uricNoSlash||!1,g=t.mark||!1,C=!1!==t.symbols&&!1!==t.lang,S=t.separator||S,p&&(I+=u),m&&(I+=c),g&&(I+=".!~*'()"),y=t.lang&&l[t.lang]&&C?l[t.lang]:C?l.en:{},b=t.lang&&o[t.lang]?o[t.lang]:!1===t.lang||!0===t.lang?{}:o.en,t.titleCase&&"number"==typeof t.titleCase.length&&Array.prototype.toString.call(t.titleCase)?(t.titleCase.forEach(function(e){T[e+""]=e+""}),n=!0):n=!!t.titleCase,t.custom&&"number"==typeof t.custom.length&&Array.prototype.toString.call(t.custom)&&t.custom.forEach(function(e){T[e+""]=e+""}),Object.keys(T).forEach(function(t){var r;r=t.length>1?RegExp("\\b"+h(t)+"\\b","gi"):RegExp(h(t),"gi"),e=e.replace(r,T[t])}),T)I+=w;for(I+=S,I=h(I),e=e.replace(/(^\s+|\s+$)/g,""),k=!1,E=!1,_=0,x=e.length;_<x;_++)f(w=e[_],T)?k=!1:b[w]?(w=k&&b[w].match(/[A-Za-z0-9]/)?" "+b[w]:b[w],k=!1):w in i?(_+1<x&&s.indexOf(e[_+1])>=0?(O+=w,w=""):!0===E?(w=a[O]+i[w],O=""):w=k&&i[w].match(/[A-Za-z0-9]/)?" "+i[w]:i[w],k=!1,E=!1):w in a?(O+=w,w="",_===x-1&&(w=a[O]),E=!0):!y[w]||p&&-1!==u.indexOf(w)||m&&-1!==c.indexOf(w)?(!0===E?(w=a[O]+w,O="",E=!1):k&&(/[A-Za-z0-9]/.test(w)||A.substr(-1).match(/A-Za-z0-9]/))&&(w=" "+w),k=!1):(w=(k||A.substr(-1).match(/[A-Za-z0-9]/)?S+y[w]:y[w])+(void 0!==e[_+1]&&e[_+1].match(/[A-Za-z0-9]/)?S:""),k=!0),A+=w.replace(RegExp("[^\\w\\s"+I+"_-]","g"),S);return n&&(A=A.replace(/(\w)(\S*)/g,function(e,t,r){var n=t.toUpperCase()+(null!==r?r:"");return 0>Object.keys(T).indexOf(n.toLowerCase())?n:n.toLowerCase()})),A=A.replace(/\s+/g,S).replace(RegExp("\\"+S+"+","g"),S).replace(RegExp("(^\\"+S+"+|\\"+S+"+$)","g"),""),d&&A.length>d&&(v=A.charAt(d)===S,A=A.slice(0,d),v||(A=A.slice(0,A.lastIndexOf(S)))),r||n||(A=A.toLowerCase()),A},h=function(e){return e.replace(/[-\\^$*+?.()|[\]{}\/]/g,"\\$&")},f=function(e,t){for(var r in t)if(t[r]===e)return!0};e.exports?(e.exports=d,e.exports.createSlug=function(e){return function(t){return d(t,e)}}):void 0===(r=(function(){return d}
2).apply(t,[]))||(e.exports=r)}(0)},9650:(e,t,r)=>{"use strict";r.d(t,{s:()=>o});var n=r(84841),i=r(624),s=r(81451),a=r(2297);function o(e){return(0,n.N)(function(t,r){var n=!1,o=null,l=null,u=function(){if(null==l||l.unsubscribe(),l=null,n){n=!1;var e=o;o=null,r.next(e)}};t.subscribe((0,s._)(r,function(t){null==l||l.unsubscribe(),n=!0,o=t,l=(0,s._)(r,u,i.l),(0,a.Tg)(e(t)).subscribe(l)},function(){u(),r.complete()},void 0,function(){o=l=null}))})}},9783:(e,t,r)=>{"use strict";let n=r(43166);e.exports=(e,t,r)=>n(e,t,r)>=0},9830:(e,t,r)=>{"use strict";r.d(t,{f:()=>i});var n=r(97537);function i(e){return!(!(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))&&"number"!=typeof e||isNaN(+(0,n.a)(e)))}},9917:e=>{e.exports=function(e){return e!=e}},10040:(e,t,r)=>{"use strict";r.d(t,{X:()=>i});var n=r(97537);function i(e,t,r){let i=(0,n.a)(e,null==r?void 0:r.in);return i.setDate(t),i}},10235:(e,t,r)=>{var n=r(15719);e.exports=function(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=+(r.size!=i),this}},10261:(e,t,r)=>{"use strict";r.d(t,{f:()=>s});var n=r(84841),i=r(64859);function s(e,t,r){return void 0===t&&(t=1/0),t=1>(t||0)?1/0:t,(0,n.N)(function(n,s){return(0,i.h)(n,s,e,t,void 0,!0,r)})}},10458:(e,t,r)=>{e.exports=r(9401)},10687:(e,t,r)=>{var n=r(98512),i=r(19407),s=r(70725);e.exports=function(e){return"function"!=typeof e.constructor||s(e)?{}:n(i(e))}},10704:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(52156),i=r(98493);let s=function(e,t){var r=[];return(0,i.A)(e,function(e,n,i){t(e,n,i)&&r.push(e)}),r};var a=r(27595),o=r(66985);let l=function(e,t){return((0,o.A)(e)?n.A:s)(e,(0,a.A)(t,3))}},10821:(e,t,r)=>{"use strict";r.d(t,{O:()=>s});var n=r(44854),i=r(71114);function s(e,t,r){let s=(0,i.b)(e,t)/1e3;return(0,n.u)(null==r?void 0:r.roundingMethod)(s)}},10866: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)}}},11057:(e,t,r)=>{var n=r(58516),i=r(80597),s=r(86197),a=r(38965),o=r(73567),l=r(90160),u=r(58176),c=r(20481);e.exports=u(function(e,t){var r={};if(null==e)return r;var u=!1;t=n(t,function(t){return t=a(t,e),u||(u=t.length>1),t}),o(e,c(e),r),u&&(r=i(r,7,l));for(var d=t.length;d--;)s(r,t[d]);return r})},11321:(e,t,r)=>{var n=r(75549);e.exports=function(e,t,r,i){return n(e,function(e,n,s){t(i,e,r(e),s)}),i}},11343:(e,t,r)=>{"use strict";r.d(t,{K:()=>i});var n=r(73639);function i(e,t,r=[t],s="npm"){let a=e._metadata||{};a.sdk||(a.sdk={name:`sentry.javascript.${t}`,packages:r.map(e=>({name:`${s}:@sentry/${e}`,version:n.M})),version:n.M}),e._metadata=a}},11385:(e,t,r)=>{"use strict";r.d(t,{Kc:()=>a,T_:()=>s,p8:()=>o});let n={capture:!0};function i(e,t,r){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function s(e){if("onpagehide"in window)return i(window,"pagehide",e);let t=i(window,"unload",e),r=i(window,"unload",e);return()=>{t(),r()}}function a(e){return i(document,"visibilitychange",()=>{"hidden"===document.visibilityState&&e()})}let o=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}()},11594:(e,t,r)=>{"use strict";let n;r.d(t,{RM:()=>D});let i={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},s=new Uint8Array(16),a=[];for(let e=0;e<256;++e)a.push((e+256).toString(16).slice(1));let o=function(e,t,r){if(i.randomUUID&&!t&&!e)return i.randomUUID();var o=e,l=r;let u=(o=o||{}).random??o.rng?.()??function(){if(!n){if("undefined"==typeof crypto||!crypto.getRandomValues)throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");n=crypto.getRandomValues.bind(crypto)}return n(s)}();if(u.length<16)throw Error("Random bytes length must be >= 16");if(u[6]=15&u[6]|64,u[8]=63&u[8]|128,t){if((l=l||0)<0||l+16>t.length)throw RangeError(`UUID byte range ${l}:${l+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[l+e]=u[e];return t}
2return 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()}(u)};var l=r(92526),u=r(45145),c=r(94843),d=r(87996),h=r(28130),f=r(24617),p=r(5877),m=r(27381),g=r(35800),y=r(53355),b=r(45858),v=r(17221),_=r(36330),w=r(27248),x=r(25082);let k=e=>({context:t})=>{let{count:r,include:n,exclude:i,responseType:s="message.received"}=e;return{count:r,domain:t.domain,from:t.connectTo,include:n?Array.isArray(n)?n:[n]:[],exclude:i?Array.isArray(i)?i:[i]:[],responseType:s,target:t.target,to:t.name}},E=(0,f.v)(()=>(0,p.R)(window,"message")),S="comlink/response",A="comlink/heartbeat",O="comlink/disconnect",C="comlink/handshake/syn",T="comlink/handshake/ack";(0,l.SP)(({sendBack:e,input:t})=>{let r=()=>{e(t.event)};t.immediate&&r();let n=setInterval(r,t.interval);return()=>{clearInterval(n)}});let I=()=>(0,u.mj)({types:{},actors:{requestMachine:(0,u.mj)({types:{},actors:{listen:(0,l.OX)(({input:e})=>{let t,r=e.signal?(0,p.R)(e.signal,"abort").pipe((t=`Request ${e.requestId} aborted`,e=>e.pipe((0,_.s)(1),(0,m.T)(()=>{throw Error(t)})))):w.w;return(0,p.R)(window,"message").pipe((0,y.p)(t=>t.data?.type===S&&t.data?.responseTo===e.requestId&&!!t.source&&e.sources.has(t.source)),(0,_.s)(e.sources.size),(0,x.Q)(r))})},actions:{"send message":({context:e},t)=>{let{sources:r,targetOrigin:n}=e,{message:i}=t;r.forEach(e=>{e.postMessage(i,{targetOrigin:n})})},"on success":(0,c.s)(({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.s)(({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.s)(({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-${o()}`,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:r,domain:n,from:i,id:s,responseTo:a,to:o,type:l}=e;return{message:{channelId:t,data:r,domain:n,from:i,id:s,to:o,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,d.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 r;return E.pipe(e?(0,m.T)(e):(0,g.F)(),(0,y.p)((e=>t=>{let{data:r}=t;return(!e.include.length||e.include.includes(r.type))&&(!e.exclude.length||!e.exclude.includes(r.type))&&r.domain===e.domain&&r.from===e.from&&r.to===e.to&&(!e.target||t.source===e.target)})(t)),(0,m.T)((r=t.responseType,e=>({type:r,message:e}))),t.count?(0,g.F)((0,b.S)(t.count),(0,v.H)(e=>e),(0,_.s)(t.count)):(0,g.F)())}))()},actions:{"buffer handshake":(0,d.a)({handshakeBuffer:({event:e,context:t})=>((0,u.DT)(e,"message.received"),[...t.handshakeBuffer,e])}),"buffer message":(0,c.e)(({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,d.a)({requests:({context:e,event:t,self:r,spawn:n})=>{(0,u.DT)(t,"request");let i=(Array.isArray(t.data)?t.data:[t.data]).map(t=>n("requestMachine",{id:`req-${o()}`,input:{channelId:e.channelId,data:t.data,domain:e.domain,expectResponse:t.expectResponse,from:e.name,parentRef:r,resolvable:t.resolvable,responseTimeout:t.options?.responseTimeout,responseTo:t.responseTo,signal:t.options?.signal,sources:e.target,suppressWarnings:t.o
2ptions?.suppressWarnings,targetOrigin:e.targetOrigin,to:e.connectTo,type:t.type}}));return[...e.requests,...i]}}),"emit heartbeat":(0,c.a)(()=>({type:"heartbeat"})),"emit received message":(0,c.e)(({enqueue:e})=>{e.emit(({event:e})=>((0,u.DT)(e,"message.received"),{type:"message",message:e.message.data}))}),"emit status":(0,c.a)((e,t)=>({type:"status",status:t.status})),"post message":(0,h.r)(({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.e)(({context:e,enqueue:t})=>{e.handshakeBuffer.forEach(e=>t.raise(e)),t.assign({handshakeBuffer:[]})}),"remove request":(0,c.e)(({context:e,enqueue:t,event:r})=>{(0,u.DT)(r,["request.success","request.failed","request.aborted"]),(0,h.s)(r.requestId),t.assign({requests:e.requests.filter(({id:e})=>e!==r.requestId)})}),"send response":(0,h.r)(({event:e})=>((0,u.DT)(e,["message.received","heartbeat.received"]),{type:"request",data:{type:S,responseTo:e.message.data.id,data:void 0}})),"send handshake syn ack":(0,h.r)({type:"request",data:{type:"comlink/handshake/syn-ack"}}),"send pending messages":(0,c.e)(({enqueue:e})=>{e.raise(({context:e})=>({type:"request",data:e.buffer.map(({data:e,resolvable:t,options:r})=>({data:e.data,type:e.type,expectResponse:!!t,resolvable:t,options:r}))})),e.emit(({context:e})=>({type:"buffer.flushed",messages:e.buffer.map(({data:e})=>e)})),e.assign({buffer:[]})}),"set connection config":(0,d.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:k({include:C,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:k({include:T,count:1,responseType:"handshake.complete"}),onDone:"connected"},{id:"listen for disconnect",src:"listen",input:k({include:O,count:1,responseType:"disconnect"})},{id:"listen for messages",src:"listen",input:k({exclude:[O,C,T,A,S]})}],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:k({exclude:[O,C,T,A,S]})},{id:"listen for heartbeat",src:"listen",input:k({include:A,responseType:"heartbeat.received"})},{id:"listen for disconnect",src:"listen",input:k({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"]}}}}}),D=(e,t=I())=>{let r,n=(0,h.c)(t,{input:e}),i=new Map,s=new Map;n.on("message",({message:e})=>{let t=i.get(e.type);if(t)return void t.forEach(t=>t(e.data));let r=s.get(e.type);r?r.add(e):s.set(e.type,new Set([e]))});let a=()=>{n.stop()};return{actor:n,fetch:(e,t,r)=>{let{responseTimeout:i=1e4,signal:s,suppressWarnings:a}=r||{},o=function(){let e,t;return"function"==typeof Promise.withResolvers?Promise.withResolvers():{promise:new Promise((r,n)=>{e=r,t=n}),resolve:e,reject:t}}();return n.send({type:"post",data:{type:e,data:t},resolvable:o,options:{responseTimeout:i,signal:s,suppressWarnings:a}}),o.promise},machine:t,on:(e,t,r)=>{let n=i.get(e)||new Set;i.has(e)||i.set(e,n),n.add(t);let a=s.get(e);if(a){let n=r?.replay??1;
2Array.from(a).slice(-n).forEach(({data:e})=>t(e)),s.delete(e)}return()=>{n.delete(t)}},onStatus:(e,t)=>{let i=n.on("status",n=>{r=n.status,t&&n.status!==t||e(n.status)});return r&&e(r),()=>i.unsubscribe()},post:(e,t)=>{n.send({type:"post",data:{type:e,data:t}})},start:()=>(n.start(),a),stop:a}}},12226:(e,t,r)=>{"use strict";r.d(t,{DT:()=>h,mj:()=>function e({schemas:t,actors:r,actions:s,guards:a,delays:o}){return{assign:i.a,sendTo:d.s,raise:n.r,log:d.l,cancel:n.b,stopChild:n.s,enqueueActions:d.e,emit:d.a,spawnChild:n.d,createStateConfig:e=>e,createAction:e=>e,createMachine:e=>new c({...e,schemas:t},{actors:r,actions:s,guards:a,delays:o}),extend:n=>e({schemas:t,actors:r,actions:{...s,...n.actions},guards:{...a,...n.guards},delays:{...o,...n.delays}})}}});var n=r(54501),i=r(33899);let s=new WeakMap;function a(e,t,r){let n=s.get(e);return n?t in n||(n[t]=r()):(n={[t]:r()},s.set(e,n)),n[t]}let o={},l=e=>"string"==typeof e?{type:e}:"function"==typeof e?"resolve"in e?{type:e.type}:{type:e.name}:e;class u{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(n.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,n.z)(this.config.states,(e,t)=>new u(e,{_parent:this,_key:t,_machine:this.machine})):o,"compound"===this.type&&!this.config.initial)throw Error(`No initial state specified for compound 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,n.t)(this.config.entry).slice(),this.exit=(0,n.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,n.t)(e.tags).slice()}_initialize(){this.transitions=(0,n.B)(this),this.config.always&&(this.always=(0,n.C)(this.config.always).map(e=>(0,n.D)(this,n.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.t
2ype,initial:this.initial?{target:this.initial.target,source:this,actions:this.initial.actions.map(l),eventType:null,reenter:!1,toJSON:()=>({target:this.initial.target.map(e=>`#${e.id}`),source:`#${this.id}`,actions:this.initial.actions.map(l),eventType:null})}:void 0,history:this.history,states:(0,n.z)(this.states,e=>e.definition),on:this.on,transitions:[...this.transitions.values()].flat().map(e=>({...e,actions:e.actions.map(l)})),entry:this.entry.map(l),exit:this.exit.map(l),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 a(this,"invoke",()=>(0,n.t)(this.config.invoke).map((e,t)=>{let{src:r,systemId:i}=e,s=e.id??(0,n.F)(this.id,t),a="string"==typeof r?r:`xstate.invoke.${(0,n.F)(this.id,t)}`;return{...e,src:a,id:s,systemId:i,toJSON(){let{onDone:t,onError:r,...n}=e;return{...n,type:"xstate.invoke",src:a,id:s}}}}))}get on(){return a(this,"on",()=>[...this.transitions].flatMap(([e,t])=>t.map(t=>[e,t])).reduce((e,[t,r])=>(e[t]=e[t]||[],e[t].push(r),e),{}))}get after(){return a(this,"delayedTransitions",()=>(0,n.G)(this))}get initial(){return a(this,"initial",()=>(0,n.H)(this,this.config.initial))}next(e,t){let r,i=t.type,s=[];for(let o of a(this,`candidates-${i}`,()=>(0,n.I)(this,i))){let{guard:a}=o,l=e.context,u=!1;try{u=!a||(0,n.E)(a,l,t,e)}catch(t){let e="string"==typeof a?a:"object"==typeof a?a.type:void 0;throw Error(`Unable to evaluate guard ${e?`'${e}' `:""}in transition for event '${i}' in state node '${this.id}':
3${t.message}`)}if(u){s.push(...o.actions),r=o;break}}return r?[r]:void 0}get events(){return a(this,"events",()=>{let{states:e}=this,t=new Set(this.ownEvents);if(e)for(let r of Object.keys(e)){let n=e[r];if(n.states)for(let e of n.events)t.add(`${e}`)}return Array.from(t)})}get ownEvents(){return Array.from(new Set(Object.keys(Object.fromEntries(this.transitions)).filter(e=>this.transitions.get(e).some(e=>!(!e.target&&!e.actions.length&&!e.reenter)))))}}class c{constructor(e,t){this.config=e,this.version=void 0,this.schemas=void 0,this.implementations=void 0,this.options=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.options={maxIterations:1/0,...this.config.options},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 u(e,{_key:this.id,_machine:this}),this.root._initialize(),(0,n.J)(this.root),this.states=this.root.states,this.events=this.root.events}provide(e){let{actions:t,guards:r,actors:n,delays:i}=this.implementations;return new c(this.config,{actions:{...t,...e.actions},guards:{...r,...e.guards},actors:{...n,...e.actors},delays:{...i,...e.delays}})}resolveState(e){let t=(0,n.K)(this.root,e.value),r=(0,n.L)((0,n.q)(this.root,t));return(0,n.M)({_nodes:[...r],context:e.context||{},children:{},status:(0,n.O)(r,this.root)?"done":e.status||"active",output:e.output,error:e.error,historyValue:e.historyValue},this)}transition(e,t,r){return(0,n.e)(e,t,r,[]).snapshot}microstep(e,t,r){return(0,n.e)(e,t,r,[]).microsteps.map(([e])=>e)}getTransitionData(e,t){return(0,n.P)(this.root,e.value,e,t)||[]}_getPreInitialState(e,t,r){let{context:s}=this.config,a=(0,n.M)({context:"function"!=typeof s&&s?s:{},_nodes:[this.root],children:{},status:"active"},this);return"function"==typeof s?(0,n.Q)(a,t,e,[(0,i.a)(({spawn:e,event:t,self:r})=>s({spawn:e,input:t.input,self:r}))],r,void 0):a}getInitialSnapshot(e,t){let r=(0,n.f)(t),i=[],s=this._getPreInitialState(e,r,i),[a]=(0,n.g)(this.root,s,e,r,i),{snapshot:o}=(0,n.e)(a,r,e,i);return o}start(e){Object.values(e.children).forEach(e=>{"active"===e.getSnapshot().status&&e.start()})}getStateNodeById(e){let t=(0,n.R)(e),r=t.slice(1),i=(0,n.T)(t[0])?t[0].slice(1):t[0],s=this.idMap.get(i);if(!s)throw Error(`Child state node '#${i}' does not exist on machine '${this.id}'`);return(0,n.U)(s,r)}get definition(){return this.root.definition}toJSON(){return this.definition}getPersistedSnapshot(e,t){return(0,n.V)(e,t)}restoreSnapshot(e,t){let r={},i=e.children;
3Object.keys(i).forEach(e=>{let s=i[e],a=s.snapshot,o=s.src,l="string"==typeof o?(0,n.W)(this,o):o;if(!l)return;let u=(0,n.c)(l,{id:e,parent:t.self,syncSnapshot:s.syncSnapshot,snapshot:a,src:o,systemId:s.systemId});r[e]=u});let s=function(e,t){if(!t||"object"!=typeof t)return{};let r={};for(let n in t)for(let i of t[n]){let t=function(e,t){if(t instanceof u)return t;try{return e.machine.getStateNodeById(t.id)}catch{}}(e,i);t&&(r[n]??=[],r[n].push(t))}return r}(this.root,e.historyValue),a=(0,n.M)({...e,children:r,_nodes:Array.from((0,n.L)((0,n.q)(this.root,e.value))),historyValue:s},this),o=new Set;return!function e(t,r){if(!o.has(t))for(let i in o.add(t),t){let s=t[i];if(s&&"object"==typeof s){if("xstate$$type"in s&&s.xstate$$type===n.$){t[i]=r[s.id];continue}e(s,r)}}}(a.context,r),a}}var d=r(16765);function h(e,t){let r=(0,n.t)(t);if(!r.some(t=>(0,n.m)(e.type,t))){let t=1===r.length?`type matching "${r[0]}"`:`one of types matching "${r.join('", "')}"`;throw Error(`Expected event ${JSON.stringify(e)} to have ${t}`)}}},12387:(e,t,r)=>{var n=r(66709);e.exports=function(e,t){return!!(null==e?0:e.length)&&n(e,t,0)>-1}},12561:(e,t,r)=>{e.exports=r(43960)(r(36169),"WeakMap")},12714:(e,t,r)=>{"use strict";let n=r(27353),i=r(97504),{ANY:s}=i,a=r(38576),o=r(43166),l=[new i(">=0.0.0-0")],u=[new i(">=0.0.0")],c=(e,t,r)=>{let n,i,c,f,p,m,g;if(e===t)return!0;if(1===e.length&&e[0].semver===s)if(1===t.length&&t[0].semver===s)return!0;else e=r.includePrerelease?l:u;if(1===t.length&&t[0].semver===s)if(r.includePrerelease)return!0;else t=u;let y=new Set;for(let t of e)">"===t.operator||">="===t.operator?n=d(n,t,r):"<"===t.operator||"<="===t.operator?i=h(i,t,r):y.add(t.semver);if(y.size>1)return null;if(n&&i&&((c=o(n.semver,i.semver,r))>0||0===c&&(">="!==n.operator||"<="!==i.operator)))return null;for(let e of y){if(n&&!a(e,String(n),r)||i&&!a(e,String(i),r))return null;for(let n of t)if(!a(e,String(n),r))return!1;return!0}let b=!!i&&!r.includePrerelease&&!!i.semver.prerelease.length&&i.semver,v=!!n&&!r.includePrerelease&&!!n.semver.prerelease.length&&n.semver;for(let e of(b&&1===b.prerelease.length&&"<"===i.operator&&0===b.prerelease[0]&&(b=!1),t)){if(g=g||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,n){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((f=d(n,e,r))===e&&f!==n)return!1}else if(">="===n.operator&&!a(n.semver,String(e),r))return!1}if(i){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((p=h(i,e,r))===e&&p!==i)return!1}else if("<="===i.operator&&!a(i.semver,String(e),r))return!1}if(!e.operator&&(i||n)&&0!==c)return!1}return(!n||!m||!!i||0===c)&&(!i||!g||!!n||0===c)&&!v&&!b&&!0},d=(e,t,r)=>{if(!e)return t;let n=o(e.semver,t.semver,r);return n>0?e:n<0||">"===t.operator&&">="===e.operator?t:e},h=(e,t,r)=>{if(!e)return t;let n=o(e.semver,t.semver,r);return n<0?e:n>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let i=!1;e:for(let n of e.set){for(let e of t.set){let t=c(n,e,r);if(i=i||null!==t,t)continue e}if(i)return!1}return!0}},12915:(e,t,r)=>{var n=r(91266),i=r(99827),s=r(65030),a=r(20470);e.exports=function(e){var t=s(e),r=a[t];if("function"!=typeof r||!(t in n.prototype))return!1;if(e===r)return!0;var o=i(r);return!!o&&e===o[0]}},13096:(e,t,r)=>{"use strict";r.d(t,{P:()=>s});var n=r(41325),i=r(97537);function s(e,t,r){let s=(0,i.a)(e,null==r?void 0:r.in);if(isNaN(t))return(0,n.w)((null==r?void 0:r.in)||e,NaN);if(!t)return s;let a=s.getDate(),o=(0,n.w)((null==r?void 0:r.in)||e,s.getTime());return(o.setMonth(s.getMonth()+t+1,0),a>=o.getDate())?o:(s.setFullYear(o.getFullYear(),o.getMonth(),a),s)}},13177:(e,t,r)=>{"use strict";r.d(t,{x:()=>i});var n=r(41325);function i(e){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];let s=n.w.bind(null,e||r.find(e=>"object"==typeof e));return r.map(s)}},13321:(e,t,r)=>{"use strict";r.d(t,{k:()=>s});var n=r(35508),i=r(97537);function s(e,t){var r,s,a,o,l,u,c,d;let h=(0,n.q)(),f=null!=(d=null!=(c=null!=(u=null!=(l=null==t?void 0:t.weekStartsOn)?l:null==t||null==(s=t.locale)||null==(r=s.options)?void 0:r.weekStartsOn)?u:h.weekStartsOn)?c:null==(o=h.locale)||null==(a=o.options)?void 0:a.weekStartsOn)?d:0,p=(0,i.a)(e,null==t?void 0:t.in),m=p.getDay();return p.setDate(p.getDate()-(7*(m<f)+m-f)),p.setHours(0,0,0,0),p}},13517:(e,t,r)=>{var n=r(80597);e.exports=function(e){return n(e,4)}},13535:(e,t,r)=>{var n=r(70368);e.exports=function(e,t,r){for(var i=-1,s=e.length;++i<s;){var a=e[i],o=t(a);if(null!=o&&(void 0===l?o==o&&!n(o):r(o,l)))var l=o,u=a}return u}},14077:(e,t,r)=>{var n=r(37403),i=r(76956);e.exports=function(e,t,r,s){var a=r.length,o=a,l=!s;if(null==e)return!o;for(e=Object(e);a--;){var u=r[a];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++a<o;){var c=(u=r[a])[0],d=e[c],h=u[1];if(l&&u[2]){if(void 0===d&&!(c in e))return!1}else{var f=new n;if(s)var p=s(d,h,c,e,t,f);if(!(void 0===p?i(h,d,3,s,f):p))return!1}}return!0}},14126:(e,t,r)=>{"use strict";r.d(t,{lG:()=>h});var n=r(15840);function i(e,t,r,i){let s={filename:e,function:"<anonymous>"===t?n.yF:t,in_app:!0};return void 0!==r&&(s.lineno=r),void 0!==i&&(s.colno=i),s}
3let s=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,a=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,o=/\((\S*)(?::(\d+))(?::(\d+))\)/,l=[30,e=>{let t=s.exec(e);if(t){let[,e,r,s]=t;return i(e,n.yF,+r,+s)}let r=a.exec(e);if(r){if(r[2]&&0===r[2].indexOf("eval")){let e=o.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}let[e,t]=f(r[1]||n.yF,r[2]);return i(t,e,r[3]?+r[3]:void 0,r[4]?+r[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],r=t[1]||n.yF;return[r,e]=f(r,e),i(e,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],h=(0,n.gd)(l,d),f=(e,t)=>{let r=-1!==e.indexOf("safari-extension"),i=-1!==e.indexOf("safari-web-extension");return r||i?[-1!==e.indexOf("@")?e.split("@")[0]:n.yF,r?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]}},14476:(e,t,r)=>{var n=r(36169);e.exports=function(){return n.Date.now()}},14860:e=>{e.exports=function(e,t){return e<t}},14864:(e,t,r)=>{"use strict";r.d(t,{qf:()=>l,d4:()=>c});var n=r(60266),i=n.useLayoutEffect,s=r(54501),a=r(69155);r(76353);let o=(e,t)=>{t(e);let r=e.getSnapshot().children;r&&Object.values(r).forEach(e=>{o(e,t)})};function l(e,...[t,r]){let a=function(e,...[t]){let[[r,a],o]=(0,n.useState)(()=>{let r=(0,s.c)(e,t);return[e.config,r]});if(e.config!==r){let r=(0,s.c)(e,{...t,snapshot:a.getPersistedSnapshot({__unsafeAllowInlineActors:!0})});o([e.config,r]),a=r}return i(()=>{a.logic.implementations=e.implementations}),a}(e,t);return(0,n.useEffect)(()=>{if(!r)return;let e=a.subscribe((0,s.x)(r));return()=>{e.unsubscribe()}},[r]),(0,n.useEffect)(()=>(a.start(),()=>{let e=[];o(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,r=u){let i=(0,n.useCallback)(t=>{if(!e)return()=>{};let{unsubscribe:r}=e.subscribe({next:t,error:t});return r},[e]),s=(0,n.useCallback)(()=>{let t=e?.getSnapshot();if(t&&"status"in t&&"error"===t.status)throw t.error;return t},[e]);return(0,a.useSyncExternalStoreWithSelector)(i,s,s,t,r)}},14919:(e,t,r)=>{"use strict";r.d(t,{T2:()=>o,XW:()=>s,xg:()=>a});var n,i=r(28077);function s(e){return new o(t=>{t(e)})}function a(e){return new o((t,r)=>{r(e)})}!function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"}(n||(n={}));class o{constructor(e){o.prototype.__init.call(this),o.prototype.__init2.call(this),o.prototype.__init3.call(this),o.prototype.__init4.call(this),this._state=n.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new o((r,n)=>{this._handlers.push([!1,t=>{if(e)try{r(e(t))}catch(e){n(e)}else r(t)},e=>{if(t)try{r(t(e))}catch(e){n(e)}else n(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new o((t,r)=>{let n,i;return this.then(t=>{i=!1,n=t,e&&e()},t=>{i=!0,n=t,e&&e()}).then(()=>{if(i)return void r(n);t(n)})})}__init(){this._resolve=e=>{this._setResult(n.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(n.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{if(this._state===n.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===n.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===n.RESOLVED&&e[1](this._value),this._state===n.REJECTED&&e[2](this._value),e[0]=!0)})}}}},14968:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},15068:e=>{e.exports=function(e){return void 0===e}},15104:(e,t,r)=>{var n=r(72557),i=r(95432),s=r(41194);e.exports=function(e){return s(e)?n(e):i(e)}},15431:(e,t,r)=>{var n=r(18053);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},15433:(e,t,r)=>{var n=r(95432),i=r(7117),s=r(19528),a=r(42725),o=r(41194),l=r(34454),u=r(70725),c=r(71029),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;
3if(o(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||c(e)||s(e)))return!e.length;var t=i(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(u(e))return!n(e).length;for(var r in e)if(d.call(e,r))return!1;return!0}},15536:(e,t,r)=>{e.exports=r(36169).Uint8Array},15674:(e,t,r)=>{"use strict";function n(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}r.d(t,{Q:()=>d,u4:()=>n,y:()=>l});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},s={0:8203,1:8204,2:8205,3:65279},a={0:String.fromCodePoint(s[0]),1:String.fromCodePoint(s[1]),2:String.fromCodePoint(s[2]),3:String.fromCodePoint(s[3])},o=[,,,,].fill(String.fromCodePoint(s[0])).join("");function l(e,t,r="auto"){return!0===r||"auto"===r&&(!(!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}${function(e){let t=JSON.stringify(e),r=new TextEncoder().encode(t),n="";for(let e=0;e<r.length;e++){let t=r[e];n+=a[t>>6&3]+a[t>>4&3]+a[t>>2&3]+a[3&t]}return o+n}(t)}`}Object.fromEntries(Object.entries(a).map(e=>[e[1],+e[0]])),Object.fromEntries(Object.entries(i).map(e=>e.reverse()));var u=`${Object.values(i).map(e=>`\\u{${e.toString(16)}}`).join("")}`,c=RegExp(`[${u}]{4,}`,"gu");function d(e){var t,r;return e&&JSON.parse({cleaned:(t=JSON.stringify(e)).replace(c,""),encoded:(null==(r=t.match(c))?void 0:r[0])||""}.cleaned)}},15719:(e,t,r)=>{var n=r(14968);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},15840:(e,t,r)=>{"use strict";r.d(t,{RV:()=>d,gd:()=>a,qQ:()=>c,vk:()=>o,yF:()=>n});let n="?",i=/\(error: (.*)\)/,s=/captureMessage|captureException/;function a(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,r=0,a=0)=>{let o=[],u=e.split("\n");for(let e=r;e<u.length;e++){let r=u[e];if(r.length>1024)continue;let n=i.test(r)?r.replace(i,"$1"):r;if(!n.match(/\S*Error: /)){for(let e of t){let t=e(n);if(t){o.push(t);break}}if(o.length>=50+a)break}}var c=o.slice(a);if(!c.length)return[];let d=Array.from(c);return/sentryWrapped/.test(l(d).function||"")&&d.pop(),d.reverse(),s.test(l(d).function||"")&&(d.pop(),s.test(l(d).function||"")&&d.pop()),d.slice(0,50).map(e=>({...e,filename:e.filename||l(d).filename,function:e.function||n}))}}function o(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){}}}},16054:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});class n extends Map{#r=0;#n=new Map;#i=new Map;#s;#a;#o;constructor(e={}){if(super(),!(e.maxSize&&e.maxSize>0))throw TypeError("`maxSize` must be a number greater than 0");if("number"==typeof e.maxAge&&0===e.maxAge)throw TypeError("`maxAge` must be a number greater than 0");this.#s=e.maxSize,this.#a=e.maxAge||1/0,this.#o=e.onEviction}get __oldCache(){return this.#i}#l(e){if("function"==typeof this.#o)for(let[t,r]of e)this.#o(t,r.value)}#u(e,t){return!!("number"==typeof t.expiry&&t.expiry<=Date.now())&&("function"==typeof this.#o&&this.#o(e,t.value),this.delete(e))}#c(e,t){if(!1===this.#u(e,t))return t.value}#d(e,t){return t.expiry?this.#c(e,t):t.value}#h(e,t){let r=t.get(e);return this.#d(e,r)}#f(e,t){this.#n.set(e,t),this.#r++,this.#r>=this.#s&&(this.#r=0,this.#l(this.#i),this.#i=this.#n,this.#n=new Map)}#p(e,t){this.#i.delete(e),this.#f(e,t)}*#m(){for(let e of this.#i){let[t,r]=e;this.#n.has(t)||!1===this.#u(t,r)&&(yield e)}for(let e of this.#n){let[t,r]=e;!1===this.#u(t,r)&&(yield e)}}get(e){if(this.#n.has(e)){let t=this.#n.get(e);return this.#d(e,t)}if(this.#i.has(e)){let t=this.#i.get(e);if(!1===this.#u(e,t))return this.#p(e,t),t.value}}set(e,t,{maxAge:r=this.#a}={}){let n="number"==typeof r&&r!==1/0?Date.now()+r:void 0;return this.#n.has(e)?this.#n.set(e,{value:t,expiry:n}):this.#f(e,{value:t,expiry:n}),this}has(e){return this.#n.has(e)?!this.#u(e,this.#n.get(e)):!!this.#i.has(e)&&!this.#u(e,this.#i.get(e))}peek(e){return this.#n.has(e)?this.#h(e,this.#n):this.#i.has(e)?this.#h(e,this.#i):void 0}expiresIn(e){let t=this.#n.get(e)??this.#i.get(e);if(t)return t.expiry?t.expiry-Date.now():1/0}delete(e){let t=this.#n.delete(e);return t&&this.#r--,this.#i.delete(e)||t}clear(){this.#n.clear(),this.#i.clear(),this.#r=0}resize(e){if(!(e&&e>0))throw TypeError("`maxSize` must be a number greater than 0");let t=[...this.#m()],r=t.length-e;r<0?(this.#n=new Map(t),this.#i=new Map,this.#r=t.length):(r>0&&this.#l(t.slice(0,r)),this.#i=new Map(t.slice(r)),this.#n=new Map,this.#r=0),this.#s=e}evict(e=1){let t=Number(e);if(!t||t<=0)return;let r=[...this.#m()],n=Math.trunc(Math.min(t,Math.max(r.length-1,0)));n<=0||(this.#l(r.slice(0,n)),this.#i=new Map(r.slice(n)),this.#n=new Map,this.#r=0)}*keys(){for(let[e]of this)yield e}*values(){for(let[,e]of this)yield e}*[Symbol.iterator](){for(let e of this.#n){let[t,r]=e;!1===this.#u(t,r)&&(yield[t,r.value])}for(let e of this.#i){let[t,r]=e;this.#n.has(t)||!1===this.#u(t,r)&&(yield[t,r.value])}}*entriesDescending(){let e=[...this.#n];for(let t=e.length-1;t>=0;--t){let[r,n]=e[t];
3!1===this.#u(r,n)&&(yield[r,n.value])}e=[...this.#i];for(let t=e.length-1;t>=0;--t){let[r,n]=e[t];this.#n.has(r)||!1===this.#u(r,n)&&(yield[r,n.value])}}*entriesAscending(){for(let[e,t]of this.#m())yield[e,t.value]}get size(){if(!this.#r)return this.#i.size;let e=0;for(let t of this.#i.keys())!this.#n.has(t)&&e++;return Math.min(this.#r+e,this.#s)}get maxSize(){return this.#s}get maxAge(){return this.#a}entries(){return this.entriesAscending()}forEach(e,t=this){for(let[r,n]of this.entriesAscending())e.call(t,n,r,this)}get[Symbol.toStringTag](){return"QuickLRU"}toString(){return`QuickLRU(${this.size}/${this.maxSize})`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}}},16566:(e,t,r)=>{"use strict";r.d(t,{H7:()=>g,K8:()=>u,qv:()=>m,u:()=>p});var n=r(23821),i=r(82730),s=r(28077),a=r(2541),o=r(14919),l=r(33806);function u(e,t){let r=d(e,t),n={type:function(e){let t=e&&e.name;return!t&&f(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:f(e)&&Array.isArray(e.message)&&2==e.message.length?e.message[1]:t:"No error message"}(t)};return r.length&&(n.stacktrace={frames:r}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function c(e,t){return{exception:{values:[u(e,t)]}}}function d(e,t){var r,n;let i=t.stacktrace||t.stack||"",s=(r=t)&&h.test(r.message)?1:0,a="number"==typeof(n=t).framesToPop?n.framesToPop:0;try{return e(i,s,a)}catch(e){}return[]}let h=/Minified React error #\d+;/i;function f(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function p(e,t,r,n){let i=g(e,t,r&&r.syntheticException||void 0,n);return(0,a.M6)(i),i.level="error",r&&r.event_id&&(i.event_id=r.event_id),(0,o.XW)(i)}function m(e,t,r="info",n,i){let s=y(e,t,n&&n.syntheticException||void 0,i);return s.level=r,n&&n.event_id&&(s.event_id=n.event_id),(0,o.XW)(s)}function g(e,t,r,o,h){let f;if((0,s.T2)(t)&&t.error)return c(e,t.error);if((0,s.BD)(t)||(0,s.W6)(t)){if("stack"in t)f=c(e,t);else{let n=t.name||((0,s.BD)(t)?"DOMError":"DOMException"),i=t.message?`${n}: ${t.message}`:n;f=y(e,i,r,o),(0,a.gO)(f,i)}return"code"in t&&(f.tags={...f.tags,"DOMException.code":`${t.code}`}),f}return(0,s.bJ)(t)?c(e,t):((0,s.Qd)(t)||(0,s.xH)(t)?f=function(e,t,r,a){let o=(0,n.KU)(),c=o&&o.getOptions().normalizeDepth,h=function(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let r=e[t];if(r instanceof Error)return r}}(t),f={__serialized__:(0,i.cd)(t,c)};if(h)return{exception:{values:[u(e,h)]},extra:f};let p={exception:{values:[{type:(0,s.xH)(t)?t.constructor.name:a?"UnhandledRejection":"Error",value:function(e,{isUnhandledRejection:t}){let r=(0,l.HF)(e),n=t?"promise rejection":"exception";if((0,s.T2)(e))return`Event \`ErrorEvent\` captured as ${n} with message \`${e.message}\``;if((0,s.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 ${n}`}return`Object captured as ${n} with keys: ${r}`}(t,{isUnhandledRejection:a})}]},extra:f};if(r){let t=d(e,r);t.length&&(p.exception.values[0].stacktrace={frames:t})}return p}(e,t,r,h):(f=y(e,t,r,o),(0,a.gO)(f,`${t}`,void 0)),(0,a.M6)(f,{synthetic:!0}),f)}function y(e,t,r,n){let i={};if(n&&r){let n=d(e,r);n.length&&(i.exception={values:[{value:t,stacktrace:{frames:n}}]}),(0,a.M6)(i,{synthetic:!0})}if((0,s.NF)(t)){let{__sentry_template_string__:e,__sentry_template_values__:r}=t;return i.logentry={message:e,params:r},i}return i.message=t,i}},16765:(e,t,r)=>{"use strict";r.d(t,{a:()=>o,e:()=>p,l:()=>y,s:()=>h});var n=r(54501),i=r(33899);function s(e,t,r,n,{event:i}){return[t,{event:"function"==typeof i?i(r,n):i},void 0]}function a(e,{event:t}){e.defer(()=>e.emit(t))}function o(e){function t(e,t){}return t.type="xstate.emit",t.event=e,t.resolve=s,t.execute=a,t}let l=function(e){return e.Parent="#_parent",e.Internal="#_internal",e}({});function u(e,t,r,n,{to:i,event:s,id:a,delay:o},u){let c,d,h=t.machine.implementations.delays;if("string"==typeof s)throw Error(`Only event objects may be used with sendTo; use sendTo({ type: "${s}" }) instead`);let f="function"==typeof s?s(r,n):s;if("string"==typeof o){let e=h&&h[o];c="function"==typeof e?e(r,n):e}else c="function"==typeof o?o(r,n):o;let p="function"==typeof i?i(r,n):i;
3if("string"==typeof p){if(!(d=p===l.Parent?e.self._parent:p===l.Internal?e.self:p.startsWith("#_")?t.children[p.slice(2)]:u.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:f,id:a,delay:c},void 0]}function c(e,t,r){"string"==typeof r.to&&(r.to=t.children[r.to])}function d(e,t){e.defer(()=>{let{to:r,event:i,delay:s,id:a}=t;if("number"==typeof s)return void e.system.scheduler.schedule(e.self,r,i,s,a);e.system._relay(e.self,r,i.type===n.Y?(0,n.Z)(e.self.id,i.data):i)})}function h(e,t,r){function n(e,t){}return n.type="xstate.sendTo",n.to=e,n.event=t,n.id=r?.id,n.delay=r?.delay,n.resolve=u,n.retryResolve=c,n.execute=d,n}function f(e,t,r,s,{collect:a}){let u=[],c=function(e){u.push(e)};return c.assign=(...e)=>{u.push((0,i.a)(...e))},c.cancel=(...e)=>{u.push((0,n.b)(...e))},c.raise=(...e)=>{u.push((0,n.r)(...e))},c.sendTo=(...e)=>{u.push(h(...e))},c.sendParent=(...e)=>{u.push(function(e,t){return h(l.Parent,e,t)}(...e))},c.spawnChild=(...e)=>{u.push((0,n.d)(...e))},c.stopChild=(...e)=>{u.push((0,n.s)(...e))},c.emit=(...e)=>{u.push(o(...e))},a({context:r.context,event:r.event,enqueue:c,check:e=>(0,n.E)(e,t.context,r.event,t),self:e.self,system:e.system},s),[t,void 0,u]}function p(e){function t(e,t){}return t.type="xstate.enqueueActions",t.collect=e,t.resolve=f,t}function m(e,t,r,n,{value:i,label:s}){return[t,{value:"function"==typeof i?i(r,n):i,label:s},void 0]}function g({logger:e},{value:t,label:r}){r?e(r,t):e(t)}function y(e=({context:e,event:t})=>({context:e,event:t}),t){function r(e,t){}return r.type="xstate.log",r.value=e,r.label=t,r.resolve=m,r.execute=g,r}},16813:(e,t,r)=>{var n=r(33147),i=r(42725),s=r(20232);e.exports=function(e){return"string"==typeof e||!i(e)&&s(e)&&"[object String]"==n(e)}},16982:(e,t,r)=>{e.exports=r(43960)(Object,"create")},16992:(e,t,r)=>{"use strict";r.d(t,{H:()=>a});var n=r(86337),i=r(41325),s=r(97537);function a(e,t){var r;let a,m,g=()=>(0,i.w)(null==t?void 0:t.in,NaN),y=null!=(r=null==t?void 0:t.additionalDigits)?r:2,b=function(e){let t,r={},n=e.split(o.dateTimeDelimiter);if(n.length>2)return r;if(/:/.test(n[0])?t=n[0]:(r.date=n[0],t=n[1],o.timeZoneDelimiter.test(r.date)&&(r.date=e.split(o.timeZoneDelimiter)[0],t=e.substr(r.date.length,e.length))),t){let e=o.timezone.exec(t);e?(r.time=t.replace(e[1],""),r.timezone=e[1]):r.time=t}return r}(e);if(b.date){let e=function(e,t){let r=RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(r);if(!n)return{year:NaN,restDateString:""};let i=n[1]?parseInt(n[1]):null,s=n[2]?parseInt(n[2]):null;return{year:null===s?i:100*s,restDateString:e.slice((n[1]||n[2]).length)}}(b.date,y);a=function(e,t){var r,n,i,s,a,o,u;if(null===t)return new Date(NaN);let c=e.match(l);if(!c)return new Date(NaN);let h=!!c[4],m=d(c[1]),g=d(c[2])-1,y=d(c[3]),b=d(c[4]),v=d(c[5])-1;if(h){return(r=b,n=v,r>=1&&r<=53&&n>=0&&n<=6)?function(e,t,r){let n=new Date(0);n.setUTCFullYear(e,0,4);let i=n.getUTCDay()||7;return n.setUTCDate(n.getUTCDate()+((t-1)*7+r+1-i)),n}(t,b,v):new Date(NaN)}{let e=new Date(0);return(i=t,s=g,a=y,s>=0&&s<=11&&a>=1&&a<=(f[s]||(p(i)?29:28))&&(o=t,(u=m)>=1&&u<=(p(o)?366:365)))?(e.setUTCFullYear(t,g,Math.max(m,y)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!a||isNaN(+a))return g();let v=+a,_=0;if(b.time&&isNaN(_=function(e){var t,r,i;let s=e.match(u);if(!s)return NaN;let a=h(s[1]),o=h(s[2]),l=h(s[3]);return(t=a,r=o,i=l,24===t?0===r&&0===i:i>=0&&i<60&&r>=0&&r<60&&t>=0&&t<25)?a*n.s0+o*n.Cg+1e3*l:NaN}(b.time)))return g();if(b.timezone){if(isNaN(m=function(e){var t;if("Z"===e)return 0;let r=e.match(c);if(!r)return 0;let i="+"===r[1]?-1:1,s=parseInt(r[2]),a=r[3]&&parseInt(r[3])||0;return(t=a)>=0&&t<=59?i*(s*n.s0+a*n.Cg):NaN}(b.timezone)))return g()}else{let e=new Date(v+_),r=(0,s.a)(0,null==t?void 0:t.in);return r.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),r.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),r}return(0,s.a)(v+_+m,null==t?void 0:t.in)}
3let o={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 h(e){return e&&parseFloat(e.replace(",","."))||0}let f=[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}},17010:(e,t,r)=>{var n=r(75549),i=r(41194);e.exports=function(e,t){var r=-1,s=i(e)?Array(e.length):[];return n(e,function(e,n,i){s[++r]=t(e,n,i)}),s}},17366: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 r=e.length;if(1===r)return e[0];if(t.skipConjunction)return e.join(", ");for(var n="",i=0;i<r;i++)i===r-1?(t.oxfordComma&&(n+=","),n+=" "+t.conjunction+" "):0!==i&&(n+=", "),n+=e[i];return n}},17385:e=>{e.exports=function(e){return this.__data__.has(e)}},18053:(e,t,r)=>{var n=r(99674);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return -1}},18068:(e,t,r)=>{var n=r(24102),i=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(i,""):e}},18559:(e,t,r)=>{var n=r(6261),i=r(20367),s=r(78411),a=r(24470),o=r(86623);e.exports=function(e,t,r){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return n(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return i(e,r);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 o(e,r);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return s(e);case"[object Symbol]":return a(e)}}},18833:(e,t,r)=>{"use strict";let n;r.d(t,{r9:()=>m,Bd:()=>v});var i=r(60266);r(90740);let s={},a=(e,t,r,n)=>{c(r)&&s[r]||(c(r)&&(s[r]=new Date),((e,t,r,n)=>{let i=[r,{code:t,...n||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(i,"warn","react-i18next::",!0);c(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...i):console?.warn&&console.warn(...i)})(e,t,r,n))},o=(e,t)=>()=>{if(e.isInitialized)t();else{let r=()=>{setTimeout(()=>{e.off("initialized",r)},0),t()};e.on("initialized",r)}},l=(e,t,r)=>{e.loadNamespaces(t,o(e,r))},u=(e,t,r,n)=>{if(c(r)&&(r=[r]),e.options.preload&&e.options.preload.indexOf(t)>-1)return l(e,r,n);r.forEach(t=>{0>e.options.ns.indexOf(t)&&e.options.ns.push(t)}),e.loadLanguages(t,o(e,n))},c=e=>"string"==typeof e,d=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,h={"&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=>h[e],p={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(d,f)},m={type:"3rdParty",init(e){((e={})=>{p={...p,...e}})(e.options.react),n=e}},g=(0,i.createContext)();class y{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}let b=(e,t,r,n)=>e.getFixedT(t,r,n),v=(e,t={})=>{let{i18n:r}=t,{i18n:s,defaultNS:o}=(0,i.useContext)(g)||{},d=r||s||n;if(d&&!d.reportNamespaces&&(d.reportNamespaces=new y),!d){a(d,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");let e=(e,t)=>c(t)?t:(e=>"object"==typeof e&&null!==e)(t)&&c(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}d.options.react?.wait&&a(d,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");let h={...p,...d.options.react,...t},{useSuspense:f,keyPrefix:m}=h,v=e||o||d.options?.defaultNS;v=c(v)?[v]:v||["translation"],d.reportNamespaces.addUsedNamespaces?.(v);let _=(d.isInitialized||d.initializedStoreOnce)&&v.every(e=>((e,t,r={})=>t.languages&&t.languages.length?t.hasLoadedNamespace(e,{lng:r.lng,precheck:(t,n)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!n(t.
3isLanguageChangingTo,e))return!1}}):(a(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0))(e,d,h)),w=((e,t,r,n)=>(0,i.useCallback)(b(e,t,r,n),[e,t,r,n]))(d,t.lng||null,"fallback"===h.nsMode?v:v[0],m),x=()=>w,k=()=>b(d,t.lng||null,"fallback"===h.nsMode?v:v[0],m),[E,S]=(0,i.useState)(x),A=v.join();t.lng&&(A=`${t.lng}${A}`);let O=((e,t)=>{let r=(0,i.useRef)();return(0,i.useEffect)(()=>{r.current=t?r.current:e},[e,t]),r.current})(A),C=(0,i.useRef)(!0);(0,i.useEffect)(()=>{let{bindI18n:e,bindI18nStore:r}=h;C.current=!0,_||f||(t.lng?u(d,t.lng,v,()=>{C.current&&S(k)}):l(d,v,()=>{C.current&&S(k)})),_&&O&&O!==A&&C.current&&S(k);let n=()=>{C.current&&S(k)};return e&&d?.on(e,n),r&&d?.store.on(r,n),()=>{C.current=!1,d&&e&&e?.split(" ").forEach(e=>d.off(e,n)),r&&d&&r.split(" ").forEach(e=>d.store.off(e,n))}},[d,A]),(0,i.useEffect)(()=>{C.current&&_&&S(x)},[d,m,_]);let T=[E,d,_];if(T.t=E,T.i18n=d,T.ready=_,_||!_&&!f)return T;throw new Promise(e=>{t.lng?u(d,t.lng,v,()=>e()):l(d,v,()=>e())})}},19057:(e,t,r)=>{"use strict";let n=r(27353);e.exports=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "))},19148:(e,t,r)=>{"use strict";r.d(t,{h:()=>a});var n=r(41325),i=r(62840),s=r(97537);function a(e,t,r){let a=(0,s.a)(e,null==r?void 0:r.in);return isNaN(+a)?(0,n.w)((null==r?void 0:r.in)||e,NaN):(null!=t.year&&a.setFullYear(t.year),null!=t.month&&(a=(0,i.Z)(a,t.month)),null!=t.date&&a.setDate(t.date),null!=t.hours&&a.setHours(t.hours),null!=t.minutes&&a.setMinutes(t.minutes),null!=t.seconds&&a.setSeconds(t.seconds),null!=t.milliseconds&&a.setMilliseconds(t.milliseconds),a)}},19160:(e,t,r)=>{"use strict";r.d(t,{Y:()=>o});var n=r(13177),i=r(27968),s=r(41325),a=r(13321);function o(e,t){var r;let{start:o,end:l}=function(e,t){let[r,i]=(0,n.x)(e,t.start,t.end);return{start:r,end:i}}(null==t?void 0:t.in,e),u=+o>+l,c=u?(0,a.k)(l,t):(0,a.k)(o,t),d=u?(0,a.k)(o,t):(0,a.k)(l,t);c.setHours(15),d.setHours(15);let h=+d.getTime(),f=c,p=null!=(r=null==t?void 0:t.step)?r:1;if(!p)return[];p<0&&(p=-p,u=!u);let m=[];for(;+f<=h;)f.setHours(0),m.push((0,s.w)(o,f)),(f=(0,i.J)(f,p)).setHours(15);return u?m.reverse():m}},19218:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},19271:(e,t,r)=>{var n=r(36335),i=r(30734);e.exports=function(e){return e&&e.length?n(e,i):0}},19528:(e,t,r)=>{var n=r(48336),i=r(20232),s=Object.prototype,a=s.hasOwnProperty,o=s.propertyIsEnumerable;e.exports=n(function(){return arguments}())?n:function(e){return i(e)&&a.call(e,"callee")&&!o.call(e,"callee")}},19555:(e,t,r)=>{"use strict";function n(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:/[{}[\];(),.:]/}}function i(e){e.register(n),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+)*(?
3:\.(?:\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:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),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}r.d(t,{A:()=>i}),n.displayName="clike",n.aliases=[],i.displayName="javascript",i.aliases=["js"]},19784:(e,t,r)=>{"use strict";let n=r(42838);e.exports=(e,t)=>{let r=n(e,null,!0),i=n(t,null,!0),s=r.compare(i);if(0===s)return null;let a=s>0,o=a?r:i,l=a?i:r,u=!!o.prerelease.length;if(l.prerelease.length&&!u){if(!l.patch&&!l.minor)return"major";if(0===l.compareMain(o))return l.minor&&!l.patch?"minor":"patch"}let c=u?"pre":"";return r.major!==i.major?c+"major":r.minor!==i.minor?c+"minor":r.patch!==i.patch?c+"patch":"prerelease"}},19972:(e,t)=>{"use strict";function r(e){return e}t.L8=void 0,t.L8=function(e){return e?function(t){return e(t),t}:r}},20099:(e,t,r)=>{"use strict";r.d(t,{D:()=>u});var n=r(87809),i=r(32785),s=r(87865),a=r(2541),o=r(3352);let l=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,"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+$/,/^Java exception was raised during method invocation$/],u=(0,i._C)((e={})=>({name:"InboundFilters",processEvent:(t,r,i)=>!function(e,t){var r,i,l;return t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e)?(n.T&&s.vF.warn(`Event dropped due to being internal Sentry Error.
4Event: ${(0,a.$X)(e)}`),!0):(r=e,i=t.ignoreErrors,!r.type&&i&&i.length&&(function(e){let t,r=[];e.message&&r.push(e.message);try{t=e.exception.values[e.exception.values.length-1]}catch(e){}return t&&t.value&&(r.push(t.value),t.type&&r.push(`${t.type}: ${t.value}`)),r})(r).some(e=>(0,o.Xr)(e,i)))?(n.T&&s.vF.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
5Event: ${(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 r=e.transaction;return!!r&&(0,o.Xr)(r,t)}(e,t.ignoreTransactions)?!function(e,t){if(!t||!t.length)return!1;let r=c(e);return!!r&&(0,o.Xr)(r,t)}(e,t.denyUrls)?!function(e,t){if(!t||!t.length)return!0;let r=c(e);return!r||(0,o.Xr)(r,t)}(e,t.allowUrls)&&(n.T&&s.vF.warn(`Event dropped due to not being matched by \`allowUrls\` option.
6Event: ${(0,a.$X)(e)}.
7Url: ${c(e)}`),!0):(n.T&&s.vF.warn(`Event dropped due to being matched by \`denyUrls\` option.
8Event: ${(0,a.$X)(e)}.
9Url: ${c(e)}`),!0):(n.T&&s.vF.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
10Event: ${(0,a.$X)(e)}`),!0):(n.T&&s.vF.warn(`Event dropped due to not having an error message, error type or stacktrace.
11Event: ${(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 r=e[t];if(r&&"<anonymous>"!==r.filename&&"[native code]"!==r.filename)return r.filename||null}return null}(t):null}catch(t){return n.T&&s.vF.error(`Cannot extract url for event ${(0,a.$X)(e)}`),null}}},20149:e=>{e.exports=function(e){return this.__data__.has(e)}},20324:(e,t,r)=>{"use strict";r.d(t,{l$:()=>en,$x:()=>er});var n=r(63557),i=r(98833);let s=Object.prototype.toString;function a(e){switch(s.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}function o(e,t){if(!e||!t)return e===t;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}let l=["pre","textarea","code"],u="normal",c=Object.freeze({_type:"block",markDefs:[],style:u}),d=Object.freeze({_type:"span",marks:[]}),h={p:c,blockquote:{...c,style:"blockquote"}},f={span:{object:"text"}},p={ol:{object:null},ul:{object:null}},m={h1:{...c,style:"h1"},h2:{...c,style:"h2"},h3:{...c,style:"h3"},h4:{...c,style:"h4"},h5:{...c,style:"h5"},h6:{...c,style:"h6"}},g={br:{...c,style:u}},y={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"},b={li:{...c,style:u,level:1,listItem:"bullet"}};function v(e){if(e&&"tagName"in e)return e.tagName.toLowerCase()}function _(e){return"span"===e._type}function w(e){return"block"===e._type}function x(e){return"__decorator"===e._type}function k(e){return"__annotation"===e._type}function E(e){return 1===e.nodeType}[...new Set(Object.values({...h,...f,...p,...b,...m,...g}).filter(e=>"style"in e).map(e=>e.style))],[...new Set(Object.values(y))];var S={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},A={0:8203,1:8204,2:8205,3:65279},O={0:String.fromCodePoint(A[0]),1:String.fromCodePoint(A[1]),2:String.fromCodePoint(A[2]),3:String.fromCodePoint(A[3])};[,,,,].fill(String.fromCodePoint(A[0])).join(""),Object.fromEntries(Object.entries(O).map(e=>[e[1],+e[0]])),Object.fromEntries(Object.entries(S).map(e=>e.reverse()));
11var C=`${Object.values(S).map(e=>`\\u{${e.toString(16)}}`).join("")}`,T=RegExp(`[${C}]{4,}`,"gu");function I(){var e;return e=12,(function(e=16){let t=new Uint8Array(e);return crypto.getRandomValues(t),t})(12).reduce((e,t)=>e+D[t],"").slice(0,e)}let D=[];for(let e=0;e<256;++e)D[e]=(e+256).toString(16).slice(1);function j(e){return!!E(e)&&"span"===v(e)&&e.classList.contains("NormalTextRun")}function R(e){return!!E(e)&&"span"===v(e)&&e.classList.contains("TextRun")&&!e.classList.contains("NormalTextRun")&&!e.classList.contains("EOP")}function N(e){let t=e.getAttribute("style")??"";return e.classList.contains("MacChromeBold")||/font-weight\s*:\s*bold/.test(t)}function $(e){let t=e.getAttribute("style")??"";return/font-style\s*:\s*italic/.test(t)}function M(e){let t=e.getAttribute("style")??"";return e.classList.contains("Underlined")||/text-decoration\s*:\s*underline/.test(t)}function F(e){let t=e.getAttribute("style")??"";return e.classList.contains("Strikethrough")||/text-decoration\s*:\s*line-through/.test(t)}function P(e){return N(e)||$(e)||M(e)||F(e)}function L(e){let t=e.getAttribute("data-ccp-parastyle");if(t)return t;if("span"===v(e)&&e.classList.contains("TextRun")){let t=Array.from(e.querySelectorAll(".NormalTextRun"));if(t.length>0){let e=t[0].getAttribute("data-ccp-parastyle");if(e&&t.every(t=>t.getAttribute("data-ccp-parastyle")===e))return e}}}let z={BOOLEAN_TYPE:3,ORDERED_NODE_ITERATOR_TYPE:5,UNORDERED_NODE_SNAPSHOT_TYPE:6},q=["/html/text()","/html/head/text()","/html/body/text()","/html/body/ul/text()","/html/body/ol/text()","//comment()","//style","//xml","//script","//meta","//link"],U=["body","table","tbody","thead","tfoot","tr","ul","ol"],B=/(class="?Mso|style=(?:"|')[^"]*?\bmso-|w:WordDocument|<o:\w+>|<\/font>)/,V=["//o:p","//span[@style='mso-list:Ignore']","//span[@style='mso-list: Ignore']"],H=["//p[@class='MsoTocHeading']","//p[@class='MsoTitle']","//p[@class='MsoToaHeading']","//p[@class='MsoSubtitle']","//span[@class='MsoSubtleEmphasis']","//span[@class='MsoIntenseEmphasis']"],G={MsoTocHeading:["h3"],MsoTitle:["h1"],MsoToaHeading:["h2"],MsoSubtitle:["h5"],MsoSubtleEmphasis:["span","em"],MsoIntenseEmphasis:["span","em","strong"]},W=[function(e,t){return function e(t){if(t.nodeType!==z.BOOLEAN_TYPE||l.includes(t.parentElement?.tagName.toLowerCase()||""))for(let r=t.childNodes.length-1;r>=0;r--)e(t.childNodes[r]);else{let e=t.textContent?.replace(/\s\s+/g," ").replace(/[\r\n]+/g," ")||"",r=t.parentElement?.tagName.toLowerCase();r&&U.includes(r)&&""===e.trim()?t.parentNode?.removeChild(t):t.textContent=e}}(t.body),t},function(e,t){if(e.match(/<!-- notionvc:.*?-->/g)){let e=t.evaluate("//*",t,null,z.UNORDERED_NODE_SNAPSHOT_TYPE,null);for(let t=e.snapshotLength-1;t>=0;t--)e.snapshotItem(t)?.setAttribute("data-is-notion","true")}return t},function(e,t){if(!B.test(e))return t;let r=t.evaluate(V.join("|"),t,e=>"o"===e?"urn:schemas-microsoft-com:office:office":null,z.UNORDERED_NODE_SNAPSHOT_TYPE,null);for(let e=r.snapshotLength-1;e>=0;e--){let t=r.snapshotItem(e);t?.parentNode&&t.parentNode.removeChild(t)}let n=t.evaluate(H.join("|"),t,null,z.UNORDERED_NODE_SNAPSHOT_TYPE,null);for(let e=n.snapshotLength-1;e>=0;e--){let r=n.snapshotItem(e),i=G[r.className],s=t.createTextNode(r.textContent||"");if(!i)continue;let a=t.createElement(i[0]),o=a,l=a;i.slice(1).forEach(e=>{l=t.createElement(e),o.appendChild(l),o=l}),l.appendChild(s),r?.parentNode?.replaceChild(a,r)}return t},function(e,t){if(!(/class="(?:TextRun|NormalTextRun)[^"]*SCXW\d+[^"]*BCX\d+/.test(e)||/class="EOP[^"]*SCXW\d+/.test(e)))return t;for(let e of Array.from(t.querySelectorAll('p.Paragraph[role="heading"]'))){let r=e.getAttribute("aria-level");if(r){let n=t.createElement("word-online-block");n.setAttribute("data-parastyle",`heading ${r}`);let i=e.parentNode;if(i){for(i.insertBefore(n,e);e.firstChild;)n.appendChild(e.firstChild);i.removeChild(e)}}}let r=t.body.firstChild;for(;r;){let e=r.nextSibling;if(!E(r)||!v(r)?.includes("span")){r=e;continue}let n=L(r);if(!n){r=e;continue}let i=[r],s=e;for(;s&&!(!E(s)||L(s)!==n);)i.push(s),s=s.nextSibling;let a=t.createElement("word-online-block");for(let e of(a.setAttribute("data-parastyle",n),t.body.insertBefore(a,r),i))a.appendChild(e);r=s}for(let e of Array.from(t.body.querySelectorAll("span")).filter(R))for(let r of Array.from(e.childNodes).filter(j)){let n=!0;for(;n;){let i=Array.from(r.childNodes),s=i.findIndex(e=>E(e)&&"span"===v(e)&&""===e.textContent.trim());if(-1===s){n=!1;break}let a=i.at(s);if(!a){n=!1;break}let o=a.textContent?.replace(/\u00a0/g," ")??"",l=!i.slice(0,s).some(e=>3===e.nodeType);if(r.removeChild(a),l){let e=Array.from(r.childNodes).find(e=>3===e.nodeType);if(e)e.textContent=o+(e.textContent||"");else{let e=t.createTextNode(o);r.insertBefore(e,r.firstChild)}}else{let n=e.nextSibling,i=P(e);if(n&&E(n)&&R(n)){let e=P(n);if(i&&!e){let e=Array.from(n.childNodes).find(j);if(e&&E(e)){let r=e.firstChild;if(r&&3===r.nodeType)r.textContent=o+(r.textContent??"");else{let r=t.createTextNode(o);e.insertBefore(r,e.firstChild)}}}else{let e=Array.from(r.childNodes).find(e=>3===e.nodeType);if(e)e.textContent=(e.textContent??"")+o;else{let e=t.createTextNode(o);r.appendChild(e)}}}else{let e=Array.from(r.childNodes).find(e=>3===e.nodeType);if(e)e.textContent=(e.textContent??"")+o;else{let e=t.createTextNode(o);r.appendChild(e)}}}}}return t},function(e,t){let r=t.evaluate('//*[@id and contains(@id, "docs-internal-guid")]',t,null,z.ORDERED_NODE_ITERATOR_TYPE,null).iterateNext();if(r){let e="b"===v(r);e||(r=t.body);let n=t.evaluate("//*",t,null,z.UNORDERED_NODE_SNAPSHOT_TYPE,null);for(let i=n.snapshotLength-1;i>=0;i--){let s=n.snapshotItem(i);s?.setAttribute("data-is-google-docs","true"),s?.parentElement!==r&&(e||s.parentElement!==t.body)||(s?.setAttribute("data-is-root-node","true"),v(s)),"li"===v(s)&&s.firstChild&&"img"===v(s?.firstChild)&&s.removeChild(s.firstChild)}return e&&t.body.firstElementChild?.replaceWith(...Array.from(r.childNodes)),t}return t},function(e,t){let r=t.evaluate("/html/body/text()",t,null,z.UNORDERED_NODE_SNAPSHOT_TYPE,null);for(let e=r.snapshotLength-1;e>=0;e--){let n=r.snapshotItem(e),i=n.textContent||"";if(i.replace(/[^\S\n]+$/g,"")){let e=t.createElement("span");e.appendChild(t.createTextNode(i)),n.parentNode?.replaceChild(e,n)}else n.parentNode?.removeChild(n)}
11let n=t.evaluate(q.join("|"),t,null,z.UNORDERED_NODE_SNAPSHOT_TYPE,null);for(let e=n.snapshotLength-1;e>=0;e--){let t=n.snapshotItem(e);t&&t.parentNode?.removeChild(t)}return t}];function Z(e,t){let r={"heading 1":"h1","heading 2":"h2","heading 3":"h3","heading 4":"h4","heading 5":"h5","heading 6":"h6",Quote:"blockquote"}[t]??"normal";return e.styles.find(e=>e.name===r)?.name}let Y=Object.keys(p);function K(e){return E(e)&&!!e.getAttribute("data-is-google-docs")}let J={...h,...m},X={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"!==v(e.parentNode)}(e)?{...d,marks:[],text:(e.textContent??"").replace(/\s\s+/g," ")}:void 0};function Q(e,t){return!(!(0,i.zS)(e,t)||t.children.some(t=>!(0,i.bl)(e,t)||""!==t.text.trim()))}function ee(e){return["\xa0"," "].includes(e)}class et{keyGenerator;schema;rules;parseHtml;whitespaceMode;_markDefs=[];constructor(e,t={}){let{rules:r=[],unstable_whitespaceOnPasteMode:n="preserve"}=t,i=function(e,t){return[{deserialize(e,t){let r=v(e);if(("p"===r||m[r||""])&&function(e){if(!E(e))return!1;if(e.className&&("MsoListParagraphCxSpFirst"===e.className||"MsoListParagraphCxSpMiddle"===e.className||"MsoListParagraphCxSpLast"===e.className))return!0;let t=e.getAttribute("style");return!!(t&&/mso-list:\s*l\d+\s+level\d+\s+lfo\d+/.test(t))}(e)){let r=function(e){let t=v(e);if(t&&m[t])return m[t]?.style}(e);return{...c,listItem:function(e){let t=E(e)&&e.getAttribute("style");if(t&&t.match(/lfo\d+/))return t.match("lfo1")?"number":"bullet"}(e),level:function(e){let t=E(e)&&e.getAttribute("style");if(!t)return;let r=t.match(/level\d+/);if(!r)return;let[n]=r[0].match(/\d/)||[];return(n?Number.parseInt(n,10):1)||1}(e),style:r||u,children:t(e.childNodes)}}}},{deserialize(r){if(!E(r)||"img"!==v(r))return;let n=r.className,i="";if("string"==typeof n?i=n:n&&"object"==typeof n&&(i=n.baseVal||""),!i.includes("WACImage"))return;let s=r.getAttribute("src")??void 0,a=r.getAttribute("alt")??void 0,o=Object.fromEntries(Array.from(r.attributes).map(e=>[e.name,e.value])),l=t.matchers?.image?.({context:{schema:e,keyGenerator:t.keyGenerator??I},props:{...o,...s?{src:s}:{},...a?{alt:a}:{}}});if(l)return{_type:"__block",block:l}}},{deserialize(r){if(!E(r))return;let n=r.className,i="";if("string"==typeof n?i=n:n&&"object"==typeof n&&(i=n.baseVal||""),!i.includes("WACImageContainer"))return;let s=r.querySelector("img");if(!s)return;let a=s.getAttribute("src")??void 0,o=s.getAttribute("alt")??void 0,l=Object.fromEntries(Array.from(s.attributes).map(e=>[e.name,e.value])),u=null!==r.closest("li");if(null===r.closest("p")||u){let r=t.matchers?.inlineImage?.({context:{schema:e,keyGenerator:t.keyGenerator??I},props:{...l,...a?{src:a}:{},...o?{alt:o}:{}}});if(r)return r}let c=t.matchers?.image?.({context:{schema:e,keyGenerator:t.keyGenerator??I},props:{...l,...a?{src:a}:{},...o?{alt:o}:{}}});if(c)return{_type:"__block",block:c}}},{deserialize(t,r){if(!E(t)||"li"!==v(t))return;let n=t.getAttribute("data-aria-level");if(!n)return;let i="ol"===v(t.parentNode)?"number":"bullet",s=t.childNodes,a="normal";if(1===t.childNodes.length&&t.firstChild&&E(t.firstChild)){let r=v(t.firstChild);if(r&&(h[r]||m[r]||"word-online-block"===r)){if("word-online-block"===r){let r=t.firstChild.getAttribute("data-parastyle"),n=r?Z(e,r):void 0;n&&(a=n)}s=t.firstChild.childNodes}}let o=r(s),l=Array.isArray(o)?o:[o].filter(Boolean);for(;l.length>0;){let e=l[l.length-1];if(e&&"object"==typeof e&&"text"in e){let t=e.text.trimEnd();if(""===t)l=l.slice(0,-1);else if(t!==e.text){e.text=t;break}else break}else break}return{_type:e.block.name,children:l,markDefs:[],style:a,listItem:i,level:parseInt(n,10)}}},{deserialize(t,r){if(!E(t))return;let n=t.getAttribute("data-parastyle"),i=n?Z(e,n):void 0;if(!i)return;let s=r(t.childNodes);return{_type:e.block.name,style:i,markDefs:[],children:Array.isArray(s)?s:s?[s]:[]}}},{deserialize(e){if(E(e)&&"span"===v(e)&&e.classList.contains("TextRun")&&!e.classList.contains("EOP")){
11if(!E(e)||!e.textContent)return;let t=Array.from(e.childNodes).filter(e=>j(e)||!!E(e)&&"span"===v(e)&&e.classList.contains("FindHit")).map(e=>E(e)?e.textContent??"":"").join("");if(!t)return;let r={...d,marks:[],text:t};if(N(e)&&r.marks.push("strong"),!$(e)||function(e){let t=e;for(;t;){if(E(t)&&"word-online-block"===v(t)&&/^heading \d$/.test(t.getAttribute("data-parastyle")??""))return!0;t=t.parentNode}return!1}(e)||function(e){let t=e;for(;t;){if(E(t)&&"word-online-block"===v(t)&&"Quote"===t.getAttribute("data-parastyle"))return!0;t=t.parentNode}return!1}(e)||r.marks.push("em"),M(e))if(E(e)&&e.parentElement&&"a"===v(e.parentElement)){let t=e.parentElement;if(t){let e=t.previousSibling,n=t.nextSibling,i=e&&E(e)&&M(e),s=n&&E(n)&&M(n);(i||s)&&r.marks.push("underline")}}else r.marks.push("underline");return F(e)&&r.marks.push("strike-through"),r}}},{deserialize(e){var t;if(E(e)&&"span"===v(e)&&E(t=e)&&t.getAttribute("data-is-notion")){let t={...d,marks:[],text:e.textContent};return function(e){let t=E(e)&&e.getAttribute("style");return/font-weight:700/.test(t||"")||/font-weight:600/.test(t||"")}(e)&&t.marks.push("strong"),function(e){let t=E(e)&&e.getAttribute("style");return/text-decoration:underline/.test(t||"")}(e)&&t.marks.push("underline"),function(e){let t=E(e)&&e.getAttribute("style");return/font-style:italic/.test(t||"")}(e)&&t.marks.push("em"),t}}},{deserialize(e,t){if(E(e)&&"span"===v(e)&&K(e)){if(!e.textContent)return e.previousSibling||e.nextSibling||e.setAttribute("data-lonely-child","true"),t(e.childNodes);let r={...d,marks:[],text:e.textContent};return function(e){let t=E(e)&&e.getAttribute("style");return/font-weight\s*:\s*700/.test(t||"")}(e)&&r.marks.push("strong"),function(e){if(!E(e)||"a"===v(e.parentNode))return!1;let t=E(e)&&e.getAttribute("style");return/text-decoration\s*:\s*underline/.test(t||"")}(e)&&r.marks.push("underline"),function(e){let t=E(e)&&e.getAttribute("style");return/text-decoration\s*:\s*(?:.*line-through.*;)/.test(t||"")}(e)&&r.marks.push("strike-through"),function(e){let t=E(e)&&e.getAttribute("style");return/font-style\s*:\s*italic/.test(t||"")}(e)&&r.marks.push("em"),r}}},{deserialize(t,r){if("li"===v(t)&&K(t))return{...c,listItem:function(e){let t=v(e.parentNode);if(!(t&&!Y.includes(t)))return"ul"===v(e.parentNode)?"bullet":"number"}(t),level:function(e){let t=0;if("li"===v(e)){let r=e.parentNode;for(;r;){let e=v(r);e&&Y.includes(e)&&t++,r=r.parentNode}}else t=1;return t}(t),style:function(e,t){let r=v(t.firstChild),n=r&&J[r];return n&&e.styles.some(e=>e.name===n.style)?n.style:u}(e,t),children:r(t.firstChild?.childNodes||[])}}},{deserialize(e){var t;if("br"===v(e)&&K(e)&&E(e)&&e.classList.contains("apple-interchange-newline")||"br"===v(e)&&K(e)&&E(e)&&e?.parentNode?.textContent===""||"br"===v(e)&&K(e)&&E(e)&&E(t=e)&&t.getAttribute("data-is-root-node"))return{...d,text:""}}},X,{deserialize(t){if("pre"!==v(t))return;let r=e.styles.some(e=>"code"===e.name);return{_type:"block",style:"normal",markDefs:[],children:[{...d,marks:r?["code"]:[],text:t.textContent||""}]}}},{deserialize(e,t){if("blockquote"!==v(e))return;let r={...h,...m};delete r.blockquote;let n=Object.keys(r),i=[];return e.childNodes.forEach((t,r)=>{if(e.ownerDocument)if(1===t.nodeType&&n.includes(t.localName.toLowerCase())){let n=e.ownerDocument.createElement("span"),s=i[i.length-1];s&&3===s.nodeType&&s.textContent?.trim()&&n.appendChild(e.ownerDocument.createTextNode("\r")),t.childNodes.forEach(e=>{n.appendChild(e.cloneNode(!0))}),r!==e.childNodes.length&&n.appendChild(e.ownerDocument.createTextNode("\r")),i.push(n)}else i.push(t)}),{_type:"block",style:"blockquote",markDefs:[],children:t(i)}}},{deserialize(t,r){let n={...h,...m},i=v(t),s=i?n[i]:void 0;if(!s)return;if(t.parentNode&&"li"===v(t.parentNode))return r(t.childNodes);let a=s.style;return e.styles.some(e=>e.name===a)||(s=c),{...s,children:r(t.childNodes)}}},{deserialize(e,t){let r=v(e);if(!(!r||!(r in f)))return t(e.childNodes)}},{deserialize(e,t){if("div"===v(e))return t(e.childNodes)}},{deserialize(e,t){let r=v(e);if(!(!r||!(r in p)))return t(e.childNodes)}},{deserialize(e){if("br"===v(e))return{...d,text:`
12`}}},{deserialize(t,r,n){let i=v(t),s=i?b[i]:void 0,a=v(t.parentNode)||"";if(!s||!t.parentNode||!p[a])return;let o="ul"===a&&e.lists.some(e=>"bullet"===e.name)?"bullet":"ol"===a&&e.lists.some(e=>"number"===e.name)?"number":void 0;return o?(s.listItem=o,{...s,children:r(t.childNodes)}):n({_type:"block",children:r(t.childNodes)})}},{deserialize(t,r){let n=y[v(t)||""];if(!(!n||!e.decorators.some(e=>
12e.name===n)))return{_type:"__decorator",name:n,children:r(t.childNodes)}}},{deserialize(r,n){if("a"!==v(r))return;let i=e.annotations.some(e=>"link"===e.name),s=E(r)&&r.getAttribute("href");return s?i?{_type:"__annotation",markDef:{_key:t.keyGenerator?t.keyGenerator():I(),_type:"link",href:s},children:n(r.childNodes)}:r.appendChild(r.ownerDocument.createTextNode(` (${s})`))&&n(r.childNodes):n(r.childNodes)}},{deserialize(e,t){if(E(e)&&("td"===v(e)||"th"===v(e)))return{...c,children:t(e.childNodes)}}},{deserialize(r){if(E(r)&&"img"===v(r)){let n=r.getAttribute("src")??void 0,i=r.getAttribute("alt")??void 0,s=Object.fromEntries(Array.from(r.attributes).map(e=>[e.name,e.value])),a=r?.parentElement?.parentElement?.getAttribute("data-lonely-child"),o=null!==r.closest("li");if(a&&!o){let r=t.matchers?.image?.({context:{schema:e,keyGenerator:t.keyGenerator??I},props:{...s,...n?{src:n}:{},...i?{alt:i}:{}}});if(r)return{_type:"__block",block:r}}let l=t.matchers?.inlineImage?.({context:{schema:e,keyGenerator:t.keyGenerator??I},props:{...s,...n?{src:n}:{},...i?{alt:i}:{}}});if(l)return l;let u=t.matchers?.image?.({context:{schema:e,keyGenerator:t.keyGenerator??I},props:{...s,...n?{src:n}:{},...i?{alt:i}:{}}});if(u)return{_type:"__block",block:u}}}}]}(e,{keyGenerator:t.keyGenerator,matchers:t.matchers});this.schema=e,this.keyGenerator=t.keyGenerator??I,this.rules=[...r,...i],this.whitespaceMode=n;let s=t.parseHtml||function(){if("undefined"===a(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.parseHtml=e=>{let t=function(e){var t,r;return e&&JSON.parse({cleaned:(t=JSON.stringify(e)).replace(T,""),encoded:(null==(r=t.match(T))?void 0:r[0])||""}.cleaned)}(e),r=s(t);for(let e of W)e(t,r);return r.body}}deserialize=e=>{this._markDefs=[];let{parseHtml:t}=this,r=Array.from(t(e).childNodes),n=function(e,t,r){let n=[],s=0;for(let a of r){let r=(0,i.zS)(e,a)?function(e){let t=0;for(let r of e.children){if(!_(r)){t++;continue}let n=function(e,t){let r=e.children[t+1];return r&&"span"===r._type?r:null}(e,t),i=function(e,t){let r=e.children[t-1];return r&&"span"===r._type?r:null}(e,t);0===t&&(r.text=r.text.replace(/^[^\S\n]+/g,"")),t===e.children.length-1&&(r.text=r.text.replace(/[^\S\n]+$/g,"")),/\s/.test(r.text.slice(Math.max(0,r.text.length-1)))&&n&&_(n)&&/\s/.test(n.text.slice(0,1))&&(r.text=r.text.replace(/[^\S\n]+$/g,"")),/\s/.test(r.text.slice(0,1))&&i&&_(i)&&/\s/.test(i.text.slice(Math.max(0,i.text.length-1)))&&(r.text=r.text.replace(/^[^\S\n]+/g,"")),r.text||e.children.splice(t,1),i&&Array.isArray(i.marks)&&o(i.marks,r.marks)&&ee(r.text)?(i.text+=" ",e.children.splice(t,1)):n&&Array.isArray(n.marks)&&o(n.marks,r.marks)&&ee(r.text)&&(n.text=` ${n.text}`,e.children.splice(t,1)),t++}return e}(a):a;if("preserve"===t){n.push(r);continue}if("remove"===t){if(Q(e,r))continue;n.push(r);continue}if("normalize"===t){if(Q(e,r)){1==++s&&n.push(r);continue}n.push(r),s=0}}return n}({schema:this.schema},this.whitespaceMode,function e(t,r){return r.flatMap(r=>{var n,s,a,o;if("__block"===(n=r)._type&&(a=s=n.block)&&("object"==typeof a||"function"==typeof a)&&"string"==typeof s._type)return e(t,[r.block]);if((0,i.zS)(t,r)){let n=r.children.some(e=>t.schema.blockObjects.some(t=>t.name===e._type)),s=r.children.some(e=>"__block"===e._type||"block"===e._type);if(n||s){let n=(o=t,r.children.reduce((e,t)=>{let r=o.schema.inlineObjects.some(e=>e.name===t._type),n=o.schema.blockObjects.some(e=>e.name===t._type),s=e.pop();return(0,i.bl)(o,t)||r||!n?"__block"===t._type?[...e,...s?[s]:[],{type:"block object",block:t.block}]:"block"===t._type?[...e,...s?[s]:[],{type:"block",block:t}]:s&&"children"===s.type?[...e,{type:"children",children:[...s.children,t]}]:[...e,...s?[s]:[],{type:"children",children:[t]}]:[...e,...s?[s]:[],{type:"block object",block:t}]},[]));return 1===n.length&&"children"===n[0].type&&function e(t,r){if(t===r||Object.is(t,r))return!0;if("object"!=typeof t||"object"!=typeof r||null===t||null===r||Object.getPrototypeOf(t)!==Object.getPrototypeOf(r))return!1;if(Array.isArray(t)){var n=t,i=r;if(n.length!==i.length)return!1;for(let[t,r]of n.entries())if(!e(r,i[t]))return!1;return!0}if(t instanceof Map){var s=t,a=r;if(s.size!==a.size)return!1;for(let[t,r]of s.entries())if(!a.has(t)||!e(r,a.get(t)))return!1;return!0}if(t instanceof Set){var o=t,l=r;if(o.size!==l.size)return!1;let n=[...l];for(let t of o){let r=!1;for(let[i,s]of n.entries())if(e(t,s)){r=!0,n.splice(i,1);break}if(!r)return!1}return!0}if(t instanceof Date)return t.getTime()===r.getTime();if(t instanceof RegExp)return t.toString()===r.toString();if(Object.keys(t).length!==Object.keys(r).length)return!1;for(let[n,i]of Object.entries(t))if(!(n in r)||!e(i,r[n]))return!1;return!0}(n[0].children,r.children)?[r]:n.flatMap(n=>"block object"===n.type?[n.block]:"block"===n.type?e(t,[n.block]):n.children.length>0?n.children.every(e=>(0,i.bl)(t,e)&&""===e.text.trim())?[]:e(t,[{...r,children:n.children}]):[])}}return[r]})}
12({schema:this.schema},function(e,t){return t.reduce((t,r,n,s)=>{if("block"===r._type)return t.push(r),t;if("__block"===r._type)return t.push(r.block),t;let a=t[t.length-1];if(n>0&&!(0,i.zS)({schema:e},s[n-1])&&(0,i.zS)({schema:e},a))return a.children.push(r),t;let o={...c,children:[r]};return t.push(o),t},[])}(this.schema,this.deserializeElements(r))));return this._markDefs.length>0&&n.filter(e=>(0,i.zS)({schema:this.schema},e)).forEach(e=>{e.markDefs=e.markDefs||[],e.markDefs=e.markDefs.concat(this._markDefs.filter(t=>e.children.flatMap(e=>e.marks||[]).includes(t._key)))}),n.map(e=>("block"===e._type&&(e._type=this.schema.block.name),e))};deserializeElements=(e=[])=>{let t=[];return e.forEach(e=>{t=t.concat(this.deserializeElement(e))}),t};deserializeElement=e=>{let t,r=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,n=e=>({_type:"__block",block:e});for(let i=0;i<this.rules.length;i++){let s=this.rules[i];if(!s.deserialize)continue;let o=s.deserialize(e,r,n),l=a(o);if("array"!==l&&"object"!==l&&"null"!==l&&"undefined"!==l)throw Error(`A rule returned an invalid deserialized representation: "${t}".`);if(void 0!==o){if(null===o)throw Error("Deserializer rule returned `null`");if(t=Array.isArray(o)?o:x(o)?this.deserializeDecorator(o):k(o)?this.deserializeAnnotation(o):o,o&&!Array.isArray(o)&&w(o)&&"listItem"in o){let t=e.parentNode?.parentNode;for(;t&&"li"===v(t);)t=t.parentNode?.parentNode,o.level=o.level?o.level+1:1}o&&!Array.isArray(o)&&w(o)&&"blockquote"===o.style&&o.children.forEach((e,t)=>{_(e)&&"\r"===e.text&&(e.text=`
13`,(0===t||t===o.children.length-1)&&o.children.splice(t,1))});break}}return t||r(e.childNodes)||[]};deserializeDecorator=e=>{let{name:t}=e,r=e=>x(e)?this.deserializeDecorator(e):(_(e)?(e.marks=e.marks||[],e.text.trim()&&e.marks.unshift(t)):"children"in e&&Array.isArray(e.children)&&(e.children=e.children.map(r)),e);return e.children.reduce((e,t)=>{let n=r(t);return Array.isArray(n)?e.concat(n):(e.push(n),e)},[])};deserializeAnnotation=e=>{let{markDef:t}=e;this._markDefs.push(t);let r=e=>k(e)?this.deserializeAnnotation(e):(_(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(r)),e);return e.children.reduce((e,t)=>{let n=r(t);return Array.isArray(n)?e.concat(n):(e.push(n),e)},[])}}function er(e,t={}){let r={block:{name:t.blockTypeName||"block"},span:{name:"span"},styles:[],lists:[],decorators:[],annotations:[],blockObjects:[],inlineObjects:[]};if(e._type!==(t.blockTypeName||"block"))return"_key"in e?e:{...e,_key:t.keyGenerator?t.keyGenerator():I()};let n={_key:t.keyGenerator?t.keyGenerator():I(),children:[],markDefs:[],...e},s=n.children[n.children.length-1];if(!s)return n.children=[{_type:"span",_key:t.keyGenerator?t.keyGenerator():I(),text:"",marks:[]}],n;let a=[],l=!!(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.bl)({schema:r},t)&&(0,i.bl)({schema:r},a)&&o(a.marks,t.marks)?s&&s===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():I(),(0,i.bl)({schema:r},e)&&(e.marks?l&&(e.marks=e.marks.filter(e=>{let t=l.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 en(e,t,r={}){return new et(t.hasOwnProperty("jsonType")?(0,n.Wz)(t):t,r).deserialize(e).map(e=>er(e,{keyGenerator:r.keyGenerator}))}},20367:(e,t,r)=>{var n=r(6261);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}},20470:(e,t,r)=>{var n=r(91266),i=r(63943),s=r(86489),a=r(42725),o=r(20232),l=r(26281),u=Object.prototype.hasOwnProperty;function c(e){if(o(e)&&!a(e)&&!(e instanceof n)){if(e instanceof i)return e;if(u.call(e,"__wrapped__"))return l(e)}return new i(e)}c.prototype=s.prototype,c.prototype.constructor=c,e.exports=c},20481:(e,t,r)=>{var n=r(69847),i=r(72375),s=r(61459);e.exports=function(e){return n(e,s,i)}},20559:(e,t,r)=>{"use strict";
13let n=r(891);e.exports=(e,t,r)=>n(e,t,">",r)},20610:(e,t,r)=>{"use strict";r.d(t,{$:()=>u});var n=r(13220),i=r(84841),s=r(47396),a=r(61297),o=r(67039);function l(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=(0,a.lI)(e);return(0,i.N)(function(t,i){(0,s.K)()((0,o.H)((0,n.fX)([t],(0,n.zs)(e)),r)).subscribe(i)})}function u(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return l.apply(void 0,(0,n.fX)([],(0,n.zs)(e)))}},20772:(e,t,r)=>{"use strict";r.d(t,{V:()=>s});var n=r(13177),i=r(30360);function s(e,t,r){let[s,a]=(0,n.x)(null==r?void 0:r.in,e,t),o=(0,i.z)(s,a),l=Math.abs(function(e,t,r){let[i,s]=(0,n.x)(void 0,e,t);return i.getFullYear()-s.getFullYear()}(s,a));s.setFullYear(1584),a.setFullYear(1584);let u=(0,i.z)(s,a)===-o,c=o*(l-u);return 0===c?0:c}},20906:(e,t,r)=>{"use strict";function n(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function i(e){return n(e)&&"string"==typeof e._ref}function s(e){return n(e)&&i(e.asset)&&e.asset._ref.startsWith("image-")}function a(e){return n(e)&&"string"==typeof e._ref&&"string"==typeof e._dataset&&"string"==typeof e._projectId}function o(e){return n(e)&&"string"==typeof e._id&&"string"==typeof e._type}function l(e){return n(e)&&"string"==typeof e._type}function u(e){return n(e)&&"string"==typeof e._key}function c(e){return!!n(e)&&"string"==typeof e._ref&&3===e._ref.split(":").length}function d(e){return"error"===e.level}function h(e){return"warning"===e.level}function f(e){return"info"===e.level}r.d(t,{$d:()=>E,AF:()=>h,A_:()=>i,Ah:()=>W,F0:()=>function e(t){return x(t)&&("image"===t.name||e(t.type))},F3:()=>j,GC:()=>H,GX:()=>A,Gm:()=>f,I0:()=>a,IB:()=>V,JR:()=>k,Kk:()=>l,L4:()=>_,ME:()=>o,MI:()=>U,P3:()=>function e(t){return x(t)&&("crossDatasetReference"===t.name||e(t.type))},Pb:()=>F,Q9:()=>c,U8:()=>q,Uw:()=>d,XK:()=>D,Z9:()=>b,bn:()=>w,ci:()=>Z,dO:()=>B,do:()=>function e(t){return x(t)&&("reference"===t.name||e(t.type))},fq:()=>N,gw:()=>C,m5:()=>O,o8:()=>u,oV:()=>T,pZ:()=>I,tA:()=>y,u5:()=>G,uC:()=>$,wD:()=>function e(t){return x(t)&&("file"===t.name||e(t.type))},wr:()=>g,wu:()=>s,zR:()=>S,zZ:()=>R});let p=/_key\s*==\s*['"](.*)['"]/,m=/^\d*:\d*$/;function g(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 b(e){if("string"==typeof e&&m.test(e))return!0;if(!Array.isArray(e)||2!==e.length)return!1;let[t,r]=e;return("number"==typeof t||""===t)&&("number"==typeof r||""===r)}function v(e){return!!e&&("object"==typeof e||"function"==typeof e)}function _(e){return v(e)&&"string"==typeof e._type&&Array.isArray(e.children)&&e.children.every(e=>v(e))&&(!("markDefs"in e)||Array.isArray(e.markDefs)&&e.markDefs.every(e=>v(e)))&&(!("style"in e)||"string"==typeof e.style)}function w(e){return v(e)&&"span"===e._type&&"string"==typeof e.text&&(!("marks"in e)||Array.isArray(e.marks)&&e.marks.every(e=>"string"==typeof e))}function x(e){return!!e&&("object"==typeof e||"function"==typeof e)}function k(e){if(!E(e))return!1;let t=e;for(;t;){if("document"===t.name)return!0;t=t.type}return!1}function E(e){return!!x(e)&&"object"===e.jsonType}function S(e){return!!x(e)&&"array"===e.jsonType}function A(e){return S(e)&&e.of.some(e=>F(e))}function O(e){return S(e)&&e.of.every(e=>E(e))}function C(e){return S(e)&&e.of.every(e=>R(e))}function T(e){return!!x(e)&&"boolean"===e.jsonType}function I(e){return!!x(e)&&"string"===e.jsonType}function D(e){return!!I(e)&&"datetime"===e.name}function j(e){return!!x(e)&&"number"===e.jsonType}function R(e){return T(e)||I(e)||j(e)}function N(e){return!!x(e)&&"u">typeof e.deprecated}function $(e){return"object"==typeof e&&null!==e&&"title"in e&&"value"in e}function M(e){return!!x(e)&&Array.isArray(e.annotations)&&Array.isArray(e.decorators)}function F(e){if(!x(e)||!Array.isArray(e.fields))return!1;let t=e.fields.find(z),r=e.fields.find(P),n=e.fields.find(L);return z(t)&&P(r)&&L(n)}function P(e){return!!x(e)&&"style"===e.name&&x(e.type)&&"string"===e.type.jsonType}function L(e){return!!x(e)&&"listItem"===e.name&&x(e.type)&&"string"===e.type.jsonType}function z(e){return!!x(e)&&"children"===e.name&&!!S(e.type)&&e.type.of.some(M)}function q(e,t){return e}function U(e,t){return e}function B(e,t){return e}let V=["groqLegacy","groq2024"];function H(e){return V.includes(e)}function G(e){return n(e)&&"string"==typeof e.current}function W(e){return"error"===e.level}function Z(e){return"warning"===e.level}},20937:(e,t,r)=>{var n=r(93041);e.exports=function(e){return e&&e.length?n(e):[]}},21004:(e,t,r)=>{"use strict";r.d(t,{XB:()=>rh,xk:()=>tW});var n,i,s,a,o,l,u,c={};r.r(c),r.d(c,{decode:()=>v,encode:()=>x,format:()=>k,parse:()=>N});var d={};r.r(d),r.d(d,{Any:()=>F,Cc:()=>P,Cf:()=>L,P:()=>$,S:()=>M,Z:()=>z});var h={};r.r(h),r.d(h,{arrayReplaceAt:()=>et,asciiTrim:()=>ek,assign:()=>ee,escapeHtml:()=>ef,escapeRE:()=>em,fromCodePoint:()=>en,has:()=>Q,isMdAsciiPunct:()=>
13e_,isPunctChar:()=>eb,isPunctCharCode:()=>ev,isSpace:()=>eg,isString:()=>J,isValidEntityCode:()=>er,isWhiteSpace:()=>ey,lib:()=>eE,normalizeReference:()=>ew,unescapeAll:()=>el,unescapeMd:()=>eo});var f={};r.r(f),r.d(f,{parseLinkDestination:()=>eA,parseLinkLabel:()=>eS,parseLinkTitle:()=>eO});var p=r(98833),m=r(30044);let g=(e,{alertNames:t=["tip","warning","caution","important","note"],deep:r=!1,openRender:n,closeRender:i,titleRender:s}={})=>{let a;e.block.ruler.before("blockquote","alert",(a=new Set(t.map(e=>e.toLowerCase())),(e,t,n,i)=>{if(e.sCount[t]-e.blkIndent>=4||0!==e.level&&!r)return!1;let s=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(62!==e.src.charCodeAt(s))return!1;let l=s+1,u=e.sCount[t]+1,c=!1;32===e.src.charCodeAt(l)?(l++,u++):9===e.src.charCodeAt(l)&&((e.bsCount[t]+u)%4==3?(l++,u++):c=!0);let d=u;for(;l<o;){let r=e.src.charCodeAt(l);if(9===r)d+=4-(d+e.bsCount[t]+ +!!c)%4;else if(32===r)d++;else break;l++}if(d-u>=4||o-l<4||91!==e.src.charCodeAt(l)||33!==e.src.charCodeAt(l+1))return!1;l+=2;let h="";for(;l<o;){let t=e.src.charAt(l);if("]"===t)break;h+=t,l++}if(l===o)return!1;let f=h.toLowerCase();if(!a.has(f)||(l=e.skipSpaces(l+1))<o)return!1;let p=[],m=[],g=[],y=[],b=e.lineMax,v=e.parentType,_=[e.md.block.ruler.getRules("blockquote"),e.md.block.ruler.getRules("alert")].flat();e.parentType="alert";let w=t,x=!1,k=!1;for(;w<n;w++){let r=e.sCount[w]<e.blkIndent;if((s=e.bMarks[w]+e.tShift[w])>=(o=e.eMarks[w]))break;if(62===e.src.charCodeAt(s++)&&!r){let r=!1;for(u=e.sCount[w]+1,c=!1,32===e.src.charCodeAt(s)?(s++,u++,r=!0):9===e.src.charCodeAt(s)&&(r=!0,(e.bsCount[w]+u)%4==3?(s++,u++):c=!0),d=u,i||(p.push(e.bMarks[w]),e.bMarks[w]=s);s<o;){let t=e.src.charCodeAt(s);if(9===t)d+=4-(d+e.bsCount[w]+ +!!c)%4;else if(32===t)d++;else break;s++}x=s>=o,w>t&&!x&&(k=!0),i||(m.push(e.bsCount[w]),e.bsCount[w]=e.sCount[w]+1+ +!!r,g.push(e.sCount[w]),e.sCount[w]=d-u,y.push(e.tShift[w]),e.tShift[w]=s-e.bMarks[w]);continue}if(r||x)break;let a=!1,l=_.length;for(let t=0;t<l;t++)if((0,_[t])(e,w,n,!0)){a=!0;break}if(a){e.lineMax=w,0===e.blkIndent||i||(p.push(e.bMarks[w]),m.push(e.bsCount[w]),g.push(e.sCount[w]),y.push(e.tShift[w]),e.sCount[w]-=e.blkIndent);break}k=!0,i||(p.push(e.bMarks[w]),m.push(e.bsCount[w]),g.push(e.sCount[w]),y.push(e.tShift[w]),w>t+1&&(e.sCount[w]=-1))}let E=()=>{e.lineMax=b;for(let r=0;r<y.length;r++)e.bMarks[r+t]=p[r],e.tShift[r+t]=y[r],e.sCount[r+t]=g[r],e.bsCount[r+t]=m[r]};if(t+1>=w||!k)return e.parentType=v,i||E(),!1;if(i)return!0;let S=e.blkIndent;e.blkIndent=0;let A=[t,t+1],O=[t+1,0],C=e.push("alert_open","div",1);C.markup=f,C.attrJoin("class",`markdown-alert markdown-alert-${f}`),C.map=O;let T=e.push("alert_title","",0);return T.attrJoin("class","markdown-alert-title"),T.markup=f,T.content=h,T.map=A,e.md.block.tokenize(e,t+1,w),e.push("alert_close","div",-1).markup=f,O[1]=e.line,e.blkIndent=S,e.parentType=v,E(),!0}),{alt:["paragraph","reference","blockquote","list"]}),n&&(e.renderer.rules.alert_open=n),i&&(e.renderer.rules.alert_close=i),e.renderer.rules.alert_title=s??((e,t)=>{let r=e[t];return`<p class="markdown-alert-title">${r.content[0].toUpperCase()+r.content.slice(1).toLowerCase()}</p>
14`})},y={};function b(e,t){"string"!=typeof t&&(t=b.defaultChars);let r=function(e){let t=y[e];if(t)return t;t=y[e]=[];for(let e=0;e<128;e++){let r=String.fromCharCode(e);t.push(r)}for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);t[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2)}return t}(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(e){let t="";for(let n=0,i=e.length;n<i;n+=3){let s=parseInt(e.slice(n+1,n+3),16);if(s<128){t+=r[s];continue}if((224&s)==192&&n+3<i){let r=parseInt(e.slice(n+4,n+6),16);if((192&r)==128){let e=s<<6&1984|63&r;e<128?t+="��":t+=String.fromCharCode(e),n+=3;continue}}if((240&s)==224&&n+6<i){let r=parseInt(e.slice(n+4,n+6),16),i=parseInt(e.slice(n+7,n+9),16);if((192&r)==128&&(192&i)==128){let e=s<<12&61440|r<<6&4032|63&i;e<2048||e>=55296&&e<=57343?t+="���":t+=String.fromCharCode(e),n+=6;continue}}if((248&s)==240&&n+9<i){let r=parseInt(e.slice(n+4,n+6),16),i=parseInt(e.slice(n+7,n+9),16),a=parseInt(e.slice(n+10,n+12),
1416);if((192&r)==128&&(192&i)==128&&(192&a)==128){let e=s<<18&1835008|r<<12&258048|i<<6&4032|63&a;e<65536||e>1114111?t+="����":(e-=65536,t+=String.fromCharCode(55296+(e>>10),56320+(1023&e))),n+=9;continue}}t+="�"}return t})}b.defaultChars=";/?:@&=+$,#",b.componentChars="";let v=b,_={};function w(e,t,r){"string"!=typeof t&&(r=t,t=w.defaultChars),void 0===r&&(r=!0);let n=function(e){let t=_[e];if(t)return t;t=_[e]=[];for(let e=0;e<128;e++){let r=String.fromCharCode(e);/^[0-9a-z]$/i.test(r)?t.push(r):t.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2))}for(let r=0;r<e.length;r++)t[e.charCodeAt(r)]=e[r];return t}(t),i="";for(let t=0,s=e.length;t<s;t++){let a=e.charCodeAt(t);if(r&&37===a&&t+2<s&&/^[0-9a-f]{2}$/i.test(e.slice(t+1,t+3))){i+=e.slice(t,t+3),t+=2;continue}if(a<128){i+=n[a];continue}if(a>=55296&&a<=57343){if(a>=55296&&a<=56319&&t+1<s){let r=e.charCodeAt(t+1);if(r>=56320&&r<=57343){i+=encodeURIComponent(e[t]+e[t+1]),t++;continue}}i+="%EF%BF%BD";continue}i+=encodeURIComponent(e[t])}return i}w.defaultChars=";/?:@&=+$,-_.!~*'()#",w.componentChars="-_.!~*'()";let x=w;function k(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||""}function E(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}let S=/^([a-z0-9.+-]+:)/i,A=/:[0-9]*$/,O=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,C=["%","/","?",";","#"].concat(["'"].concat(["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","	"]))),T=["/","?","#"],I=/^[+a-z0-9A-Z_-]{0,63}$/,D=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,j={javascript:!0,"javascript:":!0},R={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};E.prototype.parse=function(e,t){let r,n,i,s=e;if(s=s.trim(),!t&&1===e.split("#").length){let e=O.exec(s);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let a=S.exec(s);if(a&&(r=(a=a[0]).toLowerCase(),this.protocol=a,s=s.substr(a.length)),(t||a||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i="//"===s.substr(0,2))&&!(a&&j[a])&&(s=s.substr(2),this.slashes=!0),!j[a]&&(i||a&&!R[a])){let e,t,r=-1;for(let e=0;e<T.length;e++)-1!==(n=s.indexOf(T[e]))&&(-1===r||n<r)&&(r=n);-1!==(t=-1===r?s.lastIndexOf("@"):s.lastIndexOf("@",r))&&(e=s.slice(0,t),s=s.slice(t+1),this.auth=e),r=-1;for(let e=0;e<C.length;e++)-1!==(n=s.indexOf(C[e]))&&(-1===r||n<r)&&(r=n);-1===r&&(r=s.length),":"===s[r-1]&&r--;let i=s.slice(0,r);s=s.slice(r),this.parseHost(i),this.hostname=this.hostname||"";let a="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!a){let e=this.hostname.split(/\./);for(let t=0,r=e.length;t<r;t++){let r=e[t];if(r&&!r.match(I)){let n="";for(let e=0,t=r.length;e<t;e++)r.charCodeAt(e)>127?n+="x":n+=r[e];if(!n.match(I)){let n=e.slice(0,t),i=e.slice(t+1),a=r.match(D);a&&(n.push(a[1]),i.unshift(a[2])),i.length&&(s=i.join(".")+s),this.hostname=n.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),a&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}let o=s.indexOf("#");-1!==o&&(this.hash=s.substr(o),s=s.slice(0,o));let l=s.indexOf("?");return -1!==l&&(this.search=s.substr(l),s=s.slice(0,l)),s&&(this.pathname=s),R[r]&&this.hostname&&!this.pathname&&(this.pathname=""),this},E.prototype.parseHost=function(e){let t=A.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};let N=function(e,t){if(e&&e instanceof E)return e;let r=new E;return r.parse(e,t),r},$=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,M=/[\$\+<->
14\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,F=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,P=/[\0-\x1F\x7F-\x9F]/,L=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,z=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,q=new Uint16Array('ᵁ<\xd5ıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms\x7f\x84\x8b\x90\x95\x98\xa6\xb3\xb9\xc8\xcflig耻\xc6䃆P耻&䀦cute耻\xc1䃁reve;䄂Āiyx}rc耻\xc2䃂;䐐r;쀀\ud835\udd04rave耻\xc0䃀pha;䎑acr;䄀d;橓Āgp\x9d\xa1on;䄄f;쀀\ud835\udd38plyFunction;恡ing耻\xc5䃅Ācs\xbe\xc3r;쀀\ud835\udc9cign;扔ilde耻\xc3䃃ml耻\xc4䃄Ѐaceforsu\xe5\xfb\xfeėĜĢħĪĀcr\xea\xf2kslash;或Ŷ\xf6\xf8;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀\ud835\udd05pf;쀀\ud835\udd39eve;䋘c\xf2ēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻\xa9䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻\xc7䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷\xf2ſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀\ud835\udc9epĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀\ud835\udd07Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀\ud835\udd3bƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegra\xecȹoɴ͹\0\0ͻ\xbb͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔e\xe5ˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀\ud835\udc9frok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻\xd0䃐cute耻\xc9䃉ƀaiyӒӗӜron;䄚rc耻\xca䃊;䐭ot;䄖r;쀀\ud835\udd08rave耻\xc8䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀\ud835\udd3csilon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻\xcb䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀\ud835\udd09lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀\ud835\udd3dAll;戀riertrf;愱c\xf2׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀\ud835\udd0a;拙pf;쀀\ud835\udd3eeater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀\ud835\udca2;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅ\xf2کrok;䄦mpńېۘownHum\xf0įqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻\xcd䃍Āiyܓܘrc耻\xce䃎;䐘ot;䄰r;愑rave耻\xcc䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lie\xf3ϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀\ud835\udd40a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻\xcf䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀\ud835\udd0dpf;쀀\ud835\udd41ǣ߇\0ߌr;쀀\ud835\udca5rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀\ud835\udd0epf;쀀\ud835\udd42cr;쀀\ud835\udca6րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ight\xe1Μs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀\ud835\udd0fĀ;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊight\xe1οight\xe1ϊf;쀀\ud835\udd43erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂ\xf2ࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀\ud835\udd10nusPlus;戓pf;쀀\ud835\udd44c\xf2੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘\xeb૙eryThi\xee૙tedĀGL૸ଆreaterGreate\xf2ٳessLes\xf3ੈLine;䀊r;쀀\ud835\udd11ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀\ud835\udca9ilde耻\xd1䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻\xd3䃓Āiy෎ීrc耻\xd4䃔;䐞blac;䅐r;쀀\ud835\udd12rave耻\xd2䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀\ud835\udd46enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀\ud835\udcaaash耻\xd8䃘iŬื฼de耻\xd5䃕es;樷ml耻\xd6䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;
14揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀\ud835\udd13i;䎦;䎠usMinus;䂱Āipຢອncareplan\xe5ڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀\ud835\udcab;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀\ud835\udd14pf;愚cr;쀀\ud835\udcac؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻\xae䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r\xbbཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀\ud835\udd16ortȀDLRUᄪᄴᄾᅉownArrow\xbbОeftArrow\xbb࢚ightArrow\xbb࿝pArrow;憑gma;䎣allCircle;战pf;쀀\ud835\udd4aɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀\ud835\udcaear;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Th\xe1ྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et\xbbሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻\xde䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀\ud835\udd17Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀\ud835\udd4bipleDot;惛Āctዖዛr;쀀\ud835\udcafrok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻\xda䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻\xdb䃛;䐣blac;䅰r;쀀\ud835\udd18rave耻\xd9䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀\ud835\udd4cЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥own\xe1ϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀\ud835\udcb0ilde;䅨ml耻\xdc䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀\ud835\udd19pf;쀀\ud835\udd4dcr;쀀\ud835\udcb1dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀\ud835\udd1apf;쀀\ud835\udd4ecr;쀀\ud835\udcb2Ȁfiosᓋᓐᓒᓘr;쀀\ud835\udd1b;䎞pf;쀀\ud835\udd4fcr;쀀\ud835\udcb3ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻\xdd䃝Āiyᔉᔍrc;䅶;䐫r;쀀\ud835\udd1cpf;쀀\ud835\udd50cr;쀀\ud835\udcb4ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidt\xe8૙a;䎖r;愨pf;愤cr;쀀\ud835\udcb5௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻\xe1䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻\xe2䃢te肻\xb4̆;䐰lig耻\xe6䃦Ā;r\xb2ᖺ;쀀\ud835\udd1erave耻\xe0䃠ĀepᗊᗖĀfpᗏᗔsym;愵\xe8ᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e\xbbᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢\xbb\xb9arr;捼Āgpᙣᙧon;䄅f;쀀\ud835\udd52΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒ\xf1ᚃing耻\xe5䃥ƀctyᚡᚦᚨr;쀀\ud835\udcb6;䀪mpĀ;e዁ᚯ\xf1ʈilde耻\xe3䃣ml耻\xe4䃤Āciᛂᛈonin\xf4ɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e\xbbᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰s\xe9ᜌno\xf5ēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀\ud835\udd1fg΀costuvwឍឝឳេ៕៛៞ƀaiuបពរ\xf0ݠrc;旯p\xbb፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄e\xe5ᑄ\xe5ᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀\ud835\udd53Ā;tᏋᡣom\xbbᏌtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻\xa6䂦Ȁceioᥑᥖᥚᥠr;쀀\ud835\udcb7mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t\xbb᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁\xeeړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;
14䄍dil耻\xe7䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻\xb8ƭptyv;榲t脀\xa2;eᨭᨮ䂢r\xe4Ʋr;쀀\ud835\udd20ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark\xbbᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟\xbbཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it\xbb᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;q\xc7\xc6ɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁\xeeᅠeĀmx᫱᫶ent\xbb᫩e\xf3ɍǧ᫾\0ᬇĀ;dኻᬂot;橭n\xf4Ɇƀfryᬐᬔᬗ;쀀\ud835\udd54o\xe4ɔ脀\xa9;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀\ud835\udcb8Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒre\xe3᭳u\xe3᭵ee;拎edge;拏en耻\xa4䂤earrowĀlrᯮ᯳eft\xbbᮀight\xbbᮽe\xe4ᯝĀciᰁᰇonin\xf4Ƿnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍r\xf2΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸\xf2ᄳhĀ;vᱚᱛ怐\xbbऊūᱡᱧarow;椏a\xe3̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻\xb0䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀\ud835\udd21arĀlrᲳᲵ\xbbࣜ\xbbသʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀\xf7;o᳧ᳰntimes;拇n\xf8᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀\ud835\udd55ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedg\xe5\xfanƀadhᄮᵝᵧownarrow\xf3ᲃarpoonĀlrᵲᵶef\xf4Ჴigh\xf4ᲶŢᵿᶅkaro\xf7གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀\ud835\udcb9;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃r\xf2Щa\xf2ྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴo\xf4ᲉĀcsḎḔute耻\xe9䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻\xea䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀\ud835\udd22ƀ;rsṐṑṗ檚ave耻\xe8䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et\xbbẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀\ud835\udd56ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on\xbbớ;䏵ȀcsuvỪỳἋἣĀioữḱrc\xbbḮɩỹ\0\0ỻ\xedՈantĀglἂἆtr\xbbṝess\xbbṺƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯o\xf4͒ĀahὉὋ;䎷耻\xf0䃰Āmrὓὗl耻\xeb䃫o;悬ƀcipὡὤὧl;䀡s\xf4ծĀeoὬὴctatio\xeeՙnential\xe5չৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotse\xf1Ṅy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀\ud835\udd23lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀\ud835\udd57ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻\xbd䂽;慓耻\xbc䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻\xbe䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀\ud835\udcbbࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lan\xf4٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀\ud835\udd24Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox\xbbℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀\ud835\udd58Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎pro\xf8₞r;楸qĀlqؿ↖les\xf3₈i\xed٫Āen↣↭rtneqq;쀀≩︀\xc5↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽r\xf2ΠȀilmr⇐⇔⇗⇛rs\xf0ᒄf\xbb․il\xf4کĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it\xbb∊lip;怦con;抹r;쀀\ud835\udd25sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀\ud835\udd59bar;怕ƀclt≯≴≸r;쀀\ud835\udcbdas\xe8⇴rok;䄧Ābp⊂⊇ull;恃hen\xbbᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻\xed䃭ƀ;
14iyݱ⊰⊵rc耻\xee䃮;䐸Ācx⊼⊿y;䐵cl耻\xa1䂡ĀfrΟ⋉;쀀\ud835\udd26rave耻\xec䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓in\xe5ގar\xf4ܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝do\xf4⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙er\xf3ᕣ\xe3⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀\ud835\udd5aa;䎹uest耻\xbf䂿Āci⎊⎏r;쀀\ud835\udcbenʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻\xef䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀\ud835\udd27ath;䈷pf;쀀\ud835\udd5bǣ⏬\0⏱r;쀀\ud835\udcbfrcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀\ud835\udd28reen;䄸cy;䑅cy;䑜pf;쀀\ud835\udd5ccr;쀀\ud835\udcc0஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼r\xf2৆\xf2Εail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴ra\xeeࡌbda;䎻gƀ;dlࢎⓁⓃ;榑\xe5ࢎ;檅uo耻\xab䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝\xeb≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼\xecࢰ\xe2┩;
14䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□a\xe9⓶arpoonĀdu▯▴own\xbbњp\xbb०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoon\xf3྘quigarro\xf7⇰hreetimes;拋ƀ;qs▋ও◺lan\xf4বʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋ppro\xf8Ⓠot;拖qĀgq♃♅\xf4উgt\xf2⒌\xf4ছi\xedলƀilr♕࣡♚sht;楼;쀀\ud835\udd29Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖r\xf2◁orne\xf2ᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che\xbb⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox\xbb⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽r\xebࣁgƀlmr⛿✍✔eftĀar০✇ight\xe1৲apsto;柼ight\xe1৽parrowĀlr✥✩ef\xf4⓭ight;憬ƀafl✶✹✽r;榅;쀀\ud835\udd5dus;樭imes;樴š❋❏st;戗\xe1ፎƀ;ef❗❘᠀旊nge\xbb❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇r\xf2ࢨorne\xf2ᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀\ud835\udcc1mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹re\xe5◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀\xc5⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻\xaf䂯Āet⡗⡙;時Ā;e⡞⡟朠se\xbb⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻ow\xeeҌef\xf4ए\xf0Ꮡker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle\xbbᘦr;쀀\ud835\udd2ao;愧ƀcdn⢯⢴⣉ro耻\xb5䂵Ȁ;acdᑤ⢽⣀⣄s\xf4ᚧir;櫰ot肻\xb7Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛\xf2−\xf0ઁĀdp⣩⣮els;抧f;쀀\ud835\udd5eĀct⣸⣽r;쀀\ud835\udcc2pos\xbbᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la\xbb˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉ro\xf8඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻\xa0ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸ui\xf6ୣĀei⩊⩎ar;椨\xed஘istĀ;s஠டr;쀀\ud835\udd2bȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lan\xf4௢i\xed௪Ā;rஶ⪁\xbbஷƀAap⪊⪍⪑r\xf2⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹r\xf2⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro\xf7⫁ightarro\xf7⪐ƀ;qs఻⪺⫪lan\xf4ౕĀ;sౕ⫴\xbbశi\xedౝĀ;rవ⫾iĀ;eచథi\xe4ඐĀpt⬌⬑f;쀀\ud835\udd5f膀\xac;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lle\xec୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳u\xe5ಥĀ;cಘ⭸Ā;eಒ⭽\xf1ಘȀAait⮈⮋⮝⮧r\xf2⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow\xbb⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉u\xe5൅;쀀\ud835\udcc3ortɭ⬅\0\0⯖ar\xe1⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭\xe5೸\xe5ഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗ\xf1സȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇ\xecௗlde耻\xf1䃱\xe7ృiangleĀlrⱒⱜeftĀ;eచⱚ\xf1దightĀ;eೋⱥ\xf1೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻\xf3䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻\xf4䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀\ud835\udd2cͯ⵹\0\0⵼\0ⶂn;䋛ave耻\xf2䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨr\xf2᪀Āir⶝ⶠr;榾oss;榻n\xe5๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀\ud835\udd60ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨r\xf2᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f\xbbⷿ耻\xaa䂪耻\xba䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧\xf2⸁ash耻\xf8䃸l;折iŬⸯ⸴de耻\xf5䃵esĀ;aǛ⸺s;樶ml耻\xf6䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;
14astЃ⹧⹲຅脀\xb6;l⹭⹮䂶le\xecЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀\ud835\udd2dƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕ma\xf4੶ne;明ƀ;tv⺿⻀⻈䏀chfork\xbb´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎\xf6⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻\xb1ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀\ud835\udd61nd耻\xa3䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷u\xe5໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾ppro\xf8⽃urlye\xf1໙\xf1໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨i\xedໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺\xf0⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴\xef໻rel;抰Āci⿀⿅r;쀀\ud835\udcc5;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀\ud835\udd2epf;쀀\ud835\udd62rime;恗cr;쀀\ud835\udcc6ƀaeo⿸〉〓tĀei⿾々rnion\xf3ڰnt;樖stĀ;e【】䀿\xf1Ἑ\xf4༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがr\xf2Ⴓ\xf2ϝail;検ar\xf2ᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕i\xe3ᅮmptyv;榳gȀ;del࿑らるろ;榒;榥\xe5࿑uo耻\xbb䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞\xeb≝\xf0✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶al\xf3༞ƀabrョリヮr\xf2៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗\xec࿲\xe2ヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜn\xe5Ⴛar\xf4ྩt;断ƀilrㅩဣㅮsht;楽;쀀\ud835\udd2fĀaoㅷㆆrĀduㅽㅿ\xbbѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭa\xe9トarpoonĀduㆻㆿow\xeeㅾp\xbb႒eftĀah㇊㇐rrow\xf3࿪arpoon\xf3Ցightarrows;應quigarro\xf7ニhreetimes;拌g;䋚ingdotse\xf1ἲƀahm㈍㈐㈓r\xf2࿪a\xf2Ց;怏oustĀ;a㈞㈟掱che\xbb㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾r\xebဃƀafl㉇㉊㉎r;榆;쀀\ud835\udd63us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒ar\xf2㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀\ud835\udcc7Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠re\xe5ㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛qu\xef➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡u\xe5ᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓i\xedሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒\xeb∨Ā;oਸ਼਴t耻\xa7䂧i;䀻war;椩mĀin㍩\xf0nu\xf3\xf1t;朶rĀ;o㍶⁕쀀\ud835\udd30Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜i\xe4ᑤara\xec⹯耻\xad䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲ar\xf2ᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetm\xe9㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀\ud835\udd64aĀdr㑍ЂesĀ;u㑔㑕晠it\xbb㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍\xf1ᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝\xf1ᆮƀ;afᅻ㒦ְrť㒫ֱ\xbbᅼar\xf2ᅈȀcemt㒹㒾㓂㓅r;쀀\ud835\udcc8tm\xee\xf1i\xec㐕ar\xe6ᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psilo\xeeỠh\xe9⺯s\xbb⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦ppro\xf8㋺urlye\xf1ᇾ\xf1ᇳƀaes㖂㖈㌛ppro\xf8㌚q\xf1㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻\xb9䂹耻\xb2䂲耻\xb3䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨\xeb∮Ā;oਫ਩war;椪lig耻\xdf䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄r\xeb๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀\ud835\udd31Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮ppro\xf8዁im\xbbኬs\xf0ኞĀas㚺㚮\xf0዁rn耻\xfe䃾Ǭ̟㛆⋧es膀\xd7;bd㛏㛐㛘䃗Ā;
14aᤏ㛕r;樱;樰ƀeps㛡㛣㜀\xe1⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀\ud835\udd65rk;櫚\xe1㍢rime;怴ƀaip㜏㜒㝤d\xe5ቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own\xbbᶻeftĀ;e⠀㜾\xf1म;扜ightĀ;e㊪㝋\xf1ၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀\ud835\udcc9;䑆cy;䑛rok;䅧Āio㞋㞎x\xf4᝷headĀlr㞗㞠eftarro\xf7ࡏightarrow\xbbཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶r\xf2ϭar;楣Ācr㟜㟢ute耻\xfa䃺\xf2ᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻\xfb䃻;䑃ƀabh㠃㠆㠋r\xf2Ꭽlac;䅱a\xf2ᏃĀir㠓㠘sht;楾;쀀\ud835\udd32rave耻\xf9䃹š㠧㠱rĀlr㠬㠮\xbbॗ\xbbႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r\xbb㡆op;挏ri;旸Āal㡖㡚cr;䅫肻\xa8͉Āgp㡢㡦on;䅳f;쀀\ud835\udd66̀adhlsuᅋ㡸㡽፲㢑㢠own\xe1ᎳarpoonĀlr㢈㢌ef\xf4㠭igh\xf4㠯iƀ;hl㢙㢚㢜䏅\xbbᏺon\xbb㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r\xbb㢽op;挎ng;䅯ri;旹cr;쀀\ud835\udccaƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨\xbb᠓Āam㣯㣲r\xf2㢨l耻\xfc䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠r\xf2ϷarĀ;v㤦㤧櫨;櫩as\xe8ϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖app\xe1␕othin\xe7ẖƀhir㓫⻈㥙op\xf4⾵Ā;hᎷ㥢\xefㆍĀiu㥩㥭gm\xe1㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟et\xe1㚜iangleĀlr㦪㦯eft\xbbथight\xbbၑy;䐲ash\xbbံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨa\xf2ᑩr;쀀\ud835\udd33tr\xe9㦮suĀbp㧯㧱\xbbജ\xbb൙pf;쀀\ud835\udd67ro\xf0໻tr\xe9㦴Ācu㨆㨋r;쀀\ud835\udccbĀbp㨐㨘nĀEe㦀㨖\xbb㥾nĀEe㦒㨞\xbb㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀\ud835\udd34pf;쀀\ud835\udd68Ā;eᑹ㩦at\xe8ᑹcr;쀀\ud835\udcccૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tr\xe9៑r;쀀\ud835\udd35ĀAa㪔㪗r\xf2σr\xf2৶;䎾ĀAa㪡㪤r\xf2θr\xf2৫a\xf0✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀\ud835\udd69im\xe5ឲĀAa㫇㫊r\xf2ώr\xf2ਁĀcq㫒ីr;쀀\ud835\udccdĀpt៖㫜r\xe9។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻\xfd䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻\xa5䂥r;쀀\ud835\udd36cy;䑗pf;쀀\ud835\udd6acr;쀀\ud835\udcceĀcm㬦㬩y;䑎l耻\xff䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡tr\xe6ᕟa;䎶r;쀀\ud835\udd37cy;䐶grarr;懝pf;쀀\ud835\udd6bcr;쀀\ud835\udccfĀjn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),U=new Uint16Array("Ȁaglq	\x15\x18\x1bɭ\x0f\0\0\x12p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0))),B=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),V=null!=(n=String.fromCodePoint)?n:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)};function H(e){return e>=i.ZERO&&e<=i.NINE}!function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(i||(i={})),!function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(s||(s={})),!function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"}(a||(a={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(o||(o={}));class G{constructor(e,t,r){this.decodeTree=e,this.emitCodePoint=t,this.errors=r,this.state=a.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=o.Strict}startEntity(e){this.decodeMode=e,this.state=a.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case a.EntityStart:if(e.charCodeAt(t)===i.NUM)return this.state=a.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1);return this.state=a.NamedEntity,this.stateNamedEntity(e,t);case a.NumericStart:return this.stateNumericStart(e,t);case a.NumericDecimal:return this.stateNumericDecimal(e,t);case a.NumericHex:return this.stateNumericHex(e,t);case a.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===i.LOWER_X?(this.state=a.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=a.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,r,n){if(t!==r){let i=r-t;
14this.result=this.result*Math.pow(n,i)+parseInt(e.substr(t,i),n),this.consumed+=i}}stateNumericHex(e,t){let r=t;for(;t<e.length;){var n;let s=e.charCodeAt(t);if(!H(s)&&(!((n=s)>=i.UPPER_A)||!(n<=i.UPPER_F))&&(!(n>=i.LOWER_A)||!(n<=i.LOWER_F)))return this.addToNumericResult(e,r,t,16),this.emitNumericEntity(s,3);t+=1}return this.addToNumericResult(e,r,t,16),-1}stateNumericDecimal(e,t){let r=t;for(;t<e.length;){let n=e.charCodeAt(t);if(!H(n))return this.addToNumericResult(e,r,t,10),this.emitNumericEntity(n,2);t+=1}return this.addToNumericResult(e,r,t,10),-1}emitNumericEntity(e,t){var r,n,s;if(this.consumed<=t)return null==(r=this.errors)||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===i.SEMI)this.consumed+=1;else if(this.decodeMode===o.Strict)return 0;return this.emitCodePoint((n=this.result)>=55296&&n<=57343||n>1114111?65533:null!=(s=B.get(n))?s:n,this.consumed),this.errors&&(e!==i.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:r}=this,n=r[this.treeIndex],a=(n&s.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){let l=e.charCodeAt(t);if(this.treeIndex=function(e,t,r,n){let i=(t&s.BRANCH_LENGTH)>>7,a=t&s.JUMP_TABLE;if(0===i)return 0!==a&&n===a?r:-1;if(a){let t=n-a;return t<0||t>=i?-1:e[r+t]-1}let o=r,l=o+i-1;for(;o<=l;){let t=o+l>>>1,r=e[t];if(r<n)o=t+1;else{if(!(r>n))return e[t+i];l=t-1}}return -1}(r,n,this.treeIndex+Math.max(1,a),l),this.treeIndex<0)return 0===this.result||this.decodeMode===o.Attribute&&(0===a||function(e){var t;return e===i.EQUALS||(t=e)>=i.UPPER_A&&t<=i.UPPER_Z||t>=i.LOWER_A&&t<=i.LOWER_Z||H(t)}(l))?0:this.emitNotTerminatedNamedEntity();if(0!=(a=((n=r[this.treeIndex])&s.VALUE_LENGTH)>>14)){if(l===i.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==o.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return -1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:r}=this,n=(r[t]&s.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,n,this.consumed),null==(e=this.errors)||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,r){let{decodeTree:n}=this;return this.emitCodePoint(1===t?n[e]&~s.VALUE_LENGTH:n[e+1],r),3===t&&this.emitCodePoint(n[e+2],r),r}end(){var e;switch(this.state){case a.NamedEntity:return 0!==this.result&&(this.decodeMode!==o.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case a.NumericDecimal:return this.emitNumericEntity(0,2);case a.NumericHex:return this.emitNumericEntity(0,3);case a.NumericStart:return null==(e=this.errors)||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case a.EntityStart:return 0}}}function W(e){let t="",r=new G(e,e=>t+=V(e));return function(e,n){let i=0,s=0;for(;(s=e.indexOf("&",s))>=0;){t+=e.slice(i,s),r.startEntity(n);let a=r.write(e,s+1);if(a<0){i=s+r.end();break}i=s+a,s=0===a?i+1:i}let a=t+e.slice(i);return t="",a}}let Z=W(q);W(U);let Y=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]);function K(e,t){return function(r){let n,i=0,s="";for(;n=e.exec(r);)i!==n.index&&(s+=r.substring(i,n.index)),s+=t.get(n[0].charCodeAt(0)),i=n.index+1;return s+r.substring(i)}}function J(e){return"[object String]"===Object.prototype.toString.call(e)}null!=String.prototype.codePointAt||((e,t)=>(64512&e.charCodeAt(t))==55296?(e.charCodeAt(t)-55296)*1024+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t)),K(/[&<>'"]/g,Y),K(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),K(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]])),function(e){e[e.XML=0]="XML",e[e.HTML=1]="HTML"}(l||(l={})),function(e){e[e.UTF8=0]="UTF8",e[e.ASCII=1]="ASCII",e[e.Extensive=2]="Extensive",e[e.Attribute=3]="Attribute",e[e.Text=4]="Text"}(u||(u={}));let X=Object.prototype.hasOwnProperty;function Q(e,t){return X.call(e,t)}function ee(e){let t=Array.prototype.slice.call(arguments,1);return t.forEach(function(t){if(t){if("object"!=typeof t)throw TypeError(t+"must be object");Object.keys(t).forEach(function(r){e[r]=t[r]})}}),e}function et(e,t,r){return[].concat(e.slice(0,t),r,e.slice(t+1))}function er(e){return(!(e>=55296)||!(e<=57343))&&(!(e>=64976)||!(e<=65007))&&(65535&e)!=65535&&(65535&e)!=65534&&(!(e>=0)||!(e<=8))&&11!==e&&(!(e>=14)||!(e<=31))&&(!(e>=127)||!(e<=159))&&!(e>1114111)&&!0}function en(e){return e>65535?String.fromCharCode(55296+((e-=65536)>>10),56320+(1023&e)):String.fromCharCode(e)}let ei=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,es=RegExp(ei.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),ea=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function eo(e){return 0>e.indexOf("\\")?e:e.replace(ei,"$1")}function el(e){return 0>e.indexOf("\\")&&0>e.indexOf("&")?e:e.replace(es,function(e,t,r){if(t)return t;if(35===r.charCodeAt(0)&&ea.test(r)){let t="x"===r[1].toLowerCase()?parseInt(r.slice(2),16):parseInt(r.slice(1),10);return er(t)?en(t):e}let n=function(e,t=o.Legacy){return Z(e,t)}(e);return n!==e?n:e})}let eu=/[&<>"]/,ec=/[&<>"]/g,ed={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function eh(e){return ed[e]}function ef(e){return eu.test(e)?e.replace(ec,eh):e}let ep=/[.?*+^$[\]\\(){}|-]/g;function em(e){return e.replace(ep,"\\$&")}function eg(e){switch(e){case 9:case 32:return!0}return!1}function ey(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function eb(e){return $.test(e)||M.test(e)}function ev(e){return eb(en(e))}function e_(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 
1461:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function ew(e){return(e=e.trim().replace(/\s+/g," ")).toLowerCase().toUpperCase()}function ex(e){return 32===e||9===e||10===e||13===e}function ek(e){let t=0;for(;t<e.length&&ex(e.charCodeAt(t));t++);let r=e.length-1;for(;r>=t&&ex(e.charCodeAt(r));r--);return e.slice(t,r+1)}let eE={mdurl:c,ucmicro:d};function eS(e,t,r){let n,i,s,a,o=e.posMax,l=e.pos;for(e.pos=t+1,n=1;e.pos<o;){if(93===(s=e.src.charCodeAt(e.pos))&&0==--n){i=!0;break}if(a=e.pos,e.md.inline.skipToken(e),91===s){if(a===e.pos-1)n++;else if(r)return e.pos=l,-1}}let u=-1;return i&&(u=e.pos),e.pos=l,u}function eA(e,t,r){let n,i=t,s={ok:!1,pos:0,str:""};if(60===e.charCodeAt(i)){for(i++;i<r&&10!==(n=e.charCodeAt(i))&&60!==n;){if(62===n){s.pos=i+1,s.str=el(e.slice(t+1,i)),s.ok=!0;break}if(92===n&&i+1<r){i+=2;continue}i++}return s}let a=0;for(;i<r&&32!==(n=e.charCodeAt(i))&&!(n<32)&&127!==n;){if(92===n&&i+1<r){if(32===e.charCodeAt(i+1))break;i+=2;continue}if(40===n&&++a>32)return s;if(41===n){if(0===a)break;a--}i++}return t===i||0!==a||(s.str=el(e.slice(t,i)),s.pos=i,s.ok=!0),s}function eO(e,t,r,n){let i,s=t,a={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(n)a.str=n.str,a.marker=n.marker;else{if(s>=r)return a;let n=e.charCodeAt(s);if(34!==n&&39!==n&&40!==n)return a;t++,s++,40===n&&(n=41),a.marker=n}for(;s<r;){if((i=e.charCodeAt(s))===a.marker)return a.pos=s+1,a.str+=el(e.slice(t,s)),a.ok=!0,a;if(40===i&&41===a.marker)return a;92===i&&s+1<r&&s++,s++}return a.can_continue=!0,a.str+=el(e.slice(t,s)),a}let eC={};function eT(){this.rules=ee({},eC)}function eI(){this.__rules__=[],this.__cache__=null}function eD(e,t,r){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=r,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}function ej(e,t,r){this.src=e,this.env=r,this.tokens=[],this.inlineMode=!1,this.md=t}eC.code_inline=function(e,t,r,n,i){let s=e[t];return"<code"+i.renderAttrs(s)+">"+ef(s.content)+"</code>"},eC.code_block=function(e,t,r,n,i){let s=e[t];return"<pre"+i.renderAttrs(s)+"><code>"+ef(e[t].content)+"</code></pre>\n"},eC.fence=function(e,t,r,n,i){let s,a=e[t],o=a.info?el(a.info).trim():"",l="",u="";if(o){let e=o.split(/(\s+)/g);l=e[0],u=e.slice(2).join("")}if(0===(s=r.highlight&&r.highlight(a.content,l,u)||ef(a.content)).indexOf("<pre"))return s+"\n";if(o){let e=a.attrIndex("class"),t=a.attrs?a.attrs.slice():[];return e<0?t.push(["class",r.langPrefix+l]):(t[e]=t[e].slice(),t[e][1]+=" "+r.langPrefix+l),`<pre><code${i.renderAttrs({attrs:t})}>${s}</code></pre>
15`}return`<pre><code${i.renderAttrs(a)}>${s}</code></pre>
16`},eC.image=function(e,t,r,n,i){let s=e[t];return s.attrs[s.attrIndex("alt")][1]=i.renderInlineAsText(s.children,r,n),i.renderToken(e,t,r)},eC.hardbreak=function(e,t,r){return r.xhtmlOut?"<br />\n":"<br>\n"},eC.softbreak=function(e,t,r){return r.breaks?r.xhtmlOut?"<br />\n":"<br>\n":"\n"},eC.text=function(e,t){return ef(e[t].content)},eC.html_block=function(e,t){return e[t].content},eC.html_inline=function(e,t){return e[t].content},eT.prototype.renderAttrs=function(e){let t,r,n;if(!e.attrs)return"";for(t=0,n="",r=e.attrs.length;t<r;t++)n+=" "+ef(e.attrs[t][0])+'="'+ef(e.attrs[t][1])+'"';return n},eT.prototype.renderToken=function(e,t,r){let n=e[t],i="";if(n.hidden)return"";n.block&&-1!==n.nesting&&t&&e[t-1].hidden&&(i+="\n"),i+=(-1===n.nesting?"</":"<")+n.tag,i+=this.renderAttrs(n),0===n.nesting&&r.xhtmlOut&&(i+=" /");let s=!1;if(n.block&&(s=!0,1===n.nesting&&t+1<e.length)){let r=e[t+1];"inline"===r.type||r.hidden?s=!1:-1===r.nesting&&r.tag===n.tag&&(s=!1)}return i+(s?">\n":">")},eT.prototype.renderInline=function(e,t,r){let n="",i=this.rules;for(let s=0,a=e.length;s<a;s++){let a=e[s].type;void 0!==i[a]?n+=i[a](e,s,t,r,this):n+=this.renderToken(e,s,t)}return n},eT.prototype.renderInlineAsText=function(e,t,r){let n="";for(let i=0,s=e.length;i<s;i++)switch(e[i].type){case"text":case"html_inline":case"html_block":n+=e[i].content;break;case"image":n+=this.renderInlineAsText(e[i].children,t,r);break;case"softbreak":case"hardbreak":n+="\n"}return n},eT.prototype.render=function(e,t,r){let n="",i=this.rules;for(let s=0,a=e.length;s<a;s++){let a=e[s].type;"inline"===a?n+=this.renderInline(e[s].children,t,r):void 0!==i[a]?n+=i[a](e,s,t,r,this):n+=this.renderToken(e,s,t,r)}return n},eI.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return -1},eI.prototype.__compile__=function(){let e=this,t=[""];e.__rules__.forEach(function(e){e.enabled&&e.alt.forEach(function(e){0>t.indexOf(e)&&t.push(e)})}),e.__cache__={},t.forEach(function(t){e.__cache__[t]=[],e.__rules__.forEach(function(r){r.enabled&&(t&&0>r.alt.indexOf(t)||e.__cache__[t].push(r.fn))})})},eI.prototype.at=function(e,t,r){let n=this.__find__(e);
16if(-1===n)throw Error("Parser rule not found: "+e);this.__rules__[n].fn=t,this.__rules__[n].alt=(r||{}).alt||[],this.__cache__=null},eI.prototype.before=function(e,t,r,n){let i=this.__find__(e);if(-1===i)throw Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:r,alt:(n||{}).alt||[]}),this.__cache__=null},eI.prototype.after=function(e,t,r,n){let i=this.__find__(e);if(-1===i)throw Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:r,alt:(n||{}).alt||[]}),this.__cache__=null},eI.prototype.push=function(e,t,r){this.__rules__.push({name:e,enabled:!0,fn:t,alt:(r||{}).alt||[]}),this.__cache__=null},eI.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);let r=[];return e.forEach(function(e){let n=this.__find__(e);if(n<0){if(t)return;throw Error("Rules manager: invalid rule name "+e)}this.__rules__[n].enabled=!0,r.push(e)},this),this.__cache__=null,r},eI.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(e){e.enabled=!1}),this.enable(e,t)},eI.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);let r=[];return e.forEach(function(e){let n=this.__find__(e);if(n<0){if(t)return;throw Error("Rules manager: invalid rule name "+e)}this.__rules__[n].enabled=!1,r.push(e)},this),this.__cache__=null,r},eI.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]},eD.prototype.attrIndex=function(e){if(!this.attrs)return -1;let t=this.attrs;for(let r=0,n=t.length;r<n;r++)if(t[r][0]===e)return r;return -1},eD.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},eD.prototype.attrSet=function(e,t){let r=this.attrIndex(e),n=[e,t];r<0?this.attrPush(n):this.attrs[r]=n},eD.prototype.attrGet=function(e){let t=this.attrIndex(e),r=null;return t>=0&&(r=this.attrs[t][1]),r},eD.prototype.attrJoin=function(e,t){let r=this.attrIndex(e);r<0?this.attrPush([e,t]):this.attrs[r][1]=this.attrs[r][1]+" "+t},ej.prototype.Token=eD;let eR=/\r\n?|\n/g,eN=/\0/g,e$=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,eM=/\((c|tm|r)\)/i,eF=/\((c|tm|r)\)/ig,eP={c:"\xa9",r:"\xae",tm:"™"};function eL(e,t){return eP[t.toLowerCase()]}let ez=/['"]/,eq=/['"]/g;function eU(e,t,r,n){e[t]||(e[t]=[]),e[t].push({pos:r,ch:n})}let eB=[["normalize",function(e){let t;t=(t=e.src.replace(eR,"\n")).replace(eN,"�"),e.src=t}],["block",function(e){let t;e.inlineMode?((t=new e.Token("inline","",0)).content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}],["inline",function(e){let t=e.tokens;for(let r=0,n=t.length;r<n;r++){let n=t[r];"inline"===n.type&&e.md.inline.parse(n.content,e.md,e.env,n.children)}}],["linkify",function(e){let t=e.tokens;if(e.md.options.linkify)for(let i=0,s=t.length;i<s;i++){if("inline"!==t[i].type||!e.md.linkify.pretest(t[i].content))continue;let s=t[i].children,a=0;for(let o=s.length-1;o>=0;o--){let l=s[o];if("link_close"===l.type){for(o--;s[o].level!==l.level&&"link_open"!==s[o].type;)o--;continue}if("html_inline"===l.type){var r,n;r=l.content,/^<a[>\s]/i.test(r)&&a>0&&a--,n=l.content,/^<\/a\s*>/i.test(n)&&a++}if(!(a>0)&&"text"===l.type&&e.md.linkify.test(l.content)){let r=l.content,n=e.md.linkify.match(r),a=[],u=l.level,c=0;n.length>0&&0===n[0].index&&o>0&&"text_special"===s[o-1].type&&(n=n.slice(1));for(let t=0;t<n.length;t++){let i=n[t].url,s=e.md.normalizeLink(i);if(!e.md.validateLink(s))continue;let o=n[t].text;o=n[t].schema?"mailto:"!==n[t].schema||/^mailto:/i.test(o)?e.md.normalizeLinkText(o):e.md.normalizeLinkText("mailto:"+o).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+o).replace(/^http:\/\//,"");let l=n[t].index;if(l>c){let t=new e.Token("text","",0);t.content=r.slice(c,l),t.level=u,a.push(t)}let d=new e.Token("link_open","a",1);d.attrs=[["href",s]],d.level=u++,d.markup="linkify",d.info="auto",a.push(d);let h=new e.Token("text","",0);h.content=o,h.level=u,a.push(h);let f=new e.Token("link_close","a",-1);f.level=--u,f.markup="linkify",f.info="auto",a.push(f),c=n[t].lastIndex}if(c<r.length){let t=new e.Token("text","",0);t.content=r.slice(c),t.level=u,a.push(t)}t[i].children=s=et(s,o,a)}}}}],["replacements",function(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(eM.test(e.tokens[t].content)&&function(e){let t=0;for(let r=e.length-1;r>=0;r--){let n=e[r];"text"!==n.type||t||(n.content=n.content.replace(eF,eL)),"link_open"===n.type&&"auto"===n.info&&t--,"link_close"===n.type&&"auto"===n.info&&t++}}(e.tokens[t].children),e$.test(e.tokens[t].content)&&function(e){let t=0;for(let r=e.length-1;r>=0;r--){let n=e[r];"text"===n.type&&!t&&e$.test(n.content)&&(n.content=n.content.replace(/\+-/g,"\xb1").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),"link_open"===n.type&&"auto"===n.info&&t--,"link_close"===n.type&&"auto"===n.info&&t++}}(e.tokens[t].children))}],["smartquotes",function(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&ez.test(e.tokens[t].content)&&function(e,t){let r,n=[],i={};for(let s=0;s<e.length;s++){let a=e[s],o=e[s].level;for(r=n.length-1;r>=0&&!(n[r].level<=o);r--);if(n.length=r+1,"text"!==a.type)continue;let l=a.content,u=0,c=l.length;e:for(;u<c;){eq.lastIndex=u;let a=eq.exec(l);if(!a)break;let d=!0,h=!0;u=a.index+1;let f="'"===a[0],p=32;if(a.index-1>=0)p=l.charCodeAt(a.index-1);else for(r=s-1;r>=0&&"softbreak"!==e[r].type&&"hardbreak"!==e[r].type;r--)if(e[r].content){p=e[r].content.charCodeAt(e[r].content.length-1);break}let m=32;if(u<c)m=l.charCodeAt(u);else for(r=s+1;r<e.length&&"softbreak"!==e[r].type&&"hardbreak"!==e[r].type;r++)if(e[r].content){m=e[r].content.charCodeAt(0);break}
16let g=e_(p)||ev(p),y=e_(m)||ev(m),b=ey(p),v=ey(m);if(v?d=!1:y&&!(b||g)&&(d=!1),b?h=!1:g&&!(v||y)&&(h=!1),34===m&&'"'===a[0]&&p>=48&&p<=57&&(h=d=!1),d&&h&&(d=g,h=y),!d&&!h){f&&eU(i,s,a.index,"’");continue}if(h)for(r=n.length-1;r>=0;r--){let e=n[r];if(n[r].level<o)break;if(e.single===f&&n[r].level===o){let o,l;e=n[r],f?(o=t.md.options.quotes[2],l=t.md.options.quotes[3]):(o=t.md.options.quotes[0],l=t.md.options.quotes[1]),eU(i,s,a.index,l),eU(i,e.token,e.pos,o),n.length=r;continue e}}d?n.push({token:s,pos:a.index,single:f,level:o}):h&&f&&eU(i,s,a.index,"’")}}Object.keys(i).forEach(function(t){e[t].content=function(e,t){let r="",n=0;t.sort((e,t)=>e.pos-t.pos);for(let i=0;i<t.length;i++){let s=t[i];r+=e.slice(n,s.pos)+s.ch,n=s.pos+1}return r+e.slice(n)}(e[t].content,i[t])})}(e.tokens[t].children,e)}],["text_join",function(e){let t,r,n=e.tokens,i=n.length;for(let e=0;e<i;e++){if("inline"!==n[e].type)continue;let i=n[e].children,s=i.length;for(t=0;t<s;t++)"text_special"===i[t].type&&(i[t].type="text");for(t=r=0;t<s;t++)"text"===i[t].type&&t+1<s&&"text"===i[t+1].type?i[t+1].content=i[t].content+i[t+1].content:(t!==r&&(i[r]=i[t]),r++);t!==r&&(i.length=r)}}]];function eV(){this.ruler=new eI;for(let e=0;e<eB.length;e++)this.ruler.push(eB[e][0],eB[e][1])}function eH(e,t,r,n){this.src=e,this.md=t,this.env=r,this.tokens=n,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;let i=this.src;for(let e=0,t=0,r=0,n=0,s=i.length,a=!1;t<s;t++){let o=i.charCodeAt(t);if(!a)if(eg(o)){r++,9===o?n+=4-n%4:n++;continue}else a=!0;(10===o||t===s-1)&&(10!==o&&t++,this.bMarks.push(e),this.eMarks.push(t),this.tShift.push(r),this.sCount.push(n),this.bsCount.push(0),a=!1,r=0,n=0,e=t+1)}this.bMarks.push(i.length),this.eMarks.push(i.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}function eG(e,t){let r=e.bMarks[t]+e.tShift[t],n=e.eMarks[t];return e.src.slice(r,n)}function eW(e){let t=[],r=e.length,n=0,i=e.charCodeAt(n),s=!1,a=0,o="";for(;n<r;)124===i&&(s?(o+=e.substring(a,n-1),a=n):(t.push(o+e.substring(a,n)),o="",a=n+1)),s=92===i,n++,i=e.charCodeAt(n);return t.push(o+e.substring(a)),t}function eZ(e,t){let r=e.eMarks[t],n=e.bMarks[t]+e.tShift[t],i=e.src.charCodeAt(n++);return 42!==i&&45!==i&&43!==i||n<r&&!eg(e.src.charCodeAt(n))?-1:n}function eY(e,t){let r=e.bMarks[t]+e.tShift[t],n=e.eMarks[t],i=r;if(i+1>=n)return -1;let s=e.src.charCodeAt(i++);if(s<48||s>57)return -1;for(;;){if(i>=n)return -1;if((s=e.src.charCodeAt(i++))>=48&&s<=57){if(i-r>=10)return -1;continue}if(41===s||46===s)break;return -1}return i<n&&!eg(s=e.src.charCodeAt(i))?-1:i}eV.prototype.process=function(e){let t=this.ruler.getRules("");for(let r=0,n=t.length;r<n;r++)t[r](e)},eV.prototype.State=ej,eH.prototype.push=function(e,t,r){let n=new eD(e,t,r);return n.block=!0,r<0&&this.level--,n.level=this.level,r>0&&this.level++,this.tokens.push(n),n},eH.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},eH.prototype.skipEmptyLines=function(e){for(let t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},eH.prototype.skipSpaces=function(e){for(let t=this.src.length;e<t&&eg(this.src.charCodeAt(e));e++);return e},eH.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!eg(this.src.charCodeAt(--e)))return e+1;return e},eH.prototype.skipChars=function(e,t){for(let r=this.src.length;e<r&&this.src.charCodeAt(e)===t;e++);return e},eH.prototype.skipCharsBack=function(e,t,r){if(e<=r)return e;for(;e>r;)if(t!==this.src.charCodeAt(--e))return e+1;return e},eH.prototype.getLines=function(e,t,r,n){if(e>=t)return"";let i=Array(t-e);for(let s=0,a=e;a<t;a++,s++){let e,o=0,l=this.bMarks[a],u=l;for(e=a+1<t||n?this.eMarks[a]+1:this.eMarks[a];u<e&&o<r;){let e=this.src.charCodeAt(u);if(eg(e))9===e?o+=4-(o+this.bsCount[a])%4:o++;else if(u-l<this.tShift[a])o++;else break;u++}o>r?i[s]=Array(o-r+1).join(" ")+this.src.slice(u,e):i[s]=this.src.slice(u,e)}return i.join("")},eH.prototype.Token=eD;let eK="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",eJ="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",eX=RegExp("^(?:"+eK+"|"+eJ+"|\x3c!---?>|\x3c!--(?:[^-]|-[^-]|--[^>])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),eQ=RegExp("^(?:"+eK+"|"+eJ+")"),e0=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[RegExp("^</?(address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?=(\\s|/?>|$))","i"),/^$/,!0],[RegExp(eQ.source+"\\s*$"),/^$/,!1]],e1=[["table",function(e,t,r,n){let i;if(t+2>r)return!1;let s=t+1;if(e.sCount[s]<e.blkIndent||e.sCount[s]-e.blkIndent>=4)return!1;let a=e.bMarks[s]+e.tShift[s];if(a>=e.eMarks[s])return!1;
16let o=e.src.charCodeAt(a++);if(124!==o&&45!==o&&58!==o||a>=e.eMarks[s])return!1;let l=e.src.charCodeAt(a++);if(124!==l&&45!==l&&58!==l&&!eg(l)||45===o&&eg(l))return!1;for(;a<e.eMarks[s];){let t=e.src.charCodeAt(a);if(124!==t&&45!==t&&58!==t&&!eg(t))return!1;a++}let u=eG(e,t+1),c=u.split("|"),d=[];for(let e=0;e<c.length;e++){let t=c[e].trim();if(!t)if(0===e||e===c.length-1)continue;else return!1;if(!/^:?-+:?$/.test(t))return!1;58===t.charCodeAt(t.length-1)?d.push(58===t.charCodeAt(0)?"center":"right"):58===t.charCodeAt(0)?d.push("left"):d.push("")}if(-1===(u=eG(e,t).trim()).indexOf("|")||e.sCount[t]-e.blkIndent>=4)return!1;(c=eW(u)).length&&""===c[0]&&c.shift(),c.length&&""===c[c.length-1]&&c.pop();let h=c.length;if(0===h||h!==d.length)return!1;if(n)return!0;let f=e.parentType;e.parentType="table";let p=e.md.block.ruler.getRules("blockquote"),m=e.push("table_open","table",1),g=[t,0];m.map=g,e.push("thead_open","thead",1).map=[t,t+1],e.push("tr_open","tr",1).map=[t,t+1];for(let t=0;t<c.length;t++){let r=e.push("th_open","th",1);d[t]&&(r.attrs=[["style","text-align:"+d[t]]]);let n=e.push("inline","",0);n.content=c[t].trim(),n.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let y=0;for(s=t+2;s<r&&!(e.sCount[s]<e.blkIndent);s++){let n=!1;for(let t=0,i=p.length;t<i;t++)if(p[t](e,s,r,!0)){n=!0;break}if(n||!(u=eG(e,s).trim())||e.sCount[s]-e.blkIndent>=4||((c=eW(u)).length&&""===c[0]&&c.shift(),c.length&&""===c[c.length-1]&&c.pop(),(y+=h-c.length)>65536))break;s===t+2&&(e.push("tbody_open","tbody",1).map=i=[t+2,0]),e.push("tr_open","tr",1).map=[s,s+1];for(let t=0;t<h;t++){let r=e.push("td_open","td",1);d[t]&&(r.attrs=[["style","text-align:"+d[t]]]);let n=e.push("inline","",0);n.content=c[t]?c[t].trim():"",n.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return i&&(e.push("tbody_close","tbody",-1),i[1]=s),e.push("table_close","table",-1),g[1]=s,e.parentType=f,e.line=s,!0},["paragraph","reference"]],["code",function(e,t,r){if(e.sCount[t]-e.blkIndent<4)return!1;let n=t+1,i=n;for(;n<r;){if(e.isEmpty(n)){n++;continue}if(e.sCount[n]-e.blkIndent>=4){i=++n;continue}break}e.line=i;let s=e.push("code_block","code",0);return s.content=e.getLines(t,i,4+e.blkIndent,!1)+"\n",s.map=[t,e.line],!0}],["fence",function(e,t,r,n){let i=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||i+3>s)return!1;let a=e.src.charCodeAt(i);if(126!==a&&96!==a)return!1;let o=i,l=(i=e.skipChars(i,a))-o;if(l<3)return!1;let u=e.src.slice(o,i),c=e.src.slice(i,s);if(96===a&&c.indexOf(String.fromCharCode(a))>=0)return!1;if(n)return!0;let d=t,h=!1;for(;!(++d>=r)&&(!((i=o=e.bMarks[d]+e.tShift[d])<(s=e.eMarks[d]))||!(e.sCount[d]<e.blkIndent));){;if(!(e.src.charCodeAt(i)!==a||e.sCount[d]-e.blkIndent>=4||(i=e.skipChars(i,a))-o<l)&&!((i=e.skipSpaces(i))<s)){h=!0;break}}l=e.sCount[t],e.line=d+ +!!h;let f=e.push("fence","code",0);return f.info=c,f.content=e.getLines(t+1,d,l,!0),f.markup=u,f.map=[t,e.line],!0},["paragraph","reference","blockquote","list"]],["blockquote",function(e,t,r,n){let i,s=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],o=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||62!==e.src.charCodeAt(s))return!1;if(n)return!0;let l=[],u=[],c=[],d=[],h=e.md.block.ruler.getRules("blockquote"),f=e.parentType;e.parentType="blockquote";let p=!1;for(i=t;i<r;i++){let t=e.sCount[i]<e.blkIndent;if((s=e.bMarks[i]+e.tShift[i])>=(a=e.eMarks[i]))break;if(62===e.src.charCodeAt(s++)&&!t){let t,r,n=e.sCount[i]+1;32===e.src.charCodeAt(s)?(s++,n++,r=!1,t=!0):9===e.src.charCodeAt(s)?(t=!0,(e.bsCount[i]+n)%4==3?(s++,n++,r=!1):r=!0):t=!1;let o=n;for(l.push(e.bMarks[i]),e.bMarks[i]=s;s<a;){let t=e.src.charCodeAt(s);if(eg(t))9===t?o+=4-(o+e.bsCount[i]+ +!!r)%4:o++;else break;s++}p=s>=a,u.push(e.bsCount[i]),e.bsCount[i]=e.sCount[i]+1+ +!!t,c.push(e.sCount[i]),e.sCount[i]=o-n,d.push(e.tShift[i]),e.tShift[i]=s-e.bMarks[i];continue}if(p)break;let n=!1;for(let t=0,s=h.length;t<s;t++)if(h[t](e,i,r,!0)){n=!0;break}if(n){e.lineMax=i,0!==e.blkIndent&&(l.push(e.bMarks[i]),u.push(e.bsCount[i]),d.push(e.tShift[i]),c.push(e.sCount[i]),e.sCount[i]-=e.blkIndent);break}l.push(e.bMarks[i]),u.push(e.bsCount[i]),d.push(e.tShift[i]),c.push(e.sCount[i]),e.sCount[i]=-1}let m=e.blkIndent;e.blkIndent=0;let g=e.push("blockquote_open","blockquote",1);g.markup=">";let y=[t,0];g.map=y,e.md.block.tokenize(e,t,i),e.push("blockquote_close","blockquote",-1).markup=">",e.lineMax=o,e.parentType=f,y[1]=e.line;for(let r=0;r<d.length;r++)e.bMarks[r+t]=l[r],e.tShift[r+t]=d[r],e.sCount[r+t]=c[r],e.bsCount[r+t]=u[r];return e.blkIndent=m,!0},["paragraph","reference","blockquote","list"]],["hr",function(e,t,r,n){let i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;
16let s=e.bMarks[t]+e.tShift[t],a=e.src.charCodeAt(s++);if(42!==a&&45!==a&&95!==a)return!1;let o=1;for(;s<i;){let t=e.src.charCodeAt(s++);if(t!==a&&!eg(t))return!1;t===a&&o++}if(o<3)return!1;if(n)return!0;e.line=t+1;let l=e.push("hr","hr",0);return l.map=[t,e.line],l.markup=Array(o+1).join(String.fromCharCode(a)),!0},["paragraph","reference","blockquote","list"]],["list",function(e,t,r,n){let i,s,a,o,l,u,c,d=t,h=!0;if(e.sCount[d]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[d]-e.listIndent>=4&&e.sCount[d]<e.blkIndent)return!1;let f=!1;if(n&&"paragraph"===e.parentType&&e.sCount[d]>=e.blkIndent&&(f=!0),(c=eY(e,d))>=0){if(l=!0,a=e.bMarks[d]+e.tShift[d],u=Number(e.src.slice(a,c-1)),f&&1!==u)return!1}else{if(!((c=eZ(e,d))>=0))return!1;l=!1}if(f&&e.skipSpaces(c)>=e.eMarks[d])return!1;if(n)return!0;let p=e.src.charCodeAt(c-1),m=e.tokens.length;l?(o=e.push("ordered_list_open","ol",1),1!==u&&(o.attrs=[["start",u]])):o=e.push("bullet_list_open","ul",1);let g=[d,0];o.map=g,o.markup=String.fromCharCode(p);let y=!1,b=e.md.block.ruler.getRules("list"),v=e.parentType;for(e.parentType="list";d<r;){let t;s=c,i=e.eMarks[d];let n=e.sCount[d]+c-(e.bMarks[d]+e.tShift[d]),u=n;for(;s<i;){let t=e.src.charCodeAt(s);if(9===t)u+=4-(u+e.bsCount[d])%4;else if(32===t)u++;else break;s++}let f=s;(t=f>=i?1:u-n)>4&&(t=1);let m=n+t;(o=e.push("list_item_open","li",1)).markup=String.fromCharCode(p);let g=[d,0];o.map=g,l&&(o.info=e.src.slice(a,c-1));let v=e.tight,_=e.tShift[d],w=e.sCount[d],x=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=m,e.tight=!0,e.tShift[d]=f-e.bMarks[d],e.sCount[d]=u,f>=i&&e.isEmpty(d+1)?e.line=Math.min(e.line+2,r):e.md.block.tokenize(e,d,r,!0),(!e.tight||y)&&(h=!1),y=e.line-d>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=x,e.tShift[d]=_,e.sCount[d]=w,e.tight=v,(o=e.push("list_item_close","li",-1)).markup=String.fromCharCode(p),d=e.line,g[1]=d,d>=r||e.sCount[d]<e.blkIndent||e.sCount[d]-e.blkIndent>=4)break;let k=!1;for(let t=0,n=b.length;t<n;t++)if(b[t](e,d,r,!0)){k=!0;break}if(k)break;if(l){if((c=eY(e,d))<0)break;a=e.bMarks[d]+e.tShift[d]}else if((c=eZ(e,d))<0)break;if(p!==e.src.charCodeAt(c-1))break}return(o=l?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(p),g[1]=d,e.line=d,e.parentType=v,h&&function(e,t){let r=e.level+2;for(let n=t+2,i=e.tokens.length-2;n<i;n++)e.tokens[n].level===r&&"paragraph_open"===e.tokens[n].type&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}(e,m),!0},["paragraph","reference","blockquote"]],["reference",function(e,t,r,n){let i,s=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],o=t+1;if(e.sCount[t]-e.blkIndent>=4||91!==e.src.charCodeAt(s))return!1;function l(t){let r=e.lineMax;if(t>=r||e.isEmpty(t))return null;let n=!1;if(e.sCount[t]-e.blkIndent>3&&(n=!0),e.sCount[t]<0&&(n=!0),!n){let n=e.md.block.ruler.getRules("reference"),i=e.parentType;e.parentType="reference";let s=!1;for(let i=0,a=n.length;i<a;i++)if(n[i](e,t,r,!0)){s=!0;break}if(e.parentType=i,s)return null}let i=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];return e.src.slice(i,s+1)}let u=e.src.slice(s,a+1);a=u.length;let c=-1;for(s=1;s<a;s++){let e=u.charCodeAt(s);if(91===e)return!1;if(93===e){c=s;break}if(10===e){let e=l(o);null!==e&&(u+=e,a=u.length,o++)}else if(92===e&&++s<a&&10===u.charCodeAt(s)){let e=l(o);null!==e&&(u+=e,a=u.length,o++)}}if(c<0||58!==u.charCodeAt(c+1))return!1;for(s=c+2;s<a;s++){let e=u.charCodeAt(s);if(10===e){let e=l(o);null!==e&&(u+=e,a=u.length,o++)}else if(eg(e));else break}let d=e.md.helpers.parseLinkDestination(u,s,a);if(!d.ok)return!1;let h=e.md.normalizeLink(d.str);if(!e.md.validateLink(h))return!1;let f=s=d.pos,p=o,m=s;for(;s<a;s++){let e=u.charCodeAt(s);if(10===e){let e=l(o);null!==e&&(u+=e,a=u.length,o++)}else if(eg(e));else break}let g=e.md.helpers.parseLinkTitle(u,s,a);for(;g.can_continue;){let t=l(o);if(null===t)break;u+=t,s=a,a=u.length,o++,g=e.md.helpers.parseLinkTitle(u,s,a,g)}for(s<a&&m!==s&&g.ok?(i=g.str,s=g.pos):(i="",s=f,o=p);s<a&&eg(u.charCodeAt(s));)s++;if(s<a&&10!==u.charCodeAt(s)&&i)for(i="",s=f,o=p;s<a&&eg(u.charCodeAt(s));)s++;if(s<a&&10!==u.charCodeAt(s))return!1;let y=ew(u.slice(1,c));return!!y&&(!!n||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[y]&&(e.env.references[y]={title:i,href:h}),e.line=o,!0))}],["html_block",function(e,t,r,n){let i=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>
16=4||!e.md.options.html||60!==e.src.charCodeAt(i))return!1;let a=e.src.slice(i,s),o=0;for(;o<e0.length&&!e0[o][0].test(a);o++);if(o===e0.length)return!1;if(n)return e0[o][2];let l=t+1,u=e0[o][1].test("");if(!e0[o][1].test(a)){for(;l<r&&(!(e.sCount[l]<e.blkIndent)||!u&&e.isEmpty(l));l++)if(i=e.bMarks[l]+e.tShift[l],s=e.eMarks[l],a=e.src.slice(i,s),e0[o][1].test(a)){0!==a.length&&l++;break}}e.line=l;let c=e.push("html_block","",0);return c.map=[t,l],c.content=e.getLines(t,l,e.blkIndent,!0),!0},["paragraph","reference","blockquote"]],["heading",function(e,t,r,n){let i=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.src.charCodeAt(i);if(35!==a||i>=s)return!1;let o=1;for(a=e.src.charCodeAt(++i);35===a&&i<s&&o<=6;)o++,a=e.src.charCodeAt(++i);if(o>6||i<s&&!eg(a))return!1;if(n)return!0;s=e.skipSpacesBack(s,i);let l=e.skipCharsBack(s,35,i);l>i&&eg(e.src.charCodeAt(l-1))&&(s=l),e.line=t+1;let u=e.push("heading_open","h"+String(o),1);u.markup="########".slice(0,o),u.map=[t,e.line];let c=e.push("inline","",0);return c.content=ek(e.src.slice(i,s)),c.map=[t,e.line],c.children=[],e.push("heading_close","h"+String(o),-1).markup="########".slice(0,o),!0},["paragraph","reference","blockquote"]],["lheading",function(e,t,r){let n,i=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;let s=e.parentType;e.parentType="paragraph";let a=0,o=t+1;for(;o<r&&!e.isEmpty(o);o++){if(e.sCount[o]-e.blkIndent>3)continue;if(e.sCount[o]>=e.blkIndent){let t=e.bMarks[o]+e.tShift[o],r=e.eMarks[o];if(t<r&&(45===(n=e.src.charCodeAt(t))||61===n)&&(t=e.skipChars(t,n),(t=e.skipSpaces(t))>=r)){a=61===n?1:2;break}}if(e.sCount[o]<0)continue;let t=!1;for(let n=0,s=i.length;n<s;n++)if(i[n](e,o,r,!0)){t=!0;break}if(t)break}if(!a)return e.parentType=s,!1;let l=ek(e.getLines(t,o,e.blkIndent,!1));e.line=o+1;let u=e.push("heading_open","h"+String(a),1);u.markup=String.fromCharCode(n),u.map=[t,e.line];let c=e.push("inline","",0);return c.content=l,c.map=[t,e.line-1],c.children=[],e.push("heading_close","h"+String(a),-1).markup=String.fromCharCode(n),e.parentType=s,!0}],["paragraph",function(e,t,r){let n=e.md.block.ruler.getRules("paragraph"),i=e.parentType,s=t+1;for(e.parentType="paragraph";s<r&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3||e.sCount[s]<0)continue;let t=!1;for(let i=0,a=n.length;i<a;i++)if(n[i](e,s,r,!0)){t=!0;break}if(t)break}let a=ek(e.getLines(t,s,e.blkIndent,!1));e.line=s,e.push("paragraph_open","p",1).map=[t,e.line];let o=e.push("inline","",0);return o.content=a,o.map=[t,e.line],o.children=[],e.push("paragraph_close","p",-1),e.parentType=i,!0}]];function e2(){this.ruler=new eI;for(let e=0;e<e1.length;e++)this.ruler.push(e1[e][0],e1[e][1],{alt:(e1[e][2]||[]).slice()})}function e5(e,t,r,n){this.src=e,this.env=r,this.md=t,this.tokens=n,this.tokens_meta=Array(n.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}e2.prototype.tokenize=function(e,t,r){let n=this.ruler.getRules(""),i=n.length,s=e.md.options.maxNesting,a=t,o=!1;for(;a<r&&(e.line=a=e.skipEmptyLines(a),!(a>=r)&&!(e.sCount[a]<e.blkIndent));){if(e.level>=s){e.line=r;break}let t=e.line,l=!1;for(let s=0;s<i;s++)if(l=n[s](e,a,r,!1)){if(t>=e.line)throw Error("block rule didn't increment state.line");break}if(!l)throw Error("none of the block rules matched");e.tight=!o,e.isEmpty(e.line-1)&&(o=!0),(a=e.line)<r&&e.isEmpty(a)&&(o=!0,e.line=++a)}},e2.prototype.parse=function(e,t,r,n){if(!e)return;let i=new this.State(e,t,r,n);this.tokenize(i,i.line,i.lineMax)},e2.prototype.State=eH,e5.prototype.pushPending=function(){let e=new eD("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},e5.prototype.push=function(e,t,r){this.pending&&this.pushPending();let n=new eD(e,t,r),i=null;return r<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),n.level=this.level,r>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(n),this.tokens_meta.push(i),n},e5.prototype.scanDelims=function(e,t){let r,n=this.posMax,i=this.src.charCo
16deAt(e);if(0===e)r=32;else if(1===e)(63488&(r=this.src.charCodeAt(0)))==55296&&(r=65533);else if((64512&(r=this.src.charCodeAt(e-1)))==56320){let t=this.src.charCodeAt(e-2);r=(64512&t)==55296?65536+(t-55296<<10)+(r-56320):65533}else(64512&r)==55296&&(r=65533);let s=e;for(;s<n&&this.src.charCodeAt(s)===i;)s++;let a=s-e,o=s<n?this.src.charCodeAt(s):32;if((64512&o)==55296){let e=this.src.charCodeAt(s+1);o=(64512&e)==56320?65536+(o-55296<<10)+(e-56320):65533}else(64512&o)==56320&&(o=65533);let l=e_(r)||ev(r),u=e_(o)||ev(o),c=ey(r),d=ey(o),h=!d&&(!u||c||l),f=!c&&(!l||d||u);return{can_open:h&&(t||!f||l),can_close:f&&(t||!h||u),length:a}},e5.prototype.Token=eD;let e3=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,e4=[];for(let e=0;e<256;e++)e4.push(0);function e6(e,t){let r,n=[],i=t.length;for(let s=0;s<i;s++){let i=t[s];if(126!==i.marker||-1===i.end)continue;let a=t[i.end];(r=e.tokens[i.token]).type="s_open",r.tag="s",r.nesting=1,r.markup="~~",r.content="",(r=e.tokens[a.token]).type="s_close",r.tag="s",r.nesting=-1,r.markup="~~",r.content="","text"===e.tokens[a.token-1].type&&"~"===e.tokens[a.token-1].content&&n.push(a.token-1)}for(;n.length;){let t=n.pop(),i=t+1;for(;i<e.tokens.length&&"s_close"===e.tokens[i].type;)i++;t!==--i&&(r=e.tokens[i],e.tokens[i]=e.tokens[t],e.tokens[t]=r)}}"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){e4[e.charCodeAt(0)]=1});let e8={tokenize:function(e,t){let r=e.pos,n=e.src.charCodeAt(r);if(t||126!==n)return!1;let i=e.scanDelims(e.pos,!0),s=i.length,a=String.fromCharCode(n);if(s<2)return!1;s%2&&(e.push("text","",0).content=a,s--);for(let t=0;t<s;t+=2)e.push("text","",0).content=a+a,e.delimiters.push({marker:n,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0},postProcess:function(e){let t=e.tokens_meta,r=e.tokens_meta.length;e6(e,e.delimiters);for(let n=0;n<r;n++)t[n]&&t[n].delimiters&&e6(e,t[n].delimiters)}};function e9(e,t){let r=t.length;for(let n=r-1;n>=0;n--){let r=t[n];if(95!==r.marker&&42!==r.marker||-1===r.end)continue;let i=t[r.end],s=n>0&&t[n-1].end===r.end+1&&t[n-1].marker===r.marker&&t[n-1].token===r.token-1&&t[r.end+1].token===i.token+1,a=String.fromCharCode(r.marker),o=e.tokens[r.token];o.type=s?"strong_open":"em_open",o.tag=s?"strong":"em",o.nesting=1,o.markup=s?a+a:a,o.content="";let l=e.tokens[i.token];l.type=s?"strong_close":"em_close",l.tag=s?"strong":"em",l.nesting=-1,l.markup=s?a+a:a,l.content="",s&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--)}}let e7={tokenize:function(e,t){let r=e.pos,n=e.src.charCodeAt(r);if(t||95!==n&&42!==n)return!1;let i=e.scanDelims(e.pos,42===n);for(let t=0;t<i.length;t++)e.push("text","",0).content=String.fromCharCode(n),e.delimiters.push({marker:n,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0},postProcess:function(e){let t=e.tokens_meta,r=e.tokens_meta.length;e9(e,e.delimiters);for(let n=0;n<r;n++)t[n]&&t[n].delimiters&&e9(e,t[n].delimiters)}},te=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,tt=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/,tr=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,tn=/^&([a-z][a-z0-9]{1,31});/i;function ti(e){let t={},r=e.length;if(!r)return;let n=0,i=-2,s=[];for(let a=0;a<r;a++){let r=e[a];if(s.push(0),(e[n].marker!==r.marker||i!==r.token-1)&&(n=a),i=r.token,r.length=r.length||0,!r.close)continue;t.hasOwnProperty(r.marker)||(t[r.marker]=[-1,-1,-1,-1,-1,-1]);let o=t[r.marker][3*!!r.open+r.length%3],l=n-s[n]-1,u=l;for(;l>o;l-=s[l]+1){let t=e[l];if(t.marker===r.marker&&t.open&&t.end<0){let n=!1;if((t.close||r.open)&&(t.length+r.length)%3==0&&(t.length%3!=0||r.length%3!=0)&&(n=!0),!n){let n=l>0&&!e[l-1].open?s[l-1]+1:0;s[a]=a-l+n,s[l]=n,r.open=!1,t.end=a,t.close=!1,u=-1,i=-2;break}}}-1!==u&&(t[r.marker][3*!!r.open+(r.length||0)%3]=u)}}let ts=[["text",function(e,t){let r=e.pos;for(;r<e.posMax&&!function(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 
1661:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}(e.src.charCodeAt(r));)r++;return r!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,r)),e.pos=r,!0)}],["linkify",function(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;let r=e.pos;if(r+3>e.posMax||58!==e.src.charCodeAt(r)||47!==e.src.charCodeAt(r+1)||47!==e.src.charCodeAt(r+2))return!1;let n=e.pending.match(e3);if(!n)return!1;let i=n[1],s=e.md.linkify.matchAtStart(e.src.slice(r-i.length));if(!s)return!1;let a=s.url;if(a.length<=i.length)return!1;let o=a.length;for(;o>0&&42===a.charCodeAt(o-1);)o--;o!==a.length&&(a=a.slice(0,o));let l=e.md.normalizeLink(a);if(!e.md.validateLink(l))return!1;if(!t){e.pending=e.pending.slice(0,-i.length);let t=e.push("link_open","a",1);t.attrs=[["href",l]],t.markup="linkify",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(a);let r=e.push("link_close","a",-1);r.markup="linkify",r.info="auto"}return e.pos+=a.length-i.length,!0}],["newline",function(e,t){let r=e.pos;if(10!==e.src.charCodeAt(r))return!1;let n=e.pending.length-1,i=e.posMax;if(!t)if(n>=0&&32===e.pending.charCodeAt(n))if(n>=1&&32===e.pending.charCodeAt(n-1)){let t=n-1;for(;t>=1&&32===e.pending.charCodeAt(t-1);)t--;e.pending=e.pending.slice(0,t),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(r++;r<i&&eg(e.src.charCodeAt(r));)r++;return e.pos=r,!0}],["escape",function(e,t){let r=e.pos,n=e.posMax;if(92!==e.src.charCodeAt(r)||++r>=n)return!1;let i=e.src.charCodeAt(r);if(10===i){for(t||e.push("hardbreak","br",0),r++;r<n&&eg(i=e.src.charCodeAt(r));)r++;return e.pos=r,!0}if(32===i){if(!t){let t=e.push("text_special","",0);t.content="\\",t.markup="\\",t.info="escape"}return e.pos=r,!0}let s=e.src[r];if(i>=55296&&i<=56319&&r+1<n){let t=e.src.charCodeAt(r+1);t>=56320&&t<=57343&&(s+=e.src[r+1],r++)}let a="\\"+s;if(!t){let t=e.push("text_special","",0);i<256&&0!==e4[i]?t.content=s:t.content=a,t.markup=a,t.info="escape"}return e.pos=r+1,!0}],["backticks",function(e,t){let r,n=e.pos;if(96!==e.src.charCodeAt(n))return!1;let i=n;n++;let s=e.posMax;for(;n<s&&96===e.src.charCodeAt(n);)n++;let a=e.src.slice(i,n),o=a.length;if(e.backticksScanned&&(e.backticks[o]||0)<=i)return t||(e.pending+=a),e.pos+=o,!0;let l=n;for(;-1!==(r=e.src.indexOf("`",l));){for(l=r+1;l<s&&96===e.src.charCodeAt(l);)l++;let i=l-r;if(i===o){if(!t){let t=e.push("code_inline","code",0);t.markup=a,t.content=e.src.slice(n,r).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=l,!0}e.backticks[i]=r}return e.backticksScanned=!0,t||(e.pending+=a),e.pos+=o,!0}],["strikethrough",e8.tokenize],["emphasis",e7.tokenize],["link",function(e,t){let r,n,i,s,a="",o="",l=e.pos,u=!0;if(91!==e.src.charCodeAt(e.pos))return!1;let c=e.pos,d=e.posMax,h=e.pos+1,f=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(f<0)return!1;let p=f+1;if(p<d&&40===e.src.charCodeAt(p)){for(u=!1,p++;p<d&&(eg(r=e.src.charCodeAt(p))||10===r);p++);if(p>=d)return!1;if(l=p,(i=e.md.helpers.parseLinkDestination(e.src,p,e.posMax)).ok){for(a=e.md.normalizeLink(i.str),e.md.validateLink(a)?p=i.pos:a="",l=p;p<d&&(eg(r=e.src.charCodeAt(p))||10===r);p++);if(i=e.md.helpers.parseLinkTitle(e.src,p,e.posMax),p<d&&l!==p&&i.ok)for(o=i.str,p=i.pos;p<d&&(eg(r=e.src.charCodeAt(p))||10===r);p++);}(p>=d||41!==e.src.charCodeAt(p))&&(u=!0),p++}if(u){if(void 0===e.env.references)return!1;if(p<d&&91===e.src.charCodeAt(p)?(l=p+1,(p=e.md.helpers.parseLinkLabel(e,p))>=0?n=e.src.slice(l,p++):p=f+1):p=f+1,n||(n=e.src.slice(h,f)),!(s=e.env.references[ew(n)]))return e.pos=c,!1;a=s.href,o=s.title}if(!t){e.pos=h,e.posMax=f;let t=e.push("link_open","a",1),r=[["href",a]];t.attrs=r,o&&r.push(["title",o]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=p,e.posMax=d,!0}],["image",function(e,t){let r,n,i,s,a,o,l,u,c="",d=e.pos,h=e.posMax;if(33!==e.src.charCodeAt(e.pos)||91!==e.src.charCodeAt(e.pos+1))return!1;let f=e.pos+2,p=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(p<0)return!1;
16if((s=p+1)<h&&40===e.src.charCodeAt(s)){for(s++;s<h&&(eg(r=e.src.charCodeAt(s))||10===r);s++);if(s>=h)return!1;for(u=s,(o=e.md.helpers.parseLinkDestination(e.src,s,e.posMax)).ok&&(c=e.md.normalizeLink(o.str),e.md.validateLink(c)?s=o.pos:c=""),u=s;s<h&&(eg(r=e.src.charCodeAt(s))||10===r);s++);if(o=e.md.helpers.parseLinkTitle(e.src,s,e.posMax),s<h&&u!==s&&o.ok)for(l=o.str,s=o.pos;s<h&&(eg(r=e.src.charCodeAt(s))||10===r);s++);else l="";if(s>=h||41!==e.src.charCodeAt(s))return e.pos=d,!1;s++}else{if(void 0===e.env.references)return!1;if(s<h&&91===e.src.charCodeAt(s)?(u=s+1,(s=e.md.helpers.parseLinkLabel(e,s))>=0?i=e.src.slice(u,s++):s=p+1):s=p+1,i||(i=e.src.slice(f,p)),!(a=e.env.references[ew(i)]))return e.pos=d,!1;c=a.href,l=a.title}if(!t){n=e.src.slice(f,p);let t=[];e.md.inline.parse(n,e.md,e.env,t);let r=e.push("image","img",0),i=[["src",c],["alt",""]];r.attrs=i,r.children=t,r.content=n,l&&i.push(["title",l])}return e.pos=s,e.posMax=h,!0}],["autolink",function(e,t){let r=e.pos;if(60!==e.src.charCodeAt(r))return!1;let n=e.pos,i=e.posMax;for(;;){if(++r>=i)return!1;let t=e.src.charCodeAt(r);if(60===t)return!1;if(62===t)break}let s=e.src.slice(n+1,r);if(tt.test(s)){let r=e.md.normalizeLink(s);if(!e.md.validateLink(r))return!1;if(!t){let t=e.push("link_open","a",1);t.attrs=[["href",r]],t.markup="autolink",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(s);let n=e.push("link_close","a",-1);n.markup="autolink",n.info="auto"}return e.pos+=s.length+2,!0}if(te.test(s)){let r=e.md.normalizeLink("mailto:"+s);if(!e.md.validateLink(r))return!1;if(!t){let t=e.push("link_open","a",1);t.attrs=[["href",r]],t.markup="autolink",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(s);let n=e.push("link_close","a",-1);n.markup="autolink",n.info="auto"}return e.pos+=s.length+2,!0}return!1}],["html_inline",function(e,t){if(!e.md.options.html)return!1;let r=e.posMax,n=e.pos;if(60!==e.src.charCodeAt(n)||n+2>=r)return!1;let i=e.src.charCodeAt(n+1);if(33!==i&&63!==i&&47!==i&&!function(e){let t=32|e;return t>=97&&t<=122}(i))return!1;let s=e.src.slice(n).match(eX);if(!s)return!1;if(!t){var a,o;let t=e.push("html_inline","",0);t.content=s[0],a=t.content,/^<a[>\s]/i.test(a)&&e.linkLevel++,o=t.content,/^<\/a\s*>/i.test(o)&&e.linkLevel--}return e.pos+=s[0].length,!0}],["entity",function(e,t){let r=e.pos,n=e.posMax;if(38!==e.src.charCodeAt(r)||r+1>=n)return!1;if(35===e.src.charCodeAt(r+1)){let n=e.src.slice(r).match(tr);if(n){if(!t){let t="x"===n[1][0].toLowerCase()?parseInt(n[1].slice(1),16):parseInt(n[1],10),r=e.push("text_special","",0);r.content=er(t)?en(t):en(65533),r.markup=n[0],r.info="entity"}return e.pos+=n[0].length,!0}}else{let n=e.src.slice(r).match(tn);if(n){let r=Z(n[0],o.Strict);if(r!==n[0]){if(!t){let t=e.push("text_special","",0);t.content=r,t.markup=n[0],t.info="entity"}return e.pos+=n[0].length,!0}}}return!1}]],ta=[["balance_pairs",function(e){let t=e.tokens_meta,r=e.tokens_meta.length;ti(e.delimiters);for(let e=0;e<r;e++)t[e]&&t[e].delimiters&&ti(t[e].delimiters)}],["strikethrough",e8.postProcess],["emphasis",e7.postProcess],["fragments_join",function(e){let t,r,n=0,i=e.tokens,s=e.tokens.length;for(t=r=0;t<s;t++)i[t].nesting<0&&n--,i[t].level=n,i[t].nesting>0&&n++,"text"===i[t].type&&t+1<s&&"text"===i[t+1].type?i[t+1].content=i[t].content+i[t+1].content:(t!==r&&(i[r]=i[t]),r++);t!==r&&(i.length=r)}]];function to(){this.ruler=new eI;for(let e=0;e<ts.length;e++)this.ruler.push(ts[e][0],ts[e][1]);this.ruler2=new eI;for(let e=0;e<ta.length;e++)this.ruler2.push(ta[e][0],ta[e][1])}function tl(e){let t=Array.prototype.slice.call(arguments,1);return t.forEach(function(t){t&&Object.keys(t).forEach(function(r){e[r]=t[r]})}),e}function tu(e){return Object.prototype.toString.call(e)}function tc(e){return"[object Function]"===tu(e)}function td(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}to.prototype.skipToken=function(e){let t=e.pos,r=this.ruler.getRules(""),n=r.length,i=e.md.options.maxNesting,s=e.cache;if(void 0!==s[t]){e.pos=s[t];return}let a=!1;if(e.level<i){for(let i=0;i<n;i++)if(e.level++,a=r[i](e,!0),e.level--,a){if(t>=e.pos)throw Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;!a&&e.pos++,s[t]=e.pos},to.prototype.tokenize=function(e){let t=this.ruler.getRules(""),r=t.length,n=e.posMax,i=e.md.options.maxNesting;for(;e.pos<n;){let s=e.pos,a=!1;if(e.level<i){for(let n=0;n<r;n++)if(a=t[n](e,!1)){if(s>=e.pos)throw Error("inline rule didn't increment state.pos");break}}if(a){if(e.pos>=n)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},to.prototype.parse=function(e,t,r,n){let i=new this.State(e,t,r,n);this.tokenize(i);let s=this.ruler2.getRules(""),a=s.length;for(let e=0;e<a;e++)s[e](i)},to.prototype.State=e5;let th={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},tf={"http:":{validate:function(e,t,r){let n=e.slice(t);return(r.re.http||(r.re.http=RegExp(`^\\/\\/${r.re.src_auth}${r.re.src_host_port_strict}${r.re.src_path}`,"i")),r.re.http.test(n))?n.match(r.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,r){let n=e.slice(t);return(r.re.no_http||(r.re.no_http=RegExp("^"+r.re.src_auth+`(?:localhost|(?:(?:${r.re.src_domain})\\.)+${r.re.src_domain_root})`+r.re.src_port+r.re.src_host_terminator+r.re.src_path,"i")),r.re.no_http.test(n))?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:n.match(r.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,r){let n=e.slice(t);return(r.re.mailto||(r.re.mailto=RegExp(`^${r.re.src_email_name}@${r.re.src_host_strict}`,"i")),r.re.mailto.test(n))?n.match(r.re.mailto)[0].length:0}}},tp="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function tm(){return function(e,t){t.normalize(e)}}function tg(e){let t=e.re=function(e){let t={};e=e||{},t.src_Any=F.source,t.src_Cc=P.source,t.src_Z=z.source,t.src_P=$.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");let r="[><|]";return t.src_pseudo_letter=`(?:(?!${r}|${t.src_ZPCc})${t.src_Any})`,t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth=`(?:(?:(?!${t.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`,t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator=`(?=$|${r}|${t.src_ZPCc})(?!${e["---"]?"-(?!--)|":"-|"}_|:\\d|\\.-|\\.(?!$|${t.src_ZPCc}))`,t.src_path=`(?:[/?#](?:(?!${t.src_ZCc}|${r}|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!${t.src_ZCc}|\\]).)*\\]|\\((?:(?!${t.src_ZCc}|[)]).)*\\)|\\{(?:(?!${t.src_ZCc}|[}]).)*\\}|\\"(?:(?!${t.src_ZCc}|["]).)+\\"|\\'(?:(?!${t.src_ZCc}|[']).)+\\'|\\'(?=${t.src_pseudo_letter}|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!${t.src_ZCc}|[.]|$)|`+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+`,(?!${t.src_ZCc}|$)|`+`;(?!${t.src_ZCc}|$)|`+`\\!+(?!${t.src_ZCc}|[!]|$)|`+`\\?(?!${t.src_ZCc}|[?]|$)`+")+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]{0,63}',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+`${t.src_pseudo_letter}{1,63}`+")",t.src_domain="(?:"+t.src_xn+"|"+`(?:${t.src_pseudo_letter})`+"|"+`(?:${t.src_pseudo_letter}(?:-|${t.src_pseudo_letter}){0,61}${t.src_pseudo_letter}
16)`+")",t.src_host=`(?:(?:(?:(?:${t.src_domain})\\.)*${t.src_domain}))`,t.tpl_host_fuzzy="(?:"+t.src_ip4+"|"+`(?:(?:(?:${t.src_domain})\\.)+(?:%TLDS%))`+")",t.tpl_host_no_ip_fuzzy=`(?:(?:(?:${t.src_domain})\\.)+(?:%TLDS%))`,t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test=`localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:${t.src_ZPCc}|>|$))`,t.tpl_email_fuzzy=`(^|${r}|"|\\(|${t.src_ZCc})(${t.src_email_name}@${t.tpl_host_fuzzy_strict})`,t.tpl_link_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uff5c]|${t.src_ZPCc}))((?![$+<=>^\`|\uff5c])${t.tpl_host_port_fuzzy_strict}${t.src_path})`,t.tpl_link_no_ip_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uff5c]|${t.src_ZPCc}))((?![$+<=>^\`|\uff5c])${t.tpl_host_port_no_ip_fuzzy_strict}${t.src_path})`,t}(e.__opts__),r=e.__tlds__.slice();function n(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),r.push(t.src_xn),t.src_tlds=r.join("|"),t.email_fuzzy=RegExp(n(t.tpl_email_fuzzy),"i"),t.email_fuzzy_global=RegExp(n(t.tpl_email_fuzzy),"ig"),t.link_fuzzy=RegExp(n(t.tpl_link_fuzzy),"i"),t.link_fuzzy_global=RegExp(n(t.tpl_link_fuzzy),"ig"),t.link_no_ip_fuzzy=RegExp(n(t.tpl_link_no_ip_fuzzy),"i"),t.link_no_ip_fuzzy_global=RegExp(n(t.tpl_link_no_ip_fuzzy),"ig"),t.host_fuzzy_test=RegExp(n(t.tpl_host_fuzzy_test),"i");let i=[];function s(e,t){throw Error(`(LinkifyIt) Invalid schema "${e}": ${t}`)}e.__compiled__={},Object.keys(e.__schemas__).forEach(function(t){let r=e.__schemas__[t];if(null===r)return;let n={validate:null,link:null};if(e.__compiled__[t]=n,"[object Object]"===tu(r)){if("[object RegExp]"===tu(r.validate)){var a;a=r.validate,n.validate=function(e,t){let r=e.slice(t);return a.test(r)?r.match(a)[0].length:0}}else tc(r.validate)?n.validate=r.validate:s(t,r);tc(r.normalize)?n.normalize=r.normalize:r.normalize?s(t,r):n.normalize=tm();return}if("[object String]"===tu(r))return void i.push(t);s(t,r)}),i.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[""]={validate:null,normalize:tm()};let a=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(td).join("|");e.re.schema_test=RegExp(`(^|(?!_)(?:[><\uff5c]|${t.src_ZPCc}))(${a})`,"i"),e.re.schema_search=RegExp(`(^|(?!_)(?:[><\uff5c]|${t.src_ZPCc}))(${a})`,"ig"),e.re.schema_at_start=RegExp(`^${e.re.schema_search.source}`,"i"),e.re.pretest=RegExp(`(${e.re.schema_test.source})|(${e.re.host_fuzzy_test.source})|@`,"i")}function ty(e,t,r,n){let i=e.slice(r,n);this.schema=t.toLowerCase(),this.index=r,this.lastIndex=n,this.raw=i,this.text=i,this.url=i}function tb(e,t){if(!(this instanceof tb))return new tb(e,t);!t&&Object.keys(e||{}).reduce(function(e,t){return e||th.hasOwnProperty(t)},!1)&&(t=e,e={}),this.__opts__=tl({},th,t),this.__schemas__=tl({},tf,e),this.__compiled__={},this.__tlds__=tp,this.__tlds_replaced__=!1,this.re={},tg(this)}tb.prototype.add=function(e,t){return this.__schemas__[e]=t,tg(this),this},tb.prototype.set=function(e){return this.__opts__=tl(this.__opts__,e),this},tb.prototype.test=function(e){let t,r;if(!e.length)return!1;if(this.re.schema_test.test(e)){for((r=this.re.schema_search).lastIndex=0;null!==(t=r.exec(e));)if(this.testSchemaAt(e,t[2],r.lastIndex))return!0}return!!(this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&e.search(this.re.host_fuzzy_test)>=0&&null!==e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy)||this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==e.match(this.re.email_fuzzy))},tb.prototype.pretest=function(e){return this.re.pretest.test(e)},tb.prototype.testSchemaAt=function(e,t,r){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,r,this):0},tb.prototype.match=function(e){let t,r,n,i=[],s=[],a=[],o=[];function l(e,t){return e?t?e.index!==t.index?e.index<t.index?e:t:e.lastIndex>=t.lastIndex?e:t:e:t}if(!e.length)return null;if(this.re.schema_test.test(e))for((n=this.re.schema_search).lastIndex=0;null!==(t=n.exec(e));)(r=this.testSchemaAt(e,t[2],n.lastIndex))&&s.push({schema:t[2],index:t.index+t[1].length,lastIndex:t.index+t[0].length+r});if(this.__opts__.fuzzyLink&&this.__compiled__["http:"])for((n=this.__opts__.fuzzyIP?this.re.link_fuzzy_global:this.re.link_no_ip_fuzzy_global).lastIndex=0;null!==(t=n.exec(e));)a.push({schema:"",index:t.index+t[1].length,lastIndex:t.index+t[0].length});if(this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"])for((n=this.re.email_fuzzy_global).lastIndex=0;null!==(t=n.exec(e));)o.push({schema:"mailto:",index:t.index+t[1].length,lastIndex:t.index+t[0].length});let u=[0,0,0],c=0;for(;;){let t=[s[u[0]],o[u[1]],a[u[2]]],r=l(l(t[0],t[1]),t[2]);if(!r)break;
16if(r===t[0]?u[0]++:r===t[1]?u[1]++:u[2]++,r.index<c)continue;let n=new ty(e,r.schema,r.index,r.lastIndex);this.__compiled__[n.schema].normalize(n,this),i.push(n),c=r.lastIndex}return i.length?i:null},tb.prototype.matchAtStart=function(e){if(!e.length)return null;let t=this.re.schema_at_start.exec(e);if(!t)return null;let r=this.testSchemaAt(e,t[2],t[0].length);if(!r)return null;let n=new ty(e,t[2],t.index+t[1].length,t.index+t[0].length+r);return this.__compiled__[n.schema].normalize(n,this),n},tb.prototype.tlds=function(e,t){return(e=Array.isArray(e)?e:[e],t)?this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,r){return e!==r[t-1]}).reverse():(this.__tlds__=e.slice(),this.__tlds_replaced__=!0),tg(this),this},tb.prototype.normalize=function(e){e.schema||(e.url=`http://${e.url}`),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url=`mailto:${e.url}`)},tb.prototype.onCompile=function(){};let tv=/^xn--/,t_=/[^\0-\x7F]/,tw=/[\x2E\u3002\uFF0E\uFF61]/g,tx={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},tk=Math.floor,tE=String.fromCharCode;function tS(e){throw RangeError(tx[e])}function tA(e,t){let r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+(function(e,t){let r=[],n=e.length;for(;n--;)r[n]=t(e[n]);return r})((e=e.replace(tw,".")).split("."),t).join(".")}let tO=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},tC=function(e,t,r){let n=0;for(e=r?tk(e/700):e>>1,e+=tk(e/t);e>455;n+=36)e=tk(e/35);return tk(n+36*e/(e+38))},tT=function(e){let t=[],r=e.length,n=0,i=128,s=72,a=e.lastIndexOf("-");a<0&&(a=0);for(let r=0;r<a;++r)e.charCodeAt(r)>=128&&tS("not-basic"),t.push(e.charCodeAt(r));for(let l=a>0?a+1:0;l<r;){let a=n;for(let t=1,i=36;;i+=36){var o;l>=r&&tS("invalid-input");let a=(o=e.charCodeAt(l++))>=48&&o<58?26+(o-48):o>=65&&o<91?o-65:o>=97&&o<123?o-97:36;a>=36&&tS("invalid-input"),a>tk((0x7fffffff-n)/t)&&tS("overflow"),n+=a*t;let u=i<=s?1:i>=s+26?26:i-s;if(a<u)break;let c=36-u;t>tk(0x7fffffff/c)&&tS("overflow"),t*=c}let u=t.length+1;s=tC(n-a,u,0==a),tk(n/u)>0x7fffffff-i&&tS("overflow"),i+=tk(n/u),n%=u,t.splice(n++,0,i)}return String.fromCodePoint(...t)},tI=function(e){let t=[],r=(e=function(e){let t=[],r=0,n=e.length;for(;r<n;){let i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){let n=e.charCodeAt(r++);(64512&n)==56320?t.push(((1023&i)<<10)+(1023&n)+65536):(t.push(i),r--)}else t.push(i)}return t}(e)).length,n=128,i=0,s=72;for(let r of e)r<128&&t.push(tE(r));let a=t.length,o=a;
16for(a&&t.push("-");o<r;){let r=0x7fffffff;for(let t of e)t>=n&&t<r&&(r=t);let l=o+1;for(let u of(r-n>tk((0x7fffffff-i)/l)&&tS("overflow"),i+=(r-n)*l,n=r,e))if(u<n&&++i>0x7fffffff&&tS("overflow"),u===n){let e=i;for(let r=36;;r+=36){let n=r<=s?1:r>=s+26?26:r-s;if(e<n)break;let i=e-n,a=36-n;t.push(tE(tO(n+i%a,0))),e=tk(i/a)}t.push(tE(tO(e,0))),s=tC(i,l,o===a),i=0,++o}++i,++n}return t.join("")},tD={toASCII:function(e){return tA(e,function(e){return t_.test(e)?"xn--"+tI(e):e})},toUnicode:function(e){return tA(e,function(e){return tv.test(e)?tT(e.slice(4).toLowerCase()):e})}},tj={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},tR=/^(vbscript|javascript|file|data):/,tN=/^data:image\/(gif|png|jpeg|webp);/;function t$(e){let t=e.trim().toLowerCase();return!tR.test(t)||tN.test(t)}let tM=["http:","https:","mailto:"];function tF(e){let t=N(e,!0);if(t.hostname&&(!t.protocol||tM.indexOf(t.protocol)>=0))try{t.hostname=tD.toASCII(t.hostname)}catch(e){}return x(k(t))}function tP(e){let t=N(e,!0);if(t.hostname&&(!t.protocol||tM.indexOf(t.protocol)>=0))try{t.hostname=tD.toUnicode(t.hostname)}catch(e){}return v(k(t),v.defaultChars+"%")}function tL(e,t){if(!(this instanceof tL))return new tL(e,t);t||J(e)||(t=e||{},e="default"),this.inline=new to,this.block=new e2,this.core=new eV,this.renderer=new eT,this.linkify=new tb,this.validateLink=t$,this.normalizeLink=tF,this.normalizeLinkText=tP,this.utils=h,this.helpers=ee({},f),this.options={},this.configure(e),t&&this.set(t)}function tz(){var e=12;let t=tq();return(function(e=16){let t=new Uint8Array(e);return crypto.getRandomValues(t),t})(12).reduce((e,r)=>e+t[r],"").slice(0,e)}tL.prototype.set=function(e){return ee(this.options,e),this},tL.prototype.configure=function(e){let t=this;if(J(e)){let t=e;if(!(e=tj[t]))throw Error('Wrong `markdown-it` preset "'+t+'", check name')}if(!e)throw Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(r){e.components[r].rules&&t[r].ruler.enableOnly(e.components[r].rules),e.components[r].rules2&&t[r].ruler2.enableO
16nly(e.components[r].rules2)}),this},tL.prototype.enable=function(e,t){let r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){r=r.concat(this[t].ruler.enable(e,!0))},this),r=r.concat(this.inline.ruler2.enable(e,!0));let n=e.filter(function(e){return 0>r.indexOf(e)});if(n.length&&!t)throw Error("MarkdownIt. Failed to enable unknown rule(s): "+n);return this},tL.prototype.disable=function(e,t){let r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){r=r.concat(this[t].ruler.disable(e,!0))},this),r=r.concat(this.inline.ruler2.disable(e,!0));let n=e.filter(function(e){return 0>r.indexOf(e)});if(n.length&&!t)throw Error("MarkdownIt. Failed to disable unknown rule(s): "+n);return this},tL.prototype.use=function(e){let t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},tL.prototype.parse=function(e,t){if("string"!=typeof e)throw Error("Input data should be a String");let r=new this.core.State(e,this,t);return this.core.process(r),r.tokens},tL.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},tL.prototype.parseInline=function(e,t){let r=new this.core.State(e,this,t);return r.inlineMode=!0,this.core.process(r),r.tokens},tL.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};let tq=(()=>{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}})(),tU=(0,p.Fc)((0,p.Jo)({})),tB=({current:e,next:t})=>(0,m.n2)(e)&&(0,m.n2)(t)?`
17`:(0,m.IG)(e)&&(0,m.IG)(t)&&"blockquote"===e.style&&"blockquote"===t.style?`
18>
19`:`
20
21`;function tV(e){return e.replace(/([[\]\\])/g,"\\$1")}function tH(e){return e.replace(/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,"$1")}let tG={types:{},block:{normal:({children:e})=>e&&""!==e.trim()?e:"",blockquote:({children:e})=>e?e.split(`
22`).map(e=>`> ${e}`).join(`
23`):">",h1:({children:e})=>`# ${e}`,h2:({children:e})=>`## ${e}`,h3:({children:e})=>`### ${e}`,h4:({children:e})=>`#### ${e}`,h5:({children:e})=>`##### ${e}`,h6:({children:e})=>`###### ${e}`},marks:{em:({children:e})=>`_${e}_`,strong:({children:e})=>`**${e}**`,code:({children:e})=>`\`${e}\``,underline:({children:e})=>`<u>${e}</u>`,"strike-through":({children:e})=>`~~${e}~~`,link:({children:e,value:t})=>{let r=t?.href||"",n=t?.title||"";if(function(e){let t=(e||"").trim(),r=t.charAt(0);if("#"===r||"/"===r)return!0;let n=t.indexOf(":");if(-1===n||-1!==["http","https","mailto","tel"].indexOf(t.slice(0,n).toLowerCase()))return!0;let i=t.indexOf("?");if(-1!==i&&n>i)return!0;let s=t.indexOf("#");return -1!==s&&n>s}(r)){if(/["'][^"']*[<>]|[<>][^<>]*["']/.test(r)){let t=r.replace(/["<>() ]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`);return`[${tV(e)}](${t})`}return`[${tV(e)}](${r}${n?` "${n.replace(/([\\"])/g,"\\$1")}"`:""})`}return e}},listItem:({children:e,value:t,listIndex:r})=>{let n=t.listItem||"bullet",i=t.level||1,s="   ".repeat(i-1);if("number"===n)return`${s}${r??1}. ${e}`;if("task"===n){let r="checked"in t&&"boolean"==typeof t.checked&&t.checked?"[x]":"[ ]";return`${s}- ${r} ${e}`}return`${s}- ${e}`},hardBreak:()=>`  
24`,unknownType:({value:e,isInline:t})=>{let r=`\`\`\`json
25${JSON.stringify(e,null,2)}
26\`\`\``;return t?`
27${r}
28`:r},unknownMark:({children:e})=>e,unknownListItem:({children:e})=>`- ${e}
29`,unknownBlockStyle:({children:e})=>e??""};function tW(e,t={}){var r,n;let i={block:{...tG.block,...t.block},listItem:t.listItem??tG.listItem,marks:{...tG.marks,...t.marks},types:{...tG.types,...t.types},hardBreak:t.hardBreak??tG.hardBreak,unknownType:t.unknownType??tG.unknownType,unknownBlockStyle:t.unknownBlockStyle??tG.unknownBlockStyle,unknownListItem:t.unknownListItem??tG.unknownListItem,unknownMark:t.unknownMark??tG.unknownMark},s=t.blockSpacing??tB,a=(r=i,n=function(e){let t,r=new Map,n=new Map;for(let i=0;i<e.length;i++){let s=e.at(i);if(void 0===s)continue;if(s._key||(s._key=tz()),!(0,p.zS)({schema:tU},s)||void 0===s.listItem||void 0===s.level){r.clear(),t=void 0;continue}if(!t||t.listItem===s.listItem&&t.level<s.level){let e=r.get(s.listItem)??new Map;e.set(s.level,1),r.set(s.listItem,e),n.set(s._key,1),t={listItem:s.listItem,level:s.level};continue}r.forEach((e,t)=>{if(t===s.listItem)return;let r=[];e.forEach((e,t)=>{t>=s.level&&r.push(t)}),r.forEach(t=>{e.delete(t)})});let a=r.get(s.listItem)??new Map,o=a.get(s.level)??0;a.set(s.level,o+1),r.set(s.listItem,a),n.set(s._key,o+1),t={listItem:s.listItem,level:s.level}}return n}(e),function e(t){var i,s,a,o;let{node:l,index:u,isInline:c}=t;return(0,m.n2)(l)?function(t,i){let s=r.listItem,a=("function"==typeof s?s:s[t.listItem])||r.unknownListItem,o=(0,m.Pq)(t).map((t,r)=>e({node:t,isInline:!0,index:r})).join("");if(t.style&&"normal"!==t.style){let{listItem:r,...n}=t;o=(o=e({node:n,index:i,isInline:!1})).replace(/\n+$/,"")}return a({value:t,index:i,listIndex:t._key?n.get(t._key):void 0,isInline:!1,renderNode:e,children:o})}(l,u):(0,m.tO)(l)?function(t){let{markDef:n,markType:i,markKey:s}=t,a=r.marks[i]||r.unknownMark,o=t.children.map((t,r)=>e({node:t,index:r,isInline:!0}));return a({text:(0,m.fg)(t),value:n,markType:i,markKey:s,renderNode:e,children:o.join("")})}(l):(0,m.IG)(l)?function(t,n,i){let{_key:s,...a}=function(e){let{node:t,index:r,isInline:n,renderNode:i}=e,s=(0,m.Pq)(t).map((e,t)=>i({node:e,isInline:!0,index:t,renderNode:i}));return{_key:t._key||tz(),children:s.join(""),index:r,isInline:n,node:t}}({node:t,index:n,isInline:i,renderNode:e}),o=a.node.style||"normal";return(("function"==typeof r.block?r.block:r.block[o])||r.unknownBlockStyle)({...a,value:a.node,renderNode:e})}(l,u,c):(0,m.YA)(l)?(i=l).text===`
30`?r.hardBreak():i.text:(s=l,a=u,o=c,(r.types[s._type]??r.unknownType)({value:s,isInline:o,index:a,renderNode:e}))});return e.map((t,r)=>{let n=a({node:t,index:r,isInline:!1,renderNode:a});if(r===e.length-1)return n;let i=e.at(r+1);if(!i)return n;let o=s({current:t,next:i})??`
31
32`;return`${n}${o}`}).join("")}let tZ={name:"normal"},tY={name:"h1"},tK={name:"h2"},tJ={name:"h3"},tX={name:"h4"},tQ={name:"h5"}
32,t0={name:"h6"},t1={name:"blockquote"},t2={name:"number"},t5={name:"bullet"},t3={name:"task"},t4={name:"strong"},t6={name:"em"},t8={name:"code"},t9={name:"strike-through"},t7={name:"link",fields:[{name:"href",type:"string"},{name:"title",type:"string"}]},re={name:"code",fields:[{name:"language",type:"string"},{name:"code",type:"string"}]},rt={name:"image",fields:[{name:"src",type:"string"},{name:"alt",type:"string"},{name:"title",type:"string"}]},rr={name:"horizontal-rule"},rn={name:"html",fields:[{name:"html",type:"string"}]},ri={name:"callout",fields:[{name:"tone",type:"string"},{name:"content",type:"array"}]},rs=(0,p.Fc)((0,p.Jo)({block:{fields:[{name:"checked",type:"boolean"}]},styles:[tZ,tY,tK,tJ,tX,tQ,t0,t1],lists:[t2,t5,t3],decorators:[t4,t6,t8,t9],annotations:[t7],blockObjects:[ri,re,rr,rn,rt,{name:"table",fields:[{name:"headerRows",type:"number"},{name:"alignment",type:"array"},{name:"rows",type:"array"}]}],inlineObjects:[rt]}));function ra(e){return({context:t})=>{let r=t.schema.styles.find(t=>t.name===e.name);if(r)return r.name}}function ro(e){return({context:t})=>{let r=t.schema.lists.find(t=>t.name===e.name);if(r)return r.name}}function rl(e){return({context:t})=>{let r=t.schema.decorators.find(t=>t.name===e.name);if(r)return r.name}}function ru(e){return({context:t,value:r,isInline:n})=>{let i=(n?t.schema.inlineObjects:t.schema.blockObjects).find(t=>t.name===e.name);if(!i)return;let s=i.fields.reduce((e,t)=>{let n=r[t.name];return void 0!==n&&(e[t.name]=n),e},{});return{_key:t.keyGenerator(),_type:i.name,...s}}}let rc={block:{normal:ra(tZ),blockquote:ra(t1),h1:ra(tY),h2:ra(tK),h3:ra(tJ),h4:ra(tX),h5:ra(tQ),h6:ra(t0)},listItem:{number:ro(t2),bullet:ro(t5),task:ro(t3)},marks:{strong:rl(t4),em:rl(t6),code:rl(t8),strikeThrough:rl(t9),link:({context:e,value:t})=>{let r=e.schema.annotations.find(e=>e.name===t7.name);if(!r)return;let n=r.fields.reduce((e,r)=>{let n=t[r.name];return void 0!==n&&(e[r.name]=n),e},{});return{_key:e.keyGenerator(),_type:r.name,...n}}},types:{code:({context:e,value:t,isInline:r})=>{let n=ru(re)({context:e,value:t,isInline:r});if(n&&"code"in n)return n},horizontalRule:ru(rr),html:ru(rn),image:({context:e,value:t,isInline:r})=>{let n=ru(rt)({context:e,value:t,isInline:r});if(n&&"src"in n)return n},callout:ru(ri)}};function rd(e,t){for(let r of e.rows)for(let e of r.cells)for(let r of e.value)t.push(r)}function rh(e,t){let r={schema:t?.schema??rs,keyGenerator:t?.keyGenerator??tz,html:{inline:t?.html?.inline??"skip"},marks:{...rc.marks,...t?.marks},block:{...rc.block,...t?.block},listItem:{...rc.listItem,...t?.listItem},types:{...rc.types,...t?.types}},n=tL({html:!0,linkify:!0,typographer:!1}).enable(["strikethrough","table"]).use(g).parse(e,{}),i=new Map;for(let e=0;e<n.length;e++){if(n[e]?.type!=="list_item_open")continue;let t=-1;for(let r=e+1;r<n.length;r++){let e=n[r];if(e){if("list_item_close"===e.type)break;if("inline"===e.type){t=r;break}}}if(-1===t)continue;let r=n[t];if(!r)continue;let s=r.content.match(/^\[([ xX])\] /);if(!s)continue;let a=" "!==s[1];i.set(e,a),r.content=r.content.slice(s[0].length);let o=r.children?.[0];o&&"string"==typeof o.content&&(o.content=o.content.slice(s[0].length))}let s=[],a=null,o=[],l=[],u=[],c=null,d=!1,h=null,f=null,m=null,y=[],b=null,v=null,_=!1,w=[],x=()=>{for(let e=w.length-1;e>=0;e--){let t=w[e];if(t&&t.currentItem)return t.currentItem.content}return s},k=e=>{x().push(e)},E=e=>{S(),a={_type:"block",style:e,children:[],_key:r.keyGenerator(),markDefs:[]},u=[]},S=()=>{a&&(0===a.children.length&&a.children.push({_type:r.schema.span.name,_key:r.keyGenerator(),text:"",marks:[]}),a.markDefs=u,k(a),a=null,u=[])},A=e=>{if(0===e.length)return;if(!a){let e=c??r.block.normal({context:{schema:r.schema}});e?E(e):(console.warn('No default style found, using "normal"'),E("normal"))}if(!a)throw Error("Expected current block");let t=a.children.at(-1);(0,p.bl)({schema:r.schema},t)&&t.marks?.every(e=>l.includes(e))&&l.every(e=>t.marks?.includes(e))?t.text+=e:a.children.push({_type:r.schema.span.name,_key:r.keyGenerator(),text:e,marks:[...l]})},O=(e,t)=>{if(!a){let e=c??r.block.normal({context:{schema:r.schema}});e?E(e):(console.warn('No default style found, using "normal"'),E("normal"))}if(!a)throw Error("Expected current block");(a.listItem!==e||a.level!==o.length)&&(a.listItem=e,a.level=o.length),void 0!==t&&(a.checked=t)};for(let e=0;e<n.length;e++){let t=n[e];if(t)switch(t.type){case"paragraph_open":{if(d){if(w.at(-1)){a||E(c??r.block.normal({context:{schema:r.schema}})??"normal");break}if(!a){let e=o.at(-1);e&&O(e)}break}let e=c??r.block.normal({context:{schema:r.schema}});if(!e){console.warn('No default style found, using "normal"'),E("normal");break}E(e);break}case"paragraph_close":if(d){w.at(-1)&&S();break}S();break;case"heading_open":{let e=Number(t?.tag?.slice(1)),n={1:r.block.h1,2:r.block.h2,3:r.block.h3,4:r.block.h4,5:r.block.h5,6:r.block.h6}[e],i=n?.({context:{schema:r.schema}})??r.block.normal({context:{schema:r.schema}});if(!i){console.warn('No heading style found, using "normal"'),E("normal");break}E(i);break}case"heading_close":S();break;case"blockquote_open":if(S(),r.types.blockquote){let e=x();y.push({startTarget:e,startIndex:e.length});break}c=r.block.blockquote({context:{schema:r.schema}})??r.block.normal({context:{schema:r.schema}})??"normal";break;case"blockquote_close":if(S(),r.types.blockquote&&y.length>0){let e=y.pop();if(e){let t=e.startTarget.splice(e.startIndex),n=r.types.blockquote({context:{schema:r.schema,keyGenerator:r.keyGenerator},value:{content:t},isInline:!1});if(n)k(n);else{let e=r.block.blockquote({context:{schema:r.schema}})??r.block.normal({context:{schema:r.schema}})??"blockquote";for(let r of t)"block"===r._type?k({...r,style:e}):k(r)}}break}c=null;break;case"bullet_list_open":{if(S(),r.types.list){w.push({kind:"bullet",items:[],currentItem:null}),o.push(null);break}let e=r.listItem.bullet({context:{schema:r.schema}});if(w.push(null),!e){o.push(null);break}o.push(e);break}case"ordered_list_open":{if(S(),r.types.list){w.push({kind:"number",items:[],currentItem:null}),o.push(null);break}let e=r.listItem.number({context:{schema:r.schema}});if(w.push(null),!e){o.push(null);break}o.push(e);break}case"bullet_list_close":case"ordered_list_close":{let e=w.pop();if(o.pop(),e&&r.types.list){let t=e.items.some(e=>
32"checked"in e)?"task":e.kind,n=r.types.list({context:{schema:r.schema,keyGenerator:r.keyGenerator},value:{kind:t,items:e.items},isInline:!1});if(n)k(n);else{let n=("task"===t?r.listItem.task?.({context:{schema:r.schema}}):"number"===t?r.listItem.number({context:{schema:r.schema}}):r.listItem.bullet({context:{schema:r.schema}}))??null,i=w.length+1;for(let t of e.items)for(let e of t.content)"block"!==e._type||null===n||"listItem"in e?k(e):k({...e,listItem:n,level:i,...void 0===t.checked?{}:{checked:t.checked}})}}break}case"list_item_open":{let t=w.at(-1);if(a&&S(),t){let n=i.get(e);t.currentItem={_type:"list-item",_key:r.keyGenerator(),...void 0===n?{}:{checked:n},content:[]},d=!0;break}let n=o.at(-1);if(void 0===n)throw Error("Expected an open list");let s=i.get(e),l=n,u;if(void 0!==s){let e=r.listItem.task?.({context:{schema:r.schema}});e&&(l=e,u=s)}if(null===l){let e=c??r.block.normal({context:{schema:r.schema}});e?E(e):(console.warn('No default style found, using "normal"'),E("normal")),d=!0;break}O(l,u),d=!0;break}case"list_item_close":{let e=w.at(-1);if(e&&e.currentItem){S(),e.items.push(e.currentItem),e.currentItem=null,d=!1;break}d=!1,S();break}case"fence":{S();let e=t.info.trim()||void 0,n=t.content.replace(/\n$/,""),i=r.types.code({context:{schema:r.schema,keyGenerator:r.keyGenerator},value:{language:e,code:n},isInline:!1});if(!i){let e=r.block.normal({context:{schema:r.schema}});e?E(e):(console.warn('No default style found, using "normal"'),E("normal")),A(n),S();break}k(i);break}case"hr":{S();let e=r.types.horizontalRule({context:{schema:r.schema,keyGenerator:r.keyGenerator},value:{},isInline:!1});if(!e){let e=r.block.normal({context:{schema:r.schema}});e?E(e):(console.warn('No default style found, using "normal"'),E("normal")),A("---"),S();break}k(e);break}case"html_block":{S();let e=t.content.trim();if(!e)break;let n=r.types.html({context:{schema:r.schema,keyGenerator:r.keyGenerator},value:{html:e},isInline:!1});if(!n){let t=r.block.normal({context:{schema:r.schema}});t?E(t):(console.warn('No default style found, using "normal"'),E("normal")),A(e),S();break}k(n);break}case"code_block":{S();let e=t.content.replace(/\n$/,""),n=r.types.code({context:{schema:r.schema,keyGenerator:r.keyGenerator},value:{language:void 0,code:e},isInline:!1});if(n)k(n);else{let t=r.block.normal({context:{schema:r.schema}});t?E(t):(console.warn('No default style found, using "normal"'),E("normal")),A(e),S()}break}case"table_open":S(),b={rows:[],headerRows:0,alignment:[]};break;case"table_close":if(!b)break;if(r.types.table){let e=b.alignment.some(e=>null!==e),t=r.types.table({context:{schema:r.schema,keyGenerator:r.keyGenerator},value:{rows:b.rows,headerRows:b.headerRows>0?b.headerRows:void 0,alignment:e?b.alignment:void 0},isInline:!1});t?k(t):rd(b,x())}else rd(b,x());b=null;break;case"thead_open":_=!0;break;case"thead_close":_=!1;break;case"tbody_open":case"tbody_close":case"alert_title":break;case"tr_open":v=[];break;case"tr_close":b&&v&&(b.rows.push({_key:r.keyGenerator(),_type:"row",cells:v}),_&&b.headerRows++),v=null;break;case"th_open":case"td_open":{b&&_&&"th_open"===t.type&&b.alignment.push(function(e){if(!e)return null;let t=e.match(/text-align\s*:\s*(left|center|right)/);return t?t[1]:null}(t.attrGet("style")));let e=r.block.normal({context:{schema:r.schema}});e?E(e):(console.warn('No default style found, using "normal"'),E("normal"));break}case"th_close":case"td_close":{S();let e=[],t=x();if(t.length>0){let r=t.at(-1);r&&"block"===r._type&&e.push(t.pop())}0===e.length&&e.push({_type:"block",style:r.block.normal({context:{schema:r.schema}})||"normal",children:[{_type:r.schema.span.name,_key:r.keyGenerator(),text:"",marks:[]}],_key:r.keyGenerator(),markDefs:[]});let n=e[0];if(1===e.length&&n&&"block"===n._type&&"children"in n&&Array.isArray(n.children)&&1===n.children.length){let t=n.children[0];"object"==typeof t&&null!==t&&"_type"in t&&t._type!==r.schema.span.name&&"image"===t._type&&(e[0]=t)}null!==v&&v.push({_type:"cell",_key:r.keyGenerator(),value:e});break}case"inline":{let e=null!==v;if(t.children?.length===1&&t.children[0]?.type==="image"){let n=t.children[0];if(!n)break;let i=n.attrs?.find(([e])=>"src"===e)?.at(1)||"",s=tH(n.content||""),l=n.attrs?.find(([e])=>"title"===e)?.at(1)||void 0,c=r.types.image({context:{schema:r.schema,keyGenerator:r.keyGenerator},value:{src:i,alt:s,title:l},isInline:!1});if(c){e?a&&"children"in a&&a.children.push(c):(a&&"children"in a&&a.children.length>0?S():(a=null,u=[]),k(c));break}let h=r.types.image({context:{schema:r.schema,keyGenerator:r.keyGenerator},value:{src:i,alt:s,title:l},isInline:!0});if(h){if(!a)if(d)if(w.at(-1))E(r.block.normal({context:{schema:r.schema}})??"normal");else{let e=o.at(-1);e&&O(e)}else{let e=r.block.normal({context:{schema:r.schema}});e&&E(e)}a&&"children"in a&&a.children.push(h);break}A(`![${s}](${i})`);break}for(let n of t.children??[])switch(n.type){case"text":A(n.content);break;case"softbreak":case"hardbreak":A(`
33`);break;case"code_inline":{let e=r.marks.code({context:{schema:r.schema}});if(!e){A(n.content);break}l.push(e),A(n.content);let t=l.lastIndexOf(e);-1!==t&&l.splice(t,1);break}case"strong_open":{let e=r.marks.strong({context:{schema:r.schema}});if(!e)break;l.push(e);break}case"strong_close":{let e=r.marks.strong({context:{schema:r.schema}});if(!e)break;let t=l.lastIndexOf(e);-1!==t&&l.splice(t,1);break}case"em_open":{let e=r.marks.em({context:{schema:r.schema}});if(!e)break;l.push(e);break}case"em_close":{let e=r.marks.em({context:{schema:r.schema}});if(!e)break;let t=l.lastIndexOf(e);-1!==t&&l.splice(t,1);break}case"s_open":{let e=r.marks.strikeThrough({context:{schema:r.schema}});if(!e)break;l.push(e);break}case"s_close":{let e=r.marks.strikeThrough({context:{schema:r.schema}});if(!e)break;let t=l.lastIndexOf(e);-1!==t&&l.splice(t,1);break}case"link_open":{let e=n.attrs?.find(([e])=>"href"===e)?.at(1);if(!e)break;let t=n.attrs?.find(([e])=>"title"===e)?.at(1),i=r.marks.link({context:{schema:r.schema,keyGenerator:r.keyGenerator},value:{href:e,title:t}});if(!i)break;u.push(i),l.push(i._key);break}
33case"link_close":{let e,t=new Set(u.map(e=>e._key));for(let r of l.reverse())if(t.has(r)){e=l.indexOf(r);break}if(void 0!==e){let t=l.length-1-e;l.splice(t,1)}break}case"image":{let t=n.attrs?.find(([e])=>"src"===e)?.at(1)||"",i=tH(n.content||""),s=r.types.image({context:{schema:r.schema,keyGenerator:r.keyGenerator},value:{src:t,alt:i,title:void 0},isInline:!0});if(s){if(!a){let e=r.block.normal({context:{schema:r.schema}});e?E(e):(console.warn('No default style found, using "normal"'),E("normal"))}if(!a)throw Error("Expected current block after startBlock");a.children.push(s);break}let o=r.types.image({context:{schema:r.schema,keyGenerator:r.keyGenerator},value:{src:t,alt:i,title:void 0},isInline:!1});if(!o){A(`![${i}](${t})`);break}if(e){a&&"children"in a&&a.children.push(o);break}S(),k(o);let l=r.block.normal({context:{schema:r.schema}});l&&E(l);break}case"html_inline":"text"===r.html.inline&&A(n.content)}break}case"alert_open":S(),h=(f=x()).length,m=t.markup,c=r.block.blockquote({context:{schema:r.schema}})??r.block.normal({context:{schema:r.schema}})??"normal";break;case"alert_close":if(S(),null!==h&&null!==m&&null!==f){let e=f.splice(h),t=r.types.callout?.({context:{schema:r.schema,keyGenerator:r.keyGenerator},value:{tone:m,content:e},isInline:!1});if(t)k(t);else for(let t of e)k(t)}h=null,f=null,m=null,c=null}}return S(),s}},21782:(e,t,r)=>{"use strict";let n;r.d(t,{_:()=>l});var i=r(33900);let s=r(26088).O;var a=r(33806),o=r(29356);function l(e){let t="history";(0,i.s5)(t,e),(0,i.AS)(t,u)}function u(){if(!function(){let e=s.chrome,t=e&&e.app&&e.app.runtime,r="history"in s&&!!s.history.pushState&&!!s.history.replaceState;return!t&&r}())return;let e=o.j.onpopstate;function t(e){return function(...t){let r=t.length>2?t[2]:void 0;if(r){let e=n,t=String(r);n=t,(0,i.aj)("history",{from:e,to:t})}return e.apply(this,t)}}o.j.onpopstate=function(...t){let r=o.j.location.href,s=n;if(n=r,(0,i.aj)("history",{from:s,to:r}),e)try{return e.apply(this,t)}catch(e){}},(0,a.GS)(o.j.history,"pushState",t),(0,a.GS)(o.j.history,"replaceState",t)}},21797:(e,t,r)=>{"use strict";r.d(t,{g:()=>i});var n=r(97537);function i(e,t,r){let i=(0,n.a)(e,null==r?void 0:r.in);return i.setMinutes(t),i}},21836:(e,t,r)=>{var n=r(48644);e.exports=function(e,t,r){return null==e?e:n(e,t,r)}},22124:(e,t,r)=>{"use strict";let n=r(98520);e.exports=(e,t)=>new n(e,t).minor},22446:(e,t,r)=>{var n=r(15719);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=!!t,t}},22551:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},22645:(e,t,r)=>{"use strict";r.d(t,{I:()=>s});var n=r(44854),i=r(69427);function s(e,t,r){let s=(0,i.c)(e,t,r)/7;return(0,n.u)(null==r?void 0:r.roundingMethod)(s)}},22707:(e,t,r)=>{"use strict";r.d(t,{Bh:()=>o,so:()=>s,wm:()=>a});var n=r(98833),i=r(93790);function s(e){return e.children.map(e=>e.text??"").join("")}function a(e,t){if(!(0,n.zS)(e,t))return!1;let r=t.children.every(t=>(0,n.bl)(e,t)),i=s(t);return r&&""===i}function o({context:e,block:t}){let r=(0,i.Jo)(e.selection),s=(0,i.aR)(e.selection);if(!r||!s)return t;let a=(0,i.XE)(r);if(a!==(0,i.XE)(s)||a!==t._key)return t;let o=(0,i.qX)(r),l=(0,i.qX)(s);if(!o||!l)return t;let u=!1,c=[];for(let i of t.children){if(i._key===o){if(u=!0,(0,n.bl)(e,i)){let e=i._key===l?i.text.slice(r.offset,s.offset):i.text.slice(r.offset);c.push({...i,text:e})}else c.push(i);if(o===l)break;continue}if(i._key===l){(0,n.bl)(e,i)?c.push({...i,text:i.text.slice(0,s.offset)}):c.push(i);break}u&&c.push(i)}return{...t,children:c}}},22850:(e,t,r)=>{"use strict";r.d(t,{Te:()=>o});var n=r(60266),i=r(14711),s=r(52597);let a="undefined"!=typeof document?n.useLayoutEffect:n.useEffect;function o(e){return function({useFlushSync:e=!0,directDomUpdates:t=!1,directDomUpdatesMode:r="transform",...o}){let l=n.useReducer(e=>e+1,0)[1],u=n.useRef({enabled:t,mode:r,container:null,lastSize:null,lastPositions:new WeakMap,prevRange:null});u.current.enabled=t,u.current.mode=r;let c=e=>{let t=u.current;if(!t.enabled||!t.container)return;let r=e.getTotalSize();if(r!==t.lastSize){t.lastSize=r;let n=e.options.horizontal?"width":"height";t.container.style[n]=`${r}px`}let n=!!e.options.horizontal,i="transform"===t.mode,s=n?"left":"top",a=e.options.scrollMargin;for(let r of e.getVirtualItems()){let o=r.start-a,l=e.elementsCache.get(r.key);l&&t.lastPositions.get(l)!==o&&(t.lastPositions.set(l,o),i?l.style.transform=n?`translate3d(${o}px, 0, 0)`:`translate3d(0, ${o}
33px, 0)`:l.style[s]=`${o}px`)}},d={...o,onChange:(t,r)=>{var n;let s=u.current,a=!0;if(s.enabled){c(t);let e=t.range,r=s.prevRange;(a=!r||r.isScrolling!==t.isScrolling||r.startIndex!==(null==e?void 0:e.startIndex)||r.endIndex!==(null==e?void 0:e.endIndex))&&(s.prevRange=e?{startIndex:e.startIndex,endIndex:e.endIndex,isScrolling:t.isScrolling}:null)}a&&(e&&r?(0,i.flushSync)(l):l()),null==(n=o.onChange)||n.call(o,t,r)}},[h]=n.useState(()=>{let e=new s.YV(d);return Object.assign(e,{containerRef:t=>{let r=u.current;if(r.container=t,r.lastSize=null,t&&r.enabled){let n=e.getTotalSize();r.lastSize=n;let i=e.options.horizontal?"width":"height";t.style[i]=`${n}px`}}})});return h.setOptions(d),a(()=>h._didMount(),[]),a(()=>h._willUpdate()),a(()=>{c(h)}),h}({observeElementRect:s.T6,observeElementOffset:s.AO,scrollToFn:s.Ox,...e})}},22966:(e,t,r)=>{"use strict";r.d(t,{C:()=>s});var n=r(20883),i=r(89956);function s(e,t,r){return(void 0===r&&(r=1/0),(0,i.T)(t))?(0,n.Z)(function(){return e},t,r):("number"==typeof t&&(r=t),(0,n.Z)(function(){return e},r))}},23078:(e,t,r)=>{var n=r(14831);e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},23270:(e,t,r)=>{var n=r(18053),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():i.call(t,r,1),--this.size,!0)}},23641:(e,t,r)=>{var n=r(32259),i=r(7290),s=r(93041);e.exports=function(e,t,r){var a=e.length;if(a<2)return a?s(e[0]):[];for(var o=-1,l=Array(a);++o<a;)for(var u=e[o],c=-1;++c<a;)c!=o&&(l[o]=n(l[o]||u,e[c],t,r));return s(i(l,1),t,r)}},23672:(e,t,r)=>{"use strict";r.d(t,{V:()=>i});var n=r(97537);function i(e,t){let r=(0,n.a)(e,null==t?void 0:t.in);return r.setSeconds(59,999),r}},23701:(e,t,r)=>{"use strict";r.d(t,{v:()=>a});var n=r(5885),i=r(84841),s=r(81451);function a(e){return void 0===e&&(e=o),(0,i.N)(function(t,r){var n=!1;t.subscribe((0,s._)(r,function(e){n=!0,r.next(e)},function(){return n?r.complete():r.error(e())}))})}function o(){return new n.G}},23765:e=>{"use strict";var t;function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}let n=Object.entries,i=Object.setPrototypeOf,s=Object.isFrozen,a=Object.getPrototypeOf,o=Object.getOwnPropertyDescriptor,l=Object.freeze,u=Object.seal,c=Object.create,d="undefined"!=typeof Reflect&&Reflect,h=d.apply,f=d.construct;l||(l=function(e){return e}),u||(u=function(e){return e}),h||(h=function(e,t){for(var r=arguments.length,n=Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return e.apply(t,n)}),f||(f=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return new e(...r)});let p=N(Array.prototype.forEach),m=N(Array.prototype.lastIndexOf),g=N(Array.prototype.pop),y=N(Array.prototype.push),b=N(Array.prototype.splice),v=Array.isArray,_=N(String.prototype.toLowerCase),w=N(String.prototype.toString),x=N(String.prototype.match),k=N(String.prototype.replace),E=N(String.prototype.indexOf),S=N(String.prototype.trim),A=N(Number.prototype.toString),O=N(Boolean.prototype.toString),C="undefined"==typeof BigInt?null:N(BigInt.prototype.toString),T="undefined"==typeof Symbol?null:N(Symbol.prototype.toString),I=N(Object.prototype.hasOwnProperty),D=N(Object.prototype.toString),j=N(RegExp.prototype.test),R=(t=TypeError,function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return f(t,r)});function N(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return h(e,t,n)}}function $(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_;if(i&&i(e,null),!v(t))return e;let n=t.length;for(;n--;){let i=t[n];if("string"==typeof i){let e=r(i);e!==i&&(s(t)||(t[n]=e),i=e)}e[i]=!0}return e}function M(e){let t=c(null);for(let s of n(e)){var i=function(e){if(Array.isArray(e))return e}(s)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,s,a,o=[],l=!0,u=!1;try{s=(r=r.call(e)).next,!1;for(;!(l=(n=s.call(r)).done)&&(o.push(n.value),o.length!==t);l=!0);}catch(e){u=!0,i=e}
33finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}(s,2)||function(e,t){if(e){if("string"==typeof e)return r(e,2);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)?r(e,t):void 0}}(s,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();let n=i[0],a=i[1];I(e,n)&&(v(a)?t[n]=function(e){for(let t=0;t<e.length;t++)I(e,t)||(e[t]=null);return e}(a):a&&"object"==typeof a&&a.constructor===Object?t[n]=M(a):t[n]=a)}return t}function F(e,t){for(;null!==e;){let r=o(e,t);if(r){if(r.get)return N(r.get);if("function"==typeof r.value)return N(r.value)}e=a(e)}return function(){return null}}let P=l(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),L=l(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),z=l(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),q=l(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),U=l(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),B=l(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),V=l(["#text"]),H=l(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
33spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),G=l(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),W=l(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Z=l(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Y=u(/{{[\w\W]*|^[\w\W]*}}/g),K=u(/<%[\w\W]*|^[\w\W]*%>/g),J=u(/\${[\w\W]*/g),X=u(/^data-[\-\w.\u00B7-\uFFFF]+$/),Q=u(/^aria-[\-\w]+$/),ee=u(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),et=u(/^(?:\w+script|data):/i),er=u(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),en=u(/^html$/i),ei=u(/^[a-z][.\w]*(-[.\w]+)+$/i),es=u(/<[/\w!]/g),ea=u(/<[/\w]/g),eo=u(/<\/no(script|embed|frames)/i),el=u(/\/>/i),eu={element:1,text:3,processingInstruction:7,comment:8,document:9,documentFragment:11},ec=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let r=null,n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(r=t.getAttribute(n));let i="dompurify"+(r?"#"+r:"");try{return e.createPolicy(i,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}},ed=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},eh=function(e,t,r,n){return I(e,t)&&v(e[t])?$(n.base?M(n.base):{},e[t],n.transform):r};e.exports=function e(){let t,r,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window,s=t=>e(t);if(s.version="3.4.11",s.removed=[],!i||!i.document||i.document.nodeType!==eu.document||!i.Element)return s.isSupported=!1,s;let a=i.document,o=a,d=o.currentScript;i.DocumentFragment;let h=i.HTMLTemplateElement,f=i.Node,N=i.Element,ef=i.NodeFilter;void 0===i.NamedNodeMap&&(i.NamedNodeMap||i.MozNamedAttrMap),i.HTMLFormElement;let ep=i.DOMParser,em=i.trustedTypes,eg=N.prototype,ey=F(eg,"cloneNode"),eb=F(eg,"remove"),ev=F(eg,"nextSibling"),e_=F(eg,"childNodes"),ew=F(eg,"parentNode"),ex=F(eg,"shadowRoot"),ek=F(eg,"attributes"),eE=f&&f.prototype?F(f.prototype,"nodeType"):null,eS=f&&f.prototype?F(f.prototype,"nodeName"):null;if("function"==typeof h){let e=a.createElement("template");e.content&&e.content.ownerDocument&&(a=e.content.ownerDocument)}let eA="",eO=!1,eC=0,eT=function(){if(eC>0)throw R('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},eI=function(e){eT(),eC++;try{return t.createHTML(e)}finally{eC--}},eD=function(e){eT(),eC++;try{return t.createScriptURL(e)}finally{eC--}},ej=a,eR=ej.implementation,eN=ej.createNodeIterator,e$=ej.createDocumentFragment,eM=ej.getElementsByTagName,eF=o.importNode,eP=ed();s.isSupported="function"==typeof n&&"function"==typeof ew&&eR&&void 0!==eR.createHTMLDocument;let eL=ee,ez=null,eq=$({}
33,[...P,...L,...z,...U,...V]),eU=null,eB=$({},[...H,...G,...W,...Z]),eV=Object.seal(c(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),eH=null,eG=null,eW=Object.seal(c(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),eZ=!0,eY=!0,eK=!1,eJ=!0,eX=!1,eQ=!0,e0=!1,e1=!1,e2=null,e5=null,e3=!1,e4=!1,e6=!1,e8=!1,e9=!0,e7=!1,te="user-content-",tt=!0,tr=!1,tn={},ti=null,ts=$({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),ta=null,to=$({},["audio","video","img","source","image","track"]),tl=null,tu=$({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),tc="http://www.w3.org/1998/Math/MathML",td="http://www.w3.org/2000/svg",th="http://www.w3.org/1999/xhtml",tf=th,tp=!1,tm=null,tg=$({},[tc,td,th],w),ty=l(["mi","mo","mn","ms","mtext"]),tb=$({},ty),tv=l(["annotation-xml"]),t_=$({},tv),tw=$({},["title","style","font","a","script"]),tx=null,tk=["application/xhtml+xml","text/html"],tE=null,tS=null,tA=a.createElement("form"),tO=function(e){return e instanceof RegExp||e instanceof Function},tC=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(tS&&tS===e)return;e&&"object"==typeof e||(e={}),e=M(e),tE="application/xhtml+xml"===(tx=-1===tk.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE)?w:_,ez=eh(e,"ALLOWED_TAGS",eq,{transform:tE}),eU=eh(e,"ALLOWED_ATTR",eB,{transform:tE}),tm=eh(e,"ALLOWED_NAMESPACES",tg,{transform:w}),tl=eh(e,"ADD_URI_SAFE_ATTR",tu,{transform:tE,base:tu}),ta=eh(e,"ADD_DATA_URI_TAGS",to,{transform:tE,base:to}),ti=eh(e,"FORBID_CONTENTS",ts,{transform:tE}),eH=eh(e,"FORBID_TAGS",M({}),{transform:tE}),eG=eh(e,"FORBID_ATTR",M({}),{transform:tE}),tn=!!I(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?M(e.USE_PROFILES):e.USE_PROFILES),eZ=!1!==e.ALLOW_ARIA_ATTR,eY=!1!==e.ALLOW_DATA_ATTR,eK=e.ALLOW_UNKNOWN_PROTOCOLS||!1,eJ=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,eX=e.SAFE_FOR_TEMPLATES||!1,eQ=!1!==e.SAFE_FOR_XML,e0=e.WHOLE_DOCUMENT||!1,e4=e.RETURN_DOM||!1,e6=e.RETURN_DOM_FRAGMENT||!1,e8=e.RETURN_TRUSTED_TYPE||!1,e3=e.FORCE_BODY||!1,e9=!1!==e.SANITIZE_DOM,e7=e.SANITIZE_NAMED_PROPS||!1,tt=!1!==e.KEEP_CONTENT,tr=e.IN_PLACE||!1,eL=!function(e){try{return j(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?ee:e.ALLOWED_URI_REGEXP,tf="string"==typeof e.NAMESPACE?e.NAMESPACE:th,tb=I(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?M(e.MATHML_TEXT_INTEGRATION_POINTS):$({},ty),t_=I(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?M(e.HTML_INTEGRATION_POINTS):$({},tv);let n=I(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?M(e.CUSTOM_ELEMENT_HANDLING):c(null);if(eV=c(null),I(n,"tagNameCheck")&&tO(n.tagNameCheck)&&(eV.tagNameCheck=n.tagNameCheck),I(n,"attributeNameCheck")&&tO(n.attributeNameCheck)&&(eV.attributeNameCheck=n.attributeNameCheck),I(n,"allowCustomizedBuiltInElements")&&"boolean"==typeof n.allowCustomizedBuiltInElements&&(eV.allowCustomizedBuiltInElements=n.allowCustomizedBuiltInElements),u(eV),eX&&(eY=!1),e6&&(e4=!0),tn&&(ez=$({},V),eU=c(null),!0===tn.html&&($(ez,P),$(eU,H)),!0===tn.svg&&($(ez,L),$(eU,G),$(eU,Z)),!0===tn.svgFilters&&($(ez,z),$(eU,G),$(eU,Z)),!0===tn.mathMl&&($(ez,U),$(eU,W),$(eU,Z))),eW.tagCheck=null,eW.attributeCheck=null,I(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?eW.tagCheck=e.ADD_TAGS:v(e.ADD_TAGS)&&(ez===eq&&(ez=M(ez)),$(ez,e.ADD_TAGS,tE))),I(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?eW.attributeCheck=e.ADD_ATTR:v(e.ADD_ATTR)&&(eU===eB&&(eU=M(eU)),$(eU,e.ADD_ATTR,tE))),I(e,"ADD_URI_SAFE_ATTR")&&v(e.ADD_URI_SAFE_ATTR)&&$(tl,e.ADD_URI_SAFE_ATTR,tE),I(e,"FORBID_CONTENTS")&&v(e.FORBID_CONTENTS)&&(ti===ts&&(ti=M(ti)),$(ti,e.FORBID_CONTENTS,tE)),I(e,"ADD_FORBID_CONTENTS")&&v(e.ADD_FORBID_CONTENTS)&&(ti===ts&&(ti=M(ti)),$(ti,e.ADD_FORBID_CONTENTS,tE)),tt&&(ez["#text"]=!0),e0&&$(ez,["html","head","body"]),ez.table&&($(ez,["tbody"]),delete eH.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw R('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw R('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let r=t;t=e.TRUSTED_TYPES_POLICY;try{eA=eI("")}catch(e){throw t=r,e}}else null===e.TRUSTED_TYPES_POLICY?(t=void 0,eA=""):(void 0===t&&(eO||(r=ec(em,d),eO=!0),t=r),t&&"string"==typeof eA&&(eA=eI("")));l&&l(e),tS=e},tT=$({},[...L,...z,...q]),tI=$({},[...U,...B]),tD=function(e){var t,r,n;let i=ew(e);i&&i.tagName||(i={namespaceURI:tf,tagName:"template"});let s=_(e.tagName),a=_(i.tagName);return!!tm[e.namespaceURI]&&(e.namespaceURI===td?(t=i).namespaceURI===th?"svg"===s:t.namespaceURI===tc?"svg"===s&&("annotation-xml"===a||tb[a]):!!tT[s]:e.namespaceURI===tc?(r=i).namespaceURI===th?"math"===s:r.namespaceURI===td?"math"===s&&t_[a]:!!tI[s]:e.namespaceURI===th?((n=i).namespaceURI!==td||!!t_[a])&&
33(n.namespaceURI!==tc||!!tb[a])&&!tI[s]&&(tw[s]||!tT[s]):"application/xhtml+xml"===tx&&!!tm[e.namespaceURI])},tj=function(e){y(s.removed,{element:e});try{ew(e).removeChild(e)}catch(t){if(eb(e),!ew(e))throw R("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},tR=function(e){let t=e_(e);if(t){let e=[];p(t,t=>{y(e,t)}),p(e,e=>{try{eb(e)}catch(e){}})}let r=ek(e);if(r)for(let t=r.length-1;t>=0;--t){let n=r[t],i=n&&n.name;if("string"==typeof i)try{e.removeAttribute(i)}catch(e){}}},tN=function(e,t){try{y(s.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){y(s.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(e4||e6)try{tj(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},t$=function(e){let t=ek(e);if(t)for(let r=t.length-1;r>=0;--r){let n=t[r],i=n&&n.name;if("string"==typeof i&&!eU[tE(i)])try{e.removeAttribute(i)}catch(e){}}},tM=function(e){let t=[e];for(;t.length>0;){let e=t.pop();(eE?eE(e):e.nodeType)===eu.element&&t$(e);let r=e_(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},tF=function(e){let r=null,n=null;if(e3)e="<remove></remove>"+e;else{let t=x(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===tx&&tf===th&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let i=t?eI(e):e;if(tf===th)try{r=new ep().parseFromString(i,tx)}catch(e){}if(!r||!r.documentElement){r=eR.createDocument(tf,"template",null);try{r.documentElement.innerHTML=tp?eA:i}catch(e){}}let s=r.body||r.documentElement;return(e&&n&&s.insertBefore(a.createTextNode(n),s.childNodes[0]||null),tf===th)?eM.call(r,e0?"html":"body")[0]:e0?r.documentElement:s},tP=function(e){return eN.call(e.ownerDocument||e,e,ef.SHOW_ELEMENT|ef.SHOW_COMMENT|ef.SHOW_TEXT|ef.SHOW_PROCESSING_INSTRUCTION|ef.SHOW_CDATA_SECTION,null)},tL=function(e){return e=k(e,Y," "),e=k(e,K," "),e=k(e,J," ")},tz=function(e){var t;e.normalize();let r=eN.call(e.ownerDocument||e,e,ef.SHOW_TEXT|ef.SHOW_COMMENT|ef.SHOW_CDATA_SECTION|ef.SHOW_PROCESSING_INSTRUCTION,null),n=r.nextNode();for(;n;)n.data=tL(n.data),n=r.nextNode();let i=null==(t=e.querySelectorAll)?void 0:t.call(e,"template");i&&p(i,e=>{tU(e.content)&&tz(e.content)})},tq=function(e){let t=eS?eS(e):null;return"string"==typeof t&&"form"===tE(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==ek(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==eE(e)||e.childNodes!==e_(e))},tU=function(e){if(!eE||"object"!=typeof e||null===e)return!1;try{return eE(e)===eu.documentFragment}catch(e){return!1}},tB=function(e){if(!eE||"object"!=typeof e||null===e)return!1;try{return"number"==typeof eE(e)}catch(e){return!1}};function tV(e,t,r){0!==e.length&&p(e,e=>{e.call(s,t,r,tS)})}let tH=function(e,t){if(!eH[t]&&tY(t)&&(eV.tagNameCheck instanceof RegExp&&j(eV.tagNameCheck,t)||eV.tagNameCheck instanceof Function&&eV.tagNameCheck(t)))return!1;if(tt&&!ti[t]){let t=ew(e),r=e_(e);if(r&&t){let n=r.length;for(let i=n-1;i>=0;--i){let n=tr?r[i]:ey(r[i],!0);t.insertBefore(n,ev(e))}}}return tj(e),!0},tG=function(e){if(tV(eP.beforeSanitizeElements,e,null),tq(e))return tj(e),!0;let t=tE(eS?eS(e):e.nodeName);if(tV(eP.uponSanitizeElement,e,{tagName:t,allowedTags:ez}),eQ&&e.hasChildNodes()&&!tB(e.firstElementChild)&&j(es,e.textContent)&&j(es,e.innerHTML)||eQ&&e.namespaceURI===th&&"style"===t&&tB(e.firstElementChild)||e.nodeType===eu.processingInstruction||eQ&&e.nodeType===eu.comment&&j(ea,e.data)||0)return tj(e),!0;if(eH[t]||!(eW.tagCheck instanceof Function&&eW.tagCheck(t))&&!ez[t])return tH(e,t);if((eE?eE(e):e.nodeType)===eu.element&&!tD(e)||("noscript"===t||"noembed"===t||"noframes"===t)&&j(eo,e.innerHTML))return tj(e),!0;if(eX&&e.nodeType===eu.text){let t=tL(e.textContent);e.textContent!==t&&(y(s.removed,{element:e.cloneNode()}),e.textContent=t)}return tV(eP.afterSanitizeElements,e,null),!1},tW=function(e,t,r){if(eG[t]||e9&&("id"===t||"name"===t)&&(r in a||r in tA))return!1;let n=eU[t]||eW.attributeCheck instanceof Function&&eW.attributeCheck(t,e);if(eY&&j(X,t));else if(eZ&&j(Q,t));else if(n){if(tl[t]);else if(j(eL,k(r,er,"")));else if(("src"===t||"xlink:href"===t||"href"===t)&&"script"!==e&&0===E(r,"data:")&&ta[e]);else if(eK&&!j(et,k(r,er,"")));else if(r)return!1}else if(!(tY(e)&&(eV.tagNameCheck instanceof RegExp&&j(eV.tagNameCheck,e)||eV.tagNameCheck instanceof Function&&eV.tagNameCheck(e))&&(eV.attributeNameCheck instanceof RegExp&&j(eV.attributeNameCheck,t)||eV.attributeNameCheck instanceof Function&&eV.attributeNameCheck(t,e))||"is"===t&&eV.allowCustomizedBuiltInElements&&(eV.tagNameCheck instanceof RegExp&&j(eV.tagNameCheck,r)||eV.tagNameCheck instanceof Function&&eV.tagNameCheck(r))))return!1;return!0},tZ=$({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),tY=function(e){return!tZ[_(e)]&&j(ei,e)},tK=function(e,r,n,i){if(t&&"object"==typeof em&&"function"==typeof em.getAttributeType&&!n)switch(em.getAttributeType(e,r)){case"TrustedHTML":return eI(i);case"TrustedScriptURL":return eD(i)}return i},tJ=function(e,t,r,n){try{r?e.setAttributeNS(r,t,n):e.setAttribute(t,n),tq(e)?tj(e):g(s.removed)}catch(r){tN(t,e)}},tX=function(e){tV(eP.beforeSanitizeAttributes,e,null);let t=e.attributes;if(!t||tq(e))return;let r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:eU,forceKeepAttr:void 0},n=t.length,i=tE(e.nodeName);for(;n--;){let s=t[n],a=s.name,o=s.namespaceURI,l=s.value,u=tE(a),c="value"===a?l:S(l);if(r.attrName=u,r.attrValue=c,r.keepAttr=!0,r.forceKeepAttr=void 0,tV(eP.uponSanitizeAttribute,e,r),c=r.attrValue,e7&&("id"===u||"name"===u)&&0!==E(c,te)&&(tN(a,e),c=te+c),eQ&&j(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,c)||"attributename"===u&&x(c,"href")){tN(a,e);continue}if(!r.forceKeepAttr){if(!r.keepAttr||!eJ&&j(el,c)||(eX&&(c=tL(c)),!tW(i,u,c))){tN(a,e);continue}(c=tK(i,u,o,c))!==l&&tJ(e,a,o,c)}}tV(eP.afterSanitizeAttributes,e,null)},tQ=function(e){let t=null,r=tP(e);for(tV(eP.beforeSanitizeShadowDOM,e,null);t=r.nextNode();)if(tV(eP.uponSanitizeShadowNode,t,null),tG(t),tX(t),tU(t.content)&&tQ(t.content),(eE?eE(t):t.nodeType)===eu.element){let e=ex(t);tU(e)&&(t0(e),tQ(e))}tV(eP.afterSanitizeShadowDOM,e,null)},t0=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){tQ(e.shadow);continue}let r=e.node,n=(eE?eE(r):r.nodeType)===eu.element,i=e_(r);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(n){let e=eS?eS(r):null;if("string"==typeof e&&"template"===tE(e)){let e=r.content;tU(e)&&t.push({node:e,shadow:null})}}if(n){let e=ex(r);tU(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return s.sanitize=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,i=null,a=null,l=null;if((tp=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!tB(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return A(e);case"boolean":return O(e);case"bigint":return C?C(e):"0";case"symbol":return T?T(e):"Symbol()";case"undefined":default:return D(e);case"function":case"object":{if(null===e)return D(e);let t=F(e,"toString");if("function"==typeof t){let r=t(e);return"string"==typeof r?r:D(r)}return D(e)}}}(e)))throw R("dirty is not a string, aborting");if(!s.isSupported)return e;e1?(ez=e2,eU=e5):tC(r),(eP.uponSanitizeElement.length>0||eP.uponSanitizeAttribute.length>0)&&(ez=M(ez)),eP.uponSanitizeAttribute.length>0&&(eU=M(eU)),s.removed=[];let u=tr&&"string"!=typeof e&&tB(e);if(u){let t=eS?eS(e):e.nodeName;if("string"==typeof t){let e=tE(t);if(!ez[e]||eH[e])throw R("root node is forbidden and cannot be sanitized in-place")}if(tq(e))throw R("root node is clobbered and cannot be sanitized in-place");try{t0(e)}catch(t){throw tR(e),t}}else if(tB(e))(i=(n=tF("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType===eu.element&&"BODY"===i.nodeName||"HTML"===i.nodeName?n=i:n.appendChild(i),t0(i);else{if(!e4&&!eX&&!e0&&-1===e.indexOf("<"))return t&&e8?eI(e):e;if(!(n=tF(e)))return e4?null:e8?eA:""}n&&e3&&tj(n.firstChild);let c=tP(u?e:n);try{for(;a=c.nextNode();)tG(a),tX(a),tU(a.content)&&tQ(a.content)}catch(t){throw u&&tR(e),t}if(u)return p(s.removed,e=>{e.element&&tM(e.element)}),eX&&tz(e),e;if(e4){if(eX&&tz(n),e6)for(l=e$.call(n.ownerDocument);n.firstChild;)l.appendChild(n.firstChild);else l=n;return(eU.shadowroot||eU.shadowrootmode)&&(l=eF.call(o,l,!0)),l}let d=e0?n.outerHTML:n.innerHTML;return e0&&ez["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&j(en,n.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+d),eX&&(d=tL(d)),t&&e8?eI(d):d},s.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};tC(e),e1=!0,e2=ez,e5=eU},s.clearConfig=function(){tS=null,e1=!1,e2=null,e5=null,t=r,eA=""},s.isValidAttribute=function(e,t,r){return tS||tC({}),tW(tE(e),tE(t),r)},s.addHook=function(e,t){"function"==typeof t&&I(eP,e)&&y(eP[e],t)},s.removeHook=function(e,t){if(I(eP,e)){if(void 0!==t){let r=m(eP[e],t);return -1===r?void 0:b(eP[e],r,1)[0]}return g(eP[e])}},s.removeHooks=function(e){I(eP,e)&&(eP[e]=[])},s.removeAllHooks=function(){eP=ed()},s}()},23821:(e,t,r)=>{"use strict";r.d(t,{KU:()=>_,o5:()=>g,m6:()=>b,rm:()=>y,vn:()=>w,v4:()=>v});var n=r(73639),i=r(26088);function s(){return a(i.O),i.O}function a(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||n.M,t[n.M]=t[n.M]||{}}var o=r(85611),l=r(28077);class u{constructor(e,t){let r,n;r=e||new o.H,n=t||new o.H,this._stack=[{scope:r}],this._isolationScope=n}withScope(e){let t,r=this._pushScope();try{t=e(r)}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)}
33getClient(){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(s());return e.stack=e.stack||new u((0,i.B)("defaultCurrentScope",()=>new o.H),(0,i.B)("defaultIsolationScope",()=>new o.H))}function d(e){return c().withScope(e)}function h(e,t){let r=c();return r.withScope(()=>(r.getStackTop().scope=e,t(e)))}function f(e){return c().withScope(()=>e(c().getIsolationScope()))}function p(e){let t=a(e);return t.acs?t.acs:{withIsolationScope:f,withScope:d,withSetScope:h,withSetIsolationScope:(e,t)=>f(t),getCurrentScope:()=>c().getScope(),getIsolationScope:()=>c().getIsolationScope()}}var m=r(33806);function g(){return p(s()).getCurrentScope()}function y(){return p(s()).getIsolationScope()}function b(){return(0,i.B)("globalScope",()=>new o.H)}function v(...e){let t=p(s());if(2===e.length){let[r,n]=e;return r?t.withSetScope(r,n):t.withScope(n)}return t.withScope(e[0])}function _(){return g().getClient()}function w(e){let{traceId:t,spanId:r,parentSpanId:n}=e.getPropagationContext();return(0,m.Ce)({trace_id:t,span_id:r,parent_span_id:n})}},23938:(e,t,r)=>{"use strict";let n=r(98520),i=r(27353);e.exports=(e,t,r)=>{let s=null,a=null,o=null;try{o=new i(t,r)}catch(e){return null}return e.forEach(e=>{o.test(e)&&(!s||-1===a.compare(e))&&(a=new n(s=e,r))}),s}},23994:(e,t)=>{"use strict";for(var r="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),n={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:r?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},s={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++)s["f"+a]=111+a;function o(e){return i[e=e.toLowerCase()]||e}t.v_=function(e,t,r){!t||"byKey"in t||(r=t,t=null),Array.isArray(e)||(e=[e]);var a=e.map(function(e){return function(e,t){var r=t&&t.byKey,a={},l=(e=e.replace("++","+add")).split("+"),u=l.length;for(var c in n)a[n[c]]=!1;var d=!0,h=!1,f=void 0;try{for(var p,m=l[Symbol.iterator]();!(d=(p=m.next()).done);d=!0){var g=p.value,y=g.endsWith("?")&&g.length>1;y&&(g=g.slice(0,-1));var b=o(g),v=n[b];if(g.length>1&&!v&&!i[g]&&!s[b])throw TypeError('Unknown modifier: "'+g+'"');1!==u&&v||(r?a.key=b:a.which=function(e){return s[e=o(e)]||e.toUpperCase().charCodeAt(0)}(g)),v&&(a[v]=!y||null)}}catch(e){h=!0,f=e}finally{try{!d&&m.return&&m.return()}finally{if(h)throw f}}return a}(e,t)}),l=function(e){return a.some(function(t){return function(e,t){for(var r in e){var n=e[r],i=void 0;if(null!=n&&(null!=(i="key"===r&&null!=t.key?t.key.toLowerCase():"which"===r?91===n&&93===t.which?91:t.which:t[r])||!1!==n)&&i!==n)return!1}return!0}(t,e)})};return null==r?l:l(r)}},24102:e=>{var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},24288:(e,t,r)=>{"use strict";r.d(t,{Hb:()=>o,Jr:()=>l});var n=r(60266),i=r(38562),s=r(11385);let a=(0,n.createContext)(s.p8);function o(e){let{children:t,store:r}=e;return(0,n.useEffect)(()=>(0,s.Kc)(r.flush),[r.flush]),(0,n.useEffect)(()=>(0,s.T_)(r.endWithBeacon),[r.endWithBeacon]),(0,i.jsx)(a.Provider,{value:r.logger,children:t})}function l(){return(0,n.useContext)(a)}},24368:(e,t,r)=>{"use strict";r.d(t,{JD:()=>a,i_:()=>n,sy:()=>i,uT:()=>s});let n="sentry.source",i="sentry.sample_rate",s="sentry.op",a="sentry.origin"},24470:(e,t,r)=>
33{var n=r(79845),i=n?n.prototype:void 0,s=i?i.valueOf:void 0;e.exports=function(e){return s?Object(s.call(e)):{}}},24559:(e,t,r)=>{"use strict";let n=r(98520);e.exports=(e,t,r)=>{let i=new n(e,r),s=new n(t,r);return i.compare(s)||i.compareBuild(s)}},24570: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}},24622:(e,t,r)=>{var n=r(92966),i=r(15104);e.exports=function(e){return null==e?[]:n(e,i(e))}},24949:(e,t,r)=>{var n=r(41194);e.exports=function(e,t){return function(r,i){if(null==r)return r;if(!n(r))return e(r,i);for(var s=r.length,a=t?s:-1,o=Object(r);(t?a--:++a<s)&&!1!==i(o[a],a,o););return r}}},25036:(e,t,r)=>{var n=r(76956),i=r(45872),s=r(38767),a=r(53260),o=r(90224),l=r(50375),u=r(46939);e.exports=function(e,t){return a(e)&&o(t)?l(u(e),t):function(r){var a=i(r,e);return void 0===a&&a===t?s(r,e):n(t,a,3)}}},25220:(e,t,r)=>{"use strict";r.d(t,{Vu:()=>l,fj:()=>a,qO:()=>o});var n=r(33806),i=r(29060),s=r(2541);function a(e){let t=(0,i.zf)(),r={sid:(0,s.eJ)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>{var e;return e=r,(0,n.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&&o(r,e),r}function o(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,s.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 r={};t?r={status:t}:"ok"===e.status&&(r={status:"exited"}),o(e,r)}},25305:(e,t,r)=>{"use strict";r.d(t,{F:()=>a});var n=r(56062),i=r(84841),s=r(81451);function a(e,t){return void 0===t&&(t=n.D),e=null!=e?e:o,(0,i.N)(function(r,n){var i,a=!0;r.subscribe((0,s._)(n,function(r){var s=t(r);(a||!e(i,s))&&(a=!1,i=s,n.next(r))}))})}function o(e,t){return e===t}},25325:(e,t,r)=>{e.exports=r(43960)(r(36169),"Map")},25330:(e,t,r)=>{var n=r(13535),i=r(42395),s=r(30734);e.exports=function(e){return e&&e.length?n(e,s,i):void 0}},25395:e=>{e.exports={}},25446:(e,t,r)=>{"use strict";r.d(t,{FF:()=>x,LG:()=>J,Y9:()=>k,YD:()=>D,nX:()=>j,oX:()=>E,ql:()=>K,vX:()=>L});let n="https://cdn.sanity.io",i=/^https:\/\/cdn\.sanity\./,s=/^https:\/\/cdn\.[^/]+\/(images|files)\/[^/]+\/.*?[a-zA-Z0-9_]{24,40}.*$/,a=/^([a-zA-Z0-9_]{24,40}|[a-f0-9]{40})+\.[a-z0-9]+$/,o=/^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]+)$/,h="sanity.fileAsset",f={projectId:"a",dataset:"b"},p="upload-in-progress-placeholder",m="upload-in-progress";class g extends Error{constructor(e,t="Failed to resolve asset ID from source"){super(t),this.unresolvable=!0,this.input=e}}function y(e){return(...t)=>{try{return e(...t)}catch(e){if(e.unresolvable&&"input"in e)return;throw e}}}function b(e){return null!==e&&!Array.isArray(e)&&"object"==typeof e}function v(e){return b(e)&&"string"==typeof e._ref}function _(e){return b(e)&&"string"==typeof e.path}function w(e){return b(e)&&"string"==typeof e.url}function x(e){return u.test(e)}function k(e){return o.test(e)}function E(e){return b(e)&&!!e.asset&&"object"==typeof e.asset}function S(e){return b(e)&&!!e._upload&&!("asset"in e)}function A(e){return i.test(e)||s.test(e)}let O=Object.freeze({left:0,top:0,bottom:0,right:0}),C=Object.freeze({x:.5,y:.5,height:1,width:1}),T=()=>({...O}),I=()=>({...C}),D=e=>{let{top:t,bottom:r,left:n,right:i}
33=e,{top:s,bottom:a,left:o,right:l}=O;return t===s&&r===a&&n===o&&i===l},j=e=>{let{x:t,y:r,width:n,height:i}=e,{x:s,y:a,width:o,height:l}=C;return t===s&&r===a&&n===o&&i===l};function R(e,t){let r=t?.projectId||e.projectId,n=t?.dataset||e.dataset;if(!r||!n)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},s="originalFilename"in e?e.originalFilename:void 0,{assetId:a,extension:o,vanityFilename:l}=e,{width:u,height:c}=i,d=F(s,l,t);return`images/${r}/${n}/${a}-${u}x${c}.${o}${d}`}function N(e,t){let r=t?.projectId||e.projectId,n=t?.dataset||e.dataset;if(!r||!n)throw Error("Project details (projectId and dataset) required to resolve path for file");let i="originalFilename"in e?e.originalFilename:void 0,{assetId:s,extension:a,vanityFilename:o}=e,l=F(i,o,t);return`files/${r}/${n}/${s}.${a}${l}`}function $(e){if(c.test(e))return e;if(!A(e))throw new g(`Failed to resolve path from URL "${e}"`);return new URL(e).pathname.replace(/^\/+/,"")}let M=y($);function F(e,t,r){let n=t||e;return r?.useVanityName!==!1&&n?`/${n}`:""}function P(e){let[,t,r,n]=e.split("-"),[i,s]=(r||"").split("x").map(Number);if(!t||!r||!n||!(i>0)||!(s>0))throw Error(`Malformed asset ID '${e}'. Expected an id like "image-027401f31c3ac1e6d78c5d539ccd1beff72b9b11-2000x3000-jpg".`);return{type:"image",assetId:t,width:i,height:s,extension:n}}function L(e){if(S(e))return{width:0,height:0,aspectRatio:0};let{width:t,height:r}=P(V(e));return{width:t,height:r,aspectRatio:t/r}}function z(e,t){if(S(e))return{asset:{_id:p,_type:"sanity.imageAsset",assetId:m,extension:"tmp",url:"",path:"",metadata:{dimensions:{width:1,height:1,aspectRatio:1}}},crop:T(),hotspot:I()};let r=t||Y(e);return{asset:q(e,r),crop:e.crop||T(),hotspot:e.hotspot||I()}}function q(e,t){let r={...t||Z(e),useVanityName:!1},i=V(e),s=(e.asset||e).metadata||{},{assetId:a,width:o,height:l,extension:u}=P(i),c={...b(e)&&"sanity.imageAsset"===e._type?e:{},_id:i,_type:"sanity.imageAsset",assetId:a,extension:u,metadata:{...s,dimensions:{width:o,height:l,aspectRatio:o/l}},url:"",path:""};return{...c,path:R(c,r),url:`${r?.baseUrl||n}/${R(c,r)}`}}function U(e,t){if(S(e))return{asset:{_id:p,_type:h,assetId:m,extension:"tmp",url:"",path:"",metadata:{}}};let r=t||Y(e);return{asset:B(e,r)}}function B(e,t){if(S(e))return{assetId:m,_id:p,_type:h,extension:"tmp",metadata:{},url:"",path:""};let r={...t||Z(e),useVanityName:!1},i=V(e),s=e.asset||e,{assetId:a,extension:l}=function(e){if(!o.test(e))throw Error(`Malformed file asset ID '${e}'. Expected an id like "file-027401f31c3ac1e6d78c5d539ccd1beff72b9b11-pdf"`);let[,t,r]=e.split("-");return{type:"file",assetId:t,extension:r}}(i),u={...b(e)&&"sanity.fileAsset"===e._type?e:{},_id:i,_type:"sanity.fileAsset",assetId:a,extension:l,metadata:s.metadata||{},url:"",path:""};return{...u,path:N(u,r),url:`${r?.baseUrl||n}/${N(u,r)}`}}function V(e){if(S(e))return p;let t=E(e)?e.asset:e,r="";if("string"==typeof t?r=G(t):v(t)?r=t._ref:b(t)&&"string"==typeof t._id?r=t._id:_(t)?r=W(`${n}/${t.path}`):w(t)&&(r=W(t.url)),!(r&&d.test(r)))throw new g(e);return r}y(function(e){var t;let r=(M(e)||e).replace(/^(images|files)\/[a-z0-9]+\/[a-z0-9][-\w]\/*/,"");if(t=r,!(a.test(t)||l.test(t)))throw new g(`Failed to resolve filename from URL "${e}"`);return r}),y(L),y(function(e){return S(e)?"tmp":K(e)?U(e,f).asset.extension:z(e,f).asset.extension}),y(z),y(q),y(U),y(B);let H=y(V);function G(e){var t,r;if(d.test(e))return e;let i=A(e)?new URL(e).pathname:e;if(0===i.indexOf("/images")||0===i.indexOf("/files"))return W(e);if(c.test(e))return W(`${n}/${e}`);if(t=e,a.test(t))return W(`${n}/files/a/b/${e}`);if(r=e,l.test(r))return W(`${n}/images/a/b/${e}`);throw new g(e)}function W(e){let[t,,,r]=$(e).split("/");return`${t.replace(/s$/,"")}-${r.replace(/\./g,"-")}`}function Z(e){let t=function e(t){if(E(t))return e(t.asset);if(!v(t)){if("string"==typeof t)return c.test(M(t)||"")?$(t):void 0;if(_(t))return t.path;if(w(t))return $(t.url)}}(e);if(!t)throw new g(e,"Failed to resolve project ID and dataset from source");let[,,r,n]=t.match(c)||[];
33if(!r||!n)throw new g(e,"Failed to resolve project ID and dataset from source");return{projectId:r,dataset:n}}y(G);let Y=y(Z);function K(e){let t=H(e);return!!t&&t.startsWith("file-")}function J(e){let t=H(e);return!!t&&t.startsWith("image-")}},25473:(e,t,r)=>{var n=r(72810),i=r(23270),s=r(15431),a=r(3131),o=r(47699);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=s,l.prototype.has=a,l.prototype.set=o,e.exports=l},25665:(e,t,r)=>{var n=r(65755),i=r(15104);e.exports=function(e,t){return e&&n(e,t,i)}},25955:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n=r(43523),i=r(84841),s=r(2297),a=r(81451),o=r(44220);function l(e,t){var r;return void 0===t&&(t=n.E),r=function(){return(0,o.O)(e,t)},(0,i.N)(function(e,t){var n=!1,i=null,o=null,l=!1,u=function(){if(null==o||o.unsubscribe(),o=null,n){n=!1;var e=i;i=null,t.next(e)}l&&t.complete()},c=function(){o=null,l&&t.complete()};e.subscribe((0,a._)(t,function(e){n=!0,i=e,o||(0,s.Tg)(r(e)).subscribe(o=(0,a._)(t,u,c))},function(){l=!0,n&&o&&!o.closed||t.complete()}))})}},26088:(e,t,r)=>{"use strict";r.d(t,{B:()=>s,O:()=>i});var n=r(73639);let i=globalThis;function s(e,t,r){let s=r||i,a=s.__SENTRY__=s.__SENTRY__||{},o=a[n.M]=a[n.M]||{};return o[e]||(o[e]=t())}},26174:(e,t,r)=>{var n=r(77180),i=0;e.exports=function(e){var t=++i;return n(e)+t}},26261:e=>{e.exports=function(e,t,r){if(null===e!=(null===t))return!1;var n,i=Array.isArray(e);if(i!==Array.isArray(t))return!1;var s=typeof e;return s===typeof t&&("function"!==(n=s)&&"object"!==n?r?r(e,t):e===t:i?function(e,t,r){var n=e.length;if(n!==t.length)return!1;if(r){for(var i=0;i<n;i++)if(!r(e[i],t[i]))return!1}else for(var i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}(e,t,r):function(e,t,r){var n=0,i=0;if(r)for(var s in e){if(e.hasOwnProperty(s)&&!r(e[s],t[s]))return!1;n++}else for(var s in e){if(e.hasOwnProperty(s)&&e[s]!==t[s])return!1;n++}for(var s in t)t.hasOwnProperty(s)&&i++;return n===i}(e,t,r))}},26281:(e,t,r)=>{var n=r(91266),i=r(63943),s=r(31749);e.exports=function(e){if(e instanceof n)return e.clone();var t=new i(e.__wrapped__,e.__chain__);return t.__actions__=s(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}},26351:(e,t,r)=>{"use strict";r.d(t,{p:()=>c});var n=r(2782),i=r(6146),s=r(2297),a=r(61297),o=r(81451),l=r(82553),u=r(53263);function c(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=(0,a.ms)(e),c=(0,i.D)(e),d=c.args,h=c.keys,f=new n.c(function(e){var t=d.length;if(!t)return void e.complete();for(var r=Array(t),n=t,i=t,a=function(t){var a=!1;(0,s.Tg)(d[t]).subscribe((0,o._)(e,function(e){!a&&(a=!0,i--),r[t]=e},function(){return n--},void 0,function(){n&&a||(i||e.next(h?(0,u.e)(h,r):r),e.complete())}))},l=0;l<t;l++)a(l)});return r?f.pipe((0,l.I)(r)):f}},26393:(e,t,r)=>{"use strict";r.d(t,{$N:()=>T,$q:()=>I,Al:()=>A,D5:()=>C,Ew:()=>p,GL:()=>b,H1:()=>E,M_:()=>o,Nz:()=>l,Pw:()=>y,_E:()=>v,c9:()=>c,ci:()=>m,hN:()=>S,k5:()=>f,lf:()=>O,oB:()=>d,oG:()=>u,sH:()=>h,ss:()=>g,t$:()=>_,wA:()=>n,wI:()=>D});class n{pattern;patternRe;constructor(e){this.pattern=e,this.patternRe=function(e){let t=[];for(let r of e.split("."))"*"===r?t.push("[^.]+"):"**"===r?t.push(".*"):t.push(r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"));return RegExp(`^${t.join(".")}$`)}(e)}matches(e){return this.patternRe.test(e)}toJSON(){return this.pattern}}let i=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|([-+]\d{2}:\d{2}))$/;function s(e,t){let r=e.toString();for(;r.length<t;)r=`0${r}`;return r}class a{data;type;constructor(e,t){this.data=e,this.type=t}isArray(){return"array"===this.type}async get(){return this.data}asStatic(){return this}[Symbol.asyncIterator](){if(Array.isArray(this.data))return function*(e){for(let t of e)yield g(t)}(this.data);throw Error(`Cannot iterate over: ${this.type}`)}}let o=new a(null,"null"),l=new a(!0,"boolean"),u=new a(!1,"boolean");class c{date;constructor(e){this.date=e}static parseToValue(e){let t=i.test(e)?new Date(e):null;return t?new a(new c(t),"datetime"):o}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 c(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),r=s(e.getUTCMonth()+1,2),n=s(e.getUTCDate(),2),i=s(e.getUTCHours(),2),a=s(e.getUTCMinutes(),2),o=s(e.getUTCSeconds(),2),l="",u=e.getMilliseconds();return 0!=u&&(l=`.${s(u,3)}`),`${t}-${r}-${n}T${i}:${a}:${o}${l}Z`}(this.date)}toJSON(){return this.toString()}}function d(e){return Number.isFinite(e)?new a(e,"number"):o}function h(e){return new a(e,"string")}function f(e){return new a(e,"datetime")}function p(e){return new a(e,"path")}function m(e){return new a(e,"array")}function g(e){return e&&"function"==typeof e.next?new b(async function*(){for await(let t of e)yield g(t)}):null==e?o:new a(e,y(e))}function y(e){return null===e||typeof e>"u"?"null":Array.isArray(e)?"array":e instanceof n?"path":e instanceof c?"datetime":typeof e}class b{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 asStatic(){return new a(await this.get(),"array")}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,t;if(this.ticker)return this.ticker;let r=()=>{this.ticker=new Promise((r,n)=>{e=r,t=n})},n=()=>{e(),r()},i=async()=>{try{for await(let e of this.generator())this.data.push(e),n();this.isDone=!0,n()}catch(e){t(e)}};return r(),i(),this.ticker}}function v(e){return["AccessAttribute","SelectorFuncCall","Group","Tuple","ArrayCoerce","Filter","SelectorNested"].includes(e.type)}function _(e){return["AccessAttribute","ArrayCoerce","Filter","Group","Tuple","SelectorNested"].includes(e.type)}let w=/([^!@#$%^&*(),\\/?";:{}|[\]+<>\s-])+/g,x=/([^!@#$%^&(),\\/?";:{}|[\]+<>\s-])+/g,k=/(\b\.+|\.+\b)/g;function E(e,t){return 0!==e.length&&0!==t.length&&t.every(t=>t(e))}function S(e){return e.replace(k,"").match(w)||[]}function A(e){return O(e).map(e=>t=>t.some(t=>e.test(t)))}function O(e){return(e.replace(k,"").match(x)||[]).map(e=>RegExp(`^${e.slice(0,1024).replace(/\*/g,".*")}$`,"i"))}function C(e,t){if("string"===e.type)return{parts:t(e.data),success:!0};if("array"===e.type){let r=!0,n=[];for(let i of e.data)"string"==typeof i?n.push(...t(i)):r=!1;return{parts:n,success:r}}return"stream"===e.type?(async()=>{let r=!0,n=[];for await(let i of e)"string"===i.type?n.push(...t(i.data)):r=!1;return{parts:n,success:r}})():{parts:[],success:!1}}function T(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){switch(t.type){case"Value":var r;return null==(r=t.value)?o:"boolean"==typeof r?r?l:u:"number"==typeof r?d(r):"string"==typeof r?h(r):Array.isArray(r)?m(r):"object"==typeof r&&(r.constructor===Object||void 0===r.constructor)?new a(r,"object"):o;case"Parameter":default:return o;case"Group":return e(t.base);case"Pos":{let r=e(t.base);return"number"!==r.type?o:d(r.data)}case"Neg":{let r=e(t.base);return"number"!==r.type?o:d(-r.data)}case"OpCall":{let r=e(t.left),n=e(t.right);switch(t.op){case"+":return"number"===r.type&&"number"===n.type?d(r.data+n.data):"string"===r.type&&"string"===n.type?h(r.data+n.data):"array"===r.type&&"array"===n.type?m(r.data.concat(n.data)):"object"===r.type&&"object"===n.type?new a({...r.data,...n.data},"object"):o;case"-":return"number"===r.type&&"number"===n.type?d(r.data-n.data):o;case"*":return"number"===r.type&&"number"===n.type?d(r.data*n.data):o;case"/":return"number"===r.type&&"number"===n.type?d(r.data/n.data):o;case"%":return"number"===r.type&&"number"===n.type?d(r.data%n.data):o;case"**":return"number"===r.type&&"number"===n.type?d(Math.pow(r.data,n.data)):o;default:return o}}}}(e)}let I={global:{anywhere:{arity:1},coalesce:{},count:{arity:1},dateTime:{arity:1},defined:{arity:1},identity:{arity:0},length:{arity:1},path:{arity:1},string:{arity:1},references:{arity:e=>e>=1},round:{arity:e=>e>=1&&e<=2},now:{arity:0},boost:{arity:2},lower:{arity:1},upper:{arity:1}},string:{lower:{arity:1},upper:{arity:1},split:{arity:2},startsWith:{arity:2}}
33,array:{join:{arity:2},compact:{arity:1},unique:{arity:1},intersects:{arity:2}},pt:{text:{arity:1}},delta:{operation:{},changedAny:{arity:1,mode:"delta"},changedOnly:{arity:1,mode:"delta"}},diff:{changedAny:{arity:3},changedOnly:{arity:3}},media:{aspect:{arity:2}},sanity:{projectId:{},dataset:{},versionOf:{arity:1},partOfRelease:{arity:1}},math:{min:{arity:1},max:{arity:1},sum:{arity:1},avg:{arity:1}},dateTime:{now:{arity:0}},releases:{all:{arity:0}},text:{query:{arity:1},semanticSimilarity:{arity:1}},geo:{latLng:{},contains:{},intersects:{},distance:{}},documents:{get:{},incomingRefCount:{},incomingGlobalDocumentReferenceCount:{}},user:{attributes:{}}},D={order:{arity:e=>e>=1},score:{arity:e=>e>=1}}},26470:(e,t,r)=>{"use strict";r.d(t,{H:()=>f});var n=r(47736),i=r(13220),s=r(2782),a=r(10751),o=r(62261),l=r(81451),u=r(84841),c=function(e){function t(t,r){var n=e.call(this)||this;return n.source=t,n.subjectFactory=r,n._subject=null,n._refCount=0,n._connection=null,(0,u.S)(t)&&(n.lift=t.lift),n}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 r=this.getSubject();t.add(this.source.subscribe((0,l._)(r,void 0,function(){e._teardown(),r.complete()},function(t){e._teardown(),r.error(t)},function(){return e._teardown()}))),t.closed&&(this._connection=null,t=a.yU.EMPTY)}return t},t.prototype.refCount=function(){return(0,o.B)()(this)},t}(s.c),d=r(89956),h=r(42763);function f(e,t,r,i){r&&!(0,d.T)(r)&&(i=r);var s=(0,d.T)(r)?r:void 0;return function(r){var a,o;return(a=new n.m(e,t,i),o=(0,d.T)(a)?a:function(){return a},(0,d.T)(s)?(0,h.N)(s,{connector:o}):function(e){return new c(e,o)})(r)}}},27013:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(19555);function i(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"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},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,r){var n={};n["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[r]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};i["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var s={};s[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",s)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,r){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\
33s'">=]+(?=[\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:[r,"language-"+r],inside:e.languages[r]},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}function s(e){e.register(n.A),e.register(i),function(e){var t=e.util.clone(e.languages.javascript),r=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,n=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,i=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function s(e,t){return RegExp(e=e.replace(/<S>/g,function(){return r}).replace(/<BRACES>/g,function(){return n}).replace(/<SPREAD>/g,function(){return i}),t)}i=s(i).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=s(/<\/?(?:[\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:s(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:s(/=<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(""):""},o=function(t){for(var r=[],n=0;n<t.length;n++){var i=t[n],s=!1;if("string"!=typeof i&&("tag"===i.type&&i.content[0]&&"tag"===i.content[0].type?"</"===i.content[0].content[0].content?r.length>0&&r[r.length-1].tagName===a(i.content[0].content[1])&&r.pop():"/>"===i.content[i.content.length-1].content||r.push({tagName:a(i.content[0].content[1]),openedBraces:0}):r.length>0&&"punctuation"===i.type&&"{"===i.content?r[r.length-1].openedBraces++:r.length>0&&r[r.length-1].openedBraces>0&&"punctuation"===i.type&&"}"===i.content?r[r.length-1].openedBraces--:s=!0),(s||"string"==typeof i)&&r.length>0&&0===r[r.length-1].openedBraces){var l=a(i);n<t.length-1&&("string"==typeof t[n+1]||"plain-text"===t[n+1].type)&&(l+=a(t[n+1]),t.splice(n+1,1)),n>0&&("string"==typeof t[n-1]||"plain-text"===t[n-1].type)&&(l=a(t[n-1])+l,t.splice(n-1,1),n--),t[n]=new e.Token("plain-text",l,null,l)}i.content&&"string"!=typeof i.content&&o(i.content)}};e.hooks.add("after-tokenize",function(e){("jsx"===e.language||"tsx"===e.language)&&o(e.tokens)})}(e)}i.displayName="markup",i.aliases=["atom","html","mathml","rss","ssml","svg","xml"],s.displayName="jsx",s.aliases=[]},27329:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}},27335:(e,t,r)=>{"use strict";let n=r(24559);e.exports=(e,t)=>e.sort((e,r)=>n(r,e,t))},27353:(e,t,r)=>{"use strict";let n=/\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 o)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(n," "),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&&b(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&&m)|(this.options.loose&&g))+":"+e,r=s.get(t);if(r)return r;let n=this.options.loose,i=n?c[d.HYPHENRANGELOOSE]:c[d.HYPHENRANGE];l("hyphen replace",e=e.replace(i,I(this.options.includePrerelease))),l("comparator trim",e=e.replace(c[d.COMPARATORTRIM],h)),l("tilde trim",e=e.replace(c[d.TILDETRIM],f)),l("caret trim",e=e.replace(c[d.CARETTRIM],p));let a=e.split(" ").map(e=>_(e,this.options)).join(" ").split(/\s+/).map(e=>T(e,this.options));n&&(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 o(e,this.options))){if(y(e))return[e];u.set(e.value,e)}u.size>1&&u.has("")&&u.delete("");let b=[...u.values()];return s.set(t,b),b}intersects(e,t){if(!(e instanceof i))throw TypeError("a Range is required");return this.set.some(r=>v(r,t)&&e.set.some(e=>v(e,t)&&r.every(r=>e.every(e=>r.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}}
33e.exports=i;let s=new(r(80636)),a=r(49531),o=r(97504),l=r(82628),u=r(98520),{safeRe:c,t:d,comparatorTrimReplace:h,tildeTrimReplace:f,caretTrimReplace:p}=r(54108),{FLAG_INCLUDE_PRERELEASE:m,FLAG_LOOSE:g}=r(24570),y=e=>"<0.0.0-0"===e.value,b=e=>""===e.value,v=(e,t)=>{let r=!0,n=e.slice(),i=n.pop();for(;r&&n.length;)r=n.every(e=>i.intersects(e,t)),i=n.pop();return r},_=(e,t)=>(l("comp",e=e.replace(c[d.BUILD],""),t),l("caret",e=E(e,t)),l("tildes",e=x(e,t)),l("xrange",e=A(e,t)),l("stars",e=C(e,t)),e),w=e=>!e||"x"===e.toLowerCase()||"*"===e,x=(e,t)=>e.trim().split(/\s+/).map(e=>k(e,t)).join(" "),k=(e,t)=>{let r=t.loose?c[d.TILDELOOSE]:c[d.TILDE];return e.replace(r,(t,r,n,i,s)=>{let a;return l("tilde",e,t,r,n,i,s),w(r)?a="":w(n)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:w(i)?a=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:s?(l("replaceTilde pr",s),a=`>=${r}.${n}.${i}-${s} <${r}.${+n+1}.0-0`):a=`>=${r}.${n}.${i} <${r}.${+n+1}.0-0`,l("tilde return",a),a})},E=(e,t)=>e.trim().split(/\s+/).map(e=>S(e,t)).join(" "),S=(e,t)=>{l("caret",e,t);let r=t.loose?c[d.CARETLOOSE]:c[d.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(t,r,i,s,a)=>{let o;return l("caret",e,t,r,i,s,a),w(r)?o="":w(i)?o=`>=${r}.0.0${n} <${+r+1}.0.0-0`:w(s)?o="0"===r?`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${n} <${+r+1}.0.0-0`:a?(l("replaceCaret pr",a),o="0"===r?"0"===i?`>=${r}.${i}.${s}-${a} <${r}.${i}.${+s+1}-0`:`>=${r}.${i}.${s}-${a} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${s}-${a} <${+r+1}.0.0-0`):(l("no pr"),o="0"===r?"0"===i?`>=${r}.${i}.${s}${n} <${r}.${i}.${+s+1}-0`:`>=${r}.${i}.${s}${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${s} <${+r+1}.0.0-0`),l("caret return",o),o})},A=(e,t)=>(l("replaceXRanges",e,t),e.split(/\s+/).map(e=>O(e,t)).join(" ")),O=(e,t)=>{e=e.trim();let r=t.loose?c[d.XRANGELOOSE]:c[d.XRANGE];return e.replace(r,(r,n,i,s,a,o)=>{l("xRange",e,r,n,i,s,a,o);let u=w(i),c=u||w(s),d=c||w(a);return"="===n&&d&&(n=""),o=t.includePrerelease?"-0":"",u?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&d?(c&&(s=0),a=0,">"===n?(n=">=",c?(i=+i+1,s=0):s=+s+1,a=0):"<="===n&&(n="<",c?i=+i+1:s=+s+1),"<"===n&&(o="-0"),r=`${n+i}.${s}.${a}${o}`):c?r=`>=${i}.0.0${o} <${+i+1}.0.0-0`:d&&(r=`>=${i}.${s}.0${o} <${i}.${+s+1}.0-0`),l("xRange return",r),r})},C=(e,t)=>(l("replaceStars",e,t),e.trim().replace(c[d.STAR],"")),T=(e,t)=>(l("replaceGTE0",e,t),e.trim().replace(c[t.includePrerelease?d.GTE0PRE:d.GTE0],"")),I=e=>(t,r,n,i,s,a,o,l,u,c,d,h)=>(r=w(n)?"":w(i)?`>=${n}.0.0${e?"-0":""}`:w(s)?`>=${n}.${i}.0${e?"-0":""}`:a?`>=${r}`:`>=${r}${e?"-0":""}`,l=w(u)?"":w(c)?`<${+u+1}.0.0-0`:w(d)?`<${u}.${+c+1}.0-0`:h?`<=${u}.${c}.${d}-${h}`:e?`<${u}.${c}.${+d+1}-0`:`<=${l}`,`${r} ${l}`.trim()),D=(e,t,r)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;r<e.length;r++)if(l(e[r].semver),e[r].semver!==o.ANY&&e[r].semver.prerelease.length>0){let n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0}},27370:(e,t,r)=>{"use strict";r.d(t,{$U:()=>f,Jt:()=>u,Mr:()=>g,Y7:()=>v,dI:()=>b,n4:()=>h,nX:()=>o,om:()=>y,p0:()=>d,sH:()=>_,w1:()=>m});var n=r(20906);let i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,s=/_key\s*==\s*['"](.*)['"]/,a=[],o="$",l=["true","false","null"];function u(e,t,r){let i="string"==typeof t?_(t):t;if(!Array.isArray(i))throw Error("Path must be an array or a string");let s=e;for(let e=0;e<i.length;e++){let t=i[e];if((0,n.wr)(t)){if(!Array.isArray(s))return r;s=s[t]}if((0,n.tA)(t)){if(!Array.isArray(s))return r;s=s.find(e=>e._key===t._key)}if("string"==typeof t&&(s="object"==typeof s&&null!==s?s[t]:void 0),typeof s>"u")return r}return s}let c=new Map;function d(e){if(0===e.length)return a;let t=b(e);return c.has(t)?c.get(t):(c.set(t,e),Object.freeze(e),e)}function h(e,t){return e.length===t.length&&e.every((e,r)=>p(e,t[r]))}function f(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)if(!p(e[n],t[n]))return n;return r}function p(e,t){return(0,n.tA)(e)&&(0,n.tA)(t)?e._key===t._key:(0,n.wr)(e)?Number(e)===Number(t):(0,n.Z9)(e)&&(0,n.Z9)(t)?e[0]===t[0]&&e[1]===t[1]:e===t}function m(e,t){return e.every((e,r)=>p(e,t[r]))}function g(e,t){if(0===e.length||0===t.length)return t;let[r,...n]=e,[i,...s]=t;return p(r,i)?d(g(n,s)):t}function y(e,t){return m(e,t)?g(e,t):a}function b(e){if(!Array.isArray(e))throw Error("Path is not an array");return e.reduce((e,t,r)=>{if("number"==typeof t)return`${e}[${t}]`;if("string"==typeof t)return 0===r?t:l.includes(t)?`${e}["${t}"]`:`${e}.${t}`;if((0,n.tA)(t)&&t._key)return`${e}[_key=="${t._key}"]`;if(Array.isArray(t)){let[r,n]=t;return`${e}[${r}:${n}]`}throw Error(`Unsupported path segment \`${JSON.stringify(t)}\``)},"")}function v(e,t){if(!Array.isArray(t))throw Error("Path is not an array");return d(function e(t,r){if(0===r.length)return r;let[n,...i]=r;if("number"==typeof n){if(!Array.isArray(t)||!(n in t))return[];let r=t[n];return["string"==typeof r?._key?{_key:r._key}:n,...e(r,i)]}let s=u(t,[n]);return[n,...e(s,i)]}(e,t))}function _(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(w)}function w(e){return(0,n.wr)(e)?Number(e.replace(/[^\d]/g,"")):(0,n.tA)(e)?{_key:e.match(s)[1]}:(0,n.Z9)(e)?function(e){let[t,r]=e.split(":").map(e=>""===e?e:Number(e));return[t,r]}(e):e}},27442:(e,t,r)=>{var n=r(58516);e.exports=function(e,t){return n(t,function(t){return[t,e[t]]})}},27609:(e,t,r)=>{"use strict";let n=r(43166);e.exports=(e,t)=>n(e,t,!0)},27791:(e,t,r)=>{var n=r(36169).isFinite;e.exports=function(e){return"number"==typeof e&&n(e)}},27938:(e,t,r)=>{"use strict";r.d(t,{R:()=>i});var n=r(96221);function i(e){return(0,n.o)(Date.now(),e)}},27968:(e,t,r)=>{"use strict";r.d(t,{J:()=>i});var n=r(91864);function i(e,t,r){return(0,n.f)(e,7*t,r)}},28061:(e,t,r)=>{"use strict";r.d(t,{o:()=>a});var n=r(44854),i=r(86337),s=r(71114);function a(e,t,r){let a=(0,s.b)(e,t)/i.Cg;return(0,n.u)(null==r?void 0:r.roundingMethod)(a)}},28077:(e,t,r)=>{"use strict";r.d(t,{BD:()=>o,Kg:()=>u,L2:()=>v,NF:()=>c,Qd:()=>h,Qg:()=>g,T2:()=>a,W6:()=>l,bJ:()=>i,gd:()=>m,mE:()=>y,sO:()=>d,tH:()=>b,vq:()=>p,xH:()=>f});let n=Object.prototype.toString;function i(e){switch(n.call(e)){case"[object Error]":case"[object E
33xception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return b(e,Error)}}function s(e,t){return n.call(e)===`[object ${t}]`}function a(e){return s(e,"ErrorEvent")}function o(e){return s(e,"DOMError")}function l(e){return s(e,"DOMException")}function u(e){return s(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 h(e){return s(e,"Object")}function f(e){return"undefined"!=typeof Event&&b(e,Event)}function p(e){return"undefined"!=typeof Element&&b(e,Element)}function m(e){return s(e,"RegExp")}function g(e){return!!(e&&e.then&&"function"==typeof e.then)}function y(e){return h(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function b(e,t){try{return e instanceof t}catch(e){return!1}}function v(e){return!!("object"==typeof e&&null!==e&&(e.__isVue||e._isVue))}},28421:(e,t,r)=>{"use strict";let n=r(98520),i=r(27353),s=r(7700);e.exports=(e,t)=>{e=new i(e,t);let r=new n("0.0.0");if(e.test(r)||(r=new n("0.0.0-0"),e.test(r)))return r;r=null;for(let t=0;t<e.set.length;++t){let i=e.set[t],a=null;i.forEach(e=>{let t=new n(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!a||s(t,a))&&(a=t);break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),a&&(!r||s(r,a))&&(r=a)}return r&&e.test(r)?r:null}},29060:(e,t,r)=>{"use strict";r.d(t,{lu:()=>i,zf:()=>s});var n=r(26088);function i(){return Date.now()/1e3}let s=function(){let{performance:e}=n.O;if(!e||!e.now)return i;let t=Date.now()-e.now(),r=void 0==e.timeOrigin?t:e.timeOrigin;return()=>(r+e.now())/1e3}();(()=>{let{performance:e}=n.O;if(!e||!e.now)return;let t=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+t-r):36e5,s=e.timing&&e.timing.navigationStart,a="number"==typeof s?Math.abs(s+t-r):36e5;if((i<36e5||a<36e5)&&i<=a)return e.timeOrigin})()},29158:(e,t,r)=>{var n=r(84382),i=r(97423),s=r(94273),a=s&&s.isMap;e.exports=a?i(a):n},29356:(e,t,r)=>{"use strict";r.d(t,{j:()=>n});let n=r(26088).O},29448:(e,t,r)=>{"use strict";let n;r.d(t,{s:()=>s});var i=r(37811);try{n=i.env.PKG_BUILD_VERSION}catch{}try{n=n||"4.22.0"}catch{}let s=n||"4.22.0-dev"},29479:(e,t,r)=>{var n=r(16982);e.exports=function(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},30044:(e,t,r)=>{"use strict";function n(e){return"span"===e._type&&"text"in e&&"string"==typeof e.text&&(void 0===e.marks||Array.isArray(e.marks)&&e.marks.every(e=>"string"==typeof e))}function i(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 i(e)&&"listItem"in e&&"string"==typeof e.listItem&&(void 0===e.level||"number"==typeof e.level)}function a(e){return"@list"===e._type}function o(e){return"@span"===e._type}function l(e){return"@text"===e._type}r.d(t,{IG:()=>i,Pq:()=>d,YA:()=>l,bo:()=>y,fg:()=>function e(t){let r="";return t.children.forEach(t=>{l(t)?r+=t.text:o(t)&&(r+=e(t))}),r},iS:()=>h,mn:()=>b,n2:()=>s,tO:()=>o,zp:()=>a});let u=["strong","em","code","underline","strike-through"];function c(e,t,r){if(!n(e)||!e.marks||!e.marks.length)return[];let i=e.marks.slice(),s={};return i.forEach(e=>{s[e]=1;for(let i=t+1;i<r.length;i++){let t=r[i];if(t&&n(t)&&Array.isArray(t.marks)&&-1!==t.marks.indexOf(e))s[e]++;else break}}),i.sort((e,t)=>(function(e,t,r){let n=e[t],i=e[r];if(n!==i)return i-n;let s=u.indexOf(t),a=u.indexOf(r);return s===a?t.localeCompare(r):s-a})(s,e,t))}function d(e){let{children:t}=e,r=e.markDefs??[];if(!t||!t.length)return[];let i=t.map(c),s={_type:"@span",children:[],markType:"<unknown>"},a=[s];for(let e=0;e<t.length;e++){let s=t[e];if(!s)continue;let o=i[e]||[],l=1;if(a.length>1)for(;l<a.length;l++){let e=a[l]?.markKey||"",t=o.indexOf(e);if(-1===t)break;o.splice(t,1)}let u=(a=a.slice(0,l))[a.length-1];if(u){for(let e of o){let t=r?.find(t=>t._key===e),n={_type:"@span",_key:s._key,children:[],markDef:t,markType:t?t._type:e,markKey:e};u.children.push(n),a.push(n),u=n}if(n(s)){let e=s.text.split("\n");for(let t=e.length;t-- >1;)e.splice(t,0,"\n");u.children=u.children.concat(e.map(e=>
33({_type:"@text",text:e})))}else u.children=u.children.concat(s)}}return s.children}function h(e,t){let r=[],n;for(let o=0;o<e.length;o++){let l=e[o];if(l){var i,a;if(!s(l)){r.push(l),n=void 0;continue}if(!n){n=f(l,o,t),r.push(n);continue}if(i=l,a=n,(i.level||1)===a.level&&i.listItem===a.listItem){n.children.push(l);continue}if((l.level||1)>n.level){let e=f(l,o,t);if("html"===t){let t=n.children[n.children.length-1],r={...t,children:[...t.children,e]};n.children[n.children.length-1]=r}else n.children.push(e);n=e;continue}if((l.level||1)<n.level){let e=r[r.length-1],i=e&&p(e,l);if(i){(n=i).children.push(l);continue}n=f(l,o,t),r.push(n);continue}if(l.listItem!==n.listItem){let e=r[r.length-1],i=e&&p(e,{level:l.level||1});if(i&&i.listItem===l.listItem){(n=i).children.push(l);continue}n=f(l,o,t),r.push(n);continue}console.warn("Unknown state encountered for block",l),r.push(l)}}return r}function f(e,t,r){return{_type:"@list",_key:`${e._key||`${t}`}-parent`,mode:r,level:e.level||1,listItem:e.listItem,children:[e]}}function p(e,t){let r=t.level||1,i=t.listItem||"normal",s="string"==typeof t.listItem;if(a(e)&&(e.level||1)===r&&s&&(e.listItem||"normal")===i)return e;if(!("children"in e))return;let o=e.children[e.children.length-1];return o&&!n(o)?p(o,t):void 0}let m=/^\s/,g=/\s$/;function y(e){let t=Array.isArray(e)?e:[e],r="";return t.forEach((e,s)=>{if(!i(e))return;let a=!1;e.children.forEach(e=>{n(e)?(r+=a&&r&&!g.test(r)&&!m.test(e.text)?" ":"",r+=e.text,a=!1):a=!0}),s!==t.length-1&&(r+="\n\n")}),r}let b="html"},30185:(e,t,r)=>{"use strict";r.d(t,{O:()=>i});var n=r(97537);function i(e,t){return(0,n.a)(e,null==t?void 0:t.in).getMinutes()}},30268:(e,t,r)=>{"use strict";r.d(t,{G:()=>l});var n=r(33806),i=r(32785),s=r(15840),a=r(51622);let o=["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,n.GS)(a.jf,"setTimeout",u),t.setInterval&&(0,n.GS)(a.jf,"setInterval",u),t.requestAnimationFrame&&(0,n.GS)(a.jf,"requestAnimationFrame",c),t.XMLHttpRequest&&"XMLHttpRequest"in a.jf&&(0,n.GS)(XMLHttpRequest.prototype,"send",d);let e=t.eventTarget;e&&(Array.isArray(e)?e:o).forEach(h)}}});function u(e){return function(...t){let r=t[0];return t[0]=(0,a.LV)(r,{mechanism:{data:{function:(0,s.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,s.qQ)(e)},handled:!1,type:"instrument"}})])}}function d(e){return function(...t){let r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in r&&"function"==typeof r[e]&&(0,n.GS)(r,e,function(t){let r={mechanism:{data:{function:e,handler:(0,s.qQ)(t)},handled:!1,type:"instrument"}},i=(0,n.sp)(t);return i&&(r.mechanism.data.handler=(0,s.qQ)(i)),(0,a.LV)(t,r)})}),e.apply(this,t)}}function h(e){let t=a.jf[e],r=t&&t.prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&((0,n.GS)(r,"addEventListener",function(t){return function(r,n,i){try{var o;o=n,"function"==typeof o.handleEvent&&(n.handleEvent=(0,a.LV)(n.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,s.qQ)(n),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[r,(0,a.LV)(n,{mechanism:{data:{function:"addEventListener",handler:(0,s.qQ)(n),target:e},handled:!1,type:"instrument"}}),i])}}),(0,n.GS)(r,"removeEventListener",function(e){return function(t,r,n){try{let i=r.__sentry_wrapped__;i&&e.call(this,t,i,n)}catch(e){}return e.call(this,t,r,n)}}))}},30314:(e,t,r)=>{"use strict";r.d(t,{d:()=>i});var n=r(97537);function i(e,t){return+(0,n.a)(e)>+(0,n.a)(t)}},30360:(e,t,r)=>{"use strict";r.d(t,{z:()=>i});var n=r(97537);function i(e,t){let r=(0,n.a)(e)-(0,n.a)(t);return r<0?-1:r>0?1:r}},30576:(e,t,r)=>{var n=r(50296),i=r(97423),s=r(94273),a=s&&s.isSet;e.exports=a?i(a):n},30807:(e,t,r)=>{"use strict";r.d(t,{$F:()=>l,PF:()=>o,_M:()=>u,oV:()=>a});var n=r(62171),i=r(93790),s=r(98833);let a=e=>{if(!e.context.selection)return;let t=(0,n.Jo)(e),r=(0,n.aR)(e);if(!t||!r)return;let s=(0,i.iL)({context:e.context,selectionPoint:t}),a=(0,i.iL)({context:e.context,selectionPoint:r});return s&&a?{start:s,end:a}:void 0},o=e=>{let t=(0,n.hH)(e),r=(0,n.aR)(e),a=r&&(0,i.wE)(r.path[2])?r.path[2]._key:void 0;if(!t||!a)return[];let o=!1,l=[];for(let r of t.node.children){if(r._key===a){o=!0;continue}if(!(0,s.bl)(e.context,r)&&o){l.push({node:r,path:[...t.path,"children",{_key:r._key}]});break}}return l},l=e=>{let t=(0,n.hH)(e),r=(0,n.Jo)(e),a=r&&(0,i.wE)(r.path[2])?r.path[2]._key:void 0;if(!t||!a)return[];let o=[];for(let r of t.node.children){if(r._key===a)break;(0,s.bl)(e.context,r)||o.push({node:r,path:[...t.path,"children",{_key:r._key}]})}return o},u=e=>{if(!e.context.selection)return"";let t=(0,i.Jo)(e.context.selection),r=(0,n.gU)({...e,context:{...e.context,selection:{anchor:t,focus:t}}});if(!r)return"";let s=(0,i.u3)({context:e.context,block:r});return(0,n.u0)({...e,context:{...e.context,selection:{anchor:s,focus:t}}})}},30872:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},31144:(e,t,r)=>{"use strict";r.d(t,{ZF:()=>s,el:()=>i});var n=r(2541);function i(){return(0,n.eJ)()}function s(){return(0,n.eJ)().substring(16)}},31150:(e,t,r)=>{var n=r(77180),i=/[\\^$.*+?()[\]{}|]/g,s=RegExp(i.source);e.exports=function(e){return(e=n(e))&&s.test(e)?e.replace(i,"\\$&"):e}},31459:(e,t,r)=>{var n=r(37864);e.exports=function(e){return function(t){return n(t,e)}}},31709:(e,t,r)=>{var n=r(78903),i=r(19218),s=r(91187);e.exports=function(e,t,r,a,o,l){var u=1&r,c=e.length,d=t.length;if(c!=d&&!(u&&d>c))return!1;var h=l.get(e),f=l.get(t);if(h&&f)return h==t&&f==e;var p=-1,m=!0,g=2&r?new n:void 0;for(l.set(e,t),l.set(t,e);++p<c;){var y=e[p],b=t[p];if(a)var v=u?a(b,y,p,t,e,l):a(y,b,p,e,t,l);if(void 0!==v){if(v)continue;m=!1;break}if(g){if(!i(t,function(e,t){if(!s(g,t)&&(y===e||o(y,e,r,a,l)))return g.push(t)})){m=!1;break}}else if(!(y===b||o(y,b,r,a,l))){m=!1;break}}return l.delete(e),l.delete(t),m}},31749:e=>{e.exports=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}},31886:(e,t,r)=>{var n=r(23078);e.exports=r(54264)(function(e,t,r){n(e,r,t)})},31997:(e,t,r)=>{var n=r(35589),i=r(31459),s=r(53260),a=r(46939);e.exports=function(e){return s(e)?n(a(e)):i(e)}},32090:(e,t,r)=>{"use strict";r.d(t,{qg:()=>C});var n=r(26393),i=r(79622);class s{_string;marks;index;customFunctions;parseOptions;allowBoost=!1;constructor(e,t,r,n){this._string=e,this.marks=t,this.customFunctions=r,this.index=0,this.parseOptions=n}hasMark(e=0){return this.index+e<this.marks.length}
33getMark(e=0){return this.marks[this.index+e]}shift(){this.index+=1}process(e){let t=this.marks[this.index];this.shift();let r=e[t.name];if(!r)throw Error(`Unknown handler: ${t.name}`);return r.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)}get string(){return this._string}}let a=/^([\t\n\v\f\r \u0085\u00A0]|(\/\/[^\n]*\n))+/,o=/^\d+/,l=/^[a-zA-Z_][a-zA-Z_0-9]*/;function u(e,t,r){let n=t,i;switch(e[t]){case"+":{let r=u(e,p(e,t+1),10);if("error"===r.type)return r;i=[{name:"pos",position:n}].concat(r.marks),t=r.position;break}case"-":{let r=u(e,p(e,t+1),8);if("error"===r.type)return r;i=[{name:"neg",position:n}].concat(r.marks),t=r.position;break}case"(":{let r=c(e,t);if("error"===r.type)return r;t=r.position,i=r.marks;break}case"!":{let r=u(e,p(e,t+1),10);if("error"===r.type)return r;i=[{name:"not",position:n}].concat(r.marks),t=r.position;break}case"{":{let r=f(e,t);if("error"===r.type)return r;i=r.marks,t=r.position;break}case"[":if(i=[{name:"array",position:t}],t=p(e,t+1),"]"!==e[t])for(;;){"..."===e.slice(t,t+3)&&(i.push({name:"array_splat",position:t}),t=p(e,t+3));let r=u(e,t,0);if("error"===r.type)return r;if(i=i.concat(r.marks),t=p(e,t=r.position),","!==e[t]||(t=p(e,t+1),"]"===e[t]))break}if("]"!==e[t])return{type:"error",message:'Expected "]" after array expression',position:t};t++,i.push({name:"array_end",position:t});break;case"'":case'"':{let r=function(e,t){let r=e[t],n=[{name:"str",position:t+=1}];t:for(;;t++){if(t>e.length)return{type:"error",message:"Unexpected end of query",position:t};switch(e[t]){case r:n.push({name:"str_end",position:t}),t++;break t;case"\\":n.push({name:"str_pause",position:t}),"u"===e[t+1]?"{"===e[t+2]?(n.push({name:"unicode_hex",position:t+3}),t=e.indexOf("}",t+3),n.push({name:"unicode_hex_end",position:t})):(n.push({name:"unicode_hex",position:t+2}),n.push({name:"unicode_hex_end",position:t+6}),t+=5):(n.push({name:"single_escape",position:t+1}),t+=1),n.push({name:"str_start",position:t+1})}}return{type:"success",marks:n,position:t}}(e,t);if("error"===r.type)return r;i=r.marks,t=r.position;break}case"^":for(t++,i=[];"."===e[t]&&"^"===e[t+1];)i.push({name:"dblparent",position:n}),t+=2;i.push({name:"parent",position:n});break;case"@":i=[{name:"this",position:n}],t++;break;case"*":i=[{name:"everything",position:n}],t++;break;case"$":{let r=m(e,t+1,l);r&&(t+=1+r,i=[{name:"param",position:n},{name:"ident",position:n+1},{name:"ident_end",position:t}]);break}default:{let r=m(e,t,o);if(r){let s="integer";if("."===e[t+=r]){let r=m(e,t+1,o);r&&(s="float",t+=1+r)}if("e"===e[t]||"E"===e[t]){s="sci",("+"===e[++t]||"-"===e[t])&&t++;let r=m(e,t,o);if(!r)return{type:"error",message:"Exponent must be a number",position:t};t+=r}i=[{name:s,position:n},{name:s+"_end",position:t}];break}let s=m(e,t,l);if(s)switch(e[t+=s]){case":":case"(":{let r=h(e,n,t);if("error"===r.type)return r;i=r.marks,t=r.position;break}default:i=[{name:"this_attr",position:n},{name:"ident",position:n},{name:"ident_end",position:t}]}}}if(!i)return{type:"error",message:"Expected expression",position:t};let s=12,a;r:for(;;){let o=p(e,t);if(o===e.length){t=o;break}if("success"===(a=d(e,o)).type){for(i.unshift({name:"traverse",position:n});"success"===a.type;)i=i.concat(a.marks),a=d(e,p(e,t=a.position));i.push({name:"traversal_end",position:t});continue}switch(e[o]){case"=":switch(e[o+1]){case">":{if(r>1||s<=1)break r;let a=u(e,p(e,o+2),1);if("error"===a.type)return a;(i=i.concat(a.marks)).unshift({name:"pair",position:n}),t=a.position,s=1;break}case"=":{if(r>4||s<=4)break r;let a=u(e,p(e,o+2),5);if("error"===a.type)return a;i.unshift({name:"comp",position:n}),i.push({name:"op",position:o},{name:"op_end",position:o+2}),i=i.concat(a.marks),t=a.position,s=4;break}default:break r}break;case"+":{if(r>6||s<6)break r;let a=u(e,p(e,o+1),7);if("error"===a.type)return a;(i=i.concat(a.marks)).unshift({name:"add",position:n}),t=a.position,s=6;break}case"-":{if(r>6||s<6)break r;let a=u(e,p(e,o+1),7);if("error"===a.type)return a;(i=i.concat(a.marks)).unshift({name:"sub",position:n}),t=a.position,s=6;break}case"*":{if("*"===e[o+1]){if(r>8||s<=8)break r;let a=u(e,p(e,o+2),8);if("error"===a.type)return a;(i=i.concat(a.marks)).unshift({name:"pow",position:n}),t=a.position,s=8;break}if(r>7||s<7)break r;let a=u(e,p(e,o+1),8);if("error"===a.type)return a;(i=i.concat(a.marks)).unshift({name:"mul",position:n}),t=a.position,s=7;break}case"/":{if(r>7||s<7)break r;let a=u(e,p(e,o+1),8);if("error"===a.type)return a;(i=i.concat(a.marks)).unshift({name:"div",position:n}),t=a.position,s=7;break}case"%":{if(r>7||s<7)break r;let a=u(e,p(e,o+1),8);if("error"===a.type)return a;(i=i.concat(a.marks)).unshift({name:"mod",position:n}),t=a.position,s=7;break}case"<":case">":{if(r>4||s<=4)break r;let a=o+1;"="===e[a]&&a++;let l=u(e,p(e,a),5);if("error"===l.type)return l;i.unshift({name:"comp",position:n}),i.push({name:"op",position:o},{name:"op_end",position:a}
33),i=i.concat(l.marks),t=l.position,s=4;break}case"|":if("|"===e[o+1]){if(r>2||s<2)break r;let a=u(e,p(e,o+2),3);if("error"===a.type)return a;(i=i.concat(a.marks)).unshift({name:"or",position:n}),t=a.position,s=2}else{if(r>11||s<11)break r;let a=p(e,o+1),u=m(e,a,l);if(!u)return{type:"error",message:"Expected identifier",position:a};if("("===e[t=a+u]||":"===e[t]){let r=h(e,a,t);if("error"===r.type)return r;(i=i.concat(r.marks)).unshift({name:"pipecall",position:n}),t=r.position,s=11}}break;case"&":{if("&"!=e[o+1]||r>3||s<3)break r;let a=u(e,p(e,o+2),4);if("error"===a.type)return a;(i=i.concat(a.marks)).unshift({name:"and",position:n}),t=a.position,s=3;break}case"!":{if("="!==e[o+1]||r>4||s<=4)break r;let a=u(e,p(e,o+2),5);if("error"===a.type)return a;i.unshift({name:"comp",position:n}),i.push({name:"op",position:o},{name:"op_end",position:o+2}),i=i.concat(a.marks),t=a.position,s=4;break}case"d":if("desc"!==e.slice(o,o+4)||r>4||s<4)break r;i.unshift({name:"desc",position:n}),t=o+4,s=4;break;case"a":if("asc"!==e.slice(o,o+3)||r>4||s<4)break r;i.unshift({name:"asc",position:n}),t=o+3,s=4;break;default:switch(g(e,o,l)){case"in":{if(r>4||s<=4)break r;t=p(e,o+2);let a=!1;"("===e[t]&&(a=!0,t=p(e,t+1));let l=t,c=u(e,t,5);if("error"===c.type)return c;if(t=p(e,c.position),"."===e[t]&&"."===e[t+1]){let r="inc_range";"."===e[t+2]?(r="exc_range",t=p(e,t+3)):t=p(e,t+2);let s=u(e,t,5);if("error"===s.type)return s;i.unshift({name:"in_range",position:n}),i=i.concat({name:r,position:l},c.marks,s.marks),t=s.position}else i.unshift({name:"comp",position:n}),i.push({name:"op",position:o},{name:"op_end",position:o+2}),i=i.concat(c.marks);if(a){if(t=p(e,t),")"!==e[t])return{type:"error",message:'Expected ")" in group',position:t};t++}s=4;break}case"match":{if(r>4||s<=4)break r;let a=u(e,p(e,o+5),5);if("error"===a.type)return a;i.unshift({name:"comp",position:n}),i.push({name:"op",position:o},{name:"op_end",position:o+5}),i=i.concat(a.marks),t=a.position,s=4;break}default:break r}}}return{type:"success",marks:i,position:t,failPosition:a?.type==="error"&&a.position}}function c(e,t){let r=t,n,i=u(e,p(e,t+1),0);if("error"===i.type)return i;switch(t=p(e,i.position),e[t]){case",":for(n=[{name:"tuple",position:r}].concat(i.marks),t=p(e,t+1);;){if("error"===(i=u(e,t,0)).type)return i;if(n.push(...i.marks),t=p(e,i.position),","!==e[t])break;t=p(e,t+1)}if(")"!==e[t])return{type:"error",message:'Expected ")" after tuple expression',position:t};t++,n.push({name:"tuple_end",position:t});break;case")":t++,n=[{name:"group",position:r}].concat(i.marks);break;default:return{type:"error",message:`Unexpected character "${e[t]}"`,position:t}}return{type:"success",marks:n,position:t}}function d(e,t){let r=t;switch(e[t]){case".":{if(t=p(e,t+1),"("===e[t])return c(e,t);let n=t,i=m(e,t,l);return i?{type:"success",marks:[{name:"attr_access",position:r},{name:"ident",position:n},{name:"ident_end",position:t+=i}],position:t}:{type:"error",message:'Expected identifier after "."',position:t}}case"-":if(">"!==e[t+1])return{type:"error",message:'Expected ">" in reference',position:t};let n=[{name:"deref",position:r}],i=p(e,t+=2),s=m(e,i,l);return s&&(t=i+s,n.push({name:"deref_attr",position:i},{name:"ident",position:i},{name:"ident_end",position:t})),{type:"success",marks:n,position:t};case"[":{if(t=p(e,t+1),"]"===e[t])return{type:"success",marks:[{name:"array_postfix",position:r}],position:t+1};let n=t,i=u(e,t,0);if("error"===i.type)return i;if(t=p(e,i.position),"."===e[t]&&"."===e[t+1]){let s="inc_range";"."===e[t+2]?(s="exc_range",t+=3):t+=2,t=p(e,t);let a=u(e,t,0);return"error"===a.type?a:(t=p(e,a.position),"]"!==e[t]?{type:"error",message:'Expected "]" after array expression',position:t}:{type:"success",marks:[{name:"slice",position:r},{name:s,position:n}].concat(i.marks,a.marks),position:t+1})}return"]"!==e[t]?{type:"error",message:'Expected "]" after array expression',position:t}:{type:"success",marks:[{name:"square_bracket",position:r}].concat(i.marks),position:t+1}}case"|":if(t=p(e,t+1),"{"===e[t]){let n=f(e,t);return"error"===n.type||n.marks.unshift({name:"projection",position:r}),n}break;case"{":{let n=f(e,t);return"error"===n.type||n.marks.unshift({name:"projection",position:r}),n}}return{type:"error",message:"Unexpected character in traversal",position:t}}function h(e,t,r){let n=[];if(n.push({name:"func_call",position:t}),":"===e[r]&&":"===e[r+1]){n.push({name:"namespace",position:t}),n.push({name:"ident",position:t},{name:"ident_end",position:r}),r=p(e,r+2);let i=m(e,r,l);if(!i)return{type:"error",message:"Expected function name",position:r};if(n.push({name:"ident",position:r},{name:"ident_end",position:r+i}),r=p(e,r+i),"("!==e[r])return{type:"error",message:'Expected "(" after function name',position:r};r=p(e,++r)}else n.push({name:"ident",position:t},{name:"ident_end",position:r}),r=p(e,r+1);let i=r;if(")"!==e[r])for(;;){let t=u(e,r,0);if("error"===t.type)return t;if(n=n.concat(t.marks),i=t.position,r=p(e,t.position),","!==e[r]||(r=p(e,r+1),")"===e[r]))break}return")"!==e[r]?{type:"error",message:'Expected ")" after function arguments',position:r}:(n.push({name:"func_args_end",position:i}),{type:"success",marks:n,position:r+1})}function f(e,t){let r=[{name:"object",position:t}];for(t=p(e,t+1);"}"!==e[t];){let n=t;if("..."===e.slice(t,t+3))if(t=p(e,t+3),"}"!==e[t]&&","!==e[t]){let i=u(e,t,0);if("error"===i.type)return i;r.push({name:"object_splat",position:n}),r=r.concat(i.marks),t=i.position}else r.push({name:"object_splat_this",position:n});else{let i=u(e,t,0);if("error"===i.type)return i;let s=p(e,i.position);if("str"===i.marks[0].name&&":"===e[s]){let a=u(e,p(e,s+1),0);if("error"===a.type)return a;r.push({name:"object_pair",position:n}),r=r.concat(i.marks,a.marks),t=a.position}else r=r.concat({name:"object_expr",position:t},i.marks),t=i.position}if(t=p(e,t),","!==e[t])break;t=p(e,t+1)}return"}"!==e[t]?{type:"error",message:'Expected "}" after object',position:t}:(t++,r.push({name:"object_end",position:t}),{type:"success",marks:r,position:t})}function p(e,t){return t+m(e,t,a)}function m(e,t,r){let n=r.exec(e.slice(t));return n?n[0].length:0}function g(e,t,r){let n=r.exec(e.slice(t));return n?n[0]:null}function y(e,t){return r=>t(e(r))}function b(e){return t=>
33({type:"Map",base:t,expr:e({type:"This"})})}function v(e,t){if(!t)return{type:"a-a",build:e};switch(t.type){case"a-a":return{type:"a-a",build:y(e,t.build)};case"a-b":return{type:"a-b",build:y(e,t.build)};case"b-b":return{type:"a-a",build:y(e,b(t.build))};case"b-a":var r;return{type:"a-a",build:y(e,(r=t.build,e=>({type:"FlatMap",base:e,expr:r({type:"This"})})))};default:throw Error(`unknown type: ${t.type}`)}}function _(e,t){if(!t)return{type:"b-b",build:e};switch(t.type){case"a-a":case"b-a":return{type:"b-a",build:y(e,t.build)};case"a-b":case"b-b":return{type:"b-b",build:y(e,t.build)};default:throw Error(`unknown type: ${t.type}`)}}function w(e,t,r=0){switch(e.type){case"Projection":case"Filter":return{...e,base:w(e.base,t,r),expr:w(e.expr,t,r+1)};case"Parent":if(r-e.n<0)throw Error(`Invalid use of parent operator (^). No parent n ${e.n} at level ${r}.`);return e;case"Parameter":if(t.find(t=>t.name===e.name))throw Error(`Function parameters are not allowed outside function declarations: ${e.name}`);return e;case"Array":return{...e,elements:e.elements.map(e=>({...e,value:w(e.value,t,r)}))};case"PipeFuncCall":return{...e,base:w(e.base,t,r),args:e.args.map(e=>w(e,t,r))};case"Object":return{...e,attributes:e.attributes.map(e=>{switch(e.type){case"ObjectAttributeValue":case"ObjectSplat":return{...e,value:w(e.value,t,r)};case"ObjectConditionalSplat":return{...e,condition:w(e.condition,t,r),value:w(e.value,t,r)};default:return e}})};case"FlatMap":case"Map":return{...e,expr:w(e.expr,t,r),base:w(e.base,t,r)};case"FuncCall":return{...e,args:e.args.map(e=>w(e,t,r))};case"Tuple":return{...e,members:e.members.map(e=>w(e,t,r))};case"Select":{let n=e.alternatives.map(e=>({...e,condition:w(e.condition,t,r),value:w(e.value,t,r)}));return e.fallback?{...e,alternatives:n,fallback:w(e.fallback,t,r)}:{...e,alternatives:n}}case"SelectorNested":return{...e,base:w(e.base,t,r),nested:w(e.nested,t,r)};case"SelectorFuncCall":return{...e,arg:w(e.arg,t,r)};case"AccessAttribute":case"AccessElement":case"ArrayCoerce":case"Asc":case"Desc":case"Deref":case"Group":case"Neg":case"Not":case"Slice":case"Pos":return e.base?{...e,base:w(e.base,t,r)}:e;case"InRange":return{...e,base:w(e.base,t,r),left:w(e.left,t,r),right:w(e.right,t,r)};case"OpCall":case"And":case"Or":return{...e,left:w(e.left,t,r),right:w(e.right,t,r)};case"Parameter":case"Everything":case"This":case"Value":case"Context":return e;default:throw Error(`Handle all cases: ${e.type}`)}}let x={"'":"'",'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
34`,r:"\r",t:"	"};class k extends Error{name="GroqQueryError"}function E(e,t=new Set){let r={group:e=>({type:"Group",base:e.process(r)}),everything:()=>({type:"Everything"}),this:()=>({type:"This"}),parent:()=>({type:"Parent",n:1}),dblparent:e=>({type:"Parent",n:e.process(r).n+1}),traverse(e){let t=e.process(r),n=[];for(;"traversal_end"!==e.getMark().name;)n.push(e.process(a));e.shift();let i=null;for(let e=n.length-1;e>=0;e--)i=n[e](i);if(("Everything"===t.type||"Array"===t.type||"PipeFuncCall"===t.type)&&(i=v(e=>e,i)),null===i)throw Error("BUG: unexpected empty traversal");return i.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(r)}),pos:e=>({type:"Pos",base:e.process(r)}),add:e=>({type:"OpCall",op:"+",left:e.process(r),right:e.process(r)}),sub:e=>({type:"OpCall",op:"-",left:e.process(r),right:e.process(r)}),mul:e=>({type:"OpCall",op:"*",left:e.process(r),right:e.process(r)}),div:e=>({type:"OpCall",op:"/",left:e.process(r),right:e.process(r)}),mod:e=>({type:"OpCall",op:"%",left:e.process(r),right:e.process(r)}),pow:e=>({type:"OpCall",op:"**",left:e.process(r),right:e.process(r)}),comp(e){let t=e.process(r);return{type:"OpCall",op:e.processString(),left:t,right:e.process(r)}},in_range(e){let t=e.process(r),n="inc_range"===e.getMark().name;return e.shift(),{type:"InRange",base:t,left:e.process(r),right:e.process(r),isInclusive:n}},str(e){let t="";r:for(;e.hasMark();){let r=e.getMark();switch(r.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 r=e.slice(1);e.shift(),t+=x[r];break}case"unicode_hex":e.shift(),t+=String.fromCharCode(parseInt(e.processStringEnd(),16));break;default:throw Error(`unexpected mark: ${r.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(i));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 i=e.process(r);t.push({type:"ArrayElement",value:i,isSplat:n})}return e.shift(),{type:"Array",elements:t}},tuple(e){let t=[];for(;"tuple_end"!==e.getMark().name;)t.push(e.process(r));return e.shift(),{type:"Tuple",members:t}},func_call(i){let a="global";
34"namespace"===i.getMark().name&&(i.shift(),a=i.processString());let l=i.processString();if("global"===a&&"select"===l){let e={type:"Select",alternatives:[]};for(;"func_args_end"!==i.getMark().name;)if("pair"===i.getMark().name){if(e.fallback)throw new k("unexpected argument to select()");i.shift();let t=i.process(r),n=i.process(r);e.alternatives.push({type:"SelectAlternative",condition:t,value:n})}else{if(e.fallback)throw new k("unexpected argument to select()");e.fallback=i.process(r)}return i.shift(),e}let u=[];for(;"func_args_end"!==i.getMark().name;){var c,d,h;(c=a,d=l,h=u.length,"diff"==c&&2==h&&["changedAny","changedOnly"].includes(d))?u.push(i.process(o)):u.push(i.process(r))}if(i.shift(),"global"===a&&("before"===l||"after"===l)&&"delta"===i.parseOptions.mode)return{type:"Context",key:l};if("global"===a&&"boost"===l&&!i.allowBoost)throw new k("unexpected boost");let f=i.customFunctions[`${a}::${l}`];if(void 0!==f){let r=T(e,t),n=new s(i.string,f.marks,i.customFunctions,e).process(r);return S(l,n.params.length,u.length),A(n.body,e=>w(e,n.params),e=>(function(e,t,r){if("Parameter"!==e.type)throw new k(`Expected parameter node, got ${e.type}`);let n=t.findIndex(t=>t.name===e.name);if(-1===n)throw new k(`Missing argument for parameter ${e.name} in function call`);return r[n]})(e,n.params,u))}let p=n.$q[a];if(!p)throw new k(`Undefined namespace: ${a}`);let m=p[l];if(!m||(void 0!==m.arity&&S(l,m.arity,u.length),void 0!==m.mode&&m.mode!==i.parseOptions.mode))throw new k(`Undefined function: ${l}`);return{type:"FuncCall",namespace:a,name:l,args:u}},pipecall(e){let t=e.process(r);e.shift();let i="global";if("namespace"===e.getMark().name&&(e.shift(),i=e.processString()),"global"!==i)throw new k(`Undefined namespace: ${i}`);let s=e.processString(),a=[],o=e.allowBoost;for("score"===s&&(e.allowBoost=!0);;){let t=e.getMark().name;if("func_args_end"===t)break;if("order"===s){if("asc"===t){e.shift(),a.push({type:"Asc",base:e.process(r)});continue}else if("desc"===t){e.shift(),a.push({type:"Desc",base:e.process(r)});continue}}a.push(e.process(r))}e.shift(),e.allowBoost=o;let l=n.wI[s];if(!l)throw new k(`Undefined pipe function: ${s}`);return l.arity&&S(s,l.arity,a.length),{type:"PipeFuncCall",base:t,name:s,args:a}},pair(){throw new k("unexpected =>")},and:e=>({type:"And",left:e.process(r),right:e.process(r)}),or:e=>({type:"Or",left:e.process(r),right:e.process(r)}),not:e=>({type:"Not",base:e.process(r)}),asc(){throw new k("unexpected asc")},desc(){throw new k("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}}},i={object_expr(e){if("pair"===e.getMark().name)return e.shift(),{type:"ObjectConditionalSplat",condition:e.process(r),value:e.process(r)};let t=e.process(r);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||"FlatMap"===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 k(`Cannot determine property key for type: ${t.type}`)}(t),value:t}},object_pair(e){let t=e.process(r);if("Value"!==t.type)throw Error("name must be string");let n=e.process(r);return{type:"ObjectAttributeValue",name:t.value,value:n}},object_splat:e=>({type:"ObjectSplat",value:e.process(r)}),object_splat_this:()=>({type:"ObjectSplat",value:{type:"This"}})},a={square_bracket(e){let t=e.process(r),i=(0,n.$N)(t);return i&&"number"===i.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:y(e,t.build)};case"a-b":case"b-b":return{type:"a-b",build:y(e,t.build)};default:throw Error(`unknown type: ${t.type}`)}})(e=>({type:"AccessElement",base:e,index:i.data}),e):i&&"string"===i.type?e=>_(e=>({type:"AccessAttribute",base:e,name:i.data}),e):e=>v(e=>({type:"Filter",base:e,expr:t}),e)},slice(e){let t="inc_range"===e.getMark().name;e.shift();let i=e.process(r),s=e.process(r),a=(0,n.$N)(i),o=(0,n.$N)(s);if(!a||!o||"number"!==a.type||"number"!==o.type)throw new k("slicing must use constant numbers");return e=>v(e=>({type:"Slice",base:e,left:a.data,right:o.data,isInclusive:t}),e)},projection(e){let t=e.process(r);return e=>(function(e,t){if(!t)return{type:"b-b",build:e};switch(t.type){case"a-a":return{type:"a-a",build:y(b(e),t.build)};case"a-b":return{type:"a-b",build:y(b(e),t.build)};case"b-a":return{type:"b-a",build:y(e,t.build)};case"b-b":return{type:"b-b",build:y(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=>_(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=>_(e=>{let r;return r={type:"Deref",base:e}
34,t?{type:"AccessAttribute",base:r,name:t}:r},e)},array_postfix:()=>e=>v(e=>({type:"ArrayCoerce",base:e}),e)},o={group:e=>e.process(o),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){let t=e.process(o);for(;"traversal_end"!==e.getMark().name;)if("array_postfix"===e.getMark().name)e.shift(),t={type:"ArrayCoerce",base:t};else if("square_bracket"===e.getMark().name){e.shift();let i=e.process(r),s=(0,n.$N)(i);if(s&&"number"===s.type)throw Error("Invalid array access expression");t=s&&"string"===s.type?{type:"AccessAttribute",base:t,name:s.data}:{type:"Filter",base:t,expr:i}}else if("attr_access"===e.getMark().name)e.shift(),t={type:"AccessAttribute",base:t,name:e.processString()};else if("tuple"===e.getMark().name||"group"===e.getMark().name){let r=e.process(o);if(!(0,n.t$)(r))throw Error(`Unexpected result parsing nested selector: ${r.type}`);t={type:"SelectorNested",base:t,nested:r}}else throw Error("Invalid selector syntax");return e.shift(),t},this_attr:e=>({type:"AccessAttribute",name:e.processString()}),attr_access(){throw Error("Invalid selector syntax")},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(e){let t=[];for(;"tuple_end"!==e.getMark().name;)t.push(e.process(o));return e.shift(),{type:"Tuple",members:t}},func_call(e,t){let n=r.func_call(e,t);if("anywhere"===n.name&&1===n.args.length)return{type:"SelectorFuncCall",name:"anywhere",arg:n.args[0]};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")}};return r}function S(e,t,r){if("number"==typeof t){if(r!==t)throw new k(`Incorrect number of arguments to function ${e}(). Expected ${t}, got ${r}.`)}else if(t&&!t(r))throw new k(`Incorrect number of arguments to function ${e}().`)}function A(e,t,r=e=>e){if("Projection"===e.type){if("Parameter"===e.base.type)return{type:"Projection",base:r(e.base),expr:t(e.expr)};if("Deref"===e.base.type&&"Parameter"===e.base.base.type)return{type:"Projection",base:{type:"Deref",base:r(e.base.base)},expr:t(e.expr)}}if("Map"===e.type&&"ArrayCoerce"===e.base.type&&"Parameter"===e.base.base.type)return{type:"Map",base:{type:"ArrayCoerce",base:r(e.base.base)},expr:t(e.expr)};throw new k(`Unexpected function body, must be a projection. Got "${e.type}"`)}class O extends Error{position;line;column;name="GroqSyntaxError";constructor(e,t,r){super(`Syntax error in GROQ query at position ${e}${r?`: ${r}`:""}`),this.position=e;let n=1,i=0;for(let r=0;r<e&&r<t.length;r++)t[r]===`
35`&&(n++,i=r+1);this.line=n,this.column=e-i+1}}function C(e,t={}){let r=function(e){let t=0;t=p(e,0);let r={};for(;t<e.length&&"fn"===e.substring(t,t+2);){let n=function(e,t){let r=t,n=[],i="",s="";if("fn"!==e.substring(r,r+2))return{type:"success",position:r,marks:n};n.push({name:"func_decl",position:t});let a=r=p(e,r+2);if(!(i=g(e,r,l)))return{type:"error",message:"Expected function name",position:r};if(n.push({name:"ident",position:a},{name:"ident_end",position:r+i.length}),r=p(e,r+i.length),"::"!==e.substring(r,r+2))return{type:"error",message:'Expected "::" after namespace',position:r};if(r=p(e,r+2),!(s=g(e,r,l)))return{type:"error",message:"Expected function name",position:r};if(n.push({name:"ident",position:r},{name:"ident_end",position:r+s.length}),r=p(e,r+s.length),"("!==e[r])return{type:"error",message:'Expected "("',position:r};for(r=p(e,r+1);r<e.length&&")"!==e[r];){if("$"!==e[r])return{type:"error",message:'Parameter should start with "$"',position:r};let t=r,i=g(e,++r,l);if(!i)return{type:"error",message:"Expected function name",position:r};if(r+=i.length,n.push({name:"param",position:t},{name:"ident",position:t+1},{name:"ident_end",position:r}),r=p(e,r),","===e[r])r=p(e,r+1);else if(")"!==e[r])return{type:"error",message:'Expected "," or ")"',position:r}}if(")"!==e[r])return{type:"error",message:'Expected ")"',position:r};if(n.push({name:"func_params_end",position:r}),r=p(e,r+1),"="!==e[r])return{type:"error",message:'Expected "="',position:r};r=p(e,r+1);let o=u(e,r,0);return"error"===o.type?o:(n=n.concat(o.marks),r=p(e,o.position),";"!==e[r]?{type:"error",message:'Expected ";" after function declaration',position:r}:{type:"success",position:++r,marks:n,namespace:i,name:s})}(e,t);if("error"===n.type)return n;r[`${n.namespace}::${n.name}`]=n,t=p(e,n.position)}let n=u(e,t,0);return"error"===n.type?n:(t=p(e,n.position))!==e.length?(n.failPosition&&(t=n.failPosition-1),{type:"error",message:"Unexpected end of query",position:t}):(delete n.position,delete n.failPosition,n.customFunctions=r,n)}(e);if("error"===r.type)throw new O(r.position,e,r.message);!function(e,t,r){for(let n in t){if(!t.hasOwnProperty(n))continue;let i=new s(e,t[n].marks,t,r),a=T(r),o=i.process(a);A(o.body,e=>w(e,o.params))}}(e,r.customFunctions,t);let n=new s(e,r.marks,r.customFunctions,t),i=E(t);return n.process(i)}function T(e,t=new Set){return{func_decl(r){let n=r.processString(),i=r.processString(),s=`${n}::${i}`;if(t.has(s))throw new k(`Recursive function definition detected for ${s}`);let a=E(e,new Set([...t,s])),o=[];for(;"func_params_end"!==r.getMark().name;){let e=r.process(a);if("Parameter"!==e.type)throw Error("expected parameter");o.push(e)}if(1!==o.length)throw new k("Custom functions can only have one parameter");return r.shift(),{type:"FuncDeclaration",namespace:n,name:i,params:o,body:r.process(a)}}}}let{compare:I}=new Intl.Collator("en");i("typeEvaluator:scope:trace").log=console.log.bind(console),i("typeEvaluator:evaluate:trace").log=console.log.bind(console),i("typeEvaluator:evaluate:debug").log=console.log.bind(console),i("typeEvaluator:evaluate:warn")},32239:(e,t,r)=>{"use strict";r.d(t,{default:()=>s});var n=r(23302),i=r(38562);let s=(0,n.A)((0,i.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility")},32253:(e,t,r)=>{"use strict";r.d(t,{v:()=>a});var n=r(2782),i=r(2297),s=r(27248);function a(e,t){return new n.c(function(r){var n=e(),a=t(n);return(a?(0,i.Tg)(a):s.w).subscribe(r),function(){n&&n.unsubscribe()}})}},32259:(e,t,r)=>{var n=r(78903),i=r(12387),s=r(40767),a=r(58516),o=r(97423),l=r(91187);e.exports=function(e,t,r,u){var c=-1,d=i,h=!0,f=e.length,p=[],m=t.length;if(!f)return p;r&&(t=a(t,o(r))),u?(d=s,h=!1):t.length>=200&&(d=l,h=!1,t=new n(t));n:for(;++c<f;){var g=e[c],y=null==r?g:r(g);if(g=u||0!==g?g:0,h&&y==y){for(var b=m;b--;)if(t[b]===y)continue n;p.push(g)}else d(t,y,u)||p.push(g)}return p}},32746:(e,t,r)=>{var n=r(69847),i=r(92908),s=r(15104);e.exports=function(e){return n(e,s,i)}},32772:(e,t,r)=>{var n=r(42725);e.exports=function(){if(!arguments.length)return[];var e=arguments[0];return n(e)?e:[e]}},32779:(e,t,r)=>{"use strict";let n;r.d(t,{Z:()=>l});var i=r(23821),s=r(32785),a=r(33806);let o=new WeakMap,l=(0,s._C)(()=>({name:"FunctionToString",setupOnce(){n=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=(0,a.sp)(this),r=o.has((0,i.KU)())&&void 0!==t?t:this;return n.apply(r,e)}}catch(e){}},setup(e){o.set(e,!0)}}))},32785:(e,t,r)=>{"use strict";r.d(t,{P$:()=>o,_C:()=>c,lc:()=>l,mH:()=>a,qm:()=>u});var n=r(87809),i=r(87865);let s=[];function a(e){let t,r=e.defaultIntegrations||[],n=e.integrations;
35if(r.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(n))t=[...r,...n];else if("function"==typeof n){let e=n(r);t=Array.isArray(e)?e:[e]}else t=r;let i=function(e){let t={};return e.forEach(e=>{let{name:r}=e,n=t[r];n&&!n.isDefaultInstance&&e.isDefaultInstance||(t[r]=e)}),Object.values(t)}(t),s=i.findIndex(e=>"Debug"===e.name);if(s>-1){let[e]=i.splice(s,1);i.push(e)}return i}function o(e,t){let r={};return t.forEach(t=>{t&&u(e,t,r)}),r}function l(e,t){for(let r of t)r&&r.afterAllSetup&&r.afterAllSetup(e)}function u(e,t,r){if(r[t.name]){n.T&&i.vF.log(`Integration skipped because it was already installed: ${t.name}`);return}if(r[t.name]=t,-1===s.indexOf(t.name)&&"function"==typeof t.setupOnce&&(t.setupOnce(),s.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){let r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,n)=>r(t,n,e))}if("function"==typeof t.processEvent){let r=t.processEvent.bind(t),n=Object.assign((t,n)=>r(t,n,e),{id:t.name});e.addEventProcessor(n)}n.T&&i.vF.log(`Integration installed: ${t.name}`)}function c(e){return e}},32950:(e,t,r)=>{var n=r(70144),i=r(24622);e.exports=function(e){return n(i(e))}},33051:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(21575),i=r(61297),s=r(84841);function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=(0,i.lI)(e);return(0,s.N)(function(t,i){(r?(0,n.x)(e,t,r):(0,n.x)(e,t)).subscribe(i)})}},33241:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var n=r(97537);function i(e){let t=(0,n.a)(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),e-r}},33806:(e,t,r)=>{"use strict";r.d(t,{Ce:()=>g,GS:()=>l,HF:()=>m,W4:()=>h,my:()=>u,pO:()=>c,sp:()=>d});var n=r(53515),i=r(41025),s=r(28077),a=r(87865),o=r(3352);function l(e,t,r){if(!(t in e))return;let n=e[t],s=r(n);"function"==typeof s&&c(s,n);try{e[t]=s}catch(r){i.T&&a.vF.log(`Failed to replace method "${t}" in object`,e)}}function u(e,t,r){try{Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0})}catch(r){i.T&&a.vF.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function c(e,t){try{let r=t.prototype||{};e.prototype=t.prototype=r,u(e,"__sentry_original__",t)}catch(e){}}function d(e){return e.__sentry_original__}function h(e){if((0,s.bJ)(e))return{message:e.message,name:e.name,stack:e.stack,...p(e)};if(!(0,s.xH)(e))return e;{let t={type:e.type,target:f(e.target),currentTarget:f(e.currentTarget),...p(e)};return"undefined"!=typeof CustomEvent&&(0,s.tH)(e,CustomEvent)&&(t.detail=e.detail),t}}function f(e){try{return(0,s.vq)(e)?(0,n.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 r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}}function m(e,t=40){let r=Object.keys(h(e));r.sort();let n=r[0];if(!n)return"[object has no keys]";if(n.length>=t)return(0,o.xv)(n,t);for(let e=r.length;e>0;e--){let n=r.slice(0,e).join(", ");if(!(n.length>t)){if(e===r.length)return n;return(0,o.xv)(n,t)}}return""}function g(e){return function e(t,r){if(function(e){if(!(0,s.Qd)(e))return!1;try{let t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(t)){let n=r.get(t);if(void 0!==n)return n;let i={};for(let n of(r.set(t,i),Object.getOwnPropertyNames(t)))void 0!==t[n]&&(i[n]=e(t[n],r));return i}if(Array.isArray(t)){let n=r.get(t);if(void 0!==n)return n;let i=[];return r.set(t,i),t.forEach(t=>{i.push(e(t,r))}),i}return t}(e,new Map)}},33899:(e,t,r)=>{"use strict";r.d(t,{a:()=>s});var n=r(54501);function i(e,t,r,i,{assignment:s}){if(!t.context)throw Error("Cannot assign to undefined `context`. Ensure that `context` is defined in the machine config.");let a={},o={context:t.context,event:r.event,spawn:function(e,{machine:t,context:r},i,s){return(a,o)=>{let l=((a,o)=>{if("string"!=typeof a)return(0,n.c)(a,{id:o?.id,parent:e.self,syncSnapshot:o?.syncSnapshot,input:o?.input,src:a,systemId:o?.systemId});{let l=(0,n.W)(t,a);if(!l)throw Error(`Actor logic '${a}' not implemented in machine '${t.id}'`);let u=(0,n.c)(l,{id:o?.id,parent:e.self,syncSnapshot:o?.syncSnapshot,input:"function"==typeof o?.input?o.input({context:r,event:i,self:e.self}):o?.input,src:a,systemId:o?.systemId});return s[u.id]=u,u}})(a,o);return s[l.id]=l,e.defer(()=>{l._processingStatus!==n._.Stopped&&l.start()}),l}}(e,t,r.event,a),self:e.self,system:e.system},l={};if("function"==typeof s)l=s(o,i);else for(let e of Object.keys(s)){let t=s[e];l[e]="function"==typeof t?t(o,i):t}let u=Object.assign({},t.context,l);return[(0,n.a0)(t,{context:u,children:Object.keys(a).length?{...t.children,...a}:t.children}),void 0,void 0]}function s(e){function t(e,t){}return t.type="xstate.assign",t.assignment=e,t.resolve=i,t}},33900:(e,t,r)=>{"use strict";r.d(t,{AS:()=>u,aj:()=>c,s5:()=>l});var n=r(41025),i=r(87865),s=r(15840);let a={},o={};function l(e,t){a[e]=a[e]||[],a[e].push(t)}function u(e,t){if(!o[e]){o[e]=!0;try{t()}catch(t){n.T&&i.vF.error(`Error while instrumenting ${e}`,t)}}}function c(e,t){let r=e&&a[e];if(r)for(let a of r)try{a(t)}catch(t){n.T&&i.vF.error(`Error while triggering instrumentation handler.
36Type: ${e}
37Name: ${(0,s.qQ)(a)}
38Error:`,t)}}},33955:(e,t,r)=>{"use strict";r.d(t,{J:()=>i,m:()=>s});var n=r(60266);
38function i(e){let t=s(e),[r,i]=(0,n.useState)(t),{defaultDpr:a,maxDpr:o,round:l}=e||{};return(0,n.useEffect)(()=>{if(!("undefined"!=typeof window&&"matchMedia"in window))return;let e=()=>i(s({defaultDpr:a,maxDpr:o,round:l})),t=window.matchMedia(`screen and (resolution: ${r}dppx)`);return t.addEventListener?t.addEventListener("change",e):t.addListener(e),()=>{t.removeEventListener?t.removeEventListener("change",e):t.removeListener(e)}},[r,a,o,l]),r}function s(e){let{defaultDpr:t=1,maxDpr:r=3,round:n=!0}=e||{},i="undefined"!=typeof window&&"number"==typeof window.devicePixelRatio?window.devicePixelRatio:t;return Math.min(Math.max(1,n?Math.floor(i):i),r)}},34376:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=s(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 r in e)n.call(e,r)&&e[r]&&(t=s(t,r));return t}(r)))}return e}function s(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(r=(function(){return i}).apply(t,[]))||(e.exports=r)}()},34454:(e,t,r)=>{e=r.nmd(e);var n=r(36169),i=r(85527),s=t&&!t.nodeType&&t,a=s&&e&&!e.nodeType&&e,o=a&&a.exports===s?n.Buffer:void 0,l=o?o.isBuffer:void 0;e.exports=l||i},34897:(e,t,r)=>{"use strict";let n=r(43166);e.exports=(e,t,r)=>0!==n(e,t,r)},35471:(e,t,r)=>{"use strict";r.d(t,{T:()=>O});var n=r(98592),i=r(20099),s=r(32779),a=r(42840),o=r(87865),l=r(63197),u=r(15840),c=r(32785),d=r(23821),h=r(87809),f=r(4937),p=r(72501),m=r(51622),g=r(985),y=r(30268),b=r(21782);let v=(0,c._C)(()=>({name:"BrowserSession",setupOnce(){if(void 0===m.jf.document){p.T&&o.vF.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}(0,n.J0)({ignoreDuration:!0}),(0,n.J5)(),(0,b._)(({from:e,to:t})=>{void 0!==e&&e!==t&&((0,n.J0)({ignoreDuration:!0}),(0,n.J5)())})}}));var _=r(39173),w=r(85958),x=r(96807),k=r(14126),E=r(75115),S=r(11343),A=r(60266);function O(e){let t={...e};return(0,S.K)(t,"react"),(0,n.o)("react",{version:A.version}),function(e={}){let t=function(e={}){let t={defaultIntegrations:function(e){let t=[(0,i.D)(),(0,s.Z)(),(0,y.G)(),(0,g.F)(),(0,_.L)(),(0,x.p)(),(0,a.s)(),(0,w.M)()];return!1!==e.autoSessionTracking&&t.push(v()),t}(e),release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:m.jf.SENTRY_RELEASE&&m.jf.SENTRY_RELEASE.id?m.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!==m.jf.window&&m.jf;if(!e)return!1;let t=e.chrome?"chrome":"browser",r=e[t],n=r&&r.runtime&&r.runtime.id,i=m.jf.location&&m.jf.location.href||"",s=!!n&&m.jf===m.jf.top&&["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"].some(e=>i.startsWith(`${e}//`)),a=void 0!==e.nw;return!!n&&!s&&!a}())return void(0,o.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)()&&o.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 r={...t,stackParser:(0,u.vk)(t.stackParser||k.lG),integrations:(0,c.mH)(t),transport:t.transport||E._};var n,b=f.y;!0===r.debug&&(h.T?o.vF.enable():(0,o.pq)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),(0,d.o5)().update(r.initialScope);let S=new b(r);return n=S,(0,d.o5)().setClient(n),S.init(),S}(t)}},35508:(e,t,r)=>{"use strict";r.d(t,{q:()=>i});let n={};function i(){return n}},35571:(e,t,r)=>{"use strict";r.d(t,{M:()=>a});var n=r(44854),i=r(13177),s=r(86337);function a(e,t,r){let[a,o]=(0,i.x)(null==r?void 0:r.in,e,t),l=(a-o)/s.s0;return(0,n.u)(null==r?void 0:r.roundingMethod)(l)}},35589:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},35890:(e,t,r)=>{var n=r(23078),i=r(54264),s=Object.prototype.hasOwnProperty;e.exports=i(function(e,t,r){s.call(e,r)?e[r].push(t):n(e,r,[t])})},35957:e=>{"use strict";e.exports=function(e){return(e=String(e||""),n.test(e))?"rtl":i.test(e)?"ltr":"neutral"};var t="֑-߿יִ-﷽ﹰ-ﻼ",r="A-Za-z\xc0-\xd6\xd8-\xf6\xf8-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",n=RegExp("^[^"+r+"]*["+t+"]"),i=RegExp("^[^"+t+"]*["+r+"]")},35985:(e,t,r)=>{"use strict";r.d(t,{o:()=>o});var n=r(41325),i=r(80575),s=r(13177),a=r(13321);function o(e,t){return function(e,t,r){var n={...void 0,weekStartsOn:1}
38;let[i,o]=(0,s.x)(null==n?void 0:n.in,e,t);return+(0,a.k)(i,n)==+(0,a.k)(o,n)}((0,n.w)((null==t?void 0:t.in)||e,e),(0,i.A)((null==t?void 0:t.in)||e))}},36017:(e,t,r)=>{"use strict";r.d(t,{h:()=>function e(t,r,n=2){if(!r||"object"!=typeof r||n<=0)return r;if(t&&r&&0===Object.keys(r).length)return t;let i={...t};for(let t in r)Object.prototype.hasOwnProperty.call(r,t)&&(i[t]=e(i[t],r[t],n-1));return i}})},36279:(e,t,r)=>{"use strict";r.d(t,{Mp:()=>eF,vL:()=>a,uN:()=>es,AN:()=>ec,fp:()=>R,y$:()=>N,Sj:()=>L,Vy:()=>D,sl:()=>q,fF:()=>eq,PM:()=>ez,zM:()=>eB,MS:()=>E,FR:()=>S});var n,i,s,a,o,l,u,c,d,h,f=r(60266),p=r(14711),m=r(39443);let g={display:"none"};function y(e){let{id:t,value:r}=e;return f.createElement("div",{id:t,style:g},r)}function b(e){let{id:t,announcement:r,ariaLiveType:n="assertive"}=e;return f.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":n,"aria-atomic":!0},r)}let v=(0,f.createContext)(null),_={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  "},w={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was moved over droppable area "+r.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was dropped over droppable area "+r.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function x(e){let{announcements:t=w,container:r,hiddenTextDescribedById:n,screenReaderInstructions:i=_}=e,{announce:s,announcement:a}=function(){let[e,t]=(0,f.useState)("");return{announce:(0,f.useCallback)(e=>{null!=e&&t(e)},[]),announcement:e}}(),o=(0,m.YG)("DndLiveRegion"),[l,u]=(0,f.useState)(!1);(0,f.useEffect)(()=>{u(!0)},[]);var c=(0,f.useMemo)(()=>({onDragStart(e){let{active:r}=e;s(t.onDragStart({active:r}))},onDragMove(e){let{active:r,over:n}=e;t.onDragMove&&s(t.onDragMove({active:r,over:n}))},onDragOver(e){let{active:r,over:n}=e;s(t.onDragOver({active:r,over:n}))},onDragEnd(e){let{active:r,over:n}=e;s(t.onDragEnd({active:r,over:n}))},onDragCancel(e){let{active:r,over:n}=e;s(t.onDragCancel({active:r,over:n}))}}),[s,t]);let d=(0,f.useContext)(v);if((0,f.useEffect)(()=>{if(!d)throw Error("useDndMonitor must be used within a children of <DndContext>");return d(c)},[c,d]),!l)return null;let h=f.createElement(f.Fragment,null,f.createElement(y,{id:n,value:i.draggable}),f.createElement(b,{id:o,announcement:a}));return r?(0,p.createPortal)(h,r):h}function k(){}function E(e,t){return(0,f.useMemo)(()=>({sensor:e,options:null!=t?t:{}}),[e,t])}function S(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,f.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"}(n||(n={}));let A=Object.freeze({x:0,y:0});function O(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:r}}=e,{data:{value:n}}=t;return r-n}function T(e,t){let{data:{value:r}}=e,{data:{value:n}}=t;return n-r}function I(e){let{left:t,top:r,height:n,width:i}=e;return[{x:t,y:r},{x:t+i,y:r},{x:t,y:r+n},{x:t+i,y:r+n}]}function D(e,t){if(!e||0===e.length)return null;let[r]=e;return t?r[t]:r}function j(e,t,r){return void 0===t&&(t=e.left),void 0===r&&(r=e.top),{x:t+.5*e.width,y:r+.5*e.height}}let R=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e,i=j(t,t.left,t.top),s=[];for(let e of n){let{id:t}=e,n=r.get(t);if(n){let r=O(j(n),i);s.push({id:t,data:{droppableContainer:e,value:r}})}}return s.sort(C)},N=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e,i=I(t),s=[];for(let e of n){let{id:t}=e,n=r.get(t);
38if(n){let r=I(n),a=Number((i.reduce((e,t,n)=>e+O(r[n],t),0)/4).toFixed(4));s.push({id:t,data:{droppableContainer:e,value:a}})}}return s.sort(C)},$=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e,i=[];for(let e of n){let{id:n}=e,s=r.get(n);if(s){let r=function(e,t){let r=Math.max(t.top,e.top),n=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),s=Math.min(t.top+t.height,e.top+e.height);if(n<i&&r<s){let a=t.width*t.height,o=e.width*e.height,l=(i-n)*(s-r);return Number((l/(a+o-l)).toFixed(4))}return 0}(s,t);r>0&&i.push({id:n,data:{droppableContainer:e,value:r}})}}return i.sort(T)};function M(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:A}let F=function(e){return function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return n.reduce((t,r)=>({...t,top:t.top+e*r.y,bottom:t.bottom+e*r.y,left:t.left+e*r.x,right:t.right+e*r.x}),{...t})}}(1),P={ignoreTransform:!1};function L(e,t){void 0===t&&(t=P);let r=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:n}=(0,m.zk)(e).getComputedStyle(e);t&&(r=function(e,t,r){let n=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(!n)return e;let{scaleX:i,scaleY:s,x:a,y:o}=n,l=e.left-a-(1-i)*parseFloat(r),u=e.top-o-(1-s)*parseFloat(r.slice(r.indexOf(" ")+1)),c=i?e.width/i:e.width,d=s?e.height/s:e.height;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l}}(r,t,n))}let{top:n,left:i,width:s,height:a,bottom:o,right:l}=r;return{top:n,left:i,width:s,height:a,bottom:o,right:l}}function z(e){return L(e,{ignoreTransform:!0})}function q(e,t){let r=[];return e?function n(i){var s;if(null!=t&&r.length>=t||!i)return r;if((0,m.wz)(i)&&null!=i.scrollingElement&&!r.includes(i.scrollingElement))return r.push(i.scrollingElement),r;if(!(0,m.sb)(i)||(0,m.xZ)(i)||r.includes(i))return r;let a=(0,m.zk)(e).getComputedStyle(i);return(i!==e&&function(e,t){void 0===t&&(t=(0,m.zk)(e).getComputedStyle(e));let r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{let n=t[e];return"string"==typeof n&&r.test(n)})}(i,a)&&r.push(i),void 0===(s=a)&&(s=(0,m.zk)(i).getComputedStyle(i)),"fixed"===s.position)?r:n(i.parentNode)}(e):r}function U(e){let[t]=q(e,1);return null!=t?t:null}function B(e){return m.Sw&&e?(0,m.l6)(e)?e:(0,m.Ll)(e)?(0,m.wz)(e)||e===(0,m.TW)(e).scrollingElement?window:(0,m.sb)(e)?e:null:null:null}function V(e){return(0,m.l6)(e)?e.scrollX:e.scrollLeft}function H(e){return(0,m.l6)(e)?e.scrollY:e.scrollTop}function G(e){return{x:V(e),y:H(e)}}function W(e){return!!m.Sw&&!!e&&e===document.scrollingElement}function Z(e){let t={x:0,y:0},r=W(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},n={x:e.scrollWidth-r.width,y:e.scrollHeight-r.height},i=e.scrollTop<=t.y,s=e.scrollLeft<=t.x;return{isTop:i,isLeft:s,isBottom:e.scrollTop>=n.y,isRight:e.scrollLeft>=n.x,maxScroll:n,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(i||(i={}));let Y={x:.2,y:.2};function K(e){return e.reduce((e,t)=>(0,m.WQ)(e,G(t)),A)}let J=[["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 X{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 r=q(t),n=K(r);for(let[t,i,s]of(this.rect={...e},this.width=e.width,this.height=e.height,J))for(let e of i)Object.defineProperty(this,e,{get:()=>{let i=s(r),a=n[t]-i;return this.rect[e]+a},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Q{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,r){var n;null==(n=this.target)||n.addEventListener(e,t,r),this.listeners.push([e,t,r])}}function ee(e,t){let r=Math.abs(e.x),n=Math.abs(e.y);return"number"==typeof t?Math.sqrt(r**2+n**2)>t:"x"in t&&"y"in t?r>t.x&&n>t.y:"x"in t?r>t.x:"y"in t&&n>t.y}function et(e){e.preventDefault()}function er(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"}(s||(s={})),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 en={start:[a.Space,a.Enter],cancel:[a.Esc],end:[a.Space,a.Enter,a.Tab]},ei=(e,t)=>{let{currentCoordinates:r}=t;switch(e.code){case a.Right:return{...r,x:r.x+25};case a.Left:return{...r,x:r.x-25};case a.Down:return{...r,y:r.y+25};case a.Up:return{...r,y:r.y-25}}};class es{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 Q((0,m.TW)(t)),this.windowListeners=new Q((0,m.zk)(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(s.Resize,this.handleCancel),this.windowListeners.add(s.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(s.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,r=e.node.current;r&&function(e,t){if(void 0===t&&(t=L),!e)return;let{top:r,left:n,bottom:i,right:s}=t(e);U(e)&&(i<=0||s<=0||r>=window.innerHeight||n>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}(r),t(A)}handleKeyDown(e){if((0,m.kx)(e)){let{active:t,context:r,options:n}
38=this.props,{keyboardCodes:i=en,coordinateGetter:s=ei,scrollBehavior:o="smooth"}=n,{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}=r.current,c=u?{x:u.left,y:u.top}:A;this.referenceCoordinates||(this.referenceCoordinates=c);let d=s(e,{active:t,context:r.current,currentCoordinates:c});if(d){let t=(0,m.Re)(d,c),n={x:0,y:0},{scrollableAncestors:i}=r.current;for(let r of i){let i=e.code,{isTop:s,isRight:l,isLeft:u,isBottom:c,maxScroll:h,minScroll:f}=Z(r),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:r,right:n,bottom:i}=e.getBoundingClientRect();return{top:t,left:r,right:n,bottom:i,width:e.clientWidth,height:e.clientHeight}}(r),m={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))},g=i===a.Right&&!l||i===a.Left&&!u,y=i===a.Down&&!c||i===a.Up&&!s;if(g&&m.x!==d.x){let e=r.scrollLeft+t.x,s=i===a.Right&&e<=h.x||i===a.Left&&e>=f.x;if(s&&!t.y)return void r.scrollTo({left:e,behavior:o});s?n.x=r.scrollLeft-e:n.x=i===a.Right?r.scrollLeft-h.x:r.scrollLeft-f.x,n.x&&r.scrollBy({left:-n.x,behavior:o});break}if(y&&m.y!==d.y){let e=r.scrollTop+t.y,s=i===a.Down&&e<=h.y||i===a.Up&&e>=f.y;if(s&&!t.x)return void r.scrollTo({top:e,behavior:o});s?n.y=r.scrollTop-e:n.y=i===a.Down?r.scrollTop-h.y:r.scrollTop-f.y,n.y&&r.scrollBy({top:-n.y,behavior:o});break}}this.handleMove(e,(0,m.WQ)((0,m.Re)(d,this.referenceCoordinates),n))}}}handleMove(e,t){let{onMove:r}=this.props;e.preventDefault(),r(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 eo(e){return!!(e&&"delay"in e)}es.activators=[{eventName:"onKeyDown",handler:(e,t,r)=>{let{keyboardCodes:n=en,onActivation:i}=t,{active:s}=r,{code:a}=e.nativeEvent;if(n.start.includes(a)){let t=s.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==i||i({event:e.nativeEvent}),!0)}return!1}}];class el{constructor(e,t,r){var n;void 0===r&&(r=function(e){let{EventTarget:t}=(0,m.zk)(e);return e instanceof t?e:(0,m.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:s}=i;this.props=e,this.events=t,this.document=(0,m.TW)(s),this.documentListeners=new Q(this.document),this.listeners=new Q(r),this.windowListeners=new Q((0,m.zk)(s)),this.initialCoordinates=null!=(n=(0,m.e_)(i))?n: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:r}}}=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(s.Resize,this.handleCancel),this.windowListeners.add(s.DragStart,et),this.windowListeners.add(s.VisibilityChange,this.handleCancel),this.windowListeners.add(s.ContextMenu,et),this.documentListeners.add(s.Keydown,this.handleKeydown),t){if(null!=r&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(eo(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:r,onPending:n}=this.props;n(r,e,this.initialCoordinates,t)}handleStart(){let{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(s.Click,er,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(s.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;let{activated:r,initialCoordinates:n,props:i}=this,{onMove:s,options:{activationConstraint:a}}=i;if(!n)return;let o=null!=(t=(0,m.e_)(e))?t:A,l=(0,m.Re)(n,o);if(!r&&a){if(ea(a)){if(null!=a.tolerance&&ee(l,a.tolerance))return this.handleCancel();if(ee(l,a.distance))return this.handleStart()}return eo(a)&&ee(l,a.tolerance)?this.handleCancel():void this.handlePending(a,l)}e.cancelable&&e.preventDefault(),s(o)}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,m.TW)(t.target))}}ec.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;return!!r.isPrimary&&0===r.button&&(null==n||n({event:r}),!0)}}];let ed={move:{name:"mousemove"},end:{name:"mouseup"}};!function(e){e[e.RightClick=2]="RightClick"}(o||(o={}));class eh extends el{constructor(e){super(e,ed,(0,m.TW)(e.event.target))}}eh.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;return r.button!==o.RightClick&&(null==n||n({event:r}),!0)}}];let ef={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class ep extends el{constructor(e){super(e,ef)}static setup(){return window.addEventListener(ef.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(ef.move.name,e)};function e(){}}}ep.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t,{touches:i}=r;return!(i.length>1)&&(null==n||n({event:r}),!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
38sedTreeOrder"}(u||(u={}));let em={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 eg=new Map;function ey(e,t){return(0,m.KG)(r=>e?r||("function"==typeof t?t(e):e):null,[t,e])}function eb(e){let{callback:t,disabled:r}=e,n=(0,m._q)(t),i=(0,f.useMemo)(()=>{if(r||"undefined"==typeof window||void 0===window.ResizeObserver)return;let{ResizeObserver:e}=window;return new e(n)},[r]);return(0,f.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}function ev(e){return new X(L(e),e)}function e_(e,t,r){void 0===t&&(t=ev);let[n,i]=(0,f.useState)(null);function s(){i(n=>{if(!e)return null;if(!1===e.isConnected){var i;return null!=(i=null!=n?n:r)?i:null}let s=t(e);return JSON.stringify(n)===JSON.stringify(s)?n:s})}let a=function(e){let{callback:t,disabled:r}=e,n=(0,m._q)(t),i=(0,f.useMemo)(()=>{if(r||"undefined"==typeof window||void 0===window.MutationObserver)return;let{MutationObserver:e}=window;return new e(n)},[n,r]);return(0,f.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}({callback(t){if(e)for(let r of t){let{type:t,target:n}=r;if("childList"===t&&n instanceof HTMLElement&&n.contains(e)){s();break}}}}),o=eb({callback:s});return(0,m.Es)(()=>{s(),e?(null==o||o.observe(e),null==a||a.observe(document.body,{childList:!0,subtree:!0})):(null==o||o.disconnect(),null==a||a.disconnect())},[e]),n}let ew=[];function ex(e,t){void 0===t&&(t=[]);let r=(0,f.useRef)(null);return(0,f.useEffect)(()=>{r.current=null},t),(0,f.useEffect)(()=>{let t=e!==A;t&&!r.current&&(r.current=e),!t&&r.current&&(r.current=null)},[e]),r.current?(0,m.Re)(e,r.current):A}function ek(e){return(0,f.useMemo)(()=>e?function(e){let t=e.innerWidth,r=e.innerHeight;return{top:0,left:0,right:t,bottom:r,width:t,height:r}}(e):null,[e])}let eE=[],eS=[{sensor:ec,options:{}},{sensor:es,options:{}}],eA={current:{}},eO={draggable:{measure:z},droppable:{measure:z,strategy:c.WhileDragging,frequency:d.Optimized},dragOverlay:{measure:L}};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,r;return null!=(t=null==(r=this.get(e))?void 0:r.node.current)?t:void 0}}let eT={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:k},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:eO,measureDroppableContainers:k,windowRect:null,measuringScheduled:!1},eI={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:k,draggableNodes:new Map,over:null,measureDroppableContainers:k},eD=(0,f.createContext)(eI),ej=(0,f.createContext)(eT);function eR(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new eC}}}function eN(e,t){switch(t.type){case n.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case n.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 n.DragEnd:case n.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case n.RegisterDroppable:{let{element:r}=t,{id:n}=r,i=new eC(e.droppable.containers);return i.set(n,r),{...e,droppable:{...e.droppable,containers:i}}}case n.SetDroppableDisabled:{let{id:r,key:n,disabled:i}=t,s=e.droppable.containers.get(r);if(!s||n!==s.key)return e;let a=new eC(e.droppable.containers);return a.set(r,{...s,disabled:i}),{...e,droppable:{...e.droppable,containers:a}}}case n.UnregisterDroppable:{let{id:r,key:n}=t,i=e.droppable.containers.get(r);if(!i||n!==i.key)return e;
38let s=new eC(e.droppable.containers);return s.delete(r),{...e,droppable:{...e.droppable,containers:s}}}default:return e}}function e$(e){let{disabled:t}=e,{active:r,activatorEvent:n,draggableNodes:i}=(0,f.useContext)(eD),s=(0,m.ZC)(n),a=(0,m.ZC)(null==r?void 0:r.id);return(0,f.useEffect)(()=>{if(!t&&!n&&s&&null!=a){if(!(0,m.kx)(s)||document.activeElement===s.target)return;let e=i.get(a);if(!e)return;let{activatorNode:t,node:r}=e;(t.current||r.current)&&requestAnimationFrame(()=>{for(let e of[t.current,r.current]){if(!e)continue;let t=(0,m.ag)(e);if(t){t.focus();break}}})}},[n,t,i,a,s]),null}let eM=(0,f.createContext)({...A,scaleX:1,scaleY:1});!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(h||(h={}));let eF=(0,f.memo)(function(e){var t,r,s,a,o,d;let{id:g,accessibility:y,autoScroll:b=!0,children:_,sensors:w=eS,collisionDetection:k=$,measuring:E,modifiers:S,...O}=e,[C,T]=(0,f.useReducer)(eN,void 0,eR),[I,j]=function(){let[e]=(0,f.useState)(()=>new Set),t=(0,f.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,f.useCallback)(t=>{let{type:r,event:n}=t;e.forEach(e=>{var t;return null==(t=e[r])?void 0:t.call(e,n)})},[e]),t]}(),[R,N]=(0,f.useState)(h.Uninitialized),P=R===h.Initialized,{draggable:{active:z,nodes:V,translate:H},droppable:{containers:J}}=C,Q=null!=z?V.get(z):null,ee=(0,f.useRef)({initial:null,translated:null}),et=(0,f.useMemo)(()=>{var e;return null!=z?{id:z,data:null!=(e=null==Q?void 0:Q.data)?e:eA,rect:ee}:null},[z,Q]),er=(0,f.useRef)(null),[en,ei]=(0,f.useState)(null),[es,ea]=(0,f.useState)(null),eo=(0,m.YN)(O,Object.values(O)),el=(0,m.YG)("DndDescribedBy",g),eu=(0,f.useMemo)(()=>J.getEnabled(),[J]),ec=(0,f.useMemo)(()=>({draggable:{...eO.draggable,...null==E?void 0:E.draggable},droppable:{...eO.droppable,...null==E?void 0:E.droppable},dragOverlay:{...eO.dragOverlay,...null==E?void 0:E.dragOverlay}}),[null==E?void 0:E.draggable,null==E?void 0:E.droppable,null==E?void 0:E.dragOverlay]),{droppableRects:ed,measureDroppableContainers:eh,measuringScheduled:ef}=function(e,t){let{dragging:r,dependencies:n,config:i}=t,[s,a]=(0,f.useState)(null),{frequency:o,measure:l,strategy:u}=i,d=(0,f.useRef)(e),h=function(){switch(u){case c.Always:return!1;case c.BeforeDragging:return r;default:return!r}}(),p=(0,m.YN)(h),g=(0,f.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,f.useRef)(null),b=(0,m.KG)(t=>{if(h&&!r)return eg;if(!t||t===eg||d.current!==e||null!=s){let t=new Map;for(let r of e){if(!r)continue;if(s&&s.length>0&&!s.includes(r.id)&&r.rect.current){t.set(r.id,r.rect.current);continue}let e=r.node.current,n=e?new X(l(e),e):null;r.rect.current=n,n&&t.set(r.id,n)}return t}return t},[e,s,r,h,l]);return(0,f.useEffect)(()=>{d.current=e},[e]),(0,f.useEffect)(()=>{h||g()},[r,h]),(0,f.useEffect)(()=>{s&&s.length>0&&a(null)},[JSON.stringify(s)]),(0,f.useEffect)(()=>{h||"number"!=typeof o||null!==y.current||(y.current=setTimeout(()=>{g(),y.current=null},o))},[o,h,g,...n]),{droppableRects:b,measureDroppableContainers:g,measuringScheduled:null!=s}}(eu,{dragging:P,dependencies:[H.x,H.y],config:ec.droppable}),ep=function(e,t){let r=null!=t?e.get(t):void 0,n=r?r.node.current:null;return(0,m.KG)(e=>{var r;return null==t?null:null!=(r=null!=n?n:e)?r:null},[n,t])}(V,z),ev=(0,f.useMemo)(()=>es?(0,m.e_)(es):null,[es]),eC=function(){let e=(null==en?void 0:en.autoScrollEnabled)===!1,t="object"==typeof b?!1===b.enabled:!1===b,r=P&&!e&&!t;return"object"==typeof b?{...b,enabled:r}:{enabled:r}}(),eT=ey(ep,ec.draggable.measure);!function(e){let{activeNode:t,measure:r,initialRect:n,config:i=!0}=e,s=(0,f.useRef)(!1),{x:a,y:o}="boolean"==typeof i?{x:i,y:i}:i;(0,m.Es)(()=>{if(!a&&!o||!t){s.current=!1;return}if(s.current||!n)return;let e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;let i=M(r(e),n);if(a||(i.x=0),o||(i.y=0),s.current=!0,Math.abs(i.x)>0||Math.abs(i.y)>0){let t=U(e);t&&t.scrollBy({top:i.y,left:i.x})}},[t,a,o,n,r])}({activeNode:null!=z?V.get(z):null,config:eC.layoutShiftCompensation,initialRect:eT,measure:ec.draggable.measure});let eI=e_(ep,ec.draggable.measure,eT),eF=e_(ep?ep.parentElement:null),eP=(0,f.useRef)({activatorEvent:null,active:null,activeNode:ep,collisionRect:null,collisions:null,droppableRects:ed,draggableNodes:V,draggingNode:null,draggingNodeRect:null,droppableContainers:J,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),eL=J.getNodeFor(null==(t=eP.current.over)?void 0:t.id),ez=function(e){let{measure:t}=e,[r,n]=(0,f.useState)(null),i=eb({callback:(0,f.useCallback)(e=>{for(let{target:r}of e)if((0,m.sb)(r)){n(e=>{let n=t(r);return e?{...e,width:n.width,height:n.height}:n});break}},[t])}),s=(0,f.useCallback)(e=>{let r=function(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return(0,m.sb)(t)?t:e}(e);null==i||i.disconnect(),r&&(null==i||i.observe(r)),n(r?t(r):null)},[t,i]),[a,o]=(0,m.lk)(s);return(0,f.useMemo)(()=>({nodeRef:a,rect:r,setRef:o}),[r,a,o])}({measure:ec.dragOverlay.measure}),eq=null!=(r=ez.nodeRef.current)?r:ep,eU=P?null!=(s=ez.rect)?s:eI:null,eB=!!(ez.n
38odeRef.current&&ez.rect),eV=function(e){let t=ey(e);return M(e,t)}(eB?null:eI),eH=ek(eq?(0,m.zk)(eq):null),eG=function(e){let t=(0,f.useRef)(e),r=(0,m.KG)(r=>e?r&&r!==ew&&e&&t.current&&e.parentNode===t.current.parentNode?r:q(e):ew,[e]);return(0,f.useEffect)(()=>{t.current=e},[e]),r}(P?null!=eL?eL:ep:null),eW=function(e,t){void 0===t&&(t=L);let[r]=e,n=ek(r?(0,m.zk)(r):null),[i,s]=(0,f.useState)(eE);function a(){s(()=>e.length?e.map(e=>W(e)?n:new X(t(e),e)):eE)}let o=eb({callback:a});return(0,m.Es)(()=>{null==o||o.disconnect(),a(),e.forEach(e=>null==o?void 0:o.observe(e))},[e]),i}(eG),eZ=function(e,t){let{transform:r,...n}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...n}),r):r}(S,{transform:{x:H.x-eV.x,y:H.y-eV.y,scaleX:1,scaleY:1},activatorEvent:es,active:et,activeNodeRect:eI,containerNodeRect:eF,draggingNodeRect:eU,over:eP.current.over,overlayNodeRect:ez.rect,scrollableAncestors:eG,scrollableAncestorRects:eW,windowRect:eH}),eY=ev?(0,m.WQ)(ev,H):null,eK=function(e){let[t,r]=(0,f.useState)(null),n=(0,f.useRef)(e),i=(0,f.useCallback)(e=>{let t=B(e.target);t&&r(e=>e?(e.set(t,G(t)),new Map(e)):null)},[]);return(0,f.useEffect)(()=>{let t=n.current;if(e!==t){s(t);let a=e.map(e=>{let t=B(e);return t?(t.addEventListener("scroll",i,{passive:!0}),[t,G(t)]):null}).filter(e=>null!=e);r(a.length?new Map(a):null),n.current=e}return()=>{s(e),s(t)};function s(e){e.forEach(e=>{let t=B(e);null==t||t.removeEventListener("scroll",i)})}},[i,e]),(0,f.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>(0,m.WQ)(e,t),A):K(e):A,[e,t])}(eG),eJ=ex(eK),eX=ex(eK,[eI]),eQ=(0,m.WQ)(eZ,eJ),e0=eU?F(eU,eZ):null,e1=et&&e0?k({active:et,collisionRect:e0,droppableRects:ed,droppableContainers:eu,pointerCoordinates:eY}):null,e2=D(e1,"id"),[e5,e3]=(0,f.useState)(null),e4=(o=eB?eZ:(0,m.WQ)(eZ,eX),d=null!=(a=null==e5?void 0:e5.rect)?a:null,{...o,scaleX:d&&eI?d.width/eI.width:1,scaleY:d&&eI?d.height/eI.height:1}),e6=(0,f.useRef)(null),e8=(0,f.useCallback)((e,t)=>{let{sensor:r,options:i}=t;if(null==er.current)return;let s=V.get(er.current);if(!s)return;let a=e.nativeEvent,o=new r({active:er.current,activeNode:s,event:a,options:i,context:eP,onAbort(e){if(!V.get(e))return;let{onDragAbort:t}=eo.current,r={id:e};null==t||t(r),I({type:"onDragAbort",event:r})},onPending(e,t,r,n){if(!V.get(e))return;let{onDragPending:i}=eo.current,s={id:e,constraint:t,initialCoordinates:r,offset:n};null==i||i(s),I({type:"onDragPending",event:s})},onStart(e){let t=er.current;if(null==t)return;let r=V.get(t);if(!r)return;let{onDragStart:i}=eo.current,s={activatorEvent:a,active:{id:t,data:r.data,rect:ee}};(0,p.unstable_batchedUpdates)(()=>{null==i||i(s),N(h.Initializing),T({type:n.DragStart,initialCoordinates:e,active:t}),I({type:"onDragStart",event:s}),ei(e6.current),ea(a)})},onMove(e){T({type:n.DragMove,coordinates:e})},onEnd:l(n.DragEnd),onCancel:l(n.DragCancel)});function l(e){return async function(){let{active:t,collisions:r,over:i,scrollAdjustedTranslate:s}=eP.current,o=null;if(t&&s){let{cancelDrop:l}=eo.current;o={activatorEvent:a,active:t,collisions:r,delta:s,over:i},e===n.DragEnd&&"function"==typeof l&&await Promise.resolve(l(o))&&(e=n.DragCancel)}er.current=null,(0,p.unstable_batchedUpdates)(()=>{T({type:e}),N(h.Uninitialized),e3(null),ei(null),ea(null),e6.current=null;let t=e===n.DragEnd?"onDragEnd":"onDragCancel";if(o){let e=eo.current[t];null==e||e(o),I({type:t,event:o})}})}}e6.current=o},[V]),e9=(0,f.useCallback)((e,t)=>(r,n)=>{let i=r.nativeEvent,s=V.get(n);null!==er.current||!s||i.dndKit||i.defaultPrevented||!0===e(r,t.options,{active:s})&&(i.dndKit={capturedBy:t.sensor},er.current=n,e8(r,t))},[V,e8]),e7=(0,f.useMemo)(()=>w.reduce((e,t)=>{let{sensor:r}=t;return[...e,...r.activators.map(e=>({eventName:e.eventName,handler:e9(e.handler,t)}))]},[]),[w,e9]);(0,f.useEffect)(()=>{if(!m.Sw)return;let e=w.map(e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()});return()=>{for(let t of e)null==t||t()}},w.map(e=>{let{sensor:t}=e;return t})),(0,m.Es)(()=>{eI&&R===h.Initializing&&N(h.Initialized)},[eI,R]),(0,f.useEffect)(()=>{let{onDragMove:e}=eo.current,{active:t,activatorEvent:r,collisions:n,over:i}=eP.current;if(!t||!r)return;let s={active:t,activatorEvent:r,collisions:n,delta:{x:eQ.x,y:eQ.y},over:i};(0,p.unstable_batchedUpdates)(()=>{null==e||e(s),I({type:"onDragMove",event:s})})},[eQ.x,eQ.y]),(0,f.useEffect)(()=>{let{active:e,activatorEvent:t,collisions:r,droppableContainers:n,scrollAdjustedTranslate:i}=eP.current;if(!e||null==er.current||!t||!i)return;let{onDragOver:s}=eo.current,a=n.get(e2),o=a&&a.rect.current?{id:a.id,rect:a.rect.current,data:a.data,disabled:a.disabled}:null,l={active:e,activatorEvent:t,collisions:r,delta:{x:i.x,y:i.y},over:o};(0,p.unstable_batchedUpdates)(()=>{e3(o),null==s||s(l),I({type:"onDragOver",event:l})})},[e2]),(0,m.Es)(()=>{eP.current={activatorEvent:es,active:et,activeNode:ep,collisionRect:e0,collisions:e1,droppableRects:ed,draggableNodes:V,draggingNode:eq,draggingNodeRect:eU,droppableContainers:J,over:e5,scrollableAncestors:eG,scrollAdjustedTranslate:eQ},ee.current={initial:eU,translated:e0}},[et,ep,e1,e0,V,eq,eU,ed,J,e5,eG,eQ]),function(e){let{acceleration:t,activator:r=l.Pointer,canScroll:n,draggingRect:s,enabled:a,interval:o=5,order:c=u.TreeOrder,pointerCoordinates:d,scrollableAncestors:h,scrollableAncestorRects:p,delta:g,threshold:y}=e,b=function(e){let{delta:t,disabled:r}=e,n=(0,m.ZC)(t);return(0,m.KG)(e=>{if(r||!n||!e)return em;let s={x:Math.sign(t.x-n.x),y:Math.sign(t.y-n.y)};return{x:{[i.Backward]:e.x[i.Backward]||-1===s.x,[i.Forward]:e.x[i.Forward]||1===s.x},y:{[i.Backward]:e.y[i.Backward]||-1===s.y,[i.Forward]:e.y[i.Forward]||1===s.y}}},[r,t,n])}({delta:g,disabled:!a}),[v,_]=(0,m.$$)(),w=(0,f.useRef)({x:0,y:0}),x=(0,f.useRef)({x:0,y:0}),k=(0,f.useMemo)(()=>{switch(r){case l.Pointer:return d?{top:d.y,bottom:d.y,left:d.x,right:d.x}:null;case l.DraggableRect:return s}}
38,[r,s,d]),E=(0,f.useRef)(null),S=(0,f.useCallback)(()=>{let e=E.current;if(!e)return;let t=w.current.x*x.current.x,r=w.current.y*x.current.y;e.scrollBy(t,r)},[]),A=(0,f.useMemo)(()=>c===u.TreeOrder?[...h].reverse():h,[c,h]);(0,f.useEffect)(()=>{if(!a||!h.length||!k)return void _();for(let e of A){if((null==n?void 0:n(e))===!1)continue;let r=p[h.indexOf(e)];if(!r)continue;let{direction:s,speed:a}=function(e,t,r,n,s){let{top:a,left:o,right:l,bottom:u}=r;void 0===n&&(n=10),void 0===s&&(s=Y);let{isTop:c,isBottom:d,isLeft:h,isRight:f}=Z(e),p={x:0,y:0},m={x:0,y:0},g={height:t.height*s.y,width:t.width*s.x};return!c&&a<=t.top+g.height?(p.y=i.Backward,m.y=n*Math.abs((t.top+g.height-a)/g.height)):!d&&u>=t.bottom-g.height&&(p.y=i.Forward,m.y=n*Math.abs((t.bottom-g.height-u)/g.height)),!f&&l>=t.right-g.width?(p.x=i.Forward,m.x=n*Math.abs((t.right-g.width-l)/g.width)):!h&&o<=t.left+g.width&&(p.x=i.Backward,m.x=n*Math.abs((t.left+g.width-o)/g.width)),{direction:p,speed:m}}(e,r,k,t,y);for(let e of["x","y"])b[e][s[e]]||(a[e]=0,s[e]=0);if(a.x>0||a.y>0){_(),E.current=e,v(S,o),w.current=a,x.current=s;return}}w.current={x:0,y:0},x.current={x:0,y:0},_()},[t,S,n,_,a,o,JSON.stringify(k),JSON.stringify(b),v,h,A,p,JSON.stringify(y)])}({...eC,delta:H,draggingRect:e0,pointerCoordinates:eY,scrollableAncestors:eG,scrollableAncestorRects:eW});let te=(0,f.useMemo)(()=>({active:et,activeNode:ep,activeNodeRect:eI,activatorEvent:es,collisions:e1,containerNodeRect:eF,dragOverlay:ez,draggableNodes:V,droppableContainers:J,droppableRects:ed,over:e5,measureDroppableContainers:eh,scrollableAncestors:eG,scrollableAncestorRects:eW,measuringConfiguration:ec,measuringScheduled:ef,windowRect:eH}),[et,ep,eI,es,e1,eF,ez,V,J,ed,e5,eh,eG,eW,ec,ef,eH]),tt=(0,f.useMemo)(()=>({activatorEvent:es,activators:e7,active:et,activeNodeRect:eI,ariaDescribedById:{draggable:el},dispatch:T,draggableNodes:V,over:e5,measureDroppableContainers:eh}),[es,e7,et,eI,T,el,V,e5,eh]);return f.createElement(v.Provider,{value:j},f.createElement(eD.Provider,{value:tt},f.createElement(ej.Provider,{value:te},f.createElement(eM.Provider,{value:e4},_)),f.createElement(e$,{disabled:(null==y?void 0:y.restoreFocus)===!1})),f.createElement(x,{...y,hiddenTextDescribedById:el}))}),eP=(0,f.createContext)(null),eL="button";function ez(e){let{id:t,data:r,disabled:n=!1,attributes:i}=e,s=(0,m.YG)("Draggable"),{activators:a,activatorEvent:o,active:l,activeNodeRect:u,ariaDescribedById:c,draggableNodes:d,over:h}=(0,f.useContext)(eD),{role:p=eL,roleDescription:g="draggable",tabIndex:y=0}=null!=i?i:{},b=(null==l?void 0:l.id)===t,v=(0,f.useContext)(b?eM:eP),[_,w]=(0,m.lk)(),[x,k]=(0,m.lk)(),E=(0,f.useMemo)(()=>a.reduce((e,r)=>{let{eventName:n,handler:i}=r;return e[n]=e=>{i(e,t)},e},{}),[a,t]),S=(0,m.YN)(r);return(0,m.Es)(()=>(d.set(t,{id:t,key:s,node:_,activatorNode:x,data:S}),()=>{let e=d.get(t);e&&e.key===s&&d.delete(t)}),[d,t]),{active:l,activatorEvent:o,activeNodeRect:u,attributes:(0,f.useMemo)(()=>({role:p,tabIndex:y,"aria-disabled":n,"aria-pressed":!!b&&p===eL||void 0,"aria-roledescription":g,"aria-describedby":c.draggable}),[n,p,y,b,g,c.draggable]),isDragging:b,listeners:n?void 0:E,node:_,over:h,setNodeRef:w,setActivatorNodeRef:k,transform:v}}function eq(){return(0,f.useContext)(ej)}let eU={timeout:25};function eB(e){let{data:t,disabled:r=!1,id:i,resizeObserverConfig:s}=e,a=(0,m.YG)("Droppable"),{active:o,dispatch:l,over:u,measureDroppableContainers:c}=(0,f.useContext)(eD),d=(0,f.useRef)({disabled:r}),h=(0,f.useRef)(!1),p=(0,f.useRef)(null),g=(0,f.useRef)(null),{disabled:y,updateMeasurementsFor:b,timeout:v}={...eU,...s},_=(0,m.YN)(null!=b?b:i),w=eb({callback:(0,f.useCallback)(()=>{if(!h.current){h.current=!0;return}null!=g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{c(Array.isArray(_.current)?_.current:[_.current]),g.current=null},v)},[v]),disabled:y||!o}),x=(0,f.useCallback)((e,t)=>{w&&(t&&(w.unobserve(t),h.current=!1),e&&w.observe(e))},[w]),[k,E]=(0,m.lk)(x),S=(0,m.YN)(t);return(0,f.useEffect)(()=>{w&&k.current&&(w.disconnect(),h.current=!1,w.observe(k.current))},[k,w]),(0,f.useEffect)(()=>(l({type:n.RegisterDroppable,element:{id:i,key:a,disabled:r,node:k,rect:p,data:S}}),()=>l({type:n.UnregisterDroppable,key:a,id:i})),[i]),(0,f.useEffect)(()=>{r!==d.current.disabled&&(l({type:n.SetDroppableDisabled,id:i,key:a,disabled:r}),d.current.disabled=r)},[i,a,r,l]),{active:o,rect:p,isOver:(null==u?void 0:u.id)===i,node:k,over:u,setNodeRef:E}}},36335:e=>{e.exports=function(e,t){for(var r,n=-1,i=e.length;++n<i;){var s=t(e[n]);void 0!==s&&(r=void 0===r?s:r+s)}return r}},36341:(e,t,r)=>{"use strict";r.d(t,{L:()=>l});var n=r(84841),i=r(81451),s=r(56062),a=r(44220),o=r(2297);function l(e){void 0===e&&(e=1/0);var t=e&&"object"==typeof e?e:{count:e},r=t.count,l=void 0===r?1/0:r,u=t.delay,c=t.resetOnSuccess,d=void 0!==c&&c;return l<=0?s.D:(0,n.N)(function(e,t){var r,n=0,s=function(){var c=!1;r=e.subscribe((0,i._)(t,function(e){d&&(n=0),t.next(e)},void 0,function(e){if(n++<l){var d=function(){r?(r.unsubscribe(),r=null,s()):c=!0};if(null!=u){var h="number"==typeof u?(0,a.O)(u):(0,o.Tg)(u(e,n)),f=(0,i._)(t,function(){f.unsubscribe(),d()},function(){t.complete()});h.subscribe(f)}else d()}else t.error(e)})),c&&(r.unsubscribe(),r=null,s())};s()})}},36507:(e,t,r)=>{var n=r(32259),i=r(7290),s=r(3582),a=r(68729);e.exports=s(function(e,t){return a(e)?n(e,i(t,1,a,!0)):[]})},37137:(e,t,r)=>{var n=r(73567),i=r(15104);e.exports=function(e,t){return e&&n(t,i(t),e)}},37145:(e,t,r)=>{"use strict";r.d(t,{QG:()=>
38o,xj:()=>T});var n=r(62171),i=r(76905),s=r(38562),a=r(7112);function o(e){return({snapshot:t,event:r})=>{let i=e.decorators({context:{schema:t.context.schema}}),s=t.context.schema.decorators.flatMap(e=>i.includes(e.name)?[]:[e.name]);if(0===s.length)return!0;let a=r.matches.flatMap(e=>(0,n.l$)({...t,context:{...t.context,selection:e.selection}})),o=!1;for(let e of s)if((0,n.Y1)(e)(t)||a.some(t=>t.node.marks?.includes(e))){o=!0;break}return!o}}let l=(0,i.pE)({on:/--/,transform:()=>"—"}),u=(0,i.pE)({on:/\.\.\./,transform:()=>"…"}),c=(0,i.pE)({on:RegExp(`(?:^|(?<=[\\s{[(<'"\\u2018\\u201C]))"`,"g"),transform:()=>"“"}),d=(0,i.pE)({on:/"/g,transform:()=>"”"}),h=(0,i.pE)({on:RegExp(`(?:^|(?<=[\\s{[(<'"\\u2018\\u201C]))'`,"g"),transform:()=>"‘"}),f=(0,i.pE)({on:/'/g,transform:()=>"’"}),p=(0,i.pE)({on:/<-/,transform:()=>"←"}),m=(0,i.pE)({on:/->/,transform:()=>"→"}),g=(0,i.pE)({on:/\(c\)/,transform:()=>"\xa9"}),y=(0,i.pE)({on:/\(sm\)/,transform:()=>"℠"}),b=(0,i.pE)({on:/\(tm\)/,transform:()=>"™"}),v=(0,i.pE)({on:/\(r\)/,transform:()=>"\xae"}),_=(0,i.pE)({on:/(?:^|\s)(1\/2)\s/,transform:()=>"\xbd"}),w=(0,i.pE)({on:/\+\/-/,transform:()=>"\xb1"}),x=(0,i.pE)({on:/!=/,transform:()=>"≠"}),k=(0,i.pE)({on:/<</,transform:()=>"\xab"}),E=(0,i.pE)({on:/>>/,transform:()=>"\xbb"}),S=(0,i.pE)({on:/\d+\s?([*x])\s?\d+/,transform:()=>"\xd7"}),A=(0,i.pE)({on:/\^2/,transform:()=>"\xb2"}),O=(0,i.pE)({on:/\^3/,transform:()=>"\xb3"}),C=[{name:"emDash",rule:l,state:"on"},{name:"ellipsis",rule:u,state:"on"},{name:"openingDoubleQuote",rule:c,state:"on"},{name:"closingDoubleQuote",rule:d,state:"on"},{name:"openingSingleQuote",rule:h,state:"on"},{name:"closingSingleQuote",rule:f,state:"on"},{name:"leftArrow",rule:p,state:"on"},{name:"rightArrow",rule:m,state:"on"},{name:"copyright",rule:g,state:"on"},{name:"trademark",rule:b,state:"on"},{name:"servicemark",rule:y,state:"on"},{name:"registeredTrademark",rule:v,state:"on"},{name:"oneHalf",rule:_,state:"off"},{name:"plusMinus",rule:w,state:"off"},{name:"laquo",rule:k,state:"off"},{name:"notEqual",rule:x,state:"off"},{name:"raquo",rule:E,state:"off"},{name:"multiplication",rule:S,state:"off"},{name:"superscriptTwo",rule:A,state:"off"},{name:"superscriptThree",rule:O,state:"off"},{name:"oneQuarter",rule:(0,i.pE)({on:/(?:^|\s)(1\/4)\s/,transform:()=>"\xbc"}),state:"off"},{name:"threeQuarters",rule:(0,i.pE)({on:/(?:^|\s)(3\/4)\s/,transform:()=>"\xbe"}),state:"off"}];function T(e){let t,r,n,o,l,u=(0,a.c)(13),{preset:c,enable:d,disable:h,guard:f}=e,p=void 0===c?"default":c;u[0]!==d?(t=void 0===d?[]:d,u[0]=d,u[1]=t):t=u[1];let m=t;u[2]!==h?(r=void 0===h?[]:h,u[2]=h,u[3]=r):r=u[3];let g=r;if(u[4]!==g||u[5]!==m||u[6]!==p){if(n=new Set,"all"===p)for(let e of C)n.add(e.name);else if("default"===p)for(let e of C)"on"===e.state&&n.add(e.name);for(let e of m)n.add(e);for(let e of g)n.delete(e);u[4]=g,u[5]=m,u[6]=p,u[7]=n}else n=u[7];u[8]!==n||u[9]!==f?(o=C.flatMap(e=>n.has(e.name)?[{...e.rule,guard:f??I}]:[]),u[8]=n,u[9]=f,u[10]=o):o=u[10];let y=o;return u[11]!==y?(l=(0,s.jsx)(i.wS,{rules:y}),u[11]=y,u[12]=l):l=u[12],l}function I(){return!0}},37201:(e,t,r)=>{"use strict";r.d(t,{FE:()=>h});var n=r(30044);let i=["http","https","mailto","tel"],s={"&":"amp","<":"lt",">":"gt",'"':"quot","'":"#x27"};function a(e){return e.replace(/[&<>"']/g,e=>`&${s[e]};`).replace(/ {2,}/g,e=>`${"&nbsp;".repeat(e.length-1)} `)}let o=(e,t)=>`Unknown ${e}, specify a component for it in the \`components.${t}\` option`,l=e=>o(`block type "${e}"`,"types");function u(e){console.warn(e)}let c={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 r=t?.href||"";
38return!function(e){let t=(e||"").trim(),r=t.charAt(0);if("#"===r||"/"===r)return!0;let n=t.indexOf(":");if(-1===n)return!0;let s=t.slice(0,n).toLowerCase();if(-1!==i.indexOf(s))return!0;let a=t.indexOf("?");if(-1!==a&&n>a)return!0;let o=t.indexOf("#");return -1!==o&&n>o}(r)?e:`<a href="${a(r)}">${e}</a>`}},list:{number:({children:e})=>`<ol>${e}</ol>`,bullet:({children:e})=>`<ul>${e}</ul>`},listItem:({children:e})=>`<li>${e}</li>`,hardBreak:()=>"<br/>",escapeHTML:a,unknownType:({value:e,isInline:t})=>{let r=l(e._type);return t?`<span style="display:none">${r}</span>`:`<div style="display:none">${r}</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 d(e,t,r){let n=t[r],i=e[r];return"function"==typeof n?n:n?"function"==typeof i?n:{...i,...n}:i}function h(e,t={}){let{components:r,onMissingComponent:i=u}=t,s=(0,n.iS)(Array.isArray(e)?e:[e],"html"),a=f(r?function(e,t){let{block:r,list:n,listItem:i,marks:s,types:a,...o}=t;return{...e,block:d(e,t,"block"),list:d(e,t,"list"),listItem:d(e,t,"listItem"),marks:d(e,t,"marks"),types:d(e,t,"types"),...o}}(c,r):c,i||m);return s.map((e,t)=>a({node:e,index:t,isInline:!1,renderNode:a})).join("")}let f=(e,t)=>function r(i){var s,a,u;let c,{node:d,index:h,isInline:f}=i;return(0,n.zp)(d)?function(n,i){let s=n.children.map((e,t)=>r({node:e._key?e:{...e,_key:`li-${i}-${t}`},index:t,isInline:!1,renderNode:r})),a=e.list,l=("function"==typeof a?a:a[n.listItem])||e.unknownList;if(l===e.unknownList){let e=n.listItem||"bullet";t(o(`list style "${e}"`,"list"),{nodeType:"listStyle",type:e})}return l({value:n,index:i,isInline:!1,renderNode:r,children:s.join("")})}(d,h):(0,n.n2)(d)?function(n,i){let s=p({node:n,index:i,isInline:!1,renderNode:r}),a=e.listItem,l=("function"==typeof a?a:a[n.listItem])||e.unknownListItem;if(l===e.unknownListItem){let e=n.listItem||"bullet";t(o(`list item style "${e}"`,"listItem"),{type:e,nodeType:"listItemStyle"})}let u=s.children;if(n.style&&"normal"!==n.style){let{listItem:e,...t}=n;u=r({node:t,index:i,isInline:!1,renderNode:r})}return l({value:n,index:i,isInline:!1,renderNode:r,children:u})}(d,h):(0,n.tO)(d)?function(i){let{markDef:s,markType:a,markKey:l}=i,u=e.marks[a]||e.unknownMark,c=i.children.map((e,t)=>r({node:e,index:t,isInline:!0,renderNode:r}));return u===e.unknownMark&&t(o(`mark type "${a}"`,"marks"),{nodeType:"mark",type:a}),u({text:(0,n.fg)(i),value:s,markType:a,markKey:l,renderNode:r,children:c.join("")})}(d):(0,n.IG)(d)?function(n,i,s){let{_key:a,...l}=p({node:n,index:i,isInline:s,renderNode:r}),u=l.node.style||"normal",c=("function"==typeof e.block?e.block:e.block[u])||e.unknownBlockStyle;return c===e.unknownBlockStyle&&t(o(`block style "${u}"`,"block"),{nodeType:"blockStyle",type:u}),c({...l,value:l.node,renderNode:r})}(d,h,f):(0,n.YA)(d)?function(t){if("\n"===t.text){let t=e.hardBreak;return t?t():"\n"}return e.escapeHTML(t.text)}(d):(s=d,a=h,u=f,(c=e.types[s._type])||t(l(s._type),{nodeType:"block",type:s._type}),(c||e.unknownType)({value:s,isInline:u,index:a,renderNode:r}))};function p(e){let{node:t,index:r,isInline:i,renderNode:s}=e,a=(0,n.Pq)(t).map((e,t)=>s({node:e,isInline:!0,index:t,renderNode:s}));return{_key:t._key||`block-${r}`,children:a.join(""),index:r,isInline:i,node:t}}function m(){}},37403:(e,t,r)=>{var n=r(25473),i=r(93024),s=r(86496),a=r(54217),o=r(20149),l=r(1445);function u(e){var t=this.__data__=new n(e);this.size=t.size}u.prototype.clear=i,u.prototype.delete=s,u.prototype.get=a,u.prototype.has=o,u.prototype.set=l,e.exports=u},37790:(e,t,r)=>{"use strict";r.d(t,{L:()=>b,g:()=>d});var n=r(92450);function i(e,t,r){return delete e[t],e[t]=r,r}function s(e,t,r,n){let i=e.value,s=t.value;return n?{type:"array",action:"changed",isChanged:!0,fromValue:i,toValue:s,items:r,annotation:t.annotation}:{type:"array",action:"unchanged",isChanged:!1,fromValue:i,toValue:s,items:r}}function a(e,t,r){if(e.length!==t.length)return;let n=[];for(let i=0;i<e.length;i++){let s=d(e.at(i),t.at(i),r);if(s.isChanged)return;n.push({fromIndex:i,toIndex:i,hasMoved:!1,diff:s,annotation:t.annotationAt(i)})}return n}function o(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,r){let n=e.get(t);(function(e,t){let r=e.indexOf(t);if(-1===r)throw Error("value not found");e.splice(r,1)})(n,r),0===n.length&&e.delete(t)}function u(e){let t=new Map,r=[],n=e.length;for(let i=0;i<n;i++){let n=e.at(i),s=null;switch(n.type){case"string":s=`s${n.value}`;break;case"number":case"boolean":s=n.value;break;case"null":s="n";break;case"object":{let e=n.get("_key");if(e&&"string"===e.type&&(s=`k${e.value}`,t.has(s)))return}}if(null===s)return;r.push(s);let a=t.get(s);a||(a=[],t.set(s,a)),a.push(i)}return{keys:r,index:t}}let c=new Set(["_id","_type","_createdAt","_updatedAt","_rev","_weak"]);function d(e,t,r={}){return e.type!==t.type?"null"===e.type?f(t,null):"null"===t.type?h(e,null):{type:"typeChange",action:"changed",isChanged:!0,fromType:e.type,fromValue:e.value,fromDiff:h(e,void 0),toType:t.type,toValue:t.value,toDiff:f(t,void 0),annotation:t.annotation}:function(e,t,r,p){switch(e){case"null":return{type:"null",action:"unchanged",isChanged:!1,toValue:null,fromValue:null};case"boolean":return function(e,t,r){let n=e.value,i=t.value,s=e.type;return n===i?{type:s,action:"unchanged",fromValue:n,toValue:i,isChanged:!1}:{type:e.type,action:"changed",isChanged:!0,fromValue:n,toValue:i,annotation:t.annotation}}(t,r);case"number":return function(e,t,r){let n=e.value,i=t.value,s=e.type;return n===i?{type:s,action:"unchanged",fromValue:n,toValue:i,isChanged:!1}:{type:e.type,action:"changed",isChanged:!0,fromValue:n,toValue:i,annotation:t.annotation}}(t,r);case"string":let m=t.value,g=r.value;
38return m===g?{type:"string",action:"unchanged",isChanged:!1,fromValue:m,toValue:g,segments:[{type:"stringSegment",action:"unchanged",text:m}]}:{type:"string",action:"changed",isChanged:!0,fromValue:m,toValue:g,annotation:r.annotation,get segments(){return i(this,"segments",function(e,t){let r=[],i=(0,n.Vx)((0,n.iU)(e.value,t.value)),s=0,a=0;for(let[o,l]of i)switch(o){case n.lw:r.push({type:"stringSegment",action:"unchanged",text:l}),s+=l.length,a+=l.length;break;case n.Cm:for(let t of e.sliceAnnotation(s,s+l.length))r.push({type:"stringSegment",action:"removed",text:t.text,annotation:t.annotation});s+=l.length;break;case n.Ug:for(let e of t.sliceAnnotation(a,a+l.length))r.push({type:"stringSegment",action:"added",text:e.text,annotation:e.annotation});a+=l.length;break;default:throw Error(`Unhandled diff-match-patch operation "${o}"`)}return r}(t,r))}};case"array":if(t===r)return{type:"array",action:"unchanged",isChanged:!1,fromValue:t.value,toValue:r.value,get items(){let e=a(t,r,p);if(!e)throw Error("invariant broken: equivalent input, but diff detected");return i(this,"items",e)}};let y=u(t),b=u(r);if(y&&b)return function(e,t,r,n,i){var a,u;let c=[],p=!1;function m(i,s,a,o){l(t.index,i,s),l(n.index,i,a);let u=d(e.at(s),r.at(a));c.push({fromIndex:s,toIndex:a,hasMoved:o,diff:u,annotation:r.annotationAt(a)}),(u.isChanged||s!==a)&&(p=!0)}let g=function(e,t,r){let n=t.length,i=r.length,s={sequence:[],prevIndices:[],nextIndices:[]};for(;0!==n&&0!==i;)t[n-1]===r[i-1]?(s.sequence.unshift(t[n-1]),s.prevIndices.unshift(n-1),s.nextIndices.unshift(i-1),--n,--i):e[n][i-1]>e[n-1][i]?--i:--n;return s}(function(e,t){let r=e.length,n=t.length,i=0,s=0,a=Array(r+1);for(i=0;i<r+1;i++)for(a[i]=[n+1],s=0;s<n+1;s++)a[i][s]=0;for(i=1;i<r+1;i++)for(s=1;s<n+1;s++)e[i-1]===t[s-1]?a[i][s]=a[i-1][s-1]+1:a[i][s]=Math.max(a[i-1][s],a[i][s-1]);return a}(a=t.keys,u=n.keys),a,u);for(let r=0;r<t.keys.length;r++){let i=t.keys[r],s=g.prevIndices.indexOf(r);if(-1!==s){m(i,r,g.nextIndices[s],!1);continue}let a=n.index.get(i),o=a&&a.find(e=>!g.nextIndices.includes(e));if(void 0!==o){m(i,r,o,!0);continue}let l=e.at(r);c.push({fromIndex:r,toIndex:void 0,hasMoved:!1,diff:h(l,void 0),annotation:e.annotationAt(r)}),p=!0}for(let e of n.index.values()){for(let t of e){let e=r.at(t);c.push({fromIndex:void 0,toIndex:t,hasMoved:!1,diff:f(e,void 0),annotation:r.annotationAt(t)})}p=!0}return c.sort(o),s(e,r,c,p)}(t,y,r,b);let v=a(t,r,p);return v?s(t,r,v,!1):function(e,t,r){let n=[];for(let e=0;e<t.length;e++){let r=t.at(e);n.push({fromIndex:void 0,toIndex:e,hasMoved:!1,diff:f(r,void 0),annotation:r.annotation})}for(let t=0;t<e.length;t++){let r=e.at(t);n.push({fromIndex:t,toIndex:void 0,hasMoved:!1,diff:h(r,void 0),annotation:r.annotation})}return s(e,t,n,!0)}(t,r);case"object":return function(e,t,r){let n={},i=!1;for(let s of e.keys){if(c.has(s))continue;let a=e.get(s),o=t.get(s);if(o){let e=d(a,o,r);n[s]=e,e.isChanged&&(i=!0)}else n[s]=h(a,void 0),i=!0}for(let r of t.keys){if(c.has(r)||e.get(r))continue;let s=t.get(r);n[r]=f(s,void 0),i=!0}let s=e.value,a=t.value;return i?{type:"object",action:"changed",isChanged:!0,fromValue:s,toValue:a,fields:n,annotation:t.annotation}:{type:"object",action:"unchanged",isChanged:!1,fromValue:s,toValue:a,fields:n}}(t,r,p);default:throw Error(`Unhandled diff type "${e}"`)}}(e.type,e,t,r)}function h(e,t,r){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 r=0;r<e.length;r++){let n=e.at(r);t.push({fromIndex:r,toIndex:void 0,hasMoved:!1,diff:h(n,void 0),annotation:e.annotationAt(r)})}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 r of e.keys){let n=e.get(r);t[r]=h(n,void 0)}return i(this,"fields",t)}};default:throw Error("Unhandled diff type")}}function f(e,t,r){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 r=0;r<e.length;r++){let n=e.at(r);t.push({fromIndex:void 0,toIndex:r,hasMoved:!1,diff:f(n,void 0),annotation:e.annotationAt(r)})}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 r of e.keys){let n=e.get(r);t[r]=f(n,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]=b(this.value[e],this.annotation))}annotationAt(){return this.annotation}}class m{type;value;annotation;constructor(e,t,r){this.type=e,this.value=t,this.annotation=r}}class g{type="object";value;keys;annotation;fields={};constructor(e,t){this.value=Object.fromEntries(Object.entries(e).filter(([,e])=>"u">typeof e)),this.annotation=t,this.keys=Object.keys(this.value)}get(e){let t=this.fields[e];if(t)return t;if(!this.value.hasOwnProperty(e))return;let r=this.value[e];return this.fields[e]=b(r,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 b(e,t){if(Array.isArray(e))return new p(e,t);if(null===e)return new m("null",e,t);let r=typeof e;switch(r){case"number":case"boolean":return new m(r,e,t);case"object":return new g(e,t);case"string":return new y(e,t);default:throw Error(`cannot wrap value of type: ${r}`)}}},37864:(e,t,r)=>{var n=r(38965),i=r(46939);e.exports=function(e,t){t=n(t,e);for(var r=0,s=t.length;null!=e&&r<s;)e=e[i(t[r++])];return r&&r==s?e:void 0}},38342:(e,t,r)=>{"use strict";r.d(t,{X:()=>f,r:()=>d});let n=["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,r){this.model=e,this.root=t,this.patch=r,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=n[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),r=this.outputArray();this.model.arrayAppendValue(r,t)}processReturnIntoObject(){let e=this.read(),t=this.outputStack.pop(),r=this.finalizeOutput(t);r=this.model.markChanged(r);let n=this.outputObject();this.model.objectSetField(n,e,r)}processReturnIntoObjectSameKey(){let e=this.inputEntry(),t=this.outputStack.pop(),r=this.finalizeOutput(t),n=this.outputObject();this.model.objectSetField(n,e.key,r)}processPushField(){let e=this.read(),t=this.inputEntry(),r=this.inputKey(t,e),n=this.model.objectGetField(t.value,r);this.inputStack.push({value:n,key:r})}processPushElement(){let e=this.read(),t=this.inputEntry(),r=this.model.arrayGetElement(t.value,e);this.inputStack.push({value:r})}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(),r=this.inputKey(t,e),n=this.outputObject();this.model.objectDeleteField(n,r)}processArrayAppendValue(){let e=this.model.wrap(this.read()),t=this.outputArray();this.model.arrayAppendValue(t,e)}processArrayAppendSlice(){let e=this.read(),t=this.read(),r=this.outputArray(),n=this.inputEntry().value;this.model.arrayAppendSlice(r,n,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(),r=this.outputString(),n=this.inputEntry().value;this.model.stringAppendSlice(r,n,e,t)}}function s(e){return e>>16?4:e>>11?3:e>>7?2:1}function a(e){let t=0;for(let r=0;r<e.length;r++){let n=s(e.codePointAt(r));4==n&&r++,t+=n}return t}function o(e,t,r=0){let n=r,i=0;for(i=r;n<t;i++){let t=s(e.codePointAt(i));4===t&&i++,n+=t}return i}class l{meta;constructor(e){this.meta=e}wrap(e){return this.wrapWithMeta(e,this.meta,this.meta)}wrapWithMeta(e,t,r=this.meta){return{data:e,startMeta:t,endMeta:r}}asObject(e){if(!e.content){let t={};for(let[r,n]of Object.entries(e.data))t[r]=this.wrapWithMeta(n,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)),r=t.map(()=>this.meta);e.content={type:"array",elements:t,metas:r}}return e.content}asString(e){if(!e.content){let t=e.data,r={value:t,utf8size:a(t),uses:[],startMeta:e.startMeta,endMeta:e.endMeta};e.content=this.stringFromParts([r])}return e.content}stringFromParts(e){let t={type:"string",parts:e};for(let r of e)r.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 r=this.asObject(e);Object.assign(t.fields,r.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,r){e.fields[t]=r}objectDeleteField(e,t){delete e.fields[t]}arrayAppendValue(e,t){e.elements.push(t),e.metas.push(this.meta)}arrayAppendSlice(e,t,r,n){let i=this.asArray(t),s=i.elements.length===r;if(e.elements.push(...i.elements.slice(r,n)),s)e.metas.push(...i.metas.slice(r,n));else for(let t=r;t<n;t++)e.metas.push(this.meta)}stringAppendValue(e,t){for(let r of this.asString(t).parts)this.stringAppendPart(e,r)}stringAppendPart(e,t){e.parts.push(t),t.uses.push(e)}resolveStringPart(e,t,r){if(0===r)return t;for(let n=t;n<e.parts.length;n++){let t=e.parts[n];if(r===t.utf8size)return n+1;if(r<t.utf8size)return this.splitString(t,r),n+1;r-=t.utf8size}throw Error("splitting string out of bounds")}
38splitString(e,t){let r,n=t,i=e.utf8size-n;if(e.utf8size!==e.value.length){let r=0;for(t=0;r<n;t++){let n=s(e.value.codePointAt(t));4===n&&t++,r+=n}}r=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=r,e.utf8size=n,e.uses)){let r=t.parts.indexOf(e);if(-1===r)throw Error("bug: mismatch between string parts and use.");t.parts.splice(r+1,0,a)}}stringAppendSlice(e,t,r,n){let i=this.asString(t),s=this.resolveStringPart(i,0,r),a=this.resolveStringPart(i,s,n-r);for(let t=s;t<a;t++){let r=i.parts[t];this.stringAppendPart(e,r)}}}function u(e){if("u">typeof e.data)return e.data;let t,r=e.content;switch(r.type){case"string":t=r.parts.map(e=>e.value).join("");break;case"array":t=r.elements.map(e=>u(e));break;case"object":for(let[e,n]of(t={},Object.entries(r.fields)))t[e]=u(n)}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,r){return new i(new l(r),e,t).process()},getType:c,rebaseValue:function e(t,r){let n=c(t);if(n!==c(r))return r;let i=new l(t.endMeta),o=new l(r.endMeta);switch(n){case"object":{let n=i.asObject(t),s=o.asObject(r),a=0,l=Object.keys(n.fields).length,u=Object.keys(s.fields).length;for(let[t,r]of Object.entries(s.fields)){let i=n.fields[t];i&&(s.fields[t]=e(i,r),s.fields[t]===i&&a++)}return l===u&&l===a?t:r}case"array":{let n=i.asArray(t),s=o.asArray(r);if(n.elements.length!==s.elements.length)break;let a=0;for(let t=0;t<s.elements.length;t++)s.elements[t]=e(n.elements[t],s.elements[t]),s.elements[t]!==n.elements[t]&&a++;return 0===a?t:r}case"null":case"boolean":case"number":if(u(t)===u(r))return t;break;case"string":{let e=u(t),n=u(r);if(e===n)return t;let i=o.copyString(null),l=function(e,t){let r=Math.min(e.length,t.length),n=0;for(let i=0;i<r;){let r=e.codePointAt(i);if(r!==t.codePointAt(i))break;let a=s(r);n+=a,i+=4===a?2:1}return n}(e,n),c=function(e,t,r=0){let n=Math.min(e.length,t.length)-r,i=0;for(let r=0;r<n;){let n=e.codePointAt(e.length-1-r);if(n!==t.codePointAt(t.length-1-r))break;let a=s(n);i+=a,r+=4===a?2:1}return i}(e,n,l),d=a(n),h=a(e);0<l&&o.stringAppendSlice(i,t,0,l),l<d-c&&o.stringAppendSlice(i,r,l,d-c),h-c<h&&o.stringAppendSlice(i,t,h-c,h);let f=o.finalize(i);if(u(f)!==n)throw Error("incorrect string rebase");return f}}return r},unwrap:u,wrap:function(e,t){return{data:e,startMeta:t,endMeta:t}}});class h{wrap(e){return e}finalize(e){return Array.isArray(e)?e:e.data}markChanged(e){return e}objectGetKeys(e){return Object.keys(e)}objectGetField(e,t){return e[t]}arrayGetElement(e,t){return e[t]}copyObject(e){let t={type:"object",data:{}};if(null!==e)for(let[r,n]of Object.entries(e))t.data[r]=n;return t}copyArray(e){return null===e?[]:e.slice()}copyString(e){return{type:"string",data:null===e?"":e}}objectSetField(e,t,r){e.data[t]=r}objectDeleteField(e,t){delete e.data[t]}arrayAppendValue(e,t){e.push(t)}arrayAppendSlice(e,t,r,n){e.push(...t.slice(r,n))}stringAppendSlice(e,t,r,n){let i=o(t,r),s=o(t,n,i);e.data+=t.slice(i,s)}stringAppendValue(e,t){e.data+=t}}function f(e,t){return new i(new h,e,t).process()}},38437:(e,t,r)=>{"use strict";r.d(t,{Cj:()=>m,W3:()=>l,bN:()=>d,bm:()=>h,h4:()=>o,n2:()=>g,yH:()=>u,zk:()=>p});var n=r(57026),i=r(82730),s=r(33806),a=r(26088);function o(e,t=[]){return[e,t]}function l(e,t){let[r,n]=e;return[r,[...n,t]]}function u(e,t){for(let r of e[1]){let e=r[0].type;if(t(r,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,r]=e,n=JSON.stringify(t);function s(e){"string"==typeof n?n="string"==typeof e?n+e:[c(n),e]:n.push("string"==typeof e?c(e):e)}for(let e of r){let[t,r]=e;if(s(`
39${JSON.stringify(t)}
40`),"string"==typeof r||r instanceof Uint8Array)s(r);else{let e;try{e=JSON.stringify(r)}catch(t){e=JSON.stringify((0,i.S8)(r))}s(e)}}return"string"==typeof n?n:function(e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),r=0;for(let n of e)t.set(n,r),r+=n.length;return t}(n)}function h(e){let t="string"==typeof e.data?c(e.data):e.data;return[(0,s.Ce)({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}let f={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_
40security:"security"};function p(e){return f[e]}function m(e){if(!e||!e.sdk)return;let{name:t,version:r}=e.sdk;return{name:t,version:r}}function g(e,t,r,i){let a=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!r&&i&&{dsn:(0,n.SB)(i)},...a&&{trace:(0,s.Ce)({...a})}}}},38576:(e,t,r)=>{"use strict";let n=r(27353);e.exports=(e,t,r)=>{try{t=new n(t,r)}catch(e){return!1}return t.test(e)}},38668:(e,t,r)=>{"use strict";r.d(t,{w:()=>d});var n=r(43523),i=r(20924),s=r(84841),a=r(2297),o=r(32734),l=r(81451),u=r(50646),c=(0,o.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 r=(0,i.v)(e)?{first:e}:"number"==typeof e?{each:e}:e,o=r.first,c=r.each,d=r.with,f=void 0===d?h:d,p=r.scheduler,m=void 0===p?null!=t?t:n.E:p,g=r.meta,y=void 0===g?null:g;if(null==o&&null==c)throw TypeError("No timeout provided.");return(0,s.N)(function(e,t){var r,n,i=null,s=0,d=function(e){n=(0,u.N)(t,m,function(){try{r.unsubscribe(),(0,a.Tg)(f({meta:y,lastValue:i,seen:s})).subscribe(t)}catch(e){t.error(e)}},e)};r=e.subscribe((0,l._)(t,function(e){null==n||n.unsubscribe(),s++,t.next(i=e),c>0&&d(c)},void 0,void 0,function(){(null==n?void 0:n.closed)||null==n||n.unsubscribe(),i=null})),s||d(null!=o?"number"==typeof o?o:o-m.now():c)})}function h(e){throw new c(e)}},38726:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}},38767:(e,t,r)=>{var n=r(22551),i=r(81976);e.exports=function(e,t){return null!=e&&i(e,t,n)}},38795:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(19555);function i(e){var t;e.register(n.A),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}i.displayName="typescript",i.aliases=["ts"]},38965:(e,t,r)=>{var n=r(42725),i=r(53260),s=r(82502),a=r(77180);e.exports=function(e,t){return n(e)?e:i(e,t)?[e]:s(a(e))}},38980:(e,t,r)=>{var n=r(76956);e.exports=function(e,t){return n(e,t)}},39173:(e,t,r)=>{"use strict";r.d(t,{L:()=>v});var n=r(32785),i=r(26088),s=r(33900);let a=null;function o(){a=i.O.onerror,i.O.onerror=function(e,t,r,n,i){return(0,s.aj)("error",{column:n,error:i,line:r,msg:e,url:t}),!!a&&a.apply(this,arguments)},i.O.onerror.__SENTRY_INSTRUMENTED__=!0}var l=r(23821),u=r(98592);let c=null;function d(){c=i.O.onunhandledrejection,i.O.onunhandledrejection=function(e){return(0,s.aj)("unhandledrejection",e),!c||c.apply(this,arguments)},i.O.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var h=r(28077),f=r(53515),p=r(15840),m=r(87865),g=r(72501),y=r(16566),b=r(51622);let v=(0,n._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,s.s5)(t,t=>{let{stackParser:r,attachStacktrace:n}=w();if((0,l.KU)()!==e||(0,b.jN)())return;let{msg:i,url:s,line:a,column:o,error:c}=t,d=function(e,t,r,n){let i=e.exception=e.exception||{},s=i.values=i.values||[],a=s[0]=s[0]||{},o=a.stacktrace=a.stacktrace||{},l=o.frames=o.frames||[],u=(0,h.Kg)(t)&&t.length>0?t:(0,f.$N)();return 0===l.length&&l.push({colno:n,filename:u,function:p.yF,in_app:!0,lineno:r}),e}((0,y.H7)(r,c||i,void 0,n,!1),s,a,o);d.level="error",(0,u.r)(d,{originalException:c,mechanism:{handled:!1,type:"onerror"}})}),(0,s.AS)(t,o)}(e),_("onerror")),t.onunhandledrejection&&(function(e){let t="unhandledrejection";(0,s.s5)(t,t=>{var r;let{stackParser:n,attachStacktrace:i}=w();if((0,l.KU)()!==e||(0,b.jN)())return;let s=function(e){if((0,h.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,h.sO)(s)?(r=s,{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(r)}`}]}}):(0,y.H7)(n,s,void 0,i,!0);a.level="error",(0,u.r)(a,{originalException:s,mechanism:{handled:!1,type:"onunhandledrejection"}})}),(0,s.AS)(t,d)}(e),_("onunhandledrejection"))}}});function _(e){g.T&&m.vF.log(`Global Handler attached: ${e}`)}function w(){let e=(0,l.KU)();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}},39190:(e,t,r)=>{"use strict";r.d(t,{H:()=>d});var n=r(5885),i=r(53355),s=r(13220),a=(r(27248),r(84841)),o=r(81451),l=r(23701),u=r(50394),c=r(56062);function d(e,t){var r=arguments.length>=2;return function(d){return d.pipe(e?(0,i.p)(function(t,r){return e(t,r,d)}):c.D,(0,a.N)(function(e,t){var r=[];e.subscribe((0,o._)(t,function(e){r.push(e),1<r.length&&r.shift()},function(){var e,n;try{for(var i=(0,s.Ju)(r),a=i.next();!a.done;a=i.next()){var o=a.value;t.next(o)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}t.complete()},void 0,function(){r=null}))}),r?(0,u.U)(t):(0,l.v)(function(){return new n.G}))}}},39443:(e,t,r)=>{"use strict";r.d(t,{$$:()=>m,Es:()=>f,KG:()=>y,Ks:()=>O,Ll:()=>o,Re:()=>E,Sw:()=>s,TW:()=>h,WQ:()=>k,YG:()=>w,YN:()=>g,ZC:()=>v,_q:()=>p,ag:()=>T,e_:()=>A,jn:()=>i,kx:()=>S,l6:()=>a,lk:()=>b,sb:()=>c,wz:()=>
40u,xZ:()=>d,zk:()=>l});var n=r(60266);function i(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,n.useMemo)(()=>e=>{t.forEach(t=>t(e))},t)}let s="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 o(e){return"nodeType"in e}function l(e){var t,r;return e?a(e)?e:o(e)&&null!=(t=null==(r=e.ownerDocument)?void 0:r.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 h(e){return e?a(e)?e.document:o(e)?u(e)?e:c(e)||d(e)?e.ownerDocument:document:document:document}let f=s?n.useLayoutEffect:n.useEffect;function p(e){let t=(0,n.useRef)(e);return f(()=>{t.current=e}),(0,n.useCallback)(function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return null==t.current?void 0:t.current(...r)},[])}function m(){let e=(0,n.useRef)(null);return[(0,n.useCallback)((t,r)=>{e.current=setInterval(t,r)},[]),(0,n.useCallback)(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[])]}function g(e,t){void 0===t&&(t=[e]);let r=(0,n.useRef)(e);return f(()=>{r.current!==e&&(r.current=e)},t),r}function y(e,t){let r=(0,n.useRef)();return(0,n.useMemo)(()=>{let t=e(r.current);return r.current=t,t},[...t])}function b(e){let t=p(e),r=(0,n.useRef)(null),i=(0,n.useCallback)(e=>{e!==r.current&&(null==t||t(e,r.current)),r.current=e},[]);return[r,i]}function v(e){let t=(0,n.useRef)();return(0,n.useEffect)(()=>{t.current=e},[e]),t.current}let _={};function w(e,t){return(0,n.useMemo)(()=>{if(t)return t;let r=null==_[e]?0:_[e]+1;return _[e]=r,e+"-"+r},[e,t])}function x(e){return function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return n.reduce((t,r)=>{for(let[n,i]of Object.entries(r)){let r=t[n];null!=r&&(t[n]=r+e*i)}return t},{...t})}}let k=x(1),E=x(-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:r}=e.touches[0];return{x:t,y:r}}else if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:r}=e.changedTouches[0];return{x:t,y:r}}}return"clientX"in e&&"clientY"in e?{x:e.clientX,y:e.clientY}:null}let O=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:r}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(r?Math.round(r):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:r}=e;return"scaleX("+t+") scaleY("+r+")"}},Transform:{toString(e){if(e)return[O.Translate.toString(e),O.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:r,easing:n}=e;return t+" "+r+"ms "+n}}}),C="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function T(e){return e.matches(C)?e:e.querySelector(C)}},39979:(e,t,r)=>{"use strict";r.d(t,{t:()=>s});var n=r(2782),i=r(624),s=new n.c(i.l)},40081:(e,t,r)=>{var n=r(32746),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,s,a,o){var l=1&r,u=n(e),c=u.length;if(c!=n(t).length&&!l)return!1;for(var d=c;d--;){var h=u[d];if(!(l?h in t:i.call(t,h)))return!1}var f=o.get(e),p=o.get(t);if(f&&p)return f==t&&p==e;var m=!0;o.set(e,t),o.set(t,e);for(var g=l;++d<c;){var y=e[h=u[d]],b=t[h];if(s)var v=l?s(b,y,h,t,e,o):s(y,b,h,e,t,o);if(!(void 0===v?y===b||a(y,b,r,s,o):v)){m=!1;break}g||(g="constructor"==h)}if(m&&!g){var _=e.constructor,w=t.constructor;_!=w&&"constructor"in e&&"constructor"in t&&!("function"==typeof _&&_ instanceof _&&"function"==typeof w&&w instanceof w)&&(m=!1)}return o.delete(e),o.delete(t),m}},40755:e=>{"use strict";e.exports=e=>null==e?[]:Array.isArray(e)?e:"string"==typeof e?[e]:"function"==typeof e[Symbol.iterator]?[...e]:[e]},40767:e=>{e.exports=function(e,t,r){for(var n=-1,i=null==e?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}},40951:(e,t,r)=>{"use strict";let n;r.d(t,{OX:()=>h});let i="image-Tb9Ew8CXIwaY6R1kjMvI0uRR-2000x3000-jpg";function s(e){return`image-${e.split("/").slice(-1)[0]}`.replace(/\.([a-z]+)$/,"-$1")}let a=[["width","w"],["height","h"],["format","fm"],["download","dl"],["blur","blur"],["sharpen","sharp"],["
40invert","invert"],["orientation","or"],["minHeight","min-h"],["maxHeight","max-h"],["minWidth","min-w"],["maxWidth","max-w"],["quality","q"],["fit","fit"],["crop","crop"],["saturation","sat"],["auto","auto"],["dpr","dpr"],["pad","pad"],["frame","frame"]],o=["clip","crop","fill","fillmax","max","scale","min"],l=["top","bottom","left","right","center","focalpoint","entropy"],u=["format"];function c(e){let{apiHost:t,projectId:r,dataset:n}=e,i={baseUrl:(t||"https://api.sanity.io").replace(/^https:\/\/api\./,"https://cdn.")},s=e.resource??e["~experimental_resource"];if(s?.type==="media-library"){if("string"!=typeof s.id||0===s.id.length)throw Error('Media library clients must include an id in "resource"');return{...i,mediaLibraryId:s.id}}if(s?.type==="canvas"){if("string"!=typeof s.id||0===s.id.length)throw Error('Canvas clients must include an id in "resource"');return{...i,canvasId:s.id}}if(s?.type==="dataset"){if("string"!=typeof s.id||0===s.id.length)throw Error('Dataset clients must include an id in "resource"');let[e,t]=s.id.split(".");if(!e||!t)throw Error('Dataset resource id must be in the format "projectId.dataset", got: '+s.id);return{...i,projectId:e,dataset:t}}return{...i,projectId:r,dataset:n}}function d(e){return e&&"config"in e&&"function"==typeof e.config?c(e.config()):e&&"clientConfig"in e&&"object"==typeof e.clientConfig?c(e.clientConfig):e||{}}function h(e){return new f(null,d(e))}class f{options;constructor(e,t){this.options=e?{...e.options||{},...t||{}}:{...t||{}}}withOptions(e){return new f(this,function(e,t){let r=t.baseUrl||e.baseUrl,n={baseUrl:r};for(let e in t)t.hasOwnProperty(e)&&(n[function(e){for(let t of a){let[r,n]=t;if(e===r||e===n)return r}return e}(e)]=t[e]);return{baseUrl:r,...n}}(this.options,e))}image(e){return this.withOptions({source:e})}dataset(e){return this.withOptions({dataset:e})}projectId(e){return this.withOptions({projectId:e})}withClient(e){let t=d(e),r={...this.options};return delete r.baseUrl,delete r.projectId,delete r.dataset,delete r.mediaLibraryId,delete r.canvasId,new f(null,{...t,...r})}bg(e){return this.withOptions({bg:e})}dpr(e){return this.withOptions(e&&1!==e?{dpr:e}:{})}width(e){return this.withOptions({width:e})}height(e){return this.withOptions({height:e})}focalPoint(e,t){return this.withOptions({focalPoint:{x:e,y:t}})}maxWidth(e){return this.withOptions({maxWidth:e})}minWidth(e){return this.withOptions({minWidth:e})}maxHeight(e){return this.withOptions({maxHeight:e})}minHeight(e){return this.withOptions({minHeight:e})}size(e,t){return this.withOptions({width:e,height:t})}blur(e){return this.withOptions({blur:e})}sharpen(e){return this.withOptions({sharpen:e})}rect(e,t,r,n){return this.withOptions({rect:{left:e,top:t,width:r,height:n}})}format(e){return this.withOptions({format:e})}invert(e){return this.withOptions({invert:e})}orientation(e){return this.withOptions({orientation:e})}quality(e){return this.withOptions({quality:e})}forceDownload(e){return this.withOptions({download:e})}flipHorizontal(){return this.withOptions({flipHorizontal:!0})}flipVertical(){return this.withOptions({flipVertical:!0})}ignoreImageParams(){return this.withOptions({ignoreImageParams:!0})}fit(e){if(-1===o.indexOf(e))throw Error(`Invalid fit mode "${e}"`);return this.withOptions({fit:e})}crop(e){if(-1===l.indexOf(e))throw Error(`Invalid crop mode "${e}"`);return this.withOptions({crop:e})}saturation(e){return this.withOptions({saturation:e})}auto(e){if(-1===u.indexOf(e))throw Error(`Invalid auto mode "${e}"`);return this.withOptions({auto:e})}pad(e){return this.withOptions({pad:e})}vanityName(e){return this.withOptions({vanityName:e})}frame(e){if(1!==e)throw Error(`Invalid frame value "${e}"`);return this.withOptions({frame:e})}url(){return function(e){let t={...e||{}},r=t.source;delete t.source;let n=function(e){var t;let r;if(!e)return null;if("string"==typeof e&&(t=e,/^https?:\/\//.test(`${t}`)))r={asset:{_ref:s(e)}};else if("string"==typeof e)r={asset:{_ref:e}};else if(e&&"string"==typeof e._ref)r={asset:e};else if(e&&"string"==typeof e._id)r={asset:{_ref:e._id||""}};else if(e&&e.asset&&"string"==typeof e.asset.url)r={asset:{_ref:s(e.asset.url)}};else{if("object"!=typeof e.asset)return null;r={...e}}return e.crop&&(r.crop=e.crop),e.hotspot&&(r.hotspot=e.hotspot),function(e){if(e.crop&&e.hotspot)return e;let t={...e};
40return t.crop||(t.crop={left:0,top:0,bottom:0,right:0}),t.hotspot||(t.hotspot={x:.5,y:.5,height:1,width:1}),t}(r)}(r);if(!n){if(r&&"object"==typeof r&&null!==r&&r._upload&&(!r.asset||!r.asset._ref))return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8HwQACfsD/QNViZkAAAAASUVORK5CYII=";throw Error(`Unable to resolve image URL from source (${JSON.stringify(r)})`)}let o=function(e){let[,t,r,n]=e.split("-");if(!t||!r||!n)throw Error(`Malformed asset _ref '${e}'. Expected an id like "${i}".`);let[s,a]=r.split("x"),o=+s,l=+a;if(!(isFinite(o)&&isFinite(l)))throw Error(`Malformed asset _ref '${e}'. Expected an id like "${i}".`);return{id:t,width:o,height:l,format:n}}(n.asset._ref||n.asset._id||""),l=Math.round(n.crop.left*o.width),u=Math.round(n.crop.top*o.height),c={left:l,top:u,width:Math.round(o.width-n.crop.right*o.width-l),height:Math.round(o.height-n.crop.bottom*o.height-u)},d=n.hotspot.height*o.height/2,h=n.hotspot.width*o.width/2,f=n.hotspot.x*o.width,p=n.hotspot.y*o.height;return t.rect||t.focalPoint||t.ignoreImageParams||t.crop||(t={...t,...function(e,t){let r,n=t.width,i=t.height;if(!(n&&i))return{width:n,height:i,rect:e.crop};let s=e.crop,a=e.hotspot,o=n/i;if(s.width/s.height>o){let e=Math.round(s.height),t=Math.round(e*o),n=Math.max(0,Math.round(s.top)),i=Math.max(0,Math.round(Math.round((a.right-a.left)/2+a.left)-t/2));i<s.left?i=s.left:i+t>s.left+s.width&&(i=s.left+s.width-t),r={left:i,top:n,width:t,height:e}}else{let e=s.width,t=Math.round(e/o),n=Math.max(0,Math.round(s.left)),i=Math.max(0,Math.round(Math.round((a.bottom-a.top)/2+a.top)-t/2));i<s.top?i=s.top:i+t>s.top+s.height&&(i=s.top+s.height-t),r={left:n,top:i,width:e,height:t}}return{width:n,height:i,rect:r}}({crop:c,hotspot:{left:f-h,top:p-d,right:f+h,bottom:p+d}},t)}),function(e){let t,r=(e.baseUrl||"https://cdn.sanity.io").replace(/\/+$/,""),n=e.vanityName?`/${e.vanityName}`:"",i=`${e.asset.id}-${e.asset.width}x${e.asset.height}.${e.asset.format}${n}`;t=e.mediaLibraryId?`${r}/media-libraries/${e.mediaLibraryId}/images/${i}`:e.canvasId?`${r}/images/canvases/${e.canvasId}/${i}`:`${r}/images/${e.projectId}/${e.dataset}/${i}`;let s=[];if(e.rect){let{left:t,top:r,width:n,height:i}=e.rect;(0!==t||0!==r||i!==e.asset.height||n!==e.asset.width)&&s.push(`rect=${t},${r},${n},${i}`)}e.bg&&s.push(`bg=${e.bg}`),e.focalPoint&&(s.push(`fp-x=${e.focalPoint.x}`),s.push(`fp-y=${e.focalPoint.y}`));let o=[e.flipHorizontal&&"h",e.flipVertical&&"v"].filter(Boolean).join("");return o&&s.push(`flip=${o}`),a.forEach(t=>{let[r,n]=t;"u">typeof e[r]?s.push(`${n}=${encodeURIComponent(e[r])}`):"u">typeof e[n]&&s.push(`${n}=${encodeURIComponent(e[n])}`)}),0===s.length?t:`${t}?${s.join("&")}`}({...t,asset:o})}(this.options)}toString(){return this.url()}}n=["The default export of @sanity/image-url has been deprecated. Use the named export `createImageUrlBuilder` instead."],(...e)=>{console.warn(n.join(" "),...e)}},41025:(e,t,r)=>{"use strict";r.d(t,{T:()=>n});let n="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},41058:(e,t,r)=>{"use strict";let n,i,s;r.d(t,{li:()=>S,mG:()=>E});var a=r(78266),o=r(23821),l=r(87809),u=r(28077),c=r(87865),d=r(14919),h=r(85611),f=r(26088),p=r(2541),m=r(82730),g=r(3352),y=r(29060),b=r(92298),v=r(33806),_=r(36017),w=r(74157);function x(e,t){let{extra:r,tags:n,user:i,contexts:s,level:a,sdkProcessingMetadata:o,breadcrumbs:l,fingerprint:u,eventProcessors:c,attachments:d,propagationContext:h,transactionName:f,span:p}=t;k(e,"extra",r),k(e,"tags",n),k(e,"user",i),k(e,"contexts",s),e.sdkProcessingMetadata=(0,_.h)(e.sdkProcessingMetadata,o,2),a&&(e.level=a),f&&(e.transactionName=f),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,...h}}function k(e,t,r){e[t]=(0,_.h)(e[t],r,1)}function E(e,t,r,_,k,E){var S,A,O,C,T,I;let{normalizeDepth:D=3,normalizeMaxBreadth:j=1e3}=e,R={...t,event_id:t.event_id||r.event_id||(0,p.eJ)(),timestamp:t.timestamp||(0,y.lu)()},N=r.integrations||e.integrations.map(e=>e.name);(function(e,t){let{environment:r,release:n,dist:i,maxValueLength:s=250}=t;e.environment=e.environment||r||a.U,!e.release&&n&&(e.release=n),!e.dist&&i&&(e.dist=i),e.message&&(e.message=(0,g.xv)(e.message,s));let o=e.exception&&e.exception.values&&e.exception.values[0];o&&o.value&&(o.value=(0,g.xv)(o.value,s));let l=e.request;l&&l.url&&(l.url=(0,g.xv)(l.url,s))})(R,e),S=R,(A=N).length>0&&(S.sdk=S.sdk||{},S.sdk.integrations=[...S.sdk.integrations||[],...A]),k&&k.emit("applyFrameMetadata",t),void 0===t.type&&function(e,t){let r=function(e){let t=f.O._sentryDebugIds;if(!t)return{};let r=Object.keys(t);return s&&r.length===i?s:(i=r.length,s=r.reduce((r,i)=>{n||(n={});let s=n[i];if(s)r[s[0]]=s[1];else{let s=e(i);for(let e=s.length-1;e>=0;e--){let a=s[e],o=a&&a.filename,l=t[i];if(o&&l){r[o]=l,n[i]=[o,l];break}}}return r},{}))}(t);
40try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{r&&e.filename&&(e.debug_id=r[e.filename])})})}catch(e){}}(R,e.stackParser);let $=function(e,t){if(!t)return e;let r=e?e.clone():new h.H;return r.update(t),r}(_,r.captureContext);r.mechanism&&(0,p.M6)(R,r.mechanism);let M=k?k.getEventProcessors():[],F=(0,o.m6)().getScopeData();E&&x(F,E.getScopeData()),$&&x(F,$.getScopeData());let P=[...r.attachments||[],...F.attachments];P.length&&(r.attachments=P);let{fingerprint:L,span:z,breadcrumbs:q,sdkProcessingMetadata:U}=F;return function(e,t){let{extra:r,tags:n,user:i,contexts:s,level:a,transactionName:o}=t,l=(0,v.Ce)(r);l&&Object.keys(l).length&&(e.extra={...l,...e.extra});let u=(0,v.Ce)(n);u&&Object.keys(u).length&&(e.tags={...u,...e.tags});let c=(0,v.Ce)(i);c&&Object.keys(c).length&&(e.user={...c,...e.user});let d=(0,v.Ce)(s);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),a&&(e.level=a),o&&"transaction"!==e.type&&(e.transaction=o)}(R,F),z&&function(e,t){e.contexts={trace:(0,w.kX)(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:(0,b.k1)(t),...e.sdkProcessingMetadata};let r=(0,w.zU)(t),n=(0,w.et)(r).description;n&&!e.transaction&&"transaction"===e.type&&(e.transaction=n)}(R,z),O=R,C=L,O.fingerprint=O.fingerprint?Array.isArray(O.fingerprint)?O.fingerprint:[O.fingerprint]:[],C&&(O.fingerprint=O.fingerprint.concat(C)),O.fingerprint&&!O.fingerprint.length&&delete O.fingerprint,function(e,t){let r=[...e.breadcrumbs||[],...t];e.breadcrumbs=r.length?r:void 0}(R,q),T=R,I=U,T.sdkProcessingMetadata={...T.sdkProcessingMetadata,...I},(function e(t,r,n,i=0){return new d.T2((s,a)=>{let o=t[i];if(null===r||"function"!=typeof o)s(r);else{let d=o({...r},n);l.T&&o.id&&null===d&&c.vF.log(`Event processor "${o.id}" dropped event`),(0,u.Qg)(d)?d.then(r=>e(t,r,n,i+1).then(s)).then(null,a):e(t,d,n,i+1).then(s).then(null,a)}})})([...M,...F.eventProcessors],R,r).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 r=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{r.push({type:"sourcemap",code_file:e,debug_id:t})})}(e),"number"==typeof D&&D>0)?function(e,t,r){if(!e)return null;let n={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:(0,m.S8)(e.data,t,r)}}))},...e.user&&{user:(0,m.S8)(e.user,t,r)},...e.contexts&&{contexts:(0,m.S8)(e.contexts,t,r)},...e.extra&&{extra:(0,m.S8)(e.extra,t,r)}};return e.contexts&&e.contexts.trace&&n.contexts&&(n.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(n.contexts.trace.data=(0,m.S8)(e.contexts.trace.data,t,r))),e.spans&&(n.spans=e.spans.map(e=>({...e,...e.data&&{data:(0,m.S8)(e.data,t,r)}}))),e.contexts&&e.contexts.flags&&n.contexts&&(n.contexts.flags=(0,m.S8)(e.contexts.flags,3,r)),n}(e,D,j):e)}function S(e){if(e){var t;return(t=e)instanceof h.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"]},41194:(e,t,r)=>{var n=r(83604),i=r(51356);e.exports=function(e){return null!=e&&i(e.length)&&!n(e)}},41325:(e,t,r)=>{"use strict";r.d(t,{w:()=>i});var n=r(86337);function i(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&n._P in e?e[n._P](t):e instanceof Date?new e.constructor(t):new Date(t)}},41785:(e,t,r)=>{var n=r(7290),i=r(60361),s=r(3582),a=r(83104);e.exports=s(function(e,t){if(null==e)return[];var r=t.length;return r>1&&a(e,t[0],t[1])?t=[]:r>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),i(e,n(t,1),[])})},41910:(e,t,r)=>{var n=r(5815).ExifReader;e.exports=function(e){var t=new n;t.load(e);var r=t.getAllTags(),i={};for(var s in r)i[s.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,"")]=r[s].description;return i}},42279:(e,t,r)=>{"use strict";r.d(t,{g:()=>Y});var n=r(26393);function i(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)}function s(e,t){if(null===e||null===t)return e===t;let r=typeof e,n=typeof t;if("undefined"===r&&"undefined"===n)return!0;
40if("function"===r&&"function"===n)return e===t;if("object"===r&&"object"===n){let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let n of r)if(!s(e[n],t[n]))return!1;return!0}return e===t}let a={};a.join=V(e=>e,(e,t,r)=>{if("array"!==t.type||"string"!==r.type)return n.M_;let i="",s=!1;for(let e of t.data){switch(s&&(i+=r.data),(0,n.Pw)(e)){case"number":case"string":case"boolean":case"datetime":i+=`${e}`;break;default:return n.M_}s=!0}return(0,n.sH)(i)}),a.compact=W(([e])=>({array:e}),function*(e,t){null!==t&&(yield t)}),a.unique=W(e=>({array:e[0],state:new Set}),function*(e,t,r,i){switch((0,n.Pw)(t)){case"number":case"string":case"boolean":case"datetime":i.has(t)||(i.add(t),yield t);break;default:yield t}}),a.intersects=V(e=>e,(e,t,r)=>{if("array"!==t.type||"array"!==r.type)return n.M_;for(let e of t.data)for(let t of r.data)if(i((0,n.ss)(e),(0,n.ss)(t)))return n.Nz;return n.oG});let o={};async function l(e,t){let r=await e.get();for(let e of t)if(!(r=function(e,t){try{return e[t]}catch{return}}(r,e)))break;return r}async function*u(e,t){let r=[[]];for(;r.length>0;){let i=r.shift()||[],a=(0,n.ss)(await l(e,i)),o=(0,n.ss)(await l(t,i));if(o.type!==a.type)yield i;else if("string"===o.type&&"string"===a.type||"boolean"===o.type&&"boolean"===a.type||"null"===o.type&&"null"===a.type||"number"===o.type&&"number"===a.type)o.data!==a.data&&(yield i);else if("datetime"===o.type&&"datetime"===a.type)o.data.equals(a.data)||(yield i);else if("object"===o.type&&"object"===a.type){if(!s(o.data,a.data)){let e=Object.keys(o.data),t=Object.keys(a.data);new Set(e.concat(t)).forEach(e=>{r.push([...i,e])})}}else if("array"===o.type&&"array"===a.type){if(o.data.length!==a.data.length)yield i;else if(!s(o.data,a.data))for(let e=0;e<a.data.length;e++)r.push([...i,e])}else if("stream"===o.type&&"stream"===a.type){let e=await o.get(),t=await a.get();if(e.length!==t.length)yield i;else if(!s(e,t))for(let e=0;e<t.length;e++)r.push([...i,e])}}}async function c(e,t,r){switch(e.type){case"Group":return await c(e.base,t,r);case"Tuple":let i=[];for(let n of e.members){let e=await c(n,t,r);i.push(...e)}return i;case"AccessAttribute":return e.base?(await c(e.base,t,r)).map(t=>[...t,e.name]):[[e.name]];case"ArrayCoerce":{let n=await c(e.base,t,r),i=[];for(let e of n){let r=await l(t,e);if(Array.isArray(r))for(let t=0;t<r.length;t++)i.push([...e,t])}return i}case"Filter":{let i=await c(e.base,t,r),s={...e,base:{type:"This"}},a=[];for(let e of i){let i=await l(t,e);if(Array.isArray(i))for(let t=0;t<i.length;t++){let o=i[t],l=r.createNested((0,n.ss)([o]));(await (await q(s,l)).get()).length>0&&a.push([...e,t])}}return a}case"SelectorFuncCall":return d(e.arg,r.createHidden(t));case"SelectorNested":{let{base:i,nested:s}=e,a=await c(i,t,r),o=[];for(let e of a){let i=await l(t,e);switch(s.type){case"AccessAttribute":case"ArrayCoerce":case"Filter":let a=await c(s,(0,n.ss)(i),r);for(let t=0;t<a.length;t++)o.push([...e,...a[t]]);break;case"Group":for(let t of(await c(s.base,(0,n.ss)(i),r)))o.push([...e,...t]);break;case"Tuple":for(let t of s.members)for(let s of(await c(t,(0,n.ss)(i),r)))o.push([...e,...s])}}return o}}}async function d(e,t,r=[]){let i=t.value,s=[];if(i.isArray()){let a=await i.get();for(let i=0;i<a.length;i++){let o=await d(e,t.createHidden((0,n.ss)(a[i])),[...r,i]);s.push(...o)}}else if("object"===i.type){let a=await q(e,t);for(let o of("boolean"===a.type&&!0===a.data&&s.push(r),Object.keys(i.data))){let a=await d(e,t.createHidden((0,n.ss)(i.data[o])),[...r,o]);s.push(...a)}}return s}async function h(e,t,r,i){let a=i.createHidden(e),o=await c(r,a.value,a),u=i.createHidden(t),d=await c(r,u.value,u);if(o.length!==d.length)return n.Nz;for(let r of o){for(let i=0;i<r.length;i++)if("number"==typeof r[i]){let s=r.slice(0,i),a=await l(e,s),o=await l(t,s);if(!Array.isArray(a)||!Array.isArray(o)||a.length!==o.length)return n.Nz}if(!s(await l(e,r),await l(t,r)))return n.Nz}return n.oG}async function f(e,t,r,i){let s=i.createHidden(e),a=await c(r,s.value,s);for await(let r of u(e,t)){let e=!1;for(let t of a)if(function(e,t){return t.every((t,r)=>e[r]===t)}(r,t)){e=!0;break}if(!e)return n.oG}return n.Nz}o.now=B((e,t)=>(0,n.k5)(new n.c9(t.context.timestamp)));let p={};p.changedAny=U(async(e,t)=>{let r=e[0],i=e[1],s=e[2];if(!(0,n._E)(s))throw Error("changedAny third argument must be a selector");return h(await q(r,t),await q(i,t),s,t)}),p.changedOnly=U(async(e,t)=>{let r=e[0],i=e[1],s=e[2];if(!(0,n._E)(s))throw Error("changedOnly third argument must be a selector");return f(await q(r,t),await q(i,t),s,t)});let m={};m.operation=B((e,t)=>{let r=null!==t.context.before,i=null!==t.context.after;return r&&i?(0,n.sH)("update"):i?(0,n.sH)("create"):r?(0,n.sH)("delete"):n.M_}),m.changedAny=U(async(e,t)=>{let r=t.context.before||n.M_,i=t.context.after||n.M_,s=e[0];if(!(0,n._E)(s))throw Error("changedAny first argument must be a selector");return h(r,i,s,t)}),m.changedOnly=U(async(e,t)=>{let r=t.context.before||n.M_,i=t.context.after||n.M_,s=e[0];if(!(0,n._E)(s))throw Error("changedOnly first argument must be a selector");return f(r,i,s,t)});let g={};g.get=B(()=>{throw Error("not implemented")}),g.incomingRefCount=B(()=>{throw Error("not implemented")}),g.incomingGlobalDocumentReferenceCount=B(()=>{throw Error("not implemented")});let y={};
40y.latLng=B(()=>{throw Error("not implemented")}),y.contains=B(()=>{throw Error("not implemented")}),y.intersects=B(()=>{throw Error("not implemented")}),y.distance=B(()=>{throw Error("not implemented")});let b={};b.lower=V(e=>e,(e,t)=>"string"!==t.type?n.M_:(0,n.sH)(t.data.toLowerCase())),b.upper=V(e=>e,(e,t)=>"string"!==t.type?n.M_:(0,n.sH)(t.data.toUpperCase())),b.split=V(e=>e,(e,t,r)=>"string"!==t.type||"string"!==r.type?n.M_:0===t.data.length?(0,n.ci)([]):0===r.data.length?(0,n.ci)(Array.from(t.data)):(0,n.ci)(t.data.split(r.data))),b.startsWith=V(e=>e,(e,t,r)=>"string"!==t.type||"string"!==r.type?n.M_:t.data.startsWith(r.data)?n.Nz:n.oG);let v={};v.anywhere=B(()=>{throw Error("not implemented")}),v.coalesce={async executeAsync(e,t){for(let r of e){let e=await q(r,t);if("null"!==e.type)return e}return n.M_},executeSync(e,t){for(let r of e){let e=z(r,t);if("null"!==e.type)return e}return n.M_}},v.count=G(e=>({array:e[0]}),()=>0,(e,t)=>t+1,n.oB),v.dateTime=V(e=>e,(e,t)=>"datetime"===t.type?t:"string"!==t.type?n.M_:n.c9.parseToValue(t.data)),v.defined=V(e=>e,(e,t)=>"null"===t.type?n.oG:n.Nz),v.identity=B((e,t)=>(0,n.sH)(t.context.identity)),v.length=V(e=>e,(e,t)=>"string"===t.type?(0,n.oB)(function(e){let t=0;for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);n>=55296&&n<=56319||t++}return t}(t.data)):"array"===t.type?(0,n.oB)(t.data.length):n.M_),v.path=V(e=>e,(e,t)=>"string"!==t.type?n.M_:(0,n.Ew)(new n.wA(t.data))),v.string=V(e=>e,(e,t)=>{switch(t.type){case"number":case"string":case"boolean":case"datetime":return(0,n.sH)(`${t.data}`);default:return n.M_}}),v.references=V(e=>[{type:"This"},...e],(e,t,...r)=>{let i=new Set;for(let e of r)if("string"===e.type)i.add(e.data);else if("array"===e.type)for(let t of e.data)"string"==typeof t&&i.add(t);return 0===i.size||!function e(t,r){switch((0,n.Pw)(t)){case"array":for(let n of t)if(e(n,r))return!0;break;case"object":if(t._ref)return r.has(t._ref);for(let n of Object.values(t))if(e(n,r))return!0}return!1}(t,i)?n.oG:n.Nz}),v.round=V(e=>e,(e,t,r)=>{if("number"!==t.type)return n.M_;let i=t.data,s=0;if(r){if("number"!==r.type||r.data<0||!Number.isInteger(r.data))return n.M_;s=r.data}return 0===s?i<0?(0,n.oB)(-Math.round(-i)):(0,n.oB)(Math.round(i)):(0,n.oB)(Number(i.toFixed(s)))}),v.now=B((e,t)=>(0,n.sH)(t.context.timestamp.toISOString())),v.boost=B(()=>{throw Error("unexpected boost call")}),v.lower=b.lower,v.upper=b.upper;let _={};_.min=G(e=>({array:e[0]}),()=>{},(e,t,r)=>null===r?t:"number"!=typeof r?H:void 0===t||r<t?r:t,e=>void 0===e?n.M_:(0,n.oB)(e)),_.max=G(e=>({array:e[0]}),()=>{},(e,t,r)=>null===r?t:"number"!=typeof r?H:void 0===t||r>t?r:t,e=>void 0===e?n.M_:(0,n.oB)(e)),_.sum=G(e=>({array:e[0]}),()=>0,(e,t,r)=>null===r?t:"number"!=typeof r?H:t+r,n.oB),_.avg=G(e=>({array:e[0]}),()=>({count:0,sum:0}),(e,{count:t,sum:r},n)=>null===n?{count:t,sum:r}:"number"!=typeof n?H:{count:t+1,sum:r+n},({count:e,sum:t})=>0===e?n.M_:(0,n.oB)(t/e));let w={};function x(e){if("string"!=typeof e._type)return null;let t=e.children;if(!Array.isArray(t))return null;let r="";for(let e of t)e&&"object"==typeof e&&"string"==typeof e._type&&"span"===e._type&&"string"==typeof e.text&&(r+=e.text);return r}w.aspect=B(()=>{throw Error("not implemented")});let k={};k.text=V(e=>e,(e,t)=>{let r=function(e){if("object"===e.type)return x(e.data);if("array"===e.type){let t=function e(t,r=[]){for(let n of t)if(Array.isArray(n))e(n,r);else if("object"==typeof n&&n){let e=x(n);null!==e&&r.push(e)}return r}(e.data);if(t.length>0)return t.join(`
41
42`)}return null}(t);return null===r?n.M_:(0,n.sH)(r)});let E={};E.all=W(()=>({array:{type:"Everything"}}),function*(e,t){"object"==typeof t&&t&&"_type"in t&&"system.release"===t._type&&(yield t)});let S={};S.projectId=B((e,t)=>t.context.sanity?(0,n.sH)(t.context.sanity.projectId):n.M_),S.dataset=B((e,t)=>t.context.sanity?(0,n.sH)(t.context.sanity.dataset):n.M_),S.versionOf=V(([e])=>[e,{type:"This"}],(e,t,r)=>{if("string"!==t.type)return n.M_;let i=t.data;if("object"!==r.type||"string"!=typeof r.data._id)return n.M_;if(r.data._id===i)return n.Nz;let s=r.data._id.split(".");return s.length>=2&&"drafts"===s[0]&&s.slice(1).join(".")===i||s.length>=3&&"versions"===s[0]&&s.slice(2).join(".")===i?n.Nz:n.oG}),S.partOfRelease=V(e=>[e[0],{type:"This"}],(e,t,r)=>{if("string"!==t.type)return n.M_;let i=t.data;if("object"!==r.type||"string"!=typeof r.data._id)return n.M_;let s=r.data._id.split(".");return s.length>=3&&"versions"===s[0]&&s[1]===i?n.Nz:n.oG});let A={};A.query=B(()=>{throw Error("not implemented")}),A.semanticSimilarity=B(()=>{throw Error("not implemented")});let O={};O.attributes=B(()=>{throw Error("not implemented")});let C={datetime:1,number:2,string:3,boolean:4};function T(e,t){let r=(0,n.Pw)(e);if(r!==(0,n.Pw)(t))return null;switch(r){case"number":case"boolean":return e-t;case"string":return e<t?-1:+(e>t);case"datetime":return e.compareTo(t);default:return null}}class I{params;source;value;parent;context;isHidden=!1;constructor(e,t,r,n,i){this.params=e,this.source=t,this.value=r,this.context=n,this.parent=i}createNested(e){return this.isHidden?new I(this.params,this.source,e,this.context,this.parent):new I(this.params,this.source,e,this.context,this)}createHidden(e){let t=this.createNested(e);return t.isHidden=!0,t}}async function D(e,t){if("OpCall"===e.type&&"match"===e.op)return j(e.left,e.right,t);if("FuncCall"===e.type&&"boost"===e.name){let r=await D(e.args[0],t),n=await q(e.args[1],t);return"number"===n.type&&r>0?r+n.data:0}switch(e.type){case"Or":return await D(e.left,t)+await D(e.right,t);case"And":{let r=await D(e.left,t),n=await D(e.right,t);return 0===r||0===n?0:r+n}default:{let r=await q(e,t);return+("boolean"===r.type&&!0===r.data)}}}async function j(e,t,r){return R(await q(e,r),await q(t,r))}function R(e,t){let r=(0,n.D5)(e,e=>(0,n.hN)(e)),i=(0,n.D5)(t,e=>(0,n.lf)(e)),s=(e,t)=>{if(!t.success||0===e.parts.length||0===t.parts.length)return 0;let r=0;for(let n of t.parts){let t=e.parts.reduce((e,t)=>
42e+ +!!n.test(t),0);r+=2.2*t/(t+1.2)}return r};return"then"in r||"then"in i?(async()=>s(await r,await i))():s(r,i)}function N(e){let t=[],r=[];for(let n of e){let e="asc";"Desc"===n.type?(e="desc",n=n.base):"Asc"===n.type&&(n=n.base),t.push(n),r.push(e)}return{mappers:t,directions:r}}function $(e,t){return e.sort((e,r)=>{for(let i=0;i<t.length;i++){let s=function(e,t){let r=(0,n.Pw)(e),i=(0,n.Pw)(t),s=C[r]||100,a=C[i]||100;if(s!==a)return s-a;let o=T(e,t);return null===o&&(o=0),o}(e[i+2],r[i+2]);if("desc"===t[i]&&(s=-s),0!==s)return s}return e[1]-r[1]}),e.map(e=>e[0])}let M={};M.order={executeSync({base:e,args:t},r){let{mappers:i,directions:s}=N(t),a=[],o=0,l=s.length;for(let t of e.data){let e=r.createNested((0,n.ss)(t)),s=[t,o];for(let t=0;t<l;t++){let r=z(i[t],e);s.push(r.data)}a.push(s),o++}return(0,n.ci)($(a,s))},async executeAsync({base:e,args:t},r){let{mappers:i,directions:s}=N(t),a=[],o=0,l=s.length;for await(let t of e){let e=r.createNested(t),n=[await t.get(),o];for(let t=0;t<l;t++){let r=await q(i[t],e);n.push(await r.get())}a.push(n),o++}return(0,n.ci)($(a,s))}},M.score={async executeAsync({base:e,args:t},r){let i=[],s=[];for await(let n of e){if("object"!==n.type){i.push(await n.get());continue}let e=r.createNested(n),a="number"==typeof n.data._score?n.data._score:0;for(let r of t)a+=await D(r,e);let o=Object.assign({},n.data,{_score:a});s.push(o)}return s.sort((e,t)=>t._score-e._score),(0,n.ss)(s)},executeSync({base:e,args:t},r){let i=[];for(let s of e.data){if("object"!==(0,n.Pw)(s))continue;let e=r.createNested((0,n.ss)(s)),a="number"==typeof s._score?s._score:0;for(let r of t)a+=function e(t,r){if("OpCall"===t.type&&"match"===t.op)return function(e,t,r){let n=R(z(e,r),z(t,r));if("number"==typeof n)return n;throw Error("Found synchronous value in match()")}(t.left,t.right,r);if("FuncCall"===t.type&&"boost"===t.name){let n=e(t.args[0],r),i=z(t.args[1],r);return"number"===i.type&&n>0?n+i.data:0}switch(t.type){case"Or":return e(t.left,r)+e(t.right,r);case"And":{let n=e(t.left,r),i=e(t.right,r);return 0===n||0===i?0:n+i}default:{let e=z(t,r);return+("boolean"===e.type&&!0===e.data)}}}(r,e);let o=Object.assign({},s,{_score:a});i.push(o)}return i.sort((e,t)=>t._score-e._score),(0,n.ci)(i)}};let F={global:v,string:b,array:a,pt:k,delta:m,diff:p,media:w,sanity:S,math:_,dateTime:o,releases:E,text:A,geo:y,documents:g,user:O},P={"==":function(e,t){return i(e,t)?n.Nz:n.oG},"!=":function(e,t){return i(e,t)?n.oG:n.Nz},">":function(e,t){if("stream"===e.type||"stream"===t.type)return n.M_;let r=T(e.data,t.data);return null===r?n.M_:r>0?n.Nz:n.oG},">=":function(e,t){if("stream"===e.type||"stream"===t.type)return n.M_;let r=T(e.data,t.data);return null===r?n.M_:r>=0?n.Nz:n.oG},"<":function(e,t){if("stream"===e.type||"stream"===t.type)return n.M_;let r=T(e.data,t.data);return null===r?n.M_:r<0?n.Nz:n.oG},"<=":function(e,t){if("stream"===e.type||"stream"===t.type)return n.M_;let r=T(e.data,t.data);return null===r?n.M_:r<=0?n.Nz:n.oG},in:function(e,t){if("path"===t.type)return"string"!==e.type?n.M_:t.data.matches(e.data)?n.Nz:n.oG;if("array"===t.type){for(let r of t.data)if(i(e,(0,n.ss)(r)))return n.Nz;return n.oG}return"stream"===t.type?(async()=>{for await(let r of t)if(i(e,r))return n.Nz;return n.oG})():n.M_},match:function(e,t){let r=(0,n.D5)(e,e=>(0,n.hN)(e)),i=(0,n.D5)(t,e=>(0,n.Al)(e)),s=(e,t)=>t.success&&(0,n.H1)(e.parts,t.parts)?n.Nz:n.oG;return"then"in r||"then"in i?(async()=>s(await r,await i))():s(r,i)},"+":function(e,t){return"datetime"===e.type&&"number"===t.type?(0,n.k5)(e.data.add(t.data)):"number"===e.type&&"datetime"===t.type?(0,n.k5)(t.data.add(e.data)):"number"===e.type&&"number"===t.type?(0,n.oB)(e.data+t.data):"string"===e.type&&"string"===t.type?(0,n.sH)(e.data+t.data):"object"===e.type&&"object"===t.type?(0,n.ss)({...e.data,...t.data}):"array"===e.type&&"array"===t.type?(0,n.ss)(e.data.concat(t.data)):e.isArray()&&t.isArray()?new n.GL(async function*(){for await(let t of e)yield t;for await(let e of t)yield e}):n.M_},"-":function(e,t){return"datetime"===e.type&&"number"===t.type?(0,n.k5)(e.data.add(-t.data)):"datetime"===e.type&&"datetime"===t.type?(0,n.oB)(e.data.difference(t.data)):"number"===e.type&&"number"===t.type?(0,n.oB)(e.data-t.data):n.M_},"*":L((e,t)=>e*t),"/":L((e,t)=>e/t),"%":L((e,t)=>e%t),"**":L((e,t)=>Math.pow(e,t))};function L(e){return function(t,r){if("number"===t.type&&"number"===r.type){let i=e(t.data,r.data);return(0,n.oB)(i)}return n.M_}}function z(e,t){return Z[e.type].executeSync(e,t)}function q(e,t){return Z[e.type].executeAsync(e,t)}function U(e){return{executeSync(){throw Error("executeSync not supported")},executeAsync:e}}function B(e){return{executeSync(t,r){let n=e(t,r);
42if("stream"===n.type)throw Error("Stream encountered in evaluateSync");return n},executeAsync:async(t,r)=>e(t,r)}}function V(e,t){return{executeSync(r,n){let i=e(r).map(e=>z(e,n)),s=t(r,...i);if("stream"===s.type)throw Error("Stream/iterator not supported in synchronous mode");return s},async executeAsync(r,n){let i=e(r);return t(r,...await Promise.all(i.map(e=>q(e,n).then(e=>e.asStatic()))))}}}let H=Symbol();function G(e,t,r,i){return{executeSync(s,a){let{array:o,args:l=[]}=e(s),u=z(o,a);if("array"!==u.type)return n.M_;let c=l.map(e=>z(e,a)),d=t(s,...c);for(let e of u.data){let t=r(s,d,e,...c);if(t===H)return n.M_;d=t}return i(d)},async executeAsync(s,a){let{array:o,args:l=[]}=e(s),u=await q(o,a);if("array"!==u.type&&"stream"!==u.type)return n.M_;let c=await Promise.all(l.map(e=>q(e,a).then(e=>e.asStatic()))),d=t(s,...c);if("stream"===u.type)for await(let e of u){let t=r(s,d,await e.get(),...c);if(t===H)return n.M_;d=t}else for(let e of u.data){let t=r(s,d,e,...c);if(t===H)return n.M_;d=t}return i(d)}}}function W(e,t,{hidden:r=!1}={}){return{executeSync(i,s){let a=e(i),o=z(a.array,s);if("array"!==o.type)return n.M_;let l=[];for(let e of o.data){let o;if(a.inner){let t=r?s.createHidden((0,n.ss)(e)):s.createNested((0,n.ss)(e));o=z(a.inner,t).data}for(let r of t(i,e,o,a.state))l.push(r)}return(0,n.ci)(l)},async executeAsync(i,s){let a=e(i),o=await q(a.array,s);return o.isArray()?new n.GL(async function*(){for await(let e of o){let o;if(a.inner){let t=r?s.createHidden(e):s.createNested(e);o=await (await q(a.inner,t)).get()}for(let r of t(i,await e.get(),o,a.state))yield(0,n.ss)(r)}}):n.M_}}}let Z={This:B((e,t)=>t.value),SelectorNested:B(()=>{throw Error("Unexpected node type: SelectorNested")}),SelectorFuncCall:B(()=>{throw Error("Unexpected node type: SelectorFuncCall")}),Everything:B((e,t)=>t.source),Parameter:B(({name:e},t)=>(0,n.ss)(t.params[e])),Context:B(({key:e},t)=>{if("before"===e||"after"===e)return t.context[e]||n.M_;throw Error(`unknown context key: ${e}`)}),Parent:B(({n:e},t)=>{let r=t;for(let t=0;t<e;t++){if(!r.parent)return n.M_;r=r.parent}return r.value}),OpCall:{async executeAsync({op:e,left:t,right:r},n){let i=P[e];if(!i)throw Error(`Unknown operator: ${e}`);return i(await q(t,n),await q(r,n))},executeSync({op:e,left:t,right:r},n){let i=P[e];if(!i)throw Error(`Unknown operator: ${e}`);let s=i(z(t,n),z(r,n));if("then"in s||"stream"===s.type)throw Error(`Operator ${e} not possible in evaluteSync`);return s}},Select:{executeSync({alternatives:e,fallback:t},r){for(let t of e){let e=z(t.condition,r);if("boolean"===e.type&&!0===e.data)return z(t.value,r)}return t?z(t,r):n.M_},async executeAsync({alternatives:e,fallback:t},r){for(let t of e){let e=await q(t.condition,r);if("boolean"===e.type&&!0===e.data)return q(t.value,r)}return t?q(t,r):n.M_}},InRange:V(({base:e,left:t,right:r})=>[e,t,r],({isInclusive:e},t,r,i)=>{let s=T(t.data,r.data);if(null===s)return n.M_;let a=T(t.data,i.data);return null===a?n.M_:e?s>=0&&a<=0?n.Nz:n.oG:s>=0&&a<0?n.Nz:n.oG}),Filter:W(({base:e,expr:t})=>({array:e,inner:t}),function*(e,t,r){!0===r&&(yield t)}),Projection:{executeSync({base:e,expr:t},r){let i=z(e,r);return"object"!==i.type?n.M_:z(t,r.createNested(i))},async executeAsync({base:e,expr:t},r){let i=await q(e,r);return"object"!==i.type?n.M_:q(t,r.createNested(i))}},FuncCall:{executeAsync({namespace:e,name:t,args:r},n){let i=F[e]?.[t];if(!i)throw Error(`Unknown function: ${e}::${t}`);return i.executeAsync(r,n)},executeSync({namespace:e,name:t,args:r},n){let i=F[e]?.[t];if(!i)throw Error(`Unknown function: ${e}::${t}`);return i.executeSync(r,n)}},PipeFuncCall:{async executeAsync({name:e,base:t,args:r},i){let s=M[e];if(!s)throw Error(`Unknown pipe function: ${e}`);let a=await q(t,i);return"stream"!==a.type&&"array"!==a.type?n.M_:s.executeAsync({base:a,args:r},i)},executeSync({name:e,base:t,args:r},i){let s=M[e];if(!s)throw Error(`Unknown pipe function: ${e}`);let a=z(t,i);return"array"!==a.type?n.M_:s.executeSync({base:a,args:r},i)}},AccessAttribute:V(({base:e})=>[e||{type:"This"}],({name:e},t)=>"object"===t.type&&t.data.hasOwnProperty(e)?(0,n.ss)(t.data[e]):n.M_),AccessElement:V(({base:e})=>[e],({index:e},t)=>{if("array"!==t.type)return n.M_;let r=t.data,i=e<0?e+r.length:e;return(0,n.ss)(r[i])}),Slice:V(({base:e})=>[e],({left:e,right:t,isInclusive:r},i)=>{if("array"!==i.type)return n.M_;let s=i.data,a=e,o=t;return a<0&&(a=s.length+a),o<0&&(o=s.length+o),r&&o++,a<0&&(a=0),o<0&&(o=0),(0,n.ci)(s.slice(a,o))}),Deref:{executeSync({base:e},t){let r=z(e,t);if("object"!==r.type)return n.M_;let i=r.data._ref;if("string"!=typeof i)return n.M_;if(t.context.dereference){let e=t.context.dereference({_ref:i}
42);if(e&&"object"==typeof e&&"then"in e)throw Error("Dereference returned promise in synchronous mode");return(0,n.ss)(e)}if("array"!==t.source.type)return n.M_;for(let e of t.source.data)if(e&&"object"==typeof e&&"_id"in e&&i===e._id)return(0,n.ss)(e);return n.M_},async executeAsync({base:e},t){let r=await q(e,t);if(!t.source.isArray()||"object"!==r.type)return n.M_;let i=r.data._ref;if("string"!=typeof i)return n.M_;if(t.context.dereference)return(0,n.ss)(await t.context.dereference({_ref:i}));for await(let e of t.source)if("object"===e.type&&i===e.data._id)return e;return n.M_}},Value:B(({value:e})=>(0,n.ss)(e)),Group:{executeSync:({base:e},t)=>z(e,t),executeAsync:({base:e},t)=>q(e,t)},Object:{executeSync({attributes:e},t){let r={};for(let n of e){let e=n.type;switch(n.type){case"ObjectAttributeValue":{let e=z(n.value,t);r[n.name]=e.data;break}case"ObjectConditionalSplat":{let e=z(n.condition,t);if("boolean"!==e.type||!1===e.data)continue;let i=z(n.value,t);"object"===i.type&&Object.assign(r,i.data);break}case"ObjectSplat":{let e=z(n.value,t);"object"===e.type&&Object.assign(r,e.data);break}default:throw Error(`Unknown node type: ${e}`)}}return(0,n.ss)(r)},async executeAsync({attributes:e},t){let r={};for(let n of e){let e=n.type;switch(n.type){case"ObjectAttributeValue":{let e=await q(n.value,t);r[n.name]=await e.get();break}case"ObjectConditionalSplat":{let e=await q(n.condition,t);if("boolean"!==e.type||!1===e.data)continue;let i=await q(n.value,t);"object"===i.type&&Object.assign(r,i.data);break}case"ObjectSplat":{let e=await q(n.value,t);"object"===e.type&&Object.assign(r,e.data);break}default:throw Error(`Unknown node type: ${e}`)}}return(0,n.ss)(r)}},Array:{executeSync({elements:e},t){let r=[];for(let n of e){let e=z(n.value,t);if(n.isSplat){if("array"===e.type)for(let t of e.data)r.push(t)}else r.push(e.data)}return(0,n.ci)(r)},executeAsync:async({elements:e},t)=>new n.GL(async function*(){for(let r of e){let e=await q(r.value,t);if(r.isSplat){if(e.isArray())for await(let t of e)yield t}else yield e}})},Tuple:B(()=>{throw Error("tuples can not be evaluated")}),Or:V(({left:e,right:t})=>[e,t],(e,t,r)=>"boolean"===t.type&&!0===t.data||"boolean"===r.type&&!0===r.data?n.Nz:"boolean"!==t.type||"boolean"!==r.type?n.M_:n.oG),And:V(({left:e,right:t})=>[e,t],(e,t,r)=>"boolean"===t.type&&!1===t.data||"boolean"===r.type&&!1===r.data?n.oG:"boolean"!==t.type||"boolean"!==r.type?n.M_:n.Nz),Not:V(({base:e})=>[e],(e,t)=>"boolean"!==t.type?n.M_:t.data?n.oG:n.Nz),Neg:V(({base:e})=>[e],(e,t)=>"number"!==t.type?n.M_:(0,n.oB)(-t.data)),Pos:V(({base:e})=>[e],(e,t)=>"number"!==t.type?n.M_:(0,n.oB)(t.data)),Asc:B(()=>n.M_),Desc:B(()=>n.M_),ArrayCoerce:{executeSync({base:e},t){let r=z(e,t);return r.isArray()?r:n.M_},async executeAsync({base:e},t){let r=await q(e,t);return r.isArray()?r:n.M_}},Map:W(({base:e,expr:t})=>({array:e,inner:t}),function*(e,t,r){yield r},{hidden:!0}),FlatMap:W(({base:e,expr:t})=>({array:e,inner:t}),function*(e,t,r){if(Array.isArray(r))for(let e of r)yield e;else yield r},{hidden:!0})};function Y(e,t={}){return q(e,function(e){let t=(0,n.ss)(e.root),r=(0,n.ss)(e.dataset);return new I({...e.params},r,t,{timestamp:e.timestamp||new Date,identity:void 0===e.identity?"me":e.identity,sanity:e.sanity,after:e.after?(0,n.ss)(e.after):null,before:e.before?(0,n.ss)(e.before):null,dereference:e.dereference},null)}(t))}},42395:e=>{e.exports=function(e,t){return e>t}},42763:(e,t,r)=>{"use strict";r.d(t,{N:()=>l});var n=r(28167),i=r(2297),s=r(84841),a=r(2782),o={connector:function(){return new n.B}};function l(e,t){void 0===t&&(t=o);var r=t.connector;return(0,s.N)(function(t,n){var s=r();(0,i.Tg)(e(new a.c(function(e){return s.subscribe(e)}))).subscribe(n),n.add(t.subscribe(s))})}},42838:(e,t,r)=>{"use strict";let n=r(98520);e.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}},42840:(e,t,r)=>{"use strict";r.d(t,{s:()=>o});var n=r(32785),i=r(87809),s=r(87865),a=r(15840);let o=(0,n._C)(()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{var r,n;if(r=t,(n=e)&&(function(e,t){let r=e.message,n=t.message;return(!!r||!!n)&&(!r||!!n)&&(!!r||!n)&&r===n&&!!u(e,t)&&!!l(e,t)&&!0}(r,n)||function(e,t){let r=c(t),n=c(e);return!!r&&!!n&&r.type===n.type&&r.value===n.value&&!!u(e,t)&&!!l(e,t)}(r,n)))return i.T&&s.vF.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}});function l(e,t){let r=(0,a.RV)(e),n=(0,a.RV)(t);if(!r&&!n)return!0;
42if(r&&!n||!r&&n||n.length!==r.length)return!1;for(let e=0;e<n.length;e++){let t=n[e],i=r[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 r=e.fingerprint,n=t.fingerprint;if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;try{return r.join("")===n.join("")}catch(e){return!1}}function c(e){return e.exception&&e.exception.values&&e.exception.values[0]}},43166:(e,t,r)=>{"use strict";let n=r(98520);e.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))},43549:e=>{e.exports=function(e){for(var t=-1,r=null==e?0:e.length,n=0,i=[];++t<r;){var s=e[t];s&&(i[n++]=s)}return i}},43613:(e,t,r)=>{var n=r(78903),i=r(12387),s=r(40767),a=r(58516),o=r(97423),l=r(91187),u=Math.min;e.exports=function(e,t,r){for(var c=r?s:i,d=e[0].length,h=e.length,f=h,p=Array(h),m=1/0,g=[];f--;){var y=e[f];f&&t&&(y=a(y,o(t))),m=u(y.length,m),p[f]=!r&&(t||d>=120&&y.length>=120)?new n(f&&y):void 0}y=e[0];var b=-1,v=p[0];n:for(;++b<d&&g.length<m;){var _=y[b],w=t?t(_):_;if(_=r||0!==_?_:0,!(v?l(v,w):c(g,w,r))){for(f=h;--f;){var x=p[f];if(!(x?l(x,w):c(e[f],w,r)))continue n}v&&v.push(w),g.push(_)}}return g}},43620:(e,t,r)=>{"use strict";r.d(t,{K:()=>s});var n=r(6197),i=r(89956);function s(e,t){return(0,i.T)(t)?(0,n.n)(function(){return e},t):(0,n.n)(function(){return e})}},43738:(e,t,r)=>{"use strict";r.d(t,{E:()=>c});var n=r(13220),i=r(84841),s=r(81451),a=r(2297),o=r(56062),l=r(624),u=r(61297);function c(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=(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}),h=!1,f=function(t){(0,a.Tg)(e[t]).subscribe((0,s._)(i,function(e){c[t]=e,!h&&!d[t]&&(d[t]=!0,(h=d.every(o.D))&&(d=null))},l.l))},p=0;p<u;p++)f(p);t.subscribe((0,s._)(i,function(e){if(h){var t=(0,n.fX)([e],(0,n.zs)(c));i.next(r?r.apply(void 0,(0,n.fX)([],(0,n.zs)(t))):t)}}))})}},44372:(e,t,r)=>{"use strict";r.d(t,{JR:()=>S,_G:()=>h,gB:()=>m,gl:()=>x,m$:()=>u});var n=r(60266),i=r(36279),s=r(39443);function a(e,t,r){let n=e.slice();return n.splice(r<0?n.length+r:r,0,n.splice(t,1)[0]),n}function o(e){return null!==e&&e>=0}let l={scaleX:1,scaleY:1},u=e=>{var t;let{rects:r,activeNodeRect:n,activeIndex:i,overIndex:s,index:a}=e,o=null!=(t=r[i])?t:n;if(!o)return null;let u=function(e,t,r){let n=e[t],i=e[t-1],s=e[t+1];return n&&(i||s)?r<t?i?n.left-(i.left+i.width):s.left-(n.left+n.width):s?s.left-(n.left+n.width):n.left-(i.left+i.width):0}(r,a,i);if(a===i){let e=r[s];return e?{x:i<s?e.left+e.width-(o.left+o.width):e.left-o.left,y:0,...l}:null}return a>i&&a<=s?{x:-o.width-u,y:0,...l}:a<i&&a>=s?{x:o.width+u,y:0,...l}:{x:0,y:0,...l}},c=e=>{let{rects:t,activeIndex:r,overIndex:n,index:i}=e,s=a(t,n,r),o=t[i],l=s[i];return l&&o?{x:l.left-o.left,y:l.top-o.top,scaleX:l.width/o.width,scaleY:l.height/o.height}:null},d={scaleX:1,scaleY:1},h=e=>{var t;let{activeIndex:r,activeNodeRect:n,index:i,rects:s,overIndex:a}=e,o=null!=(t=s[r])?t:n;if(!o)return null;if(i===r){let e=s[a];return e?{x:0,y:r<a?e.top+e.height-(o.top+o.height):e.top-o.top,...d}:null}let l=function(e,t,r){let n=e[t],i=e[t-1],s=e[t+1];return n?r<t?i?n.top-(i.top+i.height):s?s.top-(n.top+n.height):0:s?s.top-(n.top+n.height):i?n.top-(i.top+i.height):0:0}(s,i,r);return i>r&&i<=a?{x:0,y:-o.height-l,...d}:i<r&&i>=a?{x:0,y:o.height+l,...d}:{x:0,y:0,...d}},f="Sortable",p=n.createContext({activeIndex:-1,containerId:f,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:c,disabled:{draggable:!1,droppable:!1}});function m(e){let{children:t,id:r,items:a,strategy:o=c,disabled:l=!1}=e,{active:u,dragOverlay:d,droppableRects:h,over:m,measureDroppableContainers:g}=(0,i.fF)(),y=(0,s.YG)(f,r),b=null!==d.rect,v=(0,n.useMemo)(()=>a.map(e=>"object"==typeof e&&"id"in e?e.id:e),[a]),_=null!=u,w=u?v.indexOf(u.id):-1,x=m?v.indexOf(m.id):-1,k=(0,n.useRef)(v),E=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}(v,k.current),S=-1!==x&&-1===w||E,A="boolean"==typeof l?{draggable:l,droppable:l}:l;(0,s.Es)(()=>{E&&_&&g(v)},[E,v,_,g]),(0,n.useEffect)(()=>{k.current=v},[v]);let O=(0,n.useMemo)(()=>({activeIndex:w,containerId:y,disabled:A,disableTransforms:S,items:v,overIndex:x,useDragOverlay:b,sortedRects:v.reduce((e,t,r)=>{let n=h.get(t);return n&&(e[r]=n),e},Array(v.length)),strategy:o}),[w,y,A.draggable,A.droppable,S,v,x,h,b,o]);return n.createElement(p.Provider,{value:O},t)}let g=e=>{let{id:t,items:r,activeIndex:n,overIndex:i}=e;return a(r,n,i).indexOf(t)},y=e=>{let{containerId:t,isSorting:r,wasDragging:n,index:i,items:s,newIndex:a,previousItems:o,previousContainerId:l,transition:u}=e;return!!u&&!!n&&(o===s||i!==a)&&(!!r||a!==i&&t===l)},b={duration:200,easing:"ease"},v="transform",_=s.Ks.Transition.toString({property:v,duration:0,easing:"linear"}),w={roleDescription:"sortable"};function x(e){var t,r,a,l;let{animateLayoutChanges:u=y,attributes:c,disabled:d,data:h,getNewIndex:f=g,id:m,strategy:x,resizeObserverConfig:k,transition:E=b}=e,{items:S,containerId:A,activeIndex:O,disabled:C,disableTransforms:T,sortedRects:I,overIndex:D,useDragOverlay:j,strategy:R}=(0,n.useContext)(p),N=(t=d,r=C,"boolean"==typeof t?{draggable:t,droppable:!1}:{draggable:null!=(a=null==t?void 0:t.draggable)?a:r.draggable,droppable:null!=(l=null==t?void 0:t.droppable)?l:r.droppable}),$=S.indexOf(m),M=(0,n.useMemo)(()=>({sortable:{containerId:A,index:$,items:S},...h}),[A,h,$,S]),F=(0,n.useMemo)(()=>S.slice(S.indexOf(m)),[S,m]),{rect:P,node:L,isOver:z,setNodeRef:q}=(0,i.zM)({id:m,data:M,disabled:N.droppable,resizeObserverConfig:{updateMeasurementsFor:F,...k}}),{active:U,activatorEvent:B,activeNodeRect:V,attributes:H,setNodeRef:G,listeners:W,isDragging:Z,over:Y,setActivatorNodeRef:K,transform:J}=(0,i.PM)({id:m,data:M,attributes:{...w,...c},disabled:N.draggable}),X=(0,s.jn)(q,G),Q=!!U,ee=Q&&!T&&o(O)&&o(D),et=!j&&Z,er=et&&ee?J:null,en=ee?null!=er?er:(null!=x?x:R)({rects:I,activeNodeRect:V,activeIndex:O,overIndex:D,index:$}):null,ei=o(O)&&o(D)?f({id:m,items:S,activeIndex:O,overIndex:D}):$,es=null==U?void 0:U.id,ea=(0,n.useRef)({activeId:es,items:S,newIndex:ei,containerId:A}),eo=S!==ea.current.items,el=u({active:U,containerId:A,isDragging:Z,isSorting:Q,id:m,index:$,items:S,newIndex:ea.current.newIndex,previousItems:ea.current.items,previousContainerId:ea.current.containerId,transition:E,wasDragging:null!=ea.current.activeId}),eu=function(e){let{disabled:t,index:r,node:a,rect:o}
42=e,[l,u]=(0,n.useState)(null),c=(0,n.useRef)(r);return(0,s.Es)(()=>{if(!t&&r!==c.current&&a.current){let e=o.current;if(e){let t=(0,i.Sj)(a.current,{ignoreTransform:!0}),r={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(r.x||r.y)&&u(r)}}r!==c.current&&(c.current=r)},[t,r,a,o]),(0,n.useEffect)(()=>{l&&u(null)},[l]),l}({disabled:!el,index:$,node:L,rect:P});return(0,n.useEffect)(()=>{Q&&ea.current.newIndex!==ei&&(ea.current.newIndex=ei),A!==ea.current.containerId&&(ea.current.containerId=A),S!==ea.current.items&&(ea.current.items=S)},[Q,ei,A,S]),(0,n.useEffect)(()=>{if(es===ea.current.activeId)return;if(es&&!ea.current.activeId){ea.current.activeId=es;return}let e=setTimeout(()=>{ea.current.activeId=es},50);return()=>clearTimeout(e)},[es]),{active:U,activeIndex:O,attributes:H,data:M,rect:P,index:$,newIndex:ei,items:S,isOver:z,isSorting:Q,isDragging:Z,listeners:W,node:L,overIndex:D,over:Y,setNodeRef:X,setActivatorNodeRef:K,setDroppableNodeRef:q,setDraggableNodeRef:G,transform:null!=eu?eu:en,transition:eu||eo&&ea.current.newIndex===$?_:(!et||(0,s.kx)(B))&&E&&(Q||el)?s.Ks.Transition.toString({...E,property:v}):void 0}}function k(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 E=[i.vL.Down,i.vL.Right,i.vL.Up,i.vL.Left],S=(e,t)=>{let{context:{active:r,collisionRect:n,droppableRects:a,droppableContainers:o,over:l,scrollableAncestors:u}}=t;if(E.includes(e.code)){if(e.preventDefault(),!r||!n)return;let t=[];o.getEnabled().forEach(r=>{if(!r||null!=r&&r.disabled)return;let s=a.get(r.id);if(s)switch(e.code){case i.vL.Down:n.top<s.top&&t.push(r);break;case i.vL.Up:n.top>s.top&&t.push(r);break;case i.vL.Left:n.left>s.left&&t.push(r);break;case i.vL.Right:n.left<s.left&&t.push(r)}});let c=(0,i.y$)({active:r,collisionRect:n,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=o.get(r.id),t=o.get(d),l=t?a.get(t.id):null,c=null==t?void 0:t.node.current;if(c&&l&&e&&t){let r=(0,i.sl)(c).some((e,t)=>u[t]!==e),a=A(e,t),o=function(e,t){return!!k(e)&&!!k(t)&&!!A(e,t)&&e.data.current.sortable.index<t.data.current.sortable.index}(e,t),d=r||!a?{x:0,y:0}:{x:o?n.width-l.width:0,y:o?n.height-l.height:0},h={x:l.left,y:l.top};return d.x&&d.y?h:(0,s.Re)(h,d)}}}};function A(e,t){return!!k(e)&&!!k(t)&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}},44466:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t}},44516:(e,t,r)=>{"use strict";r.d(t,{ol:()=>W,q:()=>K});var n,i=r(87696),s=Object.defineProperty,a=Object.defineProperties,o=Object.getOwnPropertyDescriptors,l=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,d=(e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,h=(e,t)=>{for(var r in t||(t={}))u.call(t,r)&&d(e,r,t[r]);if(l)for(var r of l(t))c.call(t,r)&&d(e,r,t[r]);return e},f=(e,t)=>a(e,o(t)),p=class{constructor({query:e,schema:t}){this.query=e,this.schema=t}value(){return{schema:this.schema,query:this.query}}nullable(){return new m({query:this.query,schema:this.schema.nullable()})}},m=class extends p{constructor({schema:e,query:t}){super({schema:e.nullable(),query:t})}};function g(e){return e instanceof p}function y(e){return Array.isArray(e)}function b(e){return Object.entries(e).reduce((e,[t,r])=>{let n="";return(n=g(r)?`"${t}": ${r.query}`:y(r)?`"${t}": ${r[0]}`:t)&&e.push(n),e},[])}function v(e){return i.z.object(Object.entries(e).reduce((e,[t,r])=>(g(r)?e[t]=r.schema:y(r)?e[t]=r[1]:r instanceof i.z.ZodType&&(e[t]=r),e),{}))}var _=(e,t,r,n)=>{let s=b(r);if(n){let e=Object.entries(n).reduce((e,[t,r])=>(e.push(`${t} => { ${b(r).join(", ")} }`),e),[]);s.push(`...select(${e.join(", ")})`)}let a=(()=>{let e=Object.values(n||{}),s=v(r),a=[...e.map(e=>s.merge(v(e))),s],o=a.length>1?i.z.union([a[0],a[1],...a.slice(2)]):a[0];return t instanceof i.z.ZodArray?i.z.array(o):o})();return a instanceof i.z.ZodArray?new C({query:e+`{${s.join(", ")}}`,schema:a}):new A({query:e+`{${s.join(", ")}}`,schema:a})},w=e=>{let t=e=>g(e)?e.query:y(e)?e[0]:`{ ${b(e).join(", ")} }`,{default:r}=e,n=Object.entries(((e,t)=>{var r={};for(var n in e)u.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&l)for(var n of l(e))0>t.indexOf(n)&&c.call(e,n)&&(r[n]=e[n]);return r})(e,["default"])).reduce((e,[r,n])=>(e.push(`${r} => ${t(n)}`),e),[]);return r&&n.push(t(r)),new p({query:`select(${n.join(", ")})`,schema:(()=>{let t=Object.values(e).map(e=>g(e)?e.schema:y(e)?e[1]:v(e));return e.default?i.z.union(t):i.z.union([i.z.null(),...t])})()})};function x(e){let t=e.options.map(e=>"shape"in e?e:"options"in e?x(e):i.z.record(i.z.string(),i.z.never()));return i.z.union(t)}i.z.record(i.z.string(),i.z.never());var k=e=>(0,i.vk)(e=>null===e?void 0:e,e);function E(e){return e instanceof i.z.ZodType?k(e):Object.entries(e).reduce((e,[t,r])=>(r instanceof i.z.ZodType?e[t]=k(r):Array.isArray(r)?e[t]=[r[0],k(r[1])]:e[t]=r,e),{})}function S(e){return e?Object.entries(e).reduce((e,[t,r])=>(e[t]=E(r),e),{}):e}var A=class extends p{constructor(e){super(e)}filter(e=""){return this.query+=`[${e}]`,new C({query:this.query,schema:i.z.array(this.schema)})}select(e){let t=g(e)?e:w(e);return new A({query:this.query+`{...${t.query}}`,schema:x(t.schema)})}grab(e,t){return _(this.query,this.schema,e,t)}grab$(e,t){return _(this.query,this.schema,E(e),t?S(t):t)}grabOne(e,t){return new A({query:this.query+`.${e}`,schema:t||i.z.unknown()})}grabOne$(e,t){return new A({query:this.query+`.${e}`,schema:E(t||i.z.unknown())})}deref(){return new O(f(h({},this.value()),{query:this.query+"->"}))}},O=class extends A{constructor(e){super(f(h({},e),{schema:i.z.unknown()}))}filter(e=""){return this.query+=`[${e}]`,new T(h({},this.value()))}filterByType(e){return this.filter(`_type == '${e}'`)}},C=class extends p{constructor(e){super(e)}select(e){let t=g(e)?e:w(e);return new C({query:this.query+`{...${t.query}}`,schema:i.z.array(x(t.schema))})}filter(e=""){return new C(f(h({},this.value()),{query:this.query+`[${e}]`}))}filterByType(e){return this.filter(`_type == '${e}'`)}grab(e,t){return _(this.query,this.schema,e,t)}grab$(e,t){return _(this.query,this.schema,E(e),t?S(t):t)}grabOne(e,t){return new C({query:this.query+`.${e}`,schema:i.z.array(t||i.z.unknown())})}grabOne$(e,t){return new C({query:this.query+`.${e}`,schema:i.z.array(E(t||i.z.unknown()))})}order(...e){return new C(f(h({},this.value()),{query:this.query+`|order(${e.join(", ")})`}))}score(...e){return new C(f(h({},this.value()),{query:this.query+`|score(${e.join(", ")})`}))}slice(e,t){return(this.query+=`[${e}${"number"==typeof t?`..${t}`:""}]`,void 0===t)?new A(f(h({},this.value()),{schema:this.schema.element})):this}},T=class extends C{constructor(e){super(f(h({},e),{schema:i.z.array(i.z.unknown())}))}deref(){return this.query+="->",this}};function I(e){return i.z.object({_type:i.z.string(),_key:i.z.string().optional(),children:i.z.array(i.z.object({_key:i.z.string(),_type:i.z.string(),text:i.z.string(),marks:i.z.array(i.z.string()).optional().default([])})),markDefs:i.z.array(e).optional(),style:i.z.string().optional(),listItem:i.z.string().optional(),level:i.z.number().optional()})}var D=i.z.object({_type:i.z.string(),_key:i.z.string()}).catchall(i.z.unknown()),j={string:i.z.string,number:i.z.number,boolean:i.z.boolean,unknown:i.z.unknown,null:i.z.null,undefined:i.z.undefined,date:()=>i.z.preprocess(e=>{if("string"==typeof e||e instanceof Date)return new Date(e)},i.z.date()),literal:i.z.literal,union:i.z.union,array:i.z.array,object:i.z.object,slug:e=>[`${e}.current`,i.z.string()],contentBlock:function({markDefs:e}={}){return I(e||D)},contentBlocks:function({markDefs:e}={}){return i.z.array(I(e||D))}},R={_ref:j.string(),_type:j.literal("reference")},N={crop:j.object({top:j.number(),bottom:j.number(),left:j.number(),right:j.number()}).nullable()},$={hotspot:j.object({x:j.number(),y:j.number(),height:j.number(),width:j.number()}).nullable()},M={_key:j.string().nullable(),_type:j.string()},F={_id:j.string(),_type:j.union([j.literal("sanity.imageAsset"),j.literal("sanity.fileAsset")]),_rev:j.string(),extension:j.string(),mimeType:j.string(),originalFilename:j.string(),path:j.string(),sha1hash:j.string(),size:j.number(),url:j.string(),_updatedAt:j.string().nullable()},P={_type:j.literal("sanity.imagePaletteSwatch"),background:j.string().optional().nullable(),foreground:j.string().optional().nullable(),population:j.number().optional().nullable(),title:j.string().optional().nullable()},L={dimensions:j.object({_type:j.literal("sanity.imageDimensions").optional(),aspectRatio:j.number(),height:j.number(),width:j.number()}).nullable()},z={location:j.object({_type:j.literal("geopoint"),lat:j.number(),lng:j.number()}).nullable()},q={lqip:j.string()},U={isOpaque:j.boolean().nullable()},B={hasAlpha:j.boolean().nullable()},V={blurHash:j.string().nullable()},H=()=>j.object(P).nullable(),G={palette:j.object({darkMuted:H(),darkVibrant:H(),dominant:H(),lightMuted:H(),lightVibrant:H(),muted:H(),vibrant:H()})},W=e=>({query:t,schema:r}
42,...n)=>e(t,...n).then(e=>{try{return r.parse(e)}catch(t){if(t instanceof i.z.ZodError)throw new Z(t,e);throw t}}),Z=class extends Error{constructor(e,t){super(`Error parsing:
43${e.errors.map(e=>`	\`result${e.path.reduce((e,t)=>"string"==typeof t?`${e}.${t}`:`${e}[${t}]`,"")}\`: ${e.message}`).join("\n")}`),this.err=e,this.zodError=e,this.rawResponse=t}};function Y(e,{isArray:t=!1}={}){return t?new T({query:e}):new O({query:e})}n=function(e,t){let{withCrop:r,withHotspot:n,additionalFields:i,isList:s,withAsset:a}=t||{},o=new O({query:"asset"});a&&(o=o.deref());let l=e=>"function"==typeof(null==a?void 0:a.includes)&&a.includes(e),u=Object.assign({},l("dimensions")&&L,l("location")&&z,l("lqip")&&q,l("palette")&&G,l("isOpaque")&&U,l("hasAlpha")&&B,l("blurHash")&&V),c=Object.assign({},!a&&R,l("base")&&F,Object.keys(u).length>0&&{metadata:new O({query:"metadata"}).grab(u)}),d=Object.assign({},M,{asset:o.grab(c)},!0===r?N:{},!0===n?$:{},i||{});return!0===s?new O({query:e}).filter().grab(d):new O({query:e}).grab(d)},Y.sanityImage=function(...e){return console.warn("`q.sanityImage` has been deprecated in favor of importing `sanityImage` directly from `groqd`. `q.sanityImage` will be removed in future versions."),n(...e)},Y.select=w,Object.assign(Y,j);var K=Y},44854:(e,t,r)=>{"use strict";function n(e){return t=>{let r=(e?Math[e]:Math.trunc)(t);return 0===r?0:r}}r.d(t,{u:()=>n})},45390:(e,t,r)=>{var n=r(70144),i=r(32950),s=r(42725);e.exports=function(e){return(s(e)?n:i)(e)}},45715:(e,t,r)=>{"use strict";function n(e,t,r){return Math.min(Math.max(e,r),t)}r.d(t,{Uv:()=>v,W0:()=>w,a:()=>_,e$:()=>g});class i extends Error{constructor(e){super(`Failed to parse color: "${e}"`)}}function s(e){if("string"!=typeof e)throw new i(e);if("transparent"===e.trim().toLowerCase())return[0,0,0,0];let t=e.trim();t=f.test(e)?function(e){let t=o[function(e){let t=5381,r=e.length;for(;r;)t=33*t^e.charCodeAt(--r);return(t>>>0)%2341}(e.toLowerCase().trim())];if(!t)throw new i(e);return`#${t}`}(e):e;let r=u.exec(t);if(r){let e=Array.from(r).slice(1);return[...e.slice(0,3).map(e=>parseInt(l(e,2),16)),parseInt(l(e[3]||"f",2),16)/255]}let s=c.exec(t);if(s){let e=Array.from(s).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=h.exec(t);if(p){let[t,r,s,a]=Array.from(p).slice(1).map(parseFloat);if(n(0,100,r)!==r||n(0,100,s)!==s)throw new i(e);return[...m(t,r,s),Number.isNaN(a)?1:a]}throw new i(e)}let a=e=>parseInt(e.replace(/_/g,""),36),o="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 r=a(t.substring(0,3)),n=a(t.substring(3)).toString(16),i="";for(let e=0;e<6-n.length;e++)i+="0";return e[r]=`${i}${n}`,e},{}),l=(e,t)=>
43Array.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"),h=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,f=/^[a-z]+$/i,p=e=>Math.round(255*e),m=(e,t,r)=>{let n=r/100;if(0===t)return[n,n,n].map(p);let i=(e%360+360)%360/60,s=t/100*(1-Math.abs(2*n-1)),a=s*(1-Math.abs(i%2-1)),o=0,l=0,u=0;i>=0&&i<1?(o=s,l=a):i>=1&&i<2?(o=a,l=s):i>=2&&i<3?(l=s,u=a):i>=3&&i<4?(l=a,u=s):i>=4&&i<5?(o=a,u=s):i>=5&&i<6&&(o=s,u=a);let c=n-s/2;return[o+c,l+c,u+c].map(p)};function g(e,t){var r;let[i,a,o,l]=function(e){let[t,r,n,i]=s(e).map((e,t)=>3===t?e:e/255),a=Math.max(t,r,n),o=Math.min(t,r,n),l=(a+o)/2;if(a===o)return[0,0,l,i];let u=a-o;return[60*(t===a?(r-n)/u+6*(r<n):r===a?(n-t)/u+2:(t-r)/u+4),l>.5?u/(2-a-o):u/(a+o),l,i]}(e);return r=o-t,`hsla(${(i%360).toFixed()}, ${n(0,100,100*a).toFixed()}%, ${n(0,100,100*r).toFixed()}%, ${parseFloat(n(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[r,n,i]=s(e);return .2126*t(r)+.7152*t(n)+.0722*t(i)}let b={decorative:1.5,readable:3,aa:4.5,aaa:7};function v(e,t="aa",r="#fff"){return function(e,t){let r=y(e),n=y(t);return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)}(e,r)<b[t]}function _(e,t){return g(e,-t)}function w(e){return y(e)>.179?"#000":"#fff"}},45872:(e,t,r)=>{var n=r(37864);e.exports=function(e,t,r){var i=null==e?void 0:n(e,t);return void 0===i?r:i}},45936:(e,t,r)=>{"use strict";r.d(t,{B:()=>d});var n=r(59888),i=r(35508),s=r(33241),a=r(13177),o=r(30360),l=r(86337),u=r(76919),c=r(10821);function d(e,t,r){var d,h;let f,p=(0,i.q)(),m=null!=(h=null!=(d=null==r?void 0:r.locale)?d:p.locale)?h:n.c,g=(0,o.z)(e,t);if(isNaN(g))throw RangeError("Invalid time value");let y=Object.assign({},r,{addSuffix:null==r?void 0:r.addSuffix,comparison:g}),[b,v]=(0,a.x)(null==r?void 0:r.in,...g>0?[t,e]:[e,t]),_=(0,c.O)(v,b),w=Math.round((_-((0,s.G)(v)-(0,s.G)(b))/1e3)/60);if(w<2)if(null==r?void 0:r.includeSeconds)if(_<5)return m.formatDistance("lessThanXSeconds",5,y);else if(_<10)return m.formatDistance("lessThanXSeconds",10,y);else if(_<20)return m.formatDistance("lessThanXSeconds",20,y);else if(_<40)return m.formatDistance("halfAMinute",0,y);else if(_<60)return m.formatDistance("lessThanXMinutes",1,y);else return m.formatDistance("xMinutes",1,y);else if(0===w)return m.formatDistance("lessThanXMinutes",1,y);else return m.formatDistance("xMinutes",w,y);if(w<45)return m.formatDistance("xMinutes",w,y);if(w<90)return m.formatDistance("aboutXHours",1,y);if(w<l.F6){let e=Math.round(w/60);return m.formatDistance("aboutXHours",e,y)}if(w<2520)return m.formatDistance("xDays",1,y);else if(w<l.Nw){let e=Math.round(w/l.F6);return m.formatDistance("xDays",e,y)}else if(w<2*l.Nw)return f=Math.round(w/l.Nw),m.formatDistance("aboutXMonths",f,y);if((f=(0,u.W)(v,b))<12){let e=Math.round(w/l.Nw);return m.formatDistance("xMonths",e,y)}{let e=f%12,t=Math.trunc(f/12);return e<3?m.formatDistance("aboutXYears",t,y):e<9?m.formatDistance("overXYears",t,y):m.formatDistance("almostXYears",t+1,y)}}},46820:(e,t,r)=>{"use strict";r.d(t,{u:()=>i});var n=r(27381);function i(e){return(0,n.T)(function(){return e})}},46939:(e,t,r)=>{var n=r(70368),i=1/0;e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}},47479:(e,t,r)=>{e.exports=r(43960)(r(36169),"Set")},47549:(e,t,r)=>{var n=r(79845),i=r(19528),s=r(42725),a=n?n.isConcatSpreadable:void 0;e.exports=function(e){return s(e)||i(e)||!!(a&&e&&e[a])}},47638:(e,t,r)=>{var n=r(70368),i=Math.floor,s=Math.min;e.exports=function(e,t,r,a){var o=0,l=null==e?0:e.length;if(0===l)return 0;for(var u=(t=r(t))!=t,c=null===t,d=n(t),h=void 0===t;o<l;){var f=i((o+l)/2),p=r(e[f]),m=void 0!==p,g=null===p,y=p==p,b=n(p);if(u)var v=a||y;else v=h?y&&(a||m):c?y&&m&&(a||!g):d?y&&m&&!g&&(a||!b):!g&&!b&&(a?p<=t:p<t);v?o=f+1:l=f}return s(l,0xfffffffe)}},47699:(e,t,r)=>{var n=r(18053);e.exports=function(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}}
43,48115:(e,t,r)=>{var n=r(47638),i=r(30734),s=r(70368);e.exports=function(e,t,r){var a=0,o=null==e?a:e.length;if("number"==typeof t&&t==t&&o<=0x7fffffff){for(;a<o;){var l=a+o>>>1,u=e[l];null!==u&&!s(u)&&(r?u<=t:u<t)?a=l+1:o=l}return o}return n(e,t,i,r)}},48198:(e,t,r)=>{"use strict";r.d(t,{A_:()=>h,nU:()=>f});var n=r(19972),i=r(86534);r(97610);let s=/^[a-z-A-Z0-9._-]+$/,a="drafts.",o="versions.";function l(e){if(0===e.length)throw Error("Must be a non-empty string");if(!s.test(e))throw Error(`Not a valid document ID: "${e}" \u2013 Must match the ${s} RegExp`);return e}function u(e){if(!e.startsWith(a))throw Error(`Not a valid draft ID: "${e}" \u2013 must start with "${a}"`);if(e.length===a.length)throw Error(`Not a valid draft ID: "${e}" \u2013 must have at least one character followed by "${a}"`);return e}function c(e){if(!e.startsWith(o))throw Error(`Not a valid version ID: "${e}" \u2013 must start with "${o}"`);if(e.length===o.length)throw Error(`Not a valid version ID: "${e}" \u2013 must have at least one character followed by "${o}"`);let[,t,...r]=e.split(".");if(!t||!s.test(t))throw Error(`Not a valid version ID: "${e}" \u2013 VERSION must match the ${s} RegExp in versions.[VERSION].id`);if(0===r.length)throw Error(`Not a valid version ID: "${e}" \u2013 missing document ID in versions.bundle.[ID]`);if("drafts"===t||"versions"===t)throw Error(`Not a valid version ID: "${e}" \u2013 invalid VERSION "${t}" in versions.[VERSION].id`);return e}function d(e){if(e.startsWith(a)||e.startsWith(o))throw Error(`Not a valid published ID: "${e}" \u2013 cannot start with "${a}" or "${o}"`);return e}function h(e){return e.startsWith(o)}function f(e){let[,t]=e.split(".");return t}(0,n.L8)(e=>{l(e);let[t,r]=i([d,u,c].map(t=>(function(e){try{var t;return t=e(),{success:!0,value:t}}catch(e){return{success:!1,error:e instanceof Error?e:Error(String(e))}}})(()=>t(e))),e=>e.success);if(t.length>0)return e;if(r.length>0)throw AggregateError(r.map(e=>e.error),`Invalid Document ID
44 - ${r.map(e=>e.error.message).join(`
45 - `)}`);return e}),(0,n.L8)(e=>{l(e),u(e)}),(0,n.L8)(e=>{l(e),d(e)}),(0,n.L8)(e=>{l(e),c(e)})},48336:(e,t,r)=>{var n=r(33147),i=r(20232);e.exports=function(e){return i(e)&&"[object Arguments]"==n(e)}},48405:(e,t,r)=>{var n=r(66709);e.exports=function(e,t){for(var r=e.length;r--&&n(t,e[r],0)>-1;);return r}},48644:(e,t,r)=>{var n=r(83141),i=r(38965),s=r(72675),a=r(36383),o=r(46939);e.exports=function(e,t,r,l){if(!a(e))return e;t=i(t,e);for(var u=-1,c=t.length,d=c-1,h=e;null!=h&&++u<c;){var f=o(t[u]),p=r;if("__proto__"===f||"constructor"===f||"prototype"===f)break;if(u!=d){var m=h[f];void 0===(p=l?l(m,f,h):void 0)&&(p=a(m)?m:s(t[u+1])?[]:{})}n(h,f,p),h=h[f]}return e}},48824:(e,t,r)=>{var n=r(18068),i=r(36383),s=r(70368),a=0/0,o=/^[-+]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(s(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=n(e);var r=l.test(e);return r||u.test(e)?c(e.slice(2),r?2:8):o.test(e)?a:+e}},49527:e=>{e.exports=function(e,t,r,n){for(var i=-1,s=null==e?0:e.length;++i<s;){var a=e[i];t(n,a,r(a),e)}return n}},49531:e=>{"use strict";let t=Object.freeze({loose:!0}),r=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:r},49661:(e,t,r)=>{e.exports=window.DOMPurify||(window.DOMPurify=r(23765).default||r(23765))},49999:(e,t,r)=>{var n=r(68729);e.exports=function(e){return n(e)?e:[]}},50240:e=>{e.exports=function(){}},50296:(e,t,r)=>{var n=r(7117),i=r(20232);e.exports=function(e){return i(e)&&"[object Set]"==n(e)}},50375:e=>{e.exports=function(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}}},50394:(e,t,r)=>{"use strict";r.d(t,{U:()=>s});var n=r(84841),i=r(81451);function s(e){return(0,n.N)(function(t,r){var n=!1;t.subscribe((0,i._)(r,function(e){n=!0,r.next(e)},function(){n||r.next(e),r.complete()}))})}},50550:(e,t,r)=>{e.exports=r(1333)(Object.keys,Object)},50836:(e,t,r)=>{"use strict";r.d(t,{r:()=>s});var n=r(13177),i=r(96221);function s(e,t,r){let[s,a]=(0,n.x)(null==r?void 0:r.in,e,t);return+(0,i.o)(s)==+(0,i.o)(a)}},51138:(e,t,r)=>{"use strict";
45let n=r(891);e.exports=(e,t,r)=>n(e,t,"<",r)},51356:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}},51622:(e,t,r)=>{"use strict";r.d(t,{LV:()=>function e(t,r={}){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 n=function(...n){try{let i=n.map(t=>e(t,r));return t.apply(this,i)}catch(e){throw u++,setTimeout(()=>{u--}),(0,s.v4)(t=>{t.addEventProcessor(e=>(r.mechanism&&((0,a.gO)(e,void 0,void 0),(0,a.M6)(e,r.mechanism)),e.extra={...e.extra,arguments:n},e)),(0,o.Cp)(e)}),e}};try{for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}catch(e){}(0,i.pO)(n,t),(0,i.my)(t,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>t.name})}catch(e){}return n},jN:()=>c,jf:()=>l});var n=r(26088),i=r(33806),s=r(23821),a=r(2541),o=r(98592);let l=n.O,u=0;function c(){return u>0}},51995:(e,t,r)=>{"use strict";var n=r(60266),i=r(76353),s="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,o=n.useRef,l=n.useEffect,u=n.useMemo,c=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var d=o(null);if(null===d.current){var h={hasValue:!1,value:null};d.current=h}else h=d.current;var f=a(e,(d=u(function(){function e(e){if(!l){if(l=!0,a=e,e=n(e),void 0!==i&&h.hasValue){var t=h.value;if(i(t,e))return o=t}return o=e}if(t=o,s(a,e))return t;var r=n(e);return void 0!==i&&i(t,r)?(a=e,t):(a=e,o=r)}var a,o,l=!1,u=void 0===r?null:r;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,r,n,i]))[0],d[1]);return l(function(){h.hasValue=!0,h.value=f},[f]),c(f),f}},52125:(e,t,r)=>{"use strict";r.d(t,{n:()=>a});var n=r(84841),i=r(81451),s=r(2297);function a(e,t){return(0,n.N)(function(r,n){var a=null!=t?t:{},o=a.leading,l=void 0===o||o,u=a.trailing,c=void 0!==u&&u,d=!1,h=null,f=null,p=!1,m=function(){null==f||f.unsubscribe(),f=null,c&&(b(),p&&n.complete())}
45,g=function(){f=null,p&&n.complete()},y=function(t){return f=(0,s.Tg)(e(t)).subscribe((0,i._)(n,m,g))},b=function(){if(d){d=!1;var e=h;h=null,n.next(e),p||y(e)}};r.subscribe((0,i._)(n,function(e){d=!0,h=e,f&&!f.closed||(l?b():y(e))},function(){p=!0,c&&d&&f&&!f.closed||n.complete()}))})}},52264:(e,t,r)=>{"use strict";r.d(t,{Xg:()=>J,ZS:()=>N,jN:()=>g,sM:()=>G});var n=r(38980),i=r(79622),s=r(60194),a=r(92450),o=r(25330),l=r(73544),u=r(97830),c=r(43549);let d=i("mutator-document");class h{_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 h(this._value[e],this.path.concat(e)))}hasAttribute(e){return!!f(this._value)&&this._value.hasOwnProperty(e)}attributeKeys(){return f(this._value)?Object.keys(this._value):[]}getAttribute(e){if(!f(this._value))throw Error("getAttribute only applies to plain objects");return this.hasAttribute(e)?new h(this._value[e],this.path.concat(e)):null}set(e){return e===this._value?this:new h(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 r=this._value.slice();return r[e]=t,new h(r,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,r=[];for(let n=0;n<t;n++)-1===e.indexOf(n)&&r.push(this._value[n]);return new h(r,this.path)}insertItemsAt(e,t){if(!Array.isArray(this._value))throw Error("insertItemsAt only applies to arrays");return new h(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(!f(this._value))throw Error("Unable to set attribute of non-object container");return Object.is(t,this._value[e])?this:new h(Object.assign({},this._value,{[e]:t}),this.path)}setAttributeAccessor(e,t){return this.setAttribute(e,t.get())}unsetAttribute(e){if(!f(this._value))throw Error("Unable to unset attribute of non-object container");let t=Object.assign({},this._value);return delete t[e],new h(t,this.path)}}function f(e){return null!==e&&"object"==typeof e}function p(e){return null!==e&&"object"==typeof e}let m=/^[a-z_$]+/;function g(e){let t="";return e.forEach((e,r)=>{var n,i;t+=(n=e,i=0===r,"number"==typeof n?`[${n}]`:p(n)?Object.keys(n).map(e=>!function(e){switch(typeof e){case"number":case"string":case"boolean":return!0;default:return!1}}(n[e])?"":`[${e}=="${n[e]}"]`).join(""):"string"==typeof n&&m.test(n)?i?n:`.${n}`:`['${n}']`)}),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 b=/[0-9]/,v=/^[a-zA-Z0-9_]$/,_=/^[a-zA-Z_]$/,w={operator:["..",".",",",":","?"],comparator:[">=","<=","<",">","==","!="],keyword:["$","@"],boolean:["true","false"],paren:["[","]"]},x=Object.keys(w);class k{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,r="";for(;!this.EOF();){let t=e(this.source[this.i]);if(null===t)break;r+=t,this.i++}return this.i===t?null:r}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(v)&&this.length>this.i+e.length){let t=this.source[this.i+e.length];if(t&&t.match(v))return null}return this.i+=e.length,e}return null}
45chompWhitespace(){this.takeWhile(e=>" "===e?"":null)}tokenizeQuoted(){let e=this.peek();if("'"===e||'"'===e){this.consume(e);let t=!1,r=this.takeWhile(r=>t?(t=!1,r):"\\"===r?(t=!0,""):r!=e?r:null);return this.consume(e),{type:"quoted",value:r,quote:'"'===e?"double":"single"}}return null}tokenizeIdentifier(){let e=!0,t=this.takeWhile(t=>e?(e=!1,t.match(_)?t:null):t.match(v)?t:null);return null!==t?{type:"identifier",name:t}:null}tokenizeNumber(){let e=this.i,t=!1,r=!1,n=!1;"-"===this.peek()&&(n=!0,this.consume("-"));let i=this.takeWhile(e=>"."===e&&!t&&r?(t=!0,e):(r=!0,e.match(b)?e:null));return null!==i?{type:"number",value:n?-Number(i):+i,raw:n?`-${i}`:i}:(this.i=e,null)}tokenizeSymbol(){for(let e of x){let t=w[e].find(e=>this.tryConsume(e));if(t)return{type:e,symbol:t}}return null}}class E{tokens;length;i;constructor(e){this.tokens=new k(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(r=>r in t&&e[r]===t[r])?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 r={type:"range",start:t,end:this.parseNumberValue()};return this.match({type:"operator",symbol:":"})&&(r.step=this.parseNumberValue()),null===r.start&&null===r.end?(this.i=e,null):r}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 r=this.match({type:"comparator"});if(!r||"comparator"!==r.type)return this.i=e,null;let n=this.parseLiteralValue();if(!n)throw Error(`Operator ${r.symbol} needs a literal value at the right hand side`);return{type:"constraint",operator:r.symbol,lhs:t,rhs:n}}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(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 r=[];return t||r.push("["),e.start&&r.push(`${e.start}`),r.push(":"),e.end&&r.push(`${e.end}`),e.step&&r.push(`:${e.step}`),t||r.push("]"),r.join("")}case"index":return t?`${e.value}
45`:`[${e.value}]`;case"constraint":{let r=e.rhs?` ${A(e.rhs,!1)}`:"",n=`${A(e.lhs,!1)} ${e.operator}${r}`;return t?n:`[${n}]`}case"string":return JSON.stringify(e.value);case"path":{let t=[],r=e.nodes.slice();for(;r.length>0;){let e=r.shift();e&&t.push(A(e,!1));let n=r[0];n&&"["!==A(n,!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 O{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=T(t,e);let r="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:r=T(r,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;let r=e.get(),n=t.rhs&&"value"in t.rhs?t.rhs.value:void 0;return C(r,t.operator,n)}if("constraint"!==t.type)return!1;let r=t.lhs;if(!r)throw Error("No LHS of expression");if("attribute"!==r.type)throw Error(`Constraint target ${r.type} not supported`);if("object"!==e.containerType())return!1;let n=e.getAttribute(r.name);if(null==n||"primitive"!==n.containerType())return!1;if(this.isExistenceConstraint())return!0;let i=t.rhs&&"value"in t.rhs?t.rhs.value:void 0;return C(n.get(),t.operator,i)}pathNodes(){return"path"===this.expr.type?this.expr.nodes:[this.expr]}prepend(e){return e?new O({type:"path",nodes:e.pathNodes().concat(this.pathNodes())}):this}concat(e){return e?e.prepend(this):this}descend(){return(function(e){var t,r;let[n,i]=y(e);if(!n)throw Error("Head cannot be null");return t=n,r=i,"union"!==t.type?[[t,r]]:t.nodes.map(e=>{if("path"===e.type){let[t,n]=y(e);return[t,function(e,t){if(!e&&!t)return null;let r=e?e.nodes:[],n=t?t.nodes:[];return{type:"path",nodes:r.concat(n)}}(n,r)]}return[e,r]})})(this.expr).map(e=>{let[t,r]=e;return{head:t?new O(t):null,tail:r?new O(r):null}})}unwrapRecursive(){if("recursive"!==this.expr.type)throw Error(`Attempt to unwrap recursive on type ${this.expr.type}`);return new O(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[T(this.expr.value,e)];let t=[],r=this.expandRange(e),{start:n,end:i}=r;r.step<0&&([n,i]=[i,n]);for(let e=n;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 O(t)}static attributeReference(e){return new O({type:"attribute",name:e})}static indexReference(e){return new O({type:"index",value:e})}}function C(e,t,r){switch(t){case">":return e>r;case">=":return e>=r;case"<":return e<r;case"<=":return e<=r;case"==":return e===r;case"!=":return e!==r;default:throw Error(`Unsupported binary operator ${t}`)}}function T(e,t){if(e>=0)return e;if(!t)throw Error("interpretNegativeIndex() must have a probe when < 0");return e+t.length()}class I{head;tail;constructor(e,t){this.head=e,this.tail=t}iterate(e){let t=[this];if(this.head&&this.head.isConstraint()){let r=!0;for(;r;)r=(t=s(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 I(null,this.head.unwrapRecursive().concat(this.tail)).descend():[]}iterateConstraints(e){let t=this.head;if(null===t||!t.isConstraint())return[this];let r=[];if("primitive"===e.containerType()&&t.constraintTargetIsSelf())return t.testConstraint(e)&&r.push(...this.descend()),r;if("array"===e.containerType()){let n=e.length();for(let i=0;i<n;i++){let n=e.getIndex(i);n&&t.testConstraint(n)&&r.push(new I(new O({type:"index",value:i}),this.tail))}return r}return"object"===e.containerType()?t.constraintTargetIsSelf()?[]:t.testConstraint(e)?this.descend():r:r}
45descend(){return this.tail?this.tail.descend().map(e=>new I(e.head,e.tail)):[new I(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 r=t.head;return!!r&&(!!(r.isConstraint()||"array"===e.containerType()&&r.isIndexReference())||"object"===e.containerType()&&r.isAttributeReference()&&e.hasAttribute(r.name()))})}match(e){return this.iterate(e).extractMatches(e)}iterate(e){let t=[];return this.active.concat(this.activeRecursives(e)).forEach(r=>{t.push(...r.iterate(e))}),new D(t,this)}isDestination(){return this.active.some(e=>e.hasArrived())}hasRecursives(){return this.recursives.length>0}extractMatches(e){let t=[],r=[];if(this.active.forEach(n=>{if(n.hasArrived())return void r.push(new O({type:"alias",target:"self"}));let i=n.head;if(i&&!("array"===e.containerType()&&!i.isIndexReference())&&!("object"===e.containerType()&&!i.isAttributeReference()))if(n.tail){let e=new D(n.descend(),this);i.toFieldReferences().forEach(()=>{t.push({target:i,matcher:e})})}else r.push(i)}),this.hasRecursives()){let r=new D([],this);if("array"===e.containerType()){let n=e.length();for(let e=0;e<n;e++)t.push({target:O.indexReference(e),matcher:r})}else"object"===e.containerType()&&e.attributeKeys().forEach(e=>{t.push({target:O.attributeReference(e),matcher:r})})}return r.length>0?{leads:t,delivery:{targets:r,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 I(null,new O(t)).descend())}}class j{_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 j(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 j(this._value[e],this.path.concat(e)):null}get(){return this._value}}function R(e,t){let r=[];if(e.isIndexReference())e.toIndicies(t).forEach(e=>{r.push(t.getIndex(e))});else if(e.isAttributeReference())r.push(t.getAttribute(e.name()));else if(e.isSelfReference())r.push(t);else throw Error(`Unable to derive accessor for target ${e.toString()}`);return c(r)}function N(e,t){return(function(e,t){let r=[];return function e(t,r){let{leads:n,delivery:i}=t.match(r);n.forEach(t=>{R(t.target,r).forEach(r=>{e(t.matcher,r)})}),i&&i.targets.forEach(e=>{"function"==typeof i.payload&&i.payload(R(e,r))})}(D.fromPath(e).setPayload(function(e){r.push(...e)}),new j(t)),r})(e,t).map(e=>({path:e.path,value:e.get()}))}function $(e,t){if("string"!=typeof t)return t;let[r]=(0,a.$i)(e,t,{allowExceedingIndices:!0});return r}class M{path;dmpPatch;id;constructor(e,t,r){this.id=e,this.path=t,this.dmpPatch=(0,a.iz)(r)}apply(e,t){let r=t;if("primitive"===r.containerType())return r;for(let n of e){if(n.isIndexReference()){for(let e of n.toIndicies(t)){let t=r.getIndex(e);if(!t)continue;let n=t.get(),i=$(this.dmpPatch,n);r=r.setIndex(e,i)}continue}if(n.isAttributeReference()&&r.hasAttribute(n.name())){let e=r.getAttribute(n.name());if(!e)continue;let t=e.get(),i=$(this.dmpPatch,t);r=r.setAttribute(n.name(),i);continue}throw Error(`Unable to apply diffMatchPatch to target ${n.toString()}`)}return r}}function F(e,t){return"number"==typeof e&&Number.isFinite(e)?e+t:e}class P{path;value;id;constructor(e,t,r){this.path=t,this.value=r,this.id=e}apply(e,t){let r=t;if("primitive"===r.containerType())return r;for(let n of e){if(n.isIndexReference()){for(let e of n.toIndicies(t)){let t=r.getIndex(e);if(!t)continue;let n=t.get();r=r.setIndex(e,F(n,this.value))}continue}if(n.isAttributeReference()){let e=r.getAttribute(n.name());if(!e)continue;let t=e.get();r=r.setAttribute(n.name(),F(t,this.value));continue}throw Error(`Unable to apply to target ${n.toString()}`)}return r}}function L(e,t){let r=[];
45return e.forEach(e=>{e.isIndexReference()&&r.push(...e.toIndicies(t))}),r.sort((e,t)=>e-t)}class z{location;path;items;id;constructor(e,t,r,n){this.id=e,this.location=t,this.path=r,this.items=n}apply(e,t){var r,n;let i=t;if("array"!==t.containerType())throw Error("Attempt to apply insert patch to non-array value");switch(this.location){case"before":{let n,s=(n=l(L(r=e,t))||0,r.forEach(e=>{if(e.isRange()){let{start:t}=e.expandRange();t<n&&(n=t)}}),n);i=i.insertItemsAt(s,this.items);break}case"after":{let r,s=(r=o(L(n=e,t))||0,n.forEach(e=>{if(e.isRange()){let{end:t}=e.expandRange();t>r&&(r=t)}}),r);i=i.insertItemsAt(s+1,this.items);break}case"replace":{let r=L(e,t);i=(i=i.unsetIndices(r)).insertItemsAt(r[0],this.items);break}default:throw Error(`Unsupported location atm: ${this.location}`)}return i}}class q{id;path;value;constructor(e,t,r){this.id=e,this.path=t,this.value=r}apply(e,t){let r=t;return e.forEach(e=>{if(!e.isIndexReference())if(e.isAttributeReference())"primitive"===r.containerType()?r=r.set({[e.name()]:this.value}):r.hasAttribute(e.name())||(r=t.setAttribute(e.name(),this.value));else throw Error(`Unable to apply to target ${e.toString()}`)}),r}}class U{id;path;value;constructor(e,t,r){this.id=e,this.path=t,this.value=r}apply(e,t){let r=t;return e.forEach(e=>{if(e.isSelfReference())r=r.set(this.value);else if(e.isIndexReference())e.toIndicies(t).forEach(e=>{r=r.setIndex(e,this.value)});else if(e.isAttributeReference())r="primitive"===r.containerType()?r.set({[e.name()]:this.value}):r.setAttribute(e.name(),this.value);else throw Error(`Unable to apply to target ${e.toString()}`)}),r}}class B{id;path;value;constructor(e,t){this.id=e,this.path=t}apply(e,t){let r=t;switch(t.containerType()){case"array":r=r.unsetIndices(L(e,t));break;case"object":e.forEach(e=>{r=r.unsetAttribute(e.name())});break;default:throw Error("Target value is neither indexable or an object. This error should potentially just be silently ignored?")}return r}}class V{patches;constructor(e){this.patches=function e(t){let r=[];if(Array.isArray(t))return t.reduce((t,r)=>t.concat(e(r)),r);let{set:n,setIfMissing:i,unset:s,diffMatchPatch:a,inc:o,dec:l,insert:u}=t;
45if(i&&Object.keys(i).forEach(e=>{r.push(new q(t.id,e,i[e]))}),n&&Object.keys(n).forEach(e=>{r.push(new U(t.id,e,n[e]))}),s&&s.forEach(e=>{r.push(new B(t.id,e))}),a&&Object.keys(a).forEach(e=>{r.push(new M(t.id,e,a[e]))}),o&&Object.keys(o).forEach(e=>{r.push(new P(t.id,e,o[e]))}),l&&Object.keys(l).forEach(e=>{r.push(new P(t.id,e,-l[e]))}),u){let e,n;if("before"in u)e="before",n=u.before;else if("after"in u)e="after",n=u.after;else if("replace"in u)e="replace",n=u.replace;else throw Error("Invalid insert patch");r.push(new z(t.id,e,n,u.items))}return r}(e)}apply(e){let t=new h(e);return this.applyViaAccessor(t).get()}applyViaAccessor(e){let t=e,r=e.getAttribute("_id");if(!r)throw Error("Cannot apply patch to document with no _id");let n=r.get();for(let e of this.patches)e.id===n&&(t=function e(t,r){var n;let i=t.payload instanceof U||t.payload instanceof q,s=r,{leads:a,delivery:o}=t.match(r);return a.forEach(t=>{if(t.target.isIndexReference())t.target.toIndicies().forEach(r=>{let n=s.getIndex(r);if(!n)throw Error("Index out of bounds");s=s.setIndexAccessor(r,e(t.matcher,n))});else if(t.target.isAttributeReference()){i&&"primitive"===s.containerType()&&(s=s.set({}));let r=s.getAttribute(t.target.name());if(!r&&i&&(r=(s=s.setAttribute(t.target.name(),{})).getAttribute(t.target.name())),!r)return;let n=e(t.matcher,r);r!==n&&(s=s.setAttributeAccessor(t.target.name(),n))}else throw Error(`Unable to handle target ${t.target.toString()}`)}),o&&(n=o.payload)&&"object"==typeof n&&null!==n&&"apply"in n&&"function"==typeof n.apply&&(s=o.payload.apply(o.targets,s)),s}(D.fromPath(e.path).setPayload(e),t));return t}}let H=u.A;class G{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(r=>{if(r.create){let n=r.create||{};e.push(e=>e||Object.assign(n,{_createdAt:t(n)}));return}if(r.createIfNotExists){let n=r.createIfNotExists||{};e.push(e=>null===e?Object.assign(n,{_createdAt:t(n)}):e);return}if(r.createOrReplace){let n=r.createOrReplace||{};e.push(()=>Object.assign(n,{_createdAt:t(n)}));return}if(r.delete)return void e.push(()=>null);if(r.patch){if("query"in r.patch)return;let t=new V(r.patch);e.push(e=>t.apply(e));return}throw Error(`Unsupported mutation ${JSON.stringify(r,null,2)}`)}),"string"==typeof this.params.timestamp&&e.push(e=>e?Object.assign(e,{_updatedAt:this.params.timestamp}):null);let r=this.previousRev,n=this.resultRev||this.transactionId;this.compiled=t=>{if(r&&t&&r!==t._rev)throw Error(`Previous revision for this mutation was ${r}, but the document revision is ${t._rev}`);let i=t;for(let t of e)i=t(i);return i&&n&&(i===t&&(i=Object.assign({},t)),i._rev=n),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 G({mutations:t.reduce((e,t)=>e.concat(...t.mutations),[])})}}class W{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 r=e.transactionId;return this.updateConsistencyFlag(),{success:()=>{this.pendingSuccessfullySubmitted(r),this.updateConsistencyFlag()},failure:()=>{this.pendingFailed(r),this.updateConsistencyFlag()}}}isConsistent(){return!this.inconsistentAt}considerIncoming(){let e=!1,t,r=[];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 n=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)&&r.push(t),n++>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(r)}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 r=this.pending[0];if(r.transactionId===e){this.pending.shift(),this.submitted.push(r);return}let n=[];this.pending.forEach(r=>{if(r.transactionId===e){t=r;return}n.push(r)}),t&&this.submitted.push(t),this.pending=n,this.rebase([])}pendingFailed(e){this.pending=this.pending.filter(t=>t.transactionId!==e),this.rebase([])}rebase(e){let t=this.EDGE;this.EDGE=G.applyAll(this.HEAD,this.submitted.concat(this.pending)),null!==t&&null!==this.EDGE&&(t._rev=this.EDGE._rev),!n(this.EDGE,t)&&this.onRebase&&this.onRebase(this.EDGE,e,this.pending)}}class Z{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}
45add(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 G({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,r={};for(let e of Object.keys(t))t.hasOwnProperty(e)&&(this.optimiseSetOperation(e,t[e])||(r[e]=t[e]));Object.keys(r).length>0&&(d("Unoptimizable set-operation detected, purging optimization buffer"),this.staged.push({patch:{id:this.PRESTAGE._id,set:r}}),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 r=N(e,this.PRESTAGE);if(1!==r.length)return!1;let n=r[0];if("object"==typeof n.value||!this.PRESTAGE)return!1;let i=null;if(n.value===t)i=null;else if("string"==typeof n.value&&"string"==typeof t)try{let r=(0,a.w1)((0,a.jW)(n.value,t));i={patch:{id:this.PRESTAGE._id,diffMatchPatch:{[e]:r}}}}catch{return!1}else i={patch:{id:this.PRESTAGE._id,set:{[e]:t}}};let s=g(n.path);return i?this.setOperations[s]=i:delete this.setOperations[s],!0}stashStagedOperations(){let e=[];Object.keys(this.setOperations).forEach(t=>{let r=this.setOperations[t];r&&e.push(r)}),e.push(...this.staged),e.length>0&&(this.PRESTAGE=new G({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 G({mutations:this.out}).apply(this.BASIS):this.PRESTAGE=this.BASIS),this.PRESTAGE}}class Y{mutations;tries;resolve;reject;
45constructor(e,{resolve:t,reject:r}){this.mutations=e,this.tries=0,this.resolve=t,this.reject=r}apply(e){return G.applyAll(e,this.mutations)}squash(e){let t=G.squash(e,this.mutations);return t.assignRandomTransactionId(),t}}let K=(e,t)=>e.concat(t.mutations);class J{mutations;document;LOCAL;commits;buffer;onMutation;onRemoteMutation;onRebase;onDelete;onConsistencyChanged;commitHandler;committerRunning=!1;constructor(e){this.buffer=new Z(e),this.document=new W(e),this.document.onMutation=e=>this.handleDocMutation(e),this.document.onRemoteMutation=e=>this.onRemoteMutation&&this.onRemoteMutation(e),this.document.onRebase=(e,t,r)=>this.handleDocRebase(e,t,r),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 r=this.buffer.purge();this.commits.push(new Y(r?[r]:[],{resolve:e,reject:t})),this.buffer=new Z(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),r=this.document.stage(t,!0),n=()=>{d("Commit succeeded"),r.success(),e.resolve(),this._cycleCommitter()},i=()=>{d("Commit failed"),e.tries+=1,null!==this.LOCAL&&this.commits.unshift(e),r.failure(),e.tries<200&&setTimeout(()=>this._cycleCommitter(),Math.min(1e3*e.tries,6e4))},s=e=>{this.commits.forEach(t=>t.reject(e)),this.commits=[],this.reset(this.document.HEAD),this.buffer=new Z(this.LOCAL),this.committerRunning=!1};d("Posting commit"),this.commitHandler&&this.commitHandler({mutation:t,success:n,failure:i,cancel:s})}handleDocRebase(e,t,r){this.rebase(t,r)}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 Z(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 r=this.LOCAL;this.LOCAL=this.commits.reduce((e,t)=>t.apply(e),this.document.EDGE),this.LOCAL=this.buffer.rebase(this.LOCAL),null!==r&&null!==this.LOCAL&&(r._rev=this.LOCAL._rev),!n(this.LOCAL,r)&&this.onRebase&&this.onRebase(this.LOCAL,e.reduce(K,[]),t.reduce(K,[]))}handleDocConsistencyChanged(e){if(!this.onConsistencyChanged)return;let t=this.commits.length>0||this.buffer.hasChanges();e&&!t&&this.onConsistencyChanged(!0),e||this.onConsistencyChanged(!1)}}},52597:(e,t,r)=>{"use strict";let n;function i(e,t,r){let n,i=r.initialDeps??[],s=!0;function a(){let a=e();return a.length!==i.length||a.some((e,t)=>i[t]!==e)?(i=a,n=t(...a),(null==r?void 0:r.onChange)&&!(s&&r.skipInitialOnChange)&&r.onChange(n),s=!1,n):n}return a.updateDeps=e=>{i=e},a}function s(e,t){if(void 0!==e)return e;throw Error(`Unexpected undefined${t?`: ${t}`:""}`)}r.d(t,{YV:()=>g,vp:()=>u,Ox:()=>m,AO:()=>f,T6:()=>c});let a=()=>
45{if(void 0!==n)return n;if("undefined"==typeof navigator)return n=!1;if(/iP(hone|od|ad)/.test(navigator.userAgent))return n=!0;let e=navigator.maxTouchPoints;return n="MacIntel"===navigator.platform&&void 0!==e&&e>0},o=e=>{let{offsetWidth:t,offsetHeight:r}=e;return{width:t,height:r}},l=e=>e,u=e=>{let t=Math.max(e.startIndex-e.overscan,0),r=Math.min(e.endIndex+e.overscan,e.count-1)-t+1,n=Array(r);for(let e=0;e<r;e++)n[e]=t+e;return n},c=(e,t)=>{let r=e.scrollElement;if(!r)return;let n=e.targetWindow;if(!n)return;let i=e=>{let{width:r,height:n}=e;t({width:Math.round(r),height:Math.round(n)})};if(i(o(r)),!n.ResizeObserver)return()=>{};let s=new n.ResizeObserver(t=>{let n=()=>{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(r))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(n):n()});return s.observe(r,{box:"border-box"}),()=>{s.unobserve(r)}},d={passive:!0},h="undefined"==typeof window||"onscrollend"in window,f=(e,t)=>((e,t,r)=>{let n=e.scrollElement;if(!n)return;let i=e.targetWindow;if(!i)return;let s=e.options.useScrollendEvent&&h,a=0,o=s?null:((e,t,r)=>{let n;return function(...i){e.clearTimeout(n),n=e.setTimeout(()=>t.apply(this,i),r)}})(i,()=>t(a,!1),e.options.isScrollingResetDelay),l=e=>()=>{a=r(n),null==o||o(),t(a,e)},u=l(!0),c=l(!1);return n.addEventListener("scroll",u,d),s&&n.addEventListener("scrollend",c,d),()=>{n.removeEventListener("scroll",u),s&&n.removeEventListener("scrollend",c)}})(e,t,t=>{let{horizontal:r,isRtl:n}=e.options;return r?t.scrollLeft*(n&&-1||1):t.scrollTop}),p=(e,t,r)=>{if(r.options.useCachedMeasurements){let t=r.indexFromElement(e),n=r.options.getItemKey(t);return r.itemSizeCache.get(n)??r.options.estimateSize(t)}if(null==t?void 0:t.borderBoxSize){let e=t.borderBoxSize[0];if(e)return Math.round(e[r.options.horizontal?"inlineSize":"blockSize"])}if(!t){let t=r.indexFromElement(e),n=r.options.getItemKey(t),i=r.itemSizeCache.get(n);if(void 0!==i)return i}return e[r.options.horizontal?"offsetWidth":"offsetHeight"]}
45,m=(e,{adjustments:t=0,behavior:r},n)=>{var i,s;null==(s=null==(i=n.scrollElement)?void 0:i.scrollTo)||s.call(i,{[n.options.horizontal?"left":"top"]:e+t,behavior:r})};class g{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this._flatMeasurements=null,this.itemSizeCache=new Map,this.itemSizeCacheVersion=0,this.laneAssignments=new Map,this.pendingMin=null,this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.pendingScrollAnchor=null,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._intendedScrollOffset=null,this.elementsCache=new Map,this.now=()=>{var e,t,r;return(null==(r=null==(t=null==(e=this.targetWindow)?void 0:e.performance)?void 0:t.now)?void 0:r.call(t))??Date.now()},this.observer=(()=>{let e=null,t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{let t=()=>{let t=e.target,r=this.indexFromElement(t);if(!t.isConnected){for(let[e,r]of(this.observer.unobserve(t),this.elementsCache))if(r===t){this.elementsCache.delete(e);break}return}this.shouldMeasureDuringScroll(r)&&this.resizeItem(r,this.options.measureElement(t,e,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()})}):null);return{disconnect:()=>{var r;null==(r=t())||r.disconnect(),e=null},observe:e=>{var r;return null==(r=t())?void 0:r.observe(e,{box:"border-box"})},unobserve:e=>{var r;return null==(r=t())?void 0:r.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{var t,r;let n={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:l,rangeExtractor:u,onChange:()=>{},measureElement:p,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,anchorTo:"start",followOnAppend:!1,scrollEndThreshold:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,laneAssignmentMode:"estimate",useCachedMeasurements:!1};for(let t in e){let r=e[t];void 0!==r&&(n[t]=r)}let i=this.options,s=null,a=null,o=!1;if(void 0!==i&&i.enabled&&n.enabled&&"end"===n.anchorTo&&null!==this.scrollElement){let e=i.count,l=n.count,u=this.getMeasurements(),c=e>0?(null==(t=u[0])?void 0:t.key)??i.getItemKey(0):null,d=e>0?(null==(r=u[e-1])?void 0:r.key)??i.getItemKey(e-1):null;if(l!==e||e>0&&l>0&&(n.getItemKey(0)!==c||n.getItemKey(l-1)!==d)){o=!0;let t=e>0?this.getVirtualItemForOffset(this.getScrollOffset())??u[0]:null;t&&(s=[t.key,this.getScrollOffset()-t.start]);let r=!0===n.followOnAppend?"auto":n.followOnAppend||null;r&&l>e&&this.isAtEnd(i.scrollEndThreshold)&&(0===e||n.getItemKey(l-1)!==d)&&(a=r)}}this.options=n,o&&(this.pendingMin=0,this.itemSizeCacheVersion++);let c=!1,d=0;if(s&&null!==this.scrollOffset){let[e,t]=s,r=this.getMeasurements(),{count:n,getItemKey:i}=this.options,a=0;for(;a<n&&i(a)!==e;)a++;if(a<n){let e=r[a];if(e){let r=e.start+t;r!==this.scrollOffset&&(d=r-this.scrollOffset,this.scrollOffset=r,c=!0)}}}(c||a)&&(this.pendingScrollAnchor=[c?s[0]:null,c?s[1]:0,a,d])},this.notify=e=>{var t,r;null==(r=(t=this.options).onChange)||r.call(t,this,e)},this.maybeNotify=i(()=>(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=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),null!=this.rafId&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,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();if(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
45=>{this.observer.observe(e)}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{if(t&&null===this._intendedScrollOffset&&e===this.scrollOffset)return;null!==this._intendedScrollOffset&&1.5>Math.abs(e-this._intendedScrollOffset)&&(e=this._intendedScrollOffset),this._intendedScrollOffset=null,this.scrollAdjustments=0;let r=this.getScrollOffset();this.scrollDirection=t?r===e?this.scrollDirection:r<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this._flushIosDeferredIfReady(),this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),"addEventListener"in this.scrollElement){let e=this.scrollElement,t=()=>{this._iosTouching=!0,this._iosJustTouchEnded=!1,null!==this._iosTouchEndTimerId&&null!=this.targetWindow&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)},r=()=>{this._iosTouching=!1,a()&&null!=this.targetWindow&&(this._iosJustTouchEnded=!0,this._iosTouchEndTimerId=this.targetWindow.setTimeout(()=>{this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._flushIosDeferredIfReady()},150))};e.addEventListener("touchstart",t,d),e.addEventListener("touchend",r,d),this.unsubs.push(()=>{e.removeEventListener("touchstart",t),e.removeEventListener("touchend",r),null!==this._iosTouchEndTimerId&&null!=this.targetWindow&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)})}this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}let r=this.pendingScrollAnchor;if(this.pendingScrollAnchor=null,r&&this.scrollElement&&this.options.enabled){let[e,t,n,i]=r;null===e||n||(a()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?0!==i&&(this._iosDeferredAdjustment+=i):this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})),n&&this.scrollToEnd({behavior:n})}},this._flushIosDeferredIfReady=()=>{if(0===this._iosDeferredAdjustment||this.isScrolling||this._iosTouching||this._iosJustTouchEnded)return;let e=this.getScrollOffset(),t=this.getMaxScrollOffset();if(e<0||e>t)return;let r=this._iosDeferredAdjustment;this._iosDeferredAdjustment=0,this._scrollToOffset(e,{adjustments:this.scrollAdjustments+=r,behavior:void 0})},this.rafId=null,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 r=new Map,n=new Map;for(let i=t-1;i>=0;i--){let t=e[i];if(r.has(t.lane))continue;let s=n.get(t.lane);if(null==s||t.end>s.end?n.set(t.lane,t):t.end<s.end&&r.set(t.lane,!0),r.size===this.options.lanes)break}return n.size===this.options.lanes?Array.from(n.values()).sort((e,t)=>e.end===t.end?e.index-t.index:e.end-t.end)[0]:void 0},this.getMeasurementOptions=i(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes,this.options.laneAssignmentMode],(e,t,r,n,i,s,a)=>(void 0!==this.prevLanes&&this.prevLanes!==s&&(this.lanesChangedFlag=!0),this.prevLanes=s,this.pendingMin=null,{count:e,paddingStart:t,scrollMargin:r,getItemKey:n,enabled:i,lanes:s,laneAssignmentMode:a}),{key:!1}),this.getMeasurements=i(()=>[this.getMeasurementOptions(),this.itemSizeCacheVersion],({count:e,paddingStart:t,scrollMargin:r,getItemKey:n,enabled:i,lanes:s,laneAssignmentMode:a},o)=>{let l=this.itemSizeCache;if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>e)for(let t of this.laneAssignments.keys())t>=e&&this.laneAssignments.delete(t);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMin=null),0!==this.measurementsCache.length||this.lanesSettling||(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e
45=>{this.itemSizeCache.set(e.key,e.size)}));let u=this.lanesSettling?0:this.pendingMin??0;if(this.pendingMin=null,this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1),1===s){let i,s=this.options.gap,a=2*e,o=this._flatMeasurements;if(!o||o.length<a){let e=new Float64Array(a);o&&u>0&&e.set(o.subarray(0,2*u)),o=e,this._flatMeasurements=o}if(0===u)i=t+r;else{let e=u-1;i=o[2*e]+o[2*e+1]+s}for(let t=u;t<e;t++){let e=n(t),r=l.get(e),a="number"==typeof r?r:this.options.estimateSize(t);o[2*t]=i,o[2*t+1]=a,i+=a+s}let c=function(e,t,r){return new Proxy(Array(e),{get(n,i,s){if("string"==typeof i){let s=i.charCodeAt(0);if(s>=48&&s<=57){let s=+i;if(Number.isInteger(s)&&s>=0&&s<e){let e=n[s];if(!e){let i=t[2*s];e=n[s]={index:s,key:r(s),start:i,size:t[2*s+1],end:i+t[2*s+1],lane:0}}return e}}if("length"===i)return e}return Reflect.get(n,i,s)}})}(e,o,n);return this.measurementsCache=c,c}let c=this.measurementsCache.slice(0,u),d=Array(s).fill(void 0);for(let e=0;e<u;e++){let t=c[e];t&&(d[t.lane]=e)}for(let i=u;i<e;i++){let e,s,o=n(i),u=this.laneAssignments.get(i),h="estimate"===a||l.has(o);if(void 0!==u&&this.options.lanes>1){let n=d[e=u],i=void 0!==n?c[n]:void 0;s=i?i.end+this.options.gap:t+r}else{let n=1===this.options.lanes?c[i-1]:this.getFurthestMeasurement(c,i);s=n?n.end+this.options.gap:t+r,e=n?n.lane:i%this.options.lanes,this.options.lanes>1&&h&&this.laneAssignments.set(i,e)}let f=l.get(o),p="number"==typeof f?f:this.options.estimateSize(i),m=s+p;c[i]={index:i,start:s,size:p,end:m,key:o,lane:e},d[e]=i}return this.measurementsCache=c,c},{key:!1,debug:()=>this.options.debug}),this.calculateRange=i(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,r,n)=>0===e.length||0===t?(this.range=null,null):(this.range=function(e,t,r,n,i){let s=e.length-1;if(e.length<=n)return{startIndex:0,endIndex:s};if(1===n&&null!==i){let e=function(e,t,r){let n=0;for(;n<=t;){let i=(n+t)/2|0,s=e[2*i];if(s<r)n=i+1;else{if(!(s>r))return i;t=i-1}}return n>0?n-1:0}(i,s,r),n=e,a=r+t;for(;n<s&&i[2*n]+i[2*n+1]<a;)n++;return{startIndex:e,endIndex:n}}let a=y(0,s,t=>e[t].start,r),o=a;if(1===n)for(;o<s&&e[o].end<r+t;)o++;else if(n>1){let i=Array(n).fill(0);for(;o<s&&i.some(e=>e<r+t);){let t=e[o];i[t.lane]=t.end,o++}let l=Array(n).fill(r+t);for(;a>=0&&l.some(e=>e>=r);){let t=e[a];l[t.lane]=t.start,a--}a=Math.max(0,a-a%n),o=Math.min(s,o+(n-1-o%n))}return{startIndex:a,endIndex:o}}(e,t,r,n,1===n&&null!=this._flatMeasurements?this._flatMeasurements:null),this.range),{key:!1,debug:()=>this.options.debug}
45),this.getVirtualIndexes=i(()=>{let e=null,t=null,r=this.calculateRange();return r&&(e=r.startIndex,t=r.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,r,n,i)=>null===n||null===i?[]:e({startIndex:n,endIndex:i,overscan:t,count:r}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let t=this.options.indexAttribute,r=e.getAttribute(t);return r?parseInt(r,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=e=>{var t;if(!this.scrollState||"smooth"!==this.scrollState.behavior)return!0;let r=this.scrollState.index??(null==(t=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))?void 0:t.index);if(void 0!==r&&this.range){let t=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),n=Math.max(0,r-t),i=Math.min(this.options.count-1,r+t);return e>=n&&e<=i}return!0},this.measureElement=e=>{if(!e)return void this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))});let t=this.indexFromElement(e),r=this.options.getItemKey(t),n=this.elementsCache.get(r);n!==e&&(n&&this.observer.unobserve(n),this.observer.observe(e),this.elementsCache.set(r,e)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(t)&&this.resizeItem(t,this.options.measureElement(e,void 0,this))},this.resizeItem=(e,t)=>{var r,n;let i,s,a;if(e<0||e>=this.options.count)return;let o=this._flatMeasurements;if(1===this.options.lanes&&null!==o)a=this.options.getItemKey(e),s=o[2*e],i=o[2*e+1];else{let t=this.measurementsCache[e];if(!t)return;a=t.key,s=t.start,i=t.size}let l=t-(this.itemSizeCache.get(a)??i);if(0!==l){let o="end"===this.options.anchorTo&&(null==(r=this.scrollState)?void 0:r.behavior)!=="smooth"&&this.getVirtualDistanceFromEnd()<=this.options.scrollEndThreshold,u=o?this.getTotalSize():0,c=(null==(n=this.scrollState)?void 0:n.behavior)!=="smooth"&&(void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(this.measurementsCache[e]??{index:e,key:a,start:s,size:i,end:s+i,lane:0},l,this):s<this.getScrollOffset()+this.scrollAdjustments&&(!this.itemSizeCache.has(a)||"backward"!==this.scrollDirection));(null===this.pendingMin||e<this.pendingMin)&&(this.pendingMin=e),this.itemSizeCache.set(a,t),this.itemSizeCacheVersion++,o?this.applyScrollAdjustment(this.getTotalSize()-u):c&&this.applyScrollAdjustment(l),this.notify(!1)}},this.getVirtualItems=i(()=>
45[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{let r=[];for(let n=0,i=e.length;n<i;n++){let i=t[e[n]];r.push(i)}return r},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();if(0===t.length)return;let r=this._flatMeasurements,n=1===this.options.lanes&&null!=r,i=y(0,t.length-1,n?e=>r[2*e]:e=>s(t[e]).start,e);return s(t[i])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{let e=this.scrollElement.document.documentElement;return this.options.horizontal?e.scrollWidth-this.scrollElement.innerWidth:e.scrollHeight-this.scrollElement.innerHeight}},this.getVirtualDistanceFromEnd=()=>Math.max(this.getTotalSize()-this.getSize()-this.getScrollOffset(),0),this.getDistanceFromEnd=()=>Math.max(this.getMaxScrollOffset()-this.getScrollOffset(),0),this.isAtEnd=(e=this.options.scrollEndThreshold)=>this.getDistanceFromEnd()<=e,this.getOffsetForAlignment=(e,t,r=0)=>{if(!this.scrollElement)return 0;let n=this.getSize(),i=this.getScrollOffset();return"auto"===t&&(t=e>=i+n?"end":"start"),"center"===t?e+=(r-n)/2:"end"===t&&(e-=n),Math.max(Math.min(this.getMaxScrollOffset(),e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let r=this.getSize(),n=this.getScrollOffset(),i=this.measurementsCache[e];if(!i)return;if("auto"===t)if(i.end>=n+r-this.options.scrollPaddingEnd)t="end";else{if(!(i.start<=n+this.options.scrollPaddingStart))return[n,t];t="start"}if("end"===t&&e===this.options.count-1)return[this.getMaxScrollOffset(),t];let s="end"===t?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(s,t,i.size),t]},this.scrollToOffset=(e,{align:t="start",behavior:r="auto"}={})=>{let n=this.getOffsetForAlignment(e,t),i=this.now();this.scrollState={index:null,align:t,behavior:r,startedAt:i,lastTargetOffset:n,stableFrames:0},this._scrollToOffset(n,{adjustments:void 0,behavior:r}),this.scheduleScrollReconcile()},this.scrollToIndex=(e,{align:t="auto",behavior:r="auto"}={})=>{e=Math.max(0,Math.min(e,this.options.count-1));let n=this.getOffsetForIndex(e,t);if(!n)return;let[i,s]=n,a=this.now();this.scrollState={index:e,align:s,behavior:r,startedAt:a,lastTargetOffset:i,stableFrames:0},this._scrollToOffset(i,{adjustments:void 0,behavior:r}),this.scheduleScrollReconcile()},this.scrollBy=(e,{behavior:t="auto"}={})=>{let r=this.getScrollOffset()+e,n=this.now();this.scrollState={index:null,align:"start",behavior:t,startedAt:n,lastTargetOffset:r,stableFrames:0},this._scrollToOffset(r,{adjustments:void 0,behavior:t}),this.scheduleScrollReconcile()},this.scrollToEnd=({behavior:e="auto"}={})=>{if(this.options.count>0)return void this.scrollToIndex(this.options.count-1,{align:"end",behavior:e});this.scrollToOffset(Math.max(this.getTotalSize()-this.getSize(),0),{behavior:e})},this.getTotalSize=()=>{var e;let t,r=this.getMeasurements();if(0===r.length)t=this.options.paddingStart;else if(1===this.options.lanes){let n=r.length-1,i=this._flatMeasurements;t=null!=i?i[2*n]+i[2*n+1]:(null==(e=r[n])?void 0:e.end)??0}else{let e=Array(this.options.lanes).fill(null),n=r.length-1;for(;n>=0&&e.some(e=>null===e);){let t=r[n];null===e[t.lane]&&(e[t.lane]=t.end),n--}t=Math.max(...e.filter(e=>null!==e))}return Math.max(t-this.options.scrollMargin+this.options.paddingEnd,0)},this.takeSnapshot=()=>{let e=[];
45if(0===this.itemSizeCache.size)return e;for(let t of this.getMeasurements())t&&this.itemSizeCache.has(t.key)&&e.push({index:t.index,key:t.key,start:t.start,size:t.size,end:t.end,lane:t.lane});return e},this._scrollToOffset=(e,{adjustments:t,behavior:r})=>{this._intendedScrollOffset=e+(t??0),this.options.scrollToFn(e,{behavior:r,adjustments:t},this)},this.measure=()=>{this.pendingMin=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.itemSizeCacheVersion++,this.notify(!1)},this.setOptions(e)}applyScrollAdjustment(e,t){0!==e&&(a()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?this._iosDeferredAdjustment+=e:(this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=e,behavior:t}),null!==this.scrollOffset&&(this.scrollOffset+=this.scrollAdjustments,this.scrollAdjustments=0)))}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}null==this.rafId&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}let e=null!=this.scrollState.index?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,t=e?e[0]:this.scrollState.lastTargetOffset,r=t!==this.scrollState.lastTargetOffset;if(!r&&1.01>Math.abs(t-this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=1){this.getScrollOffset()!==t&&this._scrollToOffset(t,{adjustments:void 0,behavior:"auto"}),this.scrollState=null;return}}else if(this.scrollState.stableFrames=0,r){let e=this.getSize()||600,r=Math.abs(t-this.getScrollOffset()),n="smooth"===this.scrollState.behavior&&r>e;this.scrollState.lastTargetOffset=t,n||(this.scrollState.behavior="auto"),this._scrollToOffset(t,{adjustments:void 0,behavior:n?"smooth":"auto"})}this.scheduleScrollReconcile()}}let y=(e,t,r,n)=>{for(;e<=t;){let i=(e+t)/2|0,s=r(i);if(s<n)e=i+1;else{if(!(s>n))return i;t=i-1}}return e>0?e-1:0}},52850:(e,t,r)=>{var n=r(57201),i=r(41194),s=r(15104);e.exports=function(e){return function(t,r,a){var o=Object(t);if(!i(t)){var l=n(r,3);t=s(t),r=function(e){return l(o[e],e,o)}}var u=e(t,r,a);return u>-1?o[l?t[u]:u]:void 0}}},53103:(e,t,r)=>{"use strict";r.d(t,{Q:()=>i});var n=r(97537);function i(e,t){let r=(0,n.a)(e,null==t?void 0:t.in);return r.setMinutes(0,0,0),r}},53260:(e,t,r)=>{var n=r(42725),i=r(70368),s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var r=typeof e;return!!("number"==r||"symbol"==r||"boolean"==r||null==e||i(e))||a.test(e)||!s.test(e)||null!=t&&e in Object(t)}},53369:(e,t,r)=>{var n=r(14077),i=r(81700),s=r(50375);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?s(t[0][0],t[0][1]):function(r){return r===e||n(r,e,t)}}},53389:(e,t,r)=>{"use strict";r.d(t,{uz:()=>M});var n,i=r(6197),s=r(20883),a=r(91384),o=r(25305),l=r(36330),u=r(46820),c=r(71507),d=r(53355),h=r(27381),f=r(35159),p=r(99051),m=r(5877),g=r(27248),y=r(16590),b=r(36931),v=r(97901),_=r(24617),w=r(10387),x=function(){return(x=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},k=(0,w.d_)("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-",20);function E(e,t,r){return JSON.stringify({jsonrpc:"2.0",method:e,params:x(x({},t),{apiVersion:"v1"}),id:r})}var S=function(e,t){void 0===t&&(t={});var r=t.token$,n=t.getNextRequestId,w=void 0===n?k:n,x=(0,p.j)(e.pipe((0,i.n)(function(e){return(0,m.R)(e,"message")})),function(e){return"♥"===e.data}),S=x[0],A=x[1],O=A.pipe((0,s.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),r=t[0],n=t[1];return r?(console.warn("Unable to parse message: %s",r.message),g.w):n&&n.jsonrpc?(0,y.of)(n):(console.warn("Received empty or non-jsonrpc message: %s",n),g.w)}),(0,a.u)()),C=r?(0,b.z)([r,e]).pipe((0,o.F)(function(e,t){var r=e[0],n=e[1],i=t[0],s=t[1];return r===i&&n===s}),(0,i.n)(function(e){var t=e[0],r=e[1];return t?T(r,"authorization",{authorization:"Bearer ".concat(t)}).pipe((0,l.s)(1),(0,u.u)(r)):(0,y.of)(r)}),(0,c.t)({refCount:!0,bufferSize:1})):e;function T(e,t,r){void 0===r&&(r={});var n=w();return(0,v.h)(O.pipe((0,d.p)(function(e){return e.id===n}),(0,h.T)(function(e){return e.result})),(0,_.v)(function(){return e.send(E(t,r,n)),g.w}))}return{heartbeats:(0,v.h)(C,S,A).pipe((0,h.T)(function(){return new Date})),listen:function(e,t){return C.pipe((0,l.s)(1),(0,s.Z)(function(r){return T(r,"".concat(e,"_subscribe"),t).pipe((0,l.s)(1),(0,s.Z)(function(t){return O.pipe((0,d.p)(function(r){return r.method==="".concat(e,"_subscription")&&r.params.subscription===t}),(0,h.T)(function(e){return e.params.result}),(0,f.j)(function(){r.readyState!==r.CLOSED&&r.readyState!==r.CLOSING&&r.send(E("".concat(e,"_unsubscribe"),{subscriptionId:t},w()))}))}))}))},request:function(e,t){return C.pipe((0,l.s)(1),(0,s.Z)(function(r){return T(r,e,t).pipe((0,l.s)(1))}))}}},A=r(2782),O=function(){var e=function(t,r){return(e=Object.setPrototypeOf||({__proto__:[]}
45)instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),C=function(e){function t(t,r,n,i){var s=e.call(this,t)||this;return s.type=r,s.code=n,s.reason=i,s}return O(t,e),t}(Error),T=r(2297),I=r(40785),D=r(81451),j=r(44220),R=r(25082),N=r(28053);!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"}(n||(n={}));var $=function(e){return e};function M(e,t){void 0===t&&(t={});var r,n,i=t.timeout,a=t.token$;return S((r=function(e,t){return new window.WebSocket(e,t)},function(e){return new A.c(function(t){var n=r(e),i=!1;return n.onopen=function(){t.next(n)},n.onclose=function(e){i?t.complete():t.error(new C("WebSocket connection error","CONNECTION_CLOSED",e.code,e.reason))},n.onerror=function(){t.error(new C("WebSocket connection error","CONNECTION_ERROR"))},function(){i=!0,n.close(1e3,"WebSockets connection closed by client")}})})(e).pipe(i?(n=(0,N.$)(function(){return Error("Timeout after ".concat(i," while establishing WebSockets connection"))}),function(e){return function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return 1===(t=(0,I.K)(t)).length?(0,T.Tg)(t[0]):new A.c((e=t,function(t){for(var r=[],n=function(n){r.push((0,T.Tg)(e[n]).subscribe((0,D._)(t,function(e){if(r){for(var i=0;i<r.length;i++)i!==n&&r[i].unsubscribe();r=null}t.next(e)})))},i=0;r&&!t.closed&&i<e.length;i++)n(i)}))}(e,(0,j.O)(i).pipe((0,s.Z)(function(){return n})))}):$,(0,c.t)({refCount:!0}),(0,R.Q)((0,m.R)(window,"beforeunload"))),{token$:a})}},53485:(e,t,r)=>{"use strict";r.d(t,{c:()=>a});var n=r(41325),i=r(80575),s=r(50836);function a(e,t){return(0,s.r)((0,n.w)((null==t?void 0:t.in)||e,e),(0,i.A)((null==t?void 0:t.in)||e))}},53515:(e,t,r)=>{"use strict";r.d(t,{$N:()=>a,Hd:()=>s,xE:()=>o});var n=r(28077);let i=r(26088).O;function s(e,t={}){if(!e)return"<unknown>";try{let r,s=e,a=[],o=0,l=0,u=Array.isArray(t)?t:t.keyAttrs,c=!Array.isArray(t)&&t.maxStringLength||80;for(;s&&o++<5&&(r=function(e,t){let r=[];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}r.push(e.tagName.toLowerCase());let s=t&&t.length?t.filter(t=>e.getAttribute(t)).map(t=>[t,e.getAttribute(t)]):null;if(s&&s.length)s.forEach(e=>{r.push(`[${e[0]}="${e[1]}"]`)});else{e.id&&r.push(`#${e.id}`);let t=e.className;if(t&&(0,n.Kg)(t))for(let e of t.split(/\s+/))r.push(`.${e}`)}for(let t of["aria-label","type","name","title","alt"]){let n=e.getAttribute(t);n&&r.push(`[${t}="${n}"]`)}return r.join("")}(s,u),"html"!==r&&(!(o>1)||!(l+3*a.length+r.length>=c)));)a.push(r),l+=r.length,s=s.parentNode;return a.reverse().join(" > ")}catch(e){return"<unknown>"}}function a(){try{return i.document.location.href}catch(e){return""}}function o(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}},54011:(e,t,r)=>{var n=r(48115);e.exports=function(e,t){return n(e,t)}},54108:(e,t,r)=>{"use strict";let{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:s}=r(24570),a=r(82628),o=(t=e.exports={}).re=[],l=t.safeRe=[],u=t.src=[],c=t.safeSrc=[],d=t.t={},h=0,f="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",s],[f,i]],m=(e,t,r)=>{let n=(e=>{for(let[t,r]of p)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e})(t),i=h++;a(e,i,t),d[e]=i,u[i]=t,c[i]=n,o[i]=new RegExp(t,r?"g":void 0),l[i]=new RegExp(n,r?"g":void 0)};m("NUMERICIDENTIFIER","0|[1-9]\\d*"),m("NUMERICIDENTIFIERLOOSE","\\d+"),m("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${f}*`),m("MAINVERSION",`(${u[d.NUMERICIDENTIFIER]})\\.(${u[d.NUMERICIDENTIFIER]})\\.(${u[d.NUMERICIDENTIFIER]})`),m("MAINVERSIONLOOSE",`(${u[d.NUMERICIDENTIFIERLOOSE]})\\.(${u[d.NUMERICIDENTIFIERLOOSE]})\\.(${u[d.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASEIDENTIFIER",`(?:${u[d.NONNUMERICIDENTIFIER]}|${u[d.NUMERICIDENTIFIER]})`),m("PRERELEASEIDENTIFIERLOOSE",`(?:${u[d.NONNUMERICIDENTIFIER]}|${u[d.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASE",`(?:-(${u[d.PRERELEASEIDENTIFIER]}(?:\\.${u[d.PRERELEASEIDENTIFIER]})*))`),m("PRERELEASELOOSE",`(?:-?(${u[d.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[d.PRERELEASEIDENTIFIERLOOSE]})*))`),m("BUILDIDENTIFIER",`${f}
45+`),m("BUILD",`(?:\\+(${u[d.BUILDIDENTIFIER]}(?:\\.${u[d.BUILDIDENTIFIER]})*))`),m("FULLPLAIN",`v?${u[d.MAINVERSION]}${u[d.PRERELEASE]}?${u[d.BUILD]}?`),m("FULL",`^${u[d.FULLPLAIN]}$`),m("LOOSEPLAIN",`[v=\\s]*${u[d.MAINVERSIONLOOSE]}${u[d.PRERELEASELOOSE]}?${u[d.BUILD]}?`),m("LOOSE",`^${u[d.LOOSEPLAIN]}$`),m("GTLT","((?:<|>)?=?)"),m("XRANGEIDENTIFIERLOOSE",`${u[d.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),m("XRANGEIDENTIFIER",`${u[d.NUMERICIDENTIFIER]}|x|X|\\*`),m("XRANGEPLAIN",`[v=\\s]*(${u[d.XRANGEIDENTIFIER]})(?:\\.(${u[d.XRANGEIDENTIFIER]})(?:\\.(${u[d.XRANGEIDENTIFIER]})(?:${u[d.PRERELEASE]})?${u[d.BUILD]}?)?)?`),m("XRANGEPLAINLOOSE",`[v=\\s]*(${u[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[d.XRANGEIDENTIFIERLOOSE]})(?:${u[d.PRERELEASELOOSE]})?${u[d.BUILD]}?)?)?`),m("XRANGE",`^${u[d.GTLT]}\\s*${u[d.XRANGEPLAIN]}$`),m("XRANGELOOSE",`^${u[d.GTLT]}\\s*${u[d.XRANGEPLAINLOOSE]}$`),m("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),m("COERCE",`${u[d.COERCEPLAIN]}(?:$|[^\\d])`),m("COERCEFULL",u[d.COERCEPLAIN]+`(?:${u[d.PRERELEASE]})?`+`(?:${u[d.BUILD]})?`+"(?:$|[^\\d])"),m("COERCERTL",u[d.COERCE],!0),m("COERCERTLFULL",u[d.COERCEFULL],!0),m("LONETILDE","(?:~>?)"),m("TILDETRIM",`(\\s*)${u[d.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",m("TILDE",`^${u[d.LONETILDE]}${u[d.XRANGEPLAIN]}$`),m("TILDELOOSE",`^${u[d.LONETILDE]}${u[d.XRANGEPLAINLOOSE]}$`),m("LONECARET","(?:\\^)"),m("CARETTRIM",`(\\s*)${u[d.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",m("CARET",`^${u[d.LONECARET]}${u[d.XRANGEPLAIN]}$`),m("CARETLOOSE",`^${u[d.LONECARET]}${u[d.XRANGEPLAINLOOSE]}$`),m("COMPARATORLOOSE",`^${u[d.GTLT]}\\s*(${u[d.LOOSEPLAIN]})$|^$`),m("COMPARATOR",`^${u[d.GTLT]}\\s*(${u[d.FULLPLAIN]})$|^$`),m("COMPARATORTRIM",`(\\s*)${u[d.GTLT]}\\s*(${u[d.LOOSEPLAIN]}|${u[d.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",m("HYPHENRANGE",`^\\s*(${u[d.XRANGEPLAIN]})\\s+-\\s+(${u[d.XRANGEPLAIN]})\\s*$`),m("HYPHENRANGELOOSE",`^\\s*(${u[d.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[d.XRANGEPLAINLOOSE]})\\s*$`),m("STAR","(<|>)?=?\\s*\\*"),m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},54217:e=>{e.exports=function(e){return this.__data__.get(e)}},54264:(e,t,r)=>{var n=r(49527),i=r(11321),s=r(57201),a=r(42725);e.exports=function(e,t){return function(r,o){var l=a(r)?n:i,u=t?t():{};return l(r,e,s(o,2),u)}}},54313:(e,t,r)=>{var n=r(90257),i=r(57201),s=r(92029),a=Math.max;e.exports=function(e,t,r){var o=null==e?0:e.length;if(!o)return -1;var l=null==r?0:s(r);return l<0&&(l=a(o+l,0)),n(e,i(t,3),l)}},54501:(e,t,r)=>{"use strict";r.d(t,{$:()=>T,B:()=>es,C:()=>_,D:()=>ei,E:()=>W,F:()=>k,G:()=>en,H:()=>eo,I:()=>er,J:()=>ea,K:()=>eC,L:()=>J,M:()=>eN,N:()=>s,O:()=>ee,P:()=>function e(t,r,n,i){if("string"==typeof r){let e=eh(t,r).next(n,i);return e&&e.length?e:t.next(n,i)}if(1===Object.keys(r).length){let s=Object.keys(r),a=e(eh(t,s[0]),r[s[0]],n,i);return a&&a.length?a:t.next(n,i)}let s=[];for(let a of Object.keys(r)){let o=r[a];if(!o)continue;let l=e(eh(t,a),o,n,i);l&&s.push(...l)}return s.length?s:t.next(n,i)},Q:()=>eE,R:()=>p,S:()=>i,T:()=>et,U:()=>ef,V:()=>eM,W:()=>E,X:()=>l,Y:()=>o,Z:()=>c,_:()=>I,a0:()=>e$,b:()=>M,c:()=>R,d:()=>L,e:()=>eS,f:()=>d,g:()=>e_,k:()=>G,m:()=>S,n:()=>V,q:()=>ep,r:()=>eL,s:()=>U,t:()=>y,x:()=>x,z:()=>g});class n{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=".",s="",a="xstate.init",o="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 h(e){setTimeout(()=>{throw e})}let f="function"==typeof Symbol&&Symbol.observable||"@@observable";function p(e){if(v(e))return e;let t=[],r="";for(let n=0;n<e.length;n++){switch(e.charCodeAt(n)){case 92:r+=e[n+1],n++;continue;case 46:t.push(r),r="";
45continue}r+=e[n]}return t.push(r),t}function m(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={},r=t;for(let t=0;t<e.length-1;t++)if(t===e.length-2)r[e[t]]=e[t+1];else{let n=r;r={},n[e[t]]=r}return t}(p(e))}function g(e,t){let r={},n=Object.keys(e);for(let i=0;i<n.length;i++){let s=n[i];r[s]=t(e[s],s,e,i)}return r}function y(e){var t;return void 0===e?[]:v(t=e)?t:[t]}function b(e,t,r,n){return"function"==typeof e?e({context:t,event:r,self:n}):e}function v(e){return Array.isArray(e)}function _(e){var t;return(v(t=e)?t:[t]).map(e=>void 0===e||"string"==typeof e?{target:e}:e)}function w(e){if(void 0!==e&&""!==e)return y(e)}function x(e,t,r){let n="object"==typeof e,i=n?e:void 0;return{next:(n?e.next:e)?.bind(i),error:(n?e.error:t)?.bind(i),complete:(n?e.complete:r)?.bind(i)}}function k(e,t){return`${t}.${e}`}function E(e,t){let r=t.match(/^xstate\.invoke\.(\d+)\.(.*)/);if(!r)return e.implementations.actors[t];let[,n,i]=r,s=e.getStateNodeById(i).config.invoke;return(Array.isArray(s)?s[n]:s).src}function S(e,t){if(t===e||"*"===t)return!0;if(!t.endsWith(".*"))return!1;let r=t.split("."),n=e.split(".");for(let e=0;e<r.length;e++){let t=r[e],i=n[e];if("*"===t)return e===r.length-1;if(t!==i)return!1}return!0}function A(e,t){return`${e.sessionId}.${t}`}let O=0,C=!1,T=1,I=function(e){return e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped",e}({}),D={clock:{setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e)},logger:console.log.bind(console),devTools:!1};
45class j{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 n(this._process.bind(this)),this.observers=new Set,this.eventListeners=new Map,this.logger=void 0,this._processingStatus=I.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 r={...D,...t},{clock:i,logger:s,parent:a,syncSnapshot:o,id:l,systemId:u,inspect:c}=r;this.system=a?a.system:function(e,t){let r=new Map,n=new Map,i=new WeakMap,s=new Set,a={},{clock:o,logger:l}=t,u={schedule:(e,t,r,n,i=Math.random().toString(36).slice(2))=>{let s={source:e,target:t,event:r,delay:n,id:i,startedAt:Date.now()},l=A(e,i);c._snapshot._scheduledEvents[l]=s;let u=o.setTimeout(()=>{delete a[l],delete c._snapshot._scheduledEvents[l],c._relay(e,t,r)},n);a[l]=u},cancel:(e,t)=>{let r=A(e,t),n=a[r];delete a[r],delete c._snapshot._scheduledEvents[r],void 0!==n&&o.clearTimeout(n)},cancelAll:e=>{for(let t in c._snapshot._scheduledEvents){let r=c._snapshot._scheduledEvents[t];r.source===e&&u.cancel(e,r.id)}}},c={_snapshot:{_scheduledEvents:(t?.snapshot&&t.snapshot.scheduler)??{}},_bookId:()=>`x:${O++}`,_register:(e,t)=>(r.set(e,t),e),_unregister:e=>{r.delete(e.sessionId);let t=i.get(e);void 0!==t&&(n.delete(t),i.delete(e))},get:e=>n.get(e),getAll:()=>Object.fromEntries(n.entries()),_set:(e,t)=>{let r=n.get(e);if(r&&r!==t)throw Error(`Actor with system ID '${e}' already exists.`);n.set(e,t),i.set(t,e)},inspect:e=>{let t=x(e);return s.add(t),{unsubscribe(){s.delete(t)}}},_sendInspectionEvent:t=>{if(!s.size)return;let r={...t,rootId:e.sessionId};s.forEach(e=>e.next?.(r))},_relay:(e,t,r)=>{c._sendInspectionEvent({type:"@xstate.event",sourceRef:e,actorRef:t,event:r}),t._send(r)},scheduler:u,getSnapshot:()=>({_scheduledEvents:{...c._snapshot._scheduledEvents}}),start:()=>{let e=c._snapshot._scheduledEvents;for(let t in c._snapshot._scheduledEvents={},e){let{source:r,target:n,event:i,delay:s,id:a}=e[t];u.schedule(r,n,i,s,a)}},_clock:o,_logger:l};return c}(this,{clock:i,logger:s}),c&&!a&&this.system.inspect(x(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=o,this.options=r,this.src=r.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),r=this.eventListeners.get("*");if(t||r)for(let n of[...t?t.values():[],...r?r.values():[]])try{n(e)}catch(e){h(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=C;try{C=!0,e.exec(e.info,e.params)}finally{C=t}};this._processingStatus===I.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 r;for(this._snapshot=e;r=this._deferred.shift();)try{r()}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){h(e)}break;case"done":var n;for(let t of this.observers)try{t.next?.(e)}catch(e){h(e)}this._stopProcedure(),this._complete(),this._doneEvent=(n=this.id,{type:`xstate.done.actor.${n}`,output:this._snapshot.output,actorId:n}
45),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,r){let n=x(e,t,r);if(this._processingStatus!==I.Stopped)this.observers.add(n);else switch(this._snapshot.status){case"done":try{n.complete?.()}catch(e){h(e)}break;case"error":{let e=this._snapshot.error;if(n.error)try{n.error(e)}catch(e){h(e)}else h(e)}}return{unsubscribe:()=>{this.observers.delete(n)}}}on(e,t){let r=this.eventListeners.get(e);r||(r=new Set,this.eventListeners.set(e,r));let n=t.bind(void 0);return r.add(n),{unsubscribe:()=>{r.delete(n)}}}select(e,t=Object.is){return{subscribe:r=>{let n=x(r),i=e(this.getSnapshot());return this.subscribe(r=>{let s=e(r);t(i,s)||(i=s,n.next?.(s))})},get:()=>e(this.getSnapshot())}}start(){if(this._processingStatus===I.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=I.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,r;try{t=this.logic.transition(this._snapshot,e,this._actorScope)}catch(e){r={err:e}}if(r){let{err:e}=r;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===I.Stopped||((this.mailbox.clear(),this._processingStatus===I.NotStarted)?this._processingStatus=I.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){h(e)}this.observers.clear(),this.eventListeners.clear()}_reportError(e){if(!this.observers.size){this._parent||h(e),this.eventListeners.clear();return}let t=!1;for(let r of this.observers){let n=r.error;t||=!n;try{n?.(e)}catch(e){h(e)}}this.observers.clear(),this.eventListeners.clear(),t&&h(e)}_error(e){this._stopProcedure(),this._reportError(e),this._parent&&this.system._relay(this,this._parent,c(this.id,e))}_stopProcedure(){return this._processingStatus!==I.Running||(this.system.scheduler.cancelAll(this),this.mailbox.clear(),this.mailbox=new n(this._process.bind(this)),this._processingStatus=I.Stopped,this.system._unregister(this)),this}_send(e){this._processingStatus!==I.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!==r.g?r.g:void 0;if(e.__xstate__)return e.__xstate__}();t&&t.register(e)})(this)}toJSON(){return{xstate$$type:T,id:this.id}}getPersistedSnapshot(e){return this.logic.getPersistedSnapshot(this._snapshot,e)}[f](){return this}getSnapshot(){return this._snapshot}}function R(e,...[t]){return new j(e,t)}function N(e,t,r,n,{sendId:i}){return[t,{sendId:"function"==typeof i?i(r,n):i},void 0]}function $(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=N,t.execute=$,t}function F(e,t,r,n,{id:i,systemId:s,src:a,input:o,syncSnapshot:l}){let u,c,d="string"==typeof a?E(t.machine,a):a,h="function"==typeof i?i(r):i;return d&&(c="function"==typeof o?o({context:t.context,event:r.event,self:e.self}):o,u=R(d,{id:h,src:a,parent:e.self,syncSnapshot:l,systemId:s,input:c})),[e$(t,{children:{...t.children,[h]:u}}),{id:i,systemId:s,actorRef:u,src:a,input:c},void 0]}function P(e,{actorRef:t}){t&&e.defer(()=>{t._processingStatus!==I.Stopped&&t.start()})}function L(...[e,{id:t,systemId:r,input:n,syncSnapshot:i=!1}={}]){function s(e,t){}return s.type="xstate.spawnChild",s.id=t,s.systemId=r,s.src=e,s.input=n,s.syncSnapshot=i,s.resolve=F,s.execute=P,s}function z(e,t,r,n,{actorRef:i}){let s="function"==typeof i?i(r,n):i,a="string"==typeof s?t.children[s]:s,o=t.children;return a&&(o={...o},delete o[a.id]),[e$(t,{children:o}),a,void 0]}function q(e,t){if(t){if(!function e(t,r){let n=r.getSnapshot();if(n&&"children"in n)for(let r of Object.values(n.children))e(t,r);t.system._unregister(r)}(e,t),t._processingStatus!==I.Running)return void e.stopChild(t);e.defer(()=>{e.stopChild(t)})}}function U(e){function t(e,t){}return t.type="xstate.stopChild",t.actorRef=e,t.resolve=z,t.execute=q,t}function B(e,{context:t,event:r},{guards:n}){return!W(n[0],t,r,e)}function V(e){function t(e,t){return!1}return t.check=B,t.guards=[e],t}function H(e,{context:t,event:r},{guards:n}){return n.every(n=>W(n,t,r,e))}function G(e){function t(e,t){return!1}return t.check=H,t.guards=e,t}function W(e,t,r,n){let{machine:i}=n,s="function"==typeof e,a=s?e:i.implementations.guards["string"==typeof e?e:e.type];if(!s&&!a)throw Error(`Guard '${"string"==typeof e?e:e.type}' is not implemented.'.`);if("function"!=typeof a)return W(a,t,r,n);let o={context:t,event:r},l=s||"string"==typeof e?void 0:"params"in e?"function"==typeof e.params?e.params({context:t,event:r}):e.params:void 0;return"check"in a?a.check(n,o,a):a(o,l)}function Z(e){return"atomic"===e.type||"final"===e.type}function Y(e){return Object.values(e.states).filter(e=>"history"!==e.type)}function K(e,t){let r=[];if(t===e)return r;let n=e.parent;for(;n&&n!==t;)r.push(n),n=n.parent;return r}function J(e){let t=new Set(e),r=X(t);for(let e of t)if("compound"!==e.type||r.get(e)&&r.get(e).length){if("parallel"===e.type){for(let r of Y(e))if("history"!==r.type&&!t.has(r))for(let e of ec(r))t.add(e)}}
45else ec(e).forEach(e=>t.add(e));for(let e of t){let r=e.parent;for(;r;)t.add(r),r=r.parent}return t}function X(e){let t=new Map;for(let r of e)t.has(r)||t.set(r,[]),r.parent&&(t.has(r.parent)||t.set(r.parent,[]),t.get(r.parent).push(r));return t}function Q(e,t){return function e(t,r){let n=r.get(t);if(!n)return{};if("compound"===t.type){let e=n[0];if(!e)return{};if(Z(e))return e.key}let i={};for(let t of n)i[t.key]=e(t,r);return i}(e,X(J(t)))}function ee(e,t){return"compound"===t.type?Y(t).some(t=>"final"===t.type&&e.has(t)):"parallel"===t.type?Y(t).every(t=>ee(e,t)):"final"===t.type}let et=e=>"#"===e[0];function er(e,t){let r=e.transitions.get(t),n=[...e.transitions.keys()].filter(e=>e!==t&&S(t,e)).sort((e,t)=>t.length-e.length).flatMap(t=>e.transitions.get(t));return r?[...r,...n]:n}function en(e){let t=e.config.after;return t?Object.keys(t).flatMap(r=>{let n=t[r],i=Number.isNaN(+r)?r:+r,s=(t=>{var r;let n=(r=e.id,{type:`xstate.after.${t}.${r}`}),i=n.type;return e.entry.push(eL(n,{id:i,delay:t})),e.exit.push(M(i)),i})(i);return y("string"==typeof n?{target:n}:n).map(e=>({...e,event:s,delay:i}))}).map(t=>{let{delay:r}=t;return{...ei(e,t.event,t),delay:r}}):[]}function ei(e,t,r){let n=w(r.target),s=r.reenter??!1,a=function(e,t){if(void 0!==t)return t.map(t=>{if("string"!=typeof t)return t;if(et(t))return e.machine.getStateNodeById(t);let r=t[0]===i;if(r&&!e.parent)return ef(e,t.slice(1));let n=r?e.key+t:t;if(e.parent)try{return ef(e.parent,n)}catch(t){throw Error(`Invalid transition definition for state node '${e.id}':
46${t.message}`)}throw Error(`Invalid target: "${t}" is not a valid target from the root node. Did you mean ".${t}"?`)})}(e,n),o={...r,actions:y(r.actions),guard:r.guard,target:a,source:e,reenter
46:s,eventType:t,toJSON:()=>({...o,source:`#${e.id}`,target:a?a.map(e=>`#${e.id}`):void 0})};return o}function es(e){let t=new Map;if(e.config.on)for(let r of Object.keys(e.config.on)){if(r===s)throw Error('Null events ("") cannot be specified as a transition key. Use `always: { ... }` instead.');let n=e.config.on[r];t.set(r,_(n).map(t=>ei(e,r,t)))}if(e.config.onDone){let r=`xstate.done.state.${e.id}`;t.set(r,_(e.config.onDone).map(t=>ei(e,r,t)))}for(let r of e.invoke){if(r.onDone){let n=`xstate.done.actor.${r.id}`;t.set(n,_(r.onDone).map(t=>ei(e,n,t)))}if(r.onError){let n=`xstate.error.actor.${r.id}`;t.set(n,_(r.onError).map(t=>ei(e,n,t)))}if(r.onSnapshot){let n=`xstate.snapshot.${r.id}`;t.set(n,_(r.onSnapshot).map(t=>ei(e,n,t)))}}for(let r of e.after){let e=t.get(r.eventType);e||(e=[],t.set(r.eventType,e)),e.push(r)}return t}function ea(e){let t=[],r=n=>{Object.values(n).forEach(n=>{if(n.config.route&&n.config.id){let r=n.config.id,i=n.config.route.guard,s=({event:e})=>e.to===`#${r}`,a={...n.config.route,guard:i?G([s,i]):s,target:`#${r}`};t.push(ei(e,"xstate.route",a))}n.states&&r(n.states)})};r(e.states),t.length>0&&e.transitions.set("xstate.route",t)}function eo(e,t){let r="string"==typeof t?e.states[t]:t?e.states[t.target]:void 0;if(!r&&t)throw Error(`Initial state node "${t}" not found on parent state node #${e.id}`);let n={source:e,actions:t&&"string"!=typeof t?y(t.actions):[],eventType:null,reenter:!1,target:r?[r]:[],toJSON:()=>({...n,source:`#${e.id}`,target:r?[`#${r.id}`]:[]})};return n}function el(e){let t=w(e.config.target);return t?{target:t.map(t=>"string"==typeof t?ef(e.parent,t):t)}:e.parent.initial}function eu(e){return"history"===e.type}function ec(e){let t=ed(e);for(let r of t)for(let n of K(r,e))t.add(n);return t}function ed(e){let t=new Set;return!function e(r){if(!t.has(r)){if(t.add(r),"compound"===r.type)e(r.initial.target[0]);else if("parallel"===r.type)for(let t of Y(r))e(t)}}(e),t}function eh(e,t){if(et(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 r=e.states[t];if(!r)throw Error(`Child state '${t}' does not exist on '${e.id}'`);return r}function ef(e,t){if("string"==typeof t&&et(t))try{return e.machine.getStateNodeById(t)}catch{}let r=p(t).slice(),n=e;for(;r.length;){let e=r.shift();if(!e.length)break;n=eh(n,e)}return n}function ep(e,t){if("string"==typeof t){let r=e.states[t];if(!r)throw Error(`State '${t}' does not exist on '${e.id}'`);return[e,r]}let r=Object.keys(t),n=r.map(t=>eh(e,t)).filter(Boolean);return[e.machine.root,e].concat(n,r.reduce((r,n)=>{let i=eh(e,n);if(!i)return r;let s=ep(i,t[n]);return r.concat(s)},[]))}function em(e,t){let r=e;for(;r.parent&&r.parent!==t;)r=r.parent;return r.parent===t}function eg(e,t,r){let n=new Set;for(let i of e){let e=!1,s=new Set;for(let a of n)if(function(e,t){let r=new Set(e),n=new Set(t);for(let e of r)if(n.has(e))return!0;for(let e of n)if(r.has(e))return!0;return!1}(ev([i],t,r),ev([a],t,r)))if(em(i.source,a.source))s.add(a);else{e=!0;break}if(!e){for(let e of s)n.delete(e);n.add(i)}}return Array.from(n)}function ey(e,t){if(!e.target)return[];let r=new Set;for(let n of e.target)if(eu(n))if(t[n.id])for(let e of t[n.id])r.add(e);else for(let e of ey(el(n),t))r.add(e);else r.add(n);return[...r]}function eb(e,t){let r=ey(e,t);if(!r)return;if(!e.reenter&&r.every(t=>t===e.source||em(t,e.source)))return e.source;let n=function(e){let[t,...r]=e;for(let e of K(t,void 0))if(r.every(t=>em(t,e)))return e}(r.concat(e.source));return n||(e.reenter?void 0:e.source.machine.root)}function ev(e,t,r){let n=new Set;for(let i of e)if(i.target?.length){let e=eb(i,r);for(let r of(i.reenter&&i.source===e&&n.add(e),t))em(r,e)&&n.add(r)}return[...n]}function e_(e,t,r,n,i){return ew([{target:[...ed(e)],source:e,reenter
46:!0,actions:[],eventType:null,toJSON:null}],t,r,n,!0,i)}function ew(e,t,r,n,i,s){let a=[];if(!e.length)return[t,a];let o=r.actionExecutor;r.actionExecutor=e=>{a.push(e),o(e)};try{let o=new Set(t._nodes),l=t.historyValue,c=eg(e,o,l),d=t;i||([d,l]=function(e,t,r,n,i,s,a,o){let l,u=e,c=ev(n,i,s);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 r;r="deep"===t.history?t=>Z(t)&&em(t,e):t=>t.parent===e,(l??={...s})[t.id]=Array.from(i).filter(r)}for(let e of c)u=eE(u,t,r,[...e.exit,...e.invoke.map(e=>U(e.id))],a,void 0),i.delete(e);return[u,l||s]}(d,n,r,c,o,l,s,r.actionExecutor)),d=eE(d,n,r,c.flatMap(e=>e.actions),s,void 0),d=function(e,t,r,n,i,s,a,o){let l=e,c=new Set,d=new Set;(function(e,t,r,n){for(let i of e){let e=eb(i,t);for(let s of i.target||[])!eu(s)&&(i.source!==s||i.source!==e||i.reenter)&&(n.add(s),r.add(s)),ex(s,t,r,n);for(let s of ey(i,t)){let a=K(s,e);e?.type==="parallel"&&a.push(e),ek(n,t,r,a,!i.source.parent&&i.reenter?void 0:e)}}})(n,a,d,c),o&&d.add(e.machine.root);let h=new Set;for(let e of[...c].sort((e,t)=>e.order-t.order)){i.add(e);let n=[];for(let t of(n.push(...e.entry),e.invoke))n.push(L(t.src,{...t,syncSnapshot:!!t.onSnapshot}));if(d.has(e)){let t=e.initial.actions;n.push(...t)}if(l=eE(l,t,r,n,s,e.invoke.map(e=>e.id)),"final"===e.type){let n=e.parent,a=n?.type==="parallel"?n:n?.parent,o=a||e;for(n?.type==="compound"&&s.push(u(n.id,void 0!==e.output?b(e.output,l.context,t,r.self):void 0));a?.type==="parallel"&&!h.has(a)&&ee(i,a);)h.add(a),s.push(u(a.id)),o=a,a=a.parent;if(a)continue;l=e$(l,{status:"done",output:function(e,t,r,n,i){if(void 0===n.output)return;let s=u(i.id,void 0!==i.output&&i.parent?b(i.output,e.context,t,r.self):void 0);return b(n.output,e.context,s,r.self)}(l,t,r,l.machine.root,o)})}}return l}(d,n,r,c,o,s,l,i);let h=[...o];"done"===d.status&&(d=eE(d,n,r,h.sort((e,t)=>t.order-e.order).flatMap(e=>e.exit),s,void 0));try{if(l===t.historyValue&&function(e,t){if(e.length!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}(t._nodes,o))return[d,a];return[e$(d,{_nodes:h,historyValue:l}),a]}catch(e){throw e}}finally{r.actionExecutor=o}}function ex(e,t,r,n){var i,s,a,o;if(eu(e))if(t[e.id]){let a=t[e.id];for(let e of a)n.add(e),ex(e,t,r,n);for(let o of a){i=o,s=e.parent,ek(n,t,r,K(i,s))}}else{let i=el(e);for(let s of i.target)n.add(s),i===e.parent?.initial&&r.add(e.parent),ex(s,t,r,n);for(let s of i.target){a=s,o=e.parent,ek(n,t,r,K(a,o))}}else if("compound"===e.type){let[i]=e.initial.target;eu(i)||(n.add(i),r.add(i)),ex(i,t,r,n),ek(n,t,r,K(i,e))}else if("parallel"===e.type)for(let i of Y(e).filter(e=>!eu(e)))[...n].some(e=>em(e,i))||(eu(i)||(n.add(i),r.add(i)),ex(i,t,r,n))}function ek(e,t,r,n,i){for(let s of n)if((!i||em(s,i))&&e.add(s),"parallel"===s.type)for(let n of Y(s).filter(e=>!eu(e)))[...e].some(e=>em(e,n))||(e.add(n),ex(n,t,r,e))}function eE(e,t,r,n,i,s){let a=s?[]:void 0,o=function e(t,r,n,i,s,a){let{machine:o}=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,o.implementations.actions[u]),d={context:l.context,event:r,self:n.self,system:n.system},h=i||"string"==typeof t?void 0:"params"in t?"function"==typeof t.params?t.params({context:l.context,event:r}):t.params:void 0;if(!c||!("resolve"in c)){n.actionExecutor({type:"string"==typeof t?t:"object"==typeof t?t.type:t.name||"(anonymous)",info:d,params:h,exec:c}
46);continue}let[f,p,m]=c.resolve(n,l,d,h,c,s);l=f,"retryResolve"in c&&a?.push([c,p]),"execute"in c&&n.actionExecutor({type:c.type,info:d,params:p,exec:c.execute.bind(null,n,p)}),m&&(l=e(l,r,n,m,s,a))}return l}(e,t,r,n,{internalQueue:i,deferredActorIds:s},a);return a?.forEach(([e,t])=>{e.retryResolve(r,o,t)}),o}function eS(e,t,r,n){let i=e,s=[];function o(e,t,n){r.system._sendInspectionEvent({type:"@xstate.microstep",actorRef:r.self,event:t,snapshot:e[0],_transitions:n}),s.push(e)}if(t.type===l)return o([i=e$(eA(i,t,r),{status:"stopped"}),[]],t,[]),{snapshot:i,microsteps:s};let u=t;if(u.type!==a){let t=u,a=t.type.startsWith("xstate.error.actor"),l=eO(t,i);if(a&&!l.length)return o([i=e$(e,{status:"error",error:t.error}),[]],t,[]),{snapshot:i,microsteps:s};let c=ew(l,e,r,u,!1,n);i=c[0],o(c,t,l)}let c=!0,d=e.machine.options?.maxIterations??1/0,h=0;for(;"active"===i.status;){if(++h>d)throw Error(`Infinite loop detected: the machine has processed more than ${d} microsteps without reaching a stable state. This usually happens when there's a cycle of transitions (e.g., eventless transitions or raised events causing state A -> B -> C -> A).`);let e=c?function(e,t){let r=new Set;for(let n of e._nodes.filter(Z))r:for(let i of[n].concat(K(n,void 0)))if(i.always){for(let n of i.always)if(void 0===n.guard||W(n.guard,e.context,t,e)){r.add(n);break r}}return eg(Array.from(r),new Set(e._nodes),e.historyValue)}(i,u):[],t=e.length?i:void 0;if(!e.length){if(!n.length)break;e=eO(u=n.shift(),i)}let s=ew(e,i,r,u,!1,n);c=(i=s[0])!==t,o(s,u,e)}return"active"!==i.status&&eA(i,u,r),{snapshot:i,microsteps:s}}function eA(e,t,r){return eE(e,t,r,Object.values(e.children).map(e=>U(e)),[],void 0)}function eO(e,t){return t.machine.getTransitionData(t,e)}function eC(e,t){let r=J(ep(e,t));return Q(e,[...r])}let eT=function(e){return function e(t,r){let n=m(t),i=m(r);return"string"==typeof i?"string"==typeof n&&i===n:"string"==typeof n?n in i:Object.keys(n).every(t=>t in i&&e(n[t],i[t]))}(e,this.value)},eI=function(e){return this.tags.has(e)},eD=function(e){let t=this.machine.getTransitionData(this,e);return!!t?.length&&t.some(e=>void 0!==e.target||e.actions.length)},ej=function(){let{_nodes:e,tags:t,machine:r,getMeta:n,toJSON:i,can:s,hasTag:a,matches:o,...l}=this;return{...l,tags:Array.from(t)}},eR=function(){return this._nodes.reduce((e,t)=>(void 0!==t.meta&&(e[t.id]=t.meta),e),{})};function eN(e,t){return{status:e.status,output:e.output,error:e.error,machine:t,context:e.context,_nodes:e._nodes,value:Q(t.root,e._nodes),tags:new Set(e._nodes.flatMap(e=>e.tags)),children:e.children,historyValue:e.historyValue||{},matches:eT,hasTag:eI,can:eD,getMeta:eR,toJSON:ej}}function e$(e,t={}){return eN({...e,...t},e.machine)}function eM(e,t){let{_nodes:r,tags:n,machine:i,children:s,context:a,can:o,hasTag:l,matches:u,getMeta:c,toJSON:d,...h}=e,f={};for(let e in s){let r=s[e];f[e]={snapshot:r.getPersistedSnapshot(t),src:r.src,systemId:r.systemId,syncSnapshot:r._syncSnapshot}}return{...h,context:function e(t){let r;for(let n in t){let i=t[n];if(i&&"object"==typeof i)if("sessionId"in i&&"send"in i&&"ref"in i)(r??=Array.isArray(t)?t.slice():{...t})[n]={xstate$$type:T,id:i.id};else{let s=e(i);s!==i&&((r??=Array.isArray(t)?t.slice():{...t})[n]=s)}}return r??t}(a),children:f,historyValue:function(e){if("object"!=typeof e||null===e)return{};let t={};for(let r in e){let n=e[r];Array.isArray(n)&&(t[r]=n.map(e=>({id:e.id})))}return t}(h.historyValue)}}function eF(e,t,r,n,{event:i,id:s,delay:a},{internalQueue:o}){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(r,n):i;if("string"==typeof a){let e=u&&u[a];l="function"==typeof e?e(r,n):e}else l="function"==typeof a?a(r,n):a;return"number"!=typeof l&&o.push(c),[t,{event:c,id:s,delay:l},void 0]}function eP(e,t){let{event:r,delay:n,id:i}=t;if("number"==typeof n)return void e.defer(()=>{let t=e.self;e.system.scheduler.schedule(t,t,r,n,i)})}function eL(e,t){function r(e,t){}return r.type="xstate.raise",r.event=e,r.id=t?.id,r.delay=t?.delay,r.resolve=eF,r.execute=eP,r}},54661:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var r=e.length,n=new e.constructor(r);return r&&"string"==typeof e[0]&&t.call(e,"index")&&(n.index=e.index,n.input=e.input),n}},55076:(e,t,r)=>{"use strict";r.d(t,{Q_:()=>Z});let n=e=>"string"==typeof e,i=()=>{let e,t,r=new Promise((r,n)=>{e=r,t=n});return r.resolve=e,r.reject=t,r},s=e=>null==e?"":""+e,a=/###/g,o=e=>e&&e.indexOf("###")>-1?e.replace(a,"."):e,l=e=>!e||n(e),u=(e,t,r)=>{let i=n(t)?t.split("."):t,s=0;for(;s<i.length-1;){if(l(e))return{};
46let t=o(i[s]);!e[t]&&r&&(e[t]=new r),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++s}return l(e)?{}:{obj:e,k:o(i[s])}},c=(e,t,r)=>{let{obj:n,k:i}=u(e,t,Object);if(void 0!==n||1===t.length){n[i]=r;return}let s=t[t.length-1],a=t.slice(0,t.length-1),o=u(e,a,Object);for(;void 0===o.obj&&a.length;)s=`${a[a.length-1]}.${s}`,(o=u(e,a=a.slice(0,a.length-1),Object))&&o.obj&&void 0!==o.obj[`${o.k}.${s}`]&&(o.obj=void 0);o.obj[`${o.k}.${s}`]=r},d=(e,t)=>{let{obj:r,k:n}=u(e,t);if(r)return r[n]},h=(e,t,r)=>{for(let i in t)"__proto__"!==i&&"constructor"!==i&&(i in e?n(e[i])||e[i]instanceof String||n(t[i])||t[i]instanceof String?r&&(e[i]=t[i]):h(e[i],t[i],r):e[i]=t[i]);return e},f=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var p={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};let m=e=>n(e)?e.replace(/[&<>"'\/]/g,e=>p[e]):e;class g{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 r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}let y=[" ",",","?","!",";"],b=new g(20),v=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];let n=t.split(r),i=e;for(let e=0;e<n.length;){let t;if(!i||"object"!=typeof i)return;let s="";for(let a=e;a<n.length;++a)if(a!==e&&(s+=r),s+=n[a],void 0!==(t=i[s])){if(["string","number","boolean"].indexOf(typeof t)>-1&&a<n.length-1)continue;e+=a-e+1;break}i=t}return i},_=e=>e&&e.replace("_","-"),w={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 x{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||w,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,r,i){return i&&!this.debug?null:(n(e[0])&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new x(this.logger,{...{prefix:`${this.prefix}:${e}:`},...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new x(this.logger,e)}}var k=new x;class E{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let r=this.observers[e].get(t)||0;this.observers[e].set(t,r+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,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(e=>{let[t,n]=e;for(let e=0;e<n;e++)t(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(t=>{let[n,i]=t;for(let t=0;t<i;t++)n.apply(n,[e,...r])})}}class S extends E{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,r){let i,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=void 0!==s.keySeparator?s.keySeparator:this.options.keySeparator,o=void 0!==s.ignoreJSONStructure?s.ignoreJSONStructure:this.options.ignoreJSONStructure;e.indexOf(".")>-1?i=e.split("."):(i=[e,t],r&&(Array.isArray(r)?i.push(...r):n(r)&&a?i.push(...r.split(a)):i.push(r)));let l=d(this.data,i);return(!l&&!t&&!r&&e.indexOf(".")>-1&&(e=i[0],t=i[1],r=i.slice(2).join(".")),!l&&o&&n(r))?v(this.data&&this.data[e]&&this.data[e][t],r,a):l}addResource(e,t,r,n){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},s=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,a=[e,t];r&&(a=a.concat(s?r.split(s):r)),e.indexOf(".")>-1&&(a=e.split("."),n=t,t=a[1]),this.addNamespaces(t),c(this.data,a,n),i.silent||this.emit
46("added",e,t,r,n)}addResources(e,t,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(let i in r)(n(r[i])||Array.isArray(r[i]))&&this.addResource(e,t,i,r[i],{silent:!0});i.silent||this.emit("added",e,t,r)}addResourceBundle(e,t,r,n,i){let s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),n=r,r=t,t=a[1]),this.addNamespaces(t);let o=d(this.data,a)||{};s.skipCopy||(r=JSON.parse(JSON.stringify(r))),n?h(o,r,i):o={...o,...r},c(this.data,a,o),s.silent||this.emit("added",e,t,r)}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,r,n,i){return e.forEach(e=>{this.processors[e]&&(t=this.processors[e].process(t,r,n,i))}),t}};let O={};class C extends E{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),((e,t,r)=>{e.forEach(e=>{t[e]&&(r[e]=t[e])})})(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
46i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=k.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 r=this.resolve(e,t);return r&&void 0!==r.res}extractFromKey(e,t){let r=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");let i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,s=t.ns||this.options.defaultNS||[],a=r&&e.indexOf(r)>-1,o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!((e,t,r)=>{t=t||"",r=r||"";let n=y.filter(e=>0>t.indexOf(e)&&0>r.indexOf(e));if(0===n.length)return!0;let i=b.getRegExp(`(${n.map(e=>"?"===e?"\\?":e).join("|")})`),s=!i.test(e);if(!s){let t=e.indexOf(r);t>0&&!i.test(e.substring(0,t))&&(s=!0)}return s})(e,r,i);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:n(s)?[s]:s};let a=e.split(r);(r!==i||r===i&&this.options.ns.indexOf(a[0])>-1)&&(s=a.shift()),e=a.join(i)}return{key:e,namespaces:n(s)?[s]:s}}translate(e,t,r){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,s=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:a,namespaces:o}=this.extractFromKey(e[e.length-1],t),l=o[o.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),h=d&&d.res,f=d&&d.usedKey||a,p=d&&d.exactUsedKey||a,m=Object.prototype.toString.apply(h),g=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,b=!n(h)&&"boolean"!=typeof h&&"number"!=typeof h;if(y&&h&&b&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(m)&&!(n(g)&&Array.isArray(h))){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(f,h,{...t,ns:o}):`key '${a} (${this.language})' returned an object instead of string.`;return i?(d.res=e,d.usedParams=this.getUsedParamsDetails(t),d):e}if(s){let e=Array.isArray(h),r=e?[]:{},n=e?p:f;for(let e in h)if(Object.prototype.hasOwnProperty.call(h,e)){let i=`${n}${s}${e}`;r[e]=this.translate(i,{...t,joinArrays:!1,ns:o}),r[e]===i&&(r[e]=h[e])}h=r}}else if(y&&n(g)&&Array.isArray(h))(h=h.join(g))&&(h=this.extendTranslation(h,e,t,r));else{let i=!1,o=!1,c=void 0!==t.count&&!n(t.count),f=C.hasDefaultValue(t),p=c?this.pluralResolver.getSuffix(u,t.count,t):"",m=t.ordinal&&c?this.pluralResolver.getSuffix(u,t.count,{ordinal:!1}):"",g=c&&!t.ordinal&&0===t.count&&this.pluralResolver.shouldUseIntlApi(),y=g&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${p}`]||t[`defaultValue${m}`]||t.defaultValue;!this.isValidLookup(h)&&f&&(i=!0,h=y),this.isValidLookup(h)||(o=!0,h=a);let b=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&o?void 0:h,v=f&&y!==h&&this.options.updateMissing;if(o||i||v){if(this.logger.log(v?"updateKey":"missingKey",u,l,a,v?y:h),s){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=[],r=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&r&&r[0])for(let t=0;t<r.length;t++)e.push(r[t]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(t.lng||this.language):e.push(t.lng||this.language);let n=(e,r,n)=>{let i=f&&n!==h?n:b;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,r,i,v,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,l,r,i,v,t),this.emit
46("missingKey",e,l,r,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&c?e.forEach(e=>{let r=this.pluralResolver.getSuffixes(e,t);g&&t[`defaultValue${this.options.pluralSeparator}zero`]&&0>r.indexOf(`${this.options.pluralSeparator}zero`)&&r.push(`${this.options.pluralSeparator}zero`),r.forEach(r=>{n([e],a+r,t[`defaultValue${r}`]||y)})}):n(e,a,y))}h=this.extendTranslation(h,e,t,d,r),o&&h===a&&this.options.appendNamespaceToMissingKey&&(h=`${l}:${a}`),(o||i)&&this.options.parseMissingKeyHandler&&(h="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${a}`:a,i?h:void 0):this.options.parseMissingKeyHandler(h))}return i?(d.res=h,d.usedParams=this.getUsedParamsDetails(t),d):h}extendTranslation(e,t,r,i,s){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){let o;r.interpolation&&this.interpolator.init({...r,...{interpolation:{...this.options.interpolation,...r.interpolation}}});let l=n(e)&&(r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(l){let t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let u=r.replace&&!n(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(u={...this.options.interpolation.defaultVariables,...u}),e=this.interpolator.interpolate(e,u,r.lng||this.language||i.usedLng,r),l){let t=e.match(this.interpolator.nestingRegexp);o<(t&&t.length)&&(r.nest=!1)}!r.lng&&"v1"!==this.options.compatibilityAPI&&i&&i.res&&(r.lng=this.language||i.usedLng),!1!==r.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];return s&&s[0]===n[0]&&!r.context?(a.logger.warn(`It seems you are nesting recursively key: ${n[0]} in key: ${t[0]}`),null):a.translate(...n,t)},r)),r.interpolation&&this.interpolator.reset()}let o=r.postProcess||this.options.postProcess,l=n(o)?[o]:o;return null!=e&&l&&l.length&&!1!==r.applyPostProcessor&&(e=A.handle(l,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e){let t,r,i,s,a,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(t))return;let l=this.extractFromKey(e,o),u=l.key;r=u;let c=l.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));let d=void 0!==o.count&&!n(o.count),h=d&&!o.ordinal&&0===o.count&&this.pluralResolver.shouldUseIntlApi(),f=void 0!==o.context&&(n(o.context)||"number"==typeof o.context)&&""!==o.context,p=o.lngs?o.lngs:this.languageUtils.toResolveHierarchy(o.lng||this.language,o.fallbackLng);
46c.forEach(e=>{this.isValidLookup(t)||(a=e,!O[`${p[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(O[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" 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(r=>{let n;if(this.isValidLookup(t))return;s=r;let a=[u];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(a,u,r,e,o);else{let e;d&&(e=this.pluralResolver.getSuffix(r,o.count,o));let t=`${this.options.pluralSeparator}zero`,n=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(a.push(u+e),o.ordinal&&0===e.indexOf(n)&&a.push(u+e.replace(n,this.options.pluralSeparator)),h&&a.push(u+t)),f){let r=`${u}${this.options.contextSeparator}${o.context}`;a.push(r),d&&(a.push(r+e),o.ordinal&&0===e.indexOf(n)&&a.push(r+e.replace(n,this.options.pluralSeparator)),h&&a.push(r+t))}}for(;n=a.pop();)this.isValidLookup(t)||(i=n,t=this.getResource(r,e,n,o))}))})}),{res:t,usedKey:r,exactUsedKey:i,usedLng:s,usedNS:a}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.replace&&!n(e.replace),r=t?e.replace:e;if(t&&void 0!==e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!t)for(let e of(r={...r},["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"]))delete r[e];return r}static hasDefaultValue(e){let t="defaultValue";for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t===r.substring(0,t.length)&&void 0!==e[r])return!0;return!1}}let T=e=>e.charAt(0).toUpperCase()+e.slice(1);class I{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=k.create("languageUtils")}getScriptPartFromCode(e){if(!(e=_(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=_(e))||0>e.indexOf("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(n(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"],r=e.split("-");return this.options.lowerCaseLng?r=r.map(e=>e.toLowerCase()):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=T(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=T(r[1].toLowerCase())),t.indexOf(r[2].toLowerCase())>-1&&(r[2]=T(r[2].toLowerCase()))),r.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 r=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(r))&&(t=r)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>{if(e===r||!(0>e.indexOf("-")&&0>r.indexOf("-"))&&(e.indexOf("-")>0&&0>r.indexOf("-")&&e.substring(0,e.indexOf("-"))===r||0===e.indexOf(r)&&r.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)),n(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let r=e[t];
46return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}toResolveHierarchy(e,t){let r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),i=[],s=e=>{e&&(this.isSupportedCode(e)?i.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return n(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&s(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&s(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&s(this.getLanguagePartFromCode(e))):n(e)&&s(this.formatLanguageCode(e)),r.forEach(e=>{0>i.indexOf(e)&&s(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}],j={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)},R=["v1","v2","v3"],N=["v4"],$={zero:0,one:1,two:2,few:3,many:4,other:5};class M{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=k.create("pluralResolver"),(!this.options.compatibilityJSON||N.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(r=>{e[r]={numbers:t.nr,plurals:j[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 r,n=_("dev"===e?"en":e),i=t.ordinal?"ordinal":"cardinal",s=JSON.stringify({cleanedCode:n,type:i});if(s in this.pluralRulesCache)return this.pluralRulesCache[s];try{r=new Intl.PluralRules(n,{type:i})}catch(i){if(!e.match(/-|_/))return;let n=this.languageUtils.getLanguagePartFromCode(e);r=this.getRule(n,t)}return this.pluralRulesCache[s]=r,r}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,t);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};
46return this.getSuffixes(e,r).map(e=>`${t}${e}`)}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,t);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((e,t)=>$[e]-$[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):r.numbers.map(r=>this.getSuffix(e,r,t)):[]}getSuffix(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.getRule(e,r);return n?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${n.select(t)}`:this.getSuffixRetroCompatible(n,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){let r=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),n=e.numbers[r];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===n?n="plural":1===n&&(n=""));let i=()=>this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString();return"v1"===this.options.compatibilityJSON?1===n?"":"number"==typeof n?`_plural_${n.toString()}`:i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?i():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}
46shouldUseIntlApi(){return!R.includes(this.options.compatibilityJSON)}}let F=function(e,t,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",s=!(arguments.length>4)||void 0===arguments[4]||arguments[4],a=((e,t,r)=>{let n=d(e,r);return void 0!==n?n:d(t,r)})(e,t,r);return!a&&s&&n(r)&&void 0===(a=v(e,r,i))&&(a=v(t,r,i)),a},P=e=>e.replace(/\$/g,"$$$$");class L{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=k.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:r,useRawValueToEscape:n,prefix:i,prefixEscaped:s,suffix:a,suffixEscaped:o,formatSeparator:l,unescapeSuffix:u,unescapePrefix:c,nestingPrefix:d,nestingPrefixEscaped:h,nestingSuffix:p,nestingSuffixEscaped:g,nestingOptionsSeparator:y,maxReplaces:b,alwaysFormat:v}=e.interpolation;this.escape=void 0!==t?t:m,this.escapeValue=void 0===r||r,this.useRawValueToEscape=void 0!==n&&n,this.prefix=i?f(i):s||"{{",this.suffix=a?f(a):o||"}}",this.formatSeparator=l||",",this.unescapePrefix=u?"":c||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=d?f(d):h||f("$t("),this.nestingSuffix=p?f(p):g||f(")"),this.nestingOptionsSeparator=y||",",this.maxReplaces=b||1e3,this.alwaysFormat=void 0!==v&&v,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,r,i){let a,o,l,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(0>e.indexOf(this.formatSeparator)){let n=F(t,u,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(n,void 0,r,{...i,...t,interpolationkey:e}):n}let n=e.split(this.formatSeparator),s=n.shift().trim(),a=n.join(this.formatSeparator).trim();return this.format(F(t,u,s,this.options.keySeparator,this.options.ignoreJSONStructure),a,r,{...i,...t,interpolationkey:s})};this.resetRegExp();let d=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,h=i&&i.interpolation&&void 0!==i.interpolation.skipOnVariables?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>P(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?P(this.escape(e)):P(e)}].forEach(t=>{for(l=0;a=t.regex.exec(e);){let r=a[1].trim();if(void 0===(o=c(r)))if("function"==typeof d){let t=d(e,a,i);o=n(t)?t:""}else if(i&&Object.prototype.hasOwnProperty.call(i,r))o="";else if(h){o=a[0];continue}else this.logger.warn(`missed to pass in variable ${r} for interpolating ${e}`),o="";else n(o)||this.useRawValueToEscape||(o=s(o));let u=t.safeValue(o);if(e=e.replace(a[0],u),h?(t.regex.lastIndex+=o.length,t.regex.lastIndex-=a[0].length):t.regex.lastIndex=0,++l>=this.maxReplaces)break}}),e}nest(e,t){let r,i,a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=(e,t)=>{let r=this.nestingOptionsSeparator;if(0>e.indexOf(r))return e;let n=e.split(RegExp(`${r}[ ]*{`)),i=`{${n[1]}`;e=n[0];let s=(i=this.interpolate(i,a)).match(/'/g),o=i.match(/"/g);(s&&s.length%2==0&&!o||o.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}${r}${i}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let u=[];(a=(a={...o}).replace&&!n(a.replace)?a.replace:a).applyPostProcessor=!1,delete a.defaultValue;let c=!1;if(-1!==r[0].indexOf(this.formatSeparator)&&!/{.*}/.test(r[1])){let e=r[1].split(this.formatSeparator).map(e=>e.trim());r[1]=e.shift(),u=e,c=!0}if((i=t(l.call(this,r[1].trim(),a),a))&&r[0]===e&&!n(i))return i;n(i)||(i=s(i)),i||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}
46`),i=""),c&&(i=u.reduce((e,t)=>this.format(e,t,o.lng,{...o,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}}let z=e=>{let t={};return(r,n,i)=>{let s=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(s={...s,[i.interpolationkey]:void 0});let a=n+JSON.stringify(s),o=t[a];return o||(o=e(_(n),i),t[a]=o),o(r)}};class q{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=k.create("formatter"),this.options=e,this.formats={number:z((e,t)=>{let r=new Intl.NumberFormat(e,{...t});return e=>r.format(e)}),currency:z((e,t)=>{let r=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>r.format(e)}),datetime:z((e,t)=>{let r=new Intl.DateTimeFormat(e,{...t});return e=>r.format(e)}),relativetime:z((e,t)=>{let r=new Intl.RelativeTimeFormat(e,{...t});return e=>r.format(e,t.range||"day")}),list:z((e,t)=>{let r=new Intl.ListFormat(e,{...t});return e=>r.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()]=z(t)}format(e,t,r){let n=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:s}=(e=>{let t=e.toLowerCase().trim(),r={};if(e.indexOf("(")>-1){let n=e.split("(");t=n[0].toLowerCase().trim();let i=n[1].substring(0,n[1].length-1);"currency"===t&&0>i.indexOf(":")?r.currency||(r.currency=i.trim()):"relativetime"===t&&0>i.indexOf(":")?r.range||(r.range=i.trim()):i.split(";").forEach(e=>{if(e){let[t,...n]=e.split(":"),i=n.join(":").trim().replace(/^'+|'+$/g,""),s=t.trim();r[s]||(r[s]=i),"false"===i&&(r[s]=!1),"true"===i&&(r[s]=!0),isNaN(i)||(r[s]=parseInt(i,10))}})}return{formatName:t,formatOptions:r}})(t);if(this.formats[i]){let t=e;try{let a=n&&n.formatParams&&n.formatParams[n.interpolationkey]||{},o=a.locale||a.lng||n.locale||n.lng||r;t=this.formats[i](e,o,{...s,...n,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${i}`),e},e)}}class U extends E{constructor(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=r,this.languageUtils=r.languageUtils,this.options=n,this.logger=k.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,n.backend,n)}queueLoad(e,t,r,n){let i={},s={},a={},o={};return e.forEach(e=>{let n=!0;t.forEach(t=>{let a=`${e}|${t}`;!r.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===s[a]&&(s[a]=!0):(this.state[a]=1,n=!1,void 0===s[a]&&(s[a]=!0),void 0===i[a]&&(i[a]=!0),void 0===o[t]&&(o[t]=!0)))}),n||(a[e]=!0)}),(Object.keys(i).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(i),pending:Object.keys(s),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(o)}}loaded(e,t,r){let n=e.split("|"),i=n[0],s=n[1];t&&this.emit("failedLoading",i,s,t),!t&&r&&this.store.addResourceBundle(i,s,r,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&r&&(this.state[e]=0);let a={};this.queue.forEach(r=>{((e,t,r,n)=>{let{obj:i,k:s}=u(e,t,Object);i[s]=i[s]||[],i[s].push(r)})(r.loaded,[i],s),void 0!==r.pending[e]&&(delete r.pending[e],r.pendingCount--),t&&r.errors.push(t),0!==r.pendingCount||r.done||(Object.keys(r.loaded).forEach(e=>{a[e]||(a[e]={});let t=r.loaded[e];t.length&&t.forEach(t=>{void 0===a[e][t]&&(a[e][t]=!0)})}),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())}
46),this.emit("loaded",a),this.queue=this.queue.filter(e=>!e.done)}read(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!e.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:r,tried:n,wait:i,callback:s});this.readingCalls++;let a=(a,o)=>{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&&o&&n<this.maxRetries)return void setTimeout(()=>{this.read.call(this,e,t,r,n+1,2*i,s)},i);s(a,o)},o=this.backend[r].bind(this.backend);if(2===o.length){try{let r=o(e,t);r&&"function"==typeof r.then?r.then(e=>a(null,e)).catch(a):a(null,r)}catch(e){a(e)}return}return o(e,t,a)}prepareLoading(e,t){let r=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();n(e)&&(e=this.languageUtils.toResolveHierarchy(e)),n(t)&&(t=[t]);let s=this.queueLoad(e,t,r,i);if(!s.toLoad.length)return s.pending.length||i(),null;s.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,r){this.prepareLoading(e,t,{},r)}reload(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),n=r[0],i=r[1];this.read(n,i,"read",void 0,void 0,(r,s)=>{r&&this.logger.warn(`${t}loading namespace ${i} for language ${n} failed`,r),!r&&s&&this.logger.log(`${t}loaded namespace ${i} for language ${n}`,s),this.loaded(e,r,s)})}saveMissing(e,t,r,n,i){let s=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 "${r}" 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!=r&&""!==r){if(this.backend&&this.backend.create){let o={...s,isUpdate:i},l=this.backend.create.bind(this.backend);if(l.length<6)try{let i;(i=5===l.length?l(e,t,r,n,o):l(e,t,r,n))&&"function"==typeof i.then?i.then(e=>a(null,e)).catch(a):a(null,i)}catch(e){a(e)}else l(e,t,r,n,a,o)}e&&e[0]&&this.store.addResource(e[0],t,r,n)}}}let B=()=>({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]),n(e[1])&&(t.defaultValue=e[1]),n(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){let r=e[3]||e[2];Object.keys(r).forEach(e=>{t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),V=e=>(n(e.ns)&&(e.ns=[e.ns]),n(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),n(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),H=()=>{};class G extends E{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=k,this.modules={external:[]},(e=>
46{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]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof t&&(r=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&(n(t.ns)?t.defaultNS=t.ns:0>t.ns.indexOf("translation")&&(t.defaultNS=t.ns[0]));let s=B();this.options={...s,...this.options,...V(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...s.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?k.init(a(this.modules.logger),this.options):k.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=q);let r=new I(this.options);this.store=new S(this.options.resources,this.options);let n=this.services;n.logger=k,n.resourceStore=this.store,n.languageUtils=r,n.pluralResolver=new M(r,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),t&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(n.formatter=a(t),n.formatter.init(n,this.options),this.options.interpolation.format=n.formatter.format.bind(n.formatter)),n.interpolator=new L(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new U(a(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on("*",function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];e.emit(t,...n)}),this.modules.languageDetector&&(n.languageDetector=a(this.modules.languageDetector),n.languageDetector.init&&n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=a(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new C(this.services,this.options),this.translator.on("*",function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];e.emit(t,...n)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,r||(r=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 o=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),o.resolve(t),r(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),o}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:H,r=t,i=n(e)?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(i&&"cimode"===i.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return r();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
46=>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),r(e)})}else r(null)}reloadResources(e,t,r){let n=i();return"function"==typeof e&&(r=e,e=void 0),"function"==typeof t&&(r=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),r||(r=H),this.services.backendConnector.reload(e,t,e=>{n.resolve(),r(e)}),n}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 r=this;this.isLanguageChangingTo=e;let s=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)},o=(e,n)=>{n?(a(n),this.translator.changeLanguage(n),this.isLanguageChangingTo=void 0,this.emit("languageChanged",n),this.logger.log("languageChanged",n)):this.isLanguageChangingTo=void 0,s.resolve(function(){return r.t(...arguments)}),t&&t(e,function(){return r.t(...arguments)})},l=t=>{e||t||!this.services.languageDetector||(t=[]);let r=n(t)?t:this.services.languageUtils.getBestMatchFromCodes(t);r&&(this.language||a(r),this.translator.language||this.translator.changeLanguage(r),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(r)),this.loadResources(r,e=>{o(e,r)})};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()),s}getFixedT(e,t,r){var i=this;let s=function(e,t){let n,a;if("object"!=typeof t){for(var o=arguments.length,l=Array(o>2?o-2:0),u=2;u<o;u++)l[u-2]=arguments[u];n=i.options.overloadTranslationOptionHandler([e,t].concat(l))}else n={...t};n.lng=n.lng||s.lng,n.lngs=n.lngs||s.lngs,n.ns=n.ns||s.ns,""!==n.keyPrefix&&(n.keyPrefix=n.keyPrefix||r||s.keyPrefix);let c=i.options.keySeparator||".";return a=n.keyPrefix&&Array.isArray(e)?e.map(e=>`${n.keyPrefix}${c}${e}`):n.keyPrefix?`${n.keyPrefix}${c}${e}`:e,i.t(a,n)};return n(e)?s.lng=e:s.lngs=e,s.ns=t,s.keyPrefix=r,s}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;
46if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let r=t.lng||this.resolvedLanguage||this.languages[0],n=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;let s=(e,t)=>{let r=this.services.backendConnector.state[`${e}|${t}`];return -1===r||0===r||2===r};if(t.precheck){let e=t.precheck(this,s);if(void 0!==e)return e}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(r,e)&&(!n||s(i,e)))}loadNamespaces(e,t){let r=i();return this.options.ns?(n(e)&&(e=[e]),e.forEach(e=>{0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}loadLanguages(e,t){let r=i();n(e)&&(e=[e]);let s=this.options.preload||[],a=e.filter(e=>0>s.indexOf(e)&&this.services.languageUtils.isSupportedCode(e));return a.length?(this.options.preload=s.concat(a),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(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 I(B())).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 G(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,r=e.forkResourceStore;r&&delete e.forkResourceStore;let n={...this.options,...e,isClone:!0},i=new G(n);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)},r&&(i.store=new S(this.store.data,n),i.services.resourceStore=i.store),i.translator=new C(i.services,n),i.translator.on("*",function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];i.emit(e,...r)}),i.init(n,t),i.translator.options=n,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 W=G.createInstance();W.createInstance=G.createInstance;let Z=W.createInstance;W.dir,W.init,W.loadResources,W.reloadResources,W.use,W.changeLanguage,W.getFixedT,W.t,W.exists,W.setDefaultNamespace,W.hasLoadedNamespace,W.loadNamespaces,W.loadLanguages},55442:e=>{function t(e,t,r,n){return Math.round(e/r)+" "+n+(t>=1.5*r?"s":"")}e.exports=function(e,r){r=r||{};var n,i,s,a,o=typeof e;if("string"===o&&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"===o&&isFinite(e)){return r.long?(i=Math.abs(n=e))>=864e5?t(n,i,864e5,"day"):i>=36e5?t(n,i,36e5,"hour"):i>=6e4?t(n,i,6e4,"minute"):i>=1e3?t(n,i,1e3,"second"):n+" ms":(a=Math.abs(s=e))>=864e5?Math.round(s/864e5)+"d":a>=36e5?Math.round(s/36e5)+"h":a>=6e4?Math.round(s/6e4)+"m":a>=1e3?Math.round(s/1e3)+"s":s+"ms"}throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},55768:(e,t,r)=>{"use strict";r.d(t,{rC:()=>I,GH:()=>T,g_:()=>D});var n,i="0123456789abcdefghjkmnpqrstvwxyz",s=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("");
46if(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 o(e){if(26!==e.length)throw Error("Invalid length");let t=new TextEncoder().encode(e);if(255===s[t[0]]||255===s[t[1]]||255===s[t[2]]||255===s[t[3]]||255===s[t[4]]||255===s[t[5]]||255===s[t[6]]||255===s[t[7]]||255===s[t[8]]||255===s[t[9]]||255===s[t[10]]||255===s[t[11]]||255===s[t[12]]||255===s[t[13]]||255===s[t[14]]||255===s[t[15]]||255===s[t[16]]||255===s[t[17]]||255===s[t[18]]||255===s[t[19]]||255===s[t[20]]||255===s[t[21]]||255===s[t[22]]||255===s[t[23]]||255===s[t[24]]||255===s[t[25]])throw Error("Invalid base32 character");let r=new Uint8Array(16);return r[0]=s[t[0]]<<5|s[t[1]],r[1]=s[t[2]]<<3|s[t[3]]>>2,r[2]=(3&s[t[3]])<<6|s[t[4]]<<1|s[t[5]]>>4,r[3]=(15&s[t[5]])<<4|s[t[6]]>>1,r[4]=(1&s[t[6]])<<7|s[t[7]]<<2|s[t[8]]>>3,r[5]=(7&s[t[8]])<<5|s[t[9]],r[6]=s[t[10]]<<3|s[t[11]]>>2,r[7]=(3&s[t[11]])<<6|s[t[12]]<<1|s[t[13]]>>4,r[8]=(15&s[t[13]])<<4|s[t[14]]>>1,r[9]=(1&s[t[14]])<<7|s[t[15]]<<2|s[t[16]]>>3,r[10]=(7&s[t[16]])<<5|s[t[17]],r[11]=s[t[18]]<<3|s[t[19]]>>2,r[12]=(3&s[t[19]])<<6|s[t[20]]<<1|s[t[21]]>>4,r[13]=(15&s[t[21]])<<4|s[t[22]]>>1,r[14]=(1&s[t[22]])<<7|s[t[23]]<<2|s[t[24]]>>3,r[15]=(7&s[t[24]])<<5|s[t[25]],r}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,r,n){if(!Number.isInteger(e)||!Number.isInteger(t)||!Number.isInteger(r)||!Number.isInteger(n)||e<0||t<0||r<0||n<0||e>0xffffffffffff||t>4095||r>0x3fffffff||n>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|r>>>24,i[9]=r>>>16,i[10]=r>>>8,i[11]=r,i[12]=n>>>24,i[13]=n>>>16,i[14]=n>>>8,i[15]=n,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 r=this.bytes[t]-e.bytes[t];if(0!==r)return Math.sign(r)}return 0}},d=class{constructor(){this.timestamp=0,this.counter=0,this.random=new f}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())}},h=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&&(h=e=>crypto.getRandomValues(e));var f=class{constructor(){this.buffer=new Uint32Array(8),this.cursor=99}nextUint32(){return this.cursor>=this.buffer.length&&(h(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,r,n;if(e.length>63)return!1;for(r=0,n=e.length;r<n;r+=1)if(!((t=e.charCodeAt(r))>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=(n||(n=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]");
46o(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 o(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,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/0x10000000000&255,r[11]=t/0x100000000&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r}(t)))}};function m(e="",t=""){return new p(e,t)}var g=r(28167),y=r(2782),b=r(27248),v=r(36931),_=r(16590),w=r(20883),x=r(67039),k=r(85466),E=r(47606),S=r(27381),A=r(52125),O=r(17221),C=r(68924);function T(){return m("session").toString()}function I(e,t){var r;let n=function(e){let t=new g.B,r=new WeakMap;function n(r,n,i,s,a){t.next({sessionId:e,type:r,traceId:n,name:i.name,version:i.version,data:s,context:a,createdAt:new Date().toISOString()})}function i(r,n,i){t.next({sessionId:e,type:r,version:n.version,name:n.name,data:i,createdAt:new Date().toISOString()})}function s(e,t){if("number"==typeof e.maxSampleRate&&e.maxSampleRate>0){let n=r.get(e),s=new Date;(!n||s.getTime()-n.getTime()>e.maxSampleRate)&&(r.set(e,s),i("log",e,t))}else i("log",e,t)}return{events$:t.asObservable(),logger:{updateUserProperties(r){t.next({sessionId:e,type:"userProperties",properties:r,createdAt:new Date().toISOString()})},trace:(r,i)=>(function r(i,a,o){return{start(){n("trace.start",i,a,void 0,o)},newContext:e=>({trace:t=>r("".concat(i,".").concat(e),t,o),updateUserProperties(){},log:s}),log(e){n("trace.log",i,a,e,o)},complete(){n("trace.complete",i,a,void 0,o)},error(r){t.next({sessionId:e,type:"trace.error",traceId:i,name:a.name,version:a.version,data:{message:function(e){let t=e.indexOf("\n"),r=-1===t?1024:Math.min(t,1024),[n,i]=r<1?[e,""]:[e.substring(0,r),e.substring(r)];return n+(i?"… (+".concat(i.length,")"):"")}(r.message)},context:o,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}}})(m("trace").toString(),r,i),log:s}}}(e),i=[];function s(){let e=i.slice();return i.length=0,e}function a(){let e=s();return 0===e.length?b.w:(0,v.z)([(0,_.of)(e),t.resolveConsent().catch(e=>({status:"undetermined"}))]).pipe((0,w.Z)(e=>{let[r,n]=e;return 0===r.length||"granted"!==n.status?b.w:(0,x.H)(t.sendEvents(r)).pipe((0,k.W)(e=>(i.unshift(...r),b.w)))}))}let o=null!=(r=t.flushInterval)?r:3e4;function l(){return(0,C.s)(a(),{defaultValue:void 0}).then(()=>{})}let u=n.events$.pipe((0,E.M)(e=>i.push(e)),(0,S.T)(()=>{}),(0,A.n)(()=>new y.c(e=>{let t=setTimeout(()=>{e.next(),e.complete()},o);return"function"==typeof t.unref&&t.unref(),()=>clearTimeout(t)}),{leading:!1,trailing:!0}),(0,O.H)(()=>a())).subscribe();function c(){return l().then(()=>{},()=>{}).finally(()=>{u.unsubscribe()})}return{end:c,endWithBeacon:function(){if(!t.sendBeacon)return c(),!0;let e=s();return u.unsubscribe(),!(e.length>0)||t.sendBeacon(e)},flush:l,logger:n.logger}}function D(e){return{type:"log",name:e.name,version:e.version,description:e.description,maxSampleRate:e.maxSampleRate,schema:void 0}}r(11385)},55790:(e,t,r)=>{"use strict";function n(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_
46CURRENT_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",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},n={bash:r,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+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:n},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:n.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:n.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|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|java|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|sysctl|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[<>]&?|[<>][&=]?|&[>
46&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},r.inside=e.languages.bash;for(var i=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],s=n.variable[1].inside,a=0;a<i.length;a++)s[i[a]]=e.languages.bash[i[a]];e.languages.sh=e.languages.bash,e.languages.shell=e.languages.bash}(e)}r.d(t,{A:()=>n}),n.displayName="bash",n.aliases=["sh","shell"]},56002:(e,t,r)=>{var n=r(65181),i=r(25473),s=r(25325);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(s||i),string:new n}}},56803:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}},56988:(e,t,r)=>{"use strict";var n=r(60266),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=n.useState,a=n.useEffect,o=n.useLayoutEffect,l=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}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 r=t(),n=s({inst:{value:r,getSnapshot:t}}),i=n[0].inst,c=n[1];return o(function(){i.value=r,i.getSnapshot=t,u(i)&&c({inst:i})},[e,r,t]),a(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),l(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},57026:(e,t,r)=>{"use strict";r.d(t,{AD:()=>l,SB:()=>a});var n=r(41025),i=r(87865);let s=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function a(e,t=!1){let{host:r,path:n,pass:i,port:s,projectId:o,protocol:l,publicKey:u}=e;return`${l}://${u}${t&&i?`:${i}`:""}@${r}${s?`:${s}`:""}/${n?`${n}/`:n}${o}`}function o(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=s.exec(e);if(!t)return void(0,i.pq)(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});let[r,n,a="",l="",u="",c=""]=t.slice(1),d="",h=c,f=h.split("/");if(f.length>1&&(d=f.slice(0,-1).join("/"),h=f.pop()),h){let e=h.match(/^\d+/);e&&(h=e[0])}return o({host:l,pass:a,path:d,projectId:h,port:u,protocol:r,publicKey:n})}(e):o(e);if(t&&function(e){if(!n.T)return!0;let{port:t,projectId:r,protocol:s}=e;return!["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(i.vF.error(`Invalid Sentry Dsn: ${t} missing`),!0))&&(r.match(/^\d+$/)?"http"!==s&&"https"!==s?(i.vF.error(`Invalid Sentry Dsn: Invalid protocol ${s}`),!1):!(t&&isNaN(parseInt(t,10)))||(i.vF.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):(i.vF.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1))}(t))return t}},57125:(e,t,r)=>{"use strict";r.d(t,{h:()=>o});var n=r(35508),i=r(41325),s=r(13321),a=r(97537);function o(e,t){var r,o,l,u,c,d,h,f;let p=(0,a.a)(e,null==t?void 0:t.in),m=p.getFullYear(),g=(0,n.q)(),y=null!=(f=null!=(h=null!=(d=null!=(c=null==t?void 0:t.firstWeekContainsDate)?c:null==t||null==(o=t.locale)||null==(r=o.options)?void 0:r.firstWeekContainsDate)?d:g.firstWeekContainsDate)?h:null==(u=g.locale)||null==(l=u.options)?void 0:l.firstWeekContainsDate)?f:1,b=(0,i.w)((null==t?void 0:t.in)||e,0);b.setFullYear(m+1,0,y),b.setHours(0,0,0,0);let v=(0,s.k)(b,t),_=(0,i.w)((null==t?void 0:t.in)||e,0);_.setFullYear(m,0,y),_.setHours(0,0,0,0);let w=(0,s.k)(_,t);return+p>=+v?m+1:+p>=+w?m:m-1}},57201:(e,t,r)=>{var n=r(53369),i=r(25036),s=r(30734),a=r(42725),o=r(31997);e.exports=function(e){return"function"==typeof e?e:null==e?s:"object"==typeof e?a(e)?i(e[0],e[1]):n(e):o(e)}},57215:(e,t,r)=>{"use strict";r.d(t,{B:()=>a});var n=r(43523),i=r(84841),s=r(81451);function a(e,t){return void 0===t&&(t=n.E),(0,i.N)(function(r,n){var i=null,a=null,o=null,l=function(){if(i){i.unsubscribe(),i=null;var e=a;a=null,n.next(e)}};function u(){var r=o+e,s=t.now();if(s<r){i=this.schedule(void 0,r-s),n.add(i);return}l()}r.subscribe((0,s._)(n,function(r){a=r,o=t.now(),i||(i=t.schedule(u,e),n.add(i))},function(){l(),n.complete()},void 0,function(){a=i=null}))})}},57515:(e,t,r)=>{"use strict";r.d(t,{a:()=>i});var n=r(97537);function i(e,t,r){let i=(0,n.a)(e,null==r?void 0:r.in);return i.setHours(t),i}},57633:e=>{e.exports=function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}},57923:e=>{"use strict";let t=/^[0-9]+$/,r=(e,r)=>{if("number"==typeof e&&"number"==typeof r)return e===r?0:e<r?-1:1;let n=t.test(e),i=t.test(r);return n&&i&&(e*=1,r*=1),e===r?0:n&&!i?-1:i&&!n?1:e<r?-1:1};e.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}},58176:(e,t,r)=>{var n=r(60194),i=r(77701),s=r(19351);e.exports=function(e){return s(i(e,void 0,n),e+"")}},58528:(e,t,r)=>{"use strict";r.d(t,{Y:()=>i});var n=r(97537);function i(e,t){return+(0,n.a)(e)<+(0,n.a)(t)}},58558:(e,t,r)=>{"use strict";r.d(t,{S:()=>i});var n=r(81451);function i(e,t,r,i,s){return function(a,o){var l=r,u=t,c=0;a.subscribe((0,n._)(o,function(t){var r=c++;u=l?e(u,t,r):(l=!0,t),i&&o.next(u)},s&&function(){l&&o.next(u),o.complete()}
46))}}},58821:(e,t,r)=>{"use strict";function n(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)}r.d(t,{IG:()=>n,bo:()=>a});let i=/^\s/,s=/\s$/;function a(e){let t=Array.isArray(e)?e:[e],r="";return t.forEach((e,a)=>{if(!n(e))return;let o=!1;e.children.forEach(e=>{"span"===e._type&&"text"in e&&"string"==typeof e.text&&(void 0===e.marks||Array.isArray(e.marks)&&e.marks.every(e=>"string"==typeof e))?(r+=o&&r&&!s.test(r)&&!i.test(e.text)?" ":"",r+=e.text,o=!1):o=!0}),a!==t.length-1&&(r+="\n\n")}),r}},59419:(e,t,r)=>{"use strict";r.d(t,{MZ:()=>I,Q6:()=>em,UU:()=>tC,gP:()=>D});var n=r(41913),i=r(36147),s=r(2782),a=r(24617),o=r(49181),l=r(16590),u=r(20883),c=r(67039),d=r(68924),h=r(71507),f=r(85466),p=r(21575),m=r(44220),g=r(28053),y=r(47606),b=r(35159),v=r(91384),_=r(97901),w=r(27381),x=r(95668),k=r(15674),E=r(68255),S=r(53355),A=r(58686),O=r(10387);let C=/\r\n|[\n\r\u2028\u2029]/;function T(e,t){let r=0;for(let n=0;n<t.length;n++){let i=t[n].length+1;if(r+i>e)return{line:n+1,column:e-r};r+=i}return{line:t.length,column:t[t.length-1]?.length??0}}class I extends Error{response;statusCode=400;responseBody;traceId;details;constructor(e,t){let r=j(e,t);super(r.message),Object.assign(this,r)}}class D extends Error{response;statusCode=500;responseBody;traceId;details;constructor(e){let t=j(e);super(t.message),Object.assign(this,t)}}function j(e,t){var r,n,i;let s=e.body,a={response:e,statusCode:e.statusCode,responseBody:(r=s,-1!==(e.headers["content-type"]||"").toLowerCase().indexOf("application/json")?JSON.stringify(r,null,2):r),traceId:function(e){let t=e?.headers?.traceparent;if(t)return t.split("-")[1]}(e),message:"",details:void 0};if(!(0,k.u4)(s))return a.message=`${$(e,s)}${M(a.traceId)}`,a;let o=s.error;if("string"==typeof o&&"string"==typeof s.message)return a.message=`${o} - ${s.message}${M(a.traceId)}`,a;if("object"!=typeof o||null===o)return"string"==typeof o?a.message=`${o}${M(a.traceId)}`:"string"==typeof s.message?a.message=`${s.message}${M(a.traceId)}`:a.message=`${$(e,s)}${M(a.traceId)}`,a;if("type"in(n=o)&&"mutationError"===n.type&&"description"in n&&"string"==typeof n.description||"type"in(i=o)&&"actionError"===i.type&&"description"in i&&"string"==typeof i.description){let e=o.items||[],t=e.slice(0,5).map(e=>e.error?.description).filter(Boolean),r=t.length?`:
47- ${t.join(`
48- `)}`:"";return e.length>5&&(r+=`
49...and ${e.length-5} more`),a.message=`${o.description}${M(a.traceId)}${r}`,a.details=s.error,a}return R(o)?(a.message=N(o,t?.options?.query?.tag,a.traceId),a.details=s.error):"description"in o&&"string"==typeof o.description?(a.message=`${o.description}${M(a.traceId)}`,a.details=o):a.message=`${$(e,s)}${M(a.traceId)}`,a}function R(e){return(0,k.u4)(e)&&"queryParseError"===e.type&&"string"==typeof e.query&&"number"==typeof e.start&&"number"==typeof e.end}function N(e,t,r){let{query:n,start:i,end:s,description:a}=e,o=r?`
50(traceId: ${r})`:"";if(!n||typeof i>"u")return`GROQ query parse error: ${a}${o}`;let l=t?`
51
52Tag: ${t}`:"";return`GROQ query parse error:
53${function(e,t,r){let n=e.split(C),{start:i,end:s,markerLines:a}=function(e,t){let r={...e.start},n={...r,...e.end},i=r.line??-1,s=r.column??0,a=n.line,o=n.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 r=e+i;if(s)if(0===e){let e=t[r-1].length;d[r]=[s,e-s+1]}else if(e===c)d[r]=[0,o];else{let n=t[r-e].length;d[r]=[0,n]}else d[r]=!0}else s===o?s?d[i]=[s,0]:d[i]=!0:d[i]=[s,o-s];return{start:l,end:u,markerLines:d}}({start:T(t.start,n),end:t.end?T(t.end,n):void 0},n),o=`${s}`.length;return e.split(C,s).slice(i,s).map((e,t)=>{let n=i+1+t,s=` ${` ${n}`.slice(-o)} |`,l=a[n],u=!a[n+1];if(!l)return` ${s}${e.length>0?` ${e}`:""}`;let c="";if(Array.isArray(l)){let t=e.slice(0,Math.max(l[0]-1,0)).replace(/[^\t]/g," "),n=l[1]||1;c=`
54 `+s.replace(/\d/g," ")+" "+t+"^".repeat(n),u&&r&&(c+=" "+r)}return">"+s+(e.length>0?` ${e}`:"")+c}).join(`
55`)}(n,{start:i,end:s},a)}${l}${o}
55`}function $(e,t){var r,n;let i="string"==typeof t?` (${n=100,(r=t).length>100?`${r.slice(0,n)}\u2026`:r})`:"",s=e.statusMessage?` ${e.statusMessage}`:"";return`${e.method}-request to ${e.url} resulted in HTTP ${e.statusCode}${s}${i}`}function M(e){return e?` (traceId: ${e})`:""}class F extends Error{projectId;addOriginUrl;constructor({projectId:e,credentials:t}={}){if(super("CorsOriginError"),this.name="CorsOriginError",this.projectId=e,e&&"u">typeof location){let r=new URL(`https://sanity.io/manage/project/${e}/api`),{origin:n}=location;r.searchParams.set("cors","add"),r.searchParams.set("origin",n),t&&r.searchParams.set("credentials",""),this.addOriginUrl=r,this.message=`The current origin is not allowed to connect to the Live Content API. Add it here: ${r}`}else e?this.message=`The current origin is not allowed to connect to the Live Content API. Change your configuration here: https://sanity.io/manage/project/${e}/api`:this.message="The current origin is not allowed to connect to the Live Content API."}}let P={onResponse:(e,t)=>{if(e.statusCode>=500)throw new D(e);if(e.statusCode>=400)throw new I(e,t);return e}};function L(e,t={}){return(0,n.af)([(0,i.L5)({shouldRetry:z}),...e,function(e={}){let t={},r=t=>void 0!==e.ignoreWarnings&&(Array.isArray(e.ignoreWarnings)?e.ignoreWarnings:[e.ignoreWarnings]).some(e=>"string"==typeof e?t.includes(e):e instanceof RegExp&&e.test(t));return{onResponse:e=>{let n=e.headers["x-sanity-warning"];for(let e of Array.isArray(n)?n:[n])!e||t[e]||r(e)||(t[e]=!0,console.warn(e));return e}}}(t),(0,i.UX)(),(0,i.Yf)(),(0,i.qB)(),P,(0,i.sH)({implementation:s.c})])}function z(e,t,r){if(0===r.maxRetries)return!1;let n="GET"===r.method||"HEAD"===r.method,s=(r.uri||r.url).startsWith("/data/query"),a=e.response&&(429===e.response.statusCode||502===e.response.statusCode||503===e.response.statusCode);return(!!n||!!s)&&!!a||i.L5.shouldRetry(e,t,r)}function q(e){return"https://www.sanity.io/help/"+e}let U=["image","file"],B=["before","after","replace"],V=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")},H=(e,t)=>{if(null===t||"object"!=typeof t||Array.isArray(t))throw Error(`${e}() takes an object of properties`)},G=(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`)},W=(e,t)=>{if(!t._id)throw Error(`${e}() requires that the document contains an ID ("_id" property)`);G(e,t._id)},Z=(e,t)=>{if(!t._type)throw Error(`\`${e}()\` requires that the document contains a type (\`_type\` property)`);((e,t)=>
55{if("string"!=typeof t)throw Error(`\`${e}()\`: \`${t}\` is not a valid document type`)})(e,t._type)},Y=e=>{if(e.dataset)return e.dataset;let t=e.resource;if(t&&"dataset"===t.type){let e=t.id.split(".");if(2!==e.length)throw Error('Dataset resource ID must be in the format "project.dataset"');return e[1]}throw Error("`dataset` must be provided to perform queries")},K=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},J=e=>{let t=e.resource;if(!t)throw Error("`resource` must be provided to perform resource queries");let{type:r,id:n}=t;switch(r){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: ${r.toString()}`)}},X=(e,t)=>{if(t.resource)throw Error(`\`${e}\` does not support resource-based operations`)},Q=e=>(function(e){let t=!1,r;return(...n)=>(t||(r=e(...n),t=!0),r)})((...t)=>console.warn(e.join(" "),...t)),ee=Q(["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"]),et=Q(["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."]),er=Q(["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."]),en=Q(["The `previewDrafts` perspective has been renamed to  `drafts` and will be removed in a future API version"]),ei=Q(["You have configured Sanity client to use a token in the browser. This may cause unintentional security issues.",`See ${q("js-client-browser-token")} for more information and how to hide this warning.`]),es=Q(["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`."]),ea=Q(["Using the Sanity client without specifying an API version is deprecated.",`See ${q("js-client-api-version")}`]),eo=(Q(["The default export of @sanity/client has been deprecated. Use the named export `createClient` instead."]),Q(["You have called `createVersion()` with a defined `document`. The recommended approach is to provide a `baseId` and `releaseId` instead."])),el=Q(["The `~experimental_resource` configuration property has been renamed to `resource`.","Please update your client configuration to use `resource` instead. Support for `~experimental_resource` will be removed in a future version."]),eu={apiHost:"https://api.sanity.io",apiVersion:"1",useProjectHostname:!0,stega:{enabled:!1}},ec=["localhost","127.0.0.1","0.0.0.0"];function ed(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 eh=(e,t)=>{let r,n={...t,...e,stega:{..."boolean"==typeof t.stega?{enabled:t.stega}:t.stega||eu.stega,..."boolean"==typeof e.stega?{enabled:e.stega}:e.stega||{}}};n.apiVersion||ea();let i={...eu,...n};i["~experimental_resource"]&&!i.resource&&(el(),i.resource=i["~experimental_resource"]);let s=i.resource,a=i.useProjectHostname&&!s;if(typeof Promise>"u"){let e=q("js-client-promise-polyfill");throw Error(`No native Promise-implementation found, polyfill needed - see ${e}`)}if(a&&!i.projectId)throw Error("Configuration must contain `projectId`");if(s&&J(i),"u">typeof i.perspective&&ed(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'?");
55if("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 o="u">typeof window&&window.location&&window.location.hostname,l=o&&(r=window.location.hostname,-1!==ec.indexOf(r)),u=!!i.token;i.withCredentials&&u&&(es(),i.withCredentials=!1),o&&l&&u&&!0!==i.ignoreBrowserTokenWarning?ei():typeof i.useCdn>"u"&&et(),a&&(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&&V(i.dataset),"requestTagPrefix"in i&&(i.requestTagPrefix=i.requestTagPrefix?K(i.requestTagPrefix).replace(/\.+$/,""):void 0),i.apiVersion=`${i.apiVersion}`.replace(/^v/,""),i.isDefaultApi=i.apiHost===eu.apiHost,!0===i.useCdn&&i.withCredentials&&ee(),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 c=i.apiHost.split("://",2),d=c[0],h=c[1],f=i.isDefaultApi?"apicdn.sanity.io":h;return a?(i.url=`${d}://${i.projectId}.${h}/v${i.apiVersion}`,i.cdnUrl=`${d}://${i.projectId}.${f}/v${i.apiVersion}
55`):(i.url=`${i.apiHost}/v${i.apiVersion}`,i.cdnUrl=i.url),i};class ef extends Error{name="ConnectionFailedError"}class ep extends Error{name="DisconnectError";reason;constructor(e,t,r={}){super(e,r),this.reason=t}}class em extends Error{name="ChannelError";data;constructor(e,t){super(e),this.data=t}}class eg extends Error{name="MessageError";data;constructor(e,t,r={}){super(e,r),this.data=t}}class ey extends Error{name="MessageParseError"}let eb=["channelError","disconnect"];function ev(e,t){return(0,a.v)(()=>{let t=e();return(0,o.A)(t)?t:(0,l.of)(t)}).pipe((0,u.Z)(e=>{var r,n;return r=e,n=t,new s.c(e=>{let t=n.includes("open"),i=n.includes("reconnect");function s(t){if("data"in t){let[r,n]=e_(t);e.error(r?new ey("Unable to parse EventSource error message",{cause:n}):new eg((n?.data).message,n));return}r.readyState===r.CLOSED?e.error(new ef("EventSource connection failed")):i&&e.next({type:"reconnect"})}function a(){e.next({type:"open"})}function o(t){let[n,i]=e_(t);if(n)return void e.error(new ey("Unable to parse EventSource message",{cause:n}));if("channelError"===t.type){let t=new URL(r.url).searchParams.get("tag");e.error(new em(function(e,t){let r=e.error;return r?R(r)?N(r,t):r.description?r.description:"string"==typeof r?r:JSON.stringify(r,null,2):e.message||"Unknown listener error"}(i?.data,t),i.data));return}if("disconnect"===t.type)return void e.error(new ep(`Server disconnected client: ${i.data?.reason||"unknown error"}`));e.next({type:t.type,id:t.lastEventId,...i.data?{data:i.data}:{}})}r.addEventListener("error",s),t&&r.addEventListener("open",a);let l=[...new Set([...eb,...n])].filter(e=>"error"!==e&&"open"!==e&&"reconnect"!==e);return l.forEach(e=>r.addEventListener(e,o)),()=>{r.removeEventListener("error",s),t&&r.removeEventListener("open",a),l.forEach(e=>r.removeEventListener(e,o)),r.close()}})}))}function e_(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 ew(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(`
56`);throw Error(`Unknown selection - must be one of:
57
58${t}`)}class ex{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 H("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,r){return((e,t,r)=>{let n="insert(at, selector, items)";if(-1===B.indexOf(e)){let e=B.map(e=>`"${e}"`).join(", ");throw Error(`${n} takes an "at"-argument which is one of: ${e}`)}if("string"!=typeof t)throw Error(`${n} takes a "selector"-argument which must be a string`);if(!Array.isArray(r))throw Error(`${n} takes an "items"-argument which must be an array`)})(e,t,r),this._assign("insert",{[e]:t,items:r})}append(e,t){return this.insert("after",`${e}[-1]`,t)}prepend(e,t){return this.insert("before",`${e}[0]`,t)}splice(e,t,r,n){let i=t<0?t-1:t,s=typeof r>"u"||-1===r?-1:Math.max(0,t+r),a=`${e}[${i}:${i<0&&s>=0?"":s}]`;return this.insert("replace",a,n||[])}ifRevisionId(e){return this.operations.ifRevisionID=e,this}serialize(){return{...ew(this.selection),...this.operations}}toJSON(){return this.serialize()}reset(){return this.operations={},this}_assign(e,t,r=!0){return H(e,t),this.operations=Object.assign({},this.operations,{[e]:Object.assign({},r&&this.operations[e]||{},t)}),this}_set(e,t){return this._assign(e,t,!1)}}class ek extends ex{#g;constructor(e,t,r){super(e,t),this.#g=r}clone(){return new ek(this.selection,{...this.operations},this.#g)}commit(e){if(!this.#g)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.#g.mutate({patch:this.serialize()},t)}}class eE extends ex{#g;constructor(e,t,r){super(e,t),this.#g=r}clone(){return new eE(this.selection,{...this.operations},this.#g)}commit(e){if(!this.#g)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.#g.mutate({patch:this.serialize()},t)}}let eS={returnDocuments:!1};class eA{operations;trxId;constructor(e=[],t){this.operations=e,this.trxId=t}create(e){return H("create",e),this._add({create:e})}createIfNotExists(e){let t="createIfNotExists";return H(t,e),W(t,e),this._add({[t]:e})}createOrReplace(e){let t="createOrReplace";return H(t,e),W(t,e),this._add({[t]:e})}delete(e){return G("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 eO extends eA{#g;constructor(e,t,r){super(e,r),this.#g=t}clone(){return new eO([...this.operations],this.#g,this.trxId)}commit(e){if(!this.#g)throw Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return this.#g.mutate(this.serialize(),Object.assign({transactionId:this.trxId},eS,e||{}))}patch(e,t){let r="function"==typeof t,n="string"!=typeof e&&e instanceof eE,i="object"==typeof e&&("query"in e||"id"in e);if(n)return this._add({patch:e.serialize()});if(r){let r=t(new eE(e,{},this.#g));if(!(r instanceof eE))throw Error("function passed to `patch()` must return the patch");return this._add({patch:r.serialize()})}if(i){let r=new eE(e,t||{},this.#g);return this._add({patch:r.serialize()})}return this._add({patch:{id:e,...t}})}}class eC extends eA{#g;constructor(e,t,r){super(e,r),this.#g=t}clone(){return new eC([...this.operations],this.#g,this.trxId)}commit(e){if(!this.#g)throw Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return this.#g.mutate(this.serialize(),Object.assign({transactionId:this.trxId},eS,e||{}))}patch(e,t){let r="function"==typeof t;if("string"!=typeof e&&e instanceof ek)return this._add({patch:e.serialize()});if(r){let r=t(new ek(e,{},this.#g));if(!(r instanceof ek))throw Error("function passed to `patch()` must return the patch");return this._add({patch:r.serialize()})}return this._add({patch:{id:e,...t}})}}let eT=({query:e,params:t={},options:r={}})=>{let n=new URLSearchParams,{tag:i,includeMutations:s,returnQuery:a,...o}=r;for(let[r,s]of(i&&n.append("tag",i),n.append("query",e),Object.entries(t)))void 0!==s&&n.append(`$${r}`,JSON.stringify(s));for(let[e,t]of Object.entries(o))t&&n.append(e,`${t}`);return!1===a&&n.append("returnQuery","false"),!1===s&&n.append("includeMutations","fal
58se"),`?${n}`},eI=e=>"response"===e.type,eD=e=>e.body;function ej(e,t,n,i,s={},a={}){let o="stega"in a?{...n||{},..."boolean"==typeof a.stega?{enabled:a.stega}:a.stega||{}}:n,l=o.enabled?(0,k.Q)(s):s,u=!1===a.filterResponse?e=>e:e=>e.result,{cache:d,next:h,...f}={useAbortSignal:"u">typeof a.signal,resultSourceMap:o.enabled?"withKeyArraySelector":a.resultSourceMap,...a,returnQuery:!1===a.filterResponse&&!1!==a.returnQuery},p=eG(e,t,"query",{query:i,params:l},"u">typeof d||"u">typeof h?{...f,fetch:{cache:d,next:h}}:f);return o.enabled?p.pipe((0,E.v)((0,c.H)(r.e(1827).then(r.bind(r,51827)).then(function(e){return e.stegaEncodeSourceMap$1}).then(({stegaEncodeSourceMap:e})=>e))),(0,w.T)(([e,t])=>{let r=t(e.result,e.resultSourceMap,o);return u({...e,result:r})})):p.pipe((0,w.T)(u))}function eR(e,t,r,n={}){let i={uri:eX(e,"doc",(()=>{if(!n.releaseId)return r;let e=(0,A._S)(r);if(!e){if((0,A.R8)(r))throw Error(`The document ID (\`${r}\`) is a draft, but \`options.releaseId\` is set as \`${n.releaseId}\``);return(0,A.ct)(r,n.releaseId)}if(e!==n.releaseId)throw Error(`The document ID (\`${r}\`) is already a version of \`${e}\` release, but this does not match the provided \`options.releaseId\` (\`${n.releaseId}\`)`);return r})()),json:!0,tag:n.tag,signal:n.signal,query:void 0!==n.includeAllVersions?{includeAllVersions:n.includeAllVersions}:void 0};return eK(e,t,i).pipe((0,S.p)(eI),(0,w.T)(e=>{let t=e.body.documents;return t?n.includeAllVersions?t:t[0]:n.includeAllVersions?[]:void 0}))}function eN(e,t,r,n={}){let i={uri:eX(e,"doc",r.join(",")),json:!0,tag:n.tag,signal:n.signal};return eK(e,t,i).pipe((0,S.p)(eI),(0,w.T)(e=>{let t,n,i=(t=e.body.documents||[],n=e=>e._id,t.reduce((e,t)=>(e[n(t)]=t,e),Object.create(null)));return r.map(e=>i[e]||null)}))}function e$(e,t,r,n={}){return eG(e,t,"query",{query:"*[sanity::partOfRelease($releaseId)]",params:{releaseId:r}},n)}function eM(e,t,r,n){return W("createIfNotExists",r),eW(e,t,r,"createIfNotExists",n)}function eF(e,t,r,n){return W("createOrReplace",r),eW(e,t,r,"createOrReplace",n)}function eP(e,t,r,n,i){return W("createVersion",r),Z("createVersion",r),eo(),eH(e,t,{actionType:"sanity.action.document.version.create",publishedId:n,document:r},i)}function eL(e,t,r,n,i,s,a){if(!n)throw Error("`createVersion()` requires `baseId` when no `document` is provided");if(!r)throw Error("`createVersion()` requires `publishedId` when `baseId` is provided");return G("createVersion",n),G("createVersion",r),eH(e,t,{actionType:"sanity.action.document.version.create",publishedId:r,baseId:n,versionId:i?(0,A.ct)(r,i):(0,A.T4)(r),ifBaseRevisionId:s},a)}function ez(e,t,r,n){return eG(e,t,"mutate",{mutations:[{delete:ew(r)}]},n)}function eq(e,t,r,n=!1,i){return eH(e,t,{actionType:"sanity.action.document.version.discard",versionId:r,purge:n},i)}function eU(e,t,r,n){return W("replaceVersion",r),Z("replaceVersion",r),eH(e,t,{actionType:"sanity.action.document.version.replace",document:r},n)}function eB(e,t,r,n,i){return eH(e,t,{actionType:"sanity.action.document.version.unpublish",versionId:r,publishedId:n},i)}function eV(e,t,r,n){let i;return eG(e,t,"mutate",{mutations:Array.isArray(i=r instanceof eE||r instanceof ek?{patch:r.serialize()}:r instanceof eO||r instanceof eC?r.serialize():r)?i:[i],transactionId:n&&n.transactionId||void 0},n)}function eH(e,t,r,n){let i=Array.isArray(r)?r:[r],s=n&&n.transactionId||void 0;return eG(e,t,"actions",{actions:i,transactionId:s,skipCrossDatasetReferenceValidation:n&&n.skipCrossDatasetReferenceValidation||void 0,dryRun:n&&n.dryRun||void 0},n)}function eG(e,t,r,n,i={}){let s="mutate"===r,a="actions"===r,o=s||a?"":eT(n),l=!s&&!a&&o.length<11264,u=l?o:"",c=i.returnFirst,{timeout:d,token:h,tag:f,headers:p,returnQuery:m,lastLiveEventId:g,cacheMode:y}=i,b={method:l?"GET":"POST",uri:eX(e,r,u),json:!0,body:l?void 0:n,query:s&&((e={})=>{let t,r;return{dryRun:e.dryRun,returnIds:!0,returnDocuments:(t=e.returnDocuments,r=!0,!1===t?void 0:typeof t>"u"?r:t),visibility:e.visibility||"sync",autoGenerateArrayKeys:e.autoGenerateArrayKeys,skipCrossDatasetReferenceValidation:e.skipCrossDatasetReferenceValidation}})(i),timeout:d,headers:p,token:h,tag:f,returnQuery:m,perspective:i.perspective,resultSourceMap:i.resultSourceMap,lastLiveEventId:Array.isArray(g)?g[0]:g,cacheMode:y,canUseCdn:"query"===r,signal:i.signal,fetch:i.fetch,useAbortSignal:i.useAbortSignal,useCdn:i.useCdn};return eK(e,t,b).pipe((0,S.p)(eI),(0,w.T)(eD),(0,w.T)(e=>{if(!s)return e;let t=e.results||[];if(i.returnDocuments)return c?t[0]&&t[0].document:t.map(e=>e.document);let r=c?t[0]&&t[0].id:t.map(e=>e.id);return{transactionId:e.transactionId,results:t,[c?"documentId":"documentIds"]:r}}))}function eW(e,t,r,n,i={}){return eG(e,t,"mutate",{mutations:[{[n]:r}]},Object.assign({returnFirst:!0,returnDocuments:!0},i))}let eZ=e=>{let t=e.config();return void 0!==t.dataset&&void 0!==t.projectId||void 0!==t.resource},eY=(e,t)=>
58eZ(e)&&t.startsWith(eX(e,"query"));function eK(e,t,r){var n;let i=r.url||r.uri,a=e.config(),o=typeof r.canUseCdn>"u"?["GET","HEAD"].indexOf(r.method||"GET")>=0&&(i.startsWith("/data/")||eY(e,i)||eZ(e)&&i.startsWith(eX(e,"mutate"))||eZ(e)&&i.startsWith(eX(e,"doc",""))||eZ(e)&&i.startsWith(eX(e,"listen"))||eZ(e)&&i.startsWith(eX(e,"history",""))):r.canUseCdn,l=(r.useCdn??a.useCdn)&&o,u=r.tag&&a.requestTagPrefix?[a.requestTagPrefix,r.tag].join("."):r.tag||a.requestTagPrefix;if(u&&null!==r.tag&&(r.query={tag:K(u),...r.query}),["GET","HEAD","POST"].indexOf(r.method||"GET")>=0&&eY(e,i)){let e=r.resultSourceMap??a.resultSourceMap;void 0!==e&&!1!==e&&(r.query={resultSourceMap:e,...r.query});let t=r.perspective||a.perspective;"u">typeof t&&("previewDrafts"===t&&en(),ed(t),r.query={perspective:Array.isArray(t)?t.join(","):t,...r.query},(Array.isArray(t)&&t.length>0||"previewDrafts"===t||"drafts"===t)&&l&&(l=!1,er())),r.lastLiveEventId&&(r.query={...r.query,lastLiveEventId:r.lastLiveEventId}),!1===r.returnQuery&&(r.query={returnQuery:"false",...r.query}),l&&"noStale"==r.cacheMode&&(r.query={cacheMode:"noStale",...r.query})}let c=function(e,t={}){let r={};e.headers&&Object.assign(r,e.headers);let n=t.token||e.token;n&&(r.Authorization=`Bearer ${n}`),t.useGlobalApi||e.useProjectHostname||!e.projectId||(r["X-Sanity-Project-ID"]=e.projectId);let i=!!(typeof t.withCredentials>"u"?e.withCredentials:t.withCredentials),s=typeof t.timeout>"u"?e.timeout:t.timeout;return Object.assign({},t,{headers:Object.assign({},r,t.headers||{}),timeout:typeof s>"u"?3e5:s,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})}(a,Object.assign({},r,{url:eQ(e,i,l)})),d=new s.c(e=>t(c,a.requester).subscribe(e));return r.signal?d.pipe((n=r.signal,e=>new s.c(t=>{let r=()=>t.error(function(e){if(e0)return new DOMException(e?.reason??"The operation was aborted.","AbortError");let t=Error(e?.reason??"The operation was aborted.");return t.name="AbortError",t}(n));if(n&&n.aborted)return void r();let i=e.subscribe(t);return n.addEventListener("abort",r),()=>{n.removeEventListener("abort",r),i.unsubscribe()}}))):d}function eJ(e,t,r){return eK(e,t,r).pipe((0,S.p)(e=>"response"===e.type),(0,w.T)(e=>e.body))}function eX(e,t,r){let n=e.config();if(n.resource){J(n);let e=e1(n),i=void 0!==r?`${t}/${r}`:t;return`${e}/${i}`.replace(/\/($|\?)/,"$1")}let i=Y(n),s=`/${t}/${i}`;return`/data${void 0!==r?`${s}/${r}`:s}`.replace(/\/($|\?)/,"$1")}function eQ(e,t,r=!1){let{url:n,cdnUrl:i}=e.config();return`${r?i:n}/${t.replace(/^\//,"")}`}let e0=!!globalThis.DOMException,e1=e=>{let t=e.resource;if(!t)throw Error("`resource` must be provided to perform resource queries");let{type:r,id:n}=t;switch(r){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: ${r.toString()}`)}};function e2(e,t,r){let n=Y(e.config());return eJ(e,t,{method:"POST",uri:`/agent/action/generate/${n}`,body:r})}function e5(e,t,r){let n=Y(e.config());return eJ(e,t,{method:"POST",uri:`/agent/action/transform/${n}`,body:r})}function e3(e,t,r){let n=Y(e.config());return eJ(e,t,{method:"POST",uri:`/agent/action/translate/${n}`,body:r})}class e4{#g;#y;constructor(e,t){this.#g=e,this.#y=t}generate(e){return e2(this.#g,this.#y,e)}transform(e){return e5(this.#g,this.#y,e)}translate(e){return e3(this.#g,this.#y,e)}}class e6{#g;#y;constructor(e,t){this.#g=e,this.#y=t}generate(e){return(0,d.s)(e2(this.#g,this.#y,e))}transform(e){return(0,d.s)(e5(this.#g,this.#y,e))}translate(e){return(0,d.s)(e3(this.#g,this.#y,e))}prompt(e){return(0,d.s)(function(e,t,r){let n=Y(e.config());return eJ(e,t,{method:"POST",uri:`/agent/action/prompt/${n}`,body:r})}(this.#g,this.#y,e))}patch(e){return(0,d.s)(function(e,t,r){let n=Y(e.config());return eJ(e,t,{method:"POST",uri:`/agent/action/patch/${n}`,body:r})}(this.#g,this.#y,e))}}class e8{#g;#y;constructor(e,t){this.#g=e,this.#y=t}upload(e,t,r){return e7(this.#g,this.#y,e,t,r)}}class e9{#g;#y;constructor(e,t){this.#g=e,this.#y=t}upload(e,t,r){let n=e7(this.#g,this.#y,e,t,r);return(0,d.s)(n.pipe((0,S.p)(e=>"response"===e.type),(0,w.T)(e=>e.body.document)))}}function e7(e,t,r,n,i={}){var s,a;if(-1===U.indexOf(r))throw Error(`Invalid asset type: ${r}. Must be one of ${U.join(", ")}`);let o=i.extract||void 0;o&&!o.length&&(o=["none"]);let l=e.config(),u=(s=i,a=n,!(typeof File>"u")&&a instanceof File?Object.assign({filename:!1===s.preserveFilename?void 0:a.name,contentType:a.type},s):s),{tag:c,label:d,title:h,description:f,creditLine:p,filename:m,source:g}=u,y=l.resource?.type==="media-library",b=y?{title:h,filename:m}:{label:d,title:h,description:f,filename:m,meta:o,creditLine:p};return g&&!y&&(b.sourceId=g.id,b.sourceName=g.name,b.sourceUrl=g.url),eK(e,t,{tag:c,method:"POST",timeout:u.timeout||0,uri:function(e,t){let r="image"===t?"images":"files",n=e.resource;if(n){let{type:e,id:t}=n;switch(e){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/${t}/assets/${r}`;case"media-library":return`/media-libraries/${t}/upload`;case"dashboard":return`/dashboards/${t}/assets/${r}`;default:throw Error(`Unsupported resource type: ${e.toString()}`)}}let i=Y(e);return`assets/${r}/${i}`}(l,r),headers:u.contentType?{"Content-Type":u.contentType}:{},query:b,body:n})}let te=(0,a.v)(()=>r.e(6297).then(r.t.bind(r,26297,19))).pipe((0,w.T)(({default:e})=>e),(0,h.t)(1));function tt(){return function(e){return e.pipe((0,f.W)((e,t)=>e instanceof ef?(0,p.x)((0,l.of)({type:"reconnect"}),(0,m.O)(1e3).pipe((0,u.Z)(()=>t))):(0,g.$)(()=>e)))}}let tr=["includePreviousRevision","includeResult","includeMutations","includeAllVersions","visibility","effectFormat","enableResume","tag"],tn={includeResult:!0};function ti(e,t,r={}){let{url:n,token:i,withCredentials:s,requestTagPrefix:a,headers:o}=this.config(),u=r.tag&&a?[a,r.tag].join("."):r.tag,c={...Object.keys(tn).concat(Object.keys(r)).reduce((e,t)=>
58(e[t]=typeof r[t]>"u"?tn[t]:r[t],e),{}),tag:u},d=eT({query:e,params:t,options:{tag:u,...tr.reduce((e,t)=>(typeof c[t]>"u"||(e[t]=c[t]),e),{})}}),h=`${n}${eX(this,"listen",d)}`;if(h.length>14800)return(0,g.$)(()=>Error("Query too large for listener"));let f=c.events?c.events:["mutation"],p={};return s&&(p.withCredentials=!0),(i||o)&&(p.headers={},i&&(p.headers.Authorization=`Bearer ${i}`),o&&Object.assign(p.headers,o)),ev(()=>(typeof EventSource>"u"||p.headers?te:(0,l.of)(EventSource)).pipe((0,w.T)(e=>new e(h,p))),f).pipe(tt(),(0,S.p)(e=>f.includes(e.type)),(0,w.T)(e=>({type:e.type,..."data"in e?e.data:{}})))}let ts="2021-03-25";class ta{#g;constructor(e){this.#g=e}events({includeDrafts:e=!1,tag:t,waitFor:r}={}){var n,i,a,o,c;let{projectId:d,apiVersion:h,token:p,withCredentials:m,requestTagPrefix:x,headers:k}=this.#g.config(),E=h.replace(/^v/,"");if("X"!==E&&E<ts)throw Error(`The live events API requires API version ${ts} or later. The current API version is ${E}. Please update your API version to use this feature.`);if(e&&!p&&!m)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 S=eX(this.#g,"live/events"),A=new URL(this.#g.getUrl(S,!1)),O=t&&x?[x,t].join("."):t;O&&A.searchParams.set("tag",O),e&&A.searchParams.set("includeDrafts","true"),r&&A.searchParams.set("waitFor",r);let C={};e&&m&&(C.withCredentials=!0),(e&&p||k)&&(C.headers={},e&&p&&(C.headers.Authorization=`Bearer ${p}`),k&&Object.assign(C.headers,k));let T=`${A.href}::${JSON.stringify(C)}`,I=to.get(T);if(I)return I;let D=ev(()=>(typeof EventSource>"u"||C.headers?te:(0,l.of)(EventSource)).pipe((0,w.T)(e=>new e(A.href,C))),["message","restart","welcome","reconnect","goaway"]),j=(i=new URL(this.#g.getUrl("/check/cors",!1)),a=d,o=!0===C.withCredentials,new s.c(e=>{let t=new AbortController,{signal:r}=t;return fetch(i,{method:"GET",mode:"cors",credentials:"omit",signal:r}).then(e=>{if(!(r.aborted||!e.ok))return e.json()}).then(t=>{if(!r.aborted){if(o&&t?.result?.withCredentials===!1)return void e.error(new F({projectId:a,credentials:!0}));if(t?.result?.allowed===!1)return void e.error(new F({projectId:a,credentials:o}));e.next(),e.complete()}}).catch(()=>{r.aborted||e.closed||(e.next(),e.complete())}),()=>t.abort()})),R=D.pipe(tt(),(0,u.Z)(e=>"reconnect"===e.type?j.pipe((0,u.Z)(()=>(0,l.of)(e))):(0,l.of)(e)),(0,f.W)(e=>e instanceof F?(0,g.$)(()=>e):j.pipe((0,u.Z)(()=>{throw e}))),(0,w.T)(e=>{if("message"===e.type){let{data:t,...r}=e;return{...r,tags:t.tags}}return e})).pipe((0,b.j)(()=>to.delete(T)),(c="function"==typeof(n={predicate:e=>"welcome"===e.type})?{predicate:n,...void 0}:n,e=>{let t,r=!1,{predicate:n,...i}=c,a=e.pipe((0,y.M)(e=>{c.predicate(e)&&(r=!0,t=e)}),(0,b.j)(()=>{r=!1,t=void 0}),(0,v.u)(i)),o=new s.c(e=>{r&&e.next(t),e.complete()});return(0,_.h)(a,o)}));return to.set(T,R),R}}let to=new Map;class tl{#g;#y;constructor(e,t){this.#g=e,this.#y=t}create(e,t){return td(this.#g,this.#y,"PUT",e,t)}edit(e,t){return td(this.#g,this.#y,"PATCH",e,t)}
58delete(e){return td(this.#g,this.#y,"DELETE",e)}list(){X("dataset",this.#g.config());let e=this.#g.config(),t=e.projectId,r="/datasets";return!1===e.useProjectHostname&&(r=`/projects/${t}/datasets`),eJ(this.#g,this.#y,{uri:r,tag:null})}getEmbeddingsSettings(e){return X("dataset",this.#g.config()),V(e),eJ(this.#g,this.#y,{uri:tc(this.#g,e),tag:null})}editEmbeddingsSettings(e,t){return X("dataset",this.#g.config()),V(e),eJ(this.#g,this.#y,{method:"PUT",uri:tc(this.#g,e),body:t,tag:null})}}class tu{#g;#y;constructor(e,t){this.#g=e,this.#y=t}create(e,t){return X("dataset",this.#g.config()),(0,d.s)(td(this.#g,this.#y,"PUT",e,t))}edit(e,t){return X("dataset",this.#g.config()),(0,d.s)(td(this.#g,this.#y,"PATCH",e,t))}delete(e){return X("dataset",this.#g.config()),(0,d.s)(td(this.#g,this.#y,"DELETE",e))}list(){X("dataset",this.#g.config());let e=this.#g.config(),t=e.projectId,r="/datasets";return!1===e.useProjectHostname&&(r=`/projects/${t}/datasets`),(0,d.s)(eJ(this.#g,this.#y,{uri:r,tag:null}))}getEmbeddingsSettings(e){return X("dataset",this.#g.config()),V(e),(0,d.s)(eJ(this.#g,this.#y,{uri:tc(this.#g,e),tag:null}))}editEmbeddingsSettings(e,t){return X("dataset",this.#g.config()),V(e),(0,d.s)(eJ(this.#g,this.#y,{method:"PUT",uri:tc(this.#g,e),body:t,tag:null}))}}function tc(e,t){let r=e.config();return!1===r.useProjectHostname?`/projects/${r.projectId}/datasets/${t}/settings/embeddings`:`/datasets/${t}/settings/embeddings`}function td(e,t,r,n,i){return X("dataset",e.config()),V(n),eJ(e,t,{method:r,uri:`/datasets/${n}`,body:i,tag:null})}class th{#g;#y;constructor(e,t){this.#g=e,this.#y=t}getPlaybackInfo(e,t={}){var r,n;let i=this.#g.config(),s=(i.resource||i["~experimental_resource"])?.id,{instanceId:a,libraryId:o}=function(e){let t="object"==typeof e&&"_ref"in e?e._ref:e,r=tp.exec(t);if(r){let[,e,t]=r;return{libraryId:e,instanceId:t}}if("string"==typeof e&&e.startsWith("video-"))return{instanceId:e};throw Error(`Invalid video asset instance identifier "${t}": must be a valid video instance id or a Global Dataset Reference (GDR) to the video asset in the Media Library`)}(e),l=o||s;if(!l)throw Error("Could not determine Media Library ID - you need to provide a valid Media Library ID in the client config or a Media Library GDR");let u=(r=a,n=l,`/media-libraries/${n}/video/${r}/playback-info`),c=function(e){let t={};if(e.transformations){let{thumbnail:r,animated:n,storyboard:i}=e.transformations;r&&(r.width&&(t.thumbnailWidth=r.width),r.height&&(t.thumbnailHeight=r.height),void 0!==r.time&&(t.thumbnailTime=r.time),r.fit&&(t.thumbnailFit=r.fit),r.format&&(t.thumbnailFormat=r.format)),n&&(n.width&&(t.animatedWidth=n.width),n.height&&(t.animatedHeight=n.height),void 0!==n.start&&(t.animatedStart=n.start),void 0!==n.end&&(t.animatedEnd=n.end),n.fps&&(t.animatedFps=n.fps),n.format&&(t.animatedFormat=n.format)),i&&i.format&&(t.storyboardFormat=i.format)}return e.expiration&&(t.expiration=e.expiration),t}(t);return eJ(this.#g,this.#y,{method:"GET",uri:u,query:c})}}class tf{#g;#y;constructor(e,t){this.#g=e,this.#y=t}getPlaybackInfo(e,t={}){return(0,d.s)(new th(this.#g.observable,this.#y).getPlaybackInfo(e,t))}}let tp=/^media-library:(ml[^:]+):([^:]+)$/;class tm{#g;#y;constructor(e,t){this.#g=e,this.#y=t}list(e){let t={};return e?.includeMembers===!1&&(t.includeMembers="false"),e?.includeFeatures===!1&&(t.includeFeatures="false"),e?.organizationId&&(t.organizationId=e.organizationId),e?.onlyExplicitMembership&&(t.onlyExplicitMembership="true"),eJ(this.#g,this.#y,{uri:"/projects",query:t})}getById(e){return eJ(this.#g,this.#y,{uri:`/projects/${e}`})}}class tg{#g;#y;constructor(e,t){this.#g=e,this.#y=t}list(e){let t={};return e?.includeMembers===!1&&(t.includeMembers="false"),e?.includeFeatures===!1&&(t.includeFeatures="false"),e?.organizationId&&(t.organizationId=e.organizationId),e?.onlyExplicitMembership&&(t.onlyExplicitMembership="true"),(0,d.s)(eJ(this.#g,this.#y,{uri:"/projects",query:t}))}getById(e){return(0,d.s)(eJ(this.#g,this.#y,{uri:`/projects/${e}`}))}}let ty=(0,O.d_)("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",8),tb=(e,t)=>t?(0,A.ct)(e,t):(0,A.T4)(e);function tv(e,{releaseId:t,publishedId:r,document:n}){if(r&&n._id){let e=tb(r,t);return((e,t)=>{if(t._id&&t._id!==e)throw Error(`The provided document ID (\`${t._id}
58\`) does not match the generated version ID (\`${e}\`)`)})(e,n),e}if(n._id){let r=(0,A.R8)(n._id),i=(0,A.A_)(n._id);if(!r&&!i)throw Error(`\`${e}()\` requires a document with an \`_id\` that is a version or draft ID`);if(t){if(r)throw Error(`\`${e}()\` was called with a document ID (\`${n._id}\`) that is a draft ID, but a release ID (\`${t}\`) was also provided.`);let i=(0,A._S)(n._id);if(i!==t)throw Error(`\`${e}()\` was called with a document ID (\`${n._id}\`) that is a version ID, but the release ID (\`${t}\`) does not match the document's version ID (\`${i}\`).`)}return n._id}if(r)return tb(r,t);throw Error(`\`${e}()\` requires either a publishedId or a document with an \`_id\``)}let t_=(e,t)=>{let[r,n,i]=((e,t)=>{if("object"==typeof e&&null!==e&&("releaseId"in e||"metadata"in e)){let{releaseId:r=ty(),metadata:n={}}=e;return[r,n,t]}return[ty(),{},e]})(e,t);return{action:{actionType:"sanity.action.release.create",releaseId:r,metadata:{...n,releaseType:n.releaseType||"undecided"}},options:i}};class tw{#g;#y;constructor(e,t){this.#g=e,this.#y=t}get({releaseId:e},t){return eR(this.#g,this.#y,`_.releases.${e}`,t)}create(e,t){let{action:r,options:n}=t_(e,t),{releaseId:i,metadata:s}=r;return eH(this.#g,this.#y,r,n).pipe((0,w.T)(e=>({...e,releaseId:i,metadata:s})))}edit({releaseId:e,patch:t},r){return eH(this.#g,this.#y,{actionType:"sanity.action.release.edit",releaseId:e,patch:t},r)}publish({releaseId:e},t){return eH(this.#g,this.#y,{actionType:"sanity.action.release.publish",releaseId:e},t)}archive({releaseId:e},t){return eH(this.#g,this.#y,{actionType:"sanity.action.release.archive",releaseId:e},t)}unarchive({releaseId:e},t){return eH(this.#g,this.#y,{actionType:"sanity.action.release.unarchive",releaseId:e},t)}schedule({releaseId:e,publishAt:t},r){return eH(this.#g,this.#y,{actionType:"sanity.action.release.schedule",releaseId:e,publishAt:t},r)}unschedule({releaseId:e},t){return eH(this.#g,this.#y,{actionType:"sanity.action.release.unschedule",releaseId:e},t)}delete({releaseId:e},t){return eH(this.#g,this.#y,{actionType:"sanity.action.release.delete",releaseId:e},t)}fetchDocuments({releaseId:e},t){return e$(this.#g,this.#y,e,t)}}class tx{#g;#y;constructor(e,t){this.#g=e,this.#y=t}get({releaseId:e},t){return(0,d.s)(eR(this.#g,this.#y,`_.releases.${e}`,t))}async create(e,t){let{action:r,options:n}=t_(e,t),{releaseId:i,metadata:s}=r;return{...await (0,d.s)(eH(this.#g,this.#y,r,n)),releaseId:i,metadata:s}}edit({releaseId:e,patch:t},r){return(0,d.s)(eH(this.#g,this.#y,{actionType:"sanity.action.release.edit",releaseId:e,patch:t},r))}publish({releaseId:e},t){return(0,d.s)(eH(this.#g,this.#y,{actionType:"sanity.action.release.publish",releaseId:e},t))}archive({releaseId:e},t){return(0,d.s)(eH(this.#g,this.#y,{actionType:"sanity.action.release.archive",releaseId:e},t))}unarchive({releaseId:e},t){return(0,d.s)(eH(this.#g,this.#y,{actionType:"sanity.action.release.unarchive",releaseId:e},t))}schedule({releaseId:e,publishAt:t},r){return(0,d.s)(eH(this.#g,this.#y,{actionType:"sanity.action.release.schedule",releaseId:e,publishAt:t},r))}unschedule({releaseId:e},t){return(0,d.s)(eH(this.#g,this.#y,{actionType:"sanity.action.release.unschedule",releaseId:e},t))}delete({releaseId:e},t){return(0,d.s)(eH(this.#g,this.#y,{actionType:"sanity.action.release.delete",releaseId:e},t))}fetchDocuments({releaseId:e},t){return(0,d.s)(e$(this.#g,this.#y,e,t))}}class tk{#g;#y;constructor(e,t){this.#g=e,this.#y=t}getById(e){return eJ(this.#g,this.#y,{uri:`/users/${e}`})}}class tE{#g;#y;constructor(e,t){this.#g=e,this.#y=t}getById(e){return(0,d.s)(eJ(this.#g,this.#y,{uri:`/users/${e}`}))}}class tS{assets;datasets;live;mediaLibrary;projects;users;agent;releases;#b;#v;#y;listen=ti;constructor(e,t=eu){this.config(t),this.#v=e;let r=t._requestHandler;this.#y=r?(()=>{let n;return(i,s)=>(n||(n=new tA(e,{...t,_requestHandler:void 0})),r(i,t=>e(t,s),n))})():e,this.assets=new e8(this,this.#y),this.datasets=new tl(this,this.#y),this.live=new ta(this),this.mediaLibrary={video:new th(this,this.#y)},this.projects=new tm(this,this.#y),this.users=new tk(this,this.#y),this.agent={action:new e4(this,this.#y)},this.releases=new tw(this,this.#y)}clone(){return new tS(this.#v,this.config())}config(e){if(void 0===e)return{...this.#b};if(this.#b&&!1===this.#b.allowReconfigure)throw Error("Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client");return this.#b=eh(e,this.#b||{}),this}withConfig(e){let t=this.config();return new tS(this.#v,{...t,...e,stega:{...t.stega||{},..."boolean"==typeof e?.stega?{enabled:e.stega}:e?.stega||{}}})}fetch(e,t,r){return ej(this,this.#y,this.#b.stega,e,t,r)}getDocument(e,t){if(t?.includeAllVersions===!0)return eR(this,this.#y,e,{...t,includeAllVersions:!0});let r={signal:t?.signal,tag:t?.tag,releaseId:t?.releaseId,...t&&"includeAllVersions"in t?{includeAllVersions:!1}:{}};return eR(this,this.#y,e,r)}getDocuments(e,t){return eN(this,this.#y,e,t)}create(e,t){return eW(this,this.#y,e,"create",t)}createIfNotExists(e,t){return eM(this,this.#y,e,t)}createOrReplace(e,t){return eF(this,this.#y,e,t)}createVersion({document:e,publishedId:t,releaseId:r,baseId:n,ifBaseRevisionId:i},s){if(!e)return eL(this,this.#y,t,n,r,i,s);let a=tv("createVersion",{document:e,publishedId:t,releaseId:r}),o={...e,_id:a},l=t||(0,A.IM)(e._id);return eP(this,this.#y,o,l,s)}delete(e,t){return ez(this,this.#y,e,t)}discardVersion({releaseId:e,publishedId:t},r,n){let i=tb(t,e);return eq(this,this.#y,i,r,n)}replaceVersion({document:e,publishedId:t,releaseId:r},n){let i=tv("replaceVersion",{document:e,publishedId:t,releaseId:r}),s={...e,_id:i};return eU(this,this.#y,s,n)}unpublishVersion({releaseId:e,publishedId:t},r){let n=(0,A.ct)(t,e);return eB(this,this.#y,n,t,r)}mutate(e,t){return eV(this,this.#y,e,t)}patch(e,t){return new ek(e,t,this)}transaction(e){return new eC(e,this)}action(e,t){return eH(this,this.#y,e,t)}request(e){return eJ(this,this.#y,e)}getUrl(e,t){return eQ(this,e,t)}getDataUrl(e,t){return eX(this,e,t)}}class tA{assets;datasets;live;mediaLibrary;projects;users;agent;releases;observable;#b;#v;#y;listen=ti;constructor(e,t=eu){this.config(t),this.#v=e;let r=t._requestHandler;this.#y=r?(()=>{let n;return(i,s)=>(n||(n=new tA(e,{...t,_requestHandler:void 0})),r(i,t=>e(t,s),n))})():e,this.assets=new e9(this,this.#y),this.datasets=new tu(this,this.#y),this.live=new ta(this),this.mediaLibrary={video:new tf(this,this.#y)},this.projects=new tg(this,this.#y),this.users=new tE(this,this.#y),this.agent={action:new e6(this,this.#y)},this.releases=new tx(this,this.#y),this.observable=new tS(e,t)}clone(){return new tA(this.#v,this.config())}config(e){if(void 0===e)return{...this.#b};if(this.#b&&!1===this.#b.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.#b=eh(e,this.#b||{}),this}withConfig(e){let t=this.config();return new tA(this.#v,{...t,...e,stega:{...t.stega||{},..."boolean"==typeof e?.stega?{enabled:e.stega}:e?.stega||{}}})}fetch(e,t,r){return(0,d.s)(ej(this,this.#y,this.#b.stega,e,t,r))}getDocument(e,t){if(t?.includeAllVersions===!0)return(0,d.s)(eR(this,this.#y,e,{...t,includeAllVersions:!0}));let r={signal:t?.signal,tag:t?.tag,releaseId:t?.releaseId,...t&&"includeAllVersions"in t?{includeAllVersions:!1}:{}};return(0,d.s)(eR(this,this.#y,e,r))}getDocuments(e,t){return(0,d.s)(eN(this,this.#y,e,t))}create(e,t){return(0,d.s)(eW(this,this.#y,e,"create",t))}createIfNotExists(e,t){return(0,d.s)(eM(this,this.#y,e,t))}createOrReplace(e,t){return(0,d.s)(eF(this,this.#y,e,t))}createVersion({document:e,publishedId:t,releaseId:r,baseId:n,ifBaseRevisionId:i},s){if(!e)return(0,x._)(eL(this,this.#y,t,n,r,i,s));let a=tv("createVersion",{document:e,publishedId:t,releaseId:r}),o={...e,_id:a},l=t||(0,A.IM)(e._id);return(0,x._)(eP(this,this.#y,o,l,s))}delete(e,t){return(0,d.s)(ez(this,this.#y,e,t))}discardVersion({releaseId:e,publishedId:t},r,n){let i=tb(t,e);return(0,d.s)(eq(this,this.#y,i,r,n))}replaceVersion({document:e,publishedId:t,releaseId:r},n){let i=tv("replaceVersion",{document:e,publishedId:t,releaseId:r}),s={...e,_id:i};return(0,x._)(eU(this,this.#y,s,n))}unpublishVersion({releaseId:e,publishedId:t},r){let n=(0,A.ct)(t,e);return(0,d.s)(eB(this,this.#y,n,t,r))}mutate(e,t){return(0,d.s)(eV(this,this.#y,e,t))}patch(e,t){return new eE(e,t,this)}transaction(e){return new eO(e,this)}action(e,t){return(0,d.s)(eH(this,this.#y,e,t))}request(e){return(0,d.s)(eJ(this,this.#y,e))}dataRequest(e,t,r){return(0,d.s)(eG(this,this.#y,e,t,r))}getUrl(e,t){return eQ(this,e,t)}getDataUrl(e,t){return eX(this,e,t)}}let tO=function(e,t){return{requester:L(e),createClient:r=>{let n=L(e,{ignoreWarnings:r.ignoreWarnings});return new t((e,t)=>
58(t||n)({maxRedirects:0,maxRetries:r.maxRetries,retryDelay:r.retryDelay,lineage:r.lineage,...e}),r)}}}([],tA),tC=(tO.requester,tO.createClient)},59564:(e,t,r)=>{var n=r(74260),i=r(18068),s=r(58548),a=r(48405),o=r(4146),l=r(53394),u=r(77180);e.exports=function(e,t,r){if((e=u(e))&&(r||void 0===t))return i(e);if(!e||!(t=n(t)))return e;var c=l(e),d=l(t),h=o(c,d),f=a(c,d)+1;return s(c,h,f).join("")}},59888:(e,t,r)=>{"use strict";r.d(t,{c:()=>u});let 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"}};function i(e){return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}let s={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 o(e){return(t,r)=>{let n;if("formatting"===((null==r?void 0:r.context)?String(r.context):"standalone")&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,i=(null==r?void 0:r.width)?String(r.width):t;n=e.formattingValues[i]||e.formattingValues[t]}else{let t=e.defaultWidth,i=(null==r?void 0:r.width)?String(r.width):e.defaultWidth;n=e.values[i]||e.values[t]}return n[e.argumentCallback?e.argumentCallback(t):t]}}function l(e){return function(t){let r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.width,s=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],a=t.match(s);if(!a)return null;let o=a[0],l=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?function(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}(l,e=>e.test(o)):function(e,t){for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}(l,e=>e.test(o));return r=e.valueCallback?e.valueCallback(u):u,{value:r=n.valueCallback?n.valueCallback(r):r,rest:t.slice(o.length)}}}let u={code:"en-US",formatDistance:(e,t,r)=>{let i,s=n[e];if(i="string"==typeof s?s:1===t?s.one:s.other.replace("{{count}}",t.toString()),null==r?void 0:r.addSuffix)if(r.comparison&&r.comparison>0)return"in "+i;else return i+" ago";return i},formatLong:s,formatRelative:(e,t,r,n)=>a[e],localize:{ordinalNumber:(e,t)=>{let r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:o({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:o({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:o({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:o({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
58ay","Saturday"]},defaultWidth:"wide"}),dayPeriod:o({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){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;let i=n[0],s=t.match(e.parsePattern);if(!s)return null;let a=e.valueCallback?e.valueCallback(s[0]):s[0];return{value:a=r.valueCallback?r.valueCallback(a):a,rest:t.slice(i.length)}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>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:e=>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}}},60063:(e,t,r)=>{var n=r(16982),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:i.call(t,e)}},60194:(e,t,r)=>{var n=r(7290);e.exports=function(e){return(null==e?0:e.length)?n(e,1):[]}},60361:(e,t,r)=>{var n=r(58516),i=r(37864),s=r(57201),a=r(17010),o=r(57633),l=r(97423),u=r(77087),c=r(30734),d=r(42725);e.exports=function(e,t,r){t=t.length?n(t,function(e){return d(e)?function(t){return i(t,1===e.length?e[0]:e)}:e}):[c];var h=-1;return t=n(t,l(s)),o(a(e,function(e,r,i){return{criteria:n(t,function(t){return t(e)}),index:++h,value:e}}),function(e,t){return u(e,t,r)})}},60825:(e,t,r)=>{var n=r(79624),i=r(38767);e.exports=function(e,t){return n(e,t,function(t,r){return i(e,r)})}},60932:(e,t,r)=>{"use strict";r.d(t,{$n:()=>m,AM:()=>T,Dr:()=>C,IU:()=>b,lG:()=>g,m_:()=>S,oz:()=>I,tH:()=>y,vE:()=>D});var n=r(38562),i=r(7112),s=r(82795),a=r(33114),o=r(60266),l=r(61478),u=r(82500),c=r(86922),d=r(18833);let h={space:3,padding:3}
58,f={space:2,padding:2},p=c.I4.span`
59  display: inline-flex;
60`,m=(0,o.forwardRef)(function(e,t){let r,a,o,l,u,c,d,m,g=(0,i.c)(22);g[0]!==e?({size:l,mode:u,paddingY:a,paddingLeft:r,tone:c,tooltipProps:d,...o}=e,g[0]=e,g[1]=r,g[2]=a,g[3]=o,g[4]=l,g[5]=u,g[6]=c,g[7]=d):(r=g[1],a=g[2],o=g[3],l=g[4],u=g[5],c=g[6],d=g[7]);let y=void 0===u?"default":u,b=void 0===c?"default":c,v="default"===(void 0===l?"default":l)?f:h;g[8]!==y||g[9]!==r||g[10]!==a||g[11]!==t||g[12]!==o||g[13]!==v||g[14]!==b?(m=(0,n.jsx)(s.$n,{...o,...v,paddingY:a,paddingLeft:r,ref:t,mode:y,tone:b}),g[8]=y,g[9]=r,g[10]=a,g[11]=t,g[12]=o,g[13]=v,g[14]=b,g[15]=m):m=g[15];let _=m;if(d){let e,t,r=d?.content;return g[16]!==_?(e=(0,n.jsx)(p,{children:_}),g[16]=_,g[17]=e):e=g[17],g[18]!==r||g[19]!==e||g[20]!==d?(t=(0,n.jsx)(S,{content:r,portal:!0,...d,children:e}),g[18]=r,g[19]=e,g[20]=d,g[21]=t):t=g[21],t}return _}),g=(0,o.forwardRef)(function(e,t){let r,o,l,u,c,h,f,p,m,g=(0,i.c)(21);g[0]!==e?({bodyHeight:r,children:o,footer:l,padding:c,zOffset:h,...u}=e,g[0]=e,g[1]=r,g[2]=o,g[3]=l,g[4]=u,g[5]=c,g[6]=h):(r=g[1],o=g[2],l=g[3],u=g[4],
60c=g[5],h=g[6]);let y=void 0===c||c,{t:b}=(0,d.Bd)();g[7]!==l||g[8]!==u||g[9]!==b?(f=(l?.confirmButton||l?.cancelButton)&&(0,n.jsxs)(s.so,{width:"full",gap:3,justify:"flex-end",padding:3,align:"center",children:[l?.description&&(0,n.jsx)(s.az,{flex:1,paddingLeft:1,children:(0,n.jsx)(s.EY,{size:1,muted:!0,children:l.description})}),u.onClose&&(0,n.jsx)(s.$n,{mode:"bleed",padding:2,text:b("common.dialog.cancel-button.text"),tone:"default",onClick:u.onClose,"data-testid":"cancel-button",...l.cancelButton}),l.confirmButton&&(0,n.jsx)(s.$n,{mode:"default",padding:2,text:b("common.dialog.confirm-button.text"),tone:"critical","data-testid":"confirm-button",...l.confirmButton})]}),g[7]=l,g[8]=u,g[9]=b,g[10]=f):f=g[10];let v=4*!!y;return g[11]!==r||g[12]!==o||g[13]!==v?(p=(0,n.jsx)(s.az,{height:r,padding:v,children:o}),g[11]=r,g[12]=o,g[13]=v,g[14]=p):p=g[14],g[15]!==u||g[16]!==t||g[17]!==f||g[18]!==p||g[19]!==h?(m=(0,n.jsx)(a.lG,{...u,animate:!0,zOffset:h,ref:t,footer:f,children:p}),g[15]=u,g[16]=t,g[17]=f,g[18]=p,g[19]=h,g[20]=m):m=g[20],m});function y(e){let t,r,s,u,c=(0,i.c)(9);c[0]!==e?({onCatch:t,...r}=e,c[0]=e,c[1]=t,c[2]=r):(t=c[1],r=c[2]);let d=(0,o.useContext)(l.lH);c[3]!==t||c[4]!==d?(s=e=>{let{error:r,info:n}=e;try{d?.onUncaughtError?.(r,n)}catch(e){e.message=`Encountered an additional error when calling custom "onUncaughtError()": ${e.message}`,console.error(e)}t?.({error:r,info:n})},c[3]=t,c[4]=d,c[5]=s):s=c[5];let h=s;return c[6]!==h||c[7]!==r?(u=(0,n.jsx)(a.tH,{...r,onCatch:h}),c[6]=h,c[7]=r,c[8]=u):u=c[8],u}let b=(0,o.forwardRef)(function(e,t){let r,s,o=(0,i.c)(6);return o[0]!==e.popover?(r={...e.popover,animate:!0},o[0]=e.popover,o[1]=r):r=o[1],o[2]!==e||o[3]!==t||o[4]!==r?(s=(0,n.jsx)(a.IU,{...e,ref:t,popover:r}),o[2]=e,o[3]=t,o[4]=r,o[5]=s):s=o[5],s});function v(e){let t,r,a,o,l,u,c=(0,i.c)(12);c[0]!==e?({makePlatformAware:r,keys:a,...t}=e,c[0]=e,c[1]=t,c[2]=r,c[3]=a):(t=c[1],r=c[2],a=c[3]);let d=void 0===r||r;c[4]!==a?(o=void 0===a?[]:a,c[4]=a,c[5]=o):o=c[5];let h=o;c[6]!==h||c[7]!==d?(l=d?h.map(w):h,c[6]=h,c[7]=d,c[8]=l):l=c[8];let f=l;return c[9]!==f||c[10]!==t?(u=(0,n.jsx)(s.qW,{...t,keys:f}),c[9]=f,c[10]=t,c[11]=u):u=c[11],u}let _=!(typeof navigator>"u")&&"string"==typeof navigator.platform&&/Mac|iPod|iPhone|iPad/.test(navigator.platform||"");function w(e){let t=e.toLowerCase();return"alt"===t&&_?x(e,"option"):"option"!==t||_?e:x(e,"alt")}function x(e,t){let r=e.length;return t.replace(/./g,(t,n)=>n<r&&e[n]===e[n].toUpperCase()?t.toUpperCase():t)}let k={open:400},E={animate:!0,arrow:!1,boundaryElement:null,delay:k,fallbackPlacements:["bottom-start","bottom-end","top-start","top-end"],placement:"bottom",portal:!0},S=(0,o.forwardRef)(function(e,t){let r,a,o,l,u=(0,i.c)(19);if(u[0]!==e?({content:r,hotkeys:a,...o}=e,u[0]=e,u[1]=r,u[2]=a,u[3]=o):(r=u[1],a=u[2],o=u[3]),"string"==typeof r){let e,i,l,c;return u[4]!==r?(e=r&&(0,n.jsx)(s.az,{flex:1,padding:1,children:(0,n.jsx)(s.EY,{size:1,children:r})}),u[4]=r,u[5]=e):e=u[5],u[6]!==a?(i=a&&(0,n.jsx)(s.az,{flex:"none",children:(0,n.jsx)(v,{keys:a})}),u[6]=a,u[7]=i):i=u[7],u[8]!==e||u[9]!==i?(l=(0,n.jsxs)(s.so,{align:"center",children:[e,i]}),u[8]=e,u[9]=i,u[10]=l):l=u[10],u[11]!==t||u[12]!==o||u[13]!==l?(c=(0,n.jsx)(s.m_,{...E,content:l,padding:1,ref:t,...o}),u[11]=t,u[12]=o,u[13]=l,u[14]=c):c=u[14],c}return u[15]!==r||u[16]!==t||u[17]!==o?(l=(0,n.jsx)(s.m_,{...E,content:r,ref:t,...o}),u[15]=r,u[16]=t,u[17]=o,u[18]=l):l=u[18],l}),A=(0,c.I4)(s.EY)`
61  margin-top: 2px;
62`,O=(0,c.I4)(s.az)`
63  height: 25px;
64  width: 25px;
65  overflow: hidden;
66`,C=(0,o.forwardRef)(function(e,t){let r,a,l,c,d,h,f,p,m,g,y,b,_,w,x,k,E,C,T,I,D=(0,i.c)(49);D[0]!==e?({badgeText:d,children:h,disabled:f,hotkeys:p,icon:r,iconRight:a,preview:y,renderMenuItem:m,text:b,tooltipProps:_,__unstable_subtitle:c,__unstable_space:l,...g}=e,D[0]=e,D[1]=r,D[2]=a,D[3]=l,D[4]=c,D[5]=d,D[6]=h,D[7]=f,D[8]=p,D[9]=m,D[10]=g,D[11]=y,D[12]=b,D[13]=_):(r=D[1],a=D[2],l=D[3],c=D[4],d=D[5],h=D[6],f=D[7],p=D[8],m=D[9],g=D[10],y=D[11],b=D[12],_=D[13]);let j=void 0===y?null:y;D[14]!==l||D[15]!==f||D[16]!==j?(w=j&&(0,n.jsx)(O,{style:{opacity:f?.25:void 0},paddingRight:+!!l,children:(0,n.jsx)(s.so,{align:"center",height:"fill",justify:"center",children:j})}),D[14]=l,D[15]=f,D[16]=j,D[17]=w):w=D[17],D[18]!==r?(x=r&&(0,n.jsx)(s.az,{paddingRight:1,children:(0,n.jsxs)(s.EY,{size:1,children:[(0,o.isValidElement)(r)&&r,(0,u.isValidElementType)(r)&&(0,n.jsx)(r,{})]})}),D[18]=r,D[19]=x):x=D[19],D[20]!==c||D[21]!==b?(k=b&&(0,n.jsxs)(s.BJ,{flex:1,space:c?1:2,children:[(0,n.jsx)(s.EY,{size:1,textOverflow:"ellipsis",weight:"medium",children:b}),c&&(0,n.jsx)(A,{size:0,textOverflow:"ellipsis",weight:"medium",muted:!0,children:c})]}),D[20]=c,D[21]=b,D[22]=k):k=D[22],D[23]!==a||D[24]!==d||D[25]!==p?(E=(d||p||a)&&(0,n.jsxs)(s.so,{align:"center",gap:3,marginLeft:3,children:[p&&(0,n.jsx)(v,{keys:p,style:{marginTop:-4,marginBottom:-4}}),d&&(0,n.jsx)(s.Ex,{fontSize:0,style:{marginTop:-4,marginBottom:-4},children:d}),a&&(0,n.jsxs)(s.EY,{size:1,children:[(0,o.isValidElement)(a)&&a,(0,u.isValidElementType)(a)&&(0,n.jsx)(a,{})]})]}),D[23]=a,D[24]=d,D[25]=p,D[26]=E):E=D[26],D[27]!==w||D[28]!==x||D[29]!==k||D[30]!==E?(C=(0,n.jsxs)(s.so,{align:"center",gap:2,children:[w,x,k,E]}),D[27]=w,D[28]=x,D[29]=k,D[30]=E,D[31]=C):C=D[31];let R=C,N=j?1:3,$=j?1:3;D[32]!==h||D[33]!==R||D[34]!==m?(T=typeof h>"u"&&"function"==typeof m?m(R):R,D[32]=h,D[33]=R,D[34]=m,D[35]=T):T=D[35
66],D[36]!==f||D[37]!==t||D[38]!==g||D[39]!==N||D[40]!==$||D[41]!==T?(I=(0,n.jsx)(s.Dr,{disabled:f,paddingLeft:N,paddingRight:3,paddingY:$,ref:t,...g,children:T}),D[36]=f,D[37]=t,D[38]=g,D[39]=N,D[40]=$,D[41]=T,D[42]=I):I=D[42];let M=I;if(_){let e,t,r=_?.content;return D[43]!==M?(e=(0,n.jsx)("div",{children:M}),D[43]=M,D[44]=e):e=D[44],D[45]!==r||D[46]!==e||D[47]!==_?(t=(0,n.jsx)(S,{content:r,portal:!0,..._,children:e}),D[45]=r,D[46]=e,D[47]=_,D[48]=t):t=D[48],t}return M}),T=(0,o.forwardRef)(function(e,t){let r,a,o,l=(0,i.c)(7);l[0]!==e?({animate:a,...r}=e,l[0]=e,l[1]=r,l[2]=a):(r=l[1],a=l[2]);let u=void 0===a||a;return l[3]!==u||l[4]!==t||l[5]!==r?(o=(0,n.jsx)(s.AM,{...r,animate:u,ref:t}),l[3]=u,l[4]=t,l[5]=r,l[6]=o):o=l[6],o}),I=(0,o.forwardRef)(function(e,t){let r,a,o,l=(0,i.c)(7);l[0]!==e?({tone:a,...r}=e,l[0]=e,l[1]=r,l[2]=a):(r=l[1],a=l[2]);let u=void 0===a?"default":a;return l[3]!==r||l[4]!==t||l[5]!==u?(o=(0,n.jsx)(s.oz,{...r,muted:!0,padding:2,ref:t,tone:u}),l[3]=r,l[4]=t,l[5]=u,l[6]=o):o=l[6],o}),D=e=>{let t,r=(0,i.c)(2);return r[0]!==e.children?(t=(0,n.jsx)(s.vE,{delay:k,children:e.children}),r[0]=e.children,r[1]=t):t=r[1],t}},61085:(e,t,r)=>{var n=r(73567),i=r(92908);e.exports=function(e,t){return n(e,i(e),t)}},61173:e=>{e.exports=function(){return[]}},61409:(e,t,r)=>{"use strict";r.d(t,{SP:()=>o});var n,i,s=r(54501);let a=new WeakMap;function o(e){return{config:e,start:(t,r)=>{let{self:n,system:i,emit:s}=r,o={receivers:void 0,dispose:void 0};a.set(n,o),o.dispose=e({input:t.input,system:i,self:n,sendBack:e=>{"stopped"!==n.getSnapshot().status&&n._parent&&i._relay(n,n._parent,e)},receive:e=>{o.receivers??=new Set,o.receivers.add(e)},emit:s})},transition:(e,t,r)=>{let n=a.get(r.self);return t.type===s.X?(e={...e,status:"stopped",error:void 0},a.delete(r.self),n.receivers?.clear(),n.dispose?.()):n.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}}new WeakMap,n=e=>void 0,i=0},61425:(e,t,r)=>{"use strict";r.d(t,{Un:()=>l,cd:()=>a});var n=r(7112),i=r(60266),s=r(82762);function a(e){let t,r,a=(0,n.c)(4),l=(0,s.h)();return a[0]!==l||a[1]!==e.behaviors?(t=()=>{let t=e.behaviors.map(e=>l.registerBehavior({behavior:e}));return()=>{t.forEach(o)}},r=[l,e.behaviors],a[0]=l,a[1]=e.behaviors,a[2]=t,a[3]=r):(t=a[2],r=a[3]),(0,i.useEffect)(t,r),null}function o(e){e()}function l(e){let t,r,a=(0,n.c)(4),o=(0,s.h)();return a[0]!==o||a[1]!==e.on?(t=()=>{let t=o.on("*",e.on);return()=>{t.unsubscribe()}},r=[o,e.on],a[0]=o,a[1]=e.on,a[2]=t,a[3]=r):(t=a[2],r=a[3]),(0,i.useEffect)(t,r),null}i.forwardRef((e,t)=>{let r,a,o=(0,n.c)(2),l=(0,s.h)(),u=i.useRef(l);return o[0]===Symbol.for("react.memo_cache_sentinel")?(r=()=>u.current,a=[],o[0]=r,o[1]=a):(r=o[0],a=o[1]),i.useImperativeHandle(t,r,a),null}).displayName="EditorRefPlugin"},61459:(e,t,r)=>{var n=r(72557),i=r(74107),s=r(41194);e.exports=function(e){return s(e)?n(e,!0):i(e)}},61478:(e,t,r)=>{"use strict";r.d(t,{ZC:()=>c,iD:()=>d,qm:()=>h,E6:()=>f,Yi:()=>p,VN:()=>g,_x:()=>m,RU:()=>y,fG:()=>b,ZU:()=>v,ki:()=>_,eP:()=>w,pn:()=>x,io:()=>k,lG:()=>E,AR:()=>S,F8:()=>A,Uc:()=>O,DR:()=>C,Nj:()=>T,HU:()=>I,YI:()=>D,k5:()=>j,pz:()=>R,vV:()=>N,NU:()=>$,q4:()=>M,xh:()=>F,xP:()=>P,sj:()=>L,qL:()=>z,RA:()=>q,pd:()=>U,EM:()=>B,U6:()=>V,dv:()=>H,BY:()=>G,A3:()=>Z,ht:()=>Y,rf:()=>K,u2:()=>J,tt:()=>X,rr:()=>ee,ov:()=>Q,cr:()=>et,DA:()=>er,Re:()=>en,JQ:()=>ei,Pn:()=>ea,Q$:()=>eo,HJ:()=>el,zA:()=>eu,Nv:()=>ec,iS:()=>ed,Zk:()=>ef,Ng:()=>eh,qI:()=>ep,z_:()=>em,o7:()=>eg,Ni:()=>ey,oo:()=>eb,OP:()=>ev,KH:()=>e_,lH:()=>ew,Gt:()=>es,sF:()=>ex,JW:()=>ek,S$:()=>eE,b_:()=>eS,vu:()=>eA,dY:()=>eO,hK:()=>eC,zp:()=>eT,WB:()=>eI,SR:()=>eD});var n=r(60266),i=r(29448);let s="https://www.sanity.io/help/missing-context-error";function a(e,t){let r=Symbol.for(e);if(typeof document>"u"||"u">typeof window&&"u">typeof window.navigator&&window.navigator.userAgent.includes("jsdom")){let r=(0,n.createContext)(t);return r.displayName=e,r}if(l[r]){if(l[r].version!==i.s)throw TypeError(`Duplicate instances of context "${e}" with incompatible versions detected: Expected ${i.s} but got ${l[r].version}.
67
68For more information, please visit ${s}`);o.has(i.s)||(console.warn(`Duplicate instances of context "${e}" detected. This is likely a mistake and may cause unexpected behavior.
69
70For more information, please visit ${s}`),o.add(i.s))}else l[r]={context:(0,n.createContext)(t),version:i.s};return l[r].context}let o=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=r(72319);r(38562),r(7112);let c=a("sanity/_singletons/context/active-workspace-matcher",null),d=a("sanity/_singletons/context/addon-dataset",null),h=a("sanity/_singletons/context/app-id-cache",null),f=a("sanity/_singletons/context/asset-limit-upsell",null),p=a("sanity/_singletons/context/calendar",void 0),m=a("sanity/_singletons/context/change-indicator-tracker-store",null),g=
70a("sanity/_singletons/context/change-indicator-tracker-get-snapshot",null),y=a("sanity/_singletons/context/color-scheme-set-value",null),b=a("sanity/_singletons/context/color-scheme-value",null),v=a("sanity/_singletons/context/comment-input",null),_=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),S=a("sanity/_singletons/context/comments-selected-path",null),A=a("sanity/_singletons/context/comments-upsell",null),O=a("sanity/_singletons/context/copy-paste",null),C=a("sanity/_singletons/context/diff",{path:[]}),T=a("sanity/_singletons/context/document-action-props",void 0),I=(a("sanity/_singletons/context/actions-state",null),a("sanity/_singletons/context/document-change",null)),D=a("sanity/_singletons/context/document-field-actions",null),j=a("sanity/_singletons/context/document-id",null),R=(a("sanity/_singletons/context/document-limit-upsell",null),a("sanity/_singletons/context/document-pane",null),a("sanity/_singletons/context/document-sheet-list",void 0),a("sanity/_singletons/context/enhanced-object-dialog-enabled",{enabled:!1,isDialogAvailable:!1,legacyEditing:!1})),N=(a("sanity/_singletons/context/events",null),a("sanity/_singletons/context/field-actions",{actions:[],focused:!1,hovered:!1,__internal_slot:void 0,__internal_comments:void 0,onMouseEnter:()=>{},onMouseLeave:()=>{}})),$=a("sanity/_singletons/context/form-builder",null),M=a("sanity/_singletons/context/form-callbacks",null),F=a("sanity/_singletons/context/form-field-presence",[]),P=a("sanity/_singletons/context/form-value",null),L=a("sanity/_singletons/context/free-trial",void 0),z=a("sanity/_singletons/context/fullscreen-pte",{getFullscreenPath:()=>{},setFullscreenPath:()=>{},hasAnyFullscreen:()=>!1,allFullscreenPaths:[]}),q=a("sanity/_singletons/context/get-form-value",null),U=a("sanity/_singletons/context/hovered-field",{store:{subscribe:()=>()=>{},getSnapshot:()=>[]},onMouseEnter:()=>{},onMouseLeave:()=>{}}),B=a("sanity/_singletons/context/is-last-pane",!1),V=(a("sanity/_singletons/context/live-user-application",{userApplication:void 0}),a("sanity/_singletons/context/locale",void 0)),H=a("sanity/_singletons/context/media-library",null),G=a("sanity/_singletons/context/mention-user",null);function W(){throw Error("Pane is missing router context")}a("sanity/_singletons/context/navbar",{onSearchFullscreenOpenChange:()=>"",onSearchOpenChange:()=>"",searchFullscreenOpen:!1,searchFullscreenPortalEl:null,searchOpen:!1}),a("sanity/_singletons/context/package-version-info",{isAutoUpdating:!1,checkForUpdates:()=>{},get currentVersion(){throw Error("PackageVersionInfoContext not provided")},versionCheckStatus:{lastCheckedAt:null,checking:!1}}),a("sanity/_singletons/context/pane",null),a("sanity/_singletons/context/pane-layout",null),a("sanity/_singletons/context/pane-router",{index:0,groupIndex:0,siblingIndex:0,payload:void 0,params:{},hasGroupSiblings:!1,groupLength:0,routerPanesState:[],BackLink:()=>W(),ChildLink:()=>W(),ReferenceChildLink:()=>W(),handleEditReference:()=>W(),ParameterizedLink:()=>W(),replaceCurrent:()=>W(),closeCurrentAndAfter:()=>W(),closeCurrent:()=>W(),duplicateCurrent:()=>W(),setView:()=>W(),setParams:()=>W(),setPayload:()=>W(),navigateIntent:()=>W(),createPathWithParams:()=>W()});let Z=a("sanity/_singletons/context/perspective-context",null),Y=a("sanity/_singletons/context/portable-text-markers",[]),K=a("sanity/_singletons/context/portable-text-member-item-element-refs",new u.t({})),J=a("sanity/_singletons/context/portable-text-member-items",[]),X=a("sanity/_singletons/context/presence",[]),Q=a("sanity/_singletons/context/presence-tracker-store",null),ee=a("sanity/_singletons/context/presence-tracker-get-snapshot",null),et=(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})),er=a("sanity/_singletons/context/reference-input-options",{}),en=a("sanity/_singletons/context/reference-item-ref",null),ei=a("sanity/_singletons/context/releases-metadata",null),es=a("sanity/_singletons/context/releases-table",null),ea=a("sanity/_singletons/context/releases-upsell",null);a("sanity/_singletons/context/resolved-panes",null);let eo=a("sanity/_singletons/context/resource-cache",null),el=a("sanity/_singletons/context/review-changes",{onOpenReviewChanges:()=>{},onSetFocus:()=>{},isReviewChangesOpen:!1,isInteractive:!0}),eu=a("sanity/_singletons/context/router",null),ec=a("sanity/_singletons/context/router-history",null),ed=a("sanity/_singletons/context/start-in-create-enabled",{startInCreateEnabled:!1}),eh=a("sanity/_singletons/context/scheduled-publishing-enabled",{enabled:!1,mode:null,hasUsedScheduledPublishing:{used:!1,loading:!1}}),ef=a("sanity/_singletons/context/schedule-publish-upsell",{upsellData:null,handleOpenDialog:()=>null,handleClose:()=>null,upsellDialogOpen:!1,telemetryLogs:{dialogSecondaryClicked:()=>null,dialogPrimaryClicked:()=>null,panelViewed:()=>null,panelDismissed:()=>null,panelPrimaryClicked:()=>null,panelSecondaryClicked:()=>null}}),ep=a("sanity/_singletons/context/schedules",void 0),em=a("sanity/_singletons/context/scroll",null),eg=a("sanity/_singletons/context/search",void 0),ey=a("sanity/_singletons/context/single-doc-release-context",null),eb=a("sanity/_singletons/context/single-doc-release-enabled",{enabled:!1,mode:null}),ev=a("sanity/_singletons/context/single-doc-release-upsell",{upsellData:null,handleOpenDialog:()=>null,handleClose:()=>null,upsellDialogOpen:!1,telemetryLogs:{dialogSecondaryClicked:()=>null,dialogPrimaryClicked:()=>null,panelViewed:()=>null,panelDismissed:()=>null,panelPrimaryClicked:()=>null,panelSecondaryClicked:()=>null}}),e_=a("sanity/_singletons/context/sortable-item-id",null),ew=a("sanity/_singletons/context/source",null),ex=(a("sanity/_singletons/context/structure-tool",null),a("sanity/_singletons/context/studioAnnouncements",void 0),a("sanity/_singletons/context/tasks",null)),ek=a("sanity/_singletons/context/tasks-enabled",{enabled:!1,mode:null}),eE=a("sanity/_singletons/context/tasks-navigation",null),eS=a("sanity/_singletons/context/tasks-upsell",null),eA=(a("sanity/_singletons/context/user-application-cache",null),a("sanity/_singletons/context/user-color-manager",null)),eO=a("sanity/_singletons/context/validation",[]),eC=a("sanity/_singletons/context/virtualizer-scroll-instance",null),eT=a("sanity/_singletons/context/workspace",null),eI=a("sanity/_singletons/context/workspaces",null),eD=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
70d:1060,tooltip:200,modalBackground:2e3,spinner:3e3})},61680:(e,t,r)=>{"use strict";r.d(t,{c:()=>f});var n=r(43523),i=r(21575),s=r(36330),a=r(84841),o=r(81451),l=r(624),u=r(46820),c=r(20883),d=r(2297),h=r(44220);function f(e,t){void 0===t&&(t=n.E);var r=(0,h.O)(e,t);return function e(t,r){return r?function(n){return(0,i.x)(r.pipe((0,s.s)(1),(0,a.N)(function(e,t){e.subscribe((0,o._)(t,l.l))})),n.pipe(e(t)))}:(0,c.Z)(function(e,r){return(0,d.Tg)(t(e,r)).pipe((0,s.s)(1),(0,u.u)(e))})}(function(){return r})}},62118:(e,t,r)=>{var n=r(37811);let i="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,s=()=>i.now(),a=e=>e===1/0||(e=>e&&e===Math.floor(e)&&e>0&&isFinite(e))(e);class o{constructor({max:e=1/0,ttl:t,updateAgeOnGet:r=!1,checkAgeOnGet:n=!1,noUpdateTTL:i=!1,dispose:s,noDisposeOnSet:o=!1}={}){if(this.expirations=Object.create(null),this.data=new Map,this.expirationMap=new Map,void 0!==t&&!a(t))throw TypeError("ttl must be positive integer or Infinity if set");if(!a(e))throw TypeError("max must be positive integer or Infinity");if(this.ttl=t,this.max=e,this.updateAgeOnGet=!!r,this.checkAgeOnGet=!!n,this.noUpdateTTL=!!i,this.noDisposeOnSet=!!o,void 0!==s){if("function"!=typeof s)throw TypeError("dispose must be function if set");this.dispose=s}this.timer=void 0,this.timerExpiration=void 0}setTimer(e,t){if(this.timerExpiration<e)return;this.timer&&clearTimeout(this.timer);let r=setTimeout(()=>{for(let e in this.timer=void 0,this.timerExpiration=void 0,this.purgeStale(),this.expirations){this.setTimer(e,e-s());break}},t);r.unref&&r.unref(),this.timerExpiration=e,this.timer=r}cancelTimer(){this.timer&&(clearTimeout(this.timer),this.timerExpiration=void 0,this.timer=void 0)}cancelTimers(){return n.emitWarning('TTLCache.cancelTimers has been renamed to TTLCache.cancelTimer (no "s"), and will be removed in the next major version update'),this.cancelTimer()}clear(){let e=this.dispose!==o.prototype.dispose?[...this]:[];for(let[t,r]of(this.data.clear(),this.expirationMap.clear(),this.cancelTimer(),this.expirations=Object.create(null),e))this.dispose(r,t,"delete")}setTTL(e,t=this.ttl){let r=this.expirationMap.get(e);if(void 0!==r){let t=this.expirations[r];!t||t.length<=1?delete this.expirations[r]:this.expirations[r]=t.filter(t=>t!==e)}if(t!==1/0){let r=Math.floor(s()+t);this.expirationMap.set(e,r),this.expirations[r]||(this.expirations[r]=[],this.setTimer(r,t)),this.expirations[r].push(e)}else this.expirationMap.set(e,1/0)}set(e,t,{ttl:r=this.ttl,noUpdateTTL:n=this.noUpdateTTL,noDisposeOnSet:i=this.noDisposeOnSet}={}){if(!a(r))throw TypeError("ttl must be positive integer or Infinity");if(this.expirationMap.has(e)){n||this.setTTL(e,r);let s=this.data.get(e);s!==t&&(this.data.set(e,t),i||this.dispose(s,e,"set"))}else this.setTTL(e,r),this.data.set(e,t);for(;this.size>this.max;)this.purgeToCapacity();return this}has(e){return this.data.has(e)}getRemainingTTL(e){let t=this.expirationMap.get(e);return t===1/0?t:void 0!==t?Math.max(0,Math.ceil(t-s())):0}get(e,{updateAgeOnGet:t=this.updateAgeOnGet,ttl:r=this.ttl,checkAgeOnGet:n=this.checkAgeOnGet}={}){let i=this.data.get(e);return n&&0===this.getRemainingTTL(e)?void this.delete(e):(t&&this.setTTL(e,r),i)}dispose(e,t){}delete(e){let t=this.expirationMap.get(e);if(void 0!==t){let r=this.data.get(e);this.data.delete(e),this.expirationMap.delete(e);let n=this.expirations[t];return n&&(n.length<=1?delete this.expirations[t]:this.expirations[t]=n.filter(t=>t!==e)),this.dispose(r,e,"delete"),0===this.size&&this.cancelTimer(),!0}return!1}purgeToCapacity(){for(let e in this.expirations){let t=this.expirations[e];if(this.size-t.length>=this.max){delete this.expirations[e];let r=[];for(let e of t)r.push([e,this.data.get(e)]),this.data.delete(e),this.expirationMap.delete(e);for(let[e,t]of r)this.dispose(t,e,"evict")}else{let e=this.size-this.max,r=[];for(let n of t.splice(0,e))r.push([n,this.data.get(n)]),this.data.delete(n),this.expirationMap.delete(n);for(let[e,t]of r)this.dispose(t,e,"evict");return}}}get size(){return this.data.size}purgeStale(){let e=Math.ceil(s());for(let t in this.expirations){if("Infinity"===t||t>e)return;let r=[...this.expirations[t]||[]],n=[];for(let e of(delete this.expirations[t],r))n.push([e,this.data.get(e)]),this.data.delete(e),this.expirationMap.delete(e);for(let[e,t]of n)this.dispose(t,e,"stale")}0===this.size&&this.cancelTimer()}*entries(){for(let e in this.expirations)for(let t of this.expirations[e])yield[t,this.data.get(t)]}*keys(){for(let e in this.expirations)for(let t of this.expirations[e])yield t}*values(){for(let e in this.expirations)for(let t of this.expirations[e])yield this.data.get(t)}[Symbol.iterator](){return this.entries()}}e.exports=o},62171:(e,t,r)=>{"use strict";r.d(t,{A_:()=>E,Bg:()=>I,ER:()=>V,GB:()=>h,HA:()=>P,HX:()=>G,JB:()=>A,Jo:()=>p,Lw:()=>L,N2:()=>O,P$:()=>d,Q:()=>y,Qm:()=>H,RL:()=>F,Rt:()=>l,UH:()=>R,Uv:()=>D,WV:()=>b,Y1:()=>U,aR:()=>f,d2:()=>u,dO:()=>q,eb:()=>k,gR:()=>v,gU:()=>s,hH:()=>a,iE:()=>_,iL:()=>$,jR:()=>o,kK:()=>T,l$:()=>S,lA:()=>N,lN:()=>w,oZ:()=>B,qm:()=>M,rm:()=>C,u0:()=>j,wx:()=>c,yh:()=>z});var n=r(98833),i=r(93790);let s=e=>{if(!e.context.selection)return;let t=(0,i.XE)(e.context.selection.focus),r=t?e.blockIndexMap.get(t):void 0,n=void 0!==r?e.context.value.at(r):void 0;return n&&t?{node:n,path:[{_key:t}]}:void 0},a=e=>{let t=s(e);return t&&(0,n.zS)(e.context,t.node)?{node:t.node,path:t.path}:void 0},o=e=>{if(!e.context.selection)return;let t=a(e);if(!t)return;let r=(0,i.qX)(e.context.selection.focus),n=r?t.node.children.find(e=>e._key===r):void 0;return n&&r?{node:n,path:[...t.path,"children",{_key:r}]}:void 0},l=e=>
70{let t=o(e);return t&&!(0,n.bl)(e.context,t.node)?{node:t.node,path:t.path}:void 0},u=e=>{let t=o(e);return t&&(0,n.bl)(e.context,t.node)?{node:t.node,path:t.path}:void 0},c=e=>{if(!e.context.selection)return[];let t=[],r=(0,i.Jo)(e.context.selection),n=(0,i.aR)(e.context.selection),s=(0,i.XE)(r),a=(0,i.XE)(n);if(!s||!a)return t;let o=e.blockIndexMap.get(s),l=e.blockIndexMap.get(a);if(void 0===o||void 0===l)return t;for(let r of e.context.value.slice(o,l+1)){if(r._key===s){if(t.push({node:r,path:[{_key:r._key}]}),s===a)break;continue}if(r._key===a){t.push({node:r,path:[{_key:r._key}]});break}t.length>0&&t.push({node:r,path:[{_key:r._key}]})}return t},d=e=>{let t=(0,i.aR)(e.context.selection);if(t)return s({...e,context:{...e.context,selection:{anchor:t,focus:t}}})},h=e=>{let t=(0,i.Jo)(e.context.selection);if(t)return s({...e,context:{...e.context,selection:{anchor:t,focus:t}}})},f=e=>{if(e.context.selection)return e.context.selection.backward?e.context.selection.anchor:e.context.selection.focus},p=e=>{if(e.context.selection)return e.context.selection.backward?e.context.selection.focus:e.context.selection.anchor};function m(e){return t=>{if(!t.context.selection)return!1;let r=(0,i.aR)(t.context.selection),s=(0,i.XE)(r),a=(0,i.qX)(r),o=(0,i.XE)(e),l=(0,i.qX)(e);if(!o||!s)return!1;let u=t.blockIndexMap.get(o),c=t.blockIndexMap.get(s);if(void 0===u||void 0===c)return!1;if(u>c)return!0;if(u<c)return!1;let d=t.context.value.at(u);if(!d||!(0,n.zS)(t.context,d))return!1;let h,f,p=-1;for(let t of d.children){if(p++,t._key===l&&t._key===a)return e.offset>r.offset;if(t._key===l&&(h=p),t._key===a&&(f=p),void 0!==h&&void 0!==f)break}return void 0!==h&&void 0!==f&&h>f}}function g(e){return t=>{if(!t.context.selection)return!1;let r=(0,i.Jo)(t.context.selection),s=(0,i.XE)(r),a=(0,i.qX)(r),o=(0,i.XE)(e),l=(0,i.qX)(e);if(!o||!s)return!1;let u=t.blockIndexMap.get(s),c=t.blockIndexMap.get(o);if(void 0===u||void 0===c)return!1;if(c<u)return!0;if(c>u)return!1;let d=t.context.value.at(c);if(!d||!(0,n.zS)(t.context,d))return!1;let h,f,p=-1;for(let t of d.children){if(p++,t._key===l&&t._key===a)return e.offset<r.offset;if(t._key===l&&(h=p),t._key===a&&(f=p),void 0!==h&&void 0!==f)break}return void 0!==h&&void 0!==f&&h<f}}function y(e){return t=>{if(!e||!t.context.selection)return!1;let r=p({context:{...t.context,selection:e}}),n=f({context:{...t.context,selection:e}}),s=p(t),a=f(t);if(!r||!n||!s||!a)return!1;let o=(0,i._Q)(r,s),l=(0,i._Q)(n,a);if(o&&l)return!0;let u=g(r)(t),c=m(r)(t),d=g(n)(t),h=m(n)(t),y=g(s)({...t,context:{...t.context,selection:{anchor:r,focus:r}}}),b=m(s)({...t,context:{...t.context,selection:{anchor:r,focus:r}}}),v=g(a)({...t,context:{...t.context,selection:{anchor:n,focus:n}}}),_=m(a)({...t,context:{...t.context,selection:{anchor:n,focus:n}}}),w=(0,i._Q)(r,a),x=(0,i._Q)(n,s);return(!!x||!!w||!!y||!!b||!!v||!!_)&&(!d||!!x)&&(!c||!!w)&&(!y&&b&&!v&&_?!x:y&&!b&&v&&!_?!w:!c||!u||!h||!d)}}let b=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,v=e=>null!==e.context.selection&&!b(e),_=e=>{if(!e.context.selection)return!1;let t=e.context.selection.backward?e.context.selection.focus:e.context.selection.anchor,r=e.context.selection.backward?e.context.selection.anchor:e.context.selection.focus,n=h(e),s=d(e);if(!n||!s)return!1;let a=(0,i.u3)({context:e.context,block:n}),o=(0,i.J8)({context:e.context,block:s});return(0,i._Q)(a,t)&&(0,i._Q)(o,r)},w=e=>{let t=e.context.selection;if(!t)return[];let r=(0,i.Jo)(t),n=(0,i.aR)(t),s=(0,i.XE)(r),a=(0,i.XE)(n);if(!s||!a)return[];let o=e.blockIndexMap.get(s),l=e.blockIndexMap.get(a);if(void 0===o||void 0===l)return[];let u=e.context.value.at(o),c=u?(0,i.RJ)({context:e.context,blocks:[u]}).at(0):void 0;if(o===l)return c?[c]:[];let d=e.context.value.at(l),h=d?(0,i.RJ)({context:e.context,blocks:[d]}).at(0):void 0;return[...c?[c]:[],...e.context.value.slice(o+1,l),...h?[h]:[]]};function x(e){var t;let r=e.at(0);return 1===e.length&&void 0!==r&&!!(t=r)&&("object"==typeof t||"function"==typeof t)&&"_key"in r&&"string"==typeof r._key}let k=e=>
70{let t=d(e),r=f(e);if(!t||!r||!(0,n.zS)(e.context,t.node))return;let s=(0,i.qX)(r),a=!1,o;for(let r of t.node.children){if(r._key===s){a=!0;continue}if((0,n.bl)(e.context,r)&&a){o={node:r,path:[...t.path,"children",{_key:r._key}]};break}}return o},E=e=>{let t,r=h(e),s=p(e);if(!r||!s||!(0,n.zS)(e.context,r.node))return;let a=(0,i.qX)(s);for(let i of r.node.children){if(i._key===a)break;(0,n.bl)(e.context,i)&&(t={node:i,path:[...r.path,"children",{_key:i._key}]})}return t},S=e=>{if(!e.context.selection)return[];let t=[],r=p(e),s=f(e);if(!r||!s)return t;let a=(0,i.XE)(r),o=(0,i.XE)(s),l=(0,i.qX)(r),u=(0,i.qX)(s);if(!a||!o)return t;let c=e.blockIndexMap.get(a),d=e.blockIndexMap.get(o);if(void 0===c||void 0===d)return t;let h=e.context.value.slice(c,d+1),m=!1;for(let i of h)if(i._key===a&&(m=!0),(0,n.zS)(e.context,i)){if(i._key===a){for(let a of i.children)if((0,n.bl)(e.context,a)){if(l&&a._key===l){if(r.offset<a.text.length&&t.push({node:a,path:[{_key:i._key},"children",{_key:a._key}]}),l===u)break;continue}if(u&&a._key===u){s.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===o)break;continue}if(i._key===o){for(let r of i.children)if((0,n.bl)(e.context,r)){if(u&&r._key===u){s.offset>0&&t.push({node:r,path:[{_key:i._key},"children",{_key:r._key}]});break}t.push({node:r,path:[{_key:i._key},"children",{_key:r._key}]})}break}if(m)for(let r of i.children)(0,n.bl)(e.context,r)&&t.push({node:r,path:[{_key:i._key},"children",{_key:r._key}]})}return t},A=e=>{if(!e.context.selection)return;let t=e.context.selection;if(!a(e))return;if(x(t.anchor.path)){let r=(0,i.m4)({context:e.context,blockOffset:{path:t.anchor.path,offset:t.anchor.offset},direction:t.backward?"backward":"forward"});t=r?{...t,anchor:r}:t}if(x(t.focus.path)){let r=(0,i.m4)({context:e.context,blockOffset:{path:t.focus.path,offset:t.focus.offset},direction:t.backward?"backward":"forward"});t=r?{...t,focus:r}:t}let r=u({...e,context:{...e.context,selection:t}});if(!r)return;if(function(e){return!!e&&!(0,i.WV)(e)}(t)){let r=S({...e,context:{...e.context,selection:t}}),n=0,i=[];for(let e of r){if(0===n)i=e.node.marks??[];else{if(e.node.marks?.length===0){i=[];continue}i=i.filter(t=>(e.node.marks??[]).some(e=>e===t))}n++}return{state:"unchanged",marks:i}}let n=e.context.schema.decorators.map(e=>
70e.name),s=r.node.marks??[],o=s.filter(e=>n.includes(e)),l=s.length>o.length,c=0===r.node.text.length,d=0===e.context.selection.anchor.offset,h=e.context.selection.anchor.offset===r.node.text.length,f=E({...e,context:{...e.context,selection:t}}),p=k({...e,context:{...e.context,selection:t}}),m=p?.node?.marks?.filter(e=>!n.includes(e))??[],g=s.filter(e=>!n.includes(e)),y=!!f&&f.node.marks?.some(e=>!n.includes(e)),b=!!f&&f.node.marks?.filter(e=>!n.includes(e)).every(e=>s.includes(e)),v=!!f&&f.node.marks?.some(e=>!n.includes(e)&&s.includes(e)),_=!!f&&f.node.marks?.every(e=>s.includes(e)),w=g.some(e=>m?.includes(e));if(l&&!c){if(d){if(_||b)return{state:"changed",previousMarks:s,marks:f?.node.marks??[]};if(v)return{state:"unchanged",marks:r.node.marks??[]};if(!f)return{state:"changed",previousMarks:s,marks:[]}}if(h){if(!p||m.length>0&&!w)return{state:"changed",previousMarks:s,marks:[]};if(w&&m.length<g.length||!w)return{state:"changed",previousMarks:s,marks:p?.node.marks??[]}}}return d&&!c&&f?y?{state:"changed",marks:s,previousMarks:f?.node.marks??[]}:{state:"changed",previousMarks:s,marks:(f?.node.marks??[]).filter(e=>n.includes(e))}:{state:"unchanged",marks:s}};function O(e){let t=e.context.schema;return(A(e)?.marks??[]).filter(e=>!t.decorators.map(e=>e.name).includes(e))}function C(e){let t=e.context.schema,r=e.decoratorState,n=A(e),i=t.decorators.map(e=>e.name),s=(n?.marks??[]).filter(e=>i.includes(e));for(let e in r)!1===r[e]?s=s.filter(t=>t!==e):!0===r[e]&&(s.includes(e)||s.push(e));return s}function T(e,t){return r=>{if((t?.mode??"full")==="partial")return w(r).flatMap(e=>(0,n.zS)(r.context,e)?e.markDefs??[]:[]).some(t=>t._type===e);let i=c(r).flatMap(e=>
70(0,n.zS)(r.context,e.node)?e.node.markDefs??[]:[]),s=O(r);return i.filter(t=>t._type===e&&s.includes(t._key)).length>0}}let I=e=>{if(!e.context.selection)return[];let t=c(e),r=(A(e)?.marks??[]).filter(t=>!e.context.schema.decorators.map(e=>e.name).includes(t));return t.flatMap(t=>(0,n.zS)(e.context,t.node)?t.node.markDefs??[]:[]).filter(e=>r.includes(e._key))},D=e=>{let t,r=a(e),s=p(e),o=s&&(0,i.wE)(s.path[2])?s.path[2]._key:void 0;if(r&&o){for(let i of r.node.children){if(i._key===o)break;(0,n.bl)(e.context,i)||(t={node:i,path:[...r.path,"children",{_key:i._key}]})}return t}},j=e=>w(e).reduce((t,r)=>(0,n.zS)(e.context,r)?t+r.children.reduce((t,r)=>(0,n.bl)(e.context,r)?t+r.text:t,""):t,""),R=e=>{if(!e.context.selection||!b(e))return null;let t=a(e),r=p(e),s=r?(0,i.iL)({context:e.context,selectionPoint:r}):void 0;if(!t||!r||!s)return null;let o=D(e),l=(0,i.u3)({context:e.context,block:t}),u=j({...e,context:{...e.context,selection:{anchor:o?{path:o.path,offset:0}:l,focus:r}}}).split(/\s+/).at(-1),c=(e=>{let t=a(e),r=f(e),s=r&&(0,i.wE)(r.path[2])?r.path[2]._key:void 0;if(!t||!s)return;let o=!1,l;for(let r of t.node.children){if(r._key===s){o=!0;continue}if(!(0,n.bl)(e.context,r)&&o){l={node:r,path:[...t.path,"children",{_key:r._key}]};break}}return l})(e),d=(0,i.J8)({context:e.context,block:t}),h=j({...e,context:{...e.context,selection:{anchor:r,focus:c?{path:c.path,offset:0}:d}}}).split(/\s+/).at(0);if((void 0===u||""===u)&&(void 0===h||""===h))return null;let m=u?{...s,offset:s.offset-u.length}:s,g=h?{...s,offset:s.offset+h.length}:s,y=(0,i.m4)({context:e.context,blockOffset:m,direction:"backward"}),_=(0,i.m4)({context:e.context,blockOffset:g,direction:"forward"});if(!y||!_)return null;let w={anchor:y,focus:_};return v({context:{...e.context,selection:w}})?w:null},N=e=>{let t=s(e);return t&&!(0,n.zS)(e.context,t.node)?{node:t.node,path:t.path}:void 0},$=e=>{let t=a(e);return t&&(0,i.Eg)(e.context,t.node)?{node:t.node,path:t.path}:void 0},M=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},F=e=>{let t=d(e);if(!t)return;let r=e.blockIndexMap.get(t.node._key);if(void 0===r||r===e.context.value.length-1)return;let n=e.context.value.at(r+1);return n?{node:n,path:[{_key:n._key}]}:void 0},P=e=>{let t=h(e);if(!t)return;let r=e.blockIndexMap.get(t.node._key);if(void 0===r||0===r)return;let n=e.context.value.at(r-1);return n?{node:n,path:[{_key:n._key}]}:void 0},L=e=>{if(!e.context.selection)return[];let t=[],r=(0,i.Jo)(e.context.selection),s=(0,i.aR)(e.context.selection),a=(0,i.XE)(r),o=(0,i.XE)(s);if(!a||!o)return t;let l=e.blockIndexMap.get(a),u=e.blockIndexMap.get(o);if(void 0===l||void 0===u)return t;for(let r of e.context.value.slice(l,u+1)){if(r._key===a){if((0,n.zS)(e.context,r)&&t.push({node:r,path:[{_key:r._key}]}),a===o)break;continue}if(r._key===o){(0,n.zS)(e.context,r)&&t.push({node:r,path:[{_key:r._key}]});break}t.length>0&&(0,n.zS)(e.context,r)&&t.push({node:r,path:[{_key:r._key}]})}return t},z=e=>{let t=(0,i.aR)(e.context.selection);if(t)return o({...e,context:{...e.context,selection:{anchor:t,focus:t}}})},q=e=>{let t=(0,i.Jo)(e.context.selection);if(t)return o({...e,context:{...e.context,selection:{anchor:t,focus:t}}})};function U(e){return t=>{if(v(t)){let r=S(t);return r.length>0&&r.every(t=>t.node.marks?.includes(e))}return C(t).includes(e)}}function B(e){return t=>(e=>{if(!e.context.selection)return;let t=c(e).map(e=>e.node).filter(t=>(0,n.zS)(e.context,t)),r=t.at(0);if(!r)return;let i=r.listItem;if(i&&t.every(e=>e.listItem===i))return i})(t)===e}function V(e){return t=>(e=>{if(!e.context.selection)return;let t=c(e).map(e=>e.node).filter(t=>(0,n.zS)(e.context,t)),r=t.at(0);if(!r)return;let i=r.style;if(i&&t.every(e=>e.style===i))return i})(t)===e}function H(e){return t=>{if(!t.context.selection||!b(t))return!1;let r=(0,i.J8)({context:t.context,block:e});return(0,i._Q)(t.context.selection.focus,r)}}function G(e){return t=>{if(!t.context.selection||!b(t))return!1;let r=(0,i.u3)({context:t.context,block:e});return(0,i._Q)(t.context.selection.focus,r)}}},62247:(e,t,r)=>{"use strict";r.d(t,{N:()=>u});var n=r(86337),i=r(13321),s=r(35508),a=r(41325),o=r(57125),l=r(97537);function u(e,t){let r=(0,l.a)(e,null==t?void 0:t.in);return Math.round(((0,i.k)(r,t)-function(e,t){var r,n,l,u,c,d,h,f;let p=(0,s.q)(),m=null!=(f=null!=(h=null!=(d=null!=(c=null==t?void 0:t.firstWeekContainsDate)?c:null==t||null==(n=t.locale)||null==(r=n.options)?void 0:r.firstWeekContainsDate)?d:p.firstWeekContainsDate)?h:null==(u=p.locale)||null==(l=u.options)?void 0:l.firstWeekContainsDate)?f:1,g=(0,o.h)(e,t),y=(0,a.w)((null==t?void 0:t.in)||e,0);return y.setFullYear(g,0,m),y.setHours(0,0,0,0),(0,i.k)(y,t)}(r,t))/n.my)+1}},62261:(e,t,r)=>{"use strict";r.d(t,{B:()=>s});var n=r(84841),i=r(81451);function s(){return(0,n.N)(function(e,t){var r=null;e._refCount++;var n=(0,i._)(t,void 0,void 0,void 0,function(){if(!e||e._refCount<=0||0<--e._refCount){r=null;return}var n=e._connection,i=r;r=null,n&&(!i||n===i)&&n.unsubscribe(),t.unsubscribe()});e.subscribe(n),n.closed||(r=e.connect())})}},62707:(e,t,r)=>{var n=r(15719);e.exports=function(e){return n(this,e).has(e)}},62840:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n=r(41325),i=r(97537);function s(e,t,r){let s=(0,i.a)(e,null==r?void 0:r.in),a=s.getFullYear(),o=s.getDate(),l=(0,n.w)((null==r?void 0:r.in)||e,0);l.setFullYear(a,t,15),l.setHours(0,0,0,0);let u=function(e,t){let r=(0,i.a)(e,void 0),s=r.getFullYear(),a=r.getMonth(),o=(0,n.w)(r,0);return o.setFullYear(s,a+1,0),o.setHours(0,0,0,0),o.getDate()}(l);return s.setMonth(t,Math.min(o,u)),s}},62959:e=>{var t="undefined"!=typeof Element,r="function"==typeof Map,n="function"==typeof Set,i="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;e.exports=function(e,s){try{return function e(s,a){if(s===a)return!0;
70if(s&&a&&"object"==typeof s&&"object"==typeof a){var o,l,u,c;if(s.constructor!==a.constructor)return!1;if(Array.isArray(s)){if((o=s.length)!=a.length)return!1;for(l=o;0!=l--;)if(!e(s[l],a[l]))return!1;return!0}if(r&&s instanceof Map&&a instanceof Map){if(s.size!==a.size)return!1;for(c=s.entries();!(l=c.next()).done;)if(!a.has(l.value[0]))return!1;for(c=s.entries();!(l=c.next()).done;)if(!e(l.value[1],a.get(l.value[0])))return!1;return!0}if(n&&s instanceof Set&&a instanceof Set){if(s.size!==a.size)return!1;for(c=s.entries();!(l=c.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(s)&&ArrayBuffer.isView(a)){if((o=s.length)!=a.length)return!1;for(l=o;0!=l--;)if(s[l]!==a[l])return!1;return!0}if(s.constructor===RegExp)return s.source===a.source&&s.flags===a.flags;if(s.valueOf!==Object.prototype.valueOf&&"function"==typeof s.valueOf&&"function"==typeof a.valueOf)return s.valueOf()===a.valueOf();if(s.toString!==Object.prototype.toString&&"function"==typeof s.toString&&"function"==typeof a.toString)return s.toString()===a.toString();if((o=(u=Object.keys(s)).length)!==Object.keys(a).length)return!1;for(l=o;0!=l--;)if(!Object.prototype.hasOwnProperty.call(a,u[l]))return!1;if(t&&s instanceof Element)return!1;for(l=o;0!=l--;)if(("_owner"!==u[l]&&"__v"!==u[l]&&"__o"!==u[l]||!s.$$typeof)&&!e(s[u[l]],a[u[l]]))return!1;return!0}return s!=s&&a!=a}(e,s)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},63197:(e,t,r)=>{"use strict";r.d(t,{a3:()=>o,m7:()=>l,vm:()=>a});var n=r(41025),i=r(87865);let s=r(26088).O;function a(){if(!("fetch"in s))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function o(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(o(s.fetch))return!0;let e=!1,t=s.document;if(t&&"function"==typeof t.createElement)try{let r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(e=o(r.contentWindow.fetch)),t.head.removeChild(r)}catch(e){n.T&&i.vF.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}},63557:(e,t,r)=>{"use strict";r.d(t,{LI:()=>o,P$:()=>w,Wz:()=>l,rV:()=>a});var n=r(87894),i=r(3842),s=r(20906);function a(e){if(!e)throw Error("Parameter 'portabletextType' missing (required)");let t=e.of?.find(function e(t){return t.type?e(t.type):"block"===t.name?t:null});if(!t)throw Error("Block type is not defined in this schema (required)");let r=t.fields?.find(e=>"children"===e.name);if(!r)throw Error("Children field for block type found in schema (required)");let n=r.type.of;if(!n)throw Error("Valid types for block children not found in schema (required)");let i=n.find(e=>"span"===e.name);if(!i)throw Error("Span type not found in schema (required)");let s=n.filter(e=>"span"!==e.name)||[],a=e.of?.filter(e=>e.name!==t.name)||[];return{styles:function(e){let t=e.fields?.find(e=>"style"===e.name);if(!t)throw Error("A field with name 'style' is not defined in the block type (required).");let r=t.type.options?.list&&t.type.options.list?.filter(e=>e.value);if(!r||0===r.length)throw Error("The style fields need at least one style defined. I.e: {title: 'Normal', value: 'normal'}.");return r}(t),decorators:i.decorators,lists:function(e){let t=e.fields?.find(e=>"listItem"===e.name);if(!t)throw Error("A field with name 'listItem' is not defined in the block type (required).");let r=t.type.options?.list&&t.type.options.list.filter(e=>e.value);if(!r)throw Error("The list field need at least to be an empty array");return r}(t),block:t,span:i,portableText:e,inlineObjects:s,blockObjects:a,annotations:i.annotations}}function o(e){return{annotations:e.annotations.map(e=>({name:e.name,fields:e.fields.map(e=>({name:e.name,type:e.type.jsonType,title:e.type.title})),title:e.title})),block:{name:e.block.name},blockObjects:e.blockObjects.map(e=>({name:e.name,fields:e.fields.map(e=>({name:e.name,type:e.type.jsonType,title:e.type.title})),title:e.title})),decorators:e.decorators.map(e=>({name:e.value,title:e.title,value:e.value})),inlineObjects:e.inlineObjects.map(e=>({name:e.name,fields:e.fields.map(e=>({name:e.name,type:e.type.jsonType,title:e.type.title})),title:e.title})),span:{name:e.span.name},styles:e.styles.map(e=>({name:e.value,title:e.title,value:e.value})),lists:e.lists.map(e=>({name:e.value,title:e.title,value:e.value}))}}function l(e){var t;return o(a(e.hasOwnProperty("jsonType")?e:(t=e,n.Sj.compile({name:"blockTypeSchema",types:[t,...i.jN]}).get(t.name))))}let u=()=>(function(e){let t=c();return(function(e=16){let t=new Uint8Array(e);return crypto.getRandomValues(t),t})(12).reduce((e,r)=>e+t[r],"").slice(0,e)})(12),c=(()=>{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 d(e){return e.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/[_-]+/g," ").trim().split(/\s+/).filter(
70Boolean).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}let h=`tmp-${u()}-image`,f=`tmp-${u()}-url`,p=`tmp-${u()}-image`,m=`tmp-${u()}-url`,g={image:h,url:f},y={image:p,url:m},b={[h]:"image",[f]:"url"},v={[p]:"image",[m]:"url"},_={image:"Image",url:"URL"};function w(e){let t=e?.blockObjects?.map(e=>(0,s.U8)({type:"object",name:g[e.name]??e.name,title:void 0===e.title?_[e.name]:e.title,fields:e.fields?.map(e=>({name:e.name,type:e.type,title:e.title??d(e.name)}))??[]}))??[],r=e?.inlineObjects?.map(e=>(0,s.U8)({type:"object",name:y[e.name]??e.name,title:void 0===e.title?_[e.name]:e.title,fields:e.fields?.map(e=>({name:e.name,type:e.type,title:e.title??d(e.name)}))??[]}))??[],i=(0,s.MI)({type:"array",name:"portable-text",of:[...t.map(e=>({type:e.name})),{type:"block",name:"block",of:r.map(e=>({type:e.name})),marks:{decorators:e?.decorators?.map(e=>({title:e.title??d(e.name),value:e.name}))??[],annotations:e?.annotations?.map(e=>({name:e.name,type:"object",title:e.title,fields:e.fields?.map(e=>({name:e.name,title:e.title??d(e.name),type:e.type}))??[]}))??[]},lists:e?.lists?.map(e=>({value:e.name,title:e.title??d(e.name)}))??[],styles:e?.styles?.map(e=>({value:e.name,title:e.title??d(e.name)}))??[]}]}),o=a(n.Sj.compile({types:[i,...t,...r]}).get("portable-text"));return{...o,portableText:{...o.portableText,of:o.portableText.of.map(e=>{if(!(0,s.$d)(e))return e;let t=b[e.name];for(let r of(e.name=t??e.name,e.fields))if(!("children"!==r.name||!(0,s.zR)(r.type)))for(let e of r.type.of){let t=v[e.name];t&&(e.name=t)}return e})},blockObjects:o.blockObjects.map(e=>void 0!==b[e.name]?{...e,name:b[e.name],type:{...e.type,name:b[e.name]}}:e),inlineObjects:o.inlineObjects.map(e=>void 0!==v[e.name]?{...e,name:v[e.name]}:e)}}},63943:(e,t,r)=>{function n(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}n.prototype=r(98512)(r(86489).prototype),n.prototype.constructor=n,e.exports=n},64109:e=>{e.exports=function(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return -1}},64359:(e,t,r)=>{"use strict";r.d(t,{Cr:()=>a,TN:()=>o,V1:()=>u,ZS:()=>d,aY:()=>l,mn:()=>s,tN:()=>c});let n="u">typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.userAgent);function i(e,t){var r,n;return r=e,n=t,(r.ctrl===n.ctrlKey||void 0===r.ctrl)&&(r.meta===n.metaKey||void 0===r.meta)&&(r.shift===n.shiftKey||void 0===r.shift)&&(r.alt===n.altKey||void 0===r.alt)&&(void 0!==e.code&&e.code.toLowerCase()===t.code.toLowerCase()||void 0!==e.ke
70y&&e.key.toLowerCase()===t.key.toLowerCase())}function s(e){if(n){let t=e.apple??e.default,r=t.at(0);return{guard:e=>t.some(t=>i(t,e)),keys:[...r?.meta?["⌘"]:[],...r?.ctrl?["Ctrl"]:[],...r?.alt?["Option"]:[],...r?.shift?["Shift"]:[],...r?.key!==void 0?[r.key]:r?.code!==void 0?[r.code]:[]]}}let t=e.default.at(0);return{guard:t=>e.default.some(e=>i(e,t)),keys:[...t?.meta?["Meta"]:[],...t?.ctrl?["Ctrl"]:[],...t?.alt?["Alt"]:[],...t?.shift?["Shift"]:[],...t?.key!==void 0?[t.key]:t?.code!==void 0?[t.code]:[]]}}let a=s({default:[{key:"B",alt:!1,ctrl:!0,meta:!1,shift:!1}],apple:[{key:"B",alt:!1,ctrl:!1,meta:!0,shift:!1}]}),o=s({default:[{key:"I",alt:!1,ctrl:!0,meta:!1,shift:!1}],apple:[{key:"I",alt:!1,ctrl:!1,meta:!0,shift:!1}]}),l=s({default:[{key:"'",alt:!1,ctrl:!0,meta:!1,shift:!1}],apple:[{key:"'",alt:!1,ctrl:!1,meta:!0,shift:!1}]}),u=s({default:[{key:"U",alt:!1,ctrl:!0,meta:!1,shift:!1}],apple:[{key:"U",alt:!1,ctrl:!1,meta:!0,shift:!1}]}),c=(s({default:[{key:"X",alt:!1,ctrl:!0,meta:!1,shift:!0}],apple:[{key:"X",alt:!1,ctrl:!1,meta:!0,shift:!0}]}),s({default:[{key:"K",alt:!1,ctrl:!0,meta:!1,shift:!1}],apple:[{key:"K",alt:!1,ctrl:!1,meta:!0,shift:!1}]}),s({default:[{key:"0",code:"Digit0",alt:!0,ctrl:!0,meta:!1,shift:!1},{key:"0",code:"Numpad0",alt:!0,ctrl:!0,meta:!1,shift:!1}],apple:[{key:"0",code:"Digit0",alt:!0,ctrl:!1,meta:!0,shift:!1},{key:"0",code:"Numpad0",alt:!0,ctrl:!1,meta:!0,shift:!1}]}),s({default:[{key:"1",code:"Digit1",alt:!0,ctrl:!0,meta:!1,shift:!1},{key:"1",code:"Numpad1",alt:!0,ctrl:!0,meta:!1,shift:!1}],apple:[{key:"1",code:"Digit1",alt:!0,ctrl:!1,meta:!0,shift:!1},{key:"1",code:"Numpad1",alt:!0,ctrl:!1,meta:!0,shift:!1}]}),s({default:[{key:"2",code:"Digit2",alt:!0,ctrl:!0,meta:!1,shift:!1},{key:"2",code:"Numpad2",alt:!0,ctrl:!0,meta:!1,shift:!1}],apple:[{key:"2",code:"Digit2",alt:!0,ctrl:!1,meta:!0,shift:!1},{key:"2",code:"Numpad2",alt:!0,ctrl:!1,meta:!0,shift:!1}]}),s({default:[{key:"3",code:"Digit3",alt:!0,ctrl:!0,meta:!1,shift:!1},{key:"3",code:"Numpad3",alt:!0,ctrl:!0,meta:!1,shift:!1}],apple:[{key:"3",code:"Digit3",alt:!0,ctrl:!1,meta:!0,shift:!1},{key:"3",code:"Numpad3",alt:!0,ctrl:!1,meta:!0,shift:!1}]}),s({default:[{key:"4",code:"Digit4",alt:!0,ctrl:!0,meta:!1,shift:!1},{key:"4",code:"Numpad4",alt:!0,ctrl:!0,meta:!1,shift:!1}],apple:[{key:"4",code:"Digit4",alt:!0,ctrl:!1,meta:!0,shift:!1},{key:"4",code:"Numpad4",alt:!0,ctrl:!1,meta:!0,shift:!1}]}),s({default:[{key:"5",code:"Digit5",alt:!0,ctrl:!0,meta:!1,shift:!1},{key:"5",code:"Numpad5",alt:!0,ctrl:!0,meta:!1,shift:!1}],apple:[{key:"5",code:"Digit5",alt:!0,ctrl:!1,meta:!0,shift:!1},{key:"5",code:"Numpad5",alt:!0,ctrl:!1,meta:!0,shift:!1}]}),s({default:[{key:"6",code:"Digit6",alt:!0,ctrl:!0,meta:!1,shift:!1},{key:"6",code:"Numpad6",alt:!0,ctrl:!0,meta:!1,shift:!1}],apple:[{key:"6",code:"Digit6",alt:!0,ctrl:!1,meta:!0,shift:!1},{key:"6",code:"Numpad6",alt:!0,ctrl:!1,meta:!0,shift:!1}]}),s({default:[{key:"Q",alt:!1,ctrl:!0,meta:!1,shift:!0}]}),s({default:[{key:"Z",alt:!1,ctrl:!0,meta:!1,shift:!1}],apple:[{key:"Z",alt:!1,ctrl:!1,meta:!0,shift:!1}]})),d=s({default:[{key:"Y",alt:!1,ctrl:!0,meta:!1,shift:!1},{key:"Z",alt:!1,ctrl:!0,meta:!1,shift:!0}],apple:[{key:"Z",alt:!1,ctrl:!1,meta:!0,shift:!0}]})},64967:(e,t,r)=>{"use strict";let n=r(98520);e.exports=(e,t)=>new n(e,t).patch},65030:(e,t,r)=>{var n=r(25395),i=Object.prototype.hasOwnProperty;e.exports=function(e){for(var t=e.name+"",r=n[t],s=i.call(n,t)?r.length:0;s--;){var a=r[s],o=a.func;if(null==o||o==e)return a.name}return t}},65125:e=>{e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},65181:(e,t,r)=>{var n=r(85598),i=r(44466),s=r(83923),a=r(60063),o=r(29479);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=s,l.prototype.has=a,l.prototype.set=o,e.exports=l},65620:(e,t,r)=>{"use strict";r.d(t,{default:()=>s});var n=r(23302),i=r(38562);let s=(0,n.A)((0,i.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff")},65755:(e,t,r)=>{e.exports=r(89411)()},66420:(e,t,r)=>{"use strict";r.d(t,{p:()=>a});var n=r(41325),i=r(4010),s=r(97537);function a(e,t){let r=(0,s.a)(e,null==t?void 0:t.in),a=r.getFullYear(),o=(0,n.w)(r,0);o.setFullYear(a+1,0,4),o.setHours(0,0,0,0);let l=(0,i.b)(o),u=(0,n.w)(r,0);u.setFullYear(a,0,4),u.setHours(0,0,0,0);let c=(0,i.b)(u);return r.getTime()>=l.getTime()?a+1:r.getTime()>=c.getTime()?a:a-1}},66505:(e,t,r)=>{var n=r(27442),i=r(7117),s=r(27329),a=r(68171);e.exports=function(e){return function(t){var r=i(t);return"[object Map]"==r?s(t):"[object Set]"==r?a(t):n(t,e(t))}}},66658:(e,t,r)=>{var n=r(97917),i=r(83104),s=r(79550);e.exports=function(e){return function(t,r,a){return a&&"number"!=typeof a&&i(t,r,a)&&(r=a=void 0),t=s(t),void 0===r?(r=t,t=0):r=s(r),a=void 0===a?t<r?1:-1:s(a),n(t,r,a,e)}}},66709:(e,t,r)=>{var n=r(90257),i=r(9917),s=r(64109);e.exports=function(e,t,r){return t==t?s(e,t,r):n(e,i,r)}},66850:(e,t,r)=>{"use strict";let n=r(27353);e.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))},66932:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(49460),i=r(74035);let s=(0,n.A)(function(e,t,r){return e+(r?" ":"")+(0,i.A)(t)})},66982:(e,t,r)=>{"use strict";r.d(t,{D:()=>i});var n=r(97537);function i(e,t){let r=(0,n.a)(e,null==t?void 0:t.in);return r.setHours(23,59,59,999),r}},67017:(e,t,r)=>{"use strict";let n=r(4165),i=r(34897),s=r(7700),a=r(9783),o=r(5715),l=r(72458);e.exports=(e,t,r,u)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return n(e,r,u);case"!=":return i(e,r,u);case">":return s(e,r,u);case">=":return a(e,r,u);case"<":return o(e,r,u);case"<=":return l(e,r,u);default:throw TypeError(`Invalid operator: ${t}`)}}},67041:(e,t,r)=>{var n=r(80984),i=r(3582),s=r(23641),a=r(68729);e.exports=i(function(e){return s(n(e,a))})},67072:(e,t,r)=>{"use strict";let n=r(98520);e.exports=(e,t)=>new n(e,t).major},68171:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=[e,e]}),r}},68729:(e,t,r)=>{var n=r(41194),i=r(20232);e.exports=function(e){return i(e)&&n(e)}},69094:(e,t,r)=>{var n=r(37403),i=r(31709),s=r(3138),a=r(40081),o=r(7117),l=r(42725),u=r(34454),c=r(71029),d="[object Arguments]",h="[object Array]",f="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,m,g,y){var b=l(e),v=l(t),_=b?h:o(e),w=v?h:o(t);_=_==d?f:_,w=w==d?f:w;var x=_==f,k=w==f,E=_==w;if(E&&u(e)){if(!u(t))return!1;b=!0,x=!1}
70if(E&&!x)return y||(y=new n),b||c(e)?i(e,t,r,m,g,y):s(e,t,_,r,m,g,y);if(!(1&r)){var S=x&&p.call(e,"__wrapped__"),A=k&&p.call(t,"__wrapped__");if(S||A){var O=S?e.value():e,C=A?t.value():t;return y||(y=new n),g(O,C,r,m,y)}}return!!E&&(y||(y=new n),a(e,t,r,m,g,y))}},69155:(e,t,r)=>{"use strict";e.exports=r(51995)},69427:(e,t,r)=>{"use strict";r.d(t,{c:()=>s});var n=r(13177),i=r(88693);function s(e,t,r){let[s,o]=(0,n.x)(null==r?void 0:r.in,e,t),l=a(s,o),u=Math.abs((0,i.m)(s,o));s.setDate(s.getDate()-l*u);let c=Number(a(s,o)===-l),d=l*(u-c);return 0===d?0:d}function a(e,t){let r=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 r<0?-1:r>0?1:r}},69530:(e,t,r)=>{var n=r(73567),i=r(72375);e.exports=function(e,t){return n(e,i(e),t)}},69536:function(e,t,r){var n=r(37811);(function(){var t,r,i,s;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:null!=n&&n.hrtime?(e.exports=function(){return(t()-s)/1e6},r=n.hrtime,s=(t=function(){var e;return 1e9*(e=r())[0]+e[1]})()-1e9*n.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)},69717:(e,t,r)=>{e.exports=r(66658)()},69847:(e,t,r)=>{var n=r(38726),i=r(42725);e.exports=function(e,t,r){var s=t(e);return i(e)?s:n(s,r(e))}},70144:(e,t,r)=>{var n=r(6975);e.exports=function(e){var t=e.length;return t?e[n(0,t-1)]:void 0}},70593:(e,t,r)=>{"use strict";r.d(t,{d:()=>o});var n=r(84841),i=r(81451),s=r(624),a=r(2297);function o(e,t){return(0,n.N)(function(r,n){var o=new Set;r.subscribe((0,i._)(n,function(t){var r=e?e(t):t;o.has(r)||(o.add(r),n.next(t))})),t&&(0,a.Tg)(t).subscribe((0,i._)(n,function(){return o.clear()},s.l))})}},70725:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},70915:(e,t,r)=>{e.exports=function(e){function t(e){let r,i,s,a=null;function o(...e){if(!o.enabled)return;let n=Number(new Date);o.diff=n-(r||n),o.prev=r,o.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,(r,n)=>{if("%%"===r)return"%";i++;let s=t.formatters[n];if("function"==typeof s){let t=e[i];r=s.call(o,t),e.splice(i,1),i--}return r}),t.formatArgs.call(o,e),(o.log||t.log).apply(o,e)}return o.namespace=e,o.useColors=t.useColors(),o.color=t.selectColor(e),o.extend=n,o.destroy=t.destroy,Object.defineProperty(o,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(i!==t.namespaces&&(i=t.namespaces,s=t.enabled(e)),s),set:e=>{a=e}}),"function"==typeof t.init&&t.init(o),o}function n(e,r){let n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function i(e,t){let r=0,n=0,i=-1,s=0;for(;r<e.length;)if(n<t.length&&(t[n]===e[r]||"*"===t[n]))"*"===t[n]?(i=n,s=r):r++,n++;else{if(-1===i)return!1;n=i+1,r=++s}for(;n<t.length&&"*"===t[n];)n++;return n===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 r of(t.save(e),t.namespaces=e,t.names=[],t.skips=[],("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean)))"-"===r[0]?t.skips.push(r.slice(1)):t.names.push(r)},t.enabled=function(e){for(let r of t.skips)if(i(e,r))return!1;for(let r of t.names)if(i(e,r))return!0;return!1},t.humanize=r(55442),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(r=>{t[r]=e[r]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t)|0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}},71029:(e,t,r)=>{var n=r(99629),i=r(97423),s=r(94273),a=s&&s.isTypedArray;e.exports=a?i(a):n},71114:(e,t,r)=>{"use strict";r.d(t,{b:()=>i});var n=r(97537);function i(e,t){return(0,n.a)(e)-(0,n.a)(t)}},71301:(e,t,r)=>{var n="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,s=n&&i&&"function"==typeof i.get?i.get:null,a=n&&Map.prototype.forEach,o="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=o&&l&&"function"==typeof l.get?l.get:null,c=o&&Set.prototype.forEach,d="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,h="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,m=Object.prototype.toString,g=Function.prototype.toString,y=String.prototype.match,b=String.prototype.slice,v=String.prototype.replace,_=String.prototype.toUpperCase,w=String.prototype.toLowerCase,x=RegExp.prototype.test,k=Array.prototype.concat,E=Array.prototype.join,S=Array.prototype.slice,A=Math.floor,O="function"==typeof BigInt?BigInt.prototype.valueOf:null,C=Object.getOwnPropertySymbols,T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,I="function"==typeof Symbol&&"object"==typeof Symbol.iterator,D="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===I?"object":"symbol")?Symbol.toStringTag:null,j=Object.prototype.propertyIsEnumerable,R=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function N(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||x.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-A(-e):A(e);if(n!==e){var i=String(n),s=b.call(t,i.length+1);return v.call(i,r,"$&_")+"."+v.call(v.call(s,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(t,r,"$&_")}var $=r(14058),M=$.custom,F=V(M)?M:null,P={__proto__:null,double:'"',single:"'"},L={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function z(e,t,r){var n=P[r.quoteStyle||t];return n+e+n}function q(e){return!D||!("object"==typeof e&&(D in e||void 0!==e[D]))}function U(e){return"[object Array]"===W(e)&&q(e)}function B(e){return"[object RegExp]"===W(e)&&q(e)}function V(e){if(I)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;
70if(!e||"object"!=typeof e||!T)return!1;try{return T.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,i,o){var l,m,_,x,A,C=n||{};if(G(C,"quoteStyle")&&!G(P,C.quoteStyle))throw TypeError('option "quoteStyle" must be "single" or "double"');if(G(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 M=!G(C,"customInspect")||C.customInspect;if("boolean"!=typeof M&&"symbol"!==M)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(G(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(G(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,r){if(t.length>r.maxStringLength){var n=t.length-r.maxStringLength;return e(b.call(t,0,r.maxStringLength),r)+("... "+n)+" more character"+(n>1?"s":"")}var i=L[r.quoteStyle||"single"];return i.lastIndex=0,z(v.call(v.call(t,i,"\\$1"),/[\x00-\x1f]/g,Y),"single",r)}(t,C);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var et=String(t);return H?N(t,et):et}if("bigint"==typeof t){var er=String(t)+"n";return H?N(t,er):er}var en=void 0===C.depth?5:C.depth;if(void 0===i&&(i=0),i>=en&&en>0&&"object"==typeof t)return U(t)?"[Array]":"[Object]";var ei=function(e,t){var r;if("	"===e.indent)r="	";else{if("number"!=typeof e.indent||!(e.indent>0))return null;r=E.call(Array(e.indent+1)," ")}return{base:r,prev:E.call(Array(t+1),r)}}(C,i);if(void 0===o)o=[];else if(Z(o,t)>=0)return"[Circular]";function es(t,r,n){if(r&&(o=S.call(o)).push(r),n){var s={depth:C.depth};return G(C,"quoteStyle")&&(s.quoteStyle=C.quoteStyle),e(t,s,i+1,o)}return e(t,C,i+1,o)}if("function"==typeof t&&!B(t)){var ea=function(e){if(e.name)return e.name;var t=y.call(g.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),eo=ee(t,es);return"[Function"+(ea?": "+ea:" (anonymous)")+"]"+(eo.length>0?" { "+E.call(eo,", ")+" }":"")}if(V(t)){var el=I?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):T.call(t);return"object"!=typeof t||I?el:K(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="<"+w.call(String(t.nodeName)),eh=t.attributes||[],ef=0;ef<eh.length;ef++){ed+=" "+eh[ef].name+"="+z((ec=eh[ef].value,v.call(String(ec),/"/g,"&quot;")),"double",C)}return ed+=">",t.childNodes&&t.childNodes.length&&(ed+="..."),ed+="</"+w.call(String(t.nodeName))+">"}if(U(t)){if(0===t.length)return"[]";var ep=ee(t,es);return ei&&!function(e){for(var t=0;t<e.length;t++)if(Z(e[t],"\n")>=0)return!1;return!0}(ep)?"["+Q(ep,ei)+"]":"[ "+E.call(ep,", ")+" ]"}if("[object Error]"===W(l=t)&&q(l)){var em=ee(t,es);return"cause"in Error.prototype||!("cause"in t)||j.call(t,"cause")?0===em.length?"["+String(t)+"]":"{ ["+String(t)+"] "+E.call(em,", ")+" }":"{ ["+String(t)+"] "+E.call(k.call("[cause]: "+es(t.cause),em),", ")+" }"}if("object"==typeof t&&M){if(F&&"function"==typeof t[F]&&$)return $(t,{depth:en-i});else if("symbol"!==M&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!s||!e||"object"!=typeof e)return!1;try{s.call(e);try{u.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var eg=[];return a&&a.call(t,function(e,r){eg.push(es(r,t,!0)+" => "+es(e,t))}),X("Map",s.call(t),eg,ei)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);try{s.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(es(e,t))}),X("Set",u.call(t),ey,ei)}if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{h.call(e,h)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return J("WeakMap");if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{h.call(e,h);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return J("WeakSet");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{return f.call(e),!0}catch(e){}return!1}(t))return J("WeakRef");if("[object Number]"===W(m=t)&&q(m))return K(es(Number(t)));if(function(e){if(!e||"object"!=typeof e||!O)return!1;try{return O.call(e),!0}catch(e){}return!1}(t))return K(es(O.call(t)));if("[object Boolean]"===W(_=t)&&q(_))return K(p.call(t));if("[object String]"===W(x=t)&&q(x))return K(es(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==r.g&&t===r.g)return"{ [object globalThis] }";if(!("[object Date]"===W(A=t)&&q(A))&&!B(t)){var eb=ee(t,es),ev=R?R(t)===Object.prototype:t instanceof Object||t.constructor===Object,e_=t instanceof Object?"":"null prototype",ew=!ev&&D&&Object(t)===t&&D in t?b.call(W(t),8,-1):e_?"Object":"",ex=(ev||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(ew||e_?"["+E.call(k.
70call([],ew||[],e_||[]),": ")+"] ":"");return 0===eb.length?ex+"{}":ei?ex+"{"+Q(eb,ei)+"}":ex+"{ "+E.call(eb,", ")+" }"}return String(t)};var H=Object.prototype.hasOwnProperty||function(e){return e in this};function G(e,t){return H.call(e,t)}function W(e){return m.call(e)}function Z(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}function Y(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+_.call(t.toString(16))}function K(e){return"Object("+e+")"}function J(e){return e+" { ? }"}function X(e,t,r,n){return e+" ("+t+") {"+(n?Q(r,n):E.call(r,", "))+"}"}function Q(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+E.call(e,","+r)+"\n"+t.prev}function ee(e,t){var r,n=U(e),i=[];if(n){i.length=e.length;for(var s=0;s<e.length;s++)i[s]=G(e,s)?t(e[s],e):""}var a="function"==typeof C?C(e):[];if(I){r={};for(var o=0;o<a.length;o++)r["$"+a[o]]=a[o]}for(var l in e)if(G(e,l)&&(!n||String(Number(l))!==l||!(l<e.length)))if(I&&r["$"+l]instanceof Symbol)continue;else x.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++)j.call(e,a[u])&&i.push("["+t(a[u])+"]: "+t(e[a[u]],e));return i}},71861:(e,t,r)=>{"use strict";r.d(t,{w:()=>i});var n=r(97537);function i(e,t){let r=(0,n.a)(e,null==t?void 0:t.in);return r.setDate(1),r.setHours(0,0,0,0),r}},72319:(e,t,r)=>{"use strict";r.d(t,{t:()=>i});var n=r(13220),i=function(e){function t(t){var r=e.call(this)||this;return r._value=t,r}return(0,n.C6)(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var r=e.prototype._subscribe.call(this,t);return r.closed||t.next(this._value),r},t.prototype.getValue=function(){var e=this.hasError,t=this.thrownError,r=this._value;if(e)throw t;return this._throwIfClosed(),r},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(r(28167).B)},72375:(e,t,r)=>{var n=r(38726),i=r(19407),s=r(92908),a=r(61173);e.exports=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,s(e)),e=i(e);return t}:a},72458:(e,t,r)=>{"use strict";let n=r(43166);e.exports=(e,t,r)=>0>=n(e,t,r)},72501:(e,t,r)=>{"use strict";r.d(t,{T:()=>n});let n="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},72557:(e,t,r)=>{var n=r(4782),i=r(19528),s=r(42725),a=r(34454),o=r(72675),l=r(71029),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=s(e),c=!r&&i(e),d=!r&&!c&&a(e),h=!r&&!c&&!d&&l(e),f=r||c||d||h,p=f?n(e.length,String):[],m=p.length;for(var g in e)(t||u.call(e,g))&&!(f&&("length"==g||d&&("offset"==g||"parent"==g)||h&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||o(g,m)))&&p.push(g);return p}},72675:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?0x1fffffffffffff:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},72810:e=>{e.exports=function(){this.__data__=[],this.size=0}},72975:(e,t,r)=>{var n=r(15719);e.exports=function(e){return n(this,e).get(e)}},73111:(e,t,r)=>{"use strict";r.d(t,{Sj:()=>e1,ab:()=>ee,jO:()=>e3,kH:()=>b,yL:()=>v});var n=r(76104),i=r(11057),s=r(79281),a=r(40755),o=r(15068),l=r(7056),u=r(80394),c=r(27791),d=r(84248),h=r(32772),f=r(74819),p=r(283),m=r(5974),g=r(1067);let y=["jsonType","type","name","title","description","options","fieldsets","validation","readOnly","hidden","components","diffComponent","initialValue","deprecated"],b="_internal_ownProps",v="all-fields";function _(e,t,r,n={}){return Object.defineProperty(e,t,{configurable:!0,enumerable:!1!==n.enumerable,get(){let i=r();return Object.defineProperty(e,t,{value:i,writable:!!n.writable,configurable:!1}),i}}),e}function w(e,t,r){Object.defineProperty(e,t,{enumerable:!1,writable:!1,configurable:!1,value:r})}let x=[...y],k={name:"any",type:null,jsonType:"any"},E=[...y],S={name:"array",type:null,jsonType:"array",of:[]},A={maxEntries:2,maxDepth:2,maxBreadth:2,ignoreKeys:["_id","_type","_key","_ref"]};function O(e){return"array"===e.type&&e.of&&e.of.some(e=>"block"===e.type)||!1}let C=["title","name","label","heading","header","caption"],T=["description",...C];function I(e,t){return a(e.to||[]).some(e=>e.type===t)}function D(e){return I(e,"sanity.imageAsset")}function j(e){return I(e,"sanity.fileAsset")}function R(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.
71Please move {options: {preview: ...}} to {..., preview: ...} on the type/field definition of "${e.name}".
72`),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}".
73`)}(e),function(e){if(!e)return e;let t=e.select||e.fields||{};return Array.isArray(t)?{...s(e,["prepare","component"]),select:t.reduce((e,t)=>
73(e[t]=t,e),{})}:{...s(e,["prepare","component"]),select:t}}(e.preview||(e.options||{}).preview)||function(e){let t={fields:[],...e},r=t.fields.filter(e=>"string"===e.type).map(e=>e.name),n=t.fields.filter(O).map(e=>e.name),i=C.find(e=>r.includes(e)||n.includes(e)),a=T.find(e=>e!==i&&(r.includes(e)||n.includes(e)));i||(i=r[0]||n[0],a=r[1]||n[1]);let u=t.fields.find(e=>"image"===e.type),c=function(e){let t=e.fields||[],r=t.find(D);if(r)return r.name;let n=t.find(e=>(e.fields||[]).some(D));return n?`${n.name}.asset`:void 0}(t);if(!i){let e=function(e){let t=e.fields||[],r=t.find(j);if(r)return r.name;let n=t.find(e=>(e.fields||[]).some(j));return n?`${n.name}.asset`:void 0}(t);e&&(i=`${e}.originalFilename`),c&&(i=`${c}.originalFilename`)}if(!i&&!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,r,n){if(n>r.maxDepth)return"...";if(Array.isArray(t)){if(0===t.length)return"[empty]";let i=Math.max(t.length-r.maxBreadth),s=t.slice(0,r.maxBreadth).map((t,i)=>e(t,r,n+1)).concat(i>0?`\u2026+${i}`:[]).join(", ");return 0===n?s:`[${s}]`}if("object"==typeof t&&null!==t){let i=Object.keys(t).filter(e=>!r.ignoreKeys.includes(e)&&"u">typeof t[e]);if(function(e){for(let t in e)if(e.hasOwnProperty(t))return!1;return!0}(s(t,i)))return"{empty}";let a=i.slice(0,r.maxBreadth).map(i=>`${i}: ${e(t[i],r,n+1)}`).join(", ");return 0===n?a:`{${a}}`}let i=String(t);return""===i?'""':i}(e,{maxDepth:"maxDepth"in t?t.maxDepth:2,maxBreadth:"maxBreadth"in t?t.max
73Breadth:2,ignoreKeys:"ignoreKeys"in t?t.ignoreKeys:[]},0)}(s(t,e),A)})}}return{select:l({title:i,description:a,media:u?u.name:c},o)}}(e)}}let N={type:"text",name:"text",title:"Text"},$={name:"marks",type:"array",of:[{type:"string"}],title:"Marks"},M={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"}},F=[M.bullet,M.numbered],P={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"}},L=[P.normal,P.h1,P.h2,P.h3,P.h4,P.h5,P.h6,P.blockquote],z={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"}},q=[z.strong,z.em,z.code,z.underline,z.strikeThrough],U=["type","name","title","jsonType","description","options","fieldsets","icon"],B={name:"block",title:"Block",type:null,jsonType:"object"},V={},H=[{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})}]}],G=["type","name","title","jsonType","description","options","fieldsets","icon"],W={name:"span",title:"Span",type:null,jsonType:"object"},Z={name:"marks",title:"Marks",type:"array",of:[{type:"string"}]},Y={name:"text",title:"Text",type:"string"},K={};var J={prepare:e=>({title:String(e)})};let X=[...y],Q={name:"boolean",title:"Boolean",type:null,jsonType:"boolean"},ee=5,et={},er=e=>(et[e]||(et[e]=Symbol(`__cachedStringFields_${e}`)),et[e]),en=["style","list"],ei=e=>"block"===e.name||e.type&&ei(e.type);function es(e,t,r,n=[],i){var s,a,o,l,u;if(i<0)return r;let c=t(r,e,n);return"array"===e.jsonType&&Array.isArray(e.of)?(s=e,a=t,o=c,l=n,u=i,s.of.reduce((e,t)=>es(t,a,e,l,u-1),o)):"object"===e.jsonType&&Array.isArray(e.fields)&&!(e.type&&"reference"===e.type.name)?function(e,t,r,n,i){let s=ei(e);return e.fields.reduce((e,r)=>{if(s&&en.includes(r.name))return e;let a=[r.name].concat("array"===r.type.jsonType?[[]]:[]);return es(r.type,t,e,n.concat(a),i-1)},r)}(e,t,c,n,i):c}let ea=[{weight:1,path:["_id"]},{weight:1,path:["_type"]}],eo={title:10,subtitle:5,description:1.5};function el(e,t){let r=e?.preview?.select;if(!r)return[];let n=[];for(let e of Object.keys(r)){if(!(e in eo))continue;let i=r[e].split(".");t>-1&&i.length-1>t||n.push({weight:eo[e],path:i})}return n}function eu(e){return!c(e)||e<1||e>ee?ee-1:e-1}let ec=[{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}],ed=[...y],eh={name:"crossDatasetReference",type:null,jsonType:"object"},ef=[...y],ep={name:"date",title:"Datetime",type:null,jsonType:"string"},em=[...y],eg={name:"datetime",title:"Datetime",type:null,jsonType:"string"},ey=["title","name","label","heading","header","caption","description"],eb=["string","boolean","number"],ev=e=>eb.includes(e.type);function e_(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(!p(e))throw Error("Search config must be an object of {path: string, weight: number}");return{weight:"weight"in e?e.weight:1,path:m(e.path),mapWith:"str
73ing"==typeof e.mapWith?e.mapWith:void 0}})}let ew=[...y,"orderings","__experimental_search","blockEditor","icon"],ex={get:()=>({name:"object",title:"Object",type:null,jsonType:"object"}),extend(e,t){let r,i={fields:[],...e},a={...i.options},o={...i,title:i.title||(i.name?n(i.name):"Object"),options:a,orderings:i.orderings||(0===(r=ey.filter(e=>i.fields.some(t=>ev(t)&&t.name===e))).length&&(r=i.fields.filter(ev).map(e=>e.name)),r.map(e=>({name:e,i18n:{title:{key:`default-orderings.${e}`,ns:"studio"}},title:u(n(e)),by:[{field:e,direction:"asc"}]}))),fields:i.fields.map(e=>t.cachedObjectField(e))},l=Object.assign(s(this.get(),ew),o,{type:this.get()});return _(l,"fieldsets",()=>ek(i,l.fields)),_(l,"groups",()=>(function(e,t){let r={},i=0;for(let t of e.groups||[]){if(r[t.name])throw Error(`Duplicate group name "${t.name}" found for type '${e.title?e.title:n(e.name)}'`);if(r[t.name]={title:n(t.name),...t,fields:[]},t.default&&++i>1)throw Error(`More than one field group defined as default for type '${e.title?e.title:n(e.name)}' - only 1 is supported`)}return t.forEach(t=>{let i=h(t.group||[]);0!==i.length&&i.forEach(i=>{let s=r[i];if(!s)throw Error(`Field group '${i}' is not defined in schema for type '${e.title?e.name:n(e.name)}'`);s.fields.push(t)})}),f(r).filter(e=>e.fields.length>0||e.name===v)})(i,l.fields)),_(l,"preview",R(i)),_(l,b,()=>({...o,preview:l.preview}),{enumerable:!1,writable:!1}),_(l,"__experimental_search",()=>{let e=i.__experimental_search?e_(i.__experimental_search):null;return e?e.map(e=>"defaults"===e?e_(i):e):function(e,t){var r=eu(void 0);let n=er(r);return e[n]||(e[n]=d([...ea,...el(e,r),...es(e,(e,t,r)=>"string"===t.jsonType?[...e,r]:e,[],[],r).map(e=>({weight:1,path:e})),...es(e,(e,t,r)=>"array"===t.jsonType&&Array.isArray(t.of)&&t.of.some(ei)?[...e,r]:e,[],[],r).map(e=>({weight:1,path:e,mapWith:"pt::text"}))],e=>e.path.join("."))),e[n]}(l)},{enumerable:!1}),function e(t){return{get:()=>t,extend:r=>{if(r.fields)throw Error('Cannot override `fields` of subtypes of "object"');let a=s(r,ew);a.title=r.title||i.title||(i.name?n(i.name):"Object");let o=Object.assign({},t,s(r,ew),{type:t});return _(o,"__experimental_search",()=>t.__experimental_search),w(o,b,a),e(o)}}}(l)}};function ek(e,t){let r={};for(let t of e.fieldsets||[]){if(r[t.name])throw Error(`Duplicate fieldset name "${t.name}" found for type '${e.title?e.title:n(e.name)}'`);r[t.name]={title:n(t.name),...t,fields:[]}}let i=new Set;for(let n of t){if(!n.fieldset){i.add({single:!0,field:n});continue}let t=r[n.fieldset];if(!t)throw Error(`Fieldset '${n.fieldset}' is not defined in schema for type '${e.name}'`);t.fields.push(n),i.add(t)}return Array.from(i)}let eE={name:"document",title:"Document",type:null,jsonType:"object"},eS={get:()=>eE,extend:ex.extend},eA=[...y],eO={name:"email",title:"Email",type:null,jsonType:"string"};_(eO,b,()=>({...eO,validation:e=>e.email()}),{enumerable:!1});let eC={name:"asset",type:"reference",to:{type:"sanity.fileAsset"}},eT={name:"media",type:"globalDocumentReference",hidden:!0,to:[{type:"sanity.asset"}]},eI=[...y],eD={name:"file",title:"File",type:null,jsonType:"object"},ej={accept:""},eR=[{name:"_ref",title:"Referenced document ID",type:"string"},{name:"_weak",title:"Weak reference",type:"boolean"}],eN=[...y],e$={name:"globalDocumentReference",title:"Global Document Reference",type:null,jsonType:"object"},eM={name:"asset",type:"reference",to:[{type:"sanity.imageAsset"}]},eF={name:"hotspot",type:"sanity.imageHotspot"},eP={name:"crop",type:"sanity.imageCrop"},eL={name:"media",type:"globalDocumentReference",hidden:!0,to:[{type:"sanity.asset"}]},ez=[...y],eq={name:"image",title:"Image",type:null,jsonType:"object"},eU={},eB=[...y],eV={name:"number",title:"Number",type:null,jsonType:"number"},eH=[{name:"_ref",title:"Referenced document ID",type:"string"},{name:"_weak",title:"Weak reference",type:"boolean"}],eG=[...y],eW={name:"reference",title:"Reference",type:null,jsonType:"object"},eZ=[...y],eY={name:"string",title:"String",type:null,jsonType:"string"},eK=[...y,"rows"],eJ={name:"text",title:"Text",type:null,jsonType:"string"},eX=[...y],eQ={name:"url",title:"Url",type:null,jsonType:"string"};var e0=Object.freeze({__proto__:null,any:{get:()=>k,extend(e,t){let r={...e,of:e.of.map(e=>({name:e.name,type:t(i(e,"name"))}))},n=Object.assign(s(k,x),r,{type:k}
73);return w(n,b,r),function e(t){return{get:()=>t,extend:r=>{if(r.of)throw Error('Cannot override `of` property of subtypes of "array"');let n=s(r,x),i=Object.assign({},t,n,{type:t});return w(i,b,n),e(i)}}}(n)}},array:{get:()=>S,extend(e,t){let r=Object.assign(s(S,E),e,{type:S});return _(r,"of",()=>e.of.map(e=>t.cached(e))),_(r,b,()=>({...e,of:r.of}),{enumerable:!1,writable:!1}),function e(t){return{get:()=>t,extend:r=>{if(r.of)throw Error('Cannot override `of` property of subtypes of "array"');let n=s(r,E),i=Object.assign({},t,n,{type:t});return w(i,b,n),e(i)}}}(r)}},block:{get:()=>B,extend(e,t){var r;let n={...e.options||V},{marks:i,styles:a,lists:o,of:l,...u}=e,c=function(e,t=[]){return{name:"children",title:"Content",type:"array",of:[{type:"span",fields:[N,$],annotations:e&&e.annotations?e.annotations:H,decorators:e&&e.decorators?e.decorators:q},...t.filter(e=>"span"!==e.type)]}}(i,l),d=[c,{name:"style",title:"Style",type:"string",options:{list:(r=a||L).some(e=>"normal"===e.value)?r:[P.normal,...r]}},{name:"listItem",title:"List type",type:"string",options:{list:o||F}},{name:"markDefs",title:"Mark definitions",type:"array",of:i?.annotations||H},{name:"level",title:"Indentation",type:"number"}].concat(e.fields||[]),h={...u,options:n},f=Object.assign(s(B,U),h,{type:B});return _(f,"fields",()=>d.map(e=>t.cachedField(e))),_(f,"preview",R(e)),_(f,b,()=>({...h,fields:f.fields,preview:f.preview}),{enumerable:!1,writable:!1}),function e(t){return{get:()=>t,extend:r=>{if(r.fields)throw Error('Cannot override `fields` of subtypes of "block"');let n=s(r,U),i=Object.assign({},t,n,{type:t});return w(i,b,n),e(i)}}}(f)}},boolean:{get:()=>Q,extend(e){let t={...e,preview:J},r=Object.assign(s(Q,X),t,{type:Q});return w(r,b,t),function e(t){return{get:()=>t,extend:r=>{let n=s(r,X),i=Object.assign({},t,n,{type:t});return w(i,b,n),e(i)}}}(r)}},crossDatasetReference:{get:()=>eh,extend(e,t){if(!e.to)throw Error(`Missing "to" field in cross dataset reference definition. Check the type ${e.name}`);let r=Object.assign(s(eh,ed),e,{type:eh});return _(r,"fields",()=>ec.map(e=>t.cachedField(e))),_(r,"to",()=>a(e.to).map(e=>({...e,__experimental_search:function(e,t){var r=eu(void 0);let n=er(r);return e[n]||(e[n]=d([...ea,...el(e,r)],e=>e.path.join("."))),e[n]}(e)}))),_(r,"title",()=>e.title||(r.to&&0!==r.to.length?`Cross dataset reference to ${(function(e,t){let r=e.length;if(1===r)return e[0];let n=e.slice(0,r-1),i=e[r-1];return`${n.join(", ")} or ${i}`})(a(r.to).map(e=>e.title||u(e.type)),0).toLowerCase()}`:"Cross dataset Reference")),_(r,b,()=>({...e,fields:r.fields,to:r.to,title:r.title}),{enumerable:!1,writable:!1}),function e(t){return{get:()=>t,extend:r=>{if(r.of)throw Error('Cannot override `of` of subtypes of "reference"');let n=s(r,ed),i=Object.assign({},t,n,{type:t});return w(i,b,n),e(i)}}}(r)}},date:{get:()=>ep,extend(e){let t={...e,preview:J},r=Object.assign(s(ep,ef),t,{type:ep});return w(r,b,t),function e(t){return{get:()=>t,extend:r=>{let n=s(r,ef),i=Object.assign({},t,n,{type:t});return w(i,b,n),e(i)}}}(r)}},datetime:{get:()=>eg,extend(e){let t={...e,preview:J},r=Object.assign(s(eg,em),t,{type:eg});return w(r,b,t),function e(t){return{get:()=>t,extend:r=>{let n=s(r,em),i=Object.assign({},t,n,{type:t});return w(i,b,n),e(i)}}}(r)}},document:eS,email:{get:()=>eO,extend(e){let t={...e,preview:J},r=Object.assign(s(eO,eA),t,{type:eO});return w(r,b,t),function e(t){return{get:()=>t,extend:r=>{let n=s(r,eA),i=Object.assign({},t,n,{type:t});return w(i,b,n),e(i)}}}(r)}},file:{get:()=>eD,extend(e,t){let r={...e.options||ej},i=[eC,eT,...e.fields||[]],a={...e,fields:i},o=Object.assign(s(eD,eI),a,{type:eD,title:a.title||(a.name?n(a.name):eD.title),options:r,fields:a.fields.map(r=>{let{name:i,fieldset:s,...a}=r;return _({name:i,fieldset:s,isCustomized:!!e.fields},"type",()=>t({...a,title:r.title||n(i)}))})});return _(o,"fieldsets",()=>ek(a,o.fields)),_(o,"preview",R(Object.assign({},a,{fields:i}))),_(o,b,()=>({...a,options:r,fields:o.fields,title:o.title,fieldsets:o.fieldsets,preview:o.preview}),{enumerable:!1,writable:!1}),function e(t){return{get:()=>t,extend:r=>
73{if(r.fields)throw Error('Cannot override `fields` of subtypes of "file"');let n=s(r,eI),i=Object.assign({},t,n,{type:t});return w(i,b,n),e(i)}}}(o)}},globalDocumentReference:{get:()=>e$,extend(e,t){if(!e.to)throw Error(`Missing "to" field in global document reference definition. Check the type ${e.name}`);let r=Object.assign(s(e$,eN),e,{type:e$});return _(r,"fields",()=>eR.map(e=>t.cachedField(e))),_(r,"to",()=>a(e.to).map(e=>({...e}))),_(r,"title",()=>e.title||(r.to&&0!==r.to.length?`Global Document Reference to ${(function(e,t){let r=e.length;if(1===r)return e[0];let n=e.slice(0,r-1),i=e[r-1];return`${n.join(", ")} or ${i}`})(a(r.to).map(e=>e.title),0).toLowerCase()}`:"Global Document Reference")),_(r,b,()=>({...e,fields:r.fields,to:r.to,title:r.title}),{enumerable:!1,writable:!1}),function e(t){return{get:()=>t,extend:r=>{if(r.of)throw Error('Cannot override `of` of subtypes of "globalDocumentReference"');let n=s(r,eN),i=Object.assign({},t,n,{type:t});return w(i,b,n),e(i)}}}(r)}},image:{get:()=>eq,extend(e,t){let r={...e.options||eU},i=[eF,eP];r.hotspot||(i=i.map(e=>({...e,hidden:!0})));let a=[eM,eL,...i,...e.fields||[]],o={...e,fields:a},l=Object.assign(s(this.get(),ez),o,{type:eq,title:o.title||(o.name?n(o.name):eq.title),options:r,fields:o.fields.map(r=>{let{name:i,fieldset:s,...a}=r;return _({name:i,fieldset:s,isCustomized:!!e.fields},"type",()=>t({...a,title:r.title||n(i)}))})});return _(l,"fieldsets",()=>ek(o,l.fields)),_(l,"preview",R(Object.assign({},o,{fields:a}))),_(l,b,()=>({...o,options:r,fields:l.fields,title:l.title,fieldsets:l.fieldsets,preview:l.preview}),{enumerable:!1,writable:!1}),function e(t){return{get:()=>t,extend:r=>{if(r.fields)throw Error('Cannot override `fields` of subtypes of "image"');let n=s(r,ez),i=Object.assign({},t,n,{type:t});return w(i,b,n),e(i)}}}(l)}},number:{get:()=>eV,extend(e){let t={...e,preview:J},r=Object.assign(s(eV,eB),t,{type:eV});return w(r,b,t),function e(t){return{get:()=>t,extend:r=>{let n=s(r,eB),i=Object.assign({},t,n,{type:t});return w(i,b,n),e(i)}}}(r)}},object:ex,reference:{get:()=>eW,extend(e,t){if(!e.to)throw Error(`Missing "to" field in reference definition. Check the type ${e.name}`);let r=Object.assign(s(eW,eG),e,{type:eW});return _(r,"fields",()=>eH.map(e=>t.cachedField(e))),_(r,"fieldsets",()=>ek(e,r.fields)),_(r,"to",()=>a(e.to).map(e=>t(e))),_(r,"title",()=>e.title||(r.to&&0!==r.to.length?`Reference to ${(function(e,t){let r=e.length;if(1===r)return e[0];let n=e.slice(0,r-1),i=e[r-1];return`${n.join(", ")} or ${i}`})(a(r.to).map(e=>e.title),0).toLowerCase()}`:"Reference")),_(r,b,()=>({...e,fields:r.fields,fieldsets:r.fieldsets,to:r.to,title:r.title}),{enumerable:!1,writable:!1}),function e(t){return{get:()=>t,extend:r=>{if(r.of)throw Error('Cannot override `of` of subtypes of "reference"');let n=s(r,eG),i=Object.assign({},t,n,{type:t});return w(i,b,n),e(i)}}}(r)}},span:{get:()=>W,extend(e,t){let r={...e.options||K},{annotations:n=[],marks:i=[]}=e,a=[Z,Y],o={...e,options:r},l=Object.assign(s(W,G),o,{type:W});return _(l,"fields",()=>a.map(e=>t.cachedField(e))),_(l,"annotations",()=>n.map(t)),_(l,"marks",()=>i.map(t)),_(l,"preview",R(e)),_(l,b,()=>({...o,fields:l.fields,annotations:l.annotations,marks:l.marks,preview:l.preview}),{enumerable:!1,writable:!1}),function e(t){return{get:()=>t,extend:r=>{if(r.fields)throw Error('Cannot override `fields` of subtypes of "span"');let n=s(r,G),i=Object.assign({},t,n,{type:t});return w(i,b,n),e(i)}}}(l)}},string:{get:()=>eY,extend(e){let t={...e,preview:J},r=Object.assign(s(eY,eZ),t,{type:eY});return w(r,b,t),function e(t){return{get:()=>t,extend:r=>{let n=s(r,eZ),i=Object.assign({},t,n,{type:t});return w(i,b,n),e(i)}}}(r)}},text:{get:()=>eJ,extend(e){let t={...e,preview:J},r=Object.assign(s(eJ,eK),t,{type:eJ});return w(r,b,t),function e(t){return{get:()=>t,extend:r=>{let n=s(r,eK),i=Object.assign({},t,n,{type:t});return w(i,b,n),e(i)}}}(r)}},url:{get:()=>eQ,extend(e){let t={...e,preview:J},r=Object.assign(s(eQ,eX),t,{type:eQ});return w(r,b,t),function e(t){return{get:()=>t,extend:r=>{let n=s(r,eX),i=Object.assign({},t,n,{type:t});return w(i,b,n),e(i)}}}(r)}}});class e1{_original;_registry;#_;static compile(e){return new e1(e)}constructor(e){this._original=e;let{registry:t,localTypeNames:r}=function(e){let t,r=Object.create(null);e.parent?(Object.assign(r,e.parent._registry),t=[]):(Object.assign(r,e0),t=Object.keys(e0));let i=e.types.reduce((e,t)=>
73{if(e[t.name])throw Error(`Duplicate type name added to schema: ${t.name}`);return e[t.name]=t,e},{}),s=new Map,a=new Map,o=new Map,l=Object.assign(c,{cached(e){let t=s.get(e);return t||(t=c(e),s.set(e,t)),t},cachedField(e){let t=a.get(e);if(!t){let{name:r,...n}=e;t={name:r,type:c(n)},a.set(e,t)}return t},cachedObjectField(e){let t=o.get(e);if(!t){let{name:r,fieldset:i,group:s,...a}=e;_(t={name:r,group:s,fieldset:i},"type",()=>c({...a,title:e.title||n(r)})),o.set(e,t)}return t}});return e.types.forEach(d),{registry:r,localTypeNames:t};function u(e){if(!r[e]){if(!i[e])throw Error(`Unknown type: ${e}`);d(i[e])}}function c(e){return u(e.type),r[e.type].extend(e,l).get()}function d(e){u(e.type),r[e.name]||(t.push(e.name),r[e.name]=r[e.type].extend(e,c))}}(e);this._registry=t,this.#_=r}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.#_}}let e2=Symbol("FIELD_REF"),e5=["Array","Boolean","Date","Number","Object","String"],e3=class e{static FIELD_REF=e2;static array=t=>new e(t).type("Array");static object=t=>new e(t).type("Object");static string=t=>new e(t).type("String");static number=t=>new e(t).type("Number");static boolean=t=>new e(t).type("Boolean");static dateTime=t=>new e(t).type("Date");static valueOfField=e=>({type:e2,path:e});_type=void 0;_level=void 0;_required=void 0;_typeDef=void 0;_message=void 0;_rules=[];_fieldRules=void 0;constructor(e){this._typeDef=e,this.reset()}_mergeRequired(e){return"required"===this._required||"required"===e._required?"required":"optional"===this._required||"optional"===e._required?"optional":void 0}valueOfField=e.valueOfField.bind(e);error(e){let t=this.clone();return t._level="error",t._message=e||void 0,t}warning(e){let t=this.clone();return t._level="warning",t._message=e||void 0,t}info(e){let t=this.clone();return t._level="info",t._message=e||void 0,t}reset(){return this._type=this._type||void 0,this._rules=(this._rules||[]).filter(e=>"type"===e.flag),this._message=void 0,this._required=void 0,this._level="error",this._fieldRules=void 0,this}isRequired(){return"required"===this._required}clone(){let t=new e;return t._type=this._type,t._message=this._message,t._required=this._required,t._rules=g(this._rules),t._level=this._level,t._fieldRules=this._fieldRules,t._typeDef=this._typeDef,t}cloneWithRules(e){let t=this.clone(),r=new Set;return e.forEach(e=>{"type"===e.flag&&(t._type=e.constraint),r.add(e.flag)}),t._rules=t._rules.filter(e=>{let t=["type","uri","email"].includes(e.flag),n=r.has(e.flag);return!(t&&n)}).concat(e),t}merge(e){if(this._type&&e._type&&this._type!==e._type)throw Error("merge() failed: conflicting types");let t=this.cloneWithRules(e._rules);return t._type=this._type||e._type,t._message=this._message||e._message,t._required=this._mergeRequired(e),t._level="error"===this._level?e._level:this._level,t}type(e){let t=`${e.slice(0,1).toUpperCase()}${e.slice(1)}`;if(!e5.includes(t))throw Error(`Unknown type "${e}"`);let r=this.cloneWithRules([{flag:"type",constraint:t}]);return r._type=t,r}all(e){return this.cloneWithRules([{flag:"all",constraint:e}])}either(e){return this.cloneWithRules([{flag:"either",constraint:e}])}optional(){let e=this.cloneWithRules([{flag:"presence",constraint:"optional"}]);return e._required="optional",e}required(){let e=this.cloneWithRules([{flag:"presence",constraint:"required"}]);return e._required="required",e}custom(e,t={}){return t.bypassConcurrencyLimit&&Object.assign(e,{bypassConcurrencyLimit:!0}),this.cloneWithRules([{flag:"custom",constraint:e}])}min(e){return this.cloneWithRules([{flag:"min",constraint:e}])}max(e){return this.cloneWithRules([{flag:"max",constraint:e}])}length(e){return this.cloneWithRules([{flag:"length",constraint:e}])}valid(e){let t=Array.isArray(e)?e:[e];return this.cloneWithRules([{flag:"valid",constraint:t}])}integer(){return this.cloneWithRules([{flag:"integer"}])}precision(e){return this.cloneWithRules([{flag:"precision",constraint:e}])}positive(){return this.cloneWithRules([{flag:"min",constraint:0}])}negative(){return this.cloneWithRules([{flag:"lessThan",constraint:0}])}greaterThan(e){return this.cloneWithRules([{flag:"greaterThan",constraint:e}])}lessThan(e){return this.cloneWithRules([{flag:"lessThan",constraint:e}])}uppercase(){return this.cloneWithRules([{flag:"stringCasing",constraint:"uppercase"}])}lowercase(){return this.cloneWithRules([{flag:"stringCasing",constraint:"lowercase"}])}regex(e,t,r){let n="string"==typeof t?t:t?.name??r?.name,i="string"!=typeof t&&(t?.invert??r?.invert);return this.cloneWithRules([{flag:"regex",constraint:{pattern:e,name:n,invert:i||!1}}])}email(){return this.cloneWithRules([{flag:"email"}])}uri(e){let t=e?.scheme||["http","https"],r=Array.isArray(t)?t:[t];if(!r.length)throw Error("scheme must have at least 1 scheme specified");let n={options:{scheme:r.map(e=>{if(!(e instanceof RegExp)&&"string"!=typeof e)throw Error("scheme must be a RegExp or a String");return"string"==typeof e?RegExp(`^${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}$`):e}),allowRelative:e?.allowRelative||!1,relativeOnly:e?.relativeOnly||!1,allowCredentials:e?.allowCredentials||!1}};return this.cloneWithRules([{flag:"uri",constraint:n}])}unique(){return this.cloneWithRules([{flag:"unique"}])}reference(){return this.cloneWithRules([{flag:"reference"}])}fields(e){if("Object"!==this._type)throw Error("fields() can only be called on an object type");let t=this.cloneWithRules([]);return t._fieldRules=e,t}assetRequired(){let e,t=function e(t){return t&&t.type?e(t.type):t}(this._typeDef);return e=t&&["image","file"].includes(t.name)?"image"===t.name?"image":"file":"asset",this.cloneWithRules([{flag:"assetRequired",constraint:{assetType:e}}
73])}media(e){return this.cloneWithRules([{flag:"media",constraint:e}])}async validate(e,t){throw Error("validate() method must be implemented by extending Rule class")}}},73265:(e,t,r)=>{"use strict";r.d(t,{T:()=>i});var n=r(24617);function i(e,t,r){return(0,n.v)(function(){return e()?t:r})}},73364:(e,t,r)=>{e.exports=r(43960)(r(36169),"DataView")},73480:(e,t,r)=>{var n=r(3191),i=r(36383);e.exports=function(e,t,r){var s=!0,a=!0;if("function"!=typeof e)throw TypeError("Expected a function");return i(r)&&(s="leading"in r?!!r.leading:s,a="trailing"in r?!!r.trailing:a),n(e,t,{leading:s,maxWait:t,trailing:a})}},73536:(e,t,r)=>{"use strict";r.d(t,{Wm:()=>l,Yr:()=>c,hZ:()=>d,jo:()=>u,wC:()=>h,yl:()=>o});var n=r(92450);let i="before",s="after";function a(...e){return e.reduce((e,t)=>e.concat(t),[])}function o(e,t){return t.reduce(function e(t,r){var o;return Array.isArray(t)?function(t,r){let n=t.slice();if(0===r.path.length){if("setIfMissing"===r.type){if(!Array.isArray(r.value))throw Error("Cannot set value of an array to a non-array");return void 0===t?r.value:t}if("set"===r.type){if(!Array.isArray(r.value))throw Error("Cannot set value of an array to a non-array");return r.value}if("unset"===r.type)return;throw Error(`Invalid array operation: ${r.type}`)}let[o,...l]=r.path,u=function(e,t){if("number"==typeof t)return t;if("object"==typeof t&&null!==t&&"_key"in t){let r=e.findIndex(e=>e._key===t._key);return -1!==r&&r}return!1}(t,o);if(!1===u)return n;if(0===l.length){if("insert"===r.type){let{position:e,items:n}=r;return function(e,t,r,...n){if(t!==i&&t!==s)throw Error(`Invalid position "${t}", must be either ${i} or ${s}`);let o=a(...n);if(0===e.length)return o;let l=e.length,u=Math.abs((l+r)%l)%l,c=e.slice();return c.splice("after"===t?u+1:u,0,...a(o)),c}(t,e,u,n)}else if("unset"===r.type){if("number"!=typeof u)throw Error(`Expected array index to be a number, instead got "${u}"`);return n.splice(u,1),n}}return n[u]=e(n[u],{...r,path:l}),n}(t,r):"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[r]=(0,n.$i)((0,n.iz)(t.value),e,{allowExceedingIndices:!0});return r}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,r):"object"!=typeof(o=t)||null===o||Array.isArray(o)?"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,r):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,r):function(t,r){let n={...t};if(0===r.path.length){if("set"===r.type){if("object"==typeof r.value&&null!==r.value&&!Array.isArray(r.value))return r.value;throw Error("Cannot set value of an object to a non-object")}if("setIfMissing"===r.type){if("object"==typeof r.value&&null!==r.value&&!Array.isArray(r.value))return t;throw Error("Cannot setIfMissing value of an object to a non-object")}if("unset"===r.type)return;throw Error(`Invalid object operation: ${r.type}`)}let[i,...s]=r.path;if("string"!=typeof i)throw Error(`Expected field name to be a string, instead got: ${i}`);if(0===s.length&&"unset"===r.type){let{[i]:e,...t}=n;return t}return(i in n||!(s.length>0))&&(n[i]=e(n[i],{...r,path:s})),n}(t,r)},e)}function l(e,t=[]){return{type:"setIfMissing",path:t,value:e}}function u(e,t,r=[]){let i=(0,n.jW)(e,t);return{type:"diffMatchPatch",path:r,value:(0,n.w1)(i)}}function c(e,t,r=[]){return{type:"insert",path:r,position:t,items:e}}function d(e,t=[]){return{type:"set",path:t,value:e}}function h(e=[]){return{type:"unset",path:e}}},73544:(e,t,r)=>{var n=r(13535),i=r(14860),s=r(30734);e.exports=function(e){return e&&e.length?n(e,s,i):void 0}},73567:(e,t,r)=>{var n=r(83141),i=r(23078);e.exports=function(e,t,r,s){var a=!r;r||(r={});for(var o=-1,l=t.length;++o<l;){var u=t[o],c=s?s(r[u],e[u],u,r,e):void 0;void 0===c&&(c=e[u]),a?i(r,u,c):n(r,u,c)}return r}},73639:(e,t,r)=>{"use strict";r.d(t,{M:()=>n});let n="8.55.2"},74078:(e,t,r)=>{"use strict";function n(e){return{type:"forward",event:e}}function i(e){return{type:"raise",event:e}}function s(e){return{type:"effect",effect:e}}function a(e){return e}r.d(t,{Ke:()=>a,QZ:()=>s,sY:()=>n,xl:()=>i})},74102:(e,t,r)=>{"use strict";let n=r(43166);e.exports=(e,t,r)=>n(t,e,r)},74107:(e,t,r)=>{var n=r(36383),i=r(70725),s=r(65125),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return s(e);var t=i(e),r=[];for(var o in e)"constructor"==o&&(t||!a.call(e,o))||r.push(o);return r}},74157:(e,t,r)=>{"use strict";r.d(t,{zU:()=>p,xl:()=>m,pK:()=>f,et:()=>h,kX:()=>u});var n=r(33806),i=r(24368),s=r(87865),a=r(31144),o=r(29060);let l=!1;function u(e){let{spanId:t,traceId:r,isRemote:i}=e.spanContext(),s=i?t:h(e).parent_span_id,o=i?(0,a.ZF)():t;return(0,n.Ce)({parent_span_id:s,span_id:o,trace_id:r})}function c(e){return"number"==typeof e?d(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?d(e.getTime()):(0,o.zf)()}function d(e){return e>0x2540be3ff?e/1e3:e}function h(e){if("function"==typeof e.getSpanJSON)return e.getSpanJSON();try{var t;let{spanId:r,traceId:s}=e.spanContext();if((t=e).attributes&&t.startTime&&t.name&&t.endTime&&t.status){let{attributes:t,startTime:a,name:o,endTime:l,parentSpanId:u,status:d}=e;return(0,n.Ce)({span_id:r,trace_id:s,data:t,description:o,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 r={};for(let[,[e,i]]of t)(r[e]||(r[e]=[])).push((0,n.Ce)(i));return r}(e)})}return{span_id:r,trace_id:s}}catch(e){return{}}}function f(e){let{traceFlags:t}=e.spanContext();return 1===t}function p(e){return e._sentryRootSpan||e}function m(){l||((0,s.pq)(()=>{console.warn("[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK ver
73sion 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.")}),l=!0)}},74542:(e,t,r)=>{"use strict";r.d(t,{Jy:()=>f});var n=r(92450);let i=/^[A-Za-z_][A-Za-z0-9_]*$/;function s(e){return e.reduce((e,t,r)=>{var n;if(Array.isArray(t))return`${e}[${t.join(":")}]`;if("object"==typeof(n=t)&&"string"==typeof n._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===r?"":"."}${t}`;throw Error(`Unsupported path segment "${t}"`)},"")}class a extends Error{path;value;serializedPath;constructor(e,t,r){let n=s(t);super(`${e} (at '${n}')`),this.path=t,this.serializedPath=n,this.value=r}}let o=/^[a-z0-9][a-z0-9_.-]+$/i,l=/^[a-zA-Z_][a-zA-Z0-9_-]*$/,u=/^[a-z_]/i;function c(e,t,r){if(!u.test(e))throw new a("Keys must start with a letter (a-z)",r.concat(e),t);if(!l.test(e))throw new a("Keys can only contain letters, numbers and underscores",r.concat(e),t);if("_key"===e||"_ref"===e||"_type"===e){if("string"!=typeof t)throw new a("Keys must be strings",r.concat(e),t);if(!o.test(t))throw new a("Invalid key - use less exotic characters",r.concat(e),t)}return e}let d=["_id","_type","_createdAt","_updatedAt","_rev"],h={hideWarnings:!1,diffMatchPatch:{enabled:!0,lengthThresholdAbsolute:30,lengthThresholdRelative:1.2}};function f(e,t,r=h,i=[],s=[]){if(e===t)return s;let o=Array.isArray(e)?"array":typeof e,l=Array.isArray(t)?"array":typeof t,u="undefined"===o,d="undefined"===l;if(u&&!d)return s.push({op:"set",path:i,value:t}),s;if(!u&&d)return s.push({op:"unset",path:i}),s;let _={...h,...r,diffMatchPatch:{...h.diffMatchPatch,...r.diffMatchPatch||{}}},w=u?l:o;return"object"===w||"array"===w?o!==l?(s.push({op:"set",path:i,value:t}),s):"array"===w?function(e,t,r,n,i){if(t.length>e.length&&i.push({op:"insert",after:n.concat([-1]),items:t.slice(e.length).map((e,t)=>b(e,n,t,r))}),t.length<e.length){let s=e.length-t.length==1,a=e.slice(t.length);r.ifRevisionID||!g(a)?i.push({op:"unset",path:n.concat([s?t.length:[t.length,""]])}):i.push(...a.map(e=>({op:"unset",path:n.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",n.concat(e),t[e]);let s=Math.min(e.length,t.length),o=e.slice(0,s),l=t.slice(0,s);return g(o)&&g(l)?function(e,t,r,n,i){var s,a;let o=y(e),l=y(t);if(s=o.keys,a=l.keys,!(s.length===a.length&&s.every((e,t)=>a[t]===e)))return p(e,t,r,n,i);for(let e=0;e<l.keys.length;e++){let t=l.keys[e];f(o.index[t],b(l.index[t],n,e,r),r,n.concat({_key:t}),i)}return i}(o,l,r,n,i):p(o,l,r,n,i)}(e,t,_,i,s):function(e,t,r,n,i){let s=0===n.length,a=Object.keys(e).filter(s?m:v).map(t=>c(t,e[t],n)),o=a.length,l=Object.keys(t).filter(s?m:v).map(e=>c(e,t[e],n)),u=l.length;for(let e=0;e<o;e++){let r=a[e];r in t||i.push({op:"unset",path:n.concat(r)})}for(let s=0;s<u;s++){let a=l[s];f(e[a],t[a],r,n.concat([a]),i)}return i}(e,t,_,i,s):function(e,t,r,i,s){let a=function(e,t,r,i){let{enabled:s,lengthThresholdRelative:a,lengthThresholdAbsolute:o}=r.diffMatchPatch,l=i[i.length-1];if(!s||"string"!=typeof e||"string"!=typeof t||"string"==typeof l&&"_"===l[0]||t.length<o)return;let u="";try{let r=(0,n.iU)(e,t),i=(0,n.sw)(r);u=(0,n.w1)((0,n.jW)(i))}catch{return}return u.length>t.length*a?void 0:{op:"diffMatchPatch",path:i,value:u}}(e,t,r,i);return s.push(a||{op:"set",path:i,value:t}),s}(e,t,_,i,s)}function p(e,t,r,n,i){for(let s=0;s<e.length;s++)f(e[s],b(t[s],n,s,r),r,n.concat(s),i);return i}function m(e){return -1===d.indexOf(e)}function g(e){let t=[];for(let n=0;n<e.length;n++){var r;let i="object"==typeof(r=e[n])&&null!==r&&r._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 b(e,t,r,n){if("u">typeof e)return e;if(!n.hideWarnings){let e=s(t.concat(r));console.warn(`undefined value in array converted to null (at '${e}')`)}return null}function v(e){return!0}},74750:(e,t,r)=>{var n=r(70368);e.exports=function(e,t){if(e!==t){var r=void 0!==e,i=null===e,s=e==e,a=n(e),o=void 0!==t,l=null===t,u=t==t,c=n(t);if(!l&&!c&&!a&&e>t||a&&o&&u&&!l&&!c||i&&o&&u||!r&&u||!s)return 1;if(!i&&!a&&!c&&e<t||c&&r&&s&&!i&&!a||l&&r&&s||!o&&s||!u)return -1}return 0}},74819:(e,t,r)=>{var n=r(7290),i=r(90122);e.exports=function(e,t){return n(i(e,t),1)}},75115:(e,t,r)=>{"use strict";r.d(t,{_:()=>f});var n=r(63197),i=r(87865);let s="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;var a=r(29356);let o={};var l=r(14919),u=r(87809),c=r(38437),d=r(92521);function h(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}function f(e,t=function(e){let t=o[e];if(t)return t;let r=a.j[e];if((0,n.a3)(r))return o[e]=r.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 n=t.contentWindow;n&&n[e]&&(r=n[e]),l.head.removeChild(t)}catch(t){s&&i.vF.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return r?o[e]=r.bind(a.j):r}("fetch")){let r=0,p=0;return function(e,t,r=function(e){let t=[];function r(e){return t.splice(t.indexOf(e),1)[0]||Promise.resolve(void 0)}return{$:t,add:function(n){if(!(void 0===e||t.length<e))return(0,l.xg)(new d.U("Not adding Promise because buffer limit was reached."));let i=n();return -1===t.indexOf(i)&&t.push(i),i.then(()=>r(i)).then(null,()=>r(i).then(null,()=>{})),i},drain:function(e){return new l.T2((r,n)=>{let i=t.length;if(!i)return r(!0);let s=setTimeout(()=>{e&&e>0&&r(!1)},e);
73t.forEach(e=>{(0,l.XW)(e).then(()=>{--i||(clearTimeout(s),r(!0))},n)})})}}}(e.bufferSize||64)){let n={};return{send:function(s){let a=[];if((0,c.yH)(s,(t,r)=>{let i=(0,c.zk)(r);if(function(e,t,r=Date.now()){return(e[t]||e.all||0)>r}(n,i)){let n=h(t,r);e.recordDroppedEvent("ratelimit_backoff",i,n)}else a.push(t)}),0===a.length)return(0,l.XW)({});let o=(0,c.h4)(s[0],a),f=t=>{(0,c.yH)(o,(r,n)=>{let i=h(r,n);e.recordDroppedEvent(t,(0,c.zk)(n),i)})};return r.add(()=>t({body:(0,c.bN)(o)}).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.`),n=function(e,{statusCode:t,headers:r},n=Date.now()){let i={...e},s=r&&r["x-sentry-rate-limits"],a=r&&r["retry-after"];if(s)for(let e of s.trim().split(",")){let[t,r,,,s]=e.split(":",5),a=parseInt(t,10),o=(isNaN(a)?60:a)*1e3;if(r)for(let e of r.split(";"))"metric_bucket"===e?(!s||s.split(";").includes("custom"))&&(i[e]=n+o):i[e]=n+o;else i.all=n+o}else a?i.all=n+function(e,t=Date.now()){let r=parseInt(`${e}`,10);if(!isNaN(r))return 1e3*r;let n=Date.parse(`${e}`);return isNaN(n)?6e4:n-t}(a,n):429===t&&(i.all=n+6e4);return i}(n,e),e),e=>{throw f("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."),f("queue_overflow"),(0,l.XW)({});throw e})},flush:e=>r.drain(e)}}(e,function(n){let i=n.body.length;r+=i,p++;let s={body:n.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:r<=6e4&&p<15,...e.fetchOptions};if(!t)return o.fetch=void 0,(0,l.xg)("No fetch implementation available");try{return t(e.url,s).then(e=>(r-=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 o.fetch=void 0,r-=i,p--,(0,l.xg)(e)}})}},75241:(e,t,r)=>{"use strict";r.d(t,{$:()=>u});var n=r(5885),i=r(53355),s=r(36330),a=r(50394),o=r(23701),l=r(56062);function u(e,t){var r=arguments.length>=2;return function(u){return u.pipe(e?(0,i.p)(function(t,r){return e(t,r,u)}):l.D,(0,s.s)(1),r?(0,a.U)(t):(0,o.v)(function(){return new n.G}))}}},75369:(e,t,r)=>{"use strict";let n=r(42838);e.exports=(e,t)=>{let r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}},75549:(e,t,r)=>{var n=r(25665);e.exports=r(24949)(n)},75662:(e,t,r)=>{"use strict";function n(){let e=Object.create(null),t=0;return{publish:function(t){for(let r in e)e[r](t)},subscribe:function(r){let n=t++;return e[n]=r,function(){delete e[n]}}}}r.d(t,{A:()=>n})},76159:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}},76353:(e,t,r)=>{"use strict";e.exports=r(56988)},76905:(e,t,r)=>{"use strict";r.d(t,{EJ:()=>h,pE:()=>b,wS:()=>p});var n=r(7112),i=r(82762),s=r(74078),a=r(30807),o=r(62171),l=r(93790),u=r(14864),c=r(12226),d=r(61409);function h(e){return e}function f({match:e,adjustIndexBy:t,snapshot:r,focusBlock:n,originalTextBefore:i}){let[s,o,u]=e,c=o+t,d={anchor:{path:n.path,offset:c},focus:{path:n.path,offset:c+u-o},backward:!1},h={anchor:{path:n.path,offset:Math.min(d.anchor.offset,i.length)},focus:{path:n.path,offset:Math.min(d.focus.offset,i.length)}},f=(0,l.m4)({context:r.context,blockOffset:h.anchor,direction:"backward"}),p=(0,l.m4)({context:r.context,blockOffset:h.focus,direction:"forward"});if(!f||!p)return;let m={anchor:f,focus:p},g=(0,a.PF)({...r,context:{...r.context,selection:{anchor:m.anchor,focus:m.anchor}}}),y=(0,a.$F)(r);if(!g.some(e=>y.some(t=>e.node._key===t.node._key)))return{text:s,selection:m,targetOffsets:d}}function p(e){let t,r=(0,n.c)(3),s=(0,i.h)();return r[0]!==s||r[1]!==e.rules?(t={input:{editor:s,rules:e.rules}},r[0]=s,r[1]=e.rules,r[2]=t):t=r[2],(0,u.qf)(y,t),null}let m=(0,c.mj)({types:{context:{},input:{},events:{}},actors:{"delete.backward listener":(0,d.SP)(({input:e,sendBack:t})=>e.editor.registerBehavior({behavior:(0,s.Ke)({on:"delete.backward",actions:[()=>[(0,s.xl)({type:"history.undo"}),(0,s.QZ)(()=>{t({type:"history.undo raised"})})]]})})),"input rule listener":(0,d.SP)(({input:e,sendBack:t})=>{let r=e.editor.registerBehavior({behavior:function(e){return(0,s.Ke)({on:"insert.text",guard:({snapshot:t,event:r,dom:n})=>{if(!t.context.selection||!(0,l.WV)(t.context.selection))return!1;let i=(0,o.gU)(t);if(!i)return!1;let s=(0,a._M)(t),u=s,c=u+r.text,d=c,h=[],p=[];for(let a of e.rules){let e=RegExp(a.on.source,"gd");for(;;){let o=[...d.matchAll(e)].flatMap(e=>{if(void 0===e.indices)return[];let r=e.indices.at(0);if(!r)return[];let n=f({match:[e.at(0)??"",...r],adjustIndexBy:c.length-d.length,snapshot:t,focusBlock:i,originalTextBefore:s});if(!n||n.targetOffsets.focus.offset<=s.length||h.some(e=>e.targetOffsets.anchor.offset===n.targetOffsets.anchor.offset))return[];let a=e.indices.length>1?e.indices.slice(1).filter(e=>void 0!==e):[];return[{text:n.text,selection:n.selection,targetOffsets:n.targetOffsets,groupMatches:a.flatMap((r,n)=>f({match:[e.at(n+1)??"",...r],adjustIndexBy:c.length-d.length,snapshot:t,focusBlock:i,originalTextBefore:s})||[])}]});if(o.length>0){let e=a.guard?.({snapshot:t,event:{type:"custom.input rule",matches:o,focusBlock:i,textBefore:s,textInserted:r.text},dom:n})??!0;if(!e)break;for(let l of a.actions.map(a=>a({snapshot:t,event:{type:"custom.input rule",matches:o,focusBlock:i,textBefore:s,textInserted:r.text},dom:n},e)))for(let e of l)p.push(e);for(let e of o.flatMap(e=>0===e.groupMatches.length?[e]:e.groupMatches))h.push(e),u=d.slice(0,e.targetOffsets.focus.offset??0),d=c.slice(e.targetOffsets.focus.offset??0)}else break}}return 0!==p.length&&{actions:p}},actions:[({event:e})=>[(0,s.sY)(e)],(e,{actions:t})=>t,({snapshot:t})=>[(0,s.QZ)(()=>{let r=(0,a.oV)(t);e.onApply?.({endOffsets:r})})]]})}({rules:e.rules,onApply:({endOffsets:e})=>{t({type:"input rule raised",endOffsets:e})}})});return()=>{r()}}),"selection listener":(0,d.SP)(({sendBack:e,input:t})=>t.editor.registerBehavior({behavior:(0,s.Ke)({on:"select",guard:({snapshot:e,event:t})=>({blockOffsets:(0,a.oV)({...e,context:{...e.context,selection:t.at}})}),actions:[({event:t},{blockOffsets:r})=>[(0,s.QZ)(()=>{e({type:"selection changed",blockOffsets:r})}),(0,s.sY)(t)]]})}))},guards:{"block offset changed":({context:e,event:t})=>{if("selection changed"!==t.type)return!1;if(!t.blockOffsets||!e.endOffsets)return!0;let r=e.endOffsets.start.path[0]._key!==t.blockOffsets.start.path[0]._key||e.endOffsets.start.offset!==t.blockOffsets.start.offset,n=e.endOffsets.end.path[0]._key!==t.blockOffsets.end.path[0]._key||e.endOffsets.end.offset!==t.blockOffsets.end.offset;return r||n}}}),g=m.assign({endOffsets:({context:e,event:t})=>"input rule raised"===t.type?t.endOffsets:e.endOffsets}),y=m.createMachine({id:"input rule",context:({input:e})=>({editor:e.editor,rules:e.rules,endOffsets:void 0}),initial:"idle",invoke:{src:"input rule listener",input:({context:e})=>({editor:e.editor,rules:e.rules})},on:{"input rule raised":{target:".input rule applied",actions:g}},states:{idle:{},"input rule applied":{invoke:[{src:"delete.backward listener",input:({context:e})=>({editor:e.editor})},{src:"selection listener",input:({context:e})=>({editor:e.editor})}],on:{"selection changed":{target:"idle",guard:"block offset changed"},"history.undo raised":{target:"idle"}}}}});function b(e){return{on:e.on,guard:e.guard??(()=>!0),actions:[({snapshot:t,event:r},n)=>{let i=r.matches.flatMap(e=>0===e.groupMatches.length?[e]:e.groupMatches),a=r.textBefore+r.textInserted,l=0,u=[];for(let a of i.reverse()){let i=e.transform({location:a},n);l-=i.length-(a.targetOffsets.focus.offset-a.targetOffsets.anchor.offset),u.push((0,s.xl)({type:"select",at:a.targetOffsets})),u.push((0,s.xl)({type:"delete",at:a.targetOffsets})),u.push((0,s.xl)({type:"insert.child",child:{_type:t.context.schema.span.name,text:i,marks:(0,o.JB)({...t,context:{...t.context,selection:{anchor:a.selection.anchor,focus:{path:a.selection.focus.path,offset:M
73ath.min(a.selection.focus.offset,r.textBefore.length)}}}})?.marks??[]}}))}let c={path:r.focusBlock.path,offset:a.length-l};return[...u,(0,s.xl)({type:"select",at:{anchor:c,focus:c}})]}]}}},76919:(e,t,r)=>{"use strict";r.d(t,{W:()=>o});var n=r(13177),i=r(30360),s=r(66982),a=r(97537);function o(e,t,r){let[o,l,u]=(0,n.x)(null==r?void 0:r.in,e,e,t),c=(0,i.z)(l,u),d=Math.abs(function(e,t,r){let[i,s]=(0,n.x)(void 0,e,t);return 12*(i.getFullYear()-s.getFullYear())+(i.getMonth()-s.getMonth())}(l,u));if(d<1)return 0;1===l.getMonth()&&l.getDate()>27&&l.setDate(30),l.setMonth(l.getMonth()-c*d);let h=(0,i.z)(l,u)===-c;(function(e,t){let r=(0,a.a)(e,void 0);return+(0,s.D)(r,void 0)==+function(e,t){let r=(0,a.a)(e,null==t?void 0:t.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(23,59,59,999),r}(r,t)})(o)&&1===d&&1===(0,i.z)(o,u)&&(h=!1);let f=c*(d-h);return 0===f?0:f}},76956:(e,t,r)=>{var n=r(69094),i=r(20232);e.exports=function e(t,r,s,a,o){return t===r||(null!=t&&null!=r&&(i(t)||i(r))?n(t,r,s,a,e,o):t!=t&&r!=r)}},77087:(e,t,r)=>{var n=r(74750);e.exports=function(e,t,r){for(var i=-1,s=e.criteria,a=t.criteria,o=s.length,l=r.length;++i<o;){var u=n(s[i],a[i]);if(u){if(i>=l)return u;return u*("desc"==r[i]?-1:1)}}return e.index-t.index}},77165:(e,t,r)=>{"use strict";r.d(t,{U:()=>d});var n=r(7112),i=r(82762),s=r(74078),a=r(62171),o=r(98833),l=r(3556),u=r(60266);let c=[(0,s.Ke)({on:"insert.break",guard:({snapshot:e})=>!!(e.context.selection&&a.gR(e))&&{selection:e.context.selection},actions:[(e,{selection:t})=>[(0,s.xl)({type:"delete",at:t})]]}),(0,s.Ke)({on:"insert.break",actions:[]}),(0,s.Ke)({on:"insert.block",guard:({event:e})=>"before"===e.placement||"after"===e.placement,actions:[]}),(0,s.Ke)({on:"insert.block",guard:({snapshot:e,event:t})=>!!a.hH(e)&&!!o.zS(e.context,t.block)&&("auto"!==t.placement||"end"!==t.select),actions:[({event:e})=>[(0,s.xl)({type:"insert.block",block:e.block,placement:"auto",select:"end"})]]}),(0,s.Ke)({on:"insert.block",guard:({snapshot:e,event:t})=>!a.hH(e)||!o.zS(e.context,t.block),actions:[]}),(0,s.Ke)({on:"insert.blocks",guard:({snapshot:e,event:t})=>{let r=t.blocks.filter(t=>o.zS(e.context,t));return 0!==r.length&&r.reduce((t,r)=>l.Y4({context:e.context,targetBlock:t,incomingBlock:r}))},actions:[(e,t)=>[(0,s.xl)({type:"insert.block",block:t,placement:"auto"})]]}),(0,s.Ke)({on:"insert.blocks",actions:[]})];function d(){let e,t,r=(0,n.c)(3),s=(0,i.h)();return r[0]!==s?(e=()=>{let e=c.map(e=>s.registerBehavior({behavior:e}));return()=>{for(let t of e)t()}},t=[s],r[0]=s,r[1]=e,r[2]=t):(e=r[1],t=r[2]),(0,u.useEffect)(e,t),null}},77274:(e,t,r)=>{e.exports=r(66505)(r(15104))},77645:(e,t,r)=>{"use strict";r.d(t,{c:()=>i});var n=r(97537);function i(e,t){let r=(0,n.a)(e,null==t?void 0:t.in).getDay();return 0===r||6===r}},77724:e=>{"use strict";let t=[],r=[],n=(e,n)=>{let i,s,a,o;if(e===n)return 0;let l=e;e.length>n.length&&(e=n,n=l);let u=e.length,c=n.length;for(;u>0&&e.charCodeAt(~-u)===n.charCodeAt(~-c);)u--,c--;let d=0;for(;d<u&&e.charCodeAt(d)===n.charCodeAt(d);)d++;if(u-=d,c-=d,0===u)return c;let h=0,f=0;for(;h<u;)r[h]=e.charCodeAt(d+h),t[h]=++h;for(;f<c;)for(h=0,i=n.charCodeAt(d+f),a=f++,s=f;h<u;h++)o=i===r[h]?a:a+1,a=t[h],s=t[h]=a>s?o>s?s+1:o:o>a?a+1:o;return s};e.exports=n,e.exports.default=n},78266:(e,t,r)=>{"use strict";r.d(t,{U:()=>n});let n="production"},78411:e=>{var t=/\w*$/;e.exports=function(e){var r=new e.constructor(e.source,t.exec(e));return r.lastIndex=e.lastIndex,r}},78903:(e,t,r)=>{var n=r(99577),i=r(96666),s=r(17385);function a(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=s,e.exports=a},78958:(e,t,r)=>{for(var n=r(69536),i="undefined"==typeof window?r.g:window,s=["moz","webkit"],a="AnimationFrame",o=i["request"+a],l=i["cancel"+a]||i["cancelRequest"+a],u=0;!o&&u<s.length;u++)o=i[s[u]+"Request"+a],l=i[s[u]+"Cancel"+a]||i[s[u]+"CancelRequest"+a];if(!o||!l){var c=0,d=0,h=[],f=1e3/60;o=function(e){if(0===h.length){var t=n(),r=Math.max(0,f-(t-c));c=r+t,setTimeout(function(){var e=h.slice(0);h.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(r))}
73return h.push({handle:++d,callback:e,cancelled:!1}),d},l=function(e){for(var t=0;t<h.length;t++)h[t].handle===e&&(h[t].cancelled=!0)}}e.exports=function(e){return o.call(i,e)},e.exports.cancel=function(){l.apply(i,arguments)},e.exports.polyfill=function(e){e||(e=i),e.requestAnimationFrame=o,e.cancelAnimationFrame=l}},79281:(e,t,r)=>{var n=r(60825);e.exports=r(58176)(function(e,t){return null==e?{}:n(e,t)})},79440:(e,t,r)=>{e=r.nmd(e);var n=r(36169),i=t&&!t.nodeType&&t,s=i&&e&&!e.nodeType&&e,a=s&&s.exports===i?n.Buffer:void 0,o=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=o?o(r):new e.constructor(r);return e.copy(n),n}},79550:(e,t,r)=>{var n=r(48824),i=1/0;e.exports=function(e){return e?(e=n(e))===i||e===-i?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},79622:(e,t,r)=>{var n=r(37811);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 r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(n++,"%c"===e&&(i=n))}),t.splice(i,0,r)},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!==n&&"env"in n&&(e=n.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=r(70915)(t);let{formatters:i}=e.exports;i.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},79624:(e,t,r)=>{var n=r(37864),i=r(48644),s=r(38965);e.exports=function(e,t,r){for(var a=-1,o=t.length,l={};++a<o;){var u=t[a],c=n(e,u);r(c,u)&&i(l,s(u,e),c)}return l}},79750:(e,t,r)=>{"use strict";r.d(t,{qg:()=>ev});var n=r(59888),i=r(84286),s=r(88643),a=r(41325),o=r(35508),l=r(97537);class u{validate(e,t){return!0}constructor(){this.subPriority=0}}class c extends u{validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,r){return this.setValue(e,t,this.value,r)}constructor(e,t,r,n,i){super(),this.value=e,this.validateValue=t,this.setValue=r,this.priority=n,i&&(this.subPriority=i)}}class d extends u{set(e,t){return t.timestampIsSet?e:(0,a.w)(e,function(e,t){var r,n;let i="function"==typeof(r=t)&&(null==(n=r.prototype)?void 0:n.constructor)===r?new t(0):(0,a.w)(t,0);return i.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),i.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),i}(e,this.context))}constructor(e,t){super(),this.priority=10,this.subPriority=-1,this.context=e||(e=>(0,a.w)(t,e))}}class h{run(e,t,r,n){let i=this.parse(e,t,r,n);return i?{setter:new c(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(e,t,r){return!0}}class f extends h{parse(e,t,r){switch(t){case"G":case"GG":case"GGG":return r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"});case"GGGGG":return r.era(e,{width:"narrow"});default:return r.era(e,{width:"wide"})||r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"})}}
73set(e,t,r){return t.era=r,e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}constructor(...e){super(...e),this.priority=140,this.incompatibleTokens=["R","u","t","T"]}}var p=r(86337);let m={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}/},g={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 y(e,t){return e?{value:t(e.value),rest:e.rest}:e}function b(e,t){let r=t.match(e);return r?{value:parseInt(r[0],10),rest:t.slice(r[0].length)}:null}function v(e,t){let r=t.match(e);if(!r)return null;if("Z"===r[0])return{value:0,rest:t.slice(1)};let n="+"===r[1]?1:-1,i=r[2]?parseInt(r[2],10):0,s=r[3]?parseInt(r[3],10):0,a=r[5]?parseInt(r[5],10):0;return{value:n*(i*p.s0+s*p.Cg+a*p._m),rest:t.slice(r[0].length)}}function _(e){return b(m.anyDigitsSigned,e)}function w(e,t){switch(e){case 1:return b(m.singleDigit,t);case 2:return b(m.twoDigits,t);case 3:return b(m.threeDigits,t);case 4:return b(m.fourDigits,t);default:return b(RegExp("^\\d{1,"+e+"}"),t)}}function x(e,t){switch(e){case 1:return b(m.singleDigitSigned,t);case 2:return b(m.twoDigitsSigned,t);case 3:return b(m.threeDigitsSigned,t);case 4:return b(m.fourDigitsSigned,t);default:return b(RegExp("^-?\\d{1,"+e+"}"),t)}}function k(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function E(e,t){let r,n=t>0,i=n?t:1-t;if(i<=50)r=e||100;else{let t=i+50;r=e+100*Math.trunc(t/100)-100*(e>=t%100)}return n?r:1-r}function S(e){return e%400==0||e%4==0&&e%100!=0}class A extends h{parse(e,t,r){let n=e=>({year:e,isTwoDigitYear:"yy"===t});switch(t){case"y":return y(w(4,e),n);case"yo":return y(r.ordinalNumber(e,{unit:"year"}),n);default:return y(w(t.length,e),n)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,r){let n=e.getFullYear();if(r.isTwoDigitYear){let t=E(r.year,n);return e.setFullYear(t,0,1),e.setHours(0,0,0,0),e}let i="era"in t&&1!==t.era?1-r.year:r.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"]}}var O=r(57125),C=r(13321);class T extends h{parse(e,t,r){let n=e=>({year:e,isTwoDigitYear:"YY"===t});switch(t){case"Y":return y(w(4,e),n);case"Yo":return y(r.ordinalNumber(e,{unit:"year"}),n);default:return y(w(t.length,e),n)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,r,n){let i=(0,O.h)(e,n);if(r.isTwoDigitYear){let t=E(r.year,i);return e.setFullYear(t,0,n.firstWeekContainsDate),e.setHours(0,0,0,0),(0,C.k)(e,n)}let s="era"in t&&1!==t.era?1-r.year:r.year;return e.setFullYear(s,0,n.firstWeekContainsDate),e.setHours(0,0,0,0),(0,C.k)(e,n)}constructor(...e){super(...e),this.priority=130,this.incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]}}var I=r(4010);class D extends h{parse(e,t){return"R"===t?x(4,e):x(t.length,e)}set(e,t,r){let n=(0,a.w)(e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),(0,I.b)(n)}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 j extends h{parse(e,t){return"u"===t?x(4,e):x(t.length,e)}set(e,t,r){return e.setFullYear(r,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 R extends h{parse(e,t,r){switch(t){case"Q":case"QQ":return w(t.length,e);case"Qo":return r.ordinalNumber(e,{unit:"quarter"});case"QQQ":return r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(e,{width:"narrow",context:"formatting"});default:return r.quarter(e,{width:"wide",context:"formatting"})||r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,r){return e.setMonth((r-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 N extends h{parse(e,t,r){switch(t){case"q":case"qq":return w(t.length,e);case"qo":return r.ordinalNumber(e,{unit:"quarter"});case"qqq":return r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(e,{width:"narrow",context:"standalone"});default:return r.quarter(e,{width:"wide",context:"standalone"})||r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,r){return e.setMonth((r-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 $ extends h{parse(e,t,r){let n=e=>e-1;switch(t){case"M":return y(b(m.month,e),n);case"MM":return y(w(2,e),n);case"Mo":return y(r.ordinalNumber(e,{unit:"month"}),n);case"MMM":return r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(e,{width:"narrow",context:"formatting"});default:return r.month(e,{width:"wide",context:"formatting"})||r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,r){return e.setMonth(r,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 M extends h{parse(e,t,r){let n=e=>e-1;switch(t){case"L":return y(b(m.month,e),n);case"LL":return y(w(2,e),n);case"Lo":return y(r.ordinalNumber(e,{unit:"month"}),n);case"LLL":return r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(e,{width:"narrow",context:"standalone"});default:return r.month(e,{width:"wide",context:"standalone"})||r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,r){return e.setMonth(r,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"]}}var F=r(62247);class P extends h{parse(e,t,r){switch(t){case"w":return b(m.week,e);case"wo":return r.ordinalNumber(e,{unit:"week"});default:return w(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,r,n){return(0,C.k)(function(e,t,r){let n=(0,l.a)(e,null==r?void 0:r.in),i=(0,F.N)(n,r)-t;return n.setDate(n.getDate()-7*i),(0,l.a)(n,null==r?void 0:r.in)}(e,r,n),n)}constructor(...e){super(...e),this.priority=100,this.incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]}}var L=r(3585);class z extends h{parse(e,t,r){switch(t){case"I":return b(m.week,e);case"Io":return r.ordinalNumber(e,{unit:"week"});default:return w(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,r){return(0,I.b)(function(e,t,r){let n=(0,l.a)(e,void 0),i=(0,L.s)(n,void 0)-t;return n.setDate(n.getDate()-7*i),n}(e,r))}constructor(...e){super(...e),this.priority=100,this.incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]}}let q=[31,28,31,30,31,30,31,31,30,31,30,31],U=[31,29,31,30,31,30,31,31,30,31,30,31];class B extends h{parse(e,t,r){switch(t){case"d":return b(m.date,e);case"do":return r.ordinalNumber(e,{unit:"date"});default:return w(t.length,e)}}validate(e,t){let r=S(e.getFullYear()),n=e.getMonth();return r?t>=1&&t<=U[n]:t>
73=1&&t<=q[n]}set(e,t,r){return e.setDate(r),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 V extends h{parse(e,t,r){switch(t){case"D":case"DD":return b(m.dayOfYear,e);case"Do":return r.ordinalNumber(e,{unit:"date"});default:return w(t.length,e)}}validate(e,t){return S(e.getFullYear())?t>=1&&t<=366:t>=1&&t<=365}set(e,t,r){return e.setMonth(0,r),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 H=r(91864);function G(e,t,r){var n,i,s,a,u,c,d,h;let f=(0,o.q)(),p=null!=(h=null!=(d=null!=(c=null!=(u=null==r?void 0:r.weekStartsOn)?u:null==r||null==(i=r.locale)||null==(n=i.options)?void 0:n.weekStartsOn)?c:f.weekStartsOn)?d:null==(a=f.locale)||null==(s=a.options)?void 0:s.weekStartsOn)?h:0,m=(0,l.a)(e,null==r?void 0:r.in),g=m.getDay(),y=7-p,b=t<0||t>6?t-(g+y)%7:((t%7+7)%7+y)%7-(g+y)%7;return(0,H.f)(m,b,r)}class W extends h{parse(e,t,r){switch(t){case"E":case"EE":case"EEE":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,r,n){return(e=G(e,r,n)).setHours(0,0,0,0),e}constructor(...e){super(...e),this.priority=90,this.incompatibleTokens=["D","i","e","c","t","T"]}}class Z extends h{parse(e,t,r,n){let i=e=>{let t=7*Math.floor((e-1)/7);return(e+n.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return y(w(t.length,e),i);case"eo":return y(r.ordinalNumber(e,{unit:"day"}),i);case"eee":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"eeeee":return r.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,r,n){return(e=G(e,r,n)).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 Y extends h{parse(e,t,r,n){let i=e=>{let t=7*Math.floor((e-1)/7);return(e+n.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return y(w(t.length,e),i);case"co":return y(r.ordinalNumber(e,{unit:"day"}),i);case"ccc":return r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});case"ccccc":return r.day(e,{width:"narrow",context:"standalone"});case"cccccc":return r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});default:return r.day(e,{width:"wide",context:"standalone"})||r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,r,n){return(e=G(e,r,n)).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 K extends h{parse(e,t,r){let n=e=>0===e?7:e;switch(t){case"i":case"ii":return w(t.length,e);case"io":return r.ordinalNumber(e,{unit:"day"});case"iii":return y(r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),n);case"iiiii":return y(r.day(e,{width:"narrow",context:"formatting"}),n);case"iiiiii":return y(r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),n);default:return y(r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),n)}}validate(e,t){return t>=1&&t<=7}set(e,t,r){return(e=function(e,t,r){let n=(0,l.a)(e,void 0),i=function(e,t){let r=(0,l.a)(e,null==t?void 0:t.in).getDay();return 0===r?7:r}(n,void 0);return(0,H.f)(n,t-i,r)}(e,r)).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 J extends h{parse(e,t,r){switch(t){case"a":case"aa":case"aaa":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,r){return e.setHours(k(r),0,0,0),e}constructor(...e){super(...e),this.priority=80,this.incompatibleTokens=["b","B","H","k","t","T"]}}
73class X extends h{parse(e,t,r){switch(t){case"b":case"bb":case"bbb":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,r){return e.setHours(k(r),0,0,0),e}constructor(...e){super(...e),this.priority=80,this.incompatibleTokens=["a","B","H","k","t","T"]}}class Q extends h{parse(e,t,r){switch(t){case"B":case"BB":case"BBB":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,r){return e.setHours(k(r),0,0,0),e}constructor(...e){super(...e),this.priority=80,this.incompatibleTokens=["a","b","t","T"]}}class ee extends h{parse(e,t,r){switch(t){case"h":return b(m.hour12h,e);case"ho":return r.ordinalNumber(e,{unit:"hour"});default:return w(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,r){let n=e.getHours()>=12;return n&&r<12?e.setHours(r+12,0,0,0):n||12!==r?e.setHours(r,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 et extends h{parse(e,t,r){switch(t){case"H":return b(m.hour23h,e);case"Ho":return r.ordinalNumber(e,{unit:"hour"});default:return w(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,r){return e.setHours(r,0,0,0),e}constructor(...e){super(...e),this.priority=70,this.incompatibleTokens=["a","b","h","K","k","t","T"]}}class er extends h{parse(e,t,r){switch(t){case"K":return b(m.hour11h,e);case"Ko":return r.ordinalNumber(e,{unit:"hour"});default:return w(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,r){return e.getHours()>=12&&r<12?e.setHours(r+12,0,0,0):e.setHours(r,0,0,0),e}constructor(...e){super(...e),this.priority=70,this.incompatibleTokens=["h","H","k","t","T"]}}class en extends h{parse(e,t,r){switch(t){case"k":return b(m.hour24h,e);case"ko":return r.ordinalNumber(e,{unit:"hour"});default:return w(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,r){return e.setHours(r<=24?r%24:r,0,0,0),e}constructor(...e){super(...e),this.priority=70,this.incompatibleTokens=["a","b","h","H","K","t","T"]}}class ei extends h{parse(e,t,r){switch(t){case"m":return b(m.minute,e);case"mo":return r.ordinalNumber(e,{unit:"minute"});default:return w(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,r){return e.setMinutes(r,0,0),e}constructor(...e){super(...e),this.priority=60,this.incompatibleTokens=["t","T"]}}class es extends h{parse(e,t,r){switch(t){case"s":return b(m.second,e);case"so":return r.ordinalNumber(e,{unit:"second"});default:return w(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,r){return e.setSeconds(r,0),e}constructor(...e){super(...e),this.priority=50,this.incompatibleTokens=["t","T"]}}class ea extends h{parse(e,t){return y(w(t.length,e),e=>Math.trunc(e*Math.pow(10,-t.length+3)))}set(e,t,r){return e.setMilliseconds(r),e}constructor(...e){super(...e),this.priority=30,this.incompatibleTokens=["t","T"]}}var eo=r(33241);class el extends h{parse(e,t){switch(t){case"X":return v(g.basicOptionalMinutes,e);case"XX":return v(g.basic,e);case"XXXX":return v(g.basicOptionalSeconds,e);case"XXXXX":return v(g.extendedOptionalSeconds,e);default:return v(g.extended,e)}}set(e,t,r){return t.timestampIsSet?e:(0,a.w)(e,e.getTime()-(0,eo.G)(e)-r)}constructor(...e){super(...e),this.priority=10,this.incompatibleTokens=["t","T","x"]}}class eu extends h{parse(e,t){switch(t){case"x":return v(g.basicOptionalMinutes,e);case"xx":return v(g.basic,e);case"xxxx":return v(g.basicOptionalSeconds,e);case"xxxxx":return v(g.extendedOptionalSeconds,e);default:return v(g.extended,e)}}set(e,t,r){return t.timestampIsSet?e:(0,a.w)(e,e.getTime()-(0,eo.G)(e)-r)}constructor(...e){super(...e),this.priority=10,this.incompatibleTokens=["t","T","X"]}}class ec extends h{parse(e){return _(e)}set(e,t,r){return[(0,a.w)(e,1e3*r),{timestampIsSet:!0}]}constructor(...e){super(...e),this.priority=40,this.incompatibleTokens="*"}}class ed extends h{parse(e){return _(e)}set(e,t,r){return[(0,a.w)(e,r),{timestampIsSet:!0}]}constructor(...e){super(...e),this.priority=20,this.incompatibleTokens="*"}}let eh={G:new f,y:new A,Y:new T,R:new D,u:new j,Q:new R,q:new N,M:new $,L:new M,w:new P,I:new z,d:new B,D:new V,E:new W,e:new Z,c:new Y,i:new K,a:new J,b:new X,B:new Q,h:new ee,H:new et,K:new er,k:new en,m:new ei,s:new es,S:new ea,X:new el,x:new eu,t:new ec,T:new ed},ef=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ep=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,em=/^'([^]*?)'?$/,eg=/''/g,ey=/\S/,eb=/[a-zA-Z]/;function ev(e,t,r,u){var c,h,f,p,m,g,y,b,v,_,w,x,k,E,S,A,O,C;let T=()=>(0,a.w)((null==u?void 0:u.in)||r,NaN),I=Object.assign({},(0,o.q)()),D=null!=(_=null!=(v=null==u?void 0:u.locale)?v:I.locale)?_:n.c,j=null!=(E=null!=(k=null!=(x=null!=(w=null==u?void 0:u.firstWeekContainsDate)?w:null==u||null==(h=u.locale)||null==(c=h.options)?void 0:c.firstWeekContainsDate)?x:I.firstWeekContainsDate)?k:null==(p=I.locale)||null==(f=p.options)?void 0:f.firstWeekContainsDate)?E:1,R=null!=(C=null!=(O=null!=(A=null!=(S=null==u?void 0:u.weekStartsOn)?S:null==u||null==(g=u.locale)||null==(m
73=g.options)?void 0:m.weekStartsOn)?A:I.weekStartsOn)?O:null==(b=I.locale)||null==(y=b.options)?void 0:y.weekStartsOn)?C:0;if(!t)return e?T():(0,l.a)(r,null==u?void 0:u.in);let N={firstWeekContainsDate:j,weekStartsOn:R,locale:D},$=[new d(null==u?void 0:u.in,r)],M=t.match(ep).map(e=>{let t=e[0];return t in i.m?(0,i.m[t])(e,D.formatLong):e}).join("").match(ef),F=[];for(let r of M){!(null==u?void 0:u.useAdditionalWeekYearTokens)&&(0,s.xM)(r)&&(0,s.Ss)(r,t,e),!(null==u?void 0:u.useAdditionalDayOfYearTokens)&&(0,s.ef)(r)&&(0,s.Ss)(r,t,e);let n=r[0],i=eh[n];if(i){let{incompatibleTokens:t}=i;if(Array.isArray(t)){let e=F.find(e=>t.includes(e.token)||e.token===n);if(e)throw RangeError("The format string mustn't contain `".concat(e.fullToken,"` and `").concat(r,"` at the same time"))}else if("*"===i.incompatibleTokens&&F.length>0)throw RangeError("The format string mustn't contain `".concat(r,"` and any other token at the same time"));F.push({token:n,fullToken:r});let s=i.run(e,r,D.match,N);if(!s)return T();$.push(s.setter),e=s.rest}else{if(n.match(eb))throw RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===r?r="'":"'"===n&&(r=r.match(em)[1].replace(eg,"'")),0!==e.indexOf(r))return T();e=e.slice(r.length)}}if(e.length>0&&ey.test(e))return T();let P=$.map(e=>e.priority).sort((e,t)=>t-e).filter((e,t,r)=>r.indexOf(e)===t).map(e=>$.filter(t=>t.priority===e).sort((e,t)=>t.subPriority-e.subPriority)).map(e=>e[0]),L=(0,l.a)(r,null==u?void 0:u.in);if(isNaN(+L))return T();let z={};for(let e of P){if(!e.validate(L,N))return T();let t=e.set(L,z,N);Array.isArray(t)?(L=t[0],Object.assign(z,t[1])):L=t}return L}},79930:(e,t,r)=>{"use strict";function n(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}r.d(t,{A:()=>n}),n.displayName="json",n.aliases=["webmanifest"]},80394:(e,t,r)=>{var n=r(77180),i=r(10778);e.exports=function(e){return i(n(e).toLowerCase())}},80575:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(41325);function i(e){return(0,n.w)(e,Date.now())}},80585:(e,t,r)=>{var n=r(63943),i=r(58176),s=r(99827),a=r(65030),o=r(42725),l=r(12915);e.exports=function(e){return i(function(t){var r=t.length,i=r,u=n.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 n([],!0)}for(i=d?i:r;++i<r;){var h=a(c=t[i]),f="wrapper"==h?s(c):void 0;d=f&&l(f[0])&&424==f[1]&&!f[4].length&&1==f[9]?d[a(f[0])].apply(d,f[3]):1==c.length&&l(c)?d[h]():d.thru(c)}return function(){var e=arguments,n=e[0];if(d&&1==e.length&&o(n))return d.plant(n).value();for(var i=0,s=r?t[i].apply(this,e):n;++i<r;)s=t[i].call(this,s);return s}})}},80597:(e,t,r)=>{var n=r(37403),i=r(76159),s=r(83141),a=r(37137),o=r(84502),l=r(79440),u=r(31749),c=r(61085),d=r(69530),h=r(32746),f=r(20481),p=r(7117),m=r(54661),g=r(18559),y=r(10687),b=r(42725),v=r(34454),_=r(29158),w=r(36383),x=r(30576),k=r(15104),E=r(61459),S="[object Arguments]",A="[object Function]",O="[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[O]=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,r,T,I,D,j){var R,N=1&r,$=2&r,M=4&r;if(T&&(R=D?T(t,I,D,j):T(t)),void 0!==R)return R;if(!w(t))return t;var F=b(t);if(F){if(R=m(t),!N)return u(t,R)}else{var P=p(t),L=P==A||"[object GeneratorFunction]"==P;if(v(t))return l(t,N);if(P==O||P==S||L&&!D){if(R=$||L?{}:y(t),!N)return $?d(t,o(R,t)):c(t,a(R,t))}else{if(!C[P])return D?t:{};R=g(t,P,N)}}j||(j=new n);var z=j.get(t);if(z)return z;j.set(t,R),x(t)?t.forEach(function(n){R.add(e(n,r,T,n,t,j))}):_(t)&&t.forEach(function(n,i){R.set(i,e(n,r,T,i,t,j))});var q=M?$?f:h:$?E:k,U=F?void 0:q(t);return i(U||t,function(n,i){U&&(n=t[i=n]),s(R,i,e(n,r,T,i,t,j))}),R}},80636: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>
73=this.max){let e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}e.exports=t},80880:(e,t,r)=>{var n=r(58516),i=r(57201),s=r(79624),a=r(20481);e.exports=function(e,t){if(null==e)return{};var r=n(a(e),function(e){return[e]});return t=i(t),s(e,r,function(e,r){return t(e,r[0])})}},80984:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,s=[];++r<n;){var a=e[r];t(a,r,e)&&(s[i++]=a)}return s}},81593:(e,t,r)=>{"use strict";r.d(t,{RK:()=>f});var n=r(38562),i=r(30044),s=r(60266);let a={textDecoration:"underline"},o=(e,t)=>`[@portabletext/react] Unknown ${e}, specify a component for it in the \`components.${t}\` prop`,l=e=>o(`block type "${e}"`,"types");function u(e){console.warn(e)}let c={display:"none"},d={types:{},block:{normal:({children:e})=>(0,n.jsx)("p",{children:e}),blockquote:({children:e})=>(0,n.jsx)("blockquote",{children:e}),h1:({children:e})=>(0,n.jsx)("h1",{children:e}),h2:({children:e})=>(0,n.jsx)("h2",{children:e}),h3:({children:e})=>(0,n.jsx)("h3",{children:e}),h4:({children:e})=>(0,n.jsx)("h4",{children:e}),h5:({children:e})=>(0,n.jsx)("h5",{children:e}),h6:({children:e})=>(0,n.jsx)("h6",{children:e})},marks:{em:({children:e})=>(0,n.jsx)("em",{children:e}),strong:({children:e})=>(0,n.jsx)("strong",{children:e}),code:({children:e})=>(0,n.jsx)("code",{children:e}),underline:({children:e})=>(0,n.jsx)("span",{style:a,children:e}),"strike-through":({children:e})=>(0,n.jsx)("del",{children:e}),link:({children:e,value:t})=>(0,n.jsx)("a",{href:t?.href,children:e})},list:{number:({children:e})=>(0,n.jsx)("ol",{children:e}),bullet:({children:e})=>(0,n.jsx)("ul",{children:e})},listItem:({children:e})=>(0,n.jsx)("li",{children:e}),hardBreak:()=>(0,n.jsx)("br",{}),unknownType:({value:e,isInline:t})=>{let r=l(e._type);return(0,n.jsx)(t?"span":"div",{style:c,children:r})},unknownMark:({markType:e,children:t})=>(0,n.jsx)("span",{className:`unknown__pt__mark__${e}`,children:t}),unknownList:({children:e})=>(0,n.jsx)("ul",{children:e}),unknownListItem:({children:e})=>(0,n.jsx)("li",{children:e}),unknownBlockStyle:({children:e})=>(0,n.jsx)("p",{children:e})};function h(e,t,r){let n=t[r],i=e[r];return"function"==typeof n||n&&"function"==typeof i?n:n?{...i,...n}:i}function f({value:e,components:t,listNestingMode:r,onMissingComponent:a=u}){let o=a||g,l;l=Array.isArray(e)?e:null==e?[]:[e];let c=(0,i.iS)(l,r||i.mn),f=(0,s.useMemo)(()=>t?function(e,t){let{block:r,list:n,listItem:i,marks:s,types:a,...o}=t;return{...e,block:h(e,t,"block"),list:h(e,t,"list"),listItem:h(e,t,"listItem"),marks:h(e,t,"marks"),types:h(e,t,"types"),...o}}(d,t):d,[t]),m=(0,s.useMemo)(()=>p(f,o),[f,o]);return(0,n.jsx)(n.Fragment,{children:c.map((e,t)=>m({node:e,index:t,isInline:!1,renderNode:m}))})}let p=(e,t)=>function r(s){var a,u,c,d,h,f,p,g;let y,b,{node:v,index:_,isInline:w}=s,x=v._key||`node-${_}`;return(0,i.zp)(v)?function(i,s,a){let l=i.children.map((e,t)=>r({node:e._key?e:{...e,_key:`li-${s}-${t}`},index:t,isInline:!1,renderNode:r})),u=e.list,c=("function"==typeof u?u:u[i.listItem])||e.unknownList;if(c===e.unknownList){let e=i.listItem||"bullet";t(o(`list style "${e}"`,"list"),{nodeType:"listStyle",type:e})}return(0,n.jsx)(c,{value:i,index:s,isInline:!1,renderNode:r,children:l},a)}(v,_,x):(0,i.n2)(v)?function(i,s,a){let l=m({node:i,index:s,isInline:!1,renderNode:r}),u=e.listItem,c=("function"==typeof u?u:u[i.listItem])||e.unknownListItem;if(c===e.unknownListItem){let e=i.listItem||"bullet";t(o(`list item style "${e}"`,"listItem"),{type:e,nodeType:"listItemStyle"})}let d=l.children;if(i.style&&"normal"!==i.style){let{listItem:e,...t}=i;d=r({node:t,index:s,isInline:!1,renderNode:r})}return(0,n.jsx)(c,{value:i,index:s,isInline:!1,renderNode:r,children:d},a)}(v,_,x):(0,i.tO)(v)?function(s,a,l){let{markDef:u,markType:c,markKey:d}=s,h=e.marks[c]||e.unknownMark,f=s.children.map((e,t)=>r({node:e,index:t,isInline:!0,renderNode:r}));return h===e.unknownMark&&t(o(`mark type "${c}"`,"marks"),{nodeType:"mark",type:c}),(0,n.jsx)(h,{text:(0,i.fg)(s),value:u,markType:c,markKey:d,renderNode:r,children:f},l)}(v,0,x):v._type in e.types?(a=v,u=_,c=x,d=w,(y=e.types[a._type])?(0,n.jsx)(y,{value:a,isInline:d,index:u,renderNode:r},c):null):(0,i.IG)(v)?function(i,s,a,l){let{_key:u,...c}=m({node:i,index:s,isInline:l,renderNode:r}),d=c.node.style||"normal",h=("function"==typeof e.block?e.block:e.block[d])||e.unknownBlockStyle;return h===e.unknownBlockStyle&&t(o(`block style "${d}"`,"block"),{nodeType:"blockStyle",type:d}),(0,n.jsx)(h,{...c,value:c.node,renderNode:r},a)}(v,_,x,w):(0,i.YA)(v)?function(t,r){if("\n"===t.text){let t=e.hardBreak;return t?(0,n.jsx)(t,{},r):"\n"}return t.text}(v,x):(h=v,f=_,p=x,g=w,t(l(h._type),{nodeType:"block",type:h._type}),b=e.unknownType,(0,n.jsx)(b,{value:h,isInline:g,index:f,renderNode:r},p))};function m(e){let{node:t,index:r,isInline:n,renderNode:s}=e,a=(0,i.Pq)(t).map((e,t)=>s({node:e,isInline:!0,index:t,renderNode:s}));return{_key:t._key||`block-${r}`,children:a,index:r,isInline:n,node:t}}function g(){}},81700:(e,t,r)=>{var n=r(90224),i=r(15104);e.exports=function(e){for(var t=i(e),r=t.length;r--;){var s=t[r],a=e[s];t[r]=[s,a,n(a)]}return t}},81976:(e,t,r)=>{var n=r(38965),i=r(19528),s=r(42725),a=r(72675),o=r(51356),l=r(46939);e.exports=function(e,t,r){t=n(t,e);for(var u=-1,c=t.length,d=!1;++u<c;){var h=l(t[u]);if(!(d=null!=e&&r(e,h)))break;e=e[h]}return d||++u!=c?d:!!(c=null==e?0:e.length)&&o(c)&&a(h,c)&&(s(e)||i(e))}},82159:(e,t,r)=>{"use strict";let n=r(24559);e.exports=(e,t)=>e.sort((e,r)=>n(e,r,t))},82502:(e,t,r)=>{var n=r(4890),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,s=/\\(\\)?/g;e.exports=n(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,function(e,r,n,i){t.push(n?i.replace(s,"$1"):r||e)}),t})},82549:(e,t,r)=>{var n=r(23078);e.exports=function(e){for(var t=-1,r=null==e?0:e.length,i={};++t<r;){var s=e[t];n(i,s[0],s[1])}return i}},82628:(e,t,r)=>{"use strict";var n=r(37811);e.exports="object"==typeof n&&n.env&&n.env.NODE_DEBUG&&/\bsemver\b/i.test(n.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{}},82730:(e,t,r)=>{"use strict";r.d(t,{S8:()=>a,cd:()=>function e(t,r=3,n=102400){let i=a(t,r);return~-encodeURI(JSON.stringify(i)).split(/%..|./).length>n?e(t,r-1,n):i}});var n=r(28077),i=r(33806),s=r(15840);function a(e,t=100,r=Infinity){try{return function e(t,r,a=Infinity,o=Infinity,l=function(){let e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(r){if(e)return!!t.has(r)||(t.add(r),!1);for(let e=0;e<t.length;e++)if(t[e]===r)return!0;return t.push(r),!1},function(r){if(e)t.delete(r);else for(let e=0;e<t.length;e++)if(t[e]===r){t.splice(e,1);break}}]}()){let[u,c]=l;if(null==r||["boolean","string"].includes(typeof r)||"number"==typeof r&&Number.isFinite(r))return r;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,n.L2)(t))return"[VueViewModel]";if((0,n.mE)(t))return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${(0,s.qQ)(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;let r=function(e){let t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);if(/^HTML(\w*)Element$/.test(r))return`[HTMLElement: ${r}]`;return`[object ${r}]`}catch(e){return`**non-serializable** (${e})`}}(t,r);if(!d.startsWith("[object "))return d;if(r.__sentry_skip_normalization__)return r;let h="number"==typeof r.__sentry_override_normalization_depth__?r.__sentry_override_normalization_depth__:a;if(0===h)return d.replace("object ","");if(u(r))return"[Circular ~]";if(r&&"function"==typeof r.toJSON)try{let t=r.toJSON();return e("",t,h-1,o,l)}catch(e){}let f=Array.isArray(r)?[]:{},p=0,m=(0,i.W4)(r);for(let t in m){if(!Object.prototype.hasOwnProperty.call(m,t))continue;if(p>=o){f[t]="[MaxProperties ~]";break}let r=m[t];f[t]=e(t,r,h-1,o,l),p++}return c(r),f}("",e,t,r)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}},82762:(e,t,r)=>{"use strict";r.d(t,{h:()=>a,p:()=>s});var n=r(60266);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")}(),s=function(e,t){let r=Symbol.for(e);return typeof document>"u"?(0,n.createContext)(null):(i[r]=i[r]??(0,n.createContext)(null),i[r])}("@portabletext/editor/context/editor",null);function a(){let e=n.useContext(s);if(!e)throw Error("No Editor set. Use EditorProvider to set one.");return e}},83104:(e,t,r)=>{var n=r(99674),i=r(41194),s=r(72675),a=r(36383);e.exports=function(e,t,r){if(!a(r))return!1;var o=typeof t;return("number"==o?!!(i(r)&&s(t,r.length)):"string"==o&&t in r)&&n(r[t],e)}},83141:(e,t,r)=>{var n=r(23078),i=r(99674),s=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var a=e[t];s.call(e,t)&&i(a,r)&&(void 0!==r||t in e)||n(e,t,r)}},83511:(e,t,r)=>{"use strict";let n=r(54108),i=r(24570),s=r(98520),a=r(57923),o=r(42838),l=r(99247),u=r(3244),c=r(98057),d=r(19784),h=r(67072),f=r(22124),p=r(64967),m=r(75369),g=r(43166),y=r(74102),b=r(27609),v=r(24559),_=r(82159),w=r(27335),x=r
73(7700),k=r(5715),E=r(4165),S=r(34897),A=r(9783),O=r(72458),C=r(67017),T=r(8946),I=r(97504),D=r(27353),j=r(38576),R=r(19057),N=r(23938),$=r(98352),M=r(28421),F=r(90830),P=r(891),L=r(20559),z=r(51138),q=r(66850);e.exports={parse:o,valid:l,clean:u,inc:c,diff:d,major:h,minor:f,patch:p,prerelease:m,compare:g,rcompare:y,compareLoose:b,compareBuild:v,sort:_,rsort:w,gt:x,lt:k,eq:E,neq:S,gte:A,lte:O,cmp:C,coerce:T,Comparator:I,Range:D,satisfies:j,toComparators:R,maxSatisfying:N,minSatisfying:$,minVersion:M,validRange:F,outside:P,gtr:L,ltr:z,intersects:q,simplifyRange:r(95323),subset:r(12714),SemVer:s,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,RELEASE_TYPES:i.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}},83923:(e,t,r)=>{var n=r(16982),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return i.call(t,e)?t[e]:void 0}},84248:(e,t,r)=>{var n=r(57201),i=r(93041);e.exports=function(e,t){return e&&e.length?i(e,n(t,2)):[]}},84286:(e,t,r)=>{"use strict";r.d(t,{m:()=>s});let n=(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=(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"})}},s={p:i,P:(e,t)=>{let r,s=e.match(/(P+)(p+)?/)||[],a=s[1],o=s[2];if(!o)return n(e,t);switch(a){case"P":r=t.dateTime({width:"short"});break;case"PP":r=t.dateTime({width:"medium"});break;case"PPP":r=t.dateTime({width:"long"});break;default:r=t.dateTime({width:"full"})}return r.replace("{{date}}",n(a,t)).replace("{{time}}",i(o,t))}}},84322:(e,t,r)=>{var n=r(12561);e.exports=n&&new n},84382:(e,t,r)=>{var n=r(7117),i=r(20232);e.exports=function(e){return i(e)&&"[object Map]"==n(e)}},84472:(e,t,r)=>{"use strict";r.d(t,{S:()=>s});var n=r(84841),i=r(58558);function s(e,t){return(0,n.N)((0,i.S)(e,t,arguments.length>=2,!0))}},84502:(e,t,r)=>{var n=r(73567),i=r(61459);e.exports=function(e,t){return e&&n(t,i(t),e)}},85094:(e,t,r)=>{"use strict";r.d(t,{FN:()=>i,dU:()=>n}),r(39443);let n=e=>{let{transform:t}=e;return{...t,y:0}},i=e=>{let{transform:t}=e;return{...t,x:0}}},85527:e=>{e.exports=function(){return!1}},85598:(e,t,r)=>{var n=r(16982);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},85611:(e,t,r)=>{"use strict";r.d(t,{H:()=>p});var n=r(25220),i=r(28077),s=r(87865),a=r(2541),o=r(31144),l=r(29060),u=r(36017),c=r(33806);let d="_sentrySpan";function h(e,t){t?(0,c.my)(e,d,t):delete e[d]}class f{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,o.el)(),spanId:(0,o.ZF)()}}clone(){let e=new f;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,h(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,n.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,[r,n]=t instanceof p?[t.getScopeData(),t.getRequestSession()]:(0,i.Qd)(t)?[e,e.requestSession]:[],{tags:s,extra:a,user:o,contexts:l,level:u,fingerprint:c=[],propagationContext:d}=r||{};return this._tags={...this._tags,...s},this._extra={...this._extra,...a},this._contexts={...this._contexts,...l},o&&Object.keys(o).length&&(this._user=o),u&&(this._level=u),c.length&&(this._fingerprint=c),d&&(this._propagationContext=d),n&&(this._requestSession=n),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,h(this,void 0),this._attachments=[],this.setPropagationContext({traceId:(0,o.el)()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let r="number"==typeof t?t:100;if(r<=0)return this;let n={timestamp:(0,l.lu)(),...e};return this._breadcrumbs.push(n),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client&&this._client.re
73cordDroppedEvent("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,o.ZF)(),...e},this}getPropagationContext(){return this._propagationContext}captureException(e,t){let r=t&&t.event_id?t.event_id:(0,a.eJ)();if(!this._client)return s.vF.warn("No client configured on scope - will not capture exception!"),r;let n=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:n,...t,event_id:r},this),r}captureMessage(e,t,r){let n=r&&r.event_id?r.event_id:(0,a.eJ)();if(!this._client)return s.vF.warn("No client configured on scope - will not capture message!"),n;let i=Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...r,event_id:n},this),n}captureEvent(e,t){let r=t&&t.event_id?t.event_id:(0,a.eJ)();return this._client?this._client.captureEvent(e,{...t,event_id:r},this):s.vF.warn("No client configured on scope - will not capture event!"),r}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}let p=f},85643:(e,t,r)=>{"use strict";r.d(t,{DN:()=>K,N_:()=>_,RZ:()=>v,VK:()=>U,cQ:()=>b,ks:()=>X,nk:()=>R,pg:()=>V,rd:()=>g,s8:()=>J,wE:()=>M});var n=r(38562),i=r(7112),s=r(60266),a=r(61478),o=r(36507),l=r(86021),u=r(283),c=r(79281),d=r(79622),h=r(82549),f=r(86534),p=r(77274),m=r(30734);function g(){let e=(0,s.useContext)(a.zA);if(!e)throw Error("Router: missing context value");return e}function y(e){let t,r,n=(0,i.c)(8),{onClick:s,href:a,target:o,replace:l}=e,u=void 0!==l&&l,{navigateUrl:c}=g();n[0]!==a||n[1]!==c||n[2]!==s||n[3]!==u||n[4]!==o?(t=e=>{e.isDefaultPrevented()||a&&(s&&s(e),!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||0!==e.button)&&(o||(e.preventDefault(),c({path:a,replace:u}))))},n[0]=a,n[1]=c,n[2]=s,n[3]=u,n[4]=o,n[5]=t):t=n[5];let d=t;return n[6]!==d?(r={onClick:d},n[6]=d,n[7]=r):r=n[7],r}function b(e){let t,r,n,s=(0,i.c)(13),{intent:a,onClick:o,params:l,replace:u,target:c,searchParams:d}=e,{resolveIntentLink:h}
73=g();s[0]!==a||s[1]!==l||s[2]!==h||s[3]!==d?(t=h(a,l,d),s[0]=a,s[1]=l,s[2]=h,s[3]=d,s[4]=t):t=s[4];let f=t;s[5]!==f||s[6]!==o||s[7]!==u||s[8]!==c?(r={href:f,onClick:o,replace:u,target:c},s[5]=f,s[6]=o,s[7]=u,s[8]=c,s[9]=r):r=s[9];let{onClick:p}=y(r);return s[10]!==f||s[11]!==p?(n={onClick:p,href:f},s[10]=f,s[11]=p,s[12]=n):n=s[12],n}let v=(0,s.forwardRef)(function(e,t){let r,s,a,o,l,u,c,d=(0,i.c)(18);d[0]!==e?({intent:r,params:s,target:l,searchParams:o,...a}=e,d[0]=e,d[1]=r,d[2]=s,d[3]=a,d[4]=o,d[5]=l):(r=d[1],s=d[2],a=d[3],o=d[4],l=d[5]),d[6]!==r||d[7]!==s||d[8]!==e.onClick||d[9]!==o||d[10]!==l?(u={intent:r,params:s,target:l,onClick:e.onClick,searchParams:o},d[6]=r,d[7]=s,d[8]=e.onClick,d[9]=o,d[10]=l,d[11]=u):u=d[11];let{onClick:h,href:f}=b(u);return d[12]!==f||d[13]!==h||d[14]!==t||d[15]!==a||d[16]!==l?(c=(0,n.jsx)("a",{...a,href:f,onClick:h,ref:t,target:l}),d[12]=f,d[13]=h,d[14]=t,d[15]=a,d[16]=l,d[17]=c):c=d[17],c}),_=(0,s.forwardRef)(function(e,t){let r,s,a,o,l,u,c,d=(0,i.c)(17);d[0]!==e?({onClick:s,href:r,target:l,replace:a,...o}=e,d[0]=e,d[1]=r,d[2]=s,d[3]=a,d[4]=o,d[5]=l):(r=d[1],s=d[2],a=d[3],o=d[4],l=d[5]),d[6]!==r||d[7]!==s||d[8]!==a||d[9]!==l?(u={onClick:s,href:r,target:l,replace:a},d[6]=r,d[7]=s,d[8]=a,d[9]=l,d[10]=u):u=d[10];let{onClick:h}=y(u);return d[11]!==r||d[12]!==h||d[13]!==t||d[14]!==o||d[15]!==l?(c=(0,n.jsx)("a",{...o,onClick:h,href:r,target:l,ref:t}),d[11]=r,d[12]=h,d[13]=t,d[14]=o,d[15]=l,d[16]=c):c=d[16],c}),w=/^[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,r){return{type:"error",node:e,missingKeys:t,unmappableStateKeys:r}}function S(e,t,r,n){return{type:"ok",node:e,matchedState:t,searchParams:r,child:n}}function A(e,t){let r=[...String(e)],n="";for(let e=0;e<r.length;e++){let i=r[e];t.includes(i)?n+=i:n+=encodeURIComponent(i)}return n}let O=d("state-router");function C(e){return`[${e}]`}function T(e){return`"${e}"`}function I(e){return String.fromCharCode(parseInt(e.slice(1),16))}function D(e){return`%${`00${e.charCodeAt(0).toString(16)}`.slice(-2)}`}function j(e=""){let t=decodeURIComponent(e);if(!t)return{};try{var r;return JSON.parse((r=t.replace(/-/g,"+").replace(/_/g,"/"),decodeURIComponent(Array.from(atob(r),D).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,I)).replace(/\//g,"_").replace(/\+/g,"-").replace(/[=]+$/,""):""}function N(e){return e.split(";").reduce((e,t)=>{let[r,n]=t.split("=");return e[decodeURIComponent(r)]=decodeURIComponent(n),e},{})}function $(e){return Object.entries(e).filter(([,e])=>null!=e).map(([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(t)}`).join(";")}let M={create:(e,t,r)=>q(P(e,t,r)),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:N,toPath:$}}},[M.create(":payload",{transform:{payload:{toState:j,toPath:R}}})])])},scope:(e,t,r,n)=>q({...P(t,r,n),scope:e})};function F(e){return Array.isArray(e)||"function"==typeof e?e:e?[e]:[]}function P(e,t,r){return"object"==typeof e?e:Array.isArray(t)||"function"==typeof t||t&&"_isRoute"in t?{path:e,children:F(t)}:r?{path:e,...t,children:F(r)}:{path:e,...t}}let L={};function z(e){return e.split("/").every(e=>!e)}function q(e){let{path:t,scope:r,transform:n,children:i,__unsafe_disableScopedSearchParams:s}=e;if(!t)throw TypeError("Missing path");return{_isRoute:!0,scope:r,__unsafe_disableScopedSearchParams:s,route:function(e){let[t]=e.split("?");return{raw:e,segments:t.split("/").map(x).filter(Boolean)}}(t),children:i||[],transform:n,encode(e){return function(e,t){O("Resolving path from state %o",t);let r=function e(t,r){if(!r)return S(t,{},[]);let{_searchParams:n=[],...i}=(t.scope?r[t.scope]:r)||{},s=t.route.segments.filter(e=>"param"===e.type).map(e=>
73e.name),a=u(i)?Object.keys(i):[],d=l(a,s),h=o(s,d),f=o(a,d);if(h.length>0)return E(t,h,[]);let p=n.map(([e,t])=>[[e],t]),m=c(i,d);if(0===f.length)return S(t,m,p);let g=k(("function"==typeof t.children?t.children(u(i)?i:{}):t.children)||[]);if(f.length>0&&0===g.length)return E(t,[],f);let y=c(i,f),b=g.map(t=>e(t,y)).find(e=>"ok"===e.type);return b?S(t,m,p,b):E(t,[],f)}(e,t);if("error"===r.type){let e=r.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(T).join(", ")}`);let t=r.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(T).join(", ")}`)}let{path:n,searchParams:i}=function e(t){let r=t.matchedState,n=t.node.route.segments.map(e=>{if("dir"===e.type)return e.name;let n=t.node.transform&&t.node.transform[e.name];return n?n.toPath(r[e.name]):r[e.name]}),i=t.child?e(t.child):void 0,s=i?.searchParams?[...t.searchParams,...i.searchParams]:t.searchParams;return{searchParams:function(e,t){let r=e.scope;return r&&!e.__unsafe_disableScopedSearchParams?t.map(([e,t])=>[[r,...e],t]):t}(t.node,s),path:[...n||[],...i?.path||[]]}}(r),s=i.length>0?i.flatMap(([e,t])=>void 0===t?[]:[A(function(e){let[t,...r]=e;return r.length>0?[t,...r.map(C)].join(""):t}(e),"[]"),A(t,"/")].join("=")).join("&"):"";return`/${n.join("/")}${s?`?${s}`:""}`}(this,e)},decode(e){O("resolving state from path %s",e);let[t,r]=e.split("?"),n=function e(t,r,n){var i,s;let a=r.split("/").filter(Boolean),o=t.route.segments.length;if(a.length<o)return null;let l={};if(!t.route.segments.every((e,r)=>{if("dir"===e.type)return e.name===a[r];let n=t.transform&&t.transform[e.name];return l[e.name]=n?n.toState(a[r]):a[r],!0}))return null;let u=a.slice(o),c=null,d="function"==typeof t.children?k(t.children(l)):t.children,h=(i=t.scope,s=n,i?s.map(([e,t])=>[e[0]===i?e.slice(1):e,t]):s);if(d.some(t=>{if(t){let r=t.scope?h.filter(([e])=>t.scope===e[0]):h;return c=e(t,u.join("/"),r)}}),u.length>0&&!c)return null;let f=h.flatMap(([e,t])=>1===e.length?[[e[0],t]]:[]),p={...l,...null===c?{}:c,...f.length>0?{_searchParams:f}:{}};return t.scope?{[t.scope]:p}:p}(this,t,Array.from(new URLSearchParams(r).entries()).map(([e,t])=>[function(e){let t=[],r=0,n=0;for(;r<e.length;){let i=e.indexOf("[",r);if(-1===i){t.push(e.slice(r,e.length));break}if(1===n)throw Error("Nested brackets not supported");n=1,i>r&&(t.push(e.slice(r,i)),r=i);let s=e.indexOf("]",i);if(-1===s){if(1===n)throw Error("Unclosed bracket");break}n=0,t.push(e.slice(r+1,s)),r=s+1}return t}(e),t]));return O("resolved: %o",n||null),n||null},isRoot:z,isNotFound(e){return null===this.decode(e)},getBasePath(){return this.encode(L)},getRedirectBase(e){if(z(e)){let t=this.getBasePath();if(e!==t)return t}return null}}}let U=["perspective","excludedPerspectives","displayInlineChanges"],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 V(e){let t,r,s,o,l,u,c,d,m,g=(0,i.c)(44),{onNavigate:y,router:b,state:v}=e;g[0]!==b||g[1]!==v._searchParams?(t=(e,t,r)=>
73{let[n,i]=Array.isArray(t)?t:[t];return b.encode({intent:e,params:n,payload:i,_searchParams:p({...h((v._searchParams??[]).filter(W)),...h(r??[])})})},g[0]=b,g[1]=v._searchParams,g[2]=t):t=g[2];let _=t;g[3]!==b||g[4]!==v._searchParams?(r=e=>{let t=v._searchParams||[],r=e?._searchParams||[],n=U.reduce((e,n)=>(function(e,t,r){let n=e.filter(([e])=>e!==t);return void 0===r||""==r?n:[...n,[t,r]]})(e,n,Z(r,n)??Z(t,n)),r||[]);return b.encode({...e,_searchParams:n})},g[3]=b,g[4]=v._searchParams,g[5]=r):r=g[5];let w=r;g[6]!==y||g[7]!==w||g[8]!==v?(s=(e,t)=>{let r=B(e)&&!t?e:t||{},n=B(e)?(a=e,o=v,(B(a)?null===a.state?{}:a.state??o:null)??v):e,i=v._searchParams||[],s=r.stickyParams??Object.fromEntries(i.filter(G));var a,o,l,u,c=s;if(Object.keys(c).some(e=>!U.includes(e)))throw Error("One or more parameters are not sticky");let d=(l=n._searchParams||[],(u=s)?[...l.filter(([e])=>!Object.hasOwn(u,e)),...Object.entries(u).filter(e=>void 0!==e[1]).map(e=>[e[0],null===e[1]?"":e[1]])]:l);y({path:w({...n,_searchParams:d}),replace:r.replace})},g[6]=y,g[7]=w,g[8]=v,g[9]=s):s=g[9];let x=s;g[10]!==x?(o=(e,t)=>x({stickyParams:e,...void 0===t?{}:t,state:void 0}),g[10]=x,g[11]=o):o=g[11];let k=o;g[12]!==y||g[13]!==_?(l=(e,t,r)=>{y({path:_(e,t),replace:(void 0===r?{}:r).replace})},g[12]=y,g[13]=_,g[14]=l):l=g[14];let E=l;i:{let e,t,r,n,i;if(!v._searchParams){let e;g[15]!==v?(e=[v,null],g[15]=v,g[16]=e):e=g[16],u=e;break i}g[17]!==v?({_searchParams:e,...t}=v,g[17]=v,g[18]=e,g[19]=t):(e=g[18],t=g[19]),g[20]!==e?(r=f(e,H),g[20]=e,g[21]=r):r=g[21];let[s,a]=r;if(0===s.length){let e;g[22]!==v?(e=[v,null],g[22]=v,g[23]=e):e=g[23],u=e;break i}g[24]!==t||g[25]!==a?(n={...t,_searchParams:a},g[24]=t,g[25]=a,g[26]=n):n=g[26],g[27]!==s||g[28]!==n?(i=[n,s],g[27]=s,g[28]=n,g[29]=i):i=g[29],u=i}let[S,A]=u;g[30]!==A?(c=Object.fromEntries(A||[]),g[30]=A,g[31]=c):c=g[31];let O=c;g[32]!==k||g[33]!==x||g[34]!==E||g[35]!==y||g[36]!==_||g[37]!==w||g[38]!==S||g[39]!==O?(d={navigate:x,navigateIntent:E,navigateStickyParams:k,navigateUrl:y,resolveIntentLink:_,resolvePathFromState:w,state:S,stickyParams:O},g[32]=k,g[33]=x,g[34]=E,g[35]=y,g[36]=_,g[37]=w,g[38]=S,g[39]=O,g[40]=d):d=g[40];let C=d;return g[41]!==e.children||g[42]!==C?(m=(0,n.jsx)(a.zA.Provider,{value:C,children:e.children}),g[41]=e.children,g[42]=C,g[43]=m):m=g[43],m}function H(e){let[t]=e;return U.includes(t)}function G(e){let[t]=e;return U.includes(t)}function W(e){let[t]=e;return U.includes(t)}function Z(e,t){let r=e.find(([e])=>e===t);return r?r[1]:void 0}let Y={};function K(e){let t,r,n,s=(0,i.c)(11),{onClick:a,replace:o,state:l,target:u,toIndex:c}=e,d=void 0!==c&&c;if(l&&d)throw Error("Passing both `state` and `toIndex={true}` as props to StateLink is invalid");l||d||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}=g(),f=d?Y:l||Y;s[0]!==h||s[1]!==f?(t=h(f),s[0]=h,s[1]=f,s[2]=t):t=s[2];let p=t;s[3]!==p||s[4]!==a||s[5]!==o||s[6]!==u?(r={href:p,onClick:a,replace:o,target:u},s[3]=p,s[4]=a,s[5]=o,s[6]=u,s[7]=r):r=s[7];let{onClick:m}=y(r);return s[8]!==p||s[9]!==m?(n={onClick:m,href:p},s[8]=p,s[9]=m,s[10]=n):n=s[10],n}let J=(0,s.forwardRef)(function(e,t){let r,s,a,o,l,u,c,d,h=(0,i.c)(18);h[0]!==e?({onClick:r,replace:s,state:o,target:u,toIndex:l,...a}=e,h[0]=e,h[1]=r,h[2]=s,h[3]=a,h[4]=o,h[5]=l,h[6]=u):(r=h[1],s=h[2],a=h[3],o=h[4],l=h[5],u=h[6]);let f=void 0!==l&&l;h[7]!==r||h[8]!==s||h[9]!==o||h[10]!==u||h[11]!==f?(c={onClick:r,replace:s,state:o,target:u,toIndex:f},h[7]=r,h[8]=s,h[9]=o,h[10]=u,h[11]=f,h[12]=c):c=h[12];let{onClick:p,href:m}=K(c);return h[13]!==m||h[14]!==p||h[15]!==t||h[16]!==a?(d=(0,n.jsx)("a",{...a,href:m,onClick:p,ref:t}),h[13]=m,h[14]=p,h[15]=t,h[16]=a,h[17]=d):d=h[17],d});function X(e){let t,r=(0,i.c)(3),n=void 0===e?m:e,{state:s}=g();return r[0]!==n||r[1]!==s?(t=n(s),r[0]=n,r[1]=s,r[2]=t):t=r[2],t}!function(e){e.displayName||e.name}(e=>e.children(e.router))},85772:(e,t)=>{"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,i=!1,s=void 0;try{for(var a,o=e[Symbol.iterator]();!(n=(a=o.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,s=e}finally{try{n||null==o.return||o.return()}finally{if(i)throw s}}return r}
73(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance")}()}function n(e){return(n="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,r){return t}t.TS=function(e,t,s){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:i;return function e(t,s,a,l){var u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:i,c=Array.isArray(a)?"array":null===a?"null":n(a);return"object"===c?function(t,n,s,a){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:i,u=r(o(t,n,s,a),2),c=u[0],d=u[1];return c?d:Object.keys(s).reduce(function(t,r){return e(t,n,s[r],a.concat(l(s[r],r,s)),l)},d)}(t,s,a,l,u):"array"===c?function(t,n,s,a){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:i,u=r(o(t,n,s,a),2),c=u[0],d=u[1];return c?d:s.reduce(function(t,r,i){return e(t,n,r,a.concat(l(r,i,s)),l)},d)}(t,s,a,l,u):r(o(t,s,a,l),2)[1]}(s,t,e,[],a)};var s={_:"SKIP_MARKER"};function a(e){return[s,e]}function o(e,t,r,n){var i=t(e,r,n);return i===a?[!0,e]:Array.isArray(i)&&i[0]===s?[!0,i[1]]:[!1,i]}},85958:(e,t,r)=>{"use strict";r.d(t,{M:()=>s});var n=r(32785),i=r(51622);let s=(0,n._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:r}=i.jf.document||{},{userAgent:n}=i.jf.navigator||{},s={...e.request&&e.request.headers,...r&&{Referer:r},...n&&{"User-Agent":n}},a={...e.request,...t&&{url:t},headers:s};e.request=a}}))},86021:(e,t,r)=>{var n=r(58516),i=r(43613),s=r(3582),a=r(49999);e.exports=s(function(e){var t=n(e,a);return t.length&&t[0]===e[0]?i(t):[]})},86177:(e,t,r)=>{"use strict";r.d(t,{c:()=>i});var n=r(97537);function i(e,t){let r=(0,n.a)(e,null==t?void 0:t.in);return r.setSeconds(0,0),r}},86197:(e,t,r)=>{var n=r(38965),i=r(30872),s=r(1053),a=r(46939),o=Object.prototype.hasOwnProperty;e.exports=function(e,t){t=n(t,e);var r=-1,l=t.length;if(!l)return!0;for(;++r<l;){var u=a(t[r]);if("__proto__"===u&&!o.call(e,"__proto__")||("constructor"===u||"prototype"===u)&&r<l-1)return!1}var c=s(e,t);return null==c||delete c[a(i(t))]}},86337:(e,t,r)=>{"use strict";r.d(t,{Cg:()=>s,F6:()=>u,Nw:()=>l,_P:()=>c,_m:()=>o,my:()=>n,s0:()=>a,w4:()=>i});let n=6048e5,i=864e5,s=6e4,a=36e5,o=1e3,l=43200,u=1440,c=Symbol.for("constructDateFrom")},86489:e=>{e.exports=function(){}},86496:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},86534:(e,t,r)=>{e.exports=r(54264)(function(e,t,r){e[+!r].push(t)},function(){return[[],[]]})},86623:(e,t,r)=>{var n=r(6261);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},86752:(e,t,r)=>{"use strict";r.d(t,{GP:()=>A});var n=r(59888),i=r(35508),s=r(88693),a=r(97537),o=r(3585),l=r(66420),u=r(62247),c=r(57125);function d(e,t){let r=Math.abs(e).toString().padStart(t,"0");return(e<0?"-":"")+r}let h={y(e,t){let r=e.getFullYear(),n=r>0?r:1-r;return d("yy"===t?n%100:n,t.length)},M(e,t){let r=e.getMonth();return"M"===t?String(r+1):d(r+1,2)},d:(e,t)=>d(e.getDate(),t.length),a(e,t){let r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return"am"===r?"a.m.":"p.m."}},h:(e,t)=>d(e.getHours()%12||12,t.length),H:(e,t)=>d(e.getHours(),t.length),m:(e,t)=>d(e.getMinutes(),t.length),s:(e,t)=>d(e.getSeconds(),t.length),S(e,t){let r=t.length;return d(Math.trunc(e.getMilliseconds()*Math.pow(10,r-3)),t.length)}},f={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},p={G:function(e,t,r){let n=+(e.getFullYear()>0);switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if("yo"===t){let t=e.getFullYear();return r.ordinalNumber(t>0?t:1-t,{unit:"year"})}return h.y(e,t)}
73,Y:function(e,t,r,n){let i=(0,c.h)(e,n),s=i>0?i:1-i;return"YY"===t?d(s%100,2):"Yo"===t?r.ordinalNumber(s,{unit:"year"}):d(s,t.length)},R:function(e,t){return d((0,l.p)(e),t.length)},u:function(e,t){return d(e.getFullYear(),t.length)},Q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return d(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return d(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){let n=e.getMonth();switch(t){case"M":case"MM":return h.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){let n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return d(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){let i=(0,u.N)(e,n);return"wo"===t?r.ordinalNumber(i,{unit:"week"}):d(i,t.length)},I:function(e,t,r){let n=(0,o.s)(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):d(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getDate(),{unit:"date"}):h.d(e,t)},D:function(e,t,r){let n=function(e,t){let r=(0,a.a)(e,void 0);return(0,s.m)(r,function(e,t){let r=(0,a.a)(e,void 0);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}(r))+1}(e);return"Do"===t?r.ordinalNumber(n,{unit:"dayOfYear"}):d(n,t.length)},E:function(e,t,r){let n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){let i=e.getDay(),s=(i-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return d(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){let i=e.getDay(),s=(i-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return d(s,t.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){let n=e.getDay(),i=0===n?7:n;switch(t){case"i":return String(i);case"ii":return d(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){let n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){let n,i=e.getHours();switch(n=12===i?f.noon:0===i?f.midnight:i/12>
73=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,r){let n,i=e.getHours();switch(n=i>=17?f.evening:i>=12?f.afternoon:i>=4?f.morning:f.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),r.ordinalNumber(t,{unit:"hour"})}return h.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getHours(),{unit:"hour"}):h.H(e,t)},K:function(e,t,r){let n=e.getHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):d(n,t.length)},k:function(e,t,r){let n=e.getHours();return(0===n&&(n=24),"ko"===t)?r.ordinalNumber(n,{unit:"hour"}):d(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):h.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getSeconds(),{unit:"second"}):h.s(e,t)},S:function(e,t){return h.S(e,t)},X:function(e,t,r){let n=e.getTimezoneOffset();if(0===n)return"Z";switch(t){case"X":return g(n);case"XXXX":case"XX":return y(n);default:return y(n,":")}},x:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"x":return g(n);case"xxxx":case"xx":return y(n);default:return y(n,":")}},O:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+m(n,":");default:return"GMT"+y(n,":")}},z:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+m(n,":");default:return"GMT"+y(n,":")}},t:function(e,t,r){return d(Math.trunc(e/1e3),t.length)},T:function(e,t,r){return d(+e,t.length)}};function m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e>0?"-":"+",n=Math.abs(e),i=Math.trunc(n/60),s=n%60;return 0===s?r+String(i):r+String(i)+t+d(s,2)}function g(e,t){return e%60==0?(e>0?"-":"+")+d(Math.abs(e)/60,2):y(e,t)}function y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=Math.abs(e);return(e>0?"-":"+")+d(Math.trunc(r/60),2)+t+d(r%60,2)}var b=r(84286),v=r(88643),_=r(9830);let w=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,x=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,k=/^'([^]*?)'?$/,E=/''/g,S=/[a-zA-Z]/;function A(e,t,r){var s,o,l,u,c,d,h,f,m,g,y,A,O,C,T,I,D,j;let R=(0,i.q)(),N=null!=(g=null!=(m=null==r?void 0:r.locale)?m:R.locale)?g:n.c,$=null!=(C=null!=(O=null!=(A=null!=(y=null==r?void 0:r.firstWeekContainsDate)?y:null==r||null==(o=r.locale)||null==(s=o.options)?void 0:s.firstWeekContainsDate)?A:R.firstWeekContainsDate)?O:null==(u=R.locale)||null==(l=u.options)?void 0:l.firstWeekContainsDate)?C:1,M=null!=(j=null!=(D=null!=(I=null!=(T=null==r?void 0:r.weekStartsOn)?T:null==r||null==(d=r.locale)||null==(c=d.options)?void 0:c.weekStartsOn)?I:R.weekStartsOn)?D:null==(f=R.locale)||null==(h=f.options)?void 0:h.weekStartsOn)?j:0,F=(0,a.a)(e,null==r?void 0:r.in);if(!(0,_.f)(F))throw RangeError("Invalid time value");let P=t.match(x).map(e=>{let t=e[0];
73return"p"===t||"P"===t?(0,b.m[t])(e,N.formatLong):e}).join("").match(w).map(e=>{if("''"===e)return{isToken:!1,value:"'"};let t=e[0];if("'"===t)return{isToken:!1,value:function(e){let t=e.match(k);return t?t[1].replace(E,"'"):e}(e)};if(p[t])return{isToken:!0,value:e};if(t.match(S))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});N.localize.preprocessor&&(P=N.localize.preprocessor(F,P));let L={firstWeekContainsDate:$,weekStartsOn:M,locale:N};return P.map(n=>{if(!n.isToken)return n.value;let i=n.value;return(!(null==r?void 0:r.useAdditionalWeekYearTokens)&&(0,v.xM)(i)||!(null==r?void 0:r.useAdditionalDayOfYearTokens)&&(0,v.ef)(i))&&(0,v.Ss)(i,t,String(e)),(0,p[i[0]])(F,i,N.localize,L)}).join("")}},87186:(e,t,r)=>{"use strict";r.d(t,{i:()=>i});var n=r(53355);function i(e){return(0,n.p)(function(t,r){return e<=r})}},87311:(e,t,r)=>{e.exports=r(52850)(r(54313))},87641:(e,t,r)=>{"use strict";r.d(t,{$:()=>a});var n=r(1859),i=r(84841),s=function(e,t){return e.push(t),e};function a(){return(0,i.N)(function(e,t){(0,n.T)(s,[])(e).subscribe(t)})}},87696:(e,t,r)=>{"use strict";let n;r.d(t,{vk:()=>eX,z:()=>e3}),function(e){e.assertEqual=e=>e,e.assertIs=function(e){},e.assertNever=function(e){throw Error()},e.arrayToEnum=e=>{let t={};for(let r of e)t[r]=r;return t},e.getValidEnumValues=t=>{let r=e.objectKeys(t).filter(e=>"number"!=typeof t[t[e]]),n={};for(let e of r)n[e]=t[e];return e.objectValues(n)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},e.find=(e,t)=>{for(let r of e)if(t(r))return r},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(e0||(e0={})),(e1||(e1={})).mergeShapes=(e,t)=>({...e,...t});let i=e0.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),s=e=>{switch(typeof e){case"undefined":return i.undefined;case"string":return i.string;case"number":return isNaN(e)?i.nan:i.number;case"boolean":return i.boolean;case"function":return i.function;case"bigint":return i.bigint;case"symbol":return i.symbol;case"object":if(Array.isArray(e))return i.array;if(null===e)return i.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return i.promise;if("undefined"!=typeof Map&&e instanceof Map)return i.map;if("undefined"!=typeof Set&&e instanceof Set)return i.set;if("undefined"!=typeof Date&&e instanceof Date)return i.date;return i.object;default:return i.unknown}}
73,a=e0.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class o extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let t=e||function(e){return e.message},r={_errors:[]},n=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(n);else if("invalid_return_type"===i.code)n(i.returnTypeError);else if("invalid_arguments"===i.code)n(i.argumentsError);else if(0===i.path.length)r._errors.push(t(i));else{let e=r,n=0;for(;n<i.path.length;){let r=i.path[n];n===i.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(t(i))):e[r]=e[r]||{_errors:[]},e=e[r],n++}}};return n(this),r}toString(){return this.message}get message(){return JSON.stringify(this.issues,e0.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},r=[];for(let n of this.issues)n.path.length>0?(t[n.path[0]]=t[n.path[0]]||[],t[n.path[0]].push(e(n))):r.push(e(n));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}o.create=e=>new o(e);let l=(e,t)=>{let r;switch(e.code){case a.invalid_type:r=e.received===i.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case a.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,e0.jsonStringifyReplacer)}`;break;case a.unrecognized_keys:r=`Unrecognized key(s) in object: ${e0.joinValues(e.keys,", ")}`;break;case a.invalid_union:r="Invalid input";break;case a.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${e0.joinValues(e.options)}`;break;case a.invalid_enum_value:r=`Invalid enum value. Expected ${e0.joinValues(e.options)}, received '${e.received}'`;break;case a.invalid_arguments:r="Invalid function arguments";break;case a.invalid_return_type:r="Invalid function return type";break;case a.invalid_date:r="Invalid date";break;case a.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:e0.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case a.too_small:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case a.too_big:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case a.custom:r="Invalid input";break;case a.invalid_intersection_types:r="Intersection results could not be merged";break;case a.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case a.not_finite:r="Number must be finite";break;default:r=t.defaultError,e0.assertNever(e)}return{message:r}},u=l;function c(){return u}let d=e=>{let{data:t,path:r,errorMaps:n,issueData:i}=e,s=[...r,...i.path||[]],a={...i,path:s},o="";for(let e of n.filter(e=>!!e).slice().reverse())o=e(a,{data:t,defaultError:o}).message;return{...i,path:s,message:i.message||o}};function h(e,t){let r=d({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,c(),l].filter(e=>!!e)});e.common.issues.push(r)}class f{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let r=[];for(let n of t){if("aborted"===n.status)return p;"dirty"===n.status&&e.dirty(),r.push(n.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){let r=[];for(let e of t)r.push({key:await e.key,value:await e.value});return f.mergeObjectSync(e,r)}static mergeObjectSync(e,t){let r={};for(let n of t){let{key:t,value:i}=n;if("aborted"===t.status||"aborted"===i.status)return p;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==i.value||n.alwaysSet)&&(r[t.value]=i.value)}return{status:e.value,value:r}}}let p=Object.freeze({status:"aborted"}),m=e=>({status:"dirty",value:e}),g=e=>
73({status:"valid",value:e}),y=e=>"aborted"===e.status,b=e=>"dirty"===e.status,v=e=>"valid"===e.status,_=e=>"undefined"!=typeof Promise&&e instanceof Promise;!function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:null==e?void 0:e.message}(e2||(e2={}));class w{constructor(e,t,r,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=n}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let x=(e,t)=>{if(v(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new o(e.common.issues);return this._error=t,this._error}}};function k(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:n,description:i}=e;if(t&&(r||n))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(e,t)=>"invalid_type"!==e.code?{message:t.defaultError}:void 0===t.data?{message:null!=n?n:t.defaultError}:{message:null!=r?r:t.defaultError},description:i}}class E{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return s(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:s(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new f,ctx:{common:e.parent.common,data:e.data,parsedType:s(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(_(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){var r;let n={common:{issues:[],async:null!=(r=null==t?void 0:t.async)&&r,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:s(e)},i=this._parseSync({data:e,path:n.path,parent:n});return x(n,i)}async parseAsync(e,t){let r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){let r={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:s(e)},n=this._parse({data:e,path:r.path,parent:r});return x(r,await (_(n)?n:Promise.resolve(n)))}refine(e,t){return this._refinement((r,n)=>{let i=e(r),s=()=>n.addIssue({code:a.custom,..."string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(r):t});return"undefined"!=typeof Promise&&i instanceof Promise?i.then(e=>!!e||(s(),!1)):!!i||(s(),!1)})}refinement(e,t){return this._refinement((r,n)=>!!e(r)||(n.addIssue("function"==typeof t?t(r,n):t),!1))}_refinement(e){return new el({schema:this,typeName:e5.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return eu.create(this,this._def)}nullable(){return ec.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return H.create(this,this._def)}promise(){return eo.create(this,this._def)}or(e){return W.create([this,e],this._def)}and(e){return K.create(this,e,this._def)}transform(e){return new el({...k(this._def),schema:this,typeName:e5.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new ed({...k(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:e5.ZodDefault})}brand(){return new em({typeName:e5.ZodBranded,type:this,...k(this._def)})}catch(e){return new eh({...k(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:e5.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return eg.create(this,e)}readonly(){return ey.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let S=/^c[^\s-]{8,}
73$/i,A=/^[a-z][a-z0-9]*$/,O=/^[0-9A-HJKMNP-TV-Z]{26}$/,C=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,T=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,I=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,D=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,j=e=>{if(e.precision)if(e.offset)return RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`);else return RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}Z$`);if(0===e.precision)if(e.offset)return RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$");else return RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$");return e.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$")};class R extends E{_parse(e){let t;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==i.string){let t=this._getOrReturnCtx(e);return h(t,{code:a.invalid_type,expected:i.string,received:t.parsedType}),p}let r=new f;for(let i of this._def.checks)if("min"===i.kind)e.data.length<i.value&&(h(t=this._getOrReturnCtx(e,t),{code:a.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if("max"===i.kind)e.data.length>i.value&&(h(t=this._getOrReturnCtx(e,t),{code:a.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if("length"===i.kind){let n=e.data.length>i.value,s=e.data.length<i.value;(n||s)&&(t=this._getOrReturnCtx(e,t),n?h(t,{code:a.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):s&&h(t,{code:a.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),r.dirty())}else if("email"===i.kind)T.test(e.data)||(h(t=this._getOrReturnCtx(e,t),{validation:"email",code:a.invalid_string,message:i.message}),r.dirty());else if("emoji"===i.kind)n||(n=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),n.test(e.data)||(h(t=this._getOrReturnCtx(e,t),{validation:"emoji",code:a.invalid_string,message:i.message}),r.dirty());else if("uuid"===i.kind)C.test(e.data)||(h(t=this._getOrReturnCtx(e,t),{validation:"uuid",code:a.invalid_string,message:i.message}),r.dirty());else if("cuid"===i.kind)S.test(e.data)||(h(t=this._getOrReturnCtx(e,t),{validation:"cuid",code:a.invalid_string,message:i.message}),r.dirty());else if("cuid2"===i.kind)A.test(e.data)||(h(t=this._getOrReturnCtx(e,t),{validation:"cuid2",code:a.invalid_string,message:i.message}),r.dirty());else if("ulid"===i.kind)O.test(e.data)||(h(t=this._getOrReturnCtx(e,t),{validation:"ulid",code:a.invalid_string,message:i.message}),r.dirty());else if("url"===i.kind)try{new URL(e.data)}catch(n){h(t=this._getOrReturnCtx(e,t),{validation:"url",code:a.invalid_string,message:i.message}),r.dirty()}else if("regex"===i.kind)i.regex.lastIndex=0,i.regex.test(e.data)||(h(t=this._getOrReturnCtx(e,t),{validation:"regex",code:a.invalid_string,message:i.message}),r.dirty());else if("trim"===i.kind)e.data=e.data.trim();else if("includes"===i.kind)e.data.includes(i.value,i.position)||(h(t=this._getOrReturnCtx(e,t),{code:a.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),r.dirty());else if("toLowerCase"===i.kind)e.data=e.data.toLowerCase();else if("toUpperCase"===i.kind)e.data=e.data.toUpperCase();else if("startsWith"===i.kind)e.data.startsWith(i.value)||(h(t=this._getOrReturnCtx(e,t),{code:a.invalid_string,validation:{startsWith:i.value},message:i.message}),r.dirty());else if("endsWith"===i.kind)e.data.endsWith(i.value)||(h(t=this._getOrReturnCtx(e,t),{code:a.invalid_string,validation:{endsWith:i.value},message:i.message}),r.dirty());else if("datetime"===i.kind)j(i).test(e.data)||(h(t=this._getOrReturnCtx(e,t),{code:a.invalid_string,validation:"datetime",message:i.message}),r.dirty());else if("ip"===i.kind){var s,o;s=e.data,!(("v4"===(o=i.version)||!o)&&I.test(s)||("v6"===o||!o)&&D.test(s))&&1&&
73(h(t=this._getOrReturnCtx(e,t),{validation:"ip",code:a.invalid_string,message:i.message}),r.dirty())}else e0.assertNever(i);return{status:r.value,value:e.data}}_regex(e,t,r){return this.refinement(t=>e.test(t),{validation:t,code:a.invalid_string,...e2.errToObj(r)})}_addCheck(e){return new R({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...e2.errToObj(e)})}url(e){return this._addCheck({kind:"url",...e2.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...e2.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...e2.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...e2.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...e2.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...e2.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...e2.errToObj(e)})}datetime(e){var t;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!=(t=null==e?void 0:e.offset)&&t,...e2.errToObj(null==e?void 0:e.message)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...e2.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...e2.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...e2.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...e2.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...e2.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...e2.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...e2.errToObj(t)})}nonempty(e){return this.min(1,e2.errToObj(e))}trim(){return new R({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new R({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new R({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}R.create=e=>{var t;return new R({checks:[],typeName:e5.ZodString,coerce:null!=(t=null==e?void 0:e.coerce)&&t,...k(e)})};class N extends E{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==i.number){let t=this._getOrReturnCtx(e);return h(t,{code:a.invalid_type,expected:i.number,received:t.parsedType}),p}let r=new f;for(let n of this._def.checks)"int"===n.kind?e0.isInteger(e.data)||(h(t=this._getOrReturnCtx(e,t),{code:a.invalid_type,expected:"integer",received:"float",message:n.message}),r.dirty()):"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(h(t=this._getOrReturnCtx(e,t),{code:a.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(h(t=this._getOrReturnCtx(e,t),{code:a.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"multipleOf"===n.kind?0!==function(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,i=r>n?r:n;return parseInt(e.toFixed(i).replace(".",""))%parseInt(t.toFixed(i).replace(".",""))/Math.pow(10,i)}(e.data,n.value)&&(h(t=this._getOrReturnCtx(e,t),{code:a.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):"finite"===n.kind?Number.isFinite(e.data)||(h(t=this._getOrReturnCtx(e,t),{code:a.not_finite,message:n.message}),r.dirty()):e0.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,e2.toString(t))}gt(e,t){return this.setLimit("min",e,!1,e2.toString(t))}lte(e,t){return this.setLimit("max",e,!0,e2.toString(t))}lt(e,t){return this.setLimit("max",e,!1,e2.toString(t))}setLimit(e,t,r,n){return new N({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:e2.toString(n)}]})}_addCheck(e){return new N({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:e2.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:e2.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:e2.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:e2.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:e2.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:e2.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:e2.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:e2.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:e2.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&e0.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let r of this._def.checks)if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;else"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.value<e)&&(e=r.value);return Number.isFinite(t)&&Number.isFinite(e)}}N.create=e=>new N({checks:[],typeName:e5.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...k(e)});
73class $ extends E{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==i.bigint){let t=this._getOrReturnCtx(e);return h(t,{code:a.invalid_type,expected:i.bigint,received:t.parsedType}),p}let r=new f;for(let n of this._def.checks)"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(h(t=this._getOrReturnCtx(e,t),{code:a.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(h(t=this._getOrReturnCtx(e,t),{code:a.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"multipleOf"===n.kind?e.data%n.value!==BigInt(0)&&(h(t=this._getOrReturnCtx(e,t),{code:a.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):e0.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,e2.toString(t))}gt(e,t){return this.setLimit("min",e,!1,e2.toString(t))}lte(e,t){return this.setLimit("max",e,!0,e2.toString(t))}lt(e,t){return this.setLimit("max",e,!1,e2.toString(t))}setLimit(e,t,r,n){return new $({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:e2.toString(n)}]})}_addCheck(e){return new $({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:e2.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:e2.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:e2.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:e2.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:e2.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}$.create=e=>{var t;return new $({checks:[],typeName:e5.ZodBigInt,coerce:null!=(t=null==e?void 0:e.coerce)&&t,...k(e)})};class M extends E{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==i.boolean){let t=this._getOrReturnCtx(e);return h(t,{code:a.invalid_type,expected:i.boolean,received:t.parsedType}),p}return g(e.data)}}M.create=e=>new M({typeName:e5.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...k(e)});class F extends E{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==i.date){let t=this._getOrReturnCtx(e);return h(t,{code:a.invalid_type,expected:i.date,received:t.parsedType}),p}if(isNaN(e.data.getTime()))return h(this._getOrReturnCtx(e),{code:a.invalid_date}),p;let r=new f;for(let n of this._def.checks)"min"===n.kind?e.data.getTime()<n.value&&(h(t=this._getOrReturnCtx(e,t),{code:a.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),r.dirty()):"max"===n.kind?e.data.getTime()>n.value&&(h(t=this._getOrReturnCtx(e,t),{code:a.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),r.dirty()):e0.assertNever(n);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new F({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:e2.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:e2.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}F.create=e=>new F({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:e5.ZodDate,...k(e)});class P extends E{_parse(e){if(this._getType(e)!==i.symbol){let t=this._getOrReturnCtx(e);return h(t,{code:a.invalid_type,expected:i.symbol,received:t.parsedType}),p}return g(e.data)}}P.create=e=>new P({typeName:e5.ZodSymbol,...k(e)});
73class L extends E{_parse(e){if(this._getType(e)!==i.undefined){let t=this._getOrReturnCtx(e);return h(t,{code:a.invalid_type,expected:i.undefined,received:t.parsedType}),p}return g(e.data)}}L.create=e=>new L({typeName:e5.ZodUndefined,...k(e)});class z extends E{_parse(e){if(this._getType(e)!==i.null){let t=this._getOrReturnCtx(e);return h(t,{code:a.invalid_type,expected:i.null,received:t.parsedType}),p}return g(e.data)}}z.create=e=>new z({typeName:e5.ZodNull,...k(e)});class q extends E{constructor(){super(...arguments),this._any=!0}_parse(e){return g(e.data)}}q.create=e=>new q({typeName:e5.ZodAny,...k(e)});class U extends E{constructor(){super(...arguments),this._unknown=!0}_parse(e){return g(e.data)}}U.create=e=>new U({typeName:e5.ZodUnknown,...k(e)});class B extends E{_parse(e){let t=this._getOrReturnCtx(e);return h(t,{code:a.invalid_type,expected:i.never,received:t.parsedType}),p}}B.create=e=>new B({typeName:e5.ZodNever,...k(e)});class V extends E{_parse(e){if(this._getType(e)!==i.undefined){let t=this._getOrReturnCtx(e);return h(t,{code:a.invalid_type,expected:i.void,received:t.parsedType}),p}return g(e.data)}}V.create=e=>new V({typeName:e5.ZodVoid,...k(e)});
73class H extends E{_parse(e){let{ctx:t,status:r}=this._processInputParams(e),n=this._def;if(t.parsedType!==i.array)return h(t,{code:a.invalid_type,expected:i.array,received:t.parsedType}),p;if(null!==n.exactLength){let e=t.data.length>n.exactLength.value,i=t.data.length<n.exactLength.value;(e||i)&&(h(t,{code:e?a.too_big:a.too_small,minimum:i?n.exactLength.value:void 0,maximum:e?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),r.dirty())}if(null!==n.minLength&&t.data.length<n.minLength.value&&(h(t,{code:a.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),r.dirty()),null!==n.maxLength&&t.data.length>n.maxLength.value&&(h(t,{code:a.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map((e,r)=>n.type._parseAsync(new w(t,e,t.path,r)))).then(e=>f.mergeArray(r,e));let s=[...t.data].map((e,r)=>n.type._parseSync(new w(t,e,t.path,r)));return f.mergeArray(r,s)}get element(){return this._def.type}min(e,t){return new H({...this._def,minLength:{value:e,message:e2.toString(t)}})}max(e,t){return new H({...this._def,maxLength:{value:e,message:e2.toString(t)}})}length(e,t){return new H({...this._def,exactLength:{value:e,message:e2.toString(t)}})}nonempty(e){return this.min(1,e)}}H.create=(e,t)=>new H({type:e,minLength:null,maxLength:null,exactLength:null,typeName:e5.ZodArray,...k(t)});class G extends E{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=e0.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==i.object){let t=this._getOrReturnCtx(e);return h(t,{code:a.invalid_type,expected:i.object,received:t.parsedType}),p}let{status:t,ctx:r}=this._processInputParams(e),{shape:n,keys:s}=this._getCached(),o=[];if(!(this._def.catchall instanceof B&&"strip"===this._def.unknownKeys))for(let e in r.data)s.includes(e)||o.push(e);let l=[];for(let e of s){let t=n[e],i=r.data[e];l.push({key:{status:"valid",value:e},value:t._parse(new w(r,i,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof B){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of o)l.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)o.length>0&&(h(r,{code:a.unrecognized_keys,keys:o}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of o){let n=r.data[t];l.push({key:{status:"valid",value:t},value:e._parse(new w(r,n,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of l){let r=await t.key;e.push({key:r,value:await t.value,alwaysSet:t.alwaysSet})}return e}).then(e=>f.mergeObjectSync(t,e)):f.mergeObjectSync(t,l)}get shape(){return this._def.shape()}strict(e){return e2.errToObj,new G({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{var n,i,s,a;let o=null!=(s=null==(i=(n=this._def).errorMap)?void 0:i.call(n,t,r).message)?s:r.defaultError;return"unrecognized_keys"===t.code?{message:null!=(a=e2.errToObj(e).message)?a:o}:{message:o}}}:{}})}strip(){return new G({...this._def,unknownKeys:"strip"})}passthrough(){return new G({...this._def,unknownKeys:"passthrough"})}extend(e){return new G({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new G({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:e5.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new G({...this._def,catchall:e})}pick(e){let t={};return e0.objectKeys(e).forEach(r=>{e[r]&&this.shape[r]&&(t[r]=this.shape[r])}),new G({...this._def,shape:()=>t})}omit(e){let t={};return e0.objectKeys(this.shape).forEach(r=>{e[r]||(t[r]=this.shape[r])}),new G({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof G){let r={};for(let n in t.shape){let i=t.shape[n];r[n]=eu.create(e(i))}return new G({...t._def,shape:()=>r})}if(t instanceof H)return new H({...t._def,type:e(t.element)});if(t instanceof eu)return eu.create(e(t.unwrap()));if(t instanceof ec)return ec.create(e(t.unwrap()));if(t instanceof J)return J.create(t.items.map(t=>e(t)));else return t}(this)}partial(e){let t={};return e0.objectKeys(this.shape).forEach(r=>{let n=this.shape[r];e&&!e[r]?t[r]=n:t[r]=n.optional()}),new G({...this._def,shape:()=>t})}required(e){let t={};return e0.objectKeys(this.shape).forEach(r=>{if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof eu;)e=e._def.innerType;t[r]=e}}),new G({...this._def,shape:()=>t})}keyof(){return ei(e0.objectKeys(this.shape))}}G.create=(e,t)=>
73new G({shape:()=>e,unknownKeys:"strip",catchall:B.create(),typeName:e5.ZodObject,...k(t)}),G.strictCreate=(e,t)=>new G({shape:()=>e,unknownKeys:"strict",catchall:B.create(),typeName:e5.ZodObject,...k(t)}),G.lazycreate=(e,t)=>new G({shape:e,unknownKeys:"strip",catchall:B.create(),typeName:e5.ZodObject,...k(t)});class W extends E{_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.options;if(t.common.async)return Promise.all(r.map(async e=>{let r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;let r=e.map(e=>new o(e.ctx.common.issues));return h(t,{code:a.invalid_union,unionErrors:r}),p});{let e,n=[];for(let i of r){let r={...t,common:{...t.common,issues:[]},parent:null},s=i._parseSync({data:t.data,path:t.path,parent:r});if("valid"===s.status)return s;"dirty"!==s.status||e||(e={result:s,ctx:r}),r.common.issues.length&&n.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=n.map(e=>new o(e));return h(t,{code:a.invalid_union,unionErrors:i}),p}}get options(){return this._def.options}}W.create=(e,t)=>new W({options:e,typeName:e5.ZodUnion,...k(t)});let Z=e=>{if(e instanceof er)return Z(e.schema);if(e instanceof el)return Z(e.innerType());if(e instanceof en)return[e.value];if(e instanceof es)return e.options;if(e instanceof ea)return Object.keys(e.enum);else if(e instanceof ed)return Z(e._def.innerType);else if(e instanceof L)return[void 0];else if(e instanceof z)return[null];else return null};class Y extends E{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==i.object)return h(t,{code:a.invalid_type,expected:i.object,received:t.parsedType}),p;let r=this.discriminator,n=t.data[r],s=this.optionsMap.get(n);return s?t.common.async?s._parseAsync({data:t.data,path:t.path,parent:t}):s._parseSync({data:t.data,path:t.path,parent:t}):(h(t,{code:a.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),p)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){let n=new Map;for(let r of t){let t=Z(r.shape[e]);if(!t)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let i of t){if(n.has(i))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(i)}`);n.set(i,r)}}return new Y({typeName:e5.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:n,...k(r)})}}class K extends E{_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=(e,n)=>{if(y(e)||y(n))return p;let o=function e(t,r){let n=s(t),a=s(r);if(t===r)return{valid:!0,data:t};if(n===i.object&&a===i.object){let n=e0.objectKeys(r),i=e0.objectKeys(t).filter(e=>-1!==n.indexOf(e)),s={...t,...r};for(let n of i){let i=e(t[n],r[n]);if(!i.valid)return{valid:!1};s[n]=i.data}return{valid:!0,data:s}}if(n===i.array&&a===i.array){if(t.length!==r.length)return{valid:!1};let n=[];for(let i=0;i<t.length;i++){let s=e(t[i],r[i]);if(!s.valid)return{valid:!1};n.push(s.data)}return{valid:!0,data:n}}if(n===i.date&&a===i.date&&+t==+r)return{valid:!0,data:t};return{valid:!1}}(e.value,n.value);return o.valid?((b(e)||b(n))&&t.dirty(),{status:t.value,value:o.data}):(h(r,{code:a.invalid_intersection_types}),p)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([e,t])=>n(e,t)):n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}K.create=(e,t,r)=>new K({left:e,right:t,typeName:e5.ZodIntersection,...k(r)});class J extends E{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==i.array)return h(r,{code:a.invalid_type,expected:i.array,received:r.parsedType}),p;if(r.data.length<this._def.items.length)return h(r,{code:a.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),p;!this._def.rest&&r.data.length>this._def.items.length&&(h(r,{code:a.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let n=[...r.data].map((e,t)=>{let n=this._def.items[t]||this._def.rest;return n?n._parse(new w(r,e,r.path,t)):null}).filter(e=>!!e);return r.common.async?Promise.all(n).then(e=>f.mergeArray(t,e)):f.mergeArray(t,n)}get items(){return this._def.items}
73rest(e){return new J({...this._def,rest:e})}}J.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new J({items:e,typeName:e5.ZodTuple,rest:null,...k(t)})};class X extends E{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==i.object)return h(r,{code:a.invalid_type,expected:i.object,received:r.parsedType}),p;let n=[],s=this._def.keyType,o=this._def.valueType;for(let e in r.data)n.push({key:s._parse(new w(r,e,r.path,e)),value:o._parse(new w(r,r.data[e],r.path,e))});return r.common.async?f.mergeObjectAsync(t,n):f.mergeObjectSync(t,n)}get element(){return this._def.valueType}static create(e,t,r){return new X(t instanceof E?{keyType:e,valueType:t,typeName:e5.ZodRecord,...k(r)}:{keyType:R.create(),valueType:e,typeName:e5.ZodRecord,...k(t)})}}class Q extends E{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==i.map)return h(r,{code:a.invalid_type,expected:i.map,received:r.parsedType}),p;let n=this._def.keyType,s=this._def.valueType,o=[...r.data.entries()].map(([e,t],i)=>({key:n._parse(new w(r,e,r.path,[i,"key"])),value:s._parse(new w(r,t,r.path,[i,"value"]))}));if(r.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let r of o){let n=await r.key,i=await r.value;if("aborted"===n.status||"aborted"===i.status)return p;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let r of o){let n=r.key,i=r.value;if("aborted"===n.status||"aborted"===i.status)return p;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}}}}Q.create=(e,t,r)=>new Q({valueType:t,keyType:e,typeName:e5.ZodMap,...k(r)});class ee extends E{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==i.set)return h(r,{code:a.invalid_type,expected:i.set,received:r.parsedType}),p;let n=this._def;null!==n.minSize&&r.data.size<n.minSize.value&&(h(r,{code:a.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),t.dirty()),null!==n.maxSize&&r.data.size>n.maxSize.value&&(h(r,{code:a.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty());let s=this._def.valueType;function o(e){let r=new Set;for(let n of e){if("aborted"===n.status)return p;"dirty"===n.status&&t.dirty(),r.add(n.value)}return{status:t.value,value:r}}let l=[...r.data.values()].map((e,t)=>s._parse(new w(r,e,r.path,t)));return r.common.async?Promise.all(l).then(e=>o(e)):o(l)}min(e,t){return new ee({...this._def,minSize:{value:e,message:e2.toString(t)}})}max(e,t){return new ee({...this._def,maxSize:{value:e,message:e2.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}ee.create=(e,t)=>new ee({valueType:e,minSize:null,maxSize:null,typeName:e5.ZodSet,...k(t)});class et extends E{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==i.function)return h(t,{code:a.invalid_type,expected:i.function,received:t.parsedType}),p;function r(e,r){return d({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,c(),l].filter(e=>!!e),issueData:{code:a.invalid_arguments,argumentsError:r}})}function n(e,r){return d({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,c(),l].filter(e=>!!e),issueData:{code:a.invalid_return_type,returnTypeError:r}})}let s={errorMap:t.common.contextualErrorMap},u=t.data;if(this._def.returns instanceof eo){let e=this;return g(async function(...t){let i=new o([]),a=await e._def.args.parseAsync(t,s).catch(e=>{throw i.addIssue(r(t,e)),i}),l=await Reflect.apply(u,this,a);return await e._def.returns._def.type.parseAsync(l,s).catch(e=>{throw i.addIssue(n(l,e)),i})})}{let e=this;return g(function(...t){let i=e._def.args.safeParse(t,s);if(!i.success)throw new o([r(t,i.error)]);let a=Reflect.apply(u,this,i.data),l=e._def.returns.safeParse(a,s);if(!l.success)throw new o([n(a,l.error)]);return l.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new et({...this._def,args:J.create(e).rest(U.create())})}returns(e){return new et({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,r){return new et({args:e||J.create([]).rest(U.create()),returns:t||U.create(),typeName:e5.ZodFunction,...k(r)})}}
73class er extends E{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}er.create=(e,t)=>new er({getter:e,typeName:e5.ZodLazy,...k(t)});class en extends E{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return h(t,{received:t.data,code:a.invalid_literal,expected:this._def.value}),p}return{status:"valid",value:e.data}}get value(){return this._def.value}}function ei(e,t){return new es({values:e,typeName:e5.ZodEnum,...k(t)})}en.create=(e,t)=>new en({value:e,typeName:e5.ZodLiteral,...k(t)});class es extends E{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),r=this._def.values;return h(t,{expected:e0.joinValues(r),received:t.parsedType,code:a.invalid_type}),p}if(-1===this._def.values.indexOf(e.data)){let t=this._getOrReturnCtx(e),r=this._def.values;return h(t,{received:t.data,code:a.invalid_enum_value,options:r}),p}return g(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e){return es.create(e)}exclude(e){return es.create(this.options.filter(t=>!e.includes(t)))}}es.create=ei;
73class ea extends E{_parse(e){let t=e0.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==i.string&&r.parsedType!==i.number){let e=e0.objectValues(t);return h(r,{expected:e0.joinValues(e),received:r.parsedType,code:a.invalid_type}),p}if(-1===t.indexOf(e.data)){let e=e0.objectValues(t);return h(r,{received:r.data,code:a.invalid_enum_value,options:e}),p}return g(e.data)}get enum(){return this._def.values}}ea.create=(e,t)=>new ea({values:e,typeName:e5.ZodNativeEnum,...k(t)});class eo extends E{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==i.promise&&!1===t.common.async?(h(t,{code:a.invalid_type,expected:i.promise,received:t.parsedType}),p):g((t.parsedType===i.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}eo.create=(e,t)=>new eo({type:e,typeName:e5.ZodPromise,...k(t)});class el extends E{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===e5.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=this._def.effect||null,i={addIssue:e=>{h(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===n.type){let e=n.transform(r.data,i);return r.common.issues.length?{status:"dirty",value:r.data}:r.common.async?Promise.resolve(e).then(e=>this._def.schema._parseAsync({data:e,path:r.path,parent:r})):this._def.schema._parseSync({data:e,path:r.path,parent:r})}if("refinement"===n.type){let e=e=>{let t=n.refinement(e,i);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(r=>"aborted"===r.status?p:("dirty"===r.status&&t.dirty(),e(r.value).then(()=>({status:t.value,value:r.value}))));{let n=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===n.status?p:("dirty"===n.status&&t.dirty(),e(n.value),{status:t.value,value:n.value})}}if("transform"===n.type)if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(e=>v(e)?Promise.resolve(n.transform(e.value,i)).then(e=>({status:t.value,value:e})):e);else{let e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!v(e))return e;let s=n.transform(e.value,i);if(s instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:s}}e0.assertNever(n)}}el.create=(e,t,r)=>new el({schema:e,typeName:e5.ZodEffects,effect:t,...k(r)}),el.createWithPreprocess=(e,t,r)=>new el({schema:t,effect:{type:"preprocess",transform:e},typeName:e5.ZodEffects,...k(r)});class eu extends E{_parse(e){return this._getType(e)===i.undefined?g(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eu.create=(e,t)=>new eu({innerType:e,typeName:e5.ZodOptional,...k(t)});class ec extends E{_parse(e){return this._getType(e)===i.null?g(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ec.create=(e,t)=>new ec({innerType:e,typeName:e5.ZodNullable,...k(t)});
73class ed extends E{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return t.parsedType===i.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}ed.create=(e,t)=>new ed({innerType:e,typeName:e5.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...k(t)});class eh extends E{_parse(e){let{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return _(n)?n.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new o(r.common.issues)},input:r.data})})):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new o(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}eh.create=(e,t)=>new eh({innerType:e,typeName:e5.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...k(t)});class ef extends E{_parse(e){if(this._getType(e)!==i.nan){let t=this._getOrReturnCtx(e);return h(t,{code:a.invalid_type,expected:i.nan,received:t.parsedType}),p}return{status:"valid",value:e.data}}}ef.create=e=>new ef({typeName:e5.ZodNaN,...k(e)});let ep=Symbol("zod_brand");class em extends E{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class eg extends E{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?p:"dirty"===e.status?(t.dirty(),m(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})})();{let e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?p:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new eg({in:e,out:t,typeName:e5.ZodPipeline})}}class ey extends E{_parse(e){let t=this._def.innerType._parse(e);return v(t)&&(t.value=Object.freeze(t.value)),t}}ey.create=(e,t)=>new ey({innerType:e,typeName:e5.ZodReadonly,...k(t)});let eb=(e,t={},r)=>e?q.create().superRefine((n,i)=>{var s,a;if(!e(n)){let e="function"==typeof t?t(n):"string"==typeof t?{message:t}:t,o=null==(a=null!=(s=e.fatal)?s:r)||a,l="string"==typeof e?{message:e}:e;i.addIssue({code:"custom",...l,fatal:o})}}):q.create(),ev={object:G.lazycreate};!function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(e5||(e5={}));let e_=R.create,ew=N.create,ex=ef.create,ek=$.create,eE=M.create,eS=F.create,eA=P.create,eO=L.create,eC=z.create,eT=q.create,eI=U.create,eD=B.create,ej=V.create,eR=H.create,eN=G.create,e$=G.strictCreate,eM=W.create,eF=Y.create,eP=K.create,eL=J.create,ez=X.create,eq=Q.create,eU=ee.create,eB=et.create,eV=er.create,eH=en.create,eG=es.create,eW=ea.create,eZ=eo.create,eY=el.create,eK=eu.create,eJ=ec.create,eX=el.createWithPreprocess,eQ=eg.create;var e0,e1,e2,e5,e3=Object.freeze({__proto__:null,defaultErrorMap:l,setErrorMap:function(e){u=e},getErrorMap:c,makeIssue:d,EMPTY_PATH:[],addIssueToContext:h,ParseStatus:f,INVALID:p,DIRTY:m,OK:g,isAborted:y,isDirty:b,isValid:v,isAsync:_,get util(){return e0},get objectUtil(){return e1},ZodParsedType:i,getParsedType:s,ZodType:E,ZodString:R,ZodNumber:N,ZodBigInt:$,ZodBoolean:M,ZodDate:F,ZodSymbol:P,ZodUndefined:L,ZodNull:z,ZodAny:q,ZodUnknown:U,ZodNever:B,ZodVoid:V,ZodArray:H,ZodObject:G,ZodUnion:W,ZodDiscriminatedUnion:Y,ZodIntersection:K,ZodTuple:J,ZodRecord:X,ZodMap:Q,ZodSet:ee,ZodFunction:et,ZodLazy:er,ZodLiteral:en,ZodEnum:es,ZodNativeEnum:ea,ZodPromise:eo,ZodEffects:el,ZodTransformer:el,ZodOptional:eu,ZodNullable:ec,ZodDefault:ed,ZodCatch:eh,ZodNaN:ef,BRAND:ep,ZodBranded:em,ZodPipeline:eg,ZodReadonly:ey,custom:eb,Schema:E,ZodSchema:E,late:ev,get ZodFirstPartyTypeKind(){return e5},coerce:{string:e=>R.create({...e,coerce:!0}),number:e=>N.create({...e,coerce:!0}),boolean:e=>M.create({...e,coerce:!0}),bigint:e=>$.create({...e,coerce:!0}),date:e=>F.create({...e,coerce:!0})},any:eT,array:eR,bigint:ek,boolean:eE,date:eS,discriminatedUnion:eF,effect:eY,enum:eG,function:eB,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>eb(t=>t instanceof e,t),intersection:eP,lazy:eV,literal:eH,map:eq,nan:ex,nativeEnum:eW,never:eD,null:eC,nullable:eJ,number:ew,object:eN,oboolean:()=>eE().optional(),onumber:()=>ew().optional(),optional:eK,ostring:()=>e_().optional(),pipeline:eQ,preprocess:eX,promise:eZ,record:ez,set:eU,strictObject:e$,string:e_,symbol:eA,transformer:eY,tuple:eL,undefined:eO,union:eM,unknown:eI,void:ej,NEVER:p,ZodIssueCode:a,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:o})},87809:(e,t,r)=>{"use strict";r.d(t,{T:()=>n});let n="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},87865:(e,t,r)=>{"use strict";r.d(t,{Ow:()=>s,Z9:()=>a,pq:()=>o,vF:()=>l});var n=r(41025),i=r(26088);let s=["debug","info","warn","error","log","assert","trace"],a={};function o(e){if(!("console"in i.O))return e();let t=i.O.console,r={},n=Object.keys(a);
73n.forEach(e=>{let n=a[e];r[e]=t[e],t[e]=n});try{return e()}finally{n.forEach(e=>{t[e]=r[e]})}}let l=(0,i.B)("logger",function(){let e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return n.T?s.forEach(r=>{t[r]=(...t)=>{e&&o(()=>{i.O.console[r](`Sentry Logger [${r}]:`,...t)})}}):s.forEach(e=>{t[e]=()=>void 0}),t})},87894:(e,t,r)=>{"use strict";r.d(t,{Sj:()=>n});let n=r(73111).Sj},88638:(e,t,r)=>{"use strict";r.d(t,{u:()=>l});var n=r(27248),i=r(84841),s=r(81451),a=r(2297),o=r(44220);function l(e){var t,r,l=1/0;return null!=e&&("object"==typeof e?(l=void 0===(t=e.count)?1/0:t,r=e.delay):l=e),l<=0?function(){return n.w}:(0,i.N)(function(e,t){var n,i=0,u=function(){if(null==n||n.unsubscribe(),n=null,null!=r){var e="number"==typeof r?(0,o.O)(r):(0,a.Tg)(r(i)),l=(0,s._)(t,function(){l.unsubscribe(),c()});e.subscribe(l)}else c()},c=function(){var r=!1;n=e.subscribe((0,s._)(t,void 0,function(){++i<l?n?u():r=!0:t.complete()})),r&&u()};c()})}},88643:(e,t,r)=>{"use strict";r.d(t,{Ss:()=>l,ef:()=>a,xM:()=>o});let n=/^D+$/,i=/^Y+$/,s=["D","DD","YY","YYYY"];function a(e){return n.test(e)}function o(e){return i.test(e)}function l(e,t,r){let n=function(e,t,r){let n="Y"===e[0]?"years":"days of the month";return"Use `".concat(e.toLowerCase(),"` instead of `").concat(e,"` (in `").concat(t,"`) for formatting ").concat(n," to the input `").
73concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")}(e,t,r);if(console.warn(n),s.includes(e))throw RangeError(n)}},88693:(e,t,r)=>{"use strict";r.d(t,{m:()=>o});var n=r(33241),i=r(13177),s=r(86337),a=r(96221);function o(e,t,r){let[o,l]=(0,i.x)(null==r?void 0:r.in,e,t),u=(0,a.o)(o),c=(0,a.o)(l);return Math.round((u-(0,n.G)(u)-(c-(0,n.G)(c)))/s.w4)}},89208:(e,t,r)=>{"use strict";r.d(t,{U:()=>i});var n=r(1859);function i(e){return(0,n.T)(function(t,r,n){return!e||e(r,n)?t+1:t},0)}},89411:e=>{e.exports=function(e){return function(t,r,n){for(var i=-1,s=Object(t),a=n(t),o=a.length;o--;){var l=a[e?o:++i];if(!1===r(s[l],l,s))break}return t}}},90122:(e,t,r)=>{var n=r(58516),i=r(57201),s=r(17010),a=r(42725);e.exports=function(e,t){return(a(e)?n:s)(e,i(t,3))}},90160:(e,t,r)=>{var n=r(283);e.exports=function(e){return n(e)?void 0:e}},90224:(e,t,r)=>{var n=r(36383);e.exports=function(e){return e==e&&!n(e)}},90257:e=>{e.exports=function(e,t,r,n){for(var i=e.length,s=r+(n?1:-1);n?s--:++s<i;)if(t(e[s],s,e))return s;return -1}},90635:(e,t,r)=>{"use strict";r.d(t,{k:()=>v});var n=r(38562),i=r(7112),s=r(82762),a=r(74078),o=r(93790),l=r(3556),u=r(14864),c=r(12226),d=r(61409),h=r(33899),f=r(62171),p=r(30807);function m(e){let t,r=(0,i.c)(4),n=(0,s.h)();return r[0]!==n||r[1]!==e.decorator||r[2]!==e.pair?(t={input:{editor:n,decorator:e.decorator,pair:e.pair}},r[0]=n,r[1]=e.decorator,r[2]=e.pair,r[3]=t):t=r[3],(0,u.qf)(g,t),null}let g=(0,c.mj)({types:{context:{},input:{},events:{}},actors:{"decorate listener":(0,d.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 r=`(?<!\\${e})`,n=`\\${e}`.repeat(Math.max(t,1)),i=`([^${e}\\n]+?)`,s=`\\${e}`.repeat(Math.max(t,1)),a=`(?!\\${e})`;return`${r}${n}(?!\\s)${i}(?<!\\s)${s}${a}`}(e.pair.char,e.pair.amount),r=RegExp(`(${t})$`);return(0,a.Ke)({on:"insert.text",guard:({snapshot:t,event:n})=>{if(e.pair.amount<1)return!1;let i=e.decorator({context:{schema:t.context.schema},schema:t.context.schema});if(void 0===i)return!1;let s=f.hH(t),a=f.Jo(t),u=a?o.iL({context:t.context,selectionPoint:a}):void 0;if(!s||!u)return!1;let c=`${p._M(t)}${n.text}`,d=c.match(r)?.at(0);if(void 0===d)return!1;let h={anchor:{path:s.path,offset:c.length-d.length},focus:{path:s.path,offset:c.length-d.length+e.pair.char.length*e.pair.amount}},m={anchor:{path:s.path,offset:u.offset+n.text.length-e.pair.char.length*e.pair.amount},focus:{path:s.path,offset:u.offset+n.text.length}};if(h.focus.offset-h.anchor.offset>1){let e=l.lv({context:t.context,offsets:h}),r=f.Uv({...t,context:{...t.context,selection:e?{anchor:e.focus,focus:e.focus}:null}}),n=r?l.GR({context:t.context,selectionPoint:{path:r.path,offset:0}}):void 0;if(n&&n.offset>h.anchor.offset&&n.offset<h.focus.offset)return!1}if(m.focus.offset-m.anchor.offset>1){let e=f.Uv(t),r=e?l.GR({context:t.context,selectionPoint:{path:e.path,offset:0}}):void 0;if(r&&r.offset>m.anchor.offset&&r.offset<m.focus.offset)return!1}return{prefixOffsets:h,suffixOffsets:m,decorator:i}},actions:[({event:e})=>[(0,a.sY)(e)],(t,{prefixOffsets:r,suffixOffsets:n,decorator:i})=>[(0,a.xl)({type:"decorator.add",decorator:i,at:{anchor:r.focus,focus:n.anchor}}),(0,a.xl)({type:"delete.text",at:n}),(0,a.xl)({type:"delete.text",at:r}),(0,a.xl)({type:"decorator.remove",decorator:i}),(0,a.QZ)(()=>{e.onDecorate({...n.anchor,offset:n.anchor.offset-(r.focus.offset-r.anchor.offset)})})]]})}({decorator:t.decorator,pair:t.pair,onDecorate:t=>{e({type:"decorator.add",blockOffset:t})}})})),"delete.backward listener":(0,d.SP)(({sendBack:e,input:t})=>t.editor.registerBehavior({behavior:(0,a.Ke)({on:"delete.backward",actions:[()=>[(0,a.xl)({type:"history.undo"}),(0,a.QZ)(()=>{e({type:"delete.backward"})})]]})})),"selection listener":(0,d.SP)(({sendBack:e,input:t})=>t.editor.registerBehavior({behavior:(0,a.Ke)({on:"select",guard:({snapshot:e,event:t})=>{if(!t.at)return{blockOffsets:void 0};let r=o.iL({context:e.context,selectionPoint:t.at.anchor}),n=o.iL({context:e.context,selectionPoint:t.at.focus});return r&&n?{blockOffsets:{anchor:r,focus:n}}:{blockOffsets:void 0}},actions:[({event:t},{blockOffsets:r})=>[{type:"effect",effect:()=>{e({type:"selection",blockOffsets:r})}},(0,a.sY)(t)]]})}))}}).createMachine({id:"decorator pair",context:({input:e})=>({decorator:e.decorator,editor:e.editor,pair:e.pair}),initial:"idle",states:{idle:{invoke:[{src:"decorate listener",input:({context:e})=>({decorator:e.decorator,editor:e.editor,pair:e.pair})}],on:{"decorator.add":{target:"decorator added",actions:(0,h.a)({offsetAfterDecorator:({event:e})=>e.blockOffset})}}},"decorator added":{exit:[(0,h.a)({offsetAfterDecorator: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})=>!function(...e){return function(e,t,r){let n=e.length-t.length;if(0===n)return e(...t);if(1===n){var i;let r;return i=void 0,r=r=>e(r,...t),void 0===i?r:Object.assign(r,{lazy:i,lazyArgs:t})}throw Error("Wrong number of arguments")}(function e(t,r){let n,i;if(t===r||Object.is(t,r))return!0;
73if("object"!=typeof t||"object"!=typeof r||null===t||null===r||(s=t,a=r,n=Object.getPrototypeOf(s),n!==(i=Object.getPrototypeOf(a))&&(null===n?i!==Object.prototype:n!==Object.prototype||null!==i)))return!1;if(Array.isArray(t)){var s,a,o=t,l=r;if(o.length!==l.length)return!1;for(let[t,r]of o.entries())if(!e(r,l[t]))return!1;return!0}if(t instanceof Map){var u=t,c=r;if(u.size!==c.size)return!1;for(let[t,r]of u.entries())if(!c.has(t)||!e(r,c.get(t)))return!1;return!0}if(t instanceof Set){var d=t,h=r;if(d.size!==h.size)return!1;let n=[...h];for(let t of d){let r=!1;for(let[i,s]of n.entries())if(e(t,s)){r=!0,n.splice(i,1);break}if(!r)return!1}return!0}if(t instanceof Date)return t.getTime()===r.getTime();if(t instanceof RegExp)return t.toString()===r.toString();if(Object.keys(t).length!==Object.keys(r).length)return!1;for(let[n,i]of Object.entries(t))if(!(n in r)||!e(i,r[n]))return!1;return!0},e)}({anchor:e.offsetAfterDecorator,focus:e.offsetAfterDecorator},t.blockOffsets)},"delete.backward":{target:"idle"}}}}});var y=r(76905),b=r(60266);function v(e){let t,r,o,l,u,c,d,h,p,g=(0,i.c)(39),{blockquoteStyle:v,boldDecorator:_,codeDecorator:w,defaultStyle:x,headingStyle:k,horizontalRuleObject:E,linkObject:S,italicDecorator:A,orderedList:O,strikeThroughDecorator:C,unorderedList:T}=e,I=(0,s.h)();if(g[0]!==x||g[1]!==I?(t=()=>{var e;let t=(e={defaultStyle:x},[(0,a.Ke)({on:"clipboard.paste",guard:({snapshot:t,event:r})=>{let n=r.originEvent.dataTransfer.getData("text/plain"),i=n.match(/^(---)$|^(—-)$|^(___)$|^(\*\*\*)$/)?.[0],s=e.horizontalRuleObject?.({context:{schema:t.context.schema,keyGenerator:t.context.keyGenerator}}),a=f.gU(t),o=f.hH(t);return!!i&&!!s&&!!a&&{hrCharacters:i,hrObject:s,focusBlock:a,focusTextBlock:o}},actions:[(e,{hrCharacters:t})=>[(0,a.xl)({type:"insert.text",text:t})],({snapshot:e},{hrObject:t,focusBlock:r,focusTextBlock:n})=>n?[(0,a.xl)({type:"insert.block",block:{_type:e.context.schema.block.name,children:n.node.children},placement:"after"}),(0,a.xl)({type:"insert.block",block:t,placement:"after"}),(0,a.xl)({type:"delete.block",at:r.path})]:[(0,a.xl)({type:"insert.block",block:t,placement:"after"})]]}),(0,a.Ke)({on:"delete.backward",guard:({snapshot:t})=>{let r=f.WV(t),n=f.hH(t),i=f.d2(t);if(!r||!n||!i)return!1;let s=n.node.children[0]._key===i.node._key&&t.context.selection?.focus.offset===0,a=e.defaultStyle?.({context:{schema:t.context.schema},schema:t.context.schema});return!!s&&!!a&&n.node.style!==a&&{defaultStyle:a,focusTextBlock:n}},actions:[(e,{defaultStyle:t,focusTextBlock:r})=>[(0,a.xl)({type:"block.set",props:{style:t},at:r.path})]]})]).map(e=>I.registerBehavior({behavior:e}));return()=>{for(let e of t)e()}},r=[x,I],g[0]=x,g[1]=I,g[2]=t,g[3]=r):(t=g[2],r=g[3]),(0,b.useEffect)(t,r),g[4]!==v||g[5]!==k||g[6]!==E||g[7]!==S||g[8]!==O||g[9]!==T){var D,j,R,N,$,M;if(o=[],v){let e;g[11]!==v?(D={blockquoteStyle:v},e=(0,y.EJ)({on:/^> /,guard:({snapshot:e,event:t})=>{let r=D.blockquoteStyle({context:{schema:e.context.schema},schema:e.context.schema});if(!r||(0,f.Uv)(e))return!1;let n=t.matches.at(0);return!!n&&{style:r,match:n}},actions:[({event:e},{style:t,match:r})=>[(0,a.xl)({type:"block.unset",props:["listItem","level"],at:e.focu
73sBlock.path}),(0,a.xl)({type:"block.set",props:{style:t},at:e.focusBlock.path}),(0,a.xl)({type:"delete",at:r.targetOffsets})]]}),g[11]=v,g[12]=e):e=g[12],o.push(e)}if(k){let e;g[13]!==k?(j={headingStyle:k},e=(0,y.EJ)({on:/^#+ /,guard:({snapshot:e,event:t})=>{if((0,f.Uv)(e))return!1;let r=t.matches.at(0);if(!r)return!1;let n=r.text.length-1,i=j.headingStyle({context:{schema:e.context.schema},schema:e.context.schema,props:{level:n},level:n});return!!i&&{match:r,style:i}},actions:[({event:e},{match:t,style:r})=>[(0,a.xl)({type:"block.unset",props:["listItem","level"],at:e.focusBlock.path}),(0,a.xl)({type:"block.set",props:{style:r},at:e.focusBlock.path}),(0,a.xl)({type:"delete",at:t.targetOffsets})]]}),g[13]=k,g[14]=e):e=g[14],o.push(e)}if(E){let e;g[15]!==E?(R={horizontalRuleObject:E},e=(0,y.EJ)({on:/^(---)|^(—-)|^(___)|^(\*\*\*)/,guard:({snapshot:e,event:t})=>{let r=R.horizontalRuleObject({context:{schema:e.context.schema,keyGenerator:e.context.keyGenerator}});if(!r||(0,f.Uv)(e))return!1;let n=t.matches.at(0);return!!n&&{hrObject:r,match:n}},actions:[(e,{hrObject:t,match:r})=>[(0,a.xl)({type:"insert.block",block:t,placement:"before",select:"none"}),(0,a.xl)({type:"delete",at:r.targetOffsets})]]}),g[15]=E,g[16]=e):e=g[16],o.push(e)}if(S){let e;g[17]!==S?(N={linkObject:S},e=(0,y.EJ)({on:/\[([^[\]]+)]\((.+)\)/,actions:[({snapshot:e,event:t})=>{let r=t.textBefore+t.textInserted,n=0,i=[];for(let r of t.matches.reverse()){let t=r.groupMatches.at(0),s=r.groupMatches.at(1);if(void 0===t||void 0===s)continue;n-=r.targetOffsets.focus.offset-r.targetOffsets.anchor.offset-t.text.length;let o=N.linkObject({context:{schema:e.context.schema,keyGenerator:e.context.keyGenerator},props:{href:s.text}});if(!o)continue;let{_type:l,_key:u,...c}=o,d={anchor:r.targetOffsets.anchor,focus:t.targetOffsets.anchor},h={anchor:t.targetOffsets.focus,focus:r.targetOffsets.focus};i.push((0,a.xl)({type:"select",at:t.targetOffsets})),i.push((0,a.xl)({type:"annotation.add",annotation:{name:l,_key:u,value:c}})),i.push((0,a.xl)({type:"delete",at:h})),i.push((0,a.xl)({type:"delete",at:d}))}let s={path:t.focusBlock.path,offset:r.length- -1*n};return[...i,(0,a.xl)({type:"select",at:{anchor:s,focus:s}})]}]}),g[17]=S,g[18]=e):e=g[18],o.push(e)}if(O){let e;g[19]!==O?($={orderedList:O},e=(0,y.EJ)({on:/^1\. /,guard:({snapshot:e,event:t})=>{let r=$.orderedList({context:{schema:e.context.schema},schema:e.context.schema});if(!r||(0,f.Uv)(e))return!1;let n=t.matches.at(0);return!!n&&{match:n,orderedList:r}},actions:[({event:e},{match:t,orderedList:r})=>
73[(0,a.xl)({type:"block.unset",props:["style"],at:e.focusBlock.path}),(0,a.xl)({type:"block.set",props:{listItem:r,level:e.focusBlock.node.level??1},at:e.focusBlock.path}),(0,a.xl)({type:"delete",at:t.targetOffsets})]]}),g[19]=O,g[20]=e):e=g[20],o.push(e)}if(T){let e;g[21]!==T?(M={unorderedList:T},e=(0,y.EJ)({on:/^(-|\*) /,guard:({snapshot:e,event:t})=>{let r=M.unorderedList({context:{schema:e.context.schema},schema:e.context.schema});if(!r||(0,f.Uv)(e))return!1;let n=t.matches.at(0);return!!n&&{match:n,unorderedList:r}},actions:[({event:e},{match:t,unorderedList:r})=>[(0,a.xl)({type:"block.unset",props:["style"],at:e.focusBlock.path}),(0,a.xl)({type:"block.set",props:{listItem:r,level:e.focusBlock.node.level??1},at:e.focusBlock.path}),(0,a.xl)({type:"delete",at:t.targetOffsets})]]}),g[21]=T,g[22]=e):e=g[22],o.push(e)}g[4]=v,g[5]=k,g[6]=E,g[7]=S,g[8]=O,g[9]=T,g[10]=o}else o=g[10];let F=o.length>0?o:null;return g[23]!==_?(l=_?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(m,{decorator:_,pair:{char:"*",amount:2}}),(0,n.jsx)(m,{decorator:_,pair:{char:"_",amount:2}})]}):null,g[23]=_,g[24]=l):l=g[24],g[25]!==w?(u=w?(0,n.jsx)(m,{decorator:w,pair:{char:"`",amount:1}}):null,g[25]=w,g[26]=u):u=g[26],g[27]!==A?(c=A?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(m,{decorator:A,pair:{char:"*",amount:1}}),(0,n.jsx)(m,{decorator:A,pair:{char:"_",amount:1}})]}):null,g[27]=A,g[28]=c):c=g[28],g[29]!==C?(d=C?(0,n.jsx)(m,{decorator:C,pair:{char:"~",amount:2}}):null,g[29]=C,g[30]=d):d=g[30],g[31]!==F?(h=F?(0,n.jsx)(y.wS,{rules:F}):null,g[31]=F,g[32]=h):h=g[32],g[33]!==l||g[34]!==u||g[35]!==c||g[36]!==d||g[37]!==h?(p=(0,n.jsxs)(n.Fragment,{children:[l,u,c,d,h]}),g[33]=l,g[34]=u,g[35]=c,g[36]=d,g[37]=h,g[38]=p):p=g[38],p}},90740:(e,t,r)=>{"use strict";r(92060),Object.create(null)},90830:(e,t,r)=>{"use strict";let n=r(27353);e.exports=(e,t)=>{try{return new n(e,t).range||"*"}catch(e){return null}}},90931:(e,t,r)=>{var n=r(7290),i=r(3582),s=r(93041),a=r(68729);e.exports=i(function(e){return s(n(e,1,a,!0))})},91031:(e,t,r)=>{"use strict";r.d(t,{D2:()=>v,EN:()=>_,GP:()=>x,t$:()=>E,qg:()=>k,WI:()=>u});var n=r(7727);class i 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 s=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(s.test(e)){let t=Date.prototype[e.replace(s,"$1UTC")];t&&(i.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"});var a=r(86752),o=r(79750),l=r(16992);let u=e=>e.replace(/@posix$/,"");function c(e,t="long",r="en-US"){let n=u(r);return new Intl.DateTimeFormat(n,{month:t}).format(e)}function d(e,t="long",r="en-US"){let n=u(r);return new Intl.DateTimeFormat(n,{weekday:t}).format(e)}function h(e,t,r="en-US"){let n=u(r);return new Intl.DateTimeFormat(n,t).format(e)}function f(e,t){return String(e).padStart(t,"0")}function p(e){let t=e%10,r=e%100;return 1===t&&11!==r?`${e}st`:2===t&&12!==r?`${e}nd`:3===t&&13!==r?`${e}rd`:`${e}th`}function m(e){let t=e.getDay();return 0===t?7:t}function g(e){let t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())),r=m(t);return t.setUTCDate(t.getUTCDate()-r+4),t.getUTCFullYear()}function y(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 b(e){let t=new Intl.DateTimeFormat(u("en-US"),{timeZoneName:"short"}).formatToParts(e).find(e=>"timeZoneName"===e.type);return t?t.value:""}let v="YYYY-MM-DD",_="HH:mm",w=Intl.DateTimeFormat().resolvedOptions().timeZone;function x(e,t,r={useUTC:!1,timeZone:void 0}){let{useUTC:s,timeZone:o}=r;return function(e,t){let r=[],n=t.replace(/\[([^\]]+)\]/g,(e,t)=>(r.push(t),"")),i=e.getFullYear(),s=e.getMonth(),o=e.getDate(),l=e.getDay(),u=e.getHours(),v=e.getMinutes(),_=e.getSeconds(),w=function(e){let t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())),r=m(t);t.setUTCDate(t.getUTCDate()-r+4);let n=new Date(Date.UTC(t.getUTCFullYear(),0,1));return Math.ceil(((t.valueOf()-n.valueOf())/864e5+1)/7)}(e),x=g(e),k=g(e),E=e.getTime(),S=Math.floor(E/1e3),A=[{key:"YYYY",getValue:()=>String(i)},{key:"YY",getValue:()=>String(i).slice(-2)},{key:"Y",getValue:()=>String(i)},{key:"YYYYY",getValue:()=>f(i,5)},{key:"GGGG",getValue:()=>String(x)},{key:"GG",getValue:()=>String(x).slice(-2)},{key:"gggg",getValue:()=>String(k)},{key:"gg",getValue:()=>String(k).slice(-2)},{key:"Q",getValue:()=>String(Math.floor(s/3)+1)},{key:"Qo",getValue:()=>p(Math.floor(s/3)+1)}
73,{key:"MMMM",getValue:()=>c(e,"long")},{key:"MMM",getValue:()=>c(e,"short")},{key:"MM",getValue:()=>f(s+1,2)},{key:"M",getValue:()=>String(s+1)},{key:"Mo",getValue:()=>p(s+1)},{key:"DD",getValue:()=>f(o,2)},{key:"D",getValue:()=>String(o)},{key:"Do",getValue:()=>p(o)},{key:"dddd",getValue:()=>d(e,"long")},{key:"ddd",getValue:()=>d(e,"short")},{key:"dd",getValue:()=>d(e,"short").slice(0,2)},{key:"d",getValue:()=>String(l)},{key:"do",getValue:()=>p(l+1)},{key:"DDDD",getValue:()=>f(y(e),3)},{key:"DDD",getValue:()=>String(y(e))},{key:"DDDo",getValue:()=>p(y(e))},{key:"E",getValue:()=>String(m(e))},{key:"w",getValue:()=>f(w,2)},{key:"wo",getValue:()=>p(w)},{key:"ww",getValue:()=>f(w,2)},{key:"WW",getValue:()=>f(w,2)},{key:"W",getValue:()=>String(w)},{key:"Wo",getValue:()=>p(w)},{key:"HH",getValue:()=>f(u,2)},{key:"H",getValue:()=>String(u)},{key:"hh",getValue:()=>f((u+11)%12+1,2)},{key:"h",getValue:()=>String((u+11)%12+1)},{key:"k",getValue:()=>String(u||24)},{key:"kk",getValue:()=>f(u||24,2)},{key:"mm",getValue:()=>f(v,2)},{key:"m",getValue:()=>String(v)},{key:"ss",getValue:()=>f(_,2)},{key:"s",getValue:()=>String(_)},{key:"A",getValue:()=>u<12?"AM":"PM"},{key:"a",getValue:()=>u<12?"am":"pm"},{key:"X",getValue:()=>String(S)},{key:"x",getValue:()=>String(E)},{key:"N",getValue:()=>i<0?"BC":"AD"},{key:"NN",getValue:()=>i<0?"BC":"AD"},{key:"NNN",getValue:()=>i<0?"BC":"AD"},{key:"NNNN",getValue:()=>i<0?"Before Christ":"Anno Domini"},{key:"NNNNN",getValue:()=>i<0?"BC":"AD"},{key:"z",getValue:()=>b(e)},{key:"zz",getValue:()=>b(e)},{key:"Z",getValue:()=>(0,a.GP)(e,"xxx")},{key:"ZZ",getValue:()=>(0,a.GP)(e,"xx")},{key:"LTS",getValue:()=>h(e,{timeStyle:"medium"})},{key:"LT",getValue:()=>h(e,{timeStyle:"short"})},{key:"LLLL",getValue:()=>h(e,{weekday:"long",year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric"})},{key:"LLL",getValue:()=>h(e,{year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric"})},{key:"LL",getValue:()=>h(e,{year:"numeric",month:"long",day:"numeric"})},{key:"L",getValue:()=>h(e,{year:"numeric",month:"2-digit",day:"2-digit"})},{key:"llll",getValue:()=>h(e,{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric"})},{key:"lll",getValue:()=>h(e,{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric"})},{key:"ll",getValue:()=>h(e,{year:"numeric",month:"short",day:"numeric"})},{key:"l",getValue:()=>h(e,{year:"numeric",month:"numeric",day:"numeric"})}];A.sort((e,t)=>t.key.length-e.key.length);let O=RegExp("(?<!LT)S{1,4}","g"),C=n.replace(O,t=>(function(e,t){let r=f(e.getMilliseconds(),3);return 1===t?r.slice(0,1):2===t?r.slice(0,2):3===t?r:`${r}0`})(e,t.length));for(let{key:e,getValue:t}of A){let r=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),n=RegExp(`(^|[^A-Z0-9a-z])(${r})(?![A-Z0-9a-z])`,"g");if(C.match(n)){let e=t();C=C.replace(n,`$1${e}`)}}return C.replace(RegExp("","g"),()=>r.shift()||"")}(s?new i(e):o?new n.q(e,o||w):new Date(e),t)}function k(e,t,r){let i=t?function(e){let t={YYYY:"yyyy",YY:"yy",MMMM:"MMMM",MMM:"MMM",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,r)=>e.replace(RegExp(r,"g"),t[r]),e)}(t):void 0,s=i?(0,o.qg)(e,i,new Date):(0,l.H)(e);if(s&&!isNaN(s.getTime())){let e=s;return r&&E(r)&&t?e=new n.q(s.getFullYear(),s.getMonth(),s.getDate(),s.getHours(),s.getMinutes(),s.getSeconds(),s.getMilliseconds(),r):r&&E(r)&&(e=new n.q(s,r)),{isValid:!0,date:e}}return{isValid:!1,error:`Invalid date. Must be on the format "${t}"`}}function E(e){return Intl.supportedValuesOf("timeZone").includes(e)}},91187:e=>{e.exports=function(e,t){return e.has(t)}},91266:(e,t,r)=>{function n(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=0xffffffff,this.__views__=[]}n.prototype=r(98512)(r(86489).prototype),n.prototype.constructor=n,e.exports=n},91491:(e,t,r)=>{"use strict";r.d(t,{q:()=>f});var n=r(91384),i=r(84472),s=r(53355),a=r(20883),o=r(97901),l=r(25082),u=r(27381),c=r(43738);let d={current:[],added:[],removed:[]},h=[];function f(e,t=(e,t)=>e===t){return r=>{let f=r.pipe((0,n.u)()),m=f.pipe((0,i.S)((e,r)=>{let n=r.filter(r=>!e.current.find(e=>t(e,r))),i=e.current.filter(e=>!r.find(r=>t(r,e)));return{current:r,added:p(n,t),removed:p(i,t)}},d)).pipe((0,n.u)(),(0,s.p)(e=>e.added.length>0||e.removed.length>0)),g=m.pipe((0,a.Z)(e=>e.removed)),y=m.pipe((0,a.Z)(e=>e.added)),b=f.pipe((0,s.p)(e=>0===e.length),(0,u.T)(()=>h)),v=y.pipe((0,a.Z)(r=>{let i=g.pipe((0,s.p)(e=>t(e,r))).pipe((0,n.u)());return(0,o.h)(i.pipe((0,u.T)(()=>({type:"remove",element:r}))),e(r).pipe((0,l.Q)(i),(0,u.T)(e=>({type:"emit",element:r,projected:e}))))}),(0,c.E)(f),(0,i.S)((e,[r,n])=>n.flatMap(n=>t(n,r.element)?"remove"===r.type?[]:{item:n,emitted:!0,value:r.projected}:e.find(e=>e&&t(e.item,n))),[]),(0,s.p)(e=>e.every(e=>null==e?void 0:e.emitted)),(0,u.T)(e=>e.map(e=>e.value)));return(0,o.h)(b,v)}}function p(e,t){let r=[],n=!1;for(let i of e)r.find(e=>t(e,i))?n=!0:r.push(i);return n?r:e}},91507:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var n=r(92762),i=r(76351),s=r(68731),a=r(66312),o=r(81211),l=r(79111);let u=function(e,t,r,u){var c=-1,d=i.A,h=!0,f=e.length,p=[],m=t.length;if(!f)return p;r&&(t=(0,a.A)(t,(0,o.A)(r))),u?(d=s.A,h=!1):t.length>=200&&(d=l.A,h=!1,t=new n.A(t));n:for(;++c<f;){var g=e[c],y=null==r?g:r(g);if(g=u||0!==g?g:0,h&&y==y){for(var b=m;b--;)if(t[b]===y)continue n;p.push(g)}else d(t,y,u)||p.push(g)}return p};var c=r(92754),d=r(99829);let h=(0,c.A)(function(e,t){return(0,d.A)(e)?u(e,t):[]})},91864:(e,t,r)=>{"use strict";r.d(t,{f:()=>s});var n=r(41325),i=r(97537);function s(e,t,r){let s=(0,i.a)(e,null==r?void 0:r.in);return isNaN(t)?(0,n.w)((null==r?void 0:r.in)||e,NaN):(t&&s.setDate(s.getDate()+t),s)}},92029:(e,t,r)=>{var n=r(79550);e.exports=function(e){var t=n(e),r=t%1;return t==t?r?t-r:t:0}},92060: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}},92116:(e,t,r)=>{"use strict";var n,i;n=r(81527),i=r(79347),n.version,t.F0=n.renderToString,t.qV=n.renderToStaticMarkup,i.renderToReadableStream,i.resume&&i.resume},92298:(e,t,r)=>{"use strict";r.d(t,{ao:()=>h,k1:()=>f});var n=r(78266),i=r(23821),s=r(24368),a=r(28077);let o=/^sentry-/;function l(e){return e.split(",").map(e=>e.split("=").map(e=>decodeURIComponent(e.trim()))).reduce((e,[t,r])=>(t&&r&&(e[t]=r),e),{})}var u=r(33806),c=r(74157);function d(e,t){let r=t.getOptions(),{publicKey:i}=t.getDsn()||{},s=(0,u.Ce)({environment:r.environment||n.U,release:r.release,public_key:i,trace_id:e});return t.emit("createDsc",s),s}function h(e,t){let r=t.getPropagationContext();return r.dsc||d(r.traceId,e)}function f(e){let t=(0,i.KU)();if(!t)return{};let r=(0,c.zU)(e),n=r._frozenDsc;if(n)return n;let u=r.spanContext().traceState,h=u&&u.get("sentry.dsc"),f=h&&function(e){let t=function(e){if(e&&((0,a.Kg)(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>
73(Object.entries(l(t)).forEach(([t,r])=>{e[t]=r}),e),{}):l(e)}(e);if(!t)return;let r=Object.entries(t).reduce((e,[t,r])=>(t.match(o)&&(e[t.slice(7)]=r),e),{});return Object.keys(r).length>0?r:void 0}(h);if(f)return f;let p=d(e.spanContext().traceId,t),m=(0,c.et)(r),g=m.data||{},y=g[s.sy];null!=y&&(p.sample_rate=`${y}`);let b=g[s.i_],v=m.description;return"url"!==b&&v&&(p.transaction=v),function(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let t=(0,i.KU)(),r=t&&t.getOptions();return!!r&&(r.enableTracing||"tracesSampleRate"in r||"tracesSampler"in r)}()&&(p.sampled=String((0,c.pK)(r))),t.emit("createDsc",p,r),p}},92383:(e,t,r)=>{"use strict";r.d(t,{AF:()=>function e(t){if(null==t)return!0;let r=typeof t;return Array.isArray(t)?function(t){for(let r=0;r<t.length;r++)if(!e(t[r]))return!1;return!0}(t):"object"===r&&function(t){for(let r in t)if("_type"!==r&&"_key"!==r&&n(t,r)&&!e(t[r]))return!1;return!0}(t)},RN:()=>i,Xp:()=>a,yu:()=>l});var n=Object.prototype.hasOwnProperty.call.bind(Object.prototype.hasOwnProperty);function i(e){for(let t in e)if("_type"!==t&&"_key"!==t&&n(e,t)&&void 0!==e[t])return!1;return!0}let s=(()=>{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 a(e){let t=s();return(function(e=16){let t=new Uint8Array(e);return crypto.getRandomValues(t),t})(e).reduce((e,r)=>e+t[r],"").slice(0,e)}let o=Object.prototype.toString;function l(e){let t=function(e){switch(o.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}},92450:(e,t,r)=>{"use strict";function n(e){let[t,r]=e;return[t,r]}function i(e,t){let r=e,n=t,i=r.length,s=n.length;if(0===i||0===s)return 0;i>s?r=r.substring(i-s):i<s&&(n=n.substring(0,i));let a=Math.min(i,s);if(r===n)return a;let o=0,l=1;for(let e=0;-1!==e;){let t=r.substring(a-l);if(-1===(e=n.indexOf(t)))break;l+=e,(0===e||r.substring(a-l)===n.substring(0,l))&&(o=l,l++)}return o}function s(e,t){if(!e||!t||e[0]!==t[0])return 0;let r=0,n=Math.min(e.length,t.length),i=n,s=0;for(;r<i;)e.substring(s,i)===t.substring(s,i)?s=r=i:n=i,i=Math.floor((n-r)/2+r);return i}function a(e,t){if(!e||!t||e[e.length-1]!==t[t.length-1])return 0;let r=0,n=Math.min(e.length,t.length),i=n,s=0;for(;r<i;)e.substring(e.length-i,e.length-s)===t.substring(t.length-i,t.length-s)?s=r=i:n=i,i=Math.floor((n-r)/2+r);return i}function o(e){let t=e.charCodeAt(0);return t>=56320&&t<=57343}function l(e,t,r,n,i){let s=e.substring(0,r),a=t.substring(0,n),o=e.substring(r),l=t.substring(n),u=v(s,a,{checkLines:!1,deadline:i}),c=v(o,l,{checkLines:!1,deadline:i});return u.concat(c)}function u(e,t,r){let n=e.slice(r,r+Math.floor(e.length/4)),i=-1,o="",l,u,c,d;for(;-1!==(i=t.indexOf(n,i+1));){let n=s(e.slice(r),t.slice(i)),h=a(e.slice(0,r),t.slice(0,i));o.length<h+n&&(o=t.slice(i-h,i)+t.slice(i,i+n),l=e.slice(0,r-h),u=e.slice(r+n),c=t.slice(0,i-h),d=t.slice(i+n))}return 2*o.length>=e.length?[l||"",u||"",c||"",d||"",o||""]:null}r.d(t,{$i:()=>G,Cm:()=>m,Ug:()=>g,Vx:()=>k,iU:()=>b,iz:()=>es,jW:()=>et,lw:()=>y,sw:()=>D,w1:()=>eo});var c=Object.defineProperty,d=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,p=(e,t,r)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;let m=-1,g=1,y=0;function b(e,t,r){if(null===e||null===t)throw Error("Null input. (diff)");let n=v(e,t,function(e){let t;var r,n={checkLines:!0,deadline:(r=e.timeout||1,t=1,"u">typeof r&&(t=r<=0?Number.MAX_VALUE:r),Date.now()+1e3*t)},i=e;for(var s in i||(i={}))h.call(i,s)&&p(n,s,i[s]);if(d)for(var s of d(i))f.call(i,s)&&p(n,s,i[s]);return n}(r||{}));return function(e){for(let t=0;t<e.length;t++){let[r,n]=e[t];if(0===n.length)continue;let i=n[0];(function(e){let t=e.charCodeAt(0);return t>=55296&&t<=56319})(n[n.length-1])&&r===y&&x(e,t,1),o(i)&&r===y&&x(e,t,-1)}for(let t=0;t<e.length;t++)0===e[t][1].length&&e.splice(t,1)}(n),n}function v(e,t,r){let n=e,i=t;if(n===i)return n?[[y,n]]:[];let o=s(n,i),c=n.substring(0,o);o=a(n=n.substring(o),i=i.substring(o));let d=n.substring(n.length-o),h=function(e,t,r){let n;if(!e)return[[g,t]];if(!t)return[[m,e]];let i=e.length>t.length?e:t,s=e.length>t.length?t:e,a=i.indexOf(s);if(-1!==a)return n=[[g,i.substring(0,a)],[y,s],[g,i.substring(a+s.length)]],e.length>t.length&&(n[0][0]=m,n[2][0]=m),n;if(1===s.length)return[[m,e],[g,t]];let o=function(e,t,r=1){let n,i,s,a,o;if(r<=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)),h=u(l,c,Math.ceil(l.length/2));if(d&&h)n=d[4].length>h[4].length?d:h;else{if(!d&&!h)return null;h?d||(n=h):n=d}if(!n)throw Error("Unable to find a half match.");return e.length>t.length?(i=n[0],s=n[1],a=n[2],o=n[3]):(a=n[0],o=n[1],i=n[2],s=n[3]),[i,s,a,o,n[4]]}(e,t);if(o){let e=o[0],t=o[1],n=o[2],i=o[3],s=o[4],a=v(e,n,r),l=v(t,i,r);return a.concat([[y,s]],l)}return r.checkLines&&e.length>100&&t.length>100?function(e,t,r){let n=e,i=t,s=function(e,t){let r=[],n={};function i(e){let t="",i=0,a=-1,o=r.length;for(;a<e.length-1;){-1===(a=e.indexOf(`
74`,i))&&(a=e.length-1);let l=e.slice(i,a+1);(n.hasOwnProperty?n.hasOwnProperty(l):void 0!==n[l])?t+=String.fromCharCode(n[l]):(o===s&&(l=e.slice(i),a=e.length),t+=String.fromCharCode(o),n[l]=o,r[o++]=l),i=a+1}return t}r[0]="";let s=4e4,a=i(e);return s=65535,{chars1:a,chars2:i(t),lineArray:r}}(n,i);n=s.chars1,i=s.chars2;let a=s.lineArray,o=v(n,i,{checkLines:!1,deadline:r.deadline});(function(e,t){for(let r=0;r<e.length;r++){let n=e[r][1],i=[];for(let e=0;e<n.length;e++)i[e]=t[n.charCodeAt(e)];e[r][1]=i.join("")}})(o,a),(o=k(o)).push([y,""]);let l=0,u=0,c=0,d="",h="";for(;l<o.length;){switch(o[l][0]){case g:c++,h+=o[l][1];break;case m:u++,d+=o[l][1];break;case y:if(u>=1&&c>=1){o.splice(l-u-c,u+c),l=l-u-c;let e=v(d,h,{checkLines:!1,deadline:r.deadline});for(let t=e.length-1;t>=0;t--)o.splice(l,0,e[t]);l+=e.length}c=0,u=0,d="",h="";break;default:throw Error("Unknown diff operation.")}l++}return o.pop(),o}(e,t,r):function(e,t,r){let n=e.length,i=t.length,s=Math.ceil((n+i)/2),a=2*s,o=Array(a),u=Array(a);for(let e=0;e<a;e++)o[e]=-1,u[e]=-1;o[s+1]=0,u[s+1]=0;let c=n-i,d=c%2!=0,h=0,f=0,p=0,y=0;for(let m=0;m<s&&!(Date.now()>r);m++){for(let p=-m+h;p<=m-f;p+=2){let g,y=s+p,b=(g=p===-m||p!==m&&o[y-1]<o[y+1]?o[y+1]:o[y-1]+1)-p;for(;g<n&&b<i&&e.charAt(g)===t.charAt(b);)g++,b++;if(o[y]=g,g>n)f+=2;else if(b>i)h+=2;else if(d){let i=s+c-p;if(i>=0&&i<a&&-1!==u[i]&&g>=n-u[i])return l(e,t,g,b,r)}}for(let h=-m+p;h<=m-y;h+=2){let f,g=s+h,b=(f=h===-m||h!==m&&u[g-1]<u[g+1]?u[g+1]:u[g-1]+1)-h;for(;f<n&&b<i&&e.charAt(n-f-1)===t.charAt(i-b-1);)f++,b++;if(u[g]=f,f>n)y+=2;else if(b>i)p+=2;else if(!d){let i=s+c-h;if(i>=0&&i<a&&-1!==o[i]){let a=o[i],u=s+a-i;if(a>=(f=n-f))return l(e,t,a,u,r)}}}}return[[m,e],[g,t]]}(e,t,r.deadline)}(n=n.substring(0,n.length-o),i=i.substring(0,i.length-o),r);return c&&h.unshift([y,c]),d&&h.push([y,d]),h=I(h)}function _(e,t,r){return 1===r?e+t:t+e}function w(e,t){return 1===t?[e.substring(0,e.length-1),e[e.length-1]]:[e.substring(1),e[0]]}function x(e,t,r){var n,i;let s=1===r?-1:1,a=null,o=null,l=t+r;for(;l>=0&&l<e.length&&(null===a||null===o);l+=r){let[n,i]=e[l];if(0!==i.length){if(n===g){null===a&&(a=l);continue}else if(n===m){null===o&&(o=l);continue}else if(n===y){if(null===a&&null===o){let[n,i]=w(e[t][1],r);e[t][1]=n,e[l][1]=_(e[l][1],i,s);return}break}}}if(null!==a&&null!==o&&(n=a,i=o,1===r?e[n][1][e[n][1].length-1]===e[i][1][e[i][1].length-1]:e[n][1][0]===e[i][1][0])){let[
74n,i]=w(e[a][1],s),[l]=w(e[o][1],s);e[a][1]=n,e[o][1]=l,e[t][1]=_(e[t][1],i,r);return}let[u,c]=w(e[t][1],r);e[t][1]=u,null===a?(e.splice(l,0,[g,c]),null!==o&&o>=l&&o++):e[a][1]=_(e[a][1],c,s),null===o?e.splice(l,0,[m,c]):e[o][1]=_(e[o][1],c,s)}function k(e){let t=e.map(e=>n(e)),r=!1,s=[],a=0,o=null,l=0,u=0,c=0,d=0,h=0;for(;l<t.length;)t[l][0]===y?(s[a++]=l,u=d,c=h,d=0,h=0,o=t[l][1]):(t[l][0]===g?d+=t[l][1].length:h+=t[l][1].length,o&&o.length<=Math.max(u,c)&&o.length<=Math.max(d,h)&&(t.splice(s[a-1],0,[m,o]),t[s[a-1]+1][0]=g,a--,l=--a>0?s[a-1]:-1,u=0,c=0,d=0,h=0,o=null,r=!0)),l++;for(r&&(t=I(t)),t=T(t),l=1;l<t.length;){if(t[l-1][0]===m&&t[l][0]===g){let e=t[l-1][1],r=t[l][1],n=i(e,r),s=i(r,e);n>=s?(n>=e.length/2||n>=r.length/2)&&(t.splice(l,0,[y,r.substring(0,n)]),t[l-1][1]=e.substring(0,e.length-n),t[l+1][1]=r.substring(n),l++):(s>=e.length/2||s>=r.length/2)&&(t.splice(l,0,[y,e.substring(0,s)]),t[l-1][0]=g,t[l-1][1]=r.substring(0,r.length-s),t[l+1][0]=m,t[l+1][1]=e.substring(s),l++),l++}l++}return t}let E=/[^a-zA-Z0-9]/,S=/\s/,A=/[\r\n]/,O=/\n\r?\n$/,C=/^\r?\n\r?\n/;function T(e){let t=e.map(e=>n(e));function r(e,t){if(!e||!t)return 6;let r=e.charAt(e.length-1),n=t.charAt(0),i=r.match(E),s=n.match(E),a=i&&r.match(S),o=s&&n.match(S),l=a&&r.match(A),u=o&&n.match(A),c=l&&e.match(O),d=u&&t.match(C);return c||d?5:l||u?4:i&&!a&&o?3:a||o?2:i||s?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],n=t[i][1],s=t[i+1][1],o=a(e,n);if(o){let t=n.substring(n.length-o);e=e.substring(0,e.length-o),n=t+n.substring(0,n.length-o),s=t+s}let l=e,u=n,c=s,d=r(e,n)+r(n,s);for(;n.charAt(0)===s.charAt(0);){e+=n.charAt(0),n=n.substring(1)+s.charAt(0),s=s.substring(1);let t=r(e,n)+r(n,s);t>=d&&(d=t,l=e,u=n,c=s)}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 I(e){let t=e.map(e=>n(e));t.push([y,""]);let r=0,i=0,o=0,l="",u="",c;for(;r<t.length;)switch(t[r][0]){case g:o++,u+=t[r][1],r++;break;case m:i++,l+=t[r][1],r++;break;case y:i+o>1?(0!==i&&0!==o&&(0!==(c=s(u,l))&&(r-i-o>0&&t[r-i-o-1][0]===y?t[r-i-o-1][1]+=u.substring(0,c):(t.splice(0,0,[y,u.substring(0,c)]),r++),u=u.substring(c),l=l.substring(c)),0!==(c=a(u,l))&&(t[r][1]=u.substring(u.length-c)+t[r][1],u=u.substring(0,u.length-c),l=l.substring(0,l.length-c))),r-=i+o,t.splice(r,i+o),l.length&&(t.splice(r,0,[m,l]),r++),u.length&&(t.splice(r,0,[g,u]),r++),r++):0!==r&&t[r-1][0]===y?(t[r-1][1]+=t[r][1],t.splice(r,1)):r++,o=0,i=0,l="",u="";break;default:throw Error("Unknown diff operation")}""===t[t.length-1][1]&&t.pop();let d=!1;for(r=1;r<t.length-1;)t[r-1][0]===y&&t[r+1][0]===y&&(t[r][1].substring(t[r][1].length-t[r-1][1].length)===t[r-1][1]?(t[r][1]=t[r-1][1]+t[r][1].substring(0,t[r][1].length-t[r-1][1].length),t[r+1][1]=t[r-1][1]+t[r+1][1],t.splice(r-1,1),d=!0):t[r][1].substring(0,t[r+1][1].length)===t[r+1][1]&&(t[r-1][1]+=t[r+1][1],t[r][1]=t[r][1].substring(t[r+1][1].length)+t[r+1][1],t.splice(r+1,1),d=!0)),r++;return d&&(t=I(t)),t}function D(e,t=4){let r=e.map(e=>n(e)),i=!1,s=[],a=0,o=null,l=0,u=!1,c=!1,d=!1,h=!1;for(;l<r.length;)r[l][0]===y?(r[l][1].length<t&&(d||h)?(s[a++]=l,u=d,c=h,o=r[l][1]):(a=0,o=null),d=!1,h=!1):(r[l][0]===m?h=!0:d=!0,o&&(u&&c&&d&&h||o.length<t/2&&3===function(...e){return e.reduce((e,t)=>e+ +!!t,0)}(u,c,d,h))&&(r.splice(s[a-1],0,[m,o]),r[s[a-1]+1][0]=g,a--,o=null,u&&c?(d=!0,h=!0,a=0):(l=--a>0?s[a-1]:-1,d=!1,h=!1),i=!0)),l++;return i&&(r=I(r)),r}var j=Object.defineProperty,R=Object.getOwnPropertySymbols,N=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable,M=(e,t,r)=>t in e?j(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,F=(e,t)=>{for(var r in t||(t={}))N.call(t,r)&&M(e,r,t[r]);if(R)for(var r of R(t))$.call(t,r)&&M(e,r,t[r]);return e};let P={threshold:.5,distance:1e3};function L(e,t,r,n={}){if(null===e||null===t||null===r)throw Error("Null input. (match())");let i=Math.max(0,Math.min(r,e.length));return e===t?0:e.length?e.substring(i,i+t.length)===t?i:function(e,t,r,n={}){if(t.length>32)throw Error("Pattern too long for this browser.");let i=F(F({},P),n),s=function(e){let t={};for(let r=0;r<e.length;r++)t[e.charAt(r)]=0;for(let r=0;r<e.length;r++)t[e.charAt(r)]|=1<<e.length-r-1;return t}(t);function a(e,n){let s=e/t.length,a=Math.abs(r-n);return i.distance?s+a/i.distance:a?1:s}let o=i.threshold,l=e.indexOf(t,r);-1!==l&&(o=Math.min(a(0,l),o),-1!==(l=e.lastIndexOf(t,r+t.length))&&(o=Math.min(a(0,l),o)));let u=1<<t.length-1;l=-1;let c,d,h=t.length+e.length,f=[];for(let n=0;n<t.length;n++){for(c=0,d=h;c<d;)a(n,r+d)<=o?c=d:h=d,d=Math.floor((h-c)/2+c);h=d;let i=Math.max(1,r-d+1),p=Math.min(r+d,e.length)+t.length,m=Array(p+2);m[p+1]=(1<<n)-1;for(let t=p;t>=i;t--){let c=s[e.charAt(t-1)];if(0===n?m[t]=(m[t+1]<<1|1)&c:m[t]=(m[t+1]<<1|1)&c|((f[t+1]|f[t])<<1|1)|f[t+1],m[t]&u){let e=a(n,t-1);if(e<=o)if(o=e,(l=t-1)>r)i=Math.max(1,2*r-l);else break}}if(a(n+1,r)>o)break;f=m}return l}(e,t,i,n):-1}function z(e){let t=[];for(let r=0;r<e.length;r++)e[r][0]!==g&&(t[r]=e[r][1]);return t.join("")}function q(e){let t=[];for(let r=0;r<e.length;r++)e[r][0]!==m&&(t[r]=e[r][1]);return t.join("")}function U(e,t){let r=0,n=0,i=0,s=0,a;for(a=0;a<e.length&&(e[a][0]!==g&&(r+=e[a][1].length),e[a][0]!==m&&(n+=e[a][1].length),!(r>t));a++)i=r,s=n;return e.length!==a&&e[a][0]===m?s:s+(t-i)}function B(e){let t=0;for(let r=0;r<e.length;r++){let n=e.codePointAt(r);if(typeof n>"u")throw Error("Failed to get codepoint");t+=V(n)}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 G(e,t,r={}){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 s=function(e,t,r={}){let i=0,s=0;function a(e){for(;i<e;){let e=t.codePointAt(s);if(typeof e>"u")return s;i+=V(e),e>65535?s+=2:s+=1}if(!r.allowExceedingIndices&&i!==e)throw Error("Failed to determine byte offset");return s}let o=[];for(let t of e)o.push({diffs:t.diffs.map(e=>n(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 o}(e,i,{allowExceedingIndices:r.allowExceedingIndices}),a=r.margin||4,o=r.deleteThreshold||.4,l=function(e,t=4){let r="";for(let e=1;e<=t;e++)r+=String.fromCharCode(e);for(let r of e)r.start1+=t,r.start2+=t,r.utf8Start1+=t,r.utf8Start2+=t;let n=e[0],i=n.diffs;if(0===i.length||i[0][0]!==y)i.unshift([y,r]),n.start1-=t,n.start2-=t,n.utf8Start1-=t,n.utf8Start2-=t,n.length1+=t,n.length2+=t,n.utf8Length1+=t,n.utf8Length2+=t;else if(t>i[0][1].length){let e=i[0][1].length,s=t-e;i[0][1]=r.substring(e)+i[0][1],n.start1-=s,n.start2-=s,n.utf8Start1-=s,n.utf8Start2-=s,n.length1+=s,n.length2+=s,n.utf8Length1+=s,n.utf8Length2+=s}if(0===(i=(n=e[e.length-1]).diffs).length||i[i.length-1][0]!==y)i.push([y,r]),n.length1+=t,n.length2+=t,n.utf8Length1+=t,n.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]+=r.substring(0,e),n.length1+=e,n.length2+=e,n.utf8Length1+=e,n.utf8Length2+=e}return r}(s,a);i=l+i+l,function(e,t=4){for(let r=0;r<e.length;r++){if(e[r].length1<=32)continue;let n=e[r];
74e.splice(r--,1);let i=n.start1,s=n.start2,a="";for(;0!==n.diffs.length;){let o=H(i-a.length,s-a.length),l=!0;if(""!==a){let e=B(a);o.length1=a.length,o.utf8Length1=e,o.length2=a.length,o.utf8Length2=e,o.diffs.push([y,a])}for(;0!==n.diffs.length&&o.length1<32-t;){let e=n.diffs[0][0],r=n.diffs[0][1],a=B(r);if(e===g){o.length2+=r.length,o.utf8Length2+=a,s+=r.length;let e=n.diffs.shift();e&&o.diffs.push(e),l=!1}else e===m&&1===o.diffs.length&&o.diffs[0][0]===y&&r.length>64?(o.length1+=r.length,o.utf8Length1+=a,i+=r.length,l=!1,o.diffs.push([e,r]),n.diffs.shift()):(a=B(r=r.substring(0,32-o.length1-t)),o.length1+=r.length,o.utf8Length1+=a,i+=r.length,e===y?(o.length2+=r.length,o.utf8Length2+=a,s+=r.length):l=!1,o.diffs.push([e,r]),r===n.diffs[0][1]?n.diffs.shift():n.diffs[0][1]=n.diffs[0][1].substring(r.length))}a=(a=q(o.diffs)).substring(a.length-t);let u=z(n.diffs).substring(0,t),c=B(u);""!==u&&(o.length1+=u.length,o.length2+=u.length,o.utf8Length1+=c,o.utf8Length2+=c,0!==o.diffs.length&&o.diffs[o.diffs.length-1][0]===y?o.diffs[o.diffs.length-1][1]+=u:o.diffs.push([y,u])),l||e.splice(++r,0,o)}}}(s,a);let u=0,c=[];for(let e=0;e<s.length;e++){let t=s[e].start2+u,r=z(s[e].diffs),n,a=-1;if(r.length>32?-1!==(n=L(i,r.substring(0,32),t))&&(-1===(a=L(i,r.substring(r.length-32),t+r.length-32))||n>=a)&&(n=-1):n=L(i,r,t),-1===n)c[e]=!1,u-=s[e].length2-s[e].length1;else{let l;if(c[e]=!0,u=n-t,l=-1===a?i.substring(n,n+r.length):i.substring(n,a+32),r===l)i=i.substring(0,n)+q(s[e].diffs)+i.substring(n+r.length);else{let t=b(r,l,{checkLines:!1});if(r.length>32&&function(e){let t=0,r=0,n=0;for(let i=0;i<e.length;i++){let s=e[i][0],a=e[i][1];switch(s){case g:r+=a.length;break;case m:n+=a.length;break;case y:t+=Math.max(r,n),r=0,n=0;break;default:throw Error("Unknown diff operation.")}}return t+Math.max(r,n)}(t)/r.length>o)c[e]=!1;else{t=T(t);let r=0,a=0;for(let o=0;o<s[e].diffs.length;o++){let l=s[e].diffs[o];l[0]!==y&&(a=U(t,r)),l[0]===g?i=i.substring(0,n+a)+l[1]+i.substring(n+a):l[0]===m&&(i=i.substring(0,n+a)+i.substring(n+U(t,r+l[1].length))),l[0]!==m&&(r+=l[1].length)}}}}}return[i=i.substring(l.length,i.length-l.length),c]}var W=Object.defineProperty,Z=Object.getOwnPropertySymbols,Y=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable,J=(e,t,r)=>t in e?W(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,X=(e,t)=>{for(var r in t||(t={}))Y.call(t,r)&&J(e,r,t[r]);if(Z)for(var r of Z(t))K.call(t,r)&&J(e,r,t[r]);return e};let Q={margin:4};function ee(e={}){return X(X({},Q),e)}function et(e,t,r){if("string"==typeof e&&"string"==typeof t){let n=b(e,t,{checkLines:!0});return n.length>2&&(n=D(n=k(n))),er(e,n,ee(r))}if(e&&Array.isArray(e)&&typeof t>"u")return er(z(e),e,ee(r));if("string"==typeof e&&t&&Array.isArray(t))return er(e,t,ee(r));throw Error("Unknown call format to make()")}function er(e,t,r){if(0===t.length)return[];let n=[],i=H(0,0),s=0,a=0,o=0,l=0,u=0,c=e,d=e;for(let e=0;e<t.length;e++){let h=t[e],[f,p]=h,b=p.length,v=B(p);switch(!s&&f!==y&&(i.start1=a,i.start2=o,i.utf8Start1=l,i.utf8Start2=u),f){case g:i.diffs[s++]=h,i.length2+=b,i.utf8Length2+=v,d=d.substring(0,o)+p+d.substring(o);break;case m:i.length1+=b,i.utf8Length1+=v,i.diffs[s++]=h,d=d.substring(0,o)+d.substring(o+b);break;case y:b<=2*r.margin&&s&&t.length!==e+1?(i.diffs[s++]=h,i.length1+=b,i.length2+=b,i.utf8Length1+=v,i.utf8Length2+=v):b>=2*r.margin&&s&&(en(i,c,r),n.push(i),i=H(-1,-1),s=0,c=d,a=o,l=u);break;default:throw Error("Unknown diff type")}f!==g&&(a+=b,l+=v),f!==m&&(o+=b,u+=v)}return s&&(en(i,c,r),n.push(i)),n}function en(e,t,r){if(0===t.length)return;let n=t.substring(e.start2,e.start2+e.length1),i=0;for(;t.indexOf(n)!==t.lastIndexOf(n)&&n.length<32-r.margin-r.margin;)i+=r.margin,n=t.substring(e.start2-i,e.start2+e.length1+i);i+=r.margin;let s=e.start2-i;s>=1&&o(t[s])&&s--;let a=t.substring(s,e.start2);a&&e.diffs.unshift([y,a]);let l=a.length,u=B(a),c=e.start2+e.length1+i;c<t.length&&o(t[c])&&c++;let d=t.substring(e.start2+e.length1,c);d&&e.diffs.push([y,d]);let h=d.length,f=B(d);e.start1-=l,e.start2-=l,e.utf8Start1-=u,e.utf8Start2-=u,e.length1+=l+h,e.length2+=l+h,e.utf8Length1+=u+f,e.utf8Length2+=u+f}let ei=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;function es(e){if(!e)return[];let t=[],r=e.split(`
75`),n=0;for(;n<r.length;){let e=r[n].match(ei);if(!e)throw Error(`Invalid patch string: ${r[n]}`);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),n++;n<r.length;){let e,t=r[n],s=t.charAt(0);if("@"===s)break;if(""===s){n++;continue}try{e=decodeURI(t.slice(1))}catch(e){throw Error(`Illegal escape in parse: ${t}`)}let a=B(e)-e.length;if("-"===s)i.diffs.push([m,e]),i.length1-=a;else if("+"===s)i.diffs.push([g,e]),i.length2-=a;else if(" "===s)i.diffs.push([y,e]),i.length1-=a,i.length2-=a;else throw Error(`Invalid patch mode "${s}" in: ${e}`);n++}}return t}function ea(e){return parseInt(e,10)}function eo(e){return e.map(el).join("")}function el(e){let t,r,n,{utf8Length1:i,utf8Length2:s,utf8Start1:a,utf8Start2:o,diffs:l}=e;t=0===i?`${a},0`:1===i?`${a+1}`:`${a+1},${i}`,r=0===s?`${o},0`:1===s?`${o+1}`:`${o+1},${s}`;let u=[`@@ -${t} +${r} @@
76`];for(let e=0;e<l.length;e++){switch(l[e][0]){case g:n="+";break;case m:n="-";break;case y:n=" ";break;default:throw Error("Unknown patch operation.")}u[e+1]=`${n+encodeURI(l[e][1])}
77`}return u.join("").replace(/%20/g," ")}},92521:(e,t,r)=>{"use strict";r.d(t,{U:()=>n});
77class n extends Error{constructor(e,t="warn"){super(e),this.message=e,this.logLevel=t}}},92908:(e,t,r)=>{var n=r(80984),i=r(61173),s=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols;e.exports=a?function(e){return null==e?[]:n(a(e=Object(e)),function(t){return s.call(e,t)})}:i},92966:(e,t,r)=>{var n=r(58516);e.exports=function(e,t){return n(t,function(t){return e[t]})}},93024:(e,t,r)=>{var n=r(25473);e.exports=function(){this.__data__=new n,this.size=0}},93041:(e,t,r)=>{var n=r(78903),i=r(12387),s=r(40767),a=r(91187),o=r(94959),l=r(56803);e.exports=function(e,t,r){var u=-1,c=i,d=e.length,h=!0,f=[],p=f;if(r)h=!1,c=s;else if(d>=200){var m=t?null:o(e);if(m)return l(m);h=!1,c=a,p=new n}else p=t?[]:f;n:for(;++u<d;){var g=e[u],y=t?t(g):g;if(g=r||0!==g?g:0,h&&y==y){for(var b=p.length;b--;)if(p[b]===y)continue n;t&&p.push(y),f.push(g)}else c(p,y,r)||(p!==f&&p.push(y),f.push(g))}return f}},93219:(e,t,r)=>{"use strict";e.exports=r(9193)},93790:(e,t,r)=>{"use strict";r.d(t,{Eg:()=>v,Hj:()=>_,J8:()=>i,Jo:()=>f,Kk:()=>m,OL:()=>S,RJ:()=>O,SV:()=>y,WV:()=>a,XE:()=>l,_Q:()=>p,aR:()=>h,fr:()=>k,iL:()=>d,lV:()=>x,m4:()=>c,qX:()=>u,rT:()=>b,u3:()=>s,wE:()=>o,wr:()=>w});var n=r(98833);function i({context:e,block:t}){if((0,n.zS)(e,t.node)){let r=t.node.children[t.node.children.length-1];if(r)return{path:[...t.path,"children",{_key:r._key}],offset:(0,n.bl)(e,r)?r.text.length:0}}return{path:t.path,offset:0}}function s({context:e,block:t}){return(0,n.zS)(e,t.node)?{path:[...t.path,"children",{_key:t.node.children[0]._key}],offset:0}:{path:t.path,offset:0}}function a(e){return!!e&&JSON.stringify(e.anchor.path)===JSON.stringify(e.focus.path)&&e.anchor.offset===e.focus.offset}function o(e){return"object"==typeof e&&null!==e&&"_key"in e}function l(e){let t=e.path.at(0);if(o(t))return t._key}function u(e){let t=e.path.at(2);if(o(t))return t._key}function c({context:e,blockOffset:t,direction:r}){let i=t.offset,s,a=!1;for(let o of e.value)if(o._key===t.path[0]._key&&(0,n.zS)(e,o))for(let l of o.children){if("forward"===r){if(!(0,n.bl)(e,l))continue;if(i<=l.text.length){s={path:[...t.path,"children",{_key:l._key}],offset:i};break}i-=l.text.length;continue}if(!(0,n.bl)(e,l)){a=!0;continue}if(0===i&&s&&!a){a&&(s={path:[...t.path,"children",{_key:l._key}],offset:0});break}if(i>l.text.length){i-=l.text.length;continue}if(i<=l.text.length&&(s={path:[...t.path,"children",{_key:l._key}],offset:i},0!=(i-=l.text.length)))break}return s}function d({context:e,selectionPoint:t}){let r=0,i=l(t),s=u(t);if(!(!i||!s)){for(let a of e.value)if(a._key===i&&(0,n.zS)(e,a)){for(let i of a.children)if((0,n.bl)(e,i)){if(i._key===s)return{path:[{_key:a._key}],offset:r+t.offset};r+=i.text.length}}}}function h(e){return e?e.backward?e.anchor:e.focus:null}function f(e){return e?e.backward?e.focus:e.anchor:null}function p(e,t){return e.offset===t.offset&&JSON.stringify(e.path)===JSON.stringify(t.path)}function m(e){return g(e)&&"string"==typeof e._type}function g(e){return!!e&&("object"==typeof e||"function"==typeof e)}function y({context:e,blocks:t,options:r}){return Array.isArray(t)?t.flatMap(t=>{let n=b({context:e,block:t,options:r});return n?[n]:[]}):[]}function b({context:e,block:t,options:r}){return function({block:e,context:t,options:r}){if(!m(e))return;let i={};for(let n of Object.keys(e))"_type"===n||"_key"===n||"children"===n||"markDefs"===n||"style"===n||"listItem"===n||"level"===n||(r.validateFields?t.schema.block.fields?.some(e=>e.name===n)&&(i[n]=e[n]):i[n]=e[n]);if(e._type!==t.schema.block.name)return;let s="string"==typeof e._key?e._key:t.keyGenerator(),{markDefs:a,markDefKeyMap:o}=_({context:t,markDefs:e.markDefs,options:r}),l=(Array.isArray(e.children)?e.children:[]).map(e=>(function({child:e,context:t,markDefKeyMap:r,options:n}){return w({span:e,context:t,markDefKeyMap:r,options:n})??x({inlineObject:e,context:t,options:n})})({child:e,context:t,markDefKeyMap:o,options:r})).filter(e=>void 0!==e),u=l.flatMap(e=>e.marks??[]),c=l.length>0?l:[{_key:t.keyGenerator(),_type:t.schema.span.name,text:"",marks:[]}],d=r.normalize?c.reduce((e,r,i)=>{if((0,n.bl)(t,r))return[...e,r];let s=e.at(-1);return s&&(0,n.bl)(t,s)?[...e,r]:[...e,{_key:t.keyGenerator(),_type:t.schema.span.name,text:"",marks:[]},r,...i===c.length-1?[{_key:t.keyGenerator(),_type:t.schema.span.name,text:"",marks:[]}]:[]]},[]):c,h={_type:t.schema.block.name,_key:s,children:d,...i};return"object"==typeof e.markDefs&&null!==e.markDefs&&(h.markDefs=r.removeUnusedMarkDefs?a.filter(e=>u.includes(e._key)):a),"string"==typeof e.style&&t.schema.styles.find(t=>t.name===e.style)&&(h.style=e.style),"string"==typeof e.listItem&&t.schema.lists.find(t=>t.name===e.listItem)&&(h.listItem=e.listItem),"number"==typeof e.level&&(h.level=e.level),h}({block:t,context:e,options:r})??function({blockObject:e,context:t,options:r}){if(!m(e))return;let n=t.schema.blockObjects.find(({name:t})=>t===e._type);if(n)return E({object:e,context:{keyGenerator:t.keyGenerator,schemaType:n},options:r})}({blockObject:t,context:e,options:r})}function v(e,t){return(0,n.zS)(e,t)&&void 0!==t.level&&void 0!==t.listItem}function _({context:e,markDefs:t,options:r}){let n=Array.isArray(t)?t:[],i=new Map;return{markDefs:n.flatMap(t=>{if(!m(t))return[];
77let n=e.schema.annotations.find(({name:e})=>e===t._type);if(!n||"string"!=typeof t._key)return[];let s=E({object:t,context:{schemaType:n,keyGenerator:e.keyGenerator},options:r});return s?(i.set(t._key,s._key),[s]):[]}),markDefKeyMap:i}}function w({span:e,context:t,markDefKeyMap:r,options:n}){if(!g(e))return;let i={};for(let t of Object.keys(e))"_type"!==t&&"_key"!==t&&"text"!==t&&"marks"!==t&&(i[t]=e[t]);let s=(Array.isArray(e.marks)?e.marks:[]).flatMap(e=>{if("string"!=typeof e)return[];let n=r.get(e);return void 0!==n?[n]:t.schema.decorators.some(t=>t.name===e)?[e]:[]});if("string"!=typeof e._type||e._type===t.schema.span.name)return"string"!=typeof e._type?"string"==typeof e.text?{_type:t.schema.span.name,_key:"string"==typeof e._key?e._key:t.keyGenerator(),text:e.text,marks:s,...n.validateFields?{}:i}:void 0:{_type:t.schema.span.name,_key:"string"==typeof e._key?e._key:t.keyGenerator(),text:"string"==typeof e.text?e.text:"",marks:s,...n.validateFields?{}:i}}function x({inlineObject:e,context:t,options:r}){if(!m(e))return;let n=t.schema.inlineObjects.find(({name:t})=>t===e._type);if(n)return E({object:e,context:{keyGenerator:t.keyGenerator,schemaType:n},options:r})}function k({annotation:e,context:t,options:r}){if(!m(e))return;let n=t.schema.annotations.find(({name:t})=>t===e._type);if(n)return E({object:e,context:{keyGenerator:t.keyGenerator,schemaType:n},options:r})}function E({object:e,context:t,options:r}){let{_type:n,_key:i,...s}=e,a=r.validateFields?t.schemaType.fields.reduce((t,r)=>{let n=e[r.name];return void 0!==n&&(t[r.name]=n),t},{}):s;return{_type:t.schemaType.name,_key:"string"==typeof e._key?e._key:t.keyGenerator(),...a}}let S=()=>(function(e){let t=A();return(function(e=16){let t=new Uint8Array(e);return crypto.getRandomValues(t),t})(12).reduce((e,r)=>e+t[r],"").slice(0,e)})(12),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 O({context:e,blocks:t}){let r,i,s=[];if(!e.selection)return s;let a=[],o=f(e.selection),c=h(e.selection),d=l(o),p=u(o),m=l(c),g=u(c);if(!d||!m)return s;for(let s of t){if(!(0,n.zS)(e,s)&&s._key===d&&s._key===m){r=s;break}if(s._key===d){if(!(0,n.zS)(e,s)){r=s;continue}if(p){for(let t of s.children){if(t._key===p){if((0,n.bl)(e,t)){let e=t._key===g?t.text.slice(o.offset,c.offset):t.text.slice(o.offset);r={...s,children:[{...t,text:e}]}}else r={...s,children:[t]};if(s._key===m&&p===g)break;continue}if(r&&(0,n.zS)(e,r)&&(g&&t._key===g&&(0,n.bl)(e,t)?r.children.push({...t,text:t.text.slice(0,c.offset)}):r.children.push(t),s._key===m&&g&&t._key===g))break}if(d===m)break;continue}if(r=s,d===m)break}if(s._key===m){if(!(0,n.zS)(e,s)){i=s;break}if(g){for(let t of(i={...s,children:[]},s.children))if(i&&(0,n.zS)(e,i)){if(t._key===g&&(0,n.bl)(e,t)){i.children.push({...t,text:t.text.slice(0,c.offset)});break}if(i.children.push(t),g&&t._key===g)break}break}i=s;break}r&&a.push(b({context:{schema:e.schema,keyGenerator:e.keyGenerator??S},block:s,options:{normalize:!1,removeUnusedMarkDefs:!0,validateFields:!1}})??s)}let y=r?b({context:{schema:e.schema,keyGenerator:e.keyGenerator??S},block:r,options:{normalize:!1,removeUnusedMarkDefs:!0,validateFields:!1}}):void 0,v=i?b({context:{schema:e.schema,keyGenerator:e.keyGenerator??S},block:i,options:{normalize:!1,removeUnusedMarkDefs:!0,validateFields:!1}}):void 0;return[...y?[y]:[],...a,...v?[v]:[]]}},94273:(e,t,r)=>{e=r.nmd(e);var n=r(86096),i=t&&!t.nodeType&&t,s=i&&e&&!e.nodeType&&e,a=s&&s.exports===i&&n.process,o=function(){try{var e=s&&s.require&&s.require("util").types;if(e)return e;return a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=o},94434:(e,t,r)=>{"use strict";r.d(t,{w:()=>d});var n=r(13220),i=r(10751),s=r(84841),a=r(81451),o=r(66507),l=r(43523),u=r(61297),c=r(50646);function d(e){for(var t,r,d=[],h=1;h<arguments.length;h++)d[h-1]=arguments[h];var f=null!=(t=(0,u.lI)(d))?t:l.E,p=null!=(r=d[0])?r:null,m=d[1]||1/0;return(0,s.N)(function(t,r){var s=[],l=!1,u=function(e){var t=e.buffer;e.subs.unsubscribe(),(0,o.o)(s,e),r.next(t),l&&d()},d=function(){if(s){var t=new i.yU;r.add(t);var n={buffer:[],subs:t};s.push(n),(0,c.N)(t,f,function(){return u(n)},e)}};null!==p&&p>=0?(0,c.N)(r,f,d,p,!0):l=!0,d();var h=(0,a._)(r,function(e){var t,r,i=s.slice();try{for(var a=(0,n.Ju)(i),o=a.next();!o.done;o=a.next()){var l=o.value,c=l.buffer;c.push(e),m<=c.length&&u(l)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}},function(){for(;null==s?void 0:s.length;)r.next(s.shift().buffer);null==h||h.unsubscribe(),r.complete(),r.unsubscribe()},void 0,function(){return s=null});t.subscribe(h)})}},94933:(e,t,r)=>{"use strict";r.d(t,{$:()=>l});var n=r(2782),i=r(2297),s=r(28167),a=r(84841),o=r(81451);function l(e,t,r,l){return(0,a.N)(function(a,u){t&&"function"!=typeof t?(r=t.duration,c=t.element,l=t.connector):c=t;var c,d=new Map,h=function(e){d.forEach(e),e(u)},f=function(e){return h(function(t){return t.error(e)})},p=0,m=!1,g=new o.H(u,function(t){try{var a=e(t),h=d.get(a);if(!h){d.set(a,h=l?l():new s.B);var y,b,v,_=(y=a,b=h,(v=new n.c(function(e){p++;var t=b.subscribe(e);return function(){t.unsubscribe(),0==--p&&m&&g.unsubscribe()}})).key=y,v);if(u.next(_),r){var w=(0,o._)(h,function(){h.complete(),null==w||w.unsubscribe()},void 0,void 0,function(){return d.delete(a)});g.add((0,i.Tg)(r(_)).subscribe(w))}}h.next(c?c(t):t)}catch(e){f(e)}},function(){return h(function(e){return e.complete()})},f,function(){return d.clear()},function(){return m=!0,0===p});a.subscribe(g)})}},94959:(e,t,r)=>{var n=r(47479),i=r(50240),s=r(56803);e.exports=n&&1/s(new n([,-0]))[1]==1/0?function(e){return new n(e)}:i},95221:(e,t,r)=>{"use strict";r.d(t,{i:()=>s});var n=r(60266),i=((()=>{try{return!0}catch(e){return!1}})(),(()=>{try{return!1}catch(e){return!1}})());function s(e){if(i){var t;return t=e,void(0,n.useEffect)(()=>{},[t])}}},95323:(e,t,r)=>{"use strict";let n=r(38576),i=r(43166);e.exports=(e,t,r)=>{let s=[],a=null,o=null,l=e.sort((e,t)=>
77i(e,t,r));for(let e of l)n(e,t,r)?(o=e,a||(a=e)):(o&&s.push([a,o]),o=null,a=null);a&&s.push([a,null]);let u=[];for(let[e,t]of s)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}},95432:(e,t,r)=>{var n=r(70725),i=r(50550),s=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return i(e);var t=[];for(var r in Object(e))s.call(e,r)&&"constructor"!=r&&t.push(r);return t}},95728:(e,t,r)=>{"use strict";r.d(t,{t:()=>i});var n=r(13177);function i(e,t,r){let[i,s]=(0,n.x)(null==r?void 0:r.in,e,t);return i.getFullYear()===s.getFullYear()&&i.getMonth()===s.getMonth()}},96221:(e,t,r)=>{"use strict";r.d(t,{o:()=>i});var n=r(97537);function i(e,t){let r=(0,n.a)(e,null==t?void 0:t.in);return r.setHours(0,0,0,0),r}},96666:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},96807:(e,t,r)=>{"use strict";r.d(t,{p:()=>u});var n=r(28077),i=r(3352);function s(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,r,n){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:r,parent_id:n}}var o=r(32785),l=r(16566);let u=(0,o._C)((e={})=>{let t=e.limit||5,r=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,o,u){let c=u.getOptions();!function(e,t,r=250,o,l,u,c){var d,h;if(!u.exception||!u.exception.values||!c||!(0,n.tH)(c.originalException,Error))return;let f=u.exception.values.length>0?u.exception.values[u.exception.values.length-1]:void 0;f&&(u.exception.values=(d=function e(t,r,i,o,l,u,c,d){if(u.length>=i+1)return u;let h=[...u];
77if((0,n.tH)(o[l],Error)){s(c,d);let n=t(r,o[l]),u=h.length;a(n,l,u,d),h=e(t,r,i,o[l],l,[n,...h],n,u)}return Array.isArray(o.errors)&&o.errors.forEach((o,u)=>{if((0,n.tH)(o,Error)){s(c,d);let n=t(r,o),f=h.length;a(n,`errors[${u}]`,f,d),h=e(t,r,i,o,l,[n,...h],n,f)}}),h}(e,t,l,c.originalException,o,u.exception.values,f,0),h=r,d.map(e=>(e.value&&(e.value=(0,i.xv)(e.value,h)),e))))}(l.K8,c.stackParser,c.maxValueLength,r,t,e,o)}}})},96885:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>e2});var n,i,s=r(19857),a=r(52592),o=r(60266),l="data-focus-lock",u="data-focus-lock-disabled";function c(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var d="undefined"!=typeof window?o.useLayoutEffect:o.useEffect,h=new WeakMap,f={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},p=r(13220);function m(e){return e}function g(e,t){void 0===t&&(t=m);var r=[],n=!1;return{read:function(){if(n)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(e){var i=t(e,n);return r.push(i),function(){r=r.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(n=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){n=!0;var t=[];if(r.length){var i=r;r=[],i.forEach(e),t=r}var s=function(){var r=t;t=[],r.forEach(e)},a=function(){return Promise.resolve().then(s)};a(),r={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),r}}}}}function y(e,t){return void 0===t&&(t=m),g(e,t)}var b=y({},function(e){return{target:e.target,currentTarget:e.currentTarget}}),v=y(),_=y(),w=function(e){void 0===e&&(e={});var t=g(null);return t.options=(0,p.Cl)({async:!0,ssr:!1},e),t}({async:!0,ssr:"undefined"!=typeof document}),x=(0,o.createContext)(void 0),k=[],E=(0,o.forwardRef)(function(e,t){var r,n,i,s,p,m=(0,o.useState)(),g=m[0],y=m[1],_=(0,o.useRef)(),E=(0,o.useRef)(!1),S=(0,o.useRef)(null),A=(0,o.useState)({})[1],O=e.children,C=e.disabled,T=void 0!==C&&C,I=e.noFocusGuards,D=void 0!==I&&I,j=e.persistentFocus,R=e.crossFrame,N=e.autoFocus,$=(e.allowTextSelection,e.group),M=e.className,F=e.whiteList,P=e.hasPositiveIndices,L=e.shards,z=void 0===L?k:L,q=e.as,U=e.lockProps,B=e.sideCar,V=e.returnFocus,H=void 0!==V&&V,G=e.focusOptions,W=e.onActivation,Z=e.onDeactivation,Y=(0,o.useState)({})[0],K=(0,o.useCallback)(function(e){var t=e.captureFocusRestore;if(!S.current){var r,n=null==(r=document)?void 0:r.activeElement;S.current=n,n!==document.body&&(S.current=t(n))}_.current&&W&&W(_.current),E.current=!0,A()},[W]),J=(0,o.useCallback)(function(){E.current=!1,Z&&Z(_.current),A()},[Z]),X=(0,o.useCallback)(function(e){var t=S.current;if(t){var r=("function"==typeof t?t():t)||document.body,n="function"==typeof H?H(r):H;if(n){var i="object"==typeof n?n:void 0;S.current=null,e?Promise.resolve().then(function(){return r.focus(i)}):r.focus(i)}}},[H]),Q=(0,o.useCallback)(function(e){E.current&&b.useMedium(e)},[]),ee=v.useMedium,et=(0,o.useCallback)(function(e){_.current!==e&&(_.current=e,y(e))},[]),er=(0,a.A)(((p={})[u]=T&&"disabled",p[l]=$,p),void 0===U?{}:U),en=!0!==D,ei=en&&"tail"!==D,es=(r=[t,et],n=function(e){return r.forEach(function(t){return c(t,e)})},(i=(0,o.useState)(function(){return{value:null,callback:n,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=n,s=i.facade,d(function(){var e=h.get(s);if(e){var t=new Set(e),n=new Set(r),i=s.current;t.forEach(function(e){n.has(e)||c(e,null)}),n.forEach(function(e){t.has(e)||c(e,i)})}h.set(s,r)},[r]),s),ea=(0,o.useMemo)(function(){return{observed:_,shards:z,enabled:!T,get active(){return E.current}}},[T,E,z,_]);return o.createElement(o.Fragment,null,en&&[o.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:T?-1:0,style:f}),P?o.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:T?-1:1,style:f}):null],!T&&o.createElement(B,{id:Y,sideCar:w,observed:g,disabled:T,persistentFocus:void 0!==j&&j,crossFrame:void 0===R||R,autoFocus:void 0===N||N,whiteList:F,shards:z,onActivation:K,onDeactivation:J,returnFocus:X,focusOptions:G,noFocusGuards:D}),o.createElement(void 0===q?"div":q,(0,a.A)({ref:es},er,{className:M,onBlur:ee,onFocus:Q}),o.createElement(x.Provider,{value:ea},O)),ei&&o.createElement("div",{"data-focus-guard":!0,tabIndex:T?-1:0,style:f}))});E.propTypes={};var S=r(37886);function A(e){return(A="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)}var O=function(e){for(var t=Array(e.length),r=0;r<e.length;++r)t[r]=e[r];return t},C=function(e){return Array.isArray(e)?e:[e]},T=function(e){return Array.isArray(e)?e[0]:e},I=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"))},D=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},j=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},R=function(e,t){var r,n,i=e.get(t);if(void 0!==i)return i;var s=(r=t,n=R.bind(void 0,e),!r||j(r)||!I(r)&&!r.hasAttribute("inert")&&n(D(r)));return e.set(t,s),s},N=function(e,t){var r,n=e.get(t);if(void 0!==n)return n;var i=(r=N.bind(void 0,e),!t||!!j(t)||!!P(t)&&r(D(t)));return e.set(t,i),i},$=function(e){return e.dataset},M=function(e){return"INPUT"===e.tagName},F=function(e){return M(e)&&"radio"===e.type},P=function(e){return![!0,"true",""].includes(e.getAttribute("data-no-autofocus"))},L=function(e){var t;return!!(e&&(null==(t=$(e))?void 0:t.focusGuard))},z=function(e){return!L(e)},q=function(e){return!!e},U=function(e,t){var r=Math.max(0,e.tabIndex),n=Math.max(0,t.tabIndex),i=r-n,s=e.index-t.index;if(i){if(!r)return 1;if(!n)return -1}return i||s},B=function(e,t,r){return O(e).map(function(e,t){var n=e.tabIndex<0&&!e.hasAttribute("tabindex")?0:e.tabIndex;return{node:e,index:t,tabIndex:r&&-1===n?(e.dataset||{}).focusGuard?0:-1:n}}).filter(function(e){return!t||e.tabIndex>=0}).sort(U)},V="button:enabled,select:enabled,textarea:enabled,input:enabled,a[href],area[href],summary,iframe,object,embed,audio[controls],video[controls],[tabindex],[contenteditable],[autofocus]",H="".concat(V,", [data-focus-guard]"),G=function(e,t){return O((e.shadowRoot||e).children).reduce(function(e,r){return e.concat(r.matches(t?H:V)?[r]:[],G(r))},[])},W=function(e,t){var r;return e instanceof HTMLIFrameElement&&(null==(r=e.contentDocument)?void 0:r.body)?Z([e.contentDocument.body],t):[e]},Z=function(e,t){return e.reduce(function(e,r){var n,i=G(r,t),s=(n=[]).concat.apply(n,i.map(function(e){return W(e,t)}));return e.concat(s,r.parentNode?O(r.parentNode.querySelectorAll(V)).filter(function(e){return e===r}):[])},[])},Y=function(e,t){return O(e).filter(function(e){return R(t,e)}).filter(function(e){var t;return!((M(t=e)||"BUTTON"===t.tagName)&&("hidden"===t.type||t.disabled))})},K=function(e,t){return void 0===t&&(t=new Map),O(e).filter(function(e){return N(t,e)})},J=function(e,t,r){return B(Y(Z(e,r),t),!0,r)},X=function(e,t){return B(Y(Z(e),t),!1)},Q=function(e,t){return e.shadowRoot?Q(e.shadowRoot,t):!!(void 0!==Object.getPrototypeOf(e).contains&&Object.getPrototypeOf(e).contains.call(e,t))||O(e.children).some(function(e){var r;if(e instanceof HTMLIFrameElement){var n=null==(r=e.contentDocument)?void 0:r.body;return!!n&&Q(n,t)}return Q(e,t)})},ee=function(e){try{return e()}catch(e){return}},et=function(e){if(void 0===e&&(e=document),e&&e.activeElement){var t=e.activeElement;return t.shadowRoot?et(t.shadowRoot):t instanceof HTMLIFrameElement&&ee(function(){return t.contentWindow.document})?et(t.contentWindow.document):t}},er=function(e){void 0===e&&(e=document);var t=et(e);return!!t&&O(e.querySelectorAll("[".concat("data-no-focus-lock","]"))).some(function(e){return Q(e,t)})},en=function(e){for(var t=new Set,r=e.length,n=0;n<r;n+=1)for(var i=n+1;i<r;i+=1){var s=e[n].compareDocumentPosition(e[i]);(s&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(i),(s&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(n)}return e.filter(function(e,r){return!t.has(r)})},ei=function(e){return e.parentNode?ei(e.parentNode):e}
77,es=function(e){return C(e).filter(Boolean).reduce(function(e,t){var r=t.getAttribute(l);return e.push.apply(e,r?en(O(ei(t).querySelectorAll("[".concat(l,'="').concat(r,'"]:not([').concat(u,'="disabled"])')))):[t]),e},[])},ea=function(e,t){return void 0===t&&(t=et(T(e).ownerDocument)),!!t&&(!t.dataset||!t.dataset.focusGuard)&&es(e).some(function(e){var r;return Q(e,t)||(r=t,!!O(e.querySelectorAll("iframe")).some(function(e){return e===r}))})},eo=function(e,t){e&&("focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},el=function(e,t){if(F(e)&&e.name)return t.filter(F).filter(function(t){return t.name===e.name}).filter(function(e){return e.checked})[0]||e;return e},eu=function(e){var t=new Set;return e.forEach(function(r){return t.add(el(r,e))}),e.filter(function(e){return t.has(e)})},ec=function(e){return e[0]&&e.length>1?el(e[0],e):e[0]},ed=function(e,t){return e.indexOf(el(t,e))},eh="NEW_FOCUS",ef=function(e,t,r,n,i){var s=e.length,a=e[0],o=e[s-1],l=L(n);if(!(n&&e.indexOf(n)>=0)){var u=void 0!==n?r.indexOf(n):-1,c=i?r.indexOf(i):u,d=i?e.indexOf(i):-1;if(-1===u)return -1!==d?d:eh;if(-1===d)return eh;var h=u-c,f=r.indexOf(a),p=r.indexOf(o),m=eu(r),g=void 0!==n?m.indexOf(n):-1,y=i?m.indexOf(i):g,b=m.filter(function(e){return e.tabIndex>=0}),v=void 0!==n?b.indexOf(n):-1,_=i?b.indexOf(i):v;if(!h&&d>=0||0===t.length)return d;var w=ed(e,t[0]),x=ed(e,t[t.length-1]);if(u<=f&&l&&Math.abs(h)>1)return x;if(u>=p&&l&&Math.abs(h)>1)return w;if(h&&Math.abs(v>=0&&_>=0?_-v:y-g)>1)return d;if(u<=f)return x;if(u>p)return w;if(h)return Math.abs(h)>1?d:(s+d+h)%s}},ep=function(e,t,r){var n=K(e.map(function(e){return e.node}).filter(function(e){var t,n=null==(t=$(e))?void 0:t.autofocus;return e.autofocus||void 0!==n&&"false"!==n||r.indexOf(e)>=0}));return n&&n.length?ec(n):ec(K(t))},em=function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&em(e.parentNode.host||e.parentNode,t),t},eg=function(e,t){for(var r=em(e),n=em(t),i=0;i<r.length;i+=1){var s=r[i];if(n.indexOf(s)>=0)return s}return!1},ey=function(e,t,r){var n=C(e),i=C(t),s=n[0],a=!1;return i.filter(Boolean).forEach(function(e){a=eg(a||e,e)||a,r.filter(Boolean).forEach(function(e){var t=eg(s,e);t&&(a=!a||Q(t,a)?t:eg(t,a))})}),a},eb=function(e,t){return e.reduce(function(e,r){var n,i;return e.concat((n=r,i=t,Y(O(n.querySelectorAll("[".concat("data-autofocus-inside","]"))).map(function(e){return Z([e])}).reduce(function(e,t){return e.concat(t)},[]),i)))},[])},ev=function(e,t){var r=new Map;return t.forEach(function(e){return r.set(e.node,e)}),e.map(function(e){return r.get(e)}).filter(q)},e_=function(e,t){var r=et(C(e).length>0?document:T(e).ownerDocument),n=es(e).filter(z),i=ey(r||e,e,n),s=new Map,a=X(n,s),o=a.filter(function(e){return z(e.node)});if(o[0]){var l=X([i],s).map(function(e){return e.node}),u=ev(l,o),c=u.map(function(e){return e.node}),d=u.filter(function(e){return e.tabIndex>=0}).map(function(e){return e.node}),h=ef(c,d,l,r,t);if(h===eh){var f=ep(a,d,eb(n,s))||ep(a,c,eb(n,s));return f?{node:f}:void console.warn("focus-lock: cannot find any node to move focus into")}return void 0===h?h:u[h]}},ew=0,ex=!1,ek=function(e,t,r){void 0===r&&(r={});var n=e_(e,t);if(!ex&&n){if(ew>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),ex=!0,setTimeout(function(){ex=!1},1);return}ew++,eo(n.node,r.focusOptions),ew--}};function eE(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 eS=function(e){if(!e)return null;for(var t=[],r=e;r&&r!==document.body;)t.push({current:eE(r),parent:eE(r.parentElement),left:eE(r.previousElementSibling),right:eE(r.nextElementSibling)}),r=r.parentElement;return{element:eE(e),stack:t,ownerDocument:e.ownerDocument}},eA=function(e){if(e)for(var t,r,n,i,s,a=e.stack,o=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&&o.contains(d)){for(var h=null==(r=c.left)?void 0:r.call(c),f=c.current(),p=d.contains(f)?f:void 0,m=null==(n=c.right)?void 0:n.call(c),g=J([d],l),y=null!=(s=null!=(i=null!=p?p:null==h?void 0:h.nextElementSibling)?i:m)?s:h;y;){for(var b=0;b<g.length;b++){var v=g[b];if(null==y?void 0:y.contains(v.node))return v.node}y=y.nextElementSibling}if(g.length)return g[0].node}}},eO=function(e){var t=eS(e);return function(){return eA(t)}},eC=function(e){var t=es(e).filter(z),r=B(Z([ey(e,e,t)],!0),!0,!0),n=Z(t,!1);return r.map(function(e){var t=e.node;return{node:t,index:e.index,lockItem:n.indexOf(t)>=0,guard:L(t)}})},eT=function(e,t,r){if(!e||!t)return console.error("no element or scope given"),{};var n=C(t);if(n.every(function(t){return!Q(t,e)}))return console.error("Active element is not contained in the scope"),{};var i=r?J(n,new Map):X(n,new Map),s=i.findIndex(function(t){return t.node===e});if(-1!==s)return{prev:i[s-1],next:i[s+1],first:i[0],last:i[i.length-1]}},eI=function(e,t){var r=t?J(C(e),new Map):X(C(e),new Map);return{first:r[0],last:r[r.length-1]}},eD=function(e,t,r){void 0===t&&(t={});var n,i=(n=t,Object.assign({scope:document.body,cycle:!0,onlyTabbable:!0},n)),s=eT(e,i.scope,i.onlyTabbable);if(s){var a=r(s,i.cycle);a&&eo(a.node,i.focusOptions)}},ej=function(e,t,r){var n,i=eI(e,null==(n=t.onlyTabbable)||n)[r];i&&eo(i.node,t.focusOptions)};function eR(e){setTimeout(e,1)}var eN=function(e){return e&&"current"in e?e.current:e},e$=function(){return document&&document.activeElement===document.body},eM=null,eF=null,eP=function(){return null},eL=null,ez=!1,eq=!1,eU=function(e,t){eL={observerNode:e,portaledElement:t}};function eB(e,t,r,n){var i=null,s=e;do{var a=n[s];if(a.guard)a.node.dataset.focusAutoGuard&&(i=a);else if(a.lockItem){if(s!==e)return;i=null}else break}while((s+=r)!==t);i&&(i.node.tabIndex=0)}var eV=function(e){return X(e,new Map)},eH=function(){var e=!1;
77if(eM){var t=eM,r=t.observed,n=t.persistentFocus,i=t.autoFocus,s=t.shards,a=t.crossFrame,o=t.focusOptions,l=t.noFocusGuards,u=r||eL&&eL.portaledElement;if(e$()&&eF&&eF!==document.body&&(!document.body.contains(eF)||!eV([(h=eF).parentNode]).some(function(e){return e.node===h}))){var c=eP();c&&c.focus()}var d=document&&document.activeElement;if(u){var h,f=[u].concat(s.map(eN).filter(Boolean));if((!d||(eM.whiteList||function(){return!0})(d))&&(n||function(){if(!(a?!!ez:"meanwhile"===ez)||!l||!eF||eq)return!1;var e=eV(f),t=e.findIndex(function(e){return e.node===eF});return 0===t||t===e.length-1}()||!(e$()||er())||!eF&&i)&&(u&&!(ea(f)||d&&f.some(function(e){return function e(t,r,n){return r&&(r.host===t&&(!r.activeElement||n.contains(r.activeElement))||r.parentNode&&e(t,r.parentNode,n))}(d,e,e)})||eL&&eL.portaledElement===d)&&(document&&!eF&&d&&!i?(d.blur&&d.blur(),document.body.focus()):(e=ek(f,eF,{focusOptions:o}),eL={})),(eF=document&&document.activeElement)!==document.body&&(eP=eO(eF)),ez=!1),document&&d!==document.activeElement&&document.querySelector("[data-focus-auto-guard]")){var p=document&&document.activeElement,m=eC(f),g=m.map(function(e){return e.node}).indexOf(p);g>-1&&(m.filter(function(e){var t=e.guard,r=e.node;return t&&r.dataset.focusAutoGuard}).forEach(function(e){return e.node.removeAttribute("tabIndex")}),eB(g,m.length,1,m),eB(g,-1,-1,m))}}}return e},eG=function(e){eH()&&e&&(e.stopPropagation(),e.preventDefault())},eW=function(){return eR(eH)},eZ=function(){eq=!0},eY=function(){eq=!1,ez="just",eR(function(){ez="meanwhile"})},eK=function(){document.addEventListener("focusin",eG),document.addEventListener("focusout",eW),window.addEventListener("focus",eZ),window.addEventListener("blur",eY)},eJ=function(){document.removeEventListener("focusin",eG),document.removeEventListener("focusout",eW),window.removeEventListener("focus",eZ),window.removeEventListener("blur",eY)},eX={moveFocusInside:ek,focusInside:ea,focusNextElement:function(e,t){void 0===t&&(t={}),eD(e,t,function(e,t){var r=e.next,n=e.first;return r||t&&n})},focusPrevElement:function(e,t){void 0===t&&(t={}),eD(e,t,function(e,t){var r=e.prev,n=e.last;return r||t&&n})},focusFirstElement:function(e,t){void 0===t&&(t={}),ej(e,t,"first")},focusLastElement:function(e,t){void 0===t&&(t={}),ej(e,t,"last")},captureFocusRestore:eO};b.assignSyncMedium(function(e){var t=e.target,r=e.currentTarget;r.contains(t)||eU(r,t)}),v.assignMedium(eW),_.assignMedium(function(e){return e(eX)});let eQ=(n=function(e){return e.filter(function(e){return!e.disabled})},i=function(e){var t=e.slice(-1)[0];t&&!eM&&eK();var r=eM,n=r&&t&&t.id===r.id;eM=t,r&&!n&&(r.onDeactivation(),e.filter(function(e){return e.id===r.id}).length||r.returnFocus(!t)),t?(eF=null,n&&r.observed===t.observed||t.onActivation(eX),eH(!0),eR(eH)):(eJ(),eF=null)},function(e){var t,r,s,a,l,u=[];function c(){i(l=n(u.map(function(e){return e.props})))}var d=function(t){function r(){return t.apply(this,arguments)||this}(0,S.A)(r,t),r.peek=function(){return l};var n=r.prototype;return n.componentDidMount=function(){u.push(this),c()},n.componentDidUpdate=function(){c()},n.componentWillUnmount=function(){var e=u.indexOf(this);u.splice(e,1),c()},n.render=function(){return o.createElement(e,this.props)},r}(o.PureComponent);return t=d,r="displayName",s="SideEffect("+(e.displayName||e.name||"Component")+")",(a=function(e,t){if("object"!=A(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=A(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(r,"string"),(r="symbol"==A(a)?a:a+"")in t)?Object.defineProperty(t,r,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[r]=s,d})(function(){return null});var e0=(0,o.forwardRef)(function(e,t){return o.createElement(E,(0,a.A)({sideCar:eQ,ref:t},e))}),e1=E.propTypes||{};e1.sideCar,(0,s.A)(e1,["sideCar"]),e0.propTypes={};let e2=e0},97423:e=>{e.exports=function(e){return function(t){return e(t)}}},97504:(e,t,r)=>{"use strict";let n=Symbol("SemVer ANY");class i{static get ANY(){return n}constructor(e,t){if(t=s(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===n?this.value="":this.value=this.operator+this.semver.version,u("comp",this)}parse(e){let t=this.options.loose?a[o.COMPARATORLOOSE]:a[o.COMPARATOR],r=e.match(t);if(!r)throw TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new c(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(u("Comparator.test",e,this.options.loose),this.semver===n||e===n)return!0;
77if("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=s(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 s=r(49531),{safeRe:a,t:o}=r(54108),l=r(67017),u=r(82628),c=r(98520),d=r(27353)},97537:(e,t,r)=>{"use strict";r.d(t,{a:()=>i});var n=r(41325);function i(e,t){return(0,n.w)(t||e,e)}},97830:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n,i=new Uint8Array(16);let s=/^(?:[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=[],o=0;o<256;++o)a.push((o+256).toString(16).substr(1));let l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(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 r&&s.test(r)))throw TypeError("Stringified UUID is invalid");return r},u=function(e,t,r){var s=(e=e||{}).random||(e.rng||function(){if(!n&&!(n="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 n(i)})();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t){r=r||0;for(var a=0;a<16;++a)t[r+a]=s[a];return t}return l(s)}},97905:(e,t,r)=>{var n=r(60361),i=r(42725);e.exports=function(e,t,r,s){return null==e?[]:(i(t)||(t=null==t?[]:[t]),i(r=s?void 0:r)||(r=null==r?[]:[r]),n(e,t,r))}},97917:e=>{var t=Math.ceil,r=Math.max;e.exports=function(e,n,i,s){for(var a=-1,o=r(t((n-e)/(i||1)),0),l=Array(o);o--;)l[s?o:++a]=e,e+=i;return l}},98057:(e,t,r)=>{"use strict";let n=r(98520);e.exports=(e,t,r,i,s)=>{"string"==typeof r&&(s=i,i=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,i,s).version}catch(e){return null}}},98188:(e,t,r)=>{var n=r(99577);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],s=r.cache;if(s.has(i))return s.get(i);var a=e.apply(this,n);return r.cache=s.set(i,a)||s,a};return r.cache=new(i.Cache||n),r}i.Cache=n,e.exports=i},98352:(e,t,r)=>{"use strict";let n=r(98520),i=r(27353);e.exports=(e,t,r)=>{let s=null,a=null,o=null;try{o=new i(t,r)}catch(e){return null}return e.forEach(e=>{o.test(e)&&(!s||1===a.compare(e))&&(a=new n(s=e,r))}),s}},98512:(e,t,r)=>{var n=r(36383),i=Object.create;e.exports=function(){function e(){}return function(t){if(!n(t))return{};if(i)return i(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}()},98520:(e,t,r)=>{"use strict";let n=r(82628),{MAX_LENGTH:i,MAX_SAFE_INTEGER:s}=r(24570),{safeRe:a,t:o}=r(54108),l=r(49531),{compareIdentifiers:u}=r(57923);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`);n("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let r=e.trim().match(t.loose?a[o.LOOSE]:a[o.FULL]);if(!r)throw TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>s||this.major<0)throw TypeError("Invalid major version");if(this.minor>s||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>s||this.patch<0)throw TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(e=>
77{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t<s)return t}return e}):this.prerelease=[],this.build=r[5]?r[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(n("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)),this.major<e.major)?-1:this.major>e.major?1:this.minor<e.minor?-1:this.minor>e.minor?1:this.patch<e.patch?-1:+(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 r=this.prerelease[t],i=e.prerelease[t];if(n("prerelease compare",t,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return -1;else if(r===i)continue;else return u(r,i)}while(++t)}compareBuild(e){e instanceof c||(e=new c(e,this.options));let t=0;do{let r=this.build[t],i=e.build[t];if(n("build compare",t,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return -1;else if(r===i)continue;else return u(r,i)}while(++t)}inc(e,t,r){if(e.startsWith("pre")){if(!t&&!1===r)throw Error("invalid increment argument: identifier is empty");if(t){let e=`-${t}`.match(this.options.loose?a[o.PRERELEASELOOSE]:a[o.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,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,r),this.inc("pre",t,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,r),this.inc("pre",t,r);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(r);if(0===this.prerelease.length)this.prerelease=[e];else{let n=this.prerelease.length;for(;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);
77if(-1===n){if(t===this.prerelease.join(".")&&!1===r)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let n=[t,e];!1===r&&(n=[t]),0===u(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}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},98592:(e,t,r)=>{"use strict";r.d(t,{Cp:()=>l,Dp:()=>d,J0:()=>h,J5:()=>m,o:()=>c,r:()=>u});var n=r(78266),i=r(23821),s=r(25220),a=r(26088),o=r(41058);function l(e,t){return(0,i.o5)().captureException(e,(0,o.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 h(e){let t=(0,i.KU)(),r=(0,i.rm)(),o=(0,i.o5)(),{release:l,environment:u=n.U}=t&&t.getOptions()||{},{userAgent:c}=a.O.navigator||{},d=(0,s.fj)({release:l,environment:u,user:o.getUser()||r.getUser(),...c&&{userAgent:c},...e}),h=r.getSession();return h&&"ok"===h.status&&(0,s.qO)(h,{status:"exited"}),f(),r.setSession(d),o.setSession(d),d}function f(){let e=(0,i.rm)(),t=(0,i.o5)(),r=t.getSession()||e.getSession();r&&(0,s.Vu)(r),p(),e.setSession(),t.setSession()}function p(){let e=(0,i.rm)(),t=(0,i.o5)(),r=(0,i.KU)(),n=t.getSession()||e.getSession();n&&r&&r.captureSession(n)}function m(e=!1){if(e)return void f();p()}},98671:(e,t,r)=>{"use strict";r.d(t,{W:()=>i});var n=r(97537);function i(e,t){let r=(0,n.a)(e,null==t?void 0:t.in),i=r.getMonth();return r.setFullYear(r.getFullYear(),i+1,0),r.setHours(0,0,0,0),(0,n.a)(r,null==t?void 0:t.in)}},98719:(e,t,r)=>{"use strict";var n,i=r(37811),s=function(){function e(e,t){var r;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;
77if("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 r=["get","set","delete","clear"].filter(function(e){return t&&"function"!=typeof t[e]});if(0!==r.length)throw TypeError("Custom cacheMap missing methods: "+r.join(", "))}return t}(t),this._batch=null,this.name=(r=t)&&r.name?r.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,r=function(e){var t=e._batch;if(null!==t&&!t.hasDispatched&&t.keys.length<e._maxBatchSize)return t;var r={hasDispatched:!1,keys:[],callbacks:[]};return e._batch=r,e._batchScheduleFn(function(){!function(e,t){var r;if(t.hasDispatched=!0,0===t.keys.length)return l(t);try{r=e._batchLoadFn(t.keys)}catch(r){return o(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(r)+"."))}if(!r||"function"!=typeof r.then)return o(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(r)+"."));r.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 r=0;r<t.callbacks.length;r++){var n=e[r];n instanceof Error?t.callbacks[r].reject(n):t.callbacks[r].resolve(n)}}).catch(function(r){o(e,t,r)})}(e,r)}),r}(this),n=this._cacheMap;if(n){t=this._cacheKeyFn(e);var i=n.get(t);if(i){var s=r.cacheHits||(r.cacheHits=[]);return new Promise(function(e){s.push(function(){e(i)})})}}r.keys.push(e);var a=new Promise(function(e,t){r.callbacks.push({resolve:e,reject:t})});return n&&n.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=[],r=0;r<e.length;r++)t.push(this.load(e[r]).catch(function(e){return e}));return Promise.all(t)},t.clear=function(e){var t=this._cacheMap;if(t){var r=this._cacheKeyFn(e);t.delete(r)}return this},t.clearAll=function(){var e=this._cacheMap;return e&&e.clear(),this},t.prime=function(e,t){var r=this._cacheMap;if(r){var n,i=this._cacheKeyFn(e);void 0===r.get(i)&&(t instanceof Error?(n=Promise.reject(t)).catch(function(){}):n=Promise.resolve(t),r.set(i,n))}return this},e}(),a="object"==typeof i&&"function"==typeof i.nextTick?function(e){n||(n=Promise.resolve()),n.then(function(){i.nextTick(e)})}:"function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){setTimeout(e)};function o(e,t,r){l(t);for(var n=0;n<t.keys.length;n++)e.clear(t.keys[n]),t.callbacks[n].reject(r)}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=s},98744:(e,t,r)=>{"use strict";r.d(t,{c:()=>a});var n=r(43523),i=r(52125),s=r(44220);function a(e,t,r){void 0===t&&(t=n.E);var a=(0,s.O)(e,t);return(0,i.n)(function(){return a},r)}},98833:(e,t,r)=>{"use strict";function n(e){return"block"===e.type}function i(e,t){return{styles:e.styles?e.styles.map(e=>({...e,value:e.name})):t.styles,decorators:e.decorators?e.decorators.map(e=>({...e,value:e.name})):t.decorators,annotations:e.annotations?e.annotations.map(e=>({...e,fields:e.fields?.map(e=>s(e,t))??[]})):t.annotations,lists:e.lists?e.lists.map(e=>({...e,value:e.name})):t.lists,inlineObjects:e.inlineObjects?e.inlineObjects.map(e=>({...e,fields:e.fields?.map(e=>s(e,t))??[]})):t.inlineObjects}}function s(e,t){if("array"===e.type&&e.of){let r=e.of.find(n),a=r?i(r,t):t;return{...e,of:e.of.map(e=>{var t,o,l,u,c,d;return e===r?{...e,...a}:(t=e,o=a,n(t)?(l=t,u=o,{...l,...i(l,u)}):"object"===t.type?(c=t,d=o,{...c,fields:c.fields.map(e=>s(e,d))}):t)})}}return e}function a(e){return{...e,value:e.name}}function o(e){let t=(e.styles??[]).map(a),r=t.some(e=>"normal"===e.value)?t:[{value:"normal",name:"normal",title:"Normal"},...t],n=(e.lists??[]).map(a),i=(e.decorators??[]).map(a),o={styles:r,decorators:i,annotations:(e.annotations??[]).map(e=>({...e,fields:e.fields??[]})),lists:n,inlineObjects:(e.inlineObjects??[]).map(e=>({...e,fields:e.fields??[]}))},l=[];
77if(e.block?.fields)for(let t of e.block.fields){if("_type"===t.name||"_key"===t.name||"children"===t.name||"markDefs"===t.name||"style"===t.name||"listItem"===t.name||"level"===t.name){console.warn(`"${t.name}" is a reserved field name on Portable Text blocks`);continue}l.push(s(t,o))}return{block:{name:e.block?.name??"block",...l.length>0?{fields:l}:{}},span:{name:"span"},styles:r,lists:n,decorators:i,annotations:(e.annotations??[]).map(e=>({...e,fields:e.fields?.map(e=>s(e,o))??[]})),blockObjects:(e.blockObjects??[]).map(e=>({...e,fields:e.fields?.map(e=>s(e,o))??[]})),inlineObjects:(e.inlineObjects??[]).map(e=>({...e,fields:e.fields?.map(e=>s(e,o))??[]}))}}function l(e){return e}function u(e){var t;return!!(t=e)&&("object"==typeof t||"function"==typeof t)&&"string"==typeof e._type}function c(e,t){return!(!u(t)||t._type!==e.schema.block.name||!Array.isArray(t.children))}function d(e,t){return!(!u(t)||t._type!==e.schema.span.name||"string"!=typeof t.text)}r.d(t,{Fc:()=>o,Jo:()=>l,bl:()=>d,zS:()=>c})},98834:(e,t,r)=>{"use strict";r.d(t,{v_:()=>l});let n="u">typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),i={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},s={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"},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 o=1;o<20;o++)a["f"+o]=111+o;function l(e,t,r){!t||"byKey"in t||(r=t,t=null),Array.isArray(e)||(e=[e]);let n=e.map(e=>(function(e,t){let r=t&&t.byKey,n={},o=(e=e.replace("++","+add")).split("+"),{length:l}=o;for(let e in i)n[i[e]]=!1;for(let e of o){var c;let t=e.endsWith("?")&&e.length>1;t&&(e=e.slice(0,-1));let o=u(e),d=i[o];if(e.length>1&&!d&&!s[e]&&!a[o])throw TypeError(`Unknown modifier: "${e}"`);1!==l&&d||(r?n.key=o:n.which=a[c=u(c=e)]||c.toUpperCase().charCodeAt(0)),d&&(n[d]=!t||null)}return n})(e,t)),o=e=>n.some(t=>(function(e,t){for(let r in e){let n,i=e[r];if(null!=i&&(null!=(n="key"===r&&null!=t.key?t.key.toLowerCase():"which"===r?91===i&&93===t.which?91:t.which:t[r])||!1!==i)&&n!==i)return!1}return!0})(t,e));return null==r?o:o(r)}function u(e){return s[e=e.toLowerCase()]||e}},99051:(e,t,r)=>{"use strict";r.d(t,{j:()=>s});var n=r(53355),i=r(2297);function s(e,t,r){return[(0,n.p)(t,r)((0,i.Tg)(e)),(0,n.p)(function(e,n){return!t.call(r,e,n)})((0,i.Tg)(e))]}},99247:(e,t,r)=>{"use strict";let n=r(42838);e.exports=(e,t)=>{let r=n(e,t);return r?r.version:null}},99342:(e,t,r)=>{"use strict";r.d(t,{e:()=>u,r:()=>d});var n=r(38562),i=r(7112),s=r(82795),a=r(60266),o=r(18833),l=r(60932);function u(e){let t,r,a,o=(0,i.c)(16),{cancelButtonIcon:l,cancelButtonText:u,confirmButtonIcon:d,confirmButtonText:h,message:f,onCancel:p,onConfirm:m,open:g,referenceElement:y,tone:b,placement:v,fallbackPlacements:_}=e,w=void 0===b?"critical":b,x=void 0===v?"top":v;o[0]!==_?(t=void 0===_?["left","bottom"]:_,o[0]=_,o[1]=t):t=o[1];let k=t;return g?(o[2]!==l||o[3]!==u||o[4]!==d||o[5]!==h||o[6]!==f||o[7]!==p||o[8]!==m||o[9]!==w?(r=(0,n.jsx)(c,{cancelButtonIcon:l,cancelButtonText:u,confirmButtonIcon:d,confirmButtonText:h,message:f,onCancel:p,onConfirm:m,tone:w}),o[2]=l,o[3]=u,o[4]=d,o[5]=h,o[6]=f,o[7]=p,o[8]=m,o[9]=w,o[10]=r):r=o[10],o[11]!==k||o[12]!==x||o[13]!==y||o[14]!==r?(a=(0,n.jsx)(s.AM,{content:r,constrainSize:!0,fallbackPlacements:k,open:!0,placement:x,portal:!0,preventOverflow:!0,referenceElement:y}),o[11]=k,o[12]=x,o[13]=y,o[14]=r,o[15]=a):a=o[15],a):null}function c(e){let t,r,l,u,c,d,h,f,p,m,g,y=(0,i.c)(29),{cancelButtonIcon:b,cancelButtonText:v,confirmButtonIcon:_,confirmButtonText:w,message:x,onCancel:k,onConfirm:E,tone:S}=e,{t:A}=(0,o.Bd)(),{isTopLayer:O}=(0,s.Z4)(),C=(0,a.useRef)(null);
77return y[0]!==O||y[1]!==k?(t=e=>{"Escape"===e.key&&O&&k()},y[0]=O,y[1]=k,y[2]=t):t=y[2],(0,s.Pm)(t),y[3]===Symbol.for("react.memo_cache_sentinel")?(r=()=>[C.current],y[3]=r):r=y[3],(0,s.PR)(O&&k,r),y[4]===Symbol.for("react.memo_cache_sentinel")?(l={minWidth:280,maxWidth:350},y[4]=l):l=y[4],y[5]!==x?(u=(0,n.jsx)(s.az,{flex:1,overflow:"auto",padding:4,children:(0,n.jsx)(s.EY,{size:1,children:x})}),y[5]=x,y[6]=u):u=y[6],y[7]===Symbol.for("react.memo_cache_sentinel")?(c={borderTop:"1px solid var(--card-border-color)"},y[7]=c):c=y[7],y[8]!==v||y[9]!==A?(d=v||A("common.dialog.cancel-button.text"),y[8]=v,y[9]=A,y[10]=d):d=y[10],y[11]!==b||y[12]!==k||y[13]!==d?(h=(0,n.jsx)(s.$n,{"data-testid":"confirm-popover-cancel-button",icon:b,onClick:k,mode:"ghost",padding:2,text:d,size:1}),y[11]=b,y[12]=k,y[13]=d,y[14]=h):h=y[14],y[15]!==w||y[16]!==A?(f=w||A("common.dialog.confirm-button.text"),y[15]=w,y[16]=A,y[17]=f):f=y[17],y[18]!==_||y[19]!==E||y[20]!==f||y[21]!==S?(p=(0,n.jsx)(s.$n,{"data-testid":"confirm-popover-confirm-button",icon:_,onClick:E,padding:2,text:f,tone:S,size:1}),y[18]=_,y[19]=E,y[20]=f,y[21]=S,y[22]=p):p=y[22],y[23]!==h||y[24]!==p?(m=(0,n.jsx)(s.az,{paddingX:4,paddingY:3,style:c,children:(0,n.jsxs)(s.xA,{columns:2,gap:2,children:[h,p]})}),y[23]=h,y[24]=p,y[25]=m):m=y[25],y[26]!==m||y[27]!==u?(g=(0,n.jsxs)(s.so,{direction:"column",ref:C,style:l,children:[u,m]}),y[26]=m,y[27]=u,y[28]=g):g=y[28],g}let d=e=>{let t,r=(0,i.c)(8),{tooltipProps:a}=e;r[0]!==e?(t=(0,n.jsx)(s.rX,{...e,fontSize:1,padding:3}),r[0]=e,r[1]=t):t=r[1];let o=t;if(a){let e,t,i=a?.content;return r[2]!==o?(e=(0,n.jsx)("div",{children:o}),r[2]=o,r[3]=e):e=r[3],r[4]!==i||r[5]!==e||r[6]!==a?(t=(0,n.jsx)(l.m_,{content:i,portal:!0,...a,children:e}),r[4]=i,r[5]=e,r[6]=a,r[7]=t):t=r[7],t}return o}},99577:(e,t,r)=>{var n=r(56002),i=r(22446),s=r(72975),a=r(62707),o=r(10235);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=s,l.prototype.has=a,l.prototype.set=o,e.exports=l},99629:(e,t,r)=>{var n=r(33147),i=r(51356),s=r(20232),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 s(e)&&i(e.length)&&!!a[n(e)]}},99674:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},99827:(e,t,r)=>{var n=r(84322),i=r(50240);e.exports=n?function(e){return n.get(e)}:i}}]);

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.