@jetcrab/pi-desk 1.1.8-dev → 1.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/plugins.md +15 -1
- package/package.json +7 -7
- package/src/client/l2_biz/auth/l2-login-biz.ts +4 -1
- package/src/client/l2_biz/settings/hooks/l2-use-auth-settings.ts +18 -1
- package/src/client/l2_biz/settings/l2-auth-settings-biz.ts +18 -1
- package/src/client/l2_biz/settings/l2-auth-settings.tsx +19 -5
- package/src/client/l2_biz/workbench/file-workspace/l2-file-workspace-runtime.ts +144 -23
- package/src/client/l2_biz/workbench/file-workspace/l2-file-workspace-view.tsx +9 -5
- package/src/client/l2_biz/workbench/file-workspace/l2-project-file-browser.tsx +94 -5
- package/src/client/l2_biz/workbench/file-workspace/l2-project-preview-biz.ts +48 -0
- package/src/client/l2_biz/workbench/git-workspace/l2-git-workspace-runtime.ts +26 -8
- package/src/client/l2_biz/workbench/hooks/l2-workbench-chat-viewport.ts +70 -47
- package/src/client/l2_biz/workbench/l2-work-session-columns.tsx +1 -0
- package/src/client/l2_biz/workbench/l2-workbench-chat-view.tsx +18 -14
- package/src/client/l2_biz/workbench/l2-workbench.tsx +37 -6
- package/src/client/l3_modules/conversation/l3-conversation-messages.tsx +28 -9
- package/src/client/l3_modules/project-files/l3-project-file-browser.tsx +27 -15
- package/src/client/l3_modules/project-files/l3-project-file-runtime.ts +7 -0
- package/src/client/l4_foundation/ui/code/l4-code-preferences.ts +1 -1
- package/src/common/l2_biz/auth/l2-auth-contract.ts +14 -1
- package/src/common/l2_biz/auth/l2-auth-messages.ts +27 -10
- package/src/common/l3_modules/app-runtime/l3-app-runtime-contract.ts +4 -1
- package/src/common/l3_modules/conversation/l3-conversation-locale-messages.ts +4 -0
- package/src/common/l3_modules/project-files/l3-project-files-locale-messages.ts +8 -0
- package/src/common/l4_foundation/file/l4-project-preview-contract.ts +25 -0
- package/src/server/l1_entry/api/l1-auth-login-route.ts +20 -6
- package/src/server/l1_entry/api/l1-auth-settings-routes.ts +1 -1
- package/src/server/l1_entry/api/l1-project-route.ts +14 -5
- package/src/server/l1_entry/node/l1-server.ts +4 -7
- package/src/server/l2_biz/app-runtime/l2-app-runtime.ts +6 -1
- package/src/server/l2_biz/auth/l2-auth.ts +52 -2
- package/src/server/l2_biz/work-session/l2-work-session-chat-runtime.ts +28 -0
- package/src/server/l2_biz/work-session/l2-work-session-manage.ts +8 -0
- package/src/server/l3_modules/app-runtime/l3-app-notification-runtime.ts +48 -14
- package/src/server/l4_foundation/auth/l4-auth-config.ts +19 -3
- package/src/server/l4_foundation/pi/l4-pi-chat-worker.ts +2 -1
- package/src/server/l4_foundation/pi/l4-pi-global-runtime.js +3 -13
- package/src/server/l4_foundation/pi/l4-pi-session-plugin-runtime.ts +60 -0
- package/temp/build/pi-desk/release/.next/BUILD_ID +1 -1
- package/temp/build/pi-desk/release/.next/build-manifest.json +3 -3
- package/temp/build/pi-desk/release/.next/prerender-manifest.json +3 -3
- package/temp/build/pi-desk/release/.next/react-loadable-manifest.json +1 -1
- package/temp/build/pi-desk/release/.next/required-server-files.js +3 -3
- package/temp/build/pi-desk/release/.next/required-server-files.json +3 -3
- package/temp/build/pi-desk/release/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/_global-error.html +1 -1
- package/temp/build/pi-desk/release/.next/server/app/_global-error.rsc +1 -1
- package/temp/build/pi-desk/release/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/temp/build/pi-desk/release/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/temp/build/pi-desk/release/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/temp/build/pi-desk/release/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/auth/login/route.js +2 -4
- package/temp/build/pi-desk/release/.next/server/app/api/auth/logout/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/auth-settings/get/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/auth-settings/replace/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/health/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/project-files/reveal/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/login/page.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/page.js +64 -64
- package/temp/build/pi-desk/release/.next/server/app/page_client-reference-manifest.js +1 -1
- package/temp/build/pi-desk/release/.next/server/chunks/23054.js +2 -2
- package/temp/build/pi-desk/release/.next/server/chunks/25406.js +7 -7
- package/temp/build/pi-desk/release/.next/server/chunks/35985.js +3 -3
- package/temp/build/pi-desk/release/.next/server/chunks/49900.js +4 -0
- package/temp/build/pi-desk/release/.next/server/chunks/5034.js +1 -0
- package/temp/build/pi-desk/release/.next/server/chunks/50520.js +1 -1
- package/temp/build/pi-desk/release/.next/server/chunks/61211.js +2 -0
- package/temp/build/pi-desk/release/.next/server/chunks/6917.js +1 -1
- package/temp/build/pi-desk/release/.next/server/chunks/77953.js +1 -0
- package/temp/build/pi-desk/release/.next/server/chunks/8584.js +1 -1
- package/temp/build/pi-desk/release/.next/server/chunks/92386.js +4 -4
- package/temp/build/pi-desk/release/.next/server/chunks/93049.js +1 -0
- package/temp/build/pi-desk/release/.next/server/chunks/94296.js +1 -1
- package/temp/build/pi-desk/release/.next/server/chunks/98227.js +3 -0
- package/temp/build/pi-desk/release/.next/server/instrumentation.js +1 -1
- package/temp/build/pi-desk/release/.next/server/middleware-build-manifest.js +1 -1
- package/temp/build/pi-desk/release/.next/server/middleware-react-loadable-manifest.js +1 -1
- package/temp/build/pi-desk/release/.next/server/pages/500.html +1 -1
- package/temp/build/pi-desk/release/.next/server/server-reference-manifest.json +1 -1
- package/temp/build/pi-desk/release/.next/static/chunks/45992-304a49aaaebd853e.js +13 -0
- package/temp/build/pi-desk/release/.next/static/chunks/{34903-e4205c0becabea76.js → 47340-c1c09c77c1a88514.js} +1 -1
- package/temp/build/pi-desk/release/.next/static/chunks/70669.07f3670bfb7d6dd2.js +1 -0
- package/temp/build/pi-desk/release/.next/static/chunks/app/{layout-586f6f88483051a7.js → layout-839162b6cfae8347.js} +1 -1
- package/temp/build/pi-desk/release/.next/static/chunks/app/login/page-4532a3bbee48e219.js +1 -0
- package/temp/build/pi-desk/release/.next/static/chunks/app/page-9f478658c50efdbe.js +158 -0
- package/temp/build/pi-desk/release/.next/static/chunks/{webpack-26261285e181235a.js → webpack-735430d61da52e9d.js} +1 -1
- package/temp/build/pi-desk/release/.next/static/css/8a41765636e09e52.css +1 -0
- package/temp/build/pi-desk/release/.next/trace-build +1 -1
- package/temp/build/pi-desk/release/.next/server/chunks/31442.js +0 -3
- package/temp/build/pi-desk/release/.next/server/chunks/37681.js +0 -1
- package/temp/build/pi-desk/release/.next/server/chunks/65589.js +0 -4
- package/temp/build/pi-desk/release/.next/server/chunks/99672.js +0 -1
- package/temp/build/pi-desk/release/.next/static/chunks/45992-a39a014497ec4dd1.js +0 -13
- package/temp/build/pi-desk/release/.next/static/chunks/70669.8b4231a8675499e0.js +0 -1
- package/temp/build/pi-desk/release/.next/static/chunks/app/login/page-bf893718bb151f3c.js +0 -1
- package/temp/build/pi-desk/release/.next/static/chunks/app/page-0f2cf68a4666420b.js +0 -158
- package/temp/build/pi-desk/release/.next/static/css/3213ee28336bddc2.css +0 -1
- /package/temp/build/pi-desk/release/.next/static/{-pemk30NXpiExEU5tjb1t → ZYtCj4W63FjXCrTLTDbvO}/_buildManifest.js +0 -0
- /package/temp/build/pi-desk/release/.next/static/{-pemk30NXpiExEU5tjb1t → ZYtCj4W63FjXCrTLTDbvO}/_ssgManifest.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[47340],{1052:(e,t,n)=>{"use strict";n.d(t,{BM:()=>o,CW:()=>r,Ee:()=>h,HP:()=>u,JQ:()=>s,Ny:()=>f,On:()=>d,cx:()=>a,es:()=>p,lV:()=>i,ok:()=>l,ol:()=>c});let r=m(/[A-Za-z]/),i=m(/[\dA-Za-z]/),a=m(/[#-'*+\--9=?A-Z^-~]/);function s(e){return null!==e&&(e<32||127===e)}let o=m(/\d/),l=m(/[\dA-Fa-f]/),c=m(/[!-/:-@[-`{-~]/);function u(e){return null!==e&&e<-2}function h(e){return null!==e&&(e<0||32===e)}function d(e){return -2===e||-1===e||32===e}let p=m(/\p{P}|\p{S}/u),f=m(/\s/);function m(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}},1503:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("pin-off",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89",key:"znwnzq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11",key:"c9qhm2"}]])},2171:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(47552),i=n(12318),a=n(47057),s=n(93525);let o=(e,t,n=0,o=1)=>{if("number"!=typeof e)return(0,s.A)(e,{a:t});let l=i.A.set({r:r.A.channel.clamp.r(e),g:r.A.channel.clamp.g(t),b:r.A.channel.clamp.b(n),a:r.A.channel.clamp.a(o)});return a.A.stringify(l)}},3058:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]])},3158:e=>{"use strict";var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,l=/^\s+|\s+$/g;function c(e){return e?e.replace(l,""):""}e.exports=function(e,l){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];l=l||{};var u=1,h=1;function d(e){var t=e.match(n);t&&(u+=t.length);var r=e.lastIndexOf("\n");h=~r?e.length-r:h+e.length}function p(){var e={line:u,column:h};return function(t){return t.position=new f(e),g(r),t}}function f(e){this.start=e,this.end={line:u,column:h},this.source=l.source}function m(t){var n=Error(l.source+":"+u+":"+h+": "+t);if(n.reason=t,n.filename=l.source,n.line=u,n.column=h,n.source=e,l.silent);else throw n}function g(t){var n=t.exec(e);if(n){var r=n[0];return d(r),e=e.slice(r.length),n}}function y(e){var t;for(e=e||[];t=b();)!1!==t&&e.push(t);return e}function b(){var t=p();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return m("End of comment missing");var r=e.slice(2,n-2);return h+=2,d(r),e=e.slice(n),h+=2,t({type:"comment",comment:r})}}f.prototype.content=e,g(r);var k,x=[];for(y(x);k=function(){var e=p(),n=g(i);if(n){if(b(),!g(a))return m("property missing ':'");var r=g(s),l=e({type:"declaration",property:c(n[0].replace(t,"")),value:r?c(r[0].replace(t,"")):""});return g(o),l}}();)!1!==k&&(x.push(k),y(x));return x}},3635:(e,t,n)=>{"use strict";n.d(t,{default:()=>i.a});var r=n(58048),i=n.n(r)},4090:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("dices",[["rect",{width:"12",height:"12",x:"2",y:"10",rx:"2",ry:"2",key:"6agr2n"}],["path",{d:"m17.92 14 3.5-3.5a2.24 2.24 0 0 0 0-3l-5-4.92a2.24 2.24 0 0 0-3 0L10 6",key:"1o487t"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"M10 14h.01",key:"ssrbsk"}],["path",{d:"M15 6h.01",key:"cblpky"}],["path",{d:"M18 9h.01",key:"2061c0"}]])},4196:(e,t,n)=>{"use strict";n.d(t,{pe:()=>A,PX:()=>J,ru:()=>Q,Un:()=>Z,$t:()=>ea,Sm:()=>el,C4:()=>eo,$C:()=>G,rY:()=>ec,sM:()=>j,KL:()=>eu,Ib:()=>R,dq:()=>en,I5:()=>ei,yT:()=>K,vU:()=>M,_K:()=>es,bH:()=>Y});var r,i=n(89316),a=n(47508),s=n(39410),o=n(68083),l=n(86594);function c(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");let n=function(...r){let i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);let s=e.apply(this,r);return n.cache=a.set(i,s)||a,s};return n.cache=new(c.Cache||Map),n}function u(){}c.Cache=Map;var h=n(59275),d=n(35329);function p(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}var f=n(26232);function m(e){if("object"!=typeof e||null==e)return!1;if(null===Object.getPrototypeOf(e))return!0;if("[object Object]"!==Object.prototype.toString.call(e)){let t=e[Symbol.toStringTag];return null!=t&&!!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable&&e.toString()===`[object ${t}]`}let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}var g=n(60008),y=n(67799);function b(e,t,n,r=new Map,i){let a=i?.(e,t,n,r);if(void 0!==a)return a;if((0,h.s)(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=Array(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=b(e[a],a,n,r,i);return Object.hasOwn(e,"index")&&(t.index=e.index),Object.hasOwn(e,"input")&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){let t=new Map;for(let[a,s]of(r.set(e,t),e))t.set(a,b(s,a,n,r,i));return t}if(e instanceof Set){let t=new Set;for(let a of(r.set(e,t),e))t.add(b(a,void 0,n,r,i));return t}if((0,f.P)(e))return e.subarray();if((0,d.i)(e)){let t=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=b(e[a],a,n,r,i);return t}if(e instanceof ArrayBuffer||"u">typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return r.set(e,t),k(t,e,n,r,i),t}if("u">typeof File&&e instanceof File){let t=new File([e],e.name,{type:e.type});return r.set(e,t),k(t,e,n,r,i),t}if("u">typeof Blob&&e instanceof Blob){let t=new Blob([e],{type:e.type});return r.set(e,t),k(t,e,n,r,i),t}if(e instanceof Error){let t=structuredClone(e);return r.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,t.constructor=e.constructor,k(t,e,n,r,i),t}if(e instanceof Boolean){let t=new Boolean(e.valueOf());return r.set(e,t),k(t,e,n,r,i),t}if(e instanceof Number){let t=new Number(e.valueOf());return r.set(e,t),k(t,e,n,r,i),t}if(e instanceof String){let t=new String(e.valueOf());return r.set(e,t),k(t,e,n,r,i),t}if("object"==typeof e&&function(e){switch((0,g.b)(e)){case y.R_:case y.Uw:case y.cT:case y.iq:case y.$V:case y.vC:case y.ri:case y.ML:case y.XZ:case y.i1:case y._u:case y.pj:case y.kj:case y.GX:case y.Av:case y.NA:case y.OG:case y.VP:case y.Qb:case y.q:case y.x6:case y.ZR:return!0;default:return!1}}(e)){let t=Object.create(Object.getPrototypeOf(e));return r.set(e,t),k(t,e,n,r,i),t}return e}function k(e,t,n=e,r,i){let a=[...Object.keys(t),...p(t)];for(let s=0;s<a.length;s++){let o=a[s],l=Object.getOwnPropertyDescriptor(e,o);(null==l||l.writable)&&(e[o]=b(t[o],o,n,r,i))}}function x(e){var t;return t=(t,n,r,i)=>{let a;if(void 0!==a)return a;if("object"==typeof e){if("[object Object]"===(0,g.b)(e)&&"function"!=typeof e.constructor){let t={};return i.set(e,t),k(t,e,r,i),t}switch(Object.prototype.toString.call(e)){case y.kj:case y.OG:case y.$V:{let t=new e.constructor(e?.valueOf());return k(t,e),t}case y.R_:{let t={};return k(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}}},b(e,void 0,e,new Map,t)}var v=n(33349);function E(e){return"object"==typeof e&&null!==e}var _=n(74598),T=n(24722),A="",w={curveBasis:l.qrM,curveBasisClosed:l.Yu4,curveBasisOpen:l.IA3,curveBumpX:l.Wi0,curveBumpY:l.PGM,curveBundle:l.OEq,curveCardinalClosed:l.olC,curveCardinalOpen:l.IrU,curveCardinal:l.y8u,curveCatmullRomClosed:l.Q7f,curveCatmullRomOpen:l.cVp,curveCatmullRom:l.oDi,curveLinear:l.lUB,curveLinearClosed:l.Lx9,curveMonotoneX:l.nVG,curveMonotoneY:l.uxU,curveNatural:l.Xf2,curveStep:l.GZz,curveStepAfter:l.UPb,curveStepBefore:l.dyv},S=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,C=(0,s.K)(function(e,t){let n=N(e,/(?:init\b)|(?:initialize\b)/),r={};if(Array.isArray(n)){let e=n.map(e=>e.args);(0,i.$i)(e),r=(0,i.hH)(r,[...e])}else r=n.args;if(!r)return;let a=(0,i.Ch)(e,t),s="config";return void 0!==r[s]&&("flowchart-v2"===a&&(a="flowchart"),r[a]=r[s],delete r[s]),r},"detectInit"),N=(0,s.K)(function(e,t=null){try{let n,r=RegExp(`[%]{2}(?![{]${S.source})(?=[}][%]{2}).*
|
|
2
2
|
`,"ig");e=e.trim().replace(r,"").replace(/'/gm,'"'),a.R.debug(`Detecting diagram directive${null!==t?" type:"+t:""} based on the text:${e}`);let s=[];for(;null!==(n=i.DB.exec(e));)if(n.index===i.DB.lastIndex&&i.DB.lastIndex++,n&&!t||t&&n[1]?.match(t)||t&&n[2]?.match(t)){let e=n[1]?n[1]:n[2],t=n[3]?n[3].trim():n[4]?JSON.parse(n[4].trim()):null;s.push({type:e,args:t})}if(0===s.length)return{type:e,args:null};return 1===s.length?s[0]:s}catch(n){return a.R.error(`ERROR: ${n.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},"detectDirective"),M=(0,s.K)(function(e){return e.replace(i.DB,"")},"removeDirectives"),I=(0,s.K)(function(e,t){for(let[n,r]of t.entries())if(r.match(e))return n;return -1},"isSubstringInArray");function R(e,t){return e?w[`curve${e.charAt(0).toUpperCase()+e.slice(1)}`]??t:t}function L(e,t){let n=e.trim();if(n)return"loose"!==t.securityLevel?(0,o.J)(n):n}(0,s.K)(R,"interpolateToCurve"),(0,s.K)(L,"formatUrl");var D=(0,s.K)((e,...t)=>{let n=e.split("."),r=n.length-1,i=n[r],s=window;for(let t=0;t<r;t++)if(!(s=s[n[t]]))return void a.R.error(`Function name: ${e} not found in window`);s[i](...t)},"runFunc");function O(e,t){return e&&t?Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0}function P(e){let t,n=0;return e.forEach(e=>{n+=O(e,t),t=e}),H(e,n/2)}function F(e){return 1===e.length?e[0]:P(e)}(0,s.K)(O,"distance"),(0,s.K)(P,"traverseEdge"),(0,s.K)(F,"calcLabelPosition");var B=(0,s.K)((e,t=2)=>{let n=Math.pow(10,t);return Math.round(e*n)/n},"roundNumber"),H=(0,s.K)((e,t)=>{let n,r=t;for(let t of e){if(n){let e=O(t,n);if(0===e)return n;if(e<r)r-=e;else{let i=r/e;if(i<=0)return n;if(i>=1)return{x:t.x,y:t.y};if(i>0&&i<1)return{x:B((1-i)*n.x+i*t.x,5),y:B((1-i)*n.y+i*t.y,5)}}}n=t}throw Error("Could not find a suitable point for the given distance")},"calculatePoint"),U=(0,s.K)((e,t,n)=>{a.R.info(`our points ${JSON.stringify(t)}`),t[0]!==n&&(t=t.reverse());let r=H(t,25),i=e?10:5,s=Math.atan2(t[0].y-r.y,t[0].x-r.x),o={x:0,y:0};return o.x=Math.sin(s)*i+(t[0].x+r.x)/2,o.y=-Math.cos(s)*i+(t[0].y+r.y)/2,o},"calcCardinalityPosition");function $(e,t,n){let r=structuredClone(n);a.R.info("our points",r),"start_left"!==t&&"start_right"!==t&&r.reverse();let i=H(r,25+e),s=10+.5*e,o=Math.atan2(r[0].y-i.y,r[0].x-i.x),l={x:0,y:0};return"start_left"===t?(l.x=Math.sin(o+Math.PI)*s+(r[0].x+i.x)/2,l.y=-Math.cos(o+Math.PI)*s+(r[0].y+i.y)/2):"end_right"===t?(l.x=Math.sin(o-Math.PI)*s+(r[0].x+i.x)/2-5,l.y=-Math.cos(o-Math.PI)*s+(r[0].y+i.y)/2-5):"end_left"===t?(l.x=Math.sin(o)*s+(r[0].x+i.x)/2-5,l.y=-Math.cos(o)*s+(r[0].y+i.y)/2-5):(l.x=Math.sin(o)*s+(r[0].x+i.x)/2,l.y=-Math.cos(o)*s+(r[0].y+i.y)/2),l}function j(e){let t="",n="";for(let r of e)void 0!==r&&(r.startsWith("color:")||r.startsWith("text-align:")?n=n+r+";":t=t+r+";");return{style:t,labelStyle:n}}(0,s.K)($,"calcTerminalLabelPosition"),(0,s.K)(j,"getStylesFromArray");var z=0,G=(0,s.K)(()=>(z++,"id-"+Math.random().toString(36).substr(2,12)+"-"+z),"generateId");function V(e){let t="",n="0123456789abcdef",r=n.length;for(let i=0;i<e;i++)t+=n.charAt(Math.floor(Math.random()*r));return t}(0,s.K)(V,"makeRandomHex");var K=(0,s.K)(e=>V(e.length),"random"),W=(0,s.K)(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),q=(0,s.K)(function(e,t){let n=t.text.replace(i.Y2.lineBreakRegex," "),[,r]=ei(t.fontSize),a=e.append("text");a.attr("x",t.x),a.attr("y",t.y),a.style("text-anchor",t.anchor),a.style("font-family",t.fontFamily),a.style("font-size",r),a.style("font-weight",t.fontWeight),a.attr("fill",t.fill),void 0!==t.class&&a.attr("class",t.class);let s=a.append("tspan");return s.attr("x",t.x+2*t.textMargin),s.attr("fill",t.fill),s.text(n),a},"drawSimpleText"),Y=c((e,t,n)=>{if(!e||(n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},n),i.Y2.lineBreakRegex.test(e)))return e;let r=e.split(" ").filter(Boolean),a=[],s="";return r.forEach((e,i)=>{let o=Z(`${e} `,n),l=Z(s,n);if(o>t){let{hyphenatedStrings:r,remainingWord:i}=X(e,t,"-",n);a.push(s,...r),s=i}else l+o>=t?(a.push(s),s=e):s=[s,e].filter(Boolean).join(" ");i+1===r.length&&a.push(s)}),a.filter(e=>""!==e).join(n.joinWith)},(e,t,n)=>`${e}${t}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`),X=c((e,t,n="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);let i=[...e],a=[],s="";return i.forEach((e,o)=>{let l=`${s}${e}`;if(Z(l,r)>=t){let e=i.length===o+1,t=`${l}${n}`;a.push(e?l:t),s=""}else s=l}),{hyphenatedStrings:a,remainingWord:s}},(e,t,n="-",r)=>`${e}${t}${n}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function Q(e,t){return J(e,t).height}function Z(e,t){return J(e,t).width}(0,s.K)(Q,"calculateTextHeight"),(0,s.K)(Z,"calculateTextWidth");var J=c((e,t)=>{let{fontSize:n=12,fontFamily:r="Arial",fontWeight:a=400}=t;if(!e)return{width:0,height:0};let[,s]=ei(n),o=e.split(i.Y2.lineBreakRegex),c=[],u=(0,l.Ltv)("body");if(!u.remove)return{width:0,height:0,lineHeight:0};let h=u.append("svg");for(let e of["sans-serif",r]){let t=0,n={width:0,height:0,lineHeight:0};for(let r of o){let i=W();i.text=r||A;let o=q(h,i).style("font-size",s).style("font-weight",a).style("font-family",e),l=(o._groups||o)[0][0].getBBox();if(0===l.width&&0===l.height)throw Error("svg element not in render tree");n.width=Math.round(Math.max(n.width,l.width)),t=Math.round(l.height),n.height+=t,n.lineHeight=Math.round(Math.max(n.lineHeight,t))}c.push(n)}h.remove();let d=isNaN(c[1].height)||isNaN(c[1].width)||isNaN(c[1].lineHeight)||c[0].height>c[1].height&&c[0].width>c[1].width&&c[0].lineHeight>c[1].lineHeight?0:1;return c[d]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),ee=class{constructor(e=!1,t){this.count=0,this.count=t?t.length:0,this.next=e?()=>this.count++:()=>Date.now()}static{(0,s.K)(this,"InitIDGenerator")}},et=(0,s.K)(function(e){return r=r||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),r.innerHTML=e,unescape(r.textContent)},"entityDecode");function en(e){return"str"in e}(0,s.K)(en,"isDetailedError");var er=(0,s.K)((e,t,n,r)=>{if(!r)return;let i=e.node()?.getBBox();i&&e.append("text").text(r).attr("text-anchor","middle").attr("x",i.x+i.width/2).attr("y",-n).attr("class",t)},"insertTitle"),ei=(0,s.K)(e=>{if("number"==typeof e)return[e,e+"px"];let t=parseInt(e??"",10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e]},"parseFontSize");function ea(e,t){return function(e,...t){return function(e,...t){let n=t.slice(0,-1),r=t[t.length-1],i=e;for(let e=0;e<n.length;e++)i=function e(t,n,r,i){if((0,h.s)(t)&&(t=Object(t)),null==n||"object"!=typeof n)return t;if(i.has(n))return function(e){if((0,h.s)(e))return e;if(Array.isArray(e)||(0,d.i)(e)||e instanceof ArrayBuffer||"u">typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer)return e.slice(0);let t=Object.getPrototypeOf(e);if(null==t)return Object.assign(Object.create(t),e);let n=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new n(e);if(e instanceof RegExp){let t=new n(e);return t.lastIndex=e.lastIndex,t}if(e instanceof DataView)return new n(e.buffer.slice(0));if(e instanceof Error){let t;return(t=e instanceof AggregateError?new n(e.errors,e.message,{cause:e.cause}):new n(e.message,{cause:e.cause})).stack=e.stack,Object.assign(t,e),t}return"u">typeof File&&e instanceof File?new n([e],e.name,{type:e.type,lastModified:e.lastModified}):"object"==typeof e?Object.assign(Object.create(t),e):e}(i.get(n));if(i.set(n,t),Array.isArray(n)){n=n.slice();for(let e=0;e<n.length;e++)n[e]=n[e]??void 0}let a=[...Object.keys(n),...p(n)];for(let o=0;o<a.length;o++){let l=a[o];if("__proto__"===l)continue;let c=n[l],u=t[l];if((0,v.N)(c)&&(c={...c}),(0,v.N)(u)&&(u={...u}),(0,f.P)(c)&&(c=x(c)),Array.isArray(c))if(Array.isArray(u)){let e=[],t=Reflect.ownKeys(u);for(let n=0;n<t.length;n++){let r=t[n];e[r]=u[r]}u=e}else{var s;if(E(s=u)&&(0,_.X)(s)){let e=[];for(let t=0;t<u.length;t++)e[t]=u[t];u=e}else u=[]}let h=r(u,c,l,t,n,i);void 0!==h?t[l]=h:Array.isArray(c)||E(u)&&E(c)&&(m(u)||m(c)||(0,T.i)(u)||(0,T.i)(c))?t[l]=e(u,c,r,i):null==u&&m(c)?t[l]=e({},c,r,i):null==u&&(0,T.i)(c)?t[l]=x(c):(void 0===u||void 0!==c)&&(t[l]=c)}return t}(i,n[e],r,new Map);return i}(e,...t,u)}({},e,t)}(0,s.K)(ea,"cleanAndMerge");var es={assignWithDepth:i.hH,wrapLabel:Y,calculateTextHeight:Q,calculateTextWidth:Z,calculateTextDimensions:J,cleanAndMerge:ea,detectInit:C,detectDirective:N,isSubstringInArray:I,interpolateToCurve:R,calcLabelPosition:F,calcCardinalityPosition:U,calcTerminalLabelPosition:$,formatUrl:L,getStylesFromArray:j,generateId:G,random:K,runFunc:D,entityDecode:et,insertTitle:er,isLabelCoordinateInPath:eh,parseFontSize:ei,InitIDGenerator:ee},eo=(0,s.K)(function(e){let t=e;return(t=(t=t.replace(/style.*:\S*#.*;/g,function(e){return e.substring(0,e.length-1)})).replace(/classDef.*:\S*#.*;/g,function(e){return e.substring(0,e.length-1)})).replace(/#\w+;/g,function(e){let t=e.substring(1,e.length-1);return/^\+?\d+$/.test(t)?"fl\xb0\xb0"+t+"\xb6\xdf":"fl\xb0"+t+"\xb6\xdf"})},"encodeEntities"),el=(0,s.K)(function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),ec=(0,s.K)((e,t,{counter:n=0,prefix:r,suffix:i},a)=>a||`${r?`${r}_`:""}${e}_${t}_${n}${i?`_${i}`:""}`,"getEdgeId");function eu(e){return e??null}function eh(e,t){let n=Math.round(e.x),r=Math.round(e.y),i=t.replace(/(\d+\.\d+)/g,e=>Math.round(parseFloat(e)).toString());return i.includes(n.toString())||i.includes(r.toString())}(0,s.K)(eu,"handleUndefinedAttr"),(0,s.K)(eh,"isLabelCoordinateInPath")},4795:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("file-plus-corner",[["path",{d:"M11.35 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v5.35",key:"17jvcc"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M14 19h6",key:"bvotb8"}],["path",{d:"M17 16v6",key:"18yu1i"}]])},5733:(e,t,n)=>{"use strict";n.d(t,{WB:()=>l,_8:()=>u,hI:()=>c});var r=n(10813);function i(e,t,n,r){return{left:e,top:t,right:n,bottom:r,x:e,y:t,width:n-e,height:r-t}}function a(e){let t,n=[],r=1/0,a=1/0,s=-1/0,o=-1/0;for(let i of Array.from(e).sort((e,t)=>e.top-t.top)){if(r=Math.min(r,i.left),a=Math.min(a,i.top),s=Math.max(s,i.right),o=Math.max(o,i.bottom),!t||i.top-t.top>t.height/2)n.push({left:i.left,top:i.top,right:i.right,bottom:i.bottom,width:i.width,height:i.height});else{let e=n[n.length-1];e.left=Math.min(e.left,i.left),e.right=Math.max(e.right,i.right),e.bottom=Math.max(e.bottom,i.bottom),e.width=e.right-e.left,e.height=e.bottom-e.top}t=i}return{lines:n,fallback:i(r,a,s,o)}}function s(e,t,n){return e.findIndex(e=>t>e.left-2&&t<e.right+2&&n>e.top-2&&n<e.bottom+2)}function o(e){return i(e.left,e.top,e.right,e.bottom)}function l(e,t){function n(n){t||c(e,n.currentTarget,n.clientX,n.clientY)}return{onFocus(){e.current=void 0},onMouseEnter:n,onMouseMove:n}}function c(e,t,n,r){let i=function(e,t,n){let{lines:r}=a(e.getClientRects());if(r.length<2)return;let i=s(r,t,n);return{x:t,y:n,lineIndex:-1===i?void 0:i,element:e}}(t,n,r);return e.current=i,i}function u(e){return{name:"inline",async fn(t){let n=t.elements.reference;if("function"!=typeof n?.getClientRects)return{};let l="contextElement"in n&&n.contextElement?n.contextElement:(0,r.vq)(n)?n:void 0,c=e.current,u=c?.element===n||c?.element===l?c:void 0,h=function(e,t,n){let{lines:r,fallback:l}=a(e.getClientRects());if(r.length<2)return null;let c=n?.x,u=n?.y,h=t[0];if(n?.lineIndex!=null&&r[n.lineIndex])return o(r[n.lineIndex]);if(null!=c&&null!=u){let e=s(r,c,u);if(-1!==e)return o(r[e])}if(2===r.length&&r[0].left>r[1].right&&null!=c&&null!=u)return l;if("t"===h||"b"===h){let e=r[0],t=r[r.length-1],n="t"===h?e:t;return i(n.left,e.top,n.right,t.bottom)}let d="l"===h,p=r[0].left,f=r[0].right,m=d?1/0:-1/0,g=r[0],y=r[0];for(let e of r){p=Math.min(p,e.left),f=Math.max(f,e.right);let t=d?e.left:e.right;d&&t<m||!d&&t>m?(m=t,g=e,y=e):t===m&&(y=e)}return i(p,g.top,f,y.bottom)}(n,t.placement,u);if(!h||"function"!=typeof t.platform.getElementRects)return{};let d=await t.platform.getElementRects({reference:{contextElement:l,getBoundingClientRect:()=>h},floating:t.elements.floating,strategy:t.strategy});return t.rects.reference.x===d.reference.x&&t.rects.reference.y===d.reference.y&&t.rects.reference.width===d.reference.width&&t.rects.reference.height===d.reference.height?{}:{reset:{rects:d}}}}}},6609:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},7010:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]])},7632:(e,t,n)=>{"use strict";n.d(t,{Nq:()=>s,RI:()=>c,Wg:()=>i,hq:()=>a});var r=n(39410),i=(0,r.K)((e,t)=>{if(t)return"translate("+-e.width/2+", "+-e.height/2+")";let n=e.x??0,r=e.y??0;return"translate("+-(n+e.width/2)+", "+-(r+e.height/2)+")"},"computeLabelTransform"),a={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},s={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function o(e,t){if(void 0===e||void 0===t)return{angle:0,deltaX:0,deltaY:0};e=l(e),t=l(t);let[n,r]=[e.x,e.y],[i,a]=[t.x,t.y],s=i-n,o=a-r;return{angle:Math.atan(o/s),deltaX:s,deltaY:o}}(0,r.K)(o,"calculateDeltaAndAngle");var l=(0,r.K)(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,"pointTransformer"),c=(0,r.K)(e=>({x:(0,r.K)(function(t,n,r){let i=0,s=l(r[0]).x<l(r[r.length-1]).x?"left":"right";if(0===n&&Object.hasOwn(a,e.arrowTypeStart)){let{angle:t,deltaX:n}=o(r[0],r[1]);i=a[e.arrowTypeStart]*Math.cos(t)*(n>=0?1:-1)}else if(n===r.length-1&&Object.hasOwn(a,e.arrowTypeEnd)){let{angle:t,deltaX:n}=o(r[r.length-1],r[r.length-2]);i=a[e.arrowTypeEnd]*Math.cos(t)*(n>=0?1:-1)}let c=Math.abs(l(t).x-l(r[r.length-1]).x),u=Math.abs(l(t).y-l(r[r.length-1]).y),h=Math.abs(l(t).x-l(r[0]).x),d=Math.abs(l(t).y-l(r[0]).y),p=a[e.arrowTypeStart],f=a[e.arrowTypeEnd];if(c<f&&c>0&&u<f){let e=f+1-c;e*="right"===s?-1:1,i-=e}if(h<p&&h>0&&d<p){let e=p+1-h;e*="right"===s?-1:1,i+=e}return l(t).x+i},"x"),y:(0,r.K)(function(t,n,r){let i=0,s=l(r[0]).y<l(r[r.length-1]).y?"down":"up";if(0===n&&Object.hasOwn(a,e.arrowTypeStart)){let{angle:t,deltaY:n}=o(r[0],r[1]);i=a[e.arrowTypeStart]*Math.abs(Math.sin(t))*(n>=0?1:-1)}else if(n===r.length-1&&Object.hasOwn(a,e.arrowTypeEnd)){let{angle:t,deltaY:n}=o(r[r.length-1],r[r.length-2]);i=a[e.arrowTypeEnd]*Math.abs(Math.sin(t))*(n>=0?1:-1)}let c=Math.abs(l(t).y-l(r[r.length-1]).y),u=Math.abs(l(t).x-l(r[r.length-1]).x),h=Math.abs(l(t).y-l(r[0]).y),d=Math.abs(l(t).x-l(r[0]).x),p=a[e.arrowTypeStart],f=a[e.arrowTypeEnd];if(c<f&&c>0&&u<f){let e=f+1-c;e*="up"===s?-1:1,i-=e}if(h<p&&h>0&&d<p){let e=p+1-h;e*="up"===s?-1:1,i+=e}return l(t).y+i},"y")}),"getLineFunctionsWithOffset")},8356:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("clock-3",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6h4",key:"135r8i"}]])},8581:(e,t,n)=>{"use strict";n.d(t,{G:()=>i});var r=n(54967);function i(e){return{checked:t=>e.indeterminate?{}:t?{"data-checked":""}:{"data-unchecked":""},...r.dc}}},8675:(e,t,n)=>{"use strict";n.d(t,{V:()=>i,r:()=>r});let r=600,i=300},8934:(e,t,n)=>{"use strict";n.d(t,{r:()=>s,w:()=>a});var r=n(80417),i=n(69266);let a=i.createContext(void 0);function s(){let e=i.useContext(a);if(void 0===e)throw Error((0,r.A)(49));return e}},9922:(e,t,n)=>{"use strict";let r,i,a;n.d(t,{PY1:()=>aO});let s=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],o=new Set([...s,"pathRotation"]),l=(e,t,n)=>n>t?t:n<e?e:n,c={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},u={...c,transform:e=>l(0,1,e)},h={...c,default:1},d=e=>Math.round(1e5*e)/1e5,p=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,f=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,m=(e,t)=>n=>!!("string"==typeof n&&f.test(n)&&n.startsWith(e)||t&&null!=n&&Object.prototype.hasOwnProperty.call(n,t)),g=(e,t,n)=>r=>{if("string"!=typeof r)return r;let[i,a,s,o]=r.match(p);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(s),alpha:void 0!==o?parseFloat(o):1}},y={...c,transform:e=>Math.round(l(0,255,e))},b={test:m("rgb","red"),parse:g("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+y.transform(e)+", "+y.transform(t)+", "+y.transform(n)+", "+d(u.transform(r))+")"},k={test:m("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:b.transform},x=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),v=x("deg"),E=x("%"),_=x("px"),T=x("vh"),A=x("vw"),w={...E,parse:e=>E.parse(e)/100,transform:e=>E.transform(100*e)},S={test:m("hsl","hue"),parse:g("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+E.transform(d(t))+", "+E.transform(d(n))+", "+d(u.transform(r))+")"},C={test:e=>b.test(e)||k.test(e)||S.test(e),parse:e=>b.test(e)?b.parse(e):S.test(e)?S.parse(e):k.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?b.transform(e):S.transform(e),getAnimatableNone:e=>{let t=C.parse(e);return t.alpha=0,C.transform(t)}},N=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,M="number",I="color",R=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function L(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0,s=t.replace(R,e=>(C.test(e)?(r.color.push(a),i.push(I),n.push(C.parse(e))):e.startsWith("var(")?(r.var.push(a),i.push("var"),n.push(e)):(r.number.push(a),i.push(M),n.push(parseFloat(e))),++a,"${}")).split("${}");return{values:n,split:s,indexes:r,types:i}}function D({split:e,types:t}){let n=e.length;return r=>{let i="";for(let a=0;a<n;a++)if(i+=e[a],void 0!==r[a]){let e=t[a];e===M?i+=d(r[a]):e===I?i+=C.transform(r[a]):i+=r[a]}return i}}let O={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(p)?.length||0)+(e.match(N)?.length||0)>0},parse:function(e){return L(e).values},createTransformer:function(e){return D(L(e))},getAnimatableNone:function(e){let t=L(e);return D(t)(t.values.map((e,n)=>((e,t)=>"number"==typeof e?t?.trim().endsWith("/")?e:0:"number"==typeof e?0:C.test(e)?C.getAnimatableNone(e):e)(e,t.split[n])))}},P=new Set(["brightness","contrast","saturate","opacity"]);function F(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(p)||[];if(!r)return e;let i=n.replace(r,""),a=+!!P.has(t);return r!==n&&(a*=100),t+"("+a+i+")"}let B=/\b([a-z-]*)\(.*?\)/gu,H={...O,getAnimatableNone:e=>{let t=e.match(B);return t?t.map(F).join(" "):e}},U={...O,getAnimatableNone:e=>{let t=O.parse(e);return O.createTransformer(e)(t.map(e=>"number"==typeof e?0:"object"==typeof e?{...e,alpha:1}:e))}},$={...c,transform:Math.round},j={borderWidth:_,borderTopWidth:_,borderRightWidth:_,borderBottomWidth:_,borderLeftWidth:_,borderRadius:_,borderTopLeftRadius:_,borderTopRightRadius:_,borderBottomRightRadius:_,borderBottomLeftRadius:_,width:_,maxWidth:_,height:_,maxHeight:_,top:_,right:_,bottom:_,left:_,inset:_,insetBlock:_,insetBlockStart:_,insetBlockEnd:_,insetInline:_,insetInlineStart:_,insetInlineEnd:_,padding:_,paddingTop:_,paddingRight:_,paddingBottom:_,paddingLeft:_,paddingBlock:_,paddingBlockStart:_,paddingBlockEnd:_,paddingInline:_,paddingInlineStart:_,paddingInlineEnd:_,margin:_,marginTop:_,marginRight:_,marginBottom:_,marginLeft:_,marginBlock:_,marginBlockStart:_,marginBlockEnd:_,marginInline:_,marginInlineStart:_,marginInlineEnd:_,fontSize:_,backgroundPositionX:_,backgroundPositionY:_,rotate:v,pathRotation:v,rotateX:v,rotateY:v,rotateZ:v,scale:h,scaleX:h,scaleY:h,scaleZ:h,skew:v,skewX:v,skewY:v,distance:_,translateX:_,translateY:_,translateZ:_,x:_,y:_,z:_,perspective:_,transformPerspective:_,opacity:u,originX:w,originY:w,originZ:_,zIndex:$,fillOpacity:u,strokeOpacity:u,numOctaves:$},z={...j,color:C,backgroundColor:C,outlineColor:C,fill:C,stroke:C,borderColor:C,borderTopColor:C,borderRightColor:C,borderBottomColor:C,borderLeftColor:C,filter:H,WebkitFilter:H,mask:U,WebkitMask:U},G=e=>z[e],V=()=>({translate:0,scale:1,origin:0,originPoint:0}),K=()=>({x:V(),y:V()}),W=()=>({min:0,max:0}),q=()=>({x:W(),y:W()}),Y=e=>!!(e&&e.getVelocity),X=new Set(["width","height","top","left","right","bottom",...s]),Q=e=>t=>t.test(e),Z=[c,_,E,v,A,T,{test:e=>"auto"===e,parse:e=>e}],J=e=>Z.find(Q(e));n(21966);let ee=()=>{},et=()=>{},en=e=>t=>"string"==typeof t&&t.startsWith(e),er=en("--"),ei=en("var(--"),ea=e=>!!ei(e)&&es.test(e.split("/*")[0].trim()),es=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function eo(e){return"string"==typeof e&&e.split("/*")[0].includes("var(--")}let el=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,ec=e=>180*e/Math.PI,eu=e=>ed(ec(Math.atan2(e[1],e[0]))),eh={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:eu,rotateZ:eu,skewX:e=>ec(Math.atan(e[1])),skewY:e=>ec(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},ed=e=>((e%=360)<0&&(e+=360),e),ep=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),ef=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),em={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ep,scaleY:ef,scale:e=>(ep(e)+ef(e))/2,rotateX:e=>ed(ec(Math.atan2(e[6],e[5]))),rotateY:e=>ed(ec(Math.atan2(-e[2],e[0]))),rotateZ:eu,rotate:eu,skewX:e=>ec(Math.atan(e[4])),skewY:e=>ec(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function eg(e){return+!!e.includes("scale")}function ey(e,t){let n,r;if(!e||"none"===e)return eg(t);let i=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(i)n=em,r=i;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=eh,r=t}if(!r)return eg(t);let a=n[t],s=r[1].split(",").map(eb);return"function"==typeof a?a(s):s[a]}function eb(e){return parseFloat(e.trim())}let ek=e=>e===c||e===_,ex=new Set(["x","y","z"]),ev=s.filter(e=>!ex.has(e)),eE={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{let i=e.max-e.min;return"border-box"===r?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{let i=e.max-e.min;return"border-box"===r?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>ey(t,"x"),y:(e,{transform:t})=>ey(t,"y")};eE.translateX=eE.x,eE.translateY=eE.y;let e_=e=>e,eT={},eA=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function ew(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,s=eA.reduce((e,t)=>(e[t]=function(e){let t=new Set,n=new Set,r=!1,i=!1,a=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1};function o(t){a.has(t)&&(l.schedule(t),e()),t(s)}let l={schedule:(e,i=!1,s=!1)=>{let o=s&&r?t:n;return i&&a.add(e),o.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(s=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(o),t.clear(),r=!1,i&&(i=!1,l.process(e))}};return l}(a),e),{}),{setup:o,read:l,resolveKeyframes:c,preUpdate:u,update:h,preRender:d,render:p,postRender:f}=s,m=()=>{let a=eT.useManualTiming,s=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(s-i.timestamp,40),1)),i.timestamp=s,i.isProcessing=!0,o.process(i),l.process(i),c.process(i),u.process(i),h.process(i),d.process(i),p.process(i),f.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(m))};return{schedule:eA.reduce((t,a)=>{let o=s[a];return t[a]=(t,a=!1,s=!1)=>(!n&&(n=!0,r=!0,i.isProcessing||e(m)),o.schedule(t,a,s)),t},{}),cancel:e=>{for(let t=0;t<eA.length;t++)s[eA[t]].cancel(e)},state:i,steps:s}}let{schedule:eS,cancel:eC,state:eN,steps:eM}=ew("u">typeof requestAnimationFrame?requestAnimationFrame:e_,!0),eI=new Set,eR=!1,eL=!1,eD=!1;function eO(){if(eL){let e=Array.from(eI).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t,r=(t=[],ev.forEach(n=>{let r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(+!!n.startsWith("scale")))}),t);r.length&&(n.set(e,r),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}eL=!1,eR=!1,eI.forEach(e=>e.complete(eD)),eI.clear()}function eP(){eI.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(eL=!0)})}class eF{constructor(e,t,n,r,i,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(eI.add(this),eR||(eR=!0,eS.read(eP),eS.resolveKeyframes(eO))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(null===e[0]){let i=r?.get(),a=e[e.length-1];if(void 0!==i)e[0]=i;else if(n&&t){let r=n.readValue(t,a);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=a),r&&void 0===i&&r.set(e[0])}for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),eI.delete(this)}cancel(){"scheduled"===this.state&&(eI.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let eB=new Set([H,U]);function eH(e,t){let n=G(e);return eB.has(n)||(n=O),n.getAnimatableNone?n.getAnimatableNone(t):void 0}let eU=new Set(["auto","none","0"]);class e$ extends eF{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&ea(r=r.trim())){let i=function e(t,n,r=1){et(`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[i,a]=function(e){let t=el.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}(t);if(!i)return;let s=window.getComputedStyle(n).getPropertyValue(i);if(s){let e=s.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)?parseFloat(e):e}return ea(a)?e(a,n,r+1):a}(r,t.current);void 0!==i&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!X.has(n)||2!==e.length)return;let[r,i]=e,a=J(r),s=J(i);if(eo(r)!==eo(i)&&eE[n]){this.needsMeasurement=!0;return}if(a!==s)if(ek(a)&&ek(s))for(let t=0;t<e.length;t++){let n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else eE[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(null===e[t]||function(e){if("number"==typeof e)return 0===e;if(null===e)return!0;return"none"===e||"0"===e||/^0[^.\s]+$/u.test(e)}(e[t]))&&n.push(t);n.length&&function(e,t,n){let r,i=0;for(;i<e.length&&!r;){let t=e[i];"string"==typeof t&&!eU.has(t)&&L(t).values.length&&(r=e[i]),i++}if(r&&n)for(let i of t)e[i]=eH(n,r)}(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=eE[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=eE[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==a&&void 0===this.finalKeyframe&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}}let ej=e=>1e3*e;function ez(e,t){-1===e.indexOf(t)&&e.push(t)}function eG(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class eV{constructor(){this.subscriptions=[]}add(e){return ez(this.subscriptions,e),()=>eG(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function eK(e,t,n){t.startsWith("--")?e.style.setProperty(t,n):e.style[t]=n}function eW(e){let t;return()=>(void 0===t&&(t=e()),t)}let eq={};function eY(e,t){let n=eW(e);return()=>eq[t]??n()}let eX=eY(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),eQ=e=>null!==e;function eZ(e,{repeat:t,repeatType:n="loop"},r,i=1){let a=e.filter(eQ),s=i<0||t&&"loop"!==n&&t%2==1?0:a.length-1;return s&&void 0!==r?r:a[s]}class eJ{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let e0=e=>Array.isArray(e)&&"number"==typeof e[0],e1=eY(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),e2=(e,t,n=10)=>{let r="",i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(1e4*e(t/(i-1)))/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},e5=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,e3={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:e5([0,.65,.55,1]),circOut:e5([.55,0,1,.45]),backIn:e5([.31,.01,.66,-.59]),backOut:e5([.33,1.53,.69,.99])};function e6(e){return"function"==typeof e&&"applyToOptions"in e}class e9 extends eJ{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:s,onComplete:o}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,et(e.type);const l=function({type:e,...t}){return e6(e)&&e1()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:s="loop",ease:o="easeOut",times:l}={},c){let u={[t]:n};l&&(u.offset=l);let h=function e(t,n){if(t)return"function"==typeof t?e1()?e2(t,n):"ease-out":e0(t)?e5(t):Array.isArray(t)?t.map(t=>e(t,n)||e3.easeOut):e3[t]}(o,i);Array.isArray(h)&&(u.easing=h);let d={delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:a+1,direction:"reverse"===s?"alternate":"normal"};return c&&(d.pseudoElement=c),e.animate(u,d)}(t,n,r,l,i),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=eZ(r,this.options,s,this.speed);this.updateMotionValue&&this.updateMotionValue(e),eK(t,n,e),this.animation.cancel()}o?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(e){let t=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ej(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&eX())?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),e_):r(this)}}let e4=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),{schedule:e8}=ew(queueMicrotask,!1);function e7(){r=void 0}let te={now:()=>(void 0===r&&te.set(eN.isProcessing||eT.useManualTiming?eN.timestamp:performance.now()),r),set:e=>{r=e,queueMicrotask(e7)}},tt=(e,t)=>t?1e3/t*e:0,tn;class tr{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=te.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=te.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new eV);let n=this.events[e].add(t);return"change"===e?()=>{n(),eS.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return tn&&tn.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=te.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return tt(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ti(e,t){return new tr(e,t)}let ta=[...Z,C,O],ts=new WeakMap;function to(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function tl(e){return"string"==typeof e||Array.isArray(e)}let tc=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],tu=["initial",...tc];function th(e){return to(e.animate)||tu.some(t=>tl(e[t]))}function td(e){return!!(th(e)||e.variants)}var tp=n(85784);function tf(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function tm(e,t,n,r){if("function"==typeof t){let[i,a]=tf(r);t=t(void 0!==n?n:e.custom,i,a)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[i,a]=tf(r);t=t(void 0!==n?n:e.custom,i,a)}return t}var tg=n(37847);let ty=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],tb={};class tk{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=eF,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=te.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,eS.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=c,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=o,this.blockInitialAnimation=!!a,this.isControllingVariants=th(t),this.isVariantNode=td(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:u,...h}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in h){const t=h[e];void 0!==l[e]&&Y(t)&&t.set(l[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,ts.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(tg.r.current||(0,tp.Uu)(),this.shouldReduceMotion=tg.O.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let e in this.projection&&this.projection.unmount(),eC(this.notifyUpdate),eC(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){let n;if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&e4.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:s}=t.accelerate,o=new e9({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:ej(s)}),l=n(o);this.valueSubscriptions.set(e,()=>{l(),o.cancel()});return}let r=o.has(e);r&&this.onBindTransform&&this.onBindTransform();let i=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&eS.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{i(),n&&n()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in tb){let t=tb[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):q()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<ty.length;t++){let n=ty[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){for(let r in t){let i=t[r],a=n[r];if(Y(i))e.addValue(r,i);else if(Y(a))e.addValue(r,ti(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,ti(void 0!==t?t:i,{owner:e}))}}for(let r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=ti(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=n){let r,i;if("string"==typeof n&&(r=n,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(r)||(i=n,/^0[^.\s]+$/u.test(i))))n=parseFloat(n);else{let r;r=n,!ta.find(Q(r))&&O.test(t)&&(n=eH(e,t))}this.setBaseTarget(e,Y(n)?n.get():n)}return Y(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let r=tm(this.props,n,this.presenceContext?.custom);r&&(t=r[e])}if(n&&void 0!==t)return t;let r=this.getBaseTargetFromProps(this.props,e);return void 0===r||Y(r)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:r}on(e,t){return this.events[e]||(this.events[e]=new eV),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){e8.render(this.render)}}class tx extends tk{constructor(){super(...arguments),this.KeyframeResolver=e$}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;Y(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function tv(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}let tE=(e,t)=>t&&"number"==typeof e?t.transform(e):e,t_={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tT=s.length;function tA(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,l=!1,c=!1;for(let e in t){let n=t[e];if(o.has(e)){l=!0;continue}if(er(e)){i[e]=n;continue}{let t=tE(n,j[e]);e.startsWith("origin")?(c=!0,a[e]=t):r[e]=t}}if(!t.transform&&(l||n?r.transform=function(e,t,n){let r="",i=!0;for(let a=0;a<tT;a++){let o=s[a],l=e[o];if(void 0===l)continue;let c=!0;if("number"==typeof l)c=l===+!!o.startsWith("scale");else{let e=parseFloat(l);c=o.startsWith("scale")?1===e:0===e}if(!c||n){let e=tE(l,j[o]);if(!c){i=!1;let t=t_[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${tE(a,j.pathRotation)}) `),r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),c){let{originX:e="50%",originY:t="50%",originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}let tw={offset:"stroke-dashoffset",array:"stroke-dasharray"},tS={offset:"strokeDashoffset",array:"strokeDasharray"},tC=["transform","opacity","offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function tN(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:s=0,...o},l,c,u){if(tA(e,o,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:h,style:d}=e;for(let e of tC)void 0!==h[e]&&(d[e]=h[e],delete h[e]);(d.transform||h.transformOrigin)&&(d.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),d.transform&&(d.transformBox=u?.transformBox??"fill-box",delete h.transformBox),void 0!==t&&(h.x=t),void 0!==n&&(h.y=n),void 0!==r&&(h.scale=r),void 0!==i&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?tw:tS;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}(h,i,a,s,!1)}let tM=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),tI=e=>"string"==typeof e&&"svg"===e.toLowerCase();function tR(e,{style:t,vars:n},r,i){let a,s=e.style;for(a in t)s[a]=t[a];for(a in i?.applyProjectionStyles(s,r),n)s.setProperty(a,n[a])}let tL=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function tD(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let tO={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!_.test(e))return e;else e=parseFloat(e);let n=tD(e,t.target.x),r=tD(e,t.target.y);return`${n}% ${r}%`}},tP=(e,t,n)=>e+(t-e)*n,tF={borderRadius:{...tO,applyTo:[...tL]},borderTopLeftRadius:tO,borderTopRightRadius:tO,borderBottomLeftRadius:tO,borderBottomRightRadius:tO,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let r=O.parse(e);if(r.length>5)return e;let i=O.createTransformer(e),a=+("number"!=typeof r[0]),s=n.x.scale*t.x,o=n.y.scale*t.y;r[0+a]/=s,r[1+a]/=o;let l=tP(s,o,.5);return"number"==typeof r[2+a]&&(r[2+a]/=l),"number"==typeof r[3+a]&&(r[3+a]/=l),i(r)}}};function tB(e,{layout:t,layoutId:n}){return o.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!tF[e]||"opacity"===e)}function tH(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(Y(r[t])||i&&Y(i[t])||tB(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function tU(e,t,n){let r=tH(e,t,n);for(let n in e)(Y(e[n])||Y(t[n]))&&(r[-1!==s.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return r}class t$ extends tx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=q}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(o.has(t)){let e=G(t);return e&&e.default||0}if(tC.includes(t)){let n=getComputedStyle(e)[t];if("string"==typeof n&&n)return n.trim()}return t=tM.has(t)?t:tv(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return tU(e,t,n)}build(e,t,n){tN(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){for(let n in tR(e,t,void 0,r),t.attrs)e.setAttribute(tM.has(n)?n:tv(n),t.attrs[n])}mount(e){this.isSVGTag=tI(e.tagName),super.mount(e)}}function tj({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function tz(e){return void 0===e||1===e}function tG({scale:e,scaleX:t,scaleY:n}){return!tz(e)||!tz(t)||!tz(n)}function tV(e){return tG(e)||tK(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function tK(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function tW(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function tq(e,t=0,n=1,r,i){e.min=tW(e.min,t,n,r,i),e.max=tW(e.max,t,n,r,i)}function tY(e,{x:t,y:n}){tq(e.x,t.translate,t.scale,t.originPoint),tq(e.y,n.translate,n.scale,n.originPoint)}function tX(e,t){e.min+=t,e.max+=t}function tQ(e,t,n,r,i=.5){let a=tP(e.min,e.max,i);tq(e,t,n,a,r)}function tZ(e,t){return"string"==typeof e?parseFloat(e)/100*(t.max-t.min):e}function tJ(e,t,n){let r=n??e;tQ(e.x,tZ(t.x,r.x),t.scaleX,t.scale,t.originX),tQ(e.y,tZ(t.y,r.y),t.scaleY,t.scale,t.originY)}function t0(e,t){return tj(function(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}class t1 extends tx{constructor(){super(...arguments),this.type="html",this.renderInstance=tR}mount(e){et(e.style),super.mount(e)}readValueFromInstance(e,t){if(o.has(t))return this.projection?.isProjecting?eg(t):((e,t)=>{let{transform:n="none"}=getComputedStyle(e);return ey(n,t)})(e,t);{let n=window.getComputedStyle(e),r=(er(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return t0(e,t)}build(e,t,n){tA(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return tH(e,t,n)}}var t2=n(69266);let t5=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function t3(e){if("string"!=typeof e||e.includes("-"));else if(t5.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}var t6=n(7962),t9=n(82544);let t4=(0,t2.createContext)({strict:!1});var t8=n(55263);let t7=(0,t2.createContext)({});function ne(e){return Array.isArray(e)?e.join(" "):e}let nt=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function nn(e,t,n){for(let r in t)Y(t[r])||tB(r,n)||(e[r]=t[r])}let nr=()=>({...nt(),attrs:{}}),ni=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function na(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||ni.has(e)}function ns(e){return Y(e)?e.get():e}var no=n(35182),nl=n(83864);let nc=e=>(t,n)=>{let r=(0,t2.useContext)(t7),i=(0,t2.useContext)(no.t),a=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:function(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=ns(a[e]);let{initial:s,animate:o}=e,l=th(e),c=td(e);t&&c&&!l&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===o&&(o=t.animate));let u=!!n&&!1===n.initial,h=(u=u||!1===s)?o:s;if(h&&"boolean"!=typeof h&&!to(h)){let t=Array.isArray(h)?h:[h];for(let n=0;n<t.length;n++){let r=tm(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}(n,r,i,e),renderState:t()}})(e,t,r,i);return n?a():(0,nl.M)(a)},nu=nc({scrapeMotionValuesFromProps:tH,createRenderState:nt}),nh=nc({scrapeMotionValuesFromProps:tU,createRenderState:nr}),nd={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},np=!1;function nf(){return!function(){if(np)return;let e={};for(let t in nd)e[t]={isEnabled:e=>nd[t].some(t=>!!e[t])};tb=e,np=!0}(),tb}let nm=Symbol.for("motionComponentSymbol"),ng="data-"+tv("framerAppearId"),ny=(0,t2.createContext)({});function nb(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}var nk=n(59863);function nx(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&function(e){let t=nf();for(let n in e)t[n]={...t[n],...e[n]};tb=t}(r);let a=n?"svg"===n:t3(e),s=a?nh:nu;function o(n,r){var o;let l,c,u,h={...(0,t2.useContext)(t8.Q),...n,layoutId:function({layoutId:e}){let t=(0,t2.useContext)(t9.L).id;return t&&void 0!==e?t+"-"+e:e}(n)},{isStatic:d,isValidProp:p}=h,f=function(e){let{initial:t,animate:n}=function(e,t){if(th(e)){let{initial:t,animate:n}=e;return{initial:!1===t||tl(t)?t:void 0,animate:tl(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,t2.useContext)(t7));return(0,t2.useMemo)(()=>({initial:t,animate:n}),[ne(t),ne(n)])}(n),m=s(n,d);if(!d&&"u">typeof window){(0,t2.useContext)(t4).strict;let t=function(e){let{drag:t,layout:n}=nf();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(h);l=t.MeasureLayout,f.visualElement=function(e,t,n,r,i,a){let{visualElement:s}=(0,t2.useContext)(t7),o=(0,t2.useContext)(t4),l=(0,t2.useContext)(no.t),c=(0,t2.useContext)(t8.Q),u=c.reducedMotion,h=c.skipAnimations,d=(0,t2.useRef)(null),p=(0,t2.useRef)(!1);r=r||o.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:s,props:n,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:u,skipAnimations:h,isSVG:a}),p.current&&d.current&&(d.current.manuallyAnimateOnMount=!0));let f=d.current,m=(0,t2.useContext)(ny);f&&!f.projection&&i&&("html"===f.type||"svg"===f.type)&&function(e,t,n,r){let{layoutId:i,layout:a,drag:s,dragConstraints:o,layoutScroll:l,layoutRoot:c,layoutAnchor:u,layoutCrossfade:h}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!s||o&&nb(o),visualElement:e,animationType:"string"==typeof a?a:"both",initialPromotionConfig:r,crossfade:h,layoutScroll:l,layoutRoot:c,layoutAnchor:u})}(d.current,n,i,m);let g=(0,t2.useRef)(!1);(0,t2.useInsertionEffect)(()=>{f&&g.current&&f.update(n,l)});let y=n[ng],b=(0,t2.useRef)(!!y&&"u">typeof window&&!window.MotionHandoffIsComplete?.(y)&&window.MotionHasOptimisedAnimation?.(y));return(0,nk.E)(()=>{p.current=!0,f&&(g.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),f.scheduleRenderMicrotask(),b.current&&f.animationState&&f.animationState.animateChanges())}),(0,t2.useEffect)(()=>{f&&(!b.current&&f.animationState&&f.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(y)}),b.current=!1),f.enteringChildren=void 0)}),f}(e,m,h,i,t.ProjectionNode,a)}return(0,t6.jsxs)(t7.Provider,{value:f,children:[l&&f.visualElement?(0,t6.jsx)(l,{visualElement:f.visualElement,...h}):null,function(e,t,n,{latestValues:r},i,a=!1,s,o){let l=(s??t3(e)?function(e,t,n,r){let i=(0,t2.useMemo)(()=>{let n=nr();return tN(n,t,tI(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};nn(t,e.style,e),i.style={...t,...i.style}}return i}:function(e,t){let n,r,i={},a=(n=e.style||{},nn(r={},n,e),Object.assign(r,function({transformTemplate:e},t){return(0,t2.useMemo)(()=>{let n=nt();return tA(n,t,e),Object.assign({},n.vars,n.style)},[t])}(e,t)),r);return e.drag&&!1!==e.dragListener&&(i.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(i.tabIndex=0),i.style=a,i})(t,r,i,e),c=function(e,t,n,r){let i={};for(let a in e)("values"!==a||"object"!=typeof e.values)&&!Y(e[a])&&((a.startsWith("on")?!na(a):r?.(a)??!na(a))||!0===n&&na(a)||!t&&!na(a)||e.draggable&&a.startsWith("onDrag"))&&(i[a]=e[a]);return i}(t,"string"==typeof e,a,o),u=e!==t2.Fragment?{...c,...l,ref:n}:{},{children:h}=t,d=(0,t2.useMemo)(()=>Y(h)?h.get():h,[h]);return(0,t2.createElement)(e,{...u,children:d})}(e,n,(o=f.visualElement,c=(0,t2.useRef)(r),(0,t2.useInsertionEffect)(()=>{c.current=r}),u=(0,t2.useRef)(null),(0,t2.useCallback)(e=>{e&&m.onMount?.(e),o&&(e?o.mount(e):o.unmount());let t=c.current;if("function"==typeof t)if(e){let n=t(e);"function"==typeof n&&(u.current=n)}else u.current?(u.current(),u.current=null):t(e);else t&&(t.current=e)},[o])),m,d,t,a,p)]})}o.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;let l=(0,t2.forwardRef)(o);return l[nm]=e,l}class nv{constructor(e){this.isMounted=!1,this.node=e}update(){}}function nE(e,t,n){let r=e.getProps();return tm(r,t,void 0!==n?n:r.custom,e)}function n_(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function nT(e,t){let n=e?.[t]??e?.default??e;return n!==e?n_(n,e):n}let nA=e=>Array.isArray(e);function nw(e,t){let n=e.getValue("willChange");if(Y(n)&&n.add)return n.add(t);if(!n&&eT.WillChange){let n=new eT.WillChange("auto");e.addValue("willChange",n),n.add(t)}}let nS=(...e)=>e.reduce((e,t)=>n=>t(e(n)));function nC(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function nN(e,t){return n=>n>0?t:e}let nM=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},nI=[k,b,S];function nR(e){let t=nI.find(t=>t.test(e));if(ee(`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===S&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,a=0,s=0;if(t/=100){let r=n<.5?n*(1+t):n+t-n*t,o=2*n-r;i=nC(o,r,e+1/3),a=nC(o,r,e),s=nC(o,r,e-1/3)}else i=a=s=n;return{red:Math.round(255*i),green:Math.round(255*a),blue:Math.round(255*s),alpha:r}}(n)),n}let nL=(e,t)=>{let n=nR(e),r=nR(t);if(!n||!r)return nN(e,t);let i={...n};return e=>(i.red=nM(n.red,r.red,e),i.green=nM(n.green,r.green,e),i.blue=nM(n.blue,r.blue,e),i.alpha=tP(n.alpha,r.alpha,e),b.transform(i))},nD=new Set(["none","hidden"]);function nO(e,t){return n=>tP(e,t,n)}function nP(e){return"number"==typeof e?nO:"string"==typeof e?ea(e)?nN:C.test(e)?nL:nH:Array.isArray(e)?nF:"object"==typeof e?C.test(e)?nL:nB:nN}function nF(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>nP(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function nB(e,t){let n={...e,...t},r={};for(let i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=nP(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}let nH=(e,t)=>{let n=O.createTransformer(t),r=L(e),i=L(t);if(!(r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length))return ee(`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),nN(e,t);if(nD.has(e)&&!i.values.length||nD.has(t)&&!r.values.length)return nD.has(e)?n=>n<=0?e:t:n=>n>=1?t:e;return nS(nF(function(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],s=e.indexes[a][r[a]],o=e.values[s]??0;n[i]=o,r[a]++}return n}(r,i),i.values),n)};function nU(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?tP(e,t,n):nP(e)(e,t)}let n$=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>eS.update(t,e),stop:()=>eC(t),now:()=>eN.isProcessing?eN.timestamp:te.now()}};function nj(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}let nz=.01,nG=2,nV=.005,nK=.5;function nW(e,t){return e*Math.sqrt(1-t*t)}let nq=["duration","bounce"],nY=["stiffness","damping","mass"];function nX(e,t){return t.some(t=>void 0!==e[t])}function nQ(e=.3,t=.3){let n,r,i,a,s,o,c="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:u,restDelta:h}=c,d=c.keyframes[0],p=c.keyframes[c.keyframes.length-1],f={done:!1,value:d},{stiffness:m,damping:g,mass:y,duration:b,velocity:k,isResolvedFromDuration:x}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!nX(e,nY)&&nX(e,nq))if(t.velocity=0,e.visualDuration){let n=2*Math.PI/(1.2*e.visualDuration),r=n*n,i=2*l(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:1,stiffness:r,damping:i}}else{let n=function({duration:e=800,bounce:t=.3,velocity:n=0,mass:r=1}){let i,a;ee(ej(10));let s=1-t;s=l(.05,1,s),e=l(.01,10,e/1e3),s<1?(i=t=>{let r=t*s,i=r*e;return .001-(r-n)/nW(t,s)*Math.exp(-i)},a=t=>{let r=t*s*e,a=Math.pow(s,2)*Math.pow(t,2)*e,o=Math.exp(-r),l=nW(Math.pow(t,2),s);return(r*n+n-a)*o*(-i(t)+.001>0?-1:1)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>e*e*(n-t)*Math.exp(-t*e));let o=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(i,a,5/e);if(e=ej(e),isNaN(o))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(o,2)*r;return{stiffness:t,damping:2*s*Math.sqrt(r*t),duration:e}}}({...e,velocity:0});(t={...t,...n,mass:1}).isResolvedFromDuration=!0}return t}({...c,velocity:-((c.velocity||0)/1e3)}),v=k||0,E=g/(2*Math.sqrt(m*y)),_=p-d,T=Math.sqrt(m/y)/1e3,A=5>Math.abs(_);if(u||(u=A?nz:nG),h||(h=A?nV:nK),E<1)i=nW(T,E),a=(v+E*T*_)/i,n=e=>p-Math.exp(-E*T*e)*(a*Math.sin(i*e)+_*Math.cos(i*e)),s=E*T*a+_*i,o=E*T*_-a*i,r=e=>Math.exp(-E*T*e)*(s*Math.sin(i*e)+o*Math.cos(i*e));else if(1===E){n=e=>p-Math.exp(-T*e)*(_+(v+T*_)*e);let e=v+T*_;r=t=>Math.exp(-T*t)*(T*e*t-v)}else{let e=T*Math.sqrt(E*E-1);n=t=>{let n=Math.exp(-E*T*t),r=Math.min(e*t,300);return p-n*((v+E*T*_)*Math.sinh(r)+e*_*Math.cosh(r))/e};let t=(v+E*T*_)/e,i=E*T*t-_*e,a=E*T*_-t*e;r=t=>{let n=Math.exp(-E*T*t),r=Math.min(e*t,300);return n*(i*Math.sinh(r)+a*Math.cosh(r))}}let w={calculatedDuration:x&&b||null,velocity:e=>ej(r(e)),next:e=>{if(!x&&E<1){let t=Math.exp(-E*T*e),n=Math.sin(i*e),r=Math.cos(i*e),l=p-t*(a*n+_*r);return f.done=Math.abs(ej(t*(s*n+o*r)))<=u&&Math.abs(p-l)<=h,f.value=f.done?p:l,f}let t=n(e);return x?f.done=e>=b:f.done=Math.abs(ej(r(e)))<=u&&Math.abs(p-t)<=h,f.value=f.done?p:t,f},toString:()=>{let e=Math.min(nj(w),2e4),t=e2(t=>w.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return w}function nZ(e,t,n){let r=Math.max(t-5,0);return tt(n-e(r),t-r)}function nJ({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:s,min:o,max:l,restDelta:c=.5,restSpeed:u}){let h,d,p=e[0],f={done:!1,value:p},m=n*t,g=p+m,y=void 0===s?g:s(g);y!==g&&(m=y-p);let b=e=>-m*Math.exp(-e/r),k=e=>y+b(e),x=e=>{let t=b(e),n=k(e);f.done=Math.abs(t)<=c,f.value=f.done?y:n},v=e=>{let t;if(t=f.value,void 0!==o&&t<o||void 0!==l&&t>l){var n;h=e,d=nQ({keyframes:[f.value,(n=f.value,void 0===o?l:void 0===l||Math.abs(o-n)<Math.abs(l-n)?o:l)],velocity:nZ(k,e,f.value),damping:i,stiffness:a,restDelta:c,restSpeed:u})}};return v(0),{calculatedDuration:null,next:e=>{let t=!1;return(d||void 0!==h||(t=!0,x(e),v(e)),void 0!==h&&e>=h)?d.next(e-h):(t||x(e),f)}}}nQ.applyToOptions=e=>{let t=function(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(nj(r),2e4);return{type:"keyframes",ease:e=>r.next(i*e).value/t,duration:i/1e3}}(e,100,nQ);return e.ease=t.ease,e.duration=ej(t.duration),e.type="keyframes",e};let n0=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function n1(e,t,n,r){return e===t&&n===r?e_:i=>0===i||1===i?i:n0(function(e,t,n,r,i){let a,s,o=0;do(a=n0(s=t+(n-t)/2,r,i)-e)>0?n=s:t=s;while(Math.abs(a)>1e-7&&++o<12);return s}(i,0,1,e,n),t,r)}let n2=n1(.42,0,1,1),n5=n1(0,0,.58,1),n3=n1(.42,0,.58,1),n6=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,n9=e=>t=>1-e(1-t),n4=n1(.33,1.53,.69,.99),n8=n9(n4),n7=n6(n8),re=e=>e>=1?1:(e*=2)<1?.5*n8(e):.5*(2-Math.pow(2,-10*(e-1))),rt=e=>1-Math.sin(Math.acos(e)),rn=n9(rt),rr=n6(rt),ri={linear:e_,easeIn:n2,easeInOut:n3,easeOut:n5,circIn:rt,circInOut:rr,circOut:rn,backIn:n8,backInOut:n7,backOut:n4,anticipate:re},ra=e=>{if(e0(e)){et(e.length);let[t,n,r,i]=e;return n1(t,n,r,i)}return"string"==typeof e?(et(ri[e],`Invalid easing type '${e}'`),ri[e]):e},rs=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1};function ro({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){var i;let a,s=Array.isArray(r)&&"number"!=typeof r[0]?r.map(ra):ra(r),o={done:!1,value:t[0]},c=function(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(et(t.length),1===a)return()=>t[0];if(2===a&&t[0]===t[1])return()=>t[1];let s=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let o=function(e,t,n){let r=[],i=n||eT.mix||nU,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=nS(Array.isArray(t)?t[n]||e_:t,a)),r.push(a)}return r}(t,r,i),c=o.length,u=n=>{if(s&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=rs(e[r],e[r+1],n);return o[r](i)};return n?t=>u(l(e[0],e[a-1],t)):u}((i=n&&n.length===t.length?n:(!function(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=rs(0,t,r);e.push(tP(n,1,i))}}(a=[0],t.length-1),a),i.map(t=>t*e)),t,{ease:Array.isArray(s)?s:t.map(()=>s||n3).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(o.value=c(t),o.done=t>=e,o)}}let rl={decay:nJ,inertia:nJ,tween:ro,keyframes:ro,spring:nQ};function rc(e){"string"==typeof e.type&&(e.type=rl[e.type])}let ru=e=>e/100;class rh extends eJ{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==te.now()&&this.tick(te.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;rc(e);let{type:t=ro,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:s}=e,o=t||ro;o!==ro&&"number"!=typeof s[0]&&(this.mixKeyframes=nS(ru,nU(s[0],s[1])),s=[0,100]);let l=o({...e,keyframes:s});"mirror"===i&&(this.mirroredGenerator=o({...e,keyframes:[...s].reverse(),velocity:-a})),null===l.calculatedDuration&&(l.calculatedDuration=nj(l));let{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let n,{generator:r,totalDuration:i,mixKeyframes:a,mirroredGenerator:s,resolvedDuration:o,calculatedDuration:c}=this;if(null===this.startTime)return r.next(0);let{delay:u=0,keyframes:h,repeat:d,repeatType:p,repeatDelay:f,type:m,onUpdate:g,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let b=this.currentTime-u*(this.playbackSpeed>=0?1:-1),k=this.playbackSpeed>=0?b<0:b>i;this.currentTime=Math.max(b,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=i);let x=this.currentTime,v=r;if(d){let e=Math.min(this.currentTime,i)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,(t=Math.min(t,d+1))%2&&("reverse"===p?(n=1-n,f&&(n-=f/o)):"mirror"===p&&(v=s)),x=l(0,1,n)*o}k?(this.delayState.value=h[0],n=this.delayState):n=v.next(x),a&&!k&&(n.value=a(n.value));let{done:E}=n;k||null===c||(E=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);let _=null===this.holdTime&&("finished"===this.state||"running"===this.state&&E);return _&&m!==nJ&&(n.value=eZ(h,this.options,y,this.speed)),g&&g(n.value),_&&this.finish(),n}then(e,t){return this.finished.then(e,t)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return this.currentTime/1e3}set time(e){e=ej(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return nZ(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(te.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:e=n$,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=t??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(te.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}let rd={anticipate:re,backInOut:n7,circInOut:rr};class rp extends e9{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in rd&&(e.ease=rd[e.ease])}(e),rc(e),super(e),void 0!==e.startTime&&!1!==e.autoplay&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let s=new rh({...a,autoplay:!1}),o=Math.max(10,te.now()-this.startTime),c=l(0,10,o-10),u=s.sample(o).value,{name:h}=this.options;i&&h&&eK(i,h,u),t.setWithVelocity(s.sample(Math.max(0,o-c)).value,u,c),s.stop()}}let rf=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(O.test(e)||"0"===e)&&!e.startsWith("url("));function rm(e){e.duration=0,e.type="keyframes"}let rg=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,ry=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),rb=eW(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class rk extends eJ{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:a="loop",keyframes:s,name:o,motionValue:l,element:c,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=te.now();const h={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:o,motionValue:l,element:c,...u},d=c?.KeyframeResolver||eF;this.keyframeResolver=new d(s,(e,t,n)=>this.onKeyframesResolved(e,t,h,!n),o,l,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){let i;this.keyframeResolver=void 0;let{name:a,type:s,velocity:o,delay:l,isHandoff:c,onUpdate:u}=n;this.resolvedAt=te.now();let h=!0;!function(e,t,n,r){let i=e[0];if(null===i)return!1;if("display"===t||"visibility"===t)return!0;let a=e[e.length-1],s=rf(i,t),o=rf(a,t);return ee(`You are trying to animate ${t} from "${i}" to "${a}". "${s?a:i}" is not an animatable value.`),!!s&&!!o&&(function(e){let t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||e6(n))&&r)}(e,a,s,o)&&(h=!1,(eT.instantAnimations||!l)&&u?.(eZ(e,n,t)),e[0]=e[e.length-1],rm(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},p=h&&!c&&function(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:s,keyframes:o}=e,l=t?.owner?.current;if(!(l instanceof HTMLElement)&&!(l instanceof SVGElement))return!1;let{onUpdate:c,transformTemplate:u}=t.owner.getProps();return rb()&&n&&(e4.has(n)||ry.has(n)&&function(e){for(let t=0;t<e.length;t++)if("string"==typeof e[t]&&rg.test(e[t]))return!0;return!1}(o))&&("transform"!==n||!u)&&!c&&!r&&"mirror"!==i&&0!==a&&"inertia"!==s}(d),f=d.motionValue?.owner?.current;if(p)try{i=new rp({...d,element:f})}catch{i=new rh(d)}else i=new rh(d);i.finished.then(()=>{this.notifyFinished()}).catch(e_),this.pendingTimeline&&(this.stopTimeline=i.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=i}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),eD=!0,eP(),eO(),eD=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let rx={type:"spring",stiffness:500,damping:25,restSpeed:10},rv={type:"keyframes",duration:.8},rE={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},r_=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),rT=(e,t,n,r={},i,a)=>s=>{let l=nT(r,e)||{},c=l.delay||r.delay||0,{elapsed:u=0}=r;u-=ej(c);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-u,onUpdate:e=>{t.set(e),l.onUpdate&&l.onUpdate(e)},onComplete:()=>{s(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:a?void 0:i};!function(e){for(let t in e)if(!r_.has(t))return!0;return!1}(l)&&Object.assign(h,((e,{keyframes:t})=>t.length>2?rv:o.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:rx:rE)(e,h)),h.duration&&(h.duration=ej(h.duration)),h.repeatDelay&&(h.repeatDelay=ej(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let d=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(rm(h),0===h.delay&&(d=!0)),(eT.instantAnimations||eT.skipAnimations||i?.shouldSkipAnimations||l.skipAnimations)&&(d=!0,rm(h),h.delay=0),h.allowFlatten=!l.type&&!l.ease,d&&!a&&void 0!==t.get()){let e=eZ(h.keyframes,l);if(void 0!==e)return void eS.update(()=>{h.onUpdate(e),h.onComplete()})}return l.isSync?new rh(h):new rk(h)};function rA(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:s,...o}=t,l=e.getDefaultTransition();a=a?n_(a,l):l;let c=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let h=[],d=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;for(let t in p&&p.animateVisualElement(e,o,a,n,h),o){let r=e.getValue(t,e.latestValues[t]??null),i=o[t];if(void 0===i||d&&function({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}(d,t))continue;let s={delay:n,...nT(a||{},t)};u&&(s.skipAnimations=!0);let l=r.get();if(void 0!==l&&!r.isAnimating()&&!Array.isArray(i)&&i===l&&!s.velocity){eS.update(()=>r.set(i));continue}let p=!1;if(window.MotionHandoffAnimation){let n=e.props[ng];if(n){let e=window.MotionHandoffAnimation(n,t,eS);null!==e&&(s.startTime=e,p=!0)}}nw(e,t);let f=c??e.shouldReduceMotion;r.start(rT(t,r,i,f&&X.has(t)?{type:!1}:s,e,p));let m=r.animation;m&&h.push(m)}if(s){let t=()=>eS.update(()=>{s&&function(e,t){let{transitionEnd:n={},transition:r={},...i}=nE(e,t)||{};for(let t in i={...i,...n}){var a;let n=nA(a=i[t])?a[a.length-1]||0:a;e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ti(n))}}(e,s)});h.length?Promise.all(h).then(t):t()}return h}function rw(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),s=e.size,o=(s-1)*r;return"function"==typeof n?n(a,s):1===i?a*r:o-a*r}function rS(e,t,n={}){let r=nE(e,t,"exit"===n.type?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(rA(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:s,staggerDirection:o}=i;return function(e,t,n=0,r=0,i=0,a=1,s){let o=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),o.push(rS(l,t,{...s,delay:n+("function"==typeof r?0:r)+rw(e.variantChildren,l,r,i,a)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(o)}(e,t,r,a,s,o,n)}:()=>Promise.resolve(),{when:o}=i;if(!o)return Promise.all([a(),s(n.delay)]);{let[e,t]="beforeChildren"===o?[a,s]:[s,a];return e().then(()=>t())}}let rC=tu.length;function rN(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}let rM=[...tc].reverse(),rI=tc.length;function rR(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rL(){return{animate:rR(!0),whileInView:rR(),whileHover:rR(),whileTap:rR(),whileDrag:rR(),whileFocus:rR(),exit:rR()}}class rD extends nv{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t))r=Promise.all(t.map(t=>rS(e,t,n)));else if("string"==typeof t)r=rS(e,t,n);else{let i="function"==typeof t?nE(e,t,n.custom):t;r=Promise.all(rA(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})})(e,t,n))),n=rL(),r=!0,i=!1,a=t=>(n,r)=>{let i=nE(e,r,"exit"===t?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function s(s){let{props:o}=e,l=function e(t){if(!t)return;if(!t.isControllingVariants){let n=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(n.initial=t.props.initial),n}let n={};for(let e=0;e<rC;e++){let r=tu[e],i=t.props[r];(tl(i)||!1===i)&&(n[r]=i)}return n}(e.parent)||{},c=[],u=new Set,h={},d=1/0;for(let t=0;t<rI;t++){var p,f;let m=rM[t],g=n[m],y=void 0!==o[m]?o[m]:l[m],b=tl(y),k=m===s?g.isActive:null;!1===k&&(d=t);let x=y===l[m]&&y!==o[m]&&b;if(x&&(r||i)&&e.manuallyAnimateOnMount&&(x=!1),g.protectedKeys={...h},!g.isActive&&null===k||!y&&!g.prevProp||to(y)||"boolean"==typeof y)continue;if("exit"===m&&g.isActive&&!0!==k){g.prevResolvedValues&&(h={...h,...g.prevResolvedValues});continue}let v=(p=g.prevProp,"string"==typeof(f=y)?f!==p:!!Array.isArray(f)&&!rN(f,p)),E=v||m===s&&g.isActive&&!x&&b||t>d&&b,_=!1,T=Array.isArray(y)?y:[y],A=T.reduce(a(m),{});!1===k&&(A={});let{prevResolvedValues:w={}}=g,S={...w,...A},C=t=>{E=!0,u.has(t)&&(_=!0,u.delete(t)),g.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in S){let t=A[e],n=w[e];if(!h.hasOwnProperty(e))(nA(t)&&nA(n)?!rN(t,n)||v:t!==n)?null!=t?C(e):u.add(e):void 0!==t&&u.has(e)?C(e):g.protectedKeys[e]=!0}g.prevProp=y,g.prevResolvedValues=A,g.isActive&&(h={...h,...A}),(r||i)&&e.blockInitialAnimation&&(E=!1);let N=x&&v,M=!N||_;E&&M&&c.push(...T.map(t=>{let n={type:m};if("string"==typeof t&&(r||i)&&!N&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=nE(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=rw(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if("boolean"!=typeof o.initial){let n=nE(e,Array.isArray(o.initial)?o.initial[0]:o.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),c.push({animation:t})}let m=!!c.length;return r&&(!1===o.initial||o.initial===o.animate)&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,i=!1,m?t(c):Promise.resolve()}return{animateChanges:s,setActive:function(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=rL(),i=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();to(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let rO=0;class rP extends nv{constructor(){super(...arguments),this.id=rO++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&!1===n){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if("string"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)){let n=nE(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}let rF={x:!1,y:!1};function rB(e){return[e("x"),e("y")]}function rH(e){return e.max-e.min}function rU(e,t,n,r=.5){e.origin=r,e.originPoint=tP(t.min,t.max,e.origin),e.scale=rH(n)/rH(t),e.translate=tP(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function r$(e,t,n,r){rU(e.x,t.x,n.x,r?r.originX:void 0),rU(e.y,t.y,n.y,r?r.originY:void 0)}function rj(e,t,n,r=0){e.min=(r?tP(n.min,n.max,r):n.min)+t.min,e.max=e.min+rH(t)}function rz(e,t,n,r=0){let i=r?tP(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+rH(t)}function rG(e,t,n,r){rz(e.x,t.x,n.x,r?.x),rz(e.y,t.y,n.y,r?.y)}let rV=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),rK=new Set(["INPUT","SELECT","TEXTAREA"]);function rW(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var rq=n(43079);function rY(e){return(0,rq.G)(e)&&"ownerSVGElement"in e}function rX(e,t,n){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"==typeof e){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>null!=e)}let rQ=new WeakMap,rZ=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+"Size"]:rY(r)&&"getBBox"in r?r.getBBox()[t]:r[n],rJ=rZ("inline","width","offsetWidth"),r0=rZ("block","height","offsetHeight");function r1({target:e,borderBoxSize:t}){rQ.get(e)?.forEach(n=>{n(e,{get width(){return rJ(e,t)},get height(){return r0(e,t)}})})}function r2(e){e.forEach(r1)}let r5=new Set;function r3(e,t){let n;return"function"==typeof e?(r5.add(e),a||(a=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};r5.forEach(t=>t(e))},window.addEventListener("resize",a)),()=>{r5.delete(e),r5.size||"function"!=typeof a||(window.removeEventListener("resize",a),a=void 0)}):(!i&&"u">typeof ResizeObserver&&(i=new ResizeObserver(r2)),(n=rX(e)).forEach(e=>{let n=rQ.get(e);n||(n=new Set,rQ.set(e,n)),n.add(t),i?.observe(e)}),()=>{n.forEach(e=>{let n=rQ.get(e);n?.delete(t),n?.size||i?.unobserve(e)})})}let r6=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function r9(e){return{point:{x:e.pageX,y:e.pageY}}}function r4(e,t,n,r){return rW(e,t,e=>r6(e)&&n(e,r9(e)),r)}let r8=({current:e})=>e?e.ownerDocument.defaultView:null,r7=(e,t)=>Math.abs(e-t),ie=new Set(["auto","scroll"]);class it{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:s}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=ir(this.lastRawMoveEventInfo,this.transformPagePoint));let n=ia(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,i=(e=n.offset,t={x:0,y:0},Math.sqrt(r7(e.x,t.x)**2+r7(e.y,t.y)**2)>=this.distanceThreshold);if(!r&&!i)return;let{point:a}=n,{timestamp:s}=eN;this.history.push({...a,timestamp:s});let{onStart:o,onMove:l}=this.handlers;r||(o&&o(this.lastMoveEvent,n),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,n)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=ir(t,this.transformPagePoint),eS.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=ia("pointercancel"===e.type?this.lastMoveEventInfo:ir(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!r6(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;const o=ir(r9(e),this.transformPagePoint),{point:l}=o,{timestamp:c}=eN;this.history=[{...l,timestamp:c}];const{onSessionStart:u}=t;u&&u(e,ia(o,this.history));const h={passive:!0,capture:!0};this.removeListeners=nS(r4(this.contextWindow,"pointermove",this.handlePointerMove,h),r4(this.contextWindow,"pointerup",this.handlePointerUp,h),r4(this.contextWindow,"pointercancel",this.handlePointerUp,h)),s&&this.startScrollTracking(s)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(ie.has(e.overflowX)||ie.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};(0!==i.x||0!==i.y)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),eS.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),eC(this.updatePoint)}}function ir(e,t){return t?{point:t(e.point)}:e}function ii(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ia({point:e},t){return{point:e,delta:ii(e,is(t)),offset:ii(e,t[0]),velocity:function(e){if(e.length<2)return{x:0,y:0};let t=e.length-1,n=null,r=is(e);for(;t>=0&&(n=e[t],!(r.timestamp-n.timestamp>ej(.1)));)t--;if(!n)return{x:0,y:0};n===e[0]&&e.length>2&&r.timestamp-n.timestamp>2*ej(.1)&&(n=e[1]);let i=(r.timestamp-n.timestamp)/1e3;if(0===i)return{x:0,y:0};let a={x:(r.x-n.x)/i,y:(r.y-n.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t)}}function is(e){return e[e.length-1]}function io(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function il(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function ic(e,t,n){return{min:iu(e,t),max:iu(e,n)}}function iu(e,t){return"number"==typeof e?e:e[t]||0}let ih=new WeakMap;class id{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=q(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;let i=e=>{t&&this.snapToCursor(r9(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"y"===e)if(rF[e])return null;else return rF[e]=!0,()=>{rF[e]=!1};return rF.x||rF.y?null:(rF.x=rF.y=!0,()=>{rF.x=rF.y=!1})}(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rB(e=>{let t=this.getAxisMotionValue(e).get()||0;if(E.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=rH(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&eS.update(()=>i(e,t),!1,!0),nw(this.visualElement,"transform");let{animationState:a}=this.visualElement;a&&a.setActive("whileDrag",!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:s}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(s),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),this.visualElement.render(),a&&eS.update(()=>a(e,t),!1,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:c}=this.getProps();this.panSession=new it(e,{onSessionStart:i,onStart:a,onMove:s,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:n,contextWindow:r8(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:s}=this.getProps();s&&eS.postRender(()=>s(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!im(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?tP(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?tP(n,e,r.max):Math.min(e,n)),e}(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&nb(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:io(e.x,n,i),y:io(e.y,t,r)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:ic(e,"left","right"),y:ic(e,"top","bottom")}}(t),r!==this.constraints&&!nb(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&rB(e=>{var t,r;let i;!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=(t=n.layoutBox[e],r=this.constraints[e],i={},void 0!==r.min&&(i.min=r.min-t.min),void 0!==r.max&&(i.max=r.max-t.min),i))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!nb(t))return!1;let r=t.current;et();let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;i.root&&(i.root.scroll=void 0,i.root.updateScroll());let a=function(e,t,n){let r=t0(e,n),{scroll:i}=t;return i&&(tX(r.x,i.offset.x),tX(r.y,i.offset.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),s=(e=i.layout.layoutBox,{x:il(e.x,a.x),y:il(e.y,a.y)});if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(s));this.hasMutatedConstraints=!!e,e&&(s=tj(e))}return s}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),o=this.constraints||{};return Promise.all(rB(s=>{if(!im(s,t,this.currentDirection))return;let l=o&&o[s]||{};(!0===a||a===s)&&(l={min:0,max:0});let c={type:"inertia",velocity:n?e[s]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(s,c)})).then(s)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return nw(this.visualElement,e),n.start(rT(e,n,0,t,this.visualElement,!1))}stopAnimation(){rB(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){rB(t=>{let{drag:n}=this.getProps();if(!im(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],s=i.get()||0;i.set(e[t]-tP(n,a,.5)+s)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!nb(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};rB(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){var n,i;let a,s,o,c=t.get();r[e]=(n={min:c,max:c},i=this.constraints[e],a=.5,s=rH(n),(o=rH(i))>s?a=rs(i.min,i.max-s,n.min):s>o&&(a=rs(n.min,n.max-o,i.min)),l(0,1,a))}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),rB(t=>{if(!im(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(tP(i,a,r[t]))}),this.visualElement.render()}addListeners(){let e;if(!this.visualElement.current)return;ih.set(this.visualElement,this);let t=this.visualElement.current,n=r4(t,"pointerdown",e=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=e.target,a=i!==t&&(rK.has(i.tagName)||!0===i.isContentEditable);n&&r&&!a&&this.start(e)}),r=()=>{var n,r,i;let a,s,{dragConstraints:o}=this.getProps();nb(o)&&o.current&&(this.constraints=this.resolveRefConstraints(),e||(n=t,r=o.current,a=r3(n,ip(i=()=>this.scalePositionWithinConstraints())),s=r3(r,ip(i)),e=()=>{a(),s()}))},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),eS.read(r);let s=rW(window,"resize",()=>this.scalePositionWithinConstraints()),o=i.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(rB(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{s(),n(),a(),o&&o(),e&&e()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=.35,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:s}}}function ip(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function im(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}class ig extends nv{constructor(e){super(e),this.removeGroupControls=e_,this.removeListeners=e_,this.controls=new id(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||e_}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}let iy=e=>(t,n)=>{e&&eS.update(()=>e(t,n),!1,!0)};class ib extends nv{constructor(){super(...arguments),this.removePointerDownListener=e_}onPointerDown(e){this.session=new it(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:r8(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:iy(e),onStart:iy(t),onMove:iy(n),onEnd:(e,t)=>{delete this.session,r&&eS.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=r4(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let ik={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var ix=n(77065);let iv=!1;class iE extends t2.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),iv&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),ik.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a&&(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),iv=!0,r||e.layoutDependency!==t||void 0===t||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||eS.postRender(()=>{let e=a.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),e8.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;iv=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function i_(e){let[t,n]=(0,ix.xQ)(),r=(0,t2.useContext)(t9.L);return(0,t6.jsx)(iE,{...e,layoutGroup:r,switchLayoutGroup:(0,t2.useContext)(ny),isPresent:t,safeToRemove:n})}let iT=tL.length,iA=e=>"string"==typeof e?parseFloat(e):e,iw=e=>"number"==typeof e||_.test(e);function iS(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let iC=iM(0,.5,rn),iN=iM(.5,.95,e_);function iM(e,t,n){return r=>r<e?0:r>t?1:n(rs(e,t,r))}function iI(e,t){e.min=t.min,e.max=t.max}function iR(e,t){iI(e.x,t.x),iI(e.y,t.y)}function iL(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function iD(e,t,n,r,i){return e-=t,e=r+1/n*(e-r),void 0!==i&&(e=r+1/i*(e-r)),e}function iO(e,t,[n,r,i],a,s){!function(e,t=0,n=1,r=.5,i,a=e,s=e){if(E.test(t)&&(t=parseFloat(t),t=tP(s.min,s.max,t/100)-s.min),"number"!=typeof t)return;let o=tP(a.min,a.max,r);e===a&&(o-=t),e.min=iD(e.min,t,n,o,i),e.max=iD(e.max,t,n,o,i)}(e,t[n],t[r],t[i],t.scale,a,s)}let iP=["x","scaleX","originX"],iF=["y","scaleY","originY"];function iB(e,t,n,r){iO(e.x,t,iP,n?n.x:void 0,r?r.x:void 0),iO(e.y,t,iF,n?n.y:void 0,r?r.y:void 0)}function iH(e){return 0===e.translate&&1===e.scale}function iU(e){return iH(e.x)&&iH(e.y)}function i$(e,t){return e.min===t.min&&e.max===t.max}function ij(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function iz(e,t){return ij(e.x,t.x)&&ij(e.y,t.y)}function iG(e){return rH(e.x)/rH(e.y)}function iV(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class iK{constructor(){this.members=[]}add(e){ez(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;r&&!1!==r.isConnected||n.snapshot||(eG(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(eG(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(!1!==e.isPresent&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(void 0===r||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),!1===e.options.crossfade&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let iW=(e,t)=>e.depth-t.depth;class iq{constructor(){this.children=[],this.isDirty=!1}add(e){ez(this.children,e),this.isDirty=!0}remove(e){eG(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(iW),this.isDirty=!1,this.children.forEach(e)}}let iY=["","X","Y","Z"],iX=0;function iQ(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function iZ({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=iX++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(i1),this.nodes.forEach(ae),this.nodes.forEach(at),this.nodes.forEach(i2)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new iq)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new eV),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=rY(t)&&!(rY(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;eS.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;if(e!==r){let t,a;r=e,this.root.updateBlockedByResize=!0,n&&n(),t=te.now(),a=({timestamp:e})=>{let n=e-t;n>=250&&(eC(a),i())},eS.setup(a,!0),n=()=>eC(a),ik.hasAnimatedSinceResize&&(ik.hasAnimatedSinceResize=!1,this.nodes.forEach(i7))}})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&i&&(n||r)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||ao,{onLayoutAnimationStart:s,onLayoutAnimationComplete:o}=i.getProps(),l=!this.targetLayout||!iz(this.targetLayout,r),c=!t&&n;if(this.options.layoutRoot||this.resumeFrom||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...nT(a,"layout"),onPlay:s,onComplete:o};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,c,t.path)}else t||i7(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),eC(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(an),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:n}=t.options;if(!n)return;let r=n.props[ng];if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:e,layoutId:n}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",eS,!(e||n))}let{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&e(i)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,("string"==typeof t.latestValues.x||"string"==typeof t.latestValues.y)&&(t.isLayoutDirty=!0),t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(i6),this.nodes.forEach(i3);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(i9);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(i4),this.nodes.forEach(i8),this.nodes.forEach(iJ),this.nodes.forEach(i0)):this.nodes.forEach(i9),this.clearAllSnapshots();let e=te.now();eN.delta=l(0,1e3/60,e-eN.timestamp),eN.timestamp=e,eN.isProcessing=!0,eM.update.process(eN),eM.preRender.process(eN),eM.render.process(eN),eN.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,e8.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(i5),this.sharedNodes.forEach(ar)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,eS.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){eS.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||rH(this.snapshot.measuredBox.x)||rH(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=q()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!iU(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||tV(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let n=this.measurePageBox(),r=this.removeElementScroll(n);return e&&(r=this.removeTransform(r)),au((t=r).x),au(t.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return q();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(ad))){let{scroll:e}=this.root;e&&(tX(t.x,e.offset.x),tX(t.y,e.offset.y))}return t}removeElementScroll(e){let t=q();if(iR(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&iR(t,e),tX(t.x,i.offset.x),tX(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||q();iR(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(tX(r.x,-n.scroll.offset.x),tX(r.y,-n.scroll.offset.y)),tV(n.latestValues)&&tJ(r,n.latestValues,n.layout?.layoutBox)}return tV(this.latestValues)&&tJ(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=q();iR(t,e);for(let e=0;e<this.path.length;e++){let n,r=this.path[e];tV(r.latestValues)&&(r.instance&&(tG(r.latestValues)&&r.updateSnapshot(),iR(n=q(),r.measurePageBox())),iB(t,r.latestValues,r.snapshot?.layoutBox,n))}return tV(this.latestValues)&&iB(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==eN.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=eN.timestamp;let a=this.getClosestProjectingParent();if(a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=q(),this.targetWithTransforms=q()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var s,o,l,c;this.forceRelativeParentToResolveTarget(),s=this.target,o=this.relativeTarget,l=this.relativeParent.target,c=this.options.layoutAnchor||void 0,rj(s.x,o.x,l.x,c?.x),rj(s.y,o.y,l.y,c?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):iR(this.target,this.layout.layoutBox),tY(this.target,this.targetDelta)):iR(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&1!==this.animationProgress?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||tG(this.parent.latestValues)||tK(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=q(),this.relativeTargetOrigin=q(),rG(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),iR(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===eN.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;iR(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,s=this.treeScale.y;!function(e,t,n,r=!1){let i,a,s=n.length;if(s){t.x=t.y=1;for(let o=0;o<s;o++){a=(i=n[o]).projectionDelta;let{visualElement:s}=i.options;(!s||!s.props.style||"contents"!==s.props.style.display)&&(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(tX(e.x,-i.scroll.offset.x),tX(e.y,-i.scroll.offset.y)),a&&(t.x*=a.x.scale,t.y*=a.y.scale,tY(e,a)),r&&tV(i.latestValues)&&tJ(e,i.latestValues,i.layout?.layoutBox))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=q());let{target:o}=e;if(!o){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(iL(this.prevProjectionDelta.x,this.projectionDelta.x),iL(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),r$(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.treeScale.x===a&&this.treeScale.y===s&&iV(this.projectionDelta.x,this.prevProjectionDelta.x)&&iV(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=K(),this.projectionDelta=K(),this.projectionDeltaWithTransform=K()}setAnimationOrigin(e,t=!1,n){let r,i=this.snapshot,a=i?i.latestValues:{},s={...this.latestValues},o=K();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let l=q(),c=(i?i.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,d=!!(c&&!h&&!0===this.options.crossfade&&!this.path.some(as));this.animationProgress=0;let p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,i=p?.(n);if(i?(o.x.translate=i.x,o.x.scale=tP(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=i.y,o.y.scale=tP(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(ai(o.x,e.x,n),ai(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,f,m,g,y,b;rG(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),m=this.relativeTarget,g=this.relativeTargetOrigin,y=l,b=n,aa(m.x,g.x,y.x,b),aa(m.y,g.y,y.y,b),r&&(u=this.relativeTarget,f=r,i$(u.x,f.x)&&i$(u.y,f.y))&&(this.isProjectionDirty=!1),r||(r=q()),iR(r,this.relativeTarget)}c&&(this.animationValues=s,function(e,t,n,r,i,a){i?(e.opacity=tP(0,n.opacity??1,iC(r)),e.opacityExit=tP(t.opacity??1,0,iN(r))):a&&(e.opacity=tP(t.opacity??1,n.opacity??1,r));for(let i=0;i<iT;i++){let a=tL[i],s=iS(t,a),o=iS(n,a);(void 0!==s||void 0!==o)&&(s||(s=0),o||(o=0),0===s||0===o||iw(s)===iw(o)?(e[a]=Math.max(tP(iA(s),iA(o),r),0),(E.test(o)||E.test(s))&&(e[a]+="%")):e[a]=o)}(t.rotate||n.rotate)&&(e.rotate=tP(t.rotate||0,n.rotate||0,r))}(s,a,this.latestValues,n,d,h)),i&&void 0!==i.rotate&&(this.animationValues||(this.animationValues=s),this.animationValues.pathRotation=i.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(eC(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=eS.update(()=>{var t,n,r;let i;ik.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ti(0)),this.motionValue.jump(0,!1),this.currentAnimation=(t=this.motionValue,n=[0,1e3],r={...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}},(i=Y(t)?t:ti(t)).start(rT("",i,n,r)),i.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&ah(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||q();let t=rH(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=rH(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}iR(t,n),tJ(t,i),r$(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new iK),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&iQ("z",e,r,this.animationValues);for(let t=0;t<iY.length;t++)iQ(`rotate${iY[t]}`,e,r,this.animationValues),iQ(`skew${iY[t]}`,e,r,this.animationValues);for(let t in e.render(),r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=ns(t?.pointerEvents)||"",e.transform=n?n(this.latestValues,""):"none";return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=ns(t?.pointerEvents)||""),this.hasProjected&&!tV(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1);return}e.visibility="";let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=function(e,t,n){let r="",i=e.x.translate/t.x,a=e.y.translate/t.y,s=n?.z||0;if((i||a||s)&&(r=`translate3d(${i}px, ${a}px, ${s}px) `),(1!==t.x||1!==t.y)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:s,skewX:o,skewY:l}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),s&&(r+=`rotateY(${s}deg) `),o&&(r+=`skewX(${o}deg) `),l&&(r+=`skewY(${l}deg) `)}let o=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==o||1!==l)&&(r+=`scale(${o}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:s,y:o}=this.projectionDelta;for(let t in e.transformOrigin=`${100*s.origin}% ${100*o.origin}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?void 0!==i.opacity?i.opacity:"":void 0!==i.opacityExit?i.opacityExit:0,tF){if(void 0===i[t])continue;let{correct:n,applyTo:s,isCSSVariable:o}=tF[t],l="none"===a?i[t]:n(i[t],r);if(s){let t=s.length;for(let n=0;n<t;n++)e[s[n]]=l}else o?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=r===this?ns(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(i3),this.root.sharedNodes.clear()}}}function iJ(e){e.updateLayout()}function i0(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if("size"===i)rB(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=rH(r);r.min=n[e].min,r.max=r.min+i});else if("x"===i||"y"===i){let e="x"===i?"y":"x";iI(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else ah(i,t.layoutBox,n)&&rB(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],s=rH(n[r]);i.max=i.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+s)});let s=K();r$(s,n,t.layoutBox);let o=K();a?r$(o,e.applyTransform(r,!0),t.measuredBox):r$(o,n,t.layoutBox);let l=!iU(s),c=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let s=e.options.layoutAnchor||void 0,o=q();rG(o,t.layoutBox,i.layoutBox,s);let l=q();rG(l,n,a.layoutBox,s),iz(o,l)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=o,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:o,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function i1(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function i2(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function i5(e){e.clearSnapshot()}function i3(e){e.clearMeasurements()}function i6(e){e.isLayoutDirty=!0,e.updateLayout()}function i9(e){e.isLayoutDirty=!1}function i4(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function i8(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function i7(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function ae(e){e.resolveTargetDelta()}function at(e){e.calcProjection()}function an(e){e.resetSkewAndRotation()}function ar(e){e.removeLeadSnapshot()}function ai(e,t,n){e.translate=tP(t.translate,0,n),e.scale=tP(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function aa(e,t,n,r){e.min=tP(t.min,n.min,r),e.max=tP(t.max,n.max,r)}function as(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let ao={duration:.45,ease:[.4,0,.1,1]},al=e=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ac=al("applewebkit/")&&!al("chrome/")?Math.round:e_;function au(e){e.min=ac(e.min),e.max=ac(e.max)}function ah(e,t,n){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(iG(t)-iG(n)))}function ad(e){return e!==e.root&&e.scroll?.wasRoot}let ap=iZ({attachResizeListener:(e,t)=>rW(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),af={current:void 0},am=iZ({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!af.current){let e=new ap({});e.mount(window),e.setOptions({layoutScroll:!0}),af.current=e}return af.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function ag(e,t){let n=rX(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function ay(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);let i=r["onHover"+n];i&&eS.postRender(()=>i(t,r9(t)))}class ab extends nv{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){let[r,i,a]=ag(e,n);return r.forEach(e=>{let n,r=!1,a=!1,s=t=>{n&&(n(t),n=void 0),e.removeEventListener("pointerleave",l)},o=e=>{r=!1,window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",o),a&&(a=!1,s(e))},l=e=>{if("touch"!==e.pointerType){if(r){a=!0;return}s(e)}};e.addEventListener("pointerenter",r=>{if("touch"===r.pointerType||rF.x||rF.y)return;a=!1;let s=t(e,r);"function"==typeof s&&(n=s,e.addEventListener("pointerleave",l,i))},i),e.addEventListener("pointerdown",()=>{r=!0,window.addEventListener("pointerup",o,i),window.addEventListener("pointercancel",o,i)},i)}),a}(e,(e,t)=>(ay(this.node,t,"Start"),e=>ay(this.node,e,"End"))))}unmount(){}}class ak extends nv{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=nS(rW(this.node.current,"focus",()=>this.onFocus()),rW(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var ax=n(41426);let av=(e,t)=>!!t&&(e===t||av(e,t.parentElement)),aE=new WeakSet;function a_(e){return t=>{"Enter"===t.key&&e(t)}}function aT(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function aA(e){return r6(e)&&!(rF.x||rF.y)}let aw=new WeakSet;function aS(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);let i=r["onTap"+("End"===n?"":n)];i&&eS.postRender(()=>i(t,r9(t)))}class aC extends nv{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=function(e,t,n={}){let[r,i,a]=ag(e,n),s=e=>{let r=e.currentTarget;if(!aA(e)||aw.has(e))return;aE.add(r),n.stopPropagation&&aw.add(e);let a=t(r,e),s={...i,capture:!0},o=(e,t)=>{window.removeEventListener("pointerup",l,s),window.removeEventListener("pointercancel",c,s),aE.has(r)&&aE.delete(r),aA(e)&&"function"==typeof a&&a(e,{success:t})},l=e=>{o(e,r===window||r===document||n.useGlobalTarget||av(r,e.target))},c=e=>{o(e,!1)};window.addEventListener("pointerup",l,s),window.addEventListener("pointercancel",c,s)};return r.forEach(e=>{((n.useGlobalTarget?window:e).addEventListener("pointerdown",s,i),(0,ax.s)(e))&&(e.addEventListener("focus",e=>((e,t)=>{let n=e.currentTarget;if(!n)return;let r=a_(()=>{if(aE.has(n))return;aT(n,"down");let e=a_(()=>{aT(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>aT(n,"cancel"),t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)})(e,i)),rV.has(e.tagName)||!0===e.isContentEditable||e.hasAttribute("tabindex")||(e.tabIndex=0))}),a}(e,(e,t)=>(aS(this.node,t,"Start"),(e,{success:t})=>aS(this.node,e,t?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}}let aN=new WeakMap,aM=new WeakMap,aI=e=>{let t=aN.get(e.target);t&&t(e)},aR=e=>{e.forEach(aI)},aL={some:0,all:1};class aD extends nv{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var e;let t;this.stopObserver?.();let{viewport:n={}}=this.node.getProps(),{root:r,margin:i,amount:a="some",once:s}=n,o={root:r?r.current:void 0,rootMargin:i,threshold:"number"==typeof a?a:aL[a]},l=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,s&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)};this.stopObserver=(e=this.node.current,t=function({root:e,...t}){let n=e||document;aM.has(n)||aM.set(n,{});let r=aM.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(aR,{root:e,...t})),r[i]}(o),aN.set(e,l),t.observe(e),()=>{aN.delete(e),t.unobserve(e)})}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}let aO=function(e,t){if("u"<typeof Proxy)return nx;let n=new Map,r=(n,r)=>nx(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>"create"===a?r:(n.has(a)||n.set(a,nx(a,void 0,e,t)),n.get(a))})}({animation:{Feature:rD},exit:{Feature:rP},inView:{Feature:aD},tap:{Feature:aC},focus:{Feature:ak},hover:{Feature:ab},pan:{Feature:ib},drag:{Feature:ig,ProjectionNode:am,MeasureLayout:i_},layout:{ProjectionNode:am,MeasureLayout:i_}},(e,t)=>t.isSVG??t3(e)?new t$(t):new t1(t,{allowProjection:e!==t2.Fragment}))},10263:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("palette",[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]])},10508:(e,t,n)=>{"use strict";n.d(t,{jH:()=>r.C});var r=n(62513)},11039:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("fingerprint-pattern",[["path",{d:"M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4",key:"1nerag"}],["path",{d:"M14 13.12c0 2.38 0 6.38-1 8.88",key:"o46ks0"}],["path",{d:"M17.29 21.02c.12-.6.43-2.3.5-3.02",key:"ptglia"}],["path",{d:"M2 12a10 10 0 0 1 18-6",key:"ydlgp0"}],["path",{d:"M2 16h.01",key:"1gqxmh"}],["path",{d:"M21.8 16c.2-2 .131-5.354 0-6",key:"drycrb"}],["path",{d:"M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2",key:"1tidbn"}],["path",{d:"M8.65 22c.21-.66.45-1.32.57-2",key:"13wd9y"}],["path",{d:"M9 6.8a6 6 0 0 1 9 5.2v2",key:"1fr1j5"}]])},11953:(e,t,n)=>{"use strict";n.d(t,{p:()=>d});var r=n(69266),i=n(12566),a=n(8934),s=n(85933),o=n(43745),l=n(69611),c=n(82909),u=n(20660),h=n(63962);let d=r.forwardRef(function(e,t){let{className:n,render:r,style:d,...p}=e,f=(0,i.r)(),{side:m,align:g}=(0,a.r)(),y=f.useState("open"),b=f.useState("instantType"),k=f.useState("transitionStatus"),x=f.useState("popupProps"),v=f.useState("floatingRootContext"),E=f.useState("closeDelay");return(0,o.v)({open:y,ref:f.context.popupRef,onComplete(){y&&f.context.onOpenChangeComplete?.(!0)}}),(0,u.a)(v,{closeDelay:E}),(0,l.o)("div",e,{state:{open:y,side:m,align:g,instant:b,transitionStatus:k},ref:[t,f.context.popupRef,f.useStateSetter("popupElement")],props:[h.Ls,x,(0,c.d)(k),p],stateAttributesMapping:s.LM})})},12019:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("circle-stop",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]])},12318:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(47552),i=n(62623);class a{constructor(){this.type=i.Z.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=i.Z.ALL}is(e){return this.type===e}}class s{constructor(e,t){this.color=t,this.changed=!1,this.data=e,this.type=new a}set(e,t){return this.color=t,this.changed=!1,this.data=e,this.type.type=i.Z.ALL,this}_ensureHSL(){let e=this.data,{h:t,s:n,l:i}=e;void 0===t&&(e.h=r.A.channel.rgb2hsl(e,"h")),void 0===n&&(e.s=r.A.channel.rgb2hsl(e,"s")),void 0===i&&(e.l=r.A.channel.rgb2hsl(e,"l"))}_ensureRGB(){let e=this.data,{r:t,g:n,b:i}=e;void 0===t&&(e.r=r.A.channel.hsl2rgb(e,"r")),void 0===n&&(e.g=r.A.channel.hsl2rgb(e,"g")),void 0===i&&(e.b=r.A.channel.hsl2rgb(e,"b"))}get r(){let e=this.data,t=e.r;return this.type.is(i.Z.HSL)||void 0===t?(this._ensureHSL(),r.A.channel.hsl2rgb(e,"r")):t}get g(){let e=this.data,t=e.g;return this.type.is(i.Z.HSL)||void 0===t?(this._ensureHSL(),r.A.channel.hsl2rgb(e,"g")):t}get b(){let e=this.data,t=e.b;return this.type.is(i.Z.HSL)||void 0===t?(this._ensureHSL(),r.A.channel.hsl2rgb(e,"b")):t}get h(){let e=this.data,t=e.h;return this.type.is(i.Z.RGB)||void 0===t?(this._ensureRGB(),r.A.channel.rgb2hsl(e,"h")):t}get s(){let e=this.data,t=e.s;return this.type.is(i.Z.RGB)||void 0===t?(this._ensureRGB(),r.A.channel.rgb2hsl(e,"s")):t}get l(){let e=this.data,t=e.l;return this.type.is(i.Z.RGB)||void 0===t?(this._ensureRGB(),r.A.channel.rgb2hsl(e,"l")):t}get a(){return this.data.a}set r(e){this.type.set(i.Z.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(i.Z.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(i.Z.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(i.Z.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(i.Z.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(i.Z.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}let o=new s({r:0,g:0,b:0,a:0},"transparent")},12437:function(e){e.exports=function(){"use strict";var e="millisecond",t="second",n="minute",r="hour",i="week",a="month",s="quarter",o="year",l="date",c="Invalid Date",u=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,d=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},p="en",f={};f[p]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}};var m="$isDayjsObject",g=function(e){return e instanceof x||!(!e||!e[m])},y=function e(t,n,r){var i;if(!t)return p;if("string"==typeof t){var a=t.toLowerCase();f[a]&&(i=a),n&&(f[a]=n,i=a);var s=t.split("-");if(!i&&s.length>1)return e(s[0])}else{var o=t.name;f[o]=t,i=o}return!r&&i&&(p=i),i||!r&&p},b=function(e,t){if(g(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new x(n)},k={s:d,z:function(e){var t=-e.utcOffset(),n=Math.abs(t);return(t<=0?"+":"-")+d(Math.floor(n/60),2,"0")+":"+d(n%60,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,a),s=n-i<0,o=t.clone().add(r+(s?-1:1),a);return+(-(r+(n-i)/(s?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(c){return({M:a,y:o,w:i,d:"day",D:l,h:r,m:n,s:t,ms:e,Q:s})[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}};k.l=y,k.i=g,k.w=function(e,t){return b(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var x=function(){function d(e){this.$L=y(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[m]=!0}var p=d.prototype;return p.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(k.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(u);if(r){var i=r[2]-1||0,a=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},p.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},p.$utils=function(){return k},p.isValid=function(){return this.$d.toString()!==c},p.isSame=function(e,t){var n=b(e);return this.startOf(t)<=n&&n<=this.endOf(t)},p.isAfter=function(e,t){return b(e)<this.startOf(t)},p.isBefore=function(e,t){return this.endOf(t)<b(e)},p.$g=function(e,t,n){return k.u(e)?this[t]:this.set(n,e)},p.unix=function(){return Math.floor(this.valueOf()/1e3)},p.valueOf=function(){return this.$d.getTime()},p.startOf=function(e,s){var c=this,u=!!k.u(s)||s,h=k.p(e),d=function(e,t){var n=k.w(c.$u?Date.UTC(c.$y,t,e):new Date(c.$y,t,e),c);return u?n:n.endOf("day")},p=function(e,t){return k.w(c.toDate()[e].apply(c.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(t)),c)},f=this.$W,m=this.$M,g=this.$D,y="set"+(this.$u?"UTC":"");switch(h){case o:return u?d(1,0):d(31,11);case a:return u?d(1,m):d(0,m+1);case i:var b=this.$locale().weekStart||0,x=(f<b?f+7:f)-b;return d(u?g-x:g+(6-x),m);case"day":case l:return p(y+"Hours",0);case r:return p(y+"Minutes",1);case n:return p(y+"Seconds",2);case t:return p(y+"Milliseconds",3);default:return this.clone()}},p.endOf=function(e){return this.startOf(e,!1)},p.$set=function(i,s){var c,u=k.p(i),h="set"+(this.$u?"UTC":""),d=((c={}).day=h+"Date",c[l]=h+"Date",c[a]=h+"Month",c[o]=h+"FullYear",c[r]=h+"Hours",c[n]=h+"Minutes",c[t]=h+"Seconds",c[e]=h+"Milliseconds",c)[u],p="day"===u?this.$D+(s-this.$W):s;if(u===a||u===o){var f=this.clone().set(l,1);f.$d[d](p),f.init(),this.$d=f.set(l,Math.min(this.$D,f.daysInMonth())).$d}else d&&this.$d[d](p);return this.init(),this},p.set=function(e,t){return this.clone().$set(e,t)},p.get=function(e){return this[k.p(e)]()},p.add=function(e,s){var l,c=this;e=Number(e);var u=k.p(s),h=function(t){var n=b(c);return k.w(n.date(n.date()+Math.round(t*e)),c)};if(u===a)return this.set(a,this.$M+e);if(u===o)return this.set(o,this.$y+e);if("day"===u)return h(1);if(u===i)return h(7);var d=((l={})[n]=6e4,l[r]=36e5,l[t]=1e3,l)[u]||1,p=this.$d.getTime()+e*d;return k.w(p,this)},p.subtract=function(e,t){return this.add(-1*e,t)},p.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||c;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=k.z(this),a=this.$H,s=this.$m,o=this.$M,l=n.weekdays,u=n.months,d=n.meridiem,p=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return k.s(a%12||12,e,"0")},m=d||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(h,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return k.s(t.$y,4,"0");case"M":return o+1;case"MM":return k.s(o+1,2,"0");case"MMM":return p(n.monthsShort,o,u,3);case"MMMM":return p(u,o);case"D":return t.$D;case"DD":return k.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return p(n.weekdaysMin,t.$W,l,2);case"ddd":return p(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(a);case"HH":return k.s(a,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return m(a,s,!0);case"A":return m(a,s,!1);case"m":return String(s);case"mm":return k.s(s,2,"0");case"s":return String(t.$s);case"ss":return k.s(t.$s,2,"0");case"SSS":return k.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")})},p.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},p.diff=function(e,l,c){var u,h=this,d=k.p(l),p=b(e),f=(p.utcOffset()-this.utcOffset())*6e4,m=this-p,g=function(){return k.m(h,p)};switch(d){case o:u=g()/12;break;case a:u=g();break;case s:u=g()/3;break;case i:u=(m-f)/6048e5;break;case"day":u=(m-f)/864e5;break;case r:u=m/36e5;break;case n:u=m/6e4;break;case t:u=m/1e3;break;default:u=m}return c?u:k.a(u)},p.daysInMonth=function(){return this.endOf(a).$D},p.$locale=function(){return f[this.$L]},p.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=y(e,t,!0);return r&&(n.$L=r),n},p.clone=function(){return k.w(this.$d,this)},p.toDate=function(){return new Date(this.valueOf())},p.toJSON=function(){return this.isValid()?this.toISOString():null},p.toISOString=function(){return this.$d.toISOString()},p.toString=function(){return this.$d.toUTCString()},d}(),v=x.prototype;return b.prototype=v,[["$ms",e],["$s",t],["$m",n],["$H",r],["$W","day"],["$M",a],["$y",o],["$D",l]].forEach(function(e){v[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),b.extend=function(e,t){return e.$i||(e(t,x,b),e.$i=!0),b},b.locale=y,b.isDayjs=g,b.unix=function(e){return b(1e3*e)},b.en=f[p],b.Ls=f,b.p={},b}()},12566:(e,t,n)=>{"use strict";n.d(t,{O:()=>a,r:()=>s});var r=n(80417),i=n(69266);let a=i.createContext(void 0);function s(e){let t=i.useContext(a);if(void 0===t&&!e)throw Error((0,r.A)(50));return t}},12696:(e,t,n)=>{"use strict";n.d(t,{R:()=>r});class r{constructor(e,t){this.attribute=t,this.property=e}}r.prototype.attribute="",r.prototype.booleanish=!1,r.prototype.boolean=!1,r.prototype.commaOrSpaceSeparated=!1,r.prototype.commaSeparated=!1,r.prototype.defined=!1,r.prototype.mustUseProperty=!1,r.prototype.number=!1,r.prototype.overloadedBoolean=!1,r.prototype.property="",r.prototype.spaceSeparated=!1,r.prototype.space=void 0},12720:(e,t,n)=>{"use strict";n.d(t,{M:()=>k});var r=n(69266),i=n(33914),a=n(66758),s=n(66538),o=n(9542),l=n(69611),c=n(79621),u=n(23754),h=n(78914),d=n(26564),p=n(65205),f=n(67048),m=n(89121),g=n(53402),y=n(27944),b=n(6561);let k=r.forwardRef(function(e,t){let{className:n,disabled:k=!1,render:x,value:v,id:E,nativeButton:_=!0,style:T,...A}=e,{value:w,getTabPanelIdByValue:S,onValueChange:C,orientation:N,tabActivationDirection:M}=(0,p.z)(),{activateOnFocus:I,registerTabResizeObserverElement:R,tabsListElement:L}=(0,m.b)(),{highlightedIndex:D,onHighlightedIndexChange:O}=(0,d.G)(),P=(0,o.e)(E),F=r.useMemo(()=>({disabled:k,id:P,value:v}),[k,P,v]),{compositeProps:B,compositeRef:H,index:U}=(0,h.k)({metadata:F}),$=v===w,j=r.useRef(!1),z=r.useRef(null),G=(0,s.K)(e=>{z.current?.(),z.current=e?R(e):null});(0,a.g)(()=>{if(j.current){j.current=!1;return}if($&&U>-1&&D!==U){if(null!=L){let e=(0,b.RS)((0,i.R)(L));if(e&&(0,b.gR)(L,e))return}k||O(U)}},[$,U,D,O,k,L]);let{getButtonProps:V,buttonRef:K}=(0,c.s)({disabled:k,native:_,focusableWhenDisabled:!0}),W=S(v),q=r.useRef(!1),Y=r.useRef(!1);function X(e){C(v,(0,g.d)(y.dv,e.nativeEvent,void 0,{activationDirection:"none"}))}return(0,l.o)("button",e,{state:{disabled:k,active:$,orientation:N,tabActivationDirection:M},ref:[t,K,H,G],props:[B,{role:"tab","aria-controls":W,"aria-selected":$,id:P,onClick:function(e){$||k||X(e)},onFocus:function(e){$||k||I&&(!q.current||Y.current)&&X(e)},onPointerDown:function(e){if($||k)return;q.current=!0,Y.current=0===e.button;let t=(0,i.R)(e.currentTarget);function n(){q.current=!1,Y.current=!1,t.removeEventListener("pointerup",n),t.removeEventListener("pointercancel",n)}t.addEventListener("pointerup",n),t.addEventListener("pointercancel",n)},[u.h]:$?"":void 0,onKeyDownCapture(){j.current=!0}},A,V],stateAttributesMapping:f.h})})},12835:(e,t,n)=>{"use strict";function r(e,t,n,r){let i,a=e.length,s=0;if(t=t<0?-t>a?0:a+t:t>a?a:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);s<r.length;)(i=r.slice(s,s+1e4)).unshift(t,0),e.splice(...i),s+=1e4,t+=1e4}function i(e,t){return e.length>0?(r(e,e.length,0,t),e):t}n.d(t,{V:()=>i,m:()=>r})},13050:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(17854);let i=(e,t)=>(0,r.A)(e,"l",-t)},13332:(e,t,n)=>{"use strict";function r(e,t){let n=String(e),r=n.indexOf(t),i=r,a=0,s=0;if("string"!=typeof t)throw TypeError("Expected substring");for(;-1!==r;)r===i?++a>s&&(s=a):a=1,i=r+t.length,r=n.indexOf(t,i);return s}n.d(t,{D:()=>r})},13344:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("rocket",[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]])},13766:(e,t,n)=>{"use strict";function r(e){let t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function i(e){return e.join(" ").trim()}n.d(t,{A:()=>i,q:()=>r})},14203:(e,t,n)=>{"use strict";n.d(t,{D:()=>l});var r=n(69266),i=n(12566),a=n(25330),s=n(81490),o=n(7962);let l=r.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return(0,i.r)().useState("mounted")||n?(0,o.jsx)(a.U.Provider,{value:n,children:(0,o.jsx)(s.F,{ref:t,...r})}):null})},14510:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("octagon-alert",[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]])},15104:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("heading",[["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M6 20V4",key:"1w1bmo"}],["path",{d:"M18 20V4",key:"o2hl4u"}]])},15351:(e,t,n)=>{"use strict";n.d(t,{a:()=>u});var r=n(69266),i=n(74388),a=n(66538),s=n(96910),o=n(25905),l=n(69611),c=n(7962);let u=r.memo(r.forwardRef(function(e,t){let{render:n,className:u,value:h,defaultValue:d,onValueChange:p,disabled:f=!1,style:m,"aria-labelledby":g,...y}=e,[b,k]=r.useState(void 0),[x,v]=(0,i.q)({controlled:h,default:d,name:"MenuRadioGroup"}),E=(0,a.K)((e,t)=>{p?.(e,t),t.isCanceled||v(e)}),_=(0,l.o)("div",e,{state:{disabled:f},ref:t,props:{role:"group","aria-labelledby":g??b,"aria-disabled":f||void 0,...y}}),T=r.useMemo(()=>({value:x,setValue:E,disabled:f}),[x,E,f]);return(0,c.jsx)(o.c.Provider,{value:k,children:(0,c.jsx)(s.h.Provider,{value:T,children:_})})}))},15450:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("copy-plus",[["line",{x1:"15",x2:"15",y1:"12",y2:"18",key:"1p7wdc"}],["line",{x1:"12",x2:"18",y1:"15",y2:"15",key:"1nscbv"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},15948:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]])},17005:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorageInstance",{enumerable:!0,get:function(){return r}});let r=(0,n(96411).createAsyncLocalStorage)()},17247:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]])},17339:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("code",[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]])},17854:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(47552),i=n(47057);let a=(e,t,n)=>{let a=i.A.parse(e),s=a[t],o=r.A.channel.clamp[t](s+n);return s!==o&&(a[t]=o),i.A.stringify(a)}},17864:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("repeat-2",[["path",{d:"m2 9 3-3 3 3",key:"1ltn5i"}],["path",{d:"M13 18H7a2 2 0 0 1-2-2V6",key:"1r6tfw"}],["path",{d:"m22 15-3 3-3-3",key:"4rnwn2"}],["path",{d:"M11 6h6a2 2 0 0 1 2 2v10",key:"2f72bc"}]])},18903:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("message-circle-question-mark",[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},23380:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(17854);let i=(e,t)=>(0,r.A)(e,"l",t)},23457:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]])},23754:(e,t,n)=>{"use strict";n.d(t,{h:()=>r});let r="data-composite-item-active"},24022:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("panel-top",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}]])},24722:(e,t,n)=>{"use strict";n.d(t,{i:()=>i});var r=n(35329);function i(e){return(0,r.i)(e)}},24987:(e,t,n)=>{"use strict";n.d(t,{t:()=>r});let r={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},25033:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorage",{enumerable:!0,get:function(){return r.workAsyncStorageInstance}});let r=n(17005)},25330:(e,t,n)=>{"use strict";n.d(t,{U:()=>a,l:()=>s});var r=n(80417),i=n(69266);let a=i.createContext(void 0);function s(){let e=i.useContext(a);if(void 0===e)throw Error((0,r.A)(48));return e}},25488:(e,t,n)=>{"use strict";n.d(t,{E:()=>s});var r=n(12696),i=n(58789);let a=Object.keys(i);class s extends r.R{constructor(e,t,n,r){let s=-1;if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",r),"number"==typeof n)for(;++s<a.length;){const e=a[s];!function(e,t,n){n&&(e[t]=n)}(this,a[s],(n&i[e])===i[e])}}}s.prototype.defined=!0},25905:(e,t,n)=>{"use strict";n.d(t,{T:()=>s,c:()=>a});var r=n(80417),i=n(69266);let a=i.createContext(void 0);function s(){let e=i.useContext(a);if(void 0===e)throw Error((0,r.A)(31));return e}},26232:(e,t,n)=>{"use strict";n.d(t,{P:()=>i});let r="object"==typeof globalThis&&globalThis||"object"==typeof window&&window||"object"==typeof self&&self||"object"==typeof global&&global||function(){return this}();function i(e){return void 0!==r.Buffer&&r.Buffer.isBuffer(e)}},26575:(e,t,n)=>{"use strict";n.d(t,{p:()=>f});var r=n(69266),i=n(66758),a=n(12566),s=n(8934),o=n(52333),l=n(95522),c=n(25330),u=n(73146),h=n(60601),d=n(5733),p=n(7962);let f=r.forwardRef(function(e,t){let{render:n,className:r,anchor:f,positionMethod:m="absolute",side:g="bottom",align:y="center",sideOffset:b=0,alignOffset:k=0,collisionBoundary:x="clipping-ancestors",collisionPadding:v=5,arrowPadding:E=5,sticky:_=!1,disableAnchorTracking:T=!1,collisionAvoidance:A=u.Pe,style:w,...S}=e,C=(0,a.r)(),N=(0,c.l)(),M=(0,o.fI)(),I=C.useState("open"),R=C.useState("mounted"),L=C.useState("floatingRootContext"),D=C.useState("instantType"),O=C.useState("transitionStatus"),P=C.useState("adaptiveOrigin"),F=C.context.inlineRectCoordsRef,B=(0,l.s)({anchor:f,floatingRootContext:L,positionMethod:m,mounted:R,side:g,sideOffset:b,align:y,alignOffset:k,arrowPadding:E,collisionBoundary:x,collisionPadding:v,sticky:_,disableAnchorTracking:T,keepMounted:N,nodeId:M,collisionAvoidance:A,adaptiveOrigin:P,inline:(0,d._8)(F)}),H=B.update;(0,i.g)(()=>{I&&R&&H()},[I,R,H]);let U={open:I,side:B.side,align:B.align,anchorHidden:B.anchorHidden,instant:D},$=(0,h.i)(e,U,{styles:B.positionerStyles,transitionStatus:O,props:S,refs:[t,C.useStateSetter("positionerElement")],hidden:!R,inert:!I});return(0,p.jsx)(s.w.Provider,{value:B,children:(0,p.jsx)(o.$c,{id:M,children:$})})})},26690:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("corner-down-left",[["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}],["path",{d:"m9 10-5 5 5 5",key:"1kshq7"}]])},29198:(e,t,n)=>{"use strict";function r(e){return e.toLowerCase()}n.d(t,{S:()=>r})},30973:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var r=n(80417),i=n(69266),a=n(53949),s=n(12566),o=n(85933),l=n(69611),c=n(9542),u=n(1424),h=n(63962),d=n(5733),p=n(8675),f=n(65905),m=n(17499),g=n(79718);let y=(0,a.nk)(function(e,t){let{render:n,className:a,delay:y,closeDelay:b,id:k,payload:x,handle:v,style:E,..._}=e,T=(0,s.r)(!0),A=(0,u.f)(v)??T;if(!A)throw Error((0,r.A)(89));let w=(0,c.e)(k),S=A.useState("isTriggerActive",w),C=A.useState("isOpenedByTrigger",w),N=A.useState("floatingRootContext"),M=A.context.inlineRectCoordsRef,I=i.useRef(null),R=y??p.r,L=b??p.V,{registerTrigger:D,isMountedByThisTrigger:O}=(0,h.L_)(w,I,A,{payload:x,closeDelay:L}),P=(0,f.j)(N,{mouseOnly:!0,move:!1,handleClose:(0,m.i)(),delay:()=>({open:R,close:L}),triggerElementRef:I,isActiveTrigger:S,isClosing:()=>"ending"===A.select("transitionStatus")}),F=(0,g.i)(N,{delay:R}),B=A.useState("triggerProps",O),H=(0,d.WB)(M,C);return(0,l.o)("a",e,{state:{open:C},ref:[t,D,I],props:[P,F.reference,B,H,{id:w},_],stateAttributesMapping:o.qV})})},31026:(e,t,n)=>{"use strict";n.d(t,{p:()=>f});var r=n(69266),i=n(74388),a=n(66758),s=n(66538),o=n(69611),l=n(63717),c=n(65205),u=n(67048),h=n(53402),d=n(27944),p=n(7962);let f=r.forwardRef(function(e,t){let{className:n,defaultValue:f=0,onValueChange:y,orientation:b="horizontal",render:k,value:x,style:v,...E}=e,_=void 0!==e.defaultValue,T=r.useRef([]),[A,w]=r.useState(()=>new Map),[S,C]=(0,i.q)({controlled:x,default:f,name:"Tabs",state:"value"}),N=void 0!==x,[M,I]=r.useState(()=>new Map),R=r.useRef(void 0),L=r.useCallback(e=>m(M,e),[M]),[D,O]=r.useState(()=>({previousValue:S,tabActivationDirection:"none"})),{previousValue:P,tabActivationDirection:F}=D,B=F,H=!1;P!==S&&(B=g(P,S,b,M),H=null!=P&&null!=S&&null==L(S));let U=H?P:S,$=P!==U||F!==B;(0,a.g)(()=>{$&&O({previousValue:U,tabActivationDirection:B})},[U,$,B]);let j=(0,s.K)((e,t)=>{t.activationDirection=g(S,e,b,M),y?.(e,t),t.isCanceled||C(e)}),z=(0,s.K)((e,t)=>{y?.(e,(0,h.d)(t,void 0,void 0,{activationDirection:"none"}))}),G=(0,s.K)((e,t)=>(w(n=>{let r=new Map(n);return r.set(e,t),r}),()=>{w(n=>{if(n.get(e)!==t)return n;let r=new Map(n);return r.delete(e),r})})),V=r.useCallback(e=>A.get(e),[A]),K=r.useCallback(e=>{for(let t of M.values())if(e===t.value)return t.id},[M]),W=r.useMemo(()=>({getTabElementBySelectedValue:L,getTabIdByPanelValue:K,getTabPanelIdByValue:V,onValueChange:j,orientation:b,registerMountedTabPanel:G,setTabMap:I,tabActivationDirection:B,value:S}),[L,K,V,j,b,G,I,B,S]),q=r.useMemo(()=>{for(let e of M.values())if(e.value===S)return e},[M,S]),Y=r.useMemo(()=>{for(let e of M.values())if(!e.disabled)return e.value},[M]),X=r.useRef(!_),Q=r.useRef(f),Z=r.useRef(_),J=r.useRef(!1);(0,a.g)(()=>{if(N)return;function e(e,t){C(e),O({previousValue:e,tabActivationDirection:"none"}),z(e,t),X.current=!1}if(0===M.size){J.current&&null!==S&&!R.current?.isConnected&&e(null,d.c);return}J.current=!0,R.current=M.keys().next().value;let t=q?.disabled,n=null==q&&null!==S;if(t||S!==Q.current||(Z.current=!1),Z.current&&t&&S===Q.current)return;let r=X.current;if(t||n){let n=Y??null;if(S===n){X.current=!1;return}let i=d.c;r?i=d.Vh:t&&(i=d.r9),e(n,i);return}r&&null!=q&&(z(S,d.Vh),X.current=!1)},[Y,N,z,q,C,M,S]);let ee={orientation:b,tabActivationDirection:B},et=(0,o.o)("div",e,{state:ee,ref:t,props:E,stateAttributesMapping:u.h});return(0,p.jsx)(c.G.Provider,{value:W,children:(0,p.jsx)(l.u,{elementsRef:T,children:et})})});function m(e,t){for(let[n,r]of e.entries())if(t===r.value)return n;return null}function g(e,t,n,r){if(null==e||null==t)return"none";let[i,a,s]="horizontal"===n?["left","left","right"]:["top","up","down"],o=m(r,e),l=m(r,t);if(null==o||null==l)return o!==l&&("number"==typeof e||"string"==typeof e)&&typeof e==typeof t?t>e?s:a:"none";let c=o.getBoundingClientRect()[i],u=l.getBoundingClientRect()[i];return u<c?a:u>c?s:"none"}},31052:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},31175:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("files",[["path",{d:"M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8",key:"14sh0y"}],["path",{d:"M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z",key:"1970lx"}],["path",{d:"M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1",key:"l4dndm"}]])},31210:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("message-square-plus",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M12 8v6",key:"1ib9pf"}],["path",{d:"M9 11h6",key:"1fldmi"}]])},31217:(e,t,n)=>{"use strict";n.d(t,{$$:()=>m,Es:()=>p,KG:()=>y,Ks:()=>S,Ll:()=>o,Re:()=>T,Sw:()=>a,TW:()=>d,WQ:()=>_,YG:()=>v,YN:()=>g,ZC:()=>k,_q:()=>f,ag:()=>N,e_:()=>w,jn:()=>i,kx:()=>A,l6:()=>s,lk:()=>b,sb:()=>u,wz:()=>c,xZ:()=>h,zk:()=>l});var r=n(69266);function i(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.useMemo)(()=>e=>{t.forEach(t=>t(e))},t)}let a="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function s(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,n;return e?s(e)?e:o(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function c(e){let{Document:t}=l(e);return e instanceof t}function u(e){return!s(e)&&e instanceof l(e).HTMLElement}function h(e){return e instanceof l(e).SVGElement}function d(e){return e?s(e)?e.document:o(e)?c(e)?e:u(e)||h(e)?e.ownerDocument:document:document:document}let p=a?r.useLayoutEffect:r.useEffect;function f(e){let t=(0,r.useRef)(e);return p(()=>{t.current=e}),(0,r.useCallback)(function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}function m(){let e=(0,r.useRef)(null);return[(0,r.useCallback)((t,n)=>{e.current=setInterval(t,n)},[]),(0,r.useCallback)(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[])]}function g(e,t){void 0===t&&(t=[e]);let n=(0,r.useRef)(e);return p(()=>{n.current!==e&&(n.current=e)},t),n}function y(e,t){let n=(0,r.useRef)();return(0,r.useMemo)(()=>{let t=e(n.current);return n.current=t,t},[...t])}function b(e){let t=f(e),n=(0,r.useRef)(null),i=(0,r.useCallback)(e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e},[]);return[n,i]}function k(e){let t=(0,r.useRef)();return(0,r.useEffect)(()=>{t.current=e},[e]),t.current}let x={};function v(e,t){return(0,r.useMemo)(()=>{if(t)return t;let n=null==x[e]?0:x[e]+1;return x[e]=n,e+"-"+n},[e,t])}function E(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce((t,n)=>{for(let[r,i]of Object.entries(n)){let n=t[r];null!=n&&(t[r]=n+e*i)}return t},{...t})}}let _=E(1),T=E(-1);function A(e){if(!e)return!1;let{KeyboardEvent:t}=l(e.target);return t&&e instanceof t}function w(e){if(function(e){if(!e)return!1;let{TouchEvent:t}=l(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return"clientX"in e&&"clientY"in e?{x:e.clientX,y:e.clientY}:null}let S=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[S.Translate.toString(e),S.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),C="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function N(e){return e.matches(C)?e:e.querySelector(C)}},31848:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("image-down",[["path",{d:"M10.3 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10l-3.1-3.1a2 2 0 0 0-2.814.014L6 21",key:"9csbqa"}],["path",{d:"m14 19 3 3v-5.5",key:"9ldu5r"}],["path",{d:"m17 22 3-3",key:"1nkfve"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]])},32919:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},s=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),a=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!a)return!1;for(r in e);return void 0===r||t.call(e,r)},o=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;else if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,c,u,h=arguments[0],d=1,p=arguments.length,f=!1;for("boolean"==typeof h&&(f=h,h=arguments[1]||{},d=2),(null==h||"object"!=typeof h&&"function"!=typeof h)&&(h={});d<p;++d)if(t=arguments[d],null!=t)for(n in t)r=l(h,n),h!==(i=l(t,n))&&(f&&i&&(s(i)||(c=a(i)))?(c?(c=!1,u=r&&a(r)?r:[]):u=r&&s(r)?r:{},o(h,{name:n,newValue:e(f,u,i)})):void 0!==i&&o(h,{name:n,newValue:i}));return h}},33349:(e,t,n)=>{"use strict";n.d(t,{N:()=>i});var r=n(60008);function i(e){return null!==e&&"object"==typeof e&&"[object Arguments]"===(0,r.b)(e)}},33353:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("file-pen-line",[["path",{d:"M14.364 13.634a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506l4.013-4.009a1 1 0 0 0-3.004-3.004z",key:"ukzhwg"}],["path",{d:"M14.487 7.858A1 1 0 0 1 14 7V2",key:"1klhew"}],["path",{d:"M20 19.645V20a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l2.516 2.516",key:"rxaxab"}],["path",{d:"M8 18h1",key:"13wk12"}]])},33705:(e,t,n)=>{"use strict";n.d(t,{W:()=>s,p:()=>a});var r=n(80417),i=n(69266);let a=i.createContext(void 0);function s(){let e=i.useContext(a);if(void 0===e)throw Error((0,r.A)(14));return e}},34506:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("settings-2",[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]])},35182:(e,t,n)=>{"use strict";n.d(t,{t:()=>r});let r=(0,n(69266).createContext)(null)},35329:(e,t,n)=>{"use strict";function r(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}n.d(t,{i:()=>r})},35592:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},36919:(e,t,n)=>{"use strict";n.d(t,{I:()=>s});var r=n(37847),i=n(85784),a=n(69266);function s(){r.r.current||(0,i.Uu)();let[e]=(0,a.useState)(r.O.current);return e}},37847:(e,t,n)=>{"use strict";n.d(t,{O:()=>r,r:()=>i});let r={current:null},i={current:!1}},37918:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("panel-bottom",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 15h18",key:"5xshup"}]])},37947:(e,t,n)=>{"use strict";function r(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}n.d(t,{W:()=>r})},38105:(e,t,n)=>{"use strict";function r(e){let t=[],n=String(e||""),r=n.indexOf(","),i=0,a=!1;for(;!a;){-1===r&&(r=n.length,a=!0);let e=n.slice(i,r).trim();(e||!a)&&t.push(e),i=r+1,r=n.indexOf(",",i)}return t}function i(e,t){let n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}n.d(t,{A:()=>i,q:()=>r})},39341:(e,t,n)=>{"use strict";n.d(t,{a:()=>s});var r,i=n(97591);let a=((r={}).checked="data-checked",r.unchecked="data-unchecked",r.disabled="data-disabled",r.highlighted="data-highlighted",r),s={checked:e=>e?{[a.checked]:""}:{[a.unchecked]:""},...i.G}},39410:(e,t,n)=>{"use strict";n.d(t,{K:()=>i,V:()=>a});var r=Object.defineProperty,i=(e,t)=>r(e,"name",{value:t,configurable:!0}),a=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})}},39569:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]])},40156:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});let r={}.hasOwnProperty;function i(e,t){let n=t||{};function i(t,...n){let a=i.invalid,s=i.handlers;if(t&&r.call(t,e)){let n=String(t[e]);a=r.call(s,n)?s[n]:i.unknown}if(a)return a.call(this,t,...n)}return i.handlers=n.handlers||{},i.invalid=n.invalid,i.unknown=n.unknown,i}},40678:(e,t,n)=>{"use strict";n.d(t,{c:()=>F});var r=n(80417),i=n(69266),a=n(34517),s=n(33914),o=n(53949),l=n(66538),c=n(66758),u=n(48356),h=n(52333),d=n(65905),p=n(17499),f=n(69738),m=n(79718),g=n(24082),y=n(6561),b=n(79833),k=n(85933),x=n(69611),v=n(79621),E=n(41775),_=n(78914);function T(e){let{render:t,className:n,style:r,state:i=u.t0,props:a=u.Ml,refs:s=u.Ml,metadata:o,stateAttributesMapping:l,tag:c="div",...h}=e,{compositeProps:d,compositeRef:p}=(0,_.k)({metadata:o});return(0,x.o)(c,e,{state:i,ref:[p,...s],props:[d,...a,h],stateAttributesMapping:l})}var A=n(26564),w=n(28991),S=n(1424),C=n(63962),N=n(54005),M=n(9542),I=n(27944),R=n(92622),L=n(73146),D=n(69609),O=n(52686),P=n(7962);let F=(0,o.nk)(function(e,t){let n,{render:o,className:_,style:F,disabled:B=!1,nativeButton:H=!0,id:U,openOnHover:$,delay:j=100,closeDelay:z=0,handle:G,payload:V,...K}=e,W=(0,b.Y)(!0),q=(0,S.f)(G)??W?.store;if(!q)throw Error((0,r.A)(85));let Y=(0,M.e)(U),X=q.useState("isTriggerActive",Y),Q=q.useState("floatingRootContext"),Z=q.useState("isOpenedByTrigger",Y),J=q.useState("triggerPopupId",Y),ee=i.useRef(null),et=(n=(0,R.t)(!0),i.useMemo(()=>n?{type:"menubar",context:n}:{type:void 0},[n])),en=(0,A.G)(!0),er=(0,h.cq)(),ei=i.useMemo(()=>er??new g.k,[er]),ea=(0,h.fI)(ei),es=(0,h.R1)(),{registerTrigger:eo,isMountedByThisTrigger:el}=(0,C.L_)(Y,ee,q,{payload:V,closeDelay:z,parent:et,floatingTreeRoot:ei,floatingNodeId:ea,floatingParentNodeId:es,keyboardEventRelay:en?.relayKeyboardEvent}),ec="menubar"===et.type,eu=q.useState("disabled"),eh=B||eu||ec&&et.context.disabled,{getButtonProps:ed,buttonRef:ep}=(0,v.s)({disabled:eh,native:H});i.useEffect(()=>{Z||void 0!==et.type||(q.context.allowMouseUpTriggerRef.current=!1)},[q,Z,et.type]);let ef=i.useRef(null),em=(0,a.Z)(),eg=(0,l.K)(e=>{if(!ef.current)return;em.clear(),q.context.allowMouseUpTriggerRef.current=!1;let t=e.target;(0,y.gR)(ef.current,t)||(0,y.gR)(q.select("positionerElement"),t)||t===ef.current||null!=t&&(0,w.Q)(t)===q.select("rootId")||(0,E.U)(e,ef.current)||ei.events.emit("close",{domEvent:e,reason:I.LO})});i.useEffect(()=>{Z&&q.select("lastOpenChangeReason")===I.N7&&(0,s.R)(ef.current).addEventListener("mouseup",eg,{once:!0})},[Z,eg,q]);let ey=ec&&et.context.hasSubmenuOpen,eb=$??ey,ek=(0,d.j)(Q,{enabled:eb&&!eh&&(!ec||ey&&!el),handleClose:(0,p.i)({blockPointerEvents:!ec}),mouseOnly:!0,move:!1,restMs:void 0===et.type?j:void 0,delay:{close:z},triggerElementRef:ee,externalTree:ei,isActiveTrigger:X,isClosing:()=>"ending"===q.select("transitionStatus")}),ex=function(e,t){let n=(0,a.Z)(),[r,s]=i.useState(!1);return(0,c.g)(()=>{e&&t===I.N7?(s(!0),n.start(L.X3,()=>{s(!1)})):e||(n.clear(),s(!1))},[e,t,n]),r}(Z,q.select("lastOpenChangeReason")),ev=(0,f.k)(Q,{enabled:!eh,event:Z&&ec?"click":"mousedown",toggle:!0,ignoreMouse:!1,stickIfOpen:void 0===et.type&&ex}),eE=(0,m.i)(Q,{enabled:!eh&&ey}),e_=function(e){let{enabled:t=!0,mouseDownAction:n,open:r}=e,a=i.useRef(!1);return i.useMemo(()=>t?{onMouseDown:e=>{("open"===n&&!r||"close"===n&&r)&&(a.current=!0,(0,s.R)(e.currentTarget).addEventListener("click",()=>{a.current=!1},{once:!0}))},onClick:e=>{a.current&&(a.current=!1,e.preventBaseUIHandler())}}:u.t0,[t,n,r])}({open:Z,enabled:ec,mouseDownAction:"open"}),eT=i.useMemo(()=>(0,O.v6)(eE.reference,ev.reference),[eE.reference,ev.reference]),eA=q.useState("triggerProps",el),{preFocusGuardRef:ew,handlePreFocusGuardFocus:eS,handleFocusTargetFocus:eC}=(0,N.a)(q,ee),eN={disabled:eh,open:Z},eM=[ef,t,ep,eo,ee],eI=[eT,ek??u.t0,eA,{"aria-haspopup":"menu","aria-controls":J,id:Y,onMouseDown:e=>{q.select("open")||(em.start(200,()=>{q.context.allowMouseUpTriggerRef.current=!0}),(0,s.R)(e.currentTarget).addEventListener("mouseup",eg,{once:!0}))}},ec?{role:"menuitem"}:{},e_,K,ed],eR=(0,x.o)("button",e,{enabled:!ec,stateAttributesMapping:k.jL,state:eN,ref:eM,props:eI});return ec?(0,P.jsx)(T,{tag:"button",render:o,className:_,style:F,state:eN,refs:eM,props:eI,stateAttributesMapping:k.jL}):Z?(0,P.jsxs)(i.Fragment,{children:[(0,P.jsx)(D.U,{ref:ew,onFocus:eS},`${Y}-pre-focus-guard`),(0,P.jsx)(i.Fragment,{children:eR},Y),(0,P.jsx)(D.U,{ref:q.context.triggerFocusTargetRef,onFocus:eC},`${Y}-post-focus-guard`)]}):(0,P.jsx)(i.Fragment,{children:eR},Y)})},40942:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("arrow-up-to-line",[["path",{d:"M5 3h14",key:"7usisc"}],["path",{d:"m18 13-6-6-6 6",key:"1kf1n9"}],["path",{d:"M12 7v14",key:"1akyts"}]])},41144:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let r=n(7962),i=n(69266),a=n(85279);function s(e){return{default:e&&"default"in e?e.default:e}}n(71762);let o={loader:()=>Promise.resolve(s(()=>null)),loading:null,ssr:!0},l=function(e){let t={...o,...e},n=(0,i.lazy)(()=>t.loader().then(s)),l=t.loading;function c(e){let s=l?(0,r.jsx)(l,{isLoading:!0,pastDelay:!0,error:null}):null,o=!t.ssr||!!t.loading,c=o?i.Suspense:i.Fragment,u=t.ssr?(0,r.jsxs)(r.Fragment,{children:[null,(0,r.jsx)(n,{...e})]}):(0,r.jsx)(a.BailoutToCSR,{reason:"next/dynamic",children:(0,r.jsx)(n,{...e})});return(0,r.jsx)(c,{...o?{fallback:s}:{},children:u})}return c.displayName="LoadableComponent",c}},41426:(e,t,n)=>{"use strict";n.d(t,{s:()=>i});var r=n(43079);function i(e){return(0,r.G)(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}},41513:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("panel-right",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}]])},41934:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("brain",[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]])},43016:(e,t,n)=>{"use strict";n.d(t,{R:()=>m});var r=n(69266),i=n(18652),a=n(66758),s=n(9542),o=n(97591),l=n(43745),c=n(47623),u=n(69611),h=n(54545),d=n(67048),p=n(65205);let f={...d.h,...o.G},m=r.forwardRef(function(e,t){let{className:n,value:o,render:d,keepMounted:m=!1,style:g,...y}=e,{value:b,getTabIdByPanelValue:k,orientation:x,tabActivationDirection:v,registerMountedTabPanel:E}=(0,p.z)(),_=(0,s.e)(),{ref:T,index:A}=(0,h.q)(),w=o===b,{mounted:S,transitionStatus:C,setMounted:N}=(0,c.$)(w),M=!S,I=k(o),R=r.useRef(null),L=(0,u.o)("div",e,{state:{hidden:M,orientation:x,tabActivationDirection:v,transitionStatus:C},ref:[t,T,R],props:[{"aria-labelledby":I,hidden:M,id:_,role:"tabpanel",tabIndex:w?0:-1,inert:(0,i.Y)(!w),"data-index":A},y],stateAttributesMapping:f});return((0,l.v)({open:w,ref:R,onComplete(){w||N(!1)}}),(0,a.g)(()=>{if(null!=_&&(!M||m))return E(o,_)},[M,m,o,_,E]),m||S)?L:null})},43079:(e,t,n)=>{"use strict";n.d(t,{G:()=>r});let r=e=>"object"==typeof e&&null!==e},43209:(e,t,n)=>{"use strict";n.d(t,{Mp:()=>eK,vL:()=>m,uN:()=>ef,cA:()=>ev,AN:()=>ek,IG:()=>e_,fp:()=>j,y$:()=>z,Sj:()=>q,Vy:()=>U,sl:()=>X,fF:()=>eX,PM:()=>eY,zM:()=>eZ,MS:()=>L,FR:()=>D});var r,i,a,s,o,l,c,u,h,d,p,f,m,g,y,b,k,x,v,E=n(69266),_=n(44911),T=n(31217);let A={display:"none"};function w(e){let{id:t,value:n}=e;return E.createElement("div",{id:t,style:A},n)}function S(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;return E.createElement("div",{id:t,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":r,"aria-atomic":!0},n)}let C=(0,E.createContext)(null),N={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 "},M={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function I(e){var t;let n,{announcements:r=M,container:i,hiddenTextDescribedById:a,screenReaderInstructions:s=N}=e,{announce:o,announcement:l}=function(){let[e,t]=(0,E.useState)("");return{announce:(0,E.useCallback)(e=>{null!=e&&t(e)},[]),announcement:e}}(),c=(0,T.YG)("DndLiveRegion"),[u,h]=(0,E.useState)(!1);if((0,E.useEffect)(()=>{h(!0)},[]),t=(0,E.useMemo)(()=>({onDragStart(e){let{active:t}=e;o(r.onDragStart({active:t}))},onDragMove(e){let{active:t,over:n}=e;r.onDragMove&&o(r.onDragMove({active:t,over:n}))},onDragOver(e){let{active:t,over:n}=e;o(r.onDragOver({active:t,over:n}))},onDragEnd(e){let{active:t,over:n}=e;o(r.onDragEnd({active:t,over:n}))},onDragCancel(e){let{active:t,over:n}=e;o(r.onDragCancel({active:t,over:n}))}}),[o,r]),n=(0,E.useContext)(C),(0,E.useEffect)(()=>{if(!n)throw Error("useDndMonitor must be used within a children of <DndContext>");return n(t)},[t,n]),!u)return null;let d=E.createElement(E.Fragment,null,E.createElement(w,{id:a,value:s.draggable}),E.createElement(S,{id:c,announcement:l}));return i?(0,_.createPortal)(d,i):d}function R(){}function L(e,t){return(0,E.useMemo)(()=>({sensor:e,options:null!=t?t:{}}),[e,t])}function D(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,E.useMemo)(()=>[...t].filter(e=>null!=e),[...t])}(r=d||(d={})).DragStart="dragStart",r.DragMove="dragMove",r.DragEnd="dragEnd",r.DragCancel="dragCancel",r.DragOver="dragOver",r.RegisterDroppable="registerDroppable",r.SetDroppableDisabled="setDroppableDisabled",r.UnregisterDroppable="unregisterDroppable";let O=Object.freeze({x:0,y:0});function P(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function F(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function B(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function H(e){let{left:t,top:n,height:r,width:i}=e;return[{x:t,y:n},{x:t+i,y:n},{x:t,y:n+r},{x:t+i,y:n+r}]}function U(e,t){if(!e||0===e.length)return null;let[n]=e;return t?n[t]:n}function $(e,t,n){return void 0===t&&(t=e.left),void 0===n&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}let j=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=$(t,t.left,t.top),a=[];for(let e of r){let{id:t}=e,r=n.get(t);if(r){let n=P($(r),i);a.push({id:t,data:{droppableContainer:e,value:n}})}}return a.sort(F)},z=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=H(t),a=[];for(let e of r){let{id:t}=e,r=n.get(t);if(r){let n=H(r),s=Number((i.reduce((e,t,r)=>e+P(n[r],t),0)/4).toFixed(4));a.push({id:t,data:{droppableContainer:e,value:s}})}}return a.sort(F)},G=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=[];for(let e of r){let{id:r}=e,a=n.get(r);if(a){let n=function(e,t){let n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height);if(r<i&&n<a){let s=t.width*t.height,o=e.width*e.height,l=(i-r)*(a-n);return Number((l/(s+o-l)).toFixed(4))}return 0}(a,t);n>0&&i.push({id:r,data:{droppableContainer:e,value:n}})}}return i.sort(B)};function V(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:O}let K=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce((e,t)=>({...e,top:e.top+ +t.y,bottom:e.bottom+ +t.y,left:e.left+ +t.x,right:e.right+ +t.x}),{...e})},W={ignoreTransform:!1};function q(e,t){void 0===t&&(t=W);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:r}=(0,T.zk)(e).getComputedStyle(e);t&&(n=function(e,t,n){let r=function(e){if(e.startsWith("matrix3d(")){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(t);if(!r)return e;let{scaleX:i,scaleY:a,x:s,y:o}=r,l=e.left-s-(1-i)*parseFloat(n),c=e.top-o-(1-a)*parseFloat(n.slice(n.indexOf(" ")+1)),u=i?e.width/i:e.width,h=a?e.height/a:e.height;return{width:u,height:h,top:c,right:l+u,bottom:c+h,left:l}}(n,t,r))}let{top:r,left:i,width:a,height:s,bottom:o,right:l}=n;return{top:r,left:i,width:a,height:s,bottom:o,right:l}}function Y(e){return q(e,{ignoreTransform:!0})}function X(e,t){let n=[];return e?function r(i){var a,s;let o;if(null!=t&&n.length>=t||!i)return n;if((0,T.wz)(i)&&null!=i.scrollingElement&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!(0,T.sb)(i)||(0,T.xZ)(i)||n.includes(i))return n;let l=(0,T.zk)(e).getComputedStyle(i);return(i!==e&&(void 0===(a=l)&&(a=(0,T.zk)(i).getComputedStyle(i)),o=/(auto|scroll|overlay)/,["overflow","overflowX","overflowY"].some(e=>{let t=a[e];return"string"==typeof t&&o.test(t)}))&&n.push(i),void 0===(s=l)&&(s=(0,T.zk)(i).getComputedStyle(i)),"fixed"===s.position)?n:r(i.parentNode)}(e):n}function Q(e){let[t]=X(e,1);return null!=t?t:null}function Z(e){return T.Sw&&e?(0,T.l6)(e)?e:(0,T.Ll)(e)?(0,T.wz)(e)||e===(0,T.TW)(e).scrollingElement?window:(0,T.sb)(e)?e:null:null:null}function J(e){return(0,T.l6)(e)?e.scrollX:e.scrollLeft}function ee(e){return(0,T.l6)(e)?e.scrollY:e.scrollTop}function et(e){return{x:J(e),y:ee(e)}}function en(e){return!!T.Sw&&!!e&&e===document.scrollingElement}function er(e){let t={x:0,y:0},n=en(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},i=e.scrollTop<=t.y,a=e.scrollLeft<=t.x;return{isTop:i,isLeft:a,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}(i=p||(p={}))[i.Forward=1]="Forward",i[i.Backward=-1]="Backward";let ei={x:.2,y:.2};function ea(e){return e.reduce((e,t)=>(0,T.WQ)(e,et(t)),O)}let es=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+J(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+ee(t),0)}]];class eo{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;const n=X(t),r=ea(n);for(const[t,i,a]of(this.rect={...e},this.width=e.width,this.height=e.height,es))for(const e of i)Object.defineProperty(this,e,{get:()=>{let i=a(n),s=r[t]-i;return this.rect[e]+s},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class el{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)})},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function ec(e,t){let n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}function eu(e){e.preventDefault()}function eh(e){e.stopPropagation()}(a=f||(f={})).Click="click",a.DragStart="dragstart",a.Keydown="keydown",a.ContextMenu="contextmenu",a.Resize="resize",a.SelectionChange="selectionchange",a.VisibilityChange="visibilitychange",(s=m||(m={})).Space="Space",s.Down="ArrowDown",s.Right="ArrowRight",s.Left="ArrowLeft",s.Up="ArrowUp",s.Esc="Escape",s.Enter="Enter",s.Tab="Tab";let ed={start:[m.Space,m.Enter],cancel:[m.Esc],end:[m.Space,m.Enter,m.Tab]},ep=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case m.Right:return{...n,x:n.x+25};case m.Left:return{...n,x:n.x-25};case m.Down:return{...n,y:n.y+25};case m.Up:return{...n,y:n.y-25}}};class ef{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new el((0,T.TW)(t)),this.windowListeners=new el((0,T.zk)(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(f.Resize,this.handleCancel),this.windowListeners.add(f.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(f.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&function(e,t){if(void 0===t&&(t=q),!e)return;let{top:n,left:r,bottom:i,right:a}=t(e);Q(e)&&(i<=0||a<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}(n),t(O)}handleKeyDown(e){if((0,T.kx)(e)){let{active:t,context:n,options:r}=this.props,{keyboardCodes:i=ed,coordinateGetter:a=ep,scrollBehavior:s="smooth"}=r,{code:o}=e;if(i.end.includes(o))return void this.handleEnd(e);if(i.cancel.includes(o))return void this.handleCancel(e);let{collisionRect:l}=n.current,c=l?{x:l.left,y:l.top}:O;this.referenceCoordinates||(this.referenceCoordinates=c);let u=a(e,{active:t,context:n.current,currentCoordinates:c});if(u){let t=(0,T.Re)(u,c),r={x:0,y:0},{scrollableAncestors:i}=n.current;for(let n of i){let i=e.code,{isTop:a,isRight:o,isLeft:l,isBottom:c,maxScroll:h,minScroll:d}=er(n),p=function(e){if(e===document.scrollingElement){let{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}let{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}(n),f={x:Math.min(i===m.Right?p.right-p.width/2:p.right,Math.max(i===m.Right?p.left:p.left+p.width/2,u.x)),y:Math.min(i===m.Down?p.bottom-p.height/2:p.bottom,Math.max(i===m.Down?p.top:p.top+p.height/2,u.y))},g=i===m.Right&&!o||i===m.Left&&!l,y=i===m.Down&&!c||i===m.Up&&!a;if(g&&f.x!==u.x){let e=n.scrollLeft+t.x,a=i===m.Right&&e<=h.x||i===m.Left&&e>=d.x;if(a&&!t.y)return void n.scrollTo({left:e,behavior:s});a?r.x=n.scrollLeft-e:r.x=i===m.Right?n.scrollLeft-h.x:n.scrollLeft-d.x,r.x&&n.scrollBy({left:-r.x,behavior:s});break}if(y&&f.y!==u.y){let e=n.scrollTop+t.y,a=i===m.Down&&e<=h.y||i===m.Up&&e>=d.y;if(a&&!t.x)return void n.scrollTo({top:e,behavior:s});a?r.y=n.scrollTop-e:r.y=i===m.Down?n.scrollTop-h.y:n.scrollTop-d.y,r.y&&n.scrollBy({top:-r.y,behavior:s});break}}this.handleMove(e,(0,T.WQ)((0,T.Re)(u,this.referenceCoordinates),r))}}}handleMove(e,t){let{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){let{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){let{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function em(e){return!!(e&&"distance"in e)}function eg(e){return!!(e&&"delay"in e)}ef.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=ed,onActivation:i}=t,{active:a}=n,{code:s}=e.nativeEvent;if(r.start.includes(s)){let t=a.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==i||i({event:e.nativeEvent}),!0)}return!1}}];class ey{constructor(e,t,n){var r;void 0===n&&(n=function(e){let{EventTarget:t}=(0,T.zk)(e);return e instanceof t?e:(0,T.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;const{event:i}=e,{target:a}=i;this.props=e,this.events=t,this.document=(0,T.TW)(a),this.documentListeners=new el(this.document),this.listeners=new el(n),this.windowListeners=new el((0,T.zk)(a)),this.initialCoordinates=null!=(r=(0,T.e_)(i))?r:O,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(f.Resize,this.handleCancel),this.windowListeners.add(f.DragStart,eu),this.windowListeners.add(f.VisibilityChange,this.handleCancel),this.windowListeners.add(f.ContextMenu,eu),this.documentListeners.add(f.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(eg(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(em(t))return void this.handlePending(t)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){let{active:n,onPending:r}=this.props;r(n,e,this.initialCoordinates,t)}handleStart(){let{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(f.Click,eh,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(f.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;let{activated:n,initialCoordinates:r,props:i}=this,{onMove:a,options:{activationConstraint:s}}=i;if(!r)return;let o=null!=(t=(0,T.e_)(e))?t:O,l=(0,T.Re)(r,o);if(!n&&s){if(em(s)){if(null!=s.tolerance&&ec(l,s.tolerance))return this.handleCancel();if(ec(l,s.distance))return this.handleStart()}return eg(s)&&ec(l,s.tolerance)?this.handleCancel():void this.handlePending(s,l)}e.cancelable&&e.preventDefault(),a(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===m.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}let eb={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class ek extends ey{constructor(e){const{event:t}=e;super(e,eb,(0,T.TW)(t.target))}}ek.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!!n.isPrimary&&0===n.button&&(null==r||r({event:n}),!0)}}];let ex={move:{name:"mousemove"},end:{name:"mouseup"}};(o=g||(g={}))[o.RightClick=2]="RightClick";class ev extends ey{constructor(e){super(e,ex,(0,T.TW)(e.event.target))}}ev.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==g.RightClick&&(null==r||r({event:n}),!0)}}];let eE={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class e_ extends ey{constructor(e){super(e,eE)}static setup(){return window.addEventListener(eE.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(eE.move.name,e)};function e(){}}}e_.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t,{touches:i}=n;return!(i.length>1)&&(null==r||r({event:n}),!0)}}],(l=y||(y={}))[l.Pointer=0]="Pointer",l[l.DraggableRect=1]="DraggableRect",(c=b||(b={}))[c.TreeOrder=0]="TreeOrder",c[c.ReversedTreeOrder=1]="ReversedTreeOrder";let eT={x:{[p.Backward]:!1,[p.Forward]:!1},y:{[p.Backward]:!1,[p.Forward]:!1}};(u=k||(k={}))[u.Always=0]="Always",u[u.BeforeDragging=1]="BeforeDragging",u[u.WhileDragging=2]="WhileDragging",(x||(x={})).Optimized="optimized";let eA=new Map;function ew(e,t){return(0,T.KG)(n=>e?n||("function"==typeof t?t(e):e):null,[t,e])}function eS(e){let{callback:t,disabled:n}=e,r=(0,T._q)(t),i=(0,E.useMemo)(()=>{if(n||"u"<typeof window||void 0===window.ResizeObserver)return;let{ResizeObserver:e}=window;return new e(r)},[n]);return(0,E.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}function eC(e){return new eo(q(e),e)}function eN(e,t,n){void 0===t&&(t=eC);let[r,i]=(0,E.useState)(null);function a(){i(r=>{if(!e)return null;if(!1===e.isConnected){var i;return null!=(i=null!=r?r:n)?i:null}let a=t(e);return JSON.stringify(r)===JSON.stringify(a)?r:a})}let s=function(e){let{callback:t,disabled:n}=e,r=(0,T._q)(t),i=(0,E.useMemo)(()=>{if(n||"u"<typeof window||void 0===window.MutationObserver)return;let{MutationObserver:e}=window;return new e(r)},[r,n]);return(0,E.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}({callback(t){if(e)for(let n of t){let{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){a();break}}}}),o=eS({callback:a});return(0,T.Es)(()=>{a(),e?(null==o||o.observe(e),null==s||s.observe(document.body,{childList:!0,subtree:!0})):(null==o||o.disconnect(),null==s||s.disconnect())},[e]),r}let eM=[];function eI(e,t){void 0===t&&(t=[]);let n=(0,E.useRef)(null);return(0,E.useEffect)(()=>{n.current=null},t),(0,E.useEffect)(()=>{let t=e!==O;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?(0,T.Re)(e,n.current):O}function eR(e){return(0,E.useMemo)(()=>{let t,n;return e?(t=e.innerWidth,{top:0,left:0,right:t,bottom:n=e.innerHeight,width:t,height:n}):null},[e])}let eL=[],eD=[{sensor:ek,options:{}},{sensor:ef,options:{}}],eO={current:{}},eP={draggable:{measure:Y},droppable:{measure:Y,strategy:k.WhileDragging,frequency:x.Optimized},dragOverlay:{measure:q}};class eF extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}let eB={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new eF,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:R},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:eP,measureDroppableContainers:R,windowRect:null,measuringScheduled:!1},eH={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:R,draggableNodes:new Map,over:null,measureDroppableContainers:R},eU=(0,E.createContext)(eH),e$=(0,E.createContext)(eB);function ej(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new eF}}}function ez(e,t){switch(t.type){case d.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case d.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 d.DragEnd:case d.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case d.RegisterDroppable:{let{element:n}=t,{id:r}=n,i=new eF(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case d.SetDroppableDisabled:{let{id:n,key:r,disabled:i}=t,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;let s=new eF(e.droppable.containers);return s.set(n,{...a,disabled:i}),{...e,droppable:{...e.droppable,containers:s}}}case d.UnregisterDroppable:{let{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;let a=new eF(e.droppable.containers);return a.delete(n),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function eG(e){let{disabled:t}=e,{active:n,activatorEvent:r,draggableNodes:i}=(0,E.useContext)(eU),a=(0,T.ZC)(r),s=(0,T.ZC)(null==n?void 0:n.id);return(0,E.useEffect)(()=>{if(!t&&!r&&a&&null!=s){if(!(0,T.kx)(a)||document.activeElement===a.target)return;let e=i.get(s);if(!e)return;let{activatorNode:t,node:n}=e;(t.current||n.current)&&requestAnimationFrame(()=>{for(let e of[t.current,n.current]){if(!e)continue;let t=(0,T.ag)(e);if(t){t.focus();break}}})}},[r,t,i,s,a]),null}let eV=(0,E.createContext)({...O,scaleX:1,scaleY:1});(h=v||(v={}))[h.Uninitialized=0]="Uninitialized",h[h.Initializing=1]="Initializing",h[h.Initialized=2]="Initialized";let eK=(0,E.memo)(function(e){var t,n,r,i,a,s,o,l;let c,u,h,f,m,g,x,A,{id:w,accessibility:S,autoScroll:N=!0,children:M,sensors:R=eD,collisionDetection:L=G,measuring:D,modifiers:P,...F}=e,[B,H]=(0,E.useReducer)(ez,void 0,ej),[$,j]=function(){let[e]=(0,E.useState)(()=>new Set),t=(0,E.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,E.useCallback)(t=>{let{type:n,event:r}=t;e.forEach(e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)})},[e]),t]}(),[z,W]=(0,E.useState)(v.Uninitialized),Y=z===v.Initialized,{draggable:{active:J,nodes:ee,translate:es},droppable:{containers:el}}=B,ec=null!=J?ee.get(J):null,eu=(0,E.useRef)({initial:null,translated:null}),eh=(0,E.useMemo)(()=>{var e;return null!=J?{id:J,data:null!=(e=null==ec?void 0:ec.data)?e:eO,rect:eu}:null},[J,ec]),ed=(0,E.useRef)(null),[ep,ef]=(0,E.useState)(null),[em,eg]=(0,E.useState)(null),ey=(0,T.YN)(F,Object.values(F)),eb=(0,T.YG)("DndDescribedBy",w),ek=(0,E.useMemo)(()=>el.getEnabled(),[el]),ex=(0,E.useMemo)(()=>({draggable:{...eP.draggable,...null==D?void 0:D.draggable},droppable:{...eP.droppable,...null==D?void 0:D.droppable},dragOverlay:{...eP.dragOverlay,...null==D?void 0:D.dragOverlay}}),[null==D?void 0:D.draggable,null==D?void 0:D.droppable,null==D?void 0:D.dragOverlay]),{droppableRects:ev,measureDroppableContainers:eE,measuringScheduled:e_}=function(e,t){let{dragging:n,dependencies:r,config:i}=t,[a,s]=(0,E.useState)(null),{frequency:o,measure:l,strategy:c}=i,u=(0,E.useRef)(e),h=function(){switch(c){case k.Always:return!1;case k.BeforeDragging:return n;default:return!n}}(),d=(0,T.YN)(h),p=(0,E.useCallback)(function(e){void 0===e&&(e=[]),d.current||s(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[d]),f=(0,E.useRef)(null),m=(0,T.KG)(t=>{if(h&&!n)return eA;if(!t||t===eA||u.current!==e||null!=a){let t=new Map;for(let n of e){if(!n)continue;if(a&&a.length>0&&!a.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}let e=n.node.current,r=e?new eo(l(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t},[e,a,n,h,l]);return(0,E.useEffect)(()=>{u.current=e},[e]),(0,E.useEffect)(()=>{h||p()},[n,h]),(0,E.useEffect)(()=>{a&&a.length>0&&s(null)},[JSON.stringify(a)]),(0,E.useEffect)(()=>{h||"number"!=typeof o||null!==f.current||(f.current=setTimeout(()=>{p(),f.current=null},o))},[o,h,p,...r]),{droppableRects:m,measureDroppableContainers:p,measuringScheduled:null!=a}}(ek,{dragging:Y,dependencies:[es.x,es.y],config:ex.droppable}),eC=(m=(f=null!=J?ee.get(J):void 0)?f.node.current:null,(0,T.KG)(e=>{var t;return null==J?null:null!=(t=null!=m?m:e)?t:null},[m,J])),eF=(0,E.useMemo)(()=>em?(0,T.e_)(em):null,[em]),eB=(c=(null==ep?void 0:ep.autoScrollEnabled)===!1,u="object"==typeof N?!1===N.enabled:!1===N,h=Y&&!c&&!u,"object"==typeof N?{...N,enabled:h}:{enabled:h}),eH=ew(eC,ex.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e,a=(0,E.useRef)(!1),{x:s,y:o}="boolean"==typeof i?{x:i,y:i}:i;(0,T.Es)(()=>{if(!s&&!o||!t){a.current=!1;return}if(a.current||!r)return;let e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;let i=V(n(e),r);if(s||(i.x=0),o||(i.y=0),a.current=!0,Math.abs(i.x)>0||Math.abs(i.y)>0){let t=Q(e);t&&t.scrollBy({top:i.y,left:i.x})}},[t,s,o,r,n])}({activeNode:null!=J?ee.get(J):null,config:eB.layoutShiftCompensation,initialRect:eH,measure:ex.draggable.measure});let eK=eN(eC,ex.draggable.measure,eH),eW=eN(eC?eC.parentElement:null),eq=(0,E.useRef)({activatorEvent:null,active:null,activeNode:eC,collisionRect:null,collisions:null,droppableRects:ev,draggableNodes:ee,draggingNode:null,draggingNodeRect:null,droppableContainers:el,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),eY=el.getNodeFor(null==(t=eq.current.over)?void 0:t.id),eX=function(e){let{measure:t}=e,[n,r]=(0,E.useState)(null),i=eS({callback:(0,E.useCallback)(e=>{for(let{target:n}of e)if((0,T.sb)(n)){r(e=>{let r=t(n);return e?{...e,width:r.width,height:r.height}:r});break}},[t])}),a=(0,E.useCallback)(e=>{let n=function(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return(0,T.sb)(t)?t:e}(e);null==i||i.disconnect(),n&&(null==i||i.observe(n)),r(n?t(n):null)},[t,i]),[s,o]=(0,T.lk)(a);return(0,E.useMemo)(()=>({nodeRef:s,rect:n,setRef:o}),[n,s,o])}({measure:ex.dragOverlay.measure}),eQ=null!=(n=eX.nodeRef.current)?n:eC,eZ=Y?null!=(r=eX.rect)?r:eK:null,eJ=!!(eX.nodeRef.current&&eX.rect),e0=(g=ew(a=eJ?null:eK),V(a,g)),e1=eR(eQ?(0,T.zk)(eQ):null),e2=(s=Y?null!=eY?eY:eC:null,x=(0,E.useRef)(s),A=(0,T.KG)(e=>s?e&&e!==eM&&s&&x.current&&s.parentNode===x.current.parentNode?e:X(s):eM,[s]),(0,E.useEffect)(()=>{x.current=s},[s]),A),e5=function(e,t){void 0===t&&(t=q);let[n]=e,r=eR(n?(0,T.zk)(n):null),[i,a]=(0,E.useState)(eL);function s(){a(()=>e.length?e.map(e=>en(e)?r:new eo(t(e),e)):eL)}let o=eS({callback:s});return(0,T.Es)(()=>{null==o||o.disconnect(),s(),e.forEach(e=>null==o?void 0:o.observe(e))},[e]),i}(e2),e3=function(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...r}),n):n}(P,{transform:{x:es.x-e0.x,y:es.y-e0.y,scaleX:1,scaleY:1},activatorEvent:em,active:eh,activeNodeRect:eK,containerNodeRect:eW,draggingNodeRect:eZ,over:eq.current.over,overlayNodeRect:eX.rect,scrollableAncestors:e2,scrollableAncestorRects:e5,windowRect:e1}),e6=eF?(0,T.WQ)(eF,es):null,e9=function(e){let[t,n]=(0,E.useState)(null),r=(0,E.useRef)(e),i=(0,E.useCallback)(e=>{let t=Z(e.target);t&&n(e=>e?(e.set(t,et(t)),new Map(e)):null)},[]);return(0,E.useEffect)(()=>{let t=r.current;if(e!==t){a(t);let s=e.map(e=>{let t=Z(e);return t?(t.addEventListener("scroll",i,{passive:!0}),[t,et(t)]):null}).filter(e=>null!=e);n(s.length?new Map(s):null),r.current=e}return()=>{a(e),a(t)};function a(e){e.forEach(e=>{let t=Z(e);null==t||t.removeEventListener("scroll",i)})}},[i,e]),(0,E.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>(0,T.WQ)(e,t),O):ea(e):O,[e,t])}(e2),e4=eI(e9),e8=eI(e9,[eK]),e7=(0,T.WQ)(e3,e4),te=eZ?K(eZ,e3):null,tt=eh&&te?L({active:eh,collisionRect:te,droppableRects:ev,droppableContainers:ek,pointerCoordinates:e6}):null,tn=U(tt,"id"),[tr,ti]=(0,E.useState)(null),ta=(o=eJ?e3:(0,T.WQ)(e3,e8),l=null!=(i=null==tr?void 0:tr.rect)?i:null,{...o,scaleX:l&&eK?l.width/eK.width:1,scaleY:l&&eK?l.height/eK.height:1}),ts=(0,E.useRef)(null),to=(0,E.useCallback)((e,t)=>{let{sensor:n,options:r}=t;if(null==ed.current)return;let i=ee.get(ed.current);if(!i)return;let a=e.nativeEvent,s=new n({active:ed.current,activeNode:i,event:a,options:r,context:eq,onAbort(e){if(!ee.get(e))return;let{onDragAbort:t}=ey.current,n={id:e};null==t||t(n),$({type:"onDragAbort",event:n})},onPending(e,t,n,r){if(!ee.get(e))return;let{onDragPending:i}=ey.current,a={id:e,constraint:t,initialCoordinates:n,offset:r};null==i||i(a),$({type:"onDragPending",event:a})},onStart(e){let t=ed.current;if(null==t)return;let n=ee.get(t);if(!n)return;let{onDragStart:r}=ey.current,i={activatorEvent:a,active:{id:t,data:n.data,rect:eu}};(0,_.unstable_batchedUpdates)(()=>{null==r||r(i),W(v.Initializing),H({type:d.DragStart,initialCoordinates:e,active:t}),$({type:"onDragStart",event:i}),ef(ts.current),eg(a)})},onMove(e){H({type:d.DragMove,coordinates:e})},onEnd:o(d.DragEnd),onCancel:o(d.DragCancel)});function o(e){return async function(){let{active:t,collisions:n,over:r,scrollAdjustedTranslate:i}=eq.current,s=null;if(t&&i){let{cancelDrop:o}=ey.current;s={activatorEvent:a,active:t,collisions:n,delta:i,over:r},e===d.DragEnd&&"function"==typeof o&&await Promise.resolve(o(s))&&(e=d.DragCancel)}ed.current=null,(0,_.unstable_batchedUpdates)(()=>{H({type:e}),W(v.Uninitialized),ti(null),ef(null),eg(null),ts.current=null;let t=e===d.DragEnd?"onDragEnd":"onDragCancel";if(s){let e=ey.current[t];null==e||e(s),$({type:t,event:s})}})}}ts.current=s},[ee]),tl=(0,E.useCallback)((e,t)=>(n,r)=>{let i=n.nativeEvent,a=ee.get(r);null!==ed.current||!a||i.dndKit||i.defaultPrevented||!0===e(n,t.options,{active:a})&&(i.dndKit={capturedBy:t.sensor},ed.current=r,to(n,t))},[ee,to]),tc=(0,E.useMemo)(()=>R.reduce((e,t)=>{let{sensor:n}=t;return[...e,...n.activators.map(e=>({eventName:e.eventName,handler:tl(e.handler,t)}))]},[]),[R,tl]);(0,E.useEffect)(()=>{if(!T.Sw)return;let e=R.map(e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()});return()=>{for(let t of e)null==t||t()}},R.map(e=>{let{sensor:t}=e;return t})),(0,T.Es)(()=>{eK&&z===v.Initializing&&W(v.Initialized)},[eK,z]),(0,E.useEffect)(()=>{let{onDragMove:e}=ey.current,{active:t,activatorEvent:n,collisions:r,over:i}=eq.current;if(!t||!n)return;let a={active:t,activatorEvent:n,collisions:r,delta:{x:e7.x,y:e7.y},over:i};(0,_.unstable_batchedUpdates)(()=>{null==e||e(a),$({type:"onDragMove",event:a})})},[e7.x,e7.y]),(0,E.useEffect)(()=>{let{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=eq.current;if(!e||null==ed.current||!t||!i)return;let{onDragOver:a}=ey.current,s=r.get(tn),o=s&&s.rect.current?{id:s.id,rect:s.rect.current,data:s.data,disabled:s.disabled}:null,l={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:o};(0,_.unstable_batchedUpdates)(()=>{ti(o),null==a||a(l),$({type:"onDragOver",event:l})})},[tn]),(0,T.Es)(()=>{eq.current={activatorEvent:em,active:eh,activeNode:eC,collisionRect:te,collisions:tt,droppableRects:ev,draggableNodes:ee,draggingNode:eQ,draggingNodeRect:eZ,droppableContainers:el,over:tr,scrollableAncestors:e2,scrollAdjustedTranslate:e7},eu.current={initial:eZ,translated:te}},[eh,eC,tt,te,ee,eQ,eZ,ev,el,tr,e2,e7]),function(e){let{acceleration:t,activator:n=y.Pointer,canScroll:r,draggingRect:i,enabled:a,interval:s=5,order:o=b.TreeOrder,pointerCoordinates:l,scrollableAncestors:c,scrollableAncestorRects:u,delta:h,threshold:d}=e,f=function(e){let{delta:t,disabled:n}=e,r=(0,T.ZC)(t);return(0,T.KG)(e=>{if(n||!r||!e)return eT;let i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[p.Backward]:e.x[p.Backward]||-1===i.x,[p.Forward]:e.x[p.Forward]||1===i.x},y:{[p.Backward]:e.y[p.Backward]||-1===i.y,[p.Forward]:e.y[p.Forward]||1===i.y}}},[n,t,r])}({delta:h,disabled:!a}),[m,g]=(0,T.$$)(),k=(0,E.useRef)({x:0,y:0}),x=(0,E.useRef)({x:0,y:0}),v=(0,E.useMemo)(()=>{switch(n){case y.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case y.DraggableRect:return i}},[n,i,l]),_=(0,E.useRef)(null),A=(0,E.useCallback)(()=>{let e=_.current;if(!e)return;let t=k.current.x*x.current.x,n=k.current.y*x.current.y;e.scrollBy(t,n)},[]),w=(0,E.useMemo)(()=>o===b.TreeOrder?[...c].reverse():c,[o,c]);(0,E.useEffect)(()=>{if(!a||!c.length||!v)return void g();for(let e of w){if((null==r?void 0:r(e))===!1)continue;let n=u[c.indexOf(e)];if(!n)continue;let{direction:i,speed:a}=function(e,t,n,r,i){let{top:a,left:s,right:o,bottom:l}=n;void 0===r&&(r=10),void 0===i&&(i=ei);let{isTop:c,isBottom:u,isLeft:h,isRight:d}=er(e),f={x:0,y:0},m={x:0,y:0},g={height:t.height*i.y,width:t.width*i.x};return!c&&a<=t.top+g.height?(f.y=p.Backward,m.y=r*Math.abs((t.top+g.height-a)/g.height)):!u&&l>=t.bottom-g.height&&(f.y=p.Forward,m.y=r*Math.abs((t.bottom-g.height-l)/g.height)),!d&&o>=t.right-g.width?(f.x=p.Forward,m.x=r*Math.abs((t.right-g.width-o)/g.width)):!h&&s<=t.left+g.width&&(f.x=p.Backward,m.x=r*Math.abs((t.left+g.width-s)/g.width)),{direction:f,speed:m}}(e,n,v,t,d);for(let e of["x","y"])f[e][i[e]]||(a[e]=0,i[e]=0);if(a.x>0||a.y>0){g(),_.current=e,m(A,s),k.current=a,x.current=i;return}}k.current={x:0,y:0},x.current={x:0,y:0},g()},[t,A,r,g,a,s,JSON.stringify(v),JSON.stringify(f),m,c,w,u,JSON.stringify(d)])}({...eB,delta:es,draggingRect:te,pointerCoordinates:e6,scrollableAncestors:e2,scrollableAncestorRects:e5});let tu=(0,E.useMemo)(()=>({active:eh,activeNode:eC,activeNodeRect:eK,activatorEvent:em,collisions:tt,containerNodeRect:eW,dragOverlay:eX,draggableNodes:ee,droppableContainers:el,droppableRects:ev,over:tr,measureDroppableContainers:eE,scrollableAncestors:e2,scrollableAncestorRects:e5,measuringConfiguration:ex,measuringScheduled:e_,windowRect:e1}),[eh,eC,eK,em,tt,eW,eX,ee,el,ev,tr,eE,e2,e5,ex,e_,e1]),th=(0,E.useMemo)(()=>({activatorEvent:em,activators:tc,active:eh,activeNodeRect:eK,ariaDescribedById:{draggable:eb},dispatch:H,draggableNodes:ee,over:tr,measureDroppableContainers:eE}),[em,tc,eh,eK,H,eb,ee,tr,eE]);return E.createElement(C.Provider,{value:j},E.createElement(eU.Provider,{value:th},E.createElement(e$.Provider,{value:tu},E.createElement(eV.Provider,{value:ta},M)),E.createElement(eG,{disabled:(null==S?void 0:S.restoreFocus)===!1})),E.createElement(I,{...S,hiddenTextDescribedById:eb}))}),eW=(0,E.createContext)(null),eq="button";function eY(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e,a=(0,T.YG)("Draggable"),{activators:s,activatorEvent:o,active:l,activeNodeRect:c,ariaDescribedById:u,draggableNodes:h,over:d}=(0,E.useContext)(eU),{role:p=eq,roleDescription:f="draggable",tabIndex:m=0}=null!=i?i:{},g=(null==l?void 0:l.id)===t,y=(0,E.useContext)(g?eV:eW),[b,k]=(0,T.lk)(),[x,v]=(0,T.lk)(),_=(0,E.useMemo)(()=>s.reduce((e,n)=>{let{eventName:r,handler:i}=n;return e[r]=e=>{i(e,t)},e},{}),[s,t]),A=(0,T.YN)(n);return(0,T.Es)(()=>(h.set(t,{id:t,key:a,node:b,activatorNode:x,data:A}),()=>{let e=h.get(t);e&&e.key===a&&h.delete(t)}),[h,t]),{active:l,activatorEvent:o,activeNodeRect:c,attributes:(0,E.useMemo)(()=>({role:p,tabIndex:m,"aria-disabled":r,"aria-pressed":!!g&&p===eq||void 0,"aria-roledescription":f,"aria-describedby":u.draggable}),[r,p,m,g,f,u.draggable]),isDragging:g,listeners:r?void 0:_,node:b,over:d,setNodeRef:k,setActivatorNodeRef:v,transform:y}}function eX(){return(0,E.useContext)(e$)}let eQ={timeout:25};function eZ(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e,a=(0,T.YG)("Droppable"),{active:s,dispatch:o,over:l,measureDroppableContainers:c}=(0,E.useContext)(eU),u=(0,E.useRef)({disabled:n}),h=(0,E.useRef)(!1),p=(0,E.useRef)(null),f=(0,E.useRef)(null),{disabled:m,updateMeasurementsFor:g,timeout:y}={...eQ,...i},b=(0,T.YN)(null!=g?g:r),k=eS({callback:(0,E.useCallback)(()=>{if(!h.current){h.current=!0;return}null!=f.current&&clearTimeout(f.current),f.current=setTimeout(()=>{c(Array.isArray(b.current)?b.current:[b.current]),f.current=null},y)},[y]),disabled:m||!s}),x=(0,E.useCallback)((e,t)=>{k&&(t&&(k.unobserve(t),h.current=!1),e&&k.observe(e))},[k]),[v,_]=(0,T.lk)(x),A=(0,T.YN)(t);return(0,E.useEffect)(()=>{k&&v.current&&(k.disconnect(),h.current=!1,k.observe(v.current))},[v,k]),(0,E.useEffect)(()=>(o({type:d.RegisterDroppable,element:{id:r,key:a,disabled:n,node:v,rect:p,data:A}}),()=>o({type:d.UnregisterDroppable,key:a,id:r})),[r]),(0,E.useEffect)(()=>{n!==u.current.disabled&&(o({type:d.SetDroppableDisabled,id:r,key:a,disabled:n}),u.current.disabled=n)},[r,a,n,o]),{active:s,rect:p,isOver:(null==l?void 0:l.id)===r,node:v,over:l,setNodeRef:_}}},43326:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]])},43428:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(47552),i=n(47057);let a=e=>!((e=>{let{r:t,g:n,b:a}=i.A.parse(e),s=.2126*r.A.channel.toLinear(t)+.7152*r.A.channel.toLinear(n)+.0722*r.A.channel.toLinear(a);return r.A.lang.round(s)})(e)>=.5)},44382:(e,t,n)=>{"use strict";n.d(t,{YR:()=>i});var r=n(72034);function i(e,t,n,i){let a,s,o;"function"==typeof t&&"function"!=typeof n?(s=void 0,o=t,a=n):(s=t,o=n,a=i),(0,r.VG)(e,s,function(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)},a)}},44549:(e,t,n)=>{"use strict";n.d(t,{WY:()=>A,dn:()=>T,pC:()=>E,Gc:()=>k});var r=n(89316),i=n(47508),a=n(39410);let s=(e,t)=>!!e&&!!((t&&""===e.prefix||e.prefix)&&e.name),o=Object.freeze({left:0,top:0,width:16,height:16}),l=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),c=Object.freeze({...o,...l}),u=Object.freeze({...c,body:"",hidden:!1});function h(e,t){let n,r,i=(n={},!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0),(r=((e.rotate||0)+(t.rotate||0))%4)&&(n.rotate=r),n);for(let n in u)n in l?n in e&&!(n in i)&&(i[n]=l[n]):n in t?i[n]=t[n]:n in e&&(i[n]=e[n]);return i}function d(e,t,n){let r=e.icons,i=e.aliases||Object.create(null),a={};function s(e){a=h(r[e]||i[e],a)}return s(t),n.forEach(s),h(e,a)}let p=Object.freeze({...Object.freeze({width:null,height:null}),...l}),f=/(-?[0-9.]*[0-9]+[0-9.]*)/g,m=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function g(e,t,n){if(1===t)return e;if(n=n||100,"number"==typeof e)return Math.ceil(e*t*n)/n;if("string"!=typeof e)return e;let r=e.split(f);if(null===r||!r.length)return e;let i=[],a=r.shift(),s=m.test(a);for(;;){if(s){let e=parseFloat(a);isNaN(e)?i.push(a):i.push(Math.ceil(e*t*n)/n)}else i.push(a);if(void 0===(a=r.shift()))return i.join("");s=!s}}let y=/\sid="(\S+)"/g,b=new Map;var k={body:'<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/><text transform="translate(21.16 64.67)" style="fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;"><tspan x="0" y="0">?</tspan></text></g>',height:80,width:80},x=new Map,v=new Map,E=(0,a.K)(e=>{for(let t of e){if(!t.name)throw Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(i.R.debug("Registering icon pack:",t.name),"loader"in t)v.set(t.name,t.loader);else if("icons"in t)x.set(t.name,t.icons);else throw i.R.error("Invalid icon loader:",t),Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),_=(0,a.K)(async(e,t)=>{let n=((e,t,n,r="")=>{let i=e.split(":");if("@"===e.slice(0,1)){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){let e=i.pop(),n=i.pop(),a={provider:i.length>0?i[0]:r,prefix:n,name:e};return t&&!s(a)?null:a}let a=i[0],o=a.split("-");if(o.length>1){let e={provider:r,prefix:o.shift(),name:o.join("-")};return t&&!s(e)?null:e}if(n&&""===r){let e={provider:r,prefix:"",name:a};return t&&!s(e,n)?null:e}return null})(e,!0,void 0!==t);if(!n)throw Error(`Invalid icon name: ${e}`);let r=n.prefix||t;if(!r)throw Error(`Icon name must contain a prefix: ${e}`);let a=x.get(r);if(!a){let e=v.get(r);if(!e)throw Error(`Icon set not found: ${n.prefix}`);try{a={...await e(),prefix:r},x.set(r,a)}catch(e){throw i.R.error(e),Error(`Failed to load icon set: ${n.prefix}`)}}let o=function(e,t){var n;let r,i,a;if(e.icons[t])return d(e,t,[]);let s=(n=[t],r=e.icons,i=e.aliases||Object.create(null),a=Object.create(null),(n||Object.keys(r).concat(Object.keys(i))).forEach(function e(t){if(r[t])return a[t]=[];if(!(t in a)){a[t]=null;let n=i[t]&&i[t].parent,r=n&&e(n);r&&(a[t]=[n].concat(r))}return a[t]}),a)[t];return s?d(e,t,s):null}(a,n.name);if(!o)throw Error(`Icon not found: ${e}`);return o},"getRegisteredIconData"),T=(0,a.K)(async e=>{try{return await _(e),!0}catch{return!1}},"isIconAvailable"),A=(0,a.K)(async(e,t,n)=>{var a;let s,o,l,u,h,d,f,m,x,v,E,T,A,w;try{s=await _(e,t?.fallbackPrefix)}catch(e){i.R.error(e),s=k}let S=(a=s,u={...c,...a},h={...p,...t},d={left:u.left,top:u.top,width:u.width,height:u.height},f=u.body,[u,h].forEach(e=>{var t,n,r,i;let a,s,o=[],l=e.hFlip,c=e.vFlip,u=e.rotate;switch(l?c?u+=2:(o.push("translate("+(d.width+d.left).toString()+" "+(0-d.top).toString()+")"),o.push("scale(-1 1)"),d.top=d.left=0):c&&(o.push("translate("+(0-d.left).toString()+" "+(d.height+d.top).toString()+")"),o.push("scale(1 -1)"),d.top=d.left=0),u<0&&(u-=4*Math.floor(u/4)),u%=4){case 1:o.unshift("rotate(90 "+(a=d.height/2+d.top).toString()+" "+a.toString()+")");break;case 2:o.unshift("rotate(180 "+(d.width/2+d.left).toString()+" "+(d.height/2+d.top).toString()+")");break;case 3:o.unshift("rotate(-90 "+(a=d.width/2+d.left).toString()+" "+a.toString()+")")}u%2==1&&(d.left!==d.top&&(a=d.left,d.left=d.top,d.top=a),d.width!==d.height&&(a=d.width,d.width=d.height,d.height=a)),o.length&&(t=f,n='<g transform="'+o.join(" ")+'">',r=(s=function(e,t="defs"){let n="",r=e.indexOf("<"+t);for(;r>=0;){let i=e.indexOf(">",r),a=e.indexOf("</"+t);if(-1===i||-1===a)break;let s=e.indexOf(">",a);if(-1===s)break;n+=e.slice(i+1,a).trim(),e=e.slice(0,r).trim()+e.slice(s+1)}return{defs:n,content:e}}(t)).defs,i=n+s.content+"</g>",f=r?"<defs>"+r+"</defs>"+i:i)}),m=h.width,x=h.height,v=d.width,E=d.height,null===m?o=g(l=null===x?"1em":"auto"===x?E:x,v/E):(o="auto"===m?v:m,l=null===x?g(o,E/v):"auto"===x?E:x),T={},(A=(e,t)=>{"unset"!==t&&"undefined"!==t&&"none"!==t&&(T[e]=t.toString())})("width",o),A("height",l),T.viewBox=(w=[d.left,d.top,v,E]).join(" "),{attributes:T,viewBox:w,body:f}),C=function(e,t){let n=-1===e.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(let e in t)n+=" "+e+'="'+t[e]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}(function(e){let t,n=[];for(;t=y.exec(e);)n.push(t[1]);if(!n.length)return e;let r="suffix"+(0x1000000*Math.random()|Date.now()).toString(16);return n.forEach(t=>{var n;let i,a=(n=(n=t).replace(/[0-9]+$/,"")||"a",i=b.get(n)||0,b.set(n,i+1),i?`${n}${i}`:n),s=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+a+r+"$3")}),e=e.replace(RegExp(r,"g"),"")}(S.body),{...S.attributes,...n});return(0,r.jZ)(C,(0,r.zj)())},"getIconSVG")},44980:(e,t,n)=>{"use strict";n.d(t,{p:()=>o});var r=n(69266),i=n(67089),a=n(69611),s=n(54751);let o=r.forwardRef(function(e,t){let{render:n,className:r,style:o,...l}=e,c=(0,i.b)();return(0,a.o)("span",e,{state:c,ref:t,stateAttributesMapping:s.P,props:l})})},45087:(e,t,n)=>{"use strict";n.d(t,{A:()=>A});var r=n(69266);function i(e){return"[object Object]"===Object.prototype.toString.call(e)||Array.isArray(e)}function a(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&n.every(n=>{let r=e[n],s=t[n];return"function"==typeof r?`${r}`==`${s}`:i(r)&&i(s)?a(r,s):r===s})}function s(e){return e.concat().sort((e,t)=>e.name>t.name?1:-1).map(e=>e.options)}function o(e){return"number"==typeof e}function l(e){return"string"==typeof e}function c(e){return"boolean"==typeof e}function u(e){return"[object Object]"===Object.prototype.toString.call(e)}function h(e){return Math.abs(e)}function d(e){return Math.sign(e)}function p(e){return y(e).map(Number)}function f(e){return e[m(e)]}function m(e){return Math.max(0,e.length-1)}function g(e,t=0){return Array.from(Array(e),(e,n)=>t+n)}function y(e){return Object.keys(e)}function b(e,t){return void 0!==t.MouseEvent&&e instanceof t.MouseEvent}function k(){let e=[],t={add:function(n,r,i,a={passive:!0}){let s;return"addEventListener"in n?(n.addEventListener(r,i,a),s=()=>n.removeEventListener(r,i,a)):(n.addListener(i),s=()=>n.removeListener(i)),e.push(s),t},clear:function(){e=e.filter(e=>e())}};return t}function x(e=0,t=0){let n=h(e-t);function r(n){return n<e||n>t}return{length:n,max:t,min:e,constrain:function(n){return r(n)?n<e?e:t:n},reachedAny:r,reachedMax:function(e){return e>t},reachedMin:function(t){return t<e},removeOffset:function(e){return n?e-n*Math.ceil((e-t)/n):e}}}function v(e){let t=e;function n(e){return o(e)?e:e.get()}return{get:function(){return t},set:function(e){t=n(e)},add:function(e){t+=n(e)},subtract:function(e){t-=n(e)}}}function E(e,t){let n="x"===e.scroll?function(e){return`translate3d(${e}px,0px,0px)`}:function(e){return`translate3d(0px,${e}px,0px)`},r=t.style,i=null,a=!1;return{clear:function(){!a&&(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){if(a)return;let s=Math.round(100*e.direction(t))/100;s!==i&&(r.transform=n(s),i=s)},toggleActive:function(e){a=!e}}}let _={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function T(e,t,n){let r,i,a,s,A,w,S,C,N=e.ownerDocument,M=N.defaultView,I=function(e){function t(e,t){return function e(t,n){return[t,n].reduce((t,n)=>(y(n).forEach(r=>{let i=t[r],a=n[r],s=u(i)&&u(a);t[r]=s?e(i,a):a}),t),{})}(e,t||{})}return{mergeOptions:t,optionsAtMedia:function(n){let r=n.breakpoints||{},i=y(r).filter(t=>e.matchMedia(t).matches).map(e=>r[e]).reduce((e,n)=>t(e,n),{});return t(n,i)},optionsMediaQueries:function(t){return t.map(e=>y(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}}}(M),R=(C=[],{init:function(e,t){return(C=t.filter(({options:e})=>!1!==I.optionsAtMedia(e).active)).forEach(t=>t.init(e,I)),t.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})},destroy:function(){C=C.filter(e=>e.destroy())}}),L=k(),D=(i={},a={init:function(e){r=e},emit:function(e){return(i[e]||[]).forEach(t=>t(r,e)),a},off:function(e,t){return i[e]=(i[e]||[]).filter(e=>e!==t),a},on:function(e,t){return i[e]=(i[e]||[]).concat([t]),a},clear:function(){i={}}}),{mergeOptions:O,optionsAtMedia:P,optionsMediaQueries:F}=I,{on:B,off:H,emit:U}=D,$=!1,j=O(_,T.globalOptions),z=O(j),G=[];function V(t,n){$||(z=P(j=O(j,t)),G=n||G,function(){let{container:t,slides:n}=z;w=(l(t)?e.querySelector(t):t)||e.children[0];let r=l(n)?w.querySelectorAll(n):n;S=[].slice.call(r||w.children)}(),s=function t(n){let r=function(e,t,n,r,i,a,s){var u,_;let T,A,w,S,C,N,M,I,R,L,D,O,P,F,{align:B,axis:H,direction:U,startIndex:$,loop:j,duration:z,dragFree:G,dragThreshold:V,inViewThreshold:K,slidesToScroll:W,skipSnaps:q,containScroll:Y,watchResize:X,watchSlides:Q,watchDrag:Z,watchFocus:J}=a,ee={measure:function(e){let{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:i}=e;return{top:t,right:n+r,bottom:t+i,left:n,width:r,height:i}}},et=ee.measure(t),en=n.map(ee.measure),er=(A="rtl"===U,S=(w="y"===H)||!A?1:-1,C=w?"top":A?"right":"left",N=w?"bottom":A?"left":"right",{scroll:w?"y":"x",cross:w?"x":"y",startEdge:C,endEdge:N,measureSize:function(e){let{height:t,width:n}=e;return w?t:n},direction:function(e){return e*S}}),ei=er.measureSize(et),ea={measure:function(e){return e/100*ei}},es=(u=B,_=ei,T={start:function(){return 0},center:function(e){return(_-e)/2},end:function(e){return _-e}},{measure:function(e,t){return l(u)?T[u](e):u(_,e,t)}}),eo=!j&&!!Y,{slideSizes:el,slideSizesWithGaps:ec,startGap:eu,endGap:eh}=function(e,t,n,r,i,a){let{measureSize:s,startEdge:o,endEdge:l}=e,c=n[0]&&i,u=function(){if(!c)return 0;let e=n[0];return h(t[o]-e[o])}(),d=c?parseFloat(a.getComputedStyle(f(r)).getPropertyValue(`margin-${l}`)):0,p=n.map(s),g=n.map((e,t,n)=>{let r=t===m(n);return t?r?p[t]+d:n[t+1][o]-e[o]:p[t]+u}).map(h);return{slideSizes:p,slideSizesWithGaps:g,startGap:u,endGap:d}}(er,et,en,n,j||!!Y,i),ed=function(e,t,n,r,i,a,s,l){let{startEdge:c,endEdge:u,direction:d}=e,g=o(n);return{groupSlides:function(e){return g?p(e).filter(e=>e%n==0).map(t=>e.slice(t,t+n)):e.length?p(e).reduce((n,o,p)=>{let g=f(n)||0,y=o===m(e),b=i[c]-a[g][c],k=i[c]-a[o][u],x=r||0!==g?0:d(s),v=h(k-(!r&&y?d(l):0)-(b+x));return p&&v>t+2&&n.push(o),y&&n.push(e.length),n},[]).map((t,n,r)=>{let i=Math.max(r[n-1]||0);return e.slice(i,t)}):[]}}}(er,ei,W,j,et,en,eu,eh),{snaps:ep,snapsAligned:ef}=function(e,t,n,r,i){let{startEdge:a,endEdge:s}=e,{groupSlides:o}=i,l=o(r).map(e=>f(e)[s]-e[0][a]).map(h).map(t.measure),c=r.map(e=>n[a]-e[a]).map(e=>-h(e)),u=o(c).map(e=>e[0]).map((e,t)=>e+l[t]);return{snaps:c,snapsAligned:u}}(er,es,et,en,ed),em=-f(ep)+f(ec),{snapsContained:eg,scrollContainLimit:ey}=function(e,t,n,r){let i,a,s=x(-t+e,0),o=n.map((e,t)=>{let{min:r,max:i}=s,a=s.constrain(e),o=t===m(n);return t?o||function(e,t){return 1>=h(e-t)}(r,a)?r:function(e,t){return 1>=h(e-t)}(i,a)?i:a:i}).map(e=>parseFloat(e.toFixed(3))),l=(i=o[0],a=f(o),x(o.lastIndexOf(i),o.indexOf(a)+1));return{snapsContained:function(){if(t<=e+2)return[s.max];if("keepSnaps"===r)return o;let{min:n,max:i}=l;return o.slice(n,i)}(),scrollContainLimit:l}}(ei,em,ef,Y),eb=eo?eg:ef,{limit:ek}=(M=eb[0],{limit:x(j?M-em:f(eb),M)}),ex=function e(t,n,r){let{constrain:i}=x(0,t),a=t+1,s=o(n);function o(e){return r?h((a+e)%a):i(e)}function l(){return e(t,s,r)}let c={get:function(){return s},set:function(e){return s=o(e),c},add:function(e){return l().set(s+e)},clone:l};return c}(m(eb),$,j),ev=ex.clone(),eE=p(n),e_=function(e,t,n,r){let i=k(),a=1e3/60,s=null,o=0,l=0;function c(e){if(!l)return;s||(s=e,n(),n());let i=e-s;for(s=e,o+=i;o>=a;)n(),o-=a;r(o/a),l&&(l=t.requestAnimationFrame(c))}function u(){t.cancelAnimationFrame(l),s=null,o=0,l=0}return{init:function(){i.add(e,"visibilitychange",()=>{e.hidden&&(s=null,o=0)})},destroy:function(){u(),i.clear()},start:function(){l||(l=t.requestAnimationFrame(c))},stop:u,update:n,render:r}}(r,i,()=>(({dragHandler:e,scrollBody:t,scrollBounds:n,options:{loop:r}})=>{r||n.constrain(e.pointerDown()),t.seek()})(eF),e=>(({scrollBody:e,translate:t,location:n,offsetLocation:r,previousLocation:i,scrollLooper:a,slideLooper:s,dragHandler:o,animation:l,eventHandler:c,scrollBounds:u,options:{loop:h}},d)=>{let p=e.settled(),f=!u.shouldConstrain(),m=h?p:p&&f,g=m&&!o.pointerDown();g&&l.stop();let y=n.get()*d+i.get()*(1-d);r.set(y),h&&(a.loop(e.direction()),s.loop()),t.to(r.get()),g&&c.emit("settle"),m||c.emit("scroll")})(eF,e)),eT=eb[ex.get()],eA=v(eT),ew=v(eT),eS=v(eT),eC=v(eT),eN=function(e,t,n,r,i){let a=0,s=0,o=i,l=.68,c=e.get(),u=0;function p(e){return o=e,m}function f(e){return l=e,m}let m={direction:function(){return s},duration:function(){return o},velocity:function(){return a},seek:function(){let t=r.get()-e.get(),i=0;return o?(n.set(e),a+=t/o,a*=l,c+=a,e.add(a),i=c-u):(a=0,n.set(r),e.set(r),i=t),s=d(i),u=c,m},settled:function(){return .001>h(r.get()-t.get())},useBaseFriction:function(){return f(.68)},useBaseDuration:function(){return p(i)},useFriction:f,useDuration:p};return m}(eA,eS,ew,eC,z),eM=function(e,t,n,r,i){let{reachedAny:a,removeOffset:s,constrain:o}=r;function l(e){return e.concat().sort((e,t)=>h(e)-h(t))[0]}function c(t,r){let i=[t,t+n,t-n];if(!e)return t;if(!r)return l(i);let a=i.filter(e=>d(e)===r);return a.length?l(a):f(i)-n}return{byDistance:function(n,r){let l=i.get()+n,{index:u,distance:d}=function(n){let r=e?s(n):o(n),{index:i}=t.map((e,t)=>({diff:c(e-r,0),index:t})).sort((e,t)=>h(e.diff)-h(t.diff))[0];return{index:i,distance:r}}(l),p=!e&&a(l);if(!r||p)return{index:u,distance:n};let f=n+c(t[u]-d,0);return{index:u,distance:f}},byIndex:function(e,n){let r=c(t[e]-i.get(),n);return{index:e,distance:r}},shortcut:c}}(j,eb,em,ek,eC),eI=function(e,t,n,r,i,a,s){function o(i){let o=i.distance,l=i.index!==t.get();a.add(o),o&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),l&&(n.set(t.get()),t.set(i.index),s.emit("select"))}return{distance:function(e,t){o(i.byDistance(e,t))},index:function(e,n){let r=t.clone().set(e);o(i.byIndex(r.get(),n))}}}(e_,ex,ev,eN,eM,eC,s),eR=function(e){let{max:t,length:n}=e;return{get:function(e){return n?-((e-t)/n):0}}}(ek),eL=k(),eD=(R={},L=null,D=null,O=!1,{init:function(){I=new IntersectionObserver(e=>{O||(e.forEach(e=>{R[n.indexOf(e.target)]=e}),L=null,D=null,s.emit("slidesInView"))},{root:t.parentElement,threshold:K}),n.forEach(e=>I.observe(e))},destroy:function(){I&&I.disconnect(),O=!0},get:function(e=!0){if(e&&L)return L;if(!e&&D)return D;let t=y(R).reduce((t,n)=>{let r=parseInt(n),{isIntersecting:i}=R[r];return(e&&i||!e&&!i)&&t.push(r),t},[]);return e&&(L=t),e||(D=t),t}}),{slideRegistry:eO}=function(e,t,n,r,i,a){let s,{groupSlides:o}=i,{min:l,max:c}=r;return{slideRegistry:(s=o(a),1===n.length?[a]:e&&"keepSnaps"!==t?s.slice(l,c).map((e,t,n)=>{let r=t===m(n);return t?r?g(m(a)-f(n)[0]+1,f(n)[0]):e:g(f(n[0])+1)}):s)}}(eo,Y,eb,ey,ed,eE),eP=function(e,t,n,r,i,a,s,l){let u={passive:!0,capture:!0},h=0;function d(e){"Tab"===e.code&&(h=new Date().getTime())}return{init:function(p){l&&(a.add(document,"keydown",d,!1),t.forEach((t,d)=>{a.add(t,"focus",t=>{(c(l)||l(p,t))&&function(t){if(new Date().getTime()-h>10)return;s.emit("slideFocusStart"),e.scrollLeft=0;let a=n.findIndex(e=>e.includes(t));o(a)&&(i.useDuration(0),r.index(a,0),s.emit("slideFocus"))}(d)},u)}))}}}(e,n,eO,eI,eN,eL,s,J),eF={ownerDocument:r,ownerWindow:i,eventHandler:s,containerRect:et,slideRects:en,animation:e_,axis:er,dragHandler:function(e,t,n,r,i,a,s,o,l,u,p,f,m,g,y,v,E,_){let{cross:T,direction:A}=e,w=["INPUT","SELECT","TEXTAREA"],S={passive:!1},C=k(),N=k(),M=x(50,225).constrain(g.measure(20)),I={mouse:300,touch:400},R={mouse:500,touch:600},L=y?43:25,D=!1,O=0,P=0,F=!1,B=!1,H=!1,U=!1;function $(e){if(!b(e,r)&&e.touches.length>=2)return j(e);let t=a.readPoint(e),n=a.readPoint(e,T),s=h(t-O),l=h(n-P);if(!B&&!U&&(!e.cancelable||!(B=s>l)))return j(e);let c=a.pointerMove(e);s>v&&(H=!0),u.useFriction(.3).useDuration(.75),o.start(),i.add(A(c)),e.preventDefault()}function j(e){var t;let n,r,i=p.byDistance(0,!1).index!==f.get(),s=a.pointerUp(e)*(y?R:I)[U?"mouse":"touch"],o=(t=A(s),n=f.add(-1*d(t)),r=p.byDistance(t,!y).distance,y||h(t)<M?r:E&&i?.5*r:p.byIndex(n.get(),0).distance),c=function(e,t){var n,r;if(0===e||0===t||h(e)<=h(t))return 0;let i=(n=h(e),r=h(t),h(n-r));return h(i/e)}(s,o);B=!1,F=!1,N.clear(),u.useDuration(L-10*c).useFriction(.68+c/50),l.distance(o,!y),U=!1,m.emit("pointerUp")}function z(e){H&&(e.stopPropagation(),e.preventDefault(),H=!1)}return{init:function(e){_&&C.add(t,"dragstart",e=>e.preventDefault(),S).add(t,"touchmove",()=>void 0,S).add(t,"touchend",()=>void 0).add(t,"touchstart",o).add(t,"mousedown",o).add(t,"touchcancel",j).add(t,"contextmenu",j).add(t,"click",z,!0);function o(o){(c(_)||_(e,o))&&function(e){let o,l=b(e,r);if((U=l,H=y&&l&&!e.buttons&&D,D=h(i.get()-s.get())>=2,!l||0===e.button)&&(o=e.target.nodeName||"",!w.includes(o))){let r;F=!0,a.pointerDown(e),u.useFriction(0).useDuration(0),i.set(s),r=U?n:t,N.add(r,"touchmove",$,S).add(r,"touchend",j).add(r,"mousemove",$,S).add(r,"mouseup",j),O=a.readPoint(e),P=a.readPoint(e,T),m.emit("pointerDown")}}(o)}},destroy:function(){C.clear(),N.clear()},pointerDown:function(){return F}}}(er,e,r,i,eC,function(e,t){let n,r;function i(e){return e.timeStamp}function a(n,r){let i=r||e.scroll,a=`client${"x"===i?"X":"Y"}`;return(b(n,t)?n:n.touches[0])[a]}return{pointerDown:function(e){return n=e,r=e,a(e)},pointerMove:function(e){let t=a(e)-a(r),s=i(e)-i(n)>170;return r=e,s&&(n=e),t},pointerUp:function(e){if(!n||!r)return 0;let t=a(r)-a(n),s=i(e)-i(n),o=i(e)-i(r)>170,l=t/s;return s&&!o&&h(l)>.1?l:0},readPoint:a}}(er,i),eA,e_,eI,eN,eM,ex,s,ea,G,V,q,Z),eventStore:eL,percentOfView:ea,index:ex,indexPrevious:ev,limit:ek,location:eA,offsetLocation:eS,previousLocation:ew,options:a,resizeHandler:function(e,t,n,r,i,a,s){let o,l,u=[e].concat(r),d=[],p=!1;function f(e){return i.measureSize(s.measure(e))}return{init:function(i){a&&(l=f(e),d=r.map(f),o=new ResizeObserver(n=>{(c(a)||a(i,n))&&function(n){for(let a of n){if(p)return;let n=a.target===e,s=r.indexOf(a.target),o=n?l:d[s];if(h(f(n?e:r[s])-o)>=.5){i.reInit(),t.emit("resize");break}}}(n)}),n.requestAnimationFrame(()=>{u.forEach(e=>o.observe(e))}))},destroy:function(){p=!0,o&&o.disconnect()}}}(t,s,i,n,er,X,ee),scrollBody:eN,scrollBounds:function(e,t,n,r,i){let a=i.measure(10),s=i.measure(50),o=x(.1,.99),l=!1;function c(){return!l&&!!e.reachedAny(n.get())&&!!e.reachedAny(t.get())}return{shouldConstrain:c,constrain:function(i){if(!c())return;let l=e.reachedMin(t.get())?"min":"max",u=h(e[l]-t.get()),d=n.get()-t.get(),p=o.constrain(u/s);n.subtract(d*p),!i&&h(d)<a&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())},toggleActive:function(e){l=!e}}}(ek,eS,eC,eN,ea),scrollLooper:function(e,t,n,r){let{reachedMin:i,reachedMax:a}=x(t.min+.1,t.max+.1);return{loop:function(t){if(!(1===t?a(n.get()):-1===t&&i(n.get())))return;let s=-1*t*e;r.forEach(e=>e.add(s))}}}(em,ek,eS,[eA,eS,ew,eC]),scrollProgress:eR,scrollSnapList:eb.map(eR.get),scrollSnaps:eb,scrollTarget:eM,scrollTo:eI,slideLooper:function(e,t,n,r,i,a,s,o,l){let c=p(i),u=p(i).reverse(),h=m(f(u,s[0]),n,!1).concat(m(f(c,t-s[0]-1),-n,!0));function d(e,t){return e.reduce((e,t)=>e-i[t],t)}function f(e,t){return e.reduce((e,n)=>d(e,t)>0?e.concat([n]):e,[])}function m(i,s,c){let u=a.map((e,n)=>({start:e-r[n]+.5+s,end:e+t-.5+s}));return i.map(t=>{let r=c?0:-n,i=c?n:0,a=u[t][c?"end":"start"];return{index:t,loopPoint:a,slideLocation:v(-1),translate:E(e,l[t]),target:()=>o.get()>a?r:i}})}return{canLoop:function(){return h.every(({index:e})=>.1>=d(c.filter(t=>t!==e),t))},clear:function(){h.forEach(e=>e.translate.clear())},loop:function(){h.forEach(e=>{let{target:t,translate:n,slideLocation:r}=e,i=t();i!==r.get()&&(n.to(i),r.set(i))})},loopPoints:h}}(er,ei,em,el,ec,ep,eb,eS,n),slideFocus:eP,slidesHandler:(F=!1,{init:function(e){Q&&(P=new MutationObserver(t=>{!F&&(c(Q)||Q(e,t))&&function(t){for(let n of t)if("childList"===n.type){e.reInit(),s.emit("slidesChanged");break}}(t)})).observe(t,{childList:!0})},destroy:function(){P&&P.disconnect(),F=!0}}),slidesInView:eD,slideIndexes:eE,slideRegistry:eO,slidesToScroll:ed,target:eC,translate:E(er,t)};return eF}(e,w,S,N,M,n,D);return n.loop&&!r.slideLooper.canLoop()?t(Object.assign({},n,{loop:!1})):r}(z),F([j,...G.map(({options:e})=>e)]).forEach(e=>L.add(e,"change",K)),z.active&&(s.translate.to(s.location.get()),s.animation.init(),s.slidesInView.init(),s.slideFocus.init(X),s.eventHandler.init(X),s.resizeHandler.init(X),s.slidesHandler.init(X),s.options.loop&&s.slideLooper.loop(),w.offsetParent&&S.length&&s.dragHandler.init(X),A=R.init(X,G)))}function K(e,t){let n=Y();W(),V(O({startIndex:n},e),t),D.emit("reInit")}function W(){s.dragHandler.destroy(),s.eventStore.clear(),s.translate.clear(),s.slideLooper.clear(),s.resizeHandler.destroy(),s.slidesHandler.destroy(),s.slidesInView.destroy(),s.animation.destroy(),R.destroy(),L.clear()}function q(e,t,n){z.active&&!$&&(s.scrollBody.useBaseFriction().useDuration(!0===t?0:z.duration),s.scrollTo.index(e,n||0))}function Y(){return s.index.get()}let X={canScrollNext:function(){return s.index.add(1).get()!==Y()},canScrollPrev:function(){return s.index.add(-1).get()!==Y()},containerNode:function(){return w},internalEngine:function(){return s},destroy:function(){$||($=!0,L.clear(),W(),D.emit("destroy"),D.clear())},off:H,on:B,emit:U,plugins:function(){return A},previousScrollSnap:function(){return s.indexPrevious.get()},reInit:K,rootNode:function(){return e},scrollNext:function(e){q(s.index.add(1).get(),e,-1)},scrollPrev:function(e){q(s.index.add(-1).get(),e,1)},scrollProgress:function(){return s.scrollProgress.get(s.offsetLocation.get())},scrollSnapList:function(){return s.scrollSnapList},scrollTo:q,selectedScrollSnap:Y,slideNodes:function(){return S},slidesInView:function(){return s.slidesInView.get()},slidesNotInView:function(){return s.slidesInView.get(!1)}};return V(t,n),setTimeout(()=>D.emit("init"),0),X}function A(e={},t=[]){let n=(0,r.useRef)(e),i=(0,r.useRef)(t),[o,l]=(0,r.useState)(),[c,u]=(0,r.useState)(),h=(0,r.useCallback)(()=>{o&&o.reInit(n.current,i.current)},[o]);return(0,r.useEffect)(()=>{a(n.current,e)||(n.current=e,h())},[e,h]),(0,r.useEffect)(()=>{!function(e,t){if(e.length!==t.length)return!1;let n=s(e),r=s(t);return n.every((e,t)=>a(e,r[t]))}(i.current,t)&&(i.current=t,h())},[t,h]),(0,r.useEffect)(()=>{if("u">typeof window&&window.document&&window.document.createElement&&c){T.globalOptions=A.globalOptions;let e=T(c,n.current,i.current);return l(e),()=>e.destroy()}l(void 0)},[c,l]),[u,o]}T.globalOptions=void 0,A.globalOptions=void 0},45811:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]])},47057:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(12318),i=n(62623);let a={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(35!==e.charCodeAt(0))return;let t=e.match(a.re);if(!t)return;let n=t[1],i=parseInt(n,16),s=n.length,o=s%4==0,l=s>4,c=l?1:17,u=l?8:4,h=o?0:-1,d=l?255:15;return r.A.set({r:(i>>u*(h+3)&d)*c,g:(i>>u*(h+2)&d)*c,b:(i>>u*(h+1)&d)*c,a:o?(i&d)*c/255:1},e)},stringify:e=>{let{r:t,g:n,b:r,a}=e;return a<1?`#${i.Y[Math.round(t)]}${i.Y[Math.round(n)]}${i.Y[Math.round(r)]}${i.Y[Math.round(255*a)]}`:`#${i.Y[Math.round(t)]}${i.Y[Math.round(n)]}${i.Y[Math.round(r)]}`}};var s=n(47552);let o={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:e=>{let t=e.match(o.hueRe);if(t){let[,e,n]=t;switch(n){case"grad":return s.A.channel.clamp.h(.9*parseFloat(e));case"rad":return s.A.channel.clamp.h(180*parseFloat(e)/Math.PI);case"turn":return s.A.channel.clamp.h(360*parseFloat(e))}}return s.A.channel.clamp.h(parseFloat(e))},parse:e=>{let t=e.charCodeAt(0);if(104!==t&&72!==t)return;let n=e.match(o.re);if(!n)return;let[,i,a,l,c,u]=n;return r.A.set({h:o._hue2deg(i),s:s.A.channel.clamp.s(parseFloat(a)),l:s.A.channel.clamp.l(parseFloat(l)),a:c?s.A.channel.clamp.a(u?parseFloat(c)/100:parseFloat(c)):1},e)},stringify:e=>{let{h:t,s:n,l:r,a:i}=e;return i<1?`hsla(${s.A.lang.round(t)}, ${s.A.lang.round(n)}%, ${s.A.lang.round(r)}%, ${i})`:`hsl(${s.A.lang.round(t)}, ${s.A.lang.round(n)}%, ${s.A.lang.round(r)}%)`}},l={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:e=>{e=e.toLowerCase();let t=l.colors[e];if(t)return a.parse(t)},stringify:e=>{let t=a.stringify(e);for(let e in l.colors)if(l.colors[e]===t)return e}},c={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:e=>{let t=e.charCodeAt(0);if(114!==t&&82!==t)return;let n=e.match(c.re);if(!n)return;let[,i,a,o,l,u,h,d,p]=n;return r.A.set({r:s.A.channel.clamp.r(a?2.55*parseFloat(i):parseFloat(i)),g:s.A.channel.clamp.g(l?2.55*parseFloat(o):parseFloat(o)),b:s.A.channel.clamp.b(h?2.55*parseFloat(u):parseFloat(u)),a:d?s.A.channel.clamp.a(p?parseFloat(d)/100:parseFloat(d)):1},e)},stringify:e=>{let{r:t,g:n,b:r,a:i}=e;return i<1?`rgba(${s.A.lang.round(t)}, ${s.A.lang.round(n)}, ${s.A.lang.round(r)}, ${s.A.lang.round(i)})`:`rgb(${s.A.lang.round(t)}, ${s.A.lang.round(n)}, ${s.A.lang.round(r)})`}},u={format:{keyword:l,hex:a,rgb:c,rgba:c,hsl:o,hsla:o},parse:e=>{if("string"!=typeof e)return e;let t=a.parse(e)||c.parse(e)||o.parse(e)||l.parse(e);if(t)return t;throw Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(i.Z.HSL)||void 0===e.data.r?o.stringify(e):!(e.a<1)&&Number.isInteger(e.r)&&Number.isInteger(e.g)&&Number.isInteger(e.b)?a.stringify(e):c.stringify(e)}},47150:(e,t,n)=>{"use strict";n.d(t,{r:()=>o});var r=n(69266),i=n(69611),a=n(25905),s=n(7962);let o=r.forwardRef(function(e,t){let{render:n,className:o,style:l,...c}=e,[u,h]=r.useState(void 0),d=(0,i.o)("div",e,{ref:t,props:{role:"group","aria-labelledby":u,...c}});return(0,s.jsx)(a.c.Provider,{value:h,children:d})})},47252:(e,t,n)=>{"use strict";n.d(t,{p:()=>c});var r=n(69266),i=n(56906),a=n(69611),s=n(39341),o=n(47623),l=n(43745);let c=r.forwardRef(function(e,t){let{render:n,className:c,style:u,keepMounted:h=!1,...d}=e,p=(0,i.w)(),f=r.useRef(null),{transitionStatus:m,mounted:g,setMounted:y}=(0,o.$)(p.checked);(0,l.v)({open:p.checked,ref:f,onComplete(){p.checked||y(!1)}});let b={checked:p.checked,disabled:p.disabled,highlighted:p.highlighted,transitionStatus:m};return(0,a.o)("span",e,{state:b,stateAttributesMapping:s.a,ref:[t,f],props:{"aria-hidden":!0,...d},enabled:h||g})})},47508:(e,t,n)=>{"use strict";n.d(t,{H:()=>o,R:()=>s});var r=n(39410),i=n(12437),a={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},s={trace:(0,r.K)((...e)=>{},"trace"),debug:(0,r.K)((...e)=>{},"debug"),info:(0,r.K)((...e)=>{},"info"),warn:(0,r.K)((...e)=>{},"warn"),error:(0,r.K)((...e)=>{},"error"),fatal:(0,r.K)((...e)=>{},"fatal")},o=(0,r.K)(function(e="fatal"){let t=a.fatal;"string"==typeof e?e.toLowerCase()in a&&(t=a[e]):"number"==typeof e&&(t=e),s.trace=()=>{},s.debug=()=>{},s.info=()=>{},s.warn=()=>{},s.error=()=>{},s.fatal=()=>{},t<=a.fatal&&(s.fatal=console.error?console.error.bind(console,l("FATAL"),"color: orange"):console.log.bind(console,"\x1b[35m",l("FATAL"))),t<=a.error&&(s.error=console.error?console.error.bind(console,l("ERROR"),"color: orange"):console.log.bind(console,"\x1b[31m",l("ERROR"))),t<=a.warn&&(s.warn=console.warn?console.warn.bind(console,l("WARN"),"color: orange"):console.log.bind(console,"\x1b[33m",l("WARN"))),t<=a.info&&(s.info=console.info?console.info.bind(console,l("INFO"),"color: lightblue"):console.log.bind(console,"\x1b[34m",l("INFO"))),t<=a.debug&&(s.debug=console.debug?console.debug.bind(console,l("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",l("DEBUG"))),t<=a.trace&&(s.trace=console.debug?console.debug.bind(console,l("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",l("TRACE")))},"setLogLevel"),l=(0,r.K)(e=>{let t=i().format("ss.SSS");return`%c${t} : ${e} : `},"format")},47552:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});let r={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{let t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},hue2rgb:(e,t,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e,hsl2rgb:({h:e,s:t,l:n},i)=>{if(!t)return 2.55*n;e/=360,t/=100;let a=(n/=100)<.5?n*(1+t):n+t-n*t,s=2*n-a;switch(i){case"r":return 255*r.hue2rgb(s,a,e+1/3);case"g":return 255*r.hue2rgb(s,a,e);case"b":return 255*r.hue2rgb(s,a,e-1/3)}},rgb2hsl:({r:e,g:t,b:n},r)=>{let i=Math.max(e/=255,t/=255,n/=255),a=Math.min(e,t,n),s=(i+a)/2;if("l"===r)return 100*s;if(i===a)return 0;let o=i-a;if("s"===r)return 100*(s>.5?o/(2-i-a):o/(i+a));switch(i){case e:return((t-n)/o+6*(t<n))*60;case t:return((n-e)/o+2)*60;case n:return((e-t)/o+4)*60;default:return -1}}},i={channel:r,lang:{clamp:(e,t,n)=>t>n?Math.min(t,Math.max(n,e)):Math.min(n,Math.max(t,e)),round:e=>Math.round(1e10*e)/1e10},unit:{dec2hex:e=>{let t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}}}},47744:(e,t,n)=>{"use strict";n.d(t,{j:()=>E});var r=n(69266),i=n(53949),a=n(66758),s=n(36158),o=n(52333),l=n(12566),c=n(53402),u=n(27944),h=n(44596),d=n(15494),p=n(14738),f=n(63962),m=n(5733),g=n(8675);let y={...d.ol,instantType:e=>e.instantType,adaptiveOrigin:e=>e.adaptiveOrigin,closeDelay:e=>e.closeDelay};class b extends h.H{constructor(e,t,n){const i=new p.Z;super(function(e,t,n,r=!1){let i={...(0,d.rJ)(),instantType:void 0,adaptiveOrigin:void 0,closeDelay:g.V,...e};return i.floatingRootContext=(0,d.OB)(t,n,r),i}(e,i,t,n),function(e){return{popupRef:r.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:e,inlineRectCoordsRef:{current:void 0}}}(i),y)}setOpen=(e,t)=>{let{inlineRectCoordsRef:n}=this.context;(0,f.DU)(this,e,t,{onBeforeDispatch(){let r=t.event;e&&t.reason===u.N7&&t.trigger&&"clientX"in r&&"clientY"in r&&n.current?.element!==t.trigger&&(0,m.hI)(n,t.trigger,r.clientX,r.clientY)}})}}var k=n(7962);function x(e){let{open:t,defaultOpen:n=!1,onOpenChange:i,onOpenChangeComplete:s,actionsRef:o,handle:h,triggerId:d,defaultTriggerId:p=null,children:m}=e,g=(0,f.xp)((e,r)=>new b({open:n,openProp:t,activeTriggerId:p,triggerIdProp:d},e,r));g.useControlledProp("openProp",t),g.useControlledProp("triggerIdProp",d),g.useContextCallback("onOpenChange",i),g.useContextCallback("onOpenChangeComplete",s);let y=g.useState("open"),x=g.useState("activeTriggerId"),E=g.useState("mounted"),_=g.useState("payload");(0,f.tr)(g,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:T}=(0,f.l$)(y,g,()=>{g.context.inlineRectCoordsRef.current=void 0});(0,a.g)(()=>{y&&null==x&&g.set("payload",void 0)},[g,x,y]),r.useImperativeHandle(o,()=>({unmount:T,close:()=>g.setOpen(!1,(0,c.d)(u.zJ))}),[T,g]);let A=y||E;return(0,k.jsxs)(l.O.Provider,{value:g,children:[h&&(0,k.jsx)(f.Ae,{handle:h,store:g}),A&&(0,k.jsx)(v,{store:g}),"function"==typeof m?m({payload:_}):m]})}function v({store:e}){let t=e.useState("floatingRootContext"),n=(0,s.s)(t);return(0,f.i6)(e,{activeTriggerProps:n.reference,inactiveTriggerProps:n.trigger,popupProps:n.floating}),null}let E=(0,i.G1)(function(e){return(0,l.r)(!0)?(0,k.jsx)(x,{...e}):(0,k.jsx)(o.P6,{children:(0,k.jsx)(x,{...e})})})},48318:(e,t,n)=>{"use strict";n.d(t,{D:()=>B});var r=n(56227),i=n(24987);function a(e,t){let n=function(e,t){switch(e.nodeType){case 1:return function(e,t){let n=e.namespaceURI,a=n===i.t.svg?r.s:r.h,o=n===i.t.html?e.tagName.toLowerCase():e.tagName,l=n===i.t.html&&"template"===o?e.content:e,c=e.getAttributeNames(),u={},h=-1;for(;++h<c.length;)u[c[h]]=e.getAttribute(c[h])||"";return a(o,u,s(l,t))}(e,t);case 3:return{type:"text",value:e.nodeValue||""};case 8:return{type:"comment",value:e.nodeValue||""};case 9:case 11:return function(e,t){return{type:"root",children:s(e,t)}}(e,t);case 10:return{type:"doctype"};default:return}}(e,t);return n&&t.afterTransform&&t.afterTransform(e,n),n}function s(e,t){let n=e.childNodes,r=[],i=-1;for(;++i<n.length;){let e=a(n[i],t);void 0!==e&&r.push(e)}return r}let o=new DOMParser;var l=n(64587);let c=function(e,t,n){let r=(0,l.C)(n);if(!e||!e.type||!e.children)throw Error("Expected parent node");if("number"==typeof t){if(t<0||t===1/0)throw Error("Expected positive finite number as index")}else if((t=e.children.indexOf(t))<0)throw Error("Expected child node or index");for(;++t<e.children.length;)if(r(e.children[t],t,e))return e.children[t]},u=function(e){if(null==e)return d;if("string"==typeof e){var t;return t=e,h(function(e){return e.tagName===t})}if("object"==typeof e){var n=e;let t=[],r=-1;for(;++r<n.length;)t[r]=u(n[r]);return h(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}if("function"==typeof e)return h(e);throw Error("Expected function, string, or array as `test`")};function h(e){return function(t,n,r){var i;return!!(null!==(i=t)&&"object"==typeof i&&"type"in i&&"tagName"in i&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function d(e){return!!(e&&"object"==typeof e&&"type"in e&&"element"===e.type&&"tagName"in e&&"string"==typeof e.tagName)}let p=/\n/g,f=/[\t ]+/g,m=u("br"),g=u(function(e){return"td"===e.tagName||"th"===e.tagName}),y=u("p"),b=u("tr"),k=u(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",function(e){return!!(e.properties||{}).hidden},function(e){return"dialog"===e.tagName&&!(e.properties||{}).open}]),x=u(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function v(e,t){let n,r=String(e.value),i=[],a=[],s=0;for(;s<=r.length;){p.lastIndex=s;let e=p.exec(r),n=e&&"index"in e?e.index:r.length;i.push(function(e,t,n){let r,i=[],a=0;for(;a<e.length;){f.lastIndex=a;let n=f.exec(e);r=n?n.index:e.length,a||r||!n||t||i.push(""),a!==r&&i.push(e.slice(a,r)),a=n?r+n[0].length:r}return a===r||n||i.push(""),i.join(" ")}(r.slice(s,n).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),0!==s||t.breakBefore,n!==r.length||t.breakAfter)),s=n+1}let o=-1;for(;++o<i.length;)8203===i[o].charCodeAt(i[o].length-1)||o<i.length-1&&8203===i[o+1].charCodeAt(0)?(a.push(i[o]),n=void 0):i[o]?("number"==typeof n&&a.push(n),a.push(i[o]),n=0):(0===o||o===i.length-1)&&a.push(0);return a}function E(e,t){if("element"===e.type){let n=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}var _=n(17971),T=n(72034);let A={},w=[];function S(e){let t=e||A;return function(e,n){(0,T.VG)(e,"element",function(e,r){var i,s,l;let u,h,d=Array.isArray(e.properties.className)?e.properties.className:w,p=d.includes("language-math"),f=d.includes("math-display"),A=d.includes("math-inline"),S=f;if(!p&&!f&&!A)return;let C=r[r.length-1],N=e;if("code"===e.tagName&&p&&C&&"element"===C.type&&"pre"===C.tagName&&(N=C,C=r[r.length-2],S=!0),!C)return;let M=function(e,t){let n,r="children"in e?e.children:[],i=x(e),a=E(e,{whitespace:(t||{}).whitespace||"normal",breakBefore:!1,breakAfter:!1}),s=[];("text"===e.type||"comment"===e.type)&&s.push(...v(e,{whitespace:a,breakBefore:!0,breakAfter:!0}));let o=-1;for(;++o<r.length;)s.push(...function e(t,n,r){return"element"===t.type?function(t,n,r){let i,a,s=E(t,r),o=t.children||[],l=-1,u=[];if(k(t))return u;for(m(t)||b(t)&&c(n,t,b)?a="\n":y(t)?(i=2,a=2):x(t)&&(i=1,a=1);++l<o.length;)u=u.concat(e(o[l],t,{whitespace:s,breakBefore:l?void 0:i,breakAfter:l<o.length-1?m(o[l+1]):a}));return g(t)&&c(n,t,g)&&u.push(" "),i&&u.unshift(i),a&&u.push(a),u}(t,n,r):"text"===t.type?"normal"===r.whitespace?v(t,r):[String(t.value)]:[]}(r[o],e,{whitespace:a,breakBefore:o?void 0:i,breakAfter:o<r.length-1?m(r[o+1]):i}));let l=[];for(o=-1;++o<s.length;){let e=s[o];"number"==typeof e?void 0!==n&&e>n&&(n=e):e&&(void 0!==n&&n>-1&&l.push("\n".repeat(n)||" "),n=-1,l.push(e))}return l.join("")}(N,{whitespace:"pre"});try{h=_.default.renderToString(M,{...t,displayMode:S,throwOnError:!0})}catch(a){let i=a.name.toLowerCase();n.message("Could not render math with KaTeX",{ancestors:[...r,e],cause:a,place:e.position,ruleId:i,source:"rehype-katex"});try{h=_.default.renderToString(M,{...t,displayMode:S,strict:"ignore",throwOnError:!1})}catch{h=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(t.errorColor||"#cc0000"),title:String(a)},children:[{type:"text",value:M}]}]}}"string"==typeof h&&(h=(i=h,s={fragment:!0},a(s?.fragment?(l=i,(u=document.createElement("template")).innerHTML=l,u.content):o.parseFromString(i,"text/html"),{})||{type:"root",children:[]}).children);let I=C.children.indexOf(N);return C.children.splice(I,1,...h),T._Z})}}var C=n(94703),N=n(13332),M=n(66623),I=n(1052);let R={tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,s=0;return function(t){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),function t(r){return 36===r?(e.consume(r),s++,t):s<2?n(r):(e.exit("mathFlowFenceSequence"),(0,M.N)(e,o,"whitespace")(r))}(t)};function o(t){return null===t||(0,I.HP)(t)?l(t):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(r){return null===r||(0,I.HP)(r)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),l(r)):36===r?n(r):(e.consume(r),t)}(t))}function l(n){return(e.exit("mathFlowFence"),r.interrupt)?t(n):e.attempt(L,c,d)(n)}function c(t){return e.attempt({tokenize:p,partial:!0},d,u)(t)}function u(t){return(a?(0,M.N)(e,h,"linePrefix",a+1):h)(t)}function h(t){return null===t?d(t):(0,I.HP)(t)?e.attempt(L,c,d)(t):(e.enter("mathFlowValue"),function t(n){return null===n||(0,I.HP)(n)?(e.exit("mathFlowValue"),h(n)):(e.consume(n),t)}(t))}function d(n){return e.exit("mathFlow"),t(n)}function p(e,t,n){let i=0;return(0,M.N)(e,function(t){return e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),function t(r){return 36===r?(i++,e.consume(r),t):i<s?n(r):(e.exit("mathFlowFenceSequence"),(0,M.N)(e,a,"whitespace")(r))}(t)},"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function a(r){return null===r||(0,I.HP)(r)?(e.exit("mathFlowFence"),t(r)):n(r)}}},concrete:!0,name:"mathFlow"},L={tokenize:function(e,t,n){let r=this;return function(n){return null===n?t(n):(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0};function D(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t<r;)if("mathTextData"===e[t][1].type){e[r][1].type="mathTextPadding",e[i][1].type="mathTextPadding",i+=2,r-=2;break}}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="mathTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e}function O(e){return 36!==e||"characterEscape"===this.events[this.events.length-1][1].type}let P={};function F(e){let t,n=e||P,r=this.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push({flow:{36:R},text:{36:(null==(t=(n||{}).singleDollarTextMath)&&(t=!0),{tokenize:function(e,n,r){let i,a,s=0;return function(n){return e.enter("mathText"),e.enter("mathTextSequence"),function n(i){return 36===i?(e.consume(i),s++,n):s<2&&!t?r(i):(e.exit("mathTextSequence"),o(i))}(n)};function o(t){return null===t?r(t):36===t?(a=e.enter("mathTextSequence"),i=0,function t(r){return 36===r?(e.consume(r),i++,t):i===s?(e.exit("mathTextSequence"),e.exit("mathText"),n(r)):(a.type="mathTextData",l(r))}(t)):32===t?(e.enter("space"),e.consume(t),e.exit("space"),o):(0,I.HP)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):(e.enter("mathTextData"),l(t))}function l(t){return null===t||32===t||36===t||(0,I.HP)(t)?(e.exit("mathTextData"),o(t)):(e.consume(t),l)}},resolve:D,previous:O,name:"mathText"})}}),a.push(function(){return{enter:{mathFlow:function(e){this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[{type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]}]}},e)},mathFlowFenceMeta:function(){this.buffer()},mathText:function(e){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},e),this.buffer()}},exit:{mathFlow:function(e){let t=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),n=this.stack[this.stack.length-1];(0,C.ok)("math"===n.type),this.exit(e),n.value=t;let r=n.data.hChildren[0];(0,C.ok)("element"===r.type),(0,C.ok)("code"===r.tagName),r.children.push({type:"text",value:t}),this.data.mathFlowInside=void 0},mathFlowFence:function(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)},mathFlowFenceMeta:function(){let e=this.resume(),t=this.stack[this.stack.length-1];(0,C.ok)("math"===t.type),t.meta=e},mathFlowValue:e,mathText:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];(0,C.ok)("inlineMath"===n.type),this.exit(e),n.value=t,n.data.hChildren.push({type:"text",value:t})},mathTextData:e}};function e(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}}()),s.push(function(e){let t=(e||{}).singleDollarTextMath;return null==t&&(t=!0),n.peek=function(){return"$"},{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:"\n",inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:function(e,t,n,r){let i=e.value||"",a=n.createTracker(r),s="$".repeat(Math.max((0,N.D)(i,"$")+1,2)),o=n.enter("mathFlow"),l=a.move(s);if(e.meta){let t=n.enter("mathFlowMeta");l+=a.move(n.safe(e.meta,{after:"\n",before:l,encode:["$"],...a.current()})),t()}return l+=a.move("\n"),i&&(l+=a.move(i+"\n")),l+=a.move(s),o(),l},inlineMath:n}};function n(e,n,r){let i=e.value||"",a=1;for(!t&&a++;RegExp("(^|[^$])"+"\\$".repeat(a)+"([^$]|$)").test(i);)a++;let s="$".repeat(a);/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^\$|\$$/.test(i))&&(i=" "+i+" ");let o=-1;for(;++o<r.unsafe.length;){let e,t=r.unsafe[o];if(!t.atBreak)continue;let n=r.compilePattern(t);for(;e=n.exec(i);){let t=e.index;10===i.codePointAt(t)&&13===i.codePointAt(t-1)&&t--,i=i.slice(0,t)+" "+i.slice(e.index+1)}}return s+i+s}}(n))}var B=function(e={}){var t,n;return{name:"katex",type:"math",remarkPlugin:[F,{singleDollarTextMath:null!=(t=e.singleDollarTextMath)&&t}],rehypePlugin:[S,{errorColor:null!=(n=e.errorColor)?n:"var(--color-muted-foreground)"}],getStyles:()=>"katex/dist/katex.min.css"}}()},48495:(e,t,n)=>{"use strict";n.d(t,{Fr:()=>u,GX:()=>c,KX:()=>l,WW:()=>s,ue:()=>a});var r=n(89316),i=n(39410),a=(0,i.K)(e=>{let{handDrawnSeed:t}=(0,r.D7)();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:t}},"solidStateFill"),s=(0,i.K)(e=>{let t=o([...e.cssCompiledStyles||[],...e.cssStyles||[],...e.labelStyle||[]]);return{stylesMap:t,stylesArray:[...t]}},"compileStyles"),o=(0,i.K)(e=>{let t=new Map;return e.forEach(e=>{let[n,r]=e.split(":");t.set(n.trim(),r?.trim())}),t},"styles2Map"),l=(0,i.K)(e=>"color"===e||"font-size"===e||"font-family"===e||"font-weight"===e||"font-style"===e||"text-decoration"===e||"text-align"===e||"text-transform"===e||"line-height"===e||"letter-spacing"===e||"word-spacing"===e||"text-shadow"===e||"text-overflow"===e||"white-space"===e||"word-wrap"===e||"word-break"===e||"overflow-wrap"===e||"hyphens"===e,"isLabelStyle"),c=(0,i.K)(e=>{let{stylesArray:t}=s(e),n=[],r=[],i=[],a=[];return t.forEach(e=>{let t=e[0];l(t)?n.push(e.join(":")+" !important"):(r.push(e.join(":")+" !important"),t.includes("stroke")&&i.push(e.join(":")+" !important"),"fill"===t&&a.push(e.join(":")+" !important"))}),{labelStyles:n.join(";"),nodeStyles:r.join(";"),stylesArray:t,borderStyles:i,backgroundStyles:a}},"styles2String"),u=(0,i.K)((e,t)=>{let{themeVariables:n,handDrawnSeed:i}=(0,r.D7)(),{nodeBorder:a,mainBkg:o}=n,{stylesMap:l}=s(e);return Object.assign({roughness:.7,fill:l.get("fill")||o,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:l.get("stroke")||a,seed:i,strokeWidth:l.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0],strokeLineDash:h(l.get("stroke-dasharray"))},t)},"userNodeOverrides"),h=(0,i.K)(e=>{if(!e)return[0,0];let t=e.trim().split(/\s+/).map(Number);if(1===t.length){let e=isNaN(t[0])?0:t[0];return[e,e]}return[isNaN(t[0])?0:t[0],isNaN(t[1])?0:t[1]]},"getStrokeDashArray")},48742:(e,t,n)=>{"use strict";n.d(t,{P:()=>u});var r=n(69266),i=n(33705),a=n(69611),s=n(8581),o=n(43745),l=n(47623),c=n(97591);let u=r.forwardRef(function(e,t){let{render:n,className:u,style:h,keepMounted:d=!1,...p}=e,f=(0,i.W)(),m=f.checked||f.indeterminate,{mounted:g,transitionStatus:y,setMounted:b}=(0,l.$)(m),k=r.useRef(null),x={...f,transitionStatus:y};(0,o.v)({open:m,ref:k,onComplete(){m||b(!1)}});let v={...(0,s.G)(f),...c.G},E=(0,a.o)("span",e,{ref:[t,k],state:x,stateAttributesMapping:v,props:p});return d||g?E:null})},49343:(e,t,n)=>{"use strict";n.d(t,{D:()=>s});var r=n(89316),i=n(39410),a=n(86594),s=(0,i.K)(e=>{let{securityLevel:t}=(0,r.D7)(),n=(0,a.Ltv)("body");if("sandbox"===t){let t=(0,a.Ltv)(`#i${e}`),r=t.node()?.contentDocument??document;n=(0,a.Ltv)(r.body)}return n.select(`#${e}`)},"selectSvgElement")},50163:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("circle-minus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]])},52871:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]])},54346:(e,t,n)=>{"use strict";n.d(t,{JR:()=>_,_G:()=>u,be:()=>s,gB:()=>p,gl:()=>x});var r=n(69266),i=n(43209),a=n(31217);function s(e,t,n){let r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function o(e){return null!==e&&e>=0}let l=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e,a=s(t,r,n),o=t[i],l=a[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},c={scaleX:1,scaleY:1},u=e=>{var t,n,r,i;let a,s,o,{activeIndex:l,activeNodeRect:u,index:h,rects:d,overIndex:p}=e,f=null!=(t=d[l])?t:u;if(!f)return null;if(h===l){let e=d[p];return e?{x:0,y:l<p?e.top+e.height-(f.top+f.height):e.top-f.top,...c}:null}let m=(n=d,r=h,i=l,a=n[r],s=n[r-1],o=n[r+1],a?i<r?s?a.top-(s.top+s.height):o?o.top-(a.top+a.height):0:o?o.top-(a.top+a.height):s?a.top-(s.top+s.height):0:0);return h>l&&h<=p?{x:0,y:-f.height-m,...c}:h<l&&h>=p?{x:0,y:f.height+m,...c}:{x:0,y:0,...c}},h="Sortable",d=r.createContext({activeIndex:-1,containerId:h,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:l,disabled:{draggable:!1,droppable:!1}});function p(e){let{children:t,id:n,items:s,strategy:o=l,disabled:c=!1}=e,{active:u,dragOverlay:p,droppableRects:f,over:m,measureDroppableContainers:g}=(0,i.fF)(),y=(0,a.YG)(h,n),b=null!==p.rect,k=(0,r.useMemo)(()=>s.map(e=>"object"==typeof e&&"id"in e?e.id:e),[s]),x=null!=u,v=u?k.indexOf(u.id):-1,E=m?k.indexOf(m.id):-1,_=(0,r.useRef)(k),T=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(k,_.current),A=-1!==E&&-1===v||T,w="boolean"==typeof c?{draggable:c,droppable:c}:c;(0,a.Es)(()=>{T&&x&&g(k)},[T,k,x,g]),(0,r.useEffect)(()=>{_.current=k},[k]);let S=(0,r.useMemo)(()=>({activeIndex:v,containerId:y,disabled:w,disableTransforms:A,items:k,overIndex:E,useDragOverlay:b,sortedRects:k.reduce((e,t,n)=>{let r=f.get(t);return r&&(e[n]=r),e},Array(k.length)),strategy:o}),[v,y,w.draggable,w.droppable,A,k,E,f,b,o]);return r.createElement(d.Provider,{value:S},t)}let f=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return s(n,r,i).indexOf(t)},m=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:a,newIndex:s,previousItems:o,previousContainerId:l,transition:c}=e;return!!c&&!!r&&(o===a||i!==s)&&(!!n||s!==i&&t===l)},g={duration:200,easing:"ease"},y="transform",b=a.Ks.Transition.toString({property:y,duration:0,easing:"linear"}),k={roleDescription:"sortable"};function x(e){var t,n,s,l;let{animateLayoutChanges:c=m,attributes:u,disabled:h,data:p,getNewIndex:x=f,id:v,strategy:E,resizeObserverConfig:_,transition:T=g}=e,{items:A,containerId:w,activeIndex:S,disabled:C,disableTransforms:N,sortedRects:M,overIndex:I,useDragOverlay:R,strategy:L}=(0,r.useContext)(d),D=(t=h,n=C,"boolean"==typeof t?{draggable:t,droppable:!1}:{draggable:null!=(s=null==t?void 0:t.draggable)?s:n.draggable,droppable:null!=(l=null==t?void 0:t.droppable)?l:n.droppable}),O=A.indexOf(v),P=(0,r.useMemo)(()=>({sortable:{containerId:w,index:O,items:A},...p}),[w,p,O,A]),F=(0,r.useMemo)(()=>A.slice(A.indexOf(v)),[A,v]),{rect:B,node:H,isOver:U,setNodeRef:$}=(0,i.zM)({id:v,data:P,disabled:D.droppable,resizeObserverConfig:{updateMeasurementsFor:F,..._}}),{active:j,activatorEvent:z,activeNodeRect:G,attributes:V,setNodeRef:K,listeners:W,isDragging:q,over:Y,setActivatorNodeRef:X,transform:Q}=(0,i.PM)({id:v,data:P,attributes:{...k,...u},disabled:D.draggable}),Z=(0,a.jn)($,K),J=!!j,ee=J&&!N&&o(S)&&o(I),et=!R&&q,en=et&&ee?Q:null,er=ee?null!=en?en:(null!=E?E:L)({rects:M,activeNodeRect:G,activeIndex:S,overIndex:I,index:O}):null,ei=o(S)&&o(I)?x({id:v,items:A,activeIndex:S,overIndex:I}):O,ea=null==j?void 0:j.id,es=(0,r.useRef)({activeId:ea,items:A,newIndex:ei,containerId:w}),eo=A!==es.current.items,el=c({active:j,containerId:w,isDragging:q,isSorting:J,id:v,index:O,items:A,newIndex:es.current.newIndex,previousItems:es.current.items,previousContainerId:es.current.containerId,transition:T,wasDragging:null!=es.current.activeId}),ec=function(e){let{disabled:t,index:n,node:s,rect:o}=e,[l,c]=(0,r.useState)(null),u=(0,r.useRef)(n);return(0,a.Es)(()=>{if(!t&&n!==u.current&&s.current){let e=o.current;if(e){let t=(0,i.Sj)(s.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&c(n)}}n!==u.current&&(u.current=n)},[t,n,s,o]),(0,r.useEffect)(()=>{l&&c(null)},[l]),l}({disabled:!el,index:O,node:H,rect:B});return(0,r.useEffect)(()=>{J&&es.current.newIndex!==ei&&(es.current.newIndex=ei),w!==es.current.containerId&&(es.current.containerId=w),A!==es.current.items&&(es.current.items=A)},[J,ei,w,A]),(0,r.useEffect)(()=>{if(ea===es.current.activeId)return;if(null!=ea&&null==es.current.activeId){es.current.activeId=ea;return}let e=setTimeout(()=>{es.current.activeId=ea},50);return()=>clearTimeout(e)},[ea]),{active:j,activeIndex:S,attributes:V,data:P,rect:B,index:O,newIndex:ei,items:A,isOver:U,isSorting:J,isDragging:q,listeners:W,node:H,overIndex:I,over:Y,setNodeRef:Z,setActivatorNodeRef:X,setDroppableNodeRef:$,setDraggableNodeRef:K,transform:null!=ec?ec:er,transition:ec||eo&&es.current.newIndex===O?b:(!et||(0,a.kx)(z))&&T&&(J||el)?a.Ks.Transition.toString({...T,property:y}):void 0}}function v(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],_=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:s,droppableContainers:o,over:l,scrollableAncestors:c}}=t;if(E.includes(e.code)){if(e.preventDefault(),!n||!r)return;let t=[];o.getEnabled().forEach(n=>{if(!n||null!=n&&n.disabled)return;let a=s.get(n.id);if(a)switch(e.code){case i.vL.Down:r.top<a.top&&t.push(n);break;case i.vL.Up:r.top>a.top&&t.push(n);break;case i.vL.Left:r.left>a.left&&t.push(n);break;case i.vL.Right:r.left<a.left&&t.push(n)}});let d=(0,i.y$)({active:n,collisionRect:r,droppableRects:s,droppableContainers:t,pointerCoordinates:null}),p=(0,i.Vy)(d,"id");if(p===(null==l?void 0:l.id)&&d.length>1&&(p=d[1].id),null!=p){let e=o.get(n.id),t=o.get(p),l=t?s.get(t.id):null,d=null==t?void 0:t.node.current;if(d&&l&&e&&t){var u,h;let n=(0,i.sl)(d).some((e,t)=>c[t]!==e),s=T(e,t),o=(u=e,h=t,!!v(u)&&!!v(h)&&!!T(u,h)&&u.data.current.sortable.index<h.data.current.sortable.index),p=n||!s?{x:0,y:0}:{x:o?r.width-l.width:0,y:o?r.height-l.height:0},f={x:l.left,y:l.top};return p.x&&p.y?f:(0,a.Re)(f,p)}}}};function T(e,t){return!!v(e)&&!!v(t)&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}},54359:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},54667:(e,t,n)=>{"use strict";n.d(t,{m:()=>i});let r=/[ \t\n\f\r]/g;function i(e){return"object"==typeof e?"text"===e.type&&a(e.value):a(e)}function a(e){return""===e.replace(r,"")}},54751:(e,t,n)=>{"use strict";n.d(t,{P:()=>r});let r={...n(54967).dc,checked:e=>e?{"data-checked":""}:{"data-unchecked":""}}},55263:(e,t,n)=>{"use strict";n.d(t,{Q:()=>r});let r=(0,n(69266).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},55289:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("grip-vertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]])},55531:(e,t,n)=>{"use strict";n.d(t,{XX:()=>d,q7:()=>p,sO:()=>h});var r=n(71627),i=n(50789),a=n(4196),s=n(89316),o=n(47508),l=n(39410),c={common:s.Y2,getConfig:s.zj,insertCluster:i.U,insertEdge:r.Jo,insertEdgeLabel:r.jP,insertMarkers:r.g0,insertNode:i.on,interpolateToCurve:a.Ib,labelHelper:i.Zk,log:o.R,positionEdgeLabel:r.T_},u={},h=(0,l.K)(e=>{for(let t of e)u[t.name]=t},"registerLayoutLoaders");(0,l.K)(()=>{h([{name:"dagre",loader:(0,l.K)(async()=>await Promise.all([n.e(17817),n.e(41487),n.e(3376),n.e(4837)]).then(n.bind(n,4837)),"loader")},{name:"swimlane",loader:(0,l.K)(async()=>await Promise.all([n.e(76705),n.e(17817),n.e(41487),n.e(86093)]).then(n.bind(n,38178)),"loader")},{name:"cose-bilkent",loader:(0,l.K)(async()=>await Promise.all([n.e(57634),n.e(24725)]).then(n.bind(n,24725)),"loader")}])},"registerDefaultLayoutLoaders")();var d=(0,l.K)(async(e,t,n)=>{if(!(e.layoutAlgorithm in u))throw Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(let t of e.nodes){let n=t.domId||t.id;t.domId=`${e.diagramId}-${n}`}let r=u[e.layoutAlgorithm],i=await r.loader(),{theme:a,themeVariables:s}=e.config,{useGradient:o,gradientStart:l,gradientStop:h}=s,d=t.attr("id");if(t.append("defs").append("filter").attr("id",`${d}-drop-shadow`).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${a?.includes("dark")?"#FFFFFF":"#000000"}`),t.append("defs").append("filter").attr("id",`${d}-drop-shadow-small`).attr("height","150%").attr("width","150%").append("feDropShadow").attr("dx","2").attr("dy","2").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${a?.includes("dark")?"#FFFFFF":"#000000"}`),o){let e=t.append("linearGradient").attr("id",t.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");e.append("svg:stop").attr("offset","0%").attr("stop-color",l).attr("stop-opacity",1),e.append("svg:stop").attr("offset","100%").attr("stop-color",h).attr("stop-opacity",1)}return i.render(e,t,c,{algorithm:r.algorithm},n)},"render"),p=(0,l.K)((e="",{fallback:t="dagre"}={})=>{if(e in u)return e;if(t in u)return o.R.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw Error(`Both layout algorithms ${e} and ${t} are not registered.`)},"getRegisteredLayoutAlgorithm")},55947:(e,t,n)=>{"use strict";n.d(t,{qy:()=>y,JW:()=>b});class r{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function i(e,t){let n={},i={};for(let t of e)Object.assign(n,t.property),Object.assign(i,t.normal);return new r(n,i,t)}r.prototype.normal={},r.prototype.property={},r.prototype.space=void 0;var a=n(29198),s=n(25488);function o(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let o=new s.E(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[(0,a.S)(r)]=r,n[(0,a.S)(o.attribute)]=r}return new r(t,n,e.space)}var l=n(58789);let c=o({properties:{ariaActiveDescendant:null,ariaAtomic:l.booleanish,ariaAutoComplete:null,ariaBusy:l.booleanish,ariaChecked:l.booleanish,ariaColCount:l.number,ariaColIndex:l.number,ariaColSpan:l.number,ariaControls:l.spaceSeparated,ariaCurrent:null,ariaDescribedBy:l.spaceSeparated,ariaDetails:null,ariaDisabled:l.booleanish,ariaDropEffect:l.spaceSeparated,ariaErrorMessage:null,ariaExpanded:l.booleanish,ariaFlowTo:l.spaceSeparated,ariaGrabbed:l.booleanish,ariaHasPopup:null,ariaHidden:l.booleanish,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:l.spaceSeparated,ariaLevel:l.number,ariaLive:null,ariaModal:l.booleanish,ariaMultiLine:l.booleanish,ariaMultiSelectable:l.booleanish,ariaOrientation:null,ariaOwns:l.spaceSeparated,ariaPlaceholder:null,ariaPosInSet:l.number,ariaPressed:l.booleanish,ariaReadOnly:l.booleanish,ariaRelevant:null,ariaRequired:l.booleanish,ariaRoleDescription:l.spaceSeparated,ariaRowCount:l.number,ariaRowIndex:l.number,ariaRowSpan:l.number,ariaSelected:l.booleanish,ariaSetSize:l.number,ariaSort:null,ariaValueMax:l.number,ariaValueMin:l.number,ariaValueNow:l.number,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function u(e,t){return t in e?e[t]:t}function h(e,t){return u(e,t.toLowerCase())}let d=o({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:l.commaSeparated,acceptCharset:l.spaceSeparated,accessKey:l.spaceSeparated,action:null,allow:null,allowFullScreen:l.boolean,allowPaymentRequest:l.boolean,allowUserMedia:l.boolean,alpha:l.boolean,alt:null,as:null,async:l.boolean,autoCapitalize:null,autoComplete:l.spaceSeparated,autoFocus:l.boolean,autoPlay:l.boolean,blocking:l.spaceSeparated,capture:null,charSet:null,checked:l.boolean,cite:null,className:l.spaceSeparated,closedBy:null,colorSpace:null,cols:l.number,colSpan:l.number,command:null,commandFor:null,content:null,contentEditable:l.booleanish,controls:l.boolean,controlsList:l.spaceSeparated,coords:l.number|l.commaSeparated,crossOrigin:null,data:null,dateTime:null,decoding:null,default:l.boolean,defer:l.boolean,dir:null,dirName:null,disabled:l.boolean,download:l.overloadedBoolean,draggable:l.booleanish,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:l.boolean,formTarget:null,headers:l.spaceSeparated,height:l.number,hidden:l.overloadedBoolean,high:l.number,href:null,hrefLang:null,htmlFor:l.spaceSeparated,httpEquiv:l.spaceSeparated,id:null,imageSizes:null,imageSrcSet:null,inert:l.boolean,inputMode:null,integrity:null,is:null,isMap:l.boolean,itemId:null,itemProp:l.spaceSeparated,itemRef:l.spaceSeparated,itemScope:l.boolean,itemType:l.spaceSeparated,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:l.boolean,low:l.number,manifest:null,max:null,maxLength:l.number,media:null,method:null,min:null,minLength:l.number,multiple:l.boolean,muted:l.boolean,name:null,nonce:null,noModule:l.boolean,noValidate:l.boolean,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:l.boolean,optimum:l.number,pattern:null,ping:l.spaceSeparated,placeholder:null,playsInline:l.boolean,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:l.boolean,referrerPolicy:null,rel:l.spaceSeparated,required:l.boolean,reversed:l.boolean,rows:l.number,rowSpan:l.number,sandbox:l.spaceSeparated,scope:null,scoped:l.boolean,seamless:l.boolean,selected:l.boolean,shadowRootClonable:l.boolean,shadowRootCustomElementRegistry:l.boolean,shadowRootDelegatesFocus:l.boolean,shadowRootMode:null,shadowRootSerializable:l.boolean,shape:null,size:l.number,sizes:null,slot:null,span:l.number,spellCheck:l.booleanish,src:null,srcDoc:null,srcLang:null,srcSet:null,start:l.number,step:null,style:null,tabIndex:l.number,target:null,title:null,translate:null,type:null,typeMustMatch:l.boolean,useMap:null,value:l.booleanish,width:l.number,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:l.spaceSeparated,axis:null,background:null,bgColor:null,border:l.number,borderColor:null,bottomMargin:l.number,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:l.boolean,declare:l.boolean,event:null,face:null,frame:null,frameBorder:null,hSpace:l.number,leftMargin:l.number,link:null,longDesc:null,lowSrc:null,marginHeight:l.number,marginWidth:l.number,noResize:l.boolean,noHref:l.boolean,noShade:l.boolean,noWrap:l.boolean,object:null,profile:null,prompt:null,rev:null,rightMargin:l.number,rules:null,scheme:null,scrolling:l.booleanish,standby:null,summary:null,text:null,topMargin:l.number,valueType:null,version:null,vAlign:null,vLink:null,vSpace:l.number,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:l.boolean,disablePictureInPicture:l.boolean,disableRemotePlayback:l.boolean,exportParts:l.commaSeparated,part:l.spaceSeparated,prefix:null,property:null,results:l.number,security:null,unselectable:null},space:"html",transform:h}),p=o({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:l.commaOrSpaceSeparated,accentHeight:l.number,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:l.number,amplitude:l.number,arabicForm:null,ascent:l.number,attributeName:null,attributeType:null,azimuth:l.number,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:l.number,by:null,calcMode:null,capHeight:l.number,className:l.spaceSeparated,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:l.number,diffuseConstant:l.number,direction:null,display:null,dur:null,divisor:l.number,dominantBaseline:null,download:l.boolean,dx:null,dy:null,edgeMode:null,editable:null,elevation:l.number,enableBackground:null,end:null,event:null,exponent:l.number,externalResourcesRequired:null,fill:null,fillOpacity:l.number,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:l.commaSeparated,g2:l.commaSeparated,glyphName:l.commaSeparated,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:l.number,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:l.number,horizOriginX:l.number,horizOriginY:l.number,id:null,ideographic:l.number,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:l.number,k:l.number,k1:l.number,k2:l.number,k3:l.number,k4:l.number,kernelMatrix:l.commaOrSpaceSeparated,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:l.number,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:l.number,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:l.number,overlineThickness:l.number,paintOrder:null,panose1:null,path:null,pathLength:l.number,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:l.spaceSeparated,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:l.number,pointsAtY:l.number,pointsAtZ:l.number,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:l.commaOrSpaceSeparated,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:l.commaOrSpaceSeparated,rev:l.commaOrSpaceSeparated,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:l.commaOrSpaceSeparated,requiredFeatures:l.commaOrSpaceSeparated,requiredFonts:l.commaOrSpaceSeparated,requiredFormats:l.commaOrSpaceSeparated,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:l.number,specularExponent:l.number,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:l.number,strikethroughThickness:l.number,string:null,stroke:null,strokeDashArray:l.commaOrSpaceSeparated,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:l.number,strokeOpacity:l.number,strokeWidth:null,style:null,surfaceScale:l.number,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:l.commaOrSpaceSeparated,tabIndex:l.number,tableValues:null,target:null,targetX:l.number,targetY:l.number,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:l.commaOrSpaceSeparated,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:l.number,underlineThickness:l.number,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:l.number,values:null,vAlphabetic:l.number,vMathematical:l.number,vectorEffect:null,vHanging:l.number,vIdeographic:l.number,version:null,vertAdvY:l.number,vertOriginX:l.number,vertOriginY:l.number,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:l.number,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:u}),f=o({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),m=o({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:h}),g=o({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),y=i([c,d,f,m,g],"html"),b=i([c,p,f,m,g],"svg")},56227:(e,t,n)=>{"use strict";n.d(t,{h:()=>h,s:()=>d});var r=n(55947),i=n(38105);let a=/[#.]/g;var s=n(64752),o=n(29198),l=n(13766);function c(e,t,n){let r=n?function(e){let t=new Map;for(let n of e)t.set(n.toLowerCase(),n);return t}(n):void 0;return function(n,o,...c){let h;if(null==n)h={type:"root",children:[]},c.unshift(o);else{let d=(h=function(e,t){let n,r,i=e||"",s={},o=0;for(;o<i.length;){a.lastIndex=o;let e=a.exec(i),t=i.slice(o,e?e.index:i.length);t&&(n?"#"===n?s.id=t:Array.isArray(s.className)?s.className.push(t):s.className=[t]:r=t,o+=t.length),e&&(n=e[0],o++)}return{type:"element",tagName:r||t||"div",properties:s,children:[]}}(n,t)).tagName.toLowerCase(),p=r?r.get(d):void 0;if(h.tagName=p||d,function(e){if(null===e||"object"!=typeof e||Array.isArray(e))return!0;if("string"!=typeof e.type)return!1;for(let t of Object.keys(e)){let n=e[t];if(n&&"object"==typeof n){if(!Array.isArray(n))return!0;for(let e of n)if("number"!=typeof e&&"string"!=typeof e)return!0}}return!!("children"in e&&Array.isArray(e.children))}(o))c.unshift(o);else for(let[t,n]of Object.entries(o))!function(e,t,n,r){let a,o=(0,s.I)(e,n);if(null!=r){if("number"==typeof r){if(Number.isNaN(r))return;a=r}else a="boolean"==typeof r?r:"string"==typeof r?o.spaceSeparated?(0,l.q)(r):o.commaSeparated?(0,i.q)(r):o.commaOrSpaceSeparated?(0,l.q)((0,i.q)(r).join(" ")):u(o,o.property,r):Array.isArray(r)?[...r]:"style"===o.property?function(e){let t=[];for(let[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}(r):String(r);if(Array.isArray(a)){let e=[];for(let t of a)e.push(u(o,o.property,t));a=e}"className"===o.property&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[o.property]=a}}(e,h.properties,t,n)}for(let e of c)!function e(t,n){if(null==n);else if("number"==typeof n||"string"==typeof n)t.push({type:"text",value:String(n)});else if(Array.isArray(n))for(let r of n)e(t,r);else if("object"==typeof n&&"type"in n)"root"===n.type?e(t,n.children):t.push(n);else throw Error("Expected node, nodes, or string, got `"+n+"`")}(h.children,e);return"element"===h.type&&"template"===h.tagName&&(h.content={type:"root",children:h.children},h.children=[]),h}}function u(e,t,n){if("string"==typeof n){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(""===n||(0,o.S)(n)===(0,o.S)(t)))return!0}return n}let h=c(r.qy,"div"),d=c(r.JW,"g",["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","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","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"])},56906:(e,t,n)=>{"use strict";n.d(t,{l:()=>a,w:()=>s});var r=n(80417),i=n(69266);let a=i.createContext(void 0);function s(){let e=i.useContext(a);if(void 0===e)throw Error((0,r.A)(35));return e}},57445:(e,t,n)=>{"use strict";let r,i,a,s;n.d(t,{h:()=>ew});let o="emphasisSequence",l="strongSequence";var c,u=n(94703);function h(e){return!!(e&&e>=55296&&e<=56319)}function d(e){return!!(e&&e>=56320&&e<=57343)}function p(e,t,n){if(t._bufferIndex<2)return e;let r=n({start:{...t,_bufferIndex:t._bufferIndex-2},end:t}).codePointAt(0);return r&&r>=65536?r:e}var f=class{cachedValue=void 0;constructor(e,t,n){this.previousCode=e,this.nowPoint=t,this.sliceSerialize=n}value(){return void 0===this.cachedValue&&(this.cachedValue=function(e,t,n){let r=e>=65536?2:1;if(t._bufferIndex<1+r)return null;let i=t._bufferIndex-r-2,a=n({start:{...t,_bufferIndex:i>=0?i:0},end:{...t,_bufferIndex:t._bufferIndex-r}}),s=a.charCodeAt(a.length-1);if(Number.isNaN(s))return null;if(a.length<2||s<56320||57343<s)return s;let o=a.codePointAt(0);return o&&o>=65536?o:s}(this.previousCode,this.nowPoint,this.sliceSerialize)),this.cachedValue}};function m(e,t,n){let r=n({start:t,end:{...t,_bufferIndex:t._bufferIndex+2}}).codePointAt(0);return r&&r>=65536?r:e}let g=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],y=[12288,12288,65281,65376,65504,65510],b=[8361,8361,65377,65470,65474,65479,65482,65487,65490,65495,65498,65500,65512,65518],k=[32,126,162,163,165,166,172,172,175,175,10214,10221,10629,10630],x=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141],v=(e,t)=>{let n=0,r=Math.floor(e.length/2)-1;for(;n<=r;){let i=Math.floor((n+r)/2),a=2*i;if(t<e[a])r=i-1;else{if(!(t>e[a+1]))return!0;n=i+1}}return!1},[E,_]=function(e){let t=e[0],n=e[1];for(let r=0;r<e.length;r+=2){let i=e[r],a=e[r+1];if(19968>=i&&19968<=a)return[i,a];a-i>n-t&&(t=i,n=a)}return[t,n]}(x),T=w(/\p{P}|\p{S}/u),A=w(/\s/);function w(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCodePoint(t))}}function S(e){return!!(1&e)}function C(e){return(e&r.cjkPunctuation)==2}function N(e){return!!(e&r.cjk)}function M(e){return!!(e&r.cjkOrIvs)}function I(e){return e===r.nonEmojiGeneralUseVS}function R(e){return!!(e&r.spaceOrPunctuation)}var L=n(1052);function D(e){if(null===e||(0,L.Ee)(e)||A(e))return 1;let t=0;if(e>=4352){if(null!==e&&e>=65024&&e<=65038)return r.nonEmojiGeneralUseVS;switch(function(e){if(!e||e<4352)return!1;switch(function(e){if(!Number.isSafeInteger(e))throw TypeError(`Expected a code point, got \`${typeof e}\`.`);return function(e){return!(e<161)&&!(e>1114109)&&v(g,e)?"ambiguous":!(e<12288)&&!(e>65510)&&v(y,e)?"fullwidth":!(e<8361)&&!(e>65518)&&v(b,e)?"halfwidth":!(e<32)&&!(e>10630)&&v(k,e)?"narrow":e>=E&&e<=_||!(e<4352)&&!(e>262141)&&v(x,e)?"wide":"neutral"}(e)}(e)){case"fullwidth":case"halfwidth":return!0;case"wide":return!/^\p{Emoji_Presentation}/u.test(String.fromCodePoint(e));case"narrow":return!1;case"ambiguous":return 917760<=e&&e<=917999&&null;case"neutral":return/^\p{sc=Hangul}/u.test(String.fromCodePoint(e))}}(e)){case null:return r.ivs;case!0:t|=r.cjk}}return T(e)&&(t|=2),t}function O(e,t,n){if(!I(e))return e;let i=t(),a=D(i);return!i||S(a)?e:65025===n&&i&&!(i<8216)&&(8216===i||8217===i||8220===i||8221===i)?r.cjkPunctuation:a&~r.ivs}(c=r||(r={})).spaceOrPunctuation=3,c.cjk=4096,c.cjkPunctuation=4098,c.ivs=8192,c.cjkOrIvs=12288,c.nonEmojiGeneralUseVS=16384,c.variationSelector=24576,c.ivsToCjkRightShift=1;var P=n(12835),F=n(37947);let B={name:"attention",resolveAll:function(e,t){let n,r,i,a,s,c,h,d,p=-1;for(;++p<e.length;)if("enter"===e[p][0]&&"attentionSequence"===e[p][1].type&&e[p][1]._close){for(n=p;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[p][1]).charCodeAt(0)){if((e[n][1]._close||e[p][1]._open)&&(e[p][1].end.offset-e[p][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[p][1].end.offset-e[p][1].start.offset)%3))continue;c=e[n][1].end.offset-e[n][1].start.offset>1&&e[p][1].end.offset-e[p][1].start.offset>1?2:1;let f={...e[n][1].end},m={...e[p][1].start};H(f,-c),H(m,c),a={type:c>1?l:o,start:f,end:{...e[n][1].end}},s={type:c>1?l:o,start:{...e[p][1].start},end:m},i={type:c>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[p][1].start}},r={type:c>1?"strong":"emphasis",start:{...a.start},end:{...s.end}},e[n][1].end={...a.start},e[p][1].start={...s.end},h=[],e[n][1].end.offset-e[n][1].start.offset&&(h=(0,P.V)(h,[["enter",e[n][1],t],["exit",e[n][1],t]])),h=(0,P.V)(h,[["enter",r,t],["enter",a,t],["exit",a,t],["enter",i,t]]),(0,u.ok)(t.parser.constructs.insideSpan.null,"expected `insideSpan` to be populated"),h=(0,P.V)(h,(0,F.W)(t.parser.constructs.insideSpan.null,e.slice(n+1,p),t)),h=(0,P.V)(h,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",r,t]]),e[p][1].end.offset-e[p][1].start.offset?(d=2,h=(0,P.V)(h,[["enter",e[p][1],t],["exit",e[p][1],t]])):d=0,(0,P.m)(e,n-1,p-n+3,h),p=n+h.length-d-2;break}}for(p=-1;++p<e.length;)"attentionSequence"===e[p][1].type&&(e[p][1].type="data");return e},tokenize:function(e,t){let n,r=this.parser.constructs.attentionMarkers.null,{now:i,sliceSerialize:a,previous:s}=this,o=d(s)?p(s,i(),a):s,l=D(o),c=new f(o,i(),a),g=O(l,c.value.bind(c),o);return function(s){return(0,u.ok)(42===s||95===s,"expected asterisk or underscore"),n=s,e.enter("attentionSequence"),function s(l){if(l===n)return e.consume(l),s;let c=e.exit("attentionSequence"),d=D(h(l)?m(l,i(),a):l);(0,u.ok)(r,"expected `attentionMarkers` to be populated");let p=C(g),f=p||S(g),y=C(d),b=y||S(d),k=M(g),x=!b||y&&(f||k)||r.includes(l),v=!f||p&&(b||N(d))||r.includes(o);return c._open=!!(42===n?x:x&&(R(g)||!v)),c._close=!!(42===n?v:v&&(R(d)||!x)),t(l)}(s)}}};function H(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}function U(){let e=this.data();(e.micromarkExtensions||(e.micromarkExtensions=[])).push({text:{42:B,95:B},insideSpan:{null:[B]}})}function $(e,t,n,r){return V(e,t,n,r,z(e,t,n),1)}function j(e,t,n,r){return V(e,t,n,r,G(e,t,n),2)}function z(e,t,n){return n.options.emphasis||"*"}function G(e,t,n){return n.options.strong||"*"}function V(e,t,n,r,i,a){let s,o,l=i.repeat(a),c=n.enter(1===a?"emphasis":"strong"),u=n.createTracker(r),h=u.move(l),d=u.move(n.containerPhrasing(e,{after:i,before:h,...u.current()})),p=function(e,t,n,r){var i,a,s;let o=en(r),l=ee(r);if(null!==(i=o)&&56320<=i&&i<=57343||(a=o,s=l,I(D(a))&&(null===s||null===s))){let r=Z(e,t,n,-1);r&&(o=en(r),l=ee(r))}return{current:o,previous:l}}(e,t,n,r.before),f=function(e,t,n,r){var i;let a=et(r);if(!(null!==(i=a)&&55296<=i&&i<=56319))return a;let s=Z(e,t,n,1);return s?et(s):a}(e,t,n,r.after),m=W(p,et(d),i,"open");m.inside&&d&&(d=function(e){let[t=""]=[...e];return J(t.codePointAt(0)??null)+e.slice(t.length)}(d));let g=W({current:en(d),previous:ee(d)},f,i,"close");g.inside&&d&&(o=(s=[...d]).pop(),d=`${s.join("")}${J(o?.codePointAt(0)??null)}`);let y=u.move(l);c();let b=g.outside&&function(e,t){if(!e)return!1;let n=t.indexStack.at(-1);if("number"!=typeof n)return!1;let r=e.children[n+1];return r?.type==="text"&&(et(r.value)??0)>65535}(t,n);return n.attentionEncodeSurroundingInfo={after:g.outside&&!b,before:m.outside},n.cjkFriendlyEncodeAfterSupplementaryText=b,h+d+y}function K(e,t,n,r){if(!n.cjkFriendlyEncodeAfterSupplementaryText)return n.safe(e.value,r);n.cjkFriendlyEncodeAfterSupplementaryText=!1;let[i=""]=[...e.value],a=e.value.slice(i.length);return`${J(i.codePointAt(0)??null)}${n.safe(a,{...r,before:";"})}`}function W(e,t,n,r){let i=Q(e),a=D(t);if(!M(i)&&!M(a))return"open"===r?q(i,a,n):q(a,i,n);let s={inside:!0,outside:!0};for(let i of[{inside:!1,outside:!1},{inside:!0,outside:!1},{inside:!1,outside:!0},s]){let a="open"===r?i.outside?er:e:i.inside?er:e,s="open"===r?i.inside?ei:t:i.outside?ei:t;if("open"===r?function(e,t,n){let r=Q(t),{close:i,open:a}=Y(r,D(n));return"_"===e?a&&(R(r)||!i):a}(n,a,s):function(e,t,n){let r=D(n),{close:i,open:a}=Y(Q(t),r);return"_"===e?i&&(R(r)||!a):i}(n,a,s))return i}return s}function q(e,t,n){return X(e)?X(t)?"_"===n?{inside:!0,outside:!0}:{inside:!1,outside:!1}:S(t)?{inside:!0,outside:!0}:{inside:!1,outside:!0}:S(e)?X(t)?{inside:!1,outside:!1}:S(t)?{inside:!0,outside:!0}:{inside:!1,outside:!1}:S(t)?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function Y(e,t){let n=C(e),r=n||S(e),i=C(t),a=i||S(t);return{open:!a||i&&(r||M(e)),close:!r||n&&(a||N(t))}}function X(e){return!S(e)&&!C(e)}function Q(e){let t=D(e.current);return null!==e.current&&I(t)?O(t,()=>e.previous,e.current):t}function Z(e,t,n,r){if(!t)return;let i=n.indexStack.at(-1),a=t.children,s="number"==typeof i?i:a.indexOf(e);if(!(s<0))return function e(t){return t&&"object"==typeof t?"value"in t&&"string"==typeof t.value?t.value:"alt"in t&&"string"==typeof t.alt?t.alt:"children"in t&&Array.isArray(t.children)?t.children.map(e).join(""):"":""}(a[s+r])||void 0}$.peek=z,j.peek=G;function J(e){return`&#x${(e??0).toString(16).toUpperCase()};`}function ee(e){let t=[...e];return t.pop(),t.at(-1)?.codePointAt(0)??null}function et(e){return e.codePointAt(0)??null}function en(e){return[...e].at(-1)?.codePointAt(0)??null}let er={current:59,previous:null},ei=38;function ea(){let e=this.data();(e.toMarkdownExtensions||(e.toMarkdownExtensions=[])).push({handlers:{emphasis:$,strong:j,text:K}})}function es(e){let t,n,i=this.data();(i.micromarkExtensions||(i.micromarkExtensions=[])).push((t=(e||{}).singleTilde,n={name:"strikethrough",tokenize:function(e,n,i){let{now:a,sliceSerialize:s,previous:o}=this,l=d(o)?p(o,a(),s):o,c=D(l),g=new f(l,a(),s),y=O(c,g.value.bind(g),l),b=this.events,k=0;return function(o){return((0,u.ok)(126===o,"expected `~`"),126===l&&"characterEscape"!==b[b.length-1][1].type)?i(o):(e.enter("strikethroughSequenceTemporary"),function o(c){let u=D(l);if(126===c)return k>1?i(c):(e.consume(c),k++,o);if(k<2&&!t)return i(c);let d=e.exit("strikethroughSequenceTemporary"),p=D(h(c)?m(c,a(),s):c),f=C(y)||S(y),g=C(p)||S(p),b=N(y)||u===r.ivs;return d._open=!g||2===p&&(f||b),d._close=!f||2===u&&(g||N(p)),n(c)}(o))}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";let i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},s=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",a,t]],o=t.parser.constructs.insideSpan.null;o&&(0,P.m)(s,s.length,0,(0,F.W)(o,e.slice(r+1,n),t)),(0,P.m)(s,s.length,0,[["exit",a,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),(0,P.m)(e,r-1,n-r+3,s),n=r+s.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}},null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}))}let eo=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function el(e,t,n,r){let i,a,s=n.enter("strikethrough"),o=n.createTracker(r),l=o.move("~~"),c=o.move(n.containerPhrasing(e,{after:"~",before:l,...o.current()})),u=function(e,t,n,r){var i,a,s;let o=ek(r),l=ey(r);if(null!==(i=o)&&56320<=i&&i<=57343||(a=o,s=l,I(D(a))&&(null===s||null===s))){let r=em(e,t,n,-1);r&&(o=ek(r),l=ey(r))}return{current:o,previous:l}}(e,t,n,r.before),h=function(e,t,n,r){var i;let a=eb(r);if(!(null!==(i=a)&&55296<=i&&i<=56319))return a;let s=em(e,t,n,1);return s?eb(s):a}(e,t,n,r.after),d=eu(u,eb(c),"open");d.inside&&c&&(c=function(e){let[t=""]=[...e];return eg(t.codePointAt(0)??null)+e.slice(t.length)}(c));let p=eu({current:ek(c),previous:ey(c)},h,"close");p.inside&&c&&(a=(i=[...c]).pop(),c=`${i.join("")}${eg(a?.codePointAt(0)??null)}`);let f=o.move("~~");s();let m=p.outside&&function(e,t){if(!e)return!1;let n=t.indexStack.at(-1);if("number"!=typeof n)return!1;let r=e.children[n+1];return r?.type==="text"&&(eb(r.value)??0)>65535}(t,n);return n.attentionEncodeSurroundingInfo={after:p.outside&&!m,before:d.outside},n.cjkFriendlyEncodeAfterSupplementaryText=m,l+c+f}function ec(e,t,n,r){if(!n.cjkFriendlyEncodeAfterSupplementaryText)return n.safe(e.value,r);n.cjkFriendlyEncodeAfterSupplementaryText=!1;let[i=""]=[...e.value],a=e.value.slice(i.length);return`${eg(i.codePointAt(0)??null)}${n.safe(a,{...r,before:";"})}`}function eu(e,t,n){let r=ef(e),i=D(t);if(!M(r)&&!M(i))return"open"===n?eh(r,i):eh(i,r);let a={inside:!0,outside:!0};for(let r of[{inside:!1,outside:!1},{inside:!0,outside:!1},{inside:!1,outside:!0},a]){let i="open"===n?r.outside?ex:e:r.inside?ex:e,a="open"===n?r.inside?ev:t:r.outside?ev:t;if("open"===n?function(e,t){let{open:n}=ed(ef(e),D(t));return n}(i,a):function(e,t){let n=D(t),{close:r}=ed(ef(e),n);return r}(i,a))return r}return a}function eh(e,t){return ep(e)?ep(t)?{inside:!1,outside:!1}:S(t)?{inside:!0,outside:!0}:{inside:!1,outside:!0}:S(e)?ep(t)?{inside:!1,outside:!1}:S(t)?{inside:!0,outside:!0}:{inside:!1,outside:!1}:S(t)?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function ed(e,t){let n=C(e),r=n||S(e),i=C(t),a=i||S(t);return{open:!a||i&&(r||M(e)),close:!r||n&&(a||N(t))}}function ep(e){return!S(e)&&!C(e)}function ef(e){let t=D(e.current);return null!==e.current&&I(t)?O(t,()=>e.previous,e.current):t}function em(e,t,n,r){if(!t)return;let i=n.indexStack.at(-1),a=t.children,s="number"==typeof i?i:a.indexOf(e);if(!(s<0))return function e(t){return t&&"object"==typeof t?"value"in t&&"string"==typeof t.value?t.value:"alt"in t&&"string"==typeof t.alt?t.alt:"children"in t&&Array.isArray(t.children)?t.children.map(e).join(""):"":""}(a[s+r])||void 0}el.peek=function(){return"~"};function eg(e){return`&#x${(e??0).toString(16).toUpperCase()};`}function ey(e){let t=[...e];return t.pop(),t.at(-1)?.codePointAt(0)??null}function eb(e){return e.codePointAt(0)??null}function ek(e){return[...e].at(-1)?.codePointAt(0)??null}let ex={current:59,previous:null},ev=38;function eE(){let e=this.data();(e.toMarkdownExtensions||(e.toMarkdownExtensions=[])).push({unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:eo}],handlers:{delete:el,text:ec}})}var e_=n(44382),eT=new Set(["。",".",",","、","?","!",":",";","(",")","【","】","「","」","『","』","〈","〉","《","》"]),eA=/^(https?:\/\/|mailto:|www\.)/i,ew=(s=[...i=[function(){U.call(this),ea.call(this)}],...a=[()=>e=>{(0,e_.YR)(e,"link",(e,t,n)=>{if(!n||"number"!=typeof t||!(e=>{if(1!==e.children.length)return!1;let t=e.children[0];return"text"===t.type&&t.value===e.url})(e)||!eA.test(e.url))return;let r=(e=>{let t=0;for(let n of e){if(eT.has(n))return t;t+=n.length}return null})(e.url);if(null===r||0===r)return;let i=e.url.slice(0,r),a=e.url.slice(r),s={...e,url:i,children:[{type:"text",value:i}]};return n.children.splice(t,1,s,{type:"text",value:a}),t+1})},function(e){es.call(this,e),eE.call(this)}]],{name:"cjk",type:"cjk",remarkPluginsBefore:i,remarkPluginsAfter:a,remarkPlugins:s})},58048:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let r=n(54276)._(n(41144));function i(e,t){let n={};"function"==typeof e&&(n.loader=e);let i={...n,...t};return(0,r.default)({...i,modules:i.loadableGenerated?.modules})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},58420:function(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(93227)),i=n(90636);function a(e,t){var n={};return e&&"string"==typeof e&&(0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n}a.default=a,e.exports=a},58619:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]])},58771:(e,t,n)=>{"use strict";n.d(t,{b:()=>r});let r=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"]},58789:(e,t,n)=>{"use strict";n.r(t),n.d(t,{boolean:()=>i,booleanish:()=>a,commaOrSpaceSeparated:()=>u,commaSeparated:()=>c,number:()=>o,overloadedBoolean:()=>s,spaceSeparated:()=>l});let r=0,i=h(),a=h(),s=h(),o=h(),l=h(),c=h(),u=h();function h(){return 2**++r}},59095:(e,t,n)=>{"use strict";n.d(t,{j:()=>_});var r=n(69266),i=n(66538),a=n(66758),s=n(48356),o=n(63717),l=n(87047),c=n(82956),u=n(1712),h=n(86947),d=n(23754),p=n(6561);let f=[];var m=n(26564),g=n(69611),y=n(73881),b=n(7962);function k(e){let{render:t,className:n,style:k,refs:x=s.Ml,props:v=s.Ml,state:E=s.t0,stateAttributesMapping:_,highlightedIndex:T,onHighlightedIndexChange:A,orientation:w,grid:S,loopFocus:C,onLoop:N,enableHomeAndEndKeys:M,onMapChange:I,stopEventPropagation:R=!0,rootRef:L,disabledIndices:D,modifierKeys:O,highlightItemOnHover:P=!1,tag:F="div",...B}=e,{props:H,highlightedIndex:U,onHighlightedIndexChange:$,elementsRef:j,onMapChange:z,relayKeyboardEvent:G}=function(e){let{loopFocus:t=!0,orientation:n="both",grid:s,onLoop:o,direction:m,highlightedIndex:g,onHighlightedIndexChange:y,rootRef:b,enableHomeAndEndKeys:k=!1,stopEventPropagation:x,disabledIndices:v,modifierKeys:E=f}=e,[_,T]=r.useState(0),A=null!=s,w=r.useRef(null),S=(0,c.a)(w,b),C=r.useRef([]),N=r.useRef(!1),M=g??_,I=(0,i.K)((e,t=!1)=>{if((y??T)(e),t){let t=C.current[e];(0,u.$v)(w.current,t,m,n)}}),R=(0,i.K)(e=>{if(0===e.size||N.current)return;N.current=!0;let t=Array.from(e.keys()),r=t.find(e=>e?.hasAttribute(d.h))??null,i=r?e.get(r)?.index??-1:-1;if(-1!==i)I(i);else if((0,h.FP)(t,M,v)){let e=(0,h.BF)(t,{disabledIndices:v});(0,h.du)(t,e)||I(e)}(0,u.$v)(w.current,r,m,n)});(0,a.g)(()=>{if(null==v||null!=g||!N.current)return;let e=C.current;if((0,h.FP)(e,M,v)){let t=(0,h.BF)(e,{disabledIndices:v});(0,h.du)(e,t)||I(t)}},[v,g,M,C,I]);let L=(0,i.K)((e,t,n)=>o?o(e,t,n,C):n),D=(0,i.K)(e=>{let r=e.key===u.yZ||e.key===u.Kp;if(!u.jF.has(e.key)||!k&&r||function(e,t){for(let n of u.rT)if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}(e,E)||!w.current)return;let i="rtl"===m,a=i?u.eR:u.RJ,c=i?u.RJ:u.eR,d="vertical"===n?u.Jd:a,f="vertical"===n?u.il:c,g=(0,p.EW)(e.nativeEvent);if(null!=g&&(0,u.Qi)(g)&&!(0,l.F)(g)){let t=g.selectionStart,n=g.selectionEnd,r=g.value;if(null==t||e.shiftKey||t!==n||e.key!==f&&t<r.length||e.key!==d&&t>0)return}let y=M,b=(0,h.Zb)(C,v),_=(0,h.vB)(C,v);null!=s&&(y=s({disabledIndices:v,elementsRef:C,event:e,highlightedIndex:M,loopFocus:t,maxIndex:_,minIndex:b,onLoop:L,orientation:n,rtl:i}));let T="vertical"!==n&&e.key===a||"horizontal"!==n&&e.key===u.Jd,S="vertical"!==n&&e.key===c||"horizontal"!==n&&e.key===u.il;k&&(e.key===u.yZ?y=b:e.key===u.Kp&&(y=_)),y===M&&(T||S)&&(t&&y===_&&T?(y=b,o&&(y=o(e,M,y,C))):t&&y===b&&S?(y=_,o&&(y=o(e,M,y,C))):y=(0,h.BF)(C.current,{startingIndex:y,decrement:S,disabledIndices:v})),y===M||(0,h.du)(C.current,y)||(x&&e.stopPropagation(),(A||r||T||S)&&e.preventDefault(),I(y,!0),queueMicrotask(()=>{C.current[y]?.focus()}))});return{props:{ref:S,onFocus(e){let t=w.current,n=(0,p.EW)(e.nativeEvent);t&&null!=n&&(0,u.Qi)(n)&&n.setSelectionRange(0,n.value.length)},onKeyDown:D},highlightedIndex:M,onHighlightedIndexChange:I,elementsRef:C,onMapChange:R,relayKeyboardEvent:D}}({grid:S,loopFocus:C,onLoop:N,orientation:w,highlightedIndex:T,onHighlightedIndexChange:A,rootRef:L,stopEventPropagation:R,enableHomeAndEndKeys:M,direction:(0,y.j)(),disabledIndices:D,modifierKeys:O}),V=(0,g.o)(F,e,{state:E,ref:x,props:[H,...v,B],stateAttributesMapping:_}),K=r.useMemo(()=>({highlightedIndex:U,onHighlightedIndexChange:$,highlightItemOnHover:P,relayKeyboardEvent:G}),[U,$,P,G]);return(0,b.jsx)(m.H.Provider,{value:K,children:(0,b.jsx)(o.u,{elementsRef:j,onMapChange:e=>{I?.(e),z(e)},children:V})})}var x=n(67048),v=n(65205),E=n(89121);let _=r.forwardRef(function(e,t){let{activateOnFocus:n=!1,className:o,loopFocus:l=!0,render:c,style:u,...h}=e,{orientation:d,setTabMap:p,tabActivationDirection:f}=(0,v.z)(),[m,g]=r.useState(0),[y,_]=r.useState(null),T=r.useRef(new Set),A=r.useRef(new Set),w=r.useRef(null);(0,a.g)(()=>{if("u"<typeof ResizeObserver)return;let e=new ResizeObserver(()=>{T.current.forEach(e=>{e()})});return w.current=e,y&&e.observe(y),A.current.forEach(t=>{e.observe(t)}),()=>{e.disconnect(),w.current=null}},[y]);let S=(0,i.K)(e=>(T.current.add(e),()=>{T.current.delete(e)})),C=(0,i.K)(e=>(A.current.add(e),w.current?.observe(e),()=>{A.current.delete(e),w.current?.unobserve(e)})),N=r.useMemo(()=>({activateOnFocus:n,registerIndicatorUpdateListener:S,registerTabResizeObserverElement:C,tabsListElement:y}),[n,S,C,y]);return(0,b.jsx)(E.O.Provider,{value:N,children:(0,b.jsx)(k,{render:c,className:o,style:u,state:{orientation:d,tabActivationDirection:f},refs:[t,_],props:[{"aria-orientation":"vertical"===d?"vertical":void 0,role:"tablist"},h],stateAttributesMapping:x.h,highlightedIndex:m,enableHomeAndEndKeys:!0,loopFocus:l,orientation:d,onHighlightedIndexChange:g,onMapChange:p,disabledIndices:s.Ml})})})},59252:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]])},59275:(e,t,n)=>{"use strict";function r(e){return null==e||"object"!=typeof e&&"function"!=typeof e}n.d(t,{s:()=>r})},59863:(e,t,n)=>{"use strict";n.d(t,{E:()=>i});var r=n(69266);let i="u">typeof window?r.useLayoutEffect:r.useEffect},60008:(e,t,n)=>{"use strict";function r(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}n.d(t,{b:()=>r})},60794:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("file-code",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]])},61108:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]])},61600:(e,t,n)=>{"use strict";n.d(t,{D:()=>a});var r=n(69266),i=n(35182);function a(){let e=(0,r.useContext)(i.t);return e?e.custom:void 0}},61989:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]])},62079:(e,t,n)=>{"use strict";function r(e,t,n){if(e&&e.length){let[r,i]=t,a=Math.PI/180*n,s=Math.cos(a),o=Math.sin(a);for(let t of e){let[e,n]=t;t[0]=(e-r)*s-(n-i)*o+r,t[1]=(e-r)*o+(n-i)*s+i}}}function i(e,t){var n;let i=t.hachureAngle+90,a=t.hachureGap;a<0&&(a=4*t.strokeWidth),a=Math.round(Math.max(a,.1));let s=1;return t.roughness>=1&&((null==(n=t.randomizer)?void 0:n.next())||Math.random())>.7&&(s=a),function(e,t,n,i=1){let a=Math.max(t,.1),s=e[0]&&e[0][0]&&"number"==typeof e[0][0]?[e]:e,o=[0,0];if(n)for(let e of s)r(e,o,n);let l=function(e,t,n){let r=[];for(let t of e){var i,a;let e=[...t];i=e[0],a=e[e.length-1],i[0]===a[0]&&i[1]===a[1]||e.push([e[0][0],e[0][1]]),e.length>2&&r.push(e)}let s=[];t=Math.max(t,.1);let o=[];for(let e of r)for(let t=0;t<e.length-1;t++){let n=e[t],r=e[t+1];if(n[1]!==r[1]){let e=Math.min(n[1],r[1]);o.push({ymin:e,ymax:Math.max(n[1],r[1]),x:e===n[1]?n[0]:r[0],islope:(r[0]-n[0])/(r[1]-n[1])})}}if(o.sort((e,t)=>e.ymin<t.ymin?-1:e.ymin>t.ymin?1:e.x<t.x?-1:e.x>t.x?1:e.ymax===t.ymax?0:(e.ymax-t.ymax)/Math.abs(e.ymax-t.ymax)),!o.length)return s;let l=[],c=o[0].ymin,u=0;for(;l.length||o.length;){if(o.length){let e=-1;for(let t=0;t<o.length&&!(o[t].ymin>c);t++)e=t;o.splice(0,e+1).forEach(e=>{l.push({s:c,edge:e})})}if((l=l.filter(e=>!(e.edge.ymax<=c))).sort((e,t)=>e.edge.x===t.edge.x?0:(e.edge.x-t.edge.x)/Math.abs(e.edge.x-t.edge.x)),(1!==n||u%t==0)&&l.length>1)for(let e=0;e<l.length;e+=2){let t=e+1;if(t>=l.length)break;let n=l[e].edge,r=l[t].edge;s.push([[Math.round(n.x),c],[Math.round(r.x),c]])}c+=n,l.forEach(e=>{e.edge.x=e.edge.x+n*e.edge.islope}),u++}return s}(s,a,i);if(n){let e;for(let e of s)r(e,o,-n);e=[],l.forEach(t=>e.push(...t)),r(e,o,-n)}return l}(e,a,i,s||1)}n.d(t,{A:()=>Y});class a{constructor(e){this.helper=e}fillPolygons(e,t){return this._fillPolygons(e,t)}_fillPolygons(e,t){let n=i(e,t);return{type:"fillSketch",ops:this.renderLines(n,t)}}renderLines(e,t){let n=[];for(let r of e)n.push(...this.helper.doubleLineOps(r[0][0],r[0][1],r[1][0],r[1][1],t));return n}}function s(e){let t=e[0],n=e[1];return Math.sqrt(Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2))}class o extends a{fillPolygons(e,t){let n=t.hachureGap;n<0&&(n=4*t.strokeWidth);let r=i(e,Object.assign({},t,{hachureGap:n=Math.max(n,.1)})),a=Math.PI/180*t.hachureAngle,o=[],l=.5*n*Math.cos(a),c=.5*n*Math.sin(a);for(let[e,t]of r)s([e,t])&&o.push([[e[0]-l,e[1]+c],[...t]],[[e[0]+l,e[1]-c],[...t]]);return{type:"fillSketch",ops:this.renderLines(o,t)}}}class l extends a{fillPolygons(e,t){let n=this._fillPolygons(e,t),r=Object.assign({},t,{hachureAngle:t.hachureAngle+90}),i=this._fillPolygons(e,r);return n.ops=n.ops.concat(i.ops),n}}class c{constructor(e){this.helper=e}fillPolygons(e,t){let n=i(e,t=Object.assign({},t,{hachureAngle:0}));return this.dotsOnLines(n,t)}dotsOnLines(e,t){let n=[],r=t.hachureGap;r<0&&(r=4*t.strokeWidth),r=Math.max(r,.1);let i=t.fillWeight;i<0&&(i=t.strokeWidth/2);let a=r/4;for(let o of e){let e=s(o),l=Math.ceil(e/r)-1,c=e-l*r,u=(o[0][0]+o[1][0])/2-r/4,h=Math.min(o[0][1],o[1][1]);for(let e=0;e<l;e++){let s=u-a+2*Math.random()*a,o=h+c+e*r-a+2*Math.random()*a,l=this.helper.ellipse(s,o,i,i,t);n.push(...l.ops)}}return{type:"fillSketch",ops:n}}}class u{constructor(e){this.helper=e}fillPolygons(e,t){let n=i(e,t);return{type:"fillSketch",ops:this.dashedLine(n,t)}}dashedLine(e,t){let n=t.dashOffset<0?t.hachureGap<0?4*t.strokeWidth:t.hachureGap:t.dashOffset,r=t.dashGap<0?t.hachureGap<0?4*t.strokeWidth:t.hachureGap:t.dashGap,i=[];return e.forEach(e=>{let a=s(e),o=Math.floor(a/(n+r)),l=(a+r-o*(n+r))/2,c=e[0],u=e[1];c[0]>u[0]&&(c=e[1],u=e[0]);let h=Math.atan((u[1]-c[1])/(u[0]-c[0]));for(let e=0;e<o;e++){let a=e*(n+r),s=a+n,o=[c[0]+a*Math.cos(h)+l*Math.cos(h),c[1]+a*Math.sin(h)+l*Math.sin(h)],u=[c[0]+s*Math.cos(h)+l*Math.cos(h),c[1]+s*Math.sin(h)+l*Math.sin(h)];i.push(...this.helper.doubleLineOps(o[0],o[1],u[0],u[1],t))}}),i}}class h{constructor(e){this.helper=e}fillPolygons(e,t){let n=t.hachureGap<0?4*t.strokeWidth:t.hachureGap,r=t.zigzagOffset<0?n:t.zigzagOffset,a=i(e,t=Object.assign({},t,{hachureGap:n+r}));return{type:"fillSketch",ops:this.zigzagLines(a,r,t)}}zigzagLines(e,t,n){let r=[];return e.forEach(e=>{let i=Math.round(s(e)/(2*t)),a=e[0],o=e[1];a[0]>o[0]&&(a=e[1],o=e[0]);let l=Math.atan((o[1]-a[1])/(o[0]-a[0]));for(let e=0;e<i;e++){let i=2*e*t,s=2*(e+1)*t,o=Math.sqrt(2*Math.pow(t,2)),c=[a[0]+i*Math.cos(l),a[1]+i*Math.sin(l)],u=[a[0]+s*Math.cos(l),a[1]+s*Math.sin(l)],h=[c[0]+o*Math.cos(l+Math.PI/4),c[1]+o*Math.sin(l+Math.PI/4)];r.push(...this.helper.doubleLineOps(c[0],c[1],h[0],h[1],n),...this.helper.doubleLineOps(h[0],h[1],u[0],u[1],n))}}),r}}let d={};class p{constructor(e){this.seed=e}next(){return this.seed?(0x80000000-1&(this.seed=Math.imul(48271,this.seed)))/0x80000000:Math.random()}}let f={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function m(e){let t=[],n=function(e){let t=[];for(;""!==e;)if(e.match(/^([ \t\r\n,]+)/))e=e.substr(RegExp.$1.length);else if(e.match(/^([aAcChHlLmMqQsStTvVzZ])/))t[t.length]={type:0,text:RegExp.$1},e=e.substr(RegExp.$1.length);else{if(!e.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];t[t.length]={type:1,text:`${parseFloat(RegExp.$1)}`},e=e.substr(RegExp.$1.length)}return t[t.length]={type:2,text:""},t}(e),r="BOD",i=0,a=n[0];for(;2!==a.type;){let s=0,o=[];if("BOD"===r){if("M"!==a.text&&"m"!==a.text)return m("M0,0"+e);i++,s=f[a.text],r=a.text}else 1===a.type?s=f[r]:(i++,s=f[a.text],r=a.text);if(!(i+s<n.length))throw Error("Path data ended short");for(let e=i;e<i+s;e++){let t=n[e];if(1!==t.type)throw Error("Param not a number: "+r+","+t.text);o[o.length]=+t.text}if("number"!=typeof f[r])throw Error("Bad segment: "+r);{let e={key:r,data:o};t.push(e),i+=s,a=n[i],"M"===r&&(r="L"),"m"===r&&(r="l")}}return t}function g(e){let t=0,n=0,r=0,i=0,a=[];for(let{key:s,data:o}of e)switch(s){case"M":a.push({key:"M",data:[...o]}),[t,n]=o,[r,i]=o;break;case"m":t+=o[0],n+=o[1],a.push({key:"M",data:[t,n]}),r=t,i=n;break;case"L":a.push({key:"L",data:[...o]}),[t,n]=o;break;case"l":t+=o[0],n+=o[1],a.push({key:"L",data:[t,n]});break;case"C":a.push({key:"C",data:[...o]}),t=o[4],n=o[5];break;case"c":{let e=o.map((e,r)=>r%2?e+n:e+t);a.push({key:"C",data:e}),t=e[4],n=e[5];break}case"Q":a.push({key:"Q",data:[...o]}),t=o[2],n=o[3];break;case"q":{let e=o.map((e,r)=>r%2?e+n:e+t);a.push({key:"Q",data:e}),t=e[2],n=e[3];break}case"A":a.push({key:"A",data:[...o]}),t=o[5],n=o[6];break;case"a":t+=o[5],n+=o[6],a.push({key:"A",data:[o[0],o[1],o[2],o[3],o[4],t,n]});break;case"H":a.push({key:"H",data:[...o]}),t=o[0];break;case"h":t+=o[0],a.push({key:"H",data:[t]});break;case"V":a.push({key:"V",data:[...o]}),n=o[0];break;case"v":n+=o[0],a.push({key:"V",data:[n]});break;case"S":a.push({key:"S",data:[...o]}),t=o[2],n=o[3];break;case"s":{let e=o.map((e,r)=>r%2?e+n:e+t);a.push({key:"S",data:e}),t=e[2],n=e[3];break}case"T":a.push({key:"T",data:[...o]}),t=o[0],n=o[1];break;case"t":t+=o[0],n+=o[1],a.push({key:"T",data:[t,n]});break;case"Z":case"z":a.push({key:"Z",data:[]}),t=r,n=i}return a}function y(e){let t=[],n="",r=0,i=0,a=0,s=0,o=0,l=0;for(let{key:c,data:u}of e){switch(c){case"M":t.push({key:"M",data:[...u]}),[r,i]=u,[a,s]=u;break;case"C":t.push({key:"C",data:[...u]}),r=u[4],i=u[5],o=u[2],l=u[3];break;case"L":t.push({key:"L",data:[...u]}),[r,i]=u;break;case"H":r=u[0],t.push({key:"L",data:[r,i]});break;case"V":i=u[0],t.push({key:"L",data:[r,i]});break;case"S":{let e=0,a=0;"C"===n||"S"===n?(e=r+(r-o),a=i+(i-l)):(e=r,a=i),t.push({key:"C",data:[e,a,...u]}),o=u[0],l=u[1],r=u[2],i=u[3];break}case"T":{let[e,a]=u,s=0,c=0;"Q"===n||"T"===n?(s=r+(r-o),c=i+(i-l)):(s=r,c=i);let h=r+2*(s-r)/3,d=i+2*(c-i)/3,p=e+2*(s-e)/3,f=a+2*(c-a)/3;t.push({key:"C",data:[h,d,p,f,e,a]}),o=s,l=c,r=e,i=a;break}case"Q":{let[e,n,a,s]=u,c=r+2*(e-r)/3,h=i+2*(n-i)/3,d=a+2*(e-a)/3,p=s+2*(n-s)/3;t.push({key:"C",data:[c,h,d,p,a,s]}),o=e,l=n,r=a,i=s;break}case"A":{let e=Math.abs(u[0]),n=Math.abs(u[1]),a=u[2],s=u[3],o=u[4],l=u[5],c=u[6];0===e||0===n?(t.push({key:"C",data:[r,i,l,c,l,c]}),r=l,i=c):(r!==l||i!==c)&&((function e(t,n,r,i,a,s,o,l,c,u){let h=Math.PI*o/180,d=[],p=0,f=0,m=0,g=0;if(u)[p,f,m,g]=u;else{[t,n]=b(t,n,-h),[r,i]=b(r,i,-h);let e=(t-r)/2,o=(n-i)/2,u=e*e/(a*a)+o*o/(s*s);u>1&&(a*=u=Math.sqrt(u),s*=u);let d=a*a,y=s*s,k=(l===c?-1:1)*Math.sqrt(Math.abs((d*y-d*o*o-y*e*e)/(d*o*o+y*e*e)));m=k*a*o/s+(t+r)/2,g=-(k*s)*e/a+(n+i)/2,p=Math.asin(parseFloat(((n-g)/s).toFixed(9))),f=Math.asin(parseFloat(((i-g)/s).toFixed(9))),t<m&&(p=Math.PI-p),r<m&&(f=Math.PI-f),p<0&&(p=2*Math.PI+p),f<0&&(f=2*Math.PI+f),c&&p>f&&(p-=2*Math.PI),!c&&f>p&&(f-=2*Math.PI)}let y=f-p;if(Math.abs(y)>120*Math.PI/180){let t=f,n=r,l=i;d=e(r=m+a*Math.cos(f=c&&f>p?p+120*Math.PI/180*1:p+-(120*Math.PI/180*1)),i=g+s*Math.sin(f),n,l,a,s,o,0,c,[f,t,m,g])}y=f-p;let k=Math.cos(p),x=Math.cos(f),v=Math.tan(y/4),E=4/3*a*v,_=4/3*s*v,T=[t,n],A=[t+E*Math.sin(p),n-_*k],w=[r+E*Math.sin(f),i-_*x],S=[r,i];if(A[0]=2*T[0]-A[0],A[1]=2*T[1]-A[1],u)return[A,w,S].concat(d);{d=[A,w,S].concat(d);let e=[];for(let t=0;t<d.length;t+=3){let n=b(d[t][0],d[t][1],h),r=b(d[t+1][0],d[t+1][1],h),i=b(d[t+2][0],d[t+2][1],h);e.push([n[0],n[1],r[0],r[1],i[0],i[1]])}return e}})(r,i,l,c,e,n,a,s,o).forEach(function(e){t.push({key:"C",data:e})}),r=l,i=c);break}case"Z":t.push({key:"Z",data:[]}),r=a,i=s}n=c}return t}function b(e,t,n){return[e*Math.cos(n)-t*Math.sin(n),e*Math.sin(n)+t*Math.cos(n)]}let k={randOffset:function(e,t){return R(e,t)},randOffsetWithRange:function(e,t,n){return I(e,t,n)},ellipse:function(e,t,n,r,i){let a=_(n,r,i);return T(e,t,i,a).opset},doubleLineOps:function(e,t,n,r,i){return L(e,t,n,r,i,!0)}};function x(e,t,n,r,i){return{type:"path",ops:L(e,t,n,r,i)}}function v(e,t,n){let r=(e||[]).length;if(r>2){let i=[];for(let t=0;t<r-1;t++)i.push(...L(e[t][0],e[t][1],e[t+1][0],e[t+1][1],n));return t&&i.push(...L(e[r-1][0],e[r-1][1],e[0][0],e[0][1],n)),{type:"path",ops:i}}return 2===r?x(e[0][0],e[0][1],e[1][0],e[1][1],n):{type:"path",ops:[]}}function E(e,t){if(e.length){let n="number"==typeof e[0][0]?[e]:e,r=O(n[0],+(1+.2*t.roughness),t),i=t.disableMultiStroke?[]:O(n[0],1.5*(1+.22*t.roughness),N(t));for(let e=1;e<n.length;e++){let a=n[e];if(a.length){let e=O(a,+(1+.2*t.roughness),t),n=t.disableMultiStroke?[]:O(a,1.5*(1+.22*t.roughness),N(t));for(let t of e)"move"!==t.op&&r.push(t);for(let e of n)"move"!==e.op&&i.push(e)}}return{type:"path",ops:r.concat(i)}}return{type:"path",ops:[]}}function _(e,t,n){let r=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(e/2,2)+Math.pow(t/2,2))/2)),i=2*Math.PI/Math.ceil(Math.max(n.curveStepCount,n.curveStepCount/Math.sqrt(200)*r)),a=Math.abs(e/2),s=Math.abs(t/2),o=1-n.curveFitting;return a+=R(a*o,n),s+=R(s*o,n),{increment:i,rx:a,ry:s}}function T(e,t,n,r){let[i,a]=F(r.increment,e,t,r.rx,r.ry,1,r.increment*I(.1,I(.4,1,n),n),n),s=P(i,null,n);if(!n.disableMultiStroke&&0!==n.roughness){let[i]=F(r.increment,e,t,r.rx,r.ry,1.5,0,n),a=P(i,null,n);s=s.concat(a)}return{estimatedPoints:a,opset:{type:"path",ops:s}}}function A(e,t,n,r,i,a,s,o,l){let c=Math.abs(n/2),u=Math.abs(r/2);c+=R(.01*c,l),u+=R(.01*u,l);let h=i,d=a;for(;h<0;)h+=2*Math.PI,d+=2*Math.PI;d-h>2*Math.PI&&(h=0,d=2*Math.PI);let p=Math.min(2*Math.PI/l.curveStepCount/2,(d-h)/2),f=B(p,e,t,c,u,h,d,1,l);if(!l.disableMultiStroke){let n=B(p,e,t,c,u,h,d,1.5,l);f.push(...n)}return s&&(o?f.push(...L(e,t,e+c*Math.cos(h),t+u*Math.sin(h),l),...L(e,t,e+c*Math.cos(d),t+u*Math.sin(d),l)):f.push({op:"lineTo",data:[e,t]},{op:"lineTo",data:[e+c*Math.cos(h),t+u*Math.sin(h)]})),{type:"path",ops:f}}function w(e,t){let n=y(g(m(e))),r=[],i=[0,0],a=[0,0];for(let{key:e,data:s}of n)switch(e){case"M":a=[s[0],s[1]],i=[s[0],s[1]];break;case"L":r.push(...L(a[0],a[1],s[0],s[1],t)),a=[s[0],s[1]];break;case"C":{let[e,n,i,o,l,c]=s;r.push(...function(e,t,n,r,i,a,s,o){let l=[],c=[o.maxRandomnessOffset||1,(o.maxRandomnessOffset||1)+.3],u=[0,0],h=o.disableMultiStroke?1:2,d=o.preserveVertices;for(let p=0;p<h;p++)0===p?l.push({op:"move",data:[s[0],s[1]]}):l.push({op:"move",data:[s[0]+(d?0:R(c[0],o)),s[1]+(d?0:R(c[0],o))]}),u=d?[i,a]:[i+R(c[p],o),a+R(c[p],o)],l.push({op:"bcurveTo",data:[e+R(c[p],o),t+R(c[p],o),n+R(c[p],o),r+R(c[p],o),u[0],u[1]]});return l}(e,n,i,o,l,c,a,t)),a=[l,c];break}case"Z":r.push(...L(a[0],a[1],i[0],i[1],t)),a=[i[0],i[1]]}return{type:"path",ops:r}}function S(e,t){let n=[];for(let r of e)if(r.length){let e=t.maxRandomnessOffset||0,i=r.length;if(i>2){n.push({op:"move",data:[r[0][0]+R(e,t),r[0][1]+R(e,t)]});for(let a=1;a<i;a++)n.push({op:"lineTo",data:[r[a][0]+R(e,t),r[a][1]+R(e,t)]})}}return{type:"fillPath",ops:n}}function C(e,t){return(function(e,t){let n=e.fillStyle||"hachure";if(!d[n])switch(n){case"zigzag":d[n]||(d[n]=new o(t));break;case"cross-hatch":d[n]||(d[n]=new l(t));break;case"dots":d[n]||(d[n]=new c(t));break;case"dashed":d[n]||(d[n]=new u(t));break;case"zigzag-line":d[n]||(d[n]=new h(t));break;default:d[n="hachure"]||(d[n]=new a(t))}return d[n]})(t,k).fillPolygons(e,t)}function N(e){let t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}function M(e){return e.randomizer||(e.randomizer=new p(e.seed||0)),e.randomizer.next()}function I(e,t,n,r=1){return n.roughness*r*(M(n)*(t-e)+e)}function R(e,t,n=1){return I(-e,e,t,n)}function L(e,t,n,r,i,a=!1){let s=a?i.disableMultiStrokeFill:i.disableMultiStroke,o=D(e,t,n,r,i,!0,!1);if(s)return o;let l=D(e,t,n,r,i,!0,!0);return o.concat(l)}function D(e,t,n,r,i,a,s){let o=Math.pow(e-n,2)+Math.pow(t-r,2),l=Math.sqrt(o),c=1;c=l<200?1:l>500?.4:-.0016668*l+1.233334;let u=i.maxRandomnessOffset||0;u*u*100>o&&(u=l/10);let h=u/2,d=.2+.2*M(i),p=i.bowing*i.maxRandomnessOffset*(r-t)/200,f=i.bowing*i.maxRandomnessOffset*(e-n)/200;p=R(p,i,c),f=R(f,i,c);let m=[],g=i.preserveVertices;return a&&(s?m.push({op:"move",data:[e+(g?0:R(h,i,c)),t+(g?0:R(h,i,c))]}):m.push({op:"move",data:[e+(g?0:R(u,i,c)),t+(g?0:R(u,i,c))]})),s?m.push({op:"bcurveTo",data:[p+e+(n-e)*d+R(h,i,c),f+t+(r-t)*d+R(h,i,c),p+e+2*(n-e)*d+R(h,i,c),f+t+2*(r-t)*d+R(h,i,c),n+(g?0:R(h,i,c)),r+(g?0:R(h,i,c))]}):m.push({op:"bcurveTo",data:[p+e+(n-e)*d+R(u,i,c),f+t+(r-t)*d+R(u,i,c),p+e+2*(n-e)*d+R(u,i,c),f+t+2*(r-t)*d+R(u,i,c),n+(g?0:R(u,i,c)),r+(g?0:R(u,i,c))]}),m}function O(e,t,n){if(!e.length)return[];let r=[];r.push([e[0][0]+R(t,n),e[0][1]+R(t,n)]),r.push([e[0][0]+R(t,n),e[0][1]+R(t,n)]);for(let i=1;i<e.length;i++)r.push([e[i][0]+R(t,n),e[i][1]+R(t,n)]),i===e.length-1&&r.push([e[i][0]+R(t,n),e[i][1]+R(t,n)]);return P(r,null,n)}function P(e,t,n){let r=e.length,i=[];if(r>3){let a=[],s=1-n.curveTightness;i.push({op:"move",data:[e[1][0],e[1][1]]});for(let t=1;t+2<r;t++){let n=e[t];a[0]=[n[0],n[1]],a[1]=[n[0]+(s*e[t+1][0]-s*e[t-1][0])/6,n[1]+(s*e[t+1][1]-s*e[t-1][1])/6],a[2]=[e[t+1][0]+(s*e[t][0]-s*e[t+2][0])/6,e[t+1][1]+(s*e[t][1]-s*e[t+2][1])/6],a[3]=[e[t+1][0],e[t+1][1]],i.push({op:"bcurveTo",data:[a[1][0],a[1][1],a[2][0],a[2][1],a[3][0],a[3][1]]})}if(t&&2===t.length){let e=n.maxRandomnessOffset;i.push({op:"lineTo",data:[t[0]+R(e,n),t[1]+R(e,n)]})}}else 3===r?(i.push({op:"move",data:[e[1][0],e[1][1]]}),i.push({op:"bcurveTo",data:[e[1][0],e[1][1],e[2][0],e[2][1],e[2][0],e[2][1]]})):2===r&&i.push(...D(e[0][0],e[0][1],e[1][0],e[1][1],n,!0,!0));return i}function F(e,t,n,r,i,a,s,o){let l=[],c=[];if(0===o.roughness){e/=4,c.push([t+r*Math.cos(-e),n+i*Math.sin(-e)]);for(let a=0;a<=2*Math.PI;a+=e){let e=[t+r*Math.cos(a),n+i*Math.sin(a)];l.push(e),c.push(e)}c.push([t+ +r,n+0*i]),c.push([t+r*Math.cos(e),n+i*Math.sin(e)])}else{let u=R(.5,o)-Math.PI/2;c.push([R(a,o)+t+.9*r*Math.cos(u-e),R(a,o)+n+.9*i*Math.sin(u-e)]);let h=2*Math.PI+u-.01;for(let s=u;s<h;s+=e){let e=[R(a,o)+t+r*Math.cos(s),R(a,o)+n+i*Math.sin(s)];l.push(e),c.push(e)}c.push([R(a,o)+t+r*Math.cos(u+2*Math.PI+.5*s),R(a,o)+n+i*Math.sin(u+2*Math.PI+.5*s)]),c.push([R(a,o)+t+.98*r*Math.cos(u+s),R(a,o)+n+.98*i*Math.sin(u+s)]),c.push([R(a,o)+t+.9*r*Math.cos(u+.5*s),R(a,o)+n+.9*i*Math.sin(u+.5*s)])}return[c,l]}function B(e,t,n,r,i,a,s,o,l){let c=a+R(.1,l),u=[];u.push([R(o,l)+t+.9*r*Math.cos(c-e),R(o,l)+n+.9*i*Math.sin(c-e)]);for(let a=c;a<=s;a+=e)u.push([R(o,l)+t+r*Math.cos(a),R(o,l)+n+i*Math.sin(a)]);return u.push([t+r*Math.cos(s),n+i*Math.sin(s)]),u.push([t+r*Math.cos(s),n+i*Math.sin(s)]),P(u,null,l)}function H(e,t=0){let n=e.length;if(n<3)throw Error("A curve must have at least three points.");let r=[];if(3===n)r.push([...e[0]],[...e[1]],[...e[2]],[...e[2]]);else{let n=[];n.push(e[0],e[0]);for(let t=1;t<e.length;t++)n.push(e[t]),t===e.length-1&&n.push(e[t]);let i=[],a=1-t;r.push([...n[0]]);for(let e=1;e+2<n.length;e++){let t=n[e];i[0]=[t[0],t[1]],i[1]=[t[0]+(a*n[e+1][0]-a*n[e-1][0])/6,t[1]+(a*n[e+1][1]-a*n[e-1][1])/6],i[2]=[n[e+1][0]+(a*n[e][0]-a*n[e+2][0])/6,n[e+1][1]+(a*n[e][1]-a*n[e+2][1])/6],i[3]=[n[e+1][0],n[e+1][1]],r.push(i[1],i[2],i[3])}}return r}function U(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)}function $(e,t,n){return[e[0]+(t[0]-e[0])*n,e[1]+(t[1]-e[1])*n]}function j(e,t,n,r,i){let a=i||[],s=e[t],o=e[n-1],l=0,c=1;for(let r=t+1;r<n-1;++r){let t=function(e,t,n){let r=U(t,n);if(0===r)return U(e,t);let i=((e[0]-t[0])*(n[0]-t[0])+(e[1]-t[1])*(n[1]-t[1]))/r;return U(e,$(t,n,i=Math.max(0,Math.min(1,i))))}(e[r],s,o);t>l&&(l=t,c=r)}return Math.sqrt(l)>r?(j(e,t,c+1,r,a),j(e,c,n,r,a)):(a.length||a.push(s),a.push(o)),a}function z(e,t=.15,n){let r=[],i=(e.length-1)/3;for(let n=0;n<i;n++)!function e(t,n,r,i){let a,s,o,l,c,u,h,d,p=i||[];if(a=t[n+0],s=t[n+1],o=t[n+2],l=t[n+3],c=3*s[0]-2*a[0]-l[0],c*=c,u=3*s[1]-2*a[1]-l[1],u*=u,h=3*o[0]-2*l[0]-a[0],h*=h,d=3*o[1]-2*l[1]-a[1],d*=d,c<h&&(c=h),u<d&&(u=d),c+u<r){let e=t[n+0];p.length?Math.sqrt(U(p[p.length-1],e))>1&&p.push(e):p.push(e),p.push(t[n+3])}else{let i=t[n+0],a=t[n+1],s=t[n+2],o=t[n+3],l=$(i,a,.5),c=$(a,s,.5),u=$(s,o,.5),h=$(l,c,.5),d=$(c,u,.5),f=$(h,d,.5);e([i,l,h,f],0,r,p),e([f,d,u,o],0,r,p)}return p}(e,3*n,t,r);return n&&n>0?j(r,0,r.length,n):r}let G="none";class V{constructor(e){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=e||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(0x80000000*Math.random())}_o(e){return e?Object.assign({},this.defaultOptions,e):this.defaultOptions}_d(e,t,n){return{shape:e,sets:t||[],options:n||this.defaultOptions}}line(e,t,n,r,i){let a=this._o(i);return this._d("line",[x(e,t,n,r,a)],a)}rectangle(e,t,n,r,i){var a,s,o,l;let c=this._o(i),u=[],h=v([[a=e,s=t],[a+(o=n),s],[a+o,s+(l=r)],[a,s+l]],!0,c);if(c.fill){let i=[[e,t],[e+n,t],[e+n,t+r],[e,t+r]];"solid"===c.fillStyle?u.push(S([i],c)):u.push(C([i],c))}return c.stroke!==G&&u.push(h),this._d("rectangle",u,c)}ellipse(e,t,n,r,i){let a=this._o(i),s=[],o=_(n,r,a),l=T(e,t,a,o);if(a.fill)if("solid"===a.fillStyle){let n=T(e,t,a,o).opset;n.type="fillPath",s.push(n)}else s.push(C([l.estimatedPoints],a));return a.stroke!==G&&s.push(l.opset),this._d("ellipse",s,a)}circle(e,t,n,r){let i=this.ellipse(e,t,n,n,r);return i.shape="circle",i}linearPath(e,t){let n=this._o(t);return this._d("linearPath",[v(e,!1,n)],n)}arc(e,t,n,r,i,a,s=!1,o){let l=this._o(o),c=[],u=A(e,t,n,r,i,a,s,!0,l);if(s&&l.fill)if("solid"===l.fillStyle){let s=Object.assign({},l);s.disableMultiStroke=!0;let o=A(e,t,n,r,i,a,!0,!1,s);o.type="fillPath",c.push(o)}else c.push(function(e,t,n,r,i,a,s){let o=Math.abs(n/2),l=Math.abs(r/2);o+=R(.01*o,s),l+=R(.01*l,s);let c=i,u=a;for(;c<0;)c+=2*Math.PI,u+=2*Math.PI;u-c>2*Math.PI&&(c=0,u=2*Math.PI);let h=(u-c)/s.curveStepCount,d=[];for(let n=c;n<=u;n+=h)d.push([e+o*Math.cos(n),t+l*Math.sin(n)]);return d.push([e+o*Math.cos(u),t+l*Math.sin(u)]),d.push([e,t]),C([d],s)}(e,t,n,r,i,a,l));return l.stroke!==G&&c.push(u),this._d("arc",c,l)}curve(e,t){let n=this._o(t),r=[],i=E(e,n);if(n.fill&&n.fill!==G)if("solid"===n.fillStyle){let t=E(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));r.push({type:"fillPath",ops:this._mergedShape(t.ops)})}else{let t=[];if(e.length)for(let r of"number"==typeof e[0][0]?[e]:e)r.length<3?t.push(...r):3===r.length?t.push(...z(H([r[0],r[0],r[1],r[2]]),10,(1+n.roughness)/2)):t.push(...z(H(r),10,(1+n.roughness)/2));t.length&&r.push(C([t],n))}return n.stroke!==G&&r.push(i),this._d("curve",r,n)}polygon(e,t){let n=this._o(t),r=[],i=v(e,!0,n);return n.fill&&("solid"===n.fillStyle?r.push(S([e],n)):r.push(C([e],n))),n.stroke!==G&&r.push(i),this._d("polygon",r,n)}path(e,t){let n=this._o(t),r=[];if(!e)return this._d("path",r,n);e=(e||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");let i=n.fill&&"transparent"!==n.fill&&n.fill!==G,a=n.stroke!==G,s=!!(n.simplification&&n.simplification<1),o=function(e,t){let n=y(g(m(e))),r=[],i=[],a=[0,0],s=[],o=()=>{s.length>=4&&i.push(...z(s,1)),s=[]},l=()=>{o(),i.length&&(r.push(i),i=[])};for(let{key:e,data:t}of n)switch(e){case"M":l(),a=[t[0],t[1]],i.push(a);break;case"L":o(),i.push([t[0],t[1]]);break;case"C":if(!s.length){let e=i.length?i[i.length-1]:a;s.push([e[0],e[1]])}s.push([t[0],t[1]]),s.push([t[2],t[3]]),s.push([t[4],t[5]]);break;case"Z":o(),i.push([a[0],a[1]])}if(l(),!t)return r;let c=[];for(let e of r){let n=j(e,0,e.length,t);n.length&&c.push(n)}return c}(e,s?4-4*(n.simplification||1):(1+n.roughness)/2),l=w(e,n);if(i)if("solid"===n.fillStyle)if(1===o.length){let t=w(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));r.push({type:"fillPath",ops:this._mergedShape(t.ops)})}else r.push(S(o,n));else r.push(C(o,n));return a&&(s?o.forEach(e=>{r.push(v(e,!1,n))}):r.push(l)),this._d("path",r,n)}opsToPath(e,t){let n="";for(let r of e.ops){let e="number"==typeof t&&t>=0?r.data.map(e=>+e.toFixed(t)):r.data;switch(r.op){case"move":n+=`M${e[0]} ${e[1]} `;break;case"bcurveTo":n+=`C${e[0]} ${e[1]}, ${e[2]} ${e[3]}, ${e[4]} ${e[5]} `;break;case"lineTo":n+=`L${e[0]} ${e[1]} `}}return n.trim()}toPaths(e){let t=e.sets||[],n=e.options||this.defaultOptions,r=[];for(let e of t){let t=null;switch(e.type){case"path":t={d:this.opsToPath(e),stroke:n.stroke,strokeWidth:n.strokeWidth,fill:G};break;case"fillPath":t={d:this.opsToPath(e),stroke:G,strokeWidth:0,fill:n.fill||G};break;case"fillSketch":t=this.fillSketch(e,n)}t&&r.push(t)}return r}fillSketch(e,t){let n=t.fillWeight;return n<0&&(n=t.strokeWidth/2),{d:this.opsToPath(e),stroke:t.fill||G,strokeWidth:n,fill:G}}_mergedShape(e){return e.filter((e,t)=>0===t||"move"!==e.op)}}class K{constructor(e,t){this.canvas=e,this.ctx=this.canvas.getContext("2d"),this.gen=new V(t)}draw(e){let t=e.sets||[],n=e.options||this.getDefaultOptions(),r=this.ctx,i=e.options.fixedDecimalPlaceDigits;for(let a of t)switch(a.type){case"path":r.save(),r.strokeStyle="none"===n.stroke?"transparent":n.stroke,r.lineWidth=n.strokeWidth,n.strokeLineDash&&r.setLineDash(n.strokeLineDash),n.strokeLineDashOffset&&(r.lineDashOffset=n.strokeLineDashOffset),this._drawToContext(r,a,i),r.restore();break;case"fillPath":{r.save(),r.fillStyle=n.fill||"";let t="curve"===e.shape||"polygon"===e.shape||"path"===e.shape?"evenodd":"nonzero";this._drawToContext(r,a,i,t),r.restore();break}case"fillSketch":this.fillSketch(r,a,n)}}fillSketch(e,t,n){let r=n.fillWeight;r<0&&(r=n.strokeWidth/2),e.save(),n.fillLineDash&&e.setLineDash(n.fillLineDash),n.fillLineDashOffset&&(e.lineDashOffset=n.fillLineDashOffset),e.strokeStyle=n.fill||"",e.lineWidth=r,this._drawToContext(e,t,n.fixedDecimalPlaceDigits),e.restore()}_drawToContext(e,t,n,r="nonzero"){for(let r of(e.beginPath(),t.ops)){let t="number"==typeof n&&n>=0?r.data.map(e=>+e.toFixed(n)):r.data;switch(r.op){case"move":e.moveTo(t[0],t[1]);break;case"bcurveTo":e.bezierCurveTo(t[0],t[1],t[2],t[3],t[4],t[5]);break;case"lineTo":e.lineTo(t[0],t[1])}}"fillPath"===t.type?e.fill(r):e.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(e,t,n,r,i){let a=this.gen.line(e,t,n,r,i);return this.draw(a),a}rectangle(e,t,n,r,i){let a=this.gen.rectangle(e,t,n,r,i);return this.draw(a),a}ellipse(e,t,n,r,i){let a=this.gen.ellipse(e,t,n,r,i);return this.draw(a),a}circle(e,t,n,r){let i=this.gen.circle(e,t,n,r);return this.draw(i),i}linearPath(e,t){let n=this.gen.linearPath(e,t);return this.draw(n),n}polygon(e,t){let n=this.gen.polygon(e,t);return this.draw(n),n}arc(e,t,n,r,i,a,s=!1,o){let l=this.gen.arc(e,t,n,r,i,a,s,o);return this.draw(l),l}curve(e,t){let n=this.gen.curve(e,t);return this.draw(n),n}path(e,t){let n=this.gen.path(e,t);return this.draw(n),n}}let W="http://www.w3.org/2000/svg";class q{constructor(e,t){this.svg=e,this.gen=new V(t)}draw(e){let t=e.sets||[],n=e.options||this.getDefaultOptions(),r=this.svg.ownerDocument||window.document,i=r.createElementNS(W,"g"),a=e.options.fixedDecimalPlaceDigits;for(let s of t){let t=null;switch(s.type){case"path":(t=r.createElementNS(W,"path")).setAttribute("d",this.opsToPath(s,a)),t.setAttribute("stroke",n.stroke),t.setAttribute("stroke-width",n.strokeWidth+""),t.setAttribute("fill","none"),n.strokeLineDash&&t.setAttribute("stroke-dasharray",n.strokeLineDash.join(" ").trim()),n.strokeLineDashOffset&&t.setAttribute("stroke-dashoffset",`${n.strokeLineDashOffset}`);break;case"fillPath":(t=r.createElementNS(W,"path")).setAttribute("d",this.opsToPath(s,a)),t.setAttribute("stroke","none"),t.setAttribute("stroke-width","0"),t.setAttribute("fill",n.fill||""),"curve"!==e.shape&&"polygon"!==e.shape||t.setAttribute("fill-rule","evenodd");break;case"fillSketch":t=this.fillSketch(r,s,n)}t&&i.appendChild(t)}return i}fillSketch(e,t,n){let r=n.fillWeight;r<0&&(r=n.strokeWidth/2);let i=e.createElementNS(W,"path");return i.setAttribute("d",this.opsToPath(t,n.fixedDecimalPlaceDigits)),i.setAttribute("stroke",n.fill||""),i.setAttribute("stroke-width",r+""),i.setAttribute("fill","none"),n.fillLineDash&&i.setAttribute("stroke-dasharray",n.fillLineDash.join(" ").trim()),n.fillLineDashOffset&&i.setAttribute("stroke-dashoffset",`${n.fillLineDashOffset}`),i}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(e,t){return this.gen.opsToPath(e,t)}line(e,t,n,r,i){let a=this.gen.line(e,t,n,r,i);return this.draw(a)}rectangle(e,t,n,r,i){let a=this.gen.rectangle(e,t,n,r,i);return this.draw(a)}ellipse(e,t,n,r,i){let a=this.gen.ellipse(e,t,n,r,i);return this.draw(a)}circle(e,t,n,r){let i=this.gen.circle(e,t,n,r);return this.draw(i)}linearPath(e,t){let n=this.gen.linearPath(e,t);return this.draw(n)}polygon(e,t){let n=this.gen.polygon(e,t);return this.draw(n)}arc(e,t,n,r,i,a,s=!1,o){let l=this.gen.arc(e,t,n,r,i,a,s,o);return this.draw(l)}curve(e,t){let n=this.gen.curve(e,t);return this.draw(n)}path(e,t){let n=this.gen.path(e,t);return this.draw(n)}}var Y={canvas:(e,t)=>new K(e,t),svg:(e,t)=>new q(e,t),generator:e=>new V(e),newSeed:()=>V.newSeed()}},62275:(e,t,n)=>{"use strict";function r(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}n.d(t,{D:()=>r})},62513:(e,t,n)=>{"use strict";n.d(t,{A:()=>cK,C:()=>cq,c:()=>oS,f:()=>oZ,l:()=>cX});var r={};n.r(r),n.d(r,{attentionMarkers:()=>aT,contentInitial:()=>ab,disable:()=>aA,document:()=>ay,flow:()=>ax,flowInitial:()=>ak,insideSpan:()=>a_,string:()=>av,text:()=>aE});var i=n(69266),a=n(44382),s=n(72034);let o="indicator",l="text-only",c="remove";function u(e,t){if("string"!=typeof e)return null;try{return new URL(e)}catch{if(t)try{return new URL(e,t)}catch{return null}if(e.startsWith("/")||e.startsWith("./")||e.startsWith("../"))try{return new URL(e,"http://example.com")}catch{}return null}}let h=new Set(["https:","http:","irc:","ircs:","mailto:","xmpp:","blob:"]),d=new Set(["javascript:","data:","file:","vbscript:"]);function p(e,t,n,r=!1,i=!1,a=[]){if(!e)return null;if("string"==typeof e&&e.startsWith("#")&&!i)try{if(new URL(e,"http://example.com").hash===e)return e}catch{}if("string"==typeof e&&e.startsWith("data:"))return i&&r&&e.startsWith("data:image/")?e:null;if("string"==typeof e&&e.startsWith("blob:")){try{let t=new URL(e);if("blob:"===t.protocol&&e.length>5){let t=e.substring(5);if(t&&t.length>0&&"invalid"!==t)return e}}catch{}return null}let s=u(e,n);if(!s||d.has(s.protocol)||!(h.has(s.protocol)||a.includes(s.protocol)||a.includes("*")))return null;if("mailto:"===s.protocol||!s.protocol.match(/^https?:$/))return s.href;let o="string"==typeof e&&(e.startsWith("/")||e.startsWith("./")||e.startsWith("../"));return s&&t.some(e=>{let t=u(e,n);return!!t&&t.origin===s.origin&&s.href.startsWith(t.href)})?o?s.pathname+s.search+s.hash:s.href:t.includes("*")?"https:"!==s.protocol&&"http:"!==s.protocol?null:o?s.pathname+s.search+s.hash:s.href:null}let f=Symbol("node-seen"),m="object"==typeof self?self:globalThis,g=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw TypeError("unable to deserialize "+e)}return new m[e](t)},y=e=>{var t;let n,r;return(t=new Map,n=(e,n)=>(t.set(n,e),e),r=i=>{if(t.has(i))return t.get(i);let[a,s]=e[i];switch(a){case 0:case -1:return n(s,i);case 1:{let e=n([],i);for(let t of s)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of s)e[r(t)]=r(n);return e}case 3:return n(new Date(s),i);case 4:{let{source:e,flags:t}=s;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of s)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of s)e.add(r(t));return e}case 7:{let{name:e,message:t}=s;return n("function"==typeof m[e]?g(e,t):Error(t),i)}case 8:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{let{buffer:e}=new Uint8Array(s);return n(new DataView(e),s)}}return n(g(a,s),i)})(0)},{toString:b}={},{keys:k}=Object,x=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=b.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:e instanceof Error?[7,e.name||"Error"]:[2,n]},v=([e,t])=>0===e&&("function"===t||"symbol"===t),E=(e,{json:t,lossy:n}={})=>{var r,i,a;let s,o,l=[];return(r=!(t||n),i=!!t,a=new Map,s=(e,t)=>{let n=l.push(e)-1;return a.set(t,n),n},o=e=>{if(a.has(e))return a.get(e);let[t,n]=x(e);switch(t){case 0:{let i=e;switch(n){case"bigint":t=8,i=e.toString();break;case"function":case"symbol":if(r)throw TypeError("unable to serialize "+n);i=null;break;case"undefined":return s([-1],e)}return s([t,i],e)}case 1:{if(n){let t=e;return"DataView"===n?t=new Uint8Array(e.buffer):"ArrayBuffer"===n&&(t=new Uint8Array(e)),s([n,[...t]],e)}let r=[],i=s([t,r],e);for(let t of e)r.push(o(t));return i}case 2:{if(n)switch(n){case"BigInt":return s([n,e.toString()],e);case"Boolean":case"Number":case"String":return s([n,e.valueOf()],e)}if(i&&"toJSON"in e)return o(e.toJSON());let a=[],l=s([t,a],e);for(let t of k(e))(r||!v(x(e[t])))&&a.push([o(t),o(e[t])]);return l}case 3:return s([t,isNaN(e.getTime())?"":e.toISOString()],e);case 4:{let{source:n,flags:r}=e;return s([t,{source:n,flags:r}],e)}case 5:{let n=[],i=s([t,n],e);for(let[t,i]of e)(r||!(v(x(t))||v(x(i))))&&n.push([o(t),o(i)]);return i}case 6:{let n=[],i=s([t,n],e);for(let t of e)(r||!v(x(t)))&&n.push(o(t));return i}}let{message:l}=e;return s([t,{name:n,message:l}],e)})(e),l},_="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?y(E(e,t)):structuredClone(e):(e,t)=>y(E(e,t));var T=n(94703),A=n(56227),w=n(55947),S=n(64752);function C(e,t){let n=e.indexOf("\r",t),r=e.indexOf("\n",t);return -1===r?n:-1===n||n+1===r?r:n<r?n:r}var N=n(24987);let M={}.hasOwnProperty,I=Object.prototype;function R(e,t){let n;switch(t.nodeName){case"#comment":return n={type:"comment",value:t.data},D(e,t,n),n;case"#document":case"#document-fragment":{let r="mode"in t&&("quirks"===t.mode||"limited-quirks"===t.mode);if(n={type:"root",children:L(e,t.childNodes),data:{quirksMode:r}},e.file&&e.location){let t,r,i=String(e.file),a=(t=String(i),r=[],{toOffset:function(e){if(e&&"number"==typeof e.line&&"number"==typeof e.column&&!Number.isNaN(e.line)&&!Number.isNaN(e.column)){for(;r.length<e.line;){let e=r[r.length-1],n=C(t,e),i=-1===n?t.length+1:n+1;if(e===i)break;r.push(i)}let n=(e.line>1?r[e.line-2]:0)+e.column-1;if(n<r[e.line-1])return n}},toPoint:function(e){if("number"==typeof e&&e>-1&&e<=t.length){let n=0;for(;;){let i=r[n];if(void 0===i){let e=C(t,r[n-1]);i=-1===e?t.length+1:e+1,r[n]=i}if(i>e)return{line:n+1,column:e-(n>0?r[n-1]:0)+1,offset:e};n++}}}}),s=a.toPoint(0),o=a.toPoint(i.length);(0,T.ok)(s,"expected `start`"),(0,T.ok)(o,"expected `end`"),n.position={start:s,end:o}}return n}case"#documentType":return D(e,t,n={type:"doctype"}),n;case"#text":return n={type:"text",value:t.value},D(e,t,n),n;default:return function(e,t){let n=e.schema;e.schema=t.namespaceURI===N.t.svg?w.JW:w.qy;let r=-1,i={};for(;++r<t.attrs.length;){let e=t.attrs[r],n=(e.prefix?e.prefix+":":"")+e.name;M.call(I,n)||(i[n]=e.value)}let a=("svg"===e.schema.space?A.s:A.h)(t.tagName,i,L(e,t.childNodes));if(D(e,t,a),"template"===a.tagName){let n=t.sourceCodeLocation,r=n&&n.startTag&&O(n.startTag),i=n&&n.endTag&&O(n.endTag),s=R(e,t.content);r&&i&&e.file&&(s.position={start:r.end,end:i.start}),a.content=s}return e.schema=n,a}(e,t)}}function L(e,t){let n=-1,r=[];for(;++n<t.length;){let i=R(e,t[n]);r.push(i)}return r}function D(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){let r=function(e,t,n){let r=O(n);if("element"===t.type){let i=t.children[t.children.length-1];if(r&&!n.endTag&&i&&i.position&&i.position.end&&(r.end=Object.assign({},i.position.end)),e.verbose){let r,i={};if(n.attrs)for(r in n.attrs)M.call(n.attrs,r)&&(i[(0,S.I)(e.schema,r).property]=O(n.attrs[r]));(0,T.ok)(n.startTag,"a start tag should exist");let a=O(n.startTag),s=n.endTag?O(n.endTag):void 0,o={opening:a};s&&(o.closing=s),o.properties=i,t.data={position:o}}}return r}(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function O(e){let t=P({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=P({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function P(e){return e.line&&e.column?e:void 0}var F=n(38105),B=n(13766),H=n(40156);let U={}.hasOwnProperty,$=(0,H.A)("type",{handlers:{root:function(e,t){let n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=j(e.children,n,t),z(e,n),n},element:function(e,t){var n,r;let i,a,s=t;"element"===e.type&&"svg"===e.tagName.toLowerCase()&&"html"===t.space&&(s=w.JW);let o=[];if(e.properties){for(i in e.properties)if("children"!==i&&U.call(e.properties,i)){let t=function(e,t,n){let r=(0,S.I)(e,t);if(!1===n||null==n||"number"==typeof n&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?(0,F.A)(n):(0,B.A)(n));let i={name:r.attribute,value:!0===n?"":String(n)};if(r.space&&"html"!==r.space&&"svg"!==r.space){let e=i.name.indexOf(":");e<0?i.prefix="":(i.name=i.name.slice(e+1),i.prefix=r.attribute.slice(0,e)),i.namespace=N.t[r.space]}return i}(s,i,e.properties[i]);t&&o.push(t)}}let l=s.space;(0,T.ok)(l);let c={nodeName:e.tagName,tagName:e.tagName,attrs:o,namespaceURI:N.t[l],childNodes:[],parentNode:null};return c.childNodes=j(e.children,c,s),z(e,c),"template"===e.tagName&&e.content&&(n=e.content,r=s,(a={nodeName:"#document-fragment",childNodes:[]}).childNodes=j(n.children,a,r),z(n,a),c.content=a),c},text:function(e){let t={nodeName:"#text",value:e.value,parentNode:null};return z(e,t),t},comment:function(e){let t={nodeName:"#comment",data:e.value,parentNode:null};return z(e,t),t},doctype:function(e){let t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return z(e,t),t}}});function j(e,t,n){let r=-1,i=[];if(e)for(;++r<e.length;){let a=$(e[r],n);a.parentNode=t,i.push(a)}return i}function z(e,t){let n=e.position;n&&n.start&&n.end&&((0,T.ok)("number"==typeof n.start.offset),(0,T.ok)("number"==typeof n.end.offset),t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}var G=n(58771);let V=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]);(lU=l1||(l1={}))[lU.EOF=-1]="EOF",lU[lU.NULL=0]="NULL",lU[lU.TABULATION=9]="TABULATION",lU[lU.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",lU[lU.LINE_FEED=10]="LINE_FEED",lU[lU.FORM_FEED=12]="FORM_FEED",lU[lU.SPACE=32]="SPACE",lU[lU.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",lU[lU.QUOTATION_MARK=34]="QUOTATION_MARK",lU[lU.AMPERSAND=38]="AMPERSAND",lU[lU.APOSTROPHE=39]="APOSTROPHE",lU[lU.HYPHEN_MINUS=45]="HYPHEN_MINUS",lU[lU.SOLIDUS=47]="SOLIDUS",lU[lU.DIGIT_0=48]="DIGIT_0",lU[lU.DIGIT_9=57]="DIGIT_9",lU[lU.SEMICOLON=59]="SEMICOLON",lU[lU.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",lU[lU.EQUALS_SIGN=61]="EQUALS_SIGN",lU[lU.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",lU[lU.QUESTION_MARK=63]="QUESTION_MARK",lU[lU.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",lU[lU.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",lU[lU.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",lU[lU.GRAVE_ACCENT=96]="GRAVE_ACCENT",lU[lU.LATIN_SMALL_A=97]="LATIN_SMALL_A",lU[lU.LATIN_SMALL_Z=122]="LATIN_SMALL_Z";let K="[CDATA[",W="doctype",q="script";function Y(e){return e>=55296&&e<=57343}function X(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159}function Q(e){return e>=64976&&e<=65007||V.has(e)}(l$=l2||(l2={})).controlCharacterInInputStream="control-character-in-input-stream",l$.noncharacterInInputStream="noncharacter-in-input-stream",l$.surrogateInInputStream="surrogate-in-input-stream",l$.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",l$.endTagWithAttributes="end-tag-with-attributes",l$.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",l$.unexpectedSolidusInTag="unexpected-solidus-in-tag",l$.unexpectedNullCharacter="unexpected-null-character",l$.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",l$.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",l$.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",l$.missingEndTagName="missing-end-tag-name",l$.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",l$.unknownNamedCharacterReference="unknown-named-character-reference",l$.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",l$.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",l$.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",l$.eofBeforeTagName="eof-before-tag-name",l$.eofInTag="eof-in-tag",l$.missingAttributeValue="missing-attribute-value",l$.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",l$.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",l$.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",l$.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",l$.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",l$.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",l$.missingDoctypePublicIdentifier="missing-doctype-public-identifier",l$.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",l$.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",l$.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",l$.cdataInHtmlContent="cdata-in-html-content",l$.incorrectlyOpenedComment="incorrectly-opened-comment",l$.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",l$.eofInDoctype="eof-in-doctype",l$.nestedComment="nested-comment",l$.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",l$.eofInComment="eof-in-comment",l$.incorrectlyClosedComment="incorrectly-closed-comment",l$.eofInCdata="eof-in-cdata",l$.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",l$.nullCharacterReference="null-character-reference",l$.surrogateCharacterReference="surrogate-character-reference",l$.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",l$.controlCharacterReference="control-character-reference",l$.noncharacterCharacterReference="noncharacter-character-reference",l$.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",l$.missingDoctypeName="missing-doctype-name",l$.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",l$.duplicateAttribute="duplicate-attribute",l$.nonConformingDoctype="non-conforming-doctype",l$.missingDoctype="missing-doctype",l$.misplacedDoctype="misplaced-doctype",l$.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",l$.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",l$.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",l$.openElementsLeftAfterEof="open-elements-left-after-eof",l$.abandonedHeadElementChild="abandoned-head-element-child",l$.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",l$.nestedNoscriptInHead="nested-noscript-in-head",l$.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text";class Z{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,t){let{line:n,col:r,offset:i}=this,a=r+t,s=i+t;return{code:e,startLine:n,endLine:n,startCol:a,endCol:a,startOffset:s,endOffset:s}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){let t=this.html.charCodeAt(this.pos+1);if(t>=56320&&t<=57343)return this.pos++,this._addGap(),(e-55296)*1024+9216+t}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,l1.EOF;return this._err(l2.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let t=0;t<e.length;t++)if((32|this.html.charCodeAt(this.pos+t))!==e.charCodeAt(t))return!1;return!0}peek(e){let t=this.pos+e;if(t>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,l1.EOF;let n=this.html.charCodeAt(t);return n===l1.CARRIAGE_RETURN?l1.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,l1.EOF;let e=this.html.charCodeAt(this.pos);return e===l1.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,l1.LINE_FEED):e===l1.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Y(e)&&(e=this._processSurrogate(e)),null===this.handler.onParseError||e>31&&e<127||e===l1.LINE_FEED||e===l1.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){X(e)?this._err(l2.controlCharacterInInputStream):Q(e)&&this._err(l2.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}function J(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}(lj=l5||(l5={}))[lj.CHARACTER=0]="CHARACTER",lj[lj.NULL_CHARACTER=1]="NULL_CHARACTER",lj[lj.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",lj[lj.START_TAG=3]="START_TAG",lj[lj.END_TAG=4]="END_TAG",lj[lj.COMMENT=5]="COMMENT",lj[lj.DOCTYPE=6]="DOCTYPE",lj[lj.EOF=7]="EOF",lj[lj.HIBERNATION=8]="HIBERNATION";let ee=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\xf2JTabcdfgorstרׯؒؖ؛؝أ٬ٲ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૦\xeberyThi\xeetedĀGLଆreaterGreate\xf2ٳessLes\xf3ੈLine;䀊r;쀀\uD835\uDD11ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢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;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀\uD835\uDD13i;䎦;䎠usMinus;䂱Āipຢອncareplan\xe5ڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀\uD835\uDCAB;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀\uD835\uDD14pf;愚cr;쀀\uD835\uDCACBEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾ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\xbbpArrow;憑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ǣጓ\0y;䐎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\xe8a;䎖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Ā;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰s\xe9ᜌno\xf5ēƀahwᝯᝳ;䎲;愶een;扬r;쀀\uD835\uDD1Fgcostuvwឍឝឳេ៕៛ƀ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Ā;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t\xbbpƀ;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;䄍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\0aĀ;t䀬;䁀ƀ;fl戁\xeeᅠeĀmxent\xbbe\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\xf2ar;楥Ȁ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ↄⅪ←ٖ↛ǰ↉\0pro\xf8r;楸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䃭ƀ;iyݱ⊰⊵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\uDCC0ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀ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┩;䐻Ȁ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\xf3quigarro\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\xf8urĀ;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;椨\xedistĀ;sடr;쀀\uD835\uDD2BȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lan\xf4i\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\xecl;쀀⫽⃥;쀀∂̸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;䅓Ācrir;榿;쀀\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Ȁ;astЃ脀\xb6;l䂶le\xecЃɩ\0\0m;櫳;櫽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⾴\xefrel;抰Ā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\xf3arpoon\xf3Ցightarrows;應quigarro\xf7ニhreetimes;拌g;䋚ingdotse\xf1ἲƀahm㈍㈐㈓r\xf2a\xf2Ց;怏oustĀ;a㈞掱che\xbbmid;櫮Ȁ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\xf8im\xbbኬs\xf0ኞĀas㚺㚮\xf0rn耻\xfe䃾Ǭ̟㛆⋧es膀\xd7;bd㛏㛐㛘䃗Ā;aᤏ㛕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\xf4headĀ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\xf0tr\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))),et=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]]);function en(e){return e>=l3.ZERO&&e<=l3.NINE}(lz=l3||(l3={}))[lz.NUM=35]="NUM",lz[lz.SEMI=59]="SEMI",lz[lz.EQUALS=61]="EQUALS",lz[lz.ZERO=48]="ZERO",lz[lz.NINE=57]="NINE",lz[lz.LOWER_A=97]="LOWER_A",lz[lz.LOWER_F=102]="LOWER_F",lz[lz.LOWER_X=120]="LOWER_X",lz[lz.LOWER_Z=122]="LOWER_Z",lz[lz.UPPER_A=65]="UPPER_A",lz[lz.UPPER_F=70]="UPPER_F",lz[lz.UPPER_Z=90]="UPPER_Z",(lG=l6||(l6={}))[lG.VALUE_LENGTH=49152]="VALUE_LENGTH",lG[lG.BRANCH_LENGTH=16256]="BRANCH_LENGTH",lG[lG.JUMP_TABLE=127]="JUMP_TABLE",(lV=l9||(l9={}))[lV.EntityStart=0]="EntityStart",lV[lV.NumericStart=1]="NumericStart",lV[lV.NumericDecimal=2]="NumericDecimal",lV[lV.NumericHex=3]="NumericHex",lV[lV.NamedEntity=4]="NamedEntity",(lK=l4||(l4={}))[lK.Legacy=0]="Legacy",lK[lK.Strict=1]="Strict",lK[lK.Attribute=2]="Attribute";class er{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=l9.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=l4.Strict}startEntity(e){this.decodeMode=e,this.state=l9.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case l9.EntityStart:if(e.charCodeAt(t)===l3.NUM)return this.state=l9.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1);return this.state=l9.NamedEntity,this.stateNamedEntity(e,t);case l9.NumericStart:return this.stateNumericStart(e,t);case l9.NumericDecimal:return this.stateNumericDecimal(e,t);case l9.NumericHex:return this.stateNumericHex(e,t);case l9.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===l3.LOWER_X?(this.state=l9.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=l9.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){let i=n-t;this.result=this.result*Math.pow(r,i)+Number.parseInt(e.substr(t,i),r),this.consumed+=i}}stateNumericHex(e,t){let n=t;for(;t<e.length;){var r;let i=e.charCodeAt(t);if(!en(i)&&(!((r=i)>=l3.UPPER_A)||!(r<=l3.UPPER_F))&&(!(r>=l3.LOWER_A)||!(r<=l3.LOWER_F)))return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(i,3);t+=1}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){let n=t;for(;t<e.length;){let r=e.charCodeAt(t);if(!en(r))return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2);t+=1}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n,r,i;if(this.consumed<=t)return null==(n=this.errors)||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===l3.SEMI)this.consumed+=1;else if(this.decodeMode===l4.Strict)return 0;return this.emitCodePoint((r=this.result)>=55296&&r<=57343||r>1114111?65533:null!=(i=et.get(r))?i:r,this.consumed),this.errors&&(e!==l3.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:n}=this,r=n[this.treeIndex],i=(r&l6.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){let a=e.charCodeAt(t);if(this.treeIndex=function(e,t,n,r){let i=(t&l6.BRANCH_LENGTH)>>7,a=t&l6.JUMP_TABLE;if(0===i)return 0!==a&&r===a?n:-1;if(a){let t=r-a;return t<0||t>=i?-1:e[n+t]-1}let s=n,o=s+i-1;for(;s<=o;){let t=s+o>>>1,n=e[t];if(n<r)s=t+1;else{if(!(n>r))return e[t+i];o=t-1}}return -1}(n,r,this.treeIndex+Math.max(1,i),a),this.treeIndex<0)return 0===this.result||this.decodeMode===l4.Attribute&&(0===i||function(e){var t;return e===l3.EQUALS||(t=e)>=l3.UPPER_A&&t<=l3.UPPER_Z||t>=l3.LOWER_A&&t<=l3.LOWER_Z||en(t)}(a))?0:this.emitNotTerminatedNamedEntity();if(0!=(i=((r=n[this.treeIndex])&l6.VALUE_LENGTH)>>14)){if(a===l3.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==l4.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return -1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:n}=this,r=(n[t]&l6.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),null==(e=this.errors)||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){let{decodeTree:r}=this;return this.emitCodePoint(1===t?r[e]&~l6.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case l9.NamedEntity:return 0!==this.result&&(this.decodeMode!==l4.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case l9.NumericDecimal:return this.emitNumericEntity(0,2);case l9.NumericHex:return this.emitNumericEntity(0,3);case l9.NumericStart:return null==(e=this.errors)||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case l9.EntityStart:return 0}}}(lW=l8||(l8={})).HTML="http://www.w3.org/1999/xhtml",lW.MATHML="http://www.w3.org/1998/Math/MathML",lW.SVG="http://www.w3.org/2000/svg",lW.XLINK="http://www.w3.org/1999/xlink",lW.XML="http://www.w3.org/XML/1998/namespace",lW.XMLNS="http://www.w3.org/2000/xmlns/",(lq=l7||(l7={})).TYPE="type",lq.ACTION="action",lq.ENCODING="encoding",lq.PROMPT="prompt",lq.NAME="name",lq.COLOR="color",lq.FACE="face",lq.SIZE="size",(lY=ce||(ce={})).NO_QUIRKS="no-quirks",lY.QUIRKS="quirks",lY.LIMITED_QUIRKS="limited-quirks",(lX=ct||(ct={})).A="a",lX.ADDRESS="address",lX.ANNOTATION_XML="annotation-xml",lX.APPLET="applet",lX.AREA="area",lX.ARTICLE="article",lX.ASIDE="aside",lX.B="b",lX.BASE="base",lX.BASEFONT="basefont",lX.BGSOUND="bgsound",lX.BIG="big",lX.BLOCKQUOTE="blockquote",lX.BODY="body",lX.BR="br",lX.BUTTON="button",lX.CAPTION="caption",lX.CENTER="center",lX.CODE="code",lX.COL="col",lX.COLGROUP="colgroup",lX.DD="dd",lX.DESC="desc",lX.DETAILS="details",lX.DIALOG="dialog",lX.DIR="dir",lX.DIV="div",lX.DL="dl",lX.DT="dt",lX.EM="em",lX.EMBED="embed",lX.FIELDSET="fieldset",lX.FIGCAPTION="figcaption",lX.FIGURE="figure",lX.FONT="font",lX.FOOTER="footer",lX.FOREIGN_OBJECT="foreignObject",lX.FORM="form",lX.FRAME="frame",lX.FRAMESET="frameset",lX.H1="h1",lX.H2="h2",lX.H3="h3",lX.H4="h4",lX.H5="h5",lX.H6="h6",lX.HEAD="head",lX.HEADER="header",lX.HGROUP="hgroup",lX.HR="hr",lX.HTML="html",lX.I="i",lX.IMG="img",lX.IMAGE="image",lX.INPUT="input",lX.IFRAME="iframe",lX.KEYGEN="keygen",lX.LABEL="label",lX.LI="li",lX.LINK="link",lX.LISTING="listing",lX.MAIN="main",lX.MALIGNMARK="malignmark",lX.MARQUEE="marquee",lX.MATH="math",lX.MENU="menu",lX.META="meta",lX.MGLYPH="mglyph",lX.MI="mi",lX.MO="mo",lX.MN="mn",lX.MS="ms",lX.MTEXT="mtext",lX.NAV="nav",lX.NOBR="nobr",lX.NOFRAMES="noframes",lX.NOEMBED="noembed",lX.NOSCRIPT="noscript",lX.OBJECT="object",lX.OL="ol",lX.OPTGROUP="optgroup",lX.OPTION="option",lX.P="p",lX.PARAM="param",lX.PLAINTEXT="plaintext",lX.PRE="pre",lX.RB="rb",lX.RP="rp",lX.RT="rt",lX.RTC="rtc",lX.RUBY="ruby",lX.S="s",lX.SCRIPT="script",lX.SEARCH="search",lX.SECTION="section",lX.SELECT="select",lX.SOURCE="source",lX.SMALL="small",lX.SPAN="span",lX.STRIKE="strike",lX.STRONG="strong",lX.STYLE="style",lX.SUB="sub",lX.SUMMARY="summary",lX.SUP="sup",lX.TABLE="table",lX.TBODY="tbody",lX.TEMPLATE="template",lX.TEXTAREA="textarea",lX.TFOOT="tfoot",lX.TD="td",lX.TH="th",lX.THEAD="thead",lX.TITLE="title",lX.TR="tr",lX.TRACK="track",lX.TT="tt",lX.U="u",lX.UL="ul",lX.SVG="svg",lX.VAR="var",lX.WBR="wbr",lX.XMP="xmp",(lQ=cn||(cn={}))[lQ.UNKNOWN=0]="UNKNOWN",lQ[lQ.A=1]="A",lQ[lQ.ADDRESS=2]="ADDRESS",lQ[lQ.ANNOTATION_XML=3]="ANNOTATION_XML",lQ[lQ.APPLET=4]="APPLET",lQ[lQ.AREA=5]="AREA",lQ[lQ.ARTICLE=6]="ARTICLE",lQ[lQ.ASIDE=7]="ASIDE",lQ[lQ.B=8]="B",lQ[lQ.BASE=9]="BASE",lQ[lQ.BASEFONT=10]="BASEFONT",lQ[lQ.BGSOUND=11]="BGSOUND",lQ[lQ.BIG=12]="BIG",lQ[lQ.BLOCKQUOTE=13]="BLOCKQUOTE",lQ[lQ.BODY=14]="BODY",lQ[lQ.BR=15]="BR",lQ[lQ.BUTTON=16]="BUTTON",lQ[lQ.CAPTION=17]="CAPTION",lQ[lQ.CENTER=18]="CENTER",lQ[lQ.CODE=19]="CODE",lQ[lQ.COL=20]="COL",lQ[lQ.COLGROUP=21]="COLGROUP",lQ[lQ.DD=22]="DD",lQ[lQ.DESC=23]="DESC",lQ[lQ.DETAILS=24]="DETAILS",lQ[lQ.DIALOG=25]="DIALOG",lQ[lQ.DIR=26]="DIR",lQ[lQ.DIV=27]="DIV",lQ[lQ.DL=28]="DL",lQ[lQ.DT=29]="DT",lQ[lQ.EM=30]="EM",lQ[lQ.EMBED=31]="EMBED",lQ[lQ.FIELDSET=32]="FIELDSET",lQ[lQ.FIGCAPTION=33]="FIGCAPTION",lQ[lQ.FIGURE=34]="FIGURE",lQ[lQ.FONT=35]="FONT",lQ[lQ.FOOTER=36]="FOOTER",lQ[lQ.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",lQ[lQ.FORM=38]="FORM",lQ[lQ.FRAME=39]="FRAME",lQ[lQ.FRAMESET=40]="FRAMESET",lQ[lQ.H1=41]="H1",lQ[lQ.H2=42]="H2",lQ[lQ.H3=43]="H3",lQ[lQ.H4=44]="H4",lQ[lQ.H5=45]="H5",lQ[lQ.H6=46]="H6",lQ[lQ.HEAD=47]="HEAD",lQ[lQ.HEADER=48]="HEADER",lQ[lQ.HGROUP=49]="HGROUP",lQ[lQ.HR=50]="HR",lQ[lQ.HTML=51]="HTML",lQ[lQ.I=52]="I",lQ[lQ.IMG=53]="IMG",lQ[lQ.IMAGE=54]="IMAGE",lQ[lQ.INPUT=55]="INPUT",lQ[lQ.IFRAME=56]="IFRAME",lQ[lQ.KEYGEN=57]="KEYGEN",lQ[lQ.LABEL=58]="LABEL",lQ[lQ.LI=59]="LI",lQ[lQ.LINK=60]="LINK",lQ[lQ.LISTING=61]="LISTING",lQ[lQ.MAIN=62]="MAIN",lQ[lQ.MALIGNMARK=63]="MALIGNMARK",lQ[lQ.MARQUEE=64]="MARQUEE",lQ[lQ.MATH=65]="MATH",lQ[lQ.MENU=66]="MENU",lQ[lQ.META=67]="META",lQ[lQ.MGLYPH=68]="MGLYPH",lQ[lQ.MI=69]="MI",lQ[lQ.MO=70]="MO",lQ[lQ.MN=71]="MN",lQ[lQ.MS=72]="MS",lQ[lQ.MTEXT=73]="MTEXT",lQ[lQ.NAV=74]="NAV",lQ[lQ.NOBR=75]="NOBR",lQ[lQ.NOFRAMES=76]="NOFRAMES",lQ[lQ.NOEMBED=77]="NOEMBED",lQ[lQ.NOSCRIPT=78]="NOSCRIPT",lQ[lQ.OBJECT=79]="OBJECT",lQ[lQ.OL=80]="OL",lQ[lQ.OPTGROUP=81]="OPTGROUP",lQ[lQ.OPTION=82]="OPTION",lQ[lQ.P=83]="P",lQ[lQ.PARAM=84]="PARAM",lQ[lQ.PLAINTEXT=85]="PLAINTEXT",lQ[lQ.PRE=86]="PRE",lQ[lQ.RB=87]="RB",lQ[lQ.RP=88]="RP",lQ[lQ.RT=89]="RT",lQ[lQ.RTC=90]="RTC",lQ[lQ.RUBY=91]="RUBY",lQ[lQ.S=92]="S",lQ[lQ.SCRIPT=93]="SCRIPT",lQ[lQ.SEARCH=94]="SEARCH",lQ[lQ.SECTION=95]="SECTION",lQ[lQ.SELECT=96]="SELECT",lQ[lQ.SOURCE=97]="SOURCE",lQ[lQ.SMALL=98]="SMALL",lQ[lQ.SPAN=99]="SPAN",lQ[lQ.STRIKE=100]="STRIKE",lQ[lQ.STRONG=101]="STRONG",lQ[lQ.STYLE=102]="STYLE",lQ[lQ.SUB=103]="SUB",lQ[lQ.SUMMARY=104]="SUMMARY",lQ[lQ.SUP=105]="SUP",lQ[lQ.TABLE=106]="TABLE",lQ[lQ.TBODY=107]="TBODY",lQ[lQ.TEMPLATE=108]="TEMPLATE",lQ[lQ.TEXTAREA=109]="TEXTAREA",lQ[lQ.TFOOT=110]="TFOOT",lQ[lQ.TD=111]="TD",lQ[lQ.TH=112]="TH",lQ[lQ.THEAD=113]="THEAD",lQ[lQ.TITLE=114]="TITLE",lQ[lQ.TR=115]="TR",lQ[lQ.TRACK=116]="TRACK",lQ[lQ.TT=117]="TT",lQ[lQ.U=118]="U",lQ[lQ.UL=119]="UL",lQ[lQ.SVG=120]="SVG",lQ[lQ.VAR=121]="VAR",lQ[lQ.WBR=122]="WBR",lQ[lQ.XMP=123]="XMP";let ei=new Map([[ct.A,cn.A],[ct.ADDRESS,cn.ADDRESS],[ct.ANNOTATION_XML,cn.ANNOTATION_XML],[ct.APPLET,cn.APPLET],[ct.AREA,cn.AREA],[ct.ARTICLE,cn.ARTICLE],[ct.ASIDE,cn.ASIDE],[ct.B,cn.B],[ct.BASE,cn.BASE],[ct.BASEFONT,cn.BASEFONT],[ct.BGSOUND,cn.BGSOUND],[ct.BIG,cn.BIG],[ct.BLOCKQUOTE,cn.BLOCKQUOTE],[ct.BODY,cn.BODY],[ct.BR,cn.BR],[ct.BUTTON,cn.BUTTON],[ct.CAPTION,cn.CAPTION],[ct.CENTER,cn.CENTER],[ct.CODE,cn.CODE],[ct.COL,cn.COL],[ct.COLGROUP,cn.COLGROUP],[ct.DD,cn.DD],[ct.DESC,cn.DESC],[ct.DETAILS,cn.DETAILS],[ct.DIALOG,cn.DIALOG],[ct.DIR,cn.DIR],[ct.DIV,cn.DIV],[ct.DL,cn.DL],[ct.DT,cn.DT],[ct.EM,cn.EM],[ct.EMBED,cn.EMBED],[ct.FIELDSET,cn.FIELDSET],[ct.FIGCAPTION,cn.FIGCAPTION],[ct.FIGURE,cn.FIGURE],[ct.FONT,cn.FONT],[ct.FOOTER,cn.FOOTER],[ct.FOREIGN_OBJECT,cn.FOREIGN_OBJECT],[ct.FORM,cn.FORM],[ct.FRAME,cn.FRAME],[ct.FRAMESET,cn.FRAMESET],[ct.H1,cn.H1],[ct.H2,cn.H2],[ct.H3,cn.H3],[ct.H4,cn.H4],[ct.H5,cn.H5],[ct.H6,cn.H6],[ct.HEAD,cn.HEAD],[ct.HEADER,cn.HEADER],[ct.HGROUP,cn.HGROUP],[ct.HR,cn.HR],[ct.HTML,cn.HTML],[ct.I,cn.I],[ct.IMG,cn.IMG],[ct.IMAGE,cn.IMAGE],[ct.INPUT,cn.INPUT],[ct.IFRAME,cn.IFRAME],[ct.KEYGEN,cn.KEYGEN],[ct.LABEL,cn.LABEL],[ct.LI,cn.LI],[ct.LINK,cn.LINK],[ct.LISTING,cn.LISTING],[ct.MAIN,cn.MAIN],[ct.MALIGNMARK,cn.MALIGNMARK],[ct.MARQUEE,cn.MARQUEE],[ct.MATH,cn.MATH],[ct.MENU,cn.MENU],[ct.META,cn.META],[ct.MGLYPH,cn.MGLYPH],[ct.MI,cn.MI],[ct.MO,cn.MO],[ct.MN,cn.MN],[ct.MS,cn.MS],[ct.MTEXT,cn.MTEXT],[ct.NAV,cn.NAV],[ct.NOBR,cn.NOBR],[ct.NOFRAMES,cn.NOFRAMES],[ct.NOEMBED,cn.NOEMBED],[ct.NOSCRIPT,cn.NOSCRIPT],[ct.OBJECT,cn.OBJECT],[ct.OL,cn.OL],[ct.OPTGROUP,cn.OPTGROUP],[ct.OPTION,cn.OPTION],[ct.P,cn.P],[ct.PARAM,cn.PARAM],[ct.PLAINTEXT,cn.PLAINTEXT],[ct.PRE,cn.PRE],[ct.RB,cn.RB],[ct.RP,cn.RP],[ct.RT,cn.RT],[ct.RTC,cn.RTC],[ct.RUBY,cn.RUBY],[ct.S,cn.S],[ct.SCRIPT,cn.SCRIPT],[ct.SEARCH,cn.SEARCH],[ct.SECTION,cn.SECTION],[ct.SELECT,cn.SELECT],[ct.SOURCE,cn.SOURCE],[ct.SMALL,cn.SMALL],[ct.SPAN,cn.SPAN],[ct.STRIKE,cn.STRIKE],[ct.STRONG,cn.STRONG],[ct.STYLE,cn.STYLE],[ct.SUB,cn.SUB],[ct.SUMMARY,cn.SUMMARY],[ct.SUP,cn.SUP],[ct.TABLE,cn.TABLE],[ct.TBODY,cn.TBODY],[ct.TEMPLATE,cn.TEMPLATE],[ct.TEXTAREA,cn.TEXTAREA],[ct.TFOOT,cn.TFOOT],[ct.TD,cn.TD],[ct.TH,cn.TH],[ct.THEAD,cn.THEAD],[ct.TITLE,cn.TITLE],[ct.TR,cn.TR],[ct.TRACK,cn.TRACK],[ct.TT,cn.TT],[ct.U,cn.U],[ct.UL,cn.UL],[ct.SVG,cn.SVG],[ct.VAR,cn.VAR],[ct.WBR,cn.WBR],[ct.XMP,cn.XMP]]);function ea(e){var t;return null!=(t=ei.get(e))?t:cn.UNKNOWN}let es=cn,eo={[l8.HTML]:new Set([es.ADDRESS,es.APPLET,es.AREA,es.ARTICLE,es.ASIDE,es.BASE,es.BASEFONT,es.BGSOUND,es.BLOCKQUOTE,es.BODY,es.BR,es.BUTTON,es.CAPTION,es.CENTER,es.COL,es.COLGROUP,es.DD,es.DETAILS,es.DIR,es.DIV,es.DL,es.DT,es.EMBED,es.FIELDSET,es.FIGCAPTION,es.FIGURE,es.FOOTER,es.FORM,es.FRAME,es.FRAMESET,es.H1,es.H2,es.H3,es.H4,es.H5,es.H6,es.HEAD,es.HEADER,es.HGROUP,es.HR,es.HTML,es.IFRAME,es.IMG,es.INPUT,es.LI,es.LINK,es.LISTING,es.MAIN,es.MARQUEE,es.MENU,es.META,es.NAV,es.NOEMBED,es.NOFRAMES,es.NOSCRIPT,es.OBJECT,es.OL,es.P,es.PARAM,es.PLAINTEXT,es.PRE,es.SCRIPT,es.SECTION,es.SELECT,es.SOURCE,es.STYLE,es.SUMMARY,es.TABLE,es.TBODY,es.TD,es.TEMPLATE,es.TEXTAREA,es.TFOOT,es.TH,es.THEAD,es.TITLE,es.TR,es.TRACK,es.UL,es.WBR,es.XMP]),[l8.MATHML]:new Set([es.MI,es.MO,es.MN,es.MS,es.MTEXT,es.ANNOTATION_XML]),[l8.SVG]:new Set([es.TITLE,es.FOREIGN_OBJECT,es.DESC]),[l8.XLINK]:new Set,[l8.XML]:new Set,[l8.XMLNS]:new Set},el=new Set([es.H1,es.H2,es.H3,es.H4,es.H5,es.H6]);ct.STYLE,ct.SCRIPT,ct.XMP,ct.IFRAME,ct.NOEMBED,ct.NOFRAMES,ct.PLAINTEXT,(lZ=cr||(cr={}))[lZ.DATA=0]="DATA",lZ[lZ.RCDATA=1]="RCDATA",lZ[lZ.RAWTEXT=2]="RAWTEXT",lZ[lZ.SCRIPT_DATA=3]="SCRIPT_DATA",lZ[lZ.PLAINTEXT=4]="PLAINTEXT",lZ[lZ.TAG_OPEN=5]="TAG_OPEN",lZ[lZ.END_TAG_OPEN=6]="END_TAG_OPEN",lZ[lZ.TAG_NAME=7]="TAG_NAME",lZ[lZ.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",lZ[lZ.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",lZ[lZ.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",lZ[lZ.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",lZ[lZ.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",lZ[lZ.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",lZ[lZ.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",lZ[lZ.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",lZ[lZ.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",lZ[lZ.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",lZ[lZ.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",lZ[lZ.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",lZ[lZ.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",lZ[lZ.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",lZ[lZ.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",lZ[lZ.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",lZ[lZ.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",lZ[lZ.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",lZ[lZ.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",lZ[lZ.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",lZ[lZ.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",lZ[lZ.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",lZ[lZ.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",lZ[lZ.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",lZ[lZ.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",lZ[lZ.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",lZ[lZ.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",lZ[lZ.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",lZ[lZ.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",lZ[lZ.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",lZ[lZ.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",lZ[lZ.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",lZ[lZ.BOGUS_COMMENT=40]="BOGUS_COMMENT",lZ[lZ.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",lZ[lZ.COMMENT_START=42]="COMMENT_START",lZ[lZ.COMMENT_START_DASH=43]="COMMENT_START_DASH",lZ[lZ.COMMENT=44]="COMMENT",lZ[lZ.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",lZ[lZ.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",lZ[lZ.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",lZ[lZ.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",lZ[lZ.COMMENT_END_DASH=49]="COMMENT_END_DASH",lZ[lZ.COMMENT_END=50]="COMMENT_END",lZ[lZ.COMMENT_END_BANG=51]="COMMENT_END_BANG",lZ[lZ.DOCTYPE=52]="DOCTYPE",lZ[lZ.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",lZ[lZ.DOCTYPE_NAME=54]="DOCTYPE_NAME",lZ[lZ.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",lZ[lZ.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",lZ[lZ.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",lZ[lZ.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",lZ[lZ.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",lZ[lZ.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",lZ[lZ.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",lZ[lZ.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",lZ[lZ.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",lZ[lZ.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",lZ[lZ.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",lZ[lZ.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",lZ[lZ.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",lZ[lZ.CDATA_SECTION=68]="CDATA_SECTION",lZ[lZ.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",lZ[lZ.CDATA_SECTION_END=70]="CDATA_SECTION_END",lZ[lZ.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",lZ[lZ.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND";let ec={DATA:cr.DATA,RCDATA:cr.RCDATA,RAWTEXT:cr.RAWTEXT,SCRIPT_DATA:cr.SCRIPT_DATA,PLAINTEXT:cr.PLAINTEXT,CDATA_SECTION:cr.CDATA_SECTION};function eu(e){return e>=l1.LATIN_CAPITAL_A&&e<=l1.LATIN_CAPITAL_Z}function eh(e){return e>=l1.LATIN_SMALL_A&&e<=l1.LATIN_SMALL_Z||eu(e)}function ed(e){return eh(e)||e>=l1.DIGIT_0&&e<=l1.DIGIT_9}function ep(e){return e===l1.SPACE||e===l1.LINE_FEED||e===l1.TABULATION||e===l1.FORM_FEED}function ef(e){return ep(e)||e===l1.SOLIDUS||e===l1.GREATER_THAN_SIGN}class em{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=cr.DATA,this.returnState=cr.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Z(t),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new er(ee,(e,t)=>{this.preprocessor.pos=this.entityStartPos+t-1,this._flushCodePointConsumedAsCharacterReference(e)},t.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(l2.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:e=>{this._err(l2.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+e)},validateNumericCharacterReference:e=>{let t=function(e){if(e===l1.NULL)return l2.nullCharacterReference;if(e>1114111)return l2.characterReferenceOutsideUnicodeRange;if(Y(e))return l2.surrogateCharacterReference;if(Q(e))return l2.noncharacterCharacterReference;if(X(e)||e===l1.CARRIAGE_RETURN)return l2.controlCharacterReference;return null}(e);t&&this._err(t,1)}}:void 0)}_err(e,t=0){var n,r;null==(r=(n=this.handler).onParseError)||r.call(n,this.preprocessor.getError(e,t))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;let e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||null==e||e())}write(e,t,n){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||null==n||n()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return!!this.preprocessor.endOfChunkHit&&(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0)}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t<e;t++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,t){return!!this.preprocessor.startsWith(e,t)&&(this._advanceBy(e.length-1),!0)}_createStartTagToken(){this.currentToken={type:l5.START_TAG,tagName:"",tagID:cn.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:l5.END_TAG,tagName:"",tagID:cn.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:l5.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:l5.DOCTYPE,name:e,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e,t;let n=this.currentToken;null===J(n,this.currentAttr.name)?(n.attrs.push(this.currentAttr),n.location&&this.currentLocation&&((null!=(e=(t=n.location).attrs)?e:t.attrs=Object.create(null))[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue())):this._err(l2.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(e){this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location&&(e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){let e=this.currentToken;this.prepareToken(e),e.tagID=ea(e.tagName),e.type===l5.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(l2.endTagWithAttributes),e.selfClosing&&this._err(l2.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case l5.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case l5.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case l5.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){let e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:l5.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken)if(this.currentCharacterToken.type===e){this.currentCharacterToken.chars+=t;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(e,t)}_emitCodePoint(e){let t=ep(e)?l5.WHITESPACE_CHARACTER:e===l1.NULL?l5.NULL_CHARACTER:l5.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(l5.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=cr.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?l4.Attribute:l4.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===cr.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===cr.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===cr.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case cr.DATA:this._stateData(e);break;case cr.RCDATA:this._stateRcdata(e);break;case cr.RAWTEXT:this._stateRawtext(e);break;case cr.SCRIPT_DATA:this._stateScriptData(e);break;case cr.PLAINTEXT:this._statePlaintext(e);break;case cr.TAG_OPEN:this._stateTagOpen(e);break;case cr.END_TAG_OPEN:this._stateEndTagOpen(e);break;case cr.TAG_NAME:this._stateTagName(e);break;case cr.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case cr.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case cr.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case cr.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case cr.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case cr.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case cr.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case cr.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case cr.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case cr.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case cr.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case cr.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case cr.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case cr.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case cr.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case cr.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case cr.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case cr.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case cr.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case cr.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case cr.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case cr.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case cr.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case cr.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case cr.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case cr.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case cr.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case cr.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case cr.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case cr.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case cr.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case cr.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case cr.BOGUS_COMMENT:this._stateBogusComment(e);break;case cr.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case cr.COMMENT_START:this._stateCommentStart(e);break;case cr.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case cr.COMMENT:this._stateComment(e);break;case cr.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case cr.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case cr.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case cr.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case cr.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case cr.COMMENT_END:this._stateCommentEnd(e);break;case cr.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case cr.DOCTYPE:this._stateDoctype(e);break;case cr.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case cr.DOCTYPE_NAME:this._stateDoctypeName(e);break;case cr.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case cr.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case cr.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case cr.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case cr.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case cr.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case cr.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case cr.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case cr.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case cr.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case cr.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case cr.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case cr.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case cr.CDATA_SECTION:this._stateCdataSection(e);break;case cr.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case cr.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case cr.CHARACTER_REFERENCE:this._stateCharacterReference();break;case cr.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;default:throw Error("Unknown state")}}_stateData(e){switch(e){case l1.LESS_THAN_SIGN:this.state=cr.TAG_OPEN;break;case l1.AMPERSAND:this._startCharacterReference();break;case l1.NULL:this._err(l2.unexpectedNullCharacter),this._emitCodePoint(e);break;case l1.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case l1.AMPERSAND:this._startCharacterReference();break;case l1.LESS_THAN_SIGN:this.state=cr.RCDATA_LESS_THAN_SIGN;break;case l1.NULL:this._err(l2.unexpectedNullCharacter),this._emitChars("�");break;case l1.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case l1.LESS_THAN_SIGN:this.state=cr.RAWTEXT_LESS_THAN_SIGN;break;case l1.NULL:this._err(l2.unexpectedNullCharacter),this._emitChars("�");break;case l1.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case l1.LESS_THAN_SIGN:this.state=cr.SCRIPT_DATA_LESS_THAN_SIGN;break;case l1.NULL:this._err(l2.unexpectedNullCharacter),this._emitChars("�");break;case l1.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case l1.NULL:this._err(l2.unexpectedNullCharacter),this._emitChars("�");break;case l1.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(eh(e))this._createStartTagToken(),this.state=cr.TAG_NAME,this._stateTagName(e);else switch(e){case l1.EXCLAMATION_MARK:this.state=cr.MARKUP_DECLARATION_OPEN;break;case l1.SOLIDUS:this.state=cr.END_TAG_OPEN;break;case l1.QUESTION_MARK:this._err(l2.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=cr.BOGUS_COMMENT,this._stateBogusComment(e);break;case l1.EOF:this._err(l2.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(l2.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=cr.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(eh(e))this._createEndTagToken(),this.state=cr.TAG_NAME,this._stateTagName(e);else switch(e){case l1.GREATER_THAN_SIGN:this._err(l2.missingEndTagName),this.state=cr.DATA;break;case l1.EOF:this._err(l2.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break;default:this._err(l2.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=cr.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){let t=this.currentToken;switch(e){case l1.SPACE:case l1.LINE_FEED:case l1.TABULATION:case l1.FORM_FEED:this.state=cr.BEFORE_ATTRIBUTE_NAME;break;case l1.SOLIDUS:this.state=cr.SELF_CLOSING_START_TAG;break;case l1.GREATER_THAN_SIGN:this.state=cr.DATA,this.emitCurrentTagToken();break;case l1.NULL:this._err(l2.unexpectedNullCharacter),t.tagName+="�";break;case l1.EOF:this._err(l2.eofInTag),this._emitEOFToken();break;default:t.tagName+=String.fromCodePoint(eu(e)?e+32:e)}}_stateRcdataLessThanSign(e){e===l1.SOLIDUS?this.state=cr.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=cr.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){eh(e)?(this.state=cr.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars("</"),this.state=cr.RCDATA,this._stateRcdata(e))}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();switch(this._createEndTagToken(),this.currentToken.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case l1.SPACE:case l1.LINE_FEED:case l1.TABULATION:case l1.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=cr.BEFORE_ATTRIBUTE_NAME,!1;case l1.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=cr.SELF_CLOSING_START_TAG,!1;case l1.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=cr.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=cr.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===l1.SOLIDUS?this.state=cr.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=cr.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){eh(e)?(this.state=cr.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars("</"),this.state=cr.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=cr.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case l1.SOLIDUS:this.state=cr.SCRIPT_DATA_END_TAG_OPEN;break;case l1.EXCLAMATION_MARK:this.state=cr.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break;default:this._emitChars("<"),this.state=cr.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){eh(e)?(this.state=cr.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars("</"),this.state=cr.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=cr.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===l1.HYPHEN_MINUS?(this.state=cr.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=cr.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===l1.HYPHEN_MINUS?(this.state=cr.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=cr.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case l1.HYPHEN_MINUS:this.state=cr.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break;case l1.LESS_THAN_SIGN:this.state=cr.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case l1.NULL:this._err(l2.unexpectedNullCharacter),this._emitChars("�");break;case l1.EOF:this._err(l2.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case l1.HYPHEN_MINUS:this.state=cr.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break;case l1.LESS_THAN_SIGN:this.state=cr.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case l1.NULL:this._err(l2.unexpectedNullCharacter),this.state=cr.SCRIPT_DATA_ESCAPED,this._emitChars("�");break;case l1.EOF:this._err(l2.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=cr.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case l1.HYPHEN_MINUS:this._emitChars("-");break;case l1.LESS_THAN_SIGN:this.state=cr.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case l1.GREATER_THAN_SIGN:this.state=cr.SCRIPT_DATA,this._emitChars(">");break;case l1.NULL:this._err(l2.unexpectedNullCharacter),this.state=cr.SCRIPT_DATA_ESCAPED,this._emitChars("�");break;case l1.EOF:this._err(l2.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=cr.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===l1.SOLIDUS?this.state=cr.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:eh(e)?(this._emitChars("<"),this.state=cr.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=cr.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){eh(e)?(this.state=cr.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("</"),this.state=cr.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=cr.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(q,!1)&&ef(this.preprocessor.peek(q.length))){this._emitCodePoint(e);for(let e=0;e<q.length;e++)this._emitCodePoint(this._consume());this.state=cr.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=cr.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case l1.HYPHEN_MINUS:this.state=cr.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break;case l1.LESS_THAN_SIGN:this.state=cr.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case l1.NULL:this._err(l2.unexpectedNullCharacter),this._emitChars("�");break;case l1.EOF:this._err(l2.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case l1.HYPHEN_MINUS:this.state=cr.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break;case l1.LESS_THAN_SIGN:this.state=cr.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case l1.NULL:this._err(l2.unexpectedNullCharacter),this.state=cr.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars("�");break;case l1.EOF:this._err(l2.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=cr.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case l1.HYPHEN_MINUS:this._emitChars("-");break;case l1.LESS_THAN_SIGN:this.state=cr.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case l1.GREATER_THAN_SIGN:this.state=cr.SCRIPT_DATA,this._emitChars(">");break;case l1.NULL:this._err(l2.unexpectedNullCharacter),this.state=cr.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars("�");break;case l1.EOF:this._err(l2.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=cr.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===l1.SOLIDUS?(this.state=cr.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=cr.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(q,!1)&&ef(this.preprocessor.peek(q.length))){this._emitCodePoint(e);for(let e=0;e<q.length;e++)this._emitCodePoint(this._consume());this.state=cr.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=cr.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case l1.SPACE:case l1.LINE_FEED:case l1.TABULATION:case l1.FORM_FEED:break;case l1.SOLIDUS:case l1.GREATER_THAN_SIGN:case l1.EOF:this.state=cr.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case l1.EQUALS_SIGN:this._err(l2.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=cr.ATTRIBUTE_NAME;break;default:this._createAttr(""),this.state=cr.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case l1.SPACE:case l1.LINE_FEED:case l1.TABULATION:case l1.FORM_FEED:case l1.SOLIDUS:case l1.GREATER_THAN_SIGN:case l1.EOF:this._leaveAttrName(),this.state=cr.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case l1.EQUALS_SIGN:this._leaveAttrName(),this.state=cr.BEFORE_ATTRIBUTE_VALUE;break;case l1.QUOTATION_MARK:case l1.APOSTROPHE:case l1.LESS_THAN_SIGN:this._err(l2.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break;case l1.NULL:this._err(l2.unexpectedNullCharacter),this.currentAttr.name+="�";break;default:this.currentAttr.name+=String.fromCodePoint(eu(e)?e+32:e)}}_stateAfterAttributeName(e){switch(e){case l1.SPACE:case l1.LINE_FEED:case l1.TABULATION:case l1.FORM_FEED:break;case l1.SOLIDUS:this.state=cr.SELF_CLOSING_START_TAG;break;case l1.EQUALS_SIGN:this.state=cr.BEFORE_ATTRIBUTE_VALUE;break;case l1.GREATER_THAN_SIGN:this.state=cr.DATA,this.emitCurrentTagToken();break;case l1.EOF:this._err(l2.eofInTag),this._emitEOFToken();break;default:this._createAttr(""),this.state=cr.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case l1.SPACE:case l1.LINE_FEED:case l1.TABULATION:case l1.FORM_FEED:break;case l1.QUOTATION_MARK:this.state=cr.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case l1.APOSTROPHE:this.state=cr.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case l1.GREATER_THAN_SIGN:this._err(l2.missingAttributeValue),this.state=cr.DATA,this.emitCurrentTagToken();break;default:this.state=cr.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case l1.QUOTATION_MARK:this.state=cr.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case l1.AMPERSAND:this._startCharacterReference();break;case l1.NULL:this._err(l2.unexpectedNullCharacter),this.currentAttr.value+="�";break;case l1.EOF:this._err(l2.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case l1.APOSTROPHE:this.state=cr.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case l1.AMPERSAND:this._startCharacterReference();break;case l1.NULL:this._err(l2.unexpectedNullCharacter),this.currentAttr.value+="�";break;case l1.EOF:this._err(l2.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case l1.SPACE:case l1.LINE_FEED:case l1.TABULATION:case l1.FORM_FEED:this._leaveAttrValue(),this.state=cr.BEFORE_ATTRIBUTE_NAME;break;case l1.AMPERSAND:this._startCharacterReference();break;case l1.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=cr.DATA,this.emitCurrentTagToken();break;case l1.NULL:this._err(l2.unexpectedNullCharacter),this.currentAttr.value+="�";break;case l1.QUOTATION_MARK:case l1.APOSTROPHE:case l1.LESS_THAN_SIGN:case l1.EQUALS_SIGN:case l1.GRAVE_ACCENT:this._err(l2.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break;case l1.EOF:this._err(l2.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case l1.SPACE:case l1.LINE_FEED:case l1.TABULATION:case l1.FORM_FEED:this._leaveAttrValue(),this.state=cr.BEFORE_ATTRIBUTE_NAME;break;case l1.SOLIDUS:this._leaveAttrValue(),this.state=cr.SELF_CLOSING_START_TAG;break;case l1.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=cr.DATA,this.emitCurrentTagToken();break;case l1.EOF:this._err(l2.eofInTag),this._emitEOFToken();break;default:this._err(l2.missingWhitespaceBetweenAttributes),this.state=cr.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case l1.GREATER_THAN_SIGN:this.currentToken.selfClosing=!0,this.state=cr.DATA,this.emitCurrentTagToken();break;case l1.EOF:this._err(l2.eofInTag),this._emitEOFToken();break;default:this._err(l2.unexpectedSolidusInTag),this.state=cr.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){let t=this.currentToken;switch(e){case l1.GREATER_THAN_SIGN:this.state=cr.DATA,this.emitCurrentComment(t);break;case l1.EOF:this.emitCurrentComment(t),this._emitEOFToken();break;case l1.NULL:this._err(l2.unexpectedNullCharacter),t.data+="�";break;default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch("--",!0)?(this._createCommentToken(3),this.state=cr.COMMENT_START):this._consumeSequenceIfMatch(W,!1)?(this.currentLocation=this.getCurrentLocation(W.length+1),this.state=cr.DOCTYPE):this._consumeSequenceIfMatch(K,!0)?this.inForeignNode?this.state=cr.CDATA_SECTION:(this._err(l2.cdataInHtmlContent),this._createCommentToken(K.length+1),this.currentToken.data="[CDATA[",this.state=cr.BOGUS_COMMENT):this._ensureHibernation()||(this._err(l2.incorrectlyOpenedComment),this._createCommentToken(2),this.state=cr.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case l1.HYPHEN_MINUS:this.state=cr.COMMENT_START_DASH;break;case l1.GREATER_THAN_SIGN:{this._err(l2.abruptClosingOfEmptyComment),this.state=cr.DATA;let e=this.currentToken;this.emitCurrentComment(e);break}default:this.state=cr.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){let t=this.currentToken;switch(e){case l1.HYPHEN_MINUS:this.state=cr.COMMENT_END;break;case l1.GREATER_THAN_SIGN:this._err(l2.abruptClosingOfEmptyComment),this.state=cr.DATA,this.emitCurrentComment(t);break;case l1.EOF:this._err(l2.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=cr.COMMENT,this._stateComment(e)}}_stateComment(e){let t=this.currentToken;switch(e){case l1.HYPHEN_MINUS:this.state=cr.COMMENT_END_DASH;break;case l1.LESS_THAN_SIGN:t.data+="<",this.state=cr.COMMENT_LESS_THAN_SIGN;break;case l1.NULL:this._err(l2.unexpectedNullCharacter),t.data+="�";break;case l1.EOF:this._err(l2.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){let t=this.currentToken;switch(e){case l1.EXCLAMATION_MARK:t.data+="!",this.state=cr.COMMENT_LESS_THAN_SIGN_BANG;break;case l1.LESS_THAN_SIGN:t.data+="<";break;default:this.state=cr.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===l1.HYPHEN_MINUS?this.state=cr.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=cr.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===l1.HYPHEN_MINUS?this.state=cr.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=cr.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==l1.GREATER_THAN_SIGN&&e!==l1.EOF&&this._err(l2.nestedComment),this.state=cr.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){let t=this.currentToken;switch(e){case l1.HYPHEN_MINUS:this.state=cr.COMMENT_END;break;case l1.EOF:this._err(l2.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=cr.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){let t=this.currentToken;switch(e){case l1.GREATER_THAN_SIGN:this.state=cr.DATA,this.emitCurrentComment(t);break;case l1.EXCLAMATION_MARK:this.state=cr.COMMENT_END_BANG;break;case l1.HYPHEN_MINUS:t.data+="-";break;case l1.EOF:this._err(l2.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--",this.state=cr.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){let t=this.currentToken;switch(e){case l1.HYPHEN_MINUS:t.data+="--!",this.state=cr.COMMENT_END_DASH;break;case l1.GREATER_THAN_SIGN:this._err(l2.incorrectlyClosedComment),this.state=cr.DATA,this.emitCurrentComment(t);break;case l1.EOF:this._err(l2.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--!",this.state=cr.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case l1.SPACE:case l1.LINE_FEED:case l1.TABULATION:case l1.FORM_FEED:this.state=cr.BEFORE_DOCTYPE_NAME;break;case l1.GREATER_THAN_SIGN:this.state=cr.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break;case l1.EOF:{this._err(l2.eofInDoctype),this._createDoctypeToken(null);let e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._err(l2.missingWhitespaceBeforeDoctypeName),this.state=cr.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(eu(e))this._createDoctypeToken(String.fromCharCode(e+32)),this.state=cr.DOCTYPE_NAME;else switch(e){case l1.SPACE:case l1.LINE_FEED:case l1.TABULATION:case l1.FORM_FEED:break;case l1.NULL:this._err(l2.unexpectedNullCharacter),this._createDoctypeToken("�"),this.state=cr.DOCTYPE_NAME;break;case l1.GREATER_THAN_SIGN:{this._err(l2.missingDoctypeName),this._createDoctypeToken(null);let e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=cr.DATA;break}case l1.EOF:{this._err(l2.eofInDoctype),this._createDoctypeToken(null);let e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=cr.DOCTYPE_NAME}}_stateDoctypeName(e){let t=this.currentToken;switch(e){case l1.SPACE:case l1.LINE_FEED:case l1.TABULATION:case l1.FORM_FEED:this.state=cr.AFTER_DOCTYPE_NAME;break;case l1.GREATER_THAN_SIGN:this.state=cr.DATA,this.emitCurrentDoctype(t);break;case l1.NULL:this._err(l2.unexpectedNullCharacter),t.name+="�";break;case l1.EOF:this._err(l2.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.name+=String.fromCodePoint(eu(e)?e+32:e)}}_stateAfterDoctypeName(e){let t=this.currentToken;switch(e){case l1.SPACE:case l1.LINE_FEED:case l1.TABULATION:case l1.FORM_FEED:break;case l1.GREATER_THAN_SIGN:this.state=cr.DATA,this.emitCurrentDoctype(t);break;case l1.EOF:this._err(l2.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._consumeSequenceIfMatch("public",!1)?this.state=cr.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch("system",!1)?this.state=cr.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(l2.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=cr.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){let t=this.currentToken;switch(e){case l1.SPACE:case l1.LINE_FEED:case l1.TABULATION:case l1.FORM_FEED:this.state=cr.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case l1.QUOTATION_MARK:this._err(l2.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=cr.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case l1.APOSTROPHE:this._err(l2.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=cr.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case l1.GREATER_THAN_SIGN:this._err(l2.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=cr.DATA,this.emitCurrentDoctype(t);break;case l1.EOF:this._err(l2.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(l2.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=cr.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){let t=this.currentToken;switch(e){case l1.SPACE:case l1.LINE_FEED:case l1.TABULATION:case l1.FORM_FEED:break;case l1.QUOTATION_MARK:t.publicId="",this.state=cr.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case l1.APOSTROPHE:t.publicId="",this.state=cr.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case l1.GREATER_THAN_SIGN:this._err(l2.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=cr.DATA,this.emitCurrentDoctype(t);break;case l1.EOF:this._err(l2.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(l2.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=cr.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){let t=this.currentToken;switch(e){case l1.QUOTATION_MARK:this.state=cr.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case l1.NULL:this._err(l2.unexpectedNullCharacter),t.publicId+="�";break;case l1.GREATER_THAN_SIGN:this._err(l2.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=cr.DATA;break;case l1.EOF:this._err(l2.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){let t=this.currentToken;switch(e){case l1.APOSTROPHE:this.state=cr.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case l1.NULL:this._err(l2.unexpectedNullCharacter),t.publicId+="�";break;case l1.GREATER_THAN_SIGN:this._err(l2.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=cr.DATA;break;case l1.EOF:this._err(l2.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){let t=this.currentToken;switch(e){case l1.SPACE:case l1.LINE_FEED:case l1.TABULATION:case l1.FORM_FEED:this.state=cr.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case l1.GREATER_THAN_SIGN:this.state=cr.DATA,this.emitCurrentDoctype(t);break;case l1.QUOTATION_MARK:this._err(l2.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=cr.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case l1.APOSTROPHE:this._err(l2.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=cr.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case l1.EOF:this._err(l2.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(l2.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=cr.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){let t=this.currentToken;switch(e){case l1.SPACE:case l1.LINE_FEED:case l1.TABULATION:case l1.FORM_FEED:break;case l1.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=cr.DATA;break;case l1.QUOTATION_MARK:t.systemId="",this.state=cr.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case l1.APOSTROPHE:t.systemId="",this.state=cr.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case l1.EOF:this._err(l2.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(l2.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=cr.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){let t=this.currentToken;switch(e){case l1.SPACE:case l1.LINE_FEED:case l1.TABULATION:case l1.FORM_FEED:this.state=cr.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case l1.QUOTATION_MARK:this._err(l2.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=cr.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case l1.APOSTROPHE:this._err(l2.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=cr.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case l1.GREATER_THAN_SIGN:this._err(l2.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=cr.DATA,this.emitCurrentDoctype(t);break;case l1.EOF:this._err(l2.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(l2.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=cr.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){let t=this.currentToken;switch(e){case l1.SPACE:case l1.LINE_FEED:case l1.TABULATION:case l1.FORM_FEED:break;case l1.QUOTATION_MARK:t.systemId="",this.state=cr.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case l1.APOSTROPHE:t.systemId="",this.state=cr.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case l1.GREATER_THAN_SIGN:this._err(l2.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=cr.DATA,this.emitCurrentDoctype(t);break;case l1.EOF:this._err(l2.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(l2.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=cr.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){let t=this.currentToken;switch(e){case l1.QUOTATION_MARK:this.state=cr.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case l1.NULL:this._err(l2.unexpectedNullCharacter),t.systemId+="�";break;case l1.GREATER_THAN_SIGN:this._err(l2.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=cr.DATA;break;case l1.EOF:this._err(l2.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){let t=this.currentToken;switch(e){case l1.APOSTROPHE:this.state=cr.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case l1.NULL:this._err(l2.unexpectedNullCharacter),t.systemId+="�";break;case l1.GREATER_THAN_SIGN:this._err(l2.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=cr.DATA;break;case l1.EOF:this._err(l2.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){let t=this.currentToken;switch(e){case l1.SPACE:case l1.LINE_FEED:case l1.TABULATION:case l1.FORM_FEED:break;case l1.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=cr.DATA;break;case l1.EOF:this._err(l2.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(l2.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=cr.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){let t=this.currentToken;switch(e){case l1.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=cr.DATA;break;case l1.NULL:this._err(l2.unexpectedNullCharacter);break;case l1.EOF:this.emitCurrentDoctype(t),this._emitEOFToken()}}_stateCdataSection(e){switch(e){case l1.RIGHT_SQUARE_BRACKET:this.state=cr.CDATA_SECTION_BRACKET;break;case l1.EOF:this._err(l2.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===l1.RIGHT_SQUARE_BRACKET?this.state=cr.CDATA_SECTION_END:(this._emitChars("]"),this.state=cr.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case l1.GREATER_THAN_SIGN:this.state=cr.DATA;break;case l1.RIGHT_SQUARE_BRACKET:this._emitChars("]");break;default:this._emitChars("]]"),this.state=cr.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(){let e=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(e<0)if(this.preprocessor.lastChunkWritten)e=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}0===e?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(l1.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&ed(this.preprocessor.peek(1))?cr.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(e){ed(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===l1.SEMICOLON&&this._err(l2.unknownNamedCharacterReference),this.state=this.returnState,this._callState(e))}}let eg=new Set([cn.DD,cn.DT,cn.LI,cn.OPTGROUP,cn.OPTION,cn.P,cn.RB,cn.RP,cn.RT,cn.RTC]),ey=new Set([...eg,cn.CAPTION,cn.COLGROUP,cn.TBODY,cn.TD,cn.TFOOT,cn.TH,cn.THEAD,cn.TR]),eb=new Set([cn.APPLET,cn.CAPTION,cn.HTML,cn.MARQUEE,cn.OBJECT,cn.TABLE,cn.TD,cn.TEMPLATE,cn.TH]),ek=new Set([...eb,cn.OL,cn.UL]),ex=new Set([...eb,cn.BUTTON]),ev=new Set([cn.ANNOTATION_XML,cn.MI,cn.MN,cn.MO,cn.MS,cn.MTEXT]),eE=new Set([cn.DESC,cn.FOREIGN_OBJECT,cn.TITLE]),e_=new Set([cn.TR,cn.TEMPLATE,cn.HTML]),eT=new Set([cn.TBODY,cn.TFOOT,cn.THEAD,cn.TEMPLATE,cn.HTML]),eA=new Set([cn.TABLE,cn.TEMPLATE,cn.HTML]),ew=new Set([cn.TD,cn.TH]);class eS{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,n){this.treeAdapter=t,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=cn.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===cn.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===l8.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){let e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){let n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&(this.current=t)}insertAfter(e,t,n){let r=this._indexOf(e)+1;this.items.splice(r,0,t),this.tagIDs.splice(r,0,n),this.stackTop++,r===this.stackTop&&this._updateCurrentElement(),this.current&&void 0!==this.currentTagId&&this.handler.onItemPush(this.current,this.currentTagId,r===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do t=this.tagIDs.lastIndexOf(e,t-1);while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==l8.HTML);this.shortenToLength(Math.max(t,0))}shortenToLength(e){for(;this.stackTop>=e;){let t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop<e)}}popUntilElementPopped(e){let t=this._indexOf(e);this.shortenToLength(Math.max(t,0))}popUntilPopped(e,t){let n=this._indexOfTagNames(e,t);this.shortenToLength(Math.max(n,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(el,l8.HTML)}popUntilTableCellPopped(){this.popUntilPopped(ew,l8.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,t){for(let n=this.stackTop;n>=0;n--)if(e.has(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===t)return n;return -1}clearBackTo(e,t){let n=this._indexOfTagNames(e,t);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(eA,l8.HTML)}clearBackToTableBodyContext(){this.clearBackTo(eT,l8.HTML)}clearBackToTableRowContext(){this.clearBackTo(e_,l8.HTML)}remove(e){let t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===cn.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.tagIDs[0]===cn.HTML}hasInDynamicScope(e,t){for(let n=this.stackTop;n>=0;n--){let r=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case l8.HTML:if(r===e)return!0;if(t.has(r))return!1;break;case l8.SVG:if(eE.has(r))return!1;break;case l8.MATHML:if(ev.has(r))return!1}}return!0}hasInScope(e){return this.hasInDynamicScope(e,eb)}hasInListItemScope(e){return this.hasInDynamicScope(e,ek)}hasInButtonScope(e){return this.hasInDynamicScope(e,ex)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){let t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case l8.HTML:if(el.has(t))return!0;if(eb.has(t))return!1;break;case l8.SVG:if(eE.has(t))return!1;break;case l8.MATHML:if(ev.has(t))return!1}}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===l8.HTML)switch(this.tagIDs[t]){case e:return!0;case cn.TABLE:case cn.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===l8.HTML)switch(this.tagIDs[e]){case cn.TBODY:case cn.THEAD:case cn.TFOOT:return!0;case cn.TABLE:case cn.HTML:return!1}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===l8.HTML)switch(this.tagIDs[t]){case e:return!0;case cn.OPTION:case cn.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;void 0!==this.currentTagId&&eg.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;void 0!==this.currentTagId&&ey.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;void 0!==this.currentTagId&&this.currentTagId!==e&&ey.has(this.currentTagId);)this.pop()}}(lJ=ci||(ci={}))[lJ.Marker=0]="Marker",lJ[lJ.Element=1]="Element";let eC={type:ci.Marker};class eN{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){let n=[],r=t.length,i=this.treeAdapter.getTagName(e),a=this.treeAdapter.getNamespaceURI(e);for(let e=0;e<this.entries.length;e++){let t=this.entries[e];if(t.type===ci.Marker)break;let{element:s}=t;if(this.treeAdapter.getTagName(s)===i&&this.treeAdapter.getNamespaceURI(s)===a){let t=this.treeAdapter.getAttrList(s);t.length===r&&n.push({idx:e,attrs:t})}}return n}_ensureNoahArkCondition(e){if(this.entries.length<3)return;let t=this.treeAdapter.getAttrList(e),n=this._getNoahArkConditionCandidates(e,t);if(n.length<3)return;let r=new Map(t.map(e=>[e.name,e.value])),i=0;for(let e=0;e<n.length;e++){let t=n[e];t.attrs.every(e=>r.get(e.name)===e.value)&&(i+=1)>=3&&this.entries.splice(t.idx,1)}}insertMarker(){this.entries.unshift(eC)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:ci.Element,element:e,token:t})}insertElementAfterBookmark(e,t){let n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:ci.Element,element:e,token:t})}removeEntry(e){let t=this.entries.indexOf(e);-1!==t&&this.entries.splice(t,1)}clearToLastMarker(){let e=this.entries.indexOf(eC);-1===e?this.entries.length=0:this.entries.splice(0,e+1)}getElementEntryInScopeWithTagName(e){let t=this.entries.find(t=>t.type===ci.Marker||this.treeAdapter.getTagName(t.element)===e);return t&&t.type===ci.Element?t:null}getElementEntry(e){return this.entries.find(t=>t.type===ci.Element&&t.element===e)}}let eM={createDocument:()=>({nodeName:"#document",mode:ce.NO_QUIRKS,childNodes:[]}),createDocumentFragment:()=>({nodeName:"#document-fragment",childNodes:[]}),createElement:(e,t,n)=>({nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}),createCommentNode:e=>({nodeName:"#comment",data:e,parentNode:null}),createTextNode:e=>({nodeName:"#text",value:e,parentNode:null}),appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){let r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent:e=>e.content,setDocumentType(e,t,n,r){let i=e.childNodes.find(e=>"#documentType"===e.nodeName);i?(i.name=t,i.publicId=n,i.systemId=r):eM.appendChild(e,{nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null})},setDocumentMode(e,t){e.mode=t},getDocumentMode:e=>e.mode,detachNode(e){if(e.parentNode){let t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){let n=e.childNodes[e.childNodes.length-1];if(eM.isTextNode(n)){n.value+=t;return}}eM.appendChild(e,eM.createTextNode(t))},insertTextBefore(e,t,n){let r=e.childNodes[e.childNodes.indexOf(n)-1];r&&eM.isTextNode(r)?r.value+=t:eM.insertBefore(e,eM.createTextNode(t),n)},adoptAttributes(e,t){let n=new Set(e.attrs.map(e=>e.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild:e=>e.childNodes[0],getChildNodes:e=>e.childNodes,getParentNode:e=>e.parentNode,getAttrList:e=>e.attrs,getTagName:e=>e.tagName,getNamespaceURI:e=>e.namespaceURI,getTextNodeContent:e=>e.value,getCommentNodeContent:e=>e.data,getDocumentTypeNodeName:e=>e.name,getDocumentTypeNodePublicId:e=>e.publicId,getDocumentTypeNodeSystemId:e=>e.systemId,isTextNode:e=>"#text"===e.nodeName,isCommentNode:e=>"#comment"===e.nodeName,isDocumentTypeNode:e=>"#documentType"===e.nodeName,isElementNode:e=>Object.prototype.hasOwnProperty.call(e,"tagName"),setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation:e=>e.sourceCodeLocation,updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},eI="html",eR=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],eL=[...eR,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],eD=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),eO=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],eP=[...eO,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function eF(e,t){return t.some(t=>e.startsWith(t))}let eB=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),eH=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:l8.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:l8.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:l8.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:l8.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:l8.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:l8.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:l8.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:l8.XML}],["xml:space",{prefix:"xml",name:"space",namespace:l8.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:l8.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:l8.XMLNS}]]),eU=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),e$=new Set([cn.B,cn.BIG,cn.BLOCKQUOTE,cn.BODY,cn.BR,cn.CENTER,cn.CODE,cn.DD,cn.DIV,cn.DL,cn.DT,cn.EM,cn.EMBED,cn.H1,cn.H2,cn.H3,cn.H4,cn.H5,cn.H6,cn.HEAD,cn.HR,cn.I,cn.IMG,cn.LI,cn.LISTING,cn.MENU,cn.META,cn.NOBR,cn.OL,cn.P,cn.PRE,cn.RUBY,cn.S,cn.SMALL,cn.SPAN,cn.STRONG,cn.STRIKE,cn.SUB,cn.SUP,cn.TABLE,cn.TT,cn.U,cn.UL,cn.VAR]);function ej(e){for(let t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name){e.attrs[t].name="definitionURL";break}}function ez(e){for(let t=0;t<e.attrs.length;t++){let n=eB.get(e.attrs[t].name);null!=n&&(e.attrs[t].name=n)}}function eG(e){for(let t=0;t<e.attrs.length;t++){let n=eH.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}(l0=ca||(ca={}))[l0.INITIAL=0]="INITIAL",l0[l0.BEFORE_HTML=1]="BEFORE_HTML",l0[l0.BEFORE_HEAD=2]="BEFORE_HEAD",l0[l0.IN_HEAD=3]="IN_HEAD",l0[l0.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",l0[l0.AFTER_HEAD=5]="AFTER_HEAD",l0[l0.IN_BODY=6]="IN_BODY",l0[l0.TEXT=7]="TEXT",l0[l0.IN_TABLE=8]="IN_TABLE",l0[l0.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",l0[l0.IN_CAPTION=10]="IN_CAPTION",l0[l0.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",l0[l0.IN_TABLE_BODY=12]="IN_TABLE_BODY",l0[l0.IN_ROW=13]="IN_ROW",l0[l0.IN_CELL=14]="IN_CELL",l0[l0.IN_SELECT=15]="IN_SELECT",l0[l0.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",l0[l0.IN_TEMPLATE=17]="IN_TEMPLATE",l0[l0.AFTER_BODY=18]="AFTER_BODY",l0[l0.IN_FRAMESET=19]="IN_FRAMESET",l0[l0.AFTER_FRAMESET=20]="AFTER_FRAMESET",l0[l0.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",l0[l0.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET";let eV={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},eK=new Set([cn.TABLE,cn.TBODY,cn.TFOOT,cn.THEAD,cn.TR]),eW={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:eM,onParseError:null};class eq{constructor(e,t,n=null,r=null){this.fragmentContext=n,this.scriptHandler=r,this.currentToken=null,this.stopped=!1,this.insertionMode=ca.INITIAL,this.originalInsertionMode=ca.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...eW,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=null!=t?t:this.treeAdapter.createDocument(),this.tokenizer=new em(this.options,this),this.activeFormattingElements=new eN(this.treeAdapter),this.fragmentContextID=n?ea(this.treeAdapter.getTagName(n)):cn.UNKNOWN,this._setContextModes(null!=n?n:this.document,this.fragmentContextID),this.openElements=new eS(this.document,this.treeAdapter,this)}static parse(e,t){let n=new this(t);return n.tokenizer.write(e,!0),n.document}static getFragmentParser(e,t){let n={...eW,...t};null!=e||(e=n.treeAdapter.createElement(ct.TEMPLATE,l8.HTML,[]));let r=n.treeAdapter.createElement("documentmock",l8.HTML,[]),i=new this(n,r,e);return i.fragmentContextID===cn.TEMPLATE&&i.tmplInsertionModeStack.unshift(ca.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){let e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}_err(e,t,n){var r;if(!this.onParseError)return;let i=null!=(r=e.location)?r:eV,a={code:t,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,endLine:n?i.startLine:i.endLine,endCol:n?i.startCol:i.endCol,endOffset:n?i.startOffset:i.endOffset};this.onParseError(a)}onItemPush(e,t,n){var r,i;null==(i=(r=this.treeAdapter).onItemPush)||i.call(r,e),n&&this.openElements.stackTop>0&&this._setContextModes(e,t)}onItemPop(e,t){var n,r;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),null==(r=(n=this.treeAdapter).onItemPop)||r.call(n,e,this.openElements.current),t){let e,t;0===this.openElements.stackTop&&this.fragmentContext?(e=this.fragmentContext,t=this.fragmentContextID):{current:e,currentTagId:t}=this.openElements,this._setContextModes(e,t)}}_setContextModes(e,t){let n=e===this.document||e&&this.treeAdapter.getNamespaceURI(e)===l8.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&void 0!==e&&void 0!==t&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,l8.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=ca.TEXT}switchToPlaintextParsing(){this.insertionMode=ca.TEXT,this.originalInsertionMode=ca.IN_BODY,this.tokenizer.state=ec.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===ct.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===l8.HTML)switch(this.fragmentContextID){case cn.TITLE:case cn.TEXTAREA:this.tokenizer.state=ec.RCDATA;break;case cn.STYLE:case cn.XMP:case cn.IFRAME:case cn.NOEMBED:case cn.NOFRAMES:case cn.NOSCRIPT:this.tokenizer.state=ec.RAWTEXT;break;case cn.SCRIPT:this.tokenizer.state=ec.SCRIPT_DATA;break;case cn.PLAINTEXT:this.tokenizer.state=ec.PLAINTEXT}}_setDocumentType(e){let t=e.name||"",n=e.publicId||"",r=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,n,r),e.location){let t=this.treeAdapter.getChildNodes(this.document).find(e=>this.treeAdapter.isDocumentTypeNode(e));t&&this.treeAdapter.setNodeSourceCodeLocation(t,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){let n=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{let t=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(null!=t?t:this.document,e)}}_appendElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location)}_insertElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID)}_insertFakeElement(e,t){let n=this.treeAdapter.createElement(e,l8.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}_insertTemplate(e){let t=this.treeAdapter.createElement(e.tagName,l8.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){let e=this.treeAdapter.createElement(ct.HTML,l8.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,cn.HTML)}_appendCommentNode(e,t){let n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}_insertCharacters(e){let t,n;if(this._shouldFosterParentOnInsertion()?({parent:t,beforeElement:n}=this._findFosterParentingLocation(),n?this.treeAdapter.insertTextBefore(t,e.chars,n):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;let r=this.treeAdapter.getChildNodes(t),i=n?r.lastIndexOf(n):r.length,a=r[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(a)){let{endLine:t,endCol:n,endOffset:r}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(a,{endLine:t,endCol:n,endOffset:r})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(a,e.location)}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){let n=t.location,r=this.treeAdapter.getTagName(e),i=t.type===l5.END_TAG&&r===t.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,i)}}shouldProcessStartTagTokenInForeignContent(e){let t,n;return!!this.currentNotInHTML&&(0===this.openElements.stackTop&&this.fragmentContext?(t=this.fragmentContext,n=this.fragmentContextID):{current:t,currentTagId:n}=this.openElements,(e.tagID!==cn.SVG||this.treeAdapter.getTagName(t)!==ct.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==l8.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===cn.MGLYPH||e.tagID===cn.MALIGNMARK)&&void 0!==n&&!this._isIntegrationPoint(n,t,l8.HTML)))}_processToken(e){switch(e.type){case l5.CHARACTER:this.onCharacter(e);break;case l5.NULL_CHARACTER:this.onNullCharacter(e);break;case l5.COMMENT:this.onComment(e);break;case l5.DOCTYPE:this.onDoctype(e);break;case l5.START_TAG:this._processStartTag(e);break;case l5.END_TAG:this.onEndTag(e);break;case l5.EOF:this.onEof(e);break;case l5.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,n){let r=this.treeAdapter.getNamespaceURI(t),i=this.treeAdapter.getAttrList(t);return(!n||n===l8.HTML)&&function(e,t,n){if(t===l8.MATHML&&e===cn.ANNOTATION_XML){for(let e=0;e<n.length;e++)if(n[e].name===l7.ENCODING){let t=n[e].value.toLowerCase();return"text/html"===t||"application/xhtml+xml"===t}}return t===l8.SVG&&(e===cn.FOREIGN_OBJECT||e===cn.DESC||e===cn.TITLE)}(e,r,i)||(!n||n===l8.MATHML)&&r===l8.MATHML&&(e===cn.MI||e===cn.MO||e===cn.MN||e===cn.MS||e===cn.MTEXT)}_reconstructActiveFormattingElements(){let e=this.activeFormattingElements.entries.length;if(e){let t=this.activeFormattingElements.entries.findIndex(e=>e.type===ci.Marker||this.openElements.contains(e.element)),n=-1===t?e-1:t-1;for(let e=n;e>=0;e--){let t=this.activeFormattingElements.entries[e];this._insertElement(t.token,this.treeAdapter.getNamespaceURI(t.element)),t.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=ca.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(cn.P),this.openElements.popUntilTagNamePopped(cn.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case cn.TR:this.insertionMode=ca.IN_ROW;return;case cn.TBODY:case cn.THEAD:case cn.TFOOT:this.insertionMode=ca.IN_TABLE_BODY;return;case cn.CAPTION:this.insertionMode=ca.IN_CAPTION;return;case cn.COLGROUP:this.insertionMode=ca.IN_COLUMN_GROUP;return;case cn.TABLE:this.insertionMode=ca.IN_TABLE;return;case cn.BODY:this.insertionMode=ca.IN_BODY;return;case cn.FRAMESET:this.insertionMode=ca.IN_FRAMESET;return;case cn.SELECT:return void this._resetInsertionModeForSelect(e);case cn.TEMPLATE:this.insertionMode=this.tmplInsertionModeStack[0];return;case cn.HTML:this.insertionMode=this.headElement?ca.AFTER_HEAD:ca.BEFORE_HEAD;return;case cn.TD:case cn.TH:if(e>0){this.insertionMode=ca.IN_CELL;return}break;case cn.HEAD:if(e>0){this.insertionMode=ca.IN_HEAD;return}}this.insertionMode=ca.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){let e=this.openElements.tagIDs[t];if(e===cn.TEMPLATE)break;if(e===cn.TABLE){this.insertionMode=ca.IN_SELECT_IN_TABLE;return}}this.insertionMode=ca.IN_SELECT}_isElementCausesFosterParenting(e){return eK.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&void 0!==this.openElements.currentTagId&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){let t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case cn.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===l8.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case cn.TABLE:{let n=this.treeAdapter.getParentNode(t);if(n)return{parent:n,beforeElement:t};return{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){let t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){return eo[this.treeAdapter.getNamespaceURI(e)].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){var t,n;return void(t=this,n=e,t._insertCharacters(n),t.framesetOk=!1)}switch(this.insertionMode){case ca.INITIAL:eZ(this,e);break;case ca.BEFORE_HTML:eJ(this,e);break;case ca.BEFORE_HEAD:e0(this,e);break;case ca.IN_HEAD:e5(this,e);break;case ca.IN_HEAD_NO_SCRIPT:e3(this,e);break;case ca.AFTER_HEAD:e6(this,e);break;case ca.IN_BODY:case ca.IN_CAPTION:case ca.IN_CELL:case ca.IN_TEMPLATE:e8(this,e);break;case ca.TEXT:case ca.IN_SELECT:case ca.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case ca.IN_TABLE:case ca.IN_TABLE_BODY:case ca.IN_ROW:to(this,e);break;case ca.IN_TABLE_TEXT:td(this,e);break;case ca.IN_COLUMN_GROUP:tg(this,e);break;case ca.AFTER_BODY:tA(this,e);break;case ca.AFTER_AFTER_BODY:tw(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){var t,n;return void(t=this,(n=e).chars="�",t._insertCharacters(n))}switch(this.insertionMode){case ca.INITIAL:eZ(this,e);break;case ca.BEFORE_HTML:eJ(this,e);break;case ca.BEFORE_HEAD:e0(this,e);break;case ca.IN_HEAD:e5(this,e);break;case ca.IN_HEAD_NO_SCRIPT:e3(this,e);break;case ca.AFTER_HEAD:e6(this,e);break;case ca.TEXT:this._insertCharacters(e);break;case ca.IN_TABLE:case ca.IN_TABLE_BODY:case ca.IN_ROW:to(this,e);break;case ca.IN_COLUMN_GROUP:tg(this,e);break;case ca.AFTER_BODY:tA(this,e);break;case ca.AFTER_AFTER_BODY:tw(this,e)}}onComment(e){var t,n,r,i;if(this.skipNextNewLine=!1,this.currentNotInHTML)return void eX(this,e);switch(this.insertionMode){case ca.INITIAL:case ca.BEFORE_HTML:case ca.BEFORE_HEAD:case ca.IN_HEAD:case ca.IN_HEAD_NO_SCRIPT:case ca.AFTER_HEAD:case ca.IN_BODY:case ca.IN_TABLE:case ca.IN_CAPTION:case ca.IN_COLUMN_GROUP:case ca.IN_TABLE_BODY:case ca.IN_ROW:case ca.IN_CELL:case ca.IN_SELECT:case ca.IN_SELECT_IN_TABLE:case ca.IN_TEMPLATE:case ca.IN_FRAMESET:case ca.AFTER_FRAMESET:eX(this,e);break;case ca.IN_TABLE_TEXT:tp(this,e);break;case ca.AFTER_BODY:t=this,n=e,t._appendCommentNode(n,t.openElements.items[0]);break;case ca.AFTER_AFTER_BODY:case ca.AFTER_AFTER_FRAMESET:r=this,i=e,r._appendCommentNode(i,r.document)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case ca.INITIAL:!function(e,t){e._setDocumentType(t);let n=t.forceQuirks?ce.QUIRKS:function(e){if(e.name!==eI)return ce.QUIRKS;let{systemId:t}=e;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return ce.QUIRKS;let{publicId:n}=e;if(null!==n){if(n=n.toLowerCase(),eD.has(n))return ce.QUIRKS;let e=null===t?eL:eR;if(eF(n,e))return ce.QUIRKS;if(eF(n,e=null===t?eO:eP))return ce.LIMITED_QUIRKS}return ce.NO_QUIRKS}(t);(t.name!==eI||null!==t.publicId||null!==t.systemId&&"about:legacy-compat"!==t.systemId)&&e._err(t,l2.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=ca.BEFORE_HTML}(this,e);break;case ca.BEFORE_HEAD:case ca.IN_HEAD:case ca.IN_HEAD_NO_SCRIPT:case ca.AFTER_HEAD:this._err(e,l2.misplacedDoctype);break;case ca.IN_TABLE_TEXT:tp(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,l2.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?function(e,t){let n;if((n=t.tagID)===cn.FONT&&t.attrs.some(({name:e})=>e===l7.COLOR||e===l7.SIZE||e===l7.FACE)||e$.has(n))tS(e),e._startTagOutsideForeignContent(t);else{let n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);if(r===l8.MATHML)ej(t);else if(r===l8.SVG){let e;null!=(e=eU.get(t.tagName))&&(t.tagName=e,t.tagID=ea(t.tagName)),ez(t)}eG(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case ca.INITIAL:eZ(this,e);break;case ca.BEFORE_HTML:t=this,(n=e).tagID===cn.HTML?(t._insertElement(n,l8.HTML),t.insertionMode=ca.BEFORE_HEAD):eJ(t,n);break;case ca.BEFORE_HEAD:var t,n,r,i,a,s,o,l,c,u,h,d,p=this,f=e;switch(f.tagID){case cn.HTML:tr(p,f);break;case cn.HEAD:p._insertElement(f,l8.HTML),p.headElement=p.openElements.current,p.insertionMode=ca.IN_HEAD;break;default:e0(p,f)}break;case ca.IN_HEAD:e1(this,e);break;case ca.IN_HEAD_NO_SCRIPT:var m=this,g=e;switch(g.tagID){case cn.HTML:tr(m,g);break;case cn.BASEFONT:case cn.BGSOUND:case cn.HEAD:case cn.LINK:case cn.META:case cn.NOFRAMES:case cn.STYLE:e1(m,g);break;case cn.NOSCRIPT:m._err(g,l2.nestedNoscriptInHead);break;default:e3(m,g)}break;case ca.AFTER_HEAD:var y=this,b=e;switch(b.tagID){case cn.HTML:tr(y,b);break;case cn.BODY:y._insertElement(b,l8.HTML),y.framesetOk=!1,y.insertionMode=ca.IN_BODY;break;case cn.FRAMESET:y._insertElement(b,l8.HTML),y.insertionMode=ca.IN_FRAMESET;break;case cn.BASE:case cn.BASEFONT:case cn.BGSOUND:case cn.LINK:case cn.META:case cn.NOFRAMES:case cn.SCRIPT:case cn.STYLE:case cn.TEMPLATE:case cn.TITLE:y._err(b,l2.abandonedHeadElementChild),y.openElements.push(y.headElement,cn.HEAD),e1(y,b),y.openElements.remove(y.headElement);break;case cn.HEAD:y._err(b,l2.misplacedStartTagForHeadElement);break;default:e6(y,b)}break;case ca.IN_BODY:tr(this,e);break;case ca.IN_TABLE:tl(this,e);break;case ca.IN_TABLE_TEXT:tp(this,e);break;case ca.IN_CAPTION:let k;r=this,k=(i=e).tagID,tf.has(k)?r.openElements.hasInTableScope(cn.CAPTION)&&(r.openElements.generateImpliedEndTags(),r.openElements.popUntilTagNamePopped(cn.CAPTION),r.activeFormattingElements.clearToLastMarker(),r.insertionMode=ca.IN_TABLE,tl(r,i)):tr(r,i);break;case ca.IN_COLUMN_GROUP:tm(this,e);break;case ca.IN_TABLE_BODY:ty(this,e);break;case ca.IN_ROW:tk(this,e);break;case ca.IN_CELL:let x;a=this,x=(s=e).tagID,tf.has(x)?(a.openElements.hasInTableScope(cn.TD)||a.openElements.hasInTableScope(cn.TH))&&(a._closeTableCell(),tk(a,s)):tr(a,s);break;case ca.IN_SELECT:tv(this,e);break;case ca.IN_SELECT_IN_TABLE:let v;o=this,(v=(l=e).tagID)===cn.CAPTION||v===cn.TABLE||v===cn.TBODY||v===cn.TFOOT||v===cn.THEAD||v===cn.TR||v===cn.TD||v===cn.TH?(o.openElements.popUntilTagNamePopped(cn.SELECT),o._resetInsertionMode(),o._processStartTag(l)):tv(o,l);break;case ca.IN_TEMPLATE:var E=this,_=e;switch(_.tagID){case cn.BASE:case cn.BASEFONT:case cn.BGSOUND:case cn.LINK:case cn.META:case cn.NOFRAMES:case cn.SCRIPT:case cn.STYLE:case cn.TEMPLATE:case cn.TITLE:e1(E,_);break;case cn.CAPTION:case cn.COLGROUP:case cn.TBODY:case cn.TFOOT:case cn.THEAD:E.tmplInsertionModeStack[0]=ca.IN_TABLE,E.insertionMode=ca.IN_TABLE,tl(E,_);break;case cn.COL:E.tmplInsertionModeStack[0]=ca.IN_COLUMN_GROUP,E.insertionMode=ca.IN_COLUMN_GROUP,tm(E,_);break;case cn.TR:E.tmplInsertionModeStack[0]=ca.IN_TABLE_BODY,E.insertionMode=ca.IN_TABLE_BODY,ty(E,_);break;case cn.TD:case cn.TH:E.tmplInsertionModeStack[0]=ca.IN_ROW,E.insertionMode=ca.IN_ROW,tk(E,_);break;default:E.tmplInsertionModeStack[0]=ca.IN_BODY,E.insertionMode=ca.IN_BODY,tr(E,_)}break;case ca.AFTER_BODY:c=this,(u=e).tagID===cn.HTML?tr(c,u):tA(c,u);break;case ca.IN_FRAMESET:var T=this,A=e;switch(A.tagID){case cn.HTML:tr(T,A);break;case cn.FRAMESET:T._insertElement(A,l8.HTML);break;case cn.FRAME:T._appendElement(A,l8.HTML),A.ackSelfClosing=!0;break;case cn.NOFRAMES:e1(T,A)}break;case ca.AFTER_FRAMESET:var w=this,S=e;switch(S.tagID){case cn.HTML:tr(w,S);break;case cn.NOFRAMES:e1(w,S)}break;case ca.AFTER_AFTER_BODY:h=this,(d=e).tagID===cn.HTML?tr(h,d):tw(h,d);break;case ca.AFTER_AFTER_FRAMESET:var C=this,N=e;switch(N.tagID){case cn.HTML:tr(C,N);break;case cn.NOFRAMES:e1(C,N)}}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?function(e,t){if(t.tagID===cn.P||t.tagID===cn.BR){tS(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){let r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===l8.HTML){e._endTagOutsideForeignContent(t);break}let i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case ca.INITIAL:eZ(this,e);break;case ca.BEFORE_HTML:let t;r=this,((t=(i=e).tagID)===cn.HTML||t===cn.HEAD||t===cn.BODY||t===cn.BR)&&eJ(r,i);break;case ca.BEFORE_HEAD:let n;a=this,(n=(s=e).tagID)===cn.HEAD||n===cn.BODY||n===cn.HTML||n===cn.BR?e0(a,s):a._err(s,l2.endTagWithoutMatchingOpenElement);break;case ca.IN_HEAD:var r,i,a,s,o,l,c,u,h,d,p,f,m=this,g=e;switch(g.tagID){case cn.HEAD:m.openElements.pop(),m.insertionMode=ca.AFTER_HEAD;break;case cn.BODY:case cn.BR:case cn.HTML:e5(m,g);break;case cn.TEMPLATE:e2(m,g);break;default:m._err(g,l2.endTagWithoutMatchingOpenElement)}break;case ca.IN_HEAD_NO_SCRIPT:var y=this,b=e;switch(b.tagID){case cn.NOSCRIPT:y.openElements.pop(),y.insertionMode=ca.IN_HEAD;break;case cn.BR:e3(y,b);break;default:y._err(b,l2.endTagWithoutMatchingOpenElement)}break;case ca.AFTER_HEAD:var k=this,x=e;switch(x.tagID){case cn.BODY:case cn.HTML:case cn.BR:e6(k,x);break;case cn.TEMPLATE:e2(k,x);break;default:k._err(x,l2.endTagWithoutMatchingOpenElement)}break;case ca.IN_BODY:ta(this,e);break;case ca.TEXT:o=this,e.tagID===cn.SCRIPT&&(null==(l=o.scriptHandler)||l.call(o,o.openElements.current)),o.openElements.pop(),o.insertionMode=o.originalInsertionMode;break;case ca.IN_TABLE:tc(this,e);break;case ca.IN_TABLE_TEXT:tp(this,e);break;case ca.IN_CAPTION:var v=this,E=e;let _=E.tagID;switch(_){case cn.CAPTION:case cn.TABLE:v.openElements.hasInTableScope(cn.CAPTION)&&(v.openElements.generateImpliedEndTags(),v.openElements.popUntilTagNamePopped(cn.CAPTION),v.activeFormattingElements.clearToLastMarker(),v.insertionMode=ca.IN_TABLE,_===cn.TABLE&&tc(v,E));break;case cn.BODY:case cn.COL:case cn.COLGROUP:case cn.HTML:case cn.TBODY:case cn.TD:case cn.TFOOT:case cn.TH:case cn.THEAD:case cn.TR:break;default:ta(v,E)}break;case ca.IN_COLUMN_GROUP:var T=this,A=e;switch(A.tagID){case cn.COLGROUP:T.openElements.currentTagId===cn.COLGROUP&&(T.openElements.pop(),T.insertionMode=ca.IN_TABLE);break;case cn.TEMPLATE:e2(T,A);break;case cn.COL:break;default:tg(T,A)}break;case ca.IN_TABLE_BODY:tb(this,e);break;case ca.IN_ROW:tx(this,e);break;case ca.IN_CELL:var w=this,S=e;let C=S.tagID;switch(C){case cn.TD:case cn.TH:w.openElements.hasInTableScope(C)&&(w.openElements.generateImpliedEndTags(),w.openElements.popUntilTagNamePopped(C),w.activeFormattingElements.clearToLastMarker(),w.insertionMode=ca.IN_ROW);break;case cn.TABLE:case cn.TBODY:case cn.TFOOT:case cn.THEAD:case cn.TR:w.openElements.hasInTableScope(C)&&(w._closeTableCell(),tx(w,S));break;case cn.BODY:case cn.CAPTION:case cn.COL:case cn.COLGROUP:case cn.HTML:break;default:ta(w,S)}break;case ca.IN_SELECT:tE(this,e);break;case ca.IN_SELECT_IN_TABLE:let N;c=this,(N=(u=e).tagID)===cn.CAPTION||N===cn.TABLE||N===cn.TBODY||N===cn.TFOOT||N===cn.THEAD||N===cn.TR||N===cn.TD||N===cn.TH?c.openElements.hasInTableScope(N)&&(c.openElements.popUntilTagNamePopped(cn.SELECT),c._resetInsertionMode(),c.onEndTag(u)):tE(c,u);break;case ca.IN_TEMPLATE:h=this,(d=e).tagID===cn.TEMPLATE&&e2(h,d);break;case ca.AFTER_BODY:tT(this,e);break;case ca.IN_FRAMESET:p=this,e.tagID===cn.FRAMESET&&!p.openElements.isRootHtmlElementCurrent()&&(p.openElements.pop(),p.fragmentContext||p.openElements.currentTagId===cn.FRAMESET||(p.insertionMode=ca.AFTER_FRAMESET));break;case ca.AFTER_FRAMESET:f=this,e.tagID===cn.HTML&&(f.insertionMode=ca.AFTER_AFTER_FRAMESET);break;case ca.AFTER_AFTER_BODY:tw(this,e)}}onEof(e){switch(this.insertionMode){case ca.INITIAL:eZ(this,e);break;case ca.BEFORE_HTML:eJ(this,e);break;case ca.BEFORE_HEAD:e0(this,e);break;case ca.IN_HEAD:e5(this,e);break;case ca.IN_HEAD_NO_SCRIPT:e3(this,e);break;case ca.AFTER_HEAD:e6(this,e);break;case ca.IN_BODY:case ca.IN_TABLE:case ca.IN_CAPTION:case ca.IN_COLUMN_GROUP:case ca.IN_TABLE_BODY:case ca.IN_ROW:case ca.IN_CELL:case ca.IN_SELECT:case ca.IN_SELECT_IN_TABLE:ts(this,e);break;case ca.TEXT:var t,n;t=this,n=e,t._err(n,l2.eofInElementThatCanContainOnlyText),t.openElements.pop(),t.insertionMode=t.originalInsertionMode,t.onEof(n);break;case ca.IN_TABLE_TEXT:tp(this,e);break;case ca.IN_TEMPLATE:t_(this,e);break;case ca.AFTER_BODY:case ca.IN_FRAMESET:case ca.AFTER_FRAMESET:case ca.AFTER_AFTER_BODY:case ca.AFTER_AFTER_FRAMESET:eQ(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===l1.LINE_FEED)){if(1===e.chars.length)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode)return void this._insertCharacters(e);switch(this.insertionMode){case ca.IN_HEAD:case ca.IN_HEAD_NO_SCRIPT:case ca.AFTER_HEAD:case ca.TEXT:case ca.IN_COLUMN_GROUP:case ca.IN_SELECT:case ca.IN_SELECT_IN_TABLE:case ca.IN_FRAMESET:case ca.AFTER_FRAMESET:this._insertCharacters(e);break;case ca.IN_BODY:case ca.IN_CAPTION:case ca.IN_CELL:case ca.IN_TEMPLATE:case ca.AFTER_BODY:case ca.AFTER_AFTER_BODY:case ca.AFTER_AFTER_FRAMESET:e4(this,e);break;case ca.IN_TABLE:case ca.IN_TABLE_BODY:case ca.IN_ROW:to(this,e);break;case ca.IN_TABLE_TEXT:th(this,e)}}}function eY(e,t){for(let n=0;n<8;n++){let n=function(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):ti(e,t),n}(e,t);if(!n)break;let r=function(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){let i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}(e,n);if(!r)break;e.activeFormattingElements.bookmark=n;let i=function(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,s=i;s!==n;a++,s=i){i=e.openElements.getCommonAncestor(s);let n=e.activeFormattingElements.getElementEntry(s),o=n&&a>=3;!n||o?(o&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(s)):(s=function(e,t){let n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}(e,r,n.element),a=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(i),a&&function(e,t,n){let r=ea(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(r))e._fosterParentElement(n);else{let i=e.treeAdapter.getNamespaceURI(t);r===cn.TEMPLATE&&i===l8.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}(e,a,i),function(e,t,n){let r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,i.tagID)}(e,r,n)}}function eX(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function eQ(e,t){if(e.stopped=!0,t.location){let n=2*!e.fragmentContext;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){let n=e.openElements.items[0],r=e.treeAdapter.getNodeSourceCodeLocation(n);if(r&&!r.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){let n=e.openElements.items[1],r=e.treeAdapter.getNodeSourceCodeLocation(n);r&&!r.endTag&&e._setEndLocation(n,t)}}}}function eZ(e,t){e._err(t,l2.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,ce.QUIRKS),e.insertionMode=ca.BEFORE_HTML,e._processToken(t)}function eJ(e,t){e._insertFakeRootElement(),e.insertionMode=ca.BEFORE_HEAD,e._processToken(t)}function e0(e,t){e._insertFakeElement(ct.HEAD,cn.HEAD),e.headElement=e.openElements.current,e.insertionMode=ca.IN_HEAD,e._processToken(t)}function e1(e,t){switch(t.tagID){case cn.HTML:tr(e,t);break;case cn.BASE:case cn.BASEFONT:case cn.BGSOUND:case cn.LINK:case cn.META:e._appendElement(t,l8.HTML),t.ackSelfClosing=!0;break;case cn.TITLE:e._switchToTextParsing(t,ec.RCDATA);break;case cn.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,ec.RAWTEXT):(e._insertElement(t,l8.HTML),e.insertionMode=ca.IN_HEAD_NO_SCRIPT);break;case cn.NOFRAMES:case cn.STYLE:e._switchToTextParsing(t,ec.RAWTEXT);break;case cn.SCRIPT:e._switchToTextParsing(t,ec.SCRIPT_DATA);break;case cn.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=ca.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(ca.IN_TEMPLATE);break;case cn.HEAD:e._err(t,l2.misplacedStartTagForHeadElement);break;default:e5(e,t)}}function e2(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==cn.TEMPLATE&&e._err(t,l2.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(cn.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,l2.endTagWithoutMatchingOpenElement)}function e5(e,t){e.openElements.pop(),e.insertionMode=ca.AFTER_HEAD,e._processToken(t)}function e3(e,t){let n=t.type===l5.EOF?l2.openElementsLeftAfterEof:l2.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=ca.IN_HEAD,e._processToken(t)}function e6(e,t){e._insertFakeElement(ct.BODY,cn.BODY),e.insertionMode=ca.IN_BODY,e9(e,t)}function e9(e,t){switch(t.type){case l5.CHARACTER:e8(e,t);break;case l5.WHITESPACE_CHARACTER:e4(e,t);break;case l5.COMMENT:eX(e,t);break;case l5.START_TAG:tr(e,t);break;case l5.END_TAG:ta(e,t);break;case l5.EOF:ts(e,t)}}function e4(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function e8(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function e7(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,l8.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function te(e){let t=J(e,l7.TYPE);return null!=t&&"hidden"===t.toLowerCase()}function tt(e,t){e._switchToTextParsing(t,ec.RAWTEXT)}function tn(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,l8.HTML)}function tr(e,t){switch(t.tagID){case cn.I:case cn.S:case cn.B:case cn.U:case cn.EM:case cn.TT:case cn.BIG:case cn.CODE:case cn.FONT:case cn.SMALL:case cn.STRIKE:case cn.STRONG:e._reconstructActiveFormattingElements(),e._insertElement(t,l8.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);break;case cn.A:let n;(n=e.activeFormattingElements.getElementEntryInScopeWithTagName(ct.A))&&(eY(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,l8.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);break;case cn.H1:case cn.H2:case cn.H3:case cn.H4:case cn.H5:case cn.H6:e.openElements.hasInButtonScope(cn.P)&&e._closePElement(),void 0!==e.openElements.currentTagId&&el.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,l8.HTML);break;case cn.P:case cn.DL:case cn.OL:case cn.UL:case cn.DIV:case cn.DIR:case cn.NAV:case cn.MAIN:case cn.MENU:case cn.ASIDE:case cn.CENTER:case cn.FIGURE:case cn.FOOTER:case cn.HEADER:case cn.HGROUP:case cn.DIALOG:case cn.DETAILS:case cn.ADDRESS:case cn.ARTICLE:case cn.SEARCH:case cn.SECTION:case cn.SUMMARY:case cn.FIELDSET:case cn.BLOCKQUOTE:case cn.FIGCAPTION:e.openElements.hasInButtonScope(cn.P)&&e._closePElement(),e._insertElement(t,l8.HTML);break;case cn.LI:case cn.DD:case cn.DT:e.framesetOk=!1;let r=t.tagID;for(let t=e.openElements.stackTop;t>=0;t--){let n=e.openElements.tagIDs[t];if(r===cn.LI&&n===cn.LI||(r===cn.DD||r===cn.DT)&&(n===cn.DD||n===cn.DT)){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n);break}if(n!==cn.ADDRESS&&n!==cn.DIV&&n!==cn.P&&e._isSpecialElement(e.openElements.items[t],n))break}e.openElements.hasInButtonScope(cn.P)&&e._closePElement(),e._insertElement(t,l8.HTML);break;case cn.BR:case cn.IMG:case cn.WBR:case cn.AREA:case cn.EMBED:case cn.KEYGEN:e7(e,t);break;case cn.HR:e.openElements.hasInButtonScope(cn.P)&&e._closePElement(),e._appendElement(t,l8.HTML),e.framesetOk=!1,t.ackSelfClosing=!0;break;case cn.RB:case cn.RTC:e.openElements.hasInScope(cn.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,l8.HTML);break;case cn.RT:case cn.RP:e.openElements.hasInScope(cn.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(cn.RTC),e._insertElement(t,l8.HTML);break;case cn.PRE:case cn.LISTING:e.openElements.hasInButtonScope(cn.P)&&e._closePElement(),e._insertElement(t,l8.HTML),e.skipNextNewLine=!0,e.framesetOk=!1;break;case cn.XMP:e.openElements.hasInButtonScope(cn.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,ec.RAWTEXT);break;case cn.SVG:e._reconstructActiveFormattingElements(),ez(t),eG(t),t.selfClosing?e._appendElement(t,l8.SVG):e._insertElement(t,l8.SVG),t.ackSelfClosing=!0;break;case cn.HTML:0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs);break;case cn.BASE:case cn.LINK:case cn.META:case cn.STYLE:case cn.TITLE:case cn.SCRIPT:case cn.BGSOUND:case cn.BASEFONT:case cn.TEMPLATE:e1(e,t);break;case cn.BODY:let i;(i=e.openElements.tryPeekProperlyNestedBodyElement())&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(i,t.attrs));break;case cn.FORM:let a;a=e.openElements.tmplCount>0,(!e.formElement||a)&&(e.openElements.hasInButtonScope(cn.P)&&e._closePElement(),e._insertElement(t,l8.HTML),a||(e.formElement=e.openElements.current));break;case cn.NOBR:e._reconstructActiveFormattingElements(),e.openElements.hasInScope(cn.NOBR)&&(eY(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,l8.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);break;case cn.MATH:e._reconstructActiveFormattingElements(),ej(t),eG(t),t.selfClosing?e._appendElement(t,l8.MATHML):e._insertElement(t,l8.MATHML),t.ackSelfClosing=!0;break;case cn.TABLE:e.treeAdapter.getDocumentMode(e.document)!==ce.QUIRKS&&e.openElements.hasInButtonScope(cn.P)&&e._closePElement(),e._insertElement(t,l8.HTML),e.framesetOk=!1,e.insertionMode=ca.IN_TABLE;break;case cn.INPUT:e._reconstructActiveFormattingElements(),e._appendElement(t,l8.HTML),te(t)||(e.framesetOk=!1),t.ackSelfClosing=!0;break;case cn.PARAM:case cn.TRACK:case cn.SOURCE:e._appendElement(t,l8.HTML),t.ackSelfClosing=!0;break;case cn.IMAGE:t.tagName=ct.IMG,t.tagID=cn.IMG,e7(e,t);break;case cn.BUTTON:e.openElements.hasInScope(cn.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(cn.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,l8.HTML),e.framesetOk=!1;break;case cn.APPLET:case cn.OBJECT:case cn.MARQUEE:e._reconstructActiveFormattingElements(),e._insertElement(t,l8.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1;break;case cn.IFRAME:e.framesetOk=!1,e._switchToTextParsing(t,ec.RAWTEXT);break;case cn.SELECT:e._reconstructActiveFormattingElements(),e._insertElement(t,l8.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===ca.IN_TABLE||e.insertionMode===ca.IN_CAPTION||e.insertionMode===ca.IN_TABLE_BODY||e.insertionMode===ca.IN_ROW||e.insertionMode===ca.IN_CELL?ca.IN_SELECT_IN_TABLE:ca.IN_SELECT;break;case cn.OPTION:case cn.OPTGROUP:e.openElements.currentTagId===cn.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,l8.HTML);break;case cn.NOEMBED:case cn.NOFRAMES:tt(e,t);break;case cn.FRAMESET:let s;s=e.openElements.tryPeekProperlyNestedBodyElement(),e.framesetOk&&s&&(e.treeAdapter.detachNode(s),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,l8.HTML),e.insertionMode=ca.IN_FRAMESET);break;case cn.TEXTAREA:e._insertElement(t,l8.HTML),e.skipNextNewLine=!0,e.tokenizer.state=ec.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=ca.TEXT;break;case cn.NOSCRIPT:e.options.scriptingEnabled?tt(e,t):tn(e,t);break;case cn.PLAINTEXT:e.openElements.hasInButtonScope(cn.P)&&e._closePElement(),e._insertElement(t,l8.HTML),e.tokenizer.state=ec.PLAINTEXT;break;case cn.COL:case cn.TH:case cn.TD:case cn.TR:case cn.HEAD:case cn.FRAME:case cn.TBODY:case cn.TFOOT:case cn.THEAD:case cn.CAPTION:case cn.COLGROUP:break;default:tn(e,t)}}function ti(e,t){let n=t.tagName,r=t.tagID;for(let t=e.openElements.stackTop;t>0;t--){let i=e.openElements.items[t],a=e.openElements.tagIDs[t];if(r===a&&(r!==cn.UNKNOWN||e.treeAdapter.getTagName(i)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=t&&e.openElements.shortenToLength(t);break}if(e._isSpecialElement(i,a))break}}function ta(e,t){switch(t.tagID){case cn.A:case cn.B:case cn.I:case cn.S:case cn.U:case cn.EM:case cn.TT:case cn.BIG:case cn.CODE:case cn.FONT:case cn.NOBR:case cn.SMALL:case cn.STRIKE:case cn.STRONG:eY(e,t);break;case cn.P:e.openElements.hasInButtonScope(cn.P)||e._insertFakeElement(ct.P,cn.P),e._closePElement();break;case cn.DL:case cn.UL:case cn.OL:case cn.DIR:case cn.DIV:case cn.NAV:case cn.PRE:case cn.MAIN:case cn.MENU:case cn.ASIDE:case cn.BUTTON:case cn.CENTER:case cn.FIGURE:case cn.FOOTER:case cn.HEADER:case cn.HGROUP:case cn.DIALOG:case cn.ADDRESS:case cn.ARTICLE:case cn.DETAILS:case cn.SEARCH:case cn.SECTION:case cn.SUMMARY:case cn.LISTING:case cn.FIELDSET:case cn.BLOCKQUOTE:case cn.FIGCAPTION:let n;n=t.tagID,e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n));break;case cn.LI:e.openElements.hasInListItemScope(cn.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(cn.LI),e.openElements.popUntilTagNamePopped(cn.LI));break;case cn.DD:case cn.DT:let r;r=t.tagID,e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r));break;case cn.H1:case cn.H2:case cn.H3:case cn.H4:case cn.H5:case cn.H6:e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped());break;case cn.BR:e._reconstructActiveFormattingElements(),e._insertFakeElement(ct.BR,cn.BR),e.openElements.pop(),e.framesetOk=!1;break;case cn.BODY:if(e.openElements.hasInScope(cn.BODY)&&(e.insertionMode=ca.AFTER_BODY,e.options.sourceCodeLocationInfo)){let n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}break;case cn.HTML:e.openElements.hasInScope(cn.BODY)&&(e.insertionMode=ca.AFTER_BODY,tT(e,t));break;case cn.FORM:!function(e){let t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(cn.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(cn.FORM):n&&e.openElements.remove(n))}(e);break;case cn.APPLET:case cn.OBJECT:case cn.MARQUEE:let i;i=t.tagID,e.openElements.hasInScope(i)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(i),e.activeFormattingElements.clearToLastMarker());break;case cn.TEMPLATE:e2(e,t);break;default:ti(e,t)}}function ts(e,t){e.tmplInsertionModeStack.length>0?t_(e,t):eQ(e,t)}function to(e,t){if(void 0!==e.openElements.currentTagId&&eK.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=ca.IN_TABLE_TEXT,t.type){case l5.CHARACTER:td(e,t);break;case l5.WHITESPACE_CHARACTER:th(e,t)}else tu(e,t)}function tl(e,t){switch(t.tagID){case cn.TD:case cn.TH:case cn.TR:e.openElements.clearBackToTableContext(),e._insertFakeElement(ct.TBODY,cn.TBODY),e.insertionMode=ca.IN_TABLE_BODY,ty(e,t);break;case cn.STYLE:case cn.SCRIPT:case cn.TEMPLATE:e1(e,t);break;case cn.COL:e.openElements.clearBackToTableContext(),e._insertFakeElement(ct.COLGROUP,cn.COLGROUP),e.insertionMode=ca.IN_COLUMN_GROUP,tm(e,t);break;case cn.FORM:e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,l8.HTML),e.formElement=e.openElements.current,e.openElements.pop());break;case cn.TABLE:e.openElements.hasInTableScope(cn.TABLE)&&(e.openElements.popUntilTagNamePopped(cn.TABLE),e._resetInsertionMode(),e._processStartTag(t));break;case cn.TBODY:case cn.TFOOT:case cn.THEAD:e.openElements.clearBackToTableContext(),e._insertElement(t,l8.HTML),e.insertionMode=ca.IN_TABLE_BODY;break;case cn.INPUT:te(t)?e._appendElement(t,l8.HTML):tu(e,t),t.ackSelfClosing=!0;break;case cn.CAPTION:e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,l8.HTML),e.insertionMode=ca.IN_CAPTION;break;case cn.COLGROUP:e.openElements.clearBackToTableContext(),e._insertElement(t,l8.HTML),e.insertionMode=ca.IN_COLUMN_GROUP;break;default:tu(e,t)}}function tc(e,t){switch(t.tagID){case cn.TABLE:e.openElements.hasInTableScope(cn.TABLE)&&(e.openElements.popUntilTagNamePopped(cn.TABLE),e._resetInsertionMode());break;case cn.TEMPLATE:e2(e,t);break;case cn.BODY:case cn.CAPTION:case cn.COL:case cn.COLGROUP:case cn.HTML:case cn.TBODY:case cn.TD:case cn.TFOOT:case cn.TH:case cn.THEAD:case cn.TR:break;default:tu(e,t)}}function tu(e,t){let n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e9(e,t),e.fosterParentingEnabled=n}function th(e,t){e.pendingCharacterTokens.push(t)}function td(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function tp(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)tu(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}let tf=new Set([cn.CAPTION,cn.COL,cn.COLGROUP,cn.TBODY,cn.TD,cn.TFOOT,cn.TH,cn.THEAD,cn.TR]);function tm(e,t){switch(t.tagID){case cn.HTML:tr(e,t);break;case cn.COL:e._appendElement(t,l8.HTML),t.ackSelfClosing=!0;break;case cn.TEMPLATE:e1(e,t);break;default:tg(e,t)}}function tg(e,t){e.openElements.currentTagId===cn.COLGROUP&&(e.openElements.pop(),e.insertionMode=ca.IN_TABLE,e._processToken(t))}function ty(e,t){switch(t.tagID){case cn.TR:e.openElements.clearBackToTableBodyContext(),e._insertElement(t,l8.HTML),e.insertionMode=ca.IN_ROW;break;case cn.TH:case cn.TD:e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(ct.TR,cn.TR),e.insertionMode=ca.IN_ROW,tk(e,t);break;case cn.CAPTION:case cn.COL:case cn.COLGROUP:case cn.TBODY:case cn.TFOOT:case cn.THEAD:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=ca.IN_TABLE,tl(e,t));break;default:tl(e,t)}}function tb(e,t){let n=t.tagID;switch(t.tagID){case cn.TBODY:case cn.TFOOT:case cn.THEAD:e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=ca.IN_TABLE);break;case cn.TABLE:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=ca.IN_TABLE,tc(e,t));break;case cn.BODY:case cn.CAPTION:case cn.COL:case cn.COLGROUP:case cn.HTML:case cn.TD:case cn.TH:case cn.TR:break;default:tc(e,t)}}function tk(e,t){switch(t.tagID){case cn.TH:case cn.TD:e.openElements.clearBackToTableRowContext(),e._insertElement(t,l8.HTML),e.insertionMode=ca.IN_CELL,e.activeFormattingElements.insertMarker();break;case cn.CAPTION:case cn.COL:case cn.COLGROUP:case cn.TBODY:case cn.TFOOT:case cn.THEAD:case cn.TR:e.openElements.hasInTableScope(cn.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=ca.IN_TABLE_BODY,ty(e,t));break;default:tl(e,t)}}function tx(e,t){switch(t.tagID){case cn.TR:e.openElements.hasInTableScope(cn.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=ca.IN_TABLE_BODY);break;case cn.TABLE:e.openElements.hasInTableScope(cn.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=ca.IN_TABLE_BODY,tb(e,t));break;case cn.TBODY:case cn.TFOOT:case cn.THEAD:(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(cn.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=ca.IN_TABLE_BODY,tb(e,t));break;case cn.BODY:case cn.CAPTION:case cn.COL:case cn.COLGROUP:case cn.HTML:case cn.TD:case cn.TH:break;default:tc(e,t)}}function tv(e,t){switch(t.tagID){case cn.HTML:tr(e,t);break;case cn.OPTION:e.openElements.currentTagId===cn.OPTION&&e.openElements.pop(),e._insertElement(t,l8.HTML);break;case cn.OPTGROUP:e.openElements.currentTagId===cn.OPTION&&e.openElements.pop(),e.openElements.currentTagId===cn.OPTGROUP&&e.openElements.pop(),e._insertElement(t,l8.HTML);break;case cn.HR:e.openElements.currentTagId===cn.OPTION&&e.openElements.pop(),e.openElements.currentTagId===cn.OPTGROUP&&e.openElements.pop(),e._appendElement(t,l8.HTML),t.ackSelfClosing=!0;break;case cn.INPUT:case cn.KEYGEN:case cn.TEXTAREA:case cn.SELECT:e.openElements.hasInSelectScope(cn.SELECT)&&(e.openElements.popUntilTagNamePopped(cn.SELECT),e._resetInsertionMode(),t.tagID!==cn.SELECT&&e._processStartTag(t));break;case cn.SCRIPT:case cn.TEMPLATE:e1(e,t)}}function tE(e,t){switch(t.tagID){case cn.OPTGROUP:e.openElements.stackTop>0&&e.openElements.currentTagId===cn.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===cn.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===cn.OPTGROUP&&e.openElements.pop();break;case cn.OPTION:e.openElements.currentTagId===cn.OPTION&&e.openElements.pop();break;case cn.SELECT:e.openElements.hasInSelectScope(cn.SELECT)&&(e.openElements.popUntilTagNamePopped(cn.SELECT),e._resetInsertionMode());break;case cn.TEMPLATE:e2(e,t)}}function t_(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(cn.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):eQ(e,t)}function tT(e,t){var n;if(t.tagID===cn.HTML){if(e.fragmentContext||(e.insertionMode=ca.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===cn.HTML){e._setEndLocation(e.openElements.items[0],t);let r=e.openElements.items[1];!r||(null==(n=e.treeAdapter.getNodeSourceCodeLocation(r))?void 0:n.endTag)||e._setEndLocation(r,t)}}else tA(e,t)}function tA(e,t){e.insertionMode=ca.IN_BODY,e9(e,t)}function tw(e,t){e.insertionMode=ca.IN_BODY,e9(e,t)}function tS(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==l8.HTML&&void 0!==e.openElements.currentTagId&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}String.prototype.codePointAt,ct.AREA,ct.BASE,ct.BASEFONT,ct.BGSOUND,ct.BR,ct.COL,ct.EMBED,ct.FRAME,ct.HR,ct.IMG,ct.INPUT,ct.KEYGEN,ct.LINK,ct.META,ct.PARAM,ct.SOURCE,ct.TRACK,ct.WBR;let tC=tM("end"),tN=tM("start");function tM(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function tI(e){let t=tN(e),n=tC(e);if(t&&n)return{start:t,end:n}}let tR=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,tL=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),tD={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function tO(e,t){var n,r;let i,s,o=!!((i="root"===(r=e).type?r.children[0]:r)&&("doctype"===i.type||"element"===i.type&&"html"===i.tagName.toLowerCase())),l=(0,H.A)("type",{handlers:{root:tF,element:tB,text:tH,comment:t$,doctype:tU,raw:tj},unknown:tz}),c={parser:o?new eq(tD):eq.getFragmentParser(void 0,tD),handle(e){l(e,c)},stitches:!1,options:t||{}};l(e,c),tG(c,tN());let u=(n=o?c.parser.document:c.parser.getFragment(),R({file:(s={file:c.options.file}).file||void 0,location:!1,schema:"svg"===s.space?w.JW:w.qy,verbose:s.verbose||!1},n));return(c.stitches&&(0,a.YR)(u,"comment",function(e,t,n){if(e.value.stitch&&n&&void 0!==t)return n.children[t]=e.value.stitch,t}),"root"===u.type&&1===u.children.length&&u.children[0].type===e.type)?u.children[0]:u}function tP(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function tF(e,t){tP(e.children,t)}function tB(e,t){(function(e,t){let n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===ec.PLAINTEXT)return;tG(t,tN(e));let r=t.parser.openElements.current,i="namespaceURI"in r?r.namespaceURI:N.t.html;i===N.t.html&&"svg"===n&&(i=N.t.svg);let a=$({...e,children:[]},"svg"===({space:i===N.t.svg?"svg":"html"}).space?w.JW:w.qy),s={type:l5.START_TAG,tagName:n,tagID:ea(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:tK(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n})(e,t),tP(e.children,t),function(e,t){let n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&G.b.includes(n)||t.parser.tokenizer.state===ec.PLAINTEXT)return;tG(t,tC(e));let r={type:l5.END_TAG,tagName:n,tagID:ea(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:tK(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===ec.RCDATA||t.parser.tokenizer.state===ec.RAWTEXT||t.parser.tokenizer.state===ec.SCRIPT_DATA)&&(t.parser.tokenizer.state=ec.DATA)}(e,t)}function tH(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);let n={type:l5.CHARACTER,chars:e.value,location:tK(e)};tG(t,tN(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function tU(e,t){let n={type:l5.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:tK(e)};tG(t,tN(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function t$(e,t){let n=e.value,r={type:l5.COMMENT,data:n,location:tK(e)};tG(t,tN(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function tj(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,tV(t,tN(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(tR,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),72===t.parser.tokenizer.state||78===t.parser.tokenizer.state){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;let e=t.parser.tokenizer._consume();t.parser.tokenizer._callState(e)}}function tz(e,t){if(t.options.passThrough&&t.options.passThrough.includes(e.type)){var n;let r;t.stitches=!0,r="children"in(n=e)?_({...n,children:[]}):_(n),"children"in e&&"children"in r&&(r.children=tO({type:"root",children:e.children},t.options).children),t$({type:"comment",value:{stitch:r}},t)}else{let t="";throw tL.has(e.type)&&(t=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),Error("Cannot compile `"+e.type+"` node"+t)}}function tG(e,t){tV(e,t);let n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=ec.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function tV(e,t){if(t&&void 0!==t.offset){let n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function tK(e){let t=tN(e)||{line:void 0,column:void 0,offset:void 0},n=tC(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function tW(e){return function(t,n){return tO(t,{...e,file:n})}}let tq=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],tY={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...tq,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...tq],h2:[["className","sr-only"]],img:[...tq,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...tq,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...tq],table:[...tq],ul:[...tq,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},tX={}.hasOwnProperty;function tQ(e,t){if(t&&"object"==typeof t)switch("string"==typeof t.type?t.type:""){case"comment":var n,r,i=e,a=t;if(i.schema.allowComments){let e="string"==typeof a.value?a.value:"",t=e.indexOf("--\x3e"),n={type:"comment",value:t<0?e:e.slice(0,t)};return t1(n,a),n}return;case"doctype":var s=e,o=t;if(s.schema.allowDoctypes){let e={type:"doctype"};return t1(e,o),e}return;case"element":return function(e,t){let n="string"==typeof t.tagName?t.tagName:"";e.stack.push(n);let r=tZ(e,t.children),i=function(e,t){let n,r=e.stack[e.stack.length-1],i=e.schema.attributes,a=e.schema.required,s=i&&tX.call(i,r)?i[r]:void 0,o=i&&tX.call(i,"*")?i["*"]:void 0,l=t&&"object"==typeof t?t:{},c={};for(n in l)if(tX.call(l,n)){let t=l[n],r=tJ(e,t2(s,n),n,t);null==r&&(r=tJ(e,t2(o,n),n,t)),null!=r&&(c[n]=r)}if(a&&tX.call(a,r)){let e=a[r];for(n in e)tX.call(e,n)&&!tX.call(c,n)&&(c[n]=e[n])}return c}(e,t.properties);e.stack.pop();let a=!1;if(n&&"*"!==n&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(a=!0,e.schema.ancestors&&tX.call(e.schema.ancestors,n))){let t=e.schema.ancestors[n],r=-1;for(a=!1;++r<t.length;)e.stack.includes(t[r])&&(a=!0)}if(!a)return e.schema.strip&&!e.schema.strip.includes(n)?r:void 0;let s={type:"element",tagName:n,properties:i,children:r};return t1(s,t),s}(e,t);case"root":let l;return t1(l={type:"root",children:tZ(e,(n=t).children)},n),l;case"text":let c;return t1(c={type:"text",value:"string"==typeof(r=t).value?r.value:""},r),c}}function tZ(e,t){let n=[];if(Array.isArray(t)){let r=-1;for(;++r<t.length;){let i=tQ(e,t[r]);i&&(Array.isArray(i)?n.push(...i):n.push(i))}}return n}function tJ(e,t,n,r){return t?Array.isArray(r)?function(e,t,n,r){let i=-1,a=[];for(;++i<r.length;){let s=t0(e,t,n,r[i]);("number"==typeof s||"string"==typeof s)&&a.push(s)}return a}(e,t,n,r):t0(e,t,n,r):void 0}function t0(e,t,n,r){if(("boolean"==typeof r||"number"==typeof r||"string"==typeof r)&&function(e,t,n){let r=e.schema.protocols&&tX.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!r||0===r.length)return!0;let i=String(n),a=i.indexOf(":"),s=i.indexOf("?"),o=i.indexOf("#"),l=i.indexOf("/");if(a<0||l>-1&&a>l||s>-1&&a>s||o>-1&&a>o)return!0;let c=-1;for(;++c<r.length;){let e=r[c];if(a===e.length&&i.slice(0,e.length)===e)return!0}return!1}(e,n,r)){if("object"==typeof t&&t.length>1){let e=!1,n=0;for(;++n<t.length;){let i=t[n];if(i&&"object"==typeof i&&"flags"in i){if(i.test(String(r))){e=!0;break}}else if(i===r){e=!0;break}}if(!e)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(n)?e.schema.clobberPrefix+r:r}}function t1(e,t){let n=tI(t);t.data&&(e.data=_(t.data)),n&&(e.position=n)}function t2(e,t){let n,r=-1;if(e)for(;++r<e.length;){let i=e[r],a="string"==typeof i?i:i[0];if(a===t)return i;"data*"===a&&(n=i)}if(t.length>4&&"data"===t.slice(0,4).toLowerCase())return n}function t5(e){return function(t){let n,r;return n={type:"root",children:[]},(r=tQ({schema:e?{...tY,...e}:tY,stack:[]},t))&&(Array.isArray(r)?1===r.length?n=r[0]:n.children=r:n=r),n}}var t3=n(62275),t6=n(1052),t9=n(64587);let t4="phrasing",t8=["autolink","link","image","label"];function t7(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function ne(e){this.config.enter.autolinkProtocol.call(this,e)}function nt(e){this.config.exit.autolinkProtocol.call(this,e)}function nn(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];(0,T.ok)("link"===t.type),t.url="http://"+this.sliceSerialize(e)}function nr(e){this.config.exit.autolinkEmail.call(this,e)}function ni(e){this.exit(e)}function na(e){!function(e,t,n){let r=(0,t9.C)((n||{}).ignore||[]),i=function(e){let t=[];if(!Array.isArray(e))throw TypeError("Expected find and replace tuple or list of tuples");let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){var i;let e=n[r];t.push(["string"==typeof(i=e[0])?RegExp(function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(i),"g"):i,function(e){return"function"==typeof e?e:function(){return e}}(e[1])])}return t}(t),a=-1;for(;++a<i.length;)(0,s.VG)(e,"text",o);function o(e,t){let n,s=-1;for(;++s<t.length;){let e=t[s],i=n?n.children:void 0;if(r(e,i?i.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){let n=t[t.length-1],r=i[a][0],s=i[a][1],o=0,l=n.children.indexOf(e),c=!1,u=[];r.lastIndex=0;let h=r.exec(e.value);for(;h;){let n=h.index,i={index:h.index,input:h.input,stack:[...t,e]},a=s(...h,i);if("string"==typeof a&&(a=a.length>0?{type:"text",value:a}:void 0),!1===a?r.lastIndex=n+1:(o!==n&&u.push({type:"text",value:e.value.slice(o,n)}),Array.isArray(a)?u.push(...a):a&&u.push(a),o=n+h[0].length,c=!0),!r.global)break;h=r.exec(e.value)}return c?(o<e.value.length&&u.push({type:"text",value:e.value.slice(o)}),n.children.splice(l,1,...u)):u=[e],l+u.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,ns],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,no]],{ignore:["link","linkReference"]})}function ns(e,t,n,r,i){let a,s="";if(!nl(i))return!1;if(/^w/i.test(t)&&(n=t+n,t="",s="http://"),(a=n.split(".")).length<2||a[a.length-1]&&(/_/.test(a[a.length-1])||!/[a-zA-Z\d]/.test(a[a.length-1]))||a[a.length-2]&&(/_/.test(a[a.length-2])||!/[a-zA-Z\d]/.test(a[a.length-2])))return!1;let o=function(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")"),i=(0,t3.D)(e,"("),a=(0,t3.D)(e,")");for(;-1!==r&&i>a;)e+=n.slice(0,r+1),r=(n=n.slice(r+1)).indexOf(")"),a++;return[e,n]}(n+r);if(!o[0])return!1;let l={type:"link",title:null,url:s+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[l,{type:"text",value:o[1]}]:l}function no(e,t,n,r){return!(!nl(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function nl(e,t){let n=e.input.charCodeAt(e.index-1);return(0===e.index||(0,t6.Ny)(n)||(0,t6.es)(n))&&(!t||47!==n)}function nc(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}function nu(){this.buffer()}function nh(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function nd(){this.buffer()}function np(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function nf(e){let t=this.resume(),n=this.stack[this.stack.length-1];(0,T.ok)("footnoteReference"===n.type),n.identifier=nc(this.sliceSerialize(e)).toLowerCase(),n.label=t}function nm(e){this.exit(e)}function ng(e){let t=this.resume(),n=this.stack[this.stack.length-1];(0,T.ok)("footnoteDefinition"===n.type),n.identifier=nc(this.sliceSerialize(e)).toLowerCase(),n.label=t}function ny(e){this.exit(e)}function nb(e,t,n,r){let i=n.createTracker(r),a=i.move("[^"),s=n.enter("footnoteReference"),o=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{after:"]",before:a})),o(),s(),a+=i.move("]")}function nk(e,t,n){return 0===t?e:nx(e,t,n)}function nx(e,t,n){return(n?"":" ")+e}nb.peek=function(){return"["};let nv=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function nE(e){this.enter({type:"delete",children:[]},e)}function n_(e){this.exit(e)}function nT(e,t,n,r){let i=n.createTracker(r),a=n.enter("strikethrough"),s=i.move("~~");return s+=n.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),a(),s}function nA(e){return e.length}function nw(e){let t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:114*(82===t||114===t)}nT.peek=function(){return"~"};n(13332);function nS(e){return null===e||(0,t6.Ee)(e)||(0,t6.Ny)(e)?1:(0,t6.es)(e)?2:void 0}let nC={};function nN(e,t){let n=t||nC;return nM(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function nM(e,t,n){var r;if((r=e)&&"object"==typeof r){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return nI(e.children,t,n)}return Array.isArray(e)?nI(e,t,n):""}function nI(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=nM(e[i],t,n);return r.join("")}function nR(e,t,n){let r=e.value||"",i="`",a=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a<n.unsafe.length;){let e,t=n.unsafe[a],i=n.compilePattern(t);if(t.atBreak)for(;e=i.exec(r);){let t=e.index;10===r.charCodeAt(t)&&13===r.charCodeAt(t-1)&&t--,r=r.slice(0,t)+" "+r.slice(e.index+1)}}return i+r+i}nR.peek=function(){return"`"};(0,t9.C)(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);let nL=function(e,t,n,r){let i=function(e){let t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n),a=n.bulletCurrent||function(e){let t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}(n);t&&"list"===t.type&&t.ordered&&(a=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+a);let s=a.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(s=4*Math.ceil(s/4));let o=n.createTracker(r);o.move(a+" ".repeat(s-a.length)),o.shift(s);let l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,o.current()),function(e,t,n){return t?(n?"":" ".repeat(s))+e:(n?a:a+" ".repeat(s-a.length))+e});return l(),c};function nD(e){let t=e._align;(0,T.ok)(t,"expected `_align` on table"),this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function nO(e){this.exit(e),this.data.inTable=void 0}function nP(e){this.enter({type:"tableRow",children:[]},e)}function nF(e){this.exit(e)}function nB(e){this.enter({type:"tableCell",children:[]},e)}function nH(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,nU));let n=this.stack[this.stack.length-1];(0,T.ok)("inlineCode"===n.type),n.value=t,this.exit(e)}function nU(e,t){return"|"===t?t:e}function n$(e){let t=this.stack[this.stack.length-2];(0,T.ok)("listItem"===t.type),t.checked="taskListCheckValueChecked"===e.type}function nj(e){let t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){let e=this.stack[this.stack.length-1];(0,T.ok)("paragraph"===e.type);let n=e.children[0];if(n&&"text"===n.type){let r,i=t.children,a=-1;for(;++a<i.length;){let e=i[a];if("paragraph"===e.type){r=e;break}}r===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function nz(e,t,n,r){let i=e.children[0],a="boolean"==typeof e.checked&&i&&"paragraph"===i.type,s="["+(e.checked?"x":" ")+"] ",o=n.createTracker(r);a&&o.move(s);let l=nL(e,t,n,{...r,...o.current()});return a&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+s})),l}var nG=n(12835);let nV={}.hasOwnProperty;function nK(e){let t={},n=-1;for(;++n<e.length;)!function(e,t){let n;for(n in t){let r,i=(nV.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];if(a)for(r in a){nV.call(i,r)||(i[r]=[]);let e=a[r];!function(e,t){let n=-1,r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);(0,nG.m)(e,0,0,r)}(i[r],Array.isArray(e)?e:e?[e]:[])}}}(t,e[n]);return t}let nW={tokenize:function(e,t,n){let r=0;return function t(a){return(87===a||119===a)&&r<3?(r++,e.consume(a),t):46===a&&3===r?(e.consume(a),i):n(a)};function i(e){return null===e?n(e):t(e)}},partial:!0},nq={tokenize:function(e,t,n){let r,i,a;return s;function s(t){return 46===t||95===t?e.check(nX,l,o)(t):null===t||(0,t6.Ee)(t)||(0,t6.Ny)(t)||45!==t&&(0,t6.es)(t)?l(t):(a=!0,e.consume(t),s)}function o(t){return 95===t?r=!0:(i=r,r=void 0),e.consume(t),s}function l(e){return i||r||!a?n(e):t(e)}},partial:!0},nY={tokenize:function(e,t){let n=0,r=0;return i;function i(s){return 40===s?(n++,e.consume(s),i):41===s&&r<n?a(s):33===s||34===s||38===s||39===s||41===s||42===s||44===s||46===s||58===s||59===s||60===s||63===s||93===s||95===s||126===s?e.check(nX,t,a)(s):null===s||(0,t6.Ee)(s)||(0,t6.Ny)(s)?t(s):(e.consume(s),i)}function a(t){return 41===t&&r++,e.consume(t),i}},partial:!0},nX={tokenize:function(e,t,n){return r;function r(s){return 33===s||34===s||39===s||41===s||42===s||44===s||46===s||58===s||59===s||63===s||95===s||126===s?(e.consume(s),r):38===s?(e.consume(s),a):93===s?(e.consume(s),i):60===s||null===s||(0,t6.Ee)(s)||(0,t6.Ny)(s)?t(s):n(s)}function i(e){return null===e||40===e||91===e||(0,t6.Ee)(e)||(0,t6.Ny)(e)?t(e):r(e)}function a(t){return(0,t6.CW)(t)?function t(i){return 59===i?(e.consume(i),r):(0,t6.CW)(i)?(e.consume(i),t):n(i)}(t):n(t)}},partial:!0},nQ={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return(0,t6.lV)(e)?n(e):t(e)}},partial:!0},nZ={name:"wwwAutolink",tokenize:function(e,t,n){let r=this;return function(t){return 87!==t&&119!==t||!n5.call(r,r.previous)||n4(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(nW,e.attempt(nq,e.attempt(nY,i),n),n)(t))};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:n5},nJ={name:"protocolAutolink",tokenize:function(e,t,n){let r=this,i="",a=!1;return function(t){return(72===t||104===t)&&n3.call(r,r.previous)&&!n4(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),s):n(t)};function s(t){if((0,t6.CW)(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(58===t){let n=i.toLowerCase();if("http"===n||"https"===n)return e.consume(t),o}return n(t)}function o(t){return 47===t?(e.consume(t),a)?l:(a=!0,o):n(t)}function l(t){return null===t||(0,t6.JQ)(t)||(0,t6.Ee)(t)||(0,t6.Ny)(t)||(0,t6.es)(t)?n(t):e.attempt(nq,e.attempt(nY,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:n3},n0={name:"emailAutolink",tokenize:function(e,t,n){let r,i,a=this;return function(t){return!n9(t)||!n6.call(a,a.previous)||n4(a.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),function t(r){return n9(r)?(e.consume(r),t):64===r?(e.consume(r),s):n(r)}(t))};function s(t){return 46===t?e.check(nQ,l,o)(t):45===t||95===t||(0,t6.lV)(t)?(i=!0,e.consume(t),s):l(t)}function o(t){return e.consume(t),r=!0,s}function l(s){return i&&r&&(0,t6.CW)(a.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(s)):n(s)}},previous:n6},n1={},n2=48;for(;n2<123;)n1[n2]=n0,58==++n2?n2=65:91===n2&&(n2=97);function n5(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||(0,t6.Ee)(e)}function n3(e){return!(0,t6.CW)(e)}function n6(e){return!(47===e||n9(e))}function n9(e){return 43===e||45===e||46===e||95===e||(0,t6.lV)(e)}function n4(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}n1[43]=n0,n1[45]=n0,n1[46]=n0,n1[95]=n0,n1[72]=[n0,nJ],n1[104]=[n0,nJ],n1[87]=[n0,nZ],n1[119]=[n0,nZ];var n8=n(66623);let n7={partial:!0,tokenize:function(e,t,n){return function(t){return(0,t6.On)(t)?(0,n8.N)(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||(0,t6.HP)(e)?t(e):n(e)}}},re={tokenize:function(e,t,n){let r=this;return(0,n8.N)(e,function(e){let i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function rt(e,t,n){let r,i=this,a=i.events.length,s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);for(;a--;){let e=i.events[a][1];if("labelImage"===e.type){r=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(a){if(!r||!r._balanced)return n(a);let o=nc(i.sliceSerialize({start:r.end,end:i.now()}));return 94===o.codePointAt(0)&&s.includes(o.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),t(a)):n(a)}}function rn(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";let r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},o=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...o),e}function rr(e,t,n){let r,i=this,a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),s=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),o};function o(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(o){if(s>999||93===o&&!r||null===o||91===o||(0,t6.Ee)(o))return n(o);if(93===o){e.exit("chunkString");let r=e.exit("gfmFootnoteCallString");return a.includes(nc(i.sliceSerialize(r)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(o)}return(0,t6.Ee)(o)||(r=!0),s++,e.consume(o),92===o?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),s++,l):l(t)}}function ri(e,t,n){let r,i,a=this,s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]),o=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(o>999||93===t&&!i||null===t||91===t||(0,t6.Ee)(t))return n(t);if(93===t){e.exit("chunkString");let n=e.exit("gfmFootnoteDefinitionLabelString");return r=nc(a.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return(0,t6.Ee)(t)||(i=!0),o++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),o++,c):c(t)}function h(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),s.includes(r)||s.push(r),(0,n8.N)(e,d,"gfmFootnoteDefinitionWhitespace")):n(t)}function d(e){return t(e)}}function ra(e,t,n){return e.check(n7,t,e.attempt(re,t,n))}function rs(e){e.exit("gfmFootnoteDefinition")}var ro=n(37947);class rl{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let i=0;if(0!==n||0!==r.length){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length,n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}}function rc(e,t,n){let r,i=this,a=0,s=0;return function(e){let t=i.events.length-1;for(;t>-1;){let e=i.events[t][1].type;if("lineEnding"===e||"linePrefix"===e)t--;else break}let r=t>-1?i.events[t][1].type:null,a="tableHead"===r||"tableRow"===r?b:o;return a===b&&i.parser.lazy[i.now().line]?n(e):a(e)};function o(t){var n;return e.enter("tableHead"),e.enter("tableRow"),124===(n=t)||(r=!0,s+=1),l(n)}function l(t){return null===t?n(t):(0,t6.HP)(t)?s>1?(s=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),h):n(t):(0,t6.On)(t)?(0,n8.N)(e,l,"whitespace")(t):(s+=1,r&&(r=!1,a+=1),124===t)?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),r=!0,l):(e.enter("data"),c(t))}function c(t){return null===t||124===t||(0,t6.Ee)(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function h(t){return(i.interrupt=!1,i.parser.lazy[i.now().line])?n(t):(e.enter("tableDelimiterRow"),r=!1,(0,t6.On)(t))?(0,n8.N)(e,d,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):d(t)}function d(t){return 45===t||58===t?f(t):124===t?(r=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),p):n(t)}function p(t){return(0,t6.On)(t)?(0,n8.N)(e,f,"whitespace")(t):f(t)}function f(t){return 58===t?(s+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(s+=1,m(t)):null===t||(0,t6.HP)(t)?y(t):n(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),function t(n){return 45===n?(e.consume(n),t):58===n?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(n),e.exit("tableDelimiterMarker"),g):(e.exit("tableDelimiterFiller"),g(n))}(t)):n(t)}function g(t){return(0,t6.On)(t)?(0,n8.N)(e,y,"whitespace")(t):y(t)}function y(i){if(124===i)return d(i);if(null===i||(0,t6.HP)(i))return r&&a===s?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(i)):n(i);return n(i)}function b(t){return e.enter("tableRow"),k(t)}function k(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),k):null===n||(0,t6.HP)(n)?(e.exit("tableRow"),t(n)):(0,t6.On)(n)?(0,n8.N)(e,k,"whitespace")(n):(e.enter("data"),x(n))}function x(t){return null===t||124===t||(0,t6.Ee)(t)?(e.exit("data"),k(t)):(e.consume(t),92===t?v:x)}function v(t){return 92===t||124===t?(e.consume(t),x):x(t)}}function ru(e,t){let n,r,i,a=-1,s=!0,o=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,h=0,d=new rl;for(;++a<e.length;){let p=e[a],f=p[1];"enter"===p[0]?"tableHead"===f.type?(u=!1,0!==h&&(rd(d,t,h,n,r),r=void 0,h=0),n={type:"table",start:Object.assign({},f.start),end:Object.assign({},f.end)},d.add(a,0,[["enter",n,t]])):"tableRow"===f.type||"tableDelimiterRow"===f.type?(s=!0,i=void 0,l=[0,0,0,0],c=[0,a+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},f.start),end:Object.assign({},f.end)},d.add(a,0,[["enter",r,t]])),o="tableDelimiterRow"===f.type?2:r?3:1):o&&("data"===f.type||"tableDelimiterMarker"===f.type||"tableDelimiterFiller"===f.type)?(s=!1,0===c[2]&&(0!==l[1]&&(c[0]=c[1],i=rh(d,t,l,o,void 0,i),l=[0,0,0,0]),c[2]=a)):"tableCellDivider"===f.type&&(s?s=!1:(0!==l[1]&&(c[0]=c[1],i=rh(d,t,l,o,void 0,i)),c=[(l=c)[1],a,0,0])):"tableHead"===f.type?(u=!0,h=a):"tableRow"===f.type||"tableDelimiterRow"===f.type?(h=a,0!==l[1]?(c[0]=c[1],i=rh(d,t,l,o,a,i)):0!==c[1]&&(i=rh(d,t,c,o,a,i)),o=0):o&&("data"===f.type||"tableDelimiterMarker"===f.type||"tableDelimiterFiller"===f.type)&&(c[3]=a)}for(0!==h&&rd(d,t,h,n,r),d.consume(t.events),a=-1;++a<t.events.length;){let e=t.events[a];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=function(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if("enter"===i[0])"tableContent"===i[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===e[t-1][1].type){let e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(n=!0);t+=1}return r}(t.events,a))}return e}function rh(e,t,n,r,i,a){0!==n[0]&&(a.end=Object.assign({},rp(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));let s=rp(t.events,n[1]);if(a={type:1===r?"tableHeader":2===r?"tableDelimiter":"tableData",start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",a,t]]),0!==n[2]){let i=rp(t.events,n[2]),a=rp(t.events,n[3]),s={type:"tableContent",start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[["enter",s,t]]),2!==r){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",s,t]])}return void 0!==i&&(a.end=Object.assign({},rp(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function rd(e,t,n,r,i){let a=[],s=rp(t.events,n);i&&(i.end=Object.assign({},s),a.push(["exit",i,t])),r.end=Object.assign({},s),a.push(["exit",r,t]),e.add(n+1,0,a)}function rp(e,t){let n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}let rf={name:"tasklistCheck",tokenize:function(e,t,n){let r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i):n(t)};function i(t){return(0,t6.Ee)(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),a):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),a):n(t)}function a(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(t)}function s(r){return(0,t6.HP)(r)?t(r):(0,t6.On)(r)?e.check({tokenize:rm},t,n)(r):n(r)}}};function rm(e,t,n){return(0,n8.N)(e,function(e){return null===e?n(e):t(e)},"whitespace")}let rg={};var ry=Object.defineProperty,rb=Object.defineProperties,rk=Object.getOwnPropertyDescriptors,rx=Object.getOwnPropertySymbols,rv=Object.prototype.hasOwnProperty,rE=Object.prototype.propertyIsEnumerable,r_=(e,t,n)=>t in e?ry(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,rT=(e,t)=>{for(var n in t||(t={}))rv.call(t,n)&&r_(e,n,t[n]);if(rx)for(var n of rx(t))rE.call(t,n)&&r_(e,n,t[n]);return e},rA=(e,t)=>{let n=!1,r=!1;for(let i=0;i<t;i+=1){if("\\"===e[i]&&i+1<e.length&&"`"===e[i+1]){i+=1;continue}if("```"===e.substring(i,i+3)){r=!r,i+=2;continue}r||"`"!==e[i]||(n=!n)}return n||r},rw=(e,t)=>{let n="```"===e.substring(t,t+3),r=t>0&&"```"===e.substring(t-1,t+2),i=t>1&&"```"===e.substring(t-2,t+1);return n||r||i},rS=(e,t)=>{let n=!1,r=!1,i=-1;for(let a=0;a<e.length;a+=1){if("\\"===e[a]&&a+1<e.length&&"`"===e[a+1]){a+=1;continue}if("```"===e.substring(a,a+3)){r=!r,a+=2;continue}if(!r&&"`"===e[a])if(n){if(i<t&&t<a)return!0;n=!1,i=-1}else n=!0,i=a}return!1},rC=/^(\s*(?:[-*+]|\d+[.)]) +)>(=?\s*[$]?\d)/gm,rN=/(\*\*)([^*]*\*?)$/,rM=/(__)([^_]*?)$/,rI=/(\*\*\*)([^*]*?)$/,rR=/(\*)([^*]*?)$/,rL=/(_)([^_]*?)$/,rD=/(`)([^`]*?)$/,rO=/(~~)([^~]*?)$/,rP=/^[\s_~*`]*$/,rF=/^[\s]*[-*+][\s]+$/,rB=/[\p{L}\p{N}_]/u,rH=/^```[^`\n]*```?$/,rU=/^\*{4,}$/,r$=/(__)([^_]+)_$/,rj=/(~~)([^~]+)~$/,rz=/~~/g,rG=e=>{if(!e)return!1;let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||95===t||rB.test(e)},rV=(e,t)=>{let n=1;for(let r=t+1;r<e.length;r+=1)if("["===e[r])n+=1;else if("]"===e[r]&&0==(n-=1))return r;return -1},rK=(e,t)=>{let n=!1,r=!1;for(let i=0;i<e.length&&i<t;i+=1){if("\\"===e[i]&&"$"===e[i+1]){i+=1;continue}"$"===e[i]&&("$"===e[i+1]?(r=!r,i+=1,n=!1):r||(n=!n))}return n||r},rW=(e,t)=>{for(let n=t;n<e.length;n+=1){if(")"===e[n])return!0;if(e[n]===`
|
|
3
3
|
`)break}return!1},rq=(e,t)=>{for(let n=t-1;n>=0&&")"!==e[n];n-=1){if("("===e[n])return n>0&&"]"===e[n-1]&&rW(e,t);if(e[n]===`
|
|
4
4
|
`)break}return!1},rY=(e,t,n)=>{let r=0;for(let n=t-1;n>=0;n-=1)if(e[n]===`
|